@juicesharp/rpiv-workflow 2.13.7 → 2.13.9

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.
Files changed (111) hide show
  1. package/api.ts +4 -4
  2. package/audit-ctx.ts +4 -4
  3. package/audit-rows.ts +6 -6
  4. package/audit.ts +17 -17
  5. package/built-ins.ts +2 -2
  6. package/chain-state.ts +7 -7
  7. package/command-run.ts +12 -12
  8. package/command.ts +3 -3
  9. package/death-scene.ts +4 -4
  10. package/docs/embedding.md +1 -1
  11. package/events.ts +6 -6
  12. package/execution-host.ts +3 -3
  13. package/extension.ts +3 -3
  14. package/failure-memos.ts +3 -3
  15. package/index.ts +2 -2
  16. package/internal.ts +10 -10
  17. package/judge.ts +4 -4
  18. package/load/alias.ts +4 -4
  19. package/load/cache.ts +4 -4
  20. package/load/index.ts +19 -19
  21. package/load/issues.ts +2 -2
  22. package/load/legacy.ts +2 -2
  23. package/load/merge.ts +7 -7
  24. package/load/normalize.ts +2 -2
  25. package/load/resolve-default.ts +2 -2
  26. package/load/shape-guards.ts +1 -1
  27. package/load/skill-contract-phase.ts +4 -4
  28. package/loop-constructors.ts +6 -6
  29. package/loop-def.ts +3 -3
  30. package/loop-kinds.ts +10 -10
  31. package/loop-parallel.ts +9 -9
  32. package/loop-waves.ts +3 -3
  33. package/loop.ts +11 -11
  34. package/loops/constructors.ts +5 -5
  35. package/loops/derivations.ts +5 -5
  36. package/loops/introspection.ts +3 -3
  37. package/loops/panel.ts +4 -4
  38. package/loops/verify.ts +3 -3
  39. package/messages.ts +2 -2
  40. package/outcomes/collectors/directory-path.ts +4 -4
  41. package/outcomes/collectors/index.ts +7 -7
  42. package/outcomes/collectors/text-scan.ts +6 -6
  43. package/outcomes/collectors/tool-call.ts +5 -5
  44. package/outcomes/collectors/transcript-path.ts +5 -5
  45. package/outcomes/collectors/union.ts +4 -4
  46. package/outcomes/collectors/url.ts +5 -5
  47. package/outcomes/collectors/workspace-diff.ts +4 -4
  48. package/outcomes/git-commit.ts +4 -4
  49. package/outcomes/index.ts +4 -4
  50. package/outcomes/parsers/index.ts +1 -1
  51. package/outcomes/parsers/json-body.ts +3 -3
  52. package/outcomes/side-effect.ts +1 -1
  53. package/output-spec.ts +3 -3
  54. package/output.ts +1 -1
  55. package/package.json +2 -2
  56. package/preview.ts +5 -5
  57. package/registration.ts +24 -24
  58. package/routing-dsl.ts +3 -3
  59. package/routing.ts +2 -2
  60. package/runner/by-name.ts +4 -4
  61. package/runner/by-run-id.ts +6 -6
  62. package/runner/chain-advance.ts +10 -10
  63. package/runner/errors.ts +1 -1
  64. package/runner/failure.ts +5 -5
  65. package/runner/index.ts +6 -6
  66. package/runner/input-validation.ts +8 -8
  67. package/runner/preflight.ts +7 -7
  68. package/runner/resolve-stage.ts +4 -4
  69. package/runner/resume-entry.ts +9 -9
  70. package/runner/resume-loop.ts +9 -9
  71. package/runner/resume.ts +15 -15
  72. package/runner/run-context.ts +8 -8
  73. package/runner/run-stage.ts +26 -26
  74. package/runner/runner.ts +18 -18
  75. package/runner/script-stage.ts +12 -12
  76. package/schema-compat.ts +2 -2
  77. package/semaphore.ts +1 -1
  78. package/sessions/bash-strikes.ts +1 -1
  79. package/sessions/extraction.ts +16 -16
  80. package/sessions/halt-routing.ts +10 -10
  81. package/sessions/index.ts +3 -3
  82. package/sessions/locate.ts +3 -3
  83. package/sessions/reattach.ts +8 -8
  84. package/sessions/sessions.ts +9 -9
  85. package/sessions/spawn.ts +2 -2
  86. package/sessions/success-persist.ts +7 -7
  87. package/skill-contract.ts +3 -3
  88. package/skill-contracts/composition.ts +5 -5
  89. package/skill-contracts/extension-points.ts +3 -3
  90. package/skill-contracts/harvest.ts +6 -6
  91. package/skill-contracts/index.ts +6 -6
  92. package/skill-contracts/registry.ts +2 -2
  93. package/stage-def.ts +5 -5
  94. package/stage-errors.ts +1 -1
  95. package/stage-identity.ts +3 -3
  96. package/startup.ts +5 -5
  97. package/state/index.ts +2 -2
  98. package/state/names.ts +3 -3
  99. package/state/raw.ts +1 -1
  100. package/state/reads.ts +5 -5
  101. package/state/resolve.ts +3 -3
  102. package/state/state.ts +8 -8
  103. package/state/writes.ts +3 -3
  104. package/transcript.ts +1 -1
  105. package/typebox-adapter.ts +2 -2
  106. package/types.ts +11 -11
  107. package/validate/contract-compat.ts +8 -8
  108. package/validate/graph.ts +2 -2
  109. package/validate/stage-rules.ts +7 -7
  110. package/validate-output.ts +3 -3
  111. package/validate-workflow.ts +7 -7
