@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,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { BuildPlanIdSchema, PreparationNameSchema } from "../../contracts/lib/schema.js";
|
|
3
|
+
export { BuildPlanIdSchema, PreparationNameSchema, } from "../../contracts/lib/schema.js";
|
|
4
4
|
export declare const SourceReadinessCheckSchema: z.ZodObject<{
|
|
5
5
|
id: z.ZodOptional<z.ZodString>;
|
|
6
6
|
question: z.ZodString;
|
|
@@ -14,12 +14,101 @@ export declare const SourceReadinessCheckSchema: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
strictness: z.ZodOptional<z.ZodString>;
|
|
16
16
|
}, z.core.$strict>;
|
|
17
|
+
export declare const RequestedArtifactCheckSchema: z.ZodObject<{
|
|
18
|
+
label: z.ZodString;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
export declare const RequestedArtifactOutputSchema: z.ZodObject<{
|
|
21
|
+
path: z.ZodOptional<z.ZodString>;
|
|
22
|
+
shape: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"path">;
|
|
24
|
+
path: z.ZodString;
|
|
25
|
+
artifact_kind: z.ZodEnum<{
|
|
26
|
+
file: "file";
|
|
27
|
+
directory: "directory";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
kind: z.ZodEnum<{
|
|
33
|
+
file_exists: "file_exists";
|
|
34
|
+
min_file_count: "min_file_count";
|
|
35
|
+
min_file_count_matches_source: "min_file_count_matches_source";
|
|
36
|
+
frontmatter_valid: "frontmatter_valid";
|
|
37
|
+
frontmatter_required_keys: "frontmatter_required_keys";
|
|
38
|
+
wikilinks_valid: "wikilinks_valid";
|
|
39
|
+
must_not_contain: "must_not_contain";
|
|
40
|
+
must_contain: "must_contain";
|
|
41
|
+
qa_match: "qa_match";
|
|
42
|
+
}>;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
45
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
}, z.core.$strict>>>;
|
|
47
|
+
stage_hint: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export declare const RequestedArtifactSchema: z.ZodPreprocess<z.ZodObject<{
|
|
50
|
+
id: z.ZodOptional<z.ZodString>;
|
|
51
|
+
title: z.ZodString;
|
|
52
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
53
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
55
|
+
label: z.ZodString;
|
|
56
|
+
}, z.core.$loose>]>>>;
|
|
57
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
path: z.ZodOptional<z.ZodString>;
|
|
59
|
+
shape: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"path">;
|
|
61
|
+
path: z.ZodString;
|
|
62
|
+
artifact_kind: z.ZodEnum<{
|
|
63
|
+
file: "file";
|
|
64
|
+
directory: "directory";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
kind: z.ZodEnum<{
|
|
70
|
+
file_exists: "file_exists";
|
|
71
|
+
min_file_count: "min_file_count";
|
|
72
|
+
min_file_count_matches_source: "min_file_count_matches_source";
|
|
73
|
+
frontmatter_valid: "frontmatter_valid";
|
|
74
|
+
frontmatter_required_keys: "frontmatter_required_keys";
|
|
75
|
+
wikilinks_valid: "wikilinks_valid";
|
|
76
|
+
must_not_contain: "must_not_contain";
|
|
77
|
+
must_contain: "must_contain";
|
|
78
|
+
qa_match: "qa_match";
|
|
79
|
+
}>;
|
|
80
|
+
description: z.ZodOptional<z.ZodString>;
|
|
81
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
83
|
+
}, z.core.$strict>>>;
|
|
84
|
+
stage_hint: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
export declare const SourceProfileItemSchema: z.ZodObject<{
|
|
88
|
+
name: z.ZodOptional<z.ZodString>;
|
|
89
|
+
path: z.ZodOptional<z.ZodString>;
|
|
90
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
91
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
note: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$loose>;
|
|
94
|
+
export declare const SourceProfileSchema: z.ZodObject<{
|
|
95
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
96
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
path: z.ZodOptional<z.ZodString>;
|
|
99
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
100
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
note: z.ZodOptional<z.ZodString>;
|
|
102
|
+
}, z.core.$loose>>>;
|
|
103
|
+
observations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
104
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
105
|
+
}, z.core.$loose>;
|
|
17
106
|
export declare const SourcePreparationConfigSchema: z.ZodObject<{
|
|
18
107
|
id: z.ZodOptional<z.ZodString>;
|
|
19
108
|
name: z.ZodString;
|
|
20
109
|
path: z.ZodString;
|
|
21
110
|
about: z.ZodOptional<z.ZodString>;
|
|
22
|
-
|
|
111
|
+
build_plan: z.ZodOptional<z.ZodString>;
|
|
23
112
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
24
113
|
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
25
114
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -35,15 +124,65 @@ export declare const SourcePreparationConfigSchema: z.ZodObject<{
|
|
|
35
124
|
}, z.core.$strip>>;
|
|
36
125
|
strictness: z.ZodOptional<z.ZodString>;
|
|
37
126
|
}, z.core.$strict>>>;
|
|
127
|
+
requested_artifacts: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
128
|
+
id: z.ZodOptional<z.ZodString>;
|
|
129
|
+
title: z.ZodString;
|
|
130
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
131
|
+
description: z.ZodOptional<z.ZodString>;
|
|
132
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
133
|
+
label: z.ZodString;
|
|
134
|
+
}, z.core.$loose>]>>>;
|
|
135
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
path: z.ZodOptional<z.ZodString>;
|
|
137
|
+
shape: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
kind: z.ZodLiteral<"path">;
|
|
139
|
+
path: z.ZodString;
|
|
140
|
+
artifact_kind: z.ZodEnum<{
|
|
141
|
+
file: "file";
|
|
142
|
+
directory: "directory";
|
|
143
|
+
}>;
|
|
144
|
+
}, z.core.$strict>>;
|
|
145
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
kind: z.ZodEnum<{
|
|
148
|
+
file_exists: "file_exists";
|
|
149
|
+
min_file_count: "min_file_count";
|
|
150
|
+
min_file_count_matches_source: "min_file_count_matches_source";
|
|
151
|
+
frontmatter_valid: "frontmatter_valid";
|
|
152
|
+
frontmatter_required_keys: "frontmatter_required_keys";
|
|
153
|
+
wikilinks_valid: "wikilinks_valid";
|
|
154
|
+
must_not_contain: "must_not_contain";
|
|
155
|
+
must_contain: "must_contain";
|
|
156
|
+
qa_match: "qa_match";
|
|
157
|
+
}>;
|
|
158
|
+
description: z.ZodOptional<z.ZodString>;
|
|
159
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
160
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strict>>>;
|
|
162
|
+
stage_hint: z.ZodOptional<z.ZodString>;
|
|
163
|
+
}, z.core.$strict>>;
|
|
164
|
+
}, z.core.$strict>>>>;
|
|
165
|
+
source_profile: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
167
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
168
|
+
name: z.ZodOptional<z.ZodString>;
|
|
169
|
+
path: z.ZodOptional<z.ZodString>;
|
|
170
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
171
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
note: z.ZodOptional<z.ZodString>;
|
|
173
|
+
}, z.core.$loose>>>;
|
|
174
|
+
observations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
175
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
176
|
+
}, z.core.$loose>>;
|
|
38
177
|
}, z.core.$strict>;
|
|
39
178
|
export declare const SourceFolderBindingSchema: z.ZodObject<{
|
|
40
179
|
path: z.ZodString;
|
|
41
180
|
}, z.core.$loose>;
|
|
42
|
-
export declare const
|
|
43
|
-
type: z.ZodLiteral<"
|
|
181
|
+
export declare const VerifiableContextInterfConfigSchema: z.ZodObject<{
|
|
182
|
+
type: z.ZodLiteral<"verifiable-context">;
|
|
44
183
|
name: z.ZodString;
|
|
45
184
|
about: z.ZodOptional<z.ZodString>;
|
|
46
|
-
|
|
185
|
+
build_plan: z.ZodString;
|
|
47
186
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
48
187
|
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
49
188
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -59,7 +198,7 @@ export declare const CompiledInterfConfigSchema: z.ZodObject<{
|
|
|
59
198
|
}, z.core.$strip>>;
|
|
60
199
|
strictness: z.ZodOptional<z.ZodString>;
|
|
61
200
|
}, z.core.$strict>>>;
|
|
62
|
-
|
|
201
|
+
build_plan_origin: z.ZodOptional<z.ZodObject<{
|
|
63
202
|
selected: z.ZodString;
|
|
64
203
|
local_draft: z.ZodOptional<z.ZodBoolean>;
|
|
65
204
|
}, z.core.$strip>>;
|
|
@@ -70,10 +209,10 @@ export declare const CompiledInterfConfigSchema: z.ZodObject<{
|
|
|
70
209
|
}, z.core.$strip>;
|
|
71
210
|
}, z.core.$loose>;
|
|
72
211
|
export declare const InterfConfigSchema: z.ZodObject<{
|
|
73
|
-
type: z.ZodLiteral<"
|
|
212
|
+
type: z.ZodLiteral<"verifiable-context">;
|
|
74
213
|
name: z.ZodString;
|
|
75
214
|
about: z.ZodOptional<z.ZodString>;
|
|
76
|
-
|
|
215
|
+
build_plan: z.ZodString;
|
|
77
216
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
78
217
|
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
79
218
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -89,7 +228,7 @@ export declare const InterfConfigSchema: z.ZodObject<{
|
|
|
89
228
|
}, z.core.$strip>>;
|
|
90
229
|
strictness: z.ZodOptional<z.ZodString>;
|
|
91
230
|
}, z.core.$strict>>>;
|
|
92
|
-
|
|
231
|
+
build_plan_origin: z.ZodOptional<z.ZodObject<{
|
|
93
232
|
selected: z.ZodString;
|
|
94
233
|
local_draft: z.ZodOptional<z.ZodBoolean>;
|
|
95
234
|
}, z.core.$strip>>;
|
|
@@ -108,7 +247,7 @@ export declare const SourceFolderConfigSchema: z.ZodObject<{
|
|
|
108
247
|
name: z.ZodString;
|
|
109
248
|
path: z.ZodString;
|
|
110
249
|
about: z.ZodOptional<z.ZodString>;
|
|
111
|
-
|
|
250
|
+
build_plan: z.ZodOptional<z.ZodString>;
|
|
112
251
|
max_attempts: z.ZodOptional<z.ZodNumber>;
|
|
113
252
|
max_loops: z.ZodOptional<z.ZodNumber>;
|
|
114
253
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -124,12 +263,66 @@ export declare const SourceFolderConfigSchema: z.ZodObject<{
|
|
|
124
263
|
}, z.core.$strip>>;
|
|
125
264
|
strictness: z.ZodOptional<z.ZodString>;
|
|
126
265
|
}, z.core.$strict>>>;
|
|
266
|
+
requested_artifacts: z.ZodOptional<z.ZodArray<z.ZodPreprocess<z.ZodObject<{
|
|
267
|
+
id: z.ZodOptional<z.ZodString>;
|
|
268
|
+
title: z.ZodString;
|
|
269
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
270
|
+
description: z.ZodOptional<z.ZodString>;
|
|
271
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
272
|
+
label: z.ZodString;
|
|
273
|
+
}, z.core.$loose>]>>>;
|
|
274
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
275
|
+
path: z.ZodOptional<z.ZodString>;
|
|
276
|
+
shape: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
kind: z.ZodLiteral<"path">;
|
|
278
|
+
path: z.ZodString;
|
|
279
|
+
artifact_kind: z.ZodEnum<{
|
|
280
|
+
file: "file";
|
|
281
|
+
directory: "directory";
|
|
282
|
+
}>;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
kind: z.ZodEnum<{
|
|
287
|
+
file_exists: "file_exists";
|
|
288
|
+
min_file_count: "min_file_count";
|
|
289
|
+
min_file_count_matches_source: "min_file_count_matches_source";
|
|
290
|
+
frontmatter_valid: "frontmatter_valid";
|
|
291
|
+
frontmatter_required_keys: "frontmatter_required_keys";
|
|
292
|
+
wikilinks_valid: "wikilinks_valid";
|
|
293
|
+
must_not_contain: "must_not_contain";
|
|
294
|
+
must_contain: "must_contain";
|
|
295
|
+
qa_match: "qa_match";
|
|
296
|
+
}>;
|
|
297
|
+
description: z.ZodOptional<z.ZodString>;
|
|
298
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
299
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
300
|
+
}, z.core.$strict>>>;
|
|
301
|
+
stage_hint: z.ZodOptional<z.ZodString>;
|
|
302
|
+
}, z.core.$strict>>;
|
|
303
|
+
}, z.core.$strict>>>>;
|
|
304
|
+
source_profile: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
306
|
+
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
308
|
+
path: z.ZodOptional<z.ZodString>;
|
|
309
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
310
|
+
page_count: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
note: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, z.core.$loose>>>;
|
|
313
|
+
observations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
314
|
+
limitations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
315
|
+
}, z.core.$loose>>;
|
|
127
316
|
}, z.core.$strict>>>;
|
|
128
317
|
}, z.core.$strict>;
|
|
129
318
|
export type SourceFolderBinding = z.infer<typeof SourceFolderBindingSchema>;
|
|
319
|
+
export type RequestedArtifactCheck = z.infer<typeof RequestedArtifactCheckSchema>;
|
|
320
|
+
export type RequestedArtifact = z.infer<typeof RequestedArtifactSchema>;
|
|
321
|
+
export type RequestedArtifactOutput = z.infer<typeof RequestedArtifactOutputSchema>;
|
|
130
322
|
export type SourceReadinessCheck = z.infer<typeof SourceReadinessCheckSchema>;
|
|
323
|
+
export type SourceProfile = z.infer<typeof SourceProfileSchema>;
|
|
131
324
|
export type PreparationName = z.infer<typeof PreparationNameSchema>;
|
|
132
|
-
export type
|
|
325
|
+
export type BuildPlanId = z.infer<typeof BuildPlanIdSchema>;
|
|
133
326
|
export type SourcePreparationConfig = z.infer<typeof SourcePreparationConfigSchema>;
|
|
134
327
|
export type InterfConfig = z.infer<typeof InterfConfigSchema>;
|
|
135
328
|
export type SourceFolderConfig = z.infer<typeof SourceFolderConfigSchema>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { isAbsolute, normalize } from "node:path";
|
|
3
|
-
import { InterfIdPattern,
|
|
4
|
-
export {
|
|
3
|
+
import { ArtifactPathShapeSchema, CheckSchema, InterfIdPattern, BuildPlanIdSchema, PreparationNameSchema, SourceBuildMaxAttemptsSchema, SourceBuildMaxLoopsSchema, TestCaseExpectSchema, } from "../../contracts/lib/schema.js";
|
|
4
|
+
export { BuildPlanIdSchema, PreparationNameSchema, } from "../../contracts/lib/schema.js";
|
|
5
5
|
/**
|
|
6
6
|
* Absolute paths that an attacker-controlled config must never reach. The
|
|
7
|
-
*
|
|
7
|
+
* build runtime treats `preparation.path` as a filesystem instruction — letting
|
|
8
8
|
* a browser-tab forge `/etc` or `/sys` could mutate or read system state.
|
|
9
9
|
* The list mirrors the CSO review allowlist.
|
|
10
10
|
*/
|
|
@@ -45,6 +45,49 @@ export const SourceReadinessCheckSchema = z.object({
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
export const RequestedArtifactCheckSchema = z.object({
|
|
49
|
+
label: z.string().min(1),
|
|
50
|
+
}).passthrough();
|
|
51
|
+
export const RequestedArtifactOutputSchema = z.object({
|
|
52
|
+
path: z.string().min(1).optional(),
|
|
53
|
+
shape: ArtifactPathShapeSchema.optional(),
|
|
54
|
+
checks: z.array(CheckSchema).default([]),
|
|
55
|
+
stage_hint: z.string().min(1).optional(),
|
|
56
|
+
}).strict();
|
|
57
|
+
const RequestedArtifactObjectSchema = z.object({
|
|
58
|
+
id: z.string().min(1).optional(),
|
|
59
|
+
title: z.string().min(1),
|
|
60
|
+
purpose: z.string().min(1).optional(),
|
|
61
|
+
description: z.string().min(1).optional(),
|
|
62
|
+
checks: z.array(z.union([z.string().min(1), RequestedArtifactCheckSchema])).default([]),
|
|
63
|
+
output: RequestedArtifactOutputSchema.optional(),
|
|
64
|
+
}).strict();
|
|
65
|
+
export const RequestedArtifactSchema = z.preprocess((value) => {
|
|
66
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
67
|
+
return value;
|
|
68
|
+
const record = value;
|
|
69
|
+
if (typeof record.title === "string" && record.title.trim().length > 0)
|
|
70
|
+
return value;
|
|
71
|
+
const title = typeof record.label === "string"
|
|
72
|
+
? record.label
|
|
73
|
+
: typeof record.name === "string"
|
|
74
|
+
? record.name
|
|
75
|
+
: null;
|
|
76
|
+
return title ? { ...record, title } : value;
|
|
77
|
+
}, RequestedArtifactObjectSchema);
|
|
78
|
+
export const SourceProfileItemSchema = z.object({
|
|
79
|
+
name: z.string().min(1).optional(),
|
|
80
|
+
path: z.string().min(1).optional(),
|
|
81
|
+
kind: z.string().min(1).optional(),
|
|
82
|
+
page_count: z.number().int().nonnegative().optional(),
|
|
83
|
+
note: z.string().min(1).optional(),
|
|
84
|
+
}).passthrough();
|
|
85
|
+
export const SourceProfileSchema = z.object({
|
|
86
|
+
summary: z.string().min(1).optional(),
|
|
87
|
+
items: z.array(SourceProfileItemSchema).default([]),
|
|
88
|
+
observations: z.array(z.string().min(1)).default([]),
|
|
89
|
+
limitations: z.array(z.string().min(1)).default([]),
|
|
90
|
+
}).passthrough();
|
|
48
91
|
export const SourcePreparationConfigSchema = z.object({
|
|
49
92
|
id: z.string().regex(InterfIdPattern).optional(),
|
|
50
93
|
name: PreparationNameSchema,
|
|
@@ -58,24 +101,26 @@ export const SourcePreparationConfigSchema = z.object({
|
|
|
58
101
|
message: "Preparation path may not contain `..` segments.",
|
|
59
102
|
}),
|
|
60
103
|
about: z.string().min(1).optional(),
|
|
61
|
-
|
|
62
|
-
max_attempts:
|
|
63
|
-
max_loops:
|
|
104
|
+
build_plan: BuildPlanIdSchema.optional(),
|
|
105
|
+
max_attempts: SourceBuildMaxAttemptsSchema.optional(),
|
|
106
|
+
max_loops: SourceBuildMaxLoopsSchema.optional(),
|
|
64
107
|
checks: z.array(SourceReadinessCheckSchema).default([]),
|
|
108
|
+
requested_artifacts: z.array(RequestedArtifactSchema).optional(),
|
|
109
|
+
source_profile: SourceProfileSchema.optional(),
|
|
65
110
|
}).strict();
|
|
66
111
|
export const SourceFolderBindingSchema = z.object({
|
|
67
112
|
path: z.string().min(1),
|
|
68
113
|
}).passthrough();
|
|
69
|
-
export const
|
|
70
|
-
type: z.literal("
|
|
114
|
+
export const VerifiableContextInterfConfigSchema = z.object({
|
|
115
|
+
type: z.literal("verifiable-context"),
|
|
71
116
|
name: PreparationNameSchema,
|
|
72
117
|
about: z.string().optional(),
|
|
73
|
-
|
|
74
|
-
max_attempts:
|
|
75
|
-
max_loops:
|
|
118
|
+
build_plan: BuildPlanIdSchema,
|
|
119
|
+
max_attempts: SourceBuildMaxAttemptsSchema.optional(),
|
|
120
|
+
max_loops: SourceBuildMaxLoopsSchema.optional(),
|
|
76
121
|
checks: z.array(SourceReadinessCheckSchema).default([]),
|
|
77
|
-
|
|
78
|
-
selected:
|
|
122
|
+
build_plan_origin: z.object({
|
|
123
|
+
selected: BuildPlanIdSchema,
|
|
79
124
|
local_draft: z.boolean().optional(),
|
|
80
125
|
}).optional(),
|
|
81
126
|
source: z.object({
|
|
@@ -84,7 +129,7 @@ export const CompiledInterfConfigSchema = z.object({
|
|
|
84
129
|
preparation_path: z.string().optional(),
|
|
85
130
|
}),
|
|
86
131
|
}).passthrough();
|
|
87
|
-
export const InterfConfigSchema =
|
|
132
|
+
export const InterfConfigSchema = VerifiableContextInterfConfigSchema;
|
|
88
133
|
export const SourceFolderConfigSchema = z.object({
|
|
89
134
|
source_folder: SourceFolderBindingSchema.optional(),
|
|
90
135
|
preparations: z.array(SourcePreparationConfigSchema).default([]),
|
|
@@ -5,7 +5,7 @@ export interface SavedPreparationEntry {
|
|
|
5
5
|
localDraft: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare function listSavedPreparationEntries(prepDataDir: string): SavedPreparationEntry[];
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function findBuiltVerifiableContextPath(prepDataDir: string, preparationName: string): string | null;
|
|
9
9
|
export declare function findSavedPreparationConfig(prepDataDir: string, preparationName: string): SourcePreparationConfig | null;
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
10
|
+
export declare function createVerifiableContextFromConfig(prepDataDir: string, preparationConfig: SourcePreparationConfig): string;
|
|
11
|
+
export declare function ensureVerifiableContextFromConfig(prepDataDir: string, preparationConfig: SourcePreparationConfig): string;
|
|
@@ -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;
|