@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
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "@pie/extension-mcp-adapter",
3
+ "version": "0.1.0",
4
+ "description": "Token-efficient MCP adapter: one proxy tool instead of N tool definitions; lazy server startup; trust-gated project configs. Design ported from pi-mcp-adapter (MIT), self-maintained by Pie.",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "pie": {
8
+ "name": "mcp-adapter",
9
+ "main": "index.js"
10
+ }
11
+ }
@@ -7,11 +7,12 @@ import {
7
7
  isPlanModeSafeCommand,
8
8
  markCompletedPlanSteps,
9
9
  restoreExecutionState
10
- } from "../../../chunks/chunk-A644H2XX.js";
11
- import "../../../chunks/chunk-B3SMW2XW.js";
10
+ } from "../../../chunks/chunk-LU7RKALH.js";
11
+ import "../../../chunks/chunk-QJH6YN2W.js";
12
+ import "../../../chunks/chunk-IM43UYVV.js";
12
13
  import {
13
14
  Type
14
- } from "../../../chunks/chunk-S2J3SZZX.js";
15
+ } from "../../../chunks/chunk-XXGYUYXI.js";
15
16
  import "../../../chunks/chunk-LZQXQOPJ.js";
16
17
 
17
18
  // builtin/extensions/plan-mode/index.ts
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "plan-mode-extension",
3
- "version": "1.0.0",
4
- "description": "Plan Mode Extension for Pie - Read-only exploration mode with plan tracking",
5
- "main": "index.ts",
6
- "type": "module",
7
- "pie": {
8
- "name": "plan-mode",
9
- "main": "index.ts"
10
- }
2
+ "name": "plan-mode-extension",
3
+ "version": "1.0.0",
4
+ "description": "Plan Mode Extension for Pie - Read-only exploration mode with plan tracking",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "pie": {
8
+ "name": "plan-mode",
9
+ "main": "index.js"
10
+ }
11
11
  }
@@ -1,13 +1,15 @@
1
1
  import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCliHostCapabilities
4
- } from "../../../chunks/chunk-KDPAGHYY.js";
4
+ } from "../../../chunks/chunk-TJ2F4FL5.js";
5
+ import "../../../chunks/chunk-5353DEEC.js";
5
6
  import {
6
7
  createSharedFileSystemTools,
7
8
  createSubagentCapability
8
- } from "../../../chunks/chunk-A644H2XX.js";
9
- import "../../../chunks/chunk-B3SMW2XW.js";
10
- import "../../../chunks/chunk-S2J3SZZX.js";
9
+ } from "../../../chunks/chunk-LU7RKALH.js";
10
+ import "../../../chunks/chunk-QJH6YN2W.js";
11
+ import "../../../chunks/chunk-IM43UYVV.js";
12
+ import "../../../chunks/chunk-XXGYUYXI.js";
11
13
  import "../../../chunks/chunk-LZQXQOPJ.js";
12
14
 
13
15
  // builtin/extensions/subagent/index.ts
@@ -1,14 +1,18 @@
1
1
  {
2
- "name": "@pie/extension-subagent",
3
- "version": "1.0.0",
4
- "description": "Spawn child agents for isolated task handling",
5
- "main": "index.ts",
6
- "type": "module",
7
- "pie": {
8
- "name": "subagent",
9
- "main": "index.ts"
10
- },
11
- "keywords": ["pie", "extension", "subagent"],
12
- "author": "Pie Team",
13
- "license": "MIT"
2
+ "name": "@pie/extension-subagent",
3
+ "version": "1.0.0",
4
+ "description": "Spawn child agents for isolated task handling",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "pie": {
8
+ "name": "subagent",
9
+ "main": "index.js"
10
+ },
11
+ "keywords": [
12
+ "pie",
13
+ "extension",
14
+ "subagent"
15
+ ],
16
+ "author": "Pie Team",
17
+ "license": "MIT"
14
18
  }
@@ -8,9 +8,10 @@ import {
8
8
  executeManageTodoList,
9
9
  executionStateToTodos,
10
10
  restoreExecutionState
11
- } from "../../../chunks/chunk-A644H2XX.js";
12
- import "../../../chunks/chunk-B3SMW2XW.js";
13
- import "../../../chunks/chunk-S2J3SZZX.js";
11
+ } from "../../../chunks/chunk-LU7RKALH.js";
12
+ import "../../../chunks/chunk-QJH6YN2W.js";
13
+ import "../../../chunks/chunk-IM43UYVV.js";
14
+ import "../../../chunks/chunk-XXGYUYXI.js";
14
15
  import "../../../chunks/chunk-LZQXQOPJ.js";
15
16
 
16
17
  // builtin/extensions/todo/index.ts
