@8wave/ai-elements 0.123.0 → 0.124.0-beta.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/ai-elements.es.js +2571 -2469
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-MEYD0XUR.js → PkChatbot-nV3qfJ3u.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-MEYD0XUR.js.map → PkChatbot-nV3qfJ3u.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-BcHNPZUB.js → PkChatbotMessages-pWNZCmM2.js} +322 -282
- package/dist-vue/_chunks/PkChatbotMessages-pWNZCmM2.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-CfpGWukX.js → PkChatbotViewChat-mWZvsKLA.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-CfpGWukX.js.map → PkChatbotViewChat-mWZvsKLA.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-JCrQIoGf.js → PkChatbotViewConversations-CIv5g2xZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-JCrQIoGf.js.map → PkChatbotViewConversations-CIv5g2xZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-B1mncBOo.js → PkChatbotViewFiles-DjYF-UoB.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-B1mncBOo.js.map → PkChatbotViewFiles-DjYF-UoB.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile--TWIrhYk.js → PkChatbotViewProfile-D3d-hG14.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile--TWIrhYk.js.map → PkChatbotViewProfile-D3d-hG14.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore--6ws3cew.js → useChatbotStore--PcS9kGN.js} +2 -1
- package/dist-vue/_chunks/useChatbotStore--PcS9kGN.js.map +1 -0
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +18 -9
- package/dist-vue/composables.js +15 -5
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +6 -6
- package/dist-vue/locales.js +12 -2
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +12 -3
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmDialog.d.ts +5 -0
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +11 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +3 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-BcHNPZUB.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore--6ws3cew.js.map +0 -1
package/dist-vue/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_chunks/rolldown-runtime-CGnMp29N.js";
|
|
2
2
|
import { t } from "./_chunks/PkEditorRadioButtons-Bw576DPQ.js";
|
|
3
3
|
import { E as n, S as r, T as i, _ as a, f as o, m as s, o as c, r as l, s as u, u as d, v as f, w as p, x as m, y as h } from "./_chunks/schemas-BO5QlXAp.js";
|
|
4
|
-
import { t as g } from "./_chunks/PkChatbotMessages-
|
|
4
|
+
import { t as g } from "./_chunks/PkChatbotMessages-pWNZCmM2.js";
|
|
5
5
|
import { a as _, i as v, l as y, n as b, r as x } from "./_chunks/Media-DylqhvaF.js";
|
|
6
6
|
import { C as S, E as C, F as w, G as ee, H as te, I as ne, J as re, K as ie, L as ae, M as oe, N as se, P as ce, R as le, T as ue, X as de, Y as fe, a as pe, at as me, b as he, ct as ge, d as _e, f as ve, ft as ye, i as be, it as xe, lt as Se, nt as Ce, ot as we, p as Te, q as Ee, r as T, rt as De, s as Oe, st as ke, t as Ae, v as je, w as Me, x as Ne, z as Pe } from "./_chunks/Agent-D3US-D1x.js";
|
|
7
7
|
import { c as Fe, d as Ie, l as Le, r as Re, s as ze, t as Be, u as Ve } from "./_chunks/Document-D5FVOcP9.js";
|
|
@@ -9,14 +9,14 @@ import { a as He, i as Ue, n as We } from "./_chunks/createChatbotApiClient-CFKe
|
|
|
9
9
|
import { t as Ge } from "./_chunks/PkChatbotAuth-Btxg3TF0.js";
|
|
10
10
|
import { t as Ke } from "./_chunks/VvButtonLocalized-C-vx25u4.js";
|
|
11
11
|
import { n as qe, t as Je } from "./_chunks/PkStreamingMarkdown-QDsT-4jC.js";
|
|
12
|
-
import { a as Ye, i as Xe, n as Ze, r as Qe } from "./_chunks/useChatbotStore--
|
|
12
|
+
import { a as Ye, i as Xe, n as Ze, r as Qe } from "./_chunks/useChatbotStore--PcS9kGN.js";
|
|
13
13
|
import "./_chunks/src-nb8MU1sh.js";
|
|
14
14
|
import { a as $e, l as et, u as tt } from "./_chunks/message-DuibQyHy.js";
|
|
15
15
|
import { E as nt, F as rt, G as it, K as at, M as ot, W as st, g as ct, k as lt, m as ut, v as dt } from "./_chunks/utils-DmBnucJs.js";
|
|
16
16
|
import { t as ft } from "./_chunks/useSafeLocalStorage-Bn4SsL8C.js";
|
|
17
17
|
import { t as pt } from "./_chunks/useDialogConfirm-fn7iV-iE.js";
|
|
18
|
-
import { i as mt, n as ht, r as gt, t as _t } from "./_chunks/PkChatbotViewConversations-
|
|
19
|
-
import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./_chunks/PkChatbotViewChat-
|
|
18
|
+
import { i as mt, n as ht, r as gt, t as _t } from "./_chunks/PkChatbotViewConversations-CIv5g2xZ.js";
|
|
19
|
+
import { a as vt, i as yt, n as bt, o as xt, r as St, t as Ct } from "./_chunks/PkChatbotViewChat-mWZvsKLA.js";
|
|
20
20
|
import { t as wt } from "./_chunks/PkChatbotError-BS84xuiu.js";
|
|
21
21
|
import { t as Tt } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
22
22
|
import { t as Et } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
@@ -37,8 +37,8 @@ import { t as $n } from "./_chunks/PkChatbotStepPayload-BT-Xg18D.js";
|
|
|
37
37
|
import { t as er } from "./_chunks/PkChatbotStepToolDetail-Cs322RDk.js";
|
|
38
38
|
import { n as tr, t as nr } from "./_chunks/PkChatbotInput-DSH5IrO6.js";
|
|
39
39
|
import { t as rr } from "./_chunks/PkChatbotEmptyState-qKpfIuvI.js";
|
|
40
|
-
import { t as ir } from "./_chunks/PkChatbotViewProfile
|
|
41
|
-
import { t as ar } from "./_chunks/PkChatbot-
|
|
40
|
+
import { t as ir } from "./_chunks/PkChatbotViewProfile-D3d-hG14.js";
|
|
41
|
+
import { t as ar } from "./_chunks/PkChatbot-nV3qfJ3u.js";
|
|
42
42
|
import { i as or, r as sr, t as cr } from "./_chunks/PkToolShowSources-BJd4zYAY.js";
|
|
43
43
|
import { t as lr } from "./_chunks/mcpOAuthReport-D-MtFYwN.js";
|
|
44
44
|
import { t as ur } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
package/dist-vue/locales.js
CHANGED
|
@@ -830,11 +830,16 @@ var e = {
|
|
|
830
830
|
toolApproval: {
|
|
831
831
|
hostCall: "The agent wants to use “{name}”. Allow it?",
|
|
832
832
|
prompt: "Your confirmation is needed to continue:",
|
|
833
|
+
fieldColumn: "Field",
|
|
834
|
+
beforeColumn: "Before",
|
|
835
|
+
afterColumn: "After",
|
|
836
|
+
noChanges: "No field changed since the agent read the form.",
|
|
837
|
+
unchangedFields: "{n} unchanged field | {n} unchanged fields",
|
|
833
838
|
promptNamed: "To continue, the agent wants to use “{tool}”.",
|
|
834
839
|
expired: "This request is no longer answerable: the action was not performed.",
|
|
835
840
|
fieldChecked: "yes",
|
|
836
841
|
pageElement: "an element",
|
|
837
|
-
|
|
842
|
+
fieldUnchecked: "no",
|
|
838
843
|
pageSubmit: "The agent wants to submit the form with “{name}”. Allow it?",
|
|
839
844
|
pageOpen: "The agent wants to open “{name}”: the page will change. Allow it?",
|
|
840
845
|
pageAnswer: "The page asks: “{question}” The agent wants to answer “{name}”. Allow it?",
|
|
@@ -1729,11 +1734,16 @@ var e = {
|
|
|
1729
1734
|
toolApproval: {
|
|
1730
1735
|
hostCall: "L'agente vuole usare «{name}». Consenti?",
|
|
1731
1736
|
prompt: "Per continuare serve la tua conferma:",
|
|
1737
|
+
fieldColumn: "Campo",
|
|
1738
|
+
beforeColumn: "Prima",
|
|
1739
|
+
afterColumn: "Dopo",
|
|
1740
|
+
noChanges: "Nessun campo è cambiato da quando l'agente ha letto il modulo.",
|
|
1741
|
+
unchangedFields: "{n} campo invariato | {n} campi invariati",
|
|
1732
1742
|
promptNamed: "Per continuare, l'agente vuole usare «{tool}».",
|
|
1733
1743
|
expired: "Questa richiesta non è più confermabile: l'azione non è stata eseguita.",
|
|
1734
1744
|
fieldChecked: "sì",
|
|
1735
1745
|
pageElement: "un elemento",
|
|
1736
|
-
|
|
1746
|
+
fieldUnchecked: "no",
|
|
1737
1747
|
pageSubmit: "L'agente vuole inviare il modulo con «{name}». Consenti?",
|
|
1738
1748
|
pageOpen: "L'agente vuole aprire «{name}»: la pagina cambierà. Consenti?",
|
|
1739
1749
|
pageAnswer: "La pagina chiede: «{question}» L'agente vuole rispondere «{name}». Consenti?",
|
|
@@ -3,15 +3,24 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
* The consent a host call waits for (spec `host-tools.md`, "Conferma"):
|
|
4
4
|
* same frame and buttons as `PkToolApprovalCard`, which answers the
|
|
5
5
|
* backend's suspended calls instead. Shown only while the call waits: once
|
|
6
|
-
* answered, the call's own step or line says how it ended.
|
|
7
|
-
*
|
|
8
|
-
* `page-tools-improvements.md`, M2)
|
|
6
|
+
* answered, the call's own step or line says how it ended.
|
|
7
|
+
*
|
|
8
|
+
* A submit lists what it changes (spec `page-tools-improvements.md`, M2)
|
|
9
|
+
* as a table of each field, what it was and what it becomes, marked as
|
|
10
|
+
* Word marks a revision; the fields it sends unchanged fold under it.
|
|
11
|
+
* Details without `before` are plain lines: a line without a label stands
|
|
12
|
+
* alone.
|
|
9
13
|
*/
|
|
10
14
|
type __VLS_Props = {
|
|
11
15
|
question: string;
|
|
12
16
|
details?: {
|
|
13
17
|
label: string;
|
|
14
18
|
value: string;
|
|
19
|
+
before?: string;
|
|
20
|
+
}[];
|
|
21
|
+
unchanged?: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
15
24
|
}[];
|
|
16
25
|
};
|
|
17
26
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -12,6 +12,11 @@ type __VLS_Props = {
|
|
|
12
12
|
details?: {
|
|
13
13
|
label: string;
|
|
14
14
|
value: string;
|
|
15
|
+
before?: string;
|
|
16
|
+
}[];
|
|
17
|
+
unchanged?: {
|
|
18
|
+
label: string;
|
|
19
|
+
value: string;
|
|
15
20
|
}[];
|
|
16
21
|
};
|
|
17
22
|
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -40,10 +40,20 @@ export type RegisteredHostTool = HostToolDefinition & {
|
|
|
40
40
|
*/
|
|
41
41
|
export type HostToolConfirmation = {
|
|
42
42
|
question: string;
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* Lines under the question. With `before` they are changes, shown as a
|
|
45
|
+
* table of what each field was and becomes (a submit's fields the agent
|
|
46
|
+
* changed); without, plain label and value.
|
|
47
|
+
*/
|
|
44
48
|
details?: {
|
|
45
49
|
label: string;
|
|
46
50
|
value: string;
|
|
51
|
+
before?: string;
|
|
52
|
+
}[];
|
|
53
|
+
/** The fields a submit sends unchanged, folded under the details. */
|
|
54
|
+
unchanged?: {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
47
57
|
}[];
|
|
48
58
|
/** What the model reads when the user says no, in place of the plain refusal. */
|
|
49
59
|
refusal?: string;
|
|
@@ -646,6 +646,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
646
646
|
toolCallId: string;
|
|
647
647
|
question?: string;
|
|
648
648
|
details?: HostToolConfirmation["details"];
|
|
649
|
+
unchanged?: HostToolConfirmation["unchanged"];
|
|
649
650
|
answer: (approved: boolean) => void;
|
|
650
651
|
} | undefined>;
|
|
651
652
|
respondHostConfirmation: (approved: boolean) => void;
|
|
@@ -2659,6 +2660,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
2659
2660
|
toolCallId: string;
|
|
2660
2661
|
question?: string;
|
|
2661
2662
|
details?: HostToolConfirmation["details"];
|
|
2663
|
+
unchanged?: HostToolConfirmation["unchanged"];
|
|
2662
2664
|
answer: (approved: boolean) => void;
|
|
2663
2665
|
} | undefined>;
|
|
2664
2666
|
respondHostConfirmation: (approved: boolean) => void;
|
|
@@ -4672,6 +4674,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
|
|
|
4672
4674
|
toolCallId: string;
|
|
4673
4675
|
question?: string;
|
|
4674
4676
|
details?: HostToolConfirmation["details"];
|
|
4677
|
+
unchanged?: HostToolConfirmation["unchanged"];
|
|
4675
4678
|
answer: (approved: boolean) => void;
|
|
4676
4679
|
} | undefined>;
|
|
4677
4680
|
respondHostConfirmation: (approved: boolean) => void;
|