@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.mjs CHANGED
@@ -247,8 +247,9 @@ var SENSITIVE_HEADERS = [
247
247
  ];
248
248
  var LIMELIGHT_WEB_WSS_URL = "wss://api.getlimelight.io";
249
249
  var LIMELIGHT_DESKTOP_WSS_URL = "ws://localhost:8484";
250
+ var LIMELIGHT_MCP_WS_URL = "ws://localhost:9229";
250
251
  var WS_PATH = "/limelight";
251
- var SDK_VERSION = true ? "0.5.5" : "test-version";
252
+ var SDK_VERSION = true ? "0.6.1" : "test-version";
252
253
  var RENDER_THRESHOLDS = {
253
254
  HOT_VELOCITY: 5,
254
255
  HIGH_RENDER_COUNT: 50,
@@ -2298,7 +2299,7 @@ var LimelightClient = class {
2298
2299
  */
2299
2300
  configure(config) {
2300
2301
  const isEnabled = config?.enabled ?? isDevelopment();
2301
- const configServerUrl = config?.serverUrl ? config.serverUrl : config?.projectKey ? `${LIMELIGHT_WEB_WSS_URL}${WS_PATH}` : `${LIMELIGHT_DESKTOP_WSS_URL}${WS_PATH}`;
2302
+ 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}`;
2302
2303
  this.config = {
2303
2304
  ...config,
2304
2305
  appName: config?.appName ?? "Limelight App",