@ai-setting/roy-agent-core 1.5.17-beta.1 → 1.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/env/event-source/index.js +41 -0
- package/dist/env/index.js +24 -10
- package/dist/env/log-trace/index.js +1 -1
- package/dist/env/prompt/index.js +1 -1
- package/dist/env/workflow/engine/index.js +1 -1
- package/dist/env/workflow/index.js +2 -2
- package/dist/index.js +35 -8
- package/dist/shared/@ai-setting/roy-agent-core-2grcjaad.js +0 -0
- package/dist/shared/@ai-setting/{roy-agent-core-xq8hhqb8.js → roy-agent-core-4wjywp3c.js} +4 -2
- package/dist/shared/@ai-setting/roy-agent-core-5ex3za0m.js +817 -0
- package/dist/shared/@ai-setting/roy-agent-core-8jxva565.js +19 -0
- package/dist/shared/@ai-setting/roy-agent-core-avq1x4t7.js +84 -0
- package/dist/shared/@ai-setting/{roy-agent-core-gq20wsgv.js → roy-agent-core-ffb9fq4v.js} +23 -2
- package/dist/shared/@ai-setting/roy-agent-core-j1sr5pk9.js +424 -0
- package/dist/shared/@ai-setting/{roy-agent-core-93zfb3r1.js → roy-agent-core-mrcxzpbg.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-rhmtwnw1.js → roy-agent-core-pw7cv1px.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-wrcy0h6z.js → roy-agent-core-ty94k28r.js} +1 -1
- package/package.json +8 -29
- package/dist/config/index.d.ts +0 -1250
- package/dist/env/agent/index.d.ts +0 -2279
- package/dist/env/commands/index.d.ts +0 -1131
- package/dist/env/debug/formatters/index.d.ts +0 -236
- package/dist/env/debug/index.d.ts +0 -1652
- package/dist/env/hook/index.d.ts +0 -279
- package/dist/env/index.d.ts +0 -3481
- package/dist/env/llm/index.d.ts +0 -1760
- package/dist/env/log-trace/index.d.ts +0 -1574
- package/dist/env/mcp/index.d.ts +0 -1331
- package/dist/env/mcp/tool/index.d.ts +0 -183
- package/dist/env/memory/built-in/index.d.ts +0 -232
- package/dist/env/memory/index.d.ts +0 -1799
- package/dist/env/memory/plugin/index.d.ts +0 -747
- package/dist/env/prompt/index.d.ts +0 -1164
- package/dist/env/session/index.d.ts +0 -1908
- package/dist/env/session/storage/index.d.ts +0 -564
- package/dist/env/skill/index.d.ts +0 -1266
- package/dist/env/skill/tool/index.d.ts +0 -193
- package/dist/env/task/delegate/index.d.ts +0 -1612
- package/dist/env/task/events/index.d.ts +0 -171
- package/dist/env/task/hooks/index.d.ts +0 -624
- package/dist/env/task/index.d.ts +0 -1553
- package/dist/env/task/plugins/index.d.ts +0 -466
- package/dist/env/task/storage/index.d.ts +0 -241
- package/dist/env/task/tools/index.d.ts +0 -1485
- package/dist/env/task/tools/operation/index.d.ts +0 -1484
- package/dist/env/tool/built-in/index.d.ts +0 -218
- package/dist/env/tool/index.d.ts +0 -1396
- package/dist/env/workflow/decorators/index.d.ts +0 -2161
- package/dist/env/workflow/engine/index.d.ts +0 -3453
- package/dist/env/workflow/index.d.ts +0 -3546
- package/dist/env/workflow/nodes/index.d.ts +0 -2092
- package/dist/env/workflow/service/index.d.ts +0 -227
- package/dist/env/workflow/storage/index.d.ts +0 -165
- package/dist/env/workflow/tools/index.d.ts +0 -416
- package/dist/env/workflow/types/index.d.ts +0 -2255
- package/dist/env/workflow/utils/index.d.ts +0 -2031
- package/dist/index.d.ts +0 -7858
- package/dist/shared/@ai-setting/roy-agent-core-gbqcyegm.js +0 -1387
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import"../../shared/@ai-setting/roy-agent-core-2grcjaad.js";
|
|
2
|
+
import {
|
|
3
|
+
EventSourceComponent,
|
|
4
|
+
builtInHandlers,
|
|
5
|
+
getBuiltInHandler,
|
|
6
|
+
larkCliHandler,
|
|
7
|
+
timerHandler,
|
|
8
|
+
websocketHandler
|
|
9
|
+
} from "../../shared/@ai-setting/roy-agent-core-5ex3za0m.js";
|
|
10
|
+
import {
|
|
11
|
+
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
12
|
+
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
13
|
+
EventSourceInitHooks,
|
|
14
|
+
getDefaultConfigForType,
|
|
15
|
+
isBuiltInEventSourceType,
|
|
16
|
+
isValidEventSourceType,
|
|
17
|
+
validateEventSourceConfig
|
|
18
|
+
} from "../../shared/@ai-setting/roy-agent-core-avq1x4t7.js";
|
|
19
|
+
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
20
|
+
import"../../shared/@ai-setting/roy-agent-core-kkbwepqb.js";
|
|
21
|
+
import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
|
22
|
+
import"../../shared/@ai-setting/roy-agent-core-gjq1yk68.js";
|
|
23
|
+
import"../../shared/@ai-setting/roy-agent-core-44hnfb02.js";
|
|
24
|
+
import"../../shared/@ai-setting/roy-agent-core-xs5rsgat.js";
|
|
25
|
+
import"../../shared/@ai-setting/roy-agent-core-psv4v63c.js";
|
|
26
|
+
import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
27
|
+
export {
|
|
28
|
+
websocketHandler,
|
|
29
|
+
validateEventSourceConfig,
|
|
30
|
+
timerHandler,
|
|
31
|
+
larkCliHandler,
|
|
32
|
+
isValidEventSourceType,
|
|
33
|
+
isBuiltInEventSourceType,
|
|
34
|
+
getDefaultConfigForType,
|
|
35
|
+
getBuiltInHandler,
|
|
36
|
+
builtInHandlers,
|
|
37
|
+
EventSourceInitHooks,
|
|
38
|
+
EventSourceComponent,
|
|
39
|
+
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
40
|
+
BUILT_IN_EVENT_SOURCE_TYPES
|
|
41
|
+
};
|
package/dist/env/index.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BaseEnvironment
|
|
3
|
-
|
|
4
|
-
EventSourceComponent,
|
|
5
|
-
getDefaultConfigForType,
|
|
6
|
-
isValidEventSourceType,
|
|
7
|
-
validateEventSourceConfig
|
|
8
|
-
} from "../shared/@ai-setting/roy-agent-core-gbqcyegm.js";
|
|
2
|
+
BaseEnvironment
|
|
3
|
+
} from "../shared/@ai-setting/roy-agent-core-j1sr5pk9.js";
|
|
9
4
|
import {
|
|
10
5
|
XDG_PATHS,
|
|
11
6
|
getXDGPath,
|
|
12
7
|
getXDGPaths
|
|
13
8
|
} from "../shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
9
|
+
import {
|
|
10
|
+
EventSourceComponent,
|
|
11
|
+
builtInHandlers,
|
|
12
|
+
larkCliHandler,
|
|
13
|
+
timerHandler,
|
|
14
|
+
websocketHandler
|
|
15
|
+
} from "../shared/@ai-setting/roy-agent-core-5ex3za0m.js";
|
|
16
|
+
import {
|
|
17
|
+
EventSourceInitHooks,
|
|
18
|
+
getDefaultConfigForType,
|
|
19
|
+
isBuiltInEventSourceType,
|
|
20
|
+
isValidEventSourceType,
|
|
21
|
+
validateEventSourceConfig
|
|
22
|
+
} from "../shared/@ai-setting/roy-agent-core-avq1x4t7.js";
|
|
14
23
|
import {
|
|
15
24
|
WorkflowComponent
|
|
16
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
25
|
+
} from "../shared/@ai-setting/roy-agent-core-pw7cv1px.js";
|
|
17
26
|
import"../shared/@ai-setting/roy-agent-core-0rtxwr28.js";
|
|
18
|
-
import"../shared/@ai-setting/roy-agent-core-
|
|
27
|
+
import"../shared/@ai-setting/roy-agent-core-ty94k28r.js";
|
|
19
28
|
import"../shared/@ai-setting/roy-agent-core-69jskqjg.js";
|
|
20
29
|
import"../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
21
30
|
import"../shared/@ai-setting/roy-agent-core-jvatggbb.js";
|
|
@@ -61,20 +70,25 @@ import"../shared/@ai-setting/roy-agent-core-xs5rsgat.js";
|
|
|
61
70
|
import"../shared/@ai-setting/roy-agent-core-psv4v63c.js";
|
|
62
71
|
import"../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
63
72
|
export {
|
|
73
|
+
websocketHandler,
|
|
64
74
|
validateEventSourceConfig,
|
|
75
|
+
timerHandler,
|
|
76
|
+
larkCliHandler,
|
|
65
77
|
isValidEventSourceType,
|
|
78
|
+
isBuiltInEventSourceType,
|
|
66
79
|
getXDGPaths,
|
|
67
80
|
getXDGPath,
|
|
68
81
|
getDefaultConfigForType,
|
|
69
82
|
createPriorityHook,
|
|
70
83
|
createHook,
|
|
84
|
+
builtInHandlers,
|
|
71
85
|
XDG_PATHS,
|
|
72
86
|
WorkflowComponent,
|
|
73
87
|
TaskComponent,
|
|
74
88
|
McpComponent,
|
|
75
89
|
HookManager,
|
|
90
|
+
EventSourceInitHooks,
|
|
76
91
|
EventSourceComponent,
|
|
77
|
-
EventSourceAgentHandler,
|
|
78
92
|
BaseEnvironment,
|
|
79
93
|
BaseComponent,
|
|
80
94
|
AgentComponentConfigSchema,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
injectToEnv,
|
|
8
8
|
injectToEnvFromCarrier,
|
|
9
9
|
injectToEnvWithContext
|
|
10
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
10
|
+
} from "../../shared/@ai-setting/roy-agent-core-4wjywp3c.js";
|
|
11
11
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
12
12
|
import"../../shared/@ai-setting/roy-agent-core-kkbwepqb.js";
|
|
13
13
|
import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
package/dist/env/prompt/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PromptConfigSchema,
|
|
4
4
|
PromptPathSchema,
|
|
5
5
|
PromptRenderer
|
|
6
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
6
|
+
} from "../../shared/@ai-setting/roy-agent-core-mrcxzpbg.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-qxhq8ven.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-kkbwepqb.js";
|
|
9
9
|
import"../../shared/@ai-setting/roy-agent-core-2dhd60aw.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Scheduler,
|
|
7
7
|
WorkflowEngine,
|
|
8
8
|
init_engine
|
|
9
|
-
} from "../../../shared/@ai-setting/roy-agent-core-
|
|
9
|
+
} from "../../../shared/@ai-setting/roy-agent-core-ty94k28r.js";
|
|
10
10
|
import"../../../shared/@ai-setting/roy-agent-core-69jskqjg.js";
|
|
11
11
|
import"../../../shared/@ai-setting/roy-agent-core-jvatggbb.js";
|
|
12
12
|
import"../../../shared/@ai-setting/roy-agent-core-5x94xmt6.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorkflowComponent
|
|
3
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
3
|
+
} from "../../shared/@ai-setting/roy-agent-core-pw7cv1px.js";
|
|
4
4
|
import"../../shared/@ai-setting/roy-agent-core-0rtxwr28.js";
|
|
5
|
-
import"../../shared/@ai-setting/roy-agent-core-
|
|
5
|
+
import"../../shared/@ai-setting/roy-agent-core-ty94k28r.js";
|
|
6
6
|
import"../../shared/@ai-setting/roy-agent-core-69jskqjg.js";
|
|
7
7
|
import"../../shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
8
8
|
import"../../shared/@ai-setting/roy-agent-core-jvatggbb.js";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
LogTraceComponent,
|
|
6
6
|
LogTraceConfigSchema
|
|
7
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "./shared/@ai-setting/roy-agent-core-4wjywp3c.js";
|
|
8
8
|
import {
|
|
9
9
|
ToolComponent,
|
|
10
10
|
ToolRegistry,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
PromptComponent,
|
|
25
25
|
getBuiltInPrompt,
|
|
26
26
|
getBuiltInPromptNames
|
|
27
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
27
|
+
} from "./shared/@ai-setting/roy-agent-core-mrcxzpbg.js";
|
|
28
28
|
import {
|
|
29
29
|
LLMComponent,
|
|
30
30
|
LLMConfigSchema,
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
ConfigComponent
|
|
42
42
|
} from "./shared/@ai-setting/roy-agent-core-vn2bc59q.js";
|
|
43
|
+
import"./shared/@ai-setting/roy-agent-core-2grcjaad.js";
|
|
43
44
|
import {
|
|
44
45
|
MemoryComponent
|
|
45
46
|
} from "./shared/@ai-setting/roy-agent-core-4txzpsbt.js";
|
|
@@ -62,24 +63,39 @@ import {
|
|
|
62
63
|
} from "./shared/@ai-setting/roy-agent-core-rvv6ydff.js";
|
|
63
64
|
import {
|
|
64
65
|
BaseEnvironment,
|
|
65
|
-
EventSourceAgentHandler,
|
|
66
|
-
EventSourceComponent,
|
|
67
66
|
generateDescendingId,
|
|
68
67
|
generateId
|
|
69
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
68
|
+
} from "./shared/@ai-setting/roy-agent-core-j1sr5pk9.js";
|
|
70
69
|
import {
|
|
71
70
|
XDG_PATHS,
|
|
72
71
|
getXDGPath,
|
|
73
72
|
getXDGPaths
|
|
74
73
|
} from "./shared/@ai-setting/roy-agent-core-qxnbvgwe.js";
|
|
74
|
+
import {
|
|
75
|
+
EventSourceComponent,
|
|
76
|
+
builtInHandlers,
|
|
77
|
+
getBuiltInHandler,
|
|
78
|
+
larkCliHandler,
|
|
79
|
+
timerHandler,
|
|
80
|
+
websocketHandler
|
|
81
|
+
} from "./shared/@ai-setting/roy-agent-core-5ex3za0m.js";
|
|
82
|
+
import {
|
|
83
|
+
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
84
|
+
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
85
|
+
EventSourceInitHooks,
|
|
86
|
+
getDefaultConfigForType,
|
|
87
|
+
isBuiltInEventSourceType,
|
|
88
|
+
isValidEventSourceType,
|
|
89
|
+
validateEventSourceConfig
|
|
90
|
+
} from "./shared/@ai-setting/roy-agent-core-avq1x4t7.js";
|
|
75
91
|
import {
|
|
76
92
|
WorkflowComponent
|
|
77
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
93
|
+
} from "./shared/@ai-setting/roy-agent-core-pw7cv1px.js";
|
|
78
94
|
import {
|
|
79
95
|
init_node_registry_helper,
|
|
80
96
|
registerDecoratorNodeType
|
|
81
97
|
} from "./shared/@ai-setting/roy-agent-core-0rtxwr28.js";
|
|
82
|
-
import"./shared/@ai-setting/roy-agent-core-
|
|
98
|
+
import"./shared/@ai-setting/roy-agent-core-ty94k28r.js";
|
|
83
99
|
import"./shared/@ai-setting/roy-agent-core-69jskqjg.js";
|
|
84
100
|
import"./shared/@ai-setting/roy-agent-core-4t40mkpv.js";
|
|
85
101
|
import"./shared/@ai-setting/roy-agent-core-jvatggbb.js";
|
|
@@ -303,6 +319,9 @@ init_node_registry_helper();
|
|
|
303
319
|
export {
|
|
304
320
|
writeFileTool,
|
|
305
321
|
wrapFunction,
|
|
322
|
+
websocketHandler,
|
|
323
|
+
validateEventSourceConfig,
|
|
324
|
+
timerHandler,
|
|
306
325
|
setQuietMode,
|
|
307
326
|
setConfigComponent as setLoggerConfigComponent,
|
|
308
327
|
setLogDirOverride,
|
|
@@ -311,8 +330,11 @@ export {
|
|
|
311
330
|
readFileTool,
|
|
312
331
|
propagation,
|
|
313
332
|
parseModelString,
|
|
333
|
+
larkCliHandler,
|
|
334
|
+
isValidEventSourceType,
|
|
314
335
|
isRoyError,
|
|
315
336
|
isQuietMode,
|
|
337
|
+
isBuiltInEventSourceType,
|
|
316
338
|
invokeNonStream,
|
|
317
339
|
invoke,
|
|
318
340
|
grepTool,
|
|
@@ -325,9 +347,11 @@ export {
|
|
|
325
347
|
getLogLevel,
|
|
326
348
|
getLogDir,
|
|
327
349
|
getErrorCode,
|
|
350
|
+
getDefaultConfigForType,
|
|
328
351
|
getBuiltInTool,
|
|
329
352
|
getBuiltInPromptNames,
|
|
330
353
|
getBuiltInPrompt,
|
|
354
|
+
getBuiltInHandler,
|
|
331
355
|
getAllBuiltInTools,
|
|
332
356
|
generateId,
|
|
333
357
|
generateDescendingId,
|
|
@@ -339,6 +363,7 @@ export {
|
|
|
339
363
|
createLogger,
|
|
340
364
|
createInvokeConfig,
|
|
341
365
|
createHook,
|
|
366
|
+
builtInHandlers,
|
|
342
367
|
bashTool,
|
|
343
368
|
XDG_PATHS,
|
|
344
369
|
WorkflowEdges,
|
|
@@ -381,8 +406,8 @@ export {
|
|
|
381
406
|
LLMConfigSchema,
|
|
382
407
|
LLMComponent,
|
|
383
408
|
HookManager,
|
|
409
|
+
EventSourceInitHooks,
|
|
384
410
|
EventSourceComponent,
|
|
385
|
-
EventSourceAgentHandler,
|
|
386
411
|
ErrorCodes,
|
|
387
412
|
Edge,
|
|
388
413
|
DebugComponent,
|
|
@@ -392,6 +417,8 @@ export {
|
|
|
392
417
|
CommandsComponent,
|
|
393
418
|
BaseEnvironment,
|
|
394
419
|
BaseComponent,
|
|
420
|
+
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
421
|
+
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
395
422
|
AskUserError,
|
|
396
423
|
AgentError,
|
|
397
424
|
AgentComponentConfigSchema,
|
|
File without changes
|
|
@@ -338,9 +338,11 @@ class LogTraceComponent extends BaseComponent {
|
|
|
338
338
|
return new SQLiteSpanStorage(getDefaultSpanDbPath());
|
|
339
339
|
}
|
|
340
340
|
configureLogging() {
|
|
341
|
-
if (!this.config?.logging)
|
|
341
|
+
if (!this.config?.logging) {
|
|
342
|
+
setQuietMode(true);
|
|
342
343
|
return;
|
|
343
|
-
|
|
344
|
+
}
|
|
345
|
+
if (this.config.logging.quiet !== false) {
|
|
344
346
|
setQuietMode(true);
|
|
345
347
|
}
|
|
346
348
|
}
|