dsh-sidenote 0.6.4 → 0.7.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 (82) hide show
  1. package/README.md +3 -3
  2. package/lib/client.js +1713 -3884
  3. package/lib/index.js +87 -3955
  4. package/lib/types/client/annotate/send.d.ts +1 -1
  5. package/lib/types/client/annotations/NativeUserContext.d.ts +4 -0
  6. package/lib/types/client/annotations/chip.d.ts +6 -3
  7. package/lib/types/client/annotations/format.d.ts +5 -0
  8. package/lib/types/client/annotations/send.d.ts +3 -0
  9. package/lib/types/client/annotations/submissionExtras.d.ts +8 -0
  10. package/lib/types/client/chat/transcript.d.ts +3 -18
  11. package/lib/types/client/host/chat.d.ts +11 -1
  12. package/lib/types/client/host/contracts.d.ts +1 -1
  13. package/lib/types/client/host/dom.d.ts +5 -2
  14. package/lib/types/client/index.d.ts +1 -10
  15. package/lib/types/client/locales.d.ts +4 -0
  16. package/lib/types/client/reflow.d.ts +3 -2
  17. package/lib/types/client/sidechat/NativeConversation.d.ts +25 -0
  18. package/lib/types/client/sidechat/SideChatPanel.d.ts +2 -0
  19. package/lib/types/client/sidechat/composer.d.ts +4 -49
  20. package/lib/types/client/sidechat/index.d.ts +1 -0
  21. package/lib/types/client/sidechat/lifecycle.d.ts +2 -1
  22. package/lib/types/client/sidechat/notify.d.ts +1 -14
  23. package/lib/types/client/sidechat/rows.d.ts +0 -25
  24. package/lib/types/client/sidechat/snapshot.d.ts +1 -0
  25. package/lib/types/index.d.ts +10 -1
  26. package/package.json +9 -9
  27. package/src/client/annotate/index.tsx +3 -4
  28. package/src/client/annotate/send.ts +29 -50
  29. package/src/client/annotations/NativeUserContext.tsx +46 -0
  30. package/src/client/annotations/annotations.module.css +3 -0
  31. package/src/client/annotations/chip.tsx +17 -6
  32. package/src/client/annotations/format.ts +10 -0
  33. package/src/client/annotations/send.ts +40 -0
  34. package/src/client/annotations/source.ts +7 -4
  35. package/src/client/annotations/submissionExtras.ts +12 -0
  36. package/src/client/chat/transcript.ts +5 -47
  37. package/src/client/host/chat.ts +37 -1
  38. package/src/client/host/contracts.ts +4 -0
  39. package/src/client/host/dom.ts +21 -6
  40. package/src/client/index.tsx +1 -10
  41. package/src/client/locales.ts +10 -2
  42. package/src/client/reflow.ts +14 -6
  43. package/src/client/sidechat/NativeConversation.tsx +175 -0
  44. package/src/client/sidechat/SideChatPanel.tsx +105 -452
  45. package/src/client/sidechat/composer.ts +20 -232
  46. package/src/client/sidechat/index.tsx +4 -79
  47. package/src/client/sidechat/lifecycle.ts +9 -1
  48. package/src/client/sidechat/model.ts +4 -3
  49. package/src/client/sidechat/native-tab.tsx +5 -3
  50. package/src/client/sidechat/notify.ts +29 -60
  51. package/src/client/sidechat/rows.tsx +7 -327
  52. package/src/client/sidechat/sidechat.module.css +29 -899
  53. package/src/client/sidechat/snapshot.ts +2 -0
  54. package/src/index.ts +20 -7
  55. package/lib/types/client/annotate/bubble.d.ts +0 -2
  56. package/lib/types/client/chat/FoldCard.d.ts +0 -7
  57. package/lib/types/client/chat/ReasoningRow.d.ts +0 -7
  58. package/lib/types/client/chat/ToolCard.d.ts +0 -9
  59. package/lib/types/client/chat/cards.d.ts +0 -154
  60. package/lib/types/client/host/labels.d.ts +0 -69
  61. package/lib/types/client/host/markdown.d.ts +0 -32
  62. package/lib/types/client/sidechat/ComposerBar.d.ts +0 -15
  63. package/lib/types/client/sidechat/ModelMenu.d.ts +0 -8
  64. package/lib/types/client/sidechat/PendingCard.d.ts +0 -4
  65. package/lib/types/client/sidechat/PermissionChip.d.ts +0 -4
  66. package/lib/types/client/sidechat/composer/attach.d.ts +0 -2
  67. package/lib/types/client/sidechat/composer/slash.d.ts +0 -61
  68. package/lib/types/client/sidechat/pending.d.ts +0 -71
  69. package/src/client/annotate/bubble.ts +0 -109
  70. package/src/client/chat/FoldCard.tsx +0 -34
  71. package/src/client/chat/ReasoningRow.tsx +0 -46
  72. package/src/client/chat/ToolCard.tsx +0 -160
  73. package/src/client/chat/cards.ts +0 -643
  74. package/src/client/host/labels.ts +0 -99
  75. package/src/client/host/markdown.ts +0 -48
  76. package/src/client/sidechat/ComposerBar.tsx +0 -174
  77. package/src/client/sidechat/ModelMenu.tsx +0 -85
  78. package/src/client/sidechat/PendingCard.tsx +0 -145
  79. package/src/client/sidechat/PermissionChip.tsx +0 -86
  80. package/src/client/sidechat/composer/attach.ts +0 -2
  81. package/src/client/sidechat/composer/slash.tsx +0 -156
  82. package/src/client/sidechat/pending.ts +0 -238