package/loop-kinds.ts CHANGED
@@ -23,20 +23,20 @@
23
23
  * `unitTagOf`, `judgeStageDef`, `LoopEntry`, `NextStep`.
24
24
  */
25
25
 
26
- import type { AssessLoop, IterateLoop, LoopDef, StageDef, Unit, UnitRole } from "./api.js";
27
- import { decorateStage, runIdentityOf } from "./audit.js";
26
+ import type { AssessLoop, IterateLoop, LoopDef, StageDef, Unit, UnitRole } from "./api.ts";
27
+ import { decorateStage, runIdentityOf } from "./audit.ts";
28
28
  // Fanout completion is INDEX-ADDRESSED (place-by-unitIndex), the
29
29
  // shared authority for the live parallel fold AND the resume fold so the two
30
30
  // reconstruct byte-identical declared-order state regardless of
31
31
  // completion/resume order. iterate/assess keep advanceCursor (sequential).
32
- import { placeFanoutOutput, resolveStagePrompt } from "./chain-state.js";
33
- import { failureMemoSuffix } from "./failure-memos.js";
34
- import { type Artifact, handleToString } from "./handle.js";
35
- import { isPanel, type Judge, type PanelJudge, panelMembers, resolveJudgePrompt } from "./judge.js";
36
- import { MSG_LOOP_CURSOR_CORRUPT } from "./messages.js";
37
- import { finalizeOutput, isFailedOutput, type Output, type OutputMeta } from "./output.js";
38
- import { invariantPreflight } from "./stage-errors.js";
39
- import type { RunContext, RunState, StageSessionContext, UnitRef, WorkflowHostContext } from "./types.js";
32
+ import { placeFanoutOutput, resolveStagePrompt } from "./chain-state.ts";
33
+ import { failureMemoSuffix } from "./failure-memos.ts";
34
+ import { type Artifact, handleToString } from "./handle.ts";
35
+ import { isPanel, type Judge, type PanelJudge, panelMembers, resolveJudgePrompt } from "./judge.ts";
36
+ import { MSG_LOOP_CURSOR_CORRUPT } from "./messages.ts";
37
+ import { finalizeOutput, isFailedOutput, type Output, type OutputMeta } from "./output.ts";
38
+ import { invariantPreflight } from "./stage-errors.ts";
39
+ import type { RunContext, RunState, StageSessionContext, UnitRef, WorkflowHostContext } from "./types.ts";
40
40
 
