@aparte/core 0.9.0 → 0.11.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 +54 -33
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +6 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +49 -7
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +8 -4
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +5 -5
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +16 -4
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts +5 -3
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-cancel.d.ts +10 -2
- package/dist/components/composer/aparte-composer-cancel.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +8 -5
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts +34 -2
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-toolbar.d.ts +3 -3
- package/dist/components/composer/aparte-composer.d.ts +54 -10
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +19 -12
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +22 -0
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/status/aparte-chat-status.d.ts +9 -0
- package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +18 -5
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +54 -2
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/config-subscribe.d.ts +4 -0
- package/dist/config/config-subscribe.d.ts.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/locale.d.ts +141 -0
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/config/sanitize.d.ts.map +1 -1
- package/dist/custom-elements.json +5905 -4694
- package/dist/elicitation/approval-panel.d.ts +42 -0
- package/dist/elicitation/approval-panel.d.ts.map +1 -0
- package/dist/elicitation/index.d.ts +4 -1
- package/dist/elicitation/index.d.ts.map +1 -1
- package/dist/elicitation/panel.d.ts +14 -1
- package/dist/elicitation/panel.d.ts.map +1 -1
- package/dist/elicitation/types.d.ts +116 -9
- package/dist/elicitation/types.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +173 -0
- package/dist/generated/element-attributes.d.ts.map +1 -0
- package/dist/host/aparte-chat-host.d.ts +3 -1
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/index.css +752 -392
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +538 -290
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +5 -4
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +62 -57
- package/dist/index.node.js.map +1 -1
- package/dist/interop/element-props.d.ts +26 -1
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/{index-hQQljwfX.js → is-awaiting-reply-Cb7H3YfN.js} +1159 -972
- package/dist/is-awaiting-reply-Cb7H3YfN.js.map +1 -0
- package/dist/parsers/aparte-stream-parser.d.ts.map +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts +3 -0
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +1 -0
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +22 -18
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/highlight-stream.d.ts +17 -0
- package/dist/renderers/highlight-stream.d.ts.map +1 -0
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/artifact/binary-file.d.ts.map +1 -1
- package/dist/renderers/segments/artifact/card.d.ts.map +1 -1
- package/dist/renderers/segments/artifact/shared.d.ts +19 -2
- package/dist/renderers/segments/artifact/shared.d.ts.map +1 -1
- package/dist/renderers/segments/code.d.ts.map +1 -1
- package/dist/renderers/segments/error.d.ts.map +1 -1
- package/dist/renderers/segments/pipeline-waiting.d.ts.map +1 -1
- package/dist/renderers/segments/thinking.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/types/element-attributes.d.ts +42 -0
- package/dist/types/element-attributes.d.ts.map +1 -0
- package/dist/types/event-map.d.ts +2 -4
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/events.d.ts +0 -22
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +1 -6
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +87 -74
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +15 -21
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/segments.d.ts +83 -5
- package/dist/utils/segments.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/index-hQQljwfX.js.map +0 -1
- package/dist/renderers/segments/file-tree.d.ts +0 -3
- package/dist/renderers/segments/file-tree.d.ts.map +0 -1
- package/dist/renderers/segments/progress.d.ts +0 -3
- package/dist/renderers/segments/progress.d.ts.map +0 -1
- package/dist/renderers/segments/terminal.d.ts +0 -3
- package/dist/renderers/segments/terminal.d.ts.map +0 -1
|
@@ -46,16 +46,29 @@ export interface AparteComposerChangeEventDetail {
|
|
|
46
46
|
composer: AparteComposer;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The root context for every `aparte-composer-*` primitive. It imposes no visual
|
|
50
|
+
* layout — the consumer owns the structure — and holds the shared state the parts
|
|
51
|
+
* read: the value, the streaming flag, pending attachments, the panel slot.
|
|
52
|
+
*
|
|
53
|
+
* Prose first, on purpose: when `@element` opens a docblock there is no free text
|
|
54
|
+
* left for the analyser to use, and this component's description came out empty in
|
|
55
|
+
* the manifest and blank on the generated reference page.
|
|
56
|
+
*
|
|
57
|
+
* `aparte-abort` and `aparte-message-aborted` have to be declared by hand and always
|
|
58
|
+
* will: they go out through `window.dispatchEvent` (they concern the whole page, not
|
|
59
|
+
* this subtree), and the analyser's fallback only recognises `this.dispatchEvent`.
|
|
50
60
|
*
|
|
51
|
-
*
|
|
52
|
-
* Does NOT impose any visual layout — the consumer controls structure.
|
|
61
|
+
* @element aparte-composer
|
|
53
62
|
*
|
|
54
|
-
* @attr placeholder
|
|
55
|
-
* @attr disabled
|
|
56
|
-
* @attr target
|
|
63
|
+
* @attr {string} placeholder - Forwarded to `<aparte-composer-input>` through the internal bus.
|
|
64
|
+
* @attr {boolean} disabled - Disables the whole composer, every part included.
|
|
65
|
+
* @attr {string} target - The id of the `<aparte-chat>` this composer drives.
|
|
57
66
|
*
|
|
58
|
-
* @fires aparte-send
|
|
67
|
+
* @fires {CustomEvent<AparteSendEventDetail>} aparte-send - A message was submitted: the text, its attachments and the target.
|
|
68
|
+
* @fires aparte-cancel - The stop button was pressed. No detail; the two window events below carry the target.
|
|
69
|
+
* @fires {CustomEvent<AparteAbortEventDetail>} aparte-abort - Dispatched on `window`: stop the run for this target.
|
|
70
|
+
* @fires {CustomEvent<AparteMessageAbortedEventDetail>} aparte-message-aborted - Dispatched on `window`: the run for this target ended early.
|
|
71
|
+
* @fires {CustomEvent<AparteComposerChangeEventDetail>} aparte-composer-change - Any of value / streaming / disabled / attachments / panel changed, folded into one event.
|
|
59
72
|
*/
|
|
60
73
|
export declare class AparteComposer extends HTMLElement {
|
|
61
74
|
private _value;
|
|
@@ -67,6 +80,20 @@ export declare class AparteComposer extends HTMLElement {
|
|
|
67
80
|
private _panelMode;
|
|
68
81
|
private _panelSubmitEnabled;
|
|
69
82
|
private _panelOnSubmit;
|
|
83
|
+
/**
|
|
84
|
+
* Who owns the one panel slot, and how to tell them they lost it.
|
|
85
|
+
*
|
|
86
|
+
* There is exactly one slot, `showPanel` empties it unconditionally, and nothing
|
|
87
|
+
* used to say whose it was. Three paths therefore closed a panel whose owner was
|
|
88
|
+
* still awaiting an answer, and none of them told the owner: a second `showPanel`,
|
|
89
|
+
* the owner-of-record's own `hidePanel`, and — the one that actually bit —
|
|
90
|
+
* `_handleMessageDone`, which fires on EVERY turn end. A question still open when a
|
|
91
|
+
* turn finished lost its panel while `<aparte-elicitation>` kept `_pending` set,
|
|
92
|
+
* so the request never settled AND every later request was short-circuited for the
|
|
93
|
+
* life of the page.
|
|
94
|
+
*/
|
|
95
|
+
private _panelToken;
|
|
96
|
+
private _panelOnEvict;
|
|
70
97
|
private static readonly _STATE_EVENTS;
|
|
71
98
|
private _onMessageStart;
|
|
72
99
|
private _onMessageDone;
|
|
@@ -154,14 +181,31 @@ export declare class AparteComposer extends HTMLElement {
|
|
|
154
181
|
* used to set on a child: an attribute is themeable, is visible to a consumer's
|
|
155
182
|
* own rules, and does not clobber a `display` the consumer had set (the restore
|
|
156
183
|
* wrote `''`, not the previous value).
|
|
184
|
+
*
|
|
185
|
+
* Returns the TOKEN for this panel. Pass it back to `hidePanel` so a presenter
|
|
186
|
+
* that has already lost the slot cannot close the panel that replaced it, and
|
|
187
|
+
* supply `onEvict` to be told when that happens — an owner that is not told is an
|
|
188
|
+
* owner whose promise nobody can settle.
|
|
157
189
|
*/
|
|
158
190
|
showPanel(panel: HTMLElement, options?: {
|
|
159
191
|
submitEnabled?: boolean;
|
|
160
192
|
onSubmit?: () => void;
|
|
161
193
|
mode?: 'advance' | 'submit';
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
194
|
+
/** Called when something other than this owner closes the panel. */
|
|
195
|
+
onEvict?: () => void;
|
|
196
|
+
}): symbol;
|
|
197
|
+
/**
|
|
198
|
+
* Remove the panel and restore the composer's own controls.
|
|
199
|
+
*
|
|
200
|
+
* With a `token`, this closes the panel only if that token still owns the slot —
|
|
201
|
+
* so a presenter settling late cannot tear down the panel that replaced it. With
|
|
202
|
+
* no token it closes whatever is there, which is what a consumer driving the
|
|
203
|
+
* composer directly means, and what `reset()` needs.
|
|
204
|
+
*/
|
|
205
|
+
hidePanel(token?: symbol): void;
|
|
206
|
+
/** Close the panel AND tell its owner, so a pending request never orphans. */
|
|
207
|
+
private _evictPanel;
|
|
208
|
+
private _teardownPanel;
|
|
165
209
|
/**
|
|
166
210
|
* Update the send button's state while a panel is active.
|
|
167
211
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,sBAAsB;IACnC,cAAc,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,kBAAkB,EAAE;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3C,iBAAiB,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IACzC,oBAAoB,EAAE;QAAE,WAAW,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IAC9C,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IACjD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChC,cAAc,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,SAAS,GAAG,QAAQ,CAAA;KAAE,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AAW,IAAI,OAAO,CAA8B;IAExD;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAO1B,oFAAoF;IACpF,MAAM,IAAI,IAAI;IAkCd,6CAA6C;IAC7C,MAAM,IAAI,IAAI;IAcd;;;;OAIG;IACH,KAAK,IAAI,IAAI;IAMb,sDAAsD;IAC7C,KAAK,IAAI,IAAI;IAOtB,KAAK,CAAC,CAAC,SAAS,uBAAuB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI;IAa5F,GAAG,CAAC,CAAC,SAAS,uBAAuB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI;IAQ9G;;mFAE+E;IAC/E,OAAO,CAAC,kBAAkB;IAK1B;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,mBAAmB;IAM3B,OAAO,CAAC,kBAAkB;CAO7B"}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AparteConversationList — conversation history sidebar primitive
|
|
3
|
-
*
|
|
4
|
-
* Framework-agnostic web component. The host sets the `conversations`
|
|
5
|
-
* JS property and the `active-id` attribute; the component renders the
|
|
6
|
-
* list and fires events for user interactions.
|
|
7
|
-
*
|
|
8
|
-
* @fires {CustomEvent<AparteConversationSelectDetail>} aparte-select-conversation
|
|
9
|
-
* @fires {CustomEvent<AparteConversationDeleteDetail>} aparte-delete-conversation
|
|
10
|
-
* @fires {CustomEvent<AparteConversationArchiveDetail>} aparte-archive-conversation
|
|
11
|
-
* @fires {CustomEvent<AparteConversationArchiveDetail>} aparte-unarchive-conversation
|
|
12
|
-
*/
|
|
13
1
|
export interface AparteConversationListItem {
|
|
14
2
|
id: string;
|
|
15
3
|
title: string;
|
|
@@ -28,6 +16,25 @@ export interface AparteConversationArchiveDetail {
|
|
|
28
16
|
id: string;
|
|
29
17
|
}
|
|
30
18
|
/**
|
|
19
|
+
* Conversation-history sidebar — a framework-agnostic web component. The host sets
|
|
20
|
+
* the `conversations` JS property and the `active-id` attribute; this renders the
|
|
21
|
+
* list and fires the user's intent, never acting on it itself.
|
|
22
|
+
*
|
|
23
|
+
* These four `@fires` reached the manifest through neither of its two paths, which
|
|
24
|
+
* is why this element had no `events` key at all. The tag block was in a docblock at
|
|
25
|
+
* the top of the file, separated from the class by imports and four interfaces — and
|
|
26
|
+
* TypeScript attaches only the adjacent comment. The fallback could not save it
|
|
27
|
+
* either: the analyser's auto-detection visits `ts.isMethodDeclaration` only, and
|
|
28
|
+
* every dispatch here happens inside the `_onClick` arrow class field.
|
|
29
|
+
*
|
|
30
|
+
* @element aparte-conversation-list
|
|
31
|
+
* @attr {string} active-id - The id of the conversation to render as selected.
|
|
32
|
+
*
|
|
33
|
+
* @fires {CustomEvent<AparteConversationSelectDetail>} aparte-select-conversation - A row was activated; the host loads that conversation.
|
|
34
|
+
* @fires {CustomEvent<AparteConversationDeleteDetail>} aparte-delete-conversation - The delete action was pressed. Nothing is removed here.
|
|
35
|
+
* @fires {CustomEvent<AparteConversationArchiveDetail>} aparte-archive-conversation - The archive action was pressed on a live conversation.
|
|
36
|
+
* @fires {CustomEvent<AparteConversationArchiveDetail>} aparte-unarchive-conversation - The same action on an already-archived one; same detail shape, opposite intent.
|
|
37
|
+
*
|
|
31
38
|
* @example
|
|
32
39
|
* // The host owns the data: set the `conversations` property, listen for the intent.
|
|
33
40
|
* const list = document.querySelector('aparte-conversation-list')!;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;GACD;IACC,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,8BAA8B;IAC3C,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,+BAA+B;IAC5C,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,sBAAuB,SAAQ,WAAW;IACnD,OAAO,CAAC,cAAc,CAAoC;IAC1D,OAAO,CAAC,SAAS,CAAuB;IAExC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAID,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAI5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAQ9F;;;;OAIG;IACH,OAAO,CAAC,eAAe,CAIrB;IAIF,sEAAsE;IACtE,IAAI,aAAa,CAAC,KAAK,EAAE,0BAA0B,EAAE,EAGpD;IAED,IAAI,aAAa,IAAI,0BAA0B,EAAE,CAEhD;IAID,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,WAAW;IAiDnB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,QAAQ,CAkCd;IAEF,OAAO,CAAC,UAAU,CAOhB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,IAAI;CAQf"}
|
|
@@ -23,6 +23,18 @@
|
|
|
23
23
|
import { type AparteConfigAware } from '../../config/config-context.js';
|
|
24
24
|
import type { AparteConfig } from '../../config/aparte-config.js';
|
|
25
25
|
/**
|
|
26
|
+
* The default presenter for a request to the human. It renders nothing itself: it
|
|
27
|
+
* registers as the presenter for the config governing its subtree, and mounts a panel
|
|
28
|
+
* inside the nearest `<aparte-composer>` when something asks — a tool handler calling
|
|
29
|
+
* `requestUserInput`, or core's own approval gate.
|
|
30
|
+
*
|
|
31
|
+
* It dispatches no events on purpose. A request is answered through the typed presenter
|
|
32
|
+
* contract, not by listening for one; the `aparte-tool-decision` event this replaced
|
|
33
|
+
* existed only because the buttons used to live in a segment renderer with no reference
|
|
34
|
+
* to the client.
|
|
35
|
+
*
|
|
36
|
+
* @element aparte-elicitation
|
|
37
|
+
*
|
|
26
38
|
* @example
|
|
27
39
|
* <!-- Renders nothing by itself: it registers as the presenter for its subtree, so a
|
|
28
40
|
* tool handler calling requestUserInput() gets its panel mounted in the composer. -->
|
|
@@ -55,6 +67,7 @@ export declare class AparteElicitation extends HTMLElement implements AparteConf
|
|
|
55
67
|
* MISMATCH is ignored.
|
|
56
68
|
*/
|
|
57
69
|
private _onTurnEnd;
|
|
70
|
+
private _unsubscribeConfig;
|
|
58
71
|
connectedCallback(): void;
|
|
59
72
|
/**
|
|
60
73
|
* The boundary above us appeared, changed, or went away — move the
|
|
@@ -70,6 +83,15 @@ export declare class AparteElicitation extends HTMLElement implements AparteConf
|
|
|
70
83
|
*/
|
|
71
84
|
aparteConfigChanged(next: AparteConfig, previous: AparteConfig): void;
|
|
72
85
|
disconnectedCallback(): void;
|
|
86
|
+
/**
|
|
87
|
+
* Re-apply the open question's strings, in place.
|
|
88
|
+
*
|
|
89
|
+
* Two owners, and both have to move or the panel goes bilingual: the panel's own
|
|
90
|
+
* defaults (`relabel`), and the Skip button, which this file builds and this file
|
|
91
|
+
* therefore has to re-text. The composer's one button is a third, and it already
|
|
92
|
+
* follows — `aparte-composer-send` remembers the panel state it was given.
|
|
93
|
+
*/
|
|
94
|
+
private _relabelPending;
|
|
73
95
|
private _present;
|
|
74
96
|
private _cancelPending;
|
|
75
97
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-elicitation.d.ts","sourceRoot":"","sources":["../../../src/components/elicitation/aparte-elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-elicitation.d.ts","sourceRoot":"","sources":["../../../src/components/elicitation/aparte-elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEtG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAiClE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,iBAAiB;IAC3E,OAAO,CAAC,QAAQ,CAAwB;IACxC;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,kBAAkB,CAA6B;IAEvD,iBAAiB,IAAI,IAAI;IAezB;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;IAKrE,oBAAoB,IAAI,IAAI;IAU5B;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,QAAQ,CAoJd;IAEF,OAAO,CAAC,cAAc;IAItB;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,YAAY;CAuBvB"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* A standalone status line — a light-DOM typing indicator the APP owns. Core never
|
|
3
|
+
* turns it on by itself, so it can never compete with the bubble's own waiting state.
|
|
4
|
+
*
|
|
5
|
+
* It dispatches nothing, deliberately: it reports, it does not ask.
|
|
6
|
+
*
|
|
7
|
+
* @element aparte-chat-status
|
|
8
|
+
* @attr {boolean} visible - Shows or hides the indicator.
|
|
9
|
+
* @attr {string} text - The line to show. Defaults to the locale's typing string.
|
|
10
|
+
*
|
|
2
11
|
* @example
|
|
3
12
|
* <!-- The app owns this indicator: core never turns it on by itself, so there is
|
|
4
13
|
* never a second one competing with the bubble's built-in waiting state. -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-status.d.ts","sourceRoot":"","sources":["../../../src/components/status/aparte-chat-status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-chat-status.d.ts","sourceRoot":"","sources":["../../../src/components/status/aparte-chat-status.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,IAAI,GAEf;;IAMD,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAI5B,OAAO,CAAC,eAAe,CASrB;IAEF,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAa9F;;OAEG;IACH,IAAI,IAAI,IAAI;IAIZ;;OAEG;IACH,IAAI,IAAI,IAAI;IAIZ;;OAEG;IACH,MAAM,IAAI,IAAI;IAQd;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB,OAAO,CAAC,OAAO;IAoDf,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,WAAW;CASpB"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import type { AparteMessage, AparteViewportConfig, AparteSegment, AparteUsage } from '../../types/index.js';
|
|
2
2
|
import type { ExportedMessageRepository } from '../../runtime/message-repository.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Container component with smart scroll, streaming, and segment support.
|
|
7
|
-
* Uses Light DOM for global CSS styling.
|
|
4
|
+
* The transcript surface: a light-DOM container with sticky scrolling, token
|
|
5
|
+
* streaming and segment-aware rendering.
|
|
8
6
|
*
|
|
9
7
|
* @element aparte-chat-viewport
|
|
10
8
|
*
|
|
9
|
+
* @attr {boolean} framework-managed - The wrapper's explicit hands-off signal: set it and this
|
|
10
|
+
* element composes none of its own children, because the framework owns them. All four
|
|
11
|
+
* wrappers set it; it was read by this element and declared by nothing until now.
|
|
12
|
+
* @attr {number} scroll-threshold - How close to the bottom still counts as "at the bottom".
|
|
13
|
+
* @attr {number} max-rendered-bubbles - Caps how many bubbles stay in the DOM; older ones are released.
|
|
14
|
+
* @attr {number} max-messages - DEPRECATED. It used to evict messages from the model; it now
|
|
15
|
+
* only caps rendered bubbles, which is what `max-rendered-bubbles` says. For real history
|
|
16
|
+
* retention configure the conversation manager instead.
|
|
17
|
+
*
|
|
18
|
+
* @fires {CustomEvent<AparteSegmentUpdateEventDetail>} aparte-segment-update - A segment grew or settled during a stream.
|
|
19
|
+
* @fires aparte-reset-done - `clearAll()` finished emptying the transcript. No detail.
|
|
20
|
+
* @fires {CustomEvent<ApartePathChangedEventDetail>} aparte-path-changed - The active branch path changed, after a retry fork or a navigation.
|
|
21
|
+
*
|
|
11
22
|
* Features:
|
|
12
23
|
* - Smart Scroll: Sticks to bottom when user is at bottom, stops on manual scroll up
|
|
13
24
|
* - appendToken(): For simple content streaming
|
|
@@ -176,7 +187,9 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
176
187
|
* When `_frameworkManagedDOM` is true, only the internal repo is updated —
|
|
177
188
|
* the framework owns the DOM and will create the bubble element itself.
|
|
178
189
|
*/
|
|
179
|
-
appendMessage(message: AparteMessage
|
|
190
|
+
appendMessage(message: AparteMessage, options?: {
|
|
191
|
+
historical?: boolean;
|
|
192
|
+
}): void;
|
|
180
193
|
/**
|
|
181
194
|
* Update the last message content, optionally appending.
|
|
182
195
|
* Implements the same contract as the Angular wrapper's updateLastMessage(),'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-viewport.d.ts","sourceRoot":"","sources":["../../../src/components/viewport/aparte-chat-viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EAIb,WAAW,EACd,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-chat-viewport.d.ts","sourceRoot":"","sources":["../../../src/components/viewport/aparte-chat-viewport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,aAAa,EACb,oBAAoB,EACpB,aAAa,EAIb,WAAW,EACd,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAiBrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAG/C,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,UAAU,CAAkC;IACpD,OAAO,CAAC,aAAa,CAA+B;IACpD;;;;;OAKG;IACH,OAAO,CAAC,eAAe,CAAK;IAC5B,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,kBAAkB,CAAa;IACvC,OAAO,CAAC,mBAAmB,CAAa;IACxC,OAAO,CAAC,KAAK,CAAiC;IAC9C,OAAO,CAAC,oBAAoB,CAAiB;IAC7C,OAAO,CAAC,gBAAgB,CAAc;IACtC,0FAA0F;IAC1F,OAAO,CAAC,iBAAiB,CAAkB;IAC3C;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB,CAAgB;IAC3C,+DAA+D;IAC/D,OAAO,CAAC,6BAA6B,CAAS;IAC9C,OAAO,CAAC,eAAe,CAA+B;IACtD,OAAO,C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eAAe;IAgEvB,gFAAgF;IAChF,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,aAAa;IAqBrB,OAAO,CAAC,eAAe;IAMvB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,qBAAqB;IAa7B,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IAI3B;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;IA0E1B;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,QAAQ;CAanB"}
|
|
@@ -21,6 +21,7 @@ import type { AparteBubbleShellRenderer } from './bubble-shell-renderer.js';
|
|
|
21
21
|
import type { AparteAIProvider, AparteAIModel, AparteModelConfig } from '../types/model-provider.js';
|
|
22
22
|
import type { AparteTransport } from '../transport/index.js';
|
|
23
23
|
import type { AparteTool, AparteToolHandler, AparteToolRenderer } from '../types/tools.js';
|
|
24
|
+
import type { AparteSegmentDefaults } from '../types/segments.js';
|
|
24
25
|
import type { AparteBubbleActionsConfig, AparteBubbleActionName, AparteHostHandlersConfig } from '../types/models.js';
|
|
25
26
|
import type { AparteConversationManager } from '../conversations/conversation-manager.js';
|
|
26
27
|
import { type AparteSanitizer } from './sanitize.js';
|
|
@@ -59,7 +60,6 @@ export declare const APARTE_DEFAULT_BUBBLE_ACTIONS: {
|
|
|
59
60
|
*/
|
|
60
61
|
export declare const APARTE_DEFAULT_HOST_HANDLERS: {
|
|
61
62
|
readonly attachmentPreview: false;
|
|
62
|
-
readonly terminalRun: false;
|
|
63
63
|
readonly artifactRedownload: false;
|
|
64
64
|
readonly artifactRehydrate: false;
|
|
65
65
|
};
|
|
@@ -150,8 +150,26 @@ export declare class AparteConfig {
|
|
|
150
150
|
private _elicitationPresenter?;
|
|
151
151
|
/** Warn once per config, not once per request — a tool loop can ask repeatedly. */
|
|
152
152
|
private _warnedNoPresenter;
|
|
153
|
+
/**
|
|
154
|
+
* The tail of the queue of requests waiting for the human, or `null` when none is.
|
|
155
|
+
*
|
|
156
|
+
* One request reaches the presenter at a time — not because a presenter could not
|
|
157
|
+
* cope, but because the COMPOSER cannot: it has one panel slot, and a second
|
|
158
|
+
* request used to clobber the first's DOM. The previous protection lived in the
|
|
159
|
+
* default presenter, which answered the second request `cancel` on the spot; that
|
|
160
|
+
* is a refusal invented for a question nobody was ever shown, the same class of
|
|
161
|
+
* lie as telling the model a stopped turn was refused. WAITING is the honest
|
|
162
|
+
* behaviour.
|
|
163
|
+
*
|
|
164
|
+
* Here rather than in the presenter because this is the only place that sees
|
|
165
|
+
* EVERY request whatever raised it — a tool handler, an app's own button, and
|
|
166
|
+
* (soon) the tool-approval gate. A custom presenter registered by a consumer gets
|
|
167
|
+
* the same protection for free, which it previously had none of.
|
|
168
|
+
*/
|
|
169
|
+
private _elicitationQueue;
|
|
153
170
|
private _tools;
|
|
154
171
|
private _toolRenderers;
|
|
172
|
+
private _segmentDefaults;
|
|
155
173
|
private _hostHandlers;
|
|
156
174
|
private _bubbleActionsConfig;
|
|
157
175
|
/**
|
|
@@ -561,9 +579,41 @@ export declare class AparteConfig {
|
|
|
561
579
|
*
|
|
562
580
|
* @example
|
|
563
581
|
* // Custom pill for a web-search tool
|
|
564
|
-
* aparteGlobalConfig.registerToolRenderer('web_search', { render: (seg) => `<div class="tool-
|
|
582
|
+
* aparteGlobalConfig.registerToolRenderer('web_search', { render: (seg) => `<div class="aparte-tool-label">Searching...</div>` });
|
|
565
583
|
*/
|
|
566
584
|
registerToolRenderer(toolName: string, renderer: AparteToolRenderer): void;
|
|
585
|
+
/**
|
|
586
|
+
* Field defaults for a segment TYPE, filled in when a segment enters a message.
|
|
587
|
+
*
|
|
588
|
+
* One function for every type rather than one per field: a `setThinkingOpen()`
|
|
589
|
+
* would need a sibling the next time any type wanted a default, and the type key
|
|
590
|
+
* is a string, so a consumer's own segment type is covered by the same call.
|
|
591
|
+
*
|
|
592
|
+
* The problem it solves: a consumer streaming a reply does not CONSTRUCT its
|
|
593
|
+
* segments — the parser does — so there was no hook at all for "reasoning blocks
|
|
594
|
+
* open in my app". Per-segment fields only reach segments you build yourself.
|
|
595
|
+
*
|
|
596
|
+
* Applied where identity is stamped (`utils/segments.ts`), so it covers every
|
|
597
|
+
* path a segment can arrive by — the parser, `addSegment`, and the segments
|
|
598
|
+
* seeded on an `appendMessage` — and no renderer has to look anything up.
|
|
599
|
+
*
|
|
600
|
+
* A field the producer set always wins, and identity is never defaulted. Read at
|
|
601
|
+
* insertion and baked in: changing a default later does not reach segments already
|
|
602
|
+
* on screen, because a block the reader opened has state the data does not.
|
|
603
|
+
*
|
|
604
|
+
* @example
|
|
605
|
+
* // Reasoning blocks arrive open in this app, streaming or settled.
|
|
606
|
+
* aparteGlobalConfig.setSegmentDefaults('thinking', { collapsed: false });
|
|
607
|
+
*
|
|
608
|
+
* @example
|
|
609
|
+
* // A consumer's own type, same call.
|
|
610
|
+
* aparteGlobalConfig.setSegmentDefaults('my-chart', { theme: 'dark' });
|
|
611
|
+
*/
|
|
612
|
+
setSegmentDefaults(type: string, defaults: AparteSegmentDefaults): void;
|
|
613
|
+
/** The defaults registered for a type, or undefined. */
|
|
614
|
+
getSegmentDefaults(type: string): AparteSegmentDefaults | undefined;
|
|
615
|
+
/** Drop the defaults for a type. */
|
|
616
|
+
clearSegmentDefaults(type: string): void;
|
|
567
617
|
/** Unregister a per-tool renderer */
|
|
568
618
|
unregisterToolRenderer(toolName: string): void;
|
|
569
619
|
/** Get the renderer for a specific tool name. Returns undefined if none registered. */
|
|
@@ -600,6 +650,8 @@ export declare class AparteConfig {
|
|
|
600
650
|
* itself — nothing to register", which is how this failure mode was found.
|
|
601
651
|
*/
|
|
602
652
|
requestUserInput(request: AparteElicitationRequest): Promise<AparteElicitationResult>;
|
|
653
|
+
/** Hand ONE request to the presenter. Called only from the queue. */
|
|
654
|
+
private _present;
|
|
603
655
|
/**
|
|
604
656
|
* Reset ALL configuration back to defaults — providers, registries, model
|
|
605
657
|
* selection and bubble actions. Previously left `_aiProviders` / `_tools` /
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-config.d.ts","sourceRoot":"","sources":["../../src/config/aparte-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAiC,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAyB,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACrG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC3F,OAAO,KAAK,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MA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AI,EAAE,MAAM,GAAG,IAAI;IAIxC,qCAAqC;IACrC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAI9C,uFAAuF;IACvF,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS;IAQjE;;;OAGG;IACH,sBAAsB,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI;IAIhE,8EAA8E;IAC9E,sBAAsB,IAAI,yBAAyB,GAAG,SAAS;IAQ/D;;;;;OAKG;IACH,uBAAuB,CAAC,SAAS,EAAE,0BAA0B,GAAG,IAAI,GAAG,IAAI;IAI3E,kEAAkE;IAClE,uBAAuB,IAAI,0BAA0B,GAAG,SAAS;IAIjE;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAwBrF,qEAAqE;IACrE,OAAO,CAAC,QAAQ;IAwBhB;;;;;OAKG;IACH,KAAK,IAAI,IAAI;IAgDb,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,yBAAyB;IAIjC,OAAO,CAAC,wBAAwB;CAcnC;AAoCD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAoB,CAAC;AAKpD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,6BAA6B;IAC1C,mFAAmF;IACnF,MAAM,EAAE,YAAY,CAAC;IACrB,iDAAiD;IACjD,WAAW,EAAE,iBAAiB,CAAC;CAClC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The event `AparteConfig._notify()` dispatches on `window`. */
|
|
2
|
+
export declare const APARTE_CONFIG_CHANGE = "aparte-config-change";
|
|
3
|
+
export declare function subscribeConfigChange(el: Element, handler: () => void): () => void;
|
|
4
|
+
//# sourceMappingURL=config-subscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-subscribe.d.ts","sourceRoot":"","sources":["../../src/config/config-subscribe.ts"],"names":[],"mappings":"AAgCA,iEAAiE;AACjE,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAoBlF"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { aparteGlobalConfig, AparteConfig, APARTE_DEFAULT_BUBBLE_ACTIONS, APARTE_DEFAULT_HOST_HANDLERS } from './aparte-config.js';
|
|
2
2
|
export { resolveConfig, attachConfig, detachConfig, runWithConfig, contextConfig, APARTE_HOST_ATTR } from './config-context.js';
|
|
3
|
+
export { subscribeConfigChange, APARTE_CONFIG_CHANGE } from './config-subscribe.js';
|
|
3
4
|
export type { AparteConfigAware } from './config-context.js';
|
|
4
5
|
export type { AparteConfigChangeEventDetail, AparteMarkdownProvider, AparteStreamingMarkdownProvider, AparteStreamingMarkdownRenderer, AparteHighlightProvider, AparteSystemPromptVarsProvider, AparteModelPreference, AparteModelPreferenceProvider, AparteArtifactPreviewBuilder } from './aparte-config.js';
|
|
5
6
|
export type { AparteSanitizer } from './sanitize.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACnI,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACnI,OAAO,EAAE,aAAa,E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AC;AACpD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/config/locale.d.ts
CHANGED
|
@@ -62,6 +62,22 @@ export interface AparteLocale {
|
|
|
62
62
|
* read and never declared is worse than a literal: it looks translated.
|
|
63
63
|
*/
|
|
64
64
|
submitButton?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The cancel/stop button that replaces send while a turn is streaming
|
|
67
|
+
* (default: "Stop").
|
|
68
|
+
*
|
|
69
|
+
* `aparte-composer-cancel` has been reading this key since it existed and it was
|
|
70
|
+
* never declared — the same defect this file already records for `submitButton`
|
|
71
|
+
* one entry up, found again while auditing a different question. So it has never
|
|
72
|
+
* been translatable in ANY language, not even after a full reload: `t()` returned
|
|
73
|
+
* nothing and the `|| 'Stop'` fallback rendered every time.
|
|
74
|
+
*
|
|
75
|
+
* The button carries no visible text — this string is its `aria-label` and its
|
|
76
|
+
* `title`. Which is exactly why the gap survived: nothing on screen was in the
|
|
77
|
+
* wrong language, so only a screen-reader user or someone hovering would ever
|
|
78
|
+
* have met it. Most of the composer's translatable surface is like this.
|
|
79
|
+
*/
|
|
80
|
+
stopButton?: string;
|
|
65
81
|
/**
|
|
66
82
|
* The send button while a form of several questions has more ahead — it advances
|
|
67
83
|
* instead of submitting (default: "Next").
|
|
@@ -88,6 +104,131 @@ export interface AparteLocale {
|
|
|
88
104
|
elicitationNo?: string;
|
|
89
105
|
/** Last-resort accessible name for a free-text answer (default: "Your answer") */
|
|
90
106
|
elicitationAnswerLabel?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Placeholder for the free-text arm of an approval (default: "Or tell it what to
|
|
109
|
+
* do instead…").
|
|
110
|
+
*
|
|
111
|
+
* The refusal's REASON, in the user's words, which the model now reads because a
|
|
112
|
+
* refusal hands it a turn. Before that this text had nowhere to go.
|
|
113
|
+
*/
|
|
114
|
+
approvalInstructionPlaceholder?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The question an approval asks (default: "Run {tool}?").
|
|
117
|
+
*
|
|
118
|
+
* `{tool}` is replaced with the tool's name. A placeholder rather than three
|
|
119
|
+
* concatenated fragments, because word order is the first thing a translation
|
|
120
|
+
* changes and "Run" + name + "?" only works in English.
|
|
121
|
+
*/
|
|
122
|
+
approvalAsk?: string;
|
|
123
|
+
/**
|
|
124
|
+
* What the pill says while the decision is being made elsewhere (default:
|
|
125
|
+
* "waiting for you").
|
|
126
|
+
*
|
|
127
|
+
* The pill is the anchor, not the control — so it has to say WHY nothing is
|
|
128
|
+
* happening. A pill that just sits there while the answer is expected at the
|
|
129
|
+
* composer is the one thing this placement can get wrong.
|
|
130
|
+
*/
|
|
131
|
+
approvalWaiting?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The words in a tool call's state badge.
|
|
134
|
+
*
|
|
135
|
+
* A WORD and not only a glyph, which is what every current implementation shows
|
|
136
|
+
* ("Pending", "Running", "Completed", "Error"). A bare cross beside a name reads as
|
|
137
|
+
* a button that removes something — the state was being mistaken for an
|
|
138
|
+
* affordance, which is ratified decision #8 read backwards.
|
|
139
|
+
*/
|
|
140
|
+
toolRunning?: string;
|
|
141
|
+
toolCompleted?: string;
|
|
142
|
+
toolRejected?: string;
|
|
143
|
+
toolStopped?: string;
|
|
144
|
+
/** Label above a tool call's arguments (default: "Input") */
|
|
145
|
+
toolInput?: string;
|
|
146
|
+
/** Label above a tool call's result (default: "Output") */
|
|
147
|
+
toolOutput?: string;
|
|
148
|
+
/** Accessible name for the group of approval options (default: "Your decision") */
|
|
149
|
+
approvalOptionsLabel?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The composer's attach-file button (default: "Attach file").
|
|
152
|
+
*
|
|
153
|
+
* `aparte-composer-add-attachment` has been READING `t('actionUpload')` since it
|
|
154
|
+
* existed, and the key was never declared — so `t()` returned '' and the
|
|
155
|
+
* `|| 'Attach file'` fallback rendered in every language, after every reload.
|
|
156
|
+
* The third instance of this exact defect in this file, after `submitButton` and
|
|
157
|
+
* `stopButton`, and the one a user reported from the live language switcher.
|
|
158
|
+
*
|
|
159
|
+
* A key that is read and not declared cannot be found by reading either side: the
|
|
160
|
+
* component looks correct, the locale looks complete. Cross-checking the two
|
|
161
|
+
* lists is what finds them — `t()` calls and `getLocale().x` reads on one side,
|
|
162
|
+
* these declarations on the other.
|
|
163
|
+
*/
|
|
164
|
+
actionUpload?: string;
|
|
165
|
+
/**
|
|
166
|
+
* The artifact card's download button (default: "Download").
|
|
167
|
+
*
|
|
168
|
+
* Like `stopButton`, this string is a `title` and an `aria-label` on an
|
|
169
|
+
* icon-only button — which is why it stayed English through every locale this
|
|
170
|
+
* project shipped. Nothing on screen was in the wrong language.
|
|
171
|
+
*/
|
|
172
|
+
download?: string;
|
|
173
|
+
/**
|
|
174
|
+
* The artifact card's two tabs (defaults: "Preview" / "Code").
|
|
175
|
+
*
|
|
176
|
+
* These two ARE visible text, on a card the landing page leads with, and they
|
|
177
|
+
* were still literals. The card was written before the locale had a home for
|
|
178
|
+
* anything but chrome.
|
|
179
|
+
*/
|
|
180
|
+
preview?: string;
|
|
181
|
+
code?: string;
|
|
182
|
+
/**
|
|
183
|
+
* A binary artifact being produced, and the same artifact's preview being rebuilt
|
|
184
|
+
* after a reload (defaults: "Generating…" / "Rebuilding preview…").
|
|
185
|
+
*
|
|
186
|
+
* `generating` is also the `aria-label` of the `pipeline-waiting` segment, which
|
|
187
|
+
* is the ONLY thing a screen-reader user hears while a turn is in flight. It was
|
|
188
|
+
* hardcoded, so that announcement was English in every locale.
|
|
189
|
+
*/
|
|
190
|
+
generating?: string;
|
|
191
|
+
rebuildingPreview?: string;
|
|
192
|
+
/**
|
|
193
|
+
* What the preview pane says before anybody presses Preview (default: "Press
|
|
194
|
+
* Preview to run this artifact.").
|
|
195
|
+
*
|
|
196
|
+
* The pane is empty on purpose — a previewable artifact is model-authored code
|
|
197
|
+
* and mounting it unasked would execute it (ratified decision #8) — so this
|
|
198
|
+
* sentence is the whole of what the reader sees there, and it was a literal.
|
|
199
|
+
*/
|
|
200
|
+
previewPending?: string;
|
|
201
|
+
/**
|
|
202
|
+
* A binary artifact whose sandbox run failed: the heading, and the hint under it
|
|
203
|
+
* (defaults: "The sandbox failed during generation." / "Common cause: …").
|
|
204
|
+
*
|
|
205
|
+
* The message BETWEEN them is the sandbox's own error text and stays untranslated
|
|
206
|
+
* on purpose — it is the tool's output, not the library's copy.
|
|
207
|
+
*/
|
|
208
|
+
sandboxError?: string;
|
|
209
|
+
sandboxErrorHint?: string;
|
|
210
|
+
/**
|
|
211
|
+
* BCP-47 language tag for `Intl` formatting — `'fr-FR'`, `'ja-JP'`, `'en-US'`.
|
|
212
|
+
*
|
|
213
|
+
* A locale is otherwise a bag of STRINGS, and a clock is not a string: it is a
|
|
214
|
+
* format. So `setLocale(fr)` moved fifty strings and left the timestamp above
|
|
215
|
+
* every message reading `7:32 PM`, because the only `Intl` call in the library
|
|
216
|
+
* passed `undefined` — "use the BROWSER's locale" — which is not the locale the
|
|
217
|
+
* app just chose. French is 24-hour; the browser was not asked.
|
|
218
|
+
*
|
|
219
|
+
* A tag and NOT an `hour12` flag, deliberately. A flag answers one question for
|
|
220
|
+
* one call site; a tag answers every question `Intl` can be asked — hour cycle,
|
|
221
|
+
* date order, month names, decimal separator, relative time, list joining — for
|
|
222
|
+
* every locale, including the ones nobody here can enumerate. `direction` next
|
|
223
|
+
* door is the precedent: this section holds how a language BEHAVES, not what its
|
|
224
|
+
* words are.
|
|
225
|
+
*
|
|
226
|
+
* Undefined on purpose in the English default: `undefined` means "follow the
|
|
227
|
+
* browser", which is the right default for a library and the behaviour every
|
|
228
|
+
* consumer has today. A locale that declares a tag pins the formatting — if you
|
|
229
|
+
* have chosen French strings, French formatting is what you meant.
|
|
230
|
+
*/
|
|
231
|
+
tag?: string;
|
|
91
232
|
/** Direction of the text (ltr or rtl) - defaults to ltr */
|
|
92
233
|
direction?: 'ltr' | 'rtl';
|
|
93
234
|
/** Allow extensions for plugins */
|
|
@@ -1 +1 @@
|
|
|
1
|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