Install
Install with PiG
pig install npm:@brightmeows/pi-herdr-blockedInstall with Pi
pi install npm:@brightmeows/pi-herdr-blockedReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.
@brightmeows/pi-herdr-blocked
把 Pi 的阻塞态对话框翻译成 herdr 的 blocked 上报,修“等人时侧栏停在 working”的缺口。
背景
herdr 官方 pi 集成只听共享总线上的 herdr:blocked 事件,但 pi 侧没有内置来源 emit 它:ask-user-question 等扩展对话框等人时,herdr 侧栏停留在 working。pi 原生 OSC 7501 程序状态协议 herdr 0.9.1 不解析。
行为
- 监听
ui_prompt_start与ui_prompt_end(pi 对 select、confirm、input、editor、custom 五类阻塞式对话框的生命周期包装),换算成herdr:blocked事件,start 与 end 严格配对,嵌套对话框不早释 - label 取对话框 title;问卷弹窗回退到 ask-user-question 广播的问题清单首条
HERDR_ENV、HERDR_SOCKET_PATH、HERDR_PANE_ID三重门控,herdr 环境外零行为
安装
pi install npm:@brightmeows/pi-herdr-blocked
适配版本
实测 pi 1.5.2,herdr 0.9.1。
License
MIT