bruce-models 6.8.7 → 6.8.8
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 +12 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +11 -8
- package/dist/lib/mcp/navigator-mcp-websocket.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -16612,7 +16612,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16612
16612
|
}
|
|
16613
16613
|
}
|
|
16614
16614
|
connect(auth) {
|
|
16615
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
16615
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
16616
16616
|
if (auth) {
|
|
16617
16617
|
this.currentAuth = auth;
|
|
16618
16618
|
}
|
|
@@ -16620,14 +16620,14 @@ class NavigatorMcpWebSocketClient {
|
|
|
16620
16620
|
(_c = (_b = this.logger()).debug) === null || _c === void 0 ? void 0 : _c.call(_b, "[NavigatorMcpWS] Connection already active or in-flight; skipping connect.");
|
|
16621
16621
|
return;
|
|
16622
16622
|
}
|
|
16623
|
-
if (!((_d = this.currentAuth) === null || _d === void 0 ? void 0 : _d.accountId)
|
|
16624
|
-
(
|
|
16623
|
+
if (!((_d = this.currentAuth) === null || _d === void 0 ? void 0 : _d.accountId)) {
|
|
16624
|
+
(_f = (_e = this.logger()).debug) === null || _f === void 0 ? void 0 : _f.call(_e, "[NavigatorMcpWS] Missing accountId; connection not started.");
|
|
16625
16625
|
return;
|
|
16626
16626
|
}
|
|
16627
16627
|
try {
|
|
16628
16628
|
this.isConnecting = true;
|
|
16629
16629
|
const url = this.buildUrl();
|
|
16630
|
-
(
|
|
16630
|
+
(_h = (_g = this.logger()).log) === null || _h === void 0 ? void 0 : _h.call(_g, "[NavigatorMcpWS] Connecting to", url);
|
|
16631
16631
|
this.ws = new WebSocket(url);
|
|
16632
16632
|
this.ws.onopen = (event) => {
|
|
16633
16633
|
var _a, _b, _c, _d;
|
|
@@ -16654,7 +16654,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16654
16654
|
};
|
|
16655
16655
|
}
|
|
16656
16656
|
catch (error) {
|
|
16657
|
-
(
|
|
16657
|
+
(_k = (_j = this.logger()).error) === null || _k === void 0 ? void 0 : _k.call(_j, "[NavigatorMcpWS] Failed to establish connection", error);
|
|
16658
16658
|
this.isConnecting = false;
|
|
16659
16659
|
}
|
|
16660
16660
|
}
|
|
@@ -16688,13 +16688,16 @@ class NavigatorMcpWebSocketClient {
|
|
|
16688
16688
|
return this.appendAuthParams(url);
|
|
16689
16689
|
}
|
|
16690
16690
|
appendAuthParams(url) {
|
|
16691
|
-
var _a
|
|
16692
|
-
if (!((_a = this.currentAuth) === null || _a === void 0 ? void 0 : _a.accountId)
|
|
16691
|
+
var _a;
|
|
16692
|
+
if (!((_a = this.currentAuth) === null || _a === void 0 ? void 0 : _a.accountId)) {
|
|
16693
16693
|
return url;
|
|
16694
16694
|
}
|
|
16695
16695
|
const urlInstance = new URL(url);
|
|
16696
16696
|
urlInstance.searchParams.set("accountId", this.currentAuth.accountId);
|
|
16697
|
-
|
|
16697
|
+
// Only add sessionId if it's provided (support anonymous access)
|
|
16698
|
+
if (this.currentAuth.sessionId) {
|
|
16699
|
+
urlInstance.searchParams.set("sessionId", this.currentAuth.sessionId);
|
|
16700
|
+
}
|
|
16698
16701
|
// Preserve the hash (unlikely to be used, but consistent with URL semantics)
|
|
16699
16702
|
return urlInstance.toString();
|
|
16700
16703
|
}
|
|
@@ -16751,7 +16754,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16751
16754
|
}
|
|
16752
16755
|
|
|
16753
16756
|
// This is updated with the package.json version on build.
|
|
16754
|
-
const VERSION = "6.8.
|
|
16757
|
+
const VERSION = "6.8.8";
|
|
16755
16758
|
|
|
16756
16759
|
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 };
|
|
16757
16760
|
//# sourceMappingURL=bruce-models.es5.js.map
|