@intentius/chant 0.124.77 → 0.124.79
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/__fixtures__/notify-messages/events.d.ts +9 -0
- package/dist/__fixtures__/notify-messages/events.d.ts.map +1 -0
- package/dist/__fixtures__/notify-messages/events.js +21 -0
- package/dist/__fixtures__/product-words.d.ts +14 -0
- package/dist/__fixtures__/product-words.d.ts.map +1 -1
- package/dist/__fixtures__/product-words.js +11 -0
- package/dist/__fixtures__/terragucci-notify.d.ts +66 -0
- package/dist/__fixtures__/terragucci-notify.d.ts.map +1 -0
- package/dist/__fixtures__/terragucci-notify.js +133 -0
- package/dist/action-pins.d.ts +8 -0
- package/dist/action-pins.d.ts.map +1 -1
- package/dist/action-pins.js +8 -0
- package/dist/agent-guard.d.ts.map +1 -1
- package/dist/agent-guard.js +1 -2
- package/dist/change-set.d.ts +10 -1
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +4 -1
- package/dist/ci-agent.d.ts +16 -2
- package/dist/ci-agent.d.ts.map +1 -1
- package/dist/ci-agent.js +6 -1
- package/dist/ci-commit.d.ts +66 -2
- package/dist/ci-commit.d.ts.map +1 -1
- package/dist/ci-commit.js +147 -19
- package/dist/ci-own-jobs.d.ts.map +1 -1
- package/dist/ci-own-jobs.js +1 -2
- package/dist/ci-product-words.d.ts +18 -4
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +26 -6
- package/dist/ci-product.d.ts +7 -3
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +8 -5
- package/dist/cli/handlers/release.d.ts +8 -0
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +68 -6
- package/dist/cli/handlers/run-wave.js +1 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +7 -0
- package/dist/cli/mcp/product-tools.d.ts +6 -0
- package/dist/cli/mcp/product-tools.d.ts.map +1 -1
- package/dist/cli/mcp/product-tools.js +7 -0
- package/dist/cli/mcp/read-only.d.ts +12 -0
- package/dist/cli/mcp/read-only.d.ts.map +1 -1
- package/dist/cli/mcp/read-only.js +16 -0
- package/dist/cli/mcp/server.d.ts +11 -0
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/mcp/server.js +26 -5
- package/dist/cli/mcp/types.d.ts +5 -1
- package/dist/cli/mcp/types.d.ts.map +1 -1
- package/dist/components/capability.d.ts +42 -0
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/group-digest.d.ts +17 -0
- package/dist/components/group-digest.d.ts.map +1 -0
- package/dist/components/group-digest.js +18 -0
- package/dist/components/groups.d.ts +2 -11
- package/dist/components/groups.d.ts.map +1 -1
- package/dist/components/groups.js +2 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/pr-env-components.d.ts.map +1 -1
- package/dist/components/pr-env-components.js +1 -2
- package/dist/config.d.ts +28 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -1
- package/dist/lexicon.d.ts +8 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lexicon.js +8 -0
- package/dist/lifecycle/release-cut.d.ts +7 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +1 -0
- package/dist/lifecycle/release-images.d.ts +86 -3
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +131 -6
- package/dist/lifecycle/release-publish.d.ts +8 -1
- package/dist/lifecycle/release-publish.d.ts.map +1 -1
- package/dist/lifecycle/release-publish.js +30 -3
- package/dist/lifecycle/release-version.d.ts +86 -0
- package/dist/lifecycle/release-version.d.ts.map +1 -0
- package/dist/lifecycle/release-version.js +209 -0
- package/dist/mcp/types.d.ts +26 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/notify-product.d.ts +11 -2
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +15 -4
- package/dist/notify-relay.d.ts.map +1 -1
- package/dist/notify-relay.js +1 -2
- package/dist/notify.d.ts +36 -4
- package/dist/notify.d.ts.map +1 -1
- package/dist/notify.js +31 -21
- package/dist/notify.schema.json +1 -0
- package/dist/op/activities/review-product.d.ts +111 -0
- package/dist/op/activities/review-product.d.ts.map +1 -0
- package/dist/op/activities/review-product.js +115 -0
- package/dist/op/gate.d.ts +17 -0
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +36 -0
- package/dist/op/index.d.ts +8 -6
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +5 -4
- package/dist/op/op-waves-after-plan.d.ts +76 -1
- package/dist/op/op-waves-after-plan.d.ts.map +1 -1
- package/dist/op/op-waves-after-plan.js +142 -3
- package/dist/op/op-waves-capability-spec.js +1 -2
- package/dist/op/op-waves-capability.d.ts +89 -2
- package/dist/op/op-waves-capability.d.ts.map +1 -1
- package/dist/op/op-waves-capability.js +215 -7
- package/dist/op/op-waves-run-hooks.d.ts +104 -0
- package/dist/op/op-waves-run-hooks.d.ts.map +1 -0
- package/dist/op/op-waves-run-hooks.js +146 -0
- package/dist/op/op-waves-run.d.ts +21 -0
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +233 -13
- package/dist/op/op-waves.d.ts +11 -1
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +7 -1
- package/dist/op/runtime.d.ts +2 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/policy-engine.d.ts.map +1 -1
- package/dist/policy-engine.js +1 -2
- package/dist/pr-forge-reads.d.ts +124 -0
- package/dist/pr-forge-reads.d.ts.map +1 -0
- package/dist/pr-forge-reads.js +322 -0
- package/dist/pr-forge.d.ts +14 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +21 -13
- package/dist/pr-plan-note.d.ts +293 -0
- package/dist/pr-plan-note.d.ts.map +1 -0
- package/dist/pr-plan-note.js +361 -0
- package/dist/release-floors.d.ts +13 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +13 -1
- package/dist/state-export.d.ts.map +1 -1
- package/dist/state-export.js +1 -2
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +1 -2
- package/dist/state-unlock.d.ts.map +1 -1
- package/dist/state-unlock.js +1 -2
- package/dist/wave-runtime.mjs +314 -314
- package/dist/workspace/change-set.schema.json +7 -0
- package/dist/workspace/release-workflow.d.ts +7 -0
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +13 -2
- package/package.json +1 -1
- package/src/__fixtures__/notify-messages/events.ts +23 -0
- package/src/__fixtures__/notify-messages/messages.json +50 -0
- package/src/__fixtures__/pr-loop/terragucci-plan.note.golden.md +53 -0
- package/src/__fixtures__/pr-loop/terragucci-plan.note.json +83 -0
- package/src/__fixtures__/product-words.ts +12 -0
- package/src/__fixtures__/review-agent/terragucci-review.json +94 -0
- package/src/__fixtures__/terragucci-notify.ts +170 -0
- package/src/action-pins.test.ts +11 -1
- package/src/action-pins.ts +9 -0
- package/src/agent-guard.test.ts +1 -2
- package/src/agent-guard.ts +1 -2
- package/src/change-set.test.ts +20 -0
- package/src/change-set.ts +11 -1
- package/src/ci-agent.test.ts +9 -0
- package/src/ci-agent.ts +15 -2
- package/src/ci-commit.test.ts +162 -0
- package/src/ci-commit.ts +167 -21
- package/src/ci-own-jobs.test.ts +1 -2
- package/src/ci-own-jobs.ts +1 -2
- package/src/ci-product-words.ts +35 -7
- package/src/ci-product.ts +9 -6
- package/src/cli/handlers/build-pr-loop-control.test.ts +1 -2
- package/src/cli/handlers/build-run-group.test.ts +1 -2
- package/src/cli/handlers/release.ts +60 -7
- package/src/cli/handlers/run-wave.ts +1 -0
- package/src/cli/main.ts +7 -0
- package/src/cli/mcp/product-tools.test.ts +50 -0
- package/src/cli/mcp/product-tools.ts +8 -0
- package/src/cli/mcp/read-only.ts +19 -0
- package/src/cli/mcp/server.test.ts +30 -0
- package/src/cli/mcp/server.ts +28 -5
- package/src/cli/mcp/types.ts +6 -1
- package/src/components/capability.ts +41 -0
- package/src/components/group-digest.ts +20 -0
- package/src/components/groups.ts +3 -13
- package/src/components/index.ts +2 -0
- package/src/components/pr-env-components.test.ts +1 -2
- package/src/components/pr-env-components.ts +1 -2
- package/src/config.ts +38 -3
- package/src/gate-policy-bundle.test.ts +1 -1
- package/src/lexicon.ts +9 -0
- package/src/lifecycle/release-cut.ts +11 -0
- package/src/lifecycle/release-images-dockerfile.test.ts +229 -0
- package/src/lifecycle/release-images.ts +171 -8
- package/src/lifecycle/release-publish.ts +34 -3
- package/src/lifecycle/release-version.test.ts +155 -0
- package/src/lifecycle/release-version.ts +227 -0
- package/src/mcp/types.ts +27 -0
- package/src/notify-message-words.test.ts +185 -0
- package/src/notify-product.ts +16 -4
- package/src/notify-relay.ts +1 -2
- package/src/notify.schema.json +1 -0
- package/src/notify.ts +59 -19
- package/src/op/activities/review-product.test.ts +116 -0
- package/src/op/activities/review-product.ts +199 -0
- package/src/op/gate.ts +46 -0
- package/src/op/index.ts +10 -4
- package/src/op/op-waves-after-plan-wave.test.ts +226 -0
- package/src/op/op-waves-after-plan.ts +170 -5
- package/src/op/op-waves-capability-spec.ts +1 -1
- package/src/op/op-waves-capability.test.ts +6 -0
- package/src/op/op-waves-capability.ts +243 -10
- package/src/op/op-waves-run-hooks.test.ts +184 -0
- package/src/op/op-waves-run-hooks.ts +195 -0
- package/src/op/op-waves-run.ts +240 -16
- package/src/op/op-waves-step-wave.test.ts +277 -0
- package/src/op/op-waves.ts +15 -2
- package/src/op/runtime.ts +2 -0
- package/src/op/schedule-overdue.test.ts +26 -0
- package/src/policy-engine.test.ts +1 -2
- package/src/policy-engine.ts +1 -2
- package/src/pr-forge-reads.test.ts +285 -0
- package/src/pr-forge-reads.ts +424 -0
- package/src/pr-forge.ts +30 -16
- package/src/pr-plan-note.test.ts +105 -0
- package/src/pr-plan-note.ts +520 -0
- package/src/release-floors.ts +19 -1
- package/src/state-export.test.ts +1 -2
- package/src/state-export.ts +1 -2
- package/src/state-migration.test.ts +1 -2
- package/src/state-migration.ts +1 -2
- package/src/state-unlock.test.ts +1 -2
- package/src/state-unlock.ts +1 -2
- package/src/workspace/change-set.schema.json +7 -0
- package/src/workspace/release-workflow.test.ts +18 -0
- package/src/workspace/release-workflow.ts +23 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-product-words.d.ts","sourceRoot":"","sources":["../src/ci-product-words.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,iGAAiG;AACjG,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/G,8EAA8E;AAC9E,eAAO,MAAM,iBAAiB,EAAE,SAAS,cAAc,EAAiF,CAAC;AAEzI;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEpG,eAAO,MAAM,mBAAmB,EAAE,SAAS,gBAAgB,EAAqE,CAAC;AAEjI;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,cAAc,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,CAAC;AAEzE,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAA4C,CAAC;AAE7G,qGAAqG;AACrG,MAAM,WAAW,cAAc;IAC7B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,uFA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AS,CAAM,EAC5C,UAAU,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAM,GAChD,oBAAoB,GAAG,SAAS,CAqGlC;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;aAAK,OAAO,EAAE,sBAAsB;aAAE,MAAM,EAAE,qBAAqB;aAAE,MAAM,EAAE,cAAc;CAAW,CAAC;AAEtI,0HAA0H;AAC1H,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AAExD,sGAAsG;AACtG,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,GAAG,UAAU,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3J;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,oBAAoB,CAiBzH"}
|
package/dist/ci-product-words.js
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* command's lifetime. Every renderer here reads {@link activeProductWords}
|
|
20
20
|
* when it is given none.
|
|
21
21
|
*
|
|
22
|
-
* This module imports nothing
|
|
23
|
-
* pr-loop-bundle.test.ts) carries it.
|
|
22
|
+
* This module imports nothing at run time (the one import is a type): the
|
|
23
|
+
* pull request loop bundle (pr-loop.ts, pr-loop-bundle.test.ts) carries it.
|
|
24
24
|
*/
|
|
25
25
|
/** Every stage slot, in the order {@link assertProductWords} reports them. */
|
|
26
26
|
export const CI_PRODUCT_STAGES = ["plan", "apply", "record", "check", "drift", "lock", "approval", "control"];
|
|
@@ -74,6 +74,7 @@ export function resolveProductWords(input = {}) {
|
|
|
74
74
|
source: input.notify?.source ?? product,
|
|
75
75
|
wave: input.notify?.wave ?? CHANT_NOTIFY_WAVE_TEMPLATE,
|
|
76
76
|
headers: input.notify?.headers ?? `x-${product}`,
|
|
77
|
+
...(input.notify?.message ? { message: input.notify.message } : {}),
|
|
77
78
|
},
|
|
78
79
|
};
|
|
79
80
|
}
|
|
@@ -286,6 +287,12 @@ const TARGET = /^[A-Za-z0-9_][A-Za-z0-9_.:\/\[\]"*@=+$,-]{0,499}$/;
|
|
|
286
287
|
* No leading dash, no spaces, no shell or glob syntax.
|
|
287
288
|
*/
|
|
288
289
|
const ACTION = /^[A-Za-z_][A-Za-z0-9_.\[\]"-]{0,299}$/;
|
|
290
|
+
/**
|
|
291
|
+
* The one argument a commit word may take after it (#4820), on top of the
|
|
292
|
+
* product's own pattern: a plain name, no leading dash, no path or shell
|
|
293
|
+
* syntax, at most 100 characters.
|
|
294
|
+
*/
|
|
295
|
+
export const COMMIT_COMMENT_ARG = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
|
|
289
296
|
/** The longest ask an agent comment may carry. */
|
|
290
297
|
export const PRODUCT_COMMENT_ASK_MAX = 2000;
|
|
291
298
|
/** Commands a comment never runs, named in the reply so nobody waits on them. */
|
|
@@ -298,9 +305,12 @@ const NEVER = new Set(["approve", "override", "force-unlock", "unlock-state", "i
|
|
|
298
305
|
* comment is untrusted input: only a member path checked against a pattern
|
|
299
306
|
* with no shell syntax, and a wave number, leave this function.
|
|
300
307
|
*
|
|
301
|
-
* `env` turns on an alias whose `when` variable is `1` there.
|
|
308
|
+
* `env` turns on an alias whose `when` variable is `1` there. `commitArgs`
|
|
309
|
+
* names the commit words that take one argument after them (#4820), each
|
|
310
|
+
* with the pattern it must match; it must also match
|
|
311
|
+
* {@link COMMIT_COMMENT_ARG}. Any other commit word takes nothing.
|
|
302
312
|
*/
|
|
303
|
-
export function parseProductComment(words, body, env = {}) {
|
|
313
|
+
export function parseProductComment(words, body, env = {}, commitArgs = {}) {
|
|
304
314
|
if (typeof body !== "string")
|
|
305
315
|
return undefined;
|
|
306
316
|
let text = body.trim();
|
|
@@ -356,8 +366,18 @@ export function parseProductComment(words, body, env = {}) {
|
|
|
356
366
|
case "lock":
|
|
357
367
|
case "unlock":
|
|
358
368
|
return parts.length === 2 ? { kind: command } : { kind: "refused", reason: `${line} takes nothing after it` };
|
|
359
|
-
case "commit":
|
|
360
|
-
|
|
369
|
+
case "commit": {
|
|
370
|
+
if (parts.length === 2)
|
|
371
|
+
return { kind: "commit", word: typed };
|
|
372
|
+
const pattern = Object.prototype.hasOwnProperty.call(commitArgs, typed) ? commitArgs[typed] : undefined;
|
|
373
|
+
if (pattern === undefined)
|
|
374
|
+
return { kind: "refused", reason: `${line} takes nothing after it` };
|
|
375
|
+
const arg = parts[2];
|
|
376
|
+
if (parts.length !== 3 || !COMMIT_COMMENT_ARG.test(arg) || !pattern.test(arg)) {
|
|
377
|
+
return { kind: "refused", reason: `${line} takes nothing, or one name after it matching \`${pattern.source}\`` };
|
|
378
|
+
}
|
|
379
|
+
return { kind: "commit", word: typed, arg };
|
|
380
|
+
}
|
|
361
381
|
case "agent": {
|
|
362
382
|
const ask = text.slice(`${prefix} ${typed}`.length).trim();
|
|
363
383
|
if (ask === "")
|
package/dist/ci-product.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type { ProductWaveHook } from "./op/op-waves-after-plan.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const CI_PRODUCT_FLOOR = "0.124.55";
|
|
21
21
|
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productActionFromEnv, PRODUCT_ACTION_ENV, PRODUCT_ACTION_EVENT_FLAG, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, type ApproveLineInput, type CiProductAlias, type CiProductApplyMode, type CiProductApproval, type CiProductCommand, type CiProductNotifyWords, type CiProductNotifyWordsInput, type CiProductStage, type CiProductWords, type CiProductWordsInput, type OverrideLineInput, type ParsedProductComment, type ProductActionRequest, } from "./ci-product-words.js";
|
|
22
|
-
export { driftNotifyFields, productNotifySource, productNotifyWords, productSendOptions, type DriftNotifyInput } from "./notify-product.js";
|
|
22
|
+
export { driftNotifyFields, NOTIFY_MESSAGE_WORDS_FLOOR, productNotifySource, productNotifyWords, productSendOptions, type DriftNotifyInput } from "./notify-product.js";
|
|
23
23
|
/** The first chant with `chant notify relay` and the notify relay buttons (#4611). */
|
|
24
24
|
export declare const NOTIFY_RELAY_FLOOR = "0.124.55";
|
|
25
25
|
/**
|
|
@@ -173,8 +173,12 @@ export type { ProductMcpContext, ProductMcpHook } from "./cli/mcp/product-tools.
|
|
|
173
173
|
* true` for these, and its hook gains `propose?: boolean`. Feature-detect on
|
|
174
174
|
* `PRODUCT_MCP_PROPOSE_FLOOR`: on an older chant the read-only server drops a
|
|
175
175
|
* `forgeWrite` tool, and `--propose` is not a flag it parses.
|
|
176
|
+
*
|
|
177
|
+
* `tools/list` gives each tool's MCP annotations from `MCP_TOOL_ANNOTATIONS_FLOOR`
|
|
178
|
+
* on (chant#4823): `readOnly: true` and `forgeWrite: true` set `readOnlyHint`
|
|
179
|
+
* and `destructiveHint`, and a contribution's `annotations` add the rest.
|
|
176
180
|
*/
|
|
177
|
-
export { PRODUCT_MCP_PROPOSE_FLOOR, PRODUCT_TOOL_PROPOSE_WORDS } from "./cli/mcp/product-tools.js";
|
|
178
|
-
export type { McpToolContribution } from "./mcp/types.js";
|
|
181
|
+
export { MCP_TOOL_ANNOTATIONS_FLOOR, PRODUCT_MCP_PROPOSE_FLOOR, PRODUCT_TOOL_PROPOSE_WORDS } from "./cli/mcp/product-tools.js";
|
|
182
|
+
export type { McpToolContribution, ToolAnnotations } from "./mcp/types.js";
|
|
179
183
|
export { activeOtlp, configureOtlp, OTLP_EXPORTER_FLOOR, RunEventTrace, type CapabilityTraceFacts, type CapabilityTraceSpan, type OtlpExporter, } from "./otlp.js";
|
|
180
184
|
//# sourceMappingURL=ci-product.d.ts.map
|
package/dist/ci-product.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-product.d.ts","sourceRoot":"","sources":["../src/ci-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ci-product.d.ts","sourceRoot":"","sources":["../src/ci-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,gBA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AAwB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhI;;;;;;GAMG;AACH,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,KAAK,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AACtK,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,aAAsB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEjF;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC5H,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EACL,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC"}
|
package/dist/ci-product.js
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* and `assertProductWords` present means the rest is too.
|
|
10
10
|
*/
|
|
11
11
|
import { OTLP_EXPORTER_FLOOR } from "./otlp.js";
|
|
12
|
-
import { NEXT_RELEASE } from "./release-floors.js";
|
|
13
12
|
/**
|
|
14
13
|
* The first chant with the product pipeline (#4550): the words, the
|
|
15
14
|
* `pull-request` op-wave approval source, `runCommandInProcess(argv, {
|
|
@@ -18,7 +17,7 @@ import { NEXT_RELEASE } from "./release-floors.js";
|
|
|
18
17
|
*/
|
|
19
18
|
export const CI_PRODUCT_FLOOR = "0.124.55";
|
|
20
19
|
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productActionFromEnv, PRODUCT_ACTION_ENV, PRODUCT_ACTION_EVENT_FLAG, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, } from "./ci-product-words.js";
|
|
21
|
-
export { driftNotifyFields, productNotifySource, productNotifyWords, productSendOptions } from "./notify-product.js";
|
|
20
|
+
export { driftNotifyFields, NOTIFY_MESSAGE_WORDS_FLOOR, productNotifySource, productNotifyWords, productSendOptions } from "./notify-product.js";
|
|
22
21
|
/** The first chant with `chant notify relay` and the notify relay buttons (#4611). */
|
|
23
22
|
export const NOTIFY_RELAY_FLOOR = "0.124.55";
|
|
24
23
|
/**
|
|
@@ -97,7 +96,7 @@ export { GITLAB_RESERVED_JOB_NAMES, GITLAB_TOP_KEYWORDS, isGeneratedJob, jobBloc
|
|
|
97
96
|
* group of its own keeps it, and GitHub and GitLab files are unchanged. A
|
|
98
97
|
* product feature-detects on this floor.
|
|
99
98
|
*/
|
|
100
|
-
export const FORGEJO_RUN_GROUP_FLOOR =
|
|
99
|
+
export const FORGEJO_RUN_GROUP_FLOOR = "0.124.77";
|
|
101
100
|
export { RUN_GROUP_KEYS } from "./lexicon.js";
|
|
102
101
|
/**
|
|
103
102
|
* `chant build --pr-loop` takes the control repo (#4772): `--control <repo>`
|
|
@@ -107,7 +106,7 @@ export { RUN_GROUP_KEYS } from "./lexicon.js";
|
|
|
107
106
|
* the step `productPipelineJobs(...).post.control` returns. A product that
|
|
108
107
|
* writes its pipeline with the build feature-detects on this floor.
|
|
109
108
|
*/
|
|
110
|
-
export const PR_LOOP_CONTROL_FLOOR =
|
|
109
|
+
export const PR_LOOP_CONTROL_FLOOR = "0.124.77";
|
|
111
110
|
export { CI_RESPOND_DEFAULTS, CI_RESPOND_ENV, CI_RESPONSES, parseRespondList, renderRefusedDiff, renderTriage, respondList, resolveResponses, } from "./ci-respond.js";
|
|
112
111
|
export { respondDescription, respondOpWave, respondPrApply, triageOfOpWave, triageOfPrReport, refusedOfOpWave, refusedOfPrReport } from "./ci-respond-run.js";
|
|
113
112
|
/**
|
|
@@ -170,6 +169,10 @@ export const PRODUCT_MCP_HOOK_FLOOR = OTLP_EXPORTER_FLOOR;
|
|
|
170
169
|
* true` for these, and its hook gains `propose?: boolean`. Feature-detect on
|
|
171
170
|
* `PRODUCT_MCP_PROPOSE_FLOOR`: on an older chant the read-only server drops a
|
|
172
171
|
* `forgeWrite` tool, and `--propose` is not a flag it parses.
|
|
172
|
+
*
|
|
173
|
+
* `tools/list` gives each tool's MCP annotations from `MCP_TOOL_ANNOTATIONS_FLOOR`
|
|
174
|
+
* on (chant#4823): `readOnly: true` and `forgeWrite: true` set `readOnlyHint`
|
|
175
|
+
* and `destructiveHint`, and a contribution's `annotations` add the rest.
|
|
173
176
|
*/
|
|
174
|
-
export { PRODUCT_MCP_PROPOSE_FLOOR, PRODUCT_TOOL_PROPOSE_WORDS } from "./cli/mcp/product-tools.js";
|
|
177
|
+
export { MCP_TOOL_ANNOTATIONS_FLOOR, PRODUCT_MCP_PROPOSE_FLOOR, PRODUCT_TOOL_PROPOSE_WORDS } from "./cli/mcp/product-tools.js";
|
|
175
178
|
export { activeOtlp, configureOtlp, OTLP_EXPORTER_FLOOR, RunEventTrace, } from "./otlp.js";
|
|
@@ -65,6 +65,14 @@ export declare function copyImageArchives(images: ReadonlyArray<{
|
|
|
65
65
|
* publish job runs it before the build that packs the package.
|
|
66
66
|
*/
|
|
67
67
|
export declare function runReleaseImages(ctx: CommandContext): Promise<number>;
|
|
68
|
+
/**
|
|
69
|
+
* `release stamp <label> [--json]` (#4840): write the label into the files
|
|
70
|
+
* `release.version` names, as the cut does before its build, and leave them
|
|
71
|
+
* so. The publish job runs it before its build; `chant release publish`
|
|
72
|
+
* takes those files, stamped with the release's label, as the commit's.
|
|
73
|
+
* `git checkout -- <files>` puts them back.
|
|
74
|
+
*/
|
|
75
|
+
export declare function runReleaseStamp(ctx: CommandContext): Promise<number>;
|
|
68
76
|
/**
|
|
69
77
|
* `release cut [<label>]` (#4026, #4027). A dry run unless `--yes`: it
|
|
70
78
|
* refuses a dirty tree, a commit that is not on trunk and pushed, and one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyBlD,0HAA0H;AAC1H,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uFAAuF;IACvF,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,EAAE,CASX;AAED,wGAAwG;AACxG,wBAAgB,WAAW,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAG3D;
|
|
1
|
+
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/release.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAQH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAyBlD,0HAA0H;AAC1H,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,Q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GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4B5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5E;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsD5E"}
|
|
@@ -97,11 +97,15 @@ async function laneOf(ctx, cwd) {
|
|
|
97
97
|
return undefined;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
/** The member's `release.images` (#4657), or none when the config declares none. */
|
|
100
|
+
/** The member's `release.images` (#4657), or none when the config declares none. A Dockerfile entry (#4819) keeps its form, so its prepare command runs. */
|
|
101
101
|
async function releaseImagesOf(cwd) {
|
|
102
102
|
const { loadChantConfig } = await import("../../config.js");
|
|
103
103
|
return (await loadChantConfig(cwd)).config.release?.images ?? [];
|
|
104
104
|
}
|
|
105
|
+
async function releaseVersionOf(cwd) {
|
|
106
|
+
const { loadChantConfig } = await import("../../config.js");
|
|
107
|
+
return (await loadChantConfig(cwd)).config.release?.version;
|
|
108
|
+
}
|
|
105
109
|
/** Copy each `release.images` archive from the directory the cut built it in to the same path under `to`. */
|
|
106
110
|
export function copyImageArchives(images, from, to) {
|
|
107
111
|
for (const i of images) {
|
|
@@ -139,7 +143,7 @@ export async function runReleaseImages(ctx) {
|
|
|
139
143
|
return fail("release-not-named", "release images needs a release, by label or digest", USAGE);
|
|
140
144
|
const cwd = resolve(".");
|
|
141
145
|
const { resolveRelease } = await import("../../lifecycle/release-store.js");
|
|
142
|
-
const { buildReleaseImages, releaseImageDigests, writeReleaseDigests, ReleaseImageError, RELEASE_DIGESTS_ENV } = await import("../../lifecycle/release-images.js");
|
|
146
|
+
const { buildReleaseImages, releaseImageDigests, resolveReleaseImages, writeReleaseDigests, ReleaseImageError, RELEASE_DIGESTS_ENV } = await import("../../lifecycle/release-images.js");
|
|
143
147
|
const { ociArchiveDigest } = await import("../../lifecycle/publish-oci.js");
|
|
144
148
|
const { getHeadCommit } = await import("../../lifecycle/git.js");
|
|
145
149
|
const found = await resolveRelease(ref, { cwd });
|
|
@@ -158,13 +162,13 @@ export async function runReleaseImages(ctx) {
|
|
|
158
162
|
try {
|
|
159
163
|
// --no-build: the archives the cut built were handed to this job, so they are read as they are.
|
|
160
164
|
built = args.noBuild
|
|
161
|
-
? declared.map((d) => {
|
|
165
|
+
? resolveReleaseImages(declared).map((d) => {
|
|
162
166
|
const abs = resolve(cwd, d.archive);
|
|
163
167
|
if (!existsSync(abs))
|
|
164
168
|
throw new ReleaseImageError("release-image-no-archive", `image "${d.name}" has no archive at ${d.archive}`, "Hand this job the archives the cut built, or run without --no-build to build them again.");
|
|
165
169
|
return { component: d.name, kind: "image", path: d.archive, digest: ociArchiveDigest(abs) };
|
|
166
170
|
})
|
|
167
|
-
: buildReleaseImages({ images: declared, cwd, sourceDateEpoch: commitTime(cwd, release.commit), label, archiveDigest: ociArchiveDigest });
|
|
171
|
+
: buildReleaseImages({ images: declared, cwd, sourceDateEpoch: commitTime(cwd, release.commit), label, archiveDigest: ociArchiveDigest, ...((await releaseVersionOf(cwd)) ? { versionArg: true } : {}) });
|
|
168
172
|
}
|
|
169
173
|
catch (err) {
|
|
170
174
|
if (err instanceof ReleaseImageError)
|
|
@@ -187,6 +191,45 @@ export async function runReleaseImages(ctx) {
|
|
|
187
191
|
}
|
|
188
192
|
return 0;
|
|
189
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* `release stamp <label> [--json]` (#4840): write the label into the files
|
|
196
|
+
* `release.version` names, as the cut does before its build, and leave them
|
|
197
|
+
* so. The publish job runs it before its build; `chant release publish`
|
|
198
|
+
* takes those files, stamped with the release's label, as the commit's.
|
|
199
|
+
* `git checkout -- <files>` puts them back.
|
|
200
|
+
*/
|
|
201
|
+
export async function runReleaseStamp(ctx) {
|
|
202
|
+
const { args } = ctx;
|
|
203
|
+
const label = args.extraPositional ?? null;
|
|
204
|
+
const fail = (code, message, fix) => {
|
|
205
|
+
if (args.json)
|
|
206
|
+
console.log(JSON.stringify({ label, error: { code, message, ...(fix ? { fix } : {}) } }, null, 2));
|
|
207
|
+
else
|
|
208
|
+
console.error(formatError({ message: `${message} [${code}]`, ...(fix ? { hint: fix } : {}) }));
|
|
209
|
+
return 1;
|
|
210
|
+
};
|
|
211
|
+
if (label === null)
|
|
212
|
+
return fail("release-version-no-label", "release stamp needs the release's label", "chant release stamp <label> [--json]");
|
|
213
|
+
const cwd = resolve(".");
|
|
214
|
+
const config = await releaseVersionOf(cwd);
|
|
215
|
+
if (!config)
|
|
216
|
+
return fail("release-version-not-declared", "this member's chant.config.ts has no release.version, so there is nothing to stamp", "Name the package directories: release: { version: { packages: [\"packages/cli\"] } }");
|
|
217
|
+
const { stampReleaseVersion, ReleaseVersionError } = await import("../../lifecycle/release-version.js");
|
|
218
|
+
let files;
|
|
219
|
+
try {
|
|
220
|
+
files = stampReleaseVersion({ cwd, config, label }).files;
|
|
221
|
+
}
|
|
222
|
+
catch (err) {
|
|
223
|
+
if (err instanceof ReleaseVersionError)
|
|
224
|
+
return fail(err.code, err.message, err.fix);
|
|
225
|
+
throw err;
|
|
226
|
+
}
|
|
227
|
+
if (args.json)
|
|
228
|
+
console.log(JSON.stringify({ label, files }, null, 2));
|
|
229
|
+
else
|
|
230
|
+
console.error(formatSuccess(`Stamped ${label} into ${files.join(", ")}`));
|
|
231
|
+
return 0;
|
|
232
|
+
}
|
|
190
233
|
function describeActorSource(source) {
|
|
191
234
|
switch (source) {
|
|
192
235
|
case "flag":
|
|
@@ -245,6 +288,7 @@ export async function runReleaseCut(ctx) {
|
|
|
245
288
|
};
|
|
246
289
|
const at = await import("../../lifecycle/release-at.js");
|
|
247
290
|
let checkout = null;
|
|
291
|
+
let stamped = null;
|
|
248
292
|
try {
|
|
249
293
|
// The workstation checks come first, in the order #4027 lists them; the
|
|
250
294
|
// green check and the rest are the cut's own.
|
|
@@ -346,6 +390,7 @@ export async function runReleaseCut(ctx) {
|
|
|
346
390
|
if (args.at !== undefined && top && commit)
|
|
347
391
|
checkout = at.checkoutCommit(top, cwd, commit);
|
|
348
392
|
const cutCwd = checkout?.memberDir ?? cwd;
|
|
393
|
+
const versionConfig = await releaseVersionOf(cutCwd);
|
|
349
394
|
// #4657: the images release.images declares are built first, and their digests handed to the build command.
|
|
350
395
|
const declaredImages = await releaseImagesOf(cutCwd);
|
|
351
396
|
const digestsFile = declaredImages.length > 0 ? join(tmpdir(), `chant-release-digests-${process.pid}.json`) : undefined;
|
|
@@ -355,7 +400,7 @@ export async function runReleaseCut(ctx) {
|
|
|
355
400
|
const { buildReleaseImages, writeReleaseDigests, ReleaseImageError } = await import("../../lifecycle/release-images.js");
|
|
356
401
|
const { ociArchiveDigest } = await import("../../lifecycle/publish-oci.js");
|
|
357
402
|
try {
|
|
358
|
-
const built = buildReleaseImages({ images: declaredImages, cwd: cutCwd, sourceDateEpoch: commitTime(cutCwd, at), label, archiveDigest: ociArchiveDigest });
|
|
403
|
+
const built = buildReleaseImages({ images: declaredImages, cwd: cutCwd, sourceDateEpoch: commitTime(cutCwd, at), label, archiveDigest: ociArchiveDigest, ...(versionConfig ? { versionArg: true } : {}) });
|
|
359
404
|
writeReleaseDigests(digestsFile, Object.fromEntries(built.map((a) => [a.component, a.digest])));
|
|
360
405
|
return built;
|
|
361
406
|
}
|
|
@@ -366,6 +411,21 @@ export async function runReleaseCut(ctx) {
|
|
|
366
411
|
}
|
|
367
412
|
}
|
|
368
413
|
: undefined;
|
|
414
|
+
// #4840: release.version stamps the label into package.json once the cut has found the tree clean.
|
|
415
|
+
const stamp = versionConfig
|
|
416
|
+
? async () => {
|
|
417
|
+
const { stampReleaseVersion, ReleaseVersionError } = await import("../../lifecycle/release-version.js");
|
|
418
|
+
try {
|
|
419
|
+
if (!stamped)
|
|
420
|
+
stamped = stampReleaseVersion({ cwd: cutCwd, config: versionConfig, label });
|
|
421
|
+
}
|
|
422
|
+
catch (err) {
|
|
423
|
+
if (err instanceof ReleaseVersionError)
|
|
424
|
+
throw new ReleaseCutError(err.code, `no release was cut: ${err.message}`, err.fix);
|
|
425
|
+
throw err;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
: undefined;
|
|
369
429
|
// #4692: the lane is the commit's own config's under --at.
|
|
370
430
|
const lane = await laneOf(ctx, cutCwd);
|
|
371
431
|
const request = {
|
|
@@ -380,6 +440,7 @@ export async function runReleaseCut(ctx) {
|
|
|
380
440
|
...(args.overrideGreen ? { overrideGreen: true } : {}),
|
|
381
441
|
...(Object.keys(images).length > 0 ? { images } : {}),
|
|
382
442
|
...(buildImages ? { buildImages } : {}),
|
|
443
|
+
...(stamp ? { stamp } : {}),
|
|
383
444
|
};
|
|
384
445
|
if (dryRun) {
|
|
385
446
|
const plan = await planRelease(request);
|
|
@@ -471,7 +532,7 @@ export async function runReleaseCut(ctx) {
|
|
|
471
532
|
// release records are put where release.images names them here, so the job's next step (the hand-off to the
|
|
472
533
|
// publish job) finds them.
|
|
473
534
|
if (checkout && declaredImages.length > 0)
|
|
474
|
-
copyImageArchives(declaredImages, cutCwd, cwd);
|
|
535
|
+
copyImageArchives((await import("../../lifecycle/release-images.js")).resolveReleaseImages(declaredImages), cutCwd, cwd);
|
|
475
536
|
const push = await pushLifecycleReport({ cwd }).catch(() => ({ pushed: false, pushWarning: undefined }));
|
|
476
537
|
// The tag names the release's label, which a re-cut with no label reads from the earlier cut.
|
|
477
538
|
let tagged = null;
|
|
@@ -550,6 +611,7 @@ export async function runReleaseCut(ctx) {
|
|
|
550
611
|
throw err;
|
|
551
612
|
}
|
|
552
613
|
finally {
|
|
614
|
+
stamped?.restore();
|
|
553
615
|
checkout?.remove();
|
|
554
616
|
}
|
|
555
617
|
}
|
|
@@ -115,6 +115,7 @@ async function runOpWaveJobCommand(ctx) {
|
|
|
115
115
|
...(product?.afterPlan ? { afterPlan: product.afterPlan } : {}),
|
|
116
116
|
...(product?.capabilities ? { capabilities: product.capabilities } : {}),
|
|
117
117
|
...(product?.hookExec ? { hookExec: product.hookExec } : {}),
|
|
118
|
+
...(product?.runHooks ? { runHooks: product.runHooks } : {}),
|
|
118
119
|
spec,
|
|
119
120
|
specFile: relative(process.cwd(), path),
|
|
120
121
|
wave: args.wave,
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAEA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAItG,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAwtDzC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,mBAAmB,GAAG,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,qBAAqB,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,2BAA2B,EAAE,eAAe,CAAA;CAAO,GAC7K,OAAO,CAAC,MAAM,CAAC,CAuCjB;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EA0QvC,CAAC"}
|
package/dist/cli/main.js
CHANGED
|
@@ -518,6 +518,11 @@ Releases:
|
|
|
518
518
|
the release's commit, refuse one whose digest is not
|
|
519
519
|
the recorded one, and write the recorded digests to
|
|
520
520
|
the file CHANT_RELEASE_DIGESTS names for the build.
|
|
521
|
+
release stamp <label> [--json]
|
|
522
|
+
Write the label as the version of each package.json
|
|
523
|
+
release.version names, and the lockfile's entries for
|
|
524
|
+
them, as the cut does before its build. The publish
|
|
525
|
+
job runs it before its build.
|
|
521
526
|
release workflow [--forge github|gitlab|forgejo] [--install <command>]
|
|
522
527
|
[--build <command>] [--chant <command>] [--output <file>]
|
|
523
528
|
Write the publish workflow, run on a release/** tag.
|
|
@@ -1891,6 +1896,8 @@ export const commandRegistry = [
|
|
|
1891
1896
|
{ name: "release verify", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseVerify(ctx) },
|
|
1892
1897
|
// #4657: build a release's images again in its publish job, checked against the digests it records.
|
|
1893
1898
|
{ name: "release images", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseImages(ctx) },
|
|
1899
|
+
// #4840: the label into the package.json files release.version names, in the publish job before its build.
|
|
1900
|
+
{ name: "release stamp", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseStamp(ctx) },
|
|
1894
1901
|
{ name: "release workflow", runsNoConfig: true, handler: async (ctx) => (await import("../workspace/release-workflow.js")).runReleaseWorkflow(ctx) },
|
|
1895
1902
|
// #4168 4.3: mode (b), chosen changes composed onto a base on chant/compose/<name>.
|
|
1896
1903
|
{ name: "release compose", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/release.js")).runReleaseCompose(ctx) },
|
|
@@ -73,6 +73,12 @@ export interface ProductMcpHook {
|
|
|
73
73
|
* when its chant is older.
|
|
74
74
|
*/
|
|
75
75
|
export declare const PRODUCT_MCP_PROPOSE_FLOOR = "0.124.58";
|
|
76
|
+
/**
|
|
77
|
+
* The first chant whose `tools/list` gives MCP tool annotations: a tool's
|
|
78
|
+
* `annotations`, and `readOnlyHint`/`destructiveHint` from `readOnly: true`
|
|
79
|
+
* or `forgeWrite: true` (chant#4823).
|
|
80
|
+
*/
|
|
81
|
+
export declare const MCP_TOOL_ANNOTATIONS_FLOOR = "0.124.79";
|
|
76
82
|
/** The words a `forgeWrite` tool's name may hold on the `--propose` tier, which the write-word check passes over (chant#4655). */
|
|
77
83
|
export declare const PRODUCT_TOOL_PROPOSE_WORDS: readonly ["request", "propose"];
|
|
78
84
|
/** Words that say a tool would change something; a read-only server will not serve a tool named with one. terragucci's list. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/product-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"product-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/product-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAA8B,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/E,yCAAyC;AACzC,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,2GAA2G;IAC3G,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;CAC9C;AAED,+CAA+C;AAC/C,MAAM,WAAW,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H,qBAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,WAAW,GAAG,SAAS,GAAG,aAA2B,EASnH;CACF;AAID;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,iBAAiB,GAAG,mBAAmB,EAAE,CAmBtG;AAED,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,UAAQ,GAAG,iBAAiB,CAS1H;AAID,mEAAmE;AACnE,wBAAgB,oBAAoB,IAAI,cAAc,GAAG,SAAS,CAEjE;AAED,kFAAkF;AAClF,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAS9G"}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
* `request` and `propose` only: `approve_request` still refuses the start.
|
|
32
32
|
* A product feature-detects the tier on {@link PRODUCT_MCP_PROPOSE_FLOOR}.
|
|
33
33
|
*/
|
|
34
|
+
import { NEXT_RELEASE } from "../../release-floors.js";
|
|
34
35
|
import { reportReader, reportUrlFor } from "./report-tools.js";
|
|
35
36
|
/**
|
|
36
37
|
* The first chant whose `chant serve mcp` has the `--propose` tier and serves
|
|
@@ -39,6 +40,12 @@ import { reportReader, reportUrlFor } from "./report-tools.js";
|
|
|
39
40
|
* when its chant is older.
|
|
40
41
|
*/
|
|
41
42
|
export const PRODUCT_MCP_PROPOSE_FLOOR = "0.124.58";
|
|
43
|
+
/**
|
|
44
|
+
* The first chant whose `tools/list` gives MCP tool annotations: a tool's
|
|
45
|
+
* `annotations`, and `readOnlyHint`/`destructiveHint` from `readOnly: true`
|
|
46
|
+
* or `forgeWrite: true` (chant#4823).
|
|
47
|
+
*/
|
|
48
|
+
export const MCP_TOOL_ANNOTATIONS_FLOOR = NEXT_RELEASE;
|
|
42
49
|
/** The words a `forgeWrite` tool's name may hold on the `--propose` tier, which the write-word check passes over (chant#4655). */
|
|
43
50
|
export const PRODUCT_TOOL_PROPOSE_WORDS = ["request", "propose"];
|
|
44
51
|
/** Words that say a tool would change something; a read-only server will not serve a tool named with one. terragucci's list. */
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
* declare `readOnly: true`. The `--propose` tier (chant#4655) keeps these
|
|
14
14
|
* lists and adds only a product's `forgeWrite` tools (./product-tools.ts).
|
|
15
15
|
*/
|
|
16
|
+
import type { McpToolContribution, ToolAnnotations } from "../../mcp/types.js";
|
|
17
|
+
/** The annotations of a tool that changes nothing (chant#4823). */
|
|
18
|
+
export declare const READ_ONLY_ANNOTATIONS: Readonly<ToolAnnotations>;
|
|
19
|
+
/** The annotations of a product's `forgeWrite` tool, which adds a pull request or a comment and deletes nothing (chant#4823). */
|
|
20
|
+
export declare const FORGE_WRITE_ANNOTATIONS: Readonly<ToolAnnotations>;
|
|
21
|
+
/**
|
|
22
|
+
* A contributed tool's annotations in `tools/list` (chant#4823): its own,
|
|
23
|
+
* with `readOnlyHint` and `destructiveHint` set from `readOnly: true` or
|
|
24
|
+
* `forgeWrite: true`, so a hint never says more than the rule the server
|
|
25
|
+
* serves the tool by. Undefined when the tool gives and declares nothing.
|
|
26
|
+
*/
|
|
27
|
+
export declare function contributedToolAnnotations(tool: Pick<McpToolContribution, "readOnly" | "forgeWrite" | "annotations">): ToolAnnotations | undefined;
|
|
16
28
|
/**
|
|
17
29
|
* Core tools that change nothing, served in both modes.
|
|
18
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-only.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/read-only.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"read-only.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/read-only.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE5E,mEAAmE;AACnE,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,eAAe,CAAiE,CAAC;AAE9H,iIAAiI;AACjI,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,eAAe,CAAkE,CAAC;AAEjI;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,YAAY,GAAG,aAAa,CAAC,GAAG,eAAe,GAAG,SAAS,CAIlJ;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAcnD,CAAC;AAEH,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,MAAM,CAOlD,CAAC;AAEH,0JAA0J;AAC1J,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAE9F;AAED,kGAAkG;AAClG,qBAAa,yBAA0B,SAAQ,KAAK;IAClD,YAAY,IAAI,EAAE,MAAM,EAMvB;CACF"}
|
|
@@ -16,6 +16,22 @@
|
|
|
16
16
|
import { workspaceReadTools, workspaceWriteTools } from "./workspace-tools.js";
|
|
17
17
|
import { ledgerReadTools } from "./ledger-tools.js";
|
|
18
18
|
import { reportReadTools } from "./report-tools.js";
|
|
19
|
+
/** The annotations of a tool that changes nothing (chant#4823). */
|
|
20
|
+
export const READ_ONLY_ANNOTATIONS = Object.freeze({ readOnlyHint: true, destructiveHint: false });
|
|
21
|
+
/** The annotations of a product's `forgeWrite` tool, which adds a pull request or a comment and deletes nothing (chant#4823). */
|
|
22
|
+
export const FORGE_WRITE_ANNOTATIONS = Object.freeze({ readOnlyHint: false, destructiveHint: false });
|
|
23
|
+
/**
|
|
24
|
+
* A contributed tool's annotations in `tools/list` (chant#4823): its own,
|
|
25
|
+
* with `readOnlyHint` and `destructiveHint` set from `readOnly: true` or
|
|
26
|
+
* `forgeWrite: true`, so a hint never says more than the rule the server
|
|
27
|
+
* serves the tool by. Undefined when the tool gives and declares nothing.
|
|
28
|
+
*/
|
|
29
|
+
export function contributedToolAnnotations(tool) {
|
|
30
|
+
const declared = tool.readOnly === true ? READ_ONLY_ANNOTATIONS : tool.forgeWrite === true ? FORGE_WRITE_ANNOTATIONS : undefined;
|
|
31
|
+
if (!declared && !tool.annotations)
|
|
32
|
+
return undefined;
|
|
33
|
+
return { ...tool.annotations, ...declared };
|
|
34
|
+
}
|
|
19
35
|
/**
|
|
20
36
|
* Core tools that change nothing, served in both modes.
|
|
21
37
|
*
|
package/dist/cli/mcp/server.d.ts
CHANGED
|
@@ -125,6 +125,9 @@ export declare class McpServer {
|
|
|
125
125
|
* Register a core tool. On a read-only server a mutating core tool is
|
|
126
126
|
* left out, and a core tool on neither list of ./read-only.ts is refused
|
|
127
127
|
* with an error, so a new tool cannot reach a read-only server unsorted.
|
|
128
|
+
*
|
|
129
|
+
* A tool on the read-only list is listed with {@link READ_ONLY_ANNOTATIONS}
|
|
130
|
+
* (chant#4823), except the ordinary server's `lint`, whose `fix` writes.
|
|
128
131
|
*/
|
|
129
132
|
private registerCoreTool;
|
|
130
133
|
/**
|
|
@@ -160,6 +163,14 @@ export declare class McpServer {
|
|
|
160
163
|
*/
|
|
161
164
|
start(): Promise<void>;
|
|
162
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* A tool result's `structuredContent`, which MCP types as a JSON object
|
|
168
|
+
* (`{ [key: string]: unknown }`): a plain object as it is, an array as
|
|
169
|
+
* `{ items: [...] }` (#4822), and nothing for a string or other scalar. The
|
|
170
|
+
* text block still carries the result as the handler returned it, so a
|
|
171
|
+
* client that reads text sees the array.
|
|
172
|
+
*/
|
|
173
|
+
export declare function structuredContentOf(result: unknown): Record<string, unknown> | undefined;
|
|
163
174
|
/**
|
|
164
175
|
* Start MCP server, loading plugins from the project
|
|
165
176
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/server.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAmE,MAAM,SAAS,CAAC;AAEvI,OAAO,EAAwB,KAAK,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAOrF,OAAO,EAA+D,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAInH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,YAAI,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAU,CAAC;AAG3H;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK9E;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,aAAa,CAAA;CAAE,CASnH;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAO1E;AAED,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,2KACuI,CAAC;AAE3K,sHAAsH;AACtH,eAAO,MAAM,oBAAoB,oUAC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