Skip to content

Commit 9b9c9b3

Browse files
Use shared turn input type in Codex adapter
- Replace `sendTurn` parameter inference with `ProviderSendTurnInput` - Keep attachment resolution aligned with shared contracts
1 parent b0d4319 commit 9b9c9b3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/server/src/provider/Layers/CodexAdapter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
ProviderItemId,
2121
ThreadId,
2222
TurnId,
23+
ProviderSendTurnInput,
2324
} from "@t3tools/contracts";
2425
import { Effect, FileSystem, Layer, Queue, Schema, ServiceMap, Stream } from "effect";
2526

@@ -1413,8 +1414,8 @@ const makeCodexAdapter = Effect.fn("makeCodexAdapter")(function* (
14131414
);
14141415

14151416
const resolveAttachment = Effect.fn("resolveAttachment")(function* (
1416-
input: Parameters<CodexAdapterShape["sendTurn"]>[0],
1417-
attachment: NonNullable<Parameters<CodexAdapterShape["sendTurn"]>[0]["attachments"]>[number],
1417+
input: ProviderSendTurnInput,
1418+
attachment: NonNullable<ProviderSendTurnInput["attachments"]>[number],
14181419
) {
14191420
const attachmentPath = resolveAttachmentPath({
14201421
attachmentsDir: serverConfig.attachmentsDir,

0 commit comments

Comments
 (0)