@trim21/personal-pi-extensions 0.0.342 → 0.0.344

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.342",
3
+ "version": "0.0.344",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -302,7 +302,6 @@ export function registerAstEditTool(pi: ExtensionAPI, ctx: AftToolContext): void
302
302
  input: params,
303
303
  output: text,
304
304
  }),
305
- expanded: true,
306
305
  } satisfies ToolPendant,
307
306
  },
308
307
  };
@@ -126,7 +126,6 @@ export function registerImportTool(pi: ExtensionAPI, ctx: AftToolContext): void
126
126
  input: params,
127
127
  output: text,
128
128
  }),
129
- expanded: true,
130
129
  } satisfies ToolPendant,
131
130
  },
132
131
  };
@@ -145,7 +145,6 @@ export function registerRefactorTool(pi: ExtensionAPI, ctx: AftToolContext): voi
145
145
  input: params,
146
146
  output: text,
147
147
  }),
148
- expanded: true,
149
148
  } satisfies ToolPendant,
150
149
  },
151
150
  };
package/src/aft/tools.ts CHANGED
@@ -352,7 +352,6 @@ export function registerCallgraphTool(pi: ExtensionAPI, ctx: AftToolContext): vo
352
352
  output: out,
353
353
  truncated,
354
354
  }),
355
- expanded: true,
356
355
  } satisfies ToolPendant,
357
356
  },
358
357
  };
@@ -428,7 +427,6 @@ export function registerSearchTool(pi: ExtensionAPI, ctx: AftToolContext): void
428
427
  output: text,
429
428
  truncated,
430
429
  }),
431
- expanded: true,
432
430
  } satisfies ToolPendant,
433
431
  },
434
432
  };
@@ -4,8 +4,6 @@
4
4
  * 工具 execute 返回的 details 里可携带一个可折叠的 markdown 面板,TUI 会把它
5
5
  * 与本次工具调用的消息一起渲染:
6
6
  * - `markdown`: 面板正文(完整 markdown),建议以 `## ` 标题开头、末尾 trim
7
- * - `expanded`: 面板是否默认展开;识别/结果这类需要立即看到的内容用 true,
8
- * 列表等常驻信息用 false
9
7
  */
10
8
  export interface ToolPendant {
11
9
  /**
@@ -20,8 +18,4 @@ export interface ToolPendant {
20
18
  * 面板正文(完整 markdown),建议以 `## ` 标题开头、末尾 trim
21
19
  */
22
20
  markdown?: string;
23
- /**
24
- * @default false
25
- */
26
- expanded?: boolean;
27
21
  }
@@ -173,7 +173,6 @@ export default function todowrite(pi: ExtensionAPI) {
173
173
  todos,
174
174
  pendant: {
175
175
  markdown: buildTodoMarkdown(todos),
176
- expanded: false,
177
176
  },
178
177
  },
179
178
  });
@@ -711,7 +711,6 @@ export default function spawnAgent(pi: ExtensionAPI) {
711
711
  ...result,
712
712
  pendant: {
713
713
  markdown: formatPendantMarkdown(params.task, message),
714
- expanded: true,
715
714
  } satisfies ToolPendant,
716
715
  },
717
716
  isError: true,
@@ -729,7 +728,6 @@ export default function spawnAgent(pi: ExtensionAPI) {
729
728
  ...result,
730
729
  pendant: {
731
730
  markdown: formatPendantMarkdown(params.task, text),
732
- expanded: false,
733
731
  } satisfies ToolPendant,
734
732
  },
735
733
  };
@@ -445,7 +445,6 @@ export default function visionAgent(pi: ExtensionAPI) {
445
445
  count: paths.length,
446
446
  pendant: {
447
447
  markdown,
448
- expanded: true,
449
448
  } satisfies ToolPendant,
450
449
  },
451
450
  };
@@ -465,7 +464,6 @@ export default function visionAgent(pi: ExtensionAPI) {
465
464
  error: message,
466
465
  pendant: {
467
466
  markdown: `## 图片识别失败\n\n${message}`,
468
- expanded: true,
469
467
  } satisfies ToolPendant,
470
468
  },
471
469
  };