ai-worktool 1.0.76 → 1.0.78

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.76 (2025-08-21)
1
+ ## 1.0.78 (2025-08-21)
2
2
 
3
3
 
4
4
  ### Bug Fixes
@@ -113,6 +113,7 @@
113
113
  * **log:** 增加日志容器拖动调整功能 ([cfdaf9d](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/cfdaf9d7bec56687a2d49ca92785463dc6713a77))
114
114
  * **package:** 添加阿里云 OSS 发布脚本并更新版本号 ([572ef25](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/572ef25f36c949672c4d1c062015f970c9862e69))
115
115
  * **package:** 添加项目关键词 ([d4707a1](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/d4707a12adbd510088d3fa7fdae78e8b6d858eb6))
116
+ * **plugin:** 优化类型定义和工具函数 ([5ba0b9e](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/5ba0b9e4a68a0c3e03f17e30f0fb0c93c774f5ec))
116
117
  * **plugin:** 更新插件版本和功能描述 ([f3773d6](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f3773d675fcb274080339cd0274a1a7aff8415a9))
117
118
  * **program:** 增加代码覆盖率报告展示功能 ([60da9b5](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/60da9b59e4b913695daa8697dd9aeec16cf78a5f))
118
119
  * **program:** 增加代码覆盖率报告展示功能 ([f693e27](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f693e272ef0fe7e58083d2589339af17e45cff95))
package/dist/tools/git.js CHANGED
@@ -74,7 +74,7 @@ async function commit(repoPath, message, files) {
74
74
  const git = createGitInstance(repoPath);
75
75
  try {
76
76
  const result = files ? await git.commit(message, files) : await git.commit(message);
77
- console.log(`提交成功: ${result?.summary}`);
77
+ console.log(`提交成功: changes:${result?.summary.changes}, insertions:${result?.summary.insertions}, deletions:${result?.summary.deletions}`);
78
78
  }
79
79
  catch (error) {
80
80
  console.log(`提交失败: ${error}`);
@@ -110,7 +110,7 @@ async function pull(repoPath, remote = 'origin', branch) {
110
110
  try {
111
111
  const currentBranch = branch || (await git.branchLocal()).current;
112
112
  const result = await git.pull(remote, currentBranch);
113
- console.log(`拉取成功: ${result?.summary}`);
113
+ console.log(`拉取成功: changes:${result?.summary.changes}, insertions:${result?.summary.insertions}, deletions:${result?.summary.deletions}`);
114
114
  }
115
115
  catch (error) {
116
116
  console.log(`拉取失败: ${error}`);
@@ -23,7 +23,7 @@ const mocha_1 = require("./mocha");
23
23
  __exportStar(require("./interface"), exports);
24
24
  __exportStar(require("./file"), exports);
25
25
  // export * from './javascript';
26
- // export * from './typescript';
26
+ __exportStar(require("./typescript"), exports);
27
27
  __exportStar(require("./jest"), exports);
28
28
  __exportStar(require("./vitest"), exports);
29
29
  __exportStar(require("./mocha"), exports);
@@ -221,8 +221,8 @@ async function parseTsFile(filePath) {
221
221
  * 创建tsconfig.json文件
222
222
  * @param outputPath tsconfig.json文件的输出路径(包含文件名)
223
223
  * @param compilerOptions TypeScript编译器选项
224
- * @param include 需要包含的文件路径,多个路径逗号分隔,例如 src/**\/*.ts,tests/**\/*.spec.ts
225
- * @param exclude 需要排除的文件路径,多个路径逗号分隔,例如 src/**\/*.js,tests/**\/*.spec.js
224
+ * @param include 需要包含的文件路径数组,默认为空数组
225
+ * @param exclude 需要排除的文件路径数组,默认为空数组
226
226
  * @returns 当文件创建成功时解析的Promise
227
227
  * @throws {Error} 如果文件写入过程中发生错误则抛出异常
228
228
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-worktool",
3
3
  "displayName": "吃豆豆:单测智能体",
4
- "version": "1.0.76",
4
+ "version": "1.0.78",
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.76 . && yarn upicon",
31
+ "exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg -o packages/aicoder-1.0.78 . && 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.76.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.78.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"
@@ -264,9 +264,9 @@
264
264
  "fetch-sse": "^1.1.2",
265
265
  "jsonwebtoken": "^9.0.2",
266
266
  "simple-git": "^3.28.0",
267
+ "typescript": "^5.9.2",
267
268
  "acorn": "^8.15.0",
268
269
  "acorn-walk": "^8.3.4",
269
- "typescript": "^5.9.2",
270
270
  "cli-color": "^2.0.4",
271
271
  "commander": "^14.0.0",
272
272
  "table": "^6.9.0"