@ai-setting/roy-agent-core 1.5.54 → 1.5.56
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 +12 -12
- 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 +11 -11
- package/dist/env/hook/index.js +7 -7
- package/dist/env/index.js +30 -30
- 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 +10 -10
- package/dist/env/skill/index.js +9 -9
- package/dist/env/task/delegate/index.js +8 -8
- package/dist/env/task/index.js +13 -13
- package/dist/env/task/plugins/index.js +6 -6
- package/dist/env/task/storage/index.js +3 -3
- package/dist/env/task/tools/index.js +5 -5
- package/dist/env/tool/built-in/index.js +2 -2
- package/dist/env/tool/index.js +10 -10
- package/dist/env/workflow/engine/index.js +11 -11
- package/dist/env/workflow/index.js +15 -15
- package/dist/env/workflow/nodes/index.js +4 -4
- package/dist/env/workflow/storage/index.js +4 -4
- package/dist/env/workflow/tools/index.js +2 -2
- package/dist/env/workflow/utils/index.js +4 -4
- package/dist/index.js +42 -42
- package/dist/shared/@ai-setting/{roy-agent-core-5t6cryce.js → roy-agent-core-07290s9n.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-9bmtxmp6.js → roy-agent-core-0jc06hhg.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-e68xspar.js → roy-agent-core-2c9ms8gv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-mab4mzg3.js → roy-agent-core-2h38rvyj.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fwq0hs6e.js → roy-agent-core-2tna3t64.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-zmw5d68q.js → roy-agent-core-3czy06aq.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-8n4bz6y3.js → roy-agent-core-496zzm5a.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5k8watmp.js → roy-agent-core-5c2mfq1q.js} +5 -5
- package/dist/shared/@ai-setting/{roy-agent-core-4ch3ghj6.js → roy-agent-core-65yjzwv5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-9ffsvvcf.js → roy-agent-core-6b57g1zk.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-29867p67.js → roy-agent-core-6d5v531t.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-f336bk4g.js → roy-agent-core-6s3vec2y.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-zwp3jp02.js → roy-agent-core-74cp3zp1.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-qmr365f5.js → roy-agent-core-7tp56w6n.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-kjdpe2ey.js → roy-agent-core-7wdjpbcr.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-58k274fg.js → roy-agent-core-7z9b1fm8.js} +1 -0
- package/dist/shared/@ai-setting/{roy-agent-core-bwrzwq5x.js → roy-agent-core-8pk6a00t.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-3jk7ngmx.js → roy-agent-core-8vkr264k.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-6vxg2gmr.js → roy-agent-core-9r8pew8y.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ty33mnr7.js → roy-agent-core-am646wfz.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-rz57pqpa.js → roy-agent-core-ap59dpve.js} +5 -6
- package/dist/shared/@ai-setting/{roy-agent-core-jkhhsa3t.js → roy-agent-core-at22pe4k.js} +33 -14
- package/dist/shared/@ai-setting/{roy-agent-core-hd9p5490.js → roy-agent-core-b8r4tfqq.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-z5sxe4p7.js → roy-agent-core-c6vet6xc.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-1bfmxx89.js → roy-agent-core-djtkntar.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-2xah3h0z.js → roy-agent-core-e1704378.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-nfa6fc3a.js → roy-agent-core-eraxs53g.js} +5 -5
- package/dist/shared/@ai-setting/roy-agent-core-ggvv4snf.js +20 -0
- package/dist/shared/@ai-setting/{roy-agent-core-vbyct0e7.js → roy-agent-core-grt8ysq2.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-9m9m6fe1.js → roy-agent-core-hkeegfq0.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-v002ynpa.js → roy-agent-core-hkfkhaas.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-q5qj0fes.js → roy-agent-core-k05v31rc.js} +6 -3
- package/dist/shared/@ai-setting/{roy-agent-core-2g5j2nw6.js → roy-agent-core-n19rm7tw.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-emk3q2nt.js → roy-agent-core-nx3c3ce2.js} +17 -13
- package/dist/shared/@ai-setting/{roy-agent-core-nt1q2g91.js → roy-agent-core-pwzkgtgr.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-13vzexp2.js → roy-agent-core-qg4rma4c.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-g7qhnsz3.js → roy-agent-core-qzhkgbyj.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-cssnkkkg.js → roy-agent-core-rgckng3p.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-0vt0trev.js → roy-agent-core-rmd82vf7.js} +12 -12
- package/dist/shared/@ai-setting/{roy-agent-core-hv713d36.js → roy-agent-core-sfqx98j6.js} +16 -7
- package/dist/shared/@ai-setting/{roy-agent-core-10n2jh7p.js → roy-agent-core-shme7set.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-88d3k0p0.js → roy-agent-core-v8xa6vs8.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-e8eefm0k.js → roy-agent-core-w4f871e2.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-qakqwbbh.js → roy-agent-core-w6wagmhw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kwhv9dcd.js → roy-agent-core-x3gtyqax.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-c3ct1346.js → roy-agent-core-xhcgg11h.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-v7583cf9.js → roy-agent-core-y5d04fm3.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-awmae5ax.js → roy-agent-core-zgtmazxg.js} +16 -2
- package/dist/shared/@ai-setting/{roy-agent-core-0x3g6snw.js → roy-agent-core-zkwe508t.js} +7 -7
- package/package.json +1 -1
- package/dist/shared/@ai-setting/roy-agent-core-0frwccap.js +0 -20
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-shme7set.js";
|
|
14
14
|
|
|
15
15
|
// src/env/memory/types.ts
|
|
16
16
|
import { z } from "zod";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
BackgroundTaskManager,
|
|
6
6
|
createDelegateTool,
|
|
7
7
|
createStopTool
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-eraxs53g.js";
|
|
9
9
|
import {
|
|
10
10
|
SQLiteTaskStore,
|
|
11
11
|
getDefaultTaskDbPath
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-w4f871e2.js";
|
|
13
13
|
import {
|
|
14
14
|
completeTaskTool,
|
|
15
15
|
createTaskTool,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
getTaskTool,
|
|
18
18
|
listTasksTool,
|
|
19
19
|
updateTaskTool
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-e1704378.js";
|
|
21
21
|
import {
|
|
22
22
|
createOperationTool,
|
|
23
23
|
deleteOperationTool,
|
|
@@ -33,19 +33,19 @@ import {
|
|
|
33
33
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
34
34
|
import {
|
|
35
35
|
BaseComponent
|
|
36
|
-
} from "./roy-agent-core-
|
|
36
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
37
37
|
import {
|
|
38
38
|
globalHookManager,
|
|
39
39
|
init_global_hook_manager
|
|
40
|
-
} from "./roy-agent-core-
|
|
40
|
+
} from "./roy-agent-core-7tp56w6n.js";
|
|
41
41
|
import {
|
|
42
42
|
TracedAs,
|
|
43
43
|
init_decorator
|
|
44
|
-
} from "./roy-agent-core-
|
|
44
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
45
45
|
import {
|
|
46
46
|
createLogger,
|
|
47
47
|
init_logger
|
|
48
|
-
} from "./roy-agent-core-
|
|
48
|
+
} from "./roy-agent-core-shme7set.js";
|
|
49
49
|
import {
|
|
50
50
|
__legacyDecorateClassTS
|
|
51
51
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -8,17 +8,17 @@ import {
|
|
|
8
8
|
} from "./roy-agent-core-fnv3ev18.js";
|
|
9
9
|
import {
|
|
10
10
|
adaptMcpTool
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-djtkntar.js";
|
|
12
12
|
import {
|
|
13
13
|
toEnvKey
|
|
14
14
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
15
15
|
import {
|
|
16
16
|
BaseComponent
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-shme7set.js";
|
|
22
22
|
|
|
23
23
|
// src/env/mcp/types.ts
|
|
24
24
|
import { z } from "zod";
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-ctdhjv68.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseComponent
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
8
8
|
import {
|
|
9
9
|
init_context
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-qg4rma4c.js";
|
|
11
11
|
import {
|
|
12
12
|
getEnvContext,
|
|
13
13
|
init_env_context,
|
|
14
14
|
runWithEnvContextAsync
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-y5d04fm3.js";
|
|
16
16
|
import {
|
|
17
17
|
TracedAs,
|
|
18
18
|
init_decorator
|
|
19
|
-
} from "./roy-agent-core-
|
|
19
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
20
20
|
import {
|
|
21
21
|
createLogger,
|
|
22
22
|
init_logger
|
|
23
|
-
} from "./roy-agent-core-
|
|
23
|
+
} from "./roy-agent-core-shme7set.js";
|
|
24
24
|
import {
|
|
25
25
|
__legacyDecorateClassTS
|
|
26
26
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
globalHookManager,
|
|
13
13
|
init_global_hook_manager
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-7tp56w6n.js";
|
|
15
15
|
import {
|
|
16
16
|
init_decorator,
|
|
17
17
|
wrapFunction
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-shme7set.js";
|
|
23
23
|
import {
|
|
24
24
|
__esm
|
|
25
25
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -6,18 +6,18 @@ import {
|
|
|
6
6
|
} from "./roy-agent-core-92z6t4he.js";
|
|
7
7
|
import {
|
|
8
8
|
init_context
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-qg4rma4c.js";
|
|
10
10
|
import {
|
|
11
11
|
getEnvContextOrEmpty
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-y5d04fm3.js";
|
|
13
13
|
import {
|
|
14
14
|
TracedAs,
|
|
15
15
|
init_decorator
|
|
16
|
-
} from "./roy-agent-core-
|
|
16
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
17
17
|
import {
|
|
18
18
|
createLogger,
|
|
19
19
|
init_logger
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-shme7set.js";
|
|
21
21
|
import {
|
|
22
22
|
__legacyDecorateClassTS,
|
|
23
23
|
__require
|
|
@@ -368,11 +368,11 @@ ${prompt}`;
|
|
|
368
368
|
}
|
|
369
369
|
if (!this._workflowRepo) {
|
|
370
370
|
try {
|
|
371
|
-
const sqlite = await import("./roy-agent-core-
|
|
371
|
+
const sqlite = await import("./roy-agent-core-74cp3zp1.js");
|
|
372
372
|
this.ensureDataDir();
|
|
373
373
|
const db = sqlite.getDatabase();
|
|
374
374
|
sqlite.initializeTables();
|
|
375
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
375
|
+
const { WorkflowRepository } = await import("./roy-agent-core-am646wfz.js");
|
|
376
376
|
this._workflowRepo = new WorkflowRepository(db);
|
|
377
377
|
return this._workflowRepo;
|
|
378
378
|
} catch {
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
initDatabase,
|
|
6
6
|
initializeTables,
|
|
7
7
|
resetDatabase
|
|
8
|
-
} from "./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-6b57g1zk.js";
|
|
9
|
+
import"./roy-agent-core-shme7set.js";
|
|
10
|
+
import"./roy-agent-core-7z9b1fm8.js";
|
|
11
11
|
import"./roy-agent-core-c6592r3c.js";
|
|
12
12
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
13
13
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_context
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-qg4rma4c.js";
|
|
4
4
|
import {
|
|
5
5
|
getEnvContext
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-y5d04fm3.js";
|
|
7
7
|
import {
|
|
8
8
|
__esm
|
|
9
9
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseComponent
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-shme7set.js";
|
|
12
12
|
|
|
13
13
|
// src/env/commands/commands-component.ts
|
|
14
14
|
import path2 from "path";
|
|
@@ -330,6 +330,7 @@ class OTelTracerImpl {
|
|
|
330
330
|
return Math.floor(Math.random() * 18446744073709552000).toString(16).padStart(16, "0");
|
|
331
331
|
}
|
|
332
332
|
handleSpanEnd(spanId, parentSpanId) {
|
|
333
|
+
this.activeSpans.delete(spanId);
|
|
333
334
|
if (parentSpanId) {
|
|
334
335
|
const parentSpan = this.activeSpans.get(parentSpanId);
|
|
335
336
|
if (parentSpan) {
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
tracedExtractStructuredJsonViaLlm,
|
|
11
11
|
tracedRunWorkflowJsonOutputExtraction,
|
|
12
12
|
unregisterWorkflowJsonOutputPlugin
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-6d5v531t.js";
|
|
14
14
|
import"./roy-agent-core-nhfy3p8q.js";
|
|
15
15
|
import"./roy-agent-core-e25xkv53.js";
|
|
16
|
-
import"./roy-agent-core-
|
|
17
|
-
import"./roy-agent-core-
|
|
18
|
-
import"./roy-agent-core-
|
|
19
|
-
import"./roy-agent-core-
|
|
20
|
-
import"./roy-agent-core-
|
|
21
|
-
import"./roy-agent-core-
|
|
16
|
+
import"./roy-agent-core-7tp56w6n.js";
|
|
17
|
+
import"./roy-agent-core-qg4rma4c.js";
|
|
18
|
+
import"./roy-agent-core-y5d04fm3.js";
|
|
19
|
+
import"./roy-agent-core-k05v31rc.js";
|
|
20
|
+
import"./roy-agent-core-shme7set.js";
|
|
21
|
+
import"./roy-agent-core-7z9b1fm8.js";
|
|
22
22
|
import"./roy-agent-core-c6592r3c.js";
|
|
23
23
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
24
24
|
init_workflow_json_output_plugin();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowRepository,
|
|
3
3
|
rowToWorkflow
|
|
4
|
-
} from "./roy-agent-core-
|
|
5
|
-
import"./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-496zzm5a.js";
|
|
5
|
+
import"./roy-agent-core-6b57g1zk.js";
|
|
6
6
|
import"./roy-agent-core-rvxg1wps.js";
|
|
7
|
-
import"./roy-agent-core-
|
|
8
|
-
import"./roy-agent-core-
|
|
7
|
+
import"./roy-agent-core-shme7set.js";
|
|
8
|
+
import"./roy-agent-core-7z9b1fm8.js";
|
|
9
9
|
import"./roy-agent-core-c6592r3c.js";
|
|
10
10
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
11
11
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseComponent
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
4
4
|
import {
|
|
5
5
|
globalHookManager,
|
|
6
6
|
init_global_hook_manager
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-7tp56w6n.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-shme7set.js";
|
|
12
12
|
|
|
13
13
|
// src/env/plugin/plugin-component.ts
|
|
14
14
|
init_global_hook_manager();
|
|
@@ -63,15 +63,14 @@ class PluginComponent extends BaseComponent {
|
|
|
63
63
|
if (!plugin) {
|
|
64
64
|
return false;
|
|
65
65
|
}
|
|
66
|
+
this.registry.delete(name);
|
|
66
67
|
try {
|
|
67
68
|
plugin.dispose();
|
|
68
|
-
this.registry.delete(name);
|
|
69
69
|
this.logger.info(`Unregistered plugin: ${name}`);
|
|
70
|
-
return true;
|
|
71
70
|
} catch (err) {
|
|
72
71
|
this.logger.error(`Failed to dispose plugin ${name}: ${err}`);
|
|
73
|
-
return false;
|
|
74
72
|
}
|
|
73
|
+
return true;
|
|
75
74
|
}
|
|
76
75
|
get(name) {
|
|
77
76
|
return this.registry.get(name);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentComponentAdapter,
|
|
3
3
|
init_agent_component_adapter
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-zgtmazxg.js";
|
|
5
5
|
import {
|
|
6
6
|
buildWorkflowNodeMetadata,
|
|
7
7
|
getWorkflowNodeIdFromMetadata,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
TemplateResolver,
|
|
13
13
|
init_template_resolver
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-hkfkhaas.js";
|
|
15
15
|
import {
|
|
16
16
|
SkillNode,
|
|
17
17
|
ToolNode,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
init_skill_node,
|
|
20
20
|
init_tool_node,
|
|
21
21
|
init_workflow_node
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-9r8pew8y.js";
|
|
23
23
|
import {
|
|
24
24
|
WorkflowError,
|
|
25
25
|
createWorkflowEvent,
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
TracedAs,
|
|
45
45
|
init_decorator
|
|
46
|
-
} from "./roy-agent-core-
|
|
46
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
47
47
|
import {
|
|
48
48
|
createLogger,
|
|
49
49
|
init_logger
|
|
50
|
-
} from "./roy-agent-core-
|
|
50
|
+
} from "./roy-agent-core-shme7set.js";
|
|
51
51
|
import {
|
|
52
52
|
__esm,
|
|
53
53
|
__export,
|
|
@@ -1356,6 +1356,7 @@ var init_agent_node = __esm(() => {
|
|
|
1356
1356
|
try {
|
|
1357
1357
|
const config = context.resolvedConfig ?? this.definition.config ?? {};
|
|
1358
1358
|
const agentType = config.agent_type || "general";
|
|
1359
|
+
const agentName = config.agent_name || undefined;
|
|
1359
1360
|
const options = config.options || {};
|
|
1360
1361
|
const outputConfig = parseAgentOutputConfig(config);
|
|
1361
1362
|
let resolvedPrompt;
|
|
@@ -1365,12 +1366,27 @@ var init_agent_node = __esm(() => {
|
|
|
1365
1366
|
const promptTemplate = config.prompt || "";
|
|
1366
1367
|
resolvedPrompt = context.templateResolver?.resolveValue(promptTemplate) ?? promptTemplate;
|
|
1367
1368
|
}
|
|
1369
|
+
let resolvedAgentType = agentType;
|
|
1370
|
+
let inheritedModel;
|
|
1371
|
+
let inheritedAllowedTools;
|
|
1372
|
+
let inheritedDeniedTools;
|
|
1373
|
+
if (agentName && this.agentRunner.hasAgent && this.agentRunner.getAgentConfig) {
|
|
1374
|
+
if (this.agentRunner.hasAgent(agentName)) {
|
|
1375
|
+
const agentConfig2 = this.agentRunner.getAgentConfig(agentName);
|
|
1376
|
+
if (agentConfig2) {
|
|
1377
|
+
resolvedAgentType = agentName;
|
|
1378
|
+
inheritedModel = agentConfig2.model;
|
|
1379
|
+
inheritedAllowedTools = agentConfig2.allowedTools;
|
|
1380
|
+
inheritedDeniedTools = agentConfig2.deniedTools;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1368
1384
|
if (this.agentRunner.registerAgent && this.agentRunner.hasAgent) {
|
|
1369
|
-
if (!this.agentRunner.hasAgent(
|
|
1370
|
-
this.agentRunner.registerAgent(
|
|
1371
|
-
type:
|
|
1372
|
-
systemPrompt: config.system_prompt || `You are a ${
|
|
1373
|
-
model: options.model
|
|
1385
|
+
if (!this.agentRunner.hasAgent(resolvedAgentType)) {
|
|
1386
|
+
this.agentRunner.registerAgent(resolvedAgentType, {
|
|
1387
|
+
type: resolvedAgentType,
|
|
1388
|
+
systemPrompt: config.system_prompt || `You are a ${resolvedAgentType} agent.`,
|
|
1389
|
+
model: options.model || inheritedModel
|
|
1374
1390
|
});
|
|
1375
1391
|
}
|
|
1376
1392
|
}
|
|
@@ -1389,14 +1405,17 @@ var init_agent_node = __esm(() => {
|
|
|
1389
1405
|
await context.attachAgentSessionToLastStart(this.definition.id, agentSessionId);
|
|
1390
1406
|
}
|
|
1391
1407
|
}
|
|
1392
|
-
const
|
|
1408
|
+
const effectiveModel = options.model || inheritedModel;
|
|
1409
|
+
const effectiveAllowedTools = options.allowedTools?.length ? options.allowedTools : inheritedAllowedTools?.length ? inheritedAllowedTools : ["ask_user"];
|
|
1410
|
+
const effectiveDeniedTools = options.deniedTools?.length ? options.deniedTools : inheritedDeniedTools;
|
|
1393
1411
|
const agentConfig = {
|
|
1394
|
-
type:
|
|
1412
|
+
type: resolvedAgentType,
|
|
1395
1413
|
prompt: resolvedPrompt,
|
|
1396
1414
|
options: {
|
|
1397
1415
|
timeout: options.timeout,
|
|
1398
|
-
model:
|
|
1399
|
-
allowedTools,
|
|
1416
|
+
model: effectiveModel,
|
|
1417
|
+
allowedTools: effectiveAllowedTools,
|
|
1418
|
+
deniedTools: effectiveDeniedTools,
|
|
1400
1419
|
outputSchema: outputConfig.schema
|
|
1401
1420
|
},
|
|
1402
1421
|
workflowHistory: context.workflowHistory,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
hasDecoratorNodes,
|
|
4
4
|
init_node_registry_helper,
|
|
5
5
|
registerDecoratorNodeType
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-0jc06hhg.js";
|
|
7
7
|
import"./roy-agent-core-1ce3fqrk.js";
|
|
8
|
-
import"./roy-agent-core-
|
|
9
|
-
import"./roy-agent-core-
|
|
10
|
-
import"./roy-agent-core-
|
|
8
|
+
import"./roy-agent-core-k05v31rc.js";
|
|
9
|
+
import"./roy-agent-core-shme7set.js";
|
|
10
|
+
import"./roy-agent-core-7z9b1fm8.js";
|
|
11
11
|
import"./roy-agent-core-c6592r3c.js";
|
|
12
12
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
13
13
|
init_node_registry_helper();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_env_context,
|
|
3
3
|
setCurrentTaskId
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-y5d04fm3.js";
|
|
5
5
|
import {
|
|
6
6
|
createLogger,
|
|
7
7
|
init_logger
|
|
8
|
-
} from "./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-shme7set.js";
|
|
9
9
|
|
|
10
10
|
// src/env/task/tools/task-types.ts
|
|
11
11
|
import { z } from "zod";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_SUBAGENT_PROMPT
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-nx3c3ce2.js";
|
|
4
4
|
import {
|
|
5
5
|
TaskHookPoints
|
|
6
6
|
} from "./roy-agent-core-92z6t4he.js";
|
|
7
7
|
import {
|
|
8
8
|
globalHookManager,
|
|
9
9
|
init_global_hook_manager
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-7tp56w6n.js";
|
|
11
11
|
import {
|
|
12
12
|
init_env_context,
|
|
13
13
|
setCurrentTaskId
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-y5d04fm3.js";
|
|
15
15
|
import {
|
|
16
16
|
TracedAs,
|
|
17
17
|
init_decorator
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-shme7set.js";
|
|
23
23
|
import {
|
|
24
24
|
__legacyDecorateClassTS
|
|
25
25
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentComponentAdapter,
|
|
3
|
+
init_agent_component_adapter
|
|
4
|
+
} from "./roy-agent-core-zgtmazxg.js";
|
|
5
|
+
import"./roy-agent-core-6d5v531t.js";
|
|
6
|
+
import"./roy-agent-core-nhfy3p8q.js";
|
|
7
|
+
import"./roy-agent-core-e25xkv53.js";
|
|
8
|
+
import"./roy-agent-core-7tp56w6n.js";
|
|
9
|
+
import"./roy-agent-core-qg4rma4c.js";
|
|
10
|
+
import"./roy-agent-core-y5d04fm3.js";
|
|
11
|
+
import"./roy-agent-core-k05v31rc.js";
|
|
12
|
+
import"./roy-agent-core-shme7set.js";
|
|
13
|
+
import"./roy-agent-core-7z9b1fm8.js";
|
|
14
|
+
import"./roy-agent-core-c6592r3c.js";
|
|
15
|
+
import"./roy-agent-core-fs0mn2jk.js";
|
|
16
|
+
init_agent_component_adapter();
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
AgentComponentAdapter
|
|
20
|
+
};
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
8
8
|
import {
|
|
9
9
|
BaseComponent
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
11
11
|
import {
|
|
12
12
|
createHook
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-b8r4tfqq.js";
|
|
14
14
|
import {
|
|
15
15
|
globalHookManager,
|
|
16
16
|
init_global_hook_manager
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-7tp56w6n.js";
|
|
18
18
|
import {
|
|
19
19
|
createLogger,
|
|
20
20
|
init_logger
|
|
21
|
-
} from "./roy-agent-core-
|
|
21
|
+
} from "./roy-agent-core-shme7set.js";
|
|
22
22
|
|
|
23
23
|
// src/env/prompt/types.ts
|
|
24
24
|
import { z } from "zod";
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
} from "./roy-agent-core-pcjenbaf.js";
|
|
10
10
|
import {
|
|
11
11
|
SummaryAgent
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-x3gtyqax.js";
|
|
13
13
|
import {
|
|
14
14
|
envKeyToConfigKey
|
|
15
15
|
} from "./roy-agent-core-qxhq8ven.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseComponent
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-rgckng3p.js";
|
|
19
19
|
import {
|
|
20
20
|
TracedAs,
|
|
21
21
|
init_decorator
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-k05v31rc.js";
|
|
23
23
|
import {
|
|
24
24
|
createLogger,
|
|
25
25
|
init_logger
|
|
26
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-shme7set.js";
|
|
27
27
|
import {
|
|
28
28
|
__legacyDecorateClassTS
|
|
29
29
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
getMaxOutput,
|
|
4
4
|
init_logger,
|
|
5
5
|
simplifyFilePath
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-shme7set.js";
|
|
7
7
|
import {
|
|
8
8
|
getTracerProvider,
|
|
9
9
|
init_tracer_provider
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-7z9b1fm8.js";
|
|
11
11
|
import {
|
|
12
12
|
__esm
|
|
13
13
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
@@ -135,7 +135,10 @@ function wrapFunction(fn, name, options) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
const callerLocation = getCallerLocation();
|
|
138
|
-
|
|
138
|
+
let span;
|
|
139
|
+
try {
|
|
140
|
+
span = tracer.startSpan(name, { attributes });
|
|
141
|
+
} catch {}
|
|
139
142
|
logFn("enter", args, callerLocation);
|
|
140
143
|
try {
|
|
141
144
|
const result = fn.call(this, ...args);
|