@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 +1 -1
- package/src/aft/ast-edit.ts +0 -1
- package/src/aft/imports.ts +0 -1
- package/src/aft/refactor.ts +0 -1
- package/src/aft/tools.ts +0 -2
- package/src/lib/pendant.ts +0 -6
- package/src/opencode/todo.ts +0 -1
- package/src/spawn-agent.ts +0 -2
- package/src/vision-agent.ts +0 -2
package/package.json
CHANGED
package/src/aft/ast-edit.ts
CHANGED
package/src/aft/imports.ts
CHANGED
package/src/aft/refactor.ts
CHANGED
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
|
};
|
package/src/lib/pendant.ts
CHANGED
|
@@ -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
|
}
|
package/src/opencode/todo.ts
CHANGED
package/src/spawn-agent.ts
CHANGED
|
@@ -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
|
};
|
package/src/vision-agent.ts
CHANGED
|
@@ -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
|
};
|