@cydm/pie 2.7.20 → 2.8.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.
- package/README.md +18 -0
- package/dist/builtin/extensions/ask-user/README.md +117 -0
- package/dist/builtin/extensions/ask-user/index.js +4 -3
- package/dist/builtin/extensions/cron/index.js +299 -39
- package/dist/builtin/extensions/im-forward/README.md +297 -0
- package/dist/builtin/extensions/im-forward/index.js +315 -27
- package/dist/builtin/extensions/mcp-adapter/README.md +27 -0
- package/dist/builtin/extensions/memory/index.js +515 -0
- package/dist/builtin/extensions/memory/package.json +19 -0
- package/dist/builtin/extensions/pie-ipc/README.md +21 -0
- package/dist/builtin/extensions/plan-mode/METHOD.md +70 -0
- package/dist/builtin/extensions/plan-mode/index.js +150 -82
- package/dist/builtin/extensions/subagent/README.md +315 -0
- package/dist/builtin/extensions/subagent/index.js +8 -5
- package/dist/builtin/extensions/todo/index.js +4 -3
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-bridge.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/chrome-devtools-axi-runtime.js +1 -1
- package/dist/builtin/skills/chrome-devtools-axi/{chunk-U75F4DPF.js → chunk-BNSAEVRT.js} +201 -77
- package/dist/builtin/skills/chrome-devtools-axi/{cli-4ITIR57L.js → cli-AO2ZTPRM.js} +57 -202
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-broker.js +6 -1
- package/dist/builtin/skills/computer-use-axi/computer-use-axi-runtime.js +6 -1
- package/dist/chunks/auth-storage-3EGM3VTK.js +13 -0
- package/dist/chunks/{chunk-X7UO6BA6.js → chunk-3BC5KGDQ.js} +451 -162
- package/dist/chunks/chunk-3NHP7HK5.js +298 -0
- package/dist/chunks/chunk-6DNYGVZP.js +278 -0
- package/dist/chunks/{chunk-TGCI5M6R.js → chunk-GDIYSMTS.js} +22 -142
- package/dist/chunks/{chunk-2H2DD22Z.js → chunk-GH4VW2OT.js} +1 -1
- package/dist/chunks/chunk-ILUHTKF3.js +149 -0
- package/dist/chunks/{chunk-UDCGB3LZ.js → chunk-PK72LVWQ.js} +11841 -16501
- package/dist/chunks/chunk-RSL7E4R7.js +9634 -0
- package/dist/chunks/chunk-YRR6C43W.js +1740 -0
- package/dist/chunks/config-74AUVDLT.js +46 -0
- package/dist/chunks/model-registry-LI5THXV4.js +17 -0
- package/dist/chunks/src-66XSMIAM.js +134 -0
- package/dist/chunks/src-BPSQMSSC.js +431 -0
- package/dist/chunks/src-OPPYTPWG.js +285 -0
- package/dist/chunks/{src-GX4UBAYF.js → src-YG5M2H44.js} +2 -2
- package/dist/chunks/{test-stream-AKIZNFCM.js → test-stream-JBWXKOQA.js} +1 -1
- package/dist/cli.js +986 -2292
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -409,6 +409,24 @@ pie "summarize this file" --json-output
|
|
|
409
409
|
pie "continue previous task" --session-id my-session
|
|
410
410
|
```
|
|
411
411
|
|
|
412
|
+
### Resuming Sessions From Another Directory
|
|
413
|
+
|
|
414
|
+
Sessions record the directory they were created in. When you resume a
|
|
415
|
+
session that belongs to another project (by `--session-id` or the
|
|
416
|
+
interactive `/resume` picker), Pie restarts itself in that project's
|
|
417
|
+
directory BEFORE loading anything cwd-sensitive (AGENTS.md discovery,
|
|
418
|
+
project skills, project memory) — a resumed session behaves exactly like
|
|
419
|
+
a fresh start in its project. A one-line banner shows the switch, and an
|
|
420
|
+
OSC 7 escape sequence tells supporting terminals where new panes belong.
|
|
421
|
+
|
|
422
|
+
- The shell you launched from keeps its own cwd (Unix shells cannot be
|
|
423
|
+
driven by child processes); the printed banner is the source of truth.
|
|
424
|
+
- `--no-cd` skips the restart (scripted/CI use).
|
|
425
|
+
- `session.resume.chdir: false` in `~/.pie/settings.json` disables it
|
|
426
|
+
permanently.
|
|
427
|
+
- If the recorded directory no longer exists, Pie warns and resumes in
|
|
428
|
+
the current directory instead of failing.
|
|
429
|
+
|
|
412
430
|
### Machine-Readable Output (Agents And Hosts)
|
|
413
431
|
|
|
414
432
|
Every management command (`sessions`, `doctor`, `models`, `extensions`, `permissions`, `capabilities`) emits one compact JSON envelope when given `--json`:
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Ask User Extension for Pie
|
|
2
|
+
|
|
3
|
+
Interactive question tool with "Other" option, back navigation, and multi-question flow.
|
|
4
|
+
|
|
5
|
+
## Tool
|
|
6
|
+
|
|
7
|
+
### `ask_user_multi`
|
|
8
|
+
|
|
9
|
+
Ask multiple questions with review and edit capability.
|
|
10
|
+
|
|
11
|
+
#### Parameters
|
|
12
|
+
|
|
13
|
+
| Parameter | Type | Default | Description |
|
|
14
|
+
|-----------|------|---------|-------------|
|
|
15
|
+
| `questions` | array | **required** | Array of question objects |
|
|
16
|
+
| `allowReview` | boolean | `true` | Allow review at the end |
|
|
17
|
+
|
|
18
|
+
Each question object:
|
|
19
|
+
```typescript
|
|
20
|
+
{
|
|
21
|
+
id: string, // Unique identifier
|
|
22
|
+
question: string, // Question text
|
|
23
|
+
options?: string[], // Options (if multiple-choice)
|
|
24
|
+
allowOther?: boolean, // Default: true
|
|
25
|
+
placeholder?: string // For Other/open-ended
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### Example
|
|
30
|
+
|
|
31
|
+
```json
|
|
32
|
+
{
|
|
33
|
+
"questions": [
|
|
34
|
+
{
|
|
35
|
+
"id": "project_name",
|
|
36
|
+
"question": "What is your project name?",
|
|
37
|
+
"placeholder": "my-awesome-project"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "language",
|
|
41
|
+
"question": "Which programming language?",
|
|
42
|
+
"options": ["Python", "JavaScript", "Go", "Rust"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "framework",
|
|
46
|
+
"question": "Which framework?",
|
|
47
|
+
"options": ["React", "Vue", "Svelte"]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"id": "confirm",
|
|
51
|
+
"question": "Ready to generate?",
|
|
52
|
+
"options": ["Yes", "No, let me change something"],
|
|
53
|
+
"allowOther": false
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
#### Flow
|
|
60
|
+
|
|
61
|
+
1. **Question 1/4**: Project name? → [input field]
|
|
62
|
+
2. **Question 2/4**: Language? → A. Python B. JavaScript C. Go D. Rust E. ✏️ Other F. ← Back
|
|
63
|
+
3. **Question 3/4**: Framework? → [options + Other + Back]
|
|
64
|
+
4. **Question 4/4**: Ready? → [Yes / No + Back]
|
|
65
|
+
5. **Review screen**:
|
|
66
|
+
- A. ✓ Confirm and continue
|
|
67
|
+
- B. ✏️ Edit Q1: Project name?
|
|
68
|
+
- C. ✏️ Edit Q2: Which programming...
|
|
69
|
+
- D. ✏️ Edit Q3: Which framework?
|
|
70
|
+
- E. ✏️ Edit Q4: Ready to generate?
|
|
71
|
+
- F. ↺ Restart all
|
|
72
|
+
|
|
73
|
+
#### Returns
|
|
74
|
+
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"project_name": { "answer": "MyApp", "question": "What is your project name?" },
|
|
78
|
+
"language": { "answer": "TypeScript", "question": "Which programming language?", "isOther": true },
|
|
79
|
+
"framework": { "answer": "React", "question": "Which framework?", "selectedIndex": 0 },
|
|
80
|
+
"confirm": { "answer": "Yes", "question": "Ready to generate?", "selectedIndex": 0 }
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## When to Use
|
|
85
|
+
|
|
86
|
+
Use `ask_user_multi` for:
|
|
87
|
+
- Collecting multiple pieces of information
|
|
88
|
+
- Asking a single question
|
|
89
|
+
- Wizard-style flow
|
|
90
|
+
- User might want to go back and change answers
|
|
91
|
+
- Need review before proceeding
|
|
92
|
+
|
|
93
|
+
## UX Features
|
|
94
|
+
|
|
95
|
+
### "Other" Option
|
|
96
|
+
- Always available (unless disabled with `allowOther: false`)
|
|
97
|
+
- Selecting it opens input dialog
|
|
98
|
+
- Answer returned as "Other: [custom text]"
|
|
99
|
+
|
|
100
|
+
### Back Navigation
|
|
101
|
+
- Add `allowBack: true` for single question
|
|
102
|
+
- Always available in multi-question flow (except first question)
|
|
103
|
+
- Selecting "← Back" returns to previous question
|
|
104
|
+
|
|
105
|
+
### Progress Indicator
|
|
106
|
+
Multi-question shows progress: "1/4: Question text?"
|
|
107
|
+
|
|
108
|
+
### Review Phase
|
|
109
|
+
At the end of the flow:
|
|
110
|
+
- See all answers at a glance
|
|
111
|
+
- Edit any specific question
|
|
112
|
+
- Restart entire flow
|
|
113
|
+
- Confirm to proceed
|
|
114
|
+
|
|
115
|
+
## Installation
|
|
116
|
+
|
|
117
|
+
Built-in with Pie CLI. Extension auto-loads from `builtin/extensions/ask-user/`.
|
|
@@ -1,9 +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-
|
|
4
|
+
} from "../../../chunks/chunk-PK72LVWQ.js";
|
|
5
|
+
import "../../../chunks/chunk-RSL7E4R7.js";
|
|
6
|
+
import "../../../chunks/chunk-GH4VW2OT.js";
|
|
7
|
+
import "../../../chunks/chunk-3BC5KGDQ.js";
|
|
7
8
|
import "../../../chunks/chunk-XXGYUYXI.js";
|
|
8
9
|
import "../../../chunks/chunk-LZQXQOPJ.js";
|
|
9
10
|
|