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
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WINGFOIL_VERSION_TRAILER_KEY = void 0;
|
|
4
|
+
exports.readBuildStamp = readBuildStamp;
|
|
5
|
+
exports.formatVersionTrailer = formatVersionTrailer;
|
|
6
|
+
/**
|
|
7
|
+
* The build signature WingFoil puts on every commit it writes, and prints for `--version`
|
|
8
|
+
* (task-192, `dl-111-tool-signature-in-commits` Q2 (a), Q3 (i), Action 3).
|
|
9
|
+
*
|
|
10
|
+
* The `build` script writes `dist/build-info.json` (`{version, commit}`,
|
|
11
|
+
* `scripts/write-build-info.cjs`); this module turns it into the stamp `<semver> (<sha>)`. The stamp
|
|
12
|
+
* is read here, at run time, rather than asked of git, because an installed package has no `.git`
|
|
13
|
+
* and, inside a user's repository, `git rev-parse HEAD` would name the user's commit, not WingFoil's
|
|
14
|
+
* (`dl-111` Q2 (b), rejected).
|
|
15
|
+
*
|
|
16
|
+
* Without a usable record — a run from `src/` through ts-jest, a `dist/` built by `tsc` alone, a
|
|
17
|
+
* record whose commit is not a sha — the stamp is `<semver> (unknown)`: a commit WingFoil writes still
|
|
18
|
+
* carries the trailer, so "no trailer" keeps meaning "not written by WingFoil" (Q3 (i)).
|
|
19
|
+
*
|
|
20
|
+
* Deterministic (REQ-SYS-07): the stamp is a function of two files shipped with the package, read
|
|
21
|
+
* from fixed paths; no clock, no environment.
|
|
22
|
+
*/
|
|
23
|
+
const fs_1 = require("fs");
|
|
24
|
+
const path_1 = require("path");
|
|
25
|
+
/** The trailer key `dl-111` reserves for the build signature (refused in a `--reason`, `dl-067` clause 4). */
|
|
26
|
+
exports.WINGFOIL_VERSION_TRAILER_KEY = 'WingFoil-Version';
|
|
27
|
+
/** What stands for the commit when no trustworthy build record exists (`dl-111` Q3 (i)). */
|
|
28
|
+
const UNKNOWN_COMMIT = 'unknown';
|
|
29
|
+
/**
|
|
30
|
+
* A commit the record may name: an abbreviated-or-full hex object name (SHA-1 or SHA-256), optionally
|
|
31
|
+
* `-dirty`. Anything else — a branch name, a value carrying a newline that would forge a second
|
|
32
|
+
* trailer line — is not trusted and reads as {@link UNKNOWN_COMMIT}.
|
|
33
|
+
*/
|
|
34
|
+
const BUILD_COMMIT_RE = /^[0-9a-f]{7,64}(?:-dirty)?$/;
|
|
35
|
+
/** The `commit` of the record at `path`, or `null` when it is absent, unreadable or not a commit. */
|
|
36
|
+
function recordedCommit(path) {
|
|
37
|
+
let parsed;
|
|
38
|
+
try {
|
|
39
|
+
parsed = JSON.parse((0, fs_1.readFileSync)(path, 'utf-8'));
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const commit = parsed?.commit;
|
|
45
|
+
return typeof commit === 'string' && BUILD_COMMIT_RE.test(commit) ? commit : null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The running build's stamp, `<semver> (<sha>)` — `<semver>` from `package.json`, `<sha>` from the
|
|
49
|
+
* build record, or `unknown`.
|
|
50
|
+
*
|
|
51
|
+
* Both files are located from `moduleDir`, the directory of a module one level below the compiled
|
|
52
|
+
* root: `build-info.json` one level up (`dist/build-info.json` from `dist/storage/`), `package.json`
|
|
53
|
+
* two levels up, which is the package root in the `src/` and the `dist/` layout alike and where npm
|
|
54
|
+
* installs the manifest. The version is the manifest's, never the record's: `package.json` is what
|
|
55
|
+
* npm installed, and the record only adds the commit.
|
|
56
|
+
*
|
|
57
|
+
* @param moduleDir - Defaults to this module's own directory; a test passes a fixture's.
|
|
58
|
+
*/
|
|
59
|
+
function readBuildStamp(moduleDir = __dirname) {
|
|
60
|
+
const { version } = JSON.parse((0, fs_1.readFileSync)((0, path_1.join)(moduleDir, '..', '..', 'package.json'), 'utf-8'));
|
|
61
|
+
const commit = recordedCommit((0, path_1.join)(moduleDir, '..', 'build-info.json')) ?? UNKNOWN_COMMIT;
|
|
62
|
+
return `${version} (${commit})`;
|
|
63
|
+
}
|
|
64
|
+
/** The trailer line for `stamp`: `WingFoil-Version: <stamp>`. */
|
|
65
|
+
function formatVersionTrailer(stamp) {
|
|
66
|
+
return `${exports.WINGFOIL_VERSION_TRAILER_KEY}: ${stamp}`;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=build-stamp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-stamp.js","sourceRoot":"","sources":["../../src/storage/build-stamp.ts"],"names":[],"mappings":";;;AAyDA,wCAIC;AAGD,oDAEC;AAlED;;;;;;;;;;;;;;;;GAgBG;AACH,2BAAkC;AAClC,+BAA4B;AAE5B,8GAA8G;AACjG,QAAA,4BAA4B,GAAG,kBAAkB,CAAC;AAE/D,4FAA4F;AAC5F,MAAM,cAAc,GAAG,SAAS,CAAC;AAEjC;;;;GAIG;AACH,MAAM,eAAe,GAAG,6BAA6B,CAAC;AAEtD,qGAAqG;AACrG,SAAS,cAAc,CAAC,IAAY;IAClC,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACnD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAI,MAAsC,EAAE,MAAM,CAAC;IAC/D,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACpF,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,cAAc,CAAC,YAAoB,SAAS;IAC1D,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,CAAwB,CAAC;IAC1H,MAAM,MAAM,GAAG,cAAc,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC,IAAI,cAAc,CAAC;IAC1F,OAAO,GAAG,OAAO,KAAK,MAAM,GAAG,CAAC;AAClC,CAAC;AAED,iEAAiE;AACjE,SAAgB,oBAAoB,CAAC,KAAa;IAChD,OAAO,GAAG,oCAA4B,KAAK,KAAK,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The built-in agent adapter manifests the `wingfoil` package ships (`spec-016-agent-execution` §2.1,
|
|
3
|
+
* §2.8; `adr-012` point 2; task-196).
|
|
4
|
+
*
|
|
5
|
+
* **How they reach a project.** `wingfoil init` writes each one to `.wingfoil/agents/built-in/<name>.yaml`
|
|
6
|
+
* (`templateScaffold`, ./templates), as it writes the P3.8 directive templates to
|
|
7
|
+
* `directives/built-in/`. The installed copy pins the launch argv in the project's git history, so two
|
|
8
|
+
* clones launch the same argv (REQ-SYS-07). Like the directive templates, they ship as DATA compiled
|
|
9
|
+
* into `dist/` (`spec-015` §1 keeps the tarball allowlist at `files: ["dist", "README.md"]`).
|
|
10
|
+
*
|
|
11
|
+
* **What is checked.** Every manifest is derived back out of the scaffold by `builtinTemplateSources`
|
|
12
|
+
* (kind `adapter`) and run through `verifyBuiltinTemplates` before anything is written: the task-177
|
|
13
|
+
* manifest schema as a built-in (REQ-SEC-10), then the spec-007 §4 step 5 secret scan.
|
|
14
|
+
*
|
|
15
|
+
* **What ships.** One manifest per `spec-016` §2.8 built-in, each its own task with its `verified_with`
|
|
16
|
+
* pass by hand: every flag a manifest declares is read from that agent CLI's own `--help` output at the
|
|
17
|
+
* version `verified_with` names, never from memory. Listed in name order (REQ-SYS-07):
|
|
18
|
+
* - `claude-code` — Claude Code (task-236).
|
|
19
|
+
* - `codex-cli` — Codex CLI (task-237).
|
|
20
|
+
*
|
|
21
|
+
* With an empty list, `init` reserves the directory with a `.gitkeep` (the seam's empty case).
|
|
22
|
+
*/
|
|
23
|
+
/** One shipped built-in adapter: its name (the file basename) and its manifest's YAML text. */
|
|
24
|
+
export interface BuiltinAdapterManifest {
|
|
25
|
+
/** The adapter's name; written as `<name>.yaml`, and the manifest's own `name` must equal it. */
|
|
26
|
+
readonly name: string;
|
|
27
|
+
/** The manifest, written byte for byte. */
|
|
28
|
+
readonly content: string;
|
|
29
|
+
}
|
|
30
|
+
/** The built-in adapters `wingfoil init` installs, in name order. */
|
|
31
|
+
export declare const BUILTIN_ADAPTERS: readonly BuiltinAdapterManifest[];
|
|
32
|
+
//# sourceMappingURL=builtin-adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-adapters.d.ts","sourceRoot":"","sources":["../../src/storage/builtin-adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,+FAA+F;AAC/F,MAAM,WAAW,sBAAsB;IACrC,iGAAiG;IACjG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AA4ED,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,EAAE,SAAS,sBAAsB,EAA6B,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The built-in agent adapter manifests the `wingfoil` package ships (`spec-016-agent-execution` §2.1,
|
|
4
|
+
* §2.8; `adr-012` point 2; task-196).
|
|
5
|
+
*
|
|
6
|
+
* **How they reach a project.** `wingfoil init` writes each one to `.wingfoil/agents/built-in/<name>.yaml`
|
|
7
|
+
* (`templateScaffold`, ./templates), as it writes the P3.8 directive templates to
|
|
8
|
+
* `directives/built-in/`. The installed copy pins the launch argv in the project's git history, so two
|
|
9
|
+
* clones launch the same argv (REQ-SYS-07). Like the directive templates, they ship as DATA compiled
|
|
10
|
+
* into `dist/` (`spec-015` §1 keeps the tarball allowlist at `files: ["dist", "README.md"]`).
|
|
11
|
+
*
|
|
12
|
+
* **What is checked.** Every manifest is derived back out of the scaffold by `builtinTemplateSources`
|
|
13
|
+
* (kind `adapter`) and run through `verifyBuiltinTemplates` before anything is written: the task-177
|
|
14
|
+
* manifest schema as a built-in (REQ-SEC-10), then the spec-007 §4 step 5 secret scan.
|
|
15
|
+
*
|
|
16
|
+
* **What ships.** One manifest per `spec-016` §2.8 built-in, each its own task with its `verified_with`
|
|
17
|
+
* pass by hand: every flag a manifest declares is read from that agent CLI's own `--help` output at the
|
|
18
|
+
* version `verified_with` names, never from memory. Listed in name order (REQ-SYS-07):
|
|
19
|
+
* - `claude-code` — Claude Code (task-236).
|
|
20
|
+
* - `codex-cli` — Codex CLI (task-237).
|
|
21
|
+
*
|
|
22
|
+
* With an empty list, `init` reserves the directory with a `.gitkeep` (the seam's empty case).
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.BUILTIN_ADAPTERS = void 0;
|
|
26
|
+
/**
|
|
27
|
+
* Claude Code, checked against `claude --help` of 2.1.296 (task-236). The prompt comes first in the
|
|
28
|
+
* launch argv because `--mcp-config <configs...>` takes several values: placed after it, the bootstrap
|
|
29
|
+
* would be read as a second MCP configuration. The `--session-id` option `session.assign_args` appends
|
|
30
|
+
* closes that list. No command of this CLI prints a past session's model or token counts, so
|
|
31
|
+
* `usage.from` is `none` and both are recorded `not-reported` (`spec-016` §2.6).
|
|
32
|
+
*/
|
|
33
|
+
const CLAUDE_CODE = {
|
|
34
|
+
name: 'claude-code',
|
|
35
|
+
content: `# Claude Code, a built-in adapter (spec-016 section 2.8). Every flag below is read from the
|
|
36
|
+
# --help output of the version in verified_with, checked by hand (task-236).
|
|
37
|
+
name: claude-code
|
|
38
|
+
format: 1
|
|
39
|
+
command: claude
|
|
40
|
+
verified_with: "2.1.296 (Claude Code)"
|
|
41
|
+
version_args: [ --version ]
|
|
42
|
+
launch:
|
|
43
|
+
interactive:
|
|
44
|
+
# The prompt first: --mcp-config takes several values and would read a following prompt as one.
|
|
45
|
+
args: [ "{bootstrap}", --mcp-config, "{mcp_config_file}" ]
|
|
46
|
+
terminal: required
|
|
47
|
+
prompt:
|
|
48
|
+
via: arg
|
|
49
|
+
mcp:
|
|
50
|
+
via: config-file
|
|
51
|
+
template: |
|
|
52
|
+
{"mcpServers": {"wingfoil": {"command": "{mcp_command}", "args": {mcp_args}}}}
|
|
53
|
+
session:
|
|
54
|
+
id: assign
|
|
55
|
+
assign_args: [ --session-id, "{session_id}" ]
|
|
56
|
+
resume:
|
|
57
|
+
supported: true
|
|
58
|
+
args: [ --resume, "{session_id}" ]
|
|
59
|
+
usage:
|
|
60
|
+
from: none
|
|
61
|
+
`,
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Codex CLI, checked against `codex --help` of `codex-cli 0.145.0` (task-237). Codex has no option that
|
|
65
|
+
* takes an MCP configuration file, only `-c <key=value>` overrides parsed as TOML, so the server is
|
|
66
|
+
* registered with `mcp.via: config-arg`: the rendered template is one `-c` value, a whole argv element
|
|
67
|
+
* (`spec-016` §2.3). `enabled` and `required` make a same-named server elsewhere, or a failed start,
|
|
68
|
+
* unable to leave the session without it. No option assigns a session id and no command prints a past
|
|
69
|
+
* session's id, model or token counts, so all three are recorded `not-reported` (`spec-016` §2.6).
|
|
70
|
+
*/
|
|
71
|
+
const CODEX_CLI = {
|
|
72
|
+
name: 'codex-cli',
|
|
73
|
+
content: `# Codex CLI, a built-in adapter (spec-016 section 2.8). Every flag below is read from the
|
|
74
|
+
# --help output of the version in verified_with, checked by hand (task-237).
|
|
75
|
+
name: codex-cli
|
|
76
|
+
format: 1
|
|
77
|
+
command: codex
|
|
78
|
+
verified_with: "codex-cli 0.145.0"
|
|
79
|
+
version_args: [ --version ]
|
|
80
|
+
launch:
|
|
81
|
+
interactive:
|
|
82
|
+
# -c takes one key=value; the prompt comes last and nothing is appended after it.
|
|
83
|
+
args: [ -c, "{mcp_config}", "{bootstrap}" ]
|
|
84
|
+
terminal: required
|
|
85
|
+
prompt:
|
|
86
|
+
via: arg
|
|
87
|
+
mcp:
|
|
88
|
+
via: config-arg
|
|
89
|
+
template: 'mcp_servers.wingfoil={command = "{mcp_command}", args = {mcp_args}, enabled = true, required = true}'
|
|
90
|
+
session:
|
|
91
|
+
id: none
|
|
92
|
+
resume:
|
|
93
|
+
supported: false
|
|
94
|
+
usage:
|
|
95
|
+
from: none
|
|
96
|
+
`,
|
|
97
|
+
};
|
|
98
|
+
/** The built-in adapters `wingfoil init` installs, in name order. */
|
|
99
|
+
exports.BUILTIN_ADAPTERS = [CLAUDE_CODE, CODEX_CLI];
|
|
100
|
+
//# sourceMappingURL=builtin-adapters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-adapters.js","sourceRoot":"","sources":["../../src/storage/builtin-adapters.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAUH;;;;;;GAMG;AACH,MAAM,WAAW,GAA2B;IAC1C,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BV;CACA,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,SAAS,GAA2B;IACxC,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;CAuBV;CACA,CAAC;AAEF,qEAAqE;AACxD,QAAA,gBAAgB,GAAsC,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The official built-in directive templates (P3.8, US-0A-09 — `task-057-builtin-directive-templates`):
|
|
3
|
-
* Code Quality, Testing, Code Review, Architecture, Security, Documentation.
|
|
4
|
-
*
|
|
5
|
-
* **Where they live and how they reach a project.** `spec-011-storage-layout` reserves
|
|
6
|
-
* `.wingfoil/directives/built-in/` for "the official P3.8 directive templates shipped by the `wingfoil`
|
|
7
|
-
* npm package", and `spec-015-packaging-publishing` §1 keeps the tarball allowlist at
|
|
8
|
-
* `files: ["dist", "README.md"]` — so the templates ship as DATA compiled into `dist/`, not as loose
|
|
9
|
-
* Markdown beside it. `templateScaffold` (./templates) renders them into the `ScaffoldFile[]` that
|
|
10
|
-
* `wingfoil init` writes, which is also the list `initWingfoilProject` schema-checks first (REQ-SEC-10,
|
|
11
|
-
* derived by `builtinTemplateSources`): adding or editing a template here is automatically checked.
|
|
12
|
-
*
|
|
13
|
-
* **Frontmatter** (`spec-013-directive-frontmatter-schema`): exactly the declared keys `id` (the filename
|
|
14
|
-
* stem), `name`, `type: directive`, `kind: built-in`, `title`, `tags`, `ref: [P3.8]`. No other key: an
|
|
15
|
-
* undeclared key rides `.passthrough()` and prints an `unknown field(s) ignored` warning on stderr during
|
|
16
|
-
* every `init` (task-044's hand-off).
|
|
17
|
-
*
|
|
18
|
-
* **Body**: normative, project-agnostic rules for AI agents and humans. Deliberately free of any
|
|
19
|
-
* project-specific identifier, date or version, and of credential-shaped example text — the `security`
|
|
20
|
-
* template must not trip the spec-007 secret scan it asks the reader to respect (asserted per template in
|
|
21
|
-
* `test/storage/builtin-directives.test.ts`).
|
|
22
|
-
*
|
|
23
|
-
* **Customization** (`dl-037-builtin-vs-custom-directive-precedence`, implemented by `task-055` in
|
|
24
|
-
* `selectDirectivesById`): a directive under `directives/custom/` with the same `id` wins over the
|
|
25
|
-
* built-in, and the shadow is reported as a warning. Built-ins themselves are non-removable
|
|
26
|
-
* (REQ-SEC-07, keyed on the `built-in/` directory).
|
|
27
|
-
*
|
|
28
|
-
* Pure data + a pure renderer (REQ-SYS-07): byte-identical output run to run.
|
|
29
|
-
*/
|
|
30
1
|
/** One built-in directive template, as structured data rendered by {@link builtinDirectiveMd}. */
|
|
31
2
|
export interface BuiltinDirectiveTemplate {
|
|
32
3
|
/** Stable directive id — also the installed filename stem and the key `roles.yaml` binds on. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-directives.d.ts","sourceRoot":"","sources":["../../src/storage/builtin-directives.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builtin-directives.d.ts","sourceRoot":"","sources":["../../src/storage/builtin-directives.ts"],"names":[],"mappings":"AAkCA,kGAAkG;AAClG,MAAM,WAAW,wBAAwB;IACvC,gGAAgG;IAChG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wDAAwD;IACxD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAoFD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,SAAS,wBAAwB,EAO1E,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAiD,CAAC;AAErG;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,wBAAwB,GAAG,MAAM,CAuBtE"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BUILTIN_DIRECTIVE_IDS = exports.BUILTIN_DIRECTIVE_TEMPLATES = void 0;
|
|
4
|
+
exports.builtinDirectiveMd = builtinDirectiveMd;
|
|
2
5
|
/**
|
|
3
6
|
* The official built-in directive templates (P3.8, US-0A-09 — `task-057-builtin-directive-templates`):
|
|
4
7
|
* Code Quality, Testing, Code Review, Architecture, Security, Documentation.
|
|
@@ -12,7 +15,10 @@
|
|
|
12
15
|
* derived by `builtinTemplateSources`): adding or editing a template here is automatically checked.
|
|
13
16
|
*
|
|
14
17
|
* **Frontmatter** (`spec-013-directive-frontmatter-schema`): exactly the declared keys `id` (the filename
|
|
15
|
-
* stem), `name`, `type: directive`, `kind: built-in`, `title`, `tags`, `ref: [P3.8]
|
|
18
|
+
* stem), `name`, `type: directive`, `kind: built-in`, `title`, `tags`, `ref: [P3.8]`, and `format` (`dl-149`, task-251: the frontmatter's
|
|
19
|
+
* format, `DIRECTIVE_FORMAT`). No `scope`: whether a
|
|
20
|
+
* directive binds every role is the project's `roles.yaml` to say, not a shipped template's (task-144
|
|
21
|
+
* review, R3). No other key: an
|
|
16
22
|
* undeclared key rides `.passthrough()` and prints an `unknown field(s) ignored` warning on stderr during
|
|
17
23
|
* every `init` (task-044's hand-off).
|
|
18
24
|
*
|
|
@@ -28,9 +34,7 @@
|
|
|
28
34
|
*
|
|
29
35
|
* Pure data + a pure renderer (REQ-SYS-07): byte-identical output run to run.
|
|
30
36
|
*/
|
|
31
|
-
|
|
32
|
-
exports.BUILTIN_DIRECTIVE_IDS = exports.BUILTIN_DIRECTIVE_TEMPLATES = void 0;
|
|
33
|
-
exports.builtinDirectiveMd = builtinDirectiveMd;
|
|
37
|
+
const format_1 = require("../validation/format");
|
|
34
38
|
const CODE_QUALITY = {
|
|
35
39
|
id: 'code-quality',
|
|
36
40
|
name: 'Code Quality',
|
|
@@ -136,6 +140,7 @@ kind: built-in
|
|
|
136
140
|
title: "${t.name}"
|
|
137
141
|
tags: [built-in, ${t.id}]
|
|
138
142
|
ref: [P3.8]
|
|
143
|
+
format: ${format_1.DIRECTIVE_FORMAT}
|
|
139
144
|
---
|
|
140
145
|
|
|
141
146
|
# Directive — ${t.name}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-directives.js","sourceRoot":"","sources":["../../src/storage/builtin-directives.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"builtin-directives.js","sourceRoot":"","sources":["../../src/storage/builtin-directives.ts"],"names":[],"mappings":";;;AAqJA,gDAuBC;AA5KD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iDAAwD;AAcxD,MAAM,YAAY,GAA6B;IAC7C,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,oDAAoD;IAC/D,KAAK,EAAE;QACL,+EAA+E;QAC/E,iFAAiF;QACjF,2CAA2C;QAC3C,6DAA6D;QAC7D,yFAAyF;QACzF,oEAAoE;KACrE;CACF,CAAC;AAEF,MAAM,OAAO,GAA6B;IACxC,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,SAAS,EAAE,+BAA+B;IAC1C,KAAK,EAAE;QACL,oFAAoF;QACpF,gQAAgQ;QAChQ,oFAAoF;QACpF,0FAA0F;QAC1F,wGAAwG;KACzG;CACF,CAAC;AAEF,MAAM,WAAW,GAA6B;IAC5C,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,aAAa;IACnB,SAAS,EAAE,+DAA+D;IAC1E,KAAK,EAAE;QACL,wIAAwI;QACxI,gFAAgF;QAChF,6HAA6H;QAC7H,qJAAqJ;QACrJ,oGAAoG;QACpG,gGAAgG;KACjG;CACF,CAAC;AAEF,MAAM,YAAY,GAA6B;IAC7C,EAAE,EAAE,cAAc;IAClB,IAAI,EAAE,cAAc;IACpB,SAAS,EAAE,0CAA0C;IACrD,KAAK,EAAE;QACL,mHAAmH;QACnH,wFAAwF;QACxF,2GAA2G;QAC3G,6IAA6I;QAC7I,mNAAmN;KACpN;CACF,CAAC;AAEF,MAAM,QAAQ,GAA6B;IACzC,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,UAAU;IAChB,SAAS,EAAE,wBAAwB;IACnC,KAAK,EAAE;QACL,mIAAmI;QACnI,uGAAuG;QACvG,mHAAmH;QACnH,+DAA+D;QAC/D,iDAAiD;QACjD,gFAAgF;KACjF;CACF,CAAC;AAEF,MAAM,aAAa,GAA6B;IAC9C,EAAE,EAAE,eAAe;IACnB,IAAI,EAAE,eAAe;IACrB,SAAS,EAAE,wBAAwB;IACnC,KAAK,EAAE;QACL,iEAAiE;QACjE,6EAA6E;QAC7E,6DAA6D;QAC7D,6JAA6J;QAC7J,iDAAiD;QACjD,8BAA8B;KAC/B;CACF,CAAC;AAEF;;;GAGG;AACU,QAAA,2BAA2B,GAAwC;IAC9E,YAAY;IACZ,OAAO;IACP,WAAW;IACX,YAAY;IACZ,QAAQ;IACR,aAAa;CACd,CAAC;AAEF,gFAAgF;AACnE,QAAA,qBAAqB,GAAsB,mCAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAErG;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,CAA2B;IAC5D,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5D,OAAO;MACH,CAAC,CAAC,EAAE;SACD,CAAC,CAAC,IAAI;;;UAGL,CAAC,CAAC,IAAI;mBACG,CAAC,CAAC,EAAE;;UAEb,yBAAgB;;;gBAGV,CAAC,CAAC,IAAI;;EAEpB,CAAC,CAAC,SAAS;;EAEX,KAAK;;;wBAGiB,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC,EAAE;;CAEnD,CAAC;AACF,CAAC"}
|