pi-distill 1.8.0 → 1.9.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 +3 -3
- package/src/index.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-distill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "Pi tool-output distillation with file-first configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@earendil-works/pi-tui": ">=0.80.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"pi-extensions-i18n": "^0.
|
|
65
|
-
"pi-extensions-tool-display": "^1.
|
|
64
|
+
"pi-extensions-i18n": "^0.6.0",
|
|
65
|
+
"pi-extensions-tool-display": "^1.3.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@earendil-works/pi-ai": "0.85.1",
|
package/src/index.ts
CHANGED
|
@@ -43,7 +43,7 @@ import { getTextContent, hasNonTextContent, limitReturnedToolResult } from "./ou
|
|
|
43
43
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
44
44
|
import { tmpdir } from "node:os";
|
|
45
45
|
import { dirname, join } from "node:path";
|
|
46
|
-
import { createTranslator, loadCatalog, notifyWithSource, type NoticeColor, type NoticeSource } from "pi-extensions-i18n";
|
|
46
|
+
import { createTranslator, installNoticeRenderer, loadCatalog, notifyWithSource, type NoticeColor, type NoticeSource } from "pi-extensions-i18n";
|
|
47
47
|
import {
|
|
48
48
|
buildSummaryPrompt,
|
|
49
49
|
buildSummarySystemPrompt,
|
|
@@ -1567,6 +1567,8 @@ function registerDistillStatsCommand(
|
|
|
1567
1567
|
}
|
|
1568
1568
|
|
|
1569
1569
|
export default function piDistillExtension(pi: ExtensionAPI) {
|
|
1570
|
+
// 提示画成会话区里的带底色消息块;渲染器在本包这个模块实例里注册一次。
|
|
1571
|
+
installNoticeRenderer(pi);
|
|
1570
1572
|
const pendingCalls = new Map<string, PendingDistillCall>();
|
|
1571
1573
|
const reportedWarnings = new Set<string>();
|
|
1572
1574
|
let sessionStats = createDistillSessionStats();
|