吸收数字员工入口路由决策

This commit is contained in:
baiyanyun
2026-06-09 15:32:38 +08:00
parent fd130f1f60
commit 702ea05d4d
9 changed files with 598 additions and 144 deletions

View File

@@ -21,9 +21,12 @@ import {
upsertDigitalEmployeeMemory,
deleteDigitalEmployeeMemory,
syncQimingclawMemoryEntries,
recordDigitalEmployeeRouteDecision,
listDigitalEmployeeRouteDecisions,
type DigitalEmployeeManagedService,
type DigitalEmployeeGovernanceCommandRecord,
type DigitalEmployeeMemoryUpsertInput,
type DigitalEmployeeRouteDecisionInput,
type DigitalEmployeeServiceStatus,
type DigitalEmployeeSnapshot,
type DigitalEmployeeUiStateUpdate,
@@ -155,6 +158,14 @@ export function registerDigitalEmployeeHandlers(ctx: HandlerContext): void {
return readDigitalEmployeeScheduleRuns(scheduleId, limit ?? 20);
});
ipcMain.handle("digitalEmployee:listRouteDecisions", async (_, options?: { limit?: number }) => {
return listDigitalEmployeeRouteDecisions(options ?? {});
});
ipcMain.handle("digitalEmployee:recordRouteDecision", async (_, input: DigitalEmployeeRouteDecisionInput) => {
return recordDigitalEmployeeRouteDecision(input);
});
ipcMain.handle(
"digitalEmployee:recordGovernanceCommand",
async (_, command: DigitalEmployeeGovernanceCommandRecord) => {