@ai-setting/roy-agent-core 1.5.97 → 1.5.99
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.
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getBuiltInHandler,
|
|
9
9
|
larkCliHandler,
|
|
10
10
|
timerHandler
|
|
11
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
11
|
+
} from "../../shared/@ai-setting/roy-agent-core-7hm9zmb3.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
14
14
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
package/dist/env/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
getBuiltInHandler,
|
|
73
73
|
larkCliHandler,
|
|
74
74
|
timerHandler
|
|
75
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
75
|
+
} from "./shared/@ai-setting/roy-agent-core-7hm9zmb3.js";
|
|
76
76
|
import {
|
|
77
77
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
78
78
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -215,13 +215,18 @@ function buildDefaultBountyIMSystemPrompt(input) {
|
|
|
215
215
|
const endpoint = server.replace(/^wss?:\/\//, httpScheme).replace(/\/ws$/, "");
|
|
216
216
|
return [
|
|
217
217
|
"你正在通过 Bounty IM 与其他 agent 通信。",
|
|
218
|
-
`- 你的 IM 地址:${input.currentAddress}`,
|
|
219
|
-
`- IM Server URL:${server}`,
|
|
220
218
|
"",
|
|
221
|
-
|
|
222
|
-
`
|
|
219
|
+
`你的 IM 地址:${input.currentAddress}`,
|
|
220
|
+
`IM Server:${endpoint} (k8s remote server)`,
|
|
223
221
|
"",
|
|
224
|
-
"
|
|
222
|
+
"回复收到的消息时,**必须**使用以下命令格式(注意 --endpoint 不可省略,省略会默认连 localhost:4000 而失败):",
|
|
223
|
+
"",
|
|
224
|
+
` bounty com send --endpoint ${endpoint} -f ${input.currentAddress} -t <to-address> -b "<body>"`,
|
|
225
|
+
"",
|
|
226
|
+
"如果遇到 TLS 错误(自签名证书),加 -k:",
|
|
227
|
+
` bounty com send --endpoint ${endpoint} -k -f ${input.currentAddress} -t <to-address> -b "<body>"`,
|
|
228
|
+
"",
|
|
229
|
+
`规则:to-address 总是收到的消息的 from 字段;from-address 永远固定为 ${input.currentAddress}。`
|
|
225
230
|
].join(`
|
|
226
231
|
`);
|
|
227
232
|
}
|