ssw 087e51f9e1 P0-1 修复: AppContext 加 currentSystemId + topLevelMenus (BS-109 铺路, 2026-07-02)
FINDING-P1: portal release 用 ctx.currentSystemId 但字段不存在
FINDING-P2: portal release 用 ctx.menus 查顶级菜单但类型是 string[] 无 id

修复:
- core/types.ts: AppContext 加 topLevelMenus: [{id, fullName, parentId, enCode, category}] + currentSystemId: string
- app/context.ts: tryFetchMenus 改返 topLevelMenus (filter parentId=0/-1); 新增 tryFetchCurrentSystemId 兜底走 /system/System list; 优先读 ~/.dacli-token/category-cache.json
- client.ts/use.ts/codegen.ts: 补 default 值保持向后兼容

审计: dacli/docs/cmd-review/v0.14-rollout-audit-2026-07-02.md §3.1
2026-07-02 11:45:17 +08:00
S
Description
dacli CLI — JNPF 平台 AI 驱动开发工具 (TS 版 v0.7)
3.9 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 99.4%
Shell 0.4%
Python 0.2%