@tangle-network/agent-app 0.46.49 → 0.46.51
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 +8 -3
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-routes.d.ts +13 -3
- package/dist/{chunk-SDEADFHZ.js → chunk-B5KMUXRM.js} +76 -1
- package/dist/chunk-B5KMUXRM.js.map +1 -0
- package/dist/{chunk-NGYEVU6R.js → chunk-NOME5ZPG.js} +2 -2
- package/dist/chunk-NOME5ZPG.js.map +1 -0
- package/dist/{chunk-FS6YF4ZV.js → chunk-TCNH6XDK.js} +32 -1
- package/dist/chunk-TCNH6XDK.js.map +1 -0
- package/dist/preset-cloudflare/detached-turn-workflow.d.ts +28 -0
- package/dist/preset-cloudflare/index.d.ts +1 -1
- package/dist/preset-cloudflare/index.js +37 -1
- package/dist/preset-cloudflare/index.js.map +1 -1
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/index.js +3 -1
- package/dist/sandbox/session-turn.d.ts +41 -0
- package/dist/stream/index.js +3 -1
- package/dist/stream/turn-buffer.d.ts +23 -8
- package/dist/turn-stream/index.js +1 -1
- package/dist/web-react/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FS6YF4ZV.js.map +0 -1
- package/dist/chunk-NGYEVU6R.js.map +0 -1
- package/dist/chunk-SDEADFHZ.js.map +0 -1
package/dist/assistant/index.js
CHANGED
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
createBufferedTurnTap,
|
|
101
101
|
replayTurnEvents,
|
|
102
102
|
stampReplaySeq
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-B5KMUXRM.js";
|
|
104
104
|
import {
|
|
105
105
|
ModelFailoverExhaustedError,
|
|
106
106
|
buildModelChain,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
flattenHistory,
|
|
113
113
|
readSandboxBinaryBytes,
|
|
114
114
|
statSandboxFileSize
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-TCNH6XDK.js";
|
|
116
116
|
import "../chunk-MCYJON3F.js";
|
|
117
117
|
import "../chunk-LWSJK546.js";
|
|
118
118
|
import "../chunk-P5PIAQVS.js";
|
|
@@ -561,6 +561,10 @@ function createChatTurnRoutes(options) {
|
|
|
561
561
|
produceArgs = { ...produceArgs, userMessageId };
|
|
562
562
|
if (options.contextGate) {
|
|
563
563
|
const gate = await options.contextGate(produceArgs);
|
|
564
|
+
if (gate.proceed === "handoff") {
|
|
565
|
+
await releaseLock();
|
|
566
|
+
return gate.response;
|
|
567
|
+
}
|
|
564
568
|
if (!gate.proceed) {
|
|
565
569
|
await releaseLock();
|
|
566
570
|
gatedTurn = true;
|
|
@@ -792,7 +796,8 @@ function createChatTurnRoutes(options) {
|
|
|
792
796
|
return new Response(body, {
|
|
793
797
|
headers: {
|
|
794
798
|
"Content-Type": result.contentType,
|
|
795
|
-
"Cache-Control": "no-cache"
|
|
799
|
+
"Cache-Control": "no-cache",
|
|
800
|
+
"X-Turn-Id": turnStreamId
|
|
796
801
|
}
|
|
797
802
|
});
|
|
798
803
|
} catch (err) {
|