@kirkchinese/dsh-citeciter 0.6.0 → 0.8.1
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 +88 -56
- package/README.zh.md +90 -56
- package/lib/client.js +6677 -953
- package/lib/index.js +1736 -538
- package/lib/{typert-common-C6yTitXx.js → typert-common-DxE1_Bn_.js} +1 -1
- package/lib/typert.host.js +2 -2
- package/lib/typert.remote-client.js +1 -1
- package/lib/types/actions.d.ts +47 -0
- package/lib/types/board-capture.d.ts +11 -0
- package/lib/types/board.d.ts +4 -4
- package/lib/types/citation-mapping.d.ts +8 -0
- package/lib/types/citer-agent-registry.d.ts +21 -0
- package/lib/types/citer-session-access.d.ts +11 -0
- package/lib/types/citer-session-store.d.ts +7 -0
- package/lib/types/citer-session-world.d.ts +21 -0
- package/lib/types/client/action-controller.d.ts +61 -0
- package/lib/types/client/action-executor.d.ts +6 -0
- package/lib/types/client/board-capture-target.d.ts +8 -0
- package/lib/types/client/citer-session-face.d.ts +59 -0
- package/lib/types/client/compact-navigation.d.ts +3 -0
- package/lib/types/client/companion-controller.d.ts +15 -4
- package/lib/types/client/components/ActionWheel.d.ts +12 -0
- package/lib/types/client/components/BoardCaptureSurface.d.ts +8 -0
- package/lib/types/client/components/BoardView.d.ts +5 -3
- package/lib/types/client/components/ChoicePopover.d.ts +8 -0
- package/lib/types/client/components/CiteLauncher.d.ts +9 -0
- package/lib/types/client/components/CitePanel.d.ts +7 -1
- package/lib/types/client/components/CompactBackButton.d.ts +4 -0
- package/lib/types/client/components/DocumentReader.d.ts +7 -1
- package/lib/types/client/components/FileAttachments.d.ts +9 -0
- package/lib/types/client/components/FileDropHint.d.ts +5 -0
- package/lib/types/client/components/LearningCards.d.ts +12 -0
- package/lib/types/client/components/LearningRoute.d.ts +7 -0
- package/lib/types/client/components/MessageAttachments.d.ts +12 -0
- package/lib/types/client/components/MessageFile.d.ts +8 -0
- package/lib/types/client/components/ModelChoice.d.ts +10 -0
- package/lib/types/client/components/NativeInteraction.d.ts +7 -0
- package/lib/types/client/components/NativeLearningDocument.d.ts +9 -0
- package/lib/types/client/components/NativeQueue.d.ts +6 -0
- package/lib/types/client/components/OverlayPortal.d.ts +10 -0
- package/lib/types/client/components/PermissionControl.d.ts +7 -0
- package/lib/types/client/components/QuestionCard.d.ts +10 -4
- package/lib/types/client/components/ReasoningDisclosure.d.ts +5 -0
- package/lib/types/client/components/ReferenceAttachments.d.ts +6 -0
- package/lib/types/client/components/TopicActions.d.ts +6 -0
- package/lib/types/client/components/TopicComposer.d.ts +36 -0
- package/lib/types/client/components/TopicHeader.d.ts +10 -0
- package/lib/types/client/components/TopicModelControls.d.ts +9 -0
- package/lib/types/client/components/TopicNavigation.d.ts +12 -0
- package/lib/types/client/components/TopicSettingsDialog.d.ts +21 -0
- package/lib/types/client/components/TopicTitle.d.ts +6 -0
- package/lib/types/client/components/UserMessageBody.d.ts +4 -0
- package/lib/types/client/components/WheelSettings.d.ts +7 -0
- package/lib/types/client/dock-geometry.d.ts +3 -3
- package/lib/types/client/draft-references.d.ts +20 -0
- package/lib/types/client/file-download.d.ts +16 -0
- package/lib/types/client/file-drop.d.ts +18 -0
- package/lib/types/client/host-dock.d.ts +2 -2
- package/lib/types/client/learning-route.d.ts +10 -0
- package/lib/types/client/native-composer.d.ts +18 -0
- package/lib/types/client/native-document.d.ts +13 -0
- package/lib/types/client/panel-drag.d.ts +10 -0
- package/lib/types/client/reader-controller.d.ts +6 -0
- package/lib/types/client/request-guard.d.ts +3 -2
- package/lib/types/client/submission-preference.d.ts +5 -0
- package/lib/types/client/transcript-position.d.ts +6 -0
- package/lib/types/client/types.d.ts +5 -4
- package/lib/types/client/view-actions.d.ts +1 -1
- package/lib/types/client/wheel-gesture.d.ts +13 -0
- package/lib/types/document-pages.d.ts +4 -0
- package/lib/types/documents.d.ts +7 -5
- package/lib/types/host-agent-modules.d.ts +21 -0
- package/lib/types/host-session-adapter.d.ts +31 -0
- package/lib/types/index.d.ts +5 -5
- package/lib/types/learning.d.ts +72 -0
- package/lib/types/native-attachment-read.d.ts +19 -0
- package/lib/types/native-session-contract.d.ts +198 -0
- package/lib/types/native-session-read.d.ts +4 -0
- package/lib/types/owned-session-cleanup.d.ts +2 -0
- package/lib/types/service.d.ts +1 -1
- package/lib/types/session-migration.d.ts +3 -0
- package/lib/types/source-session.d.ts +7 -0
- package/lib/types/source-storage.d.ts +12 -0
- package/lib/types/topic-index.d.ts +75 -0
- package/lib/types/topic-runtime.d.ts +19 -55
- package/lib/types/topic-stream.d.ts +14 -0
- package/lib/types/topic.d.ts +301 -2
- package/lib/types/typert-common.d.ts +210 -1
- package/lib/types/typert.host.d.ts +454 -3
- package/lib/{update-C0K5ekMg.js → update-0LcFDvI5.js} +279 -13
- package/package.json +86 -78
- package/lib/types/client/components/SelectionMenu.d.ts +0 -17
package/README.md
CHANGED
|
@@ -1,99 +1,131 @@
|
|
|
1
1
|
# CiteCiter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[简体中文](README.zh.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [Issues](https://github.com/kirkchinese/CiteCiter/issues)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **0.8.0 is deprecated.** On Linux, starting DSH through a symlink can prevent Topic creation or restoration with a missing `@deepseek-ai/dsh-agent-loop` error. Upgrade to [0.8.1](https://github.com/kirkchinese/CiteCiter/releases/tag/v0.8.1).
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
CiteCiter adds a source-aware workspace to DeepSeek Harness. Create independent Topics from conversations, tool results and documents for text, programming, image and learning tasks. New Topics use native DSH Sessions, permissions, models, attachments and message queues. The source conversation continues independently.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+

