@tangle-network/agent-app 3.0.5 → 3.0.6

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.
@@ -82,13 +82,13 @@ import {
82
82
  turnCarriesFiles,
83
83
  turnPromptText,
84
84
  withProducerStream
85
- } from "../chunk-7YFJ7YCM.js";
85
+ } from "../chunk-VGGSCEI6.js";
86
86
  import "../chunk-SBHFMDR7.js";
87
87
  import "../chunk-H6BRJU5M.js";
88
88
  import "../chunk-4DBHC63F.js";
89
89
  import "../chunk-RN4WPTBH.js";
90
90
  import "../chunk-MM6RLOXF.js";
91
- import "../chunk-FWLVAWKR.js";
91
+ import "../chunk-FDPQ67MN.js";
92
92
  import "../chunk-F4TUZYMX.js";
93
93
  import {
94
94
  redactErrorMessage
@@ -822,6 +822,8 @@ async function* detachedSandboxPromptEvents(box, prompt, options, backend) {
822
822
  executionId,
823
823
  turnId,
824
824
  backend,
825
+ keepEvents: true,
826
+ ...options.signal ? { signal: options.signal } : {},
825
827
  ...options.expectedPublicProfileRequestDigest ? { expectedPublicProfileRequestDigest: options.expectedPublicProfileRequestDigest } : {},
826
828
  ...options.expectedSecretProfileReceipt ? { expectedSecretProfileReceipt: options.expectedSecretProfileReceipt } : {},
827
829
  ...options.requireVisibleAssistantOutput !== void 0 ? { requireVisibleAssistantOutput: options.requireVisibleAssistantOutput } : {},
@@ -842,9 +844,10 @@ async function* detachedSandboxPromptEvents(box, prompt, options, backend) {
842
844
  }
843
845
  }
844
846
  if (admission && (admission.sessionId !== sessionId || admission.executionId !== executionId)) {
847
+ for await (const _ of admission.events ?? []) break;
845
848
  throw new Error("sandbox.detached_admission_identity_mismatch");
846
849
  }
847
- yield* box.streamPrompt("", {
850
+ yield* admission?.events ?? box.streamPrompt("", {
848
851
  sessionId,
849
852
  executionId,
850
853
  lastEventId: lastEventId || "0",
@@ -4326,4 +4329,4 @@ export {
4326
4329
  deleteSecret,
4327
4330
  mintSandboxScopedToken
4328
4331
  };
4329
- //# sourceMappingURL=chunk-FWLVAWKR.js.map
4332
+ //# sourceMappingURL=chunk-FDPQ67MN.js.map