@ai-setting/roy-agent-core 1.5.36 → 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.
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
builtInHandlers,
|
|
5
5
|
getBuiltInHandler,
|
|
6
6
|
larkCliHandler
|
|
7
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
7
|
+
} from "../../shared/@ai-setting/roy-agent-core-mx489p7f.js";
|
|
8
8
|
import {
|
|
9
9
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
10
10
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
package/dist/env/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
EventSourceComponent,
|
|
11
11
|
builtInHandlers,
|
|
12
12
|
larkCliHandler
|
|
13
|
-
} from "../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
} from "../shared/@ai-setting/roy-agent-core-mx489p7f.js";
|
|
14
14
|
import {
|
|
15
15
|
EventSourceInitHooks,
|
|
16
16
|
getDefaultConfigForType,
|
package/dist/index.js
CHANGED
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
builtInHandlers,
|
|
77
77
|
getBuiltInHandler,
|
|
78
78
|
larkCliHandler
|
|
79
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
79
|
+
} from "./shared/@ai-setting/roy-agent-core-mx489p7f.js";
|
|
80
80
|
import {
|
|
81
81
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
82
82
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -56,7 +56,7 @@ function extractMetadata(rawEvent, eventType) {
|
|
|
56
56
|
let recommendedAction;
|
|
57
57
|
if (eventType === "im.message.receive_v1") {
|
|
58
58
|
recommendedAction = {
|
|
59
|
-
action: "
|
|
59
|
+
action: '处理飞书消息并以机器人身份回复,比如lark-cli im +messages-reply --message-id "xxxxid" --as bot --text "回复内容"',
|
|
60
60
|
replyTo: {
|
|
61
61
|
appId: metadata.appId,
|
|
62
62
|
chatId: metadata.chatId,
|
|
@@ -241,7 +241,10 @@ class LarkCliInstance {
|
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
243
|
const { metadata, replyChannel, recommendedAction } = extractMetadata(rawEvent, eventType);
|
|
244
|
-
const message =
|
|
244
|
+
const message = JSON.stringify({
|
|
245
|
+
rawData,
|
|
246
|
+
recommendedAction
|
|
247
|
+
});
|
|
245
248
|
const timestamp = Date.now();
|
|
246
249
|
const evt = {
|
|
247
250
|
id: `es-${this.config.id}-${timestamp}`,
|