dsh-sidenote 0.7.1 → 0.7.3
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 +6 -6
- package/docs/assets/README.md +29 -14
- package/lib/client.js +1136 -609
- package/lib/types/client/annotations/NativeComposer.d.ts +10 -0
- package/lib/types/client/annotations/NativeUserContext.d.ts +33 -2
- package/lib/types/client/annotations/chip.d.ts +2 -12
- package/lib/types/client/chat/transcript.d.ts +2 -1
- package/lib/types/client/host/chat.d.ts +34 -0
- package/lib/types/client/host/contracts.d.ts +14 -1
- package/lib/types/client/host/dom.d.ts +5 -0
- package/lib/types/client/locales.d.ts +13 -0
- package/lib/types/client/sidechat/NativeConversation.d.ts +7 -0
- package/lib/types/client/sidechat/identity.d.ts +1 -1
- package/lib/types/client/sidechat/snapshot.d.ts +2 -0
- package/package.json +1 -1
- package/src/client/annotate/index.tsx +7 -16
- package/src/client/annotations/NativeComposer.tsx +110 -0
- package/src/client/annotations/NativeUserContext.tsx +168 -36
- package/src/client/annotations/annotations.module.css +60 -157
- package/src/client/annotations/chip.tsx +122 -118
- package/src/client/chat/transcript.ts +5 -3
- package/src/client/host/chat.ts +23 -19
- package/src/client/host/contracts.ts +5 -0
- package/src/client/host/dom.ts +13 -1
- package/src/client/locales.ts +30 -4
- package/src/client/reflow.ts +1 -1
- package/src/client/sidechat/NativeConversation.tsx +33 -16
- package/src/client/sidechat/SideChatPanel.tsx +8 -3
- package/src/client/sidechat/identity.ts +5 -1
- package/src/client/sidechat/sidechat.module.css +15 -1
- package/src/client/sidechat/snapshot.ts +7 -0
- package/lib/types/client/annotate/chip.d.ts +0 -10
- package/lib/types/client/annotate/send.d.ts +0 -8
- package/src/client/annotate/chip.tsx +0 -94
- package/src/client/annotate/send.ts +0 -155
package/README.md
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-60708E" alt="MIT license"></a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-

|
|
27
27
|
|
|
28
|
-
<p align="center"><sub>dsh-sidenote 0.
|
|
28
|
+
<p align="center"><sub>dsh-sidenote 0.7.2 · DSH 0.2.1-rc.2 · DeepSeek V4.1 Flash · 真实交互录制</sub></p>
|
|
29
29
|
|
|
30
30
|
## 安装
|
|
31
31
|
|
|
@@ -51,21 +51,21 @@ dsh plugin --profile web add dsh-sidenote
|
|
|
51
51
|
|
|
52
52
|
划选主对话或侧聊中的一段回复,写下问题或修改意见。**原文和注释一起保留**,可累积多条,发送前预览、移除,正文草稿照常编辑。
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
读到「提示“未找到”,并给出放宽条件建议」,就选中这一句,追问「给一版可直接使用的空状态」。
|
|
55
55
|
|
|
56
56
|
### 有结论,带回正在做的事
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
点击侧聊回答操作栏右侧的「带回主对话」图标,**问题与回答成对带回**,出现在主输入框上方,随下一条消息送入主线。也可以整段回流,或将值得保留的侧聊保存为正式会话。
|
|
59
59
|
|
|
60
60
|
## 看看它如何工作
|
|
61
61
|
|
|
62
62
|
**划选一句 → 带着上下文追问 → 把结论带回主线。**
|
|
63
63
|
|
|
64
|
-

