@elizaos/plugin-computeruse 2.0.0-beta.1 → 2.0.11-beta.7

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.
Files changed (67) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -0
  3. package/package.json +36 -10
  4. package/dist/actions/desktop-handlers.d.ts +0 -20
  5. package/dist/actions/desktop-handlers.d.ts.map +0 -1
  6. package/dist/actions/desktop.d.ts +0 -11
  7. package/dist/actions/desktop.d.ts.map +0 -1
  8. package/dist/actions/helpers.d.ts +0 -33
  9. package/dist/actions/helpers.d.ts.map +0 -1
  10. package/dist/actions/use-computer.d.ts +0 -3
  11. package/dist/actions/use-computer.d.ts.map +0 -1
  12. package/dist/approval-manager.d.ts +0 -29
  13. package/dist/approval-manager.d.ts.map +0 -1
  14. package/dist/index.d.ts +0 -33
  15. package/dist/index.d.ts.map +0 -1
  16. package/dist/index.js +0 -7132
  17. package/dist/index.js.map +0 -34
  18. package/dist/osworld/action-converter.d.ts +0 -35
  19. package/dist/osworld/action-converter.d.ts.map +0 -1
  20. package/dist/osworld/adapter.d.ts +0 -78
  21. package/dist/osworld/adapter.d.ts.map +0 -1
  22. package/dist/osworld/types.d.ts +0 -69
  23. package/dist/osworld/types.d.ts.map +0 -1
  24. package/dist/platform/a11y.d.ts +0 -36
  25. package/dist/platform/a11y.d.ts.map +0 -1
  26. package/dist/platform/browser.d.ts +0 -61
  27. package/dist/platform/browser.d.ts.map +0 -1
  28. package/dist/platform/capabilities.d.ts +0 -10
  29. package/dist/platform/capabilities.d.ts.map +0 -1
  30. package/dist/platform/desktop.d.ts +0 -33
  31. package/dist/platform/desktop.d.ts.map +0 -1
  32. package/dist/platform/driver.d.ts +0 -27
  33. package/dist/platform/driver.d.ts.map +0 -1
  34. package/dist/platform/file-ops.d.ts +0 -10
  35. package/dist/platform/file-ops.d.ts.map +0 -1
  36. package/dist/platform/helpers.d.ts +0 -61
  37. package/dist/platform/helpers.d.ts.map +0 -1
  38. package/dist/platform/nut-driver.d.ts +0 -19
  39. package/dist/platform/nut-driver.d.ts.map +0 -1
  40. package/dist/platform/permissions.d.ts +0 -21
  41. package/dist/platform/permissions.d.ts.map +0 -1
  42. package/dist/platform/screenshot.d.ts +0 -16
  43. package/dist/platform/screenshot.d.ts.map +0 -1
  44. package/dist/platform/security.d.ts +0 -12
  45. package/dist/platform/security.d.ts.map +0 -1
  46. package/dist/platform/terminal.d.ts +0 -38
  47. package/dist/platform/terminal.d.ts.map +0 -1
  48. package/dist/platform/windows-list.d.ts +0 -36
  49. package/dist/platform/windows-list.d.ts.map +0 -1
  50. package/dist/providers/computer-state.d.ts +0 -9
  51. package/dist/providers/computer-state.d.ts.map +0 -1
  52. package/dist/register-routes.d.ts +0 -2
  53. package/dist/register-routes.d.ts.map +0 -1
  54. package/dist/register-routes.js +0 -7111
  55. package/dist/register-routes.js.map +0 -34
  56. package/dist/routes/computer-use-compat-routes.d.ts +0 -29
  57. package/dist/routes/computer-use-compat-routes.d.ts.map +0 -1
  58. package/dist/routes/computer-use-routes.d.ts +0 -3
  59. package/dist/routes/computer-use-routes.d.ts.map +0 -1
  60. package/dist/routes/sandbox-routes.d.ts +0 -53
  61. package/dist/routes/sandbox-routes.d.ts.map +0 -1
  62. package/dist/services/computer-use-service.d.ts +0 -66
  63. package/dist/services/computer-use-service.d.ts.map +0 -1
  64. package/dist/services/desktop-control.d.ts +0 -35
  65. package/dist/services/desktop-control.d.ts.map +0 -1
  66. package/dist/types.d.ts +0 -275
  67. package/dist/types.d.ts.map +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shaw Walters and elizaOS Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # `@elizaos/plugin-computeruse`
