@agimon-ai/po-style-system-tooling 0.2.14-alpha.51 → 0.2.14-alpha.53

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.
package/dist/cli.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  const require_childProtocol = require("./childProtocol-iFAmYpDL.cjs");
3
- const require_stdio = require("./stdio-vNcB6x1c.cjs");
3
+ const require_stdio = require("./stdio-nQAV-t3w.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
6
6
  node_path = require_childProtocol.__toESM(node_path, 1);
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as resolveStyleSystemThemePath, F as TailwindCSSClassesService, L as STYLE_SYSTEM_TYPES, P as DEFAULT_STYLE_SYSTEM_CONFIG, a as STYLE_SYSTEM_CLI_NAME, i as createServer$1, o as STYLE_SYSTEM_VERSION, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, w as getAppDesignSystemConfig, y as getBundlerServiceFromConfig } from "./stdio-CrCK9nif.mjs";
2
+ import { A as resolveStyleSystemThemePath, F as TailwindCSSClassesService, L as STYLE_SYSTEM_TYPES, P as DEFAULT_STYLE_SYSTEM_CONFIG, a as STYLE_SYSTEM_CLI_NAME, i as createServer$1, o as STYLE_SYSTEM_VERSION, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, w as getAppDesignSystemConfig, y as getBundlerServiceFromConfig } from "./stdio-Da59BTOv.mjs";
3
3
  import { u as log } from "./childProtocol-B7bkYqKI.mjs";
4
4
  import { promises } from "node:fs";
5
5
  import path, { join } from "node:path";
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_childProtocol = require("./childProtocol-iFAmYpDL.cjs");
3
- const require_stdio = require("./stdio-vNcB6x1c.cjs");
3
+ const require_stdio = require("./stdio-nQAV-t3w.cjs");
4
4
  let node_fs = require("node:fs");
5
5
  let node_path = require("node:path");
6
6
  node_path = require_childProtocol.__toESM(node_path, 1);
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A as resolveStyleSystemThemePath, C as withRenderSlot, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as STYLE_SYSTEM_TYPES, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, S as launchBrowserWithFallback, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ChildBundlerService, c as createStyleSystemModule, d as GetComponentVisualTool, f as GetCSSClassesTool, g as ThemeService, h as ComponentRendererService, i as createServer, j as MAX_STYLE_SYSTEM_VIEWPORT_DIMENSION, k as StyleSystemConfigLoader, l as ListAppComponentsTool, m as GetUiComponentService, n as extractCustomTokenNames, p as ListThemesTool, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, u as ListSharedComponentsTool, v as getBundlerService, w as getAppDesignSystemConfig, x as createBundlerChildLauncher, y as getBundlerServiceFromConfig } from "./stdio-CrCK9nif.mjs";
1
+ import { A as resolveStyleSystemThemePath, C as withRenderSlot, D as resetStyleSystemConfigCache, E as hasStyleSystemProjectConfig, F as TailwindCSSClassesService, I as BaseCSSClassesService, L as STYLE_SYSTEM_TYPES, M as StoriesIndexService, N as CSSClassesServiceFactory, O as resolveAppDesignSystemConfig, P as DEFAULT_STYLE_SYSTEM_CONFIG, S as launchBrowserWithFallback, T as getSharedComponentTags, _ as createDefaultBundlerService, b as ChildBundlerService, c as createStyleSystemModule, d as GetComponentVisualTool, f as GetCSSClassesTool, g as ThemeService, h as ComponentRendererService, i as createServer, j as MAX_STYLE_SYSTEM_VIEWPORT_DIMENSION, k as StyleSystemConfigLoader, l as ListAppComponentsTool, m as GetUiComponentService, n as extractCustomTokenNames, p as ListThemesTool, r as generateRestrictedClassesConfig, s as createContainer, t as StdioTransportHandler, u as ListSharedComponentsTool, v as getBundlerService, w as getAppDesignSystemConfig, x as createBundlerChildLauncher, y as getBundlerServiceFromConfig } from "./stdio-Da59BTOv.mjs";
2
2
  import { a as ViteReactBundlerService, c as isContained, i as ViteReactNativeBundlerService, o as BaseBundlerService, s as TemplatesManagerService, u as log } from "./childProtocol-B7bkYqKI.mjs";
