@interf/compiler 0.9.5 → 0.16.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/README.md +135 -91
- package/TRADEMARKS.md +2 -13
- package/agent-skills/interf-actions/SKILL.md +143 -38
- package/agent-skills/interf-actions/references/cli.md +134 -67
- package/builtin-methods/interf-default/README.md +3 -4
- package/builtin-methods/interf-default/compile/stages/shape/SKILL.md +2 -2
- package/builtin-methods/interf-default/compile/stages/summarize/SKILL.md +2 -1
- package/builtin-methods/interf-default/improve/SKILL.md +1 -1
- package/builtin-methods/interf-default/method.json +10 -4
- package/builtin-methods/interf-default/method.schema.json +0 -9
- package/builtin-methods/interf-default/use/query/SKILL.md +5 -5
- package/dist/cli/commands/agents.d.ts +2 -0
- package/dist/cli/commands/agents.js +213 -0
- package/dist/cli/commands/compile.d.ts +8 -25
- package/dist/cli/commands/compile.js +83 -359
- package/dist/cli/commands/doctor.js +2 -2
- package/dist/cli/commands/login.d.ts +7 -0
- package/dist/cli/commands/login.js +39 -0
- package/dist/cli/commands/logout.d.ts +2 -0
- package/dist/cli/commands/logout.js +16 -0
- package/dist/cli/commands/mcp.d.ts +42 -0
- package/dist/cli/commands/mcp.js +239 -0
- package/dist/cli/commands/method.d.ts +2 -0
- package/dist/cli/commands/method.js +113 -0
- package/dist/cli/commands/prep.d.ts +2 -0
- package/dist/cli/commands/prep.js +152 -0
- package/dist/cli/commands/reset.d.ts +8 -1
- package/dist/cli/commands/reset.js +47 -26
- package/dist/cli/commands/runs.d.ts +2 -0
- package/dist/cli/commands/runs.js +120 -0
- package/dist/cli/commands/status.d.ts +6 -1
- package/dist/cli/commands/status.js +68 -111
- package/dist/cli/commands/verify.d.ts +7 -1
- package/dist/cli/commands/verify.js +69 -85
- package/dist/cli/commands/web.d.ts +0 -9
- package/dist/cli/commands/web.js +201 -121
- package/dist/cli/commands/wizard.d.ts +9 -0
- package/dist/cli/commands/wizard.js +689 -0
- package/dist/cli/index.d.ts +10 -7
- package/dist/cli/index.js +19 -12
- package/dist/compiler-ui/404.html +1 -1
- package/dist/compiler-ui/__next.__PAGE__.txt +2 -2
- package/dist/compiler-ui/__next._full.txt +3 -3
- package/dist/compiler-ui/__next._head.txt +1 -1
- package/dist/compiler-ui/__next._index.txt +2 -2
- package/dist/compiler-ui/__next._tree.txt +2 -2
- package/dist/compiler-ui/_next/static/chunks/{177mvn4rse235.js → 0jipmpez3_ehh.js} +16 -16
- package/dist/compiler-ui/_next/static/chunks/{18a8f2jkv3z.c.css → 13awzu4tooflw.css} +1 -1
- package/dist/compiler-ui/_not-found/__next._full.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._head.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._index.txt +2 -2
- package/dist/compiler-ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._not-found.txt +1 -1
- package/dist/compiler-ui/_not-found/__next._tree.txt +2 -2
- package/dist/compiler-ui/_not-found.html +1 -1
- package/dist/compiler-ui/_not-found.txt +2 -2
- package/dist/compiler-ui/index.html +1 -1
- package/dist/compiler-ui/index.txt +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/packages/contracts/index.d.ts +2 -1
- package/dist/packages/contracts/index.js +1 -0
- package/dist/packages/contracts/lib/preparation-paths.d.ts +117 -0
- package/dist/packages/contracts/lib/preparation-paths.js +177 -0
- package/dist/packages/contracts/lib/schema.d.ts +187 -13
- package/dist/packages/contracts/lib/schema.js +148 -3
- package/dist/packages/contracts/utils/filesystem.d.ts +9 -0
- package/dist/packages/contracts/utils/filesystem.js +142 -0
- package/dist/packages/{local-service → engine}/action-definitions.d.ts +14 -14
- package/dist/packages/{local-service → engine}/action-definitions.js +35 -29
- package/dist/packages/{local-service → engine}/action-planner.d.ts +1 -1
- package/dist/packages/{local-service → engine}/action-planner.js +3 -2
- package/dist/packages/{agents → engine/agents}/index.d.ts +3 -0
- package/dist/packages/{agents → engine/agents}/index.js +3 -0
- package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.js +2 -2
- package/dist/packages/engine/agents/lib/detection.d.ts +13 -0
- package/dist/packages/{agents → engine/agents}/lib/detection.js +11 -0
- package/dist/packages/{agents → engine/agents}/lib/executors.d.ts +2 -2
- package/dist/packages/{agents → engine/agents}/lib/shells.d.ts +5 -5
- package/dist/packages/{agents → engine/agents}/lib/shells.js +117 -58
- package/dist/packages/{agents → engine/agents}/lib/user-config.d.ts +4 -2
- package/dist/packages/engine/agents/lib/user-config.js +24 -0
- package/dist/packages/engine/agents/registry.d.ts +91 -0
- package/dist/packages/engine/agents/registry.js +321 -0
- package/dist/packages/engine/agents/role-executors.d.ts +35 -0
- package/dist/packages/engine/agents/role-executors.js +88 -0
- package/dist/packages/engine/agents/role-router.d.ts +66 -0
- package/dist/packages/engine/agents/role-router.js +73 -0
- package/dist/packages/{local-service → engine}/client.d.ts +59 -60
- package/dist/packages/{local-service → engine}/client.js +137 -145
- package/dist/packages/{compiler → engine/compile}/artifact-counts.js +1 -1
- package/dist/packages/{compiler → engine/compile}/compiled-paths.d.ts +9 -2
- package/dist/packages/{compiler → engine/compile}/compiled-paths.js +30 -15
- package/dist/packages/{compiler → engine/compile}/compiled-pipeline.d.ts +12 -1
- package/dist/packages/{compiler → engine/compile}/compiled-pipeline.js +39 -9
- package/dist/packages/{compiler → engine/compile}/compiled-schema.d.ts +2 -2
- package/dist/packages/{compiler → engine/compile}/compiled-schema.js +4 -4
- package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.d.ts +1 -1
- package/dist/packages/{compiler → engine/compile}/compiled-stage-plan.js +8 -4
- package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.d.ts +1 -1
- package/dist/packages/{compiler → engine/compile}/compiled-stage-runner.js +3 -3
- package/dist/packages/{compiler → engine/compile}/compiled-target.d.ts +3 -3
- package/dist/packages/{compiler → engine/compile}/compiled-target.js +3 -3
- package/dist/packages/{compiler → engine/compile}/discovery.js +1 -1
- package/dist/packages/{compiler → engine/compile}/index.d.ts +1 -0
- package/dist/packages/{compiler → engine/compile}/index.js +1 -0
- package/dist/packages/{compiler → engine/compile}/lib/schema.d.ts +26 -31
- package/dist/packages/{compiler → engine/compile}/lib/schema.js +2 -13
- package/dist/packages/engine/compile/method-runs.d.ts +14 -0
- package/dist/packages/{compiler → engine/compile}/method-runs.js +5 -6
- package/dist/packages/{compiler → engine/compile}/reset.js +3 -1
- package/dist/packages/{compiler → engine/compile}/runtime-acceptance.js +17 -14
- package/dist/packages/{compiler → engine/compile}/runtime-contracts.js +0 -3
- package/dist/packages/{compiler → engine/compile}/runtime-prompt.js +1 -1
- package/dist/packages/{compiler → engine/compile}/runtime-reconcile.d.ts +1 -1
- package/dist/packages/{compiler → engine/compile}/runtime-reconcile.js +12 -10
- package/dist/packages/{compiler → engine/compile}/runtime-runs.d.ts +1 -2
- package/dist/packages/{compiler → engine/compile}/runtime-runs.js +3 -43
- package/dist/packages/{compiler → engine/compile}/runtime-types.d.ts +1 -5
- package/dist/packages/{compiler → engine/compile}/runtime.d.ts +2 -2
- package/dist/packages/{compiler → engine/compile}/runtime.js +1 -1
- package/dist/packages/engine/compile/source-files.d.ts +46 -0
- package/dist/packages/engine/compile/source-files.js +149 -0
- package/dist/packages/engine/compile/state-artifacts.d.ts +9 -0
- package/dist/packages/{compiler → engine/compile}/state-artifacts.js +4 -3
- package/dist/packages/{compiler → engine/compile}/state-health.js +2 -2
- package/dist/packages/{compiler → engine/compile}/state-io.d.ts +3 -2
- package/dist/packages/{compiler → engine/compile}/state-io.js +13 -7
- package/dist/packages/{compiler → engine/compile}/state-paths.d.ts +2 -1
- package/dist/packages/engine/compile/state-paths.js +16 -0
- package/dist/packages/engine/compile/state-view.d.ts +5 -0
- package/dist/packages/{compiler → engine/compile}/state-view.js +20 -30
- package/dist/packages/engine/compile/state.d.ts +7 -0
- package/dist/packages/{compiler → engine/compile}/state.js +3 -3
- package/dist/packages/{compiler → engine/compile}/validate-compiled.js +2 -2
- package/dist/packages/{compiler → engine/compile}/validate.d.ts +1 -1
- package/dist/packages/{compiler → engine/compile}/validate.js +3 -3
- package/dist/packages/engine/connection-config.d.ts +38 -0
- package/dist/packages/engine/connection-config.js +75 -0
- package/dist/packages/{execution → engine/execution}/lib/schema.d.ts +52 -72
- package/dist/packages/{execution → engine/execution}/lib/schema.js +3 -3
- package/dist/packages/engine/index.d.ts +22 -0
- package/dist/packages/engine/index.js +15 -0
- package/dist/packages/engine/instance-paths.d.ts +100 -0
- package/dist/packages/engine/instance-paths.js +165 -0
- package/dist/packages/{local-service → engine}/lib/schema.d.ts +392 -2408
- package/dist/packages/{local-service → engine}/lib/schema.js +164 -76
- package/dist/packages/{local-service → engine}/native-run-handlers.d.ts +7 -5
- package/dist/packages/{local-service → engine}/native-run-handlers.js +71 -27
- package/dist/packages/engine/preparation-store.d.ts +104 -0
- package/dist/packages/engine/preparation-store.js +194 -0
- package/dist/packages/{local-service → engine}/readiness-check-draft.d.ts +2 -2
- package/dist/packages/engine/routes.d.ts +78 -0
- package/dist/packages/engine/routes.js +92 -0
- package/dist/packages/{local-service → engine}/run-observability.d.ts +3 -3
- package/dist/packages/{local-service → engine}/run-observability.js +25 -24
- package/dist/packages/engine/runtime-caches.d.ts +76 -0
- package/dist/packages/engine/runtime-caches.js +191 -0
- package/dist/packages/engine/runtime-event-applier.d.ts +12 -0
- package/dist/packages/engine/runtime-event-applier.js +177 -0
- package/dist/packages/engine/runtime-persistence.d.ts +47 -0
- package/dist/packages/engine/runtime-persistence.js +137 -0
- package/dist/packages/engine/runtime-proposal-helpers.d.ts +35 -0
- package/dist/packages/engine/runtime-proposal-helpers.js +251 -0
- package/dist/packages/engine/runtime-resource-builders.d.ts +52 -0
- package/dist/packages/engine/runtime-resource-builders.js +149 -0
- package/dist/packages/engine/runtime.d.ts +318 -0
- package/dist/packages/{local-service → engine}/runtime.js +835 -1011
- package/dist/packages/{local-service → engine}/server.d.ts +15 -0
- package/dist/packages/engine/server.js +1257 -0
- package/dist/packages/engine/service-registry.d.ts +47 -0
- package/dist/packages/engine/service-registry.js +137 -0
- package/dist/packages/{testing → engine/verify}/lib/schema.d.ts +11 -11
- package/dist/packages/{testing → engine/verify}/lib/schema.js +3 -3
- package/dist/packages/{testing → engine/verify}/readiness-check-run.d.ts +9 -16
- package/dist/packages/{testing → engine/verify}/readiness-check-run.js +38 -94
- package/dist/packages/{testing → engine/verify}/test-execution.js +6 -6
- package/dist/packages/{testing → engine/verify}/test-paths.js +5 -4
- package/dist/packages/{testing → engine/verify}/test-sandbox.d.ts +0 -1
- package/dist/packages/{testing → engine/verify}/test-sandbox.js +17 -33
- package/dist/packages/{testing → engine/verify}/test-specs.js +1 -1
- package/dist/packages/{testing → engine/verify}/test-targets.d.ts +1 -1
- package/dist/packages/{testing → engine/verify}/test-targets.js +9 -9
- package/dist/packages/{testing → engine/verify}/test.d.ts +1 -1
- package/dist/packages/{testing → engine/verify}/test.js +1 -1
- package/dist/packages/{method-authoring → methods/authoring}/method-authoring.d.ts +12 -4
- package/dist/packages/{method-authoring → methods/authoring}/method-authoring.js +70 -7
- package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.d.ts +2 -2
- package/dist/packages/{method-authoring → methods/authoring}/method-improvement.d.ts +4 -4
- package/dist/packages/{method-authoring → methods/authoring}/method-improvement.js +16 -10
- package/dist/packages/{method-package → methods/package}/builtin-compiled-method.d.ts +4 -5
- package/dist/packages/{method-package → methods/package}/builtin-compiled-method.js +10 -16
- package/dist/packages/{method-package → methods/package}/context-interface.d.ts +5 -41
- package/dist/packages/{method-package → methods/package}/context-interface.js +3 -25
- package/dist/packages/{method-package → methods/package}/interf-method-package.d.ts +4 -4
- package/dist/packages/{method-package → methods/package}/interf-method-package.js +24 -35
- package/dist/packages/{method-package → methods/package}/lib/package-root.js +2 -2
- package/dist/packages/{method-package → methods/package}/local-methods.d.ts +18 -8
- package/dist/packages/{method-package → methods/package}/local-methods.js +64 -45
- package/dist/packages/{method-package → methods/package}/method-definitions.d.ts +16 -36
- package/dist/packages/{method-package → methods/package}/method-definitions.js +53 -40
- package/dist/packages/{method-package → methods/package}/method-helpers.d.ts +2 -14
- package/dist/packages/{method-package → methods/package}/method-helpers.js +12 -46
- package/dist/packages/{method-package → methods/package}/method-review-paths.d.ts +1 -1
- package/dist/packages/{method-package → methods/package}/method-review-paths.js +1 -1
- package/dist/packages/{method-package → methods/package}/method-stage-runner.d.ts +4 -9
- package/dist/packages/{method-package → methods/package}/method-stage-runner.js +3 -31
- package/dist/packages/methods/package/user-methods.d.ts +17 -0
- package/dist/packages/methods/package/user-methods.js +77 -0
- package/dist/packages/{project-model → project}/index.d.ts +0 -1
- package/dist/packages/{project-model → project}/index.js +0 -1
- package/dist/packages/{project-model → project}/interf-bootstrap.d.ts +1 -1
- package/dist/packages/{project-model → project}/interf-bootstrap.js +1 -1
- package/dist/packages/{project-model → project}/interf-detect.d.ts +8 -3
- package/dist/packages/{project-model → project}/interf-detect.js +38 -38
- package/dist/packages/project/interf-scaffold.d.ts +3 -0
- package/dist/packages/{project-model → project}/interf-scaffold.js +30 -39
- package/dist/packages/{project-model → project}/lib/schema.d.ts +2 -2
- package/dist/packages/{project-model → project}/lib/schema.js +39 -2
- package/dist/packages/project/preparation-entries.d.ts +11 -0
- package/dist/packages/{project-model → project}/preparation-entries.js +14 -14
- package/dist/packages/{project-model → project}/source-config.d.ts +12 -12
- package/dist/packages/{project-model → project}/source-config.js +81 -53
- package/dist/packages/{project-model → project}/source-folders.d.ts +5 -5
- package/dist/packages/{project-model → project}/source-folders.js +16 -16
- package/package.json +8 -8
- package/CHANGELOG.md +0 -93
- package/LICENSE +0 -183
- package/dist/cli/commands/action-input-cli.d.ts +0 -25
- package/dist/cli/commands/action-input-cli.js +0 -73
- package/dist/cli/commands/control-path.d.ts +0 -11
- package/dist/cli/commands/control-path.js +0 -72
- package/dist/cli/commands/create-method-wizard.d.ts +0 -64
- package/dist/cli/commands/create-method-wizard.js +0 -434
- package/dist/cli/commands/create.d.ts +0 -6
- package/dist/cli/commands/create.js +0 -183
- package/dist/cli/commands/default.d.ts +0 -2
- package/dist/cli/commands/default.js +0 -39
- package/dist/cli/commands/executor-flow.d.ts +0 -29
- package/dist/cli/commands/executor-flow.js +0 -163
- package/dist/cli/commands/init.d.ts +0 -26
- package/dist/cli/commands/init.js +0 -771
- package/dist/cli/commands/list.d.ts +0 -2
- package/dist/cli/commands/list.js +0 -30
- package/dist/cli/commands/preparation-action.d.ts +0 -8
- package/dist/cli/commands/preparation-action.js +0 -29
- package/dist/cli/commands/preparation-picker.d.ts +0 -5
- package/dist/cli/commands/preparation-picker.js +0 -36
- package/dist/cli/commands/preparation-selection.d.ts +0 -6
- package/dist/cli/commands/preparation-selection.js +0 -11
- package/dist/cli/commands/service-action-flow.d.ts +0 -9
- package/dist/cli/commands/service-action-flow.js +0 -19
- package/dist/cli/commands/source-config-wizard.d.ts +0 -51
- package/dist/cli/commands/source-config-wizard.js +0 -670
- package/dist/cli/commands/test.d.ts +0 -17
- package/dist/cli/commands/test.js +0 -188
- package/dist/packages/agents/lib/detection.d.ts +0 -7
- package/dist/packages/agents/lib/user-config.js +0 -16
- package/dist/packages/compiler/method-runs.d.ts +0 -15
- package/dist/packages/compiler/raw-snapshot.d.ts +0 -49
- package/dist/packages/compiler/raw-snapshot.js +0 -101
- package/dist/packages/compiler/state-artifacts.d.ts +0 -8
- package/dist/packages/compiler/state-paths.js +0 -13
- package/dist/packages/compiler/state-view.d.ts +0 -4
- package/dist/packages/compiler/state.d.ts +0 -7
- package/dist/packages/local-service/index.d.ts +0 -18
- package/dist/packages/local-service/index.js +0 -13
- package/dist/packages/local-service/routes.d.ts +0 -32
- package/dist/packages/local-service/routes.js +0 -37
- package/dist/packages/local-service/runtime.d.ts +0 -133
- package/dist/packages/local-service/server.js +0 -627
- package/dist/packages/method-package/index.d.ts +0 -11
- package/dist/packages/method-package/index.js +0 -11
- package/dist/packages/method-package/method-stage-policy.d.ts +0 -5
- package/dist/packages/method-package/method-stage-policy.js +0 -31
- package/dist/packages/project-model/interf-scaffold.d.ts +0 -3
- package/dist/packages/project-model/preparation-entries.d.ts +0 -11
- package/dist/packages/project-model/project-paths.d.ts +0 -12
- package/dist/packages/project-model/project-paths.js +0 -33
- package/dist/packages/shared/filesystem.d.ts +0 -2
- package/dist/packages/shared/filesystem.js +0 -55
- /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → a3UiUF0DiMEbfWy_0gihg}/_buildManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → a3UiUF0DiMEbfWy_0gihg}/_clientMiddlewareManifest.js +0 -0
- /package/dist/compiler-ui/_next/static/{84FaeF3EzBF9kKTMjSEVN → a3UiUF0DiMEbfWy_0gihg}/_ssgManifest.js +0 -0
- /package/dist/packages/{shared → contracts/utils}/file-types.d.ts +0 -0
- /package/dist/packages/{shared → contracts/utils}/file-types.js +0 -0
- /package/dist/packages/{shared → contracts/utils}/logger.d.ts +0 -0
- /package/dist/packages/{shared → contracts/utils}/logger.js +0 -0
- /package/dist/packages/{shared → contracts/utils}/naming.d.ts +0 -0
- /package/dist/packages/{shared → contracts/utils}/naming.js +0 -0
- /package/dist/packages/{shared → contracts/utils}/parse.d.ts +0 -0
- /package/dist/packages/{shared → contracts/utils}/parse.js +0 -0
- /package/dist/packages/{shared → contracts/utils}/path-guards.d.ts +0 -0
- /package/dist/packages/{shared → contracts/utils}/path-guards.js +0 -0
- /package/dist/packages/{local-service → engine}/action-values.d.ts +0 -0
- /package/dist/packages/{local-service → engine}/action-values.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/agents.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/agents.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/args.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/args.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/chart-guidance.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/compiled-bootstrap.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/constants.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/constants.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/execution-profile.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/execution-profile.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/execution.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/execution.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/executors.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/logs.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/logs.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/preflight.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/preflight.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/render.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/render.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/schema.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/schema.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/status.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/status.js +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/types.d.ts +0 -0
- /package/dist/packages/{agents → engine/agents}/lib/types.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/artifact-counts.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/compiled-compile.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/compiled-compile.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/discovery.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/method-primitives.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/method-primitives.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/reset.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-acceptance.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-contracts.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-inventory.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-inventory.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-paths.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-paths.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-prompt.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/runtime-types.js +0 -0
- /package/dist/packages/{compiler → engine/compile}/state-health.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/validate-compiled.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/validate-helpers.d.ts +0 -0
- /package/dist/packages/{compiler → engine/compile}/validate-helpers.js +0 -0
- /package/dist/packages/{execution → engine/execution}/adapters.d.ts +0 -0
- /package/dist/packages/{execution → engine/execution}/adapters.js +0 -0
- /package/dist/packages/{execution → engine/execution}/events.d.ts +0 -0
- /package/dist/packages/{execution → engine/execution}/events.js +0 -0
- /package/dist/packages/{execution → engine/execution}/index.d.ts +0 -0
- /package/dist/packages/{execution → engine/execution}/index.js +0 -0
- /package/dist/packages/{local-service → engine}/readiness-check-draft.js +0 -0
- /package/dist/packages/{testing → engine/verify}/index.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/index.js +0 -0
- /package/dist/packages/{testing → engine/verify}/test-execution.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/test-paths.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/test-profile-presets.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/test-profile-presets.js +0 -0
- /package/dist/packages/{testing → engine/verify}/test-specs.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/test-types.d.ts +0 -0
- /package/dist/packages/{testing → engine/verify}/test-types.js +0 -0
- /package/dist/packages/{method-authoring → methods/authoring}/index.d.ts +0 -0
- /package/dist/packages/{method-authoring → methods/authoring}/index.js +0 -0
- /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.d.ts +0 -0
- /package/dist/packages/{method-authoring → methods/authoring}/lib/method-edit-utils.js +0 -0
- /package/dist/packages/{method-authoring → methods/authoring}/method-edit-session.js +0 -0
- /package/dist/packages/{method-package → methods/package}/lib/package-root.d.ts +0 -0
- /package/dist/packages/{project-model → project}/interf.d.ts +0 -0
- /package/dist/packages/{project-model → project}/interf.js +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type { RuntimeStatus, CompiledStage, CompiledState, CompiledHealth, ViewSection, ViewCard, CompiledViewSpec, SourceFiles, SourceSnapshot, StageInputs, } from "./lib/schema.js";
|
|
2
|
+
export { statePath, healthPath, viewSpecPath, sourceFilesPath, sourceSnapshotPath, } from "./state-paths.js";
|
|
3
|
+
export { loadState, saveState, loadCompiledHealth, saveCompiledHealth, loadCompiledViewSpec, loadCompiledSourceFiles, loadCompiledSourceSnapshot, saveCompiledViewSpec, initCompiledState, } from "./state-io.js";
|
|
4
|
+
export { refreshCompiledArtifacts, } from "./state-artifacts.js";
|
|
5
|
+
export { computeCompiledHealth, resolveCompiledStatus, resolveCompiledStage, } from "./state-health.js";
|
|
6
|
+
export { ensureCompiledViewSpec, ensureCompiledSourceFiles, ensureCompiledSourceSnapshot, normalizeCompiledViewSpec, } from "./state-view.js";
|
|
7
|
+
export declare function initializeCompiledRuntimeState(dirPath: string): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { statePath, healthPath, viewSpecPath,
|
|
2
|
-
export { loadState, saveState, loadCompiledHealth, saveCompiledHealth, loadCompiledViewSpec,
|
|
1
|
+
export { statePath, healthPath, viewSpecPath, sourceFilesPath, sourceSnapshotPath, } from "./state-paths.js";
|
|
2
|
+
export { loadState, saveState, loadCompiledHealth, saveCompiledHealth, loadCompiledViewSpec, loadCompiledSourceFiles, loadCompiledSourceSnapshot, saveCompiledViewSpec, initCompiledState, } from "./state-io.js";
|
|
3
3
|
export { refreshCompiledArtifacts, } from "./state-artifacts.js";
|
|
4
4
|
export { computeCompiledHealth, resolveCompiledStatus, resolveCompiledStage, } from "./state-health.js";
|
|
5
|
-
export { ensureCompiledViewSpec,
|
|
5
|
+
export { ensureCompiledViewSpec, ensureCompiledSourceFiles, ensureCompiledSourceSnapshot, normalizeCompiledViewSpec, } from "./state-view.js";
|
|
6
6
|
import { saveEmptyCompiledInventory, initCompiledState, saveState } from "./state-io.js";
|
|
7
7
|
import { refreshCompiledArtifacts } from "./state-artifacts.js";
|
|
8
8
|
export function initializeCompiledRuntimeState(dirPath) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { existsSync } from "node:fs";
|
|
2
2
|
import { discoverSourceFiles } from "./discovery.js";
|
|
3
3
|
import { METHOD_SCHEMA_FILE, findCompiledSchemaZone, readCompiledSchemaFile, methodSchemaExists, } from "./compiled-schema.js";
|
|
4
|
-
import { resolveSourceFolderPath } from "
|
|
4
|
+
import { resolveSourceFolderPath } from "../../project/interf-detect.js";
|
|
5
5
|
import { compiledInterfConfigPath, methodPackagePathForCompiled } from "./compiled-paths.js";
|
|
6
6
|
import { readCompiledConfig } from "./validate.js";
|
|
7
7
|
import { loadState } from "./state.js";
|
|
8
8
|
import { validateResolvedStageAcceptance, stageRecordFromState } from "./runtime-acceptance.js";
|
|
9
|
-
import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "
|
|
9
|
+
import { getActiveCompiledMethod, resolveRequiredCompiledMethodFromConfig, } from "../../methods/package/method-definitions.js";
|
|
10
10
|
import { countCompiledZoneArtifacts } from "./artifact-counts.js";
|
|
11
11
|
function methodSchemaPresent(dirPath) {
|
|
12
12
|
return methodSchemaExists(methodPackagePathForCompiled(dirPath));
|
|
@@ -3,9 +3,9 @@ import { basename, dirname, extname, join, resolve } from "node:path";
|
|
|
3
3
|
import { readCompiledSchemaFile } from "./compiled-schema.js";
|
|
4
4
|
import { compiledKnowledgeRootPath } from "./compiled-schema.js";
|
|
5
5
|
import { methodPackagePathForCompiled } from "./compiled-paths.js";
|
|
6
|
-
import { listFilesRecursive } from "
|
|
7
|
-
import { readInterfConfig } from "
|
|
8
|
-
import { parseJsonFrontmatter } from "
|
|
6
|
+
import { listFilesRecursive } from "../../contracts/utils/filesystem.js";
|
|
7
|
+
import { readInterfConfig } from "../../project/interf-detect.js";
|
|
8
|
+
import { parseJsonFrontmatter } from "../../contracts/utils/parse.js";
|
|
9
9
|
import { compiledInterfConfigPath } from "./compiled-paths.js";
|
|
10
10
|
const MIN_ABSTRACT_WORDS = 5;
|
|
11
11
|
const WIKILINK_PATTERN = /!?\[\[([^[\]]+)\]\]/g;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single CLI connection record at `~/.interf/connection.json`.
|
|
3
|
+
*
|
|
4
|
+
* The CLI is a thin authorized client of one connected instance. Switch by
|
|
5
|
+
* starting `interf web` (writes a local connection), `interf login` (writes a
|
|
6
|
+
* remote connection), or by passing `--url` / env vars to override per-call.
|
|
7
|
+
*
|
|
8
|
+
* No per-folder pointer files. No registry of multiple connections.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
export declare const ConnectionRecordSchema: z.ZodObject<{
|
|
12
|
+
url: z.ZodString;
|
|
13
|
+
auth_token: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
export type ConnectionRecord = z.infer<typeof ConnectionRecordSchema>;
|
|
16
|
+
export declare const INTERF_SERVICE_URL_ENV = "INTERF_SERVICE_URL";
|
|
17
|
+
export declare const INTERF_AUTH_TOKEN_ENV = "INTERF_AUTH_TOKEN";
|
|
18
|
+
/**
|
|
19
|
+
* Resolve the active connection.
|
|
20
|
+
*
|
|
21
|
+
* Order of precedence:
|
|
22
|
+
* 1. Explicit `urlOverride` argument (e.g. CLI --url flag).
|
|
23
|
+
* 2. `INTERF_SERVICE_URL` / `INTERF_AUTH_TOKEN` env vars.
|
|
24
|
+
* 3. `~/.interf/connection.json`.
|
|
25
|
+
* 4. null — caller must error with the connect-or-error hint.
|
|
26
|
+
*/
|
|
27
|
+
export declare function readActiveConnection(options?: {
|
|
28
|
+
urlOverride?: string | null;
|
|
29
|
+
authTokenOverride?: string | null;
|
|
30
|
+
}): ConnectionRecord | null;
|
|
31
|
+
/** Write a new connection record. Overwrites any existing record. */
|
|
32
|
+
export declare function writeConnection(record: ConnectionRecord): void;
|
|
33
|
+
/** Clear the connection record. No-op if missing. */
|
|
34
|
+
export declare function clearConnection(): void;
|
|
35
|
+
/** Ensure `~/.interf/` exists and is a directory. */
|
|
36
|
+
export declare function ensureInterfHome(): void;
|
|
37
|
+
/** Canonical message printed when a CLI command needs a connection but has none. */
|
|
38
|
+
export declare const CONNECT_OR_ERROR_HINT: string;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single CLI connection record at `~/.interf/connection.json`.
|
|
3
|
+
*
|
|
4
|
+
* The CLI is a thin authorized client of one connected instance. Switch by
|
|
5
|
+
* starting `interf web` (writes a local connection), `interf login` (writes a
|
|
6
|
+
* remote connection), or by passing `--url` / env vars to override per-call.
|
|
7
|
+
*
|
|
8
|
+
* No per-folder pointer files. No registry of multiple connections.
|
|
9
|
+
*/
|
|
10
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
11
|
+
import { dirname } from "node:path";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { connectionConfigPath, interfHomeRoot } from "./instance-paths.js";
|
|
14
|
+
export const ConnectionRecordSchema = z.object({
|
|
15
|
+
url: z.string().url(),
|
|
16
|
+
/** Bearer token for non-loopback connections. Null for loopback. */
|
|
17
|
+
auth_token: z.string().min(1).nullable().default(null),
|
|
18
|
+
}).strict();
|
|
19
|
+
export const INTERF_SERVICE_URL_ENV = "INTERF_SERVICE_URL";
|
|
20
|
+
export const INTERF_AUTH_TOKEN_ENV = "INTERF_AUTH_TOKEN";
|
|
21
|
+
/**
|
|
22
|
+
* Resolve the active connection.
|
|
23
|
+
*
|
|
24
|
+
* Order of precedence:
|
|
25
|
+
* 1. Explicit `urlOverride` argument (e.g. CLI --url flag).
|
|
26
|
+
* 2. `INTERF_SERVICE_URL` / `INTERF_AUTH_TOKEN` env vars.
|
|
27
|
+
* 3. `~/.interf/connection.json`.
|
|
28
|
+
* 4. null — caller must error with the connect-or-error hint.
|
|
29
|
+
*/
|
|
30
|
+
export function readActiveConnection(options = {}) {
|
|
31
|
+
const overrideUrl = options.urlOverride?.trim();
|
|
32
|
+
if (overrideUrl) {
|
|
33
|
+
return ConnectionRecordSchema.parse({
|
|
34
|
+
url: overrideUrl,
|
|
35
|
+
auth_token: options.authTokenOverride?.trim() || null,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
const envUrl = process.env[INTERF_SERVICE_URL_ENV]?.trim();
|
|
39
|
+
if (envUrl) {
|
|
40
|
+
return ConnectionRecordSchema.parse({
|
|
41
|
+
url: envUrl,
|
|
42
|
+
auth_token: process.env[INTERF_AUTH_TOKEN_ENV]?.trim() || null,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const configPath = connectionConfigPath();
|
|
46
|
+
if (!existsSync(configPath))
|
|
47
|
+
return null;
|
|
48
|
+
try {
|
|
49
|
+
const raw = readFileSync(configPath, "utf8");
|
|
50
|
+
return ConnectionRecordSchema.parse(JSON.parse(raw));
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/** Write a new connection record. Overwrites any existing record. */
|
|
57
|
+
export function writeConnection(record) {
|
|
58
|
+
const validated = ConnectionRecordSchema.parse(record);
|
|
59
|
+
const configPath = connectionConfigPath();
|
|
60
|
+
mkdirSync(dirname(configPath), { recursive: true });
|
|
61
|
+
writeFileSync(configPath, `${JSON.stringify(validated, null, 2)}\n`);
|
|
62
|
+
}
|
|
63
|
+
/** Clear the connection record. No-op if missing. */
|
|
64
|
+
export function clearConnection() {
|
|
65
|
+
const configPath = connectionConfigPath();
|
|
66
|
+
if (existsSync(configPath))
|
|
67
|
+
rmSync(configPath, { force: true });
|
|
68
|
+
}
|
|
69
|
+
/** Ensure `~/.interf/` exists and is a directory. */
|
|
70
|
+
export function ensureInterfHome() {
|
|
71
|
+
mkdirSync(interfHomeRoot(), { recursive: true });
|
|
72
|
+
}
|
|
73
|
+
/** Canonical message printed when a CLI command needs a connection but has none. */
|
|
74
|
+
export const CONNECT_OR_ERROR_HINT = "Not connected to any Interf instance.\n" +
|
|
75
|
+
"Start one with `interf web`, or set --url / `interf login` for a remote one.";
|
|
@@ -155,14 +155,14 @@ export declare const ObservableRunTypeSchema: z.ZodEnum<{
|
|
|
155
155
|
compile: "compile";
|
|
156
156
|
"method-authoring": "method-authoring";
|
|
157
157
|
"method-improvement": "method-improvement";
|
|
158
|
-
|
|
158
|
+
verify: "verify";
|
|
159
159
|
"readiness-check-draft": "readiness-check-draft";
|
|
160
160
|
job: "job";
|
|
161
161
|
}>;
|
|
162
162
|
export declare const ObservableRunStatusSchema: z.ZodEnum<{
|
|
163
|
+
succeeded: "succeeded";
|
|
163
164
|
failed: "failed";
|
|
164
165
|
running: "running";
|
|
165
|
-
succeeded: "succeeded";
|
|
166
166
|
cancelled: "cancelled";
|
|
167
167
|
queued: "queued";
|
|
168
168
|
}>;
|
|
@@ -176,33 +176,33 @@ export declare const ExecutionBackendKindSchema: z.ZodEnum<{
|
|
|
176
176
|
"workflow-sdk": "workflow-sdk";
|
|
177
177
|
}>;
|
|
178
178
|
export declare const CompileRunStatusSchema: z.ZodEnum<{
|
|
179
|
+
succeeded: "succeeded";
|
|
179
180
|
failed: "failed";
|
|
180
181
|
running: "running";
|
|
181
|
-
succeeded: "succeeded";
|
|
182
182
|
cancelled: "cancelled";
|
|
183
183
|
queued: "queued";
|
|
184
184
|
}>;
|
|
185
185
|
export declare const StageRunStatusSchema: z.ZodEnum<{
|
|
186
|
+
succeeded: "succeeded";
|
|
186
187
|
failed: "failed";
|
|
187
188
|
running: "running";
|
|
188
|
-
succeeded: "succeeded";
|
|
189
189
|
queued: "queued";
|
|
190
190
|
}>;
|
|
191
191
|
export declare const ArtifactRoleSchema: z.ZodEnum<{
|
|
192
|
-
output: "output";
|
|
193
192
|
runtime: "runtime";
|
|
193
|
+
output: "output";
|
|
194
194
|
source: "source";
|
|
195
|
-
test: "test";
|
|
196
195
|
proof: "proof";
|
|
196
|
+
test: "test";
|
|
197
197
|
}>;
|
|
198
198
|
export declare const ArtifactRefSchema: z.ZodObject<{
|
|
199
199
|
path: z.ZodString;
|
|
200
200
|
role: z.ZodEnum<{
|
|
201
|
-
output: "output";
|
|
202
201
|
runtime: "runtime";
|
|
202
|
+
output: "output";
|
|
203
203
|
source: "source";
|
|
204
|
-
test: "test";
|
|
205
204
|
proof: "proof";
|
|
205
|
+
test: "test";
|
|
206
206
|
}>;
|
|
207
207
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
208
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -222,15 +222,15 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
222
222
|
compile: "compile";
|
|
223
223
|
"method-authoring": "method-authoring";
|
|
224
224
|
"method-improvement": "method-improvement";
|
|
225
|
-
|
|
225
|
+
verify: "verify";
|
|
226
226
|
"readiness-check-draft": "readiness-check-draft";
|
|
227
227
|
job: "job";
|
|
228
228
|
}>;
|
|
229
229
|
title: z.ZodString;
|
|
230
230
|
status: z.ZodEnum<{
|
|
231
|
+
succeeded: "succeeded";
|
|
231
232
|
failed: "failed";
|
|
232
233
|
running: "running";
|
|
233
|
-
succeeded: "succeeded";
|
|
234
234
|
cancelled: "cancelled";
|
|
235
235
|
queued: "queued";
|
|
236
236
|
}>;
|
|
@@ -264,11 +264,11 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
264
264
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
265
265
|
path: z.ZodString;
|
|
266
266
|
role: z.ZodEnum<{
|
|
267
|
-
output: "output";
|
|
268
267
|
runtime: "runtime";
|
|
268
|
+
output: "output";
|
|
269
269
|
source: "source";
|
|
270
|
-
test: "test";
|
|
271
270
|
proof: "proof";
|
|
271
|
+
test: "test";
|
|
272
272
|
}>;
|
|
273
273
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
274
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -303,12 +303,10 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
303
303
|
latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
304
|
compile: z.ZodNullable<z.ZodObject<{
|
|
305
305
|
gate: z.ZodEnum<{
|
|
306
|
-
"preparation-config": "preparation-config";
|
|
307
306
|
"portable-context": "portable-context";
|
|
307
|
+
"preparation-config": "preparation-config";
|
|
308
308
|
"compile-run": "compile-run";
|
|
309
309
|
"readiness-checks": "readiness-checks";
|
|
310
|
-
"source-baseline": "source-baseline";
|
|
311
|
-
"portable-context-check": "portable-context-check";
|
|
312
310
|
"checks-current": "checks-current";
|
|
313
311
|
}>;
|
|
314
312
|
ok: z.ZodBoolean;
|
|
@@ -352,12 +350,10 @@ export declare const RunObservabilitySchema: z.ZodObject<{
|
|
|
352
350
|
}, z.core.$strict>;
|
|
353
351
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
354
352
|
gate: z.ZodEnum<{
|
|
355
|
-
"preparation-config": "preparation-config";
|
|
356
353
|
"portable-context": "portable-context";
|
|
354
|
+
"preparation-config": "preparation-config";
|
|
357
355
|
"compile-run": "compile-run";
|
|
358
356
|
"readiness-checks": "readiness-checks";
|
|
359
|
-
"source-baseline": "source-baseline";
|
|
360
|
-
"portable-context-check": "portable-context-check";
|
|
361
357
|
"checks-current": "checks-current";
|
|
362
358
|
}>;
|
|
363
359
|
ok: z.ZodBoolean;
|
|
@@ -451,11 +447,11 @@ export declare const ProofRecordSchema: z.ZodObject<{
|
|
|
451
447
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
452
448
|
path: z.ZodString;
|
|
453
449
|
role: z.ZodEnum<{
|
|
454
|
-
output: "output";
|
|
455
450
|
runtime: "runtime";
|
|
451
|
+
output: "output";
|
|
456
452
|
source: "source";
|
|
457
|
-
test: "test";
|
|
458
453
|
proof: "proof";
|
|
454
|
+
test: "test";
|
|
459
455
|
}>;
|
|
460
456
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
457
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -521,11 +517,11 @@ export declare const ArtifactWrittenEventSchema: z.ZodObject<{
|
|
|
521
517
|
artifact: z.ZodObject<{
|
|
522
518
|
path: z.ZodString;
|
|
523
519
|
role: z.ZodEnum<{
|
|
524
|
-
output: "output";
|
|
525
520
|
runtime: "runtime";
|
|
521
|
+
output: "output";
|
|
526
522
|
source: "source";
|
|
527
|
-
test: "test";
|
|
528
523
|
proof: "proof";
|
|
524
|
+
test: "test";
|
|
529
525
|
}>;
|
|
530
526
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
527
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -548,11 +544,11 @@ export declare const ProofUpdatedEventSchema: z.ZodObject<{
|
|
|
548
544
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
549
545
|
path: z.ZodString;
|
|
550
546
|
role: z.ZodEnum<{
|
|
551
|
-
output: "output";
|
|
552
547
|
runtime: "runtime";
|
|
548
|
+
output: "output";
|
|
553
549
|
source: "source";
|
|
554
|
-
test: "test";
|
|
555
550
|
proof: "proof";
|
|
551
|
+
test: "test";
|
|
556
552
|
}>;
|
|
557
553
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
558
554
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -617,8 +613,8 @@ export declare const ChecksEvaluatedEventSchema: z.ZodObject<{
|
|
|
617
613
|
passed: z.ZodNumber;
|
|
618
614
|
total: z.ZodNumber;
|
|
619
615
|
target: z.ZodOptional<z.ZodEnum<{
|
|
616
|
+
"source-files": "source-files";
|
|
620
617
|
compiled: "compiled";
|
|
621
|
-
raw: "raw";
|
|
622
618
|
}>>;
|
|
623
619
|
checks_fingerprint: z.ZodOptional<z.ZodString>;
|
|
624
620
|
stale: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -653,12 +649,10 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
|
|
|
653
649
|
latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
654
650
|
compile: z.ZodNullable<z.ZodObject<{
|
|
655
651
|
gate: z.ZodEnum<{
|
|
656
|
-
"preparation-config": "preparation-config";
|
|
657
652
|
"portable-context": "portable-context";
|
|
653
|
+
"preparation-config": "preparation-config";
|
|
658
654
|
"compile-run": "compile-run";
|
|
659
655
|
"readiness-checks": "readiness-checks";
|
|
660
|
-
"source-baseline": "source-baseline";
|
|
661
|
-
"portable-context-check": "portable-context-check";
|
|
662
656
|
"checks-current": "checks-current";
|
|
663
657
|
}>;
|
|
664
658
|
ok: z.ZodBoolean;
|
|
@@ -702,12 +696,10 @@ export declare const ReadinessUpdatedEventSchema: z.ZodObject<{
|
|
|
702
696
|
}, z.core.$strict>;
|
|
703
697
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
704
698
|
gate: z.ZodEnum<{
|
|
705
|
-
"preparation-config": "preparation-config";
|
|
706
699
|
"portable-context": "portable-context";
|
|
700
|
+
"preparation-config": "preparation-config";
|
|
707
701
|
"compile-run": "compile-run";
|
|
708
702
|
"readiness-checks": "readiness-checks";
|
|
709
|
-
"source-baseline": "source-baseline";
|
|
710
|
-
"portable-context-check": "portable-context-check";
|
|
711
703
|
"checks-current": "checks-current";
|
|
712
704
|
}>;
|
|
713
705
|
ok: z.ZodBoolean;
|
|
@@ -765,11 +757,11 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
765
757
|
artifact: z.ZodObject<{
|
|
766
758
|
path: z.ZodString;
|
|
767
759
|
role: z.ZodEnum<{
|
|
768
|
-
output: "output";
|
|
769
760
|
runtime: "runtime";
|
|
761
|
+
output: "output";
|
|
770
762
|
source: "source";
|
|
771
|
-
test: "test";
|
|
772
763
|
proof: "proof";
|
|
764
|
+
test: "test";
|
|
773
765
|
}>;
|
|
774
766
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
775
767
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -791,11 +783,11 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
791
783
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
792
784
|
path: z.ZodString;
|
|
793
785
|
role: z.ZodEnum<{
|
|
794
|
-
output: "output";
|
|
795
786
|
runtime: "runtime";
|
|
787
|
+
output: "output";
|
|
796
788
|
source: "source";
|
|
797
|
-
test: "test";
|
|
798
789
|
proof: "proof";
|
|
790
|
+
test: "test";
|
|
799
791
|
}>;
|
|
800
792
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
793
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -854,8 +846,8 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
854
846
|
passed: z.ZodNumber;
|
|
855
847
|
total: z.ZodNumber;
|
|
856
848
|
target: z.ZodOptional<z.ZodEnum<{
|
|
849
|
+
"source-files": "source-files";
|
|
857
850
|
compiled: "compiled";
|
|
858
|
-
raw: "raw";
|
|
859
851
|
}>>;
|
|
860
852
|
checks_fingerprint: z.ZodOptional<z.ZodString>;
|
|
861
853
|
stale: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -889,12 +881,10 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
889
881
|
latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
882
|
compile: z.ZodNullable<z.ZodObject<{
|
|
891
883
|
gate: z.ZodEnum<{
|
|
892
|
-
"preparation-config": "preparation-config";
|
|
893
884
|
"portable-context": "portable-context";
|
|
885
|
+
"preparation-config": "preparation-config";
|
|
894
886
|
"compile-run": "compile-run";
|
|
895
887
|
"readiness-checks": "readiness-checks";
|
|
896
|
-
"source-baseline": "source-baseline";
|
|
897
|
-
"portable-context-check": "portable-context-check";
|
|
898
888
|
"checks-current": "checks-current";
|
|
899
889
|
}>;
|
|
900
890
|
ok: z.ZodBoolean;
|
|
@@ -938,12 +928,10 @@ export declare const InterfRunEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
938
928
|
}, z.core.$strict>;
|
|
939
929
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
940
930
|
gate: z.ZodEnum<{
|
|
941
|
-
"preparation-config": "preparation-config";
|
|
942
931
|
"portable-context": "portable-context";
|
|
932
|
+
"preparation-config": "preparation-config";
|
|
943
933
|
"compile-run": "compile-run";
|
|
944
934
|
"readiness-checks": "readiness-checks";
|
|
945
|
-
"source-baseline": "source-baseline";
|
|
946
|
-
"portable-context-check": "portable-context-check";
|
|
947
935
|
"checks-current": "checks-current";
|
|
948
936
|
}>;
|
|
949
937
|
ok: z.ZodBoolean;
|
|
@@ -972,9 +960,9 @@ export declare const StageRunSchema: z.ZodObject<{
|
|
|
972
960
|
stage_index: z.ZodOptional<z.ZodNumber>;
|
|
973
961
|
stage_total: z.ZodOptional<z.ZodNumber>;
|
|
974
962
|
status: z.ZodEnum<{
|
|
963
|
+
succeeded: "succeeded";
|
|
975
964
|
failed: "failed";
|
|
976
965
|
running: "running";
|
|
977
|
-
succeeded: "succeeded";
|
|
978
966
|
queued: "queued";
|
|
979
967
|
}>;
|
|
980
968
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1005,11 +993,11 @@ export declare const StageRunSchema: z.ZodObject<{
|
|
|
1005
993
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1006
994
|
path: z.ZodString;
|
|
1007
995
|
role: z.ZodEnum<{
|
|
1008
|
-
output: "output";
|
|
1009
996
|
runtime: "runtime";
|
|
997
|
+
output: "output";
|
|
1010
998
|
source: "source";
|
|
1011
|
-
test: "test";
|
|
1012
999
|
proof: "proof";
|
|
1000
|
+
test: "test";
|
|
1013
1001
|
}>;
|
|
1014
1002
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1015
1003
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,11 +1019,11 @@ export declare const StageRunSchema: z.ZodObject<{
|
|
|
1031
1019
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1032
1020
|
path: z.ZodString;
|
|
1033
1021
|
role: z.ZodEnum<{
|
|
1034
|
-
output: "output";
|
|
1035
1022
|
runtime: "runtime";
|
|
1023
|
+
output: "output";
|
|
1036
1024
|
source: "source";
|
|
1037
|
-
test: "test";
|
|
1038
1025
|
proof: "proof";
|
|
1026
|
+
test: "test";
|
|
1039
1027
|
}>;
|
|
1040
1028
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1041
1029
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1055,9 +1043,9 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1055
1043
|
version: z.ZodLiteral<1>;
|
|
1056
1044
|
run_id: z.ZodString;
|
|
1057
1045
|
status: z.ZodEnum<{
|
|
1046
|
+
succeeded: "succeeded";
|
|
1058
1047
|
failed: "failed";
|
|
1059
1048
|
running: "running";
|
|
1060
|
-
succeeded: "succeeded";
|
|
1061
1049
|
cancelled: "cancelled";
|
|
1062
1050
|
queued: "queued";
|
|
1063
1051
|
}>;
|
|
@@ -1079,9 +1067,9 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1079
1067
|
stage_index: z.ZodOptional<z.ZodNumber>;
|
|
1080
1068
|
stage_total: z.ZodOptional<z.ZodNumber>;
|
|
1081
1069
|
status: z.ZodEnum<{
|
|
1070
|
+
succeeded: "succeeded";
|
|
1082
1071
|
failed: "failed";
|
|
1083
1072
|
running: "running";
|
|
1084
|
-
succeeded: "succeeded";
|
|
1085
1073
|
queued: "queued";
|
|
1086
1074
|
}>;
|
|
1087
1075
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1112,11 +1100,11 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1112
1100
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1113
1101
|
path: z.ZodString;
|
|
1114
1102
|
role: z.ZodEnum<{
|
|
1115
|
-
output: "output";
|
|
1116
1103
|
runtime: "runtime";
|
|
1104
|
+
output: "output";
|
|
1117
1105
|
source: "source";
|
|
1118
|
-
test: "test";
|
|
1119
1106
|
proof: "proof";
|
|
1107
|
+
test: "test";
|
|
1120
1108
|
}>;
|
|
1121
1109
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1122
1110
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1138,11 +1126,11 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1138
1126
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1139
1127
|
path: z.ZodString;
|
|
1140
1128
|
role: z.ZodEnum<{
|
|
1141
|
-
output: "output";
|
|
1142
1129
|
runtime: "runtime";
|
|
1130
|
+
output: "output";
|
|
1143
1131
|
source: "source";
|
|
1144
|
-
test: "test";
|
|
1145
1132
|
proof: "proof";
|
|
1133
|
+
test: "test";
|
|
1146
1134
|
}>;
|
|
1147
1135
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1148
1136
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1193,11 +1181,11 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1193
1181
|
artifact: z.ZodObject<{
|
|
1194
1182
|
path: z.ZodString;
|
|
1195
1183
|
role: z.ZodEnum<{
|
|
1196
|
-
output: "output";
|
|
1197
1184
|
runtime: "runtime";
|
|
1185
|
+
output: "output";
|
|
1198
1186
|
source: "source";
|
|
1199
|
-
test: "test";
|
|
1200
1187
|
proof: "proof";
|
|
1188
|
+
test: "test";
|
|
1201
1189
|
}>;
|
|
1202
1190
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1203
1191
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1219,11 +1207,11 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1219
1207
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1220
1208
|
path: z.ZodString;
|
|
1221
1209
|
role: z.ZodEnum<{
|
|
1222
|
-
output: "output";
|
|
1223
1210
|
runtime: "runtime";
|
|
1211
|
+
output: "output";
|
|
1224
1212
|
source: "source";
|
|
1225
|
-
test: "test";
|
|
1226
1213
|
proof: "proof";
|
|
1214
|
+
test: "test";
|
|
1227
1215
|
}>;
|
|
1228
1216
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1229
1217
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1282,8 +1270,8 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1282
1270
|
passed: z.ZodNumber;
|
|
1283
1271
|
total: z.ZodNumber;
|
|
1284
1272
|
target: z.ZodOptional<z.ZodEnum<{
|
|
1273
|
+
"source-files": "source-files";
|
|
1285
1274
|
compiled: "compiled";
|
|
1286
|
-
raw: "raw";
|
|
1287
1275
|
}>>;
|
|
1288
1276
|
checks_fingerprint: z.ZodOptional<z.ZodString>;
|
|
1289
1277
|
stale: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1317,12 +1305,10 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1317
1305
|
latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1318
1306
|
compile: z.ZodNullable<z.ZodObject<{
|
|
1319
1307
|
gate: z.ZodEnum<{
|
|
1320
|
-
"preparation-config": "preparation-config";
|
|
1321
1308
|
"portable-context": "portable-context";
|
|
1309
|
+
"preparation-config": "preparation-config";
|
|
1322
1310
|
"compile-run": "compile-run";
|
|
1323
1311
|
"readiness-checks": "readiness-checks";
|
|
1324
|
-
"source-baseline": "source-baseline";
|
|
1325
|
-
"portable-context-check": "portable-context-check";
|
|
1326
1312
|
"checks-current": "checks-current";
|
|
1327
1313
|
}>;
|
|
1328
1314
|
ok: z.ZodBoolean;
|
|
@@ -1366,12 +1352,10 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1366
1352
|
}, z.core.$strict>;
|
|
1367
1353
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1368
1354
|
gate: z.ZodEnum<{
|
|
1369
|
-
"preparation-config": "preparation-config";
|
|
1370
1355
|
"portable-context": "portable-context";
|
|
1356
|
+
"preparation-config": "preparation-config";
|
|
1371
1357
|
"compile-run": "compile-run";
|
|
1372
1358
|
"readiness-checks": "readiness-checks";
|
|
1373
|
-
"source-baseline": "source-baseline";
|
|
1374
|
-
"portable-context-check": "portable-context-check";
|
|
1375
1359
|
"checks-current": "checks-current";
|
|
1376
1360
|
}>;
|
|
1377
1361
|
ok: z.ZodBoolean;
|
|
@@ -1403,11 +1387,11 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1403
1387
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1404
1388
|
path: z.ZodString;
|
|
1405
1389
|
role: z.ZodEnum<{
|
|
1406
|
-
output: "output";
|
|
1407
1390
|
runtime: "runtime";
|
|
1391
|
+
output: "output";
|
|
1408
1392
|
source: "source";
|
|
1409
|
-
test: "test";
|
|
1410
1393
|
proof: "proof";
|
|
1394
|
+
test: "test";
|
|
1411
1395
|
}>;
|
|
1412
1396
|
stage_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1413
1397
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -1443,12 +1427,10 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1443
1427
|
latest_test_run_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
1428
|
compile: z.ZodNullable<z.ZodObject<{
|
|
1445
1429
|
gate: z.ZodEnum<{
|
|
1446
|
-
"preparation-config": "preparation-config";
|
|
1447
1430
|
"portable-context": "portable-context";
|
|
1431
|
+
"preparation-config": "preparation-config";
|
|
1448
1432
|
"compile-run": "compile-run";
|
|
1449
1433
|
"readiness-checks": "readiness-checks";
|
|
1450
|
-
"source-baseline": "source-baseline";
|
|
1451
|
-
"portable-context-check": "portable-context-check";
|
|
1452
1434
|
"checks-current": "checks-current";
|
|
1453
1435
|
}>;
|
|
1454
1436
|
ok: z.ZodBoolean;
|
|
@@ -1492,12 +1474,10 @@ export declare const CompileRunSchema: z.ZodObject<{
|
|
|
1492
1474
|
}, z.core.$strict>;
|
|
1493
1475
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1494
1476
|
gate: z.ZodEnum<{
|
|
1495
|
-
"preparation-config": "preparation-config";
|
|
1496
1477
|
"portable-context": "portable-context";
|
|
1478
|
+
"preparation-config": "preparation-config";
|
|
1497
1479
|
"compile-run": "compile-run";
|
|
1498
1480
|
"readiness-checks": "readiness-checks";
|
|
1499
|
-
"source-baseline": "source-baseline";
|
|
1500
|
-
"portable-context-check": "portable-context-check";
|
|
1501
1481
|
"checks-current": "checks-current";
|
|
1502
1482
|
}>;
|
|
1503
1483
|
ok: z.ZodBoolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema, ReadinessStateSchema, PreparationNameSchema, } from "
|
|
2
|
+
import { RuntimeExecutorInfoSchema, RuntimeStageSchema, MethodIdSchema, ReadinessStateSchema, PreparationNameSchema, } from "../../../contracts/lib/schema.js";
|
|
3
3
|
const RunIdSchema = z.string().min(1);
|
|
4
4
|
const JsonObjectSchema = z.record(z.string(), z.unknown());
|
|
5
5
|
export const MethodTraceRunStatusSchema = z.enum([
|
|
@@ -72,7 +72,7 @@ export const MethodTraceSchema = z.object({
|
|
|
72
72
|
}).strict();
|
|
73
73
|
export const ObservableRunTypeSchema = z.enum([
|
|
74
74
|
"compile",
|
|
75
|
-
"
|
|
75
|
+
"verify",
|
|
76
76
|
"readiness-check-draft",
|
|
77
77
|
"method-authoring",
|
|
78
78
|
"method-improvement",
|
|
@@ -234,7 +234,7 @@ export const ChecksEvaluatedEventSchema = RunEventBaseSchema.extend({
|
|
|
234
234
|
type: z.literal("checks.evaluated"),
|
|
235
235
|
passed: z.number().int().min(0),
|
|
236
236
|
total: z.number().int().min(0),
|
|
237
|
-
target: z.enum(["
|
|
237
|
+
target: z.enum(["source-files", "compiled"]).optional(),
|
|
238
238
|
checks_fingerprint: z.string().min(1).optional(),
|
|
239
239
|
stale: z.boolean().optional(),
|
|
240
240
|
test_run_id: z.string().min(1).optional(),
|