2
+
3
+ Desktop automation plugin for elizaOS agents — screenshots, mouse /
4
+ keyboard control, browser CDP automation, window management, clipboard,
5
+ and the OCR provider registry that other plugins contribute to.
6
+
7
+ Ported from
8
+ [`coasty-ai/open-computer-use`](https://github.com/coasty-ai/open-computer-use)
9
+ (Apache 2.0).
10
+
11
+ ## Boundary with `@elizaos/plugin-vision`
12
+
13
+ This plugin owns the OS surfaces:
14
+
15
+ - screen / display capture (`src/platform/capture.ts`,
16
+ `src/platform/displays.ts`,
17
+ `ComputerUseService.captureScreen()`),
18
+ - input + windows + clipboard + accessibility,
19
+ - the OCR provider registries — `OcrProvider` (line-level) and
20
+ `CoordOcrProvider` (hierarchical with absolute coords), defined in
21
+ `src/mobile/ocr-provider.ts`.
22
+
23
+ `@elizaos/plugin-vision` owns the camera pipeline, scene description
24
+ via `runtime.useModel(IMAGE_DESCRIPTION)`, the screen tiler, the
25
+ detector pipeline (faces / people / objects), and the OCR
26
+ implementations themselves. plugin-vision *consumes* capture from this
27
+ plugin via `runtime.getService("computeruse")` and *contributes* the
28
+ hierarchical OCR adapter into this plugin's `registerCoordOcrProvider`
29
+ seam at boot.
30
+
31
+ Both seams are runtime feature-detected — neither package depends on
32
+ the other.
33
+
34
+ ## Enabling
35
+
36
+ - Config: `features.computeruse: true`
37
+ - Env: `COMPUTER_USE_ENABLED=1`
38
+
39
+ ## Platform requirements
40
+
41
+ | OS | Capture | Input |
42
+ |----|---------|-------|
43
+ | macOS | `screencapture` (built-in) | `cliclick` (`brew install cliclick`), AppleScript |
44
+ | Linux | `import` (ImageMagick) / `scrot` | `xdotool` (`sudo apt install xdotool`) |
45
+ | Windows | PowerShell + `System.Drawing` | PowerShell |
46
+ | Browser | — | `puppeteer-core` + Chrome / Edge / Brave |
47
+
48
+ ## Surface
49
+
50
+ - **Actions** — `COMPUTER_USE` (canonical screenshot / click / key /
51
+ scroll / etc.), `WINDOW` (list / focus / arrange / move /...), and
52
+ `COMPUTER_USE_AGENT` (high-level goal-driven autonomous desktop loop:
53
+ Brain → Cascade → dispatch up to `maxSteps` iterations).
54
+ Subactions of `COMPUTER_USE` and `WINDOW` are promoted to virtual
55
+ top-level actions (e.g. `COMPUTER_USE_CLICK`, `WINDOW_FOCUS`) so the
56
+ planner picks a specific verb directly from the catalogue.
57
+ - **Services** — `ComputerUseService` (`serviceType = "computeruse"`)
58
+ and `VisionContextProvider`.
59
+ - **Providers** — `computerStateProvider`, `sceneProvider`.
60
+ - **Routes** — approval inbox + SSE stream + approval-mode toggle under
61
+ `/api/computer-use/...`.
62
+
63
+ ## File operations + shell
64
+
65
+ File operations live on the FILE action; shell / terminal access lives
66
+ on the SHELL action. They are **not** exposed by this plugin.
67
+
68
+ ## Further reading
69
+
70
+ - [`docs/MULTI_MONITOR.md`](./docs/MULTI_MONITOR.md) — multi-display
71
+ capture and coordinate translation.
72
+ - [`docs/SCENE_BUILDER.md`](./docs/SCENE_BUILDER.md) — how windows,
73
+ a11y, screen, and OCR are composed into a single `Scene`.
74
+ - [`docs/IOS_CONSTRAINTS.md`](./docs/IOS_CONSTRAINTS.md) /
75
+ [`docs/ANDROID_CONSTRAINTS.md`](./docs/ANDROID_CONSTRAINTS.md) —
76
+ honest scope on mobile.
77
+ - [`docs/MOBILE_ASSISTANT_ROUTING.md`](./docs/MOBILE_ASSISTANT_ROUTING.md)
78
+ — mobile request routing.
79
+ - [`docs/AOSP_SYSTEM_APP.md`](./docs/AOSP_SYSTEM_APP.md) — AOSP
80
+ system-app deployment notes.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-computeruse",
3
- "version": "2.0.0-beta.1",
4
- "description": "Desktop automation plugin — screenshots, mouse/keyboard control, browser CDP, terminal access, file operations, and window management for elizaOS agents. Ported from open-computer-use (Apache 2.0).",
3
+ "version": "2.0.11-beta.7",
4
+ "description": "Desktop automation plugin — screenshots, mouse/keyboard control, browser CDP, and window management for elizaOS agents. Ported from open-computer-use (Apache 2.0).",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -9,9 +9,25 @@
9
9
  "exports": {
10
10
  "./package.json": "./package.json",
11
11
  ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "eliza-source": {
14
+ "types": "./src/index.ts",
15
+ "import": "./src/index.ts",
16
+ "default": "./src/index.ts"
17
+ },
12
18
  "import": "./dist/index.js",
13
- "default": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
19
+ "default": "./dist/index.js"
20
+ },
21
+ "./*.css": "./dist/*.css",
22
+ "./*": {
23
+ "types": "./dist/*.d.ts",
24
+ "eliza-source": {
25
+ "types": "./src/*.ts",
26
+ "import": "./src/*.ts",
27
+ "default": "./src/*.ts"
28
+ },
29
+ "import": "./dist/*.js",
30
+ "default": "./dist/*.js"
15
31
  }
16
32
  },
