ai-yuca 1.2.8 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js CHANGED
@@ -365,7 +365,7 @@ program
365
365
  });
366
366
  // 添加pull-crowdin命令
367
367
  program
368
- .command('pull-crowdin')
368
+ .command('cr-pull')
369
369
  .description('从GCP下载Crowdin相关的JSON资源文件')
370
370
  .option('-c, --config <path>', '指定配置文件路径(默认为项目根目录下的vs.config.json)')
371
371
  .option('-k, --key-file <path>', 'GCP服务账号密钥文件路径(可选,不提供则使用应用默认凭证)')
@@ -391,7 +391,7 @@ program
391
391
  });
392
392
  // 添加crowdin-push命令
393
393
  program
394
- .command('crowdin-push')
394
+ .command('cr-push')
395
395
  .description('推送本地keys文件到Crowdin项目')
396
396
  .option('-c, --config <path>', '指定配置文件路径(默认为项目根目录下的vs.config.json)')
397
397
  .action(async (options) => {
@@ -412,7 +412,7 @@ program
412
412
  process.exit(1);
413
413
  }
414
414
  // 检查必要的上传配置
415
- if (!cg.crowdin.Bucket) {
415
+ if (!cg.aws.Bucket) {
416
416
  console.error('❌ 配置文件中缺少必要的crowdin.Bucket配置项');
417
417
  process.exit(1);
418
418
  }
@@ -420,7 +420,7 @@ program
420
420
  console.log(`📁 Keys目录: ${cg.crowdin.keysDir}`);
421
421
  console.log(`🪣 存储桶: ${cg.crowdin.Bucket}`);
422
422
  // 2. 生成可执行命令
423
- let command = `ai-yuca upload -s ${cg.crowdin.keysDir}/keys -d crowdin/keys/${cg.crowdin.project} -b ${cg.crowdin.Bucket} -r`;
423
+ let command = `ai-yuca upload -s ${cg.crowdin.keysDir}/keys -d crowdin/keys/${cg.crowdin.project} -b ${cg.aws.Bucket} -r`;
424
424
  // 如果有密钥文件配置,添加密钥文件参数
425
425
  if (cg.aws && cg.aws.FileKey) {
426
426
  command += ` -k ${cg.aws.FileKey}`;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-yuca",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "description": "一个用AI生成的开发辅助工具",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-yuca",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "description": "一个用AI生成的开发辅助工具",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",