Skip to content

Commit d8d78e0

Browse files
authored
Merge pull request #23 from browser-use/release-please--branches--main--changes--next--components--browser-use-sdk
release: 1.1.0
2 parents 83f40c3 + 867ac63 commit d8d78e0

File tree

11 files changed

+51
-52
lines changed

11 files changed

+51
-52
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.0.0"
2+
".": "1.1.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 26
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-ce018db4d6891d645cfb220c86d17ac1d431e1ba2f604e8015876b17a5a11149.yml
3-
openapi_spec_hash: e9a00924682ab214ca5d8b6b5c84430e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-814bdd9f98b750d42a2b713a0a12b14fc5a0241ff820b2fbc7666ab2e9a5443f.yml
3+
openapi_spec_hash: 0dae4d4d33a3ec93e470f9546e43fad3
44
config_hash: dd3e22b635fa0eb9a7c741a8aaca2a7f

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.1.0 (2025-08-20)
4+
5+
Full Changelog: [v1.0.0...v1.1.0](https://github.com/browser-use/browser-use-node/compare/v1.0.0...v1.1.0)
6+
7+
### Features
8+
9+
* LLM key strings over LLM model enum ([415d734](https://github.com/browser-use/browser-use-node/commit/415d734d7f1c8cec85d3aee9f0e1050f31a7b1ac))
10+
* **mcp:** add code execution tool ([96e6aca](https://github.com/browser-use/browser-use-node/commit/96e6acad04252d075543b60a8de59f95648ca8a7))
11+
312
## 1.0.0 (2025-08-19)
413

514
Full Changelog: [v0.7.0...v1.0.0](https://github.com/browser-use/browser-use-node/compare/v0.7.0...v1.0.0)

api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Methods:
2525
Types:
2626

2727
- <code><a href="./src/resources/tasks.ts">FileView</a></code>
28-
- <code><a href="./src/resources/tasks.ts">LlmModel</a></code>
2928
- <code><a href="./src/resources/tasks.ts">TaskItemView</a></code>
3029
- <code><a href="./src/resources/tasks.ts">TaskStatus</a></code>
3130
- <code><a href="./src/resources/tasks.ts">TaskStepView</a></code>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browser-use-sdk",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "The official TypeScript library for the Browser Use API",
55
"author": "Browser Use <[email protected]>",
66
"types": "dist/index.d.ts",
@@ -53,7 +53,7 @@
5353
"publint": "^0.2.12",
5454
"ts-jest": "^29.1.0",
5555
"ts-node": "^10.5.0",
56-
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
56+
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
5757
"tsconfig-paths": "^4.0.0",
5858
"typescript": "5.8.3",
5959
"typescript-eslint": "8.31.1",

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
} from './resources/browser-profiles';
3636
import {
3737
FileView,
38-
LlmModel,
3938
TaskCreateParams,
4039
TaskCreateResponse,
4140
TaskGetLogsResponse,
@@ -779,7 +778,6 @@ export declare namespace BrowserUse {
779778
export {
780779
Tasks as Tasks,
781780
type FileView as FileView,
782-
type LlmModel as LlmModel,
783781
type TaskItemView as TaskItemView,
784782
type TaskStatus as TaskStatus,
785783
type TaskStepView as TaskStepView,

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export {
2828
export {
2929
Tasks,
3030
type FileView,
31-
type LlmModel,
3231
type TaskItemView,
3332
type TaskStatus,
3433
type TaskStepView,

src/resources/tasks.ts

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -403,33 +403,17 @@ export interface FileView {
403403
fileName: string;
404404
}
405405

406-
export type LlmModel =
407-
| 'gpt-4o'
408-
| 'gpt-4o-mini'
409-
| 'gpt-4.1'
410-
| 'gpt-4.1-mini'
411-
| 'o4-mini'
412-
| 'o3'
413-
| 'gemini-2.0-flash'
414-
| 'gemini-2.0-flash-lite'
415-
| 'gemini-2.5-flash-preview-04-17'
416-
| 'gemini-2.5-flash'
417-
| 'gemini-2.5-pro'
418-
| 'claude-3-7-sonnet-20250219'
419-
| 'claude-sonnet-4-20250514'
420-
| 'llama-4-maverick-17b-128e-instruct';
421-
422406
/**
423407
* View model for representing a task with its execution details
424408
*
425409
* Attributes: id: Unique identifier for the task session_id: ID of the session
426-
* this task belongs to llm: The LLM model used for this task task: The task
427-
* prompt/instruction given to the agent status: Current status of the task
428-
* execution started_at: Naive UTC timestamp when the task was started finished_at:
429-
* Naive UTC timestamp when the task completed (None if still running) metadata:
430-
* Optional additional metadata associated with the task set by the user
431-
* is_scheduled: Whether this task was created as a scheduled task steps: Optional
432-
* list of execution steps done_output: Final output/result of the task
410+
* this task belongs to llm: The LLM model used for this task represented as a
411+
* string task: The task prompt/instruction given to the agent status: Current
412+
* status of the task execution started_at: Naive UTC timestamp when the task was
413+
* started finished_at: Naive UTC timestamp when the task completed (None if still
414+
* running) metadata: Optional additional metadata associated with the task set by
415+
* the user is_scheduled: Whether this task was created as a scheduled task steps:
416+
* Optional list of execution steps done_output: Final output/result of the task
433417
* user_uploaded_files: Optional list of files uploaded by user for this task
434418
* output_files: Optional list of files generated as output by this task
435419
* browser_use_version: Version of browser-use used for this task (older tasks may
@@ -441,7 +425,7 @@ export interface TaskItemView {
441425

442426
isScheduled: boolean;
443427

444-
llm: LlmModel;
428+
llm: string;
445429

446430
sessionId: string;
447431

@@ -511,24 +495,24 @@ export interface TaskStepView {
511495
*
512496
* Attributes: id: Unique identifier for the task session_id: ID of the session
513497
* this task belongs to session: The session this task belongs to llm: The LLM
514-
* model used for this task task: The task prompt/instruction given to the agent
515-
* status: Current status of the task execution started_at: Naive UTC timestamp
516-
* when the task was started finished_at: Naive UTC timestamp when the task
517-
* completed (None if still running) metadata: Optional additional metadata
518-
* associated with the task set by the user is_scheduled: Whether this task was
519-
* created as a scheduled task steps: List of execution steps done_output: Final
520-
* output/result of the task user_uploaded_files: List of files uploaded by user
521-
* for this task output_files: List of files generated as output by this task
522-
* browser_use_version: Version of browser-use used for this task (older tasks may
523-
* not have this set) is_success: Whether the task was successful (self-reported by
524-
* the agent)
498+
* model used for this task represented as a string task: The task
499+
* prompt/instruction given to the agent status: Current status of the task
500+
* execution started_at: Naive UTC timestamp when the task was started finished_at:
501+
* Naive UTC timestamp when the task completed (None if still running) metadata:
502+
* Optional additional metadata associated with the task set by the user
503+
* is_scheduled: Whether this task was created as a scheduled task steps: List of
504+
* execution steps done_output: Final output/result of the task
505+
* user_uploaded_files: List of files uploaded by user for this task output_files:
506+
* List of files generated as output by this task browser_use_version: Version of
507+
* browser-use used for this task (older tasks may not have this set) is_success:
508+
* Whether the task was successful (self-reported by the agent)
525509
*/
526510
export interface TaskView {
527511
id: string;
528512

529513
isScheduled: boolean;
530514

531-
llm: LlmModel;
515+
llm: string;
532516

533517
outputFiles: Array<FileView>;
534518

@@ -704,7 +688,18 @@ export namespace TaskCreateParams {
704688
* of the agent profile to use for the task
705689
*/
706690
export interface AgentSettings {
707-
llm?: TasksAPI.LlmModel;
691+
llm?:
692+
| 'gpt-4.1'
693+
| 'gpt-4.1-mini'
694+
| 'o4-mini'
695+
| 'o3'
696+
| 'gemini-2.5-flash'
697+
| 'gemini-2.5-pro'
698+
| 'claude-sonnet-4-20250514'
699+
| 'gpt-4o'
700+
| 'gpt-4o-mini'
701+
| 'llama-4-maverick-17b-128e-instruct'
702+
| 'claude-3-7-sonnet-20250219';
708703

709704
profileId?: string | null;
710705

@@ -769,7 +764,6 @@ export interface TaskGetUserUploadedFileParams {
769764
export declare namespace Tasks {
770765
export {
771766
type FileView as FileView,
772-
type LlmModel as LlmModel,
773767
type TaskItemView as TaskItemView,
774768
type TaskStatus as TaskStatus,
775769
type TaskStepView as TaskStepView,

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.0.0'; // x-release-please-version
1+
export const VERSION = '1.1.0'; // x-release-please-version

tests/api-resources/tasks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('resource tasks', () => {
2525
const response = await client.tasks.create({
2626
task: 'x',
2727
agentSettings: {
28-
llm: 'gpt-4o',
28+
llm: 'gpt-4.1',
2929
profileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
3030
startUrl: 'startUrl',
3131
},

0 commit comments

Comments
 (0)