@mirasim/computer-use 0.0.0-stage → 0.1.0-rc.3
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/LICENSE +202 -0
- package/NOTICE +16 -0
- package/README.md +154 -2
- package/THIRD_PARTY_NOTICES +488 -0
- package/bin/mirasim-cu.mjs +30 -0
- package/dist/entries/cli.d.ts +2 -0
- package/dist/entries/cli.js +32 -0
- package/dist/entries/commands/approvals.d.ts +1 -0
- package/dist/entries/commands/approvals.js +17 -0
- package/dist/entries/commands/bridge-host.d.ts +1 -0
- package/dist/entries/commands/bridge-host.js +7 -0
- package/dist/entries/commands/bridge.d.ts +1 -0
- package/dist/entries/commands/bridge.js +16 -0
- package/dist/entries/commands/browser-state.d.ts +1 -0
- package/dist/entries/commands/browser-state.js +8 -0
- package/dist/entries/commands/capture-server.d.ts +1 -0
- package/dist/entries/commands/capture-server.js +5 -0
- package/dist/entries/commands/help.d.ts +2 -0
- package/dist/entries/commands/help.js +1 -0
- package/dist/entries/commands/native-host-options.d.ts +32 -0
- package/dist/entries/commands/native-host-options.js +7 -0
- package/dist/entries/commands/setup-macos.d.ts +1 -0
- package/dist/entries/commands/setup-macos.js +4 -0
- package/dist/entries/commands/setup.d.ts +1 -0
- package/dist/entries/commands/setup.js +15 -0
- package/dist/entries/mcp.d.ts +1 -0
- package/dist/entries/mcp.js +6 -0
- package/dist/entries/version.d.ts +1 -0
- package/dist/entries/version.js +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -0
- package/dist/platform/browser/acquire.d.ts +15 -0
- package/dist/platform/browser/acquire.js +1 -0
- package/dist/platform/browser/bridge/acquire-bridge.d.ts +7 -0
- package/dist/platform/browser/bridge/acquire-bridge.js +3 -0
- package/dist/platform/browser/bridge/client.d.ts +69 -0
- package/dist/platform/browser/bridge/client.js +1 -0
- package/dist/platform/browser/bridge/extension-channel.d.ts +12 -0
- package/dist/platform/browser/bridge/extension-channel.js +1 -0
- package/dist/platform/browser/bridge/extension-id.d.ts +8 -0
- package/dist/platform/browser/bridge/extension-id.js +1 -0
- package/dist/platform/browser/bridge/extension-updates.d.ts +37 -0
- package/dist/platform/browser/bridge/extension-updates.js +1 -0
- package/dist/platform/browser/bridge/model-commands.d.ts +20 -0
- package/dist/platform/browser/bridge/model-commands.js +1 -0
- package/dist/platform/browser/bridge/model-core.d.ts +59 -0
- package/dist/platform/browser/bridge/model-core.js +1 -0
- package/dist/platform/browser/bridge/model.d.ts +4 -0
- package/dist/platform/browser/bridge/model.js +1 -0
- package/dist/platform/browser/bridge/native-frames.d.ts +9 -0
- package/dist/platform/browser/bridge/native-frames.js +1 -0
- package/dist/platform/browser/bridge/native-host.d.ts +24 -0
- package/dist/platform/browser/bridge/native-host.js +5 -0
- package/dist/platform/browser/bridge/runtime-contexts.d.ts +12 -0
- package/dist/platform/browser/bridge/runtime-contexts.js +1 -0
- package/dist/platform/browser/bridge/server-core.d.ts +66 -0
- package/dist/platform/browser/bridge/server-core.js +1 -0
- package/dist/platform/browser/bridge/server.d.ts +13 -0
- package/dist/platform/browser/bridge/server.js +1 -0
- package/dist/platform/browser/bridge-tabs.d.ts +22 -0
- package/dist/platform/browser/bridge-tabs.js +1 -0
- package/dist/platform/browser/cdp-connection.d.ts +3 -0
- package/dist/platform/browser/cdp-connection.js +1 -0
- package/dist/platform/browser/chrome-binary.d.ts +6 -0
- package/dist/platform/browser/chrome-binary.js +1 -0
- package/dist/platform/browser/config.d.ts +29 -0
- package/dist/platform/browser/config.js +1 -0
- package/dist/platform/browser/devtools-port.d.ts +3 -0
- package/dist/platform/browser/devtools-port.js +2 -0
- package/dist/platform/browser/downloads.d.ts +22 -0
- package/dist/platform/browser/downloads.js +1 -0
- package/dist/platform/browser/driver-connect.d.ts +13 -0
- package/dist/platform/browser/driver-connect.js +1 -0
- package/dist/platform/browser/driver-core.d.ts +50 -0
- package/dist/platform/browser/driver-core.js +1 -0
- package/dist/platform/browser/driver-tabs.d.ts +16 -0
- package/dist/platform/browser/driver-tabs.js +1 -0
- package/dist/platform/browser/driver-verbs.d.ts +13 -0
- package/dist/platform/browser/driver-verbs.js +2 -0
- package/dist/platform/browser/driver.d.ts +38 -0
- package/dist/platform/browser/driver.js +3 -0
- package/dist/platform/browser/focus-guard.d.ts +2 -0
- package/dist/platform/browser/focus-guard.js +1 -0
- package/dist/platform/browser/journal.d.ts +21 -0
- package/dist/platform/browser/journal.js +2 -0
- package/dist/platform/browser/keep-in-tab.d.ts +1 -0
- package/dist/platform/browser/keep-in-tab.js +1 -0
- package/dist/platform/browser/messages.d.ts +25 -0
- package/dist/platform/browser/messages.js +8 -0
- package/dist/platform/browser/navigate.d.ts +4 -0
- package/dist/platform/browser/navigate.js +2 -0
- package/dist/platform/browser/occupancy.d.ts +2 -0
- package/dist/platform/browser/occupancy.js +2 -0
- package/dist/platform/browser/overlay-guard.d.ts +3 -0
- package/dist/platform/browser/overlay-guard.js +1 -0
- package/dist/platform/browser/save-picker.d.ts +2 -0
- package/dist/platform/browser/save-picker.js +1 -0
- package/dist/platform/browser/session-files.d.ts +11 -0
- package/dist/platform/browser/session-files.js +1 -0
- package/dist/platform/browser/state.d.ts +25 -0
- package/dist/platform/browser/state.js +2 -0
- package/dist/platform/browser/tabs.d.ts +15 -0
- package/dist/platform/browser/tabs.js +2 -0
- package/dist/platform/browser/window-placement.d.ts +8 -0
- package/dist/platform/browser/window-placement.js +1 -0
- package/dist/platform/chromium/actions-value.d.ts +11 -0
- package/dist/platform/chromium/actions-value.js +5 -0
- package/dist/platform/chromium/actions.d.ts +20 -0
- package/dist/platform/chromium/actions.js +2 -0
- package/dist/platform/chromium/checkable-target.d.ts +1 -0
- package/dist/platform/chromium/checkable-target.js +1 -0
- package/dist/platform/chromium/collect-viewport.d.ts +1 -0
- package/dist/platform/chromium/collect-viewport.js +1 -0
- package/dist/platform/chromium/collect.d.ts +11 -0
- package/dist/platform/chromium/collect.js +1 -0
- package/dist/platform/chromium/coverer-label.d.ts +8 -0
- package/dist/platform/chromium/coverer-label.js +1 -0
- package/dist/platform/chromium/frames.d.ts +2 -0
- package/dist/platform/chromium/frames.js +1 -0
- package/dist/platform/chromium/headings.d.ts +1 -0
- package/dist/platform/chromium/headings.js +1 -0
- package/dist/platform/chromium/locate.d.ts +2 -0
- package/dist/platform/chromium/locate.js +1 -0
- package/dist/platform/chromium/page-acts.d.ts +9 -0
- package/dist/platform/chromium/page-acts.js +1 -0
- package/dist/platform/chromium/page-base.d.ts +33 -0
- package/dist/platform/chromium/page-base.js +1 -0
- package/dist/platform/chromium/page-driver.d.ts +18 -0
- package/dist/platform/chromium/page-driver.js +2 -0
- package/dist/platform/chromium/page-refs.d.ts +4 -0
- package/dist/platform/chromium/page-refs.js +1 -0
- package/dist/platform/chromium/page-text.d.ts +15 -0
- package/dist/platform/chromium/page-text.js +1 -0
- package/dist/platform/chromium/page-waits.d.ts +7 -0
- package/dist/platform/chromium/page-waits.js +1 -0
- package/dist/platform/chromium/preview-stream.d.ts +37 -0
- package/dist/platform/chromium/preview-stream.js +1 -0
- package/dist/platform/chromium/preview.d.ts +3 -0
- package/dist/platform/chromium/preview.js +1 -0
- package/dist/platform/chromium/read-page-script.d.ts +1 -0
- package/dist/platform/chromium/read-page-script.js +1 -0
- package/dist/platform/chromium/read-page.d.ts +11 -0
- package/dist/platform/chromium/read-page.js +6 -0
- package/dist/platform/chromium/run-js.d.ts +4 -0
- package/dist/platform/chromium/run-js.js +2 -0
- package/dist/platform/chromium/scroll-regions.d.ts +1 -0
- package/dist/platform/chromium/scroll-regions.js +1 -0
- package/dist/platform/chromium/scroll-scripts.d.ts +3 -0
- package/dist/platform/chromium/scroll-scripts.js +1 -0
- package/dist/platform/chromium/scroll.d.ts +18 -0
- package/dist/platform/chromium/scroll.js +5 -0
- package/dist/platform/chromium/select-text.d.ts +4 -0
- package/dist/platform/chromium/select-text.js +2 -0
- package/dist/platform/chromium/shot.d.ts +10 -0
- package/dist/platform/chromium/shot.js +2 -0
- package/dist/platform/chromium/unreached.d.ts +8 -0
- package/dist/platform/chromium/unreached.js +1 -0
- package/dist/platform/cli-command.d.ts +1 -0
- package/dist/platform/cli-command.js +1 -0
- package/dist/platform/driver-base.d.ts +83 -0
- package/dist/platform/driver-base.js +1 -0
- package/dist/platform/driver-diagnostics.d.ts +30 -0
- package/dist/platform/driver-diagnostics.js +4 -0
- package/dist/platform/driver-lines.d.ts +15 -0
- package/dist/platform/driver-lines.js +2 -0
- package/dist/platform/driver-narrate.d.ts +26 -0
- package/dist/platform/driver-narrate.js +3 -0
- package/dist/platform/driver-refs.d.ts +16 -0
- package/dist/platform/driver-refs.js +1 -0
- package/dist/platform/driver-render.d.ts +26 -0
- package/dist/platform/driver-render.js +4 -0
- package/dist/platform/driver-select.d.ts +31 -0
- package/dist/platform/driver-select.js +2 -0
- package/dist/platform/driver-settle.d.ts +22 -0
- package/dist/platform/driver-settle.js +4 -0
- package/dist/platform/driver-verdict.d.ts +11 -0
- package/dist/platform/driver-verdict.js +5 -0
- package/dist/platform/driver-wait.d.ts +9 -0
- package/dist/platform/driver-wait.js +1 -0
- package/dist/platform/driver-waits.d.ts +10 -0
- package/dist/platform/driver-waits.js +1 -0
- package/dist/platform/driver.d.ts +39 -0
- package/dist/platform/driver.js +15 -0
- package/dist/platform/electron/driver.d.ts +30 -0
- package/dist/platform/electron/driver.js +7 -0
- package/dist/platform/electron/preflight.d.ts +9 -0
- package/dist/platform/electron/preflight.js +1 -0
- package/dist/platform/electron/verbs.d.ts +3 -0
- package/dist/platform/electron/verbs.js +1 -0
- package/dist/platform/home.d.ts +2 -0
- package/dist/platform/home.js +1 -0
- package/dist/platform/macos/act-element.d.ts +27 -0
- package/dist/platform/macos/act-element.js +1 -0
- package/dist/platform/macos/app-names.d.ts +2 -0
- package/dist/platform/macos/app-names.js +2 -0
- package/dist/platform/macos/app-notes.d.ts +2 -0
- package/dist/platform/macos/app-notes.js +86 -0
- package/dist/platform/macos/approvals.d.ts +10 -0
- package/dist/platform/macos/approvals.js +2 -0
- package/dist/platform/macos/ax-client.d.ts +53 -0
- package/dist/platform/macos/ax-client.js +3 -0
- package/dist/platform/macos/ax-errors.d.ts +16 -0
- package/dist/platform/macos/ax-errors.js +1 -0
- package/dist/platform/macos/ax-shapes.d.ts +53 -0
- package/dist/platform/macos/ax-shapes.js +1 -0
- package/dist/platform/macos/capture-client.d.ts +11 -0
- package/dist/platform/macos/capture-client.js +2 -0
- package/dist/platform/macos/click-verb.d.ts +4 -0
- package/dist/platform/macos/click-verb.js +1 -0
- package/dist/platform/macos/driver-apps.d.ts +59 -0
- package/dist/platform/macos/driver-apps.js +2 -0
- package/dist/platform/macos/driver-read.d.ts +47 -0
- package/dist/platform/macos/driver-read.js +1 -0
- package/dist/platform/macos/driver-targets.d.ts +9 -0
- package/dist/platform/macos/driver-targets.js +1 -0
- package/dist/platform/macos/driver.d.ts +65 -0
- package/dist/platform/macos/driver.js +2 -0
- package/dist/platform/macos/element-lines.d.ts +12 -0
- package/dist/platform/macos/element-lines.js +1 -0
- package/dist/platform/macos/element-shapes.d.ts +54 -0
- package/dist/platform/macos/element-shapes.js +0 -0
- package/dist/platform/macos/element-text.d.ts +3 -0
- package/dist/platform/macos/element-text.js +2 -0
- package/dist/platform/macos/elements.d.ts +26 -0
- package/dist/platform/macos/elements.js +1 -0
- package/dist/platform/macos/extra-verbs.d.ts +2 -0
- package/dist/platform/macos/extra-verbs.js +1 -0
- package/dist/platform/macos/interaction-notes.d.ts +2 -0
- package/dist/platform/macos/interaction-notes.js +1 -0
- package/dist/platform/macos/interaction-policy.d.ts +5 -0
- package/dist/platform/macos/interaction-policy.js +1 -0
- package/dist/platform/macos/menu-commands.d.ts +22 -0
- package/dist/platform/macos/menu-commands.js +5 -0
- package/dist/platform/macos/mouse.d.ts +23 -0
- package/dist/platform/macos/mouse.js +1 -0
- package/dist/platform/macos/narrate.d.ts +20 -0
- package/dist/platform/macos/narrate.js +1 -0
- package/dist/platform/macos/permissions.d.ts +5 -0
- package/dist/platform/macos/permissions.js +1 -0
- package/dist/platform/macos/press-rungs.d.ts +49 -0
- package/dist/platform/macos/press-rungs.js +5 -0
- package/dist/platform/macos/preview-stream.d.ts +15 -0
- package/dist/platform/macos/preview-stream.js +1 -0
- package/dist/platform/macos/prompt-fragment.d.ts +1 -0
- package/dist/platform/macos/prompt-fragment.js +1 -0
- package/dist/platform/macos/scroll-pages.d.ts +1 -0
- package/dist/platform/macos/scroll-pages.js +1 -0
- package/dist/platform/macos/scroll-verb.d.ts +5 -0
- package/dist/platform/macos/scroll-verb.js +1 -0
- package/dist/platform/macos/select-text-verb.d.ts +8 -0
- package/dist/platform/macos/select-text-verb.js +1 -0
- package/dist/platform/macos/type-verb.d.ts +5 -0
- package/dist/platform/macos/type-verb.js +1 -0
- package/dist/platform/ownership.d.ts +20 -0
- package/dist/platform/ownership.js +1 -0
- package/dist/platform/platform-package.d.ts +1 -0
- package/dist/platform/platform-package.js +1 -0
- package/dist/platform/preview.d.ts +39 -0
- package/dist/platform/preview.js +1 -0
- package/dist/platform/profile.d.ts +20 -0
- package/dist/platform/profile.js +1 -0
- package/dist/platform/registry.d.ts +12 -0
- package/dist/platform/registry.js +1 -0
- package/dist/platform/tools/api-contract.d.ts +33 -0
- package/dist/platform/tools/api-contract.js +3 -0
- package/dist/platform/tools/api-expect.d.ts +3 -0
- package/dist/platform/tools/api-expect.js +1 -0
- package/dist/platform/tools/api-run.d.ts +6 -0
- package/dist/platform/tools/api-run.js +1 -0
- package/dist/platform/tools/api-target.d.ts +22 -0
- package/dist/platform/tools/api-target.js +1 -0
- package/dist/platform/tools/api-wait.d.ts +3 -0
- package/dist/platform/tools/api-wait.js +1 -0
- package/dist/platform/tools/api.d.ts +7 -0
- package/dist/platform/tools/api.js +1 -0
- package/dist/platform/tools/find-target.d.ts +54 -0
- package/dist/platform/tools/find-target.js +1 -0
- package/dist/platform/tools/index.d.ts +8 -0
- package/dist/platform/tools/index.js +1 -0
- package/dist/platform/tools/normalize.d.ts +2 -0
- package/dist/platform/tools/normalize.js +1 -0
- package/dist/platform/tools/repl-budget.d.ts +8 -0
- package/dist/platform/tools/repl-budget.js +4 -0
- package/dist/platform/tools/repl-code.d.ts +1 -0
- package/dist/platform/tools/repl-code.js +4 -0
- package/dist/platform/tools/repl-docs.d.ts +5 -0
- package/dist/platform/tools/repl-docs.js +4 -0
- package/dist/platform/tools/repl-state.d.ts +21 -0
- package/dist/platform/tools/repl-state.js +0 -0
- package/dist/platform/tools/repl.d.ts +8 -0
- package/dist/platform/tools/repl.js +19 -0
- package/dist/platform/tools/shot-file.d.ts +7 -0
- package/dist/platform/tools/shot-file.js +1 -0
- package/dist/platform/tools/validate.d.ts +2 -0
- package/dist/platform/tools/validate.js +1 -0
- package/dist/platform/types.d.ts +220 -0
- package/dist/platform/types.js +1 -0
- package/dist/platform/windows/app-gate.d.ts +24 -0
- package/dist/platform/windows/app-gate.js +2 -0
- package/dist/platform/windows/background-verb.d.ts +13 -0
- package/dist/platform/windows/background-verb.js +1 -0
- package/dist/platform/windows/dates.d.ts +2 -0
- package/dist/platform/windows/dates.js +1 -0
- package/dist/platform/windows/driver-apps.d.ts +9 -0
- package/dist/platform/windows/driver-apps.js +1 -0
- package/dist/platform/windows/driver-read.d.ts +12 -0
- package/dist/platform/windows/driver-read.js +3 -0
- package/dist/platform/windows/driver-targets.d.ts +58 -0
- package/dist/platform/windows/driver-targets.js +1 -0
- package/dist/platform/windows/driver-yield.d.ts +10 -0
- package/dist/platform/windows/driver-yield.js +1 -0
- package/dist/platform/windows/driver.d.ts +39 -0
- package/dist/platform/windows/driver.js +2 -0
- package/dist/platform/windows/elements.d.ts +66 -0
- package/dist/platform/windows/elements.js +2 -0
- package/dist/platform/windows/launch.d.ts +23 -0
- package/dist/platform/windows/launch.js +1 -0
- package/dist/platform/windows/menu-verb.d.ts +7 -0
- package/dist/platform/windows/menu-verb.js +6 -0
- package/dist/platform/windows/prompt-fragment.d.ts +2 -0
- package/dist/platform/windows/prompt-fragment.js +1 -0
- package/dist/platform/windows/text-verbs.d.ts +10 -0
- package/dist/platform/windows/text-verbs.js +5 -0
- package/dist/platform/windows/uia-client.d.ts +32 -0
- package/dist/platform/windows/uia-client.js +3 -0
- package/dist/platform/windows/verbs.d.ts +2 -0
- package/dist/platform/windows/verbs.js +1 -0
- package/extension/background.js +280 -0
- package/extension/connect.html +27 -0
- package/extension/connect.js +28 -0
- package/extension/group.js +283 -0
- package/extension/icons/icon-128.png +0 -0
- package/extension/icons/icon-16.png +0 -0
- package/extension/icons/icon-32.png +0 -0
- package/extension/icons/icon-48.png +0 -0
- package/extension/manifest.json +36 -0
- package/extension/relay.js +361 -0
- package/extension/runtime-info.js +9 -0
- package/extension/transport.js +81 -0
- package/package.json +76 -4
- package/scripts/extension.mjs +111 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Mirasim Computer Use
|
|
2
|
+
Copyright 2026 MIRASIM, INC.
|
|
3
|
+
|
|
4
|
+
This product includes software developed by MIRASIM, INC.
|
|
5
|
+
(https://github.com/mirasim-ai/computer-use).
|
|
6
|
+
|
|
7
|
+
The browser extension bridge (extension/relay.js, extension/group.js and
|
|
8
|
+
src/platform/browser/bridge/) contains code adapted from Playwright
|
|
9
|
+
(https://github.com/microsoft/playwright), Copyright (c) Microsoft Corporation,
|
|
10
|
+
licensed under the Apache License, Version 2.0. Playwright's NOTICE reads:
|
|
11
|
+
|
|
12
|
+
Playwright
|
|
13
|
+
Copyright (c) Microsoft Corporation
|
|
14
|
+
|
|
15
|
+
This software contains code derived from the Puppeteer project (https://github.com/puppeteer/puppeteer),
|
|
16
|
+
available under the Apache 2.0 license (https://github.com/puppeteer/puppeteer/blob/master/LICENSE).
|
package/README.md
CHANGED
|
@@ -1,3 +1,155 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mirasim Computer Use
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Computer use for any agent: an MCP server that lets the agent you already use (Claude Code,
|
|
4
|
+
Codex, or any MCP host) operate browsers, macOS apps, Windows apps and Electron apps.
|
|
5
|
+
|
|
6
|
+
Think of how a person checks an account balance on a website they use every day. They know the
|
|
7
|
+
steps before the page opens, so they just go through them quickly. Someone new to the site has
|
|
8
|
+
to take one step, look, and only then work out the next one. Capable models now work like the
|
|
9
|
+
experienced person: they plan several GUI steps at once. Mirasim Computer Use is tuned for
|
|
10
|
+
exactly that. It runs a multi-step plan reliably and gives the model accurate feedback on every
|
|
11
|
+
step, so the model can trust the result instead of checking the screen after each click. With a
|
|
12
|
+
strong model, the same task takes fewer model calls and finishes sooner.
|
|
13
|
+
|
|
14
|
+
The screen reads back as text, a numbered list of elements from the accessibility tree, and
|
|
15
|
+
pixels are used only when text is not enough. It runs no model of its own and needs no API key:
|
|
16
|
+
the host's agent calls the tools with its own model. The [Mirasim](https://mirasim.ai) desktop
|
|
17
|
+
app ships the same tools built in (Settings → Computer Use).
|
|
18
|
+
|
|
19
|
+
## Benchmark
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
Six small frontend tasks on a React + Vite app (two features, three bug fixes, one QA pass), run
|
|
24
|
+
in Codex in the ChatGPT desktop app with the same model and the same prompt. The only difference
|
|
25
|
+
is the tool the agent checks its work with: Codex Computer Use in Codex's in-app browser, or
|
|
26
|
+
Mirasim Computer Use as an MCP server. Each tool ran every task 5 times, the two interleaved in
|
|
27
|
+
one session; timing comes from Codex's own session record, and the final code was graded by
|
|
28
|
+
hidden behaviour checks.
|
|
29
|
+
|
|
30
|
+
With Mirasim Computer Use the agent finished in 39% less time and passed 30/30 tasks (vs 26/30).
|
|
31
|
+
The time was saved in round trips, not in the browser: the agent made 37% fewer model requests
|
|
32
|
+
while writing almost the same number of output tokens. `observe()` returns elements as data, so
|
|
33
|
+
the agent puts its checks in the script and gets back a verdict instead of reading the page after
|
|
34
|
+
every click. And a click lands where a user's mouse would: on the QA task an invisible layer
|
|
35
|
+
covers a button, Mirasim Computer Use fails the click and names the layer, while Codex Computer
|
|
36
|
+
Use reports the click as done, and its report caught the bug in 1 of 5 runs.
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
Needs Node.js 22.19 or later. Register the MCP server with your agent:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
claude mcp add mirasim-cu -- npx -y @mirasim/computer-use mcp
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
or install the `mirasim-cu` command once with `npm install -g @mirasim/computer-use`.
|
|
48
|
+
|
|
49
|
+
**Browser** works out of the box: computer-use drives a Chrome of its own (installed Google
|
|
50
|
+
Chrome is required), keeping its profile under `~/.mirasim-computer-use` so logins carry over
|
|
51
|
+
between sessions. To drive the browser you are signed into instead, install the
|
|
52
|
+
[Mirasim extension](https://chromewebstore.google.com/detail/mirasim/khflooofmndpmafhofjdcpjfgnlpikhg)
|
|
53
|
+
and add `-e COMPUTER_USE_BROWSER=extension`.
|
|
54
|
+
|
|
55
|
+
In extension mode the first browser call starts a bridge in the background and registers it as
|
|
56
|
+
the extension's native-messaging host: a record under `~/.mirasim-computer-use/native-host/`
|
|
57
|
+
and a manifest in each Chromium-family browser's configuration folder. The record names the
|
|
58
|
+
program that started it, which under `npx` is a path in npx's cache; a record whose program is
|
|
59
|
+
gone is skipped, and every bridge start writes it again.
|
|
60
|
+
`npx -y @mirasim/computer-use setup extension --remove` takes it back. The extension serves one
|
|
61
|
+
bridge at a time, and the Mirasim desktop app's comes first: while browser control is on there,
|
|
62
|
+
extension mode says so at once and does not connect.
|
|
63
|
+
Details in [docs/embedding.md](docs/embedding.md#your-own-browser-extension).
|
|
64
|
+
|
|
65
|
+
**Native apps** are opt-in with `COMPUTER_USE_PLATFORMS` (comma-separated, default `browser`):
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
claude mcp add mirasim-cu -e COMPUTER_USE_PLATFORMS=browser,macos -- npx -y @mirasim/computer-use mcp
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- `macos` and `windows` drive native apps through their accessibility tree in the background.
|
|
72
|
+
On macOS, grant Accessibility (and Screen Recording, for screenshots) to the app that runs
|
|
73
|
+
your agent; `mirasim-cu setup macos` checks both.
|
|
74
|
+
- `electron` drives any app started with `--remote-debugging-port=<port>`
|
|
75
|
+
(`COMPUTER_USE_ELECTRON_CDP_URL`, default `http://127.0.0.1:9333`).
|
|
76
|
+
|
|
77
|
+
**Which apps the agent may drive.** Before the agent first touches a native app, the server asks
|
|
78
|
+
you through your agent's MCP client (MCP elicitation): allow it once, for the session, or always.
|
|
79
|
+
What that looks like depends on the client:
|
|
80
|
+
|
|
81
|
+
- A client that shows the question (Claude Code in a terminal, for one): you answer it there.
|
|
82
|
+
- A non-interactive run (`claude -p`, CI) declines every question unseen, so an app nobody
|
|
83
|
+
allowed is refused. Allow it ahead of time with
|
|
84
|
+
`npx -y @mirasim/computer-use approvals add com.apple.TextEdit` (a macOS bundle id; on Windows
|
|
85
|
+
the executable's name, e.g. `WINWORD`). `approvals` lists them; `approvals remove` revokes one.
|
|
86
|
+
- A client without elicitation support cannot ask, so the server drives **every** app the agent
|
|
87
|
+
names. On macOS, `-e COMPUTER_USE_MACOS_FALLBACK_APPS=com.apple.TextEdit,…` narrows that to
|
|
88
|
+
the listed apps.
|
|
89
|
+
|
|
90
|
+
The macOS and Windows drivers use a small native helper that npm installs prebuilt for macOS
|
|
91
|
+
arm64/x64 and Windows x64/arm64. Every setting, the state directory and the host protocol are
|
|
92
|
+
documented in [docs/embedding.md](docs/embedding.md).
|
|
93
|
+
|
|
94
|
+
## Use
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
mirasim-cu mcp # MCP stdio server — the runtime
|
|
98
|
+
mirasim-cu browser open # summon the managed browser for the user
|
|
99
|
+
mirasim-cu setup browser # dependency bootstrap: verify a driveable Chrome exists
|
|
100
|
+
mirasim-cu setup macos # check Accessibility + Screen Recording; open a missing pane
|
|
101
|
+
mirasim-cu approvals # apps answered "always allow"; add / remove <app>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
To drive computer-use from another program — the spawn environment, the host protocol, the
|
|
105
|
+
opt-in live preview, the action journal, shared native capture — see
|
|
106
|
+
[docs/embedding.md](docs/embedding.md).
|
|
107
|
+
|
|
108
|
+
The host's agent calls `computer_repl` directly and reads the resulting observation in the current
|
|
109
|
+
session. The tool server runs no model of its own.
|
|
110
|
+
|
|
111
|
+
- **`mcp`** serves the tools to a host that brings its own agent loop:
|
|
112
|
+
```sh
|
|
113
|
+
claude mcp add mirasim-cu -- mirasim-cu mcp
|
|
114
|
+
```
|
|
115
|
+
stdout is protocol-only, so the server records nothing by default — and the structured
|
|
116
|
+
`details` of each result (url / verdict / elementCount) never reaches the host at all.
|
|
117
|
+
`COMPUTER_USE_MCP_LOG` is the way to see it: one JSON line per call, plus a `server_start` line
|
|
118
|
+
naming the configuration.
|
|
119
|
+
```sh
|
|
120
|
+
COMPUTER_USE_MCP_LOG=~/.mirasim-computer-use/mcp.jsonl mirasim-cu mcp
|
|
121
|
+
# {"ts":"…","type":"server_start","version":"0.1.0-rc.1","platforms":"browser","tools":[…]}
|
|
122
|
+
# {"ts":"…","type":"call","tool":"computer_repl","args":{"code":"await w.observe();"},"isError":false,"ms":412,
|
|
123
|
+
# "details":{"url":"https://example.com","verdict":"changed","elementCount":7,"ledgerLines":2,
|
|
124
|
+
# "timing":{"runMs":96,"observeMs":310,"steps":[{"kind":"observe","target":"","ok":true,"ms":96,"note":"7 elements"}]}}}
|
|
125
|
+
```
|
|
126
|
+
`details.timing` says where a `computer_repl` call's time went: each step of the code (reads,
|
|
127
|
+
waits and expects included) with its `ms`, the run in total (`runMs`), and the closing
|
|
128
|
+
observation apart (`observeMs`, the settle re-check included). The model's own journal carries
|
|
129
|
+
none of it. Failures are logged the same way (`isError: true`, with `details.error`), including a tool
|
|
130
|
+
name the host got wrong. Missing parent directories are created; a log that cannot be
|
|
131
|
+
written is dropped rather than failing the call.
|
|
132
|
+
|
|
133
|
+
## Tools
|
|
134
|
+
|
|
135
|
+
Two tools, assembled per driver at session start:
|
|
136
|
+
|
|
137
|
+
| tool | role |
|
|
138
|
+
|---|---|
|
|
139
|
+
| `computer_repl` | JavaScript over the GUI in a PERSISTENT session: reads (`observe()`, `find(name)`, `text()`, `page()`, `screenshot()`, `diagnostics()`), actions (`click`, `hover`, `setText`, `keys`, `scroll`, `wait`, `focus` + the driver's verbs — `openUrl`, `newTab`, `selectOption`, `paste`, `launchApp`, `menu`, …), and surface HANDLES (`computer.surfaces()` / `computer.surface(id)`) that bind verbs to one tab / window / app. Top-level declarations persist across calls; the first result carries the API reference; every run ends with one observation and a changed/frozen verdict |
|
|
140
|
+
| `computer_repl_reset` | discard the JavaScript bindings — surfaces untouched |
|
|
141
|
+
|
|
142
|
+
Element observations are incremental by default: when little changed since the previous
|
|
143
|
+
one, only the diff is sent (refs are sticky, so unchanged lines drop out), with a full
|
|
144
|
+
list re-sent periodically.
|
|
145
|
+
|
|
146
|
+
## License
|
|
147
|
+
|
|
148
|
+
[Apache License 2.0](LICENSE) © MIRASIM, INC. Parts of the browser extension bridge are adapted
|
|
149
|
+
from [Playwright](https://github.com/microsoft/playwright) (Apache-2.0, © Microsoft Corporation);
|
|
150
|
+
see [NOTICE](NOTICE). The Windows helper's statically linked Rust crates and their licenses are
|
|
151
|
+
listed in [THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES).
|
|
152
|
+
|
|
153
|
+
"Mirasim" and the Mirasim logo are trademarks of MIRASIM, INC. and are not licensed under the
|
|
154
|
+
Apache License. Chrome, Claude, Codex, ChatGPT, macOS and Windows are trademarks of their
|
|
155
|
+
respective owners; this project is not affiliated with or endorsed by them.
|