41
41
  // ---------------------------------------------------------------------------
42
42
  // Cursor + entry vocabulary (kind-agnostic, shared live + fold)
package/loop-parallel.ts CHANGED
@@ -37,10 +37,10 @@
37
37
  * (`loop-kinds.ts`, `loop-waves.ts`) and never imports loop.ts back (loop.ts → here only).
38
38
  */
39
39
 
40
- import { decorateStage } from "./audit.js";
41
- import { lifecycleCtxFor, skillStageRef } from "./events.js";
42
- import { handleToString } from "./handle.js";
43
- import { isAbortError, nowIso, WorkflowAbortError } from "./internal-utils.js";
40
+ import { decorateStage } from "./audit.ts";
41
+ import { lifecycleCtxFor, skillStageRef } from "./events.ts";
42
+ import { handleToString } from "./handle.ts";
43
+ import { isAbortError, nowIso, WorkflowAbortError } from "./internal-utils.ts";
44
44
  import {
45
45
  buildUnitSession,
46
46
  fanoutUnitAt,
@@ -50,11 +50,11 @@ import {
50
50
  type LoopDeps,
51
51
  type LoopEntry,
52
52
  type NextStep,
53
- } from "./loop-kinds.js";
54
- import { computeWaveLevels, unitIdIndex } from "./loop-waves.js";
55
- import { failedOutput, isFailedOutput, type Output, type OutputMeta, outputMeta } from "./output.js";
56
- import { Semaphore } from "./semaphore.js";
57
- import type { RunContext, UnitRef, WorkflowHostContext } from "./types.js";
53
+ } from "./loop-kinds.ts";
54
+ import { computeWaveLevels, unitIdIndex } from "./loop-waves.ts";
55
+ import { failedOutput, isFailedOutput, type Output, type OutputMeta, outputMeta } from "./output.ts";
56
+ import { Semaphore } from "./semaphore.ts";
57
+ import type { RunContext, UnitRef, WorkflowHostContext } from "./types.ts";
58
58
 
59
59
  /** Structured identity for fanout unit `i` — carried on a worker-throw failure
60
60
  * row (`recordWorkerThrow`) so the unit's identity lands in the row's structured
package/loop-waves.ts CHANGED
@@ -19,9 +19,9 @@
19
19
  * the static load gate can't see them — `stage-rules.ts` never inspects the unit list).
20
20
  */
21
21
 
22
- import type { Unit } from "./loop-def.js";
23
- import { unitTagOf } from "./loop-kinds.js";
24
- import { invariantPreflight } from "./stage-errors.js";
22
+ import type { Unit } from "./loop-def.ts";
23
+ import { unitTagOf } from "./loop-kinds.ts";
24
+ import { invariantPreflight } from "./stage-errors.ts";
25
25
 
26
26
  /** Built once; shared by level computation and the dispatcher's dep-artifact
27
27
  * resolution so both resolve a dep id to the SAME index the cursor slots are
package/loop.ts CHANGED
@@ -36,12 +36,12 @@
36
36
  * no-op (pinned behavior).
37
37
  */
38
38
 
