@ai-setting/roy-agent-core 1.7.37 → 1.7.38
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 +7 -7
- package/dist/env/agent/index.js +10 -10
- package/dist/env/commands/index.js +7 -7
- package/dist/env/context/index.js +3 -3
- package/dist/env/debug/index.js +7 -7
- package/dist/env/event-source/index.js +24 -14
- package/dist/env/hook/index.js +5 -5
- package/dist/env/index.js +33 -32
- package/dist/env/llm/index.js +7 -7
- package/dist/env/log-trace/index.js +7 -7
- package/dist/env/mcp/index.js +7 -7
- package/dist/env/memory/index.js +7 -7
- package/dist/env/plugin/index.js +7 -7
- package/dist/env/prompt/index.js +7 -7
- package/dist/env/session/index.js +7 -7
- package/dist/env/skill/index.js +7 -7
- package/dist/env/task/delegate/index.js +7 -6
- package/dist/env/task/index.js +12 -11
- package/dist/env/task/plugins/index.js +7 -7
- package/dist/env/task/storage/index.js +2 -2
- package/dist/env/task/tools/index.js +3 -3
- package/dist/env/tool/built-in/index.js +2 -2
- package/dist/env/tool/index.js +8 -8
- package/dist/env/workflow/engine/index.js +9 -9
- package/dist/env/workflow/index.js +17 -17
- package/dist/env/workflow/nodes/index.js +2 -2
- package/dist/env/workflow/service/index.js +2 -2
- package/dist/env/workflow/storage/index.js +3 -3
- package/dist/env/workflow/tools/index.js +11 -11
- package/dist/env/workflow/utils/index.js +4 -4
- package/dist/index.js +53 -43
- package/dist/shared/@ai-setting/{roy-agent-core-yf0ex8y1.js → roy-agent-core-333apxaa.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mdaew65f.js → roy-agent-core-3m7j2wcb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9drbkjfr.js → roy-agent-core-4cj6hram.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-zda3rfr3.js → roy-agent-core-4kbvfnn1.js} +54 -5
- package/dist/shared/@ai-setting/{roy-agent-core-88tfzaxg.js → roy-agent-core-5gpf5j51.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jq7g5nxz.js → roy-agent-core-5j4awbgc.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-wgttzq8e.js → roy-agent-core-6vbgswjw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pxyyrxnn.js → roy-agent-core-83j0v0hs.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-j9ejsmsj.js → roy-agent-core-8nv07zgr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-a8zf7ts4.js → roy-agent-core-970btnjh.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-yw07bvqz.js → roy-agent-core-9cqpdrnk.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-q3zvkbj6.js → roy-agent-core-9qn92jhf.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-462v5d24.js → roy-agent-core-9wsy4yfv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qhjm0bxm.js → roy-agent-core-a9pbda78.js} +23 -13
- package/dist/shared/@ai-setting/{roy-agent-core-mxwaq8ey.js → roy-agent-core-cd9h49ng.js} +13 -13
- package/dist/shared/@ai-setting/{roy-agent-core-ds5f75pg.js → roy-agent-core-ck60j1q9.js} +19 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2qke91fm.js → roy-agent-core-dfnyvxr9.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-zekkw27m.js → roy-agent-core-e02f0ywc.js} +69 -24
- package/dist/shared/@ai-setting/{roy-agent-core-e4v61k3j.js → roy-agent-core-e5pnnzdm.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-1btakphh.js → roy-agent-core-e8rxb9a6.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-whta3f53.js → roy-agent-core-ff2ssff5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-s53yya0w.js → roy-agent-core-gh6szaj5.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-em8618g6.js → roy-agent-core-gpf33hn9.js} +214 -13
- package/dist/shared/@ai-setting/{roy-agent-core-qhtejtpc.js → roy-agent-core-hfmpmt0k.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qz9jb9sp.js → roy-agent-core-hkj5v9xq.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fytqnxrd.js → roy-agent-core-mzyzdf33.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-1vj7dd14.js → roy-agent-core-nz4n1w28.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-q8vew3zh.js → roy-agent-core-p0c98phj.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-dfay0w56.js → roy-agent-core-p2ham63a.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-d5gwqrr5.js → roy-agent-core-pd0exvnq.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-x4wev4rn.js → roy-agent-core-q3vbxprp.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-e3qjt852.js → roy-agent-core-rgpkygbc.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2wbdfrtg.js → roy-agent-core-rhfywyz1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-k5csz66y.js → roy-agent-core-tm57tmds.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-bb57xjfh.js → roy-agent-core-vh10qamt.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-1q6gjxba.js → roy-agent-core-vn6f4nxv.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-1nvqn17p.js → roy-agent-core-wacnvjaq.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-dzfyjzgw.js → roy-agent-core-wb1b61f8.js} +20 -2
- package/dist/shared/@ai-setting/{roy-agent-core-mwaesrpc.js → roy-agent-core-wfpzny0h.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-ddq5hcp5.js → roy-agent-core-x6c45yqd.js} +3 -1
- package/dist/shared/@ai-setting/roy-agent-core-xyys5m1a.js +159 -0
- package/dist/shared/@ai-setting/{roy-agent-core-wphva2vs.js → roy-agent-core-y1n63tse.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-w457586k.js → roy-agent-core-y7atw1kw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jcdsghyr.js → roy-agent-core-yjjqm4ww.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fym6zz5a.js → roy-agent-core-yjyvwxs4.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rx8whb18.js → roy-agent-core-ym1hwrcm.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m7dppx2p.js → roy-agent-core-yv4anf1c.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-n82acszf.js → roy-agent-core-z4486eek.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-n3pwkwjh.js → roy-agent-core-za09t5g3.js} +1 -1
- package/package.json +1 -1
- /package/dist/shared/@ai-setting/{roy-agent-core-k5hxvaf0.js → roy-agent-core-3ztzc83c.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConfigComponent
|
|
3
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "./shared/@ai-setting/roy-agent-core-5gpf5j51.js";
|
|
4
4
|
import {
|
|
5
5
|
PromptComponent,
|
|
6
6
|
PromptStore
|
|
7
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "./shared/@ai-setting/roy-agent-core-dfnyvxr9.js";
|
|
8
8
|
import {
|
|
9
9
|
LLMComponent,
|
|
10
10
|
LLMConfigSchema,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ModelLimitsSchema,
|
|
13
13
|
ProviderCapabilitiesSchema,
|
|
14
14
|
ProviderConfigSchema
|
|
15
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
15
|
+
} from "./shared/@ai-setting/roy-agent-core-mzyzdf33.js";
|
|
16
16
|
import"./shared/@ai-setting/roy-agent-core-adg9ghbt.js";
|
|
17
17
|
import"./shared/@ai-setting/roy-agent-core-wjmwwc4a.js";
|
|
18
18
|
import {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
grepTool,
|
|
25
25
|
readFileTool,
|
|
26
26
|
writeFileTool
|
|
27
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "./shared/@ai-setting/roy-agent-core-rgpkygbc.js";
|
|
28
28
|
import {
|
|
29
29
|
getUnderstandImageLLMProvider,
|
|
30
30
|
resetUnderstandImageLLMProvider,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./shared/@ai-setting/roy-agent-core-zjdzk1gg.js";
|
|
40
40
|
import {
|
|
41
41
|
DebugComponent
|
|
42
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
42
|
+
} from "./shared/@ai-setting/roy-agent-core-9wsy4yfv.js";
|
|
43
43
|
import {
|
|
44
44
|
ReplFormatter,
|
|
45
45
|
TraceFormatter,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./shared/@ai-setting/roy-agent-core-rvv6ydff.js";
|
|
48
48
|
import {
|
|
49
49
|
MemoryComponent
|
|
50
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
50
|
+
} from "./shared/@ai-setting/roy-agent-core-3m7j2wcb.js";
|
|
51
51
|
import {
|
|
52
52
|
MemoryPlugin,
|
|
53
53
|
createMemoryPlugin
|
|
@@ -55,31 +55,31 @@ import {
|
|
|
55
55
|
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
56
56
|
import {
|
|
57
57
|
SkillComponent
|
|
58
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
58
|
+
} from "./shared/@ai-setting/roy-agent-core-nz4n1w28.js";
|
|
59
59
|
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
60
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
60
|
+
import"./shared/@ai-setting/roy-agent-core-3ztzc83c.js";
|
|
61
61
|
import {
|
|
62
62
|
closeDatabase
|
|
63
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
64
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
63
|
+
} from "./shared/@ai-setting/roy-agent-core-4kbvfnn1.js";
|
|
64
|
+
import"./shared/@ai-setting/roy-agent-core-pd0exvnq.js";
|
|
65
65
|
import {
|
|
66
66
|
BaseEnvironment,
|
|
67
67
|
generateDescendingId,
|
|
68
68
|
generateId
|
|
69
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
69
|
+
} from "./shared/@ai-setting/roy-agent-core-970btnjh.js";
|
|
70
70
|
import {
|
|
71
71
|
TaskComponent
|
|
72
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
73
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
72
|
+
} from "./shared/@ai-setting/roy-agent-core-vn6f4nxv.js";
|
|
73
|
+
import"./shared/@ai-setting/roy-agent-core-hfmpmt0k.js";
|
|
74
74
|
import"./shared/@ai-setting/roy-agent-core-rn57psp0.js";
|
|
75
75
|
import"./shared/@ai-setting/roy-agent-core-amkqnyzy.js";
|
|
76
76
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
77
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
77
|
+
import"./shared/@ai-setting/roy-agent-core-e02f0ywc.js";
|
|
78
78
|
import"./shared/@ai-setting/roy-agent-core-tbrn9wdm.js";
|
|
79
79
|
import {
|
|
80
80
|
SQLiteTaskStore,
|
|
81
81
|
getDefaultTaskDbPath
|
|
82
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
82
|
+
} from "./shared/@ai-setting/roy-agent-core-wb1b61f8.js";
|
|
83
83
|
import {
|
|
84
84
|
BountyIMInstance,
|
|
85
85
|
EventSourceComponent,
|
|
@@ -92,11 +92,11 @@ import {
|
|
|
92
92
|
larkCliHandler,
|
|
93
93
|
resolveBountyIMSystemPrompt,
|
|
94
94
|
timerHandler
|
|
95
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
95
|
+
} from "./shared/@ai-setting/roy-agent-core-gpf33hn9.js";
|
|
96
96
|
import {
|
|
97
97
|
LogTraceComponent,
|
|
98
98
|
LogTraceConfigSchema
|
|
99
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
99
|
+
} from "./shared/@ai-setting/roy-agent-core-p2ham63a.js";
|
|
100
100
|
import {
|
|
101
101
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
102
102
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -105,11 +105,17 @@ import {
|
|
|
105
105
|
isBuiltInEventSourceType,
|
|
106
106
|
isValidEventSourceType,
|
|
107
107
|
validateEventSourceConfig
|
|
108
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
108
|
+
} from "./shared/@ai-setting/roy-agent-core-ck60j1q9.js";
|
|
109
|
+
import {
|
|
110
|
+
EventStoreImpl,
|
|
111
|
+
getSharedEventStore,
|
|
112
|
+
resetSharedEventStore,
|
|
113
|
+
setSharedEventStore
|
|
114
|
+
} from "./shared/@ai-setting/roy-agent-core-xyys5m1a.js";
|
|
109
115
|
import {
|
|
110
116
|
TaskTagPlugin,
|
|
111
117
|
createAutoTaskPlugin
|
|
112
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
118
|
+
} from "./shared/@ai-setting/roy-agent-core-e5pnnzdm.js";
|
|
113
119
|
import {
|
|
114
120
|
TaskHookPoints
|
|
115
121
|
} from "./shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
@@ -119,11 +125,11 @@ import {
|
|
|
119
125
|
} from "./shared/@ai-setting/roy-agent-core-skqt40yy.js";
|
|
120
126
|
import {
|
|
121
127
|
WorkflowComponent
|
|
122
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
128
|
+
} from "./shared/@ai-setting/roy-agent-core-cd9h49ng.js";
|
|
123
129
|
import {
|
|
124
130
|
init_node_registry_helper,
|
|
125
131
|
registerDecoratorNodeType
|
|
126
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
132
|
+
} from "./shared/@ai-setting/roy-agent-core-hkj5v9xq.js";
|
|
127
133
|
import {
|
|
128
134
|
Edge,
|
|
129
135
|
NodeAs,
|
|
@@ -132,49 +138,49 @@ import {
|
|
|
132
138
|
createWorkflowFromClass
|
|
133
139
|
} from "./shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
134
140
|
import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
135
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
141
|
+
import"./shared/@ai-setting/roy-agent-core-83j0v0hs.js";
|
|
136
142
|
import {
|
|
137
143
|
SessionComponent
|
|
138
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
144
|
+
} from "./shared/@ai-setting/roy-agent-core-ym1hwrcm.js";
|
|
139
145
|
import {
|
|
140
146
|
MemorySessionStore
|
|
141
147
|
} from "./shared/@ai-setting/roy-agent-core-bdhcwf4x.js";
|
|
142
148
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
143
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
144
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
149
|
+
import"./shared/@ai-setting/roy-agent-core-8nv07zgr.js";
|
|
150
|
+
import"./shared/@ai-setting/roy-agent-core-q3vbxprp.js";
|
|
145
151
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
146
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
147
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
152
|
+
import"./shared/@ai-setting/roy-agent-core-p0c98phj.js";
|
|
153
|
+
import"./shared/@ai-setting/roy-agent-core-yjjqm4ww.js";
|
|
148
154
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
149
155
|
import"./shared/@ai-setting/roy-agent-core-7exqwax1.js";
|
|
150
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
151
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
156
|
+
import"./shared/@ai-setting/roy-agent-core-6vbgswjw.js";
|
|
157
|
+
import"./shared/@ai-setting/roy-agent-core-333apxaa.js";
|
|
152
158
|
import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
153
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
159
|
+
import"./shared/@ai-setting/roy-agent-core-tm57tmds.js";
|
|
154
160
|
import"./shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
155
161
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
156
162
|
import {
|
|
157
163
|
CommandsComponent
|
|
158
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-rhfywyz1.js";
|
|
159
165
|
import {
|
|
160
166
|
AgentComponent,
|
|
161
167
|
AgentComponentConfigSchema
|
|
162
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
168
|
+
} from "./shared/@ai-setting/roy-agent-core-vh10qamt.js";
|
|
163
169
|
import {
|
|
164
170
|
ToolComponent,
|
|
165
171
|
ToolRegistry,
|
|
166
172
|
ToolValidator
|
|
167
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
173
|
+
} from "./shared/@ai-setting/roy-agent-core-wfpzny0h.js";
|
|
168
174
|
import"./shared/@ai-setting/roy-agent-core-kzg1jwt8.js";
|
|
169
175
|
import {
|
|
170
176
|
AgentRegistry
|
|
171
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
177
|
+
} from "./shared/@ai-setting/roy-agent-core-za09t5g3.js";
|
|
172
178
|
import {
|
|
173
179
|
XDG_PATHS,
|
|
174
180
|
getXDGPath,
|
|
175
181
|
getXDGPaths
|
|
176
182
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
177
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
183
|
+
import"./shared/@ai-setting/roy-agent-core-4cj6hram.js";
|
|
178
184
|
import"./shared/@ai-setting/roy-agent-core-djdwq743.js";
|
|
179
185
|
import {
|
|
180
186
|
createInvokeConfig,
|
|
@@ -189,13 +195,13 @@ import {
|
|
|
189
195
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
190
196
|
import {
|
|
191
197
|
PluginComponent
|
|
192
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
198
|
+
} from "./shared/@ai-setting/roy-agent-core-wacnvjaq.js";
|
|
193
199
|
import {
|
|
194
200
|
BasePlugin
|
|
195
201
|
} from "./shared/@ai-setting/roy-agent-core-rmn29nrh.js";
|
|
196
202
|
import {
|
|
197
203
|
McpComponent
|
|
198
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
204
|
+
} from "./shared/@ai-setting/roy-agent-core-e8rxb9a6.js";
|
|
199
205
|
import"./shared/@ai-setting/roy-agent-core-8t7wny6v.js";
|
|
200
206
|
import {
|
|
201
207
|
AgentError,
|
|
@@ -211,24 +217,24 @@ import {
|
|
|
211
217
|
import"./shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
212
218
|
import {
|
|
213
219
|
BaseComponent
|
|
214
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
220
|
+
} from "./shared/@ai-setting/roy-agent-core-yv4anf1c.js";
|
|
215
221
|
import {
|
|
216
222
|
createHook,
|
|
217
223
|
createPriorityHook
|
|
218
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
224
|
+
} from "./shared/@ai-setting/roy-agent-core-y7atw1kw.js";
|
|
219
225
|
import {
|
|
220
226
|
HookManager,
|
|
221
227
|
globalHookManager
|
|
222
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
223
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
224
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
228
|
+
} from "./shared/@ai-setting/roy-agent-core-yjyvwxs4.js";
|
|
229
|
+
import"./shared/@ai-setting/roy-agent-core-ff2ssff5.js";
|
|
230
|
+
import"./shared/@ai-setting/roy-agent-core-z4486eek.js";
|
|
225
231
|
import {
|
|
226
232
|
Traced,
|
|
227
233
|
TracedAs,
|
|
228
234
|
TracedLightweight,
|
|
229
235
|
init_decorator,
|
|
230
236
|
wrapFunction
|
|
231
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
237
|
+
} from "./shared/@ai-setting/roy-agent-core-a9pbda78.js";
|
|
232
238
|
import {
|
|
233
239
|
OTelTracerProvider,
|
|
234
240
|
SpanKind,
|
|
@@ -487,12 +493,14 @@ export {
|
|
|
487
493
|
timerHandler,
|
|
488
494
|
sniffMimeType,
|
|
489
495
|
setUnderstandImageLLMProvider,
|
|
496
|
+
setSharedEventStore,
|
|
490
497
|
setQuietMode,
|
|
491
498
|
setConfigComponent as setLoggerConfigComponent,
|
|
492
499
|
setLogDirOverride,
|
|
493
500
|
resolveBountyIMSystemPrompt,
|
|
494
501
|
resetUnderstandImageLLMProvider,
|
|
495
502
|
resetTracerProvider,
|
|
503
|
+
resetSharedEventStore,
|
|
496
504
|
registerDecoratorNodeType,
|
|
497
505
|
readFileTool,
|
|
498
506
|
propagation,
|
|
@@ -513,6 +521,7 @@ export {
|
|
|
513
521
|
getXDGPath,
|
|
514
522
|
getUnderstandImageLLMProvider,
|
|
515
523
|
getTracerProvider,
|
|
524
|
+
getSharedEventStore,
|
|
516
525
|
getLogLevels,
|
|
517
526
|
getLogLevel,
|
|
518
527
|
getLogDir,
|
|
@@ -586,6 +595,7 @@ export {
|
|
|
586
595
|
LLMConfigSchema,
|
|
587
596
|
LLMComponent,
|
|
588
597
|
HookManager,
|
|
598
|
+
EventStoreImpl,
|
|
589
599
|
EventSourceInitHooks,
|
|
590
600
|
EventSourceComponent,
|
|
591
601
|
ErrorCodes,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRepository
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-pd0exvnq.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_search_query_parser,
|
|
6
6
|
init_search_query_parser
|
|
@@ -129,9 +129,58 @@ function initDatabase(path) {
|
|
|
129
129
|
return db;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
// src/env/workflow/storage/safe-json.ts
|
|
133
|
+
function parseJsonOrThrow(raw, fieldName, rowCtx = {}) {
|
|
134
|
+
if (raw === null || raw === undefined || raw === "") {
|
|
135
|
+
throw new Error(`[workflow-repo] Required field "${fieldName}" is empty for row id=${rowCtx.id ?? "?"} name=${rowCtx.name ?? "?"}`);
|
|
136
|
+
}
|
|
137
|
+
const str = typeof raw === "string" ? raw : String(raw);
|
|
138
|
+
try {
|
|
139
|
+
return JSON.parse(str);
|
|
140
|
+
} catch (err) {
|
|
141
|
+
const snippet = str.length > 80 ? str.slice(0, 80) + "..." : str;
|
|
142
|
+
const detail = err instanceof Error ? err.message : String(err);
|
|
143
|
+
throw new Error(`[workflow-repo] Corrupt JSON in required field "${fieldName}" for row id=${rowCtx.id ?? "?"} name=${rowCtx.name ?? "?"}: ${detail}. Raw: ${snippet}`);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function parseJsonObjectOrEmpty(raw, fieldName) {
|
|
147
|
+
if (raw === null || raw === undefined || raw === "") {
|
|
148
|
+
return {};
|
|
149
|
+
}
|
|
150
|
+
const str = typeof raw === "string" ? raw : String(raw);
|
|
151
|
+
try {
|
|
152
|
+
const parsed = JSON.parse(str);
|
|
153
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
154
|
+
return parsed;
|
|
155
|
+
}
|
|
156
|
+
return {};
|
|
157
|
+
} catch {
|
|
158
|
+
return {};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
function parseTagsSafely(raw) {
|
|
162
|
+
if (raw === null || raw === undefined || raw === "") {
|
|
163
|
+
return [];
|
|
164
|
+
}
|
|
165
|
+
const str = typeof raw === "string" ? raw : String(raw);
|
|
166
|
+
try {
|
|
167
|
+
const parsed = JSON.parse(str);
|
|
168
|
+
if (Array.isArray(parsed)) {
|
|
169
|
+
return parsed;
|
|
170
|
+
}
|
|
171
|
+
if (typeof parsed === "string") {
|
|
172
|
+
return [parsed];
|
|
173
|
+
}
|
|
174
|
+
return [];
|
|
175
|
+
} catch {
|
|
176
|
+
return [str];
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
132
180
|
// src/env/workflow/storage/workflow-repo.ts
|
|
133
181
|
function rowToWorkflow(row) {
|
|
134
|
-
const
|
|
182
|
+
const rowCtx = { id: row.id, name: row.name };
|
|
183
|
+
const metadata = parseJsonOrThrow(row.metadata, "metadata", rowCtx);
|
|
135
184
|
if (row.task_id !== null) {
|
|
136
185
|
metadata.taskId = row.task_id;
|
|
137
186
|
}
|
|
@@ -140,10 +189,10 @@ function rowToWorkflow(row) {
|
|
|
140
189
|
name: row.name,
|
|
141
190
|
version: row.version,
|
|
142
191
|
description: row.description || undefined,
|
|
143
|
-
definition:
|
|
144
|
-
config:
|
|
192
|
+
definition: parseJsonOrThrow(row.definition, "definition", rowCtx),
|
|
193
|
+
config: parseJsonObjectOrEmpty(row.config, "config"),
|
|
145
194
|
metadata,
|
|
146
|
-
tags:
|
|
195
|
+
tags: parseTagsSafely(row.tags),
|
|
147
196
|
createdAt: new Date(row.created_at),
|
|
148
197
|
updatedAt: new Date(row.updated_at)
|
|
149
198
|
};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
WorkflowRepository,
|
|
3
3
|
migrateEmptyTagsToDefault,
|
|
4
4
|
rowToWorkflow
|
|
5
|
-
} from "./roy-agent-core-
|
|
6
|
-
import"./roy-agent-core-
|
|
5
|
+
} from "./roy-agent-core-4kbvfnn1.js";
|
|
6
|
+
import"./roy-agent-core-pd0exvnq.js";
|
|
7
7
|
import"./roy-agent-core-rvxg1wps.js";
|
|
8
|
-
import"./roy-agent-core-
|
|
8
|
+
import"./roy-agent-core-a9pbda78.js";
|
|
9
9
|
import"./roy-agent-core-8seq65bp.js";
|
|
10
10
|
import"./roy-agent-core-jnszp0jq.js";
|
|
11
11
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isValidSessionId
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-ym1hwrcm.js";
|
|
4
4
|
import {
|
|
5
5
|
TAG_MAX_COUNT,
|
|
6
6
|
TAG_MIN_COUNT
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-8nv07zgr.js";
|
|
8
8
|
import {
|
|
9
9
|
validateWorkflowDefinition
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-6vbgswjw.js";
|
|
11
11
|
import {
|
|
12
12
|
getCurrentBgTaskId
|
|
13
13
|
} from "./roy-agent-core-c1v263jn.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
TracedAs,
|
|
20
20
|
init_decorator
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-a9pbda78.js";
|
|
22
22
|
import {
|
|
23
23
|
createLogger,
|
|
24
24
|
init_logger
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoTaskPlugin
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-e5pnnzdm.js";
|
|
4
4
|
import {
|
|
5
5
|
ContextError,
|
|
6
6
|
ErrorCodes
|
|
7
7
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseComponent
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-yv4anf1c.js";
|
|
11
11
|
import {
|
|
12
12
|
init_context
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-ff2ssff5.js";
|
|
14
14
|
import {
|
|
15
15
|
getEnvContext,
|
|
16
16
|
init_env_context,
|
|
17
17
|
runWithEnvContextAsync
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-z4486eek.js";
|
|
19
19
|
import {
|
|
20
20
|
TracedAs,
|
|
21
21
|
init_decorator
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-a9pbda78.js";
|
|
23
23
|
import {
|
|
24
24
|
createLogger,
|
|
25
25
|
init_logger
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
initDatabase,
|
|
6
6
|
initializeTables,
|
|
7
7
|
resetDatabase
|
|
8
|
-
} from "./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-4kbvfnn1.js";
|
|
9
|
+
import"./roy-agent-core-pd0exvnq.js";
|
|
10
10
|
import"./roy-agent-core-rvxg1wps.js";
|
|
11
|
-
import"./roy-agent-core-
|
|
11
|
+
import"./roy-agent-core-a9pbda78.js";
|
|
12
12
|
import"./roy-agent-core-8seq65bp.js";
|
|
13
13
|
import"./roy-agent-core-jnszp0jq.js";
|
|
14
14
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRepository
|
|
3
|
-
} from "./roy-agent-core-
|
|
4
|
-
import"./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-pd0exvnq.js";
|
|
4
|
+
import"./roy-agent-core-a9pbda78.js";
|
|
5
5
|
import"./roy-agent-core-8seq65bp.js";
|
|
6
6
|
import"./roy-agent-core-jnszp0jq.js";
|
|
7
7
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
@@ -12,20 +12,30 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// src/env/log-trace/decorator.ts
|
|
14
14
|
function Traced(options) {
|
|
15
|
+
const buildOptions = () => ({
|
|
16
|
+
recordParams: options?.recordParams ?? true,
|
|
17
|
+
recordResult: options?.recordResult ?? false,
|
|
18
|
+
recordError: options?.recordError ?? true,
|
|
19
|
+
log: options?.log ?? false,
|
|
20
|
+
maxLogSize: options?.maxLogSize,
|
|
21
|
+
paramFilter: options?.paramFilter,
|
|
22
|
+
resultFilter: options?.resultFilter,
|
|
23
|
+
flattenParamFilter: options?.flattenParamFilter
|
|
24
|
+
});
|
|
15
25
|
return function(target, propertyKey, descriptor) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
return
|
|
26
|
+
if (descriptor !== undefined && descriptor !== null && typeof descriptor === "object" && "value" in descriptor) {
|
|
27
|
+
const originalFn = descriptor.value;
|
|
28
|
+
const spanName = options?.name || String(propertyKey);
|
|
29
|
+
descriptor.value = wrapFunction(originalFn, spanName, buildOptions());
|
|
30
|
+
return descriptor;
|
|
31
|
+
}
|
|
32
|
+
const value = target;
|
|
33
|
+
const context = propertyKey || {};
|
|
34
|
+
if (typeof value === "function") {
|
|
35
|
+
const spanName = options?.name || (context?.name ? String(context.name) : "anonymous");
|
|
36
|
+
return wrapFunction(value, spanName, buildOptions());
|
|
37
|
+
}
|
|
38
|
+
return value;
|
|
29
39
|
};
|
|
30
40
|
}
|
|
31
41
|
function TracedAs(name, options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_node_registry_helper,
|
|
3
3
|
init_node_registry_helper
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-hkj5v9xq.js";
|
|
5
5
|
import {
|
|
6
6
|
askUserTool,
|
|
7
7
|
createRunWorkflowTool,
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
createWorkflowSearchTool,
|
|
14
14
|
createWorkflowTagListTool,
|
|
15
15
|
createWorkflowValidateTool
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-83j0v0hs.js";
|
|
17
17
|
import {
|
|
18
18
|
WorkflowService
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-8nv07zgr.js";
|
|
20
20
|
import {
|
|
21
21
|
WorkflowEngine,
|
|
22
22
|
exports_engine,
|
|
23
23
|
init_engine
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-q3vbxprp.js";
|
|
25
25
|
import {
|
|
26
26
|
BaseComponent
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-yv4anf1c.js";
|
|
28
28
|
import {
|
|
29
29
|
createLogger,
|
|
30
30
|
init_logger
|
|
@@ -104,7 +104,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
104
104
|
return;
|
|
105
105
|
try {
|
|
106
106
|
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
107
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
107
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-y1n63tse.js");
|
|
108
108
|
this.nodeRegistry = new NodeRegistry;
|
|
109
109
|
registerDecoratorNodeType2(this.nodeRegistry);
|
|
110
110
|
this.decoratorsRegistered = true;
|
|
@@ -134,14 +134,14 @@ class WorkflowComponent extends BaseComponent {
|
|
|
134
134
|
}
|
|
135
135
|
async runWorkflow(definition, input, options) {
|
|
136
136
|
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
137
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
137
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-y1n63tse.js");
|
|
138
138
|
const toolComponent = this.toolComponent || this._workflowEnv?.getComponent("tool");
|
|
139
139
|
const skillComponent = this._workflowEnv?.getComponent("skill");
|
|
140
140
|
let agentRunner = this.agentRunner;
|
|
141
141
|
if (!agentRunner && this._workflowEnv) {
|
|
142
142
|
const agentComponent = this._workflowEnv.getComponent("agent");
|
|
143
143
|
if (agentComponent) {
|
|
144
|
-
const { AgentComponentAdapter } = await import("./roy-agent-core-
|
|
144
|
+
const { AgentComponentAdapter } = await import("./roy-agent-core-gh6szaj5.js");
|
|
145
145
|
agentRunner = new AgentComponentAdapter(agentComponent, {}, this.sessionComponent);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -163,7 +163,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
163
163
|
if (this.workflowService) {
|
|
164
164
|
this.workflowService = null;
|
|
165
165
|
try {
|
|
166
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
166
|
+
const { closeDatabase } = await import("./roy-agent-core-9cqpdrnk.js");
|
|
167
167
|
closeDatabase();
|
|
168
168
|
componentLogger.info("[WorkflowComponent] SQLite database closed");
|
|
169
169
|
} catch (error) {
|
|
@@ -241,9 +241,9 @@ class WorkflowComponent extends BaseComponent {
|
|
|
241
241
|
}
|
|
242
242
|
async initSqliteService() {
|
|
243
243
|
try {
|
|
244
|
-
const { getDatabase, initializeTables } = await import("./roy-agent-core-
|
|
245
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
246
|
-
const { TagRepository } = await import("./roy-agent-core-
|
|
244
|
+
const { getDatabase, initializeTables } = await import("./roy-agent-core-9cqpdrnk.js");
|
|
245
|
+
const { WorkflowRepository } = await import("./roy-agent-core-5j4awbgc.js");
|
|
246
|
+
const { TagRepository } = await import("./roy-agent-core-9qn92jhf.js");
|
|
247
247
|
const db = getDatabase();
|
|
248
248
|
initializeTables();
|
|
249
249
|
const workflowRepository = new WorkflowRepository(db);
|
|
@@ -309,7 +309,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
309
309
|
this.workflowService = null;
|
|
310
310
|
this.nodeRegistry = null;
|
|
311
311
|
try {
|
|
312
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
312
|
+
const { closeDatabase } = await import("./roy-agent-core-9cqpdrnk.js");
|
|
313
313
|
closeDatabase();
|
|
314
314
|
} catch {}
|
|
315
315
|
this._status = "stopped";
|