@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
|
|
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 ?
|
|
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.
|
|
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
package/dist/lib.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/mcp",
|
|
3
|
-
"version": "0.8.
|
|
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.
|
|
58
|
-
"@bridge-ds/visual": "^0.3.
|
|
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"
|