39
- import type { AssessLoop, LoopDef } from "./api.js";
40
- import { applyCompletedStage } from "./chain-state.js";
41
- import { lifecycleCtxFor, skillStageRef } from "./events.js";
42
- import { nowIso } from "./internal-utils.js";
43
- import { type AnyJudge, isPanel, type PanelJudge } from "./judge.js";
44
- import { panelVerdictChannel, panelVerdictDef } from "./loop-constructors.js";
39
+ import type { AssessLoop, LoopDef } from "./api.ts";
40
+ import { applyCompletedStage } from "./chain-state.ts";
41
+ import { lifecycleCtxFor, skillStageRef } from "./events.ts";
42
+ import { nowIso } from "./internal-utils.ts";
43
+ import { type AnyJudge, isPanel, type PanelJudge } from "./judge.ts";
44
+ import { panelVerdictChannel, panelVerdictDef } from "./loop-constructors.ts";
45
45
  import {
46
46
  advanceCursor,
47
47
  allFanoutSlotsFailed,
@@ -55,11 +55,11 @@ import {
55
55
  type NextStep,
56
56
  presentedKindOf,
57
57
  sequentialStrategyOf,
58
- } from "./loop-kinds.js";
59
- import { runFanoutGeneration } from "./loop-parallel.js";
60
- import { MSG_LOOP_CAP_ADVANCE, MSG_LOOP_ZERO_UNITS } from "./messages.js";
61
- import { appendLoopCap } from "./state/index.js";
62
- import type { RunContext, WorkflowHostContext } from "./types.js";
58
+ } from "./loop-kinds.ts";
59
+ import { runFanoutGeneration } from "./loop-parallel.ts";
60
+ import { MSG_LOOP_CAP_ADVANCE, MSG_LOOP_ZERO_UNITS } from "./messages.ts";
61
+ import { appendLoopCap } from "./state/index.ts";
62
+ import type { RunContext, WorkflowHostContext } from "./types.ts";
63
63
 
64
64
  /**
65
65
  * The loop-entry announcement — `onStageStart` then `onLoopStart` with the
@@ -20,11 +20,11 @@ import type {
20
20
  LoopDef,
21
21
  ResultProjection,
22
22
  UnitSelector,
23
- } from "../api.js";
24
- import { requireNonEmptyString } from "../internal-utils.js";
25
- import { type AnyJudge, assertShape, isPanel, judgeShapeIssues } from "../judge.js";
26
- import type { Output } from "../output.js";
27
- import { panelShapeIssues } from "./panel.js";
23
+ } from "../api.ts";
24
+ import { requireNonEmptyString } from "../internal-utils.ts";
25
+ import { type AnyJudge, assertShape, isPanel, judgeShapeIssues } from "../judge.ts";
26
+ import type { Output } from "../output.ts";
27
+ import { panelShapeIssues } from "./panel.ts";
28
28
 
29
29
  /** Default round cap when an `assess()` call omits `max`. Clamped by `run.maxIterations`. */
30
30
  export const DEFAULT_ASSESS_MAX = 8;
@@ -5,11 +5,11 @@
5
5
  * (the verdict-channel walk). Runner-free — safe on `registration`.
6
6
  */
7
7
 
8
- import type { LoopDef, StageDef } from "../api.js";
9
- import { type AnyJudge, isPanel } from "../judge.js";
10
- import { LOOP_DEFAULTS } from "./constructors.js";
11
- import { panelVerdictChannel } from "./panel.js";
12
- import { synthesizeVerifyLoop } from "./verify.js";
8
+ import type { LoopDef, StageDef } from "../api.ts";
9
+ import { type AnyJudge, isPanel } from "../judge.ts";
10
+ import { LOOP_DEFAULTS } from "./constructors.ts";
11
+ import { panelVerdictChannel } from "./panel.ts";
12
+ import { synthesizeVerifyLoop } from "./verify.ts";
13
13
 