|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This is an interaction diagram, not a screenshot. Selection actions prepare drafts; model work begins only after the user sends.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## Version and installation
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Current version: **0.8.1**. Baseline: DSH `0.1.5-rc.1`, [DSH Desktop](https://github.com/anywhere-labs/dsh-desktop) `2.0.9`, Node.js `^22.19.0 || >=24.0.0`. Windows acceptance uses Node 24.19.0. DSH next, alpha and TUI are separate targets.
|
|
16
|
+
|
|
17
|
+
| Version | Status | Main differences |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
| Linux / macOS | Same package | Not tested in this migration |
|
|
19
|
+
| 0.8.1 | Current version | Fix Topic startup through Linux/macOS launcher symlinks |
|
|
20
|
+
| 0.8.0 | Deprecated; upgrade to 0.8.1 | Linux launcher symlinks can prevent Topics from opening |
|
|
21
|
+
| 0.7.0-beta.3 | Previous development candidate | Private read-only Topics, selection wheel, manual five-stage learning |
|
|
22
|
+
| 0.6.0 | Published | DSH 0.1.2-rc.1 / Desktop 2.0.5 baseline |
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
Update the host CLI and install the published package:
|
|
24
25
|
|
|
25
26
|
```powershell
|
|
26
|
-
npm install -g @deepseek-ai/dsh@
|
|
27
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
28
|
-
dsh plugin --profile web list --depth 0
|
|
27
|
+
npm install -g @deepseek-ai/dsh@latest
|
|
28
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.8.1
|
|
29
29
|
dsh web
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
This installs 0.8.1. For DSH 0.1.2-rc.1 / Desktop 2.0.5, keep using @kirkchinese/dsh-citeciter@0.6.0. If npm blocks native dependency installation scripts, follow its output to allow the named dependencies and reinstall. Do not disable script restrictions globally.
|
|
33
|
+
|
|
34
|
+
In 0.8.0, launching DSH through a Linux/macOS symlink can prevent Topics from opening with a missing dsh-agent-loop error. Version 0.8.1 resolves the real CLI entry before loading host modules and retains Desktop's app.asar anchor. Native Linux Node regression passed; macOS has not been tested.
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
Build and install this branch locally:
|
|
35
37
|
|
|
36
38
|
```powershell
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
pnpm install --frozen-lockfile
|
|
40
|
+
pnpm typecheck
|
|
41
|
+
pnpm build
|
|
42
|
+
pnpm --dir packages/citeciter pack --pack-destination E:/project/CiteCiter/.refs/artifacts
|
|
43
|
+
dsh plugin --profile web add E:/project/CiteCiter/.refs/artifacts/kirkchinese-dsh-citeciter-0.8.1.tgz
|
|
39
44
|
```
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
Desktop bundles its own DSH. Run `dsh plugin add @kirkchinese/dsh-citeciter@0.8.1` in its managed terminal to upgrade the plugin, or pass an absolute local package path. Updating the global CLI does not update Desktop's embedded runtime. Restart the relevant host after installation. Do not run Web and Desktop writers against the same DSH home simultaneously.
|
|
42
47
|
|
|
43
|
-
|
|
48
|
+
## Drafts and references
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
1. Select text in the source conversation, hold the right mouse button, point at a wheel action and release. Tool results, the document reader and native file previews provide additional entry points.
|
|
51
|
+
2. Citer opens an independent draft. Source conversation/document addresses and selected excerpts appear as removable attachments. Document chips show the filename; expand them to inspect the original path and snapshot address. Click × to remove a reference; the attachment menu can add sources and excerpts again.
|
|
52
|
+
3. Review the question, references, permissions and model, then click Send or press Enter. Shift + Enter inserts a newline; Enter during IME composition does not submit.
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
Creating Topics, choosing wheel actions, changing models and quoting boards do not call a model. Actions that need a question first show an input and model choice. Other actions fill a preset question and still require manual Send. Submitted mode prompts and reference contents are recorded in the Topic's native log.
|
|
50
55
|
|
|
51
|
-
|
|
56
|
+
Removing an unsent source attachment makes its reading tool reject access; new Topics do not silently inherit source history. Previously sent references remain in conversation history: removing a later draft copy does not retract them. Drafts survive panel close/reopen, Topic switches and window blur; browser reload or client exit does not retain unsent drafts or local attachments.
|
|
52
57
|
|
|
53
|
-
|
|
54
|
-
2. Continue in the learning panel, change model/reasoning effort, and manage Topic titles, archives and deletion.
|
|
55
|
-
3. Use `+ 新 Topic` for a free question or presentation. A new source session needs its first message before the Topic can reuse its model route.
|
|
56
|
-
4. Presenter boards appear in the main workspace's “小黑板” tab. Board citations append to the current question draft.
|
|
57
|
-
5. Tool results, terminal output, diffs and the text/Markdown Reader also provide Topic entry points.
|
|
58
|
+
## Permissions, input and queue
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
New Topics start **read-only**, even when their source has full access. The input's permission menu selects native DSH read-only, workspace-write or full-access mode. Modification requires an explicit user mode choice or changed new-Topic default. DSH approval, sandbox and tool policies remain active.
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
Input controls are attachments, permission mode, model/reasoning and Send. Choose the model first, then one of its supported reasoning levels. Images and generic files use native DSH attachment services, with upload state and retry. Select files from the attachment menu, paste images into the input, or drop files onto the Citer panel. The drop invitation names the receiving Topic; release adds attachments only to that Topic. Drops are unavailable without a current Topic, and files dropped into Citer are not copied into the source draft. Mixed image and text paste retains both. Sent files show a download icon and filename; click to save the original attachment. User messages omit the role label. Host rejection shows its cause and retains the draft; an accepted message is cleared even if the subsequent status read fails.
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
While a reply runs, Enter and Send follow DSH's busy-send preference; Ctrl + Enter temporarily uses the other delivery mode. Queued messages run after the current turn; steering is admitted at its next step. The composer toggle overrides the current Topic without changing the host default. Pending rows can be removed or changed to steering. Stop ends the response and preserves existing output; pending work follows DSH's queue rules.
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
- Saved panel proportions range from 28% to 55%. Actual width is capped to leave at least 480 CSS pixels for conversation, then returns to the preference when space permits.
|
|
67
|
-
- Narrow or zoomed windows place the learning panel in a bottom row, with the conversation visible above it.
|
|
68
|
-
- Closing restores host layout. Unrecognized frames show a compact compatibility message.
|
|
66
|
+
New Topics use standard programming tools under DSH permissions. Existing records retain their conversation and permissions when migrated into the source directory. Migration verifies every event; records that cannot be verified stay in their original store with an error report. Permissions are not expanded automatically.
|
|
69
67
|
|
|
70
|
-
|
|
68
|
+
Model-provided reasoning appears in an expandable Thinking row. While reasoning is streaming before the answer, the row shows Thinking in progress. Collapsed rows retain a one-line preview; expanding displays the full Markdown. Models that return no reasoning do not produce an empty row.
|
|
71
69
|
|
|
72
|
-
##
|
|
70
|
+
## Learning, boards and images
|
|
73
71
|
|
|
74
|
-
|
|
72
|
+
Learning route is off by default. When enabled, a submitted question asks the model to select and maintain a plan through DSH `todo_write`. It may use underlying logic, qualitative analysis, quantitative board work, concept connections and summary cards as needed; users do not click through stages individually.
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
The board appears once, in the host conversation's blackboard tab. It supports text, Markdown, math, tables, SVG, images and isolated HTML. Quoting adds a draft attachment; math renders as math rather than raw object fields. Read, export and revise cards in Citer's Cards view.
|
|
77
75
|
|
|
78
|
-
|
|
76
|
+
`blackboard_view` returns a browser-rendered PNG to an image-capable model, allowing it to inspect clipping, labels, arrows and layout before updating the board. The image contains only the board, not the conversation or window layout. When the tab is closed or the narrow layout hides the board, the same component renders offscreen at 1000×680. Keep Citer open during capture. SVG colors are preserved; Markdown code uses backgrounds suited to the dark board. Sandboxed HTML iframes cannot be captured; use SVG for inspectable diagrams.
|
|
79
77
|
|
|
80
|
-
|
|
78
|
+
When [dsh-codex-connect](https://github.com/franksong2702/dsh-codex-connect) and its image tools are enabled in the host, new Topics can use `codex_connect_image_generate` and `view_image`. Citer does not require the connector or manage its account setup. Real generation and viewing have been exercised with connector `0.1.0-alpha.4.34`.
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
Before saving cards, the model is instructed to check definitions, conditions, derivations, numbers and contradictions, then correct or mark unverified claims. Self-review does not ensure factual accuracy; acceptance found and corrected a model error. See the [validation record](../../docs/validation/2026-09-12-native-real-model.md). Active recall is optional and off by default. There is no spaced repetition, reminder or streak system.
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
## Topics and layout
|
|
83
|
+
|
|
84
|
+
The list icon opens searchable Topics for the current source; + creates a blank Topic. Double-click the title or press F2 to rename; Enter/blur saves and Escape cancels. Archive hides a Topic while preserving its records, and the archive list restores it. Permanent deletion requires the full Session ID and removes only Citer-owned Topic files after releasing its runtime. Symlinks and paths outside the owned directory are rejected. Source Sessions are never deleted.
|
|
85
|
+
|
|
86
|
+
Wide windows keep source and Citer side by side, with a resizable divider. Drag the title area away to float; release at the right window edge to dock. When space is insufficient, Citer occupies the main content area with a Back button at the top left. Back restores the source. It never moves below the source on narrow screens. Closing restores host space; native details and Desktop captions remain available.
|
|
87
|
+
|
|
88
|
+
Surfaces use translucent backgrounds, blur and short transitions, respecting host themes and reduced-motion settings. A dedicated adapter owns layout changes; unknown host structures do not receive an intrusive full-screen fallback.
|
|
89
|
+
|
|
90
|
+
## Storage and migration
|
|
91
|
+
|
|
92
|
+
Topics appear only in Citer navigation. DSH does not recursively discover nested Topic logs. Citer owns live membership and navigation; native send services can address a loaded Topic by identity.
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
.dsh/sessions/<workspace>/<sourceSession>/
|
|
96
|
+
├── session.v3.jsonl[.zstd] DSH-owned source
|
|
97
|
+
└── citeciter/
|
|
98
|
+
├── owner.json Verified source ownership
|
|
99
|
+
├── <topicNumber>/
|
|
100
|
+
│ ├── topic.json Title, archive state, model and source
|
|
101
|
+
│ └── sessions/<workspace>/<citerSession>/session.v3.jsonl
|
|
102
|
+
└── migration-backups/ Verified original copies
|
|
89
103
|
```
|
|
90
104
|
|
|
91
|
-
|
|
105
|
+
Citer owns creation, archive, restore and deletion. Archiving preserves the full log. Deletion leaves other Topics, the source and migration backups intact. Migration reads and writes through public DSH persistence APIs, compares the header and every event before switching the index, and retains originals. Moving verified old copies out of the main list requires an explicitly confirmed scope.
|
|
106
|
+
|
|
107
|
+
## Documents and native preview
|
|
108
|
+
|
|
109
|
+
While Citer is open, use the top-right … → Document reading action. The standalone reader launcher remains available when Citer is closed and no longer covers its composer.
|
|
110
|
+
|
|
111
|
+
Click 📖 to import `.txt`, `.md` or `.markdown`. The reader preserves the full document, displays at most 500 KiB of UTF-8 text per page and accepts up to 2,000,000 characters. Paging clears the previous selection but keeps the question. Preparing a draft collapses the reader. The document address and excerpt are separate removable attachments.
|
|
112
|
+
|
|
113
|
+
When the optional documentPreviews service is present, select “CiteCiter 学习” in native file preview. The host reads the file; Citer provides selectable source text, pagination and references. Creating a Topic stores a complete snapshot, unaffected by later file changes. Each snapshot is limited to 8 MiB / 2,000,000 characters and requires a source Session address.
|
|
114
|
+
|
|
115
|
+
The preview's public type baseline is resolved subpackage `0.1.5-rc.2`; the top-level DSH version does not establish service availability. Without it, conversation actions and the independent reader remain usable. The learning viewer does not provide PDF text extraction, Word parsing or OCR.
|
|
116
|
+
|
|
117
|
+
## Wheel settings
|
|
118
|
+
|
|
119
|
+
Configure the trigger, default model and eight slots in Settings → CiteCiter. Defaults are Ask, Explain, Find errors, Translate, Quantitative board, Summary cards and two empty slots. Each slot has a prompt, optional question step, content mode and default placement. Save slot edits explicitly.
|
|
120
|
+
|
|
121
|
+
A short right-click leaves a clickable wheel; Shift + right-click preserves the native menu. Arrow keys, digits 1–8 and Enter select actions. Center, empty slots, outside release, Escape, source changes or wheel blur cancel. The question dialog survives app blur and closes only on explicit dismissal or source change.
|
|
122
|
+
|
|
123
|
+
## Development and acceptance
|
|
92
124
|
|
|
93
|
-
|
|
125
|
+
[Contributing](../../CONTRIBUTING.md) · [0.8.1 fix notes](../../docs/releases/v0.8.1.md) · [Real-model acceptance](../../docs/validation/2026-09-12-native-real-model.md)
|
|
94
126
|
|
|
95
|
-
DSH-
|
|
127
|
+
Host and Client compile separately. Native session adaptation, source reading, index storage, attachments, queue, board capture, learning plans and UI controls are separate modules. The DSH Agent Loop is unchanged. The full host input component has no supported cross-session embedding interface; Citer reuses public ConversationController / SessionFace behavior and does not automatically inherit every third-party composer extension.
|
|
96
128
|
|
|
97
|
-
|
|
129
|
+
Artificial model providers, test directories and temporary acceptance scripts have been removed from the current branch, with Git history preserved. CI checks dependencies, types, build and packaging. Functional acceptance uses real models, real source branches and actual UI; the validation record states coverage and unfinished work.
|
|
98
130
|
|
|
99
|
-
|
|
131
|
+
MIT License.
|
package/README.zh.md
CHANGED
|
@@ -1,99 +1,133 @@
|
|
|
1
1
|
# CiteCiter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[English](README.md) · [npm](https://www.npmjs.com/package/@kirkchinese/dsh-citeciter) · [问题反馈](https://github.com/kirkchinese/CiteCiter/issues)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> **0.8.0 已弃用。** Linux 通过符号链接启动 DSH 时,可能无法创建或恢复 Topic,报找不到 `@deepseek-ai/dsh-agent-loop`。请升级到 [0.8.1](https://github.com/kirkchinese/CiteCiter/releases/tag/v0.8.1)。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
CiteCiter 为 DeepSeek Harness 提供带来源引用的独立工作区。可从主对话、工具结果和文档建立 Topic,处理文字、编程、图像和学习任务。新 Topic 使用 DSH 原生会话、权限、模型、附件与消息队列,来源对话继续独立工作。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+

|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
上图为交互示意,非运行截图。选文动作只准备草稿;模型在用户发送后开始回答。
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## 版本与安装
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
当前版本为 **0.8.1**。兼容基线为 DSH `0.1.5-rc.1`、[DSH Desktop](https://github.com/anywhere-labs/dsh-desktop) `2.0.9`;Node.js `^22.19.0 || >=24.0.0`。本轮 Windows 验收使用 Node 24.19.0。DSH 的 next、alpha 和 TUI 属于其他目标。
|
|
16
|
+
|
|
17
|
+
| 版本 | 状态 | 主要差异 |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
| Linux / macOS | 相同包 | 本轮未运行平台验证 |
|
|
19
|
+
| 0.8.1 | 当前版本 | 修复 Linux/macOS 符号链接启动时无法打开 Topic |
|
|
20
|
+
| 0.8.0 | 已弃用,请升级 0.8.1 | Linux 符号链接启动错误会阻止 Topic 打开 |
|
|
21
|
+
| 0.7.0-beta.3 | 前一开发候选版 | 私有只读 Topic、选文轮盘、手动五阶段学习 |
|
|
22
|
+
| 0.6.0 | 已发布 | DSH 0.1.2-rc.1 / Desktop 2.0.5 基线 |
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
更新主机 CLI,然后安装已发布包:
|
|
24
25
|
|
|
25
26
|
```powershell
|
|
26
|
-
npm install -g @deepseek-ai/dsh@
|
|
27
|
-
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.
|
|
28
|
-
dsh plugin --profile web list --depth 0
|
|
27
|
+
npm install -g @deepseek-ai/dsh@latest
|
|
28
|
+
dsh plugin --profile web add @kirkchinese/dsh-citeciter@0.8.1
|
|
29
29
|
dsh web
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
此命令安装 0.8.1。旧宿主 DSH 0.1.2-rc.1 / Desktop 2.0.5 应继续使用 @kirkchinese/dsh-citeciter@0.6.0。如 npm 提示本地原生依赖的安装脚本被阻止,按 npm 输出对明确列出的依赖放行后重装。不要通过全局关闭脚本限制解决。
|
|
33
|
+
|
|
34
|
+
0.8.0 在 Linux/macOS 通过符号链接启动 DSH 时,可能无法打开 Topic,报找不到 dsh-agent-loop。0.8.1 先解析 CLI 入口真实路径再加载宿主模块,保留 Desktop 的 app.asar 路径。Linux 原生 Node 回归已通过,macOS 尚未实测。
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
本地构建并安装此分支:
|
|
35
37
|
|
|
36
38
|
```powershell
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
pnpm install --frozen-lockfile
|
|
40
|
+
pnpm typecheck
|
|
41
|
+
pnpm build
|
|
42
|
+
pnpm --dir packages/citeciter pack --pack-destination E:/project/CiteCiter/.refs/artifacts
|
|
43
|
+
dsh plugin --profile web add E:/project/CiteCiter/.refs/artifacts/kirkchinese-dsh-citeciter-0.8.1.tgz
|
|
39
44
|
```
|
|
40
45
|
|
|
41
|
-
|
|
46
|
+
Desktop 使用自己的内置 DSH。在其管理终端执行 `dsh plugin add @kirkchinese/dsh-citeciter@0.8.1` 升级插件,也可传入本地安装包绝对路径;全局 CLI 更新不会更新 Desktop 内置运行时。安装后重启相应宿主。同一 DSH home 不要同时运行 Web 和 Desktop 写入进程。
|
|
42
47
|
|
|
43
|
-
|
|
48
|
+
## 草稿与引用
|
|
44
49
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
1. 在主对话选中文字,按住右键打开八槽轮盘,移向动作后松开。也可从工具结果、文档阅读器或原生文件预览创建 Topic。
|
|
51
|
+
2. Citer 打开独立草稿。来源对话地址、来源文档地址及选中文段显示为附件。文档附件显示文件名,展开查看原始路径和快照地址。点击 × 移除;附件菜单可重新添加来源或选文。
|
|
52
|
+
3. 检查问题、引用、权限和模型,点击发送或按 Enter。Shift + Enter 换行;输入法组词期间 Enter 不发送。
|
|
48
53
|
|
|
49
|
-
|
|
54
|
+
创建 Topic、选择轮盘动作、切换模型、引用板书均不调用模型。需要补充问题的轮盘动作先打开输入框和模型选择;无需补充的动作填入预设问题,仍需手动发送。模式提示词和发送时的引用内容写入当前 Topic 的原生日志。
|
|
50
55
|
|
|
51
|
-
|
|
56
|
+
未发送的来源附件被删除后,来源读取工具会拒绝读取该来源;新 Topic 不隐式复制来源历史。已经发送的附件属于历史消息,删除后续草稿中的副本不会撤回历史上下文。草稿在关闭/重开学习栏、切换 Topic 和窗口失焦时保留;刷新或退出客户端不保留未发送草稿和本地附件。
|
|
52
57
|
|
|
53
|
-
|
|
54
|
-
2. 在右侧学习栏继续追问、切换模型和思考强度,或管理 Topic 标题、归档和删除。
|
|
55
|
-
3. 使用 `+ 新 Topic` 创建自由问答或讲解。新的主会话需先发送消息,让 Topic 取得当前模型配置。
|
|
56
|
-
4. 讲解内容位于主工作区“小黑板”标签;“引用到提问”会追加到现有草稿。
|
|
57
|
-
5. 也可从工具结果、终端结果、差异片段及文本/Markdown Reader 创建 Topic。
|
|
58
|
+
## 权限、输入与队列
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
新 Topic 默认 **只读**,即使来源会话具有完全权限。输入框的权限菜单使用 DSH 的只读、工作区内修改、完全权限模式。只有用户主动选择模式或更改新 Topic 默认值后,才允许相应修改。DSH 审批、沙箱和工具限制继续生效;插件不绕过权限服务。
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
输入框从左到右为附件、权限模式、模型与思考强度、发送。模型菜单先选模型,再选该模型支持的思考强度。图片和普通文件通过 DSH 原生附件服务发送,文件显示上传状态,失败可重试。可从附件菜单选择文件,在输入框粘贴图片,或拖入 Citer 面板。拖放提示显示接收的 Topic,松开只向该 Topic 添加附件;没有可用 Topic 时不接收。主对话不会收到拖入 Citer 的副本。混合粘贴时同时保留图片与文字。已发送文件显示下载图标与文件名,点击保存原附件;用户消息不显示角色标签。宿主拒收时显示原因并保留草稿;宿主已接收的消息不会因后续状态读取失败而重新留在输入框。
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
回答运行时,Enter 和发送按钮跟随 DSH 设置中的“繁忙时的发送行为”;Ctrl + Enter 临时使用另一种方式。排队在当前轮结束后处理,插话由 DSH 在当前轮的下一步接收。输入区的切换按钮只覆盖当前 Topic,不改写宿主默认值。队列显示待处理内容,可移除或转为插话。停止结束当前回答并保留已生成内容;待处理队列继续遵循 DSH 规则。
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
- 保存的面板比例为 28%–55%。空间不足时限制实际宽度,为主对话保留至少 480 CSS 像素;扩大窗口后恢复偏好比例。
|
|
67
|
-
- 窄窗口或缩放后无法容纳两列时,学习栏移至下方,主对话仍在上方可见。
|
|
68
|
-
- 关闭学习栏后恢复宿主布局。无法识别的宿主仅显示兼容提示。
|
|
66
|
+
新 Topic 可使用标准编程工具,操作范围由 DSH 权限决定。旧版记录迁入来源目录后仍保留原有对话和权限。迁移会逐条核验日志;无法核验的记录保留原存储并报告,不自动扩大权限。
|
|
69
67
|
|
|
70
|
-
|
|
68
|
+
DSH 工具审批、补充问题和计划确认显示在对应 Topic 中,决定交回宿主原生交互处理。审批卡保留工具名称、理由及关联参数供查看。
|
|
71
69
|
|
|
72
|
-
|
|
70
|
+
模型返回的思考内容显示为可展开的“思考”行;生成思考而尚无正文时显示“思考中”。折叠状态保留一行预览,展开后显示完整 Markdown。未返回思考内容的模型不显示空行。
|
|
73
71
|
|
|
74
|
-
|
|
72
|
+
## 学习、板书与图片
|
|
75
73
|
|
|
76
|
-
|
|
74
|
+
“学习路线”默认关闭。开启后,用户发送问题时要求模型通过 DSH `todo_write` 自行选择、排列和更新学习计划。可用方式包括底层逻辑、定性分析、定量板书、概念关联和总结卡片;模型按内容取舍,无需逐个点击阶段。
|
|
77
75
|
|
|
78
|
-
|
|
76
|
+
小黑板统一显示在主区“小黑板”标签。支持文本、Markdown、公式、表格、SVG、图片和隔离 HTML。板书引用进入草稿附件,公式渲染为数学内容,不显示原始对象字段。学习卡在 Citer 的“学习卡”视图查看、导出和修订。
|
|
79
77
|
|
|
80
|
-
|
|
78
|
+
`blackboard_view` 把浏览器真实渲染的 PNG 返回给支持视觉输入的模型。模型可检查遮挡、标签、箭头和布局后继续修改板书。截图仅包含板书,不包含主对话或窗口布局;标签关闭或窄屏隐藏板书时,使用相同组件按 1000×680 离屏渲染。需保持 Citer 打开。SVG 保留原始颜色,Markdown 代码使用适合深色板书的背景。沙箱 HTML iframe 暂不支持截图,需改用 SVG 才能进行此视觉检查。
|
|
81
79
|
|
|
82
|
-
|
|
80
|
+
如果宿主已安装并启用 [dsh-codex-connect](https://github.com/franksong2702/dsh-codex-connect) 的图片工具,新 Topic 可直接使用 `codex_connect_image_generate` 和 `view_image`;Citer 不要求该插件,也不代替其账户配置。本轮已验证连接插件 `0.1.0-alpha.4.34` 生成并查看真实图片。
|
|
83
81
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
请求总结卡片时,模型先核对定义、条件、推导、数值及前后矛盾,再保存完整卡片组;无法核实的内容应标明或省略。自查不能保证知识正确,验收中已发现并纠正模型错误,见[验收记录](../../docs/validation/2026-09-12-native-real-model.md)。主动回忆默认关闭,可在卡片中开启;不提供间隔复习、提醒或打卡。
|
|
83
|
+
|
|
84
|
+
## Topic 与布局
|
|
85
|
+
|
|
86
|
+
点击列表图标浏览、搜索并切换当前来源的 Topic;+建立空 Topic。双击标题或按 F2 重命名,Enter/失焦保存,Esc 取消。归档用于隐藏并保留记录,可从归档列表恢复。永久删除要求输入完整 Session ID,只删除 Citer 自己维护的 Topic 目录;删除前停止并释放该 Topic,拒绝符号链接及越界路径。主 Session 不删除。
|
|
87
|
+
|
|
88
|
+
宽窗口并排显示来源和 Citer,可拖动分隔线调整比例。拖动标题栏离开侧边后变为悬浮窗;拖回窗口右缘释放后停靠。空间不足时,Citer 占据主内容区并显示左上角返回键;返回后释放主对话。窄屏不把学习栏放到下方。关闭面板后恢复宿主空间;原生详情面板和 Desktop 标题栏保留。
|
|
89
|
+
|
|
90
|
+
菜单和面板使用半透明背景、背景模糊与短动效,支持宿主主题和系统减少动态效果设置。布局适配集中在独立模块中,未知宿主结构不会强制覆盖主界面。
|
|
91
|
+
|
|
92
|
+
## 会话存储与迁移
|
|
93
|
+
|
|
94
|
+
Citer 的 Topic 只出现在 Citer 列表。DSH 的会话磁盘索引不递归扫描 Topic 子目录;插件独立维护实时成员和导航,原生发送服务按身份访问当前 Topic。
|
|
95
|
+
|
|
96
|
+
```text
|
|
97
|
+
.dsh/sessions/<工作区>/<主Session>/
|
|
98
|
+
├── session.v3.jsonl[.zstd] 主会话,由 DSH 管理
|
|
99
|
+
└── citeciter/
|
|
100
|
+
├── owner.json 来源与目录归属
|
|
101
|
+
├── <Topic编号>/
|
|
102
|
+
│ ├── topic.json 标题、归档状态、模型和来源
|
|
103
|
+
│ └── sessions/<工作区>/<CiterSession>/session.v3.jsonl
|
|
104
|
+
└── migration-backups/ 已核验旧副本的备份
|
|
89
105
|
```
|
|
90
106
|
|
|
91
|
-
|
|
107
|
+
新建、归档、恢复和删除均由 Citer 管理。归档保留全文;删除不影响其他 Topic、主 Session 或迁移备份。迁移使用 DSH 公开持久化接口读取和写入,核验头部和全部事件后才切换索引;旧副本保留,清除主列表重复入口时需明确确认移动范围。
|
|
108
|
+
|
|
109
|
+
## 文档与原生预览
|
|
110
|
+
|
|
111
|
+
Citer 打开时,从右上角“…” → “文档阅读”进入阅读器;关闭 Citer 后保留独立读书入口,避免悬浮按钮遮挡输入区。
|
|
112
|
+
|
|
113
|
+
点击 📖 导入 `.txt`、`.md`、`.markdown`。阅读器保存全文,每页最多 500 KiB UTF-8 文本,导入最多 2,000,000 字符。翻页清除旧选区、保留问题;选文并准备草稿后自动收起阅读器。文档地址和选文分别作为待发送附件,可独立删除。
|
|
114
|
+
|
|
115
|
+
安装了可选 documentPreviews 服务时,在原生文件预览中选择“CiteCiter 学习”。宿主读取文件,Citer 提供可选取的源文本、分页与引用;创建 Topic 时保存完整快照,文件之后的变化不会改写该快照。单个快照最多 8 MiB / 2,000,000 字符,必须携带来源 Session 地址。
|
|
116
|
+
|
|
117
|
+
该服务的公开类型基线为解析后的子包 `0.1.5-rc.2`;仅查看 DSH 顶层版本不足以判断能力。缺少服务时,对话轮盘与独立阅读器仍可用。学习查看方式不提供 PDF 文本层、Word 解析或 OCR。
|
|
118
|
+
|
|
119
|
+
## 轮盘设置
|
|
120
|
+
|
|
121
|
+
在“设置 → CiteCiter”选择触发键、默认模型和八个槽位。默认槽位为自由提问、解释这段、找错误、翻译、定量板书、总结卡片、两个空槽;每槽可设置提示词、是否先补充问题、内容方式及默认位置。槽位更改需点击保存。
|
|
122
|
+
|
|
123
|
+
右键短按保留可点击轮盘,Shift + 右键使用原生菜单;可用方向键、数字 1–8 和 Enter 选择。中心、空槽、轮盘外、Esc、来源切换或轮盘失焦取消动作。补充问题输入框在应用失焦时保留,主动关闭或切换来源才取消。
|
|
124
|
+
|
|
125
|
+
## 开发与验收
|
|
92
126
|
|
|
93
|
-
|
|
127
|
+
[开发规范](../../CONTRIBUTING.zh.md) · [0.8.1 修复说明](../../docs/releases/v0.8.1.md) · [真实模型验收](../../docs/validation/2026-09-12-native-real-model.md)
|
|
94
128
|
|
|
95
|
-
DSH
|
|
129
|
+
Host 和 Client 分别编译。原生会话适配、来源读取、索引存储、附件、发送队列、板书截图、学习计划和 UI 控件独立实现;不修改 DSH Agent Loop。完整宿主输入组件尚无跨会话嵌入接口,Citer 通过公开 ConversationController / SessionFace 复用行为,不能自动继承所有第三方输入区扩展。
|
|
96
130
|
|
|
97
|
-
|
|
131
|
+
当前分支已移除人工模型提供者、测试目录与临时验收脚本,保留 Git 历史。CI 进行锁文件、类型、构建和打包检查。功能验收使用真实模型、真实来源分支及实际 UI,覆盖情况与未完成项以验收记录为准。
|
|
98
132
|
|
|
99
|
-
|
|
133
|
+
MIT License.
|