@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
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import * as p from "@clack/prompts";
|
|
3
|
-
import { detectInterf,
|
|
3
|
+
import { detectInterf, listPortableContextsForSourceFolder, readInterfConfig, resolveSourceControlPath, } from "../../packages/project-model/interf.js";
|
|
4
4
|
import { computeCompiledHealth } from "../../packages/compiler/state.js";
|
|
5
|
-
import {
|
|
5
|
+
import { sourcePreparationConfigFromInterfConfig, loadCompiledPreparationConfig, } from "../../packages/project-model/source-config.js";
|
|
6
6
|
import { printSavedTestComparisonState, readCurrentSavedTestComparison } from "./test-flow.js";
|
|
7
|
+
import { findLocalService, readLocalServiceRunSnapshot, } from "../../packages/local-service/index.js";
|
|
8
|
+
import { resolveCommandControlPath } from "./control-path.js";
|
|
7
9
|
function statusColor(status) {
|
|
8
10
|
switch (status) {
|
|
9
11
|
case "compiled":
|
|
@@ -16,25 +18,69 @@ function statusColor(status) {
|
|
|
16
18
|
return chalk.dim;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
21
|
+
function publicReadinessStatus(status) {
|
|
22
|
+
return status === "compiled" ? "ready" : "not ready";
|
|
23
|
+
}
|
|
24
|
+
function publicPrepareState(status) {
|
|
25
|
+
if (status === "compiled")
|
|
26
|
+
return "prepared";
|
|
27
|
+
if (status === "idle")
|
|
28
|
+
return "not prepared";
|
|
29
|
+
return status;
|
|
30
|
+
}
|
|
31
|
+
function publicHealthSummary(health) {
|
|
32
|
+
const completedStages = health.metrics.completed_stages;
|
|
33
|
+
const stageTotal = health.metrics.stage_total;
|
|
34
|
+
if (typeof completedStages === "number" && typeof stageTotal === "number") {
|
|
35
|
+
if (health.status === "compiled") {
|
|
36
|
+
return `Portable Context ready — ${completedStages}/${stageTotal} Method stages satisfied.`;
|
|
37
|
+
}
|
|
38
|
+
if (health.status === "stale") {
|
|
39
|
+
return `Portable Context not ready — ${completedStages}/${stageTotal} Method stages satisfied.`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return health.summary
|
|
43
|
+
.replace(/\bCompiled\b/g, "Prepared")
|
|
44
|
+
.replace(/\bcompiled\b/g, "prepared")
|
|
45
|
+
.replace(/\bmethod stages\b/g, "Method stages")
|
|
46
|
+
.replace(/\bmethod stage\b/g, "Method stage");
|
|
47
|
+
}
|
|
19
48
|
export const statusCommand = {
|
|
20
49
|
command: "status",
|
|
21
|
-
describe: "Show deterministic health for the
|
|
22
|
-
|
|
50
|
+
describe: "Show deterministic health for the Portable Context agents use",
|
|
51
|
+
builder: (yargs) => yargs.option("watch", {
|
|
52
|
+
type: "boolean",
|
|
53
|
+
default: false,
|
|
54
|
+
describe: "Poll the local Interf service for live run status",
|
|
55
|
+
}),
|
|
56
|
+
handler: async (argv) => {
|
|
23
57
|
let compiledPath = null;
|
|
24
58
|
const detected = detectInterf(process.cwd());
|
|
59
|
+
const serviceProjectPath = detected ? resolveSourceControlPath(detected.path) : resolveCommandControlPath();
|
|
60
|
+
const service = await findLocalService({
|
|
61
|
+
projectPath: serviceProjectPath,
|
|
62
|
+
timeoutMs: 200,
|
|
63
|
+
});
|
|
64
|
+
if (service) {
|
|
65
|
+
await printLocalServiceStatus(service.serviceUrl);
|
|
66
|
+
if (argv.watch === true) {
|
|
67
|
+
await watchLocalServiceStatus(service.serviceUrl);
|
|
68
|
+
}
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
25
71
|
if (detected) {
|
|
26
72
|
compiledPath = detected.path;
|
|
27
73
|
}
|
|
28
74
|
else {
|
|
29
|
-
const sourcePath =
|
|
30
|
-
const local =
|
|
75
|
+
const sourcePath = resolveCommandControlPath();
|
|
76
|
+
const local = listPortableContextsForSourceFolder(sourcePath).map(({ path, config }) => ({
|
|
31
77
|
path,
|
|
32
78
|
name: config.name,
|
|
33
79
|
}));
|
|
34
80
|
if (local.length === 0) {
|
|
35
81
|
process.exitCode = 1;
|
|
36
|
-
console.log(chalk.red(" No
|
|
37
|
-
console.log(chalk.dim(" Run `interf`, save
|
|
82
|
+
console.log(chalk.red(" No Portable Context found."));
|
|
83
|
+
console.log(chalk.dim(" Run `interf`, save readiness checks, and compile Portable Context agents can use first."));
|
|
38
84
|
return;
|
|
39
85
|
}
|
|
40
86
|
if (local.length === 1) {
|
|
@@ -42,7 +88,7 @@ export const statusCommand = {
|
|
|
42
88
|
}
|
|
43
89
|
else {
|
|
44
90
|
const selected = await p.select({
|
|
45
|
-
message: "Which
|
|
91
|
+
message: "Which Portable Context?",
|
|
46
92
|
options: local.map((entry) => ({ value: entry.path, label: entry.name })),
|
|
47
93
|
});
|
|
48
94
|
if (p.isCancel(selected))
|
|
@@ -54,17 +100,17 @@ export const statusCommand = {
|
|
|
54
100
|
const color = statusColor(health.status);
|
|
55
101
|
console.log();
|
|
56
102
|
console.log(color(` ${health.target_name}`));
|
|
57
|
-
console.log(chalk.dim(`
|
|
58
|
-
console.log(chalk.dim(`
|
|
59
|
-
console.log(chalk.dim(` ${health
|
|
103
|
+
console.log(chalk.dim(` readiness: ${publicReadinessStatus(health.status)}`));
|
|
104
|
+
console.log(chalk.dim(` prepare state: ${publicPrepareState(health.status)}`));
|
|
105
|
+
console.log(chalk.dim(` ${publicHealthSummary(health)}`));
|
|
60
106
|
const compiledConfig = readInterfConfig(compiledPath);
|
|
61
107
|
const sourcePath = resolveSourceControlPath(compiledPath);
|
|
62
108
|
const latestComparisonState = compiledConfig
|
|
63
109
|
? readCurrentSavedTestComparison({
|
|
64
110
|
projectPath: sourcePath,
|
|
65
|
-
|
|
66
|
-
checks: (
|
|
67
|
-
??
|
|
111
|
+
preparationName: compiledConfig.name,
|
|
112
|
+
checks: (loadCompiledPreparationConfig(compiledPath)
|
|
113
|
+
?? sourcePreparationConfigFromInterfConfig(compiledConfig)).checks,
|
|
68
114
|
})
|
|
69
115
|
: { comparison: null, stale: false };
|
|
70
116
|
const latestComparison = latestComparisonState.comparison;
|
|
@@ -74,8 +120,8 @@ export const statusCommand = {
|
|
|
74
120
|
else {
|
|
75
121
|
console.log();
|
|
76
122
|
console.log(chalk.dim(latestComparisonState.stale
|
|
77
|
-
? " Saved
|
|
78
|
-
: " No saved
|
|
123
|
+
? " Saved readiness results are stale for the current checks. Run `interf test` again."
|
|
124
|
+
: " No saved readiness check run yet. Run `interf test` to check source files and Portable Context."));
|
|
79
125
|
}
|
|
80
126
|
console.log();
|
|
81
127
|
const metricOrder = [
|
|
@@ -100,3 +146,92 @@ export const statusCommand = {
|
|
|
100
146
|
}
|
|
101
147
|
},
|
|
102
148
|
};
|
|
149
|
+
function formatEventTime(value) {
|
|
150
|
+
const date = new Date(value);
|
|
151
|
+
if (Number.isNaN(date.valueOf()))
|
|
152
|
+
return value;
|
|
153
|
+
return date.toLocaleTimeString([], {
|
|
154
|
+
hour: "2-digit",
|
|
155
|
+
minute: "2-digit",
|
|
156
|
+
second: "2-digit",
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function testScore(run) {
|
|
160
|
+
const compiled = run.comparison?.compiled;
|
|
161
|
+
const raw = run.comparison?.raw;
|
|
162
|
+
if (compiled)
|
|
163
|
+
return `${compiled.passed_cases}/${compiled.total_cases}`;
|
|
164
|
+
if (raw)
|
|
165
|
+
return `${raw.passed_cases}/${raw.total_cases}`;
|
|
166
|
+
return "pending";
|
|
167
|
+
}
|
|
168
|
+
function compileRunEventDetail(event) {
|
|
169
|
+
if ("message" in event && typeof event.message === "string")
|
|
170
|
+
return event.message;
|
|
171
|
+
if ("summary" in event && typeof event.summary === "string")
|
|
172
|
+
return event.summary;
|
|
173
|
+
if ("error" in event && typeof event.error === "string")
|
|
174
|
+
return event.error;
|
|
175
|
+
if ("stage_id" in event && typeof event.stage_id === "string")
|
|
176
|
+
return event.stage_id;
|
|
177
|
+
return "recorded";
|
|
178
|
+
}
|
|
179
|
+
async function printLocalServiceStatus(serviceUrl) {
|
|
180
|
+
const { jobs, compileRuns, testRuns } = await readLocalServiceRunSnapshot({ serviceUrl });
|
|
181
|
+
const latestJob = jobs[0] ?? null;
|
|
182
|
+
const latestCompile = compileRuns[0]?.run ?? null;
|
|
183
|
+
const latestTest = testRuns[0] ?? null;
|
|
184
|
+
console.log();
|
|
185
|
+
console.log(chalk.green(" Interf local service is running"));
|
|
186
|
+
console.log(chalk.dim(` Interf: ${serviceUrl}/`));
|
|
187
|
+
if (latestJob) {
|
|
188
|
+
console.log();
|
|
189
|
+
console.log(chalk.bold(` Latest local job: ${latestJob.title}`));
|
|
190
|
+
console.log(chalk.dim(` run: ${latestJob.run_id}`));
|
|
191
|
+
console.log(chalk.dim(` type: ${latestJob.job_type}`));
|
|
192
|
+
console.log(chalk.dim(` status: ${latestJob.status}`));
|
|
193
|
+
const stepSummary = latestJob.steps
|
|
194
|
+
.map((step) => `${step.id}:${step.status}`)
|
|
195
|
+
.join(", ");
|
|
196
|
+
if (stepSummary)
|
|
197
|
+
console.log(chalk.dim(` steps: ${stepSummary}`));
|
|
198
|
+
for (const event of latestJob.events.slice(-4)) {
|
|
199
|
+
const detail = event.message ?? event.step_id ?? "recorded";
|
|
200
|
+
console.log(chalk.dim(` ${formatEventTime(event.timestamp)} ${event.type} ${detail}`));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
if (latestCompile) {
|
|
204
|
+
console.log();
|
|
205
|
+
console.log(chalk.bold(` Latest prepare run: ${latestCompile.preparation}`));
|
|
206
|
+
console.log(chalk.dim(` run: ${latestCompile.run_id}`));
|
|
207
|
+
console.log(chalk.dim(` status: ${latestCompile.status}`));
|
|
208
|
+
console.log(chalk.dim(` Method: ${latestCompile.method}`));
|
|
209
|
+
const stageSummary = latestCompile.stages
|
|
210
|
+
.map((stage) => `${stage.stage_id}:${stage.status}`)
|
|
211
|
+
.join(", ");
|
|
212
|
+
if (stageSummary)
|
|
213
|
+
console.log(chalk.dim(` stages: ${stageSummary}`));
|
|
214
|
+
const events = latestCompile.events.slice(-6);
|
|
215
|
+
for (const event of events) {
|
|
216
|
+
const detail = compileRunEventDetail(event);
|
|
217
|
+
console.log(chalk.dim(` ${formatEventTime(event.timestamp)} ${event.type} ${detail}`));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
console.log(chalk.dim(" No prepare runs recorded by the local service yet."));
|
|
222
|
+
}
|
|
223
|
+
if (latestTest) {
|
|
224
|
+
console.log();
|
|
225
|
+
console.log(chalk.bold(` Latest readiness check run: ${latestTest.preparation}`));
|
|
226
|
+
console.log(chalk.dim(` status: ${latestTest.status}`));
|
|
227
|
+
console.log(chalk.dim(` mode: ${latestTest.mode}`));
|
|
228
|
+
console.log(chalk.dim(` readiness checks: ${testScore(latestTest)}`));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
async function watchLocalServiceStatus(serviceUrl) {
|
|
232
|
+
while (true) {
|
|
233
|
+
await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
234
|
+
console.clear();
|
|
235
|
+
await printLocalServiceStatus(serviceUrl);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import type { TestTargetCandidate, TestTargetResult } from "../../packages/testing/test.js";
|
|
2
|
+
import type { MethodExecutionProfile, MethodExecutor } from "../../packages/agents/lib/executors.js";
|
|
3
3
|
import type { TestSandboxRetentionMode } from "../../packages/testing/test-sandbox.js";
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { SourcePreparationConfig } from "../../packages/project-model/lib/schema.js";
|
|
5
|
+
import type { ReadinessCheckRun, TestRunMode } from "../../packages/testing/lib/schema.js";
|
|
6
6
|
export interface SavedTestOutcome {
|
|
7
7
|
runPath: string;
|
|
8
8
|
displayRunPath?: string;
|
|
@@ -14,17 +14,17 @@ export interface AgentTestMatrixRow {
|
|
|
14
14
|
rawOutcome?: SavedTestOutcome | null;
|
|
15
15
|
compiledOutcome?: SavedTestOutcome | null;
|
|
16
16
|
}
|
|
17
|
-
export declare function
|
|
18
|
-
export declare function readSavedTestComparison(projectPath: string,
|
|
17
|
+
export declare function readinessPassRate(outcome: SavedTestOutcome): number;
|
|
18
|
+
export declare function readSavedTestComparison(projectPath: string, preparationName: string): ReadinessCheckRun | null;
|
|
19
19
|
export declare function readCurrentSavedTestComparison(options: {
|
|
20
20
|
projectPath: string;
|
|
21
|
-
|
|
22
|
-
checks:
|
|
21
|
+
preparationName: string;
|
|
22
|
+
checks: SourcePreparationConfig["checks"];
|
|
23
23
|
}): {
|
|
24
|
-
comparison:
|
|
24
|
+
comparison: ReadinessCheckRun | null;
|
|
25
25
|
stale: boolean;
|
|
26
26
|
};
|
|
27
|
-
export declare function printSavedTestComparisonState(payload:
|
|
27
|
+
export declare function printSavedTestComparisonState(payload: ReadinessCheckRun, comparisonRunPath?: string | null): void;
|
|
28
28
|
export declare function printAgentTestMatrix(rows: AgentTestMatrixRow[]): void;
|
|
29
29
|
export declare function printAgentTestFailures(rows: AgentTestMatrixRow[]): void;
|
|
30
30
|
export declare function printSavedTestOutcome(prefix: string, outcome: SavedTestOutcome): void;
|
|
@@ -41,17 +41,17 @@ export declare function saveTestComparisonRun(options: {
|
|
|
41
41
|
}): string;
|
|
42
42
|
export declare function runSavedRawTest(options: {
|
|
43
43
|
sourcePath: string;
|
|
44
|
-
|
|
45
|
-
executor?:
|
|
46
|
-
executionProfile?:
|
|
44
|
+
preparationConfig: SourcePreparationConfig;
|
|
45
|
+
executor?: MethodExecutor | null;
|
|
46
|
+
executionProfile?: MethodExecutionProfile;
|
|
47
47
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
48
48
|
runSuffix?: string | null;
|
|
49
49
|
}): Promise<SavedTestOutcome | null>;
|
|
50
50
|
export declare function runSavedCompiledTest(options: {
|
|
51
51
|
sourcePath: string;
|
|
52
|
-
|
|
53
|
-
executor?:
|
|
54
|
-
executionProfile?:
|
|
52
|
+
preparationConfig: SourcePreparationConfig;
|
|
53
|
+
executor?: MethodExecutor | null;
|
|
54
|
+
executionProfile?: MethodExecutionProfile;
|
|
55
55
|
compiledPath?: string | null;
|
|
56
56
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
57
57
|
runSuffix?: string | null;
|