harden runtime packaging and verification

This commit is contained in:
Sinabina
2026-07-17 12:09:49 -07:00
parent 20d2840bd3
commit d7357c288f
36 changed files with 801 additions and 265 deletions
+6
View File
@@ -0,0 +1,6 @@
/** Create an operational error whose stable code can cross the CLI boundary. */
export function errorWithCode(message, code, cause) {
const error = cause === undefined ? new Error(message) : new Error(message, { cause });
error.code = code;
return error;
}