@cydm/pie 4.8.0 → 4.10.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 +906 -158
- package/dist/builtin/extensions/im-forward/README.md +4 -2
- package/dist/builtin/extensions/im-forward/index.js +6875 -3972
- 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 +285 -61
- package/dist/builtin/extensions/pie-proc/README.md +7 -7
- package/dist/builtin/extensions/pie-proc/index.js +493 -107
- 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 +26 -24
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +199 -121
- 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-ZE754CTH.js → cli-K7ESY3XD.js} +433 -255
- package/dist/builtin/skills/computer-use-axi/SKILL.md +25 -8
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +367 -65
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +2 -2
- package/dist/builtin/skills/tui-use/tui-use-daemon.cjs +451 -43
- package/dist/chunks/{chunk-Y3I2UV5Y.js → chunk-5QMS6RQC.js} +353 -287
- package/dist/chunks/chunk-6WKBQZWM.js +19 -0
- package/dist/chunks/{chunk-LAJXWOKS.js → chunk-7LICWWUE.js} +11 -9
- package/dist/chunks/{chunk-5KI4Y4LA.js → chunk-BQWHLYYZ.js} +4 -3
- package/dist/chunks/{chunk-4PR34UZF.js → chunk-BTUMBUDU.js} +159 -145
- package/dist/chunks/{chunk-NHV2CALB.js → chunk-FC5AN5QP.js} +409 -32
- package/dist/chunks/{chunk-3W3SXVPB.js → chunk-G2K4GY6N.js} +993 -371
- package/dist/chunks/{chunk-BLDI2GRF.js → chunk-HK3FHIAH.js} +1364 -446
- package/dist/chunks/chunk-IZKHSUNQ.js +30 -0
- package/dist/chunks/{chunk-CGSFBWOM.js → chunk-KWK7KTSZ.js} +4 -3
- package/dist/chunks/chunk-OU33ROFD.js +717 -0
- package/dist/chunks/{chunk-Z2FKA2ZH.js → chunk-XMTRKMBG.js} +104 -22
- package/dist/chunks/{host-image-fallback-N7RHNPYN.js → host-image-fallback-3TEMOQM5.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-QKJ3YVDS.js} +2 -2
- package/dist/chunks/{read-file-understanding-FMPXR6EJ.js → read-file-understanding-N2ZZQLTZ.js} +5 -5
- package/dist/chunks/{src-EGXFJ3WA.js → src-3PSR2AAX.js} +3 -3
- package/dist/chunks/{src-B44QWSGM.js → src-D5GN4Q5O.js} +2 -2
- package/dist/chunks/{src-CLE5ILN4.js → src-F5N6O2HR.js} +20 -4
- package/dist/chunks/{src-Q7LU27C2.js → src-TIDKYA5F.js} +31 -1
- package/dist/chunks/{test-stream-OR3EJBNF.js → test-stream-JAJHK44G.js} +2 -2
- package/dist/cli.js +4123 -2389
- package/models.schema.json +271 -0
- package/package.json +2 -2
- package/dist/builtin/skills/chrome-devtools-axi/chunk-Z2A5LA5A.js +0 -407
- package/dist/chunks/chunk-EGZ5TZRM.js +0 -1444
- package/dist/chunks/{manager-upgrade-CTU3ISCW.js → manager-upgrade-LSTOHBUV.js} +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
# @cydm/pie
|
|
2
2
|
|
|
3
|
-
`@cydm/pie` is a minimal, powerful, embeddable agent suite for game
|
|
3
|
+
`@cydm/pie` is the CLI host of **Pie (`Pie = Pi Embedded`)** — a minimal, powerful, embeddable AI agent suite built for everyday coding, resident multi-session supervision, and game/edge runtime integration.
|
|
4
4
|
|
|
5
|
-
It gives you a terminal-first agent experience out of the box,
|
|
6
|
-
|
|
7
|
-
Pie is developed by [cydream](https://cydream.tech).
|
|
5
|
+
It gives you a terminal-first agent experience out of the box, embeds cleanly into existing workflows (terminal, IM threads/cards, Unity via `com.pie.agent`), and keeps its core vendor-neutral with persistent sessions, model-driven thinking controls, zero-LLM control-plane extensions, and open skill loading.
|
|
8
6
|
|
|
9
7
|
## Why Pie
|
|
10
8
|
|
|
@@ -43,14 +41,14 @@ Minimal `~/.pie/models.json`:
|
|
|
43
41
|
```json
|
|
44
42
|
{
|
|
45
43
|
"profiles": {
|
|
46
|
-
"
|
|
44
|
+
"my-provider": {
|
|
47
45
|
"api": "openai-completions",
|
|
48
|
-
"baseUrl": "https://
|
|
46
|
+
"baseUrl": "https://api.example.com/v1",
|
|
49
47
|
"apiKey": "YOUR_API_KEY",
|
|
50
48
|
"models": [
|
|
51
49
|
{
|
|
52
|
-
"id": "
|
|
53
|
-
"name": "
|
|
50
|
+
"id": "my-model",
|
|
51
|
+
"name": "My Model",
|
|
54
52
|
"reasoning": true,
|
|
55
53
|
"input": ["text", "image"],
|
|
56
54
|
"contextWindow": 128000,
|
|
@@ -66,8 +64,8 @@ Minimal `~/.pie/models.json`:
|
|
|
66
64
|
}
|
|
67
65
|
},
|
|
68
66
|
"defaults": {
|
|
69
|
-
"provider": "
|
|
70
|
-
"modelId": "
|
|
67
|
+
"provider": "my-provider",
|
|
68
|
+
"modelId": "my-model"
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
71
|
```
|
|
@@ -128,9 +126,9 @@ Pie can add centrally managed models without replacing local profiles or default
|
|
|
128
126
|
{
|
|
129
127
|
"remoteCatalogs": [
|
|
130
128
|
{
|
|
131
|
-
"id": "
|
|
132
|
-
"url": "https://
|
|
133
|
-
"apiKeyEnv": "
|
|
129
|
+
"id": "my-catalog",
|
|
130
|
+
"url": "https://catalog.example.com/v1/client-catalogs/pie.json",
|
|
131
|
+
"apiKeyEnv": "MY_CATALOG_API_KEY"
|
|
134
132
|
}
|
|
135
133
|
]
|
|
136
134
|
}
|
|
@@ -138,23 +136,29 @@ Pie can add centrally managed models without replacing local profiles or default
|
|
|
138
136
|
|
|
139
137
|
Remote catalogs use a three-second timeout, reject redirects, and fall back to the last valid cached response. A local profile with the same id always wins. Remote catalogs never modify `defaults`.
|
|
140
138
|
|
|
141
|
-
### Per-model overrides
|
|
139
|
+
### Per-model overrides & voice config
|
|
142
140
|
|
|
143
141
|
Use top-level `modelOverrides` to patch descriptive fields of any loaded model (declared locally or provided by a remote catalog) without redeclaring the whole profile. Keys are `"provider/modelId"`:
|
|
144
142
|
|
|
145
143
|
```json
|
|
146
144
|
{
|
|
147
145
|
"modelOverrides": {
|
|
148
|
-
"
|
|
146
|
+
"my-provider/my-model": {
|
|
149
147
|
"contextWindow": 256000,
|
|
150
148
|
"maxTokens": 16384,
|
|
149
|
+
"thinking": {
|
|
150
|
+
"mode": "effort",
|
|
151
|
+
"supportedLevels": ["off", "low", "medium", "high", "xhigh"]
|
|
152
|
+
},
|
|
151
153
|
"compat": { "streamRequiresDone": false }
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
```
|
|
156
158
|
|
|
157
|
-
Overridable fields: `name`, `displayName`, `reasoning`, `input`, `cost`, `contextWindow`, `maxTokens`, `headers`, `compat`, `cacheCapability`, `webSearch`, `fileCapabilities`. Nested objects deep-merge; arrays replace. Identity and routing fields (`id`, `provider`, `api`, `baseUrl`, `apiKeyEnv`, `filePlatform`, `attachmentPlatform`) cannot be overridden. Overrides apply after profiles and remote catalogs merge, and re-apply when a catalog refreshes; keys that match no loaded model are ignored.
|
|
159
|
+
Overridable fields: `name`, `displayName`, `reasoning`, `thinking`, `input`, `cost`, `contextWindow`, `maxTokens`, `headers`, `transport`, `compat`, `cacheCapability`, `webSearch`, `fileCapabilities`. Nested objects deep-merge; arrays replace. Identity and routing fields (`id`, `provider`, `api`, `baseUrl`, `apiKeyEnv`, `filePlatform`, `attachmentPlatform`) cannot be overridden. Overrides apply after profiles and remote catalogs merge, and re-apply when a catalog refreshes; keys that match no loaded model are ignored.
|
|
160
|
+
|
|
161
|
+
Optional top-level `voice` configures a voice transcription endpoint shared with hosts such as `com.pie.agent` (`PieVoice`): `apiBaseUrl` (required), plus optional `apiKey` / `apiKeyEnv`, `mode`, `contextHint`, `tone`, `language`, `targetLanguage`, `preserveTerms`, `asrModel`, `llmModel`, and `timeoutSeconds`.
|
|
158
162
|
|
|
159
163
|
Start Pie in interactive mode:
|
|
160
164
|
|
|
@@ -196,7 +200,16 @@ If you want an agent that feels lightweight but still has serious capability, th
|
|
|
196
200
|
|
|
197
201
|
The CLI should consume shared capability and framework contracts; it should not redefine shared runtime or extension semantics locally.
|
|
198
202
|
|
|
199
|
-
##
|
|
203
|
+
## Background Manager & Resident Suite
|
|
204
|
+
|
|
205
|
+
Pie ships an always-on multi-session control suite whose control plane runs with **zero LLM tokens**:
|
|
206
|
+
|
|
207
|
+
- **`pie manager`** (`start` / `stop` / `status` / `tail` / `upgrade` / `--install-service`): runs a background resident host (`~/.pie/manager`) with IM forwarding and local IPC supervision.
|
|
208
|
+
- **IM forwarding (`im-forward`)**: forwards each live session into its own IM thread and serves zero-LLM interactive control cards (Sessions, Workers, Cron, Model/Thinking switches, and custom script actions).
|
|
209
|
+
- **Local IPC (`pie-ipc`) & worker lifecycle (`pie-proc`)**: zero-broker loopback messaging, `self_control`, peer thinking-capability advertisement, and bounded worker spawning/supervision.
|
|
210
|
+
- **Scheduled prompts (`cron`) & session memory (`memory`)**: persistent UTC schedules (`/tools/cron`) and opt-in session-derived memory (`pie memory`, static injection + detached background distillation worker).
|
|
211
|
+
|
|
212
|
+
### Windows manager service
|
|
200
213
|
|
|
201
214
|
`pie manager start` (or bare `pie manager`) starts an already-installed Windows
|
|
202
215
|
scheduled task without uninstalling it or creating a separate manual resident.
|
|
@@ -238,7 +251,8 @@ Main key bindings:
|
|
|
238
251
|
- `Ctrl+C` clear the editor; press twice within 500 ms to exit
|
|
239
252
|
- `Ctrl+D` exit when the editor is empty; forward-delete otherwise
|
|
240
253
|
- `Ctrl+V` / `Alt+V` / `Cmd+V` paste an image from the clipboard when the main chat editor owns focus (terminal clipboard first, OS helper fallback). Plan refinement, extension input/editor/custom UI, visible overlays, and the mention picker retain their own paste keys.
|
|
241
|
-
- `Ctrl+O` expand or collapse tool output
|
|
254
|
+
- `Ctrl+O` expand or collapse tool output (cycles calm / collapsed / expanded)
|
|
255
|
+
- `Shift+Tab` cycle thinking level across the active model's supported presets
|
|
242
256
|
- `Ctrl+X` toggle YOLO mode (`Alt+O` is an optional alias where the terminal delivers Alt)
|
|
243
257
|
- `Ctrl+R` set up or toggle IM forwarding (`Alt+I` is an optional alias where the terminal delivers Alt)
|
|
244
258
|
- `/` open the slash command menu
|
|
@@ -263,6 +277,8 @@ Pie uses a hierarchical slash-command menu. The current built-in commands includ
|
|
|
263
277
|
| `pie doctor [--json]` | Diagnose local config, model setup, writable paths, browser automation, and Unity bridge hints |
|
|
264
278
|
| `pie models init` | Create a starter `~/.pie/models.json` |
|
|
265
279
|
| `pie models validate` | Validate `~/.pie/models.json` |
|
|
280
|
+
| `pie manager [start\|stop\|status\|tail\|upgrade]` | Manage the background resident manager |
|
|
281
|
+
| `pie memory [status\|distill\|schedule]` | Inspect, distill, and schedule session-derived memory |
|
|
266
282
|
| `pie permissions` | Explain tool and shell safety defaults (`--json` returns the structured safety model) |
|
|
267
283
|
| `pie capabilities [--json]` | Report the command surface, flags, exit codes, and output schema for agents |
|
|
268
284
|
| `pie sessions list/read/rename/rewind/fork` | Inspect and manage stored sessions non-interactively (each supports `--json` and `--help`) |
|
|
@@ -271,24 +287,32 @@ Pie uses a hierarchical slash-command menu. The current built-in commands includ
|
|
|
271
287
|
| `/sessions/new` | Start a new session |
|
|
272
288
|
| `/sessions/resume` | Resume a session (defaults to current-directory sessions; press `g` in the selector to show the full loaded recent list) |
|
|
273
289
|
| `/sessions/tree` | Navigate the session tree |
|
|
290
|
+
| `/sessions/name` | Name this session (shown in terminal title, IM threads, and IPC roster) |
|
|
274
291
|
| `/sessions/info` | Show session information |
|
|
275
292
|
| `/sessions/fork` | Fork from an earlier message |
|
|
276
293
|
| `/settings` | Open the settings menu |
|
|
277
294
|
| `/settings/model` | Choose a model |
|
|
278
295
|
| `/settings/theme` | Change the theme |
|
|
279
|
-
| `/settings/thinking` | Set reasoning depth |
|
|
296
|
+
| `/settings/thinking` (`/think`) | Set reasoning depth (model-aware supported levels; also `--thinking <level>` per run) |
|
|
297
|
+
| `/settings/calm` | Toggle calm mode (show only questions and final answers) |
|
|
280
298
|
| `/settings/yolo` | Toggle less restricted filesystem mode |
|
|
281
299
|
| `/settings/hotkeys` | Show keyboard shortcuts |
|
|
282
300
|
| `/settings/quit` | Exit Pie |
|
|
301
|
+
| `/extensions` | List extensions and toggle enable/disable (`/extensions list\|enable\|disable`) |
|
|
283
302
|
| `/skills/list` | List available skills |
|
|
284
303
|
| `/skills/use` | Use a skill |
|
|
285
304
|
| `/skills/reload` | Reload skills from disk |
|
|
286
|
-
| `/
|
|
305
|
+
| `/tools/cron` | Interactive cron menu & UTC schedules (`/tools/cron list\|pause\|resume\|remove\|reap-owners`) |
|
|
306
|
+
| `/tools/im-forward` | IM forwarding menu (`status\|setup\|switch-app\|toggle\|clear`) |
|
|
307
|
+
| `/tools/ipc` | Local peer messaging (`peers\|send\|result\|poll\|status\|name\|mute\|allow`) |
|
|
308
|
+
| `/tools/memory` | Session memory menu (`toggle\|refresh\|journal\|distill\|status`, opt-in extension) |
|
|
309
|
+
| `/tools/plan` | Toggle read-only plan mode |
|
|
287
310
|
| `/tools/subagent` | Spawn a subagent for a task |
|
|
288
311
|
| `/tools/init` | Create or update the project AGENTS.md |
|
|
289
|
-
| `/
|
|
290
|
-
| `/
|
|
291
|
-
| `/
|
|
312
|
+
| `/debugs/cache-test` | Run provider cache diagnostics with a dedicated 2-request probe |
|
|
313
|
+
| `/debugs/context` | Context composition report (sections, tokens, prompt cache prefix status) |
|
|
314
|
+
| `/debugs/trace` | Session trace timeline, tool stats, and runtime events |
|
|
315
|
+
| `/debugs/boot` | Boot composition pipeline summary |
|
|
292
316
|
|
|
293
317
|
Pie can also load extension-provided commands at runtime.
|
|
294
318
|
|
|
@@ -335,14 +359,14 @@ That is part of what makes Pie embeddable: the CLI is only one interface on top
|
|
|
335
359
|
|
|
336
360
|
Extensions are discovered from four sources in ascending priority (later sources shadow earlier ones by stable extension identity):
|
|
337
361
|
|
|
338
|
-
1. `builtin` — shipped with the CLI (`ask-user`, `
|
|
362
|
+
1. `builtin` — shipped with the CLI (`ask-user`, `changelog`, `cron`, `document-attachments`, `herdr-agent-state`, `im-forward`, `init`, `mcp-adapter`, `memory`, `pie-ipc`, `pie-proc`, `plan-mode`, `subagent`, `todo`)
|
|
339
363
|
2. `global` — `~/.pie/extensions/`
|
|
340
364
|
3. `project` — `./.pie/extensions/`
|
|
341
365
|
4. `configured` — repeated `--extension-path <dir>` flags
|
|
342
366
|
|
|
343
|
-
|
|
367
|
+
Built-in extensions ship enabled by default except `memory`, which opts out via `pie.defaultEnablement: false` until explicitly enabled. Toggles are sparse overrides stored in settings and applied by extension identity across all sources:
|
|
344
368
|
|
|
345
|
-
- Interactive: choose **Extensions** in `/settings`, or use `/
|
|
369
|
+
- Interactive: choose **Extensions** in `/settings`, or use `/extensions`, to open the user-default toggle menu. `/extensions --project` edits project overrides; `/extensions/list|enable|disable ...` remains available for command-driven use.
|
|
346
370
|
- Scripts and third-party UIs: `pie extensions list [--json]`, `pie extensions enable|disable <name> [--project|--user]`
|
|
347
371
|
- Process flags: `--no-builtin-extensions` (skip built-ins) and `--no-extensions` (skip all discovered sources; `--extension-path` still loads)
|
|
348
372
|
|
|
@@ -372,7 +396,7 @@ node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> console
|
|
|
372
396
|
node <resolvedPath for chrome-devtools-axi/chrome-devtools-axi-cli.js> network
|
|
373
397
|
```
|
|
374
398
|
|
|
375
|
-
The CLI launches
|
|
399
|
+
The CLI launches a background-first isolated Chrome/Edge session by default (avoiding desktop focus theft, repeated debugging prompts, and orphaned browser processes); see `--help` for connection modes (headed mode, auto-connect, custom profile, remote browser URL) and `CHROME_DEVTOOLS_AXI_SESSION` for concurrent isolated sessions.
|
|
376
400
|
|
|
377
401
|
Run `pie doctor` to check whether chrome-devtools-axi and a Chrome browser are discoverable.
|
|
378
402
|
|
|
@@ -1,10 +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-
|
|
5
|
-
import "../../../chunks/chunk-
|
|
6
|
-
import "../../../chunks/chunk-
|
|
7
|
-
import "../../../chunks/chunk-
|
|
4
|
+
} from "../../../chunks/chunk-HK3FHIAH.js";
|
|
5
|
+
import "../../../chunks/chunk-5QMS6RQC.js";
|
|
6
|
+
import "../../../chunks/chunk-BQWHLYYZ.js";
|
|
7
|
+
import "../../../chunks/chunk-G2K4GY6N.js";
|
|
8
8
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
9
9
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
10
10
|
|