@xopcai/xopc 0.0.90 → 0.0.92

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 (365) hide show
  1. package/README.md +36 -12
  2. package/README.zh-CN.md +36 -12
  3. package/dist/browser-ext/manifest.json +1 -1
  4. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  5. package/dist/extensions/feishu/src/workflow-progress.js +1 -1
  6. package/dist/extensions/telegram/src/plugin.js +1 -1
  7. package/dist/extensions/telegram/src/routing-integration.js +2 -2
  8. package/dist/extensions/telegram/src/workflow-progress.js +1 -1
  9. package/dist/extensions/telegram/xopc.extension.json +1 -1
  10. package/dist/extensions/weixin/src/api/api.js +2 -2
  11. package/dist/extensions/weixin/src/auth/accounts.js +1 -1
  12. package/dist/extensions/weixin/src/cdn/upload.js +1 -1
  13. package/dist/extensions/weixin/src/media/data-url.js +1 -1
  14. package/dist/extensions/weixin/src/messaging/debug-mode.js +1 -1
  15. package/dist/extensions/weixin/src/messaging/inbound.js +1 -1
  16. package/dist/extensions/weixin/src/messaging/process-message.js +1 -1
  17. package/dist/extensions/weixin/src/plugin.js +1 -1
  18. package/dist/extensions/weixin/src/storage/sync-buf.js +1 -1
  19. package/dist/extensions/weixin/src/workflow-progress.js +1 -1
  20. package/dist/gateway/static/root/assets/Combination-HAlzriaz.js +41 -0
  21. package/dist/gateway/static/root/assets/agents-uwPn7ZW9.js +222 -0
  22. package/dist/gateway/static/root/assets/apps-page-CWKdhSPU.js +1 -0
  23. package/dist/gateway/static/root/assets/{attachment-preview-renderer-CpyoFbs4.js → attachment-preview-renderer-DBAxQXb-.js} +2 -2
  24. package/dist/gateway/static/root/assets/{attachment-process-heavy-CqVriadb.js → attachment-process-heavy-Csq3TrrP.js} +4 -4
  25. package/dist/gateway/static/root/assets/channels-settings-hEhW7Mbk.js +1 -0
  26. package/dist/gateway/static/root/assets/{channels-status-swr-BrtH2VzC.js → channels-status-swr-XzddfJW2.js} +1 -1
  27. package/dist/gateway/static/root/assets/copy-Dv6d4Dvw.js +1 -0
  28. package/dist/gateway/static/root/assets/{cron-api-CyqbgfHM.js → cron-api--I8LJ44S.js} +1 -1
  29. package/dist/gateway/static/root/assets/cron-page-B0kvgZGR.js +1 -0
  30. package/dist/gateway/static/root/assets/dist-CYgHMQO0.js +1 -0
  31. package/dist/gateway/static/root/assets/{extension-debug-page-D6Ak0STa.js → extension-debug-page-6cRP0nA9.js} +1 -1
  32. package/dist/gateway/static/root/assets/{extension-page-Q0P3d6DW.js → extension-page-DpwIkspI.js} +1 -1
  33. package/dist/gateway/static/root/assets/{extension-settings-page-CL55LwU_.js → extension-settings-page-DYbnQUxH.js} +1 -1
  34. package/dist/gateway/static/root/assets/{fetch-Dqa9iTWl.js → fetch-DTN0w7rV.js} +1 -1
  35. package/dist/gateway/static/root/assets/{field-primitives-HUR6JElP.js → field-primitives-CslW6HwD.js} +1 -1
  36. package/dist/gateway/static/root/assets/heartbeat-config-api-2UiKevxG.js +1 -0
  37. package/dist/gateway/static/root/assets/index-BUKUv7QW.css +1 -0
  38. package/dist/gateway/static/root/assets/{index-BYcGfwcE.js → index-DnevRVa6.js} +63 -59
  39. package/dist/gateway/static/root/assets/logs-page-sOP4TXJ4.js +1 -0
  40. package/dist/gateway/static/root/assets/note-detail-page-B91pLkEI.css +1 -0
  41. package/dist/gateway/static/root/assets/note-detail-page-DvW2qg4i.js +179 -0
  42. package/dist/gateway/static/root/assets/note-time-BEiibLJv.js +1 -0
  43. package/dist/gateway/static/root/assets/notes-page-BFQaquHU.js +1 -0
  44. package/dist/gateway/static/root/assets/{pdf-BnEvgIXZ.js → pdf-epILhEOn.js} +1 -1
  45. package/dist/gateway/static/root/assets/preload-helper-zJ_50EbN.js +1 -0
  46. package/dist/gateway/static/root/assets/sessions-page-CptjDKAX.js +1 -0
  47. package/dist/gateway/static/root/assets/settings-advanced-gate-BctKqHcf.js +2 -0
  48. package/dist/gateway/static/root/assets/{settings-form-section-a0qGVOlr.js → settings-form-section-QJh5ruel.js} +1 -1
  49. package/dist/gateway/static/root/assets/settings-page-V3p-hISB.js +2 -0
  50. package/dist/gateway/static/root/assets/share-preview-page-DBsvvbmD.js +2 -0
  51. package/dist/gateway/static/root/assets/skills-page-q2zPUJAR.js +2 -0
  52. package/dist/gateway/static/root/assets/{theme-store-C0Ehmdo5.js → theme-store-ht5iswWS.js} +1 -1
  53. package/dist/gateway/static/root/assets/toast-z0toXu32.js +1 -0
  54. package/dist/gateway/static/root/assets/url-CWWpfkq1.js +3 -0
  55. package/dist/gateway/static/root/assets/{utils-DRQryzdn.js → utils-DhPv9xoB.js} +1 -1
  56. package/dist/gateway/static/root/assets/vendor-codemirror-DYoKfS8f.js +45 -0
  57. package/dist/gateway/static/root/assets/voice-api-key-field-DLSKUipa.js +1 -0
  58. package/dist/gateway/static/root/assets/{workflow-page.utils-DnG8JBhV.js → workflow-page.utils-CJqnPWkW.js} +1 -1
  59. package/dist/gateway/static/root/assets/workflows-page-DRRQ1A0l.js +27 -0
  60. package/dist/gateway/static/root/index.html +10 -8
  61. package/dist/package.js +1 -1
  62. package/dist/src/agent/agent-manager.js +7 -7
  63. package/dist/src/agent/agent-scope.js +1 -1
  64. package/dist/src/agent/bootstrap/load-bootstrap-files.js +1 -1
  65. package/dist/src/agent/context/workspace-seed.js +2 -2
  66. package/dist/src/agent/goals/goal-run-store.js +4 -4
  67. package/dist/src/agent/goals/persistent-goal-service.js +1 -1
  68. package/dist/src/agent/goals/post-turn.js +2 -2
  69. package/dist/src/agent/image/load-image-media.js +2 -2
  70. package/dist/src/agent/ipc/bus.js +1 -1
  71. package/dist/src/agent/ipc/inbox.js +2 -2
  72. package/dist/src/agent/ipc/socket.js +1 -1
  73. package/dist/src/agent/mcp/bundle-mcp-config.d.ts +2 -9
  74. package/dist/src/agent/mcp/bundle-mcp-config.js +10 -34
  75. package/dist/src/agent/mcp/bundle-mcp-config.js.map +1 -1
  76. package/dist/src/agent/mcp/bundle-mcp-materialize.js +1 -1
  77. package/dist/src/agent/mcp/bundle-mcp-policy.js +2 -2
  78. package/dist/src/agent/mcp/bundle-mcp-policy.js.map +1 -1
  79. package/dist/src/agent/mcp/bundle-mcp-runtime.js +5 -5
  80. package/dist/src/agent/mcp/bundle-mcp-runtime.js.map +1 -1
  81. package/dist/src/agent/mcp/index.js +2 -2
  82. package/dist/src/agent/mcp/mcp-transport-config.js +1 -1
  83. package/dist/src/agent/mcp/mcp-transport.js +1 -1
  84. package/dist/src/agent/memory/builtin-memory-store.js +1 -1
  85. package/dist/src/agent/memory/dreaming/deep-promotion.js +1 -1
  86. package/dist/src/agent/memory/dreaming/events.js +1 -1
  87. package/dist/src/agent/memory/dreaming/last-run.js +1 -1
  88. package/dist/src/agent/memory/dreaming/light-sweep.js +1 -1
  89. package/dist/src/agent/memory/dreaming/preview.js +1 -1
  90. package/dist/src/agent/memory/dreaming/rem-patterns.js +1 -1
  91. package/dist/src/agent/memory/dreaming/short-term-store.js +1 -1
  92. package/dist/src/agent/memory/dreaming/utils.js +1 -1
  93. package/dist/src/agent/memory/plugin-discovery.js +1 -1
  94. package/dist/src/agent/models/manager.js +1 -1
  95. package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
  96. package/dist/src/agent/reply/post-compaction-context.js +1 -1
  97. package/dist/src/agent/reply/workspace-boundary-read.js +1 -1
  98. package/dist/src/agent/sandbox/path-policy.js +2 -2
  99. package/dist/src/agent/service/build-direct-message-content.js +1 -1
  100. package/dist/src/agent/service.js +4 -4
  101. package/dist/src/agent/session/session-inspector.js +1 -1
  102. package/dist/src/agent/skills/config.js +1 -1
  103. package/dist/src/agent/skills/hub-hash.js +2 -2
  104. package/dist/src/agent/skills/hub-lock.js +1 -1
  105. package/dist/src/agent/skills/hub-pull.js +2 -2
  106. package/dist/src/agent/skills/index.js +1 -1
  107. package/dist/src/agent/skills/managed-store.js +1 -1
  108. package/dist/src/agent/skills/scanner.js +1 -1
  109. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  110. package/dist/src/agent/skills/skill-manager.js +1 -1
  111. package/dist/src/agent/tools/dreaming-tool.js +1 -1
  112. package/dist/src/agent/tools/factory.js +1 -1
  113. package/dist/src/agent/tools/image-generate-tool.js +1 -1
  114. package/dist/src/agent/tools/send-media.js +1 -1
  115. package/dist/src/agent/tools/skill-manage-tool.js +1 -1
  116. package/dist/src/agent/tools/workflow-tool.js +1 -1
  117. package/dist/src/agent/tools/write.js +1 -1
  118. package/dist/src/agent/workflow/catalog.js +1 -1
  119. package/dist/src/auth/credentials.js +3 -3
  120. package/dist/src/auth/profiles/store.js +1 -1
  121. package/dist/src/auth/sync-provider-auth.js +1 -1
  122. package/dist/src/browser/cache-dir-policy.js +1 -1
  123. package/dist/src/browser/cdp-local-launcher.js +2 -2
  124. package/dist/src/browser/providers/browser-ext-install.js +3 -3
  125. package/dist/src/browser/providers/cloakbrowser.js +4 -4
  126. package/dist/src/browser/providers/playwright-doctor.js +1 -1
  127. package/dist/src/browser/stealth.js +1 -1
  128. package/dist/src/channels/attachments/inbound-persist.js +1 -1
  129. package/dist/src/channels/attachments/outbound-tts-persist.js +1 -1
  130. package/dist/src/channels/outbound/persist-store.js +1 -1
  131. package/dist/src/channels/pairing/allow-from-file.js +1 -1
  132. package/dist/src/channels/pairing/pairing-store.js +2 -2
  133. package/dist/src/chat-commands/agent-edit.js +2 -2
  134. package/dist/src/chat-commands/builtins/config.js +2 -2
  135. package/dist/src/chat-commands/context.js +1 -1
  136. package/dist/src/cli/command-catalog.js +0 -4
  137. package/dist/src/cli/command-catalog.js.map +1 -1
  138. package/dist/src/cli/command-loaders.js +1 -2
  139. package/dist/src/cli/command-loaders.js.map +1 -1
  140. package/dist/src/cli/command-manifest.js +0 -4
  141. package/dist/src/cli/command-manifest.js.map +1 -1
  142. package/dist/src/cli/commands/config.js +1 -1
  143. package/dist/src/cli/commands/doctor/checks/config-health.js +1 -1
  144. package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
  145. package/dist/src/cli/commands/doctor/checks/session-integrity.js +2 -2
  146. package/dist/src/cli/commands/doctor/checks/state-integrity.js +1 -1
  147. package/dist/src/cli/commands/doctor/checks/workspace-status.js +1 -1
  148. package/dist/src/cli/commands/extension-dev.js +1 -1
  149. package/dist/src/cli/commands/extension-marketplace.js +1 -1
  150. package/dist/src/cli/commands/extension-pack.js +1 -1
  151. package/dist/src/cli/commands/gateway/logs.js +1 -1
  152. package/dist/src/cli/commands/image.js +1 -1
  153. package/dist/src/cli/commands/init.js +4 -4
  154. package/dist/src/cli/commands/onboard.js +1 -1
  155. package/dist/src/cli/utils/init-workspace-core.js +2 -2
  156. package/dist/src/commands/agents.config.js +1 -1
  157. package/dist/src/config/agent-profile.js +1 -1
  158. package/dist/src/config/gateway-bind.js +1 -1
  159. package/dist/src/config/index.d.ts +0 -1
  160. package/dist/src/config/index.js +6 -7
  161. package/dist/src/config/index.js.map +1 -1
  162. package/dist/src/config/loader.js +2 -2
  163. package/dist/src/config/models-json.js +2 -2
  164. package/dist/src/config/paths-state.js +1 -1
  165. package/dist/src/config/profile.js +2 -2
  166. package/dist/src/config/schema.d.ts +36 -6
  167. package/dist/src/config/schema.js +13 -11
  168. package/dist/src/config/schema.js.map +1 -1
  169. package/dist/src/config/workspace-path.js +1 -1
  170. package/dist/src/connectors/builtin-catalog.d.ts +2 -0
  171. package/dist/src/connectors/builtin-catalog.js +152 -0
  172. package/dist/src/connectors/builtin-catalog.js.map +1 -0
  173. package/dist/src/connectors/catalog.d.ts +5 -0
  174. package/dist/src/connectors/catalog.js +13 -0
  175. package/dist/src/connectors/catalog.js.map +1 -0
  176. package/dist/src/connectors/health.d.ts +3 -0
  177. package/dist/src/connectors/health.js +61 -0
  178. package/dist/src/connectors/health.js.map +1 -0
  179. package/dist/src/connectors/install.d.ts +5 -0
  180. package/dist/src/connectors/install.js +46 -0
  181. package/dist/src/connectors/install.js.map +1 -0
  182. package/dist/src/connectors/instances.d.ts +4 -0
  183. package/dist/src/connectors/instances.js +43 -0
  184. package/dist/src/connectors/instances.js.map +1 -0
  185. package/dist/src/connectors/materialize.d.ts +9 -0
  186. package/dist/src/connectors/materialize.js +76 -0
  187. package/dist/src/connectors/materialize.js.map +1 -0
  188. package/dist/src/connectors/oauth.d.ts +22 -0
  189. package/dist/src/connectors/oauth.js +99 -0
  190. package/dist/src/connectors/oauth.js.map +1 -0
  191. package/dist/src/connectors/providers.d.ts +9 -0
  192. package/dist/src/connectors/providers.js +20 -0
  193. package/dist/src/connectors/providers.js.map +1 -0
  194. package/dist/src/connectors/secret-store.d.ts +7 -0
  195. package/dist/src/connectors/secret-store.js +47 -0
  196. package/dist/src/connectors/secret-store.js.map +1 -0
  197. package/dist/src/connectors/types.d.ts +102 -0
  198. package/dist/src/connectors/types.js +1 -0
  199. package/dist/src/connectors/usage.d.ts +6 -0
  200. package/dist/src/connectors/usage.js +63 -0
  201. package/dist/src/connectors/usage.js.map +1 -0
  202. package/dist/src/cron/executor.js +2 -2
  203. package/dist/src/cron/persistence.js +1 -1
  204. package/dist/src/cron/run-log-store.js +1 -1
  205. package/dist/src/daemon/constants.js +1 -1
  206. package/dist/src/daemon/install-plan.js +2 -2
  207. package/dist/src/daemon/launchd.js +2 -2
  208. package/dist/src/daemon/schtasks.js +2 -2
  209. package/dist/src/daemon/systemd.js +2 -2
  210. package/dist/src/extensions/bundle-mcp.js +1 -1
  211. package/dist/src/extensions/discover-extensions.js +1 -1
  212. package/dist/src/extensions/health.js +1 -1
  213. package/dist/src/extensions/loader.js +1 -1
  214. package/dist/src/extensions/lockfile.js +2 -2
  215. package/dist/src/extensions/update.js +1 -1
  216. package/dist/src/gateway/agents-admin.js +3 -3
  217. package/dist/src/gateway/file-path-classifier.js +2 -2
  218. package/dist/src/gateway/heartbeat/service.js +1 -1
  219. package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
  220. package/dist/src/gateway/hono/lib/config-payload.js +2 -1
  221. package/dist/src/gateway/hono/lib/config-payload.js.map +1 -1
  222. package/dist/src/gateway/hono/lib/extension-store.js +2 -2
  223. package/dist/src/gateway/hono/lib/static-ui.js +2 -2
  224. package/dist/src/gateway/hono/middleware/auth.js +1 -2
  225. package/dist/src/gateway/hono/middleware/auth.js.map +1 -1
  226. package/dist/src/gateway/hono/oauth.js +1 -1
  227. package/dist/src/gateway/hono/routes/agents.js +1 -1
  228. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  229. package/dist/src/gateway/hono/routes/config-patch/gateway.d.ts +2 -2
  230. package/dist/src/gateway/hono/routes/config-patch/gateway.js +12 -0
  231. package/dist/src/gateway/hono/routes/config-patch/gateway.js.map +1 -1
  232. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  233. package/dist/src/gateway/hono/routes/connectors.d.ts +3 -0
  234. package/dist/src/gateway/hono/routes/connectors.js +177 -0
  235. package/dist/src/gateway/hono/routes/connectors.js.map +1 -0
  236. package/dist/src/gateway/hono/routes/dreaming.js +1 -1
  237. package/dist/src/gateway/hono/routes/home.d.ts +12 -0
  238. package/dist/src/gateway/hono/routes/home.js +50 -0
  239. package/dist/src/gateway/hono/routes/home.js.map +1 -0
  240. package/dist/src/gateway/hono/routes/host-fs.js +2 -2
  241. package/dist/src/gateway/hono/routes/lazy-bundles.js +20 -4
  242. package/dist/src/gateway/hono/routes/lazy-bundles.js.map +1 -1
  243. package/dist/src/gateway/hono/routes/models.js +1 -1
  244. package/dist/src/gateway/hono/routes/notes.d.ts +3 -0
  245. package/dist/src/gateway/hono/routes/notes.js +305 -0
  246. package/dist/src/gateway/hono/routes/notes.js.map +1 -0
  247. package/dist/src/gateway/hono/routes/sessions.js.map +1 -1
  248. package/dist/src/gateway/hono/routes/shares.js +1 -1
  249. package/dist/src/gateway/hono/routes/workspace.js +4 -4
  250. package/dist/src/gateway/lock.js +3 -3
  251. package/dist/src/gateway/ports.js +1 -1
  252. package/dist/src/gateway/service/agent-runner.js +2 -2
  253. package/dist/src/gateway/service/marketplace-service.js +2 -2
  254. package/dist/src/gateway/service.d.ts +3 -0
  255. package/dist/src/gateway/service.js +11 -1
  256. package/dist/src/gateway/service.js.map +1 -1
  257. package/dist/src/gateway/workspace-fs-file-list.js +1 -1
  258. package/dist/src/gateway/workspace-ripgrep.d.ts +6 -0
  259. package/dist/src/gateway/workspace-ripgrep.js +62 -11
  260. package/dist/src/gateway/workspace-ripgrep.js.map +1 -1
  261. package/dist/src/heartbeat/index.js +1 -1
  262. package/dist/src/infra/brew.js +1 -1
  263. package/dist/src/infra/package-json.js +1 -1
  264. package/dist/src/infra/package-update-steps.js +1 -1
  265. package/dist/src/infra/path-env.js +2 -2
  266. package/dist/src/infra/restart.js +2 -2
  267. package/dist/src/infra/stable-node-path.js +1 -1
  268. package/dist/src/infra/update-check.js +1 -1
  269. package/dist/src/infra/update-global.js +1 -1
  270. package/dist/src/infra/update-lock.js +3 -3
  271. package/dist/src/infra/update-runner.js +1 -1
  272. package/dist/src/infra/update-startup.js +2 -2
  273. package/dist/src/infra/write-file-atomic.js +2 -2
  274. package/dist/src/mcp/channel-bridge.js +1 -1
  275. package/dist/src/mcp/channel-bridge.js.map +1 -1
  276. package/dist/src/notes/attachment-ref.d.ts +9 -0
  277. package/dist/src/notes/attachment-ref.js +27 -0
  278. package/dist/src/notes/attachment-ref.js.map +1 -0
  279. package/dist/src/notes/index.d.ts +4 -0
  280. package/dist/src/notes/index.js +4 -0
  281. package/dist/src/notes/note-attachment-sync.d.ts +7 -0
  282. package/dist/src/notes/note-attachment-sync.js +46 -0
  283. package/dist/src/notes/note-attachment-sync.js.map +1 -0
  284. package/dist/src/notes/note-index-meta.d.ts +14 -0
  285. package/dist/src/notes/note-index-meta.js +87 -0
  286. package/dist/src/notes/note-index-meta.js.map +1 -0
  287. package/dist/src/notes/paths.d.ts +5 -0
  288. package/dist/src/notes/paths.js +23 -0
  289. package/dist/src/notes/paths.js.map +1 -0
  290. package/dist/src/notes/service.d.ts +53 -0
  291. package/dist/src/notes/service.js +373 -0
  292. package/dist/src/notes/service.js.map +1 -0
  293. package/dist/src/notes/store.d.ts +34 -0
  294. package/dist/src/notes/store.js +342 -0
  295. package/dist/src/notes/store.js.map +1 -0
  296. package/dist/src/notes/types.d.ts +199 -0
  297. package/dist/src/notes/types.js +1 -0
  298. package/dist/src/providers/auth-runtime/auth-profile-store.js +1 -1
  299. package/dist/src/providers/index.js +2 -2
  300. package/dist/src/providers/model-registry.js +1 -1
  301. package/dist/src/session/config-store.js +2 -2
  302. package/dist/src/session/init-session-turn.js +2 -2
  303. package/dist/src/session/parity/jsonl-transcript-io.js +2 -2
  304. package/dist/src/session/parity/sessions-json-file.js +1 -1
  305. package/dist/src/session/parity/transcript-file-lock.js +2 -2
  306. package/dist/src/session/parity/transcript-paths.js +1 -1
  307. package/dist/src/session/resolve-session.js +4 -4
  308. package/dist/src/session/search-index-cache.js +1 -1
  309. package/dist/src/session/search-index.js +1 -1
  310. package/dist/src/session/session-title.js +2 -2
  311. package/dist/src/session/store.d.ts +2 -0
  312. package/dist/src/session/store.js +27 -7
  313. package/dist/src/session/store.js.map +1 -1
  314. package/dist/src/share/share-auto.js +2 -2
  315. package/dist/src/share/share-store.js +3 -3
  316. package/dist/src/share/share-thumbnail.js +2 -2
  317. package/dist/src/share/share-zip.js +1 -1
  318. package/dist/src/share/site-share-store.js +3 -3
  319. package/dist/src/share/site-static-serve.js +1 -1
  320. package/dist/src/tui/clipboard-image.js +3 -3
  321. package/dist/src/tui/theme-manager.js +1 -1
  322. package/dist/src/tui/tui-keybindings-file.js +1 -1
  323. package/dist/src/tui/tui-scoped-models.js +2 -2
  324. package/dist/src/tui/tui-settings.js +1 -1
  325. package/dist/src/tui/tui.js +3 -3
  326. package/dist/src/tunnel/frpc-binary.js +3 -3
  327. package/dist/src/tunnel/frpc-config.js +1 -1
  328. package/dist/src/tunnel/frpc-extract.js +1 -1
  329. package/dist/src/tunnel/tunnel-state.js +1 -1
  330. package/dist/src/utils/logger/audit.js +1 -1
  331. package/dist/src/utils/logger/log-store.js +1 -1
  332. package/dist/src/utils/logger/rotation.js +1 -1
  333. package/dist/src/voice/tts/audio.js +1 -1
  334. package/dist/src/voice/tts/providers/edge-speech.js +2 -2
  335. package/dist/src/workflows/store/event-store.js +1 -1
  336. package/dist/src/workflows/store/run-store.js +1 -1
  337. package/package.json +1 -1
  338. package/dist/gateway/static/root/assets/agents-cPvvYLXo.js +0 -222
  339. package/dist/gateway/static/root/assets/apps-page-Bk1_P5FJ.js +0 -1
  340. package/dist/gateway/static/root/assets/channels-settings-CZoeQwHz.js +0 -1
  341. package/dist/gateway/static/root/assets/cron-dreaming-jobs-Ip703-qM.js +0 -2
  342. package/dist/gateway/static/root/assets/cron-page-BpLdiQN8.js +0 -1
  343. package/dist/gateway/static/root/assets/dist-BTWC-BTN.js +0 -45
  344. package/dist/gateway/static/root/assets/dist-BpAiK86n.js +0 -1
  345. package/dist/gateway/static/root/assets/eye-DAfL1U7M.js +0 -1
  346. package/dist/gateway/static/root/assets/heartbeat-config-api-DusckjUX.js +0 -1
  347. package/dist/gateway/static/root/assets/index-V7MQ7834.css +0 -1
  348. package/dist/gateway/static/root/assets/logs-page-_HcZ2fgK.js +0 -1
  349. package/dist/gateway/static/root/assets/sessions-page-iezSMjho.js +0 -1
  350. package/dist/gateway/static/root/assets/settings-page-C9_nYQwM.js +0 -3
  351. package/dist/gateway/static/root/assets/share-preview-page-DExl7CJy.js +0 -2
  352. package/dist/gateway/static/root/assets/skills-page-BlgGD93t.js +0 -2
  353. package/dist/gateway/static/root/assets/url-fxyYANfA.js +0 -3
  354. package/dist/gateway/static/root/assets/vendor-codemirror-D0yxdRpg.js +0 -58
  355. package/dist/gateway/static/root/assets/voice-api-key-field-D0viACE2.js +0 -1
  356. package/dist/gateway/static/root/assets/workflows-page-BvMobnJP.js +0 -27
  357. package/dist/src/cli/commands/mcp.d.ts +0 -4
  358. package/dist/src/cli/commands/mcp.js +0 -85
  359. package/dist/src/cli/commands/mcp.js.map +0 -1
  360. package/dist/src/config/mcp-config.d.ts +0 -34
  361. package/dist/src/config/mcp-config.js +0 -116
  362. package/dist/src/config/mcp-config.js.map +0 -1
  363. package/dist/src/gateway/hono/routes/mcp.d.ts +0 -3
  364. package/dist/src/gateway/hono/routes/mcp.js +0 -99
  365. package/dist/src/gateway/hono/routes/mcp.js.map +0 -1
