@agentorg/computer 0.0.14 → 0.0.16

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.
package/dist/sdk.js CHANGED
@@ -24794,13 +24794,14 @@ var Computer = class _Computer {
24794
24794
  this.files = new Files(this.#computer);
24795
24795
  }
24796
24796
  static async create(opts) {
24797
- const { access, browser, workspace, name, timeoutMs, metadata, apiKey, apiUrl } = opts;
24797
+ const { access, browser, isolation, workspace, name, timeoutMs, metadata, apiKey, apiUrl } = opts;
24798
24798
  const connection = { ...apiKey ? { apiKey } : {}, ...apiUrl ? { apiUrl } : {} };
24799
24799
  const created = answered(
24800
24800
  await apiOf(connection).POST("/v1/computers", {
24801
24801
  body: {
24802
24802
  access,
24803
24803
  browser: browser ?? false,
24804
+ ...isolation === void 0 ? {} : { isolation },
24804
24805
  ...workspace === void 0 ? {} : { workspace },
24805
24806
  ...name === void 0 ? {} : { name },
24806
24807
  ...timeoutMs === void 0 ? {} : { timeout: seconds(timeoutMs) },
@@ -186,7 +186,10 @@ export interface components {
186
186
  * @enum {string}
187
187
  */
188
188
  Access: "none" | "read" | "files" | "terminal";
189
- /** @enum {string} */
189
+ /**
190
+ * @description failed: it was to be running and isn't, because its browser or container ended by itself, or because it couldn't be brought back when the service started. Its logs say why. Stop it and start it again.
191
+ * @enum {string}
192
+ */
190
193
  ComputerState: "running" | "stopped" | "failed";
191
194
  /** @description Seconds from now until the computer stops. */
192
195
  Timeout: number;
@@ -204,9 +207,16 @@ export interface components {
204
207
  browser: boolean;
205
208
  /** @description The full path of a folder that exists, on the service's machine. With none, the service makes a folder, which goes when the computer is killed. A folder named here never does. */
206
209
  workspace?: string;
210
+ /** @description How it is isolated, which it keeps for as long as it exists. Left out, it is the service's own, the `isolation` that `getInfo` answers. */
211
+ isolation?: components["schemas"]["Isolation"];
207
212
  timeout?: components["schemas"]["Timeout"];
208
213
  metadata?: components["schemas"]["Metadata"];
209
214
  };
215
+ /**
216
+ * @description none: processes of whoever started the service. container: a container of its own, which needs Docker on the service's machine.
217
+ * @enum {string}
218
+ */
219
+ Isolation: "none" | "container";
210
220
  /** @description MCP over Streamable HTTP, each taking the computer's access token as a bearer. */
211
221
  Endpoints: {
212
222
  /** @description The terminal and files. */
@@ -219,6 +229,8 @@ export interface components {
219
229
  name: string;
220
230
  state: components["schemas"]["ComputerState"];
221
231
  access: components["schemas"]["Access"];
232
+ /** @description The isolation it was made in. It is never run in another. */
233
+ isolation: components["schemas"]["Isolation"];
222
234
  browser: boolean;
223
235
  workspace: string | null;
224
236
  /**
@@ -547,11 +559,10 @@ export interface components {
547
559
  };
548
560
  ServiceInfo: {
549
561
  version: string;
550
- /**
551
- * @description How this service isolates its computers, chosen when it is started.
552
- * @enum {string}
553
- */
554
- isolation: "none" | "container";
562
+ /** @description The isolation of a computer made without saying which, chosen when the service is started. */
563
+ isolation: components["schemas"]["Isolation"];
564
+ /** @description The isolations a computer can be made in now, `none` first. `container` is among them while Docker answers on the service's machine. It is what to offer, not a promise: Docker is asked for a second here and for ten when a container is made, so one that is slow can be missing here and still be made. If `isolation` itself is missing, a computer made without saying which is refused with 409. */
565
+ isolationsAvailable: components["schemas"]["Isolation"][];
555
566
  };
556
567
  };
557
568
  responses: {
@@ -38,6 +38,8 @@ 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. */
42
+ isolation?: Schemas["Isolation"];
41
43
  workspace?: string;
42
44
  name?: string;
43
45
  /** How long until it stops, in milliseconds. By default it doesn't. */
@@ -171,6 +173,7 @@ export declare class Computer {
171
173
  name: string;
172
174
  state: components["schemas"]["ComputerState"];
173
175
  access: components["schemas"]["Access"];
176
+ isolation: components["schemas"]["Isolation"];
174
177
  browser: boolean;
175
178
  workspace: string | null;
176
179
  startedAt: string;
@@ -191,6 +194,7 @@ export declare class Computer {
191
194
  name: string;
192
195
  state: components["schemas"]["ComputerState"];
193
196
  access: components["schemas"]["Access"];
197
+ isolation: components["schemas"]["Isolation"];
194
198
  browser: boolean;
195
199
  workspace: string | null;
196
200
  startedAt: string;
@@ -203,6 +207,7 @@ export declare class Computer {
203
207
  name: string;
204
208
  state: components["schemas"]["ComputerState"];
205
209
  access: components["schemas"]["Access"];
210
+ isolation: components["schemas"]["Isolation"];
206
211
  browser: boolean;
207
212
  workspace: string | null;
208
213
  startedAt: string;
@@ -217,6 +222,7 @@ export declare class Computer {
217
222
  name: string;
218
223
  state: components["schemas"]["ComputerState"];
219
224
  access: components["schemas"]["Access"];
225
+ isolation: components["schemas"]["Isolation"];
220
226
  browser: boolean;
221
227
  workspace: string | null;
222
228
  startedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentorg/computer",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
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": {
@@ -31,7 +31,7 @@
31
31
  "playwright-core": "1.65.0-alpha-2026-10-30"
32
32
  },
33
33
  "devDependencies": {
34
- "@agentorg/exec": "0.0.7",
34
+ "@agentorg/exec": "0.0.8",
35
35
  "@biomejs/biome": "2.6.5",
36
36
  "@modelcontextprotocol/client": "2.4.0",
37
37
  "@modelcontextprotocol/node": "2.1.2",