@wwkit/harness 1.0.10 → 1.0.12

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/agents/lint.md CHANGED
@@ -17,7 +17,7 @@ mode: subagent
17
17
  5. 调用 lint-config-setup 生成或补全 lint 配置文件
18
18
  6. 协调规则分析 → 工具修复 → AI 修复的外层 loop
19
19
  7. 管理 loop 次数和退出条件(轮尾独立验证)
20
- 8. 输出最终检查报告并写入 `{report_dir}/lint_report.md`
20
+ 8. 输出最终检查报告并写入 `{report_dir}/lint_report-{HHMMSS}.md`
21
21
 
22
22
  ## 配置参数
23
23
 
@@ -76,12 +76,13 @@ Step 1 入参校验通过后,立即用 `todowrite` 一次性创建以下 8 项
76
76
  Step 1 结束后,确定以下变量,传递给后续所有 skill:
77
77
  - `root_dir`:工程根目录
78
78
  - `target_dir`:检查目标目录
79
- - `report_dir`:报告输出目录,格式为 `{root_dir}/.webwork/lint/reports/{YYYYMMDD_HHMMSS}/`
79
+ - `report_dir`:报告输出目录,格式为 `{root_dir}/.webwork/harness/lint/{YYYY-MM-DD}/`
80
+ - `report_file`:报告文件路径,格式为 `{report_dir}/lint_report-{HHMMSS}.md`
80
81
  - `flow_start_time`:流程开始时间戳(执行 `date +%s` 获取)
81
82
  - **todowrite**:创建初始 8 项任务清单(第 1 项 `入参校验` 标记 `completed`,第 2-8 项 `pending`)
82
83
 
83
84
  **报告目录规则**:
84
- - 每次执行生成独立的时间戳子目录,避免覆盖历史报告
85
+ - 按日期生成子目录,文件名含时间戳(`lint_report-{HHMMSS}.md`),避免覆盖历史报告
85
86
  - 目录不存在时自动创建
86
87
 
87
88
  **退出条件**:参数校验失败 → 直接退出,不进入后续流程。
@@ -352,7 +353,7 @@ skill 内部管理 fix→语法验证→linter 复检 的 loop(max 3),agen
352
353
  ### 报告输出
353
354
 
354
355
  流程结束后,将最终报告写入文件:
355
- - 路径:`{report_dir}/lint_report.md`
356
+ - 路径:`{report_dir}/lint_report-{HHMMSS}.md`(即 `report_file`)
356
357
  - 内容:上述完整报告
357
358
  - 同时在 chat 中输出报告摘要
358
359