@ai-setting/roy-agent-core 1.6.12 → 1.6.13
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 +3 -3
- package/dist/env/event-source/index.js +5 -5
- package/dist/env/index.js +17 -17
- package/dist/env/prompt/index.js +2 -2
- package/dist/env/task/delegate/index.js +4 -4
- package/dist/env/task/index.js +5 -5
- package/dist/env/task/plugins/index.js +4 -4
- package/dist/env/tool/built-in/index.js +2 -2
- package/dist/env/tool/index.js +3 -3
- package/dist/env/workflow/engine/index.js +3 -3
- package/dist/env/workflow/index.js +7 -7
- package/dist/env/workflow/service/index.js +1 -1
- package/dist/env/workflow/tools/index.js +4 -4
- package/dist/env/workflow/utils/index.js +2 -2
- package/dist/index.js +130 -19
- package/dist/shared/@ai-setting/{roy-agent-core-0n2a8cbn.js → roy-agent-core-0crh2g0m.js} +594 -237
- package/dist/shared/@ai-setting/{roy-agent-core-asp5p3zx.js → roy-agent-core-0pbmweh4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jenchn33.js → roy-agent-core-24rmf17n.js} +8 -0
- package/dist/shared/@ai-setting/{roy-agent-core-q2bw3cwd.js → roy-agent-core-2b4078kz.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-z7f8hyv7.js → roy-agent-core-6jqpdjr4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cxdnzn17.js → roy-agent-core-6qbyfzsw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mb7b62sm.js → roy-agent-core-8cbsjkkx.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ms5dp89r.js → roy-agent-core-apz6v22z.js} +81 -40
- package/dist/shared/@ai-setting/{roy-agent-core-q7rt3x8d.js → roy-agent-core-deqpzcg7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1bvv6s75.js → roy-agent-core-fvkyv5j6.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-dntkpwqq.js → roy-agent-core-fwxqevpf.js} +4 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pzeexnhf.js → roy-agent-core-nv4yfy3m.js} +4 -3
- package/dist/shared/@ai-setting/{roy-agent-core-3bdpnmtg.js → roy-agent-core-v5nknfh0.js} +1 -8
- package/dist/shared/@ai-setting/{roy-agent-core-06574wqa.js → roy-agent-core-v77pp20w.js} +4 -4
- package/dist/shared/@ai-setting/roy-agent-core-vcjq65nz.js +436 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8wd3qwx5.js → roy-agent-core-wjve1qr5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7a3gf3tw.js → roy-agent-core-wpw37qqf.js} +88 -3
- package/dist/shared/@ai-setting/{roy-agent-core-p6x6n3k4.js → roy-agent-core-x7fgze6s.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-p2vpsd1d.js → roy-agent-core-ywtmc0bh.js} +166 -6
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-4yq23m5g.js +0 -421
- /package/dist/shared/@ai-setting/{roy-agent-core-zs31w092.js → roy-agent-core-9nhwdq9r.js} +0 -0
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-fvkyv5j6.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-dcd1s7ct.js";
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-9nhwdq9r.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-v5nknfh0.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-2b4078kz.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-deqpzcg7.js";
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
26
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
27
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
28
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
26
|
+
import"../../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
27
|
+
import"../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
28
|
+
import"../../shared/@ai-setting/roy-agent-core-apz6v22z.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-0pbmweh4.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-2b4078kz.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,46 +17,46 @@ 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-deqpzcg7.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-v77pp20w.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-htjag2nr.js";
|
|
26
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
26
|
+
import"../shared/@ai-setting/roy-agent-core-0crh2g0m.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-24rmf17n.js";
|
|
29
29
|
import"../shared/@ai-setting/roy-agent-core-w22tzjj5.js";
|
|
30
30
|
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-8cbsjkkx.js";
|
|
35
35
|
import"../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
36
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
37
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
38
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
36
|
+
import"../shared/@ai-setting/roy-agent-core-ywtmc0bh.js";
|
|
37
|
+
import"../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
38
|
+
import"../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
39
39
|
import"../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
40
40
|
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-fvkyv5j6.js";
|
|
45
45
|
import"../shared/@ai-setting/roy-agent-core-dcd1s7ct.js";
|
|
46
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
46
|
+
import"../shared/@ai-setting/roy-agent-core-9nhwdq9r.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-fwxqevpf.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-
|
|
55
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
54
|
+
import"../shared/@ai-setting/roy-agent-core-wpw37qqf.js";
|
|
55
|
+
import"../shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
56
56
|
import"../shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
57
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
57
|
+
import"../shared/@ai-setting/roy-agent-core-apz6v22z.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-v5nknfh0.js";
|
|
60
60
|
import {
|
|
61
61
|
XDG_PATHS,
|
|
62
62
|
getXDGPath,
|
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-6qbyfzsw.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-apz6v22z.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-
|
|
7
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-wpw37qqf.js";
|
|
7
|
+
import"../../../shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
8
|
+
import"../../../shared/@ai-setting/roy-agent-core-apz6v22z.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-v5nknfh0.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,20 +5,20 @@ 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-fwxqevpf.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-
|
|
14
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../shared/@ai-setting/roy-agent-core-wpw37qqf.js";
|
|
14
|
+
import"../../shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
15
15
|
import {
|
|
16
16
|
SQLiteTaskStore,
|
|
17
17
|
getDefaultTaskDbPath
|
|
18
18
|
} from "../../shared/@ai-setting/roy-agent-core-9abv4ewh.js";
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-apz6v22z.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-v5nknfh0.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
23
23
|
import"../../shared/@ai-setting/roy-agent-core-rpq0mcvv.js";
|
|
24
24
|
import"../../shared/@ai-setting/roy-agent-core-rn57psp0.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-deqpzcg7.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
13
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
14
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
15
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-apz6v22z.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";
|
|
@@ -8,7 +8,7 @@ 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-x7fgze6s.js";
|
|
12
12
|
import {
|
|
13
13
|
getUnderstandImageLLMProvider,
|
|
14
14
|
resetUnderstandImageLLMProvider,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
createQueryBackgroundProcessTool,
|
|
20
20
|
queryBackgroundProcessTool
|
|
21
21
|
} from "../../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
22
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
22
|
+
import"../../../shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
23
23
|
import"../../../shared/@ai-setting/roy-agent-core-fdm579b1.js";
|
|
24
24
|
import"../../../shared/@ai-setting/roy-agent-core-vyygk314.js";
|
|
25
25
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
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-x7fgze6s.js";
|
|
13
13
|
import {
|
|
14
14
|
getUnderstandImageLLMProvider,
|
|
15
15
|
resetUnderstandImageLLMProvider,
|
|
@@ -22,11 +22,11 @@ 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-9nhwdq9r.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
28
28
|
import"../../shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
29
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
29
|
+
import"../../shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-j62bjagf.js";
|
|
32
32
|
import"../../shared/@ai-setting/roy-agent-core-r74v00c7.js";
|
|
@@ -5,9 +5,9 @@ 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-0crh2g0m.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-24rmf17n.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-w22tzjj5.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-resnbd2j.js";
|
|
@@ -15,7 +15,7 @@ import"../../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
|
15
15
|
import"../../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
16
16
|
import {
|
|
17
17
|
DAGManager
|
|
18
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
} from "../../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
19
19
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
20
20
|
import"../../../shared/@ai-setting/roy-agent-core-dbkkjmqz.js";
|
|
21
21
|
import"../../../shared/@ai-setting/roy-agent-core-9hqqhye6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-v77pp20w.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-htjag2nr.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-0crh2g0m.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-24rmf17n.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-w22tzjj5.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
@@ -60,11 +60,11 @@ 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-8cbsjkkx.js";
|
|
64
64
|
import"../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
65
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
66
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
67
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
65
|
+
import"../../shared/@ai-setting/roy-agent-core-ywtmc0bh.js";
|
|
66
|
+
import"../../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
67
|
+
import"../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
68
68
|
import {
|
|
69
69
|
Edge,
|
|
70
70
|
NodeAs,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "../../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
6
6
|
import {
|
|
7
7
|
WorkflowService
|
|
8
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-ywtmc0bh.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-fdm579b1.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-8cbsjkkx.js";
|
|
28
28
|
import {
|
|
29
29
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
30
30
|
WorkflowJsonOutputMarker,
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
init_submit_json_output_tool,
|
|
33
33
|
parseWorkflowJsonOutput
|
|
34
34
|
} from "../../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
35
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
36
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
37
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
35
|
+
import"../../../shared/@ai-setting/roy-agent-core-ywtmc0bh.js";
|
|
36
|
+
import"../../../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
37
|
+
import"../../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
38
38
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
39
39
|
import"../../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
40
40
|
import"../../../shared/@ai-setting/roy-agent-core-nw39k111.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
12
12
|
import {
|
|
13
13
|
validateWorkflowDefinition
|
|
14
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
15
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
14
|
+
} from "../../../shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
16
16
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
17
17
|
import {
|
|
18
18
|
TracedAs,
|
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-6qbyfzsw.js";
|
|
5
5
|
import {
|
|
6
6
|
LLMComponent,
|
|
7
7
|
LLMConfigSchema,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
grepTool,
|
|
28
28
|
readFileTool,
|
|
29
29
|
writeFileTool
|
|
30
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
30
|
+
} from "./shared/@ai-setting/roy-agent-core-x7fgze6s.js";
|
|
31
31
|
import {
|
|
32
32
|
ATTACH_FILE_MAX_BYTES,
|
|
33
33
|
getUnderstandImageLLMProvider,
|
|
@@ -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-0pbmweh4.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-2b4078kz.js";
|
|
79
79
|
import {
|
|
80
80
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
81
81
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -95,30 +95,30 @@ 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-deqpzcg7.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-v77pp20w.js";
|
|
105
105
|
import {
|
|
106
106
|
init_node_registry_helper,
|
|
107
107
|
registerDecoratorNodeType
|
|
108
108
|
} from "./shared/@ai-setting/roy-agent-core-htjag2nr.js";
|
|
109
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
109
|
+
import"./shared/@ai-setting/roy-agent-core-0crh2g0m.js";
|
|
110
110
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
111
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
111
|
+
import"./shared/@ai-setting/roy-agent-core-24rmf17n.js";
|
|
112
112
|
import"./shared/@ai-setting/roy-agent-core-w22tzjj5.js";
|
|
113
113
|
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-8cbsjkkx.js";
|
|
118
118
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
119
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
120
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
121
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
119
|
+
import"./shared/@ai-setting/roy-agent-core-ywtmc0bh.js";
|
|
120
|
+
import"./shared/@ai-setting/roy-agent-core-wjve1qr5.js";
|
|
121
|
+
import"./shared/@ai-setting/roy-agent-core-vcjq65nz.js";
|
|
122
122
|
import {
|
|
123
123
|
Edge,
|
|
124
124
|
NodeAs,
|
|
@@ -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-fvkyv5j6.js";
|
|
134
134
|
import {
|
|
135
135
|
createInvokeConfig,
|
|
136
136
|
invoke,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
ToolComponent,
|
|
142
142
|
ToolRegistry,
|
|
143
143
|
ToolValidator
|
|
144
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
144
|
+
} from "./shared/@ai-setting/roy-agent-core-9nhwdq9r.js";
|
|
145
145
|
import"./shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
146
146
|
import {
|
|
147
147
|
AskUserError,
|
|
@@ -149,11 +149,11 @@ 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-fwxqevpf.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-
|
|
156
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
155
|
+
import"./shared/@ai-setting/roy-agent-core-wpw37qqf.js";
|
|
156
|
+
import"./shared/@ai-setting/roy-agent-core-nv4yfy3m.js";
|
|
157
157
|
import {
|
|
158
158
|
SQLiteTaskStore,
|
|
159
159
|
getDefaultTaskDbPath
|
|
@@ -161,11 +161,11 @@ import {
|
|
|
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-apz6v22z.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-v5nknfh0.js";
|
|
169
169
|
import {
|
|
170
170
|
XDG_PATHS,
|
|
171
171
|
getXDGPath,
|
|
@@ -223,6 +223,7 @@ import {
|
|
|
223
223
|
Traced,
|
|
224
224
|
TracedAs,
|
|
225
225
|
TracedLightweight,
|
|
226
|
+
init_decorator,
|
|
226
227
|
wrapFunction
|
|
227
228
|
} from "./shared/@ai-setting/roy-agent-core-fdm579b1.js";
|
|
228
229
|
import {
|
|
@@ -230,6 +231,7 @@ import {
|
|
|
230
231
|
getLogDir,
|
|
231
232
|
getLogLevel,
|
|
232
233
|
getLogLevels,
|
|
234
|
+
init_logger,
|
|
233
235
|
isQuietMode,
|
|
234
236
|
setConfigComponent,
|
|
235
237
|
setLogDirOverride,
|
|
@@ -247,6 +249,114 @@ import {
|
|
|
247
249
|
SQLiteSpanStorage
|
|
248
250
|
} from "./shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
249
251
|
import"./shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
252
|
+
// src/env/session-tree-stopper.ts
|
|
253
|
+
init_decorator();
|
|
254
|
+
init_logger();
|
|
255
|
+
var logger = createLogger("SessionTreeStopper");
|
|
256
|
+
var inflightCascades = new Map;
|
|
257
|
+
async function safeStage(stage, fn, fallback, errors) {
|
|
258
|
+
try {
|
|
259
|
+
return await fn();
|
|
260
|
+
} catch (err) {
|
|
261
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
262
|
+
const stack = err instanceof Error ? err.stack : undefined;
|
|
263
|
+
errors.push({ stage, error: msg, stack });
|
|
264
|
+
logger.warn(`[SessionTreeStopper] ${stage} failed: ${msg}`);
|
|
265
|
+
return fallback;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function cascadeStopSessionTreeImpl(env, parentSessionId, opts = {}) {
|
|
269
|
+
const force = !!opts.force;
|
|
270
|
+
if (!parentSessionId) {
|
|
271
|
+
return Promise.resolve({
|
|
272
|
+
stoppedTaskIds: [],
|
|
273
|
+
stoppedWorkflowSessionIds: [],
|
|
274
|
+
force: false,
|
|
275
|
+
errors: []
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
const existing = inflightCascades.get(parentSessionId);
|
|
279
|
+
if (existing) {
|
|
280
|
+
if (force)
|
|
281
|
+
existing.forceTriggered = true;
|
|
282
|
+
return existing.promise;
|
|
283
|
+
}
|
|
284
|
+
const state = {
|
|
285
|
+
promise: undefined,
|
|
286
|
+
forceTriggered: force,
|
|
287
|
+
firstCallForce: force
|
|
288
|
+
};
|
|
289
|
+
state.promise = (async () => {
|
|
290
|
+
const result = {
|
|
291
|
+
stoppedTaskIds: [],
|
|
292
|
+
stoppedWorkflowSessionIds: [],
|
|
293
|
+
force,
|
|
294
|
+
errors: []
|
|
295
|
+
};
|
|
296
|
+
if (!env) {
|
|
297
|
+
return result;
|
|
298
|
+
}
|
|
299
|
+
return runCascadeStages(env, parentSessionId, state, result);
|
|
300
|
+
})();
|
|
301
|
+
inflightCascades.set(parentSessionId, state);
|
|
302
|
+
state.promise.finally(() => {
|
|
303
|
+
inflightCascades.delete(parentSessionId);
|
|
304
|
+
});
|
|
305
|
+
return state.promise;
|
|
306
|
+
}
|
|
307
|
+
async function runCascadeStages(env, parentSessionId, state, result) {
|
|
308
|
+
const taskResult = await safeStage("task.stopAllForParent", async () => {
|
|
309
|
+
const taskComp = env.getComponent?.("task");
|
|
310
|
+
const legacyMgr = taskComp?.backgroundTaskManager;
|
|
311
|
+
const mgr = taskComp?.getBackgroundTaskManager?.() ?? (legacyMgr?.stopAllForParent ? legacyMgr : undefined);
|
|
312
|
+
if (!mgr || typeof mgr.stopAllForParent !== "function") {
|
|
313
|
+
return { stoppedTaskIds: [] };
|
|
314
|
+
}
|
|
315
|
+
return await mgr.stopAllForParent(parentSessionId);
|
|
316
|
+
}, { stoppedTaskIds: [] }, result.errors);
|
|
317
|
+
result.stoppedTaskIds = taskResult.stoppedTaskIds ?? [];
|
|
318
|
+
const workflowResult = await safeStage("workflow.stopAllForParent", async () => {
|
|
319
|
+
const workflowComp = env.getComponent?.("workflow");
|
|
320
|
+
const svc = workflowComp?.workflowService;
|
|
321
|
+
if (!svc || typeof svc.stopAllForParent !== "function") {
|
|
322
|
+
return { stoppedSessionIds: [] };
|
|
323
|
+
}
|
|
324
|
+
return await svc.stopAllForParent(parentSessionId);
|
|
325
|
+
}, { stoppedSessionIds: [] }, result.errors);
|
|
326
|
+
result.stoppedWorkflowSessionIds = workflowResult.stoppedSessionIds ?? [];
|
|
327
|
+
if (Array.isArray(workflowResult.errors)) {
|
|
328
|
+
for (const e of workflowResult.errors) {
|
|
329
|
+
result.errors.push({
|
|
330
|
+
stage: "workflow.stopAllForParent",
|
|
331
|
+
error: `${e.sessionId}: ${e.error}`,
|
|
332
|
+
stack: e.stack
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (state.forceTriggered) {
|
|
337
|
+
result.force = state.firstCallForce || true;
|
|
338
|
+
await safeStage("task.forceStopAll", async () => {
|
|
339
|
+
const taskComp = env.getComponent?.("task");
|
|
340
|
+
const mgr = taskComp?.backgroundTaskManager;
|
|
341
|
+
if (!mgr || typeof mgr.forceStopAll !== "function")
|
|
342
|
+
return;
|
|
343
|
+
await mgr.forceStopAll();
|
|
344
|
+
}, undefined, result.errors);
|
|
345
|
+
await safeStage("workflow.forceStopAll", async () => {
|
|
346
|
+
const workflowComp = env.getComponent?.("workflow");
|
|
347
|
+
const svc = workflowComp?.workflowService;
|
|
348
|
+
if (!svc || typeof svc.forceStopAll !== "function")
|
|
349
|
+
return;
|
|
350
|
+
await svc.forceStopAll();
|
|
351
|
+
}, undefined, result.errors);
|
|
352
|
+
}
|
|
353
|
+
return result;
|
|
354
|
+
}
|
|
355
|
+
var cascadeStopSessionTree = wrapFunction(cascadeStopSessionTreeImpl, "session.tree.cascadeStop", {
|
|
356
|
+
recordParams: true,
|
|
357
|
+
recordResult: true,
|
|
358
|
+
log: true
|
|
359
|
+
});
|
|
250
360
|
// src/env/memory/tools/memory-agent-tools.ts
|
|
251
361
|
import { z } from "zod";
|
|
252
362
|
var SearchSessionsSchema = z.object({
|
|
@@ -424,6 +534,7 @@ export {
|
|
|
424
534
|
createHook,
|
|
425
535
|
createAutoTaskPlugin,
|
|
426
536
|
closeDatabase,
|
|
537
|
+
cascadeStopSessionTree,
|
|
427
538
|
builtInHandlers,
|
|
428
539
|
buildDefaultBountyIMSystemPrompt,
|
|
429
540
|
bountyIMHandler,
|