@kirkchinese/dsh-citeciter 0.3.2 → 0.4.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 +55 -24
- package/README.zh.md +55 -24
- package/lib/client.js +646 -151
- package/lib/index.js +442 -107
- package/lib/{topic-DByv84H6.js → topic-BVNCaVbJ.js} +1 -0
- package/lib/{typert-common-Bvx1k2cq.js → typert-common-4_cbghYz.js} +3 -2
- package/lib/typert.host.js +2 -2
- package/lib/typert.remote-client.js +1 -1
- package/lib/types/client/companion-controller.d.ts +6 -4
- package/lib/types/client/components/CiteCiterSettings.d.ts +3 -1
- package/lib/types/client/components/CitePanel.d.ts +1 -1
- package/lib/types/client/conversation-dom.d.ts +72 -0
- package/lib/types/client/prompt.d.ts +7 -2
- package/lib/types/client/request-guard.d.ts +26 -0
- package/lib/types/client/selection.d.ts +8 -0
- package/lib/types/client/settings-document.d.ts +21 -0
- package/lib/types/index.d.ts +1 -1
- package/lib/types/topic-runtime.d.ts +39 -2
- package/lib/types/topic.d.ts +1 -0
- package/lib/types/typert-common.d.ts +5 -1
- package/lib/types/typert.host.d.ts +6 -1
- package/lib/types/typert.remote-client.d.ts +1 -1
- package/package.json +82 -78
- package/lib/types/client/citation.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirkchinese/dsh-citeciter",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "Verifiable, source-bound, read-only investigations for DeepSeek Harness responses",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
7
7
|
"dsh",
|
|
8
8
|
"dsh-plugin",
|
|
9
9
|
"cordis",
|
|
10
10
|
"citation",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"source-bound",
|
|
12
|
+
"verification",
|
|
13
|
+
"evidence",
|
|
14
|
+
"investigation",
|
|
15
|
+
"context-management",
|
|
16
|
+
"read-only",
|
|
13
17
|
"explanation",
|
|
14
18
|
"observer",
|
|
15
19
|
"topic"
|
|
@@ -61,10 +65,10 @@
|
|
|
61
65
|
"client": {
|
|
62
66
|
"inject": [
|
|
63
67
|
"@deepseek-ai/dsh-api-gateway",
|
|
68
|
+
"@deepseek-ai/dsh-client-connection",
|
|
64
69
|
"@deepseek-ai/dsh-client-runtime",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
65
71
|
"@deepseek-ai/dsh-client-ui-layout",
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-slots",
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-primitives",
|
|
68
72
|
"@deepseek-ai/dsh-client-ui-settings"
|
|
69
73
|
],
|
|
70
74
|
"platform": "web"
|
|
@@ -76,84 +80,71 @@
|
|
|
76
80
|
"cordis.patch.yml",
|
|
77
81
|
"README.zh.md"
|
|
78
82
|
],
|
|
79
|
-
"scripts": {
|
|
80
|
-
"build": "npm run build:lib && npm run build:bundle",
|
|
81
|
-
"prebuild:lib": "node scripts/clean-types.mjs",
|
|
82
|
-
"build:lib": "tsc -p tsconfig.json",
|
|
83
|
-
"prebuild:bundle": "node scripts/clean-bundle.mjs",
|
|
84
|
-
"build:bundle": "tsdown --env.DSH_BUILD_FACE client",
|
|
85
|
-
"postbuild:bundle": "node scripts/normalize-bundle.mjs",
|
|
86
|
-
"prepack": "npm run build",
|
|
87
|
-
"dev": "npm run build && node dev/watch.mjs",
|
|
88
|
-
"smoke:seed": "node dev/seed-smoke-session.mjs",
|
|
89
|
-
"smoke:hmr": "node dev/hmr-smoke.mjs",
|
|
90
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
91
|
-
"test": "npm run build:lib && node --test tests/*.test.mjs"
|
|
92
|
-
},
|
|
93
83
|
"peerDependencies": {
|
|
94
84
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
95
|
-
"@deepseek-ai/dsh-agent": ">=0.1.
|
|
96
|
-
"@deepseek-ai/dsh-agent-loop": ">=0.1.
|
|
97
|
-
"@deepseek-ai/dsh-api-gateway": ">=0.1.
|
|
98
|
-
"@deepseek-ai/dsh-client-
|
|
99
|
-
"@deepseek-ai/dsh-client-
|
|
100
|
-
"@deepseek-ai/dsh-client-ui-
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-
|
|
102
|
-
"@deepseek-ai/dsh-client-ui-
|
|
103
|
-
"@deepseek-ai/dsh-fs": ">=0.1.
|
|
104
|
-
"@deepseek-ai/dsh-home-paths": ">=0.1.
|
|
105
|
-
"@deepseek-ai/dsh-llm": ">=0.1.
|
|
106
|
-
"@deepseek-ai/dsh-output-retention": ">=0.1.
|
|
107
|
-
"@deepseek-ai/dsh-sandbox-policy": ">=0.1.
|
|
108
|
-
"@deepseek-ai/dsh-session": ">=0.1.
|
|
109
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": ">=0.1.
|
|
110
|
-
"@deepseek-ai/dsh-session-query": ">=0.1.
|
|
111
|
-
"@deepseek-ai/dsh-session-title": ">=0.1.
|
|
112
|
-
"@deepseek-ai/dsh-session-title-llm": ">=0.1.
|
|
113
|
-
"@deepseek-ai/dsh-settings": ">=0.1.
|
|
114
|
-
"@deepseek-ai/dsh-subprocess": ">=0.1.
|
|
115
|
-
"@deepseek-ai/dsh-spill": ">=0.1.
|
|
116
|
-
"@deepseek-ai/dsh-system-prompt": ">=0.1.
|
|
117
|
-
"@deepseek-ai/dsh-tool-ask-user": ">=0.1.
|
|
118
|
-
"@deepseek-ai/dsh-tool-fs": ">=0.1.
|
|
119
|
-
"@deepseek-ai/dsh-tool-fs-search": ">=0.1.
|
|
120
|
-
"@deepseek-ai/dsh-tools": ">=0.1.
|
|
121
|
-
"@deepseek-ai/dsh-typert-protocol": ">=0.1.
|
|
122
|
-
"@deepseek-ai/dsh-user-questions": ">=0.1.
|
|
85
|
+
"@deepseek-ai/dsh-agent": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
86
|
+
"@deepseek-ai/dsh-agent-loop": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
87
|
+
"@deepseek-ai/dsh-api-gateway": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
88
|
+
"@deepseek-ai/dsh-client-connection": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
89
|
+
"@deepseek-ai/dsh-client-runtime": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
93
|
+
"@deepseek-ai/dsh-fs": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
94
|
+
"@deepseek-ai/dsh-home-paths": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
95
|
+
"@deepseek-ai/dsh-llm": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
96
|
+
"@deepseek-ai/dsh-output-retention": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
97
|
+
"@deepseek-ai/dsh-sandbox-policy": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
98
|
+
"@deepseek-ai/dsh-session": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
99
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
100
|
+
"@deepseek-ai/dsh-session-query": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
101
|
+
"@deepseek-ai/dsh-session-title": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
102
|
+
"@deepseek-ai/dsh-session-title-llm": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
103
|
+
"@deepseek-ai/dsh-settings": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
104
|
+
"@deepseek-ai/dsh-subprocess": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
105
|
+
"@deepseek-ai/dsh-spill": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
106
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
107
|
+
"@deepseek-ai/dsh-tool-ask-user": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
108
|
+
"@deepseek-ai/dsh-tool-fs": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
109
|
+
"@deepseek-ai/dsh-tool-fs-search": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
110
|
+
"@deepseek-ai/dsh-tools": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
111
|
+
"@deepseek-ai/dsh-typert-protocol": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
112
|
+
"@deepseek-ai/dsh-user-questions": ">=0.1.1-rc.1 <0.1.1-rc.3",
|
|
123
113
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
124
|
-
"react": "^18.2.0",
|
|
125
114
|
"zod": "^4.4.3"
|
|
126
115
|
},
|
|
127
116
|
"devDependencies": {
|
|
128
117
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
129
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
130
|
-
"@deepseek-ai/dsh-agent-loop": "0.1.
|
|
131
|
-
"@deepseek-ai/dsh-api-gateway": "0.1.
|
|
132
|
-
"@deepseek-ai/dsh-client-
|
|
133
|
-
"@deepseek-ai/dsh-client-
|
|
134
|
-
"@deepseek-ai/dsh-client-ui-
|
|
135
|
-
"@deepseek-ai/dsh-client-ui-
|
|
136
|
-
"@deepseek-ai/dsh-client-ui-
|
|
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-session
|
|
145
|
-
"@deepseek-ai/dsh-session-
|
|
146
|
-
"@deepseek-ai/dsh-session-
|
|
147
|
-
"@deepseek-ai/dsh-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
"@deepseek-ai/dsh-
|
|
150
|
-
"@deepseek-ai/dsh-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
152
|
-
"@deepseek-ai/dsh-
|
|
153
|
-
"@deepseek-ai/dsh-tool-
|
|
154
|
-
"@deepseek-ai/dsh-
|
|
155
|
-
"@deepseek-ai/dsh-
|
|
156
|
-
"@deepseek-ai/dsh-
|
|
118
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-agent-loop": "0.1.1-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.1-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-connection": "0.1.1-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-runtime": "0.1.1-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.1-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.1.1-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.1.1-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.1.1-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.1-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-fs": "0.1.1-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-output-retention": "0.1.1-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.1.1-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.1.1-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-session-query": "0.1.1-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-session-title": "0.1.1-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-session-title-llm": "0.1.1-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-settings": "0.1.1-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-subprocess": "0.1.1-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-spill": "0.1.1-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.1.1-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-tool-fs": "0.1.1-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.1.1-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.1-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-user-questions": "0.1.1-rc.2",
|
|
157
148
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
158
149
|
"@types/mdast": "^4.0.4",
|
|
159
150
|
"@types/node": "^24.10.0",
|
|
@@ -168,5 +159,18 @@
|
|
|
168
159
|
"tsdown": "^0.22.2",
|
|
169
160
|
"typescript": "^6.0.3",
|
|
170
161
|
"zod": "^4.4.3"
|
|
162
|
+
},
|
|
163
|
+
"scripts": {
|
|
164
|
+
"build": "npm run build:lib && npm run build:bundle",
|
|
165
|
+
"prebuild:lib": "node scripts/clean-types.mjs",
|
|
166
|
+
"build:lib": "tsc -p tsconfig.json",
|
|
167
|
+
"prebuild:bundle": "node scripts/clean-bundle.mjs",
|
|
168
|
+
"build:bundle": "tsdown --env.DSH_BUILD_FACE client",
|
|
169
|
+
"postbuild:bundle": "node scripts/normalize-bundle.mjs",
|
|
170
|
+
"dev": "npm run build && node dev/watch.mjs",
|
|
171
|
+
"smoke:seed": "node dev/seed-smoke-session.mjs",
|
|
172
|
+
"smoke:hmr": "node dev/hmr-smoke.mjs",
|
|
173
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
174
|
+
"test": "npm run build:lib && node --test tests/*.test.mjs"
|
|
171
175
|
}
|
|
172
|
-
}
|
|
176
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CitationDraft } from '../topic.ts';
|
|
2
|
-
import type { CiteSelection } from './types.ts';
|
|
3
|
-
interface SourceSelection extends CiteSelection {
|
|
4
|
-
readonly sourceText: string;
|
|
5
|
-
}
|
|
6
|
-
/** Map rendered Markdown selection context back to one exact raw answer range. */
|
|
7
|
-
export declare function normalizeSelectionAgainstAnswer(selection: CiteSelection, answer: string): SourceSelection;
|
|
8
|
-
/** Build the browser claim that the Host later checks against one committed model call. */
|
|
9
|
-
export declare function createCitationDraft(selection: SourceSelection, assistantMessageSeq: number): Promise<CitationDraft>;
|
|
10
|
-
export {};
|