@interf/compiler 0.21.0 → 0.22.0
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/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 +12 -14
- 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/README.md +0 -325
- 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/_qJKnA0dammQ306MG_zMq}/_buildManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/_qJKnA0dammQ306MG_zMq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/_qJKnA0dammQ306MG_zMq}/_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,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ArtifactStatusSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema,
|
|
2
|
+
import { ArtifactStatusSchema, RuntimeExecutorInfoSchema, RuntimeStageSchema, BuildPlanIdSchema, ReadinessSchema, PreparationNameSchema, } from "../../../contracts/lib/schema.js";
|
|
3
3
|
const RunIdSchema = z.string().min(1);
|
|
4
4
|
const JsonObjectSchema = z.record(z.string(), z.unknown());
|
|
5
|
-
export const
|
|
5
|
+
export const RunTraceRunStatusSchema = z.enum([
|
|
6
6
|
"pending",
|
|
7
7
|
"running",
|
|
8
8
|
"completed",
|
|
9
9
|
"failed",
|
|
10
10
|
"cancelled",
|
|
11
11
|
]);
|
|
12
|
-
export const
|
|
12
|
+
export const RunTraceEventTypeSchema = z.enum([
|
|
13
13
|
"run_created",
|
|
14
14
|
"run_started",
|
|
15
15
|
"run_completed",
|
|
@@ -27,37 +27,37 @@ export const MethodTraceEventTypeSchema = z.enum([
|
|
|
27
27
|
"wait_created",
|
|
28
28
|
"wait_completed",
|
|
29
29
|
]);
|
|
30
|
-
export const
|
|
30
|
+
export const RunTraceStructuredErrorSchema = z.object({
|
|
31
31
|
message: z.string().min(1),
|
|
32
32
|
stack: z.string().min(1).optional(),
|
|
33
33
|
code: z.string().min(1).optional(),
|
|
34
34
|
}).strict();
|
|
35
|
-
export const
|
|
35
|
+
export const RunTraceRunSchema = z.object({
|
|
36
36
|
runId: RunIdSchema,
|
|
37
|
-
status:
|
|
37
|
+
status: RunTraceRunStatusSchema,
|
|
38
38
|
deploymentId: z.string().min(1),
|
|
39
|
-
|
|
39
|
+
traceName: z.string().min(1),
|
|
40
40
|
specVersion: z.literal(1),
|
|
41
41
|
executionContext: JsonObjectSchema.optional(),
|
|
42
42
|
input: z.unknown(),
|
|
43
43
|
output: z.unknown().optional(),
|
|
44
|
-
error:
|
|
44
|
+
error: RunTraceStructuredErrorSchema.optional(),
|
|
45
45
|
expiredAt: z.string().min(1).optional(),
|
|
46
46
|
startedAt: z.string().min(1).optional(),
|
|
47
47
|
completedAt: z.string().min(1).optional(),
|
|
48
48
|
createdAt: z.string().min(1),
|
|
49
49
|
updatedAt: z.string().min(1),
|
|
50
50
|
}).strict();
|
|
51
|
-
export const
|
|
51
|
+
export const RunTraceEventSchema = z.object({
|
|
52
52
|
runId: RunIdSchema,
|
|
53
53
|
eventId: z.string().min(1),
|
|
54
|
-
eventType:
|
|
54
|
+
eventType: RunTraceEventTypeSchema,
|
|
55
55
|
correlationId: z.string().min(1).optional(),
|
|
56
56
|
specVersion: z.literal(1),
|
|
57
57
|
createdAt: z.string().min(1),
|
|
58
58
|
eventData: z.unknown().optional(),
|
|
59
59
|
}).strict();
|
|
60
|
-
export const
|
|
60
|
+
export const RunTraceStreamChunkSchema = z.object({
|
|
61
61
|
streamId: z.string().min(1),
|
|
62
62
|
chunkId: z.string().min(1),
|
|
63
63
|
index: z.number().int().min(0),
|
|
@@ -65,17 +65,17 @@ export const MethodTraceStreamChunkSchema = z.object({
|
|
|
65
65
|
text: z.string(),
|
|
66
66
|
data: z.unknown().optional(),
|
|
67
67
|
}).strict();
|
|
68
|
-
export const
|
|
69
|
-
run:
|
|
70
|
-
events: z.array(
|
|
71
|
-
streams: z.array(
|
|
68
|
+
export const RunTraceSchema = z.object({
|
|
69
|
+
run: RunTraceRunSchema,
|
|
70
|
+
events: z.array(RunTraceEventSchema).default([]),
|
|
71
|
+
streams: z.array(RunTraceStreamChunkSchema).default([]),
|
|
72
72
|
}).strict();
|
|
73
73
|
export const ObservableRunTypeSchema = z.enum([
|
|
74
|
-
"
|
|
74
|
+
"build",
|
|
75
75
|
"verify",
|
|
76
76
|
"readiness-check-draft",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"build-plan-draft",
|
|
78
|
+
"build-plan-improvement",
|
|
79
79
|
"job",
|
|
80
80
|
]);
|
|
81
81
|
export const ObservableRunStatusSchema = z.enum([
|
|
@@ -92,9 +92,8 @@ export const ObservableRunMetricSchema = z.object({
|
|
|
92
92
|
}).strict();
|
|
93
93
|
export const ExecutionBackendKindSchema = z.enum([
|
|
94
94
|
"native",
|
|
95
|
-
"workflow-sdk",
|
|
96
95
|
]);
|
|
97
|
-
export const
|
|
96
|
+
export const BuildRunStatusSchema = z.enum([
|
|
98
97
|
"queued",
|
|
99
98
|
"running",
|
|
100
99
|
"succeeded",
|
|
@@ -135,7 +134,7 @@ export const RunObservabilitySchema = z.object({
|
|
|
135
134
|
title: z.string().min(1),
|
|
136
135
|
status: ObservableRunStatusSchema,
|
|
137
136
|
preparation: PreparationNameSchema.nullable().optional(),
|
|
138
|
-
|
|
137
|
+
build_plan: BuildPlanIdSchema.nullable().optional(),
|
|
139
138
|
source_path: z.string().min(1).nullable().optional(),
|
|
140
139
|
output_path: z.string().min(1).nullable().optional(),
|
|
141
140
|
executor: RuntimeExecutorInfoSchema.nullable().optional(),
|
|
@@ -147,7 +146,7 @@ export const RunObservabilitySchema = z.object({
|
|
|
147
146
|
artifacts: z.array(ArtifactRefSchema).default([]),
|
|
148
147
|
proof: z.array(ProofCheckSchema).default([]),
|
|
149
148
|
readiness: ReadinessSchema.nullable().optional(),
|
|
150
|
-
trace:
|
|
149
|
+
trace: RunTraceSchema,
|
|
151
150
|
}).strict();
|
|
152
151
|
export const ProofRecordSchema = z.object({
|
|
153
152
|
id: z.string().min(1),
|
|
@@ -180,8 +179,8 @@ const RunEventBaseSchema = z.object({
|
|
|
180
179
|
export const RunStartedEventSchema = RunEventBaseSchema.extend({
|
|
181
180
|
type: z.literal("run.started"),
|
|
182
181
|
preparation: PreparationNameSchema,
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
build_plan: BuildPlanIdSchema.optional(),
|
|
183
|
+
verifiable_context_path: z.string().min(1).optional(),
|
|
185
184
|
backend: ExecutionBackendKindSchema,
|
|
186
185
|
}).strict();
|
|
187
186
|
export const StageStartedEventSchema = RunEventBaseSchema.extend({
|
|
@@ -237,7 +236,7 @@ export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
|
|
|
237
236
|
type: z.literal("checks.evaluated"),
|
|
238
237
|
passed: z.number().int().min(0),
|
|
239
238
|
total: z.number().int().min(0),
|
|
240
|
-
target: z.enum(["source-files", "
|
|
239
|
+
target: z.enum(["source-files", "verifiable-context"]).optional(),
|
|
241
240
|
checks_fingerprint: z.string().min(1).optional(),
|
|
242
241
|
stale: z.boolean().optional(),
|
|
243
242
|
test_run_id: z.string().min(1).optional(),
|
|
@@ -279,16 +278,16 @@ export const StageRunSchema = z.object({
|
|
|
279
278
|
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
280
279
|
failure: z.string().nullable().optional(),
|
|
281
280
|
}).strict();
|
|
282
|
-
|
|
283
|
-
kind: z.literal("interf-
|
|
281
|
+
const BuildRunRecordSchema = z.object({
|
|
282
|
+
kind: z.literal("interf-build-run"),
|
|
284
283
|
version: z.literal(1),
|
|
285
284
|
run_id: RunIdSchema,
|
|
286
|
-
status:
|
|
285
|
+
status: BuildRunStatusSchema,
|
|
287
286
|
preparation: PreparationNameSchema,
|
|
288
|
-
|
|
287
|
+
build_plan: BuildPlanIdSchema,
|
|
289
288
|
backend: ExecutionBackendKindSchema,
|
|
290
289
|
source_path: z.string().min(1),
|
|
291
|
-
|
|
290
|
+
verifiable_context_path: z.string().min(1),
|
|
292
291
|
created_at: z.string().min(1),
|
|
293
292
|
started_at: z.string().nullable().optional(),
|
|
294
293
|
finished_at: z.string().nullable().optional(),
|
|
@@ -296,8 +295,9 @@ export const CompileRunSchema = z.object({
|
|
|
296
295
|
events: z.array(InterfRunEventSchema).default([]),
|
|
297
296
|
latest_proof: ProofRecordSchema.nullable().optional(),
|
|
298
297
|
readiness: ReadinessSchema.nullable().optional(),
|
|
299
|
-
// Per-Artifact status records when the
|
|
298
|
+
// Per-Artifact status records when the Build Plan declares an
|
|
300
299
|
// `artifacts[]` block. Computed
|
|
301
300
|
// once the run reaches a terminal status; `not_ready` while running.
|
|
302
301
|
artifacts: z.array(ArtifactStatusSchema).default([]),
|
|
303
302
|
}).strict();
|
|
303
|
+
export const BuildRunSchema = BuildRunRecordSchema;
|
|
@@ -5,16 +5,16 @@ export * as routes from "./routes.js";
|
|
|
5
5
|
export * as client from "./client.js";
|
|
6
6
|
export * as runtime from "./runtime.js";
|
|
7
7
|
export * as server from "./server.js";
|
|
8
|
-
export type {
|
|
9
|
-
export {
|
|
8
|
+
export type { BuildRunCreateRequest, BuildRunResource, BuildRunSummary, LocalServiceDiscovery, VerifiableContextMapping, PreparationRunLinkage, PreparationResource, PreparationWireShape, BuildPlanResource, LocalJobAgent, LocalJobEvent, LocalJobEventAppendRequest, LocalJobEventType, LocalJobRunCreateRequest, LocalJobRunResource, LocalJobStatus, LocalRunHandlerResult, LocalJobStep, LocalJobType, LocalServiceConfig, LocalServiceError, LocalServiceHealth, LocalExecutorStatus, ActionClientOrigin, ActionProposalApproval, ActionProposalApprovalRequest, ActionProposalCreateRequest, ActionProposalListResponse, ActionProposalPlan, ActionProposalPlanActionType, ActionProposalResource, ActionProposalStatus, ActionProposalType, BuildPlanChangeResult, PreparationChangeResult, PreparationSetupResult, ResetRequest, ResetResult, VerifiableContextResource, ReadinessResource, SourceFileResource, ReadinessCheckDraftCreateRequest, ReadinessCheckDraftResult, VerifyRunCreateRequest, VerifyRunResource, VerifyRunStatus, RunObservabilityListResponse, RunObservabilityResource, BuildPlanAuthoringCreateRequest, BuildPlanAuthoringResult, PreparationListResponse, BuildPlanListResponse, VerifiableContextListResponse, BuildRunListResponse, SourceFileListResponse, OpenPathRequest, OpenPathResponse, } from "./lib/schema.js";
|
|
9
|
+
export { BuildRunCreateRequestSchema, BuildRunResourceSchema, BuildRunSummarySchema, LocalServiceDiscoverySchema, VerifiableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, PreparationWireShapeSchema, BuildPlanResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, VerifiableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, BuildPlanAuthoringCreateRequestSchema, BuildPlanAuthoringResultSchema, PreparationListResponseSchema, BuildPlanListResponseSchema, VerifiableContextListResponseSchema, BuildRunListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
|
|
10
10
|
export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
|
|
11
|
-
export type { ServiceRegistry, ServiceRegistryEntry,
|
|
12
|
-
export { ServiceRegistrySchema, ServiceRegistryEntrySchema,
|
|
11
|
+
export type { ServiceRegistry, ServiceRegistryEntry, } from "./lib/schema.js";
|
|
12
|
+
export { ServiceRegistrySchema, ServiceRegistryEntrySchema, } from "./lib/schema.js";
|
|
13
13
|
export { readServiceRegistry, registerServiceLocally, unregisterService, writeServiceRegistry, serviceRegistryPath, } from "./service-registry.js";
|
|
14
14
|
export type { LocalServiceJobSubmission, LocalServiceJobSubmitted, LocalServiceConnection, } from "./client.js";
|
|
15
|
-
export type {
|
|
16
|
-
export { approveActionProposalInLocalService,
|
|
17
|
-
export type { LocalServiceActionPlanningContext,
|
|
15
|
+
export type { LocalBuildRunCancelResult, } from "./client.js";
|
|
16
|
+
export { approveActionProposalInLocalService, cancelLocalBuildRun, configuredLocalServiceUrl, resolveLocalServiceAuthToken, createActionProposalInLocalService, decideActionProposalInLocalService, findLocalService, getLocalJobRun, getLocalBuildRun, getLocalServiceHealth, getLocalVerifyRun, submitBuildRunToLocalService, submitReadinessCheckDraftToLocalService, submitResetToLocalService, submitVerifyRunToLocalService, submitBuildPlanAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalBuildRun, waitForLocalVerifyRun, } from "./client.js";
|
|
17
|
+
export type { LocalServiceActionPlanningContext, LocalServiceBuildRunContext, LocalServiceJobRunContext, LocalServiceRunHandlers, LocalServiceRuntimeOptions, LocalServiceVerifyRunContext, PreparationContext, } from "./runtime.js";
|
|
18
18
|
export { LocalServiceRuntime, createLocalServiceRuntime, } from "./runtime.js";
|
|
19
19
|
export type { StartedLocalService, StartLocalServiceOptions, } from "./server.js";
|
|
20
20
|
export { createLocalServiceServer, createLocalServiceAuthToken, startLocalService, } from "./server.js";
|
|
@@ -5,11 +5,11 @@ export * as routes from "./routes.js";
|
|
|
5
5
|
export * as client from "./client.js";
|
|
6
6
|
export * as runtime from "./runtime.js";
|
|
7
7
|
export * as server from "./server.js";
|
|
8
|
-
export {
|
|
8
|
+
export { BuildRunCreateRequestSchema, BuildRunResourceSchema, BuildRunSummarySchema, LocalServiceDiscoverySchema, VerifiableContextMappingSchema, PreparationRunLinkageSchema, PreparationResourceSchema, PreparationWireShapeSchema, BuildPlanResourceSchema, LocalJobAgentSchema, LocalJobEventAppendRequestSchema, LocalJobEventSchema, LocalJobEventTypeSchema, LocalJobRunCreateRequestSchema, LocalJobRunResourceSchema, LocalJobStatusSchema, LocalRunHandlerResultSchema, LocalJobStepSchema, LocalJobTypeSchema, LocalServiceConfigSchema, LocalServiceErrorSchema, LocalServiceHealthSchema, VerifiableContextResourceSchema, ReadinessResourceSchema, SourceFileResourceSchema, ReadinessCheckDraftCreateRequestSchema, ReadinessCheckDraftResultSchema, VerifyRunCreateRequestSchema, VerifyRunResourceSchema, VerifyRunStatusSchema, RunObservabilityResourceSchema, RunObservabilityListResponseSchema, LocalExecutorStatusSchema, ActionClientOriginSchema, ActionProposalApprovalRequestSchema, ActionProposalApprovalSchema, ActionProposalCreateRequestSchema, ActionProposalListResponseSchema, ActionProposalPlanSchema, ActionProposalPlanActionTypeSchema, ActionProposalResourceSchema, ActionProposalStatusSchema, ActionProposalTypeSchema, ResetRequestSchema, ResetResultSchema, BuildPlanAuthoringCreateRequestSchema, BuildPlanAuthoringResultSchema, PreparationListResponseSchema, BuildPlanListResponseSchema, VerifiableContextListResponseSchema, BuildRunListResponseSchema, SourceFileListResponseSchema, OpenPathRequestSchema, OpenPathResponseSchema, } from "./lib/schema.js";
|
|
9
9
|
export { LOCAL_SERVICE_DEFAULT_HOST, LOCAL_SERVICE_DEFAULT_PORT, LOCAL_SERVICE_ROUTES, buildLocalServiceUrl, } from "./routes.js";
|
|
10
|
-
export { ServiceRegistrySchema, ServiceRegistryEntrySchema,
|
|
10
|
+
export { ServiceRegistrySchema, ServiceRegistryEntrySchema, } from "./lib/schema.js";
|
|
11
11
|
export { readServiceRegistry, registerServiceLocally, unregisterService, writeServiceRegistry, serviceRegistryPath, } from "./service-registry.js";
|
|
12
|
-
export { approveActionProposalInLocalService,
|
|
12
|
+
export { approveActionProposalInLocalService, cancelLocalBuildRun, configuredLocalServiceUrl, resolveLocalServiceAuthToken, createActionProposalInLocalService, decideActionProposalInLocalService, findLocalService, getLocalJobRun, getLocalBuildRun, getLocalServiceHealth, getLocalVerifyRun, submitBuildRunToLocalService, submitReadinessCheckDraftToLocalService, submitResetToLocalService, submitVerifyRunToLocalService, submitBuildPlanAuthoringRunToLocalService, waitForLocalJobRun, waitForLocalBuildRun, waitForLocalVerifyRun, } from "./client.js";
|
|
13
13
|
export { LocalServiceRuntime, createLocalServiceRuntime, } from "./runtime.js";
|
|
14
14
|
export { createLocalServiceServer, createLocalServiceAuthToken, startLocalService, } from "./server.js";
|
|
15
15
|
export { createNativeLocalServiceRunHandlers, } from "./native-run-handlers.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Interf Home path helpers used by the local service.
|
|
3
3
|
*
|
|
4
|
-
* The instance is
|
|
4
|
+
* The instance is the opaque owner of its preparation state. Storage lives
|
|
5
5
|
* under `~/.interf/`. The CLI never opens these files directly — it asks the
|
|
6
6
|
* API where things are and reads from the locator the API returns.
|
|
7
7
|
*
|
|
8
|
-
* Current preparation config and
|
|
8
|
+
* Current preparation config and verifiable-context paths live in
|
|
9
9
|
* `contracts/lib/preparation-paths.ts` and are bridged by
|
|
10
|
-
* `preparation-store.ts` for the existing
|
|
11
|
-
* `config.json` / `
|
|
10
|
+
* `preparation-store.ts` for the existing Build runtime. Keep the old
|
|
11
|
+
* `config.json` / `verifiable-context` constants below as a migration boundary
|
|
12
12
|
* only; do not cite them as current user-visible layout.
|
|
13
13
|
*
|
|
14
14
|
* Layout:
|
|
15
15
|
* ~/.interf/
|
|
16
16
|
* connection.json ← single CLI connection record
|
|
17
17
|
* services.json ← internal stop-lookup registry
|
|
18
|
-
*
|
|
18
|
+
* build-plans/<id>/ ← user-installed Build Plans (cross-preparation)
|
|
19
19
|
* preparations/<prep-id>/ ← per-preparation state owned by the engine
|
|
20
20
|
* interf.json ← current preparation config bridge
|
|
21
|
-
* <prep-id>/ ← current
|
|
22
|
-
* .interf/ ← per-preparation runtime/
|
|
21
|
+
* <prep-id>/ ← current verifiable context output
|
|
22
|
+
* .interf/ ← per-preparation runtime/build-plan/tests state
|
|
23
23
|
* runs/ ← persisted run records
|
|
24
24
|
* jobs/ ← service job runs
|
|
25
25
|
* proposals/ ← chat/wizard action proposals
|
|
@@ -31,8 +31,8 @@ export type InterfHomeRoot = string & {
|
|
|
31
31
|
export type PreparationDataDir = string & {
|
|
32
32
|
readonly __brand: "PreparationDataDir";
|
|
33
33
|
};
|
|
34
|
-
export type
|
|
35
|
-
readonly __brand: "
|
|
34
|
+
export type VerifiableContextPath = string & {
|
|
35
|
+
readonly __brand: "VerifiableContextPath";
|
|
36
36
|
};
|
|
37
37
|
export type SourceFolderPath = string & {
|
|
38
38
|
readonly __brand: "SourceFolderPath";
|
|
@@ -40,22 +40,22 @@ export type SourceFolderPath = string & {
|
|
|
40
40
|
export declare const INTERF_USER_HOME_ENV = "INTERF_USER_HOME";
|
|
41
41
|
export declare const INTERF_HOME_DIR = ".interf";
|
|
42
42
|
export declare const PREPARATIONS_DIR = "preparations";
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const BUILD_PLANS_DIR = "build-plans";
|
|
44
44
|
export declare const SERVICE_REGISTRY_FILENAME = "services.json";
|
|
45
45
|
export declare const CONNECTION_CONFIG_FILENAME = "connection.json";
|
|
46
46
|
export declare const PREPARATION_CONFIG_FILENAME = "config.json";
|
|
47
|
-
export declare const
|
|
47
|
+
export declare const PREPARATION_VERIFIABLE_CONTEXT_DIR = "verifiable-context";
|
|
48
48
|
export declare const PREPARATION_RUNS_DIR = "runs";
|
|
49
49
|
export declare const PREPARATION_JOBS_DIR = "jobs";
|
|
50
50
|
export declare const PREPARATION_PROPOSALS_DIR = "proposals";
|
|
51
51
|
export declare const PREPARATION_TESTS_DIR = "tests";
|
|
52
|
-
export declare const
|
|
53
|
-
export declare const
|
|
54
|
-
export declare const
|
|
55
|
-
export declare const
|
|
56
|
-
export declare const
|
|
52
|
+
export declare const PREPARATION_BUILD_PLAN_DIR = "build-plan";
|
|
53
|
+
export declare const VERIFIABLE_CONTEXT_STATE_DIR = ".interf";
|
|
54
|
+
export declare const VERIFIABLE_CONTEXT_RUNTIME_DIR = "runtime";
|
|
55
|
+
export declare const VERIFIABLE_CONTEXT_BUILD_PLAN_DIR = "build-plan";
|
|
56
|
+
export declare const VERIFIABLE_CONTEXT_TESTS_DIR = "tests";
|
|
57
57
|
export declare function asPreparationDataDir(path: string): PreparationDataDir;
|
|
58
|
-
export declare function
|
|
58
|
+
export declare function asVerifiableContextPath(path: string): VerifiableContextPath;
|
|
59
59
|
export declare function asSourceFolderPath(path: string): SourceFolderPath;
|
|
60
60
|
/** `~/.interf/` — overridable via INTERF_USER_HOME for tests. */
|
|
61
61
|
export declare function interfHomeRoot(): InterfHomeRoot;
|
|
@@ -63,19 +63,19 @@ export declare function interfHomeRoot(): InterfHomeRoot;
|
|
|
63
63
|
export declare function connectionConfigPath(): string;
|
|
64
64
|
/** `~/.interf/services.json` — internal `interf web stop` lookup registry. */
|
|
65
65
|
export declare function serviceRegistryPath(): string;
|
|
66
|
-
/** `~/.interf/
|
|
67
|
-
export declare function
|
|
68
|
-
/** `~/.interf/
|
|
69
|
-
export declare function
|
|
66
|
+
/** `~/.interf/build-plans/` — user-installed Build Plans (cross-preparation). */
|
|
67
|
+
export declare function userBuildPlansRoot(): string;
|
|
68
|
+
/** `~/.interf/build-plans/<id>/` — a specific user-library Build Plan package. */
|
|
69
|
+
export declare function userBuildPlanPackagePath(buildPlanId: string): string;
|
|
70
70
|
/** `~/.interf/preparations/` — root for all preparation state. */
|
|
71
71
|
export declare function preparationsRoot(): string;
|
|
72
72
|
/** `~/.interf/preparations/<prep-id>/` — one preparation's state dir. */
|
|
73
73
|
export declare function preparationDataDir(prepId: string): PreparationDataDir;
|
|
74
74
|
/** Legacy planned path: `<prep-data>/config.json`. Current runtime uses `interf.json`. */
|
|
75
75
|
export declare function preparationConfigPath(prepId: string): string;
|
|
76
|
-
/** Legacy planned path: `<prep-data>/
|
|
77
|
-
export declare function
|
|
78
|
-
/** `<prep-data>/runs/` —
|
|
76
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/`. Current runtime uses `<prep-data>/<prep-id>/`. */
|
|
77
|
+
export declare function preparationVerifiableContextDir(prepId: string): VerifiableContextPath;
|
|
78
|
+
/** `<prep-data>/runs/` — build/test run records. */
|
|
79
79
|
export declare function preparationRunsRoot(prepId: string): string;
|
|
80
80
|
/** `<prep-data>/jobs/` — service job runs (drafts, improvements, etc). */
|
|
81
81
|
export declare function preparationJobsRoot(prepId: string): string;
|
|
@@ -83,24 +83,24 @@ export declare function preparationJobsRoot(prepId: string): string;
|
|
|
83
83
|
export declare function preparationProposalsRoot(prepId: string): string;
|
|
84
84
|
/** `<prep-data>/tests/` — saved readiness check specs. */
|
|
85
85
|
export declare function preparationTestsRoot(prepId: string): string;
|
|
86
|
-
/** `<prep-data>/
|
|
87
|
-
export declare function
|
|
88
|
-
/** `<
|
|
89
|
-
export declare function
|
|
90
|
-
/** `<
|
|
91
|
-
export declare function
|
|
92
|
-
/** `<
|
|
93
|
-
export declare function
|
|
94
|
-
/** `<
|
|
95
|
-
export declare function
|
|
96
|
-
export type PreparationTestTargetLabel = "source-files" | "
|
|
97
|
-
/** Legacy planned path: `<prep-data>/
|
|
86
|
+
/** `<prep-data>/build-plan/` — preparation-draft Build Plan package (if any). */
|
|
87
|
+
export declare function preparationBuildPlanDraftPath(prepId: string): string;
|
|
88
|
+
/** `<verifiable-context>/.interf/`. */
|
|
89
|
+
export declare function verifiableContextStateRoot(verifiableContext: VerifiableContextPath): string;
|
|
90
|
+
/** `<verifiable-context>/.interf/build-plan/`. */
|
|
91
|
+
export declare function verifiableContextBuildPlanPath(verifiableContext: VerifiableContextPath): string;
|
|
92
|
+
/** `<verifiable-context>/.interf/runtime/`. */
|
|
93
|
+
export declare function verifiableContextRuntimeRoot(verifiableContext: VerifiableContextPath): string;
|
|
94
|
+
/** `<verifiable-context>/.interf/tests/`. */
|
|
95
|
+
export declare function verifiableContextTestsRoot(verifiableContext: VerifiableContextPath): string;
|
|
96
|
+
export type PreparationTestTargetLabel = "source-files" | "verifiable-context";
|
|
97
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/`. */
|
|
98
98
|
export declare function preparationTestRunsRoot(prepId: string, target: PreparationTestTargetLabel): string;
|
|
99
|
-
/** Legacy planned path: `<prep-data>/
|
|
99
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.json`. */
|
|
100
100
|
export declare function preparationLatestReadinessRunPath(prepId: string): string;
|
|
101
|
-
/** Legacy planned path: `<prep-data>/
|
|
101
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.md`. */
|
|
102
102
|
export declare function preparationLatestReadinessSummaryPath(prepId: string): string;
|
|
103
103
|
/** Normalize a free-form string into a stable kebab-cased id (≤80 chars). */
|
|
104
104
|
export declare function normalizePreparationTestRunId(input: string): string;
|
|
105
|
-
/** Legacy planned path: `<prep-data>/
|
|
105
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
|
|
106
106
|
export declare function preparationTestRunPath(prepId: string, target: PreparationTestTargetLabel, generatedAt: string, runId: string, runSuffix?: string | null): string;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Interf Home path helpers used by the local service.
|
|
3
3
|
*
|
|
4
|
-
* The instance is
|
|
4
|
+
* The instance is the opaque owner of its preparation state. Storage lives
|
|
5
5
|
* under `~/.interf/`. The CLI never opens these files directly — it asks the
|
|
6
6
|
* API where things are and reads from the locator the API returns.
|
|
7
7
|
*
|
|
8
|
-
* Current preparation config and
|
|
8
|
+
* Current preparation config and verifiable-context paths live in
|
|
9
9
|
* `contracts/lib/preparation-paths.ts` and are bridged by
|
|
10
|
-
* `preparation-store.ts` for the existing
|
|
11
|
-
* `config.json` / `
|
|
10
|
+
* `preparation-store.ts` for the existing Build runtime. Keep the old
|
|
11
|
+
* `config.json` / `verifiable-context` constants below as a migration boundary
|
|
12
12
|
* only; do not cite them as current user-visible layout.
|
|
13
13
|
*
|
|
14
14
|
* Layout:
|
|
15
15
|
* ~/.interf/
|
|
16
16
|
* connection.json ← single CLI connection record
|
|
17
17
|
* services.json ← internal stop-lookup registry
|
|
18
|
-
*
|
|
18
|
+
* build-plans/<id>/ ← user-installed Build Plans (cross-preparation)
|
|
19
19
|
* preparations/<prep-id>/ ← per-preparation state owned by the engine
|
|
20
20
|
* interf.json ← current preparation config bridge
|
|
21
|
-
* <prep-id>/ ← current
|
|
22
|
-
* .interf/ ← per-preparation runtime/
|
|
21
|
+
* <prep-id>/ ← current verifiable context output
|
|
22
|
+
* .interf/ ← per-preparation runtime/build-plan/tests state
|
|
23
23
|
* runs/ ← persisted run records
|
|
24
24
|
* jobs/ ← service job runs
|
|
25
25
|
* proposals/ ← chat/wizard action proposals
|
|
@@ -33,27 +33,27 @@ import { join } from "node:path";
|
|
|
33
33
|
export const INTERF_USER_HOME_ENV = "INTERF_USER_HOME";
|
|
34
34
|
export const INTERF_HOME_DIR = ".interf";
|
|
35
35
|
export const PREPARATIONS_DIR = "preparations";
|
|
36
|
-
export const
|
|
36
|
+
export const BUILD_PLANS_DIR = "build-plans";
|
|
37
37
|
export const SERVICE_REGISTRY_FILENAME = "services.json";
|
|
38
38
|
export const CONNECTION_CONFIG_FILENAME = "connection.json";
|
|
39
39
|
export const PREPARATION_CONFIG_FILENAME = "config.json";
|
|
40
|
-
export const
|
|
40
|
+
export const PREPARATION_VERIFIABLE_CONTEXT_DIR = "verifiable-context";
|
|
41
41
|
export const PREPARATION_RUNS_DIR = "runs";
|
|
42
42
|
export const PREPARATION_JOBS_DIR = "jobs";
|
|
43
43
|
export const PREPARATION_PROPOSALS_DIR = "proposals";
|
|
44
44
|
export const PREPARATION_TESTS_DIR = "tests";
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
45
|
+
export const PREPARATION_BUILD_PLAN_DIR = "build-plan";
|
|
46
|
+
export const VERIFIABLE_CONTEXT_STATE_DIR = ".interf";
|
|
47
|
+
export const VERIFIABLE_CONTEXT_RUNTIME_DIR = "runtime";
|
|
48
|
+
export const VERIFIABLE_CONTEXT_BUILD_PLAN_DIR = "build-plan";
|
|
49
|
+
export const VERIFIABLE_CONTEXT_TESTS_DIR = "tests";
|
|
50
50
|
// ───────────────────────────────────────────────────────────────────────────
|
|
51
51
|
// Brand constructors
|
|
52
52
|
// ───────────────────────────────────────────────────────────────────────────
|
|
53
53
|
export function asPreparationDataDir(path) {
|
|
54
54
|
return path;
|
|
55
55
|
}
|
|
56
|
-
export function
|
|
56
|
+
export function asVerifiableContextPath(path) {
|
|
57
57
|
return path;
|
|
58
58
|
}
|
|
59
59
|
export function asSourceFolderPath(path) {
|
|
@@ -77,13 +77,13 @@ export function connectionConfigPath() {
|
|
|
77
77
|
export function serviceRegistryPath() {
|
|
78
78
|
return join(interfHomeRoot(), SERVICE_REGISTRY_FILENAME);
|
|
79
79
|
}
|
|
80
|
-
/** `~/.interf/
|
|
81
|
-
export function
|
|
82
|
-
return join(interfHomeRoot(),
|
|
80
|
+
/** `~/.interf/build-plans/` — user-installed Build Plans (cross-preparation). */
|
|
81
|
+
export function userBuildPlansRoot() {
|
|
82
|
+
return join(interfHomeRoot(), BUILD_PLANS_DIR);
|
|
83
83
|
}
|
|
84
|
-
/** `~/.interf/
|
|
85
|
-
export function
|
|
86
|
-
return join(
|
|
84
|
+
/** `~/.interf/build-plans/<id>/` — a specific user-library Build Plan package. */
|
|
85
|
+
export function userBuildPlanPackagePath(buildPlanId) {
|
|
86
|
+
return join(userBuildPlansRoot(), buildPlanId);
|
|
87
87
|
}
|
|
88
88
|
// ───────────────────────────────────────────────────────────────────────────
|
|
89
89
|
// Preparation data dirs
|
|
@@ -100,11 +100,11 @@ export function preparationDataDir(prepId) {
|
|
|
100
100
|
export function preparationConfigPath(prepId) {
|
|
101
101
|
return join(preparationDataDir(prepId), PREPARATION_CONFIG_FILENAME);
|
|
102
102
|
}
|
|
103
|
-
/** Legacy planned path: `<prep-data>/
|
|
104
|
-
export function
|
|
105
|
-
return
|
|
103
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/`. Current runtime uses `<prep-data>/<prep-id>/`. */
|
|
104
|
+
export function preparationVerifiableContextDir(prepId) {
|
|
105
|
+
return asVerifiableContextPath(join(preparationDataDir(prepId), PREPARATION_VERIFIABLE_CONTEXT_DIR));
|
|
106
106
|
}
|
|
107
|
-
/** `<prep-data>/runs/` —
|
|
107
|
+
/** `<prep-data>/runs/` — build/test run records. */
|
|
108
108
|
export function preparationRunsRoot(prepId) {
|
|
109
109
|
return join(preparationDataDir(prepId), PREPARATION_RUNS_DIR);
|
|
110
110
|
}
|
|
@@ -120,40 +120,40 @@ export function preparationProposalsRoot(prepId) {
|
|
|
120
120
|
export function preparationTestsRoot(prepId) {
|
|
121
121
|
return join(preparationDataDir(prepId), PREPARATION_TESTS_DIR);
|
|
122
122
|
}
|
|
123
|
-
/** `<prep-data>/
|
|
124
|
-
export function
|
|
125
|
-
return join(preparationDataDir(prepId),
|
|
123
|
+
/** `<prep-data>/build-plan/` — preparation-draft Build Plan package (if any). */
|
|
124
|
+
export function preparationBuildPlanDraftPath(prepId) {
|
|
125
|
+
return join(preparationDataDir(prepId), PREPARATION_BUILD_PLAN_DIR);
|
|
126
126
|
}
|
|
127
127
|
// ───────────────────────────────────────────────────────────────────────────
|
|
128
|
-
//
|
|
128
|
+
// Verifiable-context state (per-preparation, lives under preparation data dir)
|
|
129
129
|
// ───────────────────────────────────────────────────────────────────────────
|
|
130
|
-
/** `<
|
|
131
|
-
export function
|
|
132
|
-
return join(
|
|
130
|
+
/** `<verifiable-context>/.interf/`. */
|
|
131
|
+
export function verifiableContextStateRoot(verifiableContext) {
|
|
132
|
+
return join(verifiableContext, VERIFIABLE_CONTEXT_STATE_DIR);
|
|
133
133
|
}
|
|
134
|
-
/** `<
|
|
135
|
-
export function
|
|
136
|
-
return join(
|
|
134
|
+
/** `<verifiable-context>/.interf/build-plan/`. */
|
|
135
|
+
export function verifiableContextBuildPlanPath(verifiableContext) {
|
|
136
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_BUILD_PLAN_DIR);
|
|
137
137
|
}
|
|
138
|
-
/** `<
|
|
139
|
-
export function
|
|
140
|
-
return join(
|
|
138
|
+
/** `<verifiable-context>/.interf/runtime/`. */
|
|
139
|
+
export function verifiableContextRuntimeRoot(verifiableContext) {
|
|
140
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_RUNTIME_DIR);
|
|
141
141
|
}
|
|
142
|
-
/** `<
|
|
143
|
-
export function
|
|
144
|
-
return join(
|
|
142
|
+
/** `<verifiable-context>/.interf/tests/`. */
|
|
143
|
+
export function verifiableContextTestsRoot(verifiableContext) {
|
|
144
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_TESTS_DIR);
|
|
145
145
|
}
|
|
146
|
-
/** Legacy planned path: `<prep-data>/
|
|
146
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/`. */
|
|
147
147
|
export function preparationTestRunsRoot(prepId, target) {
|
|
148
|
-
return join(
|
|
148
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), target, "runs");
|
|
149
149
|
}
|
|
150
|
-
/** Legacy planned path: `<prep-data>/
|
|
150
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.json`. */
|
|
151
151
|
export function preparationLatestReadinessRunPath(prepId) {
|
|
152
|
-
return join(
|
|
152
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), "latest.json");
|
|
153
153
|
}
|
|
154
|
-
/** Legacy planned path: `<prep-data>/
|
|
154
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.md`. */
|
|
155
155
|
export function preparationLatestReadinessSummaryPath(prepId) {
|
|
156
|
-
return join(
|
|
156
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), "latest.md");
|
|
157
157
|
}
|
|
158
158
|
/** Normalize a free-form string into a stable kebab-cased id (≤80 chars). */
|
|
159
159
|
export function normalizePreparationTestRunId(input) {
|
|
@@ -164,7 +164,7 @@ export function normalizePreparationTestRunId(input) {
|
|
|
164
164
|
.replace(/^-+|-+$/g, "")
|
|
165
165
|
.slice(0, 80);
|
|
166
166
|
}
|
|
167
|
-
/** Legacy planned path: `<prep-data>/
|
|
167
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
|
|
168
168
|
export function preparationTestRunPath(prepId, target, generatedAt, runId, runSuffix) {
|
|
169
169
|
const suffix = runSuffix ? `-${normalizePreparationTestRunId(runSuffix)}` : "";
|
|
170
170
|
return join(preparationTestRunsRoot(prepId, target), `${generatedAt.replace(/[:.]/g, "-")}-${runId}${suffix}.json`);
|