@tangle-network/agent-app 0.60.51 → 0.60.53
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/index.js +5 -5
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/sandbox-producer.d.ts +7 -2
- package/dist/{chunk-VLAZ2RZX.js → chunk-P2CGXXOJ.js} +3 -3
- package/dist/{chunk-UKZMJND6.js → chunk-Q7WEEN7P.js} +11 -6
- package/dist/chunk-Q7WEEN7P.js.map +1 -0
- package/dist/{chunk-OEHEHPPA.js → chunk-X4OMULP5.js} +54 -9
- package/dist/chunk-X4OMULP5.js.map +1 -0
- package/dist/interactions/index.js +1 -1
- package/dist/public-consultation/index.js +3 -3
- package/dist/stream/index.js +3 -1
- package/dist/stream/turn-buffer.d.ts +22 -18
- package/dist/turn-stream/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OEHEHPPA.js.map +0 -1
- package/dist/chunk-UKZMJND6.js.map +0 -1
- /package/dist/{chunk-VLAZ2RZX.js.map → chunk-P2CGXXOJ.js.map} +0 -0
|
@@ -65,8 +65,8 @@ import {
|
|
|
65
65
|
rowIdOf,
|
|
66
66
|
storeSupportsDraftPersistence,
|
|
67
67
|
streamChatRouteAsSandboxEvents
|
|
68
|
-
} from "../chunk-
|
|
69
|
-
import "../chunk-
|
|
68
|
+
} from "../chunk-P2CGXXOJ.js";
|
|
69
|
+
import "../chunk-Q7WEEN7P.js";
|
|
70
70
|
import "../chunk-UTAIRVOK.js";
|
|
71
71
|
import "../chunk-RN4WPTBH.js";
|
|
72
72
|
import "../chunk-3NCPXNBZ.js";
|
|
@@ -75,7 +75,7 @@ import "../chunk-YG66IHDU.js";
|
|
|
75
75
|
import {
|
|
76
76
|
coalesceDeltas,
|
|
77
77
|
createBufferedTurnTap
|
|
78
|
-
} from "../chunk-
|
|
78
|
+
} from "../chunk-X4OMULP5.js";
|
|
79
79
|
import {
|
|
80
80
|
attachmentInputToPart,
|
|
81
81
|
attachmentKindForMime,
|
|
@@ -950,7 +950,7 @@ function createSandboxChatProducer(options) {
|
|
|
950
950
|
log("[chat-routes] dropping malformed interaction event", { error: parsed.error });
|
|
951
951
|
continue;
|
|
952
952
|
}
|
|
953
|
-
if (renderable(parsed.value.kind)) {
|
|
953
|
+
if (renderable(parsed.value.kind, parsed.value)) {
|
|
954
954
|
recordPersistedPart(
|
|
955
955
|
interactionToPersistedPart(parsed.value, "pending"),
|
|
956
956
|
void 0,
|
|
@@ -977,7 +977,7 @@ function createSandboxChatProducer(options) {
|
|
|
977
977
|
kind: parsed.value.kind
|
|
978
978
|
});
|
|
979
979
|
}
|
|
980
|
-
const text = declineFailed ? `The agent requested ${parsed.value.kind} approval; declining it failed \u2014 it will expire on its own.` : `The agent requested ${parsed.value.kind} approval \u2014 auto-declined by policy
|
|
980
|
+
const text = options.declinedNotice?.(parsed.value, declineFailed) ?? (declineFailed ? `The agent requested ${parsed.value.kind} approval; declining it failed \u2014 it will expire on its own.` : `The agent requested ${parsed.value.kind} approval \u2014 auto-declined by policy.`);
|
|
981
981
|
const notice = noticePart("auto-declined", `auto-declined-${parsed.value.id}`, text);
|
|
982
982
|
recordPersistedPart(notice, void 0, noticePartKey(notice.id));
|
|
983
983
|
yield { type: "notice", id: notice.id, noticeKind: "auto-declined", text };
|