@tangle-network/agent-app 0.60.80 → 0.60.82

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chatToolCallPart
3
- } from "../chunk-OUW5AI2G.js";
3
+ } from "../chunk-A2TCZVW4.js";
4
4
  import "../chunk-2FLSODOX.js";
5
5
  import "../chunk-3HUFJ5LO.js";
6
6
  import "../chunk-KHCJKVQN.js";
@@ -42,7 +42,7 @@ import {
42
42
  flattenHistory,
43
43
  readSandboxBinaryBytes,
44
44
  statSandboxFileSize
45
- } from "../chunk-MBEJPQW6.js";
45
+ } from "../chunk-A5CZ2X6C.js";
46
46
  import "../chunk-4LBCTFBP.js";
47
47
  import "../chunk-MCYJON3F.js";
48
48
  import "../chunk-LWSJK546.js";
@@ -1525,7 +1525,7 @@ function requestWorkspacePrewarm(url, options = {}) {
1525
1525
  method: "POST",
1526
1526
  credentials: "same-origin",
1527
1527
  headers: { "content-type": "application/json" },
1528
- body: "{}"
1528
+ body: JSON.stringify({ reason: options.reason ?? "page-open" })
1529
1529
  }).then((response) => response.body?.cancel()).catch(() => void 0).finally(() => inFlight.delete(url));
1530
1530
  return true;
1531
1531
  }
@@ -1542,7 +1542,7 @@ function useWorkspacePrewarm(options) {
1542
1542
  return () => document.removeEventListener("visibilitychange", fire);
1543
1543
  }, [active, url, minIntervalMs]);
1544
1544
  const reassert = useCallback2(() => {
1545
- if (active && url) requestWorkspacePrewarm(url, { minIntervalMs });
1545
+ if (active && url) requestWorkspacePrewarm(url, { minIntervalMs, reason: "composer-focus" });
1546
1546
  }, [active, url, minIntervalMs]);
1547
1547
  return { reassert };
1548
1548
  }
@@ -8971,4 +8971,4 @@ export {
8971
8971
  useThinkingSeconds,
8972
8972
  ChatMessages
8973
8973
  };
8974
- //# sourceMappingURL=chunk-OUW5AI2G.js.map
8974
+ //# sourceMappingURL=chunk-A2TCZVW4.js.map