@aparte/core 0.12.1 → 0.13.1
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 +25 -0
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +117 -0
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +70 -15
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +48 -7
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +37 -4
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts +35 -3
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-cancel.d.ts +25 -2
- package/dist/components/composer/aparte-composer-cancel.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +54 -5
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts +47 -4
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-toolbar.d.ts +15 -4
- package/dist/components/composer/aparte-composer-toolbar.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +139 -7
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/composer/index.d.ts +1 -1
- package/dist/components/composer/index.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +50 -8
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +45 -0
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/status/aparte-chat-status.d.ts +47 -5
- package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +80 -8
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +22 -0
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/icon-provider.d.ts +17 -15
- package/dist/config/icon-provider.d.ts.map +1 -1
- package/dist/custom-elements.json +7372 -5219
- package/dist/elicitation/approval-panel.d.ts.map +1 -1
- package/dist/elicitation/panel.d.ts +23 -2
- package/dist/elicitation/panel.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +21 -15
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/glyphs-QXfbL3n_.js +81 -0
- package/dist/glyphs-QXfbL3n_.js.map +1 -0
- package/dist/icons/extended.d.ts +153 -0
- package/dist/icons/extended.d.ts.map +1 -0
- package/dist/icons/glyphs.d.ts +98 -0
- package/dist/icons/glyphs.d.ts.map +1 -0
- package/dist/icons/index.d.ts +24 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons.d.ts +14 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +157 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.css +5109 -2121
- package/dist/index.d.ts +37 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +184 -68
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +2 -2
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +1 -1
- package/dist/{is-awaiting-reply-BWTDvQ__.js → is-awaiting-reply-CWp1ffHh.js} +347 -171
- package/dist/is-awaiting-reply-CWp1ffHh.js.map +1 -0
- package/dist/primitives/icon/aparte-icon.d.ts +49 -0
- package/dist/primitives/icon/aparte-icon.d.ts.map +1 -0
- package/dist/primitives/icon/index.d.ts +2 -0
- package/dist/primitives/icon/index.d.ts.map +1 -0
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts +20 -5
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts.map +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts +30 -7
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +29 -3
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +36 -11
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/segment-renderers.d.ts +18 -0
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/artifact/card.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-map.d.ts +2 -0
- package/dist/types/element-map.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/segments.d.ts +92 -7
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +2 -0
- package/dist/types/tools.d.ts.map +1 -1
- package/package.json +7 -1
- package/dist/is-awaiting-reply-BWTDvQ__.js.map +0 -1
|
@@ -1,16 +1,58 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A standalone status line — a light-DOM
|
|
3
|
-
*
|
|
2
|
+
* A standalone status line — a light-DOM indicator the APP owns. Nothing in core turns
|
|
3
|
+
* it on: the framework host only ever flips it back OFF (on the first streamed token),
|
|
4
|
+
* and the four wrappers render one inside the viewport driven by their own `isTyping`
|
|
5
|
+
* prop.
|
|
4
6
|
*
|
|
5
7
|
* It dispatches nothing, deliberately: it reports, it does not ask.
|
|
6
8
|
*
|
|
9
|
+
* Use it for a state only the app knows about — "Searching the docs…", "Uploading…",
|
|
10
|
+
* a queue position. It is NOT the indicator for the gap between a send and the first
|
|
11
|
+
* token: that one is built into the bubble (`.aparte-waiting`, shown while `streaming`
|
|
12
|
+
* is set on a non-user bubble that has nothing to display yet). Turning this element on
|
|
13
|
+
* for that gap is how a page ends up showing two indicators for one wait.
|
|
14
|
+
*
|
|
15
|
+
* It does not project children: `_render()` writes the subtree — a
|
|
16
|
+
* `.aparte-status-container` row holding an empty avatar div and an `.aparte-body` that
|
|
17
|
+
* wraps `.aparte-status-content` — so markup authored between the tags does not
|
|
18
|
+
* survive. That avatar div never gets contents here, and `.aparte-avatar:empty` is
|
|
19
|
+
* `display: none`, so it is not a spacer: the line sits flush with the row padding
|
|
20
|
+
* rather than indented under an assistant bubble's text column.
|
|
21
|
+
*
|
|
22
|
+
* The seam for custom contents is `setStatusRenderer`, scoped or global: the container
|
|
23
|
+
* keeps owning show/hide (`data-visible`), the accessible name (`aria-label`) and its
|
|
24
|
+
* `.aparte-message` row metrics whatever the renderer returns, but the pulsing dot and
|
|
25
|
+
* the text node belong to the default path only.
|
|
26
|
+
*
|
|
27
|
+
* A `text` attribute renders the visible label and feeds the accessible name; with no
|
|
28
|
+
* `text` the line is dots-only and the name falls back to the literal `Typing` — this
|
|
29
|
+
* element does not read the locale. Hiding happens twice over: the host element is
|
|
30
|
+
* `display: none` without `[visible]`, and `data-visible` drives the fade/translate on
|
|
31
|
+
* the container.
|
|
32
|
+
*
|
|
33
|
+
* The config is resolved live rather than cached, so a `setStatusRenderer` call that
|
|
34
|
+
* lands after this element has already upgraded still reaches it: the element
|
|
35
|
+
* re-renders on `aparte-config-change`, filtered to its own config.
|
|
36
|
+
*
|
|
37
|
+
* The two borrowed row variables below have one scope caveat: inside a viewport
|
|
38
|
+
* narrower than 520px core REASSIGNS `--aparte-message-padding` on `.aparte-message`
|
|
39
|
+
* itself, so a declaration on this host element loses to it there.
|
|
40
|
+
*
|
|
7
41
|
* @element aparte-chat-status
|
|
8
42
|
* @attr {boolean} visible - Shows or hides the indicator.
|
|
9
|
-
* @attr {string} text - The line to show.
|
|
43
|
+
* @attr {string} text - The line to show. Absent, the line is dots-only and the
|
|
44
|
+
* accessible name falls back to the literal `Typing` (not the locale's string).
|
|
45
|
+
*
|
|
46
|
+
* @cssprop [--aparte-status-color=var(--aparte-text-muted)] - Colour of the label text and of the pulsing dot in the default line.
|
|
47
|
+
* @cssprop [--aparte-status-font-size=13px] - Size of the visible label (italic by default) in the default line.
|
|
48
|
+
* @cssprop [--aparte-status-dot-size=6px] - Diameter of the single pulsing dot in the default line.
|
|
49
|
+
* @cssprop [--aparte-message-padding=16px 12px] - Padding of the row, read because the container also carries `.aparte-message` — the status line borrows a bubble's row metrics so it lines up with the transcript.
|
|
50
|
+
* @cssprop [--aparte-message-max-width=800px] - Width cap of that same row.
|
|
10
51
|
*
|
|
11
52
|
* @example
|
|
12
|
-
* <!-- The app owns this indicator: core
|
|
13
|
-
*
|
|
53
|
+
* <!-- The app owns this indicator: core turns it on for nobody, which is also why it
|
|
54
|
+
* is the wrong tool for the wait before the first token — the bubble's built-in
|
|
55
|
+
* waiting state already covers that one. -->
|
|
14
56
|
* <aparte-chat-status visible text="Searching the docs…"></aparte-chat-status>
|
|
15
57
|
*/
|
|
16
58
|
export declare class AparteChatStatus extends HTMLElement {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-chat-status.d.ts","sourceRoot":"","sources":["../../../src/components/status/aparte-chat-status.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"aparte-chat-status.d.ts","sourceRoot":"","sources":["../../../src/components/status/aparte-chat-status.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;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"}
|
|
@@ -4,11 +4,51 @@ import type { ExportedMessageRepository } from '../../runtime/message-repository
|
|
|
4
4
|
* The transcript surface: a light-DOM container with sticky scrolling, token
|
|
5
5
|
* streaming and segment-aware rendering.
|
|
6
6
|
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Smart Scroll: Sticks to bottom when user is at bottom, stops on manual scroll up
|
|
9
|
+
* - appendToken(): For simple content streaming
|
|
10
|
+
* - appendToSegment(): For segment-aware streaming (thinking, code, etc.)
|
|
11
|
+
*
|
|
12
|
+
* Two DOM modes. By default the element builds its own scroll surface
|
|
13
|
+
* (`.aparte-viewport-container`) around a `.aparte-messages-wrapper`, and creates the
|
|
14
|
+
* `<aparte-chat-bubble>` elements itself (the last `max-rendered-bubbles` of the active
|
|
15
|
+
* path). With `framework-managed` set it builds neither wrapper: the HOST is the scroll
|
|
16
|
+
* surface, the framework owns the bubble elements, and the bottom spacer becomes additive
|
|
17
|
+
* host padding instead of an element — a relocated or removed child is what desynchronises
|
|
18
|
+
* a framework's view tree from the live DOM, so this mode touches neither. The one child
|
|
19
|
+
* it appends in both modes is the scroll-to-bottom button, kept trailing.
|
|
20
|
+
*
|
|
21
|
+
* Children you write inside the element are just children: there is no shadow root and no
|
|
22
|
+
* slot to target. In the default mode they are MOVED into the internal
|
|
23
|
+
* `.aparte-messages-wrapper` at first render, ahead of the bottom spacer, so pre-rendered
|
|
24
|
+
* `<aparte-chat-bubble>` elements land in the transcript flow. A custom element of your own
|
|
25
|
+
* is relocated the same way, and if it carries `data-aparte-bubble` plus a matching
|
|
26
|
+
* `message-id` it also receives the live token and segment pushes, not just a restyle.
|
|
27
|
+
* Do not expect such a child to outlive the transcript, though: anything that re-renders the
|
|
28
|
+
* active path (`addBranch`, `addSiblingOf`, `navigateBranch`, `importTree`) empties the
|
|
29
|
+
* wrapper and rebuilds it from the repository, so only what the repository holds comes back —
|
|
30
|
+
* and `clearAll()` removes `<aparte-chat-bubble>` nodes only, so a `[data-aparte-bubble]`
|
|
31
|
+
* element of your own is left behind with nothing left to render. With `framework-managed`
|
|
32
|
+
* set children are not relocated: they stay direct children of the host, which is itself the
|
|
33
|
+
* scroll surface.
|
|
34
|
+
*
|
|
35
|
+
* Messages are held as a TREE (siblings, branches, an active path), which is what lets
|
|
36
|
+
* a retry fork and a bubble's sibling picker navigate with no host object involved.
|
|
37
|
+
*
|
|
38
|
+
* What it is NOT is storage. `max-rendered-bubbles` is a DOM ceiling and never evicts
|
|
39
|
+
* from the repository — the full tree and its snapshot stay complete, `exportTree()` /
|
|
40
|
+
* `importTree()` hand that snapshot to whoever owns persistence, and real history
|
|
41
|
+
* retention is configured on the conversation manager instead. It is not a chat either:
|
|
42
|
+
* a bare viewport IS a valid `AparteClient` target, but the composer, the transport and
|
|
43
|
+
* the shell layout are other elements.
|
|
44
|
+
*
|
|
7
45
|
* @element aparte-chat-viewport
|
|
8
46
|
*
|
|
9
47
|
* @attr {boolean} framework-managed - The wrapper's explicit hands-off signal: set it and this
|
|
10
|
-
* element
|
|
11
|
-
*
|
|
48
|
+
* element builds no wrapper of its own and relocates none of the nodes the FRAMEWORK renders
|
|
49
|
+
* into it, because the framework owns them. Not "none of its children": core's own
|
|
50
|
+
* scroll-to-bottom button is re-appended whenever it stops being last, and that path runs in
|
|
51
|
+
* this mode only. All four wrappers set it.
|
|
12
52
|
* @attr {number} scroll-threshold - How close to the bottom still counts as "at the bottom".
|
|
13
53
|
* @attr {number} max-rendered-bubbles - Caps how many bubbles stay in the DOM; older ones are released.
|
|
14
54
|
* @attr {number} max-messages - DEPRECATED. It used to evict messages from the model; it now
|
|
@@ -19,12 +59,37 @@ import type { ExportedMessageRepository } from '../../runtime/message-repository
|
|
|
19
59
|
* @fires aparte-reset-done - `clearAll()` finished emptying the transcript. No detail.
|
|
20
60
|
* @fires {CustomEvent<ApartePathChangedEventDetail>} aparte-path-changed - The active branch path changed, after a retry fork or a navigation.
|
|
21
61
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* -
|
|
27
|
-
|
|
62
|
+
* @cssprop [--aparte-viewport-padding=16px] - Padding around the transcript — on
|
|
63
|
+
* `.aparte-messages-wrapper`, or on the host itself in framework-managed mode, where the
|
|
64
|
+
* auto-scroll spacer is added on top of it. A container narrower than 520px tightens it in
|
|
65
|
+
* the default mode only: that rule reassigns the variable on `.aparte-messages-wrapper`,
|
|
66
|
+
* which framework-managed mode never builds.
|
|
67
|
+
* @cssprop [--aparte-message-gap=12px] - Gap between consecutive bubbles in the transcript
|
|
68
|
+
* column (both DOM modes). Shared: it is also the avatar-to-content gap inside a bubble.
|
|
69
|
+
* @cssprop [--aparte-scrollbar-width=6px] - Width of the WebKit scrollbar on the scroll
|
|
70
|
+
* surface. Firefox and the standard property use `scrollbar-width: thin` and ignore it.
|
|
71
|
+
* @cssprop [--aparte-scroll-btn-size=36px] - Diameter of the scroll-to-bottom button. A
|
|
72
|
+
* coarse pointer raises it to `--aparte-touch-target-size`.
|
|
73
|
+
* @cssprop [--aparte-scroll-btn-shadow=0 2px 8px rgba(0, 0, 0, 0.12)] - Its shadow; the dark
|
|
74
|
+
* theme sets a heavier one.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* <!-- On its own, outside `<aparte-chat>`. Give it a height: it fills what it is given
|
|
78
|
+
* and owns the scrolling inside that box, so a viewport in an auto-height parent
|
|
79
|
+
* grows forever instead of scrolling. Messages are pushed in — it fetches nothing. -->
|
|
80
|
+
* <aparte-chat-viewport style="height: 320px"></aparte-chat-viewport>
|
|
81
|
+
*
|
|
82
|
+
* <script>
|
|
83
|
+
* const viewport = document.querySelector('aparte-chat-viewport');
|
|
84
|
+
* viewport.appendMessage({ id: 'u1', role: 'user', content: 'What is a transport?', timestamp: Date.now() });
|
|
85
|
+
* viewport.appendMessage({
|
|
86
|
+
* id: 'a1',
|
|
87
|
+
* role: 'assistant',
|
|
88
|
+
* content: 'The object that talks to the model. Swap it and the UI does not change.',
|
|
89
|
+
* timestamp: Date.now(),
|
|
90
|
+
* });
|
|
91
|
+
* </script>
|
|
92
|
+
*
|
|
28
93
|
* @example
|
|
29
94
|
* // Three calls are a whole streamed turn.
|
|
30
95
|
* const viewport = document.querySelector('aparte-chat-viewport')!;
|
|
@@ -49,6 +114,8 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
49
114
|
private _layoutTransitionMs;
|
|
50
115
|
private _repo;
|
|
51
116
|
private _isAutoScrollEnabled;
|
|
117
|
+
/** The last scroll position we saw, so growth can be told from a gesture. */
|
|
118
|
+
private _lastScrollTop;
|
|
52
119
|
private _scrollThreshold;
|
|
53
120
|
/** When true, the next _autoScroll() call uses smooth instead of instant, then resets. */
|
|
54
121
|
private _smoothScrollOnce;
|
|
@@ -238,6 +305,11 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
238
305
|
* Get a message by ID
|
|
239
306
|
*/
|
|
240
307
|
getMessage(messageId: string): AparteMessage | undefined;
|
|
308
|
+
/**
|
|
309
|
+
* The messages on the currently ACTIVE path, root → head — not the whole tree.
|
|
310
|
+
* A message that was retried contributes only the branch currently selected;
|
|
311
|
+
* `exportTree()` is what returns every sibling.
|
|
312
|
+
*/
|
|
241
313
|
getMessages(): AparteMessage[];
|
|
242
314
|
/**
|
|
243
315
|
* Export the full conversation tree (all branches, not just the active path).
|
|
@@ -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;AAiBrF
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;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,6EAA6E;IAC7E,OAAO,CAAC,cAAc,CAAK;IAC3B,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,O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AIhC;IAEF,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,eAAe;IAoFvB,gFAAgF;IAChF,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,aAAa;IAkCrB,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"}
|
|
@@ -566,6 +566,21 @@ export declare class AparteConfig {
|
|
|
566
566
|
unregisterTool(name: string): void;
|
|
567
567
|
/** Get all registered tool definitions (to pass in AparteChatRequest) */
|
|
568
568
|
getTools(): AparteTool[];
|
|
569
|
+
/**
|
|
570
|
+
* The registered tools' own `systemPrompt`s, joined, or `null` if none set one.
|
|
571
|
+
*
|
|
572
|
+
* `AparteTool.systemPrompt` has always been documented as "injected automatically when
|
|
573
|
+
* this tool is registered", on the type and in the tools guide — and nothing read it.
|
|
574
|
+
* A field that is documented and dead is worse than one that does not exist: a caller
|
|
575
|
+
* writes it, sees the tool work (the model has the schema either way), and never learns
|
|
576
|
+
* that the sentence explaining WHEN to reach for it was dropped. `@aparte/plugin-ask-user`
|
|
577
|
+
* sets one, so a shipped plugin was losing its instructions.
|
|
578
|
+
*
|
|
579
|
+
* Registration order, blank line between, because two tools' instructions are two
|
|
580
|
+
* paragraphs and not one run-on sentence. The app's own template stays a separate
|
|
581
|
+
* message — see `resolveSystemPrompt`, which is about the app and not about the tools.
|
|
582
|
+
*/
|
|
583
|
+
resolveToolSystemPrompts(): string | null;
|
|
569
584
|
/** Get the handler for a tool by name */
|
|
570
585
|
getToolHandler(name: string): AparteToolHandler | undefined;
|
|
571
586
|
/**
|
|
@@ -699,6 +714,13 @@ export declare class AparteConfig {
|
|
|
699
714
|
reset(): void;
|
|
700
715
|
private _defaultMarkdownRenderer;
|
|
701
716
|
private _defaultHighlightRenderer;
|
|
717
|
+
/**
|
|
718
|
+
* ONE owner. This used to hold a second, hand-written copy of
|
|
719
|
+
* `APARTE_DEFAULT_SKELETON_FALLBACKS`, and the two had already drifted — `message`
|
|
720
|
+
* said "Loading message…" here and "Loading…" there, `text` the reverse. A duplicate
|
|
721
|
+
* that disagrees with its original is worse than either: whichever one you read, you
|
|
722
|
+
* cannot tell which one ships.
|
|
723
|
+
*/
|
|
702
724
|
private _defaultSkeletonRenderer;
|
|
703
725
|
}
|
|
704
726
|
/**
|
|
@@ -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,
|
|
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,EA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IAAI;IAIvE;;;OAGG;IACH,uBAAuB,IAAI,0BAA0B,GAAG,SAAS;IAIjE;;;;;;;;OAQG;IACH,OAAO,CAAC,aAAa;IAgBrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,gBAAgB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAwBrF,qEAAqE;IACrE,OAAO,CAAC,QAAQ;IA2BhB;;;;;OAKG;IACH,KAAK,IAAI,IAAI;IAgDb,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,yBAAyB;IAIjC;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;CAInC;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"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icon Provider Interface
|
|
3
|
-
*
|
|
4
|
-
* Defines the contract for icon plugins.
|
|
5
|
-
* Returns HTML strings: SVG, <i> tags, emojis, or any valid HTML.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* // Register an icon provider (e.g. a FontAwesome bridge)
|
|
9
|
-
* aparteGlobalConfig.setIconProvider({
|
|
10
|
-
* copy: () => '<i class="fas fa-copy"></i>',
|
|
11
|
-
* check: () => '<i class="fas fa-check"></i>',
|
|
12
|
-
* // ...
|
|
13
|
-
* });
|
|
14
|
-
*/
|
|
15
1
|
export interface AparteIconProvider {
|
|
16
2
|
/** Copy button icon */
|
|
17
3
|
copy?: () => string;
|
|
@@ -55,9 +41,25 @@ export interface AparteIconProvider {
|
|
|
55
41
|
close?: () => string;
|
|
56
42
|
/** Stop / halt streaming (■) */
|
|
57
43
|
stop?: () => string;
|
|
44
|
+
/** Informational notice (ⓘ) */
|
|
45
|
+
info?: () => string;
|
|
46
|
+
/** Archive a conversation */
|
|
47
|
+
archive?: () => string;
|
|
48
|
+
/** Restore an archived conversation */
|
|
49
|
+
unarchive?: () => string;
|
|
50
|
+
/** Download / save to disk */
|
|
51
|
+
download?: () => string;
|
|
58
52
|
}
|
|
59
53
|
/** Icon names available in the provider */
|
|
60
54
|
export type AparteIconName = keyof AparteIconProvider;
|
|
61
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The default drawing for every name, assembled from `icons/glyphs.ts`.
|
|
57
|
+
*
|
|
58
|
+
* `getIcon()` reads this by a COMPUTED key, so a bundler cannot tell which entries a
|
|
59
|
+
* build reaches and keeps the object whole. That is the constraint that shapes the icon
|
|
60
|
+
* set: what belongs here is what core itself draws, and nothing else — an icon nobody
|
|
61
|
+
* renders would still ship to everybody. Extra glyphs are individual exports a consumer
|
|
62
|
+
* imports by name, never members of this record.
|
|
63
|
+
*/
|
|
62
64
|
export declare const APARTE_DEFAULT_ICON_FALLBACKS: Record<AparteIconName, string>;
|
|
63
65
|
//# sourceMappingURL=icon-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-provider.d.ts","sourceRoot":"","sources":["../../src/config/icon-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-provider.d.ts","sourceRoot":"","sources":["../../src/config/icon-provider.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,kBAAkB;IAM/B,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,MAAM,CAAC;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IACvB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,4BAA4B;IAC5B,MAA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