@aparte/core 0.19.0 → 0.19.1
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 +3 -0
- package/dist/client/agent-runner.d.ts.map +1 -1
- package/dist/client/aparte-client.d.ts +11 -0
- package/dist/client/aparte-client.d.ts.map +1 -1
- package/dist/custom-elements.json +9667 -9639
- package/dist/{dialog-triggers-xA3T--rt.js → dialog-triggers-CEazY76J.js} +57 -22
- package/dist/dialog-triggers-CEazY76J.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.node.js +1 -1
- package/dist/transport/agent-handler.d.ts +12 -2
- package/dist/transport/agent-handler.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/dialog-triggers-xA3T--rt.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a1 as resolveConfig, a9 as eventOrigin, aa as activeElementIn, a6 as subscribeConfigChange, a3 as runWithConfig, o as AparteElicitationAbortError, w as buildApprovalPanel, x as buildElicitationPanel, L as escapeAttr, H as cssEscape, ab as mergeSegmentUpdate, M as escapeHtml, ac as writeStreamedMarkdown, U as isSafeUrl, C as copyText, P as getSegmentRenderer, Q as installDefaultRenderersOnce, r as AparteMessageRepository, ad as stampSegmentActivity, ae as stampSegmentOnInsert, af as stampSegmentOnUpdate, ag as renumberSegments, ah as openSegmentIds, ai as isTerminalStatus, aj as adoptMessageSegments, S as isAwaitingReply, Y as populateBubbleFromMessage, a8 as uuid, a2 as revokeAttachmentUrls, X as parseMarkdownToSegments, ak as APARTE_DERIVED_SEGMENTS, e as APARTE_DEFAULT_LOCALE, al as chatBoundaryOf, am as rootOf, R as installDialogTriggersOnce } from "./dialog-triggers-
|
|
2
|
-
import { A, a, b, c, d, f, g, h, i, j, k, l, m, n, p, q, s, t, u, v, y, z, B, D, E, F, G, I, J, K, N, O, T, V, W, Z, _, $, a0, a4, a5, a7 } from "./dialog-triggers-
|
|
1
|
+
import { a1 as resolveConfig, a9 as eventOrigin, aa as activeElementIn, a6 as subscribeConfigChange, a3 as runWithConfig, o as AparteElicitationAbortError, w as buildApprovalPanel, x as buildElicitationPanel, L as escapeAttr, H as cssEscape, ab as mergeSegmentUpdate, M as escapeHtml, ac as writeStreamedMarkdown, U as isSafeUrl, C as copyText, P as getSegmentRenderer, Q as installDefaultRenderersOnce, r as AparteMessageRepository, ad as stampSegmentActivity, ae as stampSegmentOnInsert, af as stampSegmentOnUpdate, ag as renumberSegments, ah as openSegmentIds, ai as isTerminalStatus, aj as adoptMessageSegments, S as isAwaitingReply, Y as populateBubbleFromMessage, a8 as uuid, a2 as revokeAttachmentUrls, X as parseMarkdownToSegments, ak as APARTE_DERIVED_SEGMENTS, e as APARTE_DEFAULT_LOCALE, al as chatBoundaryOf, am as rootOf, R as installDialogTriggersOnce } from "./dialog-triggers-CEazY76J.js";
|
|
2
|
+
import { A, a, b, c, d, f, g, h, i, j, k, l, m, n, p, q, s, t, u, v, y, z, B, D, E, F, G, I, J, K, N, O, T, V, W, Z, _, $, a0, a4, a5, a7 } from "./dialog-triggers-CEazY76J.js";
|
|
3
3
|
function presenceOn(value) {
|
|
4
4
|
return value === "" ? true : Boolean(value);
|
|
5
5
|
}
|
package/dist/index.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8 } from "./dialog-triggers-
|
|
1
|
+
import { A, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8 } from "./dialog-triggers-CEazY76J.js";
|
|
2
2
|
function registerAllComponents() {
|
|
3
3
|
if (typeof customElements !== "undefined") {
|
|
4
4
|
console.warn(
|
|
@@ -15,8 +15,17 @@ export interface AparteAgentTool {
|
|
|
15
15
|
acceptsApprovalPayload?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export interface AparteAgentHandlerOptions {
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Your server-side format adapters, keyed by the `providerId` the client sends. A page
|
|
20
|
+
* that registers no provider sends none, and the handler runs its only one; with
|
|
21
|
+
* several, the page names one.
|
|
22
|
+
*/
|
|
19
23
|
providers: Record<string, AparteAIProvider>;
|
|
24
|
+
/**
|
|
25
|
+
* The model a turn runs on when the page selected none, which is the case when the
|
|
26
|
+
* page registers no provider of its own. A model the page selects wins.
|
|
27
|
+
*/
|
|
28
|
+
defaultModel?: string;
|
|
20
29
|
/**
|
|
21
30
|
* Gate run on EVERY request before any work. **Required**, for the reason
|
|
22
31
|
* `createAparteChatHandler` gives: this endpoint spends your key and runs your
|
|
@@ -64,7 +73,8 @@ export interface AparteAgentHandlerOptions {
|
|
|
64
73
|
/** What `createAgentStreamRunner` POSTs. */
|
|
65
74
|
export interface AparteAgentRequestBody {
|
|
66
75
|
v: 1;
|
|
67
|
-
|
|
76
|
+
/** Absent when the page registered no provider: the handler runs its only one. */
|
|
77
|
+
providerId?: string;
|
|
68
78
|
messageId: string;
|
|
69
79
|
request: AparteChatRequest;
|
|
70
80
|
/** Definitions of the tools the browser runs; the server marks them external. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-handler.d.ts","sourceRoot":"","sources":["../../src/transport/agent-handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAqB,qBAAqB,EAAkB,MAAM,gBAAgB,CAAC;AAC/F,OAAO,KAAK,EAAE,iBAAiB,EAAqB,MAAM,kBAAkB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAA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;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,yBAAyB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAyMhH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparte/core",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.1",
|
|
4
4
|
"homepage": "https://apartejs.dev/",
|
|
5
5
|
"description": "AI chat in Web Components, with the agent loop inside — zero third-party dependencies",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"node": ">=18"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@aparte/engine": "0.19.
|
|
56
|
+
"@aparte/engine": "0.19.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|