Rename header to oMoMoMoMo Doctor to match installation guide branding. Remove providers check entirely — no longer meaningful for diagnostics. Fix comment-checker detection by resolving @code-yeongyu/comment-checker package path in addition to PATH lookup.
44 lines
959 B
TypeScript
44 lines
959 B
TypeScript
import color from "picocolors"
|
|
|
|
export const SYMBOLS = {
|
|
check: color.green("\u2713"),
|
|
cross: color.red("\u2717"),
|
|
warn: color.yellow("\u26A0"),
|
|
info: color.blue("\u2139"),
|
|
arrow: color.cyan("\u2192"),
|
|
bullet: color.dim("\u2022"),
|
|
skip: color.dim("\u25CB"),
|
|
} as const
|
|
|
|
export const STATUS_COLORS = {
|
|
pass: color.green,
|
|
fail: color.red,
|
|
warn: color.yellow,
|
|
skip: color.dim,
|
|
} as const
|
|
|
|
export const CHECK_IDS = {
|
|
SYSTEM: "system",
|
|
CONFIG: "config",
|
|
TOOLS: "tools",
|
|
MODELS: "models",
|
|
} as const
|
|
|
|
export const CHECK_NAMES: Record<string, string> = {
|
|
[CHECK_IDS.SYSTEM]: "System",
|
|
[CHECK_IDS.CONFIG]: "Configuration",
|
|
[CHECK_IDS.TOOLS]: "Tools",
|
|
[CHECK_IDS.MODELS]: "Models",
|
|
} as const
|
|
|
|
export const EXIT_CODES = {
|
|
SUCCESS: 0,
|
|
FAILURE: 1,
|
|
} as const
|
|
|
|
export const MIN_OPENCODE_VERSION = "1.0.150"
|
|
|
|
export const PACKAGE_NAME = "oh-my-opencode"
|
|
|
|
export const OPENCODE_BINARIES = ["opencode", "opencode-desktop"] as const
|