@cydm/pie 1.0.51 → 2.1.1

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 (73) hide show
  1. package/README.md +36 -16
  2. package/dist/builtin/extensions/ask-user/index.js +4 -3
  3. package/dist/builtin/extensions/ask-user/package.json +8 -7
  4. package/dist/builtin/extensions/changelog/package.json +9 -9
  5. package/dist/builtin/extensions/computer-use/index.js +9352 -0
  6. package/dist/builtin/extensions/computer-use/package.json +11 -0
  7. package/dist/builtin/extensions/computer-use/prebuilt/linux/arm64/linux-bridge +0 -0
  8. package/dist/builtin/extensions/computer-use/prebuilt/linux/x64/linux-bridge +0 -0
  9. package/dist/builtin/extensions/computer-use/prebuilt/macos/arm64/pie-computer-use +0 -0
  10. package/dist/builtin/extensions/computer-use/prebuilt/macos/universal/pie-computer-use.app/Contents/Info.plist +24 -0
  11. package/dist/builtin/extensions/computer-use/prebuilt/macos/universal/pie-computer-use.app/Contents/MacOS/pie-computer-use +0 -0
  12. package/dist/builtin/extensions/computer-use/prebuilt/macos/universal/pie-computer-use.app/Contents/_CodeSignature/CodeResources +115 -0
  13. package/dist/builtin/extensions/computer-use/prebuilt/macos/x64/pie-computer-use +0 -0
  14. package/dist/builtin/extensions/computer-use/prebuilt/windows/windows-bridge.exe +0 -0
  15. package/dist/builtin/extensions/computer-use/scripts/build-native.mjs +277 -0
  16. package/dist/builtin/extensions/computer-use/scripts/helper-path.mjs +48 -0
  17. package/dist/builtin/extensions/computer-use/scripts/setup-helper.mjs +549 -0
  18. package/dist/builtin/extensions/document-attachments/package.json +9 -9
  19. package/dist/builtin/extensions/init/package.json +9 -9
  20. package/dist/builtin/extensions/mcp-adapter/index.js +25250 -0
  21. package/dist/builtin/extensions/mcp-adapter/package.json +11 -0
  22. package/dist/builtin/extensions/plan-mode/index.js +4 -3
  23. package/dist/builtin/extensions/plan-mode/package.json +9 -9
  24. package/dist/builtin/extensions/subagent/index.js +6 -4
  25. package/dist/builtin/extensions/subagent/package.json +16 -12
  26. package/dist/builtin/extensions/todo/index.js +4 -3
  27. package/dist/builtin/extensions/todo/package.json +9 -9
  28. package/dist/builtin/skills/chrome-devtools-axi/CHANGELOG.md +5 -0
  29. package/dist/builtin/skills/chrome-devtools-axi/LICENSE +21 -0
  30. package/dist/builtin/skills/chrome-devtools-axi/README.md +17 -0
  31. package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +50 -0
  32. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +20034 -0
  33. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-cli.js +83 -0
  34. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +26 -0
  35. package/dist/builtin/skills/chrome-devtools-axi/chunk-42SGITKJ.js +11 -0
  36. package/dist/builtin/skills/chrome-devtools-axi/chunk-OJ6N23UZ.js +47 -0
  37. package/dist/builtin/skills/chrome-devtools-axi/chunk-UPATXALW.js +215 -0
  38. package/dist/builtin/skills/chrome-devtools-axi/cli-F2VCSVL4.js +4424 -0
  39. package/dist/builtin/skills/chrome-devtools-axi/package.json +12 -0
  40. package/dist/builtin/skills/skill-creator/SKILL.md +5 -2
  41. package/dist/builtin/skills/skill-creator/eval-viewer/generate_review.mjs +7 -20
  42. package/dist/builtin/skills/skill-creator/eval-viewer/viewer.html +15 -15
  43. package/dist/builtin/skills/skill-creator/scripts/aggregate_benchmark.mjs +20 -19
  44. package/dist/builtin/skills/skill-creator/scripts/generate_report.mjs +3 -3
  45. package/dist/builtin/skills/skill-creator/scripts/improve_description.mjs +12 -8
  46. package/dist/builtin/skills/skill-creator/scripts/package_skill.mjs +1 -0
  47. package/dist/builtin/skills/skill-creator/scripts/pie_runner.mjs +77 -31
  48. package/dist/builtin/skills/skill-creator/scripts/run_eval.mjs +38 -11
  49. package/dist/builtin/skills/skill-creator/scripts/run_loop.mjs +12 -6
  50. package/dist/builtin/skills/skill-creator/scripts/skill_metadata.mjs +12 -1
  51. package/dist/builtin/skills/tui-use/LICENSE +21 -0
  52. package/dist/builtin/skills/tui-use/README.md +17 -0
  53. package/dist/builtin/skills/tui-use/SKILL.md +106 -0
  54. package/dist/builtin/skills/tui-use/tui-use-cli.cjs +10608 -0
  55. package/dist/builtin/skills/tui-use/tui-use-cli.js +39 -0
  56. package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +7916 -0
  57. package/dist/chunks/chunk-5353DEEC.js +130 -0
  58. package/dist/chunks/{chunk-S2J3SZZX.js → chunk-IM43UYVV.js} +827 -3385
  59. package/dist/chunks/{chunk-A644H2XX.js → chunk-LU7RKALH.js} +241 -96
  60. package/dist/chunks/{chunk-B3SMW2XW.js → chunk-QJH6YN2W.js} +1 -1
  61. package/dist/chunks/{chunk-KDPAGHYY.js → chunk-TJ2F4FL5.js} +190 -207
  62. package/dist/chunks/chunk-XXGYUYXI.js +2718 -0
  63. package/dist/chunks/{src-UKCIAX6F.js → src-QSP2OPHU.js} +3 -2
  64. package/dist/chunks/{test-stream-NCBFPM2I.js → test-stream-CVGWFLSX.js} +2 -1
  65. package/dist/chunks/webapi-MBCKO7ZV.js +2481 -0
  66. package/dist/cli.js +7866 -369
  67. package/package.json +29 -20
  68. package/scripts/repair-node-pty.mjs +45 -0
  69. package/dist/builtin/skills/browser-tools/CHANGELOG.md +0 -5
  70. package/dist/builtin/skills/browser-tools/README.md +0 -17
  71. package/dist/builtin/skills/browser-tools/SKILL.md +0 -43
  72. package/dist/builtin/skills/browser-tools/package.json +0 -12
  73. package/dist/builtin/skills/browser-tools/playwright-cli.js +0 -45
package/README.md CHANGED
@@ -299,31 +299,49 @@ The full contract (identity rules, schema, host integration) lives in [`docs/ext
299
299
 
300
300
  ## Browser Tools
301
301
 
302
- The built-in `browser-tools` skill uses Microsoft's Playwright CLI for visible browser automation. Its runtime dependencies ship with the CLI; do not run `npm install` inside the skill directory.
302
+ The built-in `chrome-devtools-axi` skill uses the chrome-devtools-axi CLI to drive a real Chrome browser over the Chrome DevTools Protocol. Its runtime dependencies ship with the CLI; do not run `npm install` inside the skill directory.
303
303
 
304
- Resolve the skill resource and run Playwright commands:
304
+ Resolve the skill resource and run browser commands:
305
305
 
306
306
  ```bash
307
- node <resolvedPath for browser-tools/playwright-cli.js> open https://example.com
308
- node <resolvedPath for browser-tools/playwright-cli.js> snapshot
309
- node <resolvedPath for browser-tools/playwright-cli.js> screenshot
310
- node <resolvedPath for browser-tools/playwright-cli.js> console
311
- node <resolvedPath for browser-tools/playwright-cli.js> requests
307
+ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> open https://example.com
308
+ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> snapshot
309
+ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> screenshot /tmp/page.png
310
+ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> console
311
+ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> network
312
312
  ```
313
313
 
314
- If Playwright's Chromium browser is not installed, run:
314
+ The CLI launches or attaches to a real Chrome/Edge browser; see `--help` for connection modes (headed mode, auto-connect, custom profile, remote browser URL) and `CHROME_DEVTOOLS_AXI_SESSION` for concurrent isolated sessions.
315
315
 
316
- ```bash
317
- node <resolvedPath for browser-tools/playwright-cli.js> install-browser chromium
318
- ```
316
+ Run `pie doctor` to check whether chrome-devtools-axi and a Chrome browser are discoverable.
317
+
318
+ ## Terminal UI Automation
319
+
320
+ The built-in `tui-use` skill drives interactive terminal programs - REPLs, pdb/gdb debugger sessions, and full-screen TUI apps - through Pie's packaged PTY runtime. Run `node <skill-baseDir>/tui-use-cli.js --help`; no first-use dependency download or global CLI is required. Windows uses native PowerShell and ConPTY. State lives in `~/.pie/tui-use`, or a dedicated `PIE_TUI_USE_STATE_DIR`. Always target sessions with `--session <id>`, confirm termination with `wait --exit`, and clean up only sessions and daemons you own. Use plain `bash` for non-interactive commands.
321
+
322
+ ## Desktop Control (computer-use)
323
+
324
+ The built-in `computer-use` extension (vendored from `@injaneity/pi-computer-use@0.5.1`, frozen and self-maintained by Pie) controls real desktop applications on macOS, Windows, and Linux through a native accessibility helper. Desktop control is a last resort - prefer API, CLI, or web tools whenever they can accomplish the task.
325
+
326
+ Tools are tiered:
327
+
328
+ - **Observe tier (default)** - `find_roots`, `observe_ui`, `search_ui`, `expand_ui`, `inspect_ui`, `read_text`, `wait_for` read screen/UI state.
329
+ - **Browser tier (default)** - `launch_browser`, `navigate_browser`, `evaluate_browser` control a managed CDP context. Navigation and JavaScript evaluation can have side effects; these are not read-only tools.
330
+ - **Act tier (first-use confirmation)** - `act_ui` synthesizes real input (click, type, scroll, keypress, drag). The first `act_ui` call in each session asks for confirmation (class `computer_use_act`); YOLO mode bypasses it, and non-interactive hosts block it deterministically.
331
+
332
+ Platform notes:
333
+
334
+ - **macOS** (14+): the signed helper app installs to `~/.pie/computer-use/pie-computer-use.app` on first use. Grant **Accessibility** and **Screen Recording** to `pie-computer-use.app` in System Settings → Privacy & Security; interactive sessions guide you through the prompts. Re-grant after helper updates (re-signing invalidates old grants).
335
+ - **Windows**: the helper installs to `~/.pie/helpers/computer-use/windows-bridge.exe` and needs an interactive desktop session.
336
+ - **Linux**: the helper installs to `~/.pie/helpers/computer-use/linux-bridge` and needs an AT-SPI2 bus (a running desktop session; headless servers are not supported).
319
337
 
320
- Run `pie doctor` to check whether Playwright CLI and its browser runtime are discoverable.
338
+ Config: `~/.pie/extensions/computer-use.json` (user) or `.pie/computer-use.json` (project) with `browser_use`, `headless`, `cursor_overlay`, `managed_browser`; env overrides `PIE_COMPUTER_USE_BROWSER_USE` / `PIE_COMPUTER_USE_HEADLESS` / `PIE_COMPUTER_USE_CURSOR_OVERLAY` / `PIE_COMPUTER_USE_MANAGED_BROWSER`. Run `/computer-use` (slash command) to inspect the loaded config, and `pie doctor` for helper install status. The extension can be toggled like any other (`/settings/extensions`, identity `computer-use`).
321
339
 
322
340
  ## Web Research
323
341
 
324
342
  Pie exposes one default model-visible web tool: `web_research`. Use it for public web research, current information, online documentation, and internet inspiration. Pass `query` for research, `url` to fetch a known page/PDF, or `query` with `mode: "search"` for low-level search results. Workspace search remains separate: use `grep_text`, `find_files`, and `list_dir` for local repository content.
325
343
 
326
- `web_search` and `web_fetch` remain lower-level internal primitives for probes, diagnostics, and tests; they are not separate default model-visible tools. `web_search` does not scrape DuckDuckGo or fall back to `bash` with `curl` or Python HTTP scripts. If the configured provider/model cannot perform native web search, Pie returns a clear unavailable result with provider/configuration details. In the CLI, `web_research` can use browser-tools for browser-rendered sources when the Playwright runtime is available; Unity reports those pages as `requires_browser`.
344
+ `web_search` and `web_fetch` remain lower-level internal primitives for probes, diagnostics, and tests; they are not separate default model-visible tools. `web_search` does not scrape DuckDuckGo or fall back to `bash` with `curl` or Python HTTP scripts. If the configured provider/model cannot perform native web search, Pie returns a clear unavailable result with provider/configuration details. In the CLI, `web_research` can use chrome-devtools-axi for browser-rendered sources when a Chrome browser is available; Unity reports those pages as `requires_browser`.
327
345
 
328
346
  `web_research` records route health and latency in Pie's state directory so later runs can prefer providers with better source quality, fewer timeouts, and lower rate-limit pressure. `pie doctor --json` reports the recorded provider health, and `verify:web` writes web metrics including p50/p95 latency, failure categories, and citation quality artifacts.
329
347
 
@@ -346,7 +364,7 @@ pie doctor
346
364
  pie doctor --json
347
365
  ```
348
366
 
349
- Doctor checks Node/npm, model configuration, API key availability, writable Pie data paths, Playwright browser readiness, Unity bridge hints, and runtime log location. User-facing errors stay concise; detailed debugging goes to `~/.pie/logs/pie-cli.log` and session trace artifacts.
367
+ Doctor checks Node/npm, model configuration, API key availability, writable Pie data paths, chrome-devtools-axi and Chrome browser readiness, Unity bridge hints, and runtime log location. User-facing errors stay concise; detailed debugging goes to `~/.pie/logs/pie-cli.log` and session trace artifacts.
350
368
 
351
369
  ## Output Modes
352
370
 
@@ -395,8 +413,10 @@ npm run verify:terminal:matrix
395
413
 
396
414
  Use `npm run verify:agent` when model credentials are available and you want the real daily agent gate.
397
415
  Use `npm run verify:agent:nightly` before release candidates that claim real-provider reliability.
398
- Use `UNITY_EDITOR="/path/to/Unity" npm run verify:unity:reliability` before Unity release candidates. For live Unity Dev RPC coverage, run `PIE_UNITY_REAL_RPC=1 UNITY_EDITOR="/path/to/Unity" npm run verify:unity:reliability`.
399
- Set `PIE_REAL_BROWSER=1` when you want `verify:browser` to open a real browser session instead of only checking the Playwright CLI contract.
416
+ Unity checks in the default chain are offline tests and static package/bundle
417
+ checks only. Real Editor, reload, Play Mode, and Player verification use the
418
+ manual checklist in `products/pie-unity/TESTING.md`, not an automated Unity gate.
419
+ Set `PIE_REAL_BROWSER=1` when you want `verify:browser` to open a real browser session instead of only checking the chrome-devtools-axi CLI contract.
400
420
  Set `PIE_REAL_WEB=1` when you want `verify:web` to run real provider web research smoke with fetched or browser-read citations.
401
421
 
402
422
  ## Publishing
@@ -1,9 +1,10 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createAskUserCapability
4
- } from "../../../chunks/chunk-A644H2XX.js";
5
- import "../../../chunks/chunk-B3SMW2XW.js";
6
- import "../../../chunks/chunk-S2J3SZZX.js";
4
+ } from "../../../chunks/chunk-LU7RKALH.js";
5
+ import "../../../chunks/chunk-QJH6YN2W.js";
6
+ import "../../../chunks/chunk-IM43UYVV.js";
7
+ import "../../../chunks/chunk-XXGYUYXI.js";
7
8
  import "../../../chunks/chunk-LZQXQOPJ.js";
8
9
 
9
10
  // builtin/extensions/ask-user/index.ts
@@ -1,9 +1,10 @@
1
1
  {
2
- "name": "@pie/ask-user-extension",
3
- "version": "1.0.0",
4
- "type": "module",
5
- "pie": {
6
- "name": "ask-user",
7
- "main": "index.ts"
8
- }
2
+ "name": "@pie/ask-user-extension",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "pie": {
6
+ "name": "ask-user",
7
+ "main": "index.js"
8
+ },
9
+ "main": "index.js"
9
10
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "@pie/extension-changelog",
3
- "version": "1.0.0",
4
- "description": "Intelligent changelog management with gap detection",
5
- "main": "index.ts",
6
- "type": "module",
7
- "pie": {
8
- "name": "changelog",
9
- "main": "index.ts"
10
- }
2
+ "name": "@pie/extension-changelog",
3
+ "version": "1.0.0",
4
+ "description": "Intelligent changelog management with gap detection",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "pie": {
8
+ "name": "changelog",
9
+ "main": "index.js"
10
+ }
11
11
  }