@tangle-network/agent-app 0.63.42 → 0.63.43

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.
@@ -79,7 +79,7 @@ import {
79
79
  turnCarriesFiles,
80
80
  turnPromptText,
81
81
  withProducerStream
82
- } from "../chunk-JUGXFBOS.js";
82
+ } from "../chunk-RZMQ2J5P.js";
83
83
  import "../chunk-CWO2LHXH.js";
84
84
  import {
85
85
  sniffMimeFromName
@@ -87,7 +87,7 @@ import {
87
87
  import "../chunk-4DBHC63F.js";
88
88
  import "../chunk-RN4WPTBH.js";
89
89
  import "../chunk-MM6RLOXF.js";
90
- import "../chunk-NMDKUCUJ.js";
90
+ import "../chunk-XTQLZG6M.js";
91
91
  import "../chunk-F4TUZYMX.js";
92
92
  import {
93
93
  redactErrorMessage
@@ -27,7 +27,7 @@ import {
27
27
  sandboxRunFailureDetail,
28
28
  streamSandboxPrompt,
29
29
  turnStorageBindings
30
- } from "./chunk-NMDKUCUJ.js";
30
+ } from "./chunk-XTQLZG6M.js";
31
31
  import {
32
32
  redactErrorMessage
33
33
  } from "./chunk-MH74DY2I.js";
@@ -3949,4 +3949,4 @@ export {
3949
3949
  createChatTurnRoutes,
3950
3950
  streamChatRouteAsSandboxEvents
3951
3951
  };
3952
- //# sourceMappingURL=chunk-JUGXFBOS.js.map
3952
+ //# sourceMappingURL=chunk-RZMQ2J5P.js.map
@@ -984,7 +984,11 @@ function detectInteractiveQuestion(event) {
984
984
  const props = asPlainRecord(root.properties);
985
985
  const body = props ?? data ?? root;
986
986
  if (type === "question.asked" || type === "question") return firstQuestionText(body);
987
- if (type === "interaction" && body.kind === "question") return firstQuestionText(body);
987
+ if (type === "interaction") {
988
+ const request = asPlainRecord(body.request) ?? body;
989
+ if (request.kind !== "question") return null;
990
+ return typeof request.title === "string" && request.title ? request.title : firstQuestionText(request);
991
+ }
988
992
  const part = asPlainRecord(data?.part) ?? asPlainRecord(body.part);
989
993
  const tool = typeof part?.tool === "string" && part.tool || typeof part?.name === "string" && part.name || typeof body.tool === "string" && body.tool || void 0;
990
994
  const isQ = type === "message.part.updated" && (tool === "question" || asPlainRecord(part)?.type === "question");
@@ -4306,4 +4310,4 @@ export {
4306
4310
  SandboxFilesystemNotReadyError,
4307
4311
  runForegroundSandboxSingleFlight
4308
4312
  };
4309
- //# sourceMappingURL=chunk-NMDKUCUJ.js.map
4313
+ //# sourceMappingURL=chunk-XTQLZG6M.js.map