@ai-setting/roy-agent-core 1.7.44 → 1.7.47
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 +4 -4
- package/dist/env/agent/index.js +7 -7
- package/dist/env/commands/index.js +4 -4
- package/dist/env/debug/index.js +4 -4
- package/dist/env/event-source/index.js +8 -7
- package/dist/env/hook/index.js +2 -2
- package/dist/env/index.js +24 -23
- package/dist/env/llm/index.js +15 -5
- package/dist/env/log-trace/index.js +4 -4
- package/dist/env/mcp/index.js +4 -4
- package/dist/env/memory/index.js +4 -4
- package/dist/env/plugin/index.js +8 -6
- package/dist/env/prompt/index.js +4 -4
- package/dist/env/session/index.js +7 -7
- package/dist/env/session/storage/index.js +3 -3
- package/dist/env/skill/index.js +4 -4
- package/dist/env/task/delegate/index.js +2 -2
- package/dist/env/task/index.js +6 -6
- package/dist/env/task/plugins/index.js +2 -2
- package/dist/env/task/storage/index.js +1 -1
- package/dist/env/tool/index.js +4 -4
- package/dist/env/workflow/engine/index.js +3 -3
- package/dist/env/workflow/index.js +11 -11
- package/dist/env/workflow/tools/index.js +8 -8
- package/dist/index.js +37 -30
- package/dist/shared/@ai-setting/{roy-agent-core-cysnmvcy.js → roy-agent-core-0r90298w.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qfktfbrr.js → roy-agent-core-1rm32m5t.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-a236mps6.js → roy-agent-core-3j4by8rj.js} +35 -2
- package/dist/shared/@ai-setting/{roy-agent-core-wybj8emq.js → roy-agent-core-4m02hnqf.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jawzpf5k.js → roy-agent-core-4nnv0dze.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cw89yj9d.js → roy-agent-core-54wzmvnb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jjw7xcxv.js → roy-agent-core-55hkeft7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rmn29nrh.js → roy-agent-core-64f22h1g.js} +1 -11
- package/dist/shared/@ai-setting/{roy-agent-core-eakjnbaj.js → roy-agent-core-7p5zf8ay.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-qhw8jp6j.js → roy-agent-core-83mk8wrn.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-ajtsk20z.js +2396 -0
- package/dist/shared/@ai-setting/{roy-agent-core-pc8x07p0.js → roy-agent-core-amp8qckb.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-az13yzmc.js +11 -0
- package/dist/shared/@ai-setting/{roy-agent-core-2f2nqx7g.js → roy-agent-core-b09eqhhz.js} +86 -60
- package/dist/shared/@ai-setting/{roy-agent-core-0gmnp1jt.js → roy-agent-core-bjrtwfta.js} +41 -6
- package/dist/shared/@ai-setting/{roy-agent-core-ts56bz5e.js → roy-agent-core-d94ddn0r.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-rczz7e81.js → roy-agent-core-dabnevwe.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9t675te0.js → roy-agent-core-ead21w5c.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-c95tpapc.js → roy-agent-core-gy1zfe0d.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5tzc2spk.js → roy-agent-core-h93v6p6y.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-f18jk3cw.js → roy-agent-core-hxazjj4p.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3h7ajma5.js → roy-agent-core-jfptxs4f.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4m0t4y9w.js → roy-agent-core-nvcqp6p9.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jadrj0bz.js → roy-agent-core-p1p9mr8f.js} +13 -0
- package/dist/shared/@ai-setting/{roy-agent-core-65q93n1k.js → roy-agent-core-pk1b3kvf.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-n1ceexfz.js → roy-agent-core-qvaqmj3f.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-6mnwqcqf.js → roy-agent-core-v5vs1jby.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-z6kv2mdp.js → roy-agent-core-y1fp2mgf.js} +18 -35
- package/dist/shared/@ai-setting/{roy-agent-core-asxe1nt4.js → roy-agent-core-ygnva439.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-8xgk89y4.js → roy-agent-core-yjqj3taz.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-w3tq0j5c.js → roy-agent-core-zrgaemma.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2ahddbdf.js → roy-agent-core-zy3hqfwg.js} +251 -53
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-0zgcfcnq.js +0 -1720
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-7p5zf8ay.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-hkj5v9xq.js";
|
|
5
5
|
import {
|
|
6
6
|
Edge,
|
|
@@ -14,14 +14,14 @@ import {
|
|
|
14
14
|
DecoratorNode,
|
|
15
15
|
init_decorator_node
|
|
16
16
|
} from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
17
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
17
|
+
import"../../shared/@ai-setting/roy-agent-core-zrgaemma.js";
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-gy1zfe0d.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-h93v6p6y.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-8nv07zgr.js";
|
|
22
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
22
|
+
import"../../shared/@ai-setting/roy-agent-core-dabnevwe.js";
|
|
23
23
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-jfptxs4f.js";
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-yjjqm4ww.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-7exqwax1.js";
|
|
@@ -82,8 +82,8 @@ import {
|
|
|
82
82
|
unresolvedVariable
|
|
83
83
|
} from "../../shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
84
84
|
import"../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
85
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
86
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
85
|
+
import"../../shared/@ai-setting/roy-agent-core-pk1b3kvf.js";
|
|
86
|
+
import"../../shared/@ai-setting/roy-agent-core-zy3hqfwg.js";
|
|
87
87
|
import"../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
88
88
|
import {
|
|
89
89
|
AskUserError,
|
|
@@ -91,9 +91,9 @@ import {
|
|
|
91
91
|
createWorkflowAskUserEvent
|
|
92
92
|
} from "../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
93
93
|
import"../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
94
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
95
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
96
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
94
|
+
import"../../shared/@ai-setting/roy-agent-core-ead21w5c.js";
|
|
95
|
+
import"../../shared/@ai-setting/roy-agent-core-54wzmvnb.js";
|
|
96
|
+
import"../../shared/@ai-setting/roy-agent-core-3j4by8rj.js";
|
|
97
97
|
import"../../shared/@ai-setting/roy-agent-core-wn59p0zw.js";
|
|
98
98
|
import"../../shared/@ai-setting/roy-agent-core-zbb3sk72.js";
|
|
99
99
|
import"../../shared/@ai-setting/roy-agent-core-a9pbda78.js";
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
getRunWorkflowTool,
|
|
25
25
|
initRunWorkflowTool,
|
|
26
26
|
resetRunWorkflowTool
|
|
27
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
28
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
29
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "../../../shared/@ai-setting/roy-agent-core-zrgaemma.js";
|
|
28
|
+
import"../../../shared/@ai-setting/roy-agent-core-gy1zfe0d.js";
|
|
29
|
+
import"../../../shared/@ai-setting/roy-agent-core-h93v6p6y.js";
|
|
30
30
|
import"../../../shared/@ai-setting/roy-agent-core-8nv07zgr.js";
|
|
31
31
|
import {
|
|
32
32
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
@@ -40,14 +40,14 @@ import"../../../shared/@ai-setting/roy-agent-core-6vbgswjw.js";
|
|
|
40
40
|
import"../../../shared/@ai-setting/roy-agent-core-tm57tmds.js";
|
|
41
41
|
import"../../../shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
42
42
|
import"../../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
43
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
44
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
43
|
+
import"../../../shared/@ai-setting/roy-agent-core-pk1b3kvf.js";
|
|
44
|
+
import"../../../shared/@ai-setting/roy-agent-core-zy3hqfwg.js";
|
|
45
45
|
import"../../../shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
46
46
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
47
47
|
import"../../../shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
48
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
49
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
50
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
48
|
+
import"../../../shared/@ai-setting/roy-agent-core-ead21w5c.js";
|
|
49
|
+
import"../../../shared/@ai-setting/roy-agent-core-54wzmvnb.js";
|
|
50
|
+
import"../../../shared/@ai-setting/roy-agent-core-3j4by8rj.js";
|
|
51
51
|
import"../../../shared/@ai-setting/roy-agent-core-wn59p0zw.js";
|
|
52
52
|
import"../../../shared/@ai-setting/roy-agent-core-zbb3sk72.js";
|
|
53
53
|
import"../../../shared/@ai-setting/roy-agent-core-a9pbda78.js";
|
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-hxazjj4p.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-d94ddn0r.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-y1fp2mgf.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 {
|
|
@@ -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-0r90298w.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-4m02hnqf.js";
|
|
51
51
|
import {
|
|
52
52
|
MemoryPlugin,
|
|
53
53
|
createMemoryPlugin
|
|
@@ -55,7 +55,7 @@ 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-v5vs1jby.js";
|
|
59
59
|
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
60
60
|
import"./shared/@ai-setting/roy-agent-core-3ztzc83c.js";
|
|
61
61
|
import {
|
|
@@ -66,20 +66,20 @@ 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-83mk8wrn.js";
|
|
70
70
|
import {
|
|
71
71
|
TaskComponent
|
|
72
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
72
|
+
} from "./shared/@ai-setting/roy-agent-core-yjqj3taz.js";
|
|
73
73
|
import"./shared/@ai-setting/roy-agent-core-vsrfzaze.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-nvcqp6p9.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-p1p9mr8f.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-b09eqhhz.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-4nnv0dze.js";
|
|
100
100
|
import {
|
|
101
101
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
102
102
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
import {
|
|
110
110
|
TaskTagPlugin,
|
|
111
111
|
createAutoTaskPlugin
|
|
112
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
112
|
+
} from "./shared/@ai-setting/roy-agent-core-ajtsk20z.js";
|
|
113
113
|
import {
|
|
114
114
|
EventStoreImpl,
|
|
115
115
|
getSharedEventStore,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
} from "./shared/@ai-setting/roy-agent-core-223v204d.js";
|
|
126
126
|
import {
|
|
127
127
|
WorkflowComponent
|
|
128
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
128
|
+
} from "./shared/@ai-setting/roy-agent-core-7p5zf8ay.js";
|
|
129
129
|
import {
|
|
130
130
|
init_node_registry_helper,
|
|
131
131
|
registerDecoratorNodeType
|
|
@@ -138,18 +138,18 @@ import {
|
|
|
138
138
|
createWorkflowFromClass
|
|
139
139
|
} from "./shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
140
140
|
import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
141
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
141
|
+
import"./shared/@ai-setting/roy-agent-core-zrgaemma.js";
|
|
142
142
|
import {
|
|
143
143
|
SessionComponent
|
|
144
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
144
|
+
} from "./shared/@ai-setting/roy-agent-core-gy1zfe0d.js";
|
|
145
145
|
import {
|
|
146
146
|
MemorySessionStore
|
|
147
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
147
|
+
} from "./shared/@ai-setting/roy-agent-core-h93v6p6y.js";
|
|
148
148
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
149
149
|
import"./shared/@ai-setting/roy-agent-core-8nv07zgr.js";
|
|
150
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
150
|
+
import"./shared/@ai-setting/roy-agent-core-dabnevwe.js";
|
|
151
151
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
152
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
152
|
+
import"./shared/@ai-setting/roy-agent-core-jfptxs4f.js";
|
|
153
153
|
import"./shared/@ai-setting/roy-agent-core-yjjqm4ww.js";
|
|
154
154
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
155
155
|
import"./shared/@ai-setting/roy-agent-core-7exqwax1.js";
|
|
@@ -161,16 +161,16 @@ import"./shared/@ai-setting/roy-agent-core-jrj30vq3.js";
|
|
|
161
161
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
162
162
|
import {
|
|
163
163
|
CommandsComponent
|
|
164
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-qvaqmj3f.js";
|
|
165
165
|
import {
|
|
166
166
|
AgentComponent,
|
|
167
167
|
AgentComponentConfigSchema
|
|
168
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
168
|
+
} from "./shared/@ai-setting/roy-agent-core-bjrtwfta.js";
|
|
169
169
|
import {
|
|
170
170
|
ToolComponent,
|
|
171
171
|
ToolRegistry,
|
|
172
172
|
ToolValidator
|
|
173
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
173
|
+
} from "./shared/@ai-setting/roy-agent-core-55hkeft7.js";
|
|
174
174
|
import"./shared/@ai-setting/roy-agent-core-kzg1jwt8.js";
|
|
175
175
|
import {
|
|
176
176
|
AgentRegistry
|
|
@@ -181,13 +181,16 @@ import {
|
|
|
181
181
|
getXDGPaths
|
|
182
182
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
183
183
|
import"./shared/@ai-setting/roy-agent-core-4cj6hram.js";
|
|
184
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
184
|
+
import"./shared/@ai-setting/roy-agent-core-pk1b3kvf.js";
|
|
185
185
|
import {
|
|
186
|
+
buildOpencodeHeaders,
|
|
186
187
|
createInvokeConfig,
|
|
187
188
|
invoke,
|
|
188
189
|
invokeNonStream,
|
|
190
|
+
isOpencodeEndpoint,
|
|
191
|
+
isOpencodeProvider,
|
|
189
192
|
parseModelString
|
|
190
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
193
|
+
} from "./shared/@ai-setting/roy-agent-core-zy3hqfwg.js";
|
|
191
194
|
import"./shared/@ai-setting/roy-agent-core-c1v263jn.js";
|
|
192
195
|
import {
|
|
193
196
|
AskUserError,
|
|
@@ -195,13 +198,14 @@ import {
|
|
|
195
198
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
196
199
|
import {
|
|
197
200
|
PluginComponent
|
|
198
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
201
|
+
} from "./shared/@ai-setting/roy-agent-core-1rm32m5t.js";
|
|
202
|
+
import"./shared/@ai-setting/roy-agent-core-64f22h1g.js";
|
|
199
203
|
import {
|
|
200
204
|
BasePlugin
|
|
201
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
205
|
+
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
202
206
|
import {
|
|
203
207
|
McpComponent
|
|
204
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
208
|
+
} from "./shared/@ai-setting/roy-agent-core-amp8qckb.js";
|
|
205
209
|
import"./shared/@ai-setting/roy-agent-core-8t7wny6v.js";
|
|
206
210
|
import {
|
|
207
211
|
AgentError,
|
|
@@ -217,15 +221,15 @@ import {
|
|
|
217
221
|
import"./shared/@ai-setting/roy-agent-core-7hh0brvs.js";
|
|
218
222
|
import {
|
|
219
223
|
BaseComponent
|
|
220
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
224
|
+
} from "./shared/@ai-setting/roy-agent-core-ead21w5c.js";
|
|
221
225
|
import {
|
|
222
226
|
createHook,
|
|
223
227
|
createPriorityHook
|
|
224
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
228
|
+
} from "./shared/@ai-setting/roy-agent-core-54wzmvnb.js";
|
|
225
229
|
import {
|
|
226
230
|
HookManager,
|
|
227
231
|
globalHookManager
|
|
228
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
232
|
+
} from "./shared/@ai-setting/roy-agent-core-3j4by8rj.js";
|
|
229
233
|
import"./shared/@ai-setting/roy-agent-core-wn59p0zw.js";
|
|
230
234
|
import"./shared/@ai-setting/roy-agent-core-zbb3sk72.js";
|
|
231
235
|
import {
|
|
@@ -510,6 +514,8 @@ export {
|
|
|
510
514
|
isValidEventSourceType,
|
|
511
515
|
isRoyError,
|
|
512
516
|
isQuietMode,
|
|
517
|
+
isOpencodeProvider,
|
|
518
|
+
isOpencodeEndpoint,
|
|
513
519
|
isMediaType,
|
|
514
520
|
isBuiltInEventSourceType,
|
|
515
521
|
invokeNonStream,
|
|
@@ -548,6 +554,7 @@ export {
|
|
|
548
554
|
closeDatabase,
|
|
549
555
|
cascadeStopSessionTree,
|
|
550
556
|
builtInHandlers,
|
|
557
|
+
buildOpencodeHeaders,
|
|
551
558
|
buildDefaultBountyIMSystemPrompt,
|
|
552
559
|
bountyIMHandler,
|
|
553
560
|
bashTool,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BasePlugin
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-az13yzmc.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseComponent
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-ead21w5c.js";
|
|
7
7
|
import {
|
|
8
8
|
globalHookManager,
|
|
9
9
|
init_global_hook_manager
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-3j4by8rj.js";
|
|
11
11
|
import {
|
|
12
12
|
init_context
|
|
13
13
|
} from "./roy-agent-core-wn59p0zw.js";
|
|
@@ -42,9 +42,23 @@ class HookManager {
|
|
|
42
42
|
}
|
|
43
43
|
async execute(hookPoint, data, metadata = {}) {
|
|
44
44
|
const hooks = this._hooks.get(hookPoint);
|
|
45
|
-
|
|
45
|
+
const DEBUG_HOOK = process.env.ROY_HOOK_DEBUG === "1";
|
|
46
|
+
if (DEBUG_HOOK) {
|
|
47
|
+
console.error(`[DEBUG hook-manager.execute] hookPoint=${hookPoint}, hooksCount=${hooks?.length ?? 0}`);
|
|
48
|
+
}
|
|
49
|
+
if (!hooks || hooks.length === 0) {
|
|
50
|
+
if (DEBUG_HOOK)
|
|
51
|
+
console.error(`[DEBUG hook-manager.execute] → EARLY RETURN (no hooks registered for ${hookPoint})`);
|
|
46
52
|
return;
|
|
53
|
+
}
|
|
47
54
|
const envContext = getEnvContext();
|
|
55
|
+
if (DEBUG_HOOK) {
|
|
56
|
+
console.error(`[DEBUG hook-manager.execute] envContext=${envContext ? "present" : "absent"}`);
|
|
57
|
+
if (envContext) {
|
|
58
|
+
console.error(`[DEBUG hook-manager.execute] envContext.pluginEnabled=${JSON.stringify(envContext.pluginEnabled)}`);
|
|
59
|
+
console.error(`[DEBUG hook-manager.execute] envContext.sourceId=${envContext.sourceId}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
48
62
|
if (envContext) {
|
|
49
63
|
metadata.envContext = envContext;
|
|
50
64
|
if (!metadata.pluginEnabled && envContext.pluginEnabled) {
|
|
@@ -54,12 +68,31 @@ class HookManager {
|
|
|
54
68
|
const sortedHooks = this.sortHooks(hooks);
|
|
55
69
|
const ctx = this.createContext(hookPoint, data, metadata, "before");
|
|
56
70
|
const pluginEnabled = metadata.pluginEnabled || {};
|
|
71
|
+
if (DEBUG_HOOK) {
|
|
72
|
+
console.error(`[DEBUG hook-manager.execute] final pluginEnabled=${JSON.stringify(pluginEnabled)}`);
|
|
73
|
+
console.error(`[DEBUG hook-manager.execute] sortedHooks=${sortedHooks.length}:`);
|
|
74
|
+
for (const h of sortedHooks) {
|
|
75
|
+
console.error(`[DEBUG hook-manager.execute] - name=${h.name} pluginName=${h.pluginName} sourceId=${h.sourceId}`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
57
78
|
for (const hook of sortedHooks) {
|
|
58
79
|
if (hook.pluginName && hook.sourceId) {
|
|
59
80
|
const key = `${hook.sourceId}:${hook.pluginName}`;
|
|
60
|
-
|
|
81
|
+
const enabled = pluginEnabled[key];
|
|
82
|
+
if (DEBUG_HOOK) {
|
|
83
|
+
console.error(`[DEBUG hook-manager.execute] hook ${hook.name} (${key}) enabled=${enabled}`);
|
|
84
|
+
}
|
|
85
|
+
if (enabled !== true) {
|
|
86
|
+
if (DEBUG_HOOK) {
|
|
87
|
+
console.error(`[DEBUG hook-manager.execute] → SKIPPED (pluginEnabled[${key}] !== true, got ${JSON.stringify(enabled)})`);
|
|
88
|
+
}
|
|
61
89
|
continue;
|
|
62
90
|
}
|
|
91
|
+
} else if (DEBUG_HOOK) {
|
|
92
|
+
console.error(`[DEBUG hook-manager.execute] hook ${hook.name} has no pluginName/sourceId, ALWAYS EXECUTED`);
|
|
93
|
+
}
|
|
94
|
+
if (DEBUG_HOOK) {
|
|
95
|
+
console.error(`[DEBUG hook-manager.execute] → EXECUTING hook ${hook.name}`);
|
|
63
96
|
}
|
|
64
97
|
await this.safeExecute(hook, ctx);
|
|
65
98
|
}
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
12
12
|
import {
|
|
13
13
|
BaseComponent
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-ead21w5c.js";
|
|
15
15
|
import {
|
|
16
16
|
ToolHookPoints,
|
|
17
17
|
globalHookManager,
|
|
18
18
|
init_global_hook_manager
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-3j4by8rj.js";
|
|
20
20
|
import {
|
|
21
21
|
getCurrentTaskId,
|
|
22
22
|
init_env_context
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
// src/env/plugin/types.ts
|
|
2
|
-
class BasePlugin {
|
|
3
|
-
version = "1.0.0";
|
|
4
|
-
description;
|
|
5
|
-
priority = 0;
|
|
6
|
-
constructor() {}
|
|
7
|
-
init(env) {}
|
|
8
|
-
dispose() {}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
// src/env/lark-mention-utils.ts
|
|
12
2
|
var SELF_CLOSING_AT_RE = /<at\s+user_id\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s>]+))\s*\/\s*>/g;
|
|
13
3
|
function normalizeLarkAtMentions(content, nameMap) {
|
|
@@ -31,4 +21,4 @@ function escapeXmlText(value) {
|
|
|
31
21
|
return value.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
32
22
|
}
|
|
33
23
|
|
|
34
|
-
export {
|
|
24
|
+
export { normalizeLarkAtMentions };
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
createWorkflowSearchTool,
|
|
14
14
|
createWorkflowTagListTool,
|
|
15
15
|
createWorkflowValidateTool
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-zrgaemma.js";
|
|
17
17
|
import {
|
|
18
18
|
WorkflowService
|
|
19
19
|
} from "./roy-agent-core-8nv07zgr.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
WorkflowEngine,
|
|
22
22
|
exports_engine,
|
|
23
23
|
init_engine
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-dabnevwe.js";
|
|
25
25
|
import {
|
|
26
26
|
BaseComponent
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-ead21w5c.js";
|
|
28
28
|
import {
|
|
29
29
|
createLogger,
|
|
30
30
|
init_logger
|
|
@@ -141,7 +141,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
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-ygnva439.js");
|
|
145
145
|
agentRunner = new AgentComponentAdapter(agentComponent, {}, this.sessionComponent);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoTaskPlugin
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-ajtsk20z.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-ead21w5c.js";
|
|
11
11
|
import {
|
|
12
12
|
init_context
|
|
13
13
|
} from "./roy-agent-core-wn59p0zw.js";
|