@agimon-ai/po-computer-use 0.0.0-alpha.215 → 0.0.0-alpha.216

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 CHANGED
@@ -14,16 +14,18 @@ In Desktop, enable Computer Use in host settings, then select the default-off **
14
14
 
15
15
  The `computer-use` mode exposes Activate, Deactivate, and Doctor actions. `/computer-use` reports the current state.
16
16
 
17
- While active, the package exposes three tools:
17
+ In code mode, the `computer` namespace is the primary agent surface (and `codemode-how-to-computer-use` is listed whenever the mode is selected):
18
18
 
19
- - `computer_state` observes the authorized window and returns a semantic snapshot. `saveScreenshot: true` also keeps the screenshot in session artifacts under `computer-use/<run>/` and returns its `artifact:` path.
20
- - `computer_action` performs one of the semantic actions advertised for an element in a current snapshot. Approved-window grants use the bundled, unmodified agent-desktop CLI and show a visual agent cursor. The cursor is not a separate keyboard or mouse. Whole-desktop grants continue to use the Swift backend for the existing cross-app, Dock and menu-bar behavior.
21
- - `computer_exec` executes a reusable JavaScript or erasable TypeScript function and its relative helpers in a restricted runtime, then returns a fresh semantic observation.
19
+ - `computer.targets()` lists candidate windows and `computer.request()` asks for human approval.
20
+ - During an active grant, `computer.state()` observes the authorized target and returns a semantic snapshot (`saveScreenshot: true` saves the screenshot in session artifacts under `computer-use/<run>/` and returns its `artifact:` path).
21
+ - `computer.act()` performs one of the semantic actions advertised for an element in a current snapshot. Approved-window grants use the bundled, unmodified agent-desktop CLI and show a visual agent cursor. The cursor is not a separate keyboard or mouse. Whole-desktop grants continue to use the Swift backend for cross-app, Dock, and menu-bar behavior.
22
+ - `computer.run({ scriptPath, input, trusted?, includeScreenshot? })` executes a reusable JavaScript or erasable TypeScript function and its relative helpers in a restricted runtime, then returns a fresh semantic observation.
23
+ - `computer.stop()` ends the active grant.
22
24
 
23
- Po’s Swift helper records MP4 and audio. Finished recordings are copied into session artifacts under `computer-use/` in bounded ranges. For a window grant, an approved request for extra trace capture also keeps bounded JSONL action metadata and PNGs of that window. The trace does not contain element refs, entered text, or raw CLI debug output. Recording and tracing stop before sensitive input can be sent. Treat these artifacts as private desktop content.
24
- Generated functions receive the authorized program API, JSON input, bounded logging, and cancellation. They do not receive Node or filesystem access. Script-internal observations omit screenshots by default, and `includeScreenshot: true` requests an image explicitly. Full Node execution requires both `trusted: true` and an exact host-configured `PO_COMPUTER_USE_SCRIPT_PATHS` allowlist. Trusted scripts remain unsandboxed, including their imported dependencies. See [Author computer functions](./docs/computer-scripts.md) for the contract, limits, trust boundary, and examples.
25
+ Hosts without code mode expose the direct tools `computer_targets`, `computer_request`, `computer_state`, `computer_action`, and `computer_exec`.
25
26
 
26
- With code mode, `computer.targets()` lists candidate windows and `computer.request()` asks for human approval. Hosts without code mode use `computer_targets` and `computer_request`. The `state`, `act`, `run` and `stop` members are available only during an active grant. The `codemode-how-to-computer-use` guide is listed whenever the mode is selected.
27
+ Po's Swift helper records MP4 and audio. Finished recordings are copied into session artifacts under `computer-use/` in bounded ranges. For a window grant, an approved request for extra trace capture also keeps bounded JSONL action metadata and PNGs of that window. The trace does not contain element refs, entered text, or raw CLI debug output. Recording and tracing stop before sensitive input can be sent. Treat these artifacts as private desktop content.
28
+ Generated functions receive the authorized program API, JSON input, bounded logging, and cancellation. They do not receive Node or filesystem access. Script-internal observations omit screenshots by default, and `includeScreenshot: true` requests an image explicitly. Full Node execution requires both `trusted: true` and an exact host-configured `PO_COMPUTER_USE_SCRIPT_PATHS` allowlist. Trusted scripts remain unsandboxed, including their imported dependencies. See [Author computer functions](./docs/computer-scripts.md) for the contract, limits, trust boundary, and examples.
27
29
 
28
30
  Disabling the mode or host opt-in, stopping control, expiry, or Desktop disconnection stops further actions. An approval does not change who can access the session. The owner can monitor or stop control from the same signed-in browser that approved it.
29
31
 
@@ -735,17 +735,31 @@ var Computeruse_help_guides_native_default = defineFill({
735
735
  questionKey: "computerUse.guides.whatCanComputerUseDoForMe",
736
736
  question: "What can computer use do for me?",
737
737
  order: 0,
738
- answerKey: "computerUse.guides.computerUseLetsPoControlAnApprovedWindowOrTheWholeDesktopOnASupportedMacOSPoDesktopYouChooseTheScopeAndDuration",
739
- answer: "Computer use lets Po control an approved window or the whole desktop on a supported macOS Po Desktop. You choose the scope and duration.",
740
- keywords: ["desktop", "permissions"]
738
+ answerKey: "computerUse.help.about.answer",
739
+ answer: "Computer use lets Po view and control an approved app window or your full desktop on a supported macOS Po Desktop host.\nYou pick the exact scope and time limit before Po can act.",
740
+ keywords: [
741
+ "desktop",
742
+ "permissions",
743
+ "macos",
744
+ "screen",
745
+ "gui",
746
+ "automation"
747
+ ]
741
748
  }, {
742
749
  id: "use",
743
750
  questionKey: "computerUse.guides.howDoIStartAndStopComputerUse",
744
751
  question: "How do I start and stop computer use?",
745
752
  order: 1,
746
- answerKey: "computerUse.guides.enableComputerUseInHostSettingsSelectComputerUseModeThenApprovePoSRequestStopInActivityOrPressCmdShiftEscOnMacOS",
747
- answer: "Enable Computer Use in host settings, select Computer Use mode, then approve Po's request. Stop in Activity or press Cmd+Shift+Esc on macOS.",
748
- keywords: ["stop", "approval"]
753
+ answerKey: "computerUse.help.use.answer",
754
+ answer: "1. Enable Computer use in Settings > Permissions on your Mac.\n2. Turn on Computer use from the mode menu and approve Po's request when it appears.\n3. Stop control at any time from Activity or by pressing Cmd+Shift+Esc on macOS.",
755
+ keywords: [
756
+ "stop",
757
+ "approval",
758
+ "permissions",
759
+ "shortcut",
760
+ "macos",
761
+ "mode"
762
+ ]
749
763
  }]
750
764
  }
751
765
  });