bruce-models 6.8.3 → 6.8.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 +6 -13
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +6 -13
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/mcp/navigator-chat.js +2 -0
- package/dist/lib/mcp/navigator-chat.js.map +1 -1
- package/dist/lib/mcp/navigator-mcp-websocket.js +3 -12
- 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 +7 -0
- package/dist/types/mcp/navigator-mcp-websocket.d.ts +1 -5
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -16190,8 +16190,10 @@
|
|
|
16190
16190
|
}, auth);
|
|
16191
16191
|
const data = yield this.parseJson(response);
|
|
16192
16192
|
const text = (_b = (_a = data === null || data === void 0 ? void 0 : data.Text) !== null && _a !== void 0 ? _a : data === null || data === void 0 ? void 0 : data.text) !== null && _b !== void 0 ? _b : "";
|
|
16193
|
+
const steps = Array.isArray(data === null || data === void 0 ? void 0 : data.steps) ? data.steps : [];
|
|
16193
16194
|
return {
|
|
16194
16195
|
text,
|
|
16196
|
+
steps,
|
|
16195
16197
|
raw: data
|
|
16196
16198
|
};
|
|
16197
16199
|
});
|
|
@@ -16277,8 +16279,6 @@
|
|
|
16277
16279
|
}
|
|
16278
16280
|
}
|
|
16279
16281
|
|
|
16280
|
-
const DEFAULT_PORT = 8081;
|
|
16281
|
-
const DEFAULT_PATH = "/ws";
|
|
16282
16282
|
/**
|
|
16283
16283
|
* Minimal MCP WebSocket transport that handles tool call dispatching.
|
|
16284
16284
|
* UI layers can provide their own tool handler while reusing this
|
|
@@ -16367,16 +16367,9 @@
|
|
|
16367
16367
|
return (_a = this.options.logger) !== null && _a !== void 0 ? _a : console;
|
|
16368
16368
|
}
|
|
16369
16369
|
buildUrl() {
|
|
16370
|
-
var _a
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
}
|
|
16374
|
-
const protocol = (_a = this.options.protocol) !== null && _a !== void 0 ? _a : "ws";
|
|
16375
|
-
const host = (_b = this.options.host) !== null && _b !== void 0 ? _b : "localhost";
|
|
16376
|
-
const port = (_c = this.options.port) !== null && _c !== void 0 ? _c : DEFAULT_PORT;
|
|
16377
|
-
const path = ((_d = this.options.path) !== null && _d !== void 0 ? _d : DEFAULT_PATH).startsWith("/") ? (_e = this.options.path) !== null && _e !== void 0 ? _e : DEFAULT_PATH : `/${this.options.path}`;
|
|
16378
|
-
const baseUrl = `${protocol}://${host}:${port}${path}`;
|
|
16379
|
-
return this.appendAuthParams(baseUrl);
|
|
16370
|
+
var _a;
|
|
16371
|
+
const url = (_a = this.options.url) !== null && _a !== void 0 ? _a : "ws://localhost:8081/ws";
|
|
16372
|
+
return this.appendAuthParams(url);
|
|
16380
16373
|
}
|
|
16381
16374
|
appendAuthParams(url) {
|
|
16382
16375
|
var _a, _b;
|
|
@@ -16437,7 +16430,7 @@
|
|
|
16437
16430
|
}
|
|
16438
16431
|
|
|
16439
16432
|
// This is updated with the package.json version on build.
|
|
16440
|
-
const VERSION = "6.8.
|
|
16433
|
+
const VERSION = "6.8.5";
|
|
16441
16434
|
|
|
16442
16435
|
exports.VERSION = VERSION;
|
|
16443
16436
|
exports.AbstractApi = AbstractApi;
|