@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-composer-add-attachment.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-add-attachment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-add-attachment.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-add-attachment.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,qBAAa,2BAA4B,SAAQ,WAAW;IACxD,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,YAAY,CAA6B;IACjD,OAAO,CAAC,aAAa,CAAsB;IAG3C,OAAO,CAAC,QAAQ,CAAgC;IAEhD,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,iBAAiB,IAAI,IAAI;IAYzB,oBAAoB,IAAI,IAAI;IAO5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAQvF,OAAO,CAAC,QAAQ;IAIhB;;;;;;;;OAQG;IACH,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,OAAO;IAiBf,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,cAAc;CA8BzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer-attachments.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-attachments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-attachments.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-attachments.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,qBAAa,yBAA0B,SAAQ,WAAW;IACtD,OAAO,CAAC,aAAa,CAAsB;IAC3C,+EAA+E;IAC/E,OAAO,CAAC,WAAW,CAAgB;IAEnC,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,cAAc;IAYtB,kEAAkE;IAClE,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,OAAO;IAsFf,0EAA0E;IAC1E,OAAO,CAAC,IAAI;CAIf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer-cancel.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-cancel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-cancel.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-cancel.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,oBAAqB,SAAQ,WAAW;IACjD,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,aAAa,CAAsB;IAG3C,OAAO,CAAC,QAAQ,CAAgC;IAEhD,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAgBf,OAAO,CAAC,cAAc;IActB,OAAO,CAAC,YAAY;IAKpB;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,YAAY;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer-input.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-input.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-input.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAChD,OAAO,CAAC,OAAO,CAA+B;IAC9C,OAAO,CAAC,UAAU,CAAO;IACzB,OAAO,CAAC,UAA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.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-send.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-send.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-send.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,qBAAa,kBAAmB,SAAQ,WAAW;IAC/C,OAAO,CAAC,OAAO,CAAkC;IACjD,OAAO,CAAC,aAAa,CAAsB;IAC3C;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAA2F;IAGzG,OAAO,CAAC,QAAQ,CAAgC;IAEhD,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,OAAO;IAkBf,OAAO,CAAC,cAAc;IAgCtB;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;IAOtB;;;;;;;;OAQG;IACH,OAAO,CAAC,eAAe;IAsBvB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,mBAAmB;IAiB3B;;;OAGG;IACH,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,YAAY;CAGvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-toolbar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer-toolbar.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IAClD,OAAO,CAAC,SAAS,CAAiC;IAElD,iBAAiB,IAAI,IAAI;IAezB,oBAAoB,IAAI,IAAI;IAK5B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,UAAU;CAcrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-composer.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-composer.d.ts","sourceRoot":"","sources":["../../../src/components/composer/aparte-composer.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAKxD,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,uBAAuB,CAAA;KAAE,CAAC;CAC9F;AAED,MAAM,MAAM,uBAAuB,GAAG,MAAM,sBAAsB,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,IAAI,EAAE,CAAC;IACpB,2EAA2E;IAC3E,WAAW,EAAE,OAAO,CAAC;IACrB,8EAA8E;IAC9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,OAAO,CAAC,cAAc;IA8BtB;;;;;;;OAOG;IACH,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,uBAAuB,GAAG,IAAI;IAQ7E;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;IAKzB,IAAI,WAAW,IAAI,OAAO,CAA8B;IAExD;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAO1B,oFAAoF;IACpF,MAAM,IAAI,IAAI;IA8Cd,6CAA6C;IAC7C,MAAM,IAAI,IAAI;IA2Bd;;;;OAIG;IACH,KAAK,IAAI,IAAI;IAMb,sDAAsD;IAC7C,KAAK,IAAI,IAAI;IAOtB,gGAAgG;IAChG,KAAK,CAAC,CAAC,SAAS,uBAAuB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI;IAa5F,gGAAgG;IAChG,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;;;;;;;;;;;;;OAaG;IACH;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,YAAY;IAapB;;;;OAIG;IACH,OAAO,CAAC,mBAAmB,CAAuB;IAElD;;;;;;;;;OASG;IACH,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,kBAAkB;CAQ7B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { type AparteContextMeasure } from '../../context/measure.js';
|
|
1
2
|
/** How full the window is, against the two thresholds. */
|
|
2
3
|
export type AparteContextLevel = 'ok' | 'warn' | 'danger';
|
|
3
4
|
/** Detail of `aparte-context-threshold`: the level just entered, and the numbers behind it. */
|
|
4
5
|
export interface AparteContextThresholdEventDetail {
|
|
5
6
|
level: AparteContextLevel;
|
|
6
|
-
/** Tokens the last turn reported
|
|
7
|
+
/** Tokens in use — the last turn's reported usage (prompt sent plus reply), or an estimate once the context has changed since. */
|
|
7
8
|
used: number;
|
|
8
9
|
/** The window those tokens are measured against. */
|
|
9
10
|
window: number;
|
|
@@ -13,28 +14,51 @@ export interface AparteContextThresholdEventDetail {
|
|
|
13
14
|
targetId?: string;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
|
-
* A gauge of the model's context window: how much of it the conversation uses
|
|
17
|
+
* A gauge of the model's context window: how much of it the conversation uses, and what
|
|
18
|
+
* fills it.
|
|
17
19
|
*
|
|
18
|
-
* It
|
|
19
|
-
* `aparte-message-done` carries the provider's usage, and the prompt tokens of the
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
20
|
+
* It draws one number against the window. The number is what the last turn REPORTED —
|
|
21
|
+
* `aparte-message-done` carries the provider's usage, and the prompt tokens of the last call
|
|
22
|
+
* are the size of the context as the model saw it — for as long as nothing the model reads
|
|
23
|
+
* has changed since. Once something has (a compaction summarised the history, a Restore
|
|
24
|
+
* brought it back), the reported number describes a request that will not be sent again, so
|
|
25
|
+
* the gauge measures the request that WOULD be sent and prefixes it with `~`: an estimate,
|
|
26
|
+
* calibrated against the last reply, never a stale figure and never a blank. The measure is
|
|
27
|
+
* `measureContext`, the same one the compaction plugin decides on.
|
|
28
|
+
*
|
|
29
|
+
* The WINDOW is the current model's `contextWindow` (a provider's `/models` fetch fills it
|
|
30
|
+
* in), or the `window` attribute when you know better. With no window, or before the first
|
|
31
|
+
* turn, it renders nothing — an affordance with nothing to show has no chrome to leave.
|
|
24
32
|
*
|
|
25
33
|
* Two thresholds turn it `warn` then `danger` (`data-level`), and crossing one fires
|
|
26
|
-
* `aparte-context-threshold`.
|
|
27
|
-
* `aparte-
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
34
|
+
* `aparte-context-threshold`. A turn the model refused as over its window
|
|
35
|
+
* (`USAGE_CONTEXT_EXCEEDED` on `aparte-message-error`) turns it `danger` whatever the number
|
|
36
|
+
* says: the model has just said what the number could not.
|
|
37
|
+
*
|
|
38
|
+
* The gauge is also a disclosure. It is a button (`aria-expanded`; click, Enter or Space) that
|
|
39
|
+
* opens a panel listing what the window holds — the system prompt, the tools, the summary
|
|
40
|
+
* of a compacted history, the messages — beside what is free. The parts are estimates and
|
|
41
|
+
* labelled so; what the heuristic cannot see is `other`. When
|
|
42
|
+
* `@aparte/plugin-compaction` is registered as the compactor and can say what compacting
|
|
43
|
+
* would do, the panel adds "Compacting now would free ~N tokens" and a **Compact now** button.
|
|
44
|
+
* While a compaction runs the element carries `data-compact="running"`, and `"failed"` after a
|
|
45
|
+
* failure, with Retry in the panel. Escape and a click outside close it; nothing opens on hover.
|
|
46
|
+
*
|
|
47
|
+
* `auto-compact` is deprecated: the plugin decides when to compact now (after a turn, and
|
|
48
|
+
* before a send that would overflow), so a page does not need the gauge to ask. It still
|
|
49
|
+
* works — a turn that ends in `danger` dispatches `aparte-compact`, one request at a time,
|
|
50
|
+
* with `auto: true` so the plugin can tell it from a button — and it will go away in a
|
|
51
|
+
* future major version.
|
|
52
|
+
*
|
|
53
|
+
* A new chat or a conversation loaded in place of the last replaces the reading: it is
|
|
54
|
+
* cleared on `aparte-reset-done` and, for a stored conversation, read from its last reply on
|
|
55
|
+
* `aparte-conversation-loaded`. A restored reading never asks for a compaction, whatever its
|
|
56
|
+
* level — that stays tied to the end of a turn.
|
|
33
57
|
*
|
|
34
58
|
* The bar wears the `aparte-progress` recipe. `variant="ring"` draws the same reading
|
|
35
59
|
* as a ring with the percentage beside it — for a toolbar, where a bar wants a width
|
|
36
60
|
* and a ring wants none; the full reading is the ring's `title`. The two share the
|
|
37
|
-
* levels, the events and the accessible name; only the drawing differs.
|
|
61
|
+
* levels, the events, the panel and the accessible name; only the drawing differs.
|
|
38
62
|
*
|
|
39
63
|
* @element aparte-context
|
|
40
64
|
*
|
|
@@ -42,21 +66,22 @@ export interface AparteContextThresholdEventDetail {
|
|
|
42
66
|
* @attr {number} used - Tokens in use before a turn of this page has reported any: a restored conversation's last usage. The next turn's usage replaces it.
|
|
43
67
|
* @attr {number} warn - Fraction of the window at which the level turns `warn`. Default `0.75`.
|
|
44
68
|
* @attr {number} danger - Fraction at which it turns `danger`. Default `0.9`.
|
|
45
|
-
* @attr {boolean} auto-compact - Dispatch `aparte-compact` on each turn that ends in `danger`, one request at a time.
|
|
69
|
+
* @attr {boolean} auto-compact - Deprecated, still works. Dispatch `aparte-compact` (with `auto: true`) on each turn that ends in `danger`, one request at a time. `@aparte/plugin-compaction` decides when to compact by itself now, so leave this off.
|
|
46
70
|
* @attr {string} target - The id of the `<aparte-chat>` to watch, when the element is not under it.
|
|
47
71
|
* @attr {string} variant - `bar` (default) or `ring`: a progress bar with the reading beside it, or a ring with the percentage.
|
|
48
72
|
* @attr {string} data-level - Reflected BY the element: `ok`, `warn` or `danger`. Read-only.
|
|
49
73
|
* @attr {boolean} data-empty - Reflected BY the element while it has nothing to show. Read-only.
|
|
74
|
+
* @attr {string} data-compact - Reflected BY the element while this chat is being compacted (`running`) and after a compaction failed (`failed`). Read-only.
|
|
50
75
|
*
|
|
51
76
|
* @fires {CustomEvent<AparteContextThresholdEventDetail>} aparte-context-threshold - The level changed. Bubbles.
|
|
52
|
-
* @fires {CustomEvent<AparteCompactEventDetail>} aparte-compact - Dispatched on `window` when `auto-compact` is set and a turn ends in `danger
|
|
77
|
+
* @fires {CustomEvent<AparteCompactEventDetail>} aparte-compact - Dispatched on `window` when the deprecated `auto-compact` is set and a turn ends in `danger` (`auto: true`, with the `window` it measured against), and by Retry in the panel when no compactor is registered. One automatic request at a time — the next turn in `danger` asks again once the plugin has answered. `@aparte/plugin-compaction` answers it; with no listener nothing happens.
|
|
53
78
|
*
|
|
54
79
|
* @cssprop [--aparte-context-ring-size=22px] - Diameter of the ring variant.
|
|
55
80
|
*
|
|
56
81
|
* @example
|
|
57
82
|
* <!-- The same gauge twice: the bar takes the room it is given, the ring takes none. -->
|
|
58
83
|
* <aparte-composer-toolbar>
|
|
59
|
-
* <aparte-context window="128000"
|
|
84
|
+
* <aparte-context window="128000" style="flex: 1"></aparte-context>
|
|
60
85
|
* <aparte-context window="128000" variant="ring"></aparte-context>
|
|
61
86
|
* </aparte-composer-toolbar>
|
|
62
87
|
*
|
|
@@ -71,22 +96,68 @@ export interface AparteContextThresholdEventDetail {
|
|
|
71
96
|
*/
|
|
72
97
|
export declare class AparteContext extends HTMLElement {
|
|
73
98
|
static get observedAttributes(): string[];
|
|
99
|
+
/**
|
|
100
|
+
* A reading with no transcript behind it: the `used` attribute's seed, or a turn's usage
|
|
101
|
+
* when the chat's list cannot be read from here (a gauge placed far from its chat, a test).
|
|
102
|
+
* When the list can be read, the measure comes from it and this is only the fallback.
|
|
103
|
+
*/
|
|
74
104
|
private _used;
|
|
75
105
|
private _level;
|
|
76
106
|
private _compactRequested;
|
|
107
|
+
/** The last turn's usage and the reply it belongs to, so the measure has it before the list has written it back. */
|
|
108
|
+
private _lastDone;
|
|
109
|
+
/** What the model reads changed with nothing on the path to say so (a Restore): the reading is an estimate until the next turn reports. */
|
|
110
|
+
private _viewChanged;
|
|
111
|
+
/** A conversation was replaced and nothing has reported or loaded since: the list on screen is not read yet. */
|
|
112
|
+
private _blank;
|
|
113
|
+
/** The model refused a request as over its window; the level is `danger` until something changes. */
|
|
114
|
+
private _overflow;
|
|
115
|
+
private _compact;
|
|
116
|
+
private _failure;
|
|
117
|
+
private _open;
|
|
118
|
+
/** The reading drawn last, so the `used` getter and the panel read what is on screen. */
|
|
119
|
+
private _measured;
|
|
120
|
+
/** The chat an event last came from, for a gauge that is neither under its chat nor names it with `target`. */
|
|
121
|
+
private _seen;
|
|
122
|
+
/** What the panel was last built from: a render that changes nothing leaves its nodes, and the focus in them, alone. */
|
|
123
|
+
private _panelSignature;
|
|
124
|
+
private _remember;
|
|
77
125
|
private _onDone;
|
|
78
126
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
127
|
+
* A conversation is replaced — a new chat, or one loaded in place of the last — and the
|
|
128
|
+
* previous reading is not this one's. The viewport says so with `aparte-reset-done` (no
|
|
129
|
+
* detail: the chat is found from where the event came from). A load clears first and
|
|
130
|
+
* `aparte-conversation-loaded` follows, so the reading is dropped here and read again
|
|
131
|
+
* there. Until then the chat's list is not trusted: a framework's may not have caught up.
|
|
132
|
+
*/
|
|
133
|
+
private _onReset;
|
|
134
|
+
/**
|
|
135
|
+
* The messages of a stored conversation are on screen: the reading is the last reply's
|
|
136
|
+
* usage — what a turn would have reported had it just ended. A transcript with none
|
|
137
|
+
* (an empty one, a conversation saved before usage was kept) shows nothing, the same as
|
|
138
|
+
* a chat that has not spoken yet.
|
|
139
|
+
*/
|
|
140
|
+
private _onLoaded;
|
|
141
|
+
/** A compaction began for this chat: say so on the element and in the panel. */
|
|
142
|
+
private _onCompactStart;
|
|
143
|
+
/**
|
|
144
|
+
* After a real compaction — or a Restore — what the model reads is a different size by an
|
|
145
|
+
* amount nobody has measured yet, and the last reply's reported usage describes the request
|
|
146
|
+
* from before. The gauge measures the request that would be sent now and says so with `~`,
|
|
147
|
+
* rather than keeping a number it knows to be wrong or going blank until the next turn. The
|
|
148
|
+
* event names the chat it compacted, so on a multi-chat page only that chat's gauge
|
|
149
|
+
* moves; an unnamed one moves every gauge.
|
|
150
|
+
*
|
|
151
|
+
* Without a transcript to measure (a gauge that cannot read its chat's list) there is
|
|
152
|
+
* nothing to estimate from, and the reading is dropped as it always was.
|
|
84
153
|
*/
|
|
85
154
|
private _onCompacted;
|
|
86
155
|
/** A failed compaction spends the request too; the next `danger` asks again. */
|
|
87
156
|
private _onCompactError;
|
|
157
|
+
/** The model refused this chat's request as over its window: the number was wrong, and so is "ok". */
|
|
158
|
+
private _onMessageError;
|
|
88
159
|
private _onRerender;
|
|
89
|
-
/** Tokens
|
|
160
|
+
/** Tokens in use — what is drawn — else the last reported or seeded reading, else `null`. */
|
|
90
161
|
get used(): number | null;
|
|
91
162
|
/**
|
|
92
163
|
* Writes the `used` attribute: a reading for a conversation restored without a turn of
|
|
@@ -105,13 +176,74 @@ export declare class AparteContext extends HTMLElement {
|
|
|
105
176
|
set window(value: number | null);
|
|
106
177
|
/** The current level, or `null` while nothing is shown. */
|
|
107
178
|
get level(): AparteContextLevel | null;
|
|
179
|
+
/** The reading drawn now, parts and all, or `null` while nothing is shown. */
|
|
180
|
+
get measure(): AparteContextMeasure | null;
|
|
108
181
|
connectedCallback(): void;
|
|
109
182
|
disconnectedCallback(): void;
|
|
110
183
|
attributeChangedCallback(name: string): void;
|
|
184
|
+
/**
|
|
185
|
+
* The config the chat this gauge watches answers to, not the one at the gauge's own
|
|
186
|
+
* position. A gauge in a header, with `target=`, stands outside the chat's boundary, and
|
|
187
|
+
* a chat that carries its own config (a wrapper's `config` prop) has its own prompt, tools,
|
|
188
|
+
* window and compactor: the client and the plugin read them from there, so the gauge must
|
|
189
|
+
* too, or it measures a different request and offers no Compact now. Resolved live, like
|
|
190
|
+
* every config read: the boundary may be attached after this element connects.
|
|
191
|
+
*/
|
|
192
|
+
private _cfg;
|
|
111
193
|
private _window;
|
|
112
194
|
/** The chat this gauge watches: `target`, else the chat host above it — the composer's rule. */
|
|
113
195
|
private _ownTargetId;
|
|
114
196
|
private _isMine;
|
|
197
|
+
/**
|
|
198
|
+
* The chat's element: the one `target` names, else the chat above the gauge, else the one
|
|
199
|
+
* its events last came from. Passed to the compactor as it is — a chat inside a shadow
|
|
200
|
+
* root is not found by id, so the element is the address that always works.
|
|
201
|
+
*/
|
|
202
|
+
private _chat;
|
|
203
|
+
/** The chat's active path, or `null` when it cannot be read from here. */
|
|
204
|
+
private _messages;
|
|
205
|
+
/**
|
|
206
|
+
* What to draw: the measure of the chat's own transcript when it holds a reply with usage
|
|
207
|
+
* (or the model has just refused a request, and an estimate is better than nothing), else
|
|
208
|
+
* the seeded or reported number with nothing to break down.
|
|
209
|
+
*
|
|
210
|
+
* The last turn's usage is laid over its reply when the list has not written it back yet.
|
|
211
|
+
* If the list does not hold that reply at all it is not used: the list is the path on
|
|
212
|
+
* screen, and a reply that is not on it (a branch was switched) is not its reading.
|
|
213
|
+
*/
|
|
214
|
+
private _measure;
|
|
115
215
|
private _render;
|
|
216
|
+
/**
|
|
217
|
+
* What the window holds, row by row, and what can be done about it.
|
|
218
|
+
*
|
|
219
|
+
* The parts are raw estimates and `used` is the number the gauge draws — measured or
|
|
220
|
+
* calibrated — so they need not agree. The panel never shows a sum above the total: when
|
|
221
|
+
* the estimates add up to more than `used`, each is scaled down to fit and `other` is
|
|
222
|
+
* zero; otherwise the difference is `other`, the part the heuristic cannot see.
|
|
223
|
+
*/
|
|
224
|
+
private _renderPanel;
|
|
225
|
+
private _action;
|
|
226
|
+
/**
|
|
227
|
+
* Ask the registered compactor to compact this chat now, as a person asked. With none
|
|
228
|
+
* registered (Retry only — Compact now is not offered without one) the command event
|
|
229
|
+
* is the way to ask, the one a host's own button uses.
|
|
230
|
+
*/
|
|
231
|
+
private _compactNow;
|
|
232
|
+
private _onClick;
|
|
233
|
+
private _setOpen;
|
|
234
|
+
/**
|
|
235
|
+
* Escape and a click anywhere else close the panel. Listened for on the document only
|
|
236
|
+
* while it is open: a page full of closed gauges holds no listeners but its own.
|
|
237
|
+
*/
|
|
238
|
+
private _onDocumentClick;
|
|
239
|
+
private _onDocumentKeydown;
|
|
240
|
+
private _listenWhileOpen;
|
|
241
|
+
private _stopListeningWhileOpen;
|
|
242
|
+
/**
|
|
243
|
+
* Where the panel opens: above the reading by default, since a gauge usually sits in the
|
|
244
|
+
* composer at the foot of the page; below when there is no room above, and flush with the
|
|
245
|
+
* other edge when it would run past the window's.
|
|
246
|
+
*/
|
|
247
|
+
private _place;
|
|
116
248
|
}
|
|
117
249
|
//# sourceMappingURL=aparte-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/aparte-context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/aparte-context.ts"],"names":[],"mappings":"AAQA,OAAO,EAA+B,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAKlG,0DAA0D;AAC1D,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE1D,+FAA+F;AAC/F,MAAM,WAAW,iCAAiC;IAC9C,KAAK,EAAE,kBAAkB,CAAC;IAC1B,kIAAkI;IAClI,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAoED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED;;;;OAIG;IACH,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,iBAAiB,CAAS;IAClC,oHAAoH;IACpH,OAAO,CAAC,SAAS,CAAsE;IACvF,2IAA2I;IAC3I,OAAO,CAAC,YAAY,CAAS;IAC7B,gHAAgH;IAChH,OAAO,CAAC,MAAM,CAAS;IACvB,qGAAqG;IACrG,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,QAAQ,CAAqC;IACrD,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,yFAAyF;IACzF,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AQG;IACH,OAAO,CAAC,QAAQ;IAchB,OAAO,CAAC,OAAO;IAsIf;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAmFpB,OAAO,CAAC,OAAO;IAOf;;;;OAIG;YACW,WAAW;IA+BzB,OAAO,CAAC,QAAQ,CAad;IAEF,OAAO,CAAC,QAAQ;IAUhB;;;OAGG;IACH,OAAO,CAAC,gBAAgB,CAEtB;IAEF,OAAO,CAAC,kBAAkB,CAOxB;IAEF,OAAO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,uBAAuB;IAK/B;;;;OAIG;IACH,OAAO,CAAC,MAAM;CAUjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AAQA,OAAO,EAIH,KAAK,wBAAwB,EAChC,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-conversation-list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation-list/aparte-conversation-list.ts"],"names":[],"mappings":"AAQA,OAAO,EAIH,KAAK,wBAAwB,EAChC,MAAM,4CAA4C,CAAC;AAGpD,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;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,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;CACd;AA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AC,cAAc;IA6BtB,OAAO,CAAC,YAAY;IAsBpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,QAAQ,CA2Bd;IAEF,OAAO,CAAC,UAAU,CAYhB;IAEF,sEAAsE;IACtE,OAAO,CAAC,kBAAkB;CAQ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-elicitation.d.ts","sourceRoot":"","sources":["../../../src/components/elicitation/aparte-elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEtG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"aparte-elicitation.d.ts","sourceRoot":"","sources":["../../../src/components/elicitation/aparte-elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAgC,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEtG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAiGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyFG;AACH,qBAAa,iBAAkB,SAAQ,WAAY,YAAW,iBAAiB;IAC3E,OAAO,CAAC,QAAQ,CAAwB;IACxC;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,UAAU,CAKhB;IAEF,OAAO,CAAC,kBAAkB,CAA6B;IAEvD,iBAAiB,IAAI,IAAI;IAiBzB;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,GAAG,IAAI;IAQrE,oBAAoB,IAAI,IAAI;IAY5B;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,QAAQ,CAmQd;IAEF,OAAO,CAAC,cAAc;IAItB;;;;;;;;;OASG;IACH,OAAO,CAAC,gBAAgB;IAWxB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,YAAY;CAwBvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-scroll-rail.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-rail/aparte-scroll-rail.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-scroll-rail.d.ts","sourceRoot":"","sources":["../../../src/components/scroll-rail/aparte-scroll-rail.ts"],"names":[],"mappings":"AAKA,yEAAyE;AACzE,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,qFAAqF;AACrF,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,SAAS,CAAC;AAYvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC7C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,UAAU,CAAiC;IACnD,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,cAAc,CAAqC;IAC3D,oHAAoH;IACpH,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,mFAAmF;IACnF,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAuB;IACzC,wFAAwF;IACxF,OAAO,CAAC,QAAQ,CAA6B;IAC7C,yFAAyF;IACzF,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,iBAAiB,CAAqC;IAC9D,+EAA+E;IAC/E,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CA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AAO,CAAC,SAAS;IAIjB,OAAO,CAAC,SAAS;IAKjB,qFAAqF;IACrF,OAAO,CAAC,KAAK;IAUb,OAAO,CAAC,WAAW;IAKnB,iGAAiG;IACjG,OAAO,CAAC,OAAO;IAoBf,OAAO,CAAC,QAAQ;CAOnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/aparte-sidebar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/aparte-sidebar.ts"],"names":[],"mappings":"AAMA,iEAAiE;AACjE,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;CACnB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,MAAM,CAA+B;IAC7C,OAAO,CAAC,MAAM,CAA4B;IAC1C,0EAA0E;IAC1E,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,cAAc,CAAwB;IAE9C;;;;;;;;;OASG;IACH,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;IACH,OAAO,CAAC,aAAa,CAAS;IAE9B;;;;;;OAMG;IACH,OAAO,CAAC,iBAAiB,CAAS;IAElC,qGAAqG;IACrG,OAAO,CAAC,KAAK,CAAS;IAEtB;;;;;OAKG;IACH,OAAO,CAAC,UAAU,CAAS;IAC3B,gGAAgG;IAChG,OAAO,CAAC,MAAM,CAAM;IACpB,6FAA6F;IAC7F,OAAO,CAAC,UAAU,CAAiC;IAEnD,oFAAoF;IACpF,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,KAAK,EAAE,OAAO,EAE3B;IAED,iFAAiF;IACjF,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,iBAAiB,IAAI,IAAI;IAiCzB;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAexB,oBAAoB,IAAI,IAAI;IAY5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IA+B5C,0FAA0F;IAC1F,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAKhC,KAAK,IAAI,IAAI;IAIb,MAAM,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI;IAOlC,OAAO,CAAC,cAAc,CAAkE;IAExF;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAepB;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAgBpB,wFAAwF;IACxF,OAAO,CAAC,OAAO;IAKf;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,WAAW;IAYnB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,UAAU,CAiChB;IAEF,8FAA8F;IAC9F,OAAO,CAAC,gBAAgB,CAOtB;IAIF,OAAO,CAAC,QAAQ,CAId;IAEF;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAqB7B,OAAO,CAAC,MAAM;IAId;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,eAAe,CAA+B;IAEtD,OAAO,CAAC,QAAQ;CAMnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-split.d.ts","sourceRoot":"","sources":["../../../src/components/split/aparte-split.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-split.d.ts","sourceRoot":"","sources":["../../../src/components/split/aparte-split.ts"],"names":[],"mappings":"AAMA,uFAAuF;AACvF,MAAM,WAAW,uBAAuB;IACp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CAAC,gBAAgB,CAmBtB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,eAAe,CAA+B;IAEtD;;;;OAIG;IACH,OAAO,CAAC,QAAQ;CASnB"}
|
|
@@ -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":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED;;;;;;OAMG;IACH,OAAO,KAAK,IAAI,GAEf;IAED,4FAA4F;IAC5F,OAAO,CAAC,KAAK;;IAQb,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;IAgDf;;;;;;;;;OASG;IACH,OAAO,CAAC,UAAU;IAUlB;;;;;;;;;;;;;;;OAeG;IACH,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,WAAW;CAmBpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3E,2EAA2E;AAC3E,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAwBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,YAAY,CAA0B;IAC9C,OAAO,CAAC,SAAS,CAA+B;IAEhD,+EAA+E;IAC/E,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,mBAAmB,CAAiC;IAC5D,kEAAkE;IAClE,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAQ;IACzB,6EAA6E;IAC7E,OAAO,CAAC,OAAO,CAAS;IAWxB,OAAO,CAAC,OAAO,CAMb;IAEF,OAAO,CAAC,eAAe,CAKrB;IAEF,OAAO,CAAC,eAAe,CAGrB;IAEF,yFAAyF;IACzF,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAEpC;IAED;;;;;;;OAOG;IACH,IAAI,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAKjD;IAED,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAS5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAgB5C,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,OAAO,CAAuB;IAEtC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAOtB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,cAAc;IAOtB;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAO1B,6FAA6F;IAC7F,OAAO,CAAC,gBAAgB;IAkBxB,+FAA+F;IAC/F,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,OAAO;IAyBf,OAAO,CAAC,SAAS;CAwBpB"}
|
|
@@ -211,6 +211,13 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
211
211
|
/** Last `--aparte-transcript-inset` written on the host, in px — same write-on-change rule. */
|
|
212
212
|
private _transcriptInset;
|
|
213
213
|
private _boundResetHandler;
|
|
214
|
+
/**
|
|
215
|
+
* Marks the bubble a compaction is writing its checkpoint onto (`data-checkpoint`). The
|
|
216
|
+
* vanilla viewport's job: under a wrapper the transcript is the framework's, and the
|
|
217
|
+
* host answers for it instead (`active` below).
|
|
218
|
+
*/
|
|
219
|
+
private _checkpointState;
|
|
220
|
+
private _stopCheckpointState;
|
|
214
221
|
/**
|
|
215
222
|
* When true, _reRenderActivePath() only dispatches aparte-path-changed without
|
|
216
223
|
* touching the DOM. Set via setFrameworkManagedDOM(true) when a framework
|
|
@@ -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;AAM9B,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,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AAQ,CAAC,gBAAgB,CAkC/B;IAEF,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAIhC;IAEF,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,eAAe;IAgKvB;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAQrB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,sBAAsB;IAe9B,gFAAgF;IAChF,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,aAAa;IAoJrB,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,QAAQ;IAIhB;;;;;;;OAOG;IACH,OAAO,CAAC,cAAc;IAOtB,wFAAwF;IACxF,OAAO,CAAC,SAAS;IAmBjB;;;;;;OAMG;IACH,OAAO,CAAC,gBAAgB;IAMxB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,OAAO,CAAC,eAAe;IAwBvB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,qBAAqB;IAK7B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;IA2B3B;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;IA6E1B,2FAA2F;IAC3F,OAAO,CAAC,YAAY;IAiBpB;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,QAAQ;CAsCnB"}
|
|
@@ -22,6 +22,7 @@ import type { AparteTransport } from '../transport/index.js';
|
|
|
22
22
|
import type { AparteTool, AparteToolHandler, AparteToolRenderer, AparteToolSummary, AparteToolInputFormatter, AparteToolCall, AparteToolMatcher, AparteToolDisplay, AparteApprovalPolicy, AparteApprovalRuling } from '../types/tools.js';
|
|
23
23
|
import type { AparteSegmentDefaults } from '../types/segments.js';
|
|
24
24
|
import type { AparteStreamBlock } from '../types/stream-blocks.js';
|
|
25
|
+
import type { AparteCompactor } from '../types/compactor.js';
|
|
25
26
|
import type { AparteBubbleActionsConfig, AparteBubbleActionName, AparteHostHandlersConfig } from '../types/models.js';
|
|
26
27
|
import type { AparteConversationManager } from '../conversations/conversation-manager.js';
|
|
27
28
|
import { type AparteSanitizer } from './sanitize.js';
|
|
@@ -100,6 +101,8 @@ export interface AparteStreamingMarkdownRenderer {
|
|
|
100
101
|
*/
|
|
101
102
|
export type AparteStreamingMarkdownProvider = (target: HTMLElement) => AparteStreamingMarkdownRenderer;
|
|
102
103
|
export declare function renderingVersionOf(cfg: AparteConfig): number;
|
|
104
|
+
export declare function onRenderersChange(listener: (cfg: AparteConfig) => void): () => void;
|
|
105
|
+
export declare function notifyRenderersChanged(cfg: AparteConfig): void;
|
|
103
106
|
/**
|
|
104
107
|
* Everything a chat is configured with: the providers and the selected model, the
|
|
105
108
|
* transport and the keys, the tools, the renderers and render hooks, the Markdown and
|
|
@@ -166,6 +169,7 @@ export declare class AparteConfig {
|
|
|
166
169
|
private _transport;
|
|
167
170
|
private _modelPreferenceProvider?;
|
|
168
171
|
private _approvalPolicy;
|
|
172
|
+
private _compactor;
|
|
169
173
|
private _conversationManager?;
|
|
170
174
|
private _elicitationPresenters;
|
|
171
175
|
/** Warn once per config, not once per request — a tool loop can ask repeatedly. */
|
|
@@ -187,6 +191,11 @@ export declare class AparteConfig {
|
|
|
187
191
|
private _elicitationQueue;
|
|
188
192
|
private _tools;
|
|
189
193
|
private _toolRenderers;
|
|
194
|
+
/** {@link overrideToolRenderer}'s stacks: what each matcher held below every override. */
|
|
195
|
+
/** Per matcher: what it held below every override, then one entry per override — an object of its own, so two overrides of the same renderer are told apart. */
|
|
196
|
+
private _toolRendererOverrides;
|
|
197
|
+
/** Bumped by `reset()`: a restore function from before it must not undo what came after. */
|
|
198
|
+
private _overrideGeneration;
|
|
190
199
|
private _toolDisplays;
|
|
191
200
|
/** Tagged blocks the stream parser recognises in the prose — see {@link registerStreamBlock}. */
|
|
192
201
|
private _streamBlocks;
|
|
@@ -545,6 +554,21 @@ export declare class AparteConfig {
|
|
|
545
554
|
setApprovalPolicy(policy: AparteApprovalPolicy | null): void;
|
|
546
555
|
/** The registered approval policy, or `null`. */
|
|
547
556
|
getApprovalPolicy(): AparteApprovalPolicy | null;
|
|
557
|
+
/**
|
|
558
|
+
* Register what makes the context smaller: the gauge's Compact now, a separator's
|
|
559
|
+
* Retry and the client's pre-flight and overflow retry call it. `null` removes it.
|
|
560
|
+
*
|
|
561
|
+
* `@aparte/plugin-compaction`'s `setupCompaction()` registers itself here; core never
|
|
562
|
+
* compacts on its own, so a page without a compactor has a gauge that measures and a
|
|
563
|
+
* separator whose Retry falls back to the `aparte-compact` event. A chat reads the one
|
|
564
|
+
* on ITS config first (`resolveConfig(chat).getCompactor()`), then the client's.
|
|
565
|
+
*
|
|
566
|
+
* Notifies like every other registration: a mounted gauge has to hear that "Compact
|
|
567
|
+
* now" became possible after it was drawn, or went away.
|
|
568
|
+
*/
|
|
569
|
+
setCompactor(compactor: AparteCompactor | null): void;
|
|
570
|
+
/** The registered compactor, or `null`. */
|
|
571
|
+
getCompactor(): AparteCompactor | null;
|
|
548
572
|
/**
|
|
549
573
|
* What the policy says about one call, with the tool's own `needsApproval` as the
|
|
550
574
|
* answer when it has no opinion. The one place the two are combined, so the client's
|
|
@@ -704,11 +728,33 @@ export declare class AparteConfig {
|
|
|
704
728
|
* // Custom pill for a web-search tool
|
|
705
729
|
* aparteGlobalConfig.registerToolRenderer('web_search', { render: (seg) => `<div class="aparte-tool-label">Searching...</div>` });
|
|
706
730
|
*
|
|
731
|
+
* Calls already on screen follow: those this registration now draws are drawn again
|
|
732
|
+
* by it (the renderer that drew them before gets its `cleanup`), and nothing else on
|
|
733
|
+
* the page is touched.
|
|
734
|
+
*
|
|
707
735
|
* @example
|
|
708
736
|
* // One look for every tool an MCP server brings
|
|
709
737
|
* aparteGlobalConfig.registerToolRenderer(/^mcp__/, { render: (seg) => myMcpCard(seg) });
|
|
710
738
|
*/
|
|
711
739
|
registerToolRenderer(match: AparteToolMatcher, renderer: AparteToolRenderer): void;
|
|
740
|
+
/**
|
|
741
|
+
* Put `renderer` over whatever this matcher holds, and get back the function that takes
|
|
742
|
+
* it off again — the registration a component makes for as long as it is mounted.
|
|
743
|
+
*
|
|
744
|
+
* Overrides stack per matcher. The function restores what was there before THIS
|
|
745
|
+
* override, and taking off an override that is no longer on top changes nothing on
|
|
746
|
+
* screen: two components declaring the same tool, the newer wins, and unmounting the
|
|
747
|
+
* older does not take the newer's away. When the last one goes, the matcher holds what
|
|
748
|
+
* it held before the first — another registration, or nothing. Calls on screen follow
|
|
749
|
+
* each change, as with {@link registerToolRenderer}. The returned function is safe to
|
|
750
|
+
* call twice.
|
|
751
|
+
*
|
|
752
|
+
* @example
|
|
753
|
+
* const restore = aparteGlobalConfig.overrideToolRenderer('get_weather', weatherCard);
|
|
754
|
+
* // …later, when the component that declared it unmounts:
|
|
755
|
+
* restore();
|
|
756
|
+
*/
|
|
757
|
+
overrideToolRenderer(match: AparteToolMatcher, renderer: AparteToolRenderer): () => void;
|
|
712
758
|
/**
|
|
713
759
|
* Field defaults for a segment TYPE, filled in when a segment enters a message.
|
|
714
760
|
*
|
|
@@ -741,7 +787,7 @@ export declare class AparteConfig {
|
|
|
741
787
|
getSegmentDefaults(type: string): AparteSegmentDefaults | undefined;
|
|
742
788
|
/** Drop the defaults for a type. */
|
|
743
789
|
clearSegmentDefaults(type: string): void;
|
|
744
|
-
/** Unregister the renderer registered under this matcher. */
|
|
790
|
+
/** Unregister the renderer registered under this matcher. Calls on screen it drew go back to core's row. */
|
|
745
791
|
unregisterToolRenderer(match: AparteToolMatcher): void;
|
|
746
792
|
/** The renderer that draws a tool named `toolName` — exact, pattern or `'*'` — or undefined. */
|
|
747
793
|
getToolRenderer(toolName: string): AparteToolRenderer | undefined;
|