@interf/compiler 0.21.0 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -63
- package/dist/cli/commands/build-plan.d.ts +2 -0
- package/dist/cli/commands/{method.js → build-plan.js} +89 -72
- package/dist/cli/commands/{compile.d.ts → build.d.ts} +2 -2
- package/dist/cli/commands/{compile.js → build.js} +18 -18
- package/dist/cli/commands/doctor.js +2 -2
- package/dist/cli/commands/mcp.js +48 -48
- package/dist/cli/commands/prep.js +16 -29
- package/dist/cli/commands/reset.d.ts +1 -1
- package/dist/cli/commands/reset.js +6 -6
- package/dist/cli/commands/runs.js +6 -28
- package/dist/cli/commands/status.js +1 -1
- package/dist/cli/commands/test.d.ts +1 -1
- package/dist/cli/commands/test.js +8 -8
- package/dist/cli/commands/web.js +3 -3
- package/dist/cli/commands/wizard.js +38 -38
- package/dist/cli/index.d.ts +3 -3
- package/dist/cli/index.js +5 -5
- package/dist/interf-ui/404.html +1 -0
- package/dist/interf-ui/__next.__PAGE__.txt +10 -0
- package/dist/interf-ui/__next._full.txt +20 -0
- package/dist/interf-ui/__next._head.txt +5 -0
- package/dist/interf-ui/__next._index.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/__next._tree.txt +3 -4
- package/dist/interf-ui/_next/static/chunks/0.tjb6f4golw..css +3 -0
- package/dist/interf-ui/_next/static/chunks/085-n_jv2ng_q.css +1 -0
- package/dist/interf-ui/_next/static/chunks/0dn41fa_zvgsl.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0g-ea0zj5d-0k.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0gwqglc4iz583.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0haldgm65ve6l.js +1 -0
- package/dist/interf-ui/_next/static/chunks/0nv3am99vjzn4.js +1 -0
- package/dist/{compiler-ui/_next/static/chunks/02f_.8.ebn556.js → interf-ui/_next/static/chunks/0s77gt_o4jwtx.js} +1 -1
- package/dist/interf-ui/_next/static/chunks/0~a36ujuzpaz..js +116 -0
- package/dist/interf-ui/_next/static/chunks/10jeodxe4nkgj.js +31 -0
- package/dist/interf-ui/_next/static/chunks/119h2rouych2t.js +1 -0
- package/dist/interf-ui/_next/static/chunks/13c8b~m8knjsf.js +1 -0
- package/dist/interf-ui/_next/static/chunks/14dznb2qpt-ho.js +91 -0
- package/dist/interf-ui/_next/static/chunks/15z_en80lrq-3.js +5 -0
- package/dist/{compiler-ui/_next/static/chunks/turbopack-0apv8vb-nczuy.js → interf-ui/_next/static/chunks/turbopack-0p.pvcjrtq-jh.js} +1 -1
- package/dist/interf-ui/_next/static/chunks/turbopack-0usj_75.8frlw.js +1 -0
- package/dist/interf-ui/_not-found/__next._full.txt +15 -0
- package/dist/interf-ui/_not-found/__next._head.txt +5 -0
- package/dist/interf-ui/_not-found/__next._index.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/dist/interf-ui/_not-found/__next._not-found.txt +5 -0
- package/dist/{compiler-ui → interf-ui}/_not-found/__next._tree.txt +2 -3
- package/dist/interf-ui/_not-found.html +1 -0
- package/dist/interf-ui/_not-found.txt +15 -0
- package/dist/interf-ui/index.html +1 -0
- package/dist/interf-ui/index.txt +20 -0
- package/dist/packages/build-plans/authoring/build-plan-authoring.d.ts +36 -0
- package/dist/packages/{methods/authoring/method-authoring.js → build-plans/authoring/build-plan-authoring.js} +52 -52
- package/dist/packages/build-plans/authoring/build-plan-edit-session.d.ts +18 -0
- package/dist/packages/{methods/authoring/method-edit-session.js → build-plans/authoring/build-plan-edit-session.js} +34 -34
- package/dist/packages/build-plans/authoring/build-plan-improvement.d.ts +23 -0
- package/dist/packages/build-plans/authoring/build-plan-improvement.js +216 -0
- package/dist/packages/build-plans/authoring/index.d.ts +4 -0
- package/dist/packages/build-plans/authoring/index.js +4 -0
- package/dist/packages/{methods/authoring/lib/method-edit-utils.d.ts → build-plans/authoring/lib/build-plan-edit-utils.d.ts} +3 -3
- package/dist/packages/build-plans/build-plan-resolution.d.ts +6 -0
- package/dist/packages/build-plans/build-plan-resolution.js +7 -0
- package/dist/packages/build-plans/index.d.ts +2 -0
- package/dist/packages/build-plans/index.js +2 -0
- package/dist/packages/build-plans/package/build-plan-definitions.d.ts +61 -0
- package/dist/packages/build-plans/package/build-plan-definitions.js +214 -0
- package/dist/packages/{methods/package/method-helpers.d.ts → build-plans/package/build-plan-helpers.d.ts} +7 -7
- package/dist/packages/{methods/package/method-helpers.js → build-plans/package/build-plan-helpers.js} +20 -20
- package/dist/packages/build-plans/package/build-plan-review-paths.d.ts +10 -0
- package/dist/packages/build-plans/package/build-plan-review-paths.js +31 -0
- package/dist/packages/{methods/package/method-stage-runner.d.ts → build-plans/package/build-plan-stage-runner.d.ts} +12 -12
- package/dist/packages/{methods/package/method-stage-runner.js → build-plans/package/build-plan-stage-runner.js} +10 -10
- package/dist/packages/build-plans/package/builtin-build-plan.d.ts +37 -0
- package/dist/packages/build-plans/package/builtin-build-plan.js +91 -0
- package/dist/packages/{methods → build-plans}/package/context-interface.d.ts +11 -11
- package/dist/packages/{methods → build-plans}/package/context-interface.js +23 -23
- package/dist/packages/build-plans/package/interf-build-plan-package.d.ts +31 -0
- package/dist/packages/build-plans/package/interf-build-plan-package.js +466 -0
- package/dist/packages/{methods → build-plans}/package/lib/package-root.js +1 -1
- package/dist/packages/build-plans/package/local-build-plans.d.ts +74 -0
- package/dist/packages/{methods/package/local-methods.js → build-plans/package/local-build-plans.js} +152 -152
- package/dist/packages/build-plans/package/user-build-plans.d.ts +17 -0
- package/dist/packages/build-plans/package/user-build-plans.js +77 -0
- package/dist/packages/contracts/index.d.ts +1 -1
- package/dist/packages/contracts/lib/preparation-paths.d.ts +37 -37
- package/dist/packages/contracts/lib/preparation-paths.js +43 -43
- package/dist/packages/contracts/lib/schema.d.ts +34 -41
- package/dist/packages/contracts/lib/schema.js +42 -34
- package/dist/packages/engine/action-definitions.d.ts +60 -60
- package/dist/packages/engine/action-definitions.js +198 -197
- package/dist/packages/engine/action-planner.d.ts +2 -2
- package/dist/packages/engine/action-planner.js +5 -5
- package/dist/packages/engine/action-values.d.ts +1 -1
- package/dist/packages/engine/action-values.js +1 -1
- package/dist/packages/engine/agents/index.d.ts +2 -2
- package/dist/packages/engine/agents/index.js +1 -1
- package/dist/packages/engine/agents/lib/args.d.ts +2 -2
- package/dist/packages/engine/agents/lib/args.js +1 -1
- package/dist/packages/engine/agents/lib/constants.js +1 -1
- package/dist/packages/engine/agents/lib/execution-profile.d.ts +5 -5
- package/dist/packages/engine/agents/lib/execution-profile.js +3 -3
- package/dist/packages/engine/agents/lib/executors.d.ts +11 -11
- package/dist/packages/engine/agents/lib/render.js +4 -4
- package/dist/packages/engine/agents/lib/shells.d.ts +30 -30
- package/dist/packages/engine/agents/lib/shells.js +248 -248
- package/dist/packages/engine/agents/lib/types.d.ts +2 -2
- package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.d.ts +3 -0
- package/dist/packages/engine/agents/lib/verifiable-context-bootstrap.js +19 -0
- package/dist/packages/engine/agents/role-executors.d.ts +7 -7
- package/dist/packages/engine/agents/role-executors.js +2 -2
- package/dist/packages/engine/agents/role-router.d.ts +2 -2
- package/dist/packages/engine/agents/role-router.js +1 -1
- package/dist/packages/engine/build/artifact-counts.d.ts +1 -0
- package/dist/packages/engine/{compile → build}/artifact-counts.js +7 -7
- package/dist/packages/engine/{compile → build}/artifact-status.d.ts +8 -8
- package/dist/packages/engine/{compile → build}/artifact-status.js +19 -19
- package/dist/packages/engine/{compile → build}/billing-events.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/billing-events.js +4 -4
- package/dist/packages/engine/build/build-execution.d.ts +4 -0
- package/dist/packages/engine/build/build-execution.js +4 -0
- package/dist/packages/engine/build/build-pipeline.d.ts +56 -0
- package/dist/packages/engine/{compile/compiled-pipeline.js → build/build-pipeline.js} +55 -55
- package/dist/packages/engine/build/build-plan-primitives.d.ts +2 -0
- package/dist/packages/engine/{compile/method-primitives.js → build/build-plan-primitives.js} +1 -1
- package/dist/packages/engine/build/build-plan-runs.d.ts +14 -0
- package/dist/packages/engine/build/build-plan-runs.js +31 -0
- package/dist/packages/engine/build/build-stage-plan.d.ts +16 -0
- package/dist/packages/engine/build/build-stage-plan.js +100 -0
- package/dist/packages/engine/build/build-stage-runner.d.ts +15 -0
- package/dist/packages/engine/{compile/compiled-stage-runner.js → build/build-stage-runner.js} +21 -21
- package/dist/packages/engine/build/build-target.d.ts +11 -0
- package/dist/packages/engine/build/build-target.js +16 -0
- package/dist/packages/engine/{compile → build}/check-evaluator.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/check-evaluator.js +1 -1
- package/dist/packages/engine/{compile → build}/discovery.d.ts +2 -2
- package/dist/packages/engine/{compile → build}/discovery.js +4 -4
- package/dist/packages/engine/{compile → build}/index.d.ts +6 -6
- package/dist/packages/engine/{compile → build}/index.js +5 -5
- package/dist/packages/engine/{compile → build}/lib/schema.d.ts +79 -79
- package/dist/packages/engine/{compile → build}/lib/schema.js +71 -71
- package/dist/packages/engine/build/reset.d.ts +2 -0
- package/dist/packages/engine/build/reset.js +74 -0
- package/dist/packages/engine/{compile → build}/runtime-contracts.js +8 -8
- package/dist/packages/engine/build/runtime-inventory.d.ts +7 -0
- package/dist/packages/engine/{compile → build}/runtime-inventory.js +8 -8
- package/dist/packages/engine/{compile → build}/runtime-paths.js +6 -6
- package/dist/packages/engine/{compile → build}/runtime-prompt.js +11 -11
- package/dist/packages/engine/build/runtime-reconcile.d.ts +2 -0
- package/dist/packages/engine/{compile → build}/runtime-reconcile.js +18 -18
- package/dist/packages/engine/{compile → build}/runtime-runs.js +27 -27
- package/dist/packages/engine/{compile → build}/runtime-types.d.ts +10 -10
- package/dist/packages/engine/build/source-files.d.ts +46 -0
- package/dist/packages/engine/{compile → build}/source-files.js +32 -32
- package/dist/packages/engine/build/state-artifacts.d.ts +9 -0
- package/dist/packages/engine/build/state-artifacts.js +14 -0
- package/dist/packages/engine/build/state-health.d.ts +4 -0
- package/dist/packages/engine/{compile → build}/state-health.js +40 -40
- package/dist/packages/engine/build/state-io.d.ts +11 -0
- package/dist/packages/engine/{compile → build}/state-io.js +22 -22
- package/dist/packages/engine/build/state-paths.js +16 -0
- package/dist/packages/engine/build/state-view.d.ts +5 -0
- package/dist/packages/engine/{compile → build}/state-view.js +29 -29
- package/dist/packages/engine/build/state.d.ts +7 -0
- package/dist/packages/engine/build/state.js +12 -0
- package/dist/packages/engine/build/validate-verifiable-context.d.ts +27 -0
- package/dist/packages/engine/{compile/validate-compiled.js → build/validate-verifiable-context.js} +73 -73
- package/dist/packages/engine/{compile → build}/validate.d.ts +4 -4
- package/dist/packages/engine/{compile → build}/validate.js +27 -27
- package/dist/packages/engine/build/verifiable-context-paths.d.ts +47 -0
- package/dist/packages/engine/build/verifiable-context-paths.js +121 -0
- package/dist/packages/engine/build/verifiable-context-schema.d.ts +21 -0
- package/dist/packages/engine/build/verifiable-context-schema.js +126 -0
- package/dist/packages/engine/client.d.ts +16 -16
- package/dist/packages/engine/client.js +21 -21
- package/dist/packages/engine/cloud-seams.d.ts +3 -3
- package/dist/packages/engine/execution/index.d.ts +2 -2
- package/dist/packages/engine/execution/index.js +1 -1
- package/dist/packages/engine/execution/lib/schema.d.ts +90 -95
- package/dist/packages/engine/execution/lib/schema.js +31 -31
- package/dist/packages/engine/index.d.ts +7 -7
- package/dist/packages/engine/index.js +3 -3
- package/dist/packages/engine/instance-paths.d.ts +39 -39
- package/dist/packages/engine/instance-paths.js +48 -48
- package/dist/packages/engine/lib/schema.d.ts +900 -472
- package/dist/packages/engine/lib/schema.js +137 -153
- package/dist/packages/engine/native-run-handlers.d.ts +12 -12
- package/dist/packages/engine/native-run-handlers.js +135 -135
- package/dist/packages/engine/preparation-store.d.ts +22 -23
- package/dist/packages/engine/preparation-store.js +30 -31
- package/dist/packages/engine/readiness-check-draft.d.ts +2 -2
- package/dist/packages/engine/readiness-check-draft.js +1 -1
- package/dist/packages/engine/requested-artifacts.d.ts +2 -2
- package/dist/packages/engine/routes.d.ts +18 -17
- package/dist/packages/engine/routes.js +20 -19
- package/dist/packages/engine/run-observability.d.ts +5 -3
- package/dist/packages/engine/run-observability.js +101 -89
- package/dist/packages/engine/runtime-caches.d.ts +16 -16
- package/dist/packages/engine/runtime-caches.js +26 -26
- package/dist/packages/engine/runtime-event-applier.d.ts +2 -2
- package/dist/packages/engine/runtime-event-applier.js +1 -1
- package/dist/packages/engine/runtime-persistence.d.ts +9 -9
- package/dist/packages/engine/runtime-persistence.js +16 -16
- package/dist/packages/engine/runtime-proposal-helpers.d.ts +14 -14
- package/dist/packages/engine/runtime-proposal-helpers.js +78 -80
- package/dist/packages/engine/runtime-resource-builders.d.ts +12 -12
- package/dist/packages/engine/runtime-resource-builders.js +19 -19
- package/dist/packages/engine/runtime.d.ts +52 -61
- package/dist/packages/engine/runtime.js +440 -463
- package/dist/packages/engine/server.d.ts +2 -2
- package/dist/packages/engine/server.js +147 -116
- package/dist/packages/engine/service-registry.d.ts +5 -17
- package/dist/packages/engine/service-registry.js +5 -20
- package/dist/packages/engine/verify/lib/schema.d.ts +19 -19
- package/dist/packages/engine/verify/lib/schema.js +36 -8
- package/dist/packages/engine/verify/readiness-check-run.d.ts +15 -16
- package/dist/packages/engine/verify/readiness-check-run.js +46 -46
- package/dist/packages/engine/verify/verify-execution.d.ts +3 -3
- package/dist/packages/engine/verify/verify-execution.js +10 -10
- package/dist/packages/engine/verify/verify-paths.d.ts +4 -4
- package/dist/packages/engine/verify/verify-paths.js +17 -17
- package/dist/packages/engine/verify/verify-sandbox.d.ts +1 -1
- package/dist/packages/engine/verify/verify-sandbox.js +26 -26
- package/dist/packages/engine/verify/verify-targets.d.ts +2 -2
- package/dist/packages/engine/verify/verify-targets.js +17 -17
- package/dist/packages/engine/verify/verify-types.d.ts +2 -2
- package/dist/packages/engine/verify/verify.d.ts +1 -1
- package/dist/packages/engine/verify/verify.js +1 -1
- package/dist/packages/engine/wire-schemas.d.ts +38 -40
- package/dist/packages/engine/wire-schemas.js +13 -13
- package/dist/packages/project/index.d.ts +1 -1
- package/dist/packages/project/interf-bootstrap.d.ts +1 -1
- package/dist/packages/project/interf-bootstrap.js +1 -1
- package/dist/packages/project/interf-detect.d.ts +11 -11
- package/dist/packages/project/interf-detect.js +30 -30
- package/dist/packages/project/interf-scaffold.d.ts +3 -3
- package/dist/packages/project/interf-scaffold.js +72 -72
- package/dist/packages/project/interf.d.ts +4 -4
- package/dist/packages/project/interf.js +3 -3
- package/dist/packages/project/lib/schema.d.ts +12 -12
- package/dist/packages/project/lib/schema.js +14 -14
- package/dist/packages/project/preparation-entries.d.ts +3 -3
- package/dist/packages/project/preparation-entries.js +19 -19
- package/dist/packages/project/source-config.d.ts +10 -10
- package/dist/packages/project/source-config.js +58 -58
- package/package.json +15 -15
- package/public-repo/CONTRIBUTING.md +12 -12
- package/public-repo/README.md +65 -63
- package/public-repo/SECURITY.md +3 -3
- package/public-repo/build-plans/interf-default/README.md +33 -0
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/shape/SKILL.md +10 -10
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/structure/SKILL.md +2 -2
- package/public-repo/{methods/interf-default/compile → build-plans/interf-default/build}/stages/summarize/SKILL.md +1 -1
- package/public-repo/{methods/interf-default/method.json → build-plans/interf-default/build-plan.json} +15 -15
- package/public-repo/{methods/interf-default/method.schema.json → build-plans/interf-default/build-plan.schema.json} +4 -4
- package/public-repo/build-plans/interf-default/improve/SKILL.md +18 -0
- package/public-repo/{methods → build-plans}/interf-default/use/query/SKILL.md +6 -6
- package/public-repo/plugins/README.md +1 -1
- package/public-repo/plugins/interf/.claude-plugin/plugin.json +3 -3
- package/public-repo/plugins/interf/README.md +4 -1
- package/public-repo/plugins/interf/skills/interf/SKILL.md +189 -290
- package/public-repo/skills/interf/SKILL.md +189 -290
- package/LICENSE.md +0 -1
- package/TRADEMARKS.md +0 -8
- package/dist/cli/commands/method.d.ts +0 -2
- package/dist/compiler-ui/404.html +0 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +0 -10
- package/dist/compiler-ui/__next._full.txt +0 -21
- package/dist/compiler-ui/__next._head.txt +0 -5
- package/dist/compiler-ui/__next._index.txt +0 -6
- package/dist/compiler-ui/_next/static/chunks/01646j7yi.w5a.css +0 -1
- package/dist/compiler-ui/_next/static/chunks/02r7siaw-_p5w.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/04d0ly-7xb~-j.js +0 -91
- package/dist/compiler-ui/_next/static/chunks/0fhs9psnxqd8s.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0mssmhpbifj15.css +0 -2
- package/dist/compiler-ui/_next/static/chunks/0nypu~ddwxari.js +0 -116
- package/dist/compiler-ui/_next/static/chunks/0p3s8iyhgcww2.js +0 -31
- package/dist/compiler-ui/_next/static/chunks/0tjf-vu_rz8s0.css +0 -1
- package/dist/compiler-ui/_next/static/chunks/0u6p3fpbbfgtl.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0wpx5..8dnh0w.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/0y0uj160p0ts~.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/10t8l~_oenf.c.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/13gz9e7z~imx1.js +0 -5
- package/dist/compiler-ui/_next/static/chunks/156xed-b6czaw.js +0 -1
- package/dist/compiler-ui/_next/static/chunks/turbopack-02-3e_c-yz~5g.js +0 -1
- package/dist/compiler-ui/_not-found/__next._full.txt +0 -16
- package/dist/compiler-ui/_not-found/__next._head.txt +0 -5
- package/dist/compiler-ui/_not-found/__next._index.txt +0 -6
- package/dist/compiler-ui/_not-found/__next._not-found.txt +0 -5
- package/dist/compiler-ui/_not-found.html +0 -1
- package/dist/compiler-ui/_not-found.txt +0 -16
- package/dist/compiler-ui/index.html +0 -1
- package/dist/compiler-ui/index.txt +0 -21
- package/dist/packages/engine/agents/lib/compiled-bootstrap.d.ts +0 -3
- package/dist/packages/engine/agents/lib/compiled-bootstrap.js +0 -19
- package/dist/packages/engine/compile/artifact-counts.d.ts +0 -1
- package/dist/packages/engine/compile/compiled-compile.d.ts +0 -4
- package/dist/packages/engine/compile/compiled-compile.js +0 -4
- package/dist/packages/engine/compile/compiled-paths.d.ts +0 -47
- package/dist/packages/engine/compile/compiled-paths.js +0 -121
- package/dist/packages/engine/compile/compiled-pipeline.d.ts +0 -56
- package/dist/packages/engine/compile/compiled-schema.d.ts +0 -21
- package/dist/packages/engine/compile/compiled-schema.js +0 -126
- package/dist/packages/engine/compile/compiled-stage-plan.d.ts +0 -16
- package/dist/packages/engine/compile/compiled-stage-plan.js +0 -100
- package/dist/packages/engine/compile/compiled-stage-runner.d.ts +0 -15
- package/dist/packages/engine/compile/compiled-target.d.ts +0 -11
- package/dist/packages/engine/compile/compiled-target.js +0 -16
- package/dist/packages/engine/compile/method-primitives.d.ts +0 -2
- package/dist/packages/engine/compile/method-runs.d.ts +0 -14
- package/dist/packages/engine/compile/method-runs.js +0 -31
- package/dist/packages/engine/compile/reset.d.ts +0 -2
- package/dist/packages/engine/compile/reset.js +0 -74
- package/dist/packages/engine/compile/runtime-inventory.d.ts +0 -7
- package/dist/packages/engine/compile/runtime-reconcile.d.ts +0 -2
- package/dist/packages/engine/compile/source-files.d.ts +0 -46
- package/dist/packages/engine/compile/state-artifacts.d.ts +0 -9
- package/dist/packages/engine/compile/state-artifacts.js +0 -14
- package/dist/packages/engine/compile/state-health.d.ts +0 -4
- package/dist/packages/engine/compile/state-io.d.ts +0 -11
- package/dist/packages/engine/compile/state-paths.js +0 -16
- package/dist/packages/engine/compile/state-view.d.ts +0 -5
- package/dist/packages/engine/compile/state.d.ts +0 -7
- package/dist/packages/engine/compile/state.js +0 -12
- package/dist/packages/engine/compile/validate-compiled.d.ts +0 -27
- package/dist/packages/methods/authoring/index.d.ts +0 -4
- package/dist/packages/methods/authoring/index.js +0 -4
- package/dist/packages/methods/authoring/method-authoring.d.ts +0 -36
- package/dist/packages/methods/authoring/method-edit-session.d.ts +0 -18
- package/dist/packages/methods/authoring/method-improvement.d.ts +0 -23
- package/dist/packages/methods/authoring/method-improvement.js +0 -217
- package/dist/packages/methods/index.d.ts +0 -2
- package/dist/packages/methods/index.js +0 -2
- package/dist/packages/methods/method-resolution.d.ts +0 -6
- package/dist/packages/methods/method-resolution.js +0 -7
- package/dist/packages/methods/package/builtin-compiled-method.d.ts +0 -37
- package/dist/packages/methods/package/builtin-compiled-method.js +0 -91
- package/dist/packages/methods/package/interf-method-package.d.ts +0 -31
- package/dist/packages/methods/package/interf-method-package.js +0 -466
- package/dist/packages/methods/package/local-methods.d.ts +0 -74
- package/dist/packages/methods/package/method-definitions.d.ts +0 -61
- package/dist/packages/methods/package/method-definitions.js +0 -214
- package/dist/packages/methods/package/method-review-paths.d.ts +0 -10
- package/dist/packages/methods/package/method-review-paths.js +0 -31
- package/dist/packages/methods/package/user-methods.d.ts +0 -17
- package/dist/packages/methods/package/user-methods.js +0 -77
- package/public-repo/methods/interf-default/README.md +0 -33
- package/public-repo/methods/interf-default/improve/SKILL.md +0 -18
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_buildManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_clientMiddlewareManifest.js +0 -0
- /package/dist/{compiler-ui/_next/static/tYHMLL9oKds1yDoNYgkPV → interf-ui/_next/static/--reS3xBzM5zc6QxNjZd6}/_ssgManifest.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/03~yq9q893hmn.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/0y5z3t-z1c8ks.js.map +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/chunks/turbopack-worker-0sjn--fhq~1cg.js +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/GeistMono_Variable.p.17jn9btb_52pq.woff2 +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/Geist_Variable-s.p.0-te~ja_gpvcf.woff2 +0 -0
- /package/dist/{compiler-ui → interf-ui}/_next/static/media/worker.102zas1s52_pf.js +0 -0
- /package/dist/packages/{methods/authoring/lib/method-edit-utils.js → build-plans/authoring/lib/build-plan-edit-utils.js} +0 -0
- /package/dist/packages/{methods → build-plans}/package/lib/package-root.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-contracts.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-paths.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-prompt.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-runs.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime-types.js +0 -0
- /package/dist/packages/engine/{compile → build}/runtime.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/runtime.js +0 -0
- /package/dist/packages/engine/{compile → build}/state-paths.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/validate-helpers.d.ts +0 -0
- /package/dist/packages/engine/{compile → build}/validate-helpers.js +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { listSourcePreparationConfigs,
|
|
4
|
-
import {
|
|
1
|
+
import { listVerifiableContextsForSourceFolder, } from "./interf-detect.js";
|
|
2
|
+
import { createVerifiableContext, ensureVerifiableContextScaffold, } from "./interf-scaffold.js";
|
|
3
|
+
import { listSourcePreparationConfigs, loadVerifiableContextPreparationConfig, loadSourceFolderConfig, resolveSourcePreparationPath, sourcePreparationConfigFromInterfConfig, syncVerifiableContextInterfConfigFromSourcePreparationConfig, } from "./source-config.js";
|
|
4
|
+
import { DEFAULT_BUILD_PLAN_ID, buildPlanIdForSourcePreparationConfig, } from "../build-plans/build-plan-resolution.js";
|
|
5
5
|
export function listSavedPreparationEntries(prepDataDir) {
|
|
6
6
|
const builtEntries = new Map();
|
|
7
|
-
for (const builtContext of
|
|
8
|
-
const preparationConfig =
|
|
7
|
+
for (const builtContext of listVerifiableContextsForSourceFolder(prepDataDir)) {
|
|
8
|
+
const preparationConfig = loadVerifiableContextPreparationConfig(builtContext.path)
|
|
9
9
|
?? sourcePreparationConfigFromInterfConfig(builtContext.config);
|
|
10
10
|
builtEntries.set(builtContext.config.name, {
|
|
11
11
|
config: preparationConfig,
|
|
12
12
|
path: builtContext.path,
|
|
13
|
-
localDraft: builtContext.config.
|
|
13
|
+
localDraft: builtContext.config.build_plan_origin?.local_draft === true,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
const entries = new Map();
|
|
@@ -24,26 +24,26 @@ export function listSavedPreparationEntries(prepDataDir) {
|
|
|
24
24
|
}
|
|
25
25
|
return Array.from(entries.values()).sort((left, right) => left.config.name.localeCompare(right.config.name));
|
|
26
26
|
}
|
|
27
|
-
export function
|
|
27
|
+
export function findBuiltVerifiableContextPath(prepDataDir, preparationName) {
|
|
28
28
|
return listSavedPreparationEntries(prepDataDir).find((entry) => entry.config.name === preparationName)?.path ?? null;
|
|
29
29
|
}
|
|
30
30
|
export function findSavedPreparationConfig(prepDataDir, preparationName) {
|
|
31
31
|
return listSavedPreparationEntries(prepDataDir).find((entry) => entry.config.name === preparationName)?.config ?? null;
|
|
32
32
|
}
|
|
33
|
-
export function
|
|
34
|
-
const
|
|
33
|
+
export function createVerifiableContextFromConfig(prepDataDir, preparationConfig) {
|
|
34
|
+
const buildPlanId = buildPlanIdForSourcePreparationConfig(preparationConfig) ?? DEFAULT_BUILD_PLAN_ID;
|
|
35
35
|
const sourceFolderPath = resolveSourcePreparationPath(prepDataDir, preparationConfig);
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
return
|
|
36
|
+
const verifiableContextPath = createVerifiableContext(preparationConfig.name, prepDataDir, buildPlanId, preparationConfig.about, sourceFolderPath);
|
|
37
|
+
syncVerifiableContextInterfConfigFromSourcePreparationConfig(verifiableContextPath, preparationConfig);
|
|
38
|
+
return verifiableContextPath;
|
|
39
39
|
}
|
|
40
|
-
export function
|
|
41
|
-
const
|
|
42
|
-
const existingPath =
|
|
40
|
+
export function ensureVerifiableContextFromConfig(prepDataDir, preparationConfig) {
|
|
41
|
+
const buildPlanId = buildPlanIdForSourcePreparationConfig(preparationConfig) ?? DEFAULT_BUILD_PLAN_ID;
|
|
42
|
+
const existingPath = findBuiltVerifiableContextPath(prepDataDir, preparationConfig.name);
|
|
43
43
|
if (existingPath) {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ensureVerifiableContextScaffold(prepDataDir, preparationConfig.name, buildPlanId);
|
|
45
|
+
syncVerifiableContextInterfConfigFromSourcePreparationConfig(existingPath, preparationConfig);
|
|
46
46
|
return existingPath;
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return createVerifiableContextFromConfig(prepDataDir, preparationConfig);
|
|
49
49
|
}
|
|
@@ -14,10 +14,10 @@ export interface WritableSourceProjectConfig {
|
|
|
14
14
|
source_folder?: SourceFolderBinding;
|
|
15
15
|
preparations?: SourcePreparationConfig[];
|
|
16
16
|
}
|
|
17
|
-
export {
|
|
17
|
+
export { DEFAULT_BUILD_PLAN_ID, buildPlanIdForSourcePreparationConfig } from "../build-plans/build-plan-resolution.js";
|
|
18
18
|
export declare function listSourcePreparationConfigs(config: SourceFolderConfig | null): SourcePreparationConfig[];
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
19
|
+
export declare function resolvePreparationBuildMaxAttempts(preparationConfig: Pick<SourcePreparationConfig, "max_attempts">, override?: number | null): number | null;
|
|
20
|
+
export declare function resolvePreparationBuildMaxLoops(preparationConfig: Pick<SourcePreparationConfig, "max_loops">, override?: number | null): number | null;
|
|
21
21
|
export declare function getDefaultSourcePreparationConfig(config: SourceFolderConfig | null): SourcePreparationConfig | null;
|
|
22
22
|
export declare function findSourcePreparationConfig(config: SourceFolderConfig | null, preparationName: string): SourcePreparationConfig | null;
|
|
23
23
|
export declare function configuredSourceFolderPath(config: SourceFolderConfig | WritableSourceProjectConfig | null | undefined): string | null;
|
|
@@ -28,19 +28,19 @@ export declare function upsertSourcePreparationConfig(prepDataDir: string, prepa
|
|
|
28
28
|
matchName?: string;
|
|
29
29
|
}): void;
|
|
30
30
|
export declare function removeSourcePreparationConfig(prepDataDir: string, preparationName: string): boolean;
|
|
31
|
-
export declare function
|
|
32
|
-
export declare function
|
|
31
|
+
export declare function buildMaxAttempts(maxAttempts: number | null | undefined): number | undefined;
|
|
32
|
+
export declare function buildMaxLoops(maxLoops: number | null | undefined): number | undefined;
|
|
33
33
|
export declare function sourcePreparationConfigFromInterfConfig(config: InterfConfig, preparationPath?: string): SourcePreparationConfig;
|
|
34
|
-
export declare function
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
34
|
+
export declare function loadVerifiableContextPreparationConfig(verifiableContextPath: string): SourcePreparationConfig | null;
|
|
35
|
+
export declare function saveVerifiableContextInterfConfig(verifiableContextPath: string, config: InterfConfig): InterfConfig;
|
|
36
|
+
export declare function syncVerifiableContextInterfConfigFromSourcePreparationConfig(verifiableContextPath: string, preparationConfig: SourcePreparationConfig): InterfConfig;
|
|
37
37
|
export declare function buildTestSpecFromSourceFolderConfig(options: {
|
|
38
38
|
prepDataDir: string;
|
|
39
39
|
targetName?: string | null;
|
|
40
40
|
targetType?: TestTargetType;
|
|
41
41
|
}): LoadedSourceTestSpec | null;
|
|
42
|
-
export declare function
|
|
43
|
-
|
|
42
|
+
export declare function buildTestSpecFromPreparationConfig(options: {
|
|
43
|
+
verifiableContextPath: string;
|
|
44
44
|
targetType?: TestTargetType;
|
|
45
45
|
}): LoadedSourceTestSpec | null;
|
|
46
46
|
export declare function resolveSourcePreparationPath(prepDataDir: string, preparationConfig: Pick<SourcePreparationConfig, "path">): string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
4
|
-
import {
|
|
4
|
+
import { refreshVerifiableContextBootstrapGuidance } from "../engine/agents/lib/verifiable-context-bootstrap.js";
|
|
5
5
|
import { readInterfConfig, } from "./interf.js";
|
|
6
|
-
import {
|
|
6
|
+
import { seedVerifiableContextBuildPlanPackage } from "../build-plans/package/interf-build-plan-package.js";
|
|
7
7
|
import { readJsonFileWithSchema } from "../contracts/utils/parse.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { getBuildPlan } from "../build-plans/package/build-plan-definitions.js";
|
|
9
|
+
import { DEFAULT_BUILD_PLAN_ID, buildPlanIdForSourcePreparationConfig, } from "../build-plans/build-plan-resolution.js";
|
|
10
10
|
import { SourceFolderConfigSchema, } from "./lib/schema.js";
|
|
11
11
|
import { slugify } from "../contracts/utils/naming.js";
|
|
12
12
|
import { assertPathWithinRoot, isPathWithinRoot } from "../contracts/utils/path-guards.js";
|
|
13
|
-
import {
|
|
13
|
+
import { defaultControlPathForVerifiableContext, resolveSourceControlPathForVerifiableContext, verifiableContextInterfConfigPath, verifiableContextInterfRoot, } from "../engine/build/verifiable-context-paths.js";
|
|
14
14
|
import { asPreparationDataDir, preparationConfigPath, PREPARATION_CONFIG_FILENAME, } from "../contracts/lib/preparation-paths.js";
|
|
15
15
|
export const SOURCE_FOLDER_CONFIG_FILE = PREPARATION_CONFIG_FILENAME;
|
|
16
16
|
export const SOURCE_FOLDER_CONFIG_PATH = SOURCE_FOLDER_CONFIG_FILE;
|
|
@@ -61,18 +61,18 @@ export function loadSourceFolderConfig(prepDataDir) {
|
|
|
61
61
|
return null;
|
|
62
62
|
return readSourceFolderConfigFile(filePath);
|
|
63
63
|
}
|
|
64
|
-
export {
|
|
64
|
+
export { DEFAULT_BUILD_PLAN_ID, buildPlanIdForSourcePreparationConfig } from "../build-plans/build-plan-resolution.js";
|
|
65
65
|
function normalizeSourcePreparationConfig(preparationConfig) {
|
|
66
|
-
const
|
|
66
|
+
const buildPlan = buildPlanIdForSourcePreparationConfig(preparationConfig);
|
|
67
67
|
return {
|
|
68
68
|
...preparationConfig,
|
|
69
|
-
...(
|
|
69
|
+
...(buildPlan ? { build_plan: buildPlan } : {}),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
export function listSourcePreparationConfigs(config) {
|
|
73
73
|
return (config?.preparations ?? []).map((preparation) => normalizeSourcePreparationConfig(preparation));
|
|
74
74
|
}
|
|
75
|
-
export function
|
|
75
|
+
export function resolvePreparationBuildMaxAttempts(preparationConfig, override = null) {
|
|
76
76
|
const configured = override ?? preparationConfig.max_attempts ?? null;
|
|
77
77
|
if (configured == null)
|
|
78
78
|
return null;
|
|
@@ -81,7 +81,7 @@ export function resolvePreparationCompileMaxAttempts(preparationConfig, override
|
|
|
81
81
|
return 1;
|
|
82
82
|
return Math.min(5, normalized);
|
|
83
83
|
}
|
|
84
|
-
export function
|
|
84
|
+
export function resolvePreparationBuildMaxLoops(preparationConfig, override = null) {
|
|
85
85
|
const configured = override ?? preparationConfig.max_loops ?? null;
|
|
86
86
|
if (configured == null)
|
|
87
87
|
return null;
|
|
@@ -119,12 +119,12 @@ function toWritableSourceProjectConfig(config) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function toWritableSourcePreparationConfig(preparation) {
|
|
122
|
-
const
|
|
122
|
+
const buildPlan = buildPlanIdForSourcePreparationConfig(preparation);
|
|
123
123
|
return {
|
|
124
124
|
name: preparation.name,
|
|
125
125
|
path: preparation.path,
|
|
126
126
|
...(preparation.about ? { about: preparation.about } : {}),
|
|
127
|
-
...(
|
|
127
|
+
...(buildPlan ? { build_plan: buildPlan } : {}),
|
|
128
128
|
...(typeof preparation.max_attempts === "number" ? { max_attempts: preparation.max_attempts } : {}),
|
|
129
129
|
...(typeof preparation.max_loops === "number" ? { max_loops: preparation.max_loops } : {}),
|
|
130
130
|
checks: preparation.checks,
|
|
@@ -189,22 +189,22 @@ export function removeSourcePreparationConfig(prepDataDir, preparationName) {
|
|
|
189
189
|
});
|
|
190
190
|
return true;
|
|
191
191
|
}
|
|
192
|
-
export function
|
|
192
|
+
export function buildMaxAttempts(maxAttempts) {
|
|
193
193
|
if (maxAttempts == null)
|
|
194
194
|
return undefined;
|
|
195
|
-
return
|
|
195
|
+
return resolvePreparationBuildMaxAttempts({ max_attempts: maxAttempts }, null) ?? 1;
|
|
196
196
|
}
|
|
197
|
-
export function
|
|
197
|
+
export function buildMaxLoops(maxLoops) {
|
|
198
198
|
if (maxLoops == null)
|
|
199
199
|
return undefined;
|
|
200
|
-
return
|
|
200
|
+
return resolvePreparationBuildMaxLoops({ max_loops: maxLoops }, null) ?? 1;
|
|
201
201
|
}
|
|
202
202
|
export function sourcePreparationConfigFromInterfConfig(config, preparationPath = `./${config.name}`) {
|
|
203
203
|
return {
|
|
204
204
|
name: config.name,
|
|
205
205
|
path: preparationPath,
|
|
206
206
|
...(config.about ? { about: config.about } : {}),
|
|
207
|
-
|
|
207
|
+
build_plan: config.build_plan,
|
|
208
208
|
...(typeof config.max_attempts === "number"
|
|
209
209
|
? { max_attempts: config.max_attempts }
|
|
210
210
|
: {}),
|
|
@@ -214,11 +214,11 @@ export function sourcePreparationConfigFromInterfConfig(config, preparationPath
|
|
|
214
214
|
checks: config.checks ?? [],
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
export function
|
|
218
|
-
const config = readInterfConfig(
|
|
217
|
+
export function loadVerifiableContextPreparationConfig(verifiableContextPath) {
|
|
218
|
+
const config = readInterfConfig(verifiableContextPath);
|
|
219
219
|
if (!config)
|
|
220
220
|
return null;
|
|
221
|
-
const prepDataDir =
|
|
221
|
+
const prepDataDir = resolveSourceControlPathForVerifiableContext(verifiableContextPath);
|
|
222
222
|
const configuredPreparations = listSourcePreparationConfigs(loadSourceFolderConfig(prepDataDir));
|
|
223
223
|
const defaultPreparationPath = configuredPreparations.length === 1
|
|
224
224
|
? configuredPreparations[0].path
|
|
@@ -228,7 +228,7 @@ export function loadCompiledPreparationConfig(compiledPath) {
|
|
|
228
228
|
: null;
|
|
229
229
|
const preparationPath = sourceBinding
|
|
230
230
|
? (() => {
|
|
231
|
-
const sourceAbsolutePath = resolve(
|
|
231
|
+
const sourceAbsolutePath = resolve(verifiableContextPath, sourceBinding);
|
|
232
232
|
if (!isPathWithinRoot(prepDataDir, sourceAbsolutePath)) {
|
|
233
233
|
return sourceAbsolutePath;
|
|
234
234
|
}
|
|
@@ -237,40 +237,40 @@ export function loadCompiledPreparationConfig(compiledPath) {
|
|
|
237
237
|
: defaultPreparationPath;
|
|
238
238
|
return sourcePreparationConfigFromInterfConfig(config, preparationPath);
|
|
239
239
|
}
|
|
240
|
-
export function
|
|
241
|
-
mkdirSync(
|
|
242
|
-
writeFileSync(
|
|
240
|
+
export function saveVerifiableContextInterfConfig(verifiableContextPath, config) {
|
|
241
|
+
mkdirSync(verifiableContextInterfRoot(verifiableContextPath), { recursive: true });
|
|
242
|
+
writeFileSync(verifiableContextInterfConfigPath(verifiableContextPath), JSON.stringify(config, null, 2) + "\n");
|
|
243
243
|
return config;
|
|
244
244
|
}
|
|
245
|
-
export function
|
|
246
|
-
const current = readInterfConfig(
|
|
247
|
-
const prepDataDir =
|
|
245
|
+
export function syncVerifiableContextInterfConfigFromSourcePreparationConfig(verifiableContextPath, preparationConfig) {
|
|
246
|
+
const current = readInterfConfig(verifiableContextPath);
|
|
247
|
+
const prepDataDir = resolveSourceControlPathForVerifiableContext(verifiableContextPath);
|
|
248
248
|
const preparationAbsolutePath = resolveConfiguredSourceFolderPath(prepDataDir) ??
|
|
249
249
|
resolveSourcePreparationPath(prepDataDir, preparationConfig);
|
|
250
|
-
const preparationRelativePath = relative(
|
|
251
|
-
const
|
|
252
|
-
??
|
|
253
|
-
??
|
|
254
|
-
const
|
|
255
|
-
const
|
|
250
|
+
const preparationRelativePath = relative(verifiableContextPath, preparationAbsolutePath).split(sep).join("/") || ".";
|
|
251
|
+
const buildPlanId = buildPlanIdForSourcePreparationConfig(preparationConfig)
|
|
252
|
+
?? buildPlanIdForSourcePreparationConfig(current)
|
|
253
|
+
?? DEFAULT_BUILD_PLAN_ID;
|
|
254
|
+
const buildPlanChanged = current?.build_plan !== undefined && current.build_plan !== buildPlanId;
|
|
255
|
+
const buildPlanOrigin = buildPlanChanged || !current?.build_plan_origin
|
|
256
256
|
? {
|
|
257
|
-
selected:
|
|
257
|
+
selected: buildPlanId,
|
|
258
258
|
local_draft: false,
|
|
259
259
|
}
|
|
260
|
-
: current.
|
|
261
|
-
const { type: _ignoredType, name: _ignoredName, about: _ignoredAbout,
|
|
260
|
+
: current.build_plan_origin;
|
|
261
|
+
const { type: _ignoredType, name: _ignoredName, about: _ignoredAbout, build_plan: _ignoredBuildPlan, max_attempts: _ignoredMaxAttempts, max_loops: _ignoredMaxLoops, checks: _ignoredChecks, build_plan_origin: _ignoredBuildPlanOrigin, source: _ignoredSource, ...passthrough } = current ?? {};
|
|
262
262
|
const nextConfig = {
|
|
263
263
|
...passthrough,
|
|
264
264
|
...(!current ? {
|
|
265
|
-
type: "
|
|
265
|
+
type: "verifiable-context",
|
|
266
266
|
source: {
|
|
267
267
|
path: preparationRelativePath,
|
|
268
268
|
},
|
|
269
269
|
} : {}),
|
|
270
|
-
type: "
|
|
270
|
+
type: "verifiable-context",
|
|
271
271
|
name: preparationConfig.name,
|
|
272
272
|
...(preparationConfig.about ? { about: preparationConfig.about } : {}),
|
|
273
|
-
|
|
273
|
+
build_plan: buildPlanId,
|
|
274
274
|
...(typeof preparationConfig.max_attempts === "number"
|
|
275
275
|
? { max_attempts: preparationConfig.max_attempts }
|
|
276
276
|
: {}),
|
|
@@ -278,23 +278,23 @@ export function syncCompiledInterfConfigFromSourcePreparationConfig(compiledPath
|
|
|
278
278
|
? { max_loops: preparationConfig.max_loops }
|
|
279
279
|
: {}),
|
|
280
280
|
checks: preparationConfig.checks,
|
|
281
|
-
|
|
281
|
+
build_plan_origin: buildPlanOrigin,
|
|
282
282
|
source: {
|
|
283
283
|
path: preparationRelativePath,
|
|
284
|
-
control_path:
|
|
284
|
+
control_path: defaultControlPathForVerifiableContext(verifiableContextPath),
|
|
285
285
|
preparation_path: preparationRelativePath,
|
|
286
286
|
},
|
|
287
287
|
};
|
|
288
|
-
const saved =
|
|
289
|
-
if (
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
|
|
288
|
+
const saved = saveVerifiableContextInterfConfig(verifiableContextPath, nextConfig);
|
|
289
|
+
if (buildPlanChanged) {
|
|
290
|
+
const selectedBuildPlan = getBuildPlan(buildPlanId, { prepDataDir });
|
|
291
|
+
seedVerifiableContextBuildPlanPackage({
|
|
292
|
+
verifiableContextPath,
|
|
293
293
|
prepDataDir,
|
|
294
|
-
|
|
294
|
+
buildPlanId: selectedBuildPlan.id,
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
|
|
297
|
+
refreshVerifiableContextBootstrapGuidance(verifiableContextPath);
|
|
298
298
|
return saved;
|
|
299
299
|
}
|
|
300
300
|
function buildLoadedTestSpec(options) {
|
|
@@ -302,7 +302,7 @@ function buildLoadedTestSpec(options) {
|
|
|
302
302
|
return null;
|
|
303
303
|
const testId = options.id ?? slugify(options.name);
|
|
304
304
|
return {
|
|
305
|
-
id: options.targetType === "source-files" ? `${testId}-source-files` : testId
|
|
305
|
+
id: options.targetType === "source-files" ? `${testId}-source-files` : `${testId}-verifiable-context`,
|
|
306
306
|
filePath: options.filePath,
|
|
307
307
|
type: options.targetType,
|
|
308
308
|
name: options.name,
|
|
@@ -311,7 +311,7 @@ function buildLoadedTestSpec(options) {
|
|
|
311
311
|
};
|
|
312
312
|
}
|
|
313
313
|
export function buildTestSpecFromSourceFolderConfig(options) {
|
|
314
|
-
const { prepDataDir, targetName, targetType = "
|
|
314
|
+
const { prepDataDir, targetName, targetType = "verifiable-context" } = options;
|
|
315
315
|
const config = loadSourceFolderConfig(prepDataDir);
|
|
316
316
|
if (!config)
|
|
317
317
|
return null;
|
|
@@ -334,14 +334,14 @@ export function buildTestSpecFromSourceFolderConfig(options) {
|
|
|
334
334
|
targetType,
|
|
335
335
|
filePath: targetType === "source-files"
|
|
336
336
|
? `${configPath}#preparations/${match.name}:source-files`
|
|
337
|
-
: `${configPath}#preparations/${match.name}:
|
|
337
|
+
: `${configPath}#preparations/${match.name}:verifiable-context`,
|
|
338
338
|
defaultDescription: `Derived from saved Preparation checks in ${SOURCE_FOLDER_CONFIG_PATH}`,
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
export function
|
|
342
|
-
const {
|
|
343
|
-
const config = readInterfConfig(
|
|
344
|
-
const configPath =
|
|
341
|
+
export function buildTestSpecFromPreparationConfig(options) {
|
|
342
|
+
const { verifiableContextPath, targetType = "verifiable-context" } = options;
|
|
343
|
+
const config = readInterfConfig(verifiableContextPath);
|
|
344
|
+
const configPath = verifiableContextInterfConfigPath(verifiableContextPath);
|
|
345
345
|
if (!config)
|
|
346
346
|
return null;
|
|
347
347
|
return buildLoadedTestSpec({
|
|
@@ -351,8 +351,8 @@ export function buildTestSpecFromCompiledPreparationConfig(options) {
|
|
|
351
351
|
targetType,
|
|
352
352
|
filePath: targetType === "source-files"
|
|
353
353
|
? `${configPath}#checks:source-files`
|
|
354
|
-
: `${configPath}#checks:
|
|
355
|
-
defaultDescription: "Derived from checks in the
|
|
354
|
+
: `${configPath}#checks:verifiable-context`,
|
|
355
|
+
defaultDescription: "Derived from checks in the verifiable-context config.",
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
@@ -360,7 +360,7 @@ export function buildTestSpecFromCompiledPreparationConfig(options) {
|
|
|
360
360
|
* absolute `preparation.path` was authored by hand. The schema-level
|
|
361
361
|
* refinement in `SourcePreparationConfigSchema` is the primary line of
|
|
362
362
|
* defense; this is the in-process backstop for callers that hand-craft a
|
|
363
|
-
* SourcePreparationConfig at runtime (e.g.
|
|
363
|
+
* SourcePreparationConfig at runtime (e.g. Build Plan authoring helpers that
|
|
364
364
|
* construct a config from an InterfConfig).
|
|
365
365
|
*/
|
|
366
366
|
const FORBIDDEN_PREPARATION_PATH_PREFIXES = [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interf/compiler",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Interf
|
|
3
|
+
"version": "0.22.2",
|
|
4
|
+
"description": "Interf builds verifiable context for agents from your files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"interf": "dist/bin.js"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true});require('fs').rmSync('.tsbuildinfo',{force:true})\" && tsc && chmod 755 dist/bin.js",
|
|
21
21
|
"dev": "tsc --watch",
|
|
22
|
-
"web:dev": "npm --prefix src/apps/
|
|
23
|
-
"web:typecheck": "npm --prefix src/apps/
|
|
24
|
-
"web:build": "node scripts/web/build-
|
|
22
|
+
"web:dev": "npm --prefix src/apps/interf-ui run dev",
|
|
23
|
+
"web:typecheck": "npm --prefix src/apps/interf-ui run typecheck",
|
|
24
|
+
"web:build": "node scripts/web/build-interf-ui.mjs",
|
|
25
25
|
"docs:sync-public": "node scripts/docs/sync-public-repo.mjs",
|
|
26
26
|
"docs:check-public": "node scripts/docs/sync-public-repo.mjs --check",
|
|
27
27
|
"test:smoke": "npm run build && node --test test/**/*.test.mjs",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"test:acceptance": "npm run build && node scripts/acceptance/release.mjs",
|
|
34
34
|
"test:release": "npm run web:typecheck && npm test && node scripts/acceptance/release.mjs && npm run web:build",
|
|
35
35
|
"test:acceptance-live": "npm run build && node scripts/acceptance/live.mjs",
|
|
36
|
-
"test:acceptance-quick:create-
|
|
37
|
-
"test:acceptance-quick:
|
|
38
|
-
"test:acceptance-quick:self-improving": "npm run build && node scripts/acceptance/targeted.mjs self-improving-
|
|
39
|
-
"prepublishOnly": "node scripts/release/prepublish-gate.mjs"
|
|
36
|
+
"test:acceptance-quick:create-build": "npm run build && node scripts/acceptance/targeted.mjs create-build",
|
|
37
|
+
"test:acceptance-quick:context-query": "npm run build && node scripts/acceptance/targeted.mjs context-query",
|
|
38
|
+
"test:acceptance-quick:self-improving": "npm run build && node scripts/acceptance/targeted.mjs self-improving-build",
|
|
39
|
+
"prepublishOnly": "node scripts/release/prepublish-gate.mjs",
|
|
40
|
+
"prepack": "node scripts/release/package-readme.mjs --write",
|
|
41
|
+
"postpack": "node scripts/release/package-readme.mjs --clean"
|
|
40
42
|
},
|
|
41
43
|
"files": [
|
|
42
44
|
"dist",
|
|
43
|
-
"public-repo"
|
|
44
|
-
"LICENSE.md",
|
|
45
|
-
"TRADEMARKS.md"
|
|
45
|
+
"public-repo"
|
|
46
46
|
],
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
"claude",
|
|
56
56
|
"codex"
|
|
57
57
|
],
|
|
58
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
58
|
+
"license": "SEE LICENSE IN public-repo/LICENSE.md",
|
|
59
59
|
"author": "Interf Inc.",
|
|
60
60
|
"repository": {
|
|
61
61
|
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/interf-labs/
|
|
62
|
+
"url": "git+https://github.com/interf-labs/interf.git"
|
|
63
63
|
},
|
|
64
64
|
"bugs": {
|
|
65
|
-
"url": "https://github.com/interf-labs/
|
|
65
|
+
"url": "https://github.com/interf-labs/interf/issues"
|
|
66
66
|
},
|
|
67
67
|
"homepage": "https://interf.com",
|
|
68
68
|
"engines": {
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
This public surface contains the files users and agent hosts need to inspect:
|
|
4
4
|
the README, license and security docs, bundled Skills, plugin manifests, and
|
|
5
|
-
public
|
|
5
|
+
public Build Plans.
|
|
6
6
|
|
|
7
7
|
The Interf engine source is private. Do not add private source paths,
|
|
8
8
|
maintainer docs, or internal repo instructions here.
|
|
9
9
|
|
|
10
10
|
## What To Change Here
|
|
11
11
|
|
|
12
|
-
- Public product docs:
|
|
12
|
+
- Public product docs: the public README, `SECURITY.md`, and `TRADEMARKS.md`.
|
|
13
13
|
- Agent Skills: `skills/interf/`.
|
|
14
14
|
- Host plugin bundles: `plugins/`.
|
|
15
|
-
- Public
|
|
15
|
+
- Public Build Plans: `build-plans/`.
|
|
16
16
|
|
|
17
|
-
## Public
|
|
17
|
+
## Public Build Plans
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Build Plans are inspectable folders. Keep them standalone:
|
|
20
20
|
|
|
21
|
-
- `
|
|
22
|
-
- `
|
|
23
|
-
- `
|
|
24
|
-
- `use/query/SKILL.md` tells agents how to read the
|
|
21
|
+
- `build-plan.json` is the current technical filename for the Build Plan stages and Artifact outputs.
|
|
22
|
+
- `build-plan.schema.json` is the current technical filename for the output contract.
|
|
23
|
+
- `build/stages/<stage>/SKILL.md` contains stage instructions.
|
|
24
|
+
- `use/query/SKILL.md` tells agents how to read the verifiable context.
|
|
25
25
|
- `improve/SKILL.md` tells Interf how to revise the plan when checks fail.
|
|
26
26
|
|
|
27
|
-
For the shipped default
|
|
27
|
+
For the shipped default Build Plan, edit `build-plans/interf-default/`.
|
|
28
28
|
|
|
29
29
|
## Agent Skills And Plugins
|
|
30
30
|
|
|
@@ -36,12 +36,12 @@ Plugin bundles should stay thin:
|
|
|
36
36
|
- copied Interf Skill when the host requires a local copy
|
|
37
37
|
- MCP configuration that launches `interf mcp`
|
|
38
38
|
|
|
39
|
-
The MCP server implementation ships inside
|
|
39
|
+
The MCP server implementation ships inside `interf`.
|
|
40
40
|
|
|
41
41
|
## Before Opening A PR
|
|
42
42
|
|
|
43
43
|
Check that public docs do not reference private paths such as internal source
|
|
44
44
|
trees, maintainer-only docs, or local machine paths.
|
|
45
45
|
|
|
46
|
-
If you changed a
|
|
46
|
+
If you changed a Build Plan, test it with an installed `interf`
|
|
47
47
|
runtime before submitting the change.
|