figma-relai 0.1.0 → 0.1.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.js CHANGED
@@ -14,7 +14,7 @@ function createServer() {
14
14
  return new McpServer(
15
15
  {
16
16
  name: "Relai",
17
- version: "0.1.0"
17
+ version: "0.1.1"
18
18
  },
19
19
  {
20
20
  instructions: `
@@ -366,9 +366,17 @@ var FigmaConnection = class {
366
366
  try {
367
367
  await this.connect();
368
368
  } catch {
369
- throw new Error(
370
- "Not connected to the relay. The MCP server hosts it automatically \u2014 if this persists, another app may be occupying the port."
371
- );
369
+ try {
370
+ await this.options.beforeReconnect?.();
371
+ } catch {
372
+ }
373
+ try {
374
+ await this.connect();
375
+ } catch {
376
+ throw new Error(
377
+ "Not connected to the relay. The MCP server hosts it automatically \u2014 if this persists, another app may be occupying the port."
378
+ );
379
+ }
372
380
  }
373
381
  }
374
382
  if (command !== "join") {
@@ -3451,7 +3459,7 @@ function getSessionLog() {
3451
3459
  }
3452
3460
 
3453
3461
  // src/index.ts
3454
- var VERSION = "0.1.0";
3462
+ var VERSION = "0.1.1";
3455
3463
  var args = process.argv.slice(2);
3456
3464
  var serverArg = args.find((arg) => arg.startsWith("--server="));
3457
3465
  var serverUrl = serverArg ? serverArg.split("=")[1] : "localhost";