@ai-setting/roy-agent-core 1.7.89 → 1.7.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -693,7 +693,8 @@ function toStoredTask(record, vocabulary, parentNum) {
|
|
|
693
693
|
...side.due_date ? { due_date: side.due_date } : {},
|
|
694
694
|
tags: vocabulary.toRoyTags(record.tags),
|
|
695
695
|
project_path: side.project_path ?? "unknown",
|
|
696
|
-
context: side.context ?? "{}"
|
|
696
|
+
context: side.context ?? "{}",
|
|
697
|
+
...record.owner !== undefined ? { owner: record.owner } : {}
|
|
697
698
|
};
|
|
698
699
|
}
|
|
699
700
|
function toStoredOperation(record) {
|
|
@@ -756,7 +757,7 @@ function createRoySidecarTaskPort(store, vocabulary, options = {}) {
|
|
|
756
757
|
title: input.title,
|
|
757
758
|
description: input.description,
|
|
758
759
|
priority: vocabulary.toStorePriority(input.priority),
|
|
759
|
-
owner: agent,
|
|
760
|
+
owner: input.owner ?? agent,
|
|
760
761
|
tags: vocabulary.toStoreTags(input.tags),
|
|
761
762
|
parent_id: parentId,
|
|
762
763
|
session_id: input.sessionId ?? "unknown",
|
|
@@ -797,6 +798,7 @@ function createRoySidecarTaskPort(store, vocabulary, options = {}) {
|
|
|
797
798
|
...patch.status !== undefined ? { status: vocabulary.toStoreStatus(patch.status) } : {},
|
|
798
799
|
...patch.priority !== undefined ? { priority: vocabulary.toStorePriority(patch.priority) } : {},
|
|
799
800
|
...patch.tags !== undefined ? { tags: vocabulary.toStoreTags(patch.tags) } : {},
|
|
801
|
+
...patch.owner !== undefined ? { owner: patch.owner } : {},
|
|
800
802
|
...Object.keys(sidePatch).length > 0 ? { roy: sidePatch } : {}
|
|
801
803
|
});
|
|
802
804
|
if (!updated)
|
|
@@ -37,6 +37,12 @@ export interface SidecarTask {
|
|
|
37
37
|
tags?: string;
|
|
38
38
|
parent_id: string | null;
|
|
39
39
|
session_id?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* 负责人(Task #5440)。业务 store 自己的 owner 列(string);
|
|
42
|
+
* create 时由 port 写入(显式 owner 优先,缺省回落 `agent`),
|
|
43
|
+
* update 时透传(undefined = 不改;null = 清空)。
|
|
44
|
+
*/
|
|
45
|
+
owner?: string | null;
|
|
40
46
|
roy?: Record<string, unknown>;
|
|
41
47
|
created_at: string;
|
|
42
48
|
updated_at: string;
|
|
@@ -67,6 +73,8 @@ export interface RoySidecarTaskStore {
|
|
|
67
73
|
status?: string;
|
|
68
74
|
priority?: number;
|
|
69
75
|
tags?: string;
|
|
76
|
+
/** 负责人(Task #5440):undefined = 不改;null = 清空;字符串 = 改派。 */
|
|
77
|
+
owner?: string | null;
|
|
70
78
|
roy?: Record<string, unknown>;
|
|
71
79
|
}): Promise<SidecarTask | null>;
|
|
72
80
|
getTask(id: string): Promise<SidecarTask | null>;
|