@mzzsfy/dsh-think-expand 0.2.4 → 0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/client.js +9 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mzzsfy/dsh-think-expand",
3
3
  "description": "流式回复时自动展开 AI 思考过程,始终显示最新一条;安装即生效,手动操作优先,装卸无残留",
4
- "version": "0.2.4",
4
+ "version": "0.3.0",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "exports": {
package/src/client.js CHANGED
@@ -3,6 +3,15 @@
3
3
  // 纯逻辑段在 LOGIC 标记之间,与 src/logic.mjs 保持同源,由 parity 测试(含逐函数
4
4
  // 源码文本对比)保证;容器观察器句柄挂 window 代际槽,HMR 重评估先拆上一代。
5
5
 
6
+ // 导航图标声明:交给 dsh-settings-nav-icons 统一渲染;键 = 市场短名(发现页
7
+ // 收录显示形态);该插件未就绪时入队,由其启动时排空
8
+ if (typeof window !== 'undefined') {
9
+ const NAV_ICON = { 'dsh-think-expand': 'spark' }
10
+ if (window.__navicIcons !== undefined) window.__navicIcons.register(NAV_ICON)
11
+ else if (Array.isArray(window.__navicIconQueue)) window.__navicIconQueue.push(NAV_ICON)
12
+ else window.__navicIconQueue = [NAV_ICON]
13
+ }
14
+
6
15
  window.__ModuleLoader__.load({
7
16
  id: '@mzzsfy/dsh-think-expand',
8
17
  factory(require) {