mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-01 15:35:12 +01:00
Add the Kimi lifecycle and recovery qualification harness. Preserve original grades and cleanup evidence, strict native ownership audits, bounded startup and cleanup, and early rejection of unsupported local fault execution before credentials or resources. Co-Authored-By: Paperclip <noreply@paperclip.ing>
13 lines
701 B
JavaScript
13 lines
701 B
JavaScript
import { spawnSync } from "node:child_process";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
export default function setup() {
|
|
const root = fileURLToPath(new URL("../../", import.meta.url));
|
|
const builder = fileURLToPath(new URL("../../packages/paperclip-runner/scripts/build-verified-provider-entrypoints.mjs", import.meta.url));
|
|
const result = spawnSync(process.execPath, [builder], { cwd: root, stdio: "inherit" });
|
|
if (result.error) throw new Error("Runner E2E provider bundle preparation failed", { cause: result.error });
|
|
if (result.signal || result.status !== 0) {
|
|
throw new Error(`Runner E2E provider bundle preparation failed: ${result.signal ?? `exit ${result.status}`}`);
|
|
}
|
|
}
|