@rightkit/release 0.6.23 → 0.6.24

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.
@@ -174,12 +174,15 @@ export const HOST_ROWS = Object.freeze([
174
174
  if (failed(result)) found.push(`required command failed: pnpm --version failed: ${why(result)}`);
175
175
  else if (expected && result.stdout.trim() !== expected) found.push(`pnpm ${result.stdout.trim()} is installed but ${source} pins pnpm@${expected}; install the pinned version (corepack prepare pnpm@${expected} --activate)`);
176
176
  }
177
+ // The toolchain version probes run from the app's PRIMARY checkout counterpart on a door split: a managed cargo/rustc shim refuses a working directory
178
+ // outside the primary checkout (the snapshot: RK_NOT_PRIMARY_CHECKOUT, HeardRight Dell 2026-11-02), and the counterpart selects the same rust-toolchain.
179
+ const toolCwd = ctx.releaseSource?.mode === "snapshot" && typeof ctx.releaseSource.checkoutAppRoot === "string" && ctx.exists(ctx.releaseSource.checkoutAppRoot) ? ctx.releaseSource.checkoutAppRoot : ctx.root;
177
180
  if (present.has("cargo")) {
178
- const result = probe(ctx, "cargo", ["--version"]);
181
+ const result = probe(ctx, "cargo", ["--version"], { cwd: toolCwd });
179
182
  if (failed(result)) found.push(`required command failed: cargo --version failed: ${why(result)}`);
180
183
  }
181
184
  if (present.has("rustc")) {
182
- const result = probe(ctx, "rustc", ["-vV"]);
185
+ const result = probe(ctx, "rustc", ["-vV"], { cwd: toolCwd });
183
186
  if (failed(result)) found.push(`required command failed: rustc -vV failed: ${why(result)}`);
184
187
  else {
185
188
  const release = /^release:\s*(\S+)/m.exec(result.stdout)?.[1];
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
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",
@@ -49,7 +49,7 @@
49
49
  "@rightkit/qa": "0.6.2",
50
50
  "@rightkit/qa-chrome": "0.1.12",
51
51
  "@rightkit/react-shell": "0.7.2",
52
- "@rightkit/release": "0.6.23",
52
+ "@rightkit/release": "0.6.24",
53
53
  "@rightkit/settings-ui": "0.7.0",
54
54
  "@rightkit/social-ui": "0.1.0",
55
55
  "@rightkit/system-ui": "0.1.0",
package/stage-sidecar.mjs CHANGED
@@ -390,7 +390,8 @@ export function validateSidecarManifest(raw, { target, mode = "release" } = {})
390
390
  if (catalogSpec) entry.catalogSpec = catalogSpec;
391
391
  if (rawProbe !== undefined && typeof rawProbe !== "boolean") errors.push(`${where}: probe must be a boolean`);
392
392
  if (rawProbe === true) entry.probe = true;
393
- const sources = parseFfmpegSources(rawSources, where, errors, { universal: t.arch === "universal" });
393
+ // A row the platform filter skips (a Windows ffmpeg in a Mac universal staging) is not judged for universal slices, as the prebuilt rows are not (HeardRight Mac package, 2026-11-02).
394
+ const sources = parseFfmpegSources(rawSources, where, errors, { universal: !skipped && t.arch === "universal" });
394
395
  if (sources) entry.sources = sources;
395
396
  // `resourceDir` stages flat files (<resourceDir>/ffmpeg[.exe]); `bundleDir` is the key of the externalBin layout, so the two never combine.
396
397
  const resourceDir = rawResourceDir === undefined ? undefined : relativePath(rawResourceDir, `${where}: resourceDir`, errors);