@ai-setting/roy-agent-core 1.7.34 → 1.7.35
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 +9 -9
- package/dist/env/agent/index.js +15 -15
- package/dist/env/commands/index.js +9 -9
- package/dist/env/context/index.js +5 -5
- package/dist/env/debug/index.js +9 -9
- package/dist/env/event-source/index.js +14 -14
- package/dist/env/hook/index.js +7 -7
- package/dist/env/index.js +39 -39
- package/dist/env/llm/index.js +10 -10
- package/dist/env/log-trace/index.js +9 -9
- package/dist/env/mcp/index.js +10 -10
- package/dist/env/mcp/tool/index.js +3 -3
- package/dist/env/memory/index.js +10 -10
- package/dist/env/memory/plugin/index.js +3 -3
- package/dist/env/plugin/index.js +9 -9
- package/dist/env/prompt/index.js +9 -9
- package/dist/env/session/index.js +12 -12
- package/dist/env/session/storage/index.js +5 -5
- package/dist/env/skill/index.js +9 -9
- package/dist/env/task/delegate/index.js +9 -9
- package/dist/env/task/index.js +14 -14
- package/dist/env/task/plugins/index.js +9 -9
- package/dist/env/task/storage/index.js +4 -4
- package/dist/env/task/tools/index.js +5 -5
- package/dist/env/tool/built-in/index.js +5 -5
- package/dist/env/tool/index.js +12 -12
- package/dist/env/workflow/engine/index.js +11 -11
- package/dist/env/workflow/index.js +22 -22
- package/dist/env/workflow/nodes/index.js +4 -4
- package/dist/env/workflow/service/index.js +4 -4
- package/dist/env/workflow/storage/index.js +5 -5
- package/dist/env/workflow/tools/index.js +16 -16
- package/dist/env/workflow/utils/index.js +6 -6
- package/dist/index.js +50 -50
- package/dist/shared/@ai-setting/{roy-agent-core-mssk8f0g.js → roy-agent-core-0czz1ynz.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-0nz53t5v.js → roy-agent-core-1dacps3n.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-m2pxg5d8.js → roy-agent-core-1kcstbn3.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ybg8sayk.js → roy-agent-core-242peyss.js} +21 -9
- package/dist/shared/@ai-setting/{roy-agent-core-znhmrzyy.js → roy-agent-core-2adayzfa.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-bt7mg8j5.js → roy-agent-core-2aq5f4e1.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-rsej8ed5.js → roy-agent-core-3x6ej9vm.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-7gf5abzy.js → roy-agent-core-52yt7e1t.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-m725wp1x.js → roy-agent-core-62c1t7wr.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-tp0thedj.js → roy-agent-core-63nkhqa4.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-4rg92cwq.js → roy-agent-core-6thjwx6v.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-g772q3gf.js → roy-agent-core-743510fc.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-6rebk607.js → roy-agent-core-821bsh3r.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-e6dahpp2.js → roy-agent-core-8seq65bp.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ncvqfx7m.js → roy-agent-core-8t7wny6v.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-z1hm09xp.js → roy-agent-core-8xv4qzx7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jbc1t62x.js → roy-agent-core-9drbkjfr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kbf31f21.js → roy-agent-core-anwh7050.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-tzsmkk5w.js → roy-agent-core-axh3vn8k.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1y4hr9v9.js → roy-agent-core-bdhcwf4x.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-p5dnn2at.js → roy-agent-core-bny3nd8q.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-1h6h6h37.js → roy-agent-core-d5gwqrr5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kp57kbzd.js → roy-agent-core-djdwq743.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-m09a4xwh.js → roy-agent-core-dz3m7dt4.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-h76sw3ar.js → roy-agent-core-dzfyjzgw.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-d12nwxfx.js → roy-agent-core-e3qjt852.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-6f7cjzem.js → roy-agent-core-gcnvcbft.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-md5wg3ns.js → roy-agent-core-gzj1x5m7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-dbs3325z.js → roy-agent-core-h1zamsb9.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-ch3gg6r0.js → roy-agent-core-hs75rxp3.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-7x8v3wbn.js → roy-agent-core-j5c3chtn.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kj93n7pb.js → roy-agent-core-j6h99erf.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-77cpyf03.js → roy-agent-core-j9ejsmsj.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-hfpbq1qy.js → roy-agent-core-jcdsghyr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4an1p9a1.js → roy-agent-core-jnszp0jq.js} +26 -14
- package/dist/shared/@ai-setting/{roy-agent-core-pz8jvvtn.js → roy-agent-core-jq7g5nxz.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-7p6rny5m.js → roy-agent-core-jxgprc5a.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-jdvgzf2y.js → roy-agent-core-k5csz66y.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-gjnhkemk.js → roy-agent-core-krmhhje6.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-9sz7hnbf.js → roy-agent-core-kzg1jwt8.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-sf4bjgwz.js → roy-agent-core-n094tbjh.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-p06rm1xh.js → roy-agent-core-n3pwkwjh.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-q3zvkbj6.js +10 -0
- package/dist/shared/@ai-setting/{roy-agent-core-38rtrpk3.js → roy-agent-core-qhjm0bxm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-1qt5x67p.js → roy-agent-core-qz9jb9sp.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-r5d3f3nb.js → roy-agent-core-t2vwy92b.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-sh7bz68r.js → roy-agent-core-tbrn9wdm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-1df0grva.js → roy-agent-core-wgttzq8e.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3qm3ps0w.js → roy-agent-core-wphva2vs.js} +4 -4
- package/dist/shared/@ai-setting/roy-agent-core-xgarc0t2.js +18 -0
- package/dist/shared/@ai-setting/{roy-agent-core-2ah7204k.js → roy-agent-core-yf0ex8y1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-89zsa89z.js → roy-agent-core-yw07bvqz.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-sxqhny9v.js → roy-agent-core-z7q1re07.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-pqb1cx3t.js → roy-agent-core-zda3rfr3.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-htwb9yj6.js → roy-agent-core-zfcwa3w7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-4r2e3b8a.js → roy-agent-core-zjttt2y4.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-1sxybyqq.js → roy-agent-core-zma7p5p7.js} +2 -2
- package/dist/utils/temp-file-manager/index.js +3 -3
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-0hzymk2b.js +0 -18
- package/dist/shared/@ai-setting/roy-agent-core-gtymhfda.js +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemorySessionStore,
|
|
3
3
|
SQLiteSessionStore
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-bdhcwf4x.js";
|
|
5
5
|
import {
|
|
6
6
|
init_search_query_parser,
|
|
7
7
|
matchesQuery,
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
13
13
|
import {
|
|
14
14
|
BaseComponent
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
16
16
|
import {
|
|
17
17
|
TracedAs,
|
|
18
18
|
init_decorator
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogger,
|
|
22
22
|
init_logger
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
24
24
|
import {
|
|
25
25
|
__legacyDecorateClassTS
|
|
26
26
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_context
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-1kcstbn3.js";
|
|
4
4
|
import {
|
|
5
5
|
getEnvContext
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-jxgprc5a.js";
|
|
7
7
|
import {
|
|
8
8
|
__esm
|
|
9
9
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
invoke,
|
|
10
10
|
invokeNonStream
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-gzj1x5m7.js";
|
|
12
12
|
import {
|
|
13
13
|
ContextError,
|
|
14
14
|
ErrorCodes
|
|
@@ -19,21 +19,21 @@ import {
|
|
|
19
19
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
20
20
|
import {
|
|
21
21
|
BaseComponent
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
23
23
|
import {
|
|
24
24
|
LLMHookPoints,
|
|
25
25
|
globalHookManager,
|
|
26
26
|
init_global_hook_manager
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-743510fc.js";
|
|
28
28
|
import {
|
|
29
29
|
TracedAs,
|
|
30
30
|
init_decorator,
|
|
31
31
|
wrapFunction
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
33
33
|
import {
|
|
34
34
|
createLogger,
|
|
35
35
|
init_logger
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
37
37
|
import {
|
|
38
38
|
__legacyDecorateClassTS,
|
|
39
39
|
__require
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
14
14
|
|
|
15
15
|
// src/env/memory/types.ts
|
|
16
16
|
import { z } from "zod";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessageConverter
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-djdwq743.js";
|
|
4
4
|
import {
|
|
5
5
|
canonicalizeParts
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-gzj1x5m7.js";
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
init_logger
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
11
11
|
import {
|
|
12
12
|
__require
|
|
13
13
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
truncateOutputInline
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-3x6ej9vm.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentRegistry
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-n3pwkwjh.js";
|
|
7
7
|
import {
|
|
8
8
|
enqueueToAddFakeUserMessage
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-9drbkjfr.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionMessageConverter
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-djdwq743.js";
|
|
13
13
|
import {
|
|
14
14
|
safeParseToolArgs,
|
|
15
15
|
withTimeout
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-gzj1x5m7.js";
|
|
17
17
|
import {
|
|
18
18
|
getCurrentBgTaskId
|
|
19
19
|
} from "./roy-agent-core-c1v263jn.js";
|
|
@@ -29,27 +29,27 @@ import {
|
|
|
29
29
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
30
30
|
import {
|
|
31
31
|
BaseComponent
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
33
33
|
import {
|
|
34
34
|
globalHookManager,
|
|
35
35
|
init_global_hook_manager
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-743510fc.js";
|
|
37
37
|
import {
|
|
38
38
|
init_context
|
|
39
|
-
} from "./roy-agent-core-
|
|
39
|
+
} from "./roy-agent-core-1kcstbn3.js";
|
|
40
40
|
import {
|
|
41
41
|
getCurrentTaskId,
|
|
42
42
|
getEnvContext,
|
|
43
43
|
runWithEnvContextAsync
|
|
44
|
-
} from "./roy-agent-core-
|
|
44
|
+
} from "./roy-agent-core-jxgprc5a.js";
|
|
45
45
|
import {
|
|
46
46
|
TracedAs,
|
|
47
47
|
init_decorator
|
|
48
|
-
} from "./roy-agent-core-
|
|
48
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
49
49
|
import {
|
|
50
50
|
createLogger,
|
|
51
51
|
init_logger
|
|
52
|
-
} from "./roy-agent-core-
|
|
52
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
53
53
|
import {
|
|
54
54
|
__legacyDecorateClassTS,
|
|
55
55
|
__require
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
searchTasksTool,
|
|
10
10
|
treeTasksTool,
|
|
11
11
|
updateTaskTool
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-zfcwa3w7.js";
|
|
13
13
|
import {
|
|
14
14
|
createOperationTool,
|
|
15
15
|
deleteOperationTool,
|
|
@@ -27,11 +27,11 @@ import {
|
|
|
27
27
|
BackgroundTaskManager,
|
|
28
28
|
createDelegateTool,
|
|
29
29
|
createStopTool
|
|
30
|
-
} from "./roy-agent-core-
|
|
30
|
+
} from "./roy-agent-core-h1zamsb9.js";
|
|
31
31
|
import {
|
|
32
32
|
SQLiteTaskStore,
|
|
33
33
|
getDefaultTaskDbPath
|
|
34
|
-
} from "./roy-agent-core-
|
|
34
|
+
} from "./roy-agent-core-dzfyjzgw.js";
|
|
35
35
|
import {
|
|
36
36
|
TaskHookPoints
|
|
37
37
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -40,23 +40,23 @@ import {
|
|
|
40
40
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
41
41
|
import {
|
|
42
42
|
BaseComponent
|
|
43
|
-
} from "./roy-agent-core-
|
|
43
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
44
44
|
import {
|
|
45
45
|
globalHookManager,
|
|
46
46
|
init_global_hook_manager
|
|
47
|
-
} from "./roy-agent-core-
|
|
47
|
+
} from "./roy-agent-core-743510fc.js";
|
|
48
48
|
import {
|
|
49
49
|
getEnvContextOrEmpty,
|
|
50
50
|
init_env_context
|
|
51
|
-
} from "./roy-agent-core-
|
|
51
|
+
} from "./roy-agent-core-jxgprc5a.js";
|
|
52
52
|
import {
|
|
53
53
|
TracedAs,
|
|
54
54
|
init_decorator
|
|
55
|
-
} from "./roy-agent-core-
|
|
55
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
56
56
|
import {
|
|
57
57
|
createLogger,
|
|
58
58
|
init_logger
|
|
59
|
-
} from "./roy-agent-core-
|
|
59
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
60
60
|
import {
|
|
61
61
|
__legacyDecorateClassTS
|
|
62
62
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TracedAs,
|
|
3
3
|
init_decorator
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
9
9
|
import {
|
|
10
10
|
__esm,
|
|
11
11
|
__export,
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
getCurrentProcessRegistry,
|
|
9
9
|
killProcessTree
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-tbrn9wdm.js";
|
|
11
11
|
import {
|
|
12
12
|
init_decorator,
|
|
13
13
|
wrapFunction
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
15
15
|
import {
|
|
16
16
|
createLogger,
|
|
17
17
|
exports_tracer_provider,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
init_propagation,
|
|
20
20
|
init_tracer_provider,
|
|
21
21
|
propagation
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
23
23
|
import {
|
|
24
24
|
__toCommonJS
|
|
25
25
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -6,32 +6,32 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-skqt40yy.js";
|
|
7
7
|
import {
|
|
8
8
|
validateWorkflowDefinition
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-wgttzq8e.js";
|
|
10
10
|
import {
|
|
11
11
|
enqueueToAddFakeUserMessage
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-9drbkjfr.js";
|
|
13
13
|
import {
|
|
14
14
|
BasePlugin,
|
|
15
15
|
normalizeLarkAtMentions
|
|
16
16
|
} from "./roy-agent-core-rmn29nrh.js";
|
|
17
17
|
import {
|
|
18
18
|
init_context
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-1kcstbn3.js";
|
|
20
20
|
import {
|
|
21
21
|
getEnvContextOrEmpty,
|
|
22
22
|
getEventFromEnvContext,
|
|
23
23
|
getLarkMessageId,
|
|
24
24
|
isLarkEvent
|
|
25
|
-
} from "./roy-agent-core-
|
|
25
|
+
} from "./roy-agent-core-jxgprc5a.js";
|
|
26
26
|
import {
|
|
27
27
|
TracedAs,
|
|
28
28
|
init_decorator,
|
|
29
29
|
wrapFunction
|
|
30
|
-
} from "./roy-agent-core-
|
|
30
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger,
|
|
33
33
|
init_logger
|
|
34
|
-
} from "./roy-agent-core-
|
|
34
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
35
35
|
import {
|
|
36
36
|
__legacyDecorateClassTS,
|
|
37
37
|
__require
|
|
@@ -296,11 +296,11 @@ ${prompt}`;
|
|
|
296
296
|
}
|
|
297
297
|
if (!this._workflowRepo) {
|
|
298
298
|
try {
|
|
299
|
-
const sqlite = await import("./roy-agent-core-
|
|
299
|
+
const sqlite = await import("./roy-agent-core-yw07bvqz.js");
|
|
300
300
|
this.ensureDataDir();
|
|
301
301
|
const db = sqlite.getDatabase();
|
|
302
302
|
sqlite.initializeTables();
|
|
303
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
303
|
+
const { WorkflowRepository } = await import("./roy-agent-core-jq7g5nxz.js");
|
|
304
304
|
this._workflowRepo = new WorkflowRepository(db);
|
|
305
305
|
return this._workflowRepo;
|
|
306
306
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProcessRegistry,
|
|
3
3
|
runWithProcessRegistryAsync
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-tbrn9wdm.js";
|
|
5
5
|
import {
|
|
6
6
|
TaskHookPoints
|
|
7
7
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -10,30 +10,30 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-skqt40yy.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_SUBAGENT_PROMPT
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-n3pwkwjh.js";
|
|
14
14
|
import {
|
|
15
15
|
runWithBgTaskIdAsync
|
|
16
16
|
} from "./roy-agent-core-c1v263jn.js";
|
|
17
17
|
import {
|
|
18
18
|
globalHookManager,
|
|
19
19
|
init_global_hook_manager
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-743510fc.js";
|
|
21
21
|
import {
|
|
22
22
|
init_context
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-1kcstbn3.js";
|
|
24
24
|
import {
|
|
25
25
|
getCurrentTaskId,
|
|
26
26
|
getEnvContext
|
|
27
|
-
} from "./roy-agent-core-
|
|
27
|
+
} from "./roy-agent-core-jxgprc5a.js";
|
|
28
28
|
import {
|
|
29
29
|
TracedAs,
|
|
30
30
|
init_decorator,
|
|
31
31
|
wrapFunction
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
33
33
|
import {
|
|
34
34
|
createLogger,
|
|
35
35
|
init_logger
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
37
37
|
import {
|
|
38
38
|
__legacyDecorateClassTS
|
|
39
39
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
globalHookManager,
|
|
11
11
|
init_global_hook_manager
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-743510fc.js";
|
|
13
13
|
import {
|
|
14
14
|
TracedAs,
|
|
15
15
|
init_decorator,
|
|
16
16
|
wrapFunction
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
22
22
|
import {
|
|
23
23
|
__esm,
|
|
24
24
|
__legacyDecorateClassTS
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseComponent
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
12
12
|
|
|
13
13
|
// src/env/commands/commands-component.ts
|
|
14
14
|
import path2 from "path";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
TracedAs,
|
|
6
6
|
init_decorator
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
12
12
|
import {
|
|
13
13
|
__legacyDecorateClassTS
|
|
14
14
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -151,24 +151,36 @@ class SQLiteSpanStorage {
|
|
|
151
151
|
if (!this.db)
|
|
152
152
|
return [];
|
|
153
153
|
const rows = this.db.prepare(`
|
|
154
|
-
SELECT trace_id,
|
|
154
|
+
SELECT trace_id,
|
|
155
155
|
MIN(start_time) as start_time,
|
|
156
156
|
MAX(end_time) as end_time,
|
|
157
|
-
COUNT(*) as span_count
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
COUNT(*) as span_count,
|
|
158
|
+
SUM(CASE WHEN status = 'error' THEN 1 ELSE 0 END) as error_count,
|
|
159
|
+
(SELECT name FROM span s2
|
|
160
|
+
WHERE s2.trace_id = span.trace_id
|
|
161
|
+
ORDER BY (s2.parent_span_id IS NULL OR s2.parent_span_id = '') DESC,
|
|
162
|
+
s2.start_time ASC
|
|
163
|
+
LIMIT 1) as root_name
|
|
164
|
+
FROM span
|
|
165
|
+
GROUP BY trace_id
|
|
166
|
+
ORDER BY start_time DESC
|
|
161
167
|
LIMIT ?
|
|
162
168
|
`).all(limit);
|
|
163
|
-
return rows.map((row) =>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
return rows.map((row) => {
|
|
170
|
+
const spanCount = Number(row.span_count) || 0;
|
|
171
|
+
const errorCount = Number(row.error_count) || 0;
|
|
172
|
+
const endTime = row.end_time ?? undefined;
|
|
173
|
+
const status = errorCount === 0 ? "ok" : errorCount >= spanCount ? "error" : "mixed";
|
|
174
|
+
return {
|
|
175
|
+
traceId: row.trace_id,
|
|
176
|
+
rootSpanName: row.root_name ?? "unknown",
|
|
177
|
+
startTime: row.start_time,
|
|
178
|
+
endTime,
|
|
179
|
+
duration: endTime !== undefined ? endTime - row.start_time : undefined,
|
|
180
|
+
spanCount,
|
|
181
|
+
status
|
|
182
|
+
};
|
|
183
|
+
});
|
|
172
184
|
}
|
|
173
185
|
deleteByTraceId(traceId) {
|
|
174
186
|
if (this.db) {
|
|
@@ -2,12 +2,12 @@ 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-zda3rfr3.js";
|
|
6
|
+
import"./roy-agent-core-d5gwqrr5.js";
|
|
7
7
|
import"./roy-agent-core-rvxg1wps.js";
|
|
8
|
-
import"./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
8
|
+
import"./roy-agent-core-qhjm0bxm.js";
|
|
9
|
+
import"./roy-agent-core-8seq65bp.js";
|
|
10
|
+
import"./roy-agent-core-jnszp0jq.js";
|
|
11
11
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
12
12
|
export {
|
|
13
13
|
rowToWorkflow,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_decorator,
|
|
3
3
|
wrapFunction
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-qhjm0bxm.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
9
9
|
import {
|
|
10
10
|
__esm
|
|
11
11
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
adaptMcpTool
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-8t7wny6v.js";
|
|
4
4
|
import {
|
|
5
5
|
ComponentError,
|
|
6
6
|
ErrorCodes
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-7hh0brvs.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseComponent
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-62c1t7wr.js";
|
|
14
14
|
import {
|
|
15
15
|
createLogger,
|
|
16
16
|
init_logger
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-8seq65bp.js";
|
|
18
18
|
import {
|
|
19
19
|
ensureFallbackNpmPrefix,
|
|
20
20
|
isUsableNpmPrefix
|