@cydm/pie 4.7.0 → 4.9.0
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 +51 -27
- package/dist/builtin/extensions/ask-user/index.js +4 -4
- package/dist/builtin/extensions/cron/index.js +916 -162
- package/dist/builtin/extensions/im-forward/README.md +24 -7
- package/dist/builtin/extensions/im-forward/index.js +6823 -3683
- package/dist/builtin/extensions/memory/index.js +76 -28
- package/dist/builtin/extensions/pie-ipc/README.md +2 -2
- package/dist/builtin/extensions/pie-ipc/index.js +421 -27
- package/dist/builtin/extensions/pie-proc/README.md +7 -7
- package/dist/builtin/extensions/pie-proc/index.js +453 -97
- package/dist/builtin/extensions/plan-mode/index.js +5 -5
- package/dist/builtin/extensions/subagent/index.js +8 -8
- package/dist/builtin/extensions/todo/index.js +4 -4
- package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +35 -24
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +391 -123
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/chunk-HAUDUMDO.js +795 -0
- package/dist/builtin/skills/chrome-devtools-axi/{cli-NLPMVDGG.js → cli-K7ESY3XD.js} +1437 -231
- package/dist/builtin/skills/computer-use-axi/SKILL.md +26 -8
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +465 -83
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +75 -22
- package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
- package/dist/chunks/{chunk-3W3SXVPB.js → chunk-4UIUMTHG.js} +993 -371
- package/dist/chunks/chunk-6WKBQZWM.js +19 -0
- package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BA4Z27XT.js} +4 -3
- package/dist/chunks/{chunk-BLDI2GRF.js → chunk-DBDU3RRN.js} +1364 -446
- package/dist/chunks/{chunk-LAJXWOKS.js → chunk-EEC5PJTC.js} +11 -9
- package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
- package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-LRHNAG4V.js} +349 -288
- package/dist/chunks/chunk-OU33ROFD.js +717 -0
- package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-PN6B54VT.js} +104 -22
- package/dist/chunks/{chunk-NHV2CALB.js → chunk-WYXUF4MP.js} +388 -32
- package/dist/chunks/{chunk-4PR34UZF.js → chunk-Z5KL6AO2.js} +159 -145
- package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-RASJSVZY.js} +1 -1
- package/dist/chunks/{manager-cli-NEZA46M5.js → manager-cli-Y6HM3MHA.js} +5 -5
- package/dist/chunks/{model-registry-3XAHXXTA.js → model-registry-5TLYILYR.js} +2 -2
- package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-VPKDBV23.js} +5 -5
- package/dist/chunks/{src-B44QWSGM.js → src-2XI5P62J.js} +2 -2
- package/dist/chunks/{src-EGXFJ3WA.js → src-6QGGDHIW.js} +3 -3
- package/dist/chunks/{src-Q7LU27C2.js → src-CCEENRKC.js} +31 -1
- package/dist/chunks/{src-CLE5ILN4.js → src-DI4MCAGT.js} +20 -4
- package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-SYVWIPPW.js} +2 -2
- package/dist/cli.js +1918 -1489
- package/models.schema.json +271 -0
- package/package.json +2 -2
- package/dist/builtin/skills/chrome-devtools-axi/chunk-WOGAQ4P5.js +0 -399
- package/dist/chunks/chunk-7UAUDXZW.js +0 -1425
- package/dist/chunks/{chunk-CGSFBWOM.js → chunk-WBL73KRI.js} +3 -3
- package/dist/chunks/{manager-upgrade-CTU3ISCW.js → manager-upgrade-LSTOHBUV.js} +3 -3
|
@@ -13,7 +13,19 @@ bash.exe):
|
|
|
13
13
|
node <baseDir>/computer-use-axi-cli.js <command> [options]
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Desktop control is a last resort —
|
|
16
|
+
Desktop control is a last resort — follow this **background-first hierarchy**
|
|
17
|
+
so you never hijack the user's computer unnecessarily:
|
|
18
|
+
1. Plain API / CLI / web tools (`web_research`, `shell`).
|
|
19
|
+
2. Isolated headless browser (`chrome-devtools-axi` default, or `browser launch`
|
|
20
|
+
here which now launches headless `--headless=new` in the background by default).
|
|
21
|
+
3. Background semantic AX/UIA (`observe` is non-activating; for unattended
|
|
22
|
+
desktop automation set `PIE_COMPUTER_USE_DELIVERY_POLICY=background` or
|
|
23
|
+
`ax_only` so actions fail closed with `foreground_required` instead of
|
|
24
|
+
stealing the user's window focus or cursor).
|
|
25
|
+
4. Foreground HID input (`PIE_COMPUTER_USE_DELIVERY_POLICY=foreground` or
|
|
26
|
+
default escalation) ONLY when the user explicitly asked for visible/physical
|
|
27
|
+
desktop interaction and no background semantic/CDP path works.
|
|
28
|
+
|
|
17
29
|
First use on macOS installs the `pie-computer-use.app` helper; the CLI then
|
|
18
30
|
reports missing Accessibility and Screen Recording permissions. Use the real
|
|
19
31
|
non-TUI setup flow (the user grants toggles in macOS Settings):
|
|
@@ -128,6 +140,7 @@ node <baseDir>/computer-use-axi-cli.js act --state S1 --actions '[
|
|
|
128
140
|
]' --expect '{"text":"hello"}'
|
|
129
141
|
```
|
|
130
142
|
|
|
143
|
+
- **Windows / PowerShell 5.1**: avoid passing nested JSON inline on the command line (PS 5.1 mangles quotes when invoking native executables). Write actions to a UTF-8 file or pipe via stdin using `--actions-file <path|->` and `--expect-file <path|->` (BOM is stripped automatically).
|
|
131
144
|
- Batch steps only when the second does not need to inspect the first's
|
|
132
145
|
result; steps run sequentially in one transaction.
|
|
133
146
|
- Attach `--expect` (JSON condition: `text`/`role`/`value`/`ref`/`scope-ref`/
|
|
@@ -135,10 +148,12 @@ node <baseDir>/computer-use-axi-cli.js act --state S1 --actions '[
|
|
|
135
148
|
but only within the same root: a modal/sheet or a closing window is a NEW
|
|
136
149
|
root, so expect cannot see it; run the action without `--expect` and read
|
|
137
150
|
the returned root note instead.
|
|
138
|
-
- Focus-following works only inside one act transaction
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
151
|
+
- Focus-following works only inside one act transaction and uses shared OS
|
|
152
|
+
foreground focus — avoid ref-less `typeText`/`keypress` for background tasks
|
|
153
|
+
(prefer ref-based `setText` or CDP instead). Under `background`/`ax_only`
|
|
154
|
+
policy, foreground-only actions fail closed with `foreground_required` rather
|
|
155
|
+
than stealing focus. A standalone keypress (for example `["cmd","w"]`) must
|
|
156
|
+
carry `ref` (the window or a specific element).
|
|
142
157
|
- On failure the output still names the successor state — inspect it instead
|
|
143
158
|
of blindly replaying.
|
|
144
159
|
- Acting requires the platform helper: on macOS first use installs
|
|
@@ -165,9 +180,12 @@ node <baseDir>/computer-use-axi-cli.js browser eval --state S1 --expr 'document.
|
|
|
165
180
|
```
|
|
166
181
|
|
|
167
182
|
Browser states use the same outline/action/condition contracts as desktop
|
|
168
|
-
states.
|
|
169
|
-
`
|
|
170
|
-
|
|
183
|
+
states. `browser launch` starts an isolated **background headless** browser
|
|
184
|
+
(`--headless=new`) by default so it does not pop a window over the user's
|
|
185
|
+
desktop; set `PIE_COMPUTER_USE_BROWSER_HEADED=1` only when a visible managed
|
|
186
|
+
browser window is explicitly needed. Native browser windows are ordinary
|
|
187
|
+
desktop UI — use `roots`/`observe`/`act` on them. Browser control may need
|
|
188
|
+
enabling via the computer-use config (`browser_use`).
|
|
171
189
|
|
|
172
190
|
## Test-only backend
|
|
173
191
|
|