@artooi/ag-ui-web-component 0.41.3 → 0.43.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/CHANGELOG.md +304 -1
- package/README.md +113 -24
- package/dist/ag-ui-web-component.bundle.js +33 -33
- package/dist/ag-ui-web-component.bundle.js.map +3 -3
- package/dist/constants.d.ts +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/core/ag_ui_chat.d.ts +49 -9
- package/dist/core/ag_ui_chat.d.ts.map +1 -1
- package/dist/core/agui_client.d.ts +20 -7
- package/dist/core/agui_client.d.ts.map +1 -1
- package/dist/core/storage_scope.d.ts +14 -4
- package/dist/core/storage_scope.d.ts.map +1 -1
- package/dist/index.js +729 -115
- package/dist/index.js.map +3 -3
- package/dist/tools/tool_dispatch.d.ts +23 -0
- package/dist/tools/tool_dispatch.d.ts.map +1 -1
- package/dist/ui/composer/voice_input.d.ts +10 -4
- package/dist/ui/composer/voice_input.d.ts.map +1 -1
- package/dist/ui/history/conversation_history.d.ts +84 -1
- package/dist/ui/history/conversation_history.d.ts.map +1 -1
- package/dist/ui/ui_strings.d.ts +5 -0
- package/dist/ui/ui_strings.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +3 -1
- package/src/core/ag_ui_chat.ts +498 -70
- package/src/core/agui_client.ts +55 -12
- package/src/core/storage_scope.ts +21 -8
- package/src/tools/tool_dispatch.ts +153 -6
- package/src/ui/composer/voice_input.ts +79 -14
- package/src/ui/history/conversation_history.ts +392 -56
- package/src/ui/ui_strings.ts +6 -0
- package/src/version.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -4,7 +4,9 @@ export declare const ELEMENT_TAG = "ag-ui-chat";
|
|
|
4
4
|
* User submitted a message. `detail` is {@link SubmitDetail}.
|
|
5
5
|
*
|
|
6
6
|
* Fires for every turn the user sends: with Send, through `sendMessage`, and
|
|
7
|
-
* as the next turn of a run resumed or forked from the checkpoint panel.
|
|
7
|
+
* as the next turn of a run resumed or forked from the checkpoint panel. A
|
|
8
|
+
* listener runs while that turn is already the one in flight, so a
|
|
9
|
+
* `sendMessage` from it is refused rather than starting a second run.
|
|
8
10
|
*/
|
|
9
11
|
export declare const SUBMIT_EVENT = "ag-ui-submit";
|
|
10
12
|
/**
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,wEAAwE;AACxE,eAAO,MAAM,WAAW,eAAe,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAE3C;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,kBAAkB,iBAAiB,CAAC;AAEjD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,oBAAoB,mBAAm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AO,MAAM,mBAAmB,UAAU,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC"}
|
|
@@ -517,8 +517,20 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
517
517
|
*
|
|
518
518
|
* History is truncated to the most recent user message inclusive and the run
|
|
519
519
|
* repeats, so the agent answers what it was asked rather than being told its
|
|
520
|
-
* last answer was wrong. Returns `false` when there is nothing to retry or
|
|
521
|
-
*
|
|
520
|
+
* last answer was wrong. Returns `false` when there is nothing to retry, or
|
|
521
|
+
* while anything that holds a send is in flight: a run, a send or another
|
|
522
|
+
* retry whose run has not started yet, a checkpoint continuation, or a
|
|
523
|
+
* restore of the stored conversation that is still loading. It does not wait
|
|
524
|
+
* for a restore as a send does: nothing is on screen to retry yet, and after
|
|
525
|
+
* the load it would re-ask the previous visit's last question. Also `false`
|
|
526
|
+
* when host code it
|
|
527
|
+
* runs before its run starts -- the store's save, or an activity or tool
|
|
528
|
+
* renderer the replay draws through -- has stopped it by starting a new chat
|
|
529
|
+
* or changing `user-key`. A tool or context provider that stops it does so
|
|
530
|
+
* inside the client's resume, past the last point this can see: nothing is
|
|
531
|
+
* sent, and this resolves `true`, because both a run starting and a Stop let
|
|
532
|
+
* go of the hold it checks. Rejects with the store's error when the store
|
|
533
|
+
* refuses the save, and then the conversation is as it was.
|
|
522
534
|
*
|
|
523
535
|
* Public because a host with its own message UI wants the same button, and
|
|
524
536
|
* because the failed-run notice reaches it from outside the action row.
|
|
@@ -551,13 +563,41 @@ export declare class AgUiChat extends HTMLElement {
|
|
|
551
563
|
* `attachments` are durable {@link AttachmentRef}s — what {@link attachFile}
|
|
552
564
|
* resolves to and what {@link ATTACHMENT_EVENT} reports.
|
|
553
565
|
*
|
|
554
|
-
*
|
|
555
|
-
*
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
|
|
560
|
-
|
|
566
|
+
* Resolves `true` once the turn has been handed to the client for its run,
|
|
567
|
+
* which is when the interaction settles, frontend-tool rounds included; a
|
|
568
|
+
* run a tool or context provider then stops still counts, as it does for
|
|
569
|
+
* {@link retryLastTurn}. Resolves `false` when nothing was sent.
|
|
570
|
+
*
|
|
571
|
+
* Nothing is sent for an empty message, nor while a run or a picked
|
|
572
|
+
* checkpoint's continuation is in flight, since a second concurrent run
|
|
573
|
+
* would orphan the first. A send is in flight from the moment it is taken
|
|
574
|
+
* rather than from its run's start, so nothing is sent from a
|
|
575
|
+
* {@link SUBMIT_EVENT} listener or for a second call in the same task
|
|
576
|
+
* either. Nor with no `endpoint`, which says so in the transcript. Nor
|
|
577
|
+
* behind a reload's restore that will resume a run a navigating tool
|
|
578
|
+
* interrupted, since that restore ends by starting the run.
|
|
579
|
+
*
|
|
580
|
+
* **While the element restores a stored conversation with no run to resume
|
|
581
|
+
* -- on connect, {@link reload}, a thread picked from the drawer, a change
|
|
582
|
+
* from one `user-key` to another -- it waits, then sends.** The turn has to follow the
|
|
583
|
+
* conversation it is part of: sent at once, it went out without it, the
|
|
584
|
+
* conversation was then drawn under it, and its save replaced the stored
|
|
585
|
+
* one. So the bubble, the {@link SUBMIT_EVENT} and the request all come after
|
|
586
|
+
* the replay, by the length of the store's load. A New chat, a thread
|
|
587
|
+
* switch, a change from one `user-key` to another, a reload or the element
|
|
588
|
+
* leaving the page while it waits drops it, resolving `false`: the
|
|
589
|
+
* conversation it was addressed to is no longer on screen. Leaving the page
|
|
590
|
+
* resolves it only once the load answers or the element is back, since
|
|
591
|
+
* that is when the restore learns it was stopped. A first `user-key` on an
|
|
592
|
+
* anonymous conversation adopts it rather than replacing it, and stops
|
|
593
|
+
* nothing. A second call while one waits is
|
|
594
|
+
* refused, as a second call in the same task is.
|
|
595
|
+
*
|
|
596
|
+
* Unlike the built-in Send it does not queue: it returns, and the caller
|
|
597
|
+
* keeps what it tried to send. Nor does it consult the tray -- what you pass
|
|
598
|
+
* is what is sent.
|
|
599
|
+
*/
|
|
600
|
+
sendMessage(content: string, attachments?: readonly AttachmentRef[]): Promise<boolean>;
|
|
561
601
|
/**
|
|
562
602
|
* Queue a file for upload into the attachment tray, exactly as the file
|
|
563
603
|
* picker and drag-and-drop do — validation, progress chip, and all.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ag_ui_chat.d.ts","sourceRoot":"","sources":["../../src/core/ag_ui_chat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAoBjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEzF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AActD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAG5E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAG1E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAQ1E,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,kC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IA2JD;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CAAC,MAAM,GAAE,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,EAAyB,GAAG,IAAI,CA0BlF;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,wBAAwB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI,CAEjE;IAED;;;;;;;;OAQG;IACH,IAAI,sBAAsB,IAAI,SAAS,MAAM,EAAE,CAE9C;CACF"}
|
|
@@ -37,8 +37,11 @@ export interface ToolExecution {
|
|
|
37
37
|
* Executes a frontend tool call.
|
|
38
38
|
*
|
|
39
39
|
* Returns the {@link ToolExecution} to post back to the agent, or `null` when
|
|
40
|
-
* the call is not a frontend tool the host owns
|
|
41
|
-
* already executed, which the client must not
|
|
40
|
+
* there is nothing to post: the call is not a frontend tool the host owns (a
|
|
41
|
+
* server-side tool the server already executed, which the client must not
|
|
42
|
+
* re-run), or its run was stopped or handed over while the call waited. A
|
|
43
|
+
* stopped call is left unanswered here, like the calls after it in the round,
|
|
44
|
+
* and the next request answers it as not finished.
|
|
42
45
|
*/
|
|
43
46
|
export type ExecuteTool = (call: AgUiToolCall) => Promise<ToolExecution | null>;
|
|
44
47
|
/**
|
|
@@ -304,11 +307,14 @@ export declare class AgUiClient {
|
|
|
304
307
|
* can be asked again.
|
|
305
308
|
*
|
|
306
309
|
* Returns the retained history, or `null` when there is nothing to retry (no
|
|
307
|
-
* user message has been sent yet).
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
310
|
+
* user message has been sent yet). The shortened history is saved before it
|
|
311
|
+
* replaces the current one, so a save that throws changes nothing and the
|
|
312
|
+
* throw propagates.
|
|
313
|
+
*
|
|
314
|
+
* **Truncates only** -- the caller re-renders from the returned list and then
|
|
315
|
+
* calls {@link resume}, because the transcript belongs to the element and a
|
|
316
|
+
* client that reached into it would own two things. Running here instead
|
|
317
|
+
* would stream the new answer in underneath the old one.
|
|
312
318
|
*
|
|
313
319
|
* Re-running answers the question the agent was last asked, rather than
|
|
314
320
|
* telling it its answer was wrong, which is what makes the result a
|
|
@@ -333,6 +339,13 @@ export declare class AgUiClient {
|
|
|
333
339
|
* disconnect). Safe to call with no run in flight. Partial text already
|
|
334
340
|
* streamed stays in history; {@link AgUiClientHandlers.onCancelled} fires
|
|
335
341
|
* instead of `onError`, and `onSettled` still follows.
|
|
342
|
+
*
|
|
343
|
+
* Also stops a {@link send} or {@link resume} whose request has not been made
|
|
344
|
+
* yet, when host code it runs on the way calls this: the save of the turn,
|
|
345
|
+
* the tool and context providers, the save answering a call left open. No
|
|
346
|
+
* request is made then, and `onCancelled` and `onSettled` fire as for any
|
|
347
|
+
* other Stop. A cancel with nothing in flight is forgotten when the next
|
|
348
|
+
* send or resume begins.
|
|
336
349
|
*/
|
|
337
350
|
cancel(): void;
|
|
338
351
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agui_client.d.ts","sourceRoot":"","sources":["../../src/core/agui_client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAKnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,OAAO,EAEZ,KAAK,SAAS,EACd,KAAK,OAAO,EAEZ,KAAK,IAAI,EACV,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD,8DAA8D;AAC9D,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,mFAAmF;AACnF,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,OAAO,EAAE,MAAM,CAAC;I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AC;IACzB;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,YAAY,OAAO,EAAE,MAAM,EAG1B;CACF;AAED;;;;;;GAMG;AACH,qBAAa,UAAU;;IAwBrB,YAAY,MAAM,EAAE,gBAAgB,EA+BnC;IAED,oEAAoE;IACpE,IAAI,KAAK,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAE7C;IAED,gFAAgF;IAChF,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAEvD;IAED,4CAA4C;IAC5C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,wEAAwE;IACxE,IAAI,QAAQ,IAAI,SAAS,OAAO,EAAE,CAEjC;IAED;;;;;;;;;;;;OAYG;IACG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,GAAE,SAAS,aAAa,EAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAsBrF;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,kBAAkB,IAAI,SAAS,OAAO,EAAE,GAAG,IAAI,CAyB9C;IAED;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAM5B;IAED,0EAA0E;IAC1E,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAGvD;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,IAAI,IAAI,CAGb;IA6ID;;;;;;;;;;;;OAYG;IACH,IAAI,iBAAiB,IAAI,SAAS,OAAO,EAAE,CAE1C;CAsSF"}
|
|
@@ -50,11 +50,21 @@ export declare class StorageScope {
|
|
|
50
50
|
*/
|
|
51
51
|
scopeStore(store: ClientConversationStore, key: string): ClientConversationStore;
|
|
52
52
|
/**
|
|
53
|
-
* Rebuild the built-in store under `namespace`, or `null`
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* Rebuild the built-in store under `namespace`, or `null` when `current` --
|
|
54
|
+
* the store the element is using now, unwrapped from any remote it wrapped
|
|
55
|
+
* it in -- is not the one this scope handed out.
|
|
56
|
+
*
|
|
57
|
+
* Asked of the store in use rather than of what connecting remembered,
|
|
58
|
+
* because the two part company the moment a host assigns a store of its own
|
|
59
|
+
* to a connected element. Remembering was enough to tell a host's store from
|
|
60
|
+
* the built-in one at connect; after it, the built-in one was still
|
|
61
|
+
* remembered, so a key change replaced the host's store with a fresh
|
|
62
|
+
* `sessionStorage` one -- and a host that had chosen to keep message bodies
|
|
63
|
+
* off the client found every one of them cached in the tab again. A store
|
|
64
|
+
* the element did not make holds its data somewhere the element cannot see,
|
|
65
|
+
* and has to scope itself.
|
|
56
66
|
*/
|
|
57
|
-
rescopeStore(namespace: string): SessionStorageStore | null;
|
|
67
|
+
rescopeStore(current: ClientConversationStore, namespace: string): SessionStorageStore | null;
|
|
58
68
|
/** This instance's namespaced form of an origin-scoped storage key. */
|
|
59
69
|
key(base: string): string;
|
|
60
70
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage_scope.d.ts","sourceRoot":"","sources":["../../src/core/storage_scope.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,uBAAuB,EAC5B,mBAAmB,EAEpB,MAAM,yBAAyB,CAAC;AAkBjC,kEAAkE;AAClE,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,EAAE,MAAM,MAAM,CAAC;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,QAAQ,EAAE,MAAM,MAAM,CAAC;CACjC;AAED;;;;;;;GAOG;AACH,qBAAa,YAAY;;
|
|
1
|
+
{"version":3,"file":"storage_scope.d.ts","sourceRoot":"","sources":["../../src/core/storage_scope.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,uBAA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