@kitnai/chat 0.6.0 → 0.7.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.
Files changed (42) hide show
  1. package/dist/custom-elements.json +125 -73
  2. package/dist/kitn-chat.es.js +1 -1
  3. package/dist/llms/llms-full.txt +24 -24
  4. package/frameworks/react/index.tsx +46 -24
  5. package/llms-full.txt +24 -24
  6. package/package.json +1 -1
  7. package/src/elements/chat-workspace.tsx +28 -2
  8. package/src/elements/chat.tsx +22 -1
  9. package/src/elements/compiled.css +1 -1
  10. package/src/elements/conversation-list.tsx +10 -1
  11. package/src/elements/element-meta.json +2003 -0
  12. package/src/elements/kitn-attachments.stories.tsx +9 -0
  13. package/src/elements/kitn-chain-of-thought.stories.tsx +9 -0
  14. package/src/elements/kitn-chat-scope-picker.stories.tsx +9 -0
  15. package/src/elements/kitn-chat-workspace.stories.tsx +64 -14
  16. package/src/elements/kitn-chat.stories.tsx +58 -5
  17. package/src/elements/kitn-checkpoint.stories.tsx +9 -0
  18. package/src/elements/kitn-code-block.stories.tsx +9 -0
  19. package/src/elements/kitn-context-meter.stories.tsx +9 -0
  20. package/src/elements/kitn-conversation-list.stories.tsx +31 -10
  21. package/src/elements/kitn-empty.stories.tsx +9 -0
  22. package/src/elements/kitn-feedback-bar.stories.tsx +9 -0
  23. package/src/elements/kitn-file-upload.stories.tsx +9 -0
  24. package/src/elements/kitn-image.stories.tsx +9 -0
  25. package/src/elements/kitn-loader.stories.tsx +9 -0
  26. package/src/elements/kitn-markdown.stories.tsx +9 -0
  27. package/src/elements/kitn-message-skills.stories.tsx +9 -0
  28. package/src/elements/kitn-message.stories.tsx +9 -0
  29. package/src/elements/kitn-model-switcher.stories.tsx +9 -0
  30. package/src/elements/kitn-prompt-input.stories.tsx +35 -5
  31. package/src/elements/kitn-prompt-suggestions.stories.tsx +9 -0
  32. package/src/elements/kitn-reasoning.stories.tsx +9 -0
  33. package/src/elements/kitn-response-stream.stories.tsx +9 -0
  34. package/src/elements/kitn-source-list.stories.tsx +9 -0
  35. package/src/elements/kitn-source.stories.tsx +9 -0
  36. package/src/elements/kitn-text-shimmer.stories.tsx +9 -0
  37. package/src/elements/kitn-thinking-bar.stories.tsx +9 -0
  38. package/src/elements/kitn-tool.stories.tsx +9 -0
  39. package/src/elements/kitn-voice-input.stories.tsx +9 -0
  40. package/src/elements/prompt-input.tsx +2 -2
  41. package/src/stories/docs/element-controls.ts +28 -0
  42. package/src/stories/docs/element-spec.tsx +86 -0
