Merge master into canonical Runner D delivery

Resolve the migration sequence against current master while preserving the audited Runner D data migration. Type the native backend factory mock so the merged TypeScript checks retain its two-argument contract.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dev AgentandPaperclip committed 2026-08-19 21:17:29 +00:00
commit 83a1c438e0
227 files changed
+64329 -3014

No files matched your search

@@ -2,9 +2,22 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
import type { Db } from "@paperclipai/db";
import type { NativeExecutionInputV1 } from "@paperclipai/paperclip-runner";
type BackendFactoryOptions = {
runnerInstanceId?: string;
onSpawn?: (meta: {
pid: number;
processGroupId: number | null;
startedAt: string;
}) => Promise<void>;
};
const state = vi.hoisted(() => ({
execute: vi.fn(),
createBackend: vi.fn(() => ({ kind: "test" })),
createBackend: vi.fn(
(_input: NativeExecutionInputV1, _options: BackendFactoryOptions) => ({
kind: "test",
}),
),
cancel: vi.fn(),
release: null as null | (() => void),
}));