@ai-setting/roy-agent-core 1.5.45 → 1.5.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/env/agent/index.js +3 -3
- package/dist/env/index.js +15 -14
- package/dist/env/mcp/index.js +7 -5
- package/dist/env/mcp/npm-prefix/index.js +21 -0
- package/dist/env/memory/index.js +4 -4
- package/dist/env/session/index.js +7 -7
- package/dist/env/task/delegate/index.js +2 -2
- package/dist/env/task/index.js +6 -6
- package/dist/env/workflow/engine/index.js +5 -5
- package/dist/env/workflow/index.js +19 -19
- package/dist/index.js +26 -25
- package/dist/shared/@ai-setting/{roy-agent-core-nn9dmffw.js → roy-agent-core-1rzpnycm.js} +113 -16
- package/dist/shared/@ai-setting/{roy-agent-core-cr8xer31.js → roy-agent-core-1t5esk1r.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-44g4dhzg.js → roy-agent-core-2rtka82a.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-9p604xjf.js → roy-agent-core-38sc085e.js} +8 -10
- package/dist/shared/@ai-setting/{roy-agent-core-r9hq4cjx.js → roy-agent-core-a23brrex.js} +61 -1
- package/dist/shared/@ai-setting/{roy-agent-core-68qy97r3.js → roy-agent-core-ebap34m2.js} +6 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fg3j215p.js → roy-agent-core-emk3q2nt.js} +24 -3
- package/dist/shared/@ai-setting/roy-agent-core-fnv3ev18.js +61 -0
- package/dist/shared/@ai-setting/{roy-agent-core-8y804aat.js → roy-agent-core-jqq7c2rk.js} +34 -5
- package/dist/shared/@ai-setting/{roy-agent-core-dbxm76wf.js → roy-agent-core-kzbj10gk.js} +10 -3
- package/dist/shared/@ai-setting/{roy-agent-core-bp3xggmb.js → roy-agent-core-pm73be85.js} +32 -90
- package/dist/shared/@ai-setting/{roy-agent-core-w64zachx.js → roy-agent-core-t1ytby5n.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-ye0z728h.js → roy-agent-core-twd8kzag.js} +3 -2
- package/package.json +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ce9w0j8n.js → roy-agent-core-pyv1vb7v.js} +4 -4
package/dist/env/agent/index.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponent,
|
|
3
3
|
AgentComponentConfigSchema
|
|
4
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "../../shared/@ai-setting/roy-agent-core-38sc085e.js";
|
|
5
5
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
6
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
9
9
|
import {
|
|
10
10
|
SummaryAgent
|
|
11
11
|
} from "../../shared/@ai-setting/roy-agent-core-kwhv9dcd.js";
|
|
12
|
+
import"../../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
12
13
|
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
13
14
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
14
15
|
import"../../shared/@ai-setting/roy-agent-core-6e3wz81d.js";
|
|
@@ -18,7 +19,6 @@ import"../../shared/@ai-setting/roy-agent-core-rm3hay00.js";
|
|
|
18
19
|
import"../../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
19
20
|
import"../../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
20
21
|
import"../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
21
|
-
import"../../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
23
23
|
export {
|
|
24
24
|
SummaryAgent,
|
package/dist/env/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseEnvironment
|
|
3
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-a23brrex.js";
|
|
4
4
|
import {
|
|
5
5
|
EventSourceComponent,
|
|
6
6
|
builtInHandlers,
|
|
@@ -21,31 +21,32 @@ import"../shared/@ai-setting/roy-agent-core-4gmxjdhn.js";
|
|
|
21
21
|
import"../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowComponent
|
|
24
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
} from "../shared/@ai-setting/roy-agent-core-1t5esk1r.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-9bmtxmp6.js";
|
|
26
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
26
|
+
import"../shared/@ai-setting/roy-agent-core-1rzpnycm.js";
|
|
27
|
+
import"../shared/@ai-setting/roy-agent-core-2rtka82a.js";
|
|
28
|
+
import"../shared/@ai-setting/roy-agent-core-kzbj10gk.js";
|
|
27
29
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
28
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
29
|
-
import"../shared/@ai-setting/roy-agent-core-dbxm76wf.js";
|
|
30
|
+
import"../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
30
31
|
import"../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
31
32
|
import"../shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
33
|
+
import"../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
32
34
|
import"../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
33
35
|
import"../shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
34
36
|
import"../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
35
37
|
import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
36
|
-
import"../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
37
|
-
import"../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
38
38
|
import {
|
|
39
39
|
AgentComponent,
|
|
40
40
|
AgentComponentConfigSchema
|
|
41
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
41
|
+
} from "../shared/@ai-setting/roy-agent-core-38sc085e.js";
|
|
42
42
|
import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
43
43
|
import {
|
|
44
44
|
TaskComponent
|
|
45
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
46
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
45
|
+
} from "../shared/@ai-setting/roy-agent-core-t1ytby5n.js";
|
|
46
|
+
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
47
|
+
import"../shared/@ai-setting/roy-agent-core-jqq7c2rk.js";
|
|
47
48
|
import"../shared/@ai-setting/roy-agent-core-hsxn8m1j.js";
|
|
48
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
49
|
+
import"../shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
49
50
|
import {
|
|
50
51
|
XDG_PATHS,
|
|
51
52
|
getXDGPath,
|
|
@@ -54,13 +55,14 @@ import {
|
|
|
54
55
|
import"../shared/@ai-setting/roy-agent-core-wa1kzqky.js";
|
|
55
56
|
import"../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
56
57
|
import"../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
57
|
-
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
58
58
|
import {
|
|
59
59
|
McpComponent
|
|
60
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
60
|
+
} from "../shared/@ai-setting/roy-agent-core-pm73be85.js";
|
|
61
61
|
import"../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
62
|
+
import"../shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
62
63
|
import"../shared/@ai-setting/roy-agent-core-1bfmxx89.js";
|
|
63
64
|
import"../shared/@ai-setting/roy-agent-core-kwhv9dcd.js";
|
|
65
|
+
import"../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
64
66
|
import"../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
65
67
|
import"../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
66
68
|
import {
|
|
@@ -85,7 +87,6 @@ import {
|
|
|
85
87
|
import"../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
86
88
|
import"../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
87
89
|
import"../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
88
|
-
import"../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
89
90
|
import"../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
90
91
|
export {
|
|
91
92
|
validateEventSourceConfig,
|
package/dist/env/mcp/index.js
CHANGED
|
@@ -8,15 +8,17 @@ import {
|
|
|
8
8
|
McpServerLocalConfigSchema,
|
|
9
9
|
McpServerRemoteConfigSchema,
|
|
10
10
|
augmentNpmEnvForPackageRunner,
|
|
11
|
-
ensureFallbackNpmPrefix,
|
|
12
11
|
getMcpPathPriority,
|
|
12
|
+
resolvePackageRunnerCommand
|
|
13
|
+
} from "../../shared/@ai-setting/roy-agent-core-pm73be85.js";
|
|
14
|
+
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
15
|
+
import {
|
|
16
|
+
ensureFallbackNpmPrefix,
|
|
13
17
|
isUsableNpmPrefix,
|
|
14
18
|
resolveGlobalBinPath,
|
|
15
19
|
resolveGlobalNodeModulesPath,
|
|
16
|
-
resolveNpmPrefix
|
|
17
|
-
|
|
18
|
-
} from "../../shared/@ai-setting/roy-agent-core-bp3xggmb.js";
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
20
|
+
resolveNpmPrefix
|
|
21
|
+
} from "../../shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
20
22
|
import {
|
|
21
23
|
adaptMcpTool,
|
|
22
24
|
convertInputSchemaToZod,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ensureFallbackNpmPrefix,
|
|
3
|
+
ensureNpmPrefixDirs,
|
|
4
|
+
getFallbackNpmPrefixPath,
|
|
5
|
+
isUsableNpmPrefix,
|
|
6
|
+
readNpmConfigPrefix,
|
|
7
|
+
resolveGlobalBinPath,
|
|
8
|
+
resolveGlobalNodeModulesPath,
|
|
9
|
+
resolveNpmPrefix
|
|
10
|
+
} from "../../../shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
12
|
+
export {
|
|
13
|
+
resolveNpmPrefix,
|
|
14
|
+
resolveGlobalNodeModulesPath,
|
|
15
|
+
resolveGlobalBinPath,
|
|
16
|
+
readNpmConfigPrefix,
|
|
17
|
+
isUsableNpmPrefix,
|
|
18
|
+
getFallbackNpmPrefixPath,
|
|
19
|
+
ensureNpmPrefixDirs,
|
|
20
|
+
ensureFallbackNpmPrefix
|
|
21
|
+
};
|
package/dist/env/memory/index.js
CHANGED
|
@@ -4,6 +4,10 @@ import {
|
|
|
4
4
|
SOURCE_PRIORITY,
|
|
5
5
|
getSourcePriority
|
|
6
6
|
} from "../../shared/@ai-setting/roy-agent-core-ztx5eh72.js";
|
|
7
|
+
import {
|
|
8
|
+
RecallMemorySchema,
|
|
9
|
+
RecordMemorySchema
|
|
10
|
+
} from "../../shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
7
11
|
import {
|
|
8
12
|
GLOBAL_MEMORY_AGENT_PROMPT,
|
|
9
13
|
MemoryManager,
|
|
@@ -20,10 +24,6 @@ import {
|
|
|
20
24
|
parseMemoryAgentOutput,
|
|
21
25
|
recallMemory
|
|
22
26
|
} from "../../shared/@ai-setting/roy-agent-core-c3ct1346.js";
|
|
23
|
-
import {
|
|
24
|
-
RecallMemorySchema,
|
|
25
|
-
RecordMemorySchema
|
|
26
|
-
} from "../../shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
28
28
|
import"../../shared/@ai-setting/roy-agent-core-6e3wz81d.js";
|
|
29
29
|
import"../../shared/@ai-setting/roy-agent-core-vdwvamre.js";
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-pyv1vb7v.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
5
|
+
import {
|
|
6
|
+
MemorySessionStore
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-6mcb7nqa.js";
|
|
5
8
|
import"../../shared/@ai-setting/roy-agent-core-kwhv9dcd.js";
|
|
9
|
+
import {
|
|
10
|
+
SessionMessageConverter
|
|
11
|
+
} from "../../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
6
12
|
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
7
13
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
8
14
|
import"../../shared/@ai-setting/roy-agent-core-6e3wz81d.js";
|
|
@@ -12,12 +18,6 @@ import"../../shared/@ai-setting/roy-agent-core-rm3hay00.js";
|
|
|
12
18
|
import"../../shared/@ai-setting/roy-agent-core-10n2jh7p.js";
|
|
13
19
|
import"../../shared/@ai-setting/roy-agent-core-58k274fg.js";
|
|
14
20
|
import"../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
15
|
-
import {
|
|
16
|
-
MemorySessionStore
|
|
17
|
-
} from "../../shared/@ai-setting/roy-agent-core-6mcb7nqa.js";
|
|
18
|
-
import {
|
|
19
|
-
SessionMessageConverter
|
|
20
|
-
} from "../../shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
22
22
|
export {
|
|
23
23
|
SessionMessageConverter,
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
BackgroundTaskManager,
|
|
4
4
|
createDelegateTool,
|
|
5
5
|
createStopTool
|
|
6
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-jqq7c2rk.js";
|
|
7
|
+
import"../../../shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
8
8
|
import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
TaskConfigSchema,
|
|
5
5
|
TaskPriorityEnum,
|
|
6
6
|
TaskStatusEnum
|
|
7
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
8
|
-
import
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-t1ytby5n.js";
|
|
8
|
+
import {
|
|
9
|
+
TaskEntityEventTypes
|
|
10
|
+
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
11
|
+
import"../../shared/@ai-setting/roy-agent-core-jqq7c2rk.js";
|
|
9
12
|
import {
|
|
10
13
|
SQLiteTaskStore
|
|
11
14
|
} from "../../shared/@ai-setting/roy-agent-core-hsxn8m1j.js";
|
|
12
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
15
|
+
import"../../shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
13
16
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
14
17
|
import"../../shared/@ai-setting/roy-agent-core-wa1kzqky.js";
|
|
15
18
|
import"../../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
16
19
|
import"../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
17
|
-
import {
|
|
18
|
-
TaskEntityEventTypes
|
|
19
|
-
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-q5qj0fes.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-6e3wz81d.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
Scheduler,
|
|
7
7
|
WorkflowEngine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
9
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1rzpnycm.js";
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-2rtka82a.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-kzbj10gk.js";
|
|
10
12
|
import"../../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
11
|
-
import"../../../shared/@ai-setting/roy-agent-core-44g4dhzg.js";
|
|
12
|
-
import"../../../shared/@ai-setting/roy-agent-core-dbxm76wf.js";
|
|
13
|
-
import"../../../shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
14
|
-
import"../../../shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
15
13
|
import"../../../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
14
|
+
import"../../../shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
16
15
|
import"../../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
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
19
|
import"../../../shared/@ai-setting/roy-agent-core-rgj6hq15.js";
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-1t5esk1r.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-9bmtxmp6.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-1rzpnycm.js";
|
|
6
|
+
import"../../shared/@ai-setting/roy-agent-core-2rtka82a.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-kzbj10gk.js";
|
|
6
8
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
8
|
-
import"../../shared/@ai-setting/roy-agent-core-dbxm76wf.js";
|
|
9
|
+
import"../../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
9
10
|
import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
10
11
|
import"../../shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
11
|
-
import"../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
12
|
-
import"../../shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
13
|
-
import {
|
|
14
|
-
Edge,
|
|
15
|
-
NodeAs,
|
|
16
|
-
Workflow,
|
|
17
|
-
WorkflowConverter,
|
|
18
|
-
WorkflowEdges,
|
|
19
|
-
createWorkflowFromClass
|
|
20
|
-
} from "../../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
21
|
-
import {
|
|
22
|
-
DecoratorNode,
|
|
23
|
-
init_decorator_node
|
|
24
|
-
} from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
25
|
-
import"../../shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
26
12
|
import {
|
|
27
13
|
BaseEventSchema,
|
|
28
14
|
ControlPauseEventSchema,
|
|
@@ -74,6 +60,20 @@ import {
|
|
|
74
60
|
pathNotFound,
|
|
75
61
|
unresolvedVariable
|
|
76
62
|
} from "../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
63
|
+
import"../../shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
64
|
+
import"../../shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
65
|
+
import {
|
|
66
|
+
Edge,
|
|
67
|
+
NodeAs,
|
|
68
|
+
Workflow,
|
|
69
|
+
WorkflowConverter,
|
|
70
|
+
WorkflowEdges,
|
|
71
|
+
createWorkflowFromClass
|
|
72
|
+
} from "../../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
73
|
+
import {
|
|
74
|
+
DecoratorNode,
|
|
75
|
+
init_decorator_node
|
|
76
|
+
} from "../../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
77
77
|
import {
|
|
78
78
|
AskUserError,
|
|
79
79
|
createNodeInterruptEvent,
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PromptComponent,
|
|
3
|
+
PromptStore,
|
|
4
|
+
getBuiltInPrompt,
|
|
5
|
+
getBuiltInPromptNames
|
|
6
|
+
} from "./shared/@ai-setting/roy-agent-core-a67e90d1.js";
|
|
1
7
|
import {
|
|
2
8
|
LLMComponent,
|
|
3
9
|
LLMConfigSchema,
|
|
@@ -31,12 +37,6 @@ import {
|
|
|
31
37
|
readFileTool,
|
|
32
38
|
writeFileTool
|
|
33
39
|
} from "./shared/@ai-setting/roy-agent-core-ysvh8er9.js";
|
|
34
|
-
import {
|
|
35
|
-
PromptComponent,
|
|
36
|
-
PromptStore,
|
|
37
|
-
getBuiltInPrompt,
|
|
38
|
-
getBuiltInPromptNames
|
|
39
|
-
} from "./shared/@ai-setting/roy-agent-core-a67e90d1.js";
|
|
40
40
|
import {
|
|
41
41
|
closeDatabase
|
|
42
42
|
} from "./shared/@ai-setting/roy-agent-core-9ffsvvcf.js";
|
|
@@ -44,11 +44,11 @@ import"./shared/@ai-setting/roy-agent-core-2grcjaad.js";
|
|
|
44
44
|
import {
|
|
45
45
|
MemoryComponent
|
|
46
46
|
} from "./shared/@ai-setting/roy-agent-core-ztx5eh72.js";
|
|
47
|
+
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
47
48
|
import {
|
|
48
49
|
MemoryPlugin,
|
|
49
50
|
createMemoryPlugin
|
|
50
51
|
} from "./shared/@ai-setting/roy-agent-core-c3ct1346.js";
|
|
51
|
-
import"./shared/@ai-setting/roy-agent-core-g1s2h0e5.js";
|
|
52
52
|
import {
|
|
53
53
|
DebugComponent
|
|
54
54
|
} from "./shared/@ai-setting/roy-agent-core-zwq6vhpj.js";
|
|
@@ -61,7 +61,7 @@ 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-a23brrex.js";
|
|
65
65
|
import {
|
|
66
66
|
EventSourceComponent,
|
|
67
67
|
builtInHandlers,
|
|
@@ -92,17 +92,19 @@ import {
|
|
|
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-1t5esk1r.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-
|
|
100
|
+
import"./shared/@ai-setting/roy-agent-core-1rzpnycm.js";
|
|
101
|
+
import"./shared/@ai-setting/roy-agent-core-2rtka82a.js";
|
|
102
|
+
import"./shared/@ai-setting/roy-agent-core-kzbj10gk.js";
|
|
101
103
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
102
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
103
|
-
import"./shared/@ai-setting/roy-agent-core-dbxm76wf.js";
|
|
104
|
+
import"./shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
104
105
|
import"./shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
105
106
|
import"./shared/@ai-setting/roy-agent-core-6vxg2gmr.js";
|
|
107
|
+
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
106
108
|
import"./shared/@ai-setting/roy-agent-core-0vbdz0x7.js";
|
|
107
109
|
import"./shared/@ai-setting/roy-agent-core-nhfy3p8q.js";
|
|
108
110
|
import {
|
|
@@ -113,24 +115,23 @@ import {
|
|
|
113
115
|
createWorkflowFromClass
|
|
114
116
|
} from "./shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
115
117
|
import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
116
|
-
import"./shared/@ai-setting/roy-agent-core-v002ynpa.js";
|
|
117
|
-
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.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-38sc085e.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-
|
|
129
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
128
|
+
} from "./shared/@ai-setting/roy-agent-core-t1ytby5n.js";
|
|
129
|
+
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
130
|
+
import"./shared/@ai-setting/roy-agent-core-jqq7c2rk.js";
|
|
130
131
|
import"./shared/@ai-setting/roy-agent-core-hsxn8m1j.js";
|
|
131
132
|
import {
|
|
132
133
|
AgentRegistry
|
|
133
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
134
|
+
} from "./shared/@ai-setting/roy-agent-core-emk3q2nt.js";
|
|
134
135
|
import {
|
|
135
136
|
XDG_PATHS,
|
|
136
137
|
getXDGPath,
|
|
@@ -141,14 +142,13 @@ import"./shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
|
141
142
|
import {
|
|
142
143
|
TaskHookPoints
|
|
143
144
|
} from "./shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
144
|
-
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
145
145
|
import {
|
|
146
146
|
SkillComponent
|
|
147
147
|
} from "./shared/@ai-setting/roy-agent-core-sk535ft2.js";
|
|
148
148
|
import"./shared/@ai-setting/roy-agent-core-psvxt4c9.js";
|
|
149
149
|
import {
|
|
150
150
|
McpComponent
|
|
151
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
151
|
+
} from "./shared/@ai-setting/roy-agent-core-pm73be85.js";
|
|
152
152
|
import {
|
|
153
153
|
AgentError,
|
|
154
154
|
ComponentError,
|
|
@@ -160,12 +160,17 @@ import {
|
|
|
160
160
|
getErrorCode,
|
|
161
161
|
isRoyError
|
|
162
162
|
} from "./shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
163
|
+
import"./shared/@ai-setting/roy-agent-core-fnv3ev18.js";
|
|
163
164
|
import"./shared/@ai-setting/roy-agent-core-1bfmxx89.js";
|
|
164
165
|
import {
|
|
165
166
|
SessionComponent
|
|
166
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
167
|
+
} from "./shared/@ai-setting/roy-agent-core-pyv1vb7v.js";
|
|
167
168
|
import"./shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
169
|
+
import {
|
|
170
|
+
MemorySessionStore
|
|
171
|
+
} from "./shared/@ai-setting/roy-agent-core-6mcb7nqa.js";
|
|
168
172
|
import"./shared/@ai-setting/roy-agent-core-kwhv9dcd.js";
|
|
173
|
+
import"./shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
169
174
|
import {
|
|
170
175
|
Traced,
|
|
171
176
|
TracedAs,
|
|
@@ -206,10 +211,6 @@ import {
|
|
|
206
211
|
import {
|
|
207
212
|
SQLiteSpanStorage
|
|
208
213
|
} from "./shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
209
|
-
import {
|
|
210
|
-
MemorySessionStore
|
|
211
|
-
} from "./shared/@ai-setting/roy-agent-core-6mcb7nqa.js";
|
|
212
|
-
import"./shared/@ai-setting/roy-agent-core-7b35emr7.js";
|
|
213
214
|
import"./shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
214
215
|
// src/env/memory/tools/memory-agent-tools.ts
|
|
215
216
|
import { z } from "zod";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentComponentAdapter,
|
|
3
|
+
init_agent_component_adapter
|
|
4
|
+
} from "./roy-agent-core-2rtka82a.js";
|
|
1
5
|
import {
|
|
2
6
|
buildWorkflowNodeMetadata,
|
|
3
7
|
getWorkflowNodeIdFromMetadata,
|
|
@@ -5,9 +9,9 @@ import {
|
|
|
5
9
|
patchAgentSessionIdOnMessage
|
|
6
10
|
} from "./roy-agent-core-6atd905e.js";
|
|
7
11
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./roy-agent-core-
|
|
12
|
+
TemplateResolver,
|
|
13
|
+
init_template_resolver
|
|
14
|
+
} from "./roy-agent-core-v002ynpa.js";
|
|
11
15
|
import {
|
|
12
16
|
SkillNode,
|
|
13
17
|
ToolNode,
|
|
@@ -16,6 +20,13 @@ import {
|
|
|
16
20
|
init_tool_node,
|
|
17
21
|
init_workflow_node
|
|
18
22
|
} from "./roy-agent-core-6vxg2gmr.js";
|
|
23
|
+
import {
|
|
24
|
+
WorkflowError,
|
|
25
|
+
createWorkflowEvent,
|
|
26
|
+
init_event,
|
|
27
|
+
init_types,
|
|
28
|
+
init_workflow_error
|
|
29
|
+
} from "./roy-agent-core-qnrf2aw6.js";
|
|
19
30
|
import {
|
|
20
31
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
21
32
|
init_json_schema_to_zod,
|
|
@@ -24,17 +35,6 @@ import {
|
|
|
24
35
|
parseWorkflowJsonOutput,
|
|
25
36
|
validateJsonOutputSchema
|
|
26
37
|
} from "./roy-agent-core-nhfy3p8q.js";
|
|
27
|
-
import {
|
|
28
|
-
TemplateResolver,
|
|
29
|
-
init_template_resolver
|
|
30
|
-
} from "./roy-agent-core-v002ynpa.js";
|
|
31
|
-
import {
|
|
32
|
-
WorkflowError,
|
|
33
|
-
createWorkflowEvent,
|
|
34
|
-
init_event,
|
|
35
|
-
init_types,
|
|
36
|
-
init_workflow_error
|
|
37
|
-
} from "./roy-agent-core-qnrf2aw6.js";
|
|
38
38
|
import {
|
|
39
39
|
AskUserError,
|
|
40
40
|
createNodeInterruptEvent,
|
|
@@ -1136,6 +1136,7 @@ function extractAgentJsonOutput(agentResult, schema) {
|
|
|
1136
1136
|
const candidates = [
|
|
1137
1137
|
agentResult.structuredOutput,
|
|
1138
1138
|
asRecord(agentResult.output),
|
|
1139
|
+
extractFromOutputText(agentResult.output),
|
|
1139
1140
|
extractFromToolCalls(agentResult),
|
|
1140
1141
|
extractFromMessages(agentResult.messages)
|
|
1141
1142
|
];
|
|
@@ -1153,6 +1154,66 @@ function asRecord(value) {
|
|
|
1153
1154
|
}
|
|
1154
1155
|
return;
|
|
1155
1156
|
}
|
|
1157
|
+
function extractFromOutputText(output) {
|
|
1158
|
+
if (typeof output !== "string" || !output.trim()) {
|
|
1159
|
+
return;
|
|
1160
|
+
}
|
|
1161
|
+
const trimmed = output.trim();
|
|
1162
|
+
try {
|
|
1163
|
+
const parsed = JSON.parse(trimmed);
|
|
1164
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1165
|
+
return parsed;
|
|
1166
|
+
}
|
|
1167
|
+
} catch {}
|
|
1168
|
+
const jsonBlockMatch = trimmed.match(/```(?:json)?\s*\n?(\{[\s\S]*?\})\n?\s*```/);
|
|
1169
|
+
if (jsonBlockMatch) {
|
|
1170
|
+
try {
|
|
1171
|
+
const parsed = JSON.parse(jsonBlockMatch[1]);
|
|
1172
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1173
|
+
return parsed;
|
|
1174
|
+
}
|
|
1175
|
+
} catch {}
|
|
1176
|
+
}
|
|
1177
|
+
for (let i = 0;i < trimmed.length; i++) {
|
|
1178
|
+
if (trimmed[i] !== "{")
|
|
1179
|
+
continue;
|
|
1180
|
+
let depth = 0;
|
|
1181
|
+
let inString = false;
|
|
1182
|
+
let escape = false;
|
|
1183
|
+
for (let j = i;j < trimmed.length; j++) {
|
|
1184
|
+
const ch = trimmed[j];
|
|
1185
|
+
if (escape) {
|
|
1186
|
+
escape = false;
|
|
1187
|
+
continue;
|
|
1188
|
+
}
|
|
1189
|
+
if (ch === "\\" && inString) {
|
|
1190
|
+
escape = true;
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
if (ch === '"') {
|
|
1194
|
+
inString = !inString;
|
|
1195
|
+
continue;
|
|
1196
|
+
}
|
|
1197
|
+
if (inString)
|
|
1198
|
+
continue;
|
|
1199
|
+
if (ch === "{")
|
|
1200
|
+
depth++;
|
|
1201
|
+
else if (ch === "}")
|
|
1202
|
+
depth--;
|
|
1203
|
+
if (depth === 0) {
|
|
1204
|
+
const candidate = trimmed.slice(i, j + 1);
|
|
1205
|
+
try {
|
|
1206
|
+
const parsed = JSON.parse(candidate);
|
|
1207
|
+
if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
1208
|
+
return parsed;
|
|
1209
|
+
}
|
|
1210
|
+
} catch {}
|
|
1211
|
+
break;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1156
1217
|
function extractFromToolCalls(agentResult) {
|
|
1157
1218
|
const toolCalls = agentResult.metadata?.toolCallsDetail;
|
|
1158
1219
|
if (!toolCalls?.length) {
|
|
@@ -1216,7 +1277,18 @@ function buildAgentNodeOutput(agentResult, outputConfig) {
|
|
|
1216
1277
|
const schema = outputConfig.schema;
|
|
1217
1278
|
const jsonData = extractAgentJsonOutput(agentResult, schema);
|
|
1218
1279
|
if (!jsonData) {
|
|
1219
|
-
|
|
1280
|
+
const defaults = buildSchemaDefaults(schema);
|
|
1281
|
+
const fallbackData = { ...defaults, rawOutput: agentResult.output };
|
|
1282
|
+
return {
|
|
1283
|
+
result: fallbackData,
|
|
1284
|
+
...fallbackData,
|
|
1285
|
+
metadata: {
|
|
1286
|
+
...agentResult.metadata,
|
|
1287
|
+
outputMode: "json_fallback",
|
|
1288
|
+
_extractionWarning: "JSON extraction failed, using defaults"
|
|
1289
|
+
},
|
|
1290
|
+
workflowHistory: agentResult.messages
|
|
1291
|
+
};
|
|
1220
1292
|
}
|
|
1221
1293
|
return {
|
|
1222
1294
|
result: jsonData,
|
|
@@ -1233,6 +1305,31 @@ function buildAgentNodeOutput(agentResult, outputConfig) {
|
|
|
1233
1305
|
...base
|
|
1234
1306
|
};
|
|
1235
1307
|
}
|
|
1308
|
+
function buildSchemaDefaults(schema) {
|
|
1309
|
+
const defaults = {};
|
|
1310
|
+
if (!schema?.properties || !schema?.required)
|
|
1311
|
+
return defaults;
|
|
1312
|
+
for (const key of schema.required) {
|
|
1313
|
+
const prop = schema.properties[key];
|
|
1314
|
+
if (!prop?.type)
|
|
1315
|
+
continue;
|
|
1316
|
+
switch (prop.type) {
|
|
1317
|
+
case "boolean":
|
|
1318
|
+
defaults[key] = false;
|
|
1319
|
+
break;
|
|
1320
|
+
case "string":
|
|
1321
|
+
defaults[key] = "";
|
|
1322
|
+
break;
|
|
1323
|
+
case "number":
|
|
1324
|
+
case "integer":
|
|
1325
|
+
defaults[key] = 0;
|
|
1326
|
+
break;
|
|
1327
|
+
default:
|
|
1328
|
+
defaults[key] = null;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
return defaults;
|
|
1332
|
+
}
|
|
1236
1333
|
var init_build_agent_node_output = __esm(() => {
|
|
1237
1334
|
init_extract_agent_json_output();
|
|
1238
1335
|
});
|
|
@@ -1292,7 +1389,7 @@ var init_agent_node = __esm(() => {
|
|
|
1292
1389
|
await context.attachAgentSessionToLastStart(this.definition.id, agentSessionId);
|
|
1293
1390
|
}
|
|
1294
1391
|
}
|
|
1295
|
-
const allowedTools = ["ask_user"];
|
|
1392
|
+
const allowedTools = options.allowedTools?.length ? options.allowedTools : ["ask_user"];
|
|
1296
1393
|
const agentConfig = {
|
|
1297
1394
|
type: agentType,
|
|
1298
1395
|
prompt: resolvedPrompt,
|
|
@@ -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-1rzpnycm.js";
|
|
10
10
|
import {
|
|
11
11
|
WorkflowService
|
|
12
12
|
} from "./roy-agent-core-4t40mkpv.js";
|
|
@@ -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-twd8kzag.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-ebap34m2.js");
|
|
212
212
|
registerWorkflowJsonOutputPlugin(llmComponent);
|
|
213
213
|
}
|
|
214
214
|
this.createService({
|