@ai-setting/roy-agent-core 1.4.13 → 1.4.14
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/index.js +32 -0
- package/dist/packages/core/src/env/agent/index.js +24 -0
- package/dist/packages/core/src/env/commands/index.js +14 -0
- package/dist/packages/core/src/env/debug/formatters/index.js +11 -0
- package/dist/packages/core/src/env/debug/index.js +26 -0
- package/dist/packages/core/src/env/hook/index.js +29 -0
- package/dist/packages/core/src/env/index.js +81 -0
- package/dist/packages/core/src/env/llm/index.js +40 -0
- package/dist/packages/core/src/env/log-trace/index.js +83 -0
- package/dist/packages/core/src/env/mcp/index.js +39 -0
- package/dist/packages/core/src/env/mcp/tool/index.js +14 -0
- package/dist/packages/core/src/env/memory/built-in/index.js +11 -0
- package/dist/packages/core/src/env/memory/index.js +56 -0
- package/dist/packages/core/src/env/memory/plugin/index.js +36 -0
- package/dist/packages/core/src/env/prompt/index.js +20 -0
- package/dist/packages/core/src/env/session/index.js +25 -0
- package/dist/packages/core/src/env/session/storage/index.js +18 -0
- package/dist/packages/core/src/env/skill/index.js +34 -0
- package/dist/packages/core/src/env/skill/tool/index.js +9 -0
- package/dist/packages/core/src/env/task/delegate/index.js +18 -0
- package/dist/packages/core/src/env/task/hooks/index.js +7 -0
- package/dist/packages/core/src/env/task/index.js +30 -0
- package/dist/packages/core/src/env/task/plugins/index.js +23 -0
- package/dist/packages/core/src/env/task/storage/index.js +14 -0
- package/dist/packages/core/src/env/task/tools/index.js +17 -0
- package/dist/packages/core/src/env/task/tools/operation/index.js +15 -0
- package/dist/{shared/chunk-1d4rwms4.js → packages/core/src/env/tool/built-in/index.js} +4 -4
- package/dist/packages/core/src/env/tool/index.js +39 -0
- package/dist/packages/core/src/env/workflow/decorators/index.js +27 -0
- package/dist/packages/core/src/env/workflow/engine/index.js +28 -0
- package/dist/packages/core/src/env/workflow/index.js +132 -0
- package/dist/packages/core/src/env/workflow/nodes/index.js +19 -0
- package/dist/packages/core/src/env/workflow/service/index.js +13 -0
- package/dist/packages/core/src/env/workflow/storage/index.js +27 -0
- package/dist/packages/core/src/env/workflow/tools/index.js +159 -0
- package/dist/packages/core/src/env/workflow/types/index.js +94 -0
- package/dist/packages/core/src/env/workflow/utils/index.js +637 -0
- package/dist/packages/core/src/index.js +398 -0
- package/dist/shared/@ai-setting/roy-agent-core-04fm8177.js +393 -0
- package/dist/shared/@ai-setting/roy-agent-core-04qgbjbe.js +172 -0
- package/dist/shared/@ai-setting/roy-agent-core-084qqd7t.js +11 -0
- package/dist/shared/@ai-setting/roy-agent-core-0gekht4e.js +1130 -0
- package/dist/shared/@ai-setting/roy-agent-core-0hdry23r.js +419 -0
- package/dist/shared/{chunk-ze20rksg.js → @ai-setting/roy-agent-core-0sgn3de4.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-12x57kf1.js +286 -0
- package/dist/shared/@ai-setting/roy-agent-core-1f3xrrm6.js +393 -0
- package/dist/shared/{chunk-q9j99fsm.js → @ai-setting/roy-agent-core-1k28kg7h.js} +6 -6
- package/dist/shared/{chunk-2b5kbhx3.js → @ai-setting/roy-agent-core-1z1zv5g8.js} +9 -117
- package/dist/shared/@ai-setting/roy-agent-core-2hqxnaf3.js +851 -0
- package/dist/shared/@ai-setting/roy-agent-core-3dfq8awb.js +587 -0
- package/dist/shared/@ai-setting/roy-agent-core-3takar0s.js +93 -0
- package/dist/shared/@ai-setting/roy-agent-core-3tnb2005.js +117 -0
- package/dist/shared/@ai-setting/roy-agent-core-4vmcvkav.js +14 -0
- package/dist/shared/{chunk-25x2pdtp.js → @ai-setting/roy-agent-core-4ws8atva.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-5fbp24se.js +603 -0
- package/dist/shared/@ai-setting/roy-agent-core-5my94ywp.js +66 -0
- package/dist/shared/{chunk-rncy3rtd.js → @ai-setting/roy-agent-core-6j0zcmwk.js} +128 -1122
- package/dist/shared/@ai-setting/roy-agent-core-6w4pmxc7.js +266 -0
- package/dist/shared/{chunk-yqmx37vm.js → @ai-setting/roy-agent-core-7vrk3add.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-8dvbn7tw.js +64 -0
- package/dist/shared/@ai-setting/roy-agent-core-8mbmrwzs.js +171 -0
- package/dist/shared/@ai-setting/roy-agent-core-8wzz66qe.js +620 -0
- package/dist/shared/@ai-setting/roy-agent-core-9ykq91jc.js +762 -0
- package/dist/shared/@ai-setting/roy-agent-core-dde19zke.js +1305 -0
- package/dist/shared/@ai-setting/roy-agent-core-f7g67gce.js +913 -0
- package/dist/shared/@ai-setting/roy-agent-core-fq5mtxsy.js +341 -0
- package/dist/shared/@ai-setting/roy-agent-core-fvd9g6k8.js +1205 -0
- package/dist/shared/@ai-setting/roy-agent-core-gv1hrn3x.js +378 -0
- package/dist/shared/@ai-setting/roy-agent-core-gy0wp5h7.js +213 -0
- package/dist/shared/{chunk-mf5xqbdh.js → @ai-setting/roy-agent-core-hyza1gm7.js} +3 -2
- package/dist/shared/{chunk-1qwabsm0.js → @ai-setting/roy-agent-core-j8zx62zr.js} +2 -2
- package/dist/shared/@ai-setting/roy-agent-core-jb2exr0d.js +442 -0
- package/dist/shared/@ai-setting/roy-agent-core-jv3b7v9w.js +57 -0
- package/dist/shared/@ai-setting/roy-agent-core-k1rxf9ya.js +513 -0
- package/dist/shared/@ai-setting/roy-agent-core-kydc9nwb.js +60 -0
- package/dist/shared/@ai-setting/roy-agent-core-m2x48hw6.js +97 -0
- package/dist/shared/@ai-setting/roy-agent-core-m6y668cc.js +377 -0
- package/dist/shared/{chunk-1aakcfp1.js → @ai-setting/roy-agent-core-nczzf0ms.js} +3 -3
- package/dist/shared/@ai-setting/roy-agent-core-nfj6knp5.js +36 -0
- package/dist/shared/@ai-setting/roy-agent-core-ntrp979d.js +204 -0
- package/dist/shared/@ai-setting/roy-agent-core-pd7g8z5v.js +1387 -0
- package/dist/shared/@ai-setting/roy-agent-core-pzk1syce.js +14 -0
- package/dist/shared/@ai-setting/roy-agent-core-q50tg9m2.js +862 -0
- package/dist/shared/{chunk-9qzt1v1p.js → @ai-setting/roy-agent-core-qg9tcaph.js} +3 -2
- package/dist/shared/{chunk-91bas8w5.js → @ai-setting/roy-agent-core-qhyerewk.js} +5 -5
- package/dist/shared/{chunk-1pf5mfgd.js → @ai-setting/roy-agent-core-qxybm159.js} +3 -3
- package/dist/shared/{chunk-g6j5n3gv.js → @ai-setting/roy-agent-core-rh9dpkpw.js} +10 -10
- package/dist/shared/{chunk-0q6s9wm6.js → @ai-setting/roy-agent-core-rr9p1g43.js} +7 -51
- package/dist/shared/@ai-setting/roy-agent-core-sbzvpfn7.js +284 -0
- package/dist/shared/@ai-setting/roy-agent-core-t22nqt4d.js +788 -0
- package/dist/shared/{chunk-t1rh6jtm.js → @ai-setting/roy-agent-core-tkr5ynkh.js} +8 -13
- package/dist/shared/@ai-setting/roy-agent-core-v4aabsf0.js +303 -0
- package/dist/shared/@ai-setting/roy-agent-core-w75rafhy.js +202 -0
- package/dist/shared/@ai-setting/roy-agent-core-w76hqkmg.js +584 -0
- package/dist/shared/@ai-setting/roy-agent-core-yfbgwes2.js +408 -0
- package/dist/shared/{chunk-a9qmy3sc.js → @ai-setting/roy-agent-core-yn761yve.js} +7 -4
- package/dist/shared/@ai-setting/roy-agent-core-yrzmn4m1.js +492 -0
- package/dist/shared/@ai-setting/roy-agent-core-yt8wdh2w.js +206 -0
- package/package.json +8 -7
- package/dist/index.d.ts +0 -7825
- package/dist/index.js +0 -16551
- package/dist/shared/chunk-hs7tbmje.js +0 -24
- /package/dist/shared/{chunk-wbkh7wat.js → @ai-setting/roy-agent-core-fs0mn2jk.js} +0 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ConfigComponent
|
|
3
|
+
} from "../../../shared/@ai-setting/roy-agent-core-fvd9g6k8.js";
|
|
4
|
+
import {
|
|
5
|
+
PromptComponent,
|
|
6
|
+
getBuiltInPrompt,
|
|
7
|
+
getBuiltInPromptNames
|
|
8
|
+
} from "../../../shared/@ai-setting/roy-agent-core-f7g67gce.js";
|
|
9
|
+
import {
|
|
10
|
+
TaskPlugin,
|
|
11
|
+
TaskTagPlugin
|
|
12
|
+
} from "../../../shared/@ai-setting/roy-agent-core-04fm8177.js";
|
|
13
|
+
import {
|
|
14
|
+
DebugComponent
|
|
15
|
+
} from "../../../shared/@ai-setting/roy-agent-core-q50tg9m2.js";
|
|
16
|
+
import {
|
|
17
|
+
ReplFormatter,
|
|
18
|
+
TraceFormatter,
|
|
19
|
+
TreeFormatter
|
|
20
|
+
} from "../../../shared/@ai-setting/roy-agent-core-w76hqkmg.js";
|
|
21
|
+
import {
|
|
22
|
+
SessionComponent
|
|
23
|
+
} from "../../../shared/@ai-setting/roy-agent-core-9ykq91jc.js";
|
|
24
|
+
import"../../../shared/@ai-setting/roy-agent-core-0sgn3de4.js";
|
|
25
|
+
import {
|
|
26
|
+
MemorySessionStore
|
|
27
|
+
} from "../../../shared/@ai-setting/roy-agent-core-2hqxnaf3.js";
|
|
28
|
+
import {
|
|
29
|
+
LLMComponent,
|
|
30
|
+
LLMConfigSchema,
|
|
31
|
+
LLMDefaultConfigSchema,
|
|
32
|
+
ModelLimitsSchema,
|
|
33
|
+
ProviderCapabilitiesSchema,
|
|
34
|
+
ProviderConfigSchema,
|
|
35
|
+
createInvokeConfig,
|
|
36
|
+
invoke,
|
|
37
|
+
invokeNonStream,
|
|
38
|
+
parseModelString
|
|
39
|
+
} from "../../../shared/@ai-setting/roy-agent-core-dde19zke.js";
|
|
40
|
+
import {
|
|
41
|
+
SkillComponent
|
|
42
|
+
} from "../../../shared/@ai-setting/roy-agent-core-m6y668cc.js";
|
|
43
|
+
import"../../../shared/@ai-setting/roy-agent-core-kydc9nwb.js";
|
|
44
|
+
import {
|
|
45
|
+
ToolComponent,
|
|
46
|
+
ToolRegistry,
|
|
47
|
+
ToolValidator
|
|
48
|
+
} from "../../../shared/@ai-setting/roy-agent-core-jb2exr0d.js";
|
|
49
|
+
import {
|
|
50
|
+
bashTool,
|
|
51
|
+
editFileTool,
|
|
52
|
+
getAllBuiltInTools,
|
|
53
|
+
getBuiltInTool,
|
|
54
|
+
globTool,
|
|
55
|
+
grepTool,
|
|
56
|
+
readFileTool,
|
|
57
|
+
writeFileTool
|
|
58
|
+
} from "../../../shared/@ai-setting/roy-agent-core-rh9dpkpw.js";
|
|
59
|
+
import {
|
|
60
|
+
BaseEnvironment,
|
|
61
|
+
EventSourceAgentHandler,
|
|
62
|
+
EventSourceComponent,
|
|
63
|
+
generateDescendingId,
|
|
64
|
+
generateId
|
|
65
|
+
} from "../../../shared/@ai-setting/roy-agent-core-pd7g8z5v.js";
|
|
66
|
+
import {
|
|
67
|
+
McpComponent
|
|
68
|
+
} from "../../../shared/@ai-setting/roy-agent-core-3dfq8awb.js";
|
|
69
|
+
import"../../../shared/@ai-setting/roy-agent-core-v4aabsf0.js";
|
|
70
|
+
import {
|
|
71
|
+
XDG_PATHS,
|
|
72
|
+
getXDGPath,
|
|
73
|
+
getXDGPaths
|
|
74
|
+
} from "../../../shared/@ai-setting/roy-agent-core-5my94ywp.js";
|
|
75
|
+
import {
|
|
76
|
+
TaskComponent
|
|
77
|
+
} from "../../../shared/@ai-setting/roy-agent-core-k1rxf9ya.js";
|
|
78
|
+
import"../../../shared/@ai-setting/roy-agent-core-8wzz66qe.js";
|
|
79
|
+
import"../../../shared/@ai-setting/roy-agent-core-12x57kf1.js";
|
|
80
|
+
import"../../../shared/@ai-setting/roy-agent-core-gy0wp5h7.js";
|
|
81
|
+
import"../../../shared/@ai-setting/roy-agent-core-t22nqt4d.js";
|
|
82
|
+
import {
|
|
83
|
+
TaskHookPoints
|
|
84
|
+
} from "../../../shared/@ai-setting/roy-agent-core-pzk1syce.js";
|
|
85
|
+
import {
|
|
86
|
+
WorkflowComponent
|
|
87
|
+
} from "../../../shared/@ai-setting/roy-agent-core-6w4pmxc7.js";
|
|
88
|
+
import {
|
|
89
|
+
init_node_registry_helper,
|
|
90
|
+
registerDecoratorNodeType
|
|
91
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1z1zv5g8.js";
|
|
92
|
+
import"../../../shared/@ai-setting/roy-agent-core-nfj6knp5.js";
|
|
93
|
+
import"../../../shared/@ai-setting/roy-agent-core-6j0zcmwk.js";
|
|
94
|
+
import"../../../shared/@ai-setting/roy-agent-core-rr9p1g43.js";
|
|
95
|
+
import"../../../shared/@ai-setting/roy-agent-core-5fbp24se.js";
|
|
96
|
+
import"../../../shared/@ai-setting/roy-agent-core-fq5mtxsy.js";
|
|
97
|
+
import {
|
|
98
|
+
Edge,
|
|
99
|
+
NodeAs,
|
|
100
|
+
Workflow,
|
|
101
|
+
WorkflowEdges,
|
|
102
|
+
createWorkflowFromClass
|
|
103
|
+
} from "../../../shared/@ai-setting/roy-agent-core-sbzvpfn7.js";
|
|
104
|
+
import"../../../shared/@ai-setting/roy-agent-core-3tnb2005.js";
|
|
105
|
+
import"../../../shared/@ai-setting/roy-agent-core-yt8wdh2w.js";
|
|
106
|
+
import {
|
|
107
|
+
LogTraceComponent,
|
|
108
|
+
LogTraceConfigSchema
|
|
109
|
+
} from "../../../shared/@ai-setting/roy-agent-core-0hdry23r.js";
|
|
110
|
+
import {
|
|
111
|
+
AgentComponent,
|
|
112
|
+
AgentComponentConfigSchema
|
|
113
|
+
} from "../../../shared/@ai-setting/roy-agent-core-0gekht4e.js";
|
|
114
|
+
import"../../../shared/@ai-setting/roy-agent-core-gv1hrn3x.js";
|
|
115
|
+
import"../../../shared/@ai-setting/roy-agent-core-ntrp979d.js";
|
|
116
|
+
import {
|
|
117
|
+
AgentError,
|
|
118
|
+
ComponentError,
|
|
119
|
+
ContextError,
|
|
120
|
+
ErrorCodes,
|
|
121
|
+
LLMError,
|
|
122
|
+
RoyError,
|
|
123
|
+
ToolError,
|
|
124
|
+
getErrorCode,
|
|
125
|
+
isRoyError
|
|
126
|
+
} from "../../../shared/@ai-setting/roy-agent-core-3takar0s.js";
|
|
127
|
+
import {
|
|
128
|
+
AskUserError,
|
|
129
|
+
init_workflow_hil
|
|
130
|
+
} from "../../../shared/@ai-setting/roy-agent-core-8dvbn7tw.js";
|
|
131
|
+
import {
|
|
132
|
+
Traced,
|
|
133
|
+
TracedAs,
|
|
134
|
+
TracedLightweight,
|
|
135
|
+
wrapFunction
|
|
136
|
+
} from "../../../shared/@ai-setting/roy-agent-core-04qgbjbe.js";
|
|
137
|
+
import {
|
|
138
|
+
CommandsComponent
|
|
139
|
+
} from "../../../shared/@ai-setting/roy-agent-core-yrzmn4m1.js";
|
|
140
|
+
import {
|
|
141
|
+
MemoryComponent
|
|
142
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1f3xrrm6.js";
|
|
143
|
+
import"../../../shared/@ai-setting/roy-agent-core-jv3b7v9w.js";
|
|
144
|
+
import {
|
|
145
|
+
BaseComponent
|
|
146
|
+
} from "../../../shared/@ai-setting/roy-agent-core-m2x48hw6.js";
|
|
147
|
+
import {
|
|
148
|
+
createHook,
|
|
149
|
+
createPriorityHook
|
|
150
|
+
} from "../../../shared/@ai-setting/roy-agent-core-084qqd7t.js";
|
|
151
|
+
import {
|
|
152
|
+
HookManager,
|
|
153
|
+
globalHookManager
|
|
154
|
+
} from "../../../shared/@ai-setting/roy-agent-core-w75rafhy.js";
|
|
155
|
+
import"../../../shared/@ai-setting/roy-agent-core-8mbmrwzs.js";
|
|
156
|
+
import {
|
|
157
|
+
MemoryPlugin,
|
|
158
|
+
createMemoryPlugin
|
|
159
|
+
} from "../../../shared/@ai-setting/roy-agent-core-yfbgwes2.js";
|
|
160
|
+
import {
|
|
161
|
+
createLogger,
|
|
162
|
+
getLogDir,
|
|
163
|
+
getLogLevel,
|
|
164
|
+
getLogLevels,
|
|
165
|
+
isQuietMode,
|
|
166
|
+
setConfigComponent,
|
|
167
|
+
setLogDirOverride,
|
|
168
|
+
setQuietMode
|
|
169
|
+
} from "../../../shared/@ai-setting/roy-agent-core-yn761yve.js";
|
|
170
|
+
import {
|
|
171
|
+
OTelTracerProvider,
|
|
172
|
+
SpanKind,
|
|
173
|
+
SpanStatus,
|
|
174
|
+
getTracerProvider,
|
|
175
|
+
propagation,
|
|
176
|
+
resetTracerProvider
|
|
177
|
+
} from "../../../shared/@ai-setting/roy-agent-core-1k28kg7h.js";
|
|
178
|
+
import {
|
|
179
|
+
SQLiteSpanStorage
|
|
180
|
+
} from "../../../shared/@ai-setting/roy-agent-core-j8zx62zr.js";
|
|
181
|
+
import"../../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
182
|
+
// packages/core/src/env/memory/tools/memory-agent-tools.ts
|
|
183
|
+
import { z } from "zod";
|
|
184
|
+
var SearchSessionsSchema = z.object({
|
|
185
|
+
query: z.string().describe("搜索关键词"),
|
|
186
|
+
session_id: z.string().optional().describe("可选:限制特定 session"),
|
|
187
|
+
limit: z.number().optional().default(10).describe("返回数量限制")
|
|
188
|
+
});
|
|
189
|
+
var GetSessionSchema = z.object({
|
|
190
|
+
session_id: z.string().describe("Session ID")
|
|
191
|
+
});
|
|
192
|
+
var WriteMemorySchema = z.object({
|
|
193
|
+
scope: z.enum(["project", "global"]).describe("作用域"),
|
|
194
|
+
content: z.string().describe("新的记忆内容(Markdown 格式)")
|
|
195
|
+
});
|
|
196
|
+
function createMemoryAgentTools(deps) {
|
|
197
|
+
const searchSessions = {
|
|
198
|
+
name: "search_sessions",
|
|
199
|
+
description: "搜索会话历史,返回匹配的会话摘要列表",
|
|
200
|
+
parameters: SearchSessionsSchema,
|
|
201
|
+
execute: async (args, ctx) => {
|
|
202
|
+
try {
|
|
203
|
+
const params = SearchSessionsSchema.parse(args);
|
|
204
|
+
const results = await deps.sessionComponent.searchSessions(params.query, {
|
|
205
|
+
session_id: params.session_id,
|
|
206
|
+
limit: params.limit
|
|
207
|
+
});
|
|
208
|
+
return {
|
|
209
|
+
success: true,
|
|
210
|
+
output: JSON.stringify(results, null, 2),
|
|
211
|
+
metadata: {
|
|
212
|
+
execution_time_ms: 0,
|
|
213
|
+
count: results.length
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
} catch (error) {
|
|
217
|
+
return {
|
|
218
|
+
success: false,
|
|
219
|
+
output: "",
|
|
220
|
+
error: error instanceof Error ? error.message : String(error),
|
|
221
|
+
metadata: { execution_time_ms: 0 }
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
const getSession = {
|
|
227
|
+
name: "get_session",
|
|
228
|
+
description: "获取指定会话的完整内容",
|
|
229
|
+
parameters: GetSessionSchema,
|
|
230
|
+
execute: async (args, ctx) => {
|
|
231
|
+
try {
|
|
232
|
+
const params = GetSessionSchema.parse(args);
|
|
233
|
+
const session = await deps.sessionComponent.getSession(params.session_id);
|
|
234
|
+
if (!session) {
|
|
235
|
+
return {
|
|
236
|
+
success: false,
|
|
237
|
+
output: "",
|
|
238
|
+
error: `Session not found: ${params.session_id}`,
|
|
239
|
+
metadata: { execution_time_ms: 0 }
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
return {
|
|
243
|
+
success: true,
|
|
244
|
+
output: JSON.stringify(session, null, 2),
|
|
245
|
+
metadata: {
|
|
246
|
+
execution_time_ms: 0,
|
|
247
|
+
session_id: session.sessionId
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
} catch (error) {
|
|
251
|
+
return {
|
|
252
|
+
success: false,
|
|
253
|
+
output: "",
|
|
254
|
+
error: error instanceof Error ? error.message : String(error),
|
|
255
|
+
metadata: { execution_time_ms: 0 }
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
const writeMemory = {
|
|
261
|
+
name: "write_memory",
|
|
262
|
+
description: "写入记忆文件(覆盖模式)",
|
|
263
|
+
parameters: WriteMemorySchema,
|
|
264
|
+
execute: async (args, ctx) => {
|
|
265
|
+
try {
|
|
266
|
+
const params = WriteMemorySchema.parse(args);
|
|
267
|
+
await deps.memoryComponent.recordMemory({
|
|
268
|
+
mode: "overwrite",
|
|
269
|
+
content: params.content,
|
|
270
|
+
scope: params.scope
|
|
271
|
+
});
|
|
272
|
+
return {
|
|
273
|
+
success: true,
|
|
274
|
+
output: `Memory updated successfully (${params.scope})`,
|
|
275
|
+
metadata: {
|
|
276
|
+
execution_time_ms: 0,
|
|
277
|
+
scope: params.scope
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
} catch (error) {
|
|
281
|
+
return {
|
|
282
|
+
success: false,
|
|
283
|
+
output: "",
|
|
284
|
+
error: error instanceof Error ? error.message : String(error),
|
|
285
|
+
metadata: { execution_time_ms: 0 }
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
searchSessions,
|
|
292
|
+
getSession,
|
|
293
|
+
writeMemory,
|
|
294
|
+
bash: bashTool,
|
|
295
|
+
read_file: readFileTool
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// packages/core/src/index.ts
|
|
300
|
+
init_workflow_hil();
|
|
301
|
+
init_node_registry_helper();
|
|
302
|
+
export {
|
|
303
|
+
writeFileTool,
|
|
304
|
+
wrapFunction,
|
|
305
|
+
setQuietMode,
|
|
306
|
+
setConfigComponent as setLoggerConfigComponent,
|
|
307
|
+
setLogDirOverride,
|
|
308
|
+
resetTracerProvider,
|
|
309
|
+
registerDecoratorNodeType,
|
|
310
|
+
readFileTool,
|
|
311
|
+
propagation,
|
|
312
|
+
parseModelString,
|
|
313
|
+
isRoyError,
|
|
314
|
+
isQuietMode,
|
|
315
|
+
invokeNonStream,
|
|
316
|
+
invoke,
|
|
317
|
+
grepTool,
|
|
318
|
+
globalHookManager,
|
|
319
|
+
globTool,
|
|
320
|
+
getXDGPaths,
|
|
321
|
+
getXDGPath,
|
|
322
|
+
getTracerProvider,
|
|
323
|
+
getLogLevels,
|
|
324
|
+
getLogLevel,
|
|
325
|
+
getLogDir,
|
|
326
|
+
getErrorCode,
|
|
327
|
+
getBuiltInTool,
|
|
328
|
+
getBuiltInPromptNames,
|
|
329
|
+
getBuiltInPrompt,
|
|
330
|
+
getAllBuiltInTools,
|
|
331
|
+
generateId,
|
|
332
|
+
generateDescendingId,
|
|
333
|
+
editFileTool,
|
|
334
|
+
createWorkflowFromClass,
|
|
335
|
+
createPriorityHook,
|
|
336
|
+
createMemoryPlugin,
|
|
337
|
+
createMemoryAgentTools,
|
|
338
|
+
createLogger,
|
|
339
|
+
createInvokeConfig,
|
|
340
|
+
createHook,
|
|
341
|
+
bashTool,
|
|
342
|
+
XDG_PATHS,
|
|
343
|
+
WorkflowEdges,
|
|
344
|
+
WorkflowComponent,
|
|
345
|
+
Workflow,
|
|
346
|
+
TreeFormatter,
|
|
347
|
+
TracedLightweight,
|
|
348
|
+
TracedAs,
|
|
349
|
+
Traced,
|
|
350
|
+
TraceFormatter,
|
|
351
|
+
ToolValidator,
|
|
352
|
+
ToolRegistry,
|
|
353
|
+
ToolError,
|
|
354
|
+
ToolComponent,
|
|
355
|
+
TaskTagPlugin,
|
|
356
|
+
TaskPlugin,
|
|
357
|
+
TaskHookPoints,
|
|
358
|
+
TaskComponent,
|
|
359
|
+
SpanStatus,
|
|
360
|
+
SpanKind,
|
|
361
|
+
SkillComponent,
|
|
362
|
+
SessionComponent,
|
|
363
|
+
SQLiteSpanStorage,
|
|
364
|
+
RoyError,
|
|
365
|
+
ReplFormatter,
|
|
366
|
+
ProviderConfigSchema,
|
|
367
|
+
ProviderCapabilitiesSchema,
|
|
368
|
+
PromptComponent,
|
|
369
|
+
OTelTracerProvider,
|
|
370
|
+
NodeAs,
|
|
371
|
+
ModelLimitsSchema,
|
|
372
|
+
MemorySessionStore,
|
|
373
|
+
MemoryPlugin,
|
|
374
|
+
MemoryComponent,
|
|
375
|
+
McpComponent,
|
|
376
|
+
LogTraceConfigSchema,
|
|
377
|
+
LogTraceComponent,
|
|
378
|
+
LLMError,
|
|
379
|
+
LLMDefaultConfigSchema,
|
|
380
|
+
LLMConfigSchema,
|
|
381
|
+
LLMComponent,
|
|
382
|
+
HookManager,
|
|
383
|
+
EventSourceComponent,
|
|
384
|
+
EventSourceAgentHandler,
|
|
385
|
+
ErrorCodes,
|
|
386
|
+
Edge,
|
|
387
|
+
DebugComponent,
|
|
388
|
+
ContextError,
|
|
389
|
+
ConfigComponent,
|
|
390
|
+
ComponentError,
|
|
391
|
+
CommandsComponent,
|
|
392
|
+
BaseEnvironment,
|
|
393
|
+
BaseComponent,
|
|
394
|
+
AskUserError,
|
|
395
|
+
AgentError,
|
|
396
|
+
AgentComponentConfigSchema,
|
|
397
|
+
AgentComponent
|
|
398
|
+
};
|