@ai-setting/roy-agent-core 1.5.98 → 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-ztyz1smv.js";
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
@@ -5,7 +5,7 @@ import {
5
5
  EventSourceComponent,
6
6
  builtInHandlers,
7
7
  larkCliHandler
8
- } from "../shared/@ai-setting/roy-agent-core-ztyz1smv.js";
8
+ } from "../shared/@ai-setting/roy-agent-core-7hm9zmb3.js";
9
9
  import {
10
10
  EventSourceInitHooks,
11
11
  getDefaultConfigForType,
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-ztyz1smv.js";
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
- "当需要回复收到的消息时,用 bounty com send CLI 投递:",
222
- ` bounty com send --endpoint ${endpoint} -f ${input.currentAddress} -t <to-address> -b <body>`,
219
+ `你的 IM 地址:${input.currentAddress}`,
220
+ `IM Server:${endpoint} (k8s remote server)`,
223
221
  "",
224
- "注意:每次交互都用同一个 from-address(你的地址),to-address 用收到的消息的 from 字段。"
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-core",
3
- "version": "1.5.98",
3
+ "version": "1.5.99",
4
4
  "type": "module",
5
5
  "description": "Core SDK for roy-agent - Environment, Components, Tools, Sessions, Tasks",
6
6
  "main": "./dist/index.js",
@@ -83,4 +83,4 @@
83
83
  "bugs": {
84
84
  "url": "https://github.com/ai-setting/roy-agent/issues"
85
85
  }
86
- }
86
+ }