feat: enhance AI commands and logging system
- Update @kevisual/query to 0.0.32 and @kevisual/router to 0.0.37 - Restructure AI command interface with run and deploy subcommands - Add comprehensive logging throughout cmd-execution flow - Improve sync module with better configuration handling - Add clickable link functionality in logger - Enhance error handling and debugging capabilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,3 +3,13 @@ const level = process.env.LOG_LEVEL || 'info';
|
||||
export const logger = new Logger({
|
||||
level: level as any,
|
||||
});
|
||||
|
||||
export function printClickableLink({ url, text, print = true }: { url: string; text: string, print?: boolean }) {
|
||||
const escape = '\x1B'; // ESC 字符
|
||||
const linkStart = `${escape}]8;;${url}${escape}\\`;
|
||||
const linkEnd = `${escape}]8;;${escape}\\`;
|
||||
if (print) {
|
||||
console.log(`${linkStart}${text}${linkEnd}`);
|
||||
}
|
||||
return `${linkStart}${text}${linkEnd}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user