@juicesharp/rpiv-workflow 2.8.0 → 2.9.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/execution-host.ts +1 -1
- package/loop-kinds.ts +1 -1
- package/package.json +2 -2
- package/runner/run-context.ts +1 -1
- package/runner/run-stage.ts +1 -1
- package/runner/runner.ts +3 -3
- package/types.ts +2 -2
package/execution-host.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface WorkflowExecutionProvider {
|
|
|
42
42
|
): WorkflowExecution | Promise<WorkflowExecution>;
|
|
43
43
|
/** Per-stage model resolution (rpiv-pi's resolveStageModel) — threaded onto
|
|
44
44
|
* RunContext.resolveModel so the dispatcher fills each child's ModelSelection. */
|
|
45
|
-
resolveModel?(id: { stage: string; skill: string }): ModelSelection | undefined;
|
|
45
|
+
resolveModel?(id: { workflow: string; stage: string; skill: string }): ModelSelection | undefined;
|
|
46
46
|
/** Re-open a persisted child-session JSONL and return its branch
|
|
47
47
|
* (`SessionManager.open(file).getBranch()` on the rpiv-pi side), narrowed
|
|
48
48
|
* to `BranchEntry[]`. Threaded onto `RunContext.readSessionBranch` so the
|
package/loop-kinds.ts
CHANGED
|
@@ -539,7 +539,7 @@ export function buildUnitSession(
|
|
|
539
539
|
snapshot,
|
|
540
540
|
branchOffset: undefined,
|
|
541
541
|
unit: { parent: e.name, role: u.role, index, id: u.id, label: u.label },
|
|
542
|
-
model: run.resolveModel?.({ stage: e.name, skill: u.skill }),
|
|
542
|
+
model: run.resolveModel?.({ workflow: run.workflow.name, stage: e.name, skill: u.skill }),
|
|
543
543
|
signal,
|
|
544
544
|
readSessionBranch: run.readSessionBranch,
|
|
545
545
|
worktreeDigest: run.worktreeDigest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juicesharp/rpiv-workflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Pi extension. Chain skills into typed multi-stage workflows with audited JSONL state, predicate routing, and per-stage output validation. Skill-agnostic — bring your own skills.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
114
|
"dependencies": {
|
|
115
|
-
"@juicesharp/rpiv-config": "^2.
|
|
115
|
+
"@juicesharp/rpiv-config": "^2.9.0",
|
|
116
116
|
"jiti": "^2.7.0",
|
|
117
117
|
"typebox": "^1.1.24"
|
|
118
118
|
},
|
package/runner/run-context.ts
CHANGED
|
@@ -89,7 +89,7 @@ export function buildRunContext(
|
|
|
89
89
|
maxIterations?: number;
|
|
90
90
|
lifecycle?: LifecycleListeners;
|
|
91
91
|
signal?: AbortSignal;
|
|
92
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
92
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
93
93
|
readSessionBranch?: (file: string) => BranchEntry[] | undefined;
|
|
94
94
|
worktreeDigest?: (cwd: string) => string | undefined;
|
|
95
95
|
},
|
package/runner/run-stage.ts
CHANGED
|
@@ -206,7 +206,7 @@ function buildSingleStageSession(
|
|
|
206
206
|
skillContracts: run.skillContracts,
|
|
207
207
|
stageIndex: idx,
|
|
208
208
|
snapshot: prep.snapshot,
|
|
209
|
-
model: run.resolveModel?.({ stage: stage.name, skill: stage.skill }),
|
|
209
|
+
model: run.resolveModel?.({ workflow: run.workflow.name, stage: stage.name, skill: stage.skill }),
|
|
210
210
|
signal: run.signal,
|
|
211
211
|
readSessionBranch: run.readSessionBranch,
|
|
212
212
|
worktreeDigest: run.worktreeDigest,
|
package/runner/runner.ts
CHANGED
|
@@ -120,7 +120,7 @@ function referencedSessionIds(run: RunContext): Set<string> {
|
|
|
120
120
|
* teardown the caller invokes in `finally`. */
|
|
121
121
|
interface DetachedExecutor {
|
|
122
122
|
execCtx: WorkflowHostContext;
|
|
123
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
123
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
124
124
|
readSessionBranch?: (file: string) => BranchEntry[] | undefined;
|
|
125
125
|
signal?: AbortSignal;
|
|
126
126
|
dispose?: () => void;
|
|
@@ -149,7 +149,7 @@ async function detachExecutor(
|
|
|
149
149
|
cwd: string,
|
|
150
150
|
runId: string,
|
|
151
151
|
options: {
|
|
152
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
152
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
153
153
|
readSessionBranch?: (file: string) => BranchEntry[] | undefined;
|
|
154
154
|
signal?: AbortSignal;
|
|
155
155
|
name?: string; // lane display name (run --name ?? workflow name)
|
|
@@ -299,7 +299,7 @@ export interface ResumeWorkflowOptions {
|
|
|
299
299
|
* Pi launcher still honors per-skill overrides without the caller re-threading
|
|
300
300
|
* it). Undefined + no provider ⇒ host default for every resumed stage.
|
|
301
301
|
*/
|
|
302
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
302
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/**
|
package/types.ts
CHANGED
|
@@ -242,7 +242,7 @@ export interface RunWorkflowOptions {
|
|
|
242
242
|
* `RunContext.resolveModel` → every `StageSessionContext.model`; the host applies it
|
|
243
243
|
* at child-session creation. Undefined ⇒ host default for every stage.
|
|
244
244
|
*/
|
|
245
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
245
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
246
246
|
/**
|
|
247
247
|
* Worktree-digest override for the validation-retry gate — threaded
|
|
248
248
|
* onto `RunContext.worktreeDigest` → every `StageSessionContext.worktreeDigest`.
|
|
@@ -373,7 +373,7 @@ export interface RunContext {
|
|
|
373
373
|
* the result onto every `StageSessionContext.model`; the host applies it at child
|
|
374
374
|
* creation (NOT via global mutation). Undefined ⇒ host default.
|
|
375
375
|
*/
|
|
376
|
-
resolveModel?: (id: { stage: string; skill: string }) => ModelSelection | undefined;
|
|
376
|
+
resolveModel?: (id: { workflow: string; stage: string; skill: string }) => ModelSelection | undefined;
|
|
377
377
|
/**
|
|
378
378
|
* Host-injected reader that re-opens a persisted child-session JSONL and
|
|
379
379
|
* returns its branch (`SessionManager.open(file).getBranch()` on the rpiv-pi
|