@invergent/agent-chat-react 2.2.8 → 2.2.9
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.cjs +2 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8385,16 +8385,6 @@ var _SIMPLE_MODE_HIDDEN_TOOLS = /* @__PURE__ */ new Set([
|
|
|
8385
8385
|
"terminal",
|
|
8386
8386
|
"execute_code"
|
|
8387
8387
|
]);
|
|
8388
|
-
var _SKILL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
8389
|
-
"skills_list",
|
|
8390
|
-
"skill_view",
|
|
8391
|
-
"skill_manage"
|
|
8392
|
-
]);
|
|
8393
|
-
function _isSkillOnlyIteration(message) {
|
|
8394
|
-
const calls = message.toolCalls ?? [];
|
|
8395
|
-
if (calls.length === 0) return false;
|
|
8396
|
-
return calls.every((tc) => _SKILL_TOOL_NAMES.has(tc.toolName));
|
|
8397
|
-
}
|
|
8398
8388
|
function _isHiddenSimpleTool(tc) {
|
|
8399
8389
|
if (_SIMPLE_MODE_HIDDEN_TOOLS.has(tc.toolName)) return true;
|
|
8400
8390
|
if (tc.toolName.startsWith("browser_")) return true;
|
|
@@ -8569,7 +8559,6 @@ function IterationGroup({
|
|
|
8569
8559
|
}) {
|
|
8570
8560
|
const summary = message.iterationSummary?.summary;
|
|
8571
8561
|
const [open, setOpen] = useState(false);
|
|
8572
|
-
if (_isSkillOnlyIteration(message)) return null;
|
|
8573
8562
|
if (isIterationLive(message)) {
|
|
8574
8563
|
const askCall = (message.toolCalls ?? []).find(
|
|
8575
8564
|
(tc) => tc.toolName === "ask_user_question" && tc.status === "running"
|
|
@@ -8685,7 +8674,8 @@ function SimpleAssistantGroup({
|
|
|
8685
8674
|
const tailIsTextOnly = !!tail && !tailHasTools;
|
|
8686
8675
|
const finalText = tailIsTextOnly && tail.content ? tail.content : "";
|
|
8687
8676
|
const isTailGroup = lastGlobalIndex === totalMessages - 1;
|
|
8688
|
-
const
|
|
8677
|
+
const tailRendersOwnShimmer = !!tail && isIterationLive(tail) && !tailIsTextOnly;
|
|
8678
|
+
const showThinkingShim = isTailGroup && isRunning && !tailRendersOwnShimmer;
|
|
8689
8679
|
const showErrorInfo = !!tail && tail.status === "error" && !!tail.errorInfo;
|
|
8690
8680
|
const turnComplete = !isRunning && tail?.status === "complete";
|
|
8691
8681
|
const effectiveTurnSummary = (() => {
|