17
33
  "files": [
@@ -23,16 +39,18 @@
23
39
  "postinstall": "node scripts/ensure-platform-deps.mjs",
24
40
  "build": "bun run build.ts",
25
41
  "test": "vitest run --config vitest.config.ts",
26
- "typecheck": "tsc --noEmit"
42
+ "typecheck": "tsgo --noEmit",
43
+ "validate:ios-device-evidence": "node scripts/validate-ios-device-evidence.mjs"
27
44
  },
28
45
  "peerDependencies": {
29
- "@elizaos/core": "2.0.0-beta.1"
46
+ "@elizaos/core": "2.0.11-beta.7"
30
47
  },
31
48
  "devDependencies": {
32
- "@elizaos/core": "2.0.0-beta.1",
49
+ "@elizaos/core": "2.0.11-beta.7",
33
50
  "@types/node": "^25.2.3",
51
+ "bun-types": "^1.3.14",
34
52
  "typescript": "^6.0.3",
35
- "vitest": "4.1.5"
53
+ "vitest": "4.1.9"
36
54
  },
37
55
  "dependencies": {
38
56
  "@nut-tree-fork/nut-js": "^4.2.6",
@@ -67,7 +85,7 @@
67
85
  "type": "string",
68
86
  "description": "Approval mode for computer-use commands: full_control auto-approves everything, smart_approve auto-approves safe read-only commands, approve_all requires approval for every command, off denies all commands.",
69
87
  "required": false,
70
- "default": "full_control",
88
+ "default": "smart_approve",
71
89
  "enum": [
72
90
  "full_control",
73
91
  "smart_approve",
@@ -93,10 +111,18 @@
93
111
  "legacy"
94
112
  ],
95
113
  "sensitive": false
114
+ },
115
+ "BROWSER_EXECUTE_DISABLED": {
116
+ "type": "boolean",
117
+ "description": "browser_execute / executeBrowser always fail closed (GHSA-rcvr-766c-4phv). Use DOM, clickables, click, type, navigate, and screenshot instead.",
118
+ "required": false,
119
+ "default": true,
120
+ "sensitive": false
96
121
  }
97
122
  }
98
123
  },
99
124
  "publishConfig": {
100
125
  "access": "public"
101
- }
126
+ },
127
+ "gitHead": "cdbc876f793d96073d7eb0d09715a031ce0cd32e"
102
128
  }
