@tangle-network/agent-app 0.60.159 → 0.60.161

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ReasoningRow,
3
3
  chatToolCallPart
4
- } from "../chunk-T4JJXUJI.js";
4
+ } from "../chunk-UMWASXC2.js";
5
5
  import "../chunk-MOFLIBQW.js";
6
6
  import "../chunk-3HUFJ5LO.js";
7
7
  import "../chunk-FBVLEGEG.js";
@@ -72,7 +72,7 @@ import {
72
72
  rowIdOf,
73
73
  storeSupportsDraftPersistence,
74
74
  streamChatRouteAsSandboxEvents
75
- } from "../chunk-N5M7YT6P.js";
75
+ } from "../chunk-PYPWEXTD.js";
76
76
  import "../chunk-UTAIRVOK.js";
77
77
  import "../chunk-RN4WPTBH.js";
78
78
  import "../chunk-Q7WEEN7P.js";
@@ -807,6 +807,7 @@ function createSandboxChatProducer(options) {
807
807
  });
808
808
  };
809
809
  let fullText = "";
810
+ let terminalObserved = false;
810
811
  const partOrder = [];
811
812
  const partMap = /* @__PURE__ */ new Map();
812
813
  const tracker = { seen: /* @__PURE__ */ new Map() };
@@ -1074,6 +1075,7 @@ function createSandboxChatProducer(options) {
1074
1075
  continue;
1075
1076
  }
1076
1077
  if (event.type === "result") {
1078
+ terminalObserved = true;
1077
1079
  const finalText = asString(event.data?.finalText);
1078
1080
  if (finalText) fullText = finalText;
1079
1081
  const reported = extractReportedTurnUsage(asRecord(event.data));
@@ -1093,6 +1095,7 @@ function createSandboxChatProducer(options) {
1093
1095
  continue;
1094
1096
  }
1095
1097
  if (event.type === "done") {
1098
+ terminalObserved = true;
1096
1099
  const reported = extractReportedTurnUsage(asRecord(event.data));
1097
1100
  if (reported) {
1098
1101
  applyTerminalUsage(reported, usage);
@@ -1169,6 +1172,7 @@ ${diagnostic.userMessage}` : diagnostic.userMessage;
1169
1172
  return {
1170
1173
  stream: stream(),
1171
1174
  finalText: () => fullText,
1175
+ terminalObserved: () => terminalObserved,
1172
1176
  assistantParts: () => finalizePendingInteractionParts(
1173
1177
  finalizeAssistantParts(partOrder, timedParts(), fullText),
1174
1178
  interactionOutcome