@tangle-network/agent-app 0.60.80 → 0.60.81
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.
- package/dist/assistant/index.js +1 -1
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-OUW5AI2G.js → chunk-A2TCZVW4.js} +3 -3
- package/dist/chunk-A2TCZVW4.js.map +1 -0
- package/dist/{chunk-MBEJPQW6.js → chunk-A5CZ2X6C.js} +18 -9
- package/dist/{chunk-MBEJPQW6.js.map → chunk-A5CZ2X6C.js.map} +1 -1
- package/dist/sandbox/index.js +1 -1
- package/dist/sandbox/prewarm-route.d.ts +19 -6
- package/dist/web-react/index.js +1 -1
- package/dist/web-react/workspace-prewarm.d.ts +2 -0
- package/dist/workspace-export/react.js +4 -3
- package/dist/workspace-export/react.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-OUW5AI2G.js.map +0 -1
package/dist/assistant/index.js
CHANGED
|
@@ -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-
|
|
8974
|
+
//# sourceMappingURL=chunk-A2TCZVW4.js.map
|