@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
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema, ReadinessStateSchema, PreparationNameSchema, } from "../../contracts/lib/schema.js";
|
|
3
|
+
const RunIdSchema = z.string().min(1);
|
|
4
|
+
const JsonObjectSchema = z.record(z.string(), z.unknown());
|
|
5
|
+
export const MethodTraceRunStatusSchema = z.enum([
|
|
6
|
+
"pending",
|
|
7
|
+
"running",
|
|
8
|
+
"completed",
|
|
9
|
+
"failed",
|
|
10
|
+
"cancelled",
|
|
11
|
+
]);
|
|
12
|
+
export const MethodTraceEventTypeSchema = z.enum([
|
|
13
|
+
"run_created",
|
|
14
|
+
"run_started",
|
|
15
|
+
"run_completed",
|
|
16
|
+
"run_failed",
|
|
17
|
+
"run_cancelled",
|
|
18
|
+
"step_created",
|
|
19
|
+
"step_started",
|
|
20
|
+
"step_completed",
|
|
21
|
+
"step_failed",
|
|
22
|
+
"step_retrying",
|
|
23
|
+
"hook_created",
|
|
24
|
+
"hook_received",
|
|
25
|
+
"hook_disposed",
|
|
26
|
+
"hook_conflict",
|
|
27
|
+
"wait_created",
|
|
28
|
+
"wait_completed",
|
|
29
|
+
]);
|
|
30
|
+
export const MethodTraceStructuredErrorSchema = z.object({
|
|
31
|
+
message: z.string().min(1),
|
|
32
|
+
stack: z.string().min(1).optional(),
|
|
33
|
+
code: z.string().min(1).optional(),
|
|
34
|
+
}).strict();
|
|
35
|
+
export const MethodTraceRunSchema = z.object({
|
|
36
|
+
runId: RunIdSchema,
|
|
37
|
+
status: MethodTraceRunStatusSchema,
|
|
38
|
+
deploymentId: z.string().min(1),
|
|
39
|
+
methodName: z.string().min(1),
|
|
40
|
+
specVersion: z.literal(1),
|
|
41
|
+
executionContext: JsonObjectSchema.optional(),
|
|
42
|
+
input: z.unknown(),
|
|
43
|
+
output: z.unknown().optional(),
|
|
44
|
+
error: MethodTraceStructuredErrorSchema.optional(),
|
|
45
|
+
expiredAt: z.string().min(1).optional(),
|
|
46
|
+
startedAt: z.string().min(1).optional(),
|
|
47
|
+
completedAt: z.string().min(1).optional(),
|
|
48
|
+
createdAt: z.string().min(1),
|
|
49
|
+
updatedAt: z.string().min(1),
|
|
50
|
+
}).strict();
|
|
51
|
+
export const MethodTraceEventSchema = z.object({
|
|
52
|
+
runId: RunIdSchema,
|
|
53
|
+
eventId: z.string().min(1),
|
|
54
|
+
eventType: MethodTraceEventTypeSchema,
|
|
55
|
+
correlationId: z.string().min(1).optional(),
|
|
56
|
+
specVersion: z.literal(1),
|
|
57
|
+
createdAt: z.string().min(1),
|
|
58
|
+
eventData: z.unknown().optional(),
|
|
59
|
+
}).strict();
|
|
60
|
+
export const MethodTraceStreamChunkSchema = z.object({
|
|
61
|
+
streamId: z.string().min(1),
|
|
62
|
+
chunkId: z.string().min(1),
|
|
63
|
+
index: z.number().int().min(0),
|
|
64
|
+
createdAt: z.string().min(1),
|
|
65
|
+
text: z.string(),
|
|
66
|
+
data: z.unknown().optional(),
|
|
67
|
+
}).strict();
|
|
68
|
+
export const MethodTraceSchema = z.object({
|
|
69
|
+
run: MethodTraceRunSchema,
|
|
70
|
+
events: z.array(MethodTraceEventSchema).default([]),
|
|
71
|
+
streams: z.array(MethodTraceStreamChunkSchema).default([]),
|
|
72
|
+
}).strict();
|
|
73
|
+
export const ObservableRunTypeSchema = z.enum([
|
|
74
|
+
"preparation-setup",
|
|
75
|
+
"compile",
|
|
76
|
+
"test",
|
|
77
|
+
"readiness-check-draft",
|
|
78
|
+
"method-authoring",
|
|
79
|
+
"method-improvement",
|
|
80
|
+
"job",
|
|
81
|
+
]);
|
|
82
|
+
export const ObservableRunStatusSchema = z.enum([
|
|
83
|
+
"queued",
|
|
84
|
+
"running",
|
|
85
|
+
"succeeded",
|
|
86
|
+
"failed",
|
|
87
|
+
"cancelled",
|
|
88
|
+
]);
|
|
89
|
+
export const ObservableRunMetricSchema = z.object({
|
|
90
|
+
label: z.string().min(1),
|
|
91
|
+
value: z.string().min(1),
|
|
92
|
+
detail: z.string().min(1).optional(),
|
|
93
|
+
}).strict();
|
|
94
|
+
export const ExecutionBackendKindSchema = z.enum([
|
|
95
|
+
"native",
|
|
96
|
+
"workflow-sdk",
|
|
97
|
+
]);
|
|
98
|
+
export const CompileRunStatusSchema = z.enum([
|
|
99
|
+
"queued",
|
|
100
|
+
"running",
|
|
101
|
+
"succeeded",
|
|
102
|
+
"failed",
|
|
103
|
+
"cancelled",
|
|
104
|
+
]);
|
|
105
|
+
export const StageRunStatusSchema = z.enum([
|
|
106
|
+
"queued",
|
|
107
|
+
"running",
|
|
108
|
+
"succeeded",
|
|
109
|
+
"failed",
|
|
110
|
+
]);
|
|
111
|
+
export const ArtifactRoleSchema = z.enum([
|
|
112
|
+
"source",
|
|
113
|
+
"output",
|
|
114
|
+
"proof",
|
|
115
|
+
"runtime",
|
|
116
|
+
"test",
|
|
117
|
+
]);
|
|
118
|
+
export const ArtifactRefSchema = z.object({
|
|
119
|
+
path: z.string().min(1),
|
|
120
|
+
role: ArtifactRoleSchema,
|
|
121
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
122
|
+
label: z.string().min(1).optional(),
|
|
123
|
+
sha256: z.string().min(1).optional(),
|
|
124
|
+
}).strict();
|
|
125
|
+
export const ProofCheckSchema = z.object({
|
|
126
|
+
id: z.string().min(1),
|
|
127
|
+
label: z.string().min(1),
|
|
128
|
+
ok: z.boolean(),
|
|
129
|
+
detail: z.string().min(1).optional(),
|
|
130
|
+
}).strict();
|
|
131
|
+
export const RunObservabilitySchema = z.object({
|
|
132
|
+
kind: z.literal("interf-run-observability"),
|
|
133
|
+
version: z.literal(1),
|
|
134
|
+
run_id: RunIdSchema,
|
|
135
|
+
run_type: ObservableRunTypeSchema,
|
|
136
|
+
title: z.string().min(1),
|
|
137
|
+
status: ObservableRunStatusSchema,
|
|
138
|
+
preparation: PreparationNameSchema.nullable().optional(),
|
|
139
|
+
method: MethodIdSchema.nullable().optional(),
|
|
140
|
+
source_path: z.string().min(1).nullable().optional(),
|
|
141
|
+
output_path: z.string().min(1).nullable().optional(),
|
|
142
|
+
executor: RuntimeExecutorInfoSchema.nullable().optional(),
|
|
143
|
+
agent_label: z.string().min(1).nullable().optional(),
|
|
144
|
+
created_at: z.string().min(1),
|
|
145
|
+
started_at: z.string().min(1).nullable().optional(),
|
|
146
|
+
finished_at: z.string().min(1).nullable().optional(),
|
|
147
|
+
metrics: z.array(ObservableRunMetricSchema).default([]),
|
|
148
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
149
|
+
proof: z.array(ProofCheckSchema).default([]),
|
|
150
|
+
readiness: ReadinessStateSchema.nullable().optional(),
|
|
151
|
+
trace: MethodTraceSchema,
|
|
152
|
+
}).strict();
|
|
153
|
+
export const ProofRecordSchema = z.object({
|
|
154
|
+
id: z.string().min(1),
|
|
155
|
+
run_id: RunIdSchema,
|
|
156
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
157
|
+
generated_at: z.string().min(1),
|
|
158
|
+
summary: z.string().min(1),
|
|
159
|
+
files_processed: z.number().int().min(0).optional(),
|
|
160
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
161
|
+
checks: z.array(ProofCheckSchema).default([]),
|
|
162
|
+
}).strict();
|
|
163
|
+
export const StageRunContractSchema = z.object({
|
|
164
|
+
stage_label: z.string().min(1).optional(),
|
|
165
|
+
stage_index: z.number().int().min(0).optional(),
|
|
166
|
+
stage_total: z.number().int().min(1).optional(),
|
|
167
|
+
reads: z.array(z.string().min(1)).default([]),
|
|
168
|
+
writes: z.array(z.string().min(1)).default([]),
|
|
169
|
+
acceptance: z.record(z.string(), z.unknown()).optional(),
|
|
170
|
+
}).strict();
|
|
171
|
+
export const StageRunLogsSchema = z.object({
|
|
172
|
+
prompt_path: z.string().min(1).optional(),
|
|
173
|
+
event_stream_path: z.string().min(1).optional(),
|
|
174
|
+
status_path: z.string().min(1).optional(),
|
|
175
|
+
contract_path: z.string().min(1).optional(),
|
|
176
|
+
}).strict();
|
|
177
|
+
const RunEventBaseSchema = z.object({
|
|
178
|
+
event_id: z.string().min(1),
|
|
179
|
+
run_id: RunIdSchema,
|
|
180
|
+
timestamp: z.string().min(1),
|
|
181
|
+
});
|
|
182
|
+
export const RunStartedEventSchema = RunEventBaseSchema.extend({
|
|
183
|
+
type: z.literal("run.started"),
|
|
184
|
+
preparation: PreparationNameSchema,
|
|
185
|
+
method: MethodIdSchema,
|
|
186
|
+
portable_context_path: z.string().min(1),
|
|
187
|
+
backend: ExecutionBackendKindSchema,
|
|
188
|
+
}).strict();
|
|
189
|
+
export const StageStartedEventSchema = RunEventBaseSchema.extend({
|
|
190
|
+
type: z.literal("stage.started"),
|
|
191
|
+
stage_id: RuntimeStageSchema,
|
|
192
|
+
stage_index: z.number().int().min(0).optional(),
|
|
193
|
+
stage_total: z.number().int().min(1).optional(),
|
|
194
|
+
}).strict();
|
|
195
|
+
export const FileProcessedEventSchema = RunEventBaseSchema.extend({
|
|
196
|
+
type: z.literal("file.processed"),
|
|
197
|
+
stage_id: RuntimeStageSchema,
|
|
198
|
+
path: z.string().min(1),
|
|
199
|
+
}).strict();
|
|
200
|
+
export const ArtifactWrittenEventSchema = RunEventBaseSchema.extend({
|
|
201
|
+
type: z.literal("artifact.written"),
|
|
202
|
+
stage_id: RuntimeStageSchema,
|
|
203
|
+
artifact: ArtifactRefSchema,
|
|
204
|
+
}).strict();
|
|
205
|
+
export const ProofUpdatedEventSchema = RunEventBaseSchema.extend({
|
|
206
|
+
type: z.literal("proof.updated"),
|
|
207
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
208
|
+
proof: ProofRecordSchema,
|
|
209
|
+
}).strict();
|
|
210
|
+
export const LogAppendedEventSchema = RunEventBaseSchema.extend({
|
|
211
|
+
type: z.literal("log.appended"),
|
|
212
|
+
stage_id: RuntimeStageSchema.nullable().optional(),
|
|
213
|
+
stream: z.enum(["status", "trace", "system"]),
|
|
214
|
+
message: z.string().min(1),
|
|
215
|
+
}).strict();
|
|
216
|
+
export const StagePassedEventSchema = RunEventBaseSchema.extend({
|
|
217
|
+
type: z.literal("stage.passed"),
|
|
218
|
+
stage_id: RuntimeStageSchema,
|
|
219
|
+
summary: z.string().min(1).optional(),
|
|
220
|
+
}).strict();
|
|
221
|
+
export const StageFailedEventSchema = RunEventBaseSchema.extend({
|
|
222
|
+
type: z.literal("stage.failed"),
|
|
223
|
+
stage_id: RuntimeStageSchema,
|
|
224
|
+
error: z.string().min(1),
|
|
225
|
+
}).strict();
|
|
226
|
+
export const RunCompletedEventSchema = RunEventBaseSchema.extend({
|
|
227
|
+
type: z.literal("run.completed"),
|
|
228
|
+
summary: z.string().min(1).optional(),
|
|
229
|
+
}).strict();
|
|
230
|
+
export const RunFailedEventSchema = RunEventBaseSchema.extend({
|
|
231
|
+
type: z.literal("run.failed"),
|
|
232
|
+
error: z.string().min(1),
|
|
233
|
+
}).strict();
|
|
234
|
+
export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
|
|
235
|
+
type: z.literal("checks.evaluated"),
|
|
236
|
+
passed: z.number().int().min(0),
|
|
237
|
+
total: z.number().int().min(0),
|
|
238
|
+
target: z.enum(["raw", "compiled"]).optional(),
|
|
239
|
+
checks_fingerprint: z.string().min(1).optional(),
|
|
240
|
+
stale: z.boolean().optional(),
|
|
241
|
+
test_run_id: z.string().min(1).optional(),
|
|
242
|
+
}).strict();
|
|
243
|
+
export const ReadinessUpdatedEventSchema = RunEventBaseSchema.extend({
|
|
244
|
+
type: z.literal("readiness.updated"),
|
|
245
|
+
preparation: PreparationNameSchema,
|
|
246
|
+
readiness: ReadinessStateSchema,
|
|
247
|
+
}).strict();
|
|
248
|
+
export const InterfRunEventSchema = z.discriminatedUnion("type", [
|
|
249
|
+
RunStartedEventSchema,
|
|
250
|
+
StageStartedEventSchema,
|
|
251
|
+
FileProcessedEventSchema,
|
|
252
|
+
ArtifactWrittenEventSchema,
|
|
253
|
+
ProofUpdatedEventSchema,
|
|
254
|
+
LogAppendedEventSchema,
|
|
255
|
+
StagePassedEventSchema,
|
|
256
|
+
StageFailedEventSchema,
|
|
257
|
+
RunCompletedEventSchema,
|
|
258
|
+
RunFailedEventSchema,
|
|
259
|
+
ChecksEvaluatedEventSchema,
|
|
260
|
+
ReadinessUpdatedEventSchema,
|
|
261
|
+
]);
|
|
262
|
+
export const StageRunSchema = z.object({
|
|
263
|
+
run_id: RunIdSchema,
|
|
264
|
+
stage_id: RuntimeStageSchema,
|
|
265
|
+
stage_label: z.string().min(1).optional(),
|
|
266
|
+
stage_index: z.number().int().min(0).optional(),
|
|
267
|
+
stage_total: z.number().int().min(1).optional(),
|
|
268
|
+
status: StageRunStatusSchema,
|
|
269
|
+
started_at: z.string().nullable().optional(),
|
|
270
|
+
finished_at: z.string().nullable().optional(),
|
|
271
|
+
summary: z.string().nullable().optional(),
|
|
272
|
+
contract: StageRunContractSchema.optional(),
|
|
273
|
+
executor: RuntimeExecutorInfoSchema.nullable().optional(),
|
|
274
|
+
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
275
|
+
logs: StageRunLogsSchema.optional(),
|
|
276
|
+
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
277
|
+
failure: z.string().nullable().optional(),
|
|
278
|
+
}).strict();
|
|
279
|
+
export const CompileRunSchema = z.object({
|
|
280
|
+
kind: z.literal("interf-compile-run"),
|
|
281
|
+
version: z.literal(1),
|
|
282
|
+
run_id: RunIdSchema,
|
|
283
|
+
status: CompileRunStatusSchema,
|
|
284
|
+
preparation: PreparationNameSchema,
|
|
285
|
+
method: MethodIdSchema,
|
|
286
|
+
backend: ExecutionBackendKindSchema,
|
|
287
|
+
source_path: z.string().min(1),
|
|
288
|
+
portable_context_path: z.string().min(1),
|
|
289
|
+
created_at: z.string().min(1),
|
|
290
|
+
started_at: z.string().nullable().optional(),
|
|
291
|
+
finished_at: z.string().nullable().optional(),
|
|
292
|
+
stages: z.array(StageRunSchema).default([]),
|
|
293
|
+
events: z.array(InterfRunEventSchema).default([]),
|
|
294
|
+
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
295
|
+
readiness: ReadinessStateSchema.nullable().optional(),
|
|
296
|
+
}).strict();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ActionValueIdPattern: RegExp;
|
|
3
|
+
export declare const ActionValueIdSchema: z.ZodString;
|
|
4
|
+
export declare const OptionalActionValueIdSchema: z.ZodString;
|
|
5
|
+
export declare const PreparationSetupActionValuesSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
about: z.ZodString;
|
|
9
|
+
method: z.ZodOptional<z.ZodString>;
|
|
10
|
+
readiness_notes: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strict>;
|
|
12
|
+
export declare const MethodAuthoringActionValuesSchema: z.ZodObject<{
|
|
13
|
+
method_id: z.ZodString;
|
|
14
|
+
label: z.ZodString;
|
|
15
|
+
hint: z.ZodString;
|
|
16
|
+
task_prompt: z.ZodString;
|
|
17
|
+
portable_output: z.ZodOptional<z.ZodString>;
|
|
18
|
+
readiness_notes: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export type PreparationSetupActionValues = z.infer<typeof PreparationSetupActionValuesSchema>;
|
|
21
|
+
export type MethodAuthoringActionValues = z.infer<typeof MethodAuthoringActionValuesSchema>;
|
|
22
|
+
export declare function methodAuthoringTaskPrompt(values: MethodAuthoringActionValues): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ActionValueIdPattern = /^[a-z0-9][a-z0-9-]{0,79}$/;
|
|
3
|
+
export const ActionValueIdSchema = z.string().trim().regex(ActionValueIdPattern, "Use lowercase letters, numbers, and dashes.");
|
|
4
|
+
export const OptionalActionValueIdSchema = z.string().trim().refine((value) => value === "" || ActionValueIdPattern.test(value), "Use lowercase letters, numbers, and dashes.");
|
|
5
|
+
export const PreparationSetupActionValuesSchema = z.object({
|
|
6
|
+
name: ActionValueIdSchema,
|
|
7
|
+
path: z.string().trim().min(1, "Source Folder is required."),
|
|
8
|
+
about: z.string().trim().min(1, "Agent work is required."),
|
|
9
|
+
method: OptionalActionValueIdSchema.optional(),
|
|
10
|
+
readiness_notes: z.string().trim().optional(),
|
|
11
|
+
}).strict();
|
|
12
|
+
export const MethodAuthoringActionValuesSchema = z.object({
|
|
13
|
+
method_id: ActionValueIdSchema,
|
|
14
|
+
label: z.string().trim().min(1, "Label is required."),
|
|
15
|
+
hint: z.string().trim().min(1, "Summary is required."),
|
|
16
|
+
task_prompt: z.string().trim().min(1, "Agent work is required."),
|
|
17
|
+
portable_output: z.string().trim().optional(),
|
|
18
|
+
readiness_notes: z.string().trim().optional(),
|
|
19
|
+
}).strict();
|
|
20
|
+
function optionalLine(label, value) {
|
|
21
|
+
const trimmed = value?.trim();
|
|
22
|
+
return trimmed ? `${label}: ${trimmed}` : null;
|
|
23
|
+
}
|
|
24
|
+
export function methodAuthoringTaskPrompt(values) {
|
|
25
|
+
return [
|
|
26
|
+
`Agent work: ${values.task_prompt}`,
|
|
27
|
+
optionalLine("Portable-context output", values.portable_output),
|
|
28
|
+
optionalLine("Readiness checks", values.readiness_notes),
|
|
29
|
+
].filter((line) => Boolean(line)).join("\n");
|
|
30
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type CompileRunCreateRequest, type CompileRunListResponse, type CompileRunResource, type LocalJobEventAppendRequest, type LocalJobRunCreateRequest, type LocalJobRunListResponse, type LocalJobRunResource, type LocalServiceHealth, type ReadinessCheckDraftCreateRequest, type ReadinessCheckDraftResult, type ReadinessListResponse, type TestRunCreateRequest, type TestRunListResponse, type TestRunResource, type MethodAuthoringCreateRequest, type MethodAuthoringResult } from "./lib/schema.js";
|
|
2
|
+
export interface LocalServiceConnection {
|
|
3
|
+
serviceUrl: string;
|
|
4
|
+
health: LocalServiceHealth;
|
|
5
|
+
}
|
|
6
|
+
export interface LocalServiceJobSubmission<T> {
|
|
7
|
+
serviceUrl: string;
|
|
8
|
+
job: LocalJobRunResource;
|
|
9
|
+
result: T | null;
|
|
10
|
+
error?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LocalServiceJobSubmitted {
|
|
13
|
+
serviceUrl: string;
|
|
14
|
+
job: LocalJobRunResource;
|
|
15
|
+
}
|
|
16
|
+
export interface LocalServiceRunSnapshot {
|
|
17
|
+
jobs: LocalJobRunResource[];
|
|
18
|
+
compileRuns: CompileRunResource[];
|
|
19
|
+
testRuns: TestRunResource[];
|
|
20
|
+
}
|
|
21
|
+
export declare function configuredLocalServiceUrl(): string;
|
|
22
|
+
export declare function findLocalService(options: {
|
|
23
|
+
projectPath: string;
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
}): Promise<LocalServiceConnection | null>;
|
|
26
|
+
export declare function submitCompileRunToLocalService(options: {
|
|
27
|
+
projectPath: string;
|
|
28
|
+
request: CompileRunCreateRequest;
|
|
29
|
+
}): Promise<{
|
|
30
|
+
serviceUrl: string;
|
|
31
|
+
resource: CompileRunResource;
|
|
32
|
+
} | null>;
|
|
33
|
+
export declare function submitTestRunToLocalService(options: {
|
|
34
|
+
projectPath: string;
|
|
35
|
+
request: TestRunCreateRequest;
|
|
36
|
+
}): Promise<{
|
|
37
|
+
serviceUrl: string;
|
|
38
|
+
resource: TestRunResource;
|
|
39
|
+
} | null>;
|
|
40
|
+
export declare function getLocalCompileRun(options: {
|
|
41
|
+
serviceUrl: string;
|
|
42
|
+
runId: string;
|
|
43
|
+
}): Promise<CompileRunResource>;
|
|
44
|
+
export declare function listLocalCompileRuns(options: {
|
|
45
|
+
serviceUrl: string;
|
|
46
|
+
timeoutMs?: number;
|
|
47
|
+
}): Promise<CompileRunListResponse>;
|
|
48
|
+
export declare function listLocalReadiness(options: {
|
|
49
|
+
serviceUrl: string;
|
|
50
|
+
timeoutMs?: number;
|
|
51
|
+
}): Promise<ReadinessListResponse>;
|
|
52
|
+
export declare function waitForLocalCompileRun(options: {
|
|
53
|
+
serviceUrl: string;
|
|
54
|
+
runId: string;
|
|
55
|
+
pollMs?: number;
|
|
56
|
+
onUpdate?: (resource: CompileRunResource) => void;
|
|
57
|
+
}): Promise<CompileRunResource>;
|
|
58
|
+
export declare function getLocalTestRun(options: {
|
|
59
|
+
serviceUrl: string;
|
|
60
|
+
runId: string;
|
|
61
|
+
}): Promise<TestRunResource>;
|
|
62
|
+
export declare function listLocalTestRuns(options: {
|
|
63
|
+
serviceUrl: string;
|
|
64
|
+
timeoutMs?: number;
|
|
65
|
+
}): Promise<TestRunListResponse>;
|
|
66
|
+
export declare function waitForLocalTestRun(options: {
|
|
67
|
+
serviceUrl: string;
|
|
68
|
+
runId: string;
|
|
69
|
+
pollMs?: number;
|
|
70
|
+
onUpdate?: (resource: TestRunResource) => void;
|
|
71
|
+
}): Promise<TestRunResource>;
|
|
72
|
+
export declare function getLocalJobRun(options: {
|
|
73
|
+
serviceUrl: string;
|
|
74
|
+
runId: string;
|
|
75
|
+
}): Promise<LocalJobRunResource>;
|
|
76
|
+
export declare function listLocalJobRuns(options: {
|
|
77
|
+
serviceUrl: string;
|
|
78
|
+
timeoutMs?: number;
|
|
79
|
+
}): Promise<LocalJobRunListResponse>;
|
|
80
|
+
export declare function readLocalServiceRunSnapshot(options: {
|
|
81
|
+
serviceUrl: string;
|
|
82
|
+
timeoutMs?: number;
|
|
83
|
+
}): Promise<LocalServiceRunSnapshot>;
|
|
84
|
+
export declare function waitForLocalJobRun(options: {
|
|
85
|
+
serviceUrl: string;
|
|
86
|
+
runId: string;
|
|
87
|
+
pollMs?: number;
|
|
88
|
+
timeoutMs?: number;
|
|
89
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
90
|
+
}): Promise<LocalJobRunResource>;
|
|
91
|
+
export declare function submitReadinessCheckDraftToLocalService(options: {
|
|
92
|
+
projectPath: string;
|
|
93
|
+
request: ReadinessCheckDraftCreateRequest;
|
|
94
|
+
onSubmitted?: (submission: LocalServiceJobSubmitted) => void;
|
|
95
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
96
|
+
}): Promise<LocalServiceJobSubmission<ReadinessCheckDraftResult> | null>;
|
|
97
|
+
export declare function submitMethodAuthoringRunToLocalService(options: {
|
|
98
|
+
projectPath: string;
|
|
99
|
+
request: MethodAuthoringCreateRequest;
|
|
100
|
+
onSubmitted?: (submission: LocalServiceJobSubmitted) => void;
|
|
101
|
+
onUpdate?: (job: LocalJobRunResource) => void;
|
|
102
|
+
}): Promise<LocalServiceJobSubmission<MethodAuthoringResult> | null>;
|
|
103
|
+
export interface LocalJobTracker {
|
|
104
|
+
serviceUrl: string;
|
|
105
|
+
runId: string;
|
|
106
|
+
resource: LocalJobRunResource;
|
|
107
|
+
emit(event: LocalJobEventAppendRequest): void;
|
|
108
|
+
complete(message?: string): Promise<void>;
|
|
109
|
+
fail(message: string): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
export declare function appendLocalJobRunEvent(options: {
|
|
112
|
+
projectPath: string;
|
|
113
|
+
runId: string;
|
|
114
|
+
event: LocalJobEventAppendRequest;
|
|
115
|
+
}): Promise<LocalJobRunResource | null>;
|
|
116
|
+
export declare function startLocalJobRun(options: {
|
|
117
|
+
projectPath: string;
|
|
118
|
+
request: LocalJobRunCreateRequest;
|
|
119
|
+
}): Promise<LocalJobTracker | null>;
|