dsh-sidecard-ask 2.0.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1
4
+
5
+ **主题:清掉 6 个死 i18n 键。无行为变化,无 API / 配置变化,升级无需任何操作。**
6
+
7
+ - **删除 4 个纯死字符串**:`selectionEmpty`、`selectionTooShort`、`floatDocked`、`resetDone`。它们对应的界面在早期版本
8
+ 就已下线,此后没有任何 `t()` 调用点,只是留在字典里被 `locale/*.json` 与打包产物带着走。
9
+ - **删除 2 个重复定义的界面标签**:`familyLegacyDiag`(旧版共载 / Legacy co-load)、`familyPeers`(同页实例 / Copies on page)。
10
+ 它们在 zh、en 两个字典里各被**重复定义两次**(后一份静默覆盖前一份),且都没有调用点。同一功能的
11
+ `familyLegacyToast` / `familySuppressed` 仍在使用,保留;**运行时状态字段** `familyPeers`(family 接管详情里的同页实例列表)
12
+ 是数据而非标签,同样保留。
13
+ - **字典规模**:`client.js` 每个语言从 272 键降到 266 键,zh / en 键集仍完全一致。
14
+ - **防回流**:`test/contract-test.mjs` 的「退役键必须在两个字典里都是 undefined」断言从 4 个键扩到 10 个。
15
+
3
16
  ## 2.0.0
4
17
 
5
18
  **主题:追问卡片标题栏的 `×` 从「隐藏整个浮层」改成「删除这条追问对话」——一次 Breaking 的语义重定义,顺带把「隐藏浮层」这套能力整体下线,并移除反馈表单里「用邮件客户端发送」这条出口。**
