@ai-setting/roy-agent-core 1.5.48 → 1.5.50
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/config/index.js +10 -5
- package/dist/env/agent/index.js +7 -6
- package/dist/env/commands/index.js +7 -5
- package/dist/env/context/index.js +13 -3
- package/dist/env/debug/index.js +10 -5
- package/dist/env/event-source/index.js +9 -8
- package/dist/env/hook/index.js +8 -3
- package/dist/env/index.js +21 -20
- package/dist/env/llm/index.js +7 -6
- package/dist/env/log-trace/index.js +7 -6
- package/dist/env/mcp/index.js +7 -5
- package/dist/env/memory/index.js +7 -5
- package/dist/env/plugin/index.js +7 -5
- package/dist/env/prompt/index.js +7 -5
- package/dist/env/session/index.js +7 -6
- package/dist/env/skill/index.js +7 -5
- package/dist/env/task/delegate/index.js +4 -3
- package/dist/env/task/index.js +16 -11
- package/dist/env/task/plugins/index.js +3 -2
- package/dist/env/task/storage/index.js +1 -1
- package/dist/env/task/tools/index.js +6 -1
- package/dist/env/tool/index.js +7 -5
- package/dist/env/workflow/engine/index.js +6 -5
- package/dist/env/workflow/index.js +9 -8
- package/dist/index.js +40 -34
- package/dist/shared/@ai-setting/{roy-agent-core-1rzpnycm.js → roy-agent-core-316v7cm4.js} +3 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rgj6hq15.js → roy-agent-core-48v06q1b.js} +4 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1t5esk1r.js → roy-agent-core-4b18eceq.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-ebap34m2.js → roy-agent-core-5ng0awvn.js} +4 -3
- package/dist/shared/@ai-setting/{roy-agent-core-cg23b692.js → roy-agent-core-5qe84a90.js} +28 -16
- package/dist/shared/@ai-setting/{roy-agent-core-00cpsj5z.js → roy-agent-core-8nd895aq.js} +6 -10
- package/dist/shared/@ai-setting/{roy-agent-core-kzbj10gk.js → roy-agent-core-9a2n122m.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-pyv1vb7v.js → roy-agent-core-9sarrbw9.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-rx74rye7.js → roy-agent-core-a8gvea2f.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-c7cm1wjt.js +13 -0
- package/dist/shared/@ai-setting/{roy-agent-core-ztx5eh72.js → roy-agent-core-d8v4n80n.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-hsxn8m1j.js → roy-agent-core-e8eefm0k.js} +109 -6
- package/dist/shared/@ai-setting/{roy-agent-core-hdszq729.js → roy-agent-core-ezfwx334.js} +7 -5
- package/dist/shared/@ai-setting/{roy-agent-core-twd8kzag.js → roy-agent-core-fpb999vd.js} +5 -4
- package/dist/shared/@ai-setting/{roy-agent-core-2rtka82a.js → roy-agent-core-fy1y1aqx.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-wa1kzqky.js → roy-agent-core-hd6kd06t.js} +46 -2
- package/dist/shared/@ai-setting/{roy-agent-core-a5rhnsrg.js → roy-agent-core-m5g2jx7f.js} +48 -9
- package/dist/shared/@ai-setting/{roy-agent-core-mjbfgqen.js → roy-agent-core-mangq9x1.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-38sc085e.js → roy-agent-core-pa9wz5q0.js} +32 -11
- package/dist/shared/@ai-setting/{roy-agent-core-eftqdsy5.js → roy-agent-core-pvswd18d.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-sk535ft2.js → roy-agent-core-qfdgg56t.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-6e3wz81d.js → roy-agent-core-rjf59e7k.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rm3hay00.js → roy-agent-core-s7bgrtch.js} +21 -7
- package/dist/shared/@ai-setting/{roy-agent-core-pm73be85.js → roy-agent-core-sxd8snnj.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4k9a823d.js → roy-agent-core-t32gmaqn.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-20fm423j.js → roy-agent-core-vfk5mtbx.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-ja9qhg6d.js → roy-agent-core-w65c5gac.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-g56g1jp6.js → roy-agent-core-wtnwxn8h.js} +15 -10
- package/dist/shared/@ai-setting/{roy-agent-core-zwq6vhpj.js → roy-agent-core-y30njf6b.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4gmxjdhn.js → roy-agent-core-y85xsddt.js} +6 -4
- package/dist/shared/@ai-setting/{roy-agent-core-vdwvamre.js → roy-agent-core-yq4fv8ce.js} +1 -1
- package/package.json +1 -1
package/dist/env/tool/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ToolValidator,
|
|
5
5
|
getMaxOutputSize,
|
|
6
6
|
setToolConfigComponent
|
|
7
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-a8gvea2f.js";
|
|
8
8
|
import {
|
|
9
9
|
bashTool,
|
|
10
10
|
echoTool,
|
|
@@ -18,10 +18,12 @@ import {
|
|
|
18
18
|
} from "../../shared/@ai-setting/roy-agent-core-ysvh8er9.js";
|
|
19
19
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
21
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
22
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
23
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-rjf59e7k.js";
|
|
22
|
+
import"../../shared/@ai-setting/roy-agent-core-yq4fv8ce.js";
|
|
23
|
+
import"../../shared/@ai-setting/roy-agent-core-48v06q1b.js";
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-c7cm1wjt.js";
|
|
25
|
+
import"../../shared/@ai-setting/roy-agent-core-s7bgrtch.js";
|
|
26
|
+
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
25
27
|
import"../../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
26
28
|
import"../../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
27
29
|
import"../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
@@ -6,18 +6,19 @@ import {
|
|
|
6
6
|
Scheduler,
|
|
7
7
|
WorkflowEngine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
10
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
11
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
9
|
+
} from "../../../shared/@ai-setting/roy-agent-core-316v7cm4.js";
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-fy1y1aqx.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-9a2n122m.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
14
14
|
import"../../../shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
15
15
|
import"../../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
16
16
|
import"../../../shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
17
17
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
18
|
+
import"../../../shared/@ai-setting/roy-agent-core-48v06q1b.js";
|
|
19
|
+
import"../../../shared/@ai-setting/roy-agent-core-c7cm1wjt.js";
|
|
20
|
+
import"../../../shared/@ai-setting/roy-agent-core-s7bgrtch.js";
|
|
18
21
|
import"../../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
19
|
-
import"../../../shared/@ai-setting/roy-agent-core-rgj6hq15.js";
|
|
20
|
-
import"../../../shared/@ai-setting/roy-agent-core-rm3hay00.js";
|
|
21
22
|
import"../../../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
22
23
|
import"../../../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
23
24
|
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.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-4b18eceq.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-9bmtxmp6.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-316v7cm4.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-fy1y1aqx.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-9a2n122m.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
@@ -79,11 +79,12 @@ import {
|
|
|
79
79
|
createNodeInterruptEvent,
|
|
80
80
|
createWorkflowAskUserEvent
|
|
81
81
|
} from "../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
82
|
+
import"../../shared/@ai-setting/roy-agent-core-rjf59e7k.js";
|
|
83
|
+
import"../../shared/@ai-setting/roy-agent-core-yq4fv8ce.js";
|
|
84
|
+
import"../../shared/@ai-setting/roy-agent-core-48v06q1b.js";
|
|
85
|
+
import"../../shared/@ai-setting/roy-agent-core-c7cm1wjt.js";
|
|
86
|
+
import"../../shared/@ai-setting/roy-agent-core-s7bgrtch.js";
|
|
82
87
|
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
83
|
-
import"../../shared/@ai-setting/roy-agent-core-6e3wz81d.js";
|
|
84
|
-
import"../../shared/@ai-setting/roy-agent-core-vdwvamre.js";
|
|
85
|
-
import"../../shared/@ai-setting/roy-agent-core-rgj6hq15.js";
|
|
86
|
-
import"../../shared/@ai-setting/roy-agent-core-rm3hay00.js";
|
|
87
88
|
import"../../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
88
89
|
import"../../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
89
90
|
import"../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PromptStore,
|
|
4
4
|
getBuiltInPrompt,
|
|
5
5
|
getBuiltInPromptNames
|
|
6
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "./shared/@ai-setting/roy-agent-core-5qe84a90.js";
|
|
7
7
|
import {
|
|
8
8
|
LLMComponent,
|
|
9
9
|
LLMConfigSchema,
|
|
@@ -15,18 +15,18 @@ import {
|
|
|
15
15
|
invoke,
|
|
16
16
|
invokeNonStream,
|
|
17
17
|
parseModelString
|
|
18
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
18
|
+
} from "./shared/@ai-setting/roy-agent-core-vfk5mtbx.js";
|
|
19
19
|
import {
|
|
20
20
|
ConfigComponent
|
|
21
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
21
|
+
} from "./shared/@ai-setting/roy-agent-core-pvswd18d.js";
|
|
22
22
|
import {
|
|
23
23
|
CommandsComponent
|
|
24
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
24
|
+
} from "./shared/@ai-setting/roy-agent-core-t32gmaqn.js";
|
|
25
25
|
import {
|
|
26
26
|
ToolComponent,
|
|
27
27
|
ToolRegistry,
|
|
28
28
|
ToolValidator
|
|
29
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
29
|
+
} from "./shared/@ai-setting/roy-agent-core-a8gvea2f.js";
|
|
30
30
|
import {
|
|
31
31
|
bashTool,
|
|
32
32
|
editFileTool,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import"./shared/@ai-setting/roy-agent-core-2grcjaad.js";
|
|
44
44
|
import {
|
|
45
45
|
MemoryComponent
|
|
46
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
46
|
+
} from "./shared/@ai-setting/roy-agent-core-d8v4n80n.js";
|
|
47
47
|
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
48
48
|
import {
|
|
49
49
|
MemoryPlugin,
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./shared/@ai-setting/roy-agent-core-c3ct1346.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugComponent
|
|
54
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
54
|
+
} from "./shared/@ai-setting/roy-agent-core-y30njf6b.js";
|
|
55
55
|
import {
|
|
56
56
|
ReplFormatter,
|
|
57
57
|
TraceFormatter,
|
|
@@ -61,13 +61,13 @@ import {
|
|
|
61
61
|
BaseEnvironment,
|
|
62
62
|
generateDescendingId,
|
|
63
63
|
generateId
|
|
64
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
64
|
+
} from "./shared/@ai-setting/roy-agent-core-8nd895aq.js";
|
|
65
65
|
import {
|
|
66
66
|
EventSourceComponent,
|
|
67
67
|
builtInHandlers,
|
|
68
68
|
getBuiltInHandler,
|
|
69
69
|
larkCliHandler
|
|
70
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
70
|
+
} from "./shared/@ai-setting/roy-agent-core-ezfwx334.js";
|
|
71
71
|
import {
|
|
72
72
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
73
73
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -80,26 +80,26 @@ import {
|
|
|
80
80
|
import {
|
|
81
81
|
LogTraceComponent,
|
|
82
82
|
LogTraceConfigSchema
|
|
83
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
83
|
+
} from "./shared/@ai-setting/roy-agent-core-w65c5gac.js";
|
|
84
84
|
import {
|
|
85
85
|
PluginComponent
|
|
86
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
86
|
+
} from "./shared/@ai-setting/roy-agent-core-mangq9x1.js";
|
|
87
87
|
import {
|
|
88
88
|
TaskTagPlugin
|
|
89
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
89
|
+
} from "./shared/@ai-setting/roy-agent-core-y85xsddt.js";
|
|
90
90
|
import {
|
|
91
91
|
BasePlugin
|
|
92
92
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
93
93
|
import {
|
|
94
94
|
WorkflowComponent
|
|
95
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
95
|
+
} from "./shared/@ai-setting/roy-agent-core-4b18eceq.js";
|
|
96
96
|
import {
|
|
97
97
|
init_node_registry_helper,
|
|
98
98
|
registerDecoratorNodeType
|
|
99
99
|
} from "./shared/@ai-setting/roy-agent-core-9bmtxmp6.js";
|
|
100
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
101
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
102
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
100
|
+
import"./shared/@ai-setting/roy-agent-core-316v7cm4.js";
|
|
101
|
+
import"./shared/@ai-setting/roy-agent-core-fy1y1aqx.js";
|
|
102
|
+
import"./shared/@ai-setting/roy-agent-core-9a2n122m.js";
|
|
103
103
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
104
104
|
import"./shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
105
105
|
import"./shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
@@ -118,17 +118,20 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
118
118
|
import {
|
|
119
119
|
AgentComponent,
|
|
120
120
|
AgentComponentConfigSchema
|
|
121
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
121
|
+
} from "./shared/@ai-setting/roy-agent-core-pa9wz5q0.js";
|
|
122
122
|
import {
|
|
123
123
|
AskUserError,
|
|
124
124
|
init_workflow_hil
|
|
125
125
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
126
126
|
import {
|
|
127
127
|
TaskComponent
|
|
128
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
128
|
+
} from "./shared/@ai-setting/roy-agent-core-wtnwxn8h.js";
|
|
129
129
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
130
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
131
|
-
import
|
|
130
|
+
import"./shared/@ai-setting/roy-agent-core-m5g2jx7f.js";
|
|
131
|
+
import {
|
|
132
|
+
SQLiteTaskStore,
|
|
133
|
+
getDefaultTaskDbPath
|
|
134
|
+
} from "./shared/@ai-setting/roy-agent-core-e8eefm0k.js";
|
|
132
135
|
import {
|
|
133
136
|
AgentRegistry
|
|
134
137
|
} from "./shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
@@ -137,18 +140,18 @@ import {
|
|
|
137
140
|
getXDGPath,
|
|
138
141
|
getXDGPaths
|
|
139
142
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
140
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
143
|
+
import"./shared/@ai-setting/roy-agent-core-hd6kd06t.js";
|
|
141
144
|
import"./shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
142
145
|
import {
|
|
143
146
|
TaskHookPoints
|
|
144
147
|
} from "./shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
145
148
|
import {
|
|
146
149
|
SkillComponent
|
|
147
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
150
|
+
} from "./shared/@ai-setting/roy-agent-core-qfdgg56t.js";
|
|
148
151
|
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
149
152
|
import {
|
|
150
153
|
McpComponent
|
|
151
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
154
|
+
} from "./shared/@ai-setting/roy-agent-core-sxd8snnj.js";
|
|
152
155
|
import {
|
|
153
156
|
AgentError,
|
|
154
157
|
ComponentError,
|
|
@@ -164,32 +167,33 @@ import"./shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
|
164
167
|
import"./shared/@ai-setting/roy-agent-core-1bfmxx89.js";
|
|
165
168
|
import {
|
|
166
169
|
SessionComponent
|
|
167
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
170
|
+
} from "./shared/@ai-setting/roy-agent-core-9sarrbw9.js";
|
|
168
171
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
169
172
|
import {
|
|
170
173
|
MemorySessionStore
|
|
171
174
|
} from "./shared/@ai-setting/roy-agent-core-6mcb7nqa.js";
|
|
172
175
|
import"./shared/@ai-setting/roy-agent-core-kwhv9dcd.js";
|
|
173
176
|
import"./shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
174
|
-
import {
|
|
175
|
-
Traced,
|
|
176
|
-
TracedAs,
|
|
177
|
-
TracedLightweight,
|
|
178
|
-
wrapFunction
|
|
179
|
-
} from "./shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
180
177
|
import"./shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
181
178
|
import {
|
|
182
179
|
BaseComponent
|
|
183
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
180
|
+
} from "./shared/@ai-setting/roy-agent-core-rjf59e7k.js";
|
|
184
181
|
import {
|
|
185
182
|
createHook,
|
|
186
183
|
createPriorityHook
|
|
187
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
184
|
+
} from "./shared/@ai-setting/roy-agent-core-yq4fv8ce.js";
|
|
188
185
|
import {
|
|
189
186
|
HookManager,
|
|
190
187
|
globalHookManager
|
|
191
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
192
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
188
|
+
} from "./shared/@ai-setting/roy-agent-core-48v06q1b.js";
|
|
189
|
+
import"./shared/@ai-setting/roy-agent-core-c7cm1wjt.js";
|
|
190
|
+
import"./shared/@ai-setting/roy-agent-core-s7bgrtch.js";
|
|
191
|
+
import {
|
|
192
|
+
Traced,
|
|
193
|
+
TracedAs,
|
|
194
|
+
TracedLightweight,
|
|
195
|
+
wrapFunction
|
|
196
|
+
} from "./shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
193
197
|
import {
|
|
194
198
|
createLogger,
|
|
195
199
|
getLogDir,
|
|
@@ -361,6 +365,7 @@ export {
|
|
|
361
365
|
getLogLevel,
|
|
362
366
|
getLogDir,
|
|
363
367
|
getErrorCode,
|
|
368
|
+
getDefaultTaskDbPath,
|
|
364
369
|
getDefaultConfigForType,
|
|
365
370
|
getBuiltInTool,
|
|
366
371
|
getBuiltInPromptNames,
|
|
@@ -400,6 +405,7 @@ export {
|
|
|
400
405
|
SpanKind,
|
|
401
406
|
SkillComponent,
|
|
402
407
|
SessionComponent,
|
|
408
|
+
SQLiteTaskStore,
|
|
403
409
|
SQLiteSpanStorage,
|
|
404
410
|
RoyError,
|
|
405
411
|
ReplFormatter,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponentAdapter,
|
|
3
3
|
init_agent_component_adapter
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-fy1y1aqx.js";
|
|
5
5
|
import {
|
|
6
6
|
buildWorkflowNodeMetadata,
|
|
7
7
|
getWorkflowNodeIdFromMetadata,
|
|
@@ -1923,7 +1923,8 @@ var init_engine = __esm(() => {
|
|
|
1923
1923
|
this.failWorkflow(sessionState, error);
|
|
1924
1924
|
});
|
|
1925
1925
|
if (options?.sync !== false) {
|
|
1926
|
-
|
|
1926
|
+
const wfTimeout = options?.timeout ?? sessionState.config.timeout ?? undefined;
|
|
1927
|
+
return this.waitForCompletion(sessionId, wfTimeout);
|
|
1927
1928
|
}
|
|
1928
1929
|
return { runId, status: "running" };
|
|
1929
1930
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
WorkflowEngine,
|
|
7
7
|
exports_engine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-316v7cm4.js";
|
|
10
10
|
import {
|
|
11
11
|
WorkflowService
|
|
12
12
|
} from "./roy-agent-core-4t40mkpv.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./roy-agent-core-0vbdz0x7.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseComponent
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-rjf59e7k.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
@@ -136,7 +136,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
136
136
|
const agentComponent = this._workflowEnv.getComponent("agent");
|
|
137
137
|
const llmComponent = this._workflowEnv.getComponent("llm");
|
|
138
138
|
if (agentComponent) {
|
|
139
|
-
const { AgentComponentAdapter } = await import("./roy-agent-core-
|
|
139
|
+
const { AgentComponentAdapter } = await import("./roy-agent-core-fpb999vd.js");
|
|
140
140
|
agentRunner = new AgentComponentAdapter(agentComponent, {}, this.sessionComponent, llmComponent);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -208,7 +208,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
208
208
|
const sessionComponent = this._workflowEnv?.getComponent("session");
|
|
209
209
|
componentLogger.info(`initSqliteService - toolComponent: ${!!toolComponent}, llmComponent: ${!!llmComponent}, skillRegistry: ${!!skillComponent}, sessionComponent: ${!!sessionComponent}`);
|
|
210
210
|
if (llmComponent) {
|
|
211
|
-
const { registerWorkflowJsonOutputPlugin } = await import("./roy-agent-core-
|
|
211
|
+
const { registerWorkflowJsonOutputPlugin } = await import("./roy-agent-core-5ng0awvn.js");
|
|
212
212
|
registerWorkflowJsonOutputPlugin(llmComponent);
|
|
213
213
|
}
|
|
214
214
|
this.createService({
|
|
@@ -10,12 +10,13 @@ import {
|
|
|
10
10
|
tracedExtractStructuredJsonViaLlm,
|
|
11
11
|
tracedRunWorkflowJsonOutputExtraction,
|
|
12
12
|
unregisterWorkflowJsonOutputPlugin
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-9a2n122m.js";
|
|
14
14
|
import"./roy-agent-core-nhfy3p8q.js";
|
|
15
15
|
import"./roy-agent-core-e25xkv53.js";
|
|
16
|
+
import"./roy-agent-core-48v06q1b.js";
|
|
17
|
+
import"./roy-agent-core-c7cm1wjt.js";
|
|
18
|
+
import"./roy-agent-core-s7bgrtch.js";
|
|
16
19
|
import"./roy-agent-core-q5qj0fes.js";
|
|
17
|
-
import"./roy-agent-core-rgj6hq15.js";
|
|
18
|
-
import"./roy-agent-core-rm3hay00.js";
|
|
19
20
|
import"./roy-agent-core-10n2jh7p.js";
|
|
20
21
|
import"./roy-agent-core-58k274fg.js";
|
|
21
22
|
import"./roy-agent-core-c6592r3c.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseComponent
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-rjf59e7k.js";
|
|
11
11
|
import {
|
|
12
12
|
createHook
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-yq4fv8ce.js";
|
|
14
14
|
import {
|
|
15
15
|
globalHookManager,
|
|
16
16
|
init_global_hook_manager
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-48v06q1b.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
@@ -438,15 +438,20 @@ roy-agent <command> <subcmd> --help
|
|
|
438
438
|
- Feature development or bug fixes
|
|
439
439
|
- The user explicitly asks to track or manage a task
|
|
440
440
|
|
|
441
|
-
**⚠️
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
441
|
+
**⚠️ Task Selection Logic — PRIORITY ORDER**:
|
|
442
|
+
1. **If [当前 Task #N] is provided in the context** (via additionInfo):
|
|
443
|
+
Use \`task_get #N\` directly to read the task details.
|
|
444
|
+
**Do NOT search** — this is the confirmed task to work on.
|
|
445
|
+
Skip the search step entirely and proceed with context gathering.
|
|
446
|
+
2. **If no taskId is in context, OR task_get fails** (task not found):
|
|
447
|
+
Fall back to \`task_list\` to search for existing tasks related to the
|
|
448
|
+
current request. Many tasks are continuations of previous work.
|
|
449
|
+
If a relevant task exists, use \`task_update\` to extend it:
|
|
450
|
+
- **Append** new information to description and goals (do NOT replace)
|
|
451
|
+
- Update \`current_status\` to reflect the new scope
|
|
452
|
+
- Create an operation record to document the continuation
|
|
453
|
+
3. **Only** create a brand-new task via \`task_create\` if:
|
|
454
|
+
- No taskId in context, AND no relevant existing task found.
|
|
450
455
|
|
|
451
456
|
### Task Management Tools
|
|
452
457
|
|
|
@@ -469,10 +474,11 @@ Follow this lifecycle for every task:
|
|
|
469
474
|
|
|
470
475
|
\`\`\`text
|
|
471
476
|
┌─────────────────────────────────────────────────────────────────┐
|
|
472
|
-
│ 0. SEARCH
|
|
473
|
-
│ -
|
|
474
|
-
│
|
|
475
|
-
│
|
|
477
|
+
│ 0. CHECK TASK CONTEXT OR SEARCH │
|
|
478
|
+
│ - First: Check if [当前 Task #N] is in the context │
|
|
479
|
+
│ If yes → use \`task_get #N\` directly, skip to step 1 │
|
|
480
|
+
│ - If no taskId in context: │
|
|
481
|
+
│ Use \`task_list\` to search for existing related tasks │
|
|
476
482
|
│ - If found → reuse, extend, and update (see rules below) │
|
|
477
483
|
│ - If not found → proceed to step 1 │
|
|
478
484
|
└─────────────────────────────────────────────────────────────────┘
|
|
@@ -561,6 +567,12 @@ When reusing an existing task, you MUST follow these rules:
|
|
|
561
567
|
|
|
562
568
|
**Before starting any task-related work, you MUST gather context:**
|
|
563
569
|
|
|
570
|
+
**Step 0: Check for Task ID in Context**
|
|
571
|
+
- If the system provides \`[当前 Task #N]\` in the context messages:
|
|
572
|
+
Use \`task_get #N\` directly — this is your confirmed task. **Skip searching.**
|
|
573
|
+
- If no taskId is provided, use \`task_list\` to search for existing related tasks.
|
|
574
|
+
|
|
575
|
+
**Then gather full context:**
|
|
564
576
|
1. **Read task details**: Use \`task_get\` to read description, goals, status
|
|
565
577
|
2. **Read operation history**: Use \`task_operation_list\` to get the last ~20 operation records
|
|
566
578
|
3. **Read parent context** (if \`parent_task_id\` exists): Understand overall goal
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
ContextError,
|
|
3
3
|
ErrorCodes
|
|
4
4
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
5
|
-
import {
|
|
6
|
-
TracedAs,
|
|
7
|
-
init_decorator
|
|
8
|
-
} from "./roy-agent-core-q5qj0fes.js";
|
|
9
5
|
import {
|
|
10
6
|
BaseComponent
|
|
11
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-rjf59e7k.js";
|
|
12
8
|
import {
|
|
13
9
|
init_context
|
|
14
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-c7cm1wjt.js";
|
|
11
|
+
import {
|
|
12
|
+
TracedAs,
|
|
13
|
+
init_decorator
|
|
14
|
+
} from "./roy-agent-core-q5qj0fes.js";
|
|
15
15
|
import {
|
|
16
16
|
createLogger,
|
|
17
17
|
init_logger
|
|
@@ -142,14 +142,10 @@ class BaseEnvironment extends BaseComponent {
|
|
|
142
142
|
"write_file",
|
|
143
143
|
"edit_file",
|
|
144
144
|
"task_create",
|
|
145
|
-
"task_get",
|
|
146
|
-
"task_list",
|
|
147
145
|
"task_update",
|
|
148
146
|
"task_delete",
|
|
149
147
|
"task_complete",
|
|
150
148
|
"task_operation_create",
|
|
151
|
-
"task_operation_get",
|
|
152
|
-
"task_operation_list",
|
|
153
149
|
"task_operation_update",
|
|
154
150
|
"task_operation_delete",
|
|
155
151
|
"skill",
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
AskUserError,
|
|
9
9
|
init_workflow_hil
|
|
10
10
|
} from "./roy-agent-core-e25xkv53.js";
|
|
11
|
+
import {
|
|
12
|
+
globalHookManager,
|
|
13
|
+
init_global_hook_manager
|
|
14
|
+
} from "./roy-agent-core-48v06q1b.js";
|
|
11
15
|
import {
|
|
12
16
|
init_decorator,
|
|
13
17
|
wrapFunction
|
|
14
18
|
} from "./roy-agent-core-q5qj0fes.js";
|
|
15
|
-
import {
|
|
16
|
-
globalHookManager,
|
|
17
|
-
init_global_hook_manager
|
|
18
|
-
} from "./roy-agent-core-rgj6hq15.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SummaryAgent
|
|
12
12
|
} from "./roy-agent-core-kwhv9dcd.js";
|
|
13
|
-
import {
|
|
14
|
-
TracedAs,
|
|
15
|
-
init_decorator
|
|
16
|
-
} from "./roy-agent-core-q5qj0fes.js";
|
|
17
13
|
import {
|
|
18
14
|
envKeyToConfigKey
|
|
19
15
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
20
16
|
import {
|
|
21
17
|
BaseComponent
|
|
22
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-rjf59e7k.js";
|
|
19
|
+
import {
|
|
20
|
+
TracedAs,
|
|
21
|
+
init_decorator
|
|
22
|
+
} from "./roy-agent-core-q5qj0fes.js";
|
|
23
23
|
import {
|
|
24
24
|
createLogger,
|
|
25
25
|
init_logger
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseComponent
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-rjf59e7k.js";
|
|
12
12
|
import {
|
|
13
13
|
ToolHookPoints,
|
|
14
14
|
globalHookManager,
|
|
15
15
|
init_global_hook_manager
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-48v06q1b.js";
|
|
17
17
|
import {
|
|
18
18
|
createLogger,
|
|
19
19
|
init_logger
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_env_context
|
|
3
|
+
} from "./roy-agent-core-s7bgrtch.js";
|
|
4
|
+
import {
|
|
5
|
+
__esm
|
|
6
|
+
} from "./roy-agent-core-fs0mn2jk.js";
|
|
7
|
+
|
|
8
|
+
// src/env/context/index.ts
|
|
9
|
+
var init_context = __esm(() => {
|
|
10
|
+
init_env_context();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
export { init_context };
|