|
|
65
65
|
|
|
66
66
|
[观看清晰版 MP4](docs/assets/demo.mp4) · [查看静态截图](docs/assets/workflow.jpg)
|
|
67
67
|
|
|
68
|
-
<sub
|
|
68
|
+
<sub>2026-10-25 录制于 dsh-sidenote 0.7.2 / DSH 0.2.1-rc.2。以笔记搜索设计为例,真实调用官方 DeepSeek V4.1 Flash 生成回答;约 43 秒的录屏展示实际操作与完整回复过程。<a href="docs/assets/README.md">素材说明</a></sub>
|
|
69
69
|
|
|
70
70
|
## 用起来顺手的细节
|
|
71
71
|
|
package/docs/assets/README.md
CHANGED
|
@@ -1,23 +1,38 @@
|
|
|
1
|
-
# README media /
|
|
1
|
+
# README and storefront media / 首页与商店素材
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Captured on **2026-10-25** with the published **dsh-sidenote 0.7.2** package (source: `0d55fcd`) and **DSH 0.2.1-rc.2**, using native Conversation and the native right sidebar. The mounted plugin's version and bundle digest, plus the host's active conversation, composer, and sidebar packages, were checked before capture.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
素材于 **2026-10-25** 重新录制,使用已发布的 **dsh-sidenote 0.7.2**(源码 `0d55fcd`)与 **DSH 0.2.1-rc.2** 原生对话和右侧栏。录制前核对了实际挂载的插件版本与构建摘要,以及宿主正在运行的对话、输入框和侧栏组件版本。
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- `selection.jpg`: a selected passage and its note editor / 划选与注释编辑器。
|
|
9
|
-
- `sidechat.jpg`: a completed side-chat response / 侧聊问答。
|
|
10
|
-
- `demo.gif`, `demo.mp4`: the same continuous selection → annotation → side reply → reflow sequence / 同一段连续操作的 GIF 与 MP4。
|
|
11
|
-
- `hero.svg`, `hero-en.svg` and their `-compact.svg` variants: original vector covers; regenerate with `python3 scripts/build-brand-assets.py` / 原创矢量封面,可用该命令重新生成。
|
|
7
|
+
## Real model responses / 真实模型回答
|
|
12
8
|
|
|
13
|
-
The
|
|
9
|
+
The example task is designing a note app's search experience. All assistant replies were generated through the official **DeepSeek V4.1 Flash** API at `api.deepseek.com`, using model ID `deepseek-flash` with thinking off. This ID's mapping is documented in the [official model updates](https://api-docs.deepseek.com/updates/). Request metadata confirmed successful, completed responses. No fixed-answer adapter or prewritten assistant messages were used.
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
演示任务是设计笔记应用的搜索体验。全部助手回复都实际调用 `api.deepseek.com` 的 **DeepSeek V4.1 Flash** 生成,模型 ID 为 `deepseek-flash`,关闭思考模式;该 ID 的对应关系见[官方更新说明](https://api-docs.deepseek.com/updates/)。请求元数据确认调用成功并完成,没有使用固定回答的适配器或预先写入的助手消息。
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
The recording starts with the real main-chat answer already visible. It then shows selection and annotation, a real side-chat response, hover previews, editing a pending note, the clear button's reveal, the reply-toolbar handback action, sending the main draft with both kinds of context, and inspecting the sent message. The main model's final answer incorporates the returned empty-state copy and the edited annotation.
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
录屏从已经生成的主线回答开始,随后展示划选与批注、真实侧聊回答、悬浮预览、原位编辑、清除按钮显现、回复操作栏回流、携带两类上下文发送,以及发送后的气泡详情。主线最后的真实回答同时采纳了带回的空状态文案与修改后的批注。
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
## Assets / 文件
|
|
22
18
|
|
|
23
|
-
|
|
19
|
+
- `workflow.jpg`: a follow-up capture showing the selection toolbar's two destinations, a real side-chat answer, pending annotation and handback chips, and context bubbles in sent messages / 补拍主图:同屏展示划选菜单的两种去向、真实侧聊回答、待发送的批注与回流标签,以及已发送消息中的上下文气泡。
|
|
20
|
+
- `context-preview.jpg`: a compact preview with the selected passage, editable note, and horizontal context chips / 紧凑悬浮层中的原文、可编辑注解与横向标签。
|
|
21
|
+
- `selection.jpg`: selected text and the two annotation destinations, taken from the recording / 从录屏提取的划选画面与两种批注去向。
|
|
22
|
+
- `sidechat.jpg`: a real side-chat answer and the hovered reply-toolbar handback icon / 真实侧聊回答与悬停中的回流图标。
|
|
23
|
+
- `demo.gif`, `demo.mp4`: the same approximately **43-second** continuous workflow / 同一段约 **43 秒**的连续操作。
|
|
24
|
+
- `hero.svg`, `hero-en.svg` and their `-compact.svg` variants: vector brand covers; regenerate with `python3 scripts/build-brand-assets.py` / 品牌矢量封面,可用该命令重新生成。
|
|
25
|
+
|
|
26
|
+
## Capture and distribution / 录制与展示
|
|
27
|
+
|
|
28
|
+
The real interface uses the host's **light theme** and **18 px** conversation font. The hero uses a **1440 × 780** viewport and is exported at 2160 × 1170 so the selection menu and both composers fit together. Other stills use a **1440 × 900** viewport, captured at 2× pixel density and exported at 2160 × 1350; the selection still is a native 1440 × 900 recording frame. MP4 is 1440 × 900 at 30 fps; GIF is 1120 × 700 at 12 fps. Encoding preserves the browser's frame timing without speeding up responses. A small pointer overlay follows actual mouse events in the recording; product controls and model replies are not redrawn or substituted.
|
|
29
|
+
|
|
30
|
+
真实界面使用宿主的**浅色主题**和 **18 px** 会话字号。主图以 **1440 × 780** 视口补拍,导出为 2160 × 1170,让划选菜单和两侧输入框完整同屏。其余静态截图使用 **1440 × 900** 视口,按 2 倍像素密度采集后导出为 2160 × 1350;划选截图直接取自 1440 × 900 的录屏帧。MP4 为 1440 × 900 / 30 fps,GIF 为 1120 × 700 / 12 fps,均按浏览器帧时间编码,没有加速模型响应。录屏中仅添加跟随真实鼠标事件的小光标辅助层,没有重绘产品控件或替换模型回答。
|
|
31
|
+
|
|
32
|
+
[`screenshots.json`](../../screenshots.json) declares the storefront gallery. The [catalog's screenshot convention](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/blob/main/contributing.md#screenshots--截图optional-recommended--可选推荐) resolves those paths from this repository, and the next catalog build refreshes the gallery. Existing screenshot paths remain available for cached catalogs.
|
|
33
|
+
|
|
34
|
+
[`screenshots.json`](../../screenshots.json) 声明商店展示顺序。[商店截图约定](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin/blob/main/contributing.md#screenshots--截图optional-recommended--可选推荐) 会从本仓库读取这些路径,下一次索引构建时更新图集;原有图片路径继续提供新版内容,供已缓存的索引读取。
|
|
35
|
+
|
|
36
|
+
For future captures, use a fresh isolated DSH home, install the published plugin with the official CLI, verify the active bundles, and run the complete workflow against the official model API. Keep credentials, launch tokens, private conversations, raw frames, and recording logs out of public assets. The older `capture-demo.mjs` and `capture-video.mjs` scripts target historical layouts and synthetic sessions; they do not reproduce this recording unchanged.
|
|
37
|
+
|
|
38
|
+
后续重录应使用全新隔离的 DSH home,通过官方 CLI 安装已发布插件,核对实际加载的构建,并调用官方模型走完完整流程。凭证、启动 token、私人会话、原始帧和录制日志不进入公开素材。旧 `capture-demo.mjs`、`capture-video.mjs` 面向历史布局与合成会话,不能原样用于复现本次录制。
|