@bridge-ds/mcp 0.11.0 → 0.11.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.
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
validateLayered,
|
|
90
90
|
variantKeyOf,
|
|
91
91
|
whoCanShipSentence
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-HNGVASTJ.js";
|
|
93
93
|
|
|
94
94
|
// src/lib.ts
|
|
95
95
|
import { execFileSync } from "node:child_process";
|
|
@@ -15731,7 +15731,7 @@ async function visualImpact(ctx, a, run2) {
|
|
|
15731
15731
|
if (ctx.mode !== "local" || !ctx.root) throw new Error("Visual impact needs a local checkout (start Bridge with --root): it builds Storybook and the app at both refs.");
|
|
15732
15732
|
if (!ctx.isGit) throw new Error(`${ctx.root} is not a git repository.`);
|
|
15733
15733
|
const out = a.out ? resolve3(ctx.root, a.out) : join5(ctx.root, "visual-impact");
|
|
15734
|
-
const runImpact = run2 ?? (await import("./src-
|
|
15734
|
+
const runImpact = run2 ?? (await import("./src-P42KWNHQ.js")).runImpact;
|
|
15735
15735
|
const r = await runImpact({
|
|
15736
15736
|
root: ctx.root,
|
|
15737
15737
|
base: a.base ?? "main",
|
|
@@ -17130,7 +17130,7 @@ async function proposeFigmaFixesOp(ctx, a) {
|
|
|
17130
17130
|
}
|
|
17131
17131
|
|
|
17132
17132
|
// src/server.ts
|
|
17133
|
-
var VERSION = true ? "0.11.
|
|
17133
|
+
var VERSION = true ? "0.11.1" : "dev";
|
|
17134
17134
|
var BRIDGE_SITE = "https://bridge.floriangouloubi.com";
|
|
17135
17135
|
var SERVER_INFO = {
|
|
17136
17136
|
name: "bridge",
|
|
@@ -559,7 +559,7 @@ function productOfRepo(products, repo, designSystemRepo) {
|
|
|
559
559
|
}
|
|
560
560
|
var KEY = /^[a-z0-9][a-z0-9-]*$/;
|
|
561
561
|
var REPO = /^[\w.-]+\/[\w.-]+$/;
|
|
562
|
-
var FIELDS = ["key", "name", "repo", "path", "preview", "framework", "default"];
|
|
562
|
+
var FIELDS = ["key", "name", "repo", "path", "preview", "production", "framework", "default"];
|
|
563
563
|
function productProblems(raw) {
|
|
564
564
|
if (raw === void 0) return [];
|
|
565
565
|
if (!Array.isArray(raw)) return ['"products" must be a list of { "key", "name" } objects'];
|
|
@@ -585,6 +585,7 @@ function productProblems(raw) {
|
|
|
585
585
|
if (bad) problems.push(`${at}.path" must be a folder relative to the repository root, without a leading "/" or "..", such as "apps/admin"`);
|
|
586
586
|
}
|
|
587
587
|
if (o.preview !== void 0 && (typeof o.preview !== "string" || !/^https?:\/\//.test(o.preview))) problems.push(`${at}.preview" must be an http(s) URL template, such as "https://app-git-{branch}.vercel.app"`);
|
|
588
|
+
if (o.production !== void 0 && (typeof o.production !== "string" || !/^https?:\/\/[^{}\s]+$/.test(o.production))) problems.push(`${at}.production" must be the product's production URL, without placeholders, such as "https://shop.example.com"`);
|
|
588
589
|
if (o.framework !== void 0 && (typeof o.framework !== "string" || !o.framework.trim())) problems.push(`${at}.framework" must be a name such as "react", "vue" or "other"`);
|
|
589
590
|
if (o.default !== void 0 && typeof o.default !== "boolean") problems.push(`${at}.default" must be true or false`);
|
|
590
591
|
if (o.default === true) defaults++;
|
package/dist/index.js
CHANGED
package/dist/lib.js
CHANGED
|
@@ -42,12 +42,12 @@ import {
|
|
|
42
42
|
studio_exports,
|
|
43
43
|
suggestions_exports,
|
|
44
44
|
tokenNote
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-FRHGLK6Z.js";
|
|
46
46
|
import {
|
|
47
47
|
CONFIG_FILE,
|
|
48
48
|
loadConfig,
|
|
49
49
|
toConfigJson
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HNGVASTJ.js";
|
|
51
51
|
export {
|
|
52
52
|
BlockedError,
|
|
53
53
|
BridgeContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/mcp",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.1",
|
|
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": "FSL-1.1-MIT",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"build:package": "node ../../scripts/build-packages.mjs mcp"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@bridge-ds/core": "^0.
|
|
59
|
-
"@bridge-ds/visual": "^0.3.
|
|
58
|
+
"@bridge-ds/core": "^0.22.0",
|
|
59
|
+
"@bridge-ds/visual": "^0.3.16",
|
|
60
60
|
"@modelcontextprotocol/sdk": "1.31.0",
|
|
61
61
|
"typescript": "5.9.3",
|
|
62
62
|
"zod": "3.25.76"
|