吸收数字员工管理端协作运营收口

This commit is contained in:
baiyanyun
2026-06-13 15:08:14 +08:00
parent 95838dba04
commit c9d8aa3b93
7 changed files with 244 additions and 21 deletions

View File

@@ -1737,6 +1737,99 @@ function checkDigitalAdminPlanGovernanceWorkbenches() {
console.log("[DigitalEmployeeCheck] admin plan governance and revision hooks OK");
}
function checkDigitalAdminCollaborationOperationsClosure() {
console.log("\n[DigitalEmployeeCheck] Verify admin artifact, notification and daily report collaboration closure 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, "record_cleanup_request", "backend cleanup request admin action"],
[service, "cleanup_request_id", "backend cleanup request projection"],
[service, "batch_cleanup_disabled", "backend batch cleanup disabled projection"],
[service, "subscription_policy_id", "backend subscription policy projection"],
[service, "daily_report_fact_id", "backend daily report fact projection"],
[dto, "cleanup_request_id", "backend cleanup request row field"],
[dto, "cleanup_eligible_count", "backend cleanup eligible count row field"],
[dto, "batch_cleanup_disabled", "backend batch cleanup disabled row field"],
[dto, "subscription_policy_id", "backend subscription policy row field"],
[dto, "daily_report_fact_id", "backend daily report fact row field"],
[test, "getCleanupRequestId", "backend cleanup request test assertion"],
[test, "getSubscriptionPolicyId", "backend subscription policy test assertion"],
[test, "getDailyReportFactId", "backend daily report fact test assertion"],
[qimingTypes, "cleanup_request_id", "qiming cleanup request type field"],
[qimingTypes, "subscription_policy_id", "qiming subscription policy type field"],
[qimingTypes, "daily_report_fact_id", "qiming daily report fact type field"],
[qimingOps, "记录批量清理申请", "qiming cleanup request action"],
[qimingOps, "订阅策略", "qiming subscription policy copy"],
[qimingOps, "审批状态", "qiming daily approval status copy"],
[docs, "正式管理端协作运营收口", "docs collaboration closure absorption"],
];
const missing = requiredSnippets
.filter(([content, snippet]) => !content.includes(snippet))
.map(([, , label]) => label);
if (missing.length > 0) {
throw new Error(`Missing admin collaboration operations closure hooks: ${missing.join(", ")}`);
}
console.log("[DigitalEmployeeCheck] admin collaboration operations closure hooks OK");
}
function checkDigitalAdminServiceOperationsWorkbench() {
console.log("\n[DigitalEmployeeCheck] Verify admin service operations workbench hooks");
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
@@ -2344,6 +2437,7 @@ function main() {
checkDigitalAdminMemorySkillWorkbench();
checkDigitalAdminPolicySchedulerWorkbenches();
checkDigitalAdminPlanGovernanceWorkbenches();
checkDigitalAdminCollaborationOperationsClosure();
checkDigitalAdminServiceOperationsWorkbench();
checkDigitalAdminRouteGovernanceWorkbench();
checkDigitalAdminNotificationWorkbench();