Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@hypercli/ui

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hypercli/ui - npm Package Compare versions

Comparing version
0.1.3
to
0.2.2
+1
-1
package.json
{
"name": "@hypercli/ui",
"version": "0.1.3",
"version": "0.2.2",
"type": "module",

@@ -5,0 +5,0 @@ "description": "CLI design system for HyperDev — full design system with shortcuts, themes, and help rendering",

/**
* Color functions — the `c` object.
*
* Each function wraps chalk to apply a semantic color.
* Merged from gen/lib/colors.ts + core/ui/styles.ts.
*/
export declare const c: {
success: (text: string) => string;
error: (text: string) => string;
warning: (text: string) => string;
info: (text: string) => string;
muted: (text: string) => string;
command: (text: string) => string;
danger: (text: string) => string;
highlight: (text: string) => string;
dim: (text: string) => string;
bold: (text: string) => string;
subtle: (text: string) => string;
text: (text: string) => string;
kit: (text: string) => string;
recipe: (text: string) => string;
cookbook: (text: string) => string;
helper: (text: string) => string;
property: (text: string) => string;
required: (text: string) => string;
default: (value: any) => string;
enum: (text: string) => string;
title: (text: string) => string;
heading: (text: string) => string;
version: (text: string) => string;
};
//# sourceMappingURL=colors.d.ts.map
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAAO,MAAM,CAAC;oBAEG,MAAM;kBACR,MAAM;oBACJ,MAAM;iBACT,MAAM;kBACL,MAAM;oBAGJ,MAAM;mBACP,MAAM;sBAGH,MAAM;gBACZ,MAAM;iBACL,MAAM;mBACJ,MAAM;iBACR,MAAM;gBAGP,MAAM;mBACH,MAAM;qBACJ,MAAM;mBACR,MAAM;qBAGJ,MAAM;qBACN,MAAM;qBACN,GAAG;iBACP,MAAM;kBAGL,MAAM;oBACJ,MAAM;oBACN,MAAM;CACtB,CAAC"}
/**
* Color functions — the `c` object.
*
* Each function wraps chalk to apply a semantic color.
* Merged from gen/lib/colors.ts + core/ui/styles.ts.
*/
import chalk from "chalk";
import { palette } from "./palette.js";
export const c = {
// Status colors
success: (text) => chalk.green(text),
error: (text) => chalk.red(text),
warning: (text) => chalk.yellow(text),
info: (text) => chalk.blue(text),
muted: (text) => chalk.gray(text),
// From core/ui/styles — hex-based
command: (text) => chalk.hex(palette.brand)(text),
danger: (text) => chalk.hex(palette.danger)(text),
// Formatting helpers
highlight: (text) => chalk.cyan(text),
dim: (text) => chalk.dim(text),
bold: (text) => chalk.bold(text),
subtle: (text) => chalk.gray(text),
text: (text) => text,
// CLI entity colors
kit: (text) => chalk.magenta(text),
recipe: (text) => chalk.cyan.bold(text),
cookbook: (text) => chalk.magenta.bold(text),
helper: (text) => chalk.yellow(text),
// Code/data colors
property: (text) => chalk.cyan(text),
required: (text) => chalk.red.bold(text),
default: (value) => chalk.gray(` (default: ${JSON.stringify(value)})`),
enum: (text) => chalk.yellow(text),
// Headings & labels
title: (text) => chalk.bold.cyan(text),
heading: (text) => chalk.bold.yellow(text),
version: (text) => chalk.gray(text),
};
//# sourceMappingURL=colors.js.map
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,CAAC,GAAG;IAChB,gBAAgB;IAChB,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IAC5C,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;IACxC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IAC7C,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CA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C;IAC5C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC;IAC3E,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IAE1C,oBAAoB;IACpB,KAAK,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC9C,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;IAClD,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;CAC3C,CAAC"}
/**
* Inline markdown processor for CLI strings.
*
* Transforms a subset of markdown into chalk-styled terminal output:
* - `code` → command color (palette.brand)
* - **bold** → chalk.bold
* - *dim* → chalk.dim
*
* Opt-in only — not auto-applied to other functions.
*/
export declare function md(text: string): string;
//# sourceMappingURL=md.d.ts.map
{"version":3,"file":"md.d.ts","sourceRoot":"","sources":["../src/md.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAKH,wBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKvC"}
/**
* Inline markdown processor for CLI strings.
*
* Transforms a subset of markdown into chalk-styled terminal output:
* - `code` → command color (palette.brand)
* - **bold** → chalk.bold
* - *dim* → chalk.dim
*
* Opt-in only — not auto-applied to other functions.
*/
import chalk from "chalk";
import { palette } from "./palette.js";
export function md(text) {
return text
.replace(/`([^`]+)`/g, (_, code) => chalk.hex(palette.brand)(code))
.replace(/\*\*([^*]+)\*\*/g, (_, bold) => chalk.bold(bold))
.replace(/(?<!\*)\*([^*]+)\*(?!\*)/g, (_, dim) => chalk.dim(dim));
}
//# sourceMappingURL=md.js.map
{"version":3,"file":"md.js","sourceRoot":"","sources":["../src/md.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,UAAU,EAAE,CAAC,IAAY;IAC9B,OAAO,IAAI;SACT,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;SAClE,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC1D,OAAO,CAAC,2BAA2B,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,CAAC"}
/**
* Structured message blocks — the `msg` namespace.
*
* Produces formatted multi-line messages with icons, bars, and indentation.
* Supports both props objects and simple string shorthand.
*/
interface MessageProps {
title?: string;
summary: string;
body?: string | string[];
}
export declare const msg: {
error: (input: string | MessageProps) => string;
warning: (input: string | MessageProps) => string;
success: (input: string | MessageProps) => string;
info: (input: string | MessageProps) => string;
tip: (input: string | MessageProps) => string;
};
export {};
//# sourceMappingURL=messages.d.ts.map
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,UAAU,YAAY;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB;AAwDD,eAAO,MAAM,GAAG;mBANA,MAAM,GAAG,YAAY,KAAG,MAAM;qBAA9B,MAAM,GAAG,YAAY,KAAG,MAAM;qBAA9B,MAAM,GAAG,YAAY,KAAG,MAAM;kBAA9B,MAAM,GAAG,YAAY,KAAG,MAAM;iBAA9B,MAAM,GAAG,YAAY,KAAG,MAAM;CAY7C,CAAC"}
/**
* Structured message blocks — the `msg` namespace.
*
* Produces formatted multi-line messages with icons, bars, and indentation.
* Supports both props objects and simple string shorthand.
*/
import chalk from "chalk";
import { md } from "./md.js";
import { symbols } from "./symbols.js";
import { tokens } from "./tokens.js";
const INDENT = " ";
const ICON_GAP = " ";
const types = {
error: { prefix: "Error:", icon: symbols.error, color: chalk.red },
warning: { prefix: "Warning:", icon: symbols.warning, color: chalk.yellow },
success: { prefix: "Success:", icon: symbols.success, color: chalk.green },
info: { prefix: "Info:", icon: symbols.info, color: chalk.blue },
tip: { prefix: "Tip:", icon: symbols.tip, color: chalk.hex(tokens.tip) },
};
function formatMessage(type, props) {
const { prefix, icon, color } = types[type];
const { title, summary, body } = props;
const lines = [];
// Don't add leading indent for tip messages
const leadingIndent = type === "tip" ? "" : INDENT;
const contentIndent = type === "tip" ? INDENT : `${INDENT}${INDENT}`;
const styledSummary = md(summary);
if (!title) {
// summary-only: just icon + summary
lines.push(`${leadingIndent}${color(icon)}${ICON_GAP}${styledSummary}`);
}
else if (!body) {
// title + summary
lines.push(`${leadingIndent}${color(prefix)} ${title}`);
lines.push("");
lines.push(`${contentIndent}${color(icon)}${ICON_GAP}${styledSummary}`);
}
else {
// title + summary + body
const bodyLines = Array.isArray(body) ? body : body.split("\n");
lines.push(`${leadingIndent}${color(prefix)} ${title}`);
lines.push("");
lines.push(`${contentIndent}${color(icon)}${ICON_GAP}${styledSummary}`);
lines.push(`${contentIndent}${color(symbols.bar)}`);
for (const bodyLine of bodyLines) {
lines.push(`${contentIndent}${color(symbols.bar)}${ICON_GAP}${chalk.dim(bodyLine)}`);
}
}
lines.push("");
return lines.join("\n");
}
function makeMessageFn(type) {
return (input) => {
const props = typeof input === "string" ? { summary: input } : input;
return formatMessage(type, props);
};
}
export const msg = {
error: makeMessageFn("error"),
warning: makeMessageFn("warning"),
success: makeMessageFn("success"),
info: makeMessageFn("info"),
tip: makeMessageFn("tip"),
};
//# sourceMappingURL=messages.js.map
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAgBrC,MAAM,MAAM,GAAG,IAAI,CAAC;AACpB,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB,MAAM,KAAK,GAAgC;IAC1C,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE;IAClE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IAC3E,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE;IAC1E,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE;IAChE,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE;CACxE,CAAC;AAEF,SAAS,aAAa,CAAC,IAAY,EAAE,KAAmB;IACvD,MAAM,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AK,EAAE,CAAC,CAAC;QACxD,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,GAAG,aAAa,EAAE,CAAC,CAAC;QACxE,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpD,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACtF,CAAC;IACF,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AAED,SAAS,aAAa,CAAC,IAAY;IAClC,OAAO,CAAC,KAA4B,EAAU,EAAE;QAC/C,MAAM,KAAK,GAAiB,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;QACnF,OAAO,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnC,CAAC,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,GAAG,GAAG;IAClB,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;IAC7B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC;IACjC,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC;IACjC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;IAC3B,GAAG,EAAE,aAAa,CAAC,KAAK,CAAC;CACzB,CAAC"}
/**
* Raw color values — single source of truth for the HyperDev CLI palette.
*
* All hex values and terminal color names live here.
* No chalk imports, no logic — just constants.
*/
export declare const palette: {
readonly brand: "#4EC9B0";
readonly danger: "#F67280";
readonly tipBlue: "#7FB3D5";
readonly red: "red";
readonly green: "green";
readonly yellow: "yellow";
readonly blue: "blue";
readonly magenta: "magenta";
readonly cyan: "cyan";
readonly gray: "gray";
readonly white: "white";
};
//# sourceMappingURL=palette.d.ts.map
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;CAeV,CAAC"}
/**
* Raw color values — single source of truth for the HyperDev CLI palette.
*
* All hex values and terminal color names live here.
* No chalk imports, no logic — just constants.
*/
export const palette = {
// Brand colors (hex)
brand: "#4EC9B0", // teal — commands, code
danger: "#F67280", // coral — destructive actions
tipBlue: "#7FB3D5", // pastel blue — tips
// Terminal builtins (named for chalk compatibility)
red: "red",
green: "green",
yellow: "yellow",
blue: "blue",
magenta: "magenta",
cyan: "cyan",
gray: "gray",
white: "white",
};
//# sourceMappingURL=palette.js.map
{"version":3,"file":"palette.js","sourceRoot":"","sources":["../src/palette.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,qBAAqB;IACrB,KAAK,EAAE,SAAS,EAAE,wBAAwB;IAC1C,MAAM,EAAE,SAAS,EAAE,8BAA8B;IACjD,OAAO,EAAE,SAAS,EAAE,qBAAqB;IAEzC,oDAAoD;IACpD,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACL,CAAC"}
/**
* Composite style formatters — the `s` object.
*
* These produce multi-element styled strings (icon + text, key: value, etc.).
* Merged from gen/lib/styles.ts + core/ui/styles.ts.
*/
import { md } from "./md.js";
export declare const s: {
/** Dim hint text */
hint: (text: string) => string;
/** Status messages with icons */
success: (text: string) => string;
error: (text: string) => string;
warning: (text: string) => string;
info: (text: string) => string;
/** Bold section heading */
section: (text: string) => string;
/** Inline code (gray backticks) */
code: (text: string) => string;
/** Emphasized text */
highlight: (text: string) => string;
/** "Prefix: text" title */
title: (prefix: string, text: string) => string;
/** Horizontal rule */
hr: () => string;
/** "key: value" with optional indent */
keyValue: (key: string, value: string, indent?: number) => string;
/** Section header with optional count */
header: (text: string, count?: number) => string;
/** Dim description with optional indent */
description: (text: string, indent?: number) => string;
/** Bulleted list item */
listItem: (text: string) => string;
/** Indent text by N spaces */
indent: (text: string, spaces: number) => string;
/** Dim file path */
path: (text: string) => string;
/** Dim version string */
version: (text: string) => string;
/** Inline markdown → styled terminal text */
md: typeof md;
};
//# sourceMappingURL=styles.d.ts.map
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,eAAO,MAAM,CAAC;IACb,oBAAoB;iBACP,MAAM;IAEnB,iCAAiC;oBACjB,MAAM;kBACR,MAAM;oBACJ,MAAM;iBACT,MAAM;IAEnB,2BAA2B;oBACX,MAAM;IAEtB,mCAAmC;iBACtB,MAAM;IAEnB,sBAAsB;sBACJ,MAAM;IAExB,2BAA2B;oBACX,MAAM,QAAQ,MAAM;IAEpC,sBAAsB;;IAGtB,wCAAwC;oBACxB,MAAM,SAAS,MAAM;IAGrC,yCAAyC;mBAC1B,MAAM,UAAU,MAAM;IAGrC,2CAA2C;wBACvB,MAAM;IAE1B,yBAAyB;qBACR,MAAM;IAEvB,8BAA8B;mBACf,MAAM,UAAU,MAAM;IAErC,oBAAoB;iBACP,MAAM;IAEnB,yBAAyB;oBACT,MAAM;IAEtB,6CAA6C;;CAE7C,CAAC"}
/**
* Composite style formatters — the `s` object.
*
* These produce multi-element styled strings (icon + text, key: value, etc.).
* Merged from gen/lib/styles.ts + core/ui/styles.ts.
*/
import chalk from "chalk";
import { md } from "./md.js";
export const s = {
/** Dim hint text */
hint: (text) => chalk.gray(text),
/** Status messages with icons */
success: (text) => chalk.green(`\u2714 ${text}`),
error: (text) => chalk.red(`\u2718 ${text}`),
warning: (text) => chalk.yellow(`\u26a0 ${text}`),
info: (text) => chalk.blue(`\u2139 ${text}`),
/** Bold section heading */
section: (text) => chalk.bold.cyan(text),
/** Inline code (gray backticks) */
code: (text) => chalk.gray(`\`${text}\``),
/** Emphasized text */
highlight: (text) => chalk.cyan.bold(text),
/** "Prefix: text" title */
title: (prefix, text) => chalk.bold.cyan(`${prefix}: ${text}`),
/** Horizontal rule */
hr: () => chalk.gray("\u2500".repeat(60)),
/** "key: value" with optional indent */
keyValue: (key, value, indent = 0) => `${" ".repeat(indent)}${chalk.cyan(`${key}:`)} ${value}`,
/** Section header with optional count */
header: (text, count) => chalk.bold.yellow(count !== undefined ? `${text} (${count})` : text),
/** Dim description with optional indent */
description: (text, indent = 0) => " ".repeat(indent) + chalk.gray(text),
/** Bulleted list item */
listItem: (text) => chalk.white(` \u2022 ${text}`),
/** Indent text by N spaces */
indent: (text, spaces) => " ".repeat(spaces) + text,
/** Dim file path */
path: (text) => chalk.gray(text),
/** Dim version string */
version: (text) => chalk.gray(text),
/** Inline markdown → styled terminal text */
md,
};
//# sourceMappingURL=styles.js.map
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,MAAM,CAAC,MAAM,CAAC,GAAG;IAChB,oBAAoB;IACpB,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IAExC,iCAAiC;IACjC,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAA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C,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAErE,2CAA2C;IAC3C,WAAW,EAAE,CAAC,IAAY,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IAEhF,yBAAyB;IACzB,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC;IAE3D,8BAA8B;IAC9B,MAAM,EAAE,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI;IAEnE,oBAAoB;IACpB,IAAI,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IAExC,yBAAyB;IACzB,OAAO,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IAE3C,6CAA6C;IAC7C,EAAE;CACF,CAAC"}
/**
* Unicode glyphs for CLI output.
*
* Consolidated from core/ui/symbols.ts and gen's inline usage.
*/
export declare const symbols: {
readonly error: "×";
readonly warning: "▲";
readonly success: "✔";
readonly info: "●";
readonly tip: "◆";
readonly bar: "│";
readonly bullet: "•";
readonly dash: "─";
readonly arrow: "▸";
readonly arrowFilled: "▶︎";
readonly arrowThin: "▹";
};
//# sourceMappingURL=symbols.d.ts.map
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../src/symbols.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;CAeV,CAAC"}
/**
* Unicode glyphs for CLI output.
*
* Consolidated from core/ui/symbols.ts and gen's inline usage.
*/
export const symbols = {
// Status indicators
error: "\u00d7", // ×
warning: "\u25b2", // ▲
success: "\u2714", // ✔
info: "\u25cf", // ●
tip: "\u25c6", // ◆
// Structural
bar: "\u2502", // │
bullet: "\u2022", // •
dash: "\u2500", // ─
arrow: "\u25b8", // ▸
arrowFilled: "\u25b6\ufe0e", // ▶︎
arrowThin: "\u25b9", // ▹
};
//# sourceMappingURL=symbols.js.map
{"version":3,"file":"symbols.js","sourceRoot":"","sources":["../src/symbols.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,oBAAoB;IACpB,KAAK,EAAE,QAAQ,EAAE,IAAI;IACrB,OAAO,EAAE,QAAQ,EAAE,IAAI;IACvB,OAAO,EAAE,QAAQ,EAAE,IAAI;IACvB,IAAI,EAAE,QAAQ,EAAE,IAAI;IACpB,GAAG,EAAE,QAAQ,EAAE,IAAI;IAEnB,aAAa;IACb,GAAG,EAAE,QAAQ,EAAE,IAAI;IACnB,MAAM,EAAE,QAAQ,EAAE,IAAI;IACtB,IAAI,EAAE,QAAQ,EAAE,IAAI;IACpB,KAAK,EAAE,QAAQ,EAAE,IAAI;IACrB,WAAW,EAAE,cAAc,EAAE,KAAK;IAClC,SAAS,EAAE,QAAQ,EAAE,IAAI;CAChB,CAAC"}
/**
* cli-html help theme for `hyper --help` output.
*
* Moved from cli/src/help/theme.ts.
* Uses palette.brand for code color to stay in sync with the design system.
*/
import type { HelpThemeConfig } from "./types.js";
export declare const helpTheme: HelpThemeConfig;
//# sourceMappingURL=theme.d.ts.map
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,eAAO,MAAM,SAAS,EAAE,eA4CvB,CAAC"}
/**
* cli-html help theme for `hyper --help` output.
*
* Moved from cli/src/help/theme.ts.
* Uses palette.brand for code color to stay in sync with the design system.
*/
import { palette } from "./palette.js";
export const helpTheme = {
lineWidth: {
max: 100,
},
theme: {
h1: {
color: "blue bold",
indicator: {
marker: "\u25b6\ufe0e",
color: "blue bold",
},
},
h2: {
color: "yellow bold",
indicator: {
marker: "\u25b8",
color: "yellow bold",
},
},
h3: {
color: "white bold",
indicator: {
marker: "\u25b9",
color: "white bold",
},
},
code: {
color: `hex-${palette.brand.slice(1)}`,
block: {
color: "gray",
numbers: {
enabled: false,
},
},
},
table: {
header: {
color: "white bold",
},
},
a: {
color: "cyan underline",
},
},
};
//# sourceMappingURL=theme.js.map
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAGvC,MAAM,CAAC,MAAM,SAAS,GAAoB;IACzC,SAAS,EAAE;QACV,GAAG,EAAE,GAAG;KACR;IACD,KAAK,EAAE;QACN,EAAE,EAAE;YACH,KAAK,EAAE,WAAW;YAClB,SAAS,EAAE;gBACV,MAAM,EAAE,cAAc;gBACtB,KAAK,EAAE,WAAW;aAClB;SACD;QACD,EAAE,EAAE;YACH,KAAK,EAAE,aAAa;YACpB,SAAS,EAAE;gBACV,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE,aAAa;aACpB;SACD;QACD,EAAE,EAAE;YACH,KAAK,EAAE,YAAY;YACnB,SAAS,EAAE;gBACV,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE,YAAY;aACnB;SACD;QACD,IAAI,EAAE;YACL,KAAK,EAAE,OAAO,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;YACtC,KAAK,EAAE;gBACN,KAAK,EAAE,MAAM;gBACb,OAAO,EAAE;oBACR,OAAO,EAAE,KAAK;iBACd;aACD;SACD;QACD,KAAK,EAAE;YACN,MAAM,EAAE;gBACP,KAAK,EAAE,YAAY;aACnB;SACD;QACD,CAAC,EAAE;YACF,KAAK,EAAE,gBAAgB;SACvB;KACD;CACD,CAAC"}
/**
* Semantic tokens — map UI roles to palette values.
*
* These tokens define *what* a color means in the CLI context,
* not *what* color it is. Change the palette, and all tokens update.
*/
export declare const tokens: {
readonly success: "green";
readonly error: "red";
readonly warning: "yellow";
readonly info: "blue";
readonly tip: "#7FB3D5";
readonly muted: "gray";
readonly command: "#4EC9B0";
readonly danger: "#F67280";
readonly kit: "magenta";
readonly recipe: "cyan";
readonly cookbook: "magenta";
readonly highlight: "cyan";
readonly subtle: "gray";
readonly title: "cyan";
readonly heading: "yellow";
readonly version: "gray";
readonly path: "gray";
};
//# sourceMappingURL=tokens.d.ts.map
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;CAuBT,CAAC"}
/**
* Semantic tokens — map UI roles to palette values.
*
* These tokens define *what* a color means in the CLI context,
* not *what* color it is. Change the palette, and all tokens update.
*/
import { palette } from "./palette.js";
export const tokens = {
// Status
success: palette.green,
error: palette.red,
warning: palette.yellow,
info: palette.blue,
tip: palette.tipBlue,
muted: palette.gray,
// CLI entities
command: palette.brand,
danger: palette.danger,
kit: palette.magenta,
recipe: palette.cyan,
cookbook: palette.magenta,
// Text roles
highlight: palette.cyan,
subtle: palette.gray,
title: palette.cyan,
heading: palette.yellow,
version: palette.gray,
path: palette.gray,
};
//# sourceMappingURL=tokens.js.map
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,MAAM,GAAG;IACrB,SAAS;IACT,OAAO,EAAE,OAAO,CAAC,KAAK;IACtB,KAAK,EAAE,OAAO,CAAC,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC,MAAM;IACvB,IAAI,EAAE,OAAO,CAAC,IAAI;IAClB,GAAG,EAAE,OAAO,CAAC,OAAO;IACpB,KAAK,EAAE,OAAO,CAAC,IAAI;IAEnB,eAAe;IACf,OAAO,EAAE,OAAO,CAAC,KAAK;IACtB,MAAM,EAAE,OAAO,CAAC,MAAM;IACtB,GAAG,EAAE,OAAO,CAAC,OAAO;IACpB,MAAM,EAAE,OAAO,CAAC,IAAI;IACpB,QAAQ,EAAE,OAAO,CAAC,OAAO;IAEzB,aAAa;IACb,SAAS,EAAE,OAAO,CAAC,IAAI;IACvB,MAAM,EAAE,OAAO,CAAC,IAAI;IACpB,KAAK,EAAE,OAAO,CAAC,IAAI;IACnB,OAAO,EAAE,OAAO,CAAC,MAAM;IACvB,OAAO,EAAE,OAAO,CAAC,IAAI;IACrB,IAAI,EAAE,OAAO,CAAC,IAAI;CACT,CAAC"}
/**
* cli-html type fixes.
*
* The published types in cli-html have incorrect HeadingStyle —
* they use `marker?: string` but the actual config uses `indicator: { marker, color }`.
* This module re-exports corrected types.
*
* Moved from core/src/logger/cli-html-types.ts.
*/
import type { Config as CliHtmlConfig, Theme as CliHtmlTheme } from "cli-html";
export type { CliHtmlConfig, CliHtmlTheme };
export interface HeadingStyle {
color?: string;
indicator?: {
marker?: string;
color?: string;
};
}
/**
* cli-html Theme with corrected heading types.
*/
export type Theme = Omit<CliHtmlTheme, "h1" | "h2" | "h3" | "h4" | "h5" | "h6"> & {
h1?: string | HeadingStyle;
h2?: string | HeadingStyle;
h3?: string | HeadingStyle;
h4?: string | HeadingStyle;
h5?: string | HeadingStyle;
h6?: string | HeadingStyle;
};
/**
* cli-html Config with corrected Theme type.
*/
export interface HelpThemeConfig {
theme?: Theme;
lineWidth?: CliHtmlConfig["lineWidth"];
asciiMode?: boolean;
}
//# sourceMappingURL=types.d.ts.map
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,UAAU,CAAC;AAE/E,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACF;AAED;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG;IACjF,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB"}
/**
* cli-html type fixes.
*
* The published types in cli-html have incorrect HeadingStyle —
* they use `marker?: string` but the actual config uses `indicator: { marker, color }`.
* This module re-exports corrected types.
*
* Moved from core/src/logger/cli-html-types.ts.
*/
export {};
//# sourceMappingURL=types.js.map
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}