@xopcai/xopc 0.0.189 → 0.0.190

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 (347) hide show
  1. package/README.md +0 -3
  2. package/README.zh-CN.md +0 -3
  3. package/dist/browser-ext/manifest.json +1 -1
  4. package/dist/extensions/telegram/xopc.extension.json +1 -1
  5. package/dist/gateway/static/root/assets/{activity-store-DTFKTPs8.js → activity-store-DstnJCS5.js} +1 -1
  6. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DqO25Qe5.js → agent-avatar-dicebear-9vAbkroX.js} +1 -1
  7. package/dist/gateway/static/root/assets/agents-D1t4SfMQ.js +68 -0
  8. package/dist/gateway/static/root/assets/{api-DWeXfwVU.js → api-BTL9kayv.js} +1 -1
  9. package/dist/gateway/static/root/assets/{app-management-settings-panel-BRpV8PXG.js → app-management-settings-panel-DkFeIdBf.js} +1 -1
  10. package/dist/gateway/static/root/assets/{appearance-settings-3ntKM9nQ.js → appearance-settings-Bxs8Fpaj.js} +1 -1
  11. package/dist/gateway/static/root/assets/apps-page-Cgrgu5OW.js +1 -0
  12. package/dist/gateway/static/root/assets/{archive-plugin-Df7Ycj_7.js → archive-plugin-Ch2RmLCC.js} +1 -1
  13. package/dist/gateway/static/root/assets/{attachment-load-UHgfZYtj.js → attachment-load-BhMQM_Ky.js} +1 -1
  14. package/dist/gateway/static/root/assets/automations-page-CtJxstKh.js +6 -0
  15. package/dist/gateway/static/root/assets/{binary-plugins-BJah99wE.js → binary-plugins-D6CqlymH.js} +1 -1
  16. package/dist/gateway/static/root/assets/{block-editor-DNlY5KqF.js → block-editor-ClL6HEg9.js} +48 -48
  17. package/dist/gateway/static/root/assets/browser-settings-page-DW99iDmD.js +8 -0
  18. package/dist/gateway/static/root/assets/{browser-workflow-inputs-vyUfdzAd.js → browser-workflow-inputs-BYy48VhN.js} +1 -1
  19. package/dist/gateway/static/root/assets/{browser-workflows-page-C1cKZjx-.js → browser-workflows-page-zgLibuMH.js} +2 -2
  20. package/dist/gateway/static/root/assets/capabilities-settings-panel-CHUrT9EB.js +7 -0
  21. package/dist/gateway/static/root/assets/capability-presets-api-BB8t4Ja7.js +1 -0
  22. package/dist/gateway/static/root/assets/capability-presets-settings-panel-Cycrv0YV.js +1 -0
  23. package/dist/gateway/static/root/assets/{channel-recipient-api-BGG2kpJB.js → channel-recipient-api-BThDGiO3.js} +1 -1
  24. package/dist/gateway/static/root/assets/channels-settings-V96gPUAU.js +1 -0
  25. package/dist/gateway/static/root/assets/channels-status-swr-Cz7SAAkm.js +1 -0
  26. package/dist/gateway/static/root/assets/connectors-api-DS9ED-EL.js +1 -0
  27. package/dist/gateway/static/root/assets/connectors-page-BhlyQoQI.js +2 -0
  28. package/dist/gateway/static/root/assets/cron-expression-CkgsvhtW.js +2 -0
  29. package/dist/gateway/static/root/assets/{desktop-pet-BUuBEJuP.js → desktop-pet-Cv8rGhYW.js} +1 -1
  30. package/dist/gateway/static/root/assets/{desktop-pet-settings-BGfVIJM3.js → desktop-pet-settings-CIeJdwfV.js} +1 -1
  31. package/dist/gateway/static/root/assets/{directory-picker-path-field-DrQFfHH_.js → directory-picker-path-field-D8jXEiAY.js} +1 -1
  32. package/dist/gateway/static/root/assets/{extension-debug-page-CEnIFOX-.js → extension-debug-page-CCZ9u6TZ.js} +1 -1
  33. package/dist/gateway/static/root/assets/{extension-page-CCqHbexs.js → extension-page-CV36ILRG.js} +1 -1
  34. package/dist/gateway/static/root/assets/extension-settings-page-IyQrSILY.js +1 -0
  35. package/dist/gateway/static/root/assets/{gateway-config-api-CgUE2Ii1.js → gateway-config-api-D4_r5iJM.js} +1 -1
  36. package/dist/gateway/static/root/assets/gateway-settings-CYlntpBH.js +1 -0
  37. package/dist/gateway/static/root/assets/{gateway-startup-retry-DxhKNiCF.js → gateway-startup-retry-EO9mKvzE.js} +1 -1
  38. package/dist/gateway/static/root/assets/heartbeat-settings-D4SyWob8.js +1 -0
  39. package/dist/gateway/static/root/assets/home-page-B2Kagoh8.js +3 -0
  40. package/dist/gateway/static/root/assets/{image-generation-api-DCFdc-HD.js → image-generation-api-Bu7PyVSh.js} +1 -1
  41. package/dist/gateway/static/root/assets/index-CYT5DOzr.js +150 -0
  42. package/dist/gateway/static/root/assets/index-D6e3tPL-.css +1 -0
  43. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Bf2VLtXW.js → keyboard-shortcuts-settings-BMhCuVBZ.js} +1 -1
  44. package/dist/gateway/static/root/assets/local-app-workbench-page-BHYbFjqy.js +2 -0
  45. package/dist/gateway/static/root/assets/{local-apps-page-Ca1RuI13.js → local-apps-page-ijIe7_y2.js} +1 -1
  46. package/dist/gateway/static/root/assets/locale-store-deR2zRaE.js +1 -0
  47. package/dist/gateway/static/root/assets/logs-page-IIn8Tess.js +2 -0
  48. package/dist/gateway/static/root/assets/{management-settings-B3Eop1zn.js → management-settings--V_fovKD.js} +1 -1
  49. package/dist/gateway/static/root/assets/{markdown-split-BGOYjgnM.js → markdown-split-Dt9-in6W.js} +1 -1
  50. package/dist/gateway/static/root/assets/{media-plugins-CT0txyM4.js → media-plugins-B3pj_iO0.js} +1 -1
  51. package/dist/gateway/static/root/assets/messages-B4XqB8I6.js +3 -0
  52. package/dist/gateway/static/root/assets/{notes-page-DfKgAe78.js → notes-page-DZ366lIT.js} +1 -1
  53. package/dist/gateway/static/root/assets/notes-workbench-S2sBVOLw.js +4 -0
  54. package/dist/gateway/static/root/assets/{page-tabs-DNrbCgmC.js → page-tabs-C5ge434C.js} +1 -1
  55. package/dist/gateway/static/root/assets/{preview-open-alternatives-BTqViDOR.js → preview-open-alternatives-BFa9DgSV.js} +1 -1
  56. package/dist/gateway/static/root/assets/{product-open-page-C_2L4_Iu.js → product-open-page-Dc9CcWdu.js} +1 -1
  57. package/dist/gateway/static/root/assets/project-detail-page-BilzoCJ7.js +1 -0
  58. package/dist/gateway/static/root/assets/projects-page-BoQUyacP.js +1 -0
  59. package/dist/gateway/static/root/assets/remote-access-hub-DUyUaCRF.js +1 -0
  60. package/dist/gateway/static/root/assets/{schema-form-BFLfkDGG.js → schema-form-B84DckWe.js} +1 -1
  61. package/dist/gateway/static/root/assets/sessions-page-Dzxlq1F0.js +1 -0
  62. package/dist/gateway/static/root/assets/settings-advanced-gate-TzwlZxU6.js +1 -0
  63. package/dist/gateway/static/root/assets/settings-form-section-Dp9itvdy.js +1 -0
  64. package/dist/gateway/static/root/assets/{settings-loading-skeleton-C9a-EbTZ.js → settings-loading-skeleton-CCtlhoy7.js} +1 -1
  65. package/dist/gateway/static/root/assets/{settings-page-DI9qDH5x.js → settings-page-DQmMKf8r.js} +1 -1
  66. package/dist/gateway/static/root/assets/{settings-page-layout-D-LWQdI5.js → settings-page-layout-EQIOJa_L.js} +1 -1
  67. package/dist/gateway/static/root/assets/{setup-status-panel-CJwmPvgs.js → setup-status-panel-Cwi-SPja.js} +1 -1
  68. package/dist/gateway/static/root/assets/{share-preview-page-BKSMG9r5.js → share-preview-page-C4_B2jvf.js} +1 -1
  69. package/dist/gateway/static/root/assets/shares-settings-CkyuGlZK.js +1 -0
  70. package/dist/gateway/static/root/assets/skill-reload-api-BJCePQK5.js +1 -0
  71. package/dist/gateway/static/root/assets/skills-page-BYWLfmJi.js +2 -0
  72. package/dist/gateway/static/root/assets/{skills-page.utils-zsz2HIlZ.js → skills-page.utils-Jhm24i4h.js} +1 -1
  73. package/dist/gateway/static/root/assets/{system-settings-panel-IWNDBI1O.js → system-settings-panel-Dpx2ags2.js} +1 -1
  74. package/dist/gateway/static/root/assets/{task-detail-page-CgtK02kP.js → task-detail-page-DLAdxI6e.js} +1 -1
  75. package/dist/gateway/static/root/assets/{theme-store-BkJe7UDo.js → theme-store-DnBOcGXi.js} +1 -1
  76. package/dist/gateway/static/root/assets/{typed-models-lib-C07LGthO.js → typed-models-lib-DULmTHUB.js} +1 -1
  77. package/dist/gateway/static/root/assets/use-autosave-BrjVk5VH.js +1 -0
  78. package/dist/gateway/static/root/assets/user-context-page-9AAFpGAL.js +1 -0
  79. package/dist/gateway/static/root/assets/{voice-api-key-field-Boue1D46.js → voice-api-key-field-BISTPfq_.js} +1 -1
  80. package/dist/gateway/static/root/assets/{work-discovery-overlay-bbmvCmc8.js → work-discovery-overlay-Wr-uF7VA.js} +1 -1
  81. package/dist/gateway/static/root/assets/work-discovery-page-BWds95sL.js +1 -0
  82. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DlHv-GZC.js → workflow-run-setup-panel-DHqHP8_6.js} +2 -2
  83. package/dist/gateway/static/root/assets/workflows-page-0b4_DFHr.js +11 -0
  84. package/dist/gateway/static/root/index.html +7 -7
  85. package/dist/package.js +1 -1
  86. package/dist/packages/gateway-contract/src/tool-activity.js +0 -36
  87. package/dist/packages/realtime-client/src/index.js +105 -48
  88. package/dist/packages/realtime-protocol/src/index.js +6 -1
  89. package/dist/src/agent/agent-manager.d.ts +0 -1
  90. package/dist/src/agent/agent-manager.js +6 -13
  91. package/dist/src/agent/background-review/coordinator.js +1 -1
  92. package/dist/src/agent/background-review/run-background-review.js +5 -7
  93. package/dist/src/agent/bootstrap/bootstrap-cache.d.ts +0 -1
  94. package/dist/src/agent/bootstrap/bootstrap-cache.js +3 -4
  95. package/dist/src/agent/bootstrap/bootstrap-files.d.ts +0 -4
  96. package/dist/src/agent/bootstrap/bootstrap-files.js +3 -4
  97. package/dist/src/agent/bootstrap/filter-bootstrap-files.js +1 -4
  98. package/dist/src/agent/bootstrap/load-bootstrap-files.d.ts +0 -1
  99. package/dist/src/agent/bootstrap/load-bootstrap-files.js +1 -14
  100. package/dist/src/agent/bootstrap/types.d.ts +1 -1
  101. package/dist/src/agent/context/workspace-templates/SOUL.md +1 -1
  102. package/dist/src/agent/memory/builtin-provider.d.ts +2 -4
  103. package/dist/src/agent/memory/builtin-provider.js +35 -15
  104. package/dist/src/agent/memory/context/types.d.ts +3 -1
  105. package/dist/src/agent/memory/create-memory-manager.js +2 -0
  106. package/dist/src/agent/memory/index.d.ts +1 -1
  107. package/dist/src/agent/memory/index.js +1 -1
  108. package/dist/src/agent/memory/manager.d.ts +9 -1
  109. package/dist/src/agent/memory/manager.js +39 -9
  110. package/dist/src/agent/memory/memory-config.d.ts +1 -1
  111. package/dist/src/agent/memory/memory-config.js +1 -1
  112. package/dist/src/agent/memory/source-origin.js +0 -2
  113. package/dist/src/agent/memory/types.d.ts +5 -1
  114. package/dist/src/agent/memory/understanding/service.d.ts +10 -10
  115. package/dist/src/agent/memory/understanding/service.js +108 -176
  116. package/dist/src/agent/memory/understanding/types.d.ts +7 -8
  117. package/dist/src/agent/memory/user-context-coordinator.d.ts +2 -1
  118. package/dist/src/agent/memory/user-context-coordinator.js +27 -41
  119. package/dist/src/agent/orchestration/agent-orchestrator.js +4 -7
  120. package/dist/src/agent/prompt/sections/memory-skills.js +4 -4
  121. package/dist/src/agent/prompt/sections/tooling.js +0 -10
  122. package/dist/src/agent/prompt/service-prompt-builder.d.ts +0 -1
  123. package/dist/src/agent/prompt/service-prompt-builder.js +4 -33
  124. package/dist/src/agent/prompt/system-prompt.js +1 -2
  125. package/dist/src/agent/service/direct-turn-helpers.js +1 -1
  126. package/dist/src/agent/service.d.ts +1 -2
  127. package/dist/src/agent/service.js +4 -17
  128. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +1 -1
  129. package/dist/src/agent/tools/dreaming-tool.d.ts +0 -2
  130. package/dist/src/agent/tools/dreaming-tool.js +13 -38
  131. package/dist/src/agent/tools/factory.d.ts +0 -3
  132. package/dist/src/agent/tools/factory.js +1 -10
  133. package/dist/src/agent/tools/index.d.ts +0 -1
  134. package/dist/src/agent/tools/index.js +1 -2
  135. package/dist/src/agent/tools/memory-tool.js +1 -1
  136. package/dist/src/agent/workspace-runtime/registry.d.ts +3 -5
  137. package/dist/src/agent/workspace-runtime/registry.js +2 -15
  138. package/dist/src/agent-manifest/schema.d.ts +17 -17
  139. package/dist/src/agent-runtime/index.js +1 -1
  140. package/dist/src/agent-runtime/memory-runtime.d.ts +2 -2
  141. package/dist/src/agent-runtime/runtime-profile.js +1 -1
  142. package/dist/src/automations/domain/validation.d.ts +28 -28
  143. package/dist/src/automations/draft/automation-draft-validator.d.ts +3 -3
  144. package/dist/src/chat-commands/builtins/understanding.js +2 -5
  145. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  146. package/dist/src/cli/commands/init.js +3 -22
  147. package/dist/src/cli/templates.js +1 -1
  148. package/dist/src/config/index.js +3 -3
  149. package/dist/src/config/paths.d.ts +0 -5
  150. package/dist/src/config/paths.js +2 -11
  151. package/dist/src/config/schema.d.ts +24 -117
  152. package/dist/src/config/schema.js +9 -39
  153. package/dist/src/connectors/learning-coordinator.js +75 -3
  154. package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
  155. package/dist/src/gateway/agent-builtin-tools.js +0 -5
  156. package/dist/src/gateway/agents-admin.d.ts +0 -7
  157. package/dist/src/gateway/agents-admin.js +3 -32
  158. package/dist/src/gateway/dreaming-automation-reconciler.d.ts +3 -3
  159. package/dist/src/gateway/dreaming-automation-reconciler.js +48 -88
  160. package/dist/src/gateway/hono/lib/config-payload.d.ts +19 -7
  161. package/dist/src/gateway/hono/lib/config-payload.js +3 -1
  162. package/dist/src/gateway/hono/oauth-async.d.ts +1 -0
  163. package/dist/src/gateway/hono/oauth-async.js +17 -2
  164. package/dist/src/gateway/hono/routes/agents.js +1 -33
  165. package/dist/src/gateway/hono/routes/config-patch/misc.js +17 -1
  166. package/dist/src/gateway/hono/routes/connectors.js +13 -12
  167. package/dist/src/gateway/hono/routes/index.js +2 -2
  168. package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -5
  169. package/dist/src/gateway/hono/routes/status.js +0 -7
  170. package/dist/src/gateway/hono/routes/understanding-sources.d.ts +3 -0
  171. package/dist/src/gateway/hono/routes/understanding-sources.js +203 -0
  172. package/dist/src/gateway/hono/routes/work-discovery.d.ts +2 -0
  173. package/dist/src/gateway/hono/routes/work-discovery.js +3 -134
  174. package/dist/src/gateway/hono/routes/you.d.ts +0 -22
  175. package/dist/src/gateway/hono/routes/you.js +234 -1118
  176. package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
  177. package/dist/src/gateway/service/run-gateway-agent.js +2 -4
  178. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  179. package/dist/src/knowledge/connected-understanding-pipeline.d.ts +2 -4
  180. package/dist/src/knowledge/connected-understanding-pipeline.js +31 -81
  181. package/dist/src/knowledge/index.js +2 -2
  182. package/dist/src/knowledge/people-graph.d.ts +22 -25
  183. package/dist/src/knowledge/people-graph.js +76 -43
  184. package/dist/src/proactive/execution/context.js +8 -13
  185. package/dist/src/realtime/broker.d.ts +1 -0
  186. package/dist/src/realtime/broker.js +19 -2
  187. package/dist/src/realtime/runtime.js +6 -1
  188. package/dist/src/storage/sqlite/connector-account-repository.js +0 -1
  189. package/dist/src/storage/sqlite/context-consolidation-repository.d.ts +37 -0
  190. package/dist/src/storage/sqlite/context-consolidation-repository.js +64 -0
  191. package/dist/src/storage/sqlite/fts.d.ts +2 -0
  192. package/dist/src/storage/sqlite/fts.js +29 -1
  193. package/dist/src/storage/sqlite/index.d.ts +4 -6
  194. package/dist/src/storage/sqlite/index.js +5 -7
  195. package/dist/src/storage/sqlite/knowledge-repository.d.ts +9 -2
  196. package/dist/src/storage/sqlite/knowledge-repository.js +58 -10
  197. package/dist/src/storage/sqlite/memory-records-repository.d.ts +7 -56
  198. package/dist/src/storage/sqlite/memory-records-repository.js +68 -218
  199. package/dist/src/storage/sqlite/migrations/113_memory_evidence_single_source.sql +54 -0
  200. package/dist/src/storage/sqlite/migrations/114_user_context_domain.sql +193 -0
  201. package/dist/src/storage/sqlite/migrations/115_remove_legacy_user_context.sql +6 -0
  202. package/dist/src/storage/sqlite/migrations/116_structured_context_consolidation.sql +38 -0
  203. package/dist/src/storage/sqlite/migrations/117_unified_understanding_sources.sql +110 -0
  204. package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
  205. package/dist/src/storage/sqlite/migrations/runner.js +3 -3
  206. package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
  207. package/dist/src/storage/sqlite/schema.js +1 -1
  208. package/dist/src/storage/sqlite/schema.sql +0 -20
  209. package/dist/src/storage/sqlite/user-context-quality-repository.d.ts +34 -0
  210. package/dist/src/storage/sqlite/user-context-quality-repository.js +74 -0
  211. package/dist/src/storage/sqlite/user-context-repository.d.ts +64 -0
  212. package/dist/src/storage/sqlite/user-context-repository.js +383 -0
  213. package/dist/src/tui/tool-summary.js +1 -7
  214. package/dist/src/tui/tui-startup-resources.js +1 -2
  215. package/dist/src/user-context/config.d.ts +17 -210
  216. package/dist/src/user-context/config.js +19 -85
  217. package/dist/src/user-context/consolidation.d.ts +26 -0
  218. package/dist/src/user-context/consolidation.js +115 -0
  219. package/dist/src/user-context/domain.d.ts +75 -0
  220. package/dist/src/user-context/domain.js +4 -0
  221. package/dist/src/user-context/manual-understanding.d.ts +7 -14
  222. package/dist/src/user-context/manual-understanding.js +19 -54
  223. package/dist/src/{agent/memory/context → user-context}/planner.d.ts +5 -6
  224. package/dist/src/user-context/planner.js +311 -0
  225. package/dist/src/user-context/relationship-continuity.d.ts +3 -6
  226. package/dist/src/user-context/relationship-continuity.js +39 -32
  227. package/dist/src/user-context/sources/catalog.d.ts +2 -0
  228. package/dist/src/user-context/sources/catalog.js +149 -0
  229. package/dist/src/user-context/sources/index.d.ts +3 -0
  230. package/dist/src/user-context/sources/index.js +3 -0
  231. package/dist/src/user-context/sources/repository.d.ts +40 -0
  232. package/dist/src/user-context/sources/repository.js +164 -0
  233. package/dist/src/user-context/sources/types.d.ts +83 -0
  234. package/dist/src/work-discovery/analyzer.d.ts +4 -3
  235. package/dist/src/work-discovery/analyzer.js +21 -16
  236. package/dist/src/work-discovery/incremental-repository.js +42 -40
  237. package/dist/src/work-discovery/index.js +3 -3
  238. package/dist/src/work-discovery/service.d.ts +7 -7
  239. package/dist/src/work-discovery/service.js +241 -190
  240. package/dist/src/work-discovery/source-repository.js +42 -53
  241. package/dist/src/work-discovery/types.d.ts +2 -14
  242. package/package.json +3 -8
  243. package/dist/gateway/static/root/assets/agents-BvdqdER9.js +0 -2
  244. package/dist/gateway/static/root/assets/apps-page-nKLsfy6C.js +0 -1
  245. package/dist/gateway/static/root/assets/automations-page-Dh5bdZiN.js +0 -6
  246. package/dist/gateway/static/root/assets/browser-settings-page-CRJ_nAuh.js +0 -8
  247. package/dist/gateway/static/root/assets/capabilities-settings-panel-DeQR5BZt.js +0 -7
  248. package/dist/gateway/static/root/assets/capability-presets-api-D7tkhDMv.js +0 -1
  249. package/dist/gateway/static/root/assets/capability-presets-settings-panel-D7uK3q1p.js +0 -1
  250. package/dist/gateway/static/root/assets/channels-settings-Bw6Dniyq.js +0 -1
  251. package/dist/gateway/static/root/assets/channels-status-swr-BrUTz4uU.js +0 -1
  252. package/dist/gateway/static/root/assets/connector-logo-8YU53RUT.js +0 -1
  253. package/dist/gateway/static/root/assets/connectors-page-k9tMiOL5.js +0 -2
  254. package/dist/gateway/static/root/assets/cron-expression-B3B1eqnr.js +0 -2
  255. package/dist/gateway/static/root/assets/extension-settings-page-DEZw_7zN.js +0 -1
  256. package/dist/gateway/static/root/assets/gateway-settings-Dg8qCiIp.js +0 -1
  257. package/dist/gateway/static/root/assets/heartbeat-settings-27tRzDEo.js +0 -1
  258. package/dist/gateway/static/root/assets/home-page-VA511kMr.js +0 -3
  259. package/dist/gateway/static/root/assets/index-BvR-i-m6.js +0 -216
  260. package/dist/gateway/static/root/assets/index-zybP34zk.css +0 -1
  261. package/dist/gateway/static/root/assets/local-app-workbench-page-CaJq4-wV.js +0 -2
  262. package/dist/gateway/static/root/assets/locale-store-DUW5YE3R.js +0 -1
  263. package/dist/gateway/static/root/assets/logs-page-BLTCg69e.js +0 -2
  264. package/dist/gateway/static/root/assets/messages-CMjnbdbn.js +0 -3
  265. package/dist/gateway/static/root/assets/notes-workbench-Bp1w9UM1.js +0 -4
  266. package/dist/gateway/static/root/assets/project-detail-page-CZmbPDQN.js +0 -1
  267. package/dist/gateway/static/root/assets/projects-page-D5pzqfm5.js +0 -1
  268. package/dist/gateway/static/root/assets/remote-access-hub-CC-XhVGI.js +0 -1
  269. package/dist/gateway/static/root/assets/segmented-styles-BL8oLBEp.js +0 -1
  270. package/dist/gateway/static/root/assets/sessions-page-B2eTLVDV.js +0 -1
  271. package/dist/gateway/static/root/assets/settings-advanced-gate-CRuZ_bl0.js +0 -1
  272. package/dist/gateway/static/root/assets/settings-form-section-C4GXGeA4.js +0 -1
  273. package/dist/gateway/static/root/assets/shares-settings-YzSDS4G_.js +0 -1
  274. package/dist/gateway/static/root/assets/skill-reload-api-CwOo8zZk.js +0 -1
  275. package/dist/gateway/static/root/assets/skills-page-xd1cgSGN.js +0 -2
  276. package/dist/gateway/static/root/assets/time-picker-CstQ___Y.js +0 -1
  277. package/dist/gateway/static/root/assets/use-save-bar-registration-CQYE0l6z.js +0 -1
  278. package/dist/gateway/static/root/assets/user-context-page-BnQAWS_B.js +0 -1
  279. package/dist/gateway/static/root/assets/work-discovery-page-CAszL1y8.js +0 -1
  280. package/dist/gateway/static/root/assets/workflows-page-DxGzo3-x.js +0 -11
  281. package/dist/src/agent/code-intelligence/binary.d.ts +0 -15
  282. package/dist/src/agent/code-intelligence/binary.js +0 -372
  283. package/dist/src/agent/code-intelligence/index.d.ts +0 -4
  284. package/dist/src/agent/code-intelligence/index.js +0 -4
  285. package/dist/src/agent/code-intelligence/runtime.d.ts +0 -34
  286. package/dist/src/agent/code-intelligence/runtime.js +0 -280
  287. package/dist/src/agent/code-intelligence/tool-gating.d.ts +0 -5
  288. package/dist/src/agent/code-intelligence/tool-gating.js +0 -6
  289. package/dist/src/agent/code-intelligence/tools.d.ts +0 -6
  290. package/dist/src/agent/code-intelligence/tools.js +0 -266
  291. package/dist/src/agent/code-intelligence/types.d.ts +0 -22
  292. package/dist/src/agent/memory/context/planner.js +0 -286
  293. package/dist/src/agent/memory/dreaming/config.d.ts +0 -48
  294. package/dist/src/agent/memory/dreaming/config.js +0 -98
  295. package/dist/src/agent/memory/dreaming/constants.d.ts +0 -12
  296. package/dist/src/agent/memory/dreaming/constants.js +0 -18
  297. package/dist/src/agent/memory/dreaming/deep-promotion.d.ts +0 -19
  298. package/dist/src/agent/memory/dreaming/deep-promotion.js +0 -152
  299. package/dist/src/agent/memory/dreaming/light-sweep.d.ts +0 -16
  300. package/dist/src/agent/memory/dreaming/light-sweep.js +0 -115
  301. package/dist/src/agent/memory/dreaming/preview.d.ts +0 -23
  302. package/dist/src/agent/memory/dreaming/preview.js +0 -52
  303. package/dist/src/agent/memory/dreaming/promotion-lifecycle.d.ts +0 -16
  304. package/dist/src/agent/memory/dreaming/promotion-lifecycle.js +0 -44
  305. package/dist/src/agent/memory/dreaming/rem-patterns.d.ts +0 -19
  306. package/dist/src/agent/memory/dreaming/rem-patterns.js +0 -150
  307. package/dist/src/agent/memory/dreaming/runner.d.ts +0 -10
  308. package/dist/src/agent/memory/dreaming/runner.js +0 -78
  309. package/dist/src/agent/memory/dreaming/schedule.d.ts +0 -23
  310. package/dist/src/agent/memory/dreaming/schedule.js +0 -38
  311. package/dist/src/agent/memory/dreaming/scope.d.ts +0 -11
  312. package/dist/src/agent/memory/dreaming/scope.js +0 -33
  313. package/dist/src/agent/memory/dreaming/utils.d.ts +0 -3
  314. package/dist/src/agent/memory/dreaming/utils.js +0 -31
  315. package/dist/src/gateway/hono/routes/memory.d.ts +0 -3
  316. package/dist/src/gateway/hono/routes/memory.js +0 -460
  317. package/dist/src/storage/sqlite/dreaming-repository.d.ts +0 -61
  318. package/dist/src/storage/sqlite/dreaming-repository.js +0 -88
  319. package/dist/src/storage/sqlite/memory-readiness-repository.d.ts +0 -7
  320. package/dist/src/storage/sqlite/memory-readiness-repository.js +0 -30
  321. package/dist/src/storage/sqlite/memory-reference-consent-repository.d.ts +0 -27
  322. package/dist/src/storage/sqlite/memory-reference-consent-repository.js +0 -107
  323. package/dist/src/storage/sqlite/user-claims-repository.d.ts +0 -101
  324. package/dist/src/storage/sqlite/user-claims-repository.js +0 -241
  325. package/dist/src/storage/sqlite/user-profile-setup-repository.d.ts +0 -3
  326. package/dist/src/storage/sqlite/user-profile-setup-repository.js +0 -32
  327. package/dist/src/user-context/actionableInsights.d.ts +0 -14
  328. package/dist/src/user-context/actionableInsights.js +0 -34
  329. package/dist/src/user-context/context-compiler.d.ts +0 -27
  330. package/dist/src/user-context/context-compiler.js +0 -48
  331. package/dist/src/user-context/import.d.ts +0 -12
  332. package/dist/src/user-context/import.js +0 -51
  333. package/dist/src/user-context/memory-episode-evaluator.d.ts +0 -32
  334. package/dist/src/user-context/memory-episode-evaluator.js +0 -35
  335. package/dist/src/user-context/memory-readiness.d.ts +0 -33
  336. package/dist/src/user-context/memory-readiness.js +0 -41
  337. package/dist/src/user-context/memory-use-audit.d.ts +0 -10
  338. package/dist/src/user-context/memory-use-audit.js +0 -26
  339. package/dist/src/user-context/personal-playbook.d.ts +0 -11
  340. package/dist/src/user-context/personal-playbook.js +0 -41
  341. package/dist/src/user-context/profile.d.ts +0 -37
  342. package/dist/src/user-context/profile.js +0 -163
  343. package/dist/src/user-context/projection.d.ts +0 -120
  344. package/dist/src/user-context/projection.js +0 -262
  345. package/dist/src/user-context/source-recommendations.d.ts +0 -13
  346. package/dist/src/user-context/source-recommendations.js +0 -85
  347. /package/dist/src/{agent/code-intelligence → user-context/sources}/types.js +0 -0