14
14
  /**
15
15
  * THE round-0-entry-arg predicate — one spelling of "which kinds freeze a
@@ -17,7 +17,7 @@ import {
17
17
  STOP,
18
18
  type UnitSelector,
19
19
  type Workflow,
20
- } from "../api.js";
20
+ } from "../api.ts";
21
21
  import {
22
22
  type AnyJudge,
23
23
  type CanonicalFoldName,
@@ -25,8 +25,8 @@ import {
25
25
  isPanel,
26
26
  type Judge,
27
27
  type PanelJudge,
28
- } from "../judge.js";
29
- import { readName, readsAll } from "../stage-def.js";
28
+ } from "../judge.ts";
29
+ import { readName, readsAll } from "../stage-def.ts";
30
30
 
31
31
  // ===========================================================================
32
32
  // Introspection — per-stage control-flow + edge shape
package/loops/panel.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { type Static, Type } from "typebox";
9
- import type { StageDef } from "../api.js";
9
+ import type { StageDef } from "../api.ts";
10
10
  import {
11
11
  assertShape,
12
12
  brandCanonicalFold,
@@ -16,9 +16,9 @@ import {
16
16
  marksCanonicalFold,
17
17
  type NamedOutcome,
18
18
  type PanelJudge,
19
- } from "../judge.js";
20
- import { noopCollector } from "../outcomes/index.js";
21
- import type { Output } from "../output.js";
19
+ } from "../judge.ts";
20
+ import { noopCollector } from "../outcomes/index.ts";
21
+ import type { Output } from "../output.ts";
22
22
 
23
23
  /**
24
24
  * The canonical fold output shape — what `majority`/`all`/`any` emit and what
package/loops/verify.ts CHANGED
@@ -5,9 +5,9 @@
5
5
  * `effectiveLoopOf`). Runner-free — safe on `registration`.
6
6
  */
7
7
 
8
- import type { AssessLoop, VerifySpec } from "../api.js";
9
- import { assertShape } from "../judge.js";
10
- import { judgeSlotShapeIssues, VERIFY_LOOP_DEFAULTS } from "./constructors.js";
8
+ import type { AssessLoop, VerifySpec } from "../api.ts";
9
+ import { assertShape } from "../judge.ts";
10
+ import { judgeSlotShapeIssues, VERIFY_LOOP_DEFAULTS } from "./constructors.ts";
11
11
 
12
12
  /**
13
13
  * Per-stage post-condition judge: after each attempt of the stage completes,
package/messages.ts CHANGED
@@ -10,8 +10,8 @@
10
10
  * `/wf` usage strings live in command.ts / preview.ts.
11
11
  */
12
12
 
13
- import type { ProgressValue } from "./api.js";
14
- import { MAX_NAME_LENGTH } from "./state/index.js";
13
+ import type { ProgressValue } from "./api.ts";
14
+ import { MAX_NAME_LENGTH } from "./state/index.ts";
15
15
 
16
16
  /**
17
17
  * One structured descriptor per terminal-failure kind — the `toast` (the
@@ -12,10 +12,10 @@
12
12
  * `transcriptPathCollector({ pattern })` and supply the regex directly.
13
13
  */
14
14
 
15
- import type { ArtifactCollector } from "../../output-spec.js";
16
- import { requireOpt } from "./require-opt.js";
17
- import type { ToolCall } from "./tool-call.js";
18
- import { transcriptPathCollector } from "./transcript-path.js";
15
+ import type { ArtifactCollector } from "../../output-spec.ts";
16
+ import { requireOpt } from "./require-opt.ts";
17
+ import type { ToolCall } from "./tool-call.ts";
18
+ import { transcriptPathCollector } from "./transcript-path.ts";
19
19
 
