From f0d2d72d042c2acb73d911c5aeb40ccb72ffaf9f Mon Sep 17 00:00:00 2001 From: Matt Apperson Date: Thu, 9 Apr 2026 10:41:13 -0400 Subject: [PATCH 1/3] fix: re-export EasyInputMessageContentInputImage, OutputInputImage, and OpenAIResponsesToolChoiceUnion These SDK types were used internally but not re-exported, forcing consumers to add a direct @openrouter/sdk dependency to access them. --- .changeset/export-missing-image-toolchoice-types.md | 5 +++++ src/index.ts | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/export-missing-image-toolchoice-types.md diff --git a/.changeset/export-missing-image-toolchoice-types.md b/.changeset/export-missing-image-toolchoice-types.md new file mode 100644 index 0000000..0e0f005 --- /dev/null +++ b/.changeset/export-missing-image-toolchoice-types.md @@ -0,0 +1,5 @@ +--- +"@openrouter/agent": patch +--- + +Re-export `EasyInputMessageContentInputImage`, `OutputInputImage`, and `OpenAIResponsesToolChoiceUnion` from `@openrouter/sdk/models` so consumers can use these types without a direct SDK dependency. diff --git a/src/index.ts b/src/index.ts index 78673ad..04d6060 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,7 @@ export type { ChatAssistantMessage, ChatMessages, EasyInputMessage, + EasyInputMessageContentInputImage, EasyInputMessageContentUnion1, EasyInputMessageRoleUnion, // Error event @@ -24,11 +25,13 @@ export type { InputsUnion, InputText, InputVideo, + OpenAIResponsesToolChoiceUnion, OpenResponsesResult, // Output item types (StreamableOutputItem members) OutputFileSearchCallItem, OutputFunctionCallItem, OutputImageGenerationCallItem, + OutputInputImage, OutputMessage, OutputReasoningItem, OutputWebSearchCallItem, From f9c559f8101c651d1b204b277050d8e52f6f4b34 Mon Sep 17 00:00:00 2001 From: Matt Apperson Date: Thu, 9 Apr 2026 10:57:49 -0400 Subject: [PATCH 2/3] chore: add Claude Code stop hook for lint and typecheck Runs biome check and tsc --noEmit on every stop, matching CI validation. --- .claude/settings.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..24d06c1 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,10 @@ +{ + "hooks": { + "stop": [ + { + "command": "pnpm run lint && pnpm run typecheck", + "blocking": true + } + ] + } +} From c2b13647f1cf60e375eb11b1f5d923dd465fbe1d Mon Sep 17 00:00:00 2001 From: Matt Apperson Date: Thu, 9 Apr 2026 10:58:20 -0400 Subject: [PATCH 3/3] chore: run lint and typecheck hooks in parallel Split into separate hook entries so they execute concurrently. --- .claude/settings.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.claude/settings.json b/.claude/settings.json index 24d06c1..0265f65 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -2,7 +2,11 @@ "hooks": { "stop": [ { - "command": "pnpm run lint && pnpm run typecheck", + "command": "pnpm run lint", + "blocking": true + }, + { + "command": "pnpm run typecheck", "blocking": true } ]