吸收数字员工通知回复任务输入
This commit is contained in:
@@ -533,6 +533,27 @@ describe("digital employee sync service", () => {
|
||||
status: "failed",
|
||||
reason: "computer chat failed",
|
||||
});
|
||||
insertEventEntity("event-governance-input", "governance_provide_task_input", {
|
||||
commandKind: "provide_task_input",
|
||||
commandId: "command-provide-input",
|
||||
planId: "plan-1",
|
||||
taskId: "task-1",
|
||||
runId: "run-1",
|
||||
accepted: true,
|
||||
payload: {
|
||||
input: "请改用客户备用手机号",
|
||||
source: "notification_reply",
|
||||
notification_id: "input:task-1",
|
||||
plan_id: "plan-1",
|
||||
task_id: "task-1",
|
||||
},
|
||||
result: {
|
||||
plan_id: "plan-1",
|
||||
task_id: "task-1",
|
||||
run_id: "run-1",
|
||||
source: "qimingclaw-task-agent",
|
||||
},
|
||||
});
|
||||
insertEventEntity("event-notification-read", "digital_workday_notification_read", {
|
||||
metadata: {
|
||||
notification_id: "task:task-1",
|
||||
@@ -604,6 +625,7 @@ describe("digital employee sync service", () => {
|
||||
{ entity_type: "event", entity_id: "event-artifact" },
|
||||
{ entity_type: "event", entity_id: "event-skill" },
|
||||
{ entity_type: "event", entity_id: "event-dispatch" },
|
||||
{ entity_type: "event", entity_id: "event-governance-input" },
|
||||
{ entity_type: "event", entity_id: "event-notification-read" },
|
||||
{ entity_type: "event", entity_id: "event-notification-dismiss" },
|
||||
{ entity_type: "event", entity_id: "event-notification-reply" },
|
||||
@@ -668,6 +690,16 @@ describe("digital employee sync service", () => {
|
||||
status: "failed",
|
||||
reason: "computer chat failed",
|
||||
});
|
||||
expect(businessView("event-governance-input")).toMatchObject({
|
||||
category: "governance",
|
||||
command_kind: "provide_task_input",
|
||||
plan_id: "plan-1",
|
||||
task_id: "task-1",
|
||||
source: "notification_reply",
|
||||
notification_id: "input:task-1",
|
||||
input_length: 10,
|
||||
});
|
||||
expect(businessView("event-governance-input")).not.toHaveProperty("input");
|
||||
expect(businessView("event-notification-read")).toMatchObject({
|
||||
category: "notification",
|
||||
notification_id: "task:task-1",
|
||||
|
||||
Reference in New Issue
Block a user