20
20
  export interface DirectoryPathCollectorOpts {
21
21
  /** cwd-relative directory the agent's announced path must sit under (e.g. `"docs/adr"`). */
@@ -9,14 +9,14 @@
9
9
  * (`rpiv-pi` ships `rpivArtifactCollector` / `rpivBucketCollector`).
10
10
  */
11
11
 
12
- export { type DirectoryPathCollectorOpts, directoryPathCollector } from "./directory-path.js";
13
- export { type TextScanCollectorOpts, textScanCollector } from "./text-scan.js";
14
- export { type ToolCall, type ToolCallCollectorOpts, toolCallCollector } from "./tool-call.js";
15
- export { type TranscriptPathCollectorOpts, transcriptPathCollector } from "./transcript-path.js";
16
- export { unionCollectors } from "./union.js";
17
- export { type UrlCollectorOpts, urlCollector } from "./url.js";
12
+ export { type DirectoryPathCollectorOpts, directoryPathCollector } from "./directory-path.ts";
13
+ export { type TextScanCollectorOpts, textScanCollector } from "./text-scan.ts";
14
+ export { type ToolCall, type ToolCallCollectorOpts, toolCallCollector } from "./tool-call.ts";
15
+ export { type TranscriptPathCollectorOpts, transcriptPathCollector } from "./transcript-path.ts";
16
+ export { unionCollectors } from "./union.ts";
17
+ export { type UrlCollectorOpts, urlCollector } from "./url.ts";
18
18
  export {
19
19
  type WorkspaceDiffCollectorOpts,
20
20
  type WorkspaceDiffSnapshot,
21
21
  workspaceDiffCollector,
22
- } from "./workspace-diff.js";
22
+ } from "./workspace-diff.ts";
@@ -20,12 +20,12 @@
20
20
  * in wrapping layers, never here).
21
21
  */
22
22
 
23
- import type { ArtifactHandle } from "../../handle.js";
24
- import type { ArtifactCollector } from "../../output-spec.js";
25
- import { defineCollector } from "../../output-spec.js";
26
- import { type BranchEntry, iterToolUses, lastMatchInBranch } from "../../transcript.js";
27
- import { requireOpt } from "./require-opt.js";
28
- import type { ToolCall } from "./tool-call.js";
23
+ import type { ArtifactHandle } from "../../handle.ts";
24
+ import type { ArtifactCollector } from "../../output-spec.ts";
25
+ import { defineCollector } from "../../output-spec.ts";
26
+ import { type BranchEntry, iterToolUses, lastMatchInBranch } from "../../transcript.ts";
27
+ import { requireOpt } from "./require-opt.ts";
28
+ import type { ToolCall } from "./tool-call.ts";
29
29
 
