@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,32 +1,37 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import * as p from "@clack/prompts";
|
|
3
3
|
import { detectInterf, resolveSourceControlPath, } from "../../packages/project-model/interf.js";
|
|
4
|
-
import {
|
|
4
|
+
import { loadCompiledPreparationConfig, sourcePreparationConfigFromInterfConfig, } from "../../packages/project-model/source-config.js";
|
|
5
5
|
import { addExecutionProfileOptions, executionProfileFromArgv, } from "../../packages/agents/lib/execution-profile.js";
|
|
6
6
|
import { chooseCompiledConfigToBuild, findBuiltCompiledPath, } from "./compiled-flow.js";
|
|
7
|
-
import {
|
|
8
|
-
import { printAgentTestFailures, printAgentTestMatrix, printSavedTestComparisonState,
|
|
7
|
+
import { resolveConfiguredPreparationSelection } from "./preparation-selection.js";
|
|
8
|
+
import { printAgentTestFailures, printAgentTestMatrix, printSavedTestComparisonState, } from "./test-flow.js";
|
|
9
|
+
import { createCompiledTestTarget } from "../../packages/testing/test-targets.js";
|
|
10
|
+
import { runReadinessChecksForExecutor, } from "../../packages/testing/readiness-check-run.js";
|
|
11
|
+
import { resolveMethodId } from "../../packages/methods/method-resolution.js";
|
|
9
12
|
import { listRunAgentOptions, promptForTestAgents, resolveNamedLocalExecutor, resolveOrConfigureLocalExecutor, } from "./executor-flow.js";
|
|
13
|
+
import { submitTestRunToLocalService, waitForLocalTestRun, } from "../../packages/local-service/index.js";
|
|
14
|
+
import { resolveCommandControlPath } from "./control-path.js";
|
|
10
15
|
export const testCommand = {
|
|
11
16
|
command: "test",
|
|
12
|
-
describe: "
|
|
17
|
+
describe: "Run readiness checks against source files and Portable Context",
|
|
13
18
|
builder: (yargs) => addExecutionProfileOptions(yargs)
|
|
14
|
-
.option("
|
|
19
|
+
.option("preparation", {
|
|
15
20
|
type: "string",
|
|
16
|
-
describe: "
|
|
21
|
+
describe: "Preparation id to check when this Source Folder has more than one Preparation",
|
|
17
22
|
})
|
|
18
23
|
.option("target", {
|
|
19
|
-
choices: ["both", "
|
|
20
|
-
describe: "
|
|
24
|
+
choices: ["both", "source-files", "portable-context"],
|
|
25
|
+
describe: "Check source files, Portable Context, or both. Default: both when Portable Context exists, otherwise source files.",
|
|
21
26
|
})
|
|
22
27
|
.option("keep-sandboxes", {
|
|
23
28
|
type: "boolean",
|
|
24
29
|
default: false,
|
|
25
|
-
describe: "Keep every
|
|
30
|
+
describe: "Keep every readiness-check sandbox for review instead of pruning successful ones",
|
|
26
31
|
})
|
|
27
32
|
.option("agents", {
|
|
28
33
|
type: "string",
|
|
29
|
-
describe: "Comma-separated local agents to use for
|
|
34
|
+
describe: "Comma-separated local agents to use for readiness checks, or `all`. Example: --agents claude-code,codex",
|
|
30
35
|
}),
|
|
31
36
|
handler: async (argv) => {
|
|
32
37
|
await runTestCommand(argv);
|
|
@@ -38,29 +43,53 @@ function readSandboxRetentionMode(argv) {
|
|
|
38
43
|
}
|
|
39
44
|
function readRequestedMode(argv) {
|
|
40
45
|
const value = argv.target;
|
|
41
|
-
|
|
46
|
+
const target = value === "source-files" || value === "portable-context" || value === "both"
|
|
47
|
+
? value
|
|
48
|
+
: null;
|
|
49
|
+
if (!target)
|
|
50
|
+
return null;
|
|
51
|
+
return modeFromTargetChoice(target);
|
|
52
|
+
}
|
|
53
|
+
function modeFromTargetChoice(target) {
|
|
54
|
+
if (target === "source-files")
|
|
55
|
+
return "raw";
|
|
56
|
+
if (target === "portable-context")
|
|
57
|
+
return "compiled";
|
|
58
|
+
return "both";
|
|
59
|
+
}
|
|
60
|
+
function reportTestCommandFailure(argv, message, hints = []) {
|
|
61
|
+
process.exitCode = 1;
|
|
62
|
+
console.log(chalk.red(` ${message}`));
|
|
63
|
+
for (const hint of hints) {
|
|
64
|
+
console.log(chalk.dim(` ${hint}`));
|
|
65
|
+
}
|
|
66
|
+
const onFailure = typeof argv.onFailure === "function"
|
|
67
|
+
? argv.onFailure
|
|
68
|
+
: null;
|
|
69
|
+
void onFailure?.({ message, hints });
|
|
70
|
+
return false;
|
|
42
71
|
}
|
|
43
72
|
async function promptTestMode(hasBuiltCompiled) {
|
|
44
73
|
if (!hasBuiltCompiled) {
|
|
45
74
|
return "raw";
|
|
46
75
|
}
|
|
47
76
|
const selected = await p.select({
|
|
48
|
-
message: "What do you want to
|
|
77
|
+
message: "What do you want to check?",
|
|
49
78
|
options: [
|
|
50
79
|
{
|
|
51
80
|
value: "both",
|
|
52
|
-
label: "
|
|
53
|
-
hint: "
|
|
81
|
+
label: "Source files and Portable Context (Recommended)",
|
|
82
|
+
hint: "Check whether the data is ready with and without Portable Context",
|
|
54
83
|
},
|
|
55
84
|
{
|
|
56
85
|
value: "raw",
|
|
57
86
|
label: "Source files only",
|
|
58
|
-
hint: "Measure the current baseline on the
|
|
87
|
+
hint: "Measure the current baseline on the Source Folder files",
|
|
59
88
|
},
|
|
60
89
|
{
|
|
61
90
|
value: "compiled",
|
|
62
|
-
label: "Portable
|
|
63
|
-
hint: "
|
|
91
|
+
label: "Portable Context only",
|
|
92
|
+
hint: "Run the saved readiness checks against the current Portable Context",
|
|
64
93
|
},
|
|
65
94
|
],
|
|
66
95
|
});
|
|
@@ -126,51 +155,43 @@ async function resolveSelectedTestAgents(options) {
|
|
|
126
155
|
return selected;
|
|
127
156
|
}
|
|
128
157
|
}
|
|
129
|
-
const
|
|
158
|
+
const resolved = await resolveOrConfigureLocalExecutor({
|
|
130
159
|
preflight: true,
|
|
131
160
|
executionProfile: options.executionProfile,
|
|
132
161
|
purpose: "test",
|
|
133
162
|
});
|
|
134
|
-
if (!
|
|
135
|
-
if (
|
|
163
|
+
if (!resolved.executor) {
|
|
164
|
+
if (resolved.cancelled)
|
|
136
165
|
return null;
|
|
137
166
|
process.exitCode = 1;
|
|
138
|
-
console.log(chalk.red(
|
|
167
|
+
console.log(chalk.red(resolved.error ?? "No local agent detected."));
|
|
139
168
|
return null;
|
|
140
169
|
}
|
|
141
170
|
return [
|
|
142
171
|
{
|
|
143
|
-
name:
|
|
144
|
-
label:
|
|
145
|
-
executor:
|
|
172
|
+
name: resolved.executor.name,
|
|
173
|
+
label: resolved.executor.displayName,
|
|
174
|
+
executor: resolved.executor,
|
|
146
175
|
},
|
|
147
176
|
];
|
|
148
177
|
}
|
|
149
178
|
async function runModeForAgent(options) {
|
|
150
|
-
const
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:
|
|
159
|
-
|
|
160
|
-
? runSavedCompiledTest({
|
|
161
|
-
sourcePath: options.sourcePath,
|
|
162
|
-
datasetConfig: options.datasetConfig,
|
|
163
|
-
compiledPath: options.builtCompiledPath,
|
|
164
|
-
executor: options.executor,
|
|
165
|
-
preserveSandboxes: options.preserveSandboxes,
|
|
166
|
-
runSuffix: options.executor.name,
|
|
167
|
-
})
|
|
168
|
-
: Promise.resolve(null);
|
|
169
|
-
const [rawOutcome, compiledOutcome] = await Promise.all([rawPromise, compiledPromise]);
|
|
179
|
+
const result = await runReadinessChecksForExecutor({
|
|
180
|
+
sourcePath: options.sourcePath,
|
|
181
|
+
preparationConfig: options.preparationConfig,
|
|
182
|
+
portableContextPath: options.builtCompiledPath,
|
|
183
|
+
mode: options.mode,
|
|
184
|
+
preserveSandboxes: options.preserveSandboxes,
|
|
185
|
+
executor: options.executor,
|
|
186
|
+
runSuffix: options.executor.name,
|
|
187
|
+
saveLatest: options.saveLatest,
|
|
188
|
+
});
|
|
170
189
|
return {
|
|
171
190
|
agentLabel: options.executor.displayName,
|
|
172
|
-
rawOutcome,
|
|
173
|
-
compiledOutcome,
|
|
191
|
+
rawOutcome: result.rawOutcome,
|
|
192
|
+
compiledOutcome: result.compiledOutcome,
|
|
193
|
+
comparisonRunPath: result.comparisonRunPath,
|
|
194
|
+
comparison: result.comparison,
|
|
174
195
|
};
|
|
175
196
|
}
|
|
176
197
|
export async function runTestCommand(argv = {}) {
|
|
@@ -178,60 +199,56 @@ export async function runTestCommand(argv = {}) {
|
|
|
178
199
|
const detected = detectInterf(cwd);
|
|
179
200
|
const sourcePath = typeof argv.sourcePath === "string" && argv.sourcePath.trim().length > 0
|
|
180
201
|
? argv.sourcePath.trim()
|
|
181
|
-
: (detected ? resolveSourceControlPath(detected.path) : cwd);
|
|
182
|
-
const
|
|
183
|
-
|
|
202
|
+
: (detected ? resolveSourceControlPath(detected.path) : resolveCommandControlPath(cwd));
|
|
203
|
+
const requestedPreparation = argv.preparation;
|
|
204
|
+
const requestedPreparationName = typeof requestedPreparation === "string" && requestedPreparation.trim().length > 0
|
|
205
|
+
? requestedPreparation.trim()
|
|
184
206
|
: null;
|
|
185
|
-
const
|
|
207
|
+
const hintedPreparationConfig = (argv.preparationConfig ?? null);
|
|
186
208
|
const selectedCompiled = detected
|
|
187
209
|
? (() => {
|
|
188
|
-
const targetName =
|
|
189
|
-
return
|
|
210
|
+
const targetName = requestedPreparationName ?? hintedPreparationConfig?.name ?? detected.config.name;
|
|
211
|
+
return resolveConfiguredPreparationSelection({
|
|
190
212
|
sourcePath,
|
|
191
|
-
|
|
192
|
-
|
|
213
|
+
requestedPreparationName: targetName,
|
|
214
|
+
hintedPreparationConfig,
|
|
193
215
|
}) ?? (targetName === detected.config.name
|
|
194
|
-
? (
|
|
195
|
-
??
|
|
216
|
+
? (loadCompiledPreparationConfig(detected.path)
|
|
217
|
+
?? sourcePreparationConfigFromInterfConfig(detected.config))
|
|
196
218
|
: null);
|
|
197
219
|
})()
|
|
198
|
-
:
|
|
199
|
-
?
|
|
220
|
+
: requestedPreparationName || hintedPreparationConfig
|
|
221
|
+
? resolveConfiguredPreparationSelection({
|
|
200
222
|
sourcePath,
|
|
201
|
-
|
|
202
|
-
|
|
223
|
+
requestedPreparationName,
|
|
224
|
+
hintedPreparationConfig,
|
|
203
225
|
})
|
|
204
226
|
: await chooseCompiledConfigToBuild({
|
|
205
227
|
sourcePath,
|
|
206
|
-
selectMessage: "Which
|
|
228
|
+
selectMessage: "Which saved Preparation do you want to test?",
|
|
207
229
|
});
|
|
208
230
|
if (selectedCompiled === undefined)
|
|
209
231
|
return false;
|
|
210
232
|
if (!selectedCompiled) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
console.log(chalk.red(` Setup "${requestedDatasetName}" is not set up in this project.`));
|
|
214
|
-
console.log(chalk.dim(" Run `interf list` to see the saved setups."));
|
|
233
|
+
if (requestedPreparationName) {
|
|
234
|
+
return reportTestCommandFailure(argv, `Preparation "${requestedPreparationName}" is not saved in this Source Folder.`, ["Run `interf list` to see the saved Preparations."]);
|
|
215
235
|
}
|
|
216
|
-
|
|
217
|
-
console.log(chalk.red(" No saved setups are configured for this folder yet."));
|
|
218
|
-
console.log(chalk.dim(" Start with `interf` or `interf init`."));
|
|
219
|
-
}
|
|
220
|
-
return false;
|
|
236
|
+
return reportTestCommandFailure(argv, "No saved Preparations are configured for this Source Folder yet.", ["Start with `interf` or `interf init`."]);
|
|
221
237
|
}
|
|
222
238
|
if (selectedCompiled.checks.length === 0) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return false;
|
|
239
|
+
return reportTestCommandFailure(argv, `Preparation "${selectedCompiled.name}" does not have any readiness checks yet.`, [
|
|
240
|
+
"Run `interf`, edit this Preparation, and add a few readiness checks first.",
|
|
241
|
+
"Then rerun `interf test`.",
|
|
242
|
+
]);
|
|
228
243
|
}
|
|
229
244
|
const executionProfile = executionProfileFromArgv(argv);
|
|
230
245
|
const preserveSandboxes = readSandboxRetentionMode(argv);
|
|
231
246
|
const builtCompiledPath = detected?.config.name === selectedCompiled.name
|
|
232
247
|
? detected.path
|
|
233
248
|
: findBuiltCompiledPath(sourcePath, selectedCompiled.name);
|
|
234
|
-
const hasBuiltCompiled =
|
|
249
|
+
const hasBuiltCompiled = builtCompiledPath
|
|
250
|
+
? createCompiledTestTarget(builtCompiledPath, selectedCompiled.name, resolveMethodId(selectedCompiled)).eligible
|
|
251
|
+
: false;
|
|
235
252
|
const requestedMode = readRequestedMode(argv);
|
|
236
253
|
const selectedMode = requestedMode ?? (process.stdin.isTTY && process.stdout.isTTY
|
|
237
254
|
? await promptTestMode(hasBuiltCompiled)
|
|
@@ -239,18 +256,47 @@ export async function runTestCommand(argv = {}) {
|
|
|
239
256
|
if (!selectedMode)
|
|
240
257
|
return false;
|
|
241
258
|
if (selectedMode === "compiled" && !hasBuiltCompiled) {
|
|
242
|
-
|
|
243
|
-
console.log(chalk.red(` Setup "${selectedCompiled.name}" does not have portable context agents can use yet.`));
|
|
244
|
-
console.log(chalk.dim(" Run `interf compile` first."));
|
|
245
|
-
return false;
|
|
259
|
+
return reportTestCommandFailure(argv, `Preparation "${selectedCompiled.name}" does not have Portable Context agents can use yet.`, ["Run `interf compile` first."]);
|
|
246
260
|
}
|
|
247
261
|
if (selectedMode === "both" && !hasBuiltCompiled) {
|
|
248
|
-
|
|
249
|
-
console.log(chalk.red(` Setup "${selectedCompiled.name}" does not have portable context agents can use yet, so Interf cannot compare source files and portable context.`));
|
|
250
|
-
console.log(chalk.dim(" Run `interf compile` first, or rerun with `--target raw`."));
|
|
251
|
-
return false;
|
|
262
|
+
return reportTestCommandFailure(argv, `Preparation "${selectedCompiled.name}" does not have Portable Context agents can use yet, so Interf cannot compare source files and Portable Context.`, ["Run `interf compile` first, or rerun with `--target source-files`."]);
|
|
252
263
|
}
|
|
253
264
|
const mode = selectedMode;
|
|
265
|
+
if (argv.skipService !== true) {
|
|
266
|
+
const submitted = await submitTestRunToLocalService({
|
|
267
|
+
projectPath: sourcePath,
|
|
268
|
+
request: {
|
|
269
|
+
preparation: selectedCompiled.name,
|
|
270
|
+
mode,
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
if (submitted) {
|
|
274
|
+
console.log(chalk.dim(` Visible in Interf: ${submitted.serviceUrl}/`));
|
|
275
|
+
let lastStatus = "";
|
|
276
|
+
const completed = await waitForLocalTestRun({
|
|
277
|
+
serviceUrl: submitted.serviceUrl,
|
|
278
|
+
runId: submitted.resource.run_id,
|
|
279
|
+
onUpdate(resource) {
|
|
280
|
+
if (resource.status === lastStatus)
|
|
281
|
+
return;
|
|
282
|
+
lastStatus = resource.status;
|
|
283
|
+
console.log(chalk.dim(` Readiness check run: ${resource.status}`));
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
if (completed.status !== "succeeded") {
|
|
287
|
+
return reportTestCommandFailure(argv, `Readiness check run ${completed.status}.`, completed.error ? [completed.error] : []);
|
|
288
|
+
}
|
|
289
|
+
const compiledScore = completed.comparison?.compiled;
|
|
290
|
+
const rawScore = completed.comparison?.raw;
|
|
291
|
+
if (compiledScore) {
|
|
292
|
+
console.log(chalk.green(` Portable Context readiness checks: ${compiledScore.passed_cases}/${compiledScore.total_cases}`));
|
|
293
|
+
}
|
|
294
|
+
if (rawScore) {
|
|
295
|
+
console.log(chalk.dim(` Source files readiness checks: ${rawScore.passed_cases}/${rawScore.total_cases}`));
|
|
296
|
+
}
|
|
297
|
+
return true;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
254
300
|
const selectedAgents = await resolveSelectedTestAgents({
|
|
255
301
|
argv,
|
|
256
302
|
executionProfile,
|
|
@@ -260,23 +306,21 @@ export async function runTestCommand(argv = {}) {
|
|
|
260
306
|
}
|
|
261
307
|
const rows = await Promise.all(selectedAgents.map((agent) => runModeForAgent({
|
|
262
308
|
sourcePath,
|
|
263
|
-
|
|
309
|
+
preparationConfig: selectedCompiled,
|
|
264
310
|
builtCompiledPath: builtCompiledPath ?? null,
|
|
265
311
|
mode,
|
|
266
312
|
preserveSandboxes,
|
|
267
313
|
executor: agent.executor,
|
|
314
|
+
saveLatest: selectedAgents.length === 1,
|
|
268
315
|
})));
|
|
269
316
|
if ((mode === "compiled" || mode === "both") && rows.some((row) => !row.compiledOutcome)) {
|
|
270
|
-
|
|
271
|
-
console.log(chalk.red(` Setup "${selectedCompiled.name}" does not have portable context agents can use yet.`));
|
|
272
|
-
console.log(chalk.dim(" Run `interf compile` first."));
|
|
273
|
-
return false;
|
|
317
|
+
return reportTestCommandFailure(argv, `Preparation "${selectedCompiled.name}" does not have Portable Context agents can use yet.`, ["Run `interf compile` first."]);
|
|
274
318
|
}
|
|
275
319
|
printAgentTestMatrix(rows);
|
|
276
320
|
printAgentTestFailures(rows);
|
|
277
321
|
const resultSummary = {
|
|
278
322
|
sourcePath,
|
|
279
|
-
|
|
323
|
+
preparationConfig: selectedCompiled,
|
|
280
324
|
builtCompiledPath: builtCompiledPath ?? null,
|
|
281
325
|
mode,
|
|
282
326
|
rows,
|
|
@@ -286,16 +330,8 @@ export async function runTestCommand(argv = {}) {
|
|
|
286
330
|
: null;
|
|
287
331
|
if (rows.length === 1) {
|
|
288
332
|
const row = rows[0];
|
|
289
|
-
const comparisonRunPath =
|
|
290
|
-
|
|
291
|
-
compiledPath: builtCompiledPath ?? null,
|
|
292
|
-
compiledName: selectedCompiled.name,
|
|
293
|
-
checksFingerprint: fingerprintTruthChecks(selectedCompiled.checks),
|
|
294
|
-
mode,
|
|
295
|
-
rawOutcome: row?.rawOutcome ?? null,
|
|
296
|
-
compiledOutcome: row?.compiledOutcome ?? null,
|
|
297
|
-
});
|
|
298
|
-
const latestComparison = readSavedTestComparison(sourcePath, selectedCompiled.name);
|
|
333
|
+
const comparisonRunPath = row?.comparisonRunPath ?? null;
|
|
334
|
+
const latestComparison = row?.comparison ?? null;
|
|
299
335
|
if (latestComparison) {
|
|
300
336
|
if (mode === "both") {
|
|
301
337
|
console.log();
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import chalk from "chalk";
|
|
2
2
|
import { detectInterf } from "../../packages/project-model/interf.js";
|
|
3
3
|
import { validateCompiledCompile, validateCompiledStage, } from "../../packages/compiler/validate.js";
|
|
4
|
-
import {
|
|
4
|
+
import { validateMethodPackage } from "../../packages/method-package/local-methods.js";
|
|
5
5
|
function normalizeVerifyCheck(value) {
|
|
6
6
|
if (!value)
|
|
7
7
|
return null;
|
|
8
8
|
if (value === "stage")
|
|
9
9
|
return "stage";
|
|
10
|
-
if (value === "
|
|
11
|
-
return "
|
|
12
|
-
if (value === "
|
|
13
|
-
return "
|
|
10
|
+
if (value === "portable-context")
|
|
11
|
+
return "portable-context";
|
|
12
|
+
if (value === "method")
|
|
13
|
+
return "method";
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
export const verifyCommand = {
|
|
17
|
-
command: "verify <check>",
|
|
17
|
+
command: "verify <check> [stageId]",
|
|
18
18
|
describe: "Run deterministic verification checks",
|
|
19
19
|
builder: (yargs) => yargs
|
|
20
20
|
.positional("check", {
|
|
21
21
|
type: "string",
|
|
22
|
-
describe: "Check to run (`stage`, `
|
|
22
|
+
describe: "Check to run (`stage`, `portable-context`, or `method`)",
|
|
23
23
|
})
|
|
24
24
|
.positional("stageId", {
|
|
25
25
|
type: "string",
|
|
@@ -27,7 +27,7 @@ export const verifyCommand = {
|
|
|
27
27
|
})
|
|
28
28
|
.option("path", {
|
|
29
29
|
type: "string",
|
|
30
|
-
describe: "Path to a
|
|
30
|
+
describe: "Path to a Method package when using `verify method`",
|
|
31
31
|
})
|
|
32
32
|
.option("json", {
|
|
33
33
|
type: "boolean",
|
|
@@ -42,23 +42,23 @@ export const verifyCommand = {
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
let result;
|
|
45
|
-
if (check === "
|
|
45
|
+
if (check === "method") {
|
|
46
46
|
const path = argv.path;
|
|
47
47
|
if (!path) {
|
|
48
48
|
process.exitCode = 1;
|
|
49
|
-
console.log(chalk.red("`interf verify
|
|
49
|
+
console.log(chalk.red("`interf verify method` needs --path <method-dir>."));
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
result =
|
|
52
|
+
result = validateMethodPackage(path);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
const detected = detectInterf(process.cwd());
|
|
56
56
|
if (!detected) {
|
|
57
57
|
process.exitCode = 1;
|
|
58
|
-
console.log(chalk.red("Run this from inside
|
|
58
|
+
console.log(chalk.red("Run this from inside Portable Context."));
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
if (check === "
|
|
61
|
+
if (check === "portable-context") {
|
|
62
62
|
result = validateCompiledCompile(detected.path);
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommandModule } from "yargs";
|
|
2
|
+
export declare const webCommand: CommandModule;
|
|
3
|
+
export interface WebProjectPaths {
|
|
4
|
+
controlPath: string;
|
|
5
|
+
sourceFolderPath: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function resolveWebProjectPaths(argv?: Record<string, unknown>, cwd?: string): WebProjectPaths;
|
|
8
|
+
export declare function ensureWebProjectInitialized(controlPath: string, options?: {
|
|
9
|
+
sourceFolderPath?: string | null;
|
|
10
|
+
}): void;
|
|
11
|
+
export declare function runWebCommand(argv?: Record<string, unknown>): Promise<void>;
|