@jcheesepkg/nanobot 0.9.0 → 0.9.2

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 (245) hide show
  1. package/README.md +18 -18
  2. package/dist/agent/context.d.mts +4 -4
  3. package/dist/agent/context.d.mts.map +1 -1
  4. package/dist/agent/context.mjs +27 -28
  5. package/dist/agent/context.mjs.map +1 -1
  6. package/dist/agent/loop.d.mts +5 -3
  7. package/dist/agent/loop.d.mts.map +1 -1
  8. package/dist/agent/loop.mjs +64 -55
  9. package/dist/agent/loop.mjs.map +1 -1
  10. package/dist/agent/memory.d.mts.map +1 -1
  11. package/dist/agent/memory.mjs +3 -3
  12. package/dist/agent/memory.mjs.map +1 -1
  13. package/dist/agent/skills.d.mts.map +1 -1
  14. package/dist/agent/skills.mjs +4 -4
  15. package/dist/agent/skills.mjs.map +1 -1
  16. package/dist/agent/subagent.d.mts.map +1 -1
  17. package/dist/agent/subagent.mjs +22 -22
  18. package/dist/agent/subagent.mjs.map +1 -1
  19. package/dist/agent/tools/base.mjs +2 -2
  20. package/dist/agent/tools/base.mjs.map +1 -1
  21. package/dist/agent/tools/cron.d.mts +1 -1
  22. package/dist/agent/tools/cron.d.mts.map +1 -1
  23. package/dist/agent/tools/cron.mjs +11 -11
  24. package/dist/agent/tools/cron.mjs.map +1 -1
  25. package/dist/agent/tools/filesystem.d.mts +4 -4
  26. package/dist/agent/tools/filesystem.d.mts.map +1 -1
  27. package/dist/agent/tools/filesystem.mjs +20 -20
  28. package/dist/agent/tools/filesystem.mjs.map +1 -1
  29. package/dist/agent/tools/flex.d.mts +1 -1
  30. package/dist/agent/tools/flex.d.mts.map +1 -1
  31. package/dist/agent/tools/flex.mjs +112 -112
  32. package/dist/agent/tools/flex.mjs.map +1 -1
  33. package/dist/agent/tools/flex.test.mjs +60 -59
  34. package/dist/agent/tools/flex.test.mjs.map +1 -1
  35. package/dist/agent/tools/message.d.mts +1 -1
  36. package/dist/agent/tools/message.d.mts.map +1 -1
  37. package/dist/agent/tools/message.mjs +4 -4
  38. package/dist/agent/tools/message.mjs.map +1 -1
  39. package/dist/agent/tools/registry.d.mts.map +1 -1
  40. package/dist/agent/tools/registry.mjs +4 -4
  41. package/dist/agent/tools/registry.mjs.map +1 -1
  42. package/dist/agent/tools/shell.d.mts +1 -1
  43. package/dist/agent/tools/shell.mjs +4 -4
  44. package/dist/agent/tools/shell.mjs.map +1 -1
  45. package/dist/agent/tools/spawn.d.mts +1 -1
  46. package/dist/agent/tools/spawn.d.mts.map +1 -1
  47. package/dist/agent/tools/spawn.mjs +4 -4
  48. package/dist/agent/tools/spawn.mjs.map +1 -1
  49. package/dist/agent/tools/web.d.mts +2 -2
  50. package/dist/agent/tools/web.d.mts.map +1 -1
  51. package/dist/agent/tools/web.mjs +36 -36
  52. package/dist/agent/tools/web.mjs.map +1 -1
  53. package/dist/bus/events.mjs +1 -1
  54. package/dist/bus/events.mjs.map +1 -1
  55. package/dist/bus/queue.d.mts.map +1 -1
  56. package/dist/bus/queue.mjs.map +1 -1
  57. package/dist/channels/base.d.mts.map +1 -1
  58. package/dist/channels/base.mjs +2 -2
  59. package/dist/channels/base.mjs.map +1 -1
  60. package/dist/channels/line.d.mts +1 -0
  61. package/dist/channels/line.d.mts.map +1 -1
  62. package/dist/channels/line.mjs +65 -65
  63. package/dist/channels/line.mjs.map +1 -1
  64. package/dist/channels/line.test.mjs +26 -27
  65. package/dist/channels/line.test.mjs.map +1 -1
  66. package/dist/channels/manager.d.mts.map +1 -1
  67. package/dist/channels/manager.mjs +9 -9
  68. package/dist/channels/manager.mjs.map +1 -1
  69. package/dist/channels/telegram.mjs +34 -34
  70. package/dist/channels/telegram.mjs.map +1 -1
  71. package/dist/cli/index.mjs +36 -36
  72. package/dist/cli/index.mjs.map +1 -1
  73. package/dist/config/loader.d.mts.map +1 -1
  74. package/dist/config/loader.mjs +1 -1
  75. package/dist/config/loader.mjs.map +1 -1
  76. package/dist/config/schema.d.mts +381 -381
  77. package/dist/config/schema.d.mts.map +1 -1
  78. package/dist/config/schema.mjs +42 -42
  79. package/dist/config/schema.mjs.map +1 -1
  80. package/dist/gateway/server.d.mts.map +1 -1
  81. package/dist/gateway/server.mjs +48 -54
  82. package/dist/gateway/server.mjs.map +1 -1
  83. package/dist/heartbeat/service.d.mts.map +1 -1
  84. package/dist/heartbeat/service.mjs +8 -8
  85. package/dist/heartbeat/service.mjs.map +1 -1
  86. package/dist/index.d.mts +1 -1
  87. package/dist/index.d.mts.map +1 -1
  88. package/dist/index.mjs +2 -2
  89. package/dist/index.mjs.map +1 -1
  90. package/dist/node_modules/{@jridgewell → .bun/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell}/sourcemap-codec/dist/sourcemap-codec.mjs +1 -1
  91. package/dist/node_modules/.bun/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  92. package/dist/node_modules/{@vitest → .bun/@vitest_expect@2.1.9/node_modules/@vitest}/expect/dist/index.mjs +8 -8
  93. package/dist/node_modules/.bun/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
  94. package/dist/node_modules/{@vitest → .bun/@vitest_pretty-format@2.1.9/node_modules/@vitest}/pretty-format/dist/index.mjs +2 -2
  95. package/dist/node_modules/.bun/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
  96. package/dist/node_modules/{@vitest → .bun/@vitest_runner@2.1.9/node_modules/@vitest}/runner/dist/chunk-tasks.mjs +1 -1
  97. package/dist/node_modules/.bun/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.mjs.map +1 -0
  98. package/dist/node_modules/{@vitest → .bun/@vitest_runner@2.1.9/node_modules/@vitest}/runner/dist/index.mjs +6 -6
  99. package/dist/node_modules/.bun/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.mjs.map +1 -0
  100. package/dist/node_modules/{@vitest → .bun/@vitest_snapshot@2.1.9/node_modules/@vitest}/snapshot/dist/index.mjs +5 -5
  101. package/dist/node_modules/.bun/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
  102. package/dist/node_modules/{@vitest → .bun/@vitest_spy@2.1.9/node_modules/@vitest}/spy/dist/index.mjs +2 -2
  103. package/dist/node_modules/.bun/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
  104. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/chunk-_commonjsHelpers.mjs +3 -3
  105. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs.map +1 -0
  106. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/diff.mjs +4 -4
  107. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
  108. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/error.mjs +3 -3
  109. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
  110. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/helpers.mjs +1 -1
  111. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
  112. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/index.mjs +3 -3
  113. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.mjs.map +1 -0
  114. package/dist/node_modules/{@vitest → .bun/@vitest_utils@2.1.9/node_modules/@vitest}/utils/dist/source-map.mjs +1 -1
  115. package/dist/node_modules/.bun/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
  116. package/dist/node_modules/{chai → .bun/chai@5.3.3/node_modules/chai}/index.mjs +1 -1
  117. package/dist/node_modules/.bun/chai@5.3.3/node_modules/chai/index.mjs.map +1 -0
  118. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/arguments.mjs +1 -1
  119. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/arguments.mjs.map +1 -0
  120. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/array.mjs +1 -1
  121. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/array.mjs.map +1 -0
  122. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/bigint.mjs +1 -1
  123. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/bigint.mjs.map +1 -0
  124. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/class.mjs +1 -1
  125. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/class.mjs.map +1 -0
  126. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/date.mjs +1 -1
  127. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/date.mjs.map +1 -0
  128. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/error.mjs +1 -1
  129. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/error.mjs.map +1 -0
  130. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/function.mjs +1 -1
  131. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/function.mjs.map +1 -0
  132. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/helpers.mjs +1 -1
  133. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/helpers.mjs.map +1 -0
  134. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/html.mjs +1 -1
  135. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/html.mjs.map +1 -0
  136. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/index.mjs +1 -1
  137. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/index.mjs.map +1 -0
  138. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/map.mjs +1 -1
  139. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/map.mjs.map +1 -0
  140. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/number.mjs +1 -1
  141. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/number.mjs.map +1 -0
  142. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/object.mjs +1 -1
  143. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/object.mjs.map +1 -0
  144. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/promise.mjs +6 -0
  145. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/promise.mjs.map +1 -0
  146. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/regexp.mjs +1 -1
  147. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/regexp.mjs.map +1 -0
  148. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/set.mjs +1 -1
  149. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/set.mjs.map +1 -0
  150. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/string.mjs +1 -1
  151. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/string.mjs.map +1 -0
  152. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/symbol.mjs +1 -1
  153. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/symbol.mjs.map +1 -0
  154. package/dist/node_modules/{loupe → .bun/loupe@3.2.1/node_modules/loupe}/lib/typedarray.mjs +1 -1
  155. package/dist/node_modules/.bun/loupe@3.2.1/node_modules/loupe/lib/typedarray.mjs.map +1 -0
  156. package/dist/node_modules/{magic-string → .bun/magic-string@0.30.21/node_modules/magic-string}/dist/magic-string.es.mjs +2 -2
  157. package/dist/node_modules/.bun/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
  158. package/dist/node_modules/{@vitest/snapshot → .bun/pathe@1.1.2}/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +1 -1
  159. package/dist/node_modules/.bun/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.mjs.map +1 -0
  160. package/dist/node_modules/{tinyrainbow → .bun/tinyrainbow@1.2.0/node_modules/tinyrainbow}/dist/chunk-BVHSVHOK.mjs +1 -1
  161. package/dist/node_modules/.bun/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs.map +1 -0
  162. package/dist/node_modules/{tinyrainbow → .bun/tinyrainbow@1.2.0/node_modules/tinyrainbow}/dist/node.mjs +1 -1
  163. package/dist/node_modules/.bun/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.mjs.map +1 -0
  164. package/dist/node_modules/{tinyspy → .bun/tinyspy@3.0.2/node_modules/tinyspy}/dist/index.mjs +1 -1
  165. package/dist/node_modules/.bun/tinyspy@3.0.2/node_modules/tinyspy/dist/index.mjs.map +1 -0
  166. package/dist/node_modules/{vitest → .bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest}/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs +1 -1
  167. package/dist/node_modules/.bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs.map +1 -0
  168. package/dist/node_modules/{vitest → .bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest}/dist/chunks/date.W2xKR2qe.mjs +1 -1
  169. package/dist/node_modules/.bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest/dist/chunks/date.W2xKR2qe.mjs.map +1 -0
  170. package/dist/node_modules/{vitest → .bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest}/dist/chunks/utils.C8RiOc4B.mjs +2 -2
  171. package/dist/node_modules/.bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest/dist/chunks/utils.C8RiOc4B.mjs.map +1 -0
  172. package/dist/node_modules/{vitest → .bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest}/dist/chunks/vi.DgezovHB.mjs +11 -11
  173. package/dist/node_modules/.bun/vitest@2.1.9_7700f9e9ace41f23/node_modules/vitest/dist/chunks/vi.DgezovHB.mjs.map +1 -0
  174. package/dist/providers/base.d.mts +2 -2
  175. package/dist/providers/base.d.mts.map +1 -1
  176. package/dist/providers/openai-provider.d.mts.map +1 -1
  177. package/dist/providers/openai-provider.mjs +10 -9
  178. package/dist/providers/openai-provider.mjs.map +1 -1
  179. package/dist/providers/registry.d.mts +1 -1
  180. package/dist/providers/registry.d.mts.map +1 -1
  181. package/dist/providers/registry.mjs +99 -99
  182. package/dist/providers/registry.mjs.map +1 -1
  183. package/dist/session/manager.d.mts +2 -2
  184. package/dist/session/manager.d.mts.map +1 -1
  185. package/dist/session/manager.mjs +18 -19
  186. package/dist/session/manager.mjs.map +1 -1
  187. package/dist/utils/helpers.d.mts.map +1 -1
  188. package/dist/utils/helpers.mjs.map +1 -1
  189. package/package.json +11 -11
  190. package/skills/cron/SKILL.md +12 -8
  191. package/skills/daily-summary/SKILL.md +5 -1
  192. package/skills/english/SKILL.md +72 -14
  193. package/skills/expense/SKILL.md +15 -11
  194. package/skills/fortune/SKILL.md +25 -21
  195. package/skills/habit/SKILL.md +7 -6
  196. package/skills/hydration/SKILL.md +8 -5
  197. package/skills/memory/SKILL.md +1 -0
  198. package/skills/mood/SKILL.md +13 -9
  199. package/skills/skill-creator/SKILL.md +22 -0
  200. package/skills/summarize/SKILL.md +1 -0
  201. package/skills/weather/SKILL.md +11 -9
  202. package/dist/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +0 -1
  203. package/dist/node_modules/@vitest/expect/dist/index.mjs.map +0 -1
  204. package/dist/node_modules/@vitest/pretty-format/dist/index.mjs.map +0 -1
  205. package/dist/node_modules/@vitest/runner/dist/chunk-tasks.mjs.map +0 -1
  206. package/dist/node_modules/@vitest/runner/dist/index.mjs.map +0 -1
  207. package/dist/node_modules/@vitest/snapshot/dist/index.mjs.map +0 -1
  208. package/dist/node_modules/@vitest/snapshot/node_modules/pathe/dist/shared/pathe.ff20891b.mjs.map +0 -1
  209. package/dist/node_modules/@vitest/spy/dist/index.mjs.map +0 -1
  210. package/dist/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.mjs.map +0 -1
  211. package/dist/node_modules/@vitest/utils/dist/diff.mjs.map +0 -1
  212. package/dist/node_modules/@vitest/utils/dist/error.mjs.map +0 -1
  213. package/dist/node_modules/@vitest/utils/dist/helpers.mjs.map +0 -1
  214. package/dist/node_modules/@vitest/utils/dist/index.mjs.map +0 -1
  215. package/dist/node_modules/@vitest/utils/dist/source-map.mjs.map +0 -1
  216. package/dist/node_modules/chai/index.mjs.map +0 -1
  217. package/dist/node_modules/loupe/lib/arguments.mjs.map +0 -1
  218. package/dist/node_modules/loupe/lib/array.mjs.map +0 -1
  219. package/dist/node_modules/loupe/lib/bigint.mjs.map +0 -1
  220. package/dist/node_modules/loupe/lib/class.mjs.map +0 -1
  221. package/dist/node_modules/loupe/lib/date.mjs.map +0 -1
  222. package/dist/node_modules/loupe/lib/error.mjs.map +0 -1
  223. package/dist/node_modules/loupe/lib/function.mjs.map +0 -1
  224. package/dist/node_modules/loupe/lib/helpers.mjs.map +0 -1
  225. package/dist/node_modules/loupe/lib/html.mjs.map +0 -1
  226. package/dist/node_modules/loupe/lib/index.mjs.map +0 -1
  227. package/dist/node_modules/loupe/lib/map.mjs.map +0 -1
  228. package/dist/node_modules/loupe/lib/number.mjs.map +0 -1
  229. package/dist/node_modules/loupe/lib/object.mjs.map +0 -1
  230. package/dist/node_modules/loupe/lib/promise.mjs +0 -6
  231. package/dist/node_modules/loupe/lib/promise.mjs.map +0 -1
  232. package/dist/node_modules/loupe/lib/regexp.mjs.map +0 -1
  233. package/dist/node_modules/loupe/lib/set.mjs.map +0 -1
  234. package/dist/node_modules/loupe/lib/string.mjs.map +0 -1
  235. package/dist/node_modules/loupe/lib/symbol.mjs.map +0 -1
  236. package/dist/node_modules/loupe/lib/typedarray.mjs.map +0 -1
  237. package/dist/node_modules/magic-string/dist/magic-string.es.mjs.map +0 -1
  238. package/dist/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.mjs.map +0 -1
  239. package/dist/node_modules/tinyrainbow/dist/node.mjs.map +0 -1
  240. package/dist/node_modules/tinyspy/dist/index.mjs.map +0 -1
  241. package/dist/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.mjs.map +0 -1
  242. package/dist/node_modules/vitest/dist/chunks/date.W2xKR2qe.mjs.map +0 -1
  243. package/dist/node_modules/vitest/dist/chunks/utils.C8RiOc4B.mjs.map +0 -1
  244. package/dist/node_modules/vitest/dist/chunks/vi.DgezovHB.mjs.map +0 -1
  245. /package/dist/node_modules/{@vitest → .bun/@vitest_runner@2.1.9/node_modules/@vitest}/runner/dist/utils.mjs +0 -0
