@cydm/pie 4.8.0 → 4.10.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.
Files changed (49) hide show
  1. package/README.md +51 -27
  2. package/dist/builtin/extensions/ask-user/index.js +4 -4
  3. package/dist/builtin/extensions/cron/index.js +906 -158
  4. package/dist/builtin/extensions/im-forward/README.md +4 -2
  5. package/dist/builtin/extensions/im-forward/index.js +6875 -3972
  6. package/dist/builtin/extensions/memory/index.js +76 -28
  7. package/dist/builtin/extensions/pie-ipc/README.md +2 -2
  8. package/dist/builtin/extensions/pie-ipc/index.js +285 -61
  9. package/dist/builtin/extensions/pie-proc/README.md +7 -7
  10. package/dist/builtin/extensions/pie-proc/index.js +493 -107
  11. package/dist/builtin/extensions/plan-mode/index.js +5 -5
  12. package/dist/builtin/extensions/subagent/index.js +8 -8
  13. package/dist/builtin/extensions/todo/index.js +4 -4
  14. package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +26 -24
  15. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +199 -121
  16. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
  17. package/dist/builtin/skills/chrome-devtools-axi/chunk-HAUDUMDO.js +795 -0
  18. package/dist/builtin/skills/chrome-devtools-axi/{cli-ZE754CTH.js → cli-K7ESY3XD.js} +433 -255
  19. package/dist/builtin/skills/computer-use-axi/SKILL.md +25 -8
  20. package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +367 -65
  21. package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +2 -2
  22. package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
  23. package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-5QMS6RQC.js} +353 -287
  24. package/dist/chunks/chunk-6WKBQZWM.js +19 -0
  25. package/dist/chunks/{chunk-LAJXWOKS.js → chunk-7LICWWUE.js} +11 -9
  26. package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BQWHLYYZ.js} +4 -3
  27. package/dist/chunks/{chunk-4PR34UZF.js → chunk-BTUMBUDU.js} +159 -145
  28. package/dist/chunks/{chunk-NHV2CALB.js → chunk-FC5AN5QP.js} +409 -32
  29. package/dist/chunks/{chunk-3W3SXVPB.js → chunk-G2K4GY6N.js} +993 -371
  30. package/dist/chunks/{chunk-BLDI2GRF.js → chunk-HK3FHIAH.js} +1364 -446
  31. package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
  32. package/dist/chunks/{chunk-CGSFBWOM.js → chunk-KWK7KTSZ.js} +4 -3
  33. package/dist/chunks/chunk-OU33ROFD.js +717 -0
  34. package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-XMTRKMBG.js} +104 -22
  35. package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-3TEMOQM5.js} +1 -1
  36. package/dist/chunks/{manager-cli-NEZA46M5.js → manager-cli-Y6HM3MHA.js} +5 -5
  37. package/dist/chunks/{model-registry-3XAHXXTA.js → model-registry-QKJ3YVDS.js} +2 -2
  38. package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-N2ZZQLTZ.js} +5 -5
  39. package/dist/chunks/{src-EGXFJ3WA.js → src-3PSR2AAX.js} +3 -3
  40. package/dist/chunks/{src-B44QWSGM.js → src-D5GN4Q5O.js} +2 -2
  41. package/dist/chunks/{src-CLE5ILN4.js → src-F5N6O2HR.js} +20 -4
  42. package/dist/chunks/{src-Q7LU27C2.js → src-TIDKYA5F.js} +31 -1
  43. package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-JAJHK44G.js} +2 -2
  44. package/dist/cli.js +4123 -2389
  45. package/models.schema.json +271 -0
  46. package/package.json +2 -2
  47. package/dist/builtin/skills/chrome-devtools-axi/chunk-Z2A5LA5A.js +0 -407
  48. package/dist/chunks/chunk-EGZ5TZRM.js +0 -1444
  49. 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 — prefer API/CLI/web tools when they suffice.
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):
@@ -136,10 +148,12 @@ node <baseDir>/computer-use-axi-cli.js act --state S1 --actions '[
136
148
  but only within the same root: a modal/sheet or a closing window is a NEW
137
149
  root, so expect cannot see it; run the action without `--expect` and read
138
150
  the returned root note instead.
139
- - Focus-following works only inside one act transaction: after a click into
140
- an editable region, later `typeText`/`keypress` steps in the SAME
141
- `--actions` array may omit `ref`. A standalone keypress (for example
142
- `["cmd","w"]`) must carry `ref` (the window or a specific element).
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).
143
157
  - On failure the output still names the successor state — inspect it instead
144
158
  of blindly replaying.
145
159
  - Acting requires the platform helper: on macOS first use installs
@@ -166,9 +180,12 @@ node <baseDir>/computer-use-axi-cli.js browser eval --state S1 --expr 'document.
166
180
  ```
167
181
 
168
182
  Browser states use the same outline/action/condition contracts as desktop
169
- states. Native browser windows are ordinary desktop UI — use `roots`/
170
- `observe`/`act` on them. Browser control may need enabling via the
171
- computer-use config (`browser_use`).
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`).
172
189
 
173
190
  ## Test-only backend
174
191