Files
PaperClipAI/tests/runner-e2e/verified-provider-bundles.setup.mjs
T
DottaandPaperclip 8c9dd1e444 test(runner): qualify Kimi Code lifecycle and recovery (#18029)
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>
2026-10-30 22:54:37 -05:00

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}`}`);
}
}