@intentius/chant 0.101.0 → 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/checks.d.ts.map +1 -1
- package/dist/attrref.d.ts.map +1 -1
- package/dist/audit/core.d.ts +2 -0
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/discover.d.ts.map +1 -1
- package/dist/audit/nginx.d.ts.map +1 -1
- package/dist/audit/prior-art.d.ts +48 -0
- package/dist/audit/prior-art.d.ts.map +1 -1
- package/dist/behaviour-kinds.d.ts.map +1 -1
- package/dist/builder.d.ts.map +1 -1
- package/dist/change-set.d.ts +232 -0
- package/dist/change-set.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +7 -0
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/carve-emit.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon.d.ts +16 -0
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/import.d.ts +8 -0
- package/dist/cli/commands/import.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts +19 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/onboard.d.ts +9 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -1
- package/dist/cli/commands/pinned-upgrade.d.ts +19 -5
- package/dist/cli/commands/pinned-upgrade.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/change-set.d.ts +11 -0
- package/dist/cli/handlers/change-set.d.ts.map +1 -0
- package/dist/cli/handlers/dev.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.d.ts +33 -0
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +16 -0
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/pr.d.ts +31 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -0
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/lsp/server.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/op-tools.d.ts.map +1 -1
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/mcp/tools/build.d.ts.map +1 -1
- package/dist/cli/mcp/tools/composites.d.ts.map +1 -1
- package/dist/cli/mcp/tools/explain.d.ts.map +1 -1
- package/dist/cli/mcp/tools/import.d.ts.map +1 -1
- package/dist/cli/mcp/tools/lint.d.ts.map +1 -1
- package/dist/cli/mcp/tools/scaffold.d.ts.map +1 -1
- package/dist/cli/mcp/tools/search.d.ts.map +1 -1
- package/dist/cli/mcp/workspace-tools.d.ts +4 -3
- package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +74 -3
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/codegen/fetch.d.ts.map +1 -1
- package/dist/codegen/naming.d.ts.map +1 -1
- package/dist/codegen/pinned-upgrade.d.ts +67 -3
- package/dist/codegen/pinned-upgrade.d.ts.map +1 -1
- package/dist/codegen/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts +16 -0
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/capability-plugin-loader.d.ts.map +1 -1
- package/dist/components/capability.d.ts +53 -0
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/changed-files.d.ts +31 -0
- package/dist/components/changed-files.d.ts.map +1 -0
- package/dist/components/cli-support.d.ts +9 -1
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/component.d.ts +24 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/deploy-units.d.ts.map +1 -1
- package/dist/components/driver.d.ts +13 -0
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/fan-out-output.d.ts +6 -0
- package/dist/components/fan-out-output.d.ts.map +1 -1
- package/dist/components/fan-out-record.d.ts +41 -0
- package/dist/components/fan-out-record.d.ts.map +1 -0
- package/dist/components/fan-out-run.d.ts +65 -0
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-support.d.ts +2 -0
- package/dist/components/fan-out-support.d.ts.map +1 -1
- package/dist/components/fan-out.d.ts +6 -0
- package/dist/components/fan-out.d.ts.map +1 -1
- package/dist/components/gated-wave-pipeline.d.ts +50 -0
- package/dist/components/gated-wave-pipeline.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layers.d.ts +25 -0
- package/dist/components/layers.d.ts.map +1 -0
- package/dist/components/pr-pipeline.d.ts +61 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -0
- package/dist/components/pr-run.d.ts +119 -0
- package/dist/components/pr-run.d.ts.map +1 -0
- package/dist/components/promote.d.ts.map +1 -1
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/components/verbs/process-runner.d.ts.map +1 -1
- package/dist/components/verbs/r2-sync.d.ts.map +1 -1
- package/dist/components/verbs/run-agent.d.ts.map +1 -1
- package/dist/components/verbs/sbom-generator.d.ts.map +1 -1
- package/dist/components/verbs/shell.d.ts.map +1 -1
- package/dist/components/verbs/sign.d.ts.map +1 -1
- package/dist/components/verbs/verify.d.ts.map +1 -1
- package/dist/components/verbs/vuln-gate.d.ts.map +1 -1
- package/dist/components/verbs/vuln-scan.d.ts.map +1 -1
- package/dist/components/verbs/wrangler.d.ts.map +1 -1
- package/dist/components/wave-plan.d.ts +49 -0
- package/dist/components/wave-plan.d.ts.map +1 -0
- package/dist/composite.d.ts.map +1 -1
- package/dist/config.d.ts +19 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/declarable.d.ts +16 -0
- package/dist/declarable.d.ts.map +1 -1
- package/dist/discovery/cache.d.ts.map +1 -1
- package/dist/discovery/fold-import.d.ts +15 -5
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/discovery/param-deps.d.ts +16 -0
- package/dist/discovery/param-deps.d.ts.map +1 -1
- package/dist/discovery/sandbox/policy-wire.d.ts.map +1 -1
- package/dist/discovery/specifier-resolve.d.ts +37 -0
- package/dist/discovery/specifier-resolve.d.ts.map +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/fold/fold.d.ts +3 -1
- package/dist/fold/fold.d.ts.map +1 -1
- package/dist/gated-waves.d.ts +147 -0
- package/dist/gated-waves.d.ts.map +1 -0
- package/dist/graph-detail.d.ts.map +1 -1
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-layout.d.ts.map +1 -1
- package/dist/import/base-parser.d.ts.map +1 -1
- package/dist/import/embedded.d.ts +7 -0
- package/dist/import/embedded.d.ts.map +1 -1
- package/dist/import/parser-options.d.ts +14 -0
- package/dist/import/parser-options.d.ts.map +1 -0
- package/dist/import/parser.d.ts +17 -0
- package/dist/import/parser.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kubectl-context.d.ts.map +1 -1
- package/dist/lexicon-output.d.ts.map +1 -1
- package/dist/lexicon-schema.d.ts +3 -3
- package/dist/lexicon.d.ts +103 -3
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/assert-live.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +22 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +46 -1
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/member-ledger.d.ts.map +1 -1
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/plan-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/scenario.d.ts.map +1 -1
- package/dist/lifecycle/status.d.ts.map +1 -1
- package/dist/lifecycle/work-lease.d.ts +61 -2
- package/dist/lifecycle/work-lease.d.ts.map +1 -1
- package/dist/lint/config.d.ts +8 -8
- package/dist/lint/engine.d.ts +6 -0
- package/dist/lint/engine.d.ts.map +1 -1
- package/dist/lint/post-synth.d.ts +18 -0
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/lsp/lexicon-providers.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.d.ts +137 -11
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/apply.d.ts +79 -9
- package/dist/op/activities/apply.d.ts.map +1 -1
- package/dist/op/activities/change-set.d.ts +62 -0
- package/dist/op/activities/change-set.d.ts.map +1 -0
- package/dist/op/activities/decide.d.ts +2 -0
- package/dist/op/activities/decide.d.ts.map +1 -1
- package/dist/op/activities/factory.d.ts +137 -0
- package/dist/op/activities/factory.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +5 -1
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/lexicon-upgrade.d.ts +44 -12
- package/dist/op/activities/lexicon-upgrade.d.ts.map +1 -1
- package/dist/op/activity-contract.d.ts +1 -1
- package/dist/op/activity-contract.d.ts.map +1 -1
- package/dist/op/activity-failure.d.ts.map +1 -1
- package/dist/op/activity-profiles.d.ts.map +1 -1
- package/dist/op/builders.d.ts +11 -0
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/composites/apply-op.d.ts +12 -5
- package/dist/op/composites/apply-op.d.ts.map +1 -1
- package/dist/op/composites/lexicon-upgrade-op.d.ts +22 -6
- package/dist/op/composites/lexicon-upgrade-op.d.ts.map +1 -1
- package/dist/op/decide-backend.d.ts +5 -1
- package/dist/op/decide-backend.d.ts.map +1 -1
- package/dist/op/decide-read-inputs.d.ts +4 -2
- package/dist/op/decide-read-inputs.d.ts.map +1 -1
- package/dist/op/emulator-lifecycle.d.ts +21 -2
- package/dist/op/emulator-lifecycle.d.ts.map +1 -1
- package/dist/op/factory.d.ts +83 -0
- package/dist/op/factory.d.ts.map +1 -0
- package/dist/op/gate-approval.d.ts +5 -1
- package/dist/op/gate-approval.d.ts.map +1 -1
- package/dist/op/gate-wait.d.ts.map +1 -1
- package/dist/op/gate.d.ts +19 -3
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/index.d.ts +6 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/local-executor.d.ts +6 -0
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/op-ir.d.ts +2 -0
- package/dist/op/op-ir.d.ts.map +1 -1
- package/dist/op/op-verb-class.d.ts.map +1 -1
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/run-context.d.ts +39 -0
- package/dist/op/run-context.d.ts.map +1 -0
- package/dist/op/run-live.d.ts.map +1 -1
- package/dist/op/runtimes/local.d.ts.map +1 -1
- package/dist/op/source-archive.d.ts.map +1 -1
- package/dist/op/steward-beside.d.ts.map +1 -1
- package/dist/op/steward-points.d.ts.map +1 -1
- package/dist/op/steward.d.ts.map +1 -1
- package/dist/op/types.d.ts +16 -3
- package/dist/op/types.d.ts.map +1 -1
- package/dist/op/work-lease-run.d.ts +24 -4
- package/dist/op/work-lease-run.d.ts.map +1 -1
- package/dist/plan-summary.d.ts +207 -0
- package/dist/plan-summary.d.ts.map +1 -0
- package/dist/pr-forge.d.ts +105 -0
- package/dist/pr-forge.d.ts.map +1 -0
- package/dist/pr-loop.d.ts +178 -0
- package/dist/pr-loop.d.ts.map +1 -0
- package/dist/project-root.d.ts.map +1 -1
- package/dist/provenance.d.ts +21 -0
- package/dist/provenance.d.ts.map +1 -1
- package/dist/pseudo-parameter.d.ts.map +1 -1
- package/dist/reconcile.d.ts.map +1 -1
- package/dist/secret-materialization.d.ts.map +1 -1
- package/dist/telemetry-attribution.d.ts +31 -0
- package/dist/telemetry-attribution.d.ts.map +1 -1
- package/dist/terraform/emit-source.d.ts.map +1 -1
- package/dist/terraform/hcl2json.d.ts +45 -0
- package/dist/terraform/hcl2json.d.ts.map +1 -0
- package/dist/terraform/parse.d.ts +4 -40
- package/dist/terraform/parse.d.ts.map +1 -1
- package/dist/testing.d.ts.map +1 -1
- package/dist/workspace/__fixtures__/contract-repo.d.ts.map +1 -1
- package/dist/workspace/__fixtures__/decide-workspace.d.ts +1 -1
- package/dist/workspace/__fixtures__/decide-workspace.d.ts.map +1 -1
- package/dist/workspace/agent-cli.d.ts +5 -0
- package/dist/workspace/agent-cli.d.ts.map +1 -1
- package/dist/workspace/box-cli.d.ts +12 -0
- package/dist/workspace/box-cli.d.ts.map +1 -0
- package/dist/workspace/box-factory.d.ts +97 -0
- package/dist/workspace/box-factory.d.ts.map +1 -0
- package/dist/workspace/box-listing.d.ts +85 -0
- package/dist/workspace/box-listing.d.ts.map +1 -0
- package/dist/workspace/box-publish.d.ts +147 -0
- package/dist/workspace/box-publish.d.ts.map +1 -0
- package/dist/workspace/broker-protocol.d.ts +190 -0
- package/dist/workspace/broker-protocol.d.ts.map +1 -0
- package/dist/workspace/changes.d.ts.map +1 -1
- package/dist/workspace/chant-migrations/chud-lexicon-exit.d.ts.map +1 -1
- package/dist/workspace/checks/boxes.d.ts.map +1 -1
- package/dist/workspace/checks.d.ts +5 -0
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/compose-graph.d.ts +10 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +2 -2
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/conformance/__fixtures__/reference-broker.d.ts +17 -0
- package/dist/workspace/conformance/__fixtures__/reference-broker.d.ts.map +1 -0
- package/dist/workspace/conformance/broker.d.ts +202 -0
- package/dist/workspace/conformance/broker.d.ts.map +1 -0
- package/dist/workspace/conformance/index.d.ts +68 -6
- package/dist/workspace/conformance/index.d.ts.map +1 -1
- package/dist/workspace/conformance/vitest.d.ts +19 -3
- package/dist/workspace/conformance/vitest.d.ts.map +1 -1
- package/dist/workspace/conformance/writer.d.ts +462 -0
- package/dist/workspace/conformance/writer.d.ts.map +1 -0
- package/dist/workspace/decide.d.ts +126 -12
- package/dist/workspace/decide.d.ts.map +1 -1
- package/dist/workspace/decision-points.schema.json +11 -4
- package/dist/workspace/declaration.d.ts +156 -4
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.schema.json +383 -5
- package/dist/workspace/environments.d.ts +36 -10
- package/dist/workspace/environments.d.ts.map +1 -1
- package/dist/workspace/factory-rules.d.ts +180 -0
- package/dist/workspace/factory-rules.d.ts.map +1 -0
- package/dist/workspace/generated-files.d.ts.map +1 -1
- package/dist/workspace/graph-cache.d.ts.map +1 -1
- package/dist/workspace/graph-cli.d.ts +2 -0
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/identity.d.ts +111 -0
- package/dist/workspace/identity.d.ts.map +1 -0
- package/dist/workspace/init.d.ts +21 -0
- package/dist/workspace/init.d.ts.map +1 -1
- package/dist/workspace/intent-cli.d.ts +7 -4
- package/dist/workspace/intent-cli.d.ts.map +1 -1
- package/dist/workspace/intent-record.d.ts +36 -2
- package/dist/workspace/intent-record.d.ts.map +1 -1
- package/dist/workspace/intent.d.ts +249 -8
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/json-edit.d.ts +24 -0
- package/dist/workspace/json-edit.d.ts.map +1 -0
- package/dist/workspace/jsonc.d.ts +11 -0
- package/dist/workspace/jsonc.d.ts.map +1 -1
- package/dist/workspace/kinds.d.ts +66 -4
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/lexicon-symbols.d.ts +29 -0
- package/dist/workspace/lexicon-symbols.d.ts.map +1 -0
- package/dist/workspace/lineage-hash-index.d.ts.map +1 -1
- package/dist/workspace/lineage-lock.d.ts +2 -2
- package/dist/workspace/lineage-lock.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade.d.ts +31 -2
- package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
- package/dist/workspace/links.d.ts.map +1 -1
- package/dist/workspace/point-answer.schema.json +42 -2
- package/dist/workspace/points-cli.d.ts +10 -3
- package/dist/workspace/points-cli.d.ts.map +1 -1
- package/dist/workspace/points.d.ts +66 -5
- package/dist/workspace/points.d.ts.map +1 -1
- package/dist/workspace/principal-classes.d.ts +114 -0
- package/dist/workspace/principal-classes.d.ts.map +1 -0
- package/dist/workspace/reason-codes.d.ts +53 -4
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/record-assets.d.ts.map +1 -1
- package/dist/workspace/record-sessions.d.ts +5 -7
- package/dist/workspace/record-sessions.d.ts.map +1 -1
- package/dist/workspace/records-checkout.d.ts +54 -0
- package/dist/workspace/records-checkout.d.ts.map +1 -0
- package/dist/workspace/records-cli.d.ts +34 -1
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-close.d.ts +7 -3
- package/dist/workspace/records-close.d.ts.map +1 -1
- package/dist/workspace/records-since.d.ts.map +1 -1
- package/dist/workspace/records-write.d.ts +68 -7
- package/dist/workspace/records-write.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +43 -9
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/runs-cli.d.ts +296 -0
- package/dist/workspace/runs-cli.d.ts.map +1 -0
- package/dist/workspace/runs.d.ts +544 -0
- package/dist/workspace/runs.d.ts.map +1 -0
- package/dist/workspace/session-kinds.d.ts +1 -1
- package/dist/workspace/session-kinds.d.ts.map +1 -1
- package/dist/workspace/source-block.d.ts +1 -1
- package/dist/workspace/source-block.d.ts.map +1 -1
- package/dist/workspace/squash.d.ts +80 -0
- package/dist/workspace/squash.d.ts.map +1 -0
- package/dist/workspace/status-gates.d.ts +17 -3
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +64 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/symbols.d.ts +63 -0
- package/dist/workspace/symbols.d.ts.map +1 -0
- package/dist/workspace/trailer-joins.d.ts +46 -0
- package/dist/workspace/trailer-joins.d.ts.map +1 -0
- package/dist/workspace/trailers.d.ts +89 -0
- package/dist/workspace/trailers.d.ts.map +1 -0
- package/dist/workspace/trust/attestor.d.ts.map +1 -1
- package/dist/workspace/trust/rotation.d.ts.map +1 -1
- package/dist/workspace/trust/run-commits.d.ts +46 -0
- package/dist/workspace/trust/run-commits.d.ts.map +1 -0
- package/dist/workspace/trust/run-statement.d.ts +128 -0
- package/dist/workspace/trust/run-statement.d.ts.map +1 -0
- package/dist/workspace/trust/seal.d.ts +38 -0
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/test-repo.d.ts.map +1 -1
- package/dist/workspace/trust/verify-cli.d.ts +1 -1
- package/dist/workspace/trust/verify.d.ts +16 -2
- package/dist/workspace/trust/verify.d.ts.map +1 -1
- package/dist/workspace/wip-cli.d.ts +21 -0
- package/dist/workspace/wip-cli.d.ts.map +1 -0
- package/dist/workspace/wip.d.ts +268 -0
- package/dist/workspace/wip.d.ts.map +1 -0
- package/dist/workspace/work-cli.d.ts +39 -3
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-evidence.d.ts +1 -1
- package/dist/workspace/work-evidence.d.ts.map +1 -1
- package/dist/workspace/work-size.d.ts +55 -0
- package/dist/workspace/work-size.d.ts.map +1 -0
- package/dist/workspace/work.d.ts +26 -1
- package/dist/workspace/work.d.ts.map +1 -1
- package/dist/workspace/workspace-kinds.schema.json +122 -0
- package/dist/workspace/workspace-principals.schema.json +60 -0
- package/dist/workspace/write-lock-cli.d.ts +60 -0
- package/dist/workspace/write-lock-cli.d.ts.map +1 -0
- package/dist/workspace/write-lock.d.ts +152 -0
- package/dist/workspace/write-lock.d.ts.map +1 -0
- package/dist/workspace/write-scope.d.ts +83 -19
- package/dist/workspace/write-scope.d.ts.map +1 -1
- package/dist/yaml.d.ts +21 -39
- package/dist/yaml.d.ts.map +1 -1
- package/package.json +7 -2
- package/src/__fixtures__/change-set/lifecycle-plan.floci.json +59 -0
- package/src/__fixtures__/change-set/lifecycle-v1.ts.txt +4 -0
- package/src/__fixtures__/change-set/lifecycle-v2.ts.txt +4 -0
- package/src/__fixtures__/change-set/lifecycle.change-set.golden.json +95 -0
- package/src/__fixtures__/change-set/warden.change-set.golden.json +106 -0
- package/src/__fixtures__/change-set/warden.plan.json +44 -0
- package/src/__fixtures__/plan-summary/normalization-vectors.json +1593 -0
- package/src/__fixtures__/pr-loop/pr-apply-applied.note.golden.md +31 -0
- package/src/__fixtures__/pr-loop/pr-apply-refused.note.golden.md +31 -0
- package/src/__fixtures__/pr-loop/pr-plan.golden.json +127 -0
- package/src/__fixtures__/pr-loop/pr-plan.note.golden.md +37 -0
- package/src/audit/core.test.ts +15 -0
- package/src/audit/core.ts +8 -2
- package/src/audit/discover.test.ts +11 -0
- package/src/audit/discover.ts +7 -2
- package/src/audit/prior-art.ts +15 -0
- package/src/change-set-bundle.test.ts +57 -0
- package/src/change-set.test.ts +215 -0
- package/src/change-set.ts +445 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/package.json +1 -1
- package/src/cli/commands/audit-opt-in.test.ts +54 -0
- package/src/cli/commands/audit.ts +29 -2
- package/src/cli/commands/build.test.ts +19 -0
- package/src/cli/commands/build.ts +3 -2
- package/src/cli/commands/carve-emit-state.test.ts +4 -0
- package/src/cli/commands/carve-emit.ts +5 -19
- package/src/cli/commands/check-lexicon.test.ts +62 -1
- package/src/cli/commands/check-lexicon.ts +36 -6
- package/src/cli/commands/import-live.test.ts +18 -0
- package/src/cli/commands/import-parser-options.test.ts +133 -0
- package/src/cli/commands/import.ts +21 -3
- package/src/cli/commands/init-lexicon/templates/project.ts +1 -1
- package/src/cli/commands/init.test.ts +8 -1
- package/src/cli/commands/init.ts +23 -8
- package/src/cli/commands/lint.test.ts +37 -0
- package/src/cli/commands/onboard.test.ts +53 -3
- package/src/cli/commands/onboard.ts +52 -4
- package/src/cli/commands/pinned-upgrade.ts +73 -33
- package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +2 -2
- package/src/cli/handlers/build.ts +13 -1
- package/src/cli/handlers/change-set.test.ts +56 -0
- package/src/cli/handlers/change-set.ts +44 -0
- package/src/cli/handlers/components.ts +2 -2
- package/src/cli/handlers/dev.ts +8 -6
- package/src/cli/handlers/fan-out.test.ts +221 -2
- package/src/cli/handlers/fan-out.ts +165 -75
- package/src/cli/handlers/graph.ts +3 -0
- package/src/cli/handlers/lifecycle.test.ts +67 -0
- package/src/cli/handlers/lifecycle.ts +6 -5
- package/src/cli/handlers/misc.ts +2 -0
- package/src/cli/handlers/operator.test.ts +21 -0
- package/src/cli/handlers/operator.ts +121 -6
- package/src/cli/handlers/pr.ts +373 -0
- package/src/cli/handlers/run.test.ts +111 -0
- package/src/cli/handlers/run.ts +86 -24
- package/src/cli/handlers/scenario.ts +2 -2
- package/src/cli/main.test.ts +21 -0
- package/src/cli/main.ts +246 -30
- package/src/cli/mcp/never-over-mcp.test.ts +101 -0
- package/src/cli/mcp/op-tools.ts +24 -2
- package/src/cli/mcp/workspace-tools.test.ts +5 -2
- package/src/cli/mcp/workspace-tools.ts +62 -7
- package/src/cli/registry.ts +74 -3
- package/src/codegen/pinned-upgrade-multi.test.ts +157 -0
- package/src/codegen/pinned-upgrade-tags.test.ts +112 -0
- package/src/codegen/pinned-upgrade.test.ts +104 -0
- package/src/codegen/pinned-upgrade.ts +250 -56
- package/src/codegen/testdata/postgres-tags.json +242 -0
- package/src/components/auto-release.ts +1 -1
- package/src/components/capability.ts +55 -0
- package/src/components/changed-files.ts +66 -0
- package/src/components/cli-support.ts +28 -5
- package/src/components/component.schema.json +17 -0
- package/src/components/component.ts +25 -0
- package/src/components/deploy-units.ts +3 -0
- package/src/components/driver.test.ts +52 -0
- package/src/components/driver.ts +31 -13
- package/src/components/fan-out-output.ts +42 -1
- package/src/components/fan-out-record.ts +69 -0
- package/src/components/fan-out-run.test.ts +17 -0
- package/src/components/fan-out-run.ts +304 -1
- package/src/components/fan-out-support.ts +3 -0
- package/src/components/fan-out-waves.test.ts +375 -0
- package/src/components/fan-out.ts +18 -17
- package/src/components/gated-wave-pipeline.ts +82 -0
- package/src/components/index.ts +1 -0
- package/src/components/layers.ts +30 -0
- package/src/components/pr-pipeline.ts +91 -0
- package/src/components/pr-run.test.ts +205 -0
- package/src/components/pr-run.ts +280 -0
- package/src/components/promote.ts +5 -0
- package/src/components/verbs/shell.test.ts +11 -0
- package/src/components/verbs/shell.ts +7 -3
- package/src/components/wave-plan.ts +124 -0
- package/src/config.test.ts +21 -0
- package/src/config.ts +15 -0
- package/src/declarable.test.ts +21 -0
- package/src/declarable.ts +19 -0
- package/src/discovery/fold-composite.test.ts +41 -5
- package/src/discovery/fold-import.test.ts +129 -0
- package/src/discovery/fold-import.ts +643 -131
- package/src/discovery/fold-package-composite.test.ts +264 -0
- package/src/discovery/fold-specifiers.test.ts +191 -0
- package/src/discovery/param-deps.test.ts +66 -1
- package/src/discovery/param-deps.ts +45 -0
- package/src/discovery/sandbox/bundle.ts +1 -1
- package/src/discovery/specifier-resolve.ts +344 -0
- package/src/fold/fold.test.ts +39 -1
- package/src/fold/fold.ts +83 -9
- package/src/fold-provenance.test.ts +140 -0
- package/src/gated-waves-bundle.test.ts +62 -0
- package/src/gated-waves.test.ts +118 -0
- package/src/gated-waves.ts +240 -0
- package/src/graph-ir.test.ts +83 -0
- package/src/graph-ir.ts +29 -0
- package/src/import/embedded.test.ts +20 -0
- package/src/import/embedded.ts +13 -0
- package/src/import/parser-options.ts +46 -0
- package/src/import/parser.ts +20 -0
- package/src/index.ts +1 -0
- package/src/lexicon.ts +106 -3
- package/src/lifecycle/gate-ledger.ts +23 -0
- package/src/lifecycle/git.ts +102 -16
- package/src/lifecycle/observe.test.ts +18 -0
- package/src/lifecycle/observe.ts +6 -4
- package/src/lifecycle/snapshot.ts +2 -2
- package/src/lifecycle/work-lease.test.ts +1 -1
- package/src/lifecycle/work-lease.ts +93 -2
- package/src/lint/engine.test.ts +55 -0
- package/src/lint/engine.ts +30 -4
- package/src/lint/output-docs.test.ts +59 -56
- package/src/lint/post-synth.test.ts +19 -0
- package/src/lint/post-synth.ts +19 -1
- package/src/meta/declared-imports.test.ts +1 -1
- package/src/op/activities/activity-contracts.ts +84 -0
- package/src/op/activities/apply.test.ts +189 -5
- package/src/op/activities/apply.ts +230 -8
- package/src/op/activities/change-set.ts +114 -0
- package/src/op/activities/decide.ts +3 -0
- package/src/op/activities/factory.ts +675 -0
- package/src/op/activities/index.ts +9 -0
- package/src/op/activities/lexicon-upgrade.test.ts +160 -6
- package/src/op/activities/lexicon-upgrade.ts +154 -51
- package/src/op/activity-contract.test.ts +21 -1
- package/src/op/activity-contract.ts +19 -9
- package/src/op/builders.ts +23 -0
- package/src/op/composites/apply-op.ts +12 -5
- package/src/op/composites/composites.test.ts +30 -3
- package/src/op/composites/lexicon-upgrade-op.test.ts +7 -2
- package/src/op/composites/lexicon-upgrade-op.ts +29 -8
- package/src/op/decide-backend.ts +5 -1
- package/src/op/decide-read-inputs.ts +33 -5
- package/src/op/emulator-lifecycle.test.ts +23 -0
- package/src/op/emulator-lifecycle.ts +52 -14
- package/src/op/factory.e2e.test.ts +232 -0
- package/src/op/factory.ts +118 -0
- package/src/op/gate-approval.test.ts +74 -0
- package/src/op/gate-approval.ts +5 -1
- package/src/op/gate.ts +31 -5
- package/src/op/index.ts +11 -1
- package/src/op/local-executor.test.ts +15 -0
- package/src/op/local-executor.ts +40 -12
- package/src/op/local-output.ts +1 -1
- package/src/op/op-ir.test.ts +9 -0
- package/src/op/op-ir.ts +4 -0
- package/src/op/op-verb-class.ts +3 -0
- package/src/op/operator.ts +4 -0
- package/src/op/run-context.test.ts +141 -0
- package/src/op/run-context.ts +51 -0
- package/src/op/runtimes/local.test.ts +14 -0
- package/src/op/runtimes/local.ts +2 -0
- package/src/op/steward-beside.ts +2 -0
- package/src/op/types.ts +16 -3
- package/src/op/work-lease-run.test.ts +47 -0
- package/src/op/work-lease-run.ts +76 -11
- package/src/plan-summary.test.ts +263 -0
- package/src/plan-summary.ts +845 -0
- package/src/pr-forge.test.ts +237 -0
- package/src/pr-forge.ts +332 -0
- package/src/pr-loop-bundle.test.ts +46 -0
- package/src/pr-loop.test.ts +171 -0
- package/src/pr-loop.ts +324 -0
- package/src/provenance.ts +35 -0
- package/src/telemetry-attribution.test.ts +23 -1
- package/src/telemetry-attribution.ts +51 -0
- package/src/terraform/hcl2json.test.ts +21 -0
- package/src/terraform/hcl2json.ts +81 -0
- package/src/terraform/parse.ts +11 -74
- package/src/workspace/agent-cli.ts +7 -3
- package/src/workspace/agent.schema.json +22 -0
- package/src/workspace/app-kind.test.ts +196 -0
- package/src/workspace/box-cli.ts +113 -0
- package/src/workspace/box-factory.test.ts +323 -0
- package/src/workspace/box-factory.ts +136 -0
- package/src/workspace/box-listing-write.schema.json +204 -0
- package/src/workspace/box-listing.test.ts +234 -0
- package/src/workspace/box-listing.ts +324 -0
- package/src/workspace/box-publish.schema.json +498 -0
- package/src/workspace/box-publish.test.ts +204 -0
- package/src/workspace/box-publish.ts +420 -0
- package/src/workspace/box-ship.test.ts +96 -0
- package/src/workspace/broker-protocol.schema.json +186 -0
- package/src/workspace/broker-protocol.test.ts +122 -0
- package/src/workspace/broker-protocol.ts +317 -0
- package/src/workspace/builder-tiers.test.ts +146 -0
- package/src/workspace/change-set.schema.json +460 -0
- package/src/workspace/changes.schema.json +12 -20
- package/src/workspace/changes.ts +4 -1
- package/src/workspace/chant-migrations.e2e.test.ts +17 -5
- package/src/workspace/checks/boxes.test.ts +5 -0
- package/src/workspace/checks.ts +39 -8
- package/src/workspace/component-environments.test.ts +105 -0
- package/src/workspace/compose-graph.ts +7 -0
- package/src/workspace/composites.schema.json +23 -4
- package/src/workspace/composites.test.ts +8 -8
- package/src/workspace/composites.ts +13 -2
- package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +2 -2
- package/src/workspace/conformance/__fixtures__/reference-broker.ts +207 -0
- package/src/workspace/conformance/__writer_fixture__/answers/answer.kind.mjs +32 -0
- package/src/workspace/conformance/__writer_fixture__/answers/answer.schema.json +135 -0
- package/src/workspace/conformance/__writer_fixture__/contracts/contract.kind.mjs +37 -0
- package/src/workspace/conformance/__writer_fixture__/contracts/contract.schema.json +213 -0
- package/src/workspace/conformance/__writer_fixture__/decisions/points.json +228 -0
- package/src/workspace/conformance/__writer_fixture__/drivers/driver.kind.mjs +15 -0
- package/src/workspace/conformance/__writer_fixture__/drivers/driver.schema.json +38 -0
- package/src/workspace/conformance/__writer_fixture__/sessions/session.kind.mjs +54 -0
- package/src/workspace/conformance/__writer_fixture__/sessions/session.schema.json +289 -0
- package/src/workspace/conformance/__writer_fixture__/work/W-001-the-writer-suite-works-this-item.md +25 -0
- package/src/workspace/conformance/__writer_fixture__/work/work.kind.mjs +60 -0
- package/src/workspace/conformance/__writer_fixture__/work/work.schema.json +603 -0
- package/src/workspace/conformance/broker.test.ts +122 -0
- package/src/workspace/conformance/broker.ts +792 -0
- package/src/workspace/conformance/conformance.e2e.test.ts +36 -3
- package/src/workspace/conformance/index.mjs +51 -3
- package/src/workspace/conformance/index.ts +107 -15
- package/src/workspace/conformance/vitest.ts +76 -2
- package/src/workspace/conformance/writer-conformance.e2e.test.ts +177 -0
- package/src/workspace/conformance/writer.test.ts +186 -0
- package/src/workspace/conformance/writer.ts +1191 -0
- package/src/workspace/decide.test.ts +208 -4
- package/src/workspace/decide.ts +433 -73
- package/src/workspace/decision-points.schema.json +11 -4
- package/src/workspace/declaration.schema.json +383 -5
- package/src/workspace/declaration.ts +315 -10
- package/src/workspace/environments.ts +66 -14
- package/src/workspace/factory-rules.test.ts +62 -0
- package/src/workspace/factory-rules.ts +218 -0
- package/src/workspace/graph-cli.ts +6 -3
- package/src/workspace/graph.schema.json +314 -0
- package/src/workspace/identity.test.ts +219 -0
- package/src/workspace/identity.ts +186 -0
- package/src/workspace/init.ts +82 -2
- package/src/workspace/intent-cli.ts +84 -13
- package/src/workspace/intent-patch-id.test.ts +162 -0
- package/src/workspace/intent-record.schema.json +336 -1
- package/src/workspace/intent-record.ts +96 -16
- package/src/workspace/intent-reviews.test.ts +76 -0
- package/src/workspace/intent-squash.test.ts +213 -0
- package/src/workspace/intent-why.test.ts +274 -0
- package/src/workspace/intent.schema.json +950 -9
- package/src/workspace/intent.test.ts +11 -2
- package/src/workspace/intent.ts +722 -65
- package/src/workspace/json-edit.test.ts +121 -0
- package/src/workspace/json-edit.ts +142 -0
- package/src/workspace/jsonc.ts +20 -0
- package/src/workspace/kinds.ts +201 -39
- package/src/workspace/lexicon-symbols.test.ts +148 -0
- package/src/workspace/lexicon-symbols.ts +125 -0
- package/src/workspace/lineage-upgrade.test.ts +63 -0
- package/src/workspace/lineage-upgrade.ts +146 -5
- package/src/workspace/plan-summary.schema.json +155 -0
- package/src/workspace/point-answer.schema.json +42 -2
- package/src/workspace/points-cli.ts +42 -16
- package/src/workspace/points-write.schema.json +163 -4
- package/src/workspace/points.schema.json +157 -2
- package/src/workspace/points.test.ts +13 -1
- package/src/workspace/points.ts +118 -12
- package/src/workspace/pr-report.schema.json +95 -0
- package/src/workspace/principal-classes.test.ts +175 -0
- package/src/workspace/principal-classes.ts +307 -0
- package/src/workspace/profiles.test.ts +159 -0
- package/src/workspace/read-contract.test.ts +2 -2
- package/src/workspace/reason-codes.test.ts +23 -3
- package/src/workspace/reason-codes.ts +61 -4
- package/src/workspace/record-sessions.ts +9 -8
- package/src/workspace/records-amend.schema.json +80 -0
- package/src/workspace/records-checkout.ts +106 -0
- package/src/workspace/records-cli.ts +123 -17
- package/src/workspace/records-close.schema.json +79 -0
- package/src/workspace/records-close.ts +31 -7
- package/src/workspace/records-concurrent.e2e.test.ts +135 -0
- package/src/workspace/records-concurrent.test.ts +145 -0
- package/src/workspace/records-formats.test.ts +46 -10
- package/src/workspace/records-new.schema.json +9 -0
- package/src/workspace/records-review.schema.json +80 -0
- package/src/workspace/records-sessions-write.test.ts +69 -0
- package/src/workspace/records-sessions.test.ts +22 -0
- package/src/workspace/records-uncommitted.test.ts +171 -0
- package/src/workspace/records-write.ts +219 -30
- package/src/workspace/records.schema.json +88 -1
- package/src/workspace/records.ts +76 -8
- package/src/workspace/reference-kinds/app/package.json +10 -0
- package/src/workspace/reference-kinds/app/workspace-kinds.json +45 -0
- package/src/workspace/run-statement.schema.json +622 -0
- package/src/workspace/runs-cli.ts +710 -0
- package/src/workspace/runs-statement.test.ts +239 -0
- package/src/workspace/runs-write.schema.json +994 -0
- package/src/workspace/runs.schema.json +1257 -0
- package/src/workspace/runs.test.ts +281 -0
- package/src/workspace/runs.ts +970 -0
- package/src/workspace/session-kinds.ts +3 -3
- package/src/workspace/squash.ts +198 -0
- package/src/workspace/status-contract.test.ts +10 -2
- package/src/workspace/status-gates.ts +25 -9
- package/src/workspace/status.schema.json +252 -4
- package/src/workspace/status.ts +110 -1
- package/src/workspace/symbols.ts +191 -0
- package/src/workspace/trailer-joins.test.ts +171 -0
- package/src/workspace/trailer-joins.ts +82 -0
- package/src/workspace/trailers.ts +148 -0
- package/src/workspace/trust/run-commits.ts +115 -0
- package/src/workspace/trust/run-statement.ts +226 -0
- package/src/workspace/trust/seal.ts +58 -1
- package/src/workspace/trust/verify-cli.ts +6 -5
- package/src/workspace/trust/verify.ts +39 -6
- package/src/workspace/wip-cli.ts +97 -0
- package/src/workspace/wip-write.schema.json +504 -0
- package/src/workspace/wip.schema.json +334 -0
- package/src/workspace/wip.test.ts +294 -0
- package/src/workspace/wip.ts +753 -0
- package/src/workspace/work-cli.e2e.test.ts +28 -1
- package/src/workspace/work-cli.ts +136 -8
- package/src/workspace/work-evidence.schema.json +5 -0
- package/src/workspace/work-history.schema.json +73 -1
- package/src/workspace/work-history.test.ts +48 -5
- package/src/workspace/work-kind-fields.test.ts +154 -0
- package/src/workspace/work-lease.schema.json +14 -1
- package/src/workspace/work-size.test.ts +77 -0
- package/src/workspace/work-size.ts +93 -0
- package/src/workspace/work.ts +82 -0
- package/src/workspace/workspace-kinds.schema.json +122 -0
- package/src/workspace/workspace-principals.schema.json +60 -0
- package/src/workspace/write-lock-cli.ts +131 -0
- package/src/workspace/write-lock.schema.json +172 -0
- package/src/workspace/write-lock.test.ts +189 -0
- package/src/workspace/write-lock.ts +474 -0
- package/src/workspace/write-scope.test.ts +144 -3
- package/src/workspace/write-scope.ts +192 -45
- package/src/yaml.test.ts +111 -1
- package/src/yaml.ts +141 -549
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The factory's rules (#3406, ws-087): what every orchestrator of a factory
|
|
3
|
+
* must agree on, as pure functions over what the read contract prints. The
|
|
4
|
+
* reference Op (`../op/factory.ts`) runs them; an orchestrator supplies only
|
|
5
|
+
* execution (the builder, the context, the check).
|
|
6
|
+
*
|
|
7
|
+
* - Readiness ({@link pickable}): on top of the work kind's `ready`, the box's
|
|
8
|
+
* intent is decided, a contract the item builds is approved and in force,
|
|
9
|
+
* the item is under its attempt limit, it is not done and waiting to be
|
|
10
|
+
* applied on its branch, its slice-tier and understand questions are not
|
|
11
|
+
* open, an understand answer of redraft or ask holds it, and a failed last
|
|
12
|
+
* build holds it until a person asks for a retry ({@link retryState}).
|
|
13
|
+
* - The understand point's answers ({@link understandOutcome}): proceed
|
|
14
|
+
* builds; refuse drops the item on its branch; redraft and ask build
|
|
15
|
+
* nothing and leave it for its author. Each maps to a lease outcome, and
|
|
16
|
+
* only a build's outcome counts as an attempt (#3147).
|
|
17
|
+
* - Done ({@link doneVerdict}): the builder finished, the check ran and
|
|
18
|
+
* passed, and every criterion the factory may tick has passing evidence. A
|
|
19
|
+
* criterion verified `manual` or `runtime` is not the factory's to tick, so
|
|
20
|
+
* an item with one is not done by the factory.
|
|
21
|
+
* - Retry ({@link retryState}): a failed build is never tried again on its
|
|
22
|
+
* own. A person's request, the item's `retry: { after, by, at }`, names the
|
|
23
|
+
* lease token of the failed build it follows, so one request starts one run.
|
|
24
|
+
* - Implements ({@link proposeImplements}): a build recorded done proposes
|
|
25
|
+
* each decision in force that constrains, by path, a path it changed.
|
|
26
|
+
*/
|
|
27
|
+
/** The decision point that gates every build of a person's ask (#3150). */
|
|
28
|
+
export declare const UNDERSTAND_POINT = "understand";
|
|
29
|
+
/** The decision point that picks a builder tier (ws-057, #3150). */
|
|
30
|
+
export declare const TIER_POINT = "slice-tier";
|
|
31
|
+
/** What the understand point answers. */
|
|
32
|
+
export declare const UNDERSTAND_ANSWERS: readonly ["proceed", "redraft", "ask", "refuse"];
|
|
33
|
+
export type UnderstandAnswer = (typeof UNDERSTAND_ANSWERS)[number];
|
|
34
|
+
/** Why an item is not picked. Closed. */
|
|
35
|
+
export declare const FACTORY_HOLDS: readonly ["not-ready", "intent-undecided", "contract-not-approved", "attempts-exhausted", "awaiting-retry", "built-not-applied", "dropped-on-branch", "question-open", "redraft-or-ask", "leased"];
|
|
36
|
+
export type FactoryHold = (typeof FACTORY_HOLDS)[number];
|
|
37
|
+
/** A work item as the factory reads it: its record from `records --json`, trimmed to what the rules use. */
|
|
38
|
+
export interface FactoryItem {
|
|
39
|
+
id: string;
|
|
40
|
+
state: string | null;
|
|
41
|
+
/** The kind's open state, such as open. */
|
|
42
|
+
openState: string;
|
|
43
|
+
/** The kind's first state for a proposal, such as proposed; an ask in it is a candidate too. */
|
|
44
|
+
proposedState: string | null;
|
|
45
|
+
ready: boolean;
|
|
46
|
+
data: Record<string, unknown> | null;
|
|
47
|
+
/** The item's own tier, or null. */
|
|
48
|
+
tier: string | null;
|
|
49
|
+
/** The contract it builds, with that record's state, or null. */
|
|
50
|
+
contract: {
|
|
51
|
+
id: string;
|
|
52
|
+
state: string | null;
|
|
53
|
+
} | null;
|
|
54
|
+
/** The record's warnings' codes. */
|
|
55
|
+
warnings: string[];
|
|
56
|
+
/** The answers about it, as records --json joins them. */
|
|
57
|
+
answers: {
|
|
58
|
+
id: string;
|
|
59
|
+
point: string | null;
|
|
60
|
+
state: string | null;
|
|
61
|
+
answer: string | boolean | null;
|
|
62
|
+
}[];
|
|
63
|
+
/** Someone holds its lease now. */
|
|
64
|
+
leased: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** One claim of the item's lease history, as `work history --json` prints it. */
|
|
67
|
+
export interface FactoryClaim {
|
|
68
|
+
token: string;
|
|
69
|
+
ended: string;
|
|
70
|
+
outcome: string | null;
|
|
71
|
+
attempt: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** What the factory knows besides the item. */
|
|
74
|
+
export interface FactoryContext {
|
|
75
|
+
/** null when no box names an intent; else whether that decision is decided. */
|
|
76
|
+
intentDecided: boolean | null;
|
|
77
|
+
claims: FactoryClaim[];
|
|
78
|
+
attempts: {
|
|
79
|
+
exhausted: boolean;
|
|
80
|
+
};
|
|
81
|
+
/** The item as its work branch holds it, when the branch exists: its state there and whether the branch is in the checkout. */
|
|
82
|
+
branch: {
|
|
83
|
+
state: string | null;
|
|
84
|
+
applied: boolean;
|
|
85
|
+
} | null;
|
|
86
|
+
/** The current question of each point for the item as it is now (a dry run), or null when not asked yet. */
|
|
87
|
+
questions: {
|
|
88
|
+
tier: {
|
|
89
|
+
state: string;
|
|
90
|
+
answer: string | boolean | null;
|
|
91
|
+
} | null;
|
|
92
|
+
understand: {
|
|
93
|
+
state: string;
|
|
94
|
+
answer: string | boolean | null;
|
|
95
|
+
} | null;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/** Whether a work item is a person's ask: its source names what they said, or it is the box's first build from its intent. */
|
|
99
|
+
export declare function isAsk(data: Record<string, unknown> | null): boolean;
|
|
100
|
+
/** The retry request on an item: `retry: { after, by, at }`, or null. */
|
|
101
|
+
export declare function retryRequest(data: Record<string, unknown> | null): {
|
|
102
|
+
after: string;
|
|
103
|
+
by: string;
|
|
104
|
+
at: string;
|
|
105
|
+
} | null;
|
|
106
|
+
export type RetryState =
|
|
107
|
+
/** The last claim was a failed build and a person may ask for one more. */
|
|
108
|
+
{
|
|
109
|
+
possible: true;
|
|
110
|
+
after: string;
|
|
111
|
+
asked: boolean;
|
|
112
|
+
} | {
|
|
113
|
+
possible: false;
|
|
114
|
+
reason: "no-failed-build" | "attempts-exhausted" | "held";
|
|
115
|
+
message: string;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Whether a person may ask for item `data`'s failed build to run again: the
|
|
119
|
+
* last claim is a failed build, nobody holds the lease, and attempts remain.
|
|
120
|
+
* `asked` says a request naming that build is already on the item.
|
|
121
|
+
*/
|
|
122
|
+
export declare function retryState(data: Record<string, unknown> | null, claims: readonly FactoryClaim[], attempts: {
|
|
123
|
+
exhausted: boolean;
|
|
124
|
+
}, leased: boolean): RetryState;
|
|
125
|
+
/** The lease outcome an understand answer leads to: null for proceed, which builds. */
|
|
126
|
+
export declare function understandOutcome(answer: unknown): "dropped" | "redraft" | "ask" | null;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the factory picks `item` now, or why not. Asks are candidates while
|
|
129
|
+
* proposed as well as open; any other item only when the work kind reads it
|
|
130
|
+
* ready.
|
|
131
|
+
*/
|
|
132
|
+
export declare function pickable(item: FactoryItem, ctx: FactoryContext): {
|
|
133
|
+
ok: true;
|
|
134
|
+
} | {
|
|
135
|
+
ok: false;
|
|
136
|
+
hold: FactoryHold;
|
|
137
|
+
message: string;
|
|
138
|
+
};
|
|
139
|
+
/** One acceptance criterion's state, as records --json lists it. */
|
|
140
|
+
export interface CriterionView {
|
|
141
|
+
id: string;
|
|
142
|
+
verification: string;
|
|
143
|
+
met: boolean;
|
|
144
|
+
}
|
|
145
|
+
/** Whether a build is done, or why not. */
|
|
146
|
+
export declare function doneVerdict(build: {
|
|
147
|
+
finished: boolean;
|
|
148
|
+
reverted: string[];
|
|
149
|
+
}, check: {
|
|
150
|
+
ran: boolean;
|
|
151
|
+
ok: boolean;
|
|
152
|
+
}, criteria: readonly CriterionView[]): {
|
|
153
|
+
done: true;
|
|
154
|
+
} | {
|
|
155
|
+
done: false;
|
|
156
|
+
reason: string;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* The decisions a done build proposes it implements (studio#243): from the
|
|
160
|
+
* intent graph's `constrains` edges of granularity `path` to each changed
|
|
161
|
+
* path, the decisions in force, less those the item already implements.
|
|
162
|
+
*/
|
|
163
|
+
export declare function proposeImplements(changed: readonly {
|
|
164
|
+
path: string;
|
|
165
|
+
decisions: readonly {
|
|
166
|
+
id: string;
|
|
167
|
+
state: string | null;
|
|
168
|
+
granularity: string;
|
|
169
|
+
}[];
|
|
170
|
+
}[], already: readonly string[], inForce?: readonly string[]): {
|
|
171
|
+
decision: string;
|
|
172
|
+
paths: string[];
|
|
173
|
+
}[];
|
|
174
|
+
/**
|
|
175
|
+
* The key of the state an item was read in, for a steward's ready step: a
|
|
176
|
+
* new key is work no run was started for. It names the item, its last claim
|
|
177
|
+
* and its open questions, so a person's answer to either point is a new key.
|
|
178
|
+
*/
|
|
179
|
+
export declare function readyKey(item: Pick<FactoryItem, "id">, ctx: Pick<FactoryContext, "claims" | "questions">, data: Record<string, unknown> | null): string;
|
|
180
|
+
//# sourceMappingURL=factory-rules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory-rules.d.ts","sourceRoot":"","sources":["../../src/workspace/factory-rules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,oEAAoE;AACpE,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,yCAAyC;AACzC,eAAO,MAAM,kBAAkB,YAAI,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAU,CAAC;AACnF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,yCAAyC;AACzC,eAAO,MAAM,aAAa,YACxB,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,QAAQ,CACA,CAAC;AACX,MAAM,MAAM,WAAW,GA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AE,SAAS,MAAM,EAA4B,GACnD;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,CAWzC;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,MAAM,CAIvJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-files.d.ts","sourceRoot":"","sources":["../../src/workspace/generated-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5E,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"generated-files.d.ts","sourceRoot":"","sources":["../../src/workspace/generated-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAI5E,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB;aAAM,IAAI,EAAE,mBAAmB;aAAE,OAAO;aAAgC,OAAO,EAAE,cAAc;EAAY,CAAC;AAE3I,4CAA4C;AAC5C,eAAO,MAAM,UAAU,YAAI,WAAW,CAAU,CAAC;AAEjD,6EAA6E;AAC7E,eAAO,MAAM,YAAY,YAAI,cAAc,CAAU,CAAC;AAEtD,iFAAiF;AACjF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;CACtB;AACD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,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@@
|
|
|
24
24
|
* `chant` members, or `--dry-run`) nothing is exported.
|
|
25
25
|
*/
|
|
26
26
|
import type { CommandContext, ParsedArgs } from "../cli/registry.js";
|
|
27
|
+
import { type Plantable } from "./box-factory.js";
|
|
27
28
|
import { type WorkspaceGraph } from "./compose-graph.js";
|
|
28
29
|
import { type ErrorLocation } from "./declaration.js";
|
|
29
30
|
import { type MemberPlan, type Toolchain, type UnitResult } from "./member-commands.js";
|
|
@@ -45,6 +46,7 @@ interface Head {
|
|
|
45
46
|
}
|
|
46
47
|
export type GraphDocument = (Head & {
|
|
47
48
|
at: string | null;
|
|
49
|
+
plantable: Plantable;
|
|
48
50
|
} & WorkspaceGraph) | (Head & {
|
|
49
51
|
error: {
|
|
50
52
|
code: GraphErrorCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAA+E,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEnI,OAAO,EAA6E,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAgF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMnK,OAAO,EAAoC,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAExF,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,4EAA4E,CAAC;AAEhH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,2OAA0D,CAAC;AACzF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAQhE,UAAU,IAAI;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AAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAmCtF;AAgDD,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAKvD;AAED,qGAAqG;AACrG,wBAAsB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAuE5E;AA8CD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsE5E"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Who a person-attributed record or gate approval names (#3163, ws-080).
|
|
3
|
+
*
|
|
4
|
+
* chant never authenticates a person (ws-052): hud, studio or behold signs a
|
|
5
|
+
* person in and maps the session to one of the identities below, then passes
|
|
6
|
+
* it to chant's write commands (`--by`, `--actor`). chant records what it is
|
|
7
|
+
* given and says which form it is:
|
|
8
|
+
*
|
|
9
|
+
* - `signer`: a principal `.chant/allowed_signers` lists at base. A seal made
|
|
10
|
+
* with that principal's key (`--sign`) attests it.
|
|
11
|
+
* - `forge`: a forge identity, `github:<login>`, `gitlab:<login>`, or
|
|
12
|
+
* `<forge>@<host>:<login>` (forgejo, gitea, or a self-hosted github or
|
|
13
|
+
* gitlab). The surface that signed the person in vouches for it; nothing
|
|
14
|
+
* here checks it, and only a seal verified against the signers at base
|
|
15
|
+
* attests it. The signers file and the role grants name people this way, so
|
|
16
|
+
* one string is the person in the record, the key list and the classes.
|
|
17
|
+
* - `role`: a principal holding the agent, runner or service role at base, or
|
|
18
|
+
* listed by a declared agent session: not a person, and named by a grant an
|
|
19
|
+
* admin controls.
|
|
20
|
+
* - `name`: anything else, such as a hud roster name or `$USER`.
|
|
21
|
+
*
|
|
22
|
+
* The declaration's `identity` block, read at base, turns this into rules:
|
|
23
|
+
* `attribution: "identified"` refuses a `name` on every person-attributed
|
|
24
|
+
* write, and `gates.<gate>` lets a gate of that name pass only on an approval
|
|
25
|
+
* sealed by a signer, from a class when it names one.
|
|
26
|
+
*/
|
|
27
|
+
import type { Declaration, SignedGate } from "./declaration.js";
|
|
28
|
+
import { type ClassRegistry } from "./principal-classes.js";
|
|
29
|
+
import type { TrustPolicy } from "./trust/policy.js";
|
|
30
|
+
import { type SealedGateApproval } from "./trust/seal.js";
|
|
31
|
+
/** The forges a forge identity can name. */
|
|
32
|
+
export declare const FORGES: readonly ["github", "gitlab", "forgejo", "gitea"];
|
|
33
|
+
export type Forge = (typeof FORGES)[number];
|
|
34
|
+
/** A person's account on a forge. */
|
|
35
|
+
export interface ForgeIdentity {
|
|
36
|
+
forge: Forge;
|
|
37
|
+
/** Lower-cased, such as `github.com` or `codeberg.org`. */
|
|
38
|
+
host: string;
|
|
39
|
+
/** Lower-cased: the forges compare logins without case. */
|
|
40
|
+
login: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Read `principal` as a forge identity, or null when it is not one. Case and
|
|
44
|
+
* surrounding space are folded as {@link normalisePrincipal} folds them.
|
|
45
|
+
*/
|
|
46
|
+
export declare function parseForgeIdentity(principal: string): ForgeIdentity | null;
|
|
47
|
+
/** The principal string of a forge identity: `<forge>:<login>` on the forge's default host, else `<forge>@<host>:<login>`. */
|
|
48
|
+
export declare function forgePrincipal(id: ForgeIdentity): string;
|
|
49
|
+
export type IdentityForm = "signer" | "forge" | "role" | "name";
|
|
50
|
+
export interface Identified {
|
|
51
|
+
principal: string;
|
|
52
|
+
form: IdentityForm;
|
|
53
|
+
/** Set whenever the principal reads as a forge identity, whatever its form. */
|
|
54
|
+
forge: ForgeIdentity | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* What `principal` is, under the policy and declaration read at base. A
|
|
58
|
+
* principal the signers file lists is a `signer` even when it is also a
|
|
59
|
+
* forge identity, since a seal can attest it.
|
|
60
|
+
*/
|
|
61
|
+
export declare function identify(principal: string, policy: TrustPolicy, declaration?: Declaration | null): Identified;
|
|
62
|
+
/** Why a write naming a person was refused. Closed. */
|
|
63
|
+
export declare const IDENTITY_CODES: readonly ["principal-unidentified"];
|
|
64
|
+
export type IdentityCode = (typeof IDENTITY_CODES)[number];
|
|
65
|
+
export declare class IdentityError extends Error {
|
|
66
|
+
readonly code: IdentityCode;
|
|
67
|
+
constructor(message: string);
|
|
68
|
+
}
|
|
69
|
+
/** What {@link refuseUnidentified} reads: the declaration and policy at base, as `scopeSource` gives them. */
|
|
70
|
+
export interface IdentitySource {
|
|
71
|
+
declaration: Declaration | null;
|
|
72
|
+
policy: TrustPolicy;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Refuse a person-attributed write that names someone by a bare name, when
|
|
76
|
+
* the declaration at base sets `identity.attribution` to `identified`.
|
|
77
|
+
* `flag` names where the name came from (`--by`, `--actor`). A write in a
|
|
78
|
+
* declared agent session (`CHANT_AGENT`) names the session, not a person,
|
|
79
|
+
* and is not judged here. Throws an {@link IdentityError}.
|
|
80
|
+
*/
|
|
81
|
+
export declare function refuseUnidentified(source: IdentitySource, names: readonly string[], flag: string, opts?: {
|
|
82
|
+
agent?: string | null;
|
|
83
|
+
}): void;
|
|
84
|
+
/** A gate approval as the rule judges it: the resolution line's own fields. */
|
|
85
|
+
export type GateApprovalLike = SealedGateApproval;
|
|
86
|
+
/** A gate the declaration names in `identity.gates`, and the judge for its approvals. */
|
|
87
|
+
export interface GateAdmission {
|
|
88
|
+
requirement: SignedGate;
|
|
89
|
+
/** Why `approval` doesn't count toward the gate, or null when it does. */
|
|
90
|
+
refuses(approval: GateApprovalLike): string | null;
|
|
91
|
+
}
|
|
92
|
+
/** What {@link gateAdmissionFrom} reads: the declaration, policy and classes at base, as `scopeSource` gives them. */
|
|
93
|
+
export interface GateRuleSource extends IdentitySource {
|
|
94
|
+
classes: ClassRegistry;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The rule for `gate`, or null when the declaration at base names none. An
|
|
98
|
+
* approval counts only when its seal verifies for its approver against the
|
|
99
|
+
* signers at base and, when the rule names a class, the approver's role
|
|
100
|
+
* grants at base put it in that class. A class no pinned package supplies
|
|
101
|
+
* lets nothing through.
|
|
102
|
+
*/
|
|
103
|
+
export declare function gateAdmissionFrom(source: GateRuleSource, gate: string): GateAdmission | null;
|
|
104
|
+
/**
|
|
105
|
+
* The rule for `gate` in the workspace holding `cwd`, read at base (the
|
|
106
|
+
* target branch tip), or null when there is no declaration or it names none.
|
|
107
|
+
* What a run, `chant approve` and `workspace status` ask before counting an
|
|
108
|
+
* approval.
|
|
109
|
+
*/
|
|
110
|
+
export declare function gateAdmission(cwd: string, gate: string): GateAdmission | null;
|
|
111
|
+
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/workspace/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAgD,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGvG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGtE,4CAA4C;AAC5C,eAAO,MAAM,MAAM,YAAI,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AACxE,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAK5C,qCAAqC;AACrC,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;CACf;AAKD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EA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QAAQ,EAAE,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;CACpD;AAED,sHAAsH;AACtH,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAmB5F;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAE7E"}
|
package/dist/workspace/init.d.ts
CHANGED
|
@@ -21,9 +21,30 @@
|
|
|
21
21
|
* never written.
|
|
22
22
|
*
|
|
23
23
|
* Nothing here runs project code: it reads file names and package.json files.
|
|
24
|
+
*
|
|
25
|
+
* `--profile ideation|app|infra` starts a workspace from one of the reference
|
|
26
|
+
* workspace's profiles instead (#3174, ws-096): records only with a stub app,
|
|
27
|
+
* an app with its factory, or an estate with a factory and no app. It is
|
|
28
|
+
* `chant init --from` on `reference-workspace/profiles/<profile>` of the chant
|
|
29
|
+
* repository at this chant's release tag, or of the repository or directory
|
|
30
|
+
* `--from` names, so the new workspace gets a lineage lock and can be upgraded
|
|
31
|
+
* like any template copy.
|
|
24
32
|
*/
|
|
25
33
|
import type { CommandContext } from "../cli/registry.js";
|
|
26
34
|
import { type WorkspaceTree } from "./tree.js";
|
|
35
|
+
/** The profiles `--profile` takes (#3174), each a directory under {@link PROFILES_DIR} in the chant repository. */
|
|
36
|
+
export declare const PROFILES: readonly ["ideation", "app", "infra"];
|
|
37
|
+
export type Profile = (typeof PROFILES)[number];
|
|
38
|
+
/** Where the profiles live in the chant repository. */
|
|
39
|
+
export declare const PROFILES_DIR = "reference-workspace/profiles";
|
|
40
|
+
/** The repository the profiles are read from by default, at this chant's release tag. */
|
|
41
|
+
export declare const PROFILES_REPO = "https://github.com/INTENTIUS/chant";
|
|
42
|
+
/**
|
|
43
|
+
* The `chant init --from` source for a profile: `from` (a `<repo>@<ref>` or
|
|
44
|
+
* a directory holding a chant checkout) when given, else the chant repository
|
|
45
|
+
* at the tag of the chant reading, `chant-v<version>`.
|
|
46
|
+
*/
|
|
47
|
+
export declare function profileSource(profile: Profile, from: string | undefined, version: string): string;
|
|
27
48
|
export interface ProposedEntry {
|
|
28
49
|
name: string;
|
|
29
50
|
dir?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/workspace/init.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/workspace/init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AActD,OAAO,EAAmC,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAI7E,mHAAmH;AACnH,eAAO,MAAM,QAAQ,YAAI,UAAU,EAAE,KAAK,EAAE,OAAO,CAAU,CAAC;AAC9D,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhD,uDAAuD;AACvD,eAAO,MAAM,YAAY,iCAAiC,CAAC;AAE3D,yFAAyF;AACzF,eAAO,MAAM,aAAa,uCAAuC,CAAC;AAElE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAGjG;AAoBD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC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AoFD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,QAAQ,CAsFxF;AA4ED,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoE3E"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `chant workspace graph --intent <path[:start-end]> [--at <rev>] [--kind <kind file>...] [--json]`
|
|
3
|
-
* (#2651): the intent graph over one region (`intent.ts`), printed as JSON
|
|
2
|
+
* `chant workspace graph --intent <path[:start-end]|path#symbol> [--at <rev>] [--kind <kind file>...] [--follow-squash] [--json]`
|
|
3
|
+
* (#2651, #3034): the intent graph over one region (`intent.ts`), printed as JSON
|
|
4
4
|
* with `--json` or as a walk, one line per node, in the order of #2650
|
|
5
5
|
* section B: the region, its decisions, their artifacts, the commits, and the
|
|
6
|
-
* findings
|
|
6
|
+
* findings, then why the region is like this: who made its current lines and
|
|
7
|
+
* the decisions governing it, most relevant first. Under each decision come the commits made inside its window, and
|
|
7
8
|
* when any of them is not the decision's own work, the question #2650 B puts
|
|
8
9
|
* to the person about it (#2656). Without `--kind`, the walk reads every
|
|
9
10
|
* record kind the declaration names (#2680).
|
|
10
11
|
*/
|
|
11
12
|
import type { CommandContext } from "../cli/registry.js";
|
|
12
13
|
import { type IntentRecordDocument } from "./intent-record.js";
|
|
13
|
-
import { type IntentDocument } from "./intent.js";
|
|
14
|
+
import { type IntentDocument, type WhyAnswer } from "./intent.js";
|
|
14
15
|
type Result = Exclude<IntentDocument, {
|
|
15
16
|
error: unknown;
|
|
16
17
|
}>;
|
|
@@ -19,6 +20,8 @@ type RecordResult = Exclude<IntentRecordDocument, {
|
|
|
19
20
|
}>;
|
|
20
21
|
/** What the walk asks about a commit made inside a decision's window that is not the decision's own work (#2650 B4, step 5). */
|
|
21
22
|
export declare const IN_WINDOW_QUESTION = "is this drift, a superseding decision nobody wrote down, or the decision being wrong?";
|
|
23
|
+
/** Why the region is like this (#3034): the decisions most relevant first, then who made each span of its current lines, then the gaps. */
|
|
24
|
+
export declare function whyLines(doc: Result, why: WhyAnswer): string[];
|
|
22
25
|
/** The walk as text, one line each, in the order of #2650 section B. */
|
|
23
26
|
export declare function formatIntent(doc: Result): string;
|
|
24
27
|
/** The record walk as text: the record, its window, then each commit with its bucket, and the counts. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-cli.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"intent-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAsE,KAAK,cAAc,EAAkD,KAAK,SAAS,EAAiB,MAAM,UAAU,CAAC;AAKlM,KAAK,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAC1D,KAAK,YAAY,GAAG,OAAO,CAAC,oBAAoB,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAYtE,gIAAgI;AAChI,eAAO,MAAM,kBAAkB,0FAA0F,CAAC;AAwG1H,2IAA2I;AAC3I,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,MAAM,EAAE,CAsB9D;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA6BhD;AAED,yGAAyG;AACzG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,MAAM,CAwB5D;AAcD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAuB1F"}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*
|
|
18
18
|
* - `own`: the record's own work, as the region walk judges it: a commit a
|
|
19
19
|
* plugin joins to a unit whose unit or contract names the record, or that
|
|
20
|
-
* serves a contract the record constrains
|
|
20
|
+
* serves a contract the record constrains; or a commit whose own trailers
|
|
21
|
+
* (#3149) name the record, or a work item that implements it.
|
|
21
22
|
* - `worked`: inside the window of a work item that is not dropped and that
|
|
22
23
|
* implements the record, or whose `path:` entries cover a file the commit
|
|
23
24
|
* changed in the record's region.
|
|
@@ -28,10 +29,17 @@
|
|
|
28
29
|
* `workedBy` and `alsoWithin` list every work item and other decision that
|
|
29
30
|
* matched, whatever the bucket. `issue` and `contract` entries are listed and
|
|
30
31
|
* not walked: they name no path. Git is read through a local `git`
|
|
31
|
-
* subprocess only: no fetch, no network
|
|
32
|
+
* subprocess only: no fetch, no network, unless the walk is asked to follow
|
|
33
|
+
* squashes (#3035). Then a squash commit lists its pull request's original
|
|
34
|
+
* commits, joins their runs and counts as the record's own work when one of
|
|
35
|
+
* them carries it, and a pull request ref the clone lacks is fetched from
|
|
36
|
+
* `origin`.
|
|
32
37
|
*/
|
|
33
38
|
import { type IntentErrorCode, type IntentReason } from "./intent.js";
|
|
34
39
|
import type { DecidedIn } from "./record-decided.js";
|
|
40
|
+
import { type RunRef } from "./runs.js";
|
|
41
|
+
import { type Forge } from "./squash.js";
|
|
42
|
+
import { type CommitTrailerJoins } from "./trailer-joins.js";
|
|
35
43
|
/** The version of the `intent-record` document this chant writes. */
|
|
36
44
|
export declare const INTENT_RECORD_CONTRACT_VERSION = 1;
|
|
37
45
|
/** `$id` of the JSON Schema for the document, shipped beside this file. */
|
|
@@ -65,6 +73,30 @@ export interface RecordCommit {
|
|
|
65
73
|
pullRequest: number | null;
|
|
66
74
|
/** The unit a plugin joined the commit to, or null. */
|
|
67
75
|
unit: string | null;
|
|
76
|
+
/** What chant's own trailers join the commit to (#3149), as a commit node in `graph --intent` reports it. */
|
|
77
|
+
joins: CommitTrailerJoins;
|
|
78
|
+
/** The agent runs that made the commit (#3033): the one its Chant-Run names, and any whose record lists it. */
|
|
79
|
+
runs: RunRef[];
|
|
80
|
+
/** Only when the walk follows squashes (#3035) and the commit squashes a pull request: its original commits and what their trailers join. */
|
|
81
|
+
squash?: {
|
|
82
|
+
pullRequest: number;
|
|
83
|
+
forge: Forge | null;
|
|
84
|
+
ref: string | null;
|
|
85
|
+
head: string | null;
|
|
86
|
+
fetched: boolean;
|
|
87
|
+
followed: boolean;
|
|
88
|
+
commits: {
|
|
89
|
+
sha: string;
|
|
90
|
+
subject: string;
|
|
91
|
+
author: {
|
|
92
|
+
name: string;
|
|
93
|
+
email: string;
|
|
94
|
+
};
|
|
95
|
+
date: string;
|
|
96
|
+
trailers: Record<string, string[]>;
|
|
97
|
+
joins: CommitTrailerJoins;
|
|
98
|
+
}[];
|
|
99
|
+
};
|
|
68
100
|
/** The record's constrains entries whose history listed the commit. */
|
|
69
101
|
entries: string[];
|
|
70
102
|
/** The files the commit changed in the record's region, from the workspace root. Empty when git lists none, as for a merge that changed nothing against its first parent there. */
|
|
@@ -134,6 +166,8 @@ export interface IntentRecordQuery {
|
|
|
134
166
|
record: string;
|
|
135
167
|
at?: string;
|
|
136
168
|
kinds?: string[];
|
|
169
|
+
/** Follow squash merges to their pull requests' original commits, fetching a missing pull request ref from `origin` (#3035). */
|
|
170
|
+
followSquash?: boolean;
|
|
137
171
|
}
|
|
138
172
|
export interface IntentRecordResult {
|
|
139
173
|
doc: IntentRecordDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-record.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-record.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"intent-record.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-record.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