@interf/compiler 0.3.3 → 0.4.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/README.md +137 -243
- package/builtin-workflows/interf/README.md +19 -0
- package/builtin-workflows/interf/compile/stages/shape/SKILL.md +28 -0
- package/builtin-workflows/interf/compile/stages/structure/SKILL.md +18 -0
- package/builtin-workflows/interf/compile/stages/summarize/SKILL.md +18 -0
- package/builtin-workflows/interf/improve/SKILL.md +18 -0
- package/builtin-workflows/interf/use/query/SKILL.md +28 -0
- package/builtin-workflows/interf/workflow.json +120 -0
- package/builtin-workflows/interf/workspace.schema.json +75 -0
- package/dist/bin.d.ts +0 -1
- package/dist/bin.js +0 -1
- package/dist/commands/compile-controller.d.ts +14 -0
- package/dist/commands/compile-controller.js +409 -0
- package/dist/commands/compile.d.ts +8 -9
- package/dist/commands/compile.js +151 -153
- package/dist/commands/create-workflow-wizard.d.ts +4 -2
- package/dist/commands/create-workflow-wizard.js +33 -31
- package/dist/commands/create.d.ts +0 -1
- package/dist/commands/create.js +16 -12
- package/dist/commands/default.d.ts +0 -1
- package/dist/commands/default.js +1 -2
- package/dist/commands/doctor.d.ts +0 -1
- package/dist/commands/doctor.js +7 -22
- package/dist/commands/executor-flow.d.ts +0 -1
- package/dist/commands/executor-flow.js +0 -1
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +72 -15
- package/dist/commands/list.d.ts +0 -1
- package/dist/commands/list.js +0 -1
- package/dist/commands/reset.d.ts +0 -1
- package/dist/commands/reset.js +0 -1
- package/dist/commands/source-config-wizard.d.ts +28 -7
- package/dist/commands/source-config-wizard.js +159 -63
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +0 -1
- package/dist/commands/test-flow.d.ts +20 -10
- package/dist/commands/test-flow.js +89 -23
- package/dist/commands/test.d.ts +0 -1
- package/dist/commands/test.js +36 -72
- package/dist/commands/verify.d.ts +0 -1
- package/dist/commands/verify.js +0 -1
- package/dist/commands/workspace-flow.d.ts +3 -3
- package/dist/commands/workspace-flow.js +30 -12
- package/dist/index.d.ts +5 -6
- package/dist/index.js +3 -4
- package/dist/lib/agent-args.d.ts +0 -1
- package/dist/lib/agent-args.js +0 -1
- package/dist/lib/agent-constants.d.ts +0 -1
- package/dist/lib/agent-constants.js +0 -1
- package/dist/lib/agent-detection.d.ts +0 -1
- package/dist/lib/agent-detection.js +0 -1
- package/dist/lib/agent-execution.d.ts +0 -1
- package/dist/lib/agent-execution.js +47 -12
- package/dist/lib/agent-logs.d.ts +0 -1
- package/dist/lib/agent-logs.js +0 -1
- package/dist/lib/agent-preflight.d.ts +0 -1
- package/dist/lib/agent-preflight.js +1 -2
- package/dist/lib/agent-render.d.ts +0 -1
- package/dist/lib/agent-render.js +0 -1
- package/dist/lib/agent-shells.d.ts +30 -3
- package/dist/lib/agent-shells.js +527 -63
- package/dist/lib/agent-status.d.ts +0 -1
- package/dist/lib/agent-status.js +0 -1
- package/dist/lib/agent-types.d.ts +0 -1
- package/dist/lib/agent-types.js +0 -1
- package/dist/lib/agents.d.ts +0 -9
- package/dist/lib/agents.js +0 -9
- package/dist/lib/chart-guidance.d.ts +1 -0
- package/dist/lib/chart-guidance.js +8 -0
- package/dist/lib/config.d.ts +0 -3
- package/dist/lib/config.js +0 -5
- package/dist/lib/discovery.d.ts +0 -1
- package/dist/lib/discovery.js +0 -1
- package/dist/lib/execution-profile.d.ts +0 -1
- package/dist/lib/execution-profile.js +0 -1
- package/dist/lib/executors.d.ts +0 -1
- package/dist/lib/executors.js +0 -1
- package/dist/lib/filesystem.d.ts +0 -1
- package/dist/lib/filesystem.js +0 -1
- package/dist/lib/interf-bootstrap.d.ts +0 -1
- package/dist/lib/interf-bootstrap.js +6 -2
- package/dist/lib/interf-detect.d.ts +2 -2
- package/dist/lib/interf-detect.js +25 -8
- package/dist/lib/interf-scaffold.d.ts +0 -1
- package/dist/lib/interf-scaffold.js +54 -21
- package/dist/lib/interf-workflow-package.d.ts +18 -1
- package/dist/lib/interf-workflow-package.js +164 -23
- package/dist/lib/interf.d.ts +1 -2
- package/dist/lib/interf.js +1 -2
- package/dist/lib/local-workflows.d.ts +10 -5
- package/dist/lib/local-workflows.js +208 -97
- package/dist/lib/logger.d.ts +0 -1
- package/dist/lib/logger.js +0 -1
- package/dist/lib/obsidian.d.ts +0 -1
- package/dist/lib/obsidian.js +0 -1
- package/dist/lib/parse.d.ts +0 -1
- package/dist/lib/parse.js +0 -1
- package/dist/lib/registry.d.ts +0 -1
- package/dist/lib/registry.js +0 -1
- package/dist/lib/runtime-acceptance.d.ts +0 -1
- package/dist/lib/runtime-acceptance.js +1 -2
- package/dist/lib/runtime-contracts.d.ts +0 -1
- package/dist/lib/runtime-contracts.js +14 -8
- package/dist/lib/runtime-paths.d.ts +0 -1
- package/dist/lib/runtime-paths.js +5 -10
- package/dist/lib/runtime-prompt.d.ts +0 -1
- package/dist/lib/runtime-prompt.js +8 -23
- package/dist/lib/runtime-reconcile.d.ts +0 -1
- package/dist/lib/runtime-reconcile.js +7 -3
- package/dist/lib/runtime-runs.d.ts +0 -1
- package/dist/lib/runtime-runs.js +4 -5
- package/dist/lib/runtime-types.d.ts +0 -1
- package/dist/lib/runtime-types.js +0 -1
- package/dist/lib/runtime.d.ts +0 -1
- package/dist/lib/runtime.js +0 -1
- package/dist/lib/schema.d.ts +356 -51
- package/dist/lib/schema.js +189 -54
- package/dist/lib/source-config.d.ts +17 -8
- package/dist/lib/source-config.js +125 -11
- package/dist/lib/state-artifacts.d.ts +0 -1
- package/dist/lib/state-artifacts.js +0 -1
- package/dist/lib/state-health.d.ts +0 -1
- package/dist/lib/state-health.js +2 -3
- package/dist/lib/state-io.d.ts +1 -1
- package/dist/lib/state-io.js +9 -10
- package/dist/lib/state-paths.d.ts +0 -1
- package/dist/lib/state-paths.js +5 -11
- package/dist/lib/state-view.d.ts +0 -1
- package/dist/lib/state-view.js +7 -8
- package/dist/lib/state.d.ts +0 -1
- package/dist/lib/state.js +0 -1
- package/dist/lib/summarize-plan.d.ts +0 -1
- package/dist/lib/summarize-plan.js +3 -3
- package/dist/lib/test-execution.d.ts +14 -0
- package/dist/lib/{benchmark-execution.js → test-execution.js} +122 -120
- package/dist/lib/test-matrices.d.ts +90 -0
- package/dist/lib/test-matrices.js +96 -0
- package/dist/lib/test-paths.d.ts +12 -0
- package/dist/lib/test-paths.js +44 -0
- package/dist/lib/test-profile-presets.d.ts +57 -0
- package/dist/lib/test-profile-presets.js +50 -0
- package/dist/lib/test-sandbox.d.ts +11 -0
- package/dist/lib/{benchmark-sandbox.js → test-sandbox.js} +18 -13
- package/dist/lib/test-specs.d.ts +7 -0
- package/dist/lib/test-specs.js +114 -0
- package/dist/lib/test-targets.d.ts +5 -0
- package/dist/lib/test-targets.js +38 -0
- package/dist/lib/test-types.d.ts +17 -0
- package/dist/lib/test-types.js +1 -0
- package/dist/lib/test.d.ts +4 -0
- package/dist/lib/test.js +3 -0
- package/dist/lib/user-config.d.ts +0 -1
- package/dist/lib/user-config.js +0 -1
- package/dist/lib/util.d.ts +0 -2
- package/dist/lib/util.js +0 -2
- package/dist/lib/validate-helpers.d.ts +0 -1
- package/dist/lib/validate-helpers.js +0 -1
- package/dist/lib/validate-workspace.d.ts +0 -1
- package/dist/lib/validate-workspace.js +34 -25
- package/dist/lib/validate.d.ts +0 -1
- package/dist/lib/validate.js +55 -9
- package/dist/lib/workflow-abi.d.ts +138 -0
- package/dist/lib/workflow-abi.js +181 -0
- package/dist/lib/workflow-definitions.d.ts +26 -5
- package/dist/lib/workflow-definitions.js +105 -168
- package/dist/lib/workflow-helpers.d.ts +1 -2
- package/dist/lib/workflow-helpers.js +32 -21
- package/dist/lib/workflow-improvement.d.ts +22 -0
- package/dist/lib/workflow-improvement.js +396 -0
- package/dist/lib/workflow-review-paths.d.ts +10 -0
- package/dist/lib/workflow-review-paths.js +27 -0
- package/dist/lib/workflow-stage-runner.d.ts +1 -1
- package/dist/lib/workflow-stage-runner.js +4 -1
- package/dist/lib/workflows.d.ts +1 -2
- package/dist/lib/workflows.js +1 -2
- package/dist/lib/workspace-compile.d.ts +0 -1
- package/dist/lib/workspace-compile.js +146 -109
- package/dist/lib/workspace-home.d.ts +5 -0
- package/dist/lib/workspace-home.js +32 -0
- package/dist/lib/workspace-layout.d.ts +2 -0
- package/dist/lib/workspace-layout.js +60 -0
- package/dist/lib/workspace-paths.d.ts +41 -0
- package/dist/lib/workspace-paths.js +107 -0
- package/dist/lib/workspace-raw.d.ts +20 -2
- package/dist/lib/workspace-raw.js +6 -8
- package/dist/lib/workspace-reset.d.ts +0 -1
- package/dist/lib/workspace-reset.js +27 -5
- package/dist/lib/workspace-schema.d.ts +1 -10
- package/dist/lib/workspace-schema.js +16 -74
- package/package.json +17 -16
- package/dist/bin.d.ts.map +0 -1
- package/dist/bin.js.map +0 -1
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/create-workflow-wizard.d.ts.map +0 -1
- package/dist/commands/create-workflow-wizard.js.map +0 -1
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js.map +0 -1
- package/dist/commands/default.d.ts.map +0 -1
- package/dist/commands/default.js.map +0 -1
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js.map +0 -1
- package/dist/commands/executor-flow.d.ts.map +0 -1
- package/dist/commands/executor-flow.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/reset.d.ts.map +0 -1
- package/dist/commands/reset.js.map +0 -1
- package/dist/commands/source-config-wizard.d.ts.map +0 -1
- package/dist/commands/source-config-wizard.js.map +0 -1
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/test-flow.d.ts.map +0 -1
- package/dist/commands/test-flow.js.map +0 -1
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/verify.d.ts.map +0 -1
- package/dist/commands/verify.js.map +0 -1
- package/dist/commands/workspace-flow.d.ts.map +0 -1
- package/dist/commands/workspace-flow.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/agent-args.d.ts.map +0 -1
- package/dist/lib/agent-args.js.map +0 -1
- package/dist/lib/agent-constants.d.ts.map +0 -1
- package/dist/lib/agent-constants.js.map +0 -1
- package/dist/lib/agent-detection.d.ts.map +0 -1
- package/dist/lib/agent-detection.js.map +0 -1
- package/dist/lib/agent-execution.d.ts.map +0 -1
- package/dist/lib/agent-execution.js.map +0 -1
- package/dist/lib/agent-logs.d.ts.map +0 -1
- package/dist/lib/agent-logs.js.map +0 -1
- package/dist/lib/agent-preflight.d.ts.map +0 -1
- package/dist/lib/agent-preflight.js.map +0 -1
- package/dist/lib/agent-render.d.ts.map +0 -1
- package/dist/lib/agent-render.js.map +0 -1
- package/dist/lib/agent-shells.d.ts.map +0 -1
- package/dist/lib/agent-shells.js.map +0 -1
- package/dist/lib/agent-skills.d.ts +0 -21
- package/dist/lib/agent-skills.d.ts.map +0 -1
- package/dist/lib/agent-skills.js +0 -215
- package/dist/lib/agent-skills.js.map +0 -1
- package/dist/lib/agent-status.d.ts.map +0 -1
- package/dist/lib/agent-status.js.map +0 -1
- package/dist/lib/agent-types.d.ts.map +0 -1
- package/dist/lib/agent-types.js.map +0 -1
- package/dist/lib/agents.d.ts.map +0 -1
- package/dist/lib/agents.js.map +0 -1
- package/dist/lib/benchmark-execution.d.ts +0 -13
- package/dist/lib/benchmark-execution.d.ts.map +0 -1
- package/dist/lib/benchmark-execution.js.map +0 -1
- package/dist/lib/benchmark-paths.d.ts +0 -13
- package/dist/lib/benchmark-paths.d.ts.map +0 -1
- package/dist/lib/benchmark-paths.js +0 -44
- package/dist/lib/benchmark-paths.js.map +0 -1
- package/dist/lib/benchmark-sandbox.d.ts +0 -12
- package/dist/lib/benchmark-sandbox.d.ts.map +0 -1
- package/dist/lib/benchmark-sandbox.js.map +0 -1
- package/dist/lib/benchmark-specs.d.ts +0 -8
- package/dist/lib/benchmark-specs.d.ts.map +0 -1
- package/dist/lib/benchmark-specs.js +0 -115
- package/dist/lib/benchmark-specs.js.map +0 -1
- package/dist/lib/benchmark-targets.d.ts +0 -5
- package/dist/lib/benchmark-targets.d.ts.map +0 -1
- package/dist/lib/benchmark-targets.js +0 -38
- package/dist/lib/benchmark-targets.js.map +0 -1
- package/dist/lib/benchmark-types.d.ts +0 -18
- package/dist/lib/benchmark-types.d.ts.map +0 -1
- package/dist/lib/benchmark-types.js +0 -2
- package/dist/lib/benchmark-types.js.map +0 -1
- package/dist/lib/benchmark.d.ts +0 -5
- package/dist/lib/benchmark.d.ts.map +0 -1
- package/dist/lib/benchmark.js +0 -4
- package/dist/lib/benchmark.js.map +0 -1
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/discovery.d.ts.map +0 -1
- package/dist/lib/discovery.js.map +0 -1
- package/dist/lib/eval-packs.d.ts +0 -158
- package/dist/lib/eval-packs.d.ts.map +0 -1
- package/dist/lib/eval-packs.js +0 -149
- package/dist/lib/eval-packs.js.map +0 -1
- package/dist/lib/execution-profile.d.ts.map +0 -1
- package/dist/lib/execution-profile.js.map +0 -1
- package/dist/lib/executors.d.ts.map +0 -1
- package/dist/lib/executors.js.map +0 -1
- package/dist/lib/filesystem.d.ts.map +0 -1
- package/dist/lib/filesystem.js.map +0 -1
- package/dist/lib/interf-bootstrap.d.ts.map +0 -1
- package/dist/lib/interf-bootstrap.js.map +0 -1
- package/dist/lib/interf-detect.d.ts.map +0 -1
- package/dist/lib/interf-detect.js.map +0 -1
- package/dist/lib/interf-scaffold.d.ts.map +0 -1
- package/dist/lib/interf-scaffold.js.map +0 -1
- package/dist/lib/interf-workflow-package.d.ts.map +0 -1
- package/dist/lib/interf-workflow-package.js.map +0 -1
- package/dist/lib/interf.d.ts.map +0 -1
- package/dist/lib/interf.js.map +0 -1
- package/dist/lib/local-workflows.d.ts.map +0 -1
- package/dist/lib/local-workflows.js.map +0 -1
- package/dist/lib/logger.d.ts.map +0 -1
- package/dist/lib/logger.js.map +0 -1
- package/dist/lib/obsidian.d.ts.map +0 -1
- package/dist/lib/obsidian.js.map +0 -1
- package/dist/lib/parse.d.ts.map +0 -1
- package/dist/lib/parse.js.map +0 -1
- package/dist/lib/registry.d.ts.map +0 -1
- package/dist/lib/registry.js.map +0 -1
- package/dist/lib/runtime-acceptance.d.ts.map +0 -1
- package/dist/lib/runtime-acceptance.js.map +0 -1
- package/dist/lib/runtime-contracts.d.ts.map +0 -1
- package/dist/lib/runtime-contracts.js.map +0 -1
- package/dist/lib/runtime-paths.d.ts.map +0 -1
- package/dist/lib/runtime-paths.js.map +0 -1
- package/dist/lib/runtime-prompt.d.ts.map +0 -1
- package/dist/lib/runtime-prompt.js.map +0 -1
- package/dist/lib/runtime-reconcile.d.ts.map +0 -1
- package/dist/lib/runtime-reconcile.js.map +0 -1
- package/dist/lib/runtime-runs.d.ts.map +0 -1
- package/dist/lib/runtime-runs.js.map +0 -1
- package/dist/lib/runtime-types.d.ts.map +0 -1
- package/dist/lib/runtime-types.js.map +0 -1
- package/dist/lib/runtime.d.ts.map +0 -1
- package/dist/lib/runtime.js.map +0 -1
- package/dist/lib/schema.d.ts.map +0 -1
- package/dist/lib/schema.js.map +0 -1
- package/dist/lib/source-config.d.ts.map +0 -1
- package/dist/lib/source-config.js.map +0 -1
- package/dist/lib/state-artifacts.d.ts.map +0 -1
- package/dist/lib/state-artifacts.js.map +0 -1
- package/dist/lib/state-health.d.ts.map +0 -1
- package/dist/lib/state-health.js.map +0 -1
- package/dist/lib/state-io.d.ts.map +0 -1
- package/dist/lib/state-io.js.map +0 -1
- package/dist/lib/state-paths.d.ts.map +0 -1
- package/dist/lib/state-paths.js.map +0 -1
- package/dist/lib/state-view.d.ts.map +0 -1
- package/dist/lib/state-view.js.map +0 -1
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js.map +0 -1
- package/dist/lib/summarize-plan.d.ts.map +0 -1
- package/dist/lib/summarize-plan.js.map +0 -1
- package/dist/lib/user-config.d.ts.map +0 -1
- package/dist/lib/user-config.js.map +0 -1
- package/dist/lib/util.d.ts.map +0 -1
- package/dist/lib/util.js.map +0 -1
- package/dist/lib/validate-helpers.d.ts.map +0 -1
- package/dist/lib/validate-helpers.js.map +0 -1
- package/dist/lib/validate-workspace.d.ts.map +0 -1
- package/dist/lib/validate-workspace.js.map +0 -1
- package/dist/lib/validate.d.ts.map +0 -1
- package/dist/lib/validate.js.map +0 -1
- package/dist/lib/workflow-definitions.d.ts.map +0 -1
- package/dist/lib/workflow-definitions.js.map +0 -1
- package/dist/lib/workflow-helpers.d.ts.map +0 -1
- package/dist/lib/workflow-helpers.js.map +0 -1
- package/dist/lib/workflow-stage-runner.d.ts.map +0 -1
- package/dist/lib/workflow-stage-runner.js.map +0 -1
- package/dist/lib/workflow-starter-docs.d.ts +0 -7
- package/dist/lib/workflow-starter-docs.d.ts.map +0 -1
- package/dist/lib/workflow-starter-docs.js +0 -3
- package/dist/lib/workflow-starter-docs.js.map +0 -1
- package/dist/lib/workflows.d.ts.map +0 -1
- package/dist/lib/workflows.js.map +0 -1
- package/dist/lib/workspace-compile.d.ts.map +0 -1
- package/dist/lib/workspace-compile.js.map +0 -1
- package/dist/lib/workspace-docs.d.ts +0 -3
- package/dist/lib/workspace-docs.d.ts.map +0 -1
- package/dist/lib/workspace-docs.js +0 -82
- package/dist/lib/workspace-docs.js.map +0 -1
- package/dist/lib/workspace-raw.d.ts.map +0 -1
- package/dist/lib/workspace-raw.js.map +0 -1
- package/dist/lib/workspace-reset.d.ts.map +0 -1
- package/dist/lib/workspace-reset.js.map +0 -1
- package/dist/lib/workspace-schema.d.ts.map +0 -1
- package/dist/lib/workspace-schema.js.map +0 -1
- package/skills/benchmark/SKILL.md +0 -122
- package/skills/workflow/create/SKILL.md +0 -141
- package/skills/workspace/shape/SKILL.md +0 -15
- package/skills/workspace/structure/SKILL.md +0 -15
- package/skills/workspace/summarize/SKILL.md +0 -15
- package/templates/workspace/README.md +0 -24
- package/templates/workspace/interfignore +0 -2
|
@@ -5,6 +5,8 @@ import { parseJsonFrontmatter, readJsonFileUnchecked } from "./parse.js";
|
|
|
5
5
|
import { loadRuntimeRun } from "./runtime.js";
|
|
6
6
|
import { initWorkspaceState, loadState, refreshWorkspaceArtifacts, saveState, } from "./state.js";
|
|
7
7
|
import { validateWorkspace, validateWorkspaceCompile, validateWorkspaceStructure, validateWorkspaceSummarize, } from "./validate.js";
|
|
8
|
+
import { workspaceHomeIsShaped } from "./workspace-home.js";
|
|
9
|
+
import { workspaceRuntimeRoot } from "./workspace-paths.js";
|
|
8
10
|
function readActiveRunStartedAtMs(dirPath) {
|
|
9
11
|
const run = loadRuntimeRun(dirPath);
|
|
10
12
|
if (!run)
|
|
@@ -100,7 +102,7 @@ function buildWorkspaceInventoryEntries(dirPath) {
|
|
|
100
102
|
.sort((left, right) => left.source.localeCompare(right.source));
|
|
101
103
|
}
|
|
102
104
|
function writeWorkspaceInventory(dirPath, entries) {
|
|
103
|
-
writeFileSync(join(dirPath, "
|
|
105
|
+
writeFileSync(join(workspaceRuntimeRoot(dirPath), "inventory.json"), JSON.stringify({
|
|
104
106
|
entries,
|
|
105
107
|
total: entries.length,
|
|
106
108
|
}, null, 2) + "\n");
|
|
@@ -109,7 +111,7 @@ export function reconcileWorkspaceSummarizeRun(dirPath, expectedSummaryTotal) {
|
|
|
109
111
|
const startedAtMs = readActiveRunStartedAtMs(dirPath);
|
|
110
112
|
if (startedAtMs === null)
|
|
111
113
|
return false;
|
|
112
|
-
const plan = readJsonFileUnchecked(join(dirPath, "
|
|
114
|
+
const plan = readJsonFileUnchecked(join(workspaceRuntimeRoot(dirPath), "summarize-targets.json"), "summarize plan");
|
|
113
115
|
if (!plan || plan.targetCount === 0)
|
|
114
116
|
return false;
|
|
115
117
|
if (!plan.targets.every((target) => pathUpdatedSince(dirPath, target.output, startedAtMs))) {
|
|
@@ -203,6 +205,9 @@ export function reconcileWorkspaceShapeRun(dirPath) {
|
|
|
203
205
|
if (!pathUpdatedSince(dirPath, "home.md", startedAtMs)) {
|
|
204
206
|
return false;
|
|
205
207
|
}
|
|
208
|
+
if (!workspaceHomeIsShaped(dirPath)) {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
206
211
|
const summaryCount = countFilesRecursive(join(dirPath, "summaries"));
|
|
207
212
|
const inventoryEntries = buildWorkspaceInventoryEntries(dirPath);
|
|
208
213
|
if (summaryCount > 0 && inventoryEntries.length < summaryCount) {
|
|
@@ -239,4 +244,3 @@ export function reconcileWorkspaceShapeRun(dirPath) {
|
|
|
239
244
|
refreshWorkspaceArtifacts(dirPath, { ensureViewSpec: true });
|
|
240
245
|
return validateWorkspaceCompile(dirPath).ok;
|
|
241
246
|
}
|
|
242
|
-
//# sourceMappingURL=runtime-reconcile.js.map
|
|
@@ -9,4 +9,3 @@ export declare function beginRuntimeRun(dirPath: string, run: RuntimeRun): Runti
|
|
|
9
9
|
export declare function updateRuntimeRun(dirPath: string, patch: RuntimeRunPatch): RuntimeRun | null;
|
|
10
10
|
export declare function markRuntimeRunFailedAfterValidation(dirPath: string, summary: string): RuntimeRun | null;
|
|
11
11
|
export declare function markRuntimeRunSucceededAfterValidation(dirPath: string, summary: string): RuntimeRun | null;
|
|
12
|
-
//# sourceMappingURL=runtime-runs.d.ts.map
|
package/dist/lib/runtime-runs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { appendFileSync,
|
|
2
|
-
import { join, relative } from "node:path";
|
|
1
|
+
import { appendFileSync, mkdirSync, existsSync, readFileSync, writeFileSync, } from "node:fs";
|
|
2
|
+
import { dirname, join, relative } from "node:path";
|
|
3
3
|
import chalk from "chalk";
|
|
4
4
|
import { countFilesRecursive } from "./filesystem.js";
|
|
5
5
|
import { buildRuntimeExecutorInfo } from "./executors.js";
|
|
@@ -24,11 +24,11 @@ export function loadRuntimeRun(dirPath) {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
export function saveRuntimeRun(dirPath, run) {
|
|
27
|
-
mkdirSync(
|
|
27
|
+
mkdirSync(dirname(runPath(dirPath)), { recursive: true });
|
|
28
28
|
writeFileSync(runPath(dirPath), JSON.stringify(run, null, 2) + "\n");
|
|
29
29
|
}
|
|
30
30
|
export function writeStageContract(dirPath, contract) {
|
|
31
|
-
mkdirSync(
|
|
31
|
+
mkdirSync(dirname(stageContractPath(dirPath)), { recursive: true });
|
|
32
32
|
const path = stageContractPath(dirPath);
|
|
33
33
|
writeFileSync(path, JSON.stringify(contract, null, 2) + "\n");
|
|
34
34
|
return path;
|
|
@@ -342,4 +342,3 @@ function replaceOrAppendRunHistoryEntry(dirPath, run) {
|
|
|
342
342
|
nextLines.push(JSON.stringify(run));
|
|
343
343
|
writeFileSync(historyPath, `${nextLines.join("\n")}\n`);
|
|
344
344
|
}
|
|
345
|
-
//# sourceMappingURL=runtime-runs.js.map
|
|
@@ -50,4 +50,3 @@ export interface WorkspaceShapeContractOptions extends WorkspaceKnowledgeContrac
|
|
|
50
50
|
}
|
|
51
51
|
export interface RuntimeRunPatch extends Partial<Pick<RuntimeRun, "counts" | "summary" | "status" | "error" | "exit_code" | "finished_at">> {
|
|
52
52
|
}
|
|
53
|
-
//# sourceMappingURL=runtime-types.d.ts.map
|
package/dist/lib/runtime.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export { validateStageContractAcceptance } from "./runtime-acceptance.js";
|
|
|
4
4
|
export { buildStagePrompt } from "./runtime-prompt.js";
|
|
5
5
|
export { buildWorkspaceSummarizeContract, buildWorkspaceStructureContract, buildWorkspaceShapeContract, } from "./runtime-contracts.js";
|
|
6
6
|
export { beginRuntimeRun, loadRuntimeRun, markRuntimeRunFailedAfterValidation, markRuntimeRunSucceededAfterValidation, runExecutorStage, runExecutorSummarizeStage, saveRuntimeRun, updateRuntimeRun, writeStageContract, } from "./runtime-runs.js";
|
|
7
|
-
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/lib/runtime.js
CHANGED
|
@@ -3,4 +3,3 @@ export { validateStageContractAcceptance } from "./runtime-acceptance.js";
|
|
|
3
3
|
export { buildStagePrompt } from "./runtime-prompt.js";
|
|
4
4
|
export { buildWorkspaceSummarizeContract, buildWorkspaceStructureContract, buildWorkspaceShapeContract, } from "./runtime-contracts.js";
|
|
5
5
|
export { beginRuntimeRun, loadRuntimeRun, markRuntimeRunFailedAfterValidation, markRuntimeRunSucceededAfterValidation, runExecutorStage, runExecutorSummarizeStage, saveRuntimeRun, updateRuntimeRun, writeStageContract, } from "./runtime-runs.js";
|
|
6
|
-
//# sourceMappingURL=runtime.js.map
|
package/dist/lib/schema.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export type WorkspaceStage = "idle" | "summarize" | "structure" | "shape" | "com
|
|
|
4
4
|
export declare const RuntimeTargetTypeSchema: z.ZodEnum<{
|
|
5
5
|
workspace: "workspace";
|
|
6
6
|
}>;
|
|
7
|
-
export declare const
|
|
8
|
-
workspace: "workspace";
|
|
7
|
+
export declare const TestTargetTypeSchema: z.ZodEnum<{
|
|
9
8
|
raw: "raw";
|
|
9
|
+
workspace: "workspace";
|
|
10
10
|
}>;
|
|
11
11
|
export declare const WorkflowIdPattern: RegExp;
|
|
12
12
|
export declare const RuntimeStageSchema: z.ZodString;
|
|
@@ -17,24 +17,11 @@ export declare const RuntimeContractTypeSchema: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
export declare const WorkflowIdSchema: z.ZodString;
|
|
19
19
|
export declare const WorkflowZoneIdSchema: z.ZodString;
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
source: z.ZodObject<{
|
|
26
|
-
path: z.ZodString;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
}, z.core.$loose>>;
|
|
29
|
-
export declare const InterfConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"workspace">;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
about: z.ZodOptional<z.ZodString>;
|
|
33
|
-
workflow: z.ZodOptional<z.ZodString>;
|
|
34
|
-
source: z.ZodObject<{
|
|
35
|
-
path: z.ZodString;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
}, z.core.$loose>>;
|
|
20
|
+
export declare const WorkflowWorkspaceZoneKindSchema: z.ZodEnum<{
|
|
21
|
+
runtime: "runtime";
|
|
22
|
+
directory: "directory";
|
|
23
|
+
file: "file";
|
|
24
|
+
}>;
|
|
38
25
|
export declare const WorkspaceStateSchema: z.ZodObject<{
|
|
39
26
|
version: z.ZodLiteral<1>;
|
|
40
27
|
pending: z.ZodArray<z.ZodString>;
|
|
@@ -92,12 +79,12 @@ export declare const WorkspaceHealthSchema: z.ZodObject<{
|
|
|
92
79
|
failed: "failed";
|
|
93
80
|
}>;
|
|
94
81
|
stage: z.ZodEnum<{
|
|
95
|
-
idle: "idle";
|
|
96
|
-
compiled: "compiled";
|
|
97
|
-
failed: "failed";
|
|
98
82
|
summarize: "summarize";
|
|
99
83
|
structure: "structure";
|
|
100
84
|
shape: "shape";
|
|
85
|
+
idle: "idle";
|
|
86
|
+
compiled: "compiled";
|
|
87
|
+
failed: "failed";
|
|
101
88
|
}>;
|
|
102
89
|
summary: z.ZodString;
|
|
103
90
|
metrics: z.ZodObject<{
|
|
@@ -177,9 +164,9 @@ export declare const WorkflowWorkspaceZoneSchema: z.ZodObject<{
|
|
|
177
164
|
id: z.ZodString;
|
|
178
165
|
path: z.ZodString;
|
|
179
166
|
kind: z.ZodEnum<{
|
|
180
|
-
file: "file";
|
|
181
|
-
directory: "directory";
|
|
182
167
|
runtime: "runtime";
|
|
168
|
+
directory: "directory";
|
|
169
|
+
file: "file";
|
|
183
170
|
}>;
|
|
184
171
|
required: z.ZodBoolean;
|
|
185
172
|
owned_by: z.ZodArray<z.ZodString>;
|
|
@@ -194,9 +181,9 @@ export declare const WorkflowWorkspaceSchemaSchema: z.ZodObject<{
|
|
|
194
181
|
id: z.ZodString;
|
|
195
182
|
path: z.ZodString;
|
|
196
183
|
kind: z.ZodEnum<{
|
|
197
|
-
file: "file";
|
|
198
|
-
directory: "directory";
|
|
199
184
|
runtime: "runtime";
|
|
185
|
+
directory: "directory";
|
|
186
|
+
file: "file";
|
|
200
187
|
}>;
|
|
201
188
|
required: z.ZodBoolean;
|
|
202
189
|
owned_by: z.ZodArray<z.ZodString>;
|
|
@@ -414,14 +401,14 @@ export declare const WorkspaceInventorySchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
414
401
|
total: z.ZodOptional<z.ZodNumber>;
|
|
415
402
|
summary_total: z.ZodOptional<z.ZodNumber>;
|
|
416
403
|
}, z.core.$strip>]>;
|
|
417
|
-
export declare const
|
|
404
|
+
export declare const TestCaseExpectSchema: z.ZodObject<{
|
|
418
405
|
must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
419
406
|
must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
420
407
|
must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
421
408
|
min_words: z.ZodOptional<z.ZodNumber>;
|
|
422
409
|
max_words: z.ZodOptional<z.ZodNumber>;
|
|
423
410
|
}, z.core.$strip>;
|
|
424
|
-
export declare const
|
|
411
|
+
export declare const TestCaseSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
425
412
|
id: z.ZodString;
|
|
426
413
|
question: z.ZodString;
|
|
427
414
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -435,10 +422,10 @@ export declare const BenchmarkCaseSchema: z.ZodPipe<z.ZodTransform<unknown, unkn
|
|
|
435
422
|
}, z.core.$strip>>;
|
|
436
423
|
strictness: z.ZodOptional<z.ZodString>;
|
|
437
424
|
}, z.core.$strip>>;
|
|
438
|
-
export declare const
|
|
425
|
+
export declare const TestSpecSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
439
426
|
type: z.ZodEnum<{
|
|
440
|
-
workspace: "workspace";
|
|
441
427
|
raw: "raw";
|
|
428
|
+
workspace: "workspace";
|
|
442
429
|
}>;
|
|
443
430
|
name: z.ZodString;
|
|
444
431
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -457,7 +444,7 @@ export declare const BenchmarkSpecSchema: z.ZodPipe<z.ZodTransform<unknown, unkn
|
|
|
457
444
|
strictness: z.ZodOptional<z.ZodString>;
|
|
458
445
|
}, z.core.$strip>>>;
|
|
459
446
|
}, z.core.$strip>>;
|
|
460
|
-
export declare const
|
|
447
|
+
export declare const SourceTruthCheckSchema: z.ZodObject<{
|
|
461
448
|
id: z.ZodOptional<z.ZodString>;
|
|
462
449
|
question: z.ZodString;
|
|
463
450
|
answer: z.ZodOptional<z.ZodString>;
|
|
@@ -471,12 +458,14 @@ export declare const SourceEvalCaseSchema: z.ZodObject<{
|
|
|
471
458
|
strictness: z.ZodOptional<z.ZodString>;
|
|
472
459
|
}, z.core.$strict>;
|
|
473
460
|
export declare const SourceWorkspaceMaxAttemptsSchema: z.ZodNumber;
|
|
461
|
+
export declare const SourceWorkspaceMaxLoopsSchema: z.ZodNumber;
|
|
474
462
|
export declare const SourceWorkspaceConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
475
463
|
id: z.ZodOptional<z.ZodString>;
|
|
476
464
|
name: z.ZodString;
|
|
477
465
|
about: z.ZodOptional<z.ZodString>;
|
|
478
466
|
workflow: z.ZodOptional<z.ZodString>;
|
|
479
467
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
468
|
+
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
480
469
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
481
470
|
id: z.ZodOptional<z.ZodString>;
|
|
482
471
|
question: z.ZodString;
|
|
@@ -491,6 +480,239 @@ export declare const SourceWorkspaceConfigSchema: z.ZodPipe<z.ZodTransform<unkno
|
|
|
491
480
|
strictness: z.ZodOptional<z.ZodString>;
|
|
492
481
|
}, z.core.$strict>>>;
|
|
493
482
|
}, z.core.$strict>>;
|
|
483
|
+
export declare const WorkspaceInterfConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
484
|
+
type: z.ZodLiteral<"workspace">;
|
|
485
|
+
name: z.ZodString;
|
|
486
|
+
about: z.ZodOptional<z.ZodString>;
|
|
487
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
488
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
489
|
+
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
490
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
491
|
+
id: z.ZodOptional<z.ZodString>;
|
|
492
|
+
question: z.ZodString;
|
|
493
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
494
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
495
|
+
must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
496
|
+
must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
497
|
+
must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
498
|
+
min_words: z.ZodOptional<z.ZodNumber>;
|
|
499
|
+
max_words: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
}, z.core.$strip>>;
|
|
501
|
+
strictness: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, z.core.$strict>>>;
|
|
503
|
+
workflow_origin: z.ZodOptional<z.ZodObject<{
|
|
504
|
+
selected: z.ZodString;
|
|
505
|
+
local_draft: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
source: z.ZodObject<{
|
|
508
|
+
path: z.ZodString;
|
|
509
|
+
control_path: z.ZodOptional<z.ZodString>;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
}, z.core.$loose>>;
|
|
512
|
+
export declare const InterfConfigSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
513
|
+
type: z.ZodLiteral<"workspace">;
|
|
514
|
+
name: z.ZodString;
|
|
515
|
+
about: z.ZodOptional<z.ZodString>;
|
|
516
|
+
workflow: z.ZodOptional<z.ZodString>;
|
|
517
|
+
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
520
|
+
id: z.ZodOptional<z.ZodString>;
|
|
521
|
+
question: z.ZodString;
|
|
522
|
+
answer: z.ZodOptional<z.ZodString>;
|
|
523
|
+
expect: z.ZodOptional<z.ZodObject<{
|
|
524
|
+
must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
|
+
must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
526
|
+
must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
527
|
+
min_words: z.ZodOptional<z.ZodNumber>;
|
|
528
|
+
max_words: z.ZodOptional<z.ZodNumber>;
|
|
529
|
+
}, z.core.$strip>>;
|
|
530
|
+
strictness: z.ZodOptional<z.ZodString>;
|
|
531
|
+
}, z.core.$strict>>>;
|
|
532
|
+
workflow_origin: z.ZodOptional<z.ZodObject<{
|
|
533
|
+
selected: z.ZodString;
|
|
534
|
+
local_draft: z.ZodOptional<z.ZodBoolean>;
|
|
535
|
+
}, z.core.$strip>>;
|
|
536
|
+
source: z.ZodObject<{
|
|
537
|
+
path: z.ZodString;
|
|
538
|
+
control_path: z.ZodOptional<z.ZodString>;
|
|
539
|
+
}, z.core.$strip>;
|
|
540
|
+
}, z.core.$loose>>;
|
|
541
|
+
export declare const WorkflowImprovementLoopSummarySchema: z.ZodObject<{
|
|
542
|
+
variation: z.ZodNumber;
|
|
543
|
+
kind: z.ZodEnum<{
|
|
544
|
+
baseline: "baseline";
|
|
545
|
+
edited: "edited";
|
|
546
|
+
}>;
|
|
547
|
+
attempts_run: z.ZodNumber;
|
|
548
|
+
passed: z.ZodBoolean;
|
|
549
|
+
passed_questions: z.ZodNumber;
|
|
550
|
+
total_questions: z.ZodNumber;
|
|
551
|
+
failed_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
552
|
+
test_run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
553
|
+
test_sandbox_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
554
|
+
summary: z.ZodString;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
export declare const WorkflowImprovementContextSchema: z.ZodObject<{
|
|
557
|
+
kind: z.ZodLiteral<"interf-workflow-improvement-loop">;
|
|
558
|
+
version: z.ZodLiteral<1>;
|
|
559
|
+
generated_at: z.ZodString;
|
|
560
|
+
target_name: z.ZodString;
|
|
561
|
+
workflow_id: z.ZodString;
|
|
562
|
+
loop_index: z.ZodNumber;
|
|
563
|
+
max_loops: z.ZodNumber;
|
|
564
|
+
max_attempts: z.ZodNumber;
|
|
565
|
+
review_paths: z.ZodObject<{
|
|
566
|
+
workflow_root: z.ZodString;
|
|
567
|
+
workspace_runtime: z.ZodNullable<z.ZodString>;
|
|
568
|
+
test_comparisons: z.ZodNullable<z.ZodString>;
|
|
569
|
+
execution_shells: z.ZodNullable<z.ZodString>;
|
|
570
|
+
test_runs: z.ZodNullable<z.ZodString>;
|
|
571
|
+
test_sandboxes: z.ZodNullable<z.ZodString>;
|
|
572
|
+
}, z.core.$strip>;
|
|
573
|
+
truth_checks: z.ZodObject<{
|
|
574
|
+
count: z.ZodNumber;
|
|
575
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
576
|
+
id: z.ZodString;
|
|
577
|
+
question: z.ZodString;
|
|
578
|
+
}, z.core.$strip>>;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
previous_variations: z.ZodArray<z.ZodObject<{
|
|
581
|
+
variation: z.ZodNumber;
|
|
582
|
+
kind: z.ZodEnum<{
|
|
583
|
+
baseline: "baseline";
|
|
584
|
+
edited: "edited";
|
|
585
|
+
}>;
|
|
586
|
+
attempts_run: z.ZodNumber;
|
|
587
|
+
passed: z.ZodBoolean;
|
|
588
|
+
passed_questions: z.ZodNumber;
|
|
589
|
+
total_questions: z.ZodNumber;
|
|
590
|
+
failed_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
test_run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
test_sandbox_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
593
|
+
summary: z.ZodString;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
latest_failure: z.ZodNullable<z.ZodObject<{
|
|
596
|
+
variation: z.ZodNumber;
|
|
597
|
+
kind: z.ZodEnum<{
|
|
598
|
+
baseline: "baseline";
|
|
599
|
+
edited: "edited";
|
|
600
|
+
}>;
|
|
601
|
+
attempts_run: z.ZodNumber;
|
|
602
|
+
passed: z.ZodBoolean;
|
|
603
|
+
passed_questions: z.ZodNumber;
|
|
604
|
+
total_questions: z.ZodNumber;
|
|
605
|
+
failed_stage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
606
|
+
test_run_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
|
+
test_sandbox_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
|
+
summary: z.ZodString;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
}, z.core.$strip>;
|
|
611
|
+
export type WorkflowImprovementLoopSummary = z.infer<typeof WorkflowImprovementLoopSummarySchema>;
|
|
612
|
+
export type WorkflowImprovementContext = z.infer<typeof WorkflowImprovementContextSchema>;
|
|
613
|
+
export declare const PreservedShellTypeSchema: z.ZodEnum<{
|
|
614
|
+
"stage-execution": "stage-execution";
|
|
615
|
+
"workflow-improvement": "workflow-improvement";
|
|
616
|
+
}>;
|
|
617
|
+
export declare const PreservedShellSnapshotSchema: z.ZodObject<{
|
|
618
|
+
kind: z.ZodLiteral<"interf-preserved-shell">;
|
|
619
|
+
version: z.ZodLiteral<1>;
|
|
620
|
+
shell_type: z.ZodEnum<{
|
|
621
|
+
"stage-execution": "stage-execution";
|
|
622
|
+
"workflow-improvement": "workflow-improvement";
|
|
623
|
+
}>;
|
|
624
|
+
generated_at: z.ZodString;
|
|
625
|
+
root_path: z.ZodString;
|
|
626
|
+
materialized_symlinks: z.ZodNumber;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
export declare const WorkflowPackageValidationSchema: z.ZodObject<{
|
|
629
|
+
ok: z.ZodBoolean;
|
|
630
|
+
summary: z.ZodString;
|
|
631
|
+
errors: z.ZodArray<z.ZodString>;
|
|
632
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
633
|
+
}, z.core.$strip>;
|
|
634
|
+
export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
|
|
635
|
+
kind: z.ZodLiteral<"interf-workflow-improvement-loop-record">;
|
|
636
|
+
version: z.ZodLiteral<1>;
|
|
637
|
+
recorded_at: z.ZodString;
|
|
638
|
+
run_id: z.ZodString;
|
|
639
|
+
loop_index: z.ZodNumber;
|
|
640
|
+
target_name: z.ZodString;
|
|
641
|
+
workflow_id: z.ZodString;
|
|
642
|
+
result: z.ZodEnum<{
|
|
643
|
+
updated: "updated";
|
|
644
|
+
"no-change": "no-change";
|
|
645
|
+
invalid: "invalid";
|
|
646
|
+
"executor-failed": "executor-failed";
|
|
647
|
+
}>;
|
|
648
|
+
changed: z.ZodBoolean;
|
|
649
|
+
applied: z.ZodBoolean;
|
|
650
|
+
summary: z.ZodString;
|
|
651
|
+
shell_path: z.ZodString;
|
|
652
|
+
loop_root_path: z.ZodString;
|
|
653
|
+
context_path: z.ZodString;
|
|
654
|
+
workflow_before_path: z.ZodString;
|
|
655
|
+
workflow_after_path: z.ZodString;
|
|
656
|
+
prompt_log_path: z.ZodString;
|
|
657
|
+
event_log_path: z.ZodString;
|
|
658
|
+
status_log_path: z.ZodString;
|
|
659
|
+
preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
|
|
660
|
+
validation: z.ZodNullable<z.ZodObject<{
|
|
661
|
+
ok: z.ZodBoolean;
|
|
662
|
+
summary: z.ZodString;
|
|
663
|
+
errors: z.ZodArray<z.ZodString>;
|
|
664
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
|
|
668
|
+
kind: z.ZodLiteral<"interf-workflow-improvement-run">;
|
|
669
|
+
version: z.ZodLiteral<1>;
|
|
670
|
+
generated_at: z.ZodString;
|
|
671
|
+
updated_at: z.ZodString;
|
|
672
|
+
run_id: z.ZodString;
|
|
673
|
+
target_name: z.ZodString;
|
|
674
|
+
workflow_id: z.ZodString;
|
|
675
|
+
max_loops: z.ZodNumber;
|
|
676
|
+
max_attempts: z.ZodNumber;
|
|
677
|
+
loops: z.ZodArray<z.ZodObject<{
|
|
678
|
+
kind: z.ZodLiteral<"interf-workflow-improvement-loop-record">;
|
|
679
|
+
version: z.ZodLiteral<1>;
|
|
680
|
+
recorded_at: z.ZodString;
|
|
681
|
+
run_id: z.ZodString;
|
|
682
|
+
loop_index: z.ZodNumber;
|
|
683
|
+
target_name: z.ZodString;
|
|
684
|
+
workflow_id: z.ZodString;
|
|
685
|
+
result: z.ZodEnum<{
|
|
686
|
+
updated: "updated";
|
|
687
|
+
"no-change": "no-change";
|
|
688
|
+
invalid: "invalid";
|
|
689
|
+
"executor-failed": "executor-failed";
|
|
690
|
+
}>;
|
|
691
|
+
changed: z.ZodBoolean;
|
|
692
|
+
applied: z.ZodBoolean;
|
|
693
|
+
summary: z.ZodString;
|
|
694
|
+
shell_path: z.ZodString;
|
|
695
|
+
loop_root_path: z.ZodString;
|
|
696
|
+
context_path: z.ZodString;
|
|
697
|
+
workflow_before_path: z.ZodString;
|
|
698
|
+
workflow_after_path: z.ZodString;
|
|
699
|
+
prompt_log_path: z.ZodString;
|
|
700
|
+
event_log_path: z.ZodString;
|
|
701
|
+
status_log_path: z.ZodString;
|
|
702
|
+
preserved_shell_manifest_path: z.ZodNullable<z.ZodString>;
|
|
703
|
+
validation: z.ZodNullable<z.ZodObject<{
|
|
704
|
+
ok: z.ZodBoolean;
|
|
705
|
+
summary: z.ZodString;
|
|
706
|
+
errors: z.ZodArray<z.ZodString>;
|
|
707
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
708
|
+
}, z.core.$strip>>;
|
|
709
|
+
}, z.core.$strip>>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
export type PreservedShellType = z.infer<typeof PreservedShellTypeSchema>;
|
|
712
|
+
export type PreservedShellSnapshot = z.infer<typeof PreservedShellSnapshotSchema>;
|
|
713
|
+
export type WorkflowPackageValidation = z.infer<typeof WorkflowPackageValidationSchema>;
|
|
714
|
+
export type WorkflowImprovementLoopRecord = z.infer<typeof WorkflowImprovementLoopRecordSchema>;
|
|
715
|
+
export type WorkflowImprovementRunLedger = z.infer<typeof WorkflowImprovementRunLedgerSchema>;
|
|
494
716
|
export declare const SourceFolderConfigSchema: z.ZodObject<{
|
|
495
717
|
workspaces: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
496
718
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -498,6 +720,7 @@ export declare const SourceFolderConfigSchema: z.ZodObject<{
|
|
|
498
720
|
about: z.ZodOptional<z.ZodString>;
|
|
499
721
|
workflow: z.ZodOptional<z.ZodString>;
|
|
500
722
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
723
|
+
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
501
724
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
502
725
|
id: z.ZodOptional<z.ZodString>;
|
|
503
726
|
question: z.ZodString;
|
|
@@ -513,12 +736,12 @@ export declare const SourceFolderConfigSchema: z.ZodObject<{
|
|
|
513
736
|
}, z.core.$strict>>>;
|
|
514
737
|
}, z.core.$strict>>>>;
|
|
515
738
|
}, z.core.$strict>;
|
|
516
|
-
export declare const
|
|
739
|
+
export declare const TestCheckResultSchema: z.ZodObject<{
|
|
517
740
|
label: z.ZodString;
|
|
518
741
|
ok: z.ZodBoolean;
|
|
519
742
|
detail: z.ZodString;
|
|
520
743
|
}, z.core.$strip>;
|
|
521
|
-
export declare const
|
|
744
|
+
export declare const TestCaseResultSchema: z.ZodObject<{
|
|
522
745
|
caseId: z.ZodString;
|
|
523
746
|
question: z.ZodString;
|
|
524
747
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -534,11 +757,11 @@ export declare const BenchmarkCaseResultSchema: z.ZodObject<{
|
|
|
534
757
|
answer: z.ZodOptional<z.ZodString>;
|
|
535
758
|
trace: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
536
759
|
}, z.core.$strip>;
|
|
537
|
-
export declare const
|
|
760
|
+
export declare const TestTargetResultSchema: z.ZodObject<{
|
|
538
761
|
target: z.ZodObject<{
|
|
539
762
|
type: z.ZodEnum<{
|
|
540
|
-
workspace: "workspace";
|
|
541
763
|
raw: "raw";
|
|
764
|
+
workspace: "workspace";
|
|
542
765
|
}>;
|
|
543
766
|
name: z.ZodString;
|
|
544
767
|
path: z.ZodString;
|
|
@@ -567,16 +790,16 @@ export declare const BenchmarkTargetResultSchema: z.ZodObject<{
|
|
|
567
790
|
trace: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
568
791
|
}, z.core.$strip>>;
|
|
569
792
|
}, z.core.$strip>;
|
|
570
|
-
export declare const
|
|
571
|
-
kind: z.ZodLiteral<"interf-
|
|
793
|
+
export declare const TestTargetRunSchema: z.ZodObject<{
|
|
794
|
+
kind: z.ZodLiteral<"interf-test-target-run">;
|
|
572
795
|
version: z.ZodLiteral<1>;
|
|
573
796
|
generated_at: z.ZodString;
|
|
574
|
-
|
|
797
|
+
spec: z.ZodObject<{
|
|
575
798
|
id: z.ZodString;
|
|
576
799
|
name: z.ZodString;
|
|
577
800
|
type: z.ZodEnum<{
|
|
578
|
-
workspace: "workspace";
|
|
579
801
|
raw: "raw";
|
|
802
|
+
workspace: "workspace";
|
|
580
803
|
}>;
|
|
581
804
|
file: z.ZodString;
|
|
582
805
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -615,8 +838,8 @@ export declare const BenchmarkRunResultSchema: z.ZodObject<{
|
|
|
615
838
|
results: z.ZodArray<z.ZodObject<{
|
|
616
839
|
target: z.ZodObject<{
|
|
617
840
|
type: z.ZodEnum<{
|
|
618
|
-
workspace: "workspace";
|
|
619
841
|
raw: "raw";
|
|
842
|
+
workspace: "workspace";
|
|
620
843
|
}>;
|
|
621
844
|
name: z.ZodString;
|
|
622
845
|
path: z.ZodString;
|
|
@@ -646,6 +869,85 @@ export declare const BenchmarkRunResultSchema: z.ZodObject<{
|
|
|
646
869
|
}, z.core.$strip>>;
|
|
647
870
|
}, z.core.$strip>>;
|
|
648
871
|
}, z.core.$strip>;
|
|
872
|
+
export declare const TestRunModeSchema: z.ZodEnum<{
|
|
873
|
+
raw: "raw";
|
|
874
|
+
workspace: "workspace";
|
|
875
|
+
both: "both";
|
|
876
|
+
}>;
|
|
877
|
+
export declare const TestRunTargetSummarySchema: z.ZodObject<{
|
|
878
|
+
label: z.ZodString;
|
|
879
|
+
run_path: z.ZodString;
|
|
880
|
+
ok: z.ZodBoolean;
|
|
881
|
+
passed_cases: z.ZodNumber;
|
|
882
|
+
total_cases: z.ZodNumber;
|
|
883
|
+
passed_checks: z.ZodNumber;
|
|
884
|
+
total_checks: z.ZodNumber;
|
|
885
|
+
target: z.ZodObject<{
|
|
886
|
+
type: z.ZodEnum<{
|
|
887
|
+
raw: "raw";
|
|
888
|
+
workspace: "workspace";
|
|
889
|
+
}>;
|
|
890
|
+
name: z.ZodString;
|
|
891
|
+
path: z.ZodString;
|
|
892
|
+
workflow: z.ZodString;
|
|
893
|
+
}, z.core.$strip>;
|
|
894
|
+
}, z.core.$strip>;
|
|
895
|
+
export declare const TestRunComparisonSchema: z.ZodObject<{
|
|
896
|
+
kind: z.ZodLiteral<"interf-test-run">;
|
|
897
|
+
version: z.ZodLiteral<1>;
|
|
898
|
+
generated_at: z.ZodString;
|
|
899
|
+
mode: z.ZodEnum<{
|
|
900
|
+
raw: "raw";
|
|
901
|
+
workspace: "workspace";
|
|
902
|
+
both: "both";
|
|
903
|
+
}>;
|
|
904
|
+
source_path: z.ZodString;
|
|
905
|
+
workspace: z.ZodObject<{
|
|
906
|
+
name: z.ZodString;
|
|
907
|
+
path: z.ZodString;
|
|
908
|
+
}, z.core.$strip>;
|
|
909
|
+
raw: z.ZodNullable<z.ZodObject<{
|
|
910
|
+
label: z.ZodString;
|
|
911
|
+
run_path: z.ZodString;
|
|
912
|
+
ok: z.ZodBoolean;
|
|
913
|
+
passed_cases: z.ZodNumber;
|
|
914
|
+
total_cases: z.ZodNumber;
|
|
915
|
+
passed_checks: z.ZodNumber;
|
|
916
|
+
total_checks: z.ZodNumber;
|
|
917
|
+
target: z.ZodObject<{
|
|
918
|
+
type: z.ZodEnum<{
|
|
919
|
+
raw: "raw";
|
|
920
|
+
workspace: "workspace";
|
|
921
|
+
}>;
|
|
922
|
+
name: z.ZodString;
|
|
923
|
+
path: z.ZodString;
|
|
924
|
+
workflow: z.ZodString;
|
|
925
|
+
}, z.core.$strip>;
|
|
926
|
+
}, z.core.$strip>>;
|
|
927
|
+
compiled_workspace: z.ZodNullable<z.ZodObject<{
|
|
928
|
+
label: z.ZodString;
|
|
929
|
+
run_path: z.ZodString;
|
|
930
|
+
ok: z.ZodBoolean;
|
|
931
|
+
passed_cases: z.ZodNumber;
|
|
932
|
+
total_cases: z.ZodNumber;
|
|
933
|
+
passed_checks: z.ZodNumber;
|
|
934
|
+
total_checks: z.ZodNumber;
|
|
935
|
+
target: z.ZodObject<{
|
|
936
|
+
type: z.ZodEnum<{
|
|
937
|
+
raw: "raw";
|
|
938
|
+
workspace: "workspace";
|
|
939
|
+
}>;
|
|
940
|
+
name: z.ZodString;
|
|
941
|
+
path: z.ZodString;
|
|
942
|
+
workflow: z.ZodString;
|
|
943
|
+
}, z.core.$strip>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
summary: z.ZodObject<{
|
|
946
|
+
raw_pass_rate: z.ZodNullable<z.ZodNumber>;
|
|
947
|
+
compiled_pass_rate: z.ZodNullable<z.ZodNumber>;
|
|
948
|
+
pass_rate_delta: z.ZodNullable<z.ZodNumber>;
|
|
949
|
+
}, z.core.$strip>;
|
|
950
|
+
}, z.core.$strip>;
|
|
649
951
|
export declare const InterfUserConfigSchema: z.ZodObject<{
|
|
650
952
|
agent: z.ZodString;
|
|
651
953
|
agentCommand: z.ZodString;
|
|
@@ -665,12 +967,13 @@ export type WorkspaceViewSpec = z.infer<typeof WorkspaceViewSpecSchema>;
|
|
|
665
967
|
export type WorkspaceRawSnapshot = z.infer<typeof WorkspaceRawSnapshotSchema>;
|
|
666
968
|
export type WorkflowWorkspaceZone = z.infer<typeof WorkflowWorkspaceZoneSchema>;
|
|
667
969
|
export type WorkflowWorkspaceSchema = z.infer<typeof WorkflowWorkspaceSchemaSchema>;
|
|
970
|
+
export type WorkflowWorkspaceZoneKind = z.infer<typeof WorkflowWorkspaceZoneKindSchema>;
|
|
668
971
|
export type WorkflowZoneId = z.infer<typeof WorkflowZoneIdSchema>;
|
|
669
972
|
export type ExecutionShellZoneMount = z.infer<typeof ExecutionShellZoneMountSchema>;
|
|
670
973
|
export type ExecutionShellPaths = z.infer<typeof ExecutionShellPathsSchema>;
|
|
671
974
|
export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
|
|
672
975
|
export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
|
|
673
|
-
export type
|
|
976
|
+
export type TestTargetType = z.infer<typeof TestTargetTypeSchema>;
|
|
674
977
|
export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
|
|
675
978
|
export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
|
|
676
979
|
export type WorkflowId = z.infer<typeof WorkflowIdSchema>;
|
|
@@ -681,15 +984,17 @@ export type RuntimeStageAcceptance = z.infer<typeof RuntimeStageAcceptanceSchema
|
|
|
681
984
|
export type RuntimeStageContract = z.infer<typeof RuntimeStageContractSchema>;
|
|
682
985
|
export type RuntimeRun = z.infer<typeof RuntimeRunSchema>;
|
|
683
986
|
export type WorkspaceInventory = z.infer<typeof WorkspaceInventorySchema>;
|
|
684
|
-
export type
|
|
685
|
-
export type
|
|
686
|
-
export type
|
|
687
|
-
export type
|
|
987
|
+
export type TestCaseExpect = z.infer<typeof TestCaseExpectSchema>;
|
|
988
|
+
export type TestCase = z.infer<typeof TestCaseSchema>;
|
|
989
|
+
export type TestSpec = z.infer<typeof TestSpecSchema>;
|
|
990
|
+
export type SourceTruthCheck = z.infer<typeof SourceTruthCheckSchema>;
|
|
688
991
|
export type SourceWorkspaceConfig = z.infer<typeof SourceWorkspaceConfigSchema>;
|
|
689
992
|
export type SourceFolderConfig = z.infer<typeof SourceFolderConfigSchema>;
|
|
690
|
-
export type
|
|
691
|
-
export type
|
|
692
|
-
export type
|
|
693
|
-
export type
|
|
993
|
+
export type TestCheckResult = z.infer<typeof TestCheckResultSchema>;
|
|
994
|
+
export type TestCaseResult = z.infer<typeof TestCaseResultSchema>;
|
|
995
|
+
export type TestTargetResult = z.infer<typeof TestTargetResultSchema>;
|
|
996
|
+
export type TestTargetRun = z.infer<typeof TestTargetRunSchema>;
|
|
997
|
+
export type TestRunMode = z.infer<typeof TestRunModeSchema>;
|
|
998
|
+
export type TestRunTargetSummary = z.infer<typeof TestRunTargetSummarySchema>;
|
|
999
|
+
export type TestRunComparison = z.infer<typeof TestRunComparisonSchema>;
|
|
694
1000
|
export type InterfUserConfig = z.infer<typeof InterfUserConfigSchema>;
|
|
695
|
-
//# sourceMappingURL=schema.d.ts.map
|