@aparte/core 0.13.1 → 0.14.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/README.md +2 -2
- package/dist/client/aparte-client.d.ts +36 -35
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +37 -145
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +10 -2
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +6 -6
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-input.d.ts +9 -1
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +12 -3
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/context/aparte-context.d.ts +81 -0
- package/dist/components/context/aparte-context.d.ts.map +1 -0
- package/dist/components/context/index.d.ts +3 -0
- package/dist/components/context/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/suggestions/aparte-suggestions.d.ts +95 -0
- package/dist/components/suggestions/aparte-suggestions.d.ts.map +1 -0
- package/dist/components/suggestions/index.d.ts +3 -0
- package/dist/components/suggestions/index.d.ts.map +1 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts +35 -7
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +1 -21
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/index.d.ts +0 -2
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/locale.d.ts +30 -1
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/conversations/index.d.ts +1 -1
- package/dist/conversations/index.d.ts.map +1 -1
- package/dist/conversations/types.d.ts +9 -57
- package/dist/conversations/types.d.ts.map +1 -1
- package/dist/custom-elements.json +7818 -7479
- package/dist/generated/element-attributes.d.ts +34 -6
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/{glyphs-QXfbL3n_.js → glyphs-B3BZ2TIb.js} +21 -21
- package/dist/glyphs-B3BZ2TIb.js.map +1 -0
- package/dist/host/aparte-chat-host.d.ts +1 -1
- package/dist/host/aparte-chat-host.d.ts.map +1 -1
- package/dist/icons/extended.d.ts +87 -85
- package/dist/icons/extended.d.ts.map +1 -1
- package/dist/icons/glyphs.d.ts +53 -50
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons.js +41 -41
- package/dist/icons.js.map +1 -1
- package/dist/index.css +512 -170
- package/dist/index.d.ts +10 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +593 -183
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +6 -4
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +56 -56
- package/dist/index.node.js.map +1 -1
- package/dist/{is-awaiting-reply-CWp1ffHh.js → is-awaiting-reply-BZ_iJ3s3.js} +175 -994
- package/dist/is-awaiting-reply-BZ_iJ3s3.js.map +1 -0
- package/dist/parsers/aparte-stream-parser.d.ts +6 -17
- package/dist/parsers/aparte-stream-parser.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +2 -2
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/runtime/message-repository.d.ts +7 -0
- package/dist/runtime/message-repository.d.ts.map +1 -1
- package/dist/transport/types.d.ts +8 -0
- package/dist/transport/types.d.ts.map +1 -1
- package/dist/types/chat.d.ts +32 -38
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/errors.d.ts +16 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/event-map.d.ts +4 -0
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/events.d.ts +15 -0
- package/dist/types/events.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/models.d.ts +1 -8
- package/dist/types/models.d.ts.map +1 -1
- package/dist/types/segments.d.ts +1 -13
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +1 -1
- package/dist/utils/chat-boundary.d.ts +8 -4
- package/dist/utils/chat-boundary.d.ts.map +1 -1
- package/package.json +5 -2
- package/dist/client/xml-artifact-feed.d.ts +0 -76
- package/dist/client/xml-artifact-feed.d.ts.map +0 -1
- package/dist/config/skeleton-provider.d.ts +0 -26
- package/dist/config/skeleton-provider.d.ts.map +0 -1
- package/dist/glyphs-QXfbL3n_.js.map +0 -1
- package/dist/is-awaiting-reply-CWp1ffHh.js.map +0 -1
- package/dist/renderers/segments/pipeline-waiting.d.ts +0 -3
- package/dist/renderers/segments/pipeline-waiting.d.ts.map +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/** How full the window is, against the two thresholds. */
|
|
2
|
+
export type AparteContextLevel = 'ok' | 'warn' | 'danger';
|
|
3
|
+
/** Detail of `aparte-context-threshold`: the level just entered, and the numbers behind it. */
|
|
4
|
+
export interface AparteContextThresholdEventDetail {
|
|
5
|
+
level: AparteContextLevel;
|
|
6
|
+
/** Tokens the last turn reported as used — the prompt sent plus the reply. */
|
|
7
|
+
used: number;
|
|
8
|
+
/** The window those tokens are measured against. */
|
|
9
|
+
window: number;
|
|
10
|
+
/** `used / window`, capped at 1. */
|
|
11
|
+
ratio: number;
|
|
12
|
+
/** The chat this gauge watches, when it has an id. */
|
|
13
|
+
targetId?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A gauge of the model's context window: how much of it the conversation uses.
|
|
17
|
+
*
|
|
18
|
+
* It reads two numbers and draws their ratio. The USED part is what each turn reports —
|
|
19
|
+
* `aparte-message-done` carries the provider's usage, and the prompt tokens of the
|
|
20
|
+
* last call are the size of the context as the model saw it. The WINDOW is the
|
|
21
|
+
* current model's `contextWindow` (a provider's `/models` fetch fills it in), or the
|
|
22
|
+
* `window` attribute when you know better. With no window, or before the first turn,
|
|
23
|
+
* it renders nothing — an affordance with nothing to show has no chrome to leave.
|
|
24
|
+
*
|
|
25
|
+
* Two thresholds turn it `warn` then `danger` (`data-level`), and crossing one fires
|
|
26
|
+
* `aparte-context-threshold`. With `auto-compact`, reaching `danger` dispatches
|
|
27
|
+
* `aparte-compact` for its chat — once, until the level drops again — which is what
|
|
28
|
+
* a gauge that turns red and then does nothing was missing. `AparteClient.compact()`
|
|
29
|
+
* summarises the whole history by default; give the client `@aparte/engine`'s
|
|
30
|
+
* `createCompactionSelector` and only what no longer fits the window is summarised.
|
|
31
|
+
*
|
|
32
|
+
* The bar wears the `aparte-progress` recipe; this element declares no custom
|
|
33
|
+
* property of its own.
|
|
34
|
+
*
|
|
35
|
+
* @element aparte-context
|
|
36
|
+
*
|
|
37
|
+
* @attr {number} window - The context window, in tokens. Overrides the current model's `contextWindow`.
|
|
38
|
+
* @attr {number} warn - Fraction of the window at which the level turns `warn`. Default `0.75`.
|
|
39
|
+
* @attr {number} danger - Fraction at which it turns `danger`. Default `0.9`.
|
|
40
|
+
* @attr {boolean} auto-compact - Dispatch `aparte-compact` on reaching `danger` (once per crossing).
|
|
41
|
+
* @attr {string} target - The id of the `<aparte-chat>` to watch, when the element is not under it.
|
|
42
|
+
* @attr {string} data-level - Reflected BY the element: `ok`, `warn` or `danger`. Read-only.
|
|
43
|
+
* @attr {boolean} data-empty - Reflected BY the element while it has nothing to show. Read-only.
|
|
44
|
+
*
|
|
45
|
+
* @fires {CustomEvent<AparteContextThresholdEventDetail>} aparte-context-threshold - The level changed. Bubbles.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* <aparte-composer-toolbar>
|
|
49
|
+
* <aparte-context auto-compact style="flex: 1"></aparte-context>
|
|
50
|
+
* </aparte-composer-toolbar>
|
|
51
|
+
*/
|
|
52
|
+
export declare class AparteContext extends HTMLElement {
|
|
53
|
+
static get observedAttributes(): string[];
|
|
54
|
+
private _used;
|
|
55
|
+
private _level;
|
|
56
|
+
private _compactRequested;
|
|
57
|
+
private _onDone;
|
|
58
|
+
/**
|
|
59
|
+
* After a real compaction the context is smaller by an amount nobody has measured
|
|
60
|
+
* yet — the next turn's usage will say. Until then the gauge shows nothing rather
|
|
61
|
+
* than a number it knows to be wrong. (`aparte-compact-done` names no chat: on a
|
|
62
|
+
* multi-chat page every gauge resets, and each is right again one turn later.)
|
|
63
|
+
*/
|
|
64
|
+
private _onCompacted;
|
|
65
|
+
private _onRerender;
|
|
66
|
+
/** Tokens the last turn reported, or `null` before the first turn. */
|
|
67
|
+
get used(): number | null;
|
|
68
|
+
/** The window in force — the attribute, else the current model's. */
|
|
69
|
+
get window(): number | null;
|
|
70
|
+
/** The current level, or `null` while nothing is shown. */
|
|
71
|
+
get level(): AparteContextLevel | null;
|
|
72
|
+
connectedCallback(): void;
|
|
73
|
+
disconnectedCallback(): void;
|
|
74
|
+
attributeChangedCallback(): void;
|
|
75
|
+
private _window;
|
|
76
|
+
/** The chat this gauge watches: `target`, else the chat host above it — the composer's rule. */
|
|
77
|
+
private _ownTargetId;
|
|
78
|
+
private _isMine;
|
|
79
|
+
private _render;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=aparte-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aparte-context.d.ts","sourceRoot":"","sources":["../../../src/components/context/aparte-context.ts"],"names":[],"mappings":"AAGA,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,8EAA8E;IAC9E,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;AAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC1C,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,MAAM,CAAmC;IACjD,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,OAAO,CAMb;IAEF;;;;;OAKG;IACH,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,WAAW,CAA8B;IAEjD,sEAAsE;IACtE,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,qEAAqE;IACrE,IAAI,MAAM,IAAI,MAAM,GAAG,IAAI,CAE1B;IAED,2DAA2D;IAC3D,IAAI,KAAK,IAAI,kBAAkB,GAAG,IAAI,CAErC;IAED,iBAAiB,IAAI,IAAI;IASzB,oBAAoB,IAAI,IAAI;IAM5B,wBAAwB,IAAI,IAAI;IAIhC,OAAO,CAAC,OAAO;IAOf,gGAAgG;IAChG,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,OAAO;CAmDlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,YAAY,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -7,4 +7,8 @@ export { AparteComposer, AparteComposerInput, AparteComposerSend, AparteComposer
|
|
|
7
7
|
export type { AparteComposerEventMap, AparteComposerEventType, AparteComposerState, AparteComposerChangeEventDetail, AparteComposerPanelMode, AparteActionClickEventDetail } from './composer/index.js';
|
|
8
8
|
export { AparteConversationList } from './conversation-list/index.js';
|
|
9
9
|
export type { AparteConversationListItem, AparteConversationSelectDetail, AparteConversationDeleteDetail, AparteConversationArchiveDetail } from './conversation-list/index.js';
|
|
10
|
+
export { AparteSuggestions } from './suggestions/index.js';
|
|
11
|
+
export type { AparteSuggestion, AparteSuggestionEventDetail } from './suggestions/index.js';
|
|
12
|
+
export { AparteContext } from './context/index.js';
|
|
13
|
+
export type { AparteContextLevel, AparteContextThresholdEventDetail } from './context/index.js';
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzN,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAGxM,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzN,YAAY,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAGxM,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,YAAY,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAGhL,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAG5F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One prompt starter: the text sent, or a visible label over a longer prompt.
|
|
3
|
+
*
|
|
4
|
+
* A string is both. The object form is for the case every welcome screen has —
|
|
5
|
+
* "Write a haiku" on the chip, "Write a haiku about web components." in the request.
|
|
6
|
+
*/
|
|
7
|
+
export type AparteSuggestion = string | {
|
|
8
|
+
label: string;
|
|
9
|
+
prompt?: string;
|
|
10
|
+
};
|
|
11
|
+
/** Detail of `aparte-suggestion`: what was shown and what will be sent. */
|
|
12
|
+
export interface AparteSuggestionEventDetail {
|
|
13
|
+
label: string;
|
|
14
|
+
prompt: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Prompt starters — a row of suggested prompts a reader clicks instead of typing.
|
|
18
|
+
*
|
|
19
|
+
* Every chat product opens on three or four of these, and the example app used to
|
|
20
|
+
* hand-roll them: four `<button class="chip">`, a click handler, a CSS recipe of its
|
|
21
|
+
* own. This element is that pattern done once, wearing the button recipe.
|
|
22
|
+
*
|
|
23
|
+
* A click goes THROUGH the composer — `setValue()` then `submit()` — never a synthetic
|
|
24
|
+
* `aparte-send`. The composer's `submit()` is where every gate lives (disabled, already
|
|
25
|
+
* streaming, `requireModelSelection`), and a chip that bypassed them once sent a
|
|
26
|
+
* request with an empty model id while the composer was visibly greyed out. So the
|
|
27
|
+
* element needs a composer: the nearest `<aparte-composer>` ancestor, else the one
|
|
28
|
+
* serving the chat named by `target`, else the first one in the document.
|
|
29
|
+
*
|
|
30
|
+
* Tier (a) of ratified decision #8: core honours the click alone, so it is live by
|
|
31
|
+
* default. `aparte-suggestion` fires first and is cancelable — `preventDefault()`
|
|
32
|
+
* leaves the composer untouched, for an app that wants the prompt for itself.
|
|
33
|
+
*
|
|
34
|
+
* It declares no custom property of its own: the gap comes from the global
|
|
35
|
+
* `--aparte-space-*` tokens and the chips from the `aparte-btn` recipe, so it inherits
|
|
36
|
+
* a theme rather than exposing knobs to re-set.
|
|
37
|
+
*
|
|
38
|
+
* @element aparte-suggestions
|
|
39
|
+
*
|
|
40
|
+
* @attr {string} suggestions - The starters, as a JSON array: strings, or
|
|
41
|
+
* `{ "label", "prompt" }` objects when the visible label and the sent text differ.
|
|
42
|
+
* The `suggestions` PROPERTY takes the same shape without the JSON.
|
|
43
|
+
* @attr {string} mode - `send` (default): the click fills the composer and submits.
|
|
44
|
+
* `fill`: the click fills the composer and focuses it, so the reader edits first.
|
|
45
|
+
* @attr {boolean} empty-only - Hides the row (`hidden`) once its composer has sent
|
|
46
|
+
* something. Remove the attribute, or `hidden`, to show it again.
|
|
47
|
+
* @attr {string} target - The id of the `<aparte-chat>` whose composer should receive
|
|
48
|
+
* the click, when the element is not inside that composer.
|
|
49
|
+
* @attr {boolean} data-empty - Reflected BY the element while it has no suggestion to
|
|
50
|
+
* show; the stylesheet hides it then. Read-only, do not set it yourself.
|
|
51
|
+
*
|
|
52
|
+
* @fires {CustomEvent<AparteSuggestionEventDetail>} aparte-suggestion - A starter was
|
|
53
|
+
* clicked. Bubbles, and is cancelable: `preventDefault()` stops the composer from
|
|
54
|
+
* being filled or submitted.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* <aparte-composer>
|
|
58
|
+
* <aparte-suggestions empty-only
|
|
59
|
+
* suggestions='["What is aparté?", {"label": "Write a haiku", "prompt": "Write a haiku about web components."}]'>
|
|
60
|
+
* </aparte-suggestions>
|
|
61
|
+
* <div class="aparte-composer-shell">…</div>
|
|
62
|
+
* </aparte-composer>
|
|
63
|
+
*/
|
|
64
|
+
export declare class AparteSuggestions extends HTMLElement {
|
|
65
|
+
static get observedAttributes(): string[];
|
|
66
|
+
private _suggestions;
|
|
67
|
+
private _composer;
|
|
68
|
+
private _onSend;
|
|
69
|
+
private _onConfigChange;
|
|
70
|
+
/** The starters. Setting it re-renders; the `suggestions` attribute is the JSON form. */
|
|
71
|
+
get suggestions(): AparteSuggestion[];
|
|
72
|
+
set suggestions(value: AparteSuggestion[]);
|
|
73
|
+
connectedCallback(): void;
|
|
74
|
+
disconnectedCallback(): void;
|
|
75
|
+
attributeChangedCallback(name: string): void;
|
|
76
|
+
private _groupLabel;
|
|
77
|
+
private _parsed;
|
|
78
|
+
/**
|
|
79
|
+
* Parse the `suggestions` attribute once per value. The attribute callback and
|
|
80
|
+
* `connectedCallback` both arrive for a parsed element, in an order the parser
|
|
81
|
+
* decides; without this, an invalid value warned twice.
|
|
82
|
+
*/
|
|
83
|
+
private _readAttribute;
|
|
84
|
+
/**
|
|
85
|
+
* The composer the click goes through, resolved the way the composer's own parts
|
|
86
|
+
* resolve it — by ancestry first. Outside a composer, `target` names the chat and the
|
|
87
|
+
* composer serving it is either inside that chat or points at it; the first composer
|
|
88
|
+
* on the page is the last resort, so the one-chat page needs no attribute at all.
|
|
89
|
+
*/
|
|
90
|
+
private _resolveComposer;
|
|
91
|
+
private _watchComposer;
|
|
92
|
+
private _render;
|
|
93
|
+
private _activate;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=aparte-suggestions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aparte-suggestions.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/aparte-suggestions.ts"],"names":[],"mappings":"AAGA;;;;;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;AASD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;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,OAAO,CAAC,OAAO,CAEb;IAEF,OAAO,CAAC,eAAe,CAGrB;IAEF,yFAAyF;IACzF,IAAI,WAAW,IAAI,gBAAgB,EAAE,CAEpC;IAED,IAAI,WAAW,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAGxC;IAED,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAM5B,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAU5C,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,OAAO,CAAuB;IAEtC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAatB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAexB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,OAAO;IAyBf,OAAO,CAAC,SAAS;CAkBpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/suggestions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -51,9 +51,6 @@ import type { ExportedMessageRepository } from '../../runtime/message-repository
|
|
|
51
51
|
* this mode only. All four wrappers set it.
|
|
52
52
|
* @attr {number} scroll-threshold - How close to the bottom still counts as "at the bottom".
|
|
53
53
|
* @attr {number} max-rendered-bubbles - Caps how many bubbles stay in the DOM; older ones are released.
|
|
54
|
-
* @attr {number} max-messages - DEPRECATED. It used to evict messages from the model; it now
|
|
55
|
-
* only caps rendered bubbles, which is what `max-rendered-bubbles` says. For real history
|
|
56
|
-
* retention configure the conversation manager instead.
|
|
57
54
|
*
|
|
58
55
|
* @fires {CustomEvent<AparteSegmentUpdateEventDetail>} aparte-segment-update - A segment grew or settled during a stream.
|
|
59
56
|
* @fires aparte-reset-done - `clearAll()` finished emptying the transcript. No detail.
|
|
@@ -66,6 +63,8 @@ import type { ExportedMessageRepository } from '../../runtime/message-repository
|
|
|
66
63
|
* which framework-managed mode never builds.
|
|
67
64
|
* @cssprop [--aparte-message-gap=12px] - Gap between consecutive bubbles in the transcript
|
|
68
65
|
* column (both DOM modes). Shared: it is also the avatar-to-content gap inside a bubble.
|
|
66
|
+
* @cssprop [--aparte-scrollbar-thumb=var(--aparte-neutral)] - Colour of the transcript's scrollbar thumb. A host page with a scrollbar of its own sets this and the track so the chat's does not read as a second, foreign scrollbar.
|
|
67
|
+
* @cssprop [--aparte-scrollbar-track=transparent] - Colour of the transcript's scrollbar track.
|
|
69
68
|
* @cssprop [--aparte-scrollbar-width=6px] - Width of the WebKit scrollbar on the scroll
|
|
70
69
|
* surface. Firefox and the standard property use `scrollbar-width: thin` and ignore it.
|
|
71
70
|
* @cssprop [--aparte-scroll-btn-size=36px] - Diameter of the scroll-to-bottom button. A
|
|
@@ -116,6 +115,17 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
116
115
|
private _isAutoScrollEnabled;
|
|
117
116
|
/** The last scroll position we saw, so growth can be told from a gesture. */
|
|
118
117
|
private _lastScrollTop;
|
|
118
|
+
/** The scroll height at the last scroll event: how much it moved since bounds what churn can do. */
|
|
119
|
+
private _lastScrollHeight;
|
|
120
|
+
/** When this component last moved `scrollTop` itself — see `_handleScroll`. "Never" is
|
|
121
|
+
* -Infinity rather than 0: `performance.now()` can be under a second old. */
|
|
122
|
+
private _ownScrollAt;
|
|
123
|
+
/** When the reader last touched the transcript (wheel, touch, pointer, key). */
|
|
124
|
+
private _readerInputAt;
|
|
125
|
+
/** A decrease inside this window after our own scroll, with no gesture, is the browser's. */
|
|
126
|
+
private readonly _ownScrollWindowMs;
|
|
127
|
+
/** The keys that scroll a focused scroll container — the only keydowns that are a gesture. */
|
|
128
|
+
private readonly _scrollKeys;
|
|
119
129
|
private _scrollThreshold;
|
|
120
130
|
/** When true, the next _autoScroll() call uses smooth instead of instant, then resets. */
|
|
121
131
|
private _smoothScrollOnce;
|
|
@@ -126,8 +136,6 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
126
136
|
* snapshot stay intact; only the oldest rendered bubbles are dropped from view.
|
|
127
137
|
*/
|
|
128
138
|
private _maxRenderedBubbles;
|
|
129
|
-
/** One-time guard for the deprecated `maxMessages` warning. */
|
|
130
|
-
private _warnedMaxMessagesDeprecation;
|
|
131
139
|
private _resizeObserver;
|
|
132
140
|
private _mutationObserver;
|
|
133
141
|
private _boundResetHandler;
|
|
@@ -177,6 +185,18 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
177
185
|
private _activeMessageId;
|
|
178
186
|
/** The id of the message currently streaming, if any. */
|
|
179
187
|
private _streamingMessageId;
|
|
188
|
+
/**
|
|
189
|
+
* While a reply streams, the transcript is read-only except for Stop.
|
|
190
|
+
*
|
|
191
|
+
* The streaming message's own footer was already hidden; every OTHER message kept
|
|
192
|
+
* its branch picker and its retry/edit buttons live. Swapping a branch mid-stream
|
|
193
|
+
* re-rendered the active path under the reply being written, and a retry cut that
|
|
194
|
+
* reply off to start another — both seen on the landing page. The state that
|
|
195
|
+
* decides it is the whole transcript's, so it lives on the viewport (`data-busy`)
|
|
196
|
+
* and is pushed to the bubbles it holds; a bubble mounted later, under a
|
|
197
|
+
* framework's DOM, reads the attribute itself when it connects.
|
|
198
|
+
*/
|
|
199
|
+
private _syncBusy;
|
|
180
200
|
/**
|
|
181
201
|
* Add a new segment. Two calling conventions are accepted:
|
|
182
202
|
* - `addSegment(segment)` — AparteClient's 1-arg "operate on the current
|
|
@@ -423,6 +443,15 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
423
443
|
/** Set the spacer — host padding (framework, additive to base padding) or element height (core). */
|
|
424
444
|
private _setSpacerHeight;
|
|
425
445
|
private readonly _onScrollBtnClick;
|
|
446
|
+
/**
|
|
447
|
+
* Only the inputs that can SCROLL count as the reader's hand: a wheel notch, a
|
|
448
|
+
* touch, a navigation key, a press in the scrollbar's gutter. A press on a control
|
|
449
|
+
* inside the transcript — a branch arrow, a copy button — is not a scroll gesture,
|
|
450
|
+
* and counting it disarmed the follow through the swap it triggered (react-webkit,
|
|
451
|
+
* 1 run in 6: the rebuild's height churn moved scrollTop within the second after
|
|
452
|
+
* the click, and the click made that look like the reader's).
|
|
453
|
+
*/
|
|
454
|
+
private readonly _noteReaderInput;
|
|
426
455
|
private readonly _onBranchNavigate;
|
|
427
456
|
private _setupEventListeners;
|
|
428
457
|
private _setupObservers;
|
|
@@ -466,7 +495,7 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
466
495
|
* fold"). Mirroring the flag made the button lie whenever the two diverged —
|
|
467
496
|
* `navigateBranch` deliberately disarms auto-follow, so swapping a branch while
|
|
468
497
|
* already at the bottom of a scrollable transcript left the button offering to
|
|
469
|
-
* scroll nowhere (reported from
|
|
498
|
+
* scroll nowhere (reported from a React consumer). Re-derived on scroll, on the
|
|
470
499
|
* post-mutation frame and after a path swap, so it converges to the truth
|
|
471
500
|
* whatever a framework's render timing does in between.
|
|
472
501
|
*/
|
|
@@ -502,7 +531,6 @@ export declare class AparteChatViewport extends HTMLElement {
|
|
|
502
531
|
* owns the DOM.
|
|
503
532
|
*/
|
|
504
533
|
private _pruneRenderedBubbles;
|
|
505
|
-
private _warnMaxMessagesDeprecated;
|
|
506
534
|
private _cleanup;
|
|
507
535
|
}
|
|
508
536
|
//# sourceMappingURL=aparte-chat-viewport.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO,CAAC,mBAAmB;IAI3B;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;IA0E1B;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IAW7B;;;;;;;;OAQG;IACH,OAAO,CAAC,qBAAqB;IAW7B,OAAO,CAAC,QAAQ;CAgBnB"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* AparteConfig
|
|
3
3
|
*
|
|
4
4
|
* Central configuration class for Aparte. `aparteGlobalConfig` is the page-wide instance.
|
|
5
|
-
* Manages providers for Markdown rendering, Syntax Highlighting
|
|
5
|
+
* Manages providers for Markdown rendering, Syntax Highlighting and Icons.
|
|
6
6
|
*
|
|
7
7
|
* "Invisible but Flexible": Works out-of-the-box with sensible defaults,
|
|
8
8
|
* but allows complete customization via dependency injection.
|
|
@@ -11,7 +11,6 @@ import { AparteIconProvider, AparteIconName } from './icon-provider.js';
|
|
|
11
11
|
import { AparteAvatarProvider } from './avatar-provider.js';
|
|
12
12
|
import { AparteLocale } from './locale.js';
|
|
13
13
|
import { AparteAction, AparteActionZone } from './action-provider.js';
|
|
14
|
-
import { AparteSkeletonProvider, AparteSkeletonType } from './skeleton-provider.js';
|
|
15
14
|
import type { AparteStatusRenderer } from './status-renderer.js';
|
|
16
15
|
import type { AparteErrorRenderer } from './error-renderer.js';
|
|
17
16
|
import type { AparteAttachmentRenderer } from './attachment-renderer.js';
|
|
@@ -109,7 +108,6 @@ export declare class AparteConfig {
|
|
|
109
108
|
private _sanitizer;
|
|
110
109
|
private _systemPromptTemplate?;
|
|
111
110
|
private _systemPromptVarsProvider?;
|
|
112
|
-
private _skeletonProvider?;
|
|
113
111
|
private _statusRenderer?;
|
|
114
112
|
private _errorRenderer?;
|
|
115
113
|
private _attachmentRenderer?;
|
|
@@ -286,11 +284,6 @@ export declare class AparteConfig {
|
|
|
286
284
|
* Returns null if no template is set or the template is empty after trimming.
|
|
287
285
|
*/
|
|
288
286
|
resolveSystemPrompt(): string | null;
|
|
289
|
-
/**
|
|
290
|
-
* Set a custom Skeleton generator for loading states
|
|
291
|
-
* @param provider Object implementing AparteSkeletonProvider interface
|
|
292
|
-
*/
|
|
293
|
-
setSkeletonProvider(provider: AparteSkeletonProvider): void;
|
|
294
287
|
/**
|
|
295
288
|
* Set a custom Icon provider (e.g., Lucide, FontAwesome, Material)
|
|
296
289
|
* @param provider Object implementing AparteIconProvider interface
|
|
@@ -550,11 +543,6 @@ export declare class AparteConfig {
|
|
|
550
543
|
* Supports Promise if provider is async/streaming
|
|
551
544
|
*/
|
|
552
545
|
highlightCode(code: string, lang: string): Promise<string>;
|
|
553
|
-
/**
|
|
554
|
-
* Get HTML for a skeleton loader
|
|
555
|
-
* Fallback: Simple CSS-animated box
|
|
556
|
-
*/
|
|
557
|
-
getSkeleton(type: AparteSkeletonType): string;
|
|
558
546
|
/**
|
|
559
547
|
* Register a tool and its handler together.
|
|
560
548
|
* The handler is called when the AI invokes the tool during streaming.
|
|
@@ -714,14 +702,6 @@ export declare class AparteConfig {
|
|
|
714
702
|
reset(): void;
|
|
715
703
|
private _defaultMarkdownRenderer;
|
|
716
704
|
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
|
-
*/
|
|
724
|
-
private _defaultSkeletonRenderer;
|
|
725
705
|
}
|
|
726
706
|
/**
|
|
727
707
|
* Global configuration singleton for Aparte.
|
|
@@ -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,MA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,CAAC,OAAO,EAAE,yBAAyB,GAAG,IAAI;IAIhE,8EAA8E;IAC9E,sBAAsB,IAAI,yBAAyB,GAAG,SAAS;IAQ/D;;;;;OAKG;IACH,uBAAuB,CAAC,SAAS,EAAE,0BAA0B,GAAG,IAAI,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI;IAYhG;;;;;;;OAOG;IACH,0BAA0B,CAAC,SAAS,EAAE,0BAA0B,GAAG,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;IA+Cb,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,yBAAyB;CAIpC;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"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -7,8 +7,6 @@ export type { AparteSanitizer } from './sanitize.js';
|
|
|
7
7
|
export { defaultSanitizer, isSafeUrl } from './sanitize.js';
|
|
8
8
|
export type { AparteIconProvider, AparteIconName } from './icon-provider.js';
|
|
9
9
|
export { APARTE_DEFAULT_ICON_FALLBACKS } from './icon-provider.js';
|
|
10
|
-
export type { AparteSkeletonType, AparteSkeletonProvider } from './skeleton-provider.js';
|
|
11
|
-
export { APARTE_DEFAULT_SKELETON_FALLBACKS } from './skeleton-provider.js';
|
|
12
10
|
export type { AparteAvatarProvider } from './avatar-provider.js';
|
|
13
11
|
export type { AparteStatusRenderer } from './status-renderer.js';
|
|
14
12
|
export type { AparteErrorRenderer } from './error-renderer.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACnI,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKhI,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpF,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAC/S,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AACnI,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKhI,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACpF,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,YAAY,EAAE,6BAA6B,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,+BAA+B,EAAE,uBAAuB,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAC/S,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/D,YAAY,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACzE,YAAY,EACR,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,GAChC,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,YAAY,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/config/locale.d.ts
CHANGED
|
@@ -120,6 +120,35 @@ export interface AparteLocale {
|
|
|
120
120
|
* changes and "Run" + name + "?" only works in English.
|
|
121
121
|
*/
|
|
122
122
|
approvalAsk?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Accessible name of the viewport's scroll-to-bottom button (default:
|
|
125
|
+
* "Scroll to bottom").
|
|
126
|
+
*
|
|
127
|
+
* It was hardcoded English at both sites that build the button — the one
|
|
128
|
+
* chrome string a screen-reader user in another language always met. Same
|
|
129
|
+
* class of defect as the undeclared-key trio (submitButton, stopButton,
|
|
130
|
+
* actionUpload): the component looked done, the locale looked complete.
|
|
131
|
+
*/
|
|
132
|
+
scrollToBottom?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Accessible name of the `<aparte-suggestions>` group of prompt starters. Optional
|
|
135
|
+
* for the same reason as the keys above: a locale written before the element existed
|
|
136
|
+
* keeps working, and the built-in English fills the gap.
|
|
137
|
+
*/
|
|
138
|
+
suggestionsLabel?: string;
|
|
139
|
+
/** Accessible name of the `<aparte-context>` gauge. Optional, like the keys above. */
|
|
140
|
+
contextLabel?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Title line of the message `compact()` injects in place of the summarised
|
|
143
|
+
* turns (default: "Conversation summary").
|
|
144
|
+
*
|
|
145
|
+
* It was hardcoded — with an emoji — inside the client, so a French chat
|
|
146
|
+
* compacted into an English header. The engine compactor's `summaryLabel`
|
|
147
|
+
* is a separate, per-call knob (the compactor deliberately ships no locale
|
|
148
|
+
* system); this key is the UI-side title and follows the locale like every
|
|
149
|
+
* other string the user reads.
|
|
150
|
+
*/
|
|
151
|
+
compactionSummaryTitle?: string;
|
|
123
152
|
/**
|
|
124
153
|
* What the pill says while the decision is being made elsewhere (default:
|
|
125
154
|
* "waiting for you").
|
|
@@ -183,7 +212,7 @@ export interface AparteLocale {
|
|
|
183
212
|
* A binary artifact being produced, and the same artifact's preview being rebuilt
|
|
184
213
|
* after a reload (defaults: "Generating…" / "Rebuilding preview…").
|
|
185
214
|
*
|
|
186
|
-
* `generating`
|
|
215
|
+
* `generating` was also the `aria-label` of the former `pipeline-waiting` segment, which
|
|
187
216
|
* is the ONLY thing a screen-reader user hears while a turn is in flight. It was
|
|
188
217
|
* hardcoded, so that announcement was English in every locale.
|
|
189
218
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/config/locale.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,YAAY;IAEzB,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,QAAQ,EAAE,MAAM,CAAC;IACjB,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,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yFAAyF;IACzF,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,qFAAqF;IACrF,kBAAkB,EAAE,MAAM,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K,GAAG,KAAK,CAAC;IAE1B,mCAAmC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAmEnC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AparteConversation, AparteConversationMeta, AparteStorageAdapter,
|
|
1
|
+
export type { AparteConversation, AparteConversationMeta, AparteStorageAdapter, AparteAttachmentRow, } from './types.js';
|
|
2
2
|
export { APARTE_CONVERSATION_SCHEMA_VERSION } from './types.js';
|
|
3
3
|
export { AparteConversationManager, applyRetention, type ConversationManagerOptions } from './conversation-manager.js';
|
|
4
4
|
export { AparteConversationController, type AparteChatBinding, type AparteConversationControllerOptions, } from './conversation-controller.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conversations/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,cAAc,EAAE,KAAK,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvH,OAAO,EACH,4BAA4B,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mCAAmC,GAC3C,MAAM,8BAA8B,CAAC"}
|