@@ -0,0 +1,2003 @@
1
+ [
2
+ {
3
+ "tag": "kitn-attachments",
4
+ "className": "KitnAttachmentsElement",
5
+ "props": [
6
+ {
7
+ "name": "items",
8
+ "type": "{ id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]",
9
+ "optional": false,
10
+ "scalar": false,
11
+ "description": "The attachments to render. Set as a JS property (array).",
12
+ "default": "[]"
13
+ },
14
+ {
15
+ "name": "variant",
16
+ "type": "undefined | \"grid\" | \"inline\" | \"list\"",
17
+ "optional": true,
18
+ "scalar": true,
19
+ "description": "Layout: `grid` = visual tiles, `inline` = icon + label chips, `list` = rows.",
20
+ "default": "'grid'"
21
+ },
22
+ {
23
+ "name": "hoverCard",
24
+ "type": "undefined | false | true",
25
+ "optional": true,
26
+ "scalar": true,
27
+ "description": "Wrap each item in a hover card that previews its details.",
28
+ "default": "false"
29
+ },
30
+ {
31
+ "name": "removable",
32
+ "type": "undefined | false | true",
33
+ "optional": true,
34
+ "scalar": true,
35
+ "description": "Show a remove button per item; clicking it fires a `remove` event.",
36
+ "default": "false"
37
+ },
38
+ {
39
+ "name": "showMediaType",
40
+ "type": "undefined | false | true",
41
+ "optional": true,
42
+ "scalar": true,
43
+ "description": "Also show the media type beneath the filename (non-grid variants).",
44
+ "default": "false"
45
+ },
46
+ {
47
+ "name": "emptyText",
48
+ "type": "undefined | string",
49
+ "optional": true,
50
+ "scalar": true,
51
+ "description": "Text shown when `items` is empty."
52
+ }
53
+ ],
54
+ "events": [
55
+ {
56
+ "name": "remove",
57
+ "detail": "{ id: string }",
58
+ "description": "A remove button was clicked."
59
+ }
60
+ ],
61
+ "composedFrom": [
62
+ {
63
+ "name": "Attachments",
64
+ "group": "Components",
65
+ "storyId": "components-attachments--docs"
66
+ },
67
+ {
68
+ "name": "Attachment",
69
+ "group": "Components",
70
+ "storyId": "components-attachment--docs"
71
+ },
72
+ {
73
+ "name": "AttachmentPreview",
74
+ "group": "Components",
75
+ "storyId": "components-attachmentpreview--docs"
76
+ },
77
+ {
78
+ "name": "AttachmentInfo",
79
+ "group": "Components",
80
+ "storyId": "components-attachmentinfo--docs"
81
+ },
82
+ {
83
+ "name": "AttachmentRemove",
84
+ "group": "Components",
85
+ "storyId": "components-attachmentremove--docs"
86
+ },
87
+ {
88
+ "name": "AttachmentHoverCard",
89
+ "group": "Components",
90
+ "storyId": "components-attachmenthovercard--docs"
91
+ },
92
+ {
93
+ "name": "AttachmentHoverCardTrigger",
94
+ "group": "Components",
95
+ "storyId": "components-attachmenthovercardtrigger--docs"
96
+ },
97
+ {
98
+ "name": "AttachmentHoverCardContent",
99
+ "group": "Components",
100
+ "storyId": "components-attachmenthovercardcontent--docs"
101
+ },
102
+ {
103
+ "name": "AttachmentEmpty",
104
+ "group": "Components",
105
+ "storyId": "components-attachmentempty--docs"
106
+ }
107
+ ],
108
+ "tokens": []
109
+ },
110
+ {
111
+ "tag": "kitn-chain-of-thought",
112
+ "className": "KitnChainOfThoughtElement",
113
+ "props": [
114
+ {
115
+ "name": "steps",
116
+ "type": "{ label: string; content?: undefined | string }[]",
117
+ "optional": false,
118
+ "scalar": false,
119
+ "description": "The reasoning steps. Set as a JS property. Compound sub-parts collapse to this one data model (Route 1).",
120
+ "default": "[]"
121
+ }
122
+ ],
123
+ "events": [],
124
+ "composedFrom": [
125
+ {
126
+ "name": "ChainOfThought",
127
+ "group": "Components",
128
+ "storyId": "components-chainofthought--docs"
129
+ },
130
+ {
131
+ "name": "ChainOfThoughtStep",
132
+ "group": "Components",
133
+ "storyId": "components-chainofthoughtstep--docs"
134
+ },
135
+ {
136
+ "name": "ChainOfThoughtTrigger",
137
+ "group": "Components",
138
+ "storyId": "components-chainofthoughttrigger--docs"
139
+ },
140
+ {
141
+ "name": "ChainOfThoughtContent",
142
+ "group": "Components",
143
+ "storyId": "components-chainofthoughtcontent--docs"
144
+ },
145
+ {
146
+ "name": "ChainOfThoughtItem",
147
+ "group": "Components",
148
+ "storyId": "components-chainofthoughtitem--docs"
149
+ }
150
+ ],
151
+ "tokens": []
152
+ },
153
+ {
154
+ "tag": "kitn-chat",
155
+ "className": "KitnChatElement",
156
+ "props": [
157
+ {
158
+ "name": "messages",
159
+ "type": "{ id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }[]",
160
+ "optional": false,
161
+ "scalar": false,
162
+ "description": "The full message thread to render, newest last. Each entry carries its role, content, and optional reasoning/tools/attachments/actions. Set as a JS property (`el.messages = [...]`).",
163
+ "default": "[]"
164
+ },
165
+ {
166
+ "name": "value",
167
+ "type": "undefined | string",
168
+ "optional": true,
169
+ "scalar": true,
170
+ "description": "Controlled value of the input. When set, the host owns the input text and must update it on `valuechange`; leave unset for uncontrolled behavior."
171
+ },
172
+ {
173
+ "name": "placeholder",
174
+ "type": "undefined | string",
175
+ "optional": true,
176
+ "scalar": true,
177
+ "description": "Placeholder text shown in the empty input.",
178
+ "default": "'Send a message...'"
179
+ },
180
+ {
181
+ "name": "loading",
182
+ "type": "undefined | false | true",
183
+ "optional": true,
184
+ "scalar": true,
185
+ "description": "When true, shows the loading/streaming state and disables submit (use while awaiting the assistant's reply).",
186
+ "default": "false"
187
+ },
188
+ {
189
+ "name": "suggestions",
190
+ "type": "undefined | string[]",
191
+ "optional": true,
192
+ "scalar": false,
193
+ "description": "Starter prompts shown above the input when the thread is empty. Clicking one follows `suggestionMode`. Set as a JS property."
194
+ },
195
+ {
196
+ "name": "suggestionMode",
197
+ "type": "undefined | \"submit\" | \"fill\"",
198
+ "optional": true,
199
+ "scalar": true,
200
+ "description": "What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input.",
201
+ "default": "'submit'"
202
+ },
203
+ {
204
+ "name": "proseSize",
205
+ "type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
206
+ "optional": true,
207
+ "scalar": true,
208
+ "description": "Body/prose font scale for rendered markdown (`'xs' | 'sm' | 'base' | 'lg'`). Defaults to `'sm'`.",
209
+ "default": "'sm'"
210
+ },
211
+ {
212
+ "name": "codeTheme",
213
+ "type": "undefined | string",
214
+ "optional": true,
215
+ "scalar": true,
216
+ "description": "Shiki theme name for syntax-highlighted code blocks (e.g. `'github-dark-dimmed'`).",
217
+ "default": "'github-dark-dimmed'"
218
+ },
219
+ {
220
+ "name": "codeHighlight",
221
+ "type": "undefined | false | true",
222
+ "optional": true,
223
+ "scalar": true,
224
+ "description": "Enable Shiki syntax highlighting in code blocks. Turn off to render plain `<pre>` blocks (lighter, no highlighter load). Default true.",
225
+ "default": "true"
226
+ },
227
+ {
228
+ "name": "chatTitle",
229
+ "type": "undefined | string",
230
+ "optional": true,
231
+ "scalar": true,
232
+ "description": "Optional header title shown on the left of the header."
233
+ },
234
+ {
235
+ "name": "models",
236
+ "type": "undefined | { id: string; name: string; provider?: undefined | string }[]",
237
+ "optional": true,
238
+ "scalar": false,
239
+ "description": "Optional model list. When set (>1 model) a ModelSwitcher is shown in the header and a `modelchange` event fires on selection."
240
+ },
241
+ {
242
+ "name": "currentModel",
243
+ "type": "undefined | string",
244
+ "optional": true,
245
+ "scalar": true,
246
+ "description": "The currently selected model id (pairs with `models`)."
247
+ },
248
+ {
249
+ "name": "context",
250
+ "type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; estimatedCost?: undefined | number }",
251
+ "optional": true,
252
+ "scalar": false,
253
+ "description": "Optional context-window token usage. When set, a Context token meter is shown in the header."
254
+ },
255
+ {
256
+ "name": "scrollButton",
257
+ "type": "undefined | false | true",
258
+ "optional": true,
259
+ "scalar": true,
260
+ "description": "Show the scroll-to-bottom button inside the scroll area. Default true.",
261
+ "default": "true"
262
+ },
263
+ {
264
+ "name": "search",
265
+ "type": "undefined | false | true",
266
+ "optional": true,
267
+ "scalar": true,
268
+ "description": "Show a Search (Globe) button in the input toolbar; fires a `search` event.",
269
+ "default": "false"
270
+ },
271
+ {
272
+ "name": "voice",
273
+ "type": "undefined | false | true",
274
+ "optional": true,
275
+ "scalar": true,
276
+ "description": "Show a Voice (Mic) button in the input toolbar; fires a `voice` event.",
277
+ "default": "false"
278
+ },
279
+ {
280
+ "name": "slashCommands",
281
+ "type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
282
+ "optional": true,
283
+ "scalar": false,
284
+ "description": "Slash commands — when set, typing `/` in the input opens the command palette and fires `slashselect`. Set as a JS property."
285
+ },
286
+ {
287
+ "name": "slashActiveIds",
288
+ "type": "undefined | string[]",
289
+ "optional": true,
290
+ "scalar": false,
291
+ "description": "Command ids to highlight as active in the palette."
292
+ },
293
+ {
294
+ "name": "slashCompact",
295
+ "type": "undefined | false | true",
296
+ "optional": true,
297
+ "scalar": true,
298
+ "description": "Single-line palette rows.",
299
+ "default": "false"
300
+ }
301
+ ],
302
+ "events": [
303
+ {
304
+ "name": "messageaction",
305
+ "detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
306
+ "description": "An action button on a message was clicked."
307
+ },
308
+ {
309
+ "name": "modelchange",
310
+ "detail": "{ modelId: string }",
311
+ "description": "The header model switcher changed."
312
+ },
313
+ {
314
+ "name": "search",
315
+ "detail": "Record<string, never>",
316
+ "description": "The Search button was clicked."
317
+ },
318
+ {
319
+ "name": "slashselect",
320
+ "detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
321
+ "description": "A slash command was chosen from the palette."
322
+ },
323
+ {
324
+ "name": "submit",
325
+ "detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
326
+ "description": "User submitted a message."
327
+ },
328
+ {
329
+ "name": "suggestionclick",
330
+ "detail": "{ value: string }",
331
+ "description": "A suggestion chip was clicked (only in `suggestion-mode=\"fill\"`)."
332
+ },
333
+ {
334
+ "name": "valuechange",
335
+ "detail": "{ value: string }",
336
+ "description": "Fired on every input change."
337
+ },
338
+ {
339
+ "name": "voice",
340
+ "detail": "Record<string, never>",
341
+ "description": "The Mic / voice button was clicked."
342
+ }
343
+ ],
344
+ "composedFrom": [
345
+ {
346
+ "name": "ChatThread",
347
+ "group": "Components",
348
+ "storyId": "components-chatthread--docs"
349
+ }
350
+ ],
351
+ "tokens": []
352
+ },
353
+ {
354
+ "tag": "kitn-chat-scope-picker",
355
+ "className": "KitnChatScopePickerElement",
356
+ "props": [
357
+ {
358
+ "name": "availableAuthors",
359
+ "type": "string[]",
360
+ "optional": false,
361
+ "scalar": false,
362
+ "description": "Authors to offer as scope filters. Set as a JS property.",
363
+ "default": "[]"
364
+ },
365
+ {
366
+ "name": "availableTags",
367
+ "type": "string[]",
368
+ "optional": false,
369
+ "scalar": false,
370
+ "description": "Tags to offer as scope filters. Set as a JS property.",
371
+ "default": "[]"
372
+ },
373
+ {
374
+ "name": "currentLabel",
375
+ "type": "undefined | string",
376
+ "optional": true,
377
+ "scalar": true,
378
+ "description": "The label shown on the trigger for the active scope.",
379
+ "default": "'All Content'"
380
+ }
381
+ ],
382
+ "events": [
383
+ {
384
+ "name": "scopechange",
385
+ "detail": "{ filters: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }",
386
+ "description": "A scope was chosen (`undefined` filters = \"All Content\")."
387
+ }
388
+ ],
389
+ "composedFrom": [
390
+ {
391
+ "name": "ChatScopePicker",
392
+ "group": "Components",
393
+ "storyId": "components-chatscopepicker--docs"
394
+ }
395
+ ],
396
+ "tokens": []
397
+ },
398
+ {
399
+ "tag": "kitn-chat-workspace",
400
+ "className": "KitnChatWorkspaceElement",
401
+ "props": [
402
+ {
403
+ "name": "groups",
404
+ "type": "{ id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[]",
405
+ "optional": false,
406
+ "scalar": false,
407
+ "description": "Pre-bucketed conversation groups for the sidebar. Set as a JS property.",
408
+ "default": "[]"
409
+ },
410
+ {
411
+ "name": "conversations",
412
+ "type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
413
+ "optional": false,
414
+ "scalar": false,
415
+ "description": "Flat conversation list (auto-bucketed if `groups` is empty). Set as a JS property.",
416
+ "default": "[]"
417
+ },
418
+ {
419
+ "name": "activeId",
420
+ "type": "undefined | string",
421
+ "optional": true,
422
+ "scalar": true,
423
+ "description": "Id of the open conversation, highlighted in the sidebar."
424
+ },
425
+ {
426
+ "name": "messages",
427
+ "type": "{ id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }[]",
428
+ "optional": false,
429
+ "scalar": false,
430
+ "description": "The active conversation's message thread, newest last. Set as a JS property.",
431
+ "default": "[]"
432
+ },
433
+ {
434
+ "name": "value",
435
+ "type": "undefined | string",
436
+ "optional": true,
437
+ "scalar": true,
438
+ "description": ""
439
+ },
440
+ {
441
+ "name": "placeholder",
442
+ "type": "undefined | string",
443
+ "optional": true,
444
+ "scalar": true,
445
+ "description": "",
446
+ "default": "'Send a message...'"
447
+ },
448
+ {
449
+ "name": "loading",
450
+ "type": "undefined | false | true",
451
+ "optional": true,
452
+ "scalar": true,
453
+ "description": "",
454
+ "default": "false"
455
+ },
456
+ {
457
+ "name": "suggestions",
458
+ "type": "undefined | string[]",
459
+ "optional": true,
460
+ "scalar": false,
461
+ "description": ""
462
+ },
463
+ {
464
+ "name": "suggestionMode",
465
+ "type": "undefined | \"submit\" | \"fill\"",
466
+ "optional": true,
467
+ "scalar": true,
468
+ "description": "",
469
+ "default": "'submit'"
470
+ },
471
+ {
472
+ "name": "proseSize",
473
+ "type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
474
+ "optional": true,
475
+ "scalar": true,
476
+ "description": "",
477
+ "default": "'sm'"
478
+ },
479
+ {
480
+ "name": "codeTheme",
481
+ "type": "undefined | string",
482
+ "optional": true,
483
+ "scalar": true,
484
+ "description": "",
485
+ "default": "'github-dark-dimmed'"
486
+ },
487
+ {
488
+ "name": "codeHighlight",
489
+ "type": "undefined | false | true",
490
+ "optional": true,
491
+ "scalar": true,
492
+ "description": "",
493
+ "default": "true"
494
+ },
495
+ {
496
+ "name": "chatTitle",
497
+ "type": "undefined | string",
498
+ "optional": true,
499
+ "scalar": true,
500
+ "description": ""
501
+ },
502
+ {
503
+ "name": "models",
504
+ "type": "undefined | { id: string; name: string; provider?: undefined | string }[]",
505
+ "optional": true,
506
+ "scalar": false,
507
+ "description": ""
508
+ },
509
+ {
510
+ "name": "currentModel",
511
+ "type": "undefined | string",
512
+ "optional": true,
513
+ "scalar": true,
514
+ "description": ""
515
+ },
516
+ {
517
+ "name": "context",
518
+ "type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; estimatedCost?: undefined | number }",
519
+ "optional": true,
520
+ "scalar": false,
521
+ "description": ""
522
+ },
523
+ {
524
+ "name": "scrollButton",
525
+ "type": "undefined | false | true",
526
+ "optional": true,
527
+ "scalar": true,
528
+ "description": "",
529
+ "default": "true"
530
+ },
531
+ {
532
+ "name": "search",
533
+ "type": "undefined | false | true",
534
+ "optional": true,
535
+ "scalar": true,
536
+ "description": "",
537
+ "default": "false"
538
+ },
539
+ {
540
+ "name": "voice",
541
+ "type": "undefined | false | true",
542
+ "optional": true,
543
+ "scalar": true,
544
+ "description": "",
545
+ "default": "false"
546
+ },
547
+ {
548
+ "name": "slashCommands",
549
+ "type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
550
+ "optional": true,
551
+ "scalar": false,
552
+ "description": ""
553
+ },
554
+ {
555
+ "name": "slashActiveIds",
556
+ "type": "undefined | string[]",
557
+ "optional": true,
558
+ "scalar": false,
559
+ "description": ""
560
+ },
561
+ {
562
+ "name": "slashCompact",
563
+ "type": "undefined | false | true",
564
+ "optional": true,
565
+ "scalar": true,
566
+ "description": "",
567
+ "default": "false"
568
+ },
569
+ {
570
+ "name": "sidebarWidth",
571
+ "type": "undefined | number",
572
+ "optional": true,
573
+ "scalar": true,
574
+ "description": "Sidebar default width as a percent of the workspace (default 22).",
575
+ "default": "22"
576
+ },
577
+ {
578
+ "name": "sidebarMinWidth",
579
+ "type": "undefined | number",
580
+ "optional": true,
581
+ "scalar": true,
582
+ "description": "Sidebar min width in px (default 200).",
583
+ "default": "200"
584
+ },
585
+ {
586
+ "name": "sidebarMaxWidth",
587
+ "type": "undefined | number",
588
+ "optional": true,
589
+ "scalar": true,
590
+ "description": "Sidebar max width in px (default 420).",
591
+ "default": "420"
592
+ },
593
+ {
594
+ "name": "sidebarCollapsed",
595
+ "type": "undefined | false | true",
596
+ "optional": true,
597
+ "scalar": true,
598
+ "description": "Initial collapsed state of the sidebar (default false).",
599
+ "default": "false"
600
+ }
601
+ ],
602
+ "events": [
603
+ {
604
+ "name": "conversationselect",
605
+ "detail": "{ id: string }",
606
+ "description": "A conversation was selected in the sidebar."
607
+ },
608
+ {
609
+ "name": "messageaction",
610
+ "detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
611
+ "description": "An action button on a message was clicked."
612
+ },
613
+ {
614
+ "name": "modelchange",
615
+ "detail": "{ modelId: string }",
616
+ "description": "The header model switcher changed."
617
+ },
618
+ {
619
+ "name": "newchat",
620
+ "detail": "Record<string, never>",
621
+ "description": "The \"New chat\" button was clicked."
622
+ },
623
+ {
624
+ "name": "search",
625
+ "detail": "Record<string, never>",
626
+ "description": "The Search button was clicked."
627
+ },
628
+ {
629
+ "name": "sidebartoggle",
630
+ "detail": "{ collapsed: false | true }",
631
+ "description": "The sidebar was collapsed or expanded."
632
+ },
633
+ {
634
+ "name": "slashselect",
635
+ "detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
636
+ "description": "A slash command was chosen from the palette."
637
+ },
638
+ {
639
+ "name": "submit",
640
+ "detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
641
+ "description": "User submitted a message."
642
+ },
643
+ {
644
+ "name": "suggestionclick",
645
+ "detail": "{ value: string }",
646
+ "description": "A suggestion chip was clicked (only in `suggestion-mode=\"fill\"`)."
647
+ },
648
+ {
649
+ "name": "valuechange",
650
+ "detail": "{ value: string }",
651
+ "description": "Fired on every input change."
652
+ },
653
+ {
654
+ "name": "voice",
655
+ "detail": "Record<string, never>",
656
+ "description": "The Mic / voice button was clicked."
657
+ }
658
+ ],
659
+ "composedFrom": [
660
+ {
661
+ "name": "ChatThread",
662
+ "group": "Components",
663
+ "storyId": "components-chatthread--docs"
664
+ },
665
+ {
666
+ "name": "ConversationList",
667
+ "group": "Components",
668
+ "storyId": "components-conversationlist--docs"
669
+ },
670
+ {
671
+ "name": "ResizablePanelGroup",
672
+ "group": "UI",
673
+ "storyId": "ui-resizablepanelgroup--docs"
674
+ },
675
+ {
676
+ "name": "ResizablePanel",
677
+ "group": "UI",
678
+ "storyId": "ui-resizablepanel--docs"
679
+ },
680
+ {
681
+ "name": "ResizableHandle",
682
+ "group": "UI",
683
+ "storyId": "ui-resizablehandle--docs"
684
+ },
685
+ {
686
+ "name": "Button",
687
+ "group": "UI",
688
+ "storyId": "ui-button--docs"
689
+ }
690
+ ],
691
+ "tokens": []
692
+ },
693
+ {
694
+ "tag": "kitn-checkpoint",
695
+ "className": "KitnCheckpointElement",
696
+ "props": [
697
+ {
698
+ "name": "label",
699
+ "type": "undefined | string",
700
+ "optional": true,
701
+ "scalar": true,
702
+ "description": "Optional text beside the icon."
703
+ },
704
+ {
705
+ "name": "tooltip",
706
+ "type": "undefined | string",
707
+ "optional": true,
708
+ "scalar": true,
709
+ "description": "Tooltip on hover."
710
+ },
711
+ {
712
+ "name": "variant",
713
+ "type": "undefined | \"ghost\" | \"default\" | \"outline\"",
714
+ "optional": true,
715
+ "scalar": true,
716
+ "description": "Visual button style.",
717
+ "default": "'ghost'"
718
+ },
719
+ {
720
+ "name": "size",
721
+ "type": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\"",
722
+ "optional": true,
723
+ "scalar": true,
724
+ "description": "Button size (use an `icon*` size for an icon-only checkpoint).",
725
+ "default": "'sm'"
726
+ }
727
+ ],
728
+ "events": [
729
+ {
730
+ "name": "select",
731
+ "detail": null,
732
+ "description": "The checkpoint was clicked."
733
+ }
734
+ ],
735
+ "composedFrom": [
736
+ {
737
+ "name": "Checkpoint",
738
+ "group": "Components",
739
+ "storyId": "components-checkpoint--docs"
740
+ },
741
+ {
742
+ "name": "CheckpointIcon",
743
+ "group": "Components",
744
+ "storyId": "components-checkpointicon--docs"
745
+ },
746
+ {
747
+ "name": "CheckpointTrigger",
748
+ "group": "Components",
749
+ "storyId": "components-checkpointtrigger--docs"
750
+ }
751
+ ],
752
+ "tokens": []
753
+ },
754
+ {
755
+ "tag": "kitn-code-block",
756
+ "className": "KitnCodeBlockElement",
757
+ "props": [
758
+ {
759
+ "name": "code",
760
+ "type": "string",
761
+ "optional": false,
762
+ "scalar": true,
763
+ "description": "The source code to render.",
764
+ "default": "''"
765
+ },
766
+ {
767
+ "name": "language",
768
+ "type": "undefined | string",
769
+ "optional": true,
770
+ "scalar": true,
771
+ "description": "Language grammar (e.g. `js`, `python`). Defaults to `tsx`."
772
+ },
773
+ {
774
+ "name": "codeTheme",
775
+ "type": "undefined | string",
776
+ "optional": true,
777
+ "scalar": true,
778
+ "description": "Shiki theme name.",
779
+ "default": "'github-dark-dimmed'"
780
+ },
781
+ {
782
+ "name": "codeHighlight",
783
+ "type": "undefined | false | true",
784
+ "optional": true,
785
+ "scalar": true,
786
+ "description": "Disable syntax highlighting (renders plain text, no Shiki).",
787
+ "default": "true"
788
+ },
789
+ {
790
+ "name": "proseSize",
791
+ "type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
792
+ "optional": true,
793
+ "scalar": true,
794
+ "description": "Code text sizing.",
795
+ "default": "'sm'"
796
+ }
797
+ ],
798
+ "events": [],
799
+ "composedFrom": [
800
+ {
801
+ "name": "CodeBlock",
802
+ "group": "Components",
803
+ "storyId": "components-codeblock--docs"
804
+ },
805
+ {
806
+ "name": "CodeBlockCode",
807
+ "group": "Components",
808
+ "storyId": "components-codeblockcode--docs"
809
+ }
810
+ ],
811
+ "tokens": [
812
+ "--color-code-foreground"
813
+ ]
814
+ },
815
+ {
816
+ "tag": "kitn-context-meter",
817
+ "className": "KitnContextMeterElement",
818
+ "props": [
819
+ {
820
+ "name": "context",
821
+ "type": "undefined | { usedTokens: number; maxTokens: number; inputTokens?: undefined | number; outputTokens?: undefined | number; reasoningTokens?: undefined | number; cacheTokens?: undefined | number; estimatedCost?: undefined | number }",
822
+ "optional": true,
823
+ "scalar": false,
824
+ "description": "Token-usage data. Set as a JS property."
825
+ }
826
+ ],
827
+ "events": [],
828
+ "composedFrom": [
829
+ {
830
+ "name": "Context",
831
+ "group": "Components",
832
+ "storyId": "components-context--docs"
833
+ },
834
+ {
835
+ "name": "ContextTrigger",
836
+ "group": "Components",
837
+ "storyId": "components-contexttrigger--docs"
838
+ },
839
+ {
840
+ "name": "ContextContent",
841
+ "group": "Components",
842
+ "storyId": "components-contextcontent--docs"
843
+ },
844
+ {
845
+ "name": "ContextContentHeader",
846
+ "group": "Components",
847
+ "storyId": "components-contextcontentheader--docs"
848
+ },
849
+ {
850
+ "name": "ContextContentBody",
851
+ "group": "Components",
852
+ "storyId": "components-contextcontentbody--docs"
853
+ },
854
+ {
855
+ "name": "ContextContentFooter",
856
+ "group": "Components",
857
+ "storyId": "components-contextcontentfooter--docs"
858
+ },
859
+ {
860
+ "name": "ContextInputUsage",
861
+ "group": "Components",
862
+ "storyId": "components-contextinputusage--docs"
863
+ },
864
+ {
865
+ "name": "ContextOutputUsage",
866
+ "group": "Components",
867
+ "storyId": "components-contextoutputusage--docs"
868
+ },
869
+ {
870
+ "name": "ContextReasoningUsage",
871
+ "group": "Components",
872
+ "storyId": "components-contextreasoningusage--docs"
873
+ },
874
+ {
875
+ "name": "ContextCacheUsage",
876
+ "group": "Components",
877
+ "storyId": "components-contextcacheusage--docs"
878
+ }
879
+ ],
880
+ "tokens": []
881
+ },
882
+ {
883
+ "tag": "kitn-conversation-list",
884
+ "className": "KitnConversationListElement",
885
+ "props": [
886
+ {
887
+ "name": "groups",
888
+ "type": "{ id: string; userId?: undefined | string; teamId?: undefined | string; name: string; sortOrder: number; createdAt: string }[]",
889
+ "optional": false,
890
+ "scalar": false,
891
+ "description": "Pre-bucketed conversation groups (e.g. \"Today\", \"Yesterday\"), each with its own conversations. Use this when you want to control the grouping/headers yourself; otherwise pass a flat `conversations` array. Set as a JS property.",
892
+ "default": "[]"
893
+ },
894
+ {
895
+ "name": "conversations",
896
+ "type": "{ id: string; title: string; groupId?: undefined | string; scope: { type: \"document\" | \"collection\"; documentId?: undefined | string; filters?: undefined | { tags?: undefined | string[]; authors?: undefined | string[]; contentType?: undefined | \"transcript\" | \"markdown\"; dateRange?: undefined | { from: string; to: string } } }; messageCount: number; lastMessageAt: string; updatedAt: string }[]",
897
+ "optional": false,
898
+ "scalar": false,
899
+ "description": "A flat list of conversation summaries; the component buckets them by recency for you. Ignored when `groups` is provided. Set as a JS property.",
900
+ "default": "[]"
901
+ },
902
+ {
903
+ "name": "activeId",
904
+ "type": "undefined | string",
905
+ "optional": true,
906
+ "scalar": true,
907
+ "description": "The id of the currently-open conversation, highlighted in the list."
908
+ }
909
+ ],
910
+ "events": [
911
+ {
912
+ "name": "newchat",
913
+ "detail": "Record<string, never>",
914
+ "description": "The \"New chat\" button was clicked."
915
+ },
916
+ {
917
+ "name": "select",
918
+ "detail": "{ id: string }",
919
+ "description": "A conversation was selected."
920
+ },
921
+ {
922
+ "name": "togglesidebar",
923
+ "detail": "Record<string, never>",
924
+ "description": "The sidebar toggle was clicked."
925
+ }
926
+ ],
927
+ "composedFrom": [
928
+ {
929
+ "name": "ConversationList",
930
+ "group": "Components",
931
+ "storyId": "components-conversationlist--docs"
932
+ }
933
+ ],
934
+ "tokens": [
935
+ "--color-sidebar",
936
+ "--color-scrollbar-thumb"
937
+ ]
938
+ },
939
+ {
940
+ "tag": "kitn-empty",
941
+ "className": "KitnEmptyElement",
942
+ "props": [
943
+ {
944
+ "name": "emptyTitle",
945
+ "type": "undefined | string",
946
+ "optional": true,
947
+ "scalar": true,
948
+ "description": "Title text. Attribute: `empty-title` (`title` is a global HTML attribute).",
949
+ "default": "''"
950
+ },
951
+ {
952
+ "name": "description",
953
+ "type": "undefined | string",
954
+ "optional": true,
955
+ "scalar": true,
956
+ "description": "Description text.",
957
+ "default": "''"
958
+ }
959
+ ],
960
+ "events": [],
961
+ "composedFrom": [
962
+ {
963
+ "name": "Empty",
964
+ "group": "Components",
965
+ "storyId": "components-empty--docs"
966
+ },
967
+ {
968
+ "name": "EmptyHeader",
969
+ "group": "Components",
970
+ "storyId": "components-emptyheader--docs"
971
+ },
972
+ {
973
+ "name": "EmptyMedia",
974
+ "group": "Components",
975
+ "storyId": "components-emptymedia--docs"
976
+ },
977
+ {
978
+ "name": "EmptyTitle",
979
+ "group": "Components",
980
+ "storyId": "components-emptytitle--docs"
981
+ },
982
+ {
983
+ "name": "EmptyDescription",
984
+ "group": "Components",
985
+ "storyId": "components-emptydescription--docs"
986
+ },
987
+ {
988
+ "name": "EmptyContent",
989
+ "group": "Components",
990
+ "storyId": "components-emptycontent--docs"
991
+ }
992
+ ],
993
+ "tokens": []
994
+ },
995
+ {
996
+ "tag": "kitn-feedback-bar",
997
+ "className": "KitnFeedbackBarElement",
998
+ "props": [
999
+ {
1000
+ "name": "barTitle",
1001
+ "type": "undefined | string",
1002
+ "optional": true,
1003
+ "scalar": true,
1004
+ "description": "The banner label (e.g. \"Was this helpful?\"). Attribute: `bar-title` (`title` is avoided — it's a global HTML attribute).",
1005
+ "default": "'Was this helpful?'"
1006
+ }
1007
+ ],
1008
+ "events": [
1009
+ {
1010
+ "name": "close",
1011
+ "detail": null,
1012
+ "description": "The user dismissed the banner."
1013
+ },
1014
+ {
1015
+ "name": "helpful",
1016
+ "detail": null,
1017
+ "description": "The user clicked thumbs-up."
1018
+ },
1019
+ {
1020
+ "name": "nothelpful",
1021
+ "detail": null,
1022
+ "description": "The user clicked thumbs-down."
1023
+ }
1024
+ ],
1025
+ "composedFrom": [
1026
+ {
1027
+ "name": "FeedbackBar",
1028
+ "group": "Components",
1029
+ "storyId": "components-feedbackbar--docs"
1030
+ }
1031
+ ],
1032
+ "tokens": []
1033
+ },
1034
+ {
1035
+ "tag": "kitn-file-upload",
1036
+ "className": "KitnFileUploadElement",
1037
+ "props": [
1038
+ {
1039
+ "name": "multiple",
1040
+ "type": "undefined | false | true",
1041
+ "optional": true,
1042
+ "scalar": true,
1043
+ "description": "Allow selecting multiple files (default true).",
1044
+ "default": "true"
1045
+ },
1046
+ {
1047
+ "name": "accept",
1048
+ "type": "undefined | string",
1049
+ "optional": true,
1050
+ "scalar": true,
1051
+ "description": "`accept` attribute for the file picker (e.g. `image/*`)."
1052
+ },
1053
+ {
1054
+ "name": "disabled",
1055
+ "type": "undefined | false | true",
1056
+ "optional": true,
1057
+ "scalar": true,
1058
+ "description": "Disable the dropzone — no clicking, no drag-and-drop.",
1059
+ "default": "false"
1060
+ },
1061
+ {
1062
+ "name": "label",
1063
+ "type": "undefined | string",
1064
+ "optional": true,
1065
+ "scalar": true,
1066
+ "description": "Default dropzone label (overridable via the default slot).",
1067
+ "default": "'Click or drop files to upload'"
1068
+ }
1069
+ ],
1070
+ "events": [
1071
+ {
1072
+ "name": "filesadded",
1073
+ "detail": "{ files: File[] }",
1074
+ "description": "Files were picked or dropped."
1075
+ }
1076
+ ],
1077
+ "composedFrom": [
1078
+ {
1079
+ "name": "FileUpload",
1080
+ "group": "Components",
1081
+ "storyId": "components-fileupload--docs"
1082
+ },
1083
+ {
1084
+ "name": "FileUploadTrigger",
1085
+ "group": "Components",
1086
+ "storyId": "components-fileuploadtrigger--docs"
1087
+ }
1088
+ ],
1089
+ "tokens": []
1090
+ },
1091
+ {
1092
+ "tag": "kitn-image",
1093
+ "className": "KitnImageElement",
1094
+ "props": [
1095
+ {
1096
+ "name": "base64",
1097
+ "type": "undefined | string",
1098
+ "optional": true,
1099
+ "scalar": true,
1100
+ "description": "Base64-encoded image data (pair with `media-type`)."
1101
+ },
1102
+ {
1103
+ "name": "bytes",
1104
+ "type": "undefined | Uint8Array<ArrayBufferLike>",
1105
+ "optional": true,
1106
+ "scalar": false,
1107
+ "description": "Raw image bytes (set as a JS property)."
1108
+ },
1109
+ {
1110
+ "name": "alt",
1111
+ "type": "undefined | string",
1112
+ "optional": true,
1113
+ "scalar": true,
1114
+ "description": "Alt text.",
1115
+ "default": "''"
1116
+ },
1117
+ {
1118
+ "name": "mediaType",
1119
+ "type": "undefined | string",
1120
+ "optional": true,
1121
+ "scalar": true,
1122
+ "description": "MIME type (default `image/png`)."
1123
+ }
1124
+ ],
1125
+ "events": [],
1126
+ "composedFrom": [
1127
+ {
1128
+ "name": "Image",
1129
+ "group": "Components",
1130
+ "storyId": "components-image--docs"
1131
+ }
1132
+ ],
1133
+ "tokens": []
1134
+ },
1135
+ {
1136
+ "tag": "kitn-loader",
1137
+ "className": "KitnLoaderElement",
1138
+ "props": [
1139
+ {
1140
+ "name": "variant",
1141
+ "type": "undefined | \"circular\" | \"classic\" | \"pulse\" | \"pulse-dot\" | \"dots\" | \"typing\" | \"wave\" | \"bars\" | \"terminal\" | \"text-blink\" | \"text-shimmer\" | \"loading-dots\"",
1142
+ "optional": true,
1143
+ "scalar": true,
1144
+ "description": "The animation style: `'circular' | 'classic' | 'pulse' | 'pulse-dot' | 'dots' | 'typing' | 'wave' | 'bars' | 'terminal' | 'text-blink' | 'text-shimmer' | 'loading-dots'`. Defaults to `'circular'`.",
1145
+ "default": "'circular'"
1146
+ },
1147
+ {
1148
+ "name": "size",
1149
+ "type": "undefined | \"sm\" | \"lg\" | \"md\"",
1150
+ "optional": true,
1151
+ "scalar": true,
1152
+ "description": "Loader size: `'sm' | 'md' | 'lg'`. Defaults to `'md'`.",
1153
+ "default": "'md'"
1154
+ },
1155
+ {
1156
+ "name": "text",
1157
+ "type": "undefined | string",
1158
+ "optional": true,
1159
+ "scalar": true,
1160
+ "description": "Label for the text-based variants."
1161
+ }
1162
+ ],
1163
+ "events": [],
1164
+ "composedFrom": [
1165
+ {
1166
+ "name": "Loader",
1167
+ "group": "Components",
1168
+ "storyId": "components-loader--docs"
1169
+ }
1170
+ ],
1171
+ "tokens": []
1172
+ },
1173
+ {
1174
+ "tag": "kitn-markdown",
1175
+ "className": "KitnMarkdownElement",
1176
+ "props": [
1177
+ {
1178
+ "name": "content",
1179
+ "type": "string",
1180
+ "optional": false,
1181
+ "scalar": true,
1182
+ "description": "The markdown source to render.",
1183
+ "default": "''"
1184
+ },
1185
+ {
1186
+ "name": "proseSize",
1187
+ "type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
1188
+ "optional": true,
1189
+ "scalar": true,
1190
+ "description": "Text/markdown sizing.",
1191
+ "default": "'sm'"
1192
+ },
1193
+ {
1194
+ "name": "codeTheme",
1195
+ "type": "undefined | string",
1196
+ "optional": true,
1197
+ "scalar": true,
1198
+ "description": "Shiki theme for fenced code blocks.",
1199
+ "default": "'github-dark-dimmed'"
1200
+ },
1201
+ {
1202
+ "name": "codeHighlight",
1203
+ "type": "undefined | false | true",
1204
+ "optional": true,
1205
+ "scalar": true,
1206
+ "description": "Disable syntax highlighting (no Shiki loads).",
1207
+ "default": "true"
1208
+ }
1209
+ ],
1210
+ "events": [],
1211
+ "composedFrom": [
1212
+ {
1213
+ "name": "Markdown",
1214
+ "group": "Components",
1215
+ "storyId": "components-markdown--docs"
1216
+ }
1217
+ ],
1218
+ "tokens": []
1219
+ },
1220
+ {
1221
+ "tag": "kitn-message",
1222
+ "className": "KitnMessageElement",
1223
+ "props": [
1224
+ {
1225
+ "name": "message",
1226
+ "type": "undefined | { id: string; role: \"user\" | \"assistant\"; content: string; reasoning?: undefined | { text: string; label?: undefined | string }; tools?: undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }[]; attachments?: undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]; actions?: undefined | (\"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\")[] }",
1227
+ "optional": true,
1228
+ "scalar": false,
1229
+ "description": "The full message object. Set as a JS property."
1230
+ },
1231
+ {
1232
+ "name": "role",
1233
+ "type": "undefined | \"user\" | \"assistant\"",
1234
+ "optional": true,
1235
+ "scalar": true,
1236
+ "description": "Convenience for simple cases when not passing a `message` object.",
1237
+ "default": "'assistant'"
1238
+ },
1239
+ {
1240
+ "name": "content",
1241
+ "type": "undefined | string",
1242
+ "optional": true,
1243
+ "scalar": true,
1244
+ "description": "Convenience content (used when `message` is not set)."
1245
+ },
1246
+ {
1247
+ "name": "markdown",
1248
+ "type": "undefined | false | true",
1249
+ "optional": true,
1250
+ "scalar": true,
1251
+ "description": "Force markdown on/off. Defaults to on for assistant, off for user."
1252
+ },
1253
+ {
1254
+ "name": "proseSize",
1255
+ "type": "undefined | \"xs\" | \"sm\" | \"base\" | \"lg\"",
1256
+ "optional": true,
1257
+ "scalar": true,
1258
+ "description": "Text/markdown sizing for the message body.",
1259
+ "default": "'sm'"
1260
+ },
1261
+ {
1262
+ "name": "codeTheme",
1263
+ "type": "undefined | string",
1264
+ "optional": true,
1265
+ "scalar": true,
1266
+ "description": "Shiki theme name used for fenced code blocks in the content.",
1267
+ "default": "'github-dark-dimmed'"
1268
+ },
1269
+ {
1270
+ "name": "codeHighlight",
1271
+ "type": "undefined | false | true",
1272
+ "optional": true,
1273
+ "scalar": true,
1274
+ "description": "Disable syntax highlighting for code blocks (no Shiki loads).",
1275
+ "default": "true"
1276
+ }
1277
+ ],
1278
+ "events": [
1279
+ {
1280
+ "name": "messageaction",
1281
+ "detail": "{ messageId: string; action: \"copy\" | \"like\" | \"dislike\" | \"regenerate\" | \"edit\" }",
1282
+ "description": "An action button was clicked."
1283
+ }
1284
+ ],
1285
+ "composedFrom": [
1286
+ {
1287
+ "name": "Message",
1288
+ "group": "Components",
1289
+ "storyId": "components-message--docs"
1290
+ },
1291
+ {
1292
+ "name": "MessageContent",
1293
+ "group": "Components",
1294
+ "storyId": "components-messagecontent--docs"
1295
+ },
1296
+ {
1297
+ "name": "MessageActions",
1298
+ "group": "Components",
1299
+ "storyId": "components-messageactions--docs"
1300
+ },
1301
+ {
1302
+ "name": "Reasoning",
1303
+ "group": "Components",
1304
+ "storyId": "components-reasoning--docs"
1305
+ },
1306
+ {
1307
+ "name": "ReasoningTrigger",
1308
+ "group": "Components",
1309
+ "storyId": "components-reasoningtrigger--docs"
1310
+ },
1311
+ {
1312
+ "name": "ReasoningContent",
1313
+ "group": "Components",
1314
+ "storyId": "components-reasoningcontent--docs"
1315
+ },
1316
+ {
1317
+ "name": "Tool",
1318
+ "group": "Components",
1319
+ "storyId": "components-tool--docs"
1320
+ },
1321
+ {
1322
+ "name": "Attachments",
1323
+ "group": "Components",
1324
+ "storyId": "components-attachments--docs"
1325
+ },
1326
+ {
1327
+ "name": "Attachment",
1328
+ "group": "Components",
1329
+ "storyId": "components-attachment--docs"
1330
+ },
1331
+ {
1332
+ "name": "AttachmentPreview",
1333
+ "group": "Components",
1334
+ "storyId": "components-attachmentpreview--docs"
1335
+ },
1336
+ {
1337
+ "name": "AttachmentInfo",
1338
+ "group": "Components",
1339
+ "storyId": "components-attachmentinfo--docs"
1340
+ },
1341
+ {
1342
+ "name": "Button",
1343
+ "group": "UI",
1344
+ "storyId": "ui-button--docs"
1345
+ }
1346
+ ],
1347
+ "tokens": []
1348
+ },
1349
+ {
1350
+ "tag": "kitn-message-skills",
1351
+ "className": "KitnMessageSkillsElement",
1352
+ "props": [
1353
+ {
1354
+ "name": "skills",
1355
+ "type": "{ id: string; name: string }[]",
1356
+ "optional": false,
1357
+ "scalar": false,
1358
+ "description": "The active skills to badge. Set as a JS property.",
1359
+ "default": "[]"
1360
+ }
1361
+ ],
1362
+ "events": [],
1363
+ "composedFrom": [
1364
+ {
1365
+ "name": "MessageSkills",
1366
+ "group": "Components",
1367
+ "storyId": "components-messageskills--docs"
1368
+ }
1369
+ ],
1370
+ "tokens": []
1371
+ },
1372
+ {
1373
+ "tag": "kitn-model-switcher",
1374
+ "className": "KitnModelSwitcherElement",
1375
+ "props": [
1376
+ {
1377
+ "name": "models",
1378
+ "type": "{ id: string; name: string; provider?: undefined | string }[]",
1379
+ "optional": false,
1380
+ "scalar": false,
1381
+ "description": "The selectable models. Set as a JS property (array).",
1382
+ "default": "[]"
1383
+ },
1384
+ {
1385
+ "name": "currentModel",
1386
+ "type": "undefined | string",
1387
+ "optional": true,
1388
+ "scalar": true,
1389
+ "description": "The currently-selected model id. Defaults to the first model."
1390
+ }
1391
+ ],
1392
+ "events": [
1393
+ {
1394
+ "name": "modelchange",
1395
+ "detail": "{ modelId: string }",
1396
+ "description": "A model was selected."
1397
+ }
1398
+ ],
1399
+ "composedFrom": [
1400
+ {
1401
+ "name": "ModelSwitcher",
1402
+ "group": "Components",
1403
+ "storyId": "components-modelswitcher--docs"
1404
+ }
1405
+ ],
1406
+ "tokens": []
1407
+ },
1408
+ {
1409
+ "tag": "kitn-prompt-input",
1410
+ "className": "KitnPromptInputElement",
1411
+ "props": [
1412
+ {
1413
+ "name": "value",
1414
+ "type": "undefined | string",
1415
+ "optional": true,
1416
+ "scalar": true,
1417
+ "description": "Controlled value of the input. When set, the host owns the text and must update it on `valuechange`; leave unset for uncontrolled behavior."
1418
+ },
1419
+ {
1420
+ "name": "placeholder",
1421
+ "type": "undefined | string",
1422
+ "optional": true,
1423
+ "scalar": true,
1424
+ "description": "Placeholder text shown in the empty input.",
1425
+ "default": "'Send a message...'"
1426
+ },
1427
+ {
1428
+ "name": "disabled",
1429
+ "type": "undefined | false | true",
1430
+ "optional": true,
1431
+ "scalar": true,
1432
+ "description": "Disable the input and submit button entirely (non-interactive).",
1433
+ "default": "false"
1434
+ },
1435
+ {
1436
+ "name": "loading",
1437
+ "type": "undefined | false | true",
1438
+ "optional": true,
1439
+ "scalar": true,
1440
+ "description": "Show the loading/streaming state and block submit (use while awaiting a reply).",
1441
+ "default": "false"
1442
+ },
1443
+ {
1444
+ "name": "suggestions",
1445
+ "type": "undefined | string[]",
1446
+ "optional": true,
1447
+ "scalar": false,
1448
+ "description": "Starter prompts shown above the input. Clicking one follows `suggestionMode`. Set as a JS property."
1449
+ },
1450
+ {
1451
+ "name": "suggestionMode",
1452
+ "type": "undefined | \"submit\" | \"fill\"",
1453
+ "optional": true,
1454
+ "scalar": true,
1455
+ "description": "What clicking a suggestion does: `'submit'` (default) sends it immediately as if typed and submitted; `'fill'` just places it in the input.",
1456
+ "default": "'submit'"
1457
+ },
1458
+ {
1459
+ "name": "slashCommands",
1460
+ "type": "undefined | { id: string; label: string; description?: undefined | string; category?: undefined | string }[]",
1461
+ "optional": true,
1462
+ "scalar": false,
1463
+ "description": "Slash commands — when set, typing `/` opens the command palette. Set as a JS property."
1464
+ },
1465
+ {
1466
+ "name": "slashActiveIds",
1467
+ "type": "undefined | string[]",
1468
+ "optional": true,
1469
+ "scalar": false,
1470
+ "description": "Command ids to highlight as active."
1471
+ },
1472
+ {
1473
+ "name": "slashCompact",
1474
+ "type": "undefined | false | true",
1475
+ "optional": true,
1476
+ "scalar": true,
1477
+ "description": "Single-line palette rows.",
1478
+ "default": "false"
1479
+ },
1480
+ {
1481
+ "name": "search",
1482
+ "type": "undefined | false | true",
1483
+ "optional": true,
1484
+ "scalar": true,
1485
+ "description": "Show a Search (Globe) button in the left toolbar; clicking it fires a `search` event.",
1486
+ "default": "false"
1487
+ },
1488
+ {
1489
+ "name": "voice",
1490
+ "type": "undefined | false | true",
1491
+ "optional": true,
1492
+ "scalar": true,
1493
+ "description": "Show a Voice (Mic) button in the left toolbar; clicking it fires a `voice` event.",
1494
+ "default": "false"
1495
+ },
1496
+ {
1497
+ "name": "attachments",
1498
+ "type": "undefined | { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[]",
1499
+ "optional": true,
1500
+ "scalar": false,
1501
+ "description": "Attachments to seed the input with (so a consumer can pre-populate staged files without an upload). Set as a JS property; the element then manages its own attachment state from there (add via the paperclip, remove per chip)."
1502
+ }
1503
+ ],
1504
+ "events": [
1505
+ {
1506
+ "name": "search",
1507
+ "detail": "Record<string, never>",
1508
+ "description": "The Search (Globe) toolbar button was clicked."
1509
+ },
1510
+ {
1511
+ "name": "slashselect",
1512
+ "detail": "{ command: { id: string; label: string; description?: undefined | string; category?: undefined | string } }",
1513
+ "description": "A slash command was chosen from the palette."
1514
+ },
1515
+ {
1516
+ "name": "submit",
1517
+ "detail": "{ value: string; attachments: { id: string; type: \"file\" | \"source-document\"; filename?: undefined | string; mediaType?: undefined | string; url?: undefined | string; title?: undefined | string }[] }",
1518
+ "description": "The user submitted the prompt (Enter or send button) with its attachments."
1519
+ },
1520
+ {
1521
+ "name": "suggestionclick",
1522
+ "detail": "{ value: string }",
1523
+ "description": "A suggestion was clicked while `suggestion-mode=\"fill\"`."
1524
+ },
1525
+ {
1526
+ "name": "valuechange",
1527
+ "detail": "{ value: string }",
1528
+ "description": "The input text changed (fires on every keystroke)."
1529
+ },
1530
+ {
1531
+ "name": "voice",
1532
+ "detail": "Record<string, never>",
1533
+ "description": "The Voice (Mic) toolbar button was clicked."
1534
+ }
1535
+ ],
1536
+ "composedFrom": [],
1537
+ "tokens": []
1538
+ },
1539
+ {
1540
+ "tag": "kitn-prompt-suggestions",
1541
+ "className": "KitnPromptSuggestionsElement",
1542
+ "props": [
1543
+ {
1544
+ "name": "suggestions",
1545
+ "type": "(string | { label: string; value?: undefined | string })[]",
1546
+ "optional": false,
1547
+ "scalar": false,
1548
+ "description": "The suggestions. Strings, or `{ label, value }` when the displayed text and the emitted value differ. Set as a JS property.",
1549
+ "default": "[]"
1550
+ },
1551
+ {
1552
+ "name": "variant",
1553
+ "type": "undefined | \"ghost\" | \"default\" | \"outline\"",
1554
+ "optional": true,
1555
+ "scalar": true,
1556
+ "description": "Chip style: `'outline'` (default), `'ghost'`, or `'default'` (filled).",
1557
+ "default": "'outline'"
1558
+ },
1559
+ {
1560
+ "name": "size",
1561
+ "type": "undefined | \"sm\" | \"lg\" | \"md\" | \"icon\" | \"icon-sm\"",
1562
+ "optional": true,
1563
+ "scalar": true,
1564
+ "description": "Size preset for each chip. Defaults to the pill default (`'lg'`); pass `'sm'` for smaller pills (or `'md'`)."
1565
+ },
1566
+ {
1567
+ "name": "block",
1568
+ "type": "undefined | false | true",
1569
+ "optional": true,
1570
+ "scalar": true,
1571
+ "description": "Full-width left-aligned rows instead of pills.",
1572
+ "default": "false"
1573
+ },
1574
+ {
1575
+ "name": "highlight",
1576
+ "type": "undefined | string",
1577
+ "optional": true,
1578
+ "scalar": true,
1579
+ "description": "Substring to highlight within each suggestion."
1580
+ }
1581
+ ],
1582
+ "events": [
1583
+ {
1584
+ "name": "select",
1585
+ "detail": "{ value: string }",
1586
+ "description": "A suggestion was clicked."
1587
+ }
1588
+ ],
1589
+ "composedFrom": [
1590
+ {
1591
+ "name": "PromptSuggestion",
1592
+ "group": "Components",
1593
+ "storyId": "components-promptsuggestion--docs"
1594
+ }
1595
+ ],
1596
+ "tokens": []
1597
+ },
1598
+ {
1599
+ "tag": "kitn-reasoning",
1600
+ "className": "KitnReasoningElement",
1601
+ "props": [
1602
+ {
1603
+ "name": "text",
1604
+ "type": "string",
1605
+ "optional": false,
1606
+ "scalar": true,
1607
+ "description": "The reasoning text to display.",
1608
+ "default": "''"
1609
+ },
1610
+ {
1611
+ "name": "label",
1612
+ "type": "undefined | string",
1613
+ "optional": true,
1614
+ "scalar": true,
1615
+ "description": "Trigger label.",
1616
+ "default": "'Reasoning'"
1617
+ },
1618
+ {
1619
+ "name": "open",
1620
+ "type": "undefined | false | true",
1621
+ "optional": true,
1622
+ "scalar": true,
1623
+ "description": "Controlled open state — set as a property (`el.open = true`). Omit for uncontrolled (the trigger toggles it)."
1624
+ },
1625
+ {
1626
+ "name": "streaming",
1627
+ "type": "undefined | false | true",
1628
+ "optional": true,
1629
+ "scalar": true,
1630
+ "description": "While true, auto-expands (and re-collapses when it flips false).",
1631
+ "default": "false"
1632
+ },
1633
+ {
1634
+ "name": "markdown",
1635
+ "type": "undefined | false | true",
1636
+ "optional": true,
1637
+ "scalar": true,
1638
+ "description": "Render `text` as markdown.",
1639
+ "default": "true"
1640
+ }
1641
+ ],
1642
+ "events": [
1643
+ {
1644
+ "name": "openchange",
1645
+ "detail": "{ open: false | true }",
1646
+ "description": "Open state changed (via the trigger or streaming auto-open)."
1647
+ }
1648
+ ],
1649
+ "composedFrom": [
1650
+ {
1651
+ "name": "Reasoning",
1652
+ "group": "Components",
1653
+ "storyId": "components-reasoning--docs"
1654
+ },
1655
+ {
1656
+ "name": "ReasoningTrigger",
1657
+ "group": "Components",
1658
+ "storyId": "components-reasoningtrigger--docs"
1659
+ },
1660
+ {
1661
+ "name": "ReasoningContent",
1662
+ "group": "Components",
1663
+ "storyId": "components-reasoningcontent--docs"
1664
+ }
1665
+ ],
1666
+ "tokens": []
1667
+ },
1668
+ {
1669
+ "tag": "kitn-response-stream",
1670
+ "className": "KitnResponseStreamElement",
1671
+ "props": [
1672
+ {
1673
+ "name": "text",
1674
+ "type": "undefined | string | AsyncIterable<string>",
1675
+ "optional": true,
1676
+ "scalar": false,
1677
+ "description": "Text to stream. A string, or an `AsyncIterable<string>` (set as a JS property — async iterables can't be HTML attributes).",
1678
+ "default": "''"
1679
+ },
1680
+ {
1681
+ "name": "mode",
1682
+ "type": "undefined | \"typewriter\" | \"fade\"",
1683
+ "optional": true,
1684
+ "scalar": true,
1685
+ "description": "Reveal animation.",
1686
+ "default": "'typewriter'"
1687
+ },
1688
+ {
1689
+ "name": "speed",
1690
+ "type": "undefined | number",
1691
+ "optional": true,
1692
+ "scalar": true,
1693
+ "description": "Characters/segments per tick.",
1694
+ "default": "20"
1695
+ },
1696
+ {
1697
+ "name": "as",
1698
+ "type": "undefined | string",
1699
+ "optional": true,
1700
+ "scalar": true,
1701
+ "description": "Element tag to render as."
1702
+ }
1703
+ ],
1704
+ "events": [
1705
+ {
1706
+ "name": "complete",
1707
+ "detail": null,
1708
+ "description": "Streaming finished."
1709
+ }
1710
+ ],
1711
+ "composedFrom": [
1712
+ {
1713
+ "name": "ResponseStream",
1714
+ "group": "Components",
1715
+ "storyId": "components-responsestream--docs"
1716
+ }
1717
+ ],
1718
+ "tokens": []
1719
+ },
1720
+ {
1721
+ "tag": "kitn-source",
1722
+ "className": "KitnSourceElement",
1723
+ "props": [
1724
+ {
1725
+ "name": "href",
1726
+ "type": "undefined | string",
1727
+ "optional": true,
1728
+ "scalar": true,
1729
+ "description": "The URL this citation links to (the domain also seeds the default label/favicon).",
1730
+ "default": "''"
1731
+ },
1732
+ {
1733
+ "name": "label",
1734
+ "type": "undefined | string",
1735
+ "optional": true,
1736
+ "scalar": true,
1737
+ "description": "Trigger label (defaults to the domain)."
1738
+ },
1739
+ {
1740
+ "name": "headline",
1741
+ "type": "undefined | string",
1742
+ "optional": true,
1743
+ "scalar": true,
1744
+ "description": "Hover-card headline. Attribute: `headline` (`title` is avoided — it's a global HTML attribute that reflects in a CE constructor and breaks it).",
1745
+ "default": "''"
1746
+ },
1747
+ {
1748
+ "name": "description",
1749
+ "type": "undefined | string",
1750
+ "optional": true,
1751
+ "scalar": true,
1752
+ "description": "Hover-card body text describing the source.",
1753
+ "default": "''"
1754
+ },
1755
+ {
1756
+ "name": "showFavicon",
1757
+ "type": "undefined | false | true",
1758
+ "optional": true,
1759
+ "scalar": true,
1760
+ "description": "Show the source's favicon next to the trigger label.",
1761
+ "default": "false"
1762
+ }
1763
+ ],
1764
+ "events": [],
1765
+ "composedFrom": [
1766
+ {
1767
+ "name": "Source",
1768
+ "group": "Components",
1769
+ "storyId": "components-source--docs"
1770
+ },
1771
+ {
1772
+ "name": "SourceTrigger",
1773
+ "group": "Components",
1774
+ "storyId": "components-sourcetrigger--docs"
1775
+ },
1776
+ {
1777
+ "name": "SourceContent",
1778
+ "group": "Components",
1779
+ "storyId": "components-sourcecontent--docs"
1780
+ },
1781
+ {
1782
+ "name": "SourceList",
1783
+ "group": "Components",
1784
+ "storyId": "components-sourcelist--docs"
1785
+ }
1786
+ ],
1787
+ "tokens": []
1788
+ },
1789
+ {
1790
+ "tag": "kitn-source-list",
1791
+ "className": "KitnSourceListElement",
1792
+ "props": [
1793
+ {
1794
+ "name": "sources",
1795
+ "type": "{ href: string; title?: undefined | string; description?: undefined | string; label?: undefined | string; showFavicon?: undefined | false | true }[]",
1796
+ "optional": false,
1797
+ "scalar": false,
1798
+ "description": "The sources to render. Set as a JS property.",
1799
+ "default": "[]"
1800
+ },
1801
+ {
1802
+ "name": "showFavicon",
1803
+ "type": "undefined | false | true",
1804
+ "optional": true,
1805
+ "scalar": true,
1806
+ "description": "Show favicons on all items (per-item `showFavicon` overrides).",
1807
+ "default": "false"
1808
+ }
1809
+ ],
1810
+ "events": [],
1811
+ "composedFrom": [
1812
+ {
1813
+ "name": "Source",
1814
+ "group": "Components",
1815
+ "storyId": "components-source--docs"
1816
+ },
1817
+ {
1818
+ "name": "SourceTrigger",
1819
+ "group": "Components",
1820
+ "storyId": "components-sourcetrigger--docs"
1821
+ },
1822
+ {
1823
+ "name": "SourceContent",
1824
+ "group": "Components",
1825
+ "storyId": "components-sourcecontent--docs"
1826
+ },
1827
+ {
1828
+ "name": "SourceList",
1829
+ "group": "Components",
1830
+ "storyId": "components-sourcelist--docs"
1831
+ }
1832
+ ],
1833
+ "tokens": []
1834
+ },
1835
+ {
1836
+ "tag": "kitn-text-shimmer",
1837
+ "className": "KitnTextShimmerElement",
1838
+ "props": [
1839
+ {
1840
+ "name": "text",
1841
+ "type": "undefined | string",
1842
+ "optional": true,
1843
+ "scalar": true,
1844
+ "description": "The text to shimmer.",
1845
+ "default": "''"
1846
+ },
1847
+ {
1848
+ "name": "as",
1849
+ "type": "undefined | string",
1850
+ "optional": true,
1851
+ "scalar": true,
1852
+ "description": "Element tag to render as (default `span`).",
1853
+ "default": "'span'"
1854
+ },
1855
+ {
1856
+ "name": "duration",
1857
+ "type": "undefined | number",
1858
+ "optional": true,
1859
+ "scalar": true,
1860
+ "description": "Animation duration in seconds.",
1861
+ "default": "4"
1862
+ },
1863
+ {
1864
+ "name": "spread",
1865
+ "type": "undefined | number",
1866
+ "optional": true,
1867
+ "scalar": true,
1868
+ "description": "Gradient spread (5–45).",
1869
+ "default": "20"
1870
+ }
1871
+ ],
1872
+ "events": [],
1873
+ "composedFrom": [
1874
+ {
1875
+ "name": "TextShimmer",
1876
+ "group": "Components",
1877
+ "storyId": "components-textshimmer--docs"
1878
+ }
1879
+ ],
1880
+ "tokens": []
1881
+ },
1882
+ {
1883
+ "tag": "kitn-thinking-bar",
1884
+ "className": "KitnThinkingBarElement",
1885
+ "props": [
1886
+ {
1887
+ "name": "text",
1888
+ "type": "undefined | string",
1889
+ "optional": true,
1890
+ "scalar": true,
1891
+ "description": "The shimmering label, e.g. \"Thinking…\".",
1892
+ "default": "'Thinking'"
1893
+ },
1894
+ {
1895
+ "name": "stoppable",
1896
+ "type": "undefined | false | true",
1897
+ "optional": true,
1898
+ "scalar": true,
1899
+ "description": "When true, show a \"stop\" affordance that fires a `stop` event.",
1900
+ "default": "false"
1901
+ },
1902
+ {
1903
+ "name": "stopLabel",
1904
+ "type": "undefined | string",
1905
+ "optional": true,
1906
+ "scalar": true,
1907
+ "description": "Label for the stop affordance.",
1908
+ "default": "'Answer now'"
1909
+ }
1910
+ ],
1911
+ "events": [
1912
+ {
1913
+ "name": "stop",
1914
+ "detail": null,
1915
+ "description": "The \"stop / answer now\" affordance was clicked."
1916
+ }
1917
+ ],
1918
+ "composedFrom": [
1919
+ {
1920
+ "name": "ThinkingBar",
1921
+ "group": "Components",
1922
+ "storyId": "components-thinkingbar--docs"
1923
+ }
1924
+ ],
1925
+ "tokens": []
1926
+ },
1927
+ {
1928
+ "tag": "kitn-tool",
1929
+ "className": "KitnToolElement",
1930
+ "props": [
1931
+ {
1932
+ "name": "tool",
1933
+ "type": "undefined | { type: string; state: \"input-streaming\" | \"input-available\" | \"output-available\" | \"output-error\"; input?: undefined | Record<string, unknown>; output?: undefined | Record<string, unknown>; toolCallId?: undefined | string; errorText?: undefined | string }",
1934
+ "optional": true,
1935
+ "scalar": false,
1936
+ "description": "The tool-call to display. Set as a JS property."
1937
+ },
1938
+ {
1939
+ "name": "open",
1940
+ "type": "undefined | false | true",
1941
+ "optional": true,
1942
+ "scalar": true,
1943
+ "description": "Start expanded.",
1944
+ "default": "false"
1945
+ }
1946
+ ],
1947
+ "events": [],
1948
+ "composedFrom": [
1949
+ {
1950
+ "name": "Tool",
1951
+ "group": "Components",
1952
+ "storyId": "components-tool--docs"
1953
+ }
1954
+ ],
1955
+ "tokens": [
1956
+ "--color-tool-blue",
1957
+ "--color-tool-amber",
1958
+ "--color-tool-green",
1959
+ "--color-tool-red"
1960
+ ]
1961
+ },
1962
+ {
1963
+ "tag": "kitn-voice-input",
1964
+ "className": "KitnVoiceInputElement",
1965
+ "props": [
1966
+ {
1967
+ "name": "transcribe",
1968
+ "type": "undefined | (audio: Blob) => Promise<string>",
1969
+ "optional": true,
1970
+ "scalar": false,
1971
+ "description": "Transcriber the host supplies — records audio, returns the text. This is a **function-valued property** (`el.transcribe = async blob => '...'`) because a value-returning callback can't be modelled as a fire-and-forget event."
1972
+ },
1973
+ {
1974
+ "name": "disabled",
1975
+ "type": "undefined | false | true",
1976
+ "optional": true,
1977
+ "scalar": true,
1978
+ "description": "Disable the mic button (non-interactive).",
1979
+ "default": "false"
1980
+ }
1981
+ ],
1982
+ "events": [
1983
+ {
1984
+ "name": "audiocaptured",
1985
+ "detail": "{ blob: Blob }",
1986
+ "description": "Raw audio captured (before transcription) — for hosts that prefer to handle transcription themselves instead of via the `transcribe` property."
1987
+ },
1988
+ {
1989
+ "name": "transcription",
1990
+ "detail": "{ text: string }",
1991
+ "description": "Transcription completed (the `transcribe` property resolved)."
1992
+ }
1993
+ ],
1994
+ "composedFrom": [
1995
+ {
1996
+ "name": "VoiceInput",
1997
+ "group": "Components",
1998
+ "storyId": "components-voiceinput--docs"
1999
+ }
2000
+ ],
2001
+ "tokens": []
2002
+ }
2003
+ ]