@tangle-network/agent-app 0.63.34 → 0.63.36

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.
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  OPENUI_NODE_JSON_SCHEMA,
6
6
  OPENUI_NODE_TYPES
7
- } from "./chunk-TUJ4277Q.js";
7
+ } from "./chunk-5I5ZB2EZ.js";
8
8
 
9
9
  // src/tools/openai.ts
10
10
  var APP_TOOL_NAMES = ["submit_proposal", "schedule_followup", "render_ui", "add_citation"];
@@ -117,4 +117,4 @@ export {
117
117
  customToolToOpenAI,
118
118
  findCustomTool
119
119
  };
120
- //# sourceMappingURL=chunk-VOIVDEAV.js.map
120
+ //# sourceMappingURL=chunk-7TBF3DC2.js.map
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-6A7MYOUI.js";
5
5
  import {
6
6
  parseRenderUiSchema
7
- } from "./chunk-Q7RSHLEV.js";
7
+ } from "./chunk-RDIHNSVZ.js";
8
8
  import {
9
9
  buildAppToolOpenAITools,
10
10
  findCustomTool,
11
11
  isAppToolName
12
- } from "./chunk-VOIVDEAV.js";
12
+ } from "./chunk-7TBF3DC2.js";
13
13
  import {
14
14
  ToolInputError
15
15
  } from "./chunk-F4XBNR5L.js";
@@ -212,4 +212,4 @@ export {
212
212
  createAppToolRuntimeExecutor,
213
213
  handleAppToolRequest
214
214
  };
215
- //# sourceMappingURL=chunk-WSQSKYXP.js.map
215
+ //# sourceMappingURL=chunk-J5GT37ZX.js.map
@@ -465,10 +465,15 @@ function createHybridTurnProducer(options) {
465
465
  signal: stop,
466
466
  ...box.warm ? { warm: box.warm } : {},
467
467
  onFailure: (error, call) => {
468
- const detail = sandboxRunFailureDetail(error);
469
- if (call.callId) details.set(call.callId, detail);
468
+ const detail = box.failureDetail ? box.failureDetail(error) : sandboxRunFailureDetail(error);
469
+ if (call.callId && detail) details.set(call.callId, detail);
470
470
  if (box.onFailure) box.onFailure(error, call);
471
- else console.error(JSON.stringify({ event: "agent_app_sandbox_run_failed", callId: call.callId ?? null, code: error.code, detail }));
471
+ else console.error(JSON.stringify({
472
+ event: "agent_app_sandbox_run_failed",
473
+ callId: call.callId ?? null,
474
+ code: error.code,
475
+ detail: sandboxRunFailureDetail(error)
476
+ }));
472
477
  },
473
478
  ...box.name ? { name: box.name } : {},
474
479
  ...box.description ? { description: box.description } : {}
@@ -3943,4 +3948,4 @@ export {
3943
3948
  createChatTurnRoutes,
3944
3949
  streamChatRouteAsSandboxEvents
3945
3950
  };
3946
- //# sourceMappingURL=chunk-4CEIZZTH.js.map
3951
+ //# sourceMappingURL=chunk-KYBE4UYT.js.map