@intentius/chant 0.91.0 → 0.94.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/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/handlers/graph.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +6 -0
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/workspace-plugins.d.ts +6 -6
- package/dist/cli/mcp/workspace-tools.d.ts +2 -1
- package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
- package/dist/cli/plugins.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +12 -2
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/codegen/pinned-upgrade.d.ts.map +1 -1
- package/dist/config.d.ts +22 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/lexicon-module.d.ts +22 -0
- package/dist/lexicon-module.d.ts.map +1 -1
- package/dist/lifecycle/converge-ledger.d.ts +19 -0
- package/dist/lifecycle/converge-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.d.ts +2 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/symptoms.d.ts +51 -0
- package/dist/lifecycle/symptoms.d.ts.map +1 -1
- package/dist/lint/rules/index.d.ts +4 -2
- package/dist/lint/rules/index.d.ts.map +1 -1
- package/dist/lint/rules/op/index.d.ts +14 -3
- package/dist/lint/rules/op/index.d.ts.map +1 -1
- package/dist/lint/rules/op/ops014-converge-rule-refusals.d.ts.map +1 -1
- package/dist/lint/rules/op/sys010-key-over-plain-http.d.ts +29 -0
- package/dist/lint/rules/op/sys010-key-over-plain-http.d.ts.map +1 -0
- package/dist/lint/rules/sys001-no-literal-key.d.ts +3 -0
- package/dist/lint/rules/sys001-no-literal-key.d.ts.map +1 -0
- package/dist/op/__fixtures__/decide-stub-backend.d.ts +53 -0
- package/dist/op/__fixtures__/decide-stub-backend.d.ts.map +1 -0
- package/dist/op/activities/activity-contracts.d.ts +201 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/apply.d.ts.map +1 -1
- package/dist/op/activities/change-coverage.d.ts +44 -0
- package/dist/op/activities/change-coverage.d.ts.map +1 -0
- package/dist/op/activities/converge.d.ts +24 -1
- package/dist/op/activities/converge.d.ts.map +1 -1
- package/dist/op/activities/decide.d.ts +107 -0
- package/dist/op/activities/decide.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +10 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/shell.d.ts +32 -0
- package/dist/op/activities/shell.d.ts.map +1 -1
- package/dist/op/activities/source-release.d.ts +86 -0
- package/dist/op/activities/source-release.d.ts.map +1 -0
- package/dist/op/activities/source-rollback.d.ts +100 -0
- package/dist/op/activities/source-rollback.d.ts.map +1 -0
- package/dist/op/activities/work-evidence.d.ts +42 -0
- package/dist/op/activities/work-evidence.d.ts.map +1 -0
- package/dist/op/activity-contract.d.ts +1 -0
- package/dist/op/activity-contract.d.ts.map +1 -1
- package/dist/op/activity-profiles.d.ts +16 -0
- package/dist/op/activity-profiles.d.ts.map +1 -1
- package/dist/op/builders.d.ts +84 -2
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/composites/converge-op.d.ts +31 -4
- package/dist/op/composites/converge-op.d.ts.map +1 -1
- package/dist/op/decide-backend.d.ts +116 -0
- package/dist/op/decide-backend.d.ts.map +1 -0
- package/dist/op/decide-config.d.ts +120 -0
- package/dist/op/decide-config.d.ts.map +1 -0
- package/dist/op/decide-read-inputs.d.ts +40 -0
- package/dist/op/decide-read-inputs.d.ts.map +1 -0
- package/dist/op/gate-wait.d.ts +43 -0
- package/dist/op/gate-wait.d.ts.map +1 -0
- package/dist/op/gate.d.ts +5 -2
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/index.d.ts +11 -4
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/local-executor.d.ts +29 -4
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-output.d.ts +2 -0
- package/dist/op/local-output.d.ts.map +1 -1
- package/dist/op/op-ir.d.ts +2 -0
- package/dist/op/op-ir.d.ts.map +1 -1
- package/dist/op/op-verb-class.d.ts.map +1 -1
- package/dist/op/operator.d.ts +97 -1
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/runtime.d.ts +37 -5
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/runtimes/local.d.ts.map +1 -1
- package/dist/op/source-archive.d.ts +63 -0
- package/dist/op/source-archive.d.ts.map +1 -0
- package/dist/op/steward-points.d.ts +136 -0
- package/dist/op/steward-points.d.ts.map +1 -0
- package/dist/op/steward-turn.d.ts +53 -0
- package/dist/op/steward-turn.d.ts.map +1 -0
- package/dist/op/steward.d.ts +22 -1
- package/dist/op/steward.d.ts.map +1 -1
- package/dist/op/types.d.ts +7 -0
- package/dist/op/types.d.ts.map +1 -1
- package/dist/op/work-lease-run.d.ts +1 -1
- package/dist/op/work-lease-run.d.ts.map +1 -1
- package/dist/workspace/__fixtures__/decide-workspace.d.ts +100 -0
- package/dist/workspace/__fixtures__/decide-workspace.d.ts.map +1 -0
- package/dist/workspace/answers-ledger.d.ts +76 -0
- package/dist/workspace/answers-ledger.d.ts.map +1 -0
- package/dist/workspace/box-intent.d.ts +85 -0
- package/dist/workspace/box-intent.d.ts.map +1 -0
- package/dist/workspace/changes-cli.d.ts +16 -0
- package/dist/workspace/changes-cli.d.ts.map +1 -0
- package/dist/workspace/changes.d.ts +200 -0
- package/dist/workspace/changes.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-fly-site.d.ts +59 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-fly-site.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-live-names.d.ts +51 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-live-names.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-rollback.d.ts +26 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-rollback.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-inputs.d.ts +59 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-inputs.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-policy.d.ts +22 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-policy.d.ts.map +1 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit.d.ts +71 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit.d.ts.map +1 -0
- package/dist/workspace/chant-migrations.d.ts +104 -0
- package/dist/workspace/chant-migrations.d.ts.map +1 -0
- package/dist/workspace/checks/boxes.d.ts +47 -1
- package/dist/workspace/checks/boxes.d.ts.map +1 -1
- package/dist/workspace/checks/diagrams.d.ts +31 -0
- package/dist/workspace/checks/diagrams.d.ts.map +1 -0
- package/dist/workspace/checks/records.d.ts +7 -0
- package/dist/workspace/checks/records.d.ts.map +1 -1
- package/dist/workspace/checks.d.ts +7 -0
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/compose-graph.d.ts +2 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/conformance/index.d.ts.map +1 -1
- package/dist/workspace/decide.d.ts +49 -4
- package/dist/workspace/decide.d.ts.map +1 -1
- package/dist/workspace/decision-points.schema.json +3 -3
- package/dist/workspace/declaration.d.ts +58 -0
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.schema.json +119 -1
- package/dist/workspace/declared-kinds.d.ts +20 -0
- package/dist/workspace/declared-kinds.d.ts.map +1 -1
- package/dist/workspace/generated-files.d.ts +7 -0
- package/dist/workspace/generated-files.d.ts.map +1 -1
- package/dist/workspace/intent-joins.d.ts +5 -5
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/lineage-check.d.ts +3 -0
- package/dist/workspace/lineage-check.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade.d.ts +6 -1
- package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
- package/dist/workspace/ls.d.ts +39 -1
- package/dist/workspace/ls.d.ts.map +1 -1
- package/dist/workspace/point-answer.schema.json +95 -0
- package/dist/workspace/points-cli.d.ts +2 -0
- package/dist/workspace/points-cli.d.ts.map +1 -1
- package/dist/workspace/points.d.ts +4 -6
- package/dist/workspace/points.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +16 -2
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/records-cli.d.ts +11 -1
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-close.d.ts +1 -1
- package/dist/workspace/records-close.d.ts.map +1 -1
- package/dist/workspace/records-write.d.ts +11 -5
- package/dist/workspace/records-write.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +34 -4
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/status-gates.d.ts +7 -2
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status-stewards.d.ts +65 -1
- package/dist/workspace/status-stewards.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +24 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/work-cli.d.ts +113 -2
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-evidence.d.ts +74 -0
- package/dist/workspace/work-evidence.d.ts.map +1 -0
- package/dist/workspace/work.d.ts +43 -1
- package/dist/workspace/work.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/cli/commands/audit.test.ts +9 -1
- package/src/cli/commands/build.ts +3 -2
- package/src/cli/commands/lint.ts +7 -1
- package/src/cli/handlers/graph.test.ts +20 -0
- package/src/cli/handlers/graph.ts +16 -2
- package/src/cli/handlers/operator.ts +34 -2
- package/src/cli/handlers/run.test.ts +154 -2
- package/src/cli/handlers/run.ts +121 -2
- package/src/cli/main.test.ts +10 -0
- package/src/cli/main.ts +23 -3
- package/src/cli/mcp/workspace-plugins.ts +6 -6
- package/src/cli/mcp/workspace-tools.test.ts +35 -19
- package/src/cli/mcp/workspace-tools.ts +62 -4
- package/src/cli/plugins.ts +11 -3
- package/src/cli/registry.ts +12 -2
- package/src/cli/serve-mcp-workspace.test.ts +6 -6
- package/src/codegen/pinned-upgrade.ts +2 -1
- package/src/codegen/release-wiring.test.ts +49 -2
- package/src/components/capability-plugin-loader.ts +3 -3
- package/src/components/cli-support.ts +2 -2
- package/src/config.ts +11 -0
- package/src/lexicon-module.ts +56 -1
- package/src/lexicon-package.test.ts +96 -0
- package/src/lifecycle/converge-ledger.ts +20 -0
- package/src/lifecycle/run-ledger.ts +6 -0
- package/src/lifecycle/symptoms.ts +95 -0
- package/src/lint/rules/index.ts +6 -2
- package/src/lint/rules/op/index.ts +17 -4
- package/src/lint/rules/op/ops014-converge-rule-refusals.test.ts +23 -1
- package/src/lint/rules/op/ops014-converge-rule-refusals.ts +10 -6
- package/src/lint/rules/op/sys010-key-over-plain-http.test.ts +52 -0
- package/src/lint/rules/op/sys010-key-over-plain-http.ts +100 -0
- package/src/lint/rules/sys001-no-literal-key.test.ts +31 -0
- package/src/lint/rules/sys001-no-literal-key.ts +67 -0
- package/src/op/__fixtures__/decide-stub-backend.ts +143 -0
- package/src/op/activities/activity-contracts.ts +190 -1
- package/src/op/activities/apply.ts +7 -6
- package/src/op/activities/change-coverage.ts +60 -0
- package/src/op/activities/converge.test.ts +55 -1
- package/src/op/activities/converge.ts +208 -29
- package/src/op/activities/decide.live.test.ts +78 -0
- package/src/op/activities/decide.test.ts +308 -0
- package/src/op/activities/decide.ts +267 -0
- package/src/op/activities/index.ts +21 -0
- package/src/op/activities/shell.test.ts +91 -1
- package/src/op/activities/shell.ts +91 -2
- package/src/op/activities/source-release.test.ts +118 -0
- package/src/op/activities/source-release.ts +168 -0
- package/src/op/activities/source-rollback.test.ts +131 -0
- package/src/op/activities/source-rollback.ts +239 -0
- package/src/op/activities/work-evidence.ts +62 -0
- package/src/op/activity-contract-registry.test.ts +2 -0
- package/src/op/activity-contract-registry.ts +2 -2
- package/src/op/activity-contract.test.ts +12 -0
- package/src/op/activity-contract.ts +6 -1
- package/src/op/activity-profiles.ts +29 -0
- package/src/op/activity-registry.test.ts +1 -1
- package/src/op/activity-registry.ts +2 -2
- package/src/op/builders.ts +119 -5
- package/src/op/command-gate.test.ts +192 -0
- package/src/op/composites/converge-op.test.ts +27 -1
- package/src/op/composites/converge-op.ts +69 -15
- package/src/op/decide-backend.test.ts +44 -0
- package/src/op/decide-backend.ts +212 -0
- package/src/op/decide-config.test.ts +52 -0
- package/src/op/decide-config.ts +80 -0
- package/src/op/decide-read-inputs.ts +117 -0
- package/src/op/gate-approval.ts +2 -2
- package/src/op/gate-wait.ts +57 -0
- package/src/op/gate.ts +8 -3
- package/src/op/generate-pipeline.ts +2 -2
- package/src/op/index.ts +18 -3
- package/src/op/local-executor.ts +151 -15
- package/src/op/local-output.test.ts +33 -0
- package/src/op/local-output.ts +20 -2
- package/src/op/op-ir.test.ts +10 -0
- package/src/op/op-ir.ts +4 -0
- package/src/op/op-verb-class.ts +1 -0
- package/src/op/operator.ts +290 -11
- package/src/op/runtime.ts +31 -8
- package/src/op/runtimes/local.ts +3 -1
- package/src/op/source-archive.ts +161 -0
- package/src/op/steward-points.test.ts +364 -0
- package/src/op/steward-points.ts +194 -0
- package/src/op/steward-turn.ts +79 -0
- package/src/op/steward.test.ts +87 -3
- package/src/op/steward.ts +25 -1
- package/src/op/types.ts +7 -0
- package/src/op/work-lease-run.test.ts +20 -1
- package/src/op/work-lease-run.ts +2 -2
- package/src/workspace/__fixtures__/decide-workspace.ts +129 -0
- package/src/workspace/__fixtures__/studio-template-84c8b21.json +67 -0
- package/src/workspace/answers-ledger.ts +118 -0
- package/src/workspace/box-intent.test.ts +205 -0
- package/src/workspace/box-intent.ts +159 -0
- package/src/workspace/changes-cli.ts +56 -0
- package/src/workspace/changes.schema.json +472 -0
- package/src/workspace/changes.test.ts +315 -0
- package/src/workspace/changes.ts +512 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit-fly-site.ts +234 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit-live-names.ts +164 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit-rollback.ts +223 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit-ship-inputs.ts +195 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit-ship-policy.ts +108 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit.ts +882 -0
- package/src/workspace/chant-migrations.e2e.test.ts +1089 -0
- package/src/workspace/chant-migrations.ts +169 -0
- package/src/workspace/check-contract.test.ts +4 -2
- package/src/workspace/check.schema.json +19 -5
- package/src/workspace/checks/boxes.test.ts +82 -2
- package/src/workspace/checks/boxes.ts +202 -1
- package/src/workspace/checks/diagrams.test.ts +134 -0
- package/src/workspace/checks/diagrams.ts +108 -0
- package/src/workspace/checks/records.ts +47 -0
- package/src/workspace/checks.ts +20 -2
- package/src/workspace/compose-graph.ts +2 -0
- package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +10 -0
- package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +26 -0
- package/src/workspace/conformance/index.ts +5 -0
- package/src/workspace/decide.test.ts +1 -1
- package/src/workspace/decide.ts +156 -23
- package/src/workspace/decision-points.schema.json +3 -3
- package/src/workspace/declaration.schema.json +119 -1
- package/src/workspace/declaration.test.ts +58 -0
- package/src/workspace/declaration.ts +112 -0
- package/src/workspace/declared-kinds.test.ts +31 -5
- package/src/workspace/declared-kinds.ts +46 -1
- package/src/workspace/generated-files.ts +14 -0
- package/src/workspace/graph-cli.ts +1 -1
- package/src/workspace/graph.schema.json +9 -1
- package/src/workspace/intent-joins.test.ts +5 -5
- package/src/workspace/intent-joins.ts +5 -5
- package/src/workspace/intent.schema.json +8 -2
- package/src/workspace/intent.ts +3 -10
- package/src/workspace/lineage-check.ts +16 -1
- package/src/workspace/lineage-upgrade-cli.ts +1 -1
- package/src/workspace/lineage-upgrade.test.ts +70 -0
- package/src/workspace/lineage-upgrade.ts +81 -10
- package/src/workspace/ls-contract.test.ts +57 -0
- package/src/workspace/ls.schema.json +46 -1
- package/src/workspace/ls.ts +62 -3
- package/src/workspace/points-cli.ts +17 -3
- package/src/workspace/points-write.schema.json +11 -1
- package/src/workspace/points.schema.json +51 -0
- package/src/workspace/points.test.ts +16 -15
- package/src/workspace/points.ts +5 -17
- package/src/workspace/read-contract.test.ts +9 -1
- package/src/workspace/reason-codes.test.ts +18 -8
- package/src/workspace/reason-codes.ts +21 -2
- package/src/workspace/records-amend.schema.json +2 -0
- package/src/workspace/records-cli.ts +27 -4
- package/src/workspace/records-close.schema.json +2 -0
- package/src/workspace/records-formats.test.ts +15 -15
- package/src/workspace/records-new.schema.json +2 -0
- package/src/workspace/records-review.schema.json +2 -0
- package/src/workspace/records-sessions-write.e2e.test.ts +77 -0
- package/src/workspace/records-sessions-write.test.ts +2 -34
- package/src/workspace/records-since.test.ts +8 -7
- package/src/workspace/records-write.e2e.test.ts +108 -0
- package/src/workspace/records-write.test.ts +32 -41
- package/src/workspace/records-write.ts +33 -15
- package/src/workspace/records.schema.json +36 -2
- package/src/workspace/records.test.ts +49 -4
- package/src/workspace/records.ts +109 -3
- package/src/workspace/status-contract.test.ts +14 -8
- package/src/workspace/status-gates.ts +9 -4
- package/src/workspace/status-stewards.ts +155 -5
- package/src/workspace/status.schema.json +129 -8
- package/src/workspace/status.ts +46 -1
- package/src/workspace/work-acceptance.test.ts +274 -0
- package/src/workspace/{work-cli.test.ts → work-cli.e2e.test.ts} +1 -1
- package/src/workspace/work-cli.ts +193 -10
- package/src/workspace/work-evidence.schema.json +212 -0
- package/src/workspace/work-evidence.ts +169 -0
- package/src/workspace/work-history.schema.json +349 -0
- package/src/workspace/work-history.test.ts +156 -0
- package/src/workspace/{work-readiness-chud.test.ts → work-readiness.test.ts} +30 -32
- package/src/workspace/work.test.ts +20 -2
- package/src/workspace/work.ts +100 -1
- /package/src/cli/{discovery-skip.test.ts → discovery-skip.e2e.test.ts} +0 -0
- /package/src/workspace/conformance/{conformance.test.ts → conformance.e2e.test.ts} +0 -0
- /package/src/workspace/{which-chant.test.ts → which-chant.e2e.test.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decide.d.ts","sourceRoot":"","sources":["../../src/workspace/decide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EAA4E,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3I,OAAO,EAWL,KAAK,QAAQ,EAEd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAYL,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,KAAK,EACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"decide.d.ts","sourceRoot":"","sources":["../../src/workspace/decide.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EAA4E,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3I,OAAO,EAWL,KAAK,QAAQ,EAEd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAYL,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,KAAK,EACX,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAe,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAMhD,iFAAiF;AACjF,eAAO,MAAM,6BAA6B,IAAI,CAAC;AAC/C,eAAO,MAA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,CAAC;IAC1B,iHAAiH;IACjH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAqGD;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAgFlF;AAQD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,iGAAiG;IACjG,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,mHAAmH;IACnH,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAYD;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,EAAE,EAAE,MAAM,EAAE,EACZ,MAAM,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,EAC3C,MAAM,EAAE,WAAW;AACnB,sFAAsF;AACtF,OAAO,CAAC,EAAE,MAAM,GACf;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CA0B5E;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2GxF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://intentius.io/chant/schemas/workspace/decision-points/v1/decision-points.schema.json",
|
|
4
4
|
"title": "Decision points",
|
|
5
|
-
"description": "A workspace's decision points (ws-058, #2738): the recurring questions it asks of its own graph, declared as data in a JSON file that an answer record kind names in `answers.points`. Each point is a typed question (`noul`, `choice` with 2 to 255 options, or `score` with 2 to 10 ordered levels, the question types of the POST /v1/systemone wire format, #2491), the inputs it reads, each named as a read-contract output, and an ordered chain of deciders: `table` rows, `model` deciders with a backend, a pinned model id and a threshold, and a `quorum` of people, always last.
|
|
5
|
+
"description": "A workspace's decision points (ws-058, #2738): the recurring questions it asks of its own graph, declared as data in a JSON file that an answer record kind names in `answers.points`. Each point is a typed question (`noul`, `choice` with 2 to 255 options, or `score` with 2 to 10 ordered levels, the question types of the POST /v1/systemone wire format, #2491), the inputs it reads, each named as a read-contract output, and an ordered chain of deciders: `table` rows, `model` deciders with a backend, a pinned model id and a threshold, and a `quorum` of people, always last. What JSON Schema cannot say is checked in code (`points.ts`): an input's output is one the read contract has, a table row tests declared inputs and answers a candidate, a field belongs to its decider's kind, a model id is pinned rather than an alias, and the chain ends in its one quorum. Unknown fields are refused, except fields whose names start with x-.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"required": ["points"],
|
|
8
8
|
"properties": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"type": "object",
|
|
45
45
|
"required": ["type", "instructions", "criteria"],
|
|
46
46
|
"properties": {
|
|
47
|
-
"type": { "enum": ["noul", "
|
|
47
|
+
"type": { "enum": ["noul", "choice", "score"] },
|
|
48
48
|
"instructions": { "$ref": "#/$defs/text" },
|
|
49
49
|
"criteria": {
|
|
50
50
|
"description": "The candidates. noul: {true, false} descriptions. choice: option to description, 2 to 255 options. score: 2 to 10 ordered levels.",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"additionalProperties": false,
|
|
55
55
|
"allOf": [
|
|
56
56
|
{
|
|
57
|
-
"if": { "properties": { "type": { "
|
|
57
|
+
"if": { "properties": { "type": { "const": "noul" } } },
|
|
58
58
|
"then": {
|
|
59
59
|
"properties": {
|
|
60
60
|
"criteria": {
|
|
@@ -49,6 +49,15 @@ export interface Suppression {
|
|
|
49
49
|
}
|
|
50
50
|
/** What `checks` may set a declaration check's severity to. */
|
|
51
51
|
export type CheckSeverity = "error" | "warning" | "info" | "off";
|
|
52
|
+
/** How `chant workspace check --changes` treats its findings (#2773): not at all, as warnings, or as failures. */
|
|
53
|
+
export type ChangeSeverity = "off" | "warn" | "fail";
|
|
54
|
+
/** The declaration's `changes` block (#2773): the severity of the forward coverage check, and the paths it never reports. */
|
|
55
|
+
export interface ChangesPolicy {
|
|
56
|
+
/** Absent from the declaration, `warn`. */
|
|
57
|
+
severity: ChangeSeverity;
|
|
58
|
+
/** Globs over files, relative to the workspace root, whose changes need no record: lockfiles, generated output. */
|
|
59
|
+
ignore: string[];
|
|
60
|
+
}
|
|
52
61
|
export interface MemberRole {
|
|
53
62
|
name: string;
|
|
54
63
|
/** Relative to the member's directory, or null for the whole member. */
|
|
@@ -80,6 +89,37 @@ export interface LinkDeclaration {
|
|
|
80
89
|
/** The link's JSON Pointer in the file, for messages. */
|
|
81
90
|
pointer: string;
|
|
82
91
|
}
|
|
92
|
+
/** A renderer a diagram is pinned to (#2764): a closed list of tools chant does not run. */
|
|
93
|
+
export declare const DIAGRAM_TOOLS: readonly ["d2", "mermaid", "graphviz"];
|
|
94
|
+
export type DiagramTool = (typeof DIAGRAM_TOOLS)[number];
|
|
95
|
+
/** The renderer a diagram's render was made with (#2764). chant never runs it; it is recorded so a reader can. */
|
|
96
|
+
export interface DiagramRenderer {
|
|
97
|
+
tool: DiagramTool;
|
|
98
|
+
/** The exact release the render was made with, such as "0.9.0". */
|
|
99
|
+
version: string;
|
|
100
|
+
/** Passed before the input and output paths, in order. */
|
|
101
|
+
args: string[];
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A diagram artifact the declaration names (#2764): the workspace's own, in
|
|
105
|
+
* the top-level `diagrams`, or a member's, in that member's `diagrams`. A
|
|
106
|
+
* name is given once across the declaration, like a record kind's.
|
|
107
|
+
*/
|
|
108
|
+
export interface DiagramDeclaration {
|
|
109
|
+
name: string;
|
|
110
|
+
title: string;
|
|
111
|
+
/** From the workspace root, with / separators. Null for an SVG with no source. */
|
|
112
|
+
source: string | null;
|
|
113
|
+
/** From the workspace root, with / separators. */
|
|
114
|
+
render: string;
|
|
115
|
+
renderer: DiagramRenderer;
|
|
116
|
+
/** sha256 hex of the source's bytes when the render was last produced, for `chant workspace check`'s drift finding. Null when not recorded, or when source is null: the render is then never checked for drift. */
|
|
117
|
+
sourceHash: string | null;
|
|
118
|
+
/** The member that declares it, or null for the workspace's own. */
|
|
119
|
+
member: string | null;
|
|
120
|
+
/** The entry's JSON Pointer in the file, for messages. */
|
|
121
|
+
pointer: string;
|
|
122
|
+
}
|
|
83
123
|
/**
|
|
84
124
|
* A record kind the declaration names (#2680): the workspace's own, in the
|
|
85
125
|
* top-level `records`, or a member's, in that member's `records`.
|
|
@@ -115,6 +155,12 @@ export interface BoxDeclaration {
|
|
|
115
155
|
capabilities: BoxCapability[];
|
|
116
156
|
/** The host and slot of the box's isolation, or null when the block declares none (#2727). The values are derived in `boxes.ts`. */
|
|
117
157
|
isolation: BoxIsolationDeclaration | null;
|
|
158
|
+
/**
|
|
159
|
+
* The id of the decision record that says what the box is for, or null when
|
|
160
|
+
* the block names none (#2850). A box starts as a question: the record is
|
|
161
|
+
* proposed with no choice until the person who answers it decides it.
|
|
162
|
+
*/
|
|
163
|
+
intent: string | null;
|
|
118
164
|
/** The block's JSON Pointer in the file, for messages. */
|
|
119
165
|
pointer: string;
|
|
120
166
|
}
|
|
@@ -158,6 +204,8 @@ export interface Member {
|
|
|
158
204
|
links: LinkDeclaration[];
|
|
159
205
|
/** The record kinds this member declares, in file order (#2680). */
|
|
160
206
|
records: RecordKindDeclaration[];
|
|
207
|
+
/** The diagram artifacts this member declares, in file order (#2764). */
|
|
208
|
+
diagrams: DiagramDeclaration[];
|
|
161
209
|
/** The member's box block, or null when it declares none (#2726). */
|
|
162
210
|
box: BoxDeclaration | null;
|
|
163
211
|
upstream: string | null;
|
|
@@ -198,8 +246,12 @@ export interface Declaration {
|
|
|
198
246
|
quorum: number | null;
|
|
199
247
|
/** The workspace's own record kinds, from the top-level `records`, in file order (#2680). A member's are on the member. */
|
|
200
248
|
records: RecordKindDeclaration[];
|
|
249
|
+
/** The workspace's own diagram artifacts, from the top-level `diagrams`, in file order (#2764). A member's are on the member. */
|
|
250
|
+
diagrams: DiagramDeclaration[];
|
|
201
251
|
/** The hosts boxes run on, in file order (#2727). */
|
|
202
252
|
hosts: Host[];
|
|
253
|
+
/** The forward coverage check's policy (#2773), or null when the declaration has no `changes` block. */
|
|
254
|
+
changes: ChangesPolicy | null;
|
|
203
255
|
/** The file, relative to the workspace root's tree (`chant.workspace.json` or `.jsonc`). */
|
|
204
256
|
file: string;
|
|
205
257
|
}
|
|
@@ -244,6 +296,12 @@ export declare function parseDeclaration(text: string, file: string, reader?: st
|
|
|
244
296
|
* and each list in its own order.
|
|
245
297
|
*/
|
|
246
298
|
export declare function declaredRecordKinds(declaration: Declaration): RecordKindDeclaration[];
|
|
299
|
+
/**
|
|
300
|
+
* Every diagram artifact the declaration names (#2764), in the order readers
|
|
301
|
+
* use them: the workspace's own first, then each member's, members in file
|
|
302
|
+
* order and each list in its own order.
|
|
303
|
+
*/
|
|
304
|
+
export declare function declaredDiagrams(declaration: Declaration): DiagramDeclaration[];
|
|
247
305
|
/** Whether `path` is `dir` or sits under it. Both are tree-relative; `"."` is the root. */
|
|
248
306
|
export declare function isInside(path: string, dir: string): boolean;
|
|
249
307
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../src/workspace/declaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAC;AAC3D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,QA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,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,SAAK,EAAE,OAAO,GAAE,WAAgB,GAAG,WAAW,CAarG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzF;AAID,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,EAAE,CA8B5F;AAID;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAWlH"}
|
|
@@ -63,6 +63,13 @@
|
|
|
63
63
|
"$ref": "#/$defs/host"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
+
"diagrams": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"description": "The workspace's own diagram artifacts (#2764): the diagrams that belong to no one member, such as a diagrams directory at the root. A member names its own in its diagrams. chant workspace ls lists every declared diagram, and chant workspace check reports one whose render is stale for its source when the entry records a sourceHash. Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
69
|
+
"items": {
|
|
70
|
+
"$ref": "#/$defs/diagram"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
66
73
|
"checks": {
|
|
67
74
|
"type": "object",
|
|
68
75
|
"description": "Severity for the declaration checks that allow it, keyed by WSP id (#2535, ws-028): error, warning, info or off. chant workspace check refuses an id it does not know, and one whose severity is fixed.",
|
|
@@ -72,6 +79,28 @@
|
|
|
72
79
|
"additionalProperties": {
|
|
73
80
|
"$ref": "#/$defs/severity"
|
|
74
81
|
}
|
|
82
|
+
},
|
|
83
|
+
"changes": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": false,
|
|
86
|
+
"description": "The forward coverage check, chant workspace check --changes <base>..<head> (#2773): each path a diff changes is mapped to the current records whose constrains cover it. severity says what a finding does: off reports none, warn (the default) reports them and passes, fail reports them and fails. ignore lists globs over files whose changes need no record, such as lockfiles and generated output. Added in schema 1 by chant 0.92.0, so a declaration that uses it sets minReader to 0.92.0 or newer.",
|
|
87
|
+
"properties": {
|
|
88
|
+
"severity": {
|
|
89
|
+
"enum": [
|
|
90
|
+
"off",
|
|
91
|
+
"warn",
|
|
92
|
+
"fail"
|
|
93
|
+
],
|
|
94
|
+
"description": "What a change-uncovered or change-out-of-scope finding does. warn when absent."
|
|
95
|
+
},
|
|
96
|
+
"ignore": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"description": "Globs over file paths from the workspace root: * and ? within one segment, ** across segments. A changed path one matches is listed as ignored and never reported.",
|
|
99
|
+
"items": {
|
|
100
|
+
"$ref": "#/$defs/fileGlob"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
75
104
|
}
|
|
76
105
|
},
|
|
77
106
|
"patternProperties": {
|
|
@@ -276,6 +305,13 @@
|
|
|
276
305
|
"$ref": "#/$defs/recordKind"
|
|
277
306
|
}
|
|
278
307
|
},
|
|
308
|
+
"diagrams": {
|
|
309
|
+
"type": "array",
|
|
310
|
+
"description": "The diagram artifacts this member holds (#2764). chant workspace ls lists every declared diagram, and chant workspace check reports one whose render is stale for its source when the entry records a sourceHash. Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
311
|
+
"items": {
|
|
312
|
+
"$ref": "#/$defs/diagram"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
279
315
|
"box": {
|
|
280
316
|
"$ref": "#/$defs/box"
|
|
281
317
|
},
|
|
@@ -366,8 +402,13 @@
|
|
|
366
402
|
},
|
|
367
403
|
"box": {
|
|
368
404
|
"type": "object",
|
|
369
|
-
"description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
405
|
+
"description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). A member that builds the fountain lexicon's Box declares the callback token fountain gives its persistent sandbox as the capability fountain-callback, brokered by fountain, with scope owner, or chant workspace check fails (WSP125, #2780). Its intent names the decision record that says what the box is for (#2850): chant workspace status --json reports the record's state and answer, and chant workspace check fails when no decision record has the id (WSP126) and warns when the record constrains no member or path of this workspace (WSP127, #2857). Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
370
406
|
"properties": {
|
|
407
|
+
"intent": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"minLength": 1,
|
|
410
|
+
"description": "The id of the decision record that says what the box is for (#2850), a record of a declared kind named decision. A new box starts as a question: the record is proposed with a null choice until the person who answers it decides it. The record constrains a member or path of this workspace, with member:<a member's name> or a path: entry at, above or inside a member's directory. It need not be this member: the intent can constrain the app the box runs when that app is another member (#2857). When it constrains this member, chant workspace graph --intent shows it for the box's files. Added by chant 0.94.0, so a declaration that uses it sets minReader to 0.94.0 or newer."
|
|
411
|
+
},
|
|
371
412
|
"capabilities": {
|
|
372
413
|
"type": "array",
|
|
373
414
|
"description": "Each capability the box reaches outside itself, named once. None when omitted.",
|
|
@@ -493,6 +534,78 @@
|
|
|
493
534
|
},
|
|
494
535
|
"additionalProperties": false
|
|
495
536
|
},
|
|
537
|
+
"diagram": {
|
|
538
|
+
"type": "object",
|
|
539
|
+
"description": "A diagram artifact the workspace declares (#2764): a rendered image with a source, pinned to the renderer that made it. chant never runs the renderer.",
|
|
540
|
+
"required": [
|
|
541
|
+
"name",
|
|
542
|
+
"title",
|
|
543
|
+
"render",
|
|
544
|
+
"renderer"
|
|
545
|
+
],
|
|
546
|
+
"properties": {
|
|
547
|
+
"name": {
|
|
548
|
+
"$ref": "#/$defs/name",
|
|
549
|
+
"description": "Unique across the declaration."
|
|
550
|
+
},
|
|
551
|
+
"title": {
|
|
552
|
+
"type": "string",
|
|
553
|
+
"minLength": 1,
|
|
554
|
+
"description": "Shown above the diagram."
|
|
555
|
+
},
|
|
556
|
+
"source": {
|
|
557
|
+
"oneOf": [
|
|
558
|
+
{ "$ref": "#/$defs/path" },
|
|
559
|
+
{ "type": "null" }
|
|
560
|
+
],
|
|
561
|
+
"description": "The source file, from the workspace root, with / separators. Null for an SVG with no source. Default null."
|
|
562
|
+
},
|
|
563
|
+
"render": {
|
|
564
|
+
"$ref": "#/$defs/path",
|
|
565
|
+
"description": "The rendered image, from the workspace root, with / separators."
|
|
566
|
+
},
|
|
567
|
+
"renderer": {
|
|
568
|
+
"$ref": "#/$defs/diagramRenderer"
|
|
569
|
+
},
|
|
570
|
+
"sourceHash": {
|
|
571
|
+
"type": ["string", "null"],
|
|
572
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
573
|
+
"description": "sha256 hex of the source's bytes when render was last produced from it. chant workspace check compares this against the source in the tree read and reports drift (WSP133) on a mismatch; without it, or without a source, the render is never checked for drift. Default null."
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
"patternProperties": {
|
|
577
|
+
"^x-": true
|
|
578
|
+
},
|
|
579
|
+
"additionalProperties": false
|
|
580
|
+
},
|
|
581
|
+
"diagramRenderer": {
|
|
582
|
+
"type": "object",
|
|
583
|
+
"description": "The renderer a diagram's render was made with. chant records the pin; it never installs or runs the renderer (ws-052).",
|
|
584
|
+
"required": [
|
|
585
|
+
"tool",
|
|
586
|
+
"version"
|
|
587
|
+
],
|
|
588
|
+
"properties": {
|
|
589
|
+
"tool": {
|
|
590
|
+
"enum": ["d2", "mermaid", "graphviz"]
|
|
591
|
+
},
|
|
592
|
+
"version": {
|
|
593
|
+
"$ref": "#/$defs/version",
|
|
594
|
+
"description": "The exact release the render was made with, such as 0.9.0."
|
|
595
|
+
},
|
|
596
|
+
"args": {
|
|
597
|
+
"type": "array",
|
|
598
|
+
"description": "Passed before the input and output paths, in order, such as [\"--layout=elk\", \"--theme=0\", \"--pad=40\", \"--omit-version\"]. Empty when absent.",
|
|
599
|
+
"items": {
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"patternProperties": {
|
|
605
|
+
"^x-": true
|
|
606
|
+
},
|
|
607
|
+
"additionalProperties": false
|
|
608
|
+
},
|
|
496
609
|
"generatedFile": {
|
|
497
610
|
"type": "object",
|
|
498
611
|
"description": "One generated file of a member (#2524 D14, #2541).",
|
|
@@ -641,6 +754,11 @@
|
|
|
641
754
|
"type": "integer",
|
|
642
755
|
"minimum": 1,
|
|
643
756
|
"maximum": 65535
|
|
757
|
+
},
|
|
758
|
+
"fileGlob": {
|
|
759
|
+
"type": "string",
|
|
760
|
+
"description": "A glob over file paths, relative to the workspace root: * and ? within one segment, ** across segments, [...] classes and {a,b} alternatives. No leading /, no . or .. segments.",
|
|
761
|
+
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
644
762
|
}
|
|
645
763
|
}
|
|
646
764
|
}
|
|
@@ -40,6 +40,24 @@ export interface DeclaredKind {
|
|
|
40
40
|
message: string;
|
|
41
41
|
}[];
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* For a work kind with acceptance criteria (#2772), read with
|
|
45
|
+
* `acceptance: true`: each current record that lists criteria, with how
|
|
46
|
+
* many are met. Absent for any other kind, when the kind wasn't loaded,
|
|
47
|
+
* and when its records can't be read (`records` reports why).
|
|
48
|
+
*/
|
|
49
|
+
acceptance?: DeclaredAcceptance[];
|
|
50
|
+
}
|
|
51
|
+
/** One work record's acceptance criteria, counted, as `ls`, `status` and `check` read them (#2772). */
|
|
52
|
+
export interface DeclaredAcceptance {
|
|
53
|
+
item: string;
|
|
54
|
+
state: string | null;
|
|
55
|
+
met: number;
|
|
56
|
+
total: number;
|
|
57
|
+
/** The record file on disk, absolute. */
|
|
58
|
+
file: string;
|
|
59
|
+
/** The record's `work-acceptance-unmet` warning, when it is done with a criterion unmet; null otherwise. */
|
|
60
|
+
unmet: string | null;
|
|
43
61
|
}
|
|
44
62
|
/** The kind file of `declared` on disk, under the workspace root `rootOnDisk`. */
|
|
45
63
|
export declare function declaredKindFile(declared: RecordKindDeclaration, rootOnDisk: string): string;
|
|
@@ -51,5 +69,7 @@ export declare function declaredKindFile(declared: RecordKindDeclaration, rootOn
|
|
|
51
69
|
*/
|
|
52
70
|
export declare function loadDeclaredKinds(declaration: Declaration, tree: WorkspaceTree, rootOnDisk: string, options?: {
|
|
53
71
|
load?: boolean;
|
|
72
|
+
acceptance?: boolean;
|
|
73
|
+
at?: string;
|
|
54
74
|
}): Promise<DeclaredKind[]>;
|
|
55
75
|
//# sourceMappingURL=declared-kinds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declared-kinds.d.ts","sourceRoot":"","sources":["../../src/workspace/declared-kinds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,oHAAoH;AACpH,eAAO,MAAM,0BAA0B,yFAA0H,CAAC;AAClK,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,uCAAuC;IACvC,MAAM,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjE;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE;YAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"declared-kinds.d.ts","sourceRoot":"","sources":["../../src/workspace/declared-kinds.ts"],"names":[],"mappings":"AAAA;;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AAsB,iBAAiB,CACrC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAO,GAClE,OAAO,CAAC,YAAY,EAAE,CAAC,CA+BzB"}
|
|
@@ -55,6 +55,13 @@ export declare function classifyFile(path: string, declared?: DeclaredFiles): Fi
|
|
|
55
55
|
* relative to `dir`.
|
|
56
56
|
*/
|
|
57
57
|
export declare function declaredFilesUnder(declaration: Declaration, dir: string): Map<string, DeclaredFile>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether a workspace path (from the workspace root) is a generated file:
|
|
60
|
+
* declared in its member's `generated` entries, or one core registers. The
|
|
61
|
+
* `generated` of `graph --intent`'s region and file nodes and of `check
|
|
62
|
+
* --changes`'s paths.
|
|
63
|
+
*/
|
|
64
|
+
export declare function isGeneratedPath(declaration: Declaration, path: string): boolean;
|
|
58
65
|
/**
|
|
59
66
|
* The declared generated files for the absolute directory `absDir`, from the
|
|
60
67
|
* nearest `chant.workspace.json` above it. Empty when there is none, which is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-files.d.ts","sourceRoot":"","sources":["../../src/workspace/generated-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"generated-files.d.ts","sourceRoot":"","sources":["../../src/workspace/generated-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5E,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;;;;EAA2G,CAAC;AAE3I,4CAA4C;AAC5C,eAAO,MAAM,UAAU,wBAAyB,CAAC;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,YAAY,2BAA4B,CAAC;AAEtD,iFAAiF;AACjF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAC1B;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAClB;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACvC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACjB;IAAE,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAEzB,iDAAiD;AACjD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,GAAG,SAAS,CAE/F;AAED,oFAAoF;AACpF,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,GAAG,kBAAkB,CAQvF;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAUnG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAK/E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAM1E"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* The commit-join hook of the intent graph (#2651; #2650 C1 and C13).
|
|
3
3
|
*
|
|
4
4
|
* Commits, decisions and artifacts come from core. Units of work, contracts
|
|
5
|
-
* and evidence come from a plugin, such as
|
|
6
|
-
* core ships no model of them (#2555, "Core ships no decision
|
|
7
|
-
* file passed to `chant workspace graph --intent --kind <file>`
|
|
8
|
-
* through one export, `commitJoins`, in one of two forms:
|
|
5
|
+
* and evidence come from a plugin, such as a workspace's own development
|
|
6
|
+
* model, because core ships no model of them (#2555, "Core ships no decision
|
|
7
|
+
* kind"). A kind file passed to `chant workspace graph --intent --kind <file>`
|
|
8
|
+
* supplies them through one export, `commitJoins`, in one of two forms:
|
|
9
9
|
*
|
|
10
10
|
* - A function `commitJoins(commit, context)` that returns the unit, contract
|
|
11
11
|
* and evidence for one commit, or nothing. It is given the commit's sha,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* `<name>` is the kind's name by default: its record kind's name, or the
|
|
37
37
|
* file's name without `.kind.mjs`. A kind file may name its findings itself
|
|
38
38
|
* with a sibling export, `commitJoinsName` (#2663), so joins that live beside
|
|
39
|
-
* a record kind called `decision` can still report `plugin:
|
|
39
|
+
* a record kind called `decision` can still report `plugin:acme:<code>`. It is
|
|
40
40
|
* a sibling export rather than a property because the data form is a closed
|
|
41
41
|
* object whose keys are all joins, and a function's `name` property is
|
|
42
42
|
* already its own name.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../src/workspace/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgB,KAAK,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAyC,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEpG,8DAA8D;AAC9D,eAAO,MA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E,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACtJ;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,cAAc,CAAC;IACpB,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;CACjB;AAoID,qDAAqD;AACrD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAOtG;AAsID,6HAA6H;AAC7H,wBAAsB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAU3E"}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
*
|
|
17
17
|
* `chant workspace upgrade` runs the same checks in its staging worktree
|
|
18
18
|
* before it reaches its gate.
|
|
19
|
+
*
|
|
20
|
+
* `--changes <base>..<head>` runs the forward coverage check instead
|
|
21
|
+
* (`changes-cli.ts`, #2773), which prints a document of its own.
|
|
19
22
|
*/
|
|
20
23
|
import type { CommandContext } from "../cli/registry.js";
|
|
21
24
|
import type { DeclarationCheckReport } from "./checks.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-check.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-check.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lineage-check.d.ts","sourceRoot":"","sources":["../../src/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AK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,qGAAqG;IACrG,SAAS,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACxD,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC,GACF;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,cAAc,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,CAAA;CAAE,CAAC;AAE3H;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CA0D1I;AAcD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwE5E"}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
*/
|
|
35
35
|
import type { ResolvedGateApproval } from "../op/gate-approval.js";
|
|
36
36
|
import { LockError, type Lineage, type ManualStep } from "./lineage-lock.js";
|
|
37
|
+
import { type ChantMigrationReport } from "./chant-migrations.js";
|
|
37
38
|
import { type UpdateResult } from "./lineage-update.js";
|
|
38
39
|
/** The kind the patch digest is taken under, so it never collides with another kind of plan. */
|
|
39
40
|
export declare const UPGRADE_PLAN_KIND = "workspace-upgrade";
|
|
@@ -43,10 +44,12 @@ export declare class UpgradeError extends LockError {
|
|
|
43
44
|
name: string;
|
|
44
45
|
}
|
|
45
46
|
export interface UpgradeCheck {
|
|
46
|
-
name: "build" | "lint" | "workspace check";
|
|
47
|
+
name: "build" | "lint" | "workspace check" | "migration";
|
|
47
48
|
status: "passed" | "failed" | "skipped";
|
|
48
49
|
/** Why a check was skipped, or the tail of a failed command's output. */
|
|
49
50
|
detail?: string;
|
|
51
|
+
/** The chant member `build` or `lint` ran in ("." for the scope root), when it is not the only one. */
|
|
52
|
+
member?: string;
|
|
50
53
|
}
|
|
51
54
|
/** Runs `chant build` or `chant lint` in a directory. */
|
|
52
55
|
export type ChantRunner = (command: "build" | "lint", cwd: string) => Promise<{
|
|
@@ -96,6 +99,8 @@ export interface StagedUpgrade {
|
|
|
96
99
|
to: string;
|
|
97
100
|
};
|
|
98
101
|
migrations: string[];
|
|
102
|
+
/** The migrations chant ships (./chant-migrations.ts) that found something to move, applied or not. */
|
|
103
|
+
chantMigrations: ChantMigrationReport[];
|
|
99
104
|
written: string[];
|
|
100
105
|
merged: string[];
|
|
101
106
|
removed: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-upgrade.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAOH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAEL,SAAS,EAOT,KAAK,OAAO,EAGZ,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"lineage-upgrade.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAOH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAEL,SAAS,EAOT,KAAK,OAAO,EAGZ,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAkC,KAAK,oBAAoB,EAAE,MAAM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IAAI,CAAC;CACjB;AAqOD,mGAAmG;AACnG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AA4ED;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CA6NlF;AAyBD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAa9D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBlG;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,EAAE,CA+B9D"}
|
package/dist/workspace/ls.d.ts
CHANGED
|
@@ -13,9 +13,14 @@
|
|
|
13
13
|
* and each member's, with each kind file's own name when it loads (#2680).
|
|
14
14
|
* Loading one imports it, so {@link listWorkspace} lists them unloaded and
|
|
15
15
|
* {@link listWorkspaceWithKinds}, which the command runs, loads them.
|
|
16
|
+
*
|
|
17
|
+
* The declared diagram artifacts are listed too, flattened across the
|
|
18
|
+
* workspace and its members into one `diagrams` array (#2764). Unlike record
|
|
19
|
+
* kinds, nothing about a diagram is loaded: everything printed comes
|
|
20
|
+
* straight from the declaration, and chant runs no renderer to list it.
|
|
16
21
|
*/
|
|
17
22
|
import type { CommandContext } from "../cli/registry.js";
|
|
18
|
-
import { type Declaration, type ErrorLocation, type Member, type WorkspaceErrorCode } from "./declaration.js";
|
|
23
|
+
import { type Declaration, type DiagramDeclaration, type ErrorLocation, type Member, type WorkspaceErrorCode } from "./declaration.js";
|
|
19
24
|
import { type KindRegistry } from "./kinds.js";
|
|
20
25
|
import type { WorkspaceTree } from "./tree.js";
|
|
21
26
|
import type { DeclaredKindReasonCode } from "./declared-kinds.js";
|
|
@@ -45,6 +50,19 @@ export interface LsRecordKind {
|
|
|
45
50
|
code: DeclaredKindReasonCode;
|
|
46
51
|
message: string;
|
|
47
52
|
} | null;
|
|
53
|
+
/**
|
|
54
|
+
* For a work kind with acceptance criteria (#2772): each current work item
|
|
55
|
+
* that lists criteria, with how many passing evidence meets. Null for any
|
|
56
|
+
* other kind, and when the kind or its records can't be read.
|
|
57
|
+
*/
|
|
58
|
+
acceptance: LsAcceptance[] | null;
|
|
59
|
+
}
|
|
60
|
+
/** A work item's acceptance criteria, counted (#2772). */
|
|
61
|
+
export interface LsAcceptance {
|
|
62
|
+
item: string;
|
|
63
|
+
state: string | null;
|
|
64
|
+
met: number;
|
|
65
|
+
total: number;
|
|
48
66
|
}
|
|
49
67
|
export interface LsMember {
|
|
50
68
|
name: string;
|
|
@@ -64,6 +82,24 @@ export interface LsMember {
|
|
|
64
82
|
/** The record kinds the member declares, in file order (#2680). */
|
|
65
83
|
records: LsRecordKind[];
|
|
66
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* A diagram artifact the declaration names (#2764), flattened across the
|
|
87
|
+
* workspace and its members: hud reads one list, the way it already reads
|
|
88
|
+
* `records --json`'s flat `assets[]`. `sourceHash`, the declaration's own
|
|
89
|
+
* bookkeeping for `chant workspace check`'s drift finding, is not printed
|
|
90
|
+
* here; a reader that draws diagrams has no use for it.
|
|
91
|
+
*/
|
|
92
|
+
export interface LsDiagram {
|
|
93
|
+
name: string;
|
|
94
|
+
title: string;
|
|
95
|
+
/** From the workspace root, with / separators. Null for an SVG with no source. */
|
|
96
|
+
source: string | null;
|
|
97
|
+
/** From the workspace root, with / separators. */
|
|
98
|
+
render: string;
|
|
99
|
+
renderer: DiagramDeclaration["renderer"];
|
|
100
|
+
/** The member that declares it, or null for the workspace's own. */
|
|
101
|
+
member: string | null;
|
|
102
|
+
}
|
|
67
103
|
export interface LsGroup {
|
|
68
104
|
name: string;
|
|
69
105
|
kind: "examples";
|
|
@@ -93,6 +129,8 @@ export type LsDocument = {
|
|
|
93
129
|
};
|
|
94
130
|
members: LsMember[];
|
|
95
131
|
groups: LsGroup[];
|
|
132
|
+
/** Every declared diagram, the workspace's own first, then each member's, in file order (#2764). */
|
|
133
|
+
diagrams: LsDiagram[];
|
|
96
134
|
summary: {
|
|
97
135
|
members: number;
|
|
98
136
|
unreadable: number;
|