@ai-setting/roy-agent-core 1.5.81 → 1.5.84
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 +1 -1
- package/dist/env/event-source/index.js +2 -2
- package/dist/env/index.js +11 -10
- package/dist/env/prompt/index.js +1 -1
- package/dist/env/task/index.js +3 -3
- package/dist/env/task/plugins/index.js +1 -1
- package/dist/env/task/storage/index.js +1 -1
- package/dist/env/task/tools/index.js +1 -1
- package/dist/env/workflow/index.js +4 -3
- package/dist/env/workflow/service/index.js +8 -2
- package/dist/env/workflow/storage/index.js +11 -6
- package/dist/env/workflow/tools/index.js +15 -1
- package/dist/index.js +14 -12
- package/dist/shared/@ai-setting/{roy-agent-core-qbgd7bp6.js → roy-agent-core-015vw11k.js} +27 -1
- package/dist/shared/@ai-setting/{roy-agent-core-t2q0rwt7.js → roy-agent-core-29fh9mxg.js} +4 -7
- package/dist/shared/@ai-setting/roy-agent-core-3sv590cv.js +132 -0
- package/dist/shared/@ai-setting/{roy-agent-core-w83v54mj.js → roy-agent-core-7fdzfsm6.js} +42 -135
- package/dist/shared/@ai-setting/{roy-agent-core-df3ng0pz.js → roy-agent-core-7nh5h9fn.js} +31 -2
- package/dist/shared/@ai-setting/{roy-agent-core-am646wfz.js → roy-agent-core-86d4exyf.js} +5 -2
- package/dist/shared/@ai-setting/{roy-agent-core-vgyj2rq9.js → roy-agent-core-akepggsr.js} +150 -6
- package/dist/shared/@ai-setting/{roy-agent-core-v3t28k5n.js → roy-agent-core-bt7wezvg.js} +19 -10
- package/dist/shared/@ai-setting/roy-agent-core-c67wr8sp.js +11 -0
- package/dist/shared/@ai-setting/{roy-agent-core-496zzm5a.js → roy-agent-core-h4h55x4h.js} +183 -3
- package/dist/shared/@ai-setting/roy-agent-core-hhrg314p.js +34 -0
- package/dist/shared/@ai-setting/{roy-agent-core-r9y8ct0w.js → roy-agent-core-pcdzfwdv.js} +4 -0
- package/dist/shared/@ai-setting/{roy-agent-core-p8jv13bm.js → roy-agent-core-qjv8537d.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-r5axf0ad.js +751 -0
- package/dist/shared/@ai-setting/{roy-agent-core-74cp3zp1.js → roy-agent-core-taxvytzz.js} +4 -1
- package/dist/shared/@ai-setting/roy-agent-core-tq9528d3.js +336 -0
- package/dist/shared/@ai-setting/{roy-agent-core-j8q8119y.js → roy-agent-core-ya1ayt1k.js} +1 -1
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-4t40mkpv.js +0 -206
- package/dist/shared/@ai-setting/roy-agent-core-6b57g1zk.js +0 -103
- package/dist/shared/@ai-setting/roy-agent-core-a6j7g1qe.js +0 -428
package/dist/env/agent/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-015vw11k.js";
|
|
5
5
|
import"../../shared/@ai-setting/roy-agent-core-r0m0at3x.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-mbre4fxg.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
builtInHandlers,
|
|
5
5
|
getBuiltInHandler,
|
|
6
6
|
larkCliHandler
|
|
7
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-ya1ayt1k.js";
|
|
8
8
|
import {
|
|
9
9
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
10
10
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
validateEventSourceConfig
|
|
16
16
|
} from "../../shared/@ai-setting/roy-agent-core-xb4hvk1m.js";
|
|
17
17
|
import"../../shared/@ai-setting/roy-agent-core-v8xa6vs8.js";
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-7fdzfsm6.js";
|
|
19
19
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
package/dist/env/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseEnvironment
|
|
3
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-29fh9mxg.js";
|
|
4
4
|
import {
|
|
5
5
|
EventSourceComponent,
|
|
6
6
|
builtInHandlers,
|
|
7
7
|
larkCliHandler
|
|
8
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../shared/@ai-setting/roy-agent-core-ya1ayt1k.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,11 +17,11 @@ import"../shared/@ai-setting/roy-agent-core-v8xa6vs8.js";
|
|
|
17
17
|
import {
|
|
18
18
|
PluginComponent
|
|
19
19
|
} from "../shared/@ai-setting/roy-agent-core-t1ef8hf2.js";
|
|
20
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-7fdzfsm6.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-bt7wezvg.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-fjexv5nm.js";
|
|
26
26
|
import"../shared/@ai-setting/roy-agent-core-6b0r2e7j.js";
|
|
27
27
|
import"../shared/@ai-setting/roy-agent-core-m4qjnhz6.js";
|
|
@@ -29,32 +29,33 @@ import"../shared/@ai-setting/roy-agent-core-7z8fzxck.js";
|
|
|
29
29
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
30
30
|
import"../shared/@ai-setting/roy-agent-core-gb9gbkc3.js";
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
32
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
32
|
+
import"../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
33
33
|
import"../shared/@ai-setting/roy-agent-core-j754zgb4.js";
|
|
34
34
|
import"../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
35
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
35
|
+
import"../shared/@ai-setting/roy-agent-core-r5axf0ad.js";
|
|
36
36
|
import"../shared/@ai-setting/roy-agent-core-whw7jap0.js";
|
|
37
|
+
import"../shared/@ai-setting/roy-agent-core-tq9528d3.js";
|
|
37
38
|
import"../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
38
39
|
import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
39
40
|
import {
|
|
40
41
|
AgentComponent,
|
|
41
42
|
AgentComponentConfigSchema
|
|
42
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
43
|
+
} from "../shared/@ai-setting/roy-agent-core-015vw11k.js";
|
|
43
44
|
import"../shared/@ai-setting/roy-agent-core-r0m0at3x.js";
|
|
44
45
|
import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
45
46
|
import {
|
|
46
47
|
TaskComponent
|
|
47
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
48
|
+
} from "../shared/@ai-setting/roy-agent-core-qjv8537d.js";
|
|
48
49
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
49
50
|
import"../shared/@ai-setting/roy-agent-core-f6p7wwpd.js";
|
|
50
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
51
|
+
import"../shared/@ai-setting/roy-agent-core-pcdzfwdv.js";
|
|
51
52
|
import"../shared/@ai-setting/roy-agent-core-mbre4fxg.js";
|
|
52
53
|
import {
|
|
53
54
|
XDG_PATHS,
|
|
54
55
|
getXDGPath,
|
|
55
56
|
getXDGPaths
|
|
56
57
|
} from "../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
57
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
58
|
+
import"../shared/@ai-setting/roy-agent-core-7nh5h9fn.js";
|
|
58
59
|
import"../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
59
60
|
import"../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
60
61
|
import {
|
package/dist/env/prompt/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PromptConfigSchema,
|
|
4
4
|
PromptPathSchema,
|
|
5
5
|
PromptRenderer
|
|
6
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../shared/@ai-setting/roy-agent-core-akepggsr.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-rgckng3p.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
TaskPriorityEnum,
|
|
6
6
|
TaskStatusEnum,
|
|
7
7
|
TaskTypeEnum
|
|
8
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../shared/@ai-setting/roy-agent-core-qjv8537d.js";
|
|
9
9
|
import {
|
|
10
10
|
TaskEntityEventTypes
|
|
11
11
|
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
@@ -13,10 +13,10 @@ import"../../shared/@ai-setting/roy-agent-core-f6p7wwpd.js";
|
|
|
13
13
|
import {
|
|
14
14
|
SQLiteTaskStore,
|
|
15
15
|
getDefaultTaskDbPath
|
|
16
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
16
|
+
} from "../../shared/@ai-setting/roy-agent-core-pcdzfwdv.js";
|
|
17
17
|
import"../../shared/@ai-setting/roy-agent-core-mbre4fxg.js";
|
|
18
18
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-7nh5h9fn.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
formatExtractorInput,
|
|
10
10
|
formatExtractorInputFromDescription,
|
|
11
11
|
parseExtractorOutput
|
|
12
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
12
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7fdzfsm6.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
14
14
|
import"../../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
15
15
|
import"../../../shared/@ai-setting/roy-agent-core-qg4rma4c.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SQLiteTaskStore,
|
|
3
3
|
getDefaultDataDir,
|
|
4
4
|
getDefaultTaskDbPath
|
|
5
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../../shared/@ai-setting/roy-agent-core-pcdzfwdv.js";
|
|
6
6
|
import"../../../shared/@ai-setting/roy-agent-core-shme7set.js";
|
|
7
7
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
8
8
|
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
listTasksTool,
|
|
9
9
|
searchTasksTool,
|
|
10
10
|
updateTaskTool
|
|
11
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7nh5h9fn.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-y5d04fm3.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-k05v31rc.js";
|
|
14
14
|
import"../../../shared/@ai-setting/roy-agent-core-shme7set.js";
|
|
@@ -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-bt7wezvg.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-fjexv5nm.js";
|
|
5
5
|
import"../../shared/@ai-setting/roy-agent-core-6b0r2e7j.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-m4qjnhz6.js";
|
|
@@ -8,7 +8,7 @@ import"../../shared/@ai-setting/roy-agent-core-7z8fzxck.js";
|
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-gb9gbkc3.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
11
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
import"../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
12
12
|
import"../../shared/@ai-setting/roy-agent-core-j754zgb4.js";
|
|
13
13
|
import {
|
|
14
14
|
BaseEventSchema,
|
|
@@ -61,8 +61,9 @@ import {
|
|
|
61
61
|
pathNotFound,
|
|
62
62
|
unresolvedVariable
|
|
63
63
|
} from "../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
64
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
64
|
+
import"../../shared/@ai-setting/roy-agent-core-r5axf0ad.js";
|
|
65
65
|
import"../../shared/@ai-setting/roy-agent-core-whw7jap0.js";
|
|
66
|
+
import"../../shared/@ai-setting/roy-agent-core-tq9528d3.js";
|
|
66
67
|
import {
|
|
67
68
|
Edge,
|
|
68
69
|
NodeAs,
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
WorkflowService,
|
|
3
2
|
WorkflowServiceRegistry,
|
|
4
3
|
getWorkflowService,
|
|
5
4
|
registerWorkflowService
|
|
6
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
6
|
+
import {
|
|
7
|
+
WorkflowService
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-tq9528d3.js";
|
|
9
|
+
import"../../../shared/@ai-setting/roy-agent-core-k05v31rc.js";
|
|
10
|
+
import"../../../shared/@ai-setting/roy-agent-core-shme7set.js";
|
|
11
|
+
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
12
|
+
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
7
13
|
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
8
14
|
export {
|
|
9
15
|
registerWorkflowService,
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowRepository,
|
|
3
|
-
rowToWorkflow
|
|
4
|
-
} from "../../../shared/@ai-setting/roy-agent-core-496zzm5a.js";
|
|
5
|
-
import {
|
|
6
3
|
closeDatabase,
|
|
7
4
|
getDatabase,
|
|
8
5
|
getDatabasePath,
|
|
9
6
|
initDatabase,
|
|
10
7
|
initializeTables,
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
migrateEmptyTagsToDefault,
|
|
9
|
+
resetDatabase,
|
|
10
|
+
rowToWorkflow
|
|
11
|
+
} from "../../../shared/@ai-setting/roy-agent-core-h4h55x4h.js";
|
|
12
|
+
import {
|
|
13
|
+
TagRepository
|
|
14
|
+
} from "../../../shared/@ai-setting/roy-agent-core-3sv590cv.js";
|
|
13
15
|
import"../../../shared/@ai-setting/roy-agent-core-rvxg1wps.js";
|
|
16
|
+
import"../../../shared/@ai-setting/roy-agent-core-k05v31rc.js";
|
|
14
17
|
import"../../../shared/@ai-setting/roy-agent-core-shme7set.js";
|
|
15
18
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
16
19
|
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
@@ -18,10 +21,12 @@ import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
|
18
21
|
export {
|
|
19
22
|
rowToWorkflow,
|
|
20
23
|
resetDatabase,
|
|
24
|
+
migrateEmptyTagsToDefault,
|
|
21
25
|
initializeTables,
|
|
22
26
|
initDatabase,
|
|
23
27
|
getDatabasePath,
|
|
24
28
|
getDatabase,
|
|
25
29
|
closeDatabase,
|
|
26
|
-
WorkflowRepository
|
|
30
|
+
WorkflowRepository,
|
|
31
|
+
TagRepository
|
|
27
32
|
};
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AskUserInputSchema,
|
|
3
3
|
RunWorkflowInputSchema,
|
|
4
|
+
WorkflowAddInputSchema,
|
|
4
5
|
WorkflowGetInputSchema,
|
|
5
6
|
WorkflowListInputSchema,
|
|
6
7
|
WorkflowRunStatusInputSchema,
|
|
7
8
|
WorkflowRunStopInputSchema,
|
|
9
|
+
WorkflowSearchInputSchema,
|
|
10
|
+
WorkflowTagListInputSchema,
|
|
8
11
|
askUserTool,
|
|
9
12
|
askUserToolInstance,
|
|
10
13
|
createLegacyRunWorkflowTool,
|
|
11
14
|
createRunWorkflowTool,
|
|
15
|
+
createWorkflowAddTool,
|
|
12
16
|
createWorkflowGetTool,
|
|
13
17
|
createWorkflowListTool,
|
|
14
18
|
createWorkflowRunStatusTool,
|
|
15
19
|
createWorkflowRunStopTool,
|
|
20
|
+
createWorkflowSearchTool,
|
|
21
|
+
createWorkflowTagListTool,
|
|
16
22
|
getRunWorkflowTool,
|
|
17
23
|
initRunWorkflowTool,
|
|
18
24
|
resetRunWorkflowTool
|
|
19
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
25
|
+
} from "../../../shared/@ai-setting/roy-agent-core-r5axf0ad.js";
|
|
20
26
|
import {
|
|
21
27
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
22
28
|
WorkflowJsonOutputMarker,
|
|
@@ -24,7 +30,9 @@ import {
|
|
|
24
30
|
init_submit_json_output_tool,
|
|
25
31
|
parseWorkflowJsonOutput
|
|
26
32
|
} from "../../../shared/@ai-setting/roy-agent-core-whw7jap0.js";
|
|
33
|
+
import"../../../shared/@ai-setting/roy-agent-core-tq9528d3.js";
|
|
27
34
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
35
|
+
import"../../../shared/@ai-setting/roy-agent-core-k05v31rc.js";
|
|
28
36
|
import"../../../shared/@ai-setting/roy-agent-core-shme7set.js";
|
|
29
37
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
30
38
|
import"../../../shared/@ai-setting/roy-agent-core-c6592r3c.js";
|
|
@@ -37,20 +45,26 @@ export {
|
|
|
37
45
|
parseWorkflowJsonOutput,
|
|
38
46
|
initRunWorkflowTool,
|
|
39
47
|
getRunWorkflowTool,
|
|
48
|
+
createWorkflowTagListTool,
|
|
49
|
+
createWorkflowSearchTool,
|
|
40
50
|
createWorkflowRunStopTool,
|
|
41
51
|
createWorkflowRunStatusTool,
|
|
42
52
|
createWorkflowListTool,
|
|
43
53
|
createWorkflowGetTool,
|
|
54
|
+
createWorkflowAddTool,
|
|
44
55
|
createSubmitJsonOutputTool,
|
|
45
56
|
createRunWorkflowTool,
|
|
46
57
|
createLegacyRunWorkflowTool,
|
|
47
58
|
askUserToolInstance,
|
|
48
59
|
askUserTool,
|
|
60
|
+
WorkflowTagListInputSchema,
|
|
61
|
+
WorkflowSearchInputSchema,
|
|
49
62
|
WorkflowRunStopInputSchema,
|
|
50
63
|
WorkflowRunStatusInputSchema,
|
|
51
64
|
WorkflowListInputSchema,
|
|
52
65
|
WorkflowJsonOutputMarker,
|
|
53
66
|
WorkflowGetInputSchema,
|
|
67
|
+
WorkflowAddInputSchema,
|
|
54
68
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
55
69
|
RunWorkflowInputSchema,
|
|
56
70
|
AskUserInputSchema
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PromptStore,
|
|
4
4
|
getBuiltInPrompt,
|
|
5
5
|
getBuiltInPromptNames
|
|
6
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "./shared/@ai-setting/roy-agent-core-akepggsr.js";
|
|
7
7
|
import {
|
|
8
8
|
LLMComponent,
|
|
9
9
|
LLMConfigSchema,
|
|
@@ -35,7 +35,8 @@ import {
|
|
|
35
35
|
} from "./shared/@ai-setting/roy-agent-core-8pk6a00t.js";
|
|
36
36
|
import {
|
|
37
37
|
closeDatabase
|
|
38
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
38
|
+
} from "./shared/@ai-setting/roy-agent-core-h4h55x4h.js";
|
|
39
|
+
import"./shared/@ai-setting/roy-agent-core-3sv590cv.js";
|
|
39
40
|
import"./shared/@ai-setting/roy-agent-core-2grcjaad.js";
|
|
40
41
|
import {
|
|
41
42
|
MemoryComponent
|
|
@@ -57,13 +58,13 @@ import {
|
|
|
57
58
|
BaseEnvironment,
|
|
58
59
|
generateDescendingId,
|
|
59
60
|
generateId
|
|
60
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
61
|
+
} from "./shared/@ai-setting/roy-agent-core-29fh9mxg.js";
|
|
61
62
|
import {
|
|
62
63
|
EventSourceComponent,
|
|
63
64
|
builtInHandlers,
|
|
64
65
|
getBuiltInHandler,
|
|
65
66
|
larkCliHandler
|
|
66
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
67
|
+
} from "./shared/@ai-setting/roy-agent-core-ya1ayt1k.js";
|
|
67
68
|
import {
|
|
68
69
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
69
70
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -83,13 +84,13 @@ import {
|
|
|
83
84
|
import {
|
|
84
85
|
TaskTagPlugin,
|
|
85
86
|
createAutoTaskPlugin
|
|
86
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
87
|
+
} from "./shared/@ai-setting/roy-agent-core-7fdzfsm6.js";
|
|
87
88
|
import {
|
|
88
89
|
BasePlugin
|
|
89
90
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
90
91
|
import {
|
|
91
92
|
WorkflowComponent
|
|
92
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
93
|
+
} from "./shared/@ai-setting/roy-agent-core-bt7wezvg.js";
|
|
93
94
|
import {
|
|
94
95
|
init_node_registry_helper,
|
|
95
96
|
registerDecoratorNodeType
|
|
@@ -100,11 +101,12 @@ import"./shared/@ai-setting/roy-agent-core-7z8fzxck.js";
|
|
|
100
101
|
import"./shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
101
102
|
import"./shared/@ai-setting/roy-agent-core-gb9gbkc3.js";
|
|
102
103
|
import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
103
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
104
|
+
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
104
105
|
import"./shared/@ai-setting/roy-agent-core-j754zgb4.js";
|
|
105
106
|
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
106
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
107
|
+
import"./shared/@ai-setting/roy-agent-core-r5axf0ad.js";
|
|
107
108
|
import"./shared/@ai-setting/roy-agent-core-whw7jap0.js";
|
|
109
|
+
import"./shared/@ai-setting/roy-agent-core-tq9528d3.js";
|
|
108
110
|
import {
|
|
109
111
|
Edge,
|
|
110
112
|
NodeAs,
|
|
@@ -116,7 +118,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
116
118
|
import {
|
|
117
119
|
AgentComponent,
|
|
118
120
|
AgentComponentConfigSchema
|
|
119
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
121
|
+
} from "./shared/@ai-setting/roy-agent-core-015vw11k.js";
|
|
120
122
|
import {
|
|
121
123
|
createInvokeConfig,
|
|
122
124
|
invoke,
|
|
@@ -129,13 +131,13 @@ import {
|
|
|
129
131
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
130
132
|
import {
|
|
131
133
|
TaskComponent
|
|
132
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
134
|
+
} from "./shared/@ai-setting/roy-agent-core-qjv8537d.js";
|
|
133
135
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
134
136
|
import"./shared/@ai-setting/roy-agent-core-f6p7wwpd.js";
|
|
135
137
|
import {
|
|
136
138
|
SQLiteTaskStore,
|
|
137
139
|
getDefaultTaskDbPath
|
|
138
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
140
|
+
} from "./shared/@ai-setting/roy-agent-core-pcdzfwdv.js";
|
|
139
141
|
import {
|
|
140
142
|
AgentRegistry
|
|
141
143
|
} from "./shared/@ai-setting/roy-agent-core-mbre4fxg.js";
|
|
@@ -144,7 +146,7 @@ import {
|
|
|
144
146
|
getXDGPath,
|
|
145
147
|
getXDGPaths
|
|
146
148
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
147
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
149
|
+
import"./shared/@ai-setting/roy-agent-core-7nh5h9fn.js";
|
|
148
150
|
import"./shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
149
151
|
import {
|
|
150
152
|
TaskHookPoints
|
|
@@ -548,6 +548,27 @@ class AgentComponent extends BaseComponent {
|
|
|
548
548
|
this.doomLoopCaches.set(runId, new Map);
|
|
549
549
|
}
|
|
550
550
|
await this.resolveSystemPrompt(agent, agentName);
|
|
551
|
+
if (agent.config.systemPrompt) {
|
|
552
|
+
const sp = agent.config.systemPrompt;
|
|
553
|
+
if (sp.includes("{{workspace_dir}}")) {
|
|
554
|
+
const workspaceDir = this.env?.getComponent?.("config")?.get?.("workspace_dir") || process.cwd();
|
|
555
|
+
agent.config.systemPrompt = agent.config.systemPrompt.replaceAll("{{workspace_dir}}", String(workspaceDir));
|
|
556
|
+
}
|
|
557
|
+
if (sp.includes("{{memory}}")) {
|
|
558
|
+
try {
|
|
559
|
+
const memoryComponent = this.env?.getComponent?.("memory");
|
|
560
|
+
if (memoryComponent && typeof memoryComponent.recallMemory === "function") {
|
|
561
|
+
const memoryContent = await memoryComponent.recallMemory();
|
|
562
|
+
agent.config.systemPrompt = agent.config.systemPrompt.replace("{{memory}}", memoryContent || "(No memory)");
|
|
563
|
+
} else {
|
|
564
|
+
agent.config.systemPrompt = agent.config.systemPrompt.replace("{{memory}}", "(Memory component not available)");
|
|
565
|
+
}
|
|
566
|
+
} catch (err) {
|
|
567
|
+
logger.warn(`[AgentComponent._run] Failed to replace {{memory}}: ${err}`);
|
|
568
|
+
agent.config.systemPrompt = agent.config.systemPrompt.replace("{{memory}}", "(Failed to load memory)");
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
551
572
|
const effectiveContext = {
|
|
552
573
|
...context,
|
|
553
574
|
agentType: agent.config.type,
|
|
@@ -637,6 +658,7 @@ class AgentComponent extends BaseComponent {
|
|
|
637
658
|
result.iterations = iteration;
|
|
638
659
|
logger.debug(`Iteration ${iteration} started`);
|
|
639
660
|
this.doomLoopCaches.set(runId, new Map);
|
|
661
|
+
hookCtx.currentToolCall = undefined;
|
|
640
662
|
hookCtx.maxIterations = agent.config.maxIterations;
|
|
641
663
|
try {
|
|
642
664
|
logger.debug(`[ReAct] Iteration ${iteration} buildMessages result: ${hookCtx.messages.length} messages`);
|
|
@@ -957,7 +979,11 @@ class AgentComponent extends BaseComponent {
|
|
|
957
979
|
historyMessageCount,
|
|
958
980
|
sessionId: effectiveContext.sessionId
|
|
959
981
|
});
|
|
960
|
-
|
|
982
|
+
if (effectiveContext.persistSession !== false) {
|
|
983
|
+
await this.recordSessionMessages(effectiveContext.sessionId, newMessages);
|
|
984
|
+
} else {
|
|
985
|
+
logger.debug(`Skipping session message recording (persistSession=false, sessionId=${effectiveContext.sessionId})`);
|
|
986
|
+
}
|
|
961
987
|
return this.finalizeResult(result, hookCtx);
|
|
962
988
|
});
|
|
963
989
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoTaskPlugin
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-7fdzfsm6.js";
|
|
4
4
|
import {
|
|
5
5
|
ContextError,
|
|
6
6
|
ErrorCodes
|
|
@@ -195,15 +195,12 @@ class BaseEnvironment extends BaseComponent {
|
|
|
195
195
|
});
|
|
196
196
|
logger.info(`[handle_query] Created default receptionist agent with deniedTools: ${defaultDeniedTools.length} tools denied`);
|
|
197
197
|
try {
|
|
198
|
-
const llmRef = this.getComponent("llm");
|
|
199
|
-
const toolRef = this.getComponent("tool");
|
|
200
198
|
const autoTaskPlugin = createAutoTaskPlugin({
|
|
201
|
-
threshold:
|
|
202
|
-
|
|
203
|
-
toolComponent: toolRef ?? undefined
|
|
199
|
+
threshold: 20,
|
|
200
|
+
agentComponent
|
|
204
201
|
});
|
|
205
202
|
agentComponent.registerPlugin("default", autoTaskPlugin);
|
|
206
|
-
logger.info("[handle_query] AutoTaskPlugin
|
|
203
|
+
logger.info("[handle_query] AutoTaskPlugin v4.4 registered on default agent (threshold=20)");
|
|
207
204
|
} catch (err) {
|
|
208
205
|
logger.warn(`[handle_query] Failed to register AutoTaskPlugin: ${err}`);
|
|
209
206
|
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TracedAs,
|
|
3
|
+
init_decorator
|
|
4
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
5
|
+
import {
|
|
6
|
+
__legacyDecorateClassTS
|
|
7
|
+
} from "./roy-agent-core-fs0mn2jk.js";
|
|
8
|
+
|
|
9
|
+
// src/env/workflow/storage/tag-repo.ts
|
|
10
|
+
init_decorator();
|
|
11
|
+
class TagRepository {
|
|
12
|
+
db;
|
|
13
|
+
constructor(db) {
|
|
14
|
+
this.db = db;
|
|
15
|
+
}
|
|
16
|
+
static createTable(db) {
|
|
17
|
+
db.exec(`
|
|
18
|
+
CREATE TABLE IF NOT EXISTS workflow_tags (
|
|
19
|
+
name TEXT PRIMARY KEY,
|
|
20
|
+
usage_count INTEGER NOT NULL DEFAULT 0,
|
|
21
|
+
created_at TEXT NOT NULL,
|
|
22
|
+
updated_at TEXT NOT NULL
|
|
23
|
+
);
|
|
24
|
+
`);
|
|
25
|
+
db.exec(`
|
|
26
|
+
CREATE INDEX IF NOT EXISTS idx_workflow_tags_usage
|
|
27
|
+
ON workflow_tags(usage_count DESC);
|
|
28
|
+
`);
|
|
29
|
+
}
|
|
30
|
+
upsertMany(names) {
|
|
31
|
+
if (!names || names.length === 0)
|
|
32
|
+
return;
|
|
33
|
+
const insertStmt = this.db.prepare(`
|
|
34
|
+
INSERT INTO workflow_tags (name, usage_count, created_at, updated_at)
|
|
35
|
+
VALUES (?, 1, ?, ?)
|
|
36
|
+
ON CONFLICT(name) DO UPDATE SET
|
|
37
|
+
usage_count = usage_count + 1,
|
|
38
|
+
updated_at = excluded.updated_at
|
|
39
|
+
`);
|
|
40
|
+
const now = new Date().toISOString();
|
|
41
|
+
for (const name of names) {
|
|
42
|
+
const trimmed = (name ?? "").trim();
|
|
43
|
+
if (!trimmed)
|
|
44
|
+
continue;
|
|
45
|
+
insertStmt.run(trimmed, now, now);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
decrementMany(names) {
|
|
49
|
+
if (!names || names.length === 0)
|
|
50
|
+
return;
|
|
51
|
+
const updateStmt = this.db.prepare(`
|
|
52
|
+
UPDATE workflow_tags
|
|
53
|
+
SET usage_count = MAX(0, usage_count - 1),
|
|
54
|
+
updated_at = ?
|
|
55
|
+
WHERE name = ?
|
|
56
|
+
`);
|
|
57
|
+
const now = new Date().toISOString();
|
|
58
|
+
for (const name of names) {
|
|
59
|
+
const trimmed = (name ?? "").trim();
|
|
60
|
+
if (!trimmed)
|
|
61
|
+
continue;
|
|
62
|
+
updateStmt.run(now, trimmed);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
list(options = {}) {
|
|
66
|
+
const sortBy = options.sortBy ?? "usage_count";
|
|
67
|
+
const order = (options.order ?? "desc").toUpperCase();
|
|
68
|
+
const limit = options.limit ?? undefined;
|
|
69
|
+
let sortColumn;
|
|
70
|
+
switch (sortBy) {
|
|
71
|
+
case "name":
|
|
72
|
+
sortColumn = "name";
|
|
73
|
+
break;
|
|
74
|
+
case "created_at":
|
|
75
|
+
sortColumn = "created_at";
|
|
76
|
+
break;
|
|
77
|
+
case "usage_count":
|
|
78
|
+
default:
|
|
79
|
+
sortColumn = "usage_count";
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
let sql = `SELECT name, usage_count, created_at, updated_at
|
|
83
|
+
FROM workflow_tags
|
|
84
|
+
ORDER BY ${sortColumn} ${order}, name ASC`;
|
|
85
|
+
if (typeof limit === "number" && limit > 0) {
|
|
86
|
+
sql += ` LIMIT ${Math.floor(limit)}`;
|
|
87
|
+
}
|
|
88
|
+
const rows = this.db.prepare(sql).all();
|
|
89
|
+
return rows.map((r) => ({
|
|
90
|
+
name: r.name,
|
|
91
|
+
usage_count: r.usage_count,
|
|
92
|
+
created_at: r.created_at,
|
|
93
|
+
updated_at: r.updated_at
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
get(name) {
|
|
97
|
+
const row = this.db.prepare(`SELECT name, usage_count, created_at, updated_at
|
|
98
|
+
FROM workflow_tags
|
|
99
|
+
WHERE name = ?`).get(name);
|
|
100
|
+
if (!row)
|
|
101
|
+
return;
|
|
102
|
+
return {
|
|
103
|
+
name: row.name,
|
|
104
|
+
usage_count: row.usage_count,
|
|
105
|
+
created_at: row.created_at,
|
|
106
|
+
updated_at: row.updated_at
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
__legacyDecorateClassTS([
|
|
111
|
+
TracedAs("workflow.tag_repo.upsertMany", {
|
|
112
|
+
recordParams: true,
|
|
113
|
+
recordResult: false,
|
|
114
|
+
log: false
|
|
115
|
+
})
|
|
116
|
+
], TagRepository.prototype, "upsertMany", null);
|
|
117
|
+
__legacyDecorateClassTS([
|
|
118
|
+
TracedAs("workflow.tag_repo.decrementMany", {
|
|
119
|
+
recordParams: true,
|
|
120
|
+
recordResult: false,
|
|
121
|
+
log: false
|
|
122
|
+
})
|
|
123
|
+
], TagRepository.prototype, "decrementMany", null);
|
|
124
|
+
__legacyDecorateClassTS([
|
|
125
|
+
TracedAs("workflow.tag_repo.list", {
|
|
126
|
+
recordParams: true,
|
|
127
|
+
recordResult: true,
|
|
128
|
+
log: false
|
|
129
|
+
})
|
|
130
|
+
], TagRepository.prototype, "list", null);
|
|
131
|
+
|
|
132
|
+
export { TagRepository };
|