@kirkchinese/dsh-citeciter 0.3.1 → 0.4.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.
- package/README.md +22 -7
- package/README.zh.md +22 -7
- package/lib/client.js +991 -14838
- package/lib/index.js +14960 -90
- package/lib/{topic-BfAp9KoS.js → topic-DByv84H6.js} +52 -15
- package/lib/{typert-common-DXguoziV.js → typert-common-Bvx1k2cq.js} +1 -1
- package/lib/typert.host.js +2 -2
- package/lib/typert.remote-client.js +1 -1
- package/lib/types/citation-mapping.d.ts +17 -0
- package/lib/types/client/companion-controller.d.ts +18 -6
- package/lib/types/client/components/CitePanel.d.ts +2 -1
- package/lib/types/client/prompt.d.ts +7 -0
- package/lib/types/client/response-guard.d.ts +1 -1
- package/lib/types/client/selection.d.ts +3 -3
- package/lib/types/client/types.d.ts +1 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/observer.d.ts +3 -1
- package/lib/types/topic-runtime.d.ts +56 -2
- package/lib/types/topic.d.ts +61 -3
- package/lib/types/typert-common.d.ts +35 -2
- package/lib/types/typert.host.d.ts +76 -4
- package/package.json +76 -74
package/README.md
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
# `@kirkchinese/dsh-citeciter`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ask about any line in a DSH response—without stopping the agent or changing the source session. CiteCiter is a source-bound, read-only learning companion for sustained side questions.
|
|
4
|
+
|
|
5
|
+

