@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.cjs
CHANGED
|
@@ -8683,16 +8683,6 @@ var _SIMPLE_MODE_HIDDEN_TOOLS = /* @__PURE__ */ new Set([
|
|
|
8683
8683
|
"terminal",
|
|
8684
8684
|
"execute_code"
|
|
8685
8685
|
]);
|
|
8686
|
-
var _SKILL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
8687
|
-
"skills_list",
|
|
8688
|
-
"skill_view",
|
|
8689
|
-
"skill_manage"
|
|
8690
|
-
]);
|
|
8691
|
-
function _isSkillOnlyIteration(message) {
|
|
8692
|
-
const calls = message.toolCalls ?? [];
|
|
8693
|
-
if (calls.length === 0) return false;
|
|
8694
|
-
return calls.every((tc) => _SKILL_TOOL_NAMES.has(tc.toolName));
|
|
8695
|
-
}
|
|
8696
8686
|
function _isHiddenSimpleTool(tc) {
|
|
8697
8687
|
if (_SIMPLE_MODE_HIDDEN_TOOLS.has(tc.toolName)) return true;
|
|
8698
8688
|
if (tc.toolName.startsWith("browser_")) return true;
|
|
@@ -8867,7 +8857,6 @@ function IterationGroup({
|
|
|
8867
8857
|
}) {
|
|
8868
8858
|
const summary = message.iterationSummary?.summary;
|
|
8869
8859
|
const [open, setOpen] = react.useState(false);
|
|
8870
|
-
if (_isSkillOnlyIteration(message)) return null;
|
|
8871
8860
|
if (isIterationLive(message)) {
|
|
8872
8861
|
const askCall = (message.toolCalls ?? []).find(
|
|
8873
8862
|
(tc) => tc.toolName === "ask_user_question" && tc.status === "running"
|
|
@@ -8983,7 +8972,8 @@ function SimpleAssistantGroup({
|
|
|
8983
8972
|
const tailIsTextOnly = !!tail && !tailHasTools;
|
|
8984
8973
|
const finalText = tailIsTextOnly && tail.content ? tail.content : "";
|
|
8985
8974
|
const isTailGroup = lastGlobalIndex === totalMessages - 1;
|
|
8986
|
-
const
|
|
8975
|
+
const tailRendersOwnShimmer = !!tail && isIterationLive(tail) && !tailIsTextOnly;
|
|
8976
|
+
const showThinkingShim = isTailGroup && isRunning && !tailRendersOwnShimmer;
|
|
8987
8977
|
const showErrorInfo = !!tail && tail.status === "error" && !!tail.errorInfo;
|
|
8988
8978
|
const turnComplete = !isRunning && tail?.status === "complete";
|
|
8989
8979
|
const effectiveTurnSummary = (() => {
|