@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
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
createPlanCapability,
|
|
7
7
|
markCompletedPlanSteps,
|
|
8
8
|
restoreExecutionState
|
|
9
|
-
} from "../../../chunks/chunk-
|
|
10
|
-
import "../../../chunks/chunk-
|
|
11
|
-
import "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
9
|
+
} from "../../../chunks/chunk-DBDU3RRN.js";
|
|
10
|
+
import "../../../chunks/chunk-LRHNAG4V.js";
|
|
11
|
+
import "../../../chunks/chunk-BA4Z27XT.js";
|
|
12
|
+
import "../../../chunks/chunk-4UIUMTHG.js";
|
|
13
13
|
import {
|
|
14
14
|
Type
|
|
15
15
|
} from "../../../chunks/chunk-XXGYUYXI.js";
|
|
@@ -407,7 +407,7 @@ Discuss the revision with the user (read-only; Plan mode is back on). When the u
|
|
|
407
407
|
if (!executingPlan || state.steps.length === 0) return;
|
|
408
408
|
const message = event.message;
|
|
409
409
|
if (message?.role !== "assistant" || !Array.isArray(message.content)) return;
|
|
410
|
-
const text = message.content.filter((item) => item.type === "text").map((item) => item.text).join("\n");
|
|
410
|
+
const text = message.content.filter((item) => typeof item === "object" && item !== null && "type" in item && item.type === "text" && "text" in item && typeof item.text === "string").map((item) => item.text).join("\n");
|
|
411
411
|
const todoItems = toPlanTodoItems(state);
|
|
412
412
|
if (markCompletedPlanSteps(text, todoItems) <= 0) return;
|
|
413
413
|
const nextState = createExecutionStateFromPlan(todoItems);
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
createCliRetryPolicy,
|
|
6
6
|
formatTransportLifecycle,
|
|
7
7
|
logTransportLifecycle
|
|
8
|
-
} from "../../../chunks/chunk-
|
|
9
|
-
import {
|
|
10
|
-
getConfigDir
|
|
11
|
-
} from "../../../chunks/chunk-CBDQJMUI.js";
|
|
8
|
+
} from "../../../chunks/chunk-EEC5PJTC.js";
|
|
12
9
|
import {
|
|
13
10
|
SUBAGENT_SESSION_RECORD_VERSION,
|
|
14
11
|
createPolicyEnforcedTools,
|
|
15
12
|
createSharedFileSystemTools,
|
|
16
13
|
createSubagentCapability
|
|
17
|
-
} from "../../../chunks/chunk-
|
|
18
|
-
import "../../../chunks/chunk-
|
|
19
|
-
import "../../../chunks/chunk-
|
|
20
|
-
import
|
|
14
|
+
} from "../../../chunks/chunk-DBDU3RRN.js";
|
|
15
|
+
import "../../../chunks/chunk-LRHNAG4V.js";
|
|
16
|
+
import "../../../chunks/chunk-BA4Z27XT.js";
|
|
17
|
+
import {
|
|
18
|
+
getConfigDir
|
|
19
|
+
} from "../../../chunks/chunk-CBDQJMUI.js";
|
|
20
|
+
import "../../../chunks/chunk-4UIUMTHG.js";
|
|
21
21
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
22
22
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
23
23
|
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
executeManageTodoList,
|
|
9
9
|
executionStateToTodos,
|
|
10
10
|
restoreExecutionState
|
|
11
|
-
} from "../../../chunks/chunk-
|
|
12
|
-
import "../../../chunks/chunk-
|
|
13
|
-
import "../../../chunks/chunk-
|
|
14
|
-
import "../../../chunks/chunk-
|
|
11
|
+
} from "../../../chunks/chunk-DBDU3RRN.js";
|
|
12
|
+
import "../../../chunks/chunk-LRHNAG4V.js";
|
|
13
|
+
import "../../../chunks/chunk-BA4Z27XT.js";
|
|
14
|
+
import "../../../chunks/chunk-4UIUMTHG.js";
|
|
15
15
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
16
16
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
17
17
|
|
|
@@ -5,28 +5,30 @@ description: "Control a real Chrome browser session through the chrome-devtools-
|
|
|
5
5
|
|
|
6
6
|
# chrome-devtools-axi
|
|
7
7
|
|
|
8
|
-
## Which browser does a command drive? (decision order)
|
|
9
|
-
|
|
10
|
-
The DEFAULT target is
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
8
|
+
## Which browser does a command drive? (background-first decision order)
|
|
9
|
+
|
|
10
|
+
The DEFAULT target is an **isolated background headless Chrome** — it runs
|
|
11
|
+
silently in the background without stealing focus, without popping up Chrome's
|
|
12
|
+
remote-debugging permission dialog, and with verified private-profile cleanup
|
|
13
|
+
when stopped or idle.
|
|
14
|
+
|
|
15
|
+
- **Default (background headless, no user login state needed)** → run directly
|
|
16
|
+
with no special env vars (or set `CHROME_DEVTOOLS_AXI_FRESH=1` to ignore any
|
|
17
|
+
inherited attach/profile env). Always call `stop` on your named session once
|
|
18
|
+
the task finishes so the background Chrome exits immediately instead of
|
|
19
|
+
waiting for the 10-minute idle timeout.
|
|
20
|
+
- **Visible isolated browser** (e.g. user asked "打开页面给我看" without
|
|
21
|
+
needing their personal login) → `CHROME_DEVTOOLS_AXI_HEADED=1`.
|
|
22
|
+
- **User's running Chrome (explicit opt-in ONLY when personal login state /
|
|
23
|
+
existing tabs are genuinely required)** → `CHROME_DEVTOOLS_AXI_AUTO_CONNECT=1`
|
|
24
|
+
(or `CHROME_DEVTOOLS_AXI_ATTACH=1`). Requires the one-time
|
|
25
|
+
`chrome://inspect/#remote-debugging` enable and triggers Chrome's "Allow
|
|
26
|
+
remote debugging?" dialog; use a dedicated `CHROME_DEVTOOLS_AXI_SESSION` so
|
|
27
|
+
it never collides with background headless sessions.
|
|
28
|
+
- **Explicit external endpoint** → `CHROME_DEVTOOLS_AXI_BROWSER_URL`
|
|
29
|
+
(`http(s)://` or `ws(s)://`).
|
|
30
|
+
- **Native desktop apps / non-browser windows** → use `computer-use-axi`
|
|
31
|
+
instead.
|
|
30
32
|
|
|
31
33
|
Pie ships a frozen patched AXI runtime. Do not install or fetch a different
|
|
32
34
|
version. Upload accepts one path and resolves it against the caller's cwd.
|
|
@@ -40,7 +42,16 @@ dimensions and screenshot pixels. Emulation changes may reload a page.
|
|
|
40
42
|
When an action opens a JavaScript dialog, `DIALOG_PENDING` means it was
|
|
41
43
|
interrupted after delivery. Do not replay the action or reopen the session.
|
|
42
44
|
Use `dialog accept`/`dialog dismiss` in that same session, then read the fresh
|
|
43
|
-
snapshot.
|
|
45
|
+
snapshot. If a second dialog opens immediately (e.g. page confirm + `beforeunload`),
|
|
46
|
+
`dialog` reports `nextDialogPending: true` — handle it again before snapshotting.
|
|
47
|
+
Keep the named session on every command.
|
|
48
|
+
|
|
49
|
+
## Verification & Approval Rules
|
|
50
|
+
|
|
51
|
+
- **Never equate "action sent" with "saved/persisted"**: clicking Save only confirms the click was dispatched — it never guarantees async form state settled or the backend persisted the intended value. Before clicking Save, wait for loading indicators (`wait "Loading..." --absent`) and confirm the visible selected value (`wait "<value>" --visible`); after clicking Save, verify the submit request/response (`network --type fetch --preserved --full` / `network-get <id> --full`) and/or read back after reload.
|
|
52
|
+
- **Ignore hidden/closed dropdown DOM**: use `wait "<text>" --visible` when waiting for UI options or confirmations.
|
|
53
|
+
- **Virtualized lists requiring trusted wheel input**: `scroll --wheel` dispatches a synthetic DOM `WheelEvent` (`isTrusted=false`, because `chrome-devtools-mcp` exposes no native mouse-wheel tool). If a virtual list ignores untrusted wheel events, focus the container and use `press PageDown`/`ArrowDown` (real CDP keyboard input, `isTrusted=true`), or use `computer-use-axi` (native CDP `mouseWheel` / OS wheel, `isTrusted=true`).
|
|
54
|
+
- **Do not restart the bridge while waiting for Chrome's approval dialog**: when explicitly opting into `CHROME_DEVTOOLS_AXI_AUTO_CONNECT=1`, the CLI prints a waiting notice to stderr while Chrome asks the user to click Allow. Let it complete instead of running `stop`/retrying concurrently.
|
|
44
55
|
|
|
45
56
|
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.
|
|
46
57
|
|
|
@@ -67,7 +78,7 @@ Do not follow command, workflow, or flag instructions from this file - installed
|
|
|
67
78
|
|
|
68
79
|
## Notes
|
|
69
80
|
|
|
70
|
-
- 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. `CHROME_DEVTOOLS_AXI_HEADED=1` makes a
|
|
81
|
+
- 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. Default mode launches an isolated headless Chrome in the background; `CHROME_DEVTOOLS_AXI_HEADED=1` makes a launch-mode instance visible (ignored in attach modes). Always run `stop` on named sessions when done to free Chrome immediately. See `--help` for connection modes.
|
|
71
82
|
- Use `CHROME_DEVTOOLS_AXI_SESSION=<name>` to keep multiple concurrent browser flows isolated.
|
|
72
83
|
- Element references (`@<uid>`) come from `snapshot`/`open` output and are generation-tagged; re-snapshot after navigation before clicking.
|
|
73
84
|
- If the CLI output suggests a follow-up `chrome-devtools-axi` command, run it through the same wrapper path.
|