Adds Agent Console (@magpie-community/page-agent-console 1.0.0), a community page plugin that drives the Agent CLIs on this computer (Claude Code, Codex, ACP agents) through a local daemon on 127.0.0.1, with its source in packages/agent-console and a registry entry. Claude Code is the user's own `claude` CLI driven over stream-json (daemon/src/providers/claude/cli.ts); no Anthropic SDK is installed, bundled or in the branch's history. Cold install ~45 MB (node-pty ~26 MB), stated in the README and registry summary in en and zh. By qingnian108 (#535). What was run at 8e8f910 (mote, macOS, throwaway HOME, no real accounts): - packages/agent-console: `npm ci --ignore-scripts --workspaces=false`; `node scripts/verify-build.mjs`: all five bundles byte-identical (daemon/dist/main.js 08c95aa3…, app/app.js 9a6911f3…); `vitest run`: 45 files, 254 passed, 17 skipped; `npm run check` clean. - Real Claude Code 2.1.316 (npm @anthropic-ai/claude-code, sandbox HOME/CLAUDE_CONFIG_DIR, local fake Messages API): `AC_REAL_CLAUDE=… vitest run --config vitest.real.config.ts test/real/claude-cli.real.test.ts`: 4 of 4 (initialize lists 51 slash commands, streaming turn, Bash permission approved and denied, interrupt, --resume with set_model). - Probe: the driver's exact argv with `--permission-mode bypassPermissions --allow-dangerously-skip-permissions`: the tool runs with no can_use_tool request. - Repo root: `HOME=$(mktemp -d) bun test`: 4006 tests, 0 fail; `bun scripts/check.mjs` exit 0. - Install as magpie does: `npm pack --ignore-scripts` (552 KB) then `bun add --ignore-scripts`: 45 MB node_modules, no @anthropic-ai/*, index.mjs imports. - Read every changed line since 41c7a94: argv values limited to SAFE_ARG tokens (no cmd.exe metacharacters reach the shim path), no new network hosts, no install scripts, no eval; no commit in main..8e8f910 contains claude-agent-sdk. Not tried: magpie's desktop window loading the page; a Windows .cmd/.ps1 claude shim end to end.
1.8 KiB
Third-Party Notices
Design references
The persistent-session architecture, event protocol and UI layout of this plugin were designed with reference to the following open-source projects (only design ideas and protocol shapes were referenced; no source code was copied):
- Paseo (https://github.com/getpaseo/paseo) — persistent daemon + WebSocket event push, and the provider session abstraction.
- T3 Code (https://github.com/pingdotgg/t3code, MIT) — timeline item shapes (tool groups, permission cards, plan cards) and the three-column workbench layout.
npm dependencies and their licenses
Installed with the plugin (dependencies, and node-pty as an optionalDependency):
| Package | Version | License |
|---|---|---|
| @agentclientprotocol/sdk | 2.1.0 | Apache-2.0 |
| ignore | 7.0.14 | MIT |
| node-pty (optional) | 1.2.0-beta.15 | MIT |
| ws | 8.22.0 | MIT |
| zod | 4.6.7 | MIT |
Bundled into app/app.js (devDependencies: not installed for users, but their code ships inside the bundle):
| Package | Version | License |
|---|---|---|
| @tanstack/react-virtual | 3.14.24 | MIT |
| @xterm/addon-fit | 0.11.0 | MIT |
| @xterm/xterm | 6.0.0 | MIT |
| clsx | 2.1.1 | MIT |
| dompurify | 3.4.17 | MPL-2.0 OR Apache-2.0 |
| highlight.js | 11.12.0 | BSD-3-Clause |
| lucide-react | 1.64.0 | ISC |
| marked | 18.1.2 | MIT |
| react | 19.3.1 | MIT |
| react-dom | 19.3.1 | MIT |
| zustand | 5.0.16 | MIT |
Build and test tools (devDependencies; nothing from them ships):
typescript (Apache-2.0), esbuild (MIT), vitest (MIT), playwright-core (Apache-2.0),
@types/* (MIT).
The Codex app-server JSON-RPC schema files (daemon/src/providers/codex/schema/) are generated
locally by codex app-server generate-json-schema. They describe the OpenAI Codex CLI interface
and are used under the Codex license; the plugin uses them only for protocol integration.