@rightkit/release 0.6.54 → 0.6.56
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/README.md +5 -0
- package/bin/darwin/rightkit-swap +0 -0
- package/local-publish.mjs +7 -3
- package/ownership-mandatory-set.json +16 -0
- package/package-recipe-targets.mjs +16 -8
- package/package.json +1 -1
- package/publish-cargo.mjs +5 -5
- package/recipe-build.mjs +15 -2
- package/rightkit-versions.json +105 -104
- package/stage-commands.mjs +1 -1
- package/stage-sidecar.mjs +6 -4
package/README.md
CHANGED
|
@@ -447,6 +447,10 @@ Safeguards on the managed Windows package step (a temporary bridge until the bro
|
|
|
447
447
|
|
|
448
448
|
Only a target directory under a managed root (`resolveManagedRoots`: `RIGHTKIT_DATA_ROOT`, `RIGHTKIT_MANAGED_ROOT`, `RIGHTKIT_EXTERNAL_ROOT`, `RIGHTKIT_CONTROL_ROOT`, the legacy `D:\.rightkit-managed` / `/Volumes/D/.rightkit-managed`) is staged. Any other directory outside the app still fails closed: `the Cargo target directory <dir> is outside the app, so <path> cannot be addressed by an app-relative path; point CARGO_TARGET_DIR inside the app or declare the artifact paths yourself`.
|
|
449
449
|
|
|
450
|
+
### Required files (`targets.<platform>.requiredFiles`)
|
|
451
|
+
|
|
452
|
+
Optional `targets.win.requiredFiles` / `targets.mac.requiredFiles`: a non-empty list of app-relative file paths (no absolute path, no `..`) on a `winPackage` or `macPackage` target. After every `prepare` step has run (so sidecars staged by `stageSidecars` or `stage-sidecar` already exist) and before the Tauri build, recipe-build checks that each is a file and fails with `RECIPE_BUILD_REQUIRED_FILES_MISSING` naming every missing path. Absent key: nothing is checked. Digest pins stay with the catalog and `stage-sidecar`.
|
|
453
|
+
|
|
450
454
|
### macOS updater tarball from `macPackage`
|
|
451
455
|
|
|
452
456
|
`targets.mac.macPackage.updater: true` (or an app-relative `.tar.gz` path) adds a `create-mac-updater` command at the front of
|
|
@@ -798,6 +802,7 @@ Any app that ships more than the ffmpeg sidecar (MailRight: `mailright-engine`,
|
|
|
798
802
|
- **`remote` NSIS installers:** `extract: "bin/smartctl.exe", extractKind: "nsis", memberSha256: "<member sha256>"` (memberSha256 required) runs 7-Zip (`7z` on PATH, `7z.exe` under Program Files on win32; `RIGHTKIT_SEVEN_ZIP` or `deps.sevenZip` overrides) as `x -y -o<tmp> <installer> <member>` after the installer digest passes, verifies the member sha256, and stages it. A missing 7-Zip, failed extraction or any digest mismatch fails closed naming the installer sha, member, expected and actual digests. The receipt row records `memberSha256`, `archiveSha256`, `member` and `extractKind`.
|
|
799
803
|
- **`ffmpeg` mixed variants, fetch and probes (#491):** `variants: { ffmpeg: "export-ass" }` lets one entry take the export-ass ffmpeg with the decode ffprobe (a tool not named uses `variant`). `sources: { ffmpeg: { url, sha256, member }, ffprobe: {...} }` downloads the bytes the catalog only pins: the archive is digest-checked, the member is unpacked and its sha256 must equal the APPROVED catalog row's content digest, so a swapped archive can never stage. A source may instead be a local path (#692): `sources: { ffmpeg: { path: "../vendor/ffmpeg-lgpl", member?: "ffmpeg" } }` (also per arch: `{ aarch64: { path }, x86_64: { path } }`). `path` is relative to the app root and may step out of it; it names the binary itself or a directory holding `<tool>[.exe]` or `bin/<tool>[.exe]` (`member` renames the file). Nothing is downloaded and there is no archive digest, but the file must still equal the APPROVED catalog row content digest (`STAGE_SIDECAR_HASH_MISMATCH` otherwise); notices, probe and universal lipo are unchanged; a missing file is `STAGE_SIDECAR_BINARY_NOT_FOUND`. `probe: true` runs `-version` and `-encoders` on a staged binary this host can run: the configuration must say `--disable-gpl` and `--disable-nonfree` and must not enable GPL, nonfree, libx264, libx265, libxvid or libfdk-aac, and ffmpeg may not list those encoders (`STAGE_SIDECAR_FFMPEG_PROBE_FAILED`; another architecture or OS is recorded as `skipped-cross-target`). The catalog has no Windows `export-ass` row yet (only `export-ass-zimg`); that row belongs to the rightkit-ffmpeg crate.
|
|
800
804
|
- **`native-library` (plan item 2.8):** `{ kind: "native-library", library: "onnxruntime" | "directml" | "pdfium" | "whisper-cpp" | "ggml" | "sherpa-onnx", version, catalog, resourceDir?, licenseDir?, cacheDir?, as?, files?, companions?, source?: { dir }, platforms? }` stages the `approved` or `pinned` rows of `native-libraries.json` for the target (every serving row, or the `files` named) into `resourceDir`, with their notices and a receipt row per file. The bytes come from the row's digest-pinned archive or, for a row with no archive (the macOS whisper.cpp, ggml and sherpa-onnx builds), from `source: { dir }`; an archive file must match the whole-file sha256 and the content digest, a `source.dir` file the content digest (a re-signed copy passes, changed code does not, and a thin row refuses a universal Mach-O), and the staged bytes are checked again after the copy. A row's `companions` (the Windows onnxruntime row names DirectML) are staged beside it with a `companionOf` receipt row; `companions: false` opts out, and a file another entry also writes into `resourceDir` is refused before anything is written. A row with `hostProof: "never-run"` stages with a warning (stderr on the CLI) and carries the marker into the receipt. `kind: "onnxruntime"` stays the alias of `native-library` with `library: "onnxruntime"`. See `docs/STAGE-SIDECAR.md`.
|
|
805
|
+
- **`ffmpeg` without `sources`:** an entry with no `sources` and no `stage` command stages each tool from the catalog row's own pinned archive (`archive.url`, `archive.sha256`, `archive.member`; the digest is checked before use and the member against the row's content digest), as `native-library` does. A row with no archive is left to the app's own staging. A config that names `sources` behaves as above.
|
|
801
806
|
- **`ffmpeg` `resourceDir`:** `{ kind: "ffmpeg", resourceDir: "src-tauri/resources/runtime", ... }` stages `<resourceDir>/ffmpeg[.exe]` and `ffprobe[.exe]` (no target triple, not an externalBin; an already-staged file that matches its row is made executable) from the same approved rows, notices, `sources`, probe and universal lipo merge as the externalBin layout; `bundleDir` and `resourceDir` cannot be combined.
|
|
802
807
|
- **`universal-apple-darwin` for `ffmpeg`, `onnxruntime` and `native-library` (#492):** each arch row is staged thin under `.right-release/slices/<triple>/` and the files are lipo-merged into `<stageDir>/<tool>-universal-apple-darwin` (onnxruntime, native-library and an ffmpeg `resourceDir` entry: into `resourceDir`), requiring both archs and every row approved (onnxruntime and native-library also accept `pinned`). A macOS `universal` native-library row is staged once and checked with `lipo -archs`, with no merge. For `ffmpeg`, `{arch}`, `{triple}` and `{stageDir}` in the `stage` command's arguments name the slice (it runs once per slice), `sources` need the per-arch form `{ ffmpeg: { aarch64: {...}, x86_64: {...} } }`, one source offer lists both slices, and the receipt rows carry `slices`. A merged file identical to the staged one is not rewritten.
|
|
803
808
|
|
package/bin/darwin/rightkit-swap
CHANGED
|
Binary file
|
package/local-publish.mjs
CHANGED
|
@@ -33,7 +33,7 @@ import { recordPublished, stageSourceVersions, workspaceFeedOptions } from "./ri
|
|
|
33
33
|
import { prepareSwapHelper, SWAP_HELPER_CARGO_ARGS, SWAP_HELPER_PACKAGE } from "./swap-helper-bundle.mjs";
|
|
34
34
|
import { exclusionsFor, npmContentDigest } from "./pack-digest.mjs";
|
|
35
35
|
import { requireDoorRun, gateStateDir } from "./gate-stages.mjs";
|
|
36
|
-
import { crossCompileEnv, crossTargetsFor, oneOutput, scopedCrossTargets } from "./cross-targets.mjs";
|
|
36
|
+
import { crateRunsOn, crossCompileEnv, crossTargetsFor, oneOutput, scopedCrossTargets } from "./cross-targets.mjs";
|
|
37
37
|
import { crossFeatureSets, defaultCheckFeatureSets, hostFeatureSets } from "./feature-sets.mjs";
|
|
38
38
|
|
|
39
39
|
export const LOCAL_OPERATOR = "agent (local-build grant)";
|
|
@@ -137,7 +137,11 @@ const JOBS_SUBCOMMANDS = new Set(["test", "clippy", "check", "package"]);
|
|
|
137
137
|
// stage-commands.mjs, which derives what a qualification's signed receipts must show (the hosted admission and the gate share it).
|
|
138
138
|
export const qualifyFmtArgs = (unit) => ["fmt", "-p", unit, "--check"];
|
|
139
139
|
export const npmPackArgs = (packDir, scratch) => ["--dir", packDir, "pack", "--pack-destination", scratch];
|
|
140
|
-
|
|
140
|
+
// A qualify-only pack verifies (compiles) the archive on the packing host, except for a crate whose ci/gate.config.json `platforms` leave that host
|
|
141
|
+
// out (crateRunsOn): it cannot build there (rightkit-tts-qwen-sys has no bindings for linux), so the archive is packed --no-verify and its
|
|
142
|
+
// compile is proven by the hosts it is scoped to (publish.yml's native verify jobs build and run the sealed archive). `entry` is the crate's
|
|
143
|
+
// gate config entry and `platform` the packing host's process.platform; with no platform the pack verifies, as before.
|
|
144
|
+
export const cargoPackageArgs = (unit, qualifyOnly, entry, platform) => ["package", "--locked", ...(qualifyOnly && (platform === undefined || crateRunsOn(entry, platform)) ? [] : ["--no-verify"]), "-p", unit];
|
|
141
145
|
export const CARGO_METADATA_ARGS = Object.freeze(["metadata", "--offline", "--format-version", "1", "--no-deps"]);
|
|
142
146
|
export function withCargoJobs(args, jobs) {
|
|
143
147
|
return jobs !== undefined && JOBS_SUBCOMMANDS.has(args[0])
|
|
@@ -998,7 +1002,7 @@ async function* publishUnitStages(parsed, deps, batch) {
|
|
|
998
1002
|
} else {
|
|
999
1003
|
// A combined publish verifies once in `cargo publish`; detached qualification verifies here before
|
|
1000
1004
|
// its evidence leaves this host, so the publishing host can reuse that exact archive's proof.
|
|
1001
|
-
const packageArgs = cargoPackageArgs(unit, parsed.qualifyOnly);
|
|
1005
|
+
const packageArgs = cargoPackageArgs(unit, parsed.qualifyOnly, gateConfig?.rust?.[unit], platform);
|
|
1002
1006
|
packCommands.push(`cargo ${packageArgs.join(" ")}`);
|
|
1003
1007
|
const packed = await run("cargo", withCargoJobs(packageArgs, parsed.jobs), { cwd: unitPath, env });
|
|
1004
1008
|
if (packed.error || packed.status !== 0) refuse(`cargo package failed for ${unit}\n${tail(`${packed.stdout ?? ""}\n${packed.stderr ?? ""}`)}`);
|
|
@@ -710,6 +710,22 @@
|
|
|
710
710
|
]
|
|
711
711
|
}
|
|
712
712
|
]
|
|
713
|
+
},
|
|
714
|
+
"v2.2": {
|
|
715
|
+
"description": "TABLE1-AMENDMENT-v2.2 (draft): rightkit-roots joins M6 (Data location). Run mode, Suite, AppRoot and root cutover live there since rightkit-daemon 0.6; from rightkit-roots 0.2.0 it also resolves a flat app folder such as HeardRight's. Draft until apps move to rightkit-daemon 0.9: on older daemon pins the same code is inside the daemon, so enforcing this row earlier fails every app with nothing to adopt. Opt-in via --amendment v2.2.",
|
|
716
|
+
"rows": [
|
|
717
|
+
{
|
|
718
|
+
"id": "M6",
|
|
719
|
+
"profile": "desktop",
|
|
720
|
+
"owners": [
|
|
721
|
+
{
|
|
722
|
+
"name": "rightkit-roots",
|
|
723
|
+
"ecosystem": "cargo",
|
|
724
|
+
"min": "0.2.0"
|
|
725
|
+
}
|
|
726
|
+
]
|
|
727
|
+
}
|
|
728
|
+
]
|
|
713
729
|
}
|
|
714
730
|
}
|
|
715
731
|
}
|
|
@@ -54,6 +54,13 @@ function commandList(value, label) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/** `targets.<platform>.requiredFiles`: app-relative files that must exist after the prepare steps (checked by recipe-build before the build step). */
|
|
58
|
+
function requiredFilesSpec(value, label) {
|
|
59
|
+
if (value === undefined) return undefined;
|
|
60
|
+
if (!Array.isArray(value) || !value.length || value.some((file) => typeof file !== "string" || !file.trim())) fail(`${label}.requiredFiles must be a non-empty list of app-relative file paths`);
|
|
61
|
+
return value.map((file, index) => relativeInside(file, `${label}.requiredFiles[${index}]`));
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
/** The keys shared by winPackage and macPackage: profile, tauriConfig, prepare (and postBuild where allowed). */
|
|
58
65
|
function buildExtras(spec, label, { postBuild }) {
|
|
59
66
|
if (spec.profile !== undefined && (typeof spec.profile !== "string" || !PROFILE.test(spec.profile))) fail(`${label}.profile must be a Cargo profile name`);
|
|
@@ -79,13 +86,13 @@ const configArgs = (extras, appRoot, cwd) => (extras.tauriConfig ? ["--config",
|
|
|
79
86
|
* release.mjs runs ONE prePackage command: node recipe-build.mjs runs the built-in cleanup, prepare, the Tauri build,
|
|
80
87
|
* the artifact stability poll and postBuild in order. `cleanup` and `stability` are recipe-build plan sections.
|
|
81
88
|
*/
|
|
82
|
-
function recipeBuildCommand({ extras, build, env, cleanup, stability, stage, timeoutMs, verifySidecars, nativeHelpers, boundTargets }) {
|
|
89
|
+
function recipeBuildCommand({ extras, build, env, cleanup, stability, stage, timeoutMs, verifySidecars, nativeHelpers, boundTargets, requiredFiles }) {
|
|
83
90
|
const steps = [
|
|
84
91
|
...extras.prepare.map((step) => ({ phase: "prepare", ...step })),
|
|
85
92
|
{ phase: "build", cmd: build.cmd, args: build.args, cwd: build.cwd },
|
|
86
93
|
...extras.postBuild.map((step) => ({ phase: "postBuild", ...step })),
|
|
87
94
|
];
|
|
88
|
-
const plan = { version: 1, steps, ...(boundTargets?.length ? { boundTargets } : {}), ...(cleanup ? { cleanup } : {}), ...(stability ? { stability } : {}), ...(stage && (stage.pre?.length || stage.post?.length) ? { stage } : {}), ...(verifySidecars ? { verifySidecars } : {}), ...(nativeHelpers ? { nativeHelpers } : {}) };
|
|
95
|
+
const plan = { version: 1, steps, ...(boundTargets?.length ? { boundTargets } : {}), ...(cleanup ? { cleanup } : {}), ...(stability ? { stability } : {}), ...(stage && (stage.pre?.length || stage.post?.length) ? { stage } : {}), ...(verifySidecars ? { verifySidecars } : {}), ...(nativeHelpers ? { nativeHelpers } : {}), ...(requiredFiles?.length ? { requiredFiles } : {}) };
|
|
89
96
|
return { cmd: process.execPath, args: [RECIPE_BUILD, "--plan", JSON.stringify(plan)], env, ...(timeoutMs ? { timeoutMs } : {}) };
|
|
90
97
|
}
|
|
91
98
|
|
|
@@ -169,9 +176,9 @@ function splitTargetRootMapper({ spec, appRoot, cwd, resolveTargetRoot, label })
|
|
|
169
176
|
return mapper;
|
|
170
177
|
}
|
|
171
178
|
|
|
172
|
-
function winPrePackage({ extras, cwd, appRoot, triple, jobs, timeoutMs, cleanup, stability, stage, boundTargets }) {
|
|
179
|
+
function winPrePackage({ extras, cwd, appRoot, triple, jobs, timeoutMs, cleanup, stability, stage, boundTargets, requiredFiles }) {
|
|
173
180
|
const args = ["exec", "tauri", "build", "--no-bundle", "--target", triple, ...configArgs(extras, appRoot, cwd), ...buildCargoArgs(extras, jobs)];
|
|
174
|
-
return recipeBuildCommand({ extras, build: { cmd: "pnpm", args, cwd }, env: QUIET_TAURI_ENV, cleanup, stability, stage, timeoutMs, boundTargets });
|
|
181
|
+
return recipeBuildCommand({ extras, build: { cmd: "pnpm", args, cwd }, env: QUIET_TAURI_ENV, cleanup, stability, stage, timeoutMs, boundTargets, requiredFiles });
|
|
175
182
|
}
|
|
176
183
|
|
|
177
184
|
/** `targets.win.winPackage` → prePackage (`tauri build --no-bundle`) and package (`tauri bundle --bundles nsis`). */
|
|
@@ -233,7 +240,7 @@ export function expandWinPackageTarget(target, { appRoot, config = {}, env = pro
|
|
|
233
240
|
return {
|
|
234
241
|
...rest,
|
|
235
242
|
signingContract: "windows-raw-exe-authenticode-before-nsis-v1",
|
|
236
|
-
prePackage: winPrePackage({ extras, cwd, appRoot: plan.appRoot, triple: plan.triple, jobs, timeoutMs: timeout, cleanup, stability: { files: [rawExe] }, stage: prePackageStage, boundTargets: mapPath.bound }),
|
|
243
|
+
prePackage: winPrePackage({ extras, cwd, appRoot: plan.appRoot, triple: plan.triple, jobs, timeoutMs: timeout, cleanup, stability: { files: [rawExe] }, stage: prePackageStage, boundTargets: mapPath.bound, requiredFiles: requiredFilesSpec(target.requiredFiles, "targets.win") }),
|
|
237
244
|
package: bundleCommand,
|
|
238
245
|
sign: { ...(target.sign ?? {}), prePackageFiles: [rawExe], files: [installerFile] },
|
|
239
246
|
recipe: { kind: "winPackage", productName: plan.productName, updater: plan.updater },
|
|
@@ -383,7 +390,8 @@ export function expandMacPackageTarget(target, { appRoot, config = {}, env = pro
|
|
|
383
390
|
// An entry inside another staged entry (a file within the .app) is covered by copying the outer one.
|
|
384
391
|
const macEntries = [...mapPath.staged.values()].filter((entry) => ![...mapPath.staged.values()].some((outer) => outer !== entry && entry.to.startsWith(`${outer.to}/`)));
|
|
385
392
|
const macStage = macEntries.length ? { post: macEntries.map((entry) => ({ ...entry, fresh: true })), resolve: mapPath.resolve() } : undefined;
|
|
386
|
-
const
|
|
393
|
+
const requiredFiles = requiredFilesSpec(target.requiredFiles, "targets.mac");
|
|
394
|
+
const wrapped = extras.prepare.length || extras.postBuild.length || cleanup || macStage || helpers || requiredFiles;
|
|
387
395
|
const forceArch = helpers && triple !== "universal-apple-darwin" ? (triple === "aarch64-apple-darwin" ? "arm64" : "x86_64") : undefined;
|
|
388
396
|
const nativeHelpersPlan = helpers ? { app, helpers, ...(config?.version ? { version: config.version } : {}), ...(forceArch ? { forceArch } : {}), configuration: "release" } : undefined;
|
|
389
397
|
const verifySidecars = sidecars && triple === "universal-apple-darwin" ? { receipt: sidecars.receipt, target: triple } : undefined;
|
|
@@ -400,8 +408,8 @@ export function expandMacPackageTarget(target, { appRoot, config = {}, env = pro
|
|
|
400
408
|
...rest,
|
|
401
409
|
...postSign,
|
|
402
410
|
prePackage: prebuilt
|
|
403
|
-
? (wrapped ? recipeBuildCommand({ extras, build: { cmd: target.prePackage.cmd, args: target.prePackage.args ?? [], ...(target.prePackage.cwd === undefined ? {} : { cwd: target.prePackage.cwd }) }, env: target.prePackage.env ?? {}, cleanup, stage: macStage, boundTargets: mapPath.bound }) : target.prePackage)
|
|
404
|
-
: wrapped ? recipeBuildCommand({ extras, build: { cmd: "pnpm", args, cwd }, env: QUIET_TAURI_ENV, cleanup, stage: macStage, verifySidecars, nativeHelpers: nativeHelpersPlan, boundTargets: mapPath.bound }) : { cmd: "pnpm", args, cwd, env: QUIET_TAURI_ENV },
|
|
411
|
+
? (wrapped ? recipeBuildCommand({ extras, build: { cmd: target.prePackage.cmd, args: target.prePackage.args ?? [], ...(target.prePackage.cwd === undefined ? {} : { cwd: target.prePackage.cwd }) }, env: target.prePackage.env ?? {}, cleanup, stage: macStage, boundTargets: mapPath.bound, requiredFiles }) : target.prePackage)
|
|
412
|
+
: wrapped ? recipeBuildCommand({ extras, build: { cmd: "pnpm", args, cwd }, env: QUIET_TAURI_ENV, cleanup, stage: macStage, verifySidecars, nativeHelpers: nativeHelpersPlan, boundTargets: mapPath.bound, requiredFiles }) : { cmd: "pnpm", args, cwd, env: QUIET_TAURI_ENV },
|
|
405
413
|
// Helpers are signed by release.mjs inside-out through sign.nestedCode (deepest path first, hardened runtime, each helper's own entitlements), then the app.
|
|
406
414
|
sign: { ...(target.sign ?? {}), ...(helpers ? { nestedCode: { ...nativeHelperNestedCode(helpers), ...(target.sign?.nestedCode ?? {}) } } : {}), prePackageFiles },
|
|
407
415
|
notarize: { ...target.notarize, app, appBeforePackage: true },
|
package/package.json
CHANGED
package/publish-cargo.mjs
CHANGED
|
@@ -415,16 +415,16 @@ export async function runCargoPublish(options, execute = (_command, args, settin
|
|
|
415
415
|
if (status.error || status.status !== 0 || String(status.stdout ?? "").trim()) throw new Error("--from-evidence requires clean crate Cargo.toml, Cargo.lock and ci gate config (ci/gate.config.json, ci/asset-gated.json)");
|
|
416
416
|
const proofHost = singleHostOfPolicy(gate.evidence) ?? "darwin";
|
|
417
417
|
const runs = gate.evidence.runs.filter((run) => run?.host?.os === proofHost);
|
|
418
|
-
const command = `cargo package --locked -p ${options.crate}`;
|
|
419
|
-
if (!runs.length || !runs.every((run) => run.steps?.some((step) => step.ok === true && step.command === command))) {
|
|
420
|
-
throw new Error("--from-evidence requires a verified cargo package --locked receipt for this artifact");
|
|
421
|
-
}
|
|
422
418
|
// Load the shared planner after module initialization: local-publish itself imports this publisher.
|
|
423
419
|
// Validate the complete current qualification matrix, not merely one passing test and lint command.
|
|
424
|
-
const { localTestPlan } = await import("./local-publish.mjs");
|
|
420
|
+
const { cargoPackageArgs, localTestPlan } = await import("./local-publish.mjs");
|
|
425
421
|
let config;
|
|
426
422
|
try { config = JSON.parse(fs.readFileSync(path.join(options.workspaceRoot, "ci", "gate.config.json"), "utf8")); }
|
|
427
423
|
catch { throw new Error("--from-evidence cannot read current ci/gate.config.json"); }
|
|
424
|
+
const command = `cargo ${cargoPackageArgs(options.crate, true, config?.rust?.[options.crate], proofHost).join(" ")}`;
|
|
425
|
+
if (!runs.length || !runs.every((run) => run.steps?.some((step) => step.ok === true && step.command === command))) {
|
|
426
|
+
throw new Error("--from-evidence requires a verified cargo package --locked receipt for this artifact");
|
|
427
|
+
}
|
|
428
428
|
for (const run of runs) {
|
|
429
429
|
if (!Array.isArray(run.steps) || run.steps.some((step) => step?.ok !== true || (step.failed ?? 0) !== 0)) {
|
|
430
430
|
throw new Error("--from-evidence refuses an unsuccessful qualification step");
|
package/recipe-build.mjs
CHANGED
|
@@ -53,7 +53,7 @@ export class RecipeBuildError extends Error {
|
|
|
53
53
|
const fail = (code, message, details) => { throw new RecipeBuildError(code, message, details); };
|
|
54
54
|
const isObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
55
55
|
const STEP_KEYS = new Set(["phase", "cmd", "args", "cwd", "env"]);
|
|
56
|
-
const PLAN_KEYS = new Set(["version", "steps", "cleanup", "stability", "stage", "verifySidecars", "nativeHelpers", "boundTargets"]);
|
|
56
|
+
const PLAN_KEYS = new Set(["version", "steps", "cleanup", "stability", "stage", "verifySidecars", "nativeHelpers", "boundTargets", "requiredFiles"]);
|
|
57
57
|
const VERIFY_SIDECARS_KEYS = new Set(["receipt", "target"]);
|
|
58
58
|
const NATIVE_HELPERS_KEYS = new Set(["app", "helpers", "version", "forceArch", "configuration"]);
|
|
59
59
|
const UNIVERSAL_TRIPLE = "universal-apple-darwin";
|
|
@@ -188,6 +188,14 @@ function validateStage(value, errors) {
|
|
|
188
188
|
return out;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
/** `requiredFiles`: app-relative files that must exist (as files) once the prepare steps have staged everything, before the build step. */
|
|
192
|
+
function validateRequiredFiles(value, errors) {
|
|
193
|
+
if (value === undefined) return undefined;
|
|
194
|
+
if (!Array.isArray(value) || !value.length) { errors.push("requiredFiles must be a non-empty list of app-relative file paths"); return undefined; }
|
|
195
|
+
const files = value.map((file, index) => insideApp(file, `requiredFiles[${index}]`, errors, { strict: true }));
|
|
196
|
+
return files.every(Boolean) ? [...new Set(files)] : undefined;
|
|
197
|
+
}
|
|
198
|
+
|
|
191
199
|
function validateVerifySidecars(value, errors) {
|
|
192
200
|
if (value === undefined) return undefined;
|
|
193
201
|
if (!isObject(value)) { errors.push("verifySidecars must be { receipt, target }"); return undefined; }
|
|
@@ -244,9 +252,10 @@ export function validateRecipePlan(plan) {
|
|
|
244
252
|
const stage = validateStage(plan.stage, errors);
|
|
245
253
|
const verifySidecars = validateVerifySidecars(plan.verifySidecars, errors);
|
|
246
254
|
const nativeHelpers = validateNativeHelpersSection(plan.nativeHelpers, errors, boundTargets ?? []);
|
|
255
|
+
const requiredFiles = validateRequiredFiles(plan.requiredFiles, errors);
|
|
247
256
|
if (boundTargets && stage && (stage.pre?.length || stage.post?.length)) errors.push("a plan that binds Cargo targets (a door split) plans no stage copies: the build output is read and signed in place (rightkit#924 copies are zero)");
|
|
248
257
|
if (errors.length) fail("RECIPE_BUILD_PLAN_INVALID", `invalid recipe plan:\n${errors.map((line) => `- ${line}`).join("\n")}`, { errors });
|
|
249
|
-
return { version: RECIPE_BUILD_PLAN_VERSION, steps, ...(boundTargets ? { boundTargets } : {}), ...(cleanup ? { cleanup } : {}), ...(stability ? { stability } : {}), ...(stage ? { stage } : {}), ...(verifySidecars ? { verifySidecars } : {}), ...(nativeHelpers ? { nativeHelpers } : {}) };
|
|
258
|
+
return { version: RECIPE_BUILD_PLAN_VERSION, steps, ...(boundTargets ? { boundTargets } : {}), ...(cleanup ? { cleanup } : {}), ...(stability ? { stability } : {}), ...(stage ? { stage } : {}), ...(verifySidecars ? { verifySidecars } : {}), ...(nativeHelpers ? { nativeHelpers } : {}), ...(requiredFiles ? { requiredFiles } : {}) };
|
|
250
259
|
}
|
|
251
260
|
|
|
252
261
|
/** This package's own right-release entry: the door's RightKit, whatever the app's node_modules holds. */
|
|
@@ -454,6 +463,10 @@ export function runRecipeBuild(rawPlan, { appRoot, env = process.env, platform =
|
|
|
454
463
|
// Immediately before the step that embeds the real EXE: it must be exactly the signed in-app copy.
|
|
455
464
|
verifyReal("after the copy-back, before the build step");
|
|
456
465
|
}
|
|
466
|
+
if (step.phase === "build" && plan.requiredFiles) {
|
|
467
|
+
const missing = plan.requiredFiles.filter((file) => { try { return !(fs?.statSync ?? nodeStatSync)(path.resolve(appRoot, file)).isFile(); } catch { return true; } });
|
|
468
|
+
if (missing.length) fail("RECIPE_BUILD_REQUIRED_FILES_MISSING", `required files are missing after the prepare steps (${missing.length}): ${missing.join(", ")}; the build is invalid without them`, { missing });
|
|
469
|
+
}
|
|
457
470
|
if (step.phase === "build" && plan.verifySidecars) verifyUniversalSidecars(plan.verifySidecars, { appRoot, spawnSync, env, log, ...(fs?.readFileSync ? { readFile: fs.readFileSync } : {}) });
|
|
458
471
|
const stepArgs = lockedTauriArgs(step.args, env);
|
|
459
472
|
const launch = resolveLaunch({ cmd: step.cmd, args: stepArgs, platform, env });
|
package/rightkit-versions.json
CHANGED
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"@rightkit/updates": "0.2.3"
|
|
14
14
|
},
|
|
15
15
|
"stagedNpm": {
|
|
16
|
-
"@rightkit/agent-ui-approvals": "0.2.
|
|
16
|
+
"@rightkit/agent-ui-approvals": "0.2.1",
|
|
17
17
|
"@rightkit/agent-ui-components": "0.1.1",
|
|
18
|
-
"@rightkit/agent-ui-core": "0.1.
|
|
18
|
+
"@rightkit/agent-ui-core": "0.1.2",
|
|
19
19
|
"@rightkit/agent-ui-hooks": "0.1.0",
|
|
20
20
|
"@rightkit/agent-ui-settings": "0.1.0",
|
|
21
21
|
"@rightkit/agent-ui-web": "0.1.0",
|
|
22
22
|
"@rightkit/agent-ui-workbench": "0.1.0",
|
|
23
|
-
"@rightkit/app-update": "0.4.
|
|
23
|
+
"@rightkit/app-update": "0.4.4",
|
|
24
24
|
"@rightkit/ax": "0.3.2",
|
|
25
25
|
"@rightkit/blender-worker": "0.1.1",
|
|
26
26
|
"@rightkit/ci": "0.3.2",
|
|
27
27
|
"@rightkit/config": "0.1.1",
|
|
28
|
-
"@rightkit/dictation-ui": "0.2.
|
|
28
|
+
"@rightkit/dictation-ui": "0.2.1",
|
|
29
29
|
"@rightkit/doc-render": "0.2.2",
|
|
30
30
|
"@rightkit/document-core": "0.2.0",
|
|
31
|
-
"@rightkit/document-workspace": "0.2.
|
|
31
|
+
"@rightkit/document-workspace": "0.2.1",
|
|
32
32
|
"@rightkit/docx-editor": "0.1.2",
|
|
33
33
|
"@rightkit/hooks": "0.1.2",
|
|
34
34
|
"@rightkit/html-editor": "0.2.0",
|
|
@@ -36,32 +36,32 @@
|
|
|
36
36
|
"@rightkit/issues-tracker": "0.1.0",
|
|
37
37
|
"@rightkit/legal": "0.6.3",
|
|
38
38
|
"@rightkit/legal-ui": "0.4.2",
|
|
39
|
-
"@rightkit/library-ui": "0.2.
|
|
40
|
-
"@rightkit/license": "0.3.
|
|
39
|
+
"@rightkit/library-ui": "0.2.1",
|
|
40
|
+
"@rightkit/license": "0.3.2",
|
|
41
41
|
"@rightkit/logs": "0.1.6",
|
|
42
|
-
"@rightkit/mail-ui": "0.2.
|
|
42
|
+
"@rightkit/mail-ui": "0.2.1",
|
|
43
43
|
"@rightkit/markdown-editor": "0.2.0",
|
|
44
|
-
"@rightkit/media-gen-ui": "0.2.
|
|
44
|
+
"@rightkit/media-gen-ui": "0.2.1",
|
|
45
45
|
"@rightkit/media-ui": "0.3.6",
|
|
46
|
-
"@rightkit/onboarding": "0.6.
|
|
46
|
+
"@rightkit/onboarding": "0.6.5",
|
|
47
47
|
"@rightkit/outdated": "0.3.1",
|
|
48
48
|
"@rightkit/pdf-ui": "0.3.0",
|
|
49
49
|
"@rightkit/platform-ui": "0.4.1",
|
|
50
50
|
"@rightkit/qa": "0.7.0",
|
|
51
51
|
"@rightkit/qa-chrome": "0.1.12",
|
|
52
|
-
"@rightkit/react-shell": "0.7.
|
|
53
|
-
"@rightkit/release": "0.6.
|
|
52
|
+
"@rightkit/react-shell": "0.7.4",
|
|
53
|
+
"@rightkit/release": "0.6.56",
|
|
54
54
|
"@rightkit/send-ui": "0.1.0",
|
|
55
|
-
"@rightkit/settings-ui": "0.7.
|
|
55
|
+
"@rightkit/settings-ui": "0.7.2",
|
|
56
56
|
"@rightkit/social-ui": "0.1.0",
|
|
57
|
-
"@rightkit/system-ui": "0.2.
|
|
58
|
-
"@rightkit/tauri": "0.4.
|
|
57
|
+
"@rightkit/system-ui": "0.2.1",
|
|
58
|
+
"@rightkit/tauri": "0.4.1",
|
|
59
59
|
"@rightkit/tauri-shell": "0.1.4",
|
|
60
60
|
"@rightkit/terminal-ui": "0.1.0",
|
|
61
|
-
"@rightkit/theme": "0.3.
|
|
62
|
-
"@rightkit/video-ui": "0.2.
|
|
61
|
+
"@rightkit/theme": "0.3.3",
|
|
62
|
+
"@rightkit/video-ui": "0.2.1",
|
|
63
63
|
"@rightkit/waitlist-worker": "0.1.0",
|
|
64
|
-
"@rightkit/workspace-ui": "0.2.
|
|
64
|
+
"@rightkit/workspace-ui": "0.2.1"
|
|
65
65
|
},
|
|
66
66
|
"legacyNpm": {
|
|
67
67
|
"@rightkit/app-shell": [
|
|
@@ -496,13 +496,14 @@
|
|
|
496
496
|
},
|
|
497
497
|
"stagedCargo": {
|
|
498
498
|
"rightkit-adapt": "0.2.0",
|
|
499
|
-
"rightkit-adapt-taste": "0.1.
|
|
499
|
+
"rightkit-adapt-taste": "0.1.3",
|
|
500
|
+
"rightkit-agent-coding-tools": "0.1.0",
|
|
500
501
|
"rightkit-agent-config": "0.1.0",
|
|
501
502
|
"rightkit-agent-daemon": "0.1.0",
|
|
502
|
-
"rightkit-agent-demo": "0.
|
|
503
|
+
"rightkit-agent-demo": "0.2.0",
|
|
503
504
|
"rightkit-agent-engine": "0.2.0",
|
|
504
|
-
"rightkit-agent-engine-api-integrations": "0.1.
|
|
505
|
-
"rightkit-agent-engine-api-platform": "0.1.
|
|
505
|
+
"rightkit-agent-engine-api-integrations": "0.1.3",
|
|
506
|
+
"rightkit-agent-engine-api-platform": "0.1.3",
|
|
506
507
|
"rightkit-agent-engine-api-sessions": "0.1.1",
|
|
507
508
|
"rightkit-agent-engine-api-workflows": "0.2.0",
|
|
508
509
|
"rightkit-agent-engine-attention": "0.1.2",
|
|
@@ -511,7 +512,7 @@
|
|
|
511
512
|
"rightkit-agent-engine-history": "0.1.2",
|
|
512
513
|
"rightkit-agent-engine-mobile-runtime": "0.1.1",
|
|
513
514
|
"rightkit-agent-engine-protocol": "0.2.0",
|
|
514
|
-
"rightkit-agent-engine-runtime-middleware": "0.1.
|
|
515
|
+
"rightkit-agent-engine-runtime-middleware": "0.1.3",
|
|
515
516
|
"rightkit-agent-engine-runtime-resources": "0.1.1",
|
|
516
517
|
"rightkit-agent-engine-storage": "0.1.2",
|
|
517
518
|
"rightkit-agent-engine-tasks": "0.1.2",
|
|
@@ -528,22 +529,22 @@
|
|
|
528
529
|
"rightkit-agent-skills": "0.1.0",
|
|
529
530
|
"rightkit-agent-task-contract": "0.1.0",
|
|
530
531
|
"rightkit-agent-telemetry": "0.1.0",
|
|
531
|
-
"rightkit-agent-tools": "0.
|
|
532
|
-
"rightkit-agent-transcript": "0.1.
|
|
532
|
+
"rightkit-agent-tools": "0.4.0",
|
|
533
|
+
"rightkit-agent-transcript": "0.1.3",
|
|
533
534
|
"rightkit-agents": "0.2.5",
|
|
534
535
|
"rightkit-ai-accounts": "0.1.1",
|
|
535
536
|
"rightkit-android": "0.3.1",
|
|
536
|
-
"rightkit-app-host": "0.1.
|
|
537
|
+
"rightkit-app-host": "0.1.2",
|
|
537
538
|
"rightkit-app-lock": "0.1.0",
|
|
538
|
-
"rightkit-app-manager": "0.
|
|
539
|
-
"rightkit-app-settings": "0.4.
|
|
540
|
-
"rightkit-app-update": "0.
|
|
539
|
+
"rightkit-app-manager": "0.2.0",
|
|
540
|
+
"rightkit-app-settings": "0.4.1",
|
|
541
|
+
"rightkit-app-update": "0.2.0",
|
|
541
542
|
"rightkit-apple-ops": "0.2.0",
|
|
542
|
-
"rightkit-approvals": "0.2.
|
|
543
|
-
"rightkit-asr": "0.
|
|
543
|
+
"rightkit-approvals": "0.2.1",
|
|
544
|
+
"rightkit-asr": "0.5.0",
|
|
544
545
|
"rightkit-audio": "0.3.4",
|
|
545
546
|
"rightkit-autoedit": "0.2.0",
|
|
546
|
-
"rightkit-automation": "0.
|
|
547
|
+
"rightkit-automation": "0.7.0",
|
|
547
548
|
"rightkit-autostart": "0.1.0",
|
|
548
549
|
"rightkit-bench": "0.2.1",
|
|
549
550
|
"rightkit-bot-messaging": "0.1.2",
|
|
@@ -552,61 +553,61 @@
|
|
|
552
553
|
"rightkit-captions": "0.1.1",
|
|
553
554
|
"rightkit-catalog": "0.1.0",
|
|
554
555
|
"rightkit-channel-memory": "0.2.3",
|
|
555
|
-
"rightkit-chat-bridge": "0.
|
|
556
|
-
"rightkit-child-process": "0.5.
|
|
556
|
+
"rightkit-chat-bridge": "0.2.0",
|
|
557
|
+
"rightkit-child-process": "0.5.12",
|
|
557
558
|
"rightkit-clipboard": "0.1.0",
|
|
558
|
-
"rightkit-clipboard-history": "0.
|
|
559
|
-
"rightkit-code-audit-commands": "0.
|
|
560
|
-
"rightkit-code-audit-engine": "0.
|
|
559
|
+
"rightkit-clipboard-history": "0.3.0",
|
|
560
|
+
"rightkit-code-audit-commands": "0.2.0",
|
|
561
|
+
"rightkit-code-audit-engine": "0.2.0",
|
|
561
562
|
"rightkit-code-audit-provider-sdk": "0.1.1",
|
|
562
|
-
"rightkit-code-audit-qualification": "0.
|
|
563
|
+
"rightkit-code-audit-qualification": "0.2.0",
|
|
563
564
|
"rightkit-color": "0.1.1",
|
|
564
565
|
"rightkit-compose": "0.2.3",
|
|
565
566
|
"rightkit-compositor": "0.2.1",
|
|
566
567
|
"rightkit-connector-gen": "0.1.0",
|
|
567
|
-
"rightkit-content-plan": "0.
|
|
568
|
+
"rightkit-content-plan": "0.2.0",
|
|
568
569
|
"rightkit-content-proof": "0.1.1",
|
|
569
|
-
"rightkit-context": "0.
|
|
570
|
-
"rightkit-context-client": "0.
|
|
571
|
-
"rightkit-context-core": "0.
|
|
572
|
-
"rightkit-context-federation": "0.
|
|
573
|
-
"rightkit-context-protocol": "0.
|
|
574
|
-
"rightkit-context-provider-sdk": "0.
|
|
570
|
+
"rightkit-context": "0.2.0",
|
|
571
|
+
"rightkit-context-client": "0.2.0",
|
|
572
|
+
"rightkit-context-core": "0.2.0",
|
|
573
|
+
"rightkit-context-federation": "0.2.0",
|
|
574
|
+
"rightkit-context-protocol": "0.2.0",
|
|
575
|
+
"rightkit-context-provider-sdk": "0.2.0",
|
|
575
576
|
"rightkit-context-runtime": "0.1.1",
|
|
576
577
|
"rightkit-contracts": "0.1.11",
|
|
577
578
|
"rightkit-contrast": "0.1.0",
|
|
578
|
-
"rightkit-crash": "0.
|
|
579
|
-
"rightkit-credentials": "0.5.
|
|
579
|
+
"rightkit-crash": "0.4.0",
|
|
580
|
+
"rightkit-credentials": "0.5.2",
|
|
580
581
|
"rightkit-crypto": "0.1.3",
|
|
581
|
-
"rightkit-daemon": "0.
|
|
582
|
+
"rightkit-daemon": "0.9.0",
|
|
582
583
|
"rightkit-daemon-remote": "0.1.0",
|
|
583
|
-
"rightkit-db": "0.5.
|
|
584
|
+
"rightkit-db": "0.5.8",
|
|
584
585
|
"rightkit-decimal": "0.1.0",
|
|
585
586
|
"rightkit-deep-link": "0.1.1",
|
|
586
|
-
"rightkit-desktop-tweaks": "0.
|
|
587
|
-
"rightkit-device": "0.
|
|
587
|
+
"rightkit-desktop-tweaks": "0.3.0",
|
|
588
|
+
"rightkit-device": "0.5.0",
|
|
588
589
|
"rightkit-device-link": "0.1.0",
|
|
589
590
|
"rightkit-device-link-types": "0.1.2",
|
|
590
|
-
"rightkit-dictation-app-runtime": "0.
|
|
591
|
-
"rightkit-dictation-command-host": "0.
|
|
592
|
-
"rightkit-dictation-core": "0.
|
|
593
|
-
"rightkit-dictation-engine": "0.
|
|
594
|
-
"rightkit-dictation-ffi": "0.
|
|
595
|
-
"rightkit-dictation-inference": "0.
|
|
596
|
-
"rightkit-dictation-models": "0.
|
|
597
|
-
"rightkit-dictation-runtime": "0.
|
|
598
|
-
"rightkit-dictation-tauri": "0.
|
|
599
|
-
"rightkit-dictation-telemetry": "0.
|
|
600
|
-
"rightkit-dictation-text-pipeline": "0.
|
|
601
|
-
"rightkit-disk-cleanup": "0.
|
|
591
|
+
"rightkit-dictation-app-runtime": "0.2.0",
|
|
592
|
+
"rightkit-dictation-command-host": "0.2.0",
|
|
593
|
+
"rightkit-dictation-core": "0.3.0",
|
|
594
|
+
"rightkit-dictation-engine": "0.2.0",
|
|
595
|
+
"rightkit-dictation-ffi": "0.2.0",
|
|
596
|
+
"rightkit-dictation-inference": "0.2.0",
|
|
597
|
+
"rightkit-dictation-models": "0.2.0",
|
|
598
|
+
"rightkit-dictation-runtime": "0.2.0",
|
|
599
|
+
"rightkit-dictation-tauri": "0.2.0",
|
|
600
|
+
"rightkit-dictation-telemetry": "0.2.0",
|
|
601
|
+
"rightkit-dictation-text-pipeline": "0.2.0",
|
|
602
|
+
"rightkit-disk-cleanup": "0.2.0",
|
|
602
603
|
"rightkit-docs": "0.1.4",
|
|
603
604
|
"rightkit-doctor": "0.2.0",
|
|
604
|
-
"rightkit-document-workspace": "0.
|
|
605
|
-
"rightkit-embed": "0.
|
|
605
|
+
"rightkit-document-workspace": "0.2.0",
|
|
606
|
+
"rightkit-embed": "0.7.0",
|
|
606
607
|
"rightkit-engine-host": "0.2.0",
|
|
607
608
|
"rightkit-evidence": "0.1.1",
|
|
608
|
-
"rightkit-evidence-application": "0.
|
|
609
|
-
"rightkit-evidence-commands": "0.
|
|
609
|
+
"rightkit-evidence-application": "0.2.0",
|
|
610
|
+
"rightkit-evidence-commands": "0.2.0",
|
|
610
611
|
"rightkit-evidence-contracts": "0.1.1",
|
|
611
612
|
"rightkit-evidence-decisions": "0.1.1",
|
|
612
613
|
"rightkit-evidence-effects": "0.1.1",
|
|
@@ -615,49 +616,49 @@
|
|
|
615
616
|
"rightkit-feed": "0.1.0",
|
|
616
617
|
"rightkit-ffmpeg": "0.3.1",
|
|
617
618
|
"rightkit-file-watch": "0.4.4",
|
|
618
|
-
"rightkit-fs": "0.4.
|
|
619
|
+
"rightkit-fs": "0.4.15",
|
|
619
620
|
"rightkit-fsindex": "0.6.2",
|
|
620
|
-
"rightkit-github": "0.
|
|
621
|
-
"rightkit-google-apis": "0.
|
|
621
|
+
"rightkit-github": "0.2.0",
|
|
622
|
+
"rightkit-google-apis": "0.2.0",
|
|
622
623
|
"rightkit-gpu": "0.1.0",
|
|
623
624
|
"rightkit-hooks": "0.2.5",
|
|
624
625
|
"rightkit-hotkeys": "0.1.4",
|
|
625
|
-
"rightkit-http": "0.
|
|
626
|
+
"rightkit-http": "0.4.0",
|
|
626
627
|
"rightkit-i18n": "0.1.0",
|
|
627
628
|
"rightkit-identity": "0.1.2",
|
|
628
|
-
"rightkit-instance": "0.
|
|
629
|
-
"rightkit-job-queue": "0.
|
|
629
|
+
"rightkit-instance": "0.2.0",
|
|
630
|
+
"rightkit-job-queue": "0.6.0",
|
|
630
631
|
"rightkit-launcher": "0.2.0",
|
|
631
632
|
"rightkit-launcher-win": "0.1.0",
|
|
632
633
|
"rightkit-library": "0.2.0",
|
|
633
|
-
"rightkit-license": "0.
|
|
634
|
+
"rightkit-license": "0.3.0",
|
|
634
635
|
"rightkit-llm": "0.3.6",
|
|
635
636
|
"rightkit-local-gen": "0.1.2",
|
|
636
|
-
"rightkit-logs": "0.4.
|
|
637
|
+
"rightkit-logs": "0.4.1",
|
|
637
638
|
"rightkit-mail": "0.1.2",
|
|
638
639
|
"rightkit-mail-gateway": "0.1.0",
|
|
639
|
-
"rightkit-mail-store": "0.
|
|
640
|
+
"rightkit-mail-store": "0.2.0",
|
|
640
641
|
"rightkit-mcp": "0.7.6",
|
|
641
|
-
"rightkit-media-fetch": "0.
|
|
642
|
+
"rightkit-media-fetch": "0.2.0",
|
|
642
643
|
"rightkit-media-gen": "0.2.0",
|
|
643
644
|
"rightkit-media-gen-approvals": "0.1.0",
|
|
644
645
|
"rightkit-media-gen-client": "0.1.0",
|
|
645
646
|
"rightkit-media-gen-models": "0.1.0",
|
|
646
647
|
"rightkit-media-pipeline": "0.2.0",
|
|
647
|
-
"rightkit-memory": "0.
|
|
648
|
+
"rightkit-memory": "0.3.0",
|
|
648
649
|
"rightkit-memory-client": "0.1.0",
|
|
649
|
-
"rightkit-memory-core": "0.
|
|
650
|
-
"rightkit-memory-store": "0.
|
|
651
|
-
"rightkit-mesh": "0.
|
|
652
|
-
"rightkit-models": "0.7.
|
|
650
|
+
"rightkit-memory-core": "0.2.0",
|
|
651
|
+
"rightkit-memory-store": "0.2.0",
|
|
652
|
+
"rightkit-mesh": "0.2.0",
|
|
653
|
+
"rightkit-models": "0.7.1",
|
|
653
654
|
"rightkit-motion": "0.4.0",
|
|
654
655
|
"rightkit-notch-ui": "0.2.0",
|
|
655
656
|
"rightkit-notifications": "0.1.0",
|
|
656
657
|
"rightkit-now-playing": "0.1.0",
|
|
657
|
-
"rightkit-oauth": "0.
|
|
658
|
-
"rightkit-ocr": "0.
|
|
659
|
-
"rightkit-onnx": "0.
|
|
660
|
-
"rightkit-overlay": "0.2.
|
|
658
|
+
"rightkit-oauth": "0.11.0",
|
|
659
|
+
"rightkit-ocr": "0.3.0",
|
|
660
|
+
"rightkit-onnx": "0.3.0",
|
|
661
|
+
"rightkit-overlay": "0.2.3",
|
|
661
662
|
"rightkit-overlay-win": "0.1.5",
|
|
662
663
|
"rightkit-owner-approvals": "0.1.2",
|
|
663
664
|
"rightkit-ownership": "0.4.6",
|
|
@@ -669,35 +670,35 @@
|
|
|
669
670
|
"rightkit-policy-rules": "0.1.1",
|
|
670
671
|
"rightkit-power": "0.1.0",
|
|
671
672
|
"rightkit-presence": "0.1.1",
|
|
672
|
-
"rightkit-privileged-helper": "0.
|
|
673
|
+
"rightkit-privileged-helper": "0.2.0",
|
|
673
674
|
"rightkit-prompt-recipes": "0.2.0",
|
|
674
675
|
"rightkit-pty": "0.1.1",
|
|
675
676
|
"rightkit-qa": "0.10.7",
|
|
676
677
|
"rightkit-record": "0.4.0",
|
|
677
|
-
"rightkit-reframe": "0.
|
|
678
|
+
"rightkit-reframe": "0.2.0",
|
|
678
679
|
"rightkit-remote-compute": "0.2.0",
|
|
679
680
|
"rightkit-remote-gateway": "0.1.3",
|
|
680
|
-
"rightkit-repo-graph": "0.
|
|
681
|
+
"rightkit-repo-graph": "0.2.0",
|
|
681
682
|
"rightkit-repo-graph-grammars": "0.1.1",
|
|
682
683
|
"rightkit-research": "0.1.2",
|
|
683
|
-
"rightkit-review": "0.
|
|
684
|
-
"rightkit-roots": "0.
|
|
684
|
+
"rightkit-review": "0.5.0",
|
|
685
|
+
"rightkit-roots": "0.2.0",
|
|
685
686
|
"rightkit-sandbox": "0.6.5",
|
|
686
687
|
"rightkit-scheduler": "0.1.2",
|
|
687
688
|
"rightkit-search": "0.4.5",
|
|
688
689
|
"rightkit-send": "0.4.0",
|
|
689
690
|
"rightkit-shorts": "0.2.0",
|
|
690
|
-
"rightkit-sidecar": "0.3.
|
|
691
|
+
"rightkit-sidecar": "0.3.4",
|
|
691
692
|
"rightkit-signal": "0.1.0",
|
|
692
|
-
"rightkit-social-analytics": "0.
|
|
693
|
-
"rightkit-social-inbox": "0.
|
|
694
|
-
"rightkit-social-publish": "0.
|
|
695
|
-
"rightkit-speech-client": "0.
|
|
693
|
+
"rightkit-social-analytics": "0.3.0",
|
|
694
|
+
"rightkit-social-inbox": "0.3.0",
|
|
695
|
+
"rightkit-social-publish": "0.2.0",
|
|
696
|
+
"rightkit-speech-client": "0.5.0",
|
|
696
697
|
"rightkit-spend": "0.2.3",
|
|
697
|
-
"rightkit-sync": "0.
|
|
698
|
+
"rightkit-sync": "0.3.0",
|
|
698
699
|
"rightkit-sysmem": "0.1.0",
|
|
699
|
-
"rightkit-system-monitor": "0.
|
|
700
|
-
"rightkit-tauri-shell": "0.
|
|
700
|
+
"rightkit-system-monitor": "0.3.0",
|
|
701
|
+
"rightkit-tauri-shell": "0.8.0",
|
|
701
702
|
"rightkit-terminal-ui": "0.1.2",
|
|
702
703
|
"rightkit-text-polish": "0.1.1",
|
|
703
704
|
"rightkit-theme": "0.1.0",
|
|
@@ -705,16 +706,16 @@
|
|
|
705
706
|
"rightkit-timeline": "0.1.1",
|
|
706
707
|
"rightkit-transcript": "0.4.2",
|
|
707
708
|
"rightkit-transcript-library": "0.1.2",
|
|
708
|
-
"rightkit-tts": "0.
|
|
709
|
-
"rightkit-tts-qwen": "0.
|
|
709
|
+
"rightkit-tts": "0.3.0",
|
|
710
|
+
"rightkit-tts-qwen": "0.3.0",
|
|
710
711
|
"rightkit-tts-qwen-sys": "0.1.5",
|
|
711
712
|
"rightkit-typeset": "0.1.2",
|
|
712
|
-
"rightkit-vad": "0.
|
|
713
|
-
"rightkit-vault": "0.
|
|
713
|
+
"rightkit-vad": "0.2.0",
|
|
714
|
+
"rightkit-vault": "0.3.0",
|
|
714
715
|
"rightkit-video-project": "0.1.3",
|
|
715
716
|
"rightkit-voice-commands": "0.1.1",
|
|
716
717
|
"rightkit-web-extract": "0.1.2",
|
|
717
|
-
"rightkit-web-session": "0.1.
|
|
718
|
+
"rightkit-web-session": "0.1.1",
|
|
718
719
|
"rightkit-win-ui": "0.1.0",
|
|
719
720
|
"rightkit-workflow": "0.2.3"
|
|
720
721
|
},
|
package/stage-commands.mjs
CHANGED
|
@@ -104,7 +104,7 @@ export function expectedStageCommands({ kind, unit, config, manifest, platform }
|
|
|
104
104
|
pack.push(PNPM(npmPackArgs(dir, ANY_ABSOLUTE_PATH)));
|
|
105
105
|
} else {
|
|
106
106
|
compile.unshift(CARGO(crateDir, qualifyFmtArgs(unit)));
|
|
107
|
-
pack.push(CARGO(crateDir, cargoPackageArgs(unit, true)), CARGO(crateDir, [...CARGO_METADATA_ARGS], CARGO_METADATA_ARGS.filter((arg) => arg !== "--offline")));
|
|
107
|
+
pack.push(CARGO(crateDir, cargoPackageArgs(unit, true, config?.rust?.[unit], platform)), CARGO(crateDir, [...CARGO_METADATA_ARGS], CARGO_METADATA_ARGS.filter((arg) => arg !== "--offline")));
|
|
108
108
|
}
|
|
109
109
|
return { compile, package: pack };
|
|
110
110
|
}
|
package/stage-sidecar.mjs
CHANGED
|
@@ -1157,15 +1157,17 @@ function resolveLocalFfmpegSource(ctx, spec, tool) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
|
|
1159
1159
|
/**
|
|
1160
|
-
* Fetch the bytes of the catalog rows that `ffmpeg.sources` names (a local `path` is copied, never downloaded): an archive pinned by digest, one member unpacked, the
|
|
1160
|
+
* Fetch the bytes of the catalog rows that `ffmpeg.sources` names, or the rows' own pinned archives when it names none (a local `path` is copied, never downloaded): an archive pinned by digest, one member unpacked, the
|
|
1161
1161
|
* member's digest checked against the APPROVED catalog row (so a swapped archive can never stage). A staged file that already
|
|
1162
1162
|
* matches its row is left alone.
|
|
1163
1163
|
*/
|
|
1164
1164
|
async function fetchFfmpegSources(entry, ctx, plan, arch) {
|
|
1165
|
-
|
|
1165
|
+
// No `sources` and no `stage` command: the catalog row's own pinned archive is the source (as the native-library kind does).
|
|
1166
|
+
if (!entry.sources && entry.stage) return;
|
|
1166
1167
|
const { fs } = ctx;
|
|
1167
|
-
for (const file of plan.files) {
|
|
1168
|
-
const
|
|
1168
|
+
for (const [index, file] of plan.files.entries()) {
|
|
1169
|
+
const archive = plan.rows?.[index]?.archive;
|
|
1170
|
+
const spec = entry.sources ? ffmpegSourceFor(entry.sources, file.tool, arch) : archive && { url: archive.url, sha256: archive.sha256, member: archive.member ?? file.tool };
|
|
1169
1171
|
if (!spec) continue;
|
|
1170
1172
|
if (fs.existsSync(file.stagedPath) && catalogContentDigest(fs.readFileSync(file.stagedPath), arch) === file.contentSha256) {
|
|
1171
1173
|
ctx.log(`stage-sidecar: ${rel(ctx, file.stagedPath)} already staged`);
|