@getlimelight/sdk 0.5.5 → 0.6.1
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/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -447,6 +447,10 @@ interface LimelightConfig {
|
|
|
447
447
|
* Flag to enable or disable internal logging for the Limelight SDK
|
|
448
448
|
*/
|
|
449
449
|
enableInternalLogging?: boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Target destination for events. Set to "mcp" to send events to the MCP server at ws://localhost:9229.
|
|
452
|
+
*/
|
|
453
|
+
target?: "mcp";
|
|
450
454
|
/**
|
|
451
455
|
* A callback function to modify or filter events before they are sent to the server
|
|
452
456
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -447,6 +447,10 @@ interface LimelightConfig {
|
|
|
447
447
|
* Flag to enable or disable internal logging for the Limelight SDK
|
|
448
448
|
*/
|
|
449
449
|
enableInternalLogging?: boolean;
|
|
450
|
+
/**
|
|
451
|
+
* Target destination for events. Set to "mcp" to send events to the MCP server at ws://localhost:9229.
|
|
452
|
+
*/
|
|
453
|
+
target?: "mcp";
|
|
450
454
|
/**
|
|
451
455
|
* A callback function to modify or filter events before they are sent to the server
|
|
452
456
|
*/
|
package/dist/index.js
CHANGED
|
@@ -284,8 +284,9 @@ var SENSITIVE_HEADERS = [
|
|
|
284
284
|
];
|
|
285
285
|
var LIMELIGHT_WEB_WSS_URL = "wss://api.getlimelight.io";
|
|
286
286
|
var LIMELIGHT_DESKTOP_WSS_URL = "ws://localhost:8484";
|
|
287
|
+
var LIMELIGHT_MCP_WS_URL = "ws://localhost:9229";
|
|
287
288
|
var WS_PATH = "/limelight";
|
|
288
|
-
var SDK_VERSION = true ? "0.
|
|
289
|
+
var SDK_VERSION = true ? "0.6.1" : "test-version";
|
|
289
290
|
var RENDER_THRESHOLDS = {
|
|
290
291
|
HOT_VELOCITY: 5,
|
|
291
292
|
HIGH_RENDER_COUNT: 50,
|
|
@@ -2335,7 +2336,7 @@ var LimelightClient = class {
|
|
|
2335
2336
|
*/
|
|
2336
2337
|
configure(config) {
|
|
2337
2338
|
const isEnabled = config?.enabled ?? isDevelopment();
|
|
2338
|
-
const configServerUrl = config?.serverUrl ? config.serverUrl : config?.projectKey ? `${LIMELIGHT_WEB_WSS_URL}${WS_PATH}` : `${LIMELIGHT_DESKTOP_WSS_URL}${WS_PATH}`;
|
|
2339
|
+
const configServerUrl = config?.serverUrl ? config.serverUrl : config?.target === "mcp" ? LIMELIGHT_MCP_WS_URL : config?.projectKey ? `${LIMELIGHT_WEB_WSS_URL}${WS_PATH}` : `${LIMELIGHT_DESKTOP_WSS_URL}${WS_PATH}`;
|
|
2339
2340
|
this.config = {
|
|
2340
2341
|
...config,
|
|
2341
2342
|
appName: config?.appName ?? "Limelight App",
|