package/client.js CHANGED
@@ -47,7 +47,7 @@ window.__ModuleLoader__.load({
47
47
  * the Host and the module's `api.version` both read it, so a report can
48
48
  * never claim a generation the browser is not actually running.
49
49
  */
50
- const CLIENT_VERSION = '2.0.0'
50
+ const CLIENT_VERSION = '2.0.1'
51
51
 
52
52
  /**
53
53
  * Tab kind served by the DSH native right rail (also its implementation id).
@@ -466,8 +466,6 @@ window.__ModuleLoader__.load({
466
466
  zoneCross: '跨区选择',
467
467
  chars: '{n} 字',
468
468
  truncatedBadge: '已截断 {n} 字',
469
- selectionEmpty: '没有选中文本',
470
- selectionTooShort: '选中文本太短,未触发追问',
471
469
  answerTitle: '追问',
472
470
  answerStreaming: '作答中…',
473
471
  answerDone: '已完成',
@@ -539,7 +537,6 @@ window.__ModuleLoader__.load({
539
537
  setFloatMaxWidthHint: '空间不足时自动收窄,不会硬顶',
540
538
  setDockRail: '右侧栏打开时占满它',
541
539
  setDockRailHint: '答案直接铺满右侧栏(读得像栏内的一页),收起为胶囊或关闭即恢复原状;右侧栏不在时不生效',
542
- floatDocked: '已占满右侧栏',
543
540
  floatExpand: '展开侧边卡片',
544
541
  floatCollapse: '收起为胶囊(不遮挡对话)',
545
542
  floatStreaming: '正在作答…',
@@ -565,7 +562,6 @@ window.__ModuleLoader__.load({
565
562
  saved: '已保存',
566
563
  saveFailed: '保存失败:{msg}',
567
564
  reset: '重置为 patch 配置',
568
- resetDone: '已重置',
569
565
  diagnostics: '运行自检',
570
566
  diagTitle: '能力自检',
571
567
  diagHost: '宿主接口',
@@ -591,8 +587,6 @@ window.__ModuleLoader__.load({
591
587
  surfaceUnavailable: '所选侧边承载面不可用',
592
588
  familySuppressed: '检测到同系列更新版本({version})已在本页运行,本实例已自动停用划词触发与快捷键,界面由更新版本接管。建议在插件页卸载本旧版本。',
593
589
  familyLegacyToast: '检测到旧版 dsh-selection-followup 同时启用,已由本版本接管;建议卸载旧包',
594
- familyLegacyDiag: '旧版共载',
595
- familyPeers: '同页实例',
596
590
  retryEdit: '改问',
597
591
  editQuestionPlaceholder: '修改问题后重新提问…',
598
592
  retryAskSubmit: '重新提问',
@@ -688,8 +682,6 @@ window.__ModuleLoader__.load({
688
682
  versionLatest: '返回最新',
689
683
  versionViewing: '正在查看历史版本(只读)',
690
684
  suggestionsLabel: '建议追问',
691
- familyLegacyDiag: '旧版共载',
692
- familyPeers: '同页实例',
693
685
  setFeedback: '反馈',
694
686
  setFeedbackHint: '遇到问题或有建议,在这里直接发邮件给我;邮件会自动附带插件版本与运行环境(不含聊天内容)',
695
687
  feedbackOpen: '反馈问题',
@@ -742,8 +734,6 @@ window.__ModuleLoader__.load({
742
734
  zoneCross: 'Cross-region',
743
735
  chars: '{n} chars',
744
736
  truncatedBadge: 'truncated {n} chars',
745
- selectionEmpty: 'Nothing selected',
746
- selectionTooShort: 'Selection too short to trigger',
747
737
  answerTitle: 'Follow-up',
748
738
  answerStreaming: 'Answering…',
749
739
  answerDone: 'Done',
@@ -815,7 +805,6 @@ window.__ModuleLoader__.load({
815
805
  setFloatMaxWidthHint: 'Narrows automatically when there is not enough room',
816
806
  setDockRail: 'Fill the right rail while it is open',
817
807
  setDockRailHint: 'The answer fills the right rail (it reads as one of its pages) and comes back to normal when collapsed to the capsule or closed; ignored while no rail is on screen',
818
- floatDocked: 'Filled the right rail',
819
808
  floatExpand: 'Expand the side cards',
820
809
  floatCollapse: 'Collapse to a capsule (stops covering the conversation)',
821
810
  floatStreaming: 'Answering…',
@@ -841,7 +830,6 @@ window.__ModuleLoader__.load({
841
830
  saved: 'Saved',
842
831
  saveFailed: 'Save failed: {msg}',
843
832
  reset: 'Reset to patch config',
844
- resetDone: 'Reset',
845
833
  diagnostics: 'Run diagnostics',
846
834
  diagTitle: 'Capability check',
847
835
  diagHost: 'Host API',
@@ -867,8 +855,6 @@ window.__ModuleLoader__.load({
867
855
  surfaceUnavailable: 'The chosen side surface is unavailable',
868
856
  familySuppressed: 'A newer family build ({version}) is already running on this page; this copy has disabled its trigger and shortcut so only one UI answers. Uninstall this older package.',
869
857
  familyLegacyToast: 'Legacy dsh-selection-followup detected alongside this plugin; this build took over. Uninstall the old package.',
870
- familyLegacyDiag: 'Legacy co-load',
871
- familyPeers: 'Copies on page',
872
858
  retryEdit: 'Edit & retry',
873
859
  editQuestionPlaceholder: 'Edit the question, then ask again…',
874
860
  retryAskSubmit: 'Ask again',
@@ -964,8 +950,6 @@ window.__ModuleLoader__.load({
964
950
  versionLatest: 'Back to latest',
965
951
  versionViewing: 'Viewing an older version (read-only)',
966
952
  suggestionsLabel: 'Suggested follow-ups',
967
- familyLegacyDiag: 'Legacy co-load',
968
- familyPeers: 'Copies on page',
969
953
  setFeedback: 'Feedback',
970
954
  setFeedbackHint: 'Report a bug or send a suggestion by mail from here; the plugin version and runtime details are attached automatically (no chat content)',
971
955
  feedbackOpen: 'Send feedback',
package/index.js CHANGED
@@ -44,7 +44,7 @@ export const name = 'dsh-sidecard-ask'
44
44
  export const inject = ['webServer']
45
45
 
46
46
  /** Version of this plugin (kept in step with package.json by test/verify.mjs). */
47
- export const PLUGIN_VERSION = '2.0.0'
47
+ export const PLUGIN_VERSION = '2.0.1'
48
48
 
49
49
  /** Route prefix of the plugin's own API. */
50
50
  export const ROUTE_PREFIX = '/sidecard-ask/api'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-sidecard-ask",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "DSH 划词追问(侧边卡片作答):在聊天区与任务区选中文本就地追问,答案由独立子代理在侧边卡片里流式呈现,也可选择落回主对话。",
5
5
  "type": "module",
6
6
  "main": "index.js",