@llmnative/agentico 0.13.0 → 0.13.2
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/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +211 -180
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -885,7 +885,24 @@ function at({ text: e, tone: t }) {
|
|
|
885
885
|
className: "break-words text-xs leading-relaxed"
|
|
886
886
|
}, n)) });
|
|
887
887
|
}
|
|
888
|
-
function ot(
|
|
888
|
+
function ot() {
|
|
889
|
+
let [e] = N(() => Date.now()), [t, n] = N(e);
|
|
890
|
+
k(() => {
|
|
891
|
+
let e = setInterval(() => n(Date.now()), 1e3);
|
|
892
|
+
return () => clearInterval(e);
|
|
893
|
+
}, []);
|
|
894
|
+
let r = Math.floor((t - e) / 1e3);
|
|
895
|
+
return r < 10 ? null : /* @__PURE__ */ I("span", {
|
|
896
|
+
className: "tabular-nums",
|
|
897
|
+
children: [
|
|
898
|
+
" · ",
|
|
899
|
+
Math.floor(r / 60),
|
|
900
|
+
":",
|
|
901
|
+
String(r % 60).padStart(2, "0")
|
|
902
|
+
]
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
function st({ status: e }) {
|
|
889
906
|
return e === "running" ? /* @__PURE__ */ F("span", { className: "inline-block h-3 w-3 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent" }) : e === "done" ? /* @__PURE__ */ F(f, {
|
|
890
907
|
name: "check",
|
|
891
908
|
size: 12,
|
|
@@ -900,11 +917,11 @@ function ot({ status: e }) {
|
|
|
900
917
|
className: "shrink-0 text-destructive"
|
|
901
918
|
});
|
|
902
919
|
}
|
|
903
|
-
function
|
|
920
|
+
function ct(e, t) {
|
|
904
921
|
return e.status === "running" ? t.thinking : e.status === "error" ? t.modelRequestError : e.status === "stopped" ? t.stopped : e.detail ? t.responseReceived : e.toolNames && e.toolNames.length > 0 ? e.toolNames.join(" · ") : t.toolRequest;
|
|
905
922
|
}
|
|
906
|
-
var
|
|
907
|
-
function
|
|
923
|
+
var lt = 96;
|
|
924
|
+
function ut({ entry: e, pinned: t = !0 }) {
|
|
908
925
|
let n = M(null), [r, i] = N(!1), [a, o] = N(!1);
|
|
909
926
|
A(() => {
|
|
910
927
|
let e = n.current;
|
|
@@ -918,7 +935,7 @@ function lt({ entry: e, pinned: t = !0 }) {
|
|
|
918
935
|
children: [/* @__PURE__ */ I("div", {
|
|
919
936
|
ref: n,
|
|
920
937
|
className: `space-y-1 px-2.5 pt-1.5 ${s ? "overflow-hidden" : ""}`,
|
|
921
|
-
style: s ? { maxHeight:
|
|
938
|
+
style: s ? { maxHeight: lt } : void 0,
|
|
922
939
|
children: [e.attachmentNames && e.attachmentNames.length > 0 && /* @__PURE__ */ F("div", {
|
|
923
940
|
className: "flex flex-wrap gap-1",
|
|
924
941
|
children: e.attachmentNames.map((e, t) => /* @__PURE__ */ I("span", {
|
|
@@ -946,13 +963,13 @@ function lt({ entry: e, pinned: t = !0 }) {
|
|
|
946
963
|
})
|
|
947
964
|
});
|
|
948
965
|
}
|
|
949
|
-
var
|
|
966
|
+
var dt = {
|
|
950
967
|
running: "loader-circle",
|
|
951
968
|
done: "check",
|
|
952
969
|
error: "x",
|
|
953
970
|
stopped: "circle-slash"
|
|
954
971
|
};
|
|
955
|
-
function
|
|
972
|
+
function ft({ steps: e }) {
|
|
956
973
|
let t = $(), n = e.filter((e) => e.status === "running").at(-1), r = e.some((e) => e.status === "error"), i = n?.label ?? (e.length === 1 ? t.oneStep : y(t.steps, { count: e.length }));
|
|
957
974
|
return /* @__PURE__ */ F(_, {
|
|
958
975
|
ariaLabel: t.stepsLabel,
|
|
@@ -968,12 +985,12 @@ function dt({ steps: e }) {
|
|
|
968
985
|
className: e.status === "error" ? "text-destructive" : void 0,
|
|
969
986
|
children: e.label
|
|
970
987
|
}),
|
|
971
|
-
icon:
|
|
988
|
+
icon: dt[e.status]
|
|
972
989
|
}))
|
|
973
990
|
}]
|
|
974
991
|
});
|
|
975
992
|
}
|
|
976
|
-
function
|
|
993
|
+
function pt({ entry: e, part: a, questions: o }) {
|
|
977
994
|
let s = $(), [c, l] = N(!1), u = !!(o?.onCardAction && o.canAnswer(e.id) && !a.outcome), d = a.outcome?.status === "done" ? "text-success" : a.outcome?.status === "error" ? "text-destructive" : "text-muted-foreground";
|
|
978
995
|
return /* @__PURE__ */ I(r, {
|
|
979
996
|
headerClassName: "flex items-center justify-between gap-2 px-3 py-2",
|
|
@@ -986,32 +1003,46 @@ function ft({ entry: e, part: a, questions: o }) {
|
|
|
986
1003
|
children: a.badge.label
|
|
987
1004
|
})] }),
|
|
988
1005
|
footer: /* @__PURE__ */ I("div", {
|
|
989
|
-
className: "
|
|
990
|
-
children: [
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1006
|
+
className: "space-y-1.5 px-3 py-2",
|
|
1007
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1008
|
+
className: "flex items-center gap-1",
|
|
1009
|
+
children: [
|
|
1010
|
+
a.details && /* @__PURE__ */ F(t, {
|
|
1011
|
+
icon: "eye",
|
|
1012
|
+
ariaLabel: s.cardView,
|
|
1013
|
+
title: s.cardView,
|
|
1014
|
+
variant: "outline-secondary",
|
|
1015
|
+
onClick: () => l(!0)
|
|
1016
|
+
}),
|
|
1017
|
+
(a.actions ?? []).filter((e) => e.variant !== "primary" && e.icon).map((t) => /* @__PURE__ */ F(m, {
|
|
1018
|
+
icon: t.icon,
|
|
1019
|
+
ariaLabel: t.label,
|
|
1020
|
+
title: t.label,
|
|
1021
|
+
variant: t.variant ?? "outline-secondary",
|
|
1022
|
+
disabled: !u,
|
|
1023
|
+
onClick: () => o.onCardAction(e.id, a.id, t.id)
|
|
1024
|
+
}, t.id)),
|
|
1025
|
+
/* @__PURE__ */ F("span", {
|
|
1026
|
+
className: "ms-auto flex items-center gap-1",
|
|
1027
|
+
children: (a.actions ?? []).filter((e) => e.variant === "primary" || !e.icon).map((t) => /* @__PURE__ */ F(m, {
|
|
1028
|
+
...t.icon ? { icon: t.icon } : {},
|
|
1029
|
+
label: t.label,
|
|
1030
|
+
variant: t.variant ?? "outline-primary",
|
|
1031
|
+
disabled: !u,
|
|
1032
|
+
onClick: () => o.onCardAction(e.id, a.id, t.id)
|
|
1033
|
+
}, t.id))
|
|
1034
|
+
})
|
|
1035
|
+
]
|
|
1036
|
+
}), a.outcome && /* @__PURE__ */ I("p", {
|
|
1037
|
+
className: `text-xs ${d}`,
|
|
1038
|
+
children: [a.outcome.text, a.outcome.link && /* @__PURE__ */ I(P, { children: [" ", /* @__PURE__ */ F("a", {
|
|
1039
|
+
className: "underline",
|
|
1040
|
+
href: a.outcome.link.url,
|
|
1041
|
+
target: "_blank",
|
|
1042
|
+
rel: "noopener noreferrer",
|
|
1043
|
+
children: a.outcome.link.label
|
|
1044
|
+
})] })]
|
|
1045
|
+
})]
|
|
1015
1046
|
}),
|
|
1016
1047
|
children: [a.body ? /* @__PURE__ */ F(i, {
|
|
1017
1048
|
content: a.body,
|
|
@@ -1033,7 +1064,7 @@ function ft({ entry: e, part: a, questions: o }) {
|
|
|
1033
1064
|
})]
|
|
1034
1065
|
});
|
|
1035
1066
|
}
|
|
1036
|
-
function
|
|
1067
|
+
function mt(e, t) {
|
|
1037
1068
|
let n = e.at(-1);
|
|
1038
1069
|
if (!n || n.kind !== "thinking" || !n.parts || n.status === "stopped" || n.status === "error") return null;
|
|
1039
1070
|
let r = [...n.parts].reverse().find((e) => e.type === "questions");
|
|
@@ -1042,7 +1073,7 @@ function pt(e, t) {
|
|
|
1042
1073
|
part: r
|
|
1043
1074
|
};
|
|
1044
1075
|
}
|
|
1045
|
-
function
|
|
1076
|
+
function ht({ entry: e, part: t, questions: n, autoFocus: r, className: i }) {
|
|
1046
1077
|
let o = !!n?.canAnswer(e.id);
|
|
1047
1078
|
return /* @__PURE__ */ F(a, {
|
|
1048
1079
|
questions: t.questions,
|
|
@@ -1053,7 +1084,7 @@ function mt({ entry: e, part: t, questions: n, autoFocus: r, className: i }) {
|
|
|
1053
1084
|
className: i ?? "text-xs"
|
|
1054
1085
|
});
|
|
1055
1086
|
}
|
|
1056
|
-
function
|
|
1087
|
+
function gt({ entry: e, questions: t, hiddenPartId: n }) {
|
|
1057
1088
|
let r = (e.parts ?? []).filter((e) => e.type !== "questions" || e.id !== n), a = [];
|
|
1058
1089
|
for (let e of r) {
|
|
1059
1090
|
let t = a.at(-1);
|
|
@@ -1068,7 +1099,7 @@ function ht({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1068
1099
|
return /* @__PURE__ */ F("div", {
|
|
1069
1100
|
className: "space-y-2",
|
|
1070
1101
|
children: a.map((n) => {
|
|
1071
|
-
if ("steps" in n) return /* @__PURE__ */ F(
|
|
1102
|
+
if ("steps" in n) return /* @__PURE__ */ F(ft, { steps: n.steps }, n.key);
|
|
1072
1103
|
let { part: r } = n;
|
|
1073
1104
|
return r.type === "text" ? r.text.trim() ? /* @__PURE__ */ F(i, {
|
|
1074
1105
|
content: r.text,
|
|
@@ -1079,11 +1110,11 @@ function ht({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1079
1110
|
streaming: r.streaming,
|
|
1080
1111
|
duration: r.duration,
|
|
1081
1112
|
className: "my-0"
|
|
1082
|
-
}, n.key) : r.type === "card" ? /* @__PURE__ */ F(
|
|
1113
|
+
}, n.key) : r.type === "card" ? /* @__PURE__ */ F(pt, {
|
|
1083
1114
|
entry: e,
|
|
1084
1115
|
part: r,
|
|
1085
1116
|
questions: t
|
|
1086
|
-
}, n.key) : /* @__PURE__ */ F(
|
|
1117
|
+
}, n.key) : /* @__PURE__ */ F(ht, {
|
|
1087
1118
|
entry: e,
|
|
1088
1119
|
part: r,
|
|
1089
1120
|
questions: t
|
|
@@ -1091,13 +1122,13 @@ function ht({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1091
1122
|
})
|
|
1092
1123
|
});
|
|
1093
1124
|
}
|
|
1094
|
-
function
|
|
1125
|
+
function _t({ entry: e, questions: t, hiddenPartId: n }) {
|
|
1095
1126
|
let r = $();
|
|
1096
1127
|
if (e.kind === "thinking" && e.parts) {
|
|
1097
|
-
let i = e.status === "error" || e.status === "stopped" || e.status === "running"
|
|
1128
|
+
let i = e.status === "error" || e.status === "stopped" || e.status === "running";
|
|
1098
1129
|
return /* @__PURE__ */ I("li", {
|
|
1099
1130
|
className: "text-xs text-muted-foreground",
|
|
1100
|
-
children: [e.parts.length > 0 && /* @__PURE__ */ F(
|
|
1131
|
+
children: [e.parts.length > 0 && /* @__PURE__ */ F(gt, {
|
|
1101
1132
|
entry: e,
|
|
1102
1133
|
questions: t,
|
|
1103
1134
|
hiddenPartId: n
|
|
@@ -1105,15 +1136,15 @@ function gt({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1105
1136
|
className: `flex items-start gap-1.5 ${e.parts.length > 0 ? "mt-1" : ""}`,
|
|
1106
1137
|
children: [/* @__PURE__ */ F("span", {
|
|
1107
1138
|
className: "pt-px",
|
|
1108
|
-
children: /* @__PURE__ */ F(
|
|
1109
|
-
}), /* @__PURE__ */
|
|
1139
|
+
children: /* @__PURE__ */ F(st, { status: e.status })
|
|
1140
|
+
}), /* @__PURE__ */ I("span", {
|
|
1110
1141
|
className: "min-w-0 flex-1 whitespace-pre-wrap break-words",
|
|
1111
|
-
children:
|
|
1142
|
+
children: [ct(e, r), e.status === "running" && /* @__PURE__ */ F(ot, {})]
|
|
1112
1143
|
})]
|
|
1113
1144
|
})]
|
|
1114
1145
|
});
|
|
1115
1146
|
}
|
|
1116
|
-
let a = e.kind === "thinking" && e.detail ? rt(e.detail) : [], o = a.filter((e) => e.type === "code"), s = a.filter((e) => e.type === "text" && e.content.trim()), c = e.kind === "thinking" ?
|
|
1147
|
+
let a = e.kind === "thinking" && e.detail ? rt(e.detail) : [], o = a.filter((e) => e.type === "code"), s = a.filter((e) => e.type === "text" && e.content.trim()), c = e.kind === "thinking" ? ct(e, r) : e.label;
|
|
1117
1148
|
return /* @__PURE__ */ I("li", {
|
|
1118
1149
|
className: "text-xs text-muted-foreground",
|
|
1119
1150
|
children: [
|
|
@@ -1121,7 +1152,7 @@ function gt({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1121
1152
|
className: "flex items-start gap-1.5",
|
|
1122
1153
|
children: [/* @__PURE__ */ F("span", {
|
|
1123
1154
|
className: "pt-px",
|
|
1124
|
-
children: /* @__PURE__ */ F(
|
|
1155
|
+
children: /* @__PURE__ */ F(st, { status: e.status })
|
|
1125
1156
|
}), /* @__PURE__ */ F("span", {
|
|
1126
1157
|
className: "min-w-0 flex-1 whitespace-pre-wrap break-words",
|
|
1127
1158
|
children: c
|
|
@@ -1145,7 +1176,7 @@ function gt({ entry: e, questions: t, hiddenPartId: n }) {
|
|
|
1145
1176
|
]
|
|
1146
1177
|
});
|
|
1147
1178
|
}
|
|
1148
|
-
function
|
|
1179
|
+
function vt({ activity: e, questions: t, docked: n, pinUserMessages: r = !0 }) {
|
|
1149
1180
|
if (e.length === 0) return null;
|
|
1150
1181
|
let i = [];
|
|
1151
1182
|
for (let t of e) t.kind === "user" || i.length === 0 ? i.push(t.kind === "user" ? {
|
|
@@ -1154,12 +1185,12 @@ function _t({ activity: e, questions: t, docked: n, pinUserMessages: r = !0 }) {
|
|
|
1154
1185
|
} : { entries: [t] }) : i[i.length - 1].entries.push(t);
|
|
1155
1186
|
return /* @__PURE__ */ F("ul", {
|
|
1156
1187
|
className: "space-y-0.5",
|
|
1157
|
-
children: i.map((e) => /* @__PURE__ */ I("li", { children: [e.user && /* @__PURE__ */ F(
|
|
1188
|
+
children: i.map((e) => /* @__PURE__ */ I("li", { children: [e.user && /* @__PURE__ */ F(ut, {
|
|
1158
1189
|
entry: e.user,
|
|
1159
1190
|
pinned: r
|
|
1160
1191
|
}), e.entries.length > 0 && /* @__PURE__ */ F("ul", {
|
|
1161
1192
|
className: "space-y-0.5",
|
|
1162
|
-
children: e.entries.map((e) => /* @__PURE__ */ F(
|
|
1193
|
+
children: e.entries.map((e) => /* @__PURE__ */ F(_t, {
|
|
1163
1194
|
entry: e,
|
|
1164
1195
|
questions: t,
|
|
1165
1196
|
hiddenPartId: n?.entry.id === e.id ? n.part.id : void 0
|
|
@@ -1169,55 +1200,55 @@ function _t({ activity: e, questions: t, docked: n, pinUserMessages: r = !0 }) {
|
|
|
1169
1200
|
}
|
|
1170
1201
|
//#endregion
|
|
1171
1202
|
//#region src/presentation/panelWidth.ts
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1203
|
+
var yt = 420, bt = 320, xt = "60vw", St = "agentico:panel-width";
|
|
1204
|
+
function Ct(e, t) {
|
|
1174
1205
|
if (typeof e == "number") return e;
|
|
1175
1206
|
let n = Number.parseFloat(e);
|
|
1176
1207
|
return Number.isFinite(n) ? Math.round(n / 100 * t) : Infinity;
|
|
1177
1208
|
}
|
|
1178
|
-
function
|
|
1209
|
+
function wt(e, t, n) {
|
|
1179
1210
|
return Math.round(Math.min(Math.max(e, t), Math.max(t, n)));
|
|
1180
1211
|
}
|
|
1181
|
-
function
|
|
1212
|
+
function Tt() {
|
|
1182
1213
|
try {
|
|
1183
|
-
let e = window.localStorage.getItem(
|
|
1214
|
+
let e = window.localStorage.getItem(St), t = e === null ? NaN : Number(e);
|
|
1184
1215
|
return Number.isFinite(t) && t > 0 ? t : null;
|
|
1185
1216
|
} catch {
|
|
1186
1217
|
return null;
|
|
1187
1218
|
}
|
|
1188
1219
|
}
|
|
1189
|
-
function
|
|
1220
|
+
function Et(e) {
|
|
1190
1221
|
try {
|
|
1191
|
-
e === null ? window.localStorage.removeItem(
|
|
1222
|
+
e === null ? window.localStorage.removeItem(St) : window.localStorage.setItem(St, String(e));
|
|
1192
1223
|
} catch {}
|
|
1193
1224
|
}
|
|
1194
|
-
function
|
|
1225
|
+
function Dt() {
|
|
1195
1226
|
return typeof window > "u" ? Infinity : window.innerWidth;
|
|
1196
1227
|
}
|
|
1197
|
-
function
|
|
1198
|
-
let [i, a] = N(
|
|
1228
|
+
function Ot({ defaultWidth: e = 420, minWidth: t = 320, maxWidth: n = xt, onWidthChange: r }) {
|
|
1229
|
+
let [i, a] = N(Dt), [o, s] = N(() => Tt() ?? e);
|
|
1199
1230
|
k(() => {
|
|
1200
1231
|
if (typeof window > "u") return;
|
|
1201
1232
|
let e = () => a(window.innerWidth);
|
|
1202
1233
|
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
1203
1234
|
}, []);
|
|
1204
|
-
let c = t, l = Math.max(c,
|
|
1235
|
+
let c = t, l = Math.max(c, Ct(n, i)), u = wt(o, c, l);
|
|
1205
1236
|
return k(() => {
|
|
1206
1237
|
r?.(u);
|
|
1207
1238
|
}, [u]), {
|
|
1208
1239
|
width: u,
|
|
1209
1240
|
min: c,
|
|
1210
1241
|
max: l,
|
|
1211
|
-
set: D((e) => s(
|
|
1212
|
-
commit: D((e) =>
|
|
1242
|
+
set: D((e) => s(wt(e, c, l)), [c, l]),
|
|
1243
|
+
commit: D((e) => Et(wt(e, c, l)), [c, l]),
|
|
1213
1244
|
reset: D(() => {
|
|
1214
|
-
s(e),
|
|
1245
|
+
s(e), Et(null);
|
|
1215
1246
|
}, [e])
|
|
1216
1247
|
};
|
|
1217
1248
|
}
|
|
1218
1249
|
//#endregion
|
|
1219
1250
|
//#region src/presentation/AgenticoResizeHandle.tsx
|
|
1220
|
-
function
|
|
1251
|
+
function kt({ width: e, min: t, max: n, onResize: r, onCommit: i, onReset: a }) {
|
|
1221
1252
|
let o = $(), s = M(null), [c, l] = N(!1), u = (e) => Math.round(Math.min(Math.max(e, t), Math.max(t, n))), d = (e) => {
|
|
1222
1253
|
let t = s.current;
|
|
1223
1254
|
if (t && t.pointerId === e.pointerId) {
|
|
@@ -1275,7 +1306,7 @@ function Ot({ width: e, min: t, max: n, onResize: r, onCommit: i, onReset: a })
|
|
|
1275
1306
|
}
|
|
1276
1307
|
//#endregion
|
|
1277
1308
|
//#region src/presentation/AgenticoToggle.tsx
|
|
1278
|
-
function
|
|
1309
|
+
function At({ className: e = "" }) {
|
|
1279
1310
|
let { isOpen: n, toggleOpen: r, task: i } = tt(), a = $(), o = i?.agent.running ?? !1;
|
|
1280
1311
|
return /* @__PURE__ */ F(t, {
|
|
1281
1312
|
icon: "bot",
|
|
@@ -1288,21 +1319,21 @@ function kt({ className: e = "" }) {
|
|
|
1288
1319
|
}
|
|
1289
1320
|
//#endregion
|
|
1290
1321
|
//#region src/presentation/useAIModelCatalog.ts
|
|
1291
|
-
var
|
|
1292
|
-
function
|
|
1322
|
+
var jt = "llmnative-cms.selectedAIModel";
|
|
1323
|
+
function Mt() {
|
|
1293
1324
|
try {
|
|
1294
|
-
return localStorage.getItem(
|
|
1325
|
+
return localStorage.getItem(jt) ?? "";
|
|
1295
1326
|
} catch {
|
|
1296
1327
|
return "";
|
|
1297
1328
|
}
|
|
1298
1329
|
}
|
|
1299
|
-
function
|
|
1330
|
+
function Nt(e) {
|
|
1300
1331
|
try {
|
|
1301
|
-
e ? localStorage.setItem(
|
|
1332
|
+
e ? localStorage.setItem(jt, e) : localStorage.removeItem(jt);
|
|
1302
1333
|
} catch {}
|
|
1303
1334
|
}
|
|
1304
|
-
function
|
|
1305
|
-
let e = S()?.registry ?? {}, t = Object.keys(e).length > 0, [n, r] = N({}), [i, a] = N(!1), [o, s] = N(
|
|
1335
|
+
function Pt() {
|
|
1336
|
+
let e = S()?.registry ?? {}, t = Object.keys(e).length > 0, [n, r] = N({}), [i, a] = N(!1), [o, s] = N(Mt);
|
|
1306
1337
|
return k(() => {
|
|
1307
1338
|
if (!t) {
|
|
1308
1339
|
r({});
|
|
@@ -1313,7 +1344,7 @@ function Nt() {
|
|
|
1313
1344
|
if (n) return;
|
|
1314
1345
|
r(e.modelsByProvider);
|
|
1315
1346
|
let t = Object.values(e.modelsByProvider).flat();
|
|
1316
|
-
s((e) => t.some((t) => t.id === e) ? e : (
|
|
1347
|
+
s((e) => t.some((t) => t.id === e) ? e : (Nt(""), ""));
|
|
1317
1348
|
}).catch((e) => {
|
|
1318
1349
|
console.error("useAIModelCatalog: getAIModelCatalog failed", e), n || r({});
|
|
1319
1350
|
}).finally(() => {
|
|
@@ -1327,17 +1358,17 @@ function Nt() {
|
|
|
1327
1358
|
modelsLoading: i,
|
|
1328
1359
|
selectedModel: o,
|
|
1329
1360
|
setSelectedModel: (e) => {
|
|
1330
|
-
|
|
1361
|
+
Nt(e), s(e);
|
|
1331
1362
|
}
|
|
1332
1363
|
};
|
|
1333
1364
|
}
|
|
1334
1365
|
//#endregion
|
|
1335
1366
|
//#region src/domain/approval.ts
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1367
|
+
var Ft = "approval";
|
|
1368
|
+
function It(e, t) {
|
|
1338
1369
|
return typeof e.needsApproval == "function" ? e.needsApproval(t) : e.needsApproval === !0;
|
|
1339
1370
|
}
|
|
1340
|
-
function
|
|
1371
|
+
function Lt(e, t, n) {
|
|
1341
1372
|
let r = e[0]?.values ?? [], i = r.filter((e) => e !== t && e !== n).join(" ").trim();
|
|
1342
1373
|
return {
|
|
1343
1374
|
approved: r.includes(t) && !r.includes(n),
|
|
@@ -1346,12 +1377,12 @@ function It(e, t, n) {
|
|
|
1346
1377
|
}
|
|
1347
1378
|
//#endregion
|
|
1348
1379
|
//#region src/presentation/useAgent.ts
|
|
1349
|
-
var
|
|
1350
|
-
function
|
|
1351
|
-
return e.filter((e) => !g.isTextAttachment(e.mimeType) || e.base64.length <=
|
|
1380
|
+
var Rt = 20, zt = 26e4;
|
|
1381
|
+
function Bt(e) {
|
|
1382
|
+
return e.filter((e) => !g.isTextAttachment(e.mimeType) || e.base64.length <= zt);
|
|
1352
1383
|
}
|
|
1353
|
-
function
|
|
1354
|
-
let { defaultEnabled: n = !1 } = t, [r, i] = N(n), { hasProviders: a, modelsByProvider: o, modelsLoading: s, selectedModel: c, setSelectedModel: l } =
|
|
1384
|
+
function Vt(e, t = {}) {
|
|
1385
|
+
let { defaultEnabled: n = !1 } = t, [r, i] = N(n), { hasProviders: a, modelsByProvider: o, modelsLoading: s, selectedModel: c, setSelectedModel: l } = Pt(), [u, d] = N(!1), [f, p] = N(null), [m, h] = N(!1), [_, v] = N([]), y = M([]), x = (e) => {
|
|
1355
1386
|
v((t) => {
|
|
1356
1387
|
let n = typeof e == "function" ? e(t) : e;
|
|
1357
1388
|
return y.current = n, n;
|
|
@@ -1548,7 +1579,7 @@ function Bt(e, t = {}) {
|
|
|
1548
1579
|
let f = s ? b(s) : H, m = f ? A[f.provider] : null;
|
|
1549
1580
|
if (!m || !f) return p(T.current.noProviderAvailable), null;
|
|
1550
1581
|
n?.length && (d.attachmentsRef.current = [...d.attachmentsRef.current ?? [], ...n]);
|
|
1551
|
-
let h = (n ?? []).filter((e) => g.isTextAttachment(e.mimeType)).map((e) => e.base64.length <=
|
|
1582
|
+
let h = (n ?? []).filter((e) => g.isTextAttachment(e.mimeType)).map((e) => e.base64.length <= zt ? `\n\n[File allegato: ${e.name}]\n${g.decodeBase64Text(e.base64)}` : `\n\n[File allegato: ${e.name} — troppo grande per essere incollato qui. Usa uno dei tool di lettura file disponibili (es. list_csv_columns/extract_csv_column) per leggerne il contenuto prima di chiedere altro all'utente.]`).join(""), _ = Bt(n ?? []), v = d.tools.map((e) => ({
|
|
1552
1583
|
name: e.name,
|
|
1553
1584
|
description: e.description,
|
|
1554
1585
|
inputSchema: ne(e.inputSchema)
|
|
@@ -1561,7 +1592,7 @@ function Bt(e, t = {}) {
|
|
|
1561
1592
|
status: "running",
|
|
1562
1593
|
parts: [{
|
|
1563
1594
|
type: "questions",
|
|
1564
|
-
id:
|
|
1595
|
+
id: Ft,
|
|
1565
1596
|
questions: [{
|
|
1566
1597
|
header: i.approvalHeader,
|
|
1567
1598
|
question: i.approveQuestion.replace("{action}", o),
|
|
@@ -1570,7 +1601,7 @@ function Bt(e, t = {}) {
|
|
|
1570
1601
|
}]
|
|
1571
1602
|
}]
|
|
1572
1603
|
}]);
|
|
1573
|
-
let s = `${a}:${
|
|
1604
|
+
let s = `${a}:${Ft}`;
|
|
1574
1605
|
return new Promise((e, t) => {
|
|
1575
1606
|
let n = () => {
|
|
1576
1607
|
C.current.delete(s), D(a, "stopped"), t(new DOMException("The turn was stopped.", "AbortError"));
|
|
@@ -1581,7 +1612,7 @@ function Bt(e, t = {}) {
|
|
|
1581
1612
|
}
|
|
1582
1613
|
r.addEventListener("abort", n, { once: !0 }), C.current.set(s, {
|
|
1583
1614
|
resolve: (t) => {
|
|
1584
|
-
r.removeEventListener("abort", n), D(a, "done"), e(
|
|
1615
|
+
r.removeEventListener("abort", n), D(a, "done"), e(Lt(t, i.approve, i.reject));
|
|
1585
1616
|
},
|
|
1586
1617
|
reject: t
|
|
1587
1618
|
});
|
|
@@ -1596,7 +1627,7 @@ function Bt(e, t = {}) {
|
|
|
1596
1627
|
} : i));
|
|
1597
1628
|
try {
|
|
1598
1629
|
let n = d.history, r = t;
|
|
1599
|
-
for (let t = 0; t <
|
|
1630
|
+
for (let t = 0; t < Rt; t++) {
|
|
1600
1631
|
let i = crypto.randomUUID();
|
|
1601
1632
|
x((e) => [...e, {
|
|
1602
1633
|
id: i,
|
|
@@ -1656,7 +1687,7 @@ function Bt(e, t = {}) {
|
|
|
1656
1687
|
let s = /* @__PURE__ */ new Map();
|
|
1657
1688
|
for (let t of a.toolCalls) {
|
|
1658
1689
|
let n = S.get(t.name);
|
|
1659
|
-
if (n &&
|
|
1690
|
+
if (n && It(n, t.input)) try {
|
|
1660
1691
|
s.set(t.id, await y(t.id, n, t.input, w.signal));
|
|
1661
1692
|
} catch {
|
|
1662
1693
|
return e.fallback(d.params, d.context);
|
|
@@ -1904,23 +1935,23 @@ function Bt(e, t = {}) {
|
|
|
1904
1935
|
}
|
|
1905
1936
|
//#endregion
|
|
1906
1937
|
//#region src/domain/orchestrator/prompt.ts
|
|
1907
|
-
function
|
|
1938
|
+
function Ht() {
|
|
1908
1939
|
let e = X();
|
|
1909
1940
|
return [e.responseRulesHeading, ...e.responseRules.map((e) => `- ${e}`)].join("\n");
|
|
1910
1941
|
}
|
|
1911
|
-
function
|
|
1942
|
+
function Ut(e, t, n) {
|
|
1912
1943
|
let r = X(), i = n ? `\n${r.pageContextHeading}\n${r.pageContextIntro}\n${n}\n` : "";
|
|
1913
1944
|
return `${r.orchestratorIntro}
|
|
1914
1945
|
|
|
1915
1946
|
${r.toolsHeading}
|
|
1916
1947
|
${t}
|
|
1917
1948
|
${i}
|
|
1918
|
-
${
|
|
1949
|
+
${Ht()}
|
|
1919
1950
|
|
|
1920
1951
|
${r.userRequestHeading}
|
|
1921
1952
|
${e}`;
|
|
1922
1953
|
}
|
|
1923
|
-
function
|
|
1954
|
+
function Wt(e, t) {
|
|
1924
1955
|
return t ? {
|
|
1925
1956
|
kind: "handoff",
|
|
1926
1957
|
...t
|
|
@@ -1931,27 +1962,27 @@ function Ut(e, t) {
|
|
|
1931
1962
|
}
|
|
1932
1963
|
//#endregion
|
|
1933
1964
|
//#region src/domain/orchestrator/agenticoOrchestratorAgent.ts
|
|
1934
|
-
function
|
|
1965
|
+
function Gt(e) {
|
|
1935
1966
|
return U().filter((t) => !t.onlyWhenAnchored || e === t.id);
|
|
1936
1967
|
}
|
|
1937
|
-
function
|
|
1968
|
+
function Kt(e) {
|
|
1938
1969
|
return {
|
|
1939
1970
|
buildContext(e) {
|
|
1940
1971
|
return {
|
|
1941
|
-
cliCatalog: de(
|
|
1972
|
+
cliCatalog: de(Gt(e.scopedSubagentId)),
|
|
1942
1973
|
handoff: { current: null },
|
|
1943
1974
|
collected: {}
|
|
1944
1975
|
};
|
|
1945
1976
|
},
|
|
1946
1977
|
buildPrompt({ userGoal: e, pageContext: t }, { cliCatalog: n }) {
|
|
1947
|
-
return
|
|
1978
|
+
return Ut(e, n, t);
|
|
1948
1979
|
},
|
|
1949
1980
|
buildFollowUpPrompt(e, t, { cliCatalog: n }) {
|
|
1950
|
-
return `${e}\n\n${
|
|
1981
|
+
return `${e}\n\n${Ht()}\n\n${X().toolsHeading}\n${n}`;
|
|
1951
1982
|
},
|
|
1952
1983
|
parseResponse(e, t, n) {
|
|
1953
1984
|
let r = n.handoff.current;
|
|
1954
|
-
return n.handoff.current = null,
|
|
1985
|
+
return n.handoff.current = null, Wt(e, r);
|
|
1955
1986
|
},
|
|
1956
1987
|
fallback() {
|
|
1957
1988
|
return {
|
|
@@ -1967,7 +1998,7 @@ function Gt(e) {
|
|
|
1967
1998
|
attachmentsRef: r,
|
|
1968
1999
|
collected: n.collected,
|
|
1969
2000
|
proxyFetch: x
|
|
1970
|
-
}), a = t.scopedSubagentId ? W(t.scopedSubagentId) : null, o = a ? i.filter((e) => (a.crossAgentToolIds ?? []).includes(e.name)) : i, s =
|
|
2001
|
+
}), a = t.scopedSubagentId ? W(t.scopedSubagentId) : null, o = a ? i.filter((e) => (a.crossAgentToolIds ?? []).includes(e.name)) : i, s = Gt(t.scopedSubagentId).flatMap((t) => t.commands.map((r) => ({
|
|
1971
2002
|
name: `${t.id}_${r.name}`,
|
|
1972
2003
|
description: `${t.label}: ${r.summary}`,
|
|
1973
2004
|
inputSchema: r.inputSchema,
|
|
@@ -1991,12 +2022,12 @@ function Gt(e) {
|
|
|
1991
2022
|
}
|
|
1992
2023
|
//#endregion
|
|
1993
2024
|
//#region src/presentation/deriveHistoryTitle.ts
|
|
1994
|
-
function
|
|
2025
|
+
function qt(e, t) {
|
|
1995
2026
|
return e.deriveHistoryTitle?.(t) ?? e.label;
|
|
1996
2027
|
}
|
|
1997
2028
|
//#endregion
|
|
1998
2029
|
//#region src/presentation/ResultDestinationPicker.tsx
|
|
1999
|
-
function
|
|
2030
|
+
function Jt({ manifest: e, result: t, meta: n, taskId: r, initiallyApplied: i, onApplied: a, extraDestinations: o }) {
|
|
2000
2031
|
let s = $(), c = tt(), l = c.scope, u = T(), [d, f] = N(null), [p, m] = N(new Set(i ?? [])), [h, g] = N(null), _ = Se(), v = /* @__PURE__ */ new Map();
|
|
2001
2032
|
e.destinationIds.forEach((e) => {
|
|
2002
2033
|
let t = _[e];
|
|
@@ -2014,7 +2045,7 @@ function qt({ manifest: e, result: t, meta: n, taskId: r, initiallyApplied: i, o
|
|
|
2014
2045
|
storageProvider: l?.storageProvider ?? null,
|
|
2015
2046
|
proxyFetch: u
|
|
2016
2047
|
}, n);
|
|
2017
|
-
m((e) => new Set(e).add(i)), a?.(i), d?.id && c.commitEntityChat(e.id, d.id, r, l?.id, n,
|
|
2048
|
+
m((e) => new Set(e).add(i)), a?.(i), d?.id && c.commitEntityChat(e.id, d.id, r, l?.id, n, qt(e, n));
|
|
2018
2049
|
} catch (e) {
|
|
2019
2050
|
g(e instanceof Error ? e.message : String(e));
|
|
2020
2051
|
} finally {
|
|
@@ -2047,16 +2078,16 @@ function qt({ manifest: e, result: t, meta: n, taskId: r, initiallyApplied: i, o
|
|
|
2047
2078
|
}
|
|
2048
2079
|
//#endregion
|
|
2049
2080
|
//#region src/presentation/reports/subagentReportRegistry.tsx
|
|
2050
|
-
var
|
|
2051
|
-
function Yt(e) {
|
|
2052
|
-
Object.assign(Jt, e);
|
|
2053
|
-
}
|
|
2081
|
+
var Yt = {};
|
|
2054
2082
|
function Xt(e) {
|
|
2055
|
-
|
|
2083
|
+
Object.assign(Yt, e);
|
|
2084
|
+
}
|
|
2085
|
+
function Zt(e) {
|
|
2086
|
+
return Yt[e];
|
|
2056
2087
|
}
|
|
2057
2088
|
//#endregion
|
|
2058
2089
|
//#region src/presentation/reports/GenericResultPreview.tsx
|
|
2059
|
-
function
|
|
2090
|
+
function Qt({ result: e }) {
|
|
2060
2091
|
let [t, n] = N(!1);
|
|
2061
2092
|
return /* @__PURE__ */ I("div", {
|
|
2062
2093
|
className: `relative cursor-pointer rounded-md border border-border/60 ${t ? "max-h-80 overflow-y-auto" : "max-h-28 overflow-hidden"}`,
|
|
@@ -2073,7 +2104,7 @@ function Zt({ result: e }) {
|
|
|
2073
2104
|
}
|
|
2074
2105
|
//#endregion
|
|
2075
2106
|
//#region src/presentation/liveAnchorDestination.ts
|
|
2076
|
-
function
|
|
2107
|
+
function $t(e, t, n) {
|
|
2077
2108
|
return e.length === 0 ? null : {
|
|
2078
2109
|
id: "live-component",
|
|
2079
2110
|
label: "Applica al componente aperto",
|
|
@@ -2084,38 +2115,38 @@ function Qt(e, t, n) {
|
|
|
2084
2115
|
}
|
|
2085
2116
|
//#endregion
|
|
2086
2117
|
//#region src/presentation/subagentControls.ts
|
|
2087
|
-
var
|
|
2088
|
-
function en(e) {
|
|
2089
|
-
Object.assign($t, e);
|
|
2090
|
-
}
|
|
2118
|
+
var en = {};
|
|
2091
2119
|
function tn(e) {
|
|
2092
|
-
|
|
2120
|
+
Object.assign(en, e);
|
|
2121
|
+
}
|
|
2122
|
+
function nn(e) {
|
|
2123
|
+
return en[e];
|
|
2093
2124
|
}
|
|
2094
2125
|
//#endregion
|
|
2095
2126
|
//#region src/presentation/chatTitles.ts
|
|
2096
|
-
function
|
|
2127
|
+
function rn(e, t = 6e3) {
|
|
2097
2128
|
let n = e.filter((e) => (e.kind === "user" || e.kind === "thinking") && e.detail?.trim() && !Ge(e)).map((e) => `${e.kind === "user" ? "Person" : "Agent"}: ${e.detail.trim()}`).join("\n\n");
|
|
2098
2129
|
return n.length > t ? `${n.slice(0, t * .7)}\n\n[…]\n\n${n.slice(-t * .3)}` : n;
|
|
2099
2130
|
}
|
|
2100
|
-
function
|
|
2131
|
+
function an(e) {
|
|
2101
2132
|
return (e.trim().split("\n").map((e) => e.trim()).find(Boolean) ?? "").replace(/^(title|titolo)\s*:\s*/i, "").replace(/^#+\s*/, "").replace(/^["'«“]+|["'»”]+$/g, "").replace(/[.。]+$/, "").trim().slice(0, 80);
|
|
2102
2133
|
}
|
|
2103
|
-
function
|
|
2134
|
+
function on(e, t) {
|
|
2104
2135
|
try {
|
|
2105
2136
|
return e.definition.executor?.catalogProviders?.(e.toParams(t));
|
|
2106
2137
|
} catch {
|
|
2107
2138
|
return;
|
|
2108
2139
|
}
|
|
2109
2140
|
}
|
|
2110
|
-
function
|
|
2111
|
-
let a =
|
|
2141
|
+
function sn(e, t, n, r, i) {
|
|
2142
|
+
let a = on(e, t), o = (e) => {
|
|
2112
2143
|
let t = e ? b(e) : null;
|
|
2113
2144
|
return !(!t || !i[t.provider] || a && !a.includes(t.provider));
|
|
2114
2145
|
};
|
|
2115
2146
|
return o(n) ? n : Object.values(r).flat().map((e) => e.id).find(o);
|
|
2116
2147
|
}
|
|
2117
|
-
function
|
|
2118
|
-
let t = S()?.registry ?? {}, { modelsByProvider: n, selectedModel: r } =
|
|
2148
|
+
function cn(e) {
|
|
2149
|
+
let t = S()?.registry ?? {}, { modelsByProvider: n, selectedModel: r } = Pt(), i = M({
|
|
2119
2150
|
registry: t,
|
|
2120
2151
|
modelsByProvider: n,
|
|
2121
2152
|
selectedModel: r
|
|
@@ -2129,15 +2160,15 @@ function sn(e) {
|
|
|
2129
2160
|
if (!e) return !1;
|
|
2130
2161
|
let o = Re(e, t, n), s = W(t), c = `${e}:${t}:${n}`;
|
|
2131
2162
|
if (!o || !s?.autoTitle || o.name || !We(o) || a.current.has(c)) return !1;
|
|
2132
|
-
let { registry: l, modelsByProvider: u, selectedModel: d } = i.current, f =
|
|
2163
|
+
let { registry: l, modelsByProvider: u, selectedModel: d } = i.current, f = sn(s, o.params, r ?? d, u, l), p = f ? b(f) : null;
|
|
2133
2164
|
if (!p) return !1;
|
|
2134
2165
|
a.current.add(c);
|
|
2135
2166
|
try {
|
|
2136
2167
|
let r = await l[p.provider].complete({
|
|
2137
|
-
prompt: X().chatTitle.replace("{chat}",
|
|
2168
|
+
prompt: X().chatTitle.replace("{chat}", rn(o.activity)),
|
|
2138
2169
|
model: p.model,
|
|
2139
2170
|
history: []
|
|
2140
|
-
}), i = r && r.type === "text" ?
|
|
2171
|
+
}), i = r && r.type === "text" ? an(r.text) : "";
|
|
2141
2172
|
return i ? Ke(e, t, n, i, "model") : !1;
|
|
2142
2173
|
} catch {
|
|
2143
2174
|
return !1;
|
|
@@ -2146,7 +2177,7 @@ function sn(e) {
|
|
|
2146
2177
|
}
|
|
2147
2178
|
}, [e]), s = Object.keys(n).length > 0;
|
|
2148
2179
|
return k(() => {
|
|
2149
|
-
e && s && !
|
|
2180
|
+
e && s && !ln.has(e) && (ln.add(e), (async () => {
|
|
2150
2181
|
for (let t of Ye(e)) {
|
|
2151
2182
|
let n = W(t.subagentId);
|
|
2152
2183
|
if (n?.autoTitle) {
|
|
@@ -2164,11 +2195,11 @@ function sn(e) {
|
|
|
2164
2195
|
o
|
|
2165
2196
|
]), o;
|
|
2166
2197
|
}
|
|
2167
|
-
var
|
|
2168
|
-
function
|
|
2169
|
-
let c =
|
|
2198
|
+
var ln = /* @__PURE__ */ new Set(), un = () => ({});
|
|
2199
|
+
function dn({ manifest: e, params: t, extraDestinations: n, precedingActivity: r, taskId: i, resumeSeed: a, model: o, openingMessage: s }) {
|
|
2200
|
+
let c = Vt(e.definition, { defaultEnabled: !0 }), l = tt(), u = l.scope, d = T(), f = M(i ?? `subagent-${e.id}-${crypto.randomUUID()}`).current, [p, m] = N(null), h = (t) => {
|
|
2170
2201
|
e.definition.conversational || m(t);
|
|
2171
|
-
}, [g, _] = N([]), [v, y] = N(null), b =
|
|
2202
|
+
}, [g, _] = N([]), [v, y] = N(null), b = Zt(e.id), x = b?.kind === "selection" ? b : null, [S, C] = N(null), w = M(!1), E = M(0), D = M(null);
|
|
2172
2203
|
p && p !== D.current && (D.current = p, E.current = (r?.length ?? 0) + c.activity.length);
|
|
2173
2204
|
let O = M(!1), A = c.remote || !c.hasProviders || c.selectedModel !== "";
|
|
2174
2205
|
k(() => {
|
|
@@ -2192,7 +2223,7 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2192
2223
|
...t,
|
|
2193
2224
|
pinnedEntityId: r
|
|
2194
2225
|
}).then((n) => {
|
|
2195
|
-
n?.id && l.commitEntityChat(e.id, n.id, f, u.id, t,
|
|
2226
|
+
n?.id && l.commitEntityChat(e.id, n.id, f, u.id, t, qt(e, t));
|
|
2196
2227
|
}).catch((e) => y(e instanceof Error ? e.message : String(e))));
|
|
2197
2228
|
});
|
|
2198
2229
|
}, [
|
|
@@ -2211,11 +2242,11 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2211
2242
|
p,
|
|
2212
2243
|
x,
|
|
2213
2244
|
S
|
|
2214
|
-
]), ee = j(() => l.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [l.componentAnchors, e.id]), B = j(() =>
|
|
2245
|
+
]), ee = j(() => l.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [l.componentAnchors, e.id]), B = j(() => $t(ee, t, f), [
|
|
2215
2246
|
ee,
|
|
2216
2247
|
t,
|
|
2217
2248
|
f
|
|
2218
|
-
]), te = j(() => B ? [B, ...n ?? []] : n, [B, n]), V = e.chatEntityId?.(t), H =
|
|
2249
|
+
]), te = j(() => B ? [B, ...n ?? []] : n, [B, n]), V = e.chatEntityId?.(t), H = cn(u?.id), U = M(!1), W = M(!1);
|
|
2219
2250
|
k(() => {
|
|
2220
2251
|
let n = !U.current && c.running, i = U.current && !c.running;
|
|
2221
2252
|
if (U.current = c.running, !n && !i || !V || !u) return;
|
|
@@ -2231,14 +2262,14 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2231
2262
|
subagentId: e.id,
|
|
2232
2263
|
entityId: V,
|
|
2233
2264
|
params: t,
|
|
2234
|
-
title:
|
|
2265
|
+
title: qt(e, t),
|
|
2235
2266
|
history: a.history,
|
|
2236
2267
|
activity: o
|
|
2237
2268
|
}), i && e.autoTitle && H(e.id, V, c.selectedModel));
|
|
2238
2269
|
}, [c.running]);
|
|
2239
2270
|
let G = () => {
|
|
2240
2271
|
O.current = !0, c.running && c.stop(), l.closeTask(f);
|
|
2241
|
-
}, K = M(
|
|
2272
|
+
}, K = M(nn(e.id) ?? un).current, q = K({
|
|
2242
2273
|
params: t,
|
|
2243
2274
|
taskId: f,
|
|
2244
2275
|
running: c.running,
|
|
@@ -2249,7 +2280,7 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2249
2280
|
return k(() => {
|
|
2250
2281
|
O.current || l.openTask({
|
|
2251
2282
|
id: f,
|
|
2252
|
-
title:
|
|
2283
|
+
title: qt(e, t),
|
|
2253
2284
|
icon: e.icon,
|
|
2254
2285
|
agent: c,
|
|
2255
2286
|
onApplied: (e) => h(e),
|
|
@@ -2268,12 +2299,12 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2268
2299
|
}) : b?.kind === "editable" ? /* @__PURE__ */ F(b.Report, {
|
|
2269
2300
|
result: p,
|
|
2270
2301
|
onResultChange: R
|
|
2271
|
-
}) : /* @__PURE__ */ F(
|
|
2302
|
+
}) : /* @__PURE__ */ F(Qt, { result: z }),
|
|
2272
2303
|
v && /* @__PURE__ */ I("p", {
|
|
2273
2304
|
className: "text-xs text-destructive",
|
|
2274
2305
|
children: ["Salvataggio automatico non riuscito: ", v]
|
|
2275
2306
|
}),
|
|
2276
|
-
/* @__PURE__ */ F(
|
|
2307
|
+
/* @__PURE__ */ F(Jt, {
|
|
2277
2308
|
manifest: e,
|
|
2278
2309
|
result: z,
|
|
2279
2310
|
meta: t,
|
|
@@ -2314,8 +2345,8 @@ function un({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
|
|
|
2314
2345
|
}
|
|
2315
2346
|
//#endregion
|
|
2316
2347
|
//#region src/presentation/OrchestratorRunner.tsx
|
|
2317
|
-
function
|
|
2318
|
-
let t = $(), n =
|
|
2348
|
+
function fn({ userGoal: e }) {
|
|
2349
|
+
let t = $(), n = Vt(j(() => Kt({
|
|
2319
2350
|
unavailable: t.orchestratorUnavailable,
|
|
2320
2351
|
continueWithoutAi: t.orchestratorContinueWithoutAi,
|
|
2321
2352
|
preparing: t.orchestratorPreparing,
|
|
@@ -2363,7 +2394,7 @@ function dn({ userGoal: e }) {
|
|
|
2363
2394
|
let h = j(() => [...f.current?.activity ?? [], ...n.activity], [n.activity]);
|
|
2364
2395
|
if (!i) return null;
|
|
2365
2396
|
let g = W(i.subagentId);
|
|
2366
|
-
return g ? /* @__PURE__ */ F(
|
|
2397
|
+
return g ? /* @__PURE__ */ F(dn, {
|
|
2367
2398
|
manifest: g,
|
|
2368
2399
|
params: i.params,
|
|
2369
2400
|
extraDestinations: c.current,
|
|
@@ -2374,8 +2405,8 @@ function dn({ userGoal: e }) {
|
|
|
2374
2405
|
}
|
|
2375
2406
|
//#endregion
|
|
2376
2407
|
//#region src/presentation/ManualEntryRunner.tsx
|
|
2377
|
-
function
|
|
2378
|
-
let r =
|
|
2408
|
+
function pn({ manifest: e, extraDestinations: n }) {
|
|
2409
|
+
let r = Vt(e.definition, { defaultEnabled: !1 }), i = $(), a = tt(), o = M(`manual-${e.id}-${crypto.randomUUID()}`).current, [s, c] = N(null), [l, u] = N([]), d = Zt(e.id), f = d?.kind === "selection" ? d : null, [p, m] = N(null), [h, g] = N(null), _ = M(!1), v = (t) => {
|
|
2379
2410
|
if (!e.manualEntry) return;
|
|
2380
2411
|
let n;
|
|
2381
2412
|
try {
|
|
@@ -2402,7 +2433,7 @@ function fn({ manifest: e, extraDestinations: n }) {
|
|
|
2402
2433
|
p
|
|
2403
2434
|
]), S = (e) => {
|
|
2404
2435
|
u((t) => t.includes(e) ? t : [...t, e]);
|
|
2405
|
-
}, C = j(() => a.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [a.componentAnchors, e.id]), w = j(() => h ?
|
|
2436
|
+
}, C = j(() => a.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [a.componentAnchors, e.id]), w = j(() => h ? $t(C, h, o) : null, [
|
|
2406
2437
|
C,
|
|
2407
2438
|
h,
|
|
2408
2439
|
o
|
|
@@ -2431,8 +2462,8 @@ function fn({ manifest: e, extraDestinations: n }) {
|
|
|
2431
2462
|
}) : d?.kind === "editable" ? /* @__PURE__ */ F(d.Report, {
|
|
2432
2463
|
result: s,
|
|
2433
2464
|
onResultChange: b
|
|
2434
|
-
}) : /* @__PURE__ */ F(
|
|
2435
|
-
/* @__PURE__ */ F(
|
|
2465
|
+
}) : /* @__PURE__ */ F(Qt, { result: x }),
|
|
2466
|
+
/* @__PURE__ */ F(Jt, {
|
|
2436
2467
|
manifest: e,
|
|
2437
2468
|
result: x,
|
|
2438
2469
|
meta: h ?? {},
|
|
@@ -2469,7 +2500,7 @@ function fn({ manifest: e, extraDestinations: n }) {
|
|
|
2469
2500
|
}
|
|
2470
2501
|
//#endregion
|
|
2471
2502
|
//#region src/presentation/Agentico.tsx
|
|
2472
|
-
function
|
|
2503
|
+
function mn(e, t) {
|
|
2473
2504
|
return Object.values(e).flat().map((e) => {
|
|
2474
2505
|
let n = t?.(e.provider, e.providerLabel ?? e.provider);
|
|
2475
2506
|
return {
|
|
@@ -2481,7 +2512,7 @@ function pn(e, t) {
|
|
|
2481
2512
|
};
|
|
2482
2513
|
});
|
|
2483
2514
|
}
|
|
2484
|
-
function
|
|
2515
|
+
function hn({ task: e }) {
|
|
2485
2516
|
let t = $(), [n, r] = N(""), { agent: i, onApplied: a, manualEntry: o } = e, c = i.running, l = (e) => {
|
|
2486
2517
|
if (r(""), o) {
|
|
2487
2518
|
o.onSubmit(e.text);
|
|
@@ -2493,7 +2524,7 @@ function mn({ task: e }) {
|
|
|
2493
2524
|
}).then((e) => {
|
|
2494
2525
|
e && a(e);
|
|
2495
2526
|
});
|
|
2496
|
-
}, u = !!o || i.remote && i.remoteModels.length === 0, d = i.alongside && i.remoteModels.some((e) => e.value === i.selectedModel), f = !u && !i.remote && !d && i.hasProviders && !i.selectedModel, p = u ? [] : i.remote ? i.remoteModels : i.alongside ? [...i.remoteModels, ...
|
|
2527
|
+
}, u = !!o || i.remote && i.remoteModels.length === 0, d = i.alongside && i.remoteModels.some((e) => e.value === i.selectedModel), f = !u && !i.remote && !d && i.hasProviders && !i.selectedModel, p = u ? [] : i.remote ? i.remoteModels : i.alongside ? [...i.remoteModels, ...mn(i.modelsByProvider, i.catalogGroup)] : mn(i.modelsByProvider);
|
|
2497
2528
|
return /* @__PURE__ */ F(s, {
|
|
2498
2529
|
value: n,
|
|
2499
2530
|
onChange: r,
|
|
@@ -2513,8 +2544,8 @@ function mn({ task: e }) {
|
|
|
2513
2544
|
maxHeight: 220
|
|
2514
2545
|
});
|
|
2515
2546
|
}
|
|
2516
|
-
function
|
|
2517
|
-
let { startOrchestrator: e } = tt(), t = $(), [n, r] = N(""), { hasProviders: i, modelsByProvider: a, selectedModel: o, setSelectedModel: c } =
|
|
2547
|
+
function gn() {
|
|
2548
|
+
let { startOrchestrator: e } = tt(), t = $(), [n, r] = N(""), { hasProviders: i, modelsByProvider: a, selectedModel: o, setSelectedModel: c } = Pt(), l = (t) => {
|
|
2518
2549
|
t.text.trim() && (e(t.text.trim(), {
|
|
2519
2550
|
attachments: t.files.length > 0 ? t.files : void 0,
|
|
2520
2551
|
model: t.model || void 0
|
|
@@ -2527,7 +2558,7 @@ function hn() {
|
|
|
2527
2558
|
disabled: !n.trim() || u,
|
|
2528
2559
|
onSubmit: l,
|
|
2529
2560
|
attachments: !0,
|
|
2530
|
-
models:
|
|
2561
|
+
models: mn(a),
|
|
2531
2562
|
selectedModel: o,
|
|
2532
2563
|
onModelChange: c,
|
|
2533
2564
|
modelPlaceholder: t.selectModelPlaceholder,
|
|
@@ -2535,7 +2566,7 @@ function hn() {
|
|
|
2535
2566
|
maxHeight: 220
|
|
2536
2567
|
});
|
|
2537
2568
|
}
|
|
2538
|
-
function
|
|
2569
|
+
function _n({ chat: e, onClose: t }) {
|
|
2539
2570
|
let n = $(), r = C();
|
|
2540
2571
|
return /* @__PURE__ */ F(h, {
|
|
2541
2572
|
title: n.renameChat,
|
|
@@ -2558,7 +2589,7 @@ function gn({ chat: e, onClose: t }) {
|
|
|
2558
2589
|
})
|
|
2559
2590
|
});
|
|
2560
2591
|
}
|
|
2561
|
-
function
|
|
2592
|
+
function vn(e, t, n = Date.now()) {
|
|
2562
2593
|
let r = Math.round((e - n) / 1e3), i = new Intl.RelativeTimeFormat(t, {
|
|
2563
2594
|
numeric: "auto",
|
|
2564
2595
|
style: "short"
|
|
@@ -2570,7 +2601,7 @@ function _n(e, t, n = Date.now()) {
|
|
|
2570
2601
|
]) if (Math.abs(r) >= t) return i.format(Math.round(r / t), e);
|
|
2571
2602
|
return i.format(0, "minute");
|
|
2572
2603
|
}
|
|
2573
|
-
function
|
|
2604
|
+
function yn({ card: e }) {
|
|
2574
2605
|
let t = $();
|
|
2575
2606
|
return e.humanSummaryOnly ? /* @__PURE__ */ I("div", {
|
|
2576
2607
|
className: "space-y-2 rounded-lg border border-border/60 p-3",
|
|
@@ -2626,7 +2657,7 @@ function vn({ card: e }) {
|
|
|
2626
2657
|
]
|
|
2627
2658
|
});
|
|
2628
2659
|
}
|
|
2629
|
-
function
|
|
2660
|
+
function bn({ messages: e }) {
|
|
2630
2661
|
return /* @__PURE__ */ F("div", {
|
|
2631
2662
|
className: "space-y-2 rounded-lg border border-border/60 p-3",
|
|
2632
2663
|
children: e.map((e, t) => /* @__PURE__ */ F("p", {
|
|
@@ -2635,7 +2666,7 @@ function yn({ messages: e }) {
|
|
|
2635
2666
|
}, t))
|
|
2636
2667
|
});
|
|
2637
2668
|
}
|
|
2638
|
-
function
|
|
2669
|
+
function xn({ scopeId: e, currentTaskId: n, open: r, onOpenChange: i, onSelect: a, onNewChat: o, onArchivedCurrent: s }) {
|
|
2639
2670
|
let c = $(), { locale: d } = w(), [p, m] = N(""), [h, g] = N(0);
|
|
2640
2671
|
k(() => Ie(() => g((e) => e + 1)), []);
|
|
2641
2672
|
let _ = j(() => r ? Ye(e) : [], [
|
|
@@ -2724,20 +2755,20 @@ function bn({ scopeId: e, currentTaskId: n, open: r, onOpenChange: i, onSelect:
|
|
|
2724
2755
|
}), /* @__PURE__ */ F("span", {
|
|
2725
2756
|
className: "shrink-0 text-xs text-muted-foreground",
|
|
2726
2757
|
title: `${c.chatStarted.replace("{at}", new Date(qe(e)).toLocaleString(d))} · ${c.chatLastMessage.replace("{at}", new Date(e.savedAt).toLocaleString(d))}`,
|
|
2727
|
-
children:
|
|
2758
|
+
children: vn(qe(e), d)
|
|
2728
2759
|
})]
|
|
2729
2760
|
})
|
|
2730
2761
|
}, `${e.subagentId}:${e.entityId}`);
|
|
2731
2762
|
})
|
|
2732
|
-
}), v && /* @__PURE__ */ F(
|
|
2763
|
+
}), v && /* @__PURE__ */ F(_n, {
|
|
2733
2764
|
chat: v,
|
|
2734
2765
|
onClose: () => y(null)
|
|
2735
2766
|
})] });
|
|
2736
2767
|
}
|
|
2737
|
-
function
|
|
2768
|
+
function Sn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}) {
|
|
2738
2769
|
let { task: a, isOpen: o, pendingGoal: s, orchestratorRunId: c, pageContext: l, pageContextCard: u, anchoredUserMessages: d, pendingResume: f, resumeRunId: p, dismissForeignTask: m, resumeEntityChat: h, pendingManualEntry: g, manualEntryRunId: _, startManualEntry: v, pendingExtraDestinations: y, pendingResumeWithAI: b, resumeWithAIRunId: x, pendingStart: S, startRunId: C, scope: w } = tt(), T = $(), E = M(null), [D, O] = N(!1);
|
|
2739
|
-
|
|
2740
|
-
let A =
|
|
2770
|
+
cn(w?.id);
|
|
2771
|
+
let A = Ot({
|
|
2741
2772
|
defaultWidth: e,
|
|
2742
2773
|
minWidth: n,
|
|
2743
2774
|
maxWidth: r,
|
|
@@ -2750,7 +2781,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2750
2781
|
e && a.onApplied(e);
|
|
2751
2782
|
}),
|
|
2752
2783
|
onCardAction: (e, t, n) => a.agent.cardAction(e, t, n)
|
|
2753
|
-
} : void 0, U = H ?
|
|
2784
|
+
} : void 0, U = H ? mt(L, H.canAnswer) : null, G = a?.id === "agentico-orchestrator" && a.scopedSubagentId ? W(a.scopedSubagentId) : void 0, K = G?.manualEntry ? G : null, q = M(!0);
|
|
2754
2785
|
k(() => {
|
|
2755
2786
|
let e = E.current;
|
|
2756
2787
|
if (!e) return;
|
|
@@ -2780,7 +2811,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2780
2811
|
});
|
|
2781
2812
|
return n.observe(t), () => n.disconnect();
|
|
2782
2813
|
}, [a?.id, o]);
|
|
2783
|
-
let J = s ? /* @__PURE__ */ F(
|
|
2814
|
+
let J = s ? /* @__PURE__ */ F(fn, { userGoal: s }, c) : null, ie = f ? W(f.subagentId) : void 0, ae = f && ie ? /* @__PURE__ */ F(dn, {
|
|
2784
2815
|
manifest: ie,
|
|
2785
2816
|
params: f.snapshot.params,
|
|
2786
2817
|
taskId: Xe(f.subagentId, f.entityId),
|
|
@@ -2788,14 +2819,14 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2788
2819
|
history: f.snapshot.history,
|
|
2789
2820
|
activity: f.snapshot.activity
|
|
2790
2821
|
}
|
|
2791
|
-
}, p) : null, Y = g ? W(g.subagentId) : void 0, oe = g && Y ? /* @__PURE__ */ F(
|
|
2822
|
+
}, p) : null, Y = g ? W(g.subagentId) : void 0, oe = g && Y ? /* @__PURE__ */ F(pn, {
|
|
2792
2823
|
manifest: Y,
|
|
2793
2824
|
extraDestinations: g.extraDestinations
|
|
2794
|
-
}, _) : null, X = b ? W(b.subagentId) : void 0, Z = b && X ? /* @__PURE__ */ F(
|
|
2825
|
+
}, _) : null, X = b ? W(b.subagentId) : void 0, Z = b && X ? /* @__PURE__ */ F(dn, {
|
|
2795
2826
|
manifest: X,
|
|
2796
2827
|
params: b.params,
|
|
2797
2828
|
extraDestinations: b.extraDestinations
|
|
2798
|
-
}, x) : null, se = S ? W(S.subagentId) : void 0, ce = S && se ? /* @__PURE__ */ F(
|
|
2829
|
+
}, x) : null, se = S ? W(S.subagentId) : void 0, ce = S && se ? /* @__PURE__ */ F(dn, {
|
|
2799
2830
|
manifest: se,
|
|
2800
2831
|
params: S.params,
|
|
2801
2832
|
taskId: S.taskId,
|
|
@@ -2811,7 +2842,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2811
2842
|
style: { width: A.width },
|
|
2812
2843
|
className: "relative flex h-full shrink-0 flex-col border-l border-border bg-background",
|
|
2813
2844
|
children: [
|
|
2814
|
-
/* @__PURE__ */ F(
|
|
2845
|
+
/* @__PURE__ */ F(kt, {
|
|
2815
2846
|
width: A.width,
|
|
2816
2847
|
min: A.min,
|
|
2817
2848
|
max: A.max,
|
|
@@ -2826,7 +2857,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2826
2857
|
className: "min-w-0 flex-1 truncate text-lg font-semibold leading-tight",
|
|
2827
2858
|
children: a ? a.title : "Agentico"
|
|
2828
2859
|
}),
|
|
2829
|
-
w && /* @__PURE__ */ F(
|
|
2860
|
+
w && /* @__PURE__ */ F(xn, {
|
|
2830
2861
|
scopeId: w.id,
|
|
2831
2862
|
currentTaskId: a?.id ?? null,
|
|
2832
2863
|
open: D,
|
|
@@ -2835,7 +2866,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2835
2866
|
onSelect: (e, t, n) => h(e, t, n),
|
|
2836
2867
|
onArchivedCurrent: m
|
|
2837
2868
|
}),
|
|
2838
|
-
/* @__PURE__ */ F(
|
|
2869
|
+
/* @__PURE__ */ F(At, {})
|
|
2839
2870
|
]
|
|
2840
2871
|
}),
|
|
2841
2872
|
/* @__PURE__ */ F("div", {
|
|
@@ -2849,7 +2880,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2849
2880
|
className: "text-xs text-muted-foreground",
|
|
2850
2881
|
children: a.manualEntry.prompt
|
|
2851
2882
|
}),
|
|
2852
|
-
/* @__PURE__ */ F(
|
|
2883
|
+
/* @__PURE__ */ F(vt, {
|
|
2853
2884
|
activity: ee,
|
|
2854
2885
|
questions: H,
|
|
2855
2886
|
docked: U,
|
|
@@ -2859,7 +2890,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2859
2890
|
className: "mt-3",
|
|
2860
2891
|
children: a.panelExtra
|
|
2861
2892
|
}),
|
|
2862
|
-
B.length > 0 && /* @__PURE__ */ F(
|
|
2893
|
+
B.length > 0 && /* @__PURE__ */ F(vt, {
|
|
2863
2894
|
activity: B,
|
|
2864
2895
|
questions: H,
|
|
2865
2896
|
docked: U,
|
|
@@ -2897,7 +2928,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2897
2928
|
})
|
|
2898
2929
|
]
|
|
2899
2930
|
})
|
|
2900
|
-
] }) : d.length > 0 ? /* @__PURE__ */ F(
|
|
2931
|
+
] }) : d.length > 0 ? /* @__PURE__ */ F(bn, { messages: d }) : u ? /* @__PURE__ */ F(yn, { card: u }) : /* @__PURE__ */ F("p", {
|
|
2901
2932
|
className: "text-xs text-muted-foreground",
|
|
2902
2933
|
children: l ?? T.orchestratorStarterHint
|
|
2903
2934
|
})
|
|
@@ -2913,7 +2944,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2913
2944
|
}),
|
|
2914
2945
|
/* @__PURE__ */ F("div", {
|
|
2915
2946
|
className: "min-h-0 overflow-y-auto px-4 py-3",
|
|
2916
|
-
children: /* @__PURE__ */ F(
|
|
2947
|
+
children: /* @__PURE__ */ F(ht, {
|
|
2917
2948
|
entry: U.entry,
|
|
2918
2949
|
part: U.part,
|
|
2919
2950
|
questions: H,
|
|
@@ -2935,7 +2966,7 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2935
2966
|
children: [a?.panelActions && /* @__PURE__ */ F("div", {
|
|
2936
2967
|
className: "mb-2",
|
|
2937
2968
|
children: a.panelActions
|
|
2938
|
-
}), a ? /* @__PURE__ */ F(
|
|
2969
|
+
}), a ? /* @__PURE__ */ F(hn, { task: a }, a.id) : /* @__PURE__ */ F(gn, {})]
|
|
2939
2970
|
})
|
|
2940
2971
|
]
|
|
2941
2972
|
})
|
|
@@ -2949,13 +2980,13 @@ function xn({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
|
|
|
2949
2980
|
}
|
|
2950
2981
|
//#endregion
|
|
2951
2982
|
//#region src/presentation/useAgenticoPageContext.ts
|
|
2952
|
-
function
|
|
2983
|
+
function Cn(e, t) {
|
|
2953
2984
|
let { setPageContext: n } = tt(), r = M(crypto.randomUUID()).current;
|
|
2954
2985
|
k(() => (n(r, e, t ?? null), () => n(r, null)), [e, t]);
|
|
2955
2986
|
}
|
|
2956
2987
|
//#endregion
|
|
2957
2988
|
//#region src/presentation/useSubagentComponentContext.ts
|
|
2958
|
-
function
|
|
2989
|
+
function wn(e, t, n, r, i = !0, a) {
|
|
2959
2990
|
let { registerComponentAnchor: o } = tt(), s = M(crypto.randomUUID()).current, c = M(n);
|
|
2960
2991
|
c.current = n, k(() => {
|
|
2961
2992
|
if (i) return o(s, {
|
|
@@ -2974,6 +3005,6 @@ function Cn(e, t, n, r, i = !0, a) {
|
|
|
2974
3005
|
]);
|
|
2975
3006
|
}
|
|
2976
3007
|
//#endregion
|
|
2977
|
-
export {
|
|
3008
|
+
export { xt as AGENTICO_MAX_WIDTH, bt as AGENTICO_MIN_WIDTH, yt as AGENTICO_WIDTH, St as AGENTICO_WIDTH_STORAGE_KEY, Sn as Agentico, et as AgenticoProvider, At as AgenticoToggle, R as DEFAULT_REASONING_PART_ID, L as DEFAULT_TEXT_PART_ID, ve as JSON_EXPORT_DESTINATION_ID, pe as MICRO_PROMPT_REGISTRY, Qe as ORCHESTRATOR_TASK_ID, fe as SUMMARY_MICRO_PROMPT, Te as agenticoDe, Ce as agenticoEn, we as agenticoIt, ie as agenticoPromptsEn, ae as agenticoPromptsIt, Ze as agenticoTranslations, me as applyMicroPrompts, We as chatHasPersonMessage, qe as chatStartedAt, Ue as chatTitle, oe as configureAgenticoPrompts, Oe as configureEntityChatStore, q as createCrossAgentTools, te as defineSubagent, Xe as entityChatTaskId, he as extractErrorMessage, ge as extractJsonBlock, W as findSubagentManifest, B as formatQuestionAnswers, X as getAgenticoPrompts, Se as getDestinationRegistry, Re as getEntityChat, nn as getSubagentControls, U as getSubagentRegistry, Zt as getSubagentReport, ke as hasEntityChatBackend, ye as jsonExportDestination, Ye as listEntityChats, ee as messagePartsText, Ie as onEntityChatsChange, K as registerCrossAgentTools, xe as registerDestinations, tn as registerSubagentControls, Xt as registerSubagentReports, H as registerSubagents, Je as removeEntityChat, Ke as renameEntityChat, de as renderRegistryCli, ue as renderSubagentCli, Z as resetAgenticoPrompts, ze as saveEntityChat, Me as syncEntityChats, ne as toJsonSchema, re as toMcpTool, z as upsertMessagePart, Vt as useAgent, tt as useAgentico, $ as useAgenticoI18n, Cn as useAgenticoPageContext, wn as useSubagentComponentContext };
|
|
2978
3009
|
|
|
2979
3010
|
//# sourceMappingURL=index.mjs.map
|