@aparte/core 0.11.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/components/composer/aparte-composer-action.d.ts +10 -1
- package/dist/components/composer/aparte-composer-action.d.ts.map +1 -1
- package/dist/components/composer/aparte-composer.d.ts +29 -2
- package/dist/components/composer/aparte-composer.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts +2 -2
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/config/aparte-config.d.ts +52 -14
- package/dist/config/aparte-config.d.ts.map +1 -1
- package/dist/custom-elements.json +6914 -6807
- package/dist/generated/element-attributes.d.ts +5 -1
- package/dist/generated/element-attributes.d.ts.map +1 -1
- package/dist/index.css +9 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -17
- package/dist/index.js.map +1 -1
- package/dist/index.node.d.ts +1 -0
- package/dist/index.node.d.ts.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/index.node.js.map +1 -1
- package/dist/interop/element-props.d.ts +14 -1
- package/dist/interop/element-props.d.ts.map +1 -1
- package/dist/{is-awaiting-reply-Cb7H3YfN.js → is-awaiting-reply-CxWRISBC.js} +118 -30
- package/dist/is-awaiting-reply-CxWRISBC.js.map +1 -0
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/dist/types/tools.d.ts +11 -2
- 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/package.json +1 -1
- package/dist/is-awaiting-reply-Cb7H3YfN.js.map +0 -1
|
@@ -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;AA8H9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,
|
|
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"}
|
package/dist/types/tools.d.ts
CHANGED
|
@@ -38,8 +38,17 @@ export interface AparteTool {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Detail for `aparte-tool-approval-request` — emitted by the loop when a tool
|
|
41
|
-
* marked `needsApproval` is about to run.
|
|
42
|
-
*
|
|
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.
|
|
43
52
|
*/
|
|
44
53
|
export interface AparteToolApprovalRequestDetail {
|
|
45
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,E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AIG;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/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.",
|