@aparte/core 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/agent-runner.d.ts +8 -3
- package/dist/client/agent-runner.d.ts.map +1 -1
- package/dist/client/aparte-client.d.ts +48 -11
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +5 -0
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/client/wire-history.d.ts +21 -1
- package/dist/client/wire-history.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +13 -3
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +64 -0
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +2 -1
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +3 -1
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts +11 -0
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +2 -1
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +1 -1
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +43 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/conversation-list/index.d.ts +1 -1
- package/dist/components/conversation-list/index.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/launcher/aparte-launcher.d.ts.map +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts.map +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts +14 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts +1 -1
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts +3 -2
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +3 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +108 -13
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/link-target.d.ts +39 -0
- package/dist/config/link-target.d.ts.map +1 -0
- package/dist/config/sanitize.d.ts +22 -3
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/config/step-label.d.ts +22 -0
- package/dist/config/step-label.d.ts.map +1 -0
- package/dist/context/checkpoint-state.d.ts +0 -7
- package/dist/context/checkpoint-state.d.ts.map +1 -1
- package/dist/context/measure.d.ts +3 -1
- package/dist/context/measure.d.ts.map +1 -1
- package/dist/conversations/conversation-controller.d.ts +56 -0
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/conversations/open-conversation.d.ts +28 -0
- package/dist/conversations/open-conversation.d.ts.map +1 -0
- package/dist/custom-elements.json +1969 -335
- package/dist/{defer-hydration-BE2ToXC_.js → defer-hydration-OFqdbk3O.js} +991 -299
- package/dist/defer-hydration-OFqdbk3O.js.map +1 -0
- package/dist/elicitation/approval-panel.d.ts +1 -1
- package/dist/elicitation/approval-panel.d.ts.map +1 -1
- package/dist/elicitation/option-keys.d.ts +26 -0
- package/dist/elicitation/option-keys.d.ts.map +1 -0
- package/dist/elicitation/types.d.ts +16 -0
- package/dist/elicitation/types.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +13 -6
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-LolG04CC.js → glyphs-BgKFtByg.js} +10 -10
- package/dist/{glyphs-LolG04CC.js.map → glyphs-BgKFtByg.js.map} +1 -1
- package/dist/host/aparte-chat-host.d.ts +42 -1
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/icons/extended.d.ts +9 -0
- package/dist/icons/extended.d.ts.map +1 -1
- package/dist/icons.js +20 -11
- package/dist/icons.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +10 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +310 -197
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +8 -3
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +61 -58
- package/dist/index.node.js.map +1 -1
- package/dist/interop/chat-events.d.ts +64 -0
- package/dist/interop/chat-events.d.ts.map +1 -0
- package/dist/interop/element-props.d.ts +6 -0
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/interop/element-spec.d.ts +85 -0
- package/dist/interop/element-spec.d.ts.map +1 -0
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts +1 -1
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +1 -1
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/citations.d.ts.map +1 -1
- package/dist/transport/agent-handler.d.ts +14 -4
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/dist/types/element-attributes.d.ts +5 -2
- package/dist/types/element-attributes.d.ts.map +1 -1
- package/dist/types/events.d.ts +15 -13
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/imperative-api.d.ts +26 -0
- package/dist/types/imperative-api.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +26 -0
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +2 -1
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +60 -5
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/segments.d.ts +1 -0
- package/dist/utils/segments.d.ts.map +1 -1
- package/dist/utils/tool-line.d.ts +9 -8
- package/dist/utils/tool-line.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/defer-hydration-BE2ToXC_.js.map +0 -1
|
@@ -201,6 +201,14 @@
|
|
|
201
201
|
"module": "./types/index.js"
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "js",
|
|
206
|
+
"name": "AparteDeferredCall",
|
|
207
|
+
"declaration": {
|
|
208
|
+
"name": "AparteDeferredCall",
|
|
209
|
+
"module": "./types/index.js"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
204
212
|
{
|
|
205
213
|
"kind": "js",
|
|
206
214
|
"name": "AparteComposerCaret",
|
|
@@ -1033,6 +1041,14 @@
|
|
|
1033
1041
|
"module": "./types/index.js"
|
|
1034
1042
|
}
|
|
1035
1043
|
},
|
|
1044
|
+
{
|
|
1045
|
+
"kind": "js",
|
|
1046
|
+
"name": "AparteComposerSendAttributes",
|
|
1047
|
+
"declaration": {
|
|
1048
|
+
"name": "AparteComposerSendAttributes",
|
|
1049
|
+
"module": "./types/index.js"
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1036
1052
|
{
|
|
1037
1053
|
"kind": "js",
|
|
1038
1054
|
"name": "AparteComposerToolbarAttributes",
|
|
@@ -1489,6 +1505,14 @@
|
|
|
1489
1505
|
"module": "./components/index.js"
|
|
1490
1506
|
}
|
|
1491
1507
|
},
|
|
1508
|
+
{
|
|
1509
|
+
"kind": "js",
|
|
1510
|
+
"name": "AparteConversationMetaRenderer",
|
|
1511
|
+
"declaration": {
|
|
1512
|
+
"name": "AparteConversationMetaRenderer",
|
|
1513
|
+
"module": "./components/index.js"
|
|
1514
|
+
}
|
|
1515
|
+
},
|
|
1492
1516
|
{
|
|
1493
1517
|
"kind": "js",
|
|
1494
1518
|
"name": "AparteConversationSelectDetail",
|
|
@@ -2329,6 +2353,22 @@
|
|
|
2329
2353
|
"module": "./config/index.js"
|
|
2330
2354
|
}
|
|
2331
2355
|
},
|
|
2356
|
+
{
|
|
2357
|
+
"kind": "js",
|
|
2358
|
+
"name": "AparteStepLabel",
|
|
2359
|
+
"declaration": {
|
|
2360
|
+
"name": "AparteStepLabel",
|
|
2361
|
+
"module": "./config/index.js"
|
|
2362
|
+
}
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"kind": "js",
|
|
2366
|
+
"name": "AparteStepLabelContext",
|
|
2367
|
+
"declaration": {
|
|
2368
|
+
"name": "AparteStepLabelContext",
|
|
2369
|
+
"module": "./config/index.js"
|
|
2370
|
+
}
|
|
2371
|
+
},
|
|
2332
2372
|
{
|
|
2333
2373
|
"kind": "js",
|
|
2334
2374
|
"name": "AparteModelPreference",
|
|
@@ -2369,6 +2409,22 @@
|
|
|
2369
2409
|
"module": "./config/index.js"
|
|
2370
2410
|
}
|
|
2371
2411
|
},
|
|
2412
|
+
{
|
|
2413
|
+
"kind": "js",
|
|
2414
|
+
"name": "AparteLinkDecision",
|
|
2415
|
+
"declaration": {
|
|
2416
|
+
"name": "AparteLinkDecision",
|
|
2417
|
+
"module": "./config/index.js"
|
|
2418
|
+
}
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"kind": "js",
|
|
2422
|
+
"name": "AparteLinkTarget",
|
|
2423
|
+
"declaration": {
|
|
2424
|
+
"name": "AparteLinkTarget",
|
|
2425
|
+
"module": "./config/index.js"
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2372
2428
|
{
|
|
2373
2429
|
"kind": "js",
|
|
2374
2430
|
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
@@ -2441,6 +2497,14 @@
|
|
|
2441
2497
|
"module": "./context/measure.js"
|
|
2442
2498
|
}
|
|
2443
2499
|
},
|
|
2500
|
+
{
|
|
2501
|
+
"kind": "js",
|
|
2502
|
+
"name": "withoutAbandonedTurns",
|
|
2503
|
+
"declaration": {
|
|
2504
|
+
"name": "withoutAbandonedTurns",
|
|
2505
|
+
"module": "./client/wire-history.js"
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2444
2508
|
{
|
|
2445
2509
|
"kind": "js",
|
|
2446
2510
|
"name": "AparteContextMeasure",
|
|
@@ -2473,6 +2537,14 @@
|
|
|
2473
2537
|
"module": "./client/aparte-client.js"
|
|
2474
2538
|
}
|
|
2475
2539
|
},
|
|
2540
|
+
{
|
|
2541
|
+
"kind": "js",
|
|
2542
|
+
"name": "AparteTurnContext",
|
|
2543
|
+
"declaration": {
|
|
2544
|
+
"name": "AparteTurnContext",
|
|
2545
|
+
"module": "./types/tools.js"
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2476
2548
|
{
|
|
2477
2549
|
"kind": "js",
|
|
2478
2550
|
"name": "createStreamAdapter",
|
|
@@ -2625,6 +2697,78 @@
|
|
|
2625
2697
|
"module": "./interop/element-props.js"
|
|
2626
2698
|
}
|
|
2627
2699
|
},
|
|
2700
|
+
{
|
|
2701
|
+
"kind": "js",
|
|
2702
|
+
"name": "chatIdOf",
|
|
2703
|
+
"declaration": {
|
|
2704
|
+
"name": "chatIdOf",
|
|
2705
|
+
"module": "./interop/chat-events.js"
|
|
2706
|
+
}
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"kind": "js",
|
|
2710
|
+
"name": "dispatchChatEvent",
|
|
2711
|
+
"declaration": {
|
|
2712
|
+
"name": "dispatchChatEvent",
|
|
2713
|
+
"module": "./interop/chat-events.js"
|
|
2714
|
+
}
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"kind": "js",
|
|
2718
|
+
"name": "AparteChatScoped",
|
|
2719
|
+
"declaration": {
|
|
2720
|
+
"name": "AparteChatScoped",
|
|
2721
|
+
"module": "./interop/chat-events.js"
|
|
2722
|
+
}
|
|
2723
|
+
},
|
|
2724
|
+
{
|
|
2725
|
+
"kind": "js",
|
|
2726
|
+
"name": "AparteElementSpec",
|
|
2727
|
+
"declaration": {
|
|
2728
|
+
"name": "AparteElementSpec",
|
|
2729
|
+
"module": "./interop/element-spec.js"
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"kind": "js",
|
|
2734
|
+
"name": "AparteElementSpecEvent",
|
|
2735
|
+
"declaration": {
|
|
2736
|
+
"name": "AparteElementSpecEvent",
|
|
2737
|
+
"module": "./interop/element-spec.js"
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"kind": "js",
|
|
2742
|
+
"name": "AparteElementSpecEvents",
|
|
2743
|
+
"declaration": {
|
|
2744
|
+
"name": "AparteElementSpecEvents",
|
|
2745
|
+
"module": "./interop/element-spec.js"
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
{
|
|
2749
|
+
"kind": "js",
|
|
2750
|
+
"name": "AparteSpecAttributes",
|
|
2751
|
+
"declaration": {
|
|
2752
|
+
"name": "AparteSpecAttributes",
|
|
2753
|
+
"module": "./interop/element-spec.js"
|
|
2754
|
+
}
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"kind": "js",
|
|
2758
|
+
"name": "AparteSpecProperties",
|
|
2759
|
+
"declaration": {
|
|
2760
|
+
"name": "AparteSpecProperties",
|
|
2761
|
+
"module": "./interop/element-spec.js"
|
|
2762
|
+
}
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"kind": "js",
|
|
2766
|
+
"name": "AparteSpecEvents",
|
|
2767
|
+
"declaration": {
|
|
2768
|
+
"name": "AparteSpecEvents",
|
|
2769
|
+
"module": "./interop/element-spec.js"
|
|
2770
|
+
}
|
|
2771
|
+
},
|
|
2628
2772
|
{
|
|
2629
2773
|
"kind": "js",
|
|
2630
2774
|
"name": "AparteUiEventName",
|
|
@@ -3259,6 +3403,14 @@
|
|
|
3259
3403
|
"module": "./types/index.js"
|
|
3260
3404
|
}
|
|
3261
3405
|
},
|
|
3406
|
+
{
|
|
3407
|
+
"kind": "js",
|
|
3408
|
+
"name": "AparteDeferredCall",
|
|
3409
|
+
"declaration": {
|
|
3410
|
+
"name": "AparteDeferredCall",
|
|
3411
|
+
"module": "./types/index.js"
|
|
3412
|
+
}
|
|
3413
|
+
},
|
|
3262
3414
|
{
|
|
3263
3415
|
"kind": "js",
|
|
3264
3416
|
"name": "AparteComposerCaret",
|
|
@@ -4091,6 +4243,14 @@
|
|
|
4091
4243
|
"module": "./types/index.js"
|
|
4092
4244
|
}
|
|
4093
4245
|
},
|
|
4246
|
+
{
|
|
4247
|
+
"kind": "js",
|
|
4248
|
+
"name": "AparteComposerSendAttributes",
|
|
4249
|
+
"declaration": {
|
|
4250
|
+
"name": "AparteComposerSendAttributes",
|
|
4251
|
+
"module": "./types/index.js"
|
|
4252
|
+
}
|
|
4253
|
+
},
|
|
4094
4254
|
{
|
|
4095
4255
|
"kind": "js",
|
|
4096
4256
|
"name": "AparteComposerToolbarAttributes",
|
|
@@ -4659,6 +4819,14 @@
|
|
|
4659
4819
|
"module": "./components/index.js"
|
|
4660
4820
|
}
|
|
4661
4821
|
},
|
|
4822
|
+
{
|
|
4823
|
+
"kind": "js",
|
|
4824
|
+
"name": "AparteConversationMetaRenderer",
|
|
4825
|
+
"declaration": {
|
|
4826
|
+
"name": "AparteConversationMetaRenderer",
|
|
4827
|
+
"module": "./components/index.js"
|
|
4828
|
+
}
|
|
4829
|
+
},
|
|
4662
4830
|
{
|
|
4663
4831
|
"kind": "js",
|
|
4664
4832
|
"name": "AparteConversationSelectDetail",
|
|
@@ -5019,6 +5187,22 @@
|
|
|
5019
5187
|
"module": "./config/index.js"
|
|
5020
5188
|
}
|
|
5021
5189
|
},
|
|
5190
|
+
{
|
|
5191
|
+
"kind": "js",
|
|
5192
|
+
"name": "AparteStepLabel",
|
|
5193
|
+
"declaration": {
|
|
5194
|
+
"name": "AparteStepLabel",
|
|
5195
|
+
"module": "./config/index.js"
|
|
5196
|
+
}
|
|
5197
|
+
},
|
|
5198
|
+
{
|
|
5199
|
+
"kind": "js",
|
|
5200
|
+
"name": "AparteStepLabelContext",
|
|
5201
|
+
"declaration": {
|
|
5202
|
+
"name": "AparteStepLabelContext",
|
|
5203
|
+
"module": "./config/index.js"
|
|
5204
|
+
}
|
|
5205
|
+
},
|
|
5022
5206
|
{
|
|
5023
5207
|
"kind": "js",
|
|
5024
5208
|
"name": "AparteMarkdownProvider",
|
|
@@ -5243,6 +5427,22 @@
|
|
|
5243
5427
|
"module": "./config/index.js"
|
|
5244
5428
|
}
|
|
5245
5429
|
},
|
|
5430
|
+
{
|
|
5431
|
+
"kind": "js",
|
|
5432
|
+
"name": "AparteLinkDecision",
|
|
5433
|
+
"declaration": {
|
|
5434
|
+
"name": "AparteLinkDecision",
|
|
5435
|
+
"module": "./config/index.js"
|
|
5436
|
+
}
|
|
5437
|
+
},
|
|
5438
|
+
{
|
|
5439
|
+
"kind": "js",
|
|
5440
|
+
"name": "AparteLinkTarget",
|
|
5441
|
+
"declaration": {
|
|
5442
|
+
"name": "AparteLinkTarget",
|
|
5443
|
+
"module": "./config/index.js"
|
|
5444
|
+
}
|
|
5445
|
+
},
|
|
5246
5446
|
{
|
|
5247
5447
|
"kind": "js",
|
|
5248
5448
|
"name": "APARTE_DEFAULT_ICON_FALLBACKS",
|
|
@@ -5315,6 +5515,14 @@
|
|
|
5315
5515
|
"module": "./context/measure.js"
|
|
5316
5516
|
}
|
|
5317
5517
|
},
|
|
5518
|
+
{
|
|
5519
|
+
"kind": "js",
|
|
5520
|
+
"name": "withoutAbandonedTurns",
|
|
5521
|
+
"declaration": {
|
|
5522
|
+
"name": "withoutAbandonedTurns",
|
|
5523
|
+
"module": "./client/wire-history.js"
|
|
5524
|
+
}
|
|
5525
|
+
},
|
|
5318
5526
|
{
|
|
5319
5527
|
"kind": "js",
|
|
5320
5528
|
"name": "AparteContextMeasure",
|
|
@@ -5355,6 +5563,78 @@
|
|
|
5355
5563
|
"module": "./interop/element-props.js"
|
|
5356
5564
|
}
|
|
5357
5565
|
},
|
|
5566
|
+
{
|
|
5567
|
+
"kind": "js",
|
|
5568
|
+
"name": "chatIdOf",
|
|
5569
|
+
"declaration": {
|
|
5570
|
+
"name": "chatIdOf",
|
|
5571
|
+
"module": "./interop/chat-events.js"
|
|
5572
|
+
}
|
|
5573
|
+
},
|
|
5574
|
+
{
|
|
5575
|
+
"kind": "js",
|
|
5576
|
+
"name": "dispatchChatEvent",
|
|
5577
|
+
"declaration": {
|
|
5578
|
+
"name": "dispatchChatEvent",
|
|
5579
|
+
"module": "./interop/chat-events.js"
|
|
5580
|
+
}
|
|
5581
|
+
},
|
|
5582
|
+
{
|
|
5583
|
+
"kind": "js",
|
|
5584
|
+
"name": "AparteChatScoped",
|
|
5585
|
+
"declaration": {
|
|
5586
|
+
"name": "AparteChatScoped",
|
|
5587
|
+
"module": "./interop/chat-events.js"
|
|
5588
|
+
}
|
|
5589
|
+
},
|
|
5590
|
+
{
|
|
5591
|
+
"kind": "js",
|
|
5592
|
+
"name": "AparteElementSpec",
|
|
5593
|
+
"declaration": {
|
|
5594
|
+
"name": "AparteElementSpec",
|
|
5595
|
+
"module": "./interop/element-spec.js"
|
|
5596
|
+
}
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
"kind": "js",
|
|
5600
|
+
"name": "AparteElementSpecEvent",
|
|
5601
|
+
"declaration": {
|
|
5602
|
+
"name": "AparteElementSpecEvent",
|
|
5603
|
+
"module": "./interop/element-spec.js"
|
|
5604
|
+
}
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
"kind": "js",
|
|
5608
|
+
"name": "AparteElementSpecEvents",
|
|
5609
|
+
"declaration": {
|
|
5610
|
+
"name": "AparteElementSpecEvents",
|
|
5611
|
+
"module": "./interop/element-spec.js"
|
|
5612
|
+
}
|
|
5613
|
+
},
|
|
5614
|
+
{
|
|
5615
|
+
"kind": "js",
|
|
5616
|
+
"name": "AparteSpecAttributes",
|
|
5617
|
+
"declaration": {
|
|
5618
|
+
"name": "AparteSpecAttributes",
|
|
5619
|
+
"module": "./interop/element-spec.js"
|
|
5620
|
+
}
|
|
5621
|
+
},
|
|
5622
|
+
{
|
|
5623
|
+
"kind": "js",
|
|
5624
|
+
"name": "AparteSpecProperties",
|
|
5625
|
+
"declaration": {
|
|
5626
|
+
"name": "AparteSpecProperties",
|
|
5627
|
+
"module": "./interop/element-spec.js"
|
|
5628
|
+
}
|
|
5629
|
+
},
|
|
5630
|
+
{
|
|
5631
|
+
"kind": "js",
|
|
5632
|
+
"name": "AparteSpecEvents",
|
|
5633
|
+
"declaration": {
|
|
5634
|
+
"name": "AparteSpecEvents",
|
|
5635
|
+
"module": "./interop/element-spec.js"
|
|
5636
|
+
}
|
|
5637
|
+
},
|
|
5358
5638
|
{
|
|
5359
5639
|
"kind": "js",
|
|
5360
5640
|
"name": "filesToAttachments",
|
|
@@ -5587,6 +5867,14 @@
|
|
|
5587
5867
|
"module": "./client/aparte-client.js"
|
|
5588
5868
|
}
|
|
5589
5869
|
},
|
|
5870
|
+
{
|
|
5871
|
+
"kind": "js",
|
|
5872
|
+
"name": "AparteTurnContext",
|
|
5873
|
+
"declaration": {
|
|
5874
|
+
"name": "AparteTurnContext",
|
|
5875
|
+
"module": "./types/tools.js"
|
|
5876
|
+
}
|
|
5877
|
+
},
|
|
5590
5878
|
{
|
|
5591
5879
|
"kind": "js",
|
|
5592
5880
|
"name": "createStreamAdapter",
|
|
@@ -6278,6 +6566,31 @@
|
|
|
6278
6566
|
},
|
|
6279
6567
|
"description": "Abort the current streaming response and all active tool calls.\nDispatches `aparte-message-aborted` on the target element."
|
|
6280
6568
|
},
|
|
6569
|
+
{
|
|
6570
|
+
"kind": "method",
|
|
6571
|
+
"name": "_approvalPreviewOf",
|
|
6572
|
+
"privacy": "private",
|
|
6573
|
+
"return": {
|
|
6574
|
+
"type": {
|
|
6575
|
+
"text": "HTMLElement | string | undefined"
|
|
6576
|
+
}
|
|
6577
|
+
},
|
|
6578
|
+
"parameters": [
|
|
6579
|
+
{
|
|
6580
|
+
"name": "call",
|
|
6581
|
+
"type": {
|
|
6582
|
+
"text": "AparteToolCall"
|
|
6583
|
+
}
|
|
6584
|
+
},
|
|
6585
|
+
{
|
|
6586
|
+
"name": "target",
|
|
6587
|
+
"type": {
|
|
6588
|
+
"text": "HTMLElement"
|
|
6589
|
+
}
|
|
6590
|
+
}
|
|
6591
|
+
],
|
|
6592
|
+
"description": "What the call would do, as the tool's display draws it for the approval panel\n(`AparteToolDisplay.approvalPreview`), read from the chat's config, the one the row\nrenders with. `undefined` when the display has none, answers `null`, or throws: the\nquestion then shows the arguments alone."
|
|
6593
|
+
},
|
|
6281
6594
|
{
|
|
6282
6595
|
"kind": "method",
|
|
6283
6596
|
"name": "_askForApproval",
|
|
@@ -6305,6 +6618,12 @@
|
|
|
6305
6618
|
"type": {
|
|
6306
6619
|
"text": "HTMLElement"
|
|
6307
6620
|
}
|
|
6621
|
+
},
|
|
6622
|
+
{
|
|
6623
|
+
"name": "turn",
|
|
6624
|
+
"type": {
|
|
6625
|
+
"text": "AparteTurnContext"
|
|
6626
|
+
}
|
|
6308
6627
|
}
|
|
6309
6628
|
],
|
|
6310
6629
|
"description": "Ask the human at the COMPOSER, and report what they decided.\n\nThe default channel. Routing through `requestUserInput` puts the decision\nwhere every other request for the user already goes, which is the whole point:\none queue, one panel slot, one teardown, and the same behaviour whether the\nrequest came from a tool handler or from this gate.\n\nThe tool NAME is the question and its ARGUMENTS are the body, because the\narguments are what is being approved — a decision surface that names the act and\nhides its subject asks for a signature on a blank page. The transcript row stays the\nanchor, but it is not the only place the call can be read. The panel is capped\nat 50vh and the block inside it scrolls, so a long input cannot push the options\noff the surface they are asked on.\n\nThere is no `aparte-tool-decision` event and no `document` listener that answers\none: a decision is answered by a typed presenter registered per config instance,\nnever by a window event. A host\nthat wants to answer programmatically registers an `approvalResolver` (headless,\nno DOM) or its own presenter, both strictly more capable than an id on an event."
|
|
@@ -6406,7 +6725,7 @@
|
|
|
6406
6725
|
"name": "opts",
|
|
6407
6726
|
"optional": true,
|
|
6408
6727
|
"type": {
|
|
6409
|
-
"text": "{\n temperature?: number;\n /** Resume a turn a server loop paused (a reload): skip the first run. */\n resume?: NonNullable<AparteRunResult['suspended']>;\n /**\n * Builds the messages of this request again, exactly as the caller built them the\n * first time (a send inlines its files as parts again). Called once the history\n * has become smaller — after a compactor wrote a checkpoint, before the request\n * goes out or after the model refused it as too long. Without it the turn cannot\n * be resent, so it neither waits for a compactor nor retries an overflow.\n */\n rebuild?: () => Promise<AparteChatMessage[]>;\n /** The files picked for this message, for a runner that uploads them itself. */\n files?: readonly File[];\n /** What goes in the request's `_meta` from the message that started this turn. */\n meta?: AparteRequestMeta;\n }"
|
|
6728
|
+
"text": "{\n temperature?: number;\n /** Resume a turn a server loop paused (a reload): skip the first run. */\n resume?: NonNullable<AparteRunResult['suspended']>;\n /**\n * Builds the messages of this request again, exactly as the caller built them the\n * first time (a send inlines its files as parts again). Called once the history\n * has become smaller — after a compactor wrote a checkpoint, before the request\n * goes out or after the model refused it as too long. Without it the turn cannot\n * be resent, so it neither waits for a compactor nor retries an overflow.\n */\n rebuild?: () => Promise<AparteChatMessage[]>;\n /** The files picked for this message, for a runner that uploads them itself. */\n files?: readonly File[];\n /** What goes in the request's `_meta` from the message that started this turn. */\n meta?: AparteRequestMeta;\n /**\n * The conversation open in the chat when the person acted, read by the caller\n * before its first await. Handed to the runner on every run of the turn, the\n * resume of a pause included.\n */\n conversationId?: string;\n /**\n * The person's message this turn answers, as it was sent — for a runner whose agent\n * keeps its own memory (see `StreamRunOptions.userMessage`). Every run of the turn.\n */\n userMessage?: AparteStreamRunOptions['userMessage'];\n /** The sub-agents a resumed pause already named, by `agentId`: its run announces them no more. */\n agentNames?: ReadonlyMap<string, string>;\n }"
|
|
6410
6729
|
}
|
|
6411
6730
|
}
|
|
6412
6731
|
],
|
|
@@ -6781,6 +7100,32 @@
|
|
|
6781
7100
|
],
|
|
6782
7101
|
"description": "Build the initial messages array, prepending system prompts and conversation history."
|
|
6783
7102
|
},
|
|
7103
|
+
{
|
|
7104
|
+
"kind": "method",
|
|
7105
|
+
"name": "_userContent",
|
|
7106
|
+
"privacy": "private",
|
|
7107
|
+
"return": {
|
|
7108
|
+
"type": {
|
|
7109
|
+
"text": "AparteChatMessage['content']"
|
|
7110
|
+
}
|
|
7111
|
+
},
|
|
7112
|
+
"parameters": [
|
|
7113
|
+
{
|
|
7114
|
+
"name": "text",
|
|
7115
|
+
"type": {
|
|
7116
|
+
"text": "string"
|
|
7117
|
+
}
|
|
7118
|
+
},
|
|
7119
|
+
{
|
|
7120
|
+
"name": "parts",
|
|
7121
|
+
"optional": true,
|
|
7122
|
+
"type": {
|
|
7123
|
+
"text": "AparteContentPart[]"
|
|
7124
|
+
}
|
|
7125
|
+
}
|
|
7126
|
+
],
|
|
7127
|
+
"description": "The message being sent, as the request carries it: the text, then the files inlined as parts."
|
|
7128
|
+
},
|
|
6784
7129
|
{
|
|
6785
7130
|
"kind": "method",
|
|
6786
7131
|
"name": "_toHistoryMessages",
|
|
@@ -6897,6 +7242,20 @@
|
|
|
6897
7242
|
"type": {
|
|
6898
7243
|
"text": "readonly File[]"
|
|
6899
7244
|
}
|
|
7245
|
+
},
|
|
7246
|
+
{
|
|
7247
|
+
"name": "conversationId",
|
|
7248
|
+
"optional": true,
|
|
7249
|
+
"type": {
|
|
7250
|
+
"text": "string"
|
|
7251
|
+
}
|
|
7252
|
+
},
|
|
7253
|
+
{
|
|
7254
|
+
"name": "userMessage",
|
|
7255
|
+
"optional": true,
|
|
7256
|
+
"type": {
|
|
7257
|
+
"text": "AparteStreamRunOptions['userMessage']"
|
|
7258
|
+
}
|
|
6900
7259
|
}
|
|
6901
7260
|
],
|
|
6902
7261
|
"description": "One run of the loop: its usage, and whether it paused (a server loop)."
|
|
@@ -6966,6 +7325,20 @@
|
|
|
6966
7325
|
"type": {
|
|
6967
7326
|
"text": "readonly File[]"
|
|
6968
7327
|
}
|
|
7328
|
+
},
|
|
7329
|
+
{
|
|
7330
|
+
"name": "conversationId",
|
|
7331
|
+
"optional": true,
|
|
7332
|
+
"type": {
|
|
7333
|
+
"text": "string"
|
|
7334
|
+
}
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
"name": "userMessage",
|
|
7338
|
+
"optional": true,
|
|
7339
|
+
"type": {
|
|
7340
|
+
"text": "AparteStreamRunOptions['userMessage']"
|
|
7341
|
+
}
|
|
6969
7342
|
}
|
|
6970
7343
|
],
|
|
6971
7344
|
"description": "Run the loop through a AparteStreamRunner — the engine's by default —\nrendering its DOM-free events through createStreamAdapter. Builds the\nrunner's dependencies from this client's config / provider / transport. The\nleading writes (status streaming, prefix segments) happen here; the runner's\n`run-start` re-asserts `streaming` idempotently. The call sequence this\nproduces is pinned by the `stream-parity` suite's snapshots, recorded while\nthe inline loop it replaced still ran beside it."
|
|
@@ -6986,6 +7359,12 @@
|
|
|
6986
7359
|
"text": "AparteChatTargetElement"
|
|
6987
7360
|
}
|
|
6988
7361
|
},
|
|
7362
|
+
{
|
|
7363
|
+
"name": "turn",
|
|
7364
|
+
"type": {
|
|
7365
|
+
"text": "AparteTurnContext"
|
|
7366
|
+
}
|
|
7367
|
+
},
|
|
6989
7368
|
{
|
|
6990
7369
|
"name": "gatedElsewhere",
|
|
6991
7370
|
"default": "false"
|
|
@@ -7010,9 +7389,9 @@
|
|
|
7010
7389
|
}
|
|
7011
7390
|
},
|
|
7012
7391
|
{
|
|
7013
|
-
"name": "
|
|
7392
|
+
"name": "turn",
|
|
7014
7393
|
"type": {
|
|
7015
|
-
"text": "
|
|
7394
|
+
"text": "AparteTurnContext"
|
|
7016
7395
|
}
|
|
7017
7396
|
},
|
|
7018
7397
|
{
|
|
@@ -7079,6 +7458,12 @@
|
|
|
7079
7458
|
"text": "AparteChatTargetElement"
|
|
7080
7459
|
}
|
|
7081
7460
|
},
|
|
7461
|
+
{
|
|
7462
|
+
"name": "turn",
|
|
7463
|
+
"type": {
|
|
7464
|
+
"text": "AparteTurnContext"
|
|
7465
|
+
}
|
|
7466
|
+
},
|
|
7082
7467
|
{
|
|
7083
7468
|
"name": "rowEvents",
|
|
7084
7469
|
"optional": true,
|
|
@@ -7114,6 +7499,68 @@
|
|
|
7114
7499
|
],
|
|
7115
7500
|
"description": "The ticket is spent the moment the resume leaves: the server answers these calls\nnow, so a pause saved from here on — the conversation manager saves before it cuts a\nswitch — would be resumed a second time, against a server that has moved on. The\nhistory that resumes them is built first; a new pause marks what still waits."
|
|
7116
7501
|
},
|
|
7502
|
+
{
|
|
7503
|
+
"kind": "method",
|
|
7504
|
+
"name": "_messageOf",
|
|
7505
|
+
"privacy": "private",
|
|
7506
|
+
"return": {
|
|
7507
|
+
"type": {
|
|
7508
|
+
"text": "AparteMessage | undefined"
|
|
7509
|
+
}
|
|
7510
|
+
},
|
|
7511
|
+
"parameters": [
|
|
7512
|
+
{
|
|
7513
|
+
"name": "targetElement",
|
|
7514
|
+
"type": {
|
|
7515
|
+
"text": "AparteChatTargetElement"
|
|
7516
|
+
}
|
|
7517
|
+
},
|
|
7518
|
+
{
|
|
7519
|
+
"name": "messageId",
|
|
7520
|
+
"type": {
|
|
7521
|
+
"text": "string"
|
|
7522
|
+
}
|
|
7523
|
+
}
|
|
7524
|
+
],
|
|
7525
|
+
"description": "A reply by its id, tree-wide first: a retry during the wait moves the path."
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"kind": "method",
|
|
7529
|
+
"name": "_keepSubAgentCalls",
|
|
7530
|
+
"privacy": "private",
|
|
7531
|
+
"return": {
|
|
7532
|
+
"type": {
|
|
7533
|
+
"text": "void"
|
|
7534
|
+
}
|
|
7535
|
+
},
|
|
7536
|
+
"parameters": [
|
|
7537
|
+
{
|
|
7538
|
+
"name": "targetElement",
|
|
7539
|
+
"type": {
|
|
7540
|
+
"text": "AparteChatTargetElement"
|
|
7541
|
+
}
|
|
7542
|
+
},
|
|
7543
|
+
{
|
|
7544
|
+
"name": "messageId",
|
|
7545
|
+
"type": {
|
|
7546
|
+
"text": "string"
|
|
7547
|
+
}
|
|
7548
|
+
},
|
|
7549
|
+
{
|
|
7550
|
+
"name": "pending",
|
|
7551
|
+
"type": {
|
|
7552
|
+
"text": "readonly StreamDeferredCall[]"
|
|
7553
|
+
}
|
|
7554
|
+
},
|
|
7555
|
+
{
|
|
7556
|
+
"name": "ticket",
|
|
7557
|
+
"type": {
|
|
7558
|
+
"text": "unknown"
|
|
7559
|
+
}
|
|
7560
|
+
}
|
|
7561
|
+
],
|
|
7562
|
+
"description": "Keep on the reply the calls a paused run left that no row of the reply holds: a\nsub-agent's, which its line draws. The rows of the reply carry their own pause\n(`deferred`); these would otherwise be in nothing the conversation saves, and a reload\nwould find no pause to resume. Each keeps the name its sub-agent was announced with,\nwhich a reload has no other way to know."
|
|
7563
|
+
},
|
|
7117
7564
|
{
|
|
7118
7565
|
"kind": "method",
|
|
7119
7566
|
"name": "_closeOpenCalls",
|
|
@@ -7660,6 +8107,24 @@
|
|
|
7660
8107
|
],
|
|
7661
8108
|
"description": "A message's text as the MODEL should read it — the one mapper both history\npaths use, so the compaction preamble cannot be applied on retry and edit and\nforgotten on the ordinary send, which is what the first review of this feature\ncaught: the summary went out on every normal turn as something the user said."
|
|
7662
8109
|
},
|
|
8110
|
+
{
|
|
8111
|
+
"kind": "function",
|
|
8112
|
+
"name": "withoutAbandonedTurns",
|
|
8113
|
+
"return": {
|
|
8114
|
+
"type": {
|
|
8115
|
+
"text": "AparteMessage[]"
|
|
8116
|
+
}
|
|
8117
|
+
},
|
|
8118
|
+
"parameters": [
|
|
8119
|
+
{
|
|
8120
|
+
"name": "messages",
|
|
8121
|
+
"type": {
|
|
8122
|
+
"text": "readonly AparteMessage[]"
|
|
8123
|
+
}
|
|
8124
|
+
}
|
|
8125
|
+
],
|
|
8126
|
+
"description": "The messages, without the turns a later request gives up on: each reply that failed for\ngood and the messages that asked it — every user message since the last reply that did\nnot fail, since a failure the request got past sends its message again with the next one.\n\nA compaction summary message is part of no turn and always stays.\n\nEvery other message stays, a failure the request can get past included: its message goes\nwith the next one (`mergeAdjacentUserMessages` joins the two), from the very next request\non, as a retry or an edit sends it, and its reply is sent as nothing (`wireMessages`).\n\nThe one rule for send, retry, edit, a resume, the context gauge and a compaction, so the\nhistory a server is sent never changes under it from one request to the next."
|
|
8127
|
+
},
|
|
7663
8128
|
{
|
|
7664
8129
|
"kind": "function",
|
|
7665
8130
|
"name": "wireMessages",
|
|
@@ -7676,7 +8141,7 @@
|
|
|
7676
8141
|
}
|
|
7677
8142
|
}
|
|
7678
8143
|
],
|
|
7679
|
-
"description": "The one rule for what a list of messages contributes to the wire.\n\nNot the slice — the contribution: a role the wire has (`user`/`assistant`), a\nturn that neither failed nor is still in flight, and text that is not empty. A reply\nthat called tools goes out as the calls and their answers, in the order it showed\nthem (`wireTurns`); every other message keeps its one text, compaction preamble\nincluded.\n\n`messageWireText` (not `m.content`): assistant replies stream their text into\n`segments`, leaving `content` as '', so without flattening every reply would be\nempty here and the drop below would swallow the whole transcript.\n\nPure, so the client that SENDS this history and the measure that ESTIMATES it\n(`estimateWireTokens`) read the same serialisation and cannot drift."
|
|
8144
|
+
"description": "The one rule for what a list of messages contributes to the wire.\n\nNot the slice — the contribution: a role the wire has (`user`/`assistant`), a\nturn that neither failed nor is still in flight, and text that is not empty. A user\nmessage whose reply failed for good is left out as well (`withoutAbandonedTurns`). A reply\nthat called tools goes out as the calls and their answers, in the order it showed\nthem (`wireTurns`); every other message keeps its one text, compaction preamble\nincluded.\n\n`messageWireText` (not `m.content`): assistant replies stream their text into\n`segments`, leaving `content` as '', so without flattening every reply would be\nempty here and the drop below would swallow the whole transcript.\n\nPure, so the client that SENDS this history and the measure that ESTIMATES it\n(`estimateWireTokens`) read the same serialisation and cannot drift."
|
|
7680
8145
|
}
|
|
7681
8146
|
],
|
|
7682
8147
|
"exports": [
|
|
@@ -7760,6 +8225,14 @@
|
|
|
7760
8225
|
"module": "src/client/wire-history.ts"
|
|
7761
8226
|
}
|
|
7762
8227
|
},
|
|
8228
|
+
{
|
|
8229
|
+
"kind": "js",
|
|
8230
|
+
"name": "withoutAbandonedTurns",
|
|
8231
|
+
"declaration": {
|
|
8232
|
+
"name": "withoutAbandonedTurns",
|
|
8233
|
+
"module": "src/client/wire-history.ts"
|
|
8234
|
+
}
|
|
8235
|
+
},
|
|
7763
8236
|
{
|
|
7764
8237
|
"kind": "js",
|
|
7765
8238
|
"name": "wireMessages",
|
|
@@ -7959,6 +8432,14 @@
|
|
|
7959
8432
|
"module": "./conversation-list/index.js"
|
|
7960
8433
|
}
|
|
7961
8434
|
},
|
|
8435
|
+
{
|
|
8436
|
+
"kind": "js",
|
|
8437
|
+
"name": "AparteConversationMetaRenderer",
|
|
8438
|
+
"declaration": {
|
|
8439
|
+
"name": "AparteConversationMetaRenderer",
|
|
8440
|
+
"module": "./conversation-list/index.js"
|
|
8441
|
+
}
|
|
8442
|
+
},
|
|
7962
8443
|
{
|
|
7963
8444
|
"kind": "js",
|
|
7964
8445
|
"name": "AparteConversationSelectDetail",
|
|
@@ -8304,6 +8785,15 @@
|
|
|
8304
8785
|
"default": "false",
|
|
8305
8786
|
"description": "Whether the app named an image policy, the default included; see `decideImage`."
|
|
8306
8787
|
},
|
|
8788
|
+
{
|
|
8789
|
+
"kind": "field",
|
|
8790
|
+
"name": "_linkTarget",
|
|
8791
|
+
"type": {
|
|
8792
|
+
"text": "AparteLinkTarget"
|
|
8793
|
+
},
|
|
8794
|
+
"privacy": "private",
|
|
8795
|
+
"default": "'new-tab'"
|
|
8796
|
+
},
|
|
8307
8797
|
{
|
|
8308
8798
|
"kind": "field",
|
|
8309
8799
|
"name": "_systemPromptTemplate",
|
|
@@ -8620,6 +9110,23 @@
|
|
|
8620
9110
|
"default": "null",
|
|
8621
9111
|
"description": "What a plugin says about a call, read after the app's display — see setToolLineProvider."
|
|
8622
9112
|
},
|
|
9113
|
+
{
|
|
9114
|
+
"kind": "field",
|
|
9115
|
+
"name": "_extraToolLineProviders",
|
|
9116
|
+
"type": {
|
|
9117
|
+
"text": "Array<(segment: AparteToolCallSegment) => AparteToolLine | undefined>"
|
|
9118
|
+
},
|
|
9119
|
+
"privacy": "private",
|
|
9120
|
+
"default": "[]",
|
|
9121
|
+
"description": "Providers added with `registerToolLineProvider`, asked in the order they were added."
|
|
9122
|
+
},
|
|
9123
|
+
{
|
|
9124
|
+
"kind": "field",
|
|
9125
|
+
"name": "_stepLabels",
|
|
9126
|
+
"privacy": "private",
|
|
9127
|
+
"default": "new Map<string, { label: AparteStepLabel }>()",
|
|
9128
|
+
"description": "What a step is called on screen, by the name the run announces — see registerStepLabel. One entry per registration, so each remover takes back its own."
|
|
9129
|
+
},
|
|
8623
9130
|
{
|
|
8624
9131
|
"kind": "field",
|
|
8625
9132
|
"name": "_streamBlocks",
|
|
@@ -9052,7 +9559,7 @@
|
|
|
9052
9559
|
"description": "A sanitizer function, or `null` to DISABLE sanitization.\nDisabling exposes you to XSS from LLM-authored content — only do so for\ncontent you fully trust and have already sanitized upstream. `null` prints\na console warning, once."
|
|
9053
9560
|
}
|
|
9054
9561
|
],
|
|
9055
|
-
"description": "Replace or disable the HTML sanitizer applied to markdown/highlight\nprovider output before it is injected into the DOM. Defaults to a built-in\nzero-dependency allowlist sanitizer.\n\nThe function you pass REPLACES the built-in one, chat rules included: no\n`aparte-` classes, no layout styles, no form controls
|
|
9562
|
+
"description": "Replace or disable the HTML sanitizer applied to markdown/highlight\nprovider output before it is injected into the DOM. Defaults to a built-in\nzero-dependency allowlist sanitizer.\n\nThe function you pass REPLACES the built-in one, chat rules included: no\n`aparte-` classes, no layout styles, no form controls. DOMPurify's defaults hold\nnone of the three, so chain it in front of `defaultSanitizer` rather than in its\nplace (the example below). Where a link opens (AparteConfig.setLinkTarget| setLinkTarget)\nand which pictures load (AparteConfig.setImagePolicy| setImagePolicy) are\napplied after it, whichever it is.",
|
|
9056
9563
|
"examples": [
|
|
9057
9564
|
"aparteGlobalConfig.setHtmlSanitizer((html) => defaultSanitizer(DOMPurify.sanitize(html)));"
|
|
9058
9565
|
]
|
|
@@ -9073,7 +9580,7 @@
|
|
|
9073
9580
|
}
|
|
9074
9581
|
}
|
|
9075
9582
|
],
|
|
9076
|
-
"description": "Run the active sanitizer over provider-produced HTML, then the
|
|
9583
|
+
"description": "Run the active sanitizer over provider-produced HTML, then the link target\n(AparteConfig.setLinkTarget| setLinkTarget): every link gets the `target` and\n`rel` it opens with; then the image policy (AparteConfig.setImagePolicy| setImagePolicy):\na picture the policy does not let load comes back as a link that loads it on a click.\nPublic so a streaming-markdown provider (which appends DOM directly, bypassing\n`renderMarkdown`) can apply the same rules. Both run whichever sanitizer is set, none\nincluded, so replacing it does not send a reply's links back into the chat's own frame,\nnor turn its pictures back into requests the reader never made."
|
|
9077
9584
|
},
|
|
9078
9585
|
{
|
|
9079
9586
|
"kind": "method",
|
|
@@ -9163,6 +9670,58 @@
|
|
|
9163
9670
|
},
|
|
9164
9671
|
"description": "What a held picture says, in this config's language."
|
|
9165
9672
|
},
|
|
9673
|
+
{
|
|
9674
|
+
"kind": "method",
|
|
9675
|
+
"name": "setLinkTarget",
|
|
9676
|
+
"return": {
|
|
9677
|
+
"type": {
|
|
9678
|
+
"text": "void"
|
|
9679
|
+
}
|
|
9680
|
+
},
|
|
9681
|
+
"parameters": [
|
|
9682
|
+
{
|
|
9683
|
+
"name": "mode",
|
|
9684
|
+
"type": {
|
|
9685
|
+
"text": "AparteLinkTarget"
|
|
9686
|
+
}
|
|
9687
|
+
}
|
|
9688
|
+
],
|
|
9689
|
+
"description": "Where the links a reply holds open — in its Markdown, its sources, a document it wrote.\n`'new-tab'`, the default, opens every one in a new tab, same-site ones included;\n`'external-only'` opens a link to another site in a new tab and keeps a same-site one in\nthe page, as before 1.9. Either way a link to `#…`, `mailto:`, `tel:` or `sms:` is left as\nwritten, a new tab goes with `rel=\"noopener noreferrer\"`, and the `target` the model wrote\ndoes not choose. What is on screen is drawn again.\n\nIn a single-page app or an Electron window, a same-site link followed in place replaces\nthe whole app, the conversation with it. To route a link yourself — your router, a pane,\nthe system browser — cancel the chat's `aparte-link-click`, whichever mode is set.",
|
|
9690
|
+
"examples": [
|
|
9691
|
+
"aparteGlobalConfig.setLinkTarget('external-only');"
|
|
9692
|
+
]
|
|
9693
|
+
},
|
|
9694
|
+
{
|
|
9695
|
+
"kind": "method",
|
|
9696
|
+
"name": "getLinkTarget",
|
|
9697
|
+
"return": {
|
|
9698
|
+
"type": {
|
|
9699
|
+
"text": "AparteLinkTarget"
|
|
9700
|
+
}
|
|
9701
|
+
},
|
|
9702
|
+
"description": "Where the links a reply holds open: AparteConfig.setLinkTarget| setLinkTarget's mode, `'new-tab'` by default."
|
|
9703
|
+
},
|
|
9704
|
+
{
|
|
9705
|
+
"kind": "method",
|
|
9706
|
+
"name": "decideLink",
|
|
9707
|
+
"return": {
|
|
9708
|
+
"type": {
|
|
9709
|
+
"text": "AparteLinkDecision"
|
|
9710
|
+
}
|
|
9711
|
+
},
|
|
9712
|
+
"parameters": [
|
|
9713
|
+
{
|
|
9714
|
+
"name": "href",
|
|
9715
|
+
"type": {
|
|
9716
|
+
"text": "string"
|
|
9717
|
+
}
|
|
9718
|
+
}
|
|
9719
|
+
],
|
|
9720
|
+
"description": "Where a link to `href` opens under this config's link target: `{ target: '_blank', rel:\n'noopener noreferrer' }` for a new tab, `{}` for the page itself. For a plugin that draws\nlinks itself, as `@aparte/plugin-streaming-markdown` does: set what it returns, and no\n`target` of your own. It does not judge whether the address is safe to link —\n`isSafeUrl` does.",
|
|
9721
|
+
"examples": [
|
|
9722
|
+
"const link = document.createElement('a');\nlink.href = url;\nObject.assign(link, aparteGlobalConfig.decideLink(url));"
|
|
9723
|
+
]
|
|
9724
|
+
},
|
|
9166
9725
|
{
|
|
9167
9726
|
"kind": "method",
|
|
9168
9727
|
"name": "setSystemPrompt",
|
|
@@ -9796,9 +10355,16 @@
|
|
|
9796
10355
|
"type": {
|
|
9797
10356
|
"text": "AparteToolCall"
|
|
9798
10357
|
}
|
|
10358
|
+
},
|
|
10359
|
+
{
|
|
10360
|
+
"name": "turn",
|
|
10361
|
+
"optional": true,
|
|
10362
|
+
"type": {
|
|
10363
|
+
"text": "AparteTurnContext"
|
|
10364
|
+
}
|
|
9799
10365
|
}
|
|
9800
10366
|
],
|
|
9801
|
-
"description": "What the policy says about one call, with the tool's own `needsApproval` as the\nanswer when it has no opinion. The one place the two are combined, so the client's\ngate predicate and its approval channel cannot disagree."
|
|
10367
|
+
"description": "What the policy says about one call, with the tool's own `needsApproval` as the\nanswer when it has no opinion. The one place the two are combined, so the client's\ngate predicate and its approval channel cannot disagree. `turn` is handed to the\npolicy as its third argument; the client passes the turn the call belongs to."
|
|
9802
10368
|
},
|
|
9803
10369
|
{
|
|
9804
10370
|
"kind": "method",
|
|
@@ -10457,6 +11023,37 @@
|
|
|
10457
11023
|
"aparteGlobalConfig.setToolLineProvider((segment) =>\n segment.toolCall.name === 'delegate' ? { activity: 'Reading the parser', note: '3 tools' } : undefined);"
|
|
10458
11024
|
]
|
|
10459
11025
|
},
|
|
11026
|
+
{
|
|
11027
|
+
"kind": "method",
|
|
11028
|
+
"name": "registerToolLineProvider",
|
|
11029
|
+
"return": {
|
|
11030
|
+
"type": {
|
|
11031
|
+
"text": "() => void"
|
|
11032
|
+
}
|
|
11033
|
+
},
|
|
11034
|
+
"parameters": [
|
|
11035
|
+
{
|
|
11036
|
+
"name": "provider",
|
|
11037
|
+
"type": {
|
|
11038
|
+
"text": "(segment: AparteToolCallSegment) => AparteToolLine | undefined"
|
|
11039
|
+
}
|
|
11040
|
+
}
|
|
11041
|
+
],
|
|
11042
|
+
"description": "Add a tool-line provider beside the one AparteConfig.setToolLineProvider| setToolLineProvider()\nholds, and return the function that removes it. The providers are asked in order — the\napp's `setToolLineProvider` first, then these in the order they were added — and the\nfirst one that answers a call wins, so a plugin registering its own never replaces the\napp's, nor another plugin's. Each call is a provider of its own, even with the same function.",
|
|
11043
|
+
"examples": [
|
|
11044
|
+
"const release = aparteGlobalConfig.registerToolLineProvider((segment) =>\n segment.toolCall.name === 'delegate' ? { activity: 'Reading the parser' } : undefined);\nrelease();"
|
|
11045
|
+
]
|
|
11046
|
+
},
|
|
11047
|
+
{
|
|
11048
|
+
"kind": "method",
|
|
11049
|
+
"name": "getToolLineProviders",
|
|
11050
|
+
"return": {
|
|
11051
|
+
"type": {
|
|
11052
|
+
"text": "Array<(segment: AparteToolCallSegment) => AparteToolLine | undefined>"
|
|
11053
|
+
}
|
|
11054
|
+
},
|
|
11055
|
+
"description": "Every tool-line provider this config reads, in the order they are asked: its own\n(`setToolLineProvider`, then the registered ones), else the page's."
|
|
11056
|
+
},
|
|
10460
11057
|
{
|
|
10461
11058
|
"kind": "method",
|
|
10462
11059
|
"name": "getToolLineProvider",
|
|
@@ -10465,7 +11062,7 @@
|
|
|
10465
11062
|
"text": "((segment: AparteToolCallSegment) => AparteToolLine | undefined) | null"
|
|
10466
11063
|
}
|
|
10467
11064
|
},
|
|
10468
|
-
"description": "The tool-line provider this config
|
|
11065
|
+
"description": "The tool-line provider `setToolLineProvider` set: this config's own, else the page's."
|
|
10469
11066
|
},
|
|
10470
11067
|
{
|
|
10471
11068
|
"kind": "method",
|
|
@@ -10618,6 +11215,52 @@
|
|
|
10618
11215
|
],
|
|
10619
11216
|
"description": "The input formatter that applies to a tool named `toolName`, or undefined."
|
|
10620
11217
|
},
|
|
11218
|
+
{
|
|
11219
|
+
"kind": "method",
|
|
11220
|
+
"name": "registerStepLabel",
|
|
11221
|
+
"return": {
|
|
11222
|
+
"type": {
|
|
11223
|
+
"text": "() => void"
|
|
11224
|
+
}
|
|
11225
|
+
},
|
|
11226
|
+
"parameters": [
|
|
11227
|
+
{
|
|
11228
|
+
"name": "name",
|
|
11229
|
+
"type": {
|
|
11230
|
+
"text": "string"
|
|
11231
|
+
}
|
|
11232
|
+
},
|
|
11233
|
+
{
|
|
11234
|
+
"name": "label",
|
|
11235
|
+
"type": {
|
|
11236
|
+
"text": "AparteStepLabel"
|
|
11237
|
+
}
|
|
11238
|
+
}
|
|
11239
|
+
],
|
|
11240
|
+
"description": "Say how a step is called on screen, in place of the name a run announced. A server that\nstreams `step-start { name }` sends a stable key — `slot-wait`, `restore`, `reread` —\nand the page knows the person's language: this maps one to the other, wherever a step is\nshown (the waiting indicator, which a screen reader reads in place of \"Typing\", and a\nsub-agent's line). A name nobody labelled shows as it always did: itself, because core\nnever makes a label up.\n\nThe label is text, never HTML, or a function of the locale, asked at every draw and on\nevery config change — so a language switch changes the words of a step that is open.\nOne that throws, or says nothing, leaves the name. One label per name, per config:\nregistering a name again replaces its label, and a chat with a config of its own reads\nthat config's labels, as it reads its tool displays.\n\nOnly what is shown is labelled. The step keeps the name the run announced — for\nobserveRunEvents, for the target, for everything an app stores — and is never\nsaved with the reply. Registering tells the chats on the page, so a label reaches a step\nthat is open. Returns the function that takes the label off again (it changes nothing\nonce another registration has replaced it).",
|
|
11241
|
+
"examples": [
|
|
11242
|
+
"aparteGlobalConfig.registerStepLabel('slot-wait', 'Waiting for a free slot…');",
|
|
11243
|
+
"// In the person's language, and live: a switch of the locale relabels a step that is open.\naparteGlobalConfig.registerStepLabel('reread', ({ locale }) =>\n locale.tag?.startsWith('fr') ? 'Relecture de la conversation…' : 'Re-reading the conversation…');"
|
|
11244
|
+
]
|
|
11245
|
+
},
|
|
11246
|
+
{
|
|
11247
|
+
"kind": "method",
|
|
11248
|
+
"name": "getStepLabel",
|
|
11249
|
+
"return": {
|
|
11250
|
+
"type": {
|
|
11251
|
+
"text": "string | undefined"
|
|
11252
|
+
}
|
|
11253
|
+
},
|
|
11254
|
+
"parameters": [
|
|
11255
|
+
{
|
|
11256
|
+
"name": "name",
|
|
11257
|
+
"type": {
|
|
11258
|
+
"text": "string"
|
|
11259
|
+
}
|
|
11260
|
+
}
|
|
11261
|
+
],
|
|
11262
|
+
"description": "The words shown for a step named `name`, or `undefined` when none are registered, they\nsay nothing, or the function that gives them throws — then the name itself is shown. A\nfunction label is asked here, with the locale as it is now."
|
|
11263
|
+
},
|
|
10621
11264
|
{
|
|
10622
11265
|
"kind": "method",
|
|
10623
11266
|
"name": "registerStreamBlock",
|
|
@@ -10863,7 +11506,7 @@
|
|
|
10863
11506
|
"text": "void"
|
|
10864
11507
|
}
|
|
10865
11508
|
},
|
|
10866
|
-
"description": "Put the configuration back to its defaults: the providers and the selected model,\nthe tools with their renderers and summaries, the tool-line provider, the renderers and render hooks, the\nMarkdown and highlight providers, the code-language renderers, the sanitizer, the system prompt, the locale, icons,\navatars, actions and host handlers, the conversation manager, the question presenters\nand their queue, the run-event observers. Three things stay: the transport, the key sources added with\nAparteConfig.registerKeyProvider| registerKeyProvider() (an `AparteClient`'s\n`keyResolver` among them), and the AparteConfig.subscribe| subscribe() listeners."
|
|
11509
|
+
"description": "Put the configuration back to its defaults: the providers and the selected model,\nthe tools with their renderers and summaries, the tool-line provider, the step labels, the renderers and render hooks, the\nMarkdown and highlight providers, the code-language renderers, the sanitizer, the system prompt, the locale, icons,\navatars, actions and host handlers, the conversation manager, the question presenters\nand their queue, the run-event observers. Three things stay: the transport, the key sources added with\nAparteConfig.registerKeyProvider| registerKeyProvider() (an `AparteClient`'s\n`keyResolver` among them), and the AparteConfig.subscribe| subscribe() listeners."
|
|
10867
11510
|
},
|
|
10868
11511
|
{
|
|
10869
11512
|
"kind": "method",
|
|
@@ -11879,6 +12522,22 @@
|
|
|
11879
12522
|
"module": "./image-policy.js"
|
|
11880
12523
|
}
|
|
11881
12524
|
},
|
|
12525
|
+
{
|
|
12526
|
+
"kind": "js",
|
|
12527
|
+
"name": "AparteLinkDecision",
|
|
12528
|
+
"declaration": {
|
|
12529
|
+
"name": "AparteLinkDecision",
|
|
12530
|
+
"module": "./link-target.js"
|
|
12531
|
+
}
|
|
12532
|
+
},
|
|
12533
|
+
{
|
|
12534
|
+
"kind": "js",
|
|
12535
|
+
"name": "AparteLinkTarget",
|
|
12536
|
+
"declaration": {
|
|
12537
|
+
"name": "AparteLinkTarget",
|
|
12538
|
+
"module": "./link-target.js"
|
|
12539
|
+
}
|
|
12540
|
+
},
|
|
11882
12541
|
{
|
|
11883
12542
|
"kind": "js",
|
|
11884
12543
|
"name": "defaultSanitizer",
|
|
@@ -11999,6 +12658,22 @@
|
|
|
11999
12658
|
"module": "./bubble-shell-renderer.js"
|
|
12000
12659
|
}
|
|
12001
12660
|
},
|
|
12661
|
+
{
|
|
12662
|
+
"kind": "js",
|
|
12663
|
+
"name": "AparteStepLabel",
|
|
12664
|
+
"declaration": {
|
|
12665
|
+
"name": "AparteStepLabel",
|
|
12666
|
+
"module": "./step-label.js"
|
|
12667
|
+
}
|
|
12668
|
+
},
|
|
12669
|
+
{
|
|
12670
|
+
"kind": "js",
|
|
12671
|
+
"name": "AparteStepLabelContext",
|
|
12672
|
+
"declaration": {
|
|
12673
|
+
"name": "AparteStepLabelContext",
|
|
12674
|
+
"module": "./step-label.js"
|
|
12675
|
+
}
|
|
12676
|
+
},
|
|
12002
12677
|
{
|
|
12003
12678
|
"kind": "js",
|
|
12004
12679
|
"name": "AparteLocale",
|
|
@@ -12041,6 +12716,148 @@
|
|
|
12041
12716
|
}
|
|
12042
12717
|
]
|
|
12043
12718
|
},
|
|
12719
|
+
{
|
|
12720
|
+
"kind": "javascript-module",
|
|
12721
|
+
"path": "src/config/link-target.ts",
|
|
12722
|
+
"declarations": [
|
|
12723
|
+
{
|
|
12724
|
+
"kind": "function",
|
|
12725
|
+
"name": "linkTargetAttributes",
|
|
12726
|
+
"return": {
|
|
12727
|
+
"type": {
|
|
12728
|
+
"text": "ReadonlyArray<[string, string]>"
|
|
12729
|
+
}
|
|
12730
|
+
},
|
|
12731
|
+
"parameters": [
|
|
12732
|
+
{
|
|
12733
|
+
"name": "mode",
|
|
12734
|
+
"type": {
|
|
12735
|
+
"text": "AparteLinkTarget"
|
|
12736
|
+
}
|
|
12737
|
+
},
|
|
12738
|
+
{
|
|
12739
|
+
"name": "href",
|
|
12740
|
+
"type": {
|
|
12741
|
+
"text": "string"
|
|
12742
|
+
}
|
|
12743
|
+
},
|
|
12744
|
+
{
|
|
12745
|
+
"name": "wish",
|
|
12746
|
+
"type": {
|
|
12747
|
+
"text": "string"
|
|
12748
|
+
}
|
|
12749
|
+
}
|
|
12750
|
+
],
|
|
12751
|
+
"description": "The `target` and `rel` a link to `href` gets under `mode`, `wish` being the `target` its markup\nasked for: a new tab, unless the mode is `'external-only'` or the link stays in the page or\nhands over to another app, which get the sanitizer's clamp."
|
|
12752
|
+
},
|
|
12753
|
+
{
|
|
12754
|
+
"kind": "function",
|
|
12755
|
+
"name": "linkDecision",
|
|
12756
|
+
"return": {
|
|
12757
|
+
"type": {
|
|
12758
|
+
"text": "AparteLinkDecision"
|
|
12759
|
+
}
|
|
12760
|
+
},
|
|
12761
|
+
"parameters": [
|
|
12762
|
+
{
|
|
12763
|
+
"name": "mode",
|
|
12764
|
+
"type": {
|
|
12765
|
+
"text": "AparteLinkTarget"
|
|
12766
|
+
}
|
|
12767
|
+
},
|
|
12768
|
+
{
|
|
12769
|
+
"name": "href",
|
|
12770
|
+
"type": {
|
|
12771
|
+
"text": "string"
|
|
12772
|
+
}
|
|
12773
|
+
}
|
|
12774
|
+
],
|
|
12775
|
+
"description": "What a link to `href` sets under `mode`, asked for no target of its own: what `decideLink` answers."
|
|
12776
|
+
},
|
|
12777
|
+
{
|
|
12778
|
+
"kind": "function",
|
|
12779
|
+
"name": "applyLinkTarget",
|
|
12780
|
+
"return": {
|
|
12781
|
+
"type": {
|
|
12782
|
+
"text": "string"
|
|
12783
|
+
}
|
|
12784
|
+
},
|
|
12785
|
+
"parameters": [
|
|
12786
|
+
{
|
|
12787
|
+
"name": "html",
|
|
12788
|
+
"type": {
|
|
12789
|
+
"text": "string"
|
|
12790
|
+
}
|
|
12791
|
+
},
|
|
12792
|
+
{
|
|
12793
|
+
"name": "mode",
|
|
12794
|
+
"type": {
|
|
12795
|
+
"text": "AparteLinkTarget"
|
|
12796
|
+
}
|
|
12797
|
+
}
|
|
12798
|
+
],
|
|
12799
|
+
"description": "Apply the link target to sanitized HTML. Every `<a href>` gets the `target`\n`linkTargetAttributes` decides from its address and the target it carries; one that opens a\nnew tab also gets `rel` holding what it had plus `noopener noreferrer` (never `opener`), and\none that stays in the page keeps its `rel` as written. Both are written after its other\nattributes so both paths build the same tree. HTML with nothing to\nchange comes back as it came: serialized again, it would be rewritten where the pass changed\nnothing, and `'external-only'` over the built-in sanitizer changes nothing at all.\n\nIn a browser it walks an inert `<template>`; without a DOM it reads the tags the way the\nsanitizer's own DOM-free path does."
|
|
12800
|
+
},
|
|
12801
|
+
{
|
|
12802
|
+
"kind": "function",
|
|
12803
|
+
"name": "applyLinkTargetWithoutDom",
|
|
12804
|
+
"return": {
|
|
12805
|
+
"type": {
|
|
12806
|
+
"text": "string"
|
|
12807
|
+
}
|
|
12808
|
+
},
|
|
12809
|
+
"parameters": [
|
|
12810
|
+
{
|
|
12811
|
+
"name": "html",
|
|
12812
|
+
"type": {
|
|
12813
|
+
"text": "string"
|
|
12814
|
+
}
|
|
12815
|
+
},
|
|
12816
|
+
{
|
|
12817
|
+
"name": "mode",
|
|
12818
|
+
"type": {
|
|
12819
|
+
"text": "AparteLinkTarget"
|
|
12820
|
+
}
|
|
12821
|
+
}
|
|
12822
|
+
],
|
|
12823
|
+
"description": "The same pass for a runtime with no DOM (a server render, a Worker). Like the sanitizer's\nDOM-free path it is a safety net, not a parser: it reads tags with the sanitizer's own reader,\nleaves comments and raw-text elements alone, and writes back only the tags it changed.\nExported for the parity suite; not from the package barrel."
|
|
12824
|
+
}
|
|
12825
|
+
],
|
|
12826
|
+
"exports": [
|
|
12827
|
+
{
|
|
12828
|
+
"kind": "js",
|
|
12829
|
+
"name": "linkTargetAttributes",
|
|
12830
|
+
"declaration": {
|
|
12831
|
+
"name": "linkTargetAttributes",
|
|
12832
|
+
"module": "src/config/link-target.ts"
|
|
12833
|
+
}
|
|
12834
|
+
},
|
|
12835
|
+
{
|
|
12836
|
+
"kind": "js",
|
|
12837
|
+
"name": "linkDecision",
|
|
12838
|
+
"declaration": {
|
|
12839
|
+
"name": "linkDecision",
|
|
12840
|
+
"module": "src/config/link-target.ts"
|
|
12841
|
+
}
|
|
12842
|
+
},
|
|
12843
|
+
{
|
|
12844
|
+
"kind": "js",
|
|
12845
|
+
"name": "applyLinkTarget",
|
|
12846
|
+
"declaration": {
|
|
12847
|
+
"name": "applyLinkTarget",
|
|
12848
|
+
"module": "src/config/link-target.ts"
|
|
12849
|
+
}
|
|
12850
|
+
},
|
|
12851
|
+
{
|
|
12852
|
+
"kind": "js",
|
|
12853
|
+
"name": "applyLinkTargetWithoutDom",
|
|
12854
|
+
"declaration": {
|
|
12855
|
+
"name": "applyLinkTargetWithoutDom",
|
|
12856
|
+
"module": "src/config/link-target.ts"
|
|
12857
|
+
}
|
|
12858
|
+
}
|
|
12859
|
+
]
|
|
12860
|
+
},
|
|
12044
12861
|
{
|
|
12045
12862
|
"kind": "javascript-module",
|
|
12046
12863
|
"path": "src/config/locale.ts",
|
|
@@ -12076,6 +12893,12 @@
|
|
|
12076
12893
|
"default": "new Set([ 'script', 'style', 'iframe', 'frame', 'frameset', 'object', 'embed', 'applet', 'form', 'button', 'textarea', 'select', 'option', 'optgroup', 'link', 'meta', 'base', 'title', 'head', 'html', 'body', 'template', 'noscript', 'svg', 'math', 'portal', ])",
|
|
12077
12894
|
"description": "Tags dropped wholesale — content and all (never unwrapped to text).\n\nExported for the DOM-free path's own suite: both of `fallbackScrub`'s regexes\nare built from this Set, and the test that proves it loops over the Set rather\nthan a copy. Not re-exported from the package barrel — it is core's list, not\na contract."
|
|
12078
12895
|
},
|
|
12896
|
+
{
|
|
12897
|
+
"kind": "variable",
|
|
12898
|
+
"name": "CONTROL_WS",
|
|
12899
|
+
"default": "/[\\u0000-\\u0020]+/g",
|
|
12900
|
+
"description": "Whitespace + C0 control chars, used to obfuscate a scheme (e.g. \" javascript:\" or \"java\\tscript:\").\nExported for the link target's pass (`link-target.ts`), which reads an address the same way; not\nfrom the package barrel."
|
|
12901
|
+
},
|
|
12079
12902
|
{
|
|
12080
12903
|
"kind": "variable",
|
|
12081
12904
|
"name": "RESERVED_ATTRIBUTES",
|
|
@@ -12132,6 +12955,30 @@
|
|
|
12132
12955
|
}
|
|
12133
12956
|
]
|
|
12134
12957
|
},
|
|
12958
|
+
{
|
|
12959
|
+
"kind": "function",
|
|
12960
|
+
"name": "linkAttributes",
|
|
12961
|
+
"return": {
|
|
12962
|
+
"type": {
|
|
12963
|
+
"text": "Array<[string, string]>"
|
|
12964
|
+
}
|
|
12965
|
+
},
|
|
12966
|
+
"parameters": [
|
|
12967
|
+
{
|
|
12968
|
+
"name": "href",
|
|
12969
|
+
"type": {
|
|
12970
|
+
"text": "string"
|
|
12971
|
+
}
|
|
12972
|
+
},
|
|
12973
|
+
{
|
|
12974
|
+
"name": "targetWish",
|
|
12975
|
+
"type": {
|
|
12976
|
+
"text": "string"
|
|
12977
|
+
}
|
|
12978
|
+
}
|
|
12979
|
+
],
|
|
12980
|
+
"description": "The `target` and `rel` an `<a>` gets. The model's `target` is read as a WISH and clamped;\n`rel` is never copied. `href` is the one that was kept ('' when it was dropped).\n\nThis is the floor, and the whole of `setLinkTarget('external-only')`: the config's link pass\n(`link-target.ts`) applies it again after whichever sanitizer is set, and under the default,\n`'new-tab'`, opens a same-site link in a new tab on top of it. Exported for that pass; not\nfrom the package barrel."
|
|
12981
|
+
},
|
|
12135
12982
|
{
|
|
12136
12983
|
"kind": "function",
|
|
12137
12984
|
"name": "readTag",
|
|
@@ -12154,7 +13001,7 @@
|
|
|
12154
13001
|
}
|
|
12155
13002
|
}
|
|
12156
13003
|
],
|
|
12157
|
-
"description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the
|
|
13004
|
+
"description": "One tag read from `nameAt` (the first letter of its name) the way a browser's tokenizer reads\nit: a quote ends where its match is, an unquoted value at a space or `>`, `/` and a closing\nquote separate attributes, the first of two equal names wins, and a value is read with the\nentities that can spell a checked character decoded. `end` is the index past its `>`, or `-1`\nwhen the text ends inside the tag.\n\nExported for the DOM-free passes of the image policy (`image-policy.ts`) and the link target\n(`link-target.ts`), which have to find the same tags in the same text this scrub wrote; not\nfrom the package barrel."
|
|
12158
13005
|
},
|
|
12159
13006
|
{
|
|
12160
13007
|
"kind": "function",
|
|
@@ -12184,6 +13031,14 @@
|
|
|
12184
13031
|
"module": "src/config/sanitize.ts"
|
|
12185
13032
|
}
|
|
12186
13033
|
},
|
|
13034
|
+
{
|
|
13035
|
+
"kind": "js",
|
|
13036
|
+
"name": "CONTROL_WS",
|
|
13037
|
+
"declaration": {
|
|
13038
|
+
"name": "CONTROL_WS",
|
|
13039
|
+
"module": "src/config/sanitize.ts"
|
|
13040
|
+
}
|
|
13041
|
+
},
|
|
12187
13042
|
{
|
|
12188
13043
|
"kind": "js",
|
|
12189
13044
|
"name": "RESERVED_ATTRIBUTES",
|
|
@@ -12216,6 +13071,14 @@
|
|
|
12216
13071
|
"module": "src/config/sanitize.ts"
|
|
12217
13072
|
}
|
|
12218
13073
|
},
|
|
13074
|
+
{
|
|
13075
|
+
"kind": "js",
|
|
13076
|
+
"name": "linkAttributes",
|
|
13077
|
+
"declaration": {
|
|
13078
|
+
"name": "linkAttributes",
|
|
13079
|
+
"module": "src/config/sanitize.ts"
|
|
13080
|
+
}
|
|
13081
|
+
},
|
|
12219
13082
|
{
|
|
12220
13083
|
"kind": "js",
|
|
12221
13084
|
"name": "readTag",
|
|
@@ -12246,6 +13109,12 @@
|
|
|
12246
13109
|
"declarations": [],
|
|
12247
13110
|
"exports": []
|
|
12248
13111
|
},
|
|
13112
|
+
{
|
|
13113
|
+
"kind": "javascript-module",
|
|
13114
|
+
"path": "src/config/step-label.ts",
|
|
13115
|
+
"declarations": [],
|
|
13116
|
+
"exports": []
|
|
13117
|
+
},
|
|
12249
13118
|
{
|
|
12250
13119
|
"kind": "javascript-module",
|
|
12251
13120
|
"path": "src/config/tool-table.ts",
|
|
@@ -12390,24 +13259,6 @@
|
|
|
12390
13259
|
"kind": "javascript-module",
|
|
12391
13260
|
"path": "src/context/checkpoint-state.ts",
|
|
12392
13261
|
"declarations": [
|
|
12393
|
-
{
|
|
12394
|
-
"kind": "function",
|
|
12395
|
-
"name": "chatIdOf",
|
|
12396
|
-
"return": {
|
|
12397
|
-
"type": {
|
|
12398
|
-
"text": "string | undefined"
|
|
12399
|
-
}
|
|
12400
|
-
},
|
|
12401
|
-
"parameters": [
|
|
12402
|
-
{
|
|
12403
|
-
"name": "el",
|
|
12404
|
-
"type": {
|
|
12405
|
-
"text": "Element"
|
|
12406
|
-
}
|
|
12407
|
-
}
|
|
12408
|
-
],
|
|
12409
|
-
"description": "The id of the chat `el` belongs to: the nearest `<aparte-chat>` or `[data-aparte-chat]`\nabove it that HAS one, `undefined` for an unnamed chat. The same climb the bubble, the\ncomposer and the gauge make for their own events, so an event naming a chat and an element\nanswering for it agree about which is which."
|
|
12410
|
-
},
|
|
12411
13262
|
{
|
|
12412
13263
|
"kind": "class",
|
|
12413
13264
|
"description": "Says on the bubble what a compaction is doing to the message it will sit on.\n\nA checkpoint is written onto the first message the model keeps verbatim, and the\ncompaction names that message the moment it starts (`aparte-compact-start.messageId`).\nFrom then on, until the summary arrives or fails, that bubble carries\n`data-checkpoint=\"pending\"` and the separator above it says the context is being\nsummarised; on a failure it carries `data-checkpoint=\"failed\"` (and\n`data-checkpoint-reason`) and the separator offers Retry. The bubble draws it — this only\nsets the two attributes, so the vanilla viewport and the framework host, which have\ndifferent bubbles to find and different lifetimes, share one rule for WHEN.\n\nWhat clears it, and what must not:\n- a `-done` for that very message, unless it was skipped (a skipped run did not write\n what the pending line announced, so the line stays until something answers it);\n- the next `-start`, which names a message of its own;\n- a conversation switch (`clear()`), because the bubble is not that chat's any more.\nA `-done` or `-error` for another message, or for another chat on the page, changes\nnothing: two chats compact at the same time, and one of them finishing must not wipe the\nline of the other. A chat with no id is addressed by events with no id, as everywhere, and\nan event is acted on only when its message is in this chat's transcript (`owns`).\n\nThe state is remembered here as well as written to the bubble, because under a framework\nthe bubble can be created after the event (`reapply()` writes it again on every sync).",
|
|
@@ -12544,14 +13395,6 @@
|
|
|
12544
13395
|
}
|
|
12545
13396
|
],
|
|
12546
13397
|
"exports": [
|
|
12547
|
-
{
|
|
12548
|
-
"kind": "js",
|
|
12549
|
-
"name": "chatIdOf",
|
|
12550
|
-
"declaration": {
|
|
12551
|
-
"name": "chatIdOf",
|
|
12552
|
-
"module": "src/context/checkpoint-state.ts"
|
|
12553
|
-
}
|
|
12554
|
-
},
|
|
12555
13398
|
{
|
|
12556
13399
|
"kind": "js",
|
|
12557
13400
|
"name": "CheckpointStateWatcher",
|
|
@@ -12688,7 +13531,7 @@
|
|
|
12688
13531
|
}
|
|
12689
13532
|
}
|
|
12690
13533
|
],
|
|
12691
|
-
"description": "The estimate of what the wire sends for these messages: the same serialisation the\nclient builds its history with (`wireMessages`) — a reply's thinking is not sent, its\ntext is, and a tool call and its result count as the envelope and the `tool` message\nthe wire carries. A failed
|
|
13534
|
+
"description": "The estimate of what the wire sends for these messages: the same serialisation the\nclient builds its history with (`wireMessages`) — a reply's thinking is not sent, its\ntext is, and a tool call and its result count as the envelope and the `tool` message\nthe wire carries. A failed reply and one still in flight send nothing, and neither does a\nmessage whose reply failed for good (`withoutAbandonedTurns`); one whose reply failed on\nthe network is counted, since it goes with the next message.\n\nNot `estimateTokens(message.content)`: assistant replies keep their text in\n`segments` with `content` empty, so that sum would read a whole conversation as free."
|
|
12692
13535
|
},
|
|
12693
13536
|
{
|
|
12694
13537
|
"kind": "function",
|
|
@@ -12903,7 +13746,7 @@
|
|
|
12903
13746
|
"declarations": [
|
|
12904
13747
|
{
|
|
12905
13748
|
"kind": "class",
|
|
12906
|
-
"description": "Connects an `AparteChatBinding` to a `AparteConversationManager`.\n\nResponsibilities:\n - Load messages when `setConversationId(id)` is called.\n - Lazily create a conversation on the first user `aparte-send` if none active.\n - Persist updates triggered by `aparte-path-changed` (branch nav, retry, edit).\n - Dispatch `aparte-abort` when the active conversation changes mid-stream.\n\nUsage:\n```ts\nconst controller = new AparteConversationController(binding);\nconst stop = controller.bind();\ncontroller.setConversationId('abc-123');\n// …\nstop();\n```",
|
|
13749
|
+
"description": "Connects an `AparteChatBinding` to a `AparteConversationManager`.\n\nResponsibilities:\n - Load messages when `setConversationId(id)` is called.\n - Lazily create a conversation on the first user `aparte-send` if none active.\n - Persist updates triggered by `aparte-path-changed` (branch nav, retry, edit).\n - Dispatch `aparte-abort` when the active conversation changes mid-stream.\n - Leave the open conversation readable on the host while bound, so `AparteClient` can say\n which conversation each turn belongs to (`StreamRunOptions.conversationId`).\n\nUsage:\n```ts\nconst controller = new AparteConversationController(binding);\nconst stop = controller.bind();\ncontroller.setConversationId('abc-123');\n// …\nstop();\n```",
|
|
12907
13750
|
"name": "AparteConversationController",
|
|
12908
13751
|
"members": [
|
|
12909
13752
|
{
|
|
@@ -12960,6 +13803,16 @@
|
|
|
12960
13803
|
"privacy": "private",
|
|
12961
13804
|
"default": "null"
|
|
12962
13805
|
},
|
|
13806
|
+
{
|
|
13807
|
+
"kind": "field",
|
|
13808
|
+
"name": "_pendingId",
|
|
13809
|
+
"type": {
|
|
13810
|
+
"text": "string | null"
|
|
13811
|
+
},
|
|
13812
|
+
"privacy": "private",
|
|
13813
|
+
"default": "null",
|
|
13814
|
+
"description": "The conversation this chat's first message is creating, from the moment `createNew()`\nis called until it resolves — see pendingId."
|
|
13815
|
+
},
|
|
12963
13816
|
{
|
|
12964
13817
|
"kind": "field",
|
|
12965
13818
|
"name": "_turn",
|
|
@@ -13125,6 +13978,26 @@
|
|
|
13125
13978
|
"description": "The current active conversation id (null when none selected).",
|
|
13126
13979
|
"readonly": true
|
|
13127
13980
|
},
|
|
13981
|
+
{
|
|
13982
|
+
"kind": "field",
|
|
13983
|
+
"name": "pendingId",
|
|
13984
|
+
"type": {
|
|
13985
|
+
"text": "string | null"
|
|
13986
|
+
},
|
|
13987
|
+
"description": "The conversation this chat's first message is creating, while it is being created:\nset when the send calls `createNew()`, `null` again once activeId holds it.\n\nIt is this chat's own, whatever the manager says. The manager has ONE `activeId`,\nwhich every chat on it writes when it opens or creates a conversation; with two chats\nit names the one that moved last. A wrapper that is handed this id back — through\n`onConversationCreated`, or bound to the manager's `activeId`, which changes before\nthe creation resolves — knows from it that the chat already shows that conversation.",
|
|
13988
|
+
"readonly": true
|
|
13989
|
+
},
|
|
13990
|
+
{
|
|
13991
|
+
"kind": "method",
|
|
13992
|
+
"name": "_openId",
|
|
13993
|
+
"privacy": "private",
|
|
13994
|
+
"return": {
|
|
13995
|
+
"type": {
|
|
13996
|
+
"text": "string | null"
|
|
13997
|
+
}
|
|
13998
|
+
},
|
|
13999
|
+
"description": "The conversation a message sent now belongs to: the open one, or — for the first\nmessage of a chat — the one that send is creating. The client hears the send right\nafter this controller does, so the creation has already started and its id is known\n(pendingId); this controller's own id follows once the conversation is saved.\n`_ensureConversationAndPersist` reads the same two places to decide where the message\nis saved, so a turn is carried to the conversation its message was written in. Never\nthe manager's `activeId`: that may be another chat's conversation."
|
|
14000
|
+
},
|
|
13128
14001
|
{
|
|
13129
14002
|
"kind": "method",
|
|
13130
14003
|
"name": "_manager",
|
|
@@ -13136,6 +14009,36 @@
|
|
|
13136
14009
|
},
|
|
13137
14010
|
"description": "Lazily resolve the conversation manager. Returns `undefined` if none is\nregistered — the controller then runs in degraded mode: optimistic UI\nstill works (user message is appended) but no persistence happens. This\nkeeps backward compatibility with hosts that haven't opted into the\nconversation lifecycle yet."
|
|
13138
14011
|
},
|
|
14012
|
+
{
|
|
14013
|
+
"kind": "field",
|
|
14014
|
+
"name": "_keptManager",
|
|
14015
|
+
"type": {
|
|
14016
|
+
"text": "AparteConversationManager | null"
|
|
14017
|
+
},
|
|
14018
|
+
"privacy": "private",
|
|
14019
|
+
"default": "null",
|
|
14020
|
+
"description": "The manager a config change could not take the open conversation away from: the new\nconfig's manager does not hold it, or the new config has none. The chat keeps saving\nthat conversation where it lives until it opens another — see followConfig."
|
|
14021
|
+
},
|
|
14022
|
+
{
|
|
14023
|
+
"kind": "field",
|
|
14024
|
+
"name": "_stopConfigWait",
|
|
14025
|
+
"type": {
|
|
14026
|
+
"text": "(() => void) | null"
|
|
14027
|
+
},
|
|
14028
|
+
"privacy": "private",
|
|
14029
|
+
"default": "null",
|
|
14030
|
+
"description": "Release handle for a wait on a new manager still loading its list (see followConfig)."
|
|
14031
|
+
},
|
|
14032
|
+
{
|
|
14033
|
+
"kind": "method",
|
|
14034
|
+
"name": "followConfig",
|
|
14035
|
+
"return": {
|
|
14036
|
+
"type": {
|
|
14037
|
+
"text": "void"
|
|
14038
|
+
}
|
|
14039
|
+
},
|
|
14040
|
+
"description": "The chat was given another config (`AparteChatHost.setConfig`), and its conversation\nmanager may be another one. Nothing on screen is lost either way:\n- the new manager holds the open conversation: it is opened again from there, and saved there;\n- it does not, or the new config has no manager: the chat keeps the manager it had for\n the conversation it shows, and goes on saving it there; the next conversation it\n opens comes from the new config.\nA manager still loading its list is waited for before it is asked."
|
|
14041
|
+
},
|
|
13139
14042
|
{
|
|
13140
14043
|
"kind": "field",
|
|
13141
14044
|
"name": "_warnedNoManager",
|
|
@@ -13212,6 +14115,16 @@
|
|
|
13212
14115
|
},
|
|
13213
14116
|
"description": "Attach event listeners to the binding host. Returns an unbind function."
|
|
13214
14117
|
},
|
|
14118
|
+
{
|
|
14119
|
+
"kind": "field",
|
|
14120
|
+
"name": "_withdrawOpenConversation",
|
|
14121
|
+
"type": {
|
|
14122
|
+
"text": "(() => void) | null"
|
|
14123
|
+
},
|
|
14124
|
+
"privacy": "private",
|
|
14125
|
+
"default": "null",
|
|
14126
|
+
"description": "Takes the open-conversation reader off the host (see `bind`)."
|
|
14127
|
+
},
|
|
13215
14128
|
{
|
|
13216
14129
|
"kind": "field",
|
|
13217
14130
|
"name": "_stopHydrationRetry",
|
|
@@ -13430,6 +14343,25 @@
|
|
|
13430
14343
|
}
|
|
13431
14344
|
}
|
|
13432
14345
|
},
|
|
14346
|
+
{
|
|
14347
|
+
"kind": "method",
|
|
14348
|
+
"name": "_adoptable",
|
|
14349
|
+
"privacy": "private",
|
|
14350
|
+
"return": {
|
|
14351
|
+
"type": {
|
|
14352
|
+
"text": "string | null"
|
|
14353
|
+
}
|
|
14354
|
+
},
|
|
14355
|
+
"parameters": [
|
|
14356
|
+
{
|
|
14357
|
+
"name": "manager",
|
|
14358
|
+
"type": {
|
|
14359
|
+
"text": "AparteConversationManager"
|
|
14360
|
+
}
|
|
14361
|
+
}
|
|
14362
|
+
],
|
|
14363
|
+
"description": "The conversation the manager names as active, for a chat that has none: only when this\ncontroller is the one chat on that manager (an app that called `manager.createNew()`\nitself and never gave the id to the chat), and only an empty conversation, whose\nmessages are in memory — a save from this chat must not write over messages it never\nshowed. With several chats the manager's `activeId` names whichever moved last."
|
|
14364
|
+
},
|
|
13433
14365
|
{
|
|
13434
14366
|
"kind": "method",
|
|
13435
14367
|
"name": "_ensureConversationAndPersist",
|
|
@@ -14381,6 +15313,72 @@
|
|
|
14381
15313
|
}
|
|
14382
15314
|
]
|
|
14383
15315
|
},
|
|
15316
|
+
{
|
|
15317
|
+
"kind": "javascript-module",
|
|
15318
|
+
"path": "src/conversations/open-conversation.ts",
|
|
15319
|
+
"declarations": [
|
|
15320
|
+
{
|
|
15321
|
+
"kind": "function",
|
|
15322
|
+
"name": "offerOpenConversation",
|
|
15323
|
+
"return": {
|
|
15324
|
+
"type": {
|
|
15325
|
+
"text": "() => void"
|
|
15326
|
+
}
|
|
15327
|
+
},
|
|
15328
|
+
"parameters": [
|
|
15329
|
+
{
|
|
15330
|
+
"name": "host",
|
|
15331
|
+
"type": {
|
|
15332
|
+
"text": "HTMLElement"
|
|
15333
|
+
}
|
|
15334
|
+
},
|
|
15335
|
+
{
|
|
15336
|
+
"name": "read",
|
|
15337
|
+
"type": {
|
|
15338
|
+
"text": "() => string | null"
|
|
15339
|
+
}
|
|
15340
|
+
}
|
|
15341
|
+
],
|
|
15342
|
+
"description": "Leave `read` on `host`, the chat's element, for openConversationOf. Returns what\ntakes it away again — and only if it is still the one that was left, so the teardown of a\ncontroller a framework has already replaced on the same element undoes nothing."
|
|
15343
|
+
},
|
|
15344
|
+
{
|
|
15345
|
+
"kind": "function",
|
|
15346
|
+
"name": "openConversationOf",
|
|
15347
|
+
"return": {
|
|
15348
|
+
"type": {
|
|
15349
|
+
"text": "string | null"
|
|
15350
|
+
}
|
|
15351
|
+
},
|
|
15352
|
+
"parameters": [
|
|
15353
|
+
{
|
|
15354
|
+
"name": "el",
|
|
15355
|
+
"type": {
|
|
15356
|
+
"text": "Element | null | undefined"
|
|
15357
|
+
}
|
|
15358
|
+
}
|
|
15359
|
+
],
|
|
15360
|
+
"description": "The id of the conversation open in the chat `el` is in, as of this moment — `null` when\nthe chat has none open, or when nothing manages the chat's conversations at all.\n\nRead when the person acts, not before: it answers for now, and a conversation the person\nopens a moment later is another answer."
|
|
15361
|
+
}
|
|
15362
|
+
],
|
|
15363
|
+
"exports": [
|
|
15364
|
+
{
|
|
15365
|
+
"kind": "js",
|
|
15366
|
+
"name": "offerOpenConversation",
|
|
15367
|
+
"declaration": {
|
|
15368
|
+
"name": "offerOpenConversation",
|
|
15369
|
+
"module": "src/conversations/open-conversation.ts"
|
|
15370
|
+
}
|
|
15371
|
+
},
|
|
15372
|
+
{
|
|
15373
|
+
"kind": "js",
|
|
15374
|
+
"name": "openConversationOf",
|
|
15375
|
+
"declaration": {
|
|
15376
|
+
"name": "openConversationOf",
|
|
15377
|
+
"module": "src/conversations/open-conversation.ts"
|
|
15378
|
+
}
|
|
15379
|
+
}
|
|
15380
|
+
]
|
|
15381
|
+
},
|
|
14384
15382
|
{
|
|
14385
15383
|
"kind": "javascript-module",
|
|
14386
15384
|
"path": "src/conversations/types.ts",
|
|
@@ -14447,6 +15445,13 @@
|
|
|
14447
15445
|
{
|
|
14448
15446
|
"name": "allowOther",
|
|
14449
15447
|
"default": "true"
|
|
15448
|
+
},
|
|
15449
|
+
{
|
|
15450
|
+
"name": "preview",
|
|
15451
|
+
"optional": true,
|
|
15452
|
+
"type": {
|
|
15453
|
+
"text": "HTMLElement | string"
|
|
15454
|
+
}
|
|
14450
15455
|
}
|
|
14451
15456
|
]
|
|
14452
15457
|
}
|
|
@@ -14624,6 +15629,66 @@
|
|
|
14624
15629
|
}
|
|
14625
15630
|
]
|
|
14626
15631
|
},
|
|
15632
|
+
{
|
|
15633
|
+
"kind": "javascript-module",
|
|
15634
|
+
"path": "src/elicitation/option-keys.ts",
|
|
15635
|
+
"declarations": [
|
|
15636
|
+
{
|
|
15637
|
+
"kind": "function",
|
|
15638
|
+
"name": "numberOptions",
|
|
15639
|
+
"return": {
|
|
15640
|
+
"type": {
|
|
15641
|
+
"text": "void"
|
|
15642
|
+
}
|
|
15643
|
+
},
|
|
15644
|
+
"parameters": [
|
|
15645
|
+
{
|
|
15646
|
+
"name": "panel",
|
|
15647
|
+
"type": {
|
|
15648
|
+
"text": "HTMLElement"
|
|
15649
|
+
}
|
|
15650
|
+
}
|
|
15651
|
+
],
|
|
15652
|
+
"description": "Number the options (at most nine) and say so to assistive technology. Call after the panel is built."
|
|
15653
|
+
},
|
|
15654
|
+
{
|
|
15655
|
+
"kind": "function",
|
|
15656
|
+
"name": "bindOptionKeys",
|
|
15657
|
+
"return": {
|
|
15658
|
+
"type": {
|
|
15659
|
+
"text": "() => void"
|
|
15660
|
+
}
|
|
15661
|
+
},
|
|
15662
|
+
"parameters": [
|
|
15663
|
+
{
|
|
15664
|
+
"name": "panel",
|
|
15665
|
+
"type": {
|
|
15666
|
+
"text": "HTMLElement"
|
|
15667
|
+
}
|
|
15668
|
+
}
|
|
15669
|
+
],
|
|
15670
|
+
"description": "Listen on `panel` for the keys above. Returns the function that stops listening (the panel\nis removed on close, so a caller may ignore it)."
|
|
15671
|
+
}
|
|
15672
|
+
],
|
|
15673
|
+
"exports": [
|
|
15674
|
+
{
|
|
15675
|
+
"kind": "js",
|
|
15676
|
+
"name": "numberOptions",
|
|
15677
|
+
"declaration": {
|
|
15678
|
+
"name": "numberOptions",
|
|
15679
|
+
"module": "src/elicitation/option-keys.ts"
|
|
15680
|
+
}
|
|
15681
|
+
},
|
|
15682
|
+
{
|
|
15683
|
+
"kind": "js",
|
|
15684
|
+
"name": "bindOptionKeys",
|
|
15685
|
+
"declaration": {
|
|
15686
|
+
"name": "bindOptionKeys",
|
|
15687
|
+
"module": "src/elicitation/option-keys.ts"
|
|
15688
|
+
}
|
|
15689
|
+
}
|
|
15690
|
+
]
|
|
15691
|
+
},
|
|
14627
15692
|
{
|
|
14628
15693
|
"kind": "javascript-module",
|
|
14629
15694
|
"path": "src/elicitation/panel.ts",
|
|
@@ -14932,6 +15997,16 @@
|
|
|
14932
15997
|
"privacy": "private",
|
|
14933
15998
|
"default": "false"
|
|
14934
15999
|
},
|
|
16000
|
+
{
|
|
16001
|
+
"kind": "field",
|
|
16002
|
+
"name": "_nextConfig",
|
|
16003
|
+
"type": {
|
|
16004
|
+
"text": "{ config: AparteConfig | undefined } | null"
|
|
16005
|
+
},
|
|
16006
|
+
"privacy": "private",
|
|
16007
|
+
"default": "null",
|
|
16008
|
+
"description": "A config given while a turn was in flight, applied when it ends — see setConfig."
|
|
16009
|
+
},
|
|
14935
16010
|
{
|
|
14936
16011
|
"kind": "method",
|
|
14937
16012
|
"name": "_report",
|
|
@@ -15041,6 +16116,42 @@
|
|
|
15041
16116
|
}
|
|
15042
16117
|
]
|
|
15043
16118
|
},
|
|
16119
|
+
{
|
|
16120
|
+
"kind": "method",
|
|
16121
|
+
"name": "setConfig",
|
|
16122
|
+
"return": {
|
|
16123
|
+
"type": {
|
|
16124
|
+
"text": "void"
|
|
16125
|
+
}
|
|
16126
|
+
},
|
|
16127
|
+
"parameters": [
|
|
16128
|
+
{
|
|
16129
|
+
"name": "config",
|
|
16130
|
+
"type": {
|
|
16131
|
+
"text": "AparteConfig | undefined"
|
|
16132
|
+
}
|
|
16133
|
+
}
|
|
16134
|
+
],
|
|
16135
|
+
"description": "Give the chat another instance config, or none (`undefined`: the page's). A wrapper\ncalls it when its `config` prop changes: the boundary on the host moves, and every\nelement inside re-resolves its config. The config it already has changes nothing, so a\nwrapper may hand it on every render — a NEW object each render is a new config each time.\n\nThe messages stay. When the new config's conversation manager is another one, the open\nconversation is opened again from it if it holds that conversation; otherwise the chat\nkeeps saving it to the manager it had, until it opens another one.\n\nNot in the middle of a turn: a reply half-drawn with one configuration's renderers and\nfinished with another's is worse than a change that waits. The last config given\nduring the turn is applied when the turn ends."
|
|
16136
|
+
},
|
|
16137
|
+
{
|
|
16138
|
+
"kind": "method",
|
|
16139
|
+
"name": "_applyConfig",
|
|
16140
|
+
"privacy": "private",
|
|
16141
|
+
"return": {
|
|
16142
|
+
"type": {
|
|
16143
|
+
"text": "void"
|
|
16144
|
+
}
|
|
16145
|
+
},
|
|
16146
|
+
"parameters": [
|
|
16147
|
+
{
|
|
16148
|
+
"name": "config",
|
|
16149
|
+
"type": {
|
|
16150
|
+
"text": "AparteConfig | undefined"
|
|
16151
|
+
}
|
|
16152
|
+
}
|
|
16153
|
+
]
|
|
16154
|
+
},
|
|
15044
16155
|
{
|
|
15045
16156
|
"kind": "method",
|
|
15046
16157
|
"name": "setConversationId",
|
|
@@ -15057,7 +16168,35 @@
|
|
|
15057
16168
|
}
|
|
15058
16169
|
}
|
|
15059
16170
|
],
|
|
15060
|
-
"description": "Load / switch the active conversation via the controller."
|
|
16171
|
+
"description": "Load / switch the active conversation via the controller. The same id again re-reads\nit from the manager: this is the imperative call, the one that means \"open this now\".\nA `conversationId` prop goes through syncConversationId."
|
|
16172
|
+
},
|
|
16173
|
+
{
|
|
16174
|
+
"kind": "method",
|
|
16175
|
+
"name": "syncConversationId",
|
|
16176
|
+
"return": {
|
|
16177
|
+
"type": {
|
|
16178
|
+
"text": "Promise<void>"
|
|
16179
|
+
}
|
|
16180
|
+
},
|
|
16181
|
+
"parameters": [
|
|
16182
|
+
{
|
|
16183
|
+
"name": "id",
|
|
16184
|
+
"type": {
|
|
16185
|
+
"text": "string | null"
|
|
16186
|
+
}
|
|
16187
|
+
}
|
|
16188
|
+
],
|
|
16189
|
+
"description": "Follow a wrapper's `conversationId` prop: open `id`, unless it is the conversation this\nchat already shows or is creating.\n\nThe documented pattern gives the created conversation back to the chat — the prop set\nfrom `onConversationCreated`, or bound to the manager's `activeId`, which names the new\nconversation before the creation even resolves. That id arrives while the first reply\nstreams, and opening it then re-read a conversation the manager did not hold the reply\nof yet: the transcript was replaced under the stream. Compared with the controller, not\nwith the last prop: the person opens other conversations from the list without the prop\nhearing of it."
|
|
16190
|
+
},
|
|
16191
|
+
{
|
|
16192
|
+
"kind": "method",
|
|
16193
|
+
"name": "getConversationId",
|
|
16194
|
+
"return": {
|
|
16195
|
+
"type": {
|
|
16196
|
+
"text": "string | null"
|
|
16197
|
+
}
|
|
16198
|
+
},
|
|
16199
|
+
"description": "The conversation this chat shows: the one it opened, or the one its first message is\ncreating; `null` for a chat with none yet. Per chat, which the manager's single\n`activeId` cannot say once several chats share it."
|
|
15061
16200
|
},
|
|
15062
16201
|
{
|
|
15063
16202
|
"kind": "field",
|
|
@@ -15721,6 +16860,24 @@
|
|
|
15721
16860
|
"default": "nextBranchIcon",
|
|
15722
16861
|
"description": "Next. Alias of the branch picker glyph — see chevronLeftIcon."
|
|
15723
16862
|
},
|
|
16863
|
+
{
|
|
16864
|
+
"kind": "variable",
|
|
16865
|
+
"name": "chevronDownIcon",
|
|
16866
|
+
"default": "expandIcon",
|
|
16867
|
+
"description": "Down. Alias of the expand glyph, named by direction rather than state."
|
|
16868
|
+
},
|
|
16869
|
+
{
|
|
16870
|
+
"kind": "variable",
|
|
16871
|
+
"name": "chevronUpIcon",
|
|
16872
|
+
"default": "collapseIcon",
|
|
16873
|
+
"description": "Up. Alias of the collapse glyph, named by direction rather than state."
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
"kind": "variable",
|
|
16877
|
+
"name": "panelLeftIcon",
|
|
16878
|
+
"default": "`<svg class=\"aparte-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\"/><path d=\"M9 3v18\"/></svg>`",
|
|
16879
|
+
"description": "Sidebar panel: toggles a desktop sidebar."
|
|
16880
|
+
},
|
|
15724
16881
|
{
|
|
15725
16882
|
"kind": "variable",
|
|
15726
16883
|
"name": "arrowUpIcon",
|
|
@@ -15899,9 +17056,9 @@
|
|
|
15899
17056
|
"kind": "variable",
|
|
15900
17057
|
"name": "APARTE_EXTENDED_ICON_GLYPHS",
|
|
15901
17058
|
"type": {
|
|
15902
|
-
"text": "{\n plus: plusIcon,\n minus: minusIcon,\n search: searchIcon,\n filter: filterIcon,\n moreHorizontal: moreHorizontalIcon,\n moreVertical: moreVerticalIcon,\n chevronLeft: chevronLeftIcon,\n chevronRight: chevronRightIcon,\n arrowUp: arrowUpIcon,\n arrowRight: arrowRightIcon,\n externalLink: externalLinkIcon,\n link: linkIcon,\n folder: folderIcon,\n code: codeIcon,\n clipboard: clipboardIcon,\n trash: trashIcon,\n save: saveIcon,\n upload: uploadIcon,\n settings: settingsIcon,\n user: userIcon,\n bot: botIcon,\n sparkles: sparklesIcon,\n cpu: cpuIcon,\n database: databaseIcon,\n globe: globeIcon,\n key: keyIcon,\n mic: micIcon,\n micOff: micOffIcon,\n eye: eyeIcon,\n eyeOff: eyeOffIcon,\n clock: clockIcon,\n history: historyIcon,\n star: starIcon,\n share: shareIcon,\n checkCircle: checkCircleIcon,\n xCircle: xCircleIcon,\n messageSquare: messageSquareIcon,\n sun: sunIcon,\n moon: moonIcon,\n}"
|
|
17059
|
+
"text": "{\n plus: plusIcon,\n minus: minusIcon,\n search: searchIcon,\n filter: filterIcon,\n moreHorizontal: moreHorizontalIcon,\n moreVertical: moreVerticalIcon,\n chevronLeft: chevronLeftIcon,\n chevronRight: chevronRightIcon,\n chevronDown: chevronDownIcon,\n chevronUp: chevronUpIcon,\n panelLeft: panelLeftIcon,\n arrowUp: arrowUpIcon,\n arrowRight: arrowRightIcon,\n externalLink: externalLinkIcon,\n link: linkIcon,\n folder: folderIcon,\n code: codeIcon,\n clipboard: clipboardIcon,\n trash: trashIcon,\n save: saveIcon,\n upload: uploadIcon,\n settings: settingsIcon,\n user: userIcon,\n bot: botIcon,\n sparkles: sparklesIcon,\n cpu: cpuIcon,\n database: databaseIcon,\n globe: globeIcon,\n key: keyIcon,\n mic: micIcon,\n micOff: micOffIcon,\n eye: eyeIcon,\n eyeOff: eyeOffIcon,\n clock: clockIcon,\n history: historyIcon,\n star: starIcon,\n share: shareIcon,\n checkCircle: checkCircleIcon,\n xCircle: xCircleIcon,\n messageSquare: messageSquareIcon,\n sun: sunIcon,\n moon: moonIcon,\n}"
|
|
15903
17060
|
},
|
|
15904
|
-
"default": "{ plus: plusIcon, minus: minusIcon, search: searchIcon, filter: filterIcon, moreHorizontal: moreHorizontalIcon, moreVertical: moreVerticalIcon, chevronLeft: chevronLeftIcon, chevronRight: chevronRightIcon, arrowUp: arrowUpIcon, arrowRight: arrowRightIcon, externalLink: externalLinkIcon, link: linkIcon, folder: folderIcon, code: codeIcon, clipboard: clipboardIcon, trash: trashIcon, save: saveIcon, upload: uploadIcon, settings: settingsIcon, user: userIcon, bot: botIcon, sparkles: sparklesIcon, cpu: cpuIcon, database: databaseIcon, globe: globeIcon, key: keyIcon, mic: micIcon, micOff: micOffIcon, eye: eyeIcon, eyeOff: eyeOffIcon, clock: clockIcon, history: historyIcon, star: starIcon, share: shareIcon, checkCircle: checkCircleIcon, xCircle: xCircleIcon, messageSquare: messageSquareIcon, sun: sunIcon, moon: moonIcon, }",
|
|
17061
|
+
"default": "{ plus: plusIcon, minus: minusIcon, search: searchIcon, filter: filterIcon, moreHorizontal: moreHorizontalIcon, moreVertical: moreVerticalIcon, chevronLeft: chevronLeftIcon, chevronRight: chevronRightIcon, chevronDown: chevronDownIcon, chevronUp: chevronUpIcon, panelLeft: panelLeftIcon, arrowUp: arrowUpIcon, arrowRight: arrowRightIcon, externalLink: externalLinkIcon, link: linkIcon, folder: folderIcon, code: codeIcon, clipboard: clipboardIcon, trash: trashIcon, save: saveIcon, upload: uploadIcon, settings: settingsIcon, user: userIcon, bot: botIcon, sparkles: sparklesIcon, cpu: cpuIcon, database: databaseIcon, globe: globeIcon, key: keyIcon, mic: micIcon, micOff: micOffIcon, eye: eyeIcon, eyeOff: eyeOffIcon, clock: clockIcon, history: historyIcon, star: starIcon, share: shareIcon, checkCircle: checkCircleIcon, xCircle: xCircleIcon, messageSquare: messageSquareIcon, sun: sunIcon, moon: moonIcon, }",
|
|
15905
17062
|
"description": "Every extended glyph, by name. Importing this object defeats tree-shaking:\nit is here for a gallery or a picker, not for drawing one icon."
|
|
15906
17063
|
}
|
|
15907
17064
|
],
|
|
@@ -15970,6 +17127,30 @@
|
|
|
15970
17127
|
"module": "src/icons/extended.ts"
|
|
15971
17128
|
}
|
|
15972
17129
|
},
|
|
17130
|
+
{
|
|
17131
|
+
"kind": "js",
|
|
17132
|
+
"name": "chevronDownIcon",
|
|
17133
|
+
"declaration": {
|
|
17134
|
+
"name": "chevronDownIcon",
|
|
17135
|
+
"module": "src/icons/extended.ts"
|
|
17136
|
+
}
|
|
17137
|
+
},
|
|
17138
|
+
{
|
|
17139
|
+
"kind": "js",
|
|
17140
|
+
"name": "chevronUpIcon",
|
|
17141
|
+
"declaration": {
|
|
17142
|
+
"name": "chevronUpIcon",
|
|
17143
|
+
"module": "src/icons/extended.ts"
|
|
17144
|
+
}
|
|
17145
|
+
},
|
|
17146
|
+
{
|
|
17147
|
+
"kind": "js",
|
|
17148
|
+
"name": "panelLeftIcon",
|
|
17149
|
+
"declaration": {
|
|
17150
|
+
"name": "panelLeftIcon",
|
|
17151
|
+
"module": "src/icons/extended.ts"
|
|
17152
|
+
}
|
|
17153
|
+
},
|
|
15973
17154
|
{
|
|
15974
17155
|
"kind": "js",
|
|
15975
17156
|
"name": "arrowUpIcon",
|
|
@@ -16751,6 +17932,85 @@
|
|
|
16751
17932
|
}
|
|
16752
17933
|
]
|
|
16753
17934
|
},
|
|
17935
|
+
{
|
|
17936
|
+
"kind": "javascript-module",
|
|
17937
|
+
"path": "src/interop/chat-events.ts",
|
|
17938
|
+
"declarations": [
|
|
17939
|
+
{
|
|
17940
|
+
"kind": "function",
|
|
17941
|
+
"name": "chatIdOf",
|
|
17942
|
+
"return": {
|
|
17943
|
+
"type": {
|
|
17944
|
+
"text": "string | undefined"
|
|
17945
|
+
}
|
|
17946
|
+
},
|
|
17947
|
+
"parameters": [
|
|
17948
|
+
{
|
|
17949
|
+
"name": "el",
|
|
17950
|
+
"type": {
|
|
17951
|
+
"text": "Element | null | undefined"
|
|
17952
|
+
}
|
|
17953
|
+
}
|
|
17954
|
+
],
|
|
17955
|
+
"description": "The id of the chat `el` belongs to, or `undefined` when it belongs to none with an id.\n\nClimbing from `el` itself: the first aparté element with a `target` attribute names its chat\n(a composer, a suggestions row or a gauge placed outside the chat it serves says so there);\notherwise the nearest `<aparte-chat>` or `[data-aparte-chat]` root that has an id. An id-less\nhost is passed over rather than answered with \"no id\", so a chat nested in another names the\none that has a name.\n\n`undefined` is an answer, not an error: a page with one chat needs no id, and an event that\nnames no chat is, by the rule every receiver in core follows, for every chat."
|
|
17956
|
+
},
|
|
17957
|
+
{
|
|
17958
|
+
"kind": "function",
|
|
17959
|
+
"name": "dispatchChatEvent",
|
|
17960
|
+
"return": {
|
|
17961
|
+
"type": {
|
|
17962
|
+
"text": "boolean"
|
|
17963
|
+
}
|
|
17964
|
+
},
|
|
17965
|
+
"parameters": [
|
|
17966
|
+
{
|
|
17967
|
+
"name": "el",
|
|
17968
|
+
"type": {
|
|
17969
|
+
"text": "Element"
|
|
17970
|
+
}
|
|
17971
|
+
},
|
|
17972
|
+
{
|
|
17973
|
+
"name": "type",
|
|
17974
|
+
"type": {
|
|
17975
|
+
"text": "string"
|
|
17976
|
+
}
|
|
17977
|
+
},
|
|
17978
|
+
{
|
|
17979
|
+
"name": "detail",
|
|
17980
|
+
"type": {
|
|
17981
|
+
"text": "T"
|
|
17982
|
+
}
|
|
17983
|
+
},
|
|
17984
|
+
{
|
|
17985
|
+
"name": "init",
|
|
17986
|
+
"default": "{}",
|
|
17987
|
+
"type": {
|
|
17988
|
+
"text": "{ cancelable?: boolean }"
|
|
17989
|
+
}
|
|
17990
|
+
}
|
|
17991
|
+
],
|
|
17992
|
+
"description": "Dispatch `type` on `el`, bubbling and composed, its detail stamped with the chat `el` belongs to\n(`targetId`, from chatIdOf) — the stamp `dispatchLifecycleEvent` puts on the turn's own\nevents, for everything else a chat's content or its composer sends.\n\nA `targetId` the detail already carries is kept: the sender knew better. Without a chat to name,\nthe detail goes as it is, with no `targetId` key. Returns what `dispatchEvent` returns, so a\ncancelable event (`{ cancelable: true }`) tells the sender whether a listener cancelled it."
|
|
17993
|
+
}
|
|
17994
|
+
],
|
|
17995
|
+
"exports": [
|
|
17996
|
+
{
|
|
17997
|
+
"kind": "js",
|
|
17998
|
+
"name": "chatIdOf",
|
|
17999
|
+
"declaration": {
|
|
18000
|
+
"name": "chatIdOf",
|
|
18001
|
+
"module": "src/interop/chat-events.ts"
|
|
18002
|
+
}
|
|
18003
|
+
},
|
|
18004
|
+
{
|
|
18005
|
+
"kind": "js",
|
|
18006
|
+
"name": "dispatchChatEvent",
|
|
18007
|
+
"declaration": {
|
|
18008
|
+
"name": "dispatchChatEvent",
|
|
18009
|
+
"module": "src/interop/chat-events.ts"
|
|
18010
|
+
}
|
|
18011
|
+
}
|
|
18012
|
+
]
|
|
18013
|
+
},
|
|
16754
18014
|
{
|
|
16755
18015
|
"kind": "javascript-module",
|
|
16756
18016
|
"path": "src/interop/default-on-attributes.ts",
|
|
@@ -16942,7 +18202,7 @@
|
|
|
16942
18202
|
}
|
|
16943
18203
|
}
|
|
16944
18204
|
],
|
|
16945
|
-
"description": "Apply props to an aparté custom element. aparté elements are\n**attribute-driven** (`observedAttributes`): assigning a property is either a\nsilent no-op (nothing observes it) or throws outright on a getter-only\naccessor — `<aparte-composer>`'s `placeholder`/`disabled` are exactly that.\nSo primitives go through `setAttribute`; only values an attribute cannot carry\n(objects, functions) are handed over as properties. Keys starting with `--`\nbecome CSS variables; `on…` function values are ignored (event forwarding is\nthe wrapper's job).\n\n`transformValue` is applied to object/function values before they're set as\nproperties — Vue passes `toRaw` to unwrap its reactive proxy (a deep proxy\nbreaks Maps/class internals on a plain custom element); it defaults to identity."
|
|
18205
|
+
"description": "Apply props to an aparté custom element. aparté elements are\n**attribute-driven** (`observedAttributes`): assigning a property is either a\nsilent no-op (nothing observes it) or throws outright on a getter-only\naccessor — `<aparte-composer>`'s `placeholder`/`disabled` are exactly that.\nSo primitives go through `setAttribute`; only values an attribute cannot carry\n(objects, functions) are handed over as properties. Keys starting with `--`\nbecome CSS variables; `on…` function values are ignored (event forwarding is\nthe wrapper's job).\n\n`transformValue` is applied to object/function values before they're set as\nproperties — Vue passes `toRaw` to unwrap its reactive proxy (a deep proxy\nbreaks Maps/class internals on a plain custom element); it defaults to identity.\n\nA wrapper calls this with the whole bag whenever the bag changes, so an attribute or a CSS\nvariable is written only when its value differs from the one this function last wrote on that\nelement: re-writing the same string still runs `attributeChangedCallback`. An object or a\nfunction is assigned every time, even the same one, because it may have been mutated in place;\nthe element's setter keeps its state when it is handed what it already holds."
|
|
16946
18206
|
}
|
|
16947
18207
|
],
|
|
16948
18208
|
"exports": [
|
|
@@ -16964,6 +18224,12 @@
|
|
|
16964
18224
|
}
|
|
16965
18225
|
]
|
|
16966
18226
|
},
|
|
18227
|
+
{
|
|
18228
|
+
"kind": "javascript-module",
|
|
18229
|
+
"path": "src/interop/element-spec.ts",
|
|
18230
|
+
"declarations": [],
|
|
18231
|
+
"exports": []
|
|
18232
|
+
},
|
|
16967
18233
|
{
|
|
16968
18234
|
"kind": "javascript-module",
|
|
16969
18235
|
"path": "src/interop/image-holds.ts",
|
|
@@ -17771,6 +19037,10 @@
|
|
|
17771
19037
|
],
|
|
17772
19038
|
"description": "Relabel the chips under `root` in the chat's current language."
|
|
17773
19039
|
},
|
|
19040
|
+
{
|
|
19041
|
+
"kind": "variable",
|
|
19042
|
+
"name": "anchor"
|
|
19043
|
+
},
|
|
17774
19044
|
{
|
|
17775
19045
|
"kind": "function",
|
|
17776
19046
|
"name": "renderSourceList",
|
|
@@ -20318,6 +21588,14 @@
|
|
|
20318
21588
|
"module": "./models.js"
|
|
20319
21589
|
}
|
|
20320
21590
|
},
|
|
21591
|
+
{
|
|
21592
|
+
"kind": "js",
|
|
21593
|
+
"name": "AparteDeferredCall",
|
|
21594
|
+
"declaration": {
|
|
21595
|
+
"name": "AparteDeferredCall",
|
|
21596
|
+
"module": "./models.js"
|
|
21597
|
+
}
|
|
21598
|
+
},
|
|
20321
21599
|
{
|
|
20322
21600
|
"kind": "js",
|
|
20323
21601
|
"name": "AparteComposerCaret",
|
|
@@ -21254,6 +22532,14 @@
|
|
|
21254
22532
|
"module": "./element-attributes.js"
|
|
21255
22533
|
}
|
|
21256
22534
|
},
|
|
22535
|
+
{
|
|
22536
|
+
"kind": "js",
|
|
22537
|
+
"name": "AparteComposerSendAttributes",
|
|
22538
|
+
"declaration": {
|
|
22539
|
+
"name": "AparteComposerSendAttributes",
|
|
22540
|
+
"module": "./element-attributes.js"
|
|
22541
|
+
}
|
|
22542
|
+
},
|
|
21257
22543
|
{
|
|
21258
22544
|
"kind": "js",
|
|
21259
22545
|
"name": "AparteComposerToolbarAttributes",
|
|
@@ -22850,7 +24136,7 @@
|
|
|
22850
24136
|
}
|
|
22851
24137
|
}
|
|
22852
24138
|
],
|
|
22853
|
-
"description": "What the config's tool-line
|
|
24139
|
+
"description": "What the config's tool-line providers say about this call (`setToolLineProvider`, then\neach `registerToolLineProvider` in order — the first to answer wins), or `undefined` when\nthere is none, none says anything, or a throwing one is the only one — the default line\nthen. Called at every draw, update and relabel, never stored: its words follow the locale."
|
|
22854
24140
|
},
|
|
22855
24141
|
{
|
|
22856
24142
|
"kind": "function",
|
|
@@ -22955,7 +24241,7 @@
|
|
|
22955
24241
|
},
|
|
22956
24242
|
"parameters": [
|
|
22957
24243
|
{
|
|
22958
|
-
"name": "
|
|
24244
|
+
"name": "segment",
|
|
22959
24245
|
"type": {
|
|
22960
24246
|
"text": "AparteToolCallSegment"
|
|
22961
24247
|
}
|
|
@@ -22965,9 +24251,15 @@
|
|
|
22965
24251
|
"type": {
|
|
22966
24252
|
"text": "AparteToolLine | undefined"
|
|
22967
24253
|
}
|
|
24254
|
+
},
|
|
24255
|
+
{
|
|
24256
|
+
"name": "config",
|
|
24257
|
+
"type": {
|
|
24258
|
+
"text": "AparteConfig"
|
|
24259
|
+
}
|
|
22968
24260
|
}
|
|
22969
24261
|
],
|
|
22970
|
-
"description": "The row's second line,
|
|
24262
|
+
"description": "The row's second line: the app's `activity` on the tool's display, else the tool-line\nprovider's, in every state it gives one. Core says nothing there on its own."
|
|
22971
24263
|
},
|
|
22972
24264
|
{
|
|
22973
24265
|
"kind": "function",
|
|
@@ -22978,14 +24270,26 @@
|
|
|
22978
24270
|
}
|
|
22979
24271
|
},
|
|
22980
24272
|
"parameters": [
|
|
24273
|
+
{
|
|
24274
|
+
"name": "segment",
|
|
24275
|
+
"type": {
|
|
24276
|
+
"text": "AparteToolCallSegment"
|
|
24277
|
+
}
|
|
24278
|
+
},
|
|
22981
24279
|
{
|
|
22982
24280
|
"name": "line",
|
|
22983
24281
|
"type": {
|
|
22984
24282
|
"text": "AparteToolLine | undefined"
|
|
22985
24283
|
}
|
|
24284
|
+
},
|
|
24285
|
+
{
|
|
24286
|
+
"name": "config",
|
|
24287
|
+
"type": {
|
|
24288
|
+
"text": "AparteConfig"
|
|
24289
|
+
}
|
|
22986
24290
|
}
|
|
22987
24291
|
],
|
|
22988
|
-
"description": "The
|
|
24292
|
+
"description": "The row's trailing note: the app's `note` on the tool's display, else the provider's, in every state."
|
|
22989
24293
|
}
|
|
22990
24294
|
],
|
|
22991
24295
|
"exports": [
|
|
@@ -23444,6 +24748,16 @@
|
|
|
23444
24748
|
"privacy": "private",
|
|
23445
24749
|
"default": "false"
|
|
23446
24750
|
},
|
|
24751
|
+
{
|
|
24752
|
+
"kind": "field",
|
|
24753
|
+
"name": "_clearingStreamingAttr",
|
|
24754
|
+
"type": {
|
|
24755
|
+
"text": "boolean"
|
|
24756
|
+
},
|
|
24757
|
+
"privacy": "private",
|
|
24758
|
+
"default": "false",
|
|
24759
|
+
"description": "The element is taking its own `streaming` attribute off: the change says what the state already does."
|
|
24760
|
+
},
|
|
23447
24761
|
{
|
|
23448
24762
|
"kind": "field",
|
|
23449
24763
|
"name": "_segments",
|
|
@@ -24938,7 +26252,7 @@
|
|
|
24938
26252
|
"kind": "field",
|
|
24939
26253
|
"name": "_onLinkClick",
|
|
24940
26254
|
"privacy": "private",
|
|
24941
|
-
"description": "A link the MODEL wrote is about to be followed. Announced as a cancelable event\nbefore the browser acts, so a host can route it — an external browser, a\nconfirmation, an embedded view — without intercepting the DOM. With\nno listener the browser follows it,
|
|
26255
|
+
"description": "A link the MODEL wrote is about to be followed. Announced as a cancelable event\nbefore the browser acts, so a host can route it — an external browser, a\nconfirmation, an embedded view — without intercepting the DOM. With\nno listener the browser follows it, where the config's link target sent it (a new\ntab by default, `setLinkTarget`); `preventDefault()` on the event cancels the click.\n\nOnly anchors inside the message body: the action bar and the branch picker are\nbuttons, and an attachment tile is its own event."
|
|
24942
26256
|
},
|
|
24943
26257
|
{
|
|
24944
26258
|
"kind": "field",
|
|
@@ -25185,64 +26499,75 @@
|
|
|
25185
26499
|
}
|
|
25186
26500
|
}
|
|
25187
26501
|
]
|
|
26502
|
+
},
|
|
26503
|
+
{
|
|
26504
|
+
"kind": "method",
|
|
26505
|
+
"name": "_dropStreamingAttribute",
|
|
26506
|
+
"privacy": "private",
|
|
26507
|
+
"return": {
|
|
26508
|
+
"type": {
|
|
26509
|
+
"text": "void"
|
|
26510
|
+
}
|
|
26511
|
+
},
|
|
26512
|
+
"description": "A reply in flight is declared with `streaming`, and it ends as `updateMessage({ status })`\n— which moved the state and left the attribute. A vanilla viewport writes it on the bubble\nit appends for a reply on its way and nothing took it off, so every finished reply of a\ntranscript still matched `[streaming]`. It comes off here, once the state is off.\n`streaming=\"false\"` is left alone: it already says so."
|
|
25188
26513
|
}
|
|
25189
26514
|
],
|
|
25190
26515
|
"events": [
|
|
25191
26516
|
{
|
|
25192
|
-
"name": "aparte-
|
|
26517
|
+
"name": "aparte-retry",
|
|
25193
26518
|
"type": {
|
|
25194
|
-
"text": "CustomEvent<
|
|
26519
|
+
"text": "CustomEvent<AparteRetryEventDetail>"
|
|
25195
26520
|
},
|
|
25196
|
-
"description": "
|
|
26521
|
+
"description": "Retry was pressed; the host forks the turn."
|
|
25197
26522
|
},
|
|
25198
26523
|
{
|
|
25199
|
-
"name": "aparte-
|
|
26524
|
+
"name": "aparte-edit",
|
|
25200
26525
|
"type": {
|
|
25201
|
-
"text": "CustomEvent<
|
|
26526
|
+
"text": "CustomEvent<AparteEditEventDetail>"
|
|
25202
26527
|
},
|
|
25203
|
-
"description": "An
|
|
26528
|
+
"description": "An edit was saved."
|
|
25204
26529
|
},
|
|
25205
26530
|
{
|
|
25206
|
-
"name": "aparte-action",
|
|
25207
26531
|
"type": {
|
|
25208
26532
|
"text": "CustomEvent<AparteActionEventDetail>"
|
|
25209
26533
|
},
|
|
25210
|
-
"description": "A custom action-bar button was pressed."
|
|
26534
|
+
"description": "A custom action-bar button was pressed.",
|
|
26535
|
+
"name": "aparte-action"
|
|
25211
26536
|
},
|
|
25212
26537
|
{
|
|
25213
|
-
"name": "aparte-retry",
|
|
25214
26538
|
"type": {
|
|
25215
|
-
"text": "CustomEvent<
|
|
26539
|
+
"text": "CustomEvent<AparteFeedbackEventDetail>"
|
|
25216
26540
|
},
|
|
25217
|
-
"description": "
|
|
26541
|
+
"description": "Thumbs up or down.",
|
|
26542
|
+
"name": "aparte-feedback"
|
|
25218
26543
|
},
|
|
25219
26544
|
{
|
|
25220
|
-
"name": "aparte-feedback",
|
|
25221
26545
|
"type": {
|
|
25222
|
-
"text": "CustomEvent<
|
|
26546
|
+
"text": "CustomEvent<AparteFeedbackReasonEventDetail>"
|
|
25223
26547
|
},
|
|
25224
|
-
"description": "
|
|
26548
|
+
"description": "The reason picked after a thumbs-down.",
|
|
26549
|
+
"name": "aparte-feedback-reason"
|
|
25225
26550
|
},
|
|
25226
26551
|
{
|
|
25227
|
-
"name": "aparte-message-info",
|
|
25228
26552
|
"type": {
|
|
25229
26553
|
"text": "CustomEvent<AparteMessageInfoEventDetail>"
|
|
25230
26554
|
},
|
|
25231
|
-
"description": "The info affordance was pressed."
|
|
26555
|
+
"description": "The info affordance was pressed.",
|
|
26556
|
+
"name": "aparte-message-info"
|
|
25232
26557
|
},
|
|
25233
26558
|
{
|
|
25234
|
-
"name": "aparte-edit",
|
|
25235
26559
|
"type": {
|
|
25236
|
-
"text": "CustomEvent<
|
|
26560
|
+
"text": "CustomEvent<AparteBranchNavigateEventDetail>"
|
|
25237
26561
|
},
|
|
25238
|
-
"description": "
|
|
26562
|
+
"description": "The `‹1/2›` picker moved between sibling versions.",
|
|
26563
|
+
"name": "aparte-branch-navigate"
|
|
25239
26564
|
},
|
|
25240
26565
|
{
|
|
25241
26566
|
"type": {
|
|
25242
|
-
"text": "CustomEvent<
|
|
26567
|
+
"text": "CustomEvent<AparteAttachmentPreviewEventDetail>"
|
|
25243
26568
|
},
|
|
25244
|
-
"description": "
|
|
25245
|
-
"name": "aparte-
|
|
26569
|
+
"description": "An attached image was clicked, asking the app to open it full-size — or a file, with `filePreview`, asking the app to open it.",
|
|
26570
|
+
"name": "aparte-attachment-preview"
|
|
25246
26571
|
},
|
|
25247
26572
|
{
|
|
25248
26573
|
"type": {
|
|
@@ -25300,7 +26625,7 @@
|
|
|
25300
26625
|
"type": {
|
|
25301
26626
|
"text": "boolean"
|
|
25302
26627
|
},
|
|
25303
|
-
"description": "Hides the action bar and shows the caret while a reply is in flight."
|
|
26628
|
+
"description": "Hides the action bar and shows the caret while a reply is in flight. Whoever set it, the element takes it off when the reply ends, so `[streaming]` never matches a finished reply. A test asks `[aria-busy=\"true\"]` on the message instead, which every framework draws the same way."
|
|
25304
26629
|
},
|
|
25305
26630
|
{
|
|
25306
26631
|
"name": "name",
|
|
@@ -25652,7 +26977,7 @@
|
|
|
25652
26977
|
"declarations": [
|
|
25653
26978
|
{
|
|
25654
26979
|
"kind": "class",
|
|
25655
|
-
"description": "AparteChat - The Shell\n\nThe container element for a chat. It lays out its Light DOM children as a flex\ncolumn: an `<aparte-chat-viewport>` takes the space left over (`flex: 1 1 auto`)\nand scrolls, an `<aparte-composer>` keeps its own height below it. Light DOM on\npurpose, so the page's own global CSS reaches inside.\n\nThe presence of an `<aparte-chat-viewport>` child at connect is the exact test for\n\"the author composed this\". Find one and the children are used as given — this\nelement moves none of them, so anything else you drop in (a header, a banner above\nthe composer) is simply another row of that column, in DOM order. Find none and\n`innerHTML` is OVERWRITTEN with a default composition — a viewport, an\n`<aparte-elicitation>` presenter, and a composer shell holding an input and a send\nbutton, plus the two attachment primitives when `attachments` is set — so children\nwritten without a viewport anywhere inside them are destroyed, that header included.\nThe test is a DESCENDANT query, so a viewport nested in a wrapper of your own still\ncounts — compose it yourself with the viewport somewhere in the tree, or leave the tag\nempty. Angular's wrapper sets `framework-managed` instead of relying on that test,\nbecause its children do not exist yet when this element upgrades; React, Vue and\nSvelte never create this element at all, so the question does not arise for them.\n\nBeing a component (not a bare `<div>`), it also owns behaviour a wrapper div\ncan't: it watches its own viewport and says whether the conversation is empty —\n`data-empty`, in the attribute list below, is that watcher's output — and with\n`center-empty` the stylesheet keeps the composer centered as a welcome state until\nthe first `<aparte-chat-bubble>` lands, then slides to the normal layout, with no\nexternal JavaScript. The watcher needs a viewport somewhere inside: hand-written\nmarkup always has one, because composing the default injects it, and Angular's\n`framework-managed` host gets its watcher once the template has rendered the\nviewport. The stylesheet centers through\n`aparte-chat[center-empty][data-empty]` and its DIRECT viewport child, so a\nframework-managed host that nests the viewport inside a container of its own gets\nnothing from the attribute — the wrappers ship their own centered layout.\n\nIt is also one of the anchors where core re-declares its derived CSS layer, so\noverriding a master — `--aparte-primary`, a surface, a text colour — on a single\n`<aparte-chat>` re-derives the values computed from it for that instance rather\nthan moving one button. That is per-instance theming. The literal palette is\ndeliberately not re-declared here, so a chat nested in a dark wrapper stays dark.\n\nPresentational only: it does NOT wire a transport/client. Attach an\n`AparteClient`, or handle `aparte-send` yourself, as with the primitives.\nSize the element via CSS (a height, or let it fill a sized parent).\n\nComposing it yourself is the other form, and the container still lays it out and still\nruns `center-empty`. It is written out here rather than as a second `@example` for a\nmechanical reason: every element-own example is concatenated into ONE live frame on the\ngenerated reference page, so a second `<aparte-chat>` there rendered as a second whole\nchat — two empty composers with 600px of nothing between them.\n\n```html\n<aparte-chat center-empty attachments style=\"height: 24rem\">\n <aparte-chat-viewport></aparte-chat-viewport>\n <aparte-composer>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n </aparte-composer>\n</aparte-chat>\n```",
|
|
26980
|
+
"description": "AparteChat - The Shell\n\nThe container element for a chat. It lays out its Light DOM children as a flex\ncolumn: an `<aparte-chat-viewport>` takes the space left over (`flex: 1 1 auto`)\nand scrolls, an `<aparte-composer>` keeps its own height below it. Light DOM on\npurpose, so the page's own global CSS reaches inside.\n\nThe presence of an `<aparte-chat-viewport>` child at connect is the exact test for\n\"the author composed this\". Find one and the children are used as given — this\nelement moves none of them, so anything else you drop in (a header, a banner above\nthe composer) is simply another row of that column, in DOM order. Find none and\n`innerHTML` is OVERWRITTEN with a default composition — a viewport, an\n`<aparte-elicitation>` presenter, and a composer shell holding an input and a send\nbutton, plus the two attachment primitives when `attachments` is set — so children\nwritten without a viewport anywhere inside them are destroyed, that header included.\nThe test is a DESCENDANT query, so a viewport nested in a wrapper of your own still\ncounts — compose it yourself with the viewport somewhere in the tree, or leave the tag\nempty. Angular's wrapper sets `framework-managed` instead of relying on that test,\nbecause its children do not exist yet when this element upgrades; React, Vue and\nSvelte never create this element at all, so the question does not arise for them.\n\nBeing a component (not a bare `<div>`), it also owns behaviour a wrapper div\ncan't: it watches its own viewport and says whether the conversation is empty —\n`data-empty`, in the attribute list below, is that watcher's output — and with\n`center-empty` the stylesheet keeps the composer centered as a welcome state until\nthe first `<aparte-chat-bubble>` lands, then slides to the normal layout, with no\nexternal JavaScript. The watcher needs a viewport somewhere inside: hand-written\nmarkup always has one, because composing the default injects it, and Angular's\n`framework-managed` host gets its watcher once the template has rendered the\nviewport. The stylesheet centers through\n`aparte-chat[center-empty][data-empty]` and its DIRECT viewport child, so a\nframework-managed host that nests the viewport inside a container of its own gets\nnothing from the attribute — the wrappers ship their own centered layout.\n\nIt is also one of the anchors where core re-declares its derived CSS layer, so\noverriding a master — `--aparte-primary`, a surface, a text colour — on a single\n`<aparte-chat>` re-derives the values computed from it for that instance rather\nthan moving one button. That is per-instance theming. The literal palette is\ndeliberately not re-declared here, so a chat nested in a dark wrapper stays dark.\n\nPresentational only: it does NOT wire a transport/client. Attach an\n`AparteClient`, or handle `aparte-send` yourself, as with the primitives.\nSize the element via CSS (a height, or let it fill a sized parent).\n\nEvery event listed below reaches a listener on this element: the composer's, the\ntranscript's and each message's bubble up from the parts, and the turn's lifecycle comes\nfrom the host that drives the chat (an `AparteClient`, or the framework host a wrapper\nruns). The page-wide ones go out on `window` instead — `aparte-abort`, `aparte-compact`,\n`aparte-config-change` — and a listener here never hears them.\n\nComposing it yourself is the other form, and the container still lays it out and still\nruns `center-empty`. It is written out here rather than as a second `@example` for a\nmechanical reason: every element-own example is concatenated into ONE live frame on the\ngenerated reference page, so a second `<aparte-chat>` there rendered as a second whole\nchat — two empty composers with 600px of nothing between them.\n\n```html\n<aparte-chat center-empty attachments style=\"height: 24rem\">\n <aparte-chat-viewport></aparte-chat-viewport>\n <aparte-composer>\n <div class=\"aparte-composer-shell\">\n <div class=\"aparte-composer-row\">\n <aparte-composer-input></aparte-composer-input>\n <aparte-composer-send></aparte-composer-send>\n </div>\n </div>\n </aparte-composer>\n</aparte-chat>\n```",
|
|
25656
26981
|
"name": "AparteChat",
|
|
25657
26982
|
"cssProperties": [
|
|
25658
26983
|
{
|
|
@@ -25843,6 +27168,169 @@
|
|
|
25843
27168
|
"description": "Empty means no message AND none on its way. A viewport that says `loading` holds\nno bubble yet but does not count as empty, so the welcome and the centred composer\nstay hidden while a conversation is being fetched."
|
|
25844
27169
|
}
|
|
25845
27170
|
],
|
|
27171
|
+
"events": [
|
|
27172
|
+
{
|
|
27173
|
+
"type": {
|
|
27174
|
+
"text": "CustomEvent<AparteSendEventDetail>"
|
|
27175
|
+
},
|
|
27176
|
+
"description": "A message was sent from the composer: its text, its attachments and the chat it is for. An `AparteClient` answers it; with none, your loop starts here. In a framework wrapper's chat the message is already in the thread when this fires: do not append it again.",
|
|
27177
|
+
"name": "aparte-send"
|
|
27178
|
+
},
|
|
27179
|
+
{
|
|
27180
|
+
"type": {
|
|
27181
|
+
"text": "CustomEvent"
|
|
27182
|
+
},
|
|
27183
|
+
"description": "Stop was pressed in the composer. No detail; the turn it stops ends with `aparte-message-aborted`.",
|
|
27184
|
+
"name": "aparte-cancel"
|
|
27185
|
+
},
|
|
27186
|
+
{
|
|
27187
|
+
"type": {
|
|
27188
|
+
"text": "CustomEvent<AparteComposerChangeEventDetail>"
|
|
27189
|
+
},
|
|
27190
|
+
"description": "The composer's state changed — its value, streaming, disabled, attachments or panel — folded into one event that carries all of it.",
|
|
27191
|
+
"name": "aparte-composer-change"
|
|
27192
|
+
},
|
|
27193
|
+
{
|
|
27194
|
+
"type": {
|
|
27195
|
+
"text": "CustomEvent<AparteActionClickEventDetail>"
|
|
27196
|
+
},
|
|
27197
|
+
"description": "A button your app placed in the composer (`<aparte-composer-action>`) was clicked; `detail.actionId` says which.",
|
|
27198
|
+
"name": "aparte-action-click"
|
|
27199
|
+
},
|
|
27200
|
+
{
|
|
27201
|
+
"type": {
|
|
27202
|
+
"text": "CustomEvent<AparteAttachmentPreviewEventDetail>"
|
|
27203
|
+
},
|
|
27204
|
+
"description": "An attachment was clicked — in a message, or in the composer's strip before sending — asking the app to open it. Sent only once `setHostHandlers` declared `attachmentPreview` (or `filePreview`, for a sent file).",
|
|
27205
|
+
"name": "aparte-attachment-preview"
|
|
27206
|
+
},
|
|
27207
|
+
{
|
|
27208
|
+
"type": {
|
|
27209
|
+
"text": "CustomEvent<AparteMessageStartEventDetail>"
|
|
27210
|
+
},
|
|
27211
|
+
"description": "A reply began, before its first token.",
|
|
27212
|
+
"name": "aparte-message-start"
|
|
27213
|
+
},
|
|
27214
|
+
{
|
|
27215
|
+
"type": {
|
|
27216
|
+
"text": "CustomEvent<AparteSegmentUpdateEventDetail>"
|
|
27217
|
+
},
|
|
27218
|
+
"description": "A segment of the reply grew or settled while it streamed.",
|
|
27219
|
+
"name": "aparte-segment-update"
|
|
27220
|
+
},
|
|
27221
|
+
{
|
|
27222
|
+
"type": {
|
|
27223
|
+
"text": "CustomEvent<AparteMessageDoneEventDetail>"
|
|
27224
|
+
},
|
|
27225
|
+
"description": "The reply finished: its token usage, and why the model stopped when the provider said (`finishReason: 'length'` is a reply cut off).",
|
|
27226
|
+
"name": "aparte-message-done"
|
|
27227
|
+
},
|
|
27228
|
+
{
|
|
27229
|
+
"type": {
|
|
27230
|
+
"text": "CustomEvent<AparteMessageErrorEventDetail>"
|
|
27231
|
+
},
|
|
27232
|
+
"description": "The turn failed; `detail.error` is the failure, with its `code`. The event to bind to show it.",
|
|
27233
|
+
"name": "aparte-message-error"
|
|
27234
|
+
},
|
|
27235
|
+
{
|
|
27236
|
+
"type": {
|
|
27237
|
+
"text": "CustomEvent<AparteMessageAbortedEventDetail>"
|
|
27238
|
+
},
|
|
27239
|
+
"description": "The turn ended early: Stop was pressed, or `abort()` was called.",
|
|
27240
|
+
"name": "aparte-message-aborted"
|
|
27241
|
+
},
|
|
27242
|
+
{
|
|
27243
|
+
"type": {
|
|
27244
|
+
"text": "CustomEvent<AparteMessagePausedEventDetail>"
|
|
27245
|
+
},
|
|
27246
|
+
"description": "A server loop paused the turn on calls only the page can answer — an approval, a browser tool. Not the end: the reply is worth saving now, and `aparte-message-resumed` follows the answer.",
|
|
27247
|
+
"name": "aparte-message-paused"
|
|
27248
|
+
},
|
|
27249
|
+
{
|
|
27250
|
+
"type": {
|
|
27251
|
+
"text": "CustomEvent<AparteMessageResumedEventDetail>"
|
|
27252
|
+
},
|
|
27253
|
+
"description": "A paused turn goes on, into the same reply, once the page answered its calls.",
|
|
27254
|
+
"name": "aparte-message-resumed"
|
|
27255
|
+
},
|
|
27256
|
+
{
|
|
27257
|
+
"type": {
|
|
27258
|
+
"text": "CustomEvent<AparteToolApprovalRequestDetail>"
|
|
27259
|
+
},
|
|
27260
|
+
"description": "A tool marked `needsApproval` is about to run and waits for a decision. Core's own gate asks in the composer; listen to present the decision yourself.",
|
|
27261
|
+
"name": "aparte-tool-approval-request"
|
|
27262
|
+
},
|
|
27263
|
+
{
|
|
27264
|
+
"type": {
|
|
27265
|
+
"text": "CustomEvent<AparteConversationLoadedDetail>"
|
|
27266
|
+
},
|
|
27267
|
+
"description": "A conversation's messages are on screen, after a load that succeeded and that nobody left meanwhile: the moment to scroll or to measure.",
|
|
27268
|
+
"name": "aparte-conversation-loaded"
|
|
27269
|
+
},
|
|
27270
|
+
{
|
|
27271
|
+
"type": {
|
|
27272
|
+
"text": "CustomEvent<ApartePathChangedEventDetail>"
|
|
27273
|
+
},
|
|
27274
|
+
"description": "The active branch changed — after a retry, an edit or a move in the `‹1/2›` picker — carrying the messages now on the path.",
|
|
27275
|
+
"name": "aparte-path-changed"
|
|
27276
|
+
},
|
|
27277
|
+
{
|
|
27278
|
+
"type": {
|
|
27279
|
+
"text": "CustomEvent"
|
|
27280
|
+
},
|
|
27281
|
+
"description": "The transcript was emptied (`clearAll()` finished). No detail.",
|
|
27282
|
+
"name": "aparte-reset-done"
|
|
27283
|
+
},
|
|
27284
|
+
{
|
|
27285
|
+
"type": {
|
|
27286
|
+
"text": "CustomEvent<AparteActionEventDetail>"
|
|
27287
|
+
},
|
|
27288
|
+
"description": "A custom button of a message's action bar, one `registerAction()` placed there, was pressed; `detail.actionId` says which.",
|
|
27289
|
+
"name": "aparte-action"
|
|
27290
|
+
},
|
|
27291
|
+
{
|
|
27292
|
+
"type": {
|
|
27293
|
+
"text": "CustomEvent<AparteRetryEventDetail>"
|
|
27294
|
+
},
|
|
27295
|
+
"description": "Retry was pressed on a reply; the host forks the turn.",
|
|
27296
|
+
"name": "aparte-retry"
|
|
27297
|
+
},
|
|
27298
|
+
{
|
|
27299
|
+
"type": {
|
|
27300
|
+
"text": "CustomEvent<AparteEditEventDetail>"
|
|
27301
|
+
},
|
|
27302
|
+
"description": "An edit of a message was saved; the host answers it again from there.",
|
|
27303
|
+
"name": "aparte-edit"
|
|
27304
|
+
},
|
|
27305
|
+
{
|
|
27306
|
+
"type": {
|
|
27307
|
+
"text": "CustomEvent<AparteFeedbackEventDetail>"
|
|
27308
|
+
},
|
|
27309
|
+
"description": "Thumbs up or down on a reply.",
|
|
27310
|
+
"name": "aparte-feedback"
|
|
27311
|
+
},
|
|
27312
|
+
{
|
|
27313
|
+
"type": {
|
|
27314
|
+
"text": "CustomEvent<AparteFeedbackReasonEventDetail>"
|
|
27315
|
+
},
|
|
27316
|
+
"description": "The reason picked after a thumbs-down.",
|
|
27317
|
+
"name": "aparte-feedback-reason"
|
|
27318
|
+
},
|
|
27319
|
+
{
|
|
27320
|
+
"type": {
|
|
27321
|
+
"text": "CustomEvent<AparteMessageInfoEventDetail>"
|
|
27322
|
+
},
|
|
27323
|
+
"description": "The info button of a reply was pressed; `detail.usage` carries its token usage when known.",
|
|
27324
|
+
"name": "aparte-message-info"
|
|
27325
|
+
},
|
|
27326
|
+
{
|
|
27327
|
+
"type": {
|
|
27328
|
+
"text": "CustomEvent<AparteLinkClickEventDetail>"
|
|
27329
|
+
},
|
|
27330
|
+
"description": "A link the model wrote is about to be followed. Cancelable: `preventDefault()` keeps the browser from navigating, so the app can route the link itself.",
|
|
27331
|
+
"name": "aparte-link-click"
|
|
27332
|
+
}
|
|
27333
|
+
],
|
|
25846
27334
|
"attributes": [
|
|
25847
27335
|
{
|
|
25848
27336
|
"name": "placeholder",
|
|
@@ -25879,6 +27367,13 @@
|
|
|
25879
27367
|
},
|
|
25880
27368
|
"description": "Forwarded to the composer: a key typed while no field has the caret returns to the input. `chat` (the default): only after a click or a selection in the chat. `page`: from anywhere in the page. `off`: never. The four wrappers expose it as `typeToFocus`."
|
|
25881
27369
|
},
|
|
27370
|
+
{
|
|
27371
|
+
"type": {
|
|
27372
|
+
"text": "boolean"
|
|
27373
|
+
},
|
|
27374
|
+
"description": "Reflected BY the element once it is connected: the marker the React, Vue and Svelte wrappers put on the `<div>` they render in its place, and Angular's component on its host. `[data-aparte-chat]` finds the chat whatever the framework, which is the root a test starts from. Every rule core ships for `[data-aparte-chat]` names `aparte-chat` too, so the attribute restyles nothing. Read-only.",
|
|
27375
|
+
"name": "data-aparte-chat"
|
|
27376
|
+
},
|
|
25882
27377
|
{
|
|
25883
27378
|
"type": {
|
|
25884
27379
|
"text": "boolean"
|
|
@@ -26151,11 +27646,11 @@
|
|
|
26151
27646
|
],
|
|
26152
27647
|
"events": [
|
|
26153
27648
|
{
|
|
26154
|
-
"name": "aparte-action-click",
|
|
26155
27649
|
"type": {
|
|
26156
27650
|
"text": "CustomEvent<AparteActionClickEventDetail>"
|
|
26157
27651
|
},
|
|
26158
|
-
"description": "Bubbles up when the button is clicked, carrying which button it was and the composer it belongs to. The type argument is not decoration: a BARE `@fires` records `CustomEvent` with no argument, and the bindings generator then emits `EventEmitter<void>` with a listener that drops `$event` — so an Angular consumer with two custom buttons could not tell which one fired. detail: { actionId: string, composer: AparteComposer | null }"
|
|
27652
|
+
"description": "Bubbles up when the button is clicked, carrying which button it was and the composer it belongs to. The type argument is not decoration: a BARE `@fires` records `CustomEvent` with no argument, and the bindings generator then emits `EventEmitter<void>` with a listener that drops `$event` — so an Angular consumer with two custom buttons could not tell which one fired. detail: { actionId: string, composer: AparteComposer | null }",
|
|
27653
|
+
"name": "aparte-action-click"
|
|
26159
27654
|
}
|
|
26160
27655
|
],
|
|
26161
27656
|
"attributes": [
|
|
@@ -26598,11 +28093,11 @@
|
|
|
26598
28093
|
],
|
|
26599
28094
|
"events": [
|
|
26600
28095
|
{
|
|
26601
|
-
"name": "aparte-attachment-preview",
|
|
26602
28096
|
"type": {
|
|
26603
28097
|
"text": "CustomEvent<AparteAttachmentPreviewEventDetail>"
|
|
26604
28098
|
},
|
|
26605
|
-
"description": "An attached image was clicked; the app opens it full-size, and only if it declared `attachmentPreview`."
|
|
28099
|
+
"description": "An attached image was clicked; the app opens it full-size, and only if it declared `attachmentPreview`.",
|
|
28100
|
+
"name": "aparte-attachment-preview"
|
|
26606
28101
|
}
|
|
26607
28102
|
],
|
|
26608
28103
|
"superclass": {
|
|
@@ -27384,7 +28879,7 @@
|
|
|
27384
28879
|
"type": {
|
|
27385
28880
|
"text": "string"
|
|
27386
28881
|
},
|
|
27387
|
-
"description": "Placeholder text (fallback: reads from aparte-composer)"
|
|
28882
|
+
"description": "Placeholder text (fallback: reads from aparte-composer). It is also the field's accessible name: the field is a `role=\"textbox\"` whose `aria-label` is this text, and it has no `placeholder` attribute, so a test finds it with `getByRole('textbox', { name })`, not `getByPlaceholder`."
|
|
27388
28883
|
},
|
|
27389
28884
|
{
|
|
27390
28885
|
"name": "max-height",
|
|
@@ -27597,6 +29092,25 @@
|
|
|
27597
29092
|
}
|
|
27598
29093
|
]
|
|
27599
29094
|
},
|
|
29095
|
+
{
|
|
29096
|
+
"kind": "method",
|
|
29097
|
+
"name": "_setAct",
|
|
29098
|
+
"privacy": "private",
|
|
29099
|
+
"return": {
|
|
29100
|
+
"type": {
|
|
29101
|
+
"text": "void"
|
|
29102
|
+
}
|
|
29103
|
+
},
|
|
29104
|
+
"parameters": [
|
|
29105
|
+
{
|
|
29106
|
+
"name": "act",
|
|
29107
|
+
"type": {
|
|
29108
|
+
"text": "'send' | 'stop' | 'submit'"
|
|
29109
|
+
}
|
|
29110
|
+
}
|
|
29111
|
+
],
|
|
29112
|
+
"description": "What a press does now, said on the button (where the stylesheet reads it) and on this\nelement (where a test does: it asks for the act, then presses the button inside).\nOne writer, so the two can never say different things."
|
|
29113
|
+
},
|
|
27600
29114
|
{
|
|
27601
29115
|
"kind": "method",
|
|
27602
29116
|
"name": "_syncState",
|
|
@@ -27657,6 +29171,15 @@
|
|
|
27657
29171
|
}
|
|
27658
29172
|
}
|
|
27659
29173
|
],
|
|
29174
|
+
"attributes": [
|
|
29175
|
+
{
|
|
29176
|
+
"type": {
|
|
29177
|
+
"text": "string"
|
|
29178
|
+
},
|
|
29179
|
+
"description": "Reflected BY the element, from the button inside it: what a press does now. `send` at rest, `stop` while a reply streams, `submit` while a panel asks a question. A test reads it here and presses the `button` inside: `aparte-composer-send[data-act=\"stop\"] button`. Read-only.",
|
|
29180
|
+
"name": "data-act"
|
|
29181
|
+
}
|
|
29182
|
+
],
|
|
27660
29183
|
"superclass": {
|
|
27661
29184
|
"name": "HTMLElement"
|
|
27662
29185
|
},
|
|
@@ -28447,13 +29970,6 @@
|
|
|
28447
29970
|
},
|
|
28448
29971
|
"description": "The stop button was pressed. No detail; the two window events below carry the target."
|
|
28449
29972
|
},
|
|
28450
|
-
{
|
|
28451
|
-
"name": "aparte-composer-change",
|
|
28452
|
-
"type": {
|
|
28453
|
-
"text": "CustomEvent<AparteComposerChangeEventDetail>"
|
|
28454
|
-
},
|
|
28455
|
-
"description": "Any of value / streaming / disabled / attachments / panel changed, folded into one event."
|
|
28456
|
-
},
|
|
28457
29973
|
{
|
|
28458
29974
|
"type": {
|
|
28459
29975
|
"text": "CustomEvent<AparteAbortEventDetail>"
|
|
@@ -28467,6 +29983,13 @@
|
|
|
28467
29983
|
},
|
|
28468
29984
|
"description": "The run for this target ended early — the user pressed Stop, or `abort()` was called. This element dispatches it on `window`; `AparteClient` also dispatches it on the chat host, so it is listenable on either.",
|
|
28469
29985
|
"name": "aparte-message-aborted"
|
|
29986
|
+
},
|
|
29987
|
+
{
|
|
29988
|
+
"type": {
|
|
29989
|
+
"text": "CustomEvent<AparteComposerChangeEventDetail>"
|
|
29990
|
+
},
|
|
29991
|
+
"description": "Any of value / streaming / disabled / attachments / panel changed, folded into one event.",
|
|
29992
|
+
"name": "aparte-composer-change"
|
|
28470
29993
|
}
|
|
28471
29994
|
],
|
|
28472
29995
|
"attributes": [
|
|
@@ -29781,11 +31304,70 @@
|
|
|
29781
31304
|
{
|
|
29782
31305
|
"kind": "field",
|
|
29783
31306
|
"name": "conversations",
|
|
29784
|
-
"description": "Set the list of conversations to display. Triggers a re-render.",
|
|
31307
|
+
"description": "Set the list of conversations to display. Triggers a re-render — held while a row's menu is\nopen or a title is being renamed, and run when that ends.\n\nA host assigns this on every manager change, and a wrapper on every render of the app around\nit, often the very array the list holds (mutated in place, so it is drawn again rather than\nskipped). A render replaces the rows, and with them the open menu and the field being typed\nin: those are the reader's, so the rows wait for them, as they wait for a press to land.",
|
|
29785
31308
|
"type": {
|
|
29786
31309
|
"text": "AparteConversationListItem[]"
|
|
29787
31310
|
}
|
|
29788
31311
|
},
|
|
31312
|
+
{
|
|
31313
|
+
"kind": "field",
|
|
31314
|
+
"name": "_renderAfterMenu",
|
|
31315
|
+
"type": {
|
|
31316
|
+
"text": "boolean"
|
|
31317
|
+
},
|
|
31318
|
+
"privacy": "private",
|
|
31319
|
+
"default": "false",
|
|
31320
|
+
"description": "A render held by an open menu or a rename (see `conversations`): run once it is over."
|
|
31321
|
+
},
|
|
31322
|
+
{
|
|
31323
|
+
"kind": "method",
|
|
31324
|
+
"name": "_renderUnlessHeld",
|
|
31325
|
+
"privacy": "private",
|
|
31326
|
+
"return": {
|
|
31327
|
+
"type": {
|
|
31328
|
+
"text": "void"
|
|
31329
|
+
}
|
|
31330
|
+
},
|
|
31331
|
+
"description": "The one way a render asked from outside runs: held while a row menu is open or a title is\nbeing renamed, drawn once that ends. A press's deferred render goes through it too, so a\nrename started by the click that closed a menu is not wiped by the render that menu held."
|
|
31332
|
+
},
|
|
31333
|
+
{
|
|
31334
|
+
"kind": "method",
|
|
31335
|
+
"name": "_renderHeld",
|
|
31336
|
+
"privacy": "private",
|
|
31337
|
+
"return": {
|
|
31338
|
+
"type": {
|
|
31339
|
+
"text": "void"
|
|
31340
|
+
}
|
|
31341
|
+
}
|
|
31342
|
+
},
|
|
31343
|
+
{
|
|
31344
|
+
"kind": "field",
|
|
31345
|
+
"name": "_renderMeta",
|
|
31346
|
+
"type": {
|
|
31347
|
+
"text": "AparteConversationMetaRenderer | null"
|
|
31348
|
+
},
|
|
31349
|
+
"privacy": "private",
|
|
31350
|
+
"default": "null"
|
|
31351
|
+
},
|
|
31352
|
+
{
|
|
31353
|
+
"kind": "field",
|
|
31354
|
+
"name": "renderMeta",
|
|
31355
|
+
"description": "Draws something of the app's after a row's title — a shared mark, a count, a status\npill — and returns `null` for a row with nothing to say. An element goes in as it is;\na string is text, never markup. It sits BESIDE the title button, not inside it, so it\nmay hold a button or a link of its own, with its own accessible name. Setting it draws\nthe rows again, held like `conversations` while a menu is open or a title is being\nrenamed; the same function handed again draws nothing. It is read on every render after that.",
|
|
31356
|
+
"type": {
|
|
31357
|
+
"text": "AparteConversationMetaRenderer | null"
|
|
31358
|
+
}
|
|
31359
|
+
},
|
|
31360
|
+
{
|
|
31361
|
+
"kind": "method",
|
|
31362
|
+
"name": "_applyMeta",
|
|
31363
|
+
"privacy": "private",
|
|
31364
|
+
"return": {
|
|
31365
|
+
"type": {
|
|
31366
|
+
"text": "void"
|
|
31367
|
+
}
|
|
31368
|
+
},
|
|
31369
|
+
"description": "Puts what `renderMeta` returns after each row's title. Rows are strings, so this runs on the built DOM."
|
|
31370
|
+
},
|
|
29789
31371
|
{
|
|
29790
31372
|
"kind": "field",
|
|
29791
31373
|
"name": "_pressed",
|
|
@@ -30383,6 +31965,14 @@
|
|
|
30383
31965
|
"module": "./aparte-conversation-list.js"
|
|
30384
31966
|
}
|
|
30385
31967
|
},
|
|
31968
|
+
{
|
|
31969
|
+
"kind": "js",
|
|
31970
|
+
"name": "AparteConversationMetaRenderer",
|
|
31971
|
+
"declaration": {
|
|
31972
|
+
"name": "AparteConversationMetaRenderer",
|
|
31973
|
+
"module": "./aparte-conversation-list.js"
|
|
31974
|
+
}
|
|
31975
|
+
},
|
|
30386
31976
|
{
|
|
30387
31977
|
"kind": "js",
|
|
30388
31978
|
"name": "AparteConversationSelectDetail",
|
|
@@ -32446,7 +34036,7 @@
|
|
|
32446
34036
|
"declarations": [
|
|
32447
34037
|
{
|
|
32448
34038
|
"kind": "class",
|
|
32449
|
-
"description": "The column beside the chat — conversations, a new-chat button, a search field, an\naccount row — as an element, because it has behaviour: it collapses, it becomes a\ndrawer on a narrow window, and its search field filters the conversation list.\n\nWhat it does NOT own is its content. Children are yours, in the order you want them:\na `.aparte-sidebar__header`, a `.aparte-sidebar__search`, a `.aparte-sidebar__body`\nholding the `<aparte-conversation-list>`, a `.aparte-sidebar__footer`. The\nstylesheet lays those out and draws nothing you did not put there — the recipe\n(`.aparte-sidebar`, in `styles/shell/sidebar.css`) is the look, this element is\nthe three behaviours.\n\n**Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read\nit and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on\nthe page toggles its sidebar: the one it is in, else the one of the `.aparte-app-shell`\nit is in, else the first of the page (or the one whose id the attribute names). So\na hamburger in the header needs no script — and the sidebar keeps `aria-expanded`\nand `aria-controls` on that control in step, whoever changed the state (it gives\nitself an id when the host wrote none). `aparte-sidebar-toggle` fires on every\nchange, whoever caused it.\n\n**Drawer.** Under 48rem of window the sidebar leaves the flow and slides over the\npage (`data-drawer`, set by the element from a media query); open, it draws a\nscrim, moves the focus to its first focusable child, closes on Escape from anywhere\non the page or on a click outside, and hands the focus back to the control that\nopened it. Nothing here is a portal: the drawer is the same element in the same\nplace, positioned fixed, which is all a sidebar needs and what a dialog would not\nget away with. Collapsed — folded as a column or slid off as a drawer — it carries\n`inert` and `aria-hidden`, so nothing invisible keeps a tab stop.\n\n**In the floating chat.** Inside `<aparte-launcher>` the chat is a card a few hundred pixels\nwide in the widest window, so a sidebar that is the direct child of the card's\n`.aparte-app-shell` follows the chat and not the window: a drawer in the card, held by the\nshell, whose scrim covers the card and not the page; a column again once the chat fills the\nwindow (maximized, unless `maximizable=\"panel\"`, which is still narrow); and closed when the\nchat closes. `breakpoint=\"none\"` keeps it a column there too. Anywhere else in a card it\nfollows the window, as it does on a page.\n\n**Search.** An input carrying `data-aparte-sidebar-search` filters the conversation\nlist below it by title as the user types — rows that do not match are hidden, and a\ndate group with nothing left hides with them. Client-side, on the titles the list\nalready has: an index over message bodies is the storage adapter's business.",
|
|
34039
|
+
"description": "The column beside the chat — conversations, a new-chat button, a search field, an\naccount row — as an element, because it has behaviour: it collapses, it becomes a\ndrawer on a narrow window, and its search field filters the conversation list.\n\nWhat it does NOT own is its content. Children are yours, in the order you want them:\na `.aparte-sidebar__header`, a `.aparte-sidebar__search`, a `.aparte-sidebar__body`\nholding the `<aparte-conversation-list>`, a `.aparte-sidebar__footer`. The\nstylesheet lays those out and draws nothing you did not put there — the recipe\n(`.aparte-sidebar`, in `styles/shell/sidebar.css`) is the look, this element is\nthe three behaviours.\n\n**Collapse.** `collapsed` is an attribute, reflected, so the host can set it, read\nit and persist it. Any element carrying `data-aparte-sidebar-toggle` anywhere on\nthe page toggles its sidebar: the one it is in, else the one of the `.aparte-app-shell`\nit is in, else the first of the page (or the one whose id the attribute names). So\na hamburger in the header needs no script — and the sidebar keeps `aria-expanded`\nand `aria-controls` on that control in step, whoever changed the state (it gives\nitself an id when the host wrote none). `aparte-sidebar-toggle` fires on every\nchange, whoever caused it.\n\n**Drawer.** Under 48rem of window the sidebar leaves the flow and slides over the\npage (`data-drawer`, set by the element from a media query); open, it draws a\nscrim, moves the focus to its first focusable child, closes on Escape from anywhere\non the page or on a click outside, and hands the focus back to the control that\nopened it. Nothing here is a portal: the drawer is the same element in the same\nplace, positioned fixed, which is all a sidebar needs and what a dialog would not\nget away with. Collapsed — folded as a column or slid off as a drawer — it carries\n`inert` and `aria-hidden`, so nothing invisible keeps a tab stop.\n\n**Rail.** `collapsed=\"rail\"` folds the column to `--aparte-sidebar-rail-width` and keeps it\nin the flow: the children marked `data-rail` stay (icon buttons, an avatar), the rest and the\n`.aparte-sidebar__label` texts hide, and it takes no `inert`. `collapsed` is still true, so a\ntoggle reads it as folded; the app swaps `collapsed` for `rail` itself, which is its call.\n\n**In the floating chat.** Inside `<aparte-launcher>` the chat is a card a few hundred pixels\nwide in the widest window, so a sidebar that is the direct child of the card's\n`.aparte-app-shell` follows the chat and not the window: a drawer in the card, held by the\nshell, whose scrim covers the card and not the page; a column again once the chat fills the\nwindow (maximized, unless `maximizable=\"panel\"`, which is still narrow); and closed when the\nchat closes. `breakpoint=\"none\"` keeps it a column there too. Anywhere else in a card it\nfollows the window, as it does on a page.\n\n**Search.** An input carrying `data-aparte-sidebar-search` filters the conversation\nlist below it by title as the user types — rows that do not match are hidden, and a\ndate group with nothing left hides with them. Client-side, on the titles the list\nalready has: an index over message bodies is the storage adapter's business.",
|
|
32450
34040
|
"name": "AparteSidebar",
|
|
32451
34041
|
"cssProperties": [
|
|
32452
34042
|
{
|
|
@@ -32454,6 +34044,11 @@
|
|
|
32454
34044
|
"name": "--aparte-sidebar-width",
|
|
32455
34045
|
"default": "260px"
|
|
32456
34046
|
},
|
|
34047
|
+
{
|
|
34048
|
+
"description": "Width of the column folded to a rail (`collapsed=\"rail\"`).",
|
|
34049
|
+
"name": "--aparte-sidebar-rail-width",
|
|
34050
|
+
"default": "56px"
|
|
34051
|
+
},
|
|
32457
34052
|
{
|
|
32458
34053
|
"description": "The inline inset of the four regions (header, search, body, footer): one value, so their content stands on one axis.",
|
|
32459
34054
|
"name": "--aparte-sidebar-inset",
|
|
@@ -32503,6 +34098,15 @@
|
|
|
32503
34098
|
"privacy": "private",
|
|
32504
34099
|
"default": "null"
|
|
32505
34100
|
},
|
|
34101
|
+
{
|
|
34102
|
+
"kind": "field",
|
|
34103
|
+
"name": "_lastRail",
|
|
34104
|
+
"type": {
|
|
34105
|
+
"text": "boolean"
|
|
34106
|
+
},
|
|
34107
|
+
"privacy": "private",
|
|
34108
|
+
"default": "false"
|
|
34109
|
+
},
|
|
32506
34110
|
{
|
|
32507
34111
|
"kind": "field",
|
|
32508
34112
|
"name": "_ready",
|
|
@@ -32600,6 +34204,17 @@
|
|
|
32600
34204
|
},
|
|
32601
34205
|
"description": "Whether the sidebar is collapsed (hidden in the flow, or closed as a drawer)."
|
|
32602
34206
|
},
|
|
34207
|
+
{
|
|
34208
|
+
"kind": "method",
|
|
34209
|
+
"name": "_rail",
|
|
34210
|
+
"privacy": "private",
|
|
34211
|
+
"return": {
|
|
34212
|
+
"type": {
|
|
34213
|
+
"text": "boolean"
|
|
34214
|
+
}
|
|
34215
|
+
},
|
|
34216
|
+
"description": "A rail is a column folded to `--aparte-sidebar-rail-width` that stays in the flow and\nstays usable (`collapsed=\"rail\"`). Only in the flow: a drawer is open or closed, and a\nclosed one is off-screen whatever its attribute says."
|
|
34217
|
+
},
|
|
32603
34218
|
{
|
|
32604
34219
|
"kind": "field",
|
|
32605
34220
|
"name": "drawer",
|
|
@@ -32880,9 +34495,9 @@
|
|
|
32880
34495
|
{
|
|
32881
34496
|
"name": "collapsed",
|
|
32882
34497
|
"type": {
|
|
32883
|
-
"text": "boolean"
|
|
34498
|
+
"text": "boolean|\"rail\""
|
|
32884
34499
|
},
|
|
32885
|
-
"description": "Hidden (in the flow) or closed (as a drawer). Reflected; set it to start closed."
|
|
34500
|
+
"description": "Hidden (in the flow) or closed (as a drawer). `collapsed=\"rail\"` folds the column to a narrow rail that stays usable instead of to nothing. Reflected; set it to start closed."
|
|
32886
34501
|
},
|
|
32887
34502
|
{
|
|
32888
34503
|
"name": "breakpoint",
|
|
@@ -32951,6 +34566,250 @@
|
|
|
32951
34566
|
}
|
|
32952
34567
|
]
|
|
32953
34568
|
},
|
|
34569
|
+
{
|
|
34570
|
+
"kind": "javascript-module",
|
|
34571
|
+
"path": "src/components/status/aparte-chat-status.ts",
|
|
34572
|
+
"declarations": [
|
|
34573
|
+
{
|
|
34574
|
+
"kind": "class",
|
|
34575
|
+
"description": "A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns\nit on: the framework host only ever flips it back OFF (on the first streamed token),\nand the four wrappers render one inside the viewport driven by their own `isTyping`\nprop.\n\nIt dispatches nothing, deliberately: it reports, it does not ask.\n\nUse it for a state only the app knows about — \"Searching the docs…\", \"Uploading…\",\na queue position. It is NOT the indicator for the gap between a send and the first\ntoken: that one is built into the bubble (`.aparte-waiting`, shown while `streaming`\nis set on a non-user bubble that has nothing to display yet). Turning this element on\nfor that gap is how a page ends up showing two indicators for one wait.\n\nIt does not project children: `_render()` writes the subtree — a\n`.aparte-status-container` row holding an empty avatar div and an `.aparte-body` that\nwraps `.aparte-status-content` — so markup authored between the tags does not\nsurvive. That avatar div never gets contents here, and `.aparte-avatar:empty` is\n`display: none`, so it is not a spacer: the line sits flush with the row padding\nrather than indented under an assistant bubble's text column.\n\nThe seam for custom contents is `setStatusRenderer`, scoped or global: the container\nkeeps owning show/hide (`data-visible`), the accessible name (`aria-label`) and its\n`.aparte-message` row metrics whatever the renderer returns, but the pulsing dot and\nthe text node belong to the default path only.\n\nA `text` attribute renders the visible label and feeds the accessible name; with no\n`text` the line is dots-only and the name falls back to the locale's `typing` word\n(\"Typing\" in English). The container is a polite live region, and a live\nregion announces its CONTENT, not its `aria-label`: so the word also goes INTO the\nregion, in the visible span when `text` is set and in a screen-reader-only span when\nit is not. Exactly one of the two is ever populated — both would be read twice. That\nfallback word is driven by `visible`, not written once at render: a live region is\nannounced when its content CHANGES while it is exposed, and every wrapper mounts this\nelement hidden and flips the attribute — so a word written at render time is a word\nthe region already held when it appeared, the reveal-from-`display: none` path, which\nis the one screen readers are documented not to announce reliably.\nHiding happens twice over: the host element is\n`display: none` without `[visible]`, and `data-visible` drives the fade/translate on\nthe container.\n\nThe config is resolved live rather than cached, so a `setStatusRenderer` call that\nlands after this element has already upgraded still reaches it: the element\nre-renders on `aparte-config-change`, filtered to its own config.\n\nThe two borrowed row variables below have one scope caveat: inside a viewport\nnarrower than 520px core REASSIGNS `--aparte-message-padding-block` and\n`--aparte-message-padding-inline` on `.aparte-message` itself, so a declaration on\nthis host element loses to them there.",
|
|
34576
|
+
"name": "AparteChatStatus",
|
|
34577
|
+
"cssProperties": [
|
|
34578
|
+
{
|
|
34579
|
+
"description": "Colour of the label text and of the pulsing dot in the default line.",
|
|
34580
|
+
"name": "--aparte-status-color",
|
|
34581
|
+
"default": "var(--aparte-text-muted)"
|
|
34582
|
+
},
|
|
34583
|
+
{
|
|
34584
|
+
"description": "Size of the visible label (italic by default) in the default line.",
|
|
34585
|
+
"name": "--aparte-status-font-size",
|
|
34586
|
+
"default": "var(--aparte-font-size-md)"
|
|
34587
|
+
},
|
|
34588
|
+
{
|
|
34589
|
+
"description": "Diameter of the single pulsing dot in the default line.",
|
|
34590
|
+
"name": "--aparte-status-dot-size",
|
|
34591
|
+
"default": "6px"
|
|
34592
|
+
},
|
|
34593
|
+
{
|
|
34594
|
+
"description": "Vertical padding of the row, read because the container also carries `.aparte-message` — the status line borrows a bubble's row metrics so it lines up with the transcript.",
|
|
34595
|
+
"name": "--aparte-message-padding-block",
|
|
34596
|
+
"default": "var(--aparte-space-8)"
|
|
34597
|
+
},
|
|
34598
|
+
{
|
|
34599
|
+
"description": "Horizontal padding of the row, same reason.",
|
|
34600
|
+
"name": "--aparte-message-padding-inline",
|
|
34601
|
+
"default": "var(--aparte-space-6)"
|
|
34602
|
+
},
|
|
34603
|
+
{
|
|
34604
|
+
"description": "Width cap of that same row.",
|
|
34605
|
+
"name": "--aparte-message-max-width",
|
|
34606
|
+
"default": "800px"
|
|
34607
|
+
}
|
|
34608
|
+
],
|
|
34609
|
+
"members": [
|
|
34610
|
+
{
|
|
34611
|
+
"kind": "field",
|
|
34612
|
+
"name": "_cfg",
|
|
34613
|
+
"type": {
|
|
34614
|
+
"text": "AparteConfig"
|
|
34615
|
+
},
|
|
34616
|
+
"privacy": "private",
|
|
34617
|
+
"description": "Resolved LIVE, not cached. Caching it at connect made this element\npermanently deaf to its own instance: `_onConfigChange` filters on\n`detail.config !== this._cfg`, so once `_cfg` had latched the global config no\nchange for the real instance ever matched, and the filter meant to isolate\nchats became the thing that silenced one.",
|
|
34618
|
+
"readonly": true
|
|
34619
|
+
},
|
|
34620
|
+
{
|
|
34621
|
+
"kind": "method",
|
|
34622
|
+
"name": "_word",
|
|
34623
|
+
"privacy": "private",
|
|
34624
|
+
"return": {
|
|
34625
|
+
"type": {
|
|
34626
|
+
"text": "string"
|
|
34627
|
+
}
|
|
34628
|
+
},
|
|
34629
|
+
"description": "The word said when no `text` is set: the locale's `typing`, never an English literal."
|
|
34630
|
+
},
|
|
34631
|
+
{
|
|
34632
|
+
"kind": "field",
|
|
34633
|
+
"name": "_onConfigChange",
|
|
34634
|
+
"privacy": "private"
|
|
34635
|
+
},
|
|
34636
|
+
{
|
|
34637
|
+
"kind": "method",
|
|
34638
|
+
"name": "show",
|
|
34639
|
+
"return": {
|
|
34640
|
+
"type": {
|
|
34641
|
+
"text": "void"
|
|
34642
|
+
}
|
|
34643
|
+
},
|
|
34644
|
+
"description": "Show the typing indicator"
|
|
34645
|
+
},
|
|
34646
|
+
{
|
|
34647
|
+
"kind": "method",
|
|
34648
|
+
"name": "hide",
|
|
34649
|
+
"return": {
|
|
34650
|
+
"type": {
|
|
34651
|
+
"text": "void"
|
|
34652
|
+
}
|
|
34653
|
+
},
|
|
34654
|
+
"description": "Hide the typing indicator"
|
|
34655
|
+
},
|
|
34656
|
+
{
|
|
34657
|
+
"kind": "method",
|
|
34658
|
+
"name": "toggle",
|
|
34659
|
+
"return": {
|
|
34660
|
+
"type": {
|
|
34661
|
+
"text": "void"
|
|
34662
|
+
}
|
|
34663
|
+
},
|
|
34664
|
+
"description": "Toggle visibility"
|
|
34665
|
+
},
|
|
34666
|
+
{
|
|
34667
|
+
"kind": "method",
|
|
34668
|
+
"name": "isVisible",
|
|
34669
|
+
"return": {
|
|
34670
|
+
"type": {
|
|
34671
|
+
"text": "boolean"
|
|
34672
|
+
}
|
|
34673
|
+
},
|
|
34674
|
+
"description": "Check if visible"
|
|
34675
|
+
},
|
|
34676
|
+
{
|
|
34677
|
+
"kind": "method",
|
|
34678
|
+
"name": "_render",
|
|
34679
|
+
"privacy": "private",
|
|
34680
|
+
"return": {
|
|
34681
|
+
"type": {
|
|
34682
|
+
"text": "void"
|
|
34683
|
+
}
|
|
34684
|
+
}
|
|
34685
|
+
},
|
|
34686
|
+
{
|
|
34687
|
+
"kind": "method",
|
|
34688
|
+
"name": "_writeText",
|
|
34689
|
+
"privacy": "private",
|
|
34690
|
+
"return": {
|
|
34691
|
+
"type": {
|
|
34692
|
+
"text": "void"
|
|
34693
|
+
}
|
|
34694
|
+
},
|
|
34695
|
+
"parameters": [
|
|
34696
|
+
{
|
|
34697
|
+
"name": "text",
|
|
34698
|
+
"type": {
|
|
34699
|
+
"text": "string | null"
|
|
34700
|
+
}
|
|
34701
|
+
}
|
|
34702
|
+
],
|
|
34703
|
+
"description": "The one writer for both text nodes, so exactly ONE of them is ever populated.\n\nThe container is a polite live region, and a live region announces its CONTENT.\nThe dots-only default had none — an `aria-hidden` dot and an empty span — so the\nwhole state rode on `aria-label`, which names the region rather than reporting it,\nand nothing was announced. The screen-reader span carries the fallback word in that\ncase; when `text` is set the visible span already carries the same string, and\npopulating both would have the region read it twice."
|
|
34704
|
+
},
|
|
34705
|
+
{
|
|
34706
|
+
"kind": "method",
|
|
34707
|
+
"name": "_syncLiveWord",
|
|
34708
|
+
"privacy": "private",
|
|
34709
|
+
"return": {
|
|
34710
|
+
"type": {
|
|
34711
|
+
"text": "void"
|
|
34712
|
+
}
|
|
34713
|
+
},
|
|
34714
|
+
"description": "The fallback word enters and leaves the live region WITH the element's visibility.\n\nWriting it at render time put it in the region while the host was still\n`display: none` — every wrapper mounts `<aparte-chat-status>` once and flips\n`visible` — so by the time the region was exposed its content had not changed, and\non the second and third turn there was not even a reveal to notice: the text was\nbyte-identical to what was already sitting there. Revealing a region that already\nholds its text is the path assistive tech is documented not to announce reliably;\nmutating one that is already exposed is the path that works. So the word is written\nwhen `visible` arrives and cleared when it leaves, which makes every turn a real\nchange.\n\nWith `text` set the visible span is the region's content and the screen-reader span\nstays empty — one copy, read once."
|
|
34715
|
+
},
|
|
34716
|
+
{
|
|
34717
|
+
"kind": "method",
|
|
34718
|
+
"name": "_updateVisibility",
|
|
34719
|
+
"privacy": "private",
|
|
34720
|
+
"return": {
|
|
34721
|
+
"type": {
|
|
34722
|
+
"text": "void"
|
|
34723
|
+
}
|
|
34724
|
+
},
|
|
34725
|
+
"parameters": [
|
|
34726
|
+
{
|
|
34727
|
+
"name": "visible",
|
|
34728
|
+
"type": {
|
|
34729
|
+
"text": "boolean"
|
|
34730
|
+
}
|
|
34731
|
+
}
|
|
34732
|
+
]
|
|
34733
|
+
},
|
|
34734
|
+
{
|
|
34735
|
+
"kind": "method",
|
|
34736
|
+
"name": "_updateText",
|
|
34737
|
+
"privacy": "private",
|
|
34738
|
+
"return": {
|
|
34739
|
+
"type": {
|
|
34740
|
+
"text": "void"
|
|
34741
|
+
}
|
|
34742
|
+
},
|
|
34743
|
+
"parameters": [
|
|
34744
|
+
{
|
|
34745
|
+
"name": "text",
|
|
34746
|
+
"type": {
|
|
34747
|
+
"text": "string | null"
|
|
34748
|
+
}
|
|
34749
|
+
}
|
|
34750
|
+
]
|
|
34751
|
+
}
|
|
34752
|
+
],
|
|
34753
|
+
"attributes": [
|
|
34754
|
+
{
|
|
34755
|
+
"name": "visible",
|
|
34756
|
+
"type": {
|
|
34757
|
+
"text": "boolean"
|
|
34758
|
+
},
|
|
34759
|
+
"description": "Shows or hides the indicator."
|
|
34760
|
+
},
|
|
34761
|
+
{
|
|
34762
|
+
"name": "text",
|
|
34763
|
+
"type": {
|
|
34764
|
+
"text": "string"
|
|
34765
|
+
},
|
|
34766
|
+
"description": "The line to show. Absent, the line is dots-only and the accessible name falls back to the locale's `typing` word (\"Typing\" in English)."
|
|
34767
|
+
}
|
|
34768
|
+
],
|
|
34769
|
+
"superclass": {
|
|
34770
|
+
"name": "HTMLElement"
|
|
34771
|
+
},
|
|
34772
|
+
"tagName": "aparte-chat-status",
|
|
34773
|
+
"customElement": true,
|
|
34774
|
+
"examples": [
|
|
34775
|
+
"<!-- The app owns this indicator: core turns it on for nobody, which is also why it\n is the wrong tool for the wait before the first token — the bubble's built-in\n waiting state already covers that one. -->\n<aparte-chat-status visible text=\"Searching the docs…\"></aparte-chat-status>"
|
|
34776
|
+
]
|
|
34777
|
+
}
|
|
34778
|
+
],
|
|
34779
|
+
"exports": [
|
|
34780
|
+
{
|
|
34781
|
+
"kind": "js",
|
|
34782
|
+
"name": "AparteChatStatus",
|
|
34783
|
+
"declaration": {
|
|
34784
|
+
"name": "AparteChatStatus",
|
|
34785
|
+
"module": "src/components/status/aparte-chat-status.ts"
|
|
34786
|
+
}
|
|
34787
|
+
},
|
|
34788
|
+
{
|
|
34789
|
+
"kind": "custom-element-definition",
|
|
34790
|
+
"name": "aparte-chat-status",
|
|
34791
|
+
"declaration": {
|
|
34792
|
+
"name": "AparteChatStatus",
|
|
34793
|
+
"module": "src/components/status/aparte-chat-status.ts"
|
|
34794
|
+
}
|
|
34795
|
+
}
|
|
34796
|
+
]
|
|
34797
|
+
},
|
|
34798
|
+
{
|
|
34799
|
+
"kind": "javascript-module",
|
|
34800
|
+
"path": "src/components/status/index.ts",
|
|
34801
|
+
"declarations": [],
|
|
34802
|
+
"exports": [
|
|
34803
|
+
{
|
|
34804
|
+
"kind": "js",
|
|
34805
|
+
"name": "AparteChatStatus",
|
|
34806
|
+
"declaration": {
|
|
34807
|
+
"name": "AparteChatStatus",
|
|
34808
|
+
"module": "./aparte-chat-status.js"
|
|
34809
|
+
}
|
|
34810
|
+
}
|
|
34811
|
+
]
|
|
34812
|
+
},
|
|
32954
34813
|
{
|
|
32955
34814
|
"kind": "javascript-module",
|
|
32956
34815
|
"path": "src/components/split/aparte-split.ts",
|
|
@@ -33927,250 +35786,6 @@
|
|
|
33927
35786
|
}
|
|
33928
35787
|
]
|
|
33929
35788
|
},
|
|
33930
|
-
{
|
|
33931
|
-
"kind": "javascript-module",
|
|
33932
|
-
"path": "src/components/status/aparte-chat-status.ts",
|
|
33933
|
-
"declarations": [
|
|
33934
|
-
{
|
|
33935
|
-
"kind": "class",
|
|
33936
|
-
"description": "A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns\nit on: the framework host only ever flips it back OFF (on the first streamed token),\nand the four wrappers render one inside the viewport driven by their own `isTyping`\nprop.\n\nIt dispatches nothing, deliberately: it reports, it does not ask.\n\nUse it for a state only the app knows about — \"Searching the docs…\", \"Uploading…\",\na queue position. It is NOT the indicator for the gap between a send and the first\ntoken: that one is built into the bubble (`.aparte-waiting`, shown while `streaming`\nis set on a non-user bubble that has nothing to display yet). Turning this element on\nfor that gap is how a page ends up showing two indicators for one wait.\n\nIt does not project children: `_render()` writes the subtree — a\n`.aparte-status-container` row holding an empty avatar div and an `.aparte-body` that\nwraps `.aparte-status-content` — so markup authored between the tags does not\nsurvive. That avatar div never gets contents here, and `.aparte-avatar:empty` is\n`display: none`, so it is not a spacer: the line sits flush with the row padding\nrather than indented under an assistant bubble's text column.\n\nThe seam for custom contents is `setStatusRenderer`, scoped or global: the container\nkeeps owning show/hide (`data-visible`), the accessible name (`aria-label`) and its\n`.aparte-message` row metrics whatever the renderer returns, but the pulsing dot and\nthe text node belong to the default path only.\n\nA `text` attribute renders the visible label and feeds the accessible name; with no\n`text` the line is dots-only and the name falls back to the locale's `typing` word\n(\"Typing\" in English). The container is a polite live region, and a live\nregion announces its CONTENT, not its `aria-label`: so the word also goes INTO the\nregion, in the visible span when `text` is set and in a screen-reader-only span when\nit is not. Exactly one of the two is ever populated — both would be read twice. That\nfallback word is driven by `visible`, not written once at render: a live region is\nannounced when its content CHANGES while it is exposed, and every wrapper mounts this\nelement hidden and flips the attribute — so a word written at render time is a word\nthe region already held when it appeared, the reveal-from-`display: none` path, which\nis the one screen readers are documented not to announce reliably.\nHiding happens twice over: the host element is\n`display: none` without `[visible]`, and `data-visible` drives the fade/translate on\nthe container.\n\nThe config is resolved live rather than cached, so a `setStatusRenderer` call that\nlands after this element has already upgraded still reaches it: the element\nre-renders on `aparte-config-change`, filtered to its own config.\n\nThe two borrowed row variables below have one scope caveat: inside a viewport\nnarrower than 520px core REASSIGNS `--aparte-message-padding-block` and\n`--aparte-message-padding-inline` on `.aparte-message` itself, so a declaration on\nthis host element loses to them there.",
|
|
33937
|
-
"name": "AparteChatStatus",
|
|
33938
|
-
"cssProperties": [
|
|
33939
|
-
{
|
|
33940
|
-
"description": "Colour of the label text and of the pulsing dot in the default line.",
|
|
33941
|
-
"name": "--aparte-status-color",
|
|
33942
|
-
"default": "var(--aparte-text-muted)"
|
|
33943
|
-
},
|
|
33944
|
-
{
|
|
33945
|
-
"description": "Size of the visible label (italic by default) in the default line.",
|
|
33946
|
-
"name": "--aparte-status-font-size",
|
|
33947
|
-
"default": "var(--aparte-font-size-md)"
|
|
33948
|
-
},
|
|
33949
|
-
{
|
|
33950
|
-
"description": "Diameter of the single pulsing dot in the default line.",
|
|
33951
|
-
"name": "--aparte-status-dot-size",
|
|
33952
|
-
"default": "6px"
|
|
33953
|
-
},
|
|
33954
|
-
{
|
|
33955
|
-
"description": "Vertical padding of the row, read because the container also carries `.aparte-message` — the status line borrows a bubble's row metrics so it lines up with the transcript.",
|
|
33956
|
-
"name": "--aparte-message-padding-block",
|
|
33957
|
-
"default": "var(--aparte-space-8)"
|
|
33958
|
-
},
|
|
33959
|
-
{
|
|
33960
|
-
"description": "Horizontal padding of the row, same reason.",
|
|
33961
|
-
"name": "--aparte-message-padding-inline",
|
|
33962
|
-
"default": "var(--aparte-space-6)"
|
|
33963
|
-
},
|
|
33964
|
-
{
|
|
33965
|
-
"description": "Width cap of that same row.",
|
|
33966
|
-
"name": "--aparte-message-max-width",
|
|
33967
|
-
"default": "800px"
|
|
33968
|
-
}
|
|
33969
|
-
],
|
|
33970
|
-
"members": [
|
|
33971
|
-
{
|
|
33972
|
-
"kind": "field",
|
|
33973
|
-
"name": "_cfg",
|
|
33974
|
-
"type": {
|
|
33975
|
-
"text": "AparteConfig"
|
|
33976
|
-
},
|
|
33977
|
-
"privacy": "private",
|
|
33978
|
-
"description": "Resolved LIVE, not cached. Caching it at connect made this element\npermanently deaf to its own instance: `_onConfigChange` filters on\n`detail.config !== this._cfg`, so once `_cfg` had latched the global config no\nchange for the real instance ever matched, and the filter meant to isolate\nchats became the thing that silenced one.",
|
|
33979
|
-
"readonly": true
|
|
33980
|
-
},
|
|
33981
|
-
{
|
|
33982
|
-
"kind": "method",
|
|
33983
|
-
"name": "_word",
|
|
33984
|
-
"privacy": "private",
|
|
33985
|
-
"return": {
|
|
33986
|
-
"type": {
|
|
33987
|
-
"text": "string"
|
|
33988
|
-
}
|
|
33989
|
-
},
|
|
33990
|
-
"description": "The word said when no `text` is set: the locale's `typing`, never an English literal."
|
|
33991
|
-
},
|
|
33992
|
-
{
|
|
33993
|
-
"kind": "field",
|
|
33994
|
-
"name": "_onConfigChange",
|
|
33995
|
-
"privacy": "private"
|
|
33996
|
-
},
|
|
33997
|
-
{
|
|
33998
|
-
"kind": "method",
|
|
33999
|
-
"name": "show",
|
|
34000
|
-
"return": {
|
|
34001
|
-
"type": {
|
|
34002
|
-
"text": "void"
|
|
34003
|
-
}
|
|
34004
|
-
},
|
|
34005
|
-
"description": "Show the typing indicator"
|
|
34006
|
-
},
|
|
34007
|
-
{
|
|
34008
|
-
"kind": "method",
|
|
34009
|
-
"name": "hide",
|
|
34010
|
-
"return": {
|
|
34011
|
-
"type": {
|
|
34012
|
-
"text": "void"
|
|
34013
|
-
}
|
|
34014
|
-
},
|
|
34015
|
-
"description": "Hide the typing indicator"
|
|
34016
|
-
},
|
|
34017
|
-
{
|
|
34018
|
-
"kind": "method",
|
|
34019
|
-
"name": "toggle",
|
|
34020
|
-
"return": {
|
|
34021
|
-
"type": {
|
|
34022
|
-
"text": "void"
|
|
34023
|
-
}
|
|
34024
|
-
},
|
|
34025
|
-
"description": "Toggle visibility"
|
|
34026
|
-
},
|
|
34027
|
-
{
|
|
34028
|
-
"kind": "method",
|
|
34029
|
-
"name": "isVisible",
|
|
34030
|
-
"return": {
|
|
34031
|
-
"type": {
|
|
34032
|
-
"text": "boolean"
|
|
34033
|
-
}
|
|
34034
|
-
},
|
|
34035
|
-
"description": "Check if visible"
|
|
34036
|
-
},
|
|
34037
|
-
{
|
|
34038
|
-
"kind": "method",
|
|
34039
|
-
"name": "_render",
|
|
34040
|
-
"privacy": "private",
|
|
34041
|
-
"return": {
|
|
34042
|
-
"type": {
|
|
34043
|
-
"text": "void"
|
|
34044
|
-
}
|
|
34045
|
-
}
|
|
34046
|
-
},
|
|
34047
|
-
{
|
|
34048
|
-
"kind": "method",
|
|
34049
|
-
"name": "_writeText",
|
|
34050
|
-
"privacy": "private",
|
|
34051
|
-
"return": {
|
|
34052
|
-
"type": {
|
|
34053
|
-
"text": "void"
|
|
34054
|
-
}
|
|
34055
|
-
},
|
|
34056
|
-
"parameters": [
|
|
34057
|
-
{
|
|
34058
|
-
"name": "text",
|
|
34059
|
-
"type": {
|
|
34060
|
-
"text": "string | null"
|
|
34061
|
-
}
|
|
34062
|
-
}
|
|
34063
|
-
],
|
|
34064
|
-
"description": "The one writer for both text nodes, so exactly ONE of them is ever populated.\n\nThe container is a polite live region, and a live region announces its CONTENT.\nThe dots-only default had none — an `aria-hidden` dot and an empty span — so the\nwhole state rode on `aria-label`, which names the region rather than reporting it,\nand nothing was announced. The screen-reader span carries the fallback word in that\ncase; when `text` is set the visible span already carries the same string, and\npopulating both would have the region read it twice."
|
|
34065
|
-
},
|
|
34066
|
-
{
|
|
34067
|
-
"kind": "method",
|
|
34068
|
-
"name": "_syncLiveWord",
|
|
34069
|
-
"privacy": "private",
|
|
34070
|
-
"return": {
|
|
34071
|
-
"type": {
|
|
34072
|
-
"text": "void"
|
|
34073
|
-
}
|
|
34074
|
-
},
|
|
34075
|
-
"description": "The fallback word enters and leaves the live region WITH the element's visibility.\n\nWriting it at render time put it in the region while the host was still\n`display: none` — every wrapper mounts `<aparte-chat-status>` once and flips\n`visible` — so by the time the region was exposed its content had not changed, and\non the second and third turn there was not even a reveal to notice: the text was\nbyte-identical to what was already sitting there. Revealing a region that already\nholds its text is the path assistive tech is documented not to announce reliably;\nmutating one that is already exposed is the path that works. So the word is written\nwhen `visible` arrives and cleared when it leaves, which makes every turn a real\nchange.\n\nWith `text` set the visible span is the region's content and the screen-reader span\nstays empty — one copy, read once."
|
|
34076
|
-
},
|
|
34077
|
-
{
|
|
34078
|
-
"kind": "method",
|
|
34079
|
-
"name": "_updateVisibility",
|
|
34080
|
-
"privacy": "private",
|
|
34081
|
-
"return": {
|
|
34082
|
-
"type": {
|
|
34083
|
-
"text": "void"
|
|
34084
|
-
}
|
|
34085
|
-
},
|
|
34086
|
-
"parameters": [
|
|
34087
|
-
{
|
|
34088
|
-
"name": "visible",
|
|
34089
|
-
"type": {
|
|
34090
|
-
"text": "boolean"
|
|
34091
|
-
}
|
|
34092
|
-
}
|
|
34093
|
-
]
|
|
34094
|
-
},
|
|
34095
|
-
{
|
|
34096
|
-
"kind": "method",
|
|
34097
|
-
"name": "_updateText",
|
|
34098
|
-
"privacy": "private",
|
|
34099
|
-
"return": {
|
|
34100
|
-
"type": {
|
|
34101
|
-
"text": "void"
|
|
34102
|
-
}
|
|
34103
|
-
},
|
|
34104
|
-
"parameters": [
|
|
34105
|
-
{
|
|
34106
|
-
"name": "text",
|
|
34107
|
-
"type": {
|
|
34108
|
-
"text": "string | null"
|
|
34109
|
-
}
|
|
34110
|
-
}
|
|
34111
|
-
]
|
|
34112
|
-
}
|
|
34113
|
-
],
|
|
34114
|
-
"attributes": [
|
|
34115
|
-
{
|
|
34116
|
-
"name": "visible",
|
|
34117
|
-
"type": {
|
|
34118
|
-
"text": "boolean"
|
|
34119
|
-
},
|
|
34120
|
-
"description": "Shows or hides the indicator."
|
|
34121
|
-
},
|
|
34122
|
-
{
|
|
34123
|
-
"name": "text",
|
|
34124
|
-
"type": {
|
|
34125
|
-
"text": "string"
|
|
34126
|
-
},
|
|
34127
|
-
"description": "The line to show. Absent, the line is dots-only and the accessible name falls back to the locale's `typing` word (\"Typing\" in English)."
|
|
34128
|
-
}
|
|
34129
|
-
],
|
|
34130
|
-
"superclass": {
|
|
34131
|
-
"name": "HTMLElement"
|
|
34132
|
-
},
|
|
34133
|
-
"tagName": "aparte-chat-status",
|
|
34134
|
-
"customElement": true,
|
|
34135
|
-
"examples": [
|
|
34136
|
-
"<!-- The app owns this indicator: core turns it on for nobody, which is also why it\n is the wrong tool for the wait before the first token — the bubble's built-in\n waiting state already covers that one. -->\n<aparte-chat-status visible text=\"Searching the docs…\"></aparte-chat-status>"
|
|
34137
|
-
]
|
|
34138
|
-
}
|
|
34139
|
-
],
|
|
34140
|
-
"exports": [
|
|
34141
|
-
{
|
|
34142
|
-
"kind": "js",
|
|
34143
|
-
"name": "AparteChatStatus",
|
|
34144
|
-
"declaration": {
|
|
34145
|
-
"name": "AparteChatStatus",
|
|
34146
|
-
"module": "src/components/status/aparte-chat-status.ts"
|
|
34147
|
-
}
|
|
34148
|
-
},
|
|
34149
|
-
{
|
|
34150
|
-
"kind": "custom-element-definition",
|
|
34151
|
-
"name": "aparte-chat-status",
|
|
34152
|
-
"declaration": {
|
|
34153
|
-
"name": "AparteChatStatus",
|
|
34154
|
-
"module": "src/components/status/aparte-chat-status.ts"
|
|
34155
|
-
}
|
|
34156
|
-
}
|
|
34157
|
-
]
|
|
34158
|
-
},
|
|
34159
|
-
{
|
|
34160
|
-
"kind": "javascript-module",
|
|
34161
|
-
"path": "src/components/status/index.ts",
|
|
34162
|
-
"declarations": [],
|
|
34163
|
-
"exports": [
|
|
34164
|
-
{
|
|
34165
|
-
"kind": "js",
|
|
34166
|
-
"name": "AparteChatStatus",
|
|
34167
|
-
"declaration": {
|
|
34168
|
-
"name": "AparteChatStatus",
|
|
34169
|
-
"module": "./aparte-chat-status.js"
|
|
34170
|
-
}
|
|
34171
|
-
}
|
|
34172
|
-
]
|
|
34173
|
-
},
|
|
34174
35789
|
{
|
|
34175
35790
|
"kind": "javascript-module",
|
|
34176
35791
|
"path": "src/components/suggestions/aparte-suggestions.ts",
|
|
@@ -34477,11 +36092,11 @@
|
|
|
34477
36092
|
],
|
|
34478
36093
|
"events": [
|
|
34479
36094
|
{
|
|
34480
|
-
"name": "aparte-suggestion",
|
|
34481
36095
|
"type": {
|
|
34482
36096
|
"text": "CustomEvent<AparteSuggestionEventDetail>"
|
|
34483
36097
|
},
|
|
34484
|
-
"description": "A starter was clicked. Bubbles, and is cancelable: `preventDefault()` stops the composer from being filled or submitted."
|
|
36098
|
+
"description": "A starter was clicked. Bubbles, and is cancelable: `preventDefault()` stops the composer from being filled or submitted.",
|
|
36099
|
+
"name": "aparte-suggestion"
|
|
34485
36100
|
}
|
|
34486
36101
|
],
|
|
34487
36102
|
"attributes": [
|
|
@@ -35285,6 +36900,25 @@
|
|
|
35285
36900
|
],
|
|
35286
36901
|
"description": "Append content to a specific segment within a message"
|
|
35287
36902
|
},
|
|
36903
|
+
{
|
|
36904
|
+
"kind": "field",
|
|
36905
|
+
"name": "_chatId",
|
|
36906
|
+
"type": {
|
|
36907
|
+
"text": "string | undefined"
|
|
36908
|
+
},
|
|
36909
|
+
"privacy": "private",
|
|
36910
|
+
"description": "The chat this viewport is in, while it stays connected — see `appendToSegment`."
|
|
36911
|
+
},
|
|
36912
|
+
{
|
|
36913
|
+
"kind": "method",
|
|
36914
|
+
"name": "_chatIdOnce",
|
|
36915
|
+
"privacy": "private",
|
|
36916
|
+
"return": {
|
|
36917
|
+
"type": {
|
|
36918
|
+
"text": "string | undefined"
|
|
36919
|
+
}
|
|
36920
|
+
}
|
|
36921
|
+
},
|
|
35288
36922
|
{
|
|
35289
36923
|
"kind": "method",
|
|
35290
36924
|
"name": "_activeMessageId",
|
|
@@ -36461,11 +38095,11 @@
|
|
|
36461
38095
|
"description": "`clearAll()` finished emptying the transcript. No detail."
|
|
36462
38096
|
},
|
|
36463
38097
|
{
|
|
36464
|
-
"name": "aparte-path-changed",
|
|
36465
38098
|
"type": {
|
|
36466
38099
|
"text": "CustomEvent<ApartePathChangedEventDetail>"
|
|
36467
38100
|
},
|
|
36468
|
-
"description": "The active branch path changed, after a retry fork or a navigation."
|
|
38101
|
+
"description": "The active branch path changed, after a retry fork or a navigation.",
|
|
38102
|
+
"name": "aparte-path-changed"
|
|
36469
38103
|
}
|
|
36470
38104
|
],
|
|
36471
38105
|
"attributes": [
|