mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-31 14:16:39 +01:00
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:
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),
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user