@rightkit/release 0.6.82 → 0.6.84

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.
@@ -5763,6 +5763,9 @@ export async function main(argv, io = {}) {
5763
5763
  return forecast;
5764
5764
  };
5765
5765
  }
5766
+ // Each Class B result this run stores is recorded in the history as it is stored, so a run stopped part way leaves no cache entry the
5767
+ // next forecast does not know (NN05 then stops every later run; Legion and Pulse, 2026-11-25). The end-of-run record below still runs.
5768
+ if (historyByClass.B) scanOptions.onClassBStored = ({ decision, entry }) => historyByClass.B.record({ fingerprints: decision.fingerprints, retained: [entry], mismatches: [] });
5766
5769
  scanResult = await runScans(plan, scanOptions);
5767
5770
  let blocked = false;
5768
5771
  for (const cls of activeHistories) {
@@ -144,7 +144,7 @@ function acquire(root, { expectedCommit, expectedTree, commit: selectedCommit, r
144
144
  const rows = parseTree(runGit(root, ["ls-tree", "-r", "-z", "--full-tree", tree], { encoding: "buffer", maxBuffer: MAX_TREE_BYTES, timeout: COMMAND_TIMEOUT_MS, runner, env }), objectFormat);
145
145
  const wanted = new Set(requiredPaths.filter(validatePath));
146
146
  const shouldRead = (row) => row.type === "blob" && row.mode !== "120000" && (
147
- wanted.has(row.rel) || ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "ownership-exceptions.json", "pnpm-workspace.yaml", "Cargo.lock", "pnpm-lock.yaml", "package-lock.json", "npm-shrinkwrap.json", "yarn.lock"].includes(path.posix.basename(row.rel)) ||
147
+ wanted.has(row.rel) || ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "ownership-exceptions.json", "fixture-files.json", "pnpm-workspace.yaml", "Cargo.lock", "pnpm-lock.yaml", "package-lock.json", "npm-shrinkwrap.json", "yarn.lock"].includes(path.posix.basename(row.rel)) ||
148
148
  /\.(?:rs|ts|tsx|js|mjs|cjs|jsx|swift|m|mm|c|cc|cpp|h|py|go|kt|java|cs)$/i.test(row.rel)
149
149
  );
150
150
  const candidates = rows.filter(shouldRead);
@@ -4349,7 +4349,14 @@ export async function runScans(plan, options = {}) {
4349
4349
  const proven = memberProofs.length > 0 && (groupCrates < 2 || memberProofs.some((proof) => proof.context.kind !== "targets")) && (groupTargets < 2 || memberProofs.some((proof) => proof.context.kind === "targets"));
4350
4350
  if (!admitted.invocationScan.coverageKey && !admitted.invocationScan.provesPublisher && member?.retainedSourceEligible && member.featureContext && member.key && signed && proven && usableStoredPass(stored, admitted.invocationScan, { cacheKey: key, viaSeam: row.seam === true })) source = { schema: "rightkit.retained-invocation/1", key, rowDigest: cacheEntryIdentity(stored.row), memberKey: member.key, memberCrate, featureContext: member.featureContext, scan: admitted.invocationScan, equivalence: memberProofs };
4351
4351
  }
4352
- decision.retained.push({ id, key: row.status === "fail" ? failureKey : key, status: row.status, ...(source ? { source } : {}) });
4352
+ const entry = { id, key: row.status === "fail" ? failureKey : key, status: row.status, ...(source ? { source } : {}) };
4353
+ decision.retained.push(entry);
4354
+ // A result this run stored is recorded in the history at once, not only when the run completes: a run stopped after some rows passed
4355
+ // left their cache entries with no history, and every later run forecast "run", found the entry, and stopped (NN05) for good
4356
+ // (Legion and Pulse on the Dell, 2026-11-25). Best effort: the end-of-run record still runs.
4357
+ if (decision === classBCacheDecision && admitted.stored && !row.cached) {
4358
+ try { options.onClassBStored?.({ decision, entry }); } catch { /* the end-of-run record covers it */ }
4359
+ }
4353
4360
  }
4354
4361
  }
4355
4362
  const out = { ...row, timing: { ...admitted.timing, elapsedMs: performance.now() - admitted.started } };
@@ -47,6 +47,7 @@
47
47
  "cargo:http-body-util",
48
48
  "cargo:hyper-util",
49
49
  "cargo:ignore",
50
+ "cargo:image",
50
51
  "cargo:insta",
51
52
  "cargo:itertools",
52
53
  "cargo:jsonschema",
@@ -54,6 +55,7 @@
54
55
  "cargo:lancedb",
55
56
  "cargo:libc",
56
57
  "cargo:libsqlite3-sys",
58
+ "cargo:mdns-sd",
57
59
  "cargo:mockito",
58
60
  "cargo:objc2-app-kit",
59
61
  "cargo:objc2-foundation",
@@ -874,6 +876,7 @@
874
876
  "cargo:brotli",
875
877
  "cargo:clap",
876
878
  "cargo:directories-next",
879
+ "cargo:ed25519-dalek",
877
880
  "cargo:flate2",
878
881
  "cargo:futures-util",
879
882
  "cargo:headless_chrome",
@@ -894,6 +897,7 @@
894
897
  "cargo:serde",
895
898
  "cargo:serde_json",
896
899
  "cargo:serde_yaml",
900
+ "cargo:sha1",
897
901
  "cargo:sha2",
898
902
  "cargo:subtle",
899
903
  "cargo:tar",
package/ownership.mjs CHANGED
@@ -238,7 +238,7 @@ function fileInventory(appRoot, trust, pathPrefix = "", repositoryRoot = appRoot
238
238
  const inventory = gitListedInventory(appRoot, {
239
239
  repositoryRoot,
240
240
  protectedPaths: [...protectedPaths],
241
- relevant: (rel) => ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "pnpm-workspace.yaml", ...OWNERSHIP_LOCKFILES].includes(path.posix.basename(rel)) || CODE_EXT.has(path.posix.extname(rel).toLowerCase()),
241
+ relevant: (rel) => ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "pnpm-workspace.yaml", "fixture-files.json", ...OWNERSHIP_LOCKFILES].includes(path.posix.basename(rel)) || CODE_EXT.has(path.posix.extname(rel).toLowerCase()),
242
242
  maxFileBytes: (rel) => CODE_EXT.has(path.posix.extname(rel).toLowerCase()) || protectedPaths.has(rel) ? 2 * 1024 * 1024 : 64 * 1024 * 1024,
243
243
  });
244
244
  for (const item of inventory.coverage) if (item.reason === "file-over-size-limit") item.reason = protectedPaths.has(item.path) ? "protected-provenance-file-over-2MiB" : CODE_EXT.has(path.posix.extname(item.path).toLowerCase()) ? "source-file-over-2MiB" : "manifest-file-over-64MiB";
