@ai-setting/roy-agent-core 1.5.98 → 1.5.100
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,11 +4,13 @@ import {
|
|
|
4
4
|
EventSourceComponent,
|
|
5
5
|
TimerInstance,
|
|
6
6
|
bountyIMHandler,
|
|
7
|
+
buildDefaultBountyIMSystemPrompt,
|
|
7
8
|
builtInHandlers,
|
|
8
9
|
getBuiltInHandler,
|
|
9
10
|
larkCliHandler,
|
|
11
|
+
resolveBountyIMSystemPrompt,
|
|
10
12
|
timerHandler
|
|
11
|
-
} from "../../shared/@ai-setting/roy-agent-core-
|
|
13
|
+
} from "../../shared/@ai-setting/roy-agent-core-vea84mnc.js";
|
|
12
14
|
import {
|
|
13
15
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
14
16
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -40,12 +42,14 @@ import"../../shared/@ai-setting/roy-agent-core-fs0mn2jk.js";
|
|
|
40
42
|
export {
|
|
41
43
|
validateEventSourceConfig,
|
|
42
44
|
timerHandler,
|
|
45
|
+
resolveBountyIMSystemPrompt,
|
|
43
46
|
larkCliHandler,
|
|
44
47
|
isValidEventSourceType,
|
|
45
48
|
isBuiltInEventSourceType,
|
|
46
49
|
getDefaultConfigForType,
|
|
47
50
|
getBuiltInHandler,
|
|
48
51
|
builtInHandlers,
|
|
52
|
+
buildDefaultBountyIMSystemPrompt,
|
|
49
53
|
bountyIMHandler,
|
|
50
54
|
TimerInstance,
|
|
51
55
|
EventSourceInitHooks,
|
package/dist/env/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -68,11 +68,13 @@ import {
|
|
|
68
68
|
EventSourceComponent,
|
|
69
69
|
TimerInstance,
|
|
70
70
|
bountyIMHandler,
|
|
71
|
+
buildDefaultBountyIMSystemPrompt,
|
|
71
72
|
builtInHandlers,
|
|
72
73
|
getBuiltInHandler,
|
|
73
74
|
larkCliHandler,
|
|
75
|
+
resolveBountyIMSystemPrompt,
|
|
74
76
|
timerHandler
|
|
75
|
-
} from "./shared/@ai-setting/roy-agent-core-
|
|
77
|
+
} from "./shared/@ai-setting/roy-agent-core-vea84mnc.js";
|
|
76
78
|
import {
|
|
77
79
|
BUILT_IN_EVENT_SOURCE_TYPES,
|
|
78
80
|
BUILT_IN_EVENT_SOURCE_TYPE_LIST,
|
|
@@ -375,6 +377,7 @@ export {
|
|
|
375
377
|
setQuietMode,
|
|
376
378
|
setConfigComponent as setLoggerConfigComponent,
|
|
377
379
|
setLogDirOverride,
|
|
380
|
+
resolveBountyIMSystemPrompt,
|
|
378
381
|
resetUnderstandImageLLMProvider,
|
|
379
382
|
resetTracerProvider,
|
|
380
383
|
registerDecoratorNodeType,
|
|
@@ -421,6 +424,7 @@ export {
|
|
|
421
424
|
createAutoTaskPlugin,
|
|
422
425
|
closeDatabase,
|
|
423
426
|
builtInHandlers,
|
|
427
|
+
buildDefaultBountyIMSystemPrompt,
|
|
424
428
|
bountyIMHandler,
|
|
425
429
|
bashTool,
|
|
426
430
|
XDG_PATHS,
|
|
@@ -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
|
}
|
|
@@ -1443,4 +1448,4 @@ __legacyDecorateClassTS([
|
|
|
1443
1448
|
TracedAs("event-source.update", { recordParams: false, log: false })
|
|
1444
1449
|
], EventSourceComponent.prototype, "update", null);
|
|
1445
1450
|
|
|
1446
|
-
export { TimerInstance, timerHandler, BountyIMInstance, bountyIMHandler, larkCliHandler, builtInHandlers, getBuiltInHandler, EventSourceComponent };
|
|
1451
|
+
export { TimerInstance, timerHandler, buildDefaultBountyIMSystemPrompt, resolveBountyIMSystemPrompt, BountyIMInstance, bountyIMHandler, larkCliHandler, builtInHandlers, getBuiltInHandler, EventSourceComponent };
|