@aparte/core 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/agent-runner.d.ts.map +1 -1
- package/dist/client/aparte-client.d.ts +38 -76
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/client/wire-history.d.ts +78 -0
- package/dist/client/wire-history.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +152 -2
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/bubble/bubble-sync.d.ts +5 -1
- package/dist/components/bubble/bubble-sync.d.ts.map +1 -1
- package/dist/components/bubble/checkpoint-separator.d.ts +40 -0
- package/dist/components/bubble/checkpoint-separator.d.ts.map +1 -0
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-cancel.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-toolbar.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +157 -25
- package/dist/components/context/aparte-context.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/scroll-rail/aparte-scroll-rail.d.ts.map +1 -1
- package/dist/components/sidebar/aparte-sidebar.d.ts.map +1 -1
- package/dist/components/split/aparte-split.d.ts.map +1 -1
- package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +7 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +47 -1
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/locale.d.ts +62 -4
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/context/checkpoint-state.d.ts +70 -0
- package/dist/context/checkpoint-state.d.ts.map +1 -0
- package/dist/context/checkpoint.d.ts +28 -0
- package/dist/context/checkpoint.d.ts.map +1 -0
- package/dist/context/measure.d.ts +148 -0
- package/dist/context/measure.d.ts.map +1 -0
- package/dist/context/restore.d.ts +24 -0
- package/dist/context/restore.d.ts.map +1 -0
- package/dist/conversations/conversation-controller.d.ts +13 -4
- package/dist/conversations/conversation-controller.d.ts.map +1 -1
- package/dist/conversations/conversation-manager.d.ts +6 -0
- package/dist/conversations/conversation-manager.d.ts.map +1 -1
- package/dist/custom-elements.json +15347 -12878
- package/dist/{dialog-triggers-BqXRdHWZ.js → defer-hydration-8vI8xNNx.js} +1179 -374
- package/dist/defer-hydration-8vI8xNNx.js.map +1 -0
- package/dist/generated/element-attributes.d.ts +8 -2
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-C8z2oJUg.js → glyphs-2bym5jl5.js} +1 -1
- package/dist/{glyphs-C8z2oJUg.js.map → glyphs-2bym5jl5.js.map} +1 -1
- package/dist/host/aparte-chat-host.d.ts +41 -2
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/icons.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1059 -95
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +6 -2
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +39 -29
- package/dist/index.node.js.map +1 -1
- package/dist/interop/defer-hydration.d.ts +34 -0
- package/dist/interop/defer-hydration.d.ts.map +1 -0
- package/dist/primitives/icon/aparte-icon.d.ts.map +1 -1
- package/dist/primitives/progress-spinner/aparte-progress-spinner.d.ts.map +1 -1
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/index.d.ts +2 -1
- package/dist/renderers/index.d.ts.map +1 -1
- package/dist/renderers/mounted-renderer.d.ts +34 -0
- package/dist/renderers/mounted-renderer.d.ts.map +1 -0
- package/dist/renderers/segment-renderers.d.ts +14 -1
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts +2 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/dist/transport/backend-handler.d.ts.map +1 -1
- package/dist/transport/types.d.ts +24 -4
- package/dist/transport/types.d.ts.map +1 -1
- package/dist/types/chat.d.ts +16 -1
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/compactor.d.ts +104 -0
- package/dist/types/compactor.d.ts.map +1 -0
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/events.d.ts +50 -3
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model-provider.d.ts +3 -0
- package/dist/types/model-provider.d.ts.map +1 -1
- package/dist/types/models.d.ts +43 -3
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +22 -4
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +56 -0
- package/dist/types/tools.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/dialog-triggers-BqXRdHWZ.js.map +0 -1
|
@@ -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,EAA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
package/dist/config/locale.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export type AparteLocale = {
|
|
|
37
37
|
thinking: string;
|
|
38
38
|
/** What the status line says while a reply is being written, when it carries no `text` (default: "Typing") */
|
|
39
39
|
typing: string;
|
|
40
|
+
/** The quiet note under a reply the model stopped at its length limit, when the provider said so (default: "Cut off at the model's length limit.") */
|
|
41
|
+
responseCutOff?: string;
|
|
40
42
|
error: string;
|
|
41
43
|
running: string;
|
|
42
44
|
run: string;
|
|
@@ -206,12 +208,68 @@ export type AparteLocale = {
|
|
|
206
208
|
/** Accessible name of the `<aparte-context>` gauge. Optional, like the keys above. */
|
|
207
209
|
contextLabel?: string;
|
|
208
210
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* the
|
|
211
|
+
* The rows of the panel the `<aparte-context>` gauge opens, each a share of the window
|
|
212
|
+
* (defaults: "System prompt", "Tools", "Summary", "Messages", "Other", "Free", "Total").
|
|
213
|
+
* "Other" is what the estimate cannot attribute: a server loop's own prompt and tools,
|
|
214
|
+
* the chat template's tokens, the estimate's own error.
|
|
215
|
+
*/
|
|
216
|
+
contextSystem?: string;
|
|
217
|
+
/** The panel's row for the tool definitions sent with the request (default: "Tools"). */
|
|
218
|
+
contextTools?: string;
|
|
219
|
+
/** The panel's row for the summary of a compacted history (default: "Summary"). */
|
|
220
|
+
contextSummary?: string;
|
|
221
|
+
/** The panel's row for the messages the model reads after the summary (default: "Messages"). */
|
|
222
|
+
contextMessages?: string;
|
|
223
|
+
/** The panel's row for what the estimate cannot attribute (default: "Other"). */
|
|
224
|
+
contextOther?: string;
|
|
225
|
+
/** The panel's row for the room left in the window (default: "Free"). */
|
|
226
|
+
contextFree?: string;
|
|
227
|
+
/** The panel's last row, the total against the window (default: "Total"). */
|
|
228
|
+
contextTotal?: string;
|
|
229
|
+
/**
|
|
230
|
+
* What the panel says when the compactor can tell what compacting would do; `{n}` is
|
|
231
|
+
* the tokens it would free (default: "Compacting now would free ~{n} tokens").
|
|
232
|
+
*/
|
|
233
|
+
contextReclaim?: string;
|
|
234
|
+
/** The panel's button that compacts the conversation now (default: "Compact now"). */
|
|
235
|
+
contextCompactNow?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Title line of the summary message `@aparte/plugin-compaction` used to inject in
|
|
238
|
+
* place of the summarised turns (default: "Conversation summary").
|
|
239
|
+
*
|
|
240
|
+
* @deprecated Since 0.26 a compaction deletes nothing: it writes `contextSummary` on
|
|
241
|
+
* the first turn it keeps, and the separator above it says what happened through the
|
|
242
|
+
* `checkpoint*` keys. Nothing reads this key any more; it stays until a later minor
|
|
243
|
+
* so a locale that sets it keeps compiling.
|
|
213
244
|
*/
|
|
214
245
|
compactionSummaryTitle?: string;
|
|
246
|
+
/**
|
|
247
|
+
* The separator drawn above the first message the model still reads verbatim, once
|
|
248
|
+
* the messages before it were summarised for the model; `{n}` is how many
|
|
249
|
+
* (default: "{n} messages summarised for the model"). The messages stay on screen.
|
|
250
|
+
*/
|
|
251
|
+
checkpointCount?: string;
|
|
252
|
+
/** The same separator when exactly one message was summarised (default: "1 message summarised for the model"). */
|
|
253
|
+
checkpointCountOne?: string;
|
|
254
|
+
/**
|
|
255
|
+
* The separator drawn in place of a message written by an older compaction, which
|
|
256
|
+
* kept no count (default: "Earlier messages were summarised").
|
|
257
|
+
*/
|
|
258
|
+
checkpointLegacy?: string;
|
|
259
|
+
/** Accessible name of the separator's group (default: "Context summary"). */
|
|
260
|
+
checkpointGroup?: string;
|
|
261
|
+
/** The button that opens the summary under the separator (default: "Show summary"). */
|
|
262
|
+
checkpointShow?: string;
|
|
263
|
+
/** The same button while the summary is open (default: "Hide summary"). */
|
|
264
|
+
checkpointHide?: string;
|
|
265
|
+
/** The button that brings the original messages back to the model (default: "Restore"). */
|
|
266
|
+
checkpointRestore?: string;
|
|
267
|
+
/** The question Restore asks before it acts (default: "Send the original messages to the model again?"). */
|
|
268
|
+
checkpointRestoreConfirm?: string;
|
|
269
|
+
/** What the separator says while the summary is being written (default: "Summarising the context…"). */
|
|
270
|
+
checkpointPending?: string;
|
|
271
|
+
/** What the separator says when the summary could not be written (default: "Couldn't summarise the context"). */
|
|
272
|
+
checkpointFailed?: string;
|
|
215
273
|
/**
|
|
216
274
|
* What the pill says while the decision is being made elsewhere (default:
|
|
217
275
|
* "Waiting").
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,MAAM,YAAY,GAAG;IAEvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IAGnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IAGd,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,8GAA8G;IAC9G,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAGhB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,oEAAoE;IACpE,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,iBAAiB,EAAE,MAAM,CAAC;IAG1B,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IAGvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E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c,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAmInC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/** What the owner of a transcript has to tell the watcher about it. */
|
|
2
|
+
export interface CheckpointWatcherOptions {
|
|
3
|
+
/** The id this chat answers to on `aparte-compact-*` events, `undefined` for an unnamed chat. */
|
|
4
|
+
ownId(): string | undefined;
|
|
5
|
+
/** The bubble drawn for a message id, or `null` while it is not on the page (a framework renders late). */
|
|
6
|
+
bubbleOf(messageId: string): HTMLElement | null;
|
|
7
|
+
/**
|
|
8
|
+
* Whether this chat's transcript holds the message. Answered from the transcript, not the
|
|
9
|
+
* DOM: a framework paints a bubble late, and a message that is on the list belongs to this
|
|
10
|
+
* chat whether or not it is drawn yet. An event about a message this returns false for is
|
|
11
|
+
* another chat's, whatever id it carries.
|
|
12
|
+
*/
|
|
13
|
+
owns(messageId: string): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether this watcher is the one answering for the chat. The vanilla viewport and the
|
|
16
|
+
* framework host both exist under a wrapper, and only one of them may write the bubbles:
|
|
17
|
+
* the viewport steps aside once a framework manages the DOM.
|
|
18
|
+
*/
|
|
19
|
+
active?(): boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The id of the chat `el` belongs to: the nearest `<aparte-chat>` or `[data-aparte-chat]`
|
|
23
|
+
* above it that HAS one, `undefined` for an unnamed chat. The same climb the bubble, the
|
|
24
|
+
* composer and the gauge make for their own events, so an event naming a chat and an element
|
|
25
|
+
* answering for it agree about which is which.
|
|
26
|
+
*/
|
|
27
|
+
export declare function chatIdOf(el: Element): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Says on the bubble what a compaction is doing to the message it will sit on.
|
|
30
|
+
*
|
|
31
|
+
* A checkpoint is written onto the first message the model keeps verbatim, and the
|
|
32
|
+
* compaction names that message the moment it starts (`aparte-compact-start.messageId`).
|
|
33
|
+
* From then on, until the summary arrives or fails, that bubble carries
|
|
34
|
+
* `data-checkpoint="pending"` and the separator above it says the context is being
|
|
35
|
+
* summarised; on a failure it carries `data-checkpoint="failed"` (and
|
|
36
|
+
* `data-checkpoint-reason`) and the separator offers Retry. The bubble draws it — this only
|
|
37
|
+
* sets the two attributes, so the vanilla viewport and the framework host, which have
|
|
38
|
+
* different bubbles to find and different lifetimes, share one rule for WHEN.
|
|
39
|
+
*
|
|
40
|
+
* What clears it, and what must not:
|
|
41
|
+
* - a `-done` for that very message, unless it was skipped (a skipped run did not write
|
|
42
|
+
* what the pending line announced, so the line stays until something answers it);
|
|
43
|
+
* - the next `-start`, which names a message of its own;
|
|
44
|
+
* - a conversation switch (`clear()`), because the bubble is not that chat's any more.
|
|
45
|
+
* A `-done` or `-error` for another message, or for another chat on the page, changes
|
|
46
|
+
* nothing: two chats compact at the same time, and one of them finishing must not wipe the
|
|
47
|
+
* line of the other. A chat with no id is addressed by events with no id, as everywhere, and
|
|
48
|
+
* an event is acted on only when its message is in this chat's transcript (`owns`).
|
|
49
|
+
*
|
|
50
|
+
* The state is remembered here as well as written to the bubble, because under a framework
|
|
51
|
+
* the bubble can be created after the event (`reapply()` writes it again on every sync).
|
|
52
|
+
*/
|
|
53
|
+
export declare class CheckpointStateWatcher {
|
|
54
|
+
private readonly _options;
|
|
55
|
+
private _messageId;
|
|
56
|
+
private _state;
|
|
57
|
+
private _reason;
|
|
58
|
+
/** The bubble the attributes were last written to, so they can be taken off it even after it left the lookup. */
|
|
59
|
+
private _marked;
|
|
60
|
+
constructor(_options: CheckpointWatcherOptions);
|
|
61
|
+
/** Listen on `window` for the three events; returns the function that stops. */
|
|
62
|
+
start(): () => void;
|
|
63
|
+
/** Take the state off the bubble and forget it. */
|
|
64
|
+
clear(): void;
|
|
65
|
+
/** Write the remembered state onto the bubble, which may have been created since. */
|
|
66
|
+
reapply(): void;
|
|
67
|
+
private _set;
|
|
68
|
+
private _write;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=checkpoint-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint-state.d.ts","sourceRoot":"","sources":["../../src/context/checkpoint-state.ts"],"names":[],"mappings":"AAMA,uEAAuE;AACvE,MAAM,WAAW,wBAAwB;IACrC,iGAAiG;IACjG,KAAK,IAAI,MAAM,GAAG,SAAS,CAAC;IAC5B,2GAA2G;IAC3G,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAAC;IAChD;;;;;OAKG;IACH,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC;;;;OAIG;IACH,MAAM,CAAC,IAAI,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAQxD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,sBAAsB;IAOnB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IANrC,OAAO,CAAC,UAAU,CAAuB;IACzC,OAAO,CAAC,MAAM,CAAqC;IACnD,OAAO,CAAC,OAAO,CAAM;IACrB,iHAAiH;IACjH,OAAO,CAAC,OAAO,CAA4B;gBAEd,QAAQ,EAAE,wBAAwB;IAE/D,gFAAgF;IAChF,KAAK,IAAI,MAAM,IAAI;IA4CnB,mDAAmD;IACnD,KAAK,IAAI,IAAI;IAYb,qFAAqF;IACrF,OAAO,IAAI,IAAI;IAKf,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,MAAM;CAejB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AparteMessage } from '../types/models.js';
|
|
2
|
+
/**
|
|
3
|
+
* The part of a path the model reads, and the summary that stands for the rest.
|
|
4
|
+
*
|
|
5
|
+
* A checkpoint is `contextSummary` on a message: from it on the model reads the summary
|
|
6
|
+
* in place of everything before. The LAST message carrying one wins — a later
|
|
7
|
+
* checkpoint was written over the earlier summary (it asked for an update of it), so
|
|
8
|
+
* the earlier one is already inside it. Everything before the winner is dropped from
|
|
9
|
+
* the result, a legacy `compaction: true` message included: that notice is itself part
|
|
10
|
+
* of what the checkpoint summarised, and sending it beside the summary would say the
|
|
11
|
+
* same thing twice.
|
|
12
|
+
*
|
|
13
|
+
* With no checkpoint the path comes back unchanged and no summary is returned, so a
|
|
14
|
+
* caller can use it unconditionally. Nothing is deleted from the transcript — this
|
|
15
|
+
* reads a path and returns a view of it.
|
|
16
|
+
*
|
|
17
|
+
* Call it on the FULL path, the unanswered user message at its end included: the
|
|
18
|
+
* checkpoint can sit on that very message (a turn retried after an overflow), and the
|
|
19
|
+
* summary still has to go out before it.
|
|
20
|
+
*
|
|
21
|
+
* `AparteClient` applies it to every history it builds. A `history` function handed to
|
|
22
|
+
* the client receives the whole transcript and can call this itself.
|
|
23
|
+
*/
|
|
24
|
+
export declare function historyFromCheckpoint(path: AparteMessage[]): {
|
|
25
|
+
summary?: string;
|
|
26
|
+
messages: AparteMessage[];
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=checkpoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/context/checkpoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,CAM5G"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { AparteConfig } from '../config/aparte-config.js';
|
|
2
|
+
import { type AparteChatMessage, type AparteUsage } from '../types/chat.js';
|
|
3
|
+
import type { AparteMessage } from '../types/models.js';
|
|
4
|
+
import type { AparteTool } from '../types/tools.js';
|
|
5
|
+
/**
|
|
6
|
+
* Token heuristic (FR ~3.5 chars/tok, EN ~4 chars/tok).
|
|
7
|
+
*
|
|
8
|
+
* Accurate to ±10% — enough for budgeting, and it avoids a tokenizer, which costs ~5ms
|
|
9
|
+
* per message × N (too slow to run on every turn) and is one more dependency per model
|
|
10
|
+
* family. It is the ONE estimate: the compaction plugin's budget and selector, the
|
|
11
|
+
* gauge, and the number the client records on a reply all read it, so the figures they
|
|
12
|
+
* show and the decisions they take cannot disagree about what a message costs.
|
|
13
|
+
*/
|
|
14
|
+
export declare function estimateTokens(text: string | null | undefined): number;
|
|
15
|
+
/**
|
|
16
|
+
* The estimate of a request's messages as the WIRE carries them: each message's text, and
|
|
17
|
+
* for an assistant envelope the calls it declares. Parts other than text (an image's
|
|
18
|
+
* bytes) are not counted — a character heuristic has nothing honest to say about them.
|
|
19
|
+
*
|
|
20
|
+
* Exported for the code that holds the request already built, where `estimateWireTokens`
|
|
21
|
+
* would serialise the transcript a second time.
|
|
22
|
+
*/
|
|
23
|
+
export declare function estimateChatTokens(messages: AparteChatMessage[]): number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the heuristic could see the whole request: false when a message carries a part
|
|
26
|
+
* other than text (an image), which {@link estimateChatTokens} counts as nothing. An
|
|
27
|
+
* estimate of such a request is a floor, not a reading, and must not be set beside the
|
|
28
|
+
* provider's real count as if it were one.
|
|
29
|
+
*/
|
|
30
|
+
export declare function carriesNonTextParts(messages: AparteChatMessage[]): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The estimate of a whole request as it is about to be sent: its messages (the system
|
|
33
|
+
* prompts and a checkpoint's summary among them) and the tool definitions beside them —
|
|
34
|
+
* the same four things {@link measureContext} adds up, so a figure recorded here at send
|
|
35
|
+
* time and the measure's own reading of the same view are one currency, which is what lets
|
|
36
|
+
* the one calibrate the other.
|
|
37
|
+
*/
|
|
38
|
+
export declare function estimateRequestTokens(request: {
|
|
39
|
+
messages: AparteChatMessage[];
|
|
40
|
+
tools?: AparteTool[] | undefined;
|
|
41
|
+
}): number;
|
|
42
|
+
/**
|
|
43
|
+
* The estimate of what the wire sends for these messages: the same serialisation the
|
|
44
|
+
* client builds its history with (`wireMessages`) — a reply's thinking is not sent, its
|
|
45
|
+
* text is, and a tool call and its result count as the envelope and the `tool` message
|
|
46
|
+
* the wire carries. A failed turn and one still in flight send nothing.
|
|
47
|
+
*
|
|
48
|
+
* Not `estimateTokens(message.content)`: assistant replies keep their text in
|
|
49
|
+
* `segments` with `content` empty, so that sum would read a whole conversation as free.
|
|
50
|
+
*/
|
|
51
|
+
export declare function estimateWireTokens(messages: AparteMessage[]): number;
|
|
52
|
+
/** Tokens one turn reports as used: the provider's total, else the prompt plus the reply. */
|
|
53
|
+
export declare const usageTokens: (usage: AparteUsage) => number;
|
|
54
|
+
/**
|
|
55
|
+
* The registered tools, unless the current model says it cannot call one.
|
|
56
|
+
*
|
|
57
|
+
* Single source for the gate, so send / retry / edit — and the measure of what they send —
|
|
58
|
+
* cannot drift.
|
|
59
|
+
*
|
|
60
|
+
* The question is "did this model say it cannot", not "did it say it can": the app sets a
|
|
61
|
+
* model id by hand (`setModelConfig`) or a selector sets it from a fetched list, and in both
|
|
62
|
+
* cases the model's declared capabilities are commonly unknown. `undefined` capabilities
|
|
63
|
+
* read as "can", or `tools: []` would go on the wire while `getTools()` held the tool the
|
|
64
|
+
* app had explicitly registered, and the model would answer that it had no such tool.
|
|
65
|
+
* Registering a tool is an explicit act by the app; silently dropping it because a
|
|
66
|
+
* `/models` listing is terse is the library second-guessing the developer. A model that
|
|
67
|
+
* declares its capabilities and omits function calling is still honoured — that is a
|
|
68
|
+
* statement, and it is respected.
|
|
69
|
+
*
|
|
70
|
+
* Failure modes, both ways round: over-sending means a model that cannot use tools does
|
|
71
|
+
* not call one, or its own endpoint rejects the array with an error the developer can
|
|
72
|
+
* read. Under-sending would be silent, total, and look like a lying model.
|
|
73
|
+
*/
|
|
74
|
+
export declare function toolsForCurrentModel(config: AparteConfig): AparteTool[];
|
|
75
|
+
/**
|
|
76
|
+
* What fills the model's window, as one reading. `used` is the total the gauge draws;
|
|
77
|
+
* `parts` say where it goes.
|
|
78
|
+
*
|
|
79
|
+
* The parts are RAW estimates (the character heuristic, uncalibrated), so they are
|
|
80
|
+
* labelled as estimates wherever they are shown and need not add up to `used`: the
|
|
81
|
+
* difference, `other`, is what the heuristic cannot see — a server loop's own system
|
|
82
|
+
* prompt and tools, the chat template's tokens, the heuristic's own error.
|
|
83
|
+
*/
|
|
84
|
+
export interface AparteContextMeasure {
|
|
85
|
+
/** The window `used` is measured against, when one is known. */
|
|
86
|
+
window?: number;
|
|
87
|
+
/** Tokens in use: the last reply's reported usage, or an estimate of the request the next turn would send. */
|
|
88
|
+
used: number;
|
|
89
|
+
/** `true` when `used` is an estimate — something changed in what the model reads since the last reply reported. */
|
|
90
|
+
estimated: boolean;
|
|
91
|
+
/** Raw estimates, in tokens, of what the model reads: the system prompts, the tool definitions, the checkpoint's summary, the messages after it. */
|
|
92
|
+
parts: {
|
|
93
|
+
system: number;
|
|
94
|
+
tools: number;
|
|
95
|
+
summary: number;
|
|
96
|
+
messages: number;
|
|
97
|
+
};
|
|
98
|
+
/** `used` less the parts, never below zero. */
|
|
99
|
+
other: number;
|
|
100
|
+
}
|
|
101
|
+
/** What {@link measureContext} reads. */
|
|
102
|
+
export interface AparteContextMeasureInput {
|
|
103
|
+
/** The ACTIVE path of the conversation, checkpoint and all — not the view after it. */
|
|
104
|
+
messages: AparteMessage[];
|
|
105
|
+
/** The config that resolves the system prompt, the tools and the current model. */
|
|
106
|
+
config: AparteConfig;
|
|
107
|
+
/** A window that wins over the current model's, for a page that knows better (the gauge's `window` attribute). */
|
|
108
|
+
windowOverride?: number | null | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* The caller knows what the model reads has changed since the last reply although the
|
|
111
|
+
* messages cannot say so — a Restore takes checkpoints off, and nothing is left on the
|
|
112
|
+
* path to date it. Forces an estimate.
|
|
113
|
+
*/
|
|
114
|
+
viewChanged?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/** The model's window as the measure reads it: the override, else the current model's. */
|
|
117
|
+
export declare function windowOf(config: AparteConfig, windowOverride?: number | null): number | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* The one measure of the context window, for the gauge and for the compaction plugin.
|
|
120
|
+
*
|
|
121
|
+
* `used` is the last reply's REAL usage while nothing the model reads has changed since
|
|
122
|
+
* it: the reply is the last message of the path, and no checkpoint was written after it.
|
|
123
|
+
* Once something has (a message was added, a compaction ran), the real number describes a
|
|
124
|
+
* request that will not be sent again, so `used` becomes an estimate of the request that
|
|
125
|
+
* WOULD be sent — the system prompts, the tool definitions, the checkpoint's summary and
|
|
126
|
+
* the messages after it — scaled by `k`, how far the heuristic was off on the last reply:
|
|
127
|
+
* its real input tokens over the estimate recorded when it was sent
|
|
128
|
+
* (`AparteMessage.contextEstimate`), clamped to [0.5, 3] so one odd reply cannot throw the
|
|
129
|
+
* reading, and 1 when the reply has no estimate. After a compaction the reading is
|
|
130
|
+
* therefore the size of the new, smaller view, never the stale one from before it, and
|
|
131
|
+
* never a `k` computed against a history the reply did not see.
|
|
132
|
+
*
|
|
133
|
+
* `k` compares like with like or it is 1. The estimate is of the FIRST request a turn sent
|
|
134
|
+
* and the usage is of its LAST call, which also read the calls and their results, so a
|
|
135
|
+
* reply that called tools says nothing about the heuristic's error and counts as 1. A
|
|
136
|
+
* request the heuristic could not read whole (an image) records no estimate at all.
|
|
137
|
+
*
|
|
138
|
+
* While nothing has changed, `used` is what the NEXT request will carry: the input the
|
|
139
|
+
* provider reported, plus the reply as it goes back on the wire. A provider's output count
|
|
140
|
+
* includes the reasoning it generated, and a reply's thinking is not sent again, so for a
|
|
141
|
+
* reply that thought the answer is read from the transcript (the part after its last call,
|
|
142
|
+
* which is all the final call added to what it read) and not from the output count.
|
|
143
|
+
*
|
|
144
|
+
* The parts are not scaled: they stay the raw estimates, so a reader can see what the
|
|
145
|
+
* measure is made of.
|
|
146
|
+
*/
|
|
147
|
+
export declare function measureContext(input: AparteContextMeasureInput): AparteContextMeasure;
|
|
148
|
+
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../src/context/measure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAGtE;AAWD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAOxE;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAE1E;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE;IAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,UAAU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B,CAiCrF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restore: take every checkpoint off the transcript `from` belongs to, so the model reads
|
|
3
|
+
* the original messages again, and say so on `window`.
|
|
4
|
+
*
|
|
5
|
+
* EVERY checkpoint of the active path, not the one Restore was pressed on. A path that was
|
|
6
|
+
* summarised twice carries two (the second summary was written over the first), and
|
|
7
|
+
* removing only the newer would put the older summary back in front of messages the reader
|
|
8
|
+
* asked to have restored — a partial restore that looks like a complete one.
|
|
9
|
+
*
|
|
10
|
+
* Each removal goes through the chat's own `updateMessage`, which is what makes it reach
|
|
11
|
+
* the framework's list and the saved conversation as well as the bubble on screen; the
|
|
12
|
+
* `aparte-compact-done` that follows is what the conversation controller saves on and the
|
|
13
|
+
* gauge measures again on. A `restored: true` detail carries no summary: nothing was
|
|
14
|
+
* summarised, something was undone.
|
|
15
|
+
*
|
|
16
|
+
* Returns how many checkpoints were removed. Nothing is dispatched when the bubble belongs
|
|
17
|
+
* to no transcript that can be written — a restore that claimed to have happened would be
|
|
18
|
+
* the worse answer.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restoreContext(from: Element, detail: {
|
|
21
|
+
messageId?: string;
|
|
22
|
+
targetId?: string;
|
|
23
|
+
}): number;
|
|
24
|
+
//# sourceMappingURL=restore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../src/context/restore.ts"],"names":[],"mappings":"AA+BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAUvG"}
|
|
@@ -189,10 +189,19 @@ export declare class AparteConversationController {
|
|
|
189
189
|
* that was partially written before a switch or component destruction.
|
|
190
190
|
*/
|
|
191
191
|
/**
|
|
192
|
-
* Save once the binding holds
|
|
193
|
-
* a framework store reaches the binding only when that framework renders, so a
|
|
194
|
-
* the microtask wrote the conversation as it stood before the
|
|
195
|
-
* run
|
|
192
|
+
* Save once the binding holds what a compaction (or a Restore) announced. A transcript
|
|
193
|
+
* kept in a framework store reaches the binding only when that framework renders, so a
|
|
194
|
+
* save on the microtask wrote the conversation as it stood before the change. Bounded:
|
|
195
|
+
* a run that changed nothing (skipped), or a binding that never shows the change, is
|
|
196
|
+
* saved as it is.
|
|
197
|
+
*
|
|
198
|
+
* What "holds" means follows what the run said it did:
|
|
199
|
+
* - a checkpoint — `messageId` names the message carrying it, and it holds once that
|
|
200
|
+
* message carries a `contextSummary` with its `createdAt` (a summary without the
|
|
201
|
+
* stamp is a half-written one);
|
|
202
|
+
* - a Restore — it holds once no message of the path carries a checkpoint any more;
|
|
203
|
+
* - an older host's summary MESSAGE (`compaction: true`, ending with the summary).
|
|
204
|
+
* A run that names none of these has nothing to wait for.
|
|
196
205
|
*/
|
|
197
206
|
private _persistOnceSummarised;
|
|
198
207
|
private _persistActive;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-controller.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"conversation-controller.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAkD,MAAM,mBAAmB,CAAC;AACvG,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAQlF;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAC9B,4EAA4E;IAC5E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,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face ConversationManagerOptions {
|
|
|
35
35
|
*
|
|
36
36
|
* Keeps the subtree rooted at the new-oldest kept message (so recent history AND
|
|
37
37
|
* recent branches survive) and drops everything before it. Exported for testing.
|
|
38
|
+
*
|
|
39
|
+
* A checkpoint (`contextSummary`) the cut falls after is not lost with the messages it
|
|
40
|
+
* sat among: the new first message inherits it — the same summary and date, its count
|
|
41
|
+
* raised by the messages the cut takes after the checkpoint's own position. Without it
|
|
42
|
+
* a trimmed conversation would send the model no summary of what came before and no
|
|
43
|
+
* originals either, which is how retention would quietly undo a compaction.
|
|
38
44
|
*/
|
|
39
45
|
export declare function applyRetention(messages: AparteMessage[], tree: ExportedMessageRepository | undefined, maxMessages: number): {
|
|
40
46
|
messages: AparteMessage[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-manager.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"conversation-manager.d.ts","sourceRoot":"","sources":["../../src/conversations/conversation-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAwB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAKlF,6FAA6F;AAC7F,MAAM,MAAM,2BAA2B,GAAG,CAAC,aAAa,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;AAExF;;;;;;;;GAQG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAEjH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,aAAa,CAAC,EAAE,+BAA+B,CAAC;IAChD;;;;;;OAMG;IACH,SAAS,C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