@@ -284,7 +284,7 @@ function committedFileInventory(appRoot, trust, pathPrefix, committed, scope = n
284
284
  if (entry.mode === "120000") { coverage.push({ path: rel, status: "unscanned", reason: "committed-symlink" }); continue; }
285
285
  if (entry.mode === "160000" || entry.type === "commit") { coverage.push({ path: rel, status: "unscanned", reason: "committed-gitlink" }); continue; }
286
286
  if (entry.type !== "blob") { coverage.push({ path: rel, status: "unscanned", reason: "committed-unsupported-entry" }); continue; }
287
- const relevant = protectedPaths.has(entry.rel) || ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "ownership-exceptions.json", "pnpm-workspace.yaml", ...OWNERSHIP_LOCKFILES].includes(path.posix.basename(rel)) || CODE_EXT.has(path.posix.extname(rel).toLowerCase());
287
+ const relevant = protectedPaths.has(entry.rel) || ["Cargo.toml", "package.json", "Package.swift", "Package.resolved", "ownership-exceptions.json", "pnpm-workspace.yaml", "fixture-files.json", ...OWNERSHIP_LOCKFILES].includes(path.posix.basename(rel)) || CODE_EXT.has(path.posix.extname(rel).toLowerCase());
288
288
  const bytes = relevant ? entry.bytes : undefined;
289
289
  if (relevant && !bytes) coverage.push({ path: rel, status: "unscanned", reason: "committed-blob-unavailable" });
290
290
  const isExceptionFile = path.posix.basename(rel) === "ownership-exceptions.json";
@@ -440,11 +440,31 @@ function resolveDependencyVersions(appRoot, inventory, deps, coverage, contentDi
440
440
  }
441
441
  }
442
442
 
443
+ /** Declared fixture files and their sha256 from every `.rightkit/fixture-files.json` in the inventory, keyed by app-relative path (each file's
444
+ * paths are relative to the folder holding its `.rightkit`). An unreadable declaration declares nothing. */
445
+ export function declaredFixtureDigests(inventory) {
446
+ const out = new Map();
447
+ for (const x of inventory.files ?? []) {
448
+ if (!x.bytes || !(x.rel === ".rightkit/fixture-files.json" || x.rel.endsWith("/.rightkit/fixture-files.json"))) continue;
449
+ const base = path.posix.dirname(path.posix.dirname(x.rel));
450
+ let declared;
451
+ try { declared = JSON.parse(x.bytes.toString("utf8")).files; } catch { continue; }
452
+ for (const [file, entry] of Object.entries(declared ?? {})) {
453
+ if (typeof entry?.sha256 === "string" && /^[0-9a-f]{64}$/.test(entry.sha256)) out.set(base === "." ? file : path.posix.join(base, file), entry.sha256);
454
+ }
455
+ }
456
+ return out;
457
+ }
458
+
443
459
  function dependenciesFromInventory(appRoot, inventory) {
444
460
  const deps = [], coverage = [], contentDigests = [], covered = [];
445
461
  // Workspace inheritance is loaded before member manifests.
446
462
  const manifestNames = new Set(["Cargo.toml", "package.json", "Package.swift"]);
447
- const manifests = inventory.files.filter((x) => manifestNames.has(path.posix.basename(x.rel)));
463
+ // A manifest the repository declares as a test fixture (`.rightkit/fixture-files.json`, rightkit#1291: { files: { "<path>": { sha256, note } } },
464
+ // the declaration the Class A scans honour) is a known-answer input, not one of the app's dependencies, while its bytes are still the declared
465
+ // ones. Legion's Audit fixtures (upstream cargo-geiger, node-outdated package.json files) were refused as 68 un-allowlisted dependencies.
466
+ const fixtures = declaredFixtureDigests(inventory);
467
+ const manifests = inventory.files.filter((x) => manifestNames.has(path.posix.basename(x.rel)) && !(x.bytes && fixtures.get(x.rel) === byteDigest(x.bytes)));
448
468
  const primaryFiles = manifests.filter((x) => !x.inNodeModules);
449
469
  // Follow only explicitly declared local package roots into installed layouts. Their own
450
470
  // manifests are first-party inputs; unrelated installed transitive manifests stay opaque.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.6.82",
3
+ "version": "0.6.84",
4
4
  "description": "Portable release CLI/SDK with fail-closed public GitHub Releases and private R2 + RightApps distribution.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "type": "module",
@@ -105,7 +105,7 @@
105
105
  "smol-toml": "1.9.1"
106
106
  },