@@ -1,9 +1,9 @@
1
1
  import { buildAgentManifestPromptSection } from "../agent-manifest/prompt.js";
2
2
  import "../agent-manifest/index.js";
3
+ import { buildMemoryRuntime } from "./memory-runtime.js";
3
4
  import { checkBoundary } from "./boundary-guard.js";
4
5
  import { resolveModelRole } from "./model-router.js";
5
6
  import { buildRuntimeToolRegistry } from "./tool-registry.js";
6
- import { buildMemoryRuntime } from "./memory-runtime.js";
7
7
  import { resolveWorkflow, validateWorkflowForRuntime } from "./workflow-runtime.js";
8
8
  //#region src/agent-runtime/runtime-profile.ts
9
9
  function buildAgentRuntimeProfile(params) {
@@ -477,6 +477,13 @@ export declare const CreateAutomationSchema: z.ZodObject<{
477
477
  }, z.core.$strip>], "type">;
478
478
  }, z.core.$strict>], "kind">;
479
479
  description: z.ZodOptional<z.ZodString>;
480
+ safety: z.ZodOptional<z.ZodObject<{
481
+ mode: z.ZodEnum<{
482
+ suggest_only: "suggest_only";
483
+ ask_before_apply: "ask_before_apply";
484
+ auto_apply: "auto_apply";
485
+ }>;
486
+ }, z.core.$strict>>;
480
487
  trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
