@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.
- package/dist/assistant/index.js +1 -1
- package/dist/chat-routes/index.js +5 -1
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-routes.d.ts +2 -0
- package/dist/{chunk-N5M7YT6P.js → chunk-PYPWEXTD.js} +11 -2
- package/dist/{chunk-N5M7YT6P.js.map → chunk-PYPWEXTD.js.map} +1 -1
- package/dist/{chunk-T4JJXUJI.js → chunk-UMWASXC2.js} +3 -7
- package/dist/{chunk-T4JJXUJI.js.map → chunk-UMWASXC2.js.map} +1 -1
- package/dist/operator/chat-adapter.d.ts +34 -0
- package/dist/operator/index.js +48 -11
- package/dist/operator/index.js.map +1 -1
- package/dist/public-consultation/index.js +1 -1
- package/dist/web-react/agent-setup-block.d.ts +3 -1
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
package/dist/assistant/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
rowIdOf,
|
|
73
73
|
storeSupportsDraftPersistence,
|
|
74
74
|
streamChatRouteAsSandboxEvents
|
|
75
|
-
} from "../chunk-
|
|
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
|