@intentius/chant 0.124.63 → 0.124.64

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.
Files changed (123) hide show
  1. package/dist/cli/handlers/approve.d.ts +8 -0
  2. package/dist/cli/handlers/approve.d.ts.map +1 -1
  3. package/dist/cli/handlers/approve.js +27 -4
  4. package/dist/cli/handlers/pr.d.ts.map +1 -1
  5. package/dist/cli/handlers/pr.js +2 -1
  6. package/dist/cli/handlers/release.d.ts +6 -4
  7. package/dist/cli/handlers/release.d.ts.map +1 -1
  8. package/dist/cli/handlers/release.js +83 -16
  9. package/dist/cli/main.d.ts.map +1 -1
  10. package/dist/cli/main.js +18 -6
  11. package/dist/cli/parse-args.d.ts.map +1 -1
  12. package/dist/cli/parse-args.js +12 -0
  13. package/dist/cli/registry.d.ts +5 -1
  14. package/dist/cli/registry.d.ts.map +1 -1
  15. package/dist/config.d.ts +18 -0
  16. package/dist/config.d.ts.map +1 -1
  17. package/dist/config.js +1 -0
  18. package/dist/gate-statement.schema.json +4 -2
  19. package/dist/lifecycle/gate-ledger.d.ts +11 -2
  20. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  21. package/dist/lifecycle/gate-ledger.js +6 -0
  22. package/dist/lifecycle/gate-seal.d.ts +20 -4
  23. package/dist/lifecycle/gate-seal.d.ts.map +1 -1
  24. package/dist/lifecycle/gate-seal.js +18 -5
  25. package/dist/lifecycle/gate-statement.d.ts +27 -2
  26. package/dist/lifecycle/gate-statement.d.ts.map +1 -1
  27. package/dist/lifecycle/gate-statement.js +37 -1
  28. package/dist/lifecycle/plan-stale.d.ts.map +1 -1
  29. package/dist/lifecycle/plan-stale.js +1 -2
  30. package/dist/lifecycle/publish-declaration.d.ts +20 -0
  31. package/dist/lifecycle/publish-declaration.d.ts.map +1 -1
  32. package/dist/lifecycle/publish-declaration.js +24 -1
  33. package/dist/lifecycle/publish-forge.d.ts.map +1 -1
  34. package/dist/lifecycle/publish-forge.js +1 -2
  35. package/dist/lifecycle/publish-git-ssh.d.ts +82 -0
  36. package/dist/lifecycle/publish-git-ssh.d.ts.map +1 -0
  37. package/dist/lifecycle/publish-git-ssh.js +180 -0
  38. package/dist/lifecycle/publish-homebrew.d.ts +11 -0
  39. package/dist/lifecycle/publish-homebrew.d.ts.map +1 -1
  40. package/dist/lifecycle/publish-homebrew.js +96 -4
  41. package/dist/lifecycle/publish-marketplace.d.ts +36 -2
  42. package/dist/lifecycle/publish-marketplace.d.ts.map +1 -1
  43. package/dist/lifecycle/publish-marketplace.js +173 -29
  44. package/dist/lifecycle/publish-tauri.d.ts.map +1 -1
  45. package/dist/lifecycle/publish-tauri.js +1 -2
  46. package/dist/lifecycle/release-cut.d.ts +51 -5
  47. package/dist/lifecycle/release-cut.d.ts.map +1 -1
  48. package/dist/lifecycle/release-cut.js +165 -16
  49. package/dist/lifecycle/release-publish.d.ts +13 -0
  50. package/dist/lifecycle/release-publish.d.ts.map +1 -1
  51. package/dist/lifecycle/release-publish.js +5 -0
  52. package/dist/lifecycle/release-revocation.d.ts +4 -3
  53. package/dist/lifecycle/release-revocation.d.ts.map +1 -1
  54. package/dist/lifecycle/release-revocation.js +5 -4
  55. package/dist/lifecycle/release-store.d.ts +32 -0
  56. package/dist/lifecycle/release-store.d.ts.map +1 -1
  57. package/dist/lifecycle/release-store.js +11 -0
  58. package/dist/op/activities/activity-contracts.d.ts +4 -4
  59. package/dist/op/gate.d.ts +1 -1
  60. package/dist/op/gate.d.ts.map +1 -1
  61. package/dist/op/gate.js +2 -1
  62. package/dist/pr-forge.d.ts.map +1 -1
  63. package/dist/pr-forge.js +26 -6
  64. package/dist/release-floors.d.ts +1 -1
  65. package/dist/release-floors.js +1 -1
  66. package/dist/wave-runtime.mjs +284 -283
  67. package/dist/workspace/ci-green.d.ts.map +1 -1
  68. package/dist/workspace/ci-green.js +1 -2
  69. package/dist/workspace/ci-quarantine-report.d.ts.map +1 -1
  70. package/dist/workspace/ci-quarantine-report.js +1 -2
  71. package/dist/workspace/ci-quarantine.d.ts.map +1 -1
  72. package/dist/workspace/ci-quarantine.js +1 -2
  73. package/dist/workspace/intent.d.ts.map +1 -1
  74. package/dist/workspace/intent.js +1 -2
  75. package/dist/workspace/release-candidates.d.ts +9 -1
  76. package/dist/workspace/release-candidates.d.ts.map +1 -1
  77. package/dist/workspace/release-candidates.js +16 -4
  78. package/dist/workspace/release-candidates.schema.json +7 -0
  79. package/dist/workspace/releases.schema.json +47 -0
  80. package/package.json +1 -1
  81. package/src/cli/handlers/approve-external-signature.test.ts +105 -3
  82. package/src/cli/handlers/approve.ts +34 -4
  83. package/src/cli/handlers/pr.ts +2 -1
  84. package/src/cli/handlers/release.ts +75 -16
  85. package/src/cli/main.ts +18 -6
  86. package/src/cli/parse-args.ts +9 -0
  87. package/src/cli/registry.ts +5 -1
  88. package/src/config.ts +8 -0
  89. package/src/gate-statement.schema.json +4 -2
  90. package/src/lifecycle/gate-ledger.ts +17 -2
  91. package/src/lifecycle/gate-seal.ts +24 -6
  92. package/src/lifecycle/gate-statement.ts +40 -3
  93. package/src/lifecycle/plan-stale.test.ts +3 -4
  94. package/src/lifecycle/plan-stale.ts +1 -2
  95. package/src/lifecycle/publish-declaration.ts +24 -1
  96. package/src/lifecycle/publish-forge.ts +1 -2
  97. package/src/lifecycle/publish-git-ssh.ts +202 -0
  98. package/src/lifecycle/publish-homebrew.test.ts +181 -2
  99. package/src/lifecycle/publish-homebrew.ts +101 -5
  100. package/src/lifecycle/publish-marketplace.test.ts +158 -6
  101. package/src/lifecycle/publish-marketplace.ts +192 -30
  102. package/src/lifecycle/publish-resume.test.ts +40 -0
  103. package/src/lifecycle/publish-tauri.ts +1 -2
  104. package/src/lifecycle/release-cut-lane.test.ts +177 -0
  105. package/src/lifecycle/release-cut-override.test.ts +213 -0
  106. package/src/lifecycle/release-cut.ts +198 -17
  107. package/src/lifecycle/release-publish.ts +18 -0
  108. package/src/lifecycle/release-revocation.ts +5 -4
  109. package/src/lifecycle/release-store.ts +44 -0
  110. package/src/op/gate.ts +2 -1
  111. package/src/pr-forge.ts +25 -6
  112. package/src/pr-requires.test.ts +9 -0
  113. package/src/release-floors.ts +1 -1
  114. package/src/workspace/ci-green.ts +1 -2
  115. package/src/workspace/ci-quarantine-report.test.ts +2 -3
  116. package/src/workspace/ci-quarantine-report.ts +1 -2
  117. package/src/workspace/ci-quarantine.test.ts +2 -3
  118. package/src/workspace/ci-quarantine.ts +1 -2
  119. package/src/workspace/intent.ts +1 -2
  120. package/src/workspace/release-candidates.schema.json +7 -0
  121. package/src/workspace/release-candidates.ts +19 -4
  122. package/src/workspace/releases.schema.json +47 -0
  123. package/src/workspace/trust/gate-seal.test.ts +44 -0
