dsh-convey-assistant 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-convey-assistant contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,158 @@
1
- # Temporary Holding Version
1
+ # dsh-convey-assistant
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > Say it once, say it right — turn a rough draft into intent an AI agent cannot misread.
4
+
5
+ A [DeepSeek Harness](https://www.deepseek.com/en/harness/) (DSH) plugin that does three things:
6
+
7
+ **① Translates what you typed into what an agent can act on** — one ✨ turns a rough draft into a
8
+ structured, unambiguous intent (goal / deliverable / constraints / acceptance), editable in a card,
9
+ written back only after you confirm.
10
+
11
+ **② Asks you the questions you did not think to answer** — she reads the draft from the receiving
12
+ agent's seat, finds the forks that would make it guess, and turns them into one plain-language
13
+ question in the card. Add a sentence, hit Recompile, done.
14
+
15
+ **③ Keeps you company with a moving pixel fat fish** — the resident switch below the composer
16
+ (on by default): when your mouse is still she wanders around; the moment you move it she freezes.
17
+ Hover her and she asks "Master, would you like to configure me?" — click to open her settings.
18
+ **Before you press send.**
19
+
20
+ ![Demo: she wanders around, and asks to be configured when you hover her](docs/demo.gif)
21
+
22
+ <sub>The demo animation is rendered frame by frame from the plugin's real pixel sprite — it is not a screen recording.</sub>
23
+
24
+ English | [中文](README.zh.md)
25
+
26
+ ---
27
+
28
+ ## The problem
29
+
30
+ People talk to AI as if it shared their head:
31
+
32
+ > "tweak that figure again, colors feel off, and rerun the fit on yesterday's data while you're at it"
33
+
34
+ Three things are undecidable for an agent: *which* figure, *which direction* the colors are off, *which file* "yesterday's data" means.
35
+ The model will not complain — it will **guess**. Then you re-explain, and that extra round trip is where the time goes.
36
+
37
+ This plugin does not guess for you:
38
+
39
+ 1. It **restructures the text** into an unambiguous form;
40
+ 2. It **turns whatever it genuinely cannot infer into one plain-language question**, so a one-sentence answer replaces a round trip.
41
+
42
+ ## Install in 30 seconds
43
+
44
+ Three ways, pick one. The package is **prebuilt**: `lib/index.js` and `lib/client.js` are committed,
45
+ and installation runs **no build script on your machine**.
46
+
47
+ ### 0. From npm (easiest, mirrored in China)
48
+
49
+ ```bash
50
+ dsh plugin --profile desktop add dsh-convey-assistant
51
+ ```
52
+
53
+ Or **Settings → Plugins → Add plugin**, paste `dsh-convey-assistant`, pick the npmmirror source, install.
54
+
55
+ ### A. Clone + one command (recommended)
56
+
57
+ ```bash
58
+ git clone https://github.com/Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant.git
59
+ cd dsh-convey-assistant
60
+ node scripts/install.mjs # installs into the desktop profile; use --profile web for another
61
+ ```
62
+
63
+ The script backs up the profile's `package.json`, runs `dsh plugin add`, then enables the package in
64
+ `dsh.profile.bundles`. Want to see the plan first? `node scripts/install.mjs --dry-run`.
65
+
66
+ ### B. Straight from GitHub
67
+
68
+ ```bash
69
+ dsh plugin --profile desktop add github:Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant
70
+ ```
71
+
72
+ (Then add `dsh-convey-assistant` to `dsh.profile.bundles` in the profile's `package.json` — method A does this for you.)
73
+
74
+ ### C. From the GUI
75
+
76
+ **Settings → Plugins → Add plugin**, paste `https://github.com/Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant` and hit install.
77
+
78
+ If nothing shows up after a refresh, check that `dsh-convey-assistant` is listed in `dsh.profile.bundles` inside the profile's `package.json` (the GUI normally does this for you).
79
+
80
+ > Refresh the page afterwards; if nothing appears, restart DSH once (a newly added bundle sometimes needs the host to re-compose).
81
+
82
+ ## Using it
83
+
84
+ 1. Write your draft in the composer.
85
+ 2. Click **✨** in the toolbar.
86
+ 3. A card shows **your original** next to **the result**; the result is editable. If a genuine fork exists,
87
+ the card asks a question — answer it, hit **Recompile**, and she reruns with your answer folded in.
88
+ 4. Hit **Apply to draft** to replace the composer text. **You still press send yourself.**
89
+
90
+ ![Her little settings panel](docs/panel.png)
91
+
92
+ ## The resident fat fish
93
+
94
+ There is a switch below the composer: **"Let the fat fish stay around"**, **on by default**.
95
+
96
+ - While idle she slowly wanders and hops around the empty space of the conversation; **move your mouse and she freezes instantly**.
97
+ - **Hover her** and she asks: "Master, would you like to configure me?" Click it to open her settings:
98
+
99
+ | Setting | Meaning |
100
+ |---|---|
101
+ | **Model** | Defaults to "follow this conversation". You may pin one model for a single rewrite — it **does not change the model your session uses**. |
102
+ | **Posture** | "Let me finish first" (structure only) / "Guess what I really mean" (intent rewrite, default) |
103
+ | **Permission to roam** | "Go on, run around~" / "Stay still, don't move" |
104
+ | Resident switch off | She clocks out; flip it back on and she **makes an entrance** again |
105
+
106
+ She **never covers the composer or the send button** (her roaming area is computed from the composer's position),
107
+ never steals focus, and never intercepts the keyboard.
108
+
109
+ ## Privacy
110
+
111
+ First priority, and checkable rather than merely promised:
112
+
113
+ | Question | Answer |
114
+ |---|---|
115
+ | Who sees my draft? | Only the model **you selected inside DSH**. The plugin owns no API key and talks to no third-party endpoint. |
116
+ | What leaves the machine? | Browser → one authenticated local route → your model. That is the entire list. |
117
+ | Does the rewrite enter my conversation? | **No.** No session event, no `sessionId`, no JSONL entry, not counted in token usage. |
118
+ | Analytics / telemetry | **None.** |
119
+ | Does my draft reach logs? | **No.** Never in error messages, console output, or `~/.dsh/logs`. |
120
+ | Does the plugin store my draft? | **No.** In memory only. |
121
+ | Is my model choice remembered? | Only the `provider/model` strings (localStorage), never any conversation content. |
122
+
123
+ **Honest boundaries:** the provider you chose obviously receives the text that is sent; an HTTPS proxy sees
124
+ connection metadata (TLS payload stays opaque); another plugin in the same host process could in principle hook
125
+ the LLM stream — that is the harness trust boundary. DSH itself already persists drafts in Electron localStorage;
126
+ this plugin adds **no** local storage of its own.
127
+
128
+ ## Compatibility
129
+
130
+ - DSH `>= 0.2.2-rc.5 < 0.3.0` (developed and tested on 0.2.2-rc.5)
131
+ - Desktop and Web GUI (needs a same-origin `/api` route)
132
+ - Windows / macOS / Linux (the installer is Node; a PowerShell version is included as well)
133
+
134
+ ## Uninstall
135
+
136
+ ```bash
137
+ node scripts/uninstall.mjs --profile desktop
138
+ ```
139
+
140
+ It removes the dependency, drops it from `dsh.profile.bundles`, deletes leftovers, and restores the pre-install
141
+ `package.json` backup.
142
+
143
+ ## Development
144
+
145
+ ```bash
146
+ npm install
147
+ npm run build # lib/index.js (host) + lib/client.js (browser)
148
+ npm run typecheck # against real DSH 0.2.2-rc.5 types
149
+ npm run verify # pre-publish checks, including npm pack contents
150
+ npm run smoke # runtime smoke: host imports, client only requires shared modules
151
+ ```
152
+
153
+ `lib/` is a build artifact and **must be committed** — that is what makes "clone and run" true.
154
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the directory map and the hard constraints.
155
+
156
+ ## License
157
+
158
+ MIT
package/README.zh.md ADDED
@@ -0,0 +1,156 @@
1
+ # dsh-convey-assistant
2
+
3
+ > 说一遍,就说对 —— 把口语草稿编译成 AI Agent 不会误读的意图。
4
+
5
+ 一个 [DeepSeek Harness](https://www.deepseek.com/en/harness/)(DSH)插件,做三件事:
6
+
7
+ **① 把你说的话翻译成 Agent 听得懂的话** —— 点一下 ✨,口语草稿会被重写成结构化、无歧义的意图
8
+ (目标 / 交付物 / 约束 / 完成判据),你可以在卡片里直接改,确认后才写回输入框。
9
+
10
+ **② 帮你把没想清楚的地方问出来** —— 她会站在 Agent 的角度想「这句话我会不会理解错」,
11
+ 把真正的分叉点变成一句人话的追问塞进卡片;你补一句、点「重新编译」,她就带着补充重跑。
12
+
13
+ **③ 用一只会动的像素大肥鱼陪着你** —— 输入框下方的常驻开关(默认开):鼠标不动时她在对话区慢慢溜达,
14
+ 鼠标一动立刻定格;悬停她会冒出气泡「主人,你要配置一下我吗?」,点开就是她的设置面板。
15
+ **在你按下发送之前**,把话说清楚。
16
+
17
+ ![演示:她会自己走动、悬停会问你要不要配置](docs/demo.gif)
18
+
19
+ <sub>演示动画由插件真实像素精灵与界面配色逐帧合成,不是屏幕录制。</sub>
20
+
21
+ [English](README.md) | 中文
22
+
23
+ ---
24
+
25
+ ## 它解决什么问题
26
+
27
+ 人对 AI 说话时默认对方跟自己共享上下文:
28
+
29
+ > "那个图再改改,颜色不太对,顺便把昨天那组数据的拟合也跑一下"
30
+
31
+ 这句话里有三个 Agent 无法确定的东西:「那个图」是哪张、「颜色不对」往哪边调、「昨天那组数据」是哪个文件。
32
+ 模型不会报错,它会**猜**。猜错之后你得重说一遍 —— 那一轮来回就是这么来的。
33
+
34
+ 这个插件不替你猜,它做两件事:
35
+
36
+ 1. **把话整理成结构化、无歧义的形式**;
37
+ 2. **把真正猜不出来的地方变成一句人话的追问**,你补一句就省掉一轮来回。
38
+
39
+ ## 30 秒安装
40
+
41
+ 三种方式任选一种。**本插件是预构建的**:仓库里已经带上 `lib/index.js` 与 `lib/client.js`,
42
+ 安装时**不会**在你机器上执行任何构建脚本。
43
+
44
+ ### 方式 0:从 npm 装(国内网络最省事,推荐)
45
+
46
+ 包已发布到 npm,国内默认走 npmmirror 镜像,速度快:
47
+
48
+ ```bash
49
+ dsh plugin --profile desktop add dsh-convey-assistant
50
+ ```
51
+
52
+ 或者 **设置 → 插件 → 添加插件**,输入框填 `dsh-convey-assistant`,安装源选「中国大陆镜像源」,点安装。
53
+
54
+ ### 方式 A:克隆 + 一条命令
55
+
56
+ ```bash
57
+ git clone https://github.com/Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant.git
58
+ cd dsh-convey-assistant
59
+ node scripts/install.mjs # 默认装 desktop profile;换 profile 用 --profile web
60
+ ```
61
+
62
+ 脚本会:备份 profile 的 `package.json` → 调 `dsh plugin add` 装依赖 → 把包名写进 `dsh.profile.bundles` 启用它。
63
+ 先看看它会做什么:`node scripts/install.mjs --dry-run`。
64
+
65
+ ### 方式 B:直接从 GitHub 装
66
+
67
+ ```bash
68
+ dsh plugin --profile desktop add github:Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant
69
+ ```
70
+
71
+ (装完同样要手动把 `dsh-convey-assistant` 加进 profile 的 `dsh.profile.bundles`,否则 DSH 不会装配它 —— 用方式 A 就不用管这步。)
72
+
73
+ ### 方式 C:GUI 里装
74
+
75
+ **设置 → 插件 → 添加插件**,粘贴仓库地址 `https://github.com/Astra-Ursae-Majoris/dsh-plugin-conveyor-assistant`,点「安装」。
76
+
77
+ 如果装完刷新后毫无反应,检查 profile 的 `package.json` 里 `dsh.profile.bundles` 是否包含 `dsh-convey-assistant`(GUI 一般会自动加;没加就手动补上再刷新)。
78
+
79
+ > 装完**刷新页面**即可;按钮没出现就重启一次 DSH(新增 bundle 有时需要重新装配宿主侧)。
80
+
81
+ ## 怎么用
82
+
83
+ 1. 在输入框写完草稿;
84
+ 2. 点工具栏的 **✨**;
85
+ 3. 卡片里并排给出**原文**与**结果**,结果可以直接编辑;有歧义时卡片下方会有一句追问,
86
+ 你补一句点「重新编译」,她带着你的补充重跑;
87
+ 4. 满意了点「确认写回」替换草稿 —— **发送仍然由你自己点**。
88
+
89
+ ![她的小设置面板](docs/panel.png)
90
+
91
+ ## 常驻的大肥鱼
92
+
93
+ 输入框下方的开关「**让大肥鱼常驻**」,**默认开启**。
94
+
95
+ - 鼠标不动时,她在对话区的空白处慢慢游荡、偶尔跳一下;**你一移动鼠标她就立刻定格**等你操作。
96
+ - 鼠标**滑到她身上**,她会问:「主人,你要配置一下我吗?」点开是她的设置面板:
97
+
98
+ | 设置项 | 说明 |
99
+ |---|---|
100
+ | **模型** | 默认「跟随当前对话」。也可以单次指定一个模型 —— **只影响这次改写,不改变你会话用的模型**。 |
101
+ | **说话方式** | 「先听我说完」(只做结构化) / 「猜猜我到底想要什么」(读意图重写,默认) |
102
+ | **活动许可** | 「你可以放松了,到处跑跑吧~」/「呆住,不准动」 |
103
+ | 关掉常驻 | 她就下班了;再拨回来她会**重新登场** |
104
+
105
+ 她永远**不会挡住输入框和发送键**(活动区按输入卡片的位置动态计算),也不抢焦点、不拦键盘。
106
+
107
+ ## 隐私
108
+
109
+ 这是本项目的第一优先级,而且是可以核对的:
110
+
111
+ | 问题 | 回答 |
112
+ |---|---|
113
+ | 谁会看到我的草稿 | 只有你**在 DSH 里选的模型**。插件没有自带 API key,也不连任何第三方端点。 |
114
+ | 网络出口 | 浏览器 → 本机一个受认证路由 → 你的模型。**只有这一条**。 |
115
+ | 这次改写会进会话记录吗 | **不会**。不写会话事件、不传 sessionId、不写 JSONL、不计入 token 统计。 |
116
+ | 遥测 / 埋点 | **没有**。 |
117
+ | 草稿会进日志吗 | **不会**。不进 error message、不进 console、不进 `~/.dsh/logs`。 |
118
+ | 插件自己存草稿吗 | **不存**。只在内存里。 |
119
+ | 我自己选的模型会被记住吗 | 只记 `provider/model` 两个字符串(localStorage),不含任何对话内容。 |
120
+
121
+ **诚实的边界**(不假装能消掉):
122
+
123
+ - 你选的模型提供方当然会收到发出去的那段文本 —— 这是它工作的前提;
124
+ - 如果你配置了 HTTPS 代理,代理能看到连接元数据(TLS 载荷对它不可见);
125
+ - 同一 Host 进程内的其它插件理论上可以 hook LLM 流 —— 这是 harness 的信任边界;
126
+ - DSH 自身本来就会把草稿明文存在 Electron localStorage 里(键 `dsh.conversation.<sessionId>`),本插件**没有新增**任何本地存储。
127
+
128
+ ## 兼容性
129
+
130
+ - DSH `>= 0.2.2-rc.5 < 0.3.0`(在 0.2.2-rc.5 上开发与测试)
131
+ - 桌面端与 Web GUI 均可(需要同源的 `/api` 路由)
132
+ - Windows / macOS / Linux 都可装(安装脚本是 Node,另外附带 PowerShell 版本)
133
+
134
+ ## 卸载
135
+
136
+ ```bash
137
+ node scripts/uninstall.mjs --profile desktop
138
+ ```
139
+
140
+ 会 `dsh plugin remove` + 从 bundles 移除 + 删残留 + 恢复安装前的 `package.json` 备份,能回到装之前的状态。
141
+
142
+ ## 开发
143
+
144
+ ```bash
145
+ npm install
146
+ npm run build # 产出 lib/index.js(宿主)+ lib/client.js(浏览器)
147
+ npm run typecheck # 对 DSH 0.2.2-rc.5 的真实类型
148
+ npm run verify # 发布前自检(含 npm pack 内容检查)
149
+ npm run smoke # 运行时冒烟(宿主可 import、client 只 require 共享表词汇)
150
+ ```
151
+
152
+ `lib/` 是构建产物且**必须提交** —— 这是"克隆即可用"的前提。目录说明与贡献指南见 [CONTRIBUTING.md](CONTRIBUTING.md)。
153
+
154
+ ## 许可
155
+
156
+ MIT
@@ -0,0 +1,7 @@
1
+ # dsh-convey-assistant —— 插件装配层
2
+ # 宿主半边:lib/index.js 注册 /api/dsh-convey-assistant/rewrite 受认证路由
3
+ # 客户端半边:lib/client.js 由 dsh.client 声明,在输入框加入按钮与意图卡片
4
+ - insert:
5
+ - id: convey-assistant
6
+ name: 'dsh-convey-assistant'
7
+ config: {}
package/icon.svg ADDED
@@ -0,0 +1,17 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="dsh-convey-assistant">
2
+ <defs>
3
+ <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0%" stop-color="#6d5efc"/>
5
+ <stop offset="100%" stop-color="#2fb6ff"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="16" y="16" width="224" height="224" rx="52" fill="url(#g)"/>
9
+ <path d="M64 88c0-13.3 10.7-24 24-24h80c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24h-40l-28 24v-24h-12c-13.3 0-24-10.7-24-24V88z" fill="#ffffff" opacity="0.95"/>
10
+ <g stroke="#4a5bd6" stroke-width="9" stroke-linecap="round">
11
+ <line x1="88" y1="92" x2="168" y2="92"/>
12
+ <line x1="88" y1="116" x2="152" y2="116"/>
13
+ <line x1="88" y1="140" x2="136" y2="140"/>
14
+ </g>
15
+ <circle cx="184" cy="184" r="30" fill="#ffffff"/>
16
+ <path d="M184 168v32M168 184h32" stroke="#6d5efc" stroke-width="10" stroke-linecap="round"/>
17
+ </svg>