@ai-setting/roy-agent-core 1.6.10 → 1.6.12
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/agent/index.js +2 -2
- package/dist/env/event-source/index.js +3 -3
- package/dist/env/index.js +12 -12
- package/dist/env/prompt/index.js +2 -2
- package/dist/env/task/delegate/index.js +3 -3
- package/dist/env/task/index.js +6 -6
- package/dist/env/task/plugins/index.js +2 -2
- package/dist/env/task/storage/index.js +2 -1
- package/dist/env/task/tools/operation/index.js +1 -1
- package/dist/env/workflow/index.js +2 -2
- package/dist/env/workflow/tools/index.js +1 -1
- package/dist/index.js +13 -13
- package/dist/shared/@ai-setting/{roy-agent-core-4mhrz08q.js → roy-agent-core-06574wqa.js} +3 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m38q2azm.js → roy-agent-core-1bvv6s75.js} +3 -1
- package/dist/shared/@ai-setting/{roy-agent-core-wqe84f84.js → roy-agent-core-3bdpnmtg.js} +29 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8bhncxep.js → roy-agent-core-7a3gf3tw.js} +45 -8
- package/dist/shared/@ai-setting/roy-agent-core-9abv4ewh.js +1122 -0
- package/dist/shared/@ai-setting/{roy-agent-core-0cftbg62.js → roy-agent-core-asp5p3zx.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-38kbfarg.js → roy-agent-core-cxdnzn17.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-nzpw62d3.js → roy-agent-core-dntkpwqq.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-g9p7e2ys.js → roy-agent-core-mb7b62sm.js} +51 -13
- package/dist/shared/@ai-setting/{roy-agent-core-trdpar9f.js → roy-agent-core-ms5dp89r.js} +338 -20
- package/dist/shared/@ai-setting/{roy-agent-core-2ek596yd.js → roy-agent-core-q2bw3cwd.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-y5ymc4f8.js → roy-agent-core-q7rt3x8d.js} +45 -13
- package/dist/shared/@ai-setting/roy-agent-core-rn57psp0.js +396 -0
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-9xby523m.js +0 -961
- package/dist/shared/@ai-setting/roy-agent-core-t94ktchq.js +0 -213
package/dist/env/agent/index.js
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
AgentComponent,
|
|
3
3
|
AgentComponentConfigSchema,
|
|
4
4
|
SummaryAgent
|
|
5
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-1bvv6s75.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-dcd1s7ct.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-zs31w092.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
10
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
import"../../shared/@ai-setting/roy-agent-core-3bdpnmtg.js";
|
|
11
11
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
12
12
|
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-yfhgxh5a.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
larkCliHandler,
|
|
11
11
|
resolveBountyIMSystemPrompt,
|
|
12
12
|
timerHandler
|
|
13
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
} from "../../shared/@ai-setting/roy-agent-core-q2bw3cwd.js";
|
|
14
14
|
import {
|
|
15
15
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
16
16
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
validateEventSourceConfig
|
|
22
22
|
} from "../../shared/@ai-setting/roy-agent-core-ds5f75pg.js";
|
|
23
23
|
import"../../shared/@ai-setting/roy-agent-core-xxgazz27.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-q7rt3x8d.js";
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
28
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
29
29
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-j62bjagf.js";
|
package/dist/env/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseEnvironment
|
|
3
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-asp5p3zx.js";
|
|
4
4
|
import {
|
|
5
5
|
EventSourceComponent,
|
|
6
6
|
builtInHandlers,
|
|
7
7
|
larkCliHandler
|
|
8
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../shared/@ai-setting/roy-agent-core-q2bw3cwd.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,11 +17,11 @@ import"../shared/@ai-setting/roy-agent-core-xxgazz27.js";
|
|
|
17
17
|
import {
|
|
18
18
|
PluginComponent
|
|
19
19
|
} from "../shared/@ai-setting/roy-agent-core-80bdhnwk.js";
|
|
20
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-q7rt3x8d.js";
|
|
21
21
|
import"../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowComponent
|
|
24
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
} from "../shared/@ai-setting/roy-agent-core-06574wqa.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-htjag2nr.js";
|
|
26
26
|
import"../shared/@ai-setting/roy-agent-core-0n2a8cbn.js";
|
|
27
27
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
@@ -31,7 +31,7 @@ import"../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
32
32
|
import"../shared/@ai-setting/roy-agent-core-resnbd2j.js";
|
|
33
33
|
import"../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
34
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
34
|
+
import"../shared/@ai-setting/roy-agent-core-mb7b62sm.js";
|
|
35
35
|
import"../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
36
36
|
import"../shared/@ai-setting/roy-agent-core-p2vpsd1d.js";
|
|
37
37
|
import"../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -41,29 +41,29 @@ import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
41
41
|
import {
|
|
42
42
|
AgentComponent,
|
|
43
43
|
AgentComponentConfigSchema
|
|
44
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
44
|
+
} from "../shared/@ai-setting/roy-agent-core-1bvv6s75.js";
|
|
45
45
|
import"../shared/@ai-setting/roy-agent-core-dcd1s7ct.js";
|
|
46
46
|
import"../shared/@ai-setting/roy-agent-core-zs31w092.js";
|
|
47
47
|
import"../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
48
48
|
import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
49
49
|
import {
|
|
50
50
|
TaskComponent
|
|
51
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
51
|
+
} from "../shared/@ai-setting/roy-agent-core-dntkpwqq.js";
|
|
52
52
|
import"../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
53
53
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
54
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
54
|
+
import"../shared/@ai-setting/roy-agent-core-7a3gf3tw.js";
|
|
55
55
|
import"../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
56
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
57
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
56
|
+
import"../shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
57
|
+
import"../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
58
58
|
import"../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
59
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
59
|
+
import"../shared/@ai-setting/roy-agent-core-3bdpnmtg.js";
|
|
60
60
|
import {
|
|
61
61
|
XDG_PATHS,
|
|
62
62
|
getXDGPath,
|
|
63
63
|
getXDGPaths
|
|
64
64
|
} from "../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
65
65
|
import"../shared/@ai-setting/roy-agent-core-rpq0mcvv.js";
|
|
66
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
66
|
+
import"../shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
67
67
|
import"../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
68
68
|
import {
|
|
69
69
|
McpComponent
|
package/dist/env/prompt/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
PromptConfigSchema,
|
|
4
4
|
PromptPathSchema,
|
|
5
5
|
PromptRenderer
|
|
6
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../shared/@ai-setting/roy-agent-core-cxdnzn17.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-j62bjagf.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
BackgroundTaskManager,
|
|
4
4
|
createDelegateTool,
|
|
5
5
|
createStopTool
|
|
6
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7a3gf3tw.js";
|
|
7
7
|
import"../../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
8
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
import"../../../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
10
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-3bdpnmtg.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-dbkkjmqz.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
TaskPriorityEnum,
|
|
6
6
|
TaskStatusEnum,
|
|
7
7
|
TaskTypeEnum
|
|
8
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../shared/@ai-setting/roy-agent-core-dntkpwqq.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
10
10
|
import {
|
|
11
11
|
TaskEntityEventTypes
|
|
12
12
|
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
13
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../shared/@ai-setting/roy-agent-core-7a3gf3tw.js";
|
|
14
14
|
import"../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
15
15
|
import {
|
|
16
16
|
SQLiteTaskStore,
|
|
17
17
|
getDefaultTaskDbPath
|
|
18
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
} from "../../shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
21
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-3bdpnmtg.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
23
23
|
import"../../shared/@ai-setting/roy-agent-core-rpq0mcvv.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-j62bjagf.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
formatExtractorInput,
|
|
9
9
|
formatExtractorInputFromDescription,
|
|
10
10
|
parseExtractorOutput
|
|
11
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-q7rt3x8d.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
14
14
|
import"../../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
15
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
16
16
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
17
17
|
import"../../../shared/@ai-setting/roy-agent-core-9hqqhye6.js";
|
|
18
18
|
import"../../../shared/@ai-setting/roy-agent-core-endah27g.js";
|
|
@@ -2,7 +2,8 @@ import {
|
|
|
2
2
|
SQLiteTaskStore,
|
|
3
3
|
getDefaultDataDir,
|
|
4
4
|
getDefaultTaskDbPath
|
|
5
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../../shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
6
|
+
import"../../../shared/@ai-setting/roy-agent-core-fdm579b1.js";
|
|
6
7
|
import"../../../shared/@ai-setting/roy-agent-core-vyygk314.js";
|
|
7
8
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
8
9
|
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getOperationTool,
|
|
5
5
|
listOperationsTool,
|
|
6
6
|
updateOperationTool
|
|
7
|
-
} from "../../../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../../../../shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
8
8
|
import"../../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
9
9
|
export {
|
|
10
10
|
updateOperationTool,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-06574wqa.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-htjag2nr.js";
|
|
5
5
|
import"../../shared/@ai-setting/roy-agent-core-0n2a8cbn.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
pathNotFound,
|
|
61
61
|
unresolvedVariable
|
|
62
62
|
} from "../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
63
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
63
|
+
import"../../shared/@ai-setting/roy-agent-core-mb7b62sm.js";
|
|
64
64
|
import"../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
65
65
|
import"../../shared/@ai-setting/roy-agent-core-p2vpsd1d.js";
|
|
66
66
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getRunWorkflowTool,
|
|
25
25
|
initRunWorkflowTool,
|
|
26
26
|
resetRunWorkflowTool
|
|
27
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "../../../shared/@ai-setting/roy-agent-core-mb7b62sm.js";
|
|
28
28
|
import {
|
|
29
29
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
30
30
|
WorkflowJsonOutputMarker,
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromptComponent,
|
|
3
3
|
PromptStore
|
|
4
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "./shared/@ai-setting/roy-agent-core-cxdnzn17.js";
|
|
5
5
|
import {
|
|
6
6
|
LLMComponent,
|
|
7
7
|
LLMConfigSchema,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
BaseEnvironment,
|
|
64
64
|
generateDescendingId,
|
|
65
65
|
generateId
|
|
66
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
66
|
+
} from "./shared/@ai-setting/roy-agent-core-asp5p3zx.js";
|
|
67
67
|
import {
|
|
68
68
|
BountyIMInstance,
|
|
69
69
|
EventSourceComponent,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
larkCliHandler,
|
|
76
76
|
resolveBountyIMSystemPrompt,
|
|
77
77
|
timerHandler
|
|
78
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
78
|
+
} from "./shared/@ai-setting/roy-agent-core-q2bw3cwd.js";
|
|
79
79
|
import {
|
|
80
80
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
81
81
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -95,13 +95,13 @@ import {
|
|
|
95
95
|
import {
|
|
96
96
|
TaskTagPlugin,
|
|
97
97
|
createAutoTaskPlugin
|
|
98
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
98
|
+
} from "./shared/@ai-setting/roy-agent-core-q7rt3x8d.js";
|
|
99
99
|
import {
|
|
100
100
|
BasePlugin
|
|
101
101
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
102
102
|
import {
|
|
103
103
|
WorkflowComponent
|
|
104
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
104
|
+
} from "./shared/@ai-setting/roy-agent-core-06574wqa.js";
|
|
105
105
|
import {
|
|
106
106
|
init_node_registry_helper,
|
|
107
107
|
registerDecoratorNodeType
|
|
@@ -114,7 +114,7 @@ import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
|
114
114
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
115
115
|
import"./shared/@ai-setting/roy-agent-core-resnbd2j.js";
|
|
116
116
|
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
117
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
117
|
+
import"./shared/@ai-setting/roy-agent-core-mb7b62sm.js";
|
|
118
118
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
119
119
|
import"./shared/@ai-setting/roy-agent-core-p2vpsd1d.js";
|
|
120
120
|
import"./shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -130,7 +130,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
130
130
|
import {
|
|
131
131
|
AgentComponent,
|
|
132
132
|
AgentComponentConfigSchema
|
|
133
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
133
|
+
} from "./shared/@ai-setting/roy-agent-core-1bvv6s75.js";
|
|
134
134
|
import {
|
|
135
135
|
createInvokeConfig,
|
|
136
136
|
invoke,
|
|
@@ -149,30 +149,30 @@ import {
|
|
|
149
149
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
150
150
|
import {
|
|
151
151
|
TaskComponent
|
|
152
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
152
|
+
} from "./shared/@ai-setting/roy-agent-core-dntkpwqq.js";
|
|
153
153
|
import"./shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
154
154
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
155
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
155
|
+
import"./shared/@ai-setting/roy-agent-core-7a3gf3tw.js";
|
|
156
156
|
import"./shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
157
157
|
import {
|
|
158
158
|
SQLiteTaskStore,
|
|
159
159
|
getDefaultTaskDbPath
|
|
160
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
160
|
+
} from "./shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
161
161
|
import {
|
|
162
162
|
getBuiltInPrompt,
|
|
163
163
|
getBuiltInPromptNames
|
|
164
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-ms5dp89r.js";
|
|
165
165
|
import"./shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
166
166
|
import {
|
|
167
167
|
AgentRegistry
|
|
168
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
168
|
+
} from "./shared/@ai-setting/roy-agent-core-3bdpnmtg.js";
|
|
169
169
|
import {
|
|
170
170
|
XDG_PATHS,
|
|
171
171
|
getXDGPath,
|
|
172
172
|
getXDGPaths
|
|
173
173
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
174
174
|
import"./shared/@ai-setting/roy-agent-core-rpq0mcvv.js";
|
|
175
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
175
|
+
import"./shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
176
176
|
import {
|
|
177
177
|
TaskHookPoints
|
|
178
178
|
} from "./shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
createWorkflowSearchTool,
|
|
19
19
|
createWorkflowTagListTool,
|
|
20
20
|
createWorkflowValidateTool
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-mb7b62sm.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowService
|
|
24
24
|
} from "./roy-agent-core-p2vpsd1d.js";
|
|
@@ -217,7 +217,8 @@ class WorkflowComponent extends BaseComponent {
|
|
|
217
217
|
}
|
|
218
218
|
const lifecycleHooks = backgroundTaskManager ? {
|
|
219
219
|
attachWorkflowRun: (bgTaskId, runId) => backgroundTaskManager.attachWorkflowRun(bgTaskId, runId),
|
|
220
|
-
detachWorkflowRun: (bgTaskId, runId) => backgroundTaskManager.detachWorkflowRun(bgTaskId, runId)
|
|
220
|
+
detachWorkflowRun: (bgTaskId, runId) => backgroundTaskManager.detachWorkflowRun(bgTaskId, runId),
|
|
221
|
+
replaceWorkflowRun: (bgTaskId, oldRunId, newRunId) => backgroundTaskManager.replaceWorkflowRun(bgTaskId, oldRunId, newRunId)
|
|
221
222
|
} : undefined;
|
|
222
223
|
const tools = [
|
|
223
224
|
createWorkflowGetTool(this.workflowService),
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-e25xkv53.js";
|
|
11
11
|
import {
|
|
12
12
|
AgentRegistry
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-3bdpnmtg.js";
|
|
14
14
|
import {
|
|
15
15
|
ContextError
|
|
16
16
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
@@ -365,6 +365,8 @@ class AgentComponent extends BaseComponent {
|
|
|
365
365
|
logger.info("[AgentComponent] Registered built-in workflow-runner");
|
|
366
366
|
this.registry.registerJsonExtractAgent();
|
|
367
367
|
logger.info("[AgentComponent] Registered built-in json-extract agent");
|
|
368
|
+
this.registry.registerWorkflowCreator();
|
|
369
|
+
logger.info("[AgentComponent] Registered built-in workflow-creator");
|
|
368
370
|
this.registry.registerWorkflowExtractAgent();
|
|
369
371
|
logger.info("[AgentComponent] Registered built-in workflow-extract agent");
|
|
370
372
|
this.registry.registerCompactAgent();
|
|
@@ -216,6 +216,28 @@ class AgentRegistry {
|
|
|
216
216
|
};
|
|
217
217
|
this.agents.set(name, agent);
|
|
218
218
|
}
|
|
219
|
+
registerWorkflowCreator() {
|
|
220
|
+
const name = "workflow-creator";
|
|
221
|
+
if (this.agents.has(name))
|
|
222
|
+
return;
|
|
223
|
+
const agent = {
|
|
224
|
+
name,
|
|
225
|
+
type: "sub",
|
|
226
|
+
description: "Workflow 构建子智能体 — 与用户多轮交互式协作设计、验证并注册 workflow",
|
|
227
|
+
systemPromptRef: "workflow-creator",
|
|
228
|
+
allowedTools: [
|
|
229
|
+
"workflow_list",
|
|
230
|
+
"workflow_get",
|
|
231
|
+
"workflow_search",
|
|
232
|
+
"workflow_tag_list",
|
|
233
|
+
"workflow_validate",
|
|
234
|
+
"workflow_add"
|
|
235
|
+
],
|
|
236
|
+
deniedTools: ["delegate_task", "stop_task"],
|
|
237
|
+
maxIterations: 30
|
|
238
|
+
};
|
|
239
|
+
this.agents.set(name, agent);
|
|
240
|
+
}
|
|
219
241
|
registerCompactAgent() {
|
|
220
242
|
const name = "compact";
|
|
221
243
|
if (this.agents.has(name))
|
|
@@ -430,6 +452,13 @@ __legacyDecorateClassTS([
|
|
|
430
452
|
log: true
|
|
431
453
|
})
|
|
432
454
|
], AgentRegistry.prototype, "registerWorkflowRunner", null);
|
|
455
|
+
__legacyDecorateClassTS([
|
|
456
|
+
TracedAs("agent.registry.registerWorkflowCreator", {
|
|
457
|
+
recordParams: false,
|
|
458
|
+
recordResult: true,
|
|
459
|
+
log: true
|
|
460
|
+
})
|
|
461
|
+
], AgentRegistry.prototype, "registerWorkflowCreator", null);
|
|
433
462
|
__legacyDecorateClassTS([
|
|
434
463
|
TracedAs("agent.registry.load", { recordParams: false, recordResult: true, log: true })
|
|
435
464
|
], AgentRegistry.prototype, "load", null);
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-pzeexnhf.js";
|
|
5
5
|
import {
|
|
6
6
|
builtInPrompts
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-ms5dp89r.js";
|
|
8
8
|
import {
|
|
9
9
|
runWithBgTaskIdAsync
|
|
10
10
|
} from "./roy-agent-core-c1v263jn.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_SUBAGENT_PROMPT
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-3bdpnmtg.js";
|
|
14
14
|
import {
|
|
15
15
|
TaskHookPoints
|
|
16
16
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -296,24 +296,48 @@ class BackgroundTaskManager {
|
|
|
296
296
|
detachWorkflowRun(bgTaskId, workflowRunId) {
|
|
297
297
|
this.workflowRunRegistries.get(bgTaskId)?.delete(workflowRunId);
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
replaceWorkflowRun(bgTaskId, oldRunId, newRunId) {
|
|
300
|
+
if (!bgTaskId)
|
|
301
|
+
return;
|
|
300
302
|
const set = this.workflowRunRegistries.get(bgTaskId);
|
|
301
|
-
if (!set
|
|
303
|
+
if (!set)
|
|
302
304
|
return;
|
|
305
|
+
if (oldRunId) {
|
|
306
|
+
set.delete(oldRunId);
|
|
307
|
+
}
|
|
308
|
+
if (newRunId) {
|
|
309
|
+
set.add(newRunId);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
async propagateStopToWorkflowRuns(bgTaskId, reason) {
|
|
313
|
+
const set = this.workflowRunRegistries.get(bgTaskId);
|
|
314
|
+
if (!set || set.size === 0) {
|
|
315
|
+
return { runIds: [], stopResults: [] };
|
|
316
|
+
}
|
|
303
317
|
const runIds = Array.from(set);
|
|
304
318
|
logger.info(`[BackgroundTaskManager] propagateStopToWorkflowRuns count=${runIds.length} bgTaskId=${bgTaskId}`);
|
|
319
|
+
const stopResults = [];
|
|
305
320
|
for (const runId of runIds) {
|
|
306
321
|
if (typeof this.workflowService?.stopRun !== "function") {
|
|
307
322
|
logger.warn(`[BackgroundTaskManager] workflowService not injected; cannot stop ${runId}`);
|
|
323
|
+
stopResults.push({
|
|
324
|
+
runId,
|
|
325
|
+
success: false,
|
|
326
|
+
error: "workflowService not injected"
|
|
327
|
+
});
|
|
308
328
|
continue;
|
|
309
329
|
}
|
|
310
330
|
try {
|
|
311
331
|
await this.workflowService.stopRun(runId, reason);
|
|
332
|
+
stopResults.push({ runId, success: true });
|
|
312
333
|
} catch (err) {
|
|
313
|
-
|
|
334
|
+
const errMsg = err instanceof Error ? err.message : String(err);
|
|
335
|
+
logger.warn(`[BackgroundTaskManager] workflowService.stopRun(${runId}) failed (likely already terminal): ${errMsg}`);
|
|
336
|
+
stopResults.push({ runId, success: false, error: errMsg });
|
|
314
337
|
}
|
|
315
338
|
}
|
|
316
339
|
set.clear();
|
|
340
|
+
return { runIds, stopResults };
|
|
317
341
|
}
|
|
318
342
|
static DEFAULT_WORKFLOW_ENTRY_AGENT = "workflow-runner";
|
|
319
343
|
resolveEntryAgent(subagentType) {
|
|
@@ -758,7 +782,7 @@ Use these as guidance to improve task execution efficiency.`;
|
|
|
758
782
|
error: err instanceof Error ? err.message : String(err)
|
|
759
783
|
});
|
|
760
784
|
}
|
|
761
|
-
await this.propagateStopToWorkflowRuns(taskId, "Task stopped by user");
|
|
785
|
+
const { runIds, stopResults } = await this.propagateStopToWorkflowRuns(taskId, "Task stopped by user");
|
|
762
786
|
const stoppedPayload = {
|
|
763
787
|
backgroundTaskId: task.id,
|
|
764
788
|
subSessionId: task.subSessionId,
|
|
@@ -770,7 +794,13 @@ Use these as guidance to improve task execution efficiency.`;
|
|
|
770
794
|
associatedTaskId: task.associatedTaskId
|
|
771
795
|
};
|
|
772
796
|
this.publishBackgroundEvent(BackgroundTaskEventTypes.STOPPED, stoppedPayload, task.parentSessionId);
|
|
773
|
-
return {
|
|
797
|
+
return {
|
|
798
|
+
success: true,
|
|
799
|
+
task,
|
|
800
|
+
message: "Task has been stopped",
|
|
801
|
+
attached_workflow_run_ids: runIds,
|
|
802
|
+
workflow_stop_results: stopResults
|
|
803
|
+
};
|
|
774
804
|
}
|
|
775
805
|
getTask(taskId) {
|
|
776
806
|
return this.tasks.get(taskId);
|
|
@@ -817,11 +847,18 @@ __legacyDecorateClassTS([
|
|
|
817
847
|
})
|
|
818
848
|
], BackgroundTaskManager.prototype, "detachWorkflowRun", null);
|
|
819
849
|
__legacyDecorateClassTS([
|
|
820
|
-
TracedAs("task.background.
|
|
850
|
+
TracedAs("task.background.replaceWorkflowRun", {
|
|
821
851
|
recordParams: true,
|
|
822
852
|
recordResult: false,
|
|
823
853
|
log: true
|
|
824
854
|
})
|
|
855
|
+
], BackgroundTaskManager.prototype, "replaceWorkflowRun", null);
|
|
856
|
+
__legacyDecorateClassTS([
|
|
857
|
+
TracedAs("task.background.propagateStopToWorkflowRuns", {
|
|
858
|
+
recordParams: true,
|
|
859
|
+
recordResult: true,
|
|
860
|
+
log: true
|
|
861
|
+
})
|
|
825
862
|
], BackgroundTaskManager.prototype, "propagateStopToWorkflowRuns", null);
|
|
826
863
|
__legacyDecorateClassTS([
|
|
827
864
|
TracedAs("task.background.resolveEntryAgent", { recordParams: true, recordResult: true })
|