@ai-setting/roy-agent-core 1.4.14 → 1.4.16
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/{packages/core/src/config → config}/index.js +7 -7
- package/dist/env/agent/index.js +24 -0
- package/dist/env/commands/index.js +14 -0
- package/dist/env/debug/formatters/index.js +11 -0
- package/dist/env/debug/index.js +26 -0
- package/dist/{packages/core/src/env → env}/hook/index.js +3 -3
- package/dist/env/index.js +81 -0
- package/dist/env/llm/index.js +40 -0
- package/dist/{packages/core/src/env → env}/log-trace/index.js +10 -10
- package/dist/env/mcp/index.js +39 -0
- package/dist/env/mcp/tool/index.js +14 -0
- package/dist/{packages/core/src/env → env}/memory/built-in/index.js +2 -2
- package/dist/{packages/core/src/env → env}/memory/index.js +11 -11
- package/dist/{packages/core/src/env → env}/memory/plugin/index.js +5 -5
- package/dist/env/prompt/index.js +20 -0
- package/dist/env/session/index.js +25 -0
- package/dist/env/session/storage/index.js +18 -0
- package/dist/env/skill/index.js +34 -0
- package/dist/env/skill/tool/index.js +9 -0
- package/dist/env/task/delegate/index.js +18 -0
- package/dist/env/task/hooks/index.js +7 -0
- package/dist/env/task/index.js +30 -0
- package/dist/env/task/plugins/index.js +23 -0
- package/dist/env/task/storage/index.js +14 -0
- package/dist/{packages/core/src/env → env}/task/tools/index.js +2 -2
- package/dist/{packages/core/src/env → env}/task/tools/operation/index.js +2 -2
- package/dist/{packages/core/src/env → env}/tool/built-in/index.js +4 -4
- package/dist/env/tool/index.js +39 -0
- package/dist/{packages/core/src/env → env}/workflow/decorators/index.js +3 -3
- package/dist/env/workflow/engine/index.js +28 -0
- package/dist/{packages/core/src/env → env}/workflow/index.js +20 -20
- package/dist/{packages/core/src/env → env}/workflow/nodes/index.js +3 -3
- package/dist/{packages/core/src/env → env}/workflow/service/index.js +2 -2
- package/dist/env/workflow/storage/index.js +27 -0
- package/dist/{packages/core/src/env → env}/workflow/tools/index.js +7 -7
- package/dist/{packages/core/src/env → env}/workflow/types/index.js +3 -3
- package/dist/{packages/core/src/env → env}/workflow/utils/index.js +10 -10
- package/dist/{packages/core/src/index.js → index.js} +54 -54
- package/dist/shared/@ai-setting/{roy-agent-core-1z1zv5g8.js → roy-agent-core-0rtxwr28.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-nfj6knp5.js → roy-agent-core-0vbdz0x7.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-04fm8177.js → roy-agent-core-12zkpda2.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-3tnb2005.js → roy-agent-core-1ce3fqrk.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-084qqd7t.js → roy-agent-core-2dhd60aw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8wzz66qe.js → roy-agent-core-2kg2wma8.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-2hqxnaf3.js → roy-agent-core-2x0m2p66.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-04qgbjbe.js → roy-agent-core-35x0wrtt.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-qxybm159.js → roy-agent-core-37e4tep3.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-5fbp24se.js → roy-agent-core-3agad0d9.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-yt8wdh2w.js → roy-agent-core-4t40mkpv.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-m6y668cc.js → roy-agent-core-561b1c4p.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-v4aabsf0.js → roy-agent-core-6a72jfdy.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-nczzf0ms.js → roy-agent-core-7f303ffd.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-sbzvpfn7.js → roy-agent-core-7fgf85wc.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-tkr5ynkh.js → roy-agent-core-7n436rb4.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-yrzmn4m1.js → roy-agent-core-7r85t0qn.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-q50tg9m2.js → roy-agent-core-7rewcey6.js} +11 -11
- package/dist/shared/@ai-setting/{roy-agent-core-pzk1syce.js → roy-agent-core-92z6t4he.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-hyza1gm7.js → roy-agent-core-9yxb3ty9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-fvd9g6k8.js → roy-agent-core-anwsxdds.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-j8zx62zr.js → roy-agent-core-bncgx3gb.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jb2exr0d.js → roy-agent-core-cgs0j60t.js} +12 -12
- package/dist/shared/@ai-setting/{roy-agent-core-3takar0s.js → roy-agent-core-ctdhjv68.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-12x57kf1.js → roy-agent-core-dbsk841j.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-8dvbn7tw.js → roy-agent-core-e25xkv53.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7vrk3add.js → roy-agent-core-e5jcp24a.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-ntrp979d.js → roy-agent-core-e62e2a5a.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-rh9dpkpw.js → roy-agent-core-ewrj1c4k.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-6j0zcmwk.js → roy-agent-core-fdb6m4e4.js} +16 -16
- package/dist/shared/@ai-setting/{roy-agent-core-1k28kg7h.js → roy-agent-core-fv32jaa8.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-8mbmrwzs.js → roy-agent-core-g1s2h0e5.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-w75rafhy.js → roy-agent-core-gmnkza34.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-3dfq8awb.js → roy-agent-core-h2a7key1.js} +12 -12
- package/dist/shared/@ai-setting/{roy-agent-core-9ykq91jc.js → roy-agent-core-hvvs1g2y.js} +10 -10
- package/dist/shared/@ai-setting/{roy-agent-core-k1rxf9ya.js → roy-agent-core-hz7rr4yx.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-gv1hrn3x.js → roy-agent-core-j3bbr2n0.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-yn761yve.js → roy-agent-core-j3wc4465.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-f7g67gce.js → roy-agent-core-mwwk6req.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-6w4pmxc7.js → roy-agent-core-nq3qrczq.js} +15 -15
- package/dist/shared/@ai-setting/{roy-agent-core-rr9p1g43.js → roy-agent-core-pc9g3962.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-0gekht4e.js → roy-agent-core-phb2ms02.js} +10 -10
- package/dist/shared/@ai-setting/{roy-agent-core-kydc9nwb.js → roy-agent-core-psvxt4c9.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-qhyerewk.js → roy-agent-core-q779wnwm.js} +4 -4
- package/dist/shared/@ai-setting/{roy-agent-core-4ws8atva.js → roy-agent-core-qw0ebh1d.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-jv3b7v9w.js → roy-agent-core-qxhq8ven.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5my94ywp.js → roy-agent-core-qxnbvgwe.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-yfbgwes2.js → roy-agent-core-qya7seh6.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-m2x48hw6.js → roy-agent-core-rbetrphj.js} +3 -3
- package/dist/shared/@ai-setting/roy-agent-core-rft3fmp0.js +14 -0
- package/dist/shared/@ai-setting/{roy-agent-core-w76hqkmg.js → roy-agent-core-rvv6ydff.js} +3 -3
- package/dist/shared/@ai-setting/{roy-agent-core-0sgn3de4.js → roy-agent-core-rvxg1wps.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-fq5mtxsy.js → roy-agent-core-rzp9kxne.js} +8 -8
- package/dist/shared/@ai-setting/{roy-agent-core-gy0wp5h7.js → roy-agent-core-t94ktchq.js} +6 -6
- package/dist/shared/@ai-setting/{roy-agent-core-0hdry23r.js → roy-agent-core-vkk0se95.js} +14 -14
- package/dist/shared/@ai-setting/{roy-agent-core-1f3xrrm6.js → roy-agent-core-vxfvcmtj.js} +9 -9
- package/dist/shared/@ai-setting/{roy-agent-core-t22nqt4d.js → roy-agent-core-w78syn7w.js} +7 -7
- package/dist/shared/@ai-setting/{roy-agent-core-qg9tcaph.js → roy-agent-core-z2t8hse8.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-pd7g8z5v.js → roy-agent-core-z3tepbfw.js} +13 -13
- package/dist/shared/@ai-setting/{roy-agent-core-dde19zke.js → roy-agent-core-zc8csaep.js} +12 -12
- package/package.json +3 -3
- package/dist/packages/core/src/env/agent/index.js +0 -24
- package/dist/packages/core/src/env/commands/index.js +0 -14
- package/dist/packages/core/src/env/debug/formatters/index.js +0 -11
- package/dist/packages/core/src/env/debug/index.js +0 -26
- package/dist/packages/core/src/env/index.js +0 -81
- package/dist/packages/core/src/env/llm/index.js +0 -40
- package/dist/packages/core/src/env/mcp/index.js +0 -39
- package/dist/packages/core/src/env/mcp/tool/index.js +0 -14
- package/dist/packages/core/src/env/prompt/index.js +0 -20
- package/dist/packages/core/src/env/session/index.js +0 -25
- package/dist/packages/core/src/env/session/storage/index.js +0 -18
- package/dist/packages/core/src/env/skill/index.js +0 -34
- package/dist/packages/core/src/env/skill/tool/index.js +0 -9
- package/dist/packages/core/src/env/task/delegate/index.js +0 -18
- package/dist/packages/core/src/env/task/hooks/index.js +0 -7
- package/dist/packages/core/src/env/task/index.js +0 -30
- package/dist/packages/core/src/env/task/plugins/index.js +0 -23
- package/dist/packages/core/src/env/task/storage/index.js +0 -14
- package/dist/packages/core/src/env/tool/index.js +0 -39
- package/dist/packages/core/src/env/workflow/engine/index.js +0 -28
- package/dist/packages/core/src/env/workflow/storage/index.js +0 -27
- package/dist/shared/@ai-setting/roy-agent-core-4vmcvkav.js +0 -14
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envKeyToConfigKey,
|
|
3
3
|
toEnvKey
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-qxhq8ven.js";
|
|
5
5
|
import {
|
|
6
6
|
BaseComponent
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-rbetrphj.js";
|
|
8
8
|
import {
|
|
9
9
|
createLogger,
|
|
10
10
|
init_logger
|
|
11
|
-
} from "./roy-agent-core-
|
|
11
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
12
12
|
|
|
13
|
-
//
|
|
13
|
+
// src/env/prompt/types.ts
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
var PromptPathSchema = z.object({
|
|
16
16
|
type: z.enum(["file", "directory"]),
|
|
@@ -31,7 +31,7 @@ var PromptHookPoints = {
|
|
|
31
31
|
AFTER_RENDER: "prompt.after-render"
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// src/env/prompt/renderer.ts
|
|
35
35
|
class PromptRenderer {
|
|
36
36
|
options;
|
|
37
37
|
constructor(options) {
|
|
@@ -69,7 +69,7 @@ function escapeRegex(str) {
|
|
|
69
69
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
//
|
|
72
|
+
// src/env/prompt/prompts-index.ts
|
|
73
73
|
var builtInPrompts = {
|
|
74
74
|
default: `You are Roy, a versatile AI assistant inspired by Jarvis - intelligent, proactive, and capable.
|
|
75
75
|
|
|
@@ -551,12 +551,12 @@ function getBuiltInPrompt(name) {
|
|
|
551
551
|
return builtInPrompts[name];
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
//
|
|
554
|
+
// src/env/prompt/prompt-component.ts
|
|
555
555
|
init_logger();
|
|
556
556
|
import { readFile, readdir } from "fs/promises";
|
|
557
557
|
import { join, basename, extname } from "path";
|
|
558
558
|
|
|
559
|
-
//
|
|
559
|
+
// src/env/prompt/prompt-config-registration.ts
|
|
560
560
|
var PROMPT_DEFAULTS = {
|
|
561
561
|
"prompt.defaultName": "default",
|
|
562
562
|
"prompt.variablePrefix": "{{",
|
|
@@ -575,7 +575,7 @@ var PROMPT_CONFIG_REGISTRATION = {
|
|
|
575
575
|
]
|
|
576
576
|
};
|
|
577
577
|
|
|
578
|
-
//
|
|
578
|
+
// src/env/prompt/prompt-component.ts
|
|
579
579
|
var logger = createLogger("prompt");
|
|
580
580
|
|
|
581
581
|
class PromptComponent extends BaseComponent {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_node_registry_helper,
|
|
3
3
|
init_node_registry_helper
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-0rtxwr28.js";
|
|
5
5
|
import {
|
|
6
6
|
askUserTool
|
|
7
|
-
} from "./roy-agent-core-
|
|
7
|
+
} from "./roy-agent-core-0vbdz0x7.js";
|
|
8
8
|
import {
|
|
9
9
|
WorkflowEngine,
|
|
10
10
|
exports_engine,
|
|
11
11
|
init_engine
|
|
12
|
-
} from "./roy-agent-core-
|
|
12
|
+
} from "./roy-agent-core-fdb6m4e4.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkflowService
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-4t40mkpv.js";
|
|
16
16
|
import {
|
|
17
17
|
BaseComponent
|
|
18
|
-
} from "./roy-agent-core-
|
|
18
|
+
} from "./roy-agent-core-rbetrphj.js";
|
|
19
19
|
import {
|
|
20
20
|
createLogger,
|
|
21
21
|
init_logger
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
23
23
|
import {
|
|
24
24
|
__require,
|
|
25
25
|
__toCommonJS
|
|
26
26
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
27
27
|
|
|
28
|
-
//
|
|
28
|
+
// src/env/workflow/workflow-component.ts
|
|
29
29
|
import"reflect-metadata";
|
|
30
30
|
init_engine();
|
|
31
31
|
init_logger();
|
|
@@ -96,8 +96,8 @@ class WorkflowComponent extends BaseComponent {
|
|
|
96
96
|
if (this.decoratorsRegistered)
|
|
97
97
|
return;
|
|
98
98
|
try {
|
|
99
|
-
const { NodeRegistry } = await import("../../
|
|
100
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
99
|
+
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
100
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-9yxb3ty9.js");
|
|
101
101
|
this.nodeRegistry = new NodeRegistry;
|
|
102
102
|
registerDecoratorNodeType2(this.nodeRegistry);
|
|
103
103
|
this.decoratorsRegistered = true;
|
|
@@ -126,15 +126,15 @@ class WorkflowComponent extends BaseComponent {
|
|
|
126
126
|
return this.workflowService;
|
|
127
127
|
}
|
|
128
128
|
async runWorkflow(definition, input, options) {
|
|
129
|
-
const { NodeRegistry } = await import("../../
|
|
130
|
-
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-
|
|
129
|
+
const { NodeRegistry } = await import("../../env/workflow/engine/index.js");
|
|
130
|
+
const { registerDecoratorNodeType: registerDecoratorNodeType2 } = await import("./roy-agent-core-9yxb3ty9.js");
|
|
131
131
|
const toolComponent = this.toolComponent || this._workflowEnv?.getComponent("tool");
|
|
132
132
|
const skillComponent = this._workflowEnv?.getComponent("skill");
|
|
133
133
|
let agentRunner = this.agentRunner;
|
|
134
134
|
if (!agentRunner && this._workflowEnv) {
|
|
135
135
|
const agentComponent = this._workflowEnv.getComponent("agent");
|
|
136
136
|
if (agentComponent) {
|
|
137
|
-
const { AgentComponentAdapter } = await import("./roy-agent-core-
|
|
137
|
+
const { AgentComponentAdapter } = await import("./roy-agent-core-z2t8hse8.js");
|
|
138
138
|
agentRunner = new AgentComponentAdapter(agentComponent);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -155,7 +155,7 @@ class WorkflowComponent extends BaseComponent {
|
|
|
155
155
|
if (this.workflowService) {
|
|
156
156
|
this.workflowService = null;
|
|
157
157
|
try {
|
|
158
|
-
const { closeDatabase } = await import("./roy-agent-core-
|
|
158
|
+
const { closeDatabase } = await import("./roy-agent-core-q779wnwm.js");
|
|
159
159
|
closeDatabase();
|
|
160
160
|
componentLogger.info("[WorkflowComponent] SQLite database closed");
|
|
161
161
|
} catch (error) {
|
|
@@ -192,8 +192,8 @@ class WorkflowComponent extends BaseComponent {
|
|
|
192
192
|
}
|
|
193
193
|
async initSqliteService() {
|
|
194
194
|
try {
|
|
195
|
-
const { getDatabase, initializeTables } = await import("./roy-agent-core-
|
|
196
|
-
const { WorkflowRepository } = await import("./roy-agent-core-
|
|
195
|
+
const { getDatabase, initializeTables } = await import("./roy-agent-core-q779wnwm.js");
|
|
196
|
+
const { WorkflowRepository } = await import("./roy-agent-core-rft3fmp0.js");
|
|
197
197
|
const db = getDatabase();
|
|
198
198
|
initializeTables();
|
|
199
199
|
const workflowRepository = new WorkflowRepository(db);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AskUserError,
|
|
3
3
|
init_workflow_hil
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-e25xkv53.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm
|
|
7
7
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
8
8
|
|
|
9
|
-
//
|
|
9
|
+
// src/env/workflow/nodes/agent-component-adapter.ts
|
|
10
10
|
class AgentComponentAdapter {
|
|
11
11
|
agentComponent;
|
|
12
12
|
options;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessageConverter
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-e62e2a5a.js";
|
|
4
4
|
import {
|
|
5
5
|
ContextError
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-ctdhjv68.js";
|
|
7
7
|
import {
|
|
8
8
|
AskUserError,
|
|
9
9
|
init_workflow_hil
|
|
10
|
-
} from "./roy-agent-core-
|
|
10
|
+
} from "./roy-agent-core-e25xkv53.js";
|
|
11
11
|
import {
|
|
12
12
|
TracedAs,
|
|
13
13
|
init_decorator
|
|
14
|
-
} from "./roy-agent-core-
|
|
14
|
+
} from "./roy-agent-core-35x0wrtt.js";
|
|
15
15
|
import {
|
|
16
16
|
envKeyToConfigKey
|
|
17
|
-
} from "./roy-agent-core-
|
|
17
|
+
} from "./roy-agent-core-qxhq8ven.js";
|
|
18
18
|
import {
|
|
19
19
|
BaseComponent
|
|
20
|
-
} from "./roy-agent-core-
|
|
20
|
+
} from "./roy-agent-core-rbetrphj.js";
|
|
21
21
|
import {
|
|
22
22
|
createLogger,
|
|
23
23
|
init_logger
|
|
24
|
-
} from "./roy-agent-core-
|
|
24
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
25
25
|
import {
|
|
26
26
|
__legacyDecorateClassTS
|
|
27
27
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
28
28
|
|
|
29
|
-
//
|
|
29
|
+
// src/env/agent/agent-component.ts
|
|
30
30
|
init_logger();
|
|
31
31
|
import { z } from "zod";
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// src/env/agent/agent-config-registration.ts
|
|
34
34
|
var AGENT_DEFAULTS = {
|
|
35
35
|
"agent.defaultAgent.maxIterations": 200,
|
|
36
36
|
"agent.defaultAgent.temperature": 0,
|
|
@@ -56,7 +56,7 @@ var AGENT_CONFIG_REGISTRATION = {
|
|
|
56
56
|
]
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
//
|
|
59
|
+
// src/env/agent/agent-component.ts
|
|
60
60
|
init_decorator();
|
|
61
61
|
init_workflow_hil();
|
|
62
62
|
var logger = createLogger("agent:component");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/env/skill/types.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var SkillToolSchema = z.object({
|
|
4
4
|
skill: z.string().describe("Skill name to load")
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// src/env/skill/tool/skill-tool.ts
|
|
8
8
|
function buildSkillDescription(items) {
|
|
9
9
|
const lines = [
|
|
10
10
|
"Load a skill by name. Available skills:",
|
|
@@ -5,10 +5,10 @@ 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-
|
|
11
|
-
import"./roy-agent-core-
|
|
8
|
+
} from "./roy-agent-core-37e4tep3.js";
|
|
9
|
+
import"./roy-agent-core-j3wc4465.js";
|
|
10
|
+
import"./roy-agent-core-fv32jaa8.js";
|
|
11
|
+
import"./roy-agent-core-bncgx3gb.js";
|
|
12
12
|
import"./roy-agent-core-fs0mn2jk.js";
|
|
13
13
|
export {
|
|
14
14
|
resetDatabase,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__esm
|
|
3
3
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// src/env/workflow/utils/session-recovery.ts
|
|
6
6
|
function inferNextNode(messages, definition) {
|
|
7
7
|
if (messages.length === 0) {
|
|
8
8
|
return { type: "entry_node", nodeId: definition.entryNode };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger,
|
|
3
3
|
init_logger
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
7
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
8
8
|
|
|
9
|
-
//
|
|
9
|
+
// src/env/memory/plugin/memory-manager.ts
|
|
10
10
|
init_logger();
|
|
11
11
|
var logger = createLogger("MemoryManagerV3");
|
|
12
12
|
function generateTaskId() {
|
|
@@ -116,12 +116,12 @@ class MemoryManager {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
//
|
|
119
|
+
// src/env/memory/plugin/types.ts
|
|
120
120
|
var DEFAULT_MEMORY_PLUGIN_CONFIG = {
|
|
121
121
|
enabled: true
|
|
122
122
|
};
|
|
123
123
|
|
|
124
|
-
//
|
|
124
|
+
// src/env/memory/plugin/memory-plugin.ts
|
|
125
125
|
init_logger();
|
|
126
126
|
import path from "path";
|
|
127
127
|
import os from "os";
|
|
@@ -197,7 +197,7 @@ class MemoryPlugin {
|
|
|
197
197
|
function createMemoryPlugin(baseDir, config) {
|
|
198
198
|
return new MemoryPlugin(baseDir, config);
|
|
199
199
|
}
|
|
200
|
-
//
|
|
200
|
+
// src/env/memory/plugin/recall-memory.ts
|
|
201
201
|
import fs from "fs/promises";
|
|
202
202
|
import path2 from "path";
|
|
203
203
|
async function recallMemory(memoryPaths) {
|
|
@@ -225,7 +225,7 @@ ${content}`);
|
|
|
225
225
|
|
|
226
226
|
`);
|
|
227
227
|
}
|
|
228
|
-
//
|
|
228
|
+
// src/env/memory/plugin/memory-agent.ts
|
|
229
229
|
var PROJECT_MEMORY_AGENT_PROMPT = `你是项目级 Memory Agent,负责整理和更新当前项目的记忆。
|
|
230
230
|
|
|
231
231
|
## 你的职责
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHook
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-2dhd60aw.js";
|
|
4
4
|
import {
|
|
5
5
|
HookManager
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-gmnkza34.js";
|
|
7
7
|
|
|
8
|
-
//
|
|
8
|
+
// src/env/component.ts
|
|
9
9
|
class BaseComponent {
|
|
10
10
|
_status = "created";
|
|
11
11
|
_enabled = true;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WorkflowRepository,
|
|
3
|
+
rowToWorkflow
|
|
4
|
+
} from "./roy-agent-core-7n436rb4.js";
|
|
5
|
+
import"./roy-agent-core-37e4tep3.js";
|
|
6
|
+
import"./roy-agent-core-rvxg1wps.js";
|
|
7
|
+
import"./roy-agent-core-j3wc4465.js";
|
|
8
|
+
import"./roy-agent-core-fv32jaa8.js";
|
|
9
|
+
import"./roy-agent-core-bncgx3gb.js";
|
|
10
|
+
import"./roy-agent-core-fs0mn2jk.js";
|
|
11
|
+
export {
|
|
12
|
+
rowToWorkflow,
|
|
13
|
+
WorkflowRepository
|
|
14
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/env/debug/formatters/trace-formatter.ts
|
|
2
2
|
class TraceFormatter {
|
|
3
3
|
formatEntry(entry, options = {}) {
|
|
4
4
|
const { pretty = false } = options;
|
|
@@ -135,7 +135,7 @@ class TraceFormatter {
|
|
|
135
135
|
return summary;
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
//
|
|
138
|
+
// src/env/debug/formatters/tree-formatter.ts
|
|
139
139
|
var Colors = {
|
|
140
140
|
reset: "\x1B[0m",
|
|
141
141
|
bold: "\x1B[1m",
|
|
@@ -314,7 +314,7 @@ class TreeFormatter {
|
|
|
314
314
|
return lines;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
//
|
|
317
|
+
// src/env/debug/formatters/repl-formatter.ts
|
|
318
318
|
class ReplFormatter {
|
|
319
319
|
context = {};
|
|
320
320
|
history = [];
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__export
|
|
4
4
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// src/env/session/search-query-parser.ts
|
|
7
7
|
var exports_search_query_parser = {};
|
|
8
8
|
__export(exports_search_query_parser, {
|
|
9
9
|
parseSearchQuery: () => parseSearchQuery,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AskUserError,
|
|
3
3
|
init_workflow_hil
|
|
4
|
-
} from "./roy-agent-core-
|
|
4
|
+
} from "./roy-agent-core-e25xkv53.js";
|
|
5
5
|
import {
|
|
6
6
|
__esm,
|
|
7
7
|
__require
|
|
8
8
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
9
9
|
|
|
10
|
-
//
|
|
10
|
+
// src/env/workflow/types/workflow.ts
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
async function getYamlParser() {
|
|
13
13
|
if (!yamlParser) {
|
|
@@ -105,7 +105,7 @@ var init_workflow = __esm(() => {
|
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
//
|
|
108
|
+
// src/env/workflow/types/workflow-message.ts
|
|
109
109
|
import { z as z2 } from "zod";
|
|
110
110
|
var WorkflowMessageRoleSchema;
|
|
111
111
|
var init_workflow_message = __esm(() => {
|
|
@@ -118,7 +118,7 @@ var init_workflow_message = __esm(() => {
|
|
|
118
118
|
]);
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
//
|
|
121
|
+
// src/env/workflow/types/workflow-session.ts
|
|
122
122
|
function isWorkflowSessionMetadata(metadata) {
|
|
123
123
|
if (typeof metadata !== "object" || metadata === null || !("type" in metadata) || metadata.type !== "workflow") {
|
|
124
124
|
return false;
|
|
@@ -144,10 +144,10 @@ function getWorkflowSessionStatus(metadata) {
|
|
|
144
144
|
}
|
|
145
145
|
var init_workflow_session = () => {};
|
|
146
146
|
|
|
147
|
-
//
|
|
147
|
+
// src/env/workflow/types/context.ts
|
|
148
148
|
var init_context = () => {};
|
|
149
149
|
|
|
150
|
-
//
|
|
150
|
+
// src/env/workflow/types/event.ts
|
|
151
151
|
import { z as z3 } from "zod";
|
|
152
152
|
function createWorkflowEvent(type, runId, data) {
|
|
153
153
|
return {
|
|
@@ -294,7 +294,7 @@ var init_event = __esm(() => {
|
|
|
294
294
|
]);
|
|
295
295
|
});
|
|
296
296
|
|
|
297
|
-
//
|
|
297
|
+
// src/env/workflow/types/run.ts
|
|
298
298
|
import { z as z4 } from "zod";
|
|
299
299
|
function createNodeExecutionContext(params) {
|
|
300
300
|
return {
|
|
@@ -326,7 +326,7 @@ var init_run = __esm(() => {
|
|
|
326
326
|
]);
|
|
327
327
|
});
|
|
328
328
|
|
|
329
|
-
//
|
|
329
|
+
// src/env/workflow/types/index.ts
|
|
330
330
|
var init_types = __esm(() => {
|
|
331
331
|
init_run();
|
|
332
332
|
init_workflow();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/env/task/tools/operation/operation-types.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var ActionTypeEnum = z.enum([
|
|
4
4
|
"create",
|
|
@@ -35,7 +35,7 @@ var DeleteOperationToolSchema = z.object({
|
|
|
35
35
|
operation_id: z.number().describe("Operation ID")
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
//
|
|
38
|
+
// src/env/task/tools/operation/create-tool.ts
|
|
39
39
|
function createOperationTool(taskComponent) {
|
|
40
40
|
return {
|
|
41
41
|
name: "task_operation_create",
|
|
@@ -74,7 +74,7 @@ function createOperationTool(taskComponent) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
//
|
|
77
|
+
// src/env/task/tools/operation/get-tool.ts
|
|
78
78
|
function getOperationTool(taskComponent) {
|
|
79
79
|
return {
|
|
80
80
|
name: "task_operation_get",
|
|
@@ -108,7 +108,7 @@ function getOperationTool(taskComponent) {
|
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
//
|
|
111
|
+
// src/env/task/tools/operation/list-tool.ts
|
|
112
112
|
function listOperationsTool(taskComponent) {
|
|
113
113
|
return {
|
|
114
114
|
name: "task_operation_list",
|
|
@@ -139,7 +139,7 @@ function listOperationsTool(taskComponent) {
|
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
//
|
|
142
|
+
// src/env/task/tools/operation/update-tool.ts
|
|
143
143
|
function updateOperationTool(taskComponent) {
|
|
144
144
|
return {
|
|
145
145
|
name: "task_operation_update",
|
|
@@ -176,7 +176,7 @@ function updateOperationTool(taskComponent) {
|
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
//
|
|
179
|
+
// src/env/task/tools/operation/delete-tool.ts
|
|
180
180
|
function deleteOperationTool(taskComponent) {
|
|
181
181
|
return {
|
|
182
182
|
name: "task_operation_delete",
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_decorator
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-35x0wrtt.js";
|
|
4
4
|
import {
|
|
5
5
|
envKeyToConfigKey
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-qxhq8ven.js";
|
|
7
7
|
import {
|
|
8
8
|
BaseComponent
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-rbetrphj.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger,
|
|
13
13
|
setConfigComponent,
|
|
14
14
|
setQuietMode
|
|
15
|
-
} from "./roy-agent-core-
|
|
15
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
16
16
|
import {
|
|
17
17
|
getTracerProvider,
|
|
18
18
|
init_propagation,
|
|
19
19
|
init_tracer_provider,
|
|
20
20
|
init_types,
|
|
21
21
|
propagation
|
|
22
|
-
} from "./roy-agent-core-
|
|
22
|
+
} from "./roy-agent-core-fv32jaa8.js";
|
|
23
23
|
import {
|
|
24
24
|
SQLiteSpanStorage,
|
|
25
25
|
init_span_storage
|
|
26
|
-
} from "./roy-agent-core-
|
|
26
|
+
} from "./roy-agent-core-bncgx3gb.js";
|
|
27
27
|
import {
|
|
28
28
|
__require
|
|
29
29
|
} from "./roy-agent-core-fs0mn2jk.js";
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// src/env/log-trace/index.ts
|
|
32
32
|
init_types();
|
|
33
33
|
init_span_storage();
|
|
34
34
|
|
|
35
|
-
//
|
|
35
|
+
// src/env/log-trace/log-trace-component.ts
|
|
36
36
|
init_logger();
|
|
37
37
|
init_tracer_provider();
|
|
38
38
|
init_span_storage();
|
|
39
39
|
import { z } from "zod";
|
|
40
40
|
import { join } from "path";
|
|
41
41
|
|
|
42
|
-
//
|
|
42
|
+
// src/env/log-trace/trace-context.ts
|
|
43
43
|
import { AsyncLocalStorage } from "async_hooks";
|
|
44
44
|
var contextStore = new AsyncLocalStorage;
|
|
45
45
|
function createLightweightContext() {
|
|
@@ -138,7 +138,7 @@ function initTraceContext(options) {
|
|
|
138
138
|
return traceContextImpl;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
//
|
|
141
|
+
// src/env/log-trace/log-trace-config-registration.ts
|
|
142
142
|
var LOG_TRACE_DEFAULTS = {
|
|
143
143
|
"log-trace.logging.enabled": true,
|
|
144
144
|
"log-trace.logging.level": "info",
|
|
@@ -162,7 +162,7 @@ var LOG_TRACE_CONFIG_REGISTRATION = {
|
|
|
162
162
|
]
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
//
|
|
165
|
+
// src/env/log-trace/log-trace-component.ts
|
|
166
166
|
function getDefaultDataDir() {
|
|
167
167
|
try {
|
|
168
168
|
const xdg = __require("xdg-basedir");
|
|
@@ -379,11 +379,11 @@ class LogTraceComponent extends BaseComponent {
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
//
|
|
382
|
+
// src/env/log-trace/index.ts
|
|
383
383
|
init_tracer_provider();
|
|
384
384
|
init_propagation();
|
|
385
385
|
|
|
386
|
-
//
|
|
386
|
+
// src/env/log-trace/opentelemetry/propagation-env.ts
|
|
387
387
|
init_propagation();
|
|
388
388
|
init_tracer_provider();
|
|
389
389
|
function injectToEnv(env = {}) {
|
|
@@ -412,7 +412,7 @@ function getTraceparentHeader() {
|
|
|
412
412
|
return propagation.getTraceparentHeader();
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
//
|
|
415
|
+
// src/env/log-trace/index.ts
|
|
416
416
|
init_logger();
|
|
417
417
|
init_decorator();
|
|
418
418
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
envKeyToConfigKey
|
|
3
|
-
} from "./roy-agent-core-
|
|
3
|
+
} from "./roy-agent-core-qxhq8ven.js";
|
|
4
4
|
import {
|
|
5
5
|
BaseComponent
|
|
6
|
-
} from "./roy-agent-core-
|
|
6
|
+
} from "./roy-agent-core-rbetrphj.js";
|
|
7
7
|
import {
|
|
8
8
|
createMemoryTools
|
|
9
|
-
} from "./roy-agent-core-
|
|
9
|
+
} from "./roy-agent-core-g1s2h0e5.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
init_logger
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-j3wc4465.js";
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// src/env/memory/types.ts
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
var RecordMemorySchema = z.object({
|
|
18
18
|
scope: z.enum(["project", "global"]).describe("作用域: project/global"),
|
|
@@ -23,7 +23,7 @@ var RecordMemorySchema = z.object({
|
|
|
23
23
|
var RecallMemorySchema = z.object({
|
|
24
24
|
scope: z.enum(["project", "global"]).optional().describe("作用域(可选,不传则读取所有)")
|
|
25
25
|
});
|
|
26
|
-
//
|
|
26
|
+
// src/env/memory/memory-config.ts
|
|
27
27
|
import path from "path";
|
|
28
28
|
import os from "os";
|
|
29
29
|
var DEFAULT_MEMORY_CONFIG = {
|
|
@@ -48,10 +48,10 @@ var SOURCE_PRIORITY = {
|
|
|
48
48
|
function getSourcePriority(source) {
|
|
49
49
|
return SOURCE_PRIORITY[source] ?? 0;
|
|
50
50
|
}
|
|
51
|
-
//
|
|
51
|
+
// src/env/memory/memory-component.ts
|
|
52
52
|
init_logger();
|
|
53
53
|
|
|
54
|
-
//
|
|
54
|
+
// src/env/memory/memory-config-registration.ts
|
|
55
55
|
import path2 from "path";
|
|
56
56
|
import os2 from "os";
|
|
57
57
|
var MEMORY_DEFAULTS = {
|
|
@@ -78,7 +78,7 @@ var MEMORY_CONFIG_REGISTRATION = {
|
|
|
78
78
|
]
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
//
|
|
81
|
+
// src/env/memory/memory-component.ts
|
|
82
82
|
import path3 from "path";
|
|
83
83
|
import fs from "fs/promises";
|
|
84
84
|
var logger = createLogger("memory");
|