ssw
9a59adc9ac
feat(dacli): report/release.ts 完整 wrapCommand 迁移 (P6 6 exit 收口)
6 处 process.exit(1) → ctx.fail(), 写 CommandLog (L3):
- step 1: id 不存在
- step 1.5a: basic info 校验失败 (fullName/enCode/category)
- step 1.5b: numeric 校验失败 (sortCode/enabledMark)
- step 2: --type=1 必传 --cells 缺失
- step 2.5: --cells 不是合法 JSON
- step 4: 后端 code !== 200
每步 summary 含 id/type/code/msg/errors 详细 (供 dacli log last 复盘).
DEPRECATION 警告 (v0.16+) 保留在 wrapCommand 内, log.warn 进 buffer (quiet
模式下汇总输出, verbose 立即可见), 不影响 exit code.
迁移模式统一:
- import { setupOutputFilter, addOutputOptions, wrapCommand }
- 删本地 --json (改 addOutputOptions 注入)
- Opts interface 加 verbose?: boolean
- .action 开头 setupOutputFilter(opts)
- 整块 step machine (step 1-4) wrapCommand 包 + try/catch → ctx.success/fail
- validateBasicInfo/validateNumeric 错误保留 log.error 输出 (用户感知)
修改方式: Write 整文件重写 (Edit 工具不匹配, step machine 重排风险).
验证:
- TS compile 0 新错误 (baseline 57 不变)
- 73/73 单元测试 PASS
P6 累计: 剩 form/create (13) + workflow/create (9) + form/codegen (8) + workflow/update (6)
+ di/create (6) + bigscreen/construct (6) + app/create (6) + report/update (5) + report/publish (5)
+ report/create (5) + portal/setDefault (5) + form/update (5) = ~73 exit 散布 12 文件.
form/audit.ts + log/last.ts 跳过 (semantic 退出码 / meta-recursive).
2026-07-21 20:01:10 +08:00
..
2026-07-21 18:40:02 +08:00
2026-07-21 18:41:17 +08:00
2026-07-21 18:41:17 +08:00
2026-07-21 18:06:36 +08:00
2026-07-21 18:51:33 +08:00
2026-07-21 18:11:18 +08:00
2026-07-21 18:06:36 +08:00
2026-07-21 18:42:52 +08:00
2026-07-21 18:42:52 +08:00
2026-07-21 18:01:00 +08:00
2026-07-21 18:42:52 +08:00
2026-07-20 10:35:12 +08:00
2026-07-21 18:47:50 +08:00
2026-07-21 18:44:29 +08:00
2026-07-21 18:44:29 +08:00
2026-07-21 18:44:29 +08:00
2026-07-21 18:41:17 +08:00
2026-07-21 18:44:29 +08:00
2026-07-21 20:01:10 +08:00
2026-07-21 18:44:29 +08:00
2026-07-21 18:46:04 +08:00
2026-07-21 18:38:09 +08:00
2026-07-21 17:44:05 +08:00
2026-07-21 18:46:04 +08:00
2026-07-21 18:46:57 +08:00
2026-07-17 11:46:07 +08:00
2026-07-21 12:22:16 +08:00
2026-07-21 17:44:05 +08:00
2026-06-27 06:21:34 +08:00
2026-06-27 03:19:58 +08:00
2026-06-27 03:10:57 +08:00
2026-06-27 03:27:42 +08:00
2026-07-17 12:40:30 +08:00
2026-06-27 03:05:23 +08:00
2026-07-14 08:39:28 +08:00
2026-07-21 17:04:29 +08:00
2026-07-07 15:21:25 +08:00
2026-07-16 22:13:15 +08:00
2026-07-16 06:43:32 +08:00