@kirkchinese/dsh-citeciter 0.9.0-beta.1 → 0.9.0-beta.2
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 +16 -14
- package/README.zh.md +16 -14
- package/lib/client.js +1808 -1001
- package/lib/index.js +43 -8
- package/lib/{typert-common-BRv6PLDv.js → typert-common-g1lnIG8u.js} +1 -1
- package/lib/typert.host.js +2 -2
- package/lib/typert.remote-client.js +1 -1
- package/lib/types/actions.d.ts +18 -5
- package/lib/types/client/action-controller.d.ts +9 -2
- package/lib/types/client/action-executor.d.ts +5 -1
- package/lib/types/client/companion-controller.d.ts +14 -5
- package/lib/types/client/components/{WheelSettings.d.ts → ActionSettings.d.ts} +2 -2
- package/lib/types/client/components/ActionWheel.d.ts +4 -4
- package/lib/types/client/components/CiteCiterSettings.d.ts +1 -1
- package/lib/types/client/components/CiteLauncher.d.ts +7 -2
- package/lib/types/client/components/CitePanel.d.ts +4 -1
- package/lib/types/client/components/CiterPet.d.ts +10 -0
- package/lib/types/client/components/DocumentReader.d.ts +2 -4
- package/lib/types/client/components/LearningRoute.d.ts +3 -4
- package/lib/types/client/components/ModelChoice.d.ts +7 -3
- package/lib/types/client/components/ReferenceAttachments.d.ts +6 -2
- package/lib/types/client/components/SelectionToolbar.d.ts +19 -0
- package/lib/types/client/components/ToolMessage.d.ts +1 -1
- package/lib/types/client/components/TopicActions.d.ts +15 -4
- package/lib/types/client/components/TopicHeader.d.ts +8 -3
- package/lib/types/client/components/TopicNavigation.d.ts +4 -4
- package/lib/types/client/components/TopicTitle.d.ts +6 -2
- package/lib/types/client/components/UserMessageBody.d.ts +2 -1
- package/lib/types/client/draft-references.d.ts +6 -0
- package/lib/types/client/host-icons.d.ts +1 -1
- package/lib/types/client/selection-toolbar.d.ts +36 -0
- package/lib/types/client/tool-presentation.d.ts +14 -0
- package/lib/types/client/wheel-gesture.d.ts +6 -1
- package/lib/types/host-agent-modules.d.ts +12 -2
- package/lib/types/topic.d.ts +17 -0
- package/lib/{update-DDut5jKW.js → update-B_0nN1_f.js} +34 -16
- package/package.json +3 -1
- package/lib/types/client/components/TopicSettingsDialog.d.ts +0 -19
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# CiteCiter
|
|
2
2
|
|
|
3
|
-
[简体中文](README.zh.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [Changelog](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.
|
|
3
|
+
[简体中文](README.zh.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [Changelog](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/CHANGELOG.md) · [Issues](https://github.com/kirkchinese/CiteCiter/issues)
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
**The AI finished the task. I still want to understand how it did it.**
|
|
8
8
|
|
|
9
9
|
CiteCiter is a [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) plugin that helps you learn from your agent's real work. Select part of a conversation, a tool result or a document, ask about it in a separate Topic that keeps its source, use a blackboard to see how the pieces relate, then return to your work. The main conversation is never modified.
|
|
10
10
|
|
|
11
|
-
[](https://www.bilibili.com/video/BV1tqeA65EJ8/)
|
|
12
12
|
|
|
13
13
|
[Watch the demo on Bilibili](https://www.bilibili.com/video/BV1tqeA65EJ8/) (recorded with an earlier version; the interface has changed slightly).
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ CiteCiter needs DSH and a working model. The plugin declares exact host versions
|
|
|
18
18
|
|
|
19
19
|
| DSH version | CiteCiter version |
|
|
20
20
|
| --- | --- |
|
|
21
|
-
| `0.2.0-rc.2` (including the official Desktop), `0.2.1-alpha.1`, `0.2.1-alpha.2` | `0.9.0-beta.
|
|
21
|
+
| `0.2.0-rc.2` (including the official Desktop), `0.2.1-alpha.1`, `0.2.1-alpha.2` | `0.9.0-beta.2` |
|
|
22
22
|
| `0.1.7-rc.2` | `0.9.0-alpha.3` |
|
|
23
23
|
| `0.1.5-rc.1` | `0.8.2` |
|
|
24
24
|
| `0.1.2-rc.1` | `0.6.0` |
|
|
@@ -28,13 +28,13 @@ CiteCiter needs DSH and a working model. The plugin declares exact host versions
|
|
|
28
28
|
**CLI and Web:**
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.9.0-beta.
|
|
31
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.9.0-beta.2
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
You can also install a release tag straight from the repository, which contains the built plugin, so nothing is built at install time:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v0.9.0-beta.
|
|
37
|
+
dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v0.9.0-beta.2"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
Restart DSH and refresh the page after installing or upgrading. Do not use `dsh plugin allow-version` to force a plugin that does not match your host version. Do not run two host processes on the same DSH home.
|
|
@@ -43,12 +43,12 @@ Restart DSH and refresh the page after installing or upgrading. Do not use `dsh
|
|
|
43
43
|
|
|
44
44
|
Say your agent changed some code and you wonder: "Why does this async save affect typing?"
|
|
45
45
|
|
|
46
|
-
1. Select the relevant text in the conversation, a tool result or a document
|
|
47
|
-
2.
|
|
46
|
+
1. Select the relevant text in the conversation, a tool result or a document; the Citer toolbar appears next to it.
|
|
47
|
+
2. Click 解释 (explain) to get an explanation right away, or 提问 (ask) to put the source and the excerpt into the composer as removable attachments, write your own question and send it.
|
|
48
48
|
3. Keep asking about the material; when it helps, have the model draw the flow on the blackboard or summarize learning cards.
|
|
49
49
|
4. Go back to the task and check your understanding against the code, a tool result or a small experiment.
|
|
50
50
|
|
|
51
|
-
Creating a Topic or choosing
|
|
51
|
+
Creating a Topic or choosing 提问 only prepares a draft; preset actions such as 解释 and 翻译 send when you choose them, or only fill the composer if you change that in Settings. Explanations and boards can still be wrong; they help you understand and check, not replace evidence.
|
|
52
52
|
|
|
53
53
|
## Features
|
|
54
54
|
|
|
@@ -63,21 +63,23 @@ Creating a Topic or choosing a wheel action only prepares a draft; the model run
|
|
|
63
63
|
|
|
64
64
|
## Using CiteCiter
|
|
65
65
|
|
|
66
|
-
**
|
|
66
|
+
**Toolbar and actions.** After you select text, a toolbar appears next to it: the first four actions are shown directly, and the rest plus 在新 Topic 中提问 (ask in a new Topic) are under "⋯". Actions go to the open Topic by default, or create one when there is none or it is archived. 提问 opens the composer for your own question; preset actions such as 解释, 找错误 and 翻译 send directly without touching an existing draft. Action names, prompts and order are configurable in Settings. If you prefer gestures, turn on the wheel in Settings: hold the right mouse button (or the chosen key) after selecting text, move to an action and release.
|
|
67
|
+
|
|
68
|
+
**Desktop pet.** While Citer is closed, its mascot peeks over the window edge; she stands up when the pointer comes near, and a click opens Citer. Drag her to either side at any height and the place is remembered. A small dot appears next to her when an answer finishes or a question waits for you while Citer is closed.
|
|
67
69
|
|
|
68
70
|
**Composer.** The composer offers attachments, permission mode, model and reasoning effort, and Send. Enter sends, Shift + Enter adds a line, and Enter never sends during IME composition. While a reply is generating, Enter follows DSH's queue/steer preference and Ctrl + Enter uses the other one. Add files from the attachment menu, paste images, or drop files onto the Citer panel.
|
|
69
71
|
|
|
70
72
|
**Drafts.** Drafts save silently in the background. Edits to the same Topic from several windows merge automatically; where they overlap, the window you are typing in wins. After a successful send, only what was sent is cleared, and anything written meanwhile is kept.
|
|
71
73
|
|
|
72
|
-
**Learning route and cards.** The learning route is off by default; when on, the model plans its explanation with DSH todos. You can ask for learning cards at any time; the model checks conclusions, conditions and calculations first, but self-checking does not guarantee correctness. Active recall is off by default; when on, cards show their self-test question first.
|
|
74
|
+
**Learning route and cards.** The learning route is off by default and can be turned on in the Topic menu (⋯); when on, the model plans its explanation with DSH todos. You can ask for learning cards at any time; the model checks conclusions, conditions and calculations first, but self-checking does not guarantee correctness. Active recall is off by default; when on, cards show their self-test question first.
|
|
73
75
|
|
|
74
|
-
**
|
|
76
|
+
**Codex Connect.** CiteCiter is adapted to the community plugin [Codex Connect](https://github.com/franksong2702/dsh-codex-connect) (`dsh-codex-connect`). With it installed and enabled in the same profile, Topics can use its ChatGPT / Codex models and GPT Image tools, and generated images appear under the tool card. Its image tools are enabled separately in Codex Connect's settings; see its documentation for installation, sign-in and supported DSH versions.
|
|
75
77
|
|
|
76
78
|
## Permissions and data
|
|
77
79
|
|
|
78
80
|
New Topics are **read-only** by default, even when the source session has more permissions. A Topic can change the workspace only after you choose another permission mode in the composer or change the default for new Topics in Settings; DSH approvals and sandboxing still apply.
|
|
79
81
|
|
|
80
|
-
Topics appear only in the Citer list, never in DSH's session list.
|
|
82
|
+
Topics appear only in the Citer list, never in DSH's session list. A new Topic starts with the excerpt or question as its title, and DSH's title service summarizes it on the first answer; rename it by double-clicking the title, pressing F2 or using the Topic menu, after which the title no longer changes on its own; an archived Topic returns to the list when you send to it again. Permanent deletion asks for the full Session ID and removes only that Topic's records, drafts and attachments.
|
|
81
83
|
|
|
82
84
|
CiteCiter stores its data in each source session's directory:
|
|
83
85
|
|
|
@@ -113,6 +115,6 @@ CiteCiter turns real AI work into material you can cite, question and check. Sta
|
|
|
113
115
|
|
|
114
116
|
Bring a task where "the agent finished, but I still can't explain it" to the [issue tracker](https://github.com/kirkchinese/CiteCiter/issues). Include your DSH and plugin versions and whether you got stuck installing, citing and asking, or understanding the answer. Remove keys and private content before pasting material.
|
|
115
117
|
|
|
116
|
-
See [CONTRIBUTING.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.
|
|
118
|
+
See [CONTRIBUTING.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/CONTRIBUTING.md) for development and [docs/product.zh.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/docs/product.zh.md) (Chinese) for the product rules. [Claude2DSH](https://github.com/kirkchinese/claude2dsh), by the same author, migrates sessions and assets between Claude Code and DSH.
|
|
117
119
|
|
|
118
120
|
MIT License.
|
package/README.zh.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# CiteCiter
|
|
2
2
|
|
|
3
|
-
[English](README.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [更新记录](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.
|
|
3
|
+
[English](README.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [更新记录](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/CHANGELOG.md) · [问题反馈](https://github.com/kirkchinese/CiteCiter/issues)
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
**AI 已经完成了任务,我还想弄明白它是怎么做的。**
|
|
8
8
|
|
|
9
9
|
CiteCiter 是 [DeepSeek Harness(DSH)](https://github.com/deepseek-ai/deepseek-harness) 的插件,帮助你从 Agent 的真实工作中学习。选中对话、工具结果或文档中的一段内容,在保留来源的独立 Topic 里追问,用小黑板理解关键关系,再回到原来的工作。主对话不会被改动。
|
|
10
10
|
|
|
11
|
-
[](https://www.bilibili.com/video/BV1tqeA65EJ8/)
|
|
12
12
|
|
|
13
13
|
[在 B 站观看演示](https://www.bilibili.com/video/BV1tqeA65EJ8/)(早期版本录制,界面与当前版本略有不同)。
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ CiteCiter 需要 DSH 和一个可用的模型。插件声明了精确的宿主
|
|
|
18
18
|
|
|
19
19
|
| DSH 版本 | CiteCiter 版本 |
|
|
20
20
|
| --- | --- |
|
|
21
|
-
| `0.2.0-rc.2`(含官方桌面版)、`0.2.1-alpha.1`、`0.2.1-alpha.2` | `0.9.0-beta.
|
|
21
|
+
| `0.2.0-rc.2`(含官方桌面版)、`0.2.1-alpha.1`、`0.2.1-alpha.2` | `0.9.0-beta.2` |
|
|
22
22
|
| `0.1.7-rc.2` | `0.9.0-alpha.3` |
|
|
23
23
|
| `0.1.5-rc.1` | `0.8.2` |
|
|
24
24
|
| `0.1.2-rc.1` | `0.6.0` |
|
|
@@ -28,13 +28,13 @@ CiteCiter 需要 DSH 和一个可用的模型。插件声明了精确的宿主
|
|
|
28
28
|
**命令行与 Web:**
|
|
29
29
|
|
|
30
30
|
```sh
|
|
31
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.9.0-beta.
|
|
31
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.9.0-beta.2
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
也可以从仓库安装某个发布标签,仓库内已包含构建好的插件,安装时无需构建:
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
|
-
dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v0.9.0-beta.
|
|
37
|
+
dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v0.9.0-beta.2"
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
安装或升级后重启 DSH 并刷新页面。不要用 `dsh plugin allow-version` 强行加载与宿主版本不匹配的插件。同一个 DSH 主目录不要同时运行两个宿主进程。
|
|
@@ -43,12 +43,12 @@ dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v
|
|
|
43
43
|
|
|
44
44
|
例如,Agent 修改了程序,你想知道"为什么这段异步保存逻辑会影响输入?"
|
|
45
45
|
|
|
46
|
-
1.
|
|
47
|
-
2.
|
|
46
|
+
1. 在主对话、工具结果或文档中选中相关内容,旁边会出现 Citer 工具条。
|
|
47
|
+
2. 点"解释"直接得到讲解;或者点"提问",来源和选文会作为可移除的附件放进输入框,写下自己的问题后发送。
|
|
48
48
|
3. 围绕这段材料继续追问;需要时让模型在小黑板上画出流程,或整理成学习卡。
|
|
49
49
|
4. 回到原任务,用代码、工具结果或一次小实验检查自己的理解。
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
新建 Topic 或选择"提问"只会准备草稿;"解释""翻译"这类预设动作在你点选时发送,也可以在设置里改成先放进输入框。解释和板书仍可能出错;它们帮助你理解和检查,不代替事实证据。
|
|
52
52
|
|
|
53
53
|
## 功能
|
|
54
54
|
|
|
@@ -63,21 +63,23 @@ dsh plugin --profile web add "git+https://github.com/kirkchinese/CiteCiter.git#v
|
|
|
63
63
|
|
|
64
64
|
## 使用说明
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
**工具条与动作。** 选中文字后,旁边出现工具条:前四个动作直接显示,其余动作和"在新 Topic 中提问"在"⋯"里。动作默认加入当前打开的 Topic,没有或已归档时新建。"提问"打开输入框让你写问题;"解释""找错误""翻译"等预设动作直接发送,不会改动输入框里已有的草稿。动作的名称、提示词和顺序都可以在设置中修改。喜欢手势的话,可以在设置中开启轮盘:选中文字后按住右键(或设定的键)移向动作,松开即执行。
|
|
67
|
+
|
|
68
|
+
**桌宠。** Citer 收起时,她会扒在窗口边缘探头;鼠标靠近时站起来,点一下就打开 Citer。可以把她拖到左边或右边的任意高度,位置会被记住。收起期间有回答完成,或有问题在等你回答时,她旁边会出现一个小圆点。
|
|
67
69
|
|
|
68
70
|
**输入。** 输入框依次提供附件、权限模式、模型与思考强度、发送。Enter 发送,Shift + Enter 换行,输入法组词时 Enter 不会发送。生成过程中 Enter 跟随 DSH 的排队/插话设置,Ctrl + Enter 临时使用另一种方式。可以从附件菜单选择文件、粘贴图片,或把文件拖到 Citer 面板上。
|
|
69
71
|
|
|
70
72
|
**草稿。** 草稿在后台静默保存。多个窗口编辑同一个 Topic 时,各自的修改会自动合并;同一处有冲突时,以正在输入的窗口为准。发送成功后只清除已发送的部分,发送期间新写的内容会保留。
|
|
71
73
|
|
|
72
|
-
**学习路线与学习卡。**
|
|
74
|
+
**学习路线与学习卡。** 学习路线默认关闭,可以在 Topic 菜单(⋯)中开启;开启后,模型会根据问题用 DSH 待办安排讲解步骤。学习卡可以随时单独请求,生成前模型会核对结论、条件和计算,但自查不能保证正确。主动回忆默认关闭,开启后学习卡先显示自测问题。
|
|
73
75
|
|
|
74
|
-
|
|
76
|
+
**Codex Connect。** CiteCiter 适配了社区插件 [Codex Connect](https://github.com/franksong2702/dsh-codex-connect)(`dsh-codex-connect`)。在同一个 Profile 中安装并开启它之后,Topic 可以使用它接入的 ChatGPT / Codex 模型和 GPT Image 图片工具,生成的图片直接显示在工具卡下方。图片工具需要在 Codex Connect 的设置中单独开启;它的安装、登录和支持的 DSH 版本请见该插件的说明。
|
|
75
77
|
|
|
76
78
|
## 权限与数据
|
|
77
79
|
|
|
78
80
|
新 Topic 默认**只读**,即使来源会话拥有更高权限。只有你在输入框中选择其他权限模式,或在设置里修改新 Topic 的默认权限后,Topic 才能修改工作区;DSH 的审批和沙箱规则照常生效。
|
|
79
81
|
|
|
80
|
-
Topic 只出现在 Citer 的列表里,不会出现在 DSH
|
|
82
|
+
Topic 只出现在 Citer 的列表里,不会出现在 DSH 的会话列表中。新 Topic 先以引用摘录或问题为标题,第一次回答时由 DSH 的标题服务生成摘要标题;双击标题、按 F2 或在 Topic 菜单中重命名,重命名后不再自动修改;归档的 Topic 在你再次发送消息后自动恢复。永久删除需要输入完整的 Session ID,只删除这个 Topic 自己的记录、草稿和附件。
|
|
81
83
|
|
|
82
84
|
CiteCiter 的数据保存在每个来源会话的目录中:
|
|
83
85
|
|
|
@@ -113,6 +115,6 @@ CiteCiter 尝试把真实的 AI 工作过程变成可引用、可追问、可检
|
|
|
113
115
|
|
|
114
116
|
欢迎带着"Agent 已经完成了,但我还讲不清"的任务来[反馈](https://github.com/kirkchinese/CiteCiter/issues)。请写明 DSH 和插件版本,以及卡在安装、引用追问还是理解回答。贴材料前请移除密钥和私人内容。
|
|
115
117
|
|
|
116
|
-
开发说明见 [CONTRIBUTING.zh.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.
|
|
118
|
+
开发说明见 [CONTRIBUTING.zh.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/CONTRIBUTING.zh.md),产品规则见 [docs/product.zh.md](https://github.com/kirkchinese/CiteCiter/blob/v0.9.0-beta.2/docs/product.zh.md)。同作者的 [Claude2DSH](https://github.com/kirkchinese/claude2dsh) 用于在 Claude Code 与 DSH 之间迁移会话和资产。
|
|
117
119
|
|
|
118
120
|
MIT License.
|