From 4006dfa0b5f5bee89aadc446f9984e4f2eb10a56 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 28 Sep 2026 22:21:56 +0000 Subject: [PATCH] Add claude-sonnet-5-5 to Claude Computer Use Accept the Sonnet 5.5 model added in browserctrl and bump the SDK to 0.93.1. Co-authored-by: nikhil --- package.json | 2 +- src/types/constants.ts | 1 + tests/integration/client-http.test.ts | 24 ++++++++++++++---------- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 6179ad2..d568ca4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperbrowser/sdk", - "version": "0.93.0", + "version": "0.93.1", "description": "Node SDK for Hyperbrowser API", "author": "", "repository": { diff --git a/src/types/constants.ts b/src/types/constants.ts index 6133f30..a1906ed 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -62,6 +62,7 @@ export type ClaudeComputerUseLlm = | "claude-opus-4-7" | "claude-opus-4-8" | "claude-haiku-4-5-20251001" + | "claude-sonnet-5-5" | "claude-sonnet-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" diff --git a/tests/integration/client-http.test.ts b/tests/integration/client-http.test.ts index a5b8e3c..06e8cb2 100644 --- a/tests/integration/client-http.test.ts +++ b/tests/integration/client-http.test.ts @@ -368,19 +368,23 @@ describe("client HTTP integration", () => { llm: "claude-opus-5-5", reasoningEffort: "xhigh", }); + await client.agents.claudeComputerUse.start({ + task: "Complete the task", + llm: "claude-sonnet-5-5", + reasoningEffort: "max", + }); expect(started).toEqual({ jobId: "claude_job_123", liveUrl: null }); - expect(server.requests).toEqual([ + expect(server.requests.map((request) => request.body)).toEqual([ { - method: "POST", - url: "/api/task/claude-computer-use", - apiKey: "test-api-key", - contentType: "application/json", - body: { - task: "Complete the task", - llm: "claude-opus-5-5", - reasoningEffort: "xhigh", - }, + task: "Complete the task", + llm: "claude-opus-5-5", + reasoningEffort: "xhigh", + }, + { + task: "Complete the task", + llm: "claude-sonnet-5-5", + reasoningEffort: "max", }, ]); });