bruce-models 6.8.7 → 6.8.9
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 +19 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +19 -9
- 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 +15 -8
- 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
|
@@ -16550,6 +16550,9 @@ class NavigatorChatClient {
|
|
|
16550
16550
|
if (auth === null || auth === void 0 ? void 0 : auth.sessionId) {
|
|
16551
16551
|
headers["X-Session-Id"] = auth.sessionId;
|
|
16552
16552
|
}
|
|
16553
|
+
if (auth === null || auth === void 0 ? void 0 : auth.fingerprint) {
|
|
16554
|
+
headers["X-Fingerprint"] = auth.fingerprint;
|
|
16555
|
+
}
|
|
16553
16556
|
const response = yield fetchImpl(this.buildUrl(path), Object.assign(Object.assign({}, init), { headers }));
|
|
16554
16557
|
if (!response.ok) {
|
|
16555
16558
|
const message = yield this.safeReadResponseText(response);
|
|
@@ -16612,7 +16615,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16612
16615
|
}
|
|
16613
16616
|
}
|
|
16614
16617
|
connect(auth) {
|
|
16615
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
16618
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
16616
16619
|
if (auth) {
|
|
16617
16620
|
this.currentAuth = auth;
|
|
16618
16621
|
}
|
|
@@ -16620,14 +16623,14 @@ class NavigatorMcpWebSocketClient {
|
|
|
16620
16623
|
(_c = (_b = this.logger()).debug) === null || _c === void 0 ? void 0 : _c.call(_b, "[NavigatorMcpWS] Connection already active or in-flight; skipping connect.");
|
|
16621
16624
|
return;
|
|
16622
16625
|
}
|
|
16623
|
-
if (!((_d = this.currentAuth) === null || _d === void 0 ? void 0 : _d.accountId)
|
|
16624
|
-
(
|
|
16626
|
+
if (!((_d = this.currentAuth) === null || _d === void 0 ? void 0 : _d.accountId)) {
|
|
16627
|
+
(_f = (_e = this.logger()).debug) === null || _f === void 0 ? void 0 : _f.call(_e, "[NavigatorMcpWS] Missing accountId; connection not started.");
|
|
16625
16628
|
return;
|
|
16626
16629
|
}
|
|
16627
16630
|
try {
|
|
16628
16631
|
this.isConnecting = true;
|
|
16629
16632
|
const url = this.buildUrl();
|
|
16630
|
-
(
|
|
16633
|
+
(_h = (_g = this.logger()).log) === null || _h === void 0 ? void 0 : _h.call(_g, "[NavigatorMcpWS] Connecting to", url);
|
|
16631
16634
|
this.ws = new WebSocket(url);
|
|
16632
16635
|
this.ws.onopen = (event) => {
|
|
16633
16636
|
var _a, _b, _c, _d;
|
|
@@ -16654,7 +16657,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16654
16657
|
};
|
|
16655
16658
|
}
|
|
16656
16659
|
catch (error) {
|
|
16657
|
-
(
|
|
16660
|
+
(_k = (_j = this.logger()).error) === null || _k === void 0 ? void 0 : _k.call(_j, "[NavigatorMcpWS] Failed to establish connection", error);
|
|
16658
16661
|
this.isConnecting = false;
|
|
16659
16662
|
}
|
|
16660
16663
|
}
|
|
@@ -16688,13 +16691,20 @@ class NavigatorMcpWebSocketClient {
|
|
|
16688
16691
|
return this.appendAuthParams(url);
|
|
16689
16692
|
}
|
|
16690
16693
|
appendAuthParams(url) {
|
|
16691
|
-
var _a
|
|
16692
|
-
if (!((_a = this.currentAuth) === null || _a === void 0 ? void 0 : _a.accountId)
|
|
16694
|
+
var _a;
|
|
16695
|
+
if (!((_a = this.currentAuth) === null || _a === void 0 ? void 0 : _a.accountId)) {
|
|
16693
16696
|
return url;
|
|
16694
16697
|
}
|
|
16695
16698
|
const urlInstance = new URL(url);
|
|
16696
16699
|
urlInstance.searchParams.set("accountId", this.currentAuth.accountId);
|
|
16697
|
-
|
|
16700
|
+
// Only add sessionId if it's provided (support anonymous access)
|
|
16701
|
+
if (this.currentAuth.sessionId) {
|
|
16702
|
+
urlInstance.searchParams.set("sessionId", this.currentAuth.sessionId);
|
|
16703
|
+
}
|
|
16704
|
+
// Only add fingerprint if it's provided
|
|
16705
|
+
if (this.currentAuth.fingerprint) {
|
|
16706
|
+
urlInstance.searchParams.set("fingerprint", this.currentAuth.fingerprint);
|
|
16707
|
+
}
|
|
16698
16708
|
// Preserve the hash (unlikely to be used, but consistent with URL semantics)
|
|
16699
16709
|
return urlInstance.toString();
|
|
16700
16710
|
}
|
|
@@ -16751,7 +16761,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16751
16761
|
}
|
|
16752
16762
|
|
|
16753
16763
|
// This is updated with the package.json version on build.
|
|
16754
|
-
const VERSION = "6.8.
|
|
16764
|
+
const VERSION = "6.8.9";
|
|
16755
16765
|
|
|
16756
16766
|
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
16767
|
//# sourceMappingURL=bruce-models.es5.js.map
|