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": { 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..521fcf7 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"; @@ -94,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" @@ -106,9 +119,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"