@fragments-sdk/cli 0.14.0 → 0.14.2

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.
@@ -24,7 +24,7 @@ import {
24
24
  formatMs,
25
25
  generateHtmlReport,
26
26
  getGrade
27
- } from "./chunk-7K3VROEP.js";
27
+ } from "./chunk-APTQIBS5.js";
28
28
  import {
29
29
  BRAND,
30
30
  DEFAULTS,
@@ -2450,4 +2450,4 @@ export {
2450
2450
  runDiffCommand,
2451
2451
  runAnalyzeCommand
2452
2452
  };
2453
- //# sourceMappingURL=chunk-FZLPVN32.js.map
2453
+ //# sourceMappingURL=chunk-LOYS64QS.js.map
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  validateCoverage,
13
13
  validateSchema,
14
14
  validateSnippets
15
- } from "./chunk-FZLPVN32.js";
15
+ } from "./chunk-LOYS64QS.js";
16
16
  import "./chunk-EYXVAMEX.js";
17
17
  import {
18
18
  findConfigFile,
@@ -23,7 +23,7 @@ import {
23
23
  discoverFragmentFiles,
24
24
  extractComponentName
25
25
  } from "./chunk-ZKTFKHWN.js";
26
- import "./chunk-7K3VROEP.js";
26
+ import "./chunk-APTQIBS5.js";
27
27
  import "./chunk-D2CDBRNU.js";
28
28
  import {
29
29
  defineBlock,
@@ -581,7 +581,7 @@ ${BRAND.name} init
581
581
  }
582
582
  if (scenario === "components" || scenario === "stories") {
583
583
  try {
584
- const { scan } = await import("./scan-LE2JEIJ4.js");
584
+ const { scan } = await import("./scan-YJHQIRKG.js");
585
585
  const scanResult = await scan({
586
586
  config: configPath,
587
587
  verbose: false,
@@ -633,4 +633,4 @@ ${BRAND.name} init
633
633
  export {
634
634
  init
635
635
  };
636
- //# sourceMappingURL=init-U6534EMZ.js.map
636
+ //# sourceMappingURL=init-WRUSW7R5.js.map
package/dist/mcp-bin.js CHANGED
@@ -58,7 +58,7 @@ var _service = null;
58
58
  async function getService() {
59
59
  if (!_service) {
60
60
  try {
61
- _service = await import("./service-S5LXPKV4.js");
61
+ _service = await import("./service-HKJ6B7P7.js");
62
62
  } catch {
63
63
  throw new Error(
64
64
  "Visual tools require playwright. Install it with: npm install playwright"
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __banner_createRequire } from 'module'; const require = __banner_createRequire(import.meta.url);
2
2
  import {
3
3
  scan
4
- } from "./chunk-Z5BUXIFJ.js";
4
+ } from "./chunk-5A6X2Y73.js";
5
5
  import "./chunk-55KERLWL.js";
6
6
  import "./chunk-ZKTFKHWN.js";
7
- import "./chunk-7K3VROEP.js";
7
+ import "./chunk-APTQIBS5.js";
8
8
  import "./chunk-D2CDBRNU.js";
9
9
  import "./chunk-I34BC3CU.js";
10
10
  import "./chunk-Z7EY4VHE.js";
11
11
  export {
12
12
  scan
13
13
  };
14
- //# sourceMappingURL=scan-LE2JEIJ4.js.map
14
+ //# sourceMappingURL=scan-YJHQIRKG.js.map
@@ -97,7 +97,7 @@ import {
97
97
  shutdownSharedPool,
98
98
  sleep,
99
99
  summarizePatternsForPrompt
100
- } from "./chunk-7K3VROEP.js";
100
+ } from "./chunk-APTQIBS5.js";
101
101
  import "./chunk-D2CDBRNU.js";
102
102
  import {
103
103
  BRAND,
@@ -206,4 +206,4 @@ export {
206
206
  sleep,
207
207
  summarizePatternsForPrompt
208
208
  };
209
- //# sourceMappingURL=service-S5LXPKV4.js.map
209
+ //# sourceMappingURL=service-HKJ6B7P7.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import "./chunk-ZKTFKHWN.js";
6
6
  import {
7
7
  parseTokenFiles
8
- } from "./chunk-7K3VROEP.js";
8
+ } from "./chunk-APTQIBS5.js";
9
9
  import "./chunk-D2CDBRNU.js";
10
10
  import {
11
11
  BRAND
@@ -172,4 +172,4 @@ export {
172
172
  tokens_default as default,
173
173
  tokens
174
174
  };
175
- //# sourceMappingURL=tokens-OPVTVITP.js.map
175
+ //# sourceMappingURL=tokens-KE73G5JC.js.map
@@ -373,7 +373,7 @@ var sharedRenderPool = null;
373
373
  var browserPoolModule = null;
374
374
  async function getSharedRenderPool() {
375
375
  if (!browserPoolModule) {
376
- browserPoolModule = await import("./service-S5LXPKV4.js");
376
+ browserPoolModule = await import("./service-HKJ6B7P7.js");
377
377
  }
378
378
  if (!sharedRenderPool) {
379
379
  sharedRenderPool = new browserPoolModule.BrowserPool({
@@ -616,7 +616,7 @@ function fragmentsPlugin(options) {
616
616
  const address = _server.httpServer?.address();
617
617
  const port = typeof address === "object" && address ? address.port : 6006;
618
618
  const renderViewport = viewport || { width: 800, height: 600 };
619
- const { FigmaClient, bufferToBase64Url } = await import("./service-S5LXPKV4.js");
619
+ const { FigmaClient, bufferToBase64Url } = await import("./service-HKJ6B7P7.js");
620
620
  const figmaClient = new FigmaClient({
621
621
  accessToken: figmaToken
622
622
  });
@@ -707,7 +707,7 @@ function fragmentsPlugin(options) {
707
707
  );
708
708
  return;
709
709
  }
710
- const { FigmaClient } = await import("./service-S5LXPKV4.js");
710
+ const { FigmaClient } = await import("./service-HKJ6B7P7.js");
711
711
  const figmaClient = new FigmaClient({ accessToken: figmaToken });
712
712
  const { fileKey, nodeId } = figmaClient.parseUrl(figmaUrl);
713
713
  const figmaDesignProps = await figmaClient.getNodeProperties(
@@ -748,7 +748,7 @@ function fragmentsPlugin(options) {
748
748
  }));
749
749
  return;
750
750
  }
751
- const { getSharedTokenRegistry } = await import("./service-S5LXPKV4.js");
751
+ const { getSharedTokenRegistry } = await import("./service-HKJ6B7P7.js");
752
752
  const registry = getSharedTokenRegistry();
753
753
  if (!registry.isInitialized()) {
754
754
  await registry.initialize(config.tokens, projectRoot);
@@ -808,7 +808,7 @@ function fragmentsPlugin(options) {
808
808
  }));
809
809
  return;
810
810
  }
811
- const { getSharedTokenRegistry } = await import("./service-S5LXPKV4.js");
811
+ const { getSharedTokenRegistry } = await import("./service-HKJ6B7P7.js");
812
812
  const registry = getSharedTokenRegistry();
813
813
  if (!registry.isInitialized()) {
814
814
  await registry.initialize(config.tokens, projectRoot);
@@ -870,7 +870,7 @@ function fragmentsPlugin(options) {
870
870
  res.end(JSON.stringify({ error: "Could not resolve fragment file path" }));
871
871
  return;
872
872
  }
873
- const { getSharedTokenRegistry } = await import("./service-S5LXPKV4.js");
873
+ const { getSharedTokenRegistry } = await import("./service-HKJ6B7P7.js");
874
874
  const registry = getSharedTokenRegistry();
875
875
  if (!registry.isInitialized()) {
876
876
  await registry.initialize(config.tokens, projectRoot);
@@ -1085,7 +1085,7 @@ function fragmentsPlugin(options) {
1085
1085
  const {
1086
1086
  getSharedTokenRegistry,
1087
1087
  generateTokenPatches
1088
- } = await import("./service-S5LXPKV4.js");
1088
+ } = await import("./service-HKJ6B7P7.js");
1089
1089
  const registry = getSharedTokenRegistry();
1090
1090
  if (!registry.isInitialized()) {
1091
1091
  await registry.initialize(config.tokens, projectRoot);
@@ -2194,7 +2194,7 @@ async function loadFullFragmentForCompare(_server, _fragmentFiles, componentName
2194
2194
  }
2195
2195
  }
2196
2196
  async function compareImages(image1Base64, image2Base64, threshold) {
2197
- const { DiffEngine, base64UrlToBuffer, bufferToBase64Url } = await import("./service-S5LXPKV4.js");
2197
+ const { DiffEngine, base64UrlToBuffer, bufferToBase64Url } = await import("./service-HKJ6B7P7.js");
2198
2198
  const { PNG } = await import("pngjs");
2199
2199
  const buffer1 = base64UrlToBuffer(image1Base64);
2200
2200
  const buffer2 = base64UrlToBuffer(image2Base64);
@@ -2727,4 +2727,4 @@ export {
2727
2727
  createDevServer,
2728
2728
  fragmentsPlugin
2729
2729
  };
2730
- //# sourceMappingURL=viewer-OBTEPVY7.js.map
2730
+ //# sourceMappingURL=viewer-2TZS3NDL.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fragments-sdk/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "license": "FSL-1.1-MIT",
5
5
  "description": "CLI, MCP server, and dev tools for Fragments design system",
6
6
  "author": "Conan McNicholl",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "type": "module",
13
13
  "bin": {
14
+ "cli": "./dist/bin.js",
14
15
  "fragments": "./dist/bin.js",
15
16
  "fragments-sdk": "./dist/bin.js",
16
17
  "fragments-mcp": "./dist/mcp-bin.js"
@@ -81,8 +82,8 @@
81
82
  "vite-plugin-svgr": "^4.5.0",
82
83
  "zod": "^3.24.1",
83
84
  "@fragments-sdk/context": "0.5.1",
84
- "@fragments-sdk/viewer": "0.2.5",
85
85
  "@fragments-sdk/govern": "^0.2.1",
86
+ "@fragments-sdk/viewer": "0.2.5",
86
87
  "@fragments-sdk/core": "1.0.1",
87
88
  "@fragments-sdk/webmcp": "2.0.1"
88
89
  },
@@ -1,4 +1,4 @@
1
- import { chromium, type Browser, type BrowserContext } from "playwright";
1
+ import type { Browser, BrowserContext } from "playwright";
2
2
  import { BRAND, DEFAULTS, type Viewport } from "../core/index.js";
3
3
 
4
4
  /**
@@ -193,6 +193,7 @@ export class BrowserPool {
193
193
  }
194
194
 
195
195
  private async doInitialize(): Promise<void> {
196
+ const { chromium } = await import("playwright");
196
197
  this.browser = await chromium.launch({
197
198
  headless: this.headless,
198
199
  args: [