@ai-setting/roy-agent-core 1.6.0 → 1.6.2
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 +14 -13
- package/dist/env/prompt/index.js +2 -2
- package/dist/env/task/delegate/index.js +2 -2
- package/dist/env/task/index.js +4 -3
- package/dist/env/task/plugins/index.js +2 -2
- package/dist/env/tool/built-in/index.js +7 -1
- package/dist/env/tool/index.js +3 -2
- package/dist/env/workflow/engine/index.js +3 -3
- package/dist/env/workflow/index.js +5 -5
- package/dist/env/workflow/nodes/index.js +1 -1
- package/dist/env/workflow/tools/index.js +1 -1
- package/dist/index.js +16 -15
- package/dist/shared/@ai-setting/{roy-agent-core-skfr9wjk.js → roy-agent-core-1k7z350s.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-q79q54x2.js → roy-agent-core-2t2n1epb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fzkfkd28.js → roy-agent-core-47py6rej.js} +37 -17
- package/dist/shared/@ai-setting/{roy-agent-core-a8pm6hya.js → roy-agent-core-6kygfd9x.js} +9 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8cwb4fmp.js → roy-agent-core-9378eq5y.js} +139 -4
- package/dist/shared/@ai-setting/{roy-agent-core-vrn9qj8y.js → roy-agent-core-97x9ymda.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-amkqnyzy.js +145 -0
- package/dist/shared/@ai-setting/{roy-agent-core-9gde0s9d.js → roy-agent-core-ba6243hr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2vhsccvz.js → roy-agent-core-caevk7xd.js} +10 -0
- package/dist/shared/@ai-setting/{roy-agent-core-84ex7khq.js → roy-agent-core-ekptge19.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-8cezq5x9.js → roy-agent-core-gexpbexm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-415rxkzy.js → roy-agent-core-gzzvcmg3.js} +54 -20
- package/dist/shared/@ai-setting/{roy-agent-core-84aqc5c0.js → roy-agent-core-j25z80xr.js} +15 -1
- package/dist/shared/@ai-setting/{roy-agent-core-npkwftxj.js → roy-agent-core-r3209bcd.js} +5 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mnc0hy7j.js → roy-agent-core-te3hf26b.js} +17 -6
- package/dist/shared/@ai-setting/{roy-agent-core-q8n1s1pb.js → roy-agent-core-vf72n6qn.js} +4 -1
- package/dist/shared/@ai-setting/{roy-agent-core-txk4gcwm.js → roy-agent-core-xnga0ksx.js} +9 -4
- package/dist/shared/@ai-setting/{roy-agent-core-57bmm0a1.js → roy-agent-core-y1m7c2v7.js} +1 -1
- package/package.json +1 -1
package/dist/env/agent/index.js
CHANGED
|
@@ -2,9 +2,9 @@ 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-47py6rej.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-6kygfd9x.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-as3phr7n.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-2t2n1epb.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-wmkx79b1.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-gexpbexm.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-9378eq5y.js";
|
|
29
29
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-pf1c360e.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-97x9ymda.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-2t2n1epb.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,21 +17,21 @@ import"../shared/@ai-setting/roy-agent-core-wmkx79b1.js";
|
|
|
17
17
|
import {
|
|
18
18
|
PluginComponent
|
|
19
19
|
} from "../shared/@ai-setting/roy-agent-core-z7dxedn6.js";
|
|
20
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-gexpbexm.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-ekptge19.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-xgnpr28w.js";
|
|
26
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
26
|
+
import"../shared/@ai-setting/roy-agent-core-gzzvcmg3.js";
|
|
27
27
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
28
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
28
|
+
import"../shared/@ai-setting/roy-agent-core-vf72n6qn.js";
|
|
29
29
|
import"../shared/@ai-setting/roy-agent-core-q88vxmx5.js";
|
|
30
30
|
import"../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
32
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
32
|
+
import"../shared/@ai-setting/roy-agent-core-ba6243hr.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-xnga0ksx.js";
|
|
35
35
|
import"../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
36
36
|
import"../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
37
37
|
import"../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -41,19 +41,20 @@ 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-47py6rej.js";
|
|
45
45
|
import"../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
46
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
46
|
+
import"../shared/@ai-setting/roy-agent-core-6kygfd9x.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-j25z80xr.js";
|
|
52
|
+
import"../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
52
53
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
53
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
54
|
+
import"../shared/@ai-setting/roy-agent-core-te3hf26b.js";
|
|
54
55
|
import"../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
55
56
|
import"../shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
56
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
57
|
+
import"../shared/@ai-setting/roy-agent-core-9378eq5y.js";
|
|
57
58
|
import"../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
58
59
|
import {
|
|
59
60
|
XDG_PATHS,
|
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-1k7z350s.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-9378eq5y.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-pf1c360e.js";
|
|
@@ -3,9 +3,9 @@ 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-te3hf26b.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-9378eq5y.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -5,17 +5,18 @@ 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-j25z80xr.js";
|
|
9
|
+
import"../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
9
10
|
import {
|
|
10
11
|
TaskEntityEventTypes
|
|
11
12
|
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
12
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../shared/@ai-setting/roy-agent-core-te3hf26b.js";
|
|
13
14
|
import"../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
14
15
|
import {
|
|
15
16
|
SQLiteTaskStore,
|
|
16
17
|
getDefaultTaskDbPath
|
|
17
18
|
} from "../../shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-9378eq5y.js";
|
|
19
20
|
import"../../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
20
21
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
21
22
|
import"../../shared/@ai-setting/roy-agent-core-0ye4q2jj.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-gexpbexm.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-9378eq5y.js";
|
|
16
16
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
17
17
|
import"../../../shared/@ai-setting/roy-agent-core-zttjq1h3.js";
|
|
18
18
|
import"../../../shared/@ai-setting/roy-agent-core-scp0afxg.js";
|
|
@@ -8,13 +8,17 @@ import {
|
|
|
8
8
|
grepTool,
|
|
9
9
|
readFileTool,
|
|
10
10
|
writeFileTool
|
|
11
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-r3209bcd.js";
|
|
12
12
|
import {
|
|
13
13
|
getUnderstandImageLLMProvider,
|
|
14
14
|
resetUnderstandImageLLMProvider,
|
|
15
15
|
setUnderstandImageLLMProvider,
|
|
16
16
|
understandImageTool
|
|
17
17
|
} from "../../../shared/@ai-setting/roy-agent-core-t7rw68q8.js";
|
|
18
|
+
import {
|
|
19
|
+
createQueryBackgroundProcessTool,
|
|
20
|
+
queryBackgroundProcessTool
|
|
21
|
+
} from "../../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
18
22
|
import"../../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
19
23
|
import"../../../shared/@ai-setting/roy-agent-core-cg146hmg.js";
|
|
20
24
|
import"../../../shared/@ai-setting/roy-agent-core-vyygk314.js";
|
|
@@ -27,6 +31,7 @@ export {
|
|
|
27
31
|
setUnderstandImageLLMProvider,
|
|
28
32
|
resetUnderstandImageLLMProvider,
|
|
29
33
|
readFileTool,
|
|
34
|
+
queryBackgroundProcessTool,
|
|
30
35
|
grepTool,
|
|
31
36
|
globTool,
|
|
32
37
|
getUnderstandImageLLMProvider,
|
|
@@ -34,5 +39,6 @@ export {
|
|
|
34
39
|
getAllBuiltInTools,
|
|
35
40
|
editFileTool,
|
|
36
41
|
echoTool,
|
|
42
|
+
createQueryBackgroundProcessTool,
|
|
37
43
|
bashTool
|
|
38
44
|
};
|
package/dist/env/tool/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
grepTool,
|
|
10
10
|
readFileTool,
|
|
11
11
|
writeFileTool
|
|
12
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
12
|
+
} from "../../shared/@ai-setting/roy-agent-core-r3209bcd.js";
|
|
13
13
|
import {
|
|
14
14
|
getUnderstandImageLLMProvider,
|
|
15
15
|
resetUnderstandImageLLMProvider,
|
|
@@ -22,9 +22,10 @@ import {
|
|
|
22
22
|
ToolValidator,
|
|
23
23
|
getMaxOutputSize,
|
|
24
24
|
setToolConfigComponent
|
|
25
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
25
|
+
} from "../../shared/@ai-setting/roy-agent-core-6kygfd9x.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
28
29
|
import"../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
29
30
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
30
31
|
import"../../shared/@ai-setting/roy-agent-core-pf1c360e.js";
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
Scheduler,
|
|
6
6
|
WorkflowEngine,
|
|
7
7
|
init_engine
|
|
8
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-gzzvcmg3.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
10
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-vf72n6qn.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-q88vxmx5.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
13
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-ba6243hr.js";
|
|
14
14
|
import"../../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
15
15
|
import"../../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
16
16
|
import {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-ekptge19.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-xgnpr28w.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-gzzvcmg3.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-vf72n6qn.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-q88vxmx5.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
11
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
import"../../shared/@ai-setting/roy-agent-core-ba6243hr.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseEventSchema,
|
|
14
14
|
ControlPauseEventSchema,
|
|
@@ -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-xnga0ksx.js";
|
|
64
64
|
import"../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
65
65
|
import"../../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
66
66
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
init_skill_node,
|
|
6
6
|
init_tool_node,
|
|
7
7
|
init_workflow_node
|
|
8
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-ba6243hr.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-cg146hmg.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-vyygk314.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.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-xnga0ksx.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-1k7z350s.js";
|
|
5
5
|
import {
|
|
6
6
|
LLMComponent,
|
|
7
7
|
LLMConfigSchema,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
grepTool,
|
|
27
27
|
readFileTool,
|
|
28
28
|
writeFileTool
|
|
29
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
29
|
+
} from "./shared/@ai-setting/roy-agent-core-r3209bcd.js";
|
|
30
30
|
import {
|
|
31
31
|
ATTACH_FILE_MAX_BYTES,
|
|
32
32
|
getUnderstandImageLLMProvider,
|
|
@@ -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-97x9ymda.js";
|
|
66
66
|
import {
|
|
67
67
|
BountyIMInstance,
|
|
68
68
|
EventSourceComponent,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
larkCliHandler,
|
|
75
75
|
resolveBountyIMSystemPrompt,
|
|
76
76
|
timerHandler
|
|
77
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
77
|
+
} from "./shared/@ai-setting/roy-agent-core-2t2n1epb.js";
|
|
78
78
|
import {
|
|
79
79
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
80
80
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -94,26 +94,26 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
TaskTagPlugin,
|
|
96
96
|
createAutoTaskPlugin
|
|
97
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
97
|
+
} from "./shared/@ai-setting/roy-agent-core-gexpbexm.js";
|
|
98
98
|
import {
|
|
99
99
|
BasePlugin
|
|
100
100
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
101
101
|
import {
|
|
102
102
|
WorkflowComponent
|
|
103
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
103
|
+
} from "./shared/@ai-setting/roy-agent-core-ekptge19.js";
|
|
104
104
|
import {
|
|
105
105
|
init_node_registry_helper,
|
|
106
106
|
registerDecoratorNodeType
|
|
107
107
|
} from "./shared/@ai-setting/roy-agent-core-xgnpr28w.js";
|
|
108
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
108
|
+
import"./shared/@ai-setting/roy-agent-core-gzzvcmg3.js";
|
|
109
109
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
110
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
110
|
+
import"./shared/@ai-setting/roy-agent-core-vf72n6qn.js";
|
|
111
111
|
import"./shared/@ai-setting/roy-agent-core-q88vxmx5.js";
|
|
112
112
|
import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
113
113
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
114
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
114
|
+
import"./shared/@ai-setting/roy-agent-core-ba6243hr.js";
|
|
115
115
|
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
116
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
116
|
+
import"./shared/@ai-setting/roy-agent-core-xnga0ksx.js";
|
|
117
117
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
118
118
|
import"./shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
119
119
|
import"./shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
@@ -129,7 +129,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
129
129
|
import {
|
|
130
130
|
AgentComponent,
|
|
131
131
|
AgentComponentConfigSchema
|
|
132
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
132
|
+
} from "./shared/@ai-setting/roy-agent-core-47py6rej.js";
|
|
133
133
|
import {
|
|
134
134
|
createInvokeConfig,
|
|
135
135
|
invoke,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
ToolComponent,
|
|
141
141
|
ToolRegistry,
|
|
142
142
|
ToolValidator
|
|
143
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
143
|
+
} from "./shared/@ai-setting/roy-agent-core-6kygfd9x.js";
|
|
144
144
|
import"./shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
145
145
|
import {
|
|
146
146
|
AskUserError,
|
|
@@ -148,9 +148,10 @@ import {
|
|
|
148
148
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
149
149
|
import {
|
|
150
150
|
TaskComponent
|
|
151
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
151
|
+
} from "./shared/@ai-setting/roy-agent-core-j25z80xr.js";
|
|
152
|
+
import"./shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
152
153
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
153
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
154
|
+
import"./shared/@ai-setting/roy-agent-core-te3hf26b.js";
|
|
154
155
|
import"./shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
155
156
|
import {
|
|
156
157
|
SQLiteTaskStore,
|
|
@@ -159,7 +160,7 @@ import {
|
|
|
159
160
|
import {
|
|
160
161
|
getBuiltInPrompt,
|
|
161
162
|
getBuiltInPromptNames
|
|
162
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
163
|
+
} from "./shared/@ai-setting/roy-agent-core-9378eq5y.js";
|
|
163
164
|
import {
|
|
164
165
|
AgentRegistry
|
|
165
166
|
} from "./shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-j7jeqxhd.js";
|
|
4
4
|
import {
|
|
5
5
|
truncateOutputInline
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-6kygfd9x.js";
|
|
7
7
|
import {
|
|
8
8
|
AskUserError,
|
|
9
9
|
init_workflow_hil
|
|
@@ -202,6 +202,16 @@ var AgentInstanceSchema = z.object({
|
|
|
202
202
|
var AgentComponentConfigSchema = z.object({
|
|
203
203
|
defaultAgent: AgentInstanceSchema
|
|
204
204
|
});
|
|
205
|
+
function filterToolsByAgent(tools, agent) {
|
|
206
|
+
if (!tools?.length)
|
|
207
|
+
return tools ?? [];
|
|
208
|
+
return tools.filter((t) => {
|
|
209
|
+
const allowedList = t.metadata?.allowedAgentTypes;
|
|
210
|
+
if (!allowedList || allowedList.length === 0)
|
|
211
|
+
return true;
|
|
212
|
+
return allowedList.includes(agent.name);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
205
215
|
|
|
206
216
|
class AgentComponent extends BaseComponent {
|
|
207
217
|
name = "agent";
|
|
@@ -552,15 +562,18 @@ class AgentComponent extends BaseComponent {
|
|
|
552
562
|
this.defaultTools = tools;
|
|
553
563
|
}
|
|
554
564
|
getAvailableTools(agent, context) {
|
|
555
|
-
let tools = [...this.defaultTools];
|
|
556
|
-
logger.debug(`[getAvailableTools] After defaultTools: ${tools.length} tools`, {
|
|
565
|
+
let tools = filterToolsByAgent([...this.defaultTools], agent);
|
|
566
|
+
logger.debug(`[getAvailableTools] After defaultTools (filtered): ${tools.length} tools`, {
|
|
557
567
|
toolNames: tools.map((t) => t.name)
|
|
558
568
|
});
|
|
559
569
|
if (this.toolComponent?.listTools) {
|
|
560
|
-
const componentTools = this.toolComponent.listTools(
|
|
561
|
-
|
|
570
|
+
const componentTools = this.toolComponent.listTools({
|
|
571
|
+
allowedAgent: agent.name
|
|
572
|
+
});
|
|
573
|
+
const filteredComponentTools = filterToolsByAgent(componentTools, agent);
|
|
574
|
+
tools = [...tools, ...filteredComponentTools];
|
|
562
575
|
logger.debug(`[getAvailableTools] After adding componentTools: ${tools.length} tools`, {
|
|
563
|
-
componentToolNames:
|
|
576
|
+
componentToolNames: filteredComponentTools.map((t) => t.name)
|
|
564
577
|
});
|
|
565
578
|
}
|
|
566
579
|
const allowedTools = context?.allowedTools ?? agent.config.allowedTools;
|
|
@@ -579,9 +592,10 @@ class AgentComponent extends BaseComponent {
|
|
|
579
592
|
});
|
|
580
593
|
}
|
|
581
594
|
if (context?.extraTools?.length) {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
595
|
+
const filteredExtraTools = filterToolsByAgent(context.extraTools, agent);
|
|
596
|
+
tools = [...tools, ...filteredExtraTools];
|
|
597
|
+
logger.debug(`[getAvailableTools] After extraTools (filtered): ${tools.length} tools`, {
|
|
598
|
+
extraToolNames: filteredExtraTools.map((t) => t.name)
|
|
585
599
|
});
|
|
586
600
|
}
|
|
587
601
|
logger.debug(`[getAvailableTools] Final tools: ${tools.length}`, {
|
|
@@ -739,6 +753,8 @@ class AgentComponent extends BaseComponent {
|
|
|
739
753
|
this.doomLoopCaches.set(runId, new Map);
|
|
740
754
|
hookCtx.currentToolCall = undefined;
|
|
741
755
|
hookCtx.maxIterations = agent.config.maxIterations;
|
|
756
|
+
let iterAllToolCalls = [];
|
|
757
|
+
let iterProcessedCount = 0;
|
|
742
758
|
try {
|
|
743
759
|
logger.debug(`[ReAct] Iteration ${iteration} buildMessages result: ${hookCtx.messages.length} messages`);
|
|
744
760
|
await this.executePluginHooks(agent, "agent:before.llm", hookCtx);
|
|
@@ -830,13 +846,13 @@ class AgentComponent extends BaseComponent {
|
|
|
830
846
|
role: "assistant",
|
|
831
847
|
content: assistantParts
|
|
832
848
|
});
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
for (const toolCall of
|
|
849
|
+
iterAllToolCalls = llmOutput.toolCalls ?? [];
|
|
850
|
+
iterProcessedCount = 0;
|
|
851
|
+
for (const toolCall of iterAllToolCalls) {
|
|
836
852
|
if (this.aborted.get(runId) || effectiveContext.abort?.aborted) {
|
|
837
853
|
hookCtx._stopped = true;
|
|
838
854
|
hookCtx._stopReason = "aborted";
|
|
839
|
-
this.addRemainingToolResults(hookCtx,
|
|
855
|
+
this.addRemainingToolResults(hookCtx, iterAllToolCalls, iterProcessedCount, "Execution aborted");
|
|
840
856
|
break;
|
|
841
857
|
}
|
|
842
858
|
const func = toolCall.function;
|
|
@@ -854,21 +870,21 @@ class AgentComponent extends BaseComponent {
|
|
|
854
870
|
hookCtx.error = new Error(`Doom loop detected: ${tcName}`);
|
|
855
871
|
await this.executePluginHooks(agent, "on.error", hookCtx);
|
|
856
872
|
result.error = hookCtx.error.message;
|
|
857
|
-
this.addRemainingToolResults(hookCtx,
|
|
873
|
+
this.addRemainingToolResults(hookCtx, iterAllToolCalls, iterProcessedCount, "Execution aborted: Doom loop detected");
|
|
858
874
|
break;
|
|
859
875
|
}
|
|
860
876
|
agentCache.set(doomKey, doomCount + 1);
|
|
861
877
|
this.doomLoopCaches.set(runId, agentCache);
|
|
862
878
|
await this.executePluginHooks(agent, "agent:before.tool", hookCtx);
|
|
863
879
|
if (hookCtx._stopped) {
|
|
864
|
-
this.addRemainingToolResults(hookCtx,
|
|
880
|
+
this.addRemainingToolResults(hookCtx, iterAllToolCalls, iterProcessedCount, "Execution aborted by plugin hook");
|
|
865
881
|
break;
|
|
866
882
|
}
|
|
867
883
|
const toolResult = await this.executeTool(hookCtx);
|
|
868
884
|
hookCtx.toolResult = toolResult;
|
|
869
885
|
await this.executePluginHooks(agent, "agent:after.tool", hookCtx);
|
|
870
886
|
if (hookCtx._stopped) {
|
|
871
|
-
this.addRemainingToolResults(hookCtx,
|
|
887
|
+
this.addRemainingToolResults(hookCtx, iterAllToolCalls, iterProcessedCount + 1, "Execution aborted by plugin hook");
|
|
872
888
|
break;
|
|
873
889
|
}
|
|
874
890
|
const toolOutput = toolResult.success ? toolResult.result.output || "" : toolResult.result.error || "Unknown error";
|
|
@@ -895,7 +911,7 @@ class AgentComponent extends BaseComponent {
|
|
|
895
911
|
}
|
|
896
912
|
}
|
|
897
913
|
result.toolCalls.push(hookCtx.currentToolCall);
|
|
898
|
-
|
|
914
|
+
iterProcessedCount++;
|
|
899
915
|
}
|
|
900
916
|
await this.executePluginHooks(agent, "agent:on.iteration", hookCtx);
|
|
901
917
|
}
|
|
@@ -1002,6 +1018,10 @@ class AgentComponent extends BaseComponent {
|
|
|
1002
1018
|
});
|
|
1003
1019
|
}
|
|
1004
1020
|
}
|
|
1021
|
+
if (iterAllToolCalls.length > 0 && iterProcessedCount + 1 < iterAllToolCalls.length) {
|
|
1022
|
+
const orphanReason = error instanceof AskUserError ? "ask_user: tool execution aborted (user did not respond or session resumed before answering)" : `Execution aborted by tool error: ${error instanceof Error ? error.message : String(error)}`;
|
|
1023
|
+
this.addRemainingToolResults(hookCtx, iterAllToolCalls, iterProcessedCount + 1, orphanReason);
|
|
1024
|
+
}
|
|
1005
1025
|
} else {
|
|
1006
1026
|
result.error = hookCtx.error.message;
|
|
1007
1027
|
if (hookCtx.currentToolCall) {
|
|
@@ -68,6 +68,15 @@ class ToolRegistry {
|
|
|
68
68
|
if (filter.exclude && filter.exclude.length > 0) {
|
|
69
69
|
tools = tools.filter((r) => !filter.exclude.includes(r.tool.name));
|
|
70
70
|
}
|
|
71
|
+
if (filter.allowedAgent !== undefined) {
|
|
72
|
+
const agentName = filter.allowedAgent;
|
|
73
|
+
tools = tools.filter((r) => {
|
|
74
|
+
const allowedList = r.tool.metadata?.allowedAgentTypes;
|
|
75
|
+
if (!allowedList || allowedList.length === 0)
|
|
76
|
+
return true;
|
|
77
|
+
return allowedList.includes(agentName);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
71
80
|
return tools.map((r) => r.tool);
|
|
72
81
|
}
|
|
73
82
|
has(name) {
|