@@ -3,345 +3,345 @@ import { z } from "zod";
3
3
 
4
4
  //#region src/config/schema.d.ts
5
5
  declare const TelegramConfigSchema: z.ZodObject<{
6
- enabled: z.ZodDefault<z.ZodBoolean>;
7
- token: z.ZodDefault<z.ZodString>;
8
6
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
7
+ enabled: z.ZodDefault<z.ZodBoolean>;
9
8
  proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ token: z.ZodDefault<z.ZodString>;
10
10
  }, "strip", z.ZodTypeAny, {
11
+ allowFrom: string[];
11
12
  enabled: boolean;
12
13
  token: string;
13
- allowFrom: string[];
14
14
  proxy?: string | null | undefined;
15
15
  }, {
16
- enabled?: boolean | undefined;
17
- token?: string | undefined;
18
16
  allowFrom?: string[] | undefined;
17
+ enabled?: boolean | undefined;
19
18
  proxy?: string | null | undefined;
19
+ token?: string | undefined;
20
20
  }>;
21
21
  type TelegramConfig = z.infer<typeof TelegramConfigSchema>;
22
22
  declare const LineConfigSchema: z.ZodObject<{
23
- enabled: z.ZodDefault<z.ZodBoolean>;
24
- channelSecret: z.ZodDefault<z.ZodString>;
25
- channelAccessToken: z.ZodDefault<z.ZodString>;
26
23
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
24
+ channelAccessToken: z.ZodDefault<z.ZodString>;
25
+ channelSecret: z.ZodDefault<z.ZodString>;
26
+ enabled: z.ZodDefault<z.ZodBoolean>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- enabled: boolean;
29
28
  allowFrom: string[];
30
- channelSecret: string;
29
+ enabled: boolean;
31
30
  channelAccessToken: string;
31
+ channelSecret: string;
32
32
  }, {
33
- enabled?: boolean | undefined;
34
33
  allowFrom?: string[] | undefined;
35
- channelSecret?: string | undefined;
34
+ enabled?: boolean | undefined;
36
35
  channelAccessToken?: string | undefined;
36
+ channelSecret?: string | undefined;
37
37
  }>;
38
38
  type LineConfig = z.infer<typeof LineConfigSchema>;
