@ai-setting/roy-agent-core 1.7.89 → 1.7.91
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.
- package/dist/env/event-source/event-source-handlers.js +2 -2
- package/dist/env/event-source/index.js +3 -3
- package/dist/env/index.js +4 -4
- package/dist/env/task/backend/index.js +4 -2
- package/dist/env/task/backend/roy-sidecar-task-port.d.ts +8 -0
- package/dist/env/task/plugins/index.js +1 -1
- package/dist/env/task/plugins/lark-card-action-handler.d.ts +2 -1
- package/dist/index.js +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-k3h8t4q1.js → roy-agent-core-6r970asj.js} +2 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4b38m749.js → roy-agent-core-hw317z6f.js} +3 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m7d1t3db.js → roy-agent-core-vsdar7tn.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-dvec4nn2.js → roy-agent-core-xwyq7ffz.js} +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
resolveLarkChannelSystemPrompt,
|
|
18
18
|
timerHandler,
|
|
19
19
|
wecomCliHandler
|
|
20
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
} from "../../shared/@ai-setting/roy-agent-core-hw317z6f.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-vx8zc847.js";
|
|
22
22
|
import {
|
|
23
23
|
cliCommandHandler
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-age3qseb.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-mf5p38yf.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-2stt4rp5.js";
|
|
28
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-6r970asj.js";
|
|
29
29
|
import"../../shared/@ai-setting/roy-agent-core-h1e1fm9b.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-c4ec7k0p.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-4t3yskp8.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import"../../shared/@ai-setting/roy-agent-core-m1fgtnrc.js";
|
|
2
2
|
import {
|
|
3
3
|
EventSourceComponent
|
|
4
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "../../shared/@ai-setting/roy-agent-core-vsdar7tn.js";
|
|
5
5
|
import {
|
|
6
6
|
BountyIMInstance,
|
|
7
7
|
COMMAND_PREFIX,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
translateCardActionToCommand,
|
|
57
57
|
wecomCliHandler,
|
|
58
58
|
writeFallbackModelList
|
|
59
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
59
|
+
} from "../../shared/@ai-setting/roy-agent-core-hw317z6f.js";
|
|
60
60
|
import {
|
|
61
61
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
62
62
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
import"../../shared/@ai-setting/roy-agent-core-age3qseb.js";
|
|
77
77
|
import"../../shared/@ai-setting/roy-agent-core-mf5p38yf.js";
|
|
78
78
|
import"../../shared/@ai-setting/roy-agent-core-2stt4rp5.js";
|
|
79
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
79
|
+
import"../../shared/@ai-setting/roy-agent-core-6r970asj.js";
|
|
80
80
|
import"../../shared/@ai-setting/roy-agent-core-h1e1fm9b.js";
|
|
81
81
|
import"../../shared/@ai-setting/roy-agent-core-c4ec7k0p.js";
|
|
82
82
|
import {
|
package/dist/env/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseEnvironment
|
|
3
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-xwyq7ffz.js";
|
|
4
4
|
import {
|
|
5
5
|
TaskComponent
|
|
6
6
|
} from "../shared/@ai-setting/roy-agent-core-49qcpqwg.js";
|
|
@@ -15,11 +15,11 @@ import"../shared/@ai-setting/roy-agent-core-9cen1jvg.js";
|
|
|
15
15
|
import"../shared/@ai-setting/roy-agent-core-p5cz9m8v.js";
|
|
16
16
|
import {
|
|
17
17
|
EventSourceComponent
|
|
18
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
} from "../shared/@ai-setting/roy-agent-core-vsdar7tn.js";
|
|
19
19
|
import {
|
|
20
20
|
builtInHandlers,
|
|
21
21
|
larkCliHandler
|
|
22
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
22
|
+
} from "../shared/@ai-setting/roy-agent-core-hw317z6f.js";
|
|
23
23
|
import {
|
|
24
24
|
EventSourceInitHooks,
|
|
25
25
|
getDefaultConfigForType,
|
|
@@ -31,7 +31,7 @@ import"../shared/@ai-setting/roy-agent-core-v0hf14bj.js";
|
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-age3qseb.js";
|
|
32
32
|
import"../shared/@ai-setting/roy-agent-core-mf5p38yf.js";
|
|
33
33
|
import"../shared/@ai-setting/roy-agent-core-2stt4rp5.js";
|
|
34
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
34
|
+
import"../shared/@ai-setting/roy-agent-core-6r970asj.js";
|
|
35
35
|
import"../shared/@ai-setting/roy-agent-core-h1e1fm9b.js";
|
|
36
36
|
import"../shared/@ai-setting/roy-agent-core-c4ec7k0p.js";
|
|
37
37
|
import"../shared/@ai-setting/roy-agent-core-4t3yskp8.js";
|
|
@@ -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>;
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
parseExtractorOutput,
|
|
31
31
|
registerLayaCompletionTaskHook,
|
|
32
32
|
renderCompletionState
|
|
33
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
33
|
+
} from "../../../shared/@ai-setting/roy-agent-core-6r970asj.js";
|
|
34
34
|
import"../../../shared/@ai-setting/roy-agent-core-h1e1fm9b.js";
|
|
35
35
|
import"../../../shared/@ai-setting/roy-agent-core-c4ec7k0p.js";
|
|
36
36
|
import"../../../shared/@ai-setting/roy-agent-core-4t3yskp8.js";
|
|
@@ -133,7 +133,7 @@ export type SessionCardRefreshHandler = (opts: {
|
|
|
133
133
|
}>;
|
|
134
134
|
/** 端口注入(caller 提供 IO 能力,本模块保持纯函数) */
|
|
135
135
|
export interface CardActionPorts {
|
|
136
|
-
/** 读取 task(用于读 context
|
|
136
|
+
/** 读取 task(用于读 context)★ #5581:session_id 可选透传(MCP 路径按钮主键) */
|
|
137
137
|
getTask?: (id: number) => Promise<{
|
|
138
138
|
context?: string;
|
|
139
139
|
title?: string;
|
|
@@ -144,6 +144,7 @@ export interface CardActionPorts {
|
|
|
144
144
|
project_path?: string;
|
|
145
145
|
parent_task_id?: number | null;
|
|
146
146
|
current_status?: string;
|
|
147
|
+
session_id?: string | null;
|
|
147
148
|
id: number;
|
|
148
149
|
} | undefined>;
|
|
149
150
|
/** 写 task.context(用于回写/清除 larkPerTaskChatId) */
|
package/dist/index.js
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
BaseEnvironment,
|
|
63
63
|
generateDescendingId,
|
|
64
64
|
generateId
|
|
65
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
65
|
+
} from "./shared/@ai-setting/roy-agent-core-xwyq7ffz.js";
|
|
66
66
|
import {
|
|
67
67
|
TaskComponent
|
|
68
68
|
} from "./shared/@ai-setting/roy-agent-core-49qcpqwg.js";
|
|
@@ -80,7 +80,7 @@ import"./shared/@ai-setting/roy-agent-core-9cen1jvg.js";
|
|
|
80
80
|
import"./shared/@ai-setting/roy-agent-core-p5cz9m8v.js";
|
|
81
81
|
import {
|
|
82
82
|
EventSourceComponent
|
|
83
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
83
|
+
} from "./shared/@ai-setting/roy-agent-core-vsdar7tn.js";
|
|
84
84
|
import {
|
|
85
85
|
BountyIMInstance,
|
|
86
86
|
COMMAND_PREFIX,
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
translateCardActionToCommand,
|
|
136
136
|
wecomCliHandler,
|
|
137
137
|
writeFallbackModelList
|
|
138
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
138
|
+
} from "./shared/@ai-setting/roy-agent-core-hw317z6f.js";
|
|
139
139
|
import {
|
|
140
140
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
141
141
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -161,7 +161,7 @@ import"./shared/@ai-setting/roy-agent-core-2stt4rp5.js";
|
|
|
161
161
|
import {
|
|
162
162
|
TaskTagPlugin,
|
|
163
163
|
createAutoTaskPlugin
|
|
164
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-6r970asj.js";
|
|
165
165
|
import"./shared/@ai-setting/roy-agent-core-h1e1fm9b.js";
|
|
166
166
|
import"./shared/@ai-setting/roy-agent-core-c4ec7k0p.js";
|
|
167
167
|
import {
|
|
@@ -2490,7 +2490,8 @@ function buildTaskMetaFromTask(task, perTaskChatId, perTaskChatName) {
|
|
|
2490
2490
|
context: task.context,
|
|
2491
2491
|
currentStatus: task.current_status,
|
|
2492
2492
|
perTaskChatId,
|
|
2493
|
-
perTaskChatName
|
|
2493
|
+
perTaskChatName,
|
|
2494
|
+
...typeof task.session_id === "string" && task.session_id ? { sessionId: task.session_id } : {}
|
|
2494
2495
|
};
|
|
2495
2496
|
}
|
|
2496
2497
|
async function deleteGroupChatViaLarkCli(chatId, profile) {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
createWecomTaskNotifyHook,
|
|
20
20
|
deleteGroupChatViaLarkCli,
|
|
21
21
|
handleCardAction
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-6r970asj.js";
|
|
23
23
|
import {
|
|
24
24
|
registerWecomRespondTarget,
|
|
25
25
|
sendWecomCliMarkdown,
|
|
@@ -4765,7 +4765,8 @@ class LarkCliInstance {
|
|
|
4765
4765
|
project_path: t.project_path,
|
|
4766
4766
|
parent_task_id: t.parent_task_id ?? null,
|
|
4767
4767
|
current_status: t.current_status,
|
|
4768
|
-
context: t.context
|
|
4768
|
+
context: t.context,
|
|
4769
|
+
...typeof t.session_id === "string" && t.session_id ? { session_id: t.session_id } : {}
|
|
4769
4770
|
};
|
|
4770
4771
|
},
|
|
4771
4772
|
updateTaskContext: async (taskId, context) => {
|