@muzi3/herdr 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -188,6 +188,8 @@ function herdrErrorCode(error: unknown): string | undefined {
|
|
|
188
188
|
/**
|
|
189
189
|
* herdr 的 timeout / agent_prompt_stalled 表示“没观测到”,不是失败。
|
|
190
190
|
* code 是主要判据,文案匹配作为兜底(个别版本可能不带结构化 code)。
|
|
191
|
+
* stalled 的文案见过两种:旧版 `no observed state change ... state_change_seq remained N`,
|
|
192
|
+
* 0.9.0 `no observed working or blocked state within 5000 ms; current status is idle`。
|
|
191
193
|
*/
|
|
192
194
|
function isHerdrTimeout(error: unknown): boolean {
|
|
193
195
|
return herdrErrorCode(error) === "timeout" || (error instanceof Error && /timed out waiting for/i.test(error.message));
|
|
@@ -196,7 +198,7 @@ function isHerdrTimeout(error: unknown): boolean {
|
|
|
196
198
|
function isPromptStalled(error: unknown): boolean {
|
|
197
199
|
return (
|
|
198
200
|
herdrErrorCode(error) === "agent_prompt_stalled" ||
|
|
199
|
-
(error instanceof Error && /no observed state change/i.test(error.message))
|
|
201
|
+
(error instanceof Error && /no observed (?:state change|working or blocked state)/i.test(error.message))
|
|
200
202
|
);
|
|
201
203
|
}
|
|
202
204
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muzi3/herdr",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Herdr for pi: three independent extensions (agent + blocked state reporting, /pi-hot-restart, and the herdr_layout / herdr_pane / herdr_agent pane control tools forked from @ogulcancelik/pi-herdr) plus the herdr-guide skill.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|