@tangle-network/agent-app 0.60.52 → 0.60.54

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.
@@ -65,8 +65,8 @@ import {
65
65
  rowIdOf,
66
66
  storeSupportsDraftPersistence,
67
67
  streamChatRouteAsSandboxEvents
68
- } from "../chunk-IA6MIBKG.js";
69
- import "../chunk-UKZMJND6.js";
68
+ } from "../chunk-JSDTYUKF.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-X4OMULP5.js";
78
+ } from "../chunk-JGZ7WEPL.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 };