🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

typeui.sh

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeui.sh - npm Package Compare versions

Comparing version
0.3.0
to
0.3.1
+2
-1
dist/config.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.LICENSE_CACHE_PATH = exports.LICENSE_CACHE_DIR = exports.REGISTRY_SPECS_URL = exports.REGISTRY_PULL_BASE_URL = exports.POLAR_VERIFY_URL = exports.API_DOMAIN = exports.MANAGED_BLOCK_END = exports.MANAGED_BLOCK_START = exports.PRODUCT_ID = void 0;
exports.LICENSE_CACHE_PATH = exports.LICENSE_CACHE_DIR = exports.REGISTRY_SPECS_URL = exports.REGISTRY_PULL_BASE_URL = exports.POLAR_VERIFY_URL = exports.PRICING_URL = exports.API_DOMAIN = exports.MANAGED_BLOCK_END = exports.MANAGED_BLOCK_START = exports.PRODUCT_ID = void 0;
exports.getPolarVerifyUrl = getPolarVerifyUrl;

@@ -17,2 +17,3 @@ exports.getRegistryPullUrl = getRegistryPullUrl;

exports.API_DOMAIN = "https://www.typeui.sh";
exports.PRICING_URL = "https://www.typeui.sh/#pricing";
exports.POLAR_VERIFY_URL = `${exports.API_DOMAIN}/api/license/verify`;

@@ -19,0 +20,0 @@ exports.REGISTRY_PULL_BASE_URL = `${exports.API_DOMAIN}/api/registry/pull`;

@@ -21,2 +21,15 @@ "use strict";

}
function isInvalidLicenseReason(reason) {
const normalized = reason.toLowerCase();
return (normalized === "not_found" ||
normalized.includes("license_invalid") ||
normalized.includes("license key is not valid") ||
normalized.includes("invalid license"));
}
function withLicensePurchaseHelp(reason) {
if (!isInvalidLicenseReason(reason)) {
return reason;
}
return `${reason} You can get a license key at ${config_1.PRICING_URL}.`;
}
async function ensureVerifiedAccess() {

@@ -30,3 +43,3 @@ const cached = await (0, licenseCache_1.readLicenseCache)();

if (!verifyResult.ok) {
throw new Error(`License verification failed: ${verifyResult.reason}`);
throw new Error(`License verification failed: ${withLicensePurchaseHelp(verifyResult.reason)}`);
}

@@ -43,3 +56,3 @@ await (0, licenseCache_1.writeLicenseCache)(buildCacheRecord(licenseKey, verifyResult.expiresAt));

if (!verifyResult.ok) {
throw new Error(`License verification failed: ${verifyResult.reason}`);
throw new Error(`License verification failed: ${withLicensePurchaseHelp(verifyResult.reason)}`);
}

@@ -53,3 +66,3 @@ await (0, licenseCache_1.writeLicenseCache)(buildCacheRecord(licenseKey, verifyResult.expiresAt));

if (!verifyResult.ok) {
throw new Error(`License verification failed: ${verifyResult.reason}`);
throw new Error(`License verification failed: ${withLicensePurchaseHelp(verifyResult.reason)}`);
}

@@ -56,0 +69,0 @@ const cacheRecord = buildCacheRecord(licenseKey, verifyResult.expiresAt);

{
"name": "typeui.sh",
"version": "0.3.0",
"version": "0.3.1",
"description": "Generate design system specifications and style guides as skill files for AI coding providers",

@@ -5,0 +5,0 @@ "main": "dist/cli.js",

@@ -24,9 +24,11 @@ ```

- `typeui.sh generate` - run the interactive design system prompts and generate skill files.
- `typeui.sh update` - update existing managed skill content in generated files.
- `typeui.sh pull <slug>` - pull a registry skill and write it to selected provider paths (requires activated license).
- `typeui.sh list` - choose one available registry spec, then pull it automatically (requires activated license).
- `typeui.sh verify` - verify your license key (pro version) and cache local license status.
- `typeui.sh license` - show local cached license status.
- `typeui.sh clear-cache` - remove local cache state (`~/.typeui-sh`).
| Command | Description |
| --- | --- |
| `generate` | Run the interactive design system prompts and generate skill files. |
| `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). |
| `verify` | Verify your license key (pro version) and cache local license status. |
| `license` | Show local cached license status. |
| `clear-cache` | Remove local cache state (`~/.typeui-sh`). |

@@ -33,0 +35,0 @@ Shared options for `generate` and `update`: