feat(kernel): 协议适配层 - 业务可按既定规则接管登录/权限/菜单
内核 v1.4.0(非破坏性升级) - contracts 新增 AuthProtocol/AccessProtocol/MenuProtocol 契约 + 默认纯函数实现 + defineProtocols 合并器 - 登录流程改为协议执行器:六阶段可逐段替换、auth.run 整体接管、before/after/onError 钩子 - 权限判定 host 与子应用共读一份协议;菜单来源/树解析/可见性协议化 - @/protocols alias 双 fallback;create 生成 packages/protocols 骨架 - 类型 MenuGroupDef/MenuItemDef 移入 contracts 并从原路径 re-export,import 不变 - 25 项协议单测 + 9 项老项目升级演练全过;verify/build 全绿
Showing
28 changed files
with
596 additions
and
170 deletions
.kernel/apps/shell/src/auth-deps.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment