吸收数字员工管理端策略调度预览
This commit is contained in:
@@ -1545,6 +1545,104 @@ function checkDigitalAdminMemorySkillWorkbench() {
|
||||
console.log("[DigitalEmployeeCheck] admin memory governance and skill audit hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminPolicySchedulerWorkbenches() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin policy center and scheduler operation 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 dtoPath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-adapter",
|
||||
"src",
|
||||
"main",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"adapter",
|
||||
"dto",
|
||||
"digital",
|
||||
"DigitalEmployeeAdminWorkbenchRowDto.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 dto = fs.readFileSync(dtoPath, "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, "policy_center", "backend policy center view"],
|
||||
[service, "scheduler_operations", "backend scheduler operations view"],
|
||||
[service, "isPolicyCenterRow", "backend policy center matcher"],
|
||||
[service, "isSchedulerOperationsRow", "backend scheduler operations matcher"],
|
||||
[service, "edit_policy_remote_disabled", "backend policy edit disabled reason"],
|
||||
[service, "run_schedule_now_disabled", "backend scheduler run disabled reason"],
|
||||
[service, "start_scheduler_disabled", "backend scheduler start disabled reason"],
|
||||
[dto, "policy_kind", "backend policy kind row field"],
|
||||
[dto, "policy_key", "backend policy key row field"],
|
||||
[dto, "schedule_id", "backend schedule id row field"],
|
||||
[dto, "job_id", "backend job id row field"],
|
||||
[test, "queryAdminWorkbenchPolicyCenterReturnsPolicySnapshotRowsOnly", "backend policy center test"],
|
||||
[test, "queryAdminWorkbenchSchedulerOperationsReturnsSchedulerRowsOnly", "backend scheduler operations test"],
|
||||
[test, "createAdminActionReturnsSpecificPolicyAndSchedulerDisabledReasons", "backend disabled reason test"],
|
||||
[qimingTypes, "policy_center", "qiming policy center view type"],
|
||||
[qimingTypes, "scheduler_operations", "qiming scheduler operations view type"],
|
||||
[qimingTypes, "schedule_id", "qiming schedule id field"],
|
||||
[qimingOps, "策略中心", "qiming policy center tab"],
|
||||
[qimingOps, "调度运营", "qiming scheduler operations tab"],
|
||||
[qimingOps, "批量拉取策略", "qiming policy pull action"],
|
||||
[qimingOps, "立即检查调度", "qiming scheduler check action"],
|
||||
[qimingOps, "不开放远程策略编辑", "qiming policy edit guard copy"],
|
||||
[qimingOps, "不开放 start/stop", "qiming scheduler start stop guard copy"],
|
||||
[docs, "正式管理端策略中心预览", "docs policy center absorption"],
|
||||
[docs, "正式管理端调度运营预览", "docs scheduler operations absorption"],
|
||||
];
|
||||
const missing = requiredSnippets
|
||||
.filter(([content, snippet]) => !content.includes(snippet))
|
||||
.map(([, , label]) => label);
|
||||
if (missing.length > 0) {
|
||||
throw new Error(`Missing admin policy center and scheduler operation hooks: ${missing.join(", ")}`);
|
||||
}
|
||||
console.log("[DigitalEmployeeCheck] admin policy center and scheduler operation hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminServiceOperationsWorkbench() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin service operations workbench hooks");
|
||||
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
|
||||
@@ -2150,6 +2248,7 @@ function main() {
|
||||
checkDigitalAdminRecordBillingArchiveShell();
|
||||
checkDigitalAdminApprovalGovernanceWorkbench();
|
||||
checkDigitalAdminMemorySkillWorkbench();
|
||||
checkDigitalAdminPolicySchedulerWorkbenches();
|
||||
checkDigitalAdminServiceOperationsWorkbench();
|
||||
checkDigitalAdminRouteGovernanceWorkbench();
|
||||
checkDigitalAdminNotificationWorkbench();
|
||||
|
||||
Reference in New Issue
Block a user