@aparte/core 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/aparte-client.d.ts +54 -33
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts +6 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/bubble/aparte-chat-bubble.d.ts +25 -4
- package/dist/components/bubble/aparte-chat-bubble.d.ts.map +1 -1
- package/dist/components/chat/aparte-chat.d.ts +8 -4
- package/dist/components/chat/aparte-chat.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-action.d.ts +15 -6
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-add-attachment.d.ts +5 -4
- package/dist/components/composer/aparte-composer-add-attachment.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-attachments.d.ts +5 -3
- package/dist/components/composer/aparte-composer-attachments.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-cancel.d.ts +2 -2
- package/dist/components/composer/aparte-composer-input.d.ts +8 -5
- package/dist/components/composer/aparte-composer-input.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer-send.d.ts +2 -2
- package/dist/components/composer/aparte-composer-toolbar.d.ts +3 -3
- package/dist/components/composer/aparte-composer.d.ts +81 -10
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/conversation-list/aparte-conversation-list.d.ts +19 -12
- package/dist/components/conversation-list/aparte-conversation-list.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +14 -2
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/status/aparte-chat-status.d.ts +9 -0
- package/dist/components/status/aparte-chat-status.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +15 -4
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +72 -15
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/config/locale.d.ts +43 -0
- package/dist/config/locale.d.ts.map +1 -1
- package/dist/custom-elements.json +2824 -1801
- package/dist/elicitation/approval-panel.d.ts +42 -0
- package/dist/elicitation/approval-panel.d.ts.map +1 -0
- package/dist/elicitation/index.d.ts +4 -1
- package/dist/elicitation/index.d.ts.map +1 -1
- package/dist/elicitation/panel.d.ts +1 -1
- package/dist/elicitation/panel.d.ts.map +1 -1
- package/dist/elicitation/types.d.ts +116 -9
- package/dist/elicitation/types.d.ts.map +1 -1
- package/dist/generated/element-attributes.d.ts +177 -0
- package/dist/generated/element-attributes.d.ts.map +1 -0
- package/dist/index.css +621 -92
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +368 -255
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +4 -3
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +46 -44
- package/dist/index.node.js.map +1 -1
- package/dist/interop/element-props.d.ts +40 -2
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/{index-BnKBciDG.js → is-awaiting-reply-CxWRISBC.js} +949 -957
- package/dist/is-awaiting-reply-CxWRISBC.js.map +1 -0
- package/dist/primitives/select/aparte-optgroup.d.ts +3 -0
- package/dist/primitives/select/aparte-optgroup.d.ts.map +1 -1
- package/dist/primitives/select/aparte-option.d.ts +1 -0
- package/dist/primitives/select/aparte-option.d.ts.map +1 -1
- package/dist/primitives/select/aparte-select.d.ts +22 -18
- package/dist/primitives/select/aparte-select.d.ts.map +1 -1
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/artifact/card.d.ts.map +1 -1
- package/dist/renderers/segments/pipeline-waiting.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/types/element-attributes.d.ts +42 -0
- package/dist/types/element-attributes.d.ts.map +1 -0
- package/dist/types/event-map.d.ts +1 -2
- package/dist/types/event-map.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/segments.d.ts +1 -8
- package/dist/types/segments.d.ts.map +1 -1
- package/dist/types/tools.d.ts +26 -23
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/chat-boundary.d.ts +22 -0
- package/dist/utils/chat-boundary.d.ts.map +1 -0
- package/dist/utils/segments.d.ts +8 -0
- package/dist/utils/segments.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/index-BnKBciDG.js.map +0 -1
- package/dist/renderers/segments/progress.d.ts +0 -3
- package/dist/renderers/segments/progress.d.ts.map +0 -1
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* @attr {string} label - Group label
|
|
8
8
|
* @attr {boolean} collapsible - Allow collapse/expand
|
|
9
9
|
* @attr {boolean} collapsed - Collapsed state
|
|
10
|
+
* @attr {boolean} loading - Shows a spinner in place of the group's options.
|
|
11
|
+
*
|
|
12
|
+
* @fires {CustomEvent<AparteOptgroupToggleEventDetail>} aparte-optgroup-toggle - The group was collapsed or expanded.
|
|
10
13
|
*
|
|
11
14
|
* @example
|
|
12
15
|
* <!-- Collapsed groups keep a long list readable; the label is the group's header. -->
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-optgroup.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-optgroup.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aparte-optgroup.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-optgroup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,qBAAa,cAAe,SAAQ,WAAW;IAC3C,oEAAoE;IACpE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAK;IAE/B,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,iBAAiB,IAAI,IAAI;IAKzB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAY9F,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,GAAG,EAAE,OAAO,EAMzB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,OAAO,CAAC,GAAG,EAAE,OAAO,EAGvB;IAED,OAAO,CAAC,OAAO;IA4Cf,OAAO,CAAC,mBAAmB;IAc3B,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,qBAAqB;CAMhC;AAOD;;;;;;;;;GASG;AACH,MAAM,WAAW,+BAA+B;IAC5C,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,SAAS,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @attr {string} value - Option value
|
|
8
8
|
* @attr {boolean} disabled - Disabled state
|
|
9
9
|
* @attr {boolean} selected - Selected state
|
|
10
|
+
* @attr {string} data-status - Free-form status the host sets; styled, never read by core.
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* <aparte-select placeholder="Pick a model">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-option.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-option.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aparte-option.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-option.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,qBAAa,YAAa,SAAQ,WAAW;IACzC,MAAM,KAAK,kBAAkB,IAAI,MAAM,EAAE,CAExC;IAED,iBAAiB,IAAI,IAAI;IAMzB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAY5C,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,IAAI,KAAK,IAAI,MAAM,CAIlB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAMxB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,QAAQ,CAAC,GAAG,EAAE,OAAO,EAMxB;IAED,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,gBAAgB;CAkB3B"}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AparteSelect
|
|
3
|
-
*
|
|
4
|
-
* Dropdown select component for AparteCore.
|
|
5
|
-
* Vanilla Web Component with configurable features.
|
|
6
|
-
*
|
|
7
|
-
* @element aparte-select
|
|
8
|
-
* @attr {string} value - Selected value
|
|
9
|
-
* @attr {string} placeholder - Placeholder text
|
|
10
|
-
* @attr {boolean} disabled - Disabled state
|
|
11
|
-
* @attr {boolean} grouped - Enable optgroup mode
|
|
12
|
-
* @attr {boolean} searchable - Enable search filter
|
|
13
|
-
* @attr {boolean} open - Dropdown open state
|
|
14
|
-
*
|
|
15
|
-
* @fires aparte-select-change - Fired when selection changes
|
|
16
|
-
* @fires aparte-select-open - Fired when dropdown opens
|
|
17
|
-
* @fires aparte-select-close - Fired when dropdown closes
|
|
18
|
-
*/
|
|
19
1
|
import './aparte-option.js';
|
|
20
2
|
import './aparte-optgroup.js';
|
|
21
3
|
export interface AparteSelectChangeDetail {
|
|
@@ -24,6 +6,28 @@ export interface AparteSelectChangeDetail {
|
|
|
24
6
|
previousValue: string;
|
|
25
7
|
}
|
|
26
8
|
/**
|
|
9
|
+
* Dropdown select for aparté — a vanilla web component with optional grouping, a
|
|
10
|
+
* search filter and a keyboard-driven listbox.
|
|
11
|
+
*
|
|
12
|
+
* The tags above used to live in a docblock at the top of this file, separated from
|
|
13
|
+
* the class by these imports and the interface. TypeScript associates only the
|
|
14
|
+
* comment PHYSICALLY ADJACENT to a declaration, so the analyser never saw them: the
|
|
15
|
+
* manifest still listed six attributes and three events (it reads
|
|
16
|
+
* `observedAttributes` and `this.dispatchEvent` structurally) but with every
|
|
17
|
+
* description dropped, and the generated CSS-of-record for this element read blank.
|
|
18
|
+
*
|
|
19
|
+
* @element aparte-select
|
|
20
|
+
* @attr {string} value - The selected option's value.
|
|
21
|
+
* @attr {string} placeholder - Shown while nothing is selected.
|
|
22
|
+
* @attr {boolean} disabled - Blocks opening and selection.
|
|
23
|
+
* @attr {boolean} grouped - Renders `<aparte-optgroup>` children as collapsible groups.
|
|
24
|
+
* @attr {boolean} searchable - Adds a filter field above the options.
|
|
25
|
+
* @attr {boolean} open - Reflects (and controls) whether the dropdown is open.
|
|
26
|
+
*
|
|
27
|
+
* @fires {CustomEvent<AparteSelectChangeDetail>} aparte-select-change - The selection changed; carries the new value, its label and the previous value.
|
|
28
|
+
* @fires aparte-select-open - The dropdown opened. No detail.
|
|
29
|
+
* @fires aparte-select-close - The dropdown closed. No detail.
|
|
30
|
+
*
|
|
27
31
|
* @example
|
|
28
32
|
* <aparte-select placeholder="Pick a model" searchable value="gpt-4o-mini">
|
|
29
33
|
* <aparte-option value="gpt-4o-mini">GPT-4o mini</aparte-option>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aparte-select.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-select.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aparte-select.d.ts","sourceRoot":"","sources":["../../../src/primitives/select/aparte-select.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;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ACvF,OAAO,CAAC,UAAU;IAoBlB,+CAA+C;IAC/C,OAAO,CAAC,YAAY;IAUpB,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,mBAAmB;IAmB3B,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,WAAW;CAatB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-renderers.d.ts","sourceRoot":"","sources":["../../src/renderers/segment-renderers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"segment-renderers.d.ts","sourceRoot":"","sources":["../../src/renderers/segment-renderers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AA+FvD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,EAC/D,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAClC,MAAM,GAAE,YAA8B,GACvC,IAAI,CAGN;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CAEpF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CASxF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,YAA8B,GAAG,IAAI,CAEpG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,YAA8B,GACvC,qBAAqB,GAAG,SAAS,CAEnC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,YAA8B,GAAG,SAAS,qBAAqB,EAAE,CAExG;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,YAA8B,GAAG,MAAM,CAKpF;AAoBD,wBAAgB,oBAAoB,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CAwBjF;AAqDD,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CAkBrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/renderers/segments/artifact/card.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/renderers/segments/artifact/card.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAkB5F,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,CAwQzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-waiting.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/pipeline-waiting.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"pipeline-waiting.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/pipeline-waiting.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AAK9B,eAAO,MAAM,uBAAuB,EAAE,qBAqCrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AA8H9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,CA8LzE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The template spelling of an attribute, and the re-export of the generated surface.
|
|
3
|
+
*
|
|
4
|
+
* The interfaces and the registry are NOT here any more: they are generated from
|
|
5
|
+
* `dist/custom-elements.json` into `src/generated/`, which is gitignored and rewritten
|
|
6
|
+
* on every build. They were written by hand for about a day, and the generator
|
|
7
|
+
* reproduced all 15 interfaces and all 48 properties exactly — plus one attribute I had
|
|
8
|
+
* missed. Copying a machine-readable source by hand buys nothing and drifts.
|
|
9
|
+
*
|
|
10
|
+
* What stays here is the part no manifest can carry: how a TEMPLATE must spell an
|
|
11
|
+
* attribute, which is a fact about React, Vue and Svelte rather than about the element.
|
|
12
|
+
*/
|
|
13
|
+
export type * from '../generated/element-attributes.js';
|
|
14
|
+
/**
|
|
15
|
+
* One attribute as a TEMPLATE must write it.
|
|
16
|
+
*
|
|
17
|
+
* A presence attribute becomes `'' | undefined`, never `boolean`, and that is not
|
|
18
|
+
* pedantry — it is the same trap in all three template languages. React, Vue and Svelte
|
|
19
|
+
* all stringify what they set on a custom element, so `disabled={false}` renders
|
|
20
|
+
* `disabled="false"`, and an element that tests `hasAttribute` reads that as ON. The
|
|
21
|
+
* wrapper's own bubble rendering already used the right spelling
|
|
22
|
+
* (`streaming={… ? '' : undefined}`); this makes it the only one that type-checks.
|
|
23
|
+
*
|
|
24
|
+
* `null` is in the union alongside `undefined` because all three treat it as REMOVE,
|
|
25
|
+
* and Vue's own wrapper template writes exactly that (`:streaming="… ? '' : null"`).
|
|
26
|
+
* Leaving it out made the wrapper's own code fail to type-check — the second time the
|
|
27
|
+
* existing wrappers corrected a declaration here, after `timestamp`, which the React
|
|
28
|
+
* bubble rendering proved accepts a number.
|
|
29
|
+
*
|
|
30
|
+
* A numeric attribute takes a number or the string it becomes, because both read
|
|
31
|
+
* naturally in a template.
|
|
32
|
+
*
|
|
33
|
+
* Angular does NOT use this: its directives take `boolean` through `booleanAttribute`
|
|
34
|
+
* and write the attribute themselves, so a consumer there writes `[disabled]="busy"`.
|
|
35
|
+
* That difference is the whole reason this is a mapping and not the declared type.
|
|
36
|
+
*/
|
|
37
|
+
export type AparteAttrValue<T> = T extends boolean ? '' | null | undefined : T extends number ? number | string : T;
|
|
38
|
+
/** An element's attribute surface, in template spelling. Used by three of four wrappers. */
|
|
39
|
+
export type AparteTemplateAttrs<T> = {
|
|
40
|
+
[K in keyof T]?: AparteAttrValue<NonNullable<T[K]>>;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=element-attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"element-attributes.d.ts","sourceRoot":"","sources":["../../src/types/element-attributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,mBAAmB,oCAAoC,CAAC;AAExD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,GACpE,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAClC,CAAC,CAAC;AAER,4FAA4F;AAC5F,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -33,7 +33,7 @@ import type { AparteSendEventDetail, AparteRetryEventDetail, AparteEditEventDeta
|
|
|
33
33
|
import type { AparteActionClickEventDetail } from '../components/composer/aparte-composer-action.js';
|
|
34
34
|
import type { AparteOptgroupToggleEventDetail } from '../primitives/select/aparte-optgroup.js';
|
|
35
35
|
import type { AparteConfigChangeEventDetail } from '../config/aparte-config.js';
|
|
36
|
-
import type {
|
|
36
|
+
import type { AparteToolApprovalRequestDetail } from './tools.js';
|
|
37
37
|
import type { AparteSegmentUpdateEventDetail } from './segments.js';
|
|
38
38
|
import type { AparteSelectChangeDetail } from '../primitives/select/aparte-select.js';
|
|
39
39
|
import type { AparteConversationSelectDetail, AparteConversationDeleteDetail, AparteConversationArchiveDetail } from '../components/conversation-list/aparte-conversation-list.js';
|
|
@@ -66,7 +66,6 @@ interface AparteEventMap {
|
|
|
66
66
|
'aparte-artifact-delta': CustomEvent<AparteArtifactDeltaEventDetail>;
|
|
67
67
|
'aparte-artifact-ready': CustomEvent<AparteArtifactReadyEventDetail>;
|
|
68
68
|
'aparte-artifact-redownload': CustomEvent<AparteArtifactRedownloadEventDetail>;
|
|
69
|
-
'aparte-tool-decision': CustomEvent<AparteToolDecisionDetail>;
|
|
70
69
|
'aparte-tool-approval-request': CustomEvent<AparteToolApprovalRequestDetail>;
|
|
71
70
|
'aparte-composer-change': CustomEvent<AparteComposerChangeEventDetail>;
|
|
72
71
|
'aparte-select-change': CustomEvent<AparteSelectChangeDetail>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-map.d.ts","sourceRoot":"","sources":["../../src/types/event-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EACR,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,yB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teAttachment, AparteMessage, AparteMessageBranch, AparteBubbleActionsConfig, AparteBubbleActionName, AparteViewportConfig, AparteInputConfig } from './models.js';
|
|
10
10
|
export type { AparteSendEventDetail, AparteSiblingInfo, AparteBranchNavigateEventDetail, ApartePathChangedEventDetail, AparteRetryEventDetail, AparteEditEventDetail, AparteFeedbackEventDetail, AparteActionEventDetail } from './events.js';
|
|
11
11
|
export type { AparteContentParser, AparteParserRegistry } from './parsers.js';
|
|
12
|
-
export type { AparteSegmentBase, AparteSegmentDefaults, AparteSegmentTiming, AparteTextSegment, AparteThinkingSegment, AparteCodeSegment, AparteErrorSegment,
|
|
12
|
+
export type { AparteSegmentBase, AparteSegmentDefaults, AparteSegmentTiming, AparteTextSegment, AparteThinkingSegment, AparteCodeSegment, AparteErrorSegment, AparteSegment, AparteCustomSegment, AparteToolCallSegment, AparteArtifactSegment, AparteSegmentType, AparteSegmentRenderer, AparteSegmentUpdateEventDetail } from './segments.js';
|
|
13
13
|
export type { AparteThemeVariables } from './theming.js';
|
|
14
14
|
export type { AparteAIModel, AparteAIProvider, AparteAIProviderConfigField, AparteAIProviderConfigSchema, AparteModelConfig, ModelStatus, ModelLoadProgress } from './model-provider.js';
|
|
15
15
|
export type { AparteChatRequest, AparteChatResponse, AparteChatMessage, AparteContentPart, AparteTextPart, AparteImagePart, AparteFilePart, AparteStreamEvent, AparteStreamEventMap, AparteUsage } from './chat.js';
|
|
16
16
|
export { contentToText } from './chat.js';
|
|
17
|
-
export type { AparteTool, AparteToolCall, AparteToolResult, AparteToolHandler, AparteToolContext, AparteToolRenderer,
|
|
17
|
+
export type { AparteTool, AparteToolCall, AparteToolResult, AparteToolHandler, AparteToolContext, AparteToolRenderer, AparteToolApprovalRequestDetail, } from './tools.js';
|
|
18
18
|
export { AparteErrorCode, AparteError } from './errors.js';
|
|
19
19
|
export type { AparteModelChangeEventDetail, AparteMessageDoneEventDetail, AparteMessageStartEventDetail, AparteMessageErrorEventDetail, AparteMessageAbortedEventDetail, AparteAbortEventDetail, AparteCompactEventDetail, AparteCompactDoneEventDetail, AparteCompactErrorEventDetail, AparteAttachmentPreviewEventDetail, AparteFileGenReadyEventDetail, AparteFileGenErrorEventDetail, AparteMessageInfoEventDetail, AparteArtifactStartEventDetail, AparteArtifactDeltaEventDetail, AparteArtifactReadyEventDetail, AparteArtifactRedownloadEventDetail } from './events.js';
|
|
20
|
+
export type { AparteElementAttributes, AparteElementTagName, AparteAttrValue, AparteTemplateAttrs, AparteNoAttributes, AparteChatAttributes, AparteChatViewportAttributes, AparteChatBubbleAttributes, AparteChatStatusAttributes, AparteComposerAttributes, AparteComposerInputAttributes, AparteComposerActionAttributes, AparteComposerAddAttachmentAttributes, AparteComposerToolbarAttributes, AparteConversationListAttributes, AparteSelectAttributes, AparteOptionAttributes, AparteOptgroupAttributes, AparteProgressSpinnerAttributes } from './element-attributes.js';
|
|
20
21
|
export type { AparteChatImperativeApi } from './imperative-api.js';
|
|
21
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,YAAY,EACR,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACpB,MAAM,aAAa,CAAC;AAMrB,YAAY,EACR,qBAAqB,EACrB,iBAAiB,EACjB,+BAA+B,EAC/B,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EAC1B,MAAM,aAAa,CAAC;AAMrB,YAAY,EACR,mBAAmB,EACnB,oBAAoB,EACvB,MAAM,cAAc,CAAC;AAMtB,YAAY,EACR,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,YAAY,EACR,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACpB,MAAM,aAAa,CAAC;AAMrB,YAAY,EACR,qBAAqB,EACrB,iBAAiB,EACjB,+BAA+B,EAC/B,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EAC1B,MAAM,aAAa,CAAC;AAMrB,YAAY,EACR,mBAAmB,EACnB,oBAAoB,EACvB,MAAM,cAAc,CAAC;AAMtB,YAAY,EACR,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,8BAA8B,EACjC,MAAM,eAAe,CAAC;AAgBvB,YAAY,EACR,oBAAoB,EACvB,MAAM,cAAc,CAAC;AAMtB,YAAY,EACR,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,4BAA4B,EAC5B,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACR,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,WAAW,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,YAAY,EACR,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,+BAA+B,GAClC,MAAM,YAAY,CAAC;AAMpB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE3D,YAAY,EACR,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,EAC/B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,kCAAkC,EAClC,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,mCAAmC,EACtC,MAAM,aAAa,CAAC;AAKrB,YAAY,EACR,uBAAuB,EACvB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC7B,8BAA8B,EAC9B,qCAAqC,EACrC,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,+BAA+B,EAClC,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/types/segments.d.ts
CHANGED
|
@@ -117,13 +117,6 @@ export interface AparteErrorSegment extends AparteSegmentBase {
|
|
|
117
117
|
details?: string;
|
|
118
118
|
stack?: string;
|
|
119
119
|
}
|
|
120
|
-
/** Progress segment - for long operations */
|
|
121
|
-
export interface AparteProgressSegment extends AparteSegmentBase {
|
|
122
|
-
type: 'progress';
|
|
123
|
-
label: string;
|
|
124
|
-
percent?: number;
|
|
125
|
-
status?: 'pending' | 'running' | 'complete' | 'error';
|
|
126
|
-
}
|
|
127
120
|
/** Tool call segment - rendered while waiting for a tool handler to resolve */
|
|
128
121
|
export interface AparteToolCallSegment extends AparteSegmentBase {
|
|
129
122
|
type: 'tool_call';
|
|
@@ -184,7 +177,7 @@ export interface ApartePipelineWaitingSegment extends AparteSegmentBase {
|
|
|
184
177
|
type: 'pipeline-waiting';
|
|
185
178
|
}
|
|
186
179
|
/** All built-in segment types */
|
|
187
|
-
export type AparteSegment = AparteTextSegment | AparteThinkingSegment | AparteCodeSegment | AparteErrorSegment |
|
|
180
|
+
export type AparteSegment = AparteTextSegment | AparteThinkingSegment | AparteCodeSegment | AparteErrorSegment | AparteCustomSegment | AparteToolCallSegment | AparteArtifactSegment | ApartePipelineWaitingSegment;
|
|
188
181
|
/** Segment type discriminator values */
|
|
189
182
|
export type AparteSegmentType = AparteSegment['type'];
|
|
190
183
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../src/types/segments.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,wDAAwD;AACxD,MAAM,WAAW,iBAAiB;IAC9B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IAEX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IAkBtB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,MAAM,CAAC,EAAE,mBAAmB,CAAA;KAAE,CAAC;CACrE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,mBAAmB;IAChC,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,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WAAW,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,IAAI,MAAM,CAAC;IAErB;;;;OAIG;IACH,KAAK,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAE/C;;;;;OAKG;IACH,MAAM,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC;IAEjD;;;OAGG;IACH,OAAO,CAAC,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;CACxC;AAMD,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
package/dist/types/tools.d.ts
CHANGED
|
@@ -18,34 +18,37 @@ export interface AparteTool {
|
|
|
18
18
|
maxTurns?: number;
|
|
19
19
|
/**
|
|
20
20
|
* When true, the agent loop pauses before running this tool's handler and
|
|
21
|
-
* waits for a human decision
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* a
|
|
21
|
+
* waits for a human decision — "human in the loop".
|
|
22
|
+
*
|
|
23
|
+
* The decision is asked AT THE COMPOSER, through the same `requestUserInput`
|
|
24
|
+
* a tool handler calls: every request for the user is answered in one place.
|
|
25
|
+
* The row in the transcript is the anchor, naming which tool is waiting, and
|
|
26
|
+
* holds nothing clickable. An `approvalResolver` on `AparteClientOptions`
|
|
27
|
+
* answers it programmatically instead.
|
|
28
|
+
*
|
|
29
|
+
* On a refusal the rest of the turn is skipped — no later tool call of the
|
|
30
|
+
* same turn runs — and then the model gets a turn to answer it, so it can
|
|
31
|
+
* say what it will do instead. The refusal may carry the user's own words.
|
|
32
|
+
*
|
|
33
|
+
* All three clauses of this comment used to say something else: the default
|
|
34
|
+
* renderer surfaced the buttons, an `aparte-tool-decision` event resolved
|
|
35
|
+
* them, and a refusal ended the turn. None of that is true any more.
|
|
25
36
|
*/
|
|
26
37
|
needsApproval?: boolean;
|
|
27
38
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Detail for `aparte-tool-decision` — the human's verdict on a tool awaiting
|
|
30
|
-
* approval. Dispatched by the approval UI (built-in or app-provided) and
|
|
31
|
-
* consumed by the agent loop to resume or reject.
|
|
32
|
-
*/
|
|
33
|
-
export interface AparteToolDecisionDetail {
|
|
34
|
-
toolCallId: string;
|
|
35
|
-
approved: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Optional payload from a custom approval surface. When it is a plain object
|
|
38
|
-
* and the decision is `approved`, the agent loop merges it onto the tool's
|
|
39
|
-
* input before invoking the handler — so a human can edit the arguments
|
|
40
|
-
* before the tool runs (correct a path, tighten a query, …). The built-in
|
|
41
|
-
* Approve/Reject gate sends no payload, so existing flows are unchanged.
|
|
42
|
-
*/
|
|
43
|
-
payload?: unknown;
|
|
44
|
-
}
|
|
45
39
|
/**
|
|
46
40
|
* Detail for `aparte-tool-approval-request` — emitted by the loop when a tool
|
|
47
|
-
* marked `needsApproval` is about to run.
|
|
48
|
-
*
|
|
41
|
+
* marked `needsApproval` is about to run.
|
|
42
|
+
*
|
|
43
|
+
* Listen for it to present the decision yourself. Core's own gate asks at the COMPOSER
|
|
44
|
+
* (`<aparte-elicitation>` renders the panel there), and the transcript row shows only a
|
|
45
|
+
* state — there is no Approve/Reject control in a bubble.
|
|
46
|
+
*
|
|
47
|
+
* This block used to say "the built-in renderer already shows Approve/Reject inline",
|
|
48
|
+
* which stopped being true when the decision moved to the composer. A consumer trusting
|
|
49
|
+
* it shipped with no presenter and no `approvalResolver`, and every `needsApproval` call
|
|
50
|
+
* aborted with nothing clickable on screen. The sibling docblock on `needsApproval`
|
|
51
|
+
* records the same correction; this one was missed in the same file.
|
|
49
52
|
*/
|
|
50
53
|
export interface AparteToolApprovalRequestDetail {
|
|
51
54
|
toolCallId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/types/tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,8GAA8G;IAC9G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/types/tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,8GAA8G;IAC9G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,+BAA+B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,qDAAqD;AACrD,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,oDAAoD;AACpD,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC5B,IAAI,EAAE,cAAc,EACpB,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,iBAAiB,KAC1B,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,MAAM,GAAG,WAAW,CAAC;IACjE,8EAA8E;IAC9E,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvE,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which chat an element belongs to.
|
|
3
|
+
*
|
|
4
|
+
* The predicate is three-legged and every leg is load-bearing: `<aparte-chat>` is the
|
|
5
|
+
* vanilla shell, `<aparte-chat-component>` is Angular's, and the other three wrappers
|
|
6
|
+
* render a plain `<div data-aparte-chat id="…">` — so matching only the tag finds the
|
|
7
|
+
* boundary in one framework out of four.
|
|
8
|
+
*
|
|
9
|
+
* Extracted because it was written out four times (the bubble's target-id walk, the
|
|
10
|
+
* composer's, the elicitation presenter's composer walk, and the presenter routing in
|
|
11
|
+
* `AparteConfig`), which is the duplication threshold CLAUDE.md sets for a new layer.
|
|
12
|
+
* A fifth copy is how the three-legged predicate loses a leg.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* The nearest chat host at or above `el`, or `null`.
|
|
16
|
+
*
|
|
17
|
+
* Identity is the point: two elements are in the same chat when this returns the same
|
|
18
|
+
* node for both. That is what makes it usable for routing a request to the presenter
|
|
19
|
+
* that lives beside the transcript rather than above it, where `contains` would fail.
|
|
20
|
+
*/
|
|
21
|
+
export declare function chatBoundaryOf(el: Element | null | undefined): HTMLElement | null;
|
|
22
|
+
//# sourceMappingURL=chat-boundary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-boundary.d.ts","sourceRoot":"","sources":["../../src/utils/chat-boundary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAgBH;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,GAAG,IAAI,CAOjF"}
|
package/dist/utils/segments.d.ts
CHANGED
|
@@ -63,6 +63,14 @@ export declare function stampSegmentOnInsert(segments: readonly AparteSegment[],
|
|
|
63
63
|
* with `isStreaming: true` would render a caret forever, and — through
|
|
64
64
|
* `openSegmentIds`, which reads exactly this flag — would have the next turn-close
|
|
65
65
|
* stamp it a brand-new `endedAt`.
|
|
66
|
+
* - a `tool_call` persisted as `awaiting-approval` becomes `'aborted'`, for the same
|
|
67
|
+
* reason and through a hole the line above cannot reach: `isSegmentSettled` reads
|
|
68
|
+
* STATUS for a tool call, not `isStreaming`, so a restored gate stayed OPEN. The loop
|
|
69
|
+
* that awaited the decision is gone and the promise it would have settled went with
|
|
70
|
+
* the page, so the request is unanswerable — and `'aborted'` rather than `'rejected'`
|
|
71
|
+
* because nobody refused anything. Documented as a consumer's problem in the
|
|
72
|
+
* persistence guide until now ("normalise those statuses on save"), which is a
|
|
73
|
+
* normalisation this function was already the single funnel for.
|
|
66
74
|
*/
|
|
67
75
|
export declare function adoptSegment(segments: readonly AparteSegment[], segment: AparteSegment, messageId: string): AparteSegment;
|
|
68
76
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../src/utils/segments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA6BnG;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,qBAAqB,GACjC,aAAa,CAWf;AAED
|
|
1
|
+
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../src/utils/segments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AA6BnG;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,qBAAqB,GACjC,aAAa,CAWf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,YAAY,CACxB,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,GAClB,aAAa,CAUf;AASD;;;;;;GAMG;AACH,wBAAgB,aAAa,CACzB,OAAO,EA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B,gBAAgB,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,IAAI,CAMhE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparte/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "High-performance AI conversation engine - Zero-dependency Web Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"//sideEffects": "The BROWSER entry defines the custom elements and imports CSS at module scope, so it must never be tree-shaken; the Node entry (`index.node`) and every other module are pure. Listing them explicitly is what lets a bundler drop the rest — the whole package was implicitly side-effectful before, the only one of the 14 without this field.",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"preview": "vite preview",
|
|
69
69
|
"test": "vitest",
|
|
70
70
|
"test:run": "vitest run",
|
|
71
|
-
"test:coverage": "vitest run --coverage"
|
|
71
|
+
"test:coverage": "vitest run --coverage",
|
|
72
|
+
"gen": "pnpm run analyze && node ../../scripts/gen-element-bindings.mjs packages/core --registry packages/core/src/generated"
|
|
72
73
|
}
|
|
73
74
|
}
|