agents-bridge 0.1.37 → 0.2.0

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.
Files changed (39) hide show
  1. package/.env.example +20 -20
  2. package/LICENSE +21 -21
  3. package/README.md +353 -312
  4. package/bin/agent-bridge.mjs +13 -13
  5. package/config.example.json +250 -208
  6. package/config.multi-agent.example.json +113 -113
  7. package/dist/agents/cli-backends.d.ts.map +1 -1
  8. package/dist/agents/cli-backends.js +41 -2
  9. package/dist/agents/cli-backends.js.map +1 -1
  10. package/dist/agents/cli-output.d.ts +1 -1
  11. package/dist/agents/cli-output.d.ts.map +1 -1
  12. package/dist/agents/cli-output.js +38 -6
  13. package/dist/agents/cli-output.js.map +1 -1
  14. package/dist/agents/cli-runner.d.ts.map +1 -1
  15. package/dist/agents/cli-runner.js +5 -2
  16. package/dist/agents/cli-runner.js.map +1 -1
  17. package/dist/cli/botlink-openapi.d.ts +2 -0
  18. package/dist/cli/botlink-openapi.d.ts.map +1 -1
  19. package/dist/cli/botlink-openapi.js.map +1 -1
  20. package/dist/cli/cmd-add-agent.js +1 -1
  21. package/dist/cli/cmd-add-agent.js.map +1 -1
  22. package/dist/cli/cmd-contacts.js +1 -1
  23. package/dist/cli/cmd-contacts.js.map +1 -1
  24. package/dist/cli/cmd-doctor.d.ts +2 -0
  25. package/dist/cli/cmd-doctor.d.ts.map +1 -1
  26. package/dist/cli/cmd-doctor.js +28 -33
  27. package/dist/cli/cmd-doctor.js.map +1 -1
  28. package/dist/cli/cmd-list-groups.d.ts.map +1 -1
  29. package/dist/cli/cmd-list-groups.js +3 -2
  30. package/dist/cli/cmd-list-groups.js.map +1 -1
  31. package/dist/cli/cmd-update.js +70 -70
  32. package/dist/cli/run-main.d.ts.map +1 -1
  33. package/dist/cli/run-main.js +144 -141
  34. package/dist/cli/run-main.js.map +1 -1
  35. package/dist/config/default-config.d.ts +1 -1
  36. package/dist/config/default-config.d.ts.map +1 -1
  37. package/dist/config/default-config.js +19 -0
  38. package/dist/config/default-config.js.map +1 -1
  39. package/package.json +70 -69
package/.env.example CHANGED
@@ -1,20 +1,20 @@
1
- # .env.example — agent-bridge 环境变量
2
- #
3
- # 环境变量可覆盖 config.json 中的对应值
4
-
5
- # 配置文件路径(默认按搜索顺序:~/.agent-bridge/config.json → ./config.json)
6
- # AGENT_BRIDGE_CONFIG=./config.json
7
-
8
- # Botlink 连接(覆盖 channels.botlink)
9
- # AGENT_BRIDGE_GATEWAY_URL=https://your-botlink-instance.com
10
- # AGENT_BRIDGE_BOT_TOKEN=bot_xxxxxxxxxxxxxxxxxx
11
-
12
- # 日志级别(覆盖 logging.level)
13
- # AGENT_BRIDGE_LOG_LEVEL=info
14
-
15
- # 临时文件目录(覆盖 files.temp_dir)
16
- # AGENT_BRIDGE_TEMP_DIR=/tmp/agent-bridge/files
17
-
18
- # LLM API Keys(用于 Pi Agent 模式)
19
- # ANTHROPIC_API_KEY=sk-ant-xxx
20
- # OPENAI_API_KEY=sk-xxx
1
+ # .env.example — agent-bridge 环境变量
2
+ #
3
+ # 环境变量可覆盖 config.json 中的对应值
4
+
5
+ # 配置文件路径(默认按搜索顺序:~/.agent-bridge/config.json → ./config.json)
6
+ # AGENT_BRIDGE_CONFIG=./config.json
7
+
8
+ # Botlink 连接(覆盖 channels.botlink)
9
+ # AGENT_BRIDGE_GATEWAY_URL=https://your-botlink-instance.com
10
+ # AGENT_BRIDGE_BOT_TOKEN=bot_xxxxxxxxxxxxxxxxxx
11
+
12
+ # 日志级别(覆盖 logging.level)
13
+ # AGENT_BRIDGE_LOG_LEVEL=info
14
+
15
+ # 临时文件目录(覆盖 files.temp_dir)
16
+ # AGENT_BRIDGE_TEMP_DIR=/tmp/agent-bridge/files
17
+
18
+ # LLM API Keys(用于 Pi Agent 模式)
19
+ # ANTHROPIC_API_KEY=sk-ant-xxx
20
+ # OPENAI_API_KEY=sk-xxx
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.