@agents24/chat-react 0.5.33 → 0.5.35

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/types.d.ts CHANGED
@@ -15,5 +15,8 @@ export type WaitForMcpOauthCompleteInput = {
15
15
  popupNonce: string;
16
16
  requireConnectionId?: boolean;
17
17
  serverId: string;
18
+ runId?: string;
19
+ interruptId?: string;
20
+ signal?: AbortSignal;
18
21
  timeoutMs?: number;
19
22
  };
package/dist/ui/index.cjs CHANGED
@@ -2977,12 +2977,6 @@ function HitlPartRow({
2977
2977
  const presentation = part.presentation || {};
2978
2978
  const requireComment = presentation.require_comment === true;
2979
2979
  const isTerminal = part.status !== "pending";
2980
- const resolvedRef = React12.useRef(null);
2981
- const wasTerminal = React12.useRef(isTerminal);
2982
- React12.useEffect(() => {
2983
- if (isTerminal && !wasTerminal.current) resolvedRef.current?.focus();
2984
- wasTerminal.current = isTerminal;
2985
- }, [isTerminal]);
2986
2980
  if (part.hitlKind === "user_input") {
2987
2981
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2988
2982
  AskUserInteraction,
@@ -3001,9 +2995,7 @@ function HitlPartRow({
3001
2995
  }
3002
2996
  );
3003
2997
  }
3004
- if (isTerminal) {
3005
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "a24-hitl a24-hitl--resolved px-1 py-1 text-sm text-muted-foreground", ref: resolvedRef, role: "status", tabIndex: -1, children: resolvedHitlLabel(part) });
3006
- }
2998
+ if (isTerminal) return null;
3007
2999
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "a24-hitl space-y-2.5 px-1 py-2", children: [
3008
3000
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "a24-hitl__title text-sm font-medium text-foreground text-pretty", children: hitlTitle(part) }),
3009
3001
  requireComment ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -3154,7 +3146,7 @@ function AgentResponseTimeline({
3154
3146
  toolViewMode = "closed"
3155
3147
  }) {
3156
3148
  isLoading = isLoading && !message.responseCompletion;
3157
- const parts = (displayParts || message.parts || []).filter((part) => (part.kind !== "tool" || !isInternalAskUserTool(part)) && (part.kind !== "model-turn" || part.turnKind === "agent") && (part.kind !== "node-activity" || nodeActivityMode === "all" || nodeActivityMode === "default" && part.defaultChatVisible));
3149
+ const parts = (displayParts || message.parts || []).filter((part) => (part.kind !== "tool" || !isInternalAskUserTool(part)) && (part.kind !== "hitl" || part.hitlKind === "user_input" || part.status === "pending") && (part.kind !== "model-turn" || part.turnKind === "agent") && (part.kind !== "node-activity" || nodeActivityMode === "all" || nodeActivityMode === "default" && part.defaultChatVisible));
3158
3150
  const toolParts = parts.filter((part) => part.kind === "tool");
3159
3151
  const activeToolId = latestRunningAgentChatToolId(toolParts);
3160
3152
  const activeTextPartId = getActiveStreamingTextPartId(