107
107
  "scripts": {
108
- "test": "node --test acceptance-admission.test.mjs acceptance-lines.test.mjs acceptance-cases.test.mjs rule-verdict-cache.test.mjs class-b-dispatch.test.mjs remember-reads.test.mjs sidecar-source.test.mjs caller-levers.test.mjs class-a-cache-history.test.mjs gate-fixed-levers.test.mjs broker-toolchain.test.mjs snapshot-changes.test.mjs gate-serve-changes.test.mjs gate-serve-helper.test.mjs resident-answers.test.mjs probe-memo-kept.test.mjs class-a-lanes.test.mjs feature-partition-targets.test.mjs class-b-target-groups.test.mjs unit-list-lock.test.mjs cargo-profile-check.test.mjs cargo-home-real-path.test.mjs class-a-cache-admission.test.mjs class-b-cache-admission.test.mjs shellcheck-cache-inputs.test.mjs implicit-features.test.mjs test-group-failure-cache.test.mjs sealed-listing-store.test.mjs gate/gate.test.mjs package-files.test.mjs host-gate.test.mjs publish-local-cargo.test.mjs publish-local-npm.test.mjs shell-contract-hub-window.test.mjs cargo-license-notices-paths.test.mjs rightkit-freshness-direct.test.mjs swap-helper-committed.test.mjs affected-units.test.mjs batch-workspace.test.mjs unit-list-plan.test.mjs compile-inputs.test.mjs snapshot-dependency-reuse.test.mjs publisher-requirement-scan.test.mjs node-check-cache.test.mjs preparation-diagnostics.test.mjs gate-coverage-timing.test.mjs ci-compile-admission.test.mjs qualification-verify.test.mjs test-run-output.test.mjs feature-partition.test.mjs feature-sets.test.mjs gate-seam.test.mjs serial-row.test.mjs seam-repairs.test.mjs snapshot-lock.test.mjs lock-identity.test.mjs stamp-relay.test.mjs install-tauri-authenticode.test.mjs gate-stage-binding.test.mjs tool-output.test.mjs publication-gate.test.mjs gate-release-admission.test.mjs cache-key-explain.test.mjs external-inputs.test.mjs built-bins.test.mjs probe-memo.test.mjs gate-serve-ask.test.mjs double-pass.test.mjs tool-version-memo.test.mjs workspace-manifests.test.mjs test-failure-cache.test.mjs served-metadata.test.mjs windows-pnpm-identity.test.mjs",
108
+ "test": "node --test acceptance-admission.test.mjs acceptance-lines.test.mjs acceptance-cases.test.mjs rule-verdict-cache.test.mjs class-b-dispatch.test.mjs remember-reads.test.mjs sidecar-source.test.mjs caller-levers.test.mjs class-a-cache-history.test.mjs gate-fixed-levers.test.mjs broker-toolchain.test.mjs snapshot-changes.test.mjs gate-serve-changes.test.mjs gate-serve-helper.test.mjs resident-answers.test.mjs probe-memo-kept.test.mjs class-a-lanes.test.mjs feature-partition-targets.test.mjs class-b-target-groups.test.mjs unit-list-lock.test.mjs cargo-profile-check.test.mjs cargo-home-real-path.test.mjs class-a-cache-admission.test.mjs class-b-cache-admission.test.mjs shellcheck-cache-inputs.test.mjs implicit-features.test.mjs test-group-failure-cache.test.mjs sealed-listing-store.test.mjs gate/gate.test.mjs package-files.test.mjs host-gate.test.mjs publish-local-cargo.test.mjs publish-local-npm.test.mjs shell-contract-hub-window.test.mjs cargo-license-notices-paths.test.mjs rightkit-freshness-direct.test.mjs class-b-history-per-row.test.mjs ownership-declared-fixtures.test.mjs swap-helper-committed.test.mjs affected-units.test.mjs batch-workspace.test.mjs unit-list-plan.test.mjs compile-inputs.test.mjs snapshot-dependency-reuse.test.mjs publisher-requirement-scan.test.mjs node-check-cache.test.mjs preparation-diagnostics.test.mjs gate-coverage-timing.test.mjs ci-compile-admission.test.mjs qualification-verify.test.mjs test-run-output.test.mjs feature-partition.test.mjs feature-sets.test.mjs gate-seam.test.mjs serial-row.test.mjs seam-repairs.test.mjs snapshot-lock.test.mjs lock-identity.test.mjs stamp-relay.test.mjs install-tauri-authenticode.test.mjs gate-stage-binding.test.mjs tool-output.test.mjs publication-gate.test.mjs gate-release-admission.test.mjs cache-key-explain.test.mjs external-inputs.test.mjs built-bins.test.mjs probe-memo.test.mjs gate-serve-ask.test.mjs double-pass.test.mjs tool-version-memo.test.mjs workspace-manifests.test.mjs test-failure-cache.test.mjs served-metadata.test.mjs windows-pnpm-identity.test.mjs",
109
109
  "test:registry-parity": "node registry-parity.mjs --allow-unpublished",
110
110
  "test:signer:windows": "node sign-release-manifest.integration.mjs",
111
111
  "verify:standalone": "node standalone-clone-verify.mjs"
@@ -0,0 +1,69 @@
1
+ // The committed file listing a QA journeys run reads when its root is the door's git-less snapshot.
2
+ //
3
+ // `rightkit-qa journeys run` binds its build record and the scenario files it reads to committed source. In a checkout it asks git; in
4
+ // the door's snapshot there is no git, and `.rightkit-source-identity.json` names only the commit and tree ids, which cannot prove one
5
+ // file. So the qualify stage writes, OUTSIDE the snapshot (a file inside it would be an extra the snapshot verify refuses), the exact
6
+ // list of the commit's committed files with the sha256 of their committed bytes, and hands its path to the runner as
7
+ // RIGHTKIT_QA_SOURCE_LISTING. The runner treats a file as committed only when it is listed and its bytes match; anything else fails
8
+ // closed. The listing is computed from the checkout's object database for the selected commit (never from the snapshot's files).
9
+ import { createHash } from "node:crypto";
10
+ import { mkdirSync, renameSync, writeFileSync } from "node:fs";
11
+ import path from "node:path";
12
+ import { spawnSync } from "./background-process.mjs";
13
+
14
+ export const QA_SOURCE_LISTING_ENV = "RIGHTKIT_QA_SOURCE_LISTING";
15
+ export const QA_SOURCE_LISTING_SCHEMA = "rightkit.qa-source-listing/1";
16
+
17
+ const HEX40 = /^[0-9a-f]{40}$/;
18
+
19
+ function gitBytes(git, cwd, args, input) {
20
+ const r = git("git", ["-C", cwd, ...args], { input, maxBuffer: 1024 * 1024 * 1024, windowsHide: true });
21
+ if (r.status !== 0) throw new Error(`git ${args.join(" ")} failed: ${String(r.stderr ?? "").trim().slice(0, 400)}`);
22
+ return Buffer.isBuffer(r.stdout) ? r.stdout : Buffer.from(String(r.stdout ?? ""), "utf8");
23
+ }
24
+
25
+ /**
26
+ * `{ path: sha256 }` for every regular file (mode 100644 or 100755) of `commit`'s tree, read from the object database of `checkout`.
27
+ * Symlinks and submodules are not regular committed files and are left out, so the runner never counts them as committed source.
28
+ */
29
+ export function committedFileDigests({ checkout, commit, git = spawnSync }) {
30
+ if (!HEX40.test(String(commit))) throw new Error(`a QA source listing needs a full commit id, got ${commit}`);
31
+ const listed = gitBytes(git, checkout, ["ls-tree", "-r", "-z", "--full-tree", commit]).toString("utf8").split("\0").filter(Boolean);
32
+ const entries = [];
33
+ for (const row of listed) {
34
+ const tab = row.indexOf("\t");
35
+ const [mode, type, oid] = row.slice(0, tab).split(" ");
36
+ if (type === "blob" && (mode === "100644" || mode === "100755")) entries.push({ path: row.slice(tab + 1), oid });
37
+ }
38
+ const files = {};
39
+ if (!entries.length) return files;
40
+ const out = gitBytes(git, checkout, ["cat-file", "--batch"], `${entries.map((e) => e.oid).join("\n")}\n`);
41
+ let at = 0;
42
+ for (const entry of entries) {
43
+ const nl = out.indexOf(0x0a, at);
44
+ if (nl < 0) throw new Error(`git cat-file ended before ${entry.path}`);
45
+ const [oid, type, size] = out.subarray(at, nl).toString("utf8").split(" ");
46
+ if (oid !== entry.oid || type !== "blob") throw new Error(`git cat-file answered ${oid} ${type} for ${entry.path} (${entry.oid})`);
47
+ const start = nl + 1;
48
+ const end = start + Number(size);
49
+ files[entry.path] = createHash("sha256").update(out.subarray(start, end)).digest("hex");
50
+ at = end + 1;
51
+ }
52
+ return files;
53
+ }
54
+
55
+ /**
56
+ * Writes the listing for a door source split and returns its path. `source` is release-source-identity's snapshot source
57
+ * (`commit`, `tree`, `checkout`, `snapshot`); `dir` is a directory outside the snapshot.
58
+ */
59
+ export function writeQaSourceListing({ source, dir, git = spawnSync }) {
60
+ if (!source?.snapshot || !source?.checkout) throw new Error("a QA source listing is written only for a door source split");
61
+ const files = committedFileDigests({ checkout: source.checkout, commit: source.commit, git });
62
+ const body = { schema: QA_SOURCE_LISTING_SCHEMA, commit: source.commit, tree: source.tree, root: path.resolve(source.snapshot), files };
63
+ mkdirSync(dir, { recursive: true });
64
+ const file = path.join(dir, `${source.commit}.json`);
65
+ const tmp = `${file}.${process.pid}.tmp`;
66
+ writeFileSync(tmp, `${JSON.stringify(body)}\n`);
67
+ renameSync(tmp, file);
68
+ return file;
69
+ }
@@ -34,6 +34,9 @@ import { verifySealedRelease } from "./release-state.mjs";
34
34
  import { auditMain } from "./release-qa-audit.mjs";
35
35
  import { journeyRequiredItem, QA_RUN_ENV, relativePosix, validateJourneysReceipt } from "./release-qa-hardening.mjs";
36
36
  import { prepareInstalledArtifacts } from "./release-qa-installed.mjs";
37
+ import { CLASS_A_ENV } from "./gate-seam.mjs";
38
+ import { verdictForCwd } from "./seam-broker.mjs";
39
+ import { QA_SOURCE_LISTING_ENV, writeQaSourceListing } from "./qa-source-listing.mjs";
37
40
  import { main as policyMain } from "./release-qa-policy.mjs";
38
41
  import { darwinKeyFile, PROTECTED_SECRETS } from "./protected-credentials.mjs";
39
42
  import {
@@ -195,8 +198,18 @@ export async function runQa({ stage, platform, releaseIdArg, configPath, deps =
195
198
  const expand = (value) => String(value).replaceAll("{sealedDir}", sealed?.sealedDir ?? "").replaceAll("{releaseId}", releaseId)
196
199
  .replaceAll("{installedApp}", installedQa?.installedApp ?? "").replaceAll("{installedDir}", installedQa?.installedDir ?? "").replaceAll("{qaRoot}", installedQa?.qaRoot ?? "");
197
200
  const installedDirs = installedDirNames(config, deps.env ?? process.env);
201
+ // In a door source split the journeys runner's root is the git-less snapshot: it binds its build record and scenario files to the
202
+ // commit's committed bytes through this listing, written outside the snapshot from the checkout's object database (qa-source-listing.mjs).
203
+ const sourceListing = split && journeysConfig && !journeysConfig.receipt
204
+ ? (deps.writeSourceListing ?? writeQaSourceListing)({ source: release, dir: path.join(repoRoot, ".right-release", "qa-source"), git: gitRunner })
205
+ : null;
206
+ // The journeys runner builds with `rustright cargo` in the app root, not through the seam, so the broker checks the stage's Class A
207
+ // verdict against that directory (its workspace is the cwd relative to the snapshot). Hand it the verdict for that directory, derived
208
+ // from the stage's root verdict exactly as the seam derives one for each of its own calls (seam-broker.mjs verdictForCwd).
209
+ const stageEnv = deps.env ?? process.env;
210
+ const classAForRoot = sourceListing && stageEnv[CLASS_A_ENV] ? (deps.verdictForCwd ?? verdictForCwd)(stageEnv, runCwd) : null;
198
211
  const runEnv = {
199
- ...process.env, RIGHT_RELEASE_QA_STAGE: stage, RIGHT_RELEASE_QA_COMMIT: source.commit, RIGHT_RELEASE_QA_RELEASE_ID: releaseId,
212
+ ...process.env, ...(sourceListing ? { [QA_SOURCE_LISTING_ENV]: sourceListing } : {}), ...(classAForRoot ? { [CLASS_A_ENV]: classAForRoot } : {}), RIGHT_RELEASE_QA_STAGE: stage, RIGHT_RELEASE_QA_COMMIT: source.commit, RIGHT_RELEASE_QA_RELEASE_ID: releaseId,
200
213
  ...(sealed ? { RIGHT_RELEASE_QA_SEALED_DIR: sealed.sealedDir } : {}), ...(installedDirs.length ? { RIGHTKIT_QA_INSTALLED_DIRS: installedDirs.join(";") } : {}), ...(installedQa?.env ?? {}),
201
214
  };
202
215
  const runCwd = appRoot;
@@ -49,7 +49,7 @@
49
49
  "@rightkit/qa": "0.7.0",
50
50
  "@rightkit/qa-chrome": "0.1.12",
51
51
  "@rightkit/react-shell": "0.7.9",
52
- "@rightkit/release": "0.6.82",
52
+ "@rightkit/release": "0.6.84",
53
53
  "@rightkit/send-ui": "0.1.0",
54
54
  "@rightkit/settings-ui": "0.7.7",
55
55
  "@rightkit/social-ui": "0.2.1",
@@ -447,7 +447,9 @@
447
447
  "0.6.78",
448
448
  "0.6.79",
449
449
  "0.6.80",
450
- "0.6.81"
450
+ "0.6.81",
451
+ "0.6.82",
452
+ "0.6.83"
451
453
  ],
452
454
  "@rightkit/settings-ui": [
453
455
  "0.1.0",
@@ -537,69 +539,69 @@
537
539
  "rightkit-tauri": "0.1.0"
538
540
  },
539
541
  "stagedCargo": {
540
- "rightkit-adapt": "0.2.0",
542
+ "rightkit-adapt": "0.2.1",
541
543
  "rightkit-adapt-taste": "0.1.3",
542
544
  "rightkit-agent-coding-tools": "0.1.9",
543
- "rightkit-agent-config": "0.1.3",
545
+ "rightkit-agent-config": "0.1.4",
544
546
  "rightkit-agent-daemon": "0.2.0",
545
- "rightkit-agent-demo": "0.2.0",
547
+ "rightkit-agent-demo": "0.2.1",
546
548
  "rightkit-agent-engine": "0.2.0",
547
- "rightkit-agent-engine-api-integrations": "0.1.5",
549
+ "rightkit-agent-engine-api-integrations": "0.1.6",
548
550
  "rightkit-agent-engine-api-platform": "0.1.3",
549
551
  "rightkit-agent-engine-api-sessions": "0.1.1",
550
552
  "rightkit-agent-engine-api-workflows": "0.2.2",
551
553
  "rightkit-agent-engine-attention": "0.2.1",
552
554
  "rightkit-agent-engine-cli": "0.1.1",
553
555
  "rightkit-agent-engine-core": "0.1.4",
554
- "rightkit-agent-engine-history": "0.1.4",
556
+ "rightkit-agent-engine-history": "0.1.5",
555
557
  "rightkit-agent-engine-mobile-runtime": "0.1.1",
556
558
  "rightkit-agent-engine-protocol": "0.4.1",
557
559
  "rightkit-agent-engine-runtime-middleware": "0.1.4",
558
- "rightkit-agent-engine-runtime-resources": "0.1.1",
559
- "rightkit-agent-engine-storage": "0.3.0",
560
+ "rightkit-agent-engine-runtime-resources": "0.1.2",
561
+ "rightkit-agent-engine-storage": "0.3.1",
560
562
  "rightkit-agent-engine-tasks": "0.3.0",
561
- "rightkit-agent-gateway": "0.3.0",
563
+ "rightkit-agent-gateway": "0.3.1",
562
564
  "rightkit-agent-host-traits": "0.1.3",
563
565
  "rightkit-agent-learning": "0.1.2",
564
- "rightkit-agent-local-models": "0.1.2",
565
- "rightkit-agent-orchestration": "0.1.6",
566
+ "rightkit-agent-local-models": "0.1.3",
567
+ "rightkit-agent-orchestration": "0.1.7",
566
568
  "rightkit-agent-orchestration-handoff": "0.1.2",
567
- "rightkit-agent-plugins": "0.1.3",
569
+ "rightkit-agent-plugins": "0.1.4",
568
570
  "rightkit-agent-policy": "0.2.4",
569
- "rightkit-agent-recipes": "0.1.2",
571
+ "rightkit-agent-recipes": "0.1.3",
570
572
  "rightkit-agent-server": "0.2.0",
571
573
  "rightkit-agent-skills": "0.1.0",
572
574
  "rightkit-agent-task-contract": "0.1.2",
573
575
  "rightkit-agent-task-journal": "0.1.1",
574
- "rightkit-agent-telemetry": "0.1.0",
576
+ "rightkit-agent-telemetry": "0.1.1",
575
577
  "rightkit-agent-tools": "0.4.4",
576
- "rightkit-agent-transcript": "0.1.3",
578
+ "rightkit-agent-transcript": "0.1.4",
577
579
  "rightkit-agents": "0.2.8",
578
580
  "rightkit-ai-accounts": "0.1.3",
579
581
  "rightkit-ai-keys": "0.1.1",
580
582
  "rightkit-android": "0.3.3",
581
583
  "rightkit-app-host": "0.1.3",
582
- "rightkit-app-icon": "0.1.0",
583
- "rightkit-app-lock": "0.1.0",
584
+ "rightkit-app-icon": "0.1.1",
585
+ "rightkit-app-lock": "0.1.1",
584
586
  "rightkit-app-manager": "0.2.5",
585
587
  "rightkit-app-settings": "0.4.4",
586
- "rightkit-app-update": "0.2.0",
588
+ "rightkit-app-update": "0.2.1",
587
589
  "rightkit-apple-ops": "0.2.0",
588
590
  "rightkit-approvals": "0.2.2",
589
591
  "rightkit-asr": "0.5.2",
590
592
  "rightkit-assist": "0.1.1",
591
593
  "rightkit-audio": "0.4.4",
592
- "rightkit-autoedit": "0.2.0",
594
+ "rightkit-autoedit": "0.2.1",
593
595
  "rightkit-automation": "0.7.6",
594
596
  "rightkit-autostart": "0.1.1",
595
597
  "rightkit-bench": "0.2.1",
596
598
  "rightkit-bot-messaging": "0.3.1",
597
599
  "rightkit-browser": "0.3.12",
598
- "rightkit-cache": "0.2.4",
600
+ "rightkit-cache": "0.2.5",
599
601
  "rightkit-captions": "0.1.1",
600
602
  "rightkit-catalog": "0.1.0",
601
603
  "rightkit-channel-memory": "0.2.3",
602
- "rightkit-chat-bridge": "0.2.4",
604
+ "rightkit-chat-bridge": "0.2.5",
603
605
  "rightkit-child-process": "0.5.17",
604
606
  "rightkit-clipboard": "0.1.0",
605
607
  "rightkit-clipboard-history": "0.4.0",
@@ -607,17 +609,17 @@
607
609
  "rightkit-code-audit-engine": "0.2.0",
608
610
  "rightkit-code-audit-provider-sdk": "0.1.1",
609
611
  "rightkit-code-audit-qualification": "0.2.0",
610
- "rightkit-color": "0.1.1",
611
- "rightkit-compose": "0.2.3",
612
+ "rightkit-color": "0.1.2",
613
+ "rightkit-compose": "0.2.4",
612
614
  "rightkit-compositor": "0.2.1",
613
615
  "rightkit-connector-gen": "0.1.0",
614
- "rightkit-content-plan": "0.2.1",
616
+ "rightkit-content-plan": "0.2.2",
615
617
  "rightkit-content-proof": "0.1.1",
616
- "rightkit-context": "0.2.0",
618
+ "rightkit-context": "0.2.1",
617
619
  "rightkit-context-client": "0.2.0",
618
620
  "rightkit-context-core": "0.2.0",
619
621
  "rightkit-context-federation": "0.2.1",
620
- "rightkit-context-protocol": "0.2.0",
622
+ "rightkit-context-protocol": "0.2.1",
621
623
  "rightkit-context-provider-sdk": "0.2.0",
622
624
  "rightkit-context-runtime": "0.1.5",
623
625
  "rightkit-contracts": "0.1.11",
@@ -635,73 +637,73 @@
635
637
  "rightkit-device-link": "0.1.0",
636
638
  "rightkit-device-link-core": "0.1.1",
637
639
  "rightkit-device-link-types": "0.1.2",
638
- "rightkit-dictation-app-runtime": "0.3.1",
640
+ "rightkit-dictation-app-runtime": "0.3.2",
639
641
  "rightkit-dictation-command-host": "0.3.4",
640
642
  "rightkit-dictation-core": "0.3.7",
641
643
  "rightkit-dictation-engine": "0.2.1",
642
644
  "rightkit-dictation-ffi": "0.2.1",
643
- "rightkit-dictation-inference": "0.2.4",
645
+ "rightkit-dictation-inference": "0.2.5",
644
646
  "rightkit-dictation-models": "0.3.3",
645
647
  "rightkit-dictation-pill": "0.1.2",
646
648
  "rightkit-dictation-runtime": "0.2.7",
647
649
  "rightkit-dictation-tauri": "0.3.4",
648
650
  "rightkit-dictation-telemetry": "0.2.4",
649
- "rightkit-dictation-text-pipeline": "0.2.7",
651
+ "rightkit-dictation-text-pipeline": "0.2.8",
650
652
  "rightkit-disk-cleanup": "0.2.2",
651
653
  "rightkit-docs": "0.1.6",
652
654
  "rightkit-doctor": "0.2.0",
653
- "rightkit-document-workspace": "0.2.0",
654
- "rightkit-embed": "0.7.0",
655
+ "rightkit-document-workspace": "0.2.1",
656
+ "rightkit-embed": "0.7.1",
655
657
  "rightkit-engine-host": "0.2.1",
656
658
  "rightkit-evidence": "0.1.1",
657
659
  "rightkit-evidence-application": "0.2.0",
658
660
  "rightkit-evidence-commands": "0.2.0",
659
661
  "rightkit-evidence-contracts": "0.1.1",
660
662
  "rightkit-evidence-decisions": "0.1.1",
661
- "rightkit-evidence-effects": "0.1.1",
663
+ "rightkit-evidence-effects": "0.1.2",
662
664
  "rightkit-evidence-governance": "0.1.1",
663
665
  "rightkit-evidence-report": "0.1.1",
664
666
  "rightkit-feed": "0.1.0",
665
- "rightkit-ffmpeg": "0.3.2",
667
+ "rightkit-ffmpeg": "0.3.3",
666
668
  "rightkit-file-watch": "0.4.4",
667
669
  "rightkit-fs": "0.5.2",
668
670
  "rightkit-fsindex": "0.6.3",
669
- "rightkit-github": "0.2.0",
671
+ "rightkit-github": "0.2.1",
670
672
  "rightkit-google-apis": "0.2.3",
671
673
  "rightkit-google-identity": "0.3.0",
672
- "rightkit-gpu": "0.1.0",
674
+ "rightkit-gpu": "0.1.1",
673
675
  "rightkit-hooks": "0.3.0",
674
676
  "rightkit-hotkeys": "0.1.8",
675
- "rightkit-http": "0.4.0",
677
+ "rightkit-http": "0.4.1",
676
678
  "rightkit-i18n": "0.1.0",
677
- "rightkit-identity": "0.1.2",
679
+ "rightkit-identity": "0.1.3",
678
680
  "rightkit-instance": "0.2.0",
679
- "rightkit-job-queue": "0.6.1",
681
+ "rightkit-job-queue": "0.6.2",
680
682
  "rightkit-launcher": "0.2.2",
681
683
  "rightkit-launcher-win": "0.2.1",
682
- "rightkit-library": "0.3.0",
684
+ "rightkit-library": "0.3.1",
683
685
  "rightkit-license": "0.3.5",
684
686
  "rightkit-llm": "0.7.1",
685
- "rightkit-local-gen": "0.1.3",
687
+ "rightkit-local-gen": "0.1.4",
686
688
  "rightkit-logs": "0.4.5",
687
689
  "rightkit-mail": "0.1.2",
688
- "rightkit-mail-gateway": "0.1.0",
689
- "rightkit-mail-store": "0.2.1",
690
+ "rightkit-mail-gateway": "0.1.1",
691
+ "rightkit-mail-store": "0.2.2",
690
692
  "rightkit-mcp": "0.10.1",
691
693
  "rightkit-media-control": "0.1.2",
692
- "rightkit-media-fetch": "0.2.0",
693
- "rightkit-media-gen": "0.2.3",
694
+ "rightkit-media-fetch": "0.2.1",
695
+ "rightkit-media-gen": "0.2.4",
694
696
  "rightkit-media-gen-approvals": "0.1.2",
695
- "rightkit-media-gen-client": "0.1.0",
697
+ "rightkit-media-gen-client": "0.1.1",
696
698
  "rightkit-media-gen-models": "0.1.1",
697
699
  "rightkit-media-pipeline": "0.2.2",
698
700
  "rightkit-memory": "0.3.1",
699
701
  "rightkit-memory-client": "0.1.1",
700
- "rightkit-memory-core": "0.2.0",
702
+ "rightkit-memory-core": "0.2.1",
701
703
  "rightkit-memory-store": "0.2.2",
702
704
  "rightkit-mesh": "0.2.3",
703
705
  "rightkit-models": "0.7.3",
704
- "rightkit-motion": "0.4.0",
706
+ "rightkit-motion": "0.4.1",
705
707
  "rightkit-notch-ui": "0.2.3",
706
708
  "rightkit-notifications": "0.1.2",
707
709
  "rightkit-now-playing": "0.1.0",
@@ -713,10 +715,10 @@
713
715
  "rightkit-owner-approvals": "0.1.3",
714
716
  "rightkit-ownership": "0.4.6",
715
717
  "rightkit-passkeys": "0.1.0",
716
- "rightkit-pdf": "0.3.5",
718
+ "rightkit-pdf": "0.3.6",
717
719
  "rightkit-pipeline": "0.2.0",
718
720
  "rightkit-platform-rules": "0.1.1",
719
- "rightkit-playback": "0.3.1",
721
+ "rightkit-playback": "0.3.2",
720
722
  "rightkit-policy-rules": "0.1.1",
721
723
  "rightkit-power": "0.1.0",
722
724
  "rightkit-presence": "0.1.2",
@@ -724,26 +726,26 @@
724
726
  "rightkit-profile": "0.1.0",
725
727
  "rightkit-prompt-recipes": "0.2.1",
726
728
  "rightkit-pty": "0.1.3",
727
- "rightkit-qa": "0.10.13",
729
+ "rightkit-qa": "0.10.14",
728
730
  "rightkit-record": "0.4.1",
729
- "rightkit-reframe": "0.2.0",
730
- "rightkit-remote-compute": "0.2.1",
731
+ "rightkit-reframe": "0.2.1",
732
+ "rightkit-remote-compute": "0.2.2",
731
733
  "rightkit-remote-gateway": "0.1.5",
732
- "rightkit-repo-graph": "0.3.2",
734
+ "rightkit-repo-graph": "0.3.3",
733
735
  "rightkit-repo-graph-grammars": "0.1.1",
734
736
  "rightkit-research": "0.1.2",
735
- "rightkit-review": "0.6.0",
737
+ "rightkit-review": "0.6.1",
736
738
  "rightkit-roots": "0.3.0",
737
739
  "rightkit-sandbox": "0.7.0",
738
740
  "rightkit-scheduler": "0.3.1",
739
741
  "rightkit-search": "0.4.6",
740
742
  "rightkit-send": "0.4.2",
741
- "rightkit-shorts": "0.2.4",
743
+ "rightkit-shorts": "0.2.5",
742
744
  "rightkit-sidecar": "0.3.4",
743
745
  "rightkit-signal": "0.1.0",
744
- "rightkit-social-analytics": "0.3.0",
746
+ "rightkit-social-analytics": "0.3.1",
745
747
  "rightkit-social-inbox": "0.3.1",
746
- "rightkit-social-publish": "0.2.0",
748
+ "rightkit-social-publish": "0.2.1",
747
749
  "rightkit-speech-client": "0.5.0",
748
750
  "rightkit-spend": "0.2.4",
749
751
  "rightkit-sync": "0.4.4",
@@ -751,11 +753,11 @@
751
753
  "rightkit-sysmem": "0.1.0",
752
754
  "rightkit-system-monitor": "0.3.2",
753
755
  "rightkit-tauri-shell": "0.8.10",
754
- "rightkit-terminal-ui": "0.1.3",
756
+ "rightkit-terminal-ui": "0.1.4",
755
757
  "rightkit-text-polish": "0.1.4",
756
758
  "rightkit-theme": "0.1.1",
757
759
  "rightkit-time": "0.1.5",
758
- "rightkit-timeline": "0.1.1",
760
+ "rightkit-timeline": "0.1.2",
759
761
  "rightkit-transcript": "0.4.2",
760
762
  "rightkit-transcript-library": "0.1.8",
761
763
  "rightkit-tts": "0.3.2",
@@ -769,7 +771,7 @@
769
771
  "rightkit-web-extract": "0.1.2",
770
772
  "rightkit-web-session": "0.1.2",
771
773
  "rightkit-win-ui": "0.1.3",
772
- "rightkit-workflow": "0.2.3"
774
+ "rightkit-workflow": "0.2.4"
773
775
  },
774
776
  "swift": {
775
777
  "rightkit-swift": {
@@ -915,7 +917,7 @@
915
917
  "@rightkit/qa": "0.7.0",
916
918
  "@rightkit/qa-chrome": "0.1.12",
917
919
  "@rightkit/react-shell": "0.7.7",
918
- "@rightkit/release": "0.6.81",
920
+ "@rightkit/release": "0.6.83",
919
921
  "@rightkit/settings-ui": "0.7.4",
920
922
  "@rightkit/shell": "0.1.1",
921
923
  "@rightkit/tauri": "0.4.3",
@@ -926,6 +928,9 @@
926
928
  }
927
929
  },
928
930
  "legacyCargo": {
931
+ "rightkit-agent-engine-api-integrations": [
932
+ "0.1.5"
933
+ ],
929
934
  "rightkit-agent-engine-attention": [
930
935
  "0.1.3",
931
936
  "0.2.0"
@@ -934,14 +939,19 @@
934
939
  "0.1.3"
935
940
  ],
936
941
  "rightkit-agent-local-models": [
937
- "0.1.1"
942
+ "0.1.1",
943
+ "0.1.2"
938
944
  ],
939
945
  "rightkit-agent-plugins": [
940
- "0.1.2"
946
+ "0.1.2",
947
+ "0.1.3"
941
948
  ],
942
949
  "rightkit-agent-policy": [
943
950
  "0.2.3"
944
951
  ],
952
+ "rightkit-agent-recipes": [
953
+ "0.1.2"
954
+ ],
945
955
  "rightkit-agent-task-contract": [
946
956
  "0.1.1"
947
957
  ],
@@ -1039,7 +1049,8 @@
1039
1049
  "rightkit-cache": [
1040
1050
  "0.2.0",
1041
1051
  "0.2.2",
1042
- "0.2.3"
1052
+ "0.2.3",
1053
+ "0.2.4"
1043
1054
  ],
1044
1055
  "rightkit-channel-memory": [
1045
1056
  "0.1.0",
@@ -1049,7 +1060,8 @@
1049
1060
  "0.2.0",
1050
1061
  "0.2.1",
1051
1062
  "0.2.2",
1052
- "0.2.3"
1063
+ "0.2.3",
1064
+ "0.2.4"
1053
1065
  ],
1054
1066
  "rightkit-child-process": [
1055
1067
  "0.4.0",
@@ -1073,7 +1085,8 @@
1073
1085
  ],
1074
1086
  "rightkit-compose": [
1075
1087
  "0.1.0",
1076
- "0.2.0"
1088
+ "0.2.0",
1089
+ "0.2.3"
1077
1090
  ],
1078
1091
  "rightkit-context-runtime": [
1079
1092
  "0.1.4"
@@ -1152,7 +1165,8 @@
1152
1165
  ],
1153
1166
  "rightkit-dictation-app-runtime": [
1154
1167
  "0.2.0",
1155
- "0.2.2"
1168
+ "0.2.2",
1169
+ "0.3.1"
1156
1170
  ],
1157
1171
  "rightkit-dictation-command-host": [
1158
1172
  "0.3.0",
@@ -1169,7 +1183,8 @@
1169
1183
  "0.2.0"
1170
1184
  ],
1171
1185
  "rightkit-dictation-inference": [
1172
- "0.2.3"
1186
+ "0.2.3",
1187
+ "0.2.4"
1173
1188
  ],
1174
1189
  "rightkit-dictation-models": [
1175
1190
  "0.3.0",
@@ -1210,12 +1225,14 @@
1210
1225
  "0.4.0",
1211
1226
  "0.5.0",
1212
1227
  "0.6.0",
1213
- "0.6.1"
1228
+ "0.6.1",
1229
+ "0.7.0"
1214
1230
  ],
1215
1231
  "rightkit-ffmpeg": [
1216
1232
  "0.2.6",
1217
1233
  "0.2.9",
1218
- "0.2.10"
1234
+ "0.2.10",
1235
+ "0.3.2"
1219
1236
  ],
1220
1237
  "rightkit-file-watch": [
1221
1238
  "0.4.0",
@@ -1280,10 +1297,12 @@
1280
1297
  "0.3.5",
1281
1298
  "0.3.6",
1282
1299
  "0.3.7",
1283
- "0.3.8"
1300
+ "0.3.8",
1301
+ "0.4.0"
1284
1302
  ],
1285
1303
  "rightkit-identity": [
1286
- "0.1.0"
1304
+ "0.1.0",
1305
+ "0.1.2"
1287
1306
  ],
1288
1307
  "rightkit-job-queue": [
1289
1308
  "0.3.0",
@@ -1292,7 +1311,8 @@
1292
1311
  "0.4.0",
1293
1312
  "0.5.0",
1294
1313
  "0.5.1",
1295
- "0.6.0"
1314
+ "0.6.0",
1315
+ "0.6.1"
1296
1316
  ],
1297
1317
  "rightkit-jobs": [
1298
1318
  "0.2.1",
@@ -1390,7 +1410,8 @@
1390
1410
  ],
1391
1411
  "rightkit-motion": [
1392
1412
  "0.1.0",
1393
- "0.2.0"
1413
+ "0.2.0",
1414
+ "0.4.0"
1394
1415
  ],
1395
1416
  "rightkit-notch-ui": [
1396
1417
  "0.2.1",
@@ -1450,7 +1471,8 @@
1450
1471
  "0.1.0",
1451
1472
  "0.3.0",
1452
1473
  "0.3.2",
1453
- "0.3.3"
1474
+ "0.3.3",
1475
+ "0.3.5"
1454
1476
  ],
1455
1477
  "rightkit-platform-rules": [
1456
1478
  "0.1.0"
@@ -1461,7 +1483,8 @@
1461
1483
  "0.2.0",
1462
1484
  "0.2.1",
1463
1485
  "0.2.2",
1464
- "0.3.0"
1486
+ "0.3.0",
1487
+ "0.3.1"
1465
1488
  ],
1466
1489
  "rightkit-presence": [
1467
1490
  "0.1.1"
@@ -1499,7 +1522,8 @@
1499
1522
  "0.10.8",
1500
1523
  "0.10.10",
1501
1524
  "0.10.11",
1502
- "0.10.12"
1525
+ "0.10.12",
1526
+ "0.10.13"
1503
1527
  ],
1504
1528
  "rightkit-qa-driver": [
1505
1529
  "0.3.0",
@@ -1533,7 +1557,8 @@
1533
1557
  ],
1534
1558
  "rightkit-review": [
1535
1559
  "0.2.0",
1536
- "0.4.0"
1560
+ "0.4.0",
1561
+ "0.6.0"
1537
1562
  ],
1538
1563
  "rightkit-roots": [
1539
1564
  "0.2.1"
@@ -1704,7 +1729,8 @@
1704
1729
  ],
1705
1730
  "rightkit-workflow": [
1706
1731
  "0.1.0",
1707
- "0.2.0"
1732
+ "0.2.0",
1733
+ "0.2.3"
1708
1734
  ],
1709
1735
  "rightkit-owner-approvals": [
1710
1736
  "0.1.2"
@@ -1743,6 +1769,120 @@
1743
1769
  ],
1744
1770
  "rightkit-privileged-helper": [
1745
1771
  "0.2.0"
1772
+ ],
1773
+ "rightkit-app-lock": [
1774
+ "0.1.0"
1775
+ ],
1776
+ "rightkit-adapt": [
1777
+ "0.2.0"
1778
+ ],
1779
+ "rightkit-agent-transcript": [
1780
+ "0.1.3"
1781
+ ],
1782
+ "rightkit-context-protocol": [
1783
+ "0.2.0"
1784
+ ],
1785
+ "rightkit-memory-core": [
1786
+ "0.2.0"
1787
+ ],
1788
+ "rightkit-repo-graph": [
1789
+ "0.3.2"
1790
+ ],
1791
+ "rightkit-agent-config": [
1792
+ "0.1.3"
1793
+ ],
1794
+ "rightkit-agent-demo": [
1795
+ "0.2.0"
1796
+ ],
1797
+ "rightkit-agent-engine-history": [
1798
+ "0.1.4"
1799
+ ],
1800
+ "rightkit-agent-engine-runtime-resources": [
1801
+ "0.1.1"
1802
+ ],
1803
+ "rightkit-agent-engine-storage": [
1804
+ "0.3.0"
1805
+ ],
1806
+ "rightkit-agent-gateway": [
1807
+ "0.3.0"
1808
+ ],
1809
+ "rightkit-agent-orchestration": [
1810
+ "0.1.6"
1811
+ ],
1812
+ "rightkit-agent-telemetry": [
1813
+ "0.1.0"
1814
+ ],
1815
+ "rightkit-app-icon": [
1816
+ "0.1.0"
1817
+ ],
1818
+ "rightkit-app-update": [
1819
+ "0.2.0"
1820
+ ],
1821
+ "rightkit-autoedit": [
1822
+ "0.2.0"
1823
+ ],
1824
+ "rightkit-color": [
1825
+ "0.1.1"
1826
+ ],
1827
+ "rightkit-content-plan": [
1828
+ "0.2.1"
1829
+ ],
1830
+ "rightkit-context": [
1831
+ "0.2.0"
1832
+ ],
1833
+ "rightkit-document-workspace": [
1834
+ "0.2.0"
1835
+ ],
1836
+ "rightkit-evidence-effects": [
1837
+ "0.1.1"
1838
+ ],
1839
+ "rightkit-github": [
1840
+ "0.2.0"
1841
+ ],
1842
+ "rightkit-gpu": [
1843
+ "0.1.0"
1844
+ ],
1845
+ "rightkit-library": [
1846
+ "0.3.0"
1847
+ ],
1848
+ "rightkit-local-gen": [
1849
+ "0.1.3"
1850
+ ],
1851
+ "rightkit-mail-gateway": [
1852
+ "0.1.0"
1853
+ ],
1854
+ "rightkit-mail-store": [
1855
+ "0.2.1"
1856
+ ],
1857
+ "rightkit-media-fetch": [
1858
+ "0.2.0"
1859
+ ],
1860
+ "rightkit-media-gen-client": [
1861
+ "0.1.0"
1862
+ ],
1863
+ "rightkit-media-gen": [
1864
+ "0.2.3"
1865
+ ],
1866
+ "rightkit-reframe": [
1867
+ "0.2.0"
1868
+ ],
1869
+ "rightkit-remote-compute": [
1870
+ "0.2.1"
1871
+ ],
1872
+ "rightkit-shorts": [
1873
+ "0.2.4"
1874
+ ],
1875
+ "rightkit-social-analytics": [
1876
+ "0.3.0"
1877
+ ],
1878
+ "rightkit-social-publish": [
1879
+ "0.2.0"
1880
+ ],
1881
+ "rightkit-terminal-ui": [
1882
+ "0.1.3"
1883
+ ],
1884
+ "rightkit-timeline": [
1885
+ "0.1.1"
1746
1886
  ]
1747
1887
  }
1748
1888
  }
package/sign-windows.mjs CHANGED
@@ -93,15 +93,28 @@ export function windowsSigningContext({ processEnv = process.env, run = spawnSyn
93
93
  const stdout = String(result.stdout ?? "").trim();
94
94
  if (!EXPIRY.test(stdout)) return { ok: false, detail: `az printed something other than an expiry (not shown, ${stdout.length} chars)` };
95
95
  const expires = new Date(stdout.replace(" ", "T")).getTime();
96
- if (!Number.isFinite(expires) || expires < now + minMinutes * 60000) return { ok: false, detail: `the token expires at ${stdout} (local), under ${minMinutes} minutes from now` };
96
+ if (!Number.isFinite(expires)) return { ok: false, detail: `the token expiry ${stdout} (local) cannot be read` };
97
+ if (expires < now + minMinutes * 60000) return { ok: false, detail: `the token expires at ${stdout} (local), under ${minMinutes} minutes from now`, expires };
97
98
  return { ok: true, detail: stdout };
98
99
  };
99
100
  return { env, platform, exists, findFirst, signtoolCandidates, run: runTool, checkToken };
100
101
  }
101
102
 
102
103
  /** Before any copy, temp file or output: the signer's Azure CLI sign-in must yield a silent token. */
103
- export function requireSignerToken(ctx = windowsSigningContext({ quiet: true })) {
104
- const state = ctx.checkToken();
104
+ // Azure CLI (MSAL) hands back its cached access token until about five minutes before it expires and refreshes it only then, so a
105
+ // token found with less than the margin left is not a dead sign-in: asked again inside MSAL's refresh window, az returns a fresh one.
106
+ // Refusing there made every hourly token unusable for its last ten minutes. Wait for that window (at most the margin) and ask once more.
107
+ export const MSAL_REFRESH_WINDOW_MS = 4.5 * 60000;
108
+ const sleepSync = (ms) => { if (ms > 0) Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms); };
109
+ export function requireSignerToken(ctx = windowsSigningContext({ quiet: true }), { now = () => Date.now(), sleep = sleepSync, log = (line) => process.stderr.write(`${line}
110
+ `) } = {}) {
111
+ let state = ctx.checkToken();
112
+ if (!state.ok && Number.isFinite(state.expires) && state.expires > now()) {
113
+ const wait = Math.max(0, state.expires - MSAL_REFRESH_WINDOW_MS - now());
114
+ log(`[sign-windows] ${state.detail}; az refreshes a cached token only near its expiry, so waiting ${Math.ceil(wait / 1000)} s and asking again`);
115
+ sleep(wait);
116
+ state = ctx.checkToken();
117
+ }
105
118
  if (!state.ok) throw new WindowsSigningTokenError(state.detail);
106
119
  }
107
120