481
488
  kind: z.ZodLiteral<"manual">;
482
489
  }, z.core.$strict>, z.ZodObject<{
@@ -502,13 +509,6 @@ export declare const CreateAutomationSchema: z.ZodObject<{
502
509
  source: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
503
510
  payloadMatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
504
511
  }, z.core.$strict>], "kind">;
505
- safety: z.ZodOptional<z.ZodObject<{
506
- mode: z.ZodEnum<{
507
- suggest_only: "suggest_only";
508
- ask_before_apply: "ask_before_apply";
509
- auto_apply: "auto_apply";
510
- }>;
511
- }, z.core.$strict>>;
512
512
  afterRun: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
513
513
  kind: z.ZodLiteral<"none">;
514
514
  }, z.core.$strict>, z.ZodObject<{
@@ -657,21 +657,12 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
657
657
  }, z.core.$strip>], "type">;
658
658
  }, z.core.$strict>], "kind">>;
659
659
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
660
- state: z.ZodOptional<z.ZodDefault<z.ZodObject<{
661
- nextRunAtMs: z.ZodOptional<z.ZodNumber>;
662
- runningRunId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
663
- lastRunAtMs: z.ZodOptional<z.ZodNumber>;
664
- lastRunStatus: z.ZodOptional<z.ZodEnum<{
665
- failed: "failed";
666
- succeeded: "succeeded";
667
- running: "running";
668
- queued: "queued";
669
- cancelled: "cancelled";
670
- timeout: "timeout";
671
- cancelling: "cancelling";
672
- }>>;
673
- lastError: z.ZodOptional<z.ZodString>;
674
- consecutiveFailures: z.ZodOptional<z.ZodNumber>;
660
+ safety: z.ZodOptional<z.ZodOptional<z.ZodObject<{
661
+ mode: z.ZodEnum<{
662
+ suggest_only: "suggest_only";
663
+ ask_before_apply: "ask_before_apply";
664
+ auto_apply: "auto_apply";
665
+ }>;
675
666
  }, z.core.$strict>>>;
676
667
  trigger: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
677
668
  kind: z.ZodLiteral<"manual">;
@@ -698,12 +689,21 @@ export declare const UpdateAutomationSchema: z.ZodObject<{
698
689
  source: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
699
690
  payloadMatch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
700
691
  }, z.core.$strict>], "kind">>;
