@intentius/chant 0.124.46 → 0.124.48
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/__golden__/wave-loop/op-by-apply-after-fails.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-hold.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-ignored.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-pass.json +10 -0
- package/dist/__golden__/wave-loop/op-by-apply-skip.json +10 -0
- package/dist/__golden__/wave-loop/op-cost-member-clash.json +6 -0
- package/dist/__golden__/wave-loop/op-cost-member.json +13 -0
- package/dist/__golden__/wave-loop/op-denied-source.json +16 -0
- package/dist/__golden__/wave-loop/op-denied.json +16 -0
- package/dist/__golden__/wave-loop/op-discover-rest-short.json +6 -0
- package/dist/__golden__/wave-loop/op-discover-rest-stops.json +13 -0
- package/dist/__golden__/wave-loop/op-discover-rest.json +26 -0
- package/dist/__golden__/wave-loop/op-discover-wide.json +26 -0
- package/dist/__golden__/wave-loop/op-held-on-again.json +16 -0
- package/dist/__golden__/wave-loop/op-held-on-before-apply.json +16 -0
- package/dist/__golden__/wave-loop/op-held-on.json +16 -0
- package/dist/__golden__/wave-loop/op-hooks-apply-fails.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-after-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-before-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-fail-before-plan.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-held.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-hold-before-apply.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-pass.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-refused-at-base.json +13 -0
- package/dist/__golden__/wave-loop/op-hooks-share.json +33 -0
- package/dist/__golden__/wave-loop/op-outcome-held.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan-approved.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan-forever.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-replan.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-stood-down.json +10 -0
- package/dist/__golden__/wave-loop/op-outcome-unreadable.json +10 -0
- package/dist/__golden__/wave-loop/op-overridden.json +16 -0
- package/dist/__golden__/wave-loop/op-per-run.json +20 -0
- package/dist/__golden__/wave-loop/op-point.json +13 -0
- package/dist/__golden__/wave-loop/op-pr-review.json +10 -0
- package/dist/__golden__/wave-loop/op-sealed.json +10 -0
- package/dist/__golden__/wave-loop/op-spend-change-only.json +10 -0
- package/dist/__golden__/wave-loop/op-spend.json +10 -0
- package/dist/__golden__/wave-loop/op-wave-commands.json +55 -0
- package/dist/__golden__/wave-loop/op-wide-refused.json +26 -0
- package/dist/__golden__/wave-loop/op-wide-waiting.json +29 -0
- package/dist/__golden__/wave-loop/op-wide.json +39 -0
- package/dist/action-pins.d.ts +61 -0
- package/dist/action-pins.d.ts.map +1 -0
- package/dist/action-pins.js +77 -0
- package/dist/cli/commands/carve.d.ts +3 -0
- package/dist/cli/commands/carve.d.ts.map +1 -1
- package/dist/cli/commands/carve.js +36 -7
- package/dist/cli/commands/import-report.d.ts +26 -0
- package/dist/cli/commands/import-report.d.ts.map +1 -0
- package/dist/cli/commands/import-report.js +65 -0
- package/dist/cli/commands/import.d.ts +11 -1
- package/dist/cli/commands/import.d.ts.map +1 -1
- package/dist/cli/commands/import.js +22 -3
- package/dist/cli/commands/migrate.d.ts +13 -1
- package/dist/cli/commands/migrate.d.ts.map +1 -1
- package/dist/cli/commands/migrate.js +134 -10
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +21 -2
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +6 -1
- package/dist/cli/handlers/ledger.d.ts +3 -0
- package/dist/cli/handlers/ledger.d.ts.map +1 -0
- package/dist/cli/handlers/ledger.js +55 -0
- package/dist/cli/handlers/migrate.d.ts.map +1 -1
- package/dist/cli/handlers/migrate.js +18 -11
- package/dist/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/handlers/misc.js +12 -1
- package/dist/cli/handlers/pr-env.js +2 -2
- package/dist/cli/handlers/pr.d.ts +15 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +143 -39
- package/dist/cli/handlers/query.d.ts +7 -2
- package/dist/cli/handlers/query.d.ts.map +1 -1
- package/dist/cli/handlers/query.js +16 -4
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +6 -3
- package/dist/cli/handlers/search.d.ts +2 -4
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/handlers/search.js +13 -39
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +65 -14
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +36 -2
- package/dist/cli/registry.d.ts +14 -4
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/builders.d.ts +5 -1
- package/dist/components/builders.d.ts.map +1 -1
- package/dist/components/builders.js +5 -0
- package/dist/components/capability-plugin-loader.d.ts.map +1 -1
- package/dist/components/capability-plugin-loader.js +16 -1
- package/dist/components/capability-plugin.d.ts +14 -0
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/pr-hooks.d.ts +21 -1
- package/dist/components/pr-hooks.d.ts.map +1 -1
- package/dist/components/pr-hooks.js +72 -4
- package/dist/components/pr-pipeline.d.ts +45 -10
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +47 -14
- package/dist/components/pr-policy.d.ts +36 -0
- package/dist/components/pr-policy.d.ts.map +1 -1
- package/dist/components/pr-policy.js +36 -0
- package/dist/components/starter-plugin.d.ts +1 -0
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/components/starter-plugin.js +5 -1
- package/dist/components/verbs/index.d.ts +2 -0
- package/dist/components/verbs/index.d.ts.map +1 -1
- package/dist/components/verbs/index.js +2 -0
- package/dist/components/verbs/publish-artifact.d.ts +65 -0
- package/dist/components/verbs/publish-artifact.d.ts.map +1 -0
- package/dist/components/verbs/publish-artifact.js +74 -0
- package/dist/components/verbs/publish-image.d.ts +129 -0
- package/dist/components/verbs/publish-image.d.ts.map +1 -0
- package/dist/components/verbs/publish-image.js +145 -0
- package/dist/config-environments.d.ts +20 -0
- package/dist/config-environments.d.ts.map +1 -1
- package/dist/config-environments.js +12 -0
- package/dist/config.d.ts +9 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -2
- package/dist/gate-decision.d.ts +11 -2
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +15 -3
- package/dist/graph-ir.d.ts +25 -0
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-walk.d.ts +66 -0
- package/dist/graph-walk.d.ts.map +1 -0
- package/dist/graph-walk.js +70 -0
- package/dist/import/parser.d.ts +19 -0
- package/dist/import/parser.d.ts.map +1 -1
- package/dist/lexicon.d.ts +71 -6
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +11 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +2 -5
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/ledger-read.d.ts +65 -0
- package/dist/lifecycle/ledger-read.d.ts.map +1 -0
- package/dist/lifecycle/ledger-read.js +160 -0
- package/dist/lifecycle/release-workstation.d.ts +7 -0
- package/dist/lifecycle/release-workstation.d.ts.map +1 -1
- package/dist/lifecycle/release-workstation.js +25 -0
- package/dist/lifecycle/run-ledger.d.ts +4 -3
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +1 -0
- package/dist/lint/discover.js +3 -1
- package/dist/lint/post-synth.d.ts +127 -1
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/lint/post-synth.js +84 -2
- package/dist/lint/rules/op/index.d.ts +1 -0
- package/dist/lint/rules/op/index.d.ts.map +1 -1
- package/dist/lint/rules/op/index.js +2 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.d.ts +32 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.d.ts.map +1 -0
- package/dist/lint/rules/op/ops019-workspace-op-target.js +63 -0
- package/dist/op/activities/activity-contracts.d.ts +5 -2
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.js +5 -2
- package/dist/op/activities/index.d.ts +2 -2
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/index.js +1 -1
- package/dist/op/activities/review-agent.d.ts +90 -4
- package/dist/op/activities/review-agent.d.ts.map +1 -1
- package/dist/op/activities/review-agent.js +217 -19
- package/dist/op/activities/work-evidence.d.ts +8 -1
- package/dist/op/activities/work-evidence.d.ts.map +1 -1
- package/dist/op/activities/work-evidence.js +1 -0
- package/dist/op/builders.d.ts +9 -5
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/builders.js +9 -5
- package/dist/op/composites/apply-op.d.ts +29 -2
- package/dist/op/composites/apply-op.d.ts.map +1 -1
- package/dist/op/composites/apply-op.js +20 -1
- package/dist/op/gate-approval.d.ts +11 -5
- package/dist/op/gate-approval.d.ts.map +1 -1
- package/dist/op/gate-approval.js +11 -6
- package/dist/op/gate-quorum.d.ts +100 -3
- package/dist/op/gate-quorum.d.ts.map +1 -1
- package/dist/op/gate-quorum.js +108 -6
- package/dist/op/gate-review.d.ts +9 -0
- package/dist/op/gate-review.d.ts.map +1 -1
- package/dist/op/gate-review.js +13 -0
- package/dist/op/gate.d.ts +44 -3
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +25 -4
- package/dist/op/index.d.ts +3 -3
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -1
- package/dist/op/local-executor.d.ts +38 -3
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +48 -6
- package/dist/op/op-waves-run.d.ts +26 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +259 -13
- package/dist/op/op-waves.d.ts +72 -5
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +110 -15
- package/dist/op/runtime.d.ts +11 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/schedule-overdue.d.ts +16 -0
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +36 -0
- package/dist/op/stage-hooks.d.ts +9 -2
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +7 -5
- package/dist/op/workspace-run-env.d.ts +22 -0
- package/dist/op/workspace-run-env.d.ts.map +1 -0
- package/dist/op/workspace-run-env.js +21 -0
- package/dist/pr-forge.d.ts +24 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +47 -0
- package/dist/pr-post.d.ts +42 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +67 -1
- package/dist/read-filter.d.ts +65 -0
- package/dist/read-filter.d.ts.map +1 -0
- package/dist/read-filter.js +179 -0
- package/dist/run-event.d.ts +1 -1
- package/dist/run-event.d.ts.map +1 -1
- package/dist/terraform/carve.d.ts +24 -3
- package/dist/terraform/carve.d.ts.map +1 -1
- package/dist/terraform/carve.js +32 -14
- package/dist/terraform/cuts.d.ts +97 -0
- package/dist/terraform/cuts.d.ts.map +1 -0
- package/dist/terraform/cuts.js +138 -0
- package/dist/terraform/folds.d.ts +26 -0
- package/dist/terraform/folds.d.ts.map +1 -0
- package/dist/terraform/folds.js +38 -0
- package/dist/terraform/graph.d.ts.map +1 -1
- package/dist/terraform/graph.js +10 -0
- package/dist/terraform/reach.d.ts +140 -0
- package/dist/terraform/reach.d.ts.map +1 -0
- package/dist/terraform/reach.js +170 -0
- package/dist/terraform/score.d.ts +14 -0
- package/dist/terraform/score.d.ts.map +1 -1
- package/dist/terraform/score.js +14 -31
- package/dist/terraform/state.d.ts.map +1 -1
- package/dist/terraform/state.js +4 -2
- package/dist/terraform/types.d.ts +8 -0
- package/dist/terraform/types.d.ts.map +1 -1
- package/dist/wave-blocked.d.ts +10 -1
- package/dist/wave-blocked.d.ts.map +1 -1
- package/dist/wave-blocked.js +31 -3
- package/dist/wave-runtime.mjs +263 -254
- package/dist/workspace/check.schema.json +11 -2
- package/dist/workspace/checks/ci-branch.d.ts +44 -0
- package/dist/workspace/checks/ci-branch.d.ts.map +1 -0
- package/dist/workspace/checks/ci-branch.js +133 -0
- package/dist/workspace/checks/links.d.ts +3 -0
- package/dist/workspace/checks/links.d.ts.map +1 -1
- package/dist/workspace/checks/links.js +12 -1
- package/dist/workspace/checks/org.d.ts +48 -0
- package/dist/workspace/checks/org.d.ts.map +1 -0
- package/dist/workspace/checks/org.js +156 -0
- package/dist/workspace/checks.d.ts +11 -1
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/checks.js +59 -7
- package/dist/workspace/ci-branches.d.ts +16 -0
- package/dist/workspace/ci-branches.d.ts.map +1 -1
- package/dist/workspace/ci-branches.js +27 -0
- package/dist/workspace/ci-green-cli.js +7 -7
- package/dist/workspace/ci-green-workflow.d.ts +1 -1
- package/dist/workspace/ci-green-workflow.d.ts.map +1 -1
- package/dist/workspace/ci-green-workflow.js +13 -8
- package/dist/workspace/ci-green.d.ts +14 -0
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +44 -11
- package/dist/workspace/ci-run.d.ts +9 -1
- package/dist/workspace/ci-run.d.ts.map +1 -1
- package/dist/workspace/ci-run.js +67 -6
- package/dist/workspace/ci-serve.d.ts +9 -0
- package/dist/workspace/ci-serve.d.ts.map +1 -1
- package/dist/workspace/ci-serve.js +114 -76
- package/dist/workspace/compose-graph.d.ts +14 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +4 -1
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/composites.js +5 -2
- package/dist/workspace/composites.schema.json +22 -0
- package/dist/workspace/conformance/__writer_fixture__/work/work.schema.json +105 -1
- package/dist/workspace/cross-root-lint.d.ts +56 -0
- package/dist/workspace/cross-root-lint.d.ts.map +1 -0
- package/dist/workspace/cross-root-lint.js +111 -0
- package/dist/workspace/dbt-models-reader.d.ts +44 -0
- package/dist/workspace/dbt-models-reader.d.ts.map +1 -0
- package/dist/workspace/dbt-models-reader.js +356 -0
- package/dist/workspace/dbt-project-common.d.ts +40 -0
- package/dist/workspace/dbt-project-common.d.ts.map +1 -0
- package/dist/workspace/dbt-project-common.js +106 -0
- package/dist/workspace/dbt-project-reader.d.ts +4 -3
- package/dist/workspace/dbt-project-reader.d.ts.map +1 -1
- package/dist/workspace/dbt-project-reader.js +14 -108
- package/dist/workspace/decision-rank.d.ts +26 -0
- package/dist/workspace/decision-rank.d.ts.map +1 -0
- package/dist/workspace/decision-rank.js +16 -0
- package/dist/workspace/declaration.d.ts +43 -2
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +45 -11
- package/dist/workspace/declaration.schema.json +133 -24
- package/dist/workspace/environments.d.ts +26 -2
- package/dist/workspace/environments.d.ts.map +1 -1
- package/dist/workspace/environments.js +26 -2
- package/dist/workspace/flyway-dir.d.ts +39 -0
- package/dist/workspace/flyway-dir.d.ts.map +1 -0
- package/dist/workspace/flyway-dir.js +104 -0
- package/dist/workspace/flyway-layout.d.ts +96 -0
- package/dist/workspace/flyway-layout.d.ts.map +1 -0
- package/dist/workspace/flyway-layout.js +308 -0
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/graph-cli.js +26 -8
- package/dist/workspace/graph.schema.json +34 -0
- package/dist/workspace/intent.d.ts +2 -3
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/intent.js +5 -9
- package/dist/workspace/kind-link-readers.d.ts +59 -2
- package/dist/workspace/kind-link-readers.d.ts.map +1 -1
- package/dist/workspace/kind-link-readers.js +17 -1
- package/dist/workspace/kinds.d.ts +66 -2
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/kinds.js +98 -4
- package/dist/workspace/ledger.schema.json +158 -0
- package/dist/workspace/lexicon-outputs.d.ts +20 -1
- package/dist/workspace/lexicon-outputs.d.ts.map +1 -1
- package/dist/workspace/lexicon-outputs.js +102 -10
- package/dist/workspace/lineage-check.d.ts +3 -0
- package/dist/workspace/lineage-check.d.ts.map +1 -1
- package/dist/workspace/lineage-check.js +23 -4
- package/dist/workspace/links.d.ts +8 -1
- package/dist/workspace/links.d.ts.map +1 -1
- package/dist/workspace/links.js +25 -1
- package/dist/workspace/ls.d.ts +8 -0
- package/dist/workspace/ls.d.ts.map +1 -1
- package/dist/workspace/ls.js +7 -1
- package/dist/workspace/ls.schema.json +7 -0
- package/dist/workspace/member-commands.d.ts.map +1 -1
- package/dist/workspace/member-commands.js +54 -5
- package/dist/workspace/migrate-links.d.ts +45 -0
- package/dist/workspace/migrate-links.d.ts.map +1 -0
- package/dist/workspace/migrate-links.js +100 -0
- package/dist/workspace/migration-dirs.d.ts +74 -0
- package/dist/workspace/migration-dirs.d.ts.map +1 -0
- package/dist/workspace/migration-dirs.js +254 -0
- package/dist/workspace/reason-codes.d.ts +8 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +11 -0
- package/dist/workspace/records-cli.d.ts +11 -0
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-cli.js +57 -5
- package/dist/workspace/records.schema.json +5 -0
- package/dist/workspace/release-candidates.d.ts +2 -0
- package/dist/workspace/release-candidates.d.ts.map +1 -1
- package/dist/workspace/release-candidates.js +5 -2
- package/dist/workspace/release-train.d.ts +53 -0
- package/dist/workspace/release-train.d.ts.map +1 -0
- package/dist/workspace/release-train.js +134 -0
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +4 -3
- package/dist/workspace/repo-ref.d.ts +45 -0
- package/dist/workspace/repo-ref.d.ts.map +1 -0
- package/dist/workspace/repo-ref.js +114 -0
- package/dist/workspace/run-event.schema.json +2 -2
- package/dist/workspace/runs-cli.d.ts +9 -0
- package/dist/workspace/runs-cli.d.ts.map +1 -1
- package/dist/workspace/runs-cli.js +48 -3
- package/dist/workspace/runs.schema.json +7 -0
- package/dist/workspace/search-contract.d.ts +1 -1
- package/dist/workspace/search-contract.d.ts.map +1 -1
- package/dist/workspace/status-decisions.d.ts +37 -0
- package/dist/workspace/status-decisions.d.ts.map +1 -0
- package/dist/workspace/status-decisions.js +147 -0
- package/dist/workspace/status-gates.d.ts +9 -0
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +4 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/status.js +14 -2
- package/dist/workspace/status.schema.json +6 -0
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-cli.js +5 -3
- package/dist/workspace/work-evidence-ops.d.ts +83 -0
- package/dist/workspace/work-evidence-ops.d.ts.map +1 -0
- package/dist/workspace/work-evidence-ops.js +169 -0
- package/dist/workspace/work-evidence.d.ts +12 -2
- package/dist/workspace/work-evidence.d.ts.map +1 -1
- package/dist/workspace/work-evidence.js +21 -3
- package/dist/workspace/work-evidence.schema.json +49 -2
- package/dist/workspace/workspace-gates.d.ts +110 -0
- package/dist/workspace/workspace-gates.d.ts.map +1 -0
- package/dist/workspace/workspace-gates.js +140 -0
- package/dist/workspace/workspace-kinds.schema.json +58 -3
- package/dist/workspace/workspace-ledger.d.ts +76 -0
- package/dist/workspace/workspace-ledger.d.ts.map +1 -0
- package/dist/workspace/workspace-ledger.js +91 -0
- package/dist/workspace/workspace-run.d.ts +112 -0
- package/dist/workspace/workspace-run.d.ts.map +1 -0
- package/dist/workspace/workspace-run.js +432 -0
- package/package.json +1 -1
- package/src/__golden__/wave-loop/op-by-apply-after-fails.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-hold.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-ignored.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-pass.json +10 -0
- package/src/__golden__/wave-loop/op-by-apply-skip.json +10 -0
- package/src/__golden__/wave-loop/op-cost-member-clash.json +6 -0
- package/src/__golden__/wave-loop/op-cost-member.json +13 -0
- package/src/__golden__/wave-loop/op-denied-source.json +16 -0
- package/src/__golden__/wave-loop/op-denied.json +16 -0
- package/src/__golden__/wave-loop/op-discover-rest-short.json +6 -0
- package/src/__golden__/wave-loop/op-discover-rest-stops.json +13 -0
- package/src/__golden__/wave-loop/op-discover-rest.json +26 -0
- package/src/__golden__/wave-loop/op-discover-wide.json +26 -0
- package/src/__golden__/wave-loop/op-held-on-again.json +16 -0
- package/src/__golden__/wave-loop/op-held-on-before-apply.json +16 -0
- package/src/__golden__/wave-loop/op-held-on.json +16 -0
- package/src/__golden__/wave-loop/op-hooks-apply-fails.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-after-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-before-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-fail-before-plan.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-held.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-hold-before-apply.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-pass.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-refused-at-base.json +13 -0
- package/src/__golden__/wave-loop/op-hooks-share.json +33 -0
- package/src/__golden__/wave-loop/op-outcome-held.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan-approved.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan-forever.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-replan.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-stood-down.json +10 -0
- package/src/__golden__/wave-loop/op-outcome-unreadable.json +10 -0
- package/src/__golden__/wave-loop/op-overridden.json +16 -0
- package/src/__golden__/wave-loop/op-per-run.json +20 -0
- package/src/__golden__/wave-loop/op-point.json +13 -0
- package/src/__golden__/wave-loop/op-pr-review.json +10 -0
- package/src/__golden__/wave-loop/op-sealed.json +10 -0
- package/src/__golden__/wave-loop/op-spend-change-only.json +10 -0
- package/src/__golden__/wave-loop/op-spend.json +10 -0
- package/src/__golden__/wave-loop/op-wave-commands.json +55 -0
- package/src/__golden__/wave-loop/op-wide-refused.json +26 -0
- package/src/__golden__/wave-loop/op-wide-waiting.json +29 -0
- package/src/__golden__/wave-loop/op-wide.json +39 -0
- package/src/action-pins.test.ts +78 -0
- package/src/action-pins.ts +92 -0
- package/src/cli/commands/carve-score-once.test.ts +99 -0
- package/src/cli/commands/carve.ts +37 -6
- package/src/cli/commands/check-lexicon.test.ts +2 -2
- package/src/cli/commands/import-report.ts +71 -0
- package/src/cli/commands/import.ts +33 -3
- package/src/cli/commands/migrate-dialect.test.ts +145 -0
- package/src/cli/commands/migrate.ts +132 -11
- package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +4 -4
- package/src/cli/handlers/approve.ts +23 -2
- package/src/cli/handlers/build.ts +7 -1
- package/src/cli/handlers/ledger.ts +54 -0
- package/src/cli/handlers/migrate.ts +21 -12
- package/src/cli/handlers/misc.ts +10 -1
- package/src/cli/handlers/pr-env.ts +2 -2
- package/src/cli/handlers/pr.ts +138 -36
- package/src/cli/handlers/query.ts +16 -4
- package/src/cli/handlers/release.ts +6 -3
- package/src/cli/handlers/search.ts +13 -34
- package/src/cli/main.test.ts +15 -0
- package/src/cli/main.ts +65 -14
- package/src/cli/parse-args.ts +27 -2
- package/src/cli/registry.ts +14 -4
- package/src/components/builders.ts +8 -0
- package/src/components/capability-plugin-loader.ts +13 -1
- package/src/components/capability-plugin.ts +16 -0
- package/src/components/pr-hooks.test.ts +73 -5
- package/src/components/pr-hooks.ts +95 -5
- package/src/components/pr-pipeline.ts +64 -16
- package/src/components/pr-policy.test.ts +64 -1
- package/src/components/pr-policy.ts +53 -0
- package/src/components/registry.test.ts +1 -1
- package/src/components/starter-plugin.ts +6 -0
- package/src/components/verbs/index.ts +2 -0
- package/src/components/verbs/publish-artifact.test.ts +60 -0
- package/src/components/verbs/publish-artifact.ts +122 -0
- package/src/components/verbs/publish-image.test.ts +101 -0
- package/src/components/verbs/publish-image.ts +265 -0
- package/src/config-environments.ts +28 -1
- package/src/config.ts +8 -1
- package/src/gate-decision-bundle.test.ts +1 -0
- package/src/gate-decision-identity.test.ts +9 -0
- package/src/gate-decision.ts +26 -3
- package/src/graph-ir.ts +27 -0
- package/src/graph-walk.test.ts +44 -0
- package/src/graph-walk.ts +102 -0
- package/src/import/parser.ts +20 -0
- package/src/lexicon.ts +74 -6
- package/src/lifecycle/gate-ledger.ts +8 -0
- package/src/lifecycle/git.ts +2 -2
- package/src/lifecycle/ledger-read.test.ts +107 -0
- package/src/lifecycle/ledger-read.ts +195 -0
- package/src/lifecycle/release-workstation.ts +24 -0
- package/src/lifecycle/run-ledger.ts +5 -2
- package/src/lint/cross-root.test.ts +122 -0
- package/src/lint/discover.ts +3 -1
- package/src/lint/post-synth.ts +212 -2
- package/src/lint/rules/op/index.ts +2 -0
- package/src/lint/rules/op/ops019-workspace-op-target.ts +89 -0
- package/src/op/activities/activity-contracts.ts +5 -2
- package/src/op/activities/index.ts +2 -2
- package/src/op/activities/review-agent.test.ts +221 -4
- package/src/op/activities/review-agent.ts +265 -22
- package/src/op/activities/work-evidence.ts +9 -1
- package/src/op/builders.ts +9 -5
- package/src/op/composites/apply-op.test.ts +108 -0
- package/src/op/composites/apply-op.ts +37 -2
- package/src/op/gate-approval.test.ts +6 -1
- package/src/op/gate-approval.ts +12 -6
- package/src/op/gate-quorum-at-base.test.ts +211 -0
- package/src/op/gate-quorum.ts +156 -8
- package/src/op/gate-review.ts +14 -0
- package/src/op/gate.ts +67 -8
- package/src/op/index.ts +3 -2
- package/src/op/local-executor.ts +69 -9
- package/src/op/op-waves-depends-on.test.ts +81 -0
- package/src/op/op-waves-hook-targets.test.ts +4 -2
- package/src/op/op-waves-quorum-product.test.ts +158 -0
- package/src/op/op-waves-run.ts +288 -14
- package/src/op/op-waves.ts +143 -14
- package/src/op/runtime.ts +8 -0
- package/src/op/schedule-overdue.ts +33 -0
- package/src/op/stage-hooks.ts +13 -5
- package/src/op/workspace-run-env.ts +29 -0
- package/src/pr-forge-bundle.test.ts +2 -2
- package/src/pr-forge.test.ts +47 -0
- package/src/pr-forge.ts +68 -0
- package/src/pr-post-open.e2e.test.ts +36 -0
- package/src/pr-post.test.ts +102 -3
- package/src/pr-post.ts +89 -1
- package/src/read-filter.test.ts +54 -0
- package/src/read-filter.ts +193 -0
- package/src/run-event.ts +1 -1
- package/src/stage-hooks-bundle.test.ts +1 -0
- package/src/terraform/carve.ts +52 -15
- package/src/terraform/cuts.test.ts +173 -0
- package/src/terraform/cuts.ts +188 -0
- package/src/terraform/folds.ts +44 -0
- package/src/terraform/graph.ts +9 -0
- package/src/terraform/radius.test.ts +90 -0
- package/src/terraform/reach.test.ts +146 -0
- package/src/terraform/reach.ts +247 -0
- package/src/terraform/score.ts +27 -29
- package/src/terraform/state.ts +3 -1
- package/src/terraform/types.ts +8 -0
- package/src/wave-blocked.ts +28 -3
- package/src/wave-loop-golden.test.ts +4 -3
- package/src/workspace/behold-kinds.test.ts +1 -1
- package/src/workspace/check-contract.test.ts +7 -6
- package/src/workspace/check.schema.json +11 -2
- package/src/workspace/checks/ci-branch.test.ts +128 -0
- package/src/workspace/checks/ci-branch.ts +141 -0
- package/src/workspace/checks/links.ts +12 -1
- package/src/workspace/checks/org.ts +169 -0
- package/src/workspace/checks.ts +64 -7
- package/src/workspace/ci-branches.ts +31 -0
- package/src/workspace/ci-green-branches.test.ts +153 -0
- package/src/workspace/ci-green-cli.ts +7 -7
- package/src/workspace/ci-green-workflow.test.ts +4 -3
- package/src/workspace/ci-green-workflow.ts +13 -9
- package/src/workspace/ci-green.ts +49 -12
- package/src/workspace/ci-run.test.ts +72 -1
- package/src/workspace/ci-run.ts +68 -8
- package/src/workspace/ci-serve.test.ts +95 -0
- package/src/workspace/ci-serve.ts +106 -65
- package/src/workspace/component-environments.test.ts +25 -2
- package/src/workspace/compose-graph.ts +9 -2
- package/src/workspace/composites.schema.json +22 -0
- package/src/workspace/composites.test.ts +39 -8
- package/src/workspace/composites.ts +6 -2
- package/src/workspace/conformance/__writer_fixture__/work/work.schema.json +105 -1
- package/src/workspace/cross-root-lint.test.ts +90 -0
- package/src/workspace/cross-root-lint.ts +126 -0
- package/src/workspace/dbt-kind.test.ts +3 -2
- package/src/workspace/dbt-models-reader.ts +362 -0
- package/src/workspace/dbt-models.test.ts +248 -0
- package/src/workspace/dbt-project-common.ts +113 -0
- package/src/workspace/dbt-project-reader.ts +29 -112
- package/src/workspace/decision-rank.ts +40 -0
- package/src/workspace/declaration.schema.json +133 -24
- package/src/workspace/declaration.ts +84 -15
- package/src/workspace/environments.ts +40 -4
- package/src/workspace/flyway-dir.ts +113 -0
- package/src/workspace/flyway-layout.ts +337 -0
- package/src/workspace/graph-cli.ts +25 -10
- package/src/workspace/graph-contract.test.ts +4 -2
- package/src/workspace/graph.schema.json +34 -0
- package/src/workspace/identity.test.ts +14 -2
- package/src/workspace/intent.ts +6 -14
- package/src/workspace/kind-link-readers.ts +68 -3
- package/src/workspace/kinds.test.ts +12 -7
- package/src/workspace/kinds.ts +132 -7
- package/src/workspace/ledger.schema.json +158 -0
- package/src/workspace/lexicon-outputs.ts +132 -13
- package/src/workspace/lineage-check.ts +30 -7
- package/src/workspace/links.ts +24 -1
- package/src/workspace/ls-contract.test.ts +1 -1
- package/src/workspace/ls.schema.json +7 -0
- package/src/workspace/ls.ts +10 -1
- package/src/workspace/member-commands.ts +60 -2
- package/src/workspace/member-file-schema.test.ts +124 -0
- package/src/workspace/migrate-links.test.ts +99 -0
- package/src/workspace/migrate-links.ts +108 -0
- package/src/workspace/migration-dirs.test.ts +272 -0
- package/src/workspace/migration-dirs.ts +267 -0
- package/src/workspace/org-scope.test.ts +238 -0
- package/src/workspace/reason-codes.test.ts +6 -1
- package/src/workspace/reason-codes.ts +11 -0
- package/src/workspace/records-cli.ts +58 -5
- package/src/workspace/records.schema.json +5 -0
- package/src/workspace/release-candidates.ts +7 -2
- package/src/workspace/release-train.ts +157 -0
- package/src/workspace/release-workflow.ts +4 -3
- package/src/workspace/repo-ref.ts +113 -0
- package/src/workspace/run-event.schema.json +2 -2
- package/src/workspace/runs-cli.ts +48 -4
- package/src/workspace/runs.schema.json +7 -0
- package/src/workspace/status-contract.test.ts +46 -1
- package/src/workspace/status-decisions.test.ts +100 -0
- package/src/workspace/status-decisions.ts +151 -0
- package/src/workspace/status-gates.ts +9 -0
- package/src/workspace/status.schema.json +6 -0
- package/src/workspace/status.ts +17 -3
- package/src/workspace/where-filters.test.ts +39 -0
- package/src/workspace/work-cli.ts +5 -3
- package/src/workspace/work-evidence-ops.test.ts +176 -0
- package/src/workspace/work-evidence-ops.ts +189 -0
- package/src/workspace/work-evidence.schema.json +49 -2
- package/src/workspace/work-evidence.ts +22 -3
- package/src/workspace/workspace-gates.ts +200 -0
- package/src/workspace/workspace-kinds.schema.json +58 -3
- package/src/workspace/workspace-ledger.ts +130 -0
- package/src/workspace/workspace-run.test.ts +322 -0
- package/src/workspace/workspace-run.ts +461 -0
package/dist/lint/post-synth.js
CHANGED
|
@@ -36,13 +36,18 @@ export function getPrimaryOutput(output) {
|
|
|
36
36
|
export function getAdditionalFiles(output) {
|
|
37
37
|
return typeof output === "string" ? {} : (output.files ?? {});
|
|
38
38
|
}
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Structural type guard — used to collect project-authored policy checks.
|
|
41
|
+
* A {@link CrossRootCheck} is not a `PostSynthCheck`, so a policy module or a
|
|
42
|
+
* lexicon's check directory that exports one never puts it in a per-build run.
|
|
43
|
+
*/
|
|
40
44
|
export function isPostSynthCheck(value) {
|
|
41
45
|
return (typeof value === "object" &&
|
|
42
46
|
value !== null &&
|
|
43
47
|
typeof value.id === "string" &&
|
|
44
48
|
typeof value.description === "string" &&
|
|
45
|
-
typeof value.check === "function"
|
|
49
|
+
typeof value.check === "function" &&
|
|
50
|
+
value.scope !== "cross-root");
|
|
46
51
|
}
|
|
47
52
|
/**
|
|
48
53
|
* Run a set of post-synthesis checks against a build result. `env` is threaded
|
|
@@ -70,10 +75,87 @@ export function runPostSynthChecks(checks, buildResult, env, opts) {
|
|
|
70
75
|
};
|
|
71
76
|
const diagnostics = [];
|
|
72
77
|
for (const check of checks) {
|
|
78
|
+
// chant #1939: a cross-root check never runs in a per-build pass, even
|
|
79
|
+
// when a caller hands one over untyped. runCrossRootChecks runs it.
|
|
80
|
+
if (check.scope === "cross-root")
|
|
81
|
+
continue;
|
|
73
82
|
diagnostics.push(...check.check(ctx));
|
|
74
83
|
}
|
|
75
84
|
return diagnostics;
|
|
76
85
|
}
|
|
86
|
+
/** Structural type guard for {@link CrossRootCheck}. */
|
|
87
|
+
export function isCrossRootCheck(value) {
|
|
88
|
+
return (typeof value === "object" &&
|
|
89
|
+
value !== null &&
|
|
90
|
+
typeof value.id === "string" &&
|
|
91
|
+
typeof value.description === "string" &&
|
|
92
|
+
typeof value.check === "function" &&
|
|
93
|
+
value.scope === "cross-root");
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Build the {@link CrossRootContext} for a set of roots. Exported for tests
|
|
97
|
+
* and for a caller that runs checks itself; most callers want
|
|
98
|
+
* {@link runCrossRootChecks}. Throws on an empty or duplicate root name.
|
|
99
|
+
*/
|
|
100
|
+
export function createCrossRootContext(inputs, opts) {
|
|
101
|
+
const seen = new Set();
|
|
102
|
+
const roots = inputs.map((input) => {
|
|
103
|
+
if (input.root.length === 0)
|
|
104
|
+
throw new Error("cross-root run: a build root needs a name");
|
|
105
|
+
if (seen.has(input.root))
|
|
106
|
+
throw new Error(`cross-root run: build root "${input.root}" appears twice`);
|
|
107
|
+
seen.add(input.root);
|
|
108
|
+
const getDocs = createDocsAccessor(input.buildResult.outputs);
|
|
109
|
+
const env = input.env ?? opts?.env;
|
|
110
|
+
return {
|
|
111
|
+
root: input.root,
|
|
112
|
+
...(input.dir ? { dir: input.dir, projectDir: input.dir } : {}),
|
|
113
|
+
outputs: input.buildResult.outputs,
|
|
114
|
+
entities: input.buildResult.entities,
|
|
115
|
+
env,
|
|
116
|
+
buildResult: input.buildResult,
|
|
117
|
+
...(opts?.activityContracts ? { activityContracts: opts.activityContracts } : {}),
|
|
118
|
+
...(input.projectConfig ? { projectConfig: input.projectConfig } : {}),
|
|
119
|
+
get docs() {
|
|
120
|
+
return getDocs();
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
});
|
|
124
|
+
const byName = new Map(roots.map((r) => [r.root, r]));
|
|
125
|
+
let docs;
|
|
126
|
+
let entities;
|
|
127
|
+
return {
|
|
128
|
+
roots,
|
|
129
|
+
root: (name) => byName.get(name),
|
|
130
|
+
get docs() {
|
|
131
|
+
docs ?? (docs = roots.flatMap((r) => r.docs.map((d) => ({ ...d, root: r.root }))));
|
|
132
|
+
return docs;
|
|
133
|
+
},
|
|
134
|
+
get entities() {
|
|
135
|
+
entities ?? (entities = roots.flatMap((r) => [...r.entities].map(([name, entity]) => ({ root: r.root, name, entity }))));
|
|
136
|
+
return entities;
|
|
137
|
+
},
|
|
138
|
+
...(opts?.env ? { env: opts.env } : {}),
|
|
139
|
+
...(opts?.activityContracts ? { activityContracts: opts.activityContracts } : {}),
|
|
140
|
+
...(opts?.links ? { links: opts.links } : {}),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Run the cross-root checks in `checks` over `roots` (chant #1939). Anything
|
|
145
|
+
* in `checks` that is not a {@link CrossRootCheck} is skipped, so a caller can
|
|
146
|
+
* pass a lexicon's whole check list. With no cross-root check to run it
|
|
147
|
+
* returns at once, without building a context.
|
|
148
|
+
*/
|
|
149
|
+
export function runCrossRootChecks(checks, roots, opts) {
|
|
150
|
+
const selected = checks.filter(isCrossRootCheck);
|
|
151
|
+
if (selected.length === 0)
|
|
152
|
+
return [];
|
|
153
|
+
const ctx = createCrossRootContext(roots, opts);
|
|
154
|
+
const diagnostics = [];
|
|
155
|
+
for (const check of selected)
|
|
156
|
+
diagnostics.push(...check.check(ctx));
|
|
157
|
+
return diagnostics;
|
|
158
|
+
}
|
|
77
159
|
// chant #1138 — `applyConfiguredSeverity` (the `lint.rules` severity-override
|
|
78
160
|
// pass over a set of `PostSynthDiagnostic`s) lives in `./config.ts`, not here,
|
|
79
161
|
// even though it operates on this module's own type. This file is a leaf:
|
|
@@ -18,6 +18,7 @@ export { ops016 } from "./ops016-gate-resume.js";
|
|
|
18
18
|
export { ops017, ops017Check, workspaceIdentityGates } from "./ops017-gate-alias.js";
|
|
19
19
|
export { ops018 } from "./ops018-shell-image-digest.js";
|
|
20
20
|
export { sys010, sys010Check } from "./sys010-key-over-plain-http.js";
|
|
21
|
+
export { ops019Check, parseWorkspaceOpTarget, formatWorkspaceOpTarget, OPS019_ID, type WorkspaceOpTarget } from "./ops019-workspace-op-target.js";
|
|
21
22
|
export interface CoreOpCheckOptions {
|
|
22
23
|
/** `decide.backends` from the project's chant.config, for SYS010 (#2828). */
|
|
23
24
|
decideBackends?: Record<string, Pick<DecideBackend, "url" | "key">>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/op/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OA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AAC;AAEnE,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAE/I,MAAM,WAAW,kBAAkB;IACjC,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC;IACpE,6GAA6G;IAC7G,aAAa,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;CACpD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,GAAE,kBAAuB,GAAG,cAAc,EAAE,CAE5E"}
|
|
@@ -24,6 +24,8 @@ export { ops016 } from "./ops016-gate-resume.js";
|
|
|
24
24
|
export { ops017, ops017Check, workspaceIdentityGates } from "./ops017-gate-alias.js";
|
|
25
25
|
export { ops018 } from "./ops018-shell-image-digest.js";
|
|
26
26
|
export { sys010, sys010Check } from "./sys010-key-over-plain-http.js";
|
|
27
|
+
// OPS019 (#2554) reads across members, so it is a cross-root check that only `chant workspace run` runs.
|
|
28
|
+
export { ops019Check, parseWorkspaceOpTarget, formatWorkspaceOpTarget, OPS019_ID } from "./ops019-workspace-op-target.js";
|
|
27
29
|
/**
|
|
28
30
|
* Core's own post-synth checks over the Op model: OPS012, OPS013, OPS014,
|
|
29
31
|
* OPS015, OPS016, OPS017 over the workspace's `identity.gates`, OPS018, and SYS010
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OPS019: workspace-op-target (#2554, #2524 D17, ws-030). The design named
|
|
3
|
+
* this check OPS014; that id was already the ConvergeOp rule-table refusal,
|
|
4
|
+
* so it took the next free one.
|
|
5
|
+
*
|
|
6
|
+
* `chant workspace run` names its work as `<member>/<op>` targets. Before
|
|
7
|
+
* anything runs, every target is checked against the composed graph: each
|
|
8
|
+
* member's root, read under that member's own toolchain, with its Ops among
|
|
9
|
+
* its entities. A target fails when its member is not in the graph (not a
|
|
10
|
+
* `chant` member, or its read failed) or when the member declares no Op of
|
|
11
|
+
* that name.
|
|
12
|
+
*
|
|
13
|
+
* It is a {@link CrossRootCheck} (#1939), so only `runCrossRootChecks` runs
|
|
14
|
+
* it, and `chant build`, `chant lint` and a plain project never do.
|
|
15
|
+
*/
|
|
16
|
+
import type { CrossRootCheck } from "../../post-synth.js";
|
|
17
|
+
export declare const OPS019_ID = "OPS019";
|
|
18
|
+
/** One `<member>/<op>` target. */
|
|
19
|
+
export interface WorkspaceOpTarget {
|
|
20
|
+
member: string;
|
|
21
|
+
op: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Split `<member>/<op>` at its first `/`. A member name has no `/` (the
|
|
25
|
+
* declaration's name pattern rules it out). Returns null for a string with no
|
|
26
|
+
* `/`, or an empty member or op.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseWorkspaceOpTarget(text: string): WorkspaceOpTarget | null;
|
|
29
|
+
export declare const formatWorkspaceOpTarget: (t: WorkspaceOpTarget) => string;
|
|
30
|
+
/** The OPS019 check over `targets`. */
|
|
31
|
+
export declare function ops019Check(targets: readonly WorkspaceOpTarget[]): CrossRootCheck;
|
|
32
|
+
//# sourceMappingURL=ops019-workspace-op-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops019-workspace-op-target.d.ts","sourceRoot":"","sources":["../../../../src/lint/rules/op/ops019-workspace-op-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,kBAAkB,CAAC;AAG5E,eAAO,MAAM,SAAS,WAAW,CAAC;AAElC,kCAAkC;AAClC,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAI7E;AAED,eAAO,MAAM,uBAAuB,MAAO,iBAAiB,KAAG,MAA+B,CAAC;AAO/F,uCAAuC;AACvC,wBAAgB,WAAW,CAAC,OAAO,EAAE,SAAS,iBAAiB,EAAE,GAAG,cAAc,CA2CjF"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { isOpEntity } from "./support.js";
|
|
2
|
+
export const OPS019_ID = "OPS019";
|
|
3
|
+
/**
|
|
4
|
+
* Split `<member>/<op>` at its first `/`. A member name has no `/` (the
|
|
5
|
+
* declaration's name pattern rules it out). Returns null for a string with no
|
|
6
|
+
* `/`, or an empty member or op.
|
|
7
|
+
*/
|
|
8
|
+
export function parseWorkspaceOpTarget(text) {
|
|
9
|
+
const at = text.indexOf("/");
|
|
10
|
+
if (at <= 0 || at === text.length - 1)
|
|
11
|
+
return null;
|
|
12
|
+
return { member: text.slice(0, at), op: text.slice(at + 1) };
|
|
13
|
+
}
|
|
14
|
+
export const formatWorkspaceOpTarget = (t) => `${t.member}/${t.op}`;
|
|
15
|
+
function opName(entity) {
|
|
16
|
+
const props = entity?.props;
|
|
17
|
+
return typeof props?.name === "string" ? props.name : undefined;
|
|
18
|
+
}
|
|
19
|
+
/** The OPS019 check over `targets`. */
|
|
20
|
+
export function ops019Check(targets) {
|
|
21
|
+
return {
|
|
22
|
+
id: OPS019_ID,
|
|
23
|
+
description: "A workspace Op target names a member in the composed graph and an Op that member declares",
|
|
24
|
+
scope: "cross-root",
|
|
25
|
+
check(ctx) {
|
|
26
|
+
const diagnostics = [];
|
|
27
|
+
const opsByRoot = new Map();
|
|
28
|
+
for (const e of ctx.entities) {
|
|
29
|
+
if (!isOpEntity(e.entity))
|
|
30
|
+
continue;
|
|
31
|
+
const name = opName(e.entity) ?? e.name;
|
|
32
|
+
const set = opsByRoot.get(e.root) ?? new Set();
|
|
33
|
+
set.add(name);
|
|
34
|
+
opsByRoot.set(e.root, set);
|
|
35
|
+
}
|
|
36
|
+
for (const t of targets) {
|
|
37
|
+
const target = formatWorkspaceOpTarget(t);
|
|
38
|
+
if (!ctx.root(t.member)) {
|
|
39
|
+
diagnostics.push({
|
|
40
|
+
checkId: OPS019_ID,
|
|
41
|
+
severity: "error",
|
|
42
|
+
message: `${target}: member "${t.member}" is not in the composed graph. A workspace Op runs in a chant member whose graph could be read.`,
|
|
43
|
+
missing: { kind: "member", scope: t.member },
|
|
44
|
+
});
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
const ops = opsByRoot.get(t.member) ?? new Set();
|
|
48
|
+
if (!ops.has(t.op)) {
|
|
49
|
+
const known = [...ops].sort();
|
|
50
|
+
diagnostics.push({
|
|
51
|
+
checkId: OPS019_ID,
|
|
52
|
+
severity: "error",
|
|
53
|
+
message: `${target}: member "${t.member}" declares no Op named "${t.op}". ` +
|
|
54
|
+
(known.length > 0 ? `Its Ops: ${known.join(", ")}.` : "It declares no Ops."),
|
|
55
|
+
root: t.member,
|
|
56
|
+
missing: { kind: "op", scope: t.member },
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return diagnostics;
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -134,7 +134,8 @@ export declare const reviewAgentContract: import("../index.js").ActivityContract
|
|
|
134
134
|
entries: unknown[];
|
|
135
135
|
} | undefined;
|
|
136
136
|
changeSetFile?: string | undefined;
|
|
137
|
-
mode?: "comment" | "report" | undefined;
|
|
137
|
+
mode?: "comment" | "handoff" | "report" | undefined;
|
|
138
|
+
dir?: string | undefined;
|
|
138
139
|
title?: string | undefined;
|
|
139
140
|
description?: string | undefined;
|
|
140
141
|
base?: string | undefined;
|
|
@@ -143,13 +144,14 @@ export declare const reviewAgentContract: import("../index.js").ActivityContract
|
|
|
143
144
|
keyEnv?: string | undefined;
|
|
144
145
|
timeout?: number | undefined;
|
|
145
146
|
}, {
|
|
146
|
-
mode: "comment" | "report";
|
|
147
|
+
mode: "comment" | "handoff" | "report";
|
|
147
148
|
risk: "high" | "low" | "medium" | "unknown";
|
|
148
149
|
exitCode: number | null;
|
|
149
150
|
summary: string;
|
|
150
151
|
commentUrl?: string | undefined;
|
|
151
152
|
pullRequest?: string | undefined;
|
|
152
153
|
mergeRequest?: string | undefined;
|
|
154
|
+
recordFile?: string | undefined;
|
|
153
155
|
}>;
|
|
154
156
|
/**
|
|
155
157
|
* The propose-only template upgrade (#2550, ws-032). `args` mirrors
|
|
@@ -237,6 +239,7 @@ export declare const workEvidenceContract: import("../index.js").ActivityContrac
|
|
|
237
239
|
title: string;
|
|
238
240
|
url?: string | undefined;
|
|
239
241
|
path?: string | undefined;
|
|
242
|
+
ops?: Record<string, unknown> | undefined;
|
|
240
243
|
kind?: string | undefined;
|
|
241
244
|
cwd?: string | undefined;
|
|
242
245
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-contracts.d.ts","sourceRoot":"","sources":["../../../src/op/activities/activity-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH,eAAO,MAAM,yBAAyB;;SAGrC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;EAIjC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EAmB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;EAgB7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;SAGjC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;EAUpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;EAuBpC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"activity-contracts.d.ts","sourceRoot":"","sources":["../../../src/op/activities/activity-contracts.ts"],"names":[],"mappings":"AAAA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;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;EAoBvC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;EAWzC,CAAC;AAWF,eAAO,MAAM,mBAAmB;;;;;;;;;;;EAQ/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;YAIhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAU9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;EAIhC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAIhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EASjC,CAAC"}
|
|
@@ -116,7 +116,8 @@ export const reviewAgentContract = activityContract("reviewAgent", z.strictObjec
|
|
|
116
116
|
op: z.string(),
|
|
117
117
|
changeSet: z.object({ digest: z.string(), entries: z.array(z.unknown()) }).passthrough().optional(),
|
|
118
118
|
changeSetFile: z.string().optional(),
|
|
119
|
-
mode: z.enum(["comment", "report"]).optional(),
|
|
119
|
+
mode: z.enum(["comment", "report", "handoff"]).optional(),
|
|
120
|
+
dir: z.string().optional(),
|
|
120
121
|
title: z.string().optional(),
|
|
121
122
|
description: z.string().optional(),
|
|
122
123
|
base: z.string().optional(),
|
|
@@ -125,13 +126,14 @@ export const reviewAgentContract = activityContract("reviewAgent", z.strictObjec
|
|
|
125
126
|
keyEnv: z.string().optional(),
|
|
126
127
|
timeout: z.number().positive().optional(),
|
|
127
128
|
}), z.object({
|
|
128
|
-
mode: z.enum(["comment", "report"]),
|
|
129
|
+
mode: z.enum(["comment", "report", "handoff"]),
|
|
129
130
|
risk: z.enum(["low", "medium", "high", "unknown"]),
|
|
130
131
|
exitCode: z.number().nullable(),
|
|
131
132
|
summary: z.string(),
|
|
132
133
|
commentUrl: z.string().optional(),
|
|
133
134
|
pullRequest: z.string().optional(),
|
|
134
135
|
mergeRequest: z.string().optional(),
|
|
136
|
+
recordFile: z.string().optional(),
|
|
135
137
|
}));
|
|
136
138
|
/**
|
|
137
139
|
* The propose-only template upgrade (#2550, ws-032). `args` mirrors
|
|
@@ -212,6 +214,7 @@ export const workEvidenceContract = activityContract("workEvidence", z.strictObj
|
|
|
212
214
|
title: z.string(),
|
|
213
215
|
url: z.string().optional(),
|
|
214
216
|
path: z.string().optional(),
|
|
217
|
+
ops: z.record(z.string(), z.unknown()).optional(),
|
|
215
218
|
kind: z.string().optional(),
|
|
216
219
|
cwd: z.string().optional(),
|
|
217
220
|
}), z.object({
|
|
@@ -38,8 +38,8 @@ export { lexiconUpgrade, isPinned, isRolling, severityToLabel, upgradeBranchName
|
|
|
38
38
|
export type { LexiconUpgradeArgs, LexiconUpgradeResult, LexiconUpgradeMode, SupportedLexicon, SemverLabel, CheckPinnedFn, CheckRollingFn, GhRunner, ApplyBumpFn, } from "./lexicon-upgrade.js";
|
|
39
39
|
export { predictBehaviour, behaviourFinding, behaviourFindingMarker, declaredEdgeCoverage, baseRefFrom, headRefFrom, noBaseRefMessage, noContributedRowsMessage, } from "./predict-behaviour.js";
|
|
40
40
|
export type { PredictBehaviourArgs, BehaviourFindingArgs, BehaviourFindingResult, BehaviourFindingMode, BehaviourFindingDeps, BaseCheckout, } from "./predict-behaviour.js";
|
|
41
|
-
export { reviewAgent, reviewMarker } from "./review-agent.js";
|
|
42
|
-
export type { ReviewAgentArgs, ReviewAgentResult, ReviewAgentMode, ReviewRisk } from "./review-agent.js";
|
|
41
|
+
export { parseReviewResult, postReviewNote, readReviewRecord, REVIEW_DIR_ENV, REVIEW_MARKER_PREFIX, REVIEW_RECORD, reviewAgent, reviewMarker } from "./review-agent.js";
|
|
42
|
+
export type { PostReviewNoteArgs, PostReviewNoteResult, ReviewAgentArgs, ReviewAgentResult, ReviewAgentMode, ReviewRecord, ReviewRisk } from "./review-agent.js";
|
|
43
43
|
export { proposeWorkspaceUpgrade } from "./propose-upgrade.js";
|
|
44
44
|
export type { ProposeWorkspaceUpgradeArgs, ProposeWorkspaceUpgradeResult, ProposeUpgradeMode, CommandRunner, } from "./propose-upgrade.js";
|
|
45
45
|
export { changeCoverage } from "./change-coverage.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAQ9C,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAK/C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,YAAY,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC3J,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,YAAY,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAC;AACpJ,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAC3F,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,mBAAmB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,gBAAgB,CAAC;AAI9J,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EACV,2BAA2B,EAC3B,6BAA6B,EAC7B,kBAAkB,EAClB,aAAa,GACd,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAOlF,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGzD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC7G,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -46,7 +46,7 @@ export { predictBehaviour, behaviourFinding, behaviourFindingMarker, declaredEdg
|
|
|
46
46
|
// The review agent (#4299): a model reviews the change set against the pull
|
|
47
47
|
// request's own text and posts one sticky note. Only the activity and its
|
|
48
48
|
// marker are re-exported, since the registry collects every exported function.
|
|
49
|
-
export { reviewAgent, reviewMarker } from "./review-agent.js";
|
|
49
|
+
export { parseReviewResult, postReviewNote, readReviewRecord, REVIEW_DIR_ENV, REVIEW_MARKER_PREFIX, REVIEW_RECORD, reviewAgent, reviewMarker } from "./review-agent.js";
|
|
50
50
|
// The propose-only template upgrade (#2550). Loads the workspace code on first
|
|
51
51
|
// call only, so importing this module loads nothing under `workspace/`.
|
|
52
52
|
export { proposeWorkspaceUpgrade } from "./propose-upgrade.js";
|
|
@@ -14,7 +14,15 @@
|
|
|
14
14
|
* {@link reconcilePr} in `comment` mode and nothing else: no review, no
|
|
15
15
|
* approval, no status. Its result is data a later step may read; no gate reads
|
|
16
16
|
* it, and an agent principal never counts toward a quorum
|
|
17
|
-
* (`../gate-approval.ts`).
|
|
17
|
+
* (`../gate-approval.ts`). A gate policy may read the review's risk
|
|
18
|
+
* (`PrPolicyInput.review`, `../../components/pr-policy.ts`).
|
|
19
|
+
*
|
|
20
|
+
* Two shapes (#4326). In `comment` mode one process runs the command and
|
|
21
|
+
* posts the note, so the forge token sits beside the model. In `handoff` mode
|
|
22
|
+
* the activity runs the command and writes the review to a file, in a job the
|
|
23
|
+
* generator gives no forge write token; {@link postReviewNote} posts it from a
|
|
24
|
+
* separate job that checks nothing out. terragucci splits its review the same
|
|
25
|
+
* way (`render-review.ts`: `review` and `review-note`).
|
|
18
26
|
*
|
|
19
27
|
* The model command runs with the prompt on stdin and prints the review on
|
|
20
28
|
* stdout. Its environment is built from scratch ({@link reviewCommandEnv}):
|
|
@@ -38,8 +46,18 @@ export declare const REVIEW_INSTRUCTIONS = ".chant/review.md";
|
|
|
38
46
|
export declare const REVIEW_KEY_ENV = "ANTHROPIC_API_KEY";
|
|
39
47
|
export declare const REVIEW_RISKS: readonly ["low", "medium", "high"];
|
|
40
48
|
export type ReviewRisk = (typeof REVIEW_RISKS)[number];
|
|
41
|
-
/**
|
|
42
|
-
export
|
|
49
|
+
/** The longest diff the prompt carries (#4326). The rest is cut, and the text says so. */
|
|
50
|
+
export declare const MAX_DIFF = 60000;
|
|
51
|
+
/** The variable that names the directory a `handoff` review is written to, and the note job reads it from. */
|
|
52
|
+
export declare const REVIEW_DIR_ENV = "CHANT_REVIEW_DIR";
|
|
53
|
+
/** The file a `handoff` review is written to, inside that directory. */
|
|
54
|
+
export declare const REVIEW_RECORD = "review.json";
|
|
55
|
+
/**
|
|
56
|
+
* How the review leaves the run. `comment` posts the note from this process.
|
|
57
|
+
* `report` returns it. `handoff` returns it and writes the review to
|
|
58
|
+
* {@link REVIEW_RECORD}, for {@link postReviewNote} to post from another job (#4326).
|
|
59
|
+
*/
|
|
60
|
+
export type ReviewAgentMode = "comment" | "report" | "handoff";
|
|
43
61
|
export interface ReviewAgentArgs {
|
|
44
62
|
/** The Op this step belongs to. It keys the note's marker ({@link reviewMarker}). */
|
|
45
63
|
op: string;
|
|
@@ -47,8 +65,10 @@ export interface ReviewAgentArgs {
|
|
|
47
65
|
changeSet?: ChangeSetDocument;
|
|
48
66
|
/** A file holding the change-set document, read when `changeSet` is not given. */
|
|
49
67
|
changeSetFile?: string;
|
|
50
|
-
/** `comment` posts the note on the triggering pull or merge request; `report` returns it. Default: `comment`. */
|
|
68
|
+
/** `comment` posts the note on the triggering pull or merge request; `report` returns it; `handoff` writes the review for a separate job to post. Default: `comment`. */
|
|
51
69
|
mode?: ReviewAgentMode;
|
|
70
|
+
/** `handoff` mode: the directory the review is written to. Default: the `CHANT_REVIEW_DIR` variable. */
|
|
71
|
+
dir?: string;
|
|
52
72
|
/** The pull request's title. Default: read from the run's event. */
|
|
53
73
|
title?: string;
|
|
54
74
|
/** The pull request's description. Default: read from the run's event. */
|
|
@@ -75,9 +95,24 @@ export interface ReviewAgentResult {
|
|
|
75
95
|
commentUrl?: string;
|
|
76
96
|
pullRequest?: string;
|
|
77
97
|
mergeRequest?: string;
|
|
98
|
+
/** `handoff` mode: the file the review was written to. */
|
|
99
|
+
recordFile?: string;
|
|
78
100
|
}
|
|
79
101
|
/** The note's hidden marker, keyed on the Op. Its prefix differs from every `reconcilePr` and behaviour marker. */
|
|
80
102
|
export declare function reviewMarker(op: string): string;
|
|
103
|
+
/**
|
|
104
|
+
* The note's machine-readable line (#4326): the pull request head the review
|
|
105
|
+
* read and the risk it named. A gate policy reads it back with
|
|
106
|
+
* {@link parseReviewResult}, and counts it only for the head it is applying.
|
|
107
|
+
*/
|
|
108
|
+
export declare function reviewResultMarker(head: string, risk: ReviewRisk | "unknown"): string;
|
|
109
|
+
/** The head and risk a review note's first result line holds, or undefined when it has none. */
|
|
110
|
+
export declare function parseReviewResult(body: string): {
|
|
111
|
+
head: string;
|
|
112
|
+
risk: ReviewRisk | "unknown";
|
|
113
|
+
} | undefined;
|
|
114
|
+
/** The prefix every Op's review note starts with, for a reader that does not know the Op. */
|
|
115
|
+
export declare const REVIEW_MARKER_PREFIX = "<!-- chant-review:";
|
|
81
116
|
/** Text as it goes between the prompt's tags: a closing tag of ours inside it cannot end the section. */
|
|
82
117
|
export declare function quoted(text: string): string;
|
|
83
118
|
/** The change set as the prompt carries it: one line per entry that changes something, members that failed, and holes. */
|
|
@@ -86,6 +121,8 @@ export interface ReviewPromptParts {
|
|
|
86
121
|
title: string;
|
|
87
122
|
description: string;
|
|
88
123
|
changeSet: ChangeSetDocument;
|
|
124
|
+
/** The pull request's diff against its base, or undefined when it could not be read. The prompt cuts it at {@link MAX_DIFF} characters. */
|
|
125
|
+
diff?: string;
|
|
89
126
|
/** The base branch's instructions, or undefined when it has none. */
|
|
90
127
|
instructions?: string;
|
|
91
128
|
instructionsPath: string;
|
|
@@ -101,6 +138,7 @@ export declare function reviewNoteBody(o: {
|
|
|
101
138
|
exitCode: number | null;
|
|
102
139
|
digest: string;
|
|
103
140
|
instructions: "base" | "none";
|
|
141
|
+
head?: string;
|
|
104
142
|
}): string;
|
|
105
143
|
/** The variables the review command sees: the model key and process basics. Never a forge or cloud token. */
|
|
106
144
|
export declare function reviewCommandEnv(env: Record<string, string | undefined>, keyEnv: string): Record<string, string>;
|
|
@@ -109,6 +147,8 @@ export declare function pullRequestTextFrom(env: Record<string, string | undefin
|
|
|
109
147
|
title: string;
|
|
110
148
|
description: string;
|
|
111
149
|
};
|
|
150
|
+
/** The commit the pull request's head is at, from the event payload on GitHub and Forgejo and the CI variable on GitLab. Undefined when the run names none. */
|
|
151
|
+
export declare function pullRequestHeadFrom(env: Record<string, string | undefined>, payload?: unknown): string | undefined;
|
|
112
152
|
/** What a run of the model command returns. */
|
|
113
153
|
export interface CommandOutcome {
|
|
114
154
|
stdout: string;
|
|
@@ -121,9 +161,22 @@ export declare const runReviewCommand: RunReviewCommand;
|
|
|
121
161
|
export type ShowAtBase = (base: string, path: string, signal?: AbortSignal) => Promise<string | undefined>;
|
|
122
162
|
/** `git show` of the base branch's copy, fetching the branch at depth one first since a CI clone may not carry it. */
|
|
123
163
|
export declare const showAtBase: ShowAtBase;
|
|
164
|
+
/** The pull request's diff against its base, or undefined when git cannot say. */
|
|
165
|
+
export type ReadDiff = (base: string, signal?: AbortSignal) => Promise<string | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* `git diff <base>...HEAD` in the checkout. Hooks, fsmonitor, external diff
|
|
168
|
+
* drivers and textconv are off, so nothing in the change runs while its diff
|
|
169
|
+
* is read. Output beyond a few times {@link MAX_DIFF} is not kept: the prompt
|
|
170
|
+
* cuts it anyway. The checkout needs the base branch's history (`origin/<base>`).
|
|
171
|
+
*/
|
|
172
|
+
export declare const gitDiffIn: (cwd?: string) => ReadDiff;
|
|
173
|
+
/** {@link gitDiffIn} the process's working directory. */
|
|
174
|
+
export declare const gitDiffAtBase: ReadDiff;
|
|
124
175
|
export interface ReviewAgentDeps {
|
|
125
176
|
run?: RunReviewCommand;
|
|
126
177
|
show?: ShowAtBase;
|
|
178
|
+
diff?: ReadDiff;
|
|
179
|
+
write?: (path: string, text: string) => Promise<void>;
|
|
127
180
|
post?: typeof reconcilePr;
|
|
128
181
|
env?: Record<string, string | undefined>;
|
|
129
182
|
/** Read the event payload. Default: `GITHUB_EVENT_PATH` parsed, or undefined. */
|
|
@@ -132,6 +185,39 @@ export interface ReviewAgentDeps {
|
|
|
132
185
|
}
|
|
133
186
|
/** Build the activity with its side effects injected, so a test drives it with fakes. */
|
|
134
187
|
export declare function createReviewAgent(deps?: ReviewAgentDeps): (args: ReviewAgentArgs, signal?: AbortSignal) => Promise<ReviewAgentResult>;
|
|
188
|
+
/** What a `handoff` run writes to {@link REVIEW_RECORD}: the model's output and the facts the note quotes. Data, never trusted. */
|
|
189
|
+
export interface ReviewRecord {
|
|
190
|
+
review: string;
|
|
191
|
+
exitCode: number | null;
|
|
192
|
+
digest: string;
|
|
193
|
+
instructions: "base" | "none";
|
|
194
|
+
}
|
|
195
|
+
/** A record read back as untrusted data: each field is checked, and a wrong one is dropped or refused, never passed on. */
|
|
196
|
+
export declare function readReviewRecord(text: string): ReviewRecord | undefined;
|
|
197
|
+
export interface PostReviewNoteArgs {
|
|
198
|
+
/** The Op that ran the review. It comes from the workflow that generated the job, never from the record: the record was written by a job that ran the change's code. */
|
|
199
|
+
op: string;
|
|
200
|
+
/** The directory holding {@link REVIEW_RECORD}. */
|
|
201
|
+
dir: string;
|
|
202
|
+
}
|
|
203
|
+
export interface PostReviewNoteResult {
|
|
204
|
+
posted: boolean;
|
|
205
|
+
reason: string;
|
|
206
|
+
risk: ReviewRisk | "unknown";
|
|
207
|
+
commentUrl?: string;
|
|
208
|
+
pullRequest?: string;
|
|
209
|
+
mergeRequest?: string;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Post a `handoff` review as the Op's one sticky note (#4326). This is the
|
|
213
|
+
* note job's side of the split: it runs in a job that checks nothing out,
|
|
214
|
+
* with the forge write token, and reads the record as data. It posts through
|
|
215
|
+
* {@link reconcilePr} in `comment` mode and nothing else. The pull request's
|
|
216
|
+
* head comes from the event, so a record cannot name another.
|
|
217
|
+
*/
|
|
218
|
+
export declare function createPostReviewNote(deps?: Pick<ReviewAgentDeps, "post" | "env" | "event" | "readFile">): (args: PostReviewNoteArgs, signal?: AbortSignal) => Promise<PostReviewNoteResult>;
|
|
219
|
+
/** {@link createPostReviewNote} with the real forge. */
|
|
220
|
+
export declare const postReviewNote: (args: PostReviewNoteArgs, signal?: AbortSignal) => Promise<PostReviewNoteResult>;
|
|
135
221
|
/** Review the pull request's change set with the configured model and post the finding as one sticky note. Never approves, never gates. */
|
|
136
222
|
export declare const reviewAgent: (args: ReviewAgentArgs, signal?: AbortSignal) => Promise<ReviewAgentResult>;
|
|
137
223
|
//# sourceMappingURL=review-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review-agent.d.ts","sourceRoot":"","sources":["../../../src/op/activities/review-agent.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"review-agent.d.ts","sourceRoot":"","sources":["../../../src/op/activities/review-agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAkB,MAAM,kBAAkB,CAAC;AAE1E,OAAO,EAAc,WAAW,EAAkB,MAAM,aAAa,CAAC;AAItE,kFAAkF;AAClF,eAAO,MAAM,0BAA0B,YAAY,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAQhB,CAAC;AAEZ,sGAAsG;AACtG,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD,yFAAyF;AACzF,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY,YAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAMvD,0FAA0F;AAC1F,eAAO,MAAM,QAAQ,QAAS,CAAC;AAK/B,8GAA8G;AAC9G,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD,wEAAwE;AACxE,eAAO,MAAM,aAAa,gBAAgB,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/D,MAAM,WAAW,eAAe;IAC9B,qFAAqF;IACrF,EAAE,EAAE,MAAM,CAAC;IACX,wFAAwF;IACxF,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yKAAyK;IACzK,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,wGAAwG;IACxG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,KAAK,CAAC,EAA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