@@ -3,6 +3,7 @@ import { mkdir, mkdtemp, readFile, rm, writeFile } from "node:fs/promises";
33import { tmpdir } from "node:os" ;
44import { join } from "node:path" ;
55import type { ContentBlock } from "@agentclientprotocol/sdk" ;
6+ import type { Adapter } from "@posthog/shared" ;
67import { zipSync } from "fflate" ;
78import jwt from "jsonwebtoken" ;
89import { type SetupServerApi , setupServer } from "msw/node" ;
@@ -228,9 +229,9 @@ interface TestableServer {
228229 inboxReportUrl ?: string | null ,
229230 ) : string | { append : string } ;
230231 buildCodexInstructions ( systemPrompt : string | { append : string } ) : string ;
231- getRuntimeAdapter ( ) : "claude" | "codex" ;
232+ getRuntimeAdapter ( ) : Adapter ;
232233 buildClaudeCodeSessionMeta (
233- runtimeAdapter : "claude" | "codex" ,
234+ runtimeAdapter : Adapter ,
234235 ) : { claudeCode : { options : Record < string , unknown > } } | undefined ;
235236}
236237
@@ -240,7 +241,7 @@ interface NativeResumeTestServer {
240241 payload : JwtPayload ,
241242 posthogAPI : PostHogAPIClient ,
242243 preTaskRun : TaskRun | null ,
243- runtimeAdapter : "claude" | "codex" ,
244+ runtimeAdapter : Adapter ,
244245 cwd : string ,
245246 permissionMode : PermissionMode ,
246247 ) : Promise < { sessionId : string ; warm : boolean } | null > ;
0 commit comments