ai-yuca 1.3.0 → 1.3.2

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
@@ -413,14 +413,18 @@ program
413
413
  }
414
414
  // 检查必要的上传配置
415
415
  if (!cg.aws.Bucket) {
416
- console.error('❌ 配置文件中缺少必要的crowdin.Bucket配置项');
416
+ console.error('❌ 配置文件中缺少必要的aws.Bucket配置项');
417
+ process.exit(1);
418
+ }
419
+ if (!cg.aws.prefix) {
420
+ console.error('❌ 配置文件中缺少必要的aws.prefix配置项');
417
421
  process.exit(1);
418
422
  }
419
423
  console.log(`📋 Crowdin项目: ${cg.crowdin.project}`);
420
424
  console.log(`📁 Keys目录: ${cg.crowdin.keysDir}`);
421
- console.log(`🪣 存储桶: ${cg.crowdin.Bucket}`);
425
+ console.log(`🪣 存储桶: ${cg.aws.Bucket}`);
422
426
  // 2. 生成可执行命令
423
- let command = `ai-yuca upload -s ${cg.crowdin.keysDir}/keys -d crowdin/keys/${cg.crowdin.project} -b ${cg.aws.Bucket} -r`;
427
+ let command = `ai-yuca upload -s ${cg.crowdin.keysDir}/keys -d ${cg.aws.prefix}/crowdin/keys/${cg.crowdin.project} -b ${cg.aws.Bucket} -r`;
424
428
  // 如果有密钥文件配置,添加密钥文件参数
425
429
  if (cg.aws && cg.aws.FileKey) {
426
430
  command += ` -k ${cg.aws.FileKey}`;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-yuca",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
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.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "一个用AI生成的开发辅助工具",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",