|
|
4
6
|
|
|
5
7
|
[简体中文](README.zh.md) · [GitHub](https://github.com/kirkchinese/CiteCiter) · [Issues](https://github.com/kirkchinese/CiteCiter/issues)
|
|
6
8
|
|
|
9
|
+
## Compatibility
|
|
10
|
+
|
|
11
|
+
| Host | CiteCiter version | Status |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| DSH Web `0.1.1-rc.2` | `0.4.x` | Fully verified |
|
|
14
|
+
| [dataelement DSH Desktop](https://github.com/dataelement/dsh-desktop) development shell with DSH `0.1.1-rc.1` | `0.4.x` | Linux source-shell verified; not a macOS/Windows installer claim |
|
|
15
|
+
| DSH Web `0.1.0-rc.7` | `0.3.2` | Previous stable line |
|
|
16
|
+
| DSH TUI | — | Not supported yet |
|
|
17
|
+
|
|
7
18
|
## Install
|
|
8
19
|
|
|
9
|
-
CiteCiter requires Node.js `^22.19.0 || >=24.0.0`, DSH
|
|
20
|
+
CiteCiter 0.4.0 requires Node.js `^22.19.0 || >=24.0.0`, DSH `>=0.1.1-rc.1 <0.1.1-rc.3`, and a configured model provider.
|
|
10
21
|
|
|
11
22
|
```sh
|
|
12
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
23
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.4.0
|
|
13
24
|
```
|
|
14
25
|
|
|
15
26
|
Restart the corresponding DSH Web process and refresh the page after installation or upgrade.
|
|
@@ -27,10 +38,12 @@ Restart the corresponding DSH Web process and refresh the page after installatio
|
|
|
27
38
|
- **Model-call citations.** Start as soon as an `assistant/message` is committed; there is no need to wait for the full Agent turn.
|
|
28
39
|
- **Private Topics.** Each submission creates an independent DSH Session under `$DSH_HOME/citeciter/`, outside the ordinary Session list.
|
|
29
40
|
- **Precise selections.** Visible Markdown selections map back to Host-verifiable source ranges.
|
|
41
|
+
- **Cross-flow selections.** A range spanning reasoning, tools, and body text binds to its final committed assistant call while retaining the complete visible quote in the learning workspace.
|
|
30
42
|
- **Bound evidence.** `read_source_session` reads committed events from one fixed source Session without exposing its physical log path.
|
|
31
43
|
- **Open-ended investigation.** The standard read-only `glob` and `grep` tools discover project files and search their contents before `read` opens a known path.
|
|
32
44
|
- **Read-only operation.** CiteCiter cannot write to the source Session or source workspace.
|
|
33
45
|
- **Inspectable workflow.** Live reasoning, prompt injections, tool calls, results, and user questions use compact expandable rows inside the learning dock.
|
|
46
|
+
- **Natural follow-ups.** After the first answer, the model may emit three strictly formatted next questions; malformed output creates no shortcuts and is logged silently.
|
|
34
47
|
- **Native workflow.** The selection popover, resizable learning dock, active/archive Topic navigation, and settings remain inside the DSH programming interface.
|
|
35
48
|
|
|
36
49
|
## Context modes
|
|
@@ -39,21 +52,23 @@ Observer is the default. It creates an independent Topic and reads committed sou
|
|
|
39
52
|
|
|
40
53
|
Exact Fork is an advanced mode for a source turn that has already ended. `exact-when-available` uses Exact Fork when a stable boundary exists and otherwise falls back to Observer.
|
|
41
54
|
|
|
42
|
-
## Upgrade from
|
|
55
|
+
## Upgrade from an earlier version
|
|
43
56
|
|
|
44
57
|
```sh
|
|
45
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
58
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.4.0
|
|
46
59
|
dsh plugin --profile web list --depth 0
|
|
47
60
|
```
|
|
48
61
|
|
|
49
|
-
|
|
62
|
+
Upgrading from v0.3 does not migrate or rewrite existing Topics, settings, or source Sessions. Users remaining on DSH `0.1.0-rc.7` should keep CiteCiter 0.3.2.
|
|
50
63
|
|
|
51
64
|
## Limitations
|
|
52
65
|
|
|
53
|
-
- A selection must
|
|
66
|
+
- A selection must include at least one committed assistant model call. User-only ranges, tool-only ranges, and still-streaming fragments cannot anchor a Citation.
|
|
54
67
|
- Renderer-generated KaTeX layout and footnote numbers cannot be cited directly because they lack stable source coordinates.
|
|
55
68
|
- Exact Fork cannot start from an open source turn.
|
|
56
69
|
- Source-file access depends on the running DSH filesystem service and remains read-only.
|
|
70
|
+
- Desktop validation covers dataelement's Linux development shell; it does not claim packaged macOS or Windows installer testing.
|
|
71
|
+
- There is currently no TUI interaction adapter.
|
|
57
72
|
- DSH is prerelease software; later DSH API versions may require a CiteCiter update.
|
|
58
73
|
|
|
59
74
|
## Contributing
|
package/README.zh.md
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
# `@kirkchinese/dsh-citeciter`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
在 DSH 回复里划一句,旁边追问;主 Agent 继续工作,来源 Session 保持不变。CiteCiter 是与精确原文绑定、只读、可持续多轮追问的学习伴侣。
|
|
4
|
+
|
|
5
|
+

|
|
4
6
|
|
|
5
7
|
[English](README.md) · [GitHub](https://github.com/kirkchinese/CiteCiter) · [问题反馈](https://github.com/kirkchinese/CiteCiter/issues)
|
|
6
8
|
|
|
9
|
+
## 兼容性
|
|
10
|
+
|
|
11
|
+
| 宿主 | CiteCiter 版本 | 状态 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| DSH Web `0.1.1-rc.2` | `0.4.x` | 完整验证 |
|
|
14
|
+
| [dataelement DSH Desktop](https://github.com/dataelement/dsh-desktop) 源码开发壳(内置 DSH `0.1.1-rc.1`) | `0.4.x` | Linux 源码壳验证;不代表 macOS/Windows 安装器实测 |
|
|
15
|
+
| DSH Web `0.1.0-rc.7` | `0.3.2` | 旧版稳定线 |
|
|
16
|
+
| DSH TUI | — | 暂不支持 |
|
|
17
|
+
|
|
7
18
|
## 安装
|
|
8
19
|
|
|
9
|
-
CiteCiter 需要 Node.js `^22.19.0 || >=24.0.0`、DSH
|
|
20
|
+
CiteCiter 0.4.0 需要 Node.js `^22.19.0 || >=24.0.0`、DSH `>=0.1.1-rc.1 <0.1.1-rc.3`,以及已经配置的模型提供方。
|
|
10
21
|
|
|
11
22
|
```sh
|
|
12
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
23
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.4.0
|
|
13
24
|
```
|
|
14
25
|
|
|
15
26
|
安装或升级后,请重启对应的 DSH Web 进程并刷新页面。
|
|
@@ -27,10 +38,12 @@ dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.3.1
|
|
|
27
38
|
- **模型调用级引用。** `assistant/message` 一经提交即可开始,无需等待整个 Agent 轮次结束。
|
|
28
39
|
- **私有 Topic。** 每次提交都会在 `$DSH_HOME/citeciter/` 下创建独立 DSH Session,不进入普通 Session 列表。
|
|
29
40
|
- **精确选区。** 可见 Markdown 选区会映射回 Host 可复验的原文范围。
|
|
41
|
+
- **跨流程选区。** 同时选中思考、工具与正文时,以选区中最后一个已提交模型回答作为可复验锚点,完整可见选区仍保留在学习栏中。
|
|
30
42
|
- **绑定来源的证据。** `read_source_session` 只读取一个固定来源 Session 的已提交事件,不暴露物理日志路径。
|
|
31
43
|
- **开放式项目调查。** 标准只读 `glob` 与 `grep` 先发现项目文件并搜索内容,再由 `read` 打开已知路径。
|
|
32
44
|
- **只读运行。** CiteCiter 不能写入来源 Session 或来源工作区。
|
|
33
45
|
- **可检查的对话流程。** 实时思考、提示词注入、工具调用、结果和用户提问都在学习栏中以紧凑可展开行显示。
|
|
46
|
+
- **自然续问。** 第一轮回答完成后,模型可按严格格式给出三个后续问题;格式无效时前端不创建快捷入口,只记录日志。
|
|
34
47
|
- **原生工作流。** 选区浮层、可调宽学习栏、活动/归档 Topic 导航和设置都保留在 DSH 编程界面内。
|
|
35
48
|
|
|
36
49
|
## 上下文模式
|
|
@@ -39,21 +52,23 @@ Observer 是默认模式。它创建独立 Topic,并按需读取已经提交
|
|
|
39
52
|
|
|
40
53
|
Exact Fork 是面向已结束来源轮次的高级模式。`exact-when-available` 在存在稳定边界时使用 Exact Fork,否则回退到 Observer。
|
|
41
54
|
|
|
42
|
-
##
|
|
55
|
+
## 从旧版本升级
|
|
43
56
|
|
|
44
57
|
```sh
|
|
45
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
58
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.4.0
|
|
46
59
|
dsh plugin --profile web list --depth 0
|
|
47
60
|
```
|
|
48
61
|
|
|
49
|
-
|
|
62
|
+
从 v0.3 升级不会迁移或重写现有 Topic、设置或来源 Session。仍在 DSH `0.1.0-rc.7` 上运行的用户应继续使用 CiteCiter 0.3.2。
|
|
50
63
|
|
|
51
64
|
## 已知限制
|
|
52
65
|
|
|
53
|
-
-
|
|
66
|
+
- 选区中必须至少包含一个已经提交的助手模型回答;纯用户消息、纯工具行和仍在流式输出的片段不能作为引用锚点。
|
|
54
67
|
- 渲染器生成的 KaTeX 排版和脚注编号没有稳定原文坐标,不能直接引用。
|
|
55
68
|
- Exact Fork 不能从仍在运行的来源轮次开始。
|
|
56
69
|
- 来源文件访问依赖当前 DSH 文件系统服务,并始终保持只读。
|
|
70
|
+
- Desktop 验证覆盖 dataelement 项目的 Linux 源码开发壳;尚未宣称 macOS 或 Windows 安装器实测。
|
|
71
|
+
- 当前没有 TUI 交互适配器。
|
|
57
72
|
- DSH 仍处于预发布阶段,后续 API 版本可能要求同步更新 CiteCiter。
|
|
58
73
|
|
|
59
74
|
## 参与贡献
|