@aparte/core 1.0.1 → 1.1.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/aparte-client.d.ts +2 -0
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +25 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/bubble/bubble-sync.d.ts +2 -1
- package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
- package/dist/components/bubble/feedback-reasons.d.ts +13 -0
- package/dist/components/bubble/feedback-reasons.d.ts.map +1 -0
- package/dist/components/bubble/message-tokens.d.ts +10 -0
- package/dist/components/bubble/message-tokens.d.ts.map +1 -0
- package/dist/components/bubble/turn-groups.d.ts +24 -0
- package/dist/components/bubble/turn-groups.d.ts.map +1 -0
- package/dist/components/composer/aparte-composer-attachments.d.ts +3 -0
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +29 -0
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-toolbar.d.ts +4 -0
- package/dist/components/composer/aparte-composer-toolbar.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +32 -4
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/composer/composer-tokens.d.ts +21 -0
- package/dist/components/composer/composer-tokens.d.ts.map +1 -0
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +2 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +24 -1
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/locale.d.ts +44 -0
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/conversations/conversation-controller.d.ts +19 -0
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/conversations/conversation-manager.d.ts +2 -0
- package/dist/conversations/conversation-manager.d.ts.map +1 -1
- package/dist/conversations/types.d.ts +4 -0
- package/dist/conversations/types.d.ts.map +1 -1
- package/dist/custom-elements.json +1552 -7
- package/dist/{defer-hydration-_SZv5PeY.js → defer-hydration-BBdqAZej.js} +252 -61
- package/dist/defer-hydration-BBdqAZej.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +635 -95
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +3 -1
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +21 -20
- package/dist/index.node.js.map +1 -1
- package/dist/interop/element-props.d.ts +1 -1
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/types/chat.d.ts +3 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/event-map.d.ts +4 -1
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/events.d.ts +93 -1
- package/dist/types/events.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/model-provider.d.ts +6 -0
- package/dist/types/model-provider.d.ts.map +1 -1
- package/dist/types/models.d.ts +44 -0
- package/dist/types/models.d.ts.map +1 -1
- package/dist/utils/place-floating.d.ts +20 -0
- package/dist/utils/place-floating.d.ts.map +1 -0
- package/dist/utils/plural.d.ts +7 -0
- package/dist/utils/plural.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/defer-hydration-_SZv5PeY.js.map +0 -1
|
@@ -169,6 +169,46 @@
|
|
|
169
169
|
"module": "./types/index.js"
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "js",
|
|
174
|
+
"name": "AparteTurnSummaryOptions",
|
|
175
|
+
"declaration": {
|
|
176
|
+
"name": "AparteTurnSummaryOptions",
|
|
177
|
+
"module": "./types/index.js"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "js",
|
|
182
|
+
"name": "AparteComposerToken",
|
|
183
|
+
"declaration": {
|
|
184
|
+
"name": "AparteComposerToken",
|
|
185
|
+
"module": "./types/index.js"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"kind": "js",
|
|
190
|
+
"name": "AparteAttachmentState",
|
|
191
|
+
"declaration": {
|
|
192
|
+
"name": "AparteAttachmentState",
|
|
193
|
+
"module": "./types/index.js"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "js",
|
|
198
|
+
"name": "AparteMessageToken",
|
|
199
|
+
"declaration": {
|
|
200
|
+
"name": "AparteMessageToken",
|
|
201
|
+
"module": "./types/index.js"
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"kind": "js",
|
|
206
|
+
"name": "AparteComposerCaret",
|
|
207
|
+
"declaration": {
|
|
208
|
+
"name": "AparteComposerCaret",
|
|
209
|
+
"module": "./types/index.js"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
172
212
|
{
|
|
173
213
|
"kind": "js",
|
|
174
214
|
"name": "AparteBubbleActionName",
|
|
@@ -553,6 +593,54 @@
|
|
|
553
593
|
"module": "./types/index.js"
|
|
554
594
|
}
|
|
555
595
|
},
|
|
596
|
+
{
|
|
597
|
+
"kind": "js",
|
|
598
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
599
|
+
"declaration": {
|
|
600
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
601
|
+
"module": "./types/index.js"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"kind": "js",
|
|
606
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
607
|
+
"declaration": {
|
|
608
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
609
|
+
"module": "./types/index.js"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"kind": "js",
|
|
614
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
615
|
+
"declaration": {
|
|
616
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
617
|
+
"module": "./types/index.js"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"kind": "js",
|
|
622
|
+
"name": "AparteCommand",
|
|
623
|
+
"declaration": {
|
|
624
|
+
"name": "AparteCommand",
|
|
625
|
+
"module": "./types/index.js"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"kind": "js",
|
|
630
|
+
"name": "AparteCommandScope",
|
|
631
|
+
"declaration": {
|
|
632
|
+
"name": "AparteCommandScope",
|
|
633
|
+
"module": "./types/index.js"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"kind": "js",
|
|
638
|
+
"name": "AparteCommandContext",
|
|
639
|
+
"declaration": {
|
|
640
|
+
"name": "AparteCommandContext",
|
|
641
|
+
"module": "./types/index.js"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
556
644
|
{
|
|
557
645
|
"kind": "js",
|
|
558
646
|
"name": "AparteActionEventDetail",
|
|
@@ -2505,6 +2593,22 @@
|
|
|
2505
2593
|
"module": "./utils/css-escape.js"
|
|
2506
2594
|
}
|
|
2507
2595
|
},
|
|
2596
|
+
{
|
|
2597
|
+
"kind": "js",
|
|
2598
|
+
"name": "placeFloating",
|
|
2599
|
+
"declaration": {
|
|
2600
|
+
"name": "placeFloating",
|
|
2601
|
+
"module": "./utils/place-floating.js"
|
|
2602
|
+
}
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"kind": "js",
|
|
2606
|
+
"name": "AparteFloatingOptions",
|
|
2607
|
+
"declaration": {
|
|
2608
|
+
"name": "AparteFloatingOptions",
|
|
2609
|
+
"module": "./utils/place-floating.js"
|
|
2610
|
+
}
|
|
2611
|
+
},
|
|
2508
2612
|
{
|
|
2509
2613
|
"kind": "js",
|
|
2510
2614
|
"name": "uuid",
|
|
@@ -2939,6 +3043,46 @@
|
|
|
2939
3043
|
"module": "./types/index.js"
|
|
2940
3044
|
}
|
|
2941
3045
|
},
|
|
3046
|
+
{
|
|
3047
|
+
"kind": "js",
|
|
3048
|
+
"name": "AparteTurnSummaryOptions",
|
|
3049
|
+
"declaration": {
|
|
3050
|
+
"name": "AparteTurnSummaryOptions",
|
|
3051
|
+
"module": "./types/index.js"
|
|
3052
|
+
}
|
|
3053
|
+
},
|
|
3054
|
+
{
|
|
3055
|
+
"kind": "js",
|
|
3056
|
+
"name": "AparteComposerToken",
|
|
3057
|
+
"declaration": {
|
|
3058
|
+
"name": "AparteComposerToken",
|
|
3059
|
+
"module": "./types/index.js"
|
|
3060
|
+
}
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
"kind": "js",
|
|
3064
|
+
"name": "AparteAttachmentState",
|
|
3065
|
+
"declaration": {
|
|
3066
|
+
"name": "AparteAttachmentState",
|
|
3067
|
+
"module": "./types/index.js"
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
"kind": "js",
|
|
3072
|
+
"name": "AparteMessageToken",
|
|
3073
|
+
"declaration": {
|
|
3074
|
+
"name": "AparteMessageToken",
|
|
3075
|
+
"module": "./types/index.js"
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"kind": "js",
|
|
3080
|
+
"name": "AparteComposerCaret",
|
|
3081
|
+
"declaration": {
|
|
3082
|
+
"name": "AparteComposerCaret",
|
|
3083
|
+
"module": "./types/index.js"
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
2942
3086
|
{
|
|
2943
3087
|
"kind": "js",
|
|
2944
3088
|
"name": "AparteBubbleActionName",
|
|
@@ -3323,6 +3467,54 @@
|
|
|
3323
3467
|
"module": "./types/index.js"
|
|
3324
3468
|
}
|
|
3325
3469
|
},
|
|
3470
|
+
{
|
|
3471
|
+
"kind": "js",
|
|
3472
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
3473
|
+
"declaration": {
|
|
3474
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
3475
|
+
"module": "./types/index.js"
|
|
3476
|
+
}
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"kind": "js",
|
|
3480
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
3481
|
+
"declaration": {
|
|
3482
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
3483
|
+
"module": "./types/index.js"
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"kind": "js",
|
|
3488
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
3489
|
+
"declaration": {
|
|
3490
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
3491
|
+
"module": "./types/index.js"
|
|
3492
|
+
}
|
|
3493
|
+
},
|
|
3494
|
+
{
|
|
3495
|
+
"kind": "js",
|
|
3496
|
+
"name": "AparteCommand",
|
|
3497
|
+
"declaration": {
|
|
3498
|
+
"name": "AparteCommand",
|
|
3499
|
+
"module": "./types/index.js"
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3502
|
+
{
|
|
3503
|
+
"kind": "js",
|
|
3504
|
+
"name": "AparteCommandScope",
|
|
3505
|
+
"declaration": {
|
|
3506
|
+
"name": "AparteCommandScope",
|
|
3507
|
+
"module": "./types/index.js"
|
|
3508
|
+
}
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
"kind": "js",
|
|
3512
|
+
"name": "AparteCommandContext",
|
|
3513
|
+
"declaration": {
|
|
3514
|
+
"name": "AparteCommandContext",
|
|
3515
|
+
"module": "./types/index.js"
|
|
3516
|
+
}
|
|
3517
|
+
},
|
|
3326
3518
|
{
|
|
3327
3519
|
"kind": "js",
|
|
3328
3520
|
"name": "AparteActionEventDetail",
|
|
@@ -4971,6 +5163,22 @@
|
|
|
4971
5163
|
"module": "./utils/css-escape.js"
|
|
4972
5164
|
}
|
|
4973
5165
|
},
|
|
5166
|
+
{
|
|
5167
|
+
"kind": "js",
|
|
5168
|
+
"name": "placeFloating",
|
|
5169
|
+
"declaration": {
|
|
5170
|
+
"name": "placeFloating",
|
|
5171
|
+
"module": "./utils/place-floating.js"
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
5174
|
+
{
|
|
5175
|
+
"kind": "js",
|
|
5176
|
+
"name": "AparteFloatingOptions",
|
|
5177
|
+
"declaration": {
|
|
5178
|
+
"name": "AparteFloatingOptions",
|
|
5179
|
+
"module": "./utils/place-floating.js"
|
|
5180
|
+
}
|
|
5181
|
+
},
|
|
4974
5182
|
{
|
|
4975
5183
|
"kind": "js",
|
|
4976
5184
|
"name": "uuid",
|
|
@@ -5830,7 +6038,7 @@
|
|
|
5830
6038
|
"name": "opts",
|
|
5831
6039
|
"optional": true,
|
|
5832
6040
|
"type": {
|
|
5833
|
-
"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 }"
|
|
6041
|
+
"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 }"
|
|
5834
6042
|
}
|
|
5835
6043
|
}
|
|
5836
6044
|
],
|
|
@@ -6117,6 +6325,25 @@
|
|
|
6117
6325
|
],
|
|
6118
6326
|
"description": "What the model reads in place of everything before a checkpoint: the summary, as a\n`user` message under the same preamble a legacy compaction message gets, so it is\ncontext and not something the person said. It may sit right before a user turn;\n`mergeAdjacentUserMessages` joins the two where the history is assembled."
|
|
6119
6327
|
},
|
|
6328
|
+
{
|
|
6329
|
+
"kind": "method",
|
|
6330
|
+
"name": "_turnMeta",
|
|
6331
|
+
"privacy": "private",
|
|
6332
|
+
"return": {
|
|
6333
|
+
"type": {
|
|
6334
|
+
"text": "{ meta?: AparteRequestMeta }"
|
|
6335
|
+
}
|
|
6336
|
+
},
|
|
6337
|
+
"parameters": [
|
|
6338
|
+
{
|
|
6339
|
+
"name": "asked",
|
|
6340
|
+
"type": {
|
|
6341
|
+
"text": "{ tokens?: AparteMessageToken[]; metadata?: Record<string, unknown>; meta?: Record<string, unknown> } | undefined"
|
|
6342
|
+
}
|
|
6343
|
+
}
|
|
6344
|
+
],
|
|
6345
|
+
"description": "A message's tokens and metadata as a turn's `_meta`: a send and its retry say the same."
|
|
6346
|
+
},
|
|
6120
6347
|
{
|
|
6121
6348
|
"kind": "field",
|
|
6122
6349
|
"name": "_warnedNoModel",
|
|
@@ -7983,6 +8210,33 @@
|
|
|
7983
8210
|
"privacy": "private",
|
|
7984
8211
|
"default": "{ ...APARTE_DEFAULT_BUBBLE_ACTIONS }"
|
|
7985
8212
|
},
|
|
8213
|
+
{
|
|
8214
|
+
"kind": "field",
|
|
8215
|
+
"name": "_turnSummary",
|
|
8216
|
+
"type": {
|
|
8217
|
+
"text": "AparteTurnSummaryOptions | null"
|
|
8218
|
+
},
|
|
8219
|
+
"privacy": "private",
|
|
8220
|
+
"default": "null"
|
|
8221
|
+
},
|
|
8222
|
+
{
|
|
8223
|
+
"kind": "field",
|
|
8224
|
+
"name": "_streamingCaret",
|
|
8225
|
+
"type": {
|
|
8226
|
+
"text": "boolean"
|
|
8227
|
+
},
|
|
8228
|
+
"privacy": "private",
|
|
8229
|
+
"default": "false"
|
|
8230
|
+
},
|
|
8231
|
+
{
|
|
8232
|
+
"kind": "field",
|
|
8233
|
+
"name": "_dateSeparators",
|
|
8234
|
+
"type": {
|
|
8235
|
+
"text": "boolean"
|
|
8236
|
+
},
|
|
8237
|
+
"privacy": "private",
|
|
8238
|
+
"default": "false"
|
|
8239
|
+
},
|
|
7986
8240
|
{
|
|
7987
8241
|
"kind": "method",
|
|
7988
8242
|
"name": "registerAction",
|
|
@@ -8058,6 +8312,91 @@
|
|
|
8058
8312
|
"aparteGlobalConfig.setBubbleActions({ copy: true }) // core copies on its own\naparteGlobalConfig.setBubbleActions({ retry: true, edit: true }) // you run AparteClient\naparteGlobalConfig.setBubbleActions({ feedback: true }) // you listen for aparte-feedback; calls merge, so copy stays on\n// Explicit per-role ordered sets (replace the flag defaults for that role):\naparteGlobalConfig.setBubbleActions({ user: ['edit', 'copy'], assistant: ['copy', 'thumbUp', 'thumbDown', 'retry'] })"
|
|
8059
8313
|
]
|
|
8060
8314
|
},
|
|
8315
|
+
{
|
|
8316
|
+
"kind": "method",
|
|
8317
|
+
"name": "setTurnSummary",
|
|
8318
|
+
"return": {
|
|
8319
|
+
"type": {
|
|
8320
|
+
"text": "void"
|
|
8321
|
+
}
|
|
8322
|
+
},
|
|
8323
|
+
"parameters": [
|
|
8324
|
+
{
|
|
8325
|
+
"name": "options",
|
|
8326
|
+
"type": {
|
|
8327
|
+
"text": "AparteTurnSummaryOptions | boolean"
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
],
|
|
8331
|
+
"description": "Fold the steps of a reply behind one line: a run of reasoning and tool calls between two\npieces of text becomes \"Worked 9 s · 7 tools\", which opens on the usual rows. A call\nwaiting for approval, a call that failed and a tool drawn by its own renderer stay out\nof the fold. Off by default; `false` turns it off again.",
|
|
8332
|
+
"examples": [
|
|
8333
|
+
"aparteGlobalConfig.setTurnSummary(true);\naparteGlobalConfig.setTurnSummary({ openWhileRunning: true }); // watch the steps, folded at the end"
|
|
8334
|
+
]
|
|
8335
|
+
},
|
|
8336
|
+
{
|
|
8337
|
+
"kind": "method",
|
|
8338
|
+
"name": "setStreamingCaret",
|
|
8339
|
+
"return": {
|
|
8340
|
+
"type": {
|
|
8341
|
+
"text": "void"
|
|
8342
|
+
}
|
|
8343
|
+
},
|
|
8344
|
+
"parameters": [
|
|
8345
|
+
{
|
|
8346
|
+
"name": "on",
|
|
8347
|
+
"type": {
|
|
8348
|
+
"text": "boolean"
|
|
8349
|
+
}
|
|
8350
|
+
}
|
|
8351
|
+
],
|
|
8352
|
+
"description": "Draw a blinking caret where the words of a reply are arriving. Off by default."
|
|
8353
|
+
},
|
|
8354
|
+
{
|
|
8355
|
+
"kind": "method",
|
|
8356
|
+
"name": "getStreamingCaret",
|
|
8357
|
+
"return": {
|
|
8358
|
+
"type": {
|
|
8359
|
+
"text": "boolean"
|
|
8360
|
+
}
|
|
8361
|
+
}
|
|
8362
|
+
},
|
|
8363
|
+
{
|
|
8364
|
+
"kind": "method",
|
|
8365
|
+
"name": "setDateSeparators",
|
|
8366
|
+
"return": {
|
|
8367
|
+
"type": {
|
|
8368
|
+
"text": "void"
|
|
8369
|
+
}
|
|
8370
|
+
},
|
|
8371
|
+
"parameters": [
|
|
8372
|
+
{
|
|
8373
|
+
"name": "on",
|
|
8374
|
+
"type": {
|
|
8375
|
+
"text": "boolean"
|
|
8376
|
+
}
|
|
8377
|
+
}
|
|
8378
|
+
],
|
|
8379
|
+
"description": "Draw the date above the first message of each day. Off by default."
|
|
8380
|
+
},
|
|
8381
|
+
{
|
|
8382
|
+
"kind": "method",
|
|
8383
|
+
"name": "getDateSeparators",
|
|
8384
|
+
"return": {
|
|
8385
|
+
"type": {
|
|
8386
|
+
"text": "boolean"
|
|
8387
|
+
}
|
|
8388
|
+
}
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
"kind": "method",
|
|
8392
|
+
"name": "getTurnSummary",
|
|
8393
|
+
"return": {
|
|
8394
|
+
"type": {
|
|
8395
|
+
"text": "Readonly<AparteTurnSummaryOptions> | null"
|
|
8396
|
+
}
|
|
8397
|
+
},
|
|
8398
|
+
"description": "The options setTurnSummary left, or null when replies are not folded."
|
|
8399
|
+
},
|
|
8061
8400
|
{
|
|
8062
8401
|
"kind": "method",
|
|
8063
8402
|
"name": "setHostHandlers",
|
|
@@ -8094,7 +8433,7 @@
|
|
|
8094
8433
|
"name": "getBubbleActions",
|
|
8095
8434
|
"return": {
|
|
8096
8435
|
"type": {
|
|
8097
|
-
"text": "{\n copy: boolean;\n retry: boolean;\n edit: boolean;\n feedback: boolean;\n info: boolean;\n user?: AparteBubbleActionName[];\n assistant?: AparteBubbleActionName[];\n }"
|
|
8436
|
+
"text": "{\n copy: boolean;\n retry: boolean;\n edit: boolean;\n feedback: boolean;\n info: boolean;\n feedbackReasons?: readonly string[];\n user?: AparteBubbleActionName[];\n assistant?: AparteBubbleActionName[];\n }"
|
|
8098
8437
|
}
|
|
8099
8438
|
},
|
|
8100
8439
|
"description": "Returns the resolved bubble actions config (flag defaults applied; per-role sets passed through)."
|
|
@@ -11131,7 +11470,7 @@
|
|
|
11131
11470
|
"type": {
|
|
11132
11471
|
"text": "AparteLocale"
|
|
11133
11472
|
},
|
|
11134
|
-
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", transcript: \"Transcript\" }",
|
|
11473
|
+
"default": "{ inputPlaceholder: \"Type a message...\", sendButton: \"Send\", copy: \"Copy\", copied: \"Copied!\", retry: \"Retry\", thinking: \"Thinking\", elicitationOther: \"Other…\", elicitationOtherPlaceholder: \"Type your answer…\", elicitationOtherLabel: \"Custom answer\", submitButton: \"Submit\", stopButton: \"Stop\", elicitationRecommended: \"Recommended\", elicitationSkip: \"Skip\", elicitationHide: \"Hide for now\", elicitationWaiting: \"Waiting for your answer\", elicitationYes: \"Yes\", elicitationNo: \"No\", elicitationAnswerLabel: \"Your answer\", approvalInstructionPlaceholder: \"Or tell it what to do instead…\", approvalAsk: \"Allow {tool}?\", approvalWaiting: \"Waiting\", scrollToBottom: \"Scroll to bottom\", suggestionsLabel: \"Suggested prompts\", contextLabel: \"Context window\", contextSystem: \"System prompt\", contextTools: \"Tools\", contextSummary: \"Summary\", contextMessages: \"Messages\", contextOther: \"Other\", contextFree: \"Free\", contextTotal: \"Total\", contextReclaim: \"Compacting now would free ~{n} tokens\", contextCompactNow: \"Compact now\", checkpointCount: \"{n} messages summarised for the model\", checkpointCountOne: \"1 message summarised for the model\", checkpointLegacy: \"Earlier messages were summarised\", checkpointGroup: \"Context summary\", checkpointShow: \"Show summary\", checkpointHide: \"Hide summary\", checkpointRestore: \"Restore\", checkpointRestoreConfirm: \"Send the original messages to the model again?\", checkpointPending: \"Summarising the context…\", checkpointFailed: \"Couldn't summarise the context\", toolRunning: \"Running\", toolCompleted: \"Done\", toolRejected: \"Rejected\", toolStopped: \"Stopped\", toolFailed: \"Failed\", toolInput: \"Input\", toolOutput: \"Output\", toolRejectedSaid: \"You said: “{instruction}”\", toolRefusedByPolicy: \"Refused by policy\", toolNotRunAfterRefusal: \"Not run: an earlier call was refused\", toolTimedOut: \"Timed out\", toolUnavailable: \"Not available here\", toolNoApprover: \"No one could approve it\", toolTurnLimit: \"Turn limit reached\", maxTurnsReached: \"Stopped after {n} turns to avoid an endless loop.\", sourcesCount: \"{n} sources\", sourcesOne: \"1 source\", sourcesCard: \"Sources\", sourcePrevious: \"Previous source\", sourceNext: \"Next source\", sourcePosition: \"Source {i} of {n}\", opensInNewTab: \"(opens in a new tab)\", imageLoad: \"Load the image from {host}\", imageLoadNamed: \"Load the image “{alt}” from {host}\", questionDeclined: \"You declined to answer.\", artifactNotCreated: \"Not created\", thoughtFor: \"Thought for {duration}\", thought: \"Thought\", turnWorking: \"Working…\", turnWorked: \"Worked {duration}\", turnUsed: \"Used {tools}\", turnTools: \"one:{n} tool|other:{n} tools\", feedbackReasonTitle: 'What went wrong?', feedbackReasonDismiss: 'Not now', triggersLoading: 'Loading…', triggersEmpty: 'No results', triggersError: 'This list could not be loaded', triggersRetry: 'Try again', triggersBack: 'Back', triggersCommandNew: 'Start a new conversation', triggersCommandStop: 'Stop the reply', triggersCommandRetry: 'Answer again', triggersCommandCopy: 'Copy the last reply', triggersCommandCompact: 'Summarise the earlier messages', triggersCompactNothing: 'There is nothing to compact yet', triggersCompactBusy: 'Wait for the reply to finish', triggersCompactNoWindow: 'This model does not say how much it can read', triggersCompactFailed: 'The summary could not be written', triggersCommandModel: 'Change the model', triggersCommandApproval: 'Change the approval mode', approvalOptionsLabel: \"Your decision\", approvalArgsLabel: \"Arguments\", actionUpload: \"Attach file\", removeAttachment: \"Remove {name}\", messageFrom: \"Message from {name}\", selectSearchPlaceholder: \"Search…\", selectSearchLabel: \"Search options\", loading: \"Loading…\", download: \"Download\", openArtifact: \"Open\", modelContextWindow: \"{n} context\", previewPending: \"Press Preview to run this artifact.\", sandboxError: \"The sandbox failed during generation.\", sandboxErrorHint: \"Common cause: the model produced invalid code (undefined variable, wrong argument type). Retry the request — the model may produce different code.\", preview: \"Preview\", code: \"Code\", generating: \"Generating…\", rebuildingPreview: \"Rebuilding preview…\", typing: \"Typing\", responseCutOff: \"Cut off at the model's length limit.\", error: \"Error\", errorUnreachable: \"The assistant can’t be reached right now. Try again in a moment.\", errorTimeout: \"The answer took too long. Try again in a moment.\", errorRefused: \"The assistant isn’t allowed to answer right now.\", errorRateLimited: \"Too many requests right now. Try again in a moment.\", errorTooLong: \"This conversation is too long for the model. Start a new one.\", errorFailed: \"The assistant couldn’t answer. Try again in a moment.\", errorNoAnswer: \"The assistant couldn’t answer this request.\", running: \"Running...\", run: \"Run\", file: \"File\", modelSelectorPlaceholder: \"Select a model...\", approvalModeLabel: \"Approval mode\", roleNameUser: \"You\", roleNameAssistant: \"Assistant\", yourMessage: \"Your message\", assistantResponse: \"Assistant response\", messageActions: \"Message actions\", edit: \"Edit message\", editConfirm: \"Send\", editCancel: \"Cancel\", feedbackPositive: \"Good response\", feedbackNegative: \"Bad response\", previousResponse: \"Previous response\", nextResponse: \"Next response\", approveTool: \"Approve\", rejectTool: \"Reject\", messageInfo: \"Details\", newChat: \"New Chat\", loadingConversations: \"Loading conversations\", conversationSearchEmpty: \"No conversation matches\", conversationList: \"Conversations\", loadingConversation: \"Loading the conversation\", deleteConversation: \"Delete\", archiveConversation: \"Archive\", unarchiveConversation: \"Unarchive\", conversationActions: \"Conversation actions\", conversationRunning: \"Answering\", conversationWaiting: \"Waiting for you\", renameConversation: \"Rename\", conversationTitle: \"Conversation title\", pinConversation: \"Pin\", unpinConversation: \"Unpin\", deleteConversationConfirm: \"Delete “{title}”?\", cancel: \"Cancel\", conversationGroupPinned: \"Pinned\", conversationGroupToday: \"Today\", conversationGroupYesterday: \"Yesterday\", conversationGroupWeek: \"Previous 7 days\", conversationGroupMonth: \"Previous 30 days\", scrollRailLabel: \"Conversation outline\", sidebarLabel: \"Conversations\", splitHandleLabel: \"Resize the panes\", launcherOpen: \"Open the chat\", launcherClose: \"Close the chat\", transcript: \"Transcript\" }",
|
|
11135
11474
|
"description": "Default English Locale (Zero-dependency)\nHardcoded to ensure the core works out-of-the-box."
|
|
11136
11475
|
}
|
|
11137
11476
|
],
|
|
@@ -12329,6 +12668,133 @@
|
|
|
12329
12668
|
],
|
|
12330
12669
|
"description": "Switch to (or clear) the active conversation.\n - `null`: clears the binding and deselects in the manager.\n - any id: loads the conversation's messages into the binding.\n\nIdempotent: calling with the current id forces a re-snapshot from the\nmanager (handy when external mutations could have desynchronised the\nbinding, or when a user re-selects the already-active conv from a\nsidebar). Streams are only aborted on an actual id change so a same-id\nreload never kills an in-flight response."
|
|
12331
12670
|
},
|
|
12671
|
+
{
|
|
12672
|
+
"kind": "field",
|
|
12673
|
+
"name": "_drafts",
|
|
12674
|
+
"privacy": "private",
|
|
12675
|
+
"readonly": true,
|
|
12676
|
+
"default": "new Map<string, string>()",
|
|
12677
|
+
"description": "Drafts by conversation; the empty key is a chat that has no conversation yet."
|
|
12678
|
+
},
|
|
12679
|
+
{
|
|
12680
|
+
"kind": "field",
|
|
12681
|
+
"name": "_draftCalls",
|
|
12682
|
+
"type": {
|
|
12683
|
+
"text": "number"
|
|
12684
|
+
},
|
|
12685
|
+
"privacy": "private",
|
|
12686
|
+
"default": "0"
|
|
12687
|
+
},
|
|
12688
|
+
{
|
|
12689
|
+
"kind": "field",
|
|
12690
|
+
"name": "_draftAway",
|
|
12691
|
+
"type": {
|
|
12692
|
+
"text": "boolean"
|
|
12693
|
+
},
|
|
12694
|
+
"privacy": "private",
|
|
12695
|
+
"default": "false"
|
|
12696
|
+
},
|
|
12697
|
+
{
|
|
12698
|
+
"kind": "field",
|
|
12699
|
+
"name": "_composer",
|
|
12700
|
+
"type": {
|
|
12701
|
+
"text": "AparteComposer | null"
|
|
12702
|
+
},
|
|
12703
|
+
"privacy": "private",
|
|
12704
|
+
"readonly": true
|
|
12705
|
+
},
|
|
12706
|
+
{
|
|
12707
|
+
"kind": "method",
|
|
12708
|
+
"name": "_stashDraft",
|
|
12709
|
+
"privacy": "private",
|
|
12710
|
+
"return": {
|
|
12711
|
+
"type": {
|
|
12712
|
+
"text": "void"
|
|
12713
|
+
}
|
|
12714
|
+
}
|
|
12715
|
+
},
|
|
12716
|
+
{
|
|
12717
|
+
"kind": "method",
|
|
12718
|
+
"name": "_forgetDraft",
|
|
12719
|
+
"privacy": "private",
|
|
12720
|
+
"return": {
|
|
12721
|
+
"type": {
|
|
12722
|
+
"text": "void"
|
|
12723
|
+
}
|
|
12724
|
+
},
|
|
12725
|
+
"description": "A message was sent: what it was drafted from must not come back, in this tab or the next."
|
|
12726
|
+
},
|
|
12727
|
+
{
|
|
12728
|
+
"kind": "method",
|
|
12729
|
+
"name": "_saveDraft",
|
|
12730
|
+
"privacy": "private",
|
|
12731
|
+
"return": {
|
|
12732
|
+
"type": {
|
|
12733
|
+
"text": "void"
|
|
12734
|
+
}
|
|
12735
|
+
},
|
|
12736
|
+
"parameters": [
|
|
12737
|
+
{
|
|
12738
|
+
"name": "key",
|
|
12739
|
+
"type": {
|
|
12740
|
+
"text": "string"
|
|
12741
|
+
}
|
|
12742
|
+
},
|
|
12743
|
+
{
|
|
12744
|
+
"name": "text",
|
|
12745
|
+
"type": {
|
|
12746
|
+
"text": "string"
|
|
12747
|
+
}
|
|
12748
|
+
}
|
|
12749
|
+
],
|
|
12750
|
+
"description": "A store that fails loses a draft, and nothing else."
|
|
12751
|
+
},
|
|
12752
|
+
{
|
|
12753
|
+
"kind": "method",
|
|
12754
|
+
"name": "_restoreDraft",
|
|
12755
|
+
"privacy": "private",
|
|
12756
|
+
"return": {
|
|
12757
|
+
"type": {
|
|
12758
|
+
"text": "Promise<void>"
|
|
12759
|
+
}
|
|
12760
|
+
},
|
|
12761
|
+
"parameters": [
|
|
12762
|
+
{
|
|
12763
|
+
"name": "call",
|
|
12764
|
+
"type": {
|
|
12765
|
+
"text": "number"
|
|
12766
|
+
}
|
|
12767
|
+
}
|
|
12768
|
+
]
|
|
12769
|
+
},
|
|
12770
|
+
{
|
|
12771
|
+
"kind": "method",
|
|
12772
|
+
"name": "_draftAdapter",
|
|
12773
|
+
"privacy": "private",
|
|
12774
|
+
"return": {
|
|
12775
|
+
"type": {
|
|
12776
|
+
"text": "AparteStorageAdapter | null"
|
|
12777
|
+
}
|
|
12778
|
+
}
|
|
12779
|
+
},
|
|
12780
|
+
{
|
|
12781
|
+
"kind": "method",
|
|
12782
|
+
"name": "_openConversation",
|
|
12783
|
+
"privacy": "private",
|
|
12784
|
+
"return": {
|
|
12785
|
+
"type": {
|
|
12786
|
+
"text": "Promise<void>"
|
|
12787
|
+
}
|
|
12788
|
+
},
|
|
12789
|
+
"parameters": [
|
|
12790
|
+
{
|
|
12791
|
+
"name": "id",
|
|
12792
|
+
"type": {
|
|
12793
|
+
"text": "string | null"
|
|
12794
|
+
}
|
|
12795
|
+
}
|
|
12796
|
+
]
|
|
12797
|
+
},
|
|
12332
12798
|
{
|
|
12333
12799
|
"kind": "method",
|
|
12334
12800
|
"name": "_showWait",
|
|
@@ -12552,6 +13018,15 @@
|
|
|
12552
13018
|
"default": "null",
|
|
12553
13019
|
"description": "The list on its way: a conversation created meanwhile waits for it, or the list would replace it."
|
|
12554
13020
|
},
|
|
13021
|
+
{
|
|
13022
|
+
"kind": "field",
|
|
13023
|
+
"name": "adapter",
|
|
13024
|
+
"type": {
|
|
13025
|
+
"text": "AparteStorageAdapter"
|
|
13026
|
+
},
|
|
13027
|
+
"description": "The store this manager writes to.",
|
|
13028
|
+
"readonly": true
|
|
13029
|
+
},
|
|
12555
13030
|
{
|
|
12556
13031
|
"kind": "method",
|
|
12557
13032
|
"name": "setTitleProvider",
|
|
@@ -15735,7 +16210,7 @@
|
|
|
15735
16210
|
{
|
|
15736
16211
|
"kind": "variable",
|
|
15737
16212
|
"name": "APARTE_DEFAULT_UI_EVENTS",
|
|
15738
|
-
"default": "[ // <aparte-composer> and its parts 'aparte-send', 'aparte-cancel', 'aparte-composer-change', 'aparte-composer-submit', 'aparte-action-click', 'aparte-attachment-preview', // <aparte-chat-bubble> 'aparte-action', 'aparte-retry', 'aparte-edit', 'aparte-feedback', 'aparte-message-info', 'aparte-branch-navigate', 'aparte-link-click', // <aparte-chat-viewport> 'aparte-segment-update', 'aparte-reset-done', 'aparte-path-changed', // <aparte-conversation-list> 'aparte-conversation-select', 'aparte-conversation-delete', 'aparte-conversation-archive', 'aparte-conversation-unarchive', 'aparte-conversation-rename', 'aparte-conversation-pin', 'aparte-conversation-unpin', // The conversation controller, on the chat host: a conversation's messages are on screen. 'aparte-conversation-loaded', // the select primitives 'aparte-select-change', 'aparte-select-open', 'aparte-select-close', 'aparte-optgroup-toggle', // the shell and the transcript's own elements — the five the sweep found missing 'aparte-suggestion', 'aparte-context-threshold', 'aparte-scroll-rail-jump', 'aparte-sidebar-toggle', 'aparte-split-resize', 'aparte-launcher-toggle', // the turn's lifecycle, dispatched on the HOST element by `dispatchLifecycleEvent` 'aparte-message-start', 'aparte-message-done', 'aparte-message-error', 'aparte-message-aborted', 'aparte-message-paused', 'aparte-message-resumed', 'aparte-tool-approval-request', ] as const satisfies readonly string[]",
|
|
16213
|
+
"default": "[ // <aparte-composer> and its parts 'aparte-send', 'aparte-cancel', 'aparte-composer-change', 'aparte-composer-submit', 'aparte-action-click', 'aparte-attachment-preview', // <aparte-chat-bubble> 'aparte-action', 'aparte-retry', 'aparte-edit', 'aparte-feedback', 'aparte-feedback-reason', 'aparte-message-info', 'aparte-branch-navigate', 'aparte-link-click', // <aparte-chat-viewport> 'aparte-segment-update', 'aparte-reset-done', 'aparte-path-changed', // <aparte-conversation-list> 'aparte-conversation-select', 'aparte-conversation-delete', 'aparte-conversation-archive', 'aparte-conversation-unarchive', 'aparte-conversation-rename', 'aparte-conversation-pin', 'aparte-conversation-unpin', // The conversation controller, on the chat host: a conversation's messages are on screen. 'aparte-conversation-loaded', // the select primitives 'aparte-select-change', 'aparte-select-open', 'aparte-select-close', 'aparte-optgroup-toggle', // the shell and the transcript's own elements — the five the sweep found missing 'aparte-suggestion', 'aparte-context-threshold', 'aparte-scroll-rail-jump', 'aparte-sidebar-toggle', 'aparte-split-resize', 'aparte-launcher-toggle', // the turn's lifecycle, dispatched on the HOST element by `dispatchLifecycleEvent` 'aparte-message-start', 'aparte-message-done', 'aparte-message-error', 'aparte-message-aborted', 'aparte-message-paused', 'aparte-message-resumed', 'aparte-tool-approval-request', ] as const satisfies readonly string[]",
|
|
15739
16214
|
"description": "Every custom event an aparté element dispatches on ITSELF — the set `AparteUi`\nforwards through its single event output, in all four wrappers.\n\n`scripts/check-event-map.mjs` asserts this list against every non-`window` dispatch\nin core.\n\nA PLUGIN's events are not here, `aparte-model-change` included. The reason is the\nsame one that keeps plugin tags out of the element registry: this default is core's,\nand a third-party plugin's author cannot add to it, so listing ours would privilege\nour packages over theirs. Pass the names you need — `events: ['aparte-model-change']`\n— which is one line for everyone equally.\n\nThree events are deliberately NOT here for a different reason: `aparte-abort`,\n`aparte-compact` and `aparte-config-change` go out through `window.dispatchEvent` —\nthey concern the whole page, not one subtree — so an element-level listener can never\nreceive them and listing them would promise a forward that cannot happen.\n\nThe five lifecycle events (including `aparte-message-aborted`) ARE here:\n`dispatchLifecycleEvent` dispatches them on the HOST ELEMENT, bubbling and composed\n(`client/lifecycle-events.ts`), and the composer's `window` dispatch is a second,\npage-wide broadcast, not the only one. The sentence above lists only what a `window`\ndispatch is the sole path for."
|
|
15740
16215
|
},
|
|
15741
16216
|
{
|
|
@@ -19111,6 +19586,46 @@
|
|
|
19111
19586
|
"module": "./models.js"
|
|
19112
19587
|
}
|
|
19113
19588
|
},
|
|
19589
|
+
{
|
|
19590
|
+
"kind": "js",
|
|
19591
|
+
"name": "AparteTurnSummaryOptions",
|
|
19592
|
+
"declaration": {
|
|
19593
|
+
"name": "AparteTurnSummaryOptions",
|
|
19594
|
+
"module": "./models.js"
|
|
19595
|
+
}
|
|
19596
|
+
},
|
|
19597
|
+
{
|
|
19598
|
+
"kind": "js",
|
|
19599
|
+
"name": "AparteComposerToken",
|
|
19600
|
+
"declaration": {
|
|
19601
|
+
"name": "AparteComposerToken",
|
|
19602
|
+
"module": "./models.js"
|
|
19603
|
+
}
|
|
19604
|
+
},
|
|
19605
|
+
{
|
|
19606
|
+
"kind": "js",
|
|
19607
|
+
"name": "AparteAttachmentState",
|
|
19608
|
+
"declaration": {
|
|
19609
|
+
"name": "AparteAttachmentState",
|
|
19610
|
+
"module": "./models.js"
|
|
19611
|
+
}
|
|
19612
|
+
},
|
|
19613
|
+
{
|
|
19614
|
+
"kind": "js",
|
|
19615
|
+
"name": "AparteMessageToken",
|
|
19616
|
+
"declaration": {
|
|
19617
|
+
"name": "AparteMessageToken",
|
|
19618
|
+
"module": "./models.js"
|
|
19619
|
+
}
|
|
19620
|
+
},
|
|
19621
|
+
{
|
|
19622
|
+
"kind": "js",
|
|
19623
|
+
"name": "AparteComposerCaret",
|
|
19624
|
+
"declaration": {
|
|
19625
|
+
"name": "AparteComposerCaret",
|
|
19626
|
+
"module": "./models.js"
|
|
19627
|
+
}
|
|
19628
|
+
},
|
|
19114
19629
|
{
|
|
19115
19630
|
"kind": "js",
|
|
19116
19631
|
"name": "AparteBubbleActionName",
|
|
@@ -19247,6 +19762,54 @@
|
|
|
19247
19762
|
"module": "./events.js"
|
|
19248
19763
|
}
|
|
19249
19764
|
},
|
|
19765
|
+
{
|
|
19766
|
+
"kind": "js",
|
|
19767
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
19768
|
+
"declaration": {
|
|
19769
|
+
"name": "AparteFeedbackReasonEventDetail",
|
|
19770
|
+
"module": "./events.js"
|
|
19771
|
+
}
|
|
19772
|
+
},
|
|
19773
|
+
{
|
|
19774
|
+
"kind": "js",
|
|
19775
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
19776
|
+
"declaration": {
|
|
19777
|
+
"name": "AparteCollectCommandsEventDetail",
|
|
19778
|
+
"module": "./events.js"
|
|
19779
|
+
}
|
|
19780
|
+
},
|
|
19781
|
+
{
|
|
19782
|
+
"kind": "js",
|
|
19783
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
19784
|
+
"declaration": {
|
|
19785
|
+
"name": "AparteTriggerSelectEventDetail",
|
|
19786
|
+
"module": "./events.js"
|
|
19787
|
+
}
|
|
19788
|
+
},
|
|
19789
|
+
{
|
|
19790
|
+
"kind": "js",
|
|
19791
|
+
"name": "AparteCommand",
|
|
19792
|
+
"declaration": {
|
|
19793
|
+
"name": "AparteCommand",
|
|
19794
|
+
"module": "./events.js"
|
|
19795
|
+
}
|
|
19796
|
+
},
|
|
19797
|
+
{
|
|
19798
|
+
"kind": "js",
|
|
19799
|
+
"name": "AparteCommandScope",
|
|
19800
|
+
"declaration": {
|
|
19801
|
+
"name": "AparteCommandScope",
|
|
19802
|
+
"module": "./events.js"
|
|
19803
|
+
}
|
|
19804
|
+
},
|
|
19805
|
+
{
|
|
19806
|
+
"kind": "js",
|
|
19807
|
+
"name": "AparteCommandContext",
|
|
19808
|
+
"declaration": {
|
|
19809
|
+
"name": "AparteCommandContext",
|
|
19810
|
+
"module": "./events.js"
|
|
19811
|
+
}
|
|
19812
|
+
},
|
|
19250
19813
|
{
|
|
19251
19814
|
"kind": "js",
|
|
19252
19815
|
"name": "AparteActionEventDetail",
|
|
@@ -20685,6 +21248,100 @@
|
|
|
20685
21248
|
}
|
|
20686
21249
|
]
|
|
20687
21250
|
},
|
|
21251
|
+
{
|
|
21252
|
+
"kind": "javascript-module",
|
|
21253
|
+
"path": "src/utils/place-floating.ts",
|
|
21254
|
+
"declarations": [
|
|
21255
|
+
{
|
|
21256
|
+
"kind": "function",
|
|
21257
|
+
"name": "placeFloating",
|
|
21258
|
+
"return": {
|
|
21259
|
+
"type": {
|
|
21260
|
+
"text": "void"
|
|
21261
|
+
}
|
|
21262
|
+
},
|
|
21263
|
+
"parameters": [
|
|
21264
|
+
{
|
|
21265
|
+
"name": "anchor",
|
|
21266
|
+
"type": {
|
|
21267
|
+
"text": "Pick<DOMRect, 'top' | 'bottom' | 'left' | 'right'>"
|
|
21268
|
+
}
|
|
21269
|
+
},
|
|
21270
|
+
{
|
|
21271
|
+
"name": "floating",
|
|
21272
|
+
"type": {
|
|
21273
|
+
"text": "HTMLElement"
|
|
21274
|
+
}
|
|
21275
|
+
},
|
|
21276
|
+
{
|
|
21277
|
+
"name": "options",
|
|
21278
|
+
"default": "{}",
|
|
21279
|
+
"type": {
|
|
21280
|
+
"text": "AparteFloatingOptions"
|
|
21281
|
+
}
|
|
21282
|
+
}
|
|
21283
|
+
],
|
|
21284
|
+
"description": "Writes `top` and `left` on a `position: fixed` box, turning it to the other side when the\nwindow ends first. It measures once: a caller closes the box on scroll or resize, or calls\nthis again."
|
|
21285
|
+
}
|
|
21286
|
+
],
|
|
21287
|
+
"exports": [
|
|
21288
|
+
{
|
|
21289
|
+
"kind": "js",
|
|
21290
|
+
"name": "placeFloating",
|
|
21291
|
+
"declaration": {
|
|
21292
|
+
"name": "placeFloating",
|
|
21293
|
+
"module": "src/utils/place-floating.ts"
|
|
21294
|
+
}
|
|
21295
|
+
}
|
|
21296
|
+
]
|
|
21297
|
+
},
|
|
21298
|
+
{
|
|
21299
|
+
"kind": "javascript-module",
|
|
21300
|
+
"path": "src/utils/plural.ts",
|
|
21301
|
+
"declarations": [
|
|
21302
|
+
{
|
|
21303
|
+
"kind": "function",
|
|
21304
|
+
"name": "pluralize",
|
|
21305
|
+
"return": {
|
|
21306
|
+
"type": {
|
|
21307
|
+
"text": "string"
|
|
21308
|
+
}
|
|
21309
|
+
},
|
|
21310
|
+
"parameters": [
|
|
21311
|
+
{
|
|
21312
|
+
"name": "forms",
|
|
21313
|
+
"type": {
|
|
21314
|
+
"text": "string"
|
|
21315
|
+
}
|
|
21316
|
+
},
|
|
21317
|
+
{
|
|
21318
|
+
"name": "n",
|
|
21319
|
+
"type": {
|
|
21320
|
+
"text": "number"
|
|
21321
|
+
}
|
|
21322
|
+
},
|
|
21323
|
+
{
|
|
21324
|
+
"name": "tag",
|
|
21325
|
+
"optional": true,
|
|
21326
|
+
"type": {
|
|
21327
|
+
"text": "string"
|
|
21328
|
+
}
|
|
21329
|
+
}
|
|
21330
|
+
],
|
|
21331
|
+
"description": "A plural form out of `\"one:{n} tool|other:{n} tools\"`, by the locale's own rules: Russian\nhas four forms and Japanese one, so the string carries what its language needs, each named\nby its `Intl.PluralRules` category. `other` is the form to fall back on."
|
|
21332
|
+
}
|
|
21333
|
+
],
|
|
21334
|
+
"exports": [
|
|
21335
|
+
{
|
|
21336
|
+
"kind": "js",
|
|
21337
|
+
"name": "pluralize",
|
|
21338
|
+
"declaration": {
|
|
21339
|
+
"name": "pluralize",
|
|
21340
|
+
"module": "src/utils/plural.ts"
|
|
21341
|
+
}
|
|
21342
|
+
}
|
|
21343
|
+
]
|
|
21344
|
+
},
|
|
20688
21345
|
{
|
|
20689
21346
|
"kind": "javascript-module",
|
|
20690
21347
|
"path": "src/utils/presence.ts",
|
|
@@ -21647,6 +22304,14 @@
|
|
|
21647
22304
|
"privacy": "private",
|
|
21648
22305
|
"default": "''"
|
|
21649
22306
|
},
|
|
22307
|
+
{
|
|
22308
|
+
"kind": "field",
|
|
22309
|
+
"name": "_tokens",
|
|
22310
|
+
"type": {
|
|
22311
|
+
"text": "readonly AparteMessageToken[] | undefined"
|
|
22312
|
+
},
|
|
22313
|
+
"privacy": "private"
|
|
22314
|
+
},
|
|
21650
22315
|
{
|
|
21651
22316
|
"kind": "field",
|
|
21652
22317
|
"name": "_streaming",
|
|
@@ -22223,6 +22888,53 @@
|
|
|
22223
22888
|
],
|
|
22224
22889
|
"description": "Append a token chunk (for streaming)"
|
|
22225
22890
|
},
|
|
22891
|
+
{
|
|
22892
|
+
"kind": "method",
|
|
22893
|
+
"name": "_askFeedbackReason",
|
|
22894
|
+
"privacy": "private",
|
|
22895
|
+
"return": {
|
|
22896
|
+
"type": {
|
|
22897
|
+
"text": "void"
|
|
22898
|
+
}
|
|
22899
|
+
},
|
|
22900
|
+
"parameters": [
|
|
22901
|
+
{
|
|
22902
|
+
"name": "messageId",
|
|
22903
|
+
"type": {
|
|
22904
|
+
"text": "string"
|
|
22905
|
+
}
|
|
22906
|
+
}
|
|
22907
|
+
],
|
|
22908
|
+
"description": "The row under the action bar that asks why, when the app listed reasons."
|
|
22909
|
+
},
|
|
22910
|
+
{
|
|
22911
|
+
"kind": "method",
|
|
22912
|
+
"name": "setTokens",
|
|
22913
|
+
"return": {
|
|
22914
|
+
"type": {
|
|
22915
|
+
"text": "void"
|
|
22916
|
+
}
|
|
22917
|
+
},
|
|
22918
|
+
"parameters": [
|
|
22919
|
+
{
|
|
22920
|
+
"name": "tokens",
|
|
22921
|
+
"type": {
|
|
22922
|
+
"text": "readonly AparteMessageToken[] | undefined"
|
|
22923
|
+
}
|
|
22924
|
+
}
|
|
22925
|
+
],
|
|
22926
|
+
"description": "The tokens a user message was written with, drawn as they looked in the composer."
|
|
22927
|
+
},
|
|
22928
|
+
{
|
|
22929
|
+
"kind": "method",
|
|
22930
|
+
"name": "_drawTokens",
|
|
22931
|
+
"privacy": "private",
|
|
22932
|
+
"return": {
|
|
22933
|
+
"type": {
|
|
22934
|
+
"text": "void"
|
|
22935
|
+
}
|
|
22936
|
+
}
|
|
22937
|
+
},
|
|
22226
22938
|
{
|
|
22227
22939
|
"kind": "method",
|
|
22228
22940
|
"name": "setContent",
|
|
@@ -22649,6 +23361,145 @@
|
|
|
22649
23361
|
}
|
|
22650
23362
|
]
|
|
22651
23363
|
},
|
|
23364
|
+
{
|
|
23365
|
+
"kind": "method",
|
|
23366
|
+
"name": "_turnRole",
|
|
23367
|
+
"privacy": "private",
|
|
23368
|
+
"return": {
|
|
23369
|
+
"type": {
|
|
23370
|
+
"text": "TurnRole"
|
|
23371
|
+
}
|
|
23372
|
+
},
|
|
23373
|
+
"parameters": [
|
|
23374
|
+
{
|
|
23375
|
+
"name": "segment",
|
|
23376
|
+
"type": {
|
|
23377
|
+
"text": "AparteSegment"
|
|
23378
|
+
}
|
|
23379
|
+
}
|
|
23380
|
+
],
|
|
23381
|
+
"description": "Whether a segment joins a turn's fold, is passed over by it, or ends it."
|
|
23382
|
+
},
|
|
23383
|
+
{
|
|
23384
|
+
"kind": "method",
|
|
23385
|
+
"name": "_turnHolding",
|
|
23386
|
+
"privacy": "private",
|
|
23387
|
+
"return": {
|
|
23388
|
+
"type": {
|
|
23389
|
+
"text": "HTMLElement | null"
|
|
23390
|
+
}
|
|
23391
|
+
},
|
|
23392
|
+
"parameters": [
|
|
23393
|
+
{
|
|
23394
|
+
"name": "row",
|
|
23395
|
+
"type": {
|
|
23396
|
+
"text": "HTMLElement | undefined"
|
|
23397
|
+
}
|
|
23398
|
+
}
|
|
23399
|
+
],
|
|
23400
|
+
"description": "The fold a drawn row sits in, or null when it is a direct child."
|
|
23401
|
+
},
|
|
23402
|
+
{
|
|
23403
|
+
"kind": "method",
|
|
23404
|
+
"name": "_createTurn",
|
|
23405
|
+
"privacy": "private",
|
|
23406
|
+
"return": {
|
|
23407
|
+
"type": {
|
|
23408
|
+
"text": "HTMLElement"
|
|
23409
|
+
}
|
|
23410
|
+
}
|
|
23411
|
+
},
|
|
23412
|
+
{
|
|
23413
|
+
"kind": "method",
|
|
23414
|
+
"name": "_syncTurns",
|
|
23415
|
+
"privacy": "private",
|
|
23416
|
+
"return": {
|
|
23417
|
+
"type": {
|
|
23418
|
+
"text": "void"
|
|
23419
|
+
}
|
|
23420
|
+
},
|
|
23421
|
+
"description": "Fold each run of steps behind its line, by moving the rows already drawn: a moved\n`<details>` keeps its open state, a redraw would lose it. Called whenever the plan can\nchange, never per token. A fold is found again by its members, not by its place, so one\nthat grows or splits keeps its own open state."
|
|
23422
|
+
},
|
|
23423
|
+
{
|
|
23424
|
+
"kind": "method",
|
|
23425
|
+
"name": "_labelTurn",
|
|
23426
|
+
"privacy": "private",
|
|
23427
|
+
"return": {
|
|
23428
|
+
"type": {
|
|
23429
|
+
"text": "void"
|
|
23430
|
+
}
|
|
23431
|
+
},
|
|
23432
|
+
"parameters": [
|
|
23433
|
+
{
|
|
23434
|
+
"name": "turn",
|
|
23435
|
+
"type": {
|
|
23436
|
+
"text": "HTMLElement"
|
|
23437
|
+
}
|
|
23438
|
+
},
|
|
23439
|
+
{
|
|
23440
|
+
"name": "members",
|
|
23441
|
+
"type": {
|
|
23442
|
+
"text": "AparteSegment[]"
|
|
23443
|
+
}
|
|
23444
|
+
},
|
|
23445
|
+
{
|
|
23446
|
+
"name": "trailing",
|
|
23447
|
+
"type": {
|
|
23448
|
+
"text": "boolean"
|
|
23449
|
+
}
|
|
23450
|
+
},
|
|
23451
|
+
{
|
|
23452
|
+
"name": "openWhileRunning",
|
|
23453
|
+
"type": {
|
|
23454
|
+
"text": "boolean"
|
|
23455
|
+
}
|
|
23456
|
+
}
|
|
23457
|
+
],
|
|
23458
|
+
"description": "The fold's one line: what it is doing while it works, what it did once it has."
|
|
23459
|
+
},
|
|
23460
|
+
{
|
|
23461
|
+
"kind": "method",
|
|
23462
|
+
"name": "_turnOutcome",
|
|
23463
|
+
"privacy": "private",
|
|
23464
|
+
"return": {
|
|
23465
|
+
"type": {
|
|
23466
|
+
"text": "string"
|
|
23467
|
+
}
|
|
23468
|
+
},
|
|
23469
|
+
"parameters": [
|
|
23470
|
+
{
|
|
23471
|
+
"name": "steps",
|
|
23472
|
+
"type": {
|
|
23473
|
+
"text": "AparteSegment[]"
|
|
23474
|
+
}
|
|
23475
|
+
},
|
|
23476
|
+
{
|
|
23477
|
+
"name": "callCount",
|
|
23478
|
+
"type": {
|
|
23479
|
+
"text": "number"
|
|
23480
|
+
}
|
|
23481
|
+
}
|
|
23482
|
+
]
|
|
23483
|
+
},
|
|
23484
|
+
{
|
|
23485
|
+
"kind": "method",
|
|
23486
|
+
"name": "_stepName",
|
|
23487
|
+
"privacy": "private",
|
|
23488
|
+
"return": {
|
|
23489
|
+
"type": {
|
|
23490
|
+
"text": "string"
|
|
23491
|
+
}
|
|
23492
|
+
},
|
|
23493
|
+
"parameters": [
|
|
23494
|
+
{
|
|
23495
|
+
"name": "call",
|
|
23496
|
+
"type": {
|
|
23497
|
+
"text": "AparteToolCallSegment"
|
|
23498
|
+
}
|
|
23499
|
+
}
|
|
23500
|
+
],
|
|
23501
|
+
"description": "What a call goes by on screen: the label the app gave it, else its identifier."
|
|
23502
|
+
},
|
|
22652
23503
|
{
|
|
22653
23504
|
"kind": "method",
|
|
22654
23505
|
"name": "_applySegmentUpdate",
|
|
@@ -23167,6 +24018,13 @@
|
|
|
23167
24018
|
}
|
|
23168
24019
|
],
|
|
23169
24020
|
"events": [
|
|
24021
|
+
{
|
|
24022
|
+
"name": "aparte-feedback-reason",
|
|
24023
|
+
"type": {
|
|
24024
|
+
"text": "CustomEvent<AparteFeedbackReasonEventDetail>"
|
|
24025
|
+
},
|
|
24026
|
+
"description": "The reason picked after a thumbs-down."
|
|
24027
|
+
},
|
|
23170
24028
|
{
|
|
23171
24029
|
"name": "aparte-attachment-preview",
|
|
23172
24030
|
"type": {
|
|
@@ -23410,6 +24268,39 @@
|
|
|
23410
24268
|
}
|
|
23411
24269
|
]
|
|
23412
24270
|
},
|
|
24271
|
+
{
|
|
24272
|
+
"kind": "javascript-module",
|
|
24273
|
+
"path": "src/components/bubble/feedback-reasons.ts",
|
|
24274
|
+
"declarations": [
|
|
24275
|
+
{
|
|
24276
|
+
"kind": "function",
|
|
24277
|
+
"name": "buildFeedbackReasons",
|
|
24278
|
+
"return": {
|
|
24279
|
+
"type": {
|
|
24280
|
+
"text": "HTMLElement"
|
|
24281
|
+
}
|
|
24282
|
+
},
|
|
24283
|
+
"parameters": [
|
|
24284
|
+
{
|
|
24285
|
+
"name": "options",
|
|
24286
|
+
"type": {
|
|
24287
|
+
"text": "FeedbackReasonsOptions"
|
|
24288
|
+
}
|
|
24289
|
+
}
|
|
24290
|
+
]
|
|
24291
|
+
}
|
|
24292
|
+
],
|
|
24293
|
+
"exports": [
|
|
24294
|
+
{
|
|
24295
|
+
"kind": "js",
|
|
24296
|
+
"name": "buildFeedbackReasons",
|
|
24297
|
+
"declaration": {
|
|
24298
|
+
"name": "buildFeedbackReasons",
|
|
24299
|
+
"module": "src/components/bubble/feedback-reasons.ts"
|
|
24300
|
+
}
|
|
24301
|
+
}
|
|
24302
|
+
]
|
|
24303
|
+
},
|
|
23413
24304
|
{
|
|
23414
24305
|
"kind": "javascript-module",
|
|
23415
24306
|
"path": "src/components/bubble/index.ts",
|
|
@@ -23441,6 +24332,150 @@
|
|
|
23441
24332
|
}
|
|
23442
24333
|
]
|
|
23443
24334
|
},
|
|
24335
|
+
{
|
|
24336
|
+
"kind": "javascript-module",
|
|
24337
|
+
"path": "src/components/bubble/message-tokens.ts",
|
|
24338
|
+
"declarations": [
|
|
24339
|
+
{
|
|
24340
|
+
"kind": "function",
|
|
24341
|
+
"name": "drawMessageTokens",
|
|
24342
|
+
"return": {
|
|
24343
|
+
"type": {
|
|
24344
|
+
"text": "void"
|
|
24345
|
+
}
|
|
24346
|
+
},
|
|
24347
|
+
"parameters": [
|
|
24348
|
+
{
|
|
24349
|
+
"name": "root",
|
|
24350
|
+
"type": {
|
|
24351
|
+
"text": "Element"
|
|
24352
|
+
}
|
|
24353
|
+
},
|
|
24354
|
+
{
|
|
24355
|
+
"name": "content",
|
|
24356
|
+
"type": {
|
|
24357
|
+
"text": "string"
|
|
24358
|
+
}
|
|
24359
|
+
},
|
|
24360
|
+
{
|
|
24361
|
+
"name": "tokens",
|
|
24362
|
+
"type": {
|
|
24363
|
+
"text": "readonly AparteMessageToken[]"
|
|
24364
|
+
}
|
|
24365
|
+
}
|
|
24366
|
+
],
|
|
24367
|
+
"description": "Last first, so that the earlier occurrences are still text when their turn comes."
|
|
24368
|
+
}
|
|
24369
|
+
],
|
|
24370
|
+
"exports": [
|
|
24371
|
+
{
|
|
24372
|
+
"kind": "js",
|
|
24373
|
+
"name": "drawMessageTokens",
|
|
24374
|
+
"declaration": {
|
|
24375
|
+
"name": "drawMessageTokens",
|
|
24376
|
+
"module": "src/components/bubble/message-tokens.ts"
|
|
24377
|
+
}
|
|
24378
|
+
}
|
|
24379
|
+
]
|
|
24380
|
+
},
|
|
24381
|
+
{
|
|
24382
|
+
"kind": "javascript-module",
|
|
24383
|
+
"path": "src/components/bubble/turn-groups.ts",
|
|
24384
|
+
"declarations": [
|
|
24385
|
+
{
|
|
24386
|
+
"kind": "function",
|
|
24387
|
+
"name": "planTurns",
|
|
24388
|
+
"return": {
|
|
24389
|
+
"type": {
|
|
24390
|
+
"text": "TurnRun[]"
|
|
24391
|
+
}
|
|
24392
|
+
},
|
|
24393
|
+
"parameters": [
|
|
24394
|
+
{
|
|
24395
|
+
"name": "items",
|
|
24396
|
+
"type": {
|
|
24397
|
+
"text": "readonly T[]"
|
|
24398
|
+
}
|
|
24399
|
+
},
|
|
24400
|
+
{
|
|
24401
|
+
"name": "roleOf",
|
|
24402
|
+
"type": {
|
|
24403
|
+
"text": "(item: T) => TurnRole"
|
|
24404
|
+
}
|
|
24405
|
+
}
|
|
24406
|
+
],
|
|
24407
|
+
"description": "The runs of two or more folding items: one alone stays as it is, a fold would only hide it."
|
|
24408
|
+
},
|
|
24409
|
+
{
|
|
24410
|
+
"kind": "function",
|
|
24411
|
+
"name": "rowOf",
|
|
24412
|
+
"return": {
|
|
24413
|
+
"type": {
|
|
24414
|
+
"text": "HTMLElement | null"
|
|
24415
|
+
}
|
|
24416
|
+
},
|
|
24417
|
+
"parameters": [
|
|
24418
|
+
{
|
|
24419
|
+
"name": "container",
|
|
24420
|
+
"type": {
|
|
24421
|
+
"text": "Element"
|
|
24422
|
+
}
|
|
24423
|
+
},
|
|
24424
|
+
{
|
|
24425
|
+
"name": "segmentId",
|
|
24426
|
+
"type": {
|
|
24427
|
+
"text": "string"
|
|
24428
|
+
}
|
|
24429
|
+
}
|
|
24430
|
+
],
|
|
24431
|
+
"description": "A row by its segment id, either directly in the container or one fold down. Two fixed levels\nand nothing deeper: the model's prose is drawn INSIDE a row and keeps its `data-*` attributes,\nand a tool segment's id is one the model chooses, so a descendant query would let a decoy in\nearlier prose take an update meant for the real row (see `segment-lookup-scope.test.ts`)."
|
|
24432
|
+
},
|
|
24433
|
+
{
|
|
24434
|
+
"kind": "function",
|
|
24435
|
+
"name": "turnDuration",
|
|
24436
|
+
"return": {
|
|
24437
|
+
"type": {
|
|
24438
|
+
"text": "number | undefined"
|
|
24439
|
+
}
|
|
24440
|
+
},
|
|
24441
|
+
"parameters": [
|
|
24442
|
+
{
|
|
24443
|
+
"name": "members",
|
|
24444
|
+
"type": {
|
|
24445
|
+
"text": "readonly AparteSegment[]"
|
|
24446
|
+
}
|
|
24447
|
+
}
|
|
24448
|
+
],
|
|
24449
|
+
"description": "From the first start to the last end, or nothing when a step was never timed (a stored turn)."
|
|
24450
|
+
}
|
|
24451
|
+
],
|
|
24452
|
+
"exports": [
|
|
24453
|
+
{
|
|
24454
|
+
"kind": "js",
|
|
24455
|
+
"name": "planTurns",
|
|
24456
|
+
"declaration": {
|
|
24457
|
+
"name": "planTurns",
|
|
24458
|
+
"module": "src/components/bubble/turn-groups.ts"
|
|
24459
|
+
}
|
|
24460
|
+
},
|
|
24461
|
+
{
|
|
24462
|
+
"kind": "js",
|
|
24463
|
+
"name": "rowOf",
|
|
24464
|
+
"declaration": {
|
|
24465
|
+
"name": "rowOf",
|
|
24466
|
+
"module": "src/components/bubble/turn-groups.ts"
|
|
24467
|
+
}
|
|
24468
|
+
},
|
|
24469
|
+
{
|
|
24470
|
+
"kind": "js",
|
|
24471
|
+
"name": "turnDuration",
|
|
24472
|
+
"declaration": {
|
|
24473
|
+
"name": "turnDuration",
|
|
24474
|
+
"module": "src/components/bubble/turn-groups.ts"
|
|
24475
|
+
}
|
|
24476
|
+
}
|
|
24477
|
+
]
|
|
24478
|
+
},
|
|
23444
24479
|
{
|
|
23445
24480
|
"kind": "javascript-module",
|
|
23446
24481
|
"path": "src/components/chat/aparte-chat.ts",
|
|
@@ -24311,6 +25346,30 @@
|
|
|
24311
25346
|
}
|
|
24312
25347
|
}
|
|
24313
25348
|
},
|
|
25349
|
+
{
|
|
25350
|
+
"kind": "method",
|
|
25351
|
+
"name": "showState",
|
|
25352
|
+
"return": {
|
|
25353
|
+
"type": {
|
|
25354
|
+
"text": "void"
|
|
25355
|
+
}
|
|
25356
|
+
},
|
|
25357
|
+
"parameters": [
|
|
25358
|
+
{
|
|
25359
|
+
"name": "file",
|
|
25360
|
+
"type": {
|
|
25361
|
+
"text": "File"
|
|
25362
|
+
}
|
|
25363
|
+
},
|
|
25364
|
+
{
|
|
25365
|
+
"name": "state",
|
|
25366
|
+
"type": {
|
|
25367
|
+
"text": "AparteAttachmentState | null"
|
|
25368
|
+
}
|
|
25369
|
+
}
|
|
25370
|
+
],
|
|
25371
|
+
"description": "Draw how a file's upload is going on its tile."
|
|
25372
|
+
},
|
|
24314
25373
|
{
|
|
24315
25374
|
"kind": "method",
|
|
24316
25375
|
"name": "_revokeUrls",
|
|
@@ -24695,6 +25754,111 @@
|
|
|
24695
25754
|
},
|
|
24696
25755
|
"description": "The editor's text, with `<br>` serialized back to newlines — `textContent`\nalone would collapse a multi-line draft onto a single line."
|
|
24697
25756
|
},
|
|
25757
|
+
{
|
|
25758
|
+
"kind": "method",
|
|
25759
|
+
"name": "getTokens",
|
|
25760
|
+
"return": {
|
|
25761
|
+
"type": {
|
|
25762
|
+
"text": "AparteMessageToken[]"
|
|
25763
|
+
}
|
|
25764
|
+
},
|
|
25765
|
+
"description": "The tokens in the draft, with their place in getValue."
|
|
25766
|
+
},
|
|
25767
|
+
{
|
|
25768
|
+
"kind": "method",
|
|
25769
|
+
"name": "getCaret",
|
|
25770
|
+
"return": {
|
|
25771
|
+
"type": {
|
|
25772
|
+
"text": "AparteComposerCaret | null"
|
|
25773
|
+
}
|
|
25774
|
+
},
|
|
25775
|
+
"description": "The caret, or `null` when the editor does not hold a collapsed selection."
|
|
25776
|
+
},
|
|
25777
|
+
{
|
|
25778
|
+
"kind": "method",
|
|
25779
|
+
"name": "getRangeRect",
|
|
25780
|
+
"return": {
|
|
25781
|
+
"type": {
|
|
25782
|
+
"text": "DOMRect | null"
|
|
25783
|
+
}
|
|
25784
|
+
},
|
|
25785
|
+
"parameters": [
|
|
25786
|
+
{
|
|
25787
|
+
"name": "from",
|
|
25788
|
+
"type": {
|
|
25789
|
+
"text": "number"
|
|
25790
|
+
}
|
|
25791
|
+
},
|
|
25792
|
+
{
|
|
25793
|
+
"name": "to",
|
|
25794
|
+
"default": "from",
|
|
25795
|
+
"type": {
|
|
25796
|
+
"text": "number"
|
|
25797
|
+
}
|
|
25798
|
+
}
|
|
25799
|
+
],
|
|
25800
|
+
"description": "The box of a range of the draft on screen, to anchor something to the text."
|
|
25801
|
+
},
|
|
25802
|
+
{
|
|
25803
|
+
"kind": "method",
|
|
25804
|
+
"name": "replaceRange",
|
|
25805
|
+
"return": {
|
|
25806
|
+
"type": {
|
|
25807
|
+
"text": "void"
|
|
25808
|
+
}
|
|
25809
|
+
},
|
|
25810
|
+
"parameters": [
|
|
25811
|
+
{
|
|
25812
|
+
"name": "from",
|
|
25813
|
+
"type": {
|
|
25814
|
+
"text": "number"
|
|
25815
|
+
}
|
|
25816
|
+
},
|
|
25817
|
+
{
|
|
25818
|
+
"name": "to",
|
|
25819
|
+
"type": {
|
|
25820
|
+
"text": "number"
|
|
25821
|
+
}
|
|
25822
|
+
},
|
|
25823
|
+
{
|
|
25824
|
+
"name": "text",
|
|
25825
|
+
"type": {
|
|
25826
|
+
"text": "string"
|
|
25827
|
+
}
|
|
25828
|
+
}
|
|
25829
|
+
],
|
|
25830
|
+
"description": "Replace a range of the draft with text, and leave the caret after it."
|
|
25831
|
+
},
|
|
25832
|
+
{
|
|
25833
|
+
"kind": "method",
|
|
25834
|
+
"name": "insertToken",
|
|
25835
|
+
"return": {
|
|
25836
|
+
"type": {
|
|
25837
|
+
"text": "void"
|
|
25838
|
+
}
|
|
25839
|
+
},
|
|
25840
|
+
"parameters": [
|
|
25841
|
+
{
|
|
25842
|
+
"name": "from",
|
|
25843
|
+
"type": {
|
|
25844
|
+
"text": "number"
|
|
25845
|
+
}
|
|
25846
|
+
},
|
|
25847
|
+
{
|
|
25848
|
+
"name": "to",
|
|
25849
|
+
"type": {
|
|
25850
|
+
"text": "number"
|
|
25851
|
+
}
|
|
25852
|
+
},
|
|
25853
|
+
{
|
|
25854
|
+
"name": "token",
|
|
25855
|
+
"type": {
|
|
25856
|
+
"text": "AparteComposerToken"
|
|
25857
|
+
}
|
|
25858
|
+
}
|
|
25859
|
+
],
|
|
25860
|
+
"description": "Replace a range of the draft with a token, followed by a space for the caret to land\non: a caret cannot rest after something that is not editable at the end of a line."
|
|
25861
|
+
},
|
|
24698
25862
|
{
|
|
24699
25863
|
"kind": "method",
|
|
24700
25864
|
"name": "setValue",
|
|
@@ -24773,6 +25937,105 @@
|
|
|
24773
25937
|
}
|
|
24774
25938
|
}
|
|
24775
25939
|
},
|
|
25940
|
+
{
|
|
25941
|
+
"kind": "field",
|
|
25942
|
+
"name": "_tokens",
|
|
25943
|
+
"privacy": "private",
|
|
25944
|
+
"readonly": true,
|
|
25945
|
+
"default": "new Map<string, AparteComposerToken>()",
|
|
25946
|
+
"description": "What each pill in the editor stands for; a pill brought back by Undo finds its data here."
|
|
25947
|
+
},
|
|
25948
|
+
{
|
|
25949
|
+
"kind": "field",
|
|
25950
|
+
"name": "_lastTokenId",
|
|
25951
|
+
"type": {
|
|
25952
|
+
"text": "number"
|
|
25953
|
+
},
|
|
25954
|
+
"privacy": "private",
|
|
25955
|
+
"default": "0"
|
|
25956
|
+
},
|
|
25957
|
+
{
|
|
25958
|
+
"kind": "method",
|
|
25959
|
+
"name": "_write",
|
|
25960
|
+
"privacy": "private",
|
|
25961
|
+
"return": {
|
|
25962
|
+
"type": {
|
|
25963
|
+
"text": "void"
|
|
25964
|
+
}
|
|
25965
|
+
},
|
|
25966
|
+
"parameters": [
|
|
25967
|
+
{
|
|
25968
|
+
"name": "from",
|
|
25969
|
+
"type": {
|
|
25970
|
+
"text": "number"
|
|
25971
|
+
}
|
|
25972
|
+
},
|
|
25973
|
+
{
|
|
25974
|
+
"name": "to",
|
|
25975
|
+
"type": {
|
|
25976
|
+
"text": "number"
|
|
25977
|
+
}
|
|
25978
|
+
},
|
|
25979
|
+
{
|
|
25980
|
+
"name": "edit",
|
|
25981
|
+
"type": {
|
|
25982
|
+
"text": "() => boolean"
|
|
25983
|
+
}
|
|
25984
|
+
},
|
|
25985
|
+
{
|
|
25986
|
+
"name": "fallback",
|
|
25987
|
+
"type": {
|
|
25988
|
+
"text": "() => Node"
|
|
25989
|
+
}
|
|
25990
|
+
}
|
|
25991
|
+
],
|
|
25992
|
+
"description": "Through the browser's own edit commands, or Undo would not know about the change;\nstraight on the DOM where it has none."
|
|
25993
|
+
},
|
|
25994
|
+
{
|
|
25995
|
+
"kind": "method",
|
|
25996
|
+
"name": "_exec",
|
|
25997
|
+
"privacy": "private",
|
|
25998
|
+
"return": {
|
|
25999
|
+
"type": {
|
|
26000
|
+
"text": "boolean"
|
|
26001
|
+
}
|
|
26002
|
+
},
|
|
26003
|
+
"parameters": [
|
|
26004
|
+
{
|
|
26005
|
+
"name": "command",
|
|
26006
|
+
"type": {
|
|
26007
|
+
"text": "string"
|
|
26008
|
+
}
|
|
26009
|
+
},
|
|
26010
|
+
{
|
|
26011
|
+
"name": "value",
|
|
26012
|
+
"optional": true,
|
|
26013
|
+
"type": {
|
|
26014
|
+
"text": "string"
|
|
26015
|
+
}
|
|
26016
|
+
}
|
|
26017
|
+
],
|
|
26018
|
+
"description": "A browser edit command, or `false` where there is none: a caller then edits the DOM."
|
|
26019
|
+
},
|
|
26020
|
+
{
|
|
26021
|
+
"kind": "method",
|
|
26022
|
+
"name": "_insertPlain",
|
|
26023
|
+
"privacy": "private",
|
|
26024
|
+
"return": {
|
|
26025
|
+
"type": {
|
|
26026
|
+
"text": "boolean"
|
|
26027
|
+
}
|
|
26028
|
+
},
|
|
26029
|
+
"parameters": [
|
|
26030
|
+
{
|
|
26031
|
+
"name": "text",
|
|
26032
|
+
"type": {
|
|
26033
|
+
"text": "string"
|
|
26034
|
+
}
|
|
26035
|
+
}
|
|
26036
|
+
],
|
|
26037
|
+
"description": "Plain text, as one edit. Several lines go as `<br>`s, because `insertText` makes each\nline a block, and the draft is read flat: the lines would be sent run together."
|
|
26038
|
+
},
|
|
24776
26039
|
{
|
|
24777
26040
|
"kind": "method",
|
|
24778
26041
|
"name": "_getPlaceholder",
|
|
@@ -25252,7 +26515,7 @@
|
|
|
25252
26515
|
"declarations": [
|
|
25253
26516
|
{
|
|
25254
26517
|
"kind": "class",
|
|
25255
|
-
"description": "The composer's bottom row — the strip a mode picker, a model selector or a token\ncounter belongs in, rather than a bar of your own floating below the chat. Purely\nstructural: it lays its children out in a row and gets out of the way.\n\n**Position is the DOM order.** `margin-inline-start: auto` on a child pushes it (and\neverything after it) to the end of the row. That is the whole placement API on\npurpose: there is no `left`/`right` to be wrong about, so the row reads correctly in a\nright-to-left locale without the author thinking about it.\n\nThe controls the row is made of can be any element, or plain text. Nothing is wrapped or\nreordered — the children ARE the row, laid out by flex in DOM order, and they may arrive\nafter connection (a framework commits children in its own order). Non-whitespace TEXT\ncounts as content too, so a hand-written row holding a bare token count stays visible\ninstead of tripping the `data-empty` hide.\n\nThe row is not part of the default `<aparte-chat>` shell — nothing is drawn until you\nput something in it.\n\nIt declares no custom property of its own: the gap, the padding and the top separator\ncome from the global `--aparte-space-*` and `--aparte-border*` tokens, so it inherits a\ntheme rather than exposing knobs to re-set.",
|
|
26518
|
+
"description": "The composer's bottom row — the strip a mode picker, a model selector or a token\ncounter belongs in, rather than a bar of your own floating below the chat. Purely\nstructural: it lays its children out in a row and gets out of the way.\n\n**Position is the DOM order.** `margin-inline-start: auto` on a child pushes it (and\neverything after it) to the end of the row. That is the whole placement API on\npurpose: there is no `left`/`right` to be wrong about, so the row reads correctly in a\nright-to-left locale without the author thinking about it.\n\nThe controls the row is made of can be any element, or plain text. Nothing is wrapped or\nreordered — the children ARE the row, laid out by flex in DOM order, and they may arrive\nafter connection (a framework commits children in its own order). Non-whitespace TEXT\ncounts as content too, so a hand-written row holding a bare token count stays visible\ninstead of tripping the `data-empty` hide.\n\nThe row is not part of the default `<aparte-chat>` shell — nothing is drawn until you\nput something in it.\n\nIt is hidden while an approval or a question is open in the composer: the panel is all\nthere is to answer. A row holding `<aparte-composer-send>` stays, since a written answer\nis sent with it, and so does one you made the panel's host.\n\nIt declares no custom property of its own: the gap, the padding and the top separator\ncome from the global `--aparte-space-*` and `--aparte-border*` tokens, so it inherits a\ntheme rather than exposing knobs to re-set.",
|
|
25256
26519
|
"name": "AparteComposerToolbar",
|
|
25257
26520
|
"members": [
|
|
25258
26521
|
{
|
|
@@ -25320,7 +26583,7 @@
|
|
|
25320
26583
|
"declarations": [
|
|
25321
26584
|
{
|
|
25322
26585
|
"kind": "class",
|
|
25323
|
-
"description": "The root context for every `aparte-composer-*` primitive. It imposes no visual\nlayout — the consumer owns the structure — and holds the shared state the parts\nread: the value, the streaming flag, pending attachments, whether a panel is up.\n\nIt renders nothing of its own — no shadow root, no markup, no default children — so\nan `<aparte-composer>` with nothing inside is an empty block. The parts that need\nthat state locate it with `closest('aparte-composer')`, which is why they may sit at\nany depth and why the opt-in `.aparte-composer-shell` / `.aparte-composer-row`\nwrappers can exist without this element knowing about them.\nNot every part looks it up, though: `<aparte-composer-toolbar>` is purely structural\n— it lays its children out and never resolves this element at all.\n\nWHAT GOES INSIDE — ordinary light-DOM children. Core has no shadow root and no\n`<slot>`, so there is no slot name to write: drop in `<aparte-composer-input>`,\n`<aparte-composer-send>`, `<aparte-composer-cancel>`,\n`<aparte-composer-attachments>`, `<aparte-composer-add-attachment>`,\n`<aparte-composer-action>`, `<aparte-composer-toolbar>`, plus whatever markup you\nwrap them in. Order and nesting are yours. Two behaviours read the tree rather than a\nflag, so they depend on what you put in: `focus()` forwards to the first\n`<aparte-composer-input>` descendant, and `showPanel()` inserts the panel right after\nit (appending to the host when there is none).\n\nA PANEL is neither markup you write nor a named slot: `showPanel()` takes the element,\nstamps it `data-aparte-panel` and inserts it — inside the descendant you marked\n`data-aparte-panel-host` if there is one, else right after the first input —\nand `hidePanel()` removes it. One at a time\n— a second `showPanel()` evicts the first and calls its `onEvict`. While one is up the\nhost carries `[data-panel-active]`, which hides `<aparte-composer-input
|
|
26586
|
+
"description": "The root context for every `aparte-composer-*` primitive. It imposes no visual\nlayout — the consumer owns the structure — and holds the shared state the parts\nread: the value, the streaming flag, pending attachments, whether a panel is up.\n\nIt renders nothing of its own — no shadow root, no markup, no default children — so\nan `<aparte-composer>` with nothing inside is an empty block. The parts that need\nthat state locate it with `closest('aparte-composer')`, which is why they may sit at\nany depth and why the opt-in `.aparte-composer-shell` / `.aparte-composer-row`\nwrappers can exist without this element knowing about them.\nNot every part looks it up, though: `<aparte-composer-toolbar>` is purely structural\n— it lays its children out and never resolves this element at all.\n\nWHAT GOES INSIDE — ordinary light-DOM children. Core has no shadow root and no\n`<slot>`, so there is no slot name to write: drop in `<aparte-composer-input>`,\n`<aparte-composer-send>`, `<aparte-composer-cancel>`,\n`<aparte-composer-attachments>`, `<aparte-composer-add-attachment>`,\n`<aparte-composer-action>`, `<aparte-composer-toolbar>`, plus whatever markup you\nwrap them in. Order and nesting are yours. Two behaviours read the tree rather than a\nflag, so they depend on what you put in: `focus()` forwards to the first\n`<aparte-composer-input>` descendant, and `showPanel()` inserts the panel right after\nit (appending to the host when there is none).\n\nA PANEL is neither markup you write nor a named slot: `showPanel()` takes the element,\nstamps it `data-aparte-panel` and inserts it — inside the descendant you marked\n`data-aparte-panel-host` if there is one, else right after the first input —\nand `hidePanel()` removes it. One at a time\n— a second `showPanel()` evicts the first and calls its `onEvict`. While one is up the\nhost carries `[data-panel-active]`, which hides `<aparte-composer-input>`,\n`<aparte-composer-add-attachment>` and `<aparte-composer-toolbar>` (unless that row\nholds the send button) and leaves the attachments strip in place.\n\nIt is not a transport either. `submit()` trims, checks the gates (disabled, empty,\nno model selected), dispatches `aparte-send` and clears — nothing here talks to a\nmodel, so without `AparteClient` or a listener of your own a send is a dispatched\nevent and no answer. With no panel up it doubles as the stop button: while `streaming`\nit routes to `cancel()`, which is why the `getState` example below keeps a custom send\nbutton clickable rather than disabling it mid-stream. With a panel up it means \"answer\nthe question\" instead — it calls the panel's `onSubmit` and returns, so neither the\nstop branch nor a send is reached.\n\nThe streaming flag comes from WINDOW lifecycle events, filtered by target:\n`aparte-message-start` sets it, and any of `aparte-message-done` /\n`aparte-message-error` / `aparte-message-aborted` clears it (and evicts an open\npanel). `AparteClient` dispatches them on the chat host, bubbling, so they reach\nboth this element's `window` listener and the host-bound readers; a host that runs\nits own loop dispatches the same two (start, done) the same way, with\n`detail.targetId` set to this composer's `target` — that is the whole contract,\ndocumented under\n\"Make the composer follow your turn\" in the bring-your-own-loop guide. On a page\nwith two chats, give the composer a `target` — or put it under a chat host that has\nan `id` — otherwise it answers to every chat's events, and one chat's Stop resets the\nother's composer and evicts its open panel.\n\n`aparte-abort` and `aparte-message-aborted` have to be declared by hand and always\nwill: they go out through `window.dispatchEvent` (they concern the whole page, not\nthis subtree), and the analyser's fallback only recognises `this.dispatchEvent`.",
|
|
25324
26587
|
"name": "AparteComposer",
|
|
25325
26588
|
"cssProperties": [
|
|
25326
26589
|
{
|
|
@@ -25537,7 +26800,7 @@
|
|
|
25537
26800
|
"type": {
|
|
25538
26801
|
"text": "boolean"
|
|
25539
26802
|
},
|
|
25540
|
-
"description": "When false, Shift+Enter submits and a bare Enter inserts a newline —\nthe inverse of the default. Driven by the `submit-on-enter` attribute.",
|
|
26803
|
+
"description": "When false, Shift+Enter submits and a bare Enter inserts a newline —\nthe inverse of the default. Driven by the `submit-on-enter` attribute, and it\nholds in a panel's one-line fields as it does in the editor.",
|
|
25541
26804
|
"readonly": true
|
|
25542
26805
|
},
|
|
25543
26806
|
{
|
|
@@ -25613,6 +26876,75 @@
|
|
|
25613
26876
|
],
|
|
25614
26877
|
"description": "Append files to the pending attachments and notify. Does not de-duplicate."
|
|
25615
26878
|
},
|
|
26879
|
+
{
|
|
26880
|
+
"kind": "method",
|
|
26881
|
+
"name": "setAttachmentState",
|
|
26882
|
+
"return": {
|
|
26883
|
+
"type": {
|
|
26884
|
+
"text": "void"
|
|
26885
|
+
}
|
|
26886
|
+
},
|
|
26887
|
+
"parameters": [
|
|
26888
|
+
{
|
|
26889
|
+
"name": "file",
|
|
26890
|
+
"type": {
|
|
26891
|
+
"text": "File"
|
|
26892
|
+
}
|
|
26893
|
+
},
|
|
26894
|
+
{
|
|
26895
|
+
"name": "state",
|
|
26896
|
+
"type": {
|
|
26897
|
+
"text": "AparteAttachmentState | null"
|
|
26898
|
+
}
|
|
26899
|
+
}
|
|
26900
|
+
],
|
|
26901
|
+
"description": "Show how an attachment's upload is going, for an app that uploads as soon as a file\nis picked. While one is `uploading`, nothing is sent. `null` clears it."
|
|
26902
|
+
},
|
|
26903
|
+
{
|
|
26904
|
+
"kind": "method",
|
|
26905
|
+
"name": "getAttachmentState",
|
|
26906
|
+
"return": {
|
|
26907
|
+
"type": {
|
|
26908
|
+
"text": "AparteAttachmentState | undefined"
|
|
26909
|
+
}
|
|
26910
|
+
},
|
|
26911
|
+
"parameters": [
|
|
26912
|
+
{
|
|
26913
|
+
"name": "file",
|
|
26914
|
+
"type": {
|
|
26915
|
+
"text": "File"
|
|
26916
|
+
}
|
|
26917
|
+
}
|
|
26918
|
+
],
|
|
26919
|
+
"description": "The state setAttachmentState last gave this file."
|
|
26920
|
+
},
|
|
26921
|
+
{
|
|
26922
|
+
"kind": "field",
|
|
26923
|
+
"name": "_attachmentStates",
|
|
26924
|
+
"privacy": "private",
|
|
26925
|
+
"readonly": true,
|
|
26926
|
+
"default": "new WeakMap<File, AparteAttachmentState>()"
|
|
26927
|
+
},
|
|
26928
|
+
{
|
|
26929
|
+
"kind": "field",
|
|
26930
|
+
"name": "_uploading",
|
|
26931
|
+
"type": {
|
|
26932
|
+
"text": "boolean"
|
|
26933
|
+
},
|
|
26934
|
+
"privacy": "private",
|
|
26935
|
+
"readonly": true
|
|
26936
|
+
},
|
|
26937
|
+
{
|
|
26938
|
+
"kind": "method",
|
|
26939
|
+
"name": "_syncUploading",
|
|
26940
|
+
"privacy": "private",
|
|
26941
|
+
"return": {
|
|
26942
|
+
"type": {
|
|
26943
|
+
"text": "void"
|
|
26944
|
+
}
|
|
26945
|
+
},
|
|
26946
|
+
"description": "Reflected for the shipped CSS, the way the model gate is."
|
|
26947
|
+
},
|
|
25616
26948
|
{
|
|
25617
26949
|
"kind": "method",
|
|
25618
26950
|
"name": "removeAttachment",
|
|
@@ -25685,6 +27017,12 @@
|
|
|
25685
27017
|
],
|
|
25686
27018
|
"description": "Remove the panel, tell its owner, and restore the composer's own controls.\n\nWith a `token`, this closes the panel only if that token still owns the slot —\nso a presenter settling late cannot tear down the panel that replaced it. With\nno token it closes whatever is there, which is what a consumer driving the\ncomposer directly means.\n\nThe two forms differ on purpose, and the difference is who already knows:\n\n- **With a matching token** the OWNER is closing its own panel, which is what\n `<aparte-elicitation>`'s `close()` does right after it resolves. It must NOT be\n notified — telling it \"you were evicted\" for a request it just settled would\n fire `onEvict` against a finished promise.\n- **With no token** somebody else is closing a panel they do not own, so the owner\n cannot know and has to be told. That includes the presenter's own defensive\n `hidePanel(undefined)` when it settles before `showPanel` ran: whatever is open\n then belongs to another request, and that request must not orphan."
|
|
25687
27019
|
},
|
|
27020
|
+
{
|
|
27021
|
+
"kind": "field",
|
|
27022
|
+
"name": "_onPanelKeydown",
|
|
27023
|
+
"privacy": "private",
|
|
27024
|
+
"description": "Enter in a panel's one-line field presses the send button, as it does in the editor.\n\nThe panel takes the editor's place and the editor was the only thing listening, so\nwhat a person wrote in a panel went out by mouse alone: Enter added a line to an\napproval's instruction and did nothing in a question's text box. It lives here, once,\nbecause the button is the composer's and so is `submit-on-enter`; `submit()` then\napplies the panel's own gates (no act for the button, nothing written, put aside).\nThe key is cancelled even when nothing can be sent, as the editor does, so an empty\nfield does not fill with blank lines.\n\nSame IME guard as the editor: that Enter confirms a candidate. `defaultPrevented`\nleaves the key to a field that used it, a combobox picking its highlighted row."
|
|
27025
|
+
},
|
|
25688
27026
|
{
|
|
25689
27027
|
"kind": "method",
|
|
25690
27028
|
"name": "_evictPanel",
|
|
@@ -26024,6 +27362,202 @@
|
|
|
26024
27362
|
}
|
|
26025
27363
|
]
|
|
26026
27364
|
},
|
|
27365
|
+
{
|
|
27366
|
+
"kind": "javascript-module",
|
|
27367
|
+
"path": "src/components/composer/composer-tokens.ts",
|
|
27368
|
+
"declarations": [
|
|
27369
|
+
{
|
|
27370
|
+
"kind": "variable",
|
|
27371
|
+
"name": "TOKEN_CHAR",
|
|
27372
|
+
"type": {
|
|
27373
|
+
"text": "string"
|
|
27374
|
+
},
|
|
27375
|
+
"default": "''",
|
|
27376
|
+
"description": "What a token counts as in the flat text."
|
|
27377
|
+
},
|
|
27378
|
+
{
|
|
27379
|
+
"kind": "function",
|
|
27380
|
+
"name": "flatText",
|
|
27381
|
+
"return": {
|
|
27382
|
+
"type": {
|
|
27383
|
+
"text": "string"
|
|
27384
|
+
}
|
|
27385
|
+
},
|
|
27386
|
+
"parameters": [
|
|
27387
|
+
{
|
|
27388
|
+
"name": "editor",
|
|
27389
|
+
"type": {
|
|
27390
|
+
"text": "HTMLElement"
|
|
27391
|
+
}
|
|
27392
|
+
}
|
|
27393
|
+
]
|
|
27394
|
+
},
|
|
27395
|
+
{
|
|
27396
|
+
"kind": "function",
|
|
27397
|
+
"name": "flatOffset",
|
|
27398
|
+
"return": {
|
|
27399
|
+
"type": {
|
|
27400
|
+
"text": "number"
|
|
27401
|
+
}
|
|
27402
|
+
},
|
|
27403
|
+
"parameters": [
|
|
27404
|
+
{
|
|
27405
|
+
"name": "editor",
|
|
27406
|
+
"type": {
|
|
27407
|
+
"text": "HTMLElement"
|
|
27408
|
+
}
|
|
27409
|
+
},
|
|
27410
|
+
{
|
|
27411
|
+
"name": "container",
|
|
27412
|
+
"type": {
|
|
27413
|
+
"text": "Node"
|
|
27414
|
+
}
|
|
27415
|
+
},
|
|
27416
|
+
{
|
|
27417
|
+
"name": "offset",
|
|
27418
|
+
"type": {
|
|
27419
|
+
"text": "number"
|
|
27420
|
+
}
|
|
27421
|
+
}
|
|
27422
|
+
],
|
|
27423
|
+
"description": "The flat offset of a point in the DOM."
|
|
27424
|
+
},
|
|
27425
|
+
{
|
|
27426
|
+
"kind": "function",
|
|
27427
|
+
"name": "flatRange",
|
|
27428
|
+
"return": {
|
|
27429
|
+
"type": {
|
|
27430
|
+
"text": "Range"
|
|
27431
|
+
}
|
|
27432
|
+
},
|
|
27433
|
+
"parameters": [
|
|
27434
|
+
{
|
|
27435
|
+
"name": "editor",
|
|
27436
|
+
"type": {
|
|
27437
|
+
"text": "HTMLElement"
|
|
27438
|
+
}
|
|
27439
|
+
},
|
|
27440
|
+
{
|
|
27441
|
+
"name": "from",
|
|
27442
|
+
"type": {
|
|
27443
|
+
"text": "number"
|
|
27444
|
+
}
|
|
27445
|
+
},
|
|
27446
|
+
{
|
|
27447
|
+
"name": "to",
|
|
27448
|
+
"type": {
|
|
27449
|
+
"text": "number"
|
|
27450
|
+
}
|
|
27451
|
+
}
|
|
27452
|
+
],
|
|
27453
|
+
"description": "A DOM range over two flat offsets."
|
|
27454
|
+
},
|
|
27455
|
+
{
|
|
27456
|
+
"kind": "function",
|
|
27457
|
+
"name": "tokenElement",
|
|
27458
|
+
"return": {
|
|
27459
|
+
"type": {
|
|
27460
|
+
"text": "HTMLElement"
|
|
27461
|
+
}
|
|
27462
|
+
},
|
|
27463
|
+
"parameters": [
|
|
27464
|
+
{
|
|
27465
|
+
"name": "doc",
|
|
27466
|
+
"type": {
|
|
27467
|
+
"text": "Document"
|
|
27468
|
+
}
|
|
27469
|
+
},
|
|
27470
|
+
{
|
|
27471
|
+
"name": "id",
|
|
27472
|
+
"type": {
|
|
27473
|
+
"text": "string"
|
|
27474
|
+
}
|
|
27475
|
+
},
|
|
27476
|
+
{
|
|
27477
|
+
"name": "token",
|
|
27478
|
+
"type": {
|
|
27479
|
+
"text": "AparteComposerToken"
|
|
27480
|
+
}
|
|
27481
|
+
}
|
|
27482
|
+
],
|
|
27483
|
+
"description": "The pill itself: not editable, so a caret goes around it and Backspace takes it whole."
|
|
27484
|
+
},
|
|
27485
|
+
{
|
|
27486
|
+
"kind": "function",
|
|
27487
|
+
"name": "serializeDraft",
|
|
27488
|
+
"return": {
|
|
27489
|
+
"type": {
|
|
27490
|
+
"text": "{ value: string; tokens: AparteMessageToken[] }"
|
|
27491
|
+
}
|
|
27492
|
+
},
|
|
27493
|
+
"parameters": [
|
|
27494
|
+
{
|
|
27495
|
+
"name": "editor",
|
|
27496
|
+
"type": {
|
|
27497
|
+
"text": "HTMLElement"
|
|
27498
|
+
}
|
|
27499
|
+
},
|
|
27500
|
+
{
|
|
27501
|
+
"name": "known",
|
|
27502
|
+
"type": {
|
|
27503
|
+
"text": "ReadonlyMap<string, AparteComposerToken>"
|
|
27504
|
+
}
|
|
27505
|
+
}
|
|
27506
|
+
],
|
|
27507
|
+
"description": "The message the draft will send, and where each token ended up in it."
|
|
27508
|
+
}
|
|
27509
|
+
],
|
|
27510
|
+
"exports": [
|
|
27511
|
+
{
|
|
27512
|
+
"kind": "js",
|
|
27513
|
+
"name": "TOKEN_CHAR",
|
|
27514
|
+
"declaration": {
|
|
27515
|
+
"name": "TOKEN_CHAR",
|
|
27516
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27517
|
+
}
|
|
27518
|
+
},
|
|
27519
|
+
{
|
|
27520
|
+
"kind": "js",
|
|
27521
|
+
"name": "flatText",
|
|
27522
|
+
"declaration": {
|
|
27523
|
+
"name": "flatText",
|
|
27524
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27525
|
+
}
|
|
27526
|
+
},
|
|
27527
|
+
{
|
|
27528
|
+
"kind": "js",
|
|
27529
|
+
"name": "flatOffset",
|
|
27530
|
+
"declaration": {
|
|
27531
|
+
"name": "flatOffset",
|
|
27532
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27533
|
+
}
|
|
27534
|
+
},
|
|
27535
|
+
{
|
|
27536
|
+
"kind": "js",
|
|
27537
|
+
"name": "flatRange",
|
|
27538
|
+
"declaration": {
|
|
27539
|
+
"name": "flatRange",
|
|
27540
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27541
|
+
}
|
|
27542
|
+
},
|
|
27543
|
+
{
|
|
27544
|
+
"kind": "js",
|
|
27545
|
+
"name": "tokenElement",
|
|
27546
|
+
"declaration": {
|
|
27547
|
+
"name": "tokenElement",
|
|
27548
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27549
|
+
}
|
|
27550
|
+
},
|
|
27551
|
+
{
|
|
27552
|
+
"kind": "js",
|
|
27553
|
+
"name": "serializeDraft",
|
|
27554
|
+
"declaration": {
|
|
27555
|
+
"name": "serializeDraft",
|
|
27556
|
+
"module": "src/components/composer/composer-tokens.ts"
|
|
27557
|
+
}
|
|
27558
|
+
}
|
|
27559
|
+
]
|
|
27560
|
+
},
|
|
26027
27561
|
{
|
|
26028
27562
|
"kind": "javascript-module",
|
|
26029
27563
|
"path": "src/components/composer/index.ts",
|
|
@@ -32701,6 +34235,17 @@
|
|
|
32701
34235
|
}
|
|
32702
34236
|
]
|
|
32703
34237
|
},
|
|
34238
|
+
{
|
|
34239
|
+
"kind": "method",
|
|
34240
|
+
"name": "_syncDateSeparators",
|
|
34241
|
+
"privacy": "private",
|
|
34242
|
+
"return": {
|
|
34243
|
+
"type": {
|
|
34244
|
+
"text": "void"
|
|
34245
|
+
}
|
|
34246
|
+
},
|
|
34247
|
+
"description": "The day on the first bubble of each one, by what is on screen: a branch has its own days."
|
|
34248
|
+
},
|
|
32704
34249
|
{
|
|
32705
34250
|
"kind": "method",
|
|
32706
34251
|
"name": "_reRenderActivePath",
|