boardui 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +35 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -933,7 +933,9 @@ Typical flow:
933
933
 
934
934
  Component names are exact \u2014 when unsure, call list_components instead of guessing.
935
935
 
936
- Design rules (always apply when writing UI in a BoardUI project): style with BoardUI's semantic Tailwind tokens, never raw palette classes or hex \u2014 text via text-text-primary/-secondary/-tertiary, surfaces via bg-background-*-default/-hover, borders via border-border-* and border-separator-border, icons via text-foreground-icon-*. Type uses composite utilities (text-title-2-medium, text-headline-medium, text-body-medium, ...) that set size/weight/line-height together \u2014 never rebuild them from text-sm font-medium. Dark mode flips tokens automatically via the .dark class; never hardcode dark: colors. Merge classes with cx() from @/utils/cx; icons from @remixicon/react as component references. init_boardui installs these rules as always-on files (AGENTS.md + .cursor/rules/boardui.mdc) so they survive beyond this session; install_rules adds them to an already initialized project. For deeper always-loaded knowledge (full catalog, theming, page patterns), install_skill writes the BoardUI agent skill into .claude/skills/boardui.
936
+ Design rules (always apply when writing UI in a BoardUI project): style with BoardUI's semantic Tailwind tokens, never raw palette classes or hex \u2014 text via text-text-primary/-secondary/-tertiary, surfaces via bg-background-*-default/-hover, borders via border-border-* and border-separator-border, icons via text-foreground-icon-*. Type uses composite utilities (text-title-2-medium, text-headline-medium, text-body-medium, ...) that set size/weight/line-height together \u2014 never rebuild them from text-sm font-medium. Dark mode flips tokens automatically via the .dark class; never hardcode dark: colors. Merge classes with cx() from @/utils/cx; icons from @remixicon/react as component references. init_boardui installs these rules as always-on files (AGENTS.md + .cursor/rules/boardui.mdc) so they survive beyond this session; install_rules adds them to an already initialized project.
937
+
938
+ Agent skill: BoardUI also ships an agent skill (SKILL.md open standard) carrying deeper always-loaded knowledge \u2014 the full component catalog, theming, page patterns, and the motion language. get_skill answers questions about it (returns SKILL.md and the file list); install_skill writes it into the project's .claude/skills/boardui. For other destinations, relay the CLI: npx boardui@latest skill (project), --global (~/.claude/skills), --client codex (~/.agents/skills, read by Codex and Gemini), --path <dir> (anywhere), --force (update). Docs: https://www.boardui.com/skill
937
939
 
938
940
  Pro: items marked PRO require a one-time BoardUI Pro license (${PRICING_URL}, lifetime updates). If the user wants a pro item and no license is active, relay the pricing link \u2014 and if they already purchased, ask them for the license key from their Lemon Squeezy receipt, then call activate_license with it. After that, pro installs work like free ones.`;
939
941
  var posthog = new PostHog("phc_Cp49ooHFujriAf92MgJgj2spJZ2kyBrJC2uUN8wDRqSV", {
@@ -1081,7 +1083,7 @@ ${INSTRUCTIONS}
1081
1083
 
1082
1084
  Pro license on this machine: ${licensed ? "ACTIVE (pro installs unlocked)" : `none yet \u2014 pro items show a purchase link (${PRICING_URL})`}.
1083
1085
 
1084
- Tools: list_components, get_component, get_usage_examples, install_components, init_boardui, install_rules, install_skill, get_theme, activate_license, license_status, deactivate_license.`
1086
+ Tools: list_components, get_component, get_usage_examples, install_components, init_boardui, install_rules, get_skill, install_skill, get_theme, activate_license, license_status, deactivate_license.`
1085
1087
  );
1086
1088
  })
1087
1089
  );
@@ -1423,6 +1425,37 @@ NOT installed \u2014 pro fetch failed for ${proFailure.names.join(", ")}: ${proF
1423
1425
  }
1424
1426
  )
1425
1427
  );
1428
+ server.registerTool(
1429
+ "get_skill",
1430
+ {
1431
+ title: "About the BoardUI agent skill",
1432
+ description: "What the BoardUI agent skill is and what it contains: returns the live SKILL.md (workflow, design rules digest, component selection, gotchas, Pro licensing) plus the bundled reference files with their sizes, the install options for every client, and how updating works. Call this when the user asks about BoardUI skills or wants to read the skill before installing.",
1433
+ annotations: { readOnlyHint: true }
1434
+ },
1435
+ safe(async () => {
1436
+ const items = await resolveItems([SKILL_ITEM_NAME]);
1437
+ const files = items.flatMap((item) => item.files);
1438
+ const skillMd = files.find((file) => file.target === "SKILL.md")?.content ?? "";
1439
+ const listing = files.map((file) => `- ${file.target} (${Math.round(file.content.length / 1024)} KB)`).join("\n");
1440
+ return text(
1441
+ `The BoardUI agent skill (SKILL.md open standard) gives skill-capable agents always-loaded BoardUI knowledge; the MCP server stays the on-demand companion for live source and installs.
1442
+
1443
+ Files in the skill:
1444
+ ${listing}
1445
+
1446
+ Install options:
1447
+ - This project via MCP: call install_skill (writes .claude/skills/boardui; overwrite updates).
1448
+ - CLI: npx boardui@latest skill \u2014 flags: --global (~/.claude/skills), --client codex (~/.agents/skills, read by Codex and Gemini), --path <dir> (any client), --force (update in place).
1449
+ - Skills load when a session starts, so restart the agent or open a fresh chat after installing.
1450
+
1451
+ Docs: https://www.boardui.com/skill
1452
+
1453
+ --- SKILL.md (live) ---
1454
+
1455
+ ${skillMd}`
1456
+ );
1457
+ })
1458
+ );
1426
1459
  server.registerTool(
1427
1460
  "install_skill",
1428
1461
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boardui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Add BoardUI components to your project.",
5
5
  "license": "MIT",
6
6
  "type": "module",