wingfoil 0.2.2 → 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 +83 -43
- 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 +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init-command.d.ts.map +1 -1
- package/dist/cli/init-command.js +4 -2
- 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 +162 -40
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/registrar.d.ts +1 -1
- package/dist/cli/registrar.d.ts.map +1 -1
- package/dist/cli/registrar.js +67 -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.d.ts.map +1 -1
- package/dist/core/exit-code.js +6 -7
- package/dist/core/exit-code.js.map +1 -1
- 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 +184 -10
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1045 -185
- package/dist/core/index.js.map +1 -1
- package/dist/core/init.d.ts +45 -5
- package/dist/core/init.d.ts.map +1 -1
- package/dist/core/init.js +134 -24
- 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 +82 -10
- 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 +34 -29
- package/dist/directives/schema.d.ts.map +1 -1
- package/dist/directives/schema.js +35 -29
- 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 +8 -4
- 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 +110 -24
- package/dist/memory/add.d.ts.map +1 -1
- package/dist/memory/add.js +251 -64
- package/dist/memory/add.js.map +1 -1
- package/dist/memory/audit.d.ts +152 -39
- package/dist/memory/audit.d.ts.map +1 -1
- package/dist/memory/audit.js +257 -103
- 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 +73 -12
- package/dist/memory/history.d.ts.map +1 -1
- package/dist/memory/history.js +128 -44
- 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 +34 -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 +134 -46
- 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 +170 -16
- 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 +14 -0
- package/dist/validation/id.d.ts.map +1 -1
- package/dist/validation/id.js +35 -11
- 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 +30 -1
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/secret-scan.d.ts +3 -2
- package/dist/validation/secret-scan.d.ts.map +1 -1
- package/dist/validation/secret-scan.js +32 -11
- 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 +163 -15
- package/dist/workflow/schema.js.map +1 -1
- package/package.json +18 -8
package/dist/cli/init-command.js
CHANGED
|
@@ -17,6 +17,7 @@ exports.createReadlinePrompt = createReadlinePrompt;
|
|
|
17
17
|
*/
|
|
18
18
|
const node_readline_1 = require("node:readline");
|
|
19
19
|
const core_1 = require("../core");
|
|
20
|
+
const error_details_1 = require("../core/error-details");
|
|
20
21
|
const storage_1 = require("../storage");
|
|
21
22
|
const error_1 = require("./error");
|
|
22
23
|
const exit_1 = require("./exit");
|
|
@@ -68,7 +69,7 @@ async function selectTemplate(options, deps, format) {
|
|
|
68
69
|
async function runInit(options, deps) {
|
|
69
70
|
// Usage error first (pre-core), same as the registrar: an invalid --format never reaches core.
|
|
70
71
|
if (!(0, output_1.isValidFormat)(options.format)) {
|
|
71
|
-
(0, exit_1.exitWith)(2, `error:
|
|
72
|
+
(0, exit_1.exitWith)(2, `error: ${(0, output_1.invalidFormatReason)(options.format)}`);
|
|
72
73
|
return;
|
|
73
74
|
}
|
|
74
75
|
const format = options.format;
|
|
@@ -81,7 +82,8 @@ async function runInit(options, deps) {
|
|
|
81
82
|
process.stdout.write((0, output_1.renderSuccess)(result.value, format));
|
|
82
83
|
}
|
|
83
84
|
else {
|
|
84
|
-
|
|
85
|
+
// `details` too, as every derived command does (task-130 review, spec-005 §3.1).
|
|
86
|
+
(0, error_1.emitError)(result.error.message, { format, details: (0, error_details_1.errorDetails)(result.error) });
|
|
85
87
|
}
|
|
86
88
|
(0, exit_1.exitWith)((0, core_1.exitCodeForResult)(result));
|
|
87
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-command.js","sourceRoot":"","sources":["../../src/cli/init-command.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"init-command.js","sourceRoot":"","sources":["../../src/cli/init-command.ts"],"names":[],"mappings":";;AAiGA,0BA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C5D,CAAC;SAAM,CAAC;QACN,iFAAiF;QACjF,IAAA,iBAAS,EAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAA,4BAAY,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACnF,CAAC;IACD,IAAA,eAAQ,EAAC,IAAA,wBAAiB,EAAC,MAAM,CAAC,CAAC,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,SAAgB,oBAAoB;IAClC,OAAO,CAAC,QAAgB,EAAE,EAAE,CAC1B,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QAC9B,MAAM,EAAE,GAAG,IAAA,+BAAe,EAAC,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;QAC7E,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;YAC/B,EAAE,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -10,15 +10,24 @@ export interface McpCliDeps {
|
|
|
10
10
|
/** Start the server; defaults to {@link startMcpServer} (overridden in tests to avoid real stdio). */
|
|
11
11
|
readonly start?: (options: {
|
|
12
12
|
resolveRoot: () => string;
|
|
13
|
+
roles: readonly string[];
|
|
13
14
|
name: string;
|
|
14
15
|
version: string;
|
|
15
16
|
}) => Promise<unknown>;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
|
-
* Execute `wingfoil mcp`.
|
|
19
|
-
* emits `error: <reason>` on stderr and exits `1
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Execute `wingfoil mcp`. The pre-flight runs up front, fail-fast, and never starts the server on a
|
|
20
|
+
* failure — each one emits `error: <reason>` on stderr and exits `1`:
|
|
21
|
+
*
|
|
22
|
+
* 1. resolve the project root once (no git root);
|
|
23
|
+
* 2. read the DNA role set (`loadDnaRoleSet`): refused when the root has no `.wingfoil/`, with the
|
|
24
|
+
* shared not-initialized message, which names no path (`bug-035`), or when `dna.yaml` cannot be
|
|
25
|
+
* loaded, with the loader's reason and details. This is the one start-time read spec-014 §2
|
|
26
|
+
* allows (`dl-049` (b)); `createMcpServer` itself still reads nothing.
|
|
27
|
+
*
|
|
28
|
+
* It then hands the server start a closure returning the already-resolved root and the role set. On
|
|
29
|
+
* success it does not exit — the server runs over stdio until the transport closes, and stdout carries
|
|
30
|
+
* only the protocol.
|
|
22
31
|
*/
|
|
23
32
|
export declare function runMcp(deps: McpCliDeps): Promise<void>;
|
|
24
33
|
//# sourceMappingURL=mcp-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-command.d.ts","sourceRoot":"","sources":["../../src/cli/mcp-command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp-command.d.ts","sourceRoot":"","sources":["../../src/cli/mcp-command.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE5D,yGAAyG;AACzG,MAAM,WAAW,UAAU;IACzB,yGAAyG;IACzG,QAAQ,CAAC,WAAW,EAAE,MAAM,MAAM,CAAC;IACnC,sGAAsG;IACtG,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAC/B,sGAAsG;IACtG,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE;QACzB,WAAW,EAAE,MAAM,MAAM,CAAC;QAC1B,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;QACzB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACxB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB5D"}
|
package/dist/cli/mcp-command.js
CHANGED
|
@@ -8,22 +8,33 @@ exports.runMcp = runMcp;
|
|
|
8
8
|
* lifecycle, starting the production MCP server over stdio. It is wired directly onto the program
|
|
9
9
|
* (see ./program.ts), exactly like `wingfoil init` (task-029).
|
|
10
10
|
*
|
|
11
|
-
* `runMcp` owns the spec-014 §1 pre-flight: resolve the project root,
|
|
12
|
-
* `
|
|
13
|
-
*
|
|
11
|
+
* `runMcp` owns the spec-014 §1 pre-flight: resolve the project root, refuse a root with no
|
|
12
|
+
* `.wingfoil/` (`bug-035`), and read the DNA role set the Prompts channel serves for the server's whole
|
|
13
|
+
* life (`dl-049` (b), task-174). On any failure it emits the standard `error: <reason>` line and exits
|
|
14
|
+
* `1` (a user/logic error) WITHOUT starting a partially-wired server. The side-effecting server start (`startMcpServer`, which opens a
|
|
14
15
|
* real `StdioServerTransport`) is injected as `deps.start`, so this whole pre-flight is unit-testable
|
|
15
16
|
* without ever opening a real stdio channel against a repo — the same seam `init-command.ts`'s
|
|
16
17
|
* injectable `runInit` uses.
|
|
17
18
|
*/
|
|
19
|
+
const core_1 = require("../core");
|
|
20
|
+
const error_details_1 = require("../core/error-details");
|
|
18
21
|
const server_1 = require("../mcp/server");
|
|
19
22
|
const error_1 = require("./error");
|
|
20
23
|
const exit_1 = require("./exit");
|
|
21
24
|
const output_1 = require("./output");
|
|
22
25
|
/**
|
|
23
|
-
* Execute `wingfoil mcp`.
|
|
24
|
-
* emits `error: <reason>` on stderr and exits `1
|
|
25
|
-
*
|
|
26
|
-
*
|
|
26
|
+
* Execute `wingfoil mcp`. The pre-flight runs up front, fail-fast, and never starts the server on a
|
|
27
|
+
* failure — each one emits `error: <reason>` on stderr and exits `1`:
|
|
28
|
+
*
|
|
29
|
+
* 1. resolve the project root once (no git root);
|
|
30
|
+
* 2. read the DNA role set (`loadDnaRoleSet`): refused when the root has no `.wingfoil/`, with the
|
|
31
|
+
* shared not-initialized message, which names no path (`bug-035`), or when `dna.yaml` cannot be
|
|
32
|
+
* loaded, with the loader's reason and details. This is the one start-time read spec-014 §2
|
|
33
|
+
* allows (`dl-049` (b)); `createMcpServer` itself still reads nothing.
|
|
34
|
+
*
|
|
35
|
+
* It then hands the server start a closure returning the already-resolved root and the role set. On
|
|
36
|
+
* success it does not exit — the server runs over stdio until the transport closes, and stdout carries
|
|
37
|
+
* only the protocol.
|
|
27
38
|
*/
|
|
28
39
|
async function runMcp(deps) {
|
|
29
40
|
const format = deps.format && (0, output_1.isValidFormat)(deps.format) ? deps.format : 'console';
|
|
@@ -36,7 +47,13 @@ async function runMcp(deps) {
|
|
|
36
47
|
(0, exit_1.exitWith)(1);
|
|
37
48
|
return;
|
|
38
49
|
}
|
|
50
|
+
const roles = (0, core_1.loadDnaRoleSet)(root);
|
|
51
|
+
if (!roles.ok) {
|
|
52
|
+
(0, error_1.emitError)(roles.error.message, { format, details: (0, error_details_1.errorDetails)(roles.error) });
|
|
53
|
+
(0, exit_1.exitWith)(1);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
39
56
|
const start = deps.start ?? server_1.startMcpServer;
|
|
40
|
-
await start({ resolveRoot: () => root, name: 'wingfoil', version: deps.version });
|
|
57
|
+
await start({ resolveRoot: () => root, roles: roles.value, name: 'wingfoil', version: deps.version });
|
|
41
58
|
}
|
|
42
59
|
//# sourceMappingURL=mcp-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-command.js","sourceRoot":"","sources":["../../src/cli/mcp-command.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-command.js","sourceRoot":"","sources":["../../src/cli/mcp-command.ts"],"names":[],"mappings":";;AAsDA,wBAqBC;AA3ED;;;;;;;;;;;;;;GAcG;AACH,kCAAyC;AACzC,yDAAqD;AACrD,0CAA+C;AAE/C,mCAAoC;AACpC,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20 @@
|
|
|
2
2
|
export type OutputFormat = 'console' | 'json' | 'yaml';
|
|
3
3
|
/** Type guard: `true` (narrowing to {@link OutputFormat}) when `value` is one of the accepted `--format` values. */
|
|
4
4
|
export declare function isValidFormat(value: string): value is OutputFormat;
|
|
5
|
+
/**
|
|
6
|
+
* The reason an unrecognised `--format` value is refused with (spec-005 §2), without the `error: `
|
|
7
|
+
* prefix: one composer for every command, the derived ones (`./registrar.ts`) and the bootstrap ones
|
|
8
|
+
* (`./program.ts`, `./init-command.ts`), so the line cannot drift between them (task-179, `bug-226`).
|
|
9
|
+
*/
|
|
10
|
+
export declare function invalidFormatReason(value: string): string;
|
|
5
11
|
/**
|
|
6
12
|
* Render a successful `CoreResult.value` to stdout text, per the envelope rules in spec-005 §2:
|
|
7
|
-
* `json`/`yaml` carry only the structured payload (no banners/colour)
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
13
|
+
* `json`/`yaml` carry only the structured payload (no banners/colour). `console` has no human
|
|
14
|
+
* rendering yet: it prints `json`'s payload indented by two spaces, with no colour, as spec-008 §2
|
|
15
|
+
* declares, until P5.1.4 gives it one (`dl-043`, v0.4; task-156, `bug-152`). That change is meant to
|
|
16
|
+
* be visible: `test/cli/console-format-fallback.integration.test.ts` pins today's bytes. The one
|
|
17
|
+
* exception is a command whose spec defines its own console text (`agent show`, spec-016 §6): the
|
|
18
|
+
* registrar prints its `CoreOperation.renderConsole` instead and never calls this for `console`.
|
|
11
19
|
*/
|
|
12
20
|
export declare function renderSuccess(value: unknown, format: OutputFormat): string;
|
|
13
21
|
//# sourceMappingURL=output.d.ts.map
|
package/dist/cli/output.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":"AAMA,uGAAuG;AACvG,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,oHAAoH;AACpH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAElE;AAED
|
|
1
|
+
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":"AAMA,uGAAuG;AACvG,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,oHAAoH;AACpH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAElE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,GAAG,MAAM,CAI1E"}
|
package/dist/cli/output.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isValidFormat = isValidFormat;
|
|
4
|
+
exports.invalidFormatReason = invalidFormatReason;
|
|
4
5
|
exports.renderSuccess = renderSuccess;
|
|
5
6
|
/**
|
|
6
7
|
* Machine-readable output formats (spec-005-cli-command-contract §2, REQ-INT-05). `console` is the
|
|
@@ -11,12 +12,22 @@ const js_yaml_1 = require("js-yaml");
|
|
|
11
12
|
function isValidFormat(value) {
|
|
12
13
|
return value === 'console' || value === 'json' || value === 'yaml';
|
|
13
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The reason an unrecognised `--format` value is refused with (spec-005 §2), without the `error: `
|
|
17
|
+
* prefix: one composer for every command, the derived ones (`./registrar.ts`) and the bootstrap ones
|
|
18
|
+
* (`./program.ts`, `./init-command.ts`), so the line cannot drift between them (task-179, `bug-226`).
|
|
19
|
+
*/
|
|
20
|
+
function invalidFormatReason(value) {
|
|
21
|
+
return `invalid --format value "${value}", expected one of: console, json, yaml`;
|
|
22
|
+
}
|
|
14
23
|
/**
|
|
15
24
|
* Render a successful `CoreResult.value` to stdout text, per the envelope rules in spec-005 §2:
|
|
16
|
-
* `json`/`yaml` carry only the structured payload (no banners/colour)
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
25
|
+
* `json`/`yaml` carry only the structured payload (no banners/colour). `console` has no human
|
|
26
|
+
* rendering yet: it prints `json`'s payload indented by two spaces, with no colour, as spec-008 §2
|
|
27
|
+
* declares, until P5.1.4 gives it one (`dl-043`, v0.4; task-156, `bug-152`). That change is meant to
|
|
28
|
+
* be visible: `test/cli/console-format-fallback.integration.test.ts` pins today's bytes. The one
|
|
29
|
+
* exception is a command whose spec defines its own console text (`agent show`, spec-016 §6): the
|
|
30
|
+
* registrar prints its `CoreOperation.renderConsole` instead and never calls this for `console`.
|
|
20
31
|
*/
|
|
21
32
|
function renderSuccess(value, format) {
|
|
22
33
|
if (format === 'json')
|
package/dist/cli/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":";;AAUA,sCAEC;
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/cli/output.ts"],"names":[],"mappings":";;AAUA,sCAEC;AAOD,kDAEC;AAWD,sCAIC;AApCD;;;GAGG;AACH,qCAA2C;AAK3C,oHAAoH;AACpH,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,MAAM,CAAC;AACrE,CAAC;AAED;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC/C,OAAO,2BAA2B,KAAK,yCAAyC,CAAC;AACnF,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,aAAa,CAAC,KAAc,EAAE,MAAoB;IAChE,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;IAC3D,IAAI,MAAM,KAAK,MAAM;QAAE,OAAO,IAAA,cAAQ,EAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;AAC/C,CAAC"}
|
package/dist/cli/program.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Command } from 'commander' with { 'resolution-mode': 'import' };
|
|
2
|
-
import type
|
|
2
|
+
import { type CoreModule } from '../core/registry';
|
|
3
3
|
import { type BuildCommandsOptions } from './registrar';
|
|
4
4
|
/**
|
|
5
5
|
* Build the root `commander` program: register the global flags, the special `init`/`mcp` bootstrap
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAE9E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC,OAAO,iBAAiB,EAAE,QAAQ,EAAE,CAAC;AAE9E,OAAO,EAA6C,KAAK,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAMnH,OAAO,EAAoB,KAAK,oBAAoB,EAAmB,MAAM,aAAa,CAAC;AAmB3F;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAmMlH"}
|
package/dist/cli/program.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.buildProgram = buildProgram;
|
|
|
38
38
|
*/
|
|
39
39
|
const node_fs_1 = require("node:fs");
|
|
40
40
|
const node_path_1 = require("node:path");
|
|
41
|
+
const registry_1 = require("../core/registry");
|
|
41
42
|
// Direct module import, not the `../core` barrel — the same path `./registrar.ts` already uses for the
|
|
42
43
|
// other two exit-code mappings (task-101; keeps this file out of the barrel's merge surface).
|
|
43
44
|
const exit_code_1 = require("../core/exit-code");
|
|
@@ -48,6 +49,7 @@ const mcp_command_1 = require("./mcp-command");
|
|
|
48
49
|
const error_1 = require("./error");
|
|
49
50
|
const exit_1 = require("./exit");
|
|
50
51
|
const output_1 = require("./output");
|
|
52
|
+
const suggest_1 = require("./suggest");
|
|
51
53
|
/**
|
|
52
54
|
* The CLI version, read from `package.json` deterministically (REQ-SYS-07 — no wall-clock, no
|
|
53
55
|
* inference): the manifest sits two levels up from this module in both the `src/cli/` source layout
|
|
@@ -78,8 +80,9 @@ async function buildProgram(modules, options) {
|
|
|
78
80
|
// and the process ends through `exitWith`, the single exit seam of `./exit.ts`, like every other
|
|
79
81
|
// outcome.
|
|
80
82
|
//
|
|
81
|
-
// COMMANDER'S OWN MESSAGES ARE
|
|
82
|
-
// its
|
|
83
|
+
// COMMANDER'S OWN MESSAGES ARE NOT REPEATED: for every error it raises, Commander has already written
|
|
84
|
+
// its message before calling this — in the active `--format` since task-130, through the
|
|
85
|
+
// `configureOutput` hooks below — so nothing is added on top of it. The ONE outcome where
|
|
83
86
|
// it writes no error message at all is an invocation it found incomplete — a noun with no verb —
|
|
84
87
|
// where it prints help to stderr and nothing else; `spec-005` §1 requires a non-zero exit to carry
|
|
85
88
|
// an error message *always*, so that outcome (and only that one, flagged by `needsErrorLine`) gets
|
|
@@ -95,9 +98,37 @@ async function buildProgram(modules, options) {
|
|
|
95
98
|
// set before it dispatches) with the global options removed.
|
|
96
99
|
program.exitOverride((error) => {
|
|
97
100
|
const termination = (0, exit_code_1.classifyParseOutcome)(error);
|
|
98
|
-
if (termination.needsErrorLine)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
if (termination.needsErrorLine) {
|
|
102
|
+
const { reason, hint } = incompleteInvocationReason(program.args);
|
|
103
|
+
(0, error_1.emitError)(reason, { format: activeFormat(program), ...(hint !== undefined ? { hint } : {}) });
|
|
104
|
+
}
|
|
105
|
+
const deferred = (0, exit_1.exitWith)(termination.exitCode);
|
|
106
|
+
// Commander ends the process itself, at ITS code, as soon as this callback returns. When the exit
|
|
107
|
+
// is waiting for queued output to drain (task-249, `bug-222` — e.g. a long `--help` into a pipe),
|
|
108
|
+
// returning would let Commander cut that output short at the wrong code; throwing hands control
|
|
109
|
+
// back to the entry point, which leaves the deferred exit to happen.
|
|
110
|
+
if (deferred)
|
|
111
|
+
throw new exit_1.DeferredExit(termination.exitCode);
|
|
112
|
+
});
|
|
113
|
+
// Commander's own refusals in the active `--format` (task-130, `bug-114`, spec-005 §3.2). Commander
|
|
114
|
+
// writes an error through `outputError` and the help it prints for an incomplete invocation through
|
|
115
|
+
// `writeErr`, so these two hooks are the whole parse path's stderr. Every error goes through
|
|
116
|
+
// `emitError` (`src/cli/error.ts`) in every format, so it has spec-005 §3's shape: the `error:` line,
|
|
117
|
+
// then a `hint:` line when a suggestion applies (task-179, `bug-104`; `commanderRefusal`). Under
|
|
118
|
+
// `json`/`yaml` the message becomes the same `{error, hint?}` object a WingFoil refusal is, and the
|
|
119
|
+
// help text — which would bury that object — is not written: `--help` itself writes to stdout and is
|
|
120
|
+
// unaffected.
|
|
121
|
+
// `--format` is read when the error fires; Commander has parsed the root program's options by then,
|
|
122
|
+
// wherever on the command line they stand. Installed before the first `.command()`, like the callback
|
|
123
|
+
// above, because `copyInheritedSettings` copies the output configuration at registration time.
|
|
124
|
+
program.configureOutput({
|
|
125
|
+
writeErr: (text) => {
|
|
126
|
+
if (activeFormat(program) === 'console')
|
|
127
|
+
process.stderr.write(text);
|
|
128
|
+
},
|
|
129
|
+
outputError: (text) => {
|
|
130
|
+
(0, error_1.emitError)(...commanderRefusal(program, text, activeFormat(program)));
|
|
131
|
+
},
|
|
101
132
|
});
|
|
102
133
|
// How a command is listed under its parent (task-120, `bug-128`). Commander's own `subcommandTerm`
|
|
103
134
|
// renders each registered argument from the flag Commander ENFORCES, which is why every derived verb
|
|
@@ -109,11 +140,15 @@ async function buildProgram(modules, options) {
|
|
|
109
140
|
program.configureHelp({ subcommandTerm: (command) => subcommandTerm(command, declaredPositionals.get(command)) });
|
|
110
141
|
// Register `-V, --version` so `wingfoil --version` prints the version and exits 0
|
|
111
142
|
// (spec-008-cli-grammar §1, bug-001-cli-version-flag) — Commander handles it before any command.
|
|
112
|
-
|
|
143
|
+
// It prints the build stamp `<semver> (<sha>)`, the value every commit's `WingFoil-Version:` trailer
|
|
144
|
+
// carries (task-192, `dl-111` Action 3); the MCP server keeps announcing the bare semver below.
|
|
145
|
+
program.version((0, storage_1.readBuildStamp)());
|
|
113
146
|
program
|
|
114
|
-
.
|
|
147
|
+
// Until P5.1.4 gives `console` a human rendering (`dl-043`), the help says what the default prints
|
|
148
|
+
// and that no output is coloured (spec-008 §2, task-156, `bug-152`, `bug-203`).
|
|
149
|
+
.option('--format <format>', 'output format (console|json|yaml); console prints indented JSON for now, unless the command defines its own', 'console')
|
|
115
150
|
.option('--verbose', 'emit diagnostic logs to stderr')
|
|
116
|
-
.option('--no-color', 'disable ANSI colors')
|
|
151
|
+
.option('--no-color', 'disable ANSI colors (accepted; no output is colored yet)')
|
|
117
152
|
.option('--no-interactive', 'fail on missing args instead of prompting');
|
|
118
153
|
// `wingfoil init` is a SPECIAL bootstrap command (task-029, P5.1.1): it runs BEFORE config exists,
|
|
119
154
|
// so it is NOT a `CORE_MODULES` noun-verb op — it is wired directly here and drives `runInit`
|
|
@@ -127,14 +162,17 @@ async function buildProgram(modules, options) {
|
|
|
127
162
|
// against and the missing-argument error names (./init-command.ts).
|
|
128
163
|
.option('--template <name>', `methodology template, one of: ${storage_1.TEMPLATE_NAMES.join(', ')} (required without a terminal or with --no-interactive)`)
|
|
129
164
|
.addHelpText('after', leafHelpFooter(`wingfoil init --template ${storage_1.TEMPLATE_NAMES[0] ?? '<name>'}`))
|
|
130
|
-
.
|
|
165
|
+
.allowExcessArguments(true)
|
|
166
|
+
.action(async (localOpts, command) => {
|
|
167
|
+
if (refusedInvalidFormat(program) || refusedSurplus(program, 'init', command.args))
|
|
168
|
+
return;
|
|
131
169
|
const globalOpts = program.opts();
|
|
132
170
|
let root;
|
|
133
171
|
try {
|
|
134
172
|
root = options.resolveRoot();
|
|
135
173
|
}
|
|
136
174
|
catch (error) {
|
|
137
|
-
(0, error_1.emitError)(error instanceof Error ? error.message : String(error), { format:
|
|
175
|
+
(0, error_1.emitError)(error instanceof Error ? error.message : String(error), { format: activeFormat(program) });
|
|
138
176
|
(0, exit_1.exitWith)(1);
|
|
139
177
|
return;
|
|
140
178
|
}
|
|
@@ -150,10 +188,11 @@ async function buildProgram(modules, options) {
|
|
|
150
188
|
.command('mcp')
|
|
151
189
|
.description('start the WingFoil MCP server (read-only Resources and role Prompts) over stdio')
|
|
152
190
|
.addHelpText('after', leafHelpFooter('wingfoil mcp'))
|
|
153
|
-
.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
191
|
+
.allowExcessArguments(true)
|
|
192
|
+
.action(async (_localOpts, command) => {
|
|
193
|
+
if (refusedInvalidFormat(program) || refusedSurplus(program, 'mcp', command.args))
|
|
194
|
+
return;
|
|
195
|
+
await (0, mcp_command_1.runMcp)({ resolveRoot: options.resolveRoot, version: readPackageVersion(), format: activeFormat(program) });
|
|
157
196
|
});
|
|
158
197
|
const nounCommands = new Map();
|
|
159
198
|
for (const command of (0, registrar_1.buildCliCommands)(modules, options)) {
|
|
@@ -164,15 +203,16 @@ async function buildProgram(modules, options) {
|
|
|
164
203
|
if (command.description !== undefined)
|
|
165
204
|
target.description(command.description);
|
|
166
205
|
// The operand (task-025's `positionals` seam, named by task-120). PARSING is the same for every
|
|
167
|
-
// derived command whatever it declares: Commander accepts any number of operands and
|
|
168
|
-
// what to refuse, with its own message — `dl-082-cli-parameter-shape` gives each command at
|
|
169
|
-
// ONE positional, the identity of its target, and
|
|
170
|
-
//
|
|
171
|
-
//
|
|
172
|
-
//
|
|
173
|
-
//
|
|
174
|
-
//
|
|
175
|
-
//
|
|
206
|
+
// derived command whatever it declares: Commander accepts any number of operands and WingFoil
|
|
207
|
+
// decides what to refuse, with its own message — `dl-082-cli-parameter-shape` gives each command at
|
|
208
|
+
// most ONE positional, the identity of its target, and `./registrar.ts` refuses a surplus operand,
|
|
209
|
+
// and a missing required one, at exit `2` before anything is read (task-129, `bug-171`, `bug-131`;
|
|
210
|
+
// task-179, `bug-180`, `bug-168`), rather than leave it to a Commander arity error, whose wording
|
|
211
|
+
// would differ from command to command. A declared positional is registered as an OPTIONAL variadic
|
|
212
|
+
// argument under its declared name: marking it required to Commander would replace WingFoil's
|
|
213
|
+
// `missing required argument: <id>` with Commander's own refusal, so required-ness is RENDERED here
|
|
214
|
+
// (the usage line below, `subcommandTerm`) and enforced by the registrar. A command that declares none registers no argument — so `--help` shows
|
|
215
|
+
// none — and allows excess arguments, so that the surplus reaches the registrar's refusal.
|
|
176
216
|
if (command.positional) {
|
|
177
217
|
target.argument(`[${command.positional.name}...]`, command.positional.description);
|
|
178
218
|
declaredPositionals.set(target, command.positional);
|
|
@@ -262,26 +302,108 @@ function leafHelpFooter(example) {
|
|
|
262
302
|
].join('\n');
|
|
263
303
|
}
|
|
264
304
|
/**
|
|
265
|
-
* The `
|
|
305
|
+
* The invalid-`--format` refusal of the two hand-wired bootstrap commands (task-179, `bug-226`): checked
|
|
306
|
+
* FIRST, before the surplus operand, as the registrar checks it first for every derived command — the
|
|
307
|
+
* value decides how every later error is rendered, so one order holds for every command
|
|
308
|
+
* (`spec-008-cli-grammar` §1). Console text at exit `2`, the same {@link invalidFormatReason} line
|
|
309
|
+
* (`spec-005` §2). `mcp` used to fall back to `console` and start; it is refused like any command.
|
|
310
|
+
*
|
|
311
|
+
* @returns `true` when the invocation was refused (the caller returns).
|
|
312
|
+
*/
|
|
313
|
+
function refusedInvalidFormat(program) {
|
|
314
|
+
const value = program.opts().format;
|
|
315
|
+
if ((0, output_1.isValidFormat)(value))
|
|
316
|
+
return false;
|
|
317
|
+
(0, exit_1.exitWith)(2, `error: ${(0, output_1.invalidFormatReason)(value)}`);
|
|
318
|
+
return true;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* The surplus-operand refusal of the two hand-wired bootstrap commands (`bug-179`, task-165). `init`
|
|
322
|
+
* and `mcp` declare no positional, so any operand is a surplus (`spec-008-cli-grammar` §1): refused at
|
|
323
|
+
* exit `2` with the same {@link extraOperandsReason} wording the registrar gives every `CORE_MODULES`
|
|
324
|
+
* command (task-129), in the active `--format`, before the project root is resolved — so nothing is
|
|
325
|
+
* read or written. Both commands allow excess arguments so the surplus reaches this check instead of
|
|
326
|
+
* Commander's own `too many arguments` refusal, whose wording differs.
|
|
327
|
+
*
|
|
328
|
+
* @returns `true` when the invocation was refused (the caller returns), `false` when it had no operand.
|
|
329
|
+
*/
|
|
330
|
+
function refusedSurplus(program, name, operands) {
|
|
331
|
+
if (operands.length === 0)
|
|
332
|
+
return false;
|
|
333
|
+
(0, error_1.emitError)((0, registry_1.extraOperandsReason)(name, undefined, operands.length), { format: activeFormat(program) });
|
|
334
|
+
(0, exit_1.exitWith)(2);
|
|
335
|
+
return true;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* The `--format` an error is rendered in: the parsed global option when it is a valid format, else
|
|
339
|
+
* `console` — an invalid value is itself refused in console text by the registrar (spec-005 §2), and a
|
|
340
|
+
* parse error can fire before `--format` has a usable value at all (task-130, `bug-114`).
|
|
341
|
+
*/
|
|
342
|
+
function activeFormat(program) {
|
|
343
|
+
const value = program.getOptionValue('format');
|
|
344
|
+
return typeof value === 'string' && (0, output_1.isValidFormat)(value) ? value : 'console';
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Commander's error text as {@link emitError} arguments (task-130, `bug-114`; task-179, `bug-104`).
|
|
348
|
+
* Commander writes `error: <reason>\n`, and for an unknown command or option its closest match on a
|
|
349
|
+
* line of its own, `(Did you mean <name>?)`. The first line without its `error: ` prefix is the reason.
|
|
350
|
+
* The `hint` is spec-005 §3.1's `did you mean "<name>"?`:
|
|
351
|
+
*
|
|
352
|
+
* - for an **unknown command**, WingFoil's own match (`./suggest.ts`, Levenshtein distance ≤ 2,
|
|
353
|
+
* `spec-008` §1) against the commands of the level the token was typed at; Commander's suggestion,
|
|
354
|
+
* from a different algorithm, is dropped;
|
|
355
|
+
* - for an **unknown option**, Commander's match, re-worded into the same `hint:` shape — `spec-008` §1
|
|
356
|
+
* fixes the algorithm for commands only, and Commander knows every option a command inherits.
|
|
357
|
+
*
|
|
358
|
+
* Any other line is kept, joined to the reason, so nothing Commander said is dropped.
|
|
359
|
+
*/
|
|
360
|
+
function commanderRefusal(program, text, format) {
|
|
361
|
+
const [first = '', ...rest] = text.split('\n').map((line) => line.trim()).filter((line) => line !== '');
|
|
362
|
+
const suggestion = /^\(Did you mean (.*)\?\)$/;
|
|
363
|
+
const reason = [first.replace(/^error: /, ''), ...rest.filter((line) => !suggestion.test(line))].join(' ');
|
|
364
|
+
const unknownCommand = /^unknown command '(.*)'$/.exec(reason)?.[1];
|
|
365
|
+
const suggested = unknownCommand !== undefined
|
|
366
|
+
? (0, suggest_1.closestCommand)(unknownCommand, commandsBeside(program))
|
|
367
|
+
: rest.map((line) => suggestion.exec(line)?.[1]).find((match) => match !== undefined);
|
|
368
|
+
return [reason, { format, ...(suggested !== undefined ? { hint: (0, suggest_1.unknownCommandHint)(suggested) } : {}) }];
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* The names (and aliases) of the commands an unknown command was typed among: walk the root program's
|
|
372
|
+
* operands from the top, descending into each known command, and stop at the first operand no command
|
|
373
|
+
* at that level answers to — the one Commander refused. The list is the one Commander itself would
|
|
374
|
+
* consider there (`Help#visibleCommands`, its built-in `help` included).
|
|
375
|
+
*/
|
|
376
|
+
function commandsBeside(program) {
|
|
377
|
+
let level = program;
|
|
378
|
+
for (const operand of program.args) {
|
|
379
|
+
const next = level.commands.find((command) => command.name() === operand || command.aliases().includes(operand));
|
|
380
|
+
if (next === undefined)
|
|
381
|
+
break;
|
|
382
|
+
level = next;
|
|
383
|
+
}
|
|
384
|
+
return program
|
|
385
|
+
.createHelp()
|
|
386
|
+
.visibleCommands(level)
|
|
387
|
+
.flatMap((command) => [command.name(), ...command.aliases()]);
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* The refusal (spec-005 §3.1) for an invocation Commander found incomplete —
|
|
266
391
|
* task-103-a-missing-verb-exits-2-with-an-error-line (`bug-103`). Commander supplies no message on
|
|
267
392
|
* this path, so the wording is a **ruling**, recorded here rather than left to the reader:
|
|
268
393
|
*
|
|
269
|
-
* - `wingfoil dna`, `wingfoil memory`, and `wingfoil` with no arguments at all →
|
|
270
|
-
*
|
|
271
|
-
* <command
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
* through `help` is the same mistake and a script should have one shape to grep. The single quotes
|
|
279
|
-
* are Commander's; `spec-005` §4's example shows double ones, and reconciling the two spellings
|
|
280
|
-
* (along with the missing `hint:` suggestion) is `bug-104`'s, which owns both lines at once. Picking
|
|
281
|
-
* a third spelling here would make that reconciliation harder, not easier.
|
|
394
|
+
* - `wingfoil dna`, `wingfoil memory`, and `wingfoil` with no arguments at all → the one
|
|
395
|
+
* missing-operand shape every command uses (task-179, `bug-168`; `missingOperandReason`):
|
|
396
|
+
* `missing required argument: <command>`, with the incomplete invocation and the token that would
|
|
397
|
+
* complete it as the `hint:` line, `usage: wingfoil dna <command>`. `<command>` rather than `<verb>`
|
|
398
|
+
* matches Commander's own placeholder in the usage line it prints above, under `console`.
|
|
399
|
+
* - `wingfoil help nosuchnoun` → `unknown command 'nosuchnoun'`, byte-for-byte the reason `wingfoil
|
|
400
|
+
* nosuchnoun` emits, because asking about an unknown noun through `help` is the same mistake and a
|
|
401
|
+
* script should have one shape to grep. It carries no `hint:` line: the suggestion on this path is
|
|
402
|
+
* `bug-115`'s (v0.4), out of task-179's scope.
|
|
282
403
|
*
|
|
283
404
|
* @param operands - the root program's `args`: the invocation's operands, global options already
|
|
284
405
|
* removed by Commander itself. This function never re-parses argv.
|
|
406
|
+
* @returns the reason, and the hint when there is one.
|
|
285
407
|
*/
|
|
286
408
|
function incompleteInvocationReason(operands) {
|
|
287
409
|
const [first, second] = operands;
|
|
@@ -289,8 +411,8 @@ function incompleteInvocationReason(operands) {
|
|
|
289
411
|
// `Command#_dispatchHelpCommand` falls through to `_dispatchSubcommand`, whose `if (!subCommand)`
|
|
290
412
|
// raises it. `help` alone and `help <known-noun>` exit 0 and never arrive here.
|
|
291
413
|
if (first === 'help' && second !== undefined)
|
|
292
|
-
return `unknown command '${second}'
|
|
293
|
-
return
|
|
414
|
+
return { reason: `unknown command '${second}'` };
|
|
415
|
+
return { reason: (0, registry_1.missingOperandReason)('command'), hint: `usage: ${['wingfoil', ...operands, '<command>'].join(' ')}` };
|
|
294
416
|
}
|
|
295
417
|
/**
|
|
296
418
|
* The Commander `Command` a `CliCommand` registers itself on: a flat, no-verb command
|
|
@@ -322,7 +444,7 @@ function buildFlagValues(command, options) {
|
|
|
322
444
|
return undefined;
|
|
323
445
|
const flagValues = {};
|
|
324
446
|
for (const name of flagNames) {
|
|
325
|
-
flagValues[name] = Boolean(options[name]);
|
|
447
|
+
flagValues[name] = Boolean(options[commanderKey(name)]);
|
|
326
448
|
}
|
|
327
449
|
return flagValues;
|
|
328
450
|
}
|
package/dist/cli/program.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"program.js","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":";;AAwEA,oCAgKC;AAxOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qCAAuC;AACvC,yCAAiC;AAMjC,uGAAuG;AACvG,8FA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S,EAAE,CAAC;QAC7B,UAAU,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,iBAAiB,CACxB,OAAmB,EACnB,OAAgC;IAEhC,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IACvC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,YAAY,GAA+C,EAAE,CAAC;IACpE,KAAK,MAAM,EAAE,IAAI,EAAE,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;QAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ;YAAE,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;aACrD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,YAAY,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAkB,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC;IACvH,CAAC;IACD,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC,MAAM,EAAE,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;AACvF,CAAC"}
|
package/dist/cli/registrar.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* operation regardless of `mutates`"). No business logic lives outside `run`: it only (a)
|
|
8
8
|
* validates the global `--format` flag, (b) turns the invocation into typed params via the
|
|
9
9
|
* caller-supplied `buildParams`, (c) calls the one core function, (d) renders the resulting
|
|
10
|
-
* `CoreResult` via `renderSuccess
|
|
10
|
+
* `CoreResult` via `renderSuccess` (plus `emitWarnings` for its warnings, task-169)/`emitError` and terminates via `exitWith` — matching spec-005
|
|
11
11
|
* §1's "exactly one process exit call per invocation".
|
|
12
12
|
*
|
|
13
13
|
* Deliberately Commander-independent (see `./program.ts`'s module doc for why): this module owns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrar.d.ts","sourceRoot":"","sources":["../../src/cli/registrar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"registrar.d.ts","sourceRoot":"","sources":["../../src/cli/registrar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAaxG,qIAAqI;AACrI,MAAM,WAAW,oBAAoB;IACnC,oGAAoG;IACpG,QAAQ,CAAC,WAAW,EAAE,MAAM,MAAM,CAAC;IACnC,iHAAiH;IACjH,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,qFAAqF;IACrF,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,2FAA2F;IAC3F,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,iHAAiH;IACjH,QAAQ,CAAC,UAAU,CAAC,EAAE,cAAc,CAAC;IACrC,uGA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