ssw
e05d87300f
feat(dacli): portal/create.ts 完整 wrapCommand 迁移 (P6 4 exit 收口)
4 处 process.exit(1) → ctx.fail():
- Bug 5 category 解析失败 (resolvePortalCategory throw DacliError catch)
- step machine 校验失败
- 后端 createPortal code !== 200 (含 enhanceFromBackend 错误增强)
- BS-新12 silent fail (后端返 code=200 但 r.id undefined, list 反查仍空)
删 4 处 printCommandEnd (L3 落盘) — wrapCommand 自动调用
保留 runCommandAutoFix pipeline (silent fix 透传)
保留 resolvePortalCategory 内部 DacliError (P5 已就绪)
修改方式: Write 整文件重写.
验证:
- TS compile 0 新错误 (baseline 57 不变)
- 73/73 单元测试 PASS
2026-07-21 20:23:13 +08:00
..
2026-07-21 20:23:13 +08:00
2026-07-21 18:06:36 +08:00
2026-06-22 15:33:48 +08:00
2026-06-24 14:36:23 +08:00
2026-07-20 10:11:41 +08:00
2026-06-30 18:53:38 +08:00
2026-07-17 08:59:51 +08:00