Skip to content

Commit 270aaa4

Browse files
refactor: restore cursor provider surface on stacked branch\n\nCo-authored-by: codex <codex@users.noreply.github.com>
1 parent 91ad511 commit 270aaa4

26 files changed

+1873
-110
lines changed

apps/server/integration/OrchestrationEngineHarness.integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export interface OrchestrationIntegrationHarness {
188188
}
189189

190190
interface MakeOrchestrationIntegrationHarnessOptions {
191-
readonly provider?: "codex";
191+
readonly provider?: "codex" | "claudeCode";
192192
readonly realCodex?: boolean;
193193
}
194194

apps/server/integration/TestProviderAdapter.integration.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface TestTurnResponse {
3535
export type FixtureProviderRuntimeEvent = {
3636
readonly type: string;
3737
readonly eventId: EventId;
38-
readonly provider: "codex";
38+
readonly provider: "codex" | "claudeCode" | "cursor";
3939
readonly createdAt: string;
4040
readonly threadId: string;
4141
readonly turnId?: string | undefined;
@@ -178,7 +178,7 @@ function normalizeFixtureEvent(rawEvent: Record<string, unknown>): ProviderRunti
178178

179179
export interface TestProviderAdapterHarness {
180180
readonly adapter: ProviderAdapterShape<ProviderAdapterError>;
181-
readonly provider: "codex";
181+
readonly provider: "codex" | "claudeCode";
182182
readonly queueTurnResponse: (
183183
threadId: ThreadId,
184184
response: TestTurnResponse,
@@ -198,15 +198,15 @@ export interface TestProviderAdapterHarness {
198198
}
199199

200200
interface MakeTestProviderAdapterHarnessOptions {
201-
readonly provider?: "codex";
201+
readonly provider?: "codex" | "claudeCode";
202202
}
203203

204204
function nowIso(): string {
205205
return new Date().toISOString();
206206
}
207207

208208
function sessionNotFound(
209-
provider: "codex",
209+
provider: "codex" | "claudeCode",
210210
threadId: ThreadId,
211211
): ProviderAdapterSessionNotFoundError {
212212
return new ProviderAdapterSessionNotFoundError({
@@ -216,7 +216,7 @@ function sessionNotFound(
216216
}
217217

218218
function missingSessionEffect(
219-
provider: "codex",
219+
provider: "codex" | "claudeCode",
220220
threadId: ThreadId,
221221
): Effect.Effect<never, ProviderAdapterError> {
222222
return Effect.fail(sessionNotFound(provider, threadId));

0 commit comments

Comments
 (0)