吸收数字员工入口路由动作映射

This commit is contained in:
baiyanyun
2026-06-09 19:05:15 +08:00
parent 23c3577ef4
commit 755a8f041d
5 changed files with 188 additions and 45 deletions

View File

@@ -201,6 +201,7 @@ describe("digital employee state service", () => {
reasonCodes: ["ready_step_context"],
candidateSkills: ["qimingclaw-computer-control"],
contextRefs: { plan_id: "plan-1", step_id: "step-ready" },
createdCommandId: "qimingclaw-digital-start_run-1",
createsTaskRun: true,
entrypoint: "task_center",
actor: "operator",
@@ -221,6 +222,7 @@ describe("digital employee state service", () => {
expect(first).toMatchObject({
id: "route-decision:route-key-1",
route_kind: "PlanExecution",
created_command_id: "qimingclaw-digital-start_run-1",
creates_task_run: true,
context_refs: { step_id: "step-ready" },
});
@@ -235,6 +237,7 @@ describe("digital employee state service", () => {
id: first.id,
route_kind: "PlanExecution",
intent_kind: "execute",
created_command_id: "qimingclaw-digital-start_run-1",
},
envelope: { text: "开始执行这个步骤" },
});
@@ -245,7 +248,7 @@ describe("digital employee state service", () => {
});
expect(listDigitalEmployeeRouteDecisions()).toEqual([
expect.objectContaining({ id: second.id, route_kind: "ProjectionQuery" }),
expect.objectContaining({ id: first.id, route_kind: "PlanExecution" }),
expect.objectContaining({ id: first.id, route_kind: "PlanExecution", created_command_id: "qimingclaw-digital-start_run-1" }),
]);
});