@@ -30,22 +30,75 @@
30
30
  *
31
31
  * The token is read from `tokenEnv`, else `VSCE_PAT` or `OVSX_PAT`, the
32
32
  * variables `vsce` and `ovsx` read, and is masked in all output.
33
+ *
34
+ * Or the target authenticates with the run's identity, with no stored
35
+ * token (#4698):
36
+ *
37
+ * - `auth: "azure-credential"` (VS Code Marketplace): `vsce` runs with
38
+ * `--azure-credential`, which gets a Microsoft Entra token from the job's
39
+ * Azure sign-in, such as the one `azure/login` makes from the run's OIDC
40
+ * token. `VSCE_PAT` is taken out of vsce's environment, since vsce prefers
41
+ * a PAT it finds there. The stage runs
42
+ * `vsce verify-pat --azure-credential <publisher>`, which signs in and asks
43
+ * the marketplace for the identity's role on the publisher, and changes
44
+ * nothing.
45
+ * - `auth: "trusted-publishing"` (Open VSX): the run's OIDC ID token, from
46
+ * GitHub Actions (a job with `id-token: write`) or from `OVSX_ID_TOKEN`, is
47
+ * exchanged at `POST {registry}/api/-/trusted-publishing/token` for a
48
+ * publishing token that lasts minutes, as `ovsx publish --trusted-publishing`
49
+ * does. The stage makes the exchange to check that Open VSX takes this
50
+ * workflow as a trusted publisher of the extension, and drops the token;
51
+ * the reveal exchanges again for the upload.
52
+ *
53
+ * With `onRefusal: "warn"`, a marketplace that refuses the reveal's upload,
54
+ * or a request around it, is a warning: the reveal returns the target with
55
+ * its items `refused` and a `warning`, and the publish goes on. Every check
56
+ * the stage makes still refuses, and so does a digest that differs after an
57
+ * upload.
33
58
  */
34
59
  import { spawn } from "node:child_process";
35
60
  import { readFileSync } from "node:fs";
36
61
  import { inflateRawSync } from "node:zlib";
37
62
  import { readCredential } from "./publish-credentials.js";
38
63
  import { bytesDigest, checkReleaseDigest, memberFile, publishTargetKey } from "./publish-targets.js";
39
- import { PublishTargetError } from "./release-publish.js";
64
+ import { PublishTargetError, } from "./release-publish.js";
40
65
  import { NEXT_RELEASE } from "../release-floors.js";
41
66
  /** The first chant that publishes a `marketplace` target (#4676). */
42
- export const PUBLISH_MARKETPLACE_FLOOR = NEXT_RELEASE;
67
+ export const PUBLISH_MARKETPLACE_FLOOR = "0.124.63";
68
+ /** The first chant that reads a marketplace target's `auth` (#4698). */
69
+ export const PUBLISH_MARKETPLACE_AUTH_FLOOR = NEXT_RELEASE;
70
+ /** The first chant that reads a marketplace target's `onRefusal` (#4698). */
71
+ export const PUBLISH_MARKETPLACE_ON_REFUSAL_FLOOR = NEXT_RELEASE;
43
72
  export const OPEN_VSX_REGISTRY = "https://open-vsx.org";
44
73
  export const VSCODE_GALLERY = "https://marketplace.visualstudio.com";
45
- /** The variables a marketplace's token is read from. */
74
+ /** The variable an OIDC ID token for Open VSX is read from outside GitHub Actions, as `ovsx` reads it. */
75
+ export const OVSX_ID_TOKEN_ENV = "OVSX_ID_TOKEN";
76
+ /** The declaration's `auth`, refused when the marketplace does not take it or when `tokenEnv` is set with another. */
77
+ export function marketplaceAuth(decl) {
78
+ const auth = decl.auth ?? "token";
79
+ const wrong = auth === "azure-credential" && decl.marketplace !== "vscode"
80
+ ? "auth: azure-credential is the VS Code Marketplace's; Open VSX takes token or trusted-publishing"
81
+ : auth === "trusted-publishing" && decl.marketplace !== "openvsx"
82
+ ? "auth: trusted-publishing is Open VSX's; the VS Code Marketplace takes token or azure-credential"
83
+ : auth !== "token" && decl.tokenEnv !== undefined
84
+ ? `tokenEnv names a token, and auth: ${auth} reads none`
85
+ : null;
86
+ if (wrong)
87
+ throw new PublishTargetError("publish-marketplace-auth-invalid", `a marketplace target for ${decl.marketplace}: ${wrong}`, "Fix the target in release.publish in chant.config.ts.");
88
+ return auth;
89
+ }
90
+ /** The variables a marketplace's credential is read from, whose values are masked. */
46
91
  export function marketplaceTokenEnv(decl) {
92
+ const auth = decl.auth ?? "token";
93
+ // vsce's Entra sign-in reads a client secret from AZURE_CLIENT_SECRET when one is set; chant reads none.
94
+ if (auth === "azure-credential")
95
+ return ["AZURE_CLIENT_SECRET"];
96
+ if (auth === "trusted-publishing")
97
+ return [OVSX_ID_TOKEN_ENV];
47
98
  return [decl.tokenEnv ?? (decl.marketplace === "vscode" ? "VSCE_PAT" : "OVSX_PAT")];
48
99
  }
100
+ /** The codes a reveal turns into a warning under `onRefusal: "warn"`: the marketplace refused or failed a request. */
101
+ const REFUSALS = new Set(["publish-marketplace-failed", "publish-marketplace-trusted-publishing"]);
49
102
  /** One file of a zip archive, or null when it holds none by that name. Reads stored and deflated entries; refuses a zip64 archive. */
50
103
  export function readZipEntry(zip, name) {
51
104
  let end = -1;
@@ -115,6 +168,7 @@ function run(bin, args, ctx, env) {
115
168
  }
116
169
  export function marketplaceTarget(decl, deps) {
117
170
  const fetchImpl = deps.fetch ?? ((url, init) => fetch(url, init));
171
+ const auth = marketplaceAuth(decl);
118
172
  const tokenNames = marketplaceTokenEnv(decl);
119
173
  const label = decl.marketplace === "vscode" ? "VS Code Marketplace" : "Open VSX";
120
174
  const registry = (decl.registry ?? (decl.marketplace === "vscode" ? VSCODE_GALLERY : OPEN_VSX_REGISTRY)).replace(/\/+$/, "");
@@ -124,9 +178,15 @@ export function marketplaceTarget(decl, deps) {
124
178
  const digest = bytesDigest(new Uint8Array(bytes));
125
179
  checkReleaseDigest(ctx.release, "asset", ctx.cwd, decl.vsix, [digest]);
126
180
  const id = vsixIdentity(bytes, decl.vsix);
127
- const token = readCredential(ctx.env, tokenNames, ctx.redactor);
128
- if (!token) {
129
- throw new PublishTargetError("publish-credentials-missing", `the ${label} target reads its token from ${tokenNames[0]}, and it is not set`, `Set ${tokenNames[0]} in the job's or the shell's environment.`);
181
+ let token = null;
182
+ if (auth === "token") {
183
+ token = readCredential(ctx.env, tokenNames, ctx.redactor);
184
+ if (!token) {
185
+ throw new PublishTargetError("publish-credentials-missing", `the ${label} target reads its token from ${tokenNames[0]}, and it is not set`, `Set ${tokenNames[0]} in the job's or the shell's environment.`);
186
+ }
187
+ }
188
+ if (auth === "trusted-publishing" && !ctx.env[OVSX_ID_TOKEN_ENV] && !(ctx.env.ACTIONS_ID_TOKEN_REQUEST_URL && ctx.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN)) {
189
+ throw new PublishTargetError("publish-credentials-missing", `the Open VSX target publishes with trusted publishing, and this run has no OIDC ID token: not a GitHub Actions job with id-token: write, and ${OVSX_ID_TOKEN_ENV} is not set`, `In GitHub Actions, give the job permissions: id-token: write. Elsewhere, put an ID token whose audience is ${registry} in ${OVSX_ID_TOKEN_ENV}.`);
130
190
  }
131
191
  const destination = decl.marketplace === "vscode" ? `${registry}/items?itemName=${id.publisher}.${id.name}` : `${registry}/extension/${id.publisher}/${id.name}/${id.version}`;
132
192
  const item = { name: `${id.publisher}.${id.name}@${id.version}`, destination, digest };
@@ -156,6 +216,60 @@ export function marketplaceTarget(decl, deps) {
156
216
  throw new PublishTargetError("publish-marketplace-failed", "the fetch this publish runs with can't read a response's bytes, so the download's digest can't be checked");
157
217
  return bytesDigest(new Uint8Array(await res.arrayBuffer()));
158
218
  };
219
+ /** The run's OIDC ID token for Open VSX: `OVSX_ID_TOKEN`, else one GitHub Actions issues with the registry as its audience. */
220
+ const idToken = async (ctx) => {
221
+ const direct = readCredential(ctx.env, [OVSX_ID_TOKEN_ENV], ctx.redactor);
222
+ if (direct)
223
+ return direct.value;
224
+ const url = new URL(ctx.env.ACTIONS_ID_TOKEN_REQUEST_URL ?? "");
225
+ url.searchParams.set("audience", registry);
226
+ const res = await fetchImpl(url.toString(), { method: "GET", headers: { authorization: `Bearer ${ctx.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN ?? ""}`, accept: "application/json" } });
227
+ const text = await res.text().catch(() => "");
228
+ const value = res.status === 200 ? JSON.parse(text).value : undefined;
229
+ if (typeof value !== "string" || !value) {
230
+ throw new PublishTargetError("publish-marketplace-trusted-publishing", ctx.redactor.redact(`GitHub Actions gave no OIDC ID token for ${registry}: it answered ${res.status}`), "Give the job permissions: id-token: write.");
231
+ }
232
+ ctx.redactor.add(value);
233
+ return value;
234
+ };
235
+ /** Open VSX trusted publishing: a publishing token for the extension, exchanged for the run's ID token. It lasts minutes. */
236
+ const trustedToken = async (ctx, id) => {
237
+ const token = await idToken(ctx);
238
+ const res = await get(`${registry}/api/-/trusted-publishing/token`, {
239
+ method: "POST",
240
+ headers: { "content-type": "application/json" },
241
+ body: JSON.stringify({ namespace: id.publisher, extension: id.name, token }),
242
+ });
243
+ let body = {};
244
+ try {
245
+ body = JSON.parse(res.text);
246
+ }
247
+ catch {
248
+ // An answer that is not JSON is reported by its status.
249
+ }
250
+ if (res.status < 200 || res.status > 299 || typeof body.value !== "string" || !body.value) {
251
+ const why = typeof body.error === "string" ? body.error : `it answered ${res.status}${res.text ? `: ${res.text.slice(0, 300)}` : ""}`;
252
+ throw new PublishTargetError("publish-marketplace-trusted-publishing", ctx.redactor.redact(`Open VSX at ${registry} gave no trusted-publishing token for ${id.publisher}.${id.name}: ${why}`), `Register this workflow as a trusted publisher of ${id.publisher}.${id.name} at ${registry}/user-settings/trusted-publishers.`);
253
+ }
254
+ ctx.redactor.add(body.value);
255
+ return body.value;
256
+ };
257
+ /** Runs vsce with the target's credential: `VSCE_PAT` for a token, `--azure-credential` and no `VSCE_PAT` for an Entra identity. */
258
+ const vsce = async (ctx, args, token) => {
259
+ const env = { ...ctx.env };
260
+ if (token)
261
+ env.VSCE_PAT = token.value;
262
+ else
263
+ delete env.VSCE_PAT;
264
+ return run(deps.vsce ?? "vsce", token ? args : [...args, "--azure-credential"], ctx, env).catch((err) => {
265
+ throw new PublishTargetError("publish-marketplace-vsce-missing", `vsce could not be run: ${err instanceof Error ? err.message : String(err)}`, "Install it on the job's PATH: npm install -g @vscode/vsce");
266
+ });
267
+ };
268
+ /** The reveal of a target the marketplace refused, under `onRefusal: "warn"`. */
269
+ const refusedResult = (ctx, items, err) => {
270
+ const warning = ctx.redactor.redact(`${label} refused ${items[0]?.name ?? decl.vsix}: ${err.message}. onRefusal is warn, so the publish goes on without it, and the same publish run again tries it again`);
271
+ return { target: target.name, destination: target.destination, items: items.map((i) => ({ ...i, refused: true })), warning };
272
+ };
159
273
  /** VS Code Marketplace: whether the gallery lists the version. */
160
274
  const galleryHas = async (ctx, id) => {
161
275
  const res = await get(`${registry}/_apis/public/gallery/extensionquery`, {
@@ -179,9 +293,14 @@ export function marketplaceTarget(decl, deps) {
179
293
  },
180
294
  async stage(ctx) {
181
295
  const { id, digest, token, item } = setup(ctx);
182
- ctx.log(`using the token from ${token.from}`);
296
+ if (token)
297
+ ctx.log(`using the token from ${token.from}`);
183
298
  const done = (present) => ({ target: target.name, destination: target.destination, items: [{ ...item, ...(present ? { present: true } : {}) }], state: present ? { present: "true" } : {} });
184
299
  if (decl.marketplace === "openvsx") {
300
+ if (auth === "trusted-publishing") {
301
+ await trustedToken(ctx, id);
302
+ ctx.log(`Open VSX takes this run as a trusted publisher of ${id.publisher}.${id.name}; the reveal asks for a new token, since one lasts minutes`);
303
+ }
185
304
  const ns = await get(`${registry}/api/${encodeURIComponent(id.publisher)}`);
186
305
  if (ns.status === 404) {
187
306
  throw new PublishTargetError("publish-marketplace-no-namespace", `Open VSX at ${registry} has no namespace ${id.publisher}`, `Create it once with: npx ovsx create-namespace ${id.publisher}`);
@@ -199,6 +318,15 @@ export function marketplaceTarget(decl, deps) {
199
318
  ctx.log(`${item.name} is already on Open VSX with the same bytes`);
200
319
  return done(true);
201
320
  }
321
+ if (auth === "azure-credential") {
322
+ ctx.log(`checking the job's Microsoft Entra identity may publish as ${id.publisher}: vsce verify-pat --azure-credential ${id.publisher}`);
323
+ const check = await vsce(ctx, ["verify-pat", id.publisher], null);
324
+ for (const l of check.output)
325
+ ctx.log(`vsce: ${l}`);
326
+ if (check.code !== 0) {
327
+ throw new PublishTargetError("publish-marketplace-azure-credential", `vsce could not sign in with a Microsoft Entra identity that has a role on publisher ${id.publisher}: vsce verify-pat exited ${check.code}${check.output.length ? `: ${check.output.slice(-3).join(" ")}` : ""}`, `Sign in to Azure in the publish's job before it runs, such as with azure/login and the run's OIDC token, as an identity added to the publisher ${id.publisher}.`);
328
+ }
329
+ }
202
330
  if (await galleryHas(ctx, id)) {
203
331
  ctx.log(`${item.name} is already on the VS Code Marketplace; it reports no digest to compare`);
204
332
  return done(true);
@@ -211,44 +339,60 @@ export function marketplaceTarget(decl, deps) {
211
339
  if (staged.state.present === "true")
212
340
  return { target: target.name, destination: target.destination, items: items.map((i) => ({ ...i, present: true })) };
213
341
  const { abs, bytes, id, digest, token, item } = setup(ctx);
342
+ const refusable = async (step) => {
343
+ try {
344
+ return await step();
345
+ }
346
+ catch (err) {
347
+ if (decl.onRefusal === "warn" && err instanceof PublishTargetError && REFUSALS.has(err.code))
348
+ return refusedResult(ctx, items, err);
349
+ throw err;
350
+ }
351
+ };
214
352
  if (decl.marketplace === "openvsx") {
215
353
  // Run again after an upload whose record was lost, the version is there: check it rather than send it twice.
216
- const before = await openVsxServed(ctx, id);
217
- if (before === null) {
218
- ctx.log(`uploading ${item.name} (${bytes.byteLength} bytes) to Open VSX`);
219
- const res = await fetchImpl(`${registry}/api/-/publish?token=${encodeURIComponent(token.value)}`, {
354
+ const uploaded = await refusable(async () => {
355
+ const before = await openVsxServed(ctx, id);
356
+ if (before !== null)
357
+ return before;
358
+ const publishToken = token ? token.value : await trustedToken(ctx, id);
359
+ ctx.log(`uploading ${item.name} (${bytes.byteLength} bytes) to Open VSX${token ? "" : " with a trusted-publishing token"}`);
360
+ const res = await fetchImpl(`${registry}/api/-/publish?token=${encodeURIComponent(publishToken)}`, {
220
361
  method: "POST",
221
362
  headers: { "user-agent": "chant", "content-type": "application/octet-stream" },
222
363
  body: new Uint8Array(bytes),
223
364
  });
224
365
  if (res.status !== 201 && res.status !== 200)
225
366
  fail(ctx, `publishing ${item.name}`, res.status, await res.text().catch(() => ""));
226
- }
367
+ return null;
368
+ });
369
+ if (uploaded !== null && typeof uploaded === "object")
370
+ return uploaded;
371
+ const before = uploaded;
227
372
  const served = before ?? (await openVsxServed(ctx, id));
228
373
  if (served !== digest) {
229
374
  throw new PublishTargetError("publish-marketplace-digest-mismatch", `Open VSX serves ${item.name} with digest ${served ?? "none"}, and the file published is ${digest}`);
230
375
  }
231
376
  return { target: target.name, destination: target.destination, items: before === null ? items : items.map((i) => ({ ...i, present: true })) };
232
377
  }
233
- if (await galleryHas(ctx, id)) {
234
- ctx.log(`${item.name} is already on the VS Code Marketplace`);
235
- return { target: target.name, destination: target.destination, items: items.map((i) => ({ ...i, present: true })) };
236
- }
237
- ctx.log(`running vsce publish --packagePath ${decl.vsix}`);
238
- const result = await run(deps.vsce ?? "vsce", ["publish", "--packagePath", abs], ctx, vsceEnv(ctx.env, token)).catch((err) => {
239
- throw new PublishTargetError("publish-marketplace-failed", `vsce could not be run: ${err instanceof Error ? err.message : String(err)}`, "Install it on the job's PATH: npm install -g @vscode/vsce");
378
+ const outcome = await refusable(async () => {
379
+ if (await galleryHas(ctx, id)) {
380
+ ctx.log(`${item.name} is already on the VS Code Marketplace`);
381
+ return true;
382
+ }
383
+ ctx.log(`running vsce publish --packagePath ${decl.vsix}${token ? "" : " --azure-credential"}`);
384
+ const result = await vsce(ctx, ["publish", "--packagePath", abs], token);
385
+ for (const l of result.output)
386
+ ctx.log(`vsce: ${l}`);
387
+ if (result.code !== 0) {
388
+ throw new PublishTargetError("publish-marketplace-failed", `vsce publish of ${item.name} exited ${result.code}${result.output.length ? `: ${result.output.slice(-3).join(" ")}` : ""}`);
389
+ }
390
+ return false;
240
391
  });
241
- for (const l of result.output)
242
- ctx.log(`vsce: ${l}`);
243
- if (result.code !== 0) {
244
- throw new PublishTargetError("publish-marketplace-failed", `vsce publish of ${item.name} exited ${result.code}${result.output.length ? `: ${result.output.slice(-3).join(" ")}` : ""}`);
245
- }
246
- return { target: target.name, destination: target.destination, items };
392
+ if (typeof outcome === "object")
393
+ return outcome;
394
+ return { target: target.name, destination: target.destination, items: outcome ? items.map((i) => ({ ...i, present: true })) : items };
247
395
  },
248
396
  };
249
397
  return target;
250
398
  }
251
- /** The environment vsce runs with: the run's, with the token in `VSCE_PAT`. */
252
- function vsceEnv(env, token) {
253
- return { ...env, VSCE_PAT: token.value };
254
- }
@@ -1 +1 @@
1
- {"version":3,"file":"publish-tauri.d.ts","sourceRoot":"","sources":["../../src/lifecycle/publish-tauri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAI5E,OAAO,EAA2C,KAAK,WAAW,EAAuC,KAAK,aAAa,EAAqB,MAAM,mBAAmB,CAAC;AAG1K,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,aAAe,CAAC;AASxD,oHAAoH;AACpH,wBAAgB,aAAa,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,UAAU,CAK7K;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,8BAA8B,EAAE,IAAI,EAAE,WAAW,GAAG,aAAa,CA4HzG"}
1
+ {"version":3,"file":"publish-tauri.d.ts","sourceRoot":"","sources":["../../src/lifecycle/publish-tauri.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AAI5E,OAAO,EAA2C,KAAK,WAAW,EAAuC,KAAK,aAAa,EAAqB,MAAM,mBAAmB,CAAC;AAE1K,uEAAuE;AACvE,eAAO,MAAM,2BAA2B,aAAa,CAAC;AAStD,oHAAoH;AACpH,wBAAgB,aAAa,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,GAAG,UAAU,CAK7K;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,8BAA8B,EAAE,IAAI,EAAE,WAAW,GAAG,aAAa,CA4HzG"}
@@ -50,9 +50,8 @@ import { GitHubRepo, githubApi } from "./publish-github.js";
50
50
  import { fillUrl, releaseVersion } from "./publish-homebrew.js";
51
51
  import { bytesDigest, checkReleaseDigest, memberFile, publishTargetKey } from "./publish-targets.js";
52
52
  import { PublishTargetError } from "./release-publish.js";
53
- import { NEXT_RELEASE } from "../release-floors.js";
54
53
  /** The first chant that publishes a `tauri-updater` target (#4676). */
55
- export const PUBLISH_TAURI_UPDATER_FLOOR = NEXT_RELEASE;
54
+ export const PUBLISH_TAURI_UPDATER_FLOOR = "0.124.63";
56
55
  /** The updater manifest's bytes: 2-space JSON with a trailing newline, keys in the order Tauri's docs show them. */
57
56
  export function tauriManifest(m) {
58
57
  const platforms = {};
@@ -31,15 +31,42 @@
31
31
  * all the same, and readers report whether the signature verifies. With
32
32
  * `ci.green.signedSince` declared, a green tag counts only with a valid
33
33
  * statement (`../workspace/ci-green.ts`), so a hand-pushed tag cuts nothing.
34
+ *
35
+ * A lane (#4692): a cut given a lane `ci.green.lanes` declares checks that
36
+ * lane's tags, `ci/green-<lane>/<sha>` and `ci/revoked-<lane>/<sha>`, in place
37
+ * of `ci/green/<sha>` and `ci/revoked/<sha>`, and the cut line names the lane.
38
+ *
39
+ * An override (#4693): a commit with no green tag that counts is cut when the
40
+ * cut asks for it (`overrideGreen`) and a person's override of it stands on
41
+ * the override ledger, `_gates/policy-override.jsonl` (`../override-gate.ts`).
42
+ * The subject is `release-<sha12>`, the plan the commit, and the rule
43
+ * `ci-green` (or `ci-green-<lane>`). It counts when a person the overriders
44
+ * file at base lists wrote it with a reason, sealed under a `release` gate in
45
+ * `identity.gates`. The cut spends it and records it on the cut line. With no
46
+ * override that counts, a cut (not a dry run) records the request for one,
47
+ * which `chant approve policy-override` answers. A revoked commit is never
48
+ * cut, override or not.
34
49
  */
35
- import { type Release, type ReleaseCut, type ReleaseTarget } from "./release-store.js";
50
+ import { type Release, type ReleaseCut, type ReleaseCutOverride, type ReleaseTarget } from "./release-store.js";
36
51
  import type { CompiledTarget, TargetCompiler } from "../components/release-compile.js";
52
+ /** The first chant that cuts from a lane's green tag and writes `lane` on the cut line (#4692). */
53
+ export declare const RELEASE_CUT_LANE_FLOOR = "0.124.64";
54
+ /** The first chant that cuts a commit that is not green under an override and writes `override` on the cut line (#4693). */
55
+ export declare const RELEASE_CUT_OVERRIDE_FLOOR = "0.124.64";
56
+ /** The override gate's subject for a cut of `commit` (#4693): `release-<sha12>`. */
57
+ export declare function greenOverrideSubject(commit: string): string;
58
+ /** The rule an override of a cut names (#4693): `ci-green`, or `ci-green-<lane>` for a lane's tag. */
59
+ export declare function greenOverrideRule(lane: string | null): string;
37
60
  /** The stable codes a cut refuses with. */
38
61
  export type ReleaseCutCode = "not-a-git-repository" | "release-commit-not-green" | "release-commit-revoked" | "release-worktree-dirty" | "release-no-environments" | "release-no-components" | "release-build-inputs-differ" | "release-unsigned" | "release-signer-refused" | "declaration-invalid";
39
62
  export declare class ReleaseCutError extends Error {
40
63
  readonly code: ReleaseCutCode;
41
64
  readonly fix?: string | undefined;
42
- constructor(code: ReleaseCutCode, message: string, fix?: string | undefined);
65
+ /** The cut recorded a request for an override on `chant/lifecycle` (#4693), which the caller pushes. */
66
+ readonly recorded: boolean;
67
+ constructor(code: ReleaseCutCode, message: string, fix?: string | undefined,
68
+ /** The cut recorded a request for an override on `chant/lifecycle` (#4693), which the caller pushes. */
69
+ recorded?: boolean);
43
70
  }
44
71
  export interface CutRequest {
45
72
  /** The member's directory. */
@@ -68,6 +95,19 @@ export interface CutRequest {
68
95
  };
69
96
  /** The publish channel recorded on the cut (#4168 4.3), in place of `latest`. */
70
97
  channel?: string;
98
+ /**
99
+ * The green lane to check (#4692), one `ci.green.lanes` declares at base:
100
+ * the commit must carry `ci/green-<lane>/<sha>` and no
101
+ * `ci/revoked-<lane>/<sha>`. Recorded on the cut. Absent, the full
102
+ * `ci/green/<sha>` tag is checked.
103
+ */
104
+ lane?: string;
105
+ /**
106
+ * Cut the commit when it has no green tag that counts, under a person's
107
+ * override of it (#4693). Without an override that counts the cut is
108
+ * refused, and a cut that is not a dry run records the request for one.
109
+ */
110
+ overrideGreen?: boolean;
71
111
  }
72
112
  export interface CutResult {
73
113
  release: Release;
@@ -88,9 +128,9 @@ export interface CutResult {
88
128
  * and the tags on it that were ignored for want of a valid statement
89
129
  * (#4031). The tags are judged by `green`, the declaration's `ci.green` at
90
130
  * base, with the runner keys read at its branch's tip; with no `ci.green`,
91
- * every tag counts.
131
+ * every tag counts. With `lane` (#4692), that lane's tags are read.
92
132
  */
93
- export declare function greenState(top: string, sha: string, green?: import("../workspace/declaration.js").CiGreen | null): Promise<{
133
+ export declare function greenState(top: string, sha: string, green?: import("../workspace/declaration.js").CiGreen | null, lane?: string): Promise<{
94
134
  state: "green" | "revoked" | "none";
95
135
  ignored: Array<{
96
136
  tag: string;
@@ -138,6 +178,10 @@ export interface CutPlan {
138
178
  }>;
139
179
  /** Whether the release gate in identity.gates requires a signed cut. */
140
180
  signatureRequired: boolean;
181
+ /** The green lane the commit was checked in (#4692), or null for the full green tag. */
182
+ lane: string | null;
183
+ /** The override the cut would run under and spend (#4693), when the commit is not green; null when it is. */
184
+ override: ReleaseCutOverride | null;
141
185
  }
142
186
  /**
143
187
  * The dry run of {@link cutRelease} (#4027): the same checks and compile,
@@ -153,7 +197,9 @@ export declare function planRelease(req: CutRequest): Promise<CutPlan>;
153
197
  * push. Throws {@link ReleaseCutError} before anything is written when the
154
198
  * commit isn't green, the tree is dirty, or an environment can't be compiled
155
199
  * to the same artifacts, and `ReleaseLabelError` (./release-store.ts) when the
156
- * label is taken or the release already carries another one.
200
+ * label is taken or the release already carries another one. The one write
201
+ * before a refusal is the request for an override (#4693), when the cut asks
202
+ * for one and none stands; the error's `recorded` says so.
157
203
  *
158
204
  * The cut line names its run (#4027): the CI run's id and origin in CI, and
159
205
  * outside CI an id minted from the cut's time, `local-<epoch ms>`, with the
@@ -1 +1 @@
1
- {"version":3,"file":"release-cut.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-cut.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AASH,OAAO,EAUL,KAAK,OAAO,EAEZ,KAAK,UAAU,EACf,KAAK,aAAa,EAGnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAEpF,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GACtB,sBAAsB,GACtB,0BAA0B,GAC1B,wBAAwB,GACxB,wBAAwB,GACxB,yBAAyB,GACzB,uBAAuB,GACvB,6BAA6B,GAC7B,kBAAkB,GAClB,wBAAwB,GACxB,qBAAqB,CAAC;AAE1B,qBAAa,eAAgB,SAAQ,KAAK;IAEtC,QAA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