701
- safety: z.ZodOptional<z.ZodOptional<z.ZodObject<{
702
- mode: z.ZodEnum<{
703
- suggest_only: "suggest_only";
704
- ask_before_apply: "ask_before_apply";
705
- auto_apply: "auto_apply";
706
- }>;
692
+ state: z.ZodOptional<z.ZodDefault<z.ZodObject<{
693
+ nextRunAtMs: z.ZodOptional<z.ZodNumber>;
694
+ runningRunId: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
695
+ lastRunAtMs: z.ZodOptional<z.ZodNumber>;
696
+ lastRunStatus: z.ZodOptional<z.ZodEnum<{
697
+ failed: "failed";
698
+ succeeded: "succeeded";
699
+ running: "running";
700
+ queued: "queued";
701
+ cancelled: "cancelled";
702
+ timeout: "timeout";
703
+ cancelling: "cancelling";
704
+ }>>;
705
+ lastError: z.ZodOptional<z.ZodString>;
706
+ consecutiveFailures: z.ZodOptional<z.ZodNumber>;
707
707
  }, z.core.$strict>>>;
708
708
  afterRun: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
709
709
  kind: z.ZodLiteral<"none">;
@@ -102,6 +102,9 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
102
102
  };
103
103
  };
104
104
  description?: string;
