ssw
|
bfd9e43e6a
|
fix(gates): T9 — AppContext 字段映射修正, K gate 子命令接入, designResources 落地校验
1. buildContextSummary 字段名映射修复 (实 AppContext schema):
- full.currentSystemId → summary.systemId (不是 full.systemId)
- full.currentUser → summary.user (不是 full.user)
- tokenStatus union: 'valid' | 'expired' | 'unknown' (不是 'ok')
- resourceCounts 从 releasedForms/unreleasedForms/modifiedAfterPublishForms/workflowList/menus/existingTables 派生
2. wire dacli gate k 子命令 (CLI 最小接入, 走 checkKCheckpoint)
3. _checkpoint_k.ts 实际使用 designResources: phase=summary 校验
summaryResources ⊇ designResources (design→delivery 一致性)
4. 加 4 新单测: 真实 AppContext literal / currentUser undefined / designed but not delivered / 全交付
|
2026-07-28 20:38:13 +08:00 |
|
 sswandClaude
|
d4cc3d09db
|
feat(ssw-loop): P7 — generate command reference from commander tree (kill drift)
Per DESIGN §6 / user catch: ssw-loop subagent templates hand-code dacli command
syntax and drift (typ. missing --category). Command tree is now the single source.
- src/program.ts: extract buildProgram() (assembles commander tree, no parse/side-effect)
- src/cli.ts: slimmed to import buildProgram() + parse + top-level error handling
- scripts/gen-command-reference.ts: walk tree → .claude/.../command-reference.generated.md
(190 commands w/ all options + defaults, incl --category/--column-naming)
Verified: tsc 0; cli entry smoke (form list) intact after refactor; generator emits
190 commands. (.claude side: generated ref + drift-check committed separately.)
Co-Authored-By: Claude <[email protected]>
|
2026-07-24 11:45:30 +08:00 |
|