From 841532d2a6b18a0610b164d09a54f003f2b6d64c Mon Sep 17 00:00:00 2001 From: Shri Sukhani Date: Fri, 23 Oct 2026 21:03:06 -0700 Subject: [PATCH 1/3] Update Claude model types for current models - Add current Claude models to the public type unions - Mark retired/deprecated IDs as deprecated - Refresh the browser-use tool schema --- src/tools/schema.ts | 6 +++--- src/types/constants.ts | 31 ++++++++++++++++++++++--------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/src/tools/schema.ts b/src/tools/schema.ts index efdcd12..e4075dd 100644 --- a/src/tools/schema.ts +++ b/src/tools/schema.ts @@ -194,9 +194,9 @@ const BROWSER_USE_LLM_SCHEMA = { enum: [ "gpt-4o", "gpt-4o-mini", - "claude-3-7-sonnet-20250219", - "claude-3-5-sonnet-20241022", - "claude-3-5-haiku-20241022", + "claude-sonnet-5", + "claude-sonnet-4-6", + "claude-haiku-5-5", "gemini-2.0-flash", "gemini-3.8-flash", ], diff --git a/src/types/constants.ts b/src/types/constants.ts index e28f0b7..7723912 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -46,12 +46,17 @@ export type BrowserUseLlm = | "gpt-5" | "gpt-5-mini" | "claude-sonnet-5" - | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-haiku-5-5" + /** @deprecated Retires November 30, 2026; use "claude-sonnet-5". */ + | "claude-sonnet-4-5" + /** @deprecated Retired; the API maps this to "claude-sonnet-5". */ | "claude-sonnet-4-20250514" + /** @deprecated Retired; the API maps this to "claude-sonnet-5". */ | "claude-3-7-sonnet-20250219" + /** @deprecated Retired; the API maps this to "claude-sonnet-5". */ | "claude-3-5-sonnet-20241022" + /** @deprecated Retired; the API maps this to "claude-sonnet-5". */ | "claude-3-5-haiku-20241022" | "gemini-2.0-flash" | "gemini-2.5-flash" @@ -61,18 +66,25 @@ export type ClaudeComputerUseLlm = | "claude-opus-5-5" | "claude-fable-5-1" | "claude-opus-5" - | "claude-opus-4-5" - | "claude-opus-4-6" - | "claude-opus-4-7" | "claude-opus-4-8" - | "claude-haiku-5-5" - | "claude-haiku-4-5-20251001" + | "claude-opus-4-7" + | "claude-opus-4-6" + | "claude-opus-4-5" | "claude-sonnet-5-5" | "claude-sonnet-5" - | "claude-sonnet-4-5" | "claude-sonnet-4-6" + | "claude-haiku-5-5" + | "claude-haiku-4-5-20251001" + /** @deprecated Retires November 30, 2026; use "claude-sonnet-5-5". */ + | "claude-sonnet-4-5" + /** @deprecated Retired; the API maps this to "claude-sonnet-4-6". */ | "claude-sonnet-4-20250514" - | "claude-3-7-sonnet-20250219"; + /** @deprecated Retired; the API maps this to "claude-sonnet-4-6". */ + | "claude-3-7-sonnet-20250219" + /** @deprecated Retired; the API maps this to "claude-opus-4-8". */ + | "claude-opus-4-20250514" + /** @deprecated Retired legacy ID; the API maps this to "claude-opus-4-8". */ + | "claude-4-opus-20250514"; export type ClaudeComputerUseReasoningEffort = "low" | "medium" | "high" | "xhigh" | "max"; @@ -106,9 +118,10 @@ export type HyperAgentLlm = | "gpt-4.1-mini" | "gpt-4.1-nano" | "claude-sonnet-5" - | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-haiku-5-5" + /** @deprecated Retires November 30, 2026; use "claude-sonnet-5". */ + | "claude-sonnet-4-5" | "gemini-2.5-flash" | "gemini-3.8-flash" | "gemini-3.7-flash" From 4e3013f0adf12ee3b0aff162d7b7a522f52bbba1 Mon Sep 17 00:00:00 2001 From: nikhil Date: Sun, 25 Oct 2026 09:15:28 -0700 Subject: [PATCH 2/3] Add GPT-6 Luna to HyperAgent model types --- src/types/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/constants.ts b/src/types/constants.ts index 7723912..521fcf7 100644 --- a/src/types/constants.ts +++ b/src/types/constants.ts @@ -106,6 +106,7 @@ export type CuaReasoningEffort = "none" | "low" | "medium" | "high" | "xhigh" | export type HyperAgentVersion = "0.8.0" | "1.1.0"; export type HyperAgentLlm = + | "gpt-6-luna" | "gpt-5.6-luna" | "gpt-5.5" | "gpt-5.2" From 0c97c1e881c3eb9969e6856348a0808dcef9ebc9 Mon Sep 17 00:00:00 2001 From: nikhil Date: Sun, 25 Oct 2026 09:53:12 -0700 Subject: [PATCH 3/3] Bump SDK version to 1.4.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 106b6ca..ce6216a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperbrowser/sdk", - "version": "1.3.0", + "version": "1.4.0", "description": "Node SDK for Hyperbrowser API", "author": "", "repository": {