figma-prototype-mcp 0.32.0 → 0.33.0

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.
@@ -1262,17 +1262,27 @@ var SseSession = class {
1262
1262
  };
1263
1263
 
1264
1264
  // src/server/run.ts
1265
+ function resolveVersion(injected, readPkgVersion) {
1266
+ if (injected) return injected;
1267
+ try {
1268
+ return readPkgVersion();
1269
+ } catch {
1270
+ return "0.0.0";
1271
+ }
1272
+ }
1265
1273
  function parseArgs(argv) {
1266
1274
  return { mode: argv.includes("--stdio") ? "stdio" : "sse" };
1267
1275
  }
1268
1276
  function createDeps() {
1269
- const pkg = JSON.parse(
1270
- readFileSync(new URL("../../package.json", import.meta.url), "utf8")
1277
+ const injected = true ? "0.33.0" : void 0;
1278
+ const version = resolveVersion(
1279
+ injected,
1280
+ () => JSON.parse(readFileSync(new URL("../../package.json", import.meta.url), "utf8")).version
1271
1281
  );
1272
1282
  return {
1273
1283
  session: new PluginSession(),
1274
1284
  historyStore: new HistoryStore(),
1275
- version: pkg.version
1285
+ version
1276
1286
  };
1277
1287
  }
1278
1288
  function listenWithWs(httpServer, port, session) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "figma-prototype-mcp",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "MCP server for creating Figma prototype interactions via natural language",
5
5
  "license": "MIT",
6
6
  "author": "smooeach",
@@ -36,9 +36,12 @@
36
36
  "scripts": {
37
37
  "start": "tsx src/server/index.ts",
38
38
  "build": "tsup",
39
+ "build:dxt": "tsup --config tsup.dxt.config.ts",
39
40
  "test": "vitest run",
40
41
  "test:watch": "vitest",
41
42
  "typecheck": "tsc --noEmit",
43
+ "pack:dxt": "npm run build:dxt && rm -rf dxt/server && mkdir -p dxt/server && cp dist/dxt/index.js dxt/server/index.js && npx @anthropic-ai/mcpb@latest pack dxt figma-prototype-mcp.mcpb",
44
+ "version": "node -e \"const fs=require('node:fs');const v=require('./package.json').version;const m=JSON.parse(fs.readFileSync('dxt/manifest.json','utf8'));m.version=v;fs.writeFileSync('dxt/manifest.json',JSON.stringify(m,null,2)+'\\n');\" && git add dxt/manifest.json",
42
45
  "prepublishOnly": "npm run build && npm test"
43
46
  },
44
47
  "dependencies": {