@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/{chunk-ZCNHLFRB.js → chunk-QG5XSK2Z.js} +15 -3
- package/dist/chunk-QG5XSK2Z.js.map +1 -0
- package/dist/index.cjs +14 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp-oauth.d.ts +1 -1
- package/dist/registry/agents24-chat.json +10 -10
- package/dist/runtime/index.cjs +216 -131
- package/dist/runtime/index.cjs.map +1 -1
- package/dist/runtime/index.js +202 -130
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/use-agent-chat-hitl.d.ts +19 -0
- package/dist/scaffold/index.cjs +5 -4
- package/dist/scaffold/index.cjs.map +1 -1
- package/dist/scaffold/index.js +6 -5
- package/dist/scaffold/index.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/ui/index.cjs +2 -10
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +2 -10
- package/dist/ui/index.js.map +1 -1
- package/package.json +3 -3
- package/scaffold/inherit.css +2 -0
- package/scaffold/src/components/chat/thread-sidebar.tsx +6 -5
- package/dist/chunk-ZCNHLFRB.js.map +0 -1
package/dist/types.d.ts
CHANGED
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(
|