@kirkchinese/dsh-citeciter 0.6.0 → 0.8.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 +83 -56
- package/README.zh.md +85 -56
- package/lib/client.js +6677 -953
- package/lib/index.js +1730 -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 +15 -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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirkchinese/dsh-citeciter",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Source-aware native DSH Topics with manual drafts, permissions, visual boards and learning cards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
@@ -83,103 +83,111 @@
|
|
|
83
83
|
"cordis.patch.yml",
|
|
84
84
|
"README.zh.md"
|
|
85
85
|
],
|
|
86
|
+
"scripts": {
|
|
87
|
+
"build": "npm run build:lib && npm run build:bundle",
|
|
88
|
+
"prebuild:lib": "node scripts/clean-types.mjs",
|
|
89
|
+
"build:lib": "tsc -p tsconfig.host.json && tsc -p tsconfig.client.json",
|
|
90
|
+
"prebuild:bundle": "node scripts/clean-bundle.mjs",
|
|
91
|
+
"build:bundle": "tsdown --env.DSH_BUILD_FACE client",
|
|
92
|
+
"postbuild:bundle": "node scripts/normalize-bundle.mjs",
|
|
93
|
+
"prepack": "npm run build",
|
|
94
|
+
"dev": "npm run build && node dev/watch.mjs",
|
|
95
|
+
"typecheck": "tsc -p tsconfig.host.json --noEmit && tsc -p tsconfig.client.json --noEmit"
|
|
96
|
+
},
|
|
86
97
|
"peerDependencies": {
|
|
87
98
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
88
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
89
|
-
"@deepseek-ai/dsh-agent-loop": "0.1.
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-
|
|
97
|
-
"@deepseek-ai/dsh-session
|
|
98
|
-
"@deepseek-ai/dsh-session-
|
|
99
|
-
"@deepseek-ai/dsh-session-
|
|
100
|
-
"@deepseek-ai/dsh-session-
|
|
101
|
-
"@deepseek-ai/dsh-
|
|
102
|
-
"@deepseek-ai/dsh-
|
|
103
|
-
"@deepseek-ai/dsh-
|
|
104
|
-
"@deepseek-ai/dsh-
|
|
105
|
-
"@deepseek-ai/dsh-
|
|
106
|
-
"@deepseek-ai/dsh-
|
|
107
|
-
"@deepseek-ai/dsh-tool-
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
99
|
+
"@deepseek-ai/dsh-agent": "0.1.5-rc.1",
|
|
100
|
+
"@deepseek-ai/dsh-agent-loop": "0.1.5-rc.1",
|
|
101
|
+
"@deepseek-ai/dsh-agent-presets": "0.1.5-rc.1",
|
|
102
|
+
"@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
|
|
103
|
+
"@deepseek-ai/dsh-fs": "0.1.5-rc.1",
|
|
104
|
+
"@deepseek-ai/dsh-home-paths": "0.1.5-rc.1",
|
|
105
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.1",
|
|
106
|
+
"@deepseek-ai/dsh-output-retention": "0.1.5-rc.1",
|
|
107
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.5-rc.1",
|
|
108
|
+
"@deepseek-ai/dsh-session": "0.1.5-rc.1",
|
|
109
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.1",
|
|
110
|
+
"@deepseek-ai/dsh-session-projection": "0.1.5-rc.1",
|
|
111
|
+
"@deepseek-ai/dsh-session-query": "0.1.5-rc.1",
|
|
112
|
+
"@deepseek-ai/dsh-session-title": "0.1.5-rc.1",
|
|
113
|
+
"@deepseek-ai/dsh-session-title-llm": "0.1.5-rc.1",
|
|
114
|
+
"@deepseek-ai/dsh-settings": "0.1.5-rc.1",
|
|
115
|
+
"@deepseek-ai/dsh-spill": "0.1.5-rc.1",
|
|
116
|
+
"@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
|
|
117
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
|
|
118
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.1.5-rc.1",
|
|
119
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.5-rc.1",
|
|
120
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.1.5-rc.1",
|
|
121
|
+
"@deepseek-ai/dsh-tools": "0.1.5-rc.1",
|
|
122
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.1",
|
|
123
|
+
"@deepseek-ai/dsh-user-questions": "0.1.5-rc.1",
|
|
111
124
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
112
125
|
"zod": "^4.4.3"
|
|
113
126
|
},
|
|
114
127
|
"devDependencies": {
|
|
115
128
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
116
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
117
|
-
"@deepseek-ai/dsh-agent-loop": "0.1.
|
|
118
|
-
"@deepseek-ai/dsh-
|
|
119
|
-
"@deepseek-ai/dsh-api-
|
|
120
|
-
"@deepseek-ai/dsh-api-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-client-
|
|
124
|
-
"@deepseek-ai/dsh-client-
|
|
125
|
-
"@deepseek-ai/dsh-client-ui-
|
|
126
|
-
"@deepseek-ai/dsh-client-ui-
|
|
127
|
-
"@deepseek-ai/dsh-client-ui-
|
|
128
|
-
"@deepseek-ai/dsh-client-ui-
|
|
129
|
-
"@deepseek-ai/dsh-client-ui-
|
|
130
|
-
"@deepseek-ai/dsh-client-ui-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-
|
|
134
|
-
"@deepseek-ai/dsh-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-
|
|
137
|
-
"@deepseek-ai/dsh-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@deepseek-ai/dsh-
|
|
141
|
-
"@deepseek-ai/dsh-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/dsh-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-
|
|
147
|
-
"@deepseek-ai/dsh-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
"@deepseek-ai/dsh-
|
|
150
|
-
"@deepseek-ai/dsh-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
129
|
+
"@deepseek-ai/dsh-agent": "0.1.5-rc.1",
|
|
130
|
+
"@deepseek-ai/dsh-agent-loop": "0.1.5-rc.1",
|
|
131
|
+
"@deepseek-ai/dsh-agent-presets": "0.1.5-rc.1",
|
|
132
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.5-rc.1",
|
|
133
|
+
"@deepseek-ai/dsh-api-session-controller": "0.1.5-rc.1",
|
|
134
|
+
"@deepseek-ai/dsh-api-settings-controller": "0.1.5-rc.1",
|
|
135
|
+
"@deepseek-ai/dsh-attachment": "0.1.5-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-client-connection": "0.1.5-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-client-store": "0.1.5-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.1.5-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.1.5-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.5-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.5-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.5-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.5-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-client-ui-session": "0.1.5-rc.1",
|
|
145
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-rc.1",
|
|
146
|
+
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.1.5-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-rc.1",
|
|
148
|
+
"@deepseek-ai/dsh-client-ui-user-questions": "0.1.5-rc.1",
|
|
149
|
+
"@deepseek-ai/dsh-commands": "0.1.5-rc.1",
|
|
150
|
+
"@deepseek-ai/dsh-fs": "0.1.5-rc.1",
|
|
151
|
+
"@deepseek-ai/dsh-home-paths": "0.1.5-rc.1",
|
|
152
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.1",
|
|
153
|
+
"@deepseek-ai/dsh-output-retention": "0.1.5-rc.1",
|
|
154
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.5-rc.1",
|
|
155
|
+
"@deepseek-ai/dsh-session": "0.1.5-rc.1",
|
|
156
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.1.5-rc.1",
|
|
157
|
+
"@deepseek-ai/dsh-session-projection": "0.1.5-rc.1",
|
|
158
|
+
"@deepseek-ai/dsh-session-query": "0.1.5-rc.1",
|
|
159
|
+
"@deepseek-ai/dsh-session-title": "0.1.5-rc.1",
|
|
160
|
+
"@deepseek-ai/dsh-session-title-llm": "0.1.5-rc.1",
|
|
161
|
+
"@deepseek-ai/dsh-settings": "0.1.5-rc.1",
|
|
162
|
+
"@deepseek-ai/dsh-spill": "0.1.5-rc.1",
|
|
163
|
+
"@deepseek-ai/dsh-subprocess": "0.1.5-rc.1",
|
|
164
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.5-rc.1",
|
|
165
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.1.5-rc.1",
|
|
166
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.5-rc.1",
|
|
167
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.1.5-rc.1",
|
|
168
|
+
"@deepseek-ai/dsh-tools": "0.1.5-rc.1",
|
|
169
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.5-rc.1",
|
|
170
|
+
"@deepseek-ai/dsh-user-questions": "0.1.5-rc.1",
|
|
171
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.1.5-rc.2",
|
|
152
172
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
153
173
|
"@types/mdast": "^4.0.4",
|
|
154
174
|
"@types/node": "^24.10.0",
|
|
155
175
|
"@types/react": "~18.3.1",
|
|
176
|
+
"@types/react-dom": "~18.3.1",
|
|
156
177
|
"lightningcss": "^1.32.0",
|
|
157
178
|
"mdast-util-from-markdown": "^2.0.3",
|
|
158
179
|
"mdast-util-gfm": "^3.1.0",
|
|
159
180
|
"micromark-extension-gfm": "^3.0.0",
|
|
160
181
|
"micromark-util-decode-string": "^2.0.1",
|
|
161
|
-
"playwright": "^1.58.2",
|
|
162
182
|
"react": "^18.2.0",
|
|
183
|
+
"react-dom": "^18.2.0",
|
|
163
184
|
"tsdown": "^0.22.2",
|
|
164
185
|
"typescript": "^6.0.3",
|
|
165
186
|
"zod": "^4.4.3"
|
|
166
187
|
},
|
|
167
188
|
"dependencies": {
|
|
168
|
-
"@deepseek-ai/dsh-util-values": "0.1.
|
|
189
|
+
"@deepseek-ai/dsh-util-values": "0.1.5-rc.1",
|
|
190
|
+
"html-to-image": "1.11.13",
|
|
169
191
|
"katex": "^0.18.4"
|
|
170
|
-
},
|
|
171
|
-
"scripts": {
|
|
172
|
-
"build": "npm run build:lib && npm run build:bundle",
|
|
173
|
-
"prebuild:lib": "node scripts/clean-types.mjs",
|
|
174
|
-
"build:lib": "tsc -p tsconfig.host.json && tsc -p tsconfig.client.json",
|
|
175
|
-
"prebuild:bundle": "node scripts/clean-bundle.mjs",
|
|
176
|
-
"build:bundle": "tsdown --env.DSH_BUILD_FACE client",
|
|
177
|
-
"postbuild:bundle": "node scripts/normalize-bundle.mjs",
|
|
178
|
-
"dev": "npm run build && node dev/watch.mjs",
|
|
179
|
-
"smoke:seed": "node dev/seed-smoke-session.mjs",
|
|
180
|
-
"test:snapshot": "node dev/run-smoke.mjs",
|
|
181
|
-
"smoke:hmr": "node dev/hmr-smoke.mjs",
|
|
182
|
-
"typecheck": "tsc -p tsconfig.host.json --noEmit && tsc -p tsconfig.client.json --noEmit",
|
|
183
|
-
"test": "npm run build:lib && node --test tests/*.test.mjs"
|
|
184
192
|
}
|
|
185
|
-
}
|
|
193
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SnapshotSelectorHook } from '@deepseek-ai/dsh-client-store';
|
|
2
|
-
import type { CiteOverlaySnapshot } from '../types.ts';
|
|
3
|
-
import type { CompanionSnapshot } from '../companion-controller.ts';
|
|
4
|
-
import type { CompanionActions, OverlayActions } from '../view-actions.ts';
|
|
5
|
-
export interface SelectionMenuProps {
|
|
6
|
-
readonly useCompanion: SnapshotSelectorHook<CompanionSnapshot>;
|
|
7
|
-
readonly useOverlay: SnapshotSelectorHook<CiteOverlaySnapshot>;
|
|
8
|
-
readonly bus: OverlayActions;
|
|
9
|
-
readonly companion: CompanionActions;
|
|
10
|
-
readonly openPanel: () => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Ask the first question beside the selected source text.
|
|
14
|
-
* @param props - shared selection state and Topic actions.
|
|
15
|
-
* @returns the contextual creation popover and companion launcher.
|
|
16
|
-
*/
|
|
17
|
-
export declare function SelectionMenu({ useCompanion, useOverlay, bus, companion, openPanel }: SelectionMenuProps): import("react").JSX.Element;
|