@interf/compiler 0.7.3 → 0.9.3
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 +124 -90
- package/TRADEMARKS.md +1 -1
- package/agent-skills/interf-actions/SKILL.md +74 -0
- package/agent-skills/interf-actions/references/cli.md +190 -0
- package/{builtin-workflows/interf → builtin-methods/interf-default}/README.md +9 -9
- package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/shape/SKILL.md +4 -4
- package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/structure/SKILL.md +1 -1
- package/builtin-methods/interf-default/improve/SKILL.md +18 -0
- package/{builtin-workflows/interf/workflow.json → builtin-methods/interf-default/method.json} +9 -9
- package/{builtin-workflows/interf/workflow.schema.json → builtin-methods/interf-default/method.schema.json} +3 -3
- package/{builtin-workflows/interf → builtin-methods/interf-default}/use/query/SKILL.md +1 -1
- package/dist/cli/commands/check-draft.d.ts +11 -10
- package/dist/cli/commands/check-draft.js +21 -20
- package/dist/cli/commands/compile-controller.d.ts +10 -7
- package/dist/cli/commands/compile-controller.js +84 -79
- package/dist/cli/commands/compile.d.ts +3 -3
- package/dist/cli/commands/compile.js +101 -43
- package/dist/cli/commands/compiled-flow.d.ts +14 -11
- package/dist/cli/commands/compiled-flow.js +38 -33
- package/dist/cli/commands/control-path.d.ts +11 -0
- package/dist/cli/commands/control-path.js +72 -0
- package/dist/cli/commands/create-method-wizard.d.ts +76 -0
- package/dist/cli/commands/create-method-wizard.js +465 -0
- package/dist/cli/commands/create.d.ts +3 -3
- package/dist/cli/commands/create.js +81 -68
- package/dist/cli/commands/default.js +4 -3
- package/dist/cli/commands/doctor.js +5 -5
- package/dist/cli/commands/executor-flow.d.ts +6 -6
- package/dist/cli/commands/executor-flow.js +2 -2
- package/dist/cli/commands/init.d.ts +2 -2
- package/dist/cli/commands/init.js +415 -144
- package/dist/cli/commands/list.js +16 -14
- package/dist/cli/commands/preparation-selection.d.ts +6 -0
- package/dist/cli/commands/preparation-selection.js +11 -0
- package/dist/cli/commands/reset.js +3 -3
- package/dist/cli/commands/source-config-wizard.d.ts +12 -11
- package/dist/cli/commands/source-config-wizard.js +206 -228
- package/dist/cli/commands/status.js +152 -17
- package/dist/cli/commands/test-flow.d.ts +16 -16
- package/dist/cli/commands/test-flow.js +53 -243
- package/dist/cli/commands/test.d.ts +6 -2
- package/dist/cli/commands/test.js +136 -100
- package/dist/cli/commands/verify.js +13 -13
- package/dist/cli/commands/web.d.ts +11 -0
- package/dist/cli/commands/web.js +386 -0
- package/dist/cli/index.d.ts +2 -1
- package/dist/cli/index.js +3 -1
- package/dist/compiler-ui/404.html +1 -0
- package/dist/compiler-ui/__next.__PAGE__.txt +10 -0
- package/dist/compiler-ui/__next._full.txt +20 -0
- package/dist/compiler-ui/__next._head.txt +5 -0
- package/dist/compiler-ui/__next._index.txt +5 -0
- package/dist/compiler-ui/__next._tree.txt +5 -0
- package/dist/compiler-ui/_next/static/chunks/03~yq9q893hmn.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/06yhdspx~ca5-.js +5 -0
- package/dist/compiler-ui/_next/static/chunks/06z~l3kwb891e.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/08g7lvje.te.u.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/08m7vf5asqlsm.js +91 -0
- package/dist/compiler-ui/_next/static/chunks/0_i-3_5l9t2qe.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/0b-ywny_j0g~0.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/0b52v41o1gixx.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/0c9mu7yldxyyg.css +3 -0
- package/dist/compiler-ui/_next/static/chunks/0gpzgsv0w.q~m.js +31 -0
- package/dist/compiler-ui/_next/static/chunks/0ilwfezfvu6~-.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/0n51hrfoufc7g.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/0xxmf45eskdt~.css +1 -0
- package/dist/compiler-ui/_next/static/chunks/0y5z3t-z1c8ks.js.map +5 -0
- package/dist/compiler-ui/_next/static/chunks/14wtz~vq25~qq.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/15mks7ry_cupt.js +118 -0
- package/dist/compiler-ui/_next/static/chunks/turbopack-0.uq1k8c0j4s..js +1 -0
- package/dist/compiler-ui/_next/static/chunks/turbopack-10e~t1yzi4svj.js +1 -0
- package/dist/compiler-ui/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +1 -0
- package/dist/compiler-ui/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
- package/dist/compiler-ui/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
- package/dist/compiler-ui/_next/static/media/worker.102zas1s52_pf.js +109 -0
- package/dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK/_buildManifest.js +11 -0
- package/dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK/_clientMiddlewareManifest.js +1 -0
- package/dist/compiler-ui/_next/static/pIZnDsV3Je6hdC3cOsGdK/_ssgManifest.js +1 -0
- package/dist/compiler-ui/_not-found/__next._full.txt +15 -0
- package/dist/compiler-ui/_not-found/__next._head.txt +5 -0
- package/dist/compiler-ui/_not-found/__next._index.txt +5 -0
- package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +5 -0
- package/dist/compiler-ui/_not-found/__next._not-found.txt +5 -0
- package/dist/compiler-ui/_not-found/__next._tree.txt +2 -0
- package/dist/compiler-ui/_not-found.html +1 -0
- package/dist/compiler-ui/_not-found.txt +15 -0
- package/dist/compiler-ui/index.html +1 -0
- package/dist/compiler-ui/index.txt +20 -0
- package/dist/index.d.ts +11 -7
- package/dist/index.js +8 -4
- package/dist/packages/agents/index.d.ts +1 -1
- package/dist/packages/agents/lib/args.d.ts +2 -2
- package/dist/packages/agents/lib/compiled-bootstrap.js +7 -6
- package/dist/packages/agents/lib/execution-profile.d.ts +5 -5
- package/dist/packages/agents/lib/execution-profile.js +7 -6
- package/dist/packages/agents/lib/execution.js +4 -2
- package/dist/packages/agents/lib/executors.d.ts +14 -13
- package/dist/packages/agents/lib/executors.js +1 -0
- package/dist/packages/agents/lib/preflight.d.ts +1 -0
- package/dist/packages/agents/lib/preflight.js +32 -9
- package/dist/packages/agents/lib/render.d.ts +2 -2
- package/dist/packages/agents/lib/render.js +10 -9
- package/dist/packages/agents/lib/shells.d.ts +27 -34
- package/dist/packages/agents/lib/shells.js +191 -235
- package/dist/packages/agents/lib/types.d.ts +3 -2
- package/dist/packages/compiler/artifact-counts.d.ts +1 -0
- package/dist/packages/compiler/artifact-counts.js +30 -0
- package/dist/packages/compiler/compiled-paths.d.ts +5 -5
- package/dist/packages/compiler/compiled-paths.js +10 -10
- package/dist/packages/compiler/compiled-pipeline.d.ts +18 -12
- package/dist/packages/compiler/compiled-pipeline.js +34 -23
- package/dist/packages/compiler/compiled-schema.d.ts +20 -20
- package/dist/packages/compiler/compiled-schema.js +29 -29
- package/dist/packages/compiler/compiled-stage-plan.d.ts +4 -4
- package/dist/packages/compiler/compiled-stage-plan.js +11 -11
- package/dist/packages/compiler/compiled-stage-runner.d.ts +10 -5
- package/dist/packages/compiler/compiled-stage-runner.js +56 -8
- package/dist/packages/compiler/compiled-target.d.ts +5 -5
- package/dist/packages/compiler/compiled-target.js +5 -5
- package/dist/packages/compiler/index.d.ts +3 -3
- package/dist/packages/compiler/index.js +2 -2
- package/dist/packages/compiler/lib/schema.d.ts +68 -93
- package/dist/packages/compiler/lib/schema.js +57 -89
- package/dist/packages/compiler/{workflows.d.ts → method-runs.d.ts} +4 -4
- package/dist/packages/compiler/{workflows.js → method-runs.js} +4 -3
- package/dist/packages/compiler/raw-snapshot.d.ts +3 -3
- package/dist/packages/compiler/raw-snapshot.js +0 -1
- package/dist/packages/compiler/reset.js +3 -3
- package/dist/packages/compiler/runtime-acceptance.js +9 -16
- package/dist/packages/compiler/runtime-contracts.js +9 -9
- package/dist/packages/compiler/runtime-prompt.js +9 -9
- package/dist/packages/compiler/runtime-reconcile.d.ts +2 -2
- package/dist/packages/compiler/runtime-reconcile.js +3 -3
- package/dist/packages/compiler/runtime-runs.js +12 -9
- package/dist/packages/compiler/runtime-types.d.ts +9 -7
- package/dist/packages/compiler/state-health.js +26 -35
- package/dist/packages/compiler/state-view.js +6 -6
- package/dist/packages/compiler/validate-compiled.d.ts +5 -5
- package/dist/packages/compiler/validate-compiled.js +56 -62
- package/dist/packages/compiler/validate.d.ts +2 -2
- package/dist/packages/compiler/validate.js +22 -14
- package/dist/packages/contracts/index.d.ts +2 -0
- package/dist/packages/contracts/index.js +1 -0
- package/dist/packages/contracts/lib/schema.d.ts +205 -0
- package/dist/packages/contracts/lib/schema.js +101 -0
- package/dist/packages/execution/adapters.d.ts +15 -0
- package/dist/packages/execution/adapters.js +1 -0
- package/dist/packages/execution/events.d.ts +8 -0
- package/dist/packages/execution/events.js +16 -0
- package/dist/packages/execution/index.d.ts +9 -0
- package/dist/packages/execution/index.js +6 -0
- package/dist/packages/execution/lib/schema.d.ts +1551 -0
- package/dist/packages/execution/lib/schema.js +296 -0
- package/dist/packages/local-service/action-values.d.ts +22 -0
- package/dist/packages/local-service/action-values.js +30 -0
- package/dist/packages/local-service/client.d.ts +119 -0
- package/dist/packages/local-service/client.js +356 -0
- package/dist/packages/local-service/index.d.ts +15 -0
- package/dist/packages/local-service/index.js +11 -0
- package/dist/packages/local-service/lib/schema.d.ts +6917 -0
- package/dist/packages/local-service/lib/schema.js +519 -0
- package/dist/packages/local-service/routes.d.ts +27 -0
- package/dist/packages/local-service/routes.js +32 -0
- package/dist/packages/local-service/run-observability.d.ts +6 -0
- package/dist/packages/local-service/run-observability.js +592 -0
- package/dist/packages/local-service/runtime.d.ts +130 -0
- package/dist/packages/local-service/runtime.js +2263 -0
- package/dist/packages/local-service/server.d.ts +18 -0
- package/dist/packages/local-service/server.js +577 -0
- package/dist/packages/method-authoring/index.d.ts +4 -0
- package/dist/packages/method-authoring/index.js +4 -0
- package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.d.ts → method-authoring/lib/method-edit-utils.d.ts} +3 -3
- package/dist/packages/method-authoring/method-authoring.d.ts +24 -0
- package/dist/packages/method-authoring/method-authoring.js +116 -0
- package/dist/packages/method-authoring/method-edit-session.d.ts +18 -0
- package/dist/packages/method-authoring/method-edit-session.js +125 -0
- package/dist/packages/method-authoring/method-improvement.d.ts +23 -0
- package/dist/packages/{workflow-authoring/workflow-improvement.js → method-authoring/method-improvement.js} +65 -64
- package/dist/packages/{workflow-package/builtin-compiled-workflow.d.ts → method-package/builtin-compiled-method.d.ts} +1 -1
- package/dist/packages/{workflow-package/builtin-compiled-workflow.js → method-package/builtin-compiled-method.js} +17 -17
- package/dist/packages/{workflow-package → method-package}/context-interface.d.ts +12 -12
- package/dist/packages/{workflow-package → method-package}/context-interface.js +20 -20
- package/dist/packages/method-package/index.d.ts +11 -0
- package/dist/packages/method-package/index.js +11 -0
- package/dist/packages/method-package/interf-method-package.d.ts +31 -0
- package/dist/packages/method-package/interf-method-package.js +496 -0
- package/dist/packages/{workflow-package → method-package}/lib/package-root.js +1 -1
- package/dist/packages/method-package/local-methods.d.ts +64 -0
- package/dist/packages/method-package/local-methods.js +466 -0
- package/dist/packages/method-package/method-definitions.d.ts +83 -0
- package/dist/packages/method-package/method-definitions.js +205 -0
- package/dist/packages/{workflow-package/workflow-helpers.d.ts → method-package/method-helpers.d.ts} +10 -10
- package/dist/packages/{workflow-package/workflow-helpers.js → method-package/method-helpers.js} +27 -27
- package/dist/packages/method-package/method-review-paths.d.ts +10 -0
- package/dist/packages/{workflow-package/workflow-review-paths.js → method-package/method-review-paths.js} +4 -4
- package/dist/packages/{workflow-package/workflow-stage-runner.d.ts → method-package/method-stage-runner.d.ts} +13 -11
- package/dist/packages/{workflow-package/workflow-stage-runner.js → method-package/method-stage-runner.js} +8 -6
- package/dist/packages/methods/index.d.ts +2 -0
- package/dist/packages/methods/index.js +2 -0
- package/dist/packages/methods/method-resolution.d.ts +6 -0
- package/dist/packages/methods/method-resolution.js +7 -0
- package/dist/packages/project-model/index.d.ts +2 -4
- package/dist/packages/project-model/index.js +1 -3
- package/dist/packages/project-model/interf-detect.d.ts +3 -3
- package/dist/packages/project-model/interf-detect.js +18 -14
- package/dist/packages/project-model/interf-scaffold.d.ts +2 -2
- package/dist/packages/project-model/interf-scaffold.js +40 -38
- package/dist/packages/project-model/interf.d.ts +1 -2
- package/dist/packages/project-model/interf.js +1 -2
- package/dist/packages/project-model/lib/schema.d.ts +24 -14
- package/dist/packages/project-model/lib/schema.js +22 -30
- package/dist/packages/project-model/project-paths.d.ts +9 -10
- package/dist/packages/project-model/project-paths.js +14 -17
- package/dist/packages/project-model/source-config.d.ts +19 -17
- package/dist/packages/project-model/source-config.js +144 -145
- package/dist/packages/project-model/source-folders.d.ts +11 -0
- package/dist/packages/project-model/source-folders.js +110 -0
- package/dist/packages/testing/index.d.ts +2 -2
- package/dist/packages/testing/index.js +1 -1
- package/dist/packages/testing/lib/schema.d.ts +11 -11
- package/dist/packages/testing/lib/schema.js +8 -9
- package/dist/packages/testing/readiness-check-run.d.ts +67 -0
- package/dist/packages/testing/readiness-check-run.js +258 -0
- package/dist/packages/testing/test-execution.d.ts +3 -3
- package/dist/packages/testing/test-execution.js +8 -8
- package/dist/packages/testing/test-paths.js +7 -9
- package/dist/packages/testing/test-profile-presets.js +2 -2
- package/dist/packages/testing/test-sandbox.js +10 -11
- package/dist/packages/testing/test-targets.d.ts +1 -1
- package/dist/packages/testing/test-targets.js +8 -7
- package/dist/packages/testing/test-types.d.ts +1 -1
- package/package.json +29 -30
- package/builtin-workflows/interf/improve/SKILL.md +0 -18
- package/dist/cli/commands/create-workflow-wizard.d.ts +0 -70
- package/dist/cli/commands/create-workflow-wizard.js +0 -361
- package/dist/cli/commands/dataset-selection.d.ts +0 -6
- package/dist/cli/commands/dataset-selection.js +0 -11
- 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 +0 -1
- 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 +0 -1
- package/dist/lib/agent-render.d.ts +0 -1
- package/dist/lib/agent-render.js +0 -1
- package/dist/lib/agent-shells.d.ts +0 -1
- package/dist/lib/agent-shells.js +0 -1
- 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 -1
- package/dist/lib/agents.js +0 -1
- package/dist/lib/builtin-compiled-workflow.d.ts +0 -1
- package/dist/lib/builtin-compiled-workflow.js +0 -1
- package/dist/lib/chart-guidance.d.ts +0 -1
- package/dist/lib/chart-guidance.js +0 -1
- package/dist/lib/compiled-compile.d.ts +0 -1
- package/dist/lib/compiled-compile.js +0 -1
- package/dist/lib/compiled-paths.d.ts +0 -1
- package/dist/lib/compiled-paths.js +0 -3
- package/dist/lib/compiled-raw.d.ts +0 -1
- package/dist/lib/compiled-raw.js +0 -3
- package/dist/lib/compiled-reset.d.ts +0 -1
- package/dist/lib/compiled-reset.js +0 -3
- package/dist/lib/compiled-schema.d.ts +0 -1
- package/dist/lib/compiled-schema.js +0 -1
- 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 +0 -3
- package/dist/lib/interf-detect.d.ts +0 -1
- package/dist/lib/interf-detect.js +0 -3
- package/dist/lib/interf-scaffold.d.ts +0 -1
- package/dist/lib/interf-scaffold.js +0 -3
- package/dist/lib/interf-workflow-package.d.ts +0 -1
- package/dist/lib/interf-workflow-package.js +0 -1
- package/dist/lib/interf.d.ts +0 -1
- package/dist/lib/interf.js +0 -3
- package/dist/lib/local-workflows.d.ts +0 -1
- package/dist/lib/local-workflows.js +0 -1
- package/dist/lib/logger.d.ts +0 -1
- package/dist/lib/logger.js +0 -1
- package/dist/lib/package-root.d.ts +0 -1
- package/dist/lib/package-root.js +0 -1
- package/dist/lib/parse.d.ts +0 -1
- package/dist/lib/parse.js +0 -1
- package/dist/lib/project-paths.d.ts +0 -1
- package/dist/lib/project-paths.js +0 -3
- package/dist/lib/runtime-acceptance.d.ts +0 -1
- package/dist/lib/runtime-acceptance.js +0 -1
- package/dist/lib/runtime-contracts.d.ts +0 -1
- package/dist/lib/runtime-contracts.js +0 -1
- package/dist/lib/runtime-inventory.d.ts +0 -1
- package/dist/lib/runtime-inventory.js +0 -1
- package/dist/lib/runtime-paths.d.ts +0 -1
- package/dist/lib/runtime-paths.js +0 -1
- package/dist/lib/runtime-prompt.d.ts +0 -1
- package/dist/lib/runtime-prompt.js +0 -1
- package/dist/lib/runtime-reconcile.d.ts +0 -1
- package/dist/lib/runtime-reconcile.js +0 -1
- package/dist/lib/runtime-runs.d.ts +0 -1
- package/dist/lib/runtime-runs.js +0 -1
- 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 +0 -4
- package/dist/lib/schema.js +0 -6
- package/dist/lib/source-config.d.ts +0 -1
- package/dist/lib/source-config.js +0 -3
- 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 +0 -1
- package/dist/lib/state-io.d.ts +0 -1
- package/dist/lib/state-io.js +0 -1
- package/dist/lib/state-paths.d.ts +0 -1
- package/dist/lib/state-paths.js +0 -1
- package/dist/lib/state-view.d.ts +0 -1
- package/dist/lib/state-view.js +0 -1
- package/dist/lib/state.d.ts +0 -1
- package/dist/lib/state.js +0 -1
- package/dist/lib/test-execution.d.ts +0 -1
- package/dist/lib/test-execution.js +0 -3
- package/dist/lib/test-matrices.d.ts +0 -1
- package/dist/lib/test-matrices.js +0 -3
- package/dist/lib/test-paths.d.ts +0 -1
- package/dist/lib/test-paths.js +0 -3
- package/dist/lib/test-profile-presets.d.ts +0 -1
- package/dist/lib/test-profile-presets.js +0 -3
- package/dist/lib/test-sandbox.d.ts +0 -1
- package/dist/lib/test-sandbox.js +0 -3
- package/dist/lib/test-specs.d.ts +0 -1
- package/dist/lib/test-specs.js +0 -3
- package/dist/lib/test-targets.d.ts +0 -1
- package/dist/lib/test-targets.js +0 -3
- package/dist/lib/test-types.d.ts +0 -1
- package/dist/lib/test-types.js +0 -3
- package/dist/lib/test.d.ts +0 -1
- package/dist/lib/test.js +0 -3
- package/dist/lib/util.d.ts +0 -1
- package/dist/lib/util.js +0 -1
- package/dist/lib/validate-compiled.d.ts +0 -1
- package/dist/lib/validate-compiled.js +0 -1
- package/dist/lib/validate-helpers.d.ts +0 -1
- package/dist/lib/validate-helpers.js +0 -1
- package/dist/lib/validate.d.ts +0 -1
- package/dist/lib/validate.js +0 -1
- package/dist/lib/workflow-authoring.d.ts +0 -1
- package/dist/lib/workflow-authoring.js +0 -1
- package/dist/lib/workflow-definitions.d.ts +0 -1
- package/dist/lib/workflow-definitions.js +0 -1
- package/dist/lib/workflow-edit-session.d.ts +0 -1
- package/dist/lib/workflow-edit-session.js +0 -1
- package/dist/lib/workflow-edit-utils.d.ts +0 -1
- package/dist/lib/workflow-edit-utils.js +0 -1
- package/dist/lib/workflow-helpers.d.ts +0 -1
- package/dist/lib/workflow-helpers.js +0 -1
- package/dist/lib/workflow-improvement.d.ts +0 -1
- package/dist/lib/workflow-improvement.js +0 -1
- package/dist/lib/workflow-primitives.d.ts +0 -1
- package/dist/lib/workflow-primitives.js +0 -1
- package/dist/lib/workflow-review-paths.d.ts +0 -1
- package/dist/lib/workflow-review-paths.js +0 -1
- package/dist/lib/workflow-stage-policy.d.ts +0 -1
- package/dist/lib/workflow-stage-policy.js +0 -1
- package/dist/lib/workflow-stage-runner.d.ts +0 -1
- package/dist/lib/workflow-stage-runner.js +0 -1
- package/dist/lib/workflows.d.ts +0 -1
- package/dist/lib/workflows.js +0 -1
- package/dist/packages/project-model/compiled-paths.d.ts +0 -1
- package/dist/packages/project-model/compiled-paths.js +0 -1
- package/dist/packages/project-model/compiled-raw.d.ts +0 -1
- package/dist/packages/project-model/compiled-raw.js +0 -1
- package/dist/packages/project-model/compiled-reset.d.ts +0 -1
- package/dist/packages/project-model/compiled-reset.js +0 -1
- package/dist/packages/shared/index.d.ts +0 -7
- package/dist/packages/shared/index.js +0 -7
- package/dist/packages/shared/util.d.ts +0 -3
- package/dist/packages/shared/util.js +0 -3
- package/dist/packages/testing/test-matrices.d.ts +0 -90
- package/dist/packages/testing/test-matrices.js +0 -96
- package/dist/packages/workflow-authoring/index.d.ts +0 -4
- package/dist/packages/workflow-authoring/index.js +0 -4
- package/dist/packages/workflow-authoring/workflow-authoring.d.ts +0 -26
- package/dist/packages/workflow-authoring/workflow-authoring.js +0 -123
- package/dist/packages/workflow-authoring/workflow-edit-session.d.ts +0 -16
- package/dist/packages/workflow-authoring/workflow-edit-session.js +0 -60
- package/dist/packages/workflow-authoring/workflow-improvement.d.ts +0 -23
- package/dist/packages/workflow-package/index.d.ts +0 -11
- package/dist/packages/workflow-package/index.js +0 -11
- package/dist/packages/workflow-package/interf-workflow-package.d.ts +0 -25
- package/dist/packages/workflow-package/interf-workflow-package.js +0 -389
- package/dist/packages/workflow-package/local-workflows.d.ts +0 -64
- package/dist/packages/workflow-package/local-workflows.js +0 -441
- package/dist/packages/workflow-package/workflow-definitions.d.ts +0 -82
- package/dist/packages/workflow-package/workflow-definitions.js +0 -210
- package/dist/packages/workflow-package/workflow-review-paths.d.ts +0 -10
- /package/{builtin-workflows/interf → builtin-methods/interf-default}/compile/stages/summarize/SKILL.md +0 -0
- /package/dist/packages/compiler/{workflow-primitives.d.ts → method-primitives.d.ts} +0 -0
- /package/dist/packages/compiler/{workflow-primitives.js → method-primitives.js} +0 -0
- /package/dist/packages/{workflow-authoring/lib/workflow-edit-utils.js → method-authoring/lib/method-edit-utils.js} +0 -0
- /package/dist/packages/{workflow-package → method-package}/lib/package-root.d.ts +0 -0
- /package/dist/packages/{workflow-package/workflow-stage-policy.d.ts → method-package/method-stage-policy.d.ts} +0 -0
- /package/dist/packages/{workflow-package/workflow-stage-policy.js → method-package/method-stage-policy.js} +0 -0
|
@@ -2,26 +2,41 @@ import { createStageExecutionShell, freezeStageExecutionShell, syncStageExecutio
|
|
|
2
2
|
import { reconcileCompiledStageRun } from "./runtime-reconcile.js";
|
|
3
3
|
import { refreshCompiledArtifacts } from "./state.js";
|
|
4
4
|
import { validateCompiledStage } from "./validate.js";
|
|
5
|
-
import { executeValidatedStage, } from "../
|
|
6
|
-
import {
|
|
7
|
-
import { reportBlankLine, reportLine, } from "../
|
|
5
|
+
import { executeValidatedStage, } from "../method-package/method-stage-runner.js";
|
|
6
|
+
import { formatActiveCompiledMethodStageStep, } from "../method-package/method-definitions.js";
|
|
7
|
+
import { reportBlankLine, reportLine, } from "../method-package/method-helpers.js";
|
|
8
8
|
import { buildCompiledStageExecutionPlan, } from "./compiled-stage-plan.js";
|
|
9
|
+
import { createRunEventId, createRunEventTimestamp, } from "../execution/events.js";
|
|
10
|
+
async function emitRunEvent(sink, event) {
|
|
11
|
+
await sink?.emit(event);
|
|
12
|
+
}
|
|
9
13
|
export async function runCompiledStage(options) {
|
|
10
14
|
const stageDefinition = options.stageDefinition;
|
|
11
15
|
const plan = buildCompiledStageExecutionPlan(options.compiledPath, stageDefinition);
|
|
12
16
|
if (options.reportStep !== false) {
|
|
13
17
|
reportBlankLine(options.reporter);
|
|
14
|
-
reportLine(options.reporter, `${
|
|
18
|
+
reportLine(options.reporter, `${formatActiveCompiledMethodStageStep(options.compiledPath, stageDefinition.id)} (${stageDefinition.description.toLowerCase()})`);
|
|
15
19
|
}
|
|
16
|
-
const shell = createStageExecutionShell(options.compiledPath, plan.context.compiledName, plan.context.
|
|
20
|
+
const shell = createStageExecutionShell(options.compiledPath, plan.context.compiledName, plan.context.methodId, stageDefinition, plan.contract.artifacts.writes);
|
|
17
21
|
try {
|
|
18
|
-
|
|
22
|
+
if (options.runId && options.events) {
|
|
23
|
+
await emitRunEvent(options.events, {
|
|
24
|
+
type: "stage.started",
|
|
25
|
+
event_id: createRunEventId("event"),
|
|
26
|
+
run_id: options.runId,
|
|
27
|
+
timestamp: createRunEventTimestamp(),
|
|
28
|
+
stage_id: stageDefinition.id,
|
|
29
|
+
...(typeof options.stageIndex === "number" ? { stage_index: options.stageIndex } : {}),
|
|
30
|
+
...(typeof options.stageTotal === "number" ? { stage_total: options.stageTotal } : {}),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const result = await executeValidatedStage({
|
|
19
34
|
executor: options.executor,
|
|
20
35
|
compiledPath: options.compiledPath,
|
|
21
36
|
executionPath: shell.rootPath,
|
|
22
37
|
targetName: plan.context.compiledName,
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
method: plan.context.methodId,
|
|
39
|
+
methodSourcePath: options.compiledPath,
|
|
25
40
|
stageDefinition,
|
|
26
41
|
instructions: plan.instructions,
|
|
27
42
|
summary: `Executing ${stageDefinition.label.toLowerCase()}.`,
|
|
@@ -34,11 +49,44 @@ export async function runCompiledStage(options) {
|
|
|
34
49
|
],
|
|
35
50
|
reporter: options.reporter,
|
|
36
51
|
completionCheck: () => validateCompiledStage(options.compiledPath, stageDefinition.id).ok,
|
|
52
|
+
onStatus: options.runId && options.events
|
|
53
|
+
? (line) => {
|
|
54
|
+
void options.events?.emit({
|
|
55
|
+
type: "log.appended",
|
|
56
|
+
event_id: createRunEventId("event"),
|
|
57
|
+
run_id: options.runId,
|
|
58
|
+
timestamp: createRunEventTimestamp(),
|
|
59
|
+
stage_id: stageDefinition.id,
|
|
60
|
+
stream: "status",
|
|
61
|
+
message: line,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
: undefined,
|
|
37
65
|
syncWrites: () => syncStageExecutionShellWrites(options.compiledPath, shell.rootPath, stageDefinition, plan.contract.artifacts.writes),
|
|
38
66
|
reconcile: () => reconcileCompiledStageRun(options.compiledPath, stageDefinition),
|
|
39
67
|
refreshArtifacts: () => refreshCompiledArtifacts(options.compiledPath, { ensureViewSpec: true }),
|
|
40
68
|
validate: () => validateCompiledStage(options.compiledPath, stageDefinition.id),
|
|
41
69
|
});
|
|
70
|
+
if (options.runId && options.events) {
|
|
71
|
+
await emitRunEvent(options.events, result.ok
|
|
72
|
+
? {
|
|
73
|
+
type: "stage.passed",
|
|
74
|
+
event_id: createRunEventId("event"),
|
|
75
|
+
run_id: options.runId,
|
|
76
|
+
timestamp: createRunEventTimestamp(),
|
|
77
|
+
stage_id: stageDefinition.id,
|
|
78
|
+
summary: result.summary ?? `${stageDefinition.label} completed.`,
|
|
79
|
+
}
|
|
80
|
+
: {
|
|
81
|
+
type: "stage.failed",
|
|
82
|
+
event_id: createRunEventId("event"),
|
|
83
|
+
run_id: options.runId,
|
|
84
|
+
timestamp: createRunEventTimestamp(),
|
|
85
|
+
stage_id: stageDefinition.id,
|
|
86
|
+
error: result.summary ?? `${stageDefinition.label} failed.`,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
return result;
|
|
42
90
|
}
|
|
43
91
|
finally {
|
|
44
92
|
freezeStageExecutionShell(shell.rootPath);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
export interface CompiledStageExecutionDefinition extends
|
|
1
|
+
import { type MethodStageDefinition } from "../method-package/method-definitions.js";
|
|
2
|
+
import { type CompiledMethodId } from "../method-package/method-definitions.js";
|
|
3
|
+
export interface CompiledStageExecutionDefinition extends MethodStageDefinition {
|
|
4
4
|
}
|
|
5
5
|
export declare function resolveCompiledContext(compiledPath: string): {
|
|
6
6
|
compiledName: string;
|
|
7
7
|
sourcePath: string;
|
|
8
8
|
controlPath: string;
|
|
9
|
-
|
|
9
|
+
methodId: CompiledMethodId;
|
|
10
10
|
};
|
|
11
|
-
export declare function compiledExecutionStages(
|
|
11
|
+
export declare function compiledExecutionStages(_methodId: CompiledMethodId, compiledPath: string): CompiledStageExecutionDefinition[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "../method-package/method-definitions.js";
|
|
2
2
|
import { readInterfConfig, resolveSourceFolderPath, resolveSourceControlPath, } from "../project-model/interf-detect.js";
|
|
3
3
|
export function resolveCompiledContext(compiledPath) {
|
|
4
4
|
const config = readInterfConfig(compiledPath);
|
|
5
|
-
const
|
|
5
|
+
const methodId = resolveRequiredCompiledMethodFromConfig(config, `.interf/interf.json for ${compiledPath}`);
|
|
6
6
|
return {
|
|
7
7
|
compiledName: config?.name ?? "compiled",
|
|
8
8
|
sourcePath: resolveSourceFolderPath(compiledPath, config),
|
|
9
9
|
controlPath: resolveSourceControlPath(compiledPath),
|
|
10
|
-
|
|
10
|
+
methodId,
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
export function compiledExecutionStages(
|
|
14
|
-
return
|
|
13
|
+
export function compiledExecutionStages(_methodId, compiledPath) {
|
|
14
|
+
return getActiveCompiledMethod(compiledPath)
|
|
15
15
|
.stages;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as primitives from "./
|
|
1
|
+
export * as primitives from "./method-primitives.js";
|
|
2
2
|
export * as schema from "./lib/schema.js";
|
|
3
3
|
export * as compiledSchema from "./compiled-schema.js";
|
|
4
4
|
export * as compile from "./compiled-compile.js";
|
|
@@ -20,5 +20,5 @@ export * as stateView from "./state-view.js";
|
|
|
20
20
|
export * as validate from "./validate.js";
|
|
21
21
|
export * as validateCompiled from "./validate-compiled.js";
|
|
22
22
|
export * as validateHelpers from "./validate-helpers.js";
|
|
23
|
-
export * as
|
|
24
|
-
export type { CompiledCompileResult, CompiledSummarizeResult, StageShellRetentionMode, } from "./
|
|
23
|
+
export * as methods from "./method-runs.js";
|
|
24
|
+
export type { CompiledCompileResult, CompiledSummarizeResult, StageShellRetentionMode, } from "./method-runs.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as primitives from "./
|
|
1
|
+
export * as primitives from "./method-primitives.js";
|
|
2
2
|
export * as schema from "./lib/schema.js";
|
|
3
3
|
export * as compiledSchema from "./compiled-schema.js";
|
|
4
4
|
export * as compile from "./compiled-compile.js";
|
|
@@ -20,4 +20,4 @@ export * as stateView from "./state-view.js";
|
|
|
20
20
|
export * as validate from "./validate.js";
|
|
21
21
|
export * as validateCompiled from "./validate-compiled.js";
|
|
22
22
|
export * as validateHelpers from "./validate-helpers.js";
|
|
23
|
-
export * as
|
|
23
|
+
export * as methods from "./method-runs.js";
|
|
@@ -1,43 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, TestCaseExpectSchema, TestTargetTypeSchema, MethodIdSchema } from "../../contracts/lib/schema.js";
|
|
3
|
+
export { ReadinessCheckSchema, ReadinessGateSchema, ReadinessStateSchema, ReadinessStatusSchema, ReadinessTargetResultSchema, RuntimeContractTypeSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, RuntimeTargetTypeSchema, SourceCompiledMaxAttemptsSchema, SourceCompiledMaxLoopsSchema, TestCaseExpectSchema, TestTargetTypeSchema, InterfIdPattern, MethodIdSchema, } from "../../contracts/lib/schema.js";
|
|
2
4
|
export type RuntimeStatus = "idle" | "running" | "compiled" | "stale" | "failed";
|
|
3
5
|
export type CompiledStage = "idle" | "compiled" | "failed" | string;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
}>;
|
|
7
|
-
export declare const TestTargetTypeSchema: z.ZodEnum<{
|
|
8
|
-
compiled: "compiled";
|
|
9
|
-
raw: "raw";
|
|
10
|
-
}>;
|
|
11
|
-
export declare const WorkflowIdPattern: RegExp;
|
|
12
|
-
export declare const RuntimeStageSchema: z.ZodString;
|
|
13
|
-
export declare const RuntimeContractTypeSchema: z.ZodString;
|
|
14
|
-
export declare const WorkflowIdSchema: z.ZodString;
|
|
15
|
-
export declare const WorkflowZoneIdSchema: z.ZodString;
|
|
16
|
-
export declare const WorkflowCompiledZoneKindSchema: z.ZodEnum<{
|
|
6
|
+
export declare const MethodZoneIdSchema: z.ZodString;
|
|
7
|
+
export declare const MethodCompiledZoneKindSchema: z.ZodEnum<{
|
|
17
8
|
runtime: "runtime";
|
|
18
|
-
directory: "directory";
|
|
19
9
|
file: "file";
|
|
10
|
+
directory: "directory";
|
|
20
11
|
}>;
|
|
21
|
-
export declare const
|
|
12
|
+
export declare const MethodZoneRoleSchema: z.ZodEnum<{
|
|
22
13
|
output: "output";
|
|
23
14
|
runtime: "runtime";
|
|
24
15
|
input: "input";
|
|
25
16
|
working: "working";
|
|
26
17
|
}>;
|
|
27
18
|
export declare const CompiledStageStatusSchema: z.ZodEnum<{
|
|
19
|
+
failed: "failed";
|
|
28
20
|
idle: "idle";
|
|
29
21
|
running: "running";
|
|
30
|
-
failed: "failed";
|
|
31
22
|
succeeded: "succeeded";
|
|
32
23
|
}>;
|
|
33
|
-
export declare const SourceCompiledMaxAttemptsSchema: z.ZodNumber;
|
|
34
|
-
export declare const SourceCompiledMaxLoopsSchema: z.ZodNumber;
|
|
35
24
|
export declare const CompiledStageStateSchema: z.ZodObject<{
|
|
36
25
|
contract_type: z.ZodOptional<z.ZodString>;
|
|
37
26
|
status: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
failed: "failed";
|
|
38
28
|
idle: "idle";
|
|
39
29
|
running: "running";
|
|
40
|
-
failed: "failed";
|
|
41
30
|
succeeded: "succeeded";
|
|
42
31
|
}>>;
|
|
43
32
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -54,9 +43,9 @@ export declare const CompiledStateSchema: z.ZodObject<{
|
|
|
54
43
|
stages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
55
44
|
contract_type: z.ZodOptional<z.ZodString>;
|
|
56
45
|
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
failed: "failed";
|
|
57
47
|
idle: "idle";
|
|
58
48
|
running: "running";
|
|
59
|
-
failed: "failed";
|
|
60
49
|
succeeded: "succeeded";
|
|
61
50
|
}>>;
|
|
62
51
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -103,15 +92,15 @@ export declare const CompiledHealthSchema: z.ZodObject<{
|
|
|
103
92
|
target_name: z.ZodString;
|
|
104
93
|
status: z.ZodEnum<{
|
|
105
94
|
compiled: "compiled";
|
|
106
|
-
idle: "idle";
|
|
107
|
-
running: "running";
|
|
108
95
|
stale: "stale";
|
|
109
96
|
failed: "failed";
|
|
97
|
+
idle: "idle";
|
|
98
|
+
running: "running";
|
|
110
99
|
}>;
|
|
111
100
|
stage: z.ZodUnion<readonly [z.ZodEnum<{
|
|
112
101
|
compiled: "compiled";
|
|
113
|
-
idle: "idle";
|
|
114
102
|
failed: "failed";
|
|
103
|
+
idle: "idle";
|
|
115
104
|
}>, z.ZodString]>;
|
|
116
105
|
summary: z.ZodString;
|
|
117
106
|
metrics: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
@@ -161,11 +150,11 @@ export declare const CompiledRawSnapshotSchema: z.ZodObject<{
|
|
|
161
150
|
source_total: z.ZodNumber;
|
|
162
151
|
sample_files: z.ZodArray<z.ZodString>;
|
|
163
152
|
}, z.core.$strip>;
|
|
164
|
-
export declare const
|
|
153
|
+
export declare const MethodPurposeSchema: z.ZodObject<{
|
|
165
154
|
label: z.ZodString;
|
|
166
155
|
task_hint: z.ZodString;
|
|
167
156
|
}, z.core.$strict>;
|
|
168
|
-
export declare const
|
|
157
|
+
export declare const MethodZoneSchema: z.ZodObject<{
|
|
169
158
|
id: z.ZodString;
|
|
170
159
|
role: z.ZodEnum<{
|
|
171
160
|
output: "output";
|
|
@@ -176,14 +165,14 @@ export declare const WorkflowZoneSchema: z.ZodObject<{
|
|
|
176
165
|
path: z.ZodString;
|
|
177
166
|
kind: z.ZodEnum<{
|
|
178
167
|
runtime: "runtime";
|
|
179
|
-
directory: "directory";
|
|
180
168
|
file: "file";
|
|
169
|
+
directory: "directory";
|
|
181
170
|
}>;
|
|
182
171
|
required: z.ZodBoolean;
|
|
183
172
|
owned_by: z.ZodArray<z.ZodString>;
|
|
184
173
|
description: z.ZodString;
|
|
185
174
|
}, z.core.$strip>;
|
|
186
|
-
export declare const
|
|
175
|
+
export declare const MethodCompiledZoneSchema: z.ZodObject<{
|
|
187
176
|
id: z.ZodString;
|
|
188
177
|
role: z.ZodEnum<{
|
|
189
178
|
output: "output";
|
|
@@ -194,15 +183,15 @@ export declare const WorkflowCompiledZoneSchema: z.ZodObject<{
|
|
|
194
183
|
path: z.ZodString;
|
|
195
184
|
kind: z.ZodEnum<{
|
|
196
185
|
runtime: "runtime";
|
|
197
|
-
directory: "directory";
|
|
198
186
|
file: "file";
|
|
187
|
+
directory: "directory";
|
|
199
188
|
}>;
|
|
200
189
|
required: z.ZodBoolean;
|
|
201
190
|
owned_by: z.ZodArray<z.ZodString>;
|
|
202
191
|
description: z.ZodString;
|
|
203
192
|
}, z.core.$strip>;
|
|
204
|
-
export declare const
|
|
205
|
-
kind: z.ZodLiteral<"
|
|
193
|
+
export declare const MethodSchemaSchema: z.ZodObject<{
|
|
194
|
+
kind: z.ZodLiteral<"method-schema">;
|
|
206
195
|
version: z.ZodLiteral<1>;
|
|
207
196
|
target_type: z.ZodLiteral<"compiled">;
|
|
208
197
|
label: z.ZodString;
|
|
@@ -217,16 +206,16 @@ export declare const WorkflowSchemaSchema: z.ZodObject<{
|
|
|
217
206
|
path: z.ZodString;
|
|
218
207
|
kind: z.ZodEnum<{
|
|
219
208
|
runtime: "runtime";
|
|
220
|
-
directory: "directory";
|
|
221
209
|
file: "file";
|
|
210
|
+
directory: "directory";
|
|
222
211
|
}>;
|
|
223
212
|
required: z.ZodBoolean;
|
|
224
213
|
owned_by: z.ZodArray<z.ZodString>;
|
|
225
214
|
description: z.ZodString;
|
|
226
215
|
}, z.core.$strip>>;
|
|
227
216
|
}, z.core.$strip>;
|
|
228
|
-
export declare const
|
|
229
|
-
kind: z.ZodLiteral<"
|
|
217
|
+
export declare const MethodCompiledSchemaSchema: z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"method-schema">;
|
|
230
219
|
version: z.ZodLiteral<1>;
|
|
231
220
|
target_type: z.ZodLiteral<"compiled">;
|
|
232
221
|
label: z.ZodString;
|
|
@@ -241,20 +230,20 @@ export declare const WorkflowCompiledSchemaSchema: z.ZodObject<{
|
|
|
241
230
|
path: z.ZodString;
|
|
242
231
|
kind: z.ZodEnum<{
|
|
243
232
|
runtime: "runtime";
|
|
244
|
-
directory: "directory";
|
|
245
233
|
file: "file";
|
|
234
|
+
directory: "directory";
|
|
246
235
|
}>;
|
|
247
236
|
required: z.ZodBoolean;
|
|
248
237
|
owned_by: z.ZodArray<z.ZodString>;
|
|
249
238
|
description: z.ZodString;
|
|
250
239
|
}, z.core.$strip>>;
|
|
251
240
|
}, z.core.$strip>;
|
|
252
|
-
export declare const
|
|
241
|
+
export declare const MethodCompilerApiSchema: z.ZodObject<{
|
|
253
242
|
kind: z.ZodLiteral<"compiled">;
|
|
254
243
|
version: z.ZodLiteral<1>;
|
|
255
244
|
}, z.core.$strip>;
|
|
256
|
-
export type
|
|
257
|
-
export declare const
|
|
245
|
+
export type MethodCompilerApi = z.infer<typeof MethodCompilerApiSchema>;
|
|
246
|
+
export declare const MethodStageZoneAccessSchema: z.ZodArray<z.ZodString>;
|
|
258
247
|
export declare const ExecutionShellZoneMountSchema: z.ZodObject<{
|
|
259
248
|
zone_id: z.ZodString;
|
|
260
249
|
compiled_path: z.ZodString;
|
|
@@ -265,7 +254,7 @@ export declare const ExecutionShellZoneMountSchema: z.ZodObject<{
|
|
|
265
254
|
export declare const ExecutionShellPathsSchema: z.ZodObject<{
|
|
266
255
|
kind: z.ZodLiteral<"interf-execution-shell">;
|
|
267
256
|
version: z.ZodLiteral<1>;
|
|
268
|
-
|
|
257
|
+
method: z.ZodString;
|
|
269
258
|
stage: z.ZodString;
|
|
270
259
|
reads: z.ZodArray<z.ZodObject<{
|
|
271
260
|
zone_id: z.ZodString;
|
|
@@ -282,20 +271,6 @@ export declare const ExecutionShellPathsSchema: z.ZodObject<{
|
|
|
282
271
|
output_mount_path: z.ZodNullable<z.ZodString>;
|
|
283
272
|
}, z.core.$strip>>;
|
|
284
273
|
}, z.core.$strip>;
|
|
285
|
-
export declare const RuntimeExecutorInfoSchema: z.ZodObject<{
|
|
286
|
-
kind: z.ZodEnum<{
|
|
287
|
-
"local-agent": "local-agent";
|
|
288
|
-
"connected-provider": "connected-provider";
|
|
289
|
-
managed: "managed";
|
|
290
|
-
}>;
|
|
291
|
-
name: z.ZodString;
|
|
292
|
-
display_name: z.ZodString;
|
|
293
|
-
command: z.ZodNullable<z.ZodString>;
|
|
294
|
-
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
-
effort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
-
profile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
-
timeout_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
298
|
-
}, z.core.$strip>;
|
|
299
274
|
export declare const RuntimeStageInstructionsSchema: z.ZodObject<{
|
|
300
275
|
stage_skill_dir: z.ZodString;
|
|
301
276
|
effective_mode: z.ZodEnum<{
|
|
@@ -333,7 +308,7 @@ export declare const RuntimeStageContractSchema: z.ZodObject<{
|
|
|
333
308
|
compiled: "compiled";
|
|
334
309
|
}>;
|
|
335
310
|
target_name: z.ZodString;
|
|
336
|
-
|
|
311
|
+
method: z.ZodObject<{
|
|
337
312
|
id: z.ZodString;
|
|
338
313
|
stage_index: z.ZodNullable<z.ZodNumber>;
|
|
339
314
|
stage_total: z.ZodNumber;
|
|
@@ -412,13 +387,13 @@ export declare const RuntimeRunSchema: z.ZodObject<{
|
|
|
412
387
|
compiled: "compiled";
|
|
413
388
|
}>;
|
|
414
389
|
target_name: z.ZodString;
|
|
415
|
-
|
|
390
|
+
method: z.ZodString;
|
|
416
391
|
stage: z.ZodString;
|
|
417
392
|
stage_label: z.ZodString;
|
|
418
393
|
contract_type: z.ZodString;
|
|
419
394
|
status: z.ZodEnum<{
|
|
420
|
-
running: "running";
|
|
421
395
|
failed: "failed";
|
|
396
|
+
running: "running";
|
|
422
397
|
succeeded: "succeeded";
|
|
423
398
|
}>;
|
|
424
399
|
executor: z.ZodObject<{
|
|
@@ -473,14 +448,7 @@ export declare const CompiledInventorySchema: z.ZodObject<{
|
|
|
473
448
|
}, z.core.$strict>>;
|
|
474
449
|
total: z.ZodNumber;
|
|
475
450
|
}, z.core.$strip>;
|
|
476
|
-
export declare const
|
|
477
|
-
must_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
478
|
-
must_include_one_of: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
|
|
479
|
-
must_not_include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
480
|
-
min_words: z.ZodOptional<z.ZodNumber>;
|
|
481
|
-
max_words: z.ZodOptional<z.ZodNumber>;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
export declare const WorkflowImprovementLoopSummarySchema: z.ZodObject<{
|
|
451
|
+
export declare const MethodImprovementLoopSummarySchema: z.ZodObject<{
|
|
484
452
|
variation: z.ZodNumber;
|
|
485
453
|
kind: z.ZodEnum<{
|
|
486
454
|
baseline: "baseline";
|
|
@@ -495,24 +463,24 @@ export declare const WorkflowImprovementLoopSummarySchema: z.ZodObject<{
|
|
|
495
463
|
test_sandbox_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
464
|
summary: z.ZodString;
|
|
497
465
|
}, z.core.$strip>;
|
|
498
|
-
export declare const
|
|
499
|
-
kind: z.ZodLiteral<"interf-
|
|
466
|
+
export declare const MethodImprovementContextSchema: z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"interf-method-improvement-loop">;
|
|
500
468
|
version: z.ZodLiteral<1>;
|
|
501
469
|
generated_at: z.ZodString;
|
|
502
470
|
target_name: z.ZodString;
|
|
503
|
-
|
|
471
|
+
method_id: z.ZodString;
|
|
504
472
|
loop_index: z.ZodNumber;
|
|
505
473
|
max_loops: z.ZodNumber;
|
|
506
474
|
max_attempts: z.ZodNumber;
|
|
507
475
|
review_paths: z.ZodObject<{
|
|
508
|
-
|
|
476
|
+
method_root: z.ZodString;
|
|
509
477
|
compiled_runtime: z.ZodNullable<z.ZodString>;
|
|
510
478
|
test_comparisons: z.ZodNullable<z.ZodString>;
|
|
511
479
|
execution_shells: z.ZodNullable<z.ZodString>;
|
|
512
480
|
test_runs: z.ZodNullable<z.ZodString>;
|
|
513
481
|
test_sandboxes: z.ZodNullable<z.ZodString>;
|
|
514
482
|
}, z.core.$strip>;
|
|
515
|
-
|
|
483
|
+
readiness_checks: z.ZodObject<{
|
|
516
484
|
count: z.ZodNumber;
|
|
517
485
|
questions: z.ZodArray<z.ZodObject<{
|
|
518
486
|
id: z.ZodString;
|
|
@@ -550,37 +518,39 @@ export declare const WorkflowImprovementContextSchema: z.ZodObject<{
|
|
|
550
518
|
summary: z.ZodString;
|
|
551
519
|
}, z.core.$strip>>;
|
|
552
520
|
}, z.core.$strip>;
|
|
553
|
-
export type
|
|
554
|
-
export type
|
|
521
|
+
export type MethodImprovementLoopSummary = z.infer<typeof MethodImprovementLoopSummarySchema>;
|
|
522
|
+
export type MethodImprovementContext = z.infer<typeof MethodImprovementContextSchema>;
|
|
555
523
|
export declare const PreservedShellTypeSchema: z.ZodEnum<{
|
|
556
524
|
"stage-execution": "stage-execution";
|
|
557
|
-
"
|
|
525
|
+
"method-authoring": "method-authoring";
|
|
526
|
+
"method-improvement": "method-improvement";
|
|
558
527
|
}>;
|
|
559
528
|
export declare const PreservedShellSnapshotSchema: z.ZodObject<{
|
|
560
529
|
kind: z.ZodLiteral<"interf-preserved-shell">;
|
|
561
530
|
version: z.ZodLiteral<1>;
|
|
562
531
|
shell_type: z.ZodEnum<{
|
|
563
532
|
"stage-execution": "stage-execution";
|
|
564
|
-
"
|
|
533
|
+
"method-authoring": "method-authoring";
|
|
534
|
+
"method-improvement": "method-improvement";
|
|
565
535
|
}>;
|
|
566
536
|
generated_at: z.ZodString;
|
|
567
537
|
root_path: z.ZodString;
|
|
568
538
|
materialized_symlinks: z.ZodNumber;
|
|
569
539
|
}, z.core.$strip>;
|
|
570
|
-
export declare const
|
|
540
|
+
export declare const MethodPackageValidationSchema: z.ZodObject<{
|
|
571
541
|
ok: z.ZodBoolean;
|
|
572
542
|
summary: z.ZodString;
|
|
573
543
|
errors: z.ZodArray<z.ZodString>;
|
|
574
544
|
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
575
545
|
}, z.core.$strip>;
|
|
576
|
-
export declare const
|
|
577
|
-
kind: z.ZodLiteral<"interf-
|
|
546
|
+
export declare const MethodImprovementLoopRecordSchema: z.ZodObject<{
|
|
547
|
+
kind: z.ZodLiteral<"interf-method-improvement-loop-record">;
|
|
578
548
|
version: z.ZodLiteral<1>;
|
|
579
549
|
recorded_at: z.ZodString;
|
|
580
550
|
run_id: z.ZodString;
|
|
581
551
|
loop_index: z.ZodNumber;
|
|
582
552
|
target_name: z.ZodString;
|
|
583
|
-
|
|
553
|
+
method_id: z.ZodString;
|
|
584
554
|
result: z.ZodEnum<{
|
|
585
555
|
updated: "updated";
|
|
586
556
|
"no-change": "no-change";
|
|
@@ -593,8 +563,8 @@ export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
|
|
|
593
563
|
shell_path: z.ZodString;
|
|
594
564
|
loop_root_path: z.ZodString;
|
|
595
565
|
context_path: z.ZodString;
|
|
596
|
-
|
|
597
|
-
|
|
566
|
+
method_before_path: z.ZodString;
|
|
567
|
+
method_after_path: z.ZodString;
|
|
598
568
|
prompt_log_path: z.ZodString;
|
|
599
569
|
event_log_path: z.ZodString;
|
|
600
570
|
status_log_path: z.ZodString;
|
|
@@ -606,24 +576,24 @@ export declare const WorkflowImprovementLoopRecordSchema: z.ZodObject<{
|
|
|
606
576
|
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
607
577
|
}, z.core.$strip>>;
|
|
608
578
|
}, z.core.$strip>;
|
|
609
|
-
export declare const
|
|
610
|
-
kind: z.ZodLiteral<"interf-
|
|
579
|
+
export declare const MethodImprovementRunLedgerSchema: z.ZodObject<{
|
|
580
|
+
kind: z.ZodLiteral<"interf-method-improvement-run">;
|
|
611
581
|
version: z.ZodLiteral<1>;
|
|
612
582
|
generated_at: z.ZodString;
|
|
613
583
|
updated_at: z.ZodString;
|
|
614
584
|
run_id: z.ZodString;
|
|
615
585
|
target_name: z.ZodString;
|
|
616
|
-
|
|
586
|
+
method_id: z.ZodString;
|
|
617
587
|
max_loops: z.ZodNumber;
|
|
618
588
|
max_attempts: z.ZodNumber;
|
|
619
589
|
loops: z.ZodArray<z.ZodObject<{
|
|
620
|
-
kind: z.ZodLiteral<"interf-
|
|
590
|
+
kind: z.ZodLiteral<"interf-method-improvement-loop-record">;
|
|
621
591
|
version: z.ZodLiteral<1>;
|
|
622
592
|
recorded_at: z.ZodString;
|
|
623
593
|
run_id: z.ZodString;
|
|
624
594
|
loop_index: z.ZodNumber;
|
|
625
595
|
target_name: z.ZodString;
|
|
626
|
-
|
|
596
|
+
method_id: z.ZodString;
|
|
627
597
|
result: z.ZodEnum<{
|
|
628
598
|
updated: "updated";
|
|
629
599
|
"no-change": "no-change";
|
|
@@ -636,8 +606,8 @@ export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
|
|
|
636
606
|
shell_path: z.ZodString;
|
|
637
607
|
loop_root_path: z.ZodString;
|
|
638
608
|
context_path: z.ZodString;
|
|
639
|
-
|
|
640
|
-
|
|
609
|
+
method_before_path: z.ZodString;
|
|
610
|
+
method_after_path: z.ZodString;
|
|
641
611
|
prompt_log_path: z.ZodString;
|
|
642
612
|
event_log_path: z.ZodString;
|
|
643
613
|
status_log_path: z.ZodString;
|
|
@@ -652,19 +622,24 @@ export declare const WorkflowImprovementRunLedgerSchema: z.ZodObject<{
|
|
|
652
622
|
}, z.core.$strip>;
|
|
653
623
|
export type PreservedShellType = z.infer<typeof PreservedShellTypeSchema>;
|
|
654
624
|
export type PreservedShellSnapshot = z.infer<typeof PreservedShellSnapshotSchema>;
|
|
655
|
-
export type
|
|
656
|
-
export type
|
|
657
|
-
export type
|
|
625
|
+
export type MethodPackageValidation = z.infer<typeof MethodPackageValidationSchema>;
|
|
626
|
+
export type MethodImprovementLoopRecord = z.infer<typeof MethodImprovementLoopRecordSchema>;
|
|
627
|
+
export type MethodImprovementRunLedger = z.infer<typeof MethodImprovementRunLedgerSchema>;
|
|
628
|
+
export type ReadinessStatus = z.infer<typeof ReadinessStatusSchema>;
|
|
629
|
+
export type ReadinessGate = z.infer<typeof ReadinessGateSchema>;
|
|
630
|
+
export type ReadinessCheck = z.infer<typeof ReadinessCheckSchema>;
|
|
631
|
+
export type ReadinessTargetResult = z.infer<typeof ReadinessTargetResultSchema>;
|
|
632
|
+
export type ReadinessState = z.infer<typeof ReadinessStateSchema>;
|
|
658
633
|
export type CompiledState = z.infer<typeof CompiledStateSchema>;
|
|
659
634
|
export type ViewSection = z.infer<typeof ViewSectionSchema>;
|
|
660
635
|
export type ViewCard = z.infer<typeof ViewCardSchema>;
|
|
661
636
|
export type CompiledHealth = z.infer<typeof CompiledHealthSchema>;
|
|
662
637
|
export type CompiledViewSpec = z.infer<typeof CompiledViewSpecSchema>;
|
|
663
638
|
export type CompiledRawSnapshot = z.infer<typeof CompiledRawSnapshotSchema>;
|
|
664
|
-
export type
|
|
665
|
-
export type
|
|
666
|
-
export type
|
|
667
|
-
export type
|
|
639
|
+
export type MethodCompiledZone = z.infer<typeof MethodCompiledZoneSchema>;
|
|
640
|
+
export type MethodCompiledSchema = z.infer<typeof MethodCompiledSchemaSchema>;
|
|
641
|
+
export type MethodCompiledZoneKind = z.infer<typeof MethodCompiledZoneKindSchema>;
|
|
642
|
+
export type MethodZoneId = z.infer<typeof MethodZoneIdSchema>;
|
|
668
643
|
export type ExecutionShellZoneMount = z.infer<typeof ExecutionShellZoneMountSchema>;
|
|
669
644
|
export type ExecutionShellPaths = z.infer<typeof ExecutionShellPathsSchema>;
|
|
670
645
|
export type RuntimeExecutorInfo = z.infer<typeof RuntimeExecutorInfoSchema>;
|
|
@@ -672,7 +647,7 @@ export type RuntimeTargetType = z.infer<typeof RuntimeTargetTypeSchema>;
|
|
|
672
647
|
export type TestTargetType = z.infer<typeof TestTargetTypeSchema>;
|
|
673
648
|
export type RuntimeStage = z.infer<typeof RuntimeStageSchema>;
|
|
674
649
|
export type RuntimeContractType = z.infer<typeof RuntimeContractTypeSchema>;
|
|
675
|
-
export type
|
|
650
|
+
export type MethodId = z.infer<typeof MethodIdSchema>;
|
|
676
651
|
export type LocalInstructionMode = "extend" | "override";
|
|
677
652
|
export type RuntimeInstructionMode = "builtin" | LocalInstructionMode;
|
|
678
653
|
export type RuntimeStageInstructions = z.infer<typeof RuntimeStageInstructionsSchema>;
|