@@ -1,20 +0,0 @@
1
- /**
2
- * Pure handler functions for the DESKTOP parent action — one per op group.
3
- *
4
- * Each handler takes the live `ComputerUseService` instance and the resolved
5
- * params object, executes the underlying service call, and returns an
6
- * `ActionResult`. Format/text helpers stay local to this file so the parent
7
- * action only does dispatch.
8
- *
9
- * Logic preserved verbatim from the original per-verb actions
10
- * (file-action.ts / manage-window.ts / terminal-action.ts).
11
- */
12
- import type { ActionResult, HandlerCallback } from "@elizaos/core";
13
- import type { ComputerUseService } from "../services/computer-use-service.js";
14
- import type { FileActionParams, TerminalActionParams, WindowActionParams } from "../types.js";
15
- export declare const DESKTOP_OPS: readonly ["file", "window", "terminal"];
16
- export type DesktopOp = (typeof DESKTOP_OPS)[number];
17
- export declare function handleFileOp(service: ComputerUseService, params: FileActionParams, callback?: HandlerCallback): Promise<ActionResult>;
18
- export declare function handleWindowOp(service: ComputerUseService, params: WindowActionParams, callback?: HandlerCallback): Promise<ActionResult>;
19
- export declare function handleTerminalOp(service: ComputerUseService, params: TerminalActionParams, callback?: HandlerCallback): Promise<ActionResult>;
20
- //# sourceMappingURL=desktop-handlers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"desktop-handlers.d.ts","sourceRoot":"","sources":["../../src/actions/desktop-handlers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,KAAK,EACV,gBAAgB,EAEhB,oBAAoB,EAEpB,kBAAkB,EAEnB,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,WAAW,yCAA0C,CAAC;AACnE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAmBrD,wBAAsB,YAAY,CAChC,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,gBAAgB,EACxB,QAAQ,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAoBvB;AA4BD,wBAAsB,cAAc,CAClC,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,kBAAkB,EAC1B,QAAQ,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAmBvB;AAcD,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,kBAAkB,EAC3B,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,eAAe,GACzB,OAAO,CAAC,YAAY,CAAC,CAoCvB"}
@@ -1,11 +0,0 @@
1
- /**
2
- * DESKTOP parent action — single canonical action that dispatches to the
3
- * underlying desktop ops (file, window, terminal). Built on the same
4
- * `op`/`subaction` pattern as BROWSER. Future ops (`screenshot`, `ocr`,
5
- * `detect_elements`) are reserved in the enum but not yet implemented here —
6
- * canonical screen capture / OCR / element detection live on the
7
- * COMPUTER_USE action and stay there until intentionally moved.
8
- */
9
- import { type Action } from "@elizaos/core";
10
- export declare const desktopAction: Action;
11
- //# sourceMappingURL=desktop.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"desktop.d.ts","sourceRoot":"","sources":["../../src/actions/desktop.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAqCvB,eAAO,MAAM,aAAa,EAAE,MAkT3B,CAAC"}
@@ -1,33 +0,0 @@
1
- import type { ActionResult, HandlerOptions, Memory } from "@elizaos/core";
2
- export interface NativeComputerUseResult {
3
- success: boolean;
4
- message?: string;
5
- error?: string;
6
- permissionDenied?: boolean;
7
- permissionType?: string;
8
- approvalRequired?: boolean;
9
- approvalId?: string;
10
- screenshot?: string;
11
- frontendScreenshot?: string;
12
- }
13
- export declare function resolveActionParams<T>(message: Memory, options?: HandlerOptions): T;
14
- export declare function buildScreenshotAttachment(args: {
15
- idPrefix: string;
16
- screenshot: string;
17
- title: string;
18
- description: string;
19
- }): {
20
- id: string;
21
- url: string;
22
- title: string;
23
- source: string;
24
- description: string;
25
- contentType: "image";
26
- };
27
- export declare function toComputerUseActionResult<T extends NativeComputerUseResult>({ action, result, text, suppressClipboard, }: {
28
- action: string;
29
- result: T;
30
- text: string;
31
- suppressClipboard?: boolean;
32
- }): ActionResult;
33
- //# sourceMappingURL=helpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/actions/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,cAAc,GACvB,CAAC,CAiBH;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;;;;;;;EASA;AAqBD,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,uBAAuB,EAAE,EAC3E,MAAM,EACN,MAAM,EACN,IAAI,EACJ,iBAAyB,GAC1B,EAAE;IACD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,CAAC,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,GAAG,YAAY,CAYf"}
@@ -1,3 +0,0 @@
1
- import type { Action } from "@elizaos/core";
2
- export declare const useComputerAction: Action;
3
- //# sourceMappingURL=use-computer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-computer.d.ts","sourceRoot":"","sources":["../../src/actions/use-computer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAOP,MAAM,eAAe,CAAC;AAuJvB,eAAO,MAAM,iBAAiB,EAAE,MA6O/B,CAAC"}
@@ -1,29 +0,0 @@
1
- import type { ApprovalMode, ApprovalResolution, ApprovalSnapshot } from "./types.js";
2
- type ApprovalDecision = {
3
- approved: boolean;
4
- cancelled: boolean;
5
- reason?: string;
6
- };
7
- type ApprovalListener = (snapshot: ApprovalSnapshot) => void;
8
- export declare function isApprovalMode(value: string): value is ApprovalMode;
9
- export declare class ComputerUseApprovalManager {
10
- private mode;
11
- private pending;
12
- private listeners;
13
- private readonly configPath;
14
- constructor();
15
- getMode(): ApprovalMode;
16
- setMode(mode: string): ApprovalMode;
17
- shouldAutoApprove(command: string): boolean;
18
- isDenyAll(): boolean;
19
- requestApproval(command: string, parameters?: Record<string, unknown>): Promise<ApprovalDecision>;
20
- getSnapshot(): ApprovalSnapshot;
21
- resolveApproval(id: string, approved: boolean, reason?: string): ApprovalResolution | null;
22
- cancelAll(reason?: string): void;
23
- subscribe(listener: ApprovalListener): () => void;
24
- private loadConfig;
25
- private saveConfig;
26
- private emit;
27
- }
28
- export {};
29
- //# sourceMappingURL=approval-manager.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"approval-manager.d.ts","sourceRoot":"","sources":["../src/approval-manager.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AA+BpB,KAAK,gBAAgB,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAMF,KAAK,gBAAgB,GAAG,CAAC,QAAQ,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAE7D,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAEnE;AAED,qBAAa,0BAA0B;IACrC,OAAO,CAAC,IAAI,CAAgC;IAC5C,OAAO,CAAC,OAAO,CAA4C;IAC3D,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAIzB;;IAMF,OAAO,IAAI,YAAY;IAIvB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IASnC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAY3C,SAAS,IAAI,OAAO;IAIpB,eAAe,CACb,OAAO,EAAE,MAAM,EACf,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACvC,OAAO,CAAC,gBAAgB,CAAC;IAgB5B,WAAW,IAAI,gBAAgB;IAe/B,eAAe,CACb,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,MAAM,GACd,kBAAkB,GAAG,IAAI;IAsB5B,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAQhC,SAAS,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,IAAI;IAQjD,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,IAAI;CAMb"}
package/dist/index.d.ts DELETED
@@ -1,33 +0,0 @@
1
- /**
2
- * @elizaos/plugin-computeruse
3
- *
4
- * Desktop automation plugin for elizaOS agents — screenshots, mouse/keyboard
5
- * control, browser CDP automation, terminal access, file operations, and
6
- * window management.
7
- *
8
- * Deeply ported from coasty-ai/open-computer-use (Apache 2.0).
9
- *
10
- * Enable via:
11
- * - Config: features.computeruse: true
12
- * - Env: COMPUTER_USE_ENABLED=1
13
- *
14
- * Platform requirements:
15
- * macOS — screencapture (built-in), cliclick (brew install cliclick), AppleScript
16
- * Linux — xdotool (sudo apt install xdotool), ImageMagick/scrot for screenshots
17
- * Windows — PowerShell (built-in)
18
- * Browser — puppeteer-core + Chrome/Edge/Brave installed
19
- *
20
- * @module @elizaos/plugin-computeruse
21
- */
22
- import type { Plugin } from "@elizaos/core";
23
- export declare const computerUsePlugin: Plugin;
24
- export declare const computerusePlugin: Plugin;
25
- export default computerUsePlugin;
26
- export { ComputerUseService } from "./services/computer-use-service.js";
27
- export { captureDesktopScreenshot, commandExists, detectDesktopControlCapabilities, getDesktopPlatformName, isHeadfulGuiAvailable, listDesktopWindows, performDesktopClick, performDesktopDoubleClick, performDesktopKeypress, performDesktopMouseMove, performDesktopScroll, performDesktopTextInput, } from "./services/desktop-control.js";
28
- export type { DesktopControlCapabilities, DesktopControlCapability, DesktopInputButton, DesktopScreenshotRegion, DesktopWindowInfo, } from "./services/desktop-control.js";
29
- export { handleComputerUseRoutes } from "./routes/computer-use-routes.js";
30
- export { handleSandboxRoute } from "./routes/sandbox-routes.js";
31
- export type { ActionHistoryEntry, ApprovalMode, ApprovalResolution, ApprovalSnapshot, BrowserActionParams, BrowserActionResult, BrowserActionType, BrowserInfo, BrowserState, BrowserTab, ClickableElement, ComputerActionResult, ComputerUseConfig, ComputerUseResult, DesktopActionParams, DesktopActionType, FileActionParams, FileActionResult, FileActionType, FileEntry, PendingApproval, PermissionType, PlatformCapabilities, ScreenRegion, ScreenSize, TerminalActionParams, TerminalActionResult, TerminalActionType, WindowActionParams, WindowActionResult, WindowActionType, WindowInfo, } from "./types.js";
32
- export * from "./register-routes.js";
33
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,eAAe,CAAC;AAsCnD,eAAO,MAAM,iBAAiB,EAAE,MA2B/B,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAoB,CAAC;AAEnD,eAAe,iBAAiB,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EACL,wBAAwB,EACxB,aAAa,EACb,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,cAAc,sBAAsB,CAAC"}