ai-scaffold-pro 2.0.2 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-scaffold-pro",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "AI Coding Skeleton — CLI + LLM协作架构: CLI搭建骨架 → AI深度初始化",
5
5
  "bin": {
6
6
  "ai-scaffold-pro": "bin/cli.js"
@@ -478,11 +478,29 @@ const platformVars = await getPlatformVars(detection.platform, lang);
478
478
 
479
479
  **Step 2**: AI逐模块生成文档
480
480
 
481
+ **重要**: 必须为 _scan.json 中的**所有模块**生成文档,不能遗漏!
482
+
481
483
  对于每个模块,执行:
482
484
  ```
483
485
  1. 读取 _scan.json 中该模块的结构信息
484
486
  2. 逐个读取该模块的源文件(限制每个模块最多10个关键文件)
485
487
  3. 基于源码理解生成 {module}.md
488
+ 4. 确认文件已保存到 {{DIR}}/references/{module}.md
489
+ ```
490
+
491
+ **模块列表获取**:
492
+ ```
493
+ const scanData = JSON.parse(readFile('{{DIR}}/references/_scan.json'));
494
+ const allModules = scanData.modules; // 获取所有模块
495
+
496
+ console.log(`📋 共发现 ${allModules.length} 个模块:`);
497
+ allModules.forEach((m, i) => console.log(` ${i+1}. ${m.name}`));
498
+
499
+ // 逐个生成
500
+ for (const module of allModules) {
501
+ console.log(`🔍 正在生成模块文档: ${module.name} (${i+1}/${allModules.length})`);
502
+ generateModuleDoc(module);
503
+ }
486
504
  ```
487
505
 
488
506
  **{module}.md 模板**:
@@ -671,8 +689,10 @@ Agent文件:
671
689
  - [ ] {{DIR}}/references/_scan.json 已生成
672
690
  - [ ] {{DIR}}/references/dependencies.md 已生成
673
691
  - [ ] {{DIR}}/references/conventions.md 已生成
674
- - [ ] 至少生成了 3 个核心模块的 {module}.md 文档
692
+ - [ ] **已为 _scan.json 中的所有模块生成文档**(不是只生成3个!)
693
+ - [ ] 验证: {{DIR}}/references/ 目录下的 {module}.md 文件数量 = _scan.json 中的 modules 数量
675
694
  - [ ] 所有模块文档中的"模块概述"不为空
695
+ - [ ] 所有模块文档中的"元信息"表格完整填写
676
696
 
677
697
  入口文件:
678
698
  - [ ] {{ENTRY}} 已从极简版替换为完整版