wingfoil 0.2.1 → 0.3.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 +88 -42
- package/dist/agent/discovery.d.ts +72 -0
- package/dist/agent/discovery.d.ts.map +1 -0
- package/dist/agent/discovery.js +210 -0
- package/dist/agent/discovery.js.map +1 -0
- package/dist/agent/execute.d.ts +206 -0
- package/dist/agent/execute.d.ts.map +1 -0
- package/dist/agent/execute.js +581 -0
- package/dist/agent/execute.js.map +1 -0
- package/dist/agent/index.d.ts +23 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +85 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/launch.d.ts +133 -0
- package/dist/agent/launch.d.ts.map +1 -0
- package/dist/agent/launch.js +380 -0
- package/dist/agent/launch.js.map +1 -0
- package/dist/agent/manifest.d.ts +30 -0
- package/dist/agent/manifest.d.ts.map +1 -0
- package/dist/agent/manifest.js +93 -0
- package/dist/agent/manifest.js.map +1 -0
- package/dist/agent/placeholders.d.ts +49 -0
- package/dist/agent/placeholders.d.ts.map +1 -0
- package/dist/agent/placeholders.js +177 -0
- package/dist/agent/placeholders.js.map +1 -0
- package/dist/agent/run-log.d.ts +254 -0
- package/dist/agent/run-log.d.ts.map +1 -0
- package/dist/agent/run-log.js +612 -0
- package/dist/agent/run-log.js.map +1 -0
- package/dist/agent/schema.d.ts +100 -0
- package/dist/agent/schema.d.ts.map +1 -0
- package/dist/agent/schema.js +89 -0
- package/dist/agent/schema.js.map +1 -0
- package/dist/agent/step.d.ts +41 -0
- package/dist/agent/step.d.ts.map +1 -0
- package/dist/agent/step.js +95 -0
- package/dist/agent/step.js.map +1 -0
- package/dist/build-info.json +4 -0
- package/dist/cli/error.d.ts +11 -2
- package/dist/cli/error.d.ts.map +1 -1
- package/dist/cli/error.js +27 -6
- package/dist/cli/error.js.map +1 -1
- package/dist/cli/exit.d.ts +33 -3
- package/dist/cli/exit.d.ts.map +1 -1
- package/dist/cli/exit.js +54 -3
- package/dist/cli/exit.js.map +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +3 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init-command.d.ts.map +1 -1
- package/dist/cli/init-command.js +6 -3
- package/dist/cli/init-command.js.map +1 -1
- package/dist/cli/mcp-command.d.ts +13 -4
- package/dist/cli/mcp-command.d.ts.map +1 -1
- package/dist/cli/mcp-command.js +25 -8
- package/dist/cli/mcp-command.js.map +1 -1
- package/dist/cli/output.d.ts +12 -4
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +15 -4
- package/dist/cli/output.js.map +1 -1
- package/dist/cli/program.d.ts +1 -1
- package/dist/cli/program.d.ts.map +1 -1
- package/dist/cli/program.js +270 -60
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/registrar.d.ts +16 -7
- package/dist/cli/registrar.d.ts.map +1 -1
- package/dist/cli/registrar.js +71 -6
- package/dist/cli/registrar.js.map +1 -1
- package/dist/cli/suggest.d.ts +20 -0
- package/dist/cli/suggest.d.ts.map +1 -0
- package/dist/cli/suggest.js +49 -0
- package/dist/cli/suggest.js.map +1 -0
- package/dist/cli/warning.d.ts +26 -0
- package/dist/cli/warning.d.ts.map +1 -0
- package/dist/cli/warning.js +66 -0
- package/dist/cli/warning.js.map +1 -0
- package/dist/cli.js +11 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-execute.d.ts +44 -0
- package/dist/core/agent-execute.d.ts.map +1 -0
- package/dist/core/agent-execute.js +71 -0
- package/dist/core/agent-execute.js.map +1 -0
- package/dist/core/agent-list.d.ts +95 -0
- package/dist/core/agent-list.d.ts.map +1 -0
- package/dist/core/agent-list.js +207 -0
- package/dist/core/agent-list.js.map +1 -0
- package/dist/core/agent-show.d.ts +44 -0
- package/dist/core/agent-show.d.ts.map +1 -0
- package/dist/core/agent-show.js +188 -0
- package/dist/core/agent-show.js.map +1 -0
- package/dist/core/approval-authority.d.ts +17 -14
- package/dist/core/approval-authority.d.ts.map +1 -1
- package/dist/core/approval-authority.js +9 -9
- package/dist/core/approval-authority.js.map +1 -1
- package/dist/core/builtin-asset.d.ts +18 -15
- package/dist/core/builtin-asset.d.ts.map +1 -1
- package/dist/core/builtin-asset.js +17 -14
- package/dist/core/builtin-asset.js.map +1 -1
- package/dist/core/builtin-integrity.d.ts +12 -2
- package/dist/core/builtin-integrity.d.ts.map +1 -1
- package/dist/core/builtin-integrity.js +85 -9
- package/dist/core/builtin-integrity.js.map +1 -1
- package/dist/core/confinement.d.ts +3 -1
- package/dist/core/confinement.d.ts.map +1 -1
- package/dist/core/confinement.js +7 -4
- package/dist/core/confinement.js.map +1 -1
- package/dist/core/context.d.ts +150 -98
- package/dist/core/context.d.ts.map +1 -1
- package/dist/core/context.js +602 -66
- package/dist/core/context.js.map +1 -1
- package/dist/core/directive-assign.d.ts +33 -7
- package/dist/core/directive-assign.d.ts.map +1 -1
- package/dist/core/directive-assign.js +67 -27
- package/dist/core/directive-assign.js.map +1 -1
- package/dist/core/directive-scope.d.ts +36 -0
- package/dist/core/directive-scope.d.ts.map +1 -0
- package/dist/core/directive-scope.js +34 -0
- package/dist/core/directive-scope.js.map +1 -0
- package/dist/core/directives-list.d.ts +13 -3
- package/dist/core/directives-list.d.ts.map +1 -1
- package/dist/core/directives-list.js +18 -6
- package/dist/core/directives-list.js.map +1 -1
- package/dist/core/dry-run.d.ts +33 -0
- package/dist/core/dry-run.d.ts.map +1 -0
- package/dist/core/dry-run.js +45 -0
- package/dist/core/dry-run.js.map +1 -0
- package/dist/core/element-ref.d.ts +23 -0
- package/dist/core/element-ref.d.ts.map +1 -0
- package/dist/core/element-ref.js +24 -0
- package/dist/core/element-ref.js.map +1 -0
- package/dist/core/error-details.d.ts +20 -0
- package/dist/core/error-details.d.ts.map +1 -0
- package/dist/core/error-details.js +65 -0
- package/dist/core/error-details.js.map +1 -0
- package/dist/core/exit-code.js +6 -6
- package/dist/core/git-identity.d.ts +46 -11
- package/dist/core/git-identity.d.ts.map +1 -1
- package/dist/core/git-identity.js +140 -27
- package/dist/core/git-identity.js.map +1 -1
- package/dist/core/index.d.ts +189 -14
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1241 -238
- package/dist/core/index.js.map +1 -1
- package/dist/core/init.d.ts +50 -8
- package/dist/core/init.d.ts.map +1 -1
- package/dist/core/init.js +139 -27
- package/dist/core/init.js.map +1 -1
- package/dist/core/loaders.d.ts +170 -14
- package/dist/core/loaders.d.ts.map +1 -1
- package/dist/core/loaders.js +570 -89
- package/dist/core/loaders.js.map +1 -1
- package/dist/core/memory-add-link.d.ts +28 -0
- package/dist/core/memory-add-link.d.ts.map +1 -0
- package/dist/core/memory-add-link.js +67 -0
- package/dist/core/memory-add-link.js.map +1 -0
- package/dist/core/memory-add-type.d.ts +25 -1
- package/dist/core/memory-add-type.d.ts.map +1 -1
- package/dist/core/memory-add-type.js +59 -1
- package/dist/core/memory-add-type.js.map +1 -1
- package/dist/core/memory-amend.d.ts +80 -0
- package/dist/core/memory-amend.d.ts.map +1 -0
- package/dist/core/memory-amend.js +160 -0
- package/dist/core/memory-amend.js.map +1 -0
- package/dist/core/memory-supersede.d.ts +28 -0
- package/dist/core/memory-supersede.d.ts.map +1 -0
- package/dist/core/memory-supersede.js +79 -0
- package/dist/core/memory-supersede.js.map +1 -0
- package/dist/core/memory-transition.d.ts +190 -30
- package/dist/core/memory-transition.d.ts.map +1 -1
- package/dist/core/memory-transition.js +480 -59
- package/dist/core/memory-transition.js.map +1 -1
- package/dist/core/registry.d.ts +147 -23
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/core/registry.js +50 -0
- package/dist/core/registry.js.map +1 -1
- package/dist/core/relevance.d.ts +74 -12
- package/dist/core/relevance.d.ts.map +1 -1
- package/dist/core/relevance.js +45 -27
- package/dist/core/relevance.js.map +1 -1
- package/dist/core/require-reason.d.ts.map +1 -1
- package/dist/core/require-reason.js +6 -5
- package/dist/core/require-reason.js.map +1 -1
- package/dist/core/required-fields.d.ts +28 -0
- package/dist/core/required-fields.d.ts.map +1 -0
- package/dist/core/required-fields.js +60 -0
- package/dist/core/required-fields.js.map +1 -0
- package/dist/core/revision.d.ts +82 -0
- package/dist/core/revision.d.ts.map +1 -0
- package/dist/core/revision.js +144 -0
- package/dist/core/revision.js.map +1 -0
- package/dist/core/types.d.ts +28 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +12 -3
- package/dist/core/types.js.map +1 -1
- package/dist/core/workflow-core-checks.d.ts +34 -0
- package/dist/core/workflow-core-checks.d.ts.map +1 -0
- package/dist/core/workflow-core-checks.js +403 -0
- package/dist/core/workflow-core-checks.js.map +1 -0
- package/dist/core/workflow-create-remove.d.ts +65 -0
- package/dist/core/workflow-create-remove.d.ts.map +1 -0
- package/dist/core/workflow-create-remove.js +277 -0
- package/dist/core/workflow-create-remove.js.map +1 -0
- package/dist/core/workflow-deduction.d.ts +48 -0
- package/dist/core/workflow-deduction.d.ts.map +1 -0
- package/dist/core/workflow-deduction.js +523 -0
- package/dist/core/workflow-deduction.js.map +1 -0
- package/dist/core/workflow-diagnostics.d.ts +83 -0
- package/dist/core/workflow-diagnostics.d.ts.map +1 -0
- package/dist/core/workflow-diagnostics.js +375 -0
- package/dist/core/workflow-diagnostics.js.map +1 -0
- package/dist/core/workflow-exit-state.d.ts +125 -0
- package/dist/core/workflow-exit-state.d.ts.map +1 -0
- package/dist/core/workflow-exit-state.js +243 -0
- package/dist/core/workflow-exit-state.js.map +1 -0
- package/dist/core/workflow-finalize.d.ts +37 -0
- package/dist/core/workflow-finalize.d.ts.map +1 -0
- package/dist/core/workflow-finalize.js +153 -0
- package/dist/core/workflow-finalize.js.map +1 -0
- package/dist/core/workflow-list-show.d.ts +176 -0
- package/dist/core/workflow-list-show.d.ts.map +1 -0
- package/dist/core/workflow-list-show.js +268 -0
- package/dist/core/workflow-list-show.js.map +1 -0
- package/dist/core/workflow-next.d.ts +268 -0
- package/dist/core/workflow-next.d.ts.map +1 -0
- package/dist/core/workflow-next.js +503 -0
- package/dist/core/workflow-next.js.map +1 -0
- package/dist/core/workflow-registry.d.ts +52 -0
- package/dist/core/workflow-registry.d.ts.map +1 -0
- package/dist/core/workflow-registry.js +158 -0
- package/dist/core/workflow-registry.js.map +1 -0
- package/dist/core/workflow-start-end.d.ts +71 -0
- package/dist/core/workflow-start-end.d.ts.map +1 -0
- package/dist/core/workflow-start-end.js +298 -0
- package/dist/core/workflow-start-end.js.map +1 -0
- package/dist/core/workflow-status.d.ts +83 -0
- package/dist/core/workflow-status.d.ts.map +1 -0
- package/dist/core/workflow-status.js +125 -0
- package/dist/core/workflow-status.js.map +1 -0
- package/dist/core/write-guard.d.ts +51 -8
- package/dist/core/write-guard.d.ts.map +1 -1
- package/dist/core/write-guard.js +139 -9
- package/dist/core/write-guard.js.map +1 -1
- package/dist/directives/index.d.ts +3 -2
- package/dist/directives/index.d.ts.map +1 -1
- package/dist/directives/index.js +5 -3
- package/dist/directives/index.js.map +1 -1
- package/dist/directives/schema.d.ts +35 -30
- package/dist/directives/schema.d.ts.map +1 -1
- package/dist/directives/schema.js +36 -30
- package/dist/directives/schema.js.map +1 -1
- package/dist/directives/version.d.ts +28 -0
- package/dist/directives/version.d.ts.map +1 -0
- package/dist/directives/version.js +51 -0
- package/dist/directives/version.js.map +1 -0
- package/dist/dna/edit.d.ts +7 -6
- package/dist/dna/edit.d.ts.map +1 -1
- package/dist/dna/edit.js +96 -41
- package/dist/dna/edit.js.map +1 -1
- package/dist/dna/mutate.js +18 -3
- package/dist/dna/mutate.js.map +1 -1
- package/dist/dna/path.d.ts +2 -2
- package/dist/dna/roles.d.ts +1 -1
- package/dist/dna/schema.d.ts +61 -3
- package/dist/dna/schema.d.ts.map +1 -1
- package/dist/dna/schema.js +121 -6
- package/dist/dna/schema.js.map +1 -1
- package/dist/mcp/dna-resource.d.ts.map +1 -1
- package/dist/mcp/dna-resource.js +4 -4
- package/dist/mcp/dna-resource.js.map +1 -1
- package/dist/mcp/index.d.ts +9 -5
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +13 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-resource.d.ts.map +1 -1
- package/dist/mcp/memory-resource.js +30 -19
- package/dist/mcp/memory-resource.js.map +1 -1
- package/dist/mcp/prompt.d.ts +61 -24
- package/dist/mcp/prompt.d.ts.map +1 -1
- package/dist/mcp/prompt.js +176 -47
- package/dist/mcp/prompt.js.map +1 -1
- package/dist/mcp/read-only.d.ts +39 -0
- package/dist/mcp/read-only.d.ts.map +1 -1
- package/dist/mcp/read-only.js +61 -0
- package/dist/mcp/read-only.js.map +1 -1
- package/dist/mcp/registrar.d.ts +10 -0
- package/dist/mcp/registrar.d.ts.map +1 -1
- package/dist/mcp/registrar.js +48 -12
- package/dist/mcp/registrar.js.map +1 -1
- package/dist/mcp/server.d.ts +21 -14
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +41 -15
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/session-resource.d.ts +13 -0
- package/dist/mcp/session-resource.d.ts.map +1 -0
- package/dist/mcp/session-resource.js +65 -0
- package/dist/mcp/session-resource.js.map +1 -0
- package/dist/mcp/workflow-resource.d.ts +18 -0
- package/dist/mcp/workflow-resource.d.ts.map +1 -1
- package/dist/mcp/workflow-resource.js +37 -8
- package/dist/mcp/workflow-resource.js.map +1 -1
- package/dist/memory/add.d.ts +160 -17
- package/dist/memory/add.d.ts.map +1 -1
- package/dist/memory/add.js +361 -51
- package/dist/memory/add.js.map +1 -1
- package/dist/memory/audit.d.ts +165 -32
- package/dist/memory/audit.d.ts.map +1 -1
- package/dist/memory/audit.js +267 -97
- package/dist/memory/audit.js.map +1 -1
- package/dist/memory/commit-message.d.ts +60 -38
- package/dist/memory/commit-message.d.ts.map +1 -1
- package/dist/memory/commit-message.js +167 -21
- package/dist/memory/commit-message.js.map +1 -1
- package/dist/memory/entry.d.ts.map +1 -1
- package/dist/memory/entry.js +1 -2
- package/dist/memory/entry.js.map +1 -1
- package/dist/memory/frontmatter-edit.d.ts +16 -4
- package/dist/memory/frontmatter-edit.d.ts.map +1 -1
- package/dist/memory/frontmatter-edit.js +13 -1
- package/dist/memory/frontmatter-edit.js.map +1 -1
- package/dist/memory/git-log.d.ts +18 -6
- package/dist/memory/git-log.d.ts.map +1 -1
- package/dist/memory/git-log.js +40 -13
- package/dist/memory/git-log.js.map +1 -1
- package/dist/memory/history.d.ts +74 -13
- package/dist/memory/history.d.ts.map +1 -1
- package/dist/memory/history.js +129 -45
- package/dist/memory/history.js.map +1 -1
- package/dist/memory/index.d.ts +13 -11
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +38 -3
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/query.d.ts +161 -19
- package/dist/memory/query.d.ts.map +1 -1
- package/dist/memory/query.js +435 -55
- package/dist/memory/query.js.map +1 -1
- package/dist/memory/schema.d.ts +52 -3
- package/dist/memory/schema.d.ts.map +1 -1
- package/dist/memory/schema.js +132 -8
- package/dist/memory/schema.js.map +1 -1
- package/dist/memory/state-machine.d.ts +65 -10
- package/dist/memory/state-machine.d.ts.map +1 -1
- package/dist/memory/state-machine.js +136 -48
- package/dist/memory/state-machine.js.map +1 -1
- package/dist/memory/submit.d.ts +52 -3
- package/dist/memory/submit.d.ts.map +1 -1
- package/dist/memory/submit.js +118 -11
- package/dist/memory/submit.js.map +1 -1
- package/dist/storage/build-stamp.d.ts +18 -0
- package/dist/storage/build-stamp.d.ts.map +1 -0
- package/dist/storage/build-stamp.js +68 -0
- package/dist/storage/build-stamp.js.map +1 -0
- package/dist/storage/builtin-adapters.d.ts +32 -0
- package/dist/storage/builtin-adapters.d.ts.map +1 -0
- package/dist/storage/builtin-adapters.js +100 -0
- package/dist/storage/builtin-adapters.js.map +1 -0
- package/dist/storage/builtin-directives.d.ts +0 -29
- package/dist/storage/builtin-directives.d.ts.map +1 -1
- package/dist/storage/builtin-directives.js +9 -4
- package/dist/storage/builtin-directives.js.map +1 -1
- package/dist/storage/commit.d.ts +310 -3
- package/dist/storage/commit.d.ts.map +1 -1
- package/dist/storage/commit.js +807 -33
- package/dist/storage/commit.js.map +1 -1
- package/dist/storage/document.d.ts +6 -0
- package/dist/storage/document.d.ts.map +1 -1
- package/dist/storage/document.js +10 -1
- package/dist/storage/document.js.map +1 -1
- package/dist/storage/dry-run.d.ts +65 -0
- package/dist/storage/dry-run.d.ts.map +1 -0
- package/dist/storage/dry-run.js +150 -0
- package/dist/storage/dry-run.js.map +1 -0
- package/dist/storage/errors.d.ts +26 -0
- package/dist/storage/errors.d.ts.map +1 -1
- package/dist/storage/errors.js +27 -1
- package/dist/storage/errors.js.map +1 -1
- package/dist/storage/frontmatter.d.ts +1 -1
- package/dist/storage/frontmatter.js +1 -1
- package/dist/storage/git-read.d.ts +64 -0
- package/dist/storage/git-read.d.ts.map +1 -0
- package/dist/storage/git-read.js +107 -0
- package/dist/storage/git-read.js.map +1 -0
- package/dist/storage/index.d.ts +13 -5
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +39 -2
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/layout.d.ts +2 -2
- package/dist/storage/layout.d.ts.map +1 -1
- package/dist/storage/layout.js +2 -7
- package/dist/storage/layout.js.map +1 -1
- package/dist/storage/memory-path.d.ts +18 -5
- package/dist/storage/memory-path.d.ts.map +1 -1
- package/dist/storage/memory-path.js +41 -5
- package/dist/storage/memory-path.js.map +1 -1
- package/dist/storage/snapshot.js +1 -1
- package/dist/storage/templates.d.ts +33 -6
- package/dist/storage/templates.d.ts.map +1 -1
- package/dist/storage/templates.js +182 -17
- package/dist/storage/templates.js.map +1 -1
- package/dist/validation/config-version.d.ts +19 -0
- package/dist/validation/config-version.d.ts.map +1 -0
- package/dist/validation/config-version.js +53 -0
- package/dist/validation/config-version.js.map +1 -0
- package/dist/validation/diagnostic.d.ts +40 -0
- package/dist/validation/diagnostic.d.ts.map +1 -0
- package/dist/validation/diagnostic.js +41 -0
- package/dist/validation/diagnostic.js.map +1 -0
- package/dist/validation/format.d.ts +74 -0
- package/dist/validation/format.d.ts.map +1 -0
- package/dist/validation/format.js +104 -0
- package/dist/validation/format.js.map +1 -0
- package/dist/validation/id.d.ts +40 -0
- package/dist/validation/id.d.ts.map +1 -1
- package/dist/validation/id.js +99 -12
- package/dist/validation/id.js.map +1 -1
- package/dist/validation/identity.d.ts +40 -0
- package/dist/validation/identity.d.ts.map +1 -0
- package/dist/validation/identity.js +78 -0
- package/dist/validation/identity.js.map +1 -0
- package/dist/validation/index.d.ts +9 -3
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +33 -1
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/secret-scan.d.ts +10 -7
- package/dist/validation/secret-scan.d.ts.map +1 -1
- package/dist/validation/secret-scan.js +39 -16
- package/dist/validation/secret-scan.js.map +1 -1
- package/dist/validation/warning.d.ts +30 -16
- package/dist/validation/warning.d.ts.map +1 -1
- package/dist/validation/warning.js +74 -7
- package/dist/validation/warning.js.map +1 -1
- package/dist/workflow/bindings.d.ts +152 -0
- package/dist/workflow/bindings.d.ts.map +1 -0
- package/dist/workflow/bindings.js +249 -0
- package/dist/workflow/bindings.js.map +1 -0
- package/dist/workflow/create.d.ts +13 -0
- package/dist/workflow/create.d.ts.map +1 -0
- package/dist/workflow/create.js +41 -0
- package/dist/workflow/create.js.map +1 -0
- package/dist/workflow/deduce.d.ts +400 -0
- package/dist/workflow/deduce.d.ts.map +1 -0
- package/dist/workflow/deduce.js +1109 -0
- package/dist/workflow/deduce.js.map +1 -0
- package/dist/workflow/manifest-edit.d.ts +19 -0
- package/dist/workflow/manifest-edit.d.ts.map +1 -0
- package/dist/workflow/manifest-edit.js +124 -0
- package/dist/workflow/manifest-edit.js.map +1 -0
- package/dist/workflow/schema.d.ts +158 -19
- package/dist/workflow/schema.d.ts.map +1 -1
- package/dist/workflow/schema.js +190 -16
- package/dist/workflow/schema.js.map +1 -1
- package/package.json +37 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-transition.js","sourceRoot":"","sources":["../../src/core/memory-transition.ts"],"names":[],"mappings":";;AA4GA,0DA2DC;AAqDD,oDAcC;AA+CD,wDAkCC;AA3TD;;;;;;;;;;;;;;;;GAgBG;AACH,+BAA4B;AAE5B,sCAOmB;AAEnB,wCAA0G;AAC1G,8CAAgD;AAEhD,+CAA2D;AAC3D,uCAAmE;AACnE,mCAA2D;AAC3D,+CAA4G;AAwB5G;;;;;;;;;;GAUG;AACH,SAAS,sBAAsB,CAAC,IAAY;IAC1C,IAAI,CAAC;QACH,IAAI,IAAA,6BAAmB,EAAC,IAAI,EAAE,0BAAgB,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,CAAC;IACpE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CACL,iBAAiB,0BAAgB,6EAA6E;QAC9G,oCAAoC,0BAAgB,mDAAmD,CACxG,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,uBAAuB,CAAC,IAAY,EAAE,EAAU,EAAE,EAAgB;IAChF,IAAI,UAA6B,CAAC;IAClC,IAAI,CAAC;QACH,UAAU,GAAG,IAAA,8BAAoB,EAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,KAAK,YAAY,4BAAe,CAAC;YAAE,MAAM,KAAK,CAAC;QACrD,OAAO,IAAA,eAAO,EAAC;YACb,IAAI,EAAE,YAAY;YAClB,OAAO,EACL,oDAAoD,0BAAgB,0CAA0C;gBAC9G,kBAAkB,KAAK,CAAC,OAAO,+EAA+E;gBAC9G,0EAA0E;YAC5E,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;SACl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OAAO,CAAC,EAAE;QAAE,OAAO,OAAO,CAAC;IAChC,MAAM,KAAK,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,QAAQ,EAAE,CAAC;IACnD,MAAM,GAAG,GAAG,IAAA,wBAAc,EAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;IAEvH,MAAM,MAAM,GAAG,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,IAAA,eAAO,EAAC;YACb,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,UAAU,GAAG,8CAA8C,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;SACxF,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAA,cAAM,EAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
|
package/dist/core/registry.d.ts
CHANGED
|
@@ -28,38 +28,127 @@ export interface CoreOption {
|
|
|
28
28
|
readonly name: string;
|
|
29
29
|
readonly required?: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* What `--help` says about this option. Optional
|
|
32
|
-
*
|
|
31
|
+
* What `--help` says about this option. Optional in the type, so a synthetic registry need not
|
|
32
|
+
* declare it; an option that declares none is shown with no text rather than the generic
|
|
33
|
+
* `"{name} value"` placeholder rendered before task-120 (`bug-128`), and every option in
|
|
34
|
+
* `CORE_MODULES` declares one (`test/cli/help-describes-every-command.test.ts`). It exists because a
|
|
33
35
|
* convention a grammar cannot show must be *stated* somewhere a user reads — `dna add|remove|update
|
|
34
36
|
* --value` means the new entry's identity at a collection and the new value at a leaf
|
|
35
37
|
* (`dl-081-dna-mutation-surface-shape`, task-093), which is exactly the kind of thing that otherwise
|
|
36
38
|
* gets discovered rather than documented.
|
|
37
39
|
*/
|
|
38
40
|
readonly description?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Whether the option may be given more than once (task-110 — `memory add --set <name>=<value>`,
|
|
43
|
+
* `spec-008-cli-grammar` §10). A repeatable option reaches {@link ParamsContext.options} as the
|
|
44
|
+
* array of every occurrence, in the order given; a non-repeatable one as a single string (the last
|
|
45
|
+
* occurrence, Commander's default). Absent means not repeatable.
|
|
46
|
+
*/
|
|
47
|
+
readonly repeatable?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* The placeholder `--help` shows for the option's value (`--{name} <{valueName}>`). Absent means
|
|
50
|
+
* `value`, the placeholder every option declared before task-110 renders.
|
|
51
|
+
*/
|
|
52
|
+
readonly valueName?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* One boolean presence flag an operation accepts (`--list`), with the text `--help` shows for it
|
|
56
|
+
* (task-120, `bug-128` — before it a flag was a bare name, rendered as the generic `"{name} flag"`).
|
|
57
|
+
*/
|
|
58
|
+
export interface CoreFlag {
|
|
59
|
+
readonly name: string;
|
|
60
|
+
/** What `--help` says the flag does. */
|
|
61
|
+
readonly description?: string;
|
|
39
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* The one positional argument an operation reads — the identity of its target (`dl-082-cli-parameter-shape`:
|
|
65
|
+
* a positional identifies the target, an option carries an attribute), declared so `--help` can name
|
|
66
|
+
* it (`<id>`, `<path>`, `[section]`) instead of describing a generic list (task-120, `bug-128`).
|
|
67
|
+
*
|
|
68
|
+
* `required` is enforced by the CLI registrar (`src/cli/registrar.ts`, task-179, `bug-168`): an
|
|
69
|
+
* invocation that omits it is refused at exit `2` with {@link missingOperandReason}'s one wording and the
|
|
70
|
+
* command's {@link commandUsage} as the hint, before the project root is resolved. The operation's own
|
|
71
|
+
* `CoreFn` refuses it too, in the same words, for a caller that reaches core without the registrar.
|
|
72
|
+
* `src/cli/program.ts` only renders it — Commander is never told to enforce it, so the refusal keeps
|
|
73
|
+
* WingFoil's message. `test/cli/operand-error-shape.integration.test.ts` drives every command that
|
|
74
|
+
* declares a required positional without it.
|
|
75
|
+
*/
|
|
76
|
+
export interface CorePositional {
|
|
77
|
+
/** The name `--help` shows, in the placeholder form the CLI reference uses — `id`, `path`, `name`, `section`. */
|
|
78
|
+
readonly name: string;
|
|
79
|
+
/** Whether the operation refuses an invocation that omits it. Absent means optional. */
|
|
80
|
+
readonly required?: boolean;
|
|
81
|
+
/** What `--help` says the argument is. */
|
|
82
|
+
readonly description: string;
|
|
83
|
+
/**
|
|
84
|
+
* A clause the surplus-operand refusal adds after what the command takes, naming what the extra
|
|
85
|
+
* operand should have been (task-179, `bug-180`): the DNA path verbs' `the value travels in --value`,
|
|
86
|
+
* the migration hint of `dl-082`'s move of the value out of a second positional. The registrar refuses
|
|
87
|
+
* a surplus operand for every command alike, before the project root is resolved
|
|
88
|
+
* (`src/cli/registrar.ts`), and appends this through {@link extraOperandsReason}. Absent means none.
|
|
89
|
+
*/
|
|
90
|
+
readonly surplusHint?: string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The usage error for an invocation carrying more operands than its command declares
|
|
94
|
+
* (`dl-082-cli-parameter-shape`: at most one positional per command; task-129, `bug-171`, `bug-131`):
|
|
95
|
+
* it names the command, what it takes, and how many operands it got —
|
|
96
|
+
* `wingfoil memory approve takes one positional <id> (got 2 positionals)`,
|
|
97
|
+
* `wingfoil workflow list takes no positional (got 1 positional)`. `hint`, when given, follows what the
|
|
98
|
+
* command takes: `dna set`'s migration message is this sentence with `the value travels in --value`
|
|
99
|
+
* (task-093), so the two refusals share one wording. Deterministic — a pure function of its arguments
|
|
100
|
+
* (REQ-SYS-07).
|
|
101
|
+
*
|
|
102
|
+
* @param command - the command as typed after `wingfoil`: `memory approve`, or a flat noun (`paths`).
|
|
103
|
+
* @param positionalName - the declared positional's name, or `undefined` when the command declares none.
|
|
104
|
+
* @param given - how many operands the invocation carried.
|
|
105
|
+
* @param hint - an optional clause naming what the surplus operand should have been.
|
|
106
|
+
*/
|
|
107
|
+
export declare function extraOperandsReason(command: string, positionalName: string | undefined, given: number, hint?: string): string;
|
|
108
|
+
/**
|
|
109
|
+
* The usage error for an invocation that omits a required operand (`spec-008-cli-grammar` §4; task-179,
|
|
110
|
+
* `bug-168`): `missing required argument: <id>` — the positional's placeholder, as `--help` writes it,
|
|
111
|
+
* beside `missing required argument: --<name>` for an option. One wording for every command; the
|
|
112
|
+
* registrar adds the command's usage as the `hint:` line ({@link commandUsage}). Deterministic.
|
|
113
|
+
*
|
|
114
|
+
* @param positionalName - the declared positional's name (`id`, `path`, `name`).
|
|
115
|
+
*/
|
|
116
|
+
export declare function missingOperandReason(positionalName: string): string;
|
|
117
|
+
/**
|
|
118
|
+
* The usage line of a command, as the missing-operand refusal's `hint:` shows it (task-179, `bug-168`):
|
|
119
|
+
* `wingfoil <command>`, the declared positional (`<id>` when required, `[section]` when not), then every
|
|
120
|
+
* REQUIRED option with its placeholder — `wingfoil memory approve <id> --reason <text>`. Optional
|
|
121
|
+
* options are left to `--help`. A pure function of the declaration (REQ-SYS-07).
|
|
122
|
+
*
|
|
123
|
+
* @param command - the command as typed after `wingfoil`: `memory approve`, or a flat noun (`paths`).
|
|
124
|
+
* @param operation - the operation whose declaration the line is read from.
|
|
125
|
+
*/
|
|
126
|
+
export declare function commandUsage(command: string, operation: Pick<CoreOperation, 'positional' | 'options'>): string;
|
|
40
127
|
/**
|
|
41
128
|
* One domain operation both surfaces derive from (spec-006 §2): its camelCase `name`, whether it
|
|
42
129
|
* `mutates` (Tool vs Resource / write vs read), its `fn`, and its optional declarative CLI `flags`
|
|
43
130
|
* and value-bearing `options`. The single source of truth `src/cli` and `src/mcp` register from.
|
|
44
131
|
*/
|
|
45
132
|
export interface CoreOperation<P = unknown, R = unknown> {
|
|
46
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* camelCase, `{module}{Verb}` (spec-006 §5) — e.g. `memoryApprove`, `dnaShow` — or, for a self-named
|
|
135
|
+
* flat operation, exactly the module's name (`paths`; `dl-046` C), from which {@link deriveVerb}
|
|
136
|
+
* derives no verb, so the command is the bare `wingfoil <module>`.
|
|
137
|
+
*/
|
|
47
138
|
readonly name: string;
|
|
48
139
|
/** `true` => MCP Tool only; `false` => MCP Resource only. CLI exposes both regardless (§2). */
|
|
49
140
|
readonly mutates: boolean;
|
|
50
141
|
readonly fn: CoreFn<P, R>;
|
|
51
142
|
/**
|
|
52
|
-
* Boolean CLI
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* (
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* explicitly. `src/cli/program.ts` registers one `--{name}` option per entry and threads the
|
|
60
|
-
* parsed boolean into {@link ParamsContext.flags}.
|
|
143
|
+
* Boolean CLI flags this operation accepts beyond the global flags (spec-008-cli-grammar §2) — e.g.
|
|
144
|
+
* `paths`'s `--list` (task-028-implement-paths-category, P2.5). Additive and optional: an operation
|
|
145
|
+
* that declares none keeps exactly the bare-`{ root }` shape task-026 established. The positional is
|
|
146
|
+
* declared separately ({@link positional}); only extra `--{name}` flags are listed here, since
|
|
147
|
+
* Commander rejects an unknown option so each must be registered explicitly. `src/cli/program.ts`
|
|
148
|
+
* registers one `--{name}` option per entry, described by its {@link CoreFlag.description}
|
|
149
|
+
* (task-120), and threads the parsed boolean into {@link ParamsContext.flags}.
|
|
61
150
|
*/
|
|
62
|
-
readonly flags?: readonly
|
|
151
|
+
readonly flags?: readonly CoreFlag[];
|
|
63
152
|
/**
|
|
64
153
|
* Value-bearing CLI options this operation accepts beyond the global options
|
|
65
154
|
* (task-020-implement-memory-add — e.g. `[{name:'type',required:true}, {name:'title',required:true},
|
|
@@ -70,11 +159,44 @@ export interface CoreOperation<P = unknown, R = unknown> {
|
|
|
70
159
|
* schema). See {@link CoreOption}.
|
|
71
160
|
*/
|
|
72
161
|
readonly options?: readonly CoreOption[];
|
|
162
|
+
/**
|
|
163
|
+
* The one-line summary `--help` shows for this command (task-120, `bug-128`) — the first sentence
|
|
164
|
+
* of its `docs/cli-reference.md` entry, which `test/docs/cli-reference.test.ts` holds it to.
|
|
165
|
+
*/
|
|
166
|
+
readonly description?: string;
|
|
167
|
+
/** The positional this operation reads, if any (see {@link CorePositional}). Absent means none. */
|
|
168
|
+
readonly positional?: CorePositional;
|
|
169
|
+
/** One complete invocation `--help` shows under `Example:` (`spec-008-cli-grammar` §8), `wingfoil …` included. */
|
|
170
|
+
readonly example?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The command's own `--format console` rendering of a successful `value`, for an operation whose
|
|
173
|
+
* spec defines one (task-220: `agent show`'s `key: value` lines, `spec-016` §6). Absent, `console`
|
|
174
|
+
* prints the indented JSON `spec-008` §2 declares for every other command until P5.1.4. `json` and
|
|
175
|
+
* `yaml` never use it, and the MCP surface never calls it. Pure: the same value renders the same text.
|
|
176
|
+
*/
|
|
177
|
+
readonly renderConsole?: (value: R) => string;
|
|
178
|
+
/**
|
|
179
|
+
* For a command that hands its stdout to a child process (`agent execute`, `spec-016` §3.4, task-228):
|
|
180
|
+
* the report its success prints **on stderr**, with nothing on stdout (`spec-005` §2). `document` is
|
|
181
|
+
* the `json`/`yaml` message (`{ "run": <record> }`), `console` the line `console` prints. `undefined`
|
|
182
|
+
* for a value that is an ordinary stdout payload (the `--dry-run` launch plan). The MCP surface never
|
|
183
|
+
* calls it.
|
|
184
|
+
*/
|
|
185
|
+
readonly renderToStderr?: (value: R) => StderrReport | undefined;
|
|
186
|
+
}
|
|
187
|
+
/** A success report written on stderr instead of a stdout payload ({@link CoreOperation.renderToStderr}). */
|
|
188
|
+
export interface StderrReport {
|
|
189
|
+
/** The `json`/`yaml` message: one document. */
|
|
190
|
+
readonly document: Readonly<Record<string, unknown>>;
|
|
191
|
+
/** The `console` line, without its newline. */
|
|
192
|
+
readonly console: string;
|
|
73
193
|
}
|
|
74
194
|
/** One pillar's operation group (spec-006 §2) — a `name` (the `wingfoil <noun>` segment) and its operations. */
|
|
75
195
|
export interface CoreModule {
|
|
76
196
|
/** e.g. `"memory"`, `"dna"`, `"workflow"`, `"directives"` — the `wingfoil <noun>` segment. */
|
|
77
197
|
readonly name: string;
|
|
198
|
+
/** The one-line summary `wingfoil --help` shows for the noun (task-120, `bug-128`). */
|
|
199
|
+
readonly description?: string;
|
|
78
200
|
/** This module's operations, keyed by camelCase operation name (see {@link CoreOperation}). */
|
|
79
201
|
readonly operations: Readonly<Record<string, CoreOperation>>;
|
|
80
202
|
}
|
|
@@ -108,9 +230,10 @@ export declare function deriveVerb(moduleName: string, operationName: string): s
|
|
|
108
230
|
* operation's own CLI-command / Tool-input-schema spec, per spec-005's own scope note) — every
|
|
109
231
|
* operation registered through task-006/task-027 took a bare `{ root }`; task-028-implement-paths-category
|
|
110
232
|
* is the first to need more, and does so exactly the way this interface's doc comment always
|
|
111
|
-
* anticipated: a richer `buildParams`, not a registrar change. `positional` is
|
|
112
|
-
*
|
|
113
|
-
*
|
|
233
|
+
* anticipated: a richer `buildParams`, not a registrar change. `positional` is the first
|
|
234
|
+
* operand of the invocation: `src/cli/program.ts` reads the operands of every derived command, whether
|
|
235
|
+
* or not its operation declares a {@link CorePositional} (which only names the operand for `--help`),
|
|
236
|
+
* and threads them through `command.run` into `ctx.positional`/`ctx.positionals`; `flags` is populated from the matching
|
|
114
237
|
* operation's `CoreOperation.flags` declaration (`./registry.ts`). The MCP adapter's own mechanical,
|
|
115
238
|
* zero-argument Resource/Tool registration (`src/mcp/registrar.ts`) never populates either — a
|
|
116
239
|
* `buildParams` that ignores both (every `ParamsBuilder` before this task) keeps working unchanged.
|
|
@@ -139,13 +262,13 @@ export interface ParamsContext {
|
|
|
139
262
|
* by the first operation taking two data inputs (`dna set <key> <value>` -> `['<key>', '<value>']`).
|
|
140
263
|
* Since `dl-082-cli-parameter-shape` (task-093) every command reads at most ONE positional — the
|
|
141
264
|
* identity of its target — and `dna set`'s value travels in `--value`, so the list is now a
|
|
142
|
-
* uniform seam rather than one shaped by a single two-input verb
|
|
143
|
-
* operation
|
|
265
|
+
* uniform seam rather than one shaped by a single two-input verb. The registrar refuses a surplus
|
|
266
|
+
* for every operation before `buildParams` is called (task-129; the DNA path verbs too since
|
|
267
|
+
* task-179, `bug-180`), so the list it sees never exceeds the declared count.
|
|
144
268
|
* {@link positional} is exactly `positionals?.[0]` and is kept unchanged for the single-positional
|
|
145
269
|
* read ops that predate this (`dna show [section]`, `paths [category]`), so their `buildParams` and
|
|
146
|
-
* `CoreFn`s are untouched;
|
|
147
|
-
*
|
|
148
|
-
* instead. Same additive contract as {@link positional}/{@link flags}: the MCP surface never
|
|
270
|
+
* `CoreFn`s are untouched; the four DNA path verbs (`dnaSet` and the three mutation verbs) read
|
|
271
|
+
* `positionals` instead. Same additive contract as {@link positional}/{@link flags}: the MCP surface never
|
|
149
272
|
* populates it (a zero-argument Tool/Resource template carries no positional — see {@link positional}),
|
|
150
273
|
* so an MCP `buildParams` simply never sets it.
|
|
151
274
|
*/
|
|
@@ -164,9 +287,10 @@ export interface ParamsContext {
|
|
|
164
287
|
* operation declaring no value options never has this set, and the MCP surface never populates it
|
|
165
288
|
* (a zero-argument Tool template carries none — same rationale as `positional`/`flags`; task-030
|
|
166
289
|
* wires the MCP Tool input schema separately). An absent optional option is simply omitted from the
|
|
167
|
-
* record rather than present-as-`undefined`.
|
|
290
|
+
* record rather than present-as-`undefined`. A {@link CoreOption.repeatable} option's value is the
|
|
291
|
+
* array of its occurrences (task-110).
|
|
168
292
|
*/
|
|
169
|
-
readonly options?: Readonly<Record<string, string>>;
|
|
293
|
+
readonly options?: Readonly<Record<string, string | readonly string[]>>;
|
|
170
294
|
}
|
|
171
295
|
/**
|
|
172
296
|
* A surface-supplied function that turns a {@link ParamsContext} into the typed params one operation's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/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a,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC,CAAC,CAAC;CACzE;AAED;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC;AAE5D,8FAA8F;AAC9F,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,UAAU,CAMxF"}
|
package/dist/core/registry.js
CHANGED
|
@@ -1,8 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extraOperandsReason = extraOperandsReason;
|
|
4
|
+
exports.missingOperandReason = missingOperandReason;
|
|
5
|
+
exports.commandUsage = commandUsage;
|
|
3
6
|
exports.enumerateOperations = enumerateOperations;
|
|
4
7
|
exports.deriveVerb = deriveVerb;
|
|
5
8
|
exports.computeParityDiff = computeParityDiff;
|
|
9
|
+
/**
|
|
10
|
+
* The usage error for an invocation carrying more operands than its command declares
|
|
11
|
+
* (`dl-082-cli-parameter-shape`: at most one positional per command; task-129, `bug-171`, `bug-131`):
|
|
12
|
+
* it names the command, what it takes, and how many operands it got —
|
|
13
|
+
* `wingfoil memory approve takes one positional <id> (got 2 positionals)`,
|
|
14
|
+
* `wingfoil workflow list takes no positional (got 1 positional)`. `hint`, when given, follows what the
|
|
15
|
+
* command takes: `dna set`'s migration message is this sentence with `the value travels in --value`
|
|
16
|
+
* (task-093), so the two refusals share one wording. Deterministic — a pure function of its arguments
|
|
17
|
+
* (REQ-SYS-07).
|
|
18
|
+
*
|
|
19
|
+
* @param command - the command as typed after `wingfoil`: `memory approve`, or a flat noun (`paths`).
|
|
20
|
+
* @param positionalName - the declared positional's name, or `undefined` when the command declares none.
|
|
21
|
+
* @param given - how many operands the invocation carried.
|
|
22
|
+
* @param hint - an optional clause naming what the surplus operand should have been.
|
|
23
|
+
*/
|
|
24
|
+
function extraOperandsReason(command, positionalName, given, hint) {
|
|
25
|
+
const takes = positionalName === undefined ? 'takes no positional' : `takes one positional <${positionalName}>`;
|
|
26
|
+
return `wingfoil ${command} ${takes}${hint === undefined ? '' : `; ${hint}`} (got ${given} positional${given === 1 ? '' : 's'})`;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The usage error for an invocation that omits a required operand (`spec-008-cli-grammar` §4; task-179,
|
|
30
|
+
* `bug-168`): `missing required argument: <id>` — the positional's placeholder, as `--help` writes it,
|
|
31
|
+
* beside `missing required argument: --<name>` for an option. One wording for every command; the
|
|
32
|
+
* registrar adds the command's usage as the `hint:` line ({@link commandUsage}). Deterministic.
|
|
33
|
+
*
|
|
34
|
+
* @param positionalName - the declared positional's name (`id`, `path`, `name`).
|
|
35
|
+
*/
|
|
36
|
+
function missingOperandReason(positionalName) {
|
|
37
|
+
return `missing required argument: <${positionalName}>`;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The usage line of a command, as the missing-operand refusal's `hint:` shows it (task-179, `bug-168`):
|
|
41
|
+
* `wingfoil <command>`, the declared positional (`<id>` when required, `[section]` when not), then every
|
|
42
|
+
* REQUIRED option with its placeholder — `wingfoil memory approve <id> --reason <text>`. Optional
|
|
43
|
+
* options are left to `--help`. A pure function of the declaration (REQ-SYS-07).
|
|
44
|
+
*
|
|
45
|
+
* @param command - the command as typed after `wingfoil`: `memory approve`, or a flat noun (`paths`).
|
|
46
|
+
* @param operation - the operation whose declaration the line is read from.
|
|
47
|
+
*/
|
|
48
|
+
function commandUsage(command, operation) {
|
|
49
|
+
const positional = operation.positional;
|
|
50
|
+
const operand = positional === undefined ? [] : [positional.required === true ? `<${positional.name}>` : `[${positional.name}]`];
|
|
51
|
+
const options = (operation.options ?? [])
|
|
52
|
+
.filter((option) => option.required === true)
|
|
53
|
+
.map((option) => `--${option.name} <${option.valueName ?? 'value'}>`);
|
|
54
|
+
return ['wingfoil', command, ...operand, ...options].join(' ');
|
|
55
|
+
}
|
|
6
56
|
/**
|
|
7
57
|
* Flatten `modules` into every declared operation, sorted deterministically by `(module.name,
|
|
8
58
|
* operation.name)` (REQ-SYS-07 — no unordered `Object.values`/iteration in a context-building
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":";;AA+GA,kDAGC;AAUD,oDAEC;AAWD,oCAOC;AA6FD,kDAWC;AAiBD,gCAYC;AA2FD,8CAMC;AAtRD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,mBAAmB,CAAC,OAAe,EAAE,cAAkC,EAAE,KAAa,EAAE,IAAa;IACnH,MAAM,KAAK,GAAG,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,yBAAyB,cAAc,GAAG,CAAC;IAChH,OAAO,YAAY,OAAO,IAAI,KAAK,GAAG,IAAI,KAAK,S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AC,CAAC,MAAM,CAAC;IACjG,OAAO,YAAY,CAAC,gBAAgB,CAAC,CAAC;AACxC,CAAC;AAqFD;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,CAAoB,EAAE,CAAoB;IAC1E,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;IACxB,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;IACxB,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACjE,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAC9B,CAAC"}
|
package/dist/core/relevance.d.ts
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `relevance-filter` (task-035-bounded-context-relevance, REQ-PERF-05) —
|
|
3
|
+
* spec-012-context-loader-relevance-filtering §6's deterministic Memory-document selection unit:
|
|
4
|
+
* rank and bound the set of Memory documents relevant to an active element (usually a `task`), so an
|
|
5
|
+
* assembled agent context stays "curated, not full dump" (Product Brief) and satisfies REQ-PERF-05's
|
|
6
|
+
* Fit Criterion verbatim — "given 1,000 Memory documents of which K are relevant to the task, the
|
|
7
|
+
* assembled context contains exactly the K relevant (non-deprecated) documents and 0 others."
|
|
8
|
+
*
|
|
9
|
+
* This module implements ONLY spec-012 §6 (`relevance-filter`), one of the four cooperating units
|
|
10
|
+
* spec-012 defines (`dna-loader`, `directive-loader`, `relevance-filter`, `context-builder`) — the
|
|
11
|
+
* other three, and the canonical serialized envelope (§7), live in `./context.ts`
|
|
12
|
+
* (`assembleExecutionContext`, task-176), which calls this unit at its `stateRef`. For the
|
|
13
|
+
* document scan itself it wraps, not reimplements, `src/memory/query.ts`'s scan primitives
|
|
14
|
+
* (task-008) — no second directory walk or frontmatter parser — and is placed in `src/core` per
|
|
15
|
+
* spec-012 §1 ("folded into the `core` module"). It is re-exported from `src/core`'s barrel, so
|
|
16
|
+
* `src/core` is the import surface for every consumer.
|
|
17
|
+
*
|
|
18
|
+
* **Exclusion set (`dl-028-archived-states-excluded-from-context`, `ready`).** Candidates are dropped
|
|
19
|
+
* when their `status` is archived — `{deprecated, superseded}`, via `src/memory/state-machine.ts`'s
|
|
20
|
+
* shared {@link isArchivedStatus} (the one predicate the default-search path, REQ-STATE-06, consumes
|
|
21
|
+
* too) — **or** `draft`. That `draft` clause is context-only and deliberately NOT mirrored into
|
|
22
|
+
* `memory search`: spec-012 §6 admits only "stable, decided and still-current content" into an
|
|
23
|
+
* execution context, whereas REQ-STATE-06 scopes default-search exclusion to archived content so a
|
|
24
|
+
* draft under active work stays findable. Two different sets, on purpose — see
|
|
25
|
+
* {@link DRAFT_STATUS}. dl-028 also dropped spec-012 §6's former `rejected` entry, a status
|
|
26
|
+
* `spec-001-memory-yaml-schema` removed from every type's machine.
|
|
27
|
+
*
|
|
28
|
+
* Determinism (REQ-SYS-07): no wall-clock, no randomness, no unordered map/set iteration in any
|
|
29
|
+
* output-affecting path. The ranking itself, {@link selectRelevantMemoryDocuments}, is a pure function
|
|
30
|
+
* of `(documents, element, limits)` and reads nothing. Where the documents come from is the caller's
|
|
31
|
+
* choice: the execution-context builder (`./context.ts`, task-176) feeds it the snapshot
|
|
32
|
+
* `loadMemoryDocumentsAtRev` reads at `spec-012` §2's `stateRef`, so a context is pinned to one commit;
|
|
33
|
+
* {@link filterRelevantMemoryDocuments} feeds it the live working tree under `root`, whose content is
|
|
34
|
+
* then part of its input. See {@link selectRelevantMemoryDocuments} for the exact ordering/bounding
|
|
35
|
+
* contract.
|
|
36
|
+
*/
|
|
37
|
+
import { type MemoryDocumentSummary } from '../memory/query';
|
|
1
38
|
import type { MemoryYaml } from '../memory/schema';
|
|
39
|
+
import type { Diagnostic } from '../validation';
|
|
2
40
|
/**
|
|
3
41
|
* Caps that keep an assembled context "bounded, not a full dump" (spec-012 §6) — the defaults match
|
|
4
42
|
* spec-012's own defaults verbatim: `maxDocs: 40`, `maxBytes: 262144` (256 KiB).
|
|
@@ -56,31 +94,55 @@ export interface RelevantMemoryResult {
|
|
|
56
94
|
readonly note?: string;
|
|
57
95
|
}
|
|
58
96
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
97
|
+
* {@link filterRelevantMemoryDocuments}'s result: the ranking of {@link RelevantMemoryResult}, plus the
|
|
98
|
+
* files the working-tree read left out (task-253, `bug-230`, `spec-017` §1.4). Each entry is a
|
|
99
|
+
* `W_MEMORY_UNREADABLE` diagnostic naming a repository-relative path — a document whose frontmatter
|
|
100
|
+
* does not parse, or a symbolic link — in path order; empty when every document was read. The
|
|
101
|
+
* diagnostics are about the read, not part of the ranking, which is why
|
|
102
|
+
* {@link selectRelevantMemoryDocuments}, reading nothing, returns none.
|
|
103
|
+
*/
|
|
104
|
+
export interface WorkingTreeRelevantMemoryResult extends RelevantMemoryResult {
|
|
105
|
+
readonly diagnostics: readonly Diagnostic[];
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Rank and bound the Memory documents relevant to `element` (spec-012 §6, REQ-PERF-05), scanning the
|
|
109
|
+
* **working tree** under `root`: every document `memoryYaml` declares, in sorted path order
|
|
110
|
+
* (`loadMemoryDocuments`, task-008), handed to {@link selectRelevantMemoryDocuments}. An execution
|
|
111
|
+
* context does not use this reader: it ranks the snapshot read at its `stateRef` (`./context.ts`).
|
|
112
|
+
*
|
|
113
|
+
* The read is tolerant like every other Memory scan (task-171; task-253, `bug-230`; `spec-017` §1.4):
|
|
114
|
+
* a document whose frontmatter does not parse, and a symbolic link, are left out of the ranking and
|
|
115
|
+
* reported in the result's `diagnostics` as `W_MEMORY_UNREADABLE`, so one malformed document never
|
|
116
|
+
* fails the filter for every element.
|
|
117
|
+
*/
|
|
118
|
+
export declare function filterRelevantMemoryDocuments(root: string, memoryYaml: MemoryYaml, element: RelevanceElementRef, limits?: ContextLimits): WorkingTreeRelevantMemoryResult;
|
|
119
|
+
/**
|
|
120
|
+
* Rank and bound `documents` by their relevance to `element` (spec-012 §6, REQ-PERF-05). A pure
|
|
121
|
+
* function of its arguments: it reads nothing, so the caller decides which state is ranked — the
|
|
122
|
+
* working tree ({@link filterRelevantMemoryDocuments}) or one commit (`./context.ts`, `stateRef`).
|
|
123
|
+
* Deterministic end to end (REQ-SYS-07):
|
|
61
124
|
*
|
|
62
|
-
* 1. **
|
|
63
|
-
* already-sorted order, task-008) — no second directory walk.
|
|
64
|
-
* 2. **Exclude** the element's own document (never relevant to itself) and any document
|
|
125
|
+
* 1. **Exclude** the element's own document (never relevant to itself) and any document
|
|
65
126
|
* {@link isExcludedFromContext} bars — `draft` plus the shared archived set `{deprecated,
|
|
66
127
|
* superseded}` (`dl-028`; the archived half is the same predicate REQ-STATE-06 applies to default
|
|
67
128
|
* `memory search`, the `draft` half is context-only).
|
|
68
|
-
*
|
|
129
|
+
* 2. **Score** each remaining document: `1000*T1 + 100*T2 + 10*T3 + overlapCount(T4)` — T1 explicit
|
|
69
130
|
* link, T2 same release scope, T3 shared traceability key, T4 keyword/tag overlap count
|
|
70
131
|
* (spec-012 §6's exact formula). A document scoring `0` (no tier hit at all) is **not relevant**
|
|
71
132
|
* and is dropped — this is the relevance threshold P5.3.3-relevance-filtering.feature's "Edge - no
|
|
72
133
|
* documents pass the relevance threshold" scenario exercises.
|
|
73
|
-
*
|
|
74
|
-
* no `id`) — a total, deterministic tie-break (spec-012 §6/REQ-SYS-07).
|
|
75
|
-
*
|
|
134
|
+
* 3. **Order**: score DESC, then `type` ASC, then `id` ASC (falling back to `path` when a document has
|
|
135
|
+
* no `id`) — a total, deterministic tie-break (spec-012 §6/REQ-SYS-07). The input order therefore
|
|
136
|
+
* never reaches the output.
|
|
137
|
+
* 4. **Bound**: walk in that order, including documents until either `limits.maxDocs` or
|
|
76
138
|
* `limits.maxBytes` (summed UTF-8 body bytes) would be exceeded, then **stop** — never skip a
|
|
77
139
|
* lower-ranked document to fit under a cap while a higher-ranked one was excluded, and never
|
|
78
140
|
* partially include a document (spec-012 §6's "deterministic truncation").
|
|
79
141
|
*
|
|
80
|
-
* Returns {@link NO_RELEVANT_MEMORY_NOTE} in `note` only when **step
|
|
142
|
+
* Returns {@link NO_RELEVANT_MEMORY_NOTE} in `note` only when **step 2 left nothing** — i.e. no
|
|
81
143
|
* document passed the relevance threshold at all (P5.3.3's edge-case scenario, verbatim wording).
|
|
82
|
-
* When documents scored as relevant but step
|
|
144
|
+
* When documents scored as relevant but step 4's caps admitted none of them, `documents` is empty and
|
|
83
145
|
* `note` is omitted: relevant Memory *was* found, so the note would assert something false.
|
|
84
146
|
*/
|
|
85
|
-
export declare function
|
|
147
|
+
export declare function selectRelevantMemoryDocuments(documents: readonly MemoryDocumentSummary[], element: RelevanceElementRef, limits: ContextLimits): RelevantMemoryResult;
|
|
86
148
|
//# sourceMappingURL=relevance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relevance.d.ts","sourceRoot":"","sources":["../../src/core/relevance.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"relevance.d.ts","sourceRoot":"","sources":["../../src/core/relevance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,EAAuB,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAClF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,mDAAmD;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