bruce-models 6.9.4 → 6.9.5
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/bruce-models.es5.js +16 -11
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +16 -11
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/mcp/navigator-chat.js +3 -0
- package/dist/lib/mcp/navigator-chat.js.map +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +12 -10
- package/dist/lib/mcp/navigator-mcp-websocket.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/mcp/navigator-chat.d.ts +1 -0
- package/dist/types/mcp/navigator-mcp-websocket.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -16740,6 +16740,9 @@ class NavigatorChatClient {
|
|
|
16740
16740
|
if (auth === null || auth === void 0 ? void 0 : auth.fingerprint) {
|
|
16741
16741
|
headers["X-Fingerprint"] = auth.fingerprint;
|
|
16742
16742
|
}
|
|
16743
|
+
if (auth === null || auth === void 0 ? void 0 : auth.apiBaseUrl) {
|
|
16744
|
+
headers["X-Api-Base-Url"] = auth.apiBaseUrl;
|
|
16745
|
+
}
|
|
16743
16746
|
const response = yield fetchImpl(this.buildUrl(path), Object.assign(Object.assign({}, init), { headers }));
|
|
16744
16747
|
if (!response.ok) {
|
|
16745
16748
|
const message = yield this.safeReadResponseText(response);
|
|
@@ -16802,7 +16805,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16802
16805
|
}
|
|
16803
16806
|
}
|
|
16804
16807
|
connect(auth) {
|
|
16805
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
16808
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
16806
16809
|
if (auth) {
|
|
16807
16810
|
this.currentAuth = auth;
|
|
16808
16811
|
}
|
|
@@ -16810,14 +16813,10 @@ class NavigatorMcpWebSocketClient {
|
|
|
16810
16813
|
(_c = (_b = this.logger()).debug) === null || _c === void 0 ? void 0 : _c.call(_b, "[NavigatorMcpWS] Connection already active or in-flight; skipping connect.");
|
|
16811
16814
|
return;
|
|
16812
16815
|
}
|
|
16813
|
-
if (!((_d = this.currentAuth) === null || _d === void 0 ? void 0 : _d.accountId)) {
|
|
16814
|
-
(_f = (_e = this.logger()).debug) === null || _f === void 0 ? void 0 : _f.call(_e, "[NavigatorMcpWS] Missing accountId; connection not started.");
|
|
16815
|
-
return;
|
|
16816
|
-
}
|
|
16817
16816
|
try {
|
|
16818
16817
|
this.isConnecting = true;
|
|
16819
16818
|
const url = this.buildUrl();
|
|
16820
|
-
(
|
|
16819
|
+
(_e = (_d = this.logger()).log) === null || _e === void 0 ? void 0 : _e.call(_d, "[NavigatorMcpWS] Connecting to", url);
|
|
16821
16820
|
this.ws = new WebSocket(url);
|
|
16822
16821
|
this.ws.onopen = (event) => {
|
|
16823
16822
|
var _a, _b, _c, _d;
|
|
@@ -16844,7 +16843,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16844
16843
|
};
|
|
16845
16844
|
}
|
|
16846
16845
|
catch (error) {
|
|
16847
|
-
(
|
|
16846
|
+
(_g = (_f = this.logger()).error) === null || _g === void 0 ? void 0 : _g.call(_f, "[NavigatorMcpWS] Failed to establish connection", error);
|
|
16848
16847
|
this.isConnecting = false;
|
|
16849
16848
|
}
|
|
16850
16849
|
}
|
|
@@ -16878,12 +16877,14 @@ class NavigatorMcpWebSocketClient {
|
|
|
16878
16877
|
return this.appendAuthParams(url);
|
|
16879
16878
|
}
|
|
16880
16879
|
appendAuthParams(url) {
|
|
16881
|
-
|
|
16882
|
-
if (!((_a = this.currentAuth) === null || _a === void 0 ? void 0 : _a.accountId)) {
|
|
16880
|
+
if (!this.currentAuth) {
|
|
16883
16881
|
return url;
|
|
16884
16882
|
}
|
|
16885
16883
|
const urlInstance = new URL(url);
|
|
16886
|
-
|
|
16884
|
+
// Add accountId if provided
|
|
16885
|
+
if (this.currentAuth.accountId) {
|
|
16886
|
+
urlInstance.searchParams.set("accountId", this.currentAuth.accountId);
|
|
16887
|
+
}
|
|
16887
16888
|
// Only add sessionId if it's provided (support anonymous access)
|
|
16888
16889
|
if (this.currentAuth.sessionId) {
|
|
16889
16890
|
urlInstance.searchParams.set("sessionId", this.currentAuth.sessionId);
|
|
@@ -16892,6 +16893,10 @@ class NavigatorMcpWebSocketClient {
|
|
|
16892
16893
|
if (this.currentAuth.fingerprint) {
|
|
16893
16894
|
urlInstance.searchParams.set("fingerprint", this.currentAuth.fingerprint);
|
|
16894
16895
|
}
|
|
16896
|
+
// Add apiBaseUrl if provided (for anonymous access)
|
|
16897
|
+
if (this.currentAuth.apiBaseUrl) {
|
|
16898
|
+
urlInstance.searchParams.set("apiBaseUrl", this.currentAuth.apiBaseUrl);
|
|
16899
|
+
}
|
|
16895
16900
|
// Preserve the hash (unlikely to be used, but consistent with URL semantics)
|
|
16896
16901
|
return urlInstance.toString();
|
|
16897
16902
|
}
|
|
@@ -16948,7 +16953,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16948
16953
|
}
|
|
16949
16954
|
|
|
16950
16955
|
// This is updated with the package.json version on build.
|
|
16951
|
-
const VERSION = "6.9.
|
|
16956
|
+
const VERSION = "6.9.5";
|
|
16952
16957
|
|
|
16953
16958
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient };
|
|
16954
16959
|
//# sourceMappingURL=bruce-models.es5.js.map
|