39
39
  declare const ChannelsConfigSchema: z.ZodObject<{
40
- telegram: z.ZodDefault<z.ZodObject<{
41
- enabled: z.ZodDefault<z.ZodBoolean>;
42
- token: z.ZodDefault<z.ZodString>;
40
+ line: z.ZodDefault<z.ZodObject<{
43
41
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
44
- proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ channelAccessToken: z.ZodDefault<z.ZodString>;
43
+ channelSecret: z.ZodDefault<z.ZodString>;
44
+ enabled: z.ZodDefault<z.ZodBoolean>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- enabled: boolean;
47
- token: string;
48
46
  allowFrom: string[];
49
- proxy?: string | null | undefined;
47
+ enabled: boolean;
48
+ channelAccessToken: string;
49
+ channelSecret: string;
50
50
  }, {
51
- enabled?: boolean | undefined;
52
- token?: string | undefined;
53
51
  allowFrom?: string[] | undefined;
54
- proxy?: string | null | undefined;
52
+ enabled?: boolean | undefined;
53
+ channelAccessToken?: string | undefined;
54
+ channelSecret?: string | undefined;
55
55
  }>>;
56
- line: z.ZodDefault<z.ZodObject<{
57
- enabled: z.ZodDefault<z.ZodBoolean>;
58
- channelSecret: z.ZodDefault<z.ZodString>;
59
- channelAccessToken: z.ZodDefault<z.ZodString>;
56
+ telegram: z.ZodDefault<z.ZodObject<{
60
57
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
58
+ enabled: z.ZodDefault<z.ZodBoolean>;
59
+ proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ token: z.ZodDefault<z.ZodString>;
61
61
  }, "strip", z.ZodTypeAny, {
62
- enabled: boolean;
63
62
  allowFrom: string[];
64
- channelSecret: string;
65
- channelAccessToken: string;
63
+ enabled: boolean;
64
+ token: string;
65
+ proxy?: string | null | undefined;
66
66
  }, {
67
- enabled?: boolean | undefined;
68
67
  allowFrom?: string[] | undefined;
69
- channelSecret?: string | undefined;
70
- channelAccessToken?: string | undefined;
68
+ enabled?: boolean | undefined;
69
+ proxy?: string | null | undefined;
70
+ token?: string | undefined;
71
71
  }>>;
72
72
  }, "strip", z.ZodTypeAny, {
73
73
  telegram: {
74
+ allowFrom: string[];
74
75
  enabled: boolean;
75
76
  token: string;
76
- allowFrom: string[];
77
77
  proxy?: string | null | undefined;
78
78
  };
79
79
  line: {
80
- enabled: boolean;
81
80
  allowFrom: string[];
82
- channelSecret: string;
81
+ enabled: boolean;
83
82
  channelAccessToken: string;
83
+ channelSecret: string;
84
84
  };
85
85
  }, {
86
86
  telegram?: {
87
- enabled?: boolean | undefined;
88
- token?: string | undefined;
89
87
  allowFrom?: string[] | undefined;
88
+ enabled?: boolean | undefined;
90
89
  proxy?: string | null | undefined;
90
+ token?: string | undefined;
91
91
  } | undefined;
92
92
  line?: {
93
- enabled?: boolean | undefined;
94
93
  allowFrom?: string[] | undefined;
95
- channelSecret?: string | undefined;
94
+ enabled?: boolean | undefined;
96
95
  channelAccessToken?: string | undefined;
96
+ channelSecret?: string | undefined;
97
97
  } | undefined;
98
98
  }>;
99
99
  type ChannelsConfig = z.infer<typeof ChannelsConfigSchema>;
100
100
  declare const AgentDefaultsSchema: z.ZodObject<{
101
- workspace: z.ZodDefault<z.ZodString>;
102
- model: z.ZodDefault<z.ZodString>;
103
101
  consolidationModel: z.ZodOptional<z.ZodString>;
104
102
  maxTokens: z.ZodDefault<z.ZodNumber>;
105
- temperature: z.ZodDefault<z.ZodNumber>;
106
103
  maxToolIterations: z.ZodDefault<z.ZodNumber>;
107
104
  memoryWindow: z.ZodDefault<z.ZodNumber>;
105
+ model: z.ZodDefault<z.ZodString>;
106
+ temperature: z.ZodDefault<z.ZodNumber>;
107
+ workspace: z.ZodDefault<z.ZodString>;
108
108
  }, "strip", z.ZodTypeAny, {
109
- workspace: string;
110
- model: string;
111
109
  maxTokens: number;
112
- temperature: number;
113
110
  maxToolIterations: number;
114
111
  memoryWindow: number;
112
+ model: string;
113
+ temperature: number;
114
+ workspace: string;
115
115
  consolidationModel?: string | undefined;
116
116
  }, {
117
- workspace?: string | undefined;
118
- model?: string | undefined;
119
117
  consolidationModel?: string | undefined;
120
118
  maxTokens?: number | undefined;
121
- temperature?: number | undefined;
122
119
  maxToolIterations?: number | undefined;
123
120
  memoryWindow?: number | undefined;
121
+ model?: string | undefined;
122
+ temperature?: number | undefined;
123
+ workspace?: string | undefined;
124
124
  }>;
125
125
  type AgentDefaults = z.infer<typeof AgentDefaultsSchema>;
126
126
  declare function resolveConsolidationModel(defaults: AgentDefaults): string;
127
127
  declare const AgentsConfigSchema: z.ZodObject<{
128
128
  defaults: z.ZodDefault<z.ZodObject<{
129
- workspace: z.ZodDefault<z.ZodString>;
130
- model: z.ZodDefault<z.ZodString>;
131
129
  consolidationModel: z.ZodOptional<z.ZodString>;
132
130
  maxTokens: z.ZodDefault<z.ZodNumber>;
133
- temperature: z.ZodDefault<z.ZodNumber>;
134
131
  maxToolIterations: z.ZodDefault<z.ZodNumber>;
135
132
  memoryWindow: z.ZodDefault<z.ZodNumber>;
133
+ model: z.ZodDefault<z.ZodString>;
134
+ temperature: z.ZodDefault<z.ZodNumber>;
135
+ workspace: z.ZodDefault<z.ZodString>;
136
136
  }, "strip", z.ZodTypeAny, {
137
- workspace: string;
138
- model: string;
139
137
  maxTokens: number;
140
- temperature: number;
141
138
  maxToolIterations: number;
142
139
  memoryWindow: number;
140
+ model: string;
141
+ temperature: number;
142
+ workspace: string;
143
143
  consolidationModel?: string | undefined;
144
144
  }, {
145
- workspace?: string | undefined;
146
- model?: string | undefined;
147
145
  consolidationModel?: string | undefined;
148
146
  maxTokens?: number | undefined;
149
- temperature?: number | undefined;
150
147
  maxToolIterations?: number | undefined;
151
148
  memoryWindow?: number | undefined;
149
+ model?: string | undefined;
150
+ temperature?: number | undefined;
151
+ workspace?: string | undefined;
152
152
  }>>;
153
153
  }, "strip", z.ZodTypeAny, {
154
154
  defaults: {
155
- workspace: string;
156
- model: string;
157
155
  maxTokens: number;
158
- temperature: number;
159
156
  maxToolIterations: number;
160
157
  memoryWindow: number;
158
+ model: string;
159
+ temperature: number;
160
+ workspace: string;
161
161
  consolidationModel?: string | undefined;
162
162
  };
163
163
  }, {
164
164
  defaults?: {
165
- workspace?: string | undefined;
166
- model?: string | undefined;
167
165
  consolidationModel?: string | undefined;
168
166
  maxTokens?: number | undefined;
169
- temperature?: number | undefined;
170
167
  maxToolIterations?: number | undefined;
171
168
  memoryWindow?: number | undefined;
169
+ model?: string | undefined;
170
+ temperature?: number | undefined;
171
+ workspace?: string | undefined;
172
172
  } | undefined;
173
173
  }>;
174
174
  type AgentsConfig = z.infer<typeof AgentsConfigSchema>;
175
175
  declare const ProviderConfigSchema: z.ZodObject<{
176
- apiKey: z.ZodDefault<z.ZodString>;
177
176
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ apiKey: z.ZodDefault<z.ZodString>;
178
178
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
179
179
  }, "strip", z.ZodTypeAny, {
180
180
  apiKey: string;
181
181
  apiBase?: string | null | undefined;
182
182
  extraHeaders?: Record<string, string> | null | undefined;
183
183
  }, {
184
- apiKey?: string | undefined;
185
184
  apiBase?: string | null | undefined;
185
+ apiKey?: string | undefined;
186
186
  extraHeaders?: Record<string, string> | null | undefined;
187
187
  }>;
188
188
  type ProviderConfig = z.infer<typeof ProviderConfigSchema>;
189
189
  declare const ProvidersConfigSchema: z.ZodObject<{
190
- anthropic: z.ZodDefault<z.ZodObject<{
191
- apiKey: z.ZodDefault<z.ZodString>;
190
+ aihubmix: z.ZodDefault<z.ZodObject<{
192
191
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
+ apiKey: z.ZodDefault<z.ZodString>;
193
193
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
194
194
  }, "strip", z.ZodTypeAny, {
195
195
  apiKey: string;
196
196
  apiBase?: string | null | undefined;
197
197
  extraHeaders?: Record<string, string> | null | undefined;
198
198
  }, {
199
- apiKey?: string | undefined;
200
199
  apiBase?: string | null | undefined;
200
+ apiKey?: string | undefined;
201
201
  extraHeaders?: Record<string, string> | null | undefined;
202
202
  }>>;
203
- openai: z.ZodDefault<z.ZodObject<{
204
- apiKey: z.ZodDefault<z.ZodString>;
203
+ anthropic: z.ZodDefault<z.ZodObject<{
205
204
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
205
+ apiKey: z.ZodDefault<z.ZodString>;
206
206
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
207
207
  }, "strip", z.ZodTypeAny, {
208
208
  apiKey: string;
209
209
  apiBase?: string | null | undefined;
210
210
  extraHeaders?: Record<string, string> | null | undefined;
211
211
  }, {
212
- apiKey?: string | undefined;
213
212
  apiBase?: string | null | undefined;
213
+ apiKey?: string | undefined;
214
214
  extraHeaders?: Record<string, string> | null | undefined;
215
215
  }>>;
216
- openrouter: z.ZodDefault<z.ZodObject<{
217
- apiKey: z.ZodDefault<z.ZodString>;
216
+ dashscope: z.ZodDefault<z.ZodObject<{
218
217
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ apiKey: z.ZodDefault<z.ZodString>;
219
219
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
220
220
  }, "strip", z.ZodTypeAny, {
221
221
  apiKey: string;
222
222
  apiBase?: string | null | undefined;
223
223
  extraHeaders?: Record<string, string> | null | undefined;
224
224
  }, {
225
- apiKey?: string | undefined;
226
225
  apiBase?: string | null | undefined;
226
+ apiKey?: string | undefined;
227
227
  extraHeaders?: Record<string, string> | null | undefined;
228
228
  }>>;
229
229
  deepseek: z.ZodDefault<z.ZodObject<{
230
- apiKey: z.ZodDefault<z.ZodString>;
231
230
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ apiKey: z.ZodDefault<z.ZodString>;
232
232
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
233
233
  }, "strip", z.ZodTypeAny, {
234
234
  apiKey: string;
235
235
  apiBase?: string | null | undefined;
236
236
  extraHeaders?: Record<string, string> | null | undefined;
237
237
  }, {
238
- apiKey?: string | undefined;
239
238
  apiBase?: string | null | undefined;
239
+ apiKey?: string | undefined;
240
240
  extraHeaders?: Record<string, string> | null | undefined;
241
241
  }>>;
242
- groq: z.ZodDefault<z.ZodObject<{
243
- apiKey: z.ZodDefault<z.ZodString>;
242
+ gemini: z.ZodDefault<z.ZodObject<{
244
243
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ apiKey: z.ZodDefault<z.ZodString>;
245
245
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  apiKey: string;
248
248
  apiBase?: string | null | undefined;
249
249
  extraHeaders?: Record<string, string> | null | undefined;
250
250
  }, {
251
- apiKey?: string | undefined;
252
251
  apiBase?: string | null | undefined;
252
+ apiKey?: string | undefined;
253
253
  extraHeaders?: Record<string, string> | null | undefined;
254
254
  }>>;
255
- gemini: z.ZodDefault<z.ZodObject<{
256
- apiKey: z.ZodDefault<z.ZodString>;
255
+ groq: z.ZodDefault<z.ZodObject<{
257
256
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ apiKey: z.ZodDefault<z.ZodString>;
258
258
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
259
259
  }, "strip", z.ZodTypeAny, {
260
260
  apiKey: string;
261
261
  apiBase?: string | null | undefined;
262
262
  extraHeaders?: Record<string, string> | null | undefined;
263
263
  }, {
264
- apiKey?: string | undefined;
265
264
  apiBase?: string | null | undefined;
265
+ apiKey?: string | undefined;
266
266
  extraHeaders?: Record<string, string> | null | undefined;
267
267
  }>>;
268
- zhipu: z.ZodDefault<z.ZodObject<{
269
- apiKey: z.ZodDefault<z.ZodString>;
268
+ moonshot: z.ZodDefault<z.ZodObject<{
270
269
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
+ apiKey: z.ZodDefault<z.ZodString>;
271
271
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
272
272
  }, "strip", z.ZodTypeAny, {
273
273
  apiKey: string;
274
274
  apiBase?: string | null | undefined;
275
275
  extraHeaders?: Record<string, string> | null | undefined;
276
276
  }, {
277
- apiKey?: string | undefined;
278
277
  apiBase?: string | null | undefined;
278
+ apiKey?: string | undefined;
279
279
  extraHeaders?: Record<string, string> | null | undefined;
280
280
  }>>;
281
- dashscope: z.ZodDefault<z.ZodObject<{
282
- apiKey: z.ZodDefault<z.ZodString>;
281
+ openai: z.ZodDefault<z.ZodObject<{
283
282
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
+ apiKey: z.ZodDefault<z.ZodString>;
284
284
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
285
285
  }, "strip", z.ZodTypeAny, {
286
286
  apiKey: string;
287
287
  apiBase?: string | null | undefined;
288
288
  extraHeaders?: Record<string, string> | null | undefined;
289
289
  }, {
290
- apiKey?: string | undefined;
291
290
  apiBase?: string | null | undefined;
291
+ apiKey?: string | undefined;
292
292
  extraHeaders?: Record<string, string> | null | undefined;
293
293
  }>>;
294
- moonshot: z.ZodDefault<z.ZodObject<{
295
- apiKey: z.ZodDefault<z.ZodString>;
294
+ openrouter: z.ZodDefault<z.ZodObject<{
296
295
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ apiKey: z.ZodDefault<z.ZodString>;
297
297
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
298
298
  }, "strip", z.ZodTypeAny, {
299
299
  apiKey: string;
300
300
  apiBase?: string | null | undefined;
301
301
  extraHeaders?: Record<string, string> | null | undefined;
302
302
  }, {
303
- apiKey?: string | undefined;
304
303
  apiBase?: string | null | undefined;
304
+ apiKey?: string | undefined;
305
305
  extraHeaders?: Record<string, string> | null | undefined;
306
306
  }>>;
307
- aihubmix: z.ZodDefault<z.ZodObject<{
308
- apiKey: z.ZodDefault<z.ZodString>;
307
+ vllm: z.ZodDefault<z.ZodObject<{
309
308
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ apiKey: z.ZodDefault<z.ZodString>;
310
310
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
311
311
  }, "strip", z.ZodTypeAny, {
312
312
  apiKey: string;
313
313
  apiBase?: string | null | undefined;
314
314
  extraHeaders?: Record<string, string> | null | undefined;
315
315
  }, {
316
- apiKey?: string | undefined;
317
316
  apiBase?: string | null | undefined;
317
+ apiKey?: string | undefined;
318
318
  extraHeaders?: Record<string, string> | null | undefined;
319
319
  }>>;
320
- vllm: z.ZodDefault<z.ZodObject<{
321
- apiKey: z.ZodDefault<z.ZodString>;
320
+ zhipu: z.ZodDefault<z.ZodObject<{
322
321
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ apiKey: z.ZodDefault<z.ZodString>;
323
323
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
324
324
  }, "strip", z.ZodTypeAny, {
325
325
  apiKey: string;
326
326
  apiBase?: string | null | undefined;
327
327
  extraHeaders?: Record<string, string> | null | undefined;
328
328
  }, {
329
- apiKey?: string | undefined;
330
329
  apiBase?: string | null | undefined;
330
+ apiKey?: string | undefined;
331
331
  extraHeaders?: Record<string, string> | null | undefined;
332
332
  }>>;
333
333
  }, "strip", z.ZodTypeAny, {
334
- anthropic: {
334
+ aihubmix: {
335
335
  apiKey: string;
336
336
  apiBase?: string | null | undefined;
337
337
  extraHeaders?: Record<string, string> | null | undefined;
338
338
  };
339
- openai: {
339
+ anthropic: {
340
340
  apiKey: string;
341
341
  apiBase?: string | null | undefined;
342
342
  extraHeaders?: Record<string, string> | null | undefined;
343
343
  };
344
- openrouter: {
344
+ dashscope: {
345
345
  apiKey: string;
346
346
  apiBase?: string | null | undefined;
347
347
  extraHeaders?: Record<string, string> | null | undefined;
@@ -351,95 +351,95 @@ declare const ProvidersConfigSchema: z.ZodObject<{
351
351
  apiBase?: string | null | undefined;
352
352
  extraHeaders?: Record<string, string> | null | undefined;
353
353
  };
354
- groq: {
354
+ gemini: {
355
355
  apiKey: string;
356
356
  apiBase?: string | null | undefined;
357
357
  extraHeaders?: Record<string, string> | null | undefined;
358
358
  };
359
- gemini: {
359
+ groq: {
360
360
  apiKey: string;
361
361
  apiBase?: string | null | undefined;
362
362
  extraHeaders?: Record<string, string> | null | undefined;
363
363
  };
364
- zhipu: {
364
+ moonshot: {
365
365
  apiKey: string;
366
366
  apiBase?: string | null | undefined;
367
367
  extraHeaders?: Record<string, string> | null | undefined;
368
368
  };
369
- dashscope: {
369
+ openai: {
370
370
  apiKey: string;
371
371
  apiBase?: string | null | undefined;
372
372
  extraHeaders?: Record<string, string> | null | undefined;
373
373
  };
374
- moonshot: {
374
+ openrouter: {
375
375
  apiKey: string;
376
376
  apiBase?: string | null | undefined;
377
377
  extraHeaders?: Record<string, string> | null | undefined;
378
378
  };
379
- aihubmix: {
379
+ vllm: {
380
380
  apiKey: string;
381
381
  apiBase?: string | null | undefined;
382
382
  extraHeaders?: Record<string, string> | null | undefined;
383
383
  };
384
- vllm: {
384
+ zhipu: {
385
385
  apiKey: string;
386
386
  apiBase?: string | null | undefined;
387
387
  extraHeaders?: Record<string, string> | null | undefined;
388
388
  };
389
389
  }, {
390
- anthropic?: {
391
- apiKey?: string | undefined;
390
+ aihubmix?: {
392
391
  apiBase?: string | null | undefined;
392
+ apiKey?: string | undefined;
393
393
  extraHeaders?: Record<string, string> | null | undefined;
394
394
  } | undefined;
395
- openai?: {
396
- apiKey?: string | undefined;
395
+ anthropic?: {
397
396
  apiBase?: string | null | undefined;
397
+ apiKey?: string | undefined;
398
398
  extraHeaders?: Record<string, string> | null | undefined;
399
399
  } | undefined;
400
- openrouter?: {
401
- apiKey?: string | undefined;
400
+ dashscope?: {
402
401
  apiBase?: string | null | undefined;
402
+ apiKey?: string | undefined;
403
403
  extraHeaders?: Record<string, string> | null | undefined;
404
404
  } | undefined;
405
405
  deepseek?: {
406
- apiKey?: string | undefined;
407
406
  apiBase?: string | null | undefined;
408
- extraHeaders?: Record<string, string> | null | undefined;
409
- } | undefined;
410
- groq?: {
411
407
  apiKey?: string | undefined;
412
- apiBase?: string | null | undefined;
413
408
  extraHeaders?: Record<string, string> | null | undefined;
414
409
  } | undefined;
415
410
  gemini?: {
416
- apiKey?: string | undefined;
417
411
  apiBase?: string | null | undefined;
418
- extraHeaders?: Record<string, string> | null | undefined;
419
- } | undefined;
420
- zhipu?: {
421
412
  apiKey?: string | undefined;
422
- apiBase?: string | null | undefined;
423
413
  extraHeaders?: Record<string, string> | null | undefined;
424
414
  } | undefined;
425
- dashscope?: {
426
- apiKey?: string | undefined;
415
+ groq?: {
427
416
  apiBase?: string | null | undefined;
417
+ apiKey?: string | undefined;
428
418
  extraHeaders?: Record<string, string> | null | undefined;
429
419
  } | undefined;
430
420
  moonshot?: {
431
- apiKey?: string | undefined;
432
421
  apiBase?: string | null | undefined;
422
+ apiKey?: string | undefined;
433
423
  extraHeaders?: Record<string, string> | null | undefined;
434
424
  } | undefined;
435
- aihubmix?: {
425
+ openai?: {
426
+ apiBase?: string | null | undefined;
436
427
  apiKey?: string | undefined;
428
+ extraHeaders?: Record<string, string> | null | undefined;
429
+ } | undefined;
430
+ openrouter?: {
437
431
  apiBase?: string | null | undefined;
432
+ apiKey?: string | undefined;
438
433
  extraHeaders?: Record<string, string> | null | undefined;
439
434
  } | undefined;
440
435
  vllm?: {
436
+ apiBase?: string | null | undefined;
441
437
  apiKey?: string | undefined;
438
+ extraHeaders?: Record<string, string> | null | undefined;
439
+ } | undefined;
440
+ zhipu?: {
442
441
  apiBase?: string | null | undefined;
442
+ apiKey?: string | undefined;
443
443
  extraHeaders?: Record<string, string> | null | undefined;
444
444
  } | undefined;
445
445
  }>;
@@ -496,8 +496,8 @@ declare const ExecToolConfigSchema: z.ZodObject<{
496
496
  }>;
497
497
  type ExecToolConfig = z.infer<typeof ExecToolConfigSchema>;
498
498
  declare const CustomToolConfigSchema: z.ZodObject<{
499
- module: z.ZodString;
500
499
  export: z.ZodOptional<z.ZodString>;
500
+ module: z.ZodString;
501
501
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
502
  }, "strip", z.ZodTypeAny, {
503
503
  module: string;
@@ -510,6 +510,29 @@ declare const CustomToolConfigSchema: z.ZodObject<{
510
510
  }>;
511
511
  type CustomToolConfig = z.infer<typeof CustomToolConfigSchema>;
512
512
  declare const ToolsConfigSchema: z.ZodObject<{
513
+ custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
514
+ export: z.ZodOptional<z.ZodString>;
515
+ module: z.ZodString;
516
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
+ }, "strip", z.ZodTypeAny, {
518
+ module: string;
519
+ options?: Record<string, unknown> | undefined;
520
+ export?: string | undefined;
521
+ }, {
522
+ module: string;
523
+ options?: Record<string, unknown> | undefined;
524
+ export?: string | undefined;
525
+ }>, "many">>;
526
+ disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
+ enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
528
+ exec: z.ZodDefault<z.ZodObject<{
529
+ timeout: z.ZodDefault<z.ZodNumber>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ timeout: number;
532
+ }, {
533
+ timeout?: number | undefined;
534
+ }>>;
535
+ restrictToWorkspace: z.ZodDefault<z.ZodBoolean>;
513
536
  web: z.ZodDefault<z.ZodObject<{
514
537
  search: z.ZodDefault<z.ZodObject<{
515
538
  apiKey: z.ZodDefault<z.ZodString>;
@@ -532,331 +555,318 @@ declare const ToolsConfigSchema: z.ZodObject<{
532
555
  maxResults?: number | undefined;
533
556
  } | undefined;
534
557
  }>>;
535
- exec: z.ZodDefault<z.ZodObject<{
536
- timeout: z.ZodDefault<z.ZodNumber>;
537
- }, "strip", z.ZodTypeAny, {
538
- timeout: number;
539
- }, {
540
- timeout?: number | undefined;
541
- }>>;
542
- restrictToWorkspace: z.ZodDefault<z.ZodBoolean>;
543
- enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
- disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
545
- custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
546
- module: z.ZodString;
547
- export: z.ZodOptional<z.ZodString>;
548
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
549
- }, "strip", z.ZodTypeAny, {
550
- module: string;
551
- options?: Record<string, unknown> | undefined;
552
- export?: string | undefined;
553
- }, {
554
- module: string;
555
- options?: Record<string, unknown> | undefined;
556
- export?: string | undefined;
557
- }>, "many">>;
558
558
  }, "strip", z.ZodTypeAny, {
559
+ exec: {
560
+ timeout: number;
561
+ };
562
+ restrictToWorkspace: boolean;
559
563
  web: {
560
564
  search: {
561
565
  apiKey: string;
562
566
  maxResults: number;
563
567
  };
564
568
  };
565
- exec: {
566
- timeout: number;
567
- };
568
- restrictToWorkspace: boolean;
569
569
  enabled?: string[] | undefined;
570
- disabled?: string[] | undefined;
571
570
  custom?: {
572
571
  module: string;
573
572
  options?: Record<string, unknown> | undefined;
574
573
  export?: string | undefined;
575
574
  }[] | undefined;
575
+ disabled?: string[] | undefined;
576
576
  }, {
577
- enabled?: string[] | undefined;
578
- web?: {
579
- search?: {
580
- apiKey?: string | undefined;
581
- maxResults?: number | undefined;
582
- } | undefined;
583
- } | undefined;
584
577
  exec?: {
585
578
  timeout?: number | undefined;
586
579
  } | undefined;
587
- restrictToWorkspace?: boolean | undefined;
588
- disabled?: string[] | undefined;
580
+ enabled?: string[] | undefined;
589
581
  custom?: {
590
582
  module: string;
591
583
  options?: Record<string, unknown> | undefined;
592
584
  export?: string | undefined;
593
585
  }[] | undefined;
586
+ disabled?: string[] | undefined;
587
+ restrictToWorkspace?: boolean | undefined;
588
+ web?: {
589
+ search?: {
590
+ apiKey?: string | undefined;
591
+ maxResults?: number | undefined;
592
+ } | undefined;
593
+ } | undefined;
594
594
  }>;
595
595
  type ToolsConfig = z.infer<typeof ToolsConfigSchema>;
596
596
  declare const ConfigSchema: z.ZodObject<{
597
597
  agents: z.ZodDefault<z.ZodObject<{
598
598
  defaults: z.ZodDefault<z.ZodObject<{
599
- workspace: z.ZodDefault<z.ZodString>;
600
- model: z.ZodDefault<z.ZodString>;
601
599
  consolidationModel: z.ZodOptional<z.ZodString>;
602
600
  maxTokens: z.ZodDefault<z.ZodNumber>;
603
- temperature: z.ZodDefault<z.ZodNumber>;
604
601
  maxToolIterations: z.ZodDefault<z.ZodNumber>;
605
602
  memoryWindow: z.ZodDefault<z.ZodNumber>;
603
+ model: z.ZodDefault<z.ZodString>;
604
+ temperature: z.ZodDefault<z.ZodNumber>;
605
+ workspace: z.ZodDefault<z.ZodString>;
606
606
  }, "strip", z.ZodTypeAny, {
607
- workspace: string;
608
- model: string;
609
607
  maxTokens: number;
610
- temperature: number;
611
608
  maxToolIterations: number;
612
609
  memoryWindow: number;
610
+ model: string;
611
+ temperature: number;
612
+ workspace: string;
613
613
  consolidationModel?: string | undefined;
614
614
  }, {
615
- workspace?: string | undefined;
616
- model?: string | undefined;
617
615
  consolidationModel?: string | undefined;
618
616
  maxTokens?: number | undefined;
619
- temperature?: number | undefined;
620
617
  maxToolIterations?: number | undefined;
621
618
  memoryWindow?: number | undefined;
619
+ model?: string | undefined;
620
+ temperature?: number | undefined;
621
+ workspace?: string | undefined;
622
622
  }>>;
623
623
  }, "strip", z.ZodTypeAny, {
624
624
  defaults: {
625
- workspace: string;
626
- model: string;
627
625
  maxTokens: number;
628
- temperature: number;
629
626
  maxToolIterations: number;
630
627
  memoryWindow: number;
628
+ model: string;
629
+ temperature: number;
630
+ workspace: string;
631
631
  consolidationModel?: string | undefined;
632
632
  };
633
633
  }, {
634
634
  defaults?: {
635
- workspace?: string | undefined;
636
- model?: string | undefined;
637
635
  consolidationModel?: string | undefined;
638
636
  maxTokens?: number | undefined;
639
- temperature?: number | undefined;
640
637
  maxToolIterations?: number | undefined;
641
638
  memoryWindow?: number | undefined;
639
+ model?: string | undefined;
640
+ temperature?: number | undefined;
641
+ workspace?: string | undefined;
642
642
  } | undefined;
643
643
  }>>;
644
644
  channels: z.ZodDefault<z.ZodObject<{
645
- telegram: z.ZodDefault<z.ZodObject<{
646
- enabled: z.ZodDefault<z.ZodBoolean>;
647
- token: z.ZodDefault<z.ZodString>;
645
+ line: z.ZodDefault<z.ZodObject<{
648
646
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
649
- proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ channelAccessToken: z.ZodDefault<z.ZodString>;
648
+ channelSecret: z.ZodDefault<z.ZodString>;
649
+ enabled: z.ZodDefault<z.ZodBoolean>;
650
650
  }, "strip", z.ZodTypeAny, {
651
- enabled: boolean;
652
- token: string;
653
651
  allowFrom: string[];
654
- proxy?: string | null | undefined;
652
+ enabled: boolean;
653
+ channelAccessToken: string;
654
+ channelSecret: string;
655
655
  }, {
656
- enabled?: boolean | undefined;
657
- token?: string | undefined;
658
656
  allowFrom?: string[] | undefined;
659
- proxy?: string | null | undefined;
657
+ enabled?: boolean | undefined;
658
+ channelAccessToken?: string | undefined;
659
+ channelSecret?: string | undefined;
660
660
  }>>;
661
- line: z.ZodDefault<z.ZodObject<{
662
- enabled: z.ZodDefault<z.ZodBoolean>;
663
- channelSecret: z.ZodDefault<z.ZodString>;
664
- channelAccessToken: z.ZodDefault<z.ZodString>;
661
+ telegram: z.ZodDefault<z.ZodObject<{
665
662
  allowFrom: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
663
+ enabled: z.ZodDefault<z.ZodBoolean>;
664
+ proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
665
+ token: z.ZodDefault<z.ZodString>;
666
666
  }, "strip", z.ZodTypeAny, {
667
- enabled: boolean;
668
667
  allowFrom: string[];
669
- channelSecret: string;
670
- channelAccessToken: string;
668
+ enabled: boolean;
669
+ token: string;
670
+ proxy?: string | null | undefined;
671
671
  }, {
672
- enabled?: boolean | undefined;
673
672
  allowFrom?: string[] | undefined;
674
- channelSecret?: string | undefined;
675
- channelAccessToken?: string | undefined;
673
+ enabled?: boolean | undefined;
674
+ proxy?: string | null | undefined;
675
+ token?: string | undefined;
676
676
  }>>;
677
677
  }, "strip", z.ZodTypeAny, {
678
678
  telegram: {
679
+ allowFrom: string[];
679
680
  enabled: boolean;
680
681
  token: string;
681
- allowFrom: string[];
682
682
  proxy?: string | null | undefined;
683
683
  };
684
684
  line: {
685
- enabled: boolean;
686
685
  allowFrom: string[];
687
- channelSecret: string;
686
+ enabled: boolean;
688
687
  channelAccessToken: string;
688
+ channelSecret: string;
689
689
  };
690
690
  }, {
691
691
  telegram?: {
692
- enabled?: boolean | undefined;
693
- token?: string | undefined;
694
692
  allowFrom?: string[] | undefined;
693
+ enabled?: boolean | undefined;
695
694
  proxy?: string | null | undefined;
695
+ token?: string | undefined;
696
696
  } | undefined;
697
697
  line?: {
698
- enabled?: boolean | undefined;
699
698
  allowFrom?: string[] | undefined;
700
- channelSecret?: string | undefined;
699
+ enabled?: boolean | undefined;
701
700
  channelAccessToken?: string | undefined;
701
+ channelSecret?: string | undefined;
702
702
  } | undefined;
703
703
  }>>;
704
+ gateway: z.ZodDefault<z.ZodObject<{
705
+ host: z.ZodDefault<z.ZodString>;
706
+ port: z.ZodDefault<z.ZodNumber>;
707
+ }, "strip", z.ZodTypeAny, {
708
+ host: string;
709
+ port: number;
710
+ }, {
711
+ host?: string | undefined;
712
+ port?: number | undefined;
713
+ }>>;
704
714
  providers: z.ZodDefault<z.ZodObject<{
705
- anthropic: z.ZodDefault<z.ZodObject<{
706
- apiKey: z.ZodDefault<z.ZodString>;
715
+ aihubmix: z.ZodDefault<z.ZodObject<{
707
716
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
717
+ apiKey: z.ZodDefault<z.ZodString>;
708
718
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
709
719
  }, "strip", z.ZodTypeAny, {
710
720
  apiKey: string;
711
721
  apiBase?: string | null | undefined;
712
722
  extraHeaders?: Record<string, string> | null | undefined;
713
723
  }, {
714
- apiKey?: string | undefined;
715
724
  apiBase?: string | null | undefined;
725
+ apiKey?: string | undefined;
716
726
  extraHeaders?: Record<string, string> | null | undefined;
717
727
  }>>;
718
- openai: z.ZodDefault<z.ZodObject<{
719
- apiKey: z.ZodDefault<z.ZodString>;
728
+ anthropic: z.ZodDefault<z.ZodObject<{
720
729
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
730
+ apiKey: z.ZodDefault<z.ZodString>;
721
731
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
722
732
  }, "strip", z.ZodTypeAny, {
723
733
  apiKey: string;
724
734
  apiBase?: string | null | undefined;
725
735
  extraHeaders?: Record<string, string> | null | undefined;
726
736
  }, {
727
- apiKey?: string | undefined;
728
737
  apiBase?: string | null | undefined;
738
+ apiKey?: string | undefined;
729
739
  extraHeaders?: Record<string, string> | null | undefined;
730
740
  }>>;
731
- openrouter: z.ZodDefault<z.ZodObject<{
732
- apiKey: z.ZodDefault<z.ZodString>;
741
+ dashscope: z.ZodDefault<z.ZodObject<{
733
742
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
+ apiKey: z.ZodDefault<z.ZodString>;
734
744
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
735
745
  }, "strip", z.ZodTypeAny, {
736
746
  apiKey: string;
737
747
  apiBase?: string | null | undefined;
738
748
  extraHeaders?: Record<string, string> | null | undefined;
739
749
  }, {
740
- apiKey?: string | undefined;
741
750
  apiBase?: string | null | undefined;
751
+ apiKey?: string | undefined;
742
752
  extraHeaders?: Record<string, string> | null | undefined;
743
753
  }>>;
744
754
  deepseek: z.ZodDefault<z.ZodObject<{
745
- apiKey: z.ZodDefault<z.ZodString>;
746
755
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
756
+ apiKey: z.ZodDefault<z.ZodString>;
747
757
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
748
758
  }, "strip", z.ZodTypeAny, {
749
759
  apiKey: string;
750
760
  apiBase?: string | null | undefined;
751
761
  extraHeaders?: Record<string, string> | null | undefined;
752
762
  }, {
753
- apiKey?: string | undefined;
754
763
  apiBase?: string | null | undefined;
764
+ apiKey?: string | undefined;
755
765
  extraHeaders?: Record<string, string> | null | undefined;
756
766
  }>>;
757
- groq: z.ZodDefault<z.ZodObject<{
758
- apiKey: z.ZodDefault<z.ZodString>;
767
+ gemini: z.ZodDefault<z.ZodObject<{
759
768
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
+ apiKey: z.ZodDefault<z.ZodString>;
760
770
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
761
771
  }, "strip", z.ZodTypeAny, {
762
772
  apiKey: string;
763
773
  apiBase?: string | null | undefined;
764
774
  extraHeaders?: Record<string, string> | null | undefined;
765
775
  }, {
766
- apiKey?: string | undefined;
767
776
  apiBase?: string | null | undefined;
777
+ apiKey?: string | undefined;
768
778
  extraHeaders?: Record<string, string> | null | undefined;
769
779
  }>>;
770
- gemini: z.ZodDefault<z.ZodObject<{
771
- apiKey: z.ZodDefault<z.ZodString>;
780
+ groq: z.ZodDefault<z.ZodObject<{
772
781
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
782
+ apiKey: z.ZodDefault<z.ZodString>;
773
783
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
774
784
  }, "strip", z.ZodTypeAny, {
775
785
  apiKey: string;
776
786
  apiBase?: string | null | undefined;
777
787
  extraHeaders?: Record<string, string> | null | undefined;
778
788
  }, {
779
- apiKey?: string | undefined;
780
789
  apiBase?: string | null | undefined;
790
+ apiKey?: string | undefined;
781
791
  extraHeaders?: Record<string, string> | null | undefined;
782
792
  }>>;
783
- zhipu: z.ZodDefault<z.ZodObject<{
784
- apiKey: z.ZodDefault<z.ZodString>;
793
+ moonshot: z.ZodDefault<z.ZodObject<{
785
794
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
+ apiKey: z.ZodDefault<z.ZodString>;
786
796
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
787
797
  }, "strip", z.ZodTypeAny, {
788
798
  apiKey: string;
789
799
  apiBase?: string | null | undefined;
790
800
  extraHeaders?: Record<string, string> | null | undefined;
791
801
  }, {
792
- apiKey?: string | undefined;
793
802
  apiBase?: string | null | undefined;
803
+ apiKey?: string | undefined;
794
804
  extraHeaders?: Record<string, string> | null | undefined;
795
805
  }>>;
796
- dashscope: z.ZodDefault<z.ZodObject<{
797
- apiKey: z.ZodDefault<z.ZodString>;
806
+ openai: z.ZodDefault<z.ZodObject<{
798
807
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
808
+ apiKey: z.ZodDefault<z.ZodString>;
799
809
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
800
810
  }, "strip", z.ZodTypeAny, {
801
811
  apiKey: string;
802
812
  apiBase?: string | null | undefined;
803
813
  extraHeaders?: Record<string, string> | null | undefined;
804
814
  }, {
805
- apiKey?: string | undefined;
806
815
  apiBase?: string | null | undefined;
816
+ apiKey?: string | undefined;
807
817
  extraHeaders?: Record<string, string> | null | undefined;
808
818
  }>>;
809
- moonshot: z.ZodDefault<z.ZodObject<{
810
- apiKey: z.ZodDefault<z.ZodString>;
819
+ openrouter: z.ZodDefault<z.ZodObject<{
811
820
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
821
+ apiKey: z.ZodDefault<z.ZodString>;
812
822
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
813
823
  }, "strip", z.ZodTypeAny, {
814
824
  apiKey: string;
815
825
  apiBase?: string | null | undefined;
816
826
  extraHeaders?: Record<string, string> | null | undefined;
817
827
  }, {
818
- apiKey?: string | undefined;
819
828
  apiBase?: string | null | undefined;
829
+ apiKey?: string | undefined;
820
830
  extraHeaders?: Record<string, string> | null | undefined;
821
831
  }>>;
822
- aihubmix: z.ZodDefault<z.ZodObject<{
823
- apiKey: z.ZodDefault<z.ZodString>;
832
+ vllm: z.ZodDefault<z.ZodObject<{
824
833
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
834
+ apiKey: z.ZodDefault<z.ZodString>;
825
835
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
826
836
  }, "strip", z.ZodTypeAny, {
827
837
  apiKey: string;
828
838
  apiBase?: string | null | undefined;
829
839
  extraHeaders?: Record<string, string> | null | undefined;
830
840
  }, {
831
- apiKey?: string | undefined;
832
841
  apiBase?: string | null | undefined;
842
+ apiKey?: string | undefined;
833
843
  extraHeaders?: Record<string, string> | null | undefined;
834
844
  }>>;
835
- vllm: z.ZodDefault<z.ZodObject<{
836
- apiKey: z.ZodDefault<z.ZodString>;
845
+ zhipu: z.ZodDefault<z.ZodObject<{
837
846
  apiBase: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
+ apiKey: z.ZodDefault<z.ZodString>;
838
848
  extraHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
839
849
  }, "strip", z.ZodTypeAny, {
840
850
  apiKey: string;
841
851
  apiBase?: string | null | undefined;
842
852
  extraHeaders?: Record<string, string> | null | undefined;
843
853
  }, {
844
- apiKey?: string | undefined;
845
854
  apiBase?: string | null | undefined;
855
+ apiKey?: string | undefined;
846
856
  extraHeaders?: Record<string, string> | null | undefined;
847
857
  }>>;
848
858
  }, "strip", z.ZodTypeAny, {
849
- anthropic: {
859
+ aihubmix: {
850
860
  apiKey: string;
851
861
  apiBase?: string | null | undefined;
852
862
  extraHeaders?: Record<string, string> | null | undefined;
853
863
  };
854
- openai: {
864
+ anthropic: {
855
865
  apiKey: string;
856
866
  apiBase?: string | null | undefined;
857
867
  extraHeaders?: Record<string, string> | null | undefined;
858
868
  };
859
- openrouter: {
869
+ dashscope: {
860
870
  apiKey: string;
861
871
  apiBase?: string | null | undefined;
862
872
  extraHeaders?: Record<string, string> | null | undefined;
@@ -866,109 +876,122 @@ declare const ConfigSchema: z.ZodObject<{
866
876
  apiBase?: string | null | undefined;
867
877
  extraHeaders?: Record<string, string> | null | undefined;
868
878
  };
869
- groq: {
879
+ gemini: {
870
880
  apiKey: string;
871
881
  apiBase?: string | null | undefined;
872
882
  extraHeaders?: Record<string, string> | null | undefined;
873
883
  };
874
- gemini: {
884
+ groq: {
875
885
  apiKey: string;
876
886
  apiBase?: string | null | undefined;
877
887
  extraHeaders?: Record<string, string> | null | undefined;
878
888
  };
879
- zhipu: {
889
+ moonshot: {
880
890
  apiKey: string;
881
891
  apiBase?: string | null | undefined;
882
892
  extraHeaders?: Record<string, string> | null | undefined;
883
893
  };
884
- dashscope: {
894
+ openai: {
885
895
  apiKey: string;
886
896
  apiBase?: string | null | undefined;
887
897
  extraHeaders?: Record<string, string> | null | undefined;
888
898
  };
889
- moonshot: {
899
+ openrouter: {
890
900
  apiKey: string;
891
901
  apiBase?: string | null | undefined;
892
902
  extraHeaders?: Record<string, string> | null | undefined;
893
903
  };
894
- aihubmix: {
904
+ vllm: {
895
905
  apiKey: string;
896
906
  apiBase?: string | null | undefined;
897
907
  extraHeaders?: Record<string, string> | null | undefined;
898
908
  };
899
- vllm: {
909
+ zhipu: {
900
910
  apiKey: string;
901
911
  apiBase?: string | null | undefined;
902
912
  extraHeaders?: Record<string, string> | null | undefined;
903
913
  };
904
914
  }, {
905
- anthropic?: {
906
- apiKey?: string | undefined;
915
+ aihubmix?: {
907
916
  apiBase?: string | null | undefined;
917
+ apiKey?: string | undefined;
908
918
  extraHeaders?: Record<string, string> | null | undefined;
909
919
  } | undefined;
910
- openai?: {
911
- apiKey?: string | undefined;
920
+ anthropic?: {
912
921
  apiBase?: string | null | undefined;
922
+ apiKey?: string | undefined;
913
923
  extraHeaders?: Record<string, string> | null | undefined;
914
924
  } | undefined;
915
- openrouter?: {
916
- apiKey?: string | undefined;
925
+ dashscope?: {
917
926
  apiBase?: string | null | undefined;
927
+ apiKey?: string | undefined;
918
928
  extraHeaders?: Record<string, string> | null | undefined;
919
929
  } | undefined;
920
930
  deepseek?: {
921
- apiKey?: string | undefined;
922
931
  apiBase?: string | null | undefined;
923
- extraHeaders?: Record<string, string> | null | undefined;
924
- } | undefined;
925
- groq?: {
926
932
  apiKey?: string | undefined;
927
- apiBase?: string | null | undefined;
928
933
  extraHeaders?: Record<string, string> | null | undefined;
929
934
  } | undefined;
930
935
  gemini?: {
931
- apiKey?: string | undefined;
932
936
  apiBase?: string | null | undefined;
933
- extraHeaders?: Record<string, string> | null | undefined;
934
- } | undefined;
935
- zhipu?: {
936
937
  apiKey?: string | undefined;
937
- apiBase?: string | null | undefined;
938
938
  extraHeaders?: Record<string, string> | null | undefined;
939
939
  } | undefined;
940
- dashscope?: {
941
- apiKey?: string | undefined;
940
+ groq?: {
942
941
  apiBase?: string | null | undefined;
942
+ apiKey?: string | undefined;
943
943
  extraHeaders?: Record<string, string> | null | undefined;
944
944
  } | undefined;
945
945
  moonshot?: {
946
- apiKey?: string | undefined;
947
946
  apiBase?: string | null | undefined;
947
+ apiKey?: string | undefined;
948
948
  extraHeaders?: Record<string, string> | null | undefined;
949
949
  } | undefined;
950
- aihubmix?: {
950
+ openai?: {
951
+ apiBase?: string | null | undefined;
951
952
  apiKey?: string | undefined;
953
+ extraHeaders?: Record<string, string> | null | undefined;
954
+ } | undefined;
955
+ openrouter?: {
952
956
  apiBase?: string | null | undefined;
957
+ apiKey?: string | undefined;
953
958
  extraHeaders?: Record<string, string> | null | undefined;
954
959
  } | undefined;
955
960
  vllm?: {
961
+ apiBase?: string | null | undefined;
956
962
  apiKey?: string | undefined;
963
+ extraHeaders?: Record<string, string> | null | undefined;
964
+ } | undefined;
965
+ zhipu?: {
957
966
  apiBase?: string | null | undefined;
967
+ apiKey?: string | undefined;
958
968
  extraHeaders?: Record<string, string> | null | undefined;
959
969
  } | undefined;
960
970
  }>>;
961
- gateway: z.ZodDefault<z.ZodObject<{
962
- host: z.ZodDefault<z.ZodString>;
963
- port: z.ZodDefault<z.ZodNumber>;
964
- }, "strip", z.ZodTypeAny, {
965
- host: string;
966
- port: number;
967
- }, {
968
- host?: string | undefined;
969
- port?: number | undefined;
970
- }>>;
971
971
  tools: z.ZodDefault<z.ZodObject<{
972
+ custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
973
+ export: z.ZodOptional<z.ZodString>;
974
+ module: z.ZodString;
975
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ module: string;
978
+ options?: Record<string, unknown> | undefined;
979
+ export?: string | undefined;
980
+ }, {
981
+ module: string;
982
+ options?: Record<string, unknown> | undefined;
983
+ export?: string | undefined;
984
+ }>, "many">>;
985
+ disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
986
+ enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
987
+ exec: z.ZodDefault<z.ZodObject<{
988
+ timeout: z.ZodDefault<z.ZodNumber>;
989
+ }, "strip", z.ZodTypeAny, {
990
+ timeout: number;
991
+ }, {
992
+ timeout?: number | undefined;
993
+ }>>;
994
+ restrictToWorkspace: z.ZodDefault<z.ZodBoolean>;
972
995
  web: z.ZodDefault<z.ZodObject<{
973
996
  search: z.ZodDefault<z.ZodObject<{
974
997
  apiKey: z.ZodDefault<z.ZodString>;
@@ -991,104 +1014,85 @@ declare const ConfigSchema: z.ZodObject<{
991
1014
  maxResults?: number | undefined;
992
1015
  } | undefined;
993
1016
  }>>;
994
- exec: z.ZodDefault<z.ZodObject<{
995
- timeout: z.ZodDefault<z.ZodNumber>;
996
- }, "strip", z.ZodTypeAny, {
997
- timeout: number;
998
- }, {
999
- timeout?: number | undefined;
1000
- }>>;
1001
- restrictToWorkspace: z.ZodDefault<z.ZodBoolean>;
1002
- enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1003
- disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1004
- custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
1005
- module: z.ZodString;
1006
- export: z.ZodOptional<z.ZodString>;
1007
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1008
- }, "strip", z.ZodTypeAny, {
1009
- module: string;
1010
- options?: Record<string, unknown> | undefined;
1011
- export?: string | undefined;
1012
- }, {
1013
- module: string;
1014
- options?: Record<string, unknown> | undefined;
1015
- export?: string | undefined;
1016
- }>, "many">>;
1017
1017
  }, "strip", z.ZodTypeAny, {
1018
+ exec: {
1019
+ timeout: number;
1020
+ };
1021
+ restrictToWorkspace: boolean;
1018
1022
  web: {
1019
1023
  search: {
1020
1024
  apiKey: string;
1021
1025
  maxResults: number;
1022
1026
  };
1023
1027
  };
1024
- exec: {
1025
- timeout: number;
1026
- };
1027
- restrictToWorkspace: boolean;
1028
1028
  enabled?: string[] | undefined;
1029
- disabled?: string[] | undefined;
1030
1029
  custom?: {
1031
1030
  module: string;
1032
1031
  options?: Record<string, unknown> | undefined;
1033
1032
  export?: string | undefined;
1034
1033
  }[] | undefined;
1034
+ disabled?: string[] | undefined;
1035
1035
  }, {
1036
- enabled?: string[] | undefined;
1037
- web?: {
1038
- search?: {
1039
- apiKey?: string | undefined;
1040
- maxResults?: number | undefined;
1041
- } | undefined;
1042
- } | undefined;
1043
1036
  exec?: {
1044
1037
  timeout?: number | undefined;
1045
1038
  } | undefined;
1046
- restrictToWorkspace?: boolean | undefined;
1047
- disabled?: string[] | undefined;
1039
+ enabled?: string[] | undefined;
1048
1040
  custom?: {
1049
1041
  module: string;
1050
1042
  options?: Record<string, unknown> | undefined;
1051
1043
  export?: string | undefined;
1052
1044
  }[] | undefined;
1045
+ disabled?: string[] | undefined;
1046
+ restrictToWorkspace?: boolean | undefined;
1047
+ web?: {
1048
+ search?: {
1049
+ apiKey?: string | undefined;
1050
+ maxResults?: number | undefined;
1051
+ } | undefined;
1052
+ } | undefined;
1053
1053
  }>>;
1054
1054
  }, "strip", z.ZodTypeAny, {
1055
1055
  agents: {
1056
1056
  defaults: {
1057
- workspace: string;
1058
- model: string;
1059
1057
  maxTokens: number;
1060
- temperature: number;
1061
1058
  maxToolIterations: number;
1062
1059
  memoryWindow: number;
1060
+ model: string;
1061
+ temperature: number;
1062
+ workspace: string;
1063
1063
  consolidationModel?: string | undefined;
1064
1064
  };
1065
1065
  };
1066
1066
  channels: {
1067
1067
  telegram: {
1068
+ allowFrom: string[];
1068
1069
  enabled: boolean;
1069
1070
  token: string;
1070
- allowFrom: string[];
1071
1071
  proxy?: string | null | undefined;
1072
1072
  };
1073
1073
  line: {
1074
- enabled: boolean;
1075
1074
  allowFrom: string[];
1076
- channelSecret: string;
1075
+ enabled: boolean;
1077
1076
  channelAccessToken: string;
1077
+ channelSecret: string;
1078
1078
  };
1079
1079
  };
1080
+ gateway: {
1081
+ host: string;
1082
+ port: number;
1083
+ };
1080
1084
  providers: {
1081
- anthropic: {
1085
+ aihubmix: {
1082
1086
  apiKey: string;
1083
1087
  apiBase?: string | null | undefined;
1084
1088
  extraHeaders?: Record<string, string> | null | undefined;
1085
1089
  };
1086
- openai: {
1090
+ anthropic: {
1087
1091
  apiKey: string;
1088
1092
  apiBase?: string | null | undefined;
1089
1093
  extraHeaders?: Record<string, string> | null | undefined;
1090
1094
  };
1091
- openrouter: {
1095
+ dashscope: {
1092
1096
  apiKey: string;
1093
1097
  apiBase?: string | null | undefined;
1094
1098
  extraHeaders?: Record<string, string> | null | undefined;
@@ -1098,170 +1102,166 @@ declare const ConfigSchema: z.ZodObject<{
1098
1102
  apiBase?: string | null | undefined;
1099
1103
  extraHeaders?: Record<string, string> | null | undefined;
1100
1104
  };
1101
- groq: {
1105
+ gemini: {
1102
1106
  apiKey: string;
1103
1107
  apiBase?: string | null | undefined;
1104
1108
  extraHeaders?: Record<string, string> | null | undefined;
1105
1109
  };
1106
- gemini: {
1110
+ groq: {
1107
1111
  apiKey: string;
1108
1112
  apiBase?: string | null | undefined;
1109
1113
  extraHeaders?: Record<string, string> | null | undefined;
1110
1114
  };
1111
- zhipu: {
1115
+ moonshot: {
1112
1116
  apiKey: string;
1113
1117
  apiBase?: string | null | undefined;
1114
1118
  extraHeaders?: Record<string, string> | null | undefined;
1115
1119
  };
1116
- dashscope: {
1120
+ openai: {
1117
1121
  apiKey: string;
1118
1122
  apiBase?: string | null | undefined;
1119
1123
  extraHeaders?: Record<string, string> | null | undefined;
1120
1124
  };
1121
- moonshot: {
1125
+ openrouter: {
1122
1126
  apiKey: string;
1123
1127
  apiBase?: string | null | undefined;
1124
1128
  extraHeaders?: Record<string, string> | null | undefined;
1125
1129
  };
1126
- aihubmix: {
1130
+ vllm: {
1127
1131
  apiKey: string;
1128
1132
  apiBase?: string | null | undefined;
1129
1133
  extraHeaders?: Record<string, string> | null | undefined;
1130
1134
  };
1131
- vllm: {
1135
+ zhipu: {
1132
1136
  apiKey: string;
1133
1137
  apiBase?: string | null | undefined;
1134
1138
  extraHeaders?: Record<string, string> | null | undefined;
1135
1139
  };
1136
1140
  };
1137
- gateway: {
1138
- host: string;
1139
- port: number;
1140
- };
1141
1141
  tools: {
1142
+ exec: {
1143
+ timeout: number;
1144
+ };
1145
+ restrictToWorkspace: boolean;
1142
1146
  web: {
1143
1147
  search: {
1144
1148
  apiKey: string;
1145
1149
  maxResults: number;
1146
1150
  };
1147
1151
  };
1148
- exec: {
1149
- timeout: number;
1150
- };
1151
- restrictToWorkspace: boolean;
1152
1152
  enabled?: string[] | undefined;
1153
- disabled?: string[] | undefined;
1154
1153
  custom?: {
1155
1154
  module: string;
1156
1155
  options?: Record<string, unknown> | undefined;
1157
1156
  export?: string | undefined;
1158
1157
  }[] | undefined;
1158
+ disabled?: string[] | undefined;
1159
1159
  };
1160
1160
  }, {
1161
1161
  agents?: {
1162
1162
  defaults?: {
1163
- workspace?: string | undefined;
1164
- model?: string | undefined;
1165
1163
  consolidationModel?: string | undefined;
1166
1164
  maxTokens?: number | undefined;
1167
- temperature?: number | undefined;
1168
1165
  maxToolIterations?: number | undefined;
1169
1166
  memoryWindow?: number | undefined;
1167
+ model?: string | undefined;
1168
+ temperature?: number | undefined;
1169
+ workspace?: string | undefined;
1170
1170
  } | undefined;
1171
1171
  } | undefined;
1172
1172
  channels?: {
1173
1173
  telegram?: {
1174
- enabled?: boolean | undefined;
1175
- token?: string | undefined;
1176
1174
  allowFrom?: string[] | undefined;
1175
+ enabled?: boolean | undefined;
1177
1176
  proxy?: string | null | undefined;
1177
+ token?: string | undefined;
1178
1178
  } | undefined;
1179
1179
  line?: {
1180
- enabled?: boolean | undefined;
1181
1180
  allowFrom?: string[] | undefined;
1182
- channelSecret?: string | undefined;
1181
+ enabled?: boolean | undefined;
1183
1182
  channelAccessToken?: string | undefined;
1183
+ channelSecret?: string | undefined;
1184
1184
  } | undefined;
1185
1185
  } | undefined;
1186
+ gateway?: {
1187
+ host?: string | undefined;
1188
+ port?: number | undefined;
1189
+ } | undefined;
1186
1190
  providers?: {
1187
- anthropic?: {
1188
- apiKey?: string | undefined;
1191
+ aihubmix?: {
1189
1192
  apiBase?: string | null | undefined;
1193
+ apiKey?: string | undefined;
1190
1194
  extraHeaders?: Record<string, string> | null | undefined;
1191
1195
  } | undefined;
1192
- openai?: {
1193
- apiKey?: string | undefined;
1196
+ anthropic?: {
1194
1197
  apiBase?: string | null | undefined;
1198
+ apiKey?: string | undefined;
1195
1199
  extraHeaders?: Record<string, string> | null | undefined;
1196
1200
  } | undefined;
1197
- openrouter?: {
1198
- apiKey?: string | undefined;
1201
+ dashscope?: {
1199
1202
  apiBase?: string | null | undefined;
1203
+ apiKey?: string | undefined;
1200
1204
  extraHeaders?: Record<string, string> | null | undefined;
1201
1205
  } | undefined;
1202
1206
  deepseek?: {
1203
- apiKey?: string | undefined;
1204
1207
  apiBase?: string | null | undefined;
1205
- extraHeaders?: Record<string, string> | null | undefined;
1206
- } | undefined;
1207
- groq?: {
1208
1208
  apiKey?: string | undefined;
1209
- apiBase?: string | null | undefined;
1210
1209
  extraHeaders?: Record<string, string> | null | undefined;
1211
1210
  } | undefined;
1212
1211
  gemini?: {
1213
- apiKey?: string | undefined;
1214
1212
  apiBase?: string | null | undefined;
1215
- extraHeaders?: Record<string, string> | null | undefined;
1216
- } | undefined;
1217
- zhipu?: {
1218
1213
  apiKey?: string | undefined;
1219
- apiBase?: string | null | undefined;
1220
1214
  extraHeaders?: Record<string, string> | null | undefined;
1221
1215
  } | undefined;
1222
- dashscope?: {
1223
- apiKey?: string | undefined;
1216
+ groq?: {
1224
1217
  apiBase?: string | null | undefined;
1218
+ apiKey?: string | undefined;
1225
1219
  extraHeaders?: Record<string, string> | null | undefined;
1226
1220
  } | undefined;
1227
1221
  moonshot?: {
1228
- apiKey?: string | undefined;
1229
1222
  apiBase?: string | null | undefined;
1223
+ apiKey?: string | undefined;
1230
1224
  extraHeaders?: Record<string, string> | null | undefined;
1231
1225
  } | undefined;
1232
- aihubmix?: {
1226
+ openai?: {
1227
+ apiBase?: string | null | undefined;
1233
1228
  apiKey?: string | undefined;
1229
+ extraHeaders?: Record<string, string> | null | undefined;
1230
+ } | undefined;
1231
+ openrouter?: {
1234
1232
  apiBase?: string | null | undefined;
1233
+ apiKey?: string | undefined;
1235
1234
  extraHeaders?: Record<string, string> | null | undefined;
1236
1235
  } | undefined;
1237
1236
  vllm?: {
1237
+ apiBase?: string | null | undefined;
1238
1238
  apiKey?: string | undefined;
1239
+ extraHeaders?: Record<string, string> | null | undefined;
1240
+ } | undefined;
1241
+ zhipu?: {
1239
1242
  apiBase?: string | null | undefined;
1243
+ apiKey?: string | undefined;
1240
1244
  extraHeaders?: Record<string, string> | null | undefined;
1241
1245
  } | undefined;
1242
1246
  } | undefined;
1243
- gateway?: {
1244
- host?: string | undefined;
1245
- port?: number | undefined;
1246
- } | undefined;
1247
1247
  tools?: {
1248
- enabled?: string[] | undefined;
1249
- web?: {
1250
- search?: {
1251
- apiKey?: string | undefined;
1252
- maxResults?: number | undefined;
1253
- } | undefined;
1254
- } | undefined;
1255
1248
  exec?: {
1256
1249
  timeout?: number | undefined;
1257
1250
  } | undefined;
1258
- restrictToWorkspace?: boolean | undefined;
1259
- disabled?: string[] | undefined;
1251
+ enabled?: string[] | undefined;
1260
1252
  custom?: {
1261
1253
  module: string;
1262
1254
  options?: Record<string, unknown> | undefined;
1263
1255
  export?: string | undefined;
1264
1256
  }[] | undefined;
1257
+ disabled?: string[] | undefined;
1258
+ restrictToWorkspace?: boolean | undefined;
1259
+ web?: {
1260
+ search?: {
1261
+ apiKey?: string | undefined;
1262
+ maxResults?: number | undefined;
1263
+ } | undefined;
1264
+ } | undefined;
1265
1265
  } | undefined;
1266
1266
  }>;
1267
1267
  type Config = z.infer<typeof ConfigSchema>;