pi-extensions-tool-display 1.2.0 → 1.3.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/package.json +2 -2
- package/src/index.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-extensions-tool-display",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Pi tool display host and shared result-rendering protocol for extensions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"tool-display"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"pi-extensions-i18n": "^0.
|
|
51
|
+
"pi-extensions-i18n": "^0.6.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@earendil-works/pi-coding-agent": ">=0.80.0",
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,7 @@ import {
|
|
|
23
23
|
type ToolDisplayConfig,
|
|
24
24
|
} from "./types.js";
|
|
25
25
|
import {
|
|
26
|
+
installNoticeRenderer,
|
|
26
27
|
notifyWithSource,
|
|
27
28
|
type NoticeColor,
|
|
28
29
|
type NoticeSource,
|
|
@@ -180,5 +181,7 @@ export default function toolDisplayExtension(
|
|
|
180
181
|
pi: ExtensionAPI,
|
|
181
182
|
initial: ConfigLoadResult = loadToolDisplayConfig(),
|
|
182
183
|
): void {
|
|
184
|
+
// 提示画成会话区里的带底色消息块;渲染器在本包这个模块实例里注册一次。
|
|
185
|
+
installNoticeRenderer(pi);
|
|
183
186
|
ensureToolDisplayHost(pi, initial);
|
|
184
187
|
}
|