3
3
  import { promises } from "node:fs";
4
4
  import path from "node:path";
@@ -2642,12 +2642,15 @@ let GetUiComponentService = class GetUiComponentService {
2642
2642
  */
2643
2643
  resolveStoryName(requestedStory, availableStories, componentTitle) {
2644
2644
  if (availableStories.includes(requestedStory)) return requestedStory;
2645
+ const key = (name) => name.replace(/[^a-z0-9]/giu, "").toLowerCase();
2646
+ const matches = availableStories.filter((story) => key(story) === key(requestedStory));
2647
+ if (matches.length === 1) return matches[0];
2645
2648
  if (availableStories.length === 0) {
2646
2649
  log.error(`[GetUiComponentService] Component "${componentTitle}" has no indexed stories`);
2647
2650
  throw new Error(`Component "${componentTitle}" has no indexed stories, so story "${requestedStory}" cannot be rendered. Ensure its .stories.tsx file exports at least one story and has been indexed.`);
2648
2651
  }
2649
2652
  log.error(`[GetUiComponentService] Story "${requestedStory}" not found, available stories: ${availableStories.join(", ")}`);
2650
- throw new Error(`Story "${requestedStory}" not found for component "${componentTitle}". Available stories: ${availableStories.join(", ")}. Story names must match exactly.`);
2653
+ throw new Error(`Story "${requestedStory}" not found for component "${componentTitle}". Available stories: ${availableStories.join(", ")}.`);
2651
2654
  }
2652
2655
  /**
2653
2656
  * Read the story file content.
@@ -3516,7 +3519,7 @@ function createContainer(options) {
3516
3519
  }
3517
3520
  //#endregion
3518
3521
  //#region package.json
3519
- var version = "0.2.14-alpha.51";
3522
+ var version = "0.2.14-alpha.53";
3520
3523
  //#endregion
3521
3524
  //#region src/metadata.ts
3522
3525
  const STYLE_SYSTEM_CLI_NAME = "style-system";
@@ -2646,12 +2646,15 @@ let GetUiComponentService = class GetUiComponentService {
2646
2646
  */
2647
2647
  resolveStoryName(requestedStory, availableStories, componentTitle) {
2648
2648
  if (availableStories.includes(requestedStory)) return requestedStory;
2649
+ const key = (name) => name.replace(/[^a-z0-9]/giu, "").toLowerCase();
2650
+ const matches = availableStories.filter((story) => key(story) === key(requestedStory));
2651
+ if (matches.length === 1) return matches[0];
2649
2652
  if (availableStories.length === 0) {
2650
2653
  require_childProtocol.log.error(`[GetUiComponentService] Component "${componentTitle}" has no indexed stories`);
2651
2654
  throw new Error(`Component "${componentTitle}" has no indexed stories, so story "${requestedStory}" cannot be rendered. Ensure its .stories.tsx file exports at least one story and has been indexed.`);
2652
2655
  }
2653
2656
  require_childProtocol.log.error(`[GetUiComponentService] Story "${requestedStory}" not found, available stories: ${availableStories.join(", ")}`);
2654
- throw new Error(`Story "${requestedStory}" not found for component "${componentTitle}". Available stories: ${availableStories.join(", ")}. Story names must match exactly.`);
2657
+ throw new Error(`Story "${requestedStory}" not found for component "${componentTitle}". Available stories: ${availableStories.join(", ")}.`);
2655
2658
  }
2656
2659
  /**
2657
2660
  * Read the story file content.
@@ -3520,7 +3523,7 @@ function createContainer(options) {
3520
3523
  }
3521
3524
  //#endregion
3522
3525
  //#region package.json
3523
- var version = "0.2.14-alpha.51";
3526
+ var version = "0.2.14-alpha.53";
3524
3527
  //#endregion
3525
3528
  //#region src/metadata.ts
3526
3529
  const STYLE_SYSTEM_CLI_NAME = "style-system";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-style-system-tooling",
3
- "version": "0.2.14-alpha.51",
3
+ "version": "0.2.14-alpha.53",
4
4
  "description": "MCP server for exploring themes, Tailwind CSS classes, and UI components from Storybook with standalone component rendering capabilities",
5
5
  "keywords": [
6
6
  "design-system",