boardui 0.5.3 → 0.5.5
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/index.js +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ async function installPackages(pm, packages, cwd) {
|
|
|
143
143
|
import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "fs";
|
|
144
144
|
import { homedir, hostname } from "os";
|
|
145
145
|
import path2 from "path";
|
|
146
|
-
var LICENSE_API = "https://
|
|
146
|
+
var LICENSE_API = process.env.BOARDUI_LICENSE_API ?? "https://www.boardui.com/api/licenses";
|
|
147
147
|
var PRO_PRODUCT_IDS = /* @__PURE__ */ new Set([1220683, 1268490]);
|
|
148
148
|
function configRoot() {
|
|
149
149
|
if (process.env.XDG_CONFIG_HOME) return process.env.XDG_CONFIG_HOME;
|
|
@@ -304,7 +304,7 @@ async function fetchProRegistryItem(name) {
|
|
|
304
304
|
const license = getLicense();
|
|
305
305
|
if (!license) {
|
|
306
306
|
throw new Error(
|
|
307
|
-
`"${name}" is a BoardUI Pro component. Run \`boardui login <license-key>\` first (the key is in your
|
|
307
|
+
`"${name}" is a BoardUI Pro component. Run \`boardui login <license-key>\` first (the key is in your purchase email).`
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
310
|
let response;
|
|
@@ -939,7 +939,7 @@ async function login(key) {
|
|
|
939
939
|
const answer = await prompts3({
|
|
940
940
|
type: "password",
|
|
941
941
|
name: "key",
|
|
942
|
-
message: "Paste your BoardUI Pro license key (from your
|
|
942
|
+
message: "Paste your BoardUI Pro license key (from your purchase email)"
|
|
943
943
|
});
|
|
944
944
|
licenseKey = typeof answer.key === "string" ? answer.key.trim() : "";
|
|
945
945
|
}
|
|
@@ -988,7 +988,7 @@ Design rules (always apply when writing UI in a BoardUI project): style with Boa
|
|
|
988
988
|
|
|
989
989
|
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
|
|
990
990
|
|
|
991
|
-
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
|
|
991
|
+
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 purchase email, then call activate_license with it. After that, pro installs work like free ones.`;
|
|
992
992
|
var posthog = new PostHog("phc_Cp49ooHFujriAf92MgJgj2spJZ2kyBrJC2uUN8wDRqSV", {
|
|
993
993
|
host: "https://eu.i.posthog.com"
|
|
994
994
|
});
|
|
@@ -1142,7 +1142,7 @@ ${listing}
|
|
|
1142
1142
|
|
|
1143
1143
|
BoardUI Pro is a one-time purchase with lifetime updates that unlocks every pro component and template: ${PRICING_URL}
|
|
1144
1144
|
|
|
1145
|
-
If the user already purchased Pro, ask them for the license key from their
|
|
1145
|
+
If the user already purchased Pro, ask them for the license key from their purchase email, then call activate_license with it \u2014 after that, install these items again and it will work.`;
|
|
1146
1146
|
}
|
|
1147
1147
|
function formatDependencyOutcome(project, wanted, installDependencies, outcome) {
|
|
1148
1148
|
if (wanted.size === 0) return "All npm dependencies were already installed.";
|
|
@@ -1631,9 +1631,9 @@ ${skillMd}`
|
|
|
1631
1631
|
"activate_license",
|
|
1632
1632
|
{
|
|
1633
1633
|
title: "Activate a BoardUI Pro license",
|
|
1634
|
-
description: "Activates a BoardUI Pro license key on this machine (uses one of the license's seats) and stores it for future installs \u2014 pro components/templates then install like free ones. Ask the user for the key from their
|
|
1634
|
+
description: "Activates a BoardUI Pro license key on this machine (uses one of the license's seats) and stores it for future installs \u2014 pro components/templates then install like free ones. Ask the user for the key from their purchase email; never invent one.",
|
|
1635
1635
|
inputSchema: {
|
|
1636
|
-
licenseKey: z.string().describe("The BoardUI Pro license key from the user's
|
|
1636
|
+
licenseKey: z.string().describe("The BoardUI Pro license key from the user's purchase email.")
|
|
1637
1637
|
}
|
|
1638
1638
|
},
|
|
1639
1639
|
safe(async ({ licenseKey }) => {
|
|
@@ -1655,7 +1655,7 @@ ${skillMd}`
|
|
|
1655
1655
|
"license_status",
|
|
1656
1656
|
{
|
|
1657
1657
|
title: "Check Pro license status",
|
|
1658
|
-
description: "Validates the stored BoardUI Pro license
|
|
1658
|
+
description: "Validates the stored BoardUI Pro license with the license server (product, status, seats) \u2014 not just whether a key file exists. Key is shown masked.",
|
|
1659
1659
|
annotations: { readOnlyHint: true }
|
|
1660
1660
|
},
|
|
1661
1661
|
safe(async () => {
|
|
@@ -1675,7 +1675,7 @@ ${skillMd}`
|
|
|
1675
1675
|
}
|
|
1676
1676
|
if (!validation || !validation.valid) {
|
|
1677
1677
|
return text(
|
|
1678
|
-
`A license key is stored (${maskKey(license.licenseKey)}) but
|
|
1678
|
+
`A license key is stored (${maskKey(license.licenseKey)}) but the license server rejects it: ${validation?.error ?? "not valid"}. Ask the user to re-check the key from their purchase email, or contact hi@boardui.com.`
|
|
1679
1679
|
);
|
|
1680
1680
|
}
|
|
1681
1681
|
const seats = validation.seatLimit && validation.seatLimit > 0 ? ` Seats: ${validation.seatsUsed}/${validation.seatLimit}.` : "";
|
|
@@ -1789,7 +1789,7 @@ program.command("mcp").description("Start the BoardUI MCP server (stdio) so AI a
|
|
|
1789
1789
|
program.command("skill").description("Install the BoardUI agent skill (SKILL.md + references) so agents like Claude Code and Codex know the design system.").option("-g, --global", "install to ~/.claude/skills/boardui instead of the project's .claude/skills").option("-c, --client <client>", "install to ~/.agents/skills/boardui for clients that read it (codex, gemini)").option("-p, --path <dir>", "custom directory to install the skill into").option("-f, --force", "overwrite an existing install (how you update)").action(async (options) => {
|
|
1790
1790
|
await skill(options);
|
|
1791
1791
|
});
|
|
1792
|
-
program.command("login").description("Activate a BoardUI Pro license key on this machine.").argument("[key]", "license key from your
|
|
1792
|
+
program.command("login").description("Activate a BoardUI Pro license key on this machine.").argument("[key]", "license key from your purchase email").action(async (key) => {
|
|
1793
1793
|
await login(key);
|
|
1794
1794
|
});
|
|
1795
1795
|
program.command("logout").description("Release this machine's Pro seat and remove the stored key.").action(async () => {
|