@kirkchinese/dsh-citeciter 0.2.1 → 0.3.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 +65 -38
- package/README.zh.md +59 -51
- package/lib/client.js +15928 -1067
- package/lib/index.js +1094 -242
- package/lib/topic-CjNNXSWB.js +211 -0
- package/lib/typert-common-CPi6bVCr.js +32 -0
- package/lib/typert.host.js +30 -11
- package/lib/typert.remote-client.js +2 -2
- package/lib/types/client/citation.d.ts +10 -0
- package/lib/types/client/companion-controller.d.ts +37 -0
- package/lib/types/client/components/CiteCiterSettings.d.ts +7 -0
- package/lib/types/client/components/CitePanel.d.ts +7 -10
- package/lib/types/client/components/SelectionMenu.d.ts +6 -11
- package/lib/types/client/index.d.ts +2 -2
- package/lib/types/client/markdown-source-map.d.ts +16 -0
- package/lib/types/client/response-guard.d.ts +4 -0
- package/lib/types/client/types.d.ts +16 -31
- package/lib/types/index.d.ts +33 -22
- package/lib/types/observer.d.ts +44 -0
- package/lib/types/topic-runtime.d.ts +50 -0
- package/lib/types/topic.d.ts +419 -0
- package/lib/types/typert-common.d.ts +177 -69
- package/lib/types/typert.host.d.ts +445 -58
- package/lib/types/typert.remote-client.d.ts +3 -8
- package/package.json +58 -32
- package/lib/thread-D7ig_Lk7.js +0 -68
- package/lib/typert-common-CLPMRe7a.js +0 -51
- package/lib/types/client/explainer-controller.d.ts +0 -31
- package/lib/types/client/explainer.d.ts +0 -5
- package/lib/types/client/thread.d.ts +0 -22
- package/lib/types/client/transcript.d.ts +0 -14
- package/lib/types/projection.d.ts +0 -4
- package/lib/types/read-only.d.ts +0 -13
- package/lib/types/thread.d.ts +0 -107
- package/lib/types/validation.d.ts +0 -4
|
@@ -1,88 +1,196 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
citation: z.ZodObject<{
|
|
5
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
6
|
-
sourceSessionId: z.ZodString;
|
|
7
|
-
anchorKey: z.ZodString;
|
|
8
|
-
anchorSeq: z.ZodNumber;
|
|
9
|
-
startOffset: z.ZodNumber;
|
|
10
|
-
endOffset: z.ZodNumber;
|
|
11
|
-
selectionFingerprint: z.ZodString;
|
|
12
|
-
selectedText: z.ZodString;
|
|
13
|
-
prefixText: z.ZodString;
|
|
14
|
-
suffixText: z.ZodString;
|
|
15
|
-
createdAt: z.ZodNumber;
|
|
16
|
-
}, z.core.$strict>;
|
|
17
|
-
}, z.core.$strict>;
|
|
18
|
-
/** Strict descriptor shared byte-for-byte by Host and Client contributions. */
|
|
19
|
-
export declare const prepareThreadDescriptor: {
|
|
20
|
-
readonly id: "@kirkchinese/dsh-citeciter#citeciter/prepareThread";
|
|
1
|
+
/** Strict root-scoped Topic command shared by Host and browser manifests. */
|
|
2
|
+
export declare const citeCiterRequestDescriptor: {
|
|
3
|
+
readonly id: "@kirkchinese/dsh-citeciter#citeciter/request";
|
|
21
4
|
readonly service: "citeciter";
|
|
22
5
|
readonly namespace: "citeciter";
|
|
23
|
-
readonly method: "
|
|
6
|
+
readonly method: "request";
|
|
24
7
|
readonly invocation: {
|
|
25
8
|
readonly kind: "direct";
|
|
26
9
|
};
|
|
27
|
-
readonly scope: {
|
|
28
|
-
readonly context: "agent";
|
|
29
|
-
readonly wire: "agentId";
|
|
30
|
-
};
|
|
31
10
|
readonly parameters: readonly [{
|
|
32
|
-
readonly name: "
|
|
33
|
-
readonly wire: "
|
|
34
|
-
readonly source: "lookup";
|
|
35
|
-
readonly lookup: "agent";
|
|
36
|
-
readonly codec: {
|
|
37
|
-
readonly mode: "strict";
|
|
38
|
-
readonly typeSymbol: "@deepseek-ai/dsh-session/types#SessionId";
|
|
39
|
-
readonly schema: z.ZodString;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
readonly name: "rawCitation";
|
|
43
|
-
readonly wire: "rawCitation";
|
|
11
|
+
readonly name: "rawRequest";
|
|
12
|
+
readonly wire: "rawRequest";
|
|
44
13
|
readonly source: "json";
|
|
45
14
|
readonly codec: {
|
|
46
15
|
readonly mode: "strict";
|
|
47
|
-
readonly typeSymbol: "@kirkchinese/dsh-citeciter#
|
|
48
|
-
readonly schema:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
16
|
+
readonly typeSymbol: "@kirkchinese/dsh-citeciter#CiteCiterRequest";
|
|
17
|
+
readonly schema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
18
|
+
action: import("zod").ZodLiteral<"create">;
|
|
19
|
+
citation: import("zod").ZodObject<{
|
|
20
|
+
sourceSessionId: import("zod").ZodString;
|
|
21
|
+
anchorSeq: import("zod").ZodNumber;
|
|
22
|
+
startOffset: import("zod").ZodNumber;
|
|
23
|
+
endOffset: import("zod").ZodNumber;
|
|
24
|
+
sourceText: import("zod").ZodString;
|
|
25
|
+
displayText: import("zod").ZodString;
|
|
26
|
+
prefixText: import("zod").ZodString;
|
|
27
|
+
suffixText: import("zod").ZodString;
|
|
28
|
+
selectionFingerprint: import("zod").ZodString;
|
|
29
|
+
}, import("zod/v4/core").$strict>;
|
|
30
|
+
question: import("zod").ZodString;
|
|
31
|
+
mode: import("zod").ZodEnum<{
|
|
32
|
+
observer: "observer";
|
|
33
|
+
"exact-fork": "exact-fork";
|
|
34
|
+
"exact-when-available": "exact-when-available";
|
|
35
|
+
}>;
|
|
36
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
37
|
+
action: import("zod").ZodLiteral<"list">;
|
|
38
|
+
sourceSessionId: import("zod").ZodString;
|
|
39
|
+
includeArchived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
40
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
41
|
+
action: import("zod").ZodLiteral<"get">;
|
|
42
|
+
topicSessionId: import("zod").ZodString;
|
|
43
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
44
|
+
action: import("zod").ZodLiteral<"ask">;
|
|
45
|
+
topicSessionId: import("zod").ZodString;
|
|
46
|
+
question: import("zod").ZodString;
|
|
47
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
48
|
+
action: import("zod").ZodLiteral<"stop">;
|
|
49
|
+
topicSessionId: import("zod").ZodString;
|
|
50
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
51
|
+
action: import("zod").ZodLiteral<"rename">;
|
|
52
|
+
topicSessionId: import("zod").ZodString;
|
|
53
|
+
title: import("zod").ZodString;
|
|
54
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
55
|
+
action: import("zod").ZodLiteral<"archive">;
|
|
56
|
+
topicSessionId: import("zod").ZodString;
|
|
57
|
+
archived: import("zod").ZodBoolean;
|
|
58
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
59
|
+
action: import("zod").ZodLiteral<"delete">;
|
|
60
|
+
topicSessionId: import("zod").ZodString;
|
|
61
|
+
confirmSessionId: import("zod").ZodString;
|
|
62
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
63
|
+
action: import("zod").ZodLiteral<"models">;
|
|
64
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
65
|
+
action: import("zod").ZodLiteral<"select-model">;
|
|
66
|
+
topicSessionId: import("zod").ZodString;
|
|
67
|
+
provider: import("zod").ZodString;
|
|
68
|
+
model: import("zod").ZodString;
|
|
69
|
+
reasoningEffort: import("zod").ZodNullable<import("zod").ZodString>;
|
|
70
|
+
}, import("zod/v4/core").$strict>], "action">;
|
|
61
71
|
};
|
|
62
72
|
}];
|
|
63
73
|
readonly result: {
|
|
64
74
|
readonly mode: "strict";
|
|
65
|
-
readonly typeSymbol: "@kirkchinese/dsh-citeciter#
|
|
66
|
-
readonly schema:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
readonly typeSymbol: "@kirkchinese/dsh-citeciter#CiteCiterResponse";
|
|
76
|
+
readonly schema: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
77
|
+
kind: import("zod").ZodLiteral<"topic">;
|
|
78
|
+
topic: import("zod").ZodObject<{
|
|
79
|
+
topic: import("zod").ZodObject<{
|
|
80
|
+
topicId: import("zod").ZodNumber;
|
|
81
|
+
sessionId: import("zod").ZodString;
|
|
82
|
+
sourceSessionId: import("zod").ZodString;
|
|
83
|
+
mode: import("zod").ZodEnum<{
|
|
84
|
+
observer: "observer";
|
|
85
|
+
"exact-fork": "exact-fork";
|
|
86
|
+
}>;
|
|
87
|
+
citation: import("zod").ZodObject<{
|
|
88
|
+
sourceSessionId: import("zod").ZodString;
|
|
89
|
+
anchorSeq: import("zod").ZodNumber;
|
|
90
|
+
startOffset: import("zod").ZodNumber;
|
|
91
|
+
endOffset: import("zod").ZodNumber;
|
|
92
|
+
sourceText: import("zod").ZodString;
|
|
93
|
+
displayText: import("zod").ZodString;
|
|
94
|
+
prefixText: import("zod").ZodString;
|
|
95
|
+
suffixText: import("zod").ZodString;
|
|
96
|
+
selectionFingerprint: import("zod").ZodString;
|
|
97
|
+
schemaVersion: import("zod").ZodLiteral<3>;
|
|
98
|
+
createdAt: import("zod").ZodNumber;
|
|
99
|
+
}, import("zod/v4/core").$strict>;
|
|
100
|
+
title: import("zod").ZodString;
|
|
101
|
+
titlePending: import("zod").ZodBoolean;
|
|
102
|
+
createdAt: import("zod").ZodNumber;
|
|
103
|
+
updatedAt: import("zod").ZodNumber;
|
|
104
|
+
archived: import("zod").ZodBoolean;
|
|
105
|
+
running: import("zod").ZodBoolean;
|
|
106
|
+
sourceAvailable: import("zod").ZodBoolean;
|
|
107
|
+
observedThroughSeq: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
108
|
+
modelConfig: import("zod").ZodObject<{
|
|
109
|
+
provider: import("zod").ZodString;
|
|
110
|
+
model: import("zod").ZodString;
|
|
111
|
+
reasoningEffort: import("zod").ZodOptional<import("zod").ZodString>;
|
|
112
|
+
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
113
|
+
maxTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
114
|
+
stop: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
115
|
+
}, import("zod/v4/core").$strict>;
|
|
116
|
+
}, import("zod/v4/core").$strict>;
|
|
117
|
+
messages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
118
|
+
id: import("zod").ZodString;
|
|
119
|
+
seq: import("zod").ZodNumber;
|
|
120
|
+
role: import("zod").ZodEnum<{
|
|
121
|
+
error: "error";
|
|
122
|
+
user: "user";
|
|
123
|
+
assistant: "assistant";
|
|
124
|
+
}>;
|
|
125
|
+
text: import("zod").ZodString;
|
|
126
|
+
reasoning: import("zod").ZodNullable<import("zod").ZodString>;
|
|
127
|
+
streaming: import("zod").ZodBoolean;
|
|
128
|
+
}, import("zod/v4/core").$strict>>;
|
|
129
|
+
error: import("zod").ZodNullable<import("zod").ZodString>;
|
|
130
|
+
}, import("zod/v4/core").$strict>;
|
|
131
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
132
|
+
kind: import("zod").ZodLiteral<"topics">;
|
|
133
|
+
topics: import("zod").ZodArray<import("zod").ZodObject<{
|
|
134
|
+
topicId: import("zod").ZodNumber;
|
|
135
|
+
sessionId: import("zod").ZodString;
|
|
136
|
+
sourceSessionId: import("zod").ZodString;
|
|
137
|
+
mode: import("zod").ZodEnum<{
|
|
138
|
+
observer: "observer";
|
|
139
|
+
"exact-fork": "exact-fork";
|
|
140
|
+
}>;
|
|
141
|
+
citation: import("zod").ZodObject<{
|
|
142
|
+
sourceSessionId: import("zod").ZodString;
|
|
143
|
+
anchorSeq: import("zod").ZodNumber;
|
|
144
|
+
startOffset: import("zod").ZodNumber;
|
|
145
|
+
endOffset: import("zod").ZodNumber;
|
|
146
|
+
sourceText: import("zod").ZodString;
|
|
147
|
+
displayText: import("zod").ZodString;
|
|
148
|
+
prefixText: import("zod").ZodString;
|
|
149
|
+
suffixText: import("zod").ZodString;
|
|
150
|
+
selectionFingerprint: import("zod").ZodString;
|
|
151
|
+
schemaVersion: import("zod").ZodLiteral<3>;
|
|
152
|
+
createdAt: import("zod").ZodNumber;
|
|
153
|
+
}, import("zod/v4/core").$strict>;
|
|
154
|
+
title: import("zod").ZodString;
|
|
155
|
+
titlePending: import("zod").ZodBoolean;
|
|
156
|
+
createdAt: import("zod").ZodNumber;
|
|
157
|
+
updatedAt: import("zod").ZodNumber;
|
|
158
|
+
archived: import("zod").ZodBoolean;
|
|
159
|
+
running: import("zod").ZodBoolean;
|
|
160
|
+
sourceAvailable: import("zod").ZodBoolean;
|
|
161
|
+
observedThroughSeq: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
162
|
+
modelConfig: import("zod").ZodObject<{
|
|
163
|
+
provider: import("zod").ZodString;
|
|
164
|
+
model: import("zod").ZodString;
|
|
165
|
+
reasoningEffort: import("zod").ZodOptional<import("zod").ZodString>;
|
|
166
|
+
temperature: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
167
|
+
maxTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
168
|
+
stop: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
169
|
+
}, import("zod/v4/core").$strict>;
|
|
170
|
+
}, import("zod/v4/core").$strict>>;
|
|
171
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
172
|
+
kind: import("zod").ZodLiteral<"models">;
|
|
173
|
+
providers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
174
|
+
id: import("zod").ZodString;
|
|
175
|
+
name: import("zod").ZodString;
|
|
176
|
+
models: import("zod").ZodArray<import("zod").ZodObject<{
|
|
177
|
+
id: import("zod").ZodString;
|
|
178
|
+
name: import("zod").ZodString;
|
|
179
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
|
+
reasoningEfforts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
181
|
+
id: import("zod").ZodString;
|
|
182
|
+
name: import("zod").ZodString;
|
|
183
|
+
}, import("zod/v4/core").$strict>>;
|
|
184
|
+
}, import("zod/v4/core").$strict>>;
|
|
185
|
+
}, import("zod/v4/core").$strict>>;
|
|
186
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
187
|
+
kind: import("zod").ZodLiteral<"deleted">;
|
|
188
|
+
sessionId: import("zod").ZodString;
|
|
189
|
+
}, import("zod/v4/core").$strict>], "kind">;
|
|
82
190
|
};
|
|
83
191
|
readonly sourceLocation: {
|
|
84
192
|
readonly file: "src/index.ts";
|
|
85
|
-
readonly line:
|
|
193
|
+
readonly line: 63;
|
|
86
194
|
readonly column: 3;
|
|
87
195
|
};
|
|
88
196
|
};
|