@intentius/chant 0.124.12 → 0.124.14
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/bin/chant +11 -0
- package/dist/agents/checks.js +326 -0
- package/dist/agents/discover.js +885 -0
- package/dist/agents/importer.js +17 -0
- package/dist/agents/index.js +12 -0
- package/dist/agents/types.js +19 -0
- package/dist/apply.js +151 -0
- package/dist/attrref.js +70 -0
- package/dist/audit/catalog.js +350 -0
- package/dist/audit/core.js +252 -0
- package/dist/audit/discover.js +633 -0
- package/dist/audit/fetch.js +666 -0
- package/dist/audit/lineage.js +91 -0
- package/dist/audit/nginx.js +366 -0
- package/dist/audit/prior-art.js +132 -0
- package/dist/audit/proof.js +321 -0
- package/dist/audit/report-html.js +194 -0
- package/dist/audit/report-model.js +198 -0
- package/dist/audit/report.js +102 -0
- package/dist/audit/rules-doc.js +144 -0
- package/dist/audit/secrets.js +405 -0
- package/dist/audit/terraform-state.js +140 -0
- package/dist/audit/wrangler.js +262 -0
- package/dist/behaviour-delta.js +401 -0
- package/dist/behaviour-engine.js +357 -0
- package/dist/behaviour-graph.js +83 -0
- package/dist/behaviour-http.js +188 -0
- package/dist/behaviour-kinds.js +172 -0
- package/dist/behaviour-overlay.js +50 -0
- package/dist/behaviour-predict.js +188 -0
- package/dist/behaviour-request.js +194 -0
- package/dist/behaviour.js +1325 -0
- package/dist/build-params.js +108 -0
- package/dist/build.js +668 -0
- package/dist/builder.js +44 -0
- package/dist/cdk/advise.js +30 -0
- package/dist/cdk/assembly.js +122 -0
- package/dist/cdk/graph.js +444 -0
- package/dist/cdk/tier-map.js +64 -0
- package/dist/cdk/types.js +24 -0
- package/dist/change-set.js +312 -0
- package/dist/child-project.js +21 -0
- package/dist/claimed-fields.js +135 -0
- package/dist/cli/build-options.js +70 -0
- package/dist/cli/build-params-cli.js +139 -0
- package/dist/cli/command-group.js +123 -0
- package/dist/cli/commands/audit-agents.js +326 -0
- package/dist/cli/commands/audit.js +571 -0
- package/dist/cli/commands/build.js +920 -0
- package/dist/cli/commands/carve-apply.js +153 -0
- package/dist/cli/commands/carve-bridge.js +201 -0
- package/dist/cli/commands/carve-emit.js +332 -0
- package/dist/cli/commands/carve-status.js +119 -0
- package/dist/cli/commands/carve.js +204 -0
- package/dist/cli/commands/check-lexicon-docs.js +79 -0
- package/dist/cli/commands/check-lexicon-examples.js +177 -0
- package/dist/cli/commands/check-lexicon-intrinsics.js +291 -0
- package/dist/cli/commands/check-lexicon-mcp.js +82 -0
- package/dist/cli/commands/check-lexicon-plugin.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-plugin.js +104 -0
- package/dist/cli/commands/check-lexicon.js +766 -0
- package/dist/cli/commands/describe.js +85 -0
- package/dist/cli/commands/diff.js +175 -0
- package/dist/cli/commands/doctor.js +350 -0
- package/dist/cli/commands/import-agents.js +155 -0
- package/dist/cli/commands/import.js +670 -0
- package/dist/cli/commands/init-lexicon/templates/codegen.js +194 -0
- package/dist/cli/commands/init-lexicon/templates/docs.js +100 -0
- package/dist/cli/commands/init-lexicon/templates/examples.js +29 -0
- package/dist/cli/commands/init-lexicon/templates/lint.js +34 -0
- package/dist/cli/commands/init-lexicon/templates/lsp.js +37 -0
- package/dist/cli/commands/init-lexicon/templates/plugin.js +108 -0
- package/dist/cli/commands/init-lexicon/templates/project.js +240 -0
- package/dist/cli/commands/init-lexicon/templates/spec.js +56 -0
- package/dist/cli/commands/init-lexicon/templates/tests.js +66 -0
- package/dist/cli/commands/init-lexicon.js +172 -0
- package/dist/cli/commands/init.js +381 -0
- package/dist/cli/commands/lexicon-rolling-upgrade.js +145 -0
- package/dist/cli/commands/lexicon-surface-diff.js +145 -0
- package/dist/cli/commands/licenses.js +125 -0
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/lint.js +948 -0
- package/dist/cli/commands/list.js +63 -0
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +423 -0
- package/dist/cli/commands/onboard.js +403 -0
- package/dist/cli/commands/pinned-upgrade.js +191 -0
- package/dist/cli/commands/update.js +194 -0
- package/dist/cli/commands/vendor.js +217 -0
- package/dist/cli/conflict-check.js +104 -0
- package/dist/cli/debug.js +8 -0
- package/dist/cli/format.js +104 -0
- package/dist/cli/handlers/build.js +267 -0
- package/dist/cli/handlers/carve-apply.js +30 -0
- package/dist/cli/handlers/carve-bridge.js +28 -0
- package/dist/cli/handlers/carve-emit.js +50 -0
- package/dist/cli/handlers/carve-status.js +26 -0
- package/dist/cli/handlers/carve.js +40 -0
- package/dist/cli/handlers/change-set.js +46 -0
- package/dist/cli/handlers/components.js +730 -0
- package/dist/cli/handlers/dev.js +113 -0
- package/dist/cli/handlers/emulator.js +233 -0
- package/dist/cli/handlers/explain.js +54 -0
- package/dist/cli/handlers/fan-out.js +422 -0
- package/dist/cli/handlers/gate-resume.js +275 -0
- package/dist/cli/handlers/generate.js +84 -0
- package/dist/cli/handlers/graph.js +969 -0
- package/dist/cli/handlers/init.js +102 -0
- package/dist/cli/handlers/lifecycle.js +1727 -0
- package/dist/cli/handlers/lint.js +62 -0
- package/dist/cli/handlers/migrate.js +48 -0
- package/dist/cli/handlers/misc.js +391 -0
- package/dist/cli/handlers/operator.js +1162 -0
- package/dist/cli/handlers/override-approve.js +102 -0
- package/dist/cli/handlers/pr.js +503 -0
- package/dist/cli/handlers/promote.js +342 -0
- package/dist/cli/handlers/run-generate.js +206 -0
- package/dist/cli/handlers/run-wave.js +66 -0
- package/dist/cli/handlers/run.js +1191 -0
- package/dist/cli/handlers/scenario.js +325 -0
- package/dist/cli/handlers/search.js +924 -0
- package/dist/cli/handlers/serve.js +32 -0
- package/dist/cli/handlers/vendor.js +154 -0
- package/dist/cli/index.js +3 -0
- package/dist/cli/is-entry-point.js +23 -0
- package/dist/cli/lsp/capabilities.js +28 -0
- package/dist/cli/lsp/diagnostics.js +34 -0
- package/dist/cli/lsp/server.js +329 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +2540 -0
- package/dist/cli/mcp/lifecycle-tools.js +80 -0
- package/dist/cli/mcp/op-tools.js +306 -0
- package/dist/cli/mcp/resource-handlers.js +258 -0
- package/dist/cli/mcp/resources/context.js +85 -0
- package/dist/cli/mcp/server.js +353 -0
- package/dist/cli/mcp/tools/build.js +111 -0
- package/dist/cli/mcp/tools/composites.js +95 -0
- package/dist/cli/mcp/tools/explain.js +166 -0
- package/dist/cli/mcp/tools/import.js +49 -0
- package/dist/cli/mcp/tools/lint.js +41 -0
- package/dist/cli/mcp/tools/scaffold.js +111 -0
- package/dist/cli/mcp/tools/search.js +112 -0
- package/dist/cli/mcp/types.js +1 -0
- package/dist/cli/mcp/workspace-plugins.js +91 -0
- package/dist/cli/mcp/workspace-tools.d.ts +1 -1
- package/dist/cli/mcp/workspace-tools.js +564 -0
- package/dist/cli/mcp-config.js +70 -0
- package/dist/cli/plugins.js +313 -0
- package/dist/cli/registry.js +23 -0
- package/dist/cli/reporters/stylish.js +329 -0
- package/dist/cli/version.js +15 -0
- package/dist/cli/watch.js +79 -0
- package/dist/codegen/bound-property-types.js +82 -0
- package/dist/codegen/coverage.js +119 -0
- package/dist/codegen/docs-file-markers.js +60 -0
- package/dist/codegen/docs-pages.js +115 -0
- package/dist/codegen/docs-rule-scanning.js +164 -0
- package/dist/codegen/docs-rules.js +76 -0
- package/dist/codegen/docs-sections.js +117 -0
- package/dist/codegen/docs-sidebar.js +65 -0
- package/dist/codegen/docs-types.js +4 -0
- package/dist/codegen/docs.js +356 -0
- package/dist/codegen/fetch.js +340 -0
- package/dist/codegen/generate-post-synth-barrel.js +63 -0
- package/dist/codegen/generate-registry.js +71 -0
- package/dist/codegen/generate-runtime-index.js +56 -0
- package/dist/codegen/generate-typescript.js +119 -0
- package/dist/codegen/generate.js +115 -0
- package/dist/codegen/json-patch.js +141 -0
- package/dist/codegen/json-schema-to-ts.js +344 -0
- package/dist/codegen/json-schema.js +246 -0
- package/dist/codegen/lexicon-regen.js +412 -0
- package/dist/codegen/naming.js +217 -0
- package/dist/codegen/okf-lexicon.js +245 -0
- package/dist/codegen/package.js +150 -0
- package/dist/codegen/pinned-upgrade.d.ts.map +1 -1
- package/dist/codegen/pinned-upgrade.js +494 -0
- package/dist/codegen/registry.js +60 -0
- package/dist/codegen/rehype-base-url.mjs +68 -0
- package/dist/codegen/rolling-upgrade.js +217 -0
- package/dist/codegen/surface-snapshot.js +537 -0
- package/dist/codegen/testdata/postgres-tags.json +242 -0
- package/dist/codegen/topo-sort.js +36 -0
- package/dist/codegen/typecheck.js +115 -0
- package/dist/codegen/validate.js +200 -0
- package/dist/codegen/version-bump.js +35 -0
- package/dist/components/auto-release.js +143 -0
- package/dist/components/builders.js +47 -0
- package/dist/components/capability-plugin-loader.js +175 -0
- package/dist/components/capability-plugin-schema.js +46 -0
- package/dist/components/capability-plugin.js +99 -0
- package/dist/components/capability.js +60 -0
- package/dist/components/changed-files.js +72 -0
- package/dist/components/cli-support.js +427 -0
- package/dist/components/component.js +120 -0
- package/dist/components/component.schema.json +271 -0
- package/dist/components/config-defaults.js +130 -0
- package/dist/components/deploy-units.js +60 -0
- package/dist/components/discover.d.ts.map +1 -1
- package/dist/components/discover.js +189 -0
- package/dist/components/driver-output.js +86 -0
- package/dist/components/driver.js +728 -0
- package/dist/components/fan-out-output.js +165 -0
- package/dist/components/fan-out-record.js +94 -0
- package/dist/components/fan-out-run.js +373 -0
- package/dist/components/fan-out-support.js +60 -0
- package/dist/components/fan-out.js +273 -0
- package/dist/components/gate-plan.js +41 -0
- package/dist/components/gated-wave-pipeline.js +46 -0
- package/dist/components/index.js +24 -0
- package/dist/components/layers.js +28 -0
- package/dist/components/manifest-persistence.js +108 -0
- package/dist/components/pilots/alb-ecs.pilot.js +59 -0
- package/dist/components/pilots/dynamodb.pilot.js +51 -0
- package/dist/components/pilots/jar-emr.pilot.js +65 -0
- package/dist/components/pilots/lambda.pilot.js +52 -0
- package/dist/components/pilots/neo4j-fanout.pilot.js +68 -0
- package/dist/components/pilots/project.js +12 -0
- package/dist/components/pr-pipeline.js +134 -0
- package/dist/components/pr-run.js +363 -0
- package/dist/components/presets/ecs-fargate.js +72 -0
- package/dist/components/presets/index.js +28 -0
- package/dist/components/presets/lambda.js +34 -0
- package/dist/components/presets/single-host-compose.js +41 -0
- package/dist/components/promote.js +549 -0
- package/dist/components/registry.js +34 -0
- package/dist/components/run-progress.js +33 -0
- package/dist/components/sandbox/driver.d.ts.map +1 -1
- package/dist/components/sandbox/driver.js +93 -0
- package/dist/components/sandbox/run.js +115 -0
- package/dist/components/starter-plugin.js +104 -0
- package/dist/components/verbs/__tests__/mock-cloud-executor.js +68 -0
- package/dist/components/verbs/__tests__/mock-process-runner.js +45 -0
- package/dist/components/verbs/__tests__/mock-sbom-generator.js +56 -0
- package/dist/components/verbs/bom-writer.js +287 -0
- package/dist/components/verbs/build-archive.js +188 -0
- package/dist/components/verbs/build.js +142 -0
- package/dist/components/verbs/cloud-executor.js +110 -0
- package/dist/components/verbs/component-bom.js +125 -0
- package/dist/components/verbs/ensure-secret.js +50 -0
- package/dist/components/verbs/index.js +61 -0
- package/dist/components/verbs/license-policy.js +75 -0
- package/dist/components/verbs/lockfile-sbom-generator.js +191 -0
- package/dist/components/verbs/process-runner.js +78 -0
- package/dist/components/verbs/r2-sync.js +93 -0
- package/dist/components/verbs/reproducibility.js +62 -0
- package/dist/components/verbs/run-agent.js +577 -0
- package/dist/components/verbs/sbom-generator.js +119 -0
- package/dist/components/verbs/sbom.js +97 -0
- package/dist/components/verbs/shell.js +32 -0
- package/dist/components/verbs/sign.js +221 -0
- package/dist/components/verbs/stub.js +28 -0
- package/dist/components/verbs/tool-sbom-generator.js +154 -0
- package/dist/components/verbs/verify.js +112 -0
- package/dist/components/verbs/vex.js +131 -0
- package/dist/components/verbs/vuln-gate.js +152 -0
- package/dist/components/verbs/vuln-scan.js +288 -0
- package/dist/components/verbs/wait-verify.js +106 -0
- package/dist/components/verbs/wrangler.js +179 -0
- package/dist/components/wave-plan.js +102 -0
- package/dist/composite.js +305 -0
- package/dist/config-import.d.ts.map +1 -1
- package/dist/config-import.js +22 -0
- package/dist/config-sandbox.js +122 -0
- package/dist/config-static.js +206 -0
- package/dist/config.js +605 -0
- package/dist/content-digest.js +23 -0
- package/dist/declarable.js +114 -0
- package/dist/deep-observation.js +437 -0
- package/dist/detectLexicon.js +54 -0
- package/dist/discovery/cache.js +70 -0
- package/dist/discovery/collect.js +208 -0
- package/dist/discovery/cycles.js +95 -0
- package/dist/discovery/entity-wire-codec.js +391 -0
- package/dist/discovery/entity-wire.js +42 -0
- package/dist/discovery/files.js +121 -0
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/discovery/fold-import.js +4178 -0
- package/dist/discovery/fold-rank.js +292 -0
- package/dist/discovery/graph.js +115 -0
- package/dist/discovery/import.d.ts.map +1 -1
- package/dist/discovery/import.js +65 -0
- package/dist/discovery/index.js +333 -0
- package/dist/discovery/param-deps.js +487 -0
- package/dist/discovery/resolve.js +39 -0
- package/dist/discovery/sandbox/bundle.js +214 -0
- package/dist/discovery/sandbox/child-errors.js +26 -0
- package/dist/discovery/sandbox/config-run.js +100 -0
- package/dist/discovery/sandbox/config-wire.js +183 -0
- package/dist/discovery/sandbox/driver.d.ts.map +1 -1
- package/dist/discovery/sandbox/driver.js +333 -0
- package/dist/discovery/sandbox/fork.js +229 -0
- package/dist/discovery/sandbox/policy-run.js +142 -0
- package/dist/discovery/sandbox/policy-wire.js +152 -0
- package/dist/discovery/sandbox/run.js +77 -0
- package/dist/discovery/specifier-resolve.js +320 -0
- package/dist/discovery/walk.js +284 -0
- package/dist/effect-receipt.js +340 -0
- package/dist/env.js +55 -0
- package/dist/errors.js +62 -0
- package/dist/fold/fold.js +1434 -0
- package/dist/fold/foldable-helpers.js +229 -0
- package/dist/fold/subset.js +696 -0
- package/dist/fold-provenance.js +414 -0
- package/dist/gate-decision.d.ts +36 -4
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +260 -0
- package/dist/gate-resume-run.js +154 -0
- package/dist/gated-waves.js +165 -0
- package/dist/governance.js +43 -0
- package/dist/graph-declared.js +45 -0
- package/dist/graph-detail.js +207 -0
- package/dist/graph-dot.js +54 -0
- package/dist/graph-effective.js +107 -0
- package/dist/graph-ir.js +623 -0
- package/dist/graph-layout.js +184 -0
- package/dist/graph-lens.js +105 -0
- package/dist/graph-mermaid.js +83 -0
- package/dist/graph-ops.js +39 -0
- package/dist/graph-refs.js +156 -0
- package/dist/held-elsewhere.js +87 -0
- package/dist/identity.js +251 -0
- package/dist/import/base-parser.js +34 -0
- package/dist/import/embedded.js +255 -0
- package/dist/import/generator.js +1 -0
- package/dist/import/ir-utils.js +85 -0
- package/dist/import/parser-options.js +45 -0
- package/dist/import/parser.js +1 -0
- package/dist/index.js +118 -0
- package/dist/intrinsic-interpolation.js +73 -0
- package/dist/intrinsic.js +31 -0
- package/dist/join-key.js +35 -0
- package/dist/kubectl-context.js +150 -0
- package/dist/lexicon-config.js +58 -0
- package/dist/lexicon-integrity.js +47 -0
- package/dist/lexicon-manifest.js +70 -0
- package/dist/lexicon-module.d.ts.map +1 -1
- package/dist/lexicon-module.js +241 -0
- package/dist/lexicon-output.js +218 -0
- package/dist/lexicon-plugin-helpers.js +104 -0
- package/dist/lexicon-schema.js +136 -0
- package/dist/lexicon.js +130 -0
- package/dist/lifecycle/affected.js +224 -0
- package/dist/lifecycle/assert-live.js +110 -0
- package/dist/lifecycle/build-ledger-store.js +160 -0
- package/dist/lifecycle/build-ledger.js +155 -0
- package/dist/lifecycle/change-set.js +356 -0
- package/dist/lifecycle/converge-ledger.js +161 -0
- package/dist/lifecycle/deep-diff.js +233 -0
- package/dist/lifecycle/deep-observe.js +147 -0
- package/dist/lifecycle/digest.js +143 -0
- package/dist/lifecycle/disruption.js +135 -0
- package/dist/lifecycle/gate-applied.js +113 -0
- package/dist/lifecycle/gate-audit.js +341 -0
- package/dist/lifecycle/gate-ledger-select.js +89 -0
- package/dist/lifecycle/gate-ledger.d.ts +8 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.js +193 -0
- package/dist/lifecycle/gate-origin.js +117 -0
- package/dist/lifecycle/gate-pending.js +58 -0
- package/dist/lifecycle/git.js +1182 -0
- package/dist/lifecycle/identity.js +58 -0
- package/dist/lifecycle/index.js +26 -0
- package/dist/lifecycle/lease.js +283 -0
- package/dist/lifecycle/ledger-port.js +1 -0
- package/dist/lifecycle/legacy-digest.js +91 -0
- package/dist/lifecycle/live-diff.js +274 -0
- package/dist/lifecycle/local-note.js +15 -0
- package/dist/lifecycle/member-ledger.js +122 -0
- package/dist/lifecycle/observation-baseline.js +155 -0
- package/dist/lifecycle/observe.js +375 -0
- package/dist/lifecycle/oras-referrer-lookup.js +82 -0
- package/dist/lifecycle/override-ledger.js +54 -0
- package/dist/lifecycle/plan-digest.js +110 -0
- package/dist/lifecycle/plan-ledger.js +129 -0
- package/dist/lifecycle/receipt-plan.js +192 -0
- package/dist/lifecycle/release-ledger.js +155 -0
- package/dist/lifecycle/release-read.js +64 -0
- package/dist/lifecycle/replay.js +193 -0
- package/dist/lifecycle/rollback.js +102 -0
- package/dist/lifecycle/run-ledger.js +183 -0
- package/dist/lifecycle/scenario-eval.js +204 -0
- package/dist/lifecycle/scenario.js +214 -0
- package/dist/lifecycle/snapshot.js +239 -0
- package/dist/lifecycle/status.js +447 -0
- package/dist/lifecycle/symptoms.js +117 -0
- package/dist/lifecycle/teardown.js +255 -0
- package/dist/lifecycle/types.js +1 -0
- package/dist/lifecycle/unobserved-gate.js +33 -0
- package/dist/lifecycle/wave-plans.js +68 -0
- package/dist/lifecycle/work-item-id.js +36 -0
- package/dist/lifecycle/work-lease.js +393 -0
- package/dist/lint/component-checks.js +87 -0
- package/dist/lint/config.js +483 -0
- package/dist/lint/declarative.js +122 -0
- package/dist/lint/discover.d.ts.map +1 -1
- package/dist/lint/discover.js +138 -0
- package/dist/lint/engine.js +246 -0
- package/dist/lint/knowledge-checks.js +64 -0
- package/dist/lint/named-checks.js +22 -0
- package/dist/lint/output-checks.js +87 -0
- package/dist/lint/output-docs.js +163 -0
- package/dist/lint/parser.js +33 -0
- package/dist/lint/pipeline-change-gate.js +70 -0
- package/dist/lint/policy-import.d.ts +1 -1
- package/dist/lint/policy-import.d.ts.map +1 -1
- package/dist/lint/policy-import.js +62 -0
- package/dist/lint/policy-sandbox.js +86 -0
- package/dist/lint/policy.js +122 -0
- package/dist/lint/post-synth.js +87 -0
- package/dist/lint/presets/relaxed.json +26 -0
- package/dist/lint/presets/strict.json +24 -24
- package/dist/lint/receipt-checks.js +83 -0
- package/dist/lint/rule-loader.d.ts.map +1 -1
- package/dist/lint/rule-loader.js +89 -0
- package/dist/lint/rule-registry.js +86 -0
- package/dist/lint/rule.js +1 -0
- package/dist/lint/rules/__fixtures__/comp/comp000-discovery-error/broken-a.component.js +7 -0
- package/dist/lint/rules/__fixtures__/comp/comp000-discovery-error/broken-b.component.js +7 -0
- package/dist/lint/rules/__fixtures__/comp/comp001/fail/orphan-lib.component.js +9 -0
- package/dist/lint/rules/__fixtures__/comp/comp001/pass/emr-job.component.js +11 -0
- package/dist/lint/rules/__fixtures__/comp/comp001/pass/jar-lib.component.js +9 -0
- package/dist/lint/rules/__fixtures__/comp/comp002/fail/search-service.component.js +25 -0
- package/dist/lint/rules/__fixtures__/comp/comp002/pass/jar-lib.component.js +8 -0
- package/dist/lint/rules/__fixtures__/comp/comp002/pass/search-service.component.js +21 -0
- package/dist/lint/rules/__fixtures__/comp/comp003/fail/migrator.component.js +8 -0
- package/dist/lint/rules/__fixtures__/comp/comp003/pass/agent-turn.component.js +24 -0
- package/dist/lint/rules/__fixtures__/comp/comp003/pass/migrator.component.js +17 -0
- package/dist/lint/rules/__fixtures__/comp/comp003/pass/orders-table.component.js +8 -0
- package/dist/lint/rules/__fixtures__/comp/comp004/fail/neo4j-cluster.component.js +18 -0
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.js +20 -0
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.js +8 -0
- package/dist/lint/rules/__fixtures__/comp/comp005/fail/search-service.component.js +12 -0
- package/dist/lint/rules/__fixtures__/comp/comp005/pass/search-service.component.js +16 -0
- package/dist/lint/rules/__fixtures__/comp/comp006/fail/legacy-tool.component.js +8 -0
- package/dist/lint/rules/__fixtures__/comp/comp006/pass/legacy-tool.component.js +12 -0
- package/dist/lint/rules/__fixtures__/comp/comp007/fail/inventory-table.component.js +11 -0
- package/dist/lint/rules/__fixtures__/comp/comp007/fail/orders-table.component.js +11 -0
- package/dist/lint/rules/__fixtures__/comp/comp007/pass/orders-table.component.js +10 -0
- package/dist/lint/rules/__fixtures__/comp/comp007/pass/search-service.component.js +16 -0
- package/dist/lint/rules/comp/comp001-publishes-never-applies.js +69 -0
- package/dist/lint/rules/comp/comp002-dangling-wiring-ref.js +84 -0
- package/dist/lint/rules/comp/comp003-mutating-no-rollback.js +103 -0
- package/dist/lint/rules/comp/comp004-gate-needs-durable-runtime.js +70 -0
- package/dist/lint/rules/comp/comp005-capability-kind-is-noun.js +109 -0
- package/dist/lint/rules/comp/comp006-shell-needs-reason.js +49 -0
- package/dist/lint/rules/comp/comp007-composition-sprawl.js +64 -0
- package/dist/lint/rules/comp/index.js +33 -0
- package/dist/lint/rules/comp/support.js +129 -0
- package/dist/lint/rules/composite-scope.js +51 -0
- package/dist/lint/rules/cor017-composite-name-match.js +93 -0
- package/dist/lint/rules/cor018-composite-prefer-lexicon-type.js +136 -0
- package/dist/lint/rules/cor021-env-literal-name.js +100 -0
- package/dist/lint/rules/cor022-receipt-leaf.js +118 -0
- package/dist/lint/rules/cor024-receipt-secret-pointer.js +199 -0
- package/dist/lint/rules/declarable-naming-convention.js +62 -0
- package/dist/lint/rules/evl001-non-literal-expression.js +66 -0
- package/dist/lint/rules/evl002-control-flow-resource.js +69 -0
- package/dist/lint/rules/evl003-dynamic-property-access.js +44 -0
- package/dist/lint/rules/evl004-spread-non-const.js +94 -0
- package/dist/lint/rules/evl005-resource-block-body.js +41 -0
- package/dist/lint/rules/evl007-invalid-siblings.js +105 -0
- package/dist/lint/rules/evl009-composite-no-constant.js +158 -0
- package/dist/lint/rules/evl010-composite-no-transform.js +59 -0
- package/dist/lint/rules/evl011-symbolic-in-template.js +106 -0
- package/dist/lint/rules/export-required.js +115 -0
- package/dist/lint/rules/file-declarable-limit.js +88 -0
- package/dist/lint/rules/flat-declarations.js +62 -0
- package/dist/lint/rules/index.js +90 -0
- package/dist/lint/rules/no-cyclic-declarable-ref.js +138 -0
- package/dist/lint/rules/no-redundant-type-import.js +76 -0
- package/dist/lint/rules/no-redundant-value-cast.js +41 -0
- package/dist/lint/rules/no-string-ref.js +59 -0
- package/dist/lint/rules/no-unused-declarable-import.js +75 -0
- package/dist/lint/rules/no-unused-declarable.js +142 -0
- package/dist/lint/rules/op/index.js +28 -0
- package/dist/lint/rules/op/ops012-activity-contract.js +54 -0
- package/dist/lint/rules/op/ops013-step-output-ref.js +88 -0
- package/dist/lint/rules/op/ops014-converge-rule-refusals.js +114 -0
- package/dist/lint/rules/op/ops015-gate-approval.js +45 -0
- package/dist/lint/rules/op/support.js +11 -0
- package/dist/lint/rules/op/sys010-key-over-plain-http.js +100 -0
- package/dist/lint/rules/property-kind.js +56 -0
- package/dist/lint/rules/single-concern-file.js +71 -0
- package/dist/lint/rules/sys001-no-literal-key.js +60 -0
- package/dist/lint/selectors.js +168 -0
- package/dist/lint/suppressions.js +129 -0
- package/dist/lint/typescript.js +17 -0
- package/dist/live-endpoint.js +113 -0
- package/dist/live-read-session.js +76 -0
- package/dist/lsp/lexicon-providers.js +163 -0
- package/dist/lsp/types.js +5 -0
- package/dist/managed-fields.js +293 -0
- package/dist/mcp/types.js +4 -0
- package/dist/notify-verify.js +0 -1
- package/dist/notify.js +0 -1
- package/dist/notify.schema.json +72 -0
- package/dist/observation.js +266 -0
- package/dist/okf-read.js +134 -0
- package/dist/okf.js +275 -0
- package/dist/op/__fixtures__/decide-stub-backend.js +125 -0
- package/dist/op/activities/activity-contracts.js +313 -0
- package/dist/op/activities/apply.js +582 -0
- package/dist/op/activities/build.js +18 -0
- package/dist/op/activities/change-coverage.js +40 -0
- package/dist/op/activities/change-set.js +64 -0
- package/dist/op/activities/converge.js +492 -0
- package/dist/op/activities/decide.js +211 -0
- package/dist/op/activities/env-teardown.js +110 -0
- package/dist/op/activities/factory.js +591 -0
- package/dist/op/activities/forge-pull-request.js +82 -0
- package/dist/op/activities/gh-host.js +78 -0
- package/dist/op/activities/guard-validate.js +165 -0
- package/dist/op/activities/http-check.js +40 -0
- package/dist/op/activities/index.js +59 -0
- package/dist/op/activities/lexicon-upgrade.js +629 -0
- package/dist/op/activities/lifecycle.js +109 -0
- package/dist/op/activities/pipeline-audit.js +147 -0
- package/dist/op/activities/policy.js +26 -0
- package/dist/op/activities/predict-behaviour.js +341 -0
- package/dist/op/activities/propose-upgrade.js +165 -0
- package/dist/op/activities/reconcile.js +997 -0
- package/dist/op/activities/shell.js +118 -0
- package/dist/op/activities/source-release.js +97 -0
- package/dist/op/activities/source-rollback.js +165 -0
- package/dist/op/activities/teardown.js +17 -0
- package/dist/op/activities/util.js +6 -0
- package/dist/op/activities/wait.js +51 -0
- package/dist/op/activities/work-evidence.js +35 -0
- package/dist/op/activities/workflow-audit.js +133 -0
- package/dist/op/activity-contract-registry.js +106 -0
- package/dist/op/activity-contract.js +232 -0
- package/dist/op/activity-failure.js +31 -0
- package/dist/op/activity-profiles.js +129 -0
- package/dist/op/activity-registry.js +105 -0
- package/dist/op/activity-runtime.js +28 -0
- package/dist/op/builders.js +801 -0
- package/dist/op/change-signal.js +118 -0
- package/dist/op/composites/apply-op.js +151 -0
- package/dist/op/composites/behaviour-op.js +65 -0
- package/dist/op/composites/converge-op.js +141 -0
- package/dist/op/composites/index.js +19 -0
- package/dist/op/composites/lexicon-upgrade-op.js +107 -0
- package/dist/op/composites/pipeline-audit-op.js +50 -0
- package/dist/op/composites/reconcile-op.js +84 -0
- package/dist/op/composites/watch-op.js +69 -0
- package/dist/op/composites/workflow-audit-op.js +57 -0
- package/dist/op/converge-rule.js +205 -0
- package/dist/op/cron.js +146 -0
- package/dist/op/decide-backend.js +181 -0
- package/dist/op/decide-config.js +68 -0
- package/dist/op/decide-read-inputs.js +141 -0
- package/dist/op/discover.d.ts.map +1 -1
- package/dist/op/discover.js +213 -0
- package/dist/op/duration.js +21 -0
- package/dist/op/emulator-freshness.js +80 -0
- package/dist/op/emulator-lifecycle.js +269 -0
- package/dist/op/factory.js +83 -0
- package/dist/op/gate-approval.js +172 -0
- package/dist/op/gate-name.js +86 -0
- package/dist/op/gate-plan-context.js +167 -0
- package/dist/op/gate-point-run.js +67 -0
- package/dist/op/gate-point.js +111 -0
- package/dist/op/gate-resume-plan.js +155 -0
- package/dist/op/gate-resume.js +31 -0
- package/dist/op/gate-review.js +290 -0
- package/dist/op/gate-run-locator.js +85 -0
- package/dist/op/gate-summary.js +100 -0
- package/dist/op/gate-wait.js +56 -0
- package/dist/op/gate.js +449 -0
- package/dist/op/generate-pipeline.js +124 -0
- package/dist/op/index.js +51 -0
- package/dist/op/lifecycle-receipt-store.js +45 -0
- package/dist/op/local-executor.js +1164 -0
- package/dist/op/local-output.js +140 -0
- package/dist/op/op-ir.js +317 -0
- package/dist/op/op-verb-class.js +131 -0
- package/dist/op/op-waves-notify.js +136 -0
- package/dist/op/op-waves-run.d.ts +1 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +1657 -0
- package/dist/op/op-waves.js +409 -0
- package/dist/op/operator.js +743 -0
- package/dist/op/receipt-store.js +94 -0
- package/dist/op/resource.js +23 -0
- package/dist/op/run-context.js +28 -0
- package/dist/op/run-live.js +256 -0
- package/dist/op/runtime.js +21 -0
- package/dist/op/runtimes/local.js +195 -0
- package/dist/op/source-archive.js +131 -0
- package/dist/op/step-output-ref.js +397 -0
- package/dist/op/steward-beside.js +169 -0
- package/dist/op/steward-points.js +138 -0
- package/dist/op/steward-turn.js +59 -0
- package/dist/op/steward.js +317 -0
- package/dist/op/types.js +25 -0
- package/dist/op/work-lease-decl.js +81 -0
- package/dist/op/work-lease-run.js +393 -0
- package/dist/override-gate.js +284 -0
- package/dist/owner-chain.js +74 -0
- package/dist/ownership.js +92 -0
- package/dist/params.js +61 -0
- package/dist/plan-summary.js +711 -0
- package/dist/point-decision.js +211 -0
- package/dist/pr-forge.js +810 -0
- package/dist/pr-loop.js +203 -0
- package/dist/project-codegen.js +191 -0
- package/dist/project-root.js +74 -0
- package/dist/project-validation.js +50 -0
- package/dist/provenance.js +157 -0
- package/dist/pseudo-parameter.js +40 -0
- package/dist/reconcile.js +450 -0
- package/dist/resource-attributes.js +33 -0
- package/dist/runtime-adapter.js +77 -0
- package/dist/runtime.js +66 -0
- package/dist/secret-materialization.js +153 -0
- package/dist/secret-provenance.js +250 -0
- package/dist/serializer-walker.js +112 -0
- package/dist/serializer.js +1 -0
- package/dist/sort.js +45 -0
- package/dist/stack-output.js +115 -0
- package/dist/telemetry-attribution.js +149 -0
- package/dist/terraform/__fixtures__/build-graph.js +63 -0
- package/dist/terraform/adopt-state.js +40 -0
- package/dist/terraform/aws-resources.js +384 -0
- package/dist/terraform/bridge.js +204 -0
- package/dist/terraform/carve-provider.js +155 -0
- package/dist/terraform/carve.js +138 -0
- package/dist/terraform/data-source-shape.js +57 -0
- package/dist/terraform/emit-source.js +36 -0
- package/dist/terraform/excise.js +123 -0
- package/dist/terraform/graduate.js +128 -0
- package/dist/terraform/graph.js +435 -0
- package/dist/terraform/hcl2json.js +60 -0
- package/dist/terraform/manifest.js +149 -0
- package/dist/terraform/parse.js +81 -0
- package/dist/terraform/providers/aws.js +146 -0
- package/dist/terraform/providers/gcp.js +294 -0
- package/dist/terraform/providers/index.js +17 -0
- package/dist/terraform/providers/kubernetes.js +253 -0
- package/dist/terraform/score.js +151 -0
- package/dist/terraform/state.js +67 -0
- package/dist/terraform/tier-map.js +74 -0
- package/dist/terraform/types.js +13 -0
- package/dist/terraform/unified-diff.js +132 -0
- package/dist/testing.js +295 -0
- package/dist/toml-emit.js +153 -0
- package/dist/toml-parse.js +355 -0
- package/dist/toml-utils.js +60 -0
- package/dist/toml.js +428 -0
- package/dist/ts-loader.d.ts +46 -0
- package/dist/ts-loader.d.ts.map +1 -0
- package/dist/ts-loader.js +103 -0
- package/dist/types.js +1 -0
- package/dist/utils.js +61 -0
- package/dist/validation.js +20 -0
- package/dist/vendor/js-yaml-load.js +1662 -0
- package/dist/workspace/__fixtures__/contract-repo.js +103 -0
- package/dist/workspace/__fixtures__/decide-workspace.js +112 -0
- package/dist/workspace/__fixtures__/sessions.js +91 -0
- package/dist/workspace/__fixtures__/two-member-workspace.js +34 -0
- package/dist/workspace/agent-cli.js +99 -0
- package/dist/workspace/agent.schema.json +390 -0
- package/dist/workspace/answers-ledger.js +89 -0
- package/dist/workspace/box-cli.js +142 -0
- package/dist/workspace/box-factory-write.js +196 -0
- package/dist/workspace/box-factory-write.schema.json +342 -0
- package/dist/workspace/box-factory.js +88 -0
- package/dist/workspace/box-intent.js +126 -0
- package/dist/workspace/box-isolation.js +169 -0
- package/dist/workspace/box-listing-write.schema.json +204 -0
- package/dist/workspace/box-listing.js +298 -0
- package/dist/workspace/box-publish.js +352 -0
- package/dist/workspace/box-publish.schema.json +498 -0
- package/dist/workspace/box-services.js +39 -0
- package/dist/workspace/broker-protocol.js +359 -0
- package/dist/workspace/broker-protocol.schema.json +228 -0
- package/dist/workspace/change-set.schema.json +460 -0
- package/dist/workspace/changes-cli.js +56 -0
- package/dist/workspace/changes.js +446 -0
- package/dist/workspace/changes.schema.json +642 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-fly-site.js +198 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-live-names.js +155 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-rollback.js +214 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-inputs.js +180 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit-ship-policy.js +99 -0
- package/dist/workspace/chant-migrations/chud-lexicon-exit.js +847 -0
- package/dist/workspace/chant-migrations.js +113 -0
- package/dist/workspace/check.schema.json +433 -0
- package/dist/workspace/checks/box-isolation.js +62 -0
- package/dist/workspace/checks/boxes.js +491 -0
- package/dist/workspace/checks/diagrams.js +104 -0
- package/dist/workspace/checks/generated.js +419 -0
- package/dist/workspace/checks/ledgers.js +212 -0
- package/dist/workspace/checks/links.js +191 -0
- package/dist/workspace/checks/live.js +100 -0
- package/dist/workspace/checks/pipelines.js +188 -0
- package/dist/workspace/checks/records.js +169 -0
- package/dist/workspace/checks.js +426 -0
- package/dist/workspace/ci-green-cli.js +125 -0
- package/dist/workspace/ci-green-forge.js +83 -0
- package/dist/workspace/ci-green-workflow.js +199 -0
- package/dist/workspace/ci-green.js +325 -0
- package/dist/workspace/ci-last-green.schema.json +158 -0
- package/dist/workspace/compose-graph.js +235 -0
- package/dist/workspace/compose-reports.js +146 -0
- package/dist/workspace/composites.js +264 -0
- package/dist/workspace/composites.schema.json +617 -0
- package/dist/workspace/conformance/__fixture__/app/package.json +7 -0
- package/dist/workspace/conformance/__fixture__/app/src/server.mjs +29 -0
- package/dist/workspace/conformance/__fixture__/decisions/decision.kind.mjs +54 -0
- package/dist/workspace/conformance/__fixture__/decisions/decision.schema.json +512 -0
- package/dist/workspace/conformance/__fixture__/decisions/fix-001-how-the-app-is-deployed.md +40 -0
- package/dist/workspace/conformance/__fixture__/delivery/chant.config.ts +7 -0
- package/dist/workspace/conformance/__fixture__/delivery/lexicon/index.ts +26 -0
- package/dist/workspace/conformance/__fixture__/delivery/package.json +7 -0
- package/dist/workspace/conformance/__fixture__/delivery/src/app.component.ts +14 -0
- package/dist/workspace/conformance/__fixture__/delivery/src/app.ts +4 -0
- package/dist/workspace/conformance/__fixtures__/reference-broker.js +205 -0
- package/dist/workspace/conformance/__writer_fixture__/answers/answer.kind.mjs +32 -0
- package/dist/workspace/conformance/__writer_fixture__/answers/answer.schema.json +135 -0
- package/dist/workspace/conformance/__writer_fixture__/contracts/contract.kind.mjs +37 -0
- package/dist/workspace/conformance/__writer_fixture__/contracts/contract.schema.json +213 -0
- package/dist/workspace/conformance/__writer_fixture__/decisions/points.json +228 -0
- package/dist/workspace/conformance/__writer_fixture__/drivers/driver.kind.mjs +15 -0
- package/dist/workspace/conformance/__writer_fixture__/drivers/driver.schema.json +38 -0
- package/dist/workspace/conformance/__writer_fixture__/sessions/session.kind.mjs +54 -0
- package/dist/workspace/conformance/__writer_fixture__/sessions/session.schema.json +289 -0
- package/dist/workspace/conformance/__writer_fixture__/work/W-001-the-writer-suite-works-this-item.md +25 -0
- package/dist/workspace/conformance/__writer_fixture__/work/work.kind.mjs +60 -0
- package/dist/workspace/conformance/__writer_fixture__/work/work.schema.json +603 -0
- package/dist/workspace/conformance/broker.js +736 -0
- package/dist/workspace/conformance/index.js +673 -0
- package/dist/workspace/conformance/vitest.js +108 -0
- package/dist/workspace/conformance/writer.js +1080 -0
- package/dist/workspace/decide.js +879 -0
- package/dist/workspace/decision-points.schema.json +135 -135
- package/dist/workspace/declaration-write-cli.js +74 -0
- package/dist/workspace/declaration-write.js +238 -0
- package/dist/workspace/declaration.js +938 -0
- package/dist/workspace/declaration.schema.json +1413 -1413
- package/dist/workspace/declared-kinds.js +106 -0
- package/dist/workspace/environments.js +164 -0
- package/dist/workspace/evidence.schema.json +279 -0
- package/dist/workspace/export-cli.js +185 -0
- package/dist/workspace/export.js +499 -0
- package/dist/workspace/factory-rules.js +175 -0
- package/dist/workspace/generated-files.js +92 -0
- package/dist/workspace/glob.js +45 -0
- package/dist/workspace/graph-cache.js +352 -0
- package/dist/workspace/graph-cli.js +348 -0
- package/dist/workspace/graph.schema.json +1338 -0
- package/dist/workspace/identity-gate-rule.d.ts +65 -0
- package/dist/workspace/identity-gate-rule.d.ts.map +1 -0
- package/dist/workspace/identity-gate-rule.js +75 -0
- package/dist/workspace/identity.d.ts +4 -2
- package/dist/workspace/identity.d.ts.map +1 -1
- package/dist/workspace/identity.js +126 -0
- package/dist/workspace/import.js +283 -0
- package/dist/workspace/init.js +620 -0
- package/dist/workspace/intent-cli.js +263 -0
- package/dist/workspace/intent-joins.js +201 -0
- package/dist/workspace/intent-record.js +352 -0
- package/dist/workspace/intent-record.schema.json +864 -0
- package/dist/workspace/intent.js +1582 -0
- package/dist/workspace/intent.schema.json +2420 -0
- package/dist/workspace/json-edit.js +221 -0
- package/dist/workspace/jsonc.js +235 -0
- package/dist/workspace/kind-readers.js +103 -0
- package/dist/workspace/kinds.js +587 -0
- package/dist/workspace/lexicon-symbols.js +112 -0
- package/dist/workspace/lineage-adopt-cli.js +102 -0
- package/dist/workspace/lineage-adopt.js +360 -0
- package/dist/workspace/lineage-check.js +282 -0
- package/dist/workspace/lineage-cli.js +121 -0
- package/dist/workspace/lineage-hash-index.js +284 -0
- package/dist/workspace/lineage-init.js +507 -0
- package/dist/workspace/lineage-lock.js +387 -0
- package/dist/workspace/lineage-merge.js +45 -0
- package/dist/workspace/lineage-migrations.d.ts.map +1 -1
- package/dist/workspace/lineage-migrations.js +329 -0
- package/dist/workspace/lineage-provenance.js +36 -0
- package/dist/workspace/lineage-update.js +138 -0
- package/dist/workspace/lineage-upgrade-cli.js +131 -0
- package/dist/workspace/lineage-upgrade.js +889 -0
- package/dist/workspace/lineage-vendor.js +171 -0
- package/dist/workspace/lineage-version.js +128 -0
- package/dist/workspace/lineage-versions.js +275 -0
- package/dist/workspace/links.js +330 -0
- package/dist/workspace/ls-generated.js +95 -0
- package/dist/workspace/ls.js +277 -0
- package/dist/workspace/ls.schema.json +333 -0
- package/dist/workspace/member-commands.js +508 -0
- package/dist/workspace/member-handles.js +216 -0
- package/dist/workspace/member-pipeline.js +258 -0
- package/dist/workspace/member-run.js +117 -0
- package/dist/workspace/member-write.schema.json +193 -0
- package/dist/workspace/nested-graph.js +156 -0
- package/dist/workspace/nesting.js +38 -0
- package/dist/workspace/patch.js +301 -0
- package/dist/workspace/patch.schema.json +321 -0
- package/dist/workspace/pin-cli.js +55 -0
- package/dist/workspace/pin-integrity.js +100 -0
- package/dist/workspace/plan-summary.schema.json +155 -0
- package/dist/workspace/point-answer.schema.json +129 -129
- package/dist/workspace/points-cli.js +291 -0
- package/dist/workspace/points-write.schema.json +660 -0
- package/dist/workspace/points.js +521 -0
- package/dist/workspace/points.schema.json +916 -0
- package/dist/workspace/pr-report.schema.json +108 -0
- package/dist/workspace/principal-classes.d.ts +3 -14
- package/dist/workspace/principal-classes.d.ts.map +1 -1
- package/dist/workspace/principal-classes.js +245 -0
- package/dist/workspace/reason-codes.js +326 -0
- package/dist/workspace/record-assets.js +151 -0
- package/dist/workspace/record-decided.js +105 -0
- package/dist/workspace/record-sessions.js +96 -0
- package/dist/workspace/record-source.js +114 -0
- package/dist/workspace/records-amend.schema.json +284 -0
- package/dist/workspace/records-checkout.js +76 -0
- package/dist/workspace/records-cli.js +707 -0
- package/dist/workspace/records-close.js +116 -0
- package/dist/workspace/records-close.schema.json +278 -0
- package/dist/workspace/records-new.schema.json +202 -0
- package/dist/workspace/records-review.schema.json +367 -0
- package/dist/workspace/records-since.js +317 -0
- package/dist/workspace/records-since.schema.json +218 -0
- package/dist/workspace/records-write.js +1229 -0
- package/dist/workspace/records.js +1345 -0
- package/dist/workspace/records.schema.json +604 -0
- package/dist/workspace/reference-kinds/app/package.json +10 -0
- package/dist/workspace/reference-kinds/app/workspace-kinds.json +45 -0
- package/dist/workspace/returns.js +303 -0
- package/dist/workspace/root-refusal.js +75 -0
- package/dist/workspace/run-statement.schema.json +622 -0
- package/dist/workspace/runs-cli.js +584 -0
- package/dist/workspace/runs-write.schema.json +994 -0
- package/dist/workspace/runs.js +708 -0
- package/dist/workspace/runs.schema.json +1257 -0
- package/dist/workspace/runtimes.js +76 -0
- package/dist/workspace/session-kinds.js +83 -0
- package/dist/workspace/signers.schema.json +206 -0
- package/dist/workspace/source-block.js +125 -0
- package/dist/workspace/squash.js +177 -0
- package/dist/workspace/status-gates.js +162 -0
- package/dist/workspace/status-stewards.js +330 -0
- package/dist/workspace/status.js +514 -0
- package/dist/workspace/status.schema.json +998 -0
- package/dist/workspace/steward-index.js +191 -0
- package/dist/workspace/symbols.js +188 -0
- package/dist/workspace/template-manifest.js +227 -0
- package/dist/workspace/template-pins.js +115 -0
- package/dist/workspace/trailer-joins.js +65 -0
- package/dist/workspace/trailers.js +111 -0
- package/dist/workspace/tree.js +136 -0
- package/dist/workspace/trust/attestor.js +63 -0
- package/dist/workspace/trust/dsse.js +108 -0
- package/dist/workspace/trust/evidence-cli.js +175 -0
- package/dist/workspace/trust/evidence.js +161 -0
- package/dist/workspace/trust/gate-seal.js +226 -0
- package/dist/workspace/trust/policy.js +190 -0
- package/dist/workspace/trust/provenance.js +180 -0
- package/dist/workspace/trust/rotation.js +298 -0
- package/dist/workspace/trust/run-commits.js +101 -0
- package/dist/workspace/trust/run-statement.js +182 -0
- package/dist/workspace/trust/seal.js +272 -0
- package/dist/workspace/trust/signers-cli.js +152 -0
- package/dist/workspace/trust/ssh-commit.js +178 -0
- package/dist/workspace/trust/test-repo.js +118 -0
- package/dist/workspace/trust/trust-files.js +193 -0
- package/dist/workspace/trust/verify-cli.js +63 -0
- package/dist/workspace/trust/verify.js +192 -0
- package/dist/workspace/which-chant.js +141 -0
- package/dist/workspace/wip-cli.js +95 -0
- package/dist/workspace/wip-write.schema.json +504 -0
- package/dist/workspace/wip.js +631 -0
- package/dist/workspace/wip.schema.json +334 -0
- package/dist/workspace/work-cli.js +448 -0
- package/dist/workspace/work-evidence.js +122 -0
- package/dist/workspace/work-evidence.schema.json +222 -0
- package/dist/workspace/work-history.schema.json +421 -0
- package/dist/workspace/work-lease.schema.json +246 -0
- package/dist/workspace/work-size.js +77 -0
- package/dist/workspace/work.js +283 -0
- package/dist/workspace/workspace-kinds.schema.json +259 -259
- package/dist/workspace/workspace-principals.schema.json +53 -53
- package/dist/workspace/write-lock-cli.js +105 -0
- package/dist/workspace/write-lock.js +424 -0
- package/dist/workspace/write-lock.schema.json +172 -0
- package/dist/workspace/write-scope.js +484 -0
- package/dist/yaml.js +459 -0
- package/package.json +2 -2
- package/src/cli/commands/check-lexicon-plugin.ts +2 -0
- package/src/cli/commands/lint.ts +36 -6
- package/src/cli/commands/migrate.ts +2 -0
- package/src/cli/compiled-cli.e2e.test.ts +165 -0
- package/src/cli/main.ts +121 -27
- package/src/cli/mcp/workspace-tools.ts +1 -1
- package/src/codegen/pinned-upgrade.ts +2 -0
- package/src/components/discover.ts +2 -0
- package/src/components/sandbox/driver.ts +3 -1
- package/src/config-import.ts +3 -0
- package/src/discovery/fold-import.ts +23 -14
- package/src/discovery/import.ts +2 -0
- package/src/discovery/sandbox/driver.ts +3 -1
- package/src/gate-decision-bundle.test.ts +3 -2
- package/src/gate-decision-identity.test.ts +176 -0
- package/src/gate-decision.ts +100 -22
- package/src/lexicon-module.ts +3 -0
- package/src/lifecycle/gate-ledger.ts +8 -0
- package/src/lint/config.ts +1 -1
- package/src/lint/discover.ts +28 -8
- package/src/lint/policy-import.ts +4 -1
- package/src/lint/rule-loader.ts +2 -0
- package/src/op/discover.ts +3 -0
- package/src/op/op-waves-point.test.ts +1 -0
- package/src/op/op-waves-run.ts +5 -4
- package/src/op/op-waves.test.ts +14 -0
- package/src/ts-loader.test.ts +23 -0
- package/src/ts-loader.ts +122 -0
- package/src/workspace/chant-migrations/chud-lexicon-exit.ts +1 -1
- package/src/workspace/declaration.ts +1 -1
- package/src/workspace/identity-gate-rule.ts +109 -0
- package/src/workspace/identity.ts +8 -18
- package/src/workspace/kinds.ts +1 -1
- package/src/workspace/lineage-migrations.ts +2 -0
- package/src/workspace/points.ts +1 -1
- package/src/workspace/principal-classes.ts +5 -30
|
@@ -1,1504 +1,1504 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://intentius.io/chant/schemas/workspace/declaration/v1/chant.workspace.schema.json",
|
|
4
|
+
"title": "chant.workspace.json",
|
|
5
|
+
"description": "A workspace declaration, schema 1 (#2524 D1, D2; ws-051). Only this file makes a directory a workspace. It may also be named chant.workspace.jsonc, which allows comments and trailing commas; having both is an error. Unknown fields are refused, except fields whose names start with x-. A field added later within schema 1 is optional, and a declaration that uses one sets minReader to the first chant that knows it, so an older chant says so instead of misreading the file. Uniqueness of names and the placement rules are checked in code, since JSON Schema cannot say them.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"schema",
|
|
10
|
+
"members"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"$schema": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "An editor hint. chant ignores it."
|
|
16
|
+
},
|
|
17
|
+
"$comment": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "A note for people. chant ignores it."
|
|
20
|
+
},
|
|
21
|
+
"name": {
|
|
22
|
+
"$ref": "#/$defs/name",
|
|
23
|
+
"description": "The workspace's name. With a git revision it identifies the workspace to readers (#2524 D15)."
|
|
24
|
+
},
|
|
25
|
+
"schema": {
|
|
26
|
+
"const": 1,
|
|
27
|
+
"description": "The declaration format version."
|
|
28
|
+
},
|
|
29
|
+
"minReader": {
|
|
30
|
+
"$ref": "#/$defs/version",
|
|
31
|
+
"description": "The oldest chant that may read this declaration. An older chant refuses it with reader-too-old."
|
|
32
|
+
},
|
|
33
|
+
"members": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"description": "Members and example groups, in the order readers list them.",
|
|
36
|
+
"items": {
|
|
37
|
+
"$ref": "#/$defs/entry"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"pins": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"description": "The toolchain and plugins that read this workspace, pinned (#2524 D3, threat model). Member kinds come only from pinned packages, read as data from their ./workspace-kinds subpath (#2535).",
|
|
43
|
+
"items": {
|
|
44
|
+
"$ref": "#/$defs/pin"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"quorum": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 0,
|
|
50
|
+
"description": "How many agree verdicts besides the decider's a record needs, for every record kind with a reviews list (#2671). chant workspace records reports each record's quorum against it. Two when absent. Added in schema 1 by chant 0.86.0, so a declaration that sets it sets minReader to 0.86.0 or newer. A per-kind quorum comes later (#2650 C14)."
|
|
51
|
+
},
|
|
52
|
+
"records": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"description": "The workspace's own record kinds, each a kind file relative to the workspace root (#2680): the kinds whose records belong to no one member, such as a decisions directory at the root. A member names its own in its records. chant workspace ls lists them, and chant workspace records and graph --intent read every declared kind when --kind is not given. Added in schema 1 by chant 0.86.0, so a declaration that uses it sets minReader to 0.86.0 or newer.",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/recordKind"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"hosts": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"description": "The hosts boxes run on (#2727). A host is one machine reached under one hostname: boxes on it share its ports, its state root and, in a browser, its cookie jar, so chant workspace check compares the boxes on one host and never boxes on different hosts. A member's box block names its host. Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
62
|
+
"items": {
|
|
63
|
+
"$ref": "#/$defs/host"
|
|
64
|
+
}
|
|
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
|
+
},
|
|
73
|
+
"checks": {
|
|
74
|
+
"type": "object",
|
|
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.",
|
|
76
|
+
"propertyNames": {
|
|
77
|
+
"pattern": "^WSP[0-9]{3}$"
|
|
78
|
+
},
|
|
79
|
+
"additionalProperties": {
|
|
80
|
+
"$ref": "#/$defs/severity"
|
|
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."
|
|
16
95
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"writeScope": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"propertyNames": {
|
|
108
|
+
"$ref": "#/$defs/className"
|
|
109
|
+
},
|
|
110
|
+
"additionalProperties": {
|
|
111
|
+
"$ref": "#/$defs/classScope",
|
|
112
|
+
"description": "A domain class a pinned package supplies at its ./workspace-principals subpath (#3080, ws-079): principals holding the role the class names in the trust policy at base, and none of the agent, runner and service roles. A key no pinned package supplies fails chant workspace check with WSP003, and a writer judged human is refused with write-scope-class-unknown, since it may be in that class. Added in schema 1 by chant 0.102.0, so a declaration that uses one sets minReader to 0.102.0 or newer."
|
|
113
|
+
},
|
|
114
|
+
"description": "Who may write what (#2524 D5, #2548, ws-067): for each principal class, the members whose files it may write and the record kinds it may write, with which verbs. A class is human, agent, runner or service, or a domain class a pinned package supplies (#3080). A class with no entry is not restricted. An agent is always bound to its session's member (agents); its entry can only narrow the record kinds and verbs. chant workspace records new, amend, review and close and the MCP record tools refuse a write outside the writer's scope with write-scope-member or write-scope-kind, and chant workspace check --changes reports each commit that writes outside its author's scope, read from the declaration and the trust policy at the range's base, and a write to a path the class's protected list covers with write-scope-protected (#3146). Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer.",
|
|
115
|
+
"properties": {
|
|
116
|
+
"human": {
|
|
117
|
+
"$ref": "#/$defs/classScope",
|
|
118
|
+
"description": "Principals holding none of the agent, runner and service roles, and none of the roles a domain class names, in the trust policy at base."
|
|
20
119
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
120
|
+
"agent": {
|
|
121
|
+
"$ref": "#/$defs/agentScope",
|
|
122
|
+
"description": "An agent session (agents), or a principal holding the agent role in the trust policy at base."
|
|
24
123
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
124
|
+
"runner": {
|
|
125
|
+
"$ref": "#/$defs/classScope",
|
|
126
|
+
"description": "Principals holding the runner role in the trust policy at base, such as a CI job's signing identity."
|
|
28
127
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
128
|
+
"service": {
|
|
129
|
+
"$ref": "#/$defs/classScope",
|
|
130
|
+
"description": "Principals holding the service role in the trust policy at base."
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"agents": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "The agent sessions the workspace declares (#2524 D20, #2548, ws-067, ws-101). Each is bound to the members it names, one with member or several with members: it writes the files of any of them and the records of kinds any of them or the workspace declares, as writeScope.agent allows. A session resumes from chant workspace agent <name> --json, which prints its member, its scope and the spec, read from the repository alone. A write names its session with the CHANT_AGENT environment variable, or a commit with a Chant-Agent trailer. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer.",
|
|
137
|
+
"items": {
|
|
138
|
+
"$ref": "#/$defs/agent"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"identity": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"description": "Who a person-attributed record or gate approval may name, and which gates need a signed approval (#3163, ws-080). Read from the declaration at base, like writeScope, so a change can't loosen its own rule. A person is named by a forge identity (github:<login>, gitlab:<login>, or <forge>@<host>:<login> for forgejo, gitea or a self-hosted github or gitlab) that the surface which signed them in maps their session to, or by a principal .chant/allowed_signers lists at base. chant never authenticates a person: a forge identity is recorded as the surface gives it, and only a seal verified against the signers at base attests it. Added in schema 1 by chant 0.102.0, so a declaration that uses it sets minReader to 0.102.0 or newer.",
|
|
145
|
+
"properties": {
|
|
146
|
+
"attribution": {
|
|
147
|
+
"enum": ["any", "identified"],
|
|
148
|
+
"description": "any (the default): a record's by, decided_by, reviewer or answerer and a gate approval's actor may be any name, such as a roster name. identified: each must be a forge identity, a principal the signers file at base lists, or a principal holding the agent, runner or service role at base or listed by a declared agent session; chant workspace records new and review, points answer and chant approve refuse any other name with principal-unidentified."
|
|
32
149
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
150
|
+
"gates": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"description": "Gates, by name, that pass only on a signed approval: chant approve --sign with a key the signers file at base lists for the approver. The rule applies to a gate of that name in every member, Op and component. An unsigned approval, or one whose signer is not in class, is recorded nowhere and never counts toward the gate.",
|
|
153
|
+
"propertyNames": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"minLength": 1
|
|
156
|
+
},
|
|
157
|
+
"additionalProperties": {
|
|
158
|
+
"type": "object",
|
|
159
|
+
"additionalProperties": false,
|
|
160
|
+
"properties": {
|
|
161
|
+
"class": {
|
|
162
|
+
"$ref": "#/$defs/className",
|
|
163
|
+
"description": "The principal class the signer must be in, read from the role grants at base (#3080, ws-079): human, runner, service, or a domain class a pinned package supplies. A class no pinned package supplies lets no approval through (fail closed). Absent: any signer the signers file lists."
|
|
164
|
+
}
|
|
38
165
|
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"ci": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"additionalProperties": false,
|
|
173
|
+
"patternProperties": {
|
|
174
|
+
"^x-": true
|
|
175
|
+
},
|
|
176
|
+
"description": "What the workspace's CI decides about its commits (#3573, ws-103). Added in schema 1 by chant 0.108.0, so a declaration that uses it sets minReader to 0.108.0 or newer.",
|
|
177
|
+
"properties": {
|
|
178
|
+
"green": {
|
|
179
|
+
"$ref": "#/$defs/ciGreen"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"patternProperties": {
|
|
185
|
+
"^x-": true
|
|
186
|
+
},
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"$defs": {
|
|
189
|
+
"name": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"pattern": "^[a-z0-9][a-z0-9-]{0,39}$",
|
|
192
|
+
"description": "Lowercase letters, digits and hyphens, starting with a letter or digit, at most 40 characters. _workspace and _members are reserved; the pattern already rules them out."
|
|
193
|
+
},
|
|
194
|
+
"kindName": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^[a-z][a-z0-9-]{0,39}$"
|
|
197
|
+
},
|
|
198
|
+
"className": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"pattern": "^(?!x-)[a-z][a-z0-9-]{0,39}$",
|
|
201
|
+
"description": "A principal class: human, agent, runner, service, or a domain class a pinned package supplies (#3080)."
|
|
202
|
+
},
|
|
203
|
+
"version": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
|
|
206
|
+
},
|
|
207
|
+
"dir": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "A directory relative to the workspace root, with / separators: \".\" for the root itself, otherwise no leading /, no . or .. segments and no trailing /.",
|
|
210
|
+
"pattern": "^(\\.|(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*)$"
|
|
211
|
+
},
|
|
212
|
+
"glob": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "A glob over directories, relative to the workspace root: * and ? within one segment, ** across segments, [...] classes. No leading /, no . or .. segments.",
|
|
215
|
+
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
216
|
+
},
|
|
217
|
+
"severity": {
|
|
218
|
+
"enum": [
|
|
219
|
+
"error",
|
|
220
|
+
"warning",
|
|
221
|
+
"info",
|
|
222
|
+
"off"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"suppress": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"description": "Declaration checks suppressed for this entry (#2535). Each names a WSP id and says why. A suppressed finding is still reported, as suppressed, and never fails check.",
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"required": [
|
|
231
|
+
"check",
|
|
232
|
+
"because"
|
|
233
|
+
],
|
|
234
|
+
"properties": {
|
|
235
|
+
"check": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"pattern": "^WSP[0-9]{3}$"
|
|
238
|
+
},
|
|
239
|
+
"because": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"minLength": 1
|
|
242
|
+
}
|
|
39
243
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
"description": "The toolchain and plugins that read this workspace, pinned (#2524 D3, threat model). Member kinds come only from pinned packages, read as data from their ./workspace-kinds subpath (#2535).",
|
|
43
|
-
"items": {
|
|
44
|
-
"$ref": "#/$defs/pin"
|
|
45
|
-
}
|
|
244
|
+
"patternProperties": {
|
|
245
|
+
"^x-": true
|
|
46
246
|
},
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
247
|
+
"additionalProperties": false
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"outputName": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"minLength": 1,
|
|
253
|
+
"maxLength": 255,
|
|
254
|
+
"pattern": "^[^\\u0000-\\u001f]+$",
|
|
255
|
+
"description": "An output's name, compared exactly."
|
|
256
|
+
},
|
|
257
|
+
"link": {
|
|
258
|
+
"type": "object",
|
|
259
|
+
"description": "A member link: this member reads output of member (#2539), or sends its telemetry to a pipeline of its collector (#2558).",
|
|
260
|
+
"required": [
|
|
261
|
+
"member",
|
|
262
|
+
"output"
|
|
263
|
+
],
|
|
264
|
+
"properties": {
|
|
265
|
+
"member": {
|
|
266
|
+
"$ref": "#/$defs/name",
|
|
267
|
+
"description": "The producer: another member of this workspace."
|
|
51
268
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"items": {
|
|
56
|
-
"$ref": "#/$defs/recordKind"
|
|
57
|
-
}
|
|
269
|
+
"output": {
|
|
270
|
+
"$ref": "#/$defs/outputName",
|
|
271
|
+
"description": "The producer's output, matched exactly. It must be one the producer's kind exposes. For a telemetry link, the id of a pipeline or an exporter in the producer's collector."
|
|
58
272
|
},
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"items": {
|
|
63
|
-
"$ref": "#/$defs/host"
|
|
64
|
-
}
|
|
273
|
+
"kind": {
|
|
274
|
+
"$ref": "#/$defs/kindName",
|
|
275
|
+
"description": "The link kind. output, the default: the consumer reads the named output. telemetry (#2558): the consumer sends its telemetry to the named pipeline or exporter of the producer's collector, and chant workspace graph checks that it exists and, when protocol is given, that it speaks it. A declaration that uses telemetry sets minReader to 0.101.0 or newer."
|
|
65
276
|
},
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
277
|
+
"protocol": {
|
|
278
|
+
"enum": [
|
|
279
|
+
"grpc",
|
|
280
|
+
"http/protobuf",
|
|
281
|
+
"http/json"
|
|
282
|
+
],
|
|
283
|
+
"description": "For a telemetry link, the OTLP protocol the consumer sends, as OTEL_EXPORTER_OTLP_PROTOCOL names it. Refused on any other kind. Added in schema 1 by chant 0.101.0."
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"patternProperties": {
|
|
287
|
+
"^x-": true
|
|
288
|
+
},
|
|
289
|
+
"additionalProperties": false
|
|
290
|
+
},
|
|
291
|
+
"entry": {
|
|
292
|
+
"description": "A member, or an example group when kind is examples (ws-051).",
|
|
293
|
+
"type": "object",
|
|
294
|
+
"required": [
|
|
295
|
+
"kind"
|
|
296
|
+
],
|
|
297
|
+
"properties": {
|
|
298
|
+
"kind": {
|
|
299
|
+
"$ref": "#/$defs/kindName"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"if": {
|
|
303
|
+
"type": "object",
|
|
304
|
+
"properties": {
|
|
305
|
+
"kind": {
|
|
306
|
+
"const": "examples"
|
|
307
|
+
}
|
|
72
308
|
},
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
309
|
+
"required": [
|
|
310
|
+
"kind"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
"then": {
|
|
314
|
+
"$ref": "#/$defs/group"
|
|
315
|
+
},
|
|
316
|
+
"else": {
|
|
317
|
+
"$ref": "#/$defs/member"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"member": {
|
|
321
|
+
"type": "object",
|
|
322
|
+
"description": "A member (#2524 D2). Its directory leaves the root project, and it gets its own build, lint and ledger.",
|
|
323
|
+
"required": [
|
|
324
|
+
"name",
|
|
325
|
+
"dir",
|
|
326
|
+
"kind"
|
|
327
|
+
],
|
|
328
|
+
"properties": {
|
|
329
|
+
"name": {
|
|
330
|
+
"$ref": "#/$defs/name",
|
|
331
|
+
"description": "Frozen once the member deploys; a rename is an alias record."
|
|
82
332
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
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
|
-
}
|
|
333
|
+
"dir": {
|
|
334
|
+
"$ref": "#/$defs/dir"
|
|
104
335
|
},
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
336
|
+
"kind": {
|
|
337
|
+
"$ref": "#/$defs/kindName",
|
|
338
|
+
"description": "How to read the member: chant, workspace, other, or a kind a pinned plugin supplies (#2535)."
|
|
339
|
+
},
|
|
340
|
+
"roles": {
|
|
341
|
+
"type": "array",
|
|
342
|
+
"description": "Roles the member plays. A role may point at a path inside the member.",
|
|
343
|
+
"items": {
|
|
344
|
+
"oneOf": [
|
|
345
|
+
{
|
|
346
|
+
"$ref": "#/$defs/kindName"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"type": "object",
|
|
350
|
+
"required": [
|
|
351
|
+
"name"
|
|
352
|
+
],
|
|
353
|
+
"properties": {
|
|
354
|
+
"name": {
|
|
355
|
+
"$ref": "#/$defs/kindName"
|
|
356
|
+
},
|
|
357
|
+
"path": {
|
|
358
|
+
"$ref": "#/$defs/dir",
|
|
359
|
+
"description": "Relative to the member's directory."
|
|
360
|
+
}
|
|
123
361
|
},
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
"description": "Principals holding the runner role in the trust policy at base, such as a CI job's signing identity."
|
|
362
|
+
"patternProperties": {
|
|
363
|
+
"^x-": true
|
|
127
364
|
},
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}
|
|
365
|
+
"additionalProperties": false
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
}
|
|
133
369
|
},
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
370
|
+
"generated": {
|
|
371
|
+
"type": "array",
|
|
372
|
+
"description": "Files in the member's directory that a command writes (#2524 D14, #2541). chant workspace check fails when one differs from what its generator writes, unless the entry is marked handWritten with a reason. The lineage lock classes the same files as generated. skills/*/SKILL.md, which chant update writes, is listed implicitly for a chant member.",
|
|
373
|
+
"items": {
|
|
374
|
+
"$ref": "#/$defs/generatedFile"
|
|
375
|
+
}
|
|
140
376
|
},
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"description": "any (the default): a record's by, decided_by, reviewer or answerer and a gate approval's actor may be any name, such as a roster name. identified: each must be a forge identity, a principal the signers file at base lists, or a principal holding the agent, runner or service role at base or listed by a declared agent session; chant workspace records new and review, points answer and chant approve refuse any other name with principal-unidentified."
|
|
149
|
-
},
|
|
150
|
-
"gates": {
|
|
151
|
-
"type": "object",
|
|
152
|
-
"description": "Gates, by name, that pass only on a signed approval: chant approve --sign with a key the signers file at base lists for the approver. The rule applies to a gate of that name in every member, Op and component. An unsigned approval, or one whose signer is not in class, is recorded nowhere and never counts toward the gate.",
|
|
153
|
-
"propertyNames": {
|
|
154
|
-
"type": "string",
|
|
155
|
-
"minLength": 1
|
|
156
|
-
},
|
|
157
|
-
"additionalProperties": {
|
|
158
|
-
"type": "object",
|
|
159
|
-
"additionalProperties": false,
|
|
160
|
-
"properties": {
|
|
161
|
-
"class": {
|
|
162
|
-
"$ref": "#/$defs/className",
|
|
163
|
-
"description": "The principal class the signer must be in, read from the role grants at base (#3080, ws-079): human, runner, service, or a domain class a pinned package supplies. A class no pinned package supplies lets no approval through (fail closed). Absent: any signer the signers file lists."
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
377
|
+
"outputs": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"uniqueItems": true,
|
|
380
|
+
"description": "The outputs this member exposes as link targets (#2539), for a member whose kind takes them from the entry: other, or a kind a pinned package supplies. A chant member's outputs are read from its source, and a nested workspace exposes none.",
|
|
381
|
+
"items": {
|
|
382
|
+
"$ref": "#/$defs/outputName"
|
|
383
|
+
}
|
|
169
384
|
},
|
|
170
|
-
"
|
|
385
|
+
"fields": {
|
|
386
|
+
"$ref": "#/$defs/memberFields"
|
|
387
|
+
},
|
|
388
|
+
"links": {
|
|
389
|
+
"type": "array",
|
|
390
|
+
"description": "Member links (#2524 D6, #2539): the outputs of other members this member reads. A link is stated once, here on the consumer, and matched exactly against the producer's outputs. chant workspace check resolves it in source.",
|
|
391
|
+
"items": {
|
|
392
|
+
"$ref": "#/$defs/link"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
"records": {
|
|
396
|
+
"type": "array",
|
|
397
|
+
"description": "The record kinds this member holds, each a kind file relative to the member's directory (#2680). chant workspace ls lists them, and chant workspace records and graph --intent read every declared kind when --kind is not given. Added in schema 1 by chant 0.86.0, so a declaration that uses it sets minReader to 0.86.0 or newer.",
|
|
398
|
+
"items": {
|
|
399
|
+
"$ref": "#/$defs/recordKind"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"diagrams": {
|
|
403
|
+
"type": "array",
|
|
404
|
+
"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.",
|
|
405
|
+
"items": {
|
|
406
|
+
"$ref": "#/$defs/diagram"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"box": {
|
|
410
|
+
"$ref": "#/$defs/box"
|
|
411
|
+
},
|
|
412
|
+
"upstream": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"minLength": 1,
|
|
415
|
+
"description": "Where an embedded member's files come from. Versions live in the lock."
|
|
416
|
+
},
|
|
417
|
+
"travel": {
|
|
418
|
+
"type": "boolean",
|
|
419
|
+
"description": "Whether the member goes with an export (#2524 D10, #2552). chant workspace export writes only members that set travel to true into the export member, and refuses to name one that does not. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer."
|
|
420
|
+
},
|
|
421
|
+
"because": {
|
|
422
|
+
"type": "string",
|
|
423
|
+
"minLength": 1,
|
|
424
|
+
"description": "Why the member is there. Required for kind other."
|
|
425
|
+
},
|
|
426
|
+
"suppress": {
|
|
427
|
+
"$ref": "#/$defs/suppress"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"patternProperties": {
|
|
431
|
+
"^x-": true
|
|
432
|
+
},
|
|
433
|
+
"additionalProperties": false,
|
|
434
|
+
"if": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"kind": {
|
|
438
|
+
"const": "other"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
"required": [
|
|
442
|
+
"kind"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
445
|
+
"then": {
|
|
446
|
+
"type": "object",
|
|
447
|
+
"properties": {
|
|
448
|
+
"because": {
|
|
449
|
+
"type": "string"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"required": [
|
|
453
|
+
"because"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"memberFields": {
|
|
458
|
+
"type": "object",
|
|
459
|
+
"description": "Values for the fields the member's kind declares (#3151), such as an app member's scripts, env and health. Each is a string, integer or boolean, or an object of those for a field the kind declares as an object. chant workspace check fails when the kind declares no such field or a value is of the wrong type (WSP005), and chant workspace status --json prints every field the kind declares with its defaults filled in. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer.",
|
|
460
|
+
"propertyNames": { "pattern": "^[a-z][A-Za-z0-9]{0,39}$" },
|
|
461
|
+
"additionalProperties": {
|
|
462
|
+
"oneOf": [
|
|
463
|
+
{ "type": "string" },
|
|
464
|
+
{ "type": "integer" },
|
|
465
|
+
{ "type": "boolean" },
|
|
466
|
+
{
|
|
171
467
|
"type": "object",
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
|
|
468
|
+
"propertyNames": { "pattern": "^[a-z][A-Za-z0-9]{0,39}$" },
|
|
469
|
+
"additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "integer" }, { "type": "boolean" }] }
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
"group": {
|
|
475
|
+
"type": "object",
|
|
476
|
+
"description": "An example group (ws-051): every directory the glob matches that holds a chant project is built and linted. A group has no ledger, releases or links, and its matches are never members. A match may sit inside a member's directory; that member leaves it to the group.",
|
|
477
|
+
"required": [
|
|
478
|
+
"name",
|
|
479
|
+
"kind",
|
|
480
|
+
"glob"
|
|
481
|
+
],
|
|
482
|
+
"properties": {
|
|
483
|
+
"name": {
|
|
484
|
+
"$ref": "#/$defs/name"
|
|
485
|
+
},
|
|
486
|
+
"kind": {
|
|
487
|
+
"const": "examples"
|
|
488
|
+
},
|
|
489
|
+
"glob": {
|
|
490
|
+
"oneOf": [
|
|
491
|
+
{
|
|
492
|
+
"$ref": "#/$defs/glob"
|
|
175
493
|
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
494
|
+
{
|
|
495
|
+
"type": "array",
|
|
496
|
+
"minItems": 1,
|
|
497
|
+
"uniqueItems": true,
|
|
498
|
+
"items": {
|
|
499
|
+
"$ref": "#/$defs/glob"
|
|
500
|
+
}
|
|
181
501
|
}
|
|
502
|
+
]
|
|
503
|
+
},
|
|
504
|
+
"suppress": {
|
|
505
|
+
"$ref": "#/$defs/suppress"
|
|
182
506
|
}
|
|
183
|
-
|
|
184
|
-
|
|
507
|
+
},
|
|
508
|
+
"patternProperties": {
|
|
185
509
|
"^x-": true
|
|
510
|
+
},
|
|
511
|
+
"additionalProperties": false
|
|
186
512
|
},
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
513
|
+
"path": {
|
|
514
|
+
"type": "string",
|
|
515
|
+
"description": "A file or directory path with / separators: no leading /, no . or .. segments and no trailing /.",
|
|
516
|
+
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
517
|
+
},
|
|
518
|
+
"box": {
|
|
519
|
+
"type": "object",
|
|
520
|
+
"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). Its services list what the box runs under its supervisor (#2880), which the fly lexicon observes, restarts and applies through sprite-env, and which chant workspace status --json prints. Its factory declares what the box builds, how a build is checked, which member declares the builder agents and where a finished build is published (#3146, ws-077), its listing what the box shows of itself (#3146), and its replicate where the box's work in progress is pushed so a lost box loses none of it (#3172, ws-085). Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
521
|
+
"properties": {
|
|
522
|
+
"intent": {
|
|
523
|
+
"type": "string",
|
|
524
|
+
"minLength": 1,
|
|
525
|
+
"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."
|
|
193
526
|
},
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
527
|
+
"services": {
|
|
528
|
+
"type": "array",
|
|
529
|
+
"description": "The services the box runs under its supervisor, sprite-env on a sprite (#2880). Each name is given once, every needs entry names a service of this list, the needs form no cycle, and at most one service sets httpPort; a declaration that breaks one of these can't be read (declaration-invalid). The fly lexicon's spriteServicesObserve and spriteServiceRestart read the list with box: true, and spriteApplyServices with box: true creates and replaces the services through sprite-env. None when omitted. Added by chant 0.95.0, so a declaration that uses it sets minReader to 0.95.0 or newer.",
|
|
530
|
+
"items": {
|
|
531
|
+
"$ref": "#/$defs/boxService"
|
|
532
|
+
}
|
|
197
533
|
},
|
|
198
|
-
"
|
|
199
|
-
|
|
200
|
-
"pattern": "^(?!x-)[a-z][a-z0-9-]{0,39}$",
|
|
201
|
-
"description": "A principal class: human, agent, runner, service, or a domain class a pinned package supplies (#3080)."
|
|
534
|
+
"factory": {
|
|
535
|
+
"$ref": "#/$defs/boxFactory"
|
|
202
536
|
},
|
|
203
|
-
"
|
|
204
|
-
|
|
205
|
-
"pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$"
|
|
537
|
+
"listing": {
|
|
538
|
+
"$ref": "#/$defs/boxListing"
|
|
206
539
|
},
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
540
|
+
"publisher": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"minLength": 1,
|
|
543
|
+
"pattern": "\\S",
|
|
544
|
+
"description": "The command that publishes the box's work (#3165, ws-088): it applies a built work item to the box's checkout and, when factory.publish names a target, pushes it and opens the pull request, and it sends the records a person kept uncommitted. It is run from the workspace root by chant workspace box publish, split into words as a shell splits plain words (quotes group, a backslash escapes) but never given to a shell, with a JSON request on stdin; box-publish.schema.json says what it reads and prints. An orchestrator such as studio supplies it. chant workspace status --json prints it under the member's box, so a surface offers a publish only when a box names one. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer."
|
|
211
545
|
},
|
|
212
|
-
"
|
|
213
|
-
|
|
214
|
-
"description": "A glob over directories, relative to the workspace root: * and ? within one segment, ** across segments, [...] classes. No leading /, no . or .. segments.",
|
|
215
|
-
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
546
|
+
"replicate": {
|
|
547
|
+
"$ref": "#/$defs/boxReplicate"
|
|
216
548
|
},
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
"error",
|
|
220
|
-
"warning",
|
|
221
|
-
"info",
|
|
222
|
-
"off"
|
|
223
|
-
]
|
|
549
|
+
"ship": {
|
|
550
|
+
"$ref": "#/$defs/boxShip"
|
|
224
551
|
},
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
552
|
+
"capabilities": {
|
|
553
|
+
"type": "array",
|
|
554
|
+
"description": "Each capability the box reaches outside itself, named once. None when omitted.",
|
|
555
|
+
"items": {
|
|
556
|
+
"$ref": "#/$defs/capability"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"host": {
|
|
560
|
+
"$ref": "#/$defs/name",
|
|
561
|
+
"description": "The host the box runs on, one of the top-level hosts (#2727). The box's name is the member's name."
|
|
562
|
+
},
|
|
563
|
+
"slot": {
|
|
564
|
+
"type": "integer",
|
|
565
|
+
"minimum": 0,
|
|
566
|
+
"description": "The box's number on its host (#2727). Its ports come from the slot's block of the host's range."
|
|
567
|
+
},
|
|
568
|
+
"ports": {
|
|
569
|
+
"type": "object",
|
|
570
|
+
"description": "The ports the box listens on, each a name and its offset in the box's block (#2727). The port is the block's first port plus the offset.",
|
|
571
|
+
"propertyNames": {
|
|
572
|
+
"$ref": "#/$defs/kindName"
|
|
573
|
+
},
|
|
574
|
+
"additionalProperties": {
|
|
575
|
+
"type": "integer",
|
|
576
|
+
"minimum": 0,
|
|
577
|
+
"maximum": 65534
|
|
578
|
+
}
|
|
249
579
|
},
|
|
250
|
-
"
|
|
580
|
+
"state": {
|
|
581
|
+
"type": "object",
|
|
582
|
+
"description": "State the box keeps outside its checkout, such as hud's identity and database, each a name and a path relative to the box's state directory (#2727). The name is usually the environment variable the runtime sets, such as HUD_IDENTITY_PATH. A path that is absolute, starts with ~ or an environment reference, or has a .. segment is a WSP124 finding.",
|
|
583
|
+
"propertyNames": {
|
|
251
584
|
"type": "string",
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
"
|
|
585
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
|
|
586
|
+
},
|
|
587
|
+
"additionalProperties": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"minLength": 1
|
|
590
|
+
}
|
|
256
591
|
},
|
|
257
|
-
"
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
],
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
592
|
+
"cookies": {
|
|
593
|
+
"type": "array",
|
|
594
|
+
"description": "Session cookie names the box's runtimes set, such as hud_session (#2727). A browser scopes a cookie to a host, not a port, so each resolves to <cookie>_<member name>.",
|
|
595
|
+
"uniqueItems": true,
|
|
596
|
+
"items": {
|
|
597
|
+
"type": "string",
|
|
598
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"dependentRequired": {
|
|
603
|
+
"host": [
|
|
604
|
+
"slot"
|
|
605
|
+
],
|
|
606
|
+
"slot": [
|
|
607
|
+
"host"
|
|
608
|
+
],
|
|
609
|
+
"ports": [
|
|
610
|
+
"host"
|
|
611
|
+
],
|
|
612
|
+
"state": [
|
|
613
|
+
"host"
|
|
614
|
+
],
|
|
615
|
+
"cookies": [
|
|
616
|
+
"host"
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
"patternProperties": {
|
|
620
|
+
"^x-": true
|
|
621
|
+
},
|
|
622
|
+
"additionalProperties": false
|
|
623
|
+
},
|
|
624
|
+
"boxFactory": {
|
|
625
|
+
"type": "object",
|
|
626
|
+
"description": "What the box builds and how (#3146, ws-077), replacing studio's x-factory. Opt-in: a box block without it declares no factory, and nothing here is required of a workspace that doesn't build with agents (#3174). At most one box block in a declaration declares a factory. builds and builders name declared members, or the declaration can't be read (declaration-invalid). chant workspace status --json and chant workspace graph --json print it under the member's box. The factory need not build an app: builds may name any member kind, such as chant or terraform, and the check may be a plan, a lint or a conformance run. Added in schema 1 by chant 0.102.0, so a declaration that uses it sets minReader to 0.102.0 or newer.",
|
|
627
|
+
"required": [
|
|
628
|
+
"builds"
|
|
629
|
+
],
|
|
630
|
+
"properties": {
|
|
631
|
+
"builds": {
|
|
632
|
+
"type": "array",
|
|
633
|
+
"minItems": 1,
|
|
634
|
+
"uniqueItems": true,
|
|
635
|
+
"description": "The members the factory builds, each a declared member of any kind. A work item a person asks for here constrains member:<the first>.",
|
|
636
|
+
"items": {
|
|
637
|
+
"$ref": "#/$defs/name"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"check": {
|
|
641
|
+
"description": "The command whose exit code is a build's verdict, run from the workspace root after the work item's own checks: a command, or { run, kind } saying what it is. kind is test when omitted.",
|
|
642
|
+
"oneOf": [
|
|
643
|
+
{
|
|
644
|
+
"type": "string",
|
|
645
|
+
"minLength": 1
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"type": "object",
|
|
649
|
+
"required": [
|
|
650
|
+
"run"
|
|
651
|
+
],
|
|
652
|
+
"properties": {
|
|
653
|
+
"run": {
|
|
654
|
+
"type": "string",
|
|
655
|
+
"minLength": 1,
|
|
656
|
+
"description": "The command, run from the workspace root."
|
|
272
657
|
},
|
|
273
658
|
"kind": {
|
|
274
|
-
|
|
275
|
-
"
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
],
|
|
283
|
-
"description": "For a telemetry link, the OTLP protocol the consumer sends, as OTEL_EXPORTER_OTLP_PROTOCOL names it. Refused on any other kind. Added in schema 1 by chant 0.101.0."
|
|
659
|
+
"enum": [
|
|
660
|
+
"test",
|
|
661
|
+
"build",
|
|
662
|
+
"lint",
|
|
663
|
+
"plan",
|
|
664
|
+
"conformance"
|
|
665
|
+
],
|
|
666
|
+
"description": "What the command is: an app's tests, a build, a lint, a lifecycle plan or a conformance run. test when omitted."
|
|
284
667
|
}
|
|
285
|
-
|
|
286
|
-
|
|
668
|
+
},
|
|
669
|
+
"patternProperties": {
|
|
287
670
|
"^x-": true
|
|
288
|
-
|
|
289
|
-
|
|
671
|
+
},
|
|
672
|
+
"additionalProperties": false
|
|
673
|
+
}
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
"checks": {
|
|
677
|
+
"$ref": "#/$defs/path",
|
|
678
|
+
"description": "The directory, from the workspace root, where a work item's builder writes the check for its item. When omitted the orchestrator chooses, such as <the first member of builds>/checks."
|
|
290
679
|
},
|
|
291
|
-
"
|
|
292
|
-
|
|
680
|
+
"builders": {
|
|
681
|
+
"$ref": "#/$defs/name",
|
|
682
|
+
"description": "The member that declares the builder agents, such as the one whose agents/ holds them. tiers says which of them builds at which tier (#3152)."
|
|
683
|
+
},
|
|
684
|
+
"tiers": {
|
|
685
|
+
"type": "array",
|
|
686
|
+
"minItems": 1,
|
|
687
|
+
"description": "Which builder agent builds at which tier (#3152, ws-094), replacing studio's studio/role and studio/tier Agent metadata. Each entry names a tier, in the vocabulary of the work kind's work.tier.tiers (#3147), and an agent the builders member declares, by its name. An entry with kinds builds only members of those kinds, so an infra builder and an app builder can share a tier; an entry without kinds builds the tier for every other kind. A tier has at most one entry without kinds and at most one per kind, tiers needs builders, and a session names a declared agent session, or the declaration can't be read (declaration-invalid). chant workspace status --json prints builderFor, the agent for each built member and tier. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer.",
|
|
688
|
+
"items": {
|
|
293
689
|
"type": "object",
|
|
294
|
-
"required": [
|
|
295
|
-
"kind"
|
|
296
|
-
],
|
|
690
|
+
"required": ["tier", "agent"],
|
|
297
691
|
"properties": {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
"type": "
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
692
|
+
"tier": {
|
|
693
|
+
"$ref": "#/$defs/kindName",
|
|
694
|
+
"description": "The tier, such as small, medium or large: a word of the work kind's work.tier.tiers, which a work item's tier or the slice-tier decision point answers."
|
|
695
|
+
},
|
|
696
|
+
"agent": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"minLength": 1,
|
|
699
|
+
"pattern": "^[^\\u0000-\\u001f]+$",
|
|
700
|
+
"description": "The builder agent's name, as the builders member declares it (such as an Agent of the fountain lexicon in its agents/)."
|
|
701
|
+
},
|
|
702
|
+
"kinds": {
|
|
703
|
+
"type": "array",
|
|
704
|
+
"minItems": 1,
|
|
705
|
+
"uniqueItems": true,
|
|
706
|
+
"items": { "$ref": "#/$defs/kindName" },
|
|
707
|
+
"description": "The member kinds this agent builds at the tier, such as app or terraform. Without it, every kind no other entry of the tier names."
|
|
708
|
+
},
|
|
709
|
+
"session": {
|
|
710
|
+
"$ref": "#/$defs/name",
|
|
711
|
+
"description": "The declared agent session (agents) the builder writes as, so its write scope is that session's. Optional: without it the orchestrator chooses."
|
|
712
|
+
}
|
|
315
713
|
},
|
|
316
|
-
"
|
|
317
|
-
|
|
318
|
-
|
|
714
|
+
"patternProperties": { "^x-": true },
|
|
715
|
+
"additionalProperties": false
|
|
716
|
+
}
|
|
319
717
|
},
|
|
320
|
-
"
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
},
|
|
333
|
-
"dir": {
|
|
334
|
-
"$ref": "#/$defs/dir"
|
|
335
|
-
},
|
|
336
|
-
"kind": {
|
|
337
|
-
"$ref": "#/$defs/kindName",
|
|
338
|
-
"description": "How to read the member: chant, workspace, other, or a kind a pinned plugin supplies (#2535)."
|
|
339
|
-
},
|
|
340
|
-
"roles": {
|
|
341
|
-
"type": "array",
|
|
342
|
-
"description": "Roles the member plays. A role may point at a path inside the member.",
|
|
343
|
-
"items": {
|
|
344
|
-
"oneOf": [
|
|
345
|
-
{
|
|
346
|
-
"$ref": "#/$defs/kindName"
|
|
347
|
-
},
|
|
348
|
-
{
|
|
349
|
-
"type": "object",
|
|
350
|
-
"required": [
|
|
351
|
-
"name"
|
|
352
|
-
],
|
|
353
|
-
"properties": {
|
|
354
|
-
"name": {
|
|
355
|
-
"$ref": "#/$defs/kindName"
|
|
356
|
-
},
|
|
357
|
-
"path": {
|
|
358
|
-
"$ref": "#/$defs/dir",
|
|
359
|
-
"description": "Relative to the member's directory."
|
|
360
|
-
}
|
|
361
|
-
},
|
|
362
|
-
"patternProperties": {
|
|
363
|
-
"^x-": true
|
|
364
|
-
},
|
|
365
|
-
"additionalProperties": false
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
"generated": {
|
|
371
|
-
"type": "array",
|
|
372
|
-
"description": "Files in the member's directory that a command writes (#2524 D14, #2541). chant workspace check fails when one differs from what its generator writes, unless the entry is marked handWritten with a reason. The lineage lock classes the same files as generated. skills/*/SKILL.md, which chant update writes, is listed implicitly for a chant member.",
|
|
373
|
-
"items": {
|
|
374
|
-
"$ref": "#/$defs/generatedFile"
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
"outputs": {
|
|
378
|
-
"type": "array",
|
|
379
|
-
"uniqueItems": true,
|
|
380
|
-
"description": "The outputs this member exposes as link targets (#2539), for a member whose kind takes them from the entry: other, or a kind a pinned package supplies. A chant member's outputs are read from its source, and a nested workspace exposes none.",
|
|
381
|
-
"items": {
|
|
382
|
-
"$ref": "#/$defs/outputName"
|
|
383
|
-
}
|
|
384
|
-
},
|
|
385
|
-
"fields": {
|
|
386
|
-
"$ref": "#/$defs/memberFields"
|
|
387
|
-
},
|
|
388
|
-
"links": {
|
|
389
|
-
"type": "array",
|
|
390
|
-
"description": "Member links (#2524 D6, #2539): the outputs of other members this member reads. A link is stated once, here on the consumer, and matched exactly against the producer's outputs. chant workspace check resolves it in source.",
|
|
391
|
-
"items": {
|
|
392
|
-
"$ref": "#/$defs/link"
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"records": {
|
|
396
|
-
"type": "array",
|
|
397
|
-
"description": "The record kinds this member holds, each a kind file relative to the member's directory (#2680). chant workspace ls lists them, and chant workspace records and graph --intent read every declared kind when --kind is not given. Added in schema 1 by chant 0.86.0, so a declaration that uses it sets minReader to 0.86.0 or newer.",
|
|
398
|
-
"items": {
|
|
399
|
-
"$ref": "#/$defs/recordKind"
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
"diagrams": {
|
|
403
|
-
"type": "array",
|
|
404
|
-
"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.",
|
|
405
|
-
"items": {
|
|
406
|
-
"$ref": "#/$defs/diagram"
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
"box": {
|
|
410
|
-
"$ref": "#/$defs/box"
|
|
411
|
-
},
|
|
412
|
-
"upstream": {
|
|
413
|
-
"type": "string",
|
|
414
|
-
"minLength": 1,
|
|
415
|
-
"description": "Where an embedded member's files come from. Versions live in the lock."
|
|
416
|
-
},
|
|
417
|
-
"travel": {
|
|
418
|
-
"type": "boolean",
|
|
419
|
-
"description": "Whether the member goes with an export (#2524 D10, #2552). chant workspace export writes only members that set travel to true into the export member, and refuses to name one that does not. Added in schema 1 by chant 0.101.0, so a declaration that uses it sets minReader to 0.101.0 or newer."
|
|
420
|
-
},
|
|
421
|
-
"because": {
|
|
422
|
-
"type": "string",
|
|
423
|
-
"minLength": 1,
|
|
424
|
-
"description": "Why the member is there. Required for kind other."
|
|
425
|
-
},
|
|
426
|
-
"suppress": {
|
|
427
|
-
"$ref": "#/$defs/suppress"
|
|
428
|
-
}
|
|
718
|
+
"publish": {
|
|
719
|
+
"type": "object",
|
|
720
|
+
"description": "Where a finished build is published: its branch is pushed and a pull request opened against repo's base. The repo is the record, so an orchestrator reads this instead of being told the target in its environment.",
|
|
721
|
+
"required": [
|
|
722
|
+
"repo"
|
|
723
|
+
],
|
|
724
|
+
"properties": {
|
|
725
|
+
"forge": {
|
|
726
|
+
"enum": [
|
|
727
|
+
"github"
|
|
728
|
+
],
|
|
729
|
+
"description": "The forge repo is on. github when omitted."
|
|
429
730
|
},
|
|
430
|
-
"
|
|
431
|
-
|
|
731
|
+
"repo": {
|
|
732
|
+
"type": "string",
|
|
733
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9._-]{1,100}$",
|
|
734
|
+
"description": "The repository the pull request is opened on, as owner/name."
|
|
432
735
|
},
|
|
433
|
-
"
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
"kind": {
|
|
438
|
-
"const": "other"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"required": [
|
|
442
|
-
"kind"
|
|
443
|
-
]
|
|
736
|
+
"base": {
|
|
737
|
+
"type": "string",
|
|
738
|
+
"minLength": 1,
|
|
739
|
+
"description": "The branch the pull request targets. The repository's default branch when omitted."
|
|
444
740
|
},
|
|
445
|
-
"
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
741
|
+
"branchPrefix": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"minLength": 1,
|
|
744
|
+
"pattern": "^[A-Za-z0-9._/-]+$",
|
|
745
|
+
"description": "What the published branch's name starts with; the work item's id follows, as in box/ and then box/work-012. chant/work/ when omitted, the work lease's own branch."
|
|
746
|
+
},
|
|
747
|
+
"head": {
|
|
748
|
+
"type": "string",
|
|
749
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9._-]{1,100}$",
|
|
750
|
+
"description": "The repository the branch is pushed to when it isn't repo, as owner/name: a fork, so the pull request comes from <head owner>:<branch>. A runtime that publishes for one contributor's fork supplies that per contributor instead (arugula-salad/studio#242); this names a fork the whole workspace publishes from."
|
|
455
751
|
}
|
|
752
|
+
},
|
|
753
|
+
"patternProperties": {
|
|
754
|
+
"^x-": true
|
|
755
|
+
},
|
|
756
|
+
"additionalProperties": false
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"patternProperties": {
|
|
760
|
+
"^x-": true
|
|
761
|
+
},
|
|
762
|
+
"additionalProperties": false
|
|
763
|
+
},
|
|
764
|
+
"boxListing": {
|
|
765
|
+
"type": "object",
|
|
766
|
+
"description": "What the box shows of itself on a home site that lists boxes (#3146, #3154): whether it is listed, its title and one line, and a cover image kept as a file in the repo. A box's listing is configuration, so changing it is a reviewed change (ws-074). chant workspace status --json and chant workspace graph --json print it under the member's box, with the cover's sha256. Added in schema 1 by chant 0.102.0, so a declaration that uses it sets minReader to 0.102.0 or newer.",
|
|
767
|
+
"properties": {
|
|
768
|
+
"published": {
|
|
769
|
+
"type": "boolean",
|
|
770
|
+
"description": "Whether the box is listed. true when omitted: a box is listed unless its owner takes it out."
|
|
456
771
|
},
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
"oneOf": [
|
|
463
|
-
{ "type": "string" },
|
|
464
|
-
{ "type": "integer" },
|
|
465
|
-
{ "type": "boolean" },
|
|
466
|
-
{
|
|
467
|
-
"type": "object",
|
|
468
|
-
"propertyNames": { "pattern": "^[a-z][A-Za-z0-9]{0,39}$" },
|
|
469
|
-
"additionalProperties": { "oneOf": [{ "type": "string" }, { "type": "integer" }, { "type": "boolean" }] }
|
|
470
|
-
}
|
|
471
|
-
]
|
|
472
|
-
}
|
|
772
|
+
"title": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"maxLength": 60,
|
|
775
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$",
|
|
776
|
+
"description": "The box's title, one line of at most 60 characters. Empty when omitted, and a reader then shows a name of its own."
|
|
473
777
|
},
|
|
474
|
-
"
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
"kind",
|
|
480
|
-
"glob"
|
|
481
|
-
],
|
|
482
|
-
"properties": {
|
|
483
|
-
"name": {
|
|
484
|
-
"$ref": "#/$defs/name"
|
|
485
|
-
},
|
|
486
|
-
"kind": {
|
|
487
|
-
"const": "examples"
|
|
488
|
-
},
|
|
489
|
-
"glob": {
|
|
490
|
-
"oneOf": [
|
|
491
|
-
{
|
|
492
|
-
"$ref": "#/$defs/glob"
|
|
493
|
-
},
|
|
494
|
-
{
|
|
495
|
-
"type": "array",
|
|
496
|
-
"minItems": 1,
|
|
497
|
-
"uniqueItems": true,
|
|
498
|
-
"items": {
|
|
499
|
-
"$ref": "#/$defs/glob"
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
]
|
|
503
|
-
},
|
|
504
|
-
"suppress": {
|
|
505
|
-
"$ref": "#/$defs/suppress"
|
|
506
|
-
}
|
|
507
|
-
},
|
|
508
|
-
"patternProperties": {
|
|
509
|
-
"^x-": true
|
|
510
|
-
},
|
|
511
|
-
"additionalProperties": false
|
|
778
|
+
"line": {
|
|
779
|
+
"type": "string",
|
|
780
|
+
"maxLength": 140,
|
|
781
|
+
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]*$",
|
|
782
|
+
"description": "One line saying what the box is, at most 140 characters. Empty when omitted."
|
|
512
783
|
},
|
|
513
|
-
"
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
784
|
+
"cover": {
|
|
785
|
+
"$ref": "#/$defs/path",
|
|
786
|
+
"description": "A PNG, JPEG or WebP picture of the box, as a file from the workspace root. None when omitted."
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"patternProperties": {
|
|
790
|
+
"^x-": true
|
|
791
|
+
},
|
|
792
|
+
"additionalProperties": false
|
|
793
|
+
},
|
|
794
|
+
"boxReplicate": {
|
|
795
|
+
"type": "object",
|
|
796
|
+
"description": "Where the box's work in progress is replicated, so a box that is lost, reclaimed or corrupted before anyone commits loses nothing (#3172, ws-085). Work in progress is the work branches (chant/work/...), the kept attempts (refs/chant/kept/..., #3147), the snapshots chant workspace wip save takes of each branch's working tree, uncommitted records included (refs/chant/wip/<branch>), and the ledger branch, chant/lifecycle. chant pushes them to remote under their own names and never forces a push. Opt-in: a box block without it replicates nothing. At most one box block in a declaration declares one, or the declaration can't be read (declaration-invalid). chant workspace status --json prints it under the member's box, with every default filled in, and reports in replication how far each ref is from the remote. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer.",
|
|
797
|
+
"properties": {
|
|
798
|
+
"remote": {
|
|
799
|
+
"type": "string",
|
|
800
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
801
|
+
"description": "The git remote to push to, by name: the repository's own remote, such as origin, or a mirror the host adds to the box's checkout with its credential, since a box holds none (#2726). origin when omitted."
|
|
517
802
|
},
|
|
518
|
-
"
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
"$ref": "#/$defs/boxService"
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"factory": {
|
|
535
|
-
"$ref": "#/$defs/boxFactory"
|
|
536
|
-
},
|
|
537
|
-
"listing": {
|
|
538
|
-
"$ref": "#/$defs/boxListing"
|
|
539
|
-
},
|
|
540
|
-
"publisher": {
|
|
541
|
-
"type": "string",
|
|
542
|
-
"minLength": 1,
|
|
543
|
-
"pattern": "\\S",
|
|
544
|
-
"description": "The command that publishes the box's work (#3165, ws-088): it applies a built work item to the box's checkout and, when factory.publish names a target, pushes it and opens the pull request, and it sends the records a person kept uncommitted. It is run from the workspace root by chant workspace box publish, split into words as a shell splits plain words (quotes group, a backslash escapes) but never given to a shell, with a JSON request on stdin; box-publish.schema.json says what it reads and prints. An orchestrator such as studio supplies it. chant workspace status --json prints it under the member's box, so a surface offers a publish only when a box names one. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer."
|
|
545
|
-
},
|
|
546
|
-
"replicate": {
|
|
547
|
-
"$ref": "#/$defs/boxReplicate"
|
|
548
|
-
},
|
|
549
|
-
"ship": {
|
|
550
|
-
"$ref": "#/$defs/boxShip"
|
|
551
|
-
},
|
|
552
|
-
"capabilities": {
|
|
553
|
-
"type": "array",
|
|
554
|
-
"description": "Each capability the box reaches outside itself, named once. None when omitted.",
|
|
555
|
-
"items": {
|
|
556
|
-
"$ref": "#/$defs/capability"
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
"host": {
|
|
560
|
-
"$ref": "#/$defs/name",
|
|
561
|
-
"description": "The host the box runs on, one of the top-level hosts (#2727). The box's name is the member's name."
|
|
562
|
-
},
|
|
563
|
-
"slot": {
|
|
564
|
-
"type": "integer",
|
|
565
|
-
"minimum": 0,
|
|
566
|
-
"description": "The box's number on its host (#2727). Its ports come from the slot's block of the host's range."
|
|
567
|
-
},
|
|
568
|
-
"ports": {
|
|
569
|
-
"type": "object",
|
|
570
|
-
"description": "The ports the box listens on, each a name and its offset in the box's block (#2727). The port is the block's first port plus the offset.",
|
|
571
|
-
"propertyNames": {
|
|
572
|
-
"$ref": "#/$defs/kindName"
|
|
573
|
-
},
|
|
574
|
-
"additionalProperties": {
|
|
575
|
-
"type": "integer",
|
|
576
|
-
"minimum": 0,
|
|
577
|
-
"maximum": 65534
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
"state": {
|
|
581
|
-
"type": "object",
|
|
582
|
-
"description": "State the box keeps outside its checkout, such as hud's identity and database, each a name and a path relative to the box's state directory (#2727). The name is usually the environment variable the runtime sets, such as HUD_IDENTITY_PATH. A path that is absolute, starts with ~ or an environment reference, or has a .. segment is a WSP124 finding.",
|
|
583
|
-
"propertyNames": {
|
|
584
|
-
"type": "string",
|
|
585
|
-
"pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
|
|
586
|
-
},
|
|
587
|
-
"additionalProperties": {
|
|
588
|
-
"type": "string",
|
|
589
|
-
"minLength": 1
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
"cookies": {
|
|
593
|
-
"type": "array",
|
|
594
|
-
"description": "Session cookie names the box's runtimes set, such as hud_session (#2727). A browser scopes a cookie to a host, not a port, so each resolves to <cookie>_<member name>.",
|
|
595
|
-
"uniqueItems": true,
|
|
596
|
-
"items": {
|
|
597
|
-
"type": "string",
|
|
598
|
-
"pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
"dependentRequired": {
|
|
603
|
-
"host": [
|
|
604
|
-
"slot"
|
|
605
|
-
],
|
|
606
|
-
"slot": [
|
|
607
|
-
"host"
|
|
608
|
-
],
|
|
609
|
-
"ports": [
|
|
610
|
-
"host"
|
|
611
|
-
],
|
|
612
|
-
"state": [
|
|
613
|
-
"host"
|
|
614
|
-
],
|
|
615
|
-
"cookies": [
|
|
616
|
-
"host"
|
|
617
|
-
]
|
|
618
|
-
},
|
|
619
|
-
"patternProperties": {
|
|
620
|
-
"^x-": true
|
|
621
|
-
},
|
|
622
|
-
"additionalProperties": false
|
|
803
|
+
"refs": {
|
|
804
|
+
"type": "array",
|
|
805
|
+
"minItems": 1,
|
|
806
|
+
"uniqueItems": true,
|
|
807
|
+
"description": "What is replicated: work (the branches under chant/work/), kept (the kept attempts under refs/chant/kept/), wip (the snapshots under refs/chant/wip/) and ledger (the chant/lifecycle branch). All four when omitted.",
|
|
808
|
+
"items": {
|
|
809
|
+
"enum": [
|
|
810
|
+
"work",
|
|
811
|
+
"kept",
|
|
812
|
+
"wip",
|
|
813
|
+
"ledger"
|
|
814
|
+
]
|
|
815
|
+
}
|
|
623
816
|
},
|
|
624
|
-
"
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
"uniqueItems": true,
|
|
635
|
-
"description": "The members the factory builds, each a declared member of any kind. A work item a person asks for here constrains member:<the first>.",
|
|
636
|
-
"items": {
|
|
637
|
-
"$ref": "#/$defs/name"
|
|
638
|
-
}
|
|
639
|
-
},
|
|
640
|
-
"check": {
|
|
641
|
-
"description": "The command whose exit code is a build's verdict, run from the workspace root after the work item's own checks: a command, or { run, kind } saying what it is. kind is test when omitted.",
|
|
642
|
-
"oneOf": [
|
|
643
|
-
{
|
|
644
|
-
"type": "string",
|
|
645
|
-
"minLength": 1
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
"type": "object",
|
|
649
|
-
"required": [
|
|
650
|
-
"run"
|
|
651
|
-
],
|
|
652
|
-
"properties": {
|
|
653
|
-
"run": {
|
|
654
|
-
"type": "string",
|
|
655
|
-
"minLength": 1,
|
|
656
|
-
"description": "The command, run from the workspace root."
|
|
657
|
-
},
|
|
658
|
-
"kind": {
|
|
659
|
-
"enum": [
|
|
660
|
-
"test",
|
|
661
|
-
"build",
|
|
662
|
-
"lint",
|
|
663
|
-
"plan",
|
|
664
|
-
"conformance"
|
|
665
|
-
],
|
|
666
|
-
"description": "What the command is: an app's tests, a build, a lint, a lifecycle plan or a conformance run. test when omitted."
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
"patternProperties": {
|
|
670
|
-
"^x-": true
|
|
671
|
-
},
|
|
672
|
-
"additionalProperties": false
|
|
673
|
-
}
|
|
674
|
-
]
|
|
675
|
-
},
|
|
676
|
-
"checks": {
|
|
677
|
-
"$ref": "#/$defs/path",
|
|
678
|
-
"description": "The directory, from the workspace root, where a work item's builder writes the check for its item. When omitted the orchestrator chooses, such as <the first member of builds>/checks."
|
|
679
|
-
},
|
|
680
|
-
"builders": {
|
|
681
|
-
"$ref": "#/$defs/name",
|
|
682
|
-
"description": "The member that declares the builder agents, such as the one whose agents/ holds them. tiers says which of them builds at which tier (#3152)."
|
|
683
|
-
},
|
|
684
|
-
"tiers": {
|
|
685
|
-
"type": "array",
|
|
686
|
-
"minItems": 1,
|
|
687
|
-
"description": "Which builder agent builds at which tier (#3152, ws-094), replacing studio's studio/role and studio/tier Agent metadata. Each entry names a tier, in the vocabulary of the work kind's work.tier.tiers (#3147), and an agent the builders member declares, by its name. An entry with kinds builds only members of those kinds, so an infra builder and an app builder can share a tier; an entry without kinds builds the tier for every other kind. A tier has at most one entry without kinds and at most one per kind, tiers needs builders, and a session names a declared agent session, or the declaration can't be read (declaration-invalid). chant workspace status --json prints builderFor, the agent for each built member and tier. Added in schema 1 by chant 0.103.0, so a declaration that uses it sets minReader to 0.103.0 or newer.",
|
|
688
|
-
"items": {
|
|
689
|
-
"type": "object",
|
|
690
|
-
"required": ["tier", "agent"],
|
|
691
|
-
"properties": {
|
|
692
|
-
"tier": {
|
|
693
|
-
"$ref": "#/$defs/kindName",
|
|
694
|
-
"description": "The tier, such as small, medium or large: a word of the work kind's work.tier.tiers, which a work item's tier or the slice-tier decision point answers."
|
|
695
|
-
},
|
|
696
|
-
"agent": {
|
|
697
|
-
"type": "string",
|
|
698
|
-
"minLength": 1,
|
|
699
|
-
"pattern": "^[^\\u0000-\\u001f]+$",
|
|
700
|
-
"description": "The builder agent's name, as the builders member declares it (such as an Agent of the fountain lexicon in its agents/)."
|
|
701
|
-
},
|
|
702
|
-
"kinds": {
|
|
703
|
-
"type": "array",
|
|
704
|
-
"minItems": 1,
|
|
705
|
-
"uniqueItems": true,
|
|
706
|
-
"items": { "$ref": "#/$defs/kindName" },
|
|
707
|
-
"description": "The member kinds this agent builds at the tier, such as app or terraform. Without it, every kind no other entry of the tier names."
|
|
708
|
-
},
|
|
709
|
-
"session": {
|
|
710
|
-
"$ref": "#/$defs/name",
|
|
711
|
-
"description": "The declared agent session (agents) the builder writes as, so its write scope is that session's. Optional: without it the orchestrator chooses."
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
"patternProperties": { "^x-": true },
|
|
715
|
-
"additionalProperties": false
|
|
716
|
-
}
|
|
717
|
-
},
|
|
718
|
-
"publish": {
|
|
719
|
-
"type": "object",
|
|
720
|
-
"description": "Where a finished build is published: its branch is pushed and a pull request opened against repo's base. The repo is the record, so an orchestrator reads this instead of being told the target in its environment.",
|
|
721
|
-
"required": [
|
|
722
|
-
"repo"
|
|
723
|
-
],
|
|
724
|
-
"properties": {
|
|
725
|
-
"forge": {
|
|
726
|
-
"enum": [
|
|
727
|
-
"github"
|
|
728
|
-
],
|
|
729
|
-
"description": "The forge repo is on. github when omitted."
|
|
730
|
-
},
|
|
731
|
-
"repo": {
|
|
732
|
-
"type": "string",
|
|
733
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9._-]{1,100}$",
|
|
734
|
-
"description": "The repository the pull request is opened on, as owner/name."
|
|
735
|
-
},
|
|
736
|
-
"base": {
|
|
737
|
-
"type": "string",
|
|
738
|
-
"minLength": 1,
|
|
739
|
-
"description": "The branch the pull request targets. The repository's default branch when omitted."
|
|
740
|
-
},
|
|
741
|
-
"branchPrefix": {
|
|
742
|
-
"type": "string",
|
|
743
|
-
"minLength": 1,
|
|
744
|
-
"pattern": "^[A-Za-z0-9._/-]+$",
|
|
745
|
-
"description": "What the published branch's name starts with; the work item's id follows, as in box/ and then box/work-012. chant/work/ when omitted, the work lease's own branch."
|
|
746
|
-
},
|
|
747
|
-
"head": {
|
|
748
|
-
"type": "string",
|
|
749
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}/[A-Za-z0-9._-]{1,100}$",
|
|
750
|
-
"description": "The repository the branch is pushed to when it isn't repo, as owner/name: a fork, so the pull request comes from <head owner>:<branch>. A runtime that publishes for one contributor's fork supplies that per contributor instead (arugula-salad/studio#242); this names a fork the whole workspace publishes from."
|
|
751
|
-
}
|
|
752
|
-
},
|
|
753
|
-
"patternProperties": {
|
|
754
|
-
"^x-": true
|
|
755
|
-
},
|
|
756
|
-
"additionalProperties": false
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
"patternProperties": {
|
|
760
|
-
"^x-": true
|
|
761
|
-
},
|
|
762
|
-
"additionalProperties": false
|
|
817
|
+
"on": {
|
|
818
|
+
"type": "array",
|
|
819
|
+
"uniqueItems": true,
|
|
820
|
+
"description": "When chant pushes on its own: save, after each chant workspace wip save, and release, after a work lease is released (chant workspace work release, or a run of an Op under a work lease ending, which is when a kept attempt is written). Both when omitted; an empty list leaves every push to chant workspace wip push. A record write never pushes, because chant's record writes never run git (ws-074).",
|
|
821
|
+
"items": {
|
|
822
|
+
"enum": [
|
|
823
|
+
"save",
|
|
824
|
+
"release"
|
|
825
|
+
]
|
|
826
|
+
}
|
|
763
827
|
},
|
|
764
|
-
"
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
"description": "A PNG, JPEG or WebP picture of the box, as a file from the workspace root. None when omitted."
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
"patternProperties": {
|
|
790
|
-
"^x-": true
|
|
791
|
-
},
|
|
792
|
-
"additionalProperties": false
|
|
828
|
+
"every": {
|
|
829
|
+
"type": "string",
|
|
830
|
+
"pattern": "^[1-9][0-9]*(s|m|h)$",
|
|
831
|
+
"description": "How often the host runs chant workspace wip push on a schedule of its own, such as 10m, beside the pushes on save and release. chant runs no scheduler; it only states the interval. None when omitted."
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"patternProperties": {
|
|
835
|
+
"^x-": true
|
|
836
|
+
},
|
|
837
|
+
"additionalProperties": false
|
|
838
|
+
},
|
|
839
|
+
"boxShip": {
|
|
840
|
+
"type": "object",
|
|
841
|
+
"description": "How the box ships its staged work to its own site (ws-100): the people working on a box see the working tree at once, everyone else sees the last release, and a person ships. op is the Op in the box member that does it: its own steps commit the staged tree as one commit by the person shipping (named to it in CHANT_SHIP_BY) with a Chant-Record trailer for each work item it lands, then release that commit to the box's site, stopping at gate, and record the release in env's release ledger. chant runs none of it; a surface runs chant run <op> in the member's directory and approves the gate as for any Op. chant workspace status --json prints it under the member's box with the commit the site serves (the latest release in env's ledger) and what is waiting to ship (the files changed between that commit and the working tree, bookkeeping left out). Added in schema 1 by chant 0.104.0, so a declaration that uses it sets minReader to 0.104.0 or newer.",
|
|
842
|
+
"required": [
|
|
843
|
+
"op"
|
|
844
|
+
],
|
|
845
|
+
"properties": {
|
|
846
|
+
"op": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
849
|
+
"description": "The name of the Op in the box member that ships, as chant run takes it."
|
|
793
850
|
},
|
|
794
|
-
"
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
"remote": {
|
|
799
|
-
"type": "string",
|
|
800
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
801
|
-
"description": "The git remote to push to, by name: the repository's own remote, such as origin, or a mirror the host adds to the box's checkout with its credential, since a box holds none (#2726). origin when omitted."
|
|
802
|
-
},
|
|
803
|
-
"refs": {
|
|
804
|
-
"type": "array",
|
|
805
|
-
"minItems": 1,
|
|
806
|
-
"uniqueItems": true,
|
|
807
|
-
"description": "What is replicated: work (the branches under chant/work/), kept (the kept attempts under refs/chant/kept/), wip (the snapshots under refs/chant/wip/) and ledger (the chant/lifecycle branch). All four when omitted.",
|
|
808
|
-
"items": {
|
|
809
|
-
"enum": [
|
|
810
|
-
"work",
|
|
811
|
-
"kept",
|
|
812
|
-
"wip",
|
|
813
|
-
"ledger"
|
|
814
|
-
]
|
|
815
|
-
}
|
|
816
|
-
},
|
|
817
|
-
"on": {
|
|
818
|
-
"type": "array",
|
|
819
|
-
"uniqueItems": true,
|
|
820
|
-
"description": "When chant pushes on its own: save, after each chant workspace wip save, and release, after a work lease is released (chant workspace work release, or a run of an Op under a work lease ending, which is when a kept attempt is written). Both when omitted; an empty list leaves every push to chant workspace wip push. A record write never pushes, because chant's record writes never run git (ws-074).",
|
|
821
|
-
"items": {
|
|
822
|
-
"enum": [
|
|
823
|
-
"save",
|
|
824
|
-
"release"
|
|
825
|
-
]
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
"every": {
|
|
829
|
-
"type": "string",
|
|
830
|
-
"pattern": "^[1-9][0-9]*(s|m|h)$",
|
|
831
|
-
"description": "How often the host runs chant workspace wip push on a schedule of its own, such as 10m, beside the pushes on save and release. chant runs no scheduler; it only states the interval. None when omitted."
|
|
832
|
-
}
|
|
833
|
-
},
|
|
834
|
-
"patternProperties": {
|
|
835
|
-
"^x-": true
|
|
836
|
-
},
|
|
837
|
-
"additionalProperties": false
|
|
851
|
+
"gate": {
|
|
852
|
+
"type": "string",
|
|
853
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
854
|
+
"description": "The gate the Op stops at for a person's approval. ship when omitted."
|
|
838
855
|
},
|
|
839
|
-
"
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
"op"
|
|
844
|
-
],
|
|
845
|
-
"properties": {
|
|
846
|
-
"op": {
|
|
847
|
-
"type": "string",
|
|
848
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
849
|
-
"description": "The name of the Op in the box member that ships, as chant run takes it."
|
|
850
|
-
},
|
|
851
|
-
"gate": {
|
|
852
|
-
"type": "string",
|
|
853
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
854
|
-
"description": "The gate the Op stops at for a person's approval. ship when omitted."
|
|
855
|
-
},
|
|
856
|
-
"env": {
|
|
857
|
-
"type": "string",
|
|
858
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
859
|
-
"description": "The environment whose release ledger, under the box member, the Op records each release in. box when omitted."
|
|
860
|
-
},
|
|
861
|
-
"bookkeeping": {
|
|
862
|
-
"type": "array",
|
|
863
|
-
"uniqueItems": true,
|
|
864
|
-
"description": "Path prefixes from the workspace root whose changes are bookkeeping, such as the record directories, and never count as waiting to ship. None when omitted.",
|
|
865
|
-
"items": {
|
|
866
|
-
"type": "string",
|
|
867
|
-
"minLength": 1,
|
|
868
|
-
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))[^\\n]+$"
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
},
|
|
872
|
-
"patternProperties": {
|
|
873
|
-
"^x-": true
|
|
874
|
-
},
|
|
875
|
-
"additionalProperties": false
|
|
856
|
+
"env": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
|
|
859
|
+
"description": "The environment whose release ledger, under the box member, the Op records each release in. box when omitted."
|
|
876
860
|
},
|
|
877
|
-
"
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
"
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
"description": "The port the supervisor routes the sprite's URL to (sprite-env services create --http-port). At most one service of a box sets it."
|
|
905
|
-
},
|
|
906
|
-
"duration": {
|
|
907
|
-
"type": "string",
|
|
908
|
-
"pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|m)$",
|
|
909
|
-
"description": "How long the service must stay up after it is created or started, such as 3s (sprite-env services create --duration)."
|
|
910
|
-
},
|
|
911
|
-
"health": {
|
|
912
|
-
"type": "string",
|
|
913
|
-
"pattern": "^https?://",
|
|
914
|
-
"description": "A URL that answers 200 while the service works. spriteServicesObserve probes it, and spriteServiceRestart waits for it after a restart. Without it, the supervisor's state decides."
|
|
915
|
-
},
|
|
916
|
-
"optional": {
|
|
917
|
-
"type": "boolean",
|
|
918
|
-
"description": "True for a service something else creates by name, such as a site a release Op makes: spriteApplyServices creates it only when its only names it, and spriteServicesObserve skips it while the supervisor has no such service."
|
|
919
|
-
}
|
|
920
|
-
},
|
|
921
|
-
"patternProperties": {
|
|
922
|
-
"^x-": true
|
|
923
|
-
},
|
|
924
|
-
"additionalProperties": false
|
|
861
|
+
"bookkeeping": {
|
|
862
|
+
"type": "array",
|
|
863
|
+
"uniqueItems": true,
|
|
864
|
+
"description": "Path prefixes from the workspace root whose changes are bookkeeping, such as the record directories, and never count as waiting to ship. None when omitted.",
|
|
865
|
+
"items": {
|
|
866
|
+
"type": "string",
|
|
867
|
+
"minLength": 1,
|
|
868
|
+
"pattern": "^(?!/)(?!.*(^|/)\\.\\.(/|$))[^\\n]+$"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"patternProperties": {
|
|
873
|
+
"^x-": true
|
|
874
|
+
},
|
|
875
|
+
"additionalProperties": false
|
|
876
|
+
},
|
|
877
|
+
"boxService": {
|
|
878
|
+
"type": "object",
|
|
879
|
+
"description": "A service a box runs under its supervisor (#2880).",
|
|
880
|
+
"required": [
|
|
881
|
+
"name",
|
|
882
|
+
"cmd"
|
|
883
|
+
],
|
|
884
|
+
"properties": {
|
|
885
|
+
"name": {
|
|
886
|
+
"$ref": "#/$defs/kindName",
|
|
887
|
+
"description": "The service's name in the supervisor. Unique within the box."
|
|
925
888
|
},
|
|
926
|
-
"
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
"name"
|
|
931
|
-
],
|
|
932
|
-
"properties": {
|
|
933
|
-
"name": {
|
|
934
|
-
"$ref": "#/$defs/kindName",
|
|
935
|
-
"description": "The capability, such as inference or fountain. Unique within the box."
|
|
936
|
-
},
|
|
937
|
-
"broker": {
|
|
938
|
-
"type": "string",
|
|
939
|
-
"minLength": 1,
|
|
940
|
-
"description": "What brokers the capability: the runtime that holds the credential and swaps the box's own token for it, such as lobby or door. It may name a member of this workspace, or a runtime outside it. Without it the capability is unbrokered, and chant workspace check fails with WSP122."
|
|
941
|
-
},
|
|
942
|
-
"scope": {
|
|
943
|
-
"type": "array",
|
|
944
|
-
"uniqueItems": true,
|
|
945
|
-
"description": "What of the box's own the broker lets it reach, which the broker enforces. For Fountain: agent (start conversations with its own agent), vault (attach its own vault), conversations and sandboxes (its own). The words are the broker's; chant records them.",
|
|
946
|
-
"items": {
|
|
947
|
-
"type": "string",
|
|
948
|
-
"minLength": 1,
|
|
949
|
-
"pattern": "^[^\\u0000-\\u001f]+$"
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
},
|
|
953
|
-
"patternProperties": {
|
|
954
|
-
"^x-": true
|
|
955
|
-
},
|
|
956
|
-
"additionalProperties": false
|
|
889
|
+
"cmd": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"minLength": 1,
|
|
892
|
+
"description": "The command the supervisor runs (sprite-env services create --cmd). ${HOME} and other ${VAR} references are expanded from the environment of the process that applies the list, so the declaration holds no machine path."
|
|
957
893
|
},
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
"kind": {
|
|
966
|
-
"$ref": "#/$defs/path",
|
|
967
|
-
"description": "The kind file, relative to the member's directory, or to the workspace root for the workspace's own records. A path is listed once across the declaration."
|
|
968
|
-
},
|
|
969
|
-
"name": {
|
|
970
|
-
"$ref": "#/$defs/kindName",
|
|
971
|
-
"description": "The name readers show for the kind. Without it, the kind file's own recordKind.name. Unique across the declaration."
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
"patternProperties": {
|
|
975
|
-
"^x-": true
|
|
976
|
-
},
|
|
977
|
-
"additionalProperties": false
|
|
894
|
+
"needs": {
|
|
895
|
+
"type": "array",
|
|
896
|
+
"uniqueItems": true,
|
|
897
|
+
"description": "Names of services of the same box that start before this one (sprite-env services create --needs).",
|
|
898
|
+
"items": {
|
|
899
|
+
"$ref": "#/$defs/kindName"
|
|
900
|
+
}
|
|
978
901
|
},
|
|
979
|
-
"
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
"required": [
|
|
983
|
-
"name",
|
|
984
|
-
"title",
|
|
985
|
-
"renderer"
|
|
986
|
-
],
|
|
987
|
-
"if": {
|
|
988
|
-
"type": "object",
|
|
989
|
-
"properties": {
|
|
990
|
-
"renderer": {
|
|
991
|
-
"type": "object",
|
|
992
|
-
"properties": {
|
|
993
|
-
"tool": {
|
|
994
|
-
"enum": ["mermaid", "excalidraw"]
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
"required": [
|
|
998
|
-
"tool"
|
|
999
|
-
]
|
|
1000
|
-
}
|
|
1001
|
-
},
|
|
1002
|
-
"required": [
|
|
1003
|
-
"renderer"
|
|
1004
|
-
]
|
|
1005
|
-
},
|
|
1006
|
-
"then": {
|
|
1007
|
-
"type": "object",
|
|
1008
|
-
"properties": {
|
|
1009
|
-
"source": {
|
|
1010
|
-
"$ref": "#/$defs/path"
|
|
1011
|
-
}
|
|
1012
|
-
},
|
|
1013
|
-
"required": [
|
|
1014
|
-
"source"
|
|
1015
|
-
]
|
|
1016
|
-
},
|
|
1017
|
-
"else": {
|
|
1018
|
-
"type": "object",
|
|
1019
|
-
"properties": {
|
|
1020
|
-
"render": {
|
|
1021
|
-
"$ref": "#/$defs/path"
|
|
1022
|
-
}
|
|
1023
|
-
},
|
|
1024
|
-
"required": [
|
|
1025
|
-
"render"
|
|
1026
|
-
]
|
|
1027
|
-
},
|
|
1028
|
-
"properties": {
|
|
1029
|
-
"name": {
|
|
1030
|
-
"$ref": "#/$defs/name",
|
|
1031
|
-
"description": "Unique across the declaration."
|
|
1032
|
-
},
|
|
1033
|
-
"title": {
|
|
1034
|
-
"type": "string",
|
|
1035
|
-
"minLength": 1,
|
|
1036
|
-
"description": "Shown above the diagram."
|
|
1037
|
-
},
|
|
1038
|
-
"source": {
|
|
1039
|
-
"oneOf": [
|
|
1040
|
-
{ "$ref": "#/$defs/path" },
|
|
1041
|
-
{ "type": "null" }
|
|
1042
|
-
],
|
|
1043
|
-
"description": "The source file, from the workspace root, with / separators. Null for an SVG with no source. Default null."
|
|
1044
|
-
},
|
|
1045
|
-
"render": {
|
|
1046
|
-
"oneOf": [
|
|
1047
|
-
{ "$ref": "#/$defs/path" },
|
|
1048
|
-
{ "type": "null" }
|
|
1049
|
-
],
|
|
1050
|
-
"description": "The rendered image, from the workspace root, with / separators. Required for d2 and graphviz. A mermaid or excalidraw diagram needs a source instead and may leave render out or null, from chant 0.96.0: a reader such as hud draws it from the source (an excalidraw diagram may still commit an exported SVG for docs)."
|
|
1051
|
-
},
|
|
1052
|
-
"renderer": {
|
|
1053
|
-
"$ref": "#/$defs/diagramRenderer"
|
|
1054
|
-
},
|
|
1055
|
-
"sourceHash": {
|
|
1056
|
-
"type": ["string", "null"],
|
|
1057
|
-
"pattern": "^[0-9a-f]{64}$",
|
|
1058
|
-
"description": "sha256 hex of the source's bytes when render was last produced from it, or for a mermaid or excalidraw diagram without a render, when the source was last pinned. 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."
|
|
1059
|
-
}
|
|
1060
|
-
},
|
|
1061
|
-
"patternProperties": {
|
|
1062
|
-
"^x-": true
|
|
1063
|
-
},
|
|
1064
|
-
"additionalProperties": false
|
|
902
|
+
"httpPort": {
|
|
903
|
+
"$ref": "#/$defs/port",
|
|
904
|
+
"description": "The port the supervisor routes the sprite's URL to (sprite-env services create --http-port). At most one service of a box sets it."
|
|
1065
905
|
},
|
|
1066
|
-
"
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
"tool",
|
|
1071
|
-
"version"
|
|
1072
|
-
],
|
|
1073
|
-
"properties": {
|
|
1074
|
-
"tool": {
|
|
1075
|
-
"enum": ["d2", "mermaid", "graphviz", "excalidraw"]
|
|
1076
|
-
},
|
|
1077
|
-
"version": {
|
|
1078
|
-
"$ref": "#/$defs/version",
|
|
1079
|
-
"description": "The exact release the render was made with, such as 0.9.0. For mermaid or excalidraw, the release of the library a reader draws the source with, such as 11.4.1."
|
|
1080
|
-
},
|
|
1081
|
-
"args": {
|
|
1082
|
-
"type": "array",
|
|
1083
|
-
"description": "Passed before the input and output paths, in order, such as [\"--layout=elk\", \"--theme=0\", \"--pad=40\", \"--omit-version\"]. Empty when absent.",
|
|
1084
|
-
"items": {
|
|
1085
|
-
"type": "string"
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
},
|
|
1089
|
-
"patternProperties": {
|
|
1090
|
-
"^x-": true
|
|
1091
|
-
},
|
|
1092
|
-
"additionalProperties": false
|
|
906
|
+
"duration": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|m)$",
|
|
909
|
+
"description": "How long the service must stay up after it is created or started, such as 3s (sprite-env services create --duration)."
|
|
1093
910
|
},
|
|
1094
|
-
"
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
"path",
|
|
1099
|
-
"generator"
|
|
1100
|
-
],
|
|
1101
|
-
"properties": {
|
|
1102
|
-
"path": {
|
|
1103
|
-
"$ref": "#/$defs/path",
|
|
1104
|
-
"description": "The file, relative to the member's directory."
|
|
1105
|
-
},
|
|
1106
|
-
"generator": {
|
|
1107
|
-
"type": "string",
|
|
1108
|
-
"minLength": 1,
|
|
1109
|
-
"description": "The command line that writes the file, run in the member's directory with the member's own node_modules/.bin first on PATH, such as chant build ci --lexicon github -o ci.yml. When it passes -o or --output with this file's path, chant workspace check --generated points that flag at a temporary file. Otherwise the generator writes in place and check restores the tree afterwards."
|
|
1110
|
-
},
|
|
1111
|
-
"sources": {
|
|
1112
|
-
"type": "array",
|
|
1113
|
-
"description": "The files or directories the generator reads, relative to the workspace root, since a generator often reads other members.",
|
|
1114
|
-
"items": {
|
|
1115
|
-
"$ref": "#/$defs/path"
|
|
1116
|
-
}
|
|
1117
|
-
},
|
|
1118
|
-
"handWritten": {
|
|
1119
|
-
"type": "object",
|
|
1120
|
-
"description": "The file is kept by hand instead of regenerated. chant workspace check reports it with the reason and never runs its generator, and the lock classes it owned.",
|
|
1121
|
-
"required": [
|
|
1122
|
-
"because"
|
|
1123
|
-
],
|
|
1124
|
-
"properties": {
|
|
1125
|
-
"because": {
|
|
1126
|
-
"type": "string",
|
|
1127
|
-
"minLength": 1
|
|
1128
|
-
}
|
|
1129
|
-
},
|
|
1130
|
-
"patternProperties": {
|
|
1131
|
-
"^x-": true
|
|
1132
|
-
},
|
|
1133
|
-
"additionalProperties": false
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1136
|
-
"patternProperties": {
|
|
1137
|
-
"^x-": true
|
|
1138
|
-
},
|
|
1139
|
-
"additionalProperties": false
|
|
911
|
+
"health": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"pattern": "^https?://",
|
|
914
|
+
"description": "A URL that answers 200 while the service works. spriteServicesObserve probes it, and spriteServiceRestart waits for it after a restart. Without it, the supervisor's state decides."
|
|
1140
915
|
},
|
|
1141
|
-
"
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
}
|
|
1162
|
-
},
|
|
1163
|
-
"patternProperties": {
|
|
1164
|
-
"^x-": true
|
|
1165
|
-
},
|
|
1166
|
-
"additionalProperties": false
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
"type": "object",
|
|
1170
|
-
"required": [
|
|
1171
|
-
"path"
|
|
1172
|
-
],
|
|
1173
|
-
"properties": {
|
|
1174
|
-
"path": {
|
|
1175
|
-
"$ref": "#/$defs/dir"
|
|
1176
|
-
},
|
|
1177
|
-
"integrity": {
|
|
1178
|
-
"type": "string",
|
|
1179
|
-
"pattern": "^sha(256|384|512)-[A-Za-z0-9+/]+={0,2}$"
|
|
1180
|
-
}
|
|
1181
|
-
},
|
|
1182
|
-
"patternProperties": {
|
|
1183
|
-
"^x-": true
|
|
1184
|
-
},
|
|
1185
|
-
"additionalProperties": false
|
|
1186
|
-
}
|
|
1187
|
-
]
|
|
916
|
+
"optional": {
|
|
917
|
+
"type": "boolean",
|
|
918
|
+
"description": "True for a service something else creates by name, such as a site a release Op makes: spriteApplyServices creates it only when its only names it, and spriteServicesObserve skips it while the supervisor has no such service."
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"patternProperties": {
|
|
922
|
+
"^x-": true
|
|
923
|
+
},
|
|
924
|
+
"additionalProperties": false
|
|
925
|
+
},
|
|
926
|
+
"capability": {
|
|
927
|
+
"type": "object",
|
|
928
|
+
"description": "A capability a box needs and does not hold the credential for, such as inference, fountain or a third-party API (#2726).",
|
|
929
|
+
"required": [
|
|
930
|
+
"name"
|
|
931
|
+
],
|
|
932
|
+
"properties": {
|
|
933
|
+
"name": {
|
|
934
|
+
"$ref": "#/$defs/kindName",
|
|
935
|
+
"description": "The capability, such as inference or fountain. Unique within the box."
|
|
1188
936
|
},
|
|
1189
|
-
"
|
|
937
|
+
"broker": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"minLength": 1,
|
|
940
|
+
"description": "What brokers the capability: the runtime that holds the credential and swaps the box's own token for it, such as lobby or door. It may name a member of this workspace, or a runtime outside it. Without it the capability is unbrokered, and chant workspace check fails with WSP122."
|
|
941
|
+
},
|
|
942
|
+
"scope": {
|
|
943
|
+
"type": "array",
|
|
944
|
+
"uniqueItems": true,
|
|
945
|
+
"description": "What of the box's own the broker lets it reach, which the broker enforces. For Fountain: agent (start conversations with its own agent), vault (attach its own vault), conversations and sandboxes (its own). The words are the broker's; chant records them.",
|
|
946
|
+
"items": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"minLength": 1,
|
|
949
|
+
"pattern": "^[^\\u0000-\\u001f]+$"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"patternProperties": {
|
|
954
|
+
"^x-": true
|
|
955
|
+
},
|
|
956
|
+
"additionalProperties": false
|
|
957
|
+
},
|
|
958
|
+
"recordKind": {
|
|
959
|
+
"type": "object",
|
|
960
|
+
"description": "A record kind the workspace declares (#2680): a kind file that exports recordKind. chant workspace check fails (WSP115) when the file is missing or does not load as a record kind.",
|
|
961
|
+
"required": [
|
|
962
|
+
"kind"
|
|
963
|
+
],
|
|
964
|
+
"properties": {
|
|
965
|
+
"kind": {
|
|
966
|
+
"$ref": "#/$defs/path",
|
|
967
|
+
"description": "The kind file, relative to the member's directory, or to the workspace root for the workspace's own records. A path is listed once across the declaration."
|
|
968
|
+
},
|
|
969
|
+
"name": {
|
|
970
|
+
"$ref": "#/$defs/kindName",
|
|
971
|
+
"description": "The name readers show for the kind. Without it, the kind file's own recordKind.name. Unique across the declaration."
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"patternProperties": {
|
|
975
|
+
"^x-": true
|
|
976
|
+
},
|
|
977
|
+
"additionalProperties": false
|
|
978
|
+
},
|
|
979
|
+
"diagram": {
|
|
980
|
+
"type": "object",
|
|
981
|
+
"description": "A diagram artifact the workspace declares (#2764): a rendered image with a source, pinned to the renderer that made it. A mermaid or excalidraw diagram may name no render: a reader draws it from its source. chant never runs the renderer.",
|
|
982
|
+
"required": [
|
|
983
|
+
"name",
|
|
984
|
+
"title",
|
|
985
|
+
"renderer"
|
|
986
|
+
],
|
|
987
|
+
"if": {
|
|
988
|
+
"type": "object",
|
|
989
|
+
"properties": {
|
|
990
|
+
"renderer": {
|
|
1190
991
|
"type": "object",
|
|
1191
|
-
"description": "A host boxes run on (#2727).",
|
|
1192
|
-
"required": [
|
|
1193
|
-
"name",
|
|
1194
|
-
"ports"
|
|
1195
|
-
],
|
|
1196
992
|
"properties": {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
"ports": {
|
|
1202
|
-
"type": "object",
|
|
1203
|
-
"description": "The TCP ports boxes on this host take theirs from. Slot n owns the block from + n * perBox to from + (n + 1) * perBox - 1, which must end at or before to.",
|
|
1204
|
-
"required": [
|
|
1205
|
-
"from",
|
|
1206
|
-
"to",
|
|
1207
|
-
"perBox"
|
|
1208
|
-
],
|
|
1209
|
-
"properties": {
|
|
1210
|
-
"from": {
|
|
1211
|
-
"$ref": "#/$defs/port",
|
|
1212
|
-
"description": "The first port of the range."
|
|
1213
|
-
},
|
|
1214
|
-
"to": {
|
|
1215
|
-
"$ref": "#/$defs/port",
|
|
1216
|
-
"description": "The last port of the range, inclusive."
|
|
1217
|
-
},
|
|
1218
|
-
"perBox": {
|
|
1219
|
-
"type": "integer",
|
|
1220
|
-
"minimum": 1,
|
|
1221
|
-
"maximum": 65535,
|
|
1222
|
-
"description": "How many ports each box's block holds. A box's port offsets are below it."
|
|
1223
|
-
}
|
|
1224
|
-
},
|
|
1225
|
-
"additionalProperties": false
|
|
1226
|
-
},
|
|
1227
|
-
"stateRoot": {
|
|
1228
|
-
"type": "string",
|
|
1229
|
-
"minLength": 1,
|
|
1230
|
-
"description": "Where boxes on this host keep state, as an environment reference such as ${XDG_STATE_HOME}/chant/boxes, which the runtime expands on the machine. A box's state directory is <stateRoot>/<member name>. A literal machine path, such as /Users/... or anything under $HOME, is a WSP124 finding. Default ${XDG_STATE_HOME}/chant/boxes."
|
|
1231
|
-
}
|
|
993
|
+
"tool": {
|
|
994
|
+
"enum": ["mermaid", "excalidraw"]
|
|
995
|
+
}
|
|
1232
996
|
},
|
|
1233
|
-
"
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
997
|
+
"required": [
|
|
998
|
+
"tool"
|
|
999
|
+
]
|
|
1000
|
+
}
|
|
1237
1001
|
},
|
|
1238
|
-
"
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1002
|
+
"required": [
|
|
1003
|
+
"renderer"
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
"then": {
|
|
1007
|
+
"type": "object",
|
|
1008
|
+
"properties": {
|
|
1009
|
+
"source": {
|
|
1010
|
+
"$ref": "#/$defs/path"
|
|
1011
|
+
}
|
|
1242
1012
|
},
|
|
1243
|
-
"
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1013
|
+
"required": [
|
|
1014
|
+
"source"
|
|
1015
|
+
]
|
|
1016
|
+
},
|
|
1017
|
+
"else": {
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"properties": {
|
|
1020
|
+
"render": {
|
|
1021
|
+
"$ref": "#/$defs/path"
|
|
1022
|
+
}
|
|
1247
1023
|
},
|
|
1248
|
-
"
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
"uniqueItems": true,
|
|
1257
|
-
"items": {
|
|
1258
|
-
"enum": [
|
|
1259
|
-
"new",
|
|
1260
|
-
"amend",
|
|
1261
|
-
"review",
|
|
1262
|
-
"close"
|
|
1263
|
-
]
|
|
1264
|
-
}
|
|
1265
|
-
}
|
|
1024
|
+
"required": [
|
|
1025
|
+
"render"
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
"properties": {
|
|
1029
|
+
"name": {
|
|
1030
|
+
"$ref": "#/$defs/name",
|
|
1031
|
+
"description": "Unique across the declaration."
|
|
1266
1032
|
},
|
|
1267
|
-
"
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
"$ref": "#/$defs/fileGlob"
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
"type": "object",
|
|
1275
|
-
"required": [
|
|
1276
|
-
"path"
|
|
1277
|
-
],
|
|
1278
|
-
"properties": {
|
|
1279
|
-
"path": {
|
|
1280
|
-
"$ref": "#/$defs/fileGlob"
|
|
1281
|
-
},
|
|
1282
|
-
"except": {
|
|
1283
|
-
"type": "array",
|
|
1284
|
-
"minItems": 1,
|
|
1285
|
-
"uniqueItems": true,
|
|
1286
|
-
"description": "What a write may change in the JSON file: a top-level key, or, for an entry starting with /, the values a JSON Pointer matches, where a * token matches every key or array index at its level, such as /members/*/box/listing for every box's listing (#3308). A change anywhere else in the file, or to a file that doesn't parse as a JSON object before and after, is still outside the scope.",
|
|
1287
|
-
"items": {
|
|
1288
|
-
"type": "string",
|
|
1289
|
-
"minLength": 1
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
"patternProperties": {
|
|
1294
|
-
"^x-": true
|
|
1295
|
-
},
|
|
1296
|
-
"additionalProperties": false
|
|
1297
|
-
}
|
|
1298
|
-
]
|
|
1033
|
+
"title": {
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"minLength": 1,
|
|
1036
|
+
"description": "Shown above the diagram."
|
|
1299
1037
|
},
|
|
1300
|
-
"
|
|
1301
|
-
|
|
1302
|
-
"
|
|
1303
|
-
"
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1038
|
+
"source": {
|
|
1039
|
+
"oneOf": [
|
|
1040
|
+
{ "$ref": "#/$defs/path" },
|
|
1041
|
+
{ "type": "null" }
|
|
1042
|
+
],
|
|
1043
|
+
"description": "The source file, from the workspace root, with / separators. Null for an SVG with no source. Default null."
|
|
1044
|
+
},
|
|
1045
|
+
"render": {
|
|
1046
|
+
"oneOf": [
|
|
1047
|
+
{ "$ref": "#/$defs/path" },
|
|
1048
|
+
{ "type": "null" }
|
|
1049
|
+
],
|
|
1050
|
+
"description": "The rendered image, from the workspace root, with / separators. Required for d2 and graphviz. A mermaid or excalidraw diagram needs a source instead and may leave render out or null, from chant 0.96.0: a reader such as hud draws it from the source (an excalidraw diagram may still commit an exported SVG for docs)."
|
|
1051
|
+
},
|
|
1052
|
+
"renderer": {
|
|
1053
|
+
"$ref": "#/$defs/diagramRenderer"
|
|
1054
|
+
},
|
|
1055
|
+
"sourceHash": {
|
|
1056
|
+
"type": ["string", "null"],
|
|
1057
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
1058
|
+
"description": "sha256 hex of the source's bytes when render was last produced from it, or for a mermaid or excalidraw diagram without a render, when the source was last pinned. 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."
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"patternProperties": {
|
|
1062
|
+
"^x-": true
|
|
1063
|
+
},
|
|
1064
|
+
"additionalProperties": false
|
|
1065
|
+
},
|
|
1066
|
+
"diagramRenderer": {
|
|
1067
|
+
"type": "object",
|
|
1068
|
+
"description": "The renderer a diagram's render was made with. chant records the pin; it never installs or runs the renderer (ws-052).",
|
|
1069
|
+
"required": [
|
|
1070
|
+
"tool",
|
|
1071
|
+
"version"
|
|
1072
|
+
],
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"tool": {
|
|
1075
|
+
"enum": ["d2", "mermaid", "graphviz", "excalidraw"]
|
|
1076
|
+
},
|
|
1077
|
+
"version": {
|
|
1078
|
+
"$ref": "#/$defs/version",
|
|
1079
|
+
"description": "The exact release the render was made with, such as 0.9.0. For mermaid or excalidraw, the release of the library a reader draws the source with, such as 11.4.1."
|
|
1080
|
+
},
|
|
1081
|
+
"args": {
|
|
1082
|
+
"type": "array",
|
|
1083
|
+
"description": "Passed before the input and output paths, in order, such as [\"--layout=elk\", \"--theme=0\", \"--pad=40\", \"--omit-version\"]. Empty when absent.",
|
|
1084
|
+
"items": {
|
|
1085
|
+
"type": "string"
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
},
|
|
1089
|
+
"patternProperties": {
|
|
1090
|
+
"^x-": true
|
|
1091
|
+
},
|
|
1092
|
+
"additionalProperties": false
|
|
1093
|
+
},
|
|
1094
|
+
"generatedFile": {
|
|
1095
|
+
"type": "object",
|
|
1096
|
+
"description": "One generated file of a member (#2524 D14, #2541).",
|
|
1097
|
+
"required": [
|
|
1098
|
+
"path",
|
|
1099
|
+
"generator"
|
|
1100
|
+
],
|
|
1101
|
+
"properties": {
|
|
1102
|
+
"path": {
|
|
1103
|
+
"$ref": "#/$defs/path",
|
|
1104
|
+
"description": "The file, relative to the member's directory."
|
|
1105
|
+
},
|
|
1106
|
+
"generator": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"minLength": 1,
|
|
1109
|
+
"description": "The command line that writes the file, run in the member's directory with the member's own node_modules/.bin first on PATH, such as chant build ci --lexicon github -o ci.yml. When it passes -o or --output with this file's path, chant workspace check --generated points that flag at a temporary file. Otherwise the generator writes in place and check restores the tree afterwards."
|
|
1110
|
+
},
|
|
1111
|
+
"sources": {
|
|
1112
|
+
"type": "array",
|
|
1113
|
+
"description": "The files or directories the generator reads, relative to the workspace root, since a generator often reads other members.",
|
|
1114
|
+
"items": {
|
|
1115
|
+
"$ref": "#/$defs/path"
|
|
1116
|
+
}
|
|
1117
|
+
},
|
|
1118
|
+
"handWritten": {
|
|
1119
|
+
"type": "object",
|
|
1120
|
+
"description": "The file is kept by hand instead of regenerated. chant workspace check reports it with the reason and never runs its generator, and the lock classes it owned.",
|
|
1121
|
+
"required": [
|
|
1122
|
+
"because"
|
|
1123
|
+
],
|
|
1124
|
+
"properties": {
|
|
1125
|
+
"because": {
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"minLength": 1
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"patternProperties": {
|
|
1131
|
+
"^x-": true
|
|
1132
|
+
},
|
|
1133
|
+
"additionalProperties": false
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
"patternProperties": {
|
|
1137
|
+
"^x-": true
|
|
1138
|
+
},
|
|
1139
|
+
"additionalProperties": false
|
|
1140
|
+
},
|
|
1141
|
+
"pin": {
|
|
1142
|
+
"description": "An npm package at an exact version, or a local plugin by path. integrity is a Subresource Integrity digest.",
|
|
1143
|
+
"oneOf": [
|
|
1144
|
+
{
|
|
1145
|
+
"type": "object",
|
|
1146
|
+
"required": [
|
|
1147
|
+
"package",
|
|
1148
|
+
"version"
|
|
1149
|
+
],
|
|
1150
|
+
"properties": {
|
|
1151
|
+
"package": {
|
|
1152
|
+
"type": "string",
|
|
1153
|
+
"pattern": "^(@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"
|
|
1330
1154
|
},
|
|
1331
|
-
"
|
|
1332
|
-
|
|
1155
|
+
"version": {
|
|
1156
|
+
"$ref": "#/$defs/version"
|
|
1333
1157
|
},
|
|
1334
|
-
"
|
|
1158
|
+
"integrity": {
|
|
1159
|
+
"type": "string",
|
|
1160
|
+
"pattern": "^sha(256|384|512)-[A-Za-z0-9+/]+={0,2}$"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
"patternProperties": {
|
|
1164
|
+
"^x-": true
|
|
1165
|
+
},
|
|
1166
|
+
"additionalProperties": false
|
|
1335
1167
|
},
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
"
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
"$ref": "#/$defs/protectedPath"
|
|
1345
|
-
}
|
|
1346
|
-
},
|
|
1347
|
-
"records": {
|
|
1348
|
-
"$ref": "#/$defs/recordScope",
|
|
1349
|
-
"description": "The record kinds an agent may write, and how. Without it, every kind in reach of its member, with every verb."
|
|
1350
|
-
}
|
|
1351
|
-
},
|
|
1352
|
-
"patternProperties": {
|
|
1353
|
-
"^x-": true
|
|
1168
|
+
{
|
|
1169
|
+
"type": "object",
|
|
1170
|
+
"required": [
|
|
1171
|
+
"path"
|
|
1172
|
+
],
|
|
1173
|
+
"properties": {
|
|
1174
|
+
"path": {
|
|
1175
|
+
"$ref": "#/$defs/dir"
|
|
1354
1176
|
},
|
|
1355
|
-
"
|
|
1177
|
+
"integrity": {
|
|
1178
|
+
"type": "string",
|
|
1179
|
+
"pattern": "^sha(256|384|512)-[A-Za-z0-9+/]+={0,2}$"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"patternProperties": {
|
|
1183
|
+
"^x-": true
|
|
1184
|
+
},
|
|
1185
|
+
"additionalProperties": false
|
|
1186
|
+
}
|
|
1187
|
+
]
|
|
1188
|
+
},
|
|
1189
|
+
"host": {
|
|
1190
|
+
"type": "object",
|
|
1191
|
+
"description": "A host boxes run on (#2727).",
|
|
1192
|
+
"required": [
|
|
1193
|
+
"name",
|
|
1194
|
+
"ports"
|
|
1195
|
+
],
|
|
1196
|
+
"properties": {
|
|
1197
|
+
"name": {
|
|
1198
|
+
"$ref": "#/$defs/name",
|
|
1199
|
+
"description": "The host's name, unique among hosts. A box block names it in host."
|
|
1356
1200
|
},
|
|
1357
|
-
"
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
"
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
"member"
|
|
1370
|
-
]
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"properties": {
|
|
1374
|
-
"members": true
|
|
1375
|
-
},
|
|
1376
|
-
"required": [
|
|
1377
|
-
"members"
|
|
1378
|
-
]
|
|
1379
|
-
}
|
|
1380
|
-
],
|
|
1381
|
-
"properties": {
|
|
1382
|
-
"name": {
|
|
1383
|
-
"$ref": "#/$defs/name",
|
|
1384
|
-
"description": "The session's name, unique among agents: what CHANT_AGENT and a Chant-Agent trailer give."
|
|
1385
|
-
},
|
|
1386
|
-
"member": {
|
|
1387
|
-
"$ref": "#/$defs/name",
|
|
1388
|
-
"description": "The one member the session is bound to. It must be a declared member, not an example group. A session bound to several names them with members instead."
|
|
1389
|
-
},
|
|
1390
|
-
"members": {
|
|
1391
|
-
"type": "array",
|
|
1392
|
-
"minItems": 1,
|
|
1393
|
-
"uniqueItems": true,
|
|
1394
|
-
"items": {
|
|
1395
|
-
"$ref": "#/$defs/name"
|
|
1396
|
-
},
|
|
1397
|
-
"description": "The members the session is bound to, when it writes in more than one, such as a factory that builds an app and writes its evidence records in a design member (ws-101, arugula-salad/studio#402). Each must be a declared member, not an example group. The session may write the files of any of them and the records of kinds any of them or the workspace declares, and the write scope is judged against all of them together. Added in schema 1 by chant 0.105.0, so a declaration that uses it sets minReader to 0.105.0 or newer."
|
|
1398
|
-
},
|
|
1399
|
-
"principals": {
|
|
1400
|
-
"type": "array",
|
|
1401
|
-
"uniqueItems": true,
|
|
1402
|
-
"items": {
|
|
1403
|
-
"type": "string",
|
|
1404
|
-
"minLength": 1
|
|
1405
|
-
},
|
|
1406
|
-
"description": "Principals that write only as this session: a commit attested by one, or a write whose by names one, is judged as the session. A principal is listed by one session at most."
|
|
1407
|
-
}
|
|
1201
|
+
"ports": {
|
|
1202
|
+
"type": "object",
|
|
1203
|
+
"description": "The TCP ports boxes on this host take theirs from. Slot n owns the block from + n * perBox to from + (n + 1) * perBox - 1, which must end at or before to.",
|
|
1204
|
+
"required": [
|
|
1205
|
+
"from",
|
|
1206
|
+
"to",
|
|
1207
|
+
"perBox"
|
|
1208
|
+
],
|
|
1209
|
+
"properties": {
|
|
1210
|
+
"from": {
|
|
1211
|
+
"$ref": "#/$defs/port",
|
|
1212
|
+
"description": "The first port of the range."
|
|
1408
1213
|
},
|
|
1409
|
-
"
|
|
1410
|
-
|
|
1214
|
+
"to": {
|
|
1215
|
+
"$ref": "#/$defs/port",
|
|
1216
|
+
"description": "The last port of the range, inclusive."
|
|
1411
1217
|
},
|
|
1412
|
-
"
|
|
1218
|
+
"perBox": {
|
|
1219
|
+
"type": "integer",
|
|
1220
|
+
"minimum": 1,
|
|
1221
|
+
"maximum": 65535,
|
|
1222
|
+
"description": "How many ports each box's block holds. A box's port offsets are below it."
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"additionalProperties": false
|
|
1413
1226
|
},
|
|
1414
|
-
"
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1227
|
+
"stateRoot": {
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"minLength": 1,
|
|
1230
|
+
"description": "Where boxes on this host keep state, as an environment reference such as ${XDG_STATE_HOME}/chant/boxes, which the runtime expands on the machine. A box's state directory is <stateRoot>/<member name>. A literal machine path, such as /Users/... or anything under $HOME, is a WSP124 finding. Default ${XDG_STATE_HOME}/chant/boxes."
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"patternProperties": {
|
|
1234
|
+
"^x-": true
|
|
1235
|
+
},
|
|
1236
|
+
"additionalProperties": false
|
|
1237
|
+
},
|
|
1238
|
+
"port": {
|
|
1239
|
+
"type": "integer",
|
|
1240
|
+
"minimum": 1,
|
|
1241
|
+
"maximum": 65535
|
|
1242
|
+
},
|
|
1243
|
+
"fileGlob": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"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.",
|
|
1246
|
+
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
1247
|
+
},
|
|
1248
|
+
"recordScope": {
|
|
1249
|
+
"type": "object",
|
|
1250
|
+
"description": "Record kind names, as the kind file's recordKind.name or the name the declaration gives it, each with the verbs the class may write it with: new, amend, review and close (a review session). A kind left out may not be written at all. A record file a commit deletes is never in scope.",
|
|
1251
|
+
"propertyNames": {
|
|
1252
|
+
"$ref": "#/$defs/kindName"
|
|
1253
|
+
},
|
|
1254
|
+
"additionalProperties": {
|
|
1255
|
+
"type": "array",
|
|
1256
|
+
"uniqueItems": true,
|
|
1257
|
+
"items": {
|
|
1258
|
+
"enum": [
|
|
1259
|
+
"new",
|
|
1260
|
+
"amend",
|
|
1261
|
+
"review",
|
|
1262
|
+
"close"
|
|
1263
|
+
]
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
"protectedPath": {
|
|
1268
|
+
"description": "A protected path: a glob from the workspace root, or { path, except } for a JSON file whose listed top-level keys, or the values JSON Pointers name, may still change.",
|
|
1269
|
+
"oneOf": [
|
|
1270
|
+
{
|
|
1271
|
+
"$ref": "#/$defs/fileGlob"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"type": "object",
|
|
1275
|
+
"required": [
|
|
1276
|
+
"path"
|
|
1277
|
+
],
|
|
1278
|
+
"properties": {
|
|
1279
|
+
"path": {
|
|
1280
|
+
"$ref": "#/$defs/fileGlob"
|
|
1454
1281
|
},
|
|
1455
|
-
"
|
|
1456
|
-
|
|
1282
|
+
"except": {
|
|
1283
|
+
"type": "array",
|
|
1284
|
+
"minItems": 1,
|
|
1285
|
+
"uniqueItems": true,
|
|
1286
|
+
"description": "What a write may change in the JSON file: a top-level key, or, for an entry starting with /, the values a JSON Pointer matches, where a * token matches every key or array index at its level, such as /members/*/box/listing for every box's listing (#3308). A change anywhere else in the file, or to a file that doesn't parse as a JSON object before and after, is still outside the scope.",
|
|
1287
|
+
"items": {
|
|
1288
|
+
"type": "string",
|
|
1289
|
+
"minLength": 1
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
"patternProperties": {
|
|
1294
|
+
"^x-": true
|
|
1295
|
+
},
|
|
1296
|
+
"additionalProperties": false
|
|
1297
|
+
}
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1300
|
+
"classScope": {
|
|
1301
|
+
"type": "object",
|
|
1302
|
+
"description": "A principal class's write scope.",
|
|
1303
|
+
"properties": {
|
|
1304
|
+
"members": {
|
|
1305
|
+
"description": "The members whose files the class may write, by name, or * for every path. Without it, every path. A path in no member is in scope only under *.",
|
|
1306
|
+
"oneOf": [
|
|
1307
|
+
{
|
|
1308
|
+
"const": "*"
|
|
1457
1309
|
},
|
|
1458
|
-
|
|
1310
|
+
{
|
|
1311
|
+
"type": "array",
|
|
1312
|
+
"uniqueItems": true,
|
|
1313
|
+
"items": {
|
|
1314
|
+
"$ref": "#/$defs/name"
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
]
|
|
1318
|
+
},
|
|
1319
|
+
"protected": {
|
|
1320
|
+
"type": "array",
|
|
1321
|
+
"description": "Paths the class may not write, even inside a member it may (#3146, ws-077): each a glob from the workspace root, or { path, except } for a JSON file the class may change only in the top-level keys except names. An entry protects the files it matches and everything under a directory it matches. A record file is judged by records, not here. Added in schema 1 by chant 0.102.0, so a declaration that uses it sets minReader to 0.102.0 or newer.",
|
|
1322
|
+
"items": {
|
|
1323
|
+
"$ref": "#/$defs/protectedPath"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
"records": {
|
|
1327
|
+
"$ref": "#/$defs/recordScope",
|
|
1328
|
+
"description": "The record kinds the class may write, and how. Without it, every kind in reach, with every verb. A kind a member declares is in reach when that member is; the workspace's own kinds always are."
|
|
1329
|
+
}
|
|
1330
|
+
},
|
|
1331
|
+
"patternProperties": {
|
|
1332
|
+
"^x-": true
|
|
1333
|
+
},
|
|
1334
|
+
"additionalProperties": false
|
|
1335
|
+
},
|
|
1336
|
+
"agentScope": {
|
|
1337
|
+
"type": "object",
|
|
1338
|
+
"description": "The agent class's write scope. Its members are always the members its session is bound to, so only the record kinds and the protected paths can be set.",
|
|
1339
|
+
"properties": {
|
|
1340
|
+
"protected": {
|
|
1341
|
+
"type": "array",
|
|
1342
|
+
"description": "Paths the class may not write, even inside a member it may (#3146, ws-077): each a glob from the workspace root, or { path, except } for a JSON file the class may change only in the top-level keys except names. An entry protects the files it matches and everything under a directory it matches. A record file is judged by records, not here. Added in schema 1 by chant 0.102.0, so a declaration that uses it sets minReader to 0.102.0 or newer.",
|
|
1343
|
+
"items": {
|
|
1344
|
+
"$ref": "#/$defs/protectedPath"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
"records": {
|
|
1348
|
+
"$ref": "#/$defs/recordScope",
|
|
1349
|
+
"description": "The record kinds an agent may write, and how. Without it, every kind in reach of its member, with every verb."
|
|
1350
|
+
}
|
|
1351
|
+
},
|
|
1352
|
+
"patternProperties": {
|
|
1353
|
+
"^x-": true
|
|
1354
|
+
},
|
|
1355
|
+
"additionalProperties": false
|
|
1356
|
+
},
|
|
1357
|
+
"agent": {
|
|
1358
|
+
"type": "object",
|
|
1359
|
+
"description": "An agent session (#2548). It names its members with exactly one of member and members (ws-101).",
|
|
1360
|
+
"required": [
|
|
1361
|
+
"name"
|
|
1362
|
+
],
|
|
1363
|
+
"oneOf": [
|
|
1364
|
+
{
|
|
1365
|
+
"properties": {
|
|
1366
|
+
"member": true
|
|
1367
|
+
},
|
|
1368
|
+
"required": [
|
|
1369
|
+
"member"
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"properties": {
|
|
1374
|
+
"members": true
|
|
1375
|
+
},
|
|
1376
|
+
"required": [
|
|
1377
|
+
"members"
|
|
1378
|
+
]
|
|
1379
|
+
}
|
|
1380
|
+
],
|
|
1381
|
+
"properties": {
|
|
1382
|
+
"name": {
|
|
1383
|
+
"$ref": "#/$defs/name",
|
|
1384
|
+
"description": "The session's name, unique among agents: what CHANT_AGENT and a Chant-Agent trailer give."
|
|
1385
|
+
},
|
|
1386
|
+
"member": {
|
|
1387
|
+
"$ref": "#/$defs/name",
|
|
1388
|
+
"description": "The one member the session is bound to. It must be a declared member, not an example group. A session bound to several names them with members instead."
|
|
1459
1389
|
},
|
|
1460
|
-
"
|
|
1390
|
+
"members": {
|
|
1391
|
+
"type": "array",
|
|
1392
|
+
"minItems": 1,
|
|
1393
|
+
"uniqueItems": true,
|
|
1394
|
+
"items": {
|
|
1395
|
+
"$ref": "#/$defs/name"
|
|
1396
|
+
},
|
|
1397
|
+
"description": "The members the session is bound to, when it writes in more than one, such as a factory that builds an app and writes its evidence records in a design member (ws-101, arugula-salad/studio#402). Each must be a declared member, not an example group. The session may write the files of any of them and the records of kinds any of them or the workspace declares, and the write scope is judged against all of them together. Added in schema 1 by chant 0.105.0, so a declaration that uses it sets minReader to 0.105.0 or newer."
|
|
1398
|
+
},
|
|
1399
|
+
"principals": {
|
|
1400
|
+
"type": "array",
|
|
1401
|
+
"uniqueItems": true,
|
|
1402
|
+
"items": {
|
|
1461
1403
|
"type": "string",
|
|
1462
|
-
"
|
|
1404
|
+
"minLength": 1
|
|
1405
|
+
},
|
|
1406
|
+
"description": "Principals that write only as this session: a commit attested by one, or a write whose by names one, is judged as the session. A principal is listed by one session at most."
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
"patternProperties": {
|
|
1410
|
+
"^x-": true
|
|
1411
|
+
},
|
|
1412
|
+
"additionalProperties": false
|
|
1413
|
+
},
|
|
1414
|
+
"ciGreen": {
|
|
1415
|
+
"type": "object",
|
|
1416
|
+
"description": "Which commits passed CI (#3573, ws-103). chant ci tick tags each first-parent commit of branch, within window, whose required phases all passed with ci/green/<sha>, and a green commit that later fails a required phase with ci/revoked/<sha>. Both are annotated tags made once and never moved or deleted by chant. chant ci last-green prints the newest commit with a green tag and no revoked tag.",
|
|
1417
|
+
"required": [
|
|
1418
|
+
"branch",
|
|
1419
|
+
"phases",
|
|
1420
|
+
"require"
|
|
1421
|
+
],
|
|
1422
|
+
"properties": {
|
|
1423
|
+
"branch": {
|
|
1424
|
+
"type": "string",
|
|
1425
|
+
"minLength": 1,
|
|
1426
|
+
"pattern": "^[^\\s~^:?*\\[\\\\]+$",
|
|
1427
|
+
"description": "The branch whose commits are tagged, such as main. Only its first-parent commits count."
|
|
1463
1428
|
},
|
|
1464
|
-
"
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
"type": "object",
|
|
1471
|
-
"required": [
|
|
1472
|
-
"runs"
|
|
1473
|
-
],
|
|
1474
|
-
"properties": {
|
|
1475
|
-
"runs": {
|
|
1476
|
-
"$ref": "#/$defs/ciRunPatterns"
|
|
1477
|
-
},
|
|
1478
|
-
"skipped": {
|
|
1479
|
-
"enum": [
|
|
1480
|
-
"pass",
|
|
1481
|
-
"fail"
|
|
1482
|
-
],
|
|
1483
|
-
"description": "What a check run that finished as skipped counts as. fail (the default): it never passes. pass: it passes, for a job a path filter runs only on some commits."
|
|
1484
|
-
}
|
|
1485
|
-
},
|
|
1486
|
-
"patternProperties": {
|
|
1487
|
-
"^x-": true
|
|
1488
|
-
},
|
|
1489
|
-
"additionalProperties": false
|
|
1490
|
-
}
|
|
1491
|
-
]
|
|
1429
|
+
"window": {
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"pattern": "^[1-9][0-9]*(m|h|d)$",
|
|
1432
|
+
"description": "How far back a tick looks, by committer time, such as 24h, 90m or 7d. 24h when absent."
|
|
1492
1433
|
},
|
|
1493
|
-
"
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1434
|
+
"phases": {
|
|
1435
|
+
"type": "object",
|
|
1436
|
+
"minProperties": 1,
|
|
1437
|
+
"description": "The phases, by name. Each is a list of check-run name patterns, or { runs, skipped }. A pattern matches a check run's whole name, with * standing for any run of characters. A phase passes when every check run its patterns match finished with success, judged by each run's latest attempt.",
|
|
1438
|
+
"propertyNames": {
|
|
1439
|
+
"$ref": "#/$defs/ciPhaseName"
|
|
1440
|
+
},
|
|
1441
|
+
"additionalProperties": {
|
|
1442
|
+
"$ref": "#/$defs/ciPhase"
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
"require": {
|
|
1446
|
+
"type": "array",
|
|
1447
|
+
"minItems": 1,
|
|
1448
|
+
"uniqueItems": true,
|
|
1449
|
+
"description": "The phases a commit must pass to be tagged green, by name. Each must be a declared phase.",
|
|
1450
|
+
"items": {
|
|
1451
|
+
"$ref": "#/$defs/ciPhaseName"
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
"patternProperties": {
|
|
1456
|
+
"^x-": true
|
|
1457
|
+
},
|
|
1458
|
+
"additionalProperties": false
|
|
1459
|
+
},
|
|
1460
|
+
"ciPhaseName": {
|
|
1461
|
+
"type": "string",
|
|
1462
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
|
|
1463
|
+
},
|
|
1464
|
+
"ciPhase": {
|
|
1465
|
+
"oneOf": [
|
|
1466
|
+
{
|
|
1467
|
+
"$ref": "#/$defs/ciRunPatterns"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"type": "object",
|
|
1471
|
+
"required": [
|
|
1472
|
+
"runs"
|
|
1473
|
+
],
|
|
1474
|
+
"properties": {
|
|
1475
|
+
"runs": {
|
|
1476
|
+
"$ref": "#/$defs/ciRunPatterns"
|
|
1477
|
+
},
|
|
1478
|
+
"skipped": {
|
|
1479
|
+
"enum": [
|
|
1480
|
+
"pass",
|
|
1481
|
+
"fail"
|
|
1482
|
+
],
|
|
1483
|
+
"description": "What a check run that finished as skipped counts as. fail (the default): it never passes. pass: it passes, for a job a path filter runs only on some commits."
|
|
1501
1484
|
}
|
|
1485
|
+
},
|
|
1486
|
+
"patternProperties": {
|
|
1487
|
+
"^x-": true
|
|
1488
|
+
},
|
|
1489
|
+
"additionalProperties": false
|
|
1502
1490
|
}
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1493
|
+
"ciRunPatterns": {
|
|
1494
|
+
"type": "array",
|
|
1495
|
+
"minItems": 1,
|
|
1496
|
+
"uniqueItems": true,
|
|
1497
|
+
"items": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"minLength": 1,
|
|
1500
|
+
"description": "A check run's name, such as lint, or a pattern with *, such as e2e (*)."
|
|
1501
|
+
}
|
|
1503
1502
|
}
|
|
1503
|
+
}
|
|
1504
1504
|
}
|