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 / 全交付
This commit is contained in:
1 parent
e04bcb3216
commit
bfd9e43e6a
6 files changed
+279
-35
No files matched your search
@@ -35,6 +35,7 @@ import { buildSelfCheckCommand } from './commands/_selfcheck.ts'
|
||||
import { buildDriftCheckCommand } from './commands/_drift_check.ts'
|
||||
import { buildCoverageCommand } from './commands/_coverage.ts'
|
||||
import { buildKbCommand } from './commands/kb/index.ts'
|
||||
import { buildGateCommand } from './commands/gate/index.ts' // v0.23+ (webapi hardening, Task 9): K 关卡 CLI 接入
|
||||
|
||||
export const VERSION = '0.1.0'
|
||||
|
||||
@@ -74,6 +75,7 @@ export function buildProgram(): Command {
|
||||
program.addCommand(buildDriftCheckCommand())
|
||||
program.addCommand(buildCoverageCommand())
|
||||
program.addCommand(buildKbCommand())
|
||||
program.addCommand(buildGateCommand()) // v0.23+ (webapi hardening, Task 9): K 关卡 CLI
|
||||
|
||||
return program
|
||||
}
|
||||
Reference in new issue
Block a user