bruce-models 7.1.126 → 7.1.127
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/README.md +2 -97
- package/dist/bruce-models.es5.js +216 -29
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +233 -29
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/account/account-audit.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/data-lab/data-lab.js +2 -2
- package/dist/lib/data-lab/data-lab.js.map +1 -1
- package/dist/lib/mcp/navigator-chat-contract.js +90 -0
- package/dist/lib/mcp/navigator-chat-contract.js.map +1 -0
- package/dist/lib/mcp/navigator-chat.js +18 -3
- package/dist/lib/mcp/navigator-chat.js.map +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +18 -23
- package/dist/lib/mcp/navigator-mcp-websocket.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +4 -0
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/dist/lib/style/style.js +10 -0
- package/dist/lib/style/style.js.map +1 -1
- package/dist/lib/workflow/workflow-item.js +98 -0
- package/dist/lib/workflow/workflow-item.js.map +1 -1
- package/dist/types/account/account-audit.d.ts +2 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/data-lab/data-lab.d.ts +2 -1
- package/dist/types/mcp/navigator-chat-contract.d.ts +68 -0
- package/dist/types/mcp/navigator-chat.d.ts +17 -4
- package/dist/types/project/project-view-bookmark.d.ts +6 -2
- package/dist/types/project/project-view.d.ts +1 -1
- package/dist/types/style/style.d.ts +15 -0
- package/dist/types/workflow/workflow-item.d.ts +47 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -13909,7 +13909,7 @@
|
|
|
13909
13909
|
DataLab.Get = Get;
|
|
13910
13910
|
/**
|
|
13911
13911
|
* Suggests a DataLab query from natural language prompt.
|
|
13912
|
-
* This calls: POST entities/datalab/
|
|
13912
|
+
* This calls: POST entities/datalab/suggestQuery
|
|
13913
13913
|
*/
|
|
13914
13914
|
function SuggestDataLabQueryByPrompt(params) {
|
|
13915
13915
|
var _a, _b, _c;
|
|
@@ -13921,7 +13921,7 @@
|
|
|
13921
13921
|
if (!api) {
|
|
13922
13922
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
13923
13923
|
}
|
|
13924
|
-
const res = yield api.POST("entities/datalab/
|
|
13924
|
+
const res = yield api.POST("entities/datalab/suggestQuery", body, req ? exports.Api.PrepReqParams(req) : undefined);
|
|
13925
13925
|
const raw = res;
|
|
13926
13926
|
return {
|
|
13927
13927
|
query: (_c = (_b = (_a = raw === null || raw === void 0 ? void 0 : raw.Query) !== null && _a !== void 0 ? _a : raw === null || raw === void 0 ? void 0 : raw.SuggestedQuery) !== null && _b !== void 0 ? _b : raw === null || raw === void 0 ? void 0 : raw.DataLabQuery) !== null && _c !== void 0 ? _c : raw,
|
|
@@ -14613,6 +14613,16 @@
|
|
|
14613
14613
|
EEffectType["None"] = "NONE";
|
|
14614
14614
|
EEffectType["Water"] = "WATER";
|
|
14615
14615
|
})(EEffectType = Style.EEffectType || (Style.EEffectType = {}));
|
|
14616
|
+
/**
|
|
14617
|
+
* A look a renderer may put over a point, on top of the point or icon itself.
|
|
14618
|
+
* Default is "NONE".
|
|
14619
|
+
*/
|
|
14620
|
+
let EPointEffectType;
|
|
14621
|
+
(function (EPointEffectType) {
|
|
14622
|
+
EPointEffectType["None"] = "NONE";
|
|
14623
|
+
// Marks which way the Entity faces, read from its Bruce.Transform.
|
|
14624
|
+
EPointEffectType["Orientation"] = "ORIENTATION";
|
|
14625
|
+
})(EPointEffectType = Style.EPointEffectType || (Style.EPointEffectType = {}));
|
|
14616
14626
|
/**
|
|
14617
14627
|
* Returns a list of styles.
|
|
14618
14628
|
* @param params
|
|
@@ -19208,10 +19218,91 @@
|
|
|
19208
19218
|
UIMarkup.GetListCacheKey = GetListCacheKey;
|
|
19209
19219
|
})(exports.UIMarkup || (exports.UIMarkup = {}));
|
|
19210
19220
|
|
|
19211
|
-
|
|
19212
|
-
|
|
19221
|
+
/**
|
|
19222
|
+
* Wire contract of the Navigator chat-event protocol: the JSON-RPC methods, the `eventType` values the
|
|
19223
|
+
* frontend sends, the step types and tracking kinds the backend broadcasts, and the parser for what the
|
|
19224
|
+
* backend sends back. Values are fixed by deployed servers and frontends; the shared fixtures in the
|
|
19225
|
+
* bruce-chat repository (ops/chat-contract-fixtures) pin them for every repository. This module has no
|
|
19226
|
+
* runtime imports so any chat module can depend on it. Exported to consumers through ./navigator-chat.
|
|
19227
|
+
*/
|
|
19228
|
+
const NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT = "chat/event";
|
|
19229
|
+
const NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY = "server_ready";
|
|
19230
|
+
const NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY_ACK = "server_ready_ack";
|
|
19231
|
+
const NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL = "tools/call";
|
|
19232
|
+
const NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE = "tool_response";
|
|
19233
|
+
/** `eventType` values the frontend sends to the backend inside `chat/event`. */
|
|
19213
19234
|
const NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED = "entity_highlight_applied";
|
|
19214
19235
|
const NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED = "scene_context_prefetched";
|
|
19236
|
+
const NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED = "presentation_plan_applied";
|
|
19237
|
+
/** Legacy bare event (field `event`, no step `type`) the backend broadcasts when a session is cleared. */
|
|
19238
|
+
const NAVIGATOR_CHAT_LEGACY_EVENT_SESSION_CLEARED = "SESSION_CLEARED";
|
|
19239
|
+
/** Step `type` values the backend broadcasts that the frontend routes specially. */
|
|
19240
|
+
const NAVIGATOR_CHAT_STEP_TRACKING_UPDATE = "TRACKING_UPDATE";
|
|
19241
|
+
const NAVIGATOR_CHAT_STEP_JOB_COMPLETE = "JOB_COMPLETE";
|
|
19242
|
+
const NAVIGATOR_CHAT_STEP_QUEUED_INPUT = "QUEUED_INPUT";
|
|
19243
|
+
const NAVIGATOR_CHAT_STEP_LLM_CONTEXT = "LLM_CONTEXT";
|
|
19244
|
+
/** `trackingKind` of the plan step the backend emits; the receipts reuse the event names above. */
|
|
19245
|
+
const NAVIGATOR_CHAT_TRACKING_KIND_PRESENTATION_PLAN = "presentation_plan";
|
|
19246
|
+
/**
|
|
19247
|
+
* Job statuses that mean the job did not run to its end. The WebSocket step path and the streaming
|
|
19248
|
+
* (SSE) path have always recognised slightly different sets - the stream path never treated
|
|
19249
|
+
* INTERRUPTED as cancellation - so each keeps its own list.
|
|
19250
|
+
*/
|
|
19251
|
+
const NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES = {
|
|
19252
|
+
chatEvent: ["CANCELLED", "CANCELED", "INTERRUPTED", "PAUSED"],
|
|
19253
|
+
chatStream: ["CANCELLED", "CANCELED", "PAUSED"]
|
|
19254
|
+
};
|
|
19255
|
+
const CLIENT_EVENT_TYPES = [
|
|
19256
|
+
NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED,
|
|
19257
|
+
NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED,
|
|
19258
|
+
NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED
|
|
19259
|
+
];
|
|
19260
|
+
/** True for an `eventType` the backend acts on. Matching is exact and case-sensitive. */
|
|
19261
|
+
function isNavigatorChatClientEventType(value) {
|
|
19262
|
+
return typeof value === "string" && CLIENT_EVENT_TYPES.indexOf(value) !== -1;
|
|
19263
|
+
}
|
|
19264
|
+
/** True when a job status means the job was cancelled, interrupted or paused on that path. */
|
|
19265
|
+
function isNavigatorChatCancelledJobStatus(status, path = "chatEvent") {
|
|
19266
|
+
return typeof status === "string"
|
|
19267
|
+
&& NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES[path].indexOf(status) !== -1;
|
|
19268
|
+
}
|
|
19269
|
+
/** The JSON-RPC message that carries a frontend chat event to the backend. */
|
|
19270
|
+
function buildNavigatorChatEventMessage(event) {
|
|
19271
|
+
return {
|
|
19272
|
+
jsonrpc: "2.0",
|
|
19273
|
+
method: NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT,
|
|
19274
|
+
params: event
|
|
19275
|
+
};
|
|
19276
|
+
}
|
|
19277
|
+
/**
|
|
19278
|
+
* Classifies a raw WebSocket message from the backend. A string is parsed as JSON and a parse failure
|
|
19279
|
+
* throws, so the caller keeps deciding how to report an invalid message. A `chat/event` without params
|
|
19280
|
+
* is delivered as an empty event rather than dropped, as older servers relied on.
|
|
19281
|
+
*/
|
|
19282
|
+
function parseNavigatorChatServerMessage(raw) {
|
|
19283
|
+
var _a, _b, _c;
|
|
19284
|
+
const message = typeof raw === "string" ? JSON.parse(raw) : raw;
|
|
19285
|
+
const method = message === null || message === void 0 ? void 0 : message.method;
|
|
19286
|
+
if (method === NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT) {
|
|
19287
|
+
return { kind: "chat_event", event: ((_a = message === null || message === void 0 ? void 0 : message.params) !== null && _a !== void 0 ? _a : {}) };
|
|
19288
|
+
}
|
|
19289
|
+
if (method !== NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL) {
|
|
19290
|
+
return { kind: "ignored", method, message };
|
|
19291
|
+
}
|
|
19292
|
+
const name = (_b = message === null || message === void 0 ? void 0 : message.params) === null || _b === void 0 ? void 0 : _b.name;
|
|
19293
|
+
if (!name) {
|
|
19294
|
+
return { kind: "invalid_tool_call", message };
|
|
19295
|
+
}
|
|
19296
|
+
return {
|
|
19297
|
+
kind: "tool_call",
|
|
19298
|
+
name,
|
|
19299
|
+
args: (_c = message === null || message === void 0 ? void 0 : message.params) === null || _c === void 0 ? void 0 : _c.arguments,
|
|
19300
|
+
messageId: message === null || message === void 0 ? void 0 : message.id
|
|
19301
|
+
};
|
|
19302
|
+
}
|
|
19303
|
+
|
|
19304
|
+
const DEFAULT_JOB_POLL_INTERVAL_MS = 1000;
|
|
19305
|
+
const DEFAULT_JOB_POLL_TIMEOUT_MS = 10 * 60 * 1000; // match server timeout (10 minutes)
|
|
19215
19306
|
const DEFAULT_BASE_URL = "http://localhost:8888";
|
|
19216
19307
|
/**
|
|
19217
19308
|
* Lightweight client for the Navigator MCP chat HTTP endpoints.
|
|
@@ -19468,7 +19559,7 @@
|
|
|
19468
19559
|
return;
|
|
19469
19560
|
(_b = (_a = this.logger()).log) === null || _b === void 0 ? void 0 : _b.call(_a, "[NavigatorMcpWS] Connected");
|
|
19470
19561
|
this.isConnecting = false;
|
|
19471
|
-
this.send({ method:
|
|
19562
|
+
this.send({ method: NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY });
|
|
19472
19563
|
this.flushResponses();
|
|
19473
19564
|
(_d = (_c = this.options).onOpen) === null || _d === void 0 ? void 0 : _d.call(_c, event);
|
|
19474
19565
|
};
|
|
@@ -19534,11 +19625,7 @@
|
|
|
19534
19625
|
this.currentAuth = auth;
|
|
19535
19626
|
}
|
|
19536
19627
|
sendChatEvent(event) {
|
|
19537
|
-
this.send(
|
|
19538
|
-
jsonrpc: "2.0",
|
|
19539
|
-
method: "chat/event",
|
|
19540
|
-
params: event
|
|
19541
|
-
});
|
|
19628
|
+
this.send(buildNavigatorChatEventMessage(event));
|
|
19542
19629
|
}
|
|
19543
19630
|
logger() {
|
|
19544
19631
|
var _a;
|
|
@@ -19575,27 +19662,25 @@
|
|
|
19575
19662
|
return urlInstance.toString();
|
|
19576
19663
|
}
|
|
19577
19664
|
handleMessage(raw) {
|
|
19578
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m
|
|
19665
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
19579
19666
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19580
19667
|
try {
|
|
19581
|
-
const
|
|
19582
|
-
|
|
19583
|
-
|
|
19584
|
-
const payload = ((_a = message === null || message === void 0 ? void 0 : message.params) !== null && _a !== void 0 ? _a : {});
|
|
19585
|
-
(_c = (_b = this.options).onChatEvent) === null || _c === void 0 ? void 0 : _c.call(_b, payload);
|
|
19668
|
+
const parsed = parseNavigatorChatServerMessage(raw);
|
|
19669
|
+
if (parsed.kind === "chat_event") {
|
|
19670
|
+
(_b = (_a = this.options).onChatEvent) === null || _b === void 0 ? void 0 : _b.call(_a, parsed.event);
|
|
19586
19671
|
return;
|
|
19587
19672
|
}
|
|
19588
|
-
if (
|
|
19589
|
-
(
|
|
19673
|
+
if (parsed.kind === "ignored") {
|
|
19674
|
+
(_d = (_c = this.logger()).debug) === null || _d === void 0 ? void 0 : _d.call(_c, "[NavigatorMcpWS] Ignoring unsupported message", parsed.message);
|
|
19590
19675
|
return;
|
|
19591
19676
|
}
|
|
19592
|
-
|
|
19593
|
-
|
|
19594
|
-
const messageId = message === null || message === void 0 ? void 0 : message.id;
|
|
19595
|
-
if (!toolName) {
|
|
19596
|
-
(_j = (_h = this.logger()).warn) === null || _j === void 0 ? void 0 : _j.call(_h, "[NavigatorMcpWS] Received tool call without name", message);
|
|
19677
|
+
if (parsed.kind === "invalid_tool_call") {
|
|
19678
|
+
(_f = (_e = this.logger()).warn) === null || _f === void 0 ? void 0 : _f.call(_e, "[NavigatorMcpWS] Received tool call without name", parsed.message);
|
|
19597
19679
|
return;
|
|
19598
19680
|
}
|
|
19681
|
+
const toolName = parsed.name;
|
|
19682
|
+
const toolArgs = parsed.args;
|
|
19683
|
+
const messageId = parsed.messageId;
|
|
19599
19684
|
let result;
|
|
19600
19685
|
const generation = this.responseGeneration;
|
|
19601
19686
|
try {
|
|
@@ -19606,21 +19691,21 @@
|
|
|
19606
19691
|
});
|
|
19607
19692
|
}
|
|
19608
19693
|
catch (error) {
|
|
19609
|
-
(
|
|
19694
|
+
(_h = (_g = this.logger()).error) === null || _h === void 0 ? void 0 : _h.call(_g, "[NavigatorMcpWS] Tool handler threw", error);
|
|
19610
19695
|
result = `Error: ${error instanceof Error ? error.message : String(error)}`;
|
|
19611
19696
|
}
|
|
19612
19697
|
if (generation !== this.responseGeneration) {
|
|
19613
|
-
(
|
|
19698
|
+
(_k = (_j = this.logger()).warn) === null || _k === void 0 ? void 0 : _k.call(_j, "[NavigatorMcpWS] Discarding result from a previous session", messageId);
|
|
19614
19699
|
return;
|
|
19615
19700
|
}
|
|
19616
19701
|
this.sendResponse({
|
|
19617
|
-
method:
|
|
19702
|
+
method: NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE,
|
|
19618
19703
|
id: messageId,
|
|
19619
19704
|
result
|
|
19620
19705
|
});
|
|
19621
19706
|
}
|
|
19622
19707
|
catch (error) {
|
|
19623
|
-
(
|
|
19708
|
+
(_m = (_l = this.logger()).error) === null || _m === void 0 ? void 0 : _m.call(_l, "[NavigatorMcpWS] Invalid message", error);
|
|
19624
19709
|
}
|
|
19625
19710
|
});
|
|
19626
19711
|
}
|
|
@@ -21807,6 +21892,10 @@
|
|
|
21807
21892
|
EContentType["WEB_3D_MODEL_SPACE"] = "WEB_3D_MODEL_SPACE";
|
|
21808
21893
|
EContentType["WEB_3D_SPLIT_PLUGIN"] = "WEB_3D_SPLIT_PLUGIN";
|
|
21809
21894
|
EContentType["IFRAME"] = "IFRAME";
|
|
21895
|
+
// Renders a dashboard in place of the scene.
|
|
21896
|
+
EContentType["DASHBOARD"] = "DASHBOARD";
|
|
21897
|
+
// Renders a diagram (2D graph view) in place of the scene.
|
|
21898
|
+
EContentType["DIAGRAM"] = "DIAGRAM";
|
|
21810
21899
|
})(EContentType = ProjectViewBookmark.EContentType || (ProjectViewBookmark.EContentType = {}));
|
|
21811
21900
|
/**
|
|
21812
21901
|
* Gets a bookmark record.
|
|
@@ -24481,6 +24570,73 @@
|
|
|
24481
24570
|
EOrderBy["THUMBNAIL_CLIENT_FILE_ID"] = "ThumbnailClientFileID";
|
|
24482
24571
|
EOrderBy["RANDOM"] = "RANDOM";
|
|
24483
24572
|
})(EOrderBy = WorkflowItem.EOrderBy || (WorkflowItem.EOrderBy = {}));
|
|
24573
|
+
/**
|
|
24574
|
+
* Gets the history timeline of a Workflow Item, newest first.
|
|
24575
|
+
* Route: GET workflow/item/{workflow_item_id}/history
|
|
24576
|
+
*/
|
|
24577
|
+
function GetHistoryList(params) {
|
|
24578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24579
|
+
let { api, workflowItemId, req } = params;
|
|
24580
|
+
if (isInvalidId(workflowItemId)) {
|
|
24581
|
+
throw ("Workflow Item ID is required.");
|
|
24582
|
+
}
|
|
24583
|
+
if (!api) {
|
|
24584
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
24585
|
+
}
|
|
24586
|
+
const key = GetHistoryListCacheKey(workflowItemId);
|
|
24587
|
+
const cache = api.GetCacheItem(key, req);
|
|
24588
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
24589
|
+
return cache.data;
|
|
24590
|
+
}
|
|
24591
|
+
const request = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
24592
|
+
try {
|
|
24593
|
+
const data = yield api.GET(`workflow/item/${workflowItemId}/history`, exports.Api.PrepReqParams(req));
|
|
24594
|
+
res(ParseHistoryListResponse(data));
|
|
24595
|
+
}
|
|
24596
|
+
catch (e) {
|
|
24597
|
+
rej(e);
|
|
24598
|
+
}
|
|
24599
|
+
}));
|
|
24600
|
+
api.SetCacheItem({ key, value: request, req });
|
|
24601
|
+
return request;
|
|
24602
|
+
});
|
|
24603
|
+
}
|
|
24604
|
+
WorkflowItem.GetHistoryList = GetHistoryList;
|
|
24605
|
+
/**
|
|
24606
|
+
* Gets one history record of a Workflow Item.
|
|
24607
|
+
* Route: GET workflow/item/{workflow_item_id}/history/{workflow_item_history_id}
|
|
24608
|
+
*/
|
|
24609
|
+
function GetHistory(params) {
|
|
24610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24611
|
+
let { api, workflowItemId, workflowItemHistoryId, req } = params;
|
|
24612
|
+
if (isInvalidId(workflowItemId)) {
|
|
24613
|
+
throw ("Workflow Item ID is required.");
|
|
24614
|
+
}
|
|
24615
|
+
if (isInvalidId(workflowItemHistoryId)) {
|
|
24616
|
+
throw ("Workflow Item History ID is required.");
|
|
24617
|
+
}
|
|
24618
|
+
if (!api) {
|
|
24619
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
24620
|
+
}
|
|
24621
|
+
const key = GetHistoryCacheKey(workflowItemId, workflowItemHistoryId);
|
|
24622
|
+
const cache = api.GetCacheItem(key, req);
|
|
24623
|
+
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
24624
|
+
return cache.data;
|
|
24625
|
+
}
|
|
24626
|
+
const request = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
24627
|
+
try {
|
|
24628
|
+
const data = yield api.GET(`workflow/item/${workflowItemId}/history/${workflowItemHistoryId}`, exports.Api.PrepReqParams(req));
|
|
24629
|
+
res({ history: ParseHistoryResponse(data) });
|
|
24630
|
+
}
|
|
24631
|
+
catch (e) {
|
|
24632
|
+
rej(e);
|
|
24633
|
+
}
|
|
24634
|
+
}));
|
|
24635
|
+
api.SetCacheItem({ key, value: request, req });
|
|
24636
|
+
return request;
|
|
24637
|
+
});
|
|
24638
|
+
}
|
|
24639
|
+
WorkflowItem.GetHistory = GetHistory;
|
|
24484
24640
|
function Get(params) {
|
|
24485
24641
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24486
24642
|
let { api, workflowItemId, req } = params;
|
|
@@ -24765,10 +24921,41 @@
|
|
|
24765
24921
|
return result;
|
|
24766
24922
|
}
|
|
24767
24923
|
WorkflowItem.ParseStatisticsResponse = ParseStatisticsResponse;
|
|
24924
|
+
function ParseHistoryResponse(response) {
|
|
24925
|
+
var _a;
|
|
24926
|
+
const parsed = parseObject$5(response);
|
|
24927
|
+
const parsedResult = (_a = parseObject$5(parsed === null || parsed === void 0 ? void 0 : parsed.Result)) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.Result;
|
|
24928
|
+
return parsedResult !== null && parsedResult !== void 0 ? parsedResult : parsed;
|
|
24929
|
+
}
|
|
24930
|
+
WorkflowItem.ParseHistoryResponse = ParseHistoryResponse;
|
|
24931
|
+
function ParseHistoryListResponse(response) {
|
|
24932
|
+
var _a;
|
|
24933
|
+
const parsed = parseObject$5(response);
|
|
24934
|
+
const parsedResult = (_a = parseObject$5(parsed === null || parsed === void 0 ? void 0 : parsed.Result)) !== null && _a !== void 0 ? _a : parsed === null || parsed === void 0 ? void 0 : parsed.Result;
|
|
24935
|
+
const source = parsedResult !== null && parsedResult !== void 0 ? parsedResult : parsed;
|
|
24936
|
+
const items = Array.isArray(source)
|
|
24937
|
+
? source
|
|
24938
|
+
: Array.isArray(source === null || source === void 0 ? void 0 : source.Items)
|
|
24939
|
+
? source.Items
|
|
24940
|
+
: [];
|
|
24941
|
+
return {
|
|
24942
|
+
items,
|
|
24943
|
+
totalCount: source === null || source === void 0 ? void 0 : source.TotalCount
|
|
24944
|
+
};
|
|
24945
|
+
}
|
|
24946
|
+
WorkflowItem.ParseHistoryListResponse = ParseHistoryListResponse;
|
|
24768
24947
|
function GetCacheKey(id) {
|
|
24769
24948
|
return `${exports.Api.ECacheKey.WorkflowItem}${exports.Api.ECacheKey.Id}${id}`;
|
|
24770
24949
|
}
|
|
24771
24950
|
WorkflowItem.GetCacheKey = GetCacheKey;
|
|
24951
|
+
function GetHistoryListCacheKey(workflowItemId) {
|
|
24952
|
+
return `${exports.Api.ECacheKey.WorkflowItem}${exports.Api.ECacheKey.Id}${workflowItemId}${exports.Api.ECacheKey.ListId}history`;
|
|
24953
|
+
}
|
|
24954
|
+
WorkflowItem.GetHistoryListCacheKey = GetHistoryListCacheKey;
|
|
24955
|
+
function GetHistoryCacheKey(workflowItemId, workflowItemHistoryId) {
|
|
24956
|
+
return `${exports.Api.ECacheKey.WorkflowItem}${exports.Api.ECacheKey.Id}${workflowItemId}${exports.Api.ECacheKey.ListId}history${exports.Api.ECacheKey.Id}${workflowItemHistoryId}`;
|
|
24957
|
+
}
|
|
24958
|
+
WorkflowItem.GetHistoryCacheKey = GetHistoryCacheKey;
|
|
24772
24959
|
function GetListCacheKey(params) {
|
|
24773
24960
|
return `${exports.Api.ECacheKey.WorkflowItem}${exports.Api.ECacheKey.ListId}${BuildListUrl(params)}`;
|
|
24774
24961
|
}
|
|
@@ -25289,7 +25476,7 @@
|
|
|
25289
25476
|
}
|
|
25290
25477
|
|
|
25291
25478
|
// This is updated with the package.json version on build.
|
|
25292
|
-
const VERSION = "7.1.
|
|
25479
|
+
const VERSION = "7.1.127";
|
|
25293
25480
|
|
|
25294
25481
|
exports.VERSION = VERSION;
|
|
25295
25482
|
exports.AbstractApi = AbstractApi;
|
|
@@ -25298,9 +25485,26 @@
|
|
|
25298
25485
|
exports.CacheControl = CacheControl;
|
|
25299
25486
|
exports.DelayQueue = DelayQueue;
|
|
25300
25487
|
exports.LRUCache = LRUCache;
|
|
25488
|
+
exports.NavigatorChatClient = NavigatorChatClient;
|
|
25489
|
+
exports.NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT = NAVIGATOR_CHAT_RPC_METHOD_CHAT_EVENT;
|
|
25490
|
+
exports.NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY = NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY;
|
|
25491
|
+
exports.NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY_ACK = NAVIGATOR_CHAT_RPC_METHOD_SERVER_READY_ACK;
|
|
25492
|
+
exports.NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL = NAVIGATOR_CHAT_RPC_METHOD_TOOLS_CALL;
|
|
25493
|
+
exports.NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE = NAVIGATOR_CHAT_RPC_METHOD_TOOL_RESPONSE;
|
|
25301
25494
|
exports.NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED = NAVIGATOR_CHAT_EVENT_ENTITY_HIGHLIGHT_APPLIED;
|
|
25302
25495
|
exports.NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED = NAVIGATOR_CHAT_EVENT_SCENE_CONTEXT_PREFETCHED;
|
|
25303
|
-
exports.
|
|
25496
|
+
exports.NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED = NAVIGATOR_CHAT_EVENT_PRESENTATION_PLAN_APPLIED;
|
|
25497
|
+
exports.NAVIGATOR_CHAT_LEGACY_EVENT_SESSION_CLEARED = NAVIGATOR_CHAT_LEGACY_EVENT_SESSION_CLEARED;
|
|
25498
|
+
exports.NAVIGATOR_CHAT_STEP_TRACKING_UPDATE = NAVIGATOR_CHAT_STEP_TRACKING_UPDATE;
|
|
25499
|
+
exports.NAVIGATOR_CHAT_STEP_JOB_COMPLETE = NAVIGATOR_CHAT_STEP_JOB_COMPLETE;
|
|
25500
|
+
exports.NAVIGATOR_CHAT_STEP_QUEUED_INPUT = NAVIGATOR_CHAT_STEP_QUEUED_INPUT;
|
|
25501
|
+
exports.NAVIGATOR_CHAT_STEP_LLM_CONTEXT = NAVIGATOR_CHAT_STEP_LLM_CONTEXT;
|
|
25502
|
+
exports.NAVIGATOR_CHAT_TRACKING_KIND_PRESENTATION_PLAN = NAVIGATOR_CHAT_TRACKING_KIND_PRESENTATION_PLAN;
|
|
25503
|
+
exports.NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES = NAVIGATOR_CHAT_CANCELLED_JOB_STATUSES;
|
|
25504
|
+
exports.isNavigatorChatClientEventType = isNavigatorChatClientEventType;
|
|
25505
|
+
exports.isNavigatorChatCancelledJobStatus = isNavigatorChatCancelledJobStatus;
|
|
25506
|
+
exports.buildNavigatorChatEventMessage = buildNavigatorChatEventMessage;
|
|
25507
|
+
exports.parseNavigatorChatServerMessage = parseNavigatorChatServerMessage;
|
|
25304
25508
|
exports.NavigatorMcpWebSocketClient = NavigatorMcpWebSocketClient;
|
|
25305
25509
|
exports.WorkflowItemType = WorkflowItemType;
|
|
25306
25510
|
|