ai-worktool 1.0.61 → 1.0.63
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 +3 -1
- package/dist/program.js +1 -0
- package/dist/tools/jest.js +18 -3
- package/package.json +3 -3
- package/packages/{aicoder-1.0.61-linux → aicoder-1.0.63-linux} +0 -0
- package/packages/{aicoder-1.0.61-macos → aicoder-1.0.63-macos} +0 -0
- package/packages/{aicoder-1.0.61-win.exe → aicoder-1.0.63-win.exe} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## 1.0.
|
|
1
|
+
## 1.0.63 (2025-08-15)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* **uposs:** 操作失败时退出进程 ([6f3d24b](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/6f3d24b9cdba4cf3331a1101b5e89253813f5aca))
|
|
19
19
|
* **user:** 优化 JWT 解析并添加过期检查 ([33edb60](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/33edb600bd0a114b152e631d2a9259e4b04858bd))
|
|
20
20
|
* **webview:** 新增文件无法观察问题 ([8f18813](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/8f188134861f5e151d2bcd0e7a1dda5d6a1e0268))
|
|
21
|
+
* **webview:** 移除工作空间时停止对应的 WebView ([0d86d7f](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/0d86d7fc7a6b32f57ef892b9124ca27c554bb749))
|
|
21
22
|
* writeFile内部可以覆盖 ([ea4ee44](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/ea4ee442e7f3ec5cdfef5cf9142c8036772aaa11))
|
|
22
23
|
* 修复 invokeTool 函数返回值,确保在执行失败时返回默认消息 ([91db39d](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/91db39d03a780b3fc11a6649a0a7e44818e97712))
|
|
23
24
|
* 修复单测代码修复任务的期望输出,确保正确验证日志信息 ([ebf3de9](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/ebf3de9f16627091de196d6fc8cccfa1321cf489))
|
|
@@ -110,6 +111,7 @@
|
|
|
110
111
|
* **plugin:** 更新插件版本和功能描述 ([f3773d6](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f3773d675fcb274080339cd0274a1a7aff8415a9))
|
|
111
112
|
* **program:** 增加代码覆盖率报告展示功能 ([60da9b5](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/60da9b59e4b913695daa8697dd9aeec16cf78a5f))
|
|
112
113
|
* **program:** 增加代码覆盖率报告展示功能 ([f693e27](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f693e272ef0fe7e58083d2589339af17e45cff95))
|
|
114
|
+
* **program:** 添加测试配置文件选项并优化 Jest 命令生成 ([5f16c21](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/5f16c21da3a12e46a49611dbd5b2a6e3c7cdcf24))
|
|
113
115
|
* **project:** 优化项目类型检测逻辑 ([9bc024d](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/9bc024deeed239c05c9cab810f9f12a6a3306aab))
|
|
114
116
|
* **project:** 增加加载 aicoder 配置文件功能 ([b4dc70b](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/b4dc70b3afa88cf45135cf56e63cbb2ffa2fed82))
|
|
115
117
|
* **project:** 增加项目基本信息和 Git 配置检测 ([a81fcb0](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/a81fcb0505a49f8b5a5572d03c4a43493fda0e4d))
|
package/dist/program.js
CHANGED
|
@@ -71,6 +71,7 @@ program
|
|
|
71
71
|
.option('--testDir <string>', '测试用例文件夹', 'test')
|
|
72
72
|
.option('--srcDir <string>', '测试用例文件夹', 'src')
|
|
73
73
|
.option('--coverageDir <string>', '覆盖率报告文件夹', 'coverage')
|
|
74
|
+
.option('--testConfigFile <string>', '测试配置文件')
|
|
74
75
|
.option('-p, --packageManager <string>', '包管理器', 'npm')
|
|
75
76
|
.option('-f, --testFramework <string>', '测试框架', 'jest')
|
|
76
77
|
.option('-l, --language <string>', '开发语言', 'javascript')
|
package/dist/tools/jest.js
CHANGED
|
@@ -134,9 +134,24 @@ async function runJestTests(projectRoot, coverageDir = 'coverage', jestConfigPat
|
|
|
134
134
|
return new Promise((resolve, reject) => {
|
|
135
135
|
const now = Date.now();
|
|
136
136
|
const testResultsFile = path.join(projectRoot, coverageDir, 'test-results.json');
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
let jestCommand = `npx jest --coverage --coverageReporters="json-summary" --coverageReporters="lcov" --json --outputFile="${testResultsFile}"`;
|
|
138
|
+
let jestConfig;
|
|
139
|
+
try {
|
|
140
|
+
jestConfig = jestConfigPath ? JSON.parse(jestConfigPath) : null;
|
|
141
|
+
}
|
|
142
|
+
catch {
|
|
143
|
+
jestConfig = null;
|
|
144
|
+
}
|
|
145
|
+
if (jestConfig) {
|
|
146
|
+
jestCommand +=
|
|
147
|
+
' ' +
|
|
148
|
+
Object.keys(jestConfig)
|
|
149
|
+
.map((key) => `${key.length > 1 ? '--' : '-'}${key}="${jestConfig[key]}"`)
|
|
150
|
+
.join(' ');
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
jestCommand += ` --config="${jestConfigPath}"`;
|
|
154
|
+
}
|
|
140
155
|
const childProcess = (0, child_process_1.exec)(jestCommand, {
|
|
141
156
|
cwd: projectRoot,
|
|
142
157
|
encoding: 'utf-8'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai-worktool",
|
|
3
3
|
"displayName": "吃豆豆:单测智能体",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.63",
|
|
5
5
|
"description": "单元测试智能体,帮你开发单元测试用例代码直到100%单测覆盖通过。",
|
|
6
6
|
"author": "jianguoke.cn",
|
|
7
7
|
"license": "MIT",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"createup": "node ./uposs.js create-local-folder",
|
|
24
24
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
25
25
|
"puball": "yarn ver && yarn exepack && yarn vspack && yarn pubvs && yarn pubovsx && yarn puboss && yarn pubnpm",
|
|
26
|
-
"exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg -o packages/aicoder-1.0.
|
|
26
|
+
"exepack": "yarn createup && cross-env PKG_CACHE_PATH=./binaries pkg -o packages/aicoder-1.0.63 . && yarn upicon",
|
|
27
27
|
"pubvs": "yarn remove-deps && yarn changelog && vsce publish --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
|
28
28
|
"pubovsx": "yarn remove-deps && ovsx publish -p 47621ff6-be56-4814-865e-d2a8e8a76f86 --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
|
29
29
|
"patch": "yarn remove-deps && vsce publish patch --yarn && yarn restore-deps",
|
|
30
|
-
"vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.
|
|
30
|
+
"vspack": "yarn createup && yarn remove-deps && vsce package -o packages/aicoder-1.0.63.vsix --yarn --baseContentUrl https://aicoder.jianguoke.cn/assets && yarn restore-deps",
|
|
31
31
|
"puboss": "node ./uposs.js upload",
|
|
32
32
|
"pubnpm": "npm publish --registry=https://registry.npmjs.org",
|
|
33
33
|
"prepare": "husky"
|
|
index d77e28a..a2f2be5 100755
|
|
|
Binary file
|
|
index 3b958cf..5b02556 100755
|
|
|
Binary file
|
|
index c1615e7..56cf390 100644
|
|
|
Binary file
|