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:
2025-12-10 17:45:09 +08:00
parent 5b83f7a6d1
commit 4aeb3637bf
13 changed files with 167 additions and 73 deletions

View File

@@ -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}`;
}