@@ -1,15 +1,15 @@
1
+ import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema } from "../../extensions/telegram/src/config-schema.js";
2
+ import { WeixinAccountConfigSchema, WeixinConfigSchema } from "../../extensions/weixin/src/config-schema.js";
3
+ import { AgentConfigSchema, AgentDefaultsSchema, AgentImageGenerationModelSchema, AgentModelRefSchema, AgentTypedModelSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, CronConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GoalsConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
4
+ import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
1
5
  import { ENV_VARS, resolveHomeDir, resolveStateDir } from "./paths-state.js";
2
6
  import { expandWorkspacePathString, init_workspace_path, normalizeWorkspaceDir, resolveWorkspaceRoot } from "./workspace-path.js";
3
7
  import { resolveDefaultAgentWorkspaceDir } from "./workspace-defaults.js";
4
8
  import { resolveAgentDir as resolveAgentDir$1, resolveAgentHomeDir as resolveAgentHomeDir$1, resolveAgentWorkspaceDir, resolveSessionsDir as resolveSessionsDir$1 } from "../agent/agent-scope.js";
9
+ import { extractProfileAgentId, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
5
10
  import { resolveSessionFilePath, resolveSessionTranscriptPathInDir } from "../session/parity/transcript-paths.js";
6
11
  import { FILENAMES, WORKSPACE_FILES, existsSync, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentMetadataPath, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveCronDir, resolveCronJobsPath, resolveCronLogPath, resolveCronLogsDir, resolveCronRunsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveMemoryDir, resolveMemoryPath, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSessionTranscriptPath, resolveSessionsArchiveDir, resolveSessionsDir, resolveSessionsMapPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath } from "./paths.js";
7
- import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema } from "../../extensions/telegram/src/config-schema.js";
8
- import { WeixinAccountConfigSchema, WeixinConfigSchema } from "../../extensions/weixin/src/config-schema.js";
9
- import { AgentConfigSchema, AgentDefaultsSchema, AgentImageGenerationModelSchema, AgentModelRefSchema, AgentTypedModelSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, CronConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GoalsConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
10
12
  import { init_loader, loadConfig, registerChannelConfigValidator, saveConfig } from "./loader.js";
11
- import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
12
- import { extractProfileAgentId, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
13
13
  import { clearConfigValueCache, getAllowedCommands, getCacheStats, init_resolve_config_value, resolveConfigValue, resolveHeaders, testApiKeyResolution } from "./resolve-config-value.js";
14
14
  import { CustomModelSchema, ModelOverrideSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProviderConfigSchema, VercelGatewayRoutingSchema, getDefaultModelValues, init_models_json, loadModelsJson, modelsJsonExists, saveModelsJson, validateModelsConfig } from "./models-json.js";
15
15
  import { canonicalizeConfiguredMcpServer, isKnownCliMcpTypeAlias, normalizeConfiguredMcpServers, resolveXopcMcpTransportAlias } from "./mcp-config-normalize.js";
@@ -20,7 +20,6 @@ import { ProfileManager, createProfile, deleteProfile, getCurrentProfile, getPro
20
20
  import { diffConfigPaths } from "./diff.js";
21
21
  import { BASE_RELOAD_RULES, buildReloadPlan, matchReloadRule } from "./rules.js";
22
22
  import { ConfigHotReloader } from "./reload.js";
23
- import { listConfiguredMcpServers, setConfiguredMcpServer, unsetConfiguredMcpServer } from "./mcp-config.js";
24
23
  //#region src/config/index.ts
25
24
  init_schema();
26
25
  init_loader();
@@ -29,6 +28,6 @@ init_workspace_path();
29
28
  init_models_json();
30
29
  init_resolve_config_value();
31
30
  //#endregion
32
- export { AgentConfigSchema, AgentDefaultsSchema, AgentImageGenerationModelSchema, AgentModelRefSchema, AgentTypedModelSchema, AgentsConfigSchema, BASE_RELOAD_RULES, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, CronConfigSchema, CustomModelSchema, ENV_VARS, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GoalsConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, applyConfigOverrides, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, isKnownCliMcpTypeAlias, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listConfiguredMcpServers, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, registerChannelConfigValidator, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentMetadataPath, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveCronDir, resolveCronJobsPath, resolveCronLogPath, resolveCronLogsDir, resolveCronRunsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveMemoryDir, resolveMemoryPath, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSessionFilePath, resolveSessionTranscriptPath, resolveSessionTranscriptPathInDir, resolveSessionsArchiveDir, resolveSessionsDir, resolveSessionsDir$1 as resolveSessionsDirFromConfig, resolveSessionsMapPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcMcpTransportAlias, saveConfig, saveModelsJson, setConfigOverride, setConfiguredMcpServer, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, unsetConfiguredMcpServer, validateModelsConfig };
31
+ export { AgentConfigSchema, AgentDefaultsSchema, AgentImageGenerationModelSchema, AgentModelRefSchema, AgentTypedModelSchema, AgentsConfigSchema, BASE_RELOAD_RULES, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, CronConfigSchema, CustomModelSchema, ENV_VARS, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GoalsConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, applyConfigOverrides, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, isKnownCliMcpTypeAlias, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, registerChannelConfigValidator, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentMetadataPath, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveCronDir, resolveCronJobsPath, resolveCronLogPath, resolveCronLogsDir, resolveCronRunsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveMemoryDir, resolveMemoryPath, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSessionFilePath, resolveSessionTranscriptPath, resolveSessionTranscriptPathInDir, resolveSessionsArchiveDir, resolveSessionsDir, resolveSessionsDir$1 as resolveSessionsDirFromConfig, resolveSessionsMapPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcMcpTransportAlias, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
33
32
 
34
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/config/index.ts"],"sourcesContent":["export * from './schema.js';\nexport { getWorkspacePath } from './workspace-path-helpers.js';\nexport * from './agent-profile.js';\nexport * from './loader.js';\nexport * from './paths.js';\nexport * from './workspace-dirs.js';\nexport { expandWorkspacePathString, normalizeWorkspaceDir, resolveWorkspaceRoot } from './workspace-path.js';\nexport * from './profile.js';\nexport * from './reload.js';\nexport * from './diff.js';\nexport * from './rules.js';\nexport * from './defaults.js';\nexport * from './integration.js';\nexport * from './models-json.js';\nexport * from './resolve-config-value.js';\nexport * from './runtime-overrides.js';\nexport * from './mcp-config-normalize.js';\nexport * from './mcp-config.js';\n\n// Re-export thinking types\nexport type {\n ThinkLevel,\n ReasoningLevel,\n VerboseLevel,\n ElevatedMode,\n SessionAgentConfig,\n} from '../agent/transcript/thinking-types.js';\nexport {\n normalizeThinkLevel,\n normalizeReasoningLevel,\n normalizeVerboseLevel,\n normalizeElevatedMode,\n listThinkingLevels,\n formatThinkingLevels,\n thinkLevelToNumber,\n} from '../agent/transcript/thinking-types.js';\n\n// Re-export types from types.models (avoid conflict with schema.js)\nexport type {\n ModelApi,\n ModelCompatConfig,\n ModelProviderAuthMode,\n ModelDefinitionConfig,\n ModelProviderConfig,\n BedrockDiscoveryConfig,\n ModelsConfig,\n} from './types.models.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;qBAM6G"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/config/index.ts"],"sourcesContent":["export * from './schema.js';\nexport { getWorkspacePath } from './workspace-path-helpers.js';\nexport * from './agent-profile.js';\nexport * from './loader.js';\nexport * from './paths.js';\nexport * from './workspace-dirs.js';\nexport { expandWorkspacePathString, normalizeWorkspaceDir, resolveWorkspaceRoot } from './workspace-path.js';\nexport * from './profile.js';\nexport * from './reload.js';\nexport * from './diff.js';\nexport * from './rules.js';\nexport * from './defaults.js';\nexport * from './integration.js';\nexport * from './models-json.js';\nexport * from './resolve-config-value.js';\nexport * from './runtime-overrides.js';\nexport * from './mcp-config-normalize.js';\n\n// Re-export thinking types\nexport type {\n ThinkLevel,\n ReasoningLevel,\n VerboseLevel,\n ElevatedMode,\n SessionAgentConfig,\n} from '../agent/transcript/thinking-types.js';\nexport {\n normalizeThinkLevel,\n normalizeReasoningLevel,\n normalizeVerboseLevel,\n normalizeElevatedMode,\n listThinkingLevels,\n formatThinkingLevels,\n thinkLevelToNumber,\n} from '../agent/transcript/thinking-types.js';\n\n// Re-export types from types.models (avoid conflict with schema.js)\nexport type {\n ModelApi,\n ModelCompatConfig,\n ModelProviderAuthMode,\n ModelDefinitionConfig,\n ModelProviderConfig,\n BedrockDiscoveryConfig,\n ModelsConfig,\n} from './types.models.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBAM6G"}
@@ -1,9 +1,9 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
- import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
2
+ import { ConfigSchema, init_schema } from "./schema.js";
3
3
  import { createLogger } from "../utils/logger/index.js";
4
4
  import { init_logger } from "../utils/logger.js";
5
5
  import { init_paths, resolveConfigPath } from "./paths.js";
6
- import { ConfigSchema, init_schema } from "./schema.js";
6
+ import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
7
7
  import { dirname } from "path";
8
8
  import { existsSync, mkdirSync, promises, readFileSync } from "fs";
9
9
  import { config } from "dotenv";
@@ -1,8 +1,8 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
- import { init_write_file_atomic, writeTextAtomicSync } from "../infra/write-file-atomic.js";
3
2
  import { init_paths, resolveModelsJsonPath } from "./paths.js";
4
- import { existsSync, readFileSync } from "fs";
3
+ import { init_write_file_atomic, writeTextAtomicSync } from "../infra/write-file-atomic.js";
5
4
  import { z } from "zod";
5
+ import { existsSync, readFileSync } from "fs";
6
6
  //#region src/config/models-json.ts
7
7
  /**
8
8
  * Models.json configuration types and schema
@@ -1,6 +1,6 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
- import { join } from "node:path";
3
2
  import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
4
  //#region src/config/paths-state.ts
5
5
  function resolveHomeDir(env = process.env) {
6
6
  return env[ENV_VARS.HOME] || homedir();
@@ -1,9 +1,9 @@
1
+ import { ENV_VARS, init_paths_state, resolveHomeDir } from "./paths-state.js";
1
2
  import { createLogger } from "../utils/logger/index.js";
2
3
  import { init_logger } from "../utils/logger.js";
3
- import { ENV_VARS, init_paths_state, resolveHomeDir } from "./paths-state.js";
4
- import { mkdir, readdir, rm, stat } from "fs/promises";
5
4
  import { join } from "path";
6
5
  import { existsSync } from "fs";
6
+ import { mkdir, readdir, rm, stat } from "fs/promises";
7
7
  //#region src/config/profile.ts
8
8
  init_logger();
9
9
  init_paths_state();
@@ -1522,7 +1522,12 @@ export type CommandsConfig = z.infer<typeof CommandsConfigSchema>;
1522
1522
  export declare const McpServerSchema: z.ZodObject<{
1523
1523
  command: z.ZodOptional<z.ZodString>;
1524
1524
  args: z.ZodOptional<z.ZodArray<z.ZodString>>;
1525
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1525
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1526
+ xopcSecretRef: z.ZodObject<{
1527
+ provider: z.ZodString;
1528
+ fieldKey: z.ZodString;
1529
+ }, z.core.$strip>;
1530
+ }, z.core.$strip>]>>>;
1526
1531
  cwd: z.ZodOptional<z.ZodString>;
1527
1532
  workingDirectory: z.ZodOptional<z.ZodString>;
1528
1533
  url: z.ZodOptional<z.ZodString>;
@@ -1530,14 +1535,24 @@ export declare const McpServerSchema: z.ZodObject<{
1530
1535
  sse: "sse";
1531
1536
  "streamable-http": "streamable-http";
1532
1537
  }>>;
1533
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1538
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1539
+ xopcSecretRef: z.ZodObject<{
1540
+ provider: z.ZodString;
1541
+ fieldKey: z.ZodString;
1542
+ }, z.core.$strip>;
1543
+ }, z.core.$strip>]>>>;
1534
1544
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
1535
1545
  }, z.core.$catchall<z.ZodUnknown>>;
1536
1546
  export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
1537
1547
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1538
1548
  command: z.ZodOptional<z.ZodString>;
1539
1549
  args: z.ZodOptional<z.ZodArray<z.ZodString>>;
1540
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1550
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1551
+ xopcSecretRef: z.ZodObject<{
1552
+ provider: z.ZodString;
1553
+ fieldKey: z.ZodString;
1554
+ }, z.core.$strip>;
1555
+ }, z.core.$strip>]>>>;
1541
1556
  cwd: z.ZodOptional<z.ZodString>;
1542
1557
  workingDirectory: z.ZodOptional<z.ZodString>;
1543
1558
  url: z.ZodOptional<z.ZodString>;
@@ -1545,7 +1560,12 @@ export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
1545
1560
  sse: "sse";
1546
1561
  "streamable-http": "streamable-http";
1547
1562
  }>>;
1548
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
1563
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
1564
+ xopcSecretRef: z.ZodObject<{
1565
+ provider: z.ZodString;
1566
+ fieldKey: z.ZodString;
1567
+ }, z.core.$strip>;
1568
+ }, z.core.$strip>]>>>;
1549
1569
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
1550
1570
  }, z.core.$catchall<z.ZodUnknown>>>>;
1551
1571
  sessionIdleTtlMs: z.ZodOptional<z.ZodNumber>;
@@ -2140,7 +2160,12 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
2140
2160
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2141
2161
  command: z.ZodOptional<z.ZodString>;
2142
2162
  args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2143
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2163
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
2164
+ xopcSecretRef: z.ZodObject<{
2165
+ provider: z.ZodString;
2166
+ fieldKey: z.ZodString;
2167
+ }, z.core.$strip>;
2168
+ }, z.core.$strip>]>>>;
2144
2169
  cwd: z.ZodOptional<z.ZodString>;
2145
2170
  workingDirectory: z.ZodOptional<z.ZodString>;
2146
2171
  url: z.ZodOptional<z.ZodString>;
@@ -2148,7 +2173,12 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
2148
2173
  sse: "sse";
2149
2174
  "streamable-http": "streamable-http";
2150
2175
  }>>;
2151
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
2176
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
2177
+ xopcSecretRef: z.ZodObject<{
2178
+ provider: z.ZodString;
2179
+ fieldKey: z.ZodString;
2180
+ }, z.core.$strip>;
2181
+ }, z.core.$strip>]>>>;
2152
2182
  connectionTimeoutMs: z.ZodOptional<z.ZodNumber>;
2153
2183
  }, z.core.$catchall<z.ZodUnknown>>>>;
2154
2184
  sessionIdleTtlMs: z.ZodOptional<z.ZodNumber>;
@@ -22,7 +22,7 @@ function parseModelRef(ref) {
22
22
  model: trimmed.slice(idx + 1).trim()
23
23
  };
24
24
  }
25
- var AgentModelRefSchema, AgentImageGenerationModelSchema, AgentTypedModelSchema, AgentTypedModelsArraySchema, AgentDefaultsSchema, AgentConfigSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, SessionDmScopeSchema, SessionStorageConfigSchema, SessionResetModeSchema, SessionResetConfigSchema, SessionResetByTypeSchema, SessionScopeSchema, SessionConfigSchema, ChannelsConfigSchema, SearchProviderEntrySchema, WebSearchConfigSchema, WebsiteBlocklistSchema, WebToolsConfigSchema, ToolsConfigSchema, GatewayAuthRateLimitSchema, GatewaySecuritySchema, GatewayTrustedProxySchema, GatewayAuthSchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayRemoteSchema, GatewayTlsSchema, GatewayModeSchema, HeartbeatConfigSchema, GatewayChannelConnectDeferModeSchema, TunnelConsentSchema, TunnelConfigSchema, WorkspaceImportConfigSchema, WorkspaceConfigSchema, GatewayBindModeSchema, GatewayConfigSchema, CronConfigSchema, ModelsDevConfigSchema, SttProviderConfigCatchallSchema, STTProviderConfigSchema, STTFallbackConfigSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, STTConfigSchema, TtsProviderConfigCatchallSchema, TTSProviderConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSEdgeConfigSchema, TTSSummarizationConfigSchema, TTSConfigSchema, MessagesConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProviderAuthConfigSchema, ProvidersConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, UpdateAutoConfigSchema, GoalsConfigSchema, UpdateConfigSchema, CommandsConfigSchema, McpHttpUrlSchema, McpServerSchema, McpConfigSchema, ConfigSchema;
25
+ var AgentModelRefSchema, AgentImageGenerationModelSchema, AgentTypedModelSchema, AgentTypedModelsArraySchema, AgentDefaultsSchema, AgentConfigSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, SessionDmScopeSchema, SessionStorageConfigSchema, SessionResetModeSchema, SessionResetConfigSchema, SessionResetByTypeSchema, SessionScopeSchema, SessionConfigSchema, ChannelsConfigSchema, SearchProviderEntrySchema, WebSearchConfigSchema, WebsiteBlocklistSchema, WebToolsConfigSchema, ToolsConfigSchema, GatewayAuthRateLimitSchema, GatewaySecuritySchema, GatewayTrustedProxySchema, GatewayAuthSchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayRemoteSchema, GatewayTlsSchema, GatewayModeSchema, HeartbeatConfigSchema, GatewayChannelConnectDeferModeSchema, TunnelConsentSchema, TunnelConfigSchema, WorkspaceImportConfigSchema, WorkspaceConfigSchema, GatewayBindModeSchema, GatewayConfigSchema, CronConfigSchema, ModelsDevConfigSchema, SttProviderConfigCatchallSchema, STTProviderConfigSchema, STTFallbackConfigSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, STTConfigSchema, TtsProviderConfigCatchallSchema, TTSProviderConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSEdgeConfigSchema, TTSSummarizationConfigSchema, TTSConfigSchema, MessagesConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProviderAuthConfigSchema, ProvidersConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, UpdateAutoConfigSchema, GoalsConfigSchema, UpdateConfigSchema, CommandsConfigSchema, McpHttpUrlSchema, ConnectorSecretReferenceSchema, McpConfigScalarSchema, McpServerSchema, McpConfigSchema, ConfigSchema;
26
26
  var init_schema = __esmMin((() => {
27
27
  init_cache_dir_policy();
28
28
  init_localized_text();
@@ -1105,23 +1105,25 @@ tts: TTSConfigSchema.optional() }).optional();
1105
1105
  return false;
1106
1106
  }
1107
1107
  }, "MCP server URL must use http or https");
1108
+ ConnectorSecretReferenceSchema = z.object({ xopcSecretRef: z.object({
1109
+ provider: z.string().min(1),
1110
+ fieldKey: z.string().min(1)
1111
+ }) });
1112
+ McpConfigScalarSchema = z.union([
1113
+ z.string(),
1114
+ z.number(),
1115
+ z.boolean(),
1116
+ ConnectorSecretReferenceSchema
1117
+ ]);
1108
1118
  McpServerSchema = z.object({
1109
1119
  command: z.string().optional(),
1110
1120
  args: z.array(z.string()).optional(),
1111
- env: z.record(z.string(), z.union([
1112
- z.string(),
1113
- z.number(),
1114
- z.boolean()
1115
- ])).optional(),
1121
+ env: z.record(z.string(), McpConfigScalarSchema).optional(),
1116
1122
  cwd: z.string().optional(),
1117
1123
  workingDirectory: z.string().optional(),
1118
1124
  url: McpHttpUrlSchema.optional(),
1119
1125
  transport: z.enum(["sse", "streamable-http"]).optional(),
1120
- headers: z.record(z.string(), z.union([
1121
- z.string(),
1122
- z.number(),
1123
- z.boolean()
1124
- ])).optional(),
1126
+ headers: z.record(z.string(), McpConfigScalarSchema).optional(),
1125
1127
  connectionTimeoutMs: z.number().finite().positive().optional()
1126
1128
  }).catchall(z.unknown()).superRefine((value, ctx) => {
1127
1129
  const hasCommand = typeof value.command === "string" && value.command.trim().length > 0;