@juicesharp/rpiv-pi 2.1.0 → 2.2.0
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.
- package/extensions/rpiv-core/bash-timeout.ts +16 -0
- package/extensions/rpiv-core/built-in-workflows.ts +2363 -278
- package/extensions/rpiv-core/guidance.ts +35 -19
- package/extensions/rpiv-core/lane-list.ts +5 -29
- package/extensions/rpiv-core/lane-progress.ts +5 -76
- package/extensions/rpiv-core/models-config.ts +35 -0
- package/extensions/rpiv-core/run-lane-registry.ts +0 -65
- package/extensions/rpiv-core/sdk-workflow-host.ts +4 -0
- package/extensions/rpiv-core/workflow-execution-host.ts +24 -7
- package/package.json +2 -2
- package/skills/amend/SKILL.md +7 -3
- package/skills/annotate-guidance/SKILL.md +1 -0
- package/skills/architecture-review/SKILL.md +1 -0
- package/skills/blueprint/SKILL.md +10 -4
- package/skills/changelog/SKILL.md +1 -0
- package/skills/commit/SKILL.md +1 -0
- package/skills/design/SKILL.md +4 -3
- package/skills/design-review/SKILL.md +1 -0
- package/skills/design-slice/SKILL.md +2 -1
- package/skills/elaborate/SKILL.md +17 -5
- package/skills/elaborate/_helpers/validate-workflow-invariant.mjs +88 -0
- package/skills/explore/SKILL.md +1 -0
- package/skills/frontend-design/SKILL.md +1 -0
- package/skills/grade/SKILL.md +20 -3
- package/skills/implement/SKILL.md +10 -2
- package/skills/plan/SKILL.md +10 -6
- package/skills/research/SKILL.md +9 -8
- package/skills/resume-handoff/SKILL.md +1 -0
- package/skills/revise/SKILL.md +1 -0
- package/skills/slice/SKILL.md +3 -2
- package/skills/synthesize/SKILL.md +16 -7
- package/skills/validate/SKILL.md +1 -0
|
@@ -59,6 +59,14 @@ export interface BashWatchdog {
|
|
|
59
59
|
/** The recorded timeout reason once the watchdog has fired, else `undefined`. Wired to
|
|
60
60
|
* `WorkflowSessionContext.toolTimeout` so the runner can divert the abort to soft-halt. */
|
|
61
61
|
timedOut(): { reason: string } | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Clear the recorded verdict (`fired` → undefined) AND every pending per-`toolCallId`
|
|
64
|
+
* timer WITHOUT unsubscribing — the `subscribe` listener stays live so a resumed turn's
|
|
65
|
+
* new bash `tool_execution_start` re-arms a fresh timer. The strike-recovery path calls
|
|
66
|
+
* this after consuming a strike (before re-prompting the child); `dispose()` (unsubscribe
|
|
67
|
+
* + clear) still runs in the per-stage `finally`. Mirrors `dispose()` minus the unsubscribe.
|
|
68
|
+
*/
|
|
69
|
+
reset(): void;
|
|
62
70
|
/** Unsubscribe + clear any pending timers. The host calls this in its per-stage `finally`. */
|
|
63
71
|
dispose(): void;
|
|
64
72
|
}
|
|
@@ -101,6 +109,14 @@ export function armBashWatchdog(session: WatchableSession, timeoutMs: number = B
|
|
|
101
109
|
|
|
102
110
|
return {
|
|
103
111
|
timedOut: () => fired,
|
|
112
|
+
// Recovery: clear the verdict + pending timers but KEEP the subscribe listener armed,
|
|
113
|
+
// so the resumed turn's next bash call re-arms a fresh per-toolCallId timer. dispose()
|
|
114
|
+
// (below) is the only path that unsubscribes.
|
|
115
|
+
reset: () => {
|
|
116
|
+
fired = undefined;
|
|
117
|
+
for (const timer of timers.values()) clearTimeout(timer);
|
|
118
|
+
timers.clear();
|
|
119
|
+
},
|
|
104
120
|
dispose: () => {
|
|
105
121
|
unsubscribe();
|
|
106
122
|
for (const timer of timers.values()) clearTimeout(timer);
|