简化业务助手为单一入口
verify / test-and-build (push) Canceled after 0s

This commit is contained in:
NathanAlex7
2026-09-21 13:33:00 +08:00
parent 4732cee85e
commit b10093f9d8
4 changed files with 17 additions and 22 deletions
+6 -6
View File
@@ -11,13 +11,13 @@ const coreProxy = read("src/app/api/core/[...path]/route.ts");
assert.match(
assistant,
/setNativeAccess\(body\.identity\?\.role==="admin"&&!!sessionStorage\.getItem\("xingbang-access-token"\)\)/,
"只有带正式令牌的管理员才能进入原版通用工具工作台",
/<section className="ba-workspace">/,
"业务助手应保留单一、直接的项目操作入口",
);
assert.match(
assert.doesNotMatch(
assistant,
/nativeAccess\?<AppProvider><ChatPanel\/><\/AppProvider>:conversation/,
"客户经理和评审员应回落到受角色约束的项目会话,而不是请求管理员接口",
/mini-openclaw|ChatPanel|AppProvider|nativeAccess|ba-mode-tabs/,
"业务人员页面不应继续展示或加载重复的 mini-openclaw 入口",
);
assert.match(
assistant,
@@ -35,4 +35,4 @@ assert.match(
"修复不得放开原版终端、文件和网页工具的管理员边界",
);
console.log("Cloud mini-openclaw role access checks passed");
console.log("Cloud business-assistant single-entry checks passed");