+4
-6
@@ -74,4 +74,3 @@ #!/usr/bin/env node | ||
| const providers = [...new Set([...types_1.ALWAYS_INCLUDED_PROVIDERS, ...selectedProviders])]; | ||
| const licenseKey = await (0, licenseService_1.getVerifiedLicenseKey)(); | ||
| const pullResult = await (0, registryClient_1.pullSkillMarkdown)(parsedSlug.data, licenseKey); | ||
| const pullResult = await (0, registryClient_1.pullSkillMarkdown)(parsedSlug.data); | ||
| if (!pullResult.ok) { | ||
@@ -89,4 +88,3 @@ throw new Error(`Registry pull failed: ${pullResult.reason}`); | ||
| async function listLike(options) { | ||
| const licenseKey = await (0, licenseService_1.getVerifiedLicenseKey)(); | ||
| const specsResult = await (0, registryClient_1.listRegistrySpecs)(licenseKey); | ||
| const specsResult = await (0, registryClient_1.listRegistrySpecs)(); | ||
| if (!specsResult.ok) { | ||
@@ -101,3 +99,3 @@ throw new Error(`Registry specs failed: ${specsResult.reason}`); | ||
| if (selectableSpecs.length === 0) { | ||
| throw new Error("No pullable registry specs available for this license."); | ||
| throw new Error("No pullable registry specs available."); | ||
| } | ||
@@ -146,3 +144,3 @@ const selected = await (0, registry_1.promptRegistrySpecSelection)(specsResult.specs); | ||
| .command("list") | ||
| .description("List available license-gated registry design system specs.") | ||
| .description("List available registry design system specs.") | ||
| .option("-p, --providers <providers>", "Comma-separated providers") | ||
@@ -149,0 +147,0 @@ .option("--dry-run", "Preview file changes without writing") |
+4
-0
@@ -10,2 +10,3 @@ "use strict"; | ||
| exports.getRegistrySpecsUrl = getRegistrySpecsUrl; | ||
| exports.getDesignSystemUrl = getDesignSystemUrl; | ||
| const node_path_1 = __importDefault(require("node:path")); | ||
@@ -32,1 +33,4 @@ const node_os_1 = __importDefault(require("node:os")); | ||
| } | ||
| function getDesignSystemUrl(slug) { | ||
| return `${exports.API_DOMAIN}/design-systems/${encodeURIComponent(slug)}`; | ||
| } |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.promptRegistrySpecSelection = promptRegistrySpecSelection; | ||
| const config_1 = require("../config"); | ||
| async function loadInquirer() { | ||
@@ -15,3 +16,3 @@ const dynamicImport = new Function("specifier", "return import(specifier)"); | ||
| const choices = specs.map((spec) => ({ | ||
| name: `${spec.name} (${spec.slug})${spec.hasSkillMd ? "" : " - no skill markdown"}`, | ||
| name: `${spec.name} (${(0, config_1.getDesignSystemUrl)(spec.slug).replace(/^https?:\/\//, "")})${spec.hasSkillMd ? "" : " - no skill markdown"}`, | ||
| value: spec.slug, | ||
@@ -18,0 +19,0 @@ disabled: spec.hasSkillMd ? false : "No skill markdown available for pull." |
@@ -34,3 +34,3 @@ "use strict"; | ||
| } | ||
| async function pullSkillMarkdown(slug, licenseKey) { | ||
| async function pullSkillMarkdown(slug) { | ||
| const parsedSlug = designSystemSchema_1.RegistrySlugSchema.safeParse(slug); | ||
@@ -43,9 +43,2 @@ if (!parsedSlug.success) { | ||
| } | ||
| const normalizedLicenseKey = licenseKey.trim(); | ||
| if (normalizedLicenseKey.length <= 5) { | ||
| return { | ||
| ok: false, | ||
| reason: "Invalid license key." | ||
| }; | ||
| } | ||
| const endpoint = (0, config_1.getRegistryPullUrl)(parsedSlug.data); | ||
@@ -59,5 +52,3 @@ let response; | ||
| }, | ||
| body: JSON.stringify({ | ||
| licenseKey: normalizedLicenseKey | ||
| }) | ||
| body: JSON.stringify({}) | ||
| }); | ||
@@ -112,10 +103,3 @@ } | ||
| } | ||
| async function listRegistrySpecs(licenseKey) { | ||
| const normalizedLicenseKey = licenseKey.trim(); | ||
| if (normalizedLicenseKey.length <= 5) { | ||
| return { | ||
| ok: false, | ||
| reason: "Invalid license key." | ||
| }; | ||
| } | ||
| async function listRegistrySpecs() { | ||
| const endpoint = (0, config_1.getRegistrySpecsUrl)(); | ||
@@ -129,5 +113,3 @@ let response; | ||
| }, | ||
| body: JSON.stringify({ | ||
| licenseKey: normalizedLicenseKey | ||
| }) | ||
| body: JSON.stringify({}) | ||
| }); | ||
@@ -134,0 +116,0 @@ } |
+1
-1
| { | ||
| "name": "typeui.sh", | ||
| "version": "0.3.1", | ||
| "version": "0.4.0", | ||
| "description": "Generate design system specifications and style guides as skill files for AI coding providers", | ||
@@ -5,0 +5,0 @@ "main": "dist/cli.js", |
+2
-2
@@ -28,4 +28,4 @@ ``` | ||
| | `update` | Update existing managed skill content in generated files. | | ||
| | `pull <slug>` | Pull a registry skill and write it to selected provider paths (requires activated license). | | ||
| | `list` | Choose one available registry spec, then pull it automatically (requires activated license). | | ||
| | `pull <slug>` | Pull a registry skill and write it to selected provider paths. | | ||
| | `list` | Show available registry specs (including design system links), then pull one automatically. | | ||
| | `verify` | Verify your license key (pro version) and cache local license status. | | ||
@@ -32,0 +32,0 @@ | `license` | Show local cached license status. | |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
82776
-0.61%1844
-0.81%