@tangle-network/agent-app 3.0.13 → 3.0.15

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.
@@ -3,20 +3,20 @@ import {
3
3
  ResizeHandle,
4
4
  chatToolCallPart,
5
5
  resolveToolPresentation
6
- } from "../chunk-ETZZOJXI.js";
6
+ } from "../chunk-EYPYU4PZ.js";
7
7
  import "../chunk-UHSUY6H6.js";
8
8
  import "../chunk-3HUFJ5LO.js";
9
9
  import "../chunk-7PULOECS.js";
10
10
  import "../chunk-E4AY62T2.js";
11
11
  import "../chunk-ELPNBEXJ.js";
12
- import "../chunk-KEXURZHL.js";
12
+ import "../chunk-FFY4JDFQ.js";
13
13
  import "../chunk-Y6PRDUFJ.js";
14
14
  import "../chunk-GEYACSFW.js";
15
15
  import {
16
16
  ChatComposer
17
- } from "../chunk-EZUCJSL2.js";
17
+ } from "../chunk-SLE4YM62.js";
18
18
  import "../chunk-L7MB2LLM.js";
19
- import "../chunk-I2WPKS6O.js";
19
+ import "../chunk-PMLSY4KI.js";
20
20
  import "../chunk-WYULRKMG.js";
21
21
  import "../chunk-2HQP2CTA.js";
22
22
  import "../chunk-XR2YIVYZ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ComposerModeControls,
3
3
  EntryComposer
4
- } from "../chunk-EZUCJSL2.js";
4
+ } from "../chunk-SLE4YM62.js";
5
5
  import "../chunk-L7MB2LLM.js";
6
- import "../chunk-I2WPKS6O.js";
6
+ import "../chunk-PMLSY4KI.js";
7
7
  import "../chunk-2HQP2CTA.js";
8
8
  import "../chunk-XR2YIVYZ.js";
9
9
  import "../chunk-BDWSUKUN.js";
@@ -333,8 +333,8 @@ function defaultReconnectDelayMs(attempt, rand = Math.random) {
333
333
  async function streamChatTurn(opts) {
334
334
  const res = await settleTurnResponse(await opts.start(), (phase) => opts.callbacks.onPhase?.(phase));
335
335
  if (!res.ok || !res.body) {
336
- const err = await res.json().catch(() => ({ error: `HTTP ${res.status}` }));
337
- throw new Error(err.error ?? `HTTP ${res.status}`);
336
+ const { error: e } = await res.json().catch(() => ({}));
337
+ throw Object.assign(new Error((typeof e === "string" ? e : e?.message) ?? `HTTP ${res.status}`), { code: typeof e === "object" ? e?.code : void 0 });
338
338
  }
339
339
  let turnId = res.headers.get("x-turn-id")?.trim() || null;
340
340
  const withTurnId = {
@@ -8832,4 +8832,4 @@ export {
8832
8832
  AgentProfileChoices,
8833
8833
  ComposerProfilePill
8834
8834
  };
8835
- //# sourceMappingURL=chunk-ETZZOJXI.js.map
8835
+ //# sourceMappingURL=chunk-EYPYU4PZ.js.map