@ai-setting/roy-agent-core 1.5.107 → 1.5.108
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 +2 -2
- package/dist/env/event-source/index.js +3 -3
- package/dist/env/index.js +10 -10
- package/dist/env/prompt/index.js +2 -2
- package/dist/env/task/delegate/index.js +3 -3
- package/dist/env/task/index.js +4 -4
- package/dist/env/task/plugins/index.js +2 -2
- package/dist/env/workflow/index.js +3 -3
- package/dist/env/workflow/service/index.js +1 -1
- package/dist/env/workflow/tools/index.js +2 -2
- package/dist/index.js +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-rj9qpdm5.js → roy-agent-core-0z7wxga5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7aqhafd9.js → roy-agent-core-7qtjwc6n.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-nz5wn9yc.js → roy-agent-core-adtaw927.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-k31c3kvz.js → roy-agent-core-as3phr7n.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-e7t3rj0e.js → roy-agent-core-b75jtybq.js} +39 -0
- package/dist/shared/@ai-setting/{roy-agent-core-5zbfs2v9.js → roy-agent-core-c91kajaz.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-0azsw550.js → roy-agent-core-ezqr705j.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-44tqfctj.js → roy-agent-core-ferwt92c.js} +14 -3
- package/dist/shared/@ai-setting/{roy-agent-core-8y4ccnfh.js → roy-agent-core-qcdh4t1j.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-n6dgm687.js → roy-agent-core-seak6edf.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ztjpg1p3.js → roy-agent-core-tshbggk8.js} +26 -13
- package/package.json +1 -1
package/dist/env/agent/index.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
AgentComponent,
|
|
3
3
|
AgentComponentConfigSchema,
|
|
4
4
|
SummaryAgent
|
|
5
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
} from "../../shared/@ai-setting/roy-agent-core-adtaw927.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-nbsw8k13.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-xjdcx45t.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
11
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
import"../../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
12
12
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-ctdhjv68.js";
|
|
14
14
|
import"../../shared/@ai-setting/roy-agent-core-yfhgxh5a.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
larkCliHandler,
|
|
11
11
|
resolveBountyIMSystemPrompt,
|
|
12
12
|
timerHandler
|
|
13
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
} from "../../shared/@ai-setting/roy-agent-core-ezqr705j.js";
|
|
14
14
|
import {
|
|
15
15
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
16
16
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
validateEventSourceConfig
|
|
22
22
|
} from "../../shared/@ai-setting/roy-agent-core-ds5f75pg.js";
|
|
23
23
|
import"../../shared/@ai-setting/roy-agent-core-wmkx79b1.js";
|
|
24
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-c91kajaz.js";
|
|
25
25
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
26
26
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
27
27
|
import"../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
28
28
|
import"../../shared/@ai-setting/roy-agent-core-xjdcx45t.js";
|
|
29
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
29
|
+
import"../../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
31
31
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
32
32
|
import"../../shared/@ai-setting/roy-agent-core-pf1c360e.js";
|
package/dist/env/index.js
CHANGED
|
@@ -5,7 +5,7 @@ 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-ezqr705j.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,11 +17,11 @@ import"../shared/@ai-setting/roy-agent-core-wmkx79b1.js";
|
|
|
17
17
|
import {
|
|
18
18
|
PluginComponent
|
|
19
19
|
} from "../shared/@ai-setting/roy-agent-core-z7dxedn6.js";
|
|
20
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-c91kajaz.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-qcdh4t1j.js";
|
|
25
25
|
import"../shared/@ai-setting/roy-agent-core-xgnpr28w.js";
|
|
26
26
|
import"../shared/@ai-setting/roy-agent-core-kbasdf13.js";
|
|
27
27
|
import"../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
@@ -31,9 +31,9 @@ import"../shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
|
31
31
|
import"../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
32
32
|
import"../shared/@ai-setting/roy-agent-core-g2mth323.js";
|
|
33
33
|
import"../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
34
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
34
|
+
import"../shared/@ai-setting/roy-agent-core-tshbggk8.js";
|
|
35
35
|
import"../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
36
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
36
|
+
import"../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
37
37
|
import"../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
38
38
|
import"../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
39
39
|
import"../shared/@ai-setting/roy-agent-core-h0x19xgn.js";
|
|
@@ -41,7 +41,7 @@ import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
41
41
|
import {
|
|
42
42
|
AgentComponent,
|
|
43
43
|
AgentComponentConfigSchema
|
|
44
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
44
|
+
} from "../shared/@ai-setting/roy-agent-core-adtaw927.js";
|
|
45
45
|
import"../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
46
46
|
import"../shared/@ai-setting/roy-agent-core-nbsw8k13.js";
|
|
47
47
|
import"../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
@@ -49,13 +49,13 @@ import"../shared/@ai-setting/roy-agent-core-xjdcx45t.js";
|
|
|
49
49
|
import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
50
50
|
import {
|
|
51
51
|
TaskComponent
|
|
52
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
52
|
+
} from "../shared/@ai-setting/roy-agent-core-seak6edf.js";
|
|
53
53
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
54
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
54
|
+
import"../shared/@ai-setting/roy-agent-core-7qtjwc6n.js";
|
|
55
55
|
import"../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
56
56
|
import"../shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
57
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
58
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
57
|
+
import"../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
58
|
+
import"../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
59
59
|
import {
|
|
60
60
|
XDG_PATHS,
|
|
61
61
|
getXDGPath,
|
package/dist/env/prompt/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
PromptConfigSchema,
|
|
4
4
|
PromptPathSchema,
|
|
5
5
|
PromptRenderer
|
|
6
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../shared/@ai-setting/roy-agent-core-0z7wxga5.js";
|
|
7
|
+
import"../../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
10
10
|
import"../../shared/@ai-setting/roy-agent-core-pf1c360e.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
BackgroundTaskManager,
|
|
4
4
|
createDelegateTool,
|
|
5
5
|
createStopTool
|
|
6
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../../shared/@ai-setting/roy-agent-core-7qtjwc6n.js";
|
|
7
7
|
import"../../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
8
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
9
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
import"../../../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
9
|
+
import"../../../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-gp872e7m.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -5,18 +5,18 @@ 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-seak6edf.js";
|
|
9
9
|
import {
|
|
10
10
|
TaskEntityEventTypes
|
|
11
11
|
} from "../../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
12
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
12
|
+
import"../../shared/@ai-setting/roy-agent-core-7qtjwc6n.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
14
14
|
import {
|
|
15
15
|
SQLiteTaskStore,
|
|
16
16
|
getDefaultTaskDbPath
|
|
17
17
|
} from "../../shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
18
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
19
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
20
20
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
21
21
|
import"../../shared/@ai-setting/roy-agent-core-0ye4q2jj.js";
|
|
22
22
|
import"../../shared/@ai-setting/roy-agent-core-t94ktchq.js";
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
formatExtractorInput,
|
|
8
8
|
formatExtractorInputFromDescription,
|
|
9
9
|
parseExtractorOutput
|
|
10
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
} from "../../../shared/@ai-setting/roy-agent-core-c91kajaz.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
13
13
|
import"../../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
14
14
|
import {
|
|
15
15
|
createAutoTaskPlugin
|
|
16
16
|
} from "../../../shared/@ai-setting/roy-agent-core-xjdcx45t.js";
|
|
17
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
17
|
+
import"../../../shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
18
18
|
import"../../../shared/@ai-setting/roy-agent-core-1pg0fepg.js";
|
|
19
19
|
import"../../../shared/@ai-setting/roy-agent-core-zttjq1h3.js";
|
|
20
20
|
import"../../../shared/@ai-setting/roy-agent-core-scp0afxg.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-qcdh4t1j.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-xgnpr28w.js";
|
|
5
5
|
import"../../shared/@ai-setting/roy-agent-core-kbasdf13.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-6atd905e.js";
|
|
@@ -60,9 +60,9 @@ import {
|
|
|
60
60
|
pathNotFound,
|
|
61
61
|
unresolvedVariable
|
|
62
62
|
} from "../../shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
63
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
63
|
+
import"../../shared/@ai-setting/roy-agent-core-tshbggk8.js";
|
|
64
64
|
import"../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
65
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
65
|
+
import"../../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
66
66
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
67
67
|
import"../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
68
68
|
import {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "../../../shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
6
6
|
import {
|
|
7
7
|
WorkflowService
|
|
8
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
9
9
|
import"../../../shared/@ai-setting/roy-agent-core-cg146hmg.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-vyygk314.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-7z9b1fm8.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
getRunWorkflowTool,
|
|
25
25
|
initRunWorkflowTool,
|
|
26
26
|
resetRunWorkflowTool
|
|
27
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "../../../shared/@ai-setting/roy-agent-core-tshbggk8.js";
|
|
28
28
|
import {
|
|
29
29
|
WORKFLOW_SUBMIT_OUTPUT_TOOL_NAME,
|
|
30
30
|
WorkflowJsonOutputMarker,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
init_submit_json_output_tool,
|
|
33
33
|
parseWorkflowJsonOutput
|
|
34
34
|
} from "../../../shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
35
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
35
|
+
import"../../../shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
36
36
|
import"../../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
37
37
|
import"../../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
38
38
|
import"../../../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PromptComponent,
|
|
3
3
|
PromptStore
|
|
4
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
4
|
+
} from "./shared/@ai-setting/roy-agent-core-0z7wxga5.js";
|
|
5
5
|
import {
|
|
6
6
|
LLMComponent,
|
|
7
7
|
LLMConfigSchema,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
larkCliHandler,
|
|
75
75
|
resolveBountyIMSystemPrompt,
|
|
76
76
|
timerHandler
|
|
77
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
77
|
+
} from "./shared/@ai-setting/roy-agent-core-ezqr705j.js";
|
|
78
78
|
import {
|
|
79
79
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
80
80
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -93,13 +93,13 @@ import {
|
|
|
93
93
|
} from "./shared/@ai-setting/roy-agent-core-z7dxedn6.js";
|
|
94
94
|
import {
|
|
95
95
|
TaskTagPlugin
|
|
96
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
96
|
+
} from "./shared/@ai-setting/roy-agent-core-c91kajaz.js";
|
|
97
97
|
import {
|
|
98
98
|
BasePlugin
|
|
99
99
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
100
100
|
import {
|
|
101
101
|
WorkflowComponent
|
|
102
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
102
|
+
} from "./shared/@ai-setting/roy-agent-core-qcdh4t1j.js";
|
|
103
103
|
import {
|
|
104
104
|
init_node_registry_helper,
|
|
105
105
|
registerDecoratorNodeType
|
|
@@ -112,9 +112,9 @@ import"./shared/@ai-setting/roy-agent-core-ddwa0n6h.js";
|
|
|
112
112
|
import"./shared/@ai-setting/roy-agent-core-hhrg314p.js";
|
|
113
113
|
import"./shared/@ai-setting/roy-agent-core-g2mth323.js";
|
|
114
114
|
import"./shared/@ai-setting/roy-agent-core-qnrf2aw6.js";
|
|
115
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
115
|
+
import"./shared/@ai-setting/roy-agent-core-tshbggk8.js";
|
|
116
116
|
import"./shared/@ai-setting/roy-agent-core-1db4vpc6.js";
|
|
117
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
117
|
+
import"./shared/@ai-setting/roy-agent-core-b75jtybq.js";
|
|
118
118
|
import"./shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
119
119
|
import"./shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
120
120
|
import {
|
|
@@ -128,7 +128,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
128
128
|
import {
|
|
129
129
|
AgentComponent,
|
|
130
130
|
AgentComponentConfigSchema
|
|
131
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
131
|
+
} from "./shared/@ai-setting/roy-agent-core-adtaw927.js";
|
|
132
132
|
import {
|
|
133
133
|
createInvokeConfig,
|
|
134
134
|
invoke,
|
|
@@ -150,9 +150,9 @@ import {
|
|
|
150
150
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
151
151
|
import {
|
|
152
152
|
TaskComponent
|
|
153
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
153
|
+
} from "./shared/@ai-setting/roy-agent-core-seak6edf.js";
|
|
154
154
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
155
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
155
|
+
import"./shared/@ai-setting/roy-agent-core-7qtjwc6n.js";
|
|
156
156
|
import"./shared/@ai-setting/roy-agent-core-pzeexnhf.js";
|
|
157
157
|
import {
|
|
158
158
|
SQLiteTaskStore,
|
|
@@ -161,10 +161,10 @@ import {
|
|
|
161
161
|
import {
|
|
162
162
|
getBuiltInPrompt,
|
|
163
163
|
getBuiltInPromptNames
|
|
164
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-ferwt92c.js";
|
|
165
165
|
import {
|
|
166
166
|
AgentRegistry
|
|
167
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
167
|
+
} from "./shared/@ai-setting/roy-agent-core-as3phr7n.js";
|
|
168
168
|
import {
|
|
169
169
|
XDG_PATHS,
|
|
170
170
|
getXDGPath,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-pzeexnhf.js";
|
|
5
5
|
import {
|
|
6
6
|
builtInPrompts
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-ferwt92c.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_SUBAGENT_PROMPT
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-as3phr7n.js";
|
|
11
11
|
import {
|
|
12
12
|
TaskHookPoints
|
|
13
13
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
@@ -270,6 +270,38 @@ class WorkflowService {
|
|
|
270
270
|
const engine = this.engineFactory(workflow);
|
|
271
271
|
await engine.stop(sessionId, reason);
|
|
272
272
|
}
|
|
273
|
+
async resumeSession(sessionId, options) {
|
|
274
|
+
if (!this.sessionComponent) {
|
|
275
|
+
throw new Error("SessionComponent not available");
|
|
276
|
+
}
|
|
277
|
+
const session = await this.sessionComponent.get(sessionId);
|
|
278
|
+
if (!session) {
|
|
279
|
+
throw new Error(`Session not found: ${sessionId}`);
|
|
280
|
+
}
|
|
281
|
+
const metadata = session.metadata;
|
|
282
|
+
if (metadata?.type !== "workflow") {
|
|
283
|
+
throw new Error(`Session is not a workflow session: ${sessionId}`);
|
|
284
|
+
}
|
|
285
|
+
const workflowName = metadata.workflowName;
|
|
286
|
+
if (!workflowName) {
|
|
287
|
+
throw new Error(`Workflow name not found in session metadata for ${sessionId}`);
|
|
288
|
+
}
|
|
289
|
+
const workflow = this.getWorkflowByName(workflowName);
|
|
290
|
+
if (!workflow) {
|
|
291
|
+
throw new Error(`Workflow not found: ${workflowName}`);
|
|
292
|
+
}
|
|
293
|
+
const engineOptions = {
|
|
294
|
+
...options ?? {},
|
|
295
|
+
sessionId
|
|
296
|
+
};
|
|
297
|
+
const engine = this.engineFactory(workflow, engineOptions);
|
|
298
|
+
const result = await engine.run(sessionId, engineOptions);
|
|
299
|
+
return {
|
|
300
|
+
...result,
|
|
301
|
+
runId: result.runId || result.sessionId || sessionId,
|
|
302
|
+
sessionId: result.sessionId || result.runId || sessionId
|
|
303
|
+
};
|
|
304
|
+
}
|
|
273
305
|
async getSession(sessionId) {
|
|
274
306
|
if (!this.sessionComponent) {
|
|
275
307
|
return null;
|
|
@@ -332,5 +364,12 @@ __legacyDecorateClassTS([
|
|
|
332
364
|
log: false
|
|
333
365
|
})
|
|
334
366
|
], WorkflowService.prototype, "getTag", null);
|
|
367
|
+
__legacyDecorateClassTS([
|
|
368
|
+
TracedAs("workflow.service.resumeSession", {
|
|
369
|
+
recordParams: true,
|
|
370
|
+
recordResult: false,
|
|
371
|
+
log: false
|
|
372
|
+
})
|
|
373
|
+
], WorkflowService.prototype, "resumeSession", null);
|
|
335
374
|
|
|
336
375
|
export { TAG_MIN_COUNT, TAG_MAX_COUNT, WorkflowService };
|
|
@@ -1126,7 +1126,15 @@ workflow_run(workflow_name="strict-task-agent", input={"task_description": "修
|
|
|
1126
1126
|
- 通过 task_operation_create 记录里程碑`,
|
|
1127
1127
|
"json-extract": `# JSON Extract Agent
|
|
1128
1128
|
|
|
1129
|
-
你是一个 JSON 提取子智能体。**唯一职责**:从父 session 的对话历史中提取最终答案,通过 \`workflow_submit_output\`
|
|
1129
|
+
你是一个 JSON 提取子智能体。**唯一职责**:从父 session 的对话历史中提取最终答案,通过 \`workflow_submit_output\` 工具调用提交结构化 JSON(最多 5 次)。
|
|
1130
|
+
|
|
1131
|
+
## ✅ 关键行为:成功返回立即退出
|
|
1132
|
+
|
|
1133
|
+
\`workflow_submit_output\` 工具调用**成功返回后**(工具 result 表示 JSON 已写入),**立即停止**:
|
|
1134
|
+
- ❌ 不要继续思考
|
|
1135
|
+
- ❌ 不要输出额外文本
|
|
1136
|
+
- ❌ 不要再次调用工具(除非返回失败)
|
|
1137
|
+
- ✅ 成功 = 任务完成,立即退出(节省 maxIterations)
|
|
1130
1138
|
|
|
1131
1139
|
## ⚠️ Critical Override(防止被父 session 误导)
|
|
1132
1140
|
|
|
@@ -1162,12 +1170,15 @@ workflow_run(workflow_name="strict-task-agent", input={"task_description": "修
|
|
|
1162
1170
|
- 只调用一次,不要重复
|
|
1163
1171
|
- 不要使用其他任何工具(即使你"记得"父 agent 用了 echo)
|
|
1164
1172
|
|
|
1165
|
-
##
|
|
1173
|
+
## 行为(核心循环)
|
|
1166
1174
|
|
|
1167
1175
|
1. 读取 session 历史(通过 sessionId 自动加载)—— **只关注事实**:用户输入、最终答案是什么
|
|
1168
1176
|
2. 从对话中提取最终答案(**忽略**父 agent 的"echo workaround"叙述)
|
|
1169
1177
|
3. 调用 \`workflow_submit_output(参数 = 最终 JSON)\`
|
|
1170
|
-
4.
|
|
1178
|
+
4. **等待工具返回结果**:
|
|
1179
|
+
- ✅ 成功 → **立即退出**(不要继续思考/输出/调用其他工具)
|
|
1180
|
+
- ❌ 失败(如 schema 校验错误)→ 修正后重试,**最多 5 次**
|
|
1181
|
+
5. 退出(成功返回后**不要**做任何后续动作)
|
|
1171
1182
|
|
|
1172
1183
|
## 禁止
|
|
1173
1184
|
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
createWorkflowSearchTool,
|
|
19
19
|
createWorkflowTagListTool,
|
|
20
20
|
createWorkflowValidateTool
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-tshbggk8.js";
|
|
22
22
|
import {
|
|
23
23
|
WorkflowService
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-b75jtybq.js";
|
|
25
25
|
import {
|
|
26
26
|
BaseComponent
|
|
27
27
|
} from "./roy-agent-core-pf1c360e.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TAG_MAX_COUNT,
|
|
3
3
|
TAG_MIN_COUNT
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-b75jtybq.js";
|
|
5
5
|
import {
|
|
6
6
|
validateWorkflowDefinition
|
|
7
7
|
} from "./roy-agent-core-8wd3qwx5.js";
|
|
@@ -619,12 +619,13 @@ var RunWorkflowInputSchema = z8.object({
|
|
|
619
619
|
workflow_name: z8.string().describe("Name of the workflow to run"),
|
|
620
620
|
input: z8.record(z8.any()).optional().describe("Input to pass to the workflow"),
|
|
621
621
|
sync: z8.boolean().default(true).describe("Wait for completion (default: true)"),
|
|
622
|
-
timeout: z8.number().positive().optional().describe("Timeout in milliseconds (default: 1800000 = 30 min)")
|
|
622
|
+
timeout: z8.number().positive().optional().describe("Timeout in milliseconds (default: 1800000 = 30 min)"),
|
|
623
|
+
session: z8.string().regex(/^workflow_/, { message: "session must start with 'workflow_'" }).optional().describe("Existing session ID (workflow_xxx) to resume from. Mutually exclusive with fresh `input` runs.")
|
|
623
624
|
});
|
|
624
625
|
function createRunWorkflowTool(workflowService) {
|
|
625
626
|
return {
|
|
626
627
|
name: "workflow_run",
|
|
627
|
-
description: "Run a workflow by name with optional input. Returns run_id, status, output, error, and duration_ms. Default timeout: 30 minutes.",
|
|
628
|
+
description: "Run a workflow by name with optional input, OR resume an existing session via the `session` field (must start with `workflow_`). Returns run_id, status, output, error, and duration_ms. Default timeout: 30 minutes.",
|
|
628
629
|
parameters: RunWorkflowInputSchema,
|
|
629
630
|
sandbox: {
|
|
630
631
|
enabled: false
|
|
@@ -640,8 +641,13 @@ function createRunWorkflowTool(workflowService) {
|
|
|
640
641
|
},
|
|
641
642
|
execute: async (args, ctx) => {
|
|
642
643
|
const startTime = Date.now();
|
|
643
|
-
const { workflow_name, input, sync = true, timeout = 1800000 } = args;
|
|
644
|
-
logger7.info(`Running workflow: ${workflow_name}`, {
|
|
644
|
+
const { workflow_name, input, session, sync = true, timeout = 1800000 } = args;
|
|
645
|
+
logger7.info(`Running workflow: ${workflow_name}`, {
|
|
646
|
+
input,
|
|
647
|
+
sync,
|
|
648
|
+
timeout,
|
|
649
|
+
...session ? { resumeSession: session } : {}
|
|
650
|
+
});
|
|
645
651
|
const ctxSessionId = typeof ctx?.session_id === "string" && isValidSessionId(ctx.session_id) ? ctx.session_id : undefined;
|
|
646
652
|
const envSessionId = typeof process.env.ROY_PARENT_SESSION_ID === "string" && isValidSessionId(process.env.ROY_PARENT_SESSION_ID) ? process.env.ROY_PARENT_SESSION_ID : undefined;
|
|
647
653
|
if (process.env.ROY_PARENT_SESSION_ID && !envSessionId) {
|
|
@@ -652,12 +658,22 @@ function createRunWorkflowTool(workflowService) {
|
|
|
652
658
|
let durationMs;
|
|
653
659
|
try {
|
|
654
660
|
let result;
|
|
661
|
+
const baseOptions = {
|
|
662
|
+
sync,
|
|
663
|
+
...parentSessionId ? { parentSessionId } : {}
|
|
664
|
+
};
|
|
665
|
+
const executeCall = async () => {
|
|
666
|
+
if (session) {
|
|
667
|
+
return workflowService.resumeSession(session, {
|
|
668
|
+
...baseOptions,
|
|
669
|
+
...input ? { input } : {}
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
return workflowService.runWorkflow(workflow_name, input, baseOptions);
|
|
673
|
+
};
|
|
655
674
|
if (timeout) {
|
|
656
675
|
result = await Promise.race([
|
|
657
|
-
|
|
658
|
-
sync,
|
|
659
|
-
...parentSessionId ? { parentSessionId } : {}
|
|
660
|
-
}),
|
|
676
|
+
executeCall(),
|
|
661
677
|
new Promise((_, reject) => {
|
|
662
678
|
timeoutHandle = setTimeout(() => {
|
|
663
679
|
reject(new Error("Workflow execution timed out"));
|
|
@@ -665,10 +681,7 @@ function createRunWorkflowTool(workflowService) {
|
|
|
665
681
|
})
|
|
666
682
|
]);
|
|
667
683
|
} else {
|
|
668
|
-
result = await
|
|
669
|
-
sync,
|
|
670
|
-
...parentSessionId ? { parentSessionId } : {}
|
|
671
|
-
});
|
|
684
|
+
result = await executeCall();
|
|
672
685
|
}
|
|
673
686
|
if (timeoutHandle) {
|
|
674
687
|
clearTimeout(timeoutHandle);
|