From ec94de8c16fa114ba1e6369db25b4a2cd4ebc359 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 16 Apr 2026 16:28:24 +0000 Subject: [PATCH 1/2] chore: bump @openrouter/sdk from 0.11.2 to 0.12.12 Co-Authored-By: jakob --- .changeset/bump-openrouter-sdk.md | 5 +++++ package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/bump-openrouter-sdk.md diff --git a/.changeset/bump-openrouter-sdk.md b/.changeset/bump-openrouter-sdk.md new file mode 100644 index 0000000..51dd36e --- /dev/null +++ b/.changeset/bump-openrouter-sdk.md @@ -0,0 +1,5 @@ +--- +"@openrouter/agent": patch +--- + +Bump @openrouter/sdk from 0.11.2 to 0.12.12, which adds `xhigh` and `max` to the `Verbosity` enum for `TextExtendedConfig` diff --git a/package.json b/package.json index 038eaf8..530446b 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,7 @@ "prepare": "husky" }, "dependencies": { - "@openrouter/sdk": "*", + "@openrouter/sdk": "^0.12.12", "zod": "^4.0.0" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 435f185..781287c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@openrouter/sdk': - specifier: '*' - version: 0.11.2 + specifier: ^0.12.12 + version: 0.12.12 zod: specifier: ^4.0.0 version: 4.3.6 @@ -346,8 +346,8 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@openrouter/sdk@0.11.2': - resolution: {integrity: sha512-uu8zu7vd4hA2l4vUD1UiZuefxqaH2/ixFcUG8GIO9+qcEJkWX4AYAil7SpGmZOTgy8STLFTEk4M4MmyUW0YMLg==} + '@openrouter/sdk@0.12.12': + resolution: {integrity: sha512-/4FUsYEW82sff6/QtuY7NrIe2SLya/jv8HCk4VCYFXpHvr18P2osOn4iTwTqkqu4SJdrFtj9VTRKoBIg61u9dQ==} '@rollup/rollup-android-arm-eabi@4.60.1': resolution: {integrity: sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==} @@ -1368,7 +1368,7 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@openrouter/sdk@0.11.2': + '@openrouter/sdk@0.12.12': dependencies: zod: 4.3.6 From 8faa32c4d1069dfbdbf590ee73f78823bb024fdb Mon Sep 17 00:00:00 2001 From: Jakob Castro Date: Thu, 16 Apr 2026 13:05:57 -0400 Subject: [PATCH 2/2] style: fix biome formatting in conversation-state test --- tests/unit/conversation-state.test.ts | 28 ++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/tests/unit/conversation-state.test.ts b/tests/unit/conversation-state.test.ts index f4381e1..81c60e2 100644 --- a/tests/unit/conversation-state.test.ts +++ b/tests/unit/conversation-state.test.ts @@ -597,7 +597,9 @@ describe('Conversation State Utilities', () => { it('should stringify error outputs', () => { const result = createRejectedResult('call-1', 'test_tool', 'Something went wrong'); - const formatted = unsentResultsToAPIFormat([result]); + const formatted = unsentResultsToAPIFormat([ + result, + ]); expect(formatted[0]?.output).toBe('{"error":"Something went wrong"}'); }); @@ -609,7 +611,9 @@ describe('Conversation State Utilities', () => { text: 'Hello world', }, ]; - const results = [createUnsentResult('call-1', 'test_tool', contentArray)]; + const results = [ + createUnsentResult('call-1', 'test_tool', contentArray), + ]; const formatted = unsentResultsToAPIFormat(results); @@ -625,7 +629,9 @@ describe('Conversation State Utilities', () => { imageUrl: 'data:image/png;base64,abc123', }, ]; - const results = [createUnsentResult('call-1', 'image_gen', contentArray)]; + const results = [ + createUnsentResult('call-1', 'image_gen', contentArray), + ]; const formatted = unsentResultsToAPIFormat(results); @@ -645,7 +651,9 @@ describe('Conversation State Utilities', () => { imageUrl: 'data:image/png;base64,abc123', }, ]; - const results = [createUnsentResult('call-1', 'image_gen', contentArray)]; + const results = [ + createUnsentResult('call-1', 'image_gen', contentArray), + ]; const formatted = unsentResultsToAPIFormat(results); @@ -657,7 +665,9 @@ describe('Conversation State Utilities', () => { 'item1', 'item2', ]; - const results = [createUnsentResult('call-1', 'test_tool', regularArray)]; + const results = [ + createUnsentResult('call-1', 'test_tool', regularArray), + ]; const formatted = unsentResultsToAPIFormat(results); @@ -665,7 +675,9 @@ describe('Conversation State Utilities', () => { }); it('should stringify empty arrays', () => { - const results = [createUnsentResult('call-1', 'test_tool', [])]; + const results = [ + createUnsentResult('call-1', 'test_tool', []), + ]; const formatted = unsentResultsToAPIFormat(results); @@ -679,7 +691,9 @@ describe('Conversation State Utilities', () => { data: 'test', }, ]; - const results = [createUnsentResult('call-1', 'test_tool', invalidArray)]; + const results = [ + createUnsentResult('call-1', 'test_tool', invalidArray), + ]; const formatted = unsentResultsToAPIFormat(results);