package/README.md CHANGED
@@ -35,9 +35,9 @@
35
35
  dsh plugin --profile web add dsh-sidenote
36
36
  ```
37
37
 
38
- 打开 DSH Web,点击会话顶栏的 **「侧边」**,或划选一段回复开始。也可输入 `/side` 打开侧聊,用 `Alt+J` 切换主、侧输入焦点。
38
+ 打开 DSH Web,点击会话顶栏的 **「侧边」**,或划选一段回复开始。也可输入 `/side` 打开侧聊,用 `Alt+S` 切换主、侧输入焦点。
39
39
 
40
- 原生侧栏宿主无需额外安装 `dsh-better-sidebar`;旧宿主按[兼容表](docs/compatibility.md)安装对应组合。
40
+ 当前主线支持 DSH 0.2.0-rc.2 / 0.2.1-rc.2,无需安装 `dsh-better-sidebar`。旧宿主固定最后兼容的 `dsh-sidenote@0.6.5`,具体命令见[兼容政策](docs/compatibility.md)。
41
41
 
42
42
  ## 一个任务,容得下更多思路
43
43
 
@@ -82,7 +82,7 @@ dsh plugin --profile web add dsh-sidenote
82
82
 
83
83
  ## 兼容与帮助
84
84
 
85
- 已验证的原生侧栏组合为 **DSH 0.1.5-rc.2、0.1.7-rc.2、0.2.0-rc.2、0.2.1-rc.2**;旧版的三组 BS 组合继续保留验收。支持范围以[兼容与维护政策](docs/compatibility.md)中的精确版本为准;已发布版本请查看对应 Release。
85
+ 当前主线维护 **DSH 0.2.0-rc.2、0.2.1-rc.2** 两个精确宿主版本,侧聊直接复用原生 Conversation。窗口外用户停留在最后兼容的插件 0.6.5,当前主线不再逐个回补新功能或运行旧宿主检查。支持范围以[兼容与维护政策](docs/compatibility.md)中的精确版本为准;已发布版本请查看对应 Release。
86
86
 
87
87
  遇到问题时,可在 **设置 → 通用设置 → dsh-sidenote 诊断模式** 开启诊断,查看并手动导出接入状态。[报告问题或提出建议](https://github.com/g-yixuan/dsh-sidenote/issues/new/choose)。
88
88