30
30
  export interface TextScanCollectorOpts {
31
31
  /**
@@ -18,11 +18,11 @@
18
18
  * second-guess that policy.
19
19
  */
20
20
 
21
- import type { Artifact } from "../../handle.js";
22
- import type { ArtifactCollector } from "../../output-spec.js";
23
- import { defineCollector } from "../../output-spec.js";
24
- import { iterToolUses } from "../../transcript.js";
25
- import { requireOpt } from "./require-opt.js";
21
+ import type { Artifact } from "../../handle.ts";
22
+ import type { ArtifactCollector } from "../../output-spec.ts";
23
+ import { defineCollector } from "../../output-spec.ts";
24
+ import { iterToolUses } from "../../transcript.ts";
25
+ import { requireOpt } from "./require-opt.ts";
26
26
 
27
27
  export interface ToolCall {
28
28
  name: string;
@@ -22,11 +22,11 @@
22
22
  * (validated there, at construction, by delegation).
23
23
  */
24
24
 
25
- import { fs } from "../../handle.js";
26
- import type { ArtifactCollector } from "../../output-spec.js";
27
- import { requireOpt } from "./require-opt.js";
28
- import { textScanCollector } from "./text-scan.js";
29
- import type { ToolCall } from "./tool-call.js";
25
+ import { fs } from "../../handle.ts";
26
+ import type { ArtifactCollector } from "../../output-spec.ts";
27
+ import { requireOpt } from "./require-opt.ts";
28
+ import { textScanCollector } from "./text-scan.ts";
29
+ import type { ToolCall } from "./tool-call.ts";
30
30
 
31
31
  export interface TranscriptPathCollectorOpts {
32
32
  /**
@@ -28,10 +28,10 @@
28
28
  * a halt (produces) or a pass-through (side-effect).
29
29
  */
30
30
 
31
- import type { Artifact } from "../../handle.js";
32
- import { throwInvalid } from "../../internal-utils.js";
33
- import type { ArtifactCollector, CollectResult } from "../../output-spec.js";
34
- import { defineCollector } from "../../output-spec.js";
31
+ import type { Artifact } from "../../handle.ts";
32
+ import { throwInvalid } from "../../internal-utils.ts";
33
+ import type { ArtifactCollector, CollectResult } from "../../output-spec.ts";
34
+ import { defineCollector } from "../../output-spec.ts";
35
35
 
36
36
  /** Positional sub-collector snapshots; `undefined` when capture degraded or no sub declared one. */
37
37
  export type UnionSnapshot = unknown[] | undefined;
@@ -10,11 +10,11 @@
10
10
  * linear.app) pass their own RegExp.
11
11
  */
12
12
 
13
- import { url } from "../../handle.js";
14
- import type { ArtifactCollector } from "../../output-spec.js";
15
- import { requireOpt } from "./require-opt.js";
16
- import { textScanCollector } from "./text-scan.js";
17
- import type { ToolCall } from "./tool-call.js";
13
+ import { url } from "../../handle.ts";
14
+ import type { ArtifactCollector } from "../../output-spec.ts";
15
+ import { requireOpt } from "./require-opt.ts";
16
+ import { textScanCollector } from "./text-scan.ts";
17
+ import type { ToolCall } from "./tool-call.ts";
18
18
 
19
19
  /**
20
20
  * Conservative URL matcher — `https?://` plus non-whitespace, stopping
@@ -22,10 +22,10 @@
22
22
  * thin diff primitive.
23
23
  */
24
24
 
25
- import { type Artifact, fs as fsHandle } from "../../handle.js";
26
- import type { ArtifactCollector, CollectContext, CollectResult, SnapshotContext } from "../../output-spec.js";
27
- import { defineCollector } from "../../output-spec.js";
28
- import { execFileAsync, GIT_EXEC_TIMEOUT_MS } from "../exec.js";
25
+ import { type Artifact, fs as fsHandle } from "../../handle.ts";
26
+ import type { ArtifactCollector, CollectContext, CollectResult, SnapshotContext } from "../../output-spec.ts";
27
+ import { defineCollector } from "../../output-spec.ts";
28
+ import { execFileAsync, GIT_EXEC_TIMEOUT_MS } from "../exec.ts";
29
29
 
30
30
  export interface WorkspaceDiffSnapshot {
31
31
  /** Post-stage diff compares against this set of (path, statusCode) pairs captured pre-stage. */
@@ -25,8 +25,8 @@
25
25
  * pin the event loop.
26
26
  */
27
27
 
28
- import { type Artifact, opaque } from "../handle.js";
29
- import type { Output } from "../output.js";
28
+ import { type Artifact, opaque } from "../handle.ts";
29
+ import type { Output } from "../output.ts";
30
30
  import type {
31
31
  ArtifactCollector,
32
32
  ArtifactParser,
@@ -34,8 +34,8 @@ import type {
34
34
  Outcome,
35
35
  ParseContext,
36
36
  SnapshotContext,
37
- } from "../output-spec.js";
38
- import { execFileAsync, GIT_EXEC_TIMEOUT_MS } from "./exec.js";
37
+ } from "../output-spec.ts";
38
+ import { execFileAsync, GIT_EXEC_TIMEOUT_MS } from "./exec.ts";
39
39
 
40
40
  /**
41
41
  * Output data shape produced by `gitCommitParser` — co-located with the
package/outcomes/index.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * `./parsers`.
10
10
  */
11
11
 
12
- export * from "./collectors/index.js";
12
+ export * from "./collectors/index.ts";
13
13
  export {
14
14
  type GitCommitData,
15
15
  type GitCommitOutput,
@@ -18,6 +18,6 @@ export {
18
18
  gitCommitOutcome,
19
19
  gitCommitParser,
20
20
  gitHeadSnapshot,
21
- } from "./git-commit.js";
22
- export * from "./parsers/index.js";
23
- export { noopCollector, sideEffectOutcome } from "./side-effect.js";
21
+ } from "./git-commit.ts";
22
+ export * from "./parsers/index.ts";
23
+ export { noopCollector, sideEffectOutcome } from "./side-effect.ts";
@@ -8,4 +8,4 @@
8
8
  * own. The framework ships only universal interpretations.
9
9
  */
10
10
 
11
- export { jsonBodyParser } from "./json-body.js";
11
+ export { jsonBodyParser } from "./json-body.ts";
@@ -20,9 +20,9 @@
20
20
 
21
21
  import { existsSync, readFileSync } from "node:fs";
22
22
  import { isAbsolute, join } from "node:path";
23
- import { formatError } from "../../internal-utils.js";
24
- import type { ArtifactParser } from "../../output-spec.js";
25
- import { defineParser } from "../../output-spec.js";
23
+ import { formatError } from "../../internal-utils.ts";
24
+ import type { ArtifactParser } from "../../output-spec.ts";
25
+ import { defineParser } from "../../output-spec.ts";
26
26
 
27
27
  export const jsonBodyParser: ArtifactParser<unknown, "json", unknown> = defineParser({
28
28
  parse: (ctx) => {
@@ -14,7 +14,7 @@
14
14
  * No snapshot — side-effect stages have no pre-stage state to capture.
15
15
  */
16
16
 
17
- import type { ArtifactCollector, Outcome } from "../output-spec.js";
17
+ import type { ArtifactCollector, Outcome } from "../output-spec.ts";
18
18
 
19
19
  /** Collector primitive: always returns zero artifacts, never fatal. */
20
20
  export const noopCollector: ArtifactCollector = {
package/output-spec.ts CHANGED
@@ -19,9 +19,9 @@
19
19
  * consumers read the envelope shape there.
20
20
  */
21
21
 
22
- import type { Artifact } from "./handle.js";
23
- import type { RunView } from "./output.js";
24
- import type { BranchEntry } from "./transcript.js";
22
+ import type { Artifact } from "./handle.ts";
23
+ import type { RunView } from "./output.ts";
24
+ import type { BranchEntry } from "./transcript.ts";
25
25
 
26
26
  // ---------------------------------------------------------------------------
27
27
  // Snapshot — pre-stage reference capture (shared by collector + parser)
package/output.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * `output-spec.ts`.
11
11
  */
12
12
 
13
- import type { Artifact } from "./handle.js";
13
+ import type { Artifact } from "./handle.ts";
14
14
 
15
15
  // ---------------------------------------------------------------------------
16
16
  // Output envelope
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicesharp/rpiv-workflow",
3
- "version": "2.13.7",
3
+ "version": "2.13.9",
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.13.7",
115
+ "@juicesharp/rpiv-config": "^2.13.9",
116
116
  "jiti": "^2.7.0"
117
117
  },
118
118
  "peerDependencies": {
package/preview.ts CHANGED
@@ -5,11 +5,11 @@
5
5
  * string that `command.ts` hands straight to `ctx.ui.notify(..., "info")`.
6
6
  */
7
7
 
8
- import { STOP, type StageDef } from "./api.js";
9
- import { type ConfigLayer, renderConfigLayer } from "./layers.js";
10
- import type { LoadedWorkflows } from "./load/index.js";
11
- import { type AnyJudgeSpec, describeFlow, type StageShape } from "./loop-constructors.js";
12
- import type { SkillContractMap } from "./skill-contract.js";
8
+ import { STOP, type StageDef } from "./api.ts";
9
+ import { type ConfigLayer, renderConfigLayer } from "./layers.ts";
10
+ import type { LoadedWorkflows } from "./load/index.ts";
11
+ import { type AnyJudgeSpec, describeFlow, type StageShape } from "./loop-constructors.ts";
12
+ import type { SkillContractMap } from "./skill-contract.ts";
13
13
 
14
14
  // ===========================================================================
15
15
  // Layout constants — module-local; every column width, gap, and ellipsis the