Release v1.01 Enhanced: Vi Control, TUI Gen5, Core Stability
This commit is contained in:
@@ -9,6 +9,7 @@ import { getSessionMemory } from './session-memory.mjs';
|
||||
import { getContextManager } from './context-manager.mjs';
|
||||
import { getAllSkills, getSkill, executeSkill, getSkillListDisplay } from './skills.mjs';
|
||||
import { getDebugLogger } from './debug-logger.mjs';
|
||||
import { THEMES, getTheme, getThemeNames } from '../bin/themes.mjs';
|
||||
|
||||
/**
|
||||
* Process a slash command
|
||||
@@ -167,6 +168,38 @@ export async function processCommand(input) {
|
||||
};
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════
|
||||
// THEME (Vibe Upgrade)
|
||||
// ═══════════════════════════════════════════════════════════════
|
||||
case '/theme': {
|
||||
if (!args) {
|
||||
// List themes
|
||||
const themeList = getThemeNames();
|
||||
const display = themeList.map(t => ` • ${t.id} - ${t.description}`).join('\n');
|
||||
return {
|
||||
handled: true,
|
||||
response: `🎨 **Available Themes**\n${display}\n\nUsage: /theme <name>`,
|
||||
action: 'show_themes'
|
||||
};
|
||||
}
|
||||
const themeId = args.toLowerCase().trim();
|
||||
if (!THEMES[themeId]) {
|
||||
const themeList = getThemeNames();
|
||||
const names = themeList.map(t => t.id).join(', ');
|
||||
return {
|
||||
handled: true,
|
||||
response: `❌ Unknown theme: "${themeId}"\nAvailable: ${names}`
|
||||
};
|
||||
}
|
||||
const theme = getTheme(themeId);
|
||||
return {
|
||||
handled: true,
|
||||
response: `🎨 **Theme Changed: ${theme.name}**\n${theme.description}`,
|
||||
action: 'set_theme',
|
||||
themeId: themeId
|
||||
};
|
||||
}
|
||||
|
||||
// ═══════════════════════════════════════════════════════════════
|
||||
// HELP
|
||||
// ═══════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user