@interf/compiler 0.18.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/build-plan.js +376 -0
- 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.d.ts +0 -34
- package/dist/cli/commands/mcp.js +261 -60
- package/dist/cli/commands/prep.js +67 -35
- package/dist/cli/commands/reset.d.ts +1 -1
- package/dist/cli/commands/reset.js +6 -6
- package/dist/cli/commands/runs.js +105 -33
- package/dist/cli/commands/status.js +4 -2
- package/dist/cli/commands/test.d.ts +10 -0
- package/dist/cli/commands/{verify.js → test.js} +19 -21
- package/dist/cli/commands/web.js +82 -8
- package/dist/cli/commands/wizard.js +63 -64
- package/dist/cli/index.d.ts +4 -4
- package/dist/cli/index.js +7 -7
- package/dist/interf-ui/404.html +1 -0
- package/dist/interf-ui/__next.__PAGE__.txt +10 -0
- package/dist/{compiler-ui → interf-ui}/__next._full.txt +12 -12
- package/dist/interf-ui/__next._head.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/__next._index.txt +4 -4
- package/dist/{compiler-ui → interf-ui}/__next._tree.txt +3 -3
- 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/{compiler-ui/_next/static/chunks/0_i-3_5l9t2qe.js → interf-ui/_next/static/chunks/0dn41fa_zvgsl.js} +1 -1
- 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/{compiler-ui/_next/static/chunks/08g7lvje.te.u.js → interf-ui/_next/static/chunks/0nv3am99vjzn4.js} +1 -1
- package/dist/{compiler-ui/_next/static/chunks/0n51hrfoufc7g.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/{compiler-ui/_next/static/chunks/08m7vf5asqlsm.js → interf-ui/_next/static/chunks/14dznb2qpt-ho.js} +5 -5
- package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +5 -0
- package/dist/{compiler-ui/_next/static/chunks/turbopack-10e~t1yzi4svj.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/{compiler-ui → interf-ui}/_not-found/__next._full.txt +9 -9
- package/dist/interf-ui/_not-found/__next._head.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/_not-found/__next._index.txt +4 -4
- 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 -2
- package/dist/interf-ui/_not-found.html +1 -0
- package/dist/{compiler-ui → interf-ui}/_not-found.txt +9 -9
- package/dist/interf-ui/index.html +1 -0
- package/dist/{compiler-ui → interf-ui}/index.txt +12 -12
- 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} +57 -88
- 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/build-plans/package/local-build-plans.js +472 -0
- 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 +38 -41
- package/dist/packages/contracts/lib/schema.js +44 -35
- package/dist/packages/engine/action-definitions.d.ts +228 -67
- package/dist/packages/engine/action-definitions.js +277 -273
- package/dist/packages/engine/action-planner.d.ts +2 -2
- package/dist/packages/engine/action-planner.js +8 -15
- 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 +33 -31
- package/dist/packages/engine/agents/lib/shells.js +254 -250
- 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/connection-config.js +1 -1
- 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 +100 -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 +45 -39
- package/dist/packages/engine/instance-paths.js +54 -48
- package/dist/packages/engine/lib/schema.d.ts +1568 -484
- package/dist/packages/engine/lib/schema.js +172 -161
- package/dist/packages/engine/native-run-handlers.d.ts +12 -12
- package/dist/packages/engine/native-run-handlers.js +138 -136
- package/dist/packages/engine/preparation-store.d.ts +31 -36
- package/dist/packages/engine/preparation-store.js +42 -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 +5 -0
- package/dist/packages/engine/requested-artifacts.js +36 -0
- 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 +103 -90
- 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 +15 -15
- package/dist/packages/engine/runtime-proposal-helpers.js +81 -85
- package/dist/packages/engine/runtime-resource-builders.d.ts +16 -11
- package/dist/packages/engine/runtime-resource-builders.js +32 -21
- package/dist/packages/engine/runtime.d.ts +53 -60
- package/dist/packages/engine/runtime.js +555 -453
- package/dist/packages/engine/server.d.ts +2 -2
- package/dist/packages/engine/server.js +226 -143
- 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 +42 -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 +36 -36
- 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 +205 -12
- package/dist/packages/project/lib/schema.js +59 -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 +62 -58
- package/dist/packages/project/source-folders.js +1 -1
- package/package.json +14 -17
- package/public-repo/CONTRIBUTING.md +47 -0
- package/public-repo/README.md +327 -0
- package/public-repo/SECURITY.md +67 -0
- package/public-repo/build-plans/interf-default/README.md +33 -0
- package/public-repo/build-plans/interf-default/build/stages/shape/SKILL.md +27 -0
- package/{builtin-methods/interf-default/compile → public-repo/build-plans/interf-default/build}/stages/structure/SKILL.md +2 -2
- package/{builtin-methods/interf-default/compile → public-repo/build-plans/interf-default/build}/stages/summarize/SKILL.md +1 -1
- package/{builtin-methods/interf-default/method.json → public-repo/build-plans/interf-default/build-plan.json} +16 -16
- package/{builtin-methods/interf-default/method.schema.json → public-repo/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/build-plans/interf-default/use/query/SKILL.md +23 -0
- package/public-repo/plugins/README.md +9 -0
- package/public-repo/plugins/interf/.claude-plugin/plugin.json +21 -0
- package/public-repo/plugins/interf/.mcp.json +12 -0
- package/public-repo/plugins/interf/README.md +32 -0
- package/public-repo/plugins/interf/skills/interf/SKILL.md +376 -0
- package/public-repo/skills/interf/SKILL.md +376 -0
- package/README.md +0 -311
- package/agent-skills/interf-actions/SKILL.md +0 -185
- package/agent-skills/interf-actions/references/cli.md +0 -243
- package/builtin-methods/interf-default/README.md +0 -29
- package/builtin-methods/interf-default/compile/stages/shape/SKILL.md +0 -31
- package/builtin-methods/interf-default/improve/SKILL.md +0 -18
- package/builtin-methods/interf-default/use/query/SKILL.md +0 -28
- package/dist/cli/commands/method.d.ts +0 -2
- package/dist/cli/commands/method.js +0 -113
- package/dist/cli/commands/verify.d.ts +0 -10
- package/dist/compiler-ui/404.html +0 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +0 -10
- package/dist/compiler-ui/__next._head.txt +0 -5
- package/dist/compiler-ui/_next/static/chunks/06yhdspx~ca5-.js +0 -5
- package/dist/compiler-ui/_next/static/chunks/06z~l3kwb891e.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0_c_tvh-cukjz.css +0 -3
- package/dist/compiler-ui/_next/static/chunks/0b-ywny_j0g~0.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0b52v41o1gixx.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0f_geuwdesg_c.js +0 -114
- package/dist/compiler-ui/_next/static/chunks/0gpzgsv0w.q~m.js +0 -31
- package/dist/compiler-ui/_next/static/chunks/0ilwfezfvu6~-.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0xxmf45eskdt~.css +0 -1
- package/dist/compiler-ui/_next/static/chunks/14wtz~vq25~qq.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/turbopack-0.uq1k8c0j4s..js +0 -1
- package/dist/compiler-ui/_not-found/__next._head.txt +0 -5
- 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/index.html +0 -1
- 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 -34
- 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 -73
- package/dist/packages/methods/package/local-methods.js +0 -457
- 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/dist/{compiler-ui/_next/static/6qyE1u9m_oBUkvAhhoCmO → interf-ui/_next/static/_qJKnA0dammQ306MG_zMq}/_buildManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/6qyE1u9m_oBUkvAhhoCmO → interf-ui/_next/static/_qJKnA0dammQ306MG_zMq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/6qyE1u9m_oBUkvAhhoCmO → 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
- /package/{LICENSE.md → public-repo/LICENSE.md} +0 -0
- /package/{TRADEMARKS.md → public-repo/TRADEMARKS.md} +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,19 +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 verifiable-context paths live in
|
|
9
|
+
* `contracts/lib/preparation-paths.ts` and are bridged by
|
|
10
|
+
* `preparation-store.ts` for the existing Build runtime. Keep the old
|
|
11
|
+
* `config.json` / `verifiable-context` constants below as a migration boundary
|
|
12
|
+
* only; do not cite them as current user-visible layout.
|
|
13
|
+
*
|
|
8
14
|
* Layout:
|
|
9
15
|
* ~/.interf/
|
|
10
16
|
* connection.json ← single CLI connection record
|
|
11
17
|
* services.json ← internal stop-lookup registry
|
|
12
|
-
*
|
|
18
|
+
* build-plans/<id>/ ← user-installed Build Plans (cross-preparation)
|
|
13
19
|
* preparations/<prep-id>/ ← per-preparation state owned by the engine
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* .interf/ ← per-preparation runtime/
|
|
20
|
+
* interf.json ← current preparation config bridge
|
|
21
|
+
* <prep-id>/ ← current verifiable context output
|
|
22
|
+
* .interf/ ← per-preparation runtime/build-plan/tests state
|
|
17
23
|
* runs/ ← persisted run records
|
|
18
24
|
* jobs/ ← service job runs
|
|
19
25
|
* proposals/ ← chat/wizard action proposals
|
|
@@ -25,8 +31,8 @@ export type InterfHomeRoot = string & {
|
|
|
25
31
|
export type PreparationDataDir = string & {
|
|
26
32
|
readonly __brand: "PreparationDataDir";
|
|
27
33
|
};
|
|
28
|
-
export type
|
|
29
|
-
readonly __brand: "
|
|
34
|
+
export type VerifiableContextPath = string & {
|
|
35
|
+
readonly __brand: "VerifiableContextPath";
|
|
30
36
|
};
|
|
31
37
|
export type SourceFolderPath = string & {
|
|
32
38
|
readonly __brand: "SourceFolderPath";
|
|
@@ -34,22 +40,22 @@ export type SourceFolderPath = string & {
|
|
|
34
40
|
export declare const INTERF_USER_HOME_ENV = "INTERF_USER_HOME";
|
|
35
41
|
export declare const INTERF_HOME_DIR = ".interf";
|
|
36
42
|
export declare const PREPARATIONS_DIR = "preparations";
|
|
37
|
-
export declare const
|
|
43
|
+
export declare const BUILD_PLANS_DIR = "build-plans";
|
|
38
44
|
export declare const SERVICE_REGISTRY_FILENAME = "services.json";
|
|
39
45
|
export declare const CONNECTION_CONFIG_FILENAME = "connection.json";
|
|
40
46
|
export declare const PREPARATION_CONFIG_FILENAME = "config.json";
|
|
41
|
-
export declare const
|
|
47
|
+
export declare const PREPARATION_VERIFIABLE_CONTEXT_DIR = "verifiable-context";
|
|
42
48
|
export declare const PREPARATION_RUNS_DIR = "runs";
|
|
43
49
|
export declare const PREPARATION_JOBS_DIR = "jobs";
|
|
44
50
|
export declare const PREPARATION_PROPOSALS_DIR = "proposals";
|
|
45
51
|
export declare const PREPARATION_TESTS_DIR = "tests";
|
|
46
|
-
export declare const
|
|
47
|
-
export declare const
|
|
48
|
-
export declare const
|
|
49
|
-
export declare const
|
|
50
|
-
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";
|
|
51
57
|
export declare function asPreparationDataDir(path: string): PreparationDataDir;
|
|
52
|
-
export declare function
|
|
58
|
+
export declare function asVerifiableContextPath(path: string): VerifiableContextPath;
|
|
53
59
|
export declare function asSourceFolderPath(path: string): SourceFolderPath;
|
|
54
60
|
/** `~/.interf/` — overridable via INTERF_USER_HOME for tests. */
|
|
55
61
|
export declare function interfHomeRoot(): InterfHomeRoot;
|
|
@@ -57,19 +63,19 @@ export declare function interfHomeRoot(): InterfHomeRoot;
|
|
|
57
63
|
export declare function connectionConfigPath(): string;
|
|
58
64
|
/** `~/.interf/services.json` — internal `interf web stop` lookup registry. */
|
|
59
65
|
export declare function serviceRegistryPath(): string;
|
|
60
|
-
/** `~/.interf/
|
|
61
|
-
export declare function
|
|
62
|
-
/** `~/.interf/
|
|
63
|
-
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;
|
|
64
70
|
/** `~/.interf/preparations/` — root for all preparation state. */
|
|
65
71
|
export declare function preparationsRoot(): string;
|
|
66
72
|
/** `~/.interf/preparations/<prep-id>/` — one preparation's state dir. */
|
|
67
73
|
export declare function preparationDataDir(prepId: string): PreparationDataDir;
|
|
68
|
-
/** `<prep-data>/config.json
|
|
74
|
+
/** Legacy planned path: `<prep-data>/config.json`. Current runtime uses `interf.json`. */
|
|
69
75
|
export declare function preparationConfigPath(prepId: string): string;
|
|
70
|
-
/** `<prep-data>/
|
|
71
|
-
export declare function
|
|
72
|
-
/** `<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. */
|
|
73
79
|
export declare function preparationRunsRoot(prepId: string): string;
|
|
74
80
|
/** `<prep-data>/jobs/` — service job runs (drafts, improvements, etc). */
|
|
75
81
|
export declare function preparationJobsRoot(prepId: string): string;
|
|
@@ -77,24 +83,24 @@ export declare function preparationJobsRoot(prepId: string): string;
|
|
|
77
83
|
export declare function preparationProposalsRoot(prepId: string): string;
|
|
78
84
|
/** `<prep-data>/tests/` — saved readiness check specs. */
|
|
79
85
|
export declare function preparationTestsRoot(prepId: string): string;
|
|
80
|
-
/** `<prep-data>/
|
|
81
|
-
export declare function
|
|
82
|
-
/** `<
|
|
83
|
-
export declare function
|
|
84
|
-
/** `<
|
|
85
|
-
export declare function
|
|
86
|
-
/** `<
|
|
87
|
-
export declare function
|
|
88
|
-
/** `<
|
|
89
|
-
export declare function
|
|
90
|
-
export type PreparationTestTargetLabel = "source-files" | "
|
|
91
|
-
/** `<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/`. */
|
|
92
98
|
export declare function preparationTestRunsRoot(prepId: string, target: PreparationTestTargetLabel): string;
|
|
93
|
-
/** `<prep-data>/
|
|
99
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.json`. */
|
|
94
100
|
export declare function preparationLatestReadinessRunPath(prepId: string): string;
|
|
95
|
-
/** `<prep-data>/
|
|
101
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.md`. */
|
|
96
102
|
export declare function preparationLatestReadinessSummaryPath(prepId: string): string;
|
|
97
103
|
/** Normalize a free-form string into a stable kebab-cased id (≤80 chars). */
|
|
98
104
|
export declare function normalizePreparationTestRunId(input: string): string;
|
|
99
|
-
/** `<prep-data>/
|
|
105
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
|
|
100
106
|
export declare function preparationTestRunPath(prepId: string, target: PreparationTestTargetLabel, generatedAt: string, runId: string, runSuffix?: string | null): string;
|
|
@@ -1,19 +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 verifiable-context paths live in
|
|
9
|
+
* `contracts/lib/preparation-paths.ts` and are bridged by
|
|
10
|
+
* `preparation-store.ts` for the existing Build runtime. Keep the old
|
|
11
|
+
* `config.json` / `verifiable-context` constants below as a migration boundary
|
|
12
|
+
* only; do not cite them as current user-visible layout.
|
|
13
|
+
*
|
|
8
14
|
* Layout:
|
|
9
15
|
* ~/.interf/
|
|
10
16
|
* connection.json ← single CLI connection record
|
|
11
17
|
* services.json ← internal stop-lookup registry
|
|
12
|
-
*
|
|
18
|
+
* build-plans/<id>/ ← user-installed Build Plans (cross-preparation)
|
|
13
19
|
* preparations/<prep-id>/ ← per-preparation state owned by the engine
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* .interf/ ← per-preparation runtime/
|
|
20
|
+
* interf.json ← current preparation config bridge
|
|
21
|
+
* <prep-id>/ ← current verifiable context output
|
|
22
|
+
* .interf/ ← per-preparation runtime/build-plan/tests state
|
|
17
23
|
* runs/ ← persisted run records
|
|
18
24
|
* jobs/ ← service job runs
|
|
19
25
|
* proposals/ ← chat/wizard action proposals
|
|
@@ -27,27 +33,27 @@ import { join } from "node:path";
|
|
|
27
33
|
export const INTERF_USER_HOME_ENV = "INTERF_USER_HOME";
|
|
28
34
|
export const INTERF_HOME_DIR = ".interf";
|
|
29
35
|
export const PREPARATIONS_DIR = "preparations";
|
|
30
|
-
export const
|
|
36
|
+
export const BUILD_PLANS_DIR = "build-plans";
|
|
31
37
|
export const SERVICE_REGISTRY_FILENAME = "services.json";
|
|
32
38
|
export const CONNECTION_CONFIG_FILENAME = "connection.json";
|
|
33
39
|
export const PREPARATION_CONFIG_FILENAME = "config.json";
|
|
34
|
-
export const
|
|
40
|
+
export const PREPARATION_VERIFIABLE_CONTEXT_DIR = "verifiable-context";
|
|
35
41
|
export const PREPARATION_RUNS_DIR = "runs";
|
|
36
42
|
export const PREPARATION_JOBS_DIR = "jobs";
|
|
37
43
|
export const PREPARATION_PROPOSALS_DIR = "proposals";
|
|
38
44
|
export const PREPARATION_TESTS_DIR = "tests";
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
41
|
-
export const
|
|
42
|
-
export const
|
|
43
|
-
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";
|
|
44
50
|
// ───────────────────────────────────────────────────────────────────────────
|
|
45
51
|
// Brand constructors
|
|
46
52
|
// ───────────────────────────────────────────────────────────────────────────
|
|
47
53
|
export function asPreparationDataDir(path) {
|
|
48
54
|
return path;
|
|
49
55
|
}
|
|
50
|
-
export function
|
|
56
|
+
export function asVerifiableContextPath(path) {
|
|
51
57
|
return path;
|
|
52
58
|
}
|
|
53
59
|
export function asSourceFolderPath(path) {
|
|
@@ -71,13 +77,13 @@ export function connectionConfigPath() {
|
|
|
71
77
|
export function serviceRegistryPath() {
|
|
72
78
|
return join(interfHomeRoot(), SERVICE_REGISTRY_FILENAME);
|
|
73
79
|
}
|
|
74
|
-
/** `~/.interf/
|
|
75
|
-
export function
|
|
76
|
-
return join(interfHomeRoot(),
|
|
80
|
+
/** `~/.interf/build-plans/` — user-installed Build Plans (cross-preparation). */
|
|
81
|
+
export function userBuildPlansRoot() {
|
|
82
|
+
return join(interfHomeRoot(), BUILD_PLANS_DIR);
|
|
77
83
|
}
|
|
78
|
-
/** `~/.interf/
|
|
79
|
-
export function
|
|
80
|
-
return join(
|
|
84
|
+
/** `~/.interf/build-plans/<id>/` — a specific user-library Build Plan package. */
|
|
85
|
+
export function userBuildPlanPackagePath(buildPlanId) {
|
|
86
|
+
return join(userBuildPlansRoot(), buildPlanId);
|
|
81
87
|
}
|
|
82
88
|
// ───────────────────────────────────────────────────────────────────────────
|
|
83
89
|
// Preparation data dirs
|
|
@@ -90,15 +96,15 @@ export function preparationsRoot() {
|
|
|
90
96
|
export function preparationDataDir(prepId) {
|
|
91
97
|
return asPreparationDataDir(join(preparationsRoot(), prepId));
|
|
92
98
|
}
|
|
93
|
-
/** `<prep-data>/config.json
|
|
99
|
+
/** Legacy planned path: `<prep-data>/config.json`. Current runtime uses `interf.json`. */
|
|
94
100
|
export function preparationConfigPath(prepId) {
|
|
95
101
|
return join(preparationDataDir(prepId), PREPARATION_CONFIG_FILENAME);
|
|
96
102
|
}
|
|
97
|
-
/** `<prep-data>/
|
|
98
|
-
export function
|
|
99
|
-
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));
|
|
100
106
|
}
|
|
101
|
-
/** `<prep-data>/runs/` —
|
|
107
|
+
/** `<prep-data>/runs/` — build/test run records. */
|
|
102
108
|
export function preparationRunsRoot(prepId) {
|
|
103
109
|
return join(preparationDataDir(prepId), PREPARATION_RUNS_DIR);
|
|
104
110
|
}
|
|
@@ -114,40 +120,40 @@ export function preparationProposalsRoot(prepId) {
|
|
|
114
120
|
export function preparationTestsRoot(prepId) {
|
|
115
121
|
return join(preparationDataDir(prepId), PREPARATION_TESTS_DIR);
|
|
116
122
|
}
|
|
117
|
-
/** `<prep-data>/
|
|
118
|
-
export function
|
|
119
|
-
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);
|
|
120
126
|
}
|
|
121
127
|
// ───────────────────────────────────────────────────────────────────────────
|
|
122
|
-
//
|
|
128
|
+
// Verifiable-context state (per-preparation, lives under preparation data dir)
|
|
123
129
|
// ───────────────────────────────────────────────────────────────────────────
|
|
124
|
-
/** `<
|
|
125
|
-
export function
|
|
126
|
-
return join(
|
|
130
|
+
/** `<verifiable-context>/.interf/`. */
|
|
131
|
+
export function verifiableContextStateRoot(verifiableContext) {
|
|
132
|
+
return join(verifiableContext, VERIFIABLE_CONTEXT_STATE_DIR);
|
|
127
133
|
}
|
|
128
|
-
/** `<
|
|
129
|
-
export function
|
|
130
|
-
return join(
|
|
134
|
+
/** `<verifiable-context>/.interf/build-plan/`. */
|
|
135
|
+
export function verifiableContextBuildPlanPath(verifiableContext) {
|
|
136
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_BUILD_PLAN_DIR);
|
|
131
137
|
}
|
|
132
|
-
/** `<
|
|
133
|
-
export function
|
|
134
|
-
return join(
|
|
138
|
+
/** `<verifiable-context>/.interf/runtime/`. */
|
|
139
|
+
export function verifiableContextRuntimeRoot(verifiableContext) {
|
|
140
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_RUNTIME_DIR);
|
|
135
141
|
}
|
|
136
|
-
/** `<
|
|
137
|
-
export function
|
|
138
|
-
return join(
|
|
142
|
+
/** `<verifiable-context>/.interf/tests/`. */
|
|
143
|
+
export function verifiableContextTestsRoot(verifiableContext) {
|
|
144
|
+
return join(verifiableContextStateRoot(verifiableContext), VERIFIABLE_CONTEXT_TESTS_DIR);
|
|
139
145
|
}
|
|
140
|
-
/** `<prep-data>/
|
|
146
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/`. */
|
|
141
147
|
export function preparationTestRunsRoot(prepId, target) {
|
|
142
|
-
return join(
|
|
148
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), target, "runs");
|
|
143
149
|
}
|
|
144
|
-
/** `<prep-data>/
|
|
150
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.json`. */
|
|
145
151
|
export function preparationLatestReadinessRunPath(prepId) {
|
|
146
|
-
return join(
|
|
152
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), "latest.json");
|
|
147
153
|
}
|
|
148
|
-
/** `<prep-data>/
|
|
154
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/latest.md`. */
|
|
149
155
|
export function preparationLatestReadinessSummaryPath(prepId) {
|
|
150
|
-
return join(
|
|
156
|
+
return join(verifiableContextTestsRoot(preparationVerifiableContextDir(prepId)), "latest.md");
|
|
151
157
|
}
|
|
152
158
|
/** Normalize a free-form string into a stable kebab-cased id (≤80 chars). */
|
|
153
159
|
export function normalizePreparationTestRunId(input) {
|
|
@@ -158,7 +164,7 @@ export function normalizePreparationTestRunId(input) {
|
|
|
158
164
|
.replace(/^-+|-+$/g, "")
|
|
159
165
|
.slice(0, 80);
|
|
160
166
|
}
|
|
161
|
-
/** `<prep-data>/
|
|
167
|
+
/** Legacy planned path: `<prep-data>/verifiable-context/.interf/tests/<target>/runs/<timestamp>-<run-id>[-<suffix>].json`. */
|
|
162
168
|
export function preparationTestRunPath(prepId, target, generatedAt, runId, runSuffix) {
|
|
163
169
|
const suffix = runSuffix ? `-${normalizePreparationTestRunId(runSuffix)}` : "";
|
|
164
170
|
return join(preparationTestRunsRoot(prepId, target), `${generatedAt.replace(/[:.]/g, "-")}-${runId}${suffix}.json`);
|