105
+ safety?: {
106
+ mode: "suggest_only" | "ask_before_apply" | "auto_apply";
107
+ };
105
108
  trigger?: {
106
109
  kind: "manual";
107
110
  } | {
@@ -127,9 +130,6 @@ export declare function buildAutomationDraftResponse(draft: GeneratedAutomationD
127
130
  source?: string;
128
131
  payloadMatch?: Record<string, string | number | boolean>;
129
132
  };
130
- safety?: {
131
- mode: "suggest_only" | "ask_before_apply" | "auto_apply";
132
- };
133
133
  afterRun?: {
134
134
  kind: "none";
135
135
  } | {
@@ -1,8 +1,6 @@
1
- import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
2
1
  import { commandRegistry } from "../registry.js";
3
2
  import { createManualUnderstanding } from "../../user-context/manual-understanding.js";
4
3
  //#region src/chat-commands/builtins/understanding.ts
5
- init_agent_scope();
6
4
  function parseRememberArgs(args) {
7
5
  const trimmed = args.trim();
8
6
  if (trimmed !== "--session" && !trimmed.startsWith("--session ")) return {
@@ -29,12 +27,11 @@ const rememberCommand = {
29
27
  success: false
30
28
  };
31
29
  const result = createManualUnderstanding({
32
- agentId: resolveDefaultAgentId(ctx.config),
33
30
  content,
34
31
  kind: "derived_insight",
35
32
  scope: sessionOnly ? {
36
33
  type: "session",
37
- sessionKey: ctx.sessionKey
34
+ id: ctx.sessionKey
38
35
  } : { type: "global" },
39
36
  sensitivity: "normal",
40
37
  durability: sessionOnly ? "ephemeral" : "durable",
@@ -76,7 +73,7 @@ const learningCommand = {
76
73
  success: false
77
74
  };
78
75
  if (action !== "status") await store.update(ctx.sessionKey, { userContextMode: action === "off" ? "off" : "enabled" });
79
- const globallyEnabled = ctx.config.userContext.enabled && ctx.config.userContext.memory.mode !== "off";
76
+ const globallyEnabled = ctx.config.userContext.enabled;
80
77
  return {
81
78
  content: globallyEnabled && (await store.get(ctx.sessionKey))?.userContextMode !== "off" ? "User understanding is enabled for this conversation." : globallyEnabled ? "User understanding is off for this conversation. Existing chat history is still stored; use /remember for anything you explicitly want saved." : "User understanding is disabled globally. Existing chat history is still stored.",
82
79
  success: true
@@ -52,7 +52,7 @@ async function checkDatabaseSchema(ctx) {
52
52
  id: "database-schema",
53
53
  label: "Database schema",
54
54
  status: "pass",
55
- message: `SQLite schema v${status.dbVersion} (current release v112).`,
55
+ message: `SQLite schema v${status.dbVersion} (current release v117).`,
56
56
  hints: []
57
57
  };
58
58
  }
@@ -2,11 +2,11 @@ import { resolveStateDir } from "../../config/paths-state.js";
2
2
  import { createLogger } from "../../utils/logger/index.js";
3
3
  import { init_logger } from "../../utils/logger.js";
4
4
  import { resolveAgentWorkspaceDir } from "../../agent/agent-scope.js";
5
- import { WORKSPACE_FILES, init_paths, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveConfigPath, resolveUserProfilePath } from "../../config/paths.js";
5
+ import { WORKSPACE_FILES, init_paths, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveConfigPath } from "../../config/paths.js";
6
6
  import { init_loader, loadConfig, saveConfig } from "../../config/loader.js";
7
7
  import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
8
8
  import { formatExamples, register } from "../registry.js";
9
- import { dirname, join } from "path";
9
+ import { join } from "path";
10
10
  import { existsSync, readFileSync } from "fs";
11
11
  import { mkdir, writeFile } from "fs/promises";
12
12
  import { Command } from "commander";
@@ -98,7 +98,7 @@ Be careful with external actions (emails, tweets, anything public). Be bold with
98
98
 
99
99
  ## Continuity
100
100
 
101
- Each session, you wake up fresh. These files _are_ your memory. Read them. Update them.
101
+ These files define your identity and operating principles. Durable user context is provided separately by xopc.
102
102
 
103
103
  _This file is yours to evolve. As you learn who you are, update it._
104
104
  `, "utf-8");
@@ -127,25 +127,6 @@ _This file is yours to evolve. As you learn who you are, update it._
127
127
  `, "utf-8");
128
128
  log.info({ path: identityPath }, "Created IDENTITY.md");
129
129
  }
130
- const userPath = resolveUserProfilePath();
131
- if (!existsSync(userPath)) {
132
- await mkdir(dirname(userPath), { recursive: true });
133
- await writeFile(userPath, `# PROFILE.md - About You
134
-
135
- _Shared by all agents. Update this as your preferences and context change._
136
-
137
- - **Name:**
138
- - **What to call them:**
139
- - **Pronouns:**
140
- - **Timezone:**
141
- - **Notes:**
142
-
143
- ## Context
144
-
145
- _(What do they care about? What projects are they working on? Build this over time.)_
146
- `, "utf-8");
147
- log.info({ path: userPath }, "Created global user PROFILE.md");
148
- }
149
130
  const agentsPath = join(profileDir, WORKSPACE_FILES.AGENTS);
150
131
  if (!existsSync(agentsPath)) {
151
132
  await writeFile(agentsPath, `# AGENTS.md - Behavior Guidelines
@@ -69,7 +69,7 @@ This folder is home. Treat it that way.
69
69
 
70
70
  ## Session Startup
71
71
 
72
- Use runtime-provided startup context first. Bootstrap files (global user profile, SOUL, MEMORY, etc.) are injected by xopc on /new and /reset.
72
+ Use runtime-provided startup context first. Agent profile files such as SOUL.md are injected by xopc on /new and /reset; relevant user context is selected from SQLite per turn.
73
73
 
74
74
  Do not manually reread startup files unless the user asks or the provided context is incomplete.
75
75
 
@@ -1,13 +1,13 @@
1
1
  import { ENV_VARS, XOPC_DB_FILENAME, resolveHomeDir, resolveStateDir, resolveXopcDatabasePath } from "./paths-state.js";
2
2
  import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema } from "../../extensions/telegram/src/config-schema.js";
3
3
  import { WeixinAccountConfigSchema, WeixinConfigSchema } from "../../extensions/weixin/src/config-schema.js";
4
- import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, AgentTypedModelRoleSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, BrowserConfigSchema, ChannelsConfigSchema, CodeIntelligenceConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, 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, TuiConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
4
+ import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, AgentTypedModelRoleSchema, AgentsConfigSchema, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, HeartbeatConfigSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, 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, TuiConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
5
5
  import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConfigOverride, unsetConfigOverride } from "./runtime-overrides.js";
6
6
  import { expandWorkspacePathString, init_workspace_path, normalizeWorkspaceDir, resolveWorkspaceRoot } from "./workspace-path.js";
7
7
  import { resolveDefaultAgentWorkspaceDir } from "./workspace-defaults.js";
8
8
  import { resolveAgentDir as resolveAgentDir$1, resolveAgentHomeDir as resolveAgentHomeDir$1, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
9
9
  import { extractProfileAgentId, resolveEffectiveAgentManifestForAgent, resolveEffectiveAgentManifestForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
10
- import { FILENAMES, USER_PROFILE_FILENAME, WORKSPACE_FILES, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStatusPath, resolveToolsDir, resolveUserDir, resolveUserProfilePath, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath } from "./paths.js";
10
+ import { FILENAMES, WORKSPACE_FILES, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath } from "./paths.js";
11
11
  import { init_loader, loadConfig, saveConfig } from "./loader.js";
12
12
  import { clearConfigValueCache, getAllowedCommands, getCacheStats, init_resolve_config_value, resolveConfigValue, resolveHeaders, testApiKeyResolution } from "./resolve-config-value.js";
13
13
  import { CustomModelSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, ModelOverrideSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProviderConfigSchema, VercelGatewayRoutingSchema, getDefaultModelValues, init_models_json, loadModelsJson, modelsJsonExists, saveModelsJson, validateModelsConfig } from "./models-json.js";
@@ -27,4 +27,4 @@ init_workspace_path();
27
27
  init_models_json();
28
28
  init_resolve_config_value();
29
29
  //#endregion
30
- export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, AgentTypedModelRoleSchema, AgentsConfigSchema, BASE_RELOAD_RULES, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, BrowserConfigSchema, ChannelsConfigSchema, CodeIntelligenceConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, HeartbeatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, 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, TuiConfigSchema, TunnelConfigSchema, TunnelConsentSchema, USER_PROFILE_FILENAME, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, isKnownCliMcpTypeAlias, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentManifestForAgent, resolveEffectiveAgentManifestForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveUserDir, resolveUserProfilePath, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcDatabasePath, resolveXopcMcpTransportAlias, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
30
+ export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, AgentTypedModelRoleSchema, AgentsConfigSchema, BASE_RELOAD_RULES, BindingMatchSchema, BindingRuleSchema, BindingsConfigSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, HeartbeatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, 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, TuiConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, isKnownCliMcpTypeAlias, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentManifestForAgent, resolveEffectiveAgentManifestForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcDatabasePath, resolveXopcMcpTransportAlias, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
@@ -25,7 +25,6 @@ export declare const WORKSPACE_FILES: {
25
25
  readonly TOOLS: "TOOLS.md";
26
26
  readonly HEARTBEAT: "HEARTBEAT.md";
27
27
  };
28
- export declare const USER_PROFILE_FILENAME = "PROFILE.md";
29
28
  /**
30
29
  * Resolve the main config file path
31
30
  */
@@ -38,10 +37,6 @@ export declare function resolveCredentialsDir(): string;
38
37
  * Resolve the global auth-profiles.json path
39
38
  */
40
39
  export declare function resolveAuthProfilesPath(): string;
41
- /** Global user profile root (`~/.xopc/user/`). */
42
- export declare function resolveUserDir(): string;
43
- /** Global human/user profile Markdown (`~/.xopc/user/PROFILE.md`). */
44
- export declare function resolveUserProfilePath(): string;
45
40
  /**
46
41
  * Resolve OAuth token file path for a provider
47
42
  */
@@ -24,14 +24,6 @@ function resolveCredentialsDir() {
24
24
  function resolveAuthProfilesPath() {
25
25
  return join(resolveCredentialsDir(), FILENAMES.CREDENTIALS_PROFILES);
26
26
  }
27
- /** Global user profile root (`~/.xopc/user/`). */
28
- function resolveUserDir() {
29
- return join(resolveStateDir(), "user");
30
- }
31
- /** Global human/user profile Markdown (`~/.xopc/user/PROFILE.md`). */
32
- function resolveUserProfilePath() {
33
- return join(resolveUserDir(), USER_PROFILE_FILENAME);
34
- }
35
27
  /**
36
28
  * Resolve OAuth token file path for a provider
37
29
  */
@@ -296,7 +288,7 @@ function resolveExtensionSdkPath() {
296
288
  return join(process.cwd(), "src", "extensions", "sdk", "index.ts");
297
289
  }
298
290
  }
299
- var ENV_BUNDLED_EXTENSIONS_ROOT, ENV_BUNDLED_SKILLS_ROOT, FILENAMES, WORKSPACE_FILES, USER_PROFILE_FILENAME;
291
+ var ENV_BUNDLED_EXTENSIONS_ROOT, ENV_BUNDLED_SKILLS_ROOT, FILENAMES, WORKSPACE_FILES;
300
292
  var init_paths = __esmMin((() => {
301
293
  init_agent_scope();
302
294
  init_paths_state();
@@ -325,8 +317,7 @@ var init_paths = __esmMin((() => {
325
317
  TOOLS: "TOOLS.md",
326
318
  HEARTBEAT: "HEARTBEAT.md"
327
319
  };
328
- USER_PROFILE_FILENAME = "PROFILE.md";
329
320
  }));
330
321
  //#endregion
331
322
  init_paths();
332
- export { ENV_VARS, FILENAMES, USER_PROFILE_FILENAME, WORKSPACE_FILES, XOPC_DB_FILENAME, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveUserDir, resolveUserProfilePath, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcDatabasePath };
323
+ export { ENV_VARS, FILENAMES, WORKSPACE_FILES, XOPC_DB_FILENAME, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentDir$1 as resolveAgentDirFromConfig, resolveAgentHomeDir, resolveAgentHomeDir$1 as resolveAgentHomeDirFromConfig, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcDatabasePath };
@@ -89,8 +89,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
89
89
  builtin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
90
90
  mode: z.ZodEnum<{
91
91
  allow: "allow";
92
- confirm: "confirm";
93
92
  deny: "deny";
93
+ confirm: "confirm";
94
94
  }>;
95
95
  scope: z.ZodOptional<z.ZodEnum<{
96
96
  workspace: "workspace";
@@ -106,8 +106,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
106
106
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
107
107
  mode: z.ZodEnum<{
108
108
  allow: "allow";
109
- confirm: "confirm";
110
109
  deny: "deny";
110
+ confirm: "confirm";
111
111
  }>;
112
112
  scope: z.ZodOptional<z.ZodEnum<{
113
113
  workspace: "workspace";
@@ -122,8 +122,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
122
122
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
123
123
  mode: z.ZodEnum<{
124
124
  allow: "allow";
125
- confirm: "confirm";
126
125
  deny: "deny";
126
+ confirm: "confirm";
127
127
  }>;
128
128
  scope: z.ZodOptional<z.ZodEnum<{
129
129
  workspace: "workspace";
@@ -219,8 +219,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
219
219
  builtin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
220
220
  mode: z.ZodEnum<{
221
221
  allow: "allow";
222
- confirm: "confirm";
223
222
  deny: "deny";
223
+ confirm: "confirm";
224
224
  }>;
225
225
  scope: z.ZodOptional<z.ZodEnum<{
226
226
  workspace: "workspace";
@@ -236,8 +236,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
236
236
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
237
237
  mode: z.ZodEnum<{
238
238
  allow: "allow";
239
- confirm: "confirm";
240
239
  deny: "deny";
240
+ confirm: "confirm";
241
241
  }>;
242
242
  scope: z.ZodOptional<z.ZodEnum<{
243
243
  workspace: "workspace";
@@ -252,8 +252,8 @@ export declare const AgentsConfigSchema: z.ZodDefault<z.ZodObject<{
252
252
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
253
253
  mode: z.ZodEnum<{
254
254
  allow: "allow";
255
- confirm: "confirm";
256
255
  deny: "deny";
256
+ confirm: "confirm";
257
257
  }>;
258
258
  scope: z.ZodOptional<z.ZodEnum<{
259
259
  workspace: "workspace";
@@ -1093,9 +1093,9 @@ export declare const TTSConfigSchema: z.ZodObject<{
1093
1093
  export declare const VoiceRefinementConfigSchema: z.ZodObject<{
1094
1094
  mode: z.ZodDefault<z.ZodEnum<{
1095
1095
  off: "off";
1096
- light: "light";
1097
1096
  custom: "custom";
1098
1097
  punctuation: "punctuation";
1098
+ light: "light";
1099
1099
  }>>;
1100
1100
  model: z.ZodOptional<z.ZodString>;
1101
1101
  customInstruction: z.ZodOptional<z.ZodString>;
@@ -1113,9 +1113,9 @@ export declare const VoiceConfigSchema: z.ZodOptional<z.ZodObject<{
1113
1113
  refinement: z.ZodOptional<z.ZodObject<{
1114
1114
  mode: z.ZodDefault<z.ZodEnum<{
1115
1115
  off: "off";
1116
- light: "light";
1117
1116
  custom: "custom";
1118
1117
  punctuation: "punctuation";
1118
+ light: "light";
1119
1119
  }>>;
1120
1120
  model: z.ZodOptional<z.ZodString>;
1121
1121
  customInstruction: z.ZodOptional<z.ZodString>;
@@ -1403,22 +1403,6 @@ export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
1403
1403
  }, z.core.$strict>>;
1404
1404
  export type McpServerConfig = z.infer<typeof McpServerSchema>;
1405
1405
  export type McpConfig = z.infer<typeof McpConfigSchema>;
1406
- export declare const CodeIntelligenceConfigSchema: z.ZodDefault<z.ZodObject<{
1407
- enabled: z.ZodDefault<z.ZodBoolean>;
1408
- agentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
1409
- indexMode: z.ZodDefault<z.ZodEnum<{
1410
- full: "full";
1411
- fast: "fast";
1412
- moderate: "moderate";
1413
- }>>;
1414
- autoIndex: z.ZodDefault<z.ZodBoolean>;
1415
- autoRefresh: z.ZodDefault<z.ZodBoolean>;
1416
- refreshDebounceMs: z.ZodDefault<z.ZodNumber>;
1417
- queryTimeoutMs: z.ZodDefault<z.ZodNumber>;
1418
- indexTimeoutMs: z.ZodDefault<z.ZodNumber>;
1419
- binaryPath: z.ZodOptional<z.ZodString>;
1420
- }, z.core.$strict>>;
1421
- export type CodeIntelligenceConfig = z.infer<typeof CodeIntelligenceConfigSchema>;
1422
1406
  export declare const ConnectorsConfigSchema: z.ZodOptional<z.ZodObject<{
1423
1407
  instances: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1424
1408
  }, z.core.$strict>>;
@@ -1448,30 +1432,23 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1448
1432
  session: "session";
1449
1433
  workspace: "workspace";
1450
1434
  understanding: "understanding";
1451
- userProfile: "userProfile";
1452
1435
  agentProfile: "agentProfile";
1453
- connectedSources: "connectedSources";
1454
1436
  }>>>;
1455
1437
  writePolicy: z.ZodOptional<z.ZodObject<{
1456
- userProfile: z.ZodOptional<z.ZodEnum<{
1457
- allow: "allow";
1458
- confirm: "confirm";
1459
- deny: "deny";
1460
- }>>;
1461
1438
  agentProfile: z.ZodOptional<z.ZodEnum<{
1462
1439
  allow: "allow";
1463
- confirm: "confirm";
1464
1440
  deny: "deny";
1441
+ confirm: "confirm";
1465
1442
  }>>;
1466
1443
  understanding: z.ZodOptional<z.ZodEnum<{
1467
1444
  allow: "allow";
1468
- confirm: "confirm";
1469
1445
  deny: "deny";
1446
+ confirm: "confirm";
1470
1447
  }>>;
1471
1448
  workspace: z.ZodOptional<z.ZodEnum<{
1472
1449
  allow: "allow";
1473
- confirm: "confirm";
1474
1450
  deny: "deny";
1451
+ confirm: "confirm";
1475
1452
  }>>;
1476
1453
  }, z.core.$strict>>;
1477
1454
  retention: z.ZodOptional<z.ZodObject<{
@@ -1507,8 +1484,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1507
1484
  privacy: z.ZodDefault<z.ZodObject<{
1508
1485
  sensitiveWritePolicy: z.ZodDefault<z.ZodEnum<{
1509
1486
  allow: "allow";
1510
- confirm: "confirm";
1511
1487
  deny: "deny";
1488
+ confirm: "confirm";
1512
1489
  }>>;
1513
1490
  }, z.core.$strict>>;
1514
1491
  providerRouting: z.ZodDefault<z.ZodObject<{
@@ -1533,69 +1510,14 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1533
1510
  dreaming: z.ZodDefault<z.ZodObject<{
1534
1511
  mode: z.ZodDefault<z.ZodEnum<{
1535
1512
  off: "off";
1536
- observe: "observe";
1537
1513
  review: "review";
1538
- automatic: "automatic";
1539
1514
  }>>;
1540
1515
  timezone: z.ZodOptional<z.ZodString>;
1541
- phases: z.ZodOptional<z.ZodObject<{
1542
- light: z.ZodOptional<z.ZodObject<{
1543
- enabled: z.ZodOptional<z.ZodBoolean>;
1544
- schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1545
- kind: z.ZodLiteral<"interval">;
1546
- everyHours: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<24>]>;
1547
- minute: z.ZodNumber;
1548
- }, z.core.$strict>, z.ZodObject<{
1549
- kind: z.ZodLiteral<"daily">;
1550
- time: z.ZodString;
1551
- }, z.core.$strict>, z.ZodObject<{
1552
- kind: z.ZodLiteral<"weekly">;
1553
- weekday: z.ZodNumber;
1554
- time: z.ZodString;
1555
- }, z.core.$strict>], "kind">>;
1556
- lookbackDays: z.ZodOptional<z.ZodNumber>;
1557
- limit: z.ZodOptional<z.ZodNumber>;
1558
- }, z.core.$strict>>;
1559
- deep: z.ZodOptional<z.ZodObject<{
1560
- enabled: z.ZodOptional<z.ZodBoolean>;
1561
- schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1562
- kind: z.ZodLiteral<"interval">;
1563
- everyHours: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<24>]>;
1564
- minute: z.ZodNumber;
1565
- }, z.core.$strict>, z.ZodObject<{
1566
- kind: z.ZodLiteral<"daily">;
1567
- time: z.ZodString;
1568
- }, z.core.$strict>, z.ZodObject<{
1569
- kind: z.ZodLiteral<"weekly">;
1570
- weekday: z.ZodNumber;
1571
- time: z.ZodString;
1572
- }, z.core.$strict>], "kind">>;
1573
- minScore: z.ZodOptional<z.ZodNumber>;
1574
- minRecallCount: z.ZodOptional<z.ZodNumber>;
1575
- minUniqueQueries: z.ZodOptional<z.ZodNumber>;
1576
- limit: z.ZodOptional<z.ZodNumber>;
1577
- recencyHalfLifeDays: z.ZodOptional<z.ZodNumber>;
1578
- maxAgeDays: z.ZodOptional<z.ZodNumber>;
1579
- }, z.core.$strict>>;
1580
- rem: z.ZodOptional<z.ZodObject<{
1581
- enabled: z.ZodOptional<z.ZodBoolean>;
1582
- schedule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1583
- kind: z.ZodLiteral<"interval">;
1584
- everyHours: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>, z.ZodLiteral<12>, z.ZodLiteral<24>]>;
1585
- minute: z.ZodNumber;
1586
- }, z.core.$strict>, z.ZodObject<{
1587
- kind: z.ZodLiteral<"daily">;
1588
- time: z.ZodString;
1589
- }, z.core.$strict>, z.ZodObject<{
1590
- kind: z.ZodLiteral<"weekly">;
1591
- weekday: z.ZodNumber;
1592
- time: z.ZodString;
1593
- }, z.core.$strict>], "kind">>;
1594
- lookbackDays: z.ZodOptional<z.ZodNumber>;
1595
- limit: z.ZodOptional<z.ZodNumber>;
1596
- minPatternStrength: z.ZodOptional<z.ZodNumber>;
1597
- }, z.core.$strict>>;
1516
+ schedule: z.ZodDefault<z.ZodObject<{
1517
+ time: z.ZodDefault<z.ZodString>;
1598
1518
  }, z.core.$strict>>;
1519
+ minEvidenceSources: z.ZodDefault<z.ZodNumber>;
1520
+ limit: z.ZodDefault<z.ZodNumber>;
1599
1521
  }, z.core.$strict>>;
1600
1522
  }, z.core.$strict>>;
1601
1523
  agents: z.ZodDefault<z.ZodObject<{
@@ -1639,8 +1561,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1639
1561
  builtin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1640
1562
  mode: z.ZodEnum<{
1641
1563
  allow: "allow";
1642
- confirm: "confirm";
1643
1564
  deny: "deny";
1565
+ confirm: "confirm";
1644
1566
  }>;
1645
1567
  scope: z.ZodOptional<z.ZodEnum<{
1646
1568
  workspace: "workspace";
@@ -1656,8 +1578,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1656
1578
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1657
1579
  mode: z.ZodEnum<{
1658
1580
  allow: "allow";
1659
- confirm: "confirm";
1660
1581
  deny: "deny";
1582
+ confirm: "confirm";
1661
1583
  }>;
1662
1584
  scope: z.ZodOptional<z.ZodEnum<{
1663
1585
  workspace: "workspace";
@@ -1672,8 +1594,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1672
1594
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1673
1595
  mode: z.ZodEnum<{
1674
1596
  allow: "allow";
1675
- confirm: "confirm";
1676
1597
  deny: "deny";
1598
+ confirm: "confirm";
1677
1599
  }>;
1678
1600
  scope: z.ZodOptional<z.ZodEnum<{
1679
1601
  workspace: "workspace";
@@ -1769,8 +1691,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1769
1691
  builtin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1770
1692
  mode: z.ZodEnum<{
1771
1693
  allow: "allow";
1772
- confirm: "confirm";
1773
1694
  deny: "deny";
1695
+ confirm: "confirm";
1774
1696
  }>;
1775
1697
  scope: z.ZodOptional<z.ZodEnum<{
1776
1698
  workspace: "workspace";
@@ -1786,8 +1708,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1786
1708
  servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1787
1709
  mode: z.ZodEnum<{
1788
1710
  allow: "allow";
1789
- confirm: "confirm";
1790
1711
  deny: "deny";
1712
+ confirm: "confirm";
1791
1713
  }>;
1792
1714
  scope: z.ZodOptional<z.ZodEnum<{
1793
1715
  workspace: "workspace";
@@ -1802,8 +1724,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
1802
1724
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1803
1725
  mode: z.ZodEnum<{
1804
1726
  allow: "allow";
1805
- confirm: "confirm";
1806
1727
  deny: "deny";
1728
+ confirm: "confirm";
1807
1729
  }>;
1808
1730
  scope: z.ZodOptional<z.ZodEnum<{
1809
1731
  workspace: "workspace";
@@ -2250,21 +2172,6 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
2250
2172
  }, z.core.$catchall<z.ZodUnknown>>>>;
2251
2173
  sessionIdleTtlMs: z.ZodOptional<z.ZodNumber>;
2252
2174
  }, z.core.$strict>>;
2253
- codeIntelligence: z.ZodDefault<z.ZodObject<{
2254
- enabled: z.ZodDefault<z.ZodBoolean>;
2255
- agentIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
2256
- indexMode: z.ZodDefault<z.ZodEnum<{
2257
- full: "full";
2258
- fast: "fast";
2259
- moderate: "moderate";
2260
- }>>;
2261
- autoIndex: z.ZodDefault<z.ZodBoolean>;
2262
- autoRefresh: z.ZodDefault<z.ZodBoolean>;
2263
- refreshDebounceMs: z.ZodDefault<z.ZodNumber>;
2264
- queryTimeoutMs: z.ZodDefault<z.ZodNumber>;
2265
- indexTimeoutMs: z.ZodDefault<z.ZodNumber>;
2266
- binaryPath: z.ZodOptional<z.ZodString>;
2267
- }, z.core.$strict>>;
2268
2175
  connectors: z.ZodOptional<z.ZodObject<{
2269
2176
  instances: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2270
2177
  }, z.core.$strict>>;
@@ -2348,9 +2255,9 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
2348
2255
  refinement: z.ZodOptional<z.ZodObject<{
2349
2256
  mode: z.ZodDefault<z.ZodEnum<{
2350
2257
  off: "off";
2351
- light: "light";
2352
2258
  custom: "custom";
2353
2259
  punctuation: "punctuation";
2260
+ light: "light";
2354
2261
  }>>;
2355
2262
  model: z.ZodOptional<z.ZodString>;
2356
2263
  customInstruction: z.ZodOptional<z.ZodString>;
@@ -2377,7 +2284,7 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
2377
2284
  tui: z.ZodDefault<z.ZodObject<{
2378
2285
  defaultAgent: z.ZodOptional<z.ZodString>;
2379
2286
  }, z.core.$strict>>;
2380
- }, z.core.$strip>>;
2287
+ }, z.core.$strict>>;
2381
2288
  export type Config = z.infer<typeof ConfigSchema>;
2382
2289
  export type GatewayAuthConfig = z.infer<typeof GatewayAuthSchema>;
2383
2290
  export type GatewayTrustedProxyConfig = z.infer<typeof GatewayTrustedProxySchema>;