@llmnative/agentico 0.7.0 → 0.8.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/index.mjs CHANGED
@@ -22,29 +22,29 @@ function F(e, t) {
22
22
  }
23
23
  //#endregion
24
24
  //#region src/domain/defineSubagent.ts
25
- function I(e) {
25
+ function ee(e) {
26
26
  return e;
27
27
  }
28
28
  //#endregion
29
29
  //#region src/domain/subagentRegistry.ts
30
- var L = [];
31
- function R(e) {
32
- L = e;
30
+ var I = [];
31
+ function L(e) {
32
+ I = e;
33
33
  }
34
- function z() {
35
- return L.length === 0 && typeof console < "u" && console.warn("[agentico] getSubagentRegistry() letto a registro vuoto — registerSubagents() non è ancora stato chiamato?"), L;
34
+ function R() {
35
+ return I.length === 0 && typeof console < "u" && console.warn("[agentico] getSubagentRegistry() letto a registro vuoto — registerSubagents() non è ancora stato chiamato?"), I;
36
36
  }
37
- function B(e) {
38
- return L.find((t) => t.id === e);
37
+ function z(e) {
38
+ return I.find((t) => t.id === e);
39
39
  }
40
40
  //#endregion
41
41
  //#region src/domain/crossAgentTools.ts
42
- var V = [];
43
- function ee(...e) {
44
- V = e;
42
+ var B = [];
43
+ function V(...e) {
44
+ B = e;
45
45
  }
46
46
  function H(e) {
47
- return V.flatMap((t) => t(e));
47
+ return B.flatMap((t) => t(e));
48
48
  }
49
49
  //#endregion
50
50
  //#region src/domain/mcpTool.ts
@@ -148,16 +148,16 @@ function te(e) {
148
148
  function Y() {
149
149
  return J;
150
150
  }
151
- function ne() {
151
+ function X() {
152
152
  J = K;
153
153
  }
154
154
  //#endregion
155
155
  //#region src/domain/cli/renderManifestCli.ts
156
- function re(e, t) {
156
+ function ne(e, t) {
157
157
  return `${e} ${t.map((e) => e.required ? `--${e.key} <${e.type}>` : `[--${e.key} <${e.type}>]`).join(" ")}`.trim();
158
158
  }
159
- function ie(e, t) {
160
- let n = G(t), r = re(t.name, n), i = n.map((e) => ` --${e.key} <${e.type}> (${e.required ? "required" : "optional"})${e.description ? ` — ${e.description}` : ""}`);
159
+ function Z(e, t) {
160
+ let n = G(t), r = ne(t.name, n), i = n.map((e) => ` --${e.key} <${e.type}> (${e.required ? "required" : "optional"})${e.description ? ` — ${e.description}` : ""}`);
161
161
  return [
162
162
  `COMMAND: ${e} ${t.name}`,
163
163
  ` ${t.summary}`,
@@ -169,46 +169,46 @@ function ie(e, t) {
169
169
  ...i,
170
170
  "",
171
171
  " OUTPUT",
172
- ae(t.describeOutput(), 4),
172
+ re(t.describeOutput(), 4),
173
173
  (t.example, ""),
174
174
  t.example ? " EXAMPLE" : "",
175
175
  t.example ? ` ${t.example}` : ""
176
176
  ].filter((e) => e !== "").join("\n");
177
177
  }
178
- function ae(e, t) {
178
+ function re(e, t) {
179
179
  let n = " ".repeat(t);
180
180
  return e.split("\n").map((e) => e && n + e).join("\n");
181
181
  }
182
- function oe(e) {
182
+ function ie(e) {
183
183
  return [
184
184
  "NAME",
185
185
  ` ${e.id} — ${e.label}`,
186
186
  "",
187
187
  "DESCRIPTION",
188
- ae(e.description, 2),
188
+ re(e.description, 2),
189
189
  "",
190
- ...e.commands.map((t) => ie(e.id, t))
190
+ ...e.commands.map((t) => Z(e.id, t))
191
191
  ].join("\n");
192
192
  }
193
- function se(e) {
193
+ function ae(e) {
194
194
  return e.length === 0 ? Y().noToolsAvailable : e.map((e) => `${e.id} [${e.commands.map((e) => e.name).join("|")}] — ${e.label}: ${e.commands.map((e) => e.summary).join(" / ")}`).join("\n");
195
195
  }
196
196
  //#endregion
197
197
  //#region src/domain/microPrompts.ts
198
- var ce = {
198
+ var oe = {
199
199
  id: "closing-summary",
200
200
  get text() {
201
201
  return Y().closingSummary;
202
202
  }
203
- }, le = { [ce.id]: ce };
204
- function X(e, t) {
203
+ }, se = { [oe.id]: oe };
204
+ function ce(e, t) {
205
205
  if (!t || t.length === 0) return e;
206
- let n = t.map((e) => le[e]?.text).filter((e) => !!e);
206
+ let n = t.map((e) => se[e]?.text).filter((e) => !!e);
207
207
  return n.length === 0 ? e : `${e}\n\n${n.join("\n")}`;
208
208
  }
209
209
  //#endregion
210
210
  //#region src/domain/extractErrorMessage.ts
211
- function Z(e) {
211
+ function le(e) {
212
212
  if (e instanceof Error) return e.message;
213
213
  if (typeof e == "object" && e) {
214
214
  let t = e;
@@ -535,20 +535,20 @@ function Pe({ children: e, scope: t = null }) {
535
535
  card: n
536
536
  }] : i;
537
537
  });
538
- }, []), P = j.length > 0 ? j[j.length - 1] : null, [F, I] = D([]), L = x((e, t) => {
539
- I((n) => {
538
+ }, []), P = j.length > 0 ? j[j.length - 1] : null, [F, ee] = D([]), I = x((e, t) => {
539
+ ee((n) => {
540
540
  let r = n.filter((t) => t.id !== e);
541
541
  return t ? [...r, {
542
542
  id: e,
543
543
  ...t
544
544
  }] : r;
545
545
  });
546
- }, []), R = T(() => F.map((e) => ({
546
+ }, []), L = T(() => F.map((e) => ({
547
547
  subagentId: e.subagentId,
548
548
  componentKey: e.componentKey,
549
549
  onResult: e.onResult,
550
550
  pinnedEntityId: e.pinnedEntityId
551
- })), [F]), z = T(() => {
551
+ })), [F]), R = T(() => {
552
552
  let e = /* @__PURE__ */ new Map();
553
553
  for (let t of F) e.set(t.subagentId, {
554
554
  subagentId: t.subagentId,
@@ -557,8 +557,8 @@ function Pe({ children: e, scope: t = null }) {
557
557
  contextInfo: t.contextInfo
558
558
  });
559
559
  return [...e.values()];
560
- }, [F]), V = T(() => z.map((e) => {
561
- let t = B(e.subagentId)?.componentContexts?.[e.componentKey];
560
+ }, [F]), B = T(() => R.map((e) => {
561
+ let t = z(e.subagentId)?.componentContexts?.[e.componentKey];
562
562
  if (!t) return null;
563
563
  let n = e.contextInfo ? `${t.agenticoHint}\n${e.contextInfo}` : t.agenticoHint;
564
564
  return {
@@ -566,12 +566,12 @@ function Pe({ children: e, scope: t = null }) {
566
566
  agenticoHint: n,
567
567
  userMessage: t.userMessage
568
568
  };
569
- }).filter((e) => e !== null), [z]), ee = T(() => V.map((e) => e.userMessage), [V]), H = T(() => {
570
- if (V.length === 0) return null;
571
- if (V.length === 1) return V[0].agenticoHint;
572
- let e = V.map((e, t) => `${t + 1}. ${e.agenticoHint}`).join("\n");
569
+ }).filter((e) => e !== null), [R]), V = T(() => B.map((e) => e.userMessage), [B]), H = T(() => {
570
+ if (B.length === 0) return null;
571
+ if (B.length === 1) return B[0].agenticoHint;
572
+ let e = B.map((e, t) => `${t + 1}. ${e.agenticoHint}`).join("\n");
573
573
  return `${Y().multipleCandidates}\n\n${e}`;
574
- }, [V]) ?? P?.text ?? null, U = V.length > 0 ? null : P?.card ?? null, W = T(() => [...new Set(R.map((e) => e.subagentId))], [R]), G = W.length === 1 ? W[0] : W.length === 0 ? P?.card?.subagentId ?? null : null, K = x((e, t) => {
574
+ }, [B]) ?? P?.text ?? null, U = B.length > 0 ? null : P?.card ?? null, W = T(() => [...new Set(L.map((e) => e.subagentId))], [L]), G = W.length === 1 ? W[0] : W.length === 0 ? P?.card?.subagentId ?? null : null, K = x((e, t) => {
575
575
  u();
576
576
  let n = i.current;
577
577
  if (n?.id === "agentico-orchestrator") return;
@@ -597,19 +597,19 @@ function Pe({ children: e, scope: t = null }) {
597
597
  ...e,
598
598
  savedToDisk: !0
599
599
  } : e));
600
- }, []), [J, te] = D(null), [ne, re] = D(null), ie = x((e, t, n) => {
600
+ }, []), [J, te] = D(null), [X, ne] = D(null), Z = x((e, t, n) => {
601
601
  u(), te({
602
602
  subagentId: e,
603
603
  entityId: t,
604
604
  snapshot: n
605
- }), re(crypto.randomUUID());
606
- }, [u]), [ae, oe] = D(null), [se, ce] = D(null), le = x((e, t) => {
607
- u(), c(Me), oe({
605
+ }), ne(crypto.randomUUID());
606
+ }, [u]), [re, ie] = D(null), [ae, oe] = D(null), se = x((e, t) => {
607
+ u(), c(Me), ie({
608
608
  subagentId: e,
609
609
  extraDestinations: t
610
- }), ce(crypto.randomUUID());
611
- }, [u, c]), [X, Z] = D(null), [ue, de] = D(null), fe = x((e, t, n) => {
612
- oe(null), Z({
610
+ }), oe(crypto.randomUUID());
611
+ }, [u, c]), [ce, le] = D(null), [ue, de] = D(null), fe = x((e, t, n) => {
612
+ ie(null), le({
613
613
  subagentId: e,
614
614
  params: t,
615
615
  extraDestinations: n
@@ -637,9 +637,9 @@ function Pe({ children: e, scope: t = null }) {
637
637
  setPageContext: N,
638
638
  scopedSubagentId: G,
639
639
  pendingScopedSubagentId: O,
640
- componentAnchors: R,
641
- anchoredUserMessages: ee,
642
- registerComponentAnchor: L,
640
+ componentAnchors: L,
641
+ anchoredUserMessages: V,
642
+ registerComponentAnchor: I,
643
643
  openPanel: u,
644
644
  pendingExtraDestinations: p,
645
645
  pendingAttachments: h,
@@ -647,14 +647,14 @@ function Pe({ children: e, scope: t = null }) {
647
647
  orchestratorRunId: y,
648
648
  pendingCarryOver: S,
649
649
  commitEntityChat: q,
650
- resumeEntityChat: ie,
650
+ resumeEntityChat: Z,
651
651
  pendingResume: J,
652
- resumeRunId: ne,
652
+ resumeRunId: X,
653
653
  dismissForeignTask: ve,
654
- pendingManualEntry: ae,
655
- manualEntryRunId: se,
656
- startManualEntry: le,
657
- pendingResumeWithAI: X,
654
+ pendingManualEntry: re,
655
+ manualEntryRunId: ae,
656
+ startManualEntry: se,
657
+ pendingResumeWithAI: ce,
658
658
  resumeWithAIRunId: ue,
659
659
  resumeWithAI: fe,
660
660
  startSubagent: _e,
@@ -674,9 +674,9 @@ function Pe({ children: e, scope: t = null }) {
674
674
  N,
675
675
  G,
676
676
  O,
677
- R,
678
- ee,
679
677
  L,
678
+ V,
679
+ I,
680
680
  u,
681
681
  p,
682
682
  h,
@@ -684,14 +684,14 @@ function Pe({ children: e, scope: t = null }) {
684
684
  y,
685
685
  S,
686
686
  q,
687
- ie,
687
+ Z,
688
688
  J,
689
- ne,
689
+ X,
690
690
  ve,
691
+ re,
691
692
  ae,
692
693
  se,
693
- le,
694
- X,
694
+ ce,
695
695
  ue,
696
696
  fe,
697
697
  _e,
@@ -1204,13 +1204,14 @@ function vt(e, t = {}) {
1204
1204
  T.current = w;
1205
1205
  let O = E(null), k = E(!1), A = E(null), M = () => {
1206
1206
  A.current?.abort();
1207
- }, I = _()?.registry ?? {}, L = r && c ? h(c) : null, R = L ? I[L.provider] : null, z = e.executor, B = !!z, [V, ee] = D([]), [H, W] = D(""), G = E(""), K = (e) => {
1208
- G.current = e, W(e);
1209
- }, q = (e) => {
1210
- ee(z?.models?.(e) ?? []), K(z?.defaultModel?.(e) ?? "");
1211
- }, J = async (e, t, n, r) => {
1207
+ }, ee = _()?.registry ?? {}, I = r && c ? h(c) : null, L = I ? ee[I.provider] : null, R = e.executor, z = !!R?.alongside, B = !!R && !z, V = E([]), H = (e) => !!e && V.current.some((t) => t.value === e), W = E(!1), [G, K] = D([]), [q, J] = D(""), te = E(""), X = (e) => {
1208
+ te.current = e, J(e);
1209
+ }, ne = (e) => {
1210
+ let t = R?.models?.(e) ?? [];
1211
+ V.current = t, K(t), X(R?.defaultModel?.(e) ?? "");
1212
+ }, Z = async (e, t, n, r) => {
1212
1213
  let i = O.current;
1213
- if (!i || !z) return m(T.current.noActiveSession), null;
1214
+ if (!i || !R) return m(T.current.noActiveSession), null;
1214
1215
  let a = new AbortController();
1215
1216
  A.current = a;
1216
1217
  let o = crypto.randomUUID();
@@ -1295,13 +1296,13 @@ function vt(e, t = {}) {
1295
1296
  _.clear();
1296
1297
  }, w = e || r?.historyText || "";
1297
1298
  try {
1298
- let o = await z.turn({
1299
+ let o = await R.turn({
1299
1300
  params: i.params,
1300
1301
  context: i.context,
1301
1302
  text: e,
1302
1303
  first: t,
1303
1304
  signal: a.signal,
1304
- ...n || G.current ? { model: n || G.current } : {},
1305
+ ...n || te.current ? { model: n || te.current } : {},
1305
1306
  ...r ? { answers: {
1306
1307
  id: r.id,
1307
1308
  answers: r.answers
@@ -1326,11 +1327,11 @@ function vt(e, t = {}) {
1326
1327
  return i.history = [...i.history, ...w ? [{
1327
1328
  role: "user",
1328
1329
  content: w
1329
- }] : []], a.signal.aborted ? (x("stopped"), null) : (x("error"), m(Z(e)), null);
1330
+ }] : []], a.signal.aborted ? (x("stopped"), null) : (x("error"), m(le(e)), null);
1330
1331
  } finally {
1331
1332
  A.current = null;
1332
1333
  }
1333
- }, te = async (e, t, n) => {
1334
+ }, re = async (e, t, n) => {
1334
1335
  let r = x.current.find((t) => t.id === e)?.parts?.find((e) => e.type === "questions" && e.id === t);
1335
1336
  if (!r || r.type !== "questions") throw m(T.current.noActiveSession), Error(T.current.noActiveSession);
1336
1337
  let i = () => S((r) => r.map((r) => r.id === e ? {
@@ -1345,7 +1346,7 @@ function vt(e, t = {}) {
1345
1346
  if (!B || !O.current) throw m(T.current.noActiveSession), Error(T.current.noActiveSession);
1346
1347
  k.current = !0, f(!0), m(null), i();
1347
1348
  try {
1348
- return await J("", !1, void 0, {
1349
+ return await Z("", !1, void 0, {
1349
1350
  id: t,
1350
1351
  answers: n,
1351
1352
  historyText: F(r.questions, n)
@@ -1353,10 +1354,10 @@ function vt(e, t = {}) {
1353
1354
  } finally {
1354
1355
  k.current = !1, f(!1);
1355
1356
  }
1356
- }, ne = async (t, n, r) => {
1357
+ }, ie = async (t, n, r) => {
1357
1358
  let i = O.current;
1358
1359
  if (!i) return m(T.current.noActiveSession), null;
1359
- let a = r ? h(r) : L, o = a ? I[a.provider] : null;
1360
+ let a = r ? h(r) : I, o = a ? ee[a.provider] : null;
1360
1361
  if (!o || !a) return m(T.current.noProviderAvailable), null;
1361
1362
  n?.length && (i.attachmentsRef.current = [...i.attachmentsRef.current ?? [], ...n]);
1362
1363
  let s = (n ?? []).filter((e) => d.isTextAttachment(e.mimeType)).map((e) => e.base64.length <= gt ? `\n\n[File allegato: ${e.name}]\n${d.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(""), c = _t(n ?? []), l = i.tools.map((e) => ({
@@ -1430,7 +1431,7 @@ function vt(e, t = {}) {
1430
1431
  return i.history = [...n, ...r ? [{
1431
1432
  role: "user",
1432
1433
  content: r + s
1433
- }] : []], p.signal.aborted ? (g(d, "stopped"), e.fallback(i.params, i.context)) : (g(d, "error"), m(Z(t)), null);
1434
+ }] : []], p.signal.aborted ? (g(d, "stopped"), e.fallback(i.params, i.context)) : (g(d, "error"), m(le(t)), null);
1434
1435
  }
1435
1436
  if (i.history = [...n, ...r ? [{
1436
1437
  role: "user",
@@ -1511,7 +1512,7 @@ function vt(e, t = {}) {
1511
1512
  return g(e.id, "error"), {
1512
1513
  toolCallId: e.id,
1513
1514
  name: e.name,
1514
- output: Z(t),
1515
+ output: le(t),
1515
1516
  isError: !0
1516
1517
  };
1517
1518
  }
@@ -1543,7 +1544,7 @@ function vt(e, t = {}) {
1543
1544
  let h;
1544
1545
  try {
1545
1546
  h = await o.complete({
1546
- prompt: X(Y().stopCallingTools, e.microPromptIds),
1547
+ prompt: ce(Y().stopCallingTools, e.microPromptIds),
1547
1548
  model: a.model,
1548
1549
  history: n,
1549
1550
  signal: p.signal,
@@ -1564,124 +1565,138 @@ function vt(e, t = {}) {
1564
1565
  } finally {
1565
1566
  A.current = null;
1566
1567
  }
1567
- };
1568
+ }, ae = async (t, n) => {
1569
+ if (k.current) return m(T.current.requestInProgress), null;
1570
+ k.current = !0, m(null), S(n?.openingMessage ? [{
1571
+ id: crypto.randomUUID(),
1572
+ kind: "user",
1573
+ label: "Tu",
1574
+ status: "done",
1575
+ detail: n.openingMessage,
1576
+ ...n.attachments?.length ? { attachmentNames: n.attachments.map((e) => e.name) } : {}
1577
+ }] : []), f(!0);
1578
+ try {
1579
+ let i = await e.buildContext(t), a = { current: void 0 }, o = e.getTools?.(t, i, a) ?? [];
1580
+ if (O.current = {
1581
+ params: t,
1582
+ context: i,
1583
+ tools: o,
1584
+ history: [],
1585
+ logId: crypto.randomUUID(),
1586
+ attachmentsRef: a
1587
+ }, B) return v(!0), ne(t), await Z(n?.openingMessage ?? "", !0);
1588
+ if (z) {
1589
+ ne(t), W.current = !1;
1590
+ let e = n?.model || te.current;
1591
+ if (H(e)) return v(!0), W.current = !0, await Z(n?.openingMessage ?? "", !0, e);
1592
+ }
1593
+ let s = n?.model || void 0, c = s ? !!ee[h(s)?.provider ?? ""] : !!L;
1594
+ if (!r || !c) {
1595
+ v(!1);
1596
+ let n = e.fallback(t, i);
1597
+ return S((t) => [...t, {
1598
+ id: crypto.randomUUID(),
1599
+ kind: "tool",
1600
+ status: "done",
1601
+ label: e.describeFallback?.(n) ?? T.current.aiDisabledFallback
1602
+ }]), n;
1603
+ }
1604
+ v(!0);
1605
+ let l = n?.attachments?.length ? await Promise.all(n.attachments.map((e) => d.fileToAttachment(e))) : void 0, u = ce(e.buildPrompt(t, i), e.microPromptIds);
1606
+ return await ie(u, l, s);
1607
+ } catch (e) {
1608
+ return m(le(e)), null;
1609
+ } finally {
1610
+ k.current = !1, f(!1);
1611
+ }
1612
+ }, oe = async (t, n) => {
1613
+ if (k.current) {
1614
+ m(T.current.requestInProgress);
1615
+ return;
1616
+ }
1617
+ k.current = !0, m(null), S(n.activity), f(!0);
1618
+ try {
1619
+ let i = await e.buildContext(t), a = { current: void 0 }, o = e.getTools?.(t, i, a) ?? [];
1620
+ O.current = {
1621
+ params: t,
1622
+ context: i,
1623
+ tools: o,
1624
+ history: n.history,
1625
+ logId: crypto.randomUUID(),
1626
+ attachmentsRef: a
1627
+ }, (B || z) && ne(t), W.current = !1, v(B || z || r && !!L);
1628
+ } catch (e) {
1629
+ m(le(e));
1630
+ } finally {
1631
+ k.current = !1, f(!1);
1632
+ }
1633
+ }, se = async (t, n) => {
1634
+ if (k.current) return m(T.current.requestInProgress), null;
1635
+ if (m(null), !t.trim()) return m("Messaggio vuoto."), null;
1636
+ let r = O.current;
1637
+ if (!r) return m(T.current.noActiveSession), null;
1638
+ k.current = !0, f(!0), S((e) => [...e, {
1639
+ id: crypto.randomUUID(),
1640
+ kind: "user",
1641
+ label: "Tu",
1642
+ status: "done",
1643
+ detail: t,
1644
+ ...n?.attachments?.length ? { attachmentNames: n.attachments.map((e) => e.name) } : {}
1645
+ }]);
1646
+ try {
1647
+ if (B) return await Z(t, !1, n?.model || void 0);
1648
+ let i = n?.model || (z ? te.current : "");
1649
+ if (z && H(i)) {
1650
+ let e = !W.current;
1651
+ return W.current = !0, await Z(t, e, i);
1652
+ }
1653
+ let a = n?.attachments?.length ? await Promise.all(n.attachments.map((e) => d.fileToAttachment(e))) : void 0, o = ce(e.buildFollowUpPrompt(t, r.params, r.context), e.microPromptIds);
1654
+ return await ie(o, a, n?.model || void 0);
1655
+ } catch (e) {
1656
+ return m(le(e)), null;
1657
+ } finally {
1658
+ k.current = !1, f(!1);
1659
+ }
1660
+ }, ue = () => {
1661
+ let t = O.current;
1662
+ if (!t) return null;
1663
+ m(null);
1664
+ let n = e.fallback(t.params, t.context);
1665
+ return S((t) => [...t, {
1666
+ id: crypto.randomUUID(),
1667
+ kind: "tool",
1668
+ status: "done",
1669
+ label: e.describeFallback?.(n) ?? T.current.continueWithoutAiFallback
1670
+ }]), n;
1671
+ }, de = () => O.current ? {
1672
+ history: O.current.history,
1673
+ activity: y
1674
+ } : null;
1568
1675
  return {
1569
1676
  enabled: r,
1570
1677
  setEnabled: i,
1571
1678
  hasProviders: a,
1572
- selectedModel: B ? H : c,
1573
- setSelectedModel: B ? K : l,
1679
+ selectedModel: B || z && q ? q : c,
1680
+ setSelectedModel: B ? X : z ? (e) => {
1681
+ H(e) ? X(e) : (X(""), l(e));
1682
+ } : l,
1574
1683
  modelsByProvider: o,
1575
1684
  modelsLoading: s,
1576
1685
  running: u,
1577
1686
  error: p,
1578
1687
  canContinue: g,
1579
1688
  remote: B,
1580
- remoteModels: V,
1689
+ remoteModels: G,
1690
+ alongside: z,
1691
+ ...R?.catalogGroup ? { catalogGroup: R.catalogGroup } : {},
1581
1692
  activity: y,
1582
- run: async (t, n) => {
1583
- if (k.current) return m(T.current.requestInProgress), null;
1584
- k.current = !0, m(null), S(n?.openingMessage ? [{
1585
- id: crypto.randomUUID(),
1586
- kind: "user",
1587
- label: "Tu",
1588
- status: "done",
1589
- detail: n.openingMessage,
1590
- ...n.attachments?.length ? { attachmentNames: n.attachments.map((e) => e.name) } : {}
1591
- }] : []), f(!0);
1592
- try {
1593
- let i = await e.buildContext(t), a = { current: void 0 }, o = e.getTools?.(t, i, a) ?? [];
1594
- if (O.current = {
1595
- params: t,
1596
- context: i,
1597
- tools: o,
1598
- history: [],
1599
- logId: crypto.randomUUID(),
1600
- attachmentsRef: a
1601
- }, B) return v(!0), q(t), await J(n?.openingMessage ?? "", !0);
1602
- let s = n?.model || void 0, c = s ? !!I[h(s)?.provider ?? ""] : !!R;
1603
- if (!r || !c) {
1604
- v(!1);
1605
- let n = e.fallback(t, i);
1606
- return S((t) => [...t, {
1607
- id: crypto.randomUUID(),
1608
- kind: "tool",
1609
- status: "done",
1610
- label: e.describeFallback?.(n) ?? T.current.aiDisabledFallback
1611
- }]), n;
1612
- }
1613
- v(!0);
1614
- let l = n?.attachments?.length ? await Promise.all(n.attachments.map((e) => d.fileToAttachment(e))) : void 0, u = X(e.buildPrompt(t, i), e.microPromptIds);
1615
- return await ne(u, l, s);
1616
- } catch (e) {
1617
- return m(Z(e)), null;
1618
- } finally {
1619
- k.current = !1, f(!1);
1620
- }
1621
- },
1622
- resume: async (t, n) => {
1623
- if (k.current) {
1624
- m(T.current.requestInProgress);
1625
- return;
1626
- }
1627
- k.current = !0, m(null), S(n.activity), f(!0);
1628
- try {
1629
- let i = await e.buildContext(t), a = { current: void 0 }, o = e.getTools?.(t, i, a) ?? [];
1630
- O.current = {
1631
- params: t,
1632
- context: i,
1633
- tools: o,
1634
- history: n.history,
1635
- logId: crypto.randomUUID(),
1636
- attachmentsRef: a
1637
- }, B && q(t), v(B || r && !!R);
1638
- } catch (e) {
1639
- m(Z(e));
1640
- } finally {
1641
- k.current = !1, f(!1);
1642
- }
1643
- },
1644
- sendMessage: async (t, n) => {
1645
- if (k.current) return m(T.current.requestInProgress), null;
1646
- if (m(null), !t.trim()) return m("Messaggio vuoto."), null;
1647
- let r = O.current;
1648
- if (!r) return m(T.current.noActiveSession), null;
1649
- k.current = !0, f(!0), S((e) => [...e, {
1650
- id: crypto.randomUUID(),
1651
- kind: "user",
1652
- label: "Tu",
1653
- status: "done",
1654
- detail: t,
1655
- ...n?.attachments?.length ? { attachmentNames: n.attachments.map((e) => e.name) } : {}
1656
- }]);
1657
- try {
1658
- if (B) return await J(t, !1, n?.model || void 0);
1659
- let i = n?.attachments?.length ? await Promise.all(n.attachments.map((e) => d.fileToAttachment(e))) : void 0, a = X(e.buildFollowUpPrompt(t, r.params, r.context), e.microPromptIds);
1660
- return await ne(a, i, n?.model || void 0);
1661
- } catch (e) {
1662
- return m(Z(e)), null;
1663
- } finally {
1664
- k.current = !1, f(!1);
1665
- }
1666
- },
1693
+ run: ae,
1694
+ resume: oe,
1695
+ sendMessage: se,
1667
1696
  stop: M,
1668
- runFallback: () => {
1669
- let t = O.current;
1670
- if (!t) return null;
1671
- m(null);
1672
- let n = e.fallback(t.params, t.context);
1673
- return S((t) => [...t, {
1674
- id: crypto.randomUUID(),
1675
- kind: "tool",
1676
- status: "done",
1677
- label: e.describeFallback?.(n) ?? T.current.continueWithoutAiFallback
1678
- }]), n;
1679
- },
1680
- snapshot: () => O.current ? {
1681
- history: O.current.history,
1682
- activity: y
1683
- } : null,
1684
- answerQuestions: te
1697
+ runFallback: ue,
1698
+ snapshot: de,
1699
+ answerQuestions: re
1685
1700
  };
1686
1701
  }
1687
1702
  //#endregion
@@ -1714,13 +1729,13 @@ function xt(e, t) {
1714
1729
  //#endregion
1715
1730
  //#region src/domain/orchestrator/agenticoOrchestratorAgent.ts
1716
1731
  function St(e) {
1717
- return z().filter((t) => !t.onlyWhenAnchored || e === t.id);
1732
+ return R().filter((t) => !t.onlyWhenAnchored || e === t.id);
1718
1733
  }
1719
1734
  function Ct(e) {
1720
1735
  return {
1721
1736
  buildContext(e) {
1722
1737
  return {
1723
- cliCatalog: se(St(e.scopedSubagentId)),
1738
+ cliCatalog: ae(St(e.scopedSubagentId)),
1724
1739
  handoff: { current: null },
1725
1740
  collected: {}
1726
1741
  };
@@ -1749,7 +1764,7 @@ function Ct(e) {
1749
1764
  attachmentsRef: r,
1750
1765
  collected: n.collected,
1751
1766
  proxyFetch: g
1752
- }), a = t.scopedSubagentId ? B(t.scopedSubagentId) : null, o = a ? i.filter((e) => (a.crossAgentToolIds ?? []).includes(e.name)) : i, s = St(t.scopedSubagentId).flatMap((t) => t.commands.map((r) => ({
1767
+ }), a = t.scopedSubagentId ? z(t.scopedSubagentId) : null, o = a ? i.filter((e) => (a.crossAgentToolIds ?? []).includes(e.name)) : i, s = St(t.scopedSubagentId).flatMap((t) => t.commands.map((r) => ({
1753
1768
  name: `${t.id}_${r.name}`,
1754
1769
  description: `${t.label}: ${r.summary}`,
1755
1770
  inputSchema: r.inputSchema,
@@ -1881,15 +1896,15 @@ function Ft({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
1881
1896
  e.definition.conversational || m(t);
1882
1897
  }, [g, _] = D([]), [v, b] = D(null), x = Ot(e.id), S = x?.kind === "selection" ? x : null, [w, j] = D(null), M = E(!1), N = E(0), P = E(null);
1883
1898
  p && p !== P.current && (P.current = p, N.current = (r?.length ?? 0) + c.activity.length);
1884
- let F = E(!1), I = c.remote || !c.hasProviders || c.selectedModel !== "";
1899
+ let F = E(!1), ee = c.remote || !c.hasProviders || c.selectedModel !== "";
1885
1900
  C(() => {
1886
- !M.current && I && (M.current = !0, a ? c.resume(e.toParams(t), a) : (o && c.setSelectedModel(o), c.run(e.toParams(t), {
1901
+ !M.current && ee && (M.current = !0, a ? c.resume(e.toParams(t), a) : (o && c.setSelectedModel(o), c.run(e.toParams(t), {
1887
1902
  model: o,
1888
1903
  openingMessage: s
1889
1904
  }).then((e) => {
1890
1905
  e && h(e);
1891
1906
  })));
1892
- }, [I]), C(() => {
1907
+ }, [ee]), C(() => {
1893
1908
  if (!p || !u) return;
1894
1909
  let n = e.autoApplyDestinationIds ?? [], r = l.componentAnchors.find((t) => t.subagentId === e.id && t.pinnedEntityId)?.pinnedEntityId, i = ge();
1895
1910
  n.forEach((n) => {
@@ -1913,20 +1928,20 @@ function Ft({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
1913
1928
  ]), C(() => {
1914
1929
  p && S && j(S.defaultSelection(p));
1915
1930
  }, [p, S]);
1916
- let L = (e, t) => {
1931
+ let I = (e, t) => {
1917
1932
  j((n) => n && {
1918
1933
  ...n,
1919
1934
  [e]: t
1920
1935
  });
1921
- }, R = (e) => h(e), z = T(() => p && S && w ? S.applySelection(p, w) : p, [
1936
+ }, L = (e) => h(e), R = T(() => p && S && w ? S.applySelection(p, w) : p, [
1922
1937
  p,
1923
1938
  S,
1924
1939
  w
1925
- ]), B = T(() => l.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [l.componentAnchors, e.id]), V = T(() => At(B, t, f), [
1926
- B,
1940
+ ]), z = T(() => l.componentAnchors.filter((t) => t.subagentId === e.id && t.onResult), [l.componentAnchors, e.id]), B = T(() => At(z, t, f), [
1941
+ z,
1927
1942
  t,
1928
1943
  f
1929
- ]), ee = T(() => V ? [V, ...n ?? []] : n, [V, n]), H = e.chatEntityId?.(t), U = E(!1);
1944
+ ]), V = T(() => B ? [B, ...n ?? []] : n, [B, n]), H = e.chatEntityId?.(t), U = E(!1);
1930
1945
  C(() => {
1931
1946
  let n = U.current && !c.running;
1932
1947
  if (U.current = c.running, !n || !H || !u) return;
@@ -1969,23 +1984,23 @@ function Ft({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
1969
1984
  S && w ? /* @__PURE__ */ k(S.Report, {
1970
1985
  result: p,
1971
1986
  selection: w,
1972
- onChange: L
1987
+ onChange: I
1973
1988
  }) : x?.kind === "editable" ? /* @__PURE__ */ k(x.Report, {
1974
1989
  result: p,
1975
- onResultChange: R
1976
- }) : /* @__PURE__ */ k(kt, { result: z }),
1990
+ onResultChange: L
1991
+ }) : /* @__PURE__ */ k(kt, { result: R }),
1977
1992
  v && /* @__PURE__ */ A("p", {
1978
1993
  className: "text-xs text-destructive",
1979
1994
  children: ["Salvataggio automatico non riuscito: ", v]
1980
1995
  }),
1981
1996
  /* @__PURE__ */ k(Tt, {
1982
1997
  manifest: e,
1983
- result: z,
1998
+ result: R,
1984
1999
  meta: t,
1985
2000
  taskId: f,
1986
2001
  initiallyApplied: g,
1987
2002
  onApplied: q,
1988
- extraDestinations: ee
2003
+ extraDestinations: V
1989
2004
  })
1990
2005
  ] }) : void 0
1991
2006
  });
@@ -2004,7 +2019,7 @@ function Ft({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
2004
2019
  e,
2005
2020
  t,
2006
2021
  p,
2007
- z,
2022
+ R,
2008
2023
  w,
2009
2024
  g,
2010
2025
  n,
@@ -2067,7 +2082,7 @@ function It({ userGoal: e }) {
2067
2082
  }, [r.closeTask]);
2068
2083
  let h = T(() => [...f.current?.activity ?? [], ...n.activity], [n.activity]);
2069
2084
  if (!i) return null;
2070
- let g = B(i.subagentId);
2085
+ let g = z(i.subagentId);
2071
2086
  return g ? /* @__PURE__ */ k(Ft, {
2072
2087
  manifest: g,
2073
2088
  params: i.params,
@@ -2174,13 +2189,17 @@ function Lt({ manifest: e, extraDestinations: n }) {
2174
2189
  }
2175
2190
  //#endregion
2176
2191
  //#region src/presentation/Agentico.tsx
2177
- function Rt(e) {
2178
- return Object.values(e).flat().map((e) => ({
2179
- label: e.model,
2180
- value: e.id,
2181
- pricing: e.pricing ?? null,
2182
- group: e.providerLabel ?? e.provider
2183
- }));
2192
+ function Rt(e, t) {
2193
+ return Object.values(e).flat().map((e) => {
2194
+ let n = t?.(e.provider, e.providerLabel ?? e.provider);
2195
+ return {
2196
+ label: e.model,
2197
+ value: e.id,
2198
+ pricing: e.pricing ?? null,
2199
+ group: n?.group ?? e.providerLabel ?? e.provider,
2200
+ ...n?.badge ? { groupBadge: n.badge } : {}
2201
+ };
2202
+ });
2184
2203
  }
2185
2204
  function zt({ task: e }) {
2186
2205
  let t = Q(), [n, r] = D(""), { agent: i, onApplied: a, manualEntry: s } = e, c = i.running, l = (e) => {
@@ -2194,17 +2213,17 @@ function zt({ task: e }) {
2194
2213
  }).then((e) => {
2195
2214
  e && a(e);
2196
2215
  });
2197
- }, u = !!s || i.remote && i.remoteModels.length === 0, d = !u && !i.remote && i.hasProviders && !i.selectedModel, f = u ? [] : i.remote ? i.remoteModels : Rt(i.modelsByProvider);
2216
+ }, u = !!s || 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, ...Rt(i.modelsByProvider, i.catalogGroup)] : Rt(i.modelsByProvider);
2198
2217
  return /* @__PURE__ */ k(o, {
2199
2218
  value: n,
2200
2219
  onChange: r,
2201
2220
  placeholder: s?.prompt ?? t.messagePlaceholder,
2202
2221
  running: c,
2203
2222
  onStop: i.stop,
2204
- disabled: !n.trim() || d,
2223
+ disabled: !n.trim() || f,
2205
2224
  onSubmit: l,
2206
- attachments: !s && !i.remote,
2207
- models: f,
2225
+ attachments: !s && !i.remote && !d,
2226
+ models: p,
2208
2227
  selectedModel: u ? "" : i.selectedModel,
2209
2228
  actions: e.composerActions,
2210
2229
  commands: e.composerCommands,
@@ -2319,7 +2338,7 @@ function Wt({ scopeId: e, currentTaskId: n, open: r, onOpenChange: i, onSelect:
2319
2338
  r,
2320
2339
  h
2321
2340
  ]), y = async (t) => {
2322
- let r = B(t.subagentId), i = await r?.confirmArchive?.(t.entityId, t.params);
2341
+ let r = z(t.subagentId), i = await r?.confirmArchive?.(t.entityId, t.params);
2323
2342
  if (!i || window.confirm(i)) {
2324
2343
  try {
2325
2344
  await r?.onArchive?.(t.entityId, t.params);
@@ -2331,7 +2350,7 @@ function Wt({ scopeId: e, currentTaskId: n, open: r, onOpenChange: i, onSelect:
2331
2350
  }, b = T(() => {
2332
2351
  let e = p.trim().toLowerCase();
2333
2352
  return e ? _.filter((t) => {
2334
- let n = B(t.subagentId)?.label ?? t.subagentId;
2353
+ let n = z(t.subagentId)?.label ?? t.subagentId;
2335
2354
  return t.title.toLowerCase().includes(e) || n.toLowerCase().includes(e);
2336
2355
  }) : _;
2337
2356
  }, [_, p]);
@@ -2375,7 +2394,7 @@ function Wt({ scopeId: e, currentTaskId: n, open: r, onOpenChange: i, onSelect:
2375
2394
  className: "px-2 py-3 text-center text-xs text-muted-foreground",
2376
2395
  children: _.length === 0 ? d.noSavedChats : d.noResults
2377
2396
  }) : b.map((e) => {
2378
- let t = B(e.subagentId), r = n === De(e.subagentId, e.entityId);
2397
+ let t = z(e.subagentId), r = n === De(e.subagentId, e.entityId);
2379
2398
  return /* @__PURE__ */ k(l, {
2380
2399
  icon: r ? "check" : t?.icon ?? "bot",
2381
2400
  className: r ? "bg-accent font-medium" : void 0,
@@ -2413,14 +2432,14 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2413
2432
  minWidth: n,
2414
2433
  maxWidth: r,
2415
2434
  onWidthChange: i
2416
- }), I = () => {
2435
+ }), ee = () => {
2417
2436
  (!a || a.agent.running || a.savedToDisk || window.confirm(j.unsavedConversationConfirm)) && (m(), P(!1));
2418
- }, L = a ? [...a.precedingActivity ?? [], ...a.agent.activity] : [], R = L.length, z = Math.max(0, Math.min(a?.panelExtraAnchorIndex ?? R, R)), V = L.slice(0, z), ee = L.slice(z), H = !!(a && !a.agent.running && a.agent.error), U = new Set(a?.agent.activity.map((e) => e.id) ?? []), W = a ? {
2437
+ }, I = a ? [...a.precedingActivity ?? [], ...a.agent.activity] : [], L = I.length, R = Math.max(0, Math.min(a?.panelExtraAnchorIndex ?? L, L)), B = I.slice(0, R), V = I.slice(R), H = !!(a && !a.agent.running && a.agent.error), U = new Set(a?.agent.activity.map((e) => e.id) ?? []), W = a ? {
2419
2438
  canAnswer: (e) => U.has(e),
2420
2439
  onAnswer: (e, t, n) => a.agent.answerQuestions(e, t, n).then((e) => {
2421
2440
  e && a.onApplied(e);
2422
2441
  })
2423
- } : void 0, G = W ? Ge(L, W.canAnswer) : null, K = a?.id === "agentico-orchestrator" && a.scopedSubagentId ? B(a.scopedSubagentId) : void 0, q = K?.manualEntry ? K : null, J = E(!0);
2442
+ } : void 0, G = W ? Ge(I, W.canAnswer) : null, K = a?.id === "agentico-orchestrator" && a.scopedSubagentId ? z(a.scopedSubagentId) : void 0, q = K?.manualEntry ? K : null, J = E(!0);
2424
2443
  C(() => {
2425
2444
  let e = M.current;
2426
2445
  if (!e) return;
@@ -2432,12 +2451,12 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2432
2451
  let e = M.current;
2433
2452
  e && (J.current = !0, e.scrollTop = e.scrollHeight);
2434
2453
  }, [a?.id]);
2435
- let te = L.at(-1)?.detail?.length ?? 0;
2454
+ let te = I.at(-1)?.detail?.length ?? 0;
2436
2455
  C(() => {
2437
2456
  let e = M.current;
2438
2457
  e && J.current && (e.scrollTop = e.scrollHeight);
2439
2458
  }, [
2440
- R,
2459
+ L,
2441
2460
  H,
2442
2461
  te
2443
2462
  ]);
@@ -2450,33 +2469,33 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2450
2469
  });
2451
2470
  return n.observe(t), () => n.disconnect();
2452
2471
  }, [a?.id, o]);
2453
- let ne = s ? /* @__PURE__ */ k(It, { userGoal: s }, c) : null, re = f ? B(f.subagentId) : void 0, ie = f && re ? /* @__PURE__ */ k(Ft, {
2454
- manifest: re,
2472
+ let X = s ? /* @__PURE__ */ k(It, { userGoal: s }, c) : null, ne = f ? z(f.subagentId) : void 0, Z = f && ne ? /* @__PURE__ */ k(Ft, {
2473
+ manifest: ne,
2455
2474
  params: f.snapshot.params,
2456
2475
  taskId: De(f.subagentId, f.entityId),
2457
2476
  resumeSeed: {
2458
2477
  history: f.snapshot.history,
2459
2478
  activity: f.snapshot.activity
2460
2479
  }
2461
- }, p) : null, ae = g ? B(g.subagentId) : void 0, oe = g && ae ? /* @__PURE__ */ k(Lt, {
2462
- manifest: ae,
2480
+ }, p) : null, re = g ? z(g.subagentId) : void 0, ie = g && re ? /* @__PURE__ */ k(Lt, {
2481
+ manifest: re,
2463
2482
  extraDestinations: g.extraDestinations
2464
- }, _) : null, se = b ? B(b.subagentId) : void 0, ce = b && se ? /* @__PURE__ */ k(Ft, {
2465
- manifest: se,
2483
+ }, _) : null, ae = b ? z(b.subagentId) : void 0, oe = b && ae ? /* @__PURE__ */ k(Ft, {
2484
+ manifest: ae,
2466
2485
  params: b.params,
2467
2486
  extraDestinations: b.extraDestinations
2468
- }, x) : null, le = S ? B(S.subagentId) : void 0, X = S && le ? /* @__PURE__ */ k(Ft, {
2469
- manifest: le,
2487
+ }, x) : null, se = S ? z(S.subagentId) : void 0, ce = S && se ? /* @__PURE__ */ k(Ft, {
2488
+ manifest: se,
2470
2489
  params: S.params,
2471
2490
  taskId: S.taskId,
2472
2491
  openingMessage: S.openingMessage
2473
2492
  }, w) : null;
2474
2493
  return o ? /* @__PURE__ */ A(O, { children: [
2475
- ne,
2494
+ X,
2495
+ Z,
2476
2496
  ie,
2477
2497
  oe,
2478
2498
  ce,
2479
- X,
2480
2499
  /* @__PURE__ */ A("div", {
2481
2500
  style: { width: F.width },
2482
2501
  className: "relative flex h-full shrink-0 flex-col border-l border-border bg-background",
@@ -2501,7 +2520,7 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2501
2520
  currentTaskId: a?.id ?? null,
2502
2521
  open: N,
2503
2522
  onOpenChange: P,
2504
- onNewChat: I,
2523
+ onNewChat: ee,
2505
2524
  onSelect: (e, t, n) => h(e, t, n),
2506
2525
  onArchivedCurrent: m
2507
2526
  }),
@@ -2515,12 +2534,12 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2515
2534
  ref: Y,
2516
2535
  className: "pt-2",
2517
2536
  children: a ? /* @__PURE__ */ A(O, { children: [
2518
- a.manualEntry && L.length === 0 && /* @__PURE__ */ k("p", {
2537
+ a.manualEntry && I.length === 0 && /* @__PURE__ */ k("p", {
2519
2538
  className: "text-xs text-muted-foreground",
2520
2539
  children: a.manualEntry.prompt
2521
2540
  }),
2522
2541
  /* @__PURE__ */ k(Ye, {
2523
- activity: V,
2542
+ activity: B,
2524
2543
  questions: W,
2525
2544
  docked: G,
2526
2545
  pinUserMessages: !G
@@ -2529,8 +2548,8 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2529
2548
  className: "mt-3",
2530
2549
  children: a.panelExtra
2531
2550
  }),
2532
- ee.length > 0 && /* @__PURE__ */ k(Ye, {
2533
- activity: ee,
2551
+ V.length > 0 && /* @__PURE__ */ k(Ye, {
2552
+ activity: V,
2534
2553
  questions: W,
2535
2554
  docked: G,
2536
2555
  pinUserMessages: !G
@@ -2610,11 +2629,11 @@ function Gt({ defaultWidth: e, minWidth: n, maxWidth: r, onWidthChange: i } = {}
2610
2629
  ]
2611
2630
  })
2612
2631
  ] }) : /* @__PURE__ */ A(O, { children: [
2613
- ne,
2632
+ X,
2633
+ Z,
2614
2634
  ie,
2615
2635
  oe,
2616
- ce,
2617
- X
2636
+ ce
2618
2637
  ] });
2619
2638
  }
2620
2639
  //#endregion
@@ -2644,6 +2663,6 @@ function qt(e, t, n, r, i = !0, a) {
2644
2663
  ]);
2645
2664
  }
2646
2665
  //#endregion
2647
- export { Qe as AGENTICO_MAX_WIDTH, Ze as AGENTICO_MIN_WIDTH, Xe as AGENTICO_WIDTH, $e as AGENTICO_WIDTH_STORAGE_KEY, Gt as Agentico, Pe as AgenticoProvider, st as AgenticoToggle, M as DEFAULT_REASONING_PART_ID, j as DEFAULT_TEXT_PART_ID, fe as JSON_EXPORT_DESTINATION_ID, le as MICRO_PROMPT_REGISTRY, Me as ORCHESTRATOR_TASK_ID, ce as SUMMARY_MICRO_PROMPT, Oe as agenticoDe, ke as agenticoEn, Ae as agenticoIt, K as agenticoPromptsEn, q as agenticoPromptsIt, je as agenticoTranslations, X as applyMicroPrompts, te as configureAgenticoPrompts, ve as configureEntityChatStore, H as createCrossAgentTools, I as defineSubagent, De as entityChatTaskId, Z as extractErrorMessage, ue as extractJsonBlock, B as findSubagentManifest, F as formatQuestionAnswers, Y as getAgenticoPrompts, ge as getDestinationRegistry, Ce as getEntityChat, Nt as getSubagentControls, z as getSubagentRegistry, Ot as getSubagentReport, pe as jsonExportDestination, Ee as listEntityChats, P as messagePartsText, ee as registerCrossAgentTools, he as registerDestinations, Mt as registerSubagentControls, Dt as registerSubagentReports, R as registerSubagents, Te as removeEntityChat, se as renderRegistryCli, oe as renderSubagentCli, ne as resetAgenticoPrompts, we as saveEntityChat, U as toJsonSchema, W as toMcpTool, N as upsertMessagePart, vt as useAgent, $ as useAgentico, Q as useAgenticoI18n, Kt as useAgenticoPageContext, qt as useSubagentComponentContext };
2666
+ export { Qe as AGENTICO_MAX_WIDTH, Ze as AGENTICO_MIN_WIDTH, Xe as AGENTICO_WIDTH, $e as AGENTICO_WIDTH_STORAGE_KEY, Gt as Agentico, Pe as AgenticoProvider, st as AgenticoToggle, M as DEFAULT_REASONING_PART_ID, j as DEFAULT_TEXT_PART_ID, fe as JSON_EXPORT_DESTINATION_ID, se as MICRO_PROMPT_REGISTRY, Me as ORCHESTRATOR_TASK_ID, oe as SUMMARY_MICRO_PROMPT, Oe as agenticoDe, ke as agenticoEn, Ae as agenticoIt, K as agenticoPromptsEn, q as agenticoPromptsIt, je as agenticoTranslations, ce as applyMicroPrompts, te as configureAgenticoPrompts, ve as configureEntityChatStore, H as createCrossAgentTools, ee as defineSubagent, De as entityChatTaskId, le as extractErrorMessage, ue as extractJsonBlock, z as findSubagentManifest, F as formatQuestionAnswers, Y as getAgenticoPrompts, ge as getDestinationRegistry, Ce as getEntityChat, Nt as getSubagentControls, R as getSubagentRegistry, Ot as getSubagentReport, pe as jsonExportDestination, Ee as listEntityChats, P as messagePartsText, V as registerCrossAgentTools, he as registerDestinations, Mt as registerSubagentControls, Dt as registerSubagentReports, L as registerSubagents, Te as removeEntityChat, ae as renderRegistryCli, ie as renderSubagentCli, X as resetAgenticoPrompts, we as saveEntityChat, U as toJsonSchema, W as toMcpTool, N as upsertMessagePart, vt as useAgent, $ as useAgentico, Q as useAgenticoI18n, Kt as useAgenticoPageContext, qt as useSubagentComponentContext };
2648
2667
 
2649
2668
  //# sourceMappingURL=index.mjs.map