computer-agents 1.1.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,9 +76,9 @@ export interface RunOptions {
|
|
|
76
76
|
* Agent configuration override
|
|
77
77
|
*/
|
|
78
78
|
agentConfig?: {
|
|
79
|
-
model?:
|
|
79
|
+
model?: 'claude-opus-4-5' | 'claude-sonnet-4-5' | 'claude-haiku-4-5';
|
|
80
80
|
instructions?: string;
|
|
81
|
-
reasoningEffort?: '
|
|
81
|
+
reasoningEffort?: 'minimal' | 'low' | 'medium' | 'high';
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
84
|
* Callback for streaming events
|
|
@@ -169,13 +169,14 @@ export declare class ComputerAgentsClient {
|
|
|
169
169
|
/**
|
|
170
170
|
* Agent configuration
|
|
171
171
|
*
|
|
172
|
-
* Create and manage agent configurations with models, instructions, and skills.
|
|
172
|
+
* Create and manage agent configurations with Claude models, instructions, and skills.
|
|
173
|
+
* All agents execute via Claude Code CLI in isolated containers.
|
|
173
174
|
*
|
|
174
175
|
* @example
|
|
175
176
|
* ```typescript
|
|
176
177
|
* const agent = await client.agents.create({
|
|
177
178
|
* name: 'Code Assistant',
|
|
178
|
-
* model: '
|
|
179
|
+
* model: 'claude-sonnet-4-5',
|
|
179
180
|
* instructions: 'You are a helpful coding assistant.'
|
|
180
181
|
* });
|
|
181
182
|
* ```
|
|
@@ -95,13 +95,14 @@ class ComputerAgentsClient {
|
|
|
95
95
|
/**
|
|
96
96
|
* Agent configuration
|
|
97
97
|
*
|
|
98
|
-
* Create and manage agent configurations with models, instructions, and skills.
|
|
98
|
+
* Create and manage agent configurations with Claude models, instructions, and skills.
|
|
99
|
+
* All agents execute via Claude Code CLI in isolated containers.
|
|
99
100
|
*
|
|
100
101
|
* @example
|
|
101
102
|
* ```typescript
|
|
102
103
|
* const agent = await client.agents.create({
|
|
103
104
|
* name: 'Code Assistant',
|
|
104
|
-
* model: '
|
|
105
|
+
* model: 'claude-sonnet-4-5',
|
|
105
106
|
* instructions: 'You are a helpful coding assistant.'
|
|
106
107
|
* });
|
|
107
108
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComputerAgentsClient.js","sourceRoot":"","sources":["../src/ComputerAgentsClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;AAEH,iDAA8D;AAuBrD,+FAvBW,0BAAc,OAuBX;AArBvB,iDAW2B;AAwG3B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,oBAAoB;IAC/B;;;OAGG;IACM,GAAG,CAAY;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACM,OAAO,CAAkB;IAElC;;;;;;;;;;;;;OAaG;IACM,YAAY,CAAuB;IAE5C
|
|
1
|
+
{"version":3,"file":"ComputerAgentsClient.js","sourceRoot":"","sources":["../src/ComputerAgentsClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;AAEH,iDAA8D;AAuBrD,+FAvBW,0BAAc,OAuBX;AArBvB,iDAW2B;AAwG3B;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,oBAAoB;IAC/B;;;OAGG;IACM,GAAG,CAAY;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACM,OAAO,CAAkB;IAElC;;;;;;;;;;;;;OAaG;IACM,YAAY,CAAuB;IAE5C;;;;;;;;;;;;;;OAcG;IACM,MAAM,CAAiB;IAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACM,KAAK,CAAgB;IAE9B;;;;;;;;;;;;;;;;OAgBG;IACM,SAAS,CAAoB;IAEtC;;;;;;;;;;OAUG;IACM,MAAM,CAAiB;IAEhC;;;;;;;;;;OAUG;IACM,OAAO,CAAkB;IAElC;;;;;;;;;;;OAWG;IACM,GAAG,CAAc;IAE1B;;;OAGG;IACM,IAAI,CAAe;IAE5B;;;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C,CAAC,SAAS,CAAC,CAAC;QAEtD,4CAA4C;QAC5C,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,WAAW,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;gBAC3C,IAAI,EAAE,OAAO,CAAC,eAAe,IAAI,SAAS;gBAC1C,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,IAAI;gBAC9C,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAClC,CAAC;IAED,4EAA4E;IAC5E,sBAAsB;IACtB,4EAA4E;IAE5E;;OAEG;IACH,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAc,SAAS,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAU,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;IAC/B,CAAC;CACF;AA/UD,oDA+UC;AASgC,2CAAW;AAKX,8CAAc"}
|
package/dist/cloud/types.d.ts
CHANGED
|
@@ -282,9 +282,9 @@ export interface SendMessageParams {
|
|
|
282
282
|
runId?: string;
|
|
283
283
|
}
|
|
284
284
|
export interface AgentConfig {
|
|
285
|
-
model?:
|
|
285
|
+
model?: AgentModel;
|
|
286
286
|
instructions?: string;
|
|
287
|
-
reasoningEffort?:
|
|
287
|
+
reasoningEffort?: ReasoningEffort;
|
|
288
288
|
}
|
|
289
289
|
export interface StreamEvent {
|
|
290
290
|
type: string;
|
|
@@ -397,8 +397,19 @@ export interface RunDiff {
|
|
|
397
397
|
additions?: number;
|
|
398
398
|
deletions?: number;
|
|
399
399
|
}
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
/**
|
|
401
|
+
* Supported Claude models for agent execution.
|
|
402
|
+
* All agents run via Claude Code CLI in containers.
|
|
403
|
+
*/
|
|
404
|
+
export type AgentModel = 'claude-opus-4-5' | 'claude-sonnet-4-5' | 'claude-haiku-4-5';
|
|
405
|
+
/**
|
|
406
|
+
* Reasoning effort level for extended thinking.
|
|
407
|
+
*/
|
|
408
|
+
export type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high';
|
|
409
|
+
/**
|
|
410
|
+
* Deep research model options (for research skill).
|
|
411
|
+
*/
|
|
412
|
+
export type DeepResearchModel = 'gemini-3-flash-preview' | 'gemini-3-pro-preview';
|
|
402
413
|
export interface AgentBinary {
|
|
403
414
|
path: string;
|
|
404
415
|
args?: string[];
|
|
@@ -413,7 +424,7 @@ export interface CloudAgent {
|
|
|
413
424
|
binary?: AgentBinary;
|
|
414
425
|
reasoningEffort?: ReasoningEffort;
|
|
415
426
|
enabledSkills?: string[];
|
|
416
|
-
deepResearchModel?:
|
|
427
|
+
deepResearchModel?: DeepResearchModel;
|
|
417
428
|
metadata?: Record<string, unknown>;
|
|
418
429
|
createdAt: string;
|
|
419
430
|
updatedAt: string;
|
|
@@ -427,7 +438,7 @@ export interface CreateAgentParams {
|
|
|
427
438
|
binary?: AgentBinary;
|
|
428
439
|
reasoningEffort?: ReasoningEffort;
|
|
429
440
|
enabledSkills?: string[];
|
|
430
|
-
deepResearchModel?:
|
|
441
|
+
deepResearchModel?: DeepResearchModel;
|
|
431
442
|
metadata?: Record<string, unknown>;
|
|
432
443
|
}
|
|
433
444
|
export interface UpdateAgentParams {
|
|
@@ -637,7 +648,7 @@ export interface HealthCheck {
|
|
|
637
648
|
uptime: number;
|
|
638
649
|
checks: {
|
|
639
650
|
gcsfuseMount: boolean;
|
|
640
|
-
|
|
651
|
+
anthropicApiKey: boolean;
|
|
641
652
|
memory: {
|
|
642
653
|
used: number;
|
|
643
654
|
total: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -24,5 +24,5 @@ export { ComputerAgentsClient, CloudClient, TestbaseClient, ApiClientError, } fr
|
|
|
24
24
|
export type { ComputerAgentsClientConfig, RunOptions, RunResult, ApiClientConfig, } from './ComputerAgentsClient';
|
|
25
25
|
export { ProjectsResource, EnvironmentsResource, ThreadsResource, RunsResource, AgentsResource, BudgetResource, BillingResource, SchedulesResource, GitResource, } from './cloud/resources';
|
|
26
26
|
export type { StreamEventCallback, SendMessageOptions, SendMessageResult, ListEnvironmentsParams, } from './cloud/resources';
|
|
27
|
-
export type { PaginationParams, PaginatedResponse, ApiError, Project, CreateProjectParams, UpdateProjectParams, ProjectStats, ProjectType, ProjectSource, Environment, CreateEnvironmentParams, UpdateEnvironmentParams, EnvironmentStatus, EnvironmentVariable, McpServer, ContainerStatus, BuildResult, BuildStatus, BuildStatusResult, BuildLogsResult, TestBuildResult, DockerfileResult, ValidateDockerfileResult, RuntimeConfig, PackagesConfig, AvailableRuntimes, PackageType, InstallPackagesResult, StartContainerParams, StartContainerResult, Thread, CreateThreadParams, UpdateThreadParams, ListThreadsParams, SendMessageParams, ThreadMessage, ThreadStatus, AgentConfig, StreamEvent, MessageStreamEvent, ResponseStartedEvent, ResponseItemCompletedEvent, ResponseCompletedEvent, StreamCompletedEvent, StreamErrorEvent, Run, CreateRunParams, UpdateRunParams, ListRunsParams, RunStatus, RunLogEntry, RunDiff, TokenUsage, CloudAgent, CreateAgentParams, UpdateAgentParams, AgentModel, ReasoningEffort, AgentBinary, BudgetStatus, CanExecuteResult, IncreaseBudgetParams, IncreaseBudgetResult, BillingRecord, ListBillingRecordsParams, BillingAccount, UsageStats, UsageStatsParams, FileEntry, ListFilesParams, UploadFileParams, CreateDirectoryParams, GitDiffFile, GitDiffResult, GitCommitParams, GitCommitResult, GitPushParams, GitPushResult, Schedule, CreateScheduleParams, UpdateScheduleParams, ScheduleType, HealthCheck, Metrics, } from './cloud/types';
|
|
27
|
+
export type { PaginationParams, PaginatedResponse, ApiError, Project, CreateProjectParams, UpdateProjectParams, ProjectStats, ProjectType, ProjectSource, Environment, CreateEnvironmentParams, UpdateEnvironmentParams, EnvironmentStatus, EnvironmentVariable, McpServer, ContainerStatus, BuildResult, BuildStatus, BuildStatusResult, BuildLogsResult, TestBuildResult, DockerfileResult, ValidateDockerfileResult, RuntimeConfig, PackagesConfig, AvailableRuntimes, PackageType, InstallPackagesResult, StartContainerParams, StartContainerResult, Thread, CreateThreadParams, UpdateThreadParams, ListThreadsParams, SendMessageParams, ThreadMessage, ThreadStatus, AgentConfig, StreamEvent, MessageStreamEvent, ResponseStartedEvent, ResponseItemCompletedEvent, ResponseCompletedEvent, StreamCompletedEvent, StreamErrorEvent, Run, CreateRunParams, UpdateRunParams, ListRunsParams, RunStatus, RunLogEntry, RunDiff, TokenUsage, CloudAgent, CreateAgentParams, UpdateAgentParams, AgentModel, ReasoningEffort, DeepResearchModel, AgentBinary, BudgetStatus, CanExecuteResult, IncreaseBudgetParams, IncreaseBudgetResult, BillingRecord, ListBillingRecordsParams, BillingAccount, UsageStats, UsageStatsParams, FileEntry, ListFilesParams, UploadFileParams, CreateDirectoryParams, GitDiffFile, GitDiffResult, GitCommitParams, GitCommitResult, GitPushParams, GitPushResult, Schedule, CreateScheduleParams, UpdateScheduleParams, ScheduleType, HealthCheck, Metrics, } from './cloud/types';
|
|
28
28
|
export { ApiClient } from './cloud/ApiClient';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,+DAOgC;AAN9B,4HAAA,oBAAoB,OAAA;AACpB,kCAAkC;AAClC,mHAAA,WAAW,OAAA;AACX,sHAAA,cAAc,OAAA;AACd,cAAc;AACd,sHAAA,cAAc,OAAA;AAUhB,+EAA+E;AAC/E,yCAAyC;AACzC,+EAA+E;AAE/E,+CAU2B;AATzB,6GAAA,gBAAgB,OAAA;AAChB,iHAAA,oBAAoB,OAAA;AACpB,4GAAA,eAAe,OAAA;AACf,yGAAA,YAAY,OAAA;AACZ,2GAAA,cAAc,OAAA;AACd,2GAAA,cAAc,OAAA;AACd,4GAAA,eAAe,OAAA;AACf,8GAAA,iBAAiB,OAAA;AACjB,wGAAA,WAAW,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAEH,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,+DAOgC;AAN9B,4HAAA,oBAAoB,OAAA;AACpB,kCAAkC;AAClC,mHAAA,WAAW,OAAA;AACX,sHAAA,cAAc,OAAA;AACd,cAAc;AACd,sHAAA,cAAc,OAAA;AAUhB,+EAA+E;AAC/E,yCAAyC;AACzC,+EAA+E;AAE/E,+CAU2B;AATzB,6GAAA,gBAAgB,OAAA;AAChB,iHAAA,oBAAoB,OAAA;AACpB,4GAAA,eAAe,OAAA;AACf,yGAAA,YAAY,OAAA;AACZ,2GAAA,cAAc,OAAA;AACd,2GAAA,cAAc,OAAA;AACd,4GAAA,eAAe,OAAA;AACf,8GAAA,iBAAiB,OAAA;AACjB,wGAAA,WAAW,OAAA;AA6Hb,+EAA+E;AAC/E,4CAA4C;AAC5C,+EAA+E;AAE/E,+CAA8C;AAArC,sGAAA,SAAS,OAAA"}
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "computer-agents",
|
|
3
3
|
"repository": "https://github.com/TestBase-ai/computer-agents",
|
|
4
4
|
"homepage": "https://computer-agents.com",
|
|
5
|
-
"version": "
|
|
6
|
-
"description": "Official SDK for the Computer Agents Cloud API. Execute AI agents in
|
|
5
|
+
"version": "2.0.0",
|
|
6
|
+
"description": "Official SDK for the Computer Agents Cloud API. Execute Claude-powered AI agents in isolated cloud containers.",
|
|
7
7
|
"author": "Computer Agents",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -23,11 +23,14 @@
|
|
|
23
23
|
"computer-agents",
|
|
24
24
|
"ai",
|
|
25
25
|
"agents",
|
|
26
|
+
"claude",
|
|
27
|
+
"anthropic",
|
|
26
28
|
"cloud",
|
|
27
29
|
"api",
|
|
28
30
|
"sdk",
|
|
29
31
|
"automation",
|
|
30
|
-
"code-generation"
|
|
32
|
+
"code-generation",
|
|
33
|
+
"mcp"
|
|
31
34
|
],
|
|
32
35
|
"license": "MIT",
|
|
33
36
|
"dependencies": {},
|