ai-worktool 1.0.79 → 1.0.80

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.0.79 (2025-08-21)
1
+ ## 1.0.80 (2025-08-22)
2
2
 
3
3
 
4
4
  ### Bug Fixes
@@ -136,6 +136,7 @@
136
136
  * **toolbox:** 重构并增强项目配置检测功能 ([6cc4e33](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/6cc4e33a58c7ebb622d27bc643c1e65d1e8af577))
137
137
  * **tools:** 为简咕客插件生成 zod 工具 ([42dfcd9](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/42dfcd9eb337603ecb0c5fa381ad89784345c9dc))
138
138
  * **tools:** 优化工具插件支持连续多行操作并添加新功能 ([734ca52](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/734ca5287785d84be0f8fc98b074476a3cc643f2))
139
+ * **tools:** 添加 unzipFile 工具并增强 zip 文件处理功能 ([d746a3f](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/d746a3f5cef674d0991df6c0590af9507c1afd5e))
139
140
  * **uposs:** 增加本地文件夹创建和OSS文件夹上传功能 ([eeda0dc](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/eeda0dc15fb5b69fbcd33f610f8caafb44713e8d))
140
141
  * **user:** 为认证回调页面添加立即关闭按钮 ([4328b48](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/4328b48e06002fa9d70427b21992f1022ffa73a0))
141
142
  * **user:** 创建默认账号并优化登录逻辑 ([74e7ef0](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/74e7ef0cbb8ee25f34d2929e5e7798f900976070))
package/dist/tools/zip.js CHANGED
@@ -47,7 +47,7 @@ function getSafeTargetPath(targetPath) {
47
47
  */
48
48
  function getNearestParentConfig(fullPath, overwrite) {
49
49
  // 分割路径为各级目录/文件名
50
- const pathParts = fullPath.split('/').filter(part => part);
50
+ const pathParts = fullPath.split('/').filter((part) => part);
51
51
  const fileName = pathParts[pathParts.length - 1];
52
52
  // 先检查当前文件/目录是否有配置
53
53
  if (fileName in overwrite) {
@@ -115,9 +115,7 @@ async function unzipFile(zipFilePath, outputDir, overwrite = true) {
115
115
  const absoluteZipPath = path_1.default.resolve(zipFilePath);
116
116
  // 确定输出目录 - 默认为ZIP文件所在目录
117
117
  const defaultOutputDir = path_1.default.dirname(absoluteZipPath);
118
- const absoluteOutputDir = outputDir
119
- ? path_1.default.resolve(outputDir)
120
- : defaultOutputDir;
118
+ const absoluteOutputDir = outputDir ? path_1.default.resolve(outputDir) : defaultOutputDir;
121
119
  // 检查文件是否存在
122
120
  await promises_1.default.access(absoluteZipPath);
123
121
  // 创建输出目录
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-worktool",
3
3
  "displayName": "吃豆豆:单测智能体",
4
- "version": "1.0.79",
4
+ "version": "1.0.80",
5
5
  "description": "单元测试智能体,帮你开发单元测试用例代码直到100%单测覆盖通过。",
6
6
  "author": "jianguoke.cn",
7
7
  "license": "MIT",
@@ -28,11 +28,11 @@
28
28
  "createup": "node ./uposs.js create-local-folder",
29
29
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
30
30
  "puball": "yarn ver && yarn exepack && yarn vspack && yarn pubvs && yarn pubovsx && yarn puboss && yarn pubnpm",
31
- "exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg -o packages/aicoder-1.0.79 . && yarn upicon",
31
+ "exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg -o packages/aicoder-1.0.80 . && yarn upicon",
32
32
  "pubvs": "yarn remove-deps && yarn changelog && vsce publish --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
33
33
  "pubovsx": "yarn remove-deps && ovsx publish -p 47621ff6-be56-4814-865e-d2a8e8a76f86 --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
34
34
  "patch": "yarn remove-deps && vsce publish patch --yarn && yarn restore-deps",
35
- "vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.79.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
35
+ "vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.80.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
36
36
  "puboss": "node ./uposs.js upload",
37
37
  "pubnpm": "npm publish --registry=https://registry.npmjs.org",
38
38
  "prepare": "husky"