924c57ec7606171680c807968794ea4871ede25b
audit 2026-07-02 §role/print/di 报告 P0 #2: - 原版硬编码绝对路径 ROLE_RELATION_SRC = '/home/ubuntu/ccWorkDir/web/...' - 直接用 loadWebModule dynamic shim 绕过 webapi/ 标准化 - 违反 § 11 可移植性 — 换机器/换 worktree 时路径解析失败 修复: - 新建 src/webapi/roleRelation.ts (跟 webapi/role.ts 一致) - initWebapi + loadRoleRelation Proxy 模式 - 暴露 addRoles/removeRoles/addRoleRelation/removeRoleRelation 4 函数 - 镜像源: web/.../api/permission/roleRelation.ts 6 函数 - assign.ts 改用新 webapi, 删 ROLE_RELATION_SRC 常量 + loadWebModule 直接调用 - help hook 更新 v0.14 → v0.15 说明 审计: dacli/docs/cmd-review/role-print-di-audit-2026-07-02.md
Languages
TypeScript
99.4%
Shell
0.4%
Python
0.2%