Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.0.0"
".": "1.1.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-ce018db4d6891d645cfb220c86d17ac1d431e1ba2f604e8015876b17a5a11149.yml
openapi_spec_hash: e9a00924682ab214ca5d8b6b5c84430e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browser-use%2Fbrowser-use-814bdd9f98b750d42a2b713a0a12b14fc5a0241ff820b2fbc7666ab2e9a5443f.yml
openapi_spec_hash: 0dae4d4d33a3ec93e470f9546e43fad3
config_hash: dd3e22b635fa0eb9a7c741a8aaca2a7f
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.1.0 (2025-08-20)

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

### Features

* LLM key strings over LLM model enum ([415d734](https://github.com/browser-use/browser-use-node/commit/415d734d7f1c8cec85d3aee9f0e1050f31a7b1ac))
* **mcp:** add code execution tool ([96e6aca](https://github.com/browser-use/browser-use-node/commit/96e6acad04252d075543b60a8de59f95648ca8a7))

## 1.0.0 (2025-08-19)

Full Changelog: [v0.7.0...v1.0.0](https://github.com/browser-use/browser-use-node/compare/v0.7.0...v1.0.0)
Expand Down
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Methods:
Types:

- <code><a href="./src/resources/tasks.ts">FileView</a></code>
- <code><a href="./src/resources/tasks.ts">LlmModel</a></code>
- <code><a href="./src/resources/tasks.ts">TaskItemView</a></code>
- <code><a href="./src/resources/tasks.ts">TaskStatus</a></code>
- <code><a href="./src/resources/tasks.ts">TaskStepView</a></code>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browser-use-sdk",
"version": "1.0.0",
"version": "1.1.0",
"description": "The official TypeScript library for the Browser Use API",
"author": "Browser Use <[email protected]>",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -53,7 +53,7 @@
"publint": "^0.2.12",
"ts-jest": "^29.1.0",
"ts-node": "^10.5.0",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz",
"tsc-multi": "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz",
"tsconfig-paths": "^4.0.0",
"typescript": "5.8.3",
"typescript-eslint": "8.31.1",
Expand Down
2 changes: 0 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
} from './resources/browser-profiles';
import {
FileView,
LlmModel,
TaskCreateParams,
TaskCreateResponse,
TaskGetLogsResponse,
Expand Down Expand Up @@ -779,7 +778,6 @@ export declare namespace BrowserUse {
export {
Tasks as Tasks,
type FileView as FileView,
type LlmModel as LlmModel,
type TaskItemView as TaskItemView,
type TaskStatus as TaskStatus,
type TaskStepView as TaskStepView,
Expand Down
1 change: 0 additions & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export {
export {
Tasks,
type FileView,
type LlmModel,
type TaskItemView,
type TaskStatus,
type TaskStepView,
Expand Down
70 changes: 32 additions & 38 deletions src/resources/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
type TaskViewWithSchema,
} from '../lib/parse';
import { BrowserState, reducer } from '../lib/stream';
import * as TasksAPI from './tasks';

Check failure on line 16 in src/resources/tasks.ts

View workflow job for this annotation

GitHub Actions / lint

'TasksAPI' is defined but never used

export class Tasks extends APIResource {
/**
Expand Down Expand Up @@ -403,33 +403,17 @@
fileName: string;
}

export type LlmModel =
| 'gpt-4o'
| 'gpt-4o-mini'
| 'gpt-4.1'
| 'gpt-4.1-mini'
| 'o4-mini'
| 'o3'
| 'gemini-2.0-flash'
| 'gemini-2.0-flash-lite'
| 'gemini-2.5-flash-preview-04-17'
| 'gemini-2.5-flash'
| 'gemini-2.5-pro'
| 'claude-3-7-sonnet-20250219'
| 'claude-sonnet-4-20250514'
| 'llama-4-maverick-17b-128e-instruct';

/**
* View model for representing a task with its execution details
*
* Attributes: id: Unique identifier for the task session_id: ID of the session
* this task belongs to llm: The LLM model used for this task task: The task
* prompt/instruction given to the agent status: Current status of the task
* execution started_at: Naive UTC timestamp when the task was started finished_at:
* Naive UTC timestamp when the task completed (None if still running) metadata:
* Optional additional metadata associated with the task set by the user
* is_scheduled: Whether this task was created as a scheduled task steps: Optional
* list of execution steps done_output: Final output/result of the task
* this task belongs to llm: The LLM model used for this task represented as a
* string task: The task prompt/instruction given to the agent status: Current
* status of the task execution started_at: Naive UTC timestamp when the task was
* started finished_at: Naive UTC timestamp when the task completed (None if still
* running) metadata: Optional additional metadata associated with the task set by
* the user is_scheduled: Whether this task was created as a scheduled task steps:
* Optional list of execution steps done_output: Final output/result of the task
* user_uploaded_files: Optional list of files uploaded by user for this task
* output_files: Optional list of files generated as output by this task
* browser_use_version: Version of browser-use used for this task (older tasks may
Expand All @@ -441,7 +425,7 @@

isScheduled: boolean;

llm: LlmModel;
llm: string;

sessionId: string;

Expand Down Expand Up @@ -511,24 +495,24 @@
*
* Attributes: id: Unique identifier for the task session_id: ID of the session
* this task belongs to session: The session this task belongs to llm: The LLM
* model used for this task task: The task prompt/instruction given to the agent
* status: Current status of the task execution started_at: Naive UTC timestamp
* when the task was started finished_at: Naive UTC timestamp when the task
* completed (None if still running) metadata: Optional additional metadata
* associated with the task set by the user is_scheduled: Whether this task was
* created as a scheduled task steps: List of execution steps done_output: Final
* output/result of the task user_uploaded_files: List of files uploaded by user
* for this task output_files: List of files generated as output by this task
* browser_use_version: Version of browser-use used for this task (older tasks may
* not have this set) is_success: Whether the task was successful (self-reported by
* the agent)
* model used for this task represented as a string task: The task
* prompt/instruction given to the agent status: Current status of the task
* execution started_at: Naive UTC timestamp when the task was started finished_at:
* Naive UTC timestamp when the task completed (None if still running) metadata:
* Optional additional metadata associated with the task set by the user
* is_scheduled: Whether this task was created as a scheduled task steps: List of
* execution steps done_output: Final output/result of the task
* user_uploaded_files: List of files uploaded by user for this task output_files:
* List of files generated as output by this task browser_use_version: Version of
* browser-use used for this task (older tasks may not have this set) is_success:
* Whether the task was successful (self-reported by the agent)
*/
export interface TaskView {
id: string;

isScheduled: boolean;

llm: LlmModel;
llm: string;

outputFiles: Array<FileView>;

Expand Down Expand Up @@ -704,7 +688,18 @@
* of the agent profile to use for the task
*/
export interface AgentSettings {
llm?: TasksAPI.LlmModel;
llm?:
| 'gpt-4.1'
| 'gpt-4.1-mini'
| 'o4-mini'
| 'o3'
| 'gemini-2.5-flash'
| 'gemini-2.5-pro'
| 'claude-sonnet-4-20250514'
| 'gpt-4o'
| 'gpt-4o-mini'
| 'llama-4-maverick-17b-128e-instruct'
| 'claude-3-7-sonnet-20250219';

profileId?: string | null;

Expand Down Expand Up @@ -769,7 +764,6 @@
export declare namespace Tasks {
export {
type FileView as FileView,
type LlmModel as LlmModel,
type TaskItemView as TaskItemView,
type TaskStatus as TaskStatus,
type TaskStepView as TaskStepView,
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '1.0.0'; // x-release-please-version
export const VERSION = '1.1.0'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/tasks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('resource tasks', () => {
const response = await client.tasks.create({
task: 'x',
agentSettings: {
llm: 'gpt-4o',
llm: 'gpt-4.1',
profileId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
startUrl: 'startUrl',
},
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3303,9 +3303,9 @@ ts-node@^10.5.0:
v8-compile-cache-lib "^3.0.1"
yn "3.1.1"

"tsc-multi@https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz":
version "1.1.8"
resolved "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.8/tsc-multi.tgz#f544b359b8f05e607771ffacc280e58201476b04"
"tsc-multi@https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz":
version "1.1.9"
resolved "https://github.com/stainless-api/tsc-multi/releases/download/v1.1.9/tsc-multi.tgz#777f6f5d9e26bf0e94e5170990dd3a841d6707cd"
dependencies:
debug "^4.3.7"
fast-glob "^3.3.2"
Expand Down
Loading