@aparte/plugin-subagents 0.0.0-stage → 1.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.
@@ -0,0 +1,2057 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/aparte-subagent-view.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "function",
11
+ "name": "laneOf",
12
+ "return": {
13
+ "type": {
14
+ "text": "{ segments: readonly AparteSegment[]; live: boolean }"
15
+ }
16
+ },
17
+ "parameters": [
18
+ {
19
+ "name": "anchor",
20
+ "type": {
21
+ "text": "AparteSegment"
22
+ }
23
+ }
24
+ ],
25
+ "description": "The conversation of the sub-agent `anchor` stands for, as it is drawn: as it is while the\nsub-agent works, adopted once it is over (a reload, a Stop, its end) — every text settled,\nevery call still open read as stopped."
26
+ },
27
+ {
28
+ "kind": "function",
29
+ "name": "findSubagent",
30
+ "return": {
31
+ "type": {
32
+ "text": "AparteSegment | undefined"
33
+ }
34
+ },
35
+ "parameters": [
36
+ {
37
+ "name": "segments",
38
+ "type": {
39
+ "text": "readonly AparteSegment[]"
40
+ }
41
+ },
42
+ {
43
+ "name": "agentId",
44
+ "type": {
45
+ "text": "string"
46
+ }
47
+ },
48
+ {
49
+ "name": "depth",
50
+ "default": "0"
51
+ }
52
+ ],
53
+ "description": "The segment that stands for `agentId` among `segments`, or in the lanes of the sub-agents there."
54
+ },
55
+ {
56
+ "kind": "class",
57
+ "description": "A sub-agent's conversation — its text, its reasoning, its tool rows, its own sub-agents as\nlines — where the app places it: a canvas, a pane of `<aparte-split>`, a dialog. It follows\nthe sub-agent live while it works and shows the saved conversation after a reload. Name the\nchat with `for` (or the `chat` property), the reply with `message-id`, the sub-agent with\n`agent-id`: `aparte-subagent-start` gives all three as its sub-agents start.\n\nIt is the same element `subagentTranscript` puts under a sub-agent's line.",
58
+ "name": "AparteSubagentView",
59
+ "cssProperties": [
60
+ {
61
+ "description": "The space between the rule down the leading edge and the conversation, in a standalone view.",
62
+ "name": "--aparte-subagent-indent",
63
+ "default": "var(--aparte-space-6)"
64
+ }
65
+ ],
66
+ "members": [
67
+ {
68
+ "kind": "field",
69
+ "name": "_chat",
70
+ "type": {
71
+ "text": "SubagentViewSource | null"
72
+ },
73
+ "privacy": "private",
74
+ "default": "null"
75
+ },
76
+ {
77
+ "kind": "field",
78
+ "name": "_task",
79
+ "type": {
80
+ "text": "HTMLElement | null"
81
+ },
82
+ "privacy": "private",
83
+ "default": "null"
84
+ },
85
+ {
86
+ "kind": "field",
87
+ "name": "_head",
88
+ "type": {
89
+ "text": "HTMLElement | null"
90
+ },
91
+ "privacy": "private",
92
+ "default": "null",
93
+ "description": "A closable view's head: the sub-agent's name and Close."
94
+ },
95
+ {
96
+ "kind": "field",
97
+ "name": "_name",
98
+ "type": {
99
+ "text": "HTMLElement | null"
100
+ },
101
+ "privacy": "private",
102
+ "default": "null"
103
+ },
104
+ {
105
+ "kind": "field",
106
+ "name": "_close",
107
+ "type": {
108
+ "text": "HTMLButtonElement | null"
109
+ },
110
+ "privacy": "private",
111
+ "default": "null"
112
+ },
113
+ {
114
+ "kind": "field",
115
+ "name": "_drawing",
116
+ "type": {
117
+ "text": "LaneDrawing | null"
118
+ },
119
+ "privacy": "private",
120
+ "default": "null"
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "_config",
125
+ "type": {
126
+ "text": "AparteConfig | null"
127
+ },
128
+ "privacy": "private",
129
+ "default": "null",
130
+ "description": "The config the rows were drawn with, and the segment they were drawn from."
131
+ },
132
+ {
133
+ "kind": "field",
134
+ "name": "_anchor",
135
+ "type": {
136
+ "text": "AparteSegment | null"
137
+ },
138
+ "privacy": "private",
139
+ "default": "null"
140
+ },
141
+ {
142
+ "kind": "field",
143
+ "name": "_listening",
144
+ "type": {
145
+ "text": "EventTarget | null"
146
+ },
147
+ "privacy": "private",
148
+ "default": "null"
149
+ },
150
+ {
151
+ "kind": "field",
152
+ "name": "_stopConfig",
153
+ "type": {
154
+ "text": "(() => void) | null"
155
+ },
156
+ "privacy": "private",
157
+ "default": "null"
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "_stopWatching",
162
+ "type": {
163
+ "text": "(() => void) | null"
164
+ },
165
+ "privacy": "private",
166
+ "default": "null"
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "_stopRenderers",
171
+ "type": {
172
+ "text": "(() => void) | null"
173
+ },
174
+ "privacy": "private",
175
+ "default": "null"
176
+ },
177
+ {
178
+ "kind": "field",
179
+ "name": "_queued",
180
+ "type": {
181
+ "text": "boolean"
182
+ },
183
+ "privacy": "private",
184
+ "default": "false"
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "_releaseQueued",
189
+ "type": {
190
+ "text": "boolean"
191
+ },
192
+ "privacy": "private",
193
+ "default": "false"
194
+ },
195
+ {
196
+ "kind": "field",
197
+ "name": "_warned",
198
+ "type": {
199
+ "text": "string"
200
+ },
201
+ "privacy": "private",
202
+ "default": "''"
203
+ },
204
+ {
205
+ "kind": "field",
206
+ "name": "_onConversation",
207
+ "privacy": "private",
208
+ "readonly": true
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "_onKeydown",
213
+ "privacy": "private",
214
+ "readonly": true
215
+ },
216
+ {
217
+ "kind": "field",
218
+ "name": "_onRenderers",
219
+ "privacy": "private",
220
+ "readonly": true,
221
+ "description": "A renderer registered or taken off on the config the rows were drawn with: the rows it changes are drawn again."
222
+ },
223
+ {
224
+ "kind": "field",
225
+ "name": "_onWrite",
226
+ "privacy": "private",
227
+ "readonly": true
228
+ },
229
+ {
230
+ "kind": "field",
231
+ "name": "chat",
232
+ "type": {
233
+ "text": "SubagentViewSource | null"
234
+ },
235
+ "description": "The chat, when it has no `id` for the `for` attribute: an element, or anything with `getMessages()`."
236
+ },
237
+ {
238
+ "kind": "method",
239
+ "name": "focusTitle",
240
+ "return": {
241
+ "type": {
242
+ "text": "void"
243
+ }
244
+ },
245
+ "description": "Put the focus on the sub-agent's name, in a `closable` view: where a pane that just opened starts."
246
+ },
247
+ {
248
+ "kind": "method",
249
+ "name": "refresh",
250
+ "return": {
251
+ "type": {
252
+ "text": "void"
253
+ }
254
+ },
255
+ "description": "Read the sub-agent again and draw it: what the element does on every change it hears."
256
+ },
257
+ {
258
+ "kind": "method",
259
+ "name": "_source",
260
+ "privacy": "private",
261
+ "return": {
262
+ "type": {
263
+ "text": "SubagentViewSource | null"
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "kind": "method",
269
+ "name": "_sourceConfig",
270
+ "privacy": "private",
271
+ "return": {
272
+ "type": {
273
+ "text": "AparteConfig"
274
+ }
275
+ }
276
+ },
277
+ {
278
+ "kind": "method",
279
+ "name": "_matches",
280
+ "privacy": "private",
281
+ "return": {
282
+ "type": {
283
+ "text": "boolean"
284
+ }
285
+ },
286
+ "parameters": [
287
+ {
288
+ "name": "write",
289
+ "type": {
290
+ "text": "LaneWrite"
291
+ }
292
+ }
293
+ ],
294
+ "description": "A write from this view's chat: the run's target is the chat, inside it, or named by its id."
295
+ },
296
+ {
297
+ "kind": "method",
298
+ "name": "_find",
299
+ "privacy": "private",
300
+ "return": {
301
+ "type": {
302
+ "text": "AparteSegment | undefined | null"
303
+ }
304
+ },
305
+ "description": "The segment that stands for the sub-agent in the chat's reply; `undefined` when there is\nnone, `null` when the chat cannot be read at all."
306
+ },
307
+ {
308
+ "kind": "method",
309
+ "name": "_listen",
310
+ "privacy": "private",
311
+ "return": {
312
+ "type": {
313
+ "text": "void"
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "kind": "method",
319
+ "name": "_unlisten",
320
+ "privacy": "private",
321
+ "return": {
322
+ "type": {
323
+ "text": "void"
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "kind": "method",
329
+ "name": "_schedule",
330
+ "privacy": "private",
331
+ "return": {
332
+ "type": {
333
+ "text": "void"
334
+ }
335
+ },
336
+ "description": "Folds a burst of events (a whole run's end) into one read."
337
+ },
338
+ {
339
+ "kind": "method",
340
+ "name": "_onConfigChange",
341
+ "privacy": "private",
342
+ "return": {
343
+ "type": {
344
+ "text": "void"
345
+ }
346
+ }
347
+ },
348
+ {
349
+ "kind": "method",
350
+ "name": "_closable",
351
+ "privacy": "private",
352
+ "return": {
353
+ "type": {
354
+ "text": "boolean"
355
+ }
356
+ },
357
+ "description": "A pane of its own, never a line's detail."
358
+ },
359
+ {
360
+ "kind": "method",
361
+ "name": "_emitClose",
362
+ "privacy": "private",
363
+ "return": {
364
+ "type": {
365
+ "text": "void"
366
+ }
367
+ }
368
+ },
369
+ {
370
+ "kind": "method",
371
+ "name": "_relabelHead",
372
+ "privacy": "private",
373
+ "return": {
374
+ "type": {
375
+ "text": "void"
376
+ }
377
+ },
378
+ "parameters": [
379
+ {
380
+ "name": "config",
381
+ "type": {
382
+ "text": "AparteConfig"
383
+ }
384
+ }
385
+ ],
386
+ "description": "The head's words, in the chat's language: the name, and Close."
387
+ },
388
+ {
389
+ "kind": "method",
390
+ "name": "_build",
391
+ "privacy": "private",
392
+ "return": {
393
+ "type": {
394
+ "text": "void"
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "kind": "method",
400
+ "name": "_draw",
401
+ "privacy": "private",
402
+ "return": {
403
+ "type": {
404
+ "text": "void"
405
+ }
406
+ },
407
+ "parameters": [
408
+ {
409
+ "name": "anchor",
410
+ "type": {
411
+ "text": "AparteSegment | null | undefined"
412
+ }
413
+ },
414
+ {
415
+ "name": "config",
416
+ "type": {
417
+ "text": "AparteConfig"
418
+ }
419
+ }
420
+ ],
421
+ "description": "Draw `anchor`'s conversation with `config`."
422
+ },
423
+ {
424
+ "kind": "method",
425
+ "name": "_release",
426
+ "privacy": "private",
427
+ "return": {
428
+ "type": {
429
+ "text": "void"
430
+ }
431
+ },
432
+ "description": "Out of the page for good: every row's renderer cleans up, and the drawing goes."
433
+ }
434
+ ],
435
+ "events": [
436
+ {
437
+ "name": "aparte-subagent-view-close",
438
+ "type": {
439
+ "text": "CustomEvent"
440
+ },
441
+ "description": "The Close button, or Escape inside a `closable` view. The view does not hide itself: the app owns the layout. Bubbles."
442
+ }
443
+ ],
444
+ "attributes": [
445
+ {
446
+ "name": "for",
447
+ "type": {
448
+ "text": "string"
449
+ },
450
+ "description": "The `id` of the chat: `<aparte-chat>`, its viewport, or any element with `getMessages()`. Or set the `chat` property."
451
+ },
452
+ {
453
+ "name": "message-id",
454
+ "type": {
455
+ "text": "string"
456
+ },
457
+ "description": "The reply the sub-agent worked for (`aparte-subagent-start`'s `messageId`)."
458
+ },
459
+ {
460
+ "name": "agent-id",
461
+ "type": {
462
+ "text": "string"
463
+ },
464
+ "description": "Which sub-agent (`aparte-subagent-start`'s `agentId`)."
465
+ },
466
+ {
467
+ "name": "closable",
468
+ "type": {
469
+ "text": "boolean"
470
+ },
471
+ "description": "A pane of its own: the sub-agent's name and a Close button above its conversation, and Escape inside it closes too. Both only say so (`aparte-subagent-view-close`): the app, or `connectSubagentView`, folds the pane."
472
+ },
473
+ {
474
+ "type": {
475
+ "text": "boolean"
476
+ },
477
+ "description": "Written BY the element while there is nothing to show (an unknown sub-agent, or one not started yet): it then draws nothing. Read-only; style or fold your layout against it.",
478
+ "name": "data-empty"
479
+ },
480
+ {
481
+ "type": {
482
+ "text": "boolean"
483
+ },
484
+ "description": "Written BY the element when it is a line's detail rather than a view of its own. Read-only.",
485
+ "name": "data-inline"
486
+ }
487
+ ],
488
+ "superclass": {
489
+ "name": "ElementBase",
490
+ "module": "src/aparte-subagent-view.ts"
491
+ },
492
+ "tagName": "aparte-subagent-view",
493
+ "customElement": true,
494
+ "examples": [
495
+ "The chat in one pane, a sub-agent's conversation in the other\n```html\n<aparte-split primary=\"start\" position=\"55\" single>\n<aparte-chat id=\"chat\">…</aparte-chat>\n<aparte-subagent-view for=\"chat\"></aparte-subagent-view>\n</aparte-split>\n<script type=\"module\">\nimport { setupSubagents } from '@aparte/plugin-subagents';\n\nsetupSubagents();\nconst view = document.querySelector('aparte-subagent-view');\n// Show the latest sub-agent to start, as it works.\ndocument.getElementById('chat').addEventListener('aparte-subagent-start', (e) => {\nview.setAttribute('message-id', e.detail.messageId);\nview.setAttribute('agent-id', e.detail.agentId);\n});\n</script>\n```"
496
+ ]
497
+ },
498
+ {
499
+ "kind": "function",
500
+ "name": "feedView",
501
+ "return": {
502
+ "type": {
503
+ "text": "void"
504
+ }
505
+ },
506
+ "parameters": [
507
+ {
508
+ "name": "view",
509
+ "type": {
510
+ "text": "AparteSubagentView"
511
+ }
512
+ },
513
+ {
514
+ "name": "anchor",
515
+ "type": {
516
+ "text": "AparteSegment"
517
+ }
518
+ },
519
+ {
520
+ "name": "config",
521
+ "type": {
522
+ "text": "AparteConfig"
523
+ }
524
+ },
525
+ {
526
+ "name": "onRelease",
527
+ "optional": true,
528
+ "type": {
529
+ "text": "() => void"
530
+ }
531
+ }
532
+ ],
533
+ "description": "Draw `anchor` in `view`, as a line's detail: the view then reads nothing of its own and\nshows what each call hands it. `onRelease` runs when the view leaves the page for good."
534
+ }
535
+ ],
536
+ "exports": [
537
+ {
538
+ "kind": "js",
539
+ "name": "laneOf",
540
+ "declaration": {
541
+ "name": "laneOf",
542
+ "module": "src/aparte-subagent-view.ts"
543
+ }
544
+ },
545
+ {
546
+ "kind": "js",
547
+ "name": "findSubagent",
548
+ "declaration": {
549
+ "name": "findSubagent",
550
+ "module": "src/aparte-subagent-view.ts"
551
+ }
552
+ },
553
+ {
554
+ "kind": "js",
555
+ "name": "AparteSubagentView",
556
+ "declaration": {
557
+ "name": "AparteSubagentView",
558
+ "module": "src/aparte-subagent-view.ts"
559
+ }
560
+ },
561
+ {
562
+ "kind": "js",
563
+ "name": "feedView",
564
+ "declaration": {
565
+ "name": "feedView",
566
+ "module": "src/aparte-subagent-view.ts"
567
+ }
568
+ },
569
+ {
570
+ "kind": "custom-element-definition",
571
+ "name": "aparte-subagent-view",
572
+ "declaration": {
573
+ "name": "AparteSubagentView",
574
+ "module": "src/aparte-subagent-view.ts"
575
+ }
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "kind": "javascript-module",
581
+ "path": "src/connect.ts",
582
+ "declarations": [
583
+ {
584
+ "kind": "function",
585
+ "name": "connectSubagentView",
586
+ "return": {
587
+ "type": {
588
+ "text": "() => void"
589
+ }
590
+ },
591
+ "parameters": [
592
+ {
593
+ "name": "options",
594
+ "type": {
595
+ "text": "ConnectSubagentViewOptions"
596
+ }
597
+ }
598
+ ],
599
+ "description": "Wire a chat's sub-agent lines to a view. Returns a function that undoes all of it.\n\nThe lines need `setupSubagents({ open: 'event' })` for their Open button: that is the setup's\noption, not this function's, since a line drawn before the wiring exists is drawn already.\nA sub-agent's own sub-agents, drawn as lines inside the view, open in the same view."
600
+ }
601
+ ],
602
+ "exports": [
603
+ {
604
+ "kind": "js",
605
+ "name": "connectSubagentView",
606
+ "declaration": {
607
+ "name": "connectSubagentView",
608
+ "module": "src/connect.ts"
609
+ }
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "kind": "javascript-module",
615
+ "path": "src/drawing.ts",
616
+ "declarations": [
617
+ {
618
+ "kind": "class",
619
+ "description": "The rows of one conversation, inside `container`.",
620
+ "name": "LaneDrawing",
621
+ "members": [
622
+ {
623
+ "kind": "field",
624
+ "name": "rows",
625
+ "privacy": "private",
626
+ "readonly": true,
627
+ "default": "new Map<string, Row>()"
628
+ },
629
+ {
630
+ "kind": "field",
631
+ "name": "size",
632
+ "type": {
633
+ "text": "number"
634
+ },
635
+ "description": "How many rows are drawn.",
636
+ "readonly": true
637
+ },
638
+ {
639
+ "kind": "method",
640
+ "name": "sync",
641
+ "return": {
642
+ "type": {
643
+ "text": "void"
644
+ }
645
+ },
646
+ "parameters": [
647
+ {
648
+ "name": "segments",
649
+ "type": {
650
+ "text": "readonly AparteSegment[]"
651
+ }
652
+ },
653
+ {
654
+ "name": "config",
655
+ "type": {
656
+ "text": "AparteConfig"
657
+ }
658
+ },
659
+ {
660
+ "name": "live",
661
+ "type": {
662
+ "text": "boolean"
663
+ }
664
+ }
665
+ ],
666
+ "description": "Draw `segments`, in order: a new segment gets a row, a changed one is patched, one that\nleft loses its row. `live`: the sub-agent still works, so what it adds is arriving."
667
+ },
668
+ {
669
+ "kind": "method",
670
+ "name": "relabel",
671
+ "return": {
672
+ "type": {
673
+ "text": "void"
674
+ }
675
+ },
676
+ "parameters": [
677
+ {
678
+ "name": "config",
679
+ "type": {
680
+ "text": "AparteConfig"
681
+ }
682
+ }
683
+ ],
684
+ "description": "Every row re-reads what it takes from the config (a language switch)."
685
+ },
686
+ {
687
+ "kind": "method",
688
+ "name": "clear",
689
+ "return": {
690
+ "type": {
691
+ "text": "void"
692
+ }
693
+ },
694
+ "parameters": [
695
+ {
696
+ "name": "config",
697
+ "type": {
698
+ "text": "AparteConfig"
699
+ }
700
+ }
701
+ ],
702
+ "description": "Every row goes: each renderer cleans up what it drew."
703
+ },
704
+ {
705
+ "kind": "method",
706
+ "name": "draw",
707
+ "privacy": "private",
708
+ "return": {
709
+ "type": {
710
+ "text": "Row | undefined"
711
+ }
712
+ },
713
+ "parameters": [
714
+ {
715
+ "name": "segment",
716
+ "type": {
717
+ "text": "AparteSegment"
718
+ }
719
+ },
720
+ {
721
+ "name": "renderer",
722
+ "type": {
723
+ "text": "AparteSegmentRenderer | undefined"
724
+ }
725
+ },
726
+ {
727
+ "name": "config",
728
+ "type": {
729
+ "text": "AparteConfig"
730
+ }
731
+ },
732
+ {
733
+ "name": "live",
734
+ "type": {
735
+ "text": "boolean"
736
+ }
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "kind": "method",
742
+ "name": "patch",
743
+ "privacy": "private",
744
+ "return": {
745
+ "type": {
746
+ "text": "void"
747
+ }
748
+ },
749
+ "parameters": [
750
+ {
751
+ "name": "row",
752
+ "type": {
753
+ "text": "Row"
754
+ }
755
+ },
756
+ {
757
+ "name": "segment",
758
+ "type": {
759
+ "text": "AparteSegment"
760
+ }
761
+ },
762
+ {
763
+ "name": "config",
764
+ "type": {
765
+ "text": "AparteConfig"
766
+ }
767
+ }
768
+ ]
769
+ },
770
+ {
771
+ "kind": "method",
772
+ "name": "childOf",
773
+ "privacy": "private",
774
+ "return": {
775
+ "type": {
776
+ "text": "HTMLElement | null"
777
+ }
778
+ },
779
+ "parameters": [
780
+ {
781
+ "name": "id",
782
+ "type": {
783
+ "text": "string"
784
+ }
785
+ }
786
+ ],
787
+ "description": "The row for `id` among the container's own children — never a decoy in a row's prose."
788
+ },
789
+ {
790
+ "kind": "method",
791
+ "name": "inPlaceOf",
792
+ "privacy": "private",
793
+ "return": {
794
+ "type": {
795
+ "text": "HTMLElement | null"
796
+ }
797
+ },
798
+ "parameters": [
799
+ {
800
+ "name": "next",
801
+ "type": {
802
+ "text": "ChildNode | null"
803
+ }
804
+ },
805
+ {
806
+ "name": "id",
807
+ "type": {
808
+ "text": "string"
809
+ }
810
+ }
811
+ ],
812
+ "description": "The element standing where a row stood (before `next`) when it is no row's: what a\nrenderer put in place of its own without the id (`outerHTML`, `replaceWith`), stamped so\nthe loop finds it. A renderer that took its element away left another row there, or\nnothing: the row keeps its element, and the loop puts it back."
813
+ },
814
+ {
815
+ "kind": "method",
816
+ "name": "release",
817
+ "privacy": "private",
818
+ "return": {
819
+ "type": {
820
+ "text": "void"
821
+ }
822
+ },
823
+ "parameters": [
824
+ {
825
+ "name": "id",
826
+ "type": {
827
+ "text": "string"
828
+ }
829
+ },
830
+ {
831
+ "name": "config",
832
+ "type": {
833
+ "text": "AparteConfig"
834
+ }
835
+ }
836
+ ]
837
+ },
838
+ {
839
+ "kind": "method",
840
+ "name": "cleanup",
841
+ "privacy": "private",
842
+ "return": {
843
+ "type": {
844
+ "text": "void"
845
+ }
846
+ },
847
+ "parameters": [
848
+ {
849
+ "name": "row",
850
+ "type": {
851
+ "text": "Row"
852
+ }
853
+ },
854
+ {
855
+ "name": "config",
856
+ "type": {
857
+ "text": "AparteConfig"
858
+ }
859
+ }
860
+ ]
861
+ }
862
+ ]
863
+ }
864
+ ],
865
+ "exports": [
866
+ {
867
+ "kind": "js",
868
+ "name": "LaneDrawing",
869
+ "declaration": {
870
+ "name": "LaneDrawing",
871
+ "module": "src/drawing.ts"
872
+ }
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "kind": "javascript-module",
878
+ "path": "src/index.node.ts",
879
+ "declarations": [],
880
+ "exports": [
881
+ {
882
+ "kind": "js",
883
+ "name": "setupSubagents",
884
+ "declaration": {
885
+ "name": "setupSubagents",
886
+ "module": "./setup.js"
887
+ }
888
+ },
889
+ {
890
+ "kind": "js",
891
+ "name": "subagentOf",
892
+ "declaration": {
893
+ "name": "subagentOf",
894
+ "module": "./status.js"
895
+ }
896
+ },
897
+ {
898
+ "kind": "js",
899
+ "name": "subagentStatus",
900
+ "declaration": {
901
+ "name": "subagentStatus",
902
+ "module": "./status.js"
903
+ }
904
+ },
905
+ {
906
+ "kind": "js",
907
+ "name": "subagentTranscript",
908
+ "declaration": {
909
+ "name": "subagentTranscript",
910
+ "module": "./transcript.js"
911
+ }
912
+ },
913
+ {
914
+ "kind": "js",
915
+ "name": "connectSubagentView",
916
+ "declaration": {
917
+ "name": "connectSubagentView",
918
+ "module": "./connect.js"
919
+ }
920
+ },
921
+ {
922
+ "kind": "js",
923
+ "name": "ConnectSubagentViewOptions",
924
+ "declaration": {
925
+ "name": "ConnectSubagentViewOptions",
926
+ "module": "./connect.js"
927
+ }
928
+ },
929
+ {
930
+ "kind": "js",
931
+ "name": "SubagentViewSplit",
932
+ "declaration": {
933
+ "name": "SubagentViewSplit",
934
+ "module": "./connect.js"
935
+ }
936
+ },
937
+ {
938
+ "kind": "js",
939
+ "name": "AparteSubagentView",
940
+ "declaration": {
941
+ "name": "AparteSubagentView",
942
+ "module": "./aparte-subagent-view.js"
943
+ }
944
+ },
945
+ {
946
+ "kind": "js",
947
+ "name": "SubagentViewSource",
948
+ "declaration": {
949
+ "name": "SubagentViewSource",
950
+ "module": "./aparte-subagent-view.js"
951
+ }
952
+ },
953
+ {
954
+ "kind": "js",
955
+ "name": "SUBAGENT_SEGMENT_TYPE",
956
+ "declaration": {
957
+ "name": "SUBAGENT_SEGMENT_TYPE",
958
+ "module": "./types.js"
959
+ }
960
+ },
961
+ {
962
+ "kind": "js",
963
+ "name": "AparteSubagent",
964
+ "declaration": {
965
+ "name": "AparteSubagent",
966
+ "module": "./types.js"
967
+ }
968
+ },
969
+ {
970
+ "kind": "js",
971
+ "name": "AparteSubagentStatus",
972
+ "declaration": {
973
+ "name": "AparteSubagentStatus",
974
+ "module": "./types.js"
975
+ }
976
+ },
977
+ {
978
+ "kind": "js",
979
+ "name": "AparteSubagentSegment",
980
+ "declaration": {
981
+ "name": "AparteSubagentSegment",
982
+ "module": "./types.js"
983
+ }
984
+ },
985
+ {
986
+ "kind": "js",
987
+ "name": "SubagentsOptions",
988
+ "declaration": {
989
+ "name": "SubagentsOptions",
990
+ "module": "./types.js"
991
+ }
992
+ },
993
+ {
994
+ "kind": "js",
995
+ "name": "AparteSubagentStartEventDetail",
996
+ "declaration": {
997
+ "name": "AparteSubagentStartEventDetail",
998
+ "module": "./types.js"
999
+ }
1000
+ },
1001
+ {
1002
+ "kind": "js",
1003
+ "name": "AparteSubagentEndEventDetail",
1004
+ "declaration": {
1005
+ "name": "AparteSubagentEndEventDetail",
1006
+ "module": "./types.js"
1007
+ }
1008
+ },
1009
+ {
1010
+ "kind": "js",
1011
+ "name": "AparteSubagentOpenEventDetail",
1012
+ "declaration": {
1013
+ "name": "AparteSubagentOpenEventDetail",
1014
+ "module": "./types.js"
1015
+ }
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "kind": "javascript-module",
1021
+ "path": "src/index.ts",
1022
+ "declarations": [],
1023
+ "exports": [
1024
+ {
1025
+ "kind": "js",
1026
+ "name": "setupSubagents",
1027
+ "declaration": {
1028
+ "name": "setupSubagents",
1029
+ "module": "./setup.js"
1030
+ }
1031
+ },
1032
+ {
1033
+ "kind": "js",
1034
+ "name": "subagentOf",
1035
+ "declaration": {
1036
+ "name": "subagentOf",
1037
+ "module": "./status.js"
1038
+ }
1039
+ },
1040
+ {
1041
+ "kind": "js",
1042
+ "name": "subagentStatus",
1043
+ "declaration": {
1044
+ "name": "subagentStatus",
1045
+ "module": "./status.js"
1046
+ }
1047
+ },
1048
+ {
1049
+ "kind": "js",
1050
+ "name": "subagentTranscript",
1051
+ "declaration": {
1052
+ "name": "subagentTranscript",
1053
+ "module": "./transcript.js"
1054
+ }
1055
+ },
1056
+ {
1057
+ "kind": "js",
1058
+ "name": "connectSubagentView",
1059
+ "declaration": {
1060
+ "name": "connectSubagentView",
1061
+ "module": "./connect.js"
1062
+ }
1063
+ },
1064
+ {
1065
+ "kind": "js",
1066
+ "name": "ConnectSubagentViewOptions",
1067
+ "declaration": {
1068
+ "name": "ConnectSubagentViewOptions",
1069
+ "module": "./connect.js"
1070
+ }
1071
+ },
1072
+ {
1073
+ "kind": "js",
1074
+ "name": "SubagentViewSplit",
1075
+ "declaration": {
1076
+ "name": "SubagentViewSplit",
1077
+ "module": "./connect.js"
1078
+ }
1079
+ },
1080
+ {
1081
+ "kind": "js",
1082
+ "name": "AparteSubagentView",
1083
+ "declaration": {
1084
+ "name": "AparteSubagentView",
1085
+ "module": "./aparte-subagent-view.js"
1086
+ }
1087
+ },
1088
+ {
1089
+ "kind": "js",
1090
+ "name": "SubagentViewSource",
1091
+ "declaration": {
1092
+ "name": "SubagentViewSource",
1093
+ "module": "./aparte-subagent-view.js"
1094
+ }
1095
+ },
1096
+ {
1097
+ "kind": "js",
1098
+ "name": "SUBAGENT_SEGMENT_TYPE",
1099
+ "declaration": {
1100
+ "name": "SUBAGENT_SEGMENT_TYPE",
1101
+ "module": "./types.js"
1102
+ }
1103
+ },
1104
+ {
1105
+ "kind": "js",
1106
+ "name": "AparteSubagent",
1107
+ "declaration": {
1108
+ "name": "AparteSubagent",
1109
+ "module": "./types.js"
1110
+ }
1111
+ },
1112
+ {
1113
+ "kind": "js",
1114
+ "name": "AparteSubagentStatus",
1115
+ "declaration": {
1116
+ "name": "AparteSubagentStatus",
1117
+ "module": "./types.js"
1118
+ }
1119
+ },
1120
+ {
1121
+ "kind": "js",
1122
+ "name": "AparteSubagentSegment",
1123
+ "declaration": {
1124
+ "name": "AparteSubagentSegment",
1125
+ "module": "./types.js"
1126
+ }
1127
+ },
1128
+ {
1129
+ "kind": "js",
1130
+ "name": "SubagentsOptions",
1131
+ "declaration": {
1132
+ "name": "SubagentsOptions",
1133
+ "module": "./types.js"
1134
+ }
1135
+ },
1136
+ {
1137
+ "kind": "js",
1138
+ "name": "AparteSubagentStartEventDetail",
1139
+ "declaration": {
1140
+ "name": "AparteSubagentStartEventDetail",
1141
+ "module": "./types.js"
1142
+ }
1143
+ },
1144
+ {
1145
+ "kind": "js",
1146
+ "name": "AparteSubagentEndEventDetail",
1147
+ "declaration": {
1148
+ "name": "AparteSubagentEndEventDetail",
1149
+ "module": "./types.js"
1150
+ }
1151
+ },
1152
+ {
1153
+ "kind": "js",
1154
+ "name": "AparteSubagentOpenEventDetail",
1155
+ "declaration": {
1156
+ "name": "AparteSubagentOpenEventDetail",
1157
+ "module": "./types.js"
1158
+ }
1159
+ }
1160
+ ]
1161
+ },
1162
+ {
1163
+ "kind": "javascript-module",
1164
+ "path": "src/lanes.ts",
1165
+ "declarations": [
1166
+ {
1167
+ "kind": "function",
1168
+ "name": "lastLaneWrite",
1169
+ "return": {
1170
+ "type": {
1171
+ "text": "LaneWrite | undefined"
1172
+ }
1173
+ },
1174
+ "parameters": [
1175
+ {
1176
+ "name": "messageId",
1177
+ "type": {
1178
+ "text": "string"
1179
+ }
1180
+ },
1181
+ {
1182
+ "name": "agentId",
1183
+ "type": {
1184
+ "text": "string"
1185
+ }
1186
+ }
1187
+ ],
1188
+ "description": "The last anchor written for this sub-agent while its run goes on, if any."
1189
+ },
1190
+ {
1191
+ "kind": "function",
1192
+ "name": "watchLaneWrites",
1193
+ "return": {
1194
+ "type": {
1195
+ "text": "() => void"
1196
+ }
1197
+ },
1198
+ "parameters": [
1199
+ {
1200
+ "name": "fn",
1201
+ "type": {
1202
+ "text": "(write: LaneWrite) => void"
1203
+ }
1204
+ }
1205
+ ],
1206
+ "description": "Hear every sub-agent's anchor as it is written — once a frame while it streams, at once\nfor everything else. What `<aparte-subagent-view>` follows a live sub-agent with."
1207
+ },
1208
+ {
1209
+ "kind": "function",
1210
+ "name": "createLanes",
1211
+ "return": {
1212
+ "type": {
1213
+ "text": "{ observe: (event: AparteStreamRunEvent, ctx: AparteRunEventContext) => void; dispose: () => void }"
1214
+ }
1215
+ },
1216
+ "description": "The observer of one setup, and what forgets everything it follows."
1217
+ }
1218
+ ],
1219
+ "exports": [
1220
+ {
1221
+ "kind": "js",
1222
+ "name": "lastLaneWrite",
1223
+ "declaration": {
1224
+ "name": "lastLaneWrite",
1225
+ "module": "src/lanes.ts"
1226
+ }
1227
+ },
1228
+ {
1229
+ "kind": "js",
1230
+ "name": "watchLaneWrites",
1231
+ "declaration": {
1232
+ "name": "watchLaneWrites",
1233
+ "module": "src/lanes.ts"
1234
+ }
1235
+ },
1236
+ {
1237
+ "kind": "js",
1238
+ "name": "createLanes",
1239
+ "declaration": {
1240
+ "name": "createLanes",
1241
+ "module": "src/lanes.ts"
1242
+ }
1243
+ }
1244
+ ]
1245
+ },
1246
+ {
1247
+ "kind": "javascript-module",
1248
+ "path": "src/line.ts",
1249
+ "declarations": [
1250
+ {
1251
+ "kind": "function",
1252
+ "name": "markStandIn",
1253
+ "return": {
1254
+ "type": {
1255
+ "text": "AparteToolCallSegment"
1256
+ }
1257
+ },
1258
+ "parameters": [
1259
+ {
1260
+ "name": "segment",
1261
+ "type": {
1262
+ "text": "AparteToolCallSegment"
1263
+ }
1264
+ }
1265
+ ],
1266
+ "description": "Mark a call built to draw a `subagent` segment with core's row."
1267
+ },
1268
+ {
1269
+ "kind": "function",
1270
+ "name": "createLineProvider",
1271
+ "return": {
1272
+ "type": {
1273
+ "text": "(segment: AparteToolCallSegment) => AparteToolLine | undefined"
1274
+ }
1275
+ },
1276
+ "parameters": [
1277
+ {
1278
+ "name": "options",
1279
+ "default": "{}",
1280
+ "type": {
1281
+ "text": "SubagentsOptions"
1282
+ }
1283
+ }
1284
+ ],
1285
+ "description": "The provider: the line of every call that carries a sub-agent, `undefined` for any other\ncall (core's own line then)."
1286
+ }
1287
+ ],
1288
+ "exports": [
1289
+ {
1290
+ "kind": "js",
1291
+ "name": "markStandIn",
1292
+ "declaration": {
1293
+ "name": "markStandIn",
1294
+ "module": "src/line.ts"
1295
+ }
1296
+ },
1297
+ {
1298
+ "kind": "js",
1299
+ "name": "createLineProvider",
1300
+ "declaration": {
1301
+ "name": "createLineProvider",
1302
+ "module": "src/line.ts"
1303
+ }
1304
+ }
1305
+ ]
1306
+ },
1307
+ {
1308
+ "kind": "javascript-module",
1309
+ "path": "src/open.ts",
1310
+ "declarations": [
1311
+ {
1312
+ "kind": "function",
1313
+ "name": "isShown",
1314
+ "return": {
1315
+ "type": {
1316
+ "text": "boolean"
1317
+ }
1318
+ },
1319
+ "parameters": [
1320
+ {
1321
+ "name": "messageId",
1322
+ "type": {
1323
+ "text": "string | undefined"
1324
+ }
1325
+ },
1326
+ {
1327
+ "name": "agentId",
1328
+ "type": {
1329
+ "text": "string"
1330
+ }
1331
+ }
1332
+ ],
1333
+ "description": "Whether some view shows this sub-agent now."
1334
+ },
1335
+ {
1336
+ "kind": "function",
1337
+ "name": "setShown",
1338
+ "return": {
1339
+ "type": {
1340
+ "text": "void"
1341
+ }
1342
+ },
1343
+ "parameters": [
1344
+ {
1345
+ "name": "owner",
1346
+ "type": {
1347
+ "text": "object"
1348
+ }
1349
+ },
1350
+ {
1351
+ "name": "at",
1352
+ "type": {
1353
+ "text": "{ messageId: string; agentId: string } | null"
1354
+ }
1355
+ }
1356
+ ],
1357
+ "description": "`owner` shows this sub-agent now, or nothing (`null`)."
1358
+ },
1359
+ {
1360
+ "kind": "function",
1361
+ "name": "openButtonOf",
1362
+ "return": {
1363
+ "type": {
1364
+ "text": "HTMLElement | null"
1365
+ }
1366
+ },
1367
+ "parameters": [
1368
+ {
1369
+ "name": "row",
1370
+ "type": {
1371
+ "text": "Element"
1372
+ }
1373
+ }
1374
+ ],
1375
+ "description": "The row's Open button: core's, in its own line, or — a row with a detail — in the slot\nbeside its disclosure (never in a summary, never a nested row's)."
1376
+ },
1377
+ {
1378
+ "kind": "function",
1379
+ "name": "markRow",
1380
+ "return": {
1381
+ "type": {
1382
+ "text": "void"
1383
+ }
1384
+ },
1385
+ "parameters": [
1386
+ {
1387
+ "name": "row",
1388
+ "type": {
1389
+ "text": "Element"
1390
+ }
1391
+ },
1392
+ {
1393
+ "name": "on",
1394
+ "type": {
1395
+ "text": "boolean"
1396
+ }
1397
+ }
1398
+ ],
1399
+ "description": "Mark a row as the one shown, or not: the two marks core writes from `open.current` when it\ndraws the row, written here on a row already drawn so it does not wait for its next draw."
1400
+ },
1401
+ {
1402
+ "kind": "function",
1403
+ "name": "unmarkAll",
1404
+ "return": {
1405
+ "type": {
1406
+ "text": "void"
1407
+ }
1408
+ },
1409
+ "parameters": [
1410
+ {
1411
+ "name": "root",
1412
+ "type": {
1413
+ "text": "ParentNode"
1414
+ }
1415
+ }
1416
+ ],
1417
+ "description": "Every row marked as shown under `root`, unmarked."
1418
+ },
1419
+ {
1420
+ "kind": "function",
1421
+ "name": "dispatchOpen",
1422
+ "return": {
1423
+ "type": {
1424
+ "text": "void"
1425
+ }
1426
+ },
1427
+ "parameters": [
1428
+ {
1429
+ "name": "row",
1430
+ "type": {
1431
+ "text": "HTMLElement"
1432
+ }
1433
+ },
1434
+ {
1435
+ "name": "segment",
1436
+ "type": {
1437
+ "text": "AparteToolCallSegment"
1438
+ }
1439
+ },
1440
+ {
1441
+ "name": "sub",
1442
+ "type": {
1443
+ "text": "AparteSubagent"
1444
+ }
1445
+ },
1446
+ {
1447
+ "name": "standIn",
1448
+ "type": {
1449
+ "text": "boolean"
1450
+ }
1451
+ }
1452
+ ],
1453
+ "description": "Dispatch `aparte-subagent-open` from the row of `sub`, drawn for `segment`."
1454
+ }
1455
+ ],
1456
+ "exports": [
1457
+ {
1458
+ "kind": "js",
1459
+ "name": "isShown",
1460
+ "declaration": {
1461
+ "name": "isShown",
1462
+ "module": "src/open.ts"
1463
+ }
1464
+ },
1465
+ {
1466
+ "kind": "js",
1467
+ "name": "setShown",
1468
+ "declaration": {
1469
+ "name": "setShown",
1470
+ "module": "src/open.ts"
1471
+ }
1472
+ },
1473
+ {
1474
+ "kind": "js",
1475
+ "name": "openButtonOf",
1476
+ "declaration": {
1477
+ "name": "openButtonOf",
1478
+ "module": "src/open.ts"
1479
+ }
1480
+ },
1481
+ {
1482
+ "kind": "js",
1483
+ "name": "markRow",
1484
+ "declaration": {
1485
+ "name": "markRow",
1486
+ "module": "src/open.ts"
1487
+ }
1488
+ },
1489
+ {
1490
+ "kind": "js",
1491
+ "name": "unmarkAll",
1492
+ "declaration": {
1493
+ "name": "unmarkAll",
1494
+ "module": "src/open.ts"
1495
+ }
1496
+ },
1497
+ {
1498
+ "kind": "js",
1499
+ "name": "dispatchOpen",
1500
+ "declaration": {
1501
+ "name": "dispatchOpen",
1502
+ "module": "src/open.ts"
1503
+ }
1504
+ }
1505
+ ]
1506
+ },
1507
+ {
1508
+ "kind": "javascript-module",
1509
+ "path": "src/segment.ts",
1510
+ "declarations": [
1511
+ {
1512
+ "kind": "variable",
1513
+ "name": "UNNAMED_AGENT",
1514
+ "type": {
1515
+ "text": "string"
1516
+ },
1517
+ "default": "'subagent'",
1518
+ "description": "The tool name a sub-agent with no name stands in under."
1519
+ },
1520
+ {
1521
+ "kind": "function",
1522
+ "name": "standInCall",
1523
+ "return": {
1524
+ "type": {
1525
+ "text": "AparteToolCallSegment"
1526
+ }
1527
+ },
1528
+ "parameters": [
1529
+ {
1530
+ "name": "segment",
1531
+ "type": {
1532
+ "text": "AparteSubagentSegment"
1533
+ }
1534
+ }
1535
+ ],
1536
+ "description": "The call that stands for a `subagent` segment on core's row: same id, the agent's name, its status."
1537
+ },
1538
+ {
1539
+ "kind": "variable",
1540
+ "name": "subagentRenderer",
1541
+ "type": {
1542
+ "text": "AparteSegmentRenderer<AparteSubagentSegment>"
1543
+ },
1544
+ "default": "{ type: SUBAGENT_SEGMENT_TYPE, render: (segment) => toolRow()?.render(standInCall(segment)) ?? '', setup: (element, segment) => toolRow()?.setup?.(element, standInCall(segment)), update: (element, segment) => { const row = toolRow(); if (!row) return; const call = standInCall(segment); if (row.update) { row.update(element, call); return; } // An app's own `tool_call` renderer with no `update`: drawn again, as the bubble would. row.cleanup?.(element, call); const next = replace(element, row.render(call), segment); if (next) row.setup?.(next, call); }, relabel: (element, segment) => toolRow()?.relabel?.(element, standInCall(segment)), cleanup: (element, segment) => toolRow()?.cleanup?.(element, standInCall(segment)), // The plugin's sheet (the transcript's, the view's): core puts it on the page with the // renderers' own, once, unless a view already did. getStyles: rendererStyles, }"
1545
+ }
1546
+ ],
1547
+ "exports": [
1548
+ {
1549
+ "kind": "js",
1550
+ "name": "UNNAMED_AGENT",
1551
+ "declaration": {
1552
+ "name": "UNNAMED_AGENT",
1553
+ "module": "src/segment.ts"
1554
+ }
1555
+ },
1556
+ {
1557
+ "kind": "js",
1558
+ "name": "standInCall",
1559
+ "declaration": {
1560
+ "name": "standInCall",
1561
+ "module": "src/segment.ts"
1562
+ }
1563
+ },
1564
+ {
1565
+ "kind": "js",
1566
+ "name": "subagentRenderer",
1567
+ "declaration": {
1568
+ "name": "subagentRenderer",
1569
+ "module": "src/segment.ts"
1570
+ }
1571
+ }
1572
+ ]
1573
+ },
1574
+ {
1575
+ "kind": "javascript-module",
1576
+ "path": "src/setup.ts",
1577
+ "declarations": [
1578
+ {
1579
+ "kind": "function",
1580
+ "name": "setupSubagents",
1581
+ "return": {
1582
+ "type": {
1583
+ "text": "() => void"
1584
+ }
1585
+ },
1586
+ "parameters": [
1587
+ {
1588
+ "name": "options",
1589
+ "default": "{}",
1590
+ "type": {
1591
+ "text": "SubagentsOptions"
1592
+ }
1593
+ },
1594
+ {
1595
+ "name": "config",
1596
+ "default": "aparteGlobalConfig",
1597
+ "type": {
1598
+ "text": "AparteConfig"
1599
+ }
1600
+ }
1601
+ ],
1602
+ "description": "Show each sub-agent of a reply as one line: the line of the call that opened it — its\nname, its task, what it is doing now, \"3 tools · 12 s\" — and its conversation kept on that\ncall, out of the reply and out of what the model reads. A sub-agent no call opened gets the\nsame line, from a segment of the plugin's own.\n\nInstalls one run-event observer, one tool-line provider and the `subagent` segment's\nrenderer on `config` (the global config by default). Returns the function that takes them\noff; calling it again on the same config replaces the first setup."
1603
+ }
1604
+ ],
1605
+ "exports": [
1606
+ {
1607
+ "kind": "js",
1608
+ "name": "setupSubagents",
1609
+ "declaration": {
1610
+ "name": "setupSubagents",
1611
+ "module": "src/setup.ts"
1612
+ }
1613
+ }
1614
+ ]
1615
+ },
1616
+ {
1617
+ "kind": "javascript-module",
1618
+ "path": "src/status.ts",
1619
+ "declarations": [
1620
+ {
1621
+ "kind": "function",
1622
+ "name": "subagentOf",
1623
+ "return": {
1624
+ "type": {
1625
+ "text": "AparteSubagent | undefined"
1626
+ }
1627
+ },
1628
+ "parameters": [
1629
+ {
1630
+ "name": "segment",
1631
+ "type": {
1632
+ "text": "AparteSegment"
1633
+ }
1634
+ }
1635
+ ],
1636
+ "description": "The sub-agent a segment stands for: the one kept on a `tool_call` segment (the call that\nopened it) or on a `subagent` segment. `undefined` for any other segment."
1637
+ },
1638
+ {
1639
+ "kind": "function",
1640
+ "name": "subagentStatus",
1641
+ "return": {
1642
+ "type": {
1643
+ "text": "AparteSubagentStatus"
1644
+ }
1645
+ },
1646
+ "parameters": [
1647
+ {
1648
+ "name": "segment",
1649
+ "type": {
1650
+ "text": "AparteSegment"
1651
+ }
1652
+ }
1653
+ ],
1654
+ "description": "Where the sub-agent a segment stands for is: its stored status, except that one stored as\nworking (`running`, `waiting`) reads `stopped` once its segment has settled without it — the\ncall that opened it is over, or its own segment streams no more. That is what a reloaded\nconversation and a Stop look like: nothing will ever end it. A segment that stands for no\nsub-agent reads `stopped`."
1655
+ },
1656
+ {
1657
+ "kind": "function",
1658
+ "name": "statusOfCall",
1659
+ "return": {
1660
+ "type": {
1661
+ "text": "AparteSubagentStatus"
1662
+ }
1663
+ },
1664
+ "parameters": [
1665
+ {
1666
+ "name": "status",
1667
+ "type": {
1668
+ "text": "AparteToolCallSegment['status'] | undefined"
1669
+ }
1670
+ }
1671
+ ],
1672
+ "description": "What a call's own status says of a sub-agent, as its row shows it."
1673
+ },
1674
+ {
1675
+ "kind": "function",
1676
+ "name": "callStatusOf",
1677
+ "return": {
1678
+ "type": {
1679
+ "text": "AparteToolCallSegment['status']"
1680
+ }
1681
+ },
1682
+ "parameters": [
1683
+ {
1684
+ "name": "status",
1685
+ "type": {
1686
+ "text": "AparteSubagentStatus"
1687
+ }
1688
+ }
1689
+ ],
1690
+ "description": "The call status that says a sub-agent's status on a row — the reverse of statusOfCall."
1691
+ }
1692
+ ],
1693
+ "exports": [
1694
+ {
1695
+ "kind": "js",
1696
+ "name": "subagentOf",
1697
+ "declaration": {
1698
+ "name": "subagentOf",
1699
+ "module": "src/status.ts"
1700
+ }
1701
+ },
1702
+ {
1703
+ "kind": "js",
1704
+ "name": "subagentStatus",
1705
+ "declaration": {
1706
+ "name": "subagentStatus",
1707
+ "module": "src/status.ts"
1708
+ }
1709
+ },
1710
+ {
1711
+ "kind": "js",
1712
+ "name": "statusOfCall",
1713
+ "declaration": {
1714
+ "name": "statusOfCall",
1715
+ "module": "src/status.ts"
1716
+ }
1717
+ },
1718
+ {
1719
+ "kind": "js",
1720
+ "name": "callStatusOf",
1721
+ "declaration": {
1722
+ "name": "callStatusOf",
1723
+ "module": "src/status.ts"
1724
+ }
1725
+ }
1726
+ ]
1727
+ },
1728
+ {
1729
+ "kind": "javascript-module",
1730
+ "path": "src/steps.ts",
1731
+ "declarations": [
1732
+ {
1733
+ "kind": "function",
1734
+ "name": "stepStarted",
1735
+ "return": {
1736
+ "type": {
1737
+ "text": "void"
1738
+ }
1739
+ },
1740
+ "parameters": [
1741
+ {
1742
+ "name": "messageId",
1743
+ "type": {
1744
+ "text": "string"
1745
+ }
1746
+ },
1747
+ {
1748
+ "name": "agentId",
1749
+ "type": {
1750
+ "text": "string"
1751
+ }
1752
+ },
1753
+ {
1754
+ "name": "name",
1755
+ "type": {
1756
+ "text": "string"
1757
+ }
1758
+ }
1759
+ ],
1760
+ "description": "A step of the sub-agent `agentId` of the reply `messageId` begins."
1761
+ },
1762
+ {
1763
+ "kind": "function",
1764
+ "name": "stepEnded",
1765
+ "return": {
1766
+ "type": {
1767
+ "text": "void"
1768
+ }
1769
+ },
1770
+ "parameters": [
1771
+ {
1772
+ "name": "messageId",
1773
+ "type": {
1774
+ "text": "string"
1775
+ }
1776
+ },
1777
+ {
1778
+ "name": "agentId",
1779
+ "type": {
1780
+ "text": "string"
1781
+ }
1782
+ },
1783
+ {
1784
+ "name": "name",
1785
+ "type": {
1786
+ "text": "string"
1787
+ }
1788
+ }
1789
+ ],
1790
+ "description": "The latest open step of that name ends."
1791
+ },
1792
+ {
1793
+ "kind": "function",
1794
+ "name": "stepsEnded",
1795
+ "return": {
1796
+ "type": {
1797
+ "text": "void"
1798
+ }
1799
+ },
1800
+ "parameters": [
1801
+ {
1802
+ "name": "messageId",
1803
+ "type": {
1804
+ "text": "string"
1805
+ }
1806
+ },
1807
+ {
1808
+ "name": "agentId",
1809
+ "type": {
1810
+ "text": "string"
1811
+ }
1812
+ }
1813
+ ],
1814
+ "description": "Every step of the sub-agent ends: it ended, or its reply did."
1815
+ },
1816
+ {
1817
+ "kind": "function",
1818
+ "name": "currentStep",
1819
+ "return": {
1820
+ "type": {
1821
+ "text": "string | undefined"
1822
+ }
1823
+ },
1824
+ "parameters": [
1825
+ {
1826
+ "name": "messageId",
1827
+ "type": {
1828
+ "text": "string | undefined"
1829
+ }
1830
+ },
1831
+ {
1832
+ "name": "agentId",
1833
+ "type": {
1834
+ "text": "string"
1835
+ }
1836
+ }
1837
+ ],
1838
+ "description": "The step the sub-agent is on, if any. Without the reply's id (a segment that does not carry\none), the first sub-agent of that id with a step open."
1839
+ }
1840
+ ],
1841
+ "exports": [
1842
+ {
1843
+ "kind": "js",
1844
+ "name": "stepStarted",
1845
+ "declaration": {
1846
+ "name": "stepStarted",
1847
+ "module": "src/steps.ts"
1848
+ }
1849
+ },
1850
+ {
1851
+ "kind": "js",
1852
+ "name": "stepEnded",
1853
+ "declaration": {
1854
+ "name": "stepEnded",
1855
+ "module": "src/steps.ts"
1856
+ }
1857
+ },
1858
+ {
1859
+ "kind": "js",
1860
+ "name": "stepsEnded",
1861
+ "declaration": {
1862
+ "name": "stepsEnded",
1863
+ "module": "src/steps.ts"
1864
+ }
1865
+ },
1866
+ {
1867
+ "kind": "js",
1868
+ "name": "currentStep",
1869
+ "declaration": {
1870
+ "name": "currentStep",
1871
+ "module": "src/steps.ts"
1872
+ }
1873
+ }
1874
+ ]
1875
+ },
1876
+ {
1877
+ "kind": "javascript-module",
1878
+ "path": "src/styles.ts",
1879
+ "declarations": [
1880
+ {
1881
+ "kind": "function",
1882
+ "name": "rendererStyles",
1883
+ "return": {
1884
+ "type": {
1885
+ "text": "string"
1886
+ }
1887
+ },
1888
+ "description": "What the segment renderer hands core: the sheet, unless the element already put it on the page."
1889
+ },
1890
+ {
1891
+ "kind": "function",
1892
+ "name": "ensureStyles",
1893
+ "return": {
1894
+ "type": {
1895
+ "text": "void"
1896
+ }
1897
+ },
1898
+ "description": "Put the sheet on the page, unless it is there already."
1899
+ }
1900
+ ],
1901
+ "exports": [
1902
+ {
1903
+ "kind": "js",
1904
+ "name": "rendererStyles",
1905
+ "declaration": {
1906
+ "name": "rendererStyles",
1907
+ "module": "src/styles.ts"
1908
+ }
1909
+ },
1910
+ {
1911
+ "kind": "js",
1912
+ "name": "ensureStyles",
1913
+ "declaration": {
1914
+ "name": "ensureStyles",
1915
+ "module": "src/styles.ts"
1916
+ }
1917
+ }
1918
+ ]
1919
+ },
1920
+ {
1921
+ "kind": "javascript-module",
1922
+ "path": "src/transcript.ts",
1923
+ "declarations": [
1924
+ {
1925
+ "kind": "function",
1926
+ "name": "subagentTranscript",
1927
+ "parameters": [
1928
+ {
1929
+ "name": "segment"
1930
+ }
1931
+ ],
1932
+ "description": "A sub-agent's conversation, for a tool display's `details`: its task, then its text, its\nreasoning and its own tool rows, drawn by the same renderers as the reply, kept up to date\nwhile it works. `''` for a call that opened no sub-agent, and for one that has nothing to\nshow yet — no disclosure until there is.\n\n`setupSubagents({ details: 'transcript' })` puts it under every sub-agent's line; register\nit yourself to put it under one tool's only."
1933
+ }
1934
+ ],
1935
+ "exports": [
1936
+ {
1937
+ "kind": "js",
1938
+ "name": "subagentTranscript",
1939
+ "declaration": {
1940
+ "name": "subagentTranscript",
1941
+ "module": "src/transcript.ts"
1942
+ }
1943
+ }
1944
+ ]
1945
+ },
1946
+ {
1947
+ "kind": "javascript-module",
1948
+ "path": "src/types.ts",
1949
+ "declarations": [
1950
+ {
1951
+ "kind": "variable",
1952
+ "name": "SUBAGENT_SEGMENT_TYPE",
1953
+ "type": {
1954
+ "text": "string"
1955
+ },
1956
+ "default": "'subagent'",
1957
+ "description": "The segment type of a sub-agent that no call opened."
1958
+ }
1959
+ ],
1960
+ "exports": [
1961
+ {
1962
+ "kind": "js",
1963
+ "name": "SUBAGENT_SEGMENT_TYPE",
1964
+ "declaration": {
1965
+ "name": "SUBAGENT_SEGMENT_TYPE",
1966
+ "module": "src/types.ts"
1967
+ }
1968
+ }
1969
+ ]
1970
+ },
1971
+ {
1972
+ "kind": "javascript-module",
1973
+ "path": "src/words.ts",
1974
+ "declarations": [
1975
+ {
1976
+ "kind": "variable",
1977
+ "name": "WORDS",
1978
+ "default": "{ /** How many tool calls a sub-agent made, on its line: \"3 tools\". */ subagentsTools: { en: 'one:{n} tool|other:{n} tools', fr: 'one:{n} outil|other:{n} outils', de: 'one:{n} Tool|other:{n} Tools', es: 'one:{n} herramienta|other:{n} herramientas', it: 'one:{n} strumento|other:{n} strumenti', ja: 'other:{n} 個のツール', ko: 'other:도구 {n}개', pt: 'one:{n} ferramenta|other:{n} ferramentas', ru: 'one:{n} инструмент|few:{n} инструмента|many:{n} инструментов|other:{n} инструмента', zh: 'other:{n} 个工具', }, /** What a sub-agent's second line says before its first call. */ subagentsStarting: { en: 'Starting…', fr: 'Démarrage…', de: 'Wird gestartet…', es: 'Iniciando…', it: 'Avvio…', ja: '開始しています…', ko: '시작하는 중…', pt: 'Iniciando…', ru: 'Запуск…', zh: '正在启动…', }, /** The name of a sub-agent that was given none, when no call names its line either. */ subagentsUnnamed: { en: 'Sub-agent', fr: 'Sous-agent', de: 'Subagent', es: 'Subagente', it: 'Sottoagente', ja: 'サブエージェント', ko: '하위 에이전트', pt: 'Subagente', ru: 'Субагент', zh: '子智能体', }, /** The Open button on a sub-agent's line (`setupSubagents({ open: 'event' })`): its name and tooltip. */ subagentsOpen: { en: 'Open {name}', fr: 'Ouvrir {name}', de: '{name} öffnen', es: 'Abrir {name}', it: 'Apri {name}', ja: '{name} を開く', ko: '{name} 열기', pt: 'Abrir {name}', ru: 'Открыть: {name}', zh: '打开 {name}', }, /** The Close button of a `<aparte-subagent-view closable>`. */ subagentsClose: { en: 'Close', fr: 'Fermer', de: 'Schließen', es: 'Cerrar', it: 'Chiudi', ja: '閉じる', ko: '닫기', pt: 'Fechar', ru: 'Закрыть', zh: '关闭', }, } satisfies Record<string, Word>"
1979
+ },
1980
+ {
1981
+ "kind": "function",
1982
+ "name": "word",
1983
+ "return": {
1984
+ "type": {
1985
+ "text": "string"
1986
+ }
1987
+ },
1988
+ "parameters": [
1989
+ {
1990
+ "name": "config",
1991
+ "type": {
1992
+ "text": "AparteConfig"
1993
+ }
1994
+ },
1995
+ {
1996
+ "name": "key",
1997
+ "type": {
1998
+ "text": "WordKey"
1999
+ }
2000
+ }
2001
+ ],
2002
+ "description": "The word for `key`: the app's locale, else this table in the chat's language, else English."
2003
+ },
2004
+ {
2005
+ "kind": "function",
2006
+ "name": "toolCount",
2007
+ "return": {
2008
+ "type": {
2009
+ "text": "string"
2010
+ }
2011
+ },
2012
+ "parameters": [
2013
+ {
2014
+ "name": "config",
2015
+ "type": {
2016
+ "text": "AparteConfig"
2017
+ }
2018
+ },
2019
+ {
2020
+ "name": "n",
2021
+ "type": {
2022
+ "text": "number"
2023
+ }
2024
+ }
2025
+ ],
2026
+ "description": "\"3 tools\", in the chat's language and its plural rules."
2027
+ }
2028
+ ],
2029
+ "exports": [
2030
+ {
2031
+ "kind": "js",
2032
+ "name": "WORDS",
2033
+ "declaration": {
2034
+ "name": "WORDS",
2035
+ "module": "src/words.ts"
2036
+ }
2037
+ },
2038
+ {
2039
+ "kind": "js",
2040
+ "name": "word",
2041
+ "declaration": {
2042
+ "name": "word",
2043
+ "module": "src/words.ts"
2044
+ }
2045
+ },
2046
+ {
2047
+ "kind": "js",
2048
+ "name": "toolCount",
2049
+ "declaration": {
2050
+ "name": "toolCount",
2051
+ "module": "src/words.ts"
2052
+ }
2053
+ }
2054
+ ]
2055
+ }
2056
+ ]
2057
+ }