ai-unit-test-generator 2.0.5 β†’ 2.0.6

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
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.6] - 2025-01-11
9
+
10
+ ### πŸ› Hotfix
11
+ - **Fixed**: `ai-test generate` command - corrected `client.mjs` argument parsing
12
+ - Now supports `--prompt`, `--prompt-file`, and `--promptFile` for compatibility
13
+ - Resolves `Prompt file not found: prompt.txt` error in batch generation workflow
14
+
15
+ ---
16
+
8
17
  ## [2.0.5] - 2025-01-11
9
18
 
10
19
  ### ✨ Feature: Simplified AI Suggestion Review
package/lib/ai/client.mjs CHANGED
@@ -60,7 +60,8 @@ export async function runOnce({ prompt, promptFile, out = 'reports/ai_response.t
60
60
 
61
61
  export async function runCLI(argv = process.argv) {
62
62
  const args = parseArgs(argv)
63
- const promptFile = args['prompt'] || args['prompt-file'] || null
63
+ // ζ”―ζŒ --prompt, --prompt-file, --promptFile 三种归式
64
+ const promptFile = args['prompt'] || args['prompt-file'] || args['promptFile'] || null
64
65
  const out = args['out'] || 'reports/ai_response.txt'
65
66
  const model = args['model'] || null
66
67
  const timeoutSec = args['timeout'] ? Number(args['timeout']) : 600
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-unit-test-generator",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "AI-powered unit test generator with smart priority scoring",
5
5
  "keywords": [
6
6
  "unit-test",