@bridge-ds/mcp 0.8.2 → 0.8.3
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.
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
validateLayered,
|
|
80
80
|
variantKeyOf,
|
|
81
81
|
whoCanShipSentence
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-CSJPMSY4.js";
|
|
83
83
|
|
|
84
84
|
// src/lib.ts
|
|
85
85
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -11935,7 +11935,7 @@ async function visualImpact(ctx, a, run2) {
|
|
|
11935
11935
|
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.");
|
|
11936
11936
|
if (!ctx.isGit) throw new Error(`${ctx.root} is not a git repository.`);
|
|
11937
11937
|
const out = a.out ? resolve3(ctx.root, a.out) : join5(ctx.root, "visual-impact");
|
|
11938
|
-
const runImpact = run2 ?? (await import("./src-
|
|
11938
|
+
const runImpact = run2 ?? (await import("./src-LKQBSVYE.js")).runImpact;
|
|
11939
11939
|
const r = await runImpact({
|
|
11940
11940
|
root: ctx.root,
|
|
11941
11941
|
base: a.base ?? "main",
|
|
@@ -13003,7 +13003,7 @@ async function pushFigmaComponentOp(ctx, a) {
|
|
|
13003
13003
|
}
|
|
13004
13004
|
|
|
13005
13005
|
// src/server.ts
|
|
13006
|
-
var VERSION = true ? "0.8.
|
|
13006
|
+
var VERSION = true ? "0.8.3" : "dev";
|
|
13007
13007
|
var ok = (data) => ({ content: [{ type: "text", text: typeof data === "string" ? data : JSON.stringify(data, null, 2) }] });
|
|
13008
13008
|
var fail2 = (e) => ({ content: [{ type: "text", text: `Error: ${e.message ?? String(e)}` }], isError: true });
|
|
13009
13009
|
var run = (fn) => async (a) => {
|
|
@@ -694,7 +694,8 @@ function defineConfig(input) {
|
|
|
694
694
|
styleSuffix: input.components.styleSuffix ?? ".module.css",
|
|
695
695
|
reference: input.components.reference,
|
|
696
696
|
index: input.components.index,
|
|
697
|
-
specs: input.components.specs
|
|
697
|
+
specs: input.components.specs,
|
|
698
|
+
...input.components.styles ? { styles: input.components.styles.map(trimSlashes) } : {}
|
|
698
699
|
} : void 0,
|
|
699
700
|
docs: { ...input.docs },
|
|
700
701
|
changesets: pkg ? { dir: trimSlashes(input.changesets?.dir ?? ".changeset"), package: pkg } : void 0,
|
|
@@ -818,6 +819,7 @@ function loadConfig(source) {
|
|
|
818
819
|
problems.push('"contrast" must be { "path", "modes"? }');
|
|
819
820
|
const comps = d.components;
|
|
820
821
|
if (comps !== void 0 && (!isObj(comps) || !isStr(comps.dir))) problems.push('"components.dir" must be a non-empty string');
|
|
822
|
+
if (isObj(comps) && comps.styles !== void 0 && !isStrList(comps.styles)) problems.push('"components.styles" must be a list of globs');
|
|
821
823
|
const cs = d.changeset;
|
|
822
824
|
if (cs !== void 0 && (!isObj(cs) || !isStr(cs.package))) problems.push('"changeset.package" must be a non-empty string');
|
|
823
825
|
const css = d.changesets;
|
package/dist/index.js
CHANGED
package/dist/lib.js
CHANGED
|
@@ -28,12 +28,12 @@ import {
|
|
|
28
28
|
serveStdio,
|
|
29
29
|
studio_exports,
|
|
30
30
|
suggestions_exports
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-C2NPNN67.js";
|
|
32
32
|
import {
|
|
33
33
|
CONFIG_FILE,
|
|
34
34
|
loadConfig,
|
|
35
35
|
toConfigJson
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-CSJPMSY4.js";
|
|
37
37
|
export {
|
|
38
38
|
BridgeContext,
|
|
39
39
|
CONFIG_FILE,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/mcp",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
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.16.0",
|
|
58
|
+
"@bridge-ds/visual": "^0.3.10",
|
|
59
59
|
"@modelcontextprotocol/sdk": "1.31.0",
|
|
60
60
|
"typescript": "5.9.3",
|
|
61
61
|
"zod": "3.25.76"
|