@tangle-network/agent-app 0.46.30 → 0.46.32
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/chat-routes/gateway-adapter.d.ts +17 -0
- package/dist/chat-routes/index.d.ts +1 -0
- package/dist/chat-routes/index.js +189 -2
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/turn-routes.d.ts +5 -0
- package/dist/{chunk-57J36H7C.js → chunk-64EVYEGI.js} +2 -1
- package/dist/{chunk-57J36H7C.js.map → chunk-64EVYEGI.js.map} +1 -1
- package/dist/sandbox/diagnostics.d.ts +3 -5
- package/dist/sandbox/index.js +1 -1
- package/package.json +1 -1
|
@@ -521,6 +521,11 @@ export interface ChatTurnRoutes {
|
|
|
521
521
|
* running (and buffering) after a client disconnect. */
|
|
522
522
|
turn(request: Request, ctx?: {
|
|
523
523
|
waitUntil?(p: Promise<unknown>): void;
|
|
524
|
+
/**
|
|
525
|
+
* Abort this turn when the caller disconnects. Gateway adapters set this
|
|
526
|
+
* explicitly; browser callers omit it so the durable drain continues.
|
|
527
|
+
*/
|
|
528
|
+
cancelOnDisconnect?: boolean;
|
|
524
529
|
}): Promise<Response>;
|
|
525
530
|
/** GET — replay a buffered turn from `?fromSeq=` (0 = everything), then
|
|
526
531
|
* follow it live until it completes. */
|
|
@@ -545,6 +545,7 @@ function isSandboxHostCapacityFailure(diagnostics) {
|
|
|
545
545
|
function isSandboxBoxConfigFailure(diagnostics) {
|
|
546
546
|
return diagnostics.causes.some((cause) => {
|
|
547
547
|
if (cause.origin !== "sandbox-api") return false;
|
|
548
|
+
if (cause.code === "SANDBOX_ATTRIBUTION_MISMATCH") return true;
|
|
548
549
|
if (typeof cause.message !== "string") return false;
|
|
549
550
|
return /has no recorded egress policy|cannot rebuild the proxy config/i.test(cause.message);
|
|
550
551
|
});
|
|
@@ -2480,4 +2481,4 @@ export {
|
|
|
2480
2481
|
isTerminalPromptEvent,
|
|
2481
2482
|
detectInteractiveQuestion
|
|
2482
2483
|
};
|
|
2483
|
-
//# sourceMappingURL=chunk-
|
|
2484
|
+
//# sourceMappingURL=chunk-64EVYEGI.js.map
|