@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-DPK46GA2.js";
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-UNWS2OVM.js")).runImpact;
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.2" : "dev";
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
@@ -3,8 +3,8 @@ import {
3
3
  VERSION,
4
4
  optionsFromArgv,
5
5
  serveStdio
6
- } from "./chunk-QCPYJXK4.js";
7
- import "./chunk-DPK46GA2.js";
6
+ } from "./chunk-C2NPNN67.js";
7
+ import "./chunk-CSJPMSY4.js";
8
8
 
9
9
  // src/index.ts
10
10
  var argv = process.argv.slice(2);
package/dist/lib.js CHANGED
@@ -28,12 +28,12 @@ import {
28
28
  serveStdio,
29
29
  studio_exports,
30
30
  suggestions_exports
31
- } from "./chunk-QCPYJXK4.js";
31
+ } from "./chunk-C2NPNN67.js";
32
32
  import {
33
33
  CONFIG_FILE,
34
34
  loadConfig,
35
35
  toConfigJson
36
- } from "./chunk-DPK46GA2.js";
36
+ } from "./chunk-CSJPMSY4.js";
37
37
  export {
38
38
  BridgeContext,
39
39
  CONFIG_FILE,
@@ -11,7 +11,7 @@ import {
11
11
  referenceImagePath,
12
12
  selectTokenFiles,
13
13
  showFile
14
- } from "./chunk-DPK46GA2.js";
14
+ } from "./chunk-CSJPMSY4.js";
15
15
 
16
16
  // ../visual/src/run.ts
17
17
  import { existsSync as existsSync3 } from "node:fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/mcp",
3
- "version": "0.8.2",
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.15.0",
58
- "@bridge-ds/visual": "^0.3.9",
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"