@blade-hq/agent-kit 1.0.31 → 1.0.32
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/{chunk-XUWAM6MF.js → chunk-E7FQV4IX.js} +3 -3
- package/dist/{chunk-ZPZMN7KQ.js → chunk-EGGBOVVF.js} +2 -2
- package/dist/{chunk-3EVO45IN.js → chunk-F4Y7SUBC.js} +2 -2
- package/dist/{chunk-DSC6KQOI.js → chunk-FK4CV6R2.js} +5 -2
- package/dist/chunk-FK4CV6R2.js.map +1 -0
- package/dist/{chunk-3PX2W7II.js → chunk-IDVNG3YJ.js} +15 -2
- package/dist/chunk-IDVNG3YJ.js.map +1 -0
- package/dist/{chunk-RAWQ7LWR.js → chunk-IGMLETZX.js} +33 -6
- package/dist/chunk-IGMLETZX.js.map +1 -0
- package/dist/{chunk-O32JOWYM.js → chunk-OICNN4K4.js} +2 -2
- package/dist/client/index.js +1 -1
- package/dist/client/types/rest.d.ts +65 -136
- package/dist/react/api/published-apps.js +3 -3
- package/dist/react/api/sessions.js +2 -2
- package/dist/react/components/chat/MessageList.d.ts +1 -0
- package/dist/react/components/chat/ResourceIframe.d.ts +1 -1
- package/dist/react/components/chat/index.js +5 -5
- package/dist/react/components/plan/index.js +4 -4
- package/dist/react/components/session/index.js +3 -3
- package/dist/react/components/workspace/index.js +3 -3
- package/dist/react/index.js +7 -7
- package/dist/react/lib/ui-meta.d.ts +1 -0
- package/package.json +1 -1
- package/dist/chunk-3PX2W7II.js.map +0 -1
- package/dist/chunk-DSC6KQOI.js.map +0 -1
- package/dist/chunk-RAWQ7LWR.js.map +0 -1
- /package/dist/{chunk-XUWAM6MF.js.map → chunk-E7FQV4IX.js.map} +0 -0
- /package/dist/{chunk-ZPZMN7KQ.js.map → chunk-EGGBOVVF.js.map} +0 -0
- /package/dist/{chunk-3EVO45IN.js.map → chunk-F4Y7SUBC.js.map} +0 -0
- /package/dist/{chunk-O32JOWYM.js.map → chunk-OICNN4K4.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
BladeClient,
|
|
6
6
|
ClientProjectionBuilder
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FK4CV6R2.js";
|
|
8
8
|
import {
|
|
9
9
|
createClientActions,
|
|
10
10
|
useCardStateStore
|
|
@@ -593,6 +593,18 @@ function buildToolPreviewKey(content, type2, toolCallId) {
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
// src/react/lib/ui-meta.ts
|
|
596
|
+
var LOOPBACK_HOSTS = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]"]);
|
|
597
|
+
function resolveBrowserResourceUri(value, browserHostname = typeof window === "undefined" ? "" : window.location.hostname) {
|
|
598
|
+
if (!browserHostname) return value;
|
|
599
|
+
try {
|
|
600
|
+
const url = new URL(value);
|
|
601
|
+
if (!LOOPBACK_HOSTS.has(url.hostname)) return value;
|
|
602
|
+
url.hostname = browserHostname;
|
|
603
|
+
return url.toString();
|
|
604
|
+
} catch {
|
|
605
|
+
return value;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
596
608
|
function isNonEmptyString(value) {
|
|
597
609
|
return typeof value === "string" && value.trim().length > 0;
|
|
598
610
|
}
|
|
@@ -3500,6 +3512,7 @@ export {
|
|
|
3500
3512
|
setAnalyticsClient,
|
|
3501
3513
|
trackEvent,
|
|
3502
3514
|
buildToolPreviewKey,
|
|
3515
|
+
resolveBrowserResourceUri,
|
|
3503
3516
|
isUiMeta,
|
|
3504
3517
|
auth_exports,
|
|
3505
3518
|
agentSocket,
|
|
@@ -3571,4 +3584,4 @@ export {
|
|
|
3571
3584
|
bootstrapBladeClient,
|
|
3572
3585
|
getBootstrappedClient
|
|
3573
3586
|
};
|
|
3574
|
-
//# sourceMappingURL=chunk-
|
|
3587
|
+
//# sourceMappingURL=chunk-IDVNG3YJ.js.map
|