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

@@ -59,7 +59,7 @@ const command = new Command('deploy')
if (!key && pkgInfo?.appKey) {
key = pkgInfo?.appKey || '';
}
logger.debug('start deploy');
logger.debug('start deploy');
if (!version || !key) {
const answers = await inquirer.prompt([
{
@@ -106,8 +106,8 @@ const command = new Command('deploy')
const filename = path.basename(directory);
_relativeFiles = [filename];
}
console.log('upload Files', _relativeFiles);
console.log('upload Files Key', key, version);
logger.debug('upload Files', _relativeFiles);
logger.debug('upload Files Key', key, version);
if (!yes) {
// 确认是否上传
const confirm = await inquirer.prompt([
@@ -150,9 +150,7 @@ const command = new Command('deploy')
}
logger.debug('deploy success', res2.data);
if (id && showBackend) {
console.log('\n');
console.log(chalk.blue('服务端应用部署:\n'), 'envision pack-deploy', id);
console.log('\n');
console.log(chalk.blue('下一个步骤服务端应用部署:\n'), 'envision pack-deploy', id);
}
} else {
console.error('File upload failed', res?.message);