@aparte/plugin-subagents 0.0.0-stage → 1.6.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,1438 @@
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": "_drawing",
88
+ "type": {
89
+ "text": "LaneDrawing | null"
90
+ },
91
+ "privacy": "private",
92
+ "default": "null"
93
+ },
94
+ {
95
+ "kind": "field",
96
+ "name": "_config",
97
+ "type": {
98
+ "text": "AparteConfig | null"
99
+ },
100
+ "privacy": "private",
101
+ "default": "null",
102
+ "description": "The config the rows were drawn with, and the segment they were drawn from."
103
+ },
104
+ {
105
+ "kind": "field",
106
+ "name": "_anchor",
107
+ "type": {
108
+ "text": "AparteSegment | null"
109
+ },
110
+ "privacy": "private",
111
+ "default": "null"
112
+ },
113
+ {
114
+ "kind": "field",
115
+ "name": "_listening",
116
+ "type": {
117
+ "text": "EventTarget | null"
118
+ },
119
+ "privacy": "private",
120
+ "default": "null"
121
+ },
122
+ {
123
+ "kind": "field",
124
+ "name": "_stopConfig",
125
+ "type": {
126
+ "text": "(() => void) | null"
127
+ },
128
+ "privacy": "private",
129
+ "default": "null"
130
+ },
131
+ {
132
+ "kind": "field",
133
+ "name": "_stopWatching",
134
+ "type": {
135
+ "text": "(() => void) | null"
136
+ },
137
+ "privacy": "private",
138
+ "default": "null"
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "_queued",
143
+ "type": {
144
+ "text": "boolean"
145
+ },
146
+ "privacy": "private",
147
+ "default": "false"
148
+ },
149
+ {
150
+ "kind": "field",
151
+ "name": "_releaseQueued",
152
+ "type": {
153
+ "text": "boolean"
154
+ },
155
+ "privacy": "private",
156
+ "default": "false"
157
+ },
158
+ {
159
+ "kind": "field",
160
+ "name": "_warned",
161
+ "type": {
162
+ "text": "string"
163
+ },
164
+ "privacy": "private",
165
+ "default": "''"
166
+ },
167
+ {
168
+ "kind": "field",
169
+ "name": "_onConversation",
170
+ "privacy": "private",
171
+ "readonly": true
172
+ },
173
+ {
174
+ "kind": "field",
175
+ "name": "_onWrite",
176
+ "privacy": "private",
177
+ "readonly": true
178
+ },
179
+ {
180
+ "kind": "field",
181
+ "name": "chat",
182
+ "type": {
183
+ "text": "SubagentViewSource | null"
184
+ },
185
+ "description": "The chat, when it has no `id` for the `for` attribute: an element, or anything with `getMessages()`."
186
+ },
187
+ {
188
+ "kind": "method",
189
+ "name": "refresh",
190
+ "return": {
191
+ "type": {
192
+ "text": "void"
193
+ }
194
+ },
195
+ "description": "Read the sub-agent again and draw it: what the element does on every change it hears."
196
+ },
197
+ {
198
+ "kind": "method",
199
+ "name": "_source",
200
+ "privacy": "private",
201
+ "return": {
202
+ "type": {
203
+ "text": "SubagentViewSource | null"
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "kind": "method",
209
+ "name": "_sourceConfig",
210
+ "privacy": "private",
211
+ "return": {
212
+ "type": {
213
+ "text": "AparteConfig"
214
+ }
215
+ }
216
+ },
217
+ {
218
+ "kind": "method",
219
+ "name": "_matches",
220
+ "privacy": "private",
221
+ "return": {
222
+ "type": {
223
+ "text": "boolean"
224
+ }
225
+ },
226
+ "parameters": [
227
+ {
228
+ "name": "write",
229
+ "type": {
230
+ "text": "LaneWrite"
231
+ }
232
+ }
233
+ ],
234
+ "description": "A write from this view's chat: the run's target is the chat, inside it, or named by its id."
235
+ },
236
+ {
237
+ "kind": "method",
238
+ "name": "_find",
239
+ "privacy": "private",
240
+ "return": {
241
+ "type": {
242
+ "text": "AparteSegment | undefined | null"
243
+ }
244
+ },
245
+ "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."
246
+ },
247
+ {
248
+ "kind": "method",
249
+ "name": "_listen",
250
+ "privacy": "private",
251
+ "return": {
252
+ "type": {
253
+ "text": "void"
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "kind": "method",
259
+ "name": "_unlisten",
260
+ "privacy": "private",
261
+ "return": {
262
+ "type": {
263
+ "text": "void"
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "kind": "method",
269
+ "name": "_schedule",
270
+ "privacy": "private",
271
+ "return": {
272
+ "type": {
273
+ "text": "void"
274
+ }
275
+ },
276
+ "description": "Folds a burst of events (a whole run's end) into one read."
277
+ },
278
+ {
279
+ "kind": "method",
280
+ "name": "_onConfigChange",
281
+ "privacy": "private",
282
+ "return": {
283
+ "type": {
284
+ "text": "void"
285
+ }
286
+ }
287
+ },
288
+ {
289
+ "kind": "method",
290
+ "name": "_build",
291
+ "privacy": "private",
292
+ "return": {
293
+ "type": {
294
+ "text": "void"
295
+ }
296
+ }
297
+ },
298
+ {
299
+ "kind": "method",
300
+ "name": "_draw",
301
+ "privacy": "private",
302
+ "return": {
303
+ "type": {
304
+ "text": "void"
305
+ }
306
+ },
307
+ "parameters": [
308
+ {
309
+ "name": "anchor",
310
+ "type": {
311
+ "text": "AparteSegment | null | undefined"
312
+ }
313
+ },
314
+ {
315
+ "name": "config",
316
+ "type": {
317
+ "text": "AparteConfig"
318
+ }
319
+ }
320
+ ],
321
+ "description": "Draw `anchor`'s conversation with `config`."
322
+ },
323
+ {
324
+ "kind": "method",
325
+ "name": "_release",
326
+ "privacy": "private",
327
+ "return": {
328
+ "type": {
329
+ "text": "void"
330
+ }
331
+ },
332
+ "description": "Out of the page for good: every row's renderer cleans up, and the drawing goes."
333
+ }
334
+ ],
335
+ "attributes": [
336
+ {
337
+ "name": "for",
338
+ "type": {
339
+ "text": "string"
340
+ },
341
+ "description": "The `id` of the chat: `<aparte-chat>`, its viewport, or any element with `getMessages()`. Or set the `chat` property."
342
+ },
343
+ {
344
+ "name": "message-id",
345
+ "type": {
346
+ "text": "string"
347
+ },
348
+ "description": "The reply the sub-agent worked for (`aparte-subagent-start`'s `messageId`)."
349
+ },
350
+ {
351
+ "name": "agent-id",
352
+ "type": {
353
+ "text": "string"
354
+ },
355
+ "description": "Which sub-agent (`aparte-subagent-start`'s `agentId`)."
356
+ },
357
+ {
358
+ "type": {
359
+ "text": "boolean"
360
+ },
361
+ "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.",
362
+ "name": "data-empty"
363
+ },
364
+ {
365
+ "type": {
366
+ "text": "boolean"
367
+ },
368
+ "description": "Written BY the element when it is a line's detail rather than a view of its own. Read-only.",
369
+ "name": "data-inline"
370
+ }
371
+ ],
372
+ "superclass": {
373
+ "name": "ElementBase",
374
+ "module": "src/aparte-subagent-view.ts"
375
+ },
376
+ "tagName": "aparte-subagent-view",
377
+ "customElement": true,
378
+ "examples": [
379
+ "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```"
380
+ ]
381
+ },
382
+ {
383
+ "kind": "function",
384
+ "name": "feedView",
385
+ "return": {
386
+ "type": {
387
+ "text": "void"
388
+ }
389
+ },
390
+ "parameters": [
391
+ {
392
+ "name": "view",
393
+ "type": {
394
+ "text": "AparteSubagentView"
395
+ }
396
+ },
397
+ {
398
+ "name": "anchor",
399
+ "type": {
400
+ "text": "AparteSegment"
401
+ }
402
+ },
403
+ {
404
+ "name": "config",
405
+ "type": {
406
+ "text": "AparteConfig"
407
+ }
408
+ },
409
+ {
410
+ "name": "onRelease",
411
+ "optional": true,
412
+ "type": {
413
+ "text": "() => void"
414
+ }
415
+ }
416
+ ],
417
+ "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."
418
+ }
419
+ ],
420
+ "exports": [
421
+ {
422
+ "kind": "js",
423
+ "name": "laneOf",
424
+ "declaration": {
425
+ "name": "laneOf",
426
+ "module": "src/aparte-subagent-view.ts"
427
+ }
428
+ },
429
+ {
430
+ "kind": "js",
431
+ "name": "findSubagent",
432
+ "declaration": {
433
+ "name": "findSubagent",
434
+ "module": "src/aparte-subagent-view.ts"
435
+ }
436
+ },
437
+ {
438
+ "kind": "js",
439
+ "name": "AparteSubagentView",
440
+ "declaration": {
441
+ "name": "AparteSubagentView",
442
+ "module": "src/aparte-subagent-view.ts"
443
+ }
444
+ },
445
+ {
446
+ "kind": "js",
447
+ "name": "feedView",
448
+ "declaration": {
449
+ "name": "feedView",
450
+ "module": "src/aparte-subagent-view.ts"
451
+ }
452
+ },
453
+ {
454
+ "kind": "custom-element-definition",
455
+ "name": "aparte-subagent-view",
456
+ "declaration": {
457
+ "name": "AparteSubagentView",
458
+ "module": "src/aparte-subagent-view.ts"
459
+ }
460
+ }
461
+ ]
462
+ },
463
+ {
464
+ "kind": "javascript-module",
465
+ "path": "src/drawing.ts",
466
+ "declarations": [
467
+ {
468
+ "kind": "class",
469
+ "description": "The rows of one conversation, inside `container`.",
470
+ "name": "LaneDrawing",
471
+ "members": [
472
+ {
473
+ "kind": "field",
474
+ "name": "rows",
475
+ "privacy": "private",
476
+ "readonly": true,
477
+ "default": "new Map<string, Row>()"
478
+ },
479
+ {
480
+ "kind": "field",
481
+ "name": "size",
482
+ "type": {
483
+ "text": "number"
484
+ },
485
+ "description": "How many rows are drawn.",
486
+ "readonly": true
487
+ },
488
+ {
489
+ "kind": "method",
490
+ "name": "sync",
491
+ "return": {
492
+ "type": {
493
+ "text": "void"
494
+ }
495
+ },
496
+ "parameters": [
497
+ {
498
+ "name": "segments",
499
+ "type": {
500
+ "text": "readonly AparteSegment[]"
501
+ }
502
+ },
503
+ {
504
+ "name": "config",
505
+ "type": {
506
+ "text": "AparteConfig"
507
+ }
508
+ },
509
+ {
510
+ "name": "live",
511
+ "type": {
512
+ "text": "boolean"
513
+ }
514
+ }
515
+ ],
516
+ "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."
517
+ },
518
+ {
519
+ "kind": "method",
520
+ "name": "relabel",
521
+ "return": {
522
+ "type": {
523
+ "text": "void"
524
+ }
525
+ },
526
+ "parameters": [
527
+ {
528
+ "name": "config",
529
+ "type": {
530
+ "text": "AparteConfig"
531
+ }
532
+ }
533
+ ],
534
+ "description": "Every row re-reads what it takes from the config (a language switch)."
535
+ },
536
+ {
537
+ "kind": "method",
538
+ "name": "clear",
539
+ "return": {
540
+ "type": {
541
+ "text": "void"
542
+ }
543
+ },
544
+ "parameters": [
545
+ {
546
+ "name": "config",
547
+ "type": {
548
+ "text": "AparteConfig"
549
+ }
550
+ }
551
+ ],
552
+ "description": "Every row goes: each renderer cleans up what it drew."
553
+ },
554
+ {
555
+ "kind": "method",
556
+ "name": "draw",
557
+ "privacy": "private",
558
+ "return": {
559
+ "type": {
560
+ "text": "Row | undefined"
561
+ }
562
+ },
563
+ "parameters": [
564
+ {
565
+ "name": "segment",
566
+ "type": {
567
+ "text": "AparteSegment"
568
+ }
569
+ },
570
+ {
571
+ "name": "renderer",
572
+ "type": {
573
+ "text": "AparteSegmentRenderer | undefined"
574
+ }
575
+ },
576
+ {
577
+ "name": "config",
578
+ "type": {
579
+ "text": "AparteConfig"
580
+ }
581
+ },
582
+ {
583
+ "name": "live",
584
+ "type": {
585
+ "text": "boolean"
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "kind": "method",
592
+ "name": "patch",
593
+ "privacy": "private",
594
+ "return": {
595
+ "type": {
596
+ "text": "void"
597
+ }
598
+ },
599
+ "parameters": [
600
+ {
601
+ "name": "row",
602
+ "type": {
603
+ "text": "Row"
604
+ }
605
+ },
606
+ {
607
+ "name": "segment",
608
+ "type": {
609
+ "text": "AparteSegment"
610
+ }
611
+ },
612
+ {
613
+ "name": "config",
614
+ "type": {
615
+ "text": "AparteConfig"
616
+ }
617
+ }
618
+ ]
619
+ },
620
+ {
621
+ "kind": "method",
622
+ "name": "childOf",
623
+ "privacy": "private",
624
+ "return": {
625
+ "type": {
626
+ "text": "HTMLElement | null"
627
+ }
628
+ },
629
+ "parameters": [
630
+ {
631
+ "name": "id",
632
+ "type": {
633
+ "text": "string"
634
+ }
635
+ }
636
+ ],
637
+ "description": "The row for `id` among the container's own children — never a decoy in a row's prose."
638
+ },
639
+ {
640
+ "kind": "method",
641
+ "name": "release",
642
+ "privacy": "private",
643
+ "return": {
644
+ "type": {
645
+ "text": "void"
646
+ }
647
+ },
648
+ "parameters": [
649
+ {
650
+ "name": "id",
651
+ "type": {
652
+ "text": "string"
653
+ }
654
+ },
655
+ {
656
+ "name": "config",
657
+ "type": {
658
+ "text": "AparteConfig"
659
+ }
660
+ }
661
+ ]
662
+ },
663
+ {
664
+ "kind": "method",
665
+ "name": "cleanup",
666
+ "privacy": "private",
667
+ "return": {
668
+ "type": {
669
+ "text": "void"
670
+ }
671
+ },
672
+ "parameters": [
673
+ {
674
+ "name": "row",
675
+ "type": {
676
+ "text": "Row"
677
+ }
678
+ },
679
+ {
680
+ "name": "config",
681
+ "type": {
682
+ "text": "AparteConfig"
683
+ }
684
+ }
685
+ ]
686
+ }
687
+ ]
688
+ }
689
+ ],
690
+ "exports": [
691
+ {
692
+ "kind": "js",
693
+ "name": "LaneDrawing",
694
+ "declaration": {
695
+ "name": "LaneDrawing",
696
+ "module": "src/drawing.ts"
697
+ }
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "kind": "javascript-module",
703
+ "path": "src/index.node.ts",
704
+ "declarations": [],
705
+ "exports": [
706
+ {
707
+ "kind": "js",
708
+ "name": "setupSubagents",
709
+ "declaration": {
710
+ "name": "setupSubagents",
711
+ "module": "./setup.js"
712
+ }
713
+ },
714
+ {
715
+ "kind": "js",
716
+ "name": "subagentOf",
717
+ "declaration": {
718
+ "name": "subagentOf",
719
+ "module": "./status.js"
720
+ }
721
+ },
722
+ {
723
+ "kind": "js",
724
+ "name": "subagentStatus",
725
+ "declaration": {
726
+ "name": "subagentStatus",
727
+ "module": "./status.js"
728
+ }
729
+ },
730
+ {
731
+ "kind": "js",
732
+ "name": "subagentTranscript",
733
+ "declaration": {
734
+ "name": "subagentTranscript",
735
+ "module": "./transcript.js"
736
+ }
737
+ },
738
+ {
739
+ "kind": "js",
740
+ "name": "AparteSubagentView",
741
+ "declaration": {
742
+ "name": "AparteSubagentView",
743
+ "module": "./aparte-subagent-view.js"
744
+ }
745
+ },
746
+ {
747
+ "kind": "js",
748
+ "name": "SubagentViewSource",
749
+ "declaration": {
750
+ "name": "SubagentViewSource",
751
+ "module": "./aparte-subagent-view.js"
752
+ }
753
+ },
754
+ {
755
+ "kind": "js",
756
+ "name": "SUBAGENT_SEGMENT_TYPE",
757
+ "declaration": {
758
+ "name": "SUBAGENT_SEGMENT_TYPE",
759
+ "module": "./types.js"
760
+ }
761
+ },
762
+ {
763
+ "kind": "js",
764
+ "name": "AparteSubagent",
765
+ "declaration": {
766
+ "name": "AparteSubagent",
767
+ "module": "./types.js"
768
+ }
769
+ },
770
+ {
771
+ "kind": "js",
772
+ "name": "AparteSubagentStatus",
773
+ "declaration": {
774
+ "name": "AparteSubagentStatus",
775
+ "module": "./types.js"
776
+ }
777
+ },
778
+ {
779
+ "kind": "js",
780
+ "name": "AparteSubagentSegment",
781
+ "declaration": {
782
+ "name": "AparteSubagentSegment",
783
+ "module": "./types.js"
784
+ }
785
+ },
786
+ {
787
+ "kind": "js",
788
+ "name": "SubagentsOptions",
789
+ "declaration": {
790
+ "name": "SubagentsOptions",
791
+ "module": "./types.js"
792
+ }
793
+ },
794
+ {
795
+ "kind": "js",
796
+ "name": "AparteSubagentStartEventDetail",
797
+ "declaration": {
798
+ "name": "AparteSubagentStartEventDetail",
799
+ "module": "./types.js"
800
+ }
801
+ },
802
+ {
803
+ "kind": "js",
804
+ "name": "AparteSubagentEndEventDetail",
805
+ "declaration": {
806
+ "name": "AparteSubagentEndEventDetail",
807
+ "module": "./types.js"
808
+ }
809
+ }
810
+ ]
811
+ },
812
+ {
813
+ "kind": "javascript-module",
814
+ "path": "src/index.ts",
815
+ "declarations": [],
816
+ "exports": [
817
+ {
818
+ "kind": "js",
819
+ "name": "setupSubagents",
820
+ "declaration": {
821
+ "name": "setupSubagents",
822
+ "module": "./setup.js"
823
+ }
824
+ },
825
+ {
826
+ "kind": "js",
827
+ "name": "subagentOf",
828
+ "declaration": {
829
+ "name": "subagentOf",
830
+ "module": "./status.js"
831
+ }
832
+ },
833
+ {
834
+ "kind": "js",
835
+ "name": "subagentStatus",
836
+ "declaration": {
837
+ "name": "subagentStatus",
838
+ "module": "./status.js"
839
+ }
840
+ },
841
+ {
842
+ "kind": "js",
843
+ "name": "subagentTranscript",
844
+ "declaration": {
845
+ "name": "subagentTranscript",
846
+ "module": "./transcript.js"
847
+ }
848
+ },
849
+ {
850
+ "kind": "js",
851
+ "name": "AparteSubagentView",
852
+ "declaration": {
853
+ "name": "AparteSubagentView",
854
+ "module": "./aparte-subagent-view.js"
855
+ }
856
+ },
857
+ {
858
+ "kind": "js",
859
+ "name": "SubagentViewSource",
860
+ "declaration": {
861
+ "name": "SubagentViewSource",
862
+ "module": "./aparte-subagent-view.js"
863
+ }
864
+ },
865
+ {
866
+ "kind": "js",
867
+ "name": "SUBAGENT_SEGMENT_TYPE",
868
+ "declaration": {
869
+ "name": "SUBAGENT_SEGMENT_TYPE",
870
+ "module": "./types.js"
871
+ }
872
+ },
873
+ {
874
+ "kind": "js",
875
+ "name": "AparteSubagent",
876
+ "declaration": {
877
+ "name": "AparteSubagent",
878
+ "module": "./types.js"
879
+ }
880
+ },
881
+ {
882
+ "kind": "js",
883
+ "name": "AparteSubagentStatus",
884
+ "declaration": {
885
+ "name": "AparteSubagentStatus",
886
+ "module": "./types.js"
887
+ }
888
+ },
889
+ {
890
+ "kind": "js",
891
+ "name": "AparteSubagentSegment",
892
+ "declaration": {
893
+ "name": "AparteSubagentSegment",
894
+ "module": "./types.js"
895
+ }
896
+ },
897
+ {
898
+ "kind": "js",
899
+ "name": "SubagentsOptions",
900
+ "declaration": {
901
+ "name": "SubagentsOptions",
902
+ "module": "./types.js"
903
+ }
904
+ },
905
+ {
906
+ "kind": "js",
907
+ "name": "AparteSubagentStartEventDetail",
908
+ "declaration": {
909
+ "name": "AparteSubagentStartEventDetail",
910
+ "module": "./types.js"
911
+ }
912
+ },
913
+ {
914
+ "kind": "js",
915
+ "name": "AparteSubagentEndEventDetail",
916
+ "declaration": {
917
+ "name": "AparteSubagentEndEventDetail",
918
+ "module": "./types.js"
919
+ }
920
+ }
921
+ ]
922
+ },
923
+ {
924
+ "kind": "javascript-module",
925
+ "path": "src/lanes.ts",
926
+ "declarations": [
927
+ {
928
+ "kind": "function",
929
+ "name": "watchLaneWrites",
930
+ "return": {
931
+ "type": {
932
+ "text": "() => void"
933
+ }
934
+ },
935
+ "parameters": [
936
+ {
937
+ "name": "fn",
938
+ "type": {
939
+ "text": "(write: LaneWrite) => void"
940
+ }
941
+ }
942
+ ],
943
+ "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."
944
+ },
945
+ {
946
+ "kind": "function",
947
+ "name": "createLanes",
948
+ "return": {
949
+ "type": {
950
+ "text": "{ observe: (event: AparteStreamRunEvent, ctx: AparteRunEventContext) => void; dispose: () => void }"
951
+ }
952
+ },
953
+ "description": "The observer of one setup, and what forgets everything it follows."
954
+ }
955
+ ],
956
+ "exports": [
957
+ {
958
+ "kind": "js",
959
+ "name": "watchLaneWrites",
960
+ "declaration": {
961
+ "name": "watchLaneWrites",
962
+ "module": "src/lanes.ts"
963
+ }
964
+ },
965
+ {
966
+ "kind": "js",
967
+ "name": "createLanes",
968
+ "declaration": {
969
+ "name": "createLanes",
970
+ "module": "src/lanes.ts"
971
+ }
972
+ }
973
+ ]
974
+ },
975
+ {
976
+ "kind": "javascript-module",
977
+ "path": "src/line.ts",
978
+ "declarations": [
979
+ {
980
+ "kind": "function",
981
+ "name": "markStandIn",
982
+ "return": {
983
+ "type": {
984
+ "text": "AparteToolCallSegment"
985
+ }
986
+ },
987
+ "parameters": [
988
+ {
989
+ "name": "segment",
990
+ "type": {
991
+ "text": "AparteToolCallSegment"
992
+ }
993
+ }
994
+ ],
995
+ "description": "Mark a call built to draw a `subagent` segment with core's row."
996
+ },
997
+ {
998
+ "kind": "function",
999
+ "name": "createLineProvider",
1000
+ "return": {
1001
+ "type": {
1002
+ "text": "(segment: AparteToolCallSegment) => AparteToolLine | undefined"
1003
+ }
1004
+ },
1005
+ "parameters": [
1006
+ {
1007
+ "name": "options",
1008
+ "default": "{}",
1009
+ "type": {
1010
+ "text": "SubagentsOptions"
1011
+ }
1012
+ }
1013
+ ],
1014
+ "description": "The provider: the line of every call that carries a sub-agent, `undefined` for any other\ncall (core's own line then)."
1015
+ }
1016
+ ],
1017
+ "exports": [
1018
+ {
1019
+ "kind": "js",
1020
+ "name": "markStandIn",
1021
+ "declaration": {
1022
+ "name": "markStandIn",
1023
+ "module": "src/line.ts"
1024
+ }
1025
+ },
1026
+ {
1027
+ "kind": "js",
1028
+ "name": "createLineProvider",
1029
+ "declaration": {
1030
+ "name": "createLineProvider",
1031
+ "module": "src/line.ts"
1032
+ }
1033
+ }
1034
+ ]
1035
+ },
1036
+ {
1037
+ "kind": "javascript-module",
1038
+ "path": "src/segment.ts",
1039
+ "declarations": [
1040
+ {
1041
+ "kind": "variable",
1042
+ "name": "UNNAMED_AGENT",
1043
+ "type": {
1044
+ "text": "string"
1045
+ },
1046
+ "default": "'subagent'",
1047
+ "description": "The tool name a sub-agent with no name stands in under."
1048
+ },
1049
+ {
1050
+ "kind": "function",
1051
+ "name": "standInCall",
1052
+ "return": {
1053
+ "type": {
1054
+ "text": "AparteToolCallSegment"
1055
+ }
1056
+ },
1057
+ "parameters": [
1058
+ {
1059
+ "name": "segment",
1060
+ "type": {
1061
+ "text": "AparteSubagentSegment"
1062
+ }
1063
+ }
1064
+ ],
1065
+ "description": "The call that stands for a `subagent` segment on core's row: same id, the agent's name, its status."
1066
+ },
1067
+ {
1068
+ "kind": "variable",
1069
+ "name": "subagentRenderer",
1070
+ "type": {
1071
+ "text": "AparteSegmentRenderer<AparteSubagentSegment>"
1072
+ },
1073
+ "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, }"
1074
+ }
1075
+ ],
1076
+ "exports": [
1077
+ {
1078
+ "kind": "js",
1079
+ "name": "UNNAMED_AGENT",
1080
+ "declaration": {
1081
+ "name": "UNNAMED_AGENT",
1082
+ "module": "src/segment.ts"
1083
+ }
1084
+ },
1085
+ {
1086
+ "kind": "js",
1087
+ "name": "standInCall",
1088
+ "declaration": {
1089
+ "name": "standInCall",
1090
+ "module": "src/segment.ts"
1091
+ }
1092
+ },
1093
+ {
1094
+ "kind": "js",
1095
+ "name": "subagentRenderer",
1096
+ "declaration": {
1097
+ "name": "subagentRenderer",
1098
+ "module": "src/segment.ts"
1099
+ }
1100
+ }
1101
+ ]
1102
+ },
1103
+ {
1104
+ "kind": "javascript-module",
1105
+ "path": "src/setup.ts",
1106
+ "declarations": [
1107
+ {
1108
+ "kind": "function",
1109
+ "name": "setupSubagents",
1110
+ "return": {
1111
+ "type": {
1112
+ "text": "() => void"
1113
+ }
1114
+ },
1115
+ "parameters": [
1116
+ {
1117
+ "name": "options",
1118
+ "default": "{}",
1119
+ "type": {
1120
+ "text": "SubagentsOptions"
1121
+ }
1122
+ },
1123
+ {
1124
+ "name": "config",
1125
+ "default": "aparteGlobalConfig",
1126
+ "type": {
1127
+ "text": "AparteConfig"
1128
+ }
1129
+ }
1130
+ ],
1131
+ "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."
1132
+ }
1133
+ ],
1134
+ "exports": [
1135
+ {
1136
+ "kind": "js",
1137
+ "name": "setupSubagents",
1138
+ "declaration": {
1139
+ "name": "setupSubagents",
1140
+ "module": "src/setup.ts"
1141
+ }
1142
+ }
1143
+ ]
1144
+ },
1145
+ {
1146
+ "kind": "javascript-module",
1147
+ "path": "src/status.ts",
1148
+ "declarations": [
1149
+ {
1150
+ "kind": "function",
1151
+ "name": "subagentOf",
1152
+ "return": {
1153
+ "type": {
1154
+ "text": "AparteSubagent | undefined"
1155
+ }
1156
+ },
1157
+ "parameters": [
1158
+ {
1159
+ "name": "segment",
1160
+ "type": {
1161
+ "text": "AparteSegment"
1162
+ }
1163
+ }
1164
+ ],
1165
+ "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."
1166
+ },
1167
+ {
1168
+ "kind": "function",
1169
+ "name": "subagentStatus",
1170
+ "return": {
1171
+ "type": {
1172
+ "text": "AparteSubagentStatus"
1173
+ }
1174
+ },
1175
+ "parameters": [
1176
+ {
1177
+ "name": "segment",
1178
+ "type": {
1179
+ "text": "AparteSegment"
1180
+ }
1181
+ }
1182
+ ],
1183
+ "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`."
1184
+ },
1185
+ {
1186
+ "kind": "function",
1187
+ "name": "statusOfCall",
1188
+ "return": {
1189
+ "type": {
1190
+ "text": "AparteSubagentStatus"
1191
+ }
1192
+ },
1193
+ "parameters": [
1194
+ {
1195
+ "name": "status",
1196
+ "type": {
1197
+ "text": "AparteToolCallSegment['status'] | undefined"
1198
+ }
1199
+ }
1200
+ ],
1201
+ "description": "What a call's own status says of a sub-agent, as its row shows it."
1202
+ },
1203
+ {
1204
+ "kind": "function",
1205
+ "name": "callStatusOf",
1206
+ "return": {
1207
+ "type": {
1208
+ "text": "AparteToolCallSegment['status']"
1209
+ }
1210
+ },
1211
+ "parameters": [
1212
+ {
1213
+ "name": "status",
1214
+ "type": {
1215
+ "text": "AparteSubagentStatus"
1216
+ }
1217
+ }
1218
+ ],
1219
+ "description": "The call status that says a sub-agent's status on a row — the reverse of statusOfCall."
1220
+ }
1221
+ ],
1222
+ "exports": [
1223
+ {
1224
+ "kind": "js",
1225
+ "name": "subagentOf",
1226
+ "declaration": {
1227
+ "name": "subagentOf",
1228
+ "module": "src/status.ts"
1229
+ }
1230
+ },
1231
+ {
1232
+ "kind": "js",
1233
+ "name": "subagentStatus",
1234
+ "declaration": {
1235
+ "name": "subagentStatus",
1236
+ "module": "src/status.ts"
1237
+ }
1238
+ },
1239
+ {
1240
+ "kind": "js",
1241
+ "name": "statusOfCall",
1242
+ "declaration": {
1243
+ "name": "statusOfCall",
1244
+ "module": "src/status.ts"
1245
+ }
1246
+ },
1247
+ {
1248
+ "kind": "js",
1249
+ "name": "callStatusOf",
1250
+ "declaration": {
1251
+ "name": "callStatusOf",
1252
+ "module": "src/status.ts"
1253
+ }
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "kind": "javascript-module",
1259
+ "path": "src/styles.ts",
1260
+ "declarations": [
1261
+ {
1262
+ "kind": "function",
1263
+ "name": "rendererStyles",
1264
+ "return": {
1265
+ "type": {
1266
+ "text": "string"
1267
+ }
1268
+ },
1269
+ "description": "What the segment renderer hands core: the sheet, unless the element already put it on the page."
1270
+ },
1271
+ {
1272
+ "kind": "function",
1273
+ "name": "ensureStyles",
1274
+ "return": {
1275
+ "type": {
1276
+ "text": "void"
1277
+ }
1278
+ },
1279
+ "description": "Put the sheet on the page, unless it is there already."
1280
+ }
1281
+ ],
1282
+ "exports": [
1283
+ {
1284
+ "kind": "js",
1285
+ "name": "rendererStyles",
1286
+ "declaration": {
1287
+ "name": "rendererStyles",
1288
+ "module": "src/styles.ts"
1289
+ }
1290
+ },
1291
+ {
1292
+ "kind": "js",
1293
+ "name": "ensureStyles",
1294
+ "declaration": {
1295
+ "name": "ensureStyles",
1296
+ "module": "src/styles.ts"
1297
+ }
1298
+ }
1299
+ ]
1300
+ },
1301
+ {
1302
+ "kind": "javascript-module",
1303
+ "path": "src/transcript.ts",
1304
+ "declarations": [
1305
+ {
1306
+ "kind": "function",
1307
+ "name": "subagentTranscript",
1308
+ "parameters": [
1309
+ {
1310
+ "name": "segment"
1311
+ }
1312
+ ],
1313
+ "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."
1314
+ }
1315
+ ],
1316
+ "exports": [
1317
+ {
1318
+ "kind": "js",
1319
+ "name": "subagentTranscript",
1320
+ "declaration": {
1321
+ "name": "subagentTranscript",
1322
+ "module": "src/transcript.ts"
1323
+ }
1324
+ }
1325
+ ]
1326
+ },
1327
+ {
1328
+ "kind": "javascript-module",
1329
+ "path": "src/types.ts",
1330
+ "declarations": [
1331
+ {
1332
+ "kind": "variable",
1333
+ "name": "SUBAGENT_SEGMENT_TYPE",
1334
+ "type": {
1335
+ "text": "string"
1336
+ },
1337
+ "default": "'subagent'",
1338
+ "description": "The segment type of a sub-agent that no call opened."
1339
+ }
1340
+ ],
1341
+ "exports": [
1342
+ {
1343
+ "kind": "js",
1344
+ "name": "SUBAGENT_SEGMENT_TYPE",
1345
+ "declaration": {
1346
+ "name": "SUBAGENT_SEGMENT_TYPE",
1347
+ "module": "src/types.ts"
1348
+ }
1349
+ }
1350
+ ]
1351
+ },
1352
+ {
1353
+ "kind": "javascript-module",
1354
+ "path": "src/words.ts",
1355
+ "declarations": [
1356
+ {
1357
+ "kind": "variable",
1358
+ "name": "WORDS",
1359
+ "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: '子智能体', }, } satisfies Record<string, Word>"
1360
+ },
1361
+ {
1362
+ "kind": "function",
1363
+ "name": "word",
1364
+ "return": {
1365
+ "type": {
1366
+ "text": "string"
1367
+ }
1368
+ },
1369
+ "parameters": [
1370
+ {
1371
+ "name": "config",
1372
+ "type": {
1373
+ "text": "AparteConfig"
1374
+ }
1375
+ },
1376
+ {
1377
+ "name": "key",
1378
+ "type": {
1379
+ "text": "WordKey"
1380
+ }
1381
+ }
1382
+ ],
1383
+ "description": "The word for `key`: the app's locale, else this table in the chat's language, else English."
1384
+ },
1385
+ {
1386
+ "kind": "function",
1387
+ "name": "toolCount",
1388
+ "return": {
1389
+ "type": {
1390
+ "text": "string"
1391
+ }
1392
+ },
1393
+ "parameters": [
1394
+ {
1395
+ "name": "config",
1396
+ "type": {
1397
+ "text": "AparteConfig"
1398
+ }
1399
+ },
1400
+ {
1401
+ "name": "n",
1402
+ "type": {
1403
+ "text": "number"
1404
+ }
1405
+ }
1406
+ ],
1407
+ "description": "\"3 tools\", in the chat's language and its plural rules."
1408
+ }
1409
+ ],
1410
+ "exports": [
1411
+ {
1412
+ "kind": "js",
1413
+ "name": "WORDS",
1414
+ "declaration": {
1415
+ "name": "WORDS",
1416
+ "module": "src/words.ts"
1417
+ }
1418
+ },
1419
+ {
1420
+ "kind": "js",
1421
+ "name": "word",
1422
+ "declaration": {
1423
+ "name": "word",
1424
+ "module": "src/words.ts"
1425
+ }
1426
+ },
1427
+ {
1428
+ "kind": "js",
1429
+ "name": "toolCount",
1430
+ "declaration": {
1431
+ "name": "toolCount",
1432
+ "module": "src/words.ts"
1433
+ }
1434
+ }
1435
+ ]
1436
+ }
1437
+ ]
1438
+ }