pi-distill 1.9.1 → 1.9.2

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-distill",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
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.7.0",
65
- "pi-extensions-tool-display": "^1.3.1"
64
+ "pi-extensions-i18n": "^0.8.0",
65
+ "pi-extensions-tool-display": "^1.3.2"
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, installNoticeRenderer, loadCatalog, notifyWithSource, type NoticeColor, type NoticeSource } from "pi-extensions-i18n";
46
+ import { NOTICE_TAG_COLOR, createTranslator, installNoticeRenderer, loadCatalog, notifyWithSource, type NoticeColor, type NoticeSource } from "pi-extensions-i18n";
47
47
  import {
48
48
  buildSummaryPrompt,
49
49
  buildSummarySystemPrompt,
@@ -112,8 +112,8 @@ const OUTPUT_REQUEST_SYSTEM_GUIDELINE = i18n.t("outputRequestSystemGuideline");
112
112
 
113
113
  /** 本扩展的提示标签;短且唯一,便于在会话里定位来源。 */
114
114
  const NOTICE_TAG = "distill";
115
- /** 提示标签颜色;与其它扩展错开,避免看起来像同一条消息。 */
116
- const NOTICE_COLOR: NoticeColor = "muted";
115
+ /** 提示标签颜色:所有扩展统一用弱化色,来源靠 tag 文本区分,不靠颜色。 */
116
+ const NOTICE_COLOR: NoticeColor = NOTICE_TAG_COLOR;
117
117
  /** 本扩展的提示来源。 */
118
118
  const NOTICE_SOURCE: NoticeSource = { tag: NOTICE_TAG, color: NOTICE_COLOR };
119
119