@tangle-network/agent-app 0.63.10 → 0.63.11

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.
@@ -3479,7 +3479,8 @@ async function* streamSandboxPrompt(shell, box, message, options) {
3479
3479
  backend = await resolveSandboxPromptBackend(shell, options ?? {}, "streamSandboxPrompt");
3480
3480
  options?.signal?.throwIfAborted();
3481
3481
  } catch (error) {
3482
- throw new SandboxRunError("sandbox_unavailable", "The sandbox prompt was not dispatched because its configuration or admission was refused.", { cause: error });
3482
+ if (error instanceof SandboxModelResolutionError) throw error;
3483
+ throw new SandboxRunError("sandbox_unavailable", error instanceof Error ? error.message : "The sandbox prompt was not dispatched because its configuration or admission was refused.", { cause: error });
3483
3484
  }
3484
3485
  const prompt = typeof message === "string" ? flattenHistory(message, options?.history) : mergeHistoryIntoParts(message, options?.history);
3485
3486
  const dispatch = () => options?.detach ? detachedSandboxPromptEvents(box, prompt, options, backend) : box.streamPrompt(prompt, {
@@ -3793,4 +3794,4 @@ export {
3793
3794
  sandboxPromptRunner,
3794
3795
  createSandboxRunTool
3795
3796
  };
3796
- //# sourceMappingURL=chunk-UVMKP5IK.js.map
3797
+ //# sourceMappingURL=chunk-U2OZPHGW.js.map