@blade-hq/agent-react 2610.0.0-beta.80 → 2610.0.0-beta.81
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/embed/entry.d.ts +1 -0
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/public-api.md +13 -2
package/dist/embed/entry.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare const BladeAgent: {
|
|
|
26
26
|
SDK_NAME: "agent-client";
|
|
27
27
|
SDK_VERSION: string;
|
|
28
28
|
AgentSession: typeof AgentSession;
|
|
29
|
+
AgentSessionError: typeof agentClient.AgentSessionError;
|
|
29
30
|
SessionHub: typeof agentClient.SessionHub;
|
|
30
31
|
isMcpAppData: typeof agentClient.isMcpAppData;
|
|
31
32
|
SessionSetupError: typeof agentClient.SessionSetupError;
|
package/dist/index.js
CHANGED
|
@@ -56742,11 +56742,8 @@ function executionSummaryLabel({
|
|
|
56742
56742
|
}
|
|
56743
56743
|
const completedLabel = durationMs > 0 ? `\u6267\u884C\u5B8C\u6210 ${formatExecutionDuration(durationMs)}` : "\u6267\u884C\u5B8C\u6210";
|
|
56744
56744
|
const lastExceptionalEvent = findLastExceptionalEvent(messages);
|
|
56745
|
-
if (lastExceptionalEvent) {
|
|
56745
|
+
if (lastExceptionalEvent?.status === "cancelled") {
|
|
56746
56746
|
const recovered = messages.slice(lastExceptionalEvent.messageIndex + 1).some(hasRenderableMessageContent);
|
|
56747
|
-
if (lastExceptionalEvent.status === "error") {
|
|
56748
|
-
return recovered ? `${completedLabel} \xB7 \u90E8\u5206\u6B65\u9AA4\u5931\u8D25` : "\u6267\u884C\u5931\u8D25";
|
|
56749
|
-
}
|
|
56750
56747
|
return recovered ? `${completedLabel} \xB7 \u90E8\u5206\u6B65\u9AA4\u672A\u5B8C\u6210` : "\u6267\u884C\u5DF2\u4E2D\u65AD";
|
|
56751
56748
|
}
|
|
56752
56749
|
return completedLabel;
|