@ai-setting/roy-agent-core 1.4.14 → 1.4.15
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/{packages/core/src/config → config}/index.js +7 -7
- package/dist/env/agent/index.js +24 -0
- package/dist/env/commands/index.js +14 -0
- package/dist/env/debug/formatters/index.js +11 -0
- package/dist/env/debug/index.js +26 -0
- package/dist/{packages/core/src/env → env}/hook/index.js +3 -3
- package/dist/env/index.js +81 -0
- package/dist/env/llm/index.js +40 -0
- package/dist/{packages/core/src/env → env}/log-trace/index.js +10 -10
- package/dist/env/mcp/index.js +39 -0
- package/dist/env/mcp/tool/index.js +14 -0
- package/dist/{packages/core/src/env → env}/memory/built-in/index.js +2 -2
- package/dist/{packages/core/src/env → env}/memory/index.js +11 -11
- package/dist/{packages/core/src/env → env}/memory/plugin/index.js +5 -5
- package/dist/env/prompt/index.js +20 -0
- package/dist/env/session/index.js +25 -0
- package/dist/env/session/storage/index.js +18 -0
- package/dist/env/skill/index.js +34 -0
- package/dist/env/skill/tool/index.js +9 -0
- package/dist/env/task/delegate/index.js +18 -0
- package/dist/env/task/hooks/index.js +7 -0
- package/dist/env/task/index.js +30 -0
- package/dist/env/task/plugins/index.js +23 -0
- package/dist/env/task/storage/index.js +14 -0
- package/dist/{packages/core/src/env → env}/task/tools/index.js +2 -2
- package/dist/{packages/core/src/env → env}/task/tools/operation/index.js +2 -2
- package/dist/{packages/core/src/env → env}/tool/built-in/index.js +4 -4
- package/dist/env/tool/index.js +39 -0
- package/dist/{packages/core/src/env → env}/workflow/decorators/index.js +3 -3
- package/dist/env/workflow/engine/index.js +28 -0
- package/dist/{packages/core/src/env → env}/workflow/index.js +30 -30
- package/dist/{packages/core/src/env → env}/workflow/nodes/index.js +3 -3
- package/dist/{packages/core/src/env → env}/workflow/service/index.js +2 -2
- package/dist/env/workflow/storage/index.js +27 -0
- package/dist/{packages/core/src/env → env}/workflow/tools/index.js +7 -7
- package/dist/{packages/core/src/env → env}/workflow/types/index.js +3 -3
- package/dist/{packages/core/src/env → env}/workflow/utils/index.js +10 -10
- package/dist/{packages/core/src/index.js → index.js} +102 -102
- package/dist/shared/@ai-setting/{roy-agent-core-1z1zv5g8.js → roy-agent-core-0rtxwr28.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-nfj6knp5.js → roy-agent-core-0vbdz0x7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-04fm8177.js → roy-agent-core-12zkpda2.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-3tnb2005.js → roy-agent-core-1ce3fqrk.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-084qqd7t.js → roy-agent-core-2dhd60aw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8wzz66qe.js → roy-agent-core-2kg2wma8.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-2hqxnaf3.js → roy-agent-core-2x0m2p66.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-04qgbjbe.js → roy-agent-core-35x0wrtt.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-qxybm159.js → roy-agent-core-37e4tep3.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5fbp24se.js → roy-agent-core-3agad0d9.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-0hdry23r.js → roy-agent-core-4arba14a.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-6w4pmxc7.js → roy-agent-core-4rqmfr7t.js} +17 -17
- package/dist/shared/@ai-setting/{roy-agent-core-yt8wdh2w.js → roy-agent-core-4t40mkpv.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m6y668cc.js → roy-agent-core-561b1c4p.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-dde19zke.js → roy-agent-core-5xf65pz6.js} +15 -15
- package/dist/shared/@ai-setting/{roy-agent-core-v4aabsf0.js → roy-agent-core-6a72jfdy.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-nczzf0ms.js → roy-agent-core-7f303ffd.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-sbzvpfn7.js → roy-agent-core-7fgf85wc.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-tkr5ynkh.js → roy-agent-core-7n436rb4.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-yrzmn4m1.js → roy-agent-core-7r85t0qn.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-q50tg9m2.js → roy-agent-core-7rewcey6.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-pzk1syce.js → roy-agent-core-92z6t4he.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pd7g8z5v.js → roy-agent-core-9qwp5qkz.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-hyza1gm7.js → roy-agent-core-9yxb3ty9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fvd9g6k8.js → roy-agent-core-anwsxdds.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-j8zx62zr.js → roy-agent-core-bncgx3gb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9ykq91jc.js → roy-agent-core-cd00w5mb.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-jb2exr0d.js → roy-agent-core-cgs0j60t.js} +12 -12
- package/dist/shared/@ai-setting/{roy-agent-core-3takar0s.js → roy-agent-core-ctdhjv68.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-12x57kf1.js → roy-agent-core-dbsk841j.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-8dvbn7tw.js → roy-agent-core-e25xkv53.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7vrk3add.js → roy-agent-core-e5jcp24a.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ntrp979d.js → roy-agent-core-e62e2a5a.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rh9dpkpw.js → roy-agent-core-ewrj1c4k.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-6j0zcmwk.js → roy-agent-core-fdb6m4e4.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-1k28kg7h.js → roy-agent-core-fv32jaa8.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-8mbmrwzs.js → roy-agent-core-g1s2h0e5.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-w75rafhy.js → roy-agent-core-gmnkza34.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-k1rxf9ya.js → roy-agent-core-hz7rr4yx.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-gv1hrn3x.js → roy-agent-core-j3bbr2n0.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-yn761yve.js → roy-agent-core-j3wc4465.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-0gekht4e.js → roy-agent-core-jj79gszx.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-f7g67gce.js → roy-agent-core-mwwk6req.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-rr9p1g43.js → roy-agent-core-pc9g3962.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-kydc9nwb.js → roy-agent-core-psvxt4c9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1f3xrrm6.js → roy-agent-core-pzsg9pvf.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-qhyerewk.js → roy-agent-core-q779wnwm.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-4ws8atva.js → roy-agent-core-qw0ebh1d.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jv3b7v9w.js → roy-agent-core-qxhq8ven.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5my94ywp.js → roy-agent-core-qxnbvgwe.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-yfbgwes2.js → roy-agent-core-qya7seh6.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-m2x48hw6.js → roy-agent-core-rbetrphj.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-3dfq8awb.js → roy-agent-core-re1wjfw7.js} +14 -14
- package/dist/shared/@ai-setting/roy-agent-core-rft3fmp0.js +14 -0
- package/dist/shared/@ai-setting/{roy-agent-core-w76hqkmg.js → roy-agent-core-rvv6ydff.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-0sgn3de4.js → roy-agent-core-rvxg1wps.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fq5mtxsy.js → roy-agent-core-rzp9kxne.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-gy0wp5h7.js → roy-agent-core-t94ktchq.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-t22nqt4d.js → roy-agent-core-w78syn7w.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-qg9tcaph.js → roy-agent-core-z2t8hse8.js} +2 -2
- package/package.json +3 -3
- package/dist/packages/core/src/env/agent/index.js +0 -24
- package/dist/packages/core/src/env/commands/index.js +0 -14
- package/dist/packages/core/src/env/debug/formatters/index.js +0 -11
- package/dist/packages/core/src/env/debug/index.js +0 -26
- package/dist/packages/core/src/env/index.js +0 -81
- package/dist/packages/core/src/env/llm/index.js +0 -40
- package/dist/packages/core/src/env/mcp/index.js +0 -39
- package/dist/packages/core/src/env/mcp/tool/index.js +0 -14
- package/dist/packages/core/src/env/prompt/index.js +0 -20
- package/dist/packages/core/src/env/session/index.js +0 -25
- package/dist/packages/core/src/env/session/storage/index.js +0 -18
- package/dist/packages/core/src/env/skill/index.js +0 -34
- package/dist/packages/core/src/env/skill/tool/index.js +0 -9
- package/dist/packages/core/src/env/task/delegate/index.js +0 -18
- package/dist/packages/core/src/env/task/hooks/index.js +0 -7
- package/dist/packages/core/src/env/task/index.js +0 -30
- package/dist/packages/core/src/env/task/plugins/index.js +0 -23
- package/dist/packages/core/src/env/task/storage/index.js +0 -14
- package/dist/packages/core/src/env/tool/index.js +0 -39
- package/dist/packages/core/src/env/workflow/engine/index.js +0 -28
- package/dist/packages/core/src/env/workflow/storage/index.js +0 -27
- package/dist/shared/@ai-setting/roy-agent-core-4vmcvkav.js +0 -14
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
getOperationTool,
|
|
5
5
|
listOperationsTool,
|
|
6
6
|
updateOperationTool
|
|
7
|
-
} from "
|
|
8
|
-
import"
|
|
7
|
+
} from "../../../../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
8
|
+
import"../../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
9
9
|
export {
|
|
10
10
|
updateOperationTool,
|
|
11
11
|
listOperationsTool,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
grepTool,
|
|
9
9
|
readFileTool,
|
|
10
10
|
writeFileTool
|
|
11
|
-
} from "
|
|
12
|
-
import"
|
|
13
|
-
import"
|
|
14
|
-
import"
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-ewrj1c4k.js";
|
|
12
|
+
import"../../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
15
15
|
export {
|
|
16
16
|
writeFileTool,
|
|
17
17
|
readFileTool,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ToolComponent,
|
|
3
|
+
ToolRegistry,
|
|
4
|
+
ToolValidator
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-cgs0j60t.js";
|
|
6
|
+
import {
|
|
7
|
+
bashTool,
|
|
8
|
+
echoTool,
|
|
9
|
+
editFileTool,
|
|
10
|
+
getAllBuiltInTools,
|
|
11
|
+
getBuiltInTool,
|
|
12
|
+
globTool,
|
|
13
|
+
grepTool,
|
|
14
|
+
readFileTool,
|
|
15
|
+
writeFileTool
|
|
16
|
+
} from "../../shared/@ai-setting/roy-agent-core-ewrj1c4k.js";
|
|
17
|
+
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-rbetrphj.js";
|
|
20
|
+
import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-gmnkza34.js";
|
|
22
|
+
import"../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
23
|
+
import"../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
25
|
+
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
26
|
+
export {
|
|
27
|
+
writeFileTool,
|
|
28
|
+
readFileTool,
|
|
29
|
+
grepTool,
|
|
30
|
+
globTool,
|
|
31
|
+
getBuiltInTool,
|
|
32
|
+
getAllBuiltInTools,
|
|
33
|
+
editFileTool,
|
|
34
|
+
echoTool,
|
|
35
|
+
bashTool,
|
|
36
|
+
ToolValidator,
|
|
37
|
+
ToolRegistry,
|
|
38
|
+
ToolComponent
|
|
39
|
+
};
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
getEdgeMetadatas,
|
|
9
9
|
getNodeMetadatas,
|
|
10
10
|
getWorkflowMetadata
|
|
11
|
-
} from "
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7fgf85wc.js";
|
|
12
12
|
import {
|
|
13
13
|
DecoratorNode
|
|
14
|
-
} from "
|
|
15
|
-
import"
|
|
14
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
16
16
|
export {
|
|
17
17
|
getWorkflowMetadata,
|
|
18
18
|
getNodeMetadatas,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DAGManager,
|
|
3
|
+
EventBus,
|
|
4
|
+
Executor,
|
|
5
|
+
NodeRegistry,
|
|
6
|
+
Scheduler,
|
|
7
|
+
WorkflowEngine,
|
|
8
|
+
init_engine
|
|
9
|
+
} from "../../../shared/@ai-setting/roy-agent-core-fdb6m4e4.js";
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-pc9g3962.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-3agad0d9.js";
|
|
12
|
+
import"../../../shared/@ai-setting/roy-agent-core-rzp9kxne.js";
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-35x0wrtt.js";
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
16
|
+
import"../../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
17
|
+
import"../../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
18
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
19
|
+
init_engine();
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
WorkflowEngine,
|
|
23
|
+
Scheduler,
|
|
24
|
+
NodeRegistry,
|
|
25
|
+
Executor,
|
|
26
|
+
EventBus,
|
|
27
|
+
DAGManager
|
|
28
|
+
};
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "
|
|
4
|
-
import"
|
|
5
|
-
import"
|
|
6
|
-
import"
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-4rqmfr7t.js";
|
|
4
|
+
import"../../shared/@ai-setting/roy-agent-core-0rtxwr28.js";
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
7
|
+
import {
|
|
8
|
+
Edge,
|
|
9
|
+
NodeAs,
|
|
10
|
+
Workflow,
|
|
11
|
+
WorkflowConverter,
|
|
12
|
+
WorkflowEdges,
|
|
13
|
+
createWorkflowFromClass
|
|
14
|
+
} from "../../shared/@ai-setting/roy-agent-core-7fgf85wc.js";
|
|
15
|
+
import {
|
|
16
|
+
DecoratorNode,
|
|
17
|
+
init_decorator_node
|
|
18
|
+
} from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-fdb6m4e4.js";
|
|
20
|
+
import"../../shared/@ai-setting/roy-agent-core-pc9g3962.js";
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-3agad0d9.js";
|
|
9
22
|
import {
|
|
10
23
|
BaseEventSchema,
|
|
11
24
|
ControlPauseEventSchema,
|
|
@@ -47,35 +60,22 @@ import {
|
|
|
47
60
|
isWorkflowSessionMetadata,
|
|
48
61
|
parseWorkflowFile,
|
|
49
62
|
parseWorkflowFileSync
|
|
50
|
-
} from "
|
|
51
|
-
import {
|
|
52
|
-
Edge,
|
|
53
|
-
NodeAs,
|
|
54
|
-
Workflow,
|
|
55
|
-
WorkflowConverter,
|
|
56
|
-
WorkflowEdges,
|
|
57
|
-
createWorkflowFromClass
|
|
58
|
-
} from "../../../../../shared/@ai-setting/roy-agent-core-sbzvpfn7.js";
|
|
59
|
-
import {
|
|
60
|
-
DecoratorNode,
|
|
61
|
-
init_decorator_node
|
|
62
|
-
} from "../../../../../shared/@ai-setting/roy-agent-core-3tnb2005.js";
|
|
63
|
-
import"../../../../../shared/@ai-setting/roy-agent-core-yt8wdh2w.js";
|
|
63
|
+
} from "../../shared/@ai-setting/roy-agent-core-rzp9kxne.js";
|
|
64
64
|
import {
|
|
65
65
|
AskUserError,
|
|
66
66
|
createNodeInterruptEvent,
|
|
67
67
|
createWorkflowAskUserEvent
|
|
68
|
-
} from "
|
|
69
|
-
import"
|
|
70
|
-
import"
|
|
71
|
-
import"
|
|
72
|
-
import"
|
|
73
|
-
import"
|
|
74
|
-
import"
|
|
75
|
-
import"
|
|
76
|
-
import"
|
|
68
|
+
} from "../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
69
|
+
import"../../shared/@ai-setting/roy-agent-core-rbetrphj.js";
|
|
70
|
+
import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
|
71
|
+
import"../../shared/@ai-setting/roy-agent-core-gmnkza34.js";
|
|
72
|
+
import"../../shared/@ai-setting/roy-agent-core-35x0wrtt.js";
|
|
73
|
+
import"../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
74
|
+
import"../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
75
|
+
import"../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
76
|
+
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
77
77
|
|
|
78
|
-
//
|
|
78
|
+
// src/env/workflow/index.ts
|
|
79
79
|
init_decorator_node();
|
|
80
80
|
init_types();
|
|
81
81
|
export {
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
init_skill_node,
|
|
6
6
|
init_tool_node,
|
|
7
7
|
init_workflow_node
|
|
8
|
-
} from "
|
|
9
|
-
import"
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-3agad0d9.js";
|
|
9
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
10
10
|
|
|
11
|
-
//
|
|
11
|
+
// src/env/workflow/nodes/index.ts
|
|
12
12
|
init_tool_node();
|
|
13
13
|
init_skill_node();
|
|
14
14
|
init_workflow_node();
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
WorkflowServiceRegistry,
|
|
4
4
|
getWorkflowService,
|
|
5
5
|
registerWorkflowService
|
|
6
|
-
} from "
|
|
7
|
-
import"
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
7
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
8
8
|
export {
|
|
9
9
|
registerWorkflowService,
|
|
10
10
|
getWorkflowService,
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WorkflowRepository,
|
|
3
|
+
rowToWorkflow
|
|
4
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7n436rb4.js";
|
|
5
|
+
import {
|
|
6
|
+
closeDatabase,
|
|
7
|
+
getDatabase,
|
|
8
|
+
getDatabasePath,
|
|
9
|
+
initDatabase,
|
|
10
|
+
initializeTables,
|
|
11
|
+
resetDatabase
|
|
12
|
+
} from "../../../shared/@ai-setting/roy-agent-core-37e4tep3.js";
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
15
|
+
import"../../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
16
|
+
import"../../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
17
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
18
|
+
export {
|
|
19
|
+
rowToWorkflow,
|
|
20
|
+
resetDatabase,
|
|
21
|
+
initializeTables,
|
|
22
|
+
initDatabase,
|
|
23
|
+
getDatabasePath,
|
|
24
|
+
getDatabase,
|
|
25
|
+
closeDatabase,
|
|
26
|
+
WorkflowRepository
|
|
27
|
+
};
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
AskUserInputSchema,
|
|
3
3
|
askUserTool,
|
|
4
4
|
askUserToolInstance
|
|
5
|
-
} from "
|
|
6
|
-
import"
|
|
5
|
+
} from "../../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
6
|
+
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
init_logger
|
|
10
|
-
} from "
|
|
11
|
-
import"
|
|
12
|
-
import"
|
|
13
|
-
import"
|
|
10
|
+
} from "../../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
12
|
+
import"../../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
13
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// src/env/workflow/tools/run-workflow.ts
|
|
16
16
|
init_logger();
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
var logger = createLogger("run-workflow-tool");
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
isWorkflowSessionMetadata,
|
|
40
40
|
parseWorkflowFile,
|
|
41
41
|
parseWorkflowFileSync
|
|
42
|
-
} from "
|
|
42
|
+
} from "../../../shared/@ai-setting/roy-agent-core-rzp9kxne.js";
|
|
43
43
|
import {
|
|
44
44
|
AskUserError,
|
|
45
45
|
createNodeInterruptEvent,
|
|
46
46
|
createWorkflowAskUserEvent
|
|
47
|
-
} from "
|
|
48
|
-
import"
|
|
47
|
+
} from "../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
48
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
49
49
|
init_types();
|
|
50
50
|
|
|
51
51
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TracedAs,
|
|
3
3
|
init_decorator
|
|
4
|
-
} from "
|
|
5
|
-
import"
|
|
6
|
-
import"
|
|
7
|
-
import"
|
|
4
|
+
} from "../../../shared/@ai-setting/roy-agent-core-35x0wrtt.js";
|
|
5
|
+
import"../../../shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
6
|
+
import"../../../shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
7
|
+
import"../../../shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
8
8
|
import {
|
|
9
9
|
__legacyDecorateClassTS
|
|
10
|
-
} from "
|
|
10
|
+
} from "../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
11
11
|
|
|
12
|
-
//
|
|
12
|
+
// src/env/workflow/utils/template-resolver.ts
|
|
13
13
|
class TemplateResolver {
|
|
14
14
|
input;
|
|
15
15
|
previousOutputs;
|
|
@@ -202,10 +202,10 @@ function resolveTemplateString(template, context) {
|
|
|
202
202
|
const resolver = TemplateResolver.fromContext(context);
|
|
203
203
|
return resolver.resolveString(template);
|
|
204
204
|
}
|
|
205
|
-
//
|
|
205
|
+
// src/env/workflow/utils/recovery-validator.ts
|
|
206
206
|
init_decorator();
|
|
207
207
|
|
|
208
|
-
//
|
|
208
|
+
// src/env/workflow/utils/validation-rules.ts
|
|
209
209
|
var ValidationErrorType;
|
|
210
210
|
((ValidationErrorType2) => {
|
|
211
211
|
ValidationErrorType2["MISSING_VARIABLE"] = "MISSING_VARIABLE";
|
|
@@ -225,7 +225,7 @@ var SuggestedAction;
|
|
|
225
225
|
SuggestedAction2["IGNORE"] = "IGNORE";
|
|
226
226
|
})(SuggestedAction ||= {});
|
|
227
227
|
|
|
228
|
-
//
|
|
228
|
+
// src/env/workflow/utils/execution-state.ts
|
|
229
229
|
init_decorator();
|
|
230
230
|
class ExecutionStateBuilder {
|
|
231
231
|
build(messages, definition) {
|
|
@@ -377,7 +377,7 @@ __legacyDecorateClassTS([
|
|
|
377
377
|
TracedAs("recovery.builder.buildPendingNodes", { recordParams: true, recordResult: true, log: true })
|
|
378
378
|
], ExecutionStateBuilder.prototype, "buildPendingNodes", null);
|
|
379
379
|
|
|
380
|
-
//
|
|
380
|
+
// src/env/workflow/utils/recovery-validator.ts
|
|
381
381
|
class RecoveryValidator {
|
|
382
382
|
stateBuilder;
|
|
383
383
|
constructor() {
|
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
LogTraceComponent,
|
|
3
|
+
LogTraceConfigSchema
|
|
4
|
+
} from "./shared/@ai-setting/roy-agent-core-4arba14a.js";
|
|
5
|
+
import {
|
|
6
|
+
ToolComponent,
|
|
7
|
+
ToolRegistry,
|
|
8
|
+
ToolValidator
|
|
9
|
+
} from "./shared/@ai-setting/roy-agent-core-cgs0j60t.js";
|
|
10
|
+
import {
|
|
11
|
+
bashTool,
|
|
12
|
+
editFileTool,
|
|
13
|
+
getAllBuiltInTools,
|
|
14
|
+
getBuiltInTool,
|
|
15
|
+
globTool,
|
|
16
|
+
grepTool,
|
|
17
|
+
readFileTool,
|
|
18
|
+
writeFileTool
|
|
19
|
+
} from "./shared/@ai-setting/roy-agent-core-ewrj1c4k.js";
|
|
4
20
|
import {
|
|
5
21
|
PromptComponent,
|
|
6
22
|
getBuiltInPrompt,
|
|
7
23
|
getBuiltInPromptNames
|
|
8
|
-
} from "
|
|
9
|
-
import {
|
|
10
|
-
TaskPlugin,
|
|
11
|
-
TaskTagPlugin
|
|
12
|
-
} from "../../../shared/@ai-setting/roy-agent-core-04fm8177.js";
|
|
13
|
-
import {
|
|
14
|
-
DebugComponent
|
|
15
|
-
} from "../../../shared/@ai-setting/roy-agent-core-q50tg9m2.js";
|
|
16
|
-
import {
|
|
17
|
-
ReplFormatter,
|
|
18
|
-
TraceFormatter,
|
|
19
|
-
TreeFormatter
|
|
20
|
-
} from "../../../shared/@ai-setting/roy-agent-core-w76hqkmg.js";
|
|
21
|
-
import {
|
|
22
|
-
SessionComponent
|
|
23
|
-
} from "../../../shared/@ai-setting/roy-agent-core-9ykq91jc.js";
|
|
24
|
-
import"../../../shared/@ai-setting/roy-agent-core-0sgn3de4.js";
|
|
25
|
-
import {
|
|
26
|
-
MemorySessionStore
|
|
27
|
-
} from "../../../shared/@ai-setting/roy-agent-core-2hqxnaf3.js";
|
|
24
|
+
} from "./shared/@ai-setting/roy-agent-core-mwwk6req.js";
|
|
28
25
|
import {
|
|
29
26
|
LLMComponent,
|
|
30
27
|
LLMConfigSchema,
|
|
@@ -36,83 +33,91 @@ import {
|
|
|
36
33
|
invoke,
|
|
37
34
|
invokeNonStream,
|
|
38
35
|
parseModelString
|
|
39
|
-
} from "
|
|
36
|
+
} from "./shared/@ai-setting/roy-agent-core-5xf65pz6.js";
|
|
40
37
|
import {
|
|
41
|
-
|
|
42
|
-
} from "
|
|
43
|
-
import"../../../shared/@ai-setting/roy-agent-core-kydc9nwb.js";
|
|
38
|
+
ConfigComponent
|
|
39
|
+
} from "./shared/@ai-setting/roy-agent-core-anwsxdds.js";
|
|
44
40
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "../../../shared/@ai-setting/roy-agent-core-jb2exr0d.js";
|
|
41
|
+
MemoryComponent
|
|
42
|
+
} from "./shared/@ai-setting/roy-agent-core-pzsg9pvf.js";
|
|
43
|
+
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
49
44
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
45
|
+
MemoryPlugin,
|
|
46
|
+
createMemoryPlugin
|
|
47
|
+
} from "./shared/@ai-setting/roy-agent-core-qya7seh6.js";
|
|
48
|
+
import {
|
|
49
|
+
CommandsComponent
|
|
50
|
+
} from "./shared/@ai-setting/roy-agent-core-7r85t0qn.js";
|
|
51
|
+
import {
|
|
52
|
+
TaskPlugin,
|
|
53
|
+
TaskTagPlugin
|
|
54
|
+
} from "./shared/@ai-setting/roy-agent-core-12zkpda2.js";
|
|
55
|
+
import {
|
|
56
|
+
DebugComponent
|
|
57
|
+
} from "./shared/@ai-setting/roy-agent-core-7rewcey6.js";
|
|
58
|
+
import {
|
|
59
|
+
ReplFormatter,
|
|
60
|
+
TraceFormatter,
|
|
61
|
+
TreeFormatter
|
|
62
|
+
} from "./shared/@ai-setting/roy-agent-core-rvv6ydff.js";
|
|
59
63
|
import {
|
|
60
64
|
BaseEnvironment,
|
|
61
65
|
EventSourceAgentHandler,
|
|
62
66
|
EventSourceComponent,
|
|
63
67
|
generateDescendingId,
|
|
64
68
|
generateId
|
|
65
|
-
} from "
|
|
66
|
-
import {
|
|
67
|
-
McpComponent
|
|
68
|
-
} from "../../../shared/@ai-setting/roy-agent-core-3dfq8awb.js";
|
|
69
|
-
import"../../../shared/@ai-setting/roy-agent-core-v4aabsf0.js";
|
|
69
|
+
} from "./shared/@ai-setting/roy-agent-core-9qwp5qkz.js";
|
|
70
70
|
import {
|
|
71
71
|
XDG_PATHS,
|
|
72
72
|
getXDGPath,
|
|
73
73
|
getXDGPaths
|
|
74
|
-
} from "
|
|
75
|
-
import {
|
|
76
|
-
TaskComponent
|
|
77
|
-
} from "../../../shared/@ai-setting/roy-agent-core-k1rxf9ya.js";
|
|
78
|
-
import"../../../shared/@ai-setting/roy-agent-core-8wzz66qe.js";
|
|
79
|
-
import"../../../shared/@ai-setting/roy-agent-core-12x57kf1.js";
|
|
80
|
-
import"../../../shared/@ai-setting/roy-agent-core-gy0wp5h7.js";
|
|
81
|
-
import"../../../shared/@ai-setting/roy-agent-core-t22nqt4d.js";
|
|
82
|
-
import {
|
|
83
|
-
TaskHookPoints
|
|
84
|
-
} from "../../../shared/@ai-setting/roy-agent-core-pzk1syce.js";
|
|
74
|
+
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
85
75
|
import {
|
|
86
76
|
WorkflowComponent
|
|
87
|
-
} from "
|
|
77
|
+
} from "./shared/@ai-setting/roy-agent-core-4rqmfr7t.js";
|
|
88
78
|
import {
|
|
89
79
|
init_node_registry_helper,
|
|
90
80
|
registerDecoratorNodeType
|
|
91
|
-
} from "
|
|
92
|
-
import"
|
|
93
|
-
import"
|
|
94
|
-
import"../../../shared/@ai-setting/roy-agent-core-rr9p1g43.js";
|
|
95
|
-
import"../../../shared/@ai-setting/roy-agent-core-5fbp24se.js";
|
|
96
|
-
import"../../../shared/@ai-setting/roy-agent-core-fq5mtxsy.js";
|
|
81
|
+
} from "./shared/@ai-setting/roy-agent-core-0rtxwr28.js";
|
|
82
|
+
import"./shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
83
|
+
import"./shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
97
84
|
import {
|
|
98
85
|
Edge,
|
|
99
86
|
NodeAs,
|
|
100
87
|
Workflow,
|
|
101
88
|
WorkflowEdges,
|
|
102
89
|
createWorkflowFromClass
|
|
103
|
-
} from "
|
|
104
|
-
import"
|
|
105
|
-
import"
|
|
106
|
-
import
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
} from "../../../shared/@ai-setting/roy-agent-core-0hdry23r.js";
|
|
90
|
+
} from "./shared/@ai-setting/roy-agent-core-7fgf85wc.js";
|
|
91
|
+
import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
92
|
+
import"./shared/@ai-setting/roy-agent-core-fdb6m4e4.js";
|
|
93
|
+
import"./shared/@ai-setting/roy-agent-core-pc9g3962.js";
|
|
94
|
+
import"./shared/@ai-setting/roy-agent-core-3agad0d9.js";
|
|
95
|
+
import"./shared/@ai-setting/roy-agent-core-rzp9kxne.js";
|
|
110
96
|
import {
|
|
111
97
|
AgentComponent,
|
|
112
98
|
AgentComponentConfigSchema
|
|
113
|
-
} from "
|
|
114
|
-
import
|
|
115
|
-
|
|
99
|
+
} from "./shared/@ai-setting/roy-agent-core-jj79gszx.js";
|
|
100
|
+
import {
|
|
101
|
+
AskUserError,
|
|
102
|
+
init_workflow_hil
|
|
103
|
+
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
104
|
+
import {
|
|
105
|
+
TaskComponent
|
|
106
|
+
} from "./shared/@ai-setting/roy-agent-core-hz7rr4yx.js";
|
|
107
|
+
import"./shared/@ai-setting/roy-agent-core-2kg2wma8.js";
|
|
108
|
+
import"./shared/@ai-setting/roy-agent-core-dbsk841j.js";
|
|
109
|
+
import"./shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
110
|
+
import"./shared/@ai-setting/roy-agent-core-w78syn7w.js";
|
|
111
|
+
import {
|
|
112
|
+
TaskHookPoints
|
|
113
|
+
} from "./shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
114
|
+
import {
|
|
115
|
+
SkillComponent
|
|
116
|
+
} from "./shared/@ai-setting/roy-agent-core-561b1c4p.js";
|
|
117
|
+
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
118
|
+
import {
|
|
119
|
+
McpComponent
|
|
120
|
+
} from "./shared/@ai-setting/roy-agent-core-re1wjfw7.js";
|
|
116
121
|
import {
|
|
117
122
|
AgentError,
|
|
118
123
|
ComponentError,
|
|
@@ -123,40 +128,35 @@ import {
|
|
|
123
128
|
ToolError,
|
|
124
129
|
getErrorCode,
|
|
125
130
|
isRoyError
|
|
126
|
-
} from "
|
|
127
|
-
import
|
|
128
|
-
AskUserError,
|
|
129
|
-
init_workflow_hil
|
|
130
|
-
} from "../../../shared/@ai-setting/roy-agent-core-8dvbn7tw.js";
|
|
131
|
-
import {
|
|
132
|
-
Traced,
|
|
133
|
-
TracedAs,
|
|
134
|
-
TracedLightweight,
|
|
135
|
-
wrapFunction
|
|
136
|
-
} from "../../../shared/@ai-setting/roy-agent-core-04qgbjbe.js";
|
|
131
|
+
} from "./shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
132
|
+
import"./shared/@ai-setting/roy-agent-core-6a72jfdy.js";
|
|
137
133
|
import {
|
|
138
|
-
|
|
139
|
-
} from "
|
|
140
|
-
import
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
import"../../../shared/@ai-setting/roy-agent-core-jv3b7v9w.js";
|
|
134
|
+
SessionComponent
|
|
135
|
+
} from "./shared/@ai-setting/roy-agent-core-cd00w5mb.js";
|
|
136
|
+
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
137
|
+
import"./shared/@ai-setting/roy-agent-core-j3bbr2n0.js";
|
|
138
|
+
import"./shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
144
139
|
import {
|
|
145
140
|
BaseComponent
|
|
146
|
-
} from "
|
|
141
|
+
} from "./shared/@ai-setting/roy-agent-core-rbetrphj.js";
|
|
147
142
|
import {
|
|
148
143
|
createHook,
|
|
149
144
|
createPriorityHook
|
|
150
|
-
} from "
|
|
145
|
+
} from "./shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
|
151
146
|
import {
|
|
152
147
|
HookManager,
|
|
153
148
|
globalHookManager
|
|
154
|
-
} from "
|
|
155
|
-
import"../../../shared/@ai-setting/roy-agent-core-8mbmrwzs.js";
|
|
149
|
+
} from "./shared/@ai-setting/roy-agent-core-gmnkza34.js";
|
|
156
150
|
import {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
MemorySessionStore
|
|
152
|
+
} from "./shared/@ai-setting/roy-agent-core-2x0m2p66.js";
|
|
153
|
+
import"./shared/@ai-setting/roy-agent-core-e62e2a5a.js";
|
|
154
|
+
import {
|
|
155
|
+
Traced,
|
|
156
|
+
TracedAs,
|
|
157
|
+
TracedLightweight,
|
|
158
|
+
wrapFunction
|
|
159
|
+
} from "./shared/@ai-setting/roy-agent-core-35x0wrtt.js";
|
|
160
160
|
import {
|
|
161
161
|
createLogger,
|
|
162
162
|
getLogDir,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
setConfigComponent,
|
|
167
167
|
setLogDirOverride,
|
|
168
168
|
setQuietMode
|
|
169
|
-
} from "
|
|
169
|
+
} from "./shared/@ai-setting/roy-agent-core-j3wc4465.js";
|
|
170
170
|
import {
|
|
171
171
|
OTelTracerProvider,
|
|
172
172
|
SpanKind,
|
|
@@ -174,12 +174,12 @@ import {
|
|
|
174
174
|
getTracerProvider,
|
|
175
175
|
propagation,
|
|
176
176
|
resetTracerProvider
|
|
177
|
-
} from "
|
|
177
|
+
} from "./shared/@ai-setting/roy-agent-core-fv32jaa8.js";
|
|
178
178
|
import {
|
|
179
179
|
SQLiteSpanStorage
|
|
180
|
-
} from "
|
|
181
|
-
import"
|
|
182
|
-
//
|
|
180
|
+
} from "./shared/@ai-setting/roy-agent-core-bncgx3gb.js";
|
|
181
|
+
import"./shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
182
|
+
// src/env/memory/tools/memory-agent-tools.ts
|
|
183
183
|
import { z } from "zod";
|
|
184
184
|
var SearchSessionsSchema = z.object({
|
|
185
185
|
query: z.string().describe("搜索关键词"),
|
|
@@ -296,7 +296,7 @@ function createMemoryAgentTools(deps) {
|
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
//
|
|
299
|
+
// src/index.ts
|
|
300
300
|
init_workflow_hil();
|
|
301
301
|
init_node_registry_helper();
|
|
302
302
|
export {
|