@juicesharp/rpiv-workflow 2.13.8 → 2.13.10
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/api.ts +4 -4
- package/audit-ctx.ts +4 -4
- package/audit-rows.ts +6 -6
- package/audit.ts +17 -17
- package/built-ins.ts +2 -2
- package/chain-state.ts +7 -7
- package/command-run.ts +12 -12
- package/command.ts +3 -3
- package/death-scene.ts +4 -4
- package/docs/embedding.md +1 -1
- package/events.ts +6 -6
- package/execution-host.ts +3 -3
- package/extension.ts +3 -3
- package/failure-memos.ts +3 -3
- package/index.ts +2 -2
- package/internal.ts +10 -10
- package/judge.ts +4 -4
- package/load/alias.ts +4 -4
- package/load/cache.ts +4 -4
- package/load/index.ts +19 -19
- package/load/issues.ts +2 -2
- package/load/legacy.ts +2 -2
- package/load/merge.ts +7 -7
- package/load/normalize.ts +2 -2
- package/load/resolve-default.ts +2 -2
- package/load/shape-guards.ts +1 -1
- package/load/skill-contract-phase.ts +4 -4
- package/loop-constructors.ts +6 -6
- package/loop-def.ts +3 -3
- package/loop-kinds.ts +10 -10
- package/loop-parallel.ts +9 -9
- package/loop-waves.ts +3 -3
- package/loop.ts +11 -11
- package/loops/constructors.ts +5 -5
- package/loops/derivations.ts +5 -5
- package/loops/introspection.ts +3 -3
- package/loops/panel.ts +4 -4
- package/loops/verify.ts +3 -3
- package/messages.ts +2 -2
- package/outcomes/collectors/directory-path.ts +4 -4
- package/outcomes/collectors/index.ts +7 -7
- package/outcomes/collectors/text-scan.ts +6 -6
- package/outcomes/collectors/tool-call.ts +5 -5
- package/outcomes/collectors/transcript-path.ts +5 -5
- package/outcomes/collectors/union.ts +4 -4
- package/outcomes/collectors/url.ts +5 -5
- package/outcomes/collectors/workspace-diff.ts +4 -4
- package/outcomes/git-commit.ts +4 -4
- package/outcomes/index.ts +4 -4
- package/outcomes/parsers/index.ts +1 -1
- package/outcomes/parsers/json-body.ts +3 -3
- package/outcomes/side-effect.ts +1 -1
- package/output-spec.ts +3 -3
- package/output.ts +1 -1
- package/package.json +2 -2
- package/preview.ts +5 -5
- package/registration.ts +24 -24
- package/routing-dsl.ts +3 -3
- package/routing.ts +2 -2
- package/runner/by-name.ts +4 -4
- package/runner/by-run-id.ts +6 -6
- package/runner/chain-advance.ts +10 -10
- package/runner/errors.ts +1 -1
- package/runner/failure.ts +5 -5
- package/runner/index.ts +6 -6
- package/runner/input-validation.ts +8 -8
- package/runner/preflight.ts +7 -7
- package/runner/resolve-stage.ts +4 -4
- package/runner/resume-entry.ts +9 -9
- package/runner/resume-loop.ts +9 -9
- package/runner/resume.ts +15 -15
- package/runner/run-context.ts +8 -8
- package/runner/run-stage.ts +26 -26
- package/runner/runner.ts +18 -18
- package/runner/script-stage.ts +12 -12
- package/schema-compat.ts +2 -2
- package/semaphore.ts +1 -1
- package/sessions/bash-strikes.ts +1 -1
- package/sessions/extraction.ts +16 -16
- package/sessions/halt-routing.ts +10 -10
- package/sessions/index.ts +3 -3
- package/sessions/locate.ts +3 -3
- package/sessions/reattach.ts +8 -8
- package/sessions/sessions.ts +9 -9
- package/sessions/spawn.ts +2 -2
- package/sessions/success-persist.ts +7 -7
- package/skill-contract.ts +3 -3
- package/skill-contracts/composition.ts +5 -5
- package/skill-contracts/extension-points.ts +3 -3
- package/skill-contracts/harvest.ts +6 -6
- package/skill-contracts/index.ts +6 -6
- package/skill-contracts/registry.ts +2 -2
- package/stage-def.ts +5 -5
- package/stage-errors.ts +1 -1
- package/stage-identity.ts +3 -3
- package/startup.ts +5 -5
- package/state/index.ts +2 -2
- package/state/names.ts +3 -3
- package/state/raw.ts +1 -1
- package/state/reads.ts +5 -5
- package/state/resolve.ts +3 -3
- package/state/state.ts +8 -8
- package/state/writes.ts +3 -3
- package/transcript.ts +1 -1
- package/typebox-adapter.ts +2 -2
- package/types.ts +11 -11
- package/validate/contract-compat.ts +8 -8
- package/validate/graph.ts +2 -2
- package/validate/stage-rules.ts +7 -7
- package/validate-output.ts +3 -3
- package/validate-workflow.ts +7 -7
package/types.ts
CHANGED
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
* module are cycle-free).
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import type { ProgressValue, StageDef, Workflow } from "./api.
|
|
27
|
-
import type { LifecycleDispatcher, LifecycleListeners } from "./events.
|
|
28
|
-
import type { Artifact } from "./handle.
|
|
29
|
-
import type { ModelSelection, WorkflowHost, WorkflowHostContext } from "./host.
|
|
30
|
-
import type { Output } from "./output.
|
|
31
|
-
import type { SkillContractMap } from "./skill-contract.
|
|
32
|
-
import type { SessionRef } from "./state/index.
|
|
33
|
-
import type { BranchEntry } from "./transcript.
|
|
34
|
-
import type { RunTrigger } from "./triggers.
|
|
26
|
+
import type { ProgressValue, StageDef, Workflow } from "./api.ts";
|
|
27
|
+
import type { LifecycleDispatcher, LifecycleListeners } from "./events.ts";
|
|
28
|
+
import type { Artifact } from "./handle.ts";
|
|
29
|
+
import type { ModelSelection, WorkflowHost, WorkflowHostContext } from "./host.ts";
|
|
30
|
+
import type { Output } from "./output.ts";
|
|
31
|
+
import type { SkillContractMap } from "./skill-contract.ts";
|
|
32
|
+
import type { SessionRef } from "./state/index.ts";
|
|
33
|
+
import type { BranchEntry } from "./transcript.ts";
|
|
34
|
+
import type { RunTrigger } from "./triggers.ts";
|
|
35
35
|
|
|
36
36
|
// Re-export the host port so runtime layers can pull `RunContext`,
|
|
37
37
|
// `RunState`, and the threaded ctx + model type from this single
|
|
@@ -40,7 +40,7 @@ export type {
|
|
|
40
40
|
ModelSelection,
|
|
41
41
|
WorkflowHostContext,
|
|
42
42
|
WorkflowSessionContext,
|
|
43
|
-
} from "./host.
|
|
43
|
+
} from "./host.ts";
|
|
44
44
|
|
|
45
45
|
/** Mutable per-run bookkeeping threaded through the chain by reference. */
|
|
46
46
|
export interface RunState {
|
|
@@ -522,7 +522,7 @@ export interface SessionContext {
|
|
|
522
522
|
*/
|
|
523
523
|
export interface UnitRef {
|
|
524
524
|
parent: string;
|
|
525
|
-
role: import("./api.
|
|
525
|
+
role: import("./api.ts").UnitRole;
|
|
526
526
|
/** 0-based generation cursor (== the round index for assess loops). */
|
|
527
527
|
index: number;
|
|
528
528
|
/** Stable audit identity (`unit.id ?? unit.label` for fanout/iterate; undefined for assess). */
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
* calls that pass no contracts at all.
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
import { marksReadsData, STOP, type Workflow } from "../api.
|
|
25
|
-
import { extractJsonSchema } from "../json-schema.
|
|
26
|
-
import { forEachJudgeChannel } from "../loop-constructors.
|
|
27
|
-
import type { ProducesSpec, SkillContractMap } from "../skill-contract.
|
|
28
|
-
import { adjudicateChannel, compareDataChannel, getCompositionComparators } from "../skill-contracts/index.
|
|
29
|
-
import { readName } from "../stage-def.
|
|
30
|
-
import { isDispatchingStage, resolvePublishName, resolveSkill } from "../stage-identity.
|
|
31
|
-
import type { IssueReporter } from "./issue.
|
|
24
|
+
import { marksReadsData, STOP, type Workflow } from "../api.ts";
|
|
25
|
+
import { extractJsonSchema } from "../json-schema.ts";
|
|
26
|
+
import { forEachJudgeChannel } from "../loop-constructors.ts";
|
|
27
|
+
import type { ProducesSpec, SkillContractMap } from "../skill-contract.ts";
|
|
28
|
+
import { adjudicateChannel, compareDataChannel, getCompositionComparators } from "../skill-contracts/index.ts";
|
|
29
|
+
import { readName } from "../stage-def.ts";
|
|
30
|
+
import { isDispatchingStage, resolvePublishName, resolveSkill } from "../stage-identity.ts";
|
|
31
|
+
import type { IssueReporter } from "./issue.ts";
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Route edges that read `output.data[field]` (i.e. `defineRoute(...)` with
|
package/validate/graph.ts
CHANGED
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* `terminal` export.
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import { type EdgeTarget, STOP, type Workflow } from "../api.
|
|
21
|
-
import type { IssueReporter } from "./issue.
|
|
20
|
+
import { type EdgeTarget, STOP, type Workflow } from "../api.ts";
|
|
21
|
+
import type { IssueReporter } from "./issue.ts";
|
|
22
22
|
|
|
23
23
|
/** `name` is what users type as `/wf <name>` — empty string makes the workflow unreachable. */
|
|
24
24
|
export function checkWorkflowName(w: Workflow, r: IssueReporter): void {
|
package/validate/stage-rules.ts
CHANGED
|
@@ -20,24 +20,24 @@ import {
|
|
|
20
20
|
STAGE_KINDS,
|
|
21
21
|
type StageDef,
|
|
22
22
|
type Workflow,
|
|
23
|
-
} from "../api.
|
|
24
|
-
import { type AnyJudge, isPanel } from "../judge.
|
|
23
|
+
} from "../api.ts";
|
|
24
|
+
import { type AnyJudge, isPanel } from "../judge.ts";
|
|
25
25
|
import {
|
|
26
26
|
forEachJudgeChannel,
|
|
27
27
|
judgeSlotShapeIssues,
|
|
28
28
|
loopSpecOf,
|
|
29
29
|
panelVerdictChannel,
|
|
30
30
|
verifyShapeIssues,
|
|
31
|
-
} from "../loop-constructors.
|
|
32
|
-
import { readName } from "../stage-def.
|
|
33
|
-
import { actsPublishName, resolvePublishName } from "../stage-identity.
|
|
31
|
+
} from "../loop-constructors.ts";
|
|
32
|
+
import { readName } from "../stage-def.ts";
|
|
33
|
+
import { actsPublishName, resolvePublishName } from "../stage-identity.ts";
|
|
34
34
|
import {
|
|
35
35
|
MAX_VALIDATION_RETRIES,
|
|
36
36
|
MAX_VALIDATION_RETRY_TIMEOUT_MS,
|
|
37
37
|
MIN_VALIDATION_RETRIES,
|
|
38
38
|
MIN_VALIDATION_RETRY_TIMEOUT_MS,
|
|
39
|
-
} from "../validation-bounds.
|
|
40
|
-
import type { IssueReporter, ReportFn } from "./issue.
|
|
39
|
+
} from "../validation-bounds.ts";
|
|
40
|
+
import type { IssueReporter, ReportFn } from "./issue.ts";
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Orchestrates the per-stage rule blocks. The orchestration loop binds the
|
package/validate-output.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* `typebox-adapter.ts:typeboxSchema`).
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { StageSchema } from "./api.
|
|
9
|
-
import { extractJsonSchema, isJsonSchemaObject, type JsonSchemaObject } from "./json-schema.
|
|
8
|
+
import type { StageSchema } from "./api.ts";
|
|
9
|
+
import { extractJsonSchema, isJsonSchemaObject, type JsonSchemaObject } from "./json-schema.ts";
|
|
10
10
|
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
12
|
// Types
|
|
@@ -52,7 +52,7 @@ export {
|
|
|
52
52
|
MAX_VALIDATION_RETRY_TIMEOUT_MS,
|
|
53
53
|
MIN_VALIDATION_RETRIES,
|
|
54
54
|
MIN_VALIDATION_RETRY_TIMEOUT_MS,
|
|
55
|
-
} from "./validation-bounds.
|
|
55
|
+
} from "./validation-bounds.ts";
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Thrown by `withTimeout` (internal-utils.ts) when the caller passes a
|
package/validate-workflow.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* ./validate/contract-compat.ts — skill-contract / JSON-Schema compatibility
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import type { Workflow } from "./api.
|
|
26
|
-
import type { SkillContractMap } from "./skill-contract.
|
|
27
|
-
import { checkEdgeSchemaCompat, checkPredicateSchemas, checkReadsChannelCompat } from "./validate/contract-compat.
|
|
25
|
+
import type { Workflow } from "./api.ts";
|
|
26
|
+
import type { SkillContractMap } from "./skill-contract.ts";
|
|
27
|
+
import { checkEdgeSchemaCompat, checkPredicateSchemas, checkReadsChannelCompat } from "./validate/contract-compat.ts";
|
|
28
28
|
import {
|
|
29
29
|
checkEdgeKeys,
|
|
30
30
|
checkEdgeTargets,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
checkReachability,
|
|
33
33
|
checkStartStage,
|
|
34
34
|
checkWorkflowName,
|
|
35
|
-
} from "./validate/graph.
|
|
36
|
-
import { issueReporter, type WorkflowValidationIssue } from "./validate/issue.
|
|
35
|
+
} from "./validate/graph.ts";
|
|
36
|
+
import { issueReporter, type WorkflowValidationIssue } from "./validate/issue.ts";
|
|
37
37
|
import {
|
|
38
38
|
checkFanoutReadHint,
|
|
39
39
|
checkFanoutSource,
|
|
@@ -41,13 +41,13 @@ import {
|
|
|
41
41
|
checkStageSemantics,
|
|
42
42
|
fanoutPublishedChannels,
|
|
43
43
|
publishedNamesOf,
|
|
44
|
-
} from "./validate/stage-rules.
|
|
44
|
+
} from "./validate/stage-rules.ts";
|
|
45
45
|
|
|
46
46
|
export type {
|
|
47
47
|
ValidationIssueCode,
|
|
48
48
|
ValidationIssueParamsOf,
|
|
49
49
|
WorkflowValidationIssue,
|
|
50
|
-
} from "./validate/issue.
|
|
50
|
+
} from "./validate/issue.ts";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Validate one workflow. Aggregates all issues; never short-circuits. Caller
|