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
package/dist/memory/add.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Turn a human `--title` into a single, valid `[a-z0-9-.]` ID slug piece (spec-009-validation-strategy
|
|
3
3
|
* §1's ID character class, the same one `generateId` enforces): lowercase, every run of characters
|
|
4
|
-
* outside `[a-z0-9]` collapsed to one `-`, and no leading/trailing/doubled
|
|
5
|
-
*
|
|
4
|
+
* outside `[a-z0-9]` collapsed to one `-`, and no leading/trailing/doubled `-` — except that a run
|
|
5
|
+
* consisting of exactly one `.` between two alphanumerics is **kept** (`v0.2` → `v0.2`,
|
|
6
|
+
* `dl-107` S1 (a), task-110). That is the character rule `generateId`'s Pass-B slug check
|
|
7
|
+
* (`[a-z0-9.]+(?:-[a-z0-9.]+)*`) already accepts, so the slugifier and the validator share one rule
|
|
8
|
+
* instead of the slug being stricter than the id it feeds. Ids added before this rule are untouched:
|
|
9
|
+
* an id is immutable once added.
|
|
6
10
|
*/
|
|
7
11
|
export declare function slugifyTitle(title: string): string;
|
|
8
12
|
/**
|
|
@@ -11,40 +15,179 @@ export declare function slugifyTitle(title: string): string;
|
|
|
11
15
|
* default rather than writing an empty list).
|
|
12
16
|
*/
|
|
13
17
|
export declare function parseTags(raw: string | undefined): string[] | undefined;
|
|
14
|
-
/** Whether an `id_pattern` contains a `{n}`-family numeric token (e.g. `task-{n}-{slug}`) —
|
|
15
|
-
* needs a sequence counter resolved before {@link generateId} can render it. */
|
|
18
|
+
/** Whether an `id_pattern` contains a `{n}`-family numeric token (e.g. `task-{n}-{slug}`, `u-{n:1}`) —
|
|
19
|
+
* i.e. it needs a sequence counter resolved before {@link generateId} can render it. */
|
|
16
20
|
export declare function hasNumericToken(idPattern: string): boolean;
|
|
17
21
|
/**
|
|
18
|
-
* The
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
22
|
+
* The author date git would record for a commit made now at `root`, as git's internal
|
|
23
|
+
* `<seconds> <offset>` pair (`1790731800 -0200`): `GIT_AUTHOR_DATE` when it is set, in any format git
|
|
24
|
+
* accepts, otherwise the system clock — read ONCE, through `git var GIT_AUTHOR_IDENT` (task-163,
|
|
25
|
+
* `bug-158`). `memory add` builds `{date}` from it ({@link formatIdDate}) and records the add commit
|
|
26
|
+
* with this same author date (passed back as `@<seconds> <offset>`: git reads a bare pair as a
|
|
27
|
+
* timestamp only from 9 digits of seconds up), so the id and the commit cannot disagree, and a caller (a test, a
|
|
28
|
+
* replay) fixes the date the way it fixes any git author date.
|
|
29
|
+
*
|
|
30
|
+
* `identity` is passed to git as `GIT_AUTHOR_NAME`/`GIT_AUTHOR_EMAIL`: the identity was already
|
|
31
|
+
* resolved and checked (`requireGitIdentity`), and only the date part of git's answer is read.
|
|
32
|
+
*
|
|
33
|
+
* @throws {@link StorageError} `E_GIT_READ_FAILED` when git refuses (e.g. a `GIT_AUTHOR_DATE` it
|
|
34
|
+
* cannot parse) or answers in a shape that is not `… <seconds> <offset>`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function readAuthorDate(root: string, identity: {
|
|
37
|
+
readonly name: string;
|
|
38
|
+
readonly email: string;
|
|
39
|
+
}): string;
|
|
40
|
+
/**
|
|
41
|
+
* The `<seconds> <offset>` date that ends a git ident line (`Name <email> 1790731800 -0200`). Pure.
|
|
42
|
+
*
|
|
43
|
+
* @throws {@link StorageError} `E_GIT_READ_FAILED` when the line does not end with one.
|
|
44
|
+
*/
|
|
45
|
+
export declare function identDate(ident: string): string;
|
|
46
|
+
/**
|
|
47
|
+
* `{date}`'s value (`spec-001`'s placeholder table): the UTC calendar date `YYYYMMDD` of a git
|
|
48
|
+
* `<seconds> <offset>` date ({@link readAuthorDate}). The offset does not move the instant, so
|
|
49
|
+
* `23:30 -0200` on the 29th is the 30th. Pure.
|
|
50
|
+
*/
|
|
51
|
+
export declare function formatIdDate(gitDate: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The highest `{n}` value among `paths` (repository-relative, `/`-separated) that the type's `path`
|
|
54
|
+
* pattern and materialized `id_pattern` match, or `0` when none does (`spec-001` "Counter algorithm",
|
|
55
|
+
* `dl-101` §2 (a)). The **highest**, not a count, so a gap never reissues a number (`bug-087`); and a
|
|
56
|
+
* maximum, so the answer is independent of the order `paths` arrive in (REQ-SYS-07).
|
|
57
|
+
*/
|
|
58
|
+
export declare function highestSequenceNumber(paths: Iterable<string>, pathPattern: string, idPattern: string): number;
|
|
59
|
+
/**
|
|
60
|
+
* The commits of the refs a number or a WIP slot can be taken on (`dl-101` §2 (a)): the tip of every
|
|
61
|
+
* local branch (`refs/heads/*`) and remote-tracking ref (`refs/remotes/*`), and `HEAD` (a detached
|
|
62
|
+
* `HEAD` is on no branch; an unborn one adds nothing), as full shas, de-duplicated and sorted
|
|
63
|
+
* (REQ-SYS-07). No network: the remote-tracking refs are what the last `git fetch` left (`dl-101`
|
|
64
|
+
* §1.1).
|
|
65
|
+
*
|
|
66
|
+
* The one listing of "every ref" both wider reads use — `memory add`'s `{n}` counter
|
|
67
|
+
* ({@link nextSequenceNumber}) and the WIP-limit holder count (`requireWipSlot`, `dl-156` Q1 (a),
|
|
68
|
+
* task-274) — so the two cannot disagree about which refs exist (`command-baseline`, *Declared
|
|
69
|
+
* baselines*).
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link StorageError} `E_GIT_READ_FAILED` when a git read fails.
|
|
23
72
|
*/
|
|
24
|
-
export declare function
|
|
73
|
+
export declare function refBaselineCommits(root: string): string[];
|
|
25
74
|
/**
|
|
26
|
-
* The next sequence number for a `{n}`-token id: `1 +` the
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
75
|
+
* The next sequence number for a `{n}`-token id: `1 +` the highest number any baseline holds for this
|
|
76
|
+
* type — every local branch, remote-tracking ref, `HEAD`, the index and the untracked working-tree
|
|
77
|
+
* files ({@link sequenceCandidatePaths}) — over every folder the type's `path` can resolve to
|
|
78
|
+
* ({@link highestSequenceNumber}). `1` when nothing matches. Ratified `dl-101` §2 (a) (task-128,
|
|
79
|
+
* `bug-087`, `bug-162`); `spec-001` "Counter algorithm".
|
|
80
|
+
*
|
|
81
|
+
* @param root - The repository root.
|
|
82
|
+
* @param pathPattern - The type's committed `path` pattern, e.g. `docs/04_memory/{release}/{id}.md`.
|
|
83
|
+
* @param idPattern - The type's `id_pattern` with its field tokens already materialized.
|
|
84
|
+
* @throws {@link StorageError} `E_GIT_READ_FAILED` when a git read fails.
|
|
30
85
|
*/
|
|
31
|
-
export declare function nextSequenceNumber(
|
|
32
|
-
/**
|
|
86
|
+
export declare function nextSequenceNumber(root: string, pathPattern: string, idPattern: string): number;
|
|
87
|
+
/**
|
|
88
|
+
* Which ids of a type with `path` pattern `pathPattern` exist on any baseline a number can be taken on —
|
|
89
|
+
* the ones {@link nextSequenceNumber} reads (every local branch, remote-tracking ref, `HEAD`, the index and
|
|
90
|
+
* the untracked working-tree files; `dl-101` §2 (a)) — in any folder the pattern resolves to: every token
|
|
91
|
+
* other than `{id}` matches one or more path segments. The paths are listed once; the returned predicate
|
|
92
|
+
* answers for any id. `workflow start` asks it of a derived or `--set phase=` plan id (`spec-017` §7.1,
|
|
93
|
+
* task-217): ids are unique per type, so a plan held by another branch, or under another `{scope}`,
|
|
94
|
+
* occupies its id.
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link StorageError} `E_GIT_READ_FAILED` when a git read fails.
|
|
97
|
+
*/
|
|
98
|
+
export declare function idOccupancy(root: string, pathPattern: string): (id: string) => boolean;
|
|
99
|
+
/** The fields `memory.add` pins on the freshly-created document (P1.3 memory.add / spec-010). */
|
|
33
100
|
export interface AddDocumentFields {
|
|
34
101
|
readonly id: string;
|
|
35
102
|
readonly title: string;
|
|
36
103
|
readonly tags?: readonly string[];
|
|
104
|
+
/**
|
|
105
|
+
* Frontmatter fields `memory add --set` fills (task-110, `dl-107` S2 (a)), as `[name, value]` pairs
|
|
106
|
+
* in the order they are written — {@link writtenFields} produces them sorted by name
|
|
107
|
+
* (REQ-SYS-07). Each is written as a JSON-quoted string, replacing the scaffold's line for that key
|
|
108
|
+
* or appended when the scaffold has none.
|
|
109
|
+
*/
|
|
110
|
+
readonly fields?: readonly (readonly [string, string])[];
|
|
111
|
+
/**
|
|
112
|
+
* The initial `status`: the head of the type's machine (`spec-001`; `bug-214`, task-180), which
|
|
113
|
+
* `memory add` resolves from the committed `memory.yaml`. Defaults to `draft`, the head of the
|
|
114
|
+
* built-in default machine.
|
|
115
|
+
*/
|
|
116
|
+
readonly status?: string;
|
|
37
117
|
}
|
|
38
118
|
/**
|
|
39
119
|
* Copy a type's `template.file` scaffold verbatim and fill only the frontmatter skeleton `memory.add`
|
|
40
120
|
* pins (P1.3; spec-010-memory-frontmatter-schema): the generated `id`, the `--title`, the
|
|
41
|
-
* initial `status
|
|
121
|
+
* initial `status` (the head of the type's machine, {@link AddDocumentFields.status}), when `--tags`
|
|
122
|
+
* was supplied the `tags` flow sequence, and the `--set` fields
|
|
123
|
+
* {@link AddDocumentFields.fields} carries (task-110). Every other
|
|
42
124
|
* field (notably `type` and `tmpl_version`, spec-010: not touched by add) and the whole body are left
|
|
43
125
|
* exactly as the scaffold had them. `title`/`tags` are JSON-quoted (valid YAML double-quoted scalars /
|
|
44
126
|
* flow sequences), so an arbitrary title with spaces or colons is written safely.
|
|
45
127
|
*
|
|
128
|
+
* Each field is set through `./frontmatter-edit`'s shared setter, the one the transition verbs use
|
|
129
|
+
* (task-163, `bug-033`): only a TOP-LEVEL key is matched, so a nested key of the same name is never
|
|
130
|
+
* edited, and an edited line keeps the scaffold's inline `# comment`.
|
|
131
|
+
*
|
|
46
132
|
* @throws when the scaffold has no frontmatter block (a malformed template — a config error surfaced
|
|
47
133
|
* as a thrown `Error` the core op maps to a `CoreError`).
|
|
48
134
|
*/
|
|
49
135
|
export declare function renderAddDocument(scaffold: string, fields: AddDocumentFields): string;
|
|
136
|
+
/** The outcome of {@link parseSetOptions}: the parsed values, or the one usage-error message. */
|
|
137
|
+
export type ParsedSetOptions = {
|
|
138
|
+
readonly ok: true;
|
|
139
|
+
readonly values: Readonly<Record<string, string>>;
|
|
140
|
+
} | {
|
|
141
|
+
readonly ok: false;
|
|
142
|
+
readonly message: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Parse `memory add`'s repeatable `--set <name>=<value>` occurrences (`spec-008-cli-grammar` §10,
|
|
146
|
+
* task-110). The CLI hands every occurrence as a string array; a single string is one occurrence;
|
|
147
|
+
* `undefined` is none. `<name>` is split from `<value>` at the FIRST `=`.
|
|
148
|
+
*
|
|
149
|
+
* Every refusal here is a property of how the argument is spelled, decided before anything is read,
|
|
150
|
+
* so the caller raises it as a usage error (exit 2) — the first failing occurrence, in the order
|
|
151
|
+
* given, with §10's exact message. Pure and order-preserving (REQ-SYS-07).
|
|
152
|
+
*/
|
|
153
|
+
export declare function parseSetOptions(raw: string | readonly string[] | undefined): ParsedSetOptions;
|
|
154
|
+
/**
|
|
155
|
+
* The `--set` names a type's committed patterns cannot use: every name that is not a token of its
|
|
156
|
+
* `id_pattern` or of its `path` (other than `{id}`), in the order given. `memory add` refuses them
|
|
157
|
+
* (exit 1, `spec-008` §10) rather than writing a field no token reads.
|
|
158
|
+
*/
|
|
159
|
+
export declare function unknownSetNames(values: Readonly<Record<string, string>>, idPattern: string, pathPattern: string): string[];
|
|
160
|
+
/**
|
|
161
|
+
* The values of the tokens `memory add` sources itself rather than from `--set` (`spec-001`'s
|
|
162
|
+
* placeholder table, task-163): `{date}` and `{author}`. Each is needed only when the pattern has the
|
|
163
|
+
* token, and is read once per add by the caller.
|
|
164
|
+
*/
|
|
165
|
+
export interface IdTokenSources {
|
|
166
|
+
/** The add commit's author date as git's `<seconds> <offset>` ({@link readAuthorDate}). */
|
|
167
|
+
readonly date?: string;
|
|
168
|
+
/** The git author name the add commit records (`requireGitIdentity`), before slugging. */
|
|
169
|
+
readonly authorName?: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Materialize an `id_pattern`'s `{date}`, `{author}`, frontmatter and context tokens (`{kind}`,
|
|
173
|
+
* `{version}`, `{workflow}`, …), leaving `{slug}` and the `{n}` family in place — `spec-001`'s fixed
|
|
174
|
+
* expansion order (`{date}` → `{author}` → field and context tokens → `{slug}` → `{n}`), so the
|
|
175
|
+
* `{n}` counter regexp built from the result sees a fully-materialized prefix (task-110). `{date}` is
|
|
176
|
+
* the UTC `YYYYMMDD` of `sources.date` ({@link formatIdDate}); `{author}` the slug of
|
|
177
|
+
* `sources.authorName` ({@link slugifyTitle}) — task-163, `bug-158`.
|
|
178
|
+
*
|
|
179
|
+
* @throws {@link ValidationError} naming every field token with no value
|
|
180
|
+
* (`missing value for token {<name>}: give it with --set <name>=<value>`), an `{author}` whose
|
|
181
|
+
* name slugs to nothing, and every value outside the ID character class, in pattern order — the
|
|
182
|
+
* same `E_INVALID_ID` code `generateId` raises.
|
|
183
|
+
*/
|
|
184
|
+
export declare function expandFieldTokens(idPattern: string, values: Readonly<Record<string, string>>, sources?: IdTokenSources): string;
|
|
185
|
+
/**
|
|
186
|
+
* The `--set` values `memory add` writes into the new document's frontmatter, as `[name, value]`
|
|
187
|
+
* pairs sorted by name (REQ-SYS-07). A field token is always written, so the id and the field cannot
|
|
188
|
+
* disagree (`dl-107` S2 (a)); a context token (`workflow`, `phase`, `scope`) only where the committed
|
|
189
|
+
* scaffold's frontmatter declares that key (`dl-107` S2 (c) — `plan` declares `workflow` and `phase`,
|
|
190
|
+
* not `scope`).
|
|
191
|
+
*/
|
|
192
|
+
export declare function writtenFields(scaffold: string, values: Readonly<Record<string, string>>): [string, string][];
|
|
50
193
|
//# sourceMappingURL=add.d.ts.map
|
package/dist/memory/add.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../src/memory/add.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,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