@ai-setting/roy-agent-core 1.6.8 → 1.6.9
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 +7 -7
- package/dist/env/agent/index.js +9 -9
- package/dist/env/commands/index.js +7 -7
- package/dist/env/context/index.js +3 -3
- package/dist/env/debug/index.js +7 -7
- package/dist/env/event-source/index.js +10 -10
- package/dist/env/hook/index.js +5 -5
- package/dist/env/index.js +29 -28
- package/dist/env/llm/index.js +7 -7
- package/dist/env/log-trace/index.js +7 -7
- package/dist/env/mcp/index.js +7 -7
- package/dist/env/memory/index.js +7 -7
- package/dist/env/plugin/index.js +7 -7
- package/dist/env/prompt/index.js +8 -8
- package/dist/env/session/index.js +7 -7
- package/dist/env/skill/index.js +7 -7
- package/dist/env/task/delegate/index.js +8 -7
- package/dist/env/task/index.js +12 -11
- package/dist/env/task/plugins/index.js +5 -5
- package/dist/env/task/tools/index.js +3 -3
- package/dist/env/tool/built-in/index.js +2 -2
- package/dist/env/tool/index.js +8 -8
- package/dist/env/workflow/engine/index.js +8 -8
- package/dist/env/workflow/index.js +16 -15
- package/dist/env/workflow/nodes/index.js +2 -2
- package/dist/env/workflow/service/index.js +2 -2
- package/dist/env/workflow/storage/index.js +3 -3
- package/dist/env/workflow/tools/index.js +10 -9
- package/dist/env/workflow/utils/index.js +2 -2
- package/dist/index.js +39 -38
- package/dist/shared/@ai-setting/{roy-agent-core-2vevsd36.js → roy-agent-core-062gyaz8.js} +8 -5
- package/dist/shared/@ai-setting/{roy-agent-core-12ttd2w1.js → roy-agent-core-0cftbg62.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-jexyz11d.js → roy-agent-core-1mq9erp8.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-wmkx79b1.js → roy-agent-core-1qcpvtp8.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-b77yz0wt.js → roy-agent-core-606z25nw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-971gwby7.js → roy-agent-core-7rsfynhz.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-2r1rc0fe.js → roy-agent-core-80bdhnwk.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-c94yan0b.js → roy-agent-core-8bhncxep.js} +101 -17
- package/dist/shared/@ai-setting/{roy-agent-core-zttjq1h3.js → roy-agent-core-9hqqhye6.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-gdkq55yg.js → roy-agent-core-9zf4jmgh.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-b2thb9xj.js → roy-agent-core-atjd1tpt.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-33rhv946.js → roy-agent-core-brfryc0b.js} +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-c1v263jn.js +11 -0
- package/dist/shared/@ai-setting/{roy-agent-core-gp872e7m.js → roy-agent-core-dbkkjmqz.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-zwwkczvj.js → roy-agent-core-e34xdjwa.js} +23 -14
- package/dist/shared/@ai-setting/{roy-agent-core-scp0afxg.js → roy-agent-core-endah27g.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ddghwfmk.js → roy-agent-core-f79ee0aw.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-cg146hmg.js → roy-agent-core-fdm579b1.js} +28 -2
- package/dist/shared/@ai-setting/{roy-agent-core-w7mhnc4c.js → roy-agent-core-g2ntbc33.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-xgnpr28w.js → roy-agent-core-htjag2nr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pf1c360e.js → roy-agent-core-j62bjagf.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-d2bmfnb5.js → roy-agent-core-jmzz2yxs.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-sssn8kt9.js → roy-agent-core-jw0hbacv.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-bqwj1dq0.js → roy-agent-core-kxtkz66a.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-578qk38y.js → roy-agent-core-np2vh6ya.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-b75jtybq.js → roy-agent-core-p2vpsd1d.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-gw43m8yd.js → roy-agent-core-p6x6n3k4.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cx67bv9d.js → roy-agent-core-q1ksqes1.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-cx9p8b2t.js → roy-agent-core-qbm5zy6s.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-jzza6c2r.js → roy-agent-core-qdgaghhw.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-hf8pqrvy.js → roy-agent-core-qfdj8872.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-ka4b12eg.js → roy-agent-core-qyarxwzg.js} +25 -5
- package/dist/shared/@ai-setting/{roy-agent-core-ksx9a556.js → roy-agent-core-r74v00c7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-0tfv18rf.js → roy-agent-core-resnbd2j.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-sxqy40cs.js → roy-agent-core-rpq0mcvv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-r08qk37k.js → roy-agent-core-sd3v4kaq.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-02n40zbs.js → roy-agent-core-sk4xg1dw.js} +39 -25
- package/dist/shared/@ai-setting/{roy-agent-core-634ee5jb.js → roy-agent-core-tbn8cerp.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4extx33r.js → roy-agent-core-trdpar9f.js} +49 -183
- package/dist/shared/@ai-setting/{roy-agent-core-8jmkghjc.js → roy-agent-core-w1e55apa.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-q88vxmx5.js → roy-agent-core-w22tzjj5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-as3phr7n.js → roy-agent-core-wqe84f84.js} +15 -6
- package/dist/shared/@ai-setting/{roy-agent-core-jayzyg7h.js → roy-agent-core-y5ymc4f8.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-34xt19yg.js → roy-agent-core-yk0n6j67.js} +11 -11
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponentAdapter,
|
|
3
3
|
init_agent_component_adapter
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-g2ntbc33.js";
|
|
5
5
|
import"./roy-agent-core-1db4vpc6.js";
|
|
6
6
|
import"./roy-agent-core-e25xkv53.js";
|
|
7
|
-
import"./roy-agent-core-
|
|
8
|
-
import"./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
7
|
+
import"./roy-agent-core-dbkkjmqz.js";
|
|
8
|
+
import"./roy-agent-core-9hqqhye6.js";
|
|
9
|
+
import"./roy-agent-core-endah27g.js";
|
|
10
|
+
import"./roy-agent-core-fdm579b1.js";
|
|
11
11
|
import"./roy-agent-core-vyygk314.js";
|
|
12
12
|
import"./roy-agent-core-7z9b1fm8.js";
|
|
13
13
|
import"./roy-agent-core-c6592r3c.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
TracedAs,
|
|
6
6
|
init_decorator
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-fdm579b1.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
@@ -158,14 +158,15 @@ class AgentRegistry {
|
|
|
158
158
|
}
|
|
159
159
|
return agent.entryAgent;
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
const name = "workflow-
|
|
161
|
+
registerWorkflowRunner() {
|
|
162
|
+
const name = "workflow-runner";
|
|
163
163
|
if (this.agents.has(name))
|
|
164
164
|
return;
|
|
165
165
|
const agent = {
|
|
166
166
|
name,
|
|
167
|
-
type: "
|
|
168
|
-
description: "Workflow
|
|
167
|
+
type: "sub",
|
|
168
|
+
description: "Workflow runner — 负责调用 workflow_run 启动 workflow,支持 session resume 和 stop",
|
|
169
|
+
systemPromptRef: "workflow-runner",
|
|
169
170
|
allowedTools: [
|
|
170
171
|
"workflow_get",
|
|
171
172
|
"workflow_list",
|
|
@@ -173,7 +174,8 @@ class AgentRegistry {
|
|
|
173
174
|
"workflow_run_status",
|
|
174
175
|
"workflow_run_stop"
|
|
175
176
|
],
|
|
176
|
-
deniedTools: []
|
|
177
|
+
deniedTools: ["delegate_task", "stop_task"],
|
|
178
|
+
maxIterations: 30
|
|
177
179
|
};
|
|
178
180
|
this.agents.set(name, agent);
|
|
179
181
|
}
|
|
@@ -421,6 +423,13 @@ __legacyDecorateClassTS([
|
|
|
421
423
|
__legacyDecorateClassTS([
|
|
422
424
|
TracedAs("agent.registry.getEntryAgent", { recordParams: true, recordResult: true })
|
|
423
425
|
], AgentRegistry.prototype, "getEntryAgent", null);
|
|
426
|
+
__legacyDecorateClassTS([
|
|
427
|
+
TracedAs("agent.registry.registerWorkflowRunner", {
|
|
428
|
+
recordParams: false,
|
|
429
|
+
recordResult: true,
|
|
430
|
+
log: true
|
|
431
|
+
})
|
|
432
|
+
], AgentRegistry.prototype, "registerWorkflowRunner", null);
|
|
424
433
|
__legacyDecorateClassTS([
|
|
425
434
|
TracedAs("agent.registry.load", { recordParams: false, recordResult: true, log: true })
|
|
426
435
|
], AgentRegistry.prototype, "load", null);
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-8wd3qwx5.js";
|
|
7
7
|
import {
|
|
8
8
|
WORKFLOW_EXTRACT_PROMPT
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-trdpar9f.js";
|
|
10
10
|
import {
|
|
11
11
|
TaskHookPoints
|
|
12
12
|
} from "./roy-agent-core-1pg0fepg.js";
|
|
13
13
|
import {
|
|
14
14
|
init_context
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-9hqqhye6.js";
|
|
16
16
|
import {
|
|
17
17
|
getEnvContextOrEmpty
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-endah27g.js";
|
|
19
19
|
import {
|
|
20
20
|
TracedAs,
|
|
21
21
|
init_decorator,
|
|
22
22
|
wrapFunction
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-fdm579b1.js";
|
|
24
24
|
import {
|
|
25
25
|
createLogger,
|
|
26
26
|
init_logger
|
|
@@ -289,11 +289,11 @@ ${prompt}`;
|
|
|
289
289
|
}
|
|
290
290
|
if (!this._workflowRepo) {
|
|
291
291
|
try {
|
|
292
|
-
const sqlite = await import("./roy-agent-core-
|
|
292
|
+
const sqlite = await import("./roy-agent-core-qbm5zy6s.js");
|
|
293
293
|
this.ensureDataDir();
|
|
294
294
|
const db = sqlite.getDatabase();
|
|
295
295
|
sqlite.initializeTables();
|
|
296
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
296
|
+
const { WorkflowRepository } = await import("./roy-agent-core-jw0hbacv.js");
|
|
297
297
|
this._workflowRepo = new WorkflowRepository(db);
|
|
298
298
|
return this._workflowRepo;
|
|
299
299
|
} catch {
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./roy-agent-core-dcd1s7ct.js";
|
|
4
4
|
import {
|
|
5
5
|
truncateOutputInline
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-sk4xg1dw.js";
|
|
7
7
|
import {
|
|
8
8
|
AskUserError,
|
|
9
9
|
init_workflow_hil
|
|
10
10
|
} from "./roy-agent-core-e25xkv53.js";
|
|
11
11
|
import {
|
|
12
12
|
AgentRegistry
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-wqe84f84.js";
|
|
14
14
|
import {
|
|
15
15
|
ContextError
|
|
16
16
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
@@ -25,23 +25,23 @@ import {
|
|
|
25
25
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
26
26
|
import {
|
|
27
27
|
BaseComponent
|
|
28
|
-
} from "./roy-agent-core-
|
|
28
|
+
} from "./roy-agent-core-j62bjagf.js";
|
|
29
29
|
import {
|
|
30
30
|
globalHookManager,
|
|
31
31
|
init_global_hook_manager
|
|
32
|
-
} from "./roy-agent-core-
|
|
32
|
+
} from "./roy-agent-core-dbkkjmqz.js";
|
|
33
33
|
import {
|
|
34
34
|
init_context
|
|
35
|
-
} from "./roy-agent-core-
|
|
35
|
+
} from "./roy-agent-core-9hqqhye6.js";
|
|
36
36
|
import {
|
|
37
37
|
getCurrentTaskId,
|
|
38
38
|
getEnvContext,
|
|
39
39
|
runWithEnvContextAsync
|
|
40
|
-
} from "./roy-agent-core-
|
|
40
|
+
} from "./roy-agent-core-endah27g.js";
|
|
41
41
|
import {
|
|
42
42
|
TracedAs,
|
|
43
43
|
init_decorator
|
|
44
|
-
} from "./roy-agent-core-
|
|
44
|
+
} from "./roy-agent-core-fdm579b1.js";
|
|
45
45
|
import {
|
|
46
46
|
createLogger,
|
|
47
47
|
init_logger
|
|
@@ -361,8 +361,8 @@ class AgentComponent extends BaseComponent {
|
|
|
361
361
|
});
|
|
362
362
|
const loadedCount = await this.registry.load();
|
|
363
363
|
logger.info(`[AgentComponent] Loaded ${loadedCount} agents from config directory`);
|
|
364
|
-
this.registry.
|
|
365
|
-
logger.info("[AgentComponent] Registered built-in workflow-
|
|
364
|
+
this.registry.registerWorkflowRunner();
|
|
365
|
+
logger.info("[AgentComponent] Registered built-in workflow-runner");
|
|
366
366
|
this.registry.registerJsonExtractAgent();
|
|
367
367
|
logger.info("[AgentComponent] Registered built-in json-extract agent");
|
|
368
368
|
this.registry.registerWorkflowExtractAgent();
|
|
@@ -1277,7 +1277,7 @@ ${additionInfo}`
|
|
|
1277
1277
|
} else {
|
|
1278
1278
|
result = await withTimeout(toolPromise, 120000, `Tool '${toolName}' execution timeout after 120s`);
|
|
1279
1279
|
}
|
|
1280
|
-
result = truncateOutputInline(result, undefined, undefined, toolName);
|
|
1280
|
+
result = truncateOutputInline(result, undefined, undefined, toolName, tool);
|
|
1281
1281
|
} else if (this.toolComponent?.execute) {
|
|
1282
1282
|
const toolPromise = this.toolComponent.execute(request);
|
|
1283
1283
|
if (isLongRunningTool) {
|
|
@@ -1293,7 +1293,7 @@ ${additionInfo}`
|
|
|
1293
1293
|
} else {
|
|
1294
1294
|
result = await withTimeout(toolPromise, 120000, `Tool '${toolName}' execution timeout after 120s`);
|
|
1295
1295
|
}
|
|
1296
|
-
result = truncateOutputInline(result, undefined, undefined, toolName);
|
|
1296
|
+
result = truncateOutputInline(result, undefined, undefined, toolName, tool);
|
|
1297
1297
|
}
|
|
1298
1298
|
this.pushEnvEvent({
|
|
1299
1299
|
type: "tool.result",
|