@cydm/pie 1.0.50 → 2.1.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 (51) hide show
  1. package/README.md +32 -15
  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 +5466 -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/index.js +51 -0
  19. package/dist/builtin/extensions/document-attachments/package.json +9 -9
  20. package/dist/builtin/extensions/init/package.json +9 -9
  21. package/dist/builtin/extensions/mcp-adapter/index.js +25250 -0
  22. package/dist/builtin/extensions/mcp-adapter/package.json +11 -0
  23. package/dist/builtin/extensions/plan-mode/index.js +4 -3
  24. package/dist/builtin/extensions/plan-mode/package.json +9 -9
  25. package/dist/builtin/extensions/subagent/index.js +17 -20
  26. package/dist/builtin/extensions/subagent/package.json +16 -12
  27. package/dist/builtin/extensions/todo/index.js +4 -3
  28. package/dist/builtin/extensions/todo/package.json +9 -9
  29. package/dist/builtin/skills/chrome-devtools-axi/CHANGELOG.md +5 -0
  30. package/dist/builtin/skills/chrome-devtools-axi/README.md +17 -0
  31. package/dist/builtin/skills/chrome-devtools-axi/SKILL.md +31 -0
  32. package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-cli.js +77 -0
  33. package/dist/builtin/skills/chrome-devtools-axi/package.json +12 -0
  34. package/dist/builtin/skills/tui-use/README.md +7 -0
  35. package/dist/builtin/skills/tui-use/SKILL.md +58 -0
  36. package/dist/chunks/chunk-5353DEEC.js +130 -0
  37. package/dist/chunks/{chunk-XBWFDIAU.js → chunk-G2POWIA5.js} +129 -194
  38. package/dist/chunks/{chunk-K6ZOCJ4V.js → chunk-IM43UYVV.js} +861 -3376
  39. package/dist/chunks/{chunk-DZS34ACX.js → chunk-PMPD56N2.js} +243 -87
  40. package/dist/chunks/{chunk-FKAO25XH.js → chunk-QJH6YN2W.js} +1 -1
  41. package/dist/chunks/chunk-XXGYUYXI.js +2718 -0
  42. package/dist/chunks/{src-HYZFAW4V.js → src-QSP2OPHU.js} +3 -2
  43. package/dist/chunks/{test-stream-5T7E7C25.js → test-stream-CVGWFLSX.js} +2 -1
  44. package/dist/chunks/webapi-MBCKO7ZV.js +2481 -0
  45. package/dist/cli.js +186 -78
  46. package/package.json +5 -4
  47. package/dist/builtin/skills/browser-tools/CHANGELOG.md +0 -5
  48. package/dist/builtin/skills/browser-tools/README.md +0 -17
  49. package/dist/builtin/skills/browser-tools/SKILL.md +0 -43
  50. package/dist/builtin/skills/browser-tools/package.json +0 -12
  51. package/dist/builtin/skills/browser-tools/playwright-cli.js +0 -45
@@ -1,17 +0,0 @@
1
- # Browser Tools
2
-
3
- Pie's browser-tools skill is backed by Microsoft Playwright CLI through `playwright-cli.js`.
4
-
5
- Use:
6
-
7
- ```bash
8
- node playwright-cli.js --help
9
- node playwright-cli.js open https://example.com
10
- node playwright-cli.js snapshot
11
- node playwright-cli.js screenshot
12
- node playwright-cli.js console
13
- node playwright-cli.js requests
14
- node playwright-cli.js close
15
- ```
16
-
17
- Dependencies are provided by `@cydm/pie`; do not run `npm install` inside this skill directory.
@@ -1,43 +0,0 @@
1
- ---
2
- name: browser-tools
3
- description: Interactive browser automation via Microsoft Playwright CLI. Use when you need to open pages, inspect DOM snapshots, click/type, capture screenshots, inspect console/request output, or test frontend flows in a real browser.
4
- ---
5
-
6
- # Browser Tools
7
-
8
- Use Pie's packaged Microsoft Playwright CLI wrapper. Scripts live next to this skill; resolve `playwright-cli.js` against this skill's `baseDir` and use the resulting ordinary path with `bash`.
9
-
10
- No manual dependency install is required when this skill is shipped with Pie.
11
-
12
- ## Common Commands
13
-
14
- ```bash
15
- node <baseDir>/playwright-cli.js open https://example.com
16
- node <baseDir>/playwright-cli.js goto https://example.com
17
- node <baseDir>/playwright-cli.js snapshot
18
- node <baseDir>/playwright-cli.js click "Submit"
19
- node <baseDir>/playwright-cli.js type "hello"
20
- node <baseDir>/playwright-cli.js screenshot
21
- node <baseDir>/playwright-cli.js console
22
- node <baseDir>/playwright-cli.js requests
23
- node <baseDir>/playwright-cli.js close
24
- ```
25
-
26
- Use `node <baseDir>/playwright-cli.js --help` for the full command list.
27
-
28
- ## Workflow
29
-
30
- Start with `open` or `goto`, then use `snapshot` before interacting. Prefer snapshot, console, and request output for diagnosis; use screenshots when visual layout matters. Use named sessions with `-s=<session>` when you need to keep multiple browser flows separate.
31
-
32
- If the browser is not installed, run:
33
-
34
- ```bash
35
- node <baseDir>/playwright-cli.js install-browser chromium
36
- ```
37
-
38
- If a session gets stuck, use:
39
-
40
- ```bash
41
- node <baseDir>/playwright-cli.js close
42
- node <baseDir>/playwright-cli.js kill-all
43
- ```
@@ -1,12 +0,0 @@
1
- {
2
- "name": "browser-tools",
3
- "version": "2.0.0",
4
- "type": "module",
5
- "description": "Microsoft Playwright CLI wrapper for collaborative site exploration",
6
- "author": "",
7
- "license": "MIT",
8
- "private": true,
9
- "pie": {
10
- "dependenciesProvidedBy": "@cydm/pie"
11
- }
12
- }
@@ -1,45 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { spawnSync } from "node:child_process";
4
- import fs from "node:fs";
5
- import { createRequire } from "node:module";
6
- import path from "node:path";
7
- import { fileURLToPath } from "node:url";
8
-
9
- const require = createRequire(import.meta.url);
10
-
11
- export function resolvePlaywrightCli() {
12
- return require.resolve("@playwright/cli/playwright-cli.js");
13
- }
14
-
15
- export function runPlaywrightCli(args = process.argv.slice(2), options = {}) {
16
- const bin = resolvePlaywrightCli();
17
- return spawnSync(process.execPath, [bin, ...args], {
18
- stdio: "inherit",
19
- shell: false,
20
- ...options,
21
- });
22
- }
23
-
24
- function normalizeDirectEntryPath(candidate) {
25
- const resolved = path.resolve(candidate);
26
- const real = fs.realpathSync.native(resolved);
27
- const normalized = path.normalize(real);
28
- return process.platform === "win32" ? normalized.toLowerCase() : normalized;
29
- }
30
-
31
- export function isDirectEntry(moduleUrl = import.meta.url, argvPath = process.argv[1]) {
32
- if (!argvPath) return false;
33
- try {
34
- const modulePath = normalizeDirectEntryPath(fileURLToPath(moduleUrl));
35
- const entryPath = normalizeDirectEntryPath(argvPath);
36
- return modulePath === entryPath;
37
- } catch {
38
- return false;
39
- }
40
- }
41
-
42
- if (isDirectEntry()) {
43
- const result = runPlaywrightCli();
44
- process.exitCode = result.status ?? 1;
45
- }