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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.24.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.24.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: '10.24.0'
version: '10.27.0'

- name: Bootstrap
run: ./scripts/bootstrap
Expand Down
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-alpha.3"
".": "1.0.0-alpha.4"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 12
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-71da0fb8e959241d9767c5a4879871711b501bd0d6cef087fbb7047a0b86791e.yml
openapi_spec_hash: 8b0828210e5b33f36fc88093dbf066f1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-889ce13c0c43d5d3affffdc59a70d6f9a99b6b537f03d9f4e13685884e0ce163.yml
openapi_spec_hash: 9ae86e64db36c40a13cf1afd24f6f736
config_hash: 07820b17df23cbea39cb77fa05292538
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.0.0-alpha.4 (2026-02-06)

Full Changelog: [v1.0.0-alpha.3...v1.0.0-alpha.4](https://github.com/warpdotdev/warp-sdk-typescript/compare/v1.0.0-alpha.3...v1.0.0-alpha.4)

### Features

* **api:** add computer_use_enabled param ([240bfbc](https://github.com/warpdotdev/warp-sdk-typescript/commit/240bfbc553994ba01d28eff9b4936842ebf9d46a))


### Chores

* **internal:** upgrade pnpm ([48a300d](https://github.com/warpdotdev/warp-sdk-typescript/commit/48a300d8f63d7adc4a5152231cc9fd73f01f8db8))

## 1.0.0-alpha.3 (2026-02-05)

Full Changelog: [v1.0.0-alpha.2...v1.0.0-alpha.3](https://github.com/warpdotdev/warp-sdk-typescript/compare/v1.0.0-alpha.2...v1.0.0-alpha.3)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "warp-agent-sdk",
"version": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"description": "The official TypeScript library for the Warp API API",
"author": "Warp API <>",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
"repository": "github:warpdotdev/warp-sdk-typescript",
"license": "Apache-2.0",
"packageManager": "pnpm@10.24.0",
"packageManager": "pnpm@10.27.0",
"files": [
"**/*"
],
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/resources/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ export interface AmbientAgentConfig {
*/
base_prompt?: string;

/**
* Controls whether computer use is enabled for this agent. If not set, defaults to
* false.
*/
computer_use_enabled?: boolean;

/**
* UID of the environment to run the agent in
*/
Expand Down Expand Up @@ -298,6 +304,7 @@ export interface AgentRunResponse {
* - INPROGRESS: Run is actively being executed
* - SUCCEEDED: Run completed successfully
* - FAILED: Run failed
* - CANCELLED: Run was cancelled by user
*/
state: RunsAPI.RunState;
}
Expand Down
33 changes: 25 additions & 8 deletions src/resources/agent/runs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ export namespace ArtifactItem {
/**
* Type of the artifact
*/
artifact_type: 'plan';
artifact_type: 'PLAN';

/**
* Timestamp when the artifact was created (RFC3339)
*/
created_at: string;

plan: PlanArtifact.Plan;
data: PlanArtifact.Data;
}

export namespace PlanArtifact {
export interface Plan {
export interface Data {
/**
* Unique identifier for the plan document
*/
Expand All @@ -87,18 +87,18 @@ export namespace ArtifactItem {
/**
* Type of the artifact
*/
artifact_type: 'pull_request';
artifact_type: 'PULL_REQUEST';

/**
* Timestamp when the artifact was created (RFC3339)
*/
created_at: string;

pull_request: PullRequestArtifact.PullRequest;
data: PullRequestArtifact.Data;
}

export namespace PullRequestArtifact {
export interface PullRequest {
export interface Data {
/**
* Branch name for the pull request
*/
Expand Down Expand Up @@ -137,6 +137,7 @@ export interface RunItem {
* - INPROGRESS: Run is actively being executed
* - SUCCEEDED: Run completed successfully
* - FAILED: Run failed
* - CANCELLED: Run was cancelled by user
*/
state: RunState;

Expand Down Expand Up @@ -293,8 +294,9 @@ export type RunSourceType =
* - INPROGRESS: Run is actively being executed
* - SUCCEEDED: Run completed successfully
* - FAILED: Run failed
* - CANCELLED: Run was cancelled by user
*/
export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED';
export type RunState = 'QUEUED' | 'PENDING' | 'CLAIMED' | 'INPROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED';

export interface RunListResponse {
page_info: RunListResponse.PageInfo;
Expand Down Expand Up @@ -350,7 +352,7 @@ export interface RunListParams {
/**
* Filter runs by environment ID
*/
environmentId?: string;
environment_id?: string;

/**
* Maximum number of runs to return
Expand All @@ -362,6 +364,16 @@ export interface RunListParams {
*/
model_id?: string;

/**
* Filter runs by the scheduled agent ID that created them
*/
schedule_id?: string;

/**
* Filter runs by skill spec (e.g., "owner/repo:path/to/SKILL.md")
*/
skill_spec?: string;

/**
* Filter by run source type
*/
Expand All @@ -372,6 +384,11 @@ export interface RunListParams {
* states.
*/
state?: Array<RunState>;

/**
* Filter runs updated after this timestamp (RFC3339 format)
*/
updated_after?: string;
}

export declare namespace Runs {
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-alpha.3'; // x-release-please-version
export const VERSION = '1.0.0-alpha.4'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/agent/agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('resource agent', () => {
prompt: 'Fix the bug in auth.go',
config: {
base_prompt: 'base_prompt',
computer_use_enabled: true,
environment_id: 'environment_id',
mcp_servers: {
foo: {
Expand Down
5 changes: 4 additions & 1 deletion tests/api-resources/agent/runs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ describe('resource runs', () => {
created_before: '2019-12-27T18:11:19.117Z',
creator: 'creator',
cursor: 'cursor',
environmentId: 'environmentId',
environment_id: 'environment_id',
limit: 1,
model_id: 'model_id',
schedule_id: 'schedule_id',
skill_spec: 'skill_spec',
source: 'LINEAR',
state: ['QUEUED'],
updated_after: '2019-12-27T18:11:19.117Z',
},
{ path: '/_stainless_unknown_path' },
),
Expand Down
2 changes: 2 additions & 0 deletions tests/api-resources/agent/schedules.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ describe('resource schedules', () => {
prompt: 'Review open pull requests and provide feedback',
agent_config: {
base_prompt: 'base_prompt',
computer_use_enabled: true,
environment_id: 'environment_id',
mcp_servers: {
foo: {
Expand Down Expand Up @@ -91,6 +92,7 @@ describe('resource schedules', () => {
prompt: 'prompt',
agent_config: {
base_prompt: 'base_prompt',
computer_use_enabled: true,
environment_id: 'environment_id',
mcp_servers: {
foo: {
Expand Down