@intentius/chant 0.122.0 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/handlers/gate-resume.d.ts +1 -1
- package/dist/cli/handlers/gate-resume.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +1 -1
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/override-approve.d.ts +17 -0
- package/dist/cli/handlers/override-approve.d.ts.map +1 -0
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +4 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/config-import.d.ts +1 -1
- package/dist/gate-decision.d.ts +157 -0
- package/dist/gate-decision.d.ts.map +1 -0
- package/dist/lifecycle/gate-applied.d.ts +75 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -0
- package/dist/lifecycle/gate-audit.d.ts +145 -0
- package/dist/lifecycle/gate-audit.d.ts.map +1 -0
- package/dist/lifecycle/gate-ledger-select.d.ts +54 -0
- package/dist/lifecycle/gate-ledger-select.d.ts.map +1 -0
- package/dist/lifecycle/gate-ledger.d.ts +1 -45
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/override-ledger.d.ts +34 -0
- package/dist/lifecycle/override-ledger.d.ts.map +1 -0
- package/dist/lifecycle/rollback.d.ts.map +1 -1
- package/dist/lifecycle/work-item-id.d.ts +22 -0
- package/dist/lifecycle/work-item-id.d.ts.map +1 -0
- package/dist/lifecycle/work-lease.d.ts +2 -2
- package/dist/lifecycle/work-lease.d.ts.map +1 -1
- package/dist/lint/policy-import.d.ts +1 -1
- package/dist/lint/post-synth.d.ts +20 -1
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/notify-verify.d.ts +62 -0
- package/dist/notify-verify.d.ts.map +1 -0
- package/dist/notify-verify.js +76 -0
- package/dist/notify.d.ts +202 -0
- package/dist/notify.d.ts.map +1 -0
- package/dist/notify.js +307 -0
- package/dist/op/__fixtures__/decide-stub-backend.d.ts +1 -1
- package/dist/op/activities/activity-contracts.d.ts +4 -4
- package/dist/op/activities/gh-host.d.ts +37 -0
- package/dist/op/activities/gh-host.d.ts.map +1 -0
- package/dist/op/activities/lexicon-upgrade.d.ts +11 -0
- package/dist/op/activities/lexicon-upgrade.d.ts.map +1 -1
- package/dist/op/activities/propose-upgrade.d.ts.map +1 -1
- package/dist/op/activities/reconcile.d.ts +74 -76
- package/dist/op/activities/reconcile.d.ts.map +1 -1
- package/dist/op/gate-approval.d.ts +17 -1
- package/dist/op/gate-approval.d.ts.map +1 -1
- package/dist/op/gate-name.d.ts +8 -1
- package/dist/op/gate-name.d.ts.map +1 -1
- package/dist/op/gate-resume.d.ts +4 -2
- package/dist/op/gate-resume.d.ts.map +1 -1
- package/dist/op/gate-review.d.ts +2 -1
- package/dist/op/gate-review.d.ts.map +1 -1
- package/dist/op/gate.d.ts +43 -6
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/index.d.ts +8 -6
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/op-waves-notify.d.ts +31 -0
- package/dist/op/op-waves-notify.d.ts.map +1 -0
- package/dist/op/op-waves-run.d.ts +218 -16
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves.d.ts +113 -2
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/operator.d.ts +15 -0
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/work-lease-decl.d.ts.map +1 -1
- package/dist/op/work-lease-run.d.ts.map +1 -1
- package/dist/override-gate.d.ts +224 -0
- package/dist/override-gate.d.ts.map +1 -0
- package/dist/pr-forge.d.ts +225 -19
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/workspace/conformance/__fixtures__/reference-broker.d.ts +1 -1
- package/dist/workspace/conformance/broker.d.ts +1 -1
- package/dist/workspace/status-gates.d.ts +1 -0
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/trust/gate-seal.d.ts +96 -0
- package/dist/workspace/trust/gate-seal.d.ts.map +1 -0
- package/dist/workspace/trust/policy.d.ts +2 -41
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/seal.d.ts +2 -27
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.d.ts +57 -0
- package/dist/workspace/trust/trust-files.d.ts.map +1 -0
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/package.json +15 -2
- package/src/cli/commands/build.ts +1 -1
- package/src/cli/commands/check-lexicon.ts +3 -1
- package/src/cli/commands/lint-post-synth.e2e.test.ts +117 -0
- package/src/cli/commands/lint.test.ts +4 -109
- package/src/cli/commands/lint.ts +5 -2
- package/src/cli/discovery-skip.e2e.test.ts +18 -3
- package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +2 -2
- package/src/cli/handlers/gate-resume.ts +3 -2
- package/src/cli/handlers/operator.test.ts +12 -1
- package/src/cli/handlers/operator.ts +25 -13
- package/src/cli/handlers/override-approve.test.ts +87 -0
- package/src/cli/handlers/override-approve.ts +103 -0
- package/src/cli/handlers/run-wave.ts +10 -2
- package/src/cli/main.test.ts +8 -0
- package/src/cli/main.ts +15 -0
- package/src/cli/registry.ts +4 -0
- package/src/config-import.ts +1 -1
- package/src/discovery/sandbox/run.test.ts +1 -1
- package/src/gate-decision-bundle.test.ts +56 -0
- package/src/gate-decision.test.ts +237 -0
- package/src/gate-decision.ts +321 -0
- package/src/lifecycle/gate-applied.ts +115 -0
- package/src/lifecycle/gate-audit-bundle.test.ts +47 -0
- package/src/lifecycle/gate-audit.test.ts +134 -0
- package/src/lifecycle/gate-audit.ts +438 -0
- package/src/lifecycle/gate-ledger-select.ts +113 -0
- package/src/lifecycle/gate-ledger.test.ts +22 -0
- package/src/lifecycle/gate-ledger.ts +9 -104
- package/src/lifecycle/override-ledger.test.ts +63 -0
- package/src/lifecycle/override-ledger.ts +69 -0
- package/src/lifecycle/rollback.ts +5 -1
- package/src/lifecycle/work-item-id.test.ts +71 -0
- package/src/lifecycle/work-item-id.ts +35 -0
- package/src/lifecycle/work-lease.ts +4 -5
- package/src/lint/policy-import.ts +1 -1
- package/src/lint/post-synth.test.ts +29 -0
- package/src/lint/post-synth.ts +21 -2
- package/src/notify-bundle.test.ts +50 -0
- package/src/notify-plain-node.e2e.test.ts +68 -0
- package/src/notify-verify.test.ts +59 -0
- package/src/notify-verify.ts +93 -0
- package/src/notify.schema.json +72 -0
- package/src/notify.test.ts +279 -0
- package/src/notify.ts +398 -0
- package/src/op/__fixtures__/decide-stub-backend.ts +1 -1
- package/src/op/activities/gh-host.test.ts +130 -0
- package/src/op/activities/gh-host.ts +79 -0
- package/src/op/activities/lexicon-upgrade.ts +22 -1
- package/src/op/activities/propose-upgrade.ts +5 -1
- package/src/op/activities/reconcile.test.ts +284 -280
- package/src/op/activities/reconcile.ts +128 -131
- package/src/op/gate-approval.test.ts +175 -7
- package/src/op/gate-approval.ts +27 -1
- package/src/op/gate-name.ts +10 -2
- package/src/op/gate-resume.ts +6 -3
- package/src/op/gate-review.ts +4 -7
- package/src/op/gate.ts +117 -16
- package/src/op/index.ts +36 -5
- package/src/op/op-waves-notify.test.ts +127 -0
- package/src/op/op-waves-notify.ts +101 -0
- package/src/op/op-waves-run.ts +908 -123
- package/src/op/op-waves.test.ts +543 -3
- package/src/op/op-waves.ts +215 -6
- package/src/op/operator.test.ts +29 -0
- package/src/op/operator.ts +27 -2
- package/src/op/run-context.test.ts +2 -2
- package/src/op/work-lease-decl.ts +4 -4
- package/src/op/work-lease-run.test.ts +5 -0
- package/src/op/work-lease-run.ts +4 -3
- package/src/override-gate-bundle.test.ts +47 -0
- package/src/override-gate.test.ts +239 -0
- package/src/override-gate.ts +395 -0
- package/src/pr-forge-bundle.test.ts +40 -0
- package/src/pr-forge.test.ts +378 -0
- package/src/pr-forge.ts +546 -47
- package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +1 -1
- package/src/workspace/conformance/__fixtures__/reference-broker.ts +1 -1
- package/src/workspace/conformance/broker.ts +1 -1
- package/src/workspace/records-write-contract.test.ts +3 -2
- package/src/workspace/records-write.e2e.test.ts +1 -1
- package/src/workspace/status-gates.ts +7 -4
- package/src/workspace/trust/gate-seal.test.ts +156 -0
- package/src/workspace/trust/gate-seal.ts +254 -0
- package/src/workspace/trust/policy.ts +10 -165
- package/src/workspace/trust/seal.ts +19 -34
- package/src/workspace/trust/trust-files.test.ts +50 -0
- package/src/workspace/trust/trust-files.ts +245 -0
- package/src/workspace/work-cli.ts +5 -3
- package/src/workspace/work-history.test.ts +7 -0
- /package/src/audit/{catalog.test.ts → catalog.e2e.test.ts} +0 -0
- /package/src/audit/{discover.test.ts → discover.e2e.test.ts} +0 -0
- /package/src/audit/{remote-discovery.test.ts → remote-discovery.e2e.test.ts} +0 -0
- /package/src/audit/{rules-doc.test.ts → rules-doc.e2e.test.ts} +0 -0
- /package/src/{bench.test.ts → bench.e2e.test.ts} +0 -0
- /package/src/cli/commands/{check-lexicon-doc-drift.test.ts → check-lexicon-doc-drift.e2e.test.ts} +0 -0
- /package/src/cli/commands/{import.test.ts → import.e2e.test.ts} +0 -0
- /package/src/cli/{component-security-boundary.test.ts → component-security-boundary.e2e.test.ts} +0 -0
- /package/src/cli/mcp/{workspace-tools.test.ts → workspace-tools.e2e.test.ts} +0 -0
- /package/src/cli/{security-boundary.test.ts → security-boundary.e2e.test.ts} +0 -0
- /package/src/cli/{serve-mcp-workspace.test.ts → serve-mcp-workspace.e2e.test.ts} +0 -0
- /package/src/cli/{static-config-read.test.ts → static-config-read.e2e.test.ts} +0 -0
- /package/src/codegen/{json-schema-to-ts.test.ts → json-schema-to-ts.e2e.test.ts} +0 -0
- /package/src/{lexicon-seams.test.ts → lexicon-seams.e2e.test.ts} +0 -0
- /package/src/meta/{declared-imports.test.ts → declared-imports.e2e.test.ts} +0 -0
- /package/src/op/{command-gate.test.ts → command-gate.e2e.test.ts} +0 -0
- /package/src/op/{steward-beside.test.ts → steward-beside.e2e.test.ts} +0 -0
- /package/src/op/{steward-points.test.ts → steward-points.e2e.test.ts} +0 -0
- /package/src/workspace/{checks.test.ts → checks.e2e.test.ts} +0 -0
- /package/src/workspace/{intent-reviews.test.ts → intent-reviews.e2e.test.ts} +0 -0
- /package/src/workspace/{profiles.test.ts → profiles.e2e.test.ts} +0 -0
- /package/src/workspace/{read-contract.test.ts → read-contract.e2e.test.ts} +0 -0
- /package/src/workspace/{records-contract.test.ts → records-contract.e2e.test.ts} +0 -0
- /package/src/workspace/{records-since.test.ts → records-since.e2e.test.ts} +0 -0
- /package/src/workspace/{records-write.test.ts → records-write-commands.e2e.test.ts} +0 -0
- /package/src/workspace/{work-size.test.ts → work-size.e2e.test.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"op-waves-notify.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-notify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAoD,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC7I,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,0EAA0E;AAC1E,MAAM,MAAM,aAAa,GAAG;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnH,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,YAAY,GAAG,SAAS,CA4D/I;AAED,uFAAuF;AACvF,wBAAsB,YAAY,CAChC,IAAI,EAAE,WAAW,EACjB,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,aAAa,EACtB,GAAG,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,EAC5B,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,cAAc,EAAE,CAAC,CAW3B"}
|
|
@@ -4,7 +4,12 @@
|
|
|
4
4
|
* decides its gate and applies it.
|
|
5
5
|
*
|
|
6
6
|
* - Plan: each run's `plan` command writes a plan file; its `planDigest` is
|
|
7
|
-
* the run's member digest, named by its target.
|
|
7
|
+
* the run's member digest, named by its target. With `planWave` (#3762)
|
|
8
|
+
* one call plans every run and lists each run's plan; the digest and the
|
|
9
|
+
* decision are the same as from per-run plans.
|
|
10
|
+
* - Hooks (#3762): read at base with the policy, run before and after the
|
|
11
|
+
* plan and the apply. One with `onFailure: approve` that fails holds the
|
|
12
|
+
* wave: it waits for an approval of its set digest whatever its policy.
|
|
8
13
|
* - Decide: the wave's policy comes from the spec file at the base commit
|
|
9
14
|
* (`git show <base>:<file>`), so a change cannot loosen its own gate. A
|
|
10
15
|
* wave missing there, or a file missing there, is `always`. A wave that
|
|
@@ -16,15 +21,28 @@
|
|
|
16
21
|
* Under `pr-review` the pull request's pipeline runs `--record-plans`
|
|
17
22
|
* ({@link recordOpWaveHeadPlans}), which plans every wave at the head and
|
|
18
23
|
* records the digests a review of that head approves.
|
|
19
|
-
* -
|
|
24
|
+
* - Spend (#3784): with `approvals.spend` at base, an approval a wave applied
|
|
25
|
+
* under counts for nothing, and the wave records each approval it applies
|
|
26
|
+
* under in `_gates/<name>/applied.jsonl` (`../lifecycle/gate-applied.ts`)
|
|
27
|
+
* just before it applies (a wide wave's deciding job, before its shares).
|
|
28
|
+
* - Apply: each run's `apply` command, or one `applyWave` call for the
|
|
29
|
+
* approved set (#3762). A share job (`--share i`) re-plans its
|
|
20
30
|
* slice first and refuses, without applying it, a run whose plan digest is
|
|
21
31
|
* not the one the deciding job recorded (exit 4).
|
|
32
|
+
* - Hooks file (#3804): every apply call gets `CHANT_HOOKS`, a JSON file
|
|
33
|
+
* ({@link OpWaveHooksFile}) with the outcomes of the hooks that already ran
|
|
34
|
+
* and whether an approval stands. Under `hooks.apply.runBy: "apply"` (read
|
|
35
|
+
* at base) chant does not run the apply-stage hooks itself: the file hands
|
|
36
|
+
* them to the apply, which runs them under its own lock with
|
|
37
|
+
* {@link runOpWaveApplyHooks}, and their outcomes come back through
|
|
38
|
+
* `CHANT_HOOKS_RESULT`. A non-wave apply reads the same hooks at base with
|
|
39
|
+
* {@link opWaveHooksAtBase}.
|
|
22
40
|
*/
|
|
23
41
|
import { type WaveMember } from "../gated-waves.js";
|
|
24
42
|
import { type GateLedgerPort } from "./gate.js";
|
|
25
43
|
import type { HeadPlans, ReviewSource } from "./gate-review.js";
|
|
26
44
|
import type { TrustPolicy } from "../workspace/trust/policy.js";
|
|
27
|
-
import { type GateApprovalSource, type OpWaveGatePolicy, type OpWavesSpec } from "./op-waves.js";
|
|
45
|
+
import { type GateApprovalSource, type OpWaveApplyHooksRunner, type OpWaveGatePolicy, type OpWaveHook, type OpWaveHookMoment, type OpWavesSpec } from "./op-waves.js";
|
|
28
46
|
/** What a run's plan command writes to `{plan}`. */
|
|
29
47
|
export interface OpWavePlanFile {
|
|
30
48
|
planDigest: string;
|
|
@@ -33,6 +51,29 @@ export interface OpWavePlanFile {
|
|
|
33
51
|
/** The plan changes nothing. */
|
|
34
52
|
empty?: boolean;
|
|
35
53
|
}
|
|
54
|
+
/** What a wave-level plan command writes to `{plans}` (#3762): one plan per run, by target. The array alone is read too. */
|
|
55
|
+
export interface OpWavePlansFile {
|
|
56
|
+
runs: Array<OpWavePlanFile & {
|
|
57
|
+
target: string;
|
|
58
|
+
}>;
|
|
59
|
+
}
|
|
60
|
+
/** What chant writes to `{runs}` for a wave-level command or a hook (#3762). */
|
|
61
|
+
export interface OpWaveRunsFile {
|
|
62
|
+
/** The wave's name. */
|
|
63
|
+
wave: string;
|
|
64
|
+
/** 1-based. */
|
|
65
|
+
number: number;
|
|
66
|
+
/** The wave's set digest, once it is decided. On `applyWave`, the digest the set was approved or let through at. */
|
|
67
|
+
digest?: string;
|
|
68
|
+
/** Each run, with its plan once planned. On `applyWave`, the runs to apply. */
|
|
69
|
+
runs: Array<{
|
|
70
|
+
target: string;
|
|
71
|
+
op: string;
|
|
72
|
+
planDigest?: string;
|
|
73
|
+
destructive?: boolean;
|
|
74
|
+
empty?: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
36
77
|
/** One run's plan, as the decision records it. */
|
|
37
78
|
export interface OpWaveMember extends WaveMember {
|
|
38
79
|
op: string;
|
|
@@ -71,9 +112,104 @@ export interface OpWaveDecision {
|
|
|
71
112
|
};
|
|
72
113
|
/** The command that approves this digest, when waiting. */
|
|
73
114
|
approve?: string;
|
|
115
|
+
/** The hooks read at base (#3762), which a wide wave's share jobs run too. Absent when there are none. */
|
|
116
|
+
hooks?: Partial<Record<OpWaveHookMoment, OpWaveHook[]>>;
|
|
117
|
+
/** The `onFailure: approve` hooks that failed: the wave needs an approval whatever its policy (#3762). */
|
|
118
|
+
heldBy?: string[];
|
|
119
|
+
/**
|
|
120
|
+
* Spent approvals (#3784). `base`: the spec at base sets `approvals.spend`,
|
|
121
|
+
* so a spent approval counts for nothing and the approval this wave applies
|
|
122
|
+
* under is recorded. `change`: only the change sets it, so the approval is
|
|
123
|
+
* recorded and spent from the next decision on. Absent: neither.
|
|
124
|
+
*/
|
|
125
|
+
spend?: "base" | "change";
|
|
126
|
+
/** The approval's own timestamp: what the applied record names. */
|
|
127
|
+
approvedAt?: string;
|
|
128
|
+
/** When the wave recorded that it applies under the approval, which spent it. */
|
|
129
|
+
spentAt?: string;
|
|
130
|
+
/** `apply`: the apply command runs the apply-stage hooks under its own lock (#3804), as read at base. Absent: chant runs them. */
|
|
131
|
+
applyHooksRunBy?: "apply";
|
|
132
|
+
/** Every hook's outcome so far in the job that wrote the record (#3804). */
|
|
133
|
+
outcomes?: OpWaveHookOutcome[];
|
|
134
|
+
}
|
|
135
|
+
/** One hook's run (#3762). */
|
|
136
|
+
export interface OpWaveHookOutcome {
|
|
137
|
+
moment: OpWaveHookMoment;
|
|
138
|
+
name: string;
|
|
139
|
+
/** The run, for a `perRun` hook. */
|
|
140
|
+
target?: string;
|
|
141
|
+
exit: number;
|
|
142
|
+
outcome: "passed" | "failed" | "held";
|
|
143
|
+
}
|
|
144
|
+
/** One run as a hook sees it (#3804). */
|
|
145
|
+
export interface OpWaveHookRun {
|
|
146
|
+
target: string;
|
|
147
|
+
op: string;
|
|
148
|
+
/** The run's plan file, once planned. */
|
|
149
|
+
plan?: string;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* What chant hands an apply command in `CHANT_HOOKS` (#3804), and what
|
|
153
|
+
* {@link opWaveHooksAtBase} builds for an apply outside the waves. Paths are
|
|
154
|
+
* relative to the job's working directory.
|
|
155
|
+
*/
|
|
156
|
+
export interface OpWaveHooksFile {
|
|
157
|
+
version: 1;
|
|
158
|
+
/** The Op waves spec's name. */
|
|
159
|
+
opWaves: string;
|
|
160
|
+
/** The spec's `op`: a hook's `{op}` when it runs once for the wave. */
|
|
161
|
+
op: string;
|
|
162
|
+
wave: string;
|
|
163
|
+
/** 1-based; 0 when the working tree's spec has no such wave. */
|
|
164
|
+
number: number;
|
|
165
|
+
/** The commit the hooks were read at. */
|
|
166
|
+
base?: string;
|
|
167
|
+
/** The wave's set digest, once decided. */
|
|
168
|
+
digest?: string;
|
|
169
|
+
/** An approval of the digest stands, so a held hook does not stop the apply. */
|
|
170
|
+
approved: boolean;
|
|
171
|
+
/** The labels of the hooks that held the wave, approved or not. */
|
|
172
|
+
heldBy?: string[];
|
|
173
|
+
/** Who runs the apply-stage hooks. With `chant`, `hooks` is empty: chant runs them around the apply. */
|
|
174
|
+
runBy: OpWaveApplyHooksRunner;
|
|
175
|
+
/** The runs this apply call applies. */
|
|
176
|
+
runs: OpWaveHookRun[];
|
|
177
|
+
/** The runs file, a hook's `{runs}` and `CHANT_RUNS`. */
|
|
178
|
+
runsFile: string;
|
|
179
|
+
/** The hooks the apply runs, by moment, as read at base. */
|
|
180
|
+
hooks: Partial<Record<OpWaveHookMoment, OpWaveHook[]>>;
|
|
181
|
+
/** The hooks that already ran for this wave in this job, and how each came out. */
|
|
182
|
+
outcomes: OpWaveHookOutcome[];
|
|
183
|
+
/** Where {@link runOpWaveApplyHooks} writes its outcomes (`CHANT_HOOKS_RESULT`), which chant reads back. */
|
|
184
|
+
result?: string;
|
|
185
|
+
/** Set when the hooks at base could not be read: none run, and the runner refuses to proceed. */
|
|
186
|
+
refused?: string;
|
|
187
|
+
}
|
|
188
|
+
/** What {@link runOpWaveApplyHooks} writes to `CHANT_HOOKS_RESULT` (#3804). */
|
|
189
|
+
export interface OpWaveHooksResult {
|
|
190
|
+
version: 1;
|
|
191
|
+
/** The moments the apply ran, empty ones included. */
|
|
192
|
+
moments: OpWaveHookMoment[];
|
|
193
|
+
outcomes: OpWaveHookOutcome[];
|
|
194
|
+
}
|
|
195
|
+
/** One call of {@link runOpWaveApplyHooks}. */
|
|
196
|
+
export interface OpWaveApplyHooksRun {
|
|
197
|
+
moment: OpWaveHookMoment;
|
|
198
|
+
outcomes: OpWaveHookOutcome[];
|
|
199
|
+
/** Set when a hook with `onFailure: fail` failed; the hooks after it did not run. */
|
|
200
|
+
failed?: string;
|
|
201
|
+
/** The `onFailure: approve` hooks that failed, or why the hooks could not be read at base. */
|
|
202
|
+
held: string[];
|
|
203
|
+
/**
|
|
204
|
+
* Whether the apply may go on: no hook failed, and nothing held it or an
|
|
205
|
+
* approval of the digest stands. When false after a hold, the apply applies
|
|
206
|
+
* nothing and exits non-zero; chant then waits for, or finds, an approval
|
|
207
|
+
* and calls it again.
|
|
208
|
+
*/
|
|
209
|
+
proceed: boolean;
|
|
74
210
|
}
|
|
75
|
-
/** Runs one argv; returns its exit code. Injected so tests run no processes. */
|
|
76
|
-
export type OpWaveExec = (argv: string[], cwd: string) => number;
|
|
211
|
+
/** Runs one argv; returns its exit code. `env` is added to the job's environment. Injected so tests run no processes. */
|
|
212
|
+
export type OpWaveExec = (argv: string[], cwd: string, env?: Record<string, string>) => number;
|
|
77
213
|
/** Reads one file at one commit, or null when the commit has no such file. Injected for tests. */
|
|
78
214
|
export type OpWaveShowAtBase = (base: string, path: string, cwd: string) => {
|
|
79
215
|
sha: string;
|
|
@@ -81,26 +217,44 @@ export type OpWaveShowAtBase = (base: string, path: string, cwd: string) => {
|
|
|
81
217
|
};
|
|
82
218
|
/** Read a spec file, refusing anything that is not one. */
|
|
83
219
|
export declare function parseOpWavesSpec(text: string, where: string): OpWavesSpec;
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
* file or the wave missing there reads as `always`: a change that adds a
|
|
87
|
-
* wave, or the file, waits for a person the first time.
|
|
88
|
-
*/
|
|
89
|
-
export declare function readOpWavePolicy(specFile: string, name: string, base: string, cwd: string, show?: OpWaveShowAtBase): {
|
|
220
|
+
/** What {@link readOpWavePolicy} read at base. */
|
|
221
|
+
export interface OpWaveBaseRules {
|
|
90
222
|
policy: OpWaveGatePolicy;
|
|
91
223
|
approval: GateApprovalSource;
|
|
92
224
|
source: OpWavePolicySource;
|
|
93
225
|
base: string;
|
|
94
|
-
|
|
95
|
-
|
|
226
|
+
/** The wave's hooks at base, by moment (#3762): the spec's, then the wave's. None when the file or the wave is absent there. */
|
|
227
|
+
hooks: Record<OpWaveHookMoment, OpWaveHook[]>;
|
|
228
|
+
/** Set when the hooks at base could not be read: none run, and the wave waits for a person. */
|
|
229
|
+
hooksRefused?: string;
|
|
230
|
+
/** The spec at base sets `approvals.spend` (#3784). */
|
|
231
|
+
spend: boolean;
|
|
232
|
+
/** Who runs the apply-stage hooks, as read at base (#3804). `chant` when the file, the wave or the hooks are missing there. */
|
|
233
|
+
applyHooksRunBy: OpWaveApplyHooksRunner;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* The policy of wave `name`, as the spec file at `base` declares it. The
|
|
237
|
+
* file or the wave missing there reads as `always`: a change that adds a
|
|
238
|
+
* wave, or the file, waits for a person the first time. Its stage hooks are
|
|
239
|
+
* read there too (#3762), so a change cannot add, edit or remove a hook its
|
|
240
|
+
* own apply runs; the file or the wave missing there has none.
|
|
241
|
+
*/
|
|
242
|
+
export declare function readOpWavePolicy(specFile: string, name: string, base: string, cwd: string, show?: OpWaveShowAtBase): OpWaveBaseRules;
|
|
243
|
+
/** Fill one argv template. A placeholder whose value is not given is left as it is. */
|
|
96
244
|
export declare function opWaveArgv(template: readonly string[], values: {
|
|
97
245
|
op: string;
|
|
98
|
-
target: string;
|
|
99
246
|
wave: string;
|
|
100
|
-
|
|
247
|
+
target?: string;
|
|
248
|
+
plan?: string;
|
|
249
|
+
runs?: string;
|
|
250
|
+
plans?: string;
|
|
101
251
|
}): string[];
|
|
102
252
|
/** Where a run's plan file goes. */
|
|
103
253
|
export declare function opWavePlanPath(spec: Pick<OpWavesSpec, "name">, wave: number, target: string): string;
|
|
254
|
+
/** Where a wave's runs file goes: the `{runs}` of a wave-level command or a hook (#3762). */
|
|
255
|
+
export declare function opWaveRunsPath(spec: Pick<OpWavesSpec, "name">, wave: number): string;
|
|
256
|
+
/** Where a wave-level plan command writes its plans: its `{plans}` (#3762). */
|
|
257
|
+
export declare function opWavePlansPath(spec: Pick<OpWavesSpec, "name">, wave: number): string;
|
|
104
258
|
export interface RunOpWaveOptions {
|
|
105
259
|
spec: OpWavesSpec;
|
|
106
260
|
specFile: string;
|
|
@@ -128,14 +282,62 @@ export interface RunOpWaveOptions {
|
|
|
128
282
|
trust?: (base: string) => TrustPolicy;
|
|
129
283
|
}
|
|
130
284
|
export interface RunOpWaveResult {
|
|
131
|
-
/** 0 applied (or decided), 1 a run failed, 3 waiting for an approval, 4 a plan moved since the decision. */
|
|
285
|
+
/** 0 applied (or decided), 1 a run or a hook failed, 3 waiting for an approval, 4 a plan moved since the decision. */
|
|
132
286
|
exitCode: number;
|
|
133
287
|
decision?: OpWaveDecision;
|
|
134
288
|
applied: string[];
|
|
135
289
|
failed: string[];
|
|
136
290
|
/** Runs a share job refused because their plan moved since the decision. */
|
|
137
291
|
moved: string[];
|
|
292
|
+
/** The hooks that ran (#3762). */
|
|
293
|
+
hooks: OpWaveHookOutcome[];
|
|
138
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Read the hooks file chant hands an apply command (#3804): the one at
|
|
297
|
+
* `path`, by default `CHANT_HOOKS`. Null when there is none, as for an apply
|
|
298
|
+
* that a wave job did not start.
|
|
299
|
+
*/
|
|
300
|
+
export declare function readOpWaveHooksFile(path?: string | undefined, cwd?: string): OpWaveHooksFile | null;
|
|
301
|
+
/**
|
|
302
|
+
* Run one moment's hooks from a hooks file (#3804): what an apply command
|
|
303
|
+
* calls under its own lock, `before-apply` right before it changes anything
|
|
304
|
+
* and `after-apply` once it has, when the spec's `hooks.apply.runBy` at base
|
|
305
|
+
* is `apply`. Also what a product's apply outside the waves calls, with a
|
|
306
|
+
* file from {@link opWaveHooksAtBase}. A moment the file has no hooks for
|
|
307
|
+
* runs nothing and proceeds, so an apply can call it whoever runs the hooks.
|
|
308
|
+
*
|
|
309
|
+
* Each call adds its outcomes to the file's `result` (`CHANT_HOOKS_RESULT`),
|
|
310
|
+
* which chant reads back after the apply exits: the outcomes join the wave's
|
|
311
|
+
* result and decision record, and a hold makes the wave wait for, or find,
|
|
312
|
+
* an approval of its digest. `exec` runs one hook; inject it to run a hook
|
|
313
|
+
* in process or to keep its output.
|
|
314
|
+
*/
|
|
315
|
+
export declare function runOpWaveApplyHooks(file: OpWaveHooksFile, moment: OpWaveHookMoment, options?: {
|
|
316
|
+
cwd?: string;
|
|
317
|
+
exec?: OpWaveExec;
|
|
318
|
+
log?: (line: string) => void;
|
|
319
|
+
}): OpWaveApplyHooksRun;
|
|
320
|
+
/**
|
|
321
|
+
* The hooks of wave `wave` read at base, for an apply outside the waves
|
|
322
|
+
* (#3804): a product's own `apply <env>` that runs the same Op as the wave
|
|
323
|
+
* does, and the same hooks. All four moments are in the file; the apply runs
|
|
324
|
+
* the ones it has a stage for with {@link runOpWaveApplyHooks}. Nothing is
|
|
325
|
+
* approved: a held hook stops the apply. The wave or the file missing at
|
|
326
|
+
* base has no hooks, as in a wave job.
|
|
327
|
+
*/
|
|
328
|
+
export declare function opWaveHooksAtBase(options: {
|
|
329
|
+
specFile: string;
|
|
330
|
+
wave: string;
|
|
331
|
+
/** The runs this apply applies. Default: the wave's runs in the working tree's spec. */
|
|
332
|
+
runs?: ReadonlyArray<{
|
|
333
|
+
target: string;
|
|
334
|
+
op?: string;
|
|
335
|
+
}>;
|
|
336
|
+
/** Default: the spec's `base`, else `HEAD^1`. */
|
|
337
|
+
base?: string;
|
|
338
|
+
cwd?: string;
|
|
339
|
+
show?: OpWaveShowAtBase;
|
|
340
|
+
}): OpWaveHooksFile;
|
|
139
341
|
/** Whether `policy` lets a wave with these members through without an approval. */
|
|
140
342
|
export declare function opWaveNeedsApproval(policy: OpWaveGatePolicy, members: readonly OpWaveMember[]): boolean;
|
|
141
343
|
/** Plan, decide and apply one wave, or one part of a wide wave. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-waves-run.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"op-waves-run.d.ts","sourceRoot":"","sources":["../../src/op/op-waves-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAKH,OAAO,EAA+B,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9E,OAAO,EAAmD,KAAK,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE9F,OAAO,KAAK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/F"}
|
package/dist/op/op-waves.d.ts
CHANGED
|
@@ -33,8 +33,27 @@
|
|
|
33
33
|
* against the signers file at base) or `pr-review` (also the merged pull
|
|
34
34
|
* request's review of its head, by a writer other than its author, when the
|
|
35
35
|
* head planned the same digest). See `./gate-review.ts`.
|
|
36
|
+
*
|
|
37
|
+
* ## Spent approvals (#3784)
|
|
38
|
+
*
|
|
39
|
+
* With `approvals: { spend: true }` (read at base, like the policy), a wave
|
|
40
|
+
* records each approval it applies under in `_gates/<name>/applied.jsonl` on
|
|
41
|
+
* `chant/lifecycle`, as terragucci's wave gate does, and that approval is
|
|
42
|
+
* spent: the same digest needs a new approval to apply again.
|
|
43
|
+
*
|
|
44
|
+
* ## Wave-level commands and hooks (#3762)
|
|
45
|
+
*
|
|
46
|
+
* A product whose tool plans a whole wave in one call (Terragrunt's `run
|
|
47
|
+
* --all`, an apply by rows) gives `planWave` and `applyWave` in place of the
|
|
48
|
+
* per-run `plan` and `apply`: one call plans every run and lists each run's
|
|
49
|
+
* plan, and the wave's digest and gate come from that list as from per-run
|
|
50
|
+
* plans. Stage hooks (`hooks`) run commands before and after the plan and the
|
|
51
|
+
* apply; like the policy they are read from the spec at the base commit, and
|
|
52
|
+
* one whose `onFailure` is `approve` holds the wave for an approval whatever
|
|
53
|
+
* its policy says.
|
|
36
54
|
*/
|
|
37
55
|
import type { OpEnvironment, OpSetupStep } from "../lexicon.js";
|
|
56
|
+
import { type NotifyConfig } from "../notify.js";
|
|
38
57
|
/** When a wave waits for an approval. */
|
|
39
58
|
export type OpWaveGatePolicy =
|
|
40
59
|
/** Whenever the wave changes something. */
|
|
@@ -53,6 +72,52 @@ export type GateApprovalSource =
|
|
|
53
72
|
/** Only a resolution sealed by a key the signers file at base lists for its approver. */
|
|
54
73
|
| "sealed";
|
|
55
74
|
export declare const GATE_APPROVAL_SOURCES: readonly GateApprovalSource[];
|
|
75
|
+
/** What a failing hook does: fail the wave, or hold it for an approval of its set digest. */
|
|
76
|
+
export type OpWaveHookFailure = "fail" | "approve";
|
|
77
|
+
export declare const OP_WAVE_HOOK_FAILURES: readonly OpWaveHookFailure[];
|
|
78
|
+
/** One stage hook (#3762): a command run before or after a wave's plan or apply. */
|
|
79
|
+
export interface OpWaveHook {
|
|
80
|
+
/** The hook's name in the log and the result. Default: its command. */
|
|
81
|
+
name?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Argv template. `{op}`, `{wave}` and `{runs}` (the runs file, see
|
|
84
|
+
* `opWaveRunsPath`) are filled in; a `perRun` hook also gets `{target}`
|
|
85
|
+
* and, once the run is planned, `{plan}`.
|
|
86
|
+
*/
|
|
87
|
+
command: string[];
|
|
88
|
+
/** Default `"fail"`. `"approve"` holds the wave for an approval of its set digest whatever its policy says. Not allowed after apply. */
|
|
89
|
+
onFailure?: OpWaveHookFailure;
|
|
90
|
+
/** Run once per run of the wave, rather than once for the wave. */
|
|
91
|
+
perRun?: boolean;
|
|
92
|
+
}
|
|
93
|
+
/** The stages a hook runs around. */
|
|
94
|
+
export type OpWaveHookStage = "plan" | "apply";
|
|
95
|
+
/** When a hook runs. */
|
|
96
|
+
export type OpWaveHookMoment = "before-plan" | "after-plan" | "before-apply" | "after-apply";
|
|
97
|
+
export declare const OP_WAVE_HOOK_MOMENTS: readonly OpWaveHookMoment[];
|
|
98
|
+
/**
|
|
99
|
+
* Who runs the `before.apply` and `after.apply` hooks (#3804). `chant`: the
|
|
100
|
+
* wave job, around the apply command. `apply`: the apply command itself,
|
|
101
|
+
* under its own lock, through `runOpWaveApplyHooks` and the file named by
|
|
102
|
+
* `CHANT_HOOKS`; it writes the outcomes back to `CHANT_HOOKS_RESULT`.
|
|
103
|
+
*/
|
|
104
|
+
export type OpWaveApplyHooksRunner = "chant" | "apply";
|
|
105
|
+
export declare const OP_WAVE_APPLY_HOOKS_RUNNERS: readonly OpWaveApplyHooksRunner[];
|
|
106
|
+
/** Stage hooks (#3762), read from the spec at the base commit like the gate policy. */
|
|
107
|
+
export interface OpWaveHooks {
|
|
108
|
+
before?: {
|
|
109
|
+
plan?: OpWaveHook[];
|
|
110
|
+
apply?: OpWaveHook[];
|
|
111
|
+
};
|
|
112
|
+
after?: {
|
|
113
|
+
plan?: OpWaveHook[];
|
|
114
|
+
apply?: OpWaveHook[];
|
|
115
|
+
};
|
|
116
|
+
/** Who runs the apply-stage hooks (#3804). Default `{ runBy: "chant" }`. A wave's own setting wins over the spec's. */
|
|
117
|
+
apply?: {
|
|
118
|
+
runBy?: OpWaveApplyHooksRunner;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
56
121
|
/** One Op run in a wave: an Op applied to one target (an environment, a database, a tenant). */
|
|
57
122
|
export interface OpWaveRun {
|
|
58
123
|
/** What the run applies to. Unique within its wave; it names the run in the set digest. */
|
|
@@ -87,6 +152,8 @@ export interface OpWave {
|
|
|
87
152
|
variables?: Record<string, string>;
|
|
88
153
|
/** Steps this wave's jobs run after the checkout, as `ScheduledOpSpec.setup`. */
|
|
89
154
|
setup?: OpSetupStep[];
|
|
155
|
+
/** This wave's stage hooks (#3762), run after the spec's own. Read at the base commit. */
|
|
156
|
+
hooks?: OpWaveHooks;
|
|
90
157
|
}
|
|
91
158
|
/**
|
|
92
159
|
* An ordered list of waves of Op runs, as a pipeline and as the file its jobs
|
|
@@ -111,11 +178,29 @@ export interface OpWavesSpec {
|
|
|
111
178
|
* Plan one run and write its plan file to `{plan}`: JSON `{ "planDigest":
|
|
112
179
|
* string, "destructive"?: boolean, "empty"?: boolean }`. `destructive` is
|
|
113
180
|
* what `on-destructive` waits on; a wave whose runs are all `empty` never
|
|
114
|
-
* waits.
|
|
181
|
+
* waits. Give this or `planWave`.
|
|
115
182
|
*/
|
|
116
|
-
plan
|
|
183
|
+
plan?: string[];
|
|
117
184
|
/** Apply one run whose plan is at `{plan}`. Default `chant run {op} --env {target}`. */
|
|
118
185
|
apply?: string[];
|
|
186
|
+
/**
|
|
187
|
+
* Plan every run of a wave in one call (#3762), in place of `plan`. `{runs}`
|
|
188
|
+
* is a file chant writes, `{ "wave", "number", "runs": [{ "target", "op" }] }`;
|
|
189
|
+
* the command writes `{plans}`: `{ "runs": [{ "target", "planDigest",
|
|
190
|
+
* "destructive"?, "empty"? }] }` (or the array alone), one entry per run.
|
|
191
|
+
*/
|
|
192
|
+
planWave?: string[];
|
|
193
|
+
/**
|
|
194
|
+
* Apply a wave's approved set in one call (#3762), in place of `apply`.
|
|
195
|
+
* `{runs}` lists the runs to apply with the plan digest each was approved
|
|
196
|
+
* at; `{plans}` is the wave plan's file. A non-zero exit fails every run in
|
|
197
|
+
* the set.
|
|
198
|
+
*/
|
|
199
|
+
applyWave?: string[];
|
|
200
|
+
/** Stage hooks for every wave (#3762), run before each wave's own. Read at the base commit. */
|
|
201
|
+
hooks?: OpWaveHooks;
|
|
202
|
+
/** What happens to an approval once a wave applies under it (#3784). Read at the base commit. */
|
|
203
|
+
approvals?: OpWavesApprovals;
|
|
119
204
|
waves: OpWave[];
|
|
120
205
|
/**
|
|
121
206
|
* A scheduled job that starts again a wave job whose approval has arrived
|
|
@@ -125,6 +210,26 @@ export interface OpWavesSpec {
|
|
|
125
210
|
* followed by `chant approve --resume` or a re-run by hand.
|
|
126
211
|
*/
|
|
127
212
|
resume?: OpWavesResume;
|
|
213
|
+
/**
|
|
214
|
+
* Tell people when a wave waits for an approval, a share job refuses a run
|
|
215
|
+
* whose plan moved, or a wave fails (#3761): the environment variables
|
|
216
|
+
* holding a Slack or Teams incoming webhook's URL, or a generic webhook's
|
|
217
|
+
* URL and the key its `chant.notify/v1` events are signed with. A failed
|
|
218
|
+
* delivery is logged and never changes the job's exit code. See
|
|
219
|
+
* `../notify.ts`.
|
|
220
|
+
*/
|
|
221
|
+
notify?: NotifyConfig;
|
|
222
|
+
}
|
|
223
|
+
/** What happens to an approval once a wave applies under it (#3784). */
|
|
224
|
+
export interface OpWavesApprovals {
|
|
225
|
+
/**
|
|
226
|
+
* Spend it. Before a wave applies under an approval it records that in
|
|
227
|
+
* `_gates/<name>/applied.jsonl` on `chant/lifecycle`, and from then on the
|
|
228
|
+
* approval counts for nothing: applying the same digest again, by a re-run
|
|
229
|
+
* or a revert and re-merge, waits for a new approval. Default false: an
|
|
230
|
+
* approval of a digest passes that digest as often as it is planned.
|
|
231
|
+
*/
|
|
232
|
+
spend?: boolean;
|
|
128
233
|
}
|
|
129
234
|
/** The scheduled resume job of an Op waves pipeline (#3683). */
|
|
130
235
|
export interface OpWavesResume {
|
|
@@ -161,6 +266,12 @@ export interface OpWaveJob {
|
|
|
161
266
|
}
|
|
162
267
|
/** Refuse a spec no job could run, naming what is wrong. */
|
|
163
268
|
export declare function assertOpWavesSpec(spec: OpWavesSpec): void;
|
|
269
|
+
/** Refuse hooks no runner could run, naming what is wrong (#3762). */
|
|
270
|
+
export declare function assertOpWaveHooks(where: string, hooks: OpWaveHooks | undefined): void;
|
|
271
|
+
/** The hooks of each moment for wave `name`: the spec's, then the wave's own. */
|
|
272
|
+
export declare function opWaveHooksAt(spec: Pick<OpWavesSpec, "hooks" | "waves">, name: string): Record<OpWaveHookMoment, OpWaveHook[]>;
|
|
273
|
+
/** Who runs wave `name`'s apply-stage hooks (#3804): the wave's `hooks.apply.runBy`, else the spec's, else `chant`. */
|
|
274
|
+
export declare function opWaveApplyHooksRunBy(spec: Pick<OpWavesSpec, "hooks" | "waves">, name: string): OpWaveApplyHooksRunner;
|
|
164
275
|
/**
|
|
165
276
|
* The runs share `share` (1-based) of `shares` applies: the wave's runs sorted
|
|
166
277
|
* by target, cut into contiguous slices whose sizes differ by at most one.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-waves.d.ts","sourceRoot":"","sources":["../../src/op/op-waves.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"op-waves.d.ts","sourceRoot":"","sources":["../../src/op/op-waves.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,KAAK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MAAM,CAEhF"}
|
package/dist/op/operator.d.ts
CHANGED
|
@@ -248,6 +248,14 @@ export interface BesideState {
|
|
|
248
248
|
}
|
|
249
249
|
/** A fresh {@link BesideState}. */
|
|
250
250
|
export declare function createBesideState(): BesideState;
|
|
251
|
+
/**
|
|
252
|
+
* Release the per-Op leases a stopped operator still holds (#2879), best
|
|
253
|
+
* effort: a lease that is gone or taken over since is left alone, and one that
|
|
254
|
+
* can't be released expires on its TTL as before.
|
|
255
|
+
*/
|
|
256
|
+
export declare function releaseHeldLeases(held: Map<string, string>, holder: string, opts?: {
|
|
257
|
+
cwd?: string;
|
|
258
|
+
}): Promise<void>;
|
|
251
259
|
/** Wait for every run in flight beside the turns to end. `chant operator --steward --once` does before it exits. */
|
|
252
260
|
export declare function waitForBesideRuns(state: BesideState): Promise<void>;
|
|
253
261
|
/**
|
|
@@ -299,6 +307,13 @@ export interface OperatorRoundOptions {
|
|
|
299
307
|
* it returns.
|
|
300
308
|
*/
|
|
301
309
|
besideState?: BesideState;
|
|
310
|
+
/**
|
|
311
|
+
* The per-Op leases this process holds after its ticks, Op name to the
|
|
312
|
+
* token of the newest acquire (#2879). A round records each lease it takes
|
|
313
|
+
* or renews here. `runOperatorForever` owns one and releases what is left when it stops, so
|
|
314
|
+
* a restarted operator does not skip its Ops until the old leases expire.
|
|
315
|
+
*/
|
|
316
|
+
heldLeases?: Map<string, string>;
|
|
302
317
|
/** How a run beside the turns is started. Default: `chant run <op>` in a process of its own ({@link spawnBesideRun}). */
|
|
303
318
|
launchBeside?: BesideLauncher;
|
|
304
319
|
/** The environment the steward operator was started for (`--env`), passed on to a run it starts beside its turns. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../src/op/operator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,qBAA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;AACzC,+EAA+E;GAC7E;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAC9D,6EAA6E;GAC3E;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAC/D,iFAAiF;GAC/E;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAWnE;AAED,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wKAAwK;IACxK,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IAChD;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC1C,gGAAgG;IAChG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACtD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiGjF;AAED,wiBAAwiB;AACxiB,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAwChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-lease-decl.d.ts","sourceRoot":"","sources":["../../src/op/work-lease-decl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"work-lease-decl.d.ts","sourceRoot":"","sources":["../../src/op/work-lease-decl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAsB,KAAK,QAAQ,EAAwB,MAAM,SAAS,CAAC;AAElF,0HAA0H;AAC1H,eAAO,MAAM,uBAAuB,QAAuB,CAAC;AAW5D;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,iBAAiB,CAAC,GAAG,MAAM,EAAE,CA4CvH;AAED,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,OAAO,CAElF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"work-lease-run.d.ts","sourceRoot":"","sources":["../../src/op/work-lease-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;
|
|
1
|
+
{"version":3,"file":"work-lease-run.d.ts","sourceRoot":"","sources":["../../src/op/work-lease-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAoBH,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACpF,OAAO,EAAsB,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,wFAAwF;AACxF,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CA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