dsh-plugin-om 0.0.47 → 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 +11 -10
- package/dist/client/OmCompactionCard.d.ts.map +1 -1
- package/dist/client/OmConfigCard.d.ts +2 -2
- package/dist/client/OmConfigCard.d.ts.map +1 -1
- package/dist/client/OmWarningCard.d.ts +2 -2
- package/dist/client/OmWarningCard.d.ts.map +1 -1
- package/dist/client/definition.d.ts +6 -8
- package/dist/client/definition.d.ts.map +1 -1
- package/dist/client/locales.d.ts +4 -5
- package/dist/client/locales.d.ts.map +1 -1
- package/dist/client.js +136 -70
- package/dist/client.js.map +1 -1
- package/dist/compress.d.ts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/constants.d.ts +3 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/degrade.d.ts +5 -6
- package/dist/degrade.d.ts.map +1 -1
- package/dist/embedding.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +323 -299
- package/dist/log-index.d.ts +1 -1
- package/dist/om-event.d.ts +14 -27
- package/dist/om-event.d.ts.map +1 -1
- package/dist/recall-output.d.ts +2 -2
- package/dist/recall-output.d.ts.map +1 -1
- package/dist/recall-xml.d.ts +1 -1
- package/dist/recall.d.ts +31 -10
- package/dist/recall.d.ts.map +1 -1
- package/dist/semantic-recall.d.ts +32 -26
- package/dist/semantic-recall.d.ts.map +1 -1
- package/dist/system-reminder.d.ts +35 -0
- package/dist/system-reminder.d.ts.map +1 -0
- package/dist/types.d.ts +19 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/progress-reminder.d.ts +0 -18
- package/dist/progress-reminder.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
- 自动压缩主会话历史,并在摘要过大时再次合并
|
|
10
10
|
- OM 启用时以 system-reminder 消息提示模型边做边简述计划与进展,压缩后自动补发
|
|
11
|
+
- OM 或 recall 启用时以 system-reminder 消息说明完整消息定义,压缩后自动补发
|
|
11
12
|
- 通过工具循环生成摘要,保留用户消息、系统消息和未压缩内容
|
|
12
13
|
- 保留工具加载与手动加载的 skill 原文,并在压缩前再次确认
|
|
13
14
|
- 有效提问首次直接压缩需再次确认,保留时查看选项后在下一轮重写问答并展开选项引用
|
|
14
15
|
- 中断或错误的提问作为普通工具调用处理
|
|
15
|
-
- 使用 `recall`
|
|
16
|
+
- 使用 `recall` 按消息序号回看原文,启用语义增强后还可按含义检索
|
|
16
17
|
- 记录压缩过程、耗时和 token 用量
|
|
17
18
|
- 压缩会话记录显示在子智能体列表,随父会话 Session 日志一起下载
|
|
18
19
|
- 在浏览器中显示压缩结果、错误和降级警告
|
|
@@ -57,7 +58,7 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
|
|
|
57
58
|
| `modelDir` | DSH 共享目录 | 嵌入模型目录 |
|
|
58
59
|
| `omEnabled` | `true` | 是否启用自动压缩和进度提醒 |
|
|
59
60
|
| `recallEnabled` | `true` | 是否启用原文召回 |
|
|
60
|
-
| `semanticRecallEnabled` | `true` |
|
|
61
|
+
| `semanticRecallEnabled` | `true` | 是否为 `recall` 启用语义增强,依赖 `recallEnabled` |
|
|
61
62
|
| `debug` | 开发环境启用 | 是否输出步骤日志 |
|
|
62
63
|
|
|
63
64
|
较小的观察阈值更早节省上下文,较大的阈值提供更多摘要信息。只有 reasoning 包含关键决策时才需将 `compressSkipReasoning` 设为 `false`。
|
|
@@ -74,7 +75,7 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
|
|
|
74
75
|
name: file:///<repo>/dist/index.mjs
|
|
75
76
|
```
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
语义增强首次使用时自动下载嵌入模型,也可运行 `pnpm run download:model` 预下载。
|
|
78
79
|
|
|
79
80
|
| 命令 | 作用 |
|
|
80
81
|
| --- | --- |
|
|
@@ -89,22 +90,22 @@ pnpm 11 安装失败时,在 profile 的 `pnpm-workspace.yaml` 中设置 `allow
|
|
|
89
90
|
```text
|
|
90
91
|
cordis.patch.yml # bundle patch,dsh plugin add 后作为组合层插入插件行
|
|
91
92
|
src/
|
|
92
|
-
├── index.ts # 打包入口:注册 recall
|
|
93
|
-
├──
|
|
93
|
+
├── index.ts # 打包入口:注册 recall 工具并接线自动压缩和提醒补发
|
|
94
|
+
├── system-reminder.ts # 进度与完整消息定义提醒:system-reminder 消息的构造与缺失时补发
|
|
94
95
|
├── config.ts # 配置默认值与宽松合并,未知键忽略、非法值回退默认
|
|
95
96
|
├── constants.ts # 共享常量:插件标识、history 标签、完整消息定义、格式说明注释
|
|
96
|
-
├── degrade.ts # 挂载失败降级上报:console 外部输出与 om
|
|
97
|
-
├── om-event.ts # om
|
|
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
|
|
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
|
|
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;
|
|
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;
|
|
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
|
|
4
|
-
*
|
|
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,
|
|
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
|
|
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
|
-
/**
|
|
67
|
+
/** 功能降级警告行载荷:降级问题标识与面向用户的说明。 */
|
|
69
68
|
export interface OmWarningChatData {
|
|
70
|
-
/** 降级问题标识(om
|
|
69
|
+
/** 降级问题标识(plugin:dsh-plugin-om:warning 载荷 problem)。 */
|
|
71
70
|
readonly problem: string | null;
|
|
72
|
-
/** 面向用户的降级说明(om
|
|
71
|
+
/** 面向用户的降级说明(plugin:dsh-plugin-om:warning 载荷 message)。 */
|
|
73
72
|
readonly message: string | null;
|
|
74
73
|
}
|
|
75
74
|
/**
|
|
76
|
-
* 插件功能降级警告定义:每条 om
|
|
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
|
|
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"}
|
package/dist/client/locales.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
|
|
12
|
-
|
|
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
|
|
16
|
-
const
|
|
17
|
-
if (typeof
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
|
40
|
-
const { triggerMessageIndex } =
|
|
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
|
|
49
|
-
const { pendingSeq } =
|
|
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
|
|
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
|
|
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
|
|
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-
|
|
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
|
|
382
|
-
"config.semanticRecallEnabled": "Semantic
|
|
383
|
-
"config.semanticRecallEnabled.hint": "
|
|
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
|
-
/**
|
|
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.
|
|
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.
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
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
|
-
})
|
|
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,
|