@ai-setting/roy-agent-core 1.5.35 → 1.5.37
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 +3 -3
- package/dist/env/agent/index.js +3 -3
- package/dist/env/commands/index.js +3 -3
- package/dist/env/debug/index.js +3 -3
- package/dist/env/event-source/index.js +5 -9
- package/dist/env/hook/index.js +1 -1
- package/dist/env/index.js +11 -15
- package/dist/env/llm/index.js +3 -3
- package/dist/env/log-trace/index.js +3 -3
- package/dist/env/mcp/index.js +3 -3
- package/dist/env/memory/index.js +3 -3
- package/dist/env/prompt/index.js +3 -3
- package/dist/env/session/index.js +3 -3
- package/dist/env/skill/index.js +3 -3
- package/dist/env/task/delegate/index.js +2 -2
- package/dist/env/task/index.js +4 -4
- package/dist/env/tool/index.js +3 -3
- package/dist/env/workflow/index.js +3 -3
- package/dist/index.js +21 -25
- package/dist/shared/@ai-setting/{roy-agent-core-f7q2x5z6.js → roy-agent-core-0wdjp769.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vf215qfv.js → roy-agent-core-3prpabp8.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-gjq1yk68.js → roy-agent-core-86gphny5.js} +7 -0
- package/dist/shared/@ai-setting/{roy-agent-core-zbkpc41z.js → roy-agent-core-97ma0pr5.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-8jxva565.js → roy-agent-core-9mj7vzsm.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-81w1963m.js → roy-agent-core-by55z88t.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vkz81f7v.js → roy-agent-core-c0d3dtjd.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-b0x5dda6.js → roy-agent-core-c2wjwx16.js} +9 -1
- package/dist/shared/@ai-setting/{roy-agent-core-kkbwepqb.js → roy-agent-core-cefh9hjv.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-pw7cv1px.js → roy-agent-core-e2vk2qh7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-g99pxzn5.js → roy-agent-core-fg1kxf70.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-7nwwzxf6.js → roy-agent-core-gf2c2pxr.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-vn2bc59q.js → roy-agent-core-hd1z20yq.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-4wjywp3c.js → roy-agent-core-hkb529dw.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-j1sr5pk9.js → roy-agent-core-j0ke54vy.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5ex3za0m.js → roy-agent-core-mx489p7f.js} +148 -287
- package/dist/shared/@ai-setting/{roy-agent-core-4txzpsbt.js → roy-agent-core-qdmt6nz7.js} +1 -1
- package/dist/shared/@ai-setting/{roy-agent-core-5wp5grzj.js → roy-agent-core-vqspcspb.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-mrcxzpbg.js → roy-agent-core-wjd5kars.js} +2 -2
- package/dist/shared/@ai-setting/{roy-agent-core-avq1x4t7.js → roy-agent-core-xb4hvk1m.js} +2 -22
- package/dist/shared/@ai-setting/{roy-agent-core-gwc4h96n.js → roy-agent-core-xt3fx7m1.js} +3 -3
- package/package.json +1 -1
|
@@ -4,13 +4,13 @@ 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-cefh9hjv.js";
|
|
8
8
|
import {
|
|
9
9
|
createHook
|
|
10
10
|
} from "./roy-agent-core-2dhd60aw.js";
|
|
11
11
|
import {
|
|
12
12
|
globalHookManager
|
|
13
|
-
} from "./roy-agent-core-
|
|
13
|
+
} from "./roy-agent-core-86gphny5.js";
|
|
14
14
|
import {
|
|
15
15
|
createLogger,
|
|
16
16
|
init_logger
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
// src/env/event-source/types.ts
|
|
2
2
|
var BUILT_IN_EVENT_SOURCE_TYPES = {
|
|
3
|
-
LARK_CLI: "lark-cli"
|
|
4
|
-
WEBSOCKET: "websocket",
|
|
5
|
-
TIMER: "timer",
|
|
6
|
-
HTTP_WEBHOOK: "http-webhook",
|
|
7
|
-
FILE_WATCHER: "file-watcher"
|
|
3
|
+
LARK_CLI: "lark-cli"
|
|
8
4
|
};
|
|
9
5
|
var BUILT_IN_EVENT_SOURCE_TYPE_LIST = Object.values(BUILT_IN_EVENT_SOURCE_TYPES);
|
|
10
6
|
|
|
@@ -41,12 +37,8 @@ function isValidEventSourceType(type) {
|
|
|
41
37
|
}
|
|
42
38
|
function getDefaultConfigForType(type) {
|
|
43
39
|
switch (type) {
|
|
44
|
-
case BUILT_IN_EVENT_SOURCE_TYPES.TIMER:
|
|
45
|
-
return { interval: 60000 };
|
|
46
40
|
case BUILT_IN_EVENT_SOURCE_TYPES.LARK_CLI:
|
|
47
|
-
return { command: "lark-cli event
|
|
48
|
-
case BUILT_IN_EVENT_SOURCE_TYPES.WEBSOCKET:
|
|
49
|
-
return {};
|
|
41
|
+
return { command: "lark-cli event consume im.message.receive_v1 --as bot" };
|
|
50
42
|
default:
|
|
51
43
|
return {};
|
|
52
44
|
}
|
|
@@ -65,18 +57,6 @@ function validateEventSourceConfig(config, handler) {
|
|
|
65
57
|
if (handler) {
|
|
66
58
|
const handlerErrors = handler.validateConfig(config);
|
|
67
59
|
errors.push(...handlerErrors);
|
|
68
|
-
} else {
|
|
69
|
-
if (config.type === BUILT_IN_EVENT_SOURCE_TYPES.TIMER) {
|
|
70
|
-
if (!config.interval || config.interval <= 0) {
|
|
71
|
-
errors.push("Timer interval must be a positive number");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (config.type === BUILT_IN_EVENT_SOURCE_TYPES.LARK_CLI && !config.command) {
|
|
75
|
-
errors.push("lark-cli command is required");
|
|
76
|
-
}
|
|
77
|
-
if (config.type === BUILT_IN_EVENT_SOURCE_TYPES.WEBSOCKET && !config.url) {
|
|
78
|
-
errors.push("WebSocket URL is required");
|
|
79
|
-
}
|
|
80
60
|
}
|
|
81
61
|
return errors;
|
|
82
62
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
BackgroundTaskManager,
|
|
3
3
|
createDelegateTool,
|
|
4
4
|
createStopTool
|
|
5
|
-
} from "./roy-agent-core-
|
|
5
|
+
} from "./roy-agent-core-3prpabp8.js";
|
|
6
6
|
import {
|
|
7
7
|
SQLiteTaskStore,
|
|
8
8
|
getDefaultTaskDbPath
|
|
@@ -33,10 +33,10 @@ 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-cefh9hjv.js";
|
|
37
37
|
import {
|
|
38
38
|
globalHookManager
|
|
39
|
-
} from "./roy-agent-core-
|
|
39
|
+
} from "./roy-agent-core-86gphny5.js";
|
|
40
40
|
import {
|
|
41
41
|
createLogger,
|
|
42
42
|
init_logger
|