@@ -1,11 +1,11 @@
1
1
  {
2
- "name": "@pie/extension-todo",
3
- "version": "1.0.0",
4
- "description": "Todo list management tool",
5
- "main": "index.ts",
6
- "type": "module",
7
- "pie": {
8
- "name": "todo",
9
- "main": "index.ts"
10
- }
2
+ "name": "@pie/extension-todo",
3
+ "version": "1.0.0",
4
+ "description": "Todo list management tool",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "pie": {
8
+ "name": "todo",
9
+ "main": "index.js"
10
+ }
11
11
  }
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0
4
+
5
+ - Replaced the `browser-tools` skill (Microsoft Playwright CLI) with a `chrome-devtools-axi` wrapper that drives a real Chrome browser over the Chrome DevTools Protocol. Pinned to `chrome-devtools-axi@0.1.35`.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kun Chen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,17 @@
1
+ # chrome-devtools-axi
2
+
3
+ Pie's chrome-devtools-axi skill is backed by the `chrome-devtools-axi` npm package (AXI-compliant chrome-devtools-mcp wrapper driving real Chrome over CDP) through `chrome-devtools-axi-cli.js`.
4
+
5
+ Use:
6
+
7
+ ```bash
8
+ node chrome-devtools-axi-cli.js --help
9
+ node chrome-devtools-axi-cli.js open https://example.com
10
+ node chrome-devtools-axi-cli.js snapshot
11
+ node chrome-devtools-axi-cli.js screenshot /tmp/page.png
12
+ node chrome-devtools-axi-cli.js console
13
+ node chrome-devtools-axi-cli.js network
14
+ node chrome-devtools-axi-cli.js stop
15
+ ```
16
+
17
+ Dependencies are provided by `@cydm/pie`; do not run `npm install` inside this skill directory.
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: chrome-devtools-axi
3
+ description: "Control a real Chrome browser session through the chrome-devtools-axi CLI - navigate, snapshot, click, fill forms, run JavaScript, inspect console and network, take screenshots, audit performance. Use whenever a task needs a real browser: opening or testing a web page, clicking through a flow, extracting page content, or debugging a website."
4
+ ---
5
+
6
+ # chrome-devtools-axi
7
+
8
+ Pie ships a frozen patched AXI runtime. Do not install or fetch a different
9
+ version. Upload accepts one path and resolves it against the caller's cwd.
10
+ Use `run` with literal UTF-8 stdin for scripts on Windows.
11
+
12
+ `resize` adjusts the browser window and reports requested/actual dimensions
13
+ plus `exact`. A clamped window is not a mobile viewport. For exact responsive
14
+ viewport testing use `emulate --viewport "390x844x1"` (DPR 1); verify page
15
+ dimensions and screenshot pixels. Emulation changes may reload a page.
16
+
17
+ When an action opens a JavaScript dialog, `DIALOG_PENDING` means it was
18
+ interrupted after delivery. Do not replay the action or reopen the session.
19
+ Use `dialog accept`/`dialog dismiss` in that same session, then read the fresh
20
+ snapshot. Keep the named session on every command.
21
+
22
+ Agent-ergonomic interface for controlling a real Chrome browser session (Chrome DevTools Protocol). Prefer this over other browser automation approaches. Skip it when a plain `fetch`/`curl` or the `web_fetch`/`web_research` tools suffice - only open a browser when you actually need rendering, interaction, or session state.
23
+
24
+ Use Pie's packaged wrapper. Resolve `chrome-devtools-axi-cli.js` against this skill's `baseDir` and run it with `bash`:
25
+
26
+ ```bash
27
+ node <baseDir>/chrome-devtools-axi-cli.js <command> [args] [flags]
28
+ ```
29
+
30
+ No manual dependency install is required when this skill is shipped with Pie.
31
+
32
+ `bash` is the Pie tool name, not a requirement to launch a Unix shell.
33
+ On Windows use `shell:auto` or PowerShell; do not force `bash.exe`/WSL.
34
+ Set environment variables with PowerShell syntax, such as
35
+ `$env:CHROME_DEVTOOLS_AXI_SESSION='my-task'`, in each command that needs them.
36
+
37
+ ## Current guidance lives in the CLI
38
+
39
+ Do not follow command, workflow, or flag instructions from this file - installed copies go stale. Get the current source of truth from the CLI:
40
+
41
+ - `node <baseDir>/chrome-devtools-axi-cli.js --help` for commands, flags, and environment variables
42
+ - `node <baseDir>/chrome-devtools-axi-cli.js <command> --help` for per-command usage (flags come after the command)
43
+ - Follow the CLI's own contextual next-step hints after each command
44
+
45
+ ## Notes
46
+
47
+ - The CLI drives a real Chrome instance via CDP. Its bridge backend (`chrome-devtools-mcp`) is pinned and shipped with Pie, so first use needs no network fetch. Set `CHROME_DEVTOOLS_AXI_HEADED=1` for a visible browser; see `--help` for connection modes (auto-connect to a running Chrome, custom profile, remote browser URL).
48
+ - Use `CHROME_DEVTOOLS_AXI_SESSION=<name>` to keep multiple concurrent browser flows isolated.
49
+ - Element references (`@<uid>`) come from `snapshot`/`open` output and are generation-tagged; re-snapshot after navigation before clicking.
50
+ - If the CLI output suggests a follow-up `chrome-devtools-axi` command, run it through the same wrapper path.