@agentorg/computer 0.0.18 → 0.0.20

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.
@@ -38,14 +38,25 @@ export interface ConnectionOpts {
38
38
  export interface CreateOpts extends ConnectionOpts {
39
39
  access: Schemas["Access"];
40
40
  browser?: boolean;
41
- /** How it is isolated. By default, as the service was started to make them. */
41
+ /** How it is isolated: a container by default, and no other is offered now. */
42
42
  isolation?: Schemas["Isolation"];
43
43
  workspace?: string;
44
+ /** A folder whose files its workspace starts with, copied once when it is made. */
45
+ copyFrom?: string;
44
46
  name?: string;
45
47
  /** How long until it stops, in milliseconds. By default it doesn't. */
46
48
  timeoutMs?: number;
47
49
  metadata?: Record<string, string>;
48
50
  }
51
+ /** This computer, attached whole: its files and commands reach all of it, as the service's user. */
52
+ export interface AttachOpts extends Omit<CreateOpts, "isolation" | "workspace" | "copyFrom" | "browser"> {
53
+ /** Its work folder, where commands and relative paths start. Detaching never removes it. */
54
+ workspace: string;
55
+ /** A headless browser of its own, or the person's own browser, signed in. */
56
+ browser?: boolean | "own";
57
+ /** Whether its agent has the machine's screen, through Cua Driver. */
58
+ screen?: boolean;
59
+ }
49
60
  export interface CommandResult {
50
61
  exitCode: number;
51
62
  output: string;
@@ -142,6 +153,8 @@ export declare class Computer {
142
153
  readonly terminals: Terminals;
143
154
  private constructor();
144
155
  static create(opts: CreateOpts): Promise<Computer>;
156
+ /** This computer, attached whole. Killing it detaches it and removes nothing of the machine's. */
157
+ static attach(opts: AttachOpts): Promise<Computer>;
145
158
  /** A computer made earlier. Its token was shown when it was made, and only then. */
146
159
  static connect(computerID: string, opts: ConnectionOpts & {
147
160
  accessToken: string;
@@ -172,10 +185,14 @@ export declare class Computer {
172
185
  computerID: string;
173
186
  name: string;
174
187
  state: components["schemas"]["ComputerState"];
188
+ reason: string | null;
189
+ progress: components["schemas"]["Progress"] | null;
175
190
  access: components["schemas"]["Access"];
176
191
  isolation: components["schemas"]["Isolation"];
192
+ attached: boolean;
177
193
  version: string | null;
178
- browser: boolean;
194
+ browser: boolean | "own";
195
+ screen: boolean;
179
196
  workspace: string | null;
180
197
  startedAt: string;
181
198
  endAt: string | null;
@@ -187,6 +204,7 @@ export declare class Computer {
187
204
  tools: {
188
205
  computer: string[];
189
206
  browser: string[];
207
+ screen: string[];
190
208
  };
191
209
  }>;
192
210
  isRunning(): Promise<boolean>;
@@ -194,10 +212,14 @@ export declare class Computer {
194
212
  computerID: string;
195
213
  name: string;
196
214
  state: components["schemas"]["ComputerState"];
215
+ reason: string | null;
216
+ progress: components["schemas"]["Progress"] | null;
197
217
  access: components["schemas"]["Access"];
198
218
  isolation: components["schemas"]["Isolation"];
219
+ attached: boolean;
199
220
  version: string | null;
200
- browser: boolean;
221
+ browser: boolean | "own";
222
+ screen: boolean;
201
223
  workspace: string | null;
202
224
  startedAt: string;
203
225
  endAt: string | null;
@@ -208,10 +230,14 @@ export declare class Computer {
208
230
  computerID: string;
209
231
  name: string;
210
232
  state: components["schemas"]["ComputerState"];
233
+ reason: string | null;
234
+ progress: components["schemas"]["Progress"] | null;
211
235
  access: components["schemas"]["Access"];
212
236
  isolation: components["schemas"]["Isolation"];
237
+ attached: boolean;
213
238
  version: string | null;
214
- browser: boolean;
239
+ browser: boolean | "own";
240
+ screen: boolean;
215
241
  workspace: string | null;
216
242
  startedAt: string;
217
243
  endAt: string | null;
@@ -224,10 +250,14 @@ export declare class Computer {
224
250
  computerID: string;
225
251
  name: string;
226
252
  state: components["schemas"]["ComputerState"];
253
+ reason: string | null;
254
+ progress: components["schemas"]["Progress"] | null;
227
255
  access: components["schemas"]["Access"];
228
256
  isolation: components["schemas"]["Isolation"];
257
+ attached: boolean;
229
258
  version: string | null;
230
- browser: boolean;
259
+ browser: boolean | "own";
260
+ screen: boolean;
231
261
  workspace: string | null;
232
262
  startedAt: string;
233
263
  endAt: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentorg/computer",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Computers for agents, as a service: a terminal, files and a browser over MCP",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -21,6 +21,9 @@
21
21
  "dist/THIRD_PARTY_LICENSES.txt",
22
22
  "NOTICE"
23
23
  ],
24
+ "publishConfig": {
25
+ "tag": "next"
26
+ },
24
27
  "scripts": {
25
28
  "generate": "node scripts/generate.js",
26
29
  "build": "tsc -p tsconfig.json && node scripts/bundle.js",
@@ -31,7 +34,7 @@
31
34
  "playwright-core": "1.65.0-alpha-2026-10-30"
32
35
  },
33
36
  "devDependencies": {
34
- "@agentorg/exec": "0.0.8",
37
+ "@agentorg/exec": "0.0.10",
35
38
  "@biomejs/biome": "2.6.5",
36
39
  "@modelcontextprotocol/client": "2.4.0",
37
40
  "@modelcontextprotocol/node": "2.1.2",