@ai-setting/roy-agent-core 1.5.48 → 1.5.49
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 +6 -5
- package/dist/env/agent/index.js +6 -5
- package/dist/env/commands/index.js +6 -5
- package/dist/env/context/index.js +9 -3
- package/dist/env/debug/index.js +6 -5
- package/dist/env/event-source/index.js +8 -7
- package/dist/env/hook/index.js +4 -3
- package/dist/env/index.js +20 -19
- package/dist/env/llm/index.js +6 -5
- package/dist/env/log-trace/index.js +6 -5
- package/dist/env/mcp/index.js +6 -5
- package/dist/env/memory/index.js +6 -5
- package/dist/env/plugin/index.js +6 -5
- package/dist/env/prompt/index.js +6 -5
- package/dist/env/session/index.js +6 -5
- package/dist/env/skill/index.js +6 -5
- package/dist/env/task/delegate/index.js +4 -3
- package/dist/env/task/index.js +15 -10
- 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 +5 -1
- package/dist/env/tool/index.js +6 -5
- package/dist/env/workflow/engine/index.js +6 -5
- package/dist/env/workflow/index.js +9 -8
- package/dist/index.js +34 -28
- package/dist/shared/@ai-setting/{roy-agent-core-4gmxjdhn.js → roy-agent-core-14fna5qg.js} +4 -2
- package/dist/shared/@ai-setting/{roy-agent-core-2rtka82a.js → roy-agent-core-1a38hg1q.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pm73be85.js → roy-agent-core-2m5qnhv9.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-1t5esk1r.js → roy-agent-core-3nw9vxp2.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-pyv1vb7v.js → roy-agent-core-476ewnwy.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mjbfgqen.js → roy-agent-core-4zjdkqry.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-00cpsj5z.js → roy-agent-core-5dkewp2h.js} +2 -6
- package/dist/shared/@ai-setting/{roy-agent-core-hdszq729.js → roy-agent-core-607ktjxs.js} +7 -5
- package/dist/shared/@ai-setting/{roy-agent-core-wa1kzqky.js → roy-agent-core-7qj11qp8.js} +46 -2
- package/dist/shared/@ai-setting/roy-agent-core-8f8dq3kj.js +13 -0
- package/dist/shared/@ai-setting/{roy-agent-core-eftqdsy5.js → roy-agent-core-8whpa5yz.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-zwq6vhpj.js → roy-agent-core-bjphrqsm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cg23b692.js → roy-agent-core-cv8kqab8.js} +28 -16
- package/dist/shared/@ai-setting/{roy-agent-core-1rzpnycm.js → roy-agent-core-d40gbvzj.js} +3 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rm3hay00.js → roy-agent-core-dre9rcs0.js} +7 -6
- package/dist/shared/@ai-setting/{roy-agent-core-rx74rye7.js → roy-agent-core-dvrfs18y.js} +2 -2
- 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-a5rhnsrg.js → roy-agent-core-g3j3ftbw.js} +45 -6
- package/dist/shared/@ai-setting/{roy-agent-core-6e3wz81d.js → roy-agent-core-gfzqwb6v.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-twd8kzag.js → roy-agent-core-h6bqx4jj.js} +5 -4
- package/dist/shared/@ai-setting/{roy-agent-core-kzbj10gk.js → roy-agent-core-n1awj8ks.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-rgj6hq15.js → roy-agent-core-nxf64fn4.js} +4 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ebap34m2.js → roy-agent-core-pxp9yq24.js} +4 -3
- package/dist/shared/@ai-setting/{roy-agent-core-ja9qhg6d.js → roy-agent-core-rrsn14cr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4k9a823d.js → roy-agent-core-rwt7b6dh.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-38sc085e.js → roy-agent-core-sj2yd6g4.js} +17 -6
- package/dist/shared/@ai-setting/{roy-agent-core-sk535ft2.js → roy-agent-core-wv9as4ds.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-20fm423j.js → roy-agent-core-xpw0mtfv.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ztx5eh72.js → roy-agent-core-ym6qbh1e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-g56g1jp6.js → roy-agent-core-yv7dppda.js} +11 -6
- package/dist/shared/@ai-setting/{roy-agent-core-vdwvamre.js → roy-agent-core-z3pq1nx9.js} +1 -1
- package/package.json +1 -1
|
@@ -6,9 +6,9 @@ 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-d40gbvzj.js";
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-1a38hg1q.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-n1awj8ks.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";
|
|
@@ -16,8 +16,9 @@ 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
18
|
import"../../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
19
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
20
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
19
|
+
import"../../../shared/@ai-setting/roy-agent-core-nxf64fn4.js";
|
|
20
|
+
import"../../../shared/@ai-setting/roy-agent-core-8f8dq3kj.js";
|
|
21
|
+
import"../../../shared/@ai-setting/roy-agent-core-dre9rcs0.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-3nw9vxp2.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-d40gbvzj.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-1a38hg1q.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-n1awj8ks.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";
|
|
@@ -80,10 +80,11 @@ import {
|
|
|
80
80
|
createWorkflowAskUserEvent
|
|
81
81
|
} from "../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
82
82
|
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
83
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
84
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
85
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
86
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
83
|
+
import"../../shared/@ai-setting/roy-agent-core-gfzqwb6v.js";
|
|
84
|
+
import"../../shared/@ai-setting/roy-agent-core-z3pq1nx9.js";
|
|
85
|
+
import"../../shared/@ai-setting/roy-agent-core-nxf64fn4.js";
|
|
86
|
+
import"../../shared/@ai-setting/roy-agent-core-8f8dq3kj.js";
|
|
87
|
+
import"../../shared/@ai-setting/roy-agent-core-dre9rcs0.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-cv8kqab8.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-xpw0mtfv.js";
|
|
19
19
|
import {
|
|
20
20
|
ConfigComponent
|
|
21
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
21
|
+
} from "./shared/@ai-setting/roy-agent-core-8whpa5yz.js";
|
|
22
22
|
import {
|
|
23
23
|
CommandsComponent
|
|
24
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
24
|
+
} from "./shared/@ai-setting/roy-agent-core-rwt7b6dh.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-dvrfs18y.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-ym6qbh1e.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-bjphrqsm.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-5dkewp2h.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-607ktjxs.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-rrsn14cr.js";
|
|
84
84
|
import {
|
|
85
85
|
PluginComponent
|
|
86
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
86
|
+
} from "./shared/@ai-setting/roy-agent-core-4zjdkqry.js";
|
|
87
87
|
import {
|
|
88
88
|
TaskTagPlugin
|
|
89
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
89
|
+
} from "./shared/@ai-setting/roy-agent-core-14fna5qg.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-3nw9vxp2.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-d40gbvzj.js";
|
|
101
|
+
import"./shared/@ai-setting/roy-agent-core-1a38hg1q.js";
|
|
102
|
+
import"./shared/@ai-setting/roy-agent-core-n1awj8ks.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-sj2yd6g4.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-yv7dppda.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-g3j3ftbw.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-7qj11qp8.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-wv9as4ds.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-2m5qnhv9.js";
|
|
152
155
|
import {
|
|
153
156
|
AgentError,
|
|
154
157
|
ComponentError,
|
|
@@ -164,7 +167,7 @@ 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-476ewnwy.js";
|
|
168
171
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
169
172
|
import {
|
|
170
173
|
MemorySessionStore
|
|
@@ -180,16 +183,17 @@ import {
|
|
|
180
183
|
import"./shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
181
184
|
import {
|
|
182
185
|
BaseComponent
|
|
183
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
186
|
+
} from "./shared/@ai-setting/roy-agent-core-gfzqwb6v.js";
|
|
184
187
|
import {
|
|
185
188
|
createHook,
|
|
186
189
|
createPriorityHook
|
|
187
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
190
|
+
} from "./shared/@ai-setting/roy-agent-core-z3pq1nx9.js";
|
|
188
191
|
import {
|
|
189
192
|
HookManager,
|
|
190
193
|
globalHookManager
|
|
191
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
192
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
194
|
+
} from "./shared/@ai-setting/roy-agent-core-nxf64fn4.js";
|
|
195
|
+
import"./shared/@ai-setting/roy-agent-core-8f8dq3kj.js";
|
|
196
|
+
import"./shared/@ai-setting/roy-agent-core-dre9rcs0.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,
|
|
@@ -9,9 +9,11 @@ import {
|
|
|
9
9
|
init_decorator
|
|
10
10
|
} from "./roy-agent-core-q5qj0fes.js";
|
|
11
11
|
import {
|
|
12
|
-
getEnvContextOrEmpty,
|
|
13
12
|
init_context
|
|
14
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-8f8dq3kj.js";
|
|
14
|
+
import {
|
|
15
|
+
getEnvContextOrEmpty
|
|
16
|
+
} from "./roy-agent-core-dre9rcs0.js";
|
|
15
17
|
import {
|
|
16
18
|
createLogger,
|
|
17
19
|
init_logger
|
|
@@ -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-d40gbvzj.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-gfzqwb6v.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-h6bqx4jj.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-pxp9yq24.js");
|
|
212
212
|
registerWorkflowJsonOutputPlugin(llmComponent);
|
|
213
213
|
}
|
|
214
214
|
this.createService({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseComponent
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-gfzqwb6v.js";
|
|
4
4
|
import {
|
|
5
5
|
globalHookManager,
|
|
6
6
|
init_global_hook_manager
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-nxf64fn4.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
} from "./roy-agent-core-q5qj0fes.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseComponent
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-gfzqwb6v.js";
|
|
12
12
|
import {
|
|
13
13
|
init_context
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-8f8dq3kj.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",
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TaskTagPlugin,
|
|
3
3
|
createLarkCliTaskNotifyHook
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-14fna5qg.js";
|
|
5
5
|
import {
|
|
6
6
|
envKeyToConfigKey
|
|
7
7
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseComponent
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-gfzqwb6v.js";
|
|
11
11
|
import {
|
|
12
12
|
globalHookManager,
|
|
13
13
|
init_global_hook_manager
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-nxf64fn4.js";
|
|
15
|
+
import {
|
|
16
|
+
init_context
|
|
17
|
+
} from "./roy-agent-core-8f8dq3kj.js";
|
|
15
18
|
import {
|
|
16
19
|
createEnvContext,
|
|
17
|
-
init_context,
|
|
18
20
|
runWithEnvContext
|
|
19
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-dre9rcs0.js";
|
|
20
22
|
import {
|
|
21
23
|
createLogger,
|
|
22
24
|
init_logger
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_env_context,
|
|
3
|
+
mergeEnvContext
|
|
4
|
+
} from "./roy-agent-core-dre9rcs0.js";
|
|
5
|
+
import {
|
|
6
|
+
createLogger,
|
|
7
|
+
init_logger
|
|
8
|
+
} from "./roy-agent-core-10n2jh7p.js";
|
|
9
|
+
|
|
1
10
|
// src/env/task/tools/task-types.ts
|
|
2
11
|
import { z } from "zod";
|
|
3
12
|
var CreateTaskToolSchema = z.object({
|
|
4
13
|
title: z.string().describe("Task title"),
|
|
5
14
|
description: z.string().optional().describe("Task description"),
|
|
6
15
|
priority: z.enum(["low", "medium", "high"]).optional().describe("Task priority"),
|
|
16
|
+
type: z.enum(["normal", "cycle", "longterm"]).optional().default("normal").describe("Task type. normal: 常规任务,需要跟踪完成. cycle: 周期任务(如每周发周报),无需 complete,定期执行. longterm: 长期任务/愿景目标(如提升公司影响力),难以一次性完成,持续跟进"),
|
|
7
17
|
goals_and_expected_deliverables: z.string().optional().describe("Goals and expected deliverables"),
|
|
8
18
|
due_date: z.string().optional().describe("Due date (ISO format)"),
|
|
9
19
|
tags: z.array(z.string()).optional().describe("Task tags (for search, stored in task.tags JSON field)"),
|
|
@@ -17,6 +27,7 @@ var GetTaskToolSchema = z.object({
|
|
|
17
27
|
var ListTasksToolSchema = z.object({
|
|
18
28
|
status: z.enum(["todo", "active", "completed", "paused", "cancelled"]).optional(),
|
|
19
29
|
priority: z.enum(["low", "medium", "high"]).optional(),
|
|
30
|
+
type: z.enum(["normal", "cycle", "longterm"]).optional().describe("Filter by task type"),
|
|
20
31
|
limit: z.number().optional().default(20),
|
|
21
32
|
offset: z.number().optional().default(0)
|
|
22
33
|
});
|
|
@@ -26,6 +37,7 @@ var UpdateTaskToolSchema = z.object({
|
|
|
26
37
|
description: z.string().optional(),
|
|
27
38
|
status: z.enum(["todo", "active", "completed", "paused", "cancelled"]).optional(),
|
|
28
39
|
priority: z.enum(["low", "medium", "high"]).optional(),
|
|
40
|
+
type: z.enum(["normal", "cycle", "longterm"]).optional().describe("Task type"),
|
|
29
41
|
progress: z.number().min(0).max(100).optional(),
|
|
30
42
|
current_status: z.string().optional(),
|
|
31
43
|
goals_and_expected_deliverables: z.string().optional(),
|
|
@@ -39,6 +51,9 @@ var DeleteTaskToolSchema = z.object({
|
|
|
39
51
|
});
|
|
40
52
|
|
|
41
53
|
// src/env/task/tools/create-tool.ts
|
|
54
|
+
init_env_context();
|
|
55
|
+
init_logger();
|
|
56
|
+
var logger = createLogger("task:tools:create");
|
|
42
57
|
function createTaskTool(taskComponent) {
|
|
43
58
|
return {
|
|
44
59
|
name: "task_create",
|
|
@@ -64,7 +79,9 @@ function createTaskTool(taskComponent) {
|
|
|
64
79
|
**Core fields**:
|
|
65
80
|
- worktree_path: Git worktree path (for code development)
|
|
66
81
|
- branch: Current branch name
|
|
67
|
-
- type:
|
|
82
|
+
- type: Work type classification (feature/bug/refactor/chore).
|
|
83
|
+
⚠️ NOTE: This is the **context.type** (work classification), NOT the
|
|
84
|
+
task's type field (normal/cycle/longterm). They are independent concepts.
|
|
68
85
|
|
|
69
86
|
**Example for coding tasks**:
|
|
70
87
|
{"worktree_path": "/path/to/worktree", "branch": "feature/xyz", "type": "feature", "parent_branch": "main"}
|
|
@@ -86,6 +103,7 @@ function createTaskTool(taskComponent) {
|
|
|
86
103
|
title: params.title,
|
|
87
104
|
description: params.description,
|
|
88
105
|
priority: params.priority,
|
|
106
|
+
type: params.type || "normal",
|
|
89
107
|
goals_and_expected_deliverables: params.goals_and_expected_deliverables,
|
|
90
108
|
due_date: params.due_date,
|
|
91
109
|
tags: params.tags,
|
|
@@ -93,6 +111,8 @@ function createTaskTool(taskComponent) {
|
|
|
93
111
|
project_path: params.project_path,
|
|
94
112
|
context: params.context
|
|
95
113
|
});
|
|
114
|
+
mergeEnvContext({ currentTaskId: task.id });
|
|
115
|
+
logger.info(`[createTask] Trace: Task #${task.id} created, currentTaskId=${task.id} set in EnvContext`);
|
|
96
116
|
return {
|
|
97
117
|
success: true,
|
|
98
118
|
output: `Task created successfully: #${task.id} - ${task.title}`,
|
|
@@ -169,7 +189,7 @@ function getTaskTool(taskComponent) {
|
|
|
169
189
|
function listTasksTool(taskComponent) {
|
|
170
190
|
return {
|
|
171
191
|
name: "task_list",
|
|
172
|
-
description: "List tasks with optional filters for status and
|
|
192
|
+
description: "List tasks with optional filters for status, priority, and type.",
|
|
173
193
|
parameters: ListTasksToolSchema,
|
|
174
194
|
execute: async (args, ctx) => {
|
|
175
195
|
const params = ListTasksToolSchema.parse(args);
|
|
@@ -177,6 +197,7 @@ function listTasksTool(taskComponent) {
|
|
|
177
197
|
const tasks = await taskComponent.listTasks({
|
|
178
198
|
status: params.status,
|
|
179
199
|
priority: params.priority,
|
|
200
|
+
type: params.type,
|
|
180
201
|
limit: params.limit,
|
|
181
202
|
offset: params.offset
|
|
182
203
|
});
|
|
@@ -211,6 +232,7 @@ function updateTaskTool(taskComponent) {
|
|
|
211
232
|
description: params.description,
|
|
212
233
|
status: params.status,
|
|
213
234
|
priority: params.priority,
|
|
235
|
+
type: params.type,
|
|
214
236
|
progress: params.progress,
|
|
215
237
|
current_status: params.current_status,
|
|
216
238
|
goals_and_expected_deliverables: params.goals_and_expected_deliverables,
|
|
@@ -291,6 +313,9 @@ function deleteTaskTool(taskComponent) {
|
|
|
291
313
|
};
|
|
292
314
|
}
|
|
293
315
|
// src/env/task/tools/complete-tool.ts
|
|
316
|
+
init_env_context();
|
|
317
|
+
init_logger();
|
|
318
|
+
var logger2 = createLogger("task:tools:complete");
|
|
294
319
|
function completeTaskTool(taskComponent) {
|
|
295
320
|
return {
|
|
296
321
|
name: "task_complete",
|
|
@@ -300,6 +325,23 @@ function completeTaskTool(taskComponent) {
|
|
|
300
325
|
const params = DeleteTaskToolSchema.parse(args);
|
|
301
326
|
const sessionId = ctx.session_id || "unknown";
|
|
302
327
|
try {
|
|
328
|
+
const currentTask = await taskComponent.getTask(params.task_id);
|
|
329
|
+
if (!currentTask) {
|
|
330
|
+
return {
|
|
331
|
+
success: false,
|
|
332
|
+
output: "",
|
|
333
|
+
error: `Task not found: ${params.task_id}`,
|
|
334
|
+
metadata: { execution_time_ms: 0 }
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
if (currentTask.type === "cycle") {
|
|
338
|
+
return {
|
|
339
|
+
success: false,
|
|
340
|
+
output: "",
|
|
341
|
+
error: `Cannot complete a cycle-type task (id: ${params.task_id}). Cycle tasks are periodic (e.g., weekly reports) and should not be marked as completed. Use task_update to reset progress instead.`,
|
|
342
|
+
metadata: { execution_time_ms: 0 }
|
|
343
|
+
};
|
|
344
|
+
}
|
|
303
345
|
const task = await taskComponent.completeTask(params.task_id, sessionId);
|
|
304
346
|
if (!task) {
|
|
305
347
|
return {
|
|
@@ -309,6 +351,8 @@ function completeTaskTool(taskComponent) {
|
|
|
309
351
|
metadata: { execution_time_ms: 0 }
|
|
310
352
|
};
|
|
311
353
|
}
|
|
354
|
+
mergeEnvContext({ currentTaskId: undefined });
|
|
355
|
+
logger2.info(`[completeTask] Trace: Task #${params.task_id} completed, currentTaskId cleared from EnvContext`);
|
|
312
356
|
return {
|
|
313
357
|
success: true,
|
|
314
358
|
output: `Task completed: #${task.id} - ${task.title}`,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_env_context
|
|
3
|
+
} from "./roy-agent-core-dre9rcs0.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 };
|
|
@@ -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-gfzqwb6v.js";
|
|
11
11
|
import {
|
|
12
12
|
createHook
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-z3pq1nx9.js";
|
|
14
14
|
import {
|
|
15
15
|
globalHookManager,
|
|
16
16
|
init_global_hook_manager
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-nxf64fn4.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
|