@kirkchinese/dsh-citeciter 0.3.0 → 0.3.2
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 +36 -77
- package/README.zh.md +34 -75
- package/lib/client.js +1437 -14905
- package/lib/index.js +15135 -98
- package/lib/{topic-CjNNXSWB.js → topic-DByv84H6.js} +119 -24
- package/lib/{typert-common-CPi6bVCr.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 +21 -7
- package/lib/types/client/components/CitePanel.d.ts +2 -1
- package/lib/types/client/components/QuestionCard.d.ts +8 -0
- 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 +3 -3
- package/lib/types/observer.d.ts +3 -1
- package/lib/types/topic-runtime.d.ts +62 -2
- package/lib/types/topic.d.ts +220 -22
- package/lib/types/typert-common.d.ts +90 -8
- package/lib/types/typert.host.d.ts +226 -22
- package/package.json +15 -3
package/lib/types/topic.d.ts
CHANGED
|
@@ -28,6 +28,16 @@ export declare const citeCiterSettingsSchema: z.ZodObject<{
|
|
|
28
28
|
export type CiteCiterSettings = z.infer<typeof citeCiterSettingsSchema>;
|
|
29
29
|
/** Settings used before an optional DSH settings provider becomes available. */
|
|
30
30
|
export declare const DEFAULT_CITECITER_SETTINGS: CiteCiterSettings;
|
|
31
|
+
/** Browser-visible selection resolved by the Host against one committed model call. */
|
|
32
|
+
export declare const citationSelectionClaimSchema: z.ZodObject<{
|
|
33
|
+
sourceSessionId: z.ZodString;
|
|
34
|
+
anchorSeq: z.ZodNumber;
|
|
35
|
+
displayText: z.ZodString;
|
|
36
|
+
sourceHintText: z.ZodOptional<z.ZodString>;
|
|
37
|
+
prefixText: z.ZodString;
|
|
38
|
+
suffixText: z.ZodString;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
export type CitationSelectionClaim = z.infer<typeof citationSelectionClaimSchema>;
|
|
31
41
|
/** Host-verifiable Markdown evidence plus the browser-visible quote used by the UI. */
|
|
32
42
|
export declare const citationDraftSchema: z.ZodObject<{
|
|
33
43
|
sourceSessionId: z.ZodString;
|
|
@@ -40,7 +50,7 @@ export declare const citationDraftSchema: z.ZodObject<{
|
|
|
40
50
|
suffixText: z.ZodString;
|
|
41
51
|
selectionFingerprint: z.ZodString;
|
|
42
52
|
}, z.core.$strict>;
|
|
43
|
-
/**
|
|
53
|
+
/** Exact Citation retained for durable data and legacy 0.3.1 requests. */
|
|
44
54
|
export type CitationDraft = z.infer<typeof citationDraftSchema>;
|
|
45
55
|
export declare const citationRecordSchema: z.ZodObject<{
|
|
46
56
|
sourceSessionId: z.ZodString;
|
|
@@ -69,6 +79,7 @@ export type TopicModelConfig = z.infer<typeof modelConfigSchema>;
|
|
|
69
79
|
export declare const topicMetadataSchema: z.ZodObject<{
|
|
70
80
|
schemaVersion: z.ZodLiteral<1>;
|
|
71
81
|
topicId: z.ZodNumber;
|
|
82
|
+
createRequestId: z.ZodOptional<z.ZodString>;
|
|
72
83
|
sessionId: z.ZodString;
|
|
73
84
|
sourceSessionId: z.ZodString;
|
|
74
85
|
sourceCwd: z.ZodString;
|
|
@@ -105,10 +116,12 @@ export declare const topicMetadataSchema: z.ZodObject<{
|
|
|
105
116
|
fallback: "fallback";
|
|
106
117
|
user: "user";
|
|
107
118
|
}>>;
|
|
119
|
+
cachedTitleEventSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
120
|
createdAt: z.ZodNumber;
|
|
109
121
|
updatedAt: z.ZodNumber;
|
|
110
122
|
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
111
123
|
sourceAvailable: z.ZodBoolean;
|
|
124
|
+
observedThroughSeq: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
112
125
|
}, z.core.$strict>;
|
|
113
126
|
/** Small navigation record stored outside the standard Topic Session log. */
|
|
114
127
|
export type TopicMetadata = z.infer<typeof topicMetadataSchema>;
|
|
@@ -151,19 +164,82 @@ export declare const topicSummarySchema: z.ZodObject<{
|
|
|
151
164
|
}, z.core.$strict>;
|
|
152
165
|
}, z.core.$strict>;
|
|
153
166
|
export type TopicSummary = z.infer<typeof topicSummarySchema>;
|
|
154
|
-
export declare const topicMessageSchema: z.ZodObject<{
|
|
167
|
+
export declare const topicMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
+
role: z.ZodLiteral<"user">;
|
|
169
|
+
text: z.ZodString;
|
|
155
170
|
id: z.ZodString;
|
|
156
171
|
seq: z.ZodNumber;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
user: "user";
|
|
160
|
-
assistant: "assistant";
|
|
161
|
-
}>;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
role: z.ZodLiteral<"assistant">;
|
|
162
174
|
text: z.ZodString;
|
|
163
175
|
reasoning: z.ZodNullable<z.ZodString>;
|
|
164
176
|
streaming: z.ZodBoolean;
|
|
165
|
-
|
|
177
|
+
id: z.ZodString;
|
|
178
|
+
seq: z.ZodNumber;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
role: z.ZodLiteral<"context">;
|
|
181
|
+
label: z.ZodString;
|
|
182
|
+
text: z.ZodString;
|
|
183
|
+
id: z.ZodString;
|
|
184
|
+
seq: z.ZodNumber;
|
|
185
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
186
|
+
role: z.ZodLiteral<"tool">;
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
arguments: z.ZodString;
|
|
189
|
+
result: z.ZodNullable<z.ZodString>;
|
|
190
|
+
isError: z.ZodBoolean;
|
|
191
|
+
running: z.ZodBoolean;
|
|
192
|
+
id: z.ZodString;
|
|
193
|
+
seq: z.ZodNumber;
|
|
194
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
+
role: z.ZodLiteral<"error">;
|
|
196
|
+
text: z.ZodString;
|
|
197
|
+
bodyRetained: z.ZodBoolean;
|
|
198
|
+
attempt: z.ZodNumber;
|
|
199
|
+
status: z.ZodEnum<{
|
|
200
|
+
failed: "failed";
|
|
201
|
+
stopped: "stopped";
|
|
202
|
+
}>;
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
seq: z.ZodNumber;
|
|
205
|
+
}, z.core.$strict>], "role">;
|
|
166
206
|
export type TopicMessage = z.infer<typeof topicMessageSchema>;
|
|
207
|
+
export declare const questionOptionSchema: z.ZodObject<{
|
|
208
|
+
label: z.ZodString;
|
|
209
|
+
description: z.ZodOptional<z.ZodString>;
|
|
210
|
+
}, z.core.$strict>;
|
|
211
|
+
export declare const questionItemSchema: z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
question: z.ZodString;
|
|
214
|
+
header: z.ZodOptional<z.ZodString>;
|
|
215
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
216
|
+
label: z.ZodString;
|
|
217
|
+
description: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, z.core.$strict>>>;
|
|
219
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
export declare const questionAnswerSchema: z.ZodObject<{
|
|
222
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
selected: z.ZodArray<z.ZodString>;
|
|
225
|
+
custom: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$strict>>;
|
|
227
|
+
}, z.core.$strict>;
|
|
228
|
+
export type QuestionAnswer = z.infer<typeof questionAnswerSchema>;
|
|
229
|
+
export declare const pendingQuestionSchema: z.ZodObject<{
|
|
230
|
+
key: z.ZodString;
|
|
231
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
232
|
+
id: z.ZodString;
|
|
233
|
+
question: z.ZodString;
|
|
234
|
+
header: z.ZodOptional<z.ZodString>;
|
|
235
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
label: z.ZodString;
|
|
237
|
+
description: z.ZodOptional<z.ZodString>;
|
|
238
|
+
}, z.core.$strict>>>;
|
|
239
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
}, z.core.$strict>>;
|
|
241
|
+
}, z.core.$strict>;
|
|
242
|
+
export type PendingQuestion = z.infer<typeof pendingQuestionSchema>;
|
|
167
243
|
export declare const topicSnapshotSchema: z.ZodObject<{
|
|
168
244
|
topic: z.ZodObject<{
|
|
169
245
|
topicId: z.ZodNumber;
|
|
@@ -203,17 +279,57 @@ export declare const topicSnapshotSchema: z.ZodObject<{
|
|
|
203
279
|
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
204
280
|
}, z.core.$strict>;
|
|
205
281
|
}, z.core.$strict>;
|
|
206
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
282
|
+
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
283
|
+
role: z.ZodLiteral<"user">;
|
|
284
|
+
text: z.ZodString;
|
|
207
285
|
id: z.ZodString;
|
|
208
286
|
seq: z.ZodNumber;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
user: "user";
|
|
212
|
-
assistant: "assistant";
|
|
213
|
-
}>;
|
|
287
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
288
|
+
role: z.ZodLiteral<"assistant">;
|
|
214
289
|
text: z.ZodString;
|
|
215
290
|
reasoning: z.ZodNullable<z.ZodString>;
|
|
216
291
|
streaming: z.ZodBoolean;
|
|
292
|
+
id: z.ZodString;
|
|
293
|
+
seq: z.ZodNumber;
|
|
294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
295
|
+
role: z.ZodLiteral<"context">;
|
|
296
|
+
label: z.ZodString;
|
|
297
|
+
text: z.ZodString;
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
seq: z.ZodNumber;
|
|
300
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
301
|
+
role: z.ZodLiteral<"tool">;
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
arguments: z.ZodString;
|
|
304
|
+
result: z.ZodNullable<z.ZodString>;
|
|
305
|
+
isError: z.ZodBoolean;
|
|
306
|
+
running: z.ZodBoolean;
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
seq: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
310
|
+
role: z.ZodLiteral<"error">;
|
|
311
|
+
text: z.ZodString;
|
|
312
|
+
bodyRetained: z.ZodBoolean;
|
|
313
|
+
attempt: z.ZodNumber;
|
|
314
|
+
status: z.ZodEnum<{
|
|
315
|
+
failed: "failed";
|
|
316
|
+
stopped: "stopped";
|
|
317
|
+
}>;
|
|
318
|
+
id: z.ZodString;
|
|
319
|
+
seq: z.ZodNumber;
|
|
320
|
+
}, z.core.$strict>], "role">>;
|
|
321
|
+
pendingQuestion: z.ZodNullable<z.ZodObject<{
|
|
322
|
+
key: z.ZodString;
|
|
323
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
question: z.ZodString;
|
|
326
|
+
header: z.ZodOptional<z.ZodString>;
|
|
327
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
328
|
+
label: z.ZodString;
|
|
329
|
+
description: z.ZodOptional<z.ZodString>;
|
|
330
|
+
}, z.core.$strict>>>;
|
|
331
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
+
}, z.core.$strict>>;
|
|
217
333
|
}, z.core.$strict>>;
|
|
218
334
|
error: z.ZodNullable<z.ZodString>;
|
|
219
335
|
}, z.core.$strict>;
|
|
@@ -242,8 +358,9 @@ export declare const providerOptionSchema: z.ZodObject<{
|
|
|
242
358
|
}, z.core.$strict>;
|
|
243
359
|
export type ProviderOption = z.infer<typeof providerOptionSchema>;
|
|
244
360
|
/** One strict direct-RPC command for the private CiteCiter runtime. */
|
|
245
|
-
export declare const citeCiterRequestSchema: z.
|
|
361
|
+
export declare const citeCiterRequestSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
246
362
|
action: z.ZodLiteral<"create">;
|
|
363
|
+
requestId: z.ZodString;
|
|
247
364
|
citation: z.ZodObject<{
|
|
248
365
|
sourceSessionId: z.ZodString;
|
|
249
366
|
anchorSeq: z.ZodNumber;
|
|
@@ -262,6 +379,23 @@ export declare const citeCiterRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
262
379
|
"exact-when-available": "exact-when-available";
|
|
263
380
|
}>;
|
|
264
381
|
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
action: z.ZodLiteral<"create">;
|
|
383
|
+
requestId: z.ZodString;
|
|
384
|
+
selectionClaim: z.ZodObject<{
|
|
385
|
+
sourceSessionId: z.ZodString;
|
|
386
|
+
anchorSeq: z.ZodNumber;
|
|
387
|
+
displayText: z.ZodString;
|
|
388
|
+
sourceHintText: z.ZodOptional<z.ZodString>;
|
|
389
|
+
prefixText: z.ZodString;
|
|
390
|
+
suffixText: z.ZodString;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
question: z.ZodString;
|
|
393
|
+
mode: z.ZodEnum<{
|
|
394
|
+
observer: "observer";
|
|
395
|
+
"exact-fork": "exact-fork";
|
|
396
|
+
"exact-when-available": "exact-when-available";
|
|
397
|
+
}>;
|
|
398
|
+
}, z.core.$strict>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
265
399
|
action: z.ZodLiteral<"list">;
|
|
266
400
|
sourceSessionId: z.ZodString;
|
|
267
401
|
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -275,6 +409,21 @@ export declare const citeCiterRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
275
409
|
}, z.core.$strict>, z.ZodObject<{
|
|
276
410
|
action: z.ZodLiteral<"stop">;
|
|
277
411
|
topicSessionId: z.ZodString;
|
|
412
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
+
action: z.ZodLiteral<"answer-question">;
|
|
414
|
+
topicSessionId: z.ZodString;
|
|
415
|
+
key: z.ZodString;
|
|
416
|
+
answer: z.ZodObject<{
|
|
417
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
selected: z.ZodArray<z.ZodString>;
|
|
420
|
+
custom: z.ZodOptional<z.ZodString>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
424
|
+
action: z.ZodLiteral<"cancel-question">;
|
|
425
|
+
topicSessionId: z.ZodString;
|
|
426
|
+
key: z.ZodString;
|
|
278
427
|
}, z.core.$strict>, z.ZodObject<{
|
|
279
428
|
action: z.ZodLiteral<"rename">;
|
|
280
429
|
topicSessionId: z.ZodString;
|
|
@@ -289,13 +438,22 @@ export declare const citeCiterRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
289
438
|
confirmSessionId: z.ZodString;
|
|
290
439
|
}, z.core.$strict>, z.ZodObject<{
|
|
291
440
|
action: z.ZodLiteral<"models">;
|
|
441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
442
|
+
action: z.ZodLiteral<"set-model-route">;
|
|
443
|
+
topicSessionId: z.ZodString;
|
|
444
|
+
provider: z.ZodString;
|
|
445
|
+
model: z.ZodString;
|
|
446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
447
|
+
action: z.ZodLiteral<"set-reasoning-effort">;
|
|
448
|
+
topicSessionId: z.ZodString;
|
|
449
|
+
reasoningEffort: z.ZodNullable<z.ZodString>;
|
|
292
450
|
}, z.core.$strict>, z.ZodObject<{
|
|
293
451
|
action: z.ZodLiteral<"select-model">;
|
|
294
452
|
topicSessionId: z.ZodString;
|
|
295
453
|
provider: z.ZodString;
|
|
296
454
|
model: z.ZodString;
|
|
297
455
|
reasoningEffort: z.ZodNullable<z.ZodString>;
|
|
298
|
-
}, z.core.$strict>], "action">;
|
|
456
|
+
}, z.core.$strict>], "action">]>;
|
|
299
457
|
export type CiteCiterRequest = z.infer<typeof citeCiterRequestSchema>;
|
|
300
458
|
/** Strict response union returned by the single Remote command endpoint. */
|
|
301
459
|
export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -339,17 +497,57 @@ export declare const citeCiterResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
339
497
|
stop: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
340
498
|
}, z.core.$strict>;
|
|
341
499
|
}, z.core.$strict>;
|
|
342
|
-
messages: z.ZodArray<z.ZodObject<{
|
|
500
|
+
messages: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
501
|
+
role: z.ZodLiteral<"user">;
|
|
502
|
+
text: z.ZodString;
|
|
343
503
|
id: z.ZodString;
|
|
344
504
|
seq: z.ZodNumber;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
user: "user";
|
|
348
|
-
assistant: "assistant";
|
|
349
|
-
}>;
|
|
505
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
506
|
+
role: z.ZodLiteral<"assistant">;
|
|
350
507
|
text: z.ZodString;
|
|
351
508
|
reasoning: z.ZodNullable<z.ZodString>;
|
|
352
509
|
streaming: z.ZodBoolean;
|
|
510
|
+
id: z.ZodString;
|
|
511
|
+
seq: z.ZodNumber;
|
|
512
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
513
|
+
role: z.ZodLiteral<"context">;
|
|
514
|
+
label: z.ZodString;
|
|
515
|
+
text: z.ZodString;
|
|
516
|
+
id: z.ZodString;
|
|
517
|
+
seq: z.ZodNumber;
|
|
518
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
519
|
+
role: z.ZodLiteral<"tool">;
|
|
520
|
+
name: z.ZodString;
|
|
521
|
+
arguments: z.ZodString;
|
|
522
|
+
result: z.ZodNullable<z.ZodString>;
|
|
523
|
+
isError: z.ZodBoolean;
|
|
524
|
+
running: z.ZodBoolean;
|
|
525
|
+
id: z.ZodString;
|
|
526
|
+
seq: z.ZodNumber;
|
|
527
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
528
|
+
role: z.ZodLiteral<"error">;
|
|
529
|
+
text: z.ZodString;
|
|
530
|
+
bodyRetained: z.ZodBoolean;
|
|
531
|
+
attempt: z.ZodNumber;
|
|
532
|
+
status: z.ZodEnum<{
|
|
533
|
+
failed: "failed";
|
|
534
|
+
stopped: "stopped";
|
|
535
|
+
}>;
|
|
536
|
+
id: z.ZodString;
|
|
537
|
+
seq: z.ZodNumber;
|
|
538
|
+
}, z.core.$strict>], "role">>;
|
|
539
|
+
pendingQuestion: z.ZodNullable<z.ZodObject<{
|
|
540
|
+
key: z.ZodString;
|
|
541
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
542
|
+
id: z.ZodString;
|
|
543
|
+
question: z.ZodString;
|
|
544
|
+
header: z.ZodOptional<z.ZodString>;
|
|
545
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
546
|
+
label: z.ZodString;
|
|
547
|
+
description: z.ZodOptional<z.ZodString>;
|
|
548
|
+
}, z.core.$strict>>>;
|
|
549
|
+
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
550
|
+
}, z.core.$strict>>;
|
|
353
551
|
}, z.core.$strict>>;
|
|
354
552
|
error: z.ZodNullable<z.ZodString>;
|
|
355
553
|
}, z.core.$strict>;
|
|
@@ -14,8 +14,9 @@ export declare const citeCiterRequestDescriptor: {
|
|
|
14
14
|
readonly codec: {
|
|
15
15
|
readonly mode: "strict";
|
|
16
16
|
readonly typeSymbol: "@kirkchinese/dsh-citeciter#CiteCiterRequest";
|
|
17
|
-
readonly schema: import("zod").
|
|
17
|
+
readonly schema: import("zod").ZodUnion<readonly [import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
18
18
|
action: import("zod").ZodLiteral<"create">;
|
|
19
|
+
requestId: import("zod").ZodString;
|
|
19
20
|
citation: import("zod").ZodObject<{
|
|
20
21
|
sourceSessionId: import("zod").ZodString;
|
|
21
22
|
anchorSeq: import("zod").ZodNumber;
|
|
@@ -34,6 +35,23 @@ export declare const citeCiterRequestDescriptor: {
|
|
|
34
35
|
"exact-when-available": "exact-when-available";
|
|
35
36
|
}>;
|
|
36
37
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
38
|
+
action: import("zod").ZodLiteral<"create">;
|
|
39
|
+
requestId: import("zod").ZodString;
|
|
40
|
+
selectionClaim: import("zod").ZodObject<{
|
|
41
|
+
sourceSessionId: import("zod").ZodString;
|
|
42
|
+
anchorSeq: import("zod").ZodNumber;
|
|
43
|
+
displayText: import("zod").ZodString;
|
|
44
|
+
sourceHintText: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
prefixText: import("zod").ZodString;
|
|
46
|
+
suffixText: import("zod").ZodString;
|
|
47
|
+
}, import("zod/v4/core").$strict>;
|
|
48
|
+
question: import("zod").ZodString;
|
|
49
|
+
mode: import("zod").ZodEnum<{
|
|
50
|
+
observer: "observer";
|
|
51
|
+
"exact-fork": "exact-fork";
|
|
52
|
+
"exact-when-available": "exact-when-available";
|
|
53
|
+
}>;
|
|
54
|
+
}, import("zod/v4/core").$strict>]>, import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
37
55
|
action: import("zod").ZodLiteral<"list">;
|
|
38
56
|
sourceSessionId: import("zod").ZodString;
|
|
39
57
|
includeArchived: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -47,6 +65,21 @@ export declare const citeCiterRequestDescriptor: {
|
|
|
47
65
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
48
66
|
action: import("zod").ZodLiteral<"stop">;
|
|
49
67
|
topicSessionId: import("zod").ZodString;
|
|
68
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
69
|
+
action: import("zod").ZodLiteral<"answer-question">;
|
|
70
|
+
topicSessionId: import("zod").ZodString;
|
|
71
|
+
key: import("zod").ZodString;
|
|
72
|
+
answer: import("zod").ZodObject<{
|
|
73
|
+
answers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
74
|
+
id: import("zod").ZodString;
|
|
75
|
+
selected: import("zod").ZodArray<import("zod").ZodString>;
|
|
76
|
+
custom: import("zod").ZodOptional<import("zod").ZodString>;
|
|
77
|
+
}, import("zod/v4/core").$strict>>;
|
|
78
|
+
}, import("zod/v4/core").$strict>;
|
|
79
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
80
|
+
action: import("zod").ZodLiteral<"cancel-question">;
|
|
81
|
+
topicSessionId: import("zod").ZodString;
|
|
82
|
+
key: import("zod").ZodString;
|
|
50
83
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
51
84
|
action: import("zod").ZodLiteral<"rename">;
|
|
52
85
|
topicSessionId: import("zod").ZodString;
|
|
@@ -61,13 +94,22 @@ export declare const citeCiterRequestDescriptor: {
|
|
|
61
94
|
confirmSessionId: import("zod").ZodString;
|
|
62
95
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
63
96
|
action: import("zod").ZodLiteral<"models">;
|
|
97
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
98
|
+
action: import("zod").ZodLiteral<"set-model-route">;
|
|
99
|
+
topicSessionId: import("zod").ZodString;
|
|
100
|
+
provider: import("zod").ZodString;
|
|
101
|
+
model: import("zod").ZodString;
|
|
102
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
103
|
+
action: import("zod").ZodLiteral<"set-reasoning-effort">;
|
|
104
|
+
topicSessionId: import("zod").ZodString;
|
|
105
|
+
reasoningEffort: import("zod").ZodNullable<import("zod").ZodString>;
|
|
64
106
|
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
65
107
|
action: import("zod").ZodLiteral<"select-model">;
|
|
66
108
|
topicSessionId: import("zod").ZodString;
|
|
67
109
|
provider: import("zod").ZodString;
|
|
68
110
|
model: import("zod").ZodString;
|
|
69
111
|
reasoningEffort: import("zod").ZodNullable<import("zod").ZodString>;
|
|
70
|
-
}, import("zod/v4/core").$strict>], "action">;
|
|
112
|
+
}, import("zod/v4/core").$strict>], "action">]>;
|
|
71
113
|
};
|
|
72
114
|
}];
|
|
73
115
|
readonly result: {
|
|
@@ -114,17 +156,57 @@ export declare const citeCiterRequestDescriptor: {
|
|
|
114
156
|
stop: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
115
157
|
}, import("zod/v4/core").$strict>;
|
|
116
158
|
}, import("zod/v4/core").$strict>;
|
|
117
|
-
messages: import("zod").ZodArray<import("zod").ZodObject<{
|
|
159
|
+
messages: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
160
|
+
role: import("zod").ZodLiteral<"user">;
|
|
161
|
+
text: import("zod").ZodString;
|
|
118
162
|
id: import("zod").ZodString;
|
|
119
163
|
seq: import("zod").ZodNumber;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
user: "user";
|
|
123
|
-
assistant: "assistant";
|
|
124
|
-
}>;
|
|
164
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
165
|
+
role: import("zod").ZodLiteral<"assistant">;
|
|
125
166
|
text: import("zod").ZodString;
|
|
126
167
|
reasoning: import("zod").ZodNullable<import("zod").ZodString>;
|
|
127
168
|
streaming: import("zod").ZodBoolean;
|
|
169
|
+
id: import("zod").ZodString;
|
|
170
|
+
seq: import("zod").ZodNumber;
|
|
171
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
172
|
+
role: import("zod").ZodLiteral<"context">;
|
|
173
|
+
label: import("zod").ZodString;
|
|
174
|
+
text: import("zod").ZodString;
|
|
175
|
+
id: import("zod").ZodString;
|
|
176
|
+
seq: import("zod").ZodNumber;
|
|
177
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
178
|
+
role: import("zod").ZodLiteral<"tool">;
|
|
179
|
+
name: import("zod").ZodString;
|
|
180
|
+
arguments: import("zod").ZodString;
|
|
181
|
+
result: import("zod").ZodNullable<import("zod").ZodString>;
|
|
182
|
+
isError: import("zod").ZodBoolean;
|
|
183
|
+
running: import("zod").ZodBoolean;
|
|
184
|
+
id: import("zod").ZodString;
|
|
185
|
+
seq: import("zod").ZodNumber;
|
|
186
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
187
|
+
role: import("zod").ZodLiteral<"error">;
|
|
188
|
+
text: import("zod").ZodString;
|
|
189
|
+
bodyRetained: import("zod").ZodBoolean;
|
|
190
|
+
attempt: import("zod").ZodNumber;
|
|
191
|
+
status: import("zod").ZodEnum<{
|
|
192
|
+
failed: "failed";
|
|
193
|
+
stopped: "stopped";
|
|
194
|
+
}>;
|
|
195
|
+
id: import("zod").ZodString;
|
|
196
|
+
seq: import("zod").ZodNumber;
|
|
197
|
+
}, import("zod/v4/core").$strict>], "role">>;
|
|
198
|
+
pendingQuestion: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
199
|
+
key: import("zod").ZodString;
|
|
200
|
+
questions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
201
|
+
id: import("zod").ZodString;
|
|
202
|
+
question: import("zod").ZodString;
|
|
203
|
+
header: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
options: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
205
|
+
label: import("zod").ZodString;
|
|
206
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
207
|
+
}, import("zod/v4/core").$strict>>>;
|
|
208
|
+
multiSelect: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
209
|
+
}, import("zod/v4/core").$strict>>;
|
|
128
210
|
}, import("zod/v4/core").$strict>>;
|
|
129
211
|
error: import("zod").ZodNullable<import("zod").ZodString>;
|
|
130
212
|
}, import("zod/v4/core").$strict>;
|