@bridge-ds/mcp 0.8.4 → 0.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.
@@ -2741,6 +2741,7 @@ function gitHubHistoryBackend(client2, config, opts = {}) {
2741
2741
  }
2742
2742
  return t;
2743
2743
  };
2744
+ const body = async (sha, e) => (!client2.canWrite ? await client2.readRawFile(e.path, sha).catch(() => void 0) : void 0) ?? client2.getBlobText(e.sha);
2744
2745
  const root = config.tokens.root.replace(/\/$/, "");
2745
2746
  const prefix = root === "." || !root ? "" : `${root}/`;
2746
2747
  const limit = Math.max(1, opts.concurrency ?? 4);
@@ -2795,7 +2796,7 @@ function gitHubHistoryBackend(client2, config, opts = {}) {
2795
2796
  const blobs = entries.filter((e) => e.type === "blob" && e.path.startsWith(prefix));
2796
2797
  const picked = new Set(selectTokenFiles(config, blobs.map((e) => e.path)));
2797
2798
  const wanted = blobs.filter((e) => picked.has(prefix ? e.path.slice(prefix.length) : e.path));
2798
- const texts = await pool(wanted, async (e) => [prefix ? e.path.slice(prefix.length) : e.path, await client2.getBlobText(e.sha)]);
2799
+ const texts = await pool(wanted, async (e) => [prefix ? e.path.slice(prefix.length) : e.path, await body(sha, e)]);
2799
2800
  return new Map(texts);
2800
2801
  },
2801
2802
  async changesetPaths(sha) {
@@ -2805,7 +2806,7 @@ function gitHubHistoryBackend(client2, config, opts = {}) {
2805
2806
  },
2806
2807
  async readFile(sha, path) {
2807
2808
  const e = (await tree(sha)).find((x) => x.type === "blob" && x.path === path);
2808
- return e ? client2.getBlobText(e.sha) : null;
2809
+ return e ? body(sha, e) : null;
2809
2810
  }
2810
2811
  };
2811
2812
  }
@@ -13154,7 +13155,7 @@ async function pushFigmaComponentOp(ctx, a) {
13154
13155
  }
13155
13156
 
13156
13157
  // src/server.ts
13157
- var VERSION = true ? "0.8.4" : "dev";
13158
+ var VERSION = true ? "0.8.5" : "dev";
13158
13159
  var ok = (data) => ({ content: [{ type: "text", text: typeof data === "string" ? data : JSON.stringify(data, null, 2) }] });
13159
13160
  var fail2 = (e) => ({ content: [{ type: "text", text: `Error: ${e.message ?? String(e)}` }], isError: true });
13160
13161
  var run = (fn) => async (a) => {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  VERSION,
4
4
  optionsFromArgv,
5
5
  serveStdio
6
- } from "./chunk-HZWFI7A2.js";
6
+ } from "./chunk-S5JR43L7.js";
7
7
  import "./chunk-PMZGEZGX.js";
8
8
 
9
9
  // src/index.ts
package/dist/lib.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  serveStdio,
29
29
  studio_exports,
30
30
  suggestions_exports
31
- } from "./chunk-HZWFI7A2.js";
31
+ } from "./chunk-S5JR43L7.js";
32
32
  import {
33
33
  CONFIG_FILE,
34
34
  loadConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/mcp",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "type": "module",
5
5
  "description": "Bridge MCP server: lets Claude (Claude Code, Claude Desktop or any MCP client) read, check and propose changes to a DTCG design system repo through pull requests.",
6
6
  "license": "MIT",
@@ -54,8 +54,8 @@
54
54
  "build:package": "node ../../scripts/build-packages.mjs mcp"
55
55
  },
56
56
  "dependencies": {
57
- "@bridge-ds/core": "^0.17.0",
58
- "@bridge-ds/visual": "^0.3.11",
57
+ "@bridge-ds/core": "^0.18.0",
58
+ "@bridge-ds/visual": "^0.3.12",
59
59
  "@modelcontextprotocol/sdk": "1.31.0",
60
60
  "typescript": "5.9.3",
61
61
  "zod": "3.25.76"