@blade-hq/agent-client 2610.0.0-beta.13 → 2610.0.0-beta.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.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/platform-endpoints.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.md +1 -1
package/dist/index.js
CHANGED
|
@@ -4499,7 +4499,7 @@ function resolveAuthToken(options) {
|
|
|
4499
4499
|
|
|
4500
4500
|
// src/version.ts
|
|
4501
4501
|
var SDK_NAME = "agent-client";
|
|
4502
|
-
var SDK_VERSION = true ? "2610.0.0-beta.
|
|
4502
|
+
var SDK_VERSION = true ? "2610.0.0-beta.15" : "1.1.1";
|
|
4503
4503
|
|
|
4504
4504
|
// src/socket.ts
|
|
4505
4505
|
function withSdkIdentity(auth) {
|
|
@@ -4693,7 +4693,7 @@ var BladeClient = class {
|
|
|
4693
4693
|
const response = await (this.options.fetchImpl ?? fetch)(url.toString(), {
|
|
4694
4694
|
method,
|
|
4695
4695
|
body: init.body,
|
|
4696
|
-
credentials: init.credentials ?? "
|
|
4696
|
+
credentials: init.credentials ?? "same-origin",
|
|
4697
4697
|
headers: this.buildHeaders(url, init.headers),
|
|
4698
4698
|
signal: init.signal
|
|
4699
4699
|
});
|
|
@@ -4899,7 +4899,8 @@ var PLATFORM_SERVICE_NAMES = [
|
|
|
4899
4899
|
"agent",
|
|
4900
4900
|
"oauth",
|
|
4901
4901
|
"llmGateway",
|
|
4902
|
-
"gitea"
|
|
4902
|
+
"gitea",
|
|
4903
|
+
"tile"
|
|
4903
4904
|
];
|
|
4904
4905
|
var EMPTY_PLATFORM_ENDPOINTS = Object.freeze({
|
|
4905
4906
|
services: Object.freeze({})
|
|
@@ -4932,6 +4933,7 @@ function parsePlatformEndpoints(value) {
|
|
|
4932
4933
|
if (!(name in value.services)) continue;
|
|
4933
4934
|
const url = normalizeServiceUrl(value.services[name]);
|
|
4934
4935
|
if (!url) return null;
|
|
4936
|
+
if (name === "agent" && new URL(url).pathname !== "/") return null;
|
|
4935
4937
|
services[name] = url;
|
|
4936
4938
|
}
|
|
4937
4939
|
return { services };
|