@agentorg/computer 0.0.4 → 0.0.5
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/README.md +5 -1
- package/dist/agentcomputer.js +1174 -302
- package/dist/types/generated/schema.d.ts +103 -2
- package/package.json +3 -2
|
@@ -248,10 +248,10 @@ export interface components {
|
|
|
248
248
|
};
|
|
249
249
|
};
|
|
250
250
|
/**
|
|
251
|
-
* @description commands: the agent's commands as they run, read-only, in commands@1. terminal: a shell of your own in its workspace, as its user, in pty@1.
|
|
251
|
+
* @description commands: the agent's commands as they run, read-only, in commands@1. terminal: a shell of your own in its workspace, as its user, in pty@1. browser: its browser, in screencast@1: binary messages are JPEG frames of the page shown, text messages are ScreencastEvent one way and ScreencastInput the other. Operating it makes you the driver: the agent's browser calls wait up to 25 seconds while you are, then answer that a person has or had it. You stop being the driver when you send release, close the socket, or send nothing for 60 seconds.
|
|
252
252
|
* @enum {string}
|
|
253
253
|
*/
|
|
254
|
-
Surface: "commands" | "terminal";
|
|
254
|
+
Surface: "commands" | "terminal" | "browser";
|
|
255
255
|
/**
|
|
256
256
|
* @description In watch, what you send is dropped.
|
|
257
257
|
* @enum {string}
|
|
@@ -279,6 +279,107 @@ export interface components {
|
|
|
279
279
|
/** Format: date-time */
|
|
280
280
|
expiresAt: string;
|
|
281
281
|
};
|
|
282
|
+
/** @description What the service sends on a screencast@1 socket, as JSON text. */
|
|
283
|
+
ScreencastEvent: {
|
|
284
|
+
/** @constant */
|
|
285
|
+
type: "tabs";
|
|
286
|
+
tabs: {
|
|
287
|
+
id: number;
|
|
288
|
+
url: string;
|
|
289
|
+
title: string;
|
|
290
|
+
}[];
|
|
291
|
+
shown: number | null;
|
|
292
|
+
} | {
|
|
293
|
+
/** @constant */
|
|
294
|
+
type: "viewport";
|
|
295
|
+
width: number;
|
|
296
|
+
height: number;
|
|
297
|
+
} | {
|
|
298
|
+
/** @constant */
|
|
299
|
+
type: "dialog";
|
|
300
|
+
open: boolean;
|
|
301
|
+
/** @enum {string} */
|
|
302
|
+
kind?: "alert" | "confirm" | "prompt" | "beforeunload";
|
|
303
|
+
message?: string;
|
|
304
|
+
defaultValue?: string;
|
|
305
|
+
} | {
|
|
306
|
+
/** @constant */
|
|
307
|
+
type: "file-chooser";
|
|
308
|
+
open: boolean;
|
|
309
|
+
multiple?: boolean;
|
|
310
|
+
} | {
|
|
311
|
+
/** @constant */
|
|
312
|
+
type: "choice";
|
|
313
|
+
multiple: boolean;
|
|
314
|
+
options: {
|
|
315
|
+
value: string;
|
|
316
|
+
label: string;
|
|
317
|
+
selected: boolean;
|
|
318
|
+
}[];
|
|
319
|
+
} | {
|
|
320
|
+
/** @constant */
|
|
321
|
+
type: "driver";
|
|
322
|
+
you: boolean;
|
|
323
|
+
held: boolean;
|
|
324
|
+
agentWaiting: boolean;
|
|
325
|
+
};
|
|
326
|
+
/** @description What an operate socket sends on screencast@1, as JSON text. A watch socket's is dropped. */
|
|
327
|
+
ScreencastInput: {
|
|
328
|
+
/** @constant */
|
|
329
|
+
type: "mouse";
|
|
330
|
+
/** @enum {string} */
|
|
331
|
+
action: "move" | "down" | "up" | "wheel";
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
/** @enum {string} */
|
|
335
|
+
button?: "left" | "right" | "middle";
|
|
336
|
+
deltaX?: number;
|
|
337
|
+
deltaY?: number;
|
|
338
|
+
} | {
|
|
339
|
+
/** @constant */
|
|
340
|
+
type: "key";
|
|
341
|
+
/** @enum {string} */
|
|
342
|
+
action: "down" | "up";
|
|
343
|
+
/** @description A key name */
|
|
344
|
+
key: string;
|
|
345
|
+
} | {
|
|
346
|
+
/** @constant */
|
|
347
|
+
type: "text";
|
|
348
|
+
text: string;
|
|
349
|
+
} | {
|
|
350
|
+
/** @constant */
|
|
351
|
+
type: "dialog";
|
|
352
|
+
accept: boolean;
|
|
353
|
+
text?: string;
|
|
354
|
+
} | {
|
|
355
|
+
/** @constant */
|
|
356
|
+
type: "files";
|
|
357
|
+
files: {
|
|
358
|
+
name: string;
|
|
359
|
+
mimeType?: string;
|
|
360
|
+
/** @description Base64. */
|
|
361
|
+
data: string;
|
|
362
|
+
}[];
|
|
363
|
+
} | {
|
|
364
|
+
/** @constant */
|
|
365
|
+
type: "choice";
|
|
366
|
+
values: string[];
|
|
367
|
+
} | {
|
|
368
|
+
/** @constant */
|
|
369
|
+
type: "tab";
|
|
370
|
+
/** @enum {string} */
|
|
371
|
+
action: "show" | "open" | "close";
|
|
372
|
+
id?: number;
|
|
373
|
+
url?: string;
|
|
374
|
+
} | {
|
|
375
|
+
/** @constant */
|
|
376
|
+
type: "navigate";
|
|
377
|
+
/** @description A URL */
|
|
378
|
+
to: string;
|
|
379
|
+
} | {
|
|
380
|
+
/** @constant */
|
|
381
|
+
type: "release";
|
|
382
|
+
};
|
|
282
383
|
ComputerLogs: {
|
|
283
384
|
logs: {
|
|
284
385
|
/** Format: date-time */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentorg/computer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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": {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"test": "npm run build && node --test --test-timeout=60000 \"out/test/**/*.test.js\""
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@playwright/mcp": "0.0.84"
|
|
31
|
+
"@playwright/mcp": "0.0.84",
|
|
32
|
+
"playwright-core": "1.65.0-alpha-2026-10-30"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@agentorg/exec": "0.0.3",
|