faf-cli
Version:
๐ฝ TURBO-CAT: The Rapid Catalytic Converter โข Project DNA โจ for ANY AI โข Fully Integrated with React, Next.js, Svelte, TypeScript, Vite & n8n โข FREE FOREVER โข 10,000+ developers โข Championship Edition
219 lines โข 11.7 kB
JavaScript
;
/**
* ๐ Championship Style Guide - Revolutionary AI-Context Infrastructure
* Visual Identity System for FAF CLI v2.0.0
*
* Color Trinity: ๐ฉต AI Precision + ๐ Solution Bridge + ๐งก Human Energy
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.FAF_HEADER = exports.BRAND_MESSAGES = exports.PERFORMANCE_STANDARDS = exports.STATUS_COLORS = exports.FAF_ICONS = exports.FAF_COLORS = void 0;
exports.generateHelpHeader = generateHelpHeader;
exports.generateFAFHeader = generateFAFHeader;
exports.formatTrustLevel = formatTrustLevel;
exports.formatPerformance = formatPerformance;
exports.formatAIHappiness = formatAIHappiness;
exports.formatTechnicalCredit = formatTechnicalCredit;
const colors_1 = require("../fix-once/colors");
// ๐จ Championship Color Trinity (v2.0.0 White Stripe Edition)
exports.FAF_COLORS = {
// Primary Color Palette
cyan: '#00CCFF', // ๐ฉต Championship AI Precision
white: '#FFFFFF', // โช Championship Victory (replaced green)
orange: '#FF4500', // ๐งก Championship Orange
// Color functions for CLI (using fix-once system)
fafCyan: colors_1.colors.fafCyan,
fafWhite: colors_1.colors.fafWhite,
fafGreen: colors_1.colors.fafGreen,
fafOrange: colors_1.colors.fafOrange,
// Gradient simulation for CLI (fallback to single colors)
gradient: (text) => colors_1.colors.championship(text), // Championship cyan
};
/**
* โก FAF Icons & Emoji System
*
* โ LOCKED STANDARDS - DO NOT MODIFY
* These emojis are FINAL and IMMUTABLE as per EMOJI-STANDARDS.md
* Any changes will be rejected in code review.
*
* ๐ซ FORBIDDEN: Never use ๐ฏ (target) - explicitly rejected
* โ๏ธ See EMOJI-STANDARDS.md for complete approved list
*/
exports.FAF_ICONS = {
// Core System - LOCKED
lightning: 'โก๏ธ', // Performance/Speed
rocket: '๐', // Launch/Initialization
precision: 'โ๏ธ', // Precision/Accuracy
trophy: '๐', // Achievement/Success
checkered_flag: '๐', // Racing/Competition
// AI & Intelligence
robot: '๐ค', // AI Integration
brain: '๐ง ', // Intelligence
crystal_ball: '๐ฎ', // Prediction/Analysis
gem: '๐', // Premium/Quality
magic_wand: '๐ช', // AI Magic
// Trust & Quality
heart_orange: '๐งก', // Trust/Human Connection
green_heart: '๐', // Health/Good Status
blue_heart: '๐ฉต', // AI/Technical Excellence
shield: '๐ก๏ธ', // Protection/Security
star: 'โญ', // Rating/Excellence
// Progress & Status
chart_up: '๐', // Improvement/Growth
fire: '๐ฅ', // High Performance
zap: 'โก', // Speed/Energy
sparkles: 'โจ', // Discovery/New
party: '๐', // Celebration/Success
balance: 'โ๏ธ', // AI|HUMAN Balance
// Technical
gear: 'โ๏ธ', // Configuration
magnify: '๐', // Scanning/Analysis
file: '๐', // Documents/Files
folder: '๐', // Directory/Organization
link: '๐', // Connection/Integration
// New command icons
magnifying_glass: '๐', // Search
clipboard: '๐', // Todo/Tasks
broom: '๐งน', // Clear/Clean
pencil: 'โ๏ธ', // Edit
dna: '๐งฌ', // DNA/Lifecycle
turbo_cat: '๐ฝ', // TURBO-CAT mascot
};
// ๐ Status Color Coding
exports.STATUS_COLORS = {
// Trust Levels
trust_excellent: '๐ข', // 90-100% (Green)
trust_good: '๐ก', // 70-89% (Yellow)
trust_medium: '๐ ', // 50-69% (Orange)
trust_low: '๐ด', // 0-49% (Red)
// Performance
fast: '๐ข', // <50ms (Green)
medium: '๐ก', // 50-200ms (Yellow)
slow: '๐ ', // 200ms+ (Orange)
// AI Status
ai_happy: '๐', // High trust
ai_neutral: '๐', // Medium trust
ai_confused: '๐', // Low trust
};
// ๐๏ธ F1-Inspired Performance Standards
exports.PERFORMANCE_STANDARDS = {
// Championship Speed Targets
status_command: 38, // ms - Faster than git status
trust_dashboard: 40, // ms - Real-time trust calculation
stack_detection: 50, // ms - Instant stack recognition
context_generation: 200, // ms - Full context rebuild
// Quality Gates
minimum_trust: 60, // % - Below this triggers improvement
target_trust: 85, // % - Optimal AI compatibility
excellence_trust: 95, // % - Championship performance
};
// ๐ฎ Brand Messaging
exports.BRAND_MESSAGES = {
// CLI Headers
primary: "AI needed a format, it got oneโ .faf",
technical: "Foundational AI-context Format",
performance: "F1-Inspired Software Engineering",
// Success Messages
achievement: "Technical Credit ๐ +1",
improvement: "Trust Score Improved! ๐งก",
discovery: "New Stack Discovered! ๐",
speed_result: "โ๏ธ <40ms - FAST AF!",
// Special Moments
magic_healing: "๐ช Self-healing activated!",
breakthrough: "๐ฅ BREAKTHROUGH! Massive improvement!",
podium_celebration: "๐พ Podium finish! Championship performance!",
// Call to Action
sharing: "Send them the .faf ๐",
optimization: "Zero context debt ๐",
ecosystem: "Making AI development better for everyone ๐"
};
/**
* Generate simple help header (clean and focused)
*/
function generateHelpHeader() {
return `${exports.FAF_COLORS.fafCyan('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafOrange('=== H E L P ===')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} AI needed a format, it got oneโ .faf ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ๐ Foundational AI-context Format ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ')}`;
}
/**
* Generate static championship header (with optional scoreboard title)
*/
function generateFAFHeader(scoreboardTitle) {
const version = require('../../package.json').version;
// Title line above ASCII box (scoreboard or default)
const titleLine = scoreboardTitle
? `${scoreboardTitle}\n`
: '๐๏ธโก๏ธ FAF Championship Edition ๐\n\n';
return `
${titleLine}${exports.FAF_COLORS.fafCyan('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafWhite('โโโโโโโ')}${exports.FAF_COLORS.fafWhite('โ')} ${exports.FAF_COLORS.fafWhite('โโโโโ')}${exports.FAF_COLORS.fafWhite('โ')} ${exports.FAF_COLORS.fafWhite('โโโโโโโ')}${exports.FAF_COLORS.fafWhite('โ')} ๐๏ธโก๏ธ๐ v${version} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โโ')}${exports.FAF_COLORS.fafWhite('โโโโโโ')}${exports.FAF_COLORS.fafCyan('โโ')}${exports.FAF_COLORS.fafWhite('โโโ')}${exports.FAF_COLORS.fafCyan('โโ')}${exports.FAF_COLORS.fafWhite('โ')}${exports.FAF_COLORS.fafCyan('โโ')}${exports.FAF_COLORS.fafWhite('โโโโโโ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โโโโโ')}${exports.FAF_COLORS.fafWhite('โ ')}${exports.FAF_COLORS.fafCyan('โโโโโโโ')}${exports.FAF_COLORS.fafWhite('โ')}${exports.FAF_COLORS.fafCyan('โโโโโ')}${exports.FAF_COLORS.fafWhite('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โโโโ ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โโโ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โโโโ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โ ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โ ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โ')}${exports.FAF_COLORS.fafOrange('โโ')}${exports.FAF_COLORS.fafWhite('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafWhite('โโโ โโโ โโโโโโ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} AI needed a format, it got oneโ .faf ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โ')} ๐ Foundational AI-context Format ${exports.FAF_COLORS.fafCyan('โ')}
${exports.FAF_COLORS.fafCyan('โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ')}`;
}
// ๐ Default ASCII Art Header (for backwards compatibility)
exports.FAF_HEADER = generateFAFHeader();
// ๐ Trust Level Formatter
function formatTrustLevel(trustScore) {
if (trustScore >= 90) {
return `${trustScore}% ${exports.STATUS_COLORS.trust_excellent} (Excellence)`;
}
else if (trustScore >= 70) {
return `${trustScore}% ${exports.STATUS_COLORS.trust_good} (Good)`;
}
else if (trustScore >= 50) {
return `${trustScore}% ${exports.STATUS_COLORS.trust_medium} (Improving)`;
}
else {
return `${trustScore}% ${exports.STATUS_COLORS.trust_low} (Needs work)`;
}
}
// โก Performance Formatter
function formatPerformance(timeMs) {
if (timeMs < 50) {
return `${timeMs}ms ${exports.STATUS_COLORS.fast} ${exports.FAF_ICONS.lightning}`;
}
else if (timeMs < 200) {
return `${timeMs}ms ${exports.STATUS_COLORS.medium}`;
}
else {
return `${timeMs}ms ${exports.STATUS_COLORS.slow}`;
}
}
// ๐ค AI Happiness Formatter
function formatAIHappiness(score) {
if (score >= 80) {
return `${exports.STATUS_COLORS.ai_happy} AI loves your context!`;
}
else if (score >= 60) {
return `${exports.STATUS_COLORS.ai_neutral} AI understands your context`;
}
else {
return `${exports.STATUS_COLORS.ai_confused} AI needs better context`;
}
}
// ๐ Technical Credit Formatter
function formatTechnicalCredit(credit) {
if (credit > 0) {
return `${exports.FAF_ICONS.chart_up} +${credit} ${exports.FAF_ICONS.gem}`;
}
else if (credit === 0) {
return `${credit} (neutral)`;
}
else {
return `${credit} (debt)`;
}
}
//# sourceMappingURL=championship-style.js.map