dsh-plugin-om 0.0.46 → 0.0.48

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/README.md CHANGED
@@ -7,13 +7,13 @@
7
7
  ## 功能
8
8
 
9
9
  - 自动压缩主会话历史,并在摘要过大时再次合并
10
- - OM 启用时提示模型在关键节点说明后续规划与结果,系统提示在压缩后持续保留
11
- - 完整系统提示词预设保持原文,不追加关键节点提示
10
+ - OM 启用时以 system-reminder 消息提示模型边做边简述计划与进展,压缩后自动补发
11
+ - OM 或 recall 启用时以 system-reminder 消息说明完整消息定义,压缩后自动补发
12
12
  - 通过工具循环生成摘要,保留用户消息、系统消息和未压缩内容
13
13
  - 保留工具加载与手动加载的 skill 原文,并在压缩前再次确认
14
14
  - 有效提问首次直接压缩需再次确认,保留时查看选项后在下一轮重写问答并展开选项引用
15
15
  - 中断或错误的提问作为普通工具调用处理
16
- - 使用 `recall` 按消息序号回看原文,使用 `recall-semantic` 进行本地语义检索
16
+ - 使用 `recall` 按消息序号回看原文,启用语义增强后还可按含义检索
17
17
  - 记录压缩过程、耗时和 token 用量
18
18
  - 压缩会话记录显示在子智能体列表,随父会话 Session 日志一起下载
19
19
  - 在浏览器中显示压缩结果、错误和降级警告
@@ -56,9 +56,9 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
56
56
  | `compressSkipReasoning` | `true` | 是否忽略 reasoning |
57
57
  | `rateLimitWaitMs` | `60000` | 429 后的等待毫秒数,`0` 表示不等待 |
58
58
  | `modelDir` | DSH 共享目录 | 嵌入模型目录 |
59
- | `omEnabled` | `true` | 是否启用自动压缩和关键节点提示 |
59
+ | `omEnabled` | `true` | 是否启用自动压缩和进度提醒 |
60
60
  | `recallEnabled` | `true` | 是否启用原文召回 |
61
- | `semanticRecallEnabled` | `true` | 是否启用语义召回 |
61
+ | `semanticRecallEnabled` | `true` | 是否为 `recall` 启用语义增强,依赖 `recallEnabled` |
62
62
  | `debug` | 开发环境启用 | 是否输出步骤日志 |
63
63
 
64
64
  较小的观察阈值更早节省上下文,较大的阈值提供更多摘要信息。只有 reasoning 包含关键决策时才需将 `compressSkipReasoning` 设为 `false`。
@@ -75,7 +75,7 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
75
75
  name: file:///<repo>/dist/index.mjs
76
76
  ```
77
77
 
78
- 语义召回首次使用时自动下载嵌入模型,也可运行 `pnpm run download:model` 预下载。
78
+ 语义增强首次使用时自动下载嵌入模型,也可运行 `pnpm run download:model` 预下载。
79
79
 
80
80
  | 命令 | 作用 |
81
81
  | --- | --- |
@@ -90,21 +90,22 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
90
90
  ```text
91
91
  cordis.patch.yml # bundle patch,dsh plugin add 后作为组合层插入插件行
92
92
  src/
93
- ├── index.ts # 打包入口:注册 recall 工具并接线关键节点提示和自动压缩
93
+ ├── index.ts # 打包入口:注册 recall 工具并接线自动压缩和提醒补发
94
+ ├── system-reminder.ts # 进度与完整消息定义提醒:system-reminder 消息的构造与缺失时补发
94
95
  ├── config.ts # 配置默认值与宽松合并,未知键忽略、非法值回退默认
95
96
  ├── constants.ts # 共享常量:插件标识、history 标签、完整消息定义、格式说明注释
96
- ├── degrade.ts # 挂载失败降级上报:console 外部输出与 om/warning 会话事件
97
- ├── om-event.ts # om 事件借用通道:feedback/record 信封的编解码与读写
97
+ ├── degrade.ts # 挂载失败降级上报:console 外部输出与 plugin:dsh-plugin-om:warning 会话事件
98
+ ├── om-event.ts # 自定义会话事件辅助:plugin:dsh-plugin-om:* 事件读写与过滤
98
99
  ├── types.ts # type-only:宿主类型再导出与领域类型
99
100
  ├── utils.ts # 零依赖工具函数:文本渲染、主会话判定、路由解析
100
101
  ├── json-schema.ts # zod schema 到工具 wire 参数 JSON Schema 的转换
101
102
  ├── logger.ts # 插件日志门面,step 按 debug 开关过滤
102
103
  ├── rate-limit.ts # 全局 429 限流冷却门,进程级共享状态
103
104
  ├── log-index.ts # 完整消息索引与渲染,recall 与压缩共用同一套编号
104
- ├── recall.ts # recall 工具:按完整消息 index 区间回看
105
- ├── recall-xml.ts # 完整消息到 CDATA 包裹 XML 条目的渲染,recall 系工具共用
105
+ ├── recall.ts # recall 工具:按 index 区间回看,启用语义增强时支持 query
106
+ ├── recall-xml.ts # 完整消息到 CDATA 包裹 XML 条目的渲染,recall 与语义检索共用
106
107
  ├── recall-output.ts # recall 输出契约:{ text, images } 与 render 投影
107
- ├── semantic-recall.ts # recall-semantic 工具:本地嵌入语义检索
108
+ ├── semantic-recall.ts # recall 语义增强:本地嵌入语义检索实现
108
109
  ├── embedding.ts # 本地 ONNX 嵌入:懒加载、批量、运行时按需下载编排
109
110
  ├── model-download.ts # 模型下载原语:URL、跳过判定、原子落盘
110
111
  ├── compress-view.ts # 压缩视图:观察与反思投影、有效提问配对与选项展示
@@ -1 +1 @@
1
- {"version":3,"file":"OmCompactionCard.d.ts","sourceRoot":"","sources":["../../src/client/OmCompactionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAKpE,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;CAC1C;AAgCD,yCAAyC;AACzC,eAAO,MAAM,gBAAgB,oDAA+C,qBAAqB,iCAsH/F,CAAC"}
1
+ {"version":3,"file":"OmCompactionCard.d.ts","sourceRoot":"","sources":["../../src/client/OmCompactionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAKpE,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IACzC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;CAC1C;AAmCD,yCAAyC;AACzC,eAAO,MAAM,gBAAgB,oDAA+C,qBAAqB,iCAsH/F,CAAC"}
@@ -1,9 +1,9 @@
1
- /** WebUI 行配置页:双语说明及真实可编辑的整数、字符串、布尔控件。 */
1
+ /** WebUI 行配置页:双语说明及规范布局的整数、字符串与布尔设置项。 */
2
2
  import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
3
3
  import type { NS } from './locales.ts';
4
4
  import { type OmConfigCardFace } from './om-config-controller.ts';
5
5
  /** 插件管理器注入的配置页 props。 */
6
6
  export type OmConfigCardProps = PropsRuntime<'plugins.row.config'> & PropsLocale<typeof NS> & InjectFace<OmConfigCardFace>;
7
- /** 配置行内容:说明、草稿值及继承/覆盖标记。 */
7
+ /** 配置行内容:说明、草稿值及规范的继承/覆盖呈现。 */
8
8
  export declare function OmConfigCard(props: OmConfigCardProps): string | React.JSX.Element;
9
9
  //# sourceMappingURL=OmConfigCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OmConfigCard.d.ts","sourceRoot":"","sources":["../../src/client/OmConfigCard.tsx"],"names":[],"mappings":"AAAA,yCAAyC;AAIzC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,yBAAyB;AACzB,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,oBAAoB,CAAC,GAChE,WAAW,CAAC,OAAO,EAAE,CAAC,GACtB,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAE/B,4BAA4B;AAC5B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqEjF"}
1
+ {"version":3,"file":"OmConfigCard.d.ts","sourceRoot":"","sources":["../../src/client/OmConfigCard.tsx"],"names":[],"mappings":"AAAA,yCAAyC;AASzC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAE9F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAoB,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,yBAAyB;AACzB,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,oBAAoB,CAAC,GAChE,WAAW,CAAC,OAAO,EAAE,CAAC,GACtB,UAAU,CAAC,gBAAgB,CAAC,CAAC;AAoD/B,+BAA+B;AAC/B,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+EjF"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 功能降级警告行渲染器:与压缩卡片同款的折叠行。
3
- * 折叠行显示降级说明摘要,展开体显示完整说明;数据来自 om/warning 信封载荷
4
- * (借用 feedback/record),服务端按会话同问题去重后追加(每会话同一问题至多一行)。
3
+ * 折叠行显示降级说明摘要,展开体显示完整说明;数据来自 plugin:dsh-plugin-om:warning
4
+ * 事件载荷,服务端按会话同问题去重后追加(每会话同一问题至多一行)。
5
5
  */
6
6
  import type { ChatNode } from '@deepseek-ai/dsh-client-ui-chat/client';
7
7
  import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
@@ -1 +1 @@
1
- {"version":3,"file":"OmWarningCard.d.ts","sourceRoot":"","sources":["../../src/client/OmWarningCard.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAIpE,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IACtC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;CAC1C;AAED,oCAAoC;AACpC,eAAO,MAAM,aAAa,oDAA4C,kBAAkB,iCAqCtF,CAAC"}
1
+ {"version":3,"file":"OmWarningCard.d.ts","sourceRoot":"","sources":["../../src/client/OmWarningCard.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAIpE,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IACtC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;CAC1C;AAED,oCAAoC;AACpC,eAAO,MAAM,aAAa,oDAA4C,kBAAkB,iCAuCtF,CAAC"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * 压缩卡片业务定义:认领插件自产的压缩生命周期事件(compaction/start|summary|end)
3
3
  * 与替换检查点(source.kind 为插件自有 kind),聚合出可渲染的摘要卡片节点;
4
- * 并认领 om 警告信封事件(借用 feedback/record,kind 为 om/warning,见 om-event.ts)
5
- * 渲染为警告行。
4
+ * 并认领 plugin:dsh-plugin-om:warning 事件渲染为警告行。
6
5
  * 导出 COMPACTION_CARD_KIND / OmCompactionChatData / checkpointCompactionId /
7
6
  * omCompactionDefinition / OM_WARNING_CARD_KIND / OmWarningChatData / omWarningDefinition。
8
7
  * 宿主的 'compact' 检查点由宿主自己渲染,本定义不认领
@@ -65,17 +64,16 @@ export declare function checkpointCompactionId(event: SessionEvent): string | un
65
64
  * 提示行。
66
65
  */
67
66
  export declare const omCompactionDefinition: ConversationNodeDefinition<OmCompactionState>;
68
- /** 功能降级警告行载荷:降级问题标识与面向用户的说明(信封载荷非法时为 null)。 */
67
+ /** 功能降级警告行载荷:降级问题标识与面向用户的说明。 */
69
68
  export interface OmWarningChatData {
70
- /** 降级问题标识(om/warning 信封载荷 problem)。 */
69
+ /** 降级问题标识(plugin:dsh-plugin-om:warning 载荷 problem)。 */
71
70
  readonly problem: string | null;
72
- /** 面向用户的降级说明(om/warning 信封载荷 message)。 */
71
+ /** 面向用户的降级说明(plugin:dsh-plugin-om:warning 载荷 message)。 */
73
72
  readonly message: string | null;
74
73
  }
75
74
  /**
76
- * 插件功能降级警告定义:每条 om/warning 信封事件独立成节点(id 含 seq),渲染为可
77
- * 展开的「功能降级」警告行。服务端按会话同问题去重后追加,每会话同一问题至多一行;
78
- * 不带 om 信封的 feedback/record 记录(用户自写反馈)不认领。
75
+ * 插件功能降级警告定义:每条 plugin:dsh-plugin-om:warning 事件独立成节点(id 含 seq),渲染为可
76
+ * 展开的「功能降级」警告行。服务端按会话同问题去重后追加,每会话同一问题至多一行。
79
77
  */
80
78
  export declare const omWarningDefinition: ConversationNodeDefinition;
81
79
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/client/definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EACV,iBAAiB,EAEjB,0BAA0B,EAC3B,MAAM,gDAAgD,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKnE,uCAAuC;AACvC,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,OAAO,QAAQ,wCAAwC,CAAC;IACtD,UAAU,eAAe;QACvB,sCAAsC;QACtC,eAAe,EAAE,oBAAoB,CAAC;QACtC,+BAA+B;QAC/B,YAAY,EAAE,iBAAiB,CAAC;KACjC;CACF;AAED,wBAAwB;AACxB,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;IAC7C,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gDAAgD;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,0CAA0C;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,4CAA4C;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,8BAA8B;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,kDAAkD;AAClD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAgBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAK9E;AA6HD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,0BAA0B,CAAC,iBAAiB,CAqEhF,CAAC;AAEF,+CAA+C;AAC/C,MAAM,WAAW,iBAAiB;IAChC,uCAAuC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,0CAA0C;IAC1C,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,0BAmBjC,CAAC"}
1
+ {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../src/client/definition.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EACV,iBAAiB,EAEjB,0BAA0B,EAC3B,MAAM,gDAAgD,CAAC;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAKnE,uCAAuC;AACvC,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,OAAO,QAAQ,wCAAwC,CAAC;IACtD,UAAU,eAAe;QACvB,sCAAsC;QACtC,eAAe,EAAE,oBAAoB,CAAC;QACtC,+BAA+B;QAC/B,YAAY,EAAE,iBAAiB,CAAC;KACjC;CACF;AAED,wBAAwB;AACxB,MAAM,WAAW,oBAAoB;IACnC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,oDAAoD;IACpD,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;IAC7C,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gDAAgD;IAChD,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,0CAA0C;IAC1C,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,4CAA4C;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,8BAA8B;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,4DAA4D;IAC5D,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,kDAAkD;AAClD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,GAAG,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAgBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,GAAG,SAAS,CAK9E;AA6HD;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,0BAA0B,CAAC,iBAAiB,CAqEhF,CAAC;AAEF,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,0DAA0D;IAC1D,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,0BAmBjC,CAAC"}
@@ -28,7 +28,6 @@ export declare const zh: {
28
28
  readonly 'config.discard': "撤销修改";
29
29
  readonly 'config.saving': "保存中…";
30
30
  readonly 'config.overridden': "已覆盖";
31
- readonly 'config.inherited': "继承默认";
32
31
  readonly 'config.reset': "恢复默认";
33
32
  readonly 'config.invalidInteger': "请输入整数;留空使用默认值。";
34
33
  readonly 'config.observeThresholdTokens': "观察阈值";
@@ -50,13 +49,13 @@ export declare const zh: {
50
49
  readonly 'config.rateLimitWaitMs': "限流等待毫秒数";
51
50
  readonly 'config.rateLimitWaitMs.hint': "429 限流后的冷却时间;0 表示不等待。";
52
51
  readonly 'config.modelDir': "嵌入模型目录";
53
- readonly 'config.modelDir.hint': "本地语义召回使用的嵌入模型目录。";
52
+ readonly 'config.modelDir.hint': "本地语义增强使用的嵌入模型目录。";
54
53
  readonly 'config.omEnabled': "自动压缩";
55
54
  readonly 'config.omEnabled.hint': "启用观察压缩和摘要反思合并。";
56
55
  readonly 'config.recallEnabled': "原文召回";
57
- readonly 'config.recallEnabled.hint': "注册按消息序号召回原文的工具。";
58
- readonly 'config.semanticRecallEnabled': "语义召回";
59
- readonly 'config.semanticRecallEnabled.hint': "注册本地语义检索工具。";
56
+ readonly 'config.recallEnabled.hint': "注册召回工具,按消息序号回看原文。";
57
+ readonly 'config.semanticRecallEnabled': "语义增强";
58
+ readonly 'config.semanticRecallEnabled.hint': "为原文召回增加按含义检索的能力,依赖原文召回。";
60
59
  readonly 'config.debug': "步骤日志";
61
60
  readonly 'config.debug.hint': "启用步骤级日志;缺省值由 NODE_ENV 决定。";
62
61
  };
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/client/locales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,iDAAiD;AACjD,eAAO,MAAM,EAAE,kBAAkB,CAAC;AAElC,mEAAmE;AACnE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDL,CAAC;AAEX,qCAAqC;AACrC,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAyD9C,CAAC;AAEF,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,mDAAmD;QACnD,eAAe,EAAE,MAAM,OAAO,EAAE,CAAC;KAClC;CACF"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../src/client/locales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,iDAAiD;AACjD,eAAO,MAAM,EAAE,kBAAkB,CAAC;AAElC,mEAAmE;AACnE,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDL,CAAC;AAEX,qCAAqC;AACrC,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAyD9C,CAAC;AAEF,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,mDAAmD;QACnD,eAAe,EAAE,MAAM,OAAO,EAAE,CAAC;KAClC;CACF"}
package/dist/client.js CHANGED
@@ -7,28 +7,20 @@ window.__ModuleLoader__.load({
7
7
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
8
8
  let react = require("react");
9
9
  let react_jsx_runtime = require("react/jsx-runtime");
10
- /**
11
- * 解码一条会话事件为 om 私有事件:仅识别 feedback/record 中带 om 信封前缀的
12
- * text;前缀缺失、JSON 非法、kind 未知或载荷字段缺失时返回 undefined。
13
- */
10
+ //#endregion
11
+ //#region src/om-event.ts
12
+ /** 解码一条会话事件为 om 私有事件:仅识别 plugin:dsh-plugin-om:*。 */
14
13
  function readOmEvent(event) {
15
- if (event === void 0 || event === null || event.type !== "feedback/record") return void 0;
16
- const text = event.data.text;
17
- if (typeof text !== "string" || !text.startsWith("om:1:")) return void 0;
18
- let envelope;
19
- try {
20
- envelope = JSON.parse(text.slice(5));
21
- } catch {
22
- return;
23
- }
24
- if (envelope === null || typeof envelope !== "object" || Array.isArray(envelope)) return void 0;
25
- const { kind, ...rest } = envelope;
26
- switch (kind) {
27
- case "om/warning": {
28
- const { problem, message } = rest;
14
+ if (event === void 0 || event === null) return void 0;
15
+ const data = event.data;
16
+ if (data === null || typeof data !== "object" || Array.isArray(data)) return void 0;
17
+ const record = data;
18
+ switch (event.type) {
19
+ case "plugin:dsh-plugin-om:warning": {
20
+ const { problem, message } = record;
29
21
  if (typeof problem !== "string" || typeof message !== "string") return void 0;
30
22
  return {
31
- kind,
23
+ kind: event.type,
32
24
  data: {
33
25
  problem,
34
26
  message
@@ -36,20 +28,20 @@ window.__ModuleLoader__.load({
36
28
  seq: event.seq
37
29
  };
38
30
  }
39
- case "om/observe-pending": {
40
- const { triggerMessageIndex } = rest;
31
+ case "plugin:dsh-plugin-om:observe-pending": {
32
+ const { triggerMessageIndex } = record;
41
33
  if (typeof triggerMessageIndex !== "number" || !Number.isSafeInteger(triggerMessageIndex)) return void 0;
42
34
  return {
43
- kind,
35
+ kind: event.type,
44
36
  data: { triggerMessageIndex },
45
37
  seq: event.seq
46
38
  };
47
39
  }
48
- case "om/observe-invalidate": {
49
- const { pendingSeq } = rest;
40
+ case "plugin:dsh-plugin-om:observe-invalidate": {
41
+ const { pendingSeq } = record;
50
42
  if (typeof pendingSeq !== "number" || !Number.isSafeInteger(pendingSeq)) return void 0;
51
43
  return {
52
- kind,
44
+ kind: event.type,
53
45
  data: { pendingSeq },
54
46
  seq: event.seq
55
47
  };
@@ -234,15 +226,14 @@ window.__ModuleLoader__.load({
234
226
  }
235
227
  };
236
228
  /**
237
- * 插件功能降级警告定义:每条 om/warning 信封事件独立成节点(id 含 seq),渲染为可
238
- * 展开的「功能降级」警告行。服务端按会话同问题去重后追加,每会话同一问题至多一行;
239
- * 不带 om 信封的 feedback/record 记录(用户自写反馈)不认领。
229
+ * 插件功能降级警告定义:每条 plugin:dsh-plugin-om:warning 事件独立成节点(id 含 seq),渲染为可
230
+ * 展开的「功能降级」警告行。服务端按会话同问题去重后追加,每会话同一问题至多一行。
240
231
  */
241
232
  const omWarningDefinition = {
242
233
  kind: OM_WARNING_CARD_KIND,
243
234
  target: "chat",
244
235
  match: (event) => {
245
- if (readOmEvent(event)?.kind !== "om/warning") return null;
236
+ if (readOmEvent(event)?.kind !== "plugin:dsh-plugin-om:warning") return null;
246
237
  return {
247
238
  id: `om-warning:${event.seq}`,
248
239
  role: "start"
@@ -254,7 +245,7 @@ window.__ModuleLoader__.load({
254
245
  const start = context.start;
255
246
  if (start === void 0) return null;
256
247
  const om = readOmEvent(start.event);
257
- if (om?.kind !== "om/warning") return null;
248
+ if (om?.kind !== "plugin:dsh-plugin-om:warning") return null;
258
249
  const problem = om.data.problem !== "" ? om.data.problem : null;
259
250
  const message = om.data.message !== "" ? om.data.message : null;
260
251
  if (problem === null && message === null) return null;
@@ -296,7 +287,6 @@ window.__ModuleLoader__.load({
296
287
  "config.discard": "撤销修改",
297
288
  "config.saving": "保存中…",
298
289
  "config.overridden": "已覆盖",
299
- "config.inherited": "继承默认",
300
290
  "config.reset": "恢复默认",
301
291
  "config.invalidInteger": "请输入整数;留空使用默认值。",
302
292
  "config.observeThresholdTokens": "观察阈值",
@@ -318,13 +308,13 @@ window.__ModuleLoader__.load({
318
308
  "config.rateLimitWaitMs": "限流等待毫秒数",
319
309
  "config.rateLimitWaitMs.hint": "429 限流后的冷却时间;0 表示不等待。",
320
310
  "config.modelDir": "嵌入模型目录",
321
- "config.modelDir.hint": "本地语义召回使用的嵌入模型目录。",
311
+ "config.modelDir.hint": "本地语义增强使用的嵌入模型目录。",
322
312
  "config.omEnabled": "自动压缩",
323
313
  "config.omEnabled.hint": "启用观察压缩和摘要反思合并。",
324
314
  "config.recallEnabled": "原文召回",
325
- "config.recallEnabled.hint": "注册按消息序号召回原文的工具。",
326
- "config.semanticRecallEnabled": "语义召回",
327
- "config.semanticRecallEnabled.hint": "注册本地语义检索工具。",
315
+ "config.recallEnabled.hint": "注册召回工具,按消息序号回看原文。",
316
+ "config.semanticRecallEnabled": "语义增强",
317
+ "config.semanticRecallEnabled.hint": "为原文召回增加按含义检索的能力,依赖原文召回。",
328
318
  "config.debug": "步骤日志",
329
319
  "config.debug.hint": "启用步骤级日志;缺省值由 NODE_ENV 决定。"
330
320
  };
@@ -352,7 +342,6 @@ window.__ModuleLoader__.load({
352
342
  "config.discard": "Discard changes",
353
343
  "config.saving": "Saving…",
354
344
  "config.overridden": "Overridden",
355
- "config.inherited": "Inherited default",
356
345
  "config.reset": "Reset to default",
357
346
  "config.invalidInteger": "Enter an integer; leave blank to use the default.",
358
347
  "config.observeThresholdTokens": "Observation threshold",
@@ -374,13 +363,13 @@ window.__ModuleLoader__.load({
374
363
  "config.rateLimitWaitMs": "Rate-limit wait in milliseconds",
375
364
  "config.rateLimitWaitMs.hint": "Cooldown after a 429 response; zero skips the wait.",
376
365
  "config.modelDir": "Embedding model directory",
377
- "config.modelDir.hint": "Directory containing the local semantic-recall embedding model.",
366
+ "config.modelDir.hint": "Directory containing the local semantic-enhancement embedding model.",
378
367
  "config.omEnabled": "Automatic compaction",
379
368
  "config.omEnabled.hint": "Enable observation and reflection of summaries.",
380
369
  "config.recallEnabled": "Original-text recall",
381
- "config.recallEnabled.hint": "Register the message-index recall tool.",
382
- "config.semanticRecallEnabled": "Semantic recall",
383
- "config.semanticRecallEnabled.hint": "Register the local semantic-search tool.",
370
+ "config.recallEnabled.hint": "Register the recall tool to review original messages by index.",
371
+ "config.semanticRecallEnabled": "Semantic enhancement",
372
+ "config.semanticRecallEnabled.hint": "Add search by meaning to recall. Requires original-text recall.",
384
373
  "config.debug": "Step logs",
385
374
  "config.debug.hint": "Log processing steps; the default follows NODE_ENV."
386
375
  };
@@ -402,22 +391,25 @@ window.__ModuleLoader__.load({
402
391
  }
403
392
  //#endregion
404
393
  //#region src/client/OmCompactionCard.tsx
405
- /** 卡片样式类名(与宿主 ContextInjectionRow.module.css 同款规则,见下方注册)。 */
394
+ /** 卡片样式类名(与宿主 ContextInjectionRow.module.css 同款规则,增加水平滚动支持)。 */
406
395
  const css = {
407
396
  root: "om-compaction-root",
408
397
  chevron: "om-compaction-chevron",
409
398
  sep: "om-compaction-sep",
410
399
  summary: "om-compaction-summary",
400
+ scrollable: "om-compaction-scrollable",
411
401
  body: "om-compaction-body"
412
402
  };
413
- /** 宿主 ContextInjectionRow.module.css 的规则(逐字一致,仅类名按插件前缀)。 */
403
+ /** 卡片样式规则:保留宿主外观,对折叠摘要与展开体增加水平滚动适配。 */
414
404
  const cardCss = `
415
405
  .${css.root}{min-width:0}
416
406
  .${css.root}[data-open]{padding-bottom:4px}
417
407
  .${css.chevron}{color:var(--dsw-alias-label-secondary)}
418
408
  .${css.sep}{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}
419
409
  .${css.summary}{min-width:0;color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex:auto;font-size:14px;line-height:24px;overflow:hidden}
420
- .${css.body}{box-sizing:border-box;background:var(--dsw-alias-markdown-code-block);width:calc(100% - 22px);max-height:141px;color:var(--dsw-alias-label-tertiary);font:400 11px/16px var(--ds-font-family-code);border:none;border-radius:8px;margin:4px 0 0 22px;padding:10px 16px 12px 12px;overflow:auto}
410
+ .${css.summary}.${css.scrollable}{overflow-x:auto;overflow-y:hidden;text-overflow:clip;scrollbar-width:none;-webkit-overflow-scrolling:touch}
411
+ .${css.summary}.${css.scrollable}::-webkit-scrollbar{display:none}
412
+ .${css.body}{box-sizing:border-box;background:var(--dsw-alias-markdown-code-block);width:calc(100% - 22px);max-height:141px;color:var(--dsw-alias-label-tertiary);font:400 11px/16px var(--ds-font-family-code);border:none;border-radius:8px;margin:4px 0 0 22px;padding:10px 16px 12px 12px;overflow-x:auto;overflow-y:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
421
413
  `;
422
414
  /** 注册卡片样式(无 document 的环境如 node 测试直接跳过)。 */
423
415
  if (typeof document !== "undefined" && document.querySelector("style[data-dsh-plugin-om-card]") === null) {
@@ -433,7 +425,7 @@ window.__ModuleLoader__.load({
433
425
  if (data.running) {
434
426
  const runningLabel = data.phase === "observe" ? t("compaction.running.observe") : data.phase === "reflect" ? t("compaction.running.reflect") : t("compaction.running");
435
427
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
436
- style: styles.row,
428
+ style: styles$1.row,
437
429
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.DisclosureRow, {
438
430
  className: css.root,
439
431
  icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBrowseOutlineRegular, { size: 14 }),
@@ -448,7 +440,7 @@ window.__ModuleLoader__.load({
448
440
  const failedLabel = data.phase === "observe" ? t("compaction.failed.observe") : data.phase === "reflect" ? t("compaction.failed.reflect") : t("compaction.failed");
449
441
  const errorSummary = data.error.length > 80 ? `${data.error.slice(0, 80)}…` : data.error;
450
442
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
451
- style: styles.row,
443
+ style: styles$1.row,
452
444
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.DisclosureRow, {
453
445
  className: css.root,
454
446
  icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBrowseOutlineRegular, { size: 14 }),
@@ -458,7 +450,7 @@ window.__ModuleLoader__.load({
458
450
  className: css.sep,
459
451
  "aria-hidden": true
460
452
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
461
- className: css.summary,
453
+ className: `${css.summary} ${css.scrollable}`,
462
454
  children: errorSummary
463
455
  })] }),
464
456
  keepContentWhenOpen: true,
@@ -470,7 +462,7 @@ window.__ModuleLoader__.load({
470
462
  },
471
463
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
472
464
  className: css.body,
473
- style: styles.body,
465
+ style: styles$1.body,
474
466
  children: data.error
475
467
  })
476
468
  })
@@ -489,7 +481,7 @@ window.__ModuleLoader__.load({
489
481
  tokens: formatCompactCount(data.shadowedTokenCount)
490
482
  }) : expandable ? t("compaction.expand") : t("compaction.unavailable");
491
483
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
492
- style: styles.row,
484
+ style: styles$1.row,
493
485
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.DisclosureRow, {
494
486
  className: css.root,
495
487
  icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBrowseOutlineRegular, { size: 14 }),
@@ -499,7 +491,7 @@ window.__ModuleLoader__.load({
499
491
  className: css.sep,
500
492
  "aria-hidden": true
501
493
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
502
- className: css.summary,
494
+ className: `${css.summary} ${css.scrollable}`,
503
495
  "data-om-compaction-summary": true,
504
496
  children: stats
505
497
  })] }),
@@ -512,13 +504,13 @@ window.__ModuleLoader__.load({
512
504
  },
513
505
  children: data.summary !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
514
506
  className: css.body,
515
- style: styles.body,
507
+ style: styles$1.body,
516
508
  children: data.summary
517
509
  })
518
510
  })
519
511
  });
520
512
  });
521
- const styles = {
513
+ const styles$1 = {
522
514
  row: {},
523
515
  /** 摘要与失败报错为多行文本,保留换行。 */
524
516
  body: { whiteSpace: "pre-wrap" }
@@ -660,7 +652,37 @@ window.__ModuleLoader__.load({
660
652
  };
661
653
  //#endregion
662
654
  //#region src/client/OmConfigCard.tsx
663
- /** 配置行内容:说明、草稿值及继承/覆盖标记。 */
655
+ function BooleanField({ id, label, hint, checked, overridden, overriddenLabel, resetLabel, disabled, onChange, onReset }) {
656
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
657
+ style: styles.field,
658
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
659
+ style: styles.head,
660
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
661
+ className: id,
662
+ label,
663
+ checked,
664
+ disabled,
665
+ onChange
666
+ }), overridden ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
667
+ style: styles.badges,
668
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
669
+ tone: "outline",
670
+ children: overriddenLabel
671
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
672
+ type: "button",
673
+ style: styles.resetButton,
674
+ disabled,
675
+ onClick: onReset,
676
+ children: resetLabel
677
+ })]
678
+ }) : null]
679
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
680
+ style: styles.hint,
681
+ children: hint
682
+ })]
683
+ });
684
+ }
685
+ /** 配置行内容:说明、草稿值及规范的继承/覆盖呈现。 */
664
686
  function OmConfigCard(props) {
665
687
  const { t } = props;
666
688
  const state = props.useOmConfigCard((snapshot) => snapshot);
@@ -693,24 +715,33 @@ window.__ModuleLoader__.load({
693
715
  const label = t(`config.${name}`);
694
716
  const hint = t(`config.${name}.hint`);
695
717
  const disabled = !state.writable || state.saving;
718
+ const recallOn = state.fields.recallEnabled.text === "true";
719
+ const semanticOn = state.fields.semanticRecallEnabled.text === "true";
720
+ const isSemantic = name === "semanticRecallEnabled";
721
+ const checked = isSemantic ? semanticOn && recallOn : field.text === "true";
722
+ const onChange = (value) => {
723
+ props.edit(name, String(value));
724
+ if (isSemantic && value) props.edit("recallEnabled", "true");
725
+ if (name === "recallEnabled" && !value && semanticOn) props.edit("semanticRecallEnabled", "false");
726
+ };
727
+ const onReset = () => {
728
+ props.resetField(name);
729
+ if (isSemantic && !recallOn) props.resetField("recallEnabled");
730
+ };
696
731
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
697
732
  "data-om-field": name,
698
- children: kind === "boolean" ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
699
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Checkbox, {
700
- label,
701
- checked: field.text === "true",
702
- disabled,
703
- onChange: (value) => props.edit(name, String(value))
704
- }),
705
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: hint }),
706
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: field.overridden ? t("config.overridden") : t("config.inherited") }),
707
- field.overridden ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
708
- type: "button",
709
- disabled,
710
- onClick: () => props.resetField(name),
711
- children: t("config.reset")
712
- }) : null
713
- ] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SettingsValueField, {
733
+ children: kind === "boolean" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
734
+ id: `plugin-config-om-${name}`,
735
+ label,
736
+ hint,
737
+ checked,
738
+ overridden: field.overridden,
739
+ overriddenLabel: t("config.overridden"),
740
+ resetLabel: t("config.reset"),
741
+ disabled,
742
+ onChange,
743
+ onReset
744
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SettingsValueField, {
714
745
  id: `plugin-config-om-${name}`,
715
746
  label,
716
747
  hint,
@@ -722,11 +753,46 @@ window.__ModuleLoader__.load({
722
753
  ...field,
723
754
  onEdit: (text) => props.edit(name, text),
724
755
  onReset: () => props.resetField(name)
725
- }), !field.overridden ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("config.inherited") }) : null] })
756
+ })
726
757
  }, name);
727
758
  })]
728
759
  });
729
760
  }
761
+ const styles = {
762
+ field: {
763
+ display: "flex",
764
+ flexDirection: "column",
765
+ gap: "6px",
766
+ padding: "12px 0"
767
+ },
768
+ head: {
769
+ display: "flex",
770
+ alignItems: "center",
771
+ justifyContent: "space-between",
772
+ gap: "8px"
773
+ },
774
+ badges: {
775
+ display: "inline-flex",
776
+ alignItems: "center",
777
+ gap: "8px"
778
+ },
779
+ resetButton: {
780
+ border: "none",
781
+ background: "none",
782
+ padding: 0,
783
+ font: "inherit",
784
+ fontSize: "12px",
785
+ lineHeight: "1.5",
786
+ color: "var(--dsw-alias-label-secondary)",
787
+ cursor: "pointer"
788
+ },
789
+ hint: {
790
+ margin: 0,
791
+ fontSize: "12px",
792
+ lineHeight: "1.5",
793
+ color: "var(--dsw-alias-label-tertiary)"
794
+ }
795
+ };
730
796
  //#endregion
731
797
  //#region src/client/OmWarningCard.tsx
732
798
  /** 折叠式功能降级警告行(降级说明摘要行 + 完整说明展开)。 */
@@ -745,7 +811,7 @@ window.__ModuleLoader__.load({
745
811
  className: "om-compaction-sep",
746
812
  "aria-hidden": true
747
813
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
748
- className: "om-compaction-summary",
814
+ className: "om-compaction-summary om-compaction-scrollable",
749
815
  children: messageSummary
750
816
  })] }) : void 0,
751
817
  keepContentWhenOpen: true,