ai-worktool 1.0.14 → 1.0.17
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 +4 -1
- package/dist/program.js +11 -5
- package/package.json +3 -1
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## 1.0.
|
1
|
+
## 1.0.17 (2025-08-06)
|
2
2
|
|
3
3
|
|
4
4
|
### Bug Fixes
|
@@ -67,6 +67,7 @@
|
|
67
67
|
* 增加log ([ee98adb](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/ee98adb70d0b345695ce48251c9cfc5e5e4f1e6a))
|
68
68
|
* 重构增加actions ([8bf72e0](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/8bf72e012299787295a5b7a64d766a5a814e0b8b))
|
69
69
|
* 自测问题 ([09e15a3](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/09e15a3c3cd97a747e45612c8b3a257c0f61dee8))
|
70
|
+
* **agent:** 修复工具调用消息格式问题 ([4c6fd95](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/4c6fd952f0044085c09cd702dca491b332575817))
|
70
71
|
* **agent:** 修复工具调用信息格式化时的根目录问题 ([03b160a](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/03b160ab260199f9050c5a036ca94936db1695ba))
|
71
72
|
* **agent:** 修复difuyun晚于用户消息发送时的逻辑错误 ([9ba5b98](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/9ba5b98c3d7ffa3f00dc269cd809d92414d37dce))
|
72
73
|
* **agent:** 优化单测执行失败的处理逻辑 ([1a2186c](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/1a2186c65f4a83c1a978cb431197dbe34be3644f))
|
@@ -135,6 +136,7 @@
|
|
135
136
|
* **agent:** 增加测试代码生成功能 ([34fa137](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/34fa137c12e745182796023e9ae2896292059d2a))
|
136
137
|
* **agent:** 增加对话模式功能 ([cc53353](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/cc5335364f13ca39d9e92e7600c9c79587071591))
|
137
138
|
* **agent:** 增加工具调用回调并优化测试流程 ([1cae77e](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/1cae77e7bf05c3f72771d29568034eaecfea3c8e))
|
139
|
+
* **agent:** 增加智能体增量回复功能 ([edd406b](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/edd406b905b930a7943c9697248150f9a4505e08))
|
138
140
|
* **ai-worktool:** 重构 Webview 交互逻辑 ([d118dec](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/d118dec14d3ca3644f41a34db4a5b028987df2db))
|
139
141
|
* **configuration:** 增加包管理器、测试框架和编程语言选择配置项 ([ec3cceb](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/ec3cceba695485010c5c710894ea2e49f57737f8))
|
140
142
|
* **dify-plugin:** 新增重命名文件或目录的功能 ([9bb6961](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/9bb69613a28aba6859f72b14b2aa1a586ac9ca70))
|
@@ -142,6 +144,7 @@
|
|
142
144
|
* **jianguoke:** 优化工具调用信息格式化及消息 ID 生成 ([1b240e7](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/1b240e7fbcabb2112789c116b7f483308c184fce))
|
143
145
|
* **log:** 增加日志容器拖动调整功能 ([cfdaf9d](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/cfdaf9d7bec56687a2d49ca92785463dc6713a77))
|
144
146
|
* **plugin:** 更新插件版本和功能描述 ([f3773d6](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f3773d675fcb274080339cd0274a1a7aff8415a9))
|
147
|
+
* **program:** 增加代码覆盖率报告展示功能 ([60da9b5](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/60da9b59e4b913695daa8697dd9aeec16cf78a5f))
|
145
148
|
* **program:** 增加代码覆盖率报告展示功能 ([f693e27](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/f693e272ef0fe7e58083d2589339af17e45cff95))
|
146
149
|
* **project:** 优化项目类型检测逻辑 ([9bc024d](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/9bc024deeed239c05c9cab810f9f12a6a3306aab))
|
147
150
|
* Refactor CLI and program structure, update commands for testing and fixing code ([8dcbb19](https://codeup.aliyun.com/666cf9ed29ecbe23053513a3/JianGuoKe/ai-worktools/commits/8dcbb191fc8a95a40e07647de337452935926b10))
|
package/dist/program.js
CHANGED
@@ -12,12 +12,13 @@ const testAgent_1 = require("./testAgent");
|
|
12
12
|
const tools_1 = require("./tools");
|
13
13
|
const view_1 = require("./view");
|
14
14
|
const user_1 = require("./user");
|
15
|
-
const view_2 = require("./view");
|
16
15
|
const program = new commander_1.Command();
|
17
16
|
program.name('testAgent').description('吃豆豆:单测智能体').version('1.0.1');
|
18
17
|
// 屏蔽调试日志
|
19
18
|
const logHandler = console.log;
|
20
|
-
|
19
|
+
if (process.env.NODE_ENV !== 'test') {
|
20
|
+
console.log = () => { };
|
21
|
+
}
|
21
22
|
const tokenFile = path_1.default.join(os_1.default.homedir(), '.aiworktools');
|
22
23
|
// token存储在系统用户文件夹的.ai-worktools
|
23
24
|
(0, user_1.setTokenStorage)({
|
@@ -79,16 +80,21 @@ program
|
|
79
80
|
}
|
80
81
|
}
|
81
82
|
});
|
82
|
-
(0, view_1.disposeTimer)();
|
83
83
|
});
|
84
84
|
program
|
85
|
-
.command('
|
85
|
+
.command('show [projectRoot]')
|
86
86
|
.description('监控代码覆盖率报告')
|
87
87
|
.option('-r, --projectRoot <directory>', '源代码文件夹', (txt) => path_1.default.resolve(txt), process.cwd())
|
88
88
|
.option('-c, --coverageDir <string>', '覆盖率报告文件夹', 'coverage')
|
89
|
+
.option('-w watch <boolean>', '是否监控代码覆盖率报告变化', false)
|
89
90
|
.action(async (projectRoot, options) => {
|
90
91
|
await (0, tools_1.runJestTests)(projectRoot || options.projectRoot);
|
91
|
-
|
92
|
+
if (options.watch) {
|
93
|
+
await (0, view_1.showCoverageView)(path_1.default.join(projectRoot || options.projectRoot, options.coverageDir));
|
94
|
+
}
|
95
|
+
else {
|
96
|
+
await (0, view_1.loadAndDisplayCoverage)(path_1.default.join(projectRoot || options.projectRoot, options.coverageDir, view_1.COVERAGE_FILE_PATH));
|
97
|
+
}
|
92
98
|
});
|
93
99
|
exports.default = program;
|
94
100
|
//# sourceMappingURL=program.js.map
|
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.17",
|
5
5
|
"description": "单元测试智能体,帮你开发单元测试用例代码直到100%单测覆盖通过。",
|
6
6
|
"author": "jianguoke.cn",
|
7
7
|
"license": "MIT",
|
@@ -262,6 +262,7 @@
|
|
262
262
|
"table": "^6.9.0"
|
263
263
|
},
|
264
264
|
"devDependencies": {
|
265
|
+
"@types/adm-zip": "^0.5.7",
|
265
266
|
"@types/cli-color": "^2.0.6",
|
266
267
|
"@types/jest": "^30.0.0",
|
267
268
|
"@types/jsonwebtoken": "^9.0.10",
|
@@ -272,6 +273,7 @@
|
|
272
273
|
"@vscode/test-electron": "^1.6.2",
|
273
274
|
"@yao-pkg/pkg": "^6.6.0",
|
274
275
|
"@yao-pkg/pkg-fetch": "^3.5.24",
|
276
|
+
"adm-zip": "^0.5.16",
|
275
277
|
"conventional-changelog-cli": "^2.2.2",
|
276
278
|
"cross-env": "^10.0.0",
|
277
279
|
"eslint": "^7.32.0",
|