@zhushanwen/pi-ask-user 7.0.11 → 7.0.12

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 CHANGED
@@ -99,7 +99,7 @@ The headless branch physically removes the tool from the session (`setActiveTool
99
99
  ## File structure
100
100
 
101
101
  ```
102
- extensions/ask-user/
102
+ extensions/universal/ask-user/
103
103
  ├── index.ts # re-export entry (Pi loads via package.json pi.extensions)
104
104
  ├── package.json
105
105
  ├── README.md # this file — usage contract for LLM callers + overview
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@zhushanwen/pi-ask-user",
3
- "version": "7.0.11",
3
+ "version": "7.0.12",
4
4
  "description": "Inline adaptive ask_user tool for Pi — single/multi-question structured input with split-pane preview, inline editor and optional comments.",
5
5
  "type": "module",
6
6
  "main": "index.ts",
7
+ "xyz-agent": {
8
+ "role": "universal"
9
+ },
7
10
  "pi": {
8
11
  "extensions": [
9
12
  "./index.ts"
@@ -26,10 +29,10 @@
26
29
  "ARCHITECTURE.md"
27
30
  ],
28
31
  "dependencies": {
29
- "@xyz-agent/extension-protocol": "0.5.0"
32
+ "@xyz-agent/extension-protocol": "0.5.1"
30
33
  },
31
34
  "devDependencies": {
32
- "@earendil-works/pi-tui": "*",
35
+ "@earendil-works/pi-tui": "^0.84.2",
33
36
  "@types/node": "^24.0.0",
34
37
  "@vitest/coverage-v8": "^4.1.9",
35
38
  "fast-check": "^4.9.0",
@@ -37,8 +40,8 @@
37
40
  "vitest": "^4.1.8"
38
41
  },
39
42
  "peerDependencies": {
40
- "@earendil-works/pi-coding-agent": "*",
41
- "@earendil-works/pi-tui": "*",
43
+ "@earendil-works/pi-coding-agent": "^0.84.1",
44
+ "@earendil-works/pi-tui": "^0.84.1",
42
45
  "typebox": "*"
43
46
  },
44
47
  "peerDependenciesMeta": {
@@ -18,7 +18,7 @@ import type { ChannelHandler } from "./channel-handler";
18
18
  /**
19
19
  * 进程级 channel registry 握手的 globalThis key(Symbol.for 跨模块共享)。
20
20
  *
21
- * ⚠️ 必须与 extensions/subagent-workflow/src/execution/channel-registry-access.ts 的字面量
21
+ * ⚠️ 必须与 extensions/universal/subagent-workflow/src/execution/channel-registry-access.ts 的字面量
22
22
  * 完全一致——两边用同一字符串确保拿到同一 slot 实例。改名必须两侧同步。
23
23
  */
24
24
  export const CHANNEL_HANDSHAKE_KEY = Symbol.for(