@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
|
@@ -33,25 +33,25 @@ export const INTERF_SERVICE_ACTIONS = {
|
|
|
33
33
|
id: "create-preparation",
|
|
34
34
|
serviceAction: "preparation-setup",
|
|
35
35
|
title: "Create Preparation",
|
|
36
|
-
description: "Save a Source Folder
|
|
36
|
+
description: "Save a Source Folder + Method binding so future runs can be invoked by name.",
|
|
37
37
|
},
|
|
38
|
-
|
|
39
|
-
id: "
|
|
38
|
+
compileRun: {
|
|
39
|
+
id: "compile-run",
|
|
40
40
|
serviceAction: "compile",
|
|
41
|
-
title: "
|
|
42
|
-
description: "
|
|
41
|
+
title: "Compile Method",
|
|
42
|
+
description: "Run the chosen Method against this Source Folder and write portable context.",
|
|
43
43
|
},
|
|
44
44
|
selectMethod: {
|
|
45
45
|
id: "select-method",
|
|
46
46
|
serviceAction: "preparation-setup",
|
|
47
47
|
title: "Select Method",
|
|
48
|
-
description: "
|
|
48
|
+
description: "Choose which Method this saved binding should use for future runs.",
|
|
49
49
|
},
|
|
50
50
|
createMethod: {
|
|
51
51
|
id: "create-method",
|
|
52
52
|
serviceAction: "method-authoring",
|
|
53
|
-
title: "
|
|
54
|
-
description: "Draft a reusable local Method
|
|
53
|
+
title: "Draft Method",
|
|
54
|
+
description: "Draft a reusable local Method that captures a repeatable agent-work pattern.",
|
|
55
55
|
},
|
|
56
56
|
methodChange: {
|
|
57
57
|
id: "method-change",
|
|
@@ -86,8 +86,8 @@ export const INTERF_SERVICE_ACTIONS = {
|
|
|
86
86
|
improvePreparation: {
|
|
87
87
|
id: "improve-preparation",
|
|
88
88
|
serviceAction: "method-improvement",
|
|
89
|
-
title: "Improve
|
|
90
|
-
description: "Use readiness evidence to
|
|
89
|
+
title: "Improve Method",
|
|
90
|
+
description: "Use readiness evidence to refine the Method this saved binding uses.",
|
|
91
91
|
},
|
|
92
92
|
};
|
|
93
93
|
function optionalLine(label, value) {
|
|
@@ -470,11 +470,11 @@ export function buildCreatePreparationActionDefinition(context) {
|
|
|
470
470
|
return {
|
|
471
471
|
id: INTERF_SERVICE_ACTIONS.createPreparation.id,
|
|
472
472
|
title: INTERF_SERVICE_ACTIONS.createPreparation.title,
|
|
473
|
-
description: "Describe the agent job. Interf saves the Preparation through the local service and starts its first
|
|
473
|
+
description: "Describe the agent job. Interf saves the Preparation through the local service and starts its first compile run.",
|
|
474
474
|
submitLabel: "Confirm",
|
|
475
475
|
initialValues: {
|
|
476
476
|
name,
|
|
477
|
-
path: context.
|
|
477
|
+
path: context.prepDataDir,
|
|
478
478
|
about: "",
|
|
479
479
|
method: "interf-default",
|
|
480
480
|
readiness_notes: "",
|
|
@@ -505,6 +505,14 @@ export function buildCreatePreparationActionDefinition(context) {
|
|
|
505
505
|
};
|
|
506
506
|
},
|
|
507
507
|
fields: [
|
|
508
|
+
{
|
|
509
|
+
name: "path",
|
|
510
|
+
label: "Source folder",
|
|
511
|
+
type: "text",
|
|
512
|
+
help: "Absolute path to the folder Interf will read from. Files stay where they are; Interf reads them by reference.",
|
|
513
|
+
context: "Saved as the Preparation's source binding and sent as typed action input.",
|
|
514
|
+
placeholder: context.prepDataDir || "/Users/you/Documents/your-folder",
|
|
515
|
+
},
|
|
508
516
|
{
|
|
509
517
|
name: "about",
|
|
510
518
|
label: "Agent job",
|
|
@@ -543,10 +551,10 @@ export function buildCreatePreparationActionDefinition(context) {
|
|
|
543
551
|
],
|
|
544
552
|
};
|
|
545
553
|
}
|
|
546
|
-
export function
|
|
554
|
+
export function buildCompileRunActionDefinition(context) {
|
|
547
555
|
return {
|
|
548
|
-
id: INTERF_SERVICE_ACTIONS.
|
|
549
|
-
title: INTERF_SERVICE_ACTIONS.
|
|
556
|
+
id: INTERF_SERVICE_ACTIONS.compileRun.id,
|
|
557
|
+
title: INTERF_SERVICE_ACTIONS.compileRun.title,
|
|
550
558
|
description: "Build portable context for this Preparation. Interf will run the saved Method against the source folder and record a visible run.",
|
|
551
559
|
submitLabel: "Run",
|
|
552
560
|
initialValues: {
|
|
@@ -557,7 +565,7 @@ export function buildPrepareRunActionDefinition(context) {
|
|
|
557
565
|
},
|
|
558
566
|
schema: prepareRunSchema(),
|
|
559
567
|
valuesPreview: (values) => ({
|
|
560
|
-
action_type: INTERF_SERVICE_ACTIONS.
|
|
568
|
+
action_type: INTERF_SERVICE_ACTIONS.compileRun.serviceAction,
|
|
561
569
|
preparation: inputValue(values, "preparation"),
|
|
562
570
|
method: inputValue(values, "method"),
|
|
563
571
|
source_folder_path: inputValue(values, "source_folder_path"),
|
|
@@ -566,13 +574,12 @@ export function buildPrepareRunActionDefinition(context) {
|
|
|
566
574
|
buildDraft: (values) => ({
|
|
567
575
|
preparation: inputValue(values, "preparation"),
|
|
568
576
|
values: {
|
|
569
|
-
action_type: INTERF_SERVICE_ACTIONS.
|
|
577
|
+
action_type: INTERF_SERVICE_ACTIONS.compileRun.serviceAction,
|
|
570
578
|
preparation: inputValue(values, "preparation"),
|
|
571
579
|
...(maybeActionValue(inputValue(values, "method")) ? { method: inputValue(values, "method") } : {}),
|
|
572
580
|
},
|
|
573
581
|
message: [
|
|
574
|
-
`
|
|
575
|
-
maybeActionValue(inputValue(values, "method")) ? `Method: ${inputValue(values, "method")}` : null,
|
|
582
|
+
`Compile Method ${inputValue(values, "method") || "(saved selection)"} for Preparation ${inputValue(values, "preparation")}.`,
|
|
576
583
|
maybeActionValue(inputValue(values, "about")) ? `Agent work: ${inputValue(values, "about")}` : null,
|
|
577
584
|
"Build portable context from the saved Source Folder and selected Method.",
|
|
578
585
|
"Use the attached typed action input as the source of truth.",
|
|
@@ -602,7 +609,7 @@ export function buildPrepareRunActionDefinition(context) {
|
|
|
602
609
|
readOnly: true,
|
|
603
610
|
advanced: true,
|
|
604
611
|
help: "The work this Preparation is meant to support.",
|
|
605
|
-
context: "Preserved as context for the
|
|
612
|
+
context: "Preserved as context for the compile-run proposal.",
|
|
606
613
|
placeholder: "No saved job description.",
|
|
607
614
|
},
|
|
608
615
|
{
|
|
@@ -617,8 +624,8 @@ export function buildPrepareRunActionDefinition(context) {
|
|
|
617
624
|
],
|
|
618
625
|
};
|
|
619
626
|
}
|
|
620
|
-
export function
|
|
621
|
-
const definition =
|
|
627
|
+
export function buildCompileRunActionDraft(context) {
|
|
628
|
+
const definition = buildCompileRunActionDefinition(context);
|
|
622
629
|
return definition.buildDraft(definition.initialValues);
|
|
623
630
|
}
|
|
624
631
|
export function buildSelectMethodActionDefinition(context) {
|
|
@@ -631,7 +638,7 @@ export function buildSelectMethodActionDefinition(context) {
|
|
|
631
638
|
return {
|
|
632
639
|
id: INTERF_SERVICE_ACTIONS.selectMethod.id,
|
|
633
640
|
title: INTERF_SERVICE_ACTIONS.selectMethod.title,
|
|
634
|
-
description: "Choose which Method this Preparation uses for future
|
|
641
|
+
description: "Choose which Method this Preparation uses for future compile runs. This saves the selection without running prepare.",
|
|
635
642
|
submitLabel: "Confirm",
|
|
636
643
|
initialValues: {
|
|
637
644
|
name: context.name,
|
|
@@ -662,7 +669,7 @@ export function buildSelectMethodActionDefinition(context) {
|
|
|
662
669
|
name: "method",
|
|
663
670
|
label: "Method",
|
|
664
671
|
type: "select",
|
|
665
|
-
help: "The Method future
|
|
672
|
+
help: "The Method future compile runs should use.",
|
|
666
673
|
context: "Saved on the existing Preparation.",
|
|
667
674
|
options: methodChoiceOptions(context.methods),
|
|
668
675
|
},
|
|
@@ -773,9 +780,9 @@ export function buildCreateMethodActionDefinition(context) {
|
|
|
773
780
|
label: "Readiness guidance",
|
|
774
781
|
type: "textarea",
|
|
775
782
|
rows: 3,
|
|
776
|
-
help: "What
|
|
777
|
-
context: "Guides
|
|
778
|
-
placeholder: "Describe the evidence that should make
|
|
783
|
+
help: "What this Method output should be able to prove.",
|
|
784
|
+
context: "Guides readiness checks. Method acceptance criteria stay separate.",
|
|
785
|
+
placeholder: "Describe the evidence that should make this Method output ready.",
|
|
779
786
|
},
|
|
780
787
|
{
|
|
781
788
|
name: "method_id",
|
|
@@ -1020,7 +1027,7 @@ export function buildPreparationChangeActionDefinition(context) {
|
|
|
1020
1027
|
name: "method",
|
|
1021
1028
|
label: "Method",
|
|
1022
1029
|
type: "text",
|
|
1023
|
-
help: "The Method future
|
|
1030
|
+
help: "The Method future compile runs should use.",
|
|
1024
1031
|
context: "Saved on this Preparation.",
|
|
1025
1032
|
placeholder: "interf-default",
|
|
1026
1033
|
},
|
|
@@ -1122,7 +1129,6 @@ export function buildReadinessActionDraft(options) {
|
|
|
1122
1129
|
values: {
|
|
1123
1130
|
action_type: INTERF_SERVICE_ACTIONS.checkReadiness.serviceAction,
|
|
1124
1131
|
preparation: options.preparation,
|
|
1125
|
-
mode: "both",
|
|
1126
1132
|
},
|
|
1127
1133
|
};
|
|
1128
1134
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MethodExecutor } from "
|
|
1
|
+
import type { MethodExecutor } from "./agents/lib/executors.js";
|
|
2
2
|
import type { LocalServiceActionPlanningContext } from "./runtime.js";
|
|
3
3
|
import { type ActionProposalCreateRequest, type ActionProposalPlan } from "./lib/schema.js";
|
|
4
4
|
export declare function buildActionPlannerPrompt(request: ActionProposalCreateRequest, context: LocalServiceActionPlanningContext, outputPath: string): string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { methodIdForSourcePreparationConfig, } from "../methods/method-resolution.js";
|
|
4
|
-
import { PACKAGE_ROOT } from "../
|
|
4
|
+
import { PACKAGE_ROOT } from "../methods/package/lib/package-root.js";
|
|
5
|
+
import { asPreparationDataDir, preparationServiceActionPlansRoot, } from "../contracts/lib/preparation-paths.js";
|
|
5
6
|
import { ActionProposalPlanSchema, } from "./lib/schema.js";
|
|
6
7
|
function extractJsonObject(text) {
|
|
7
8
|
try {
|
|
@@ -105,7 +106,7 @@ JSON schema:
|
|
|
105
106
|
`;
|
|
106
107
|
}
|
|
107
108
|
export async function planActionProposalWithExecutor(options) {
|
|
108
|
-
const planRoot = join(options.context.sourcePath,
|
|
109
|
+
const planRoot = join(preparationServiceActionPlansRoot(asPreparationDataDir(options.context.sourcePath)), Date.now().toString(36));
|
|
109
110
|
mkdirSync(planRoot, { recursive: true });
|
|
110
111
|
const outputPath = join(planRoot, "proposal.json");
|
|
111
112
|
const prompt = buildActionPlannerPrompt(options.request, options.context, outputPath);
|
|
@@ -14,5 +14,8 @@ export * as executors from "./lib/executors.js";
|
|
|
14
14
|
export * as schema from "./lib/schema.js";
|
|
15
15
|
export * as userConfig from "./lib/user-config.js";
|
|
16
16
|
export * as compiledBootstrap from "./lib/compiled-bootstrap.js";
|
|
17
|
+
export * as registry from "./registry.js";
|
|
18
|
+
export * as roleRouter from "./role-router.js";
|
|
19
|
+
export * as roleExecutors from "./role-executors.js";
|
|
17
20
|
export type { Agent, } from "./lib/types.js";
|
|
18
21
|
export type { MethodExecutionProfile, MethodExecutor, MethodExecutorKind, } from "./lib/executors.js";
|
|
@@ -14,3 +14,6 @@ export * as executors from "./lib/executors.js";
|
|
|
14
14
|
export * as schema from "./lib/schema.js";
|
|
15
15
|
export * as userConfig from "./lib/user-config.js";
|
|
16
16
|
export * as compiledBootstrap from "./lib/compiled-bootstrap.js";
|
|
17
|
+
export * as registry from "./registry.js";
|
|
18
|
+
export * as roleRouter from "./role-router.js";
|
|
19
|
+
export * as roleExecutors from "./role-executors.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { basename } from "node:path";
|
|
2
|
-
import { readInterfConfig } from "
|
|
3
|
-
import { resolveMethodId } from "
|
|
2
|
+
import { readInterfConfig } from "../../../project/interf-detect.js";
|
|
3
|
+
import { resolveMethodId } from "../../../methods/method-resolution.js";
|
|
4
4
|
import { projectCompiledQueryShell, renderClaudeBootstrap } from "./shells.js";
|
|
5
5
|
export { renderClaudeBootstrap };
|
|
6
6
|
export function refreshCompiledBootstrapGuidance(dirPath) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Agent } from "./types.js";
|
|
2
|
+
export declare function detectAgents(): Agent[];
|
|
3
|
+
/**
|
|
4
|
+
* Whether the executable named in an agent's `command` field resolves on
|
|
5
|
+
* PATH. Custom agents may register commands like `"opencode --prompt"`,
|
|
6
|
+
* so we only check the first whitespace-separated token.
|
|
7
|
+
*/
|
|
8
|
+
export declare function agentCommandAvailable(command: string): boolean;
|
|
9
|
+
export declare function supportsAutomatedRuns(agent: Agent): boolean;
|
|
10
|
+
export declare function resolveAgent(): {
|
|
11
|
+
agent: Agent | null;
|
|
12
|
+
error?: string;
|
|
13
|
+
};
|
|
@@ -19,6 +19,17 @@ function commandExists(command) {
|
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether the executable named in an agent's `command` field resolves on
|
|
24
|
+
* PATH. Custom agents may register commands like `"opencode --prompt"`,
|
|
25
|
+
* so we only check the first whitespace-separated token.
|
|
26
|
+
*/
|
|
27
|
+
export function agentCommandAvailable(command) {
|
|
28
|
+
const firstToken = command.trim().split(/\s+/)[0];
|
|
29
|
+
if (!firstToken)
|
|
30
|
+
return false;
|
|
31
|
+
return commandExists(firstToken);
|
|
32
|
+
}
|
|
22
33
|
export function supportsAutomatedRuns(agent) {
|
|
23
34
|
return agent.name === "claude-code" || agent.name === "codex";
|
|
24
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RuntimeExecutorInfo } from "
|
|
1
|
+
import type { RuntimeExecutorInfo } from "../../../contracts/lib/schema.js";
|
|
2
2
|
import type { Agent } from "./types.js";
|
|
3
3
|
export type MethodExecutorKind = "local-agent" | "connected-provider" | "managed";
|
|
4
4
|
export interface MethodExecutionProfile {
|
|
@@ -21,7 +21,7 @@ export interface MethodExecutor {
|
|
|
21
21
|
executionProfile?: MethodExecutionProfile;
|
|
22
22
|
execute(rootPath: string, prompt: string, options?: MethodExecuteOptions): Promise<number>;
|
|
23
23
|
}
|
|
24
|
-
export type { RuntimeExecutorInfo } from "
|
|
24
|
+
export type { RuntimeExecutorInfo } from "../../../contracts/lib/schema.js";
|
|
25
25
|
export declare function buildRuntimeExecutorInfo(executor: MethodExecutor): RuntimeExecutorInfo;
|
|
26
26
|
export declare function createLocalAgentExecutor(agent: Agent, executionProfile?: MethodExecutionProfile): MethodExecutor;
|
|
27
27
|
export declare function resolveLocalExecutor(options?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { MethodImprovementContext } from "../../
|
|
2
|
-
import type { RuntimeContractType } from "
|
|
3
|
-
import type { SourceReadinessCheck } from "
|
|
4
|
-
import { type ContextInterfaceZoneId as MethodZoneId } from "
|
|
1
|
+
import type { MethodImprovementContext } from "../../compile/lib/schema.js";
|
|
2
|
+
import type { RuntimeContractType } from "../../../contracts/lib/schema.js";
|
|
3
|
+
import type { SourceReadinessCheck } from "../../../project/lib/schema.js";
|
|
4
|
+
import { type ContextInterfaceZoneId as MethodZoneId } from "../../../methods/package/context-interface.js";
|
|
5
5
|
export interface NativeStageDefinition {
|
|
6
6
|
id: string;
|
|
7
7
|
label: string;
|
|
@@ -40,7 +40,7 @@ export declare function projectCompiledQueryShell(compiledPath: string, compiled
|
|
|
40
40
|
methodOriginSelected?: string | null;
|
|
41
41
|
methodLocalDraft?: boolean;
|
|
42
42
|
}): boolean;
|
|
43
|
-
export declare function
|
|
43
|
+
export declare function projectSourceFilesTestQueryShell(rootPath: string): boolean;
|
|
44
44
|
export declare function createStageExecutionShell(compiledPath: string, compiledName: string, methodId: string, stage: NativeStageDefinition, writeArtifacts?: readonly string[]): {
|
|
45
45
|
rootPath: string;
|
|
46
46
|
};
|