@interf/compiler 0.21.0 → 0.22.2
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 +65 -63
- package/dist/cli/commands/build-plan.d.ts +2 -0
- package/dist/cli/commands/{method.js → build-plan.js} +89 -72
- package/dist/cli/commands/{compile.d.ts → build.d.ts} +2 -2
- package/dist/cli/commands/{compile.js → build.js} +18 -18
- package/dist/cli/commands/doctor.js +2 -2
- package/dist/cli/commands/mcp.js +48 -48
- package/dist/cli/commands/prep.js +16 -29
- package/dist/cli/commands/reset.d.ts +1 -1
- package/dist/cli/commands/reset.js +6 -6
- package/dist/cli/commands/runs.js +6 -28
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/test.d.ts +1 -1
- package/dist/cli/commands/test.js +8 -8
- package/dist/cli/commands/web.js +3 -3
- package/dist/cli/commands/wizard.js +38 -38
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +5 -5
- package/dist/interf-ui/404.html +1 -0
- package/dist/interf-ui/__next.__PAGE__.txt +10 -0
- package/dist/interf-ui/__next._full.txt +20 -0
- package/dist/interf-ui/__next._head.txt +5 -0
- package/dist/interf-ui/__next._index.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/__next._tree.txt +3 -4
- package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +3 -0
- package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +1 -0
- package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +1 -0
- package/dist/{compiler-ui/_next/static/chunks/02f_.8.ebn556.js → interf-ui/_next/static/chunks/0s77gt_o4jwtx.js} +1 -1
- package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +116 -0
- package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +31 -0
- package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +1 -0
- package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +1 -0
- package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +91 -0
- package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +5 -0
- package/dist/{compiler-ui/_next/static/chunks/turbopack-0apv8vb-nczuy.js → interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js} +1 -1
- package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +1 -0
- package/dist/interf-ui/_not-found/__next._full.txt +15 -0
- package/dist/interf-ui/_not-found/__next._head.txt +5 -0
- package/dist/interf-ui/_not-found/__next._index.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/interf-ui/_not-found/__next._not-found.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/_not-found/__next._tree.txt +2 -3
- package/dist/interf-ui/_not-found.html +1 -0
- package/dist/interf-ui/_not-found.txt +15 -0
- package/dist/interf-ui/index.html +1 -0
- package/dist/interf-ui/index.txt +20 -0
- package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +36 -0
- package/dist/packages/{methods/authoring/method-authoring.js → build-plans/authoring/build-plan-authoring.js} +52 -52
- package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +18 -0
- package/dist/packages/{methods/authoring/method-edit-session.js → build-plans/authoring/build-plan-edit-session.js} +34 -34
- package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +23 -0
- package/dist/packages/build-plans/authoring/build-plan-improvement.js +216 -0
- package/dist/packages/build-plans/authoring/index.d.ts +4 -0
- package/dist/packages/build-plans/authoring/index.js +4 -0
- package/dist/packages/{methods/authoring/lib/method-edit-utils.d.ts → build-plans/authoring/lib/build-plan-edit-utils.d.ts} +3 -3
- package/dist/packages/build-plans/build-plan-resolution.d.ts +6 -0
- package/dist/packages/build-plans/build-plan-resolution.js +7 -0
- package/dist/packages/build-plans/index.d.ts +2 -0
- package/dist/packages/build-plans/index.js +2 -0
- package/dist/packages/build-plans/package/build-plan-definitions.d.ts +61 -0
- package/dist/packages/build-plans/package/build-plan-definitions.js +214 -0
- package/dist/packages/{methods/package/method-helpers.d.ts → build-plans/package/build-plan-helpers.d.ts} +7 -7
- package/dist/packages/{methods/package/method-helpers.js → build-plans/package/build-plan-helpers.js} +20 -20
- package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +10 -0
- package/dist/packages/build-plans/package/build-plan-review-paths.js +31 -0
- package/dist/packages/{methods/package/method-stage-runner.d.ts → build-plans/package/build-plan-stage-runner.d.ts} +12 -12
- package/dist/packages/{methods/package/method-stage-runner.js → build-plans/package/build-plan-stage-runner.js} +10 -10
- package/dist/packages/build-plans/package/builtin-build-plan.d.ts +37 -0
- package/dist/packages/build-plans/package/builtin-build-plan.js +91 -0
- package/dist/packages/{methods → build-plans}/package/context-interface.d.ts +11 -11
- package/dist/packages/{methods → build-plans}/package/context-interface.js +23 -23
- package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +31 -0
- package/dist/packages/build-plans/package/interf-build-plan-package.js +466 -0
- package/dist/packages/{methods → build-plans}/package/lib/package-root.js +1 -1
- package/dist/packages/build-plans/package/local-build-plans.d.ts +74 -0
- package/dist/packages/{methods/package/local-methods.js → build-plans/package/local-build-plans.js} +152 -152
- package/dist/packages/build-plans/package/user-build-plans.d.ts +17 -0
- package/dist/packages/build-plans/package/user-build-plans.js +77 -0
- package/dist/packages/contracts/index.d.ts +1 -1
- package/dist/packages/contracts/lib/preparation-paths.d.ts +37 -37
- package/dist/packages/contracts/lib/preparation-paths.js +43 -43
- package/dist/packages/contracts/lib/schema.d.ts +34 -41
- package/dist/packages/contracts/lib/schema.js +42 -34
- package/dist/packages/engine/action-definitions.d.ts +60 -60
- package/dist/packages/engine/action-definitions.js +198 -197
- package/dist/packages/engine/action-planner.d.ts +2 -2
- package/dist/packages/engine/action-planner.js +5 -5
- package/dist/packages/engine/action-values.d.ts +1 -1
- package/dist/packages/engine/action-values.js +1 -1
- package/dist/packages/engine/agents/index.d.ts +2 -2
- package/dist/packages/engine/agents/index.js +1 -1
- package/dist/packages/engine/agents/lib/args.d.ts +2 -2
- package/dist/packages/engine/agents/lib/args.js +1 -1
- package/dist/packages/engine/agents/lib/constants.js +1 -1
- package/dist/packages/engine/agents/lib/execution-profile.d.ts +5 -5
- package/dist/packages/engine/agents/lib/execution-profile.js +3 -3
- package/dist/packages/engine/agents/lib/executors.d.ts +11 -11
- package/dist/packages/engine/agents/lib/render.js +4 -4
- package/dist/packages/engine/agents/lib/shells.d.ts +30 -30
- package/dist/packages/engine/agents/lib/shells.js +248 -248
- package/dist/packages/engine/agents/lib/types.d.ts +2 -2
- package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +3 -0
- package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.js +19 -0
- package/dist/packages/engine/agents/role-executors.d.ts +7 -7
- package/dist/packages/engine/agents/role-executors.js +2 -2
- package/dist/packages/engine/agents/role-router.d.ts +2 -2
- package/dist/packages/engine/agents/role-router.js +1 -1
- package/dist/packages/engine/build/artifact-counts.d.ts +1 -0
- package/dist/packages/engine/{compile → build}/artifact-counts.js +7 -7
- package/dist/packages/engine/{compile → build}/artifact-status.d.ts +8 -8
- package/dist/packages/engine/{compile → build}/artifact-status.js +19 -19
- package/dist/packages/engine/{compile → build}/billing-events.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/billing-events.js +4 -4
- package/dist/packages/engine/build/build-execution.d.ts +4 -0
- package/dist/packages/engine/build/build-execution.js +4 -0
- package/dist/packages/engine/build/build-pipeline.d.ts +56 -0
- package/dist/packages/engine/{compile/compiled-pipeline.js → build/build-pipeline.js} +55 -55
- package/dist/packages/engine/build/build-plan-primitives.d.ts +2 -0
- package/dist/packages/engine/{compile/method-primitives.js → build/build-plan-primitives.js} +1 -1
- package/dist/packages/engine/build/build-plan-runs.d.ts +14 -0
- package/dist/packages/engine/build/build-plan-runs.js +31 -0
- package/dist/packages/engine/build/build-stage-plan.d.ts +16 -0
- package/dist/packages/engine/build/build-stage-plan.js +100 -0
- package/dist/packages/engine/build/build-stage-runner.d.ts +15 -0
- package/dist/packages/engine/{compile/compiled-stage-runner.js → build/build-stage-runner.js} +21 -21
- package/dist/packages/engine/build/build-target.d.ts +11 -0
- package/dist/packages/engine/build/build-target.js +16 -0
- package/dist/packages/engine/{compile → build}/check-evaluator.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/check-evaluator.js +1 -1
- package/dist/packages/engine/{compile → build}/discovery.d.ts +2 -2
- package/dist/packages/engine/{compile → build}/discovery.js +4 -4
- package/dist/packages/engine/{compile → build}/index.d.ts +6 -6
- package/dist/packages/engine/{compile → build}/index.js +5 -5
- package/dist/packages/engine/{compile → build}/lib/schema.d.ts +79 -79
- package/dist/packages/engine/{compile → build}/lib/schema.js +71 -71
- package/dist/packages/engine/build/reset.d.ts +2 -0
- package/dist/packages/engine/build/reset.js +74 -0
- package/dist/packages/engine/{compile → build}/runtime-contracts.js +8 -8
- package/dist/packages/engine/build/runtime-inventory.d.ts +7 -0
- package/dist/packages/engine/{compile → build}/runtime-inventory.js +8 -8
- package/dist/packages/engine/{compile → build}/runtime-paths.js +6 -6
- package/dist/packages/engine/{compile → build}/runtime-prompt.js +11 -11
- package/dist/packages/engine/build/runtime-reconcile.d.ts +2 -0
- package/dist/packages/engine/{compile → build}/runtime-reconcile.js +18 -18
- package/dist/packages/engine/{compile → build}/runtime-runs.js +27 -27
- package/dist/packages/engine/{compile → build}/runtime-types.d.ts +10 -10
- package/dist/packages/engine/build/source-files.d.ts +46 -0
- package/dist/packages/engine/{compile → build}/source-files.js +32 -32
- package/dist/packages/engine/build/state-artifacts.d.ts +9 -0
- package/dist/packages/engine/build/state-artifacts.js +14 -0
- package/dist/packages/engine/build/state-health.d.ts +4 -0
- package/dist/packages/engine/{compile → build}/state-health.js +40 -40
- package/dist/packages/engine/build/state-io.d.ts +11 -0
- package/dist/packages/engine/{compile → build}/state-io.js +22 -22
- package/dist/packages/engine/build/state-paths.js +16 -0
- package/dist/packages/engine/build/state-view.d.ts +5 -0
- package/dist/packages/engine/{compile → build}/state-view.js +29 -29
- package/dist/packages/engine/build/state.d.ts +7 -0
- package/dist/packages/engine/build/state.js +12 -0
- package/dist/packages/engine/build/validate-verifiable-context.d.ts +27 -0
- package/dist/packages/engine/{compile/validate-compiled.js → build/validate-verifiable-context.js} +73 -73
- package/dist/packages/engine/{compile → build}/validate.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/validate.js +27 -27
- package/dist/packages/engine/build/verifiable-context-paths.d.ts +47 -0
- package/dist/packages/engine/build/verifiable-context-paths.js +121 -0
- package/dist/packages/engine/build/verifiable-context-schema.d.ts +21 -0
- package/dist/packages/engine/build/verifiable-context-schema.js +126 -0
- package/dist/packages/engine/client.d.ts +16 -16
- package/dist/packages/engine/client.js +21 -21
- package/dist/packages/engine/cloud-seams.d.ts +3 -3
- package/dist/packages/engine/execution/index.d.ts +2 -2
- package/dist/packages/engine/execution/index.js +1 -1
- package/dist/packages/engine/execution/lib/schema.d.ts +90 -95
- package/dist/packages/engine/execution/lib/schema.js +31 -31
- package/dist/packages/engine/index.d.ts +7 -7
- package/dist/packages/engine/index.js +3 -3
- package/dist/packages/engine/instance-paths.d.ts +39 -39
- package/dist/packages/engine/instance-paths.js +48 -48
- package/dist/packages/engine/lib/schema.d.ts +900 -472
- package/dist/packages/engine/lib/schema.js +137 -153
- package/dist/packages/engine/native-run-handlers.d.ts +12 -12
- package/dist/packages/engine/native-run-handlers.js +135 -135
- package/dist/packages/engine/preparation-store.d.ts +22 -23
- package/dist/packages/engine/preparation-store.js +30 -31
- package/dist/packages/engine/readiness-check-draft.d.ts +2 -2
- package/dist/packages/engine/readiness-check-draft.js +1 -1
- package/dist/packages/engine/requested-artifacts.d.ts +2 -2
- package/dist/packages/engine/routes.d.ts +18 -17
- package/dist/packages/engine/routes.js +20 -19
- package/dist/packages/engine/run-observability.d.ts +5 -3
- package/dist/packages/engine/run-observability.js +101 -89
- package/dist/packages/engine/runtime-caches.d.ts +16 -16
- package/dist/packages/engine/runtime-caches.js +26 -26
- package/dist/packages/engine/runtime-event-applier.d.ts +2 -2
- package/dist/packages/engine/runtime-event-applier.js +1 -1
- package/dist/packages/engine/runtime-persistence.d.ts +9 -9
- package/dist/packages/engine/runtime-persistence.js +16 -16
- package/dist/packages/engine/runtime-proposal-helpers.d.ts +14 -14
- package/dist/packages/engine/runtime-proposal-helpers.js +78 -80
- package/dist/packages/engine/runtime-resource-builders.d.ts +12 -12
- package/dist/packages/engine/runtime-resource-builders.js +19 -19
- package/dist/packages/engine/runtime.d.ts +52 -61
- package/dist/packages/engine/runtime.js +440 -463
- package/dist/packages/engine/server.d.ts +2 -2
- package/dist/packages/engine/server.js +147 -116
- package/dist/packages/engine/service-registry.d.ts +5 -17
- package/dist/packages/engine/service-registry.js +5 -20
- package/dist/packages/engine/verify/lib/schema.d.ts +19 -19
- package/dist/packages/engine/verify/lib/schema.js +36 -8
- package/dist/packages/engine/verify/readiness-check-run.d.ts +15 -16
- package/dist/packages/engine/verify/readiness-check-run.js +46 -46
- package/dist/packages/engine/verify/verify-execution.d.ts +3 -3
- package/dist/packages/engine/verify/verify-execution.js +10 -10
- package/dist/packages/engine/verify/verify-paths.d.ts +4 -4
- package/dist/packages/engine/verify/verify-paths.js +17 -17
- package/dist/packages/engine/verify/verify-sandbox.d.ts +1 -1
- package/dist/packages/engine/verify/verify-sandbox.js +26 -26
- package/dist/packages/engine/verify/verify-targets.d.ts +2 -2
- package/dist/packages/engine/verify/verify-targets.js +17 -17
- package/dist/packages/engine/verify/verify-types.d.ts +2 -2
- package/dist/packages/engine/verify/verify.d.ts +1 -1
- package/dist/packages/engine/verify/verify.js +1 -1
- package/dist/packages/engine/wire-schemas.d.ts +38 -40
- package/dist/packages/engine/wire-schemas.js +13 -13
- package/dist/packages/project/index.d.ts +1 -1
- package/dist/packages/project/interf-bootstrap.d.ts +1 -1
- package/dist/packages/project/interf-bootstrap.js +1 -1
- package/dist/packages/project/interf-detect.d.ts +11 -11
- package/dist/packages/project/interf-detect.js +30 -30
- package/dist/packages/project/interf-scaffold.d.ts +3 -3
- package/dist/packages/project/interf-scaffold.js +72 -72
- package/dist/packages/project/interf.d.ts +4 -4
- package/dist/packages/project/interf.js +3 -3
- package/dist/packages/project/lib/schema.d.ts +12 -12
- package/dist/packages/project/lib/schema.js +14 -14
- package/dist/packages/project/preparation-entries.d.ts +3 -3
- package/dist/packages/project/preparation-entries.js +19 -19
- package/dist/packages/project/source-config.d.ts +10 -10
- package/dist/packages/project/source-config.js +58 -58
- package/package.json +15 -15
- package/public-repo/CONTRIBUTING.md +12 -12
- package/public-repo/README.md +65 -63
- package/public-repo/SECURITY.md +3 -3
- package/public-repo/build-plans/interf-default/README.md +33 -0
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/shape/SKILL.md +10 -10
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/structure/SKILL.md +2 -2
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/summarize/SKILL.md +1 -1
- package/public-repo/{methods/interf-default/method.json → build-plans/interf-default/build-plan.json} +15 -15
- package/public-repo/{methods/interf-default/method.schema.json → build-plans/interf-default/build-plan.schema.json} +4 -4
- package/public-repo/build-plans/interf-default/improve/SKILL.md +18 -0
- package/public-repo/{methods → build-plans}/interf-default/use/query/SKILL.md +6 -6
- package/public-repo/plugins/README.md +1 -1
- package/public-repo/plugins/interf/.claude-plugin/plugin.json +3 -3
- package/public-repo/plugins/interf/README.md +4 -1
- package/public-repo/plugins/interf/skills/interf/SKILL.md +189 -290
- package/public-repo/skills/interf/SKILL.md +189 -290
- package/LICENSE.md +0 -1
- package/TRADEMARKS.md +0 -8
- package/dist/cli/commands/method.d.ts +0 -2
- package/dist/compiler-ui/404.html +0 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +0 -10
- package/dist/compiler-ui/__next._full.txt +0 -21
- package/dist/compiler-ui/__next._head.txt +0 -5
- package/dist/compiler-ui/__next._index.txt +0 -6
- package/dist/compiler-ui/_next/static/chunks/01646j7yi.w5a.css +0 -1
- package/dist/compiler-ui/_next/static/chunks/02r7siaw-_p5w.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/04d0ly-7xb~-j.js +0 -91
- package/dist/compiler-ui/_next/static/chunks/0fhs9psnxqd8s.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0mssmhpbifj15.css +0 -2
- package/dist/compiler-ui/_next/static/chunks/0nypu~ddwxari.js +0 -116
- package/dist/compiler-ui/_next/static/chunks/0p3s8iyhgcww2.js +0 -31
- package/dist/compiler-ui/_next/static/chunks/0tjf-vu_rz8s0.css +0 -1
- package/dist/compiler-ui/_next/static/chunks/0u6p3fpbbfgtl.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0wpx5..8dnh0w.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0y0uj160p0ts~.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/10t8l~_oenf.c.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/13gz9e7z~imx1.js +0 -5
- package/dist/compiler-ui/_next/static/chunks/156xed-b6czaw.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/turbopack-02-3e_c-yz~5g.js +0 -1
- package/dist/compiler-ui/_not-found/__next._full.txt +0 -16
- package/dist/compiler-ui/_not-found/__next._head.txt +0 -5
- package/dist/compiler-ui/_not-found/__next._index.txt +0 -6
- package/dist/compiler-ui/_not-found/__next._not-found.txt +0 -5
- package/dist/compiler-ui/_not-found.html +0 -1
- package/dist/compiler-ui/_not-found.txt +0 -16
- package/dist/compiler-ui/index.html +0 -1
- package/dist/compiler-ui/index.txt +0 -21
- package/dist/packages/engine/agents/lib/compiled-bootstrap.d.ts +0 -3
- package/dist/packages/engine/agents/lib/compiled-bootstrap.js +0 -19
- package/dist/packages/engine/compile/artifact-counts.d.ts +0 -1
- package/dist/packages/engine/compile/compiled-compile.d.ts +0 -4
- package/dist/packages/engine/compile/compiled-compile.js +0 -4
- package/dist/packages/engine/compile/compiled-paths.d.ts +0 -47
- package/dist/packages/engine/compile/compiled-paths.js +0 -121
- package/dist/packages/engine/compile/compiled-pipeline.d.ts +0 -56
- package/dist/packages/engine/compile/compiled-schema.d.ts +0 -21
- package/dist/packages/engine/compile/compiled-schema.js +0 -126
- package/dist/packages/engine/compile/compiled-stage-plan.d.ts +0 -16
- package/dist/packages/engine/compile/compiled-stage-plan.js +0 -100
- package/dist/packages/engine/compile/compiled-stage-runner.d.ts +0 -15
- package/dist/packages/engine/compile/compiled-target.d.ts +0 -11
- package/dist/packages/engine/compile/compiled-target.js +0 -16
- package/dist/packages/engine/compile/method-primitives.d.ts +0 -2
- package/dist/packages/engine/compile/method-runs.d.ts +0 -14
- package/dist/packages/engine/compile/method-runs.js +0 -31
- package/dist/packages/engine/compile/reset.d.ts +0 -2
- package/dist/packages/engine/compile/reset.js +0 -74
- package/dist/packages/engine/compile/runtime-inventory.d.ts +0 -7
- package/dist/packages/engine/compile/runtime-reconcile.d.ts +0 -2
- package/dist/packages/engine/compile/source-files.d.ts +0 -46
- package/dist/packages/engine/compile/state-artifacts.d.ts +0 -9
- package/dist/packages/engine/compile/state-artifacts.js +0 -14
- package/dist/packages/engine/compile/state-health.d.ts +0 -4
- package/dist/packages/engine/compile/state-io.d.ts +0 -11
- package/dist/packages/engine/compile/state-paths.js +0 -16
- package/dist/packages/engine/compile/state-view.d.ts +0 -5
- package/dist/packages/engine/compile/state.d.ts +0 -7
- package/dist/packages/engine/compile/state.js +0 -12
- package/dist/packages/engine/compile/validate-compiled.d.ts +0 -27
- package/dist/packages/methods/authoring/index.d.ts +0 -4
- package/dist/packages/methods/authoring/index.js +0 -4
- package/dist/packages/methods/authoring/method-authoring.d.ts +0 -36
- package/dist/packages/methods/authoring/method-edit-session.d.ts +0 -18
- package/dist/packages/methods/authoring/method-improvement.d.ts +0 -23
- package/dist/packages/methods/authoring/method-improvement.js +0 -217
- package/dist/packages/methods/index.d.ts +0 -2
- package/dist/packages/methods/index.js +0 -2
- package/dist/packages/methods/method-resolution.d.ts +0 -6
- package/dist/packages/methods/method-resolution.js +0 -7
- package/dist/packages/methods/package/builtin-compiled-method.d.ts +0 -37
- package/dist/packages/methods/package/builtin-compiled-method.js +0 -91
- package/dist/packages/methods/package/interf-method-package.d.ts +0 -31
- package/dist/packages/methods/package/interf-method-package.js +0 -466
- package/dist/packages/methods/package/local-methods.d.ts +0 -74
- package/dist/packages/methods/package/method-definitions.d.ts +0 -61
- package/dist/packages/methods/package/method-definitions.js +0 -214
- package/dist/packages/methods/package/method-review-paths.d.ts +0 -10
- package/dist/packages/methods/package/method-review-paths.js +0 -31
- package/dist/packages/methods/package/user-methods.d.ts +0 -17
- package/dist/packages/methods/package/user-methods.js +0 -77
- package/public-repo/methods/interf-default/README.md +0 -33
- package/public-repo/methods/interf-default/improve/SKILL.md +0 -18
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_buildManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_clientMiddlewareManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_ssgManifest.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/03~yq9q893hmn.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/worker.102zas1s52_pf.js +0 -0
- /package/dist/packages/{methods/authoring/lib/method-edit-utils.js → build-plans/authoring/lib/build-plan-edit-utils.js} +0 -0
- /package/dist/packages/{methods → build-plans}/package/lib/package-root.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-contracts.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-paths.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-prompt.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-runs.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-types.js +0 -0
- /package/dist/packages/engine/{compile → build}/runtime.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime.js +0 -0
- /package/dist/packages/engine/{compile → build}/state-paths.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/validate-helpers.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/validate-helpers.js +0 -0
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Central service registry at `~/.interf/services.json`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* register a workspace with an existing instance instead of starting a
|
|
8
|
-
* second engine.
|
|
4
|
+
* Every running `interf web` instance writes an entry here on start and
|
|
5
|
+
* removes it on close. CLI/UX code consults this registry for explicit
|
|
6
|
+
* `interf web stop` lookup.
|
|
9
7
|
*
|
|
10
8
|
* Entry shape:
|
|
11
9
|
* {
|
|
12
10
|
* pid, host, port, url, started_at,
|
|
13
|
-
* workspaces: [{ control_path, registered_at, last_activity }],
|
|
14
11
|
* }
|
|
15
12
|
*
|
|
16
13
|
* Atomic write: write to a sibling tmp file, then rename. Concurrent
|
|
@@ -18,7 +15,7 @@
|
|
|
18
15
|
* stale entries makes that self-healing.
|
|
19
16
|
*/
|
|
20
17
|
import { interfHomeRoot, serviceRegistryPath } from "../contracts/lib/preparation-paths.js";
|
|
21
|
-
import { type ServiceRegistryEntry
|
|
18
|
+
import { type ServiceRegistryEntry } from "./lib/schema.js";
|
|
22
19
|
/**
|
|
23
20
|
* Read the service registry. Removes entries whose pid is no longer alive
|
|
24
21
|
* before returning. Does not health-check the HTTP endpoint — that is too
|
|
@@ -30,18 +27,9 @@ export declare function readServiceRegistry(): ServiceRegistryEntry[];
|
|
|
30
27
|
export declare function writeServiceRegistry(services: ServiceRegistryEntry[]): void;
|
|
31
28
|
/**
|
|
32
29
|
* Insert or update the entry for this process's pid. If the pid was
|
|
33
|
-
* already registered, replaces it
|
|
34
|
-
* workspace list).
|
|
30
|
+
* already registered, replaces it.
|
|
35
31
|
*/
|
|
36
32
|
export declare function registerServiceLocally(entry: ServiceRegistryEntry): ServiceRegistryEntry;
|
|
37
33
|
/** Remove the registry entry for the given pid. */
|
|
38
34
|
export declare function unregisterService(pid: number): void;
|
|
39
|
-
/** Update the workspaces array on the entry for this process's pid. */
|
|
40
|
-
export declare function updateLocalServiceWorkspaces(pid: number, options: {
|
|
41
|
-
host: string;
|
|
42
|
-
port: number;
|
|
43
|
-
url: string;
|
|
44
|
-
started_at: string;
|
|
45
|
-
workspaces: ServiceRegistryWorkspace[];
|
|
46
|
-
}): ServiceRegistryEntry;
|
|
47
35
|
export { interfHomeRoot, serviceRegistryPath };
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Central service registry at `~/.interf/services.json`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* register a workspace with an existing instance instead of starting a
|
|
8
|
-
* second engine.
|
|
4
|
+
* Every running `interf web` instance writes an entry here on start and
|
|
5
|
+
* removes it on close. CLI/UX code consults this registry for explicit
|
|
6
|
+
* `interf web stop` lookup.
|
|
9
7
|
*
|
|
10
8
|
* Entry shape:
|
|
11
9
|
* {
|
|
12
10
|
* pid, host, port, url, started_at,
|
|
13
|
-
* workspaces: [{ control_path, registered_at, last_activity }],
|
|
14
11
|
* }
|
|
15
12
|
*
|
|
16
13
|
* Atomic write: write to a sibling tmp file, then rename. Concurrent
|
|
@@ -20,7 +17,7 @@
|
|
|
20
17
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync, } from "node:fs";
|
|
21
18
|
import { dirname } from "node:path";
|
|
22
19
|
import { interfHomeRoot, serviceRegistryPath, } from "../contracts/lib/preparation-paths.js";
|
|
23
|
-
import { ServiceRegistrySchema, ServiceRegistryEntrySchema,
|
|
20
|
+
import { ServiceRegistrySchema, ServiceRegistryEntrySchema, } from "./lib/schema.js";
|
|
24
21
|
/** Returns true when the OS still has a process with this pid. */
|
|
25
22
|
function isProcessAlive(pid) {
|
|
26
23
|
if (!Number.isInteger(pid) || pid <= 0)
|
|
@@ -108,8 +105,7 @@ export function writeServiceRegistry(services) {
|
|
|
108
105
|
}
|
|
109
106
|
/**
|
|
110
107
|
* Insert or update the entry for this process's pid. If the pid was
|
|
111
|
-
* already registered, replaces it
|
|
112
|
-
* workspace list).
|
|
108
|
+
* already registered, replaces it.
|
|
113
109
|
*/
|
|
114
110
|
export function registerServiceLocally(entry) {
|
|
115
111
|
const parsed = ServiceRegistryEntrySchema.parse(entry);
|
|
@@ -123,15 +119,4 @@ export function unregisterService(pid) {
|
|
|
123
119
|
const remaining = readServiceRegistry().filter((service) => service.pid !== pid);
|
|
124
120
|
writeServiceRegistry(remaining);
|
|
125
121
|
}
|
|
126
|
-
/** Update the workspaces array on the entry for this process's pid. */
|
|
127
|
-
export function updateLocalServiceWorkspaces(pid, options) {
|
|
128
|
-
return registerServiceLocally(ServiceRegistryEntrySchema.parse({
|
|
129
|
-
pid,
|
|
130
|
-
host: options.host,
|
|
131
|
-
port: options.port,
|
|
132
|
-
url: options.url,
|
|
133
|
-
started_at: options.started_at,
|
|
134
|
-
workspaces: options.workspaces.map((workspace) => ServiceRegistryWorkspaceSchema.parse(workspace)),
|
|
135
|
-
}));
|
|
136
|
-
}
|
|
137
122
|
export { interfHomeRoot, serviceRegistryPath };
|
|
@@ -16,8 +16,8 @@ export declare const TestCaseSchema: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export declare const TestSpecSchema: z.ZodObject<{
|
|
18
18
|
type: z.ZodEnum<{
|
|
19
|
+
"verifiable-context": "verifiable-context";
|
|
19
20
|
"source-files": "source-files";
|
|
20
|
-
compiled: "compiled";
|
|
21
21
|
}>;
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -60,12 +60,12 @@ export declare const TestCaseResultSchema: z.ZodObject<{
|
|
|
60
60
|
export declare const TestTargetResultSchema: z.ZodObject<{
|
|
61
61
|
target: z.ZodObject<{
|
|
62
62
|
type: z.ZodEnum<{
|
|
63
|
+
"verifiable-context": "verifiable-context";
|
|
63
64
|
"source-files": "source-files";
|
|
64
|
-
compiled: "compiled";
|
|
65
65
|
}>;
|
|
66
66
|
name: z.ZodString;
|
|
67
67
|
path: z.ZodString;
|
|
68
|
-
|
|
68
|
+
build_plan: z.ZodString;
|
|
69
69
|
}, z.core.$strip>;
|
|
70
70
|
sandbox_path: z.ZodOptional<z.ZodString>;
|
|
71
71
|
ok: z.ZodBoolean;
|
|
@@ -98,8 +98,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
|
|
|
98
98
|
id: z.ZodString;
|
|
99
99
|
name: z.ZodString;
|
|
100
100
|
type: z.ZodEnum<{
|
|
101
|
+
"verifiable-context": "verifiable-context";
|
|
101
102
|
"source-files": "source-files";
|
|
102
|
-
compiled: "compiled";
|
|
103
103
|
}>;
|
|
104
104
|
file: z.ZodString;
|
|
105
105
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -138,12 +138,12 @@ export declare const TestTargetRunSchema: z.ZodObject<{
|
|
|
138
138
|
results: z.ZodArray<z.ZodObject<{
|
|
139
139
|
target: z.ZodObject<{
|
|
140
140
|
type: z.ZodEnum<{
|
|
141
|
+
"verifiable-context": "verifiable-context";
|
|
141
142
|
"source-files": "source-files";
|
|
142
|
-
compiled: "compiled";
|
|
143
143
|
}>;
|
|
144
144
|
name: z.ZodString;
|
|
145
145
|
path: z.ZodString;
|
|
146
|
-
|
|
146
|
+
build_plan: z.ZodString;
|
|
147
147
|
}, z.core.$strip>;
|
|
148
148
|
sandbox_path: z.ZodOptional<z.ZodString>;
|
|
149
149
|
ok: z.ZodBoolean;
|
|
@@ -170,8 +170,8 @@ export declare const TestTargetRunSchema: z.ZodObject<{
|
|
|
170
170
|
}, z.core.$strip>>;
|
|
171
171
|
}, z.core.$strip>;
|
|
172
172
|
export declare const TestRunModeSchema: z.ZodEnum<{
|
|
173
|
+
"verifiable-context": "verifiable-context";
|
|
173
174
|
"source-files": "source-files";
|
|
174
|
-
compiled: "compiled";
|
|
175
175
|
both: "both";
|
|
176
176
|
}>;
|
|
177
177
|
export declare const TestRunTargetSummarySchema: z.ZodObject<{
|
|
@@ -184,28 +184,28 @@ export declare const TestRunTargetSummarySchema: z.ZodObject<{
|
|
|
184
184
|
total_checks: z.ZodNumber;
|
|
185
185
|
target: z.ZodObject<{
|
|
186
186
|
type: z.ZodEnum<{
|
|
187
|
+
"verifiable-context": "verifiable-context";
|
|
187
188
|
"source-files": "source-files";
|
|
188
|
-
compiled: "compiled";
|
|
189
189
|
}>;
|
|
190
190
|
name: z.ZodString;
|
|
191
191
|
path: z.ZodString;
|
|
192
|
-
|
|
192
|
+
build_plan: z.ZodString;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
194
|
}, z.core.$strip>;
|
|
195
|
-
export declare const ReadinessCheckRunSchema: z.ZodObject<{
|
|
195
|
+
export declare const ReadinessCheckRunSchema: z.ZodPreprocess<z.ZodObject<{
|
|
196
196
|
kind: z.ZodLiteral<"interf-readiness-check-run">;
|
|
197
197
|
version: z.ZodLiteral<1>;
|
|
198
198
|
generated_at: z.ZodString;
|
|
199
199
|
mode: z.ZodEnum<{
|
|
200
|
+
"verifiable-context": "verifiable-context";
|
|
200
201
|
"source-files": "source-files";
|
|
201
|
-
compiled: "compiled";
|
|
202
202
|
both: "both";
|
|
203
203
|
}>;
|
|
204
204
|
source_path: z.ZodString;
|
|
205
205
|
checks_fingerprint: z.ZodOptional<z.ZodString>;
|
|
206
206
|
preparation: z.ZodObject<{
|
|
207
207
|
name: z.ZodString;
|
|
208
|
-
|
|
208
|
+
verifiable_context_path: z.ZodNullable<z.ZodString>;
|
|
209
209
|
}, z.core.$strip>;
|
|
210
210
|
source_files: z.ZodNullable<z.ZodObject<{
|
|
211
211
|
label: z.ZodString;
|
|
@@ -217,15 +217,15 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
|
|
|
217
217
|
total_checks: z.ZodNumber;
|
|
218
218
|
target: z.ZodObject<{
|
|
219
219
|
type: z.ZodEnum<{
|
|
220
|
+
"verifiable-context": "verifiable-context";
|
|
220
221
|
"source-files": "source-files";
|
|
221
|
-
compiled: "compiled";
|
|
222
222
|
}>;
|
|
223
223
|
name: z.ZodString;
|
|
224
224
|
path: z.ZodString;
|
|
225
|
-
|
|
225
|
+
build_plan: z.ZodString;
|
|
226
226
|
}, z.core.$strip>;
|
|
227
227
|
}, z.core.$strip>>;
|
|
228
|
-
|
|
228
|
+
verifiable_context: z.ZodNullable<z.ZodObject<{
|
|
229
229
|
label: z.ZodString;
|
|
230
230
|
run_path: z.ZodString;
|
|
231
231
|
ok: z.ZodBoolean;
|
|
@@ -235,19 +235,19 @@ export declare const ReadinessCheckRunSchema: z.ZodObject<{
|
|
|
235
235
|
total_checks: z.ZodNumber;
|
|
236
236
|
target: z.ZodObject<{
|
|
237
237
|
type: z.ZodEnum<{
|
|
238
|
+
"verifiable-context": "verifiable-context";
|
|
238
239
|
"source-files": "source-files";
|
|
239
|
-
compiled: "compiled";
|
|
240
240
|
}>;
|
|
241
241
|
name: z.ZodString;
|
|
242
242
|
path: z.ZodString;
|
|
243
|
-
|
|
243
|
+
build_plan: z.ZodString;
|
|
244
244
|
}, z.core.$strip>;
|
|
245
245
|
}, z.core.$strip>>;
|
|
246
246
|
summary: z.ZodObject<{
|
|
247
247
|
source_files_pass_rate: z.ZodNullable<z.ZodNumber>;
|
|
248
|
-
|
|
248
|
+
verifiable_context_pass_rate: z.ZodNullable<z.ZodNumber>;
|
|
249
249
|
}, z.core.$strip>;
|
|
250
|
-
}, z.core.$strip
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
251
|
export type { TestCaseExpect, TestTargetType };
|
|
252
252
|
export type TestCase = z.infer<typeof TestCaseSchema>;
|
|
253
253
|
export type TestSpec = z.infer<typeof TestSpecSchema>;
|
|
@@ -46,7 +46,7 @@ export const TestTargetResultSchema = z.object({
|
|
|
46
46
|
type: TestTargetTypeSchema,
|
|
47
47
|
name: z.string(),
|
|
48
48
|
path: z.string(),
|
|
49
|
-
|
|
49
|
+
build_plan: z.string(),
|
|
50
50
|
}),
|
|
51
51
|
sandbox_path: z.string().optional(),
|
|
52
52
|
ok: z.boolean(),
|
|
@@ -81,7 +81,7 @@ export const TestTargetRunSchema = z.object({
|
|
|
81
81
|
target_count: z.number(),
|
|
82
82
|
results: z.array(TestTargetResultSchema),
|
|
83
83
|
});
|
|
84
|
-
export const TestRunModeSchema = z.enum(["source-files", "
|
|
84
|
+
export const TestRunModeSchema = z.enum(["source-files", "verifiable-context", "both"]);
|
|
85
85
|
export const TestRunTargetSummarySchema = z.object({
|
|
86
86
|
label: z.string(),
|
|
87
87
|
run_path: z.string(),
|
|
@@ -94,10 +94,38 @@ export const TestRunTargetSummarySchema = z.object({
|
|
|
94
94
|
type: TestTargetTypeSchema,
|
|
95
95
|
name: z.string(),
|
|
96
96
|
path: z.string(),
|
|
97
|
-
|
|
97
|
+
build_plan: z.string(),
|
|
98
98
|
}),
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
function mapReadinessCheckRun(value) {
|
|
101
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
102
|
+
return value;
|
|
103
|
+
const record = value;
|
|
104
|
+
const preparation = record.preparation && typeof record.preparation === "object" && !Array.isArray(record.preparation)
|
|
105
|
+
? record.preparation
|
|
106
|
+
: null;
|
|
107
|
+
const summary = record.summary && typeof record.summary === "object" && !Array.isArray(record.summary)
|
|
108
|
+
? record.summary
|
|
109
|
+
: null;
|
|
110
|
+
return {
|
|
111
|
+
...record,
|
|
112
|
+
mode: record.mode,
|
|
113
|
+
preparation: preparation
|
|
114
|
+
? {
|
|
115
|
+
...preparation,
|
|
116
|
+
verifiable_context_path: preparation.verifiable_context_path,
|
|
117
|
+
}
|
|
118
|
+
: record.preparation,
|
|
119
|
+
verifiable_context: record.verifiable_context,
|
|
120
|
+
summary: summary
|
|
121
|
+
? {
|
|
122
|
+
...summary,
|
|
123
|
+
verifiable_context_pass_rate: summary.verifiable_context_pass_rate,
|
|
124
|
+
}
|
|
125
|
+
: record.summary,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
export const ReadinessCheckRunSchema = z.preprocess(mapReadinessCheckRun, z.object({
|
|
101
129
|
kind: z.literal("interf-readiness-check-run"),
|
|
102
130
|
version: z.literal(1),
|
|
103
131
|
generated_at: z.string(),
|
|
@@ -106,12 +134,12 @@ export const ReadinessCheckRunSchema = z.object({
|
|
|
106
134
|
checks_fingerprint: z.string().min(1).optional(),
|
|
107
135
|
preparation: z.object({
|
|
108
136
|
name: PreparationNameSchema,
|
|
109
|
-
|
|
137
|
+
verifiable_context_path: z.string().nullable(),
|
|
110
138
|
}),
|
|
111
139
|
source_files: TestRunTargetSummarySchema.nullable(),
|
|
112
|
-
|
|
140
|
+
verifiable_context: TestRunTargetSummarySchema.nullable(),
|
|
113
141
|
summary: z.object({
|
|
114
142
|
source_files_pass_rate: z.number().nullable(),
|
|
115
|
-
|
|
143
|
+
verifiable_context_pass_rate: z.number().nullable(),
|
|
116
144
|
}),
|
|
117
|
-
});
|
|
145
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentExecutor } from "../agents/lib/executors.js";
|
|
2
2
|
import type { SourcePreparationConfig } from "../../project/lib/schema.js";
|
|
3
3
|
import type { TestTargetType } from "../../contracts/lib/schema.js";
|
|
4
4
|
import { type TestTargetCandidate, type TestTargetResult } from "./verify.js";
|
|
@@ -13,14 +13,14 @@ export interface SavedReadinessCheckOutcome {
|
|
|
13
13
|
export interface ReadinessCheckRunResult {
|
|
14
14
|
sourcePath: string;
|
|
15
15
|
preparationConfig: SourcePreparationConfig;
|
|
16
|
-
|
|
16
|
+
verifiableContextPath: string | null;
|
|
17
17
|
/**
|
|
18
18
|
* 0.17 — restored. Populated when the verify run targets
|
|
19
|
-
* `source-files`; null when targeting
|
|
19
|
+
* `source-files`; null when targeting verifiable context. Aggregates back
|
|
20
20
|
* onto the saved `ReadinessCheckRun` payload's `source_files` field.
|
|
21
21
|
*/
|
|
22
22
|
sourceFilesOutcome: SavedReadinessCheckOutcome | null;
|
|
23
|
-
|
|
23
|
+
verifiableContextOutcome: SavedReadinessCheckOutcome | null;
|
|
24
24
|
readinessRunPath: string | null;
|
|
25
25
|
readinessRun: ReadinessCheckRun | null;
|
|
26
26
|
}
|
|
@@ -38,46 +38,45 @@ export declare function readCurrentSavedReadinessCheckRun(options: {
|
|
|
38
38
|
};
|
|
39
39
|
export declare function saveReadinessCheckRun(options: {
|
|
40
40
|
sourcePath: string;
|
|
41
|
-
|
|
41
|
+
verifiableContextPath: string | null;
|
|
42
42
|
preparationName: string;
|
|
43
43
|
checksFingerprint: string;
|
|
44
44
|
sourceFilesOutcome?: SavedReadinessCheckOutcome | null;
|
|
45
|
-
|
|
45
|
+
verifiableContextOutcome: SavedReadinessCheckOutcome | null;
|
|
46
46
|
}): string;
|
|
47
|
-
export declare function
|
|
47
|
+
export declare function runSavedVerifiableContextCheck(options: {
|
|
48
48
|
sourcePath: string;
|
|
49
49
|
preparationConfig: SourcePreparationConfig;
|
|
50
|
-
executor?:
|
|
51
|
-
|
|
50
|
+
executor?: AgentExecutor | null;
|
|
51
|
+
verifiableContextPath?: string | null;
|
|
52
52
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
53
53
|
runSuffix?: string | null;
|
|
54
54
|
}): Promise<SavedReadinessCheckOutcome | null>;
|
|
55
55
|
/**
|
|
56
56
|
* 0.17 — restored. Runs the saved readiness checks against the source
|
|
57
|
-
* folder baseline (no
|
|
58
|
-
* much value the
|
|
57
|
+
* folder baseline (no verifiable-context indirection) so users can see how
|
|
58
|
+
* much value the Build Plan actually adds. The lower-level `verify-execution`
|
|
59
59
|
* + `verify-sandbox` source-files paths have stayed in tree since 0.13;
|
|
60
60
|
* this is the orchestrator hook that was missing.
|
|
61
61
|
*/
|
|
62
62
|
export declare function runSavedSourceFilesCheck(options: {
|
|
63
63
|
sourcePath: string;
|
|
64
64
|
preparationConfig: SourcePreparationConfig;
|
|
65
|
-
executor?:
|
|
65
|
+
executor?: AgentExecutor | null;
|
|
66
66
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
67
67
|
runSuffix?: string | null;
|
|
68
68
|
}): Promise<SavedReadinessCheckOutcome | null>;
|
|
69
69
|
export declare function runReadinessChecksForExecutor(options: {
|
|
70
70
|
sourcePath: string;
|
|
71
71
|
preparationConfig: SourcePreparationConfig;
|
|
72
|
-
|
|
73
|
-
executor?:
|
|
72
|
+
verifiableContextPath: string | null;
|
|
73
|
+
executor?: AgentExecutor | null;
|
|
74
74
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
75
75
|
runSuffix?: string | null;
|
|
76
76
|
saveLatest?: boolean;
|
|
77
77
|
/**
|
|
78
78
|
* 0.17 — selects which target the readiness checks judge against.
|
|
79
|
-
* Defaults to
|
|
80
|
-
* callers.
|
|
79
|
+
* Defaults to verifiable context.
|
|
81
80
|
*/
|
|
82
81
|
target?: TestTargetType;
|
|
83
82
|
}): Promise<ReadinessCheckRunResult>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
|
-
import {
|
|
4
|
-
import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, preparationTestsRoot, normalizePreparationTestRunId,
|
|
5
|
-
import {
|
|
3
|
+
import { buildTestSpecFromPreparationConfig, buildTestSpecFromSourceFolderConfig, fingerprintReadinessChecks, resolveConfiguredSourceFolderPath, resolveSourcePreparationPath, } from "../../project/source-config.js";
|
|
4
|
+
import { asPreparationDataDir, preparationLatestReadinessRunPath, preparationLatestReadinessSummaryPath, preparationTestRunPath, preparationTestRunsRoot, preparationTestsRoot, normalizePreparationTestRunId, preparationVerifiableContextPath, } from "../../contracts/lib/preparation-paths.js";
|
|
5
|
+
import { testRootForVerifiableContext } from "../build/verifiable-context-paths.js";
|
|
6
6
|
import { readJsonFileWithSchema } from "../../contracts/utils/parse.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { resolveBuildPlanId } from "../../build-plans/build-plan-resolution.js";
|
|
8
|
+
import { createVerifiableContextTestTarget, createSourceFilesTestTarget, runTargetTestsAuto, saveTargetTestRun, } from "./verify.js";
|
|
9
9
|
import { ReadinessCheckRunSchema, } from "./lib/schema.js";
|
|
10
10
|
export function readinessPassRate(outcome) {
|
|
11
11
|
return outcome.result.totalCases > 0
|
|
@@ -44,15 +44,15 @@ function renderLatestSummaryMarkdown(payload) {
|
|
|
44
44
|
if (payload.source_files) {
|
|
45
45
|
lines.push(`| Source files | \`${payload.source_files.passed_cases}/${payload.source_files.total_cases}\` |`);
|
|
46
46
|
}
|
|
47
|
-
if (payload.
|
|
48
|
-
lines.push(`|
|
|
47
|
+
if (payload.verifiable_context) {
|
|
48
|
+
lines.push(`| Verifiable Context | \`${payload.verifiable_context.passed_cases}/${payload.verifiable_context.total_cases}\` |`);
|
|
49
49
|
}
|
|
50
50
|
lines.push("");
|
|
51
51
|
if (payload.source_files) {
|
|
52
52
|
lines.push(`- Latest source-files run: ${payload.source_files.run_path}`);
|
|
53
53
|
}
|
|
54
|
-
if (payload.
|
|
55
|
-
lines.push(`- Latest
|
|
54
|
+
if (payload.verifiable_context) {
|
|
55
|
+
lines.push(`- Latest verifiable-context run: ${payload.verifiable_context.run_path}`);
|
|
56
56
|
}
|
|
57
57
|
return `${lines.join("\n")}\n`;
|
|
58
58
|
}
|
|
@@ -80,12 +80,12 @@ export function readCurrentSavedReadinessCheckRun(options) {
|
|
|
80
80
|
}
|
|
81
81
|
return { readinessRun: latestRun, stale: false };
|
|
82
82
|
}
|
|
83
|
-
function modeForOutcomes(sourceFilesOutcome,
|
|
84
|
-
if (sourceFilesOutcome &&
|
|
83
|
+
function modeForOutcomes(sourceFilesOutcome, verifiableContextOutcome) {
|
|
84
|
+
if (sourceFilesOutcome && verifiableContextOutcome)
|
|
85
85
|
return "both";
|
|
86
86
|
if (sourceFilesOutcome)
|
|
87
87
|
return "source-files";
|
|
88
|
-
return "
|
|
88
|
+
return "verifiable-context";
|
|
89
89
|
}
|
|
90
90
|
function passRateOf(summary) {
|
|
91
91
|
if (!summary)
|
|
@@ -100,8 +100,8 @@ export function saveReadinessCheckRun(options) {
|
|
|
100
100
|
const sourceFilesSummary = sourceFilesOutcome
|
|
101
101
|
? summarizeSavedTestOutcome("Source Files", sourceFilesOutcome)
|
|
102
102
|
: null;
|
|
103
|
-
const
|
|
104
|
-
? summarizeSavedTestOutcome("
|
|
103
|
+
const verifiableContextSummary = options.verifiableContextOutcome
|
|
104
|
+
? summarizeSavedTestOutcome("Verifiable Context", options.verifiableContextOutcome)
|
|
105
105
|
: null;
|
|
106
106
|
const payload = {
|
|
107
107
|
kind: "interf-readiness-check-run",
|
|
@@ -109,63 +109,63 @@ export function saveReadinessCheckRun(options) {
|
|
|
109
109
|
generated_at: generatedAt,
|
|
110
110
|
// 0.17 — verify carries the target it ran against on the wire so
|
|
111
111
|
// dashboards and the UI can show source-files baselines alongside
|
|
112
|
-
//
|
|
113
|
-
mode: modeForOutcomes(sourceFilesOutcome, options.
|
|
112
|
+
// verifiable-context judgments. `both` is reserved for future combined runs.
|
|
113
|
+
mode: modeForOutcomes(sourceFilesOutcome, options.verifiableContextOutcome),
|
|
114
114
|
source_path: options.sourcePath,
|
|
115
115
|
checks_fingerprint: options.checksFingerprint,
|
|
116
116
|
preparation: {
|
|
117
117
|
name: options.preparationName,
|
|
118
|
-
|
|
118
|
+
verifiable_context_path: options.verifiableContextPath,
|
|
119
119
|
},
|
|
120
120
|
source_files: sourceFilesSummary,
|
|
121
|
-
|
|
121
|
+
verifiable_context: verifiableContextSummary,
|
|
122
122
|
summary: {
|
|
123
123
|
source_files_pass_rate: passRateOf(sourceFilesSummary),
|
|
124
|
-
|
|
124
|
+
verifiable_context_pass_rate: passRateOf(verifiableContextSummary),
|
|
125
125
|
},
|
|
126
126
|
};
|
|
127
127
|
const latestStatePath = preparationLatestReadinessRunPath(asPreparationDataDir(options.sourcePath), options.preparationName);
|
|
128
128
|
mkdirSync(dirname(latestStatePath), { recursive: true });
|
|
129
129
|
writeFileSync(latestStatePath, `${JSON.stringify(payload, null, 2)}\n`);
|
|
130
130
|
writeFileSync(preparationLatestReadinessSummaryPath(asPreparationDataDir(options.sourcePath), options.preparationName), renderLatestSummaryMarkdown(payload));
|
|
131
|
-
if (options.
|
|
132
|
-
mkdirSync(
|
|
133
|
-
writeFileSync(join(
|
|
131
|
+
if (options.verifiableContextPath) {
|
|
132
|
+
mkdirSync(testRootForVerifiableContext(options.verifiableContextPath), { recursive: true });
|
|
133
|
+
writeFileSync(join(testRootForVerifiableContext(options.verifiableContextPath), "latest.json"), `${JSON.stringify(payload, null, 2)}\n`);
|
|
134
134
|
}
|
|
135
135
|
return latestStatePath;
|
|
136
136
|
}
|
|
137
|
-
export async function
|
|
138
|
-
const
|
|
139
|
-
??
|
|
140
|
-
const spec =
|
|
141
|
-
|
|
142
|
-
targetType: "
|
|
137
|
+
export async function runSavedVerifiableContextCheck(options) {
|
|
138
|
+
const verifiableContextPath = options.verifiableContextPath
|
|
139
|
+
?? verifiableContextPathForPreparation(options.sourcePath, options.preparationConfig.name);
|
|
140
|
+
const spec = buildTestSpecFromPreparationConfig({
|
|
141
|
+
verifiableContextPath: verifiableContextPath,
|
|
142
|
+
targetType: "verifiable-context",
|
|
143
143
|
});
|
|
144
144
|
if (!spec)
|
|
145
145
|
return null;
|
|
146
|
-
const target =
|
|
146
|
+
const target = createVerifiableContextTestTarget(verifiableContextPath, options.preparationConfig.name, resolveBuildPlanId(options.preparationConfig));
|
|
147
147
|
if (!target.eligible)
|
|
148
148
|
return null;
|
|
149
149
|
const run = await runTargetTestsAuto(options.sourcePath, spec, [target], {
|
|
150
150
|
executor: options.executor,
|
|
151
151
|
preserveSandboxes: options.preserveSandboxes ?? "on-failure",
|
|
152
|
-
artifactRootPath:
|
|
152
|
+
artifactRootPath: verifiableContextPath,
|
|
153
153
|
});
|
|
154
154
|
const result = run.results[0];
|
|
155
155
|
if (!result)
|
|
156
156
|
return null;
|
|
157
|
-
const
|
|
157
|
+
const verifiableContextRunPath = saveTargetTestRun(verifiableContextPath, run);
|
|
158
158
|
const preparationRunPath = writePreparationTargetRun({
|
|
159
159
|
prepDataDir: options.sourcePath,
|
|
160
160
|
preparationName: options.preparationConfig.name,
|
|
161
|
-
target: "
|
|
161
|
+
target: "verifiable-context",
|
|
162
162
|
generatedAt: run.generated_at,
|
|
163
163
|
runId: normalizePreparationTestRunId(spec.id),
|
|
164
164
|
runSuffix: options.runSuffix,
|
|
165
165
|
payload: run,
|
|
166
166
|
});
|
|
167
167
|
return {
|
|
168
|
-
runPath:
|
|
168
|
+
runPath: verifiableContextRunPath,
|
|
169
169
|
displayRunPath: preparationRunPath,
|
|
170
170
|
target,
|
|
171
171
|
result,
|
|
@@ -173,8 +173,8 @@ export async function runSavedPortableContextCheck(options) {
|
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
175
|
* 0.17 — restored. Runs the saved readiness checks against the source
|
|
176
|
-
* folder baseline (no
|
|
177
|
-
* much value the
|
|
176
|
+
* folder baseline (no verifiable-context indirection) so users can see how
|
|
177
|
+
* much value the Build Plan actually adds. The lower-level `verify-execution`
|
|
178
178
|
* + `verify-sandbox` source-files paths have stayed in tree since 0.13;
|
|
179
179
|
* this is the orchestrator hook that was missing.
|
|
180
180
|
*/
|
|
@@ -215,13 +215,13 @@ export async function runSavedSourceFilesCheck(options) {
|
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
217
|
export async function runReadinessChecksForExecutor(options) {
|
|
218
|
-
const target = options.target ?? "
|
|
219
|
-
const
|
|
220
|
-
? await
|
|
218
|
+
const target = options.target ?? "verifiable-context";
|
|
219
|
+
const verifiableContextOutcome = target === "verifiable-context"
|
|
220
|
+
? await runSavedVerifiableContextCheck({
|
|
221
221
|
sourcePath: options.sourcePath,
|
|
222
222
|
preparationConfig: options.preparationConfig,
|
|
223
223
|
executor: options.executor,
|
|
224
|
-
|
|
224
|
+
verifiableContextPath: options.verifiableContextPath,
|
|
225
225
|
preserveSandboxes: options.preserveSandboxes,
|
|
226
226
|
runSuffix: options.runSuffix,
|
|
227
227
|
})
|
|
@@ -235,16 +235,16 @@ export async function runReadinessChecksForExecutor(options) {
|
|
|
235
235
|
runSuffix: options.runSuffix,
|
|
236
236
|
})
|
|
237
237
|
: null;
|
|
238
|
-
const modeSatisfied = Boolean(
|
|
238
|
+
const modeSatisfied = Boolean(verifiableContextOutcome) || Boolean(sourceFilesOutcome);
|
|
239
239
|
const shouldSave = options.saveLatest !== false;
|
|
240
240
|
const readinessRunPath = shouldSave && modeSatisfied
|
|
241
241
|
? saveReadinessCheckRun({
|
|
242
242
|
sourcePath: options.sourcePath,
|
|
243
|
-
|
|
243
|
+
verifiableContextPath: options.verifiableContextPath,
|
|
244
244
|
preparationName: options.preparationConfig.name,
|
|
245
245
|
checksFingerprint: fingerprintReadinessChecks(options.preparationConfig.checks),
|
|
246
246
|
sourceFilesOutcome,
|
|
247
|
-
|
|
247
|
+
verifiableContextOutcome,
|
|
248
248
|
})
|
|
249
249
|
: null;
|
|
250
250
|
const readinessRun = shouldSave && modeSatisfied
|
|
@@ -253,13 +253,13 @@ export async function runReadinessChecksForExecutor(options) {
|
|
|
253
253
|
return {
|
|
254
254
|
sourcePath: options.sourcePath,
|
|
255
255
|
preparationConfig: options.preparationConfig,
|
|
256
|
-
|
|
256
|
+
verifiableContextPath: options.verifiableContextPath,
|
|
257
257
|
sourceFilesOutcome,
|
|
258
|
-
|
|
258
|
+
verifiableContextOutcome,
|
|
259
259
|
readinessRunPath,
|
|
260
260
|
readinessRun,
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
|
-
function
|
|
264
|
-
return
|
|
263
|
+
function verifiableContextPathForPreparation(sourcePath, preparationName) {
|
|
264
|
+
return preparationVerifiableContextPath(asPreparationDataDir(sourcePath), preparationName);
|
|
265
265
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type AgentExecutor } from "../agents/lib/executors.js";
|
|
2
2
|
import type { TestTargetRun, TestTargetCandidate, LoadedTestSpec } from "./verify-types.js";
|
|
3
3
|
import { type TestSandboxRetentionMode } from "./verify-sandbox.js";
|
|
4
4
|
export declare function runTargetTests(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[]): TestTargetRun;
|
|
5
|
-
export declare function runTargetTestsWithJudge(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], executor:
|
|
5
|
+
export declare function runTargetTestsWithJudge(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], executor: AgentExecutor, options?: {
|
|
6
6
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
7
7
|
artifactRootPath?: string;
|
|
8
8
|
}): Promise<TestTargetRun>;
|
|
9
9
|
export declare function runTargetTestsAuto(sourcePath: string, spec: LoadedTestSpec, targets: TestTargetCandidate[], options?: {
|
|
10
|
-
executor?:
|
|
10
|
+
executor?: AgentExecutor | null;
|
|
11
11
|
preserveSandboxes?: TestSandboxRetentionMode;
|
|
12
12
|
artifactRootPath?: string;
|
|
13
13
|
}): Promise<TestTargetRun>;
|