@llmnative/agentico 0.10.2 → 0.10.3

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
@@ -2072,24 +2072,24 @@ function tn({ manifest: e, params: t, extraDestinations: n, precedingActivity: r
2072
2072
  f
2073
2073
  ]), te = k(() => B ? [B, ...n ?? []] : n, [B, n]), V = e.chatEntityId?.(t), H = Qt(u?.id), U = A(!1), W = A(!1);
2074
2074
  D(() => {
2075
- let n = U.current && !c.running;
2076
- if (U.current = c.running, !n || !V || !u) return;
2075
+ let n = !U.current && c.running, i = U.current && !c.running;
2076
+ if (U.current = c.running, !n && !i || !V || !u) return;
2077
2077
  if (W.current) {
2078
- W.current = !1;
2078
+ i && (W.current = !1);
2079
2079
  return;
2080
2080
  }
2081
- let i = c.snapshot();
2082
- if (!i) return;
2083
- let a = [...r ?? [], ...i.activity];
2084
- e.autoTitle && e.definition.conversational && !Re({ activity: a }) || (Ne({
2081
+ let a = c.snapshot();
2082
+ if (!a) return;
2083
+ let o = [...r ?? [], ...a.activity];
2084
+ e.autoTitle && e.definition.conversational && !Re({ activity: o }) || (Ne({
2085
2085
  scopeId: u.id,
2086
2086
  subagentId: e.id,
2087
2087
  entityId: V,
2088
2088
  params: t,
2089
2089
  title: Rt(e, t),
2090
- history: i.history,
2091
- activity: a
2092
- }), e.autoTitle && H(e.id, V, c.selectedModel));
2090
+ history: a.history,
2091
+ activity: o
2092
+ }), i && e.autoTitle && H(e.id, V, c.selectedModel));
2093
2093
  }, [c.running]);
2094
2094
  let G = () => {
2095
2095
  F.current = !0, c.running && c.stop(), l.closeTask(f);