@ai-setting/roy-agent-core 1.5.100 → 1.5.101
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 +7 -7
- package/dist/env/task/delegate/index.js +3 -2
- package/dist/env/task/index.js +4 -3
- package/dist/env/task/plugins/index.js +2 -2
- package/dist/index.js +10 -10
- package/dist/shared/@ai-setting/{roy-agent-core-ss92p0r6.js → roy-agent-core-fkb75cf6.js} +12 -1
- package/dist/shared/@ai-setting/{roy-agent-core-hfgqwf5w.js → roy-agent-core-k31c3kvz.js} +13 -0
- package/dist/shared/@ai-setting/{roy-agent-core-0dv02z65.js → roy-agent-core-ks9t8jh1.js} +3 -1
- package/dist/shared/@ai-setting/{roy-agent-core-x65fyjaw.js → roy-agent-core-mp3xb3am.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vea84mnc.js → roy-agent-core-x47gc6rq.js} +1 -1
- package/package.json +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-mx9vq7b2.js → roy-agent-core-nt77d6fs.js} +3 -3
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-ks9t8jh1.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-jhdv14ks.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-bdajt9cs.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-k31c3kvz.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-x47gc6rq.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-
|
|
25
|
-
import"../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-nt77d6fs.js";
|
|
26
25
|
import"../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
27
26
|
import"../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
28
27
|
import"../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
29
28
|
import"../../shared/@ai-setting/roy-agent-core-bdajt9cs.js";
|
|
29
|
+
import"../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
30
30
|
import"../../shared/@ai-setting/roy-agent-core-92z6t4he.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-x47gc6rq.js";
|
|
9
9
|
import {
|
|
10
10
|
EventSourceInitHooks,
|
|
11
11
|
getDefaultConfigForType,
|
|
@@ -17,8 +17,7 @@ import"../shared/@ai-setting/roy-agent-core-wmkx79b1.js";
|
|
|
17
17
|
import {
|
|
18
18
|
PluginComponent
|
|
19
19
|
} from "../shared/@ai-setting/roy-agent-core-ws76avbn.js";
|
|
20
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
21
|
-
import"../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
20
|
+
import"../shared/@ai-setting/roy-agent-core-nt77d6fs.js";
|
|
22
21
|
import"../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
23
22
|
import {
|
|
24
23
|
WorkflowComponent
|
|
@@ -42,7 +41,7 @@ import"../shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
42
41
|
import {
|
|
43
42
|
AgentComponent,
|
|
44
43
|
AgentComponentConfigSchema
|
|
45
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
44
|
+
} from "../shared/@ai-setting/roy-agent-core-ks9t8jh1.js";
|
|
46
45
|
import"../shared/@ai-setting/roy-agent-core-j7jeqxhd.js";
|
|
47
46
|
import"../shared/@ai-setting/roy-agent-core-jhdv14ks.js";
|
|
48
47
|
import"../shared/@ai-setting/roy-agent-core-5h49ct1a.js";
|
|
@@ -50,12 +49,13 @@ import"../shared/@ai-setting/roy-agent-core-bdajt9cs.js";
|
|
|
50
49
|
import"../shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
51
50
|
import {
|
|
52
51
|
TaskComponent
|
|
53
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
52
|
+
} from "../shared/@ai-setting/roy-agent-core-mp3xb3am.js";
|
|
54
53
|
import"../shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
55
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
54
|
+
import"../shared/@ai-setting/roy-agent-core-fkb75cf6.js";
|
|
56
55
|
import"../shared/@ai-setting/roy-agent-core-hvdfgvfz.js";
|
|
57
56
|
import"../shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
58
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
57
|
+
import"../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
58
|
+
import"../shared/@ai-setting/roy-agent-core-k31c3kvz.js";
|
|
59
59
|
import {
|
|
60
60
|
XDG_PATHS,
|
|
61
61
|
getXDGPath,
|
|
@@ -3,9 +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-fkb75cf6.js";
|
|
7
7
|
import"../../../shared/@ai-setting/roy-agent-core-hvdfgvfz.js";
|
|
8
|
-
import"../../../shared/@ai-setting/roy-agent-core-
|
|
8
|
+
import"../../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
9
|
+
import"../../../shared/@ai-setting/roy-agent-core-k31c3kvz.js";
|
|
9
10
|
import"../../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
10
11
|
import"../../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
11
12
|
import"../../../shared/@ai-setting/roy-agent-core-gp872e7m.js";
|
package/dist/env/task/index.js
CHANGED
|
@@ -5,17 +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-mp3xb3am.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-fkb75cf6.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-hvdfgvfz.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-
|
|
18
|
+
import"../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-k31c3kvz.js";
|
|
19
20
|
import"../../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
20
21
|
import"../../shared/@ai-setting/roy-agent-core-0ye4q2jj.js";
|
|
21
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-
|
|
11
|
-
import"../../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
10
|
+
} from "../../../shared/@ai-setting/roy-agent-core-nt77d6fs.js";
|
|
12
11
|
import"../../../shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
13
12
|
import"../../../shared/@ai-setting/roy-agent-core-8wd3qwx5.js";
|
|
14
13
|
import"../../../shared/@ai-setting/roy-agent-core-4yq23m5g.js";
|
|
15
14
|
import {
|
|
16
15
|
createAutoTaskPlugin
|
|
17
16
|
} from "../../../shared/@ai-setting/roy-agent-core-bdajt9cs.js";
|
|
17
|
+
import"../../../shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
18
18
|
import"../../../shared/@ai-setting/roy-agent-core-92z6t4he.js";
|
|
19
19
|
import"../../../shared/@ai-setting/roy-agent-core-zttjq1h3.js";
|
|
20
20
|
import"../../../shared/@ai-setting/roy-agent-core-scp0afxg.js";
|
package/dist/index.js
CHANGED
|
@@ -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-x47gc6rq.js";
|
|
78
78
|
import {
|
|
79
79
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
80
80
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -93,11 +93,7 @@ import {
|
|
|
93
93
|
} from "./shared/@ai-setting/roy-agent-core-ws76avbn.js";
|
|
94
94
|
import {
|
|
95
95
|
TaskTagPlugin
|
|
96
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
97
|
-
import {
|
|
98
|
-
getBuiltInPrompt,
|
|
99
|
-
getBuiltInPromptNames
|
|
100
|
-
} from "./shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
96
|
+
} from "./shared/@ai-setting/roy-agent-core-nt77d6fs.js";
|
|
101
97
|
import {
|
|
102
98
|
BasePlugin
|
|
103
99
|
} from "./shared/@ai-setting/roy-agent-core-az13yzmc.js";
|
|
@@ -132,7 +128,7 @@ import"./shared/@ai-setting/roy-agent-core-1ce3fqrk.js";
|
|
|
132
128
|
import {
|
|
133
129
|
AgentComponent,
|
|
134
130
|
AgentComponentConfigSchema
|
|
135
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
131
|
+
} from "./shared/@ai-setting/roy-agent-core-ks9t8jh1.js";
|
|
136
132
|
import {
|
|
137
133
|
createInvokeConfig,
|
|
138
134
|
invoke,
|
|
@@ -154,17 +150,21 @@ import {
|
|
|
154
150
|
} from "./shared/@ai-setting/roy-agent-core-e25xkv53.js";
|
|
155
151
|
import {
|
|
156
152
|
TaskComponent
|
|
157
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
153
|
+
} from "./shared/@ai-setting/roy-agent-core-mp3xb3am.js";
|
|
158
154
|
import"./shared/@ai-setting/roy-agent-core-8gxth0eh.js";
|
|
159
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
155
|
+
import"./shared/@ai-setting/roy-agent-core-fkb75cf6.js";
|
|
160
156
|
import"./shared/@ai-setting/roy-agent-core-hvdfgvfz.js";
|
|
161
157
|
import {
|
|
162
158
|
SQLiteTaskStore,
|
|
163
159
|
getDefaultTaskDbPath
|
|
164
160
|
} from "./shared/@ai-setting/roy-agent-core-9xby523m.js";
|
|
161
|
+
import {
|
|
162
|
+
getBuiltInPrompt,
|
|
163
|
+
getBuiltInPromptNames
|
|
164
|
+
} from "./shared/@ai-setting/roy-agent-core-dj18eyyk.js";
|
|
165
165
|
import {
|
|
166
166
|
AgentRegistry
|
|
167
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
167
|
+
} from "./shared/@ai-setting/roy-agent-core-k31c3kvz.js";
|
|
168
168
|
import {
|
|
169
169
|
XDG_PATHS,
|
|
170
170
|
getXDGPath,
|
|
@@ -2,9 +2,12 @@ import {
|
|
|
2
2
|
ProcessRegistry,
|
|
3
3
|
runWithProcessRegistryAsync
|
|
4
4
|
} from "./roy-agent-core-hvdfgvfz.js";
|
|
5
|
+
import {
|
|
6
|
+
builtInPrompts
|
|
7
|
+
} from "./roy-agent-core-dj18eyyk.js";
|
|
5
8
|
import {
|
|
6
9
|
DEFAULT_SUBAGENT_PROMPT
|
|
7
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-k31c3kvz.js";
|
|
8
11
|
import {
|
|
9
12
|
TaskHookPoints
|
|
10
13
|
} from "./roy-agent-core-92z6t4he.js";
|
|
@@ -176,6 +179,14 @@ var builtInSubAgents = [
|
|
|
176
179
|
description: "Fast agent specialized for exploring codebases, finding files, and searching for patterns.",
|
|
177
180
|
allowedTools: ["read_file", "glob", "grep", "bash"],
|
|
178
181
|
deniedTools: ["delegate_task", "stop_task"]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
id: "roy",
|
|
185
|
+
name: "Roy",
|
|
186
|
+
mode: "subagent",
|
|
187
|
+
description: "Versatile AI assistant inspired by Jarvis — intelligent, proactive, and capable. Use for general-purpose tasks, coding, research, and complex multi-step work. Always available (built-in) without `agent add roy`.",
|
|
188
|
+
promptOverride: builtInPrompts["roy"],
|
|
189
|
+
deniedTools: ["delegate_task", "stop_task"]
|
|
179
190
|
}
|
|
180
191
|
];
|
|
181
192
|
function getSubAgentSpec(id) {
|
|
@@ -246,6 +246,19 @@ class AgentRegistry {
|
|
|
246
246
|
};
|
|
247
247
|
this.agents.set(name, agent);
|
|
248
248
|
}
|
|
249
|
+
registerRoyAgent() {
|
|
250
|
+
const name = "roy";
|
|
251
|
+
if (this.agents.has(name))
|
|
252
|
+
return;
|
|
253
|
+
const agent = {
|
|
254
|
+
name,
|
|
255
|
+
type: "sub",
|
|
256
|
+
description: "Roy — versatile AI assistant inspired by Jarvis. Built-in general-purpose subagent for coding, research, planning, and complex multi-step tasks. Always available without `agent add roy`.",
|
|
257
|
+
systemPromptRef: "roy",
|
|
258
|
+
deniedTools: ["delegate_task", "stop_task"]
|
|
259
|
+
};
|
|
260
|
+
this.agents.set(name, agent);
|
|
261
|
+
}
|
|
249
262
|
async load() {
|
|
250
263
|
try {
|
|
251
264
|
return await this.loadFromDirectory(this.configDir);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./roy-agent-core-e25xkv53.js";
|
|
11
11
|
import {
|
|
12
12
|
AgentRegistry
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-k31c3kvz.js";
|
|
14
14
|
import {
|
|
15
15
|
ContextError
|
|
16
16
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
@@ -343,6 +343,8 @@ class AgentComponent extends BaseComponent {
|
|
|
343
343
|
logger.info("[AgentComponent] Registered built-in compact agent");
|
|
344
344
|
this.registry.registerCompactHintAgent();
|
|
345
345
|
logger.info("[AgentComponent] Registered built-in compact-hint agent");
|
|
346
|
+
this.registry.registerRoyAgent();
|
|
347
|
+
logger.info("[AgentComponent] Registered built-in roy agent");
|
|
346
348
|
for (const agentDef of this.registry.list()) {
|
|
347
349
|
if (!this.agents.has(agentDef.name)) {
|
|
348
350
|
const systemPrompt = await this.registry.getSystemPrompt(agentDef.name);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-setting/roy-agent-core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.101",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
"bugs": {
|
|
84
84
|
"url": "https://github.com/ai-setting/roy-agent/issues"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
WORKFLOW_EXTRACT_PROMPT
|
|
3
|
-
} from "./roy-agent-core-dj18eyyk.js";
|
|
4
1
|
import {
|
|
5
2
|
BasePlugin
|
|
6
3
|
} from "./roy-agent-core-az13yzmc.js";
|
|
7
4
|
import {
|
|
8
5
|
validateWorkflowDefinition
|
|
9
6
|
} from "./roy-agent-core-8wd3qwx5.js";
|
|
7
|
+
import {
|
|
8
|
+
WORKFLOW_EXTRACT_PROMPT
|
|
9
|
+
} from "./roy-agent-core-dj18eyyk.js";
|
|
10
10
|
import {
|
|
11
11
|
TaskHookPoints
|
|
12
12
|
} from "./roy-agent-core-92z6t4he.js";
|