吸收数字员工管理端审批策略预览
This commit is contained in:
@@ -1523,6 +1523,73 @@ function checkDigitalAdminApprovalGovernanceWorkbench() {
|
||||
console.log("[DigitalEmployeeCheck] admin approval governance workbench hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminApprovalPoliciesWorkbench() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin approval policies workbench hooks");
|
||||
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
|
||||
const qimingRoot = path.resolve(packageRoot, "..", "..", "..", "qiming");
|
||||
const servicePath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-application",
|
||||
"src",
|
||||
"main",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"application",
|
||||
"service",
|
||||
"DigitalEmployeeSyncApplicationServiceImpl.java",
|
||||
);
|
||||
const testPath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-application",
|
||||
"src",
|
||||
"test",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"application",
|
||||
"service",
|
||||
"DigitalEmployeeSyncApplicationServiceImplTest.java",
|
||||
);
|
||||
const qimingOpsPath = path.join(qimingRoot, "src", "pages", "SystemManagement", "Content", "DigitalEmployeeOps", "index.tsx");
|
||||
const qimingTypesPath = path.join(qimingRoot, "src", "types", "interfaces", "systemManage.ts");
|
||||
const docsPath = path.resolve(packageRoot, "..", "..", "docs", "digital-employee-frontend-integration-plan.md");
|
||||
const service = fs.readFileSync(servicePath, "utf8");
|
||||
const test = fs.readFileSync(testPath, "utf8");
|
||||
const qimingOps = fs.readFileSync(qimingOpsPath, "utf8");
|
||||
const qimingTypes = fs.readFileSync(qimingTypesPath, "utf8");
|
||||
const docs = fs.readFileSync(docsPath, "utf8");
|
||||
const requiredSnippets = [
|
||||
[service, "approval_policies", "backend approval policies view"],
|
||||
[service, "isApprovalPolicyRow", "backend approval policy matcher"],
|
||||
[service, "approval_policy_id", "backend approval policy id projection"],
|
||||
[service, "conflict_policy_id", "backend conflict policy id projection"],
|
||||
[service, "decision_guard_status", "backend decision guard projection"],
|
||||
[test, "queryAdminWorkbenchApprovalPoliciesReturnsPolicyRowsOnly", "backend approval policies test"],
|
||||
[qimingTypes, "approval_policies", "qiming approval policies view type"],
|
||||
[qimingOps, "审批策略", "qiming approval policies tab"],
|
||||
[qimingOps, "不远程编辑策略", "qiming no remote policy edit copy"],
|
||||
[qimingOps, "不自动裁决", "qiming no auto decision copy"],
|
||||
[qimingOps, "不批量采纳远端", "qiming no batch remote accept copy"],
|
||||
[docs, "正式管理端审批策略预览", "docs approval policy absorption"],
|
||||
];
|
||||
const missing = requiredSnippets
|
||||
.filter(([content, snippet]) => !content.includes(snippet))
|
||||
.map(([, , label]) => label);
|
||||
if (missing.length > 0) {
|
||||
throw new Error(`Missing admin approval policies workbench hooks: ${missing.join(", ")}`);
|
||||
}
|
||||
console.log("[DigitalEmployeeCheck] admin approval policies workbench hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminMemorySkillWorkbench() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin memory governance and skill audit workbench hooks");
|
||||
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
|
||||
@@ -2675,6 +2742,7 @@ function main() {
|
||||
checkDigitalBackendMaterializedFacts();
|
||||
checkDigitalAdminRecordBillingArchiveShell();
|
||||
checkDigitalAdminApprovalGovernanceWorkbench();
|
||||
checkDigitalAdminApprovalPoliciesWorkbench();
|
||||
checkDigitalAdminMemorySkillWorkbench();
|
||||
checkDigitalAdminPolicySchedulerWorkbenches();
|
||||
checkDigitalAdminPlanGovernanceWorkbenches();
|
||||
|
||||
Reference in New Issue
Block a user