@xopcai/xopc 0.0.189 → 0.0.191

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 (376) 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-DvEkT222.js} +1 -1
  7. package/dist/gateway/static/root/assets/agents-CXyivfqY.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-COpP_pKN.js} +1 -1
  10. package/dist/gateway/static/root/assets/{appearance-settings-3ntKM9nQ.js → appearance-settings-DTVNUEDq.js} +1 -1
  11. package/dist/gateway/static/root/assets/apps-page-DsE67BSO.js +1 -0
  12. package/dist/gateway/static/root/assets/{archive-plugin-Df7Ycj_7.js → archive-plugin-IpX6VA0o.js} +1 -1
  13. package/dist/gateway/static/root/assets/{attachment-load-UHgfZYtj.js → attachment-load-CKVFNUi1.js} +1 -1
  14. package/dist/gateway/static/root/assets/automations-page-D0TVev47.js +6 -0
  15. package/dist/gateway/static/root/assets/{binary-plugins-BJah99wE.js → binary-plugins-BrfvfOS4.js} +1 -1
  16. package/dist/gateway/static/root/assets/{block-editor-DNlY5KqF.js → block-editor-D9sEfg32.js} +48 -48
  17. package/dist/gateway/static/root/assets/browser-settings-page-DpZzq8j2.js +8 -0
  18. package/dist/gateway/static/root/assets/{browser-workflow-inputs-vyUfdzAd.js → browser-workflow-inputs-BixZ5lCR.js} +1 -1
  19. package/dist/gateway/static/root/assets/{browser-workflows-page-C1cKZjx-.js → browser-workflows-page-YEFuodJI.js} +2 -2
  20. package/dist/gateway/static/root/assets/capabilities-settings-panel-B9Cmcuff.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-C_EpuQtk.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-CvzD5qSv.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-BMMqC0_9.js +1 -0
  27. package/dist/gateway/static/root/assets/connectors-page-BKrm7tJ9.js +2 -0
  28. package/dist/gateway/static/root/assets/cron-expression-Bm8koRoD.js +2 -0
  29. package/dist/gateway/static/root/assets/{desktop-pet-BUuBEJuP.js → desktop-pet-CMG3mcaJ.js} +1 -1
  30. package/dist/gateway/static/root/assets/{desktop-pet-settings-BGfVIJM3.js → desktop-pet-settings-D8aaPb0x.js} +1 -1
  31. package/dist/gateway/static/root/assets/{directory-picker-path-field-DrQFfHH_.js → directory-picker-path-field-C95yW03b.js} +1 -1
  32. package/dist/gateway/static/root/assets/{extension-debug-page-CEnIFOX-.js → extension-debug-page-DsG7Z9lV.js} +1 -1
  33. package/dist/gateway/static/root/assets/{extension-page-CCqHbexs.js → extension-page-CUAXEbAt.js} +1 -1
  34. package/dist/gateway/static/root/assets/extension-settings-page-CsR7QOJo.js +1 -0
  35. package/dist/gateway/static/root/assets/{gateway-config-api-CgUE2Ii1.js → gateway-config-api-DL70Nakc.js} +1 -1
  36. package/dist/gateway/static/root/assets/gateway-settings-BgDxQ08c.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-BX7q55uZ.js +1 -0
  39. package/dist/gateway/static/root/assets/home-page-C08Nen5T.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-B-_CEvIX.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-Dt6wS5zW.js} +1 -1
  44. package/dist/gateway/static/root/assets/local-app-workbench-page-BQVC0tWq.js +2 -0
  45. package/dist/gateway/static/root/assets/{local-apps-page-Ca1RuI13.js → local-apps-page-DcD3-N00.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-D6yvW-E4.js +2 -0
  48. package/dist/gateway/static/root/assets/{management-settings-B3Eop1zn.js → management-settings-B6EVkJQy.js} +1 -1
  49. package/dist/gateway/static/root/assets/{markdown-split-BGOYjgnM.js → markdown-split-CHUjCnBh.js} +1 -1
  50. package/dist/gateway/static/root/assets/{media-plugins-CT0txyM4.js → media-plugins-DRrtI2O0.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-fermYvpI.js} +1 -1
  53. package/dist/gateway/static/root/assets/notes-workbench-BVCwabjq.js +4 -0
  54. package/dist/gateway/static/root/assets/{page-tabs-DNrbCgmC.js → page-tabs-BO262zuu.js} +1 -1
  55. package/dist/gateway/static/root/assets/{preview-open-alternatives-BTqViDOR.js → preview-open-alternatives-yZYTy-2e.js} +1 -1
  56. package/dist/gateway/static/root/assets/{product-open-page-C_2L4_Iu.js → product-open-page-Dgy8XWhR.js} +1 -1
  57. package/dist/gateway/static/root/assets/project-detail-page-CS4Ujor7.js +1 -0
  58. package/dist/gateway/static/root/assets/projects-page-DMtPC8c4.js +1 -0
  59. package/dist/gateway/static/root/assets/remote-access-hub-BpfHZT88.js +1 -0
  60. package/dist/gateway/static/root/assets/{schema-form-BFLfkDGG.js → schema-form-DdE4gtw_.js} +1 -1
  61. package/dist/gateway/static/root/assets/sessions-page-BZkyrJBM.js +1 -0
  62. package/dist/gateway/static/root/assets/settings-advanced-gate-DQlK0A4l.js +1 -0
  63. package/dist/gateway/static/root/assets/settings-form-section-CiYU8AvV.js +1 -0
  64. package/dist/gateway/static/root/assets/{settings-loading-skeleton-C9a-EbTZ.js → settings-loading-skeleton-Bv03cWib.js} +1 -1
  65. package/dist/gateway/static/root/assets/{settings-page-DI9qDH5x.js → settings-page-C-LdINFj.js} +1 -1
  66. package/dist/gateway/static/root/assets/{settings-page-layout-D-LWQdI5.js → settings-page-layout-t_Ox1slk.js} +1 -1
  67. package/dist/gateway/static/root/assets/{setup-status-panel-CJwmPvgs.js → setup-status-panel-HRG_lK4_.js} +1 -1
  68. package/dist/gateway/static/root/assets/{share-preview-page-BKSMG9r5.js → share-preview-page-DF8gW6bo.js} +1 -1
  69. package/dist/gateway/static/root/assets/shares-settings-v_iLhxxa.js +1 -0
  70. package/dist/gateway/static/root/assets/skill-reload-api-S-bjtsXX.js +1 -0
  71. package/dist/gateway/static/root/assets/skills-page-BiNBfaX5.js +2 -0
  72. package/dist/gateway/static/root/assets/{skills-page.utils-zsz2HIlZ.js → skills-page.utils-DlnGtvAH.js} +1 -1
  73. package/dist/gateway/static/root/assets/{system-settings-panel-IWNDBI1O.js → system-settings-panel-Bv7GXFc6.js} +1 -1
  74. package/dist/gateway/static/root/assets/{task-detail-page-CgtK02kP.js → task-detail-page-BhQcOpnx.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-4XBsLEuv.js} +1 -1
  77. package/dist/gateway/static/root/assets/use-autosave-BN2QgFGn.js +1 -0
  78. package/dist/gateway/static/root/assets/user-context-page-PtcY7BoJ.js +1 -0
  79. package/dist/gateway/static/root/assets/{voice-api-key-field-Boue1D46.js → voice-api-key-field-DnhJtC5l.js} +1 -1
  80. package/dist/gateway/static/root/assets/{work-discovery-overlay-bbmvCmc8.js → work-discovery-overlay-nmEAafFl.js} +1 -1
  81. package/dist/gateway/static/root/assets/work-discovery-page-C5Kwe_bc.js +1 -0
  82. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DlHv-GZC.js → workflow-run-setup-panel-BnNWBDwz.js} +2 -2
  83. package/dist/gateway/static/root/assets/workflows-page-Z_qzaohv.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/image/generation/openai-images-provider.d.ts +1 -1
  103. package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
  104. package/dist/src/agent/image/generation/provider-registry.d.ts +2 -0
  105. package/dist/src/agent/image/generation/provider-registry.js +20 -10
  106. package/dist/src/agent/image/generation/providers/xopc-cloud.d.ts +2 -0
  107. package/dist/src/agent/image/generation/providers/xopc-cloud.js +74 -0
  108. package/dist/src/agent/image/generation/types.d.ts +2 -2
  109. package/dist/src/agent/memory/builtin-provider.d.ts +2 -4
  110. package/dist/src/agent/memory/builtin-provider.js +35 -15
  111. package/dist/src/agent/memory/context/types.d.ts +3 -1
  112. package/dist/src/agent/memory/create-memory-manager.js +2 -0
  113. package/dist/src/agent/memory/index.d.ts +1 -1
  114. package/dist/src/agent/memory/index.js +1 -1
  115. package/dist/src/agent/memory/manager.d.ts +9 -1
  116. package/dist/src/agent/memory/manager.js +39 -9
  117. package/dist/src/agent/memory/memory-config.d.ts +1 -1
  118. package/dist/src/agent/memory/memory-config.js +1 -1
  119. package/dist/src/agent/memory/source-origin.js +0 -2
  120. package/dist/src/agent/memory/types.d.ts +5 -1
  121. package/dist/src/agent/memory/understanding/service.d.ts +10 -10
  122. package/dist/src/agent/memory/understanding/service.js +108 -176
  123. package/dist/src/agent/memory/understanding/types.d.ts +7 -8
  124. package/dist/src/agent/memory/user-context-coordinator.d.ts +2 -1
  125. package/dist/src/agent/memory/user-context-coordinator.js +27 -41
  126. package/dist/src/agent/orchestration/agent-orchestrator.js +4 -7
  127. package/dist/src/agent/prompt/sections/memory-skills.js +4 -4
  128. package/dist/src/agent/prompt/sections/tooling.js +0 -10
  129. package/dist/src/agent/prompt/service-prompt-builder.d.ts +0 -1
  130. package/dist/src/agent/prompt/service-prompt-builder.js +4 -33
  131. package/dist/src/agent/prompt/system-prompt.js +1 -2
  132. package/dist/src/agent/service/direct-turn-helpers.js +1 -1
  133. package/dist/src/agent/service.d.ts +1 -2
  134. package/dist/src/agent/service.js +4 -17
  135. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +1 -1
  136. package/dist/src/agent/tools/dreaming-tool.d.ts +0 -2
  137. package/dist/src/agent/tools/dreaming-tool.js +13 -38
  138. package/dist/src/agent/tools/factory.d.ts +0 -3
  139. package/dist/src/agent/tools/factory.js +1 -10
  140. package/dist/src/agent/tools/index.d.ts +0 -1
  141. package/dist/src/agent/tools/index.js +1 -2
  142. package/dist/src/agent/tools/memory-tool.js +1 -1
  143. package/dist/src/agent/workspace-runtime/registry.d.ts +3 -5
  144. package/dist/src/agent/workspace-runtime/registry.js +2 -15
  145. package/dist/src/agent-manifest/schema.d.ts +17 -17
  146. package/dist/src/agent-runtime/index.js +1 -1
  147. package/dist/src/agent-runtime/memory-runtime.d.ts +2 -2
  148. package/dist/src/agent-runtime/runtime-profile.js +1 -1
  149. package/dist/src/automations/domain/validation.d.ts +28 -28
  150. package/dist/src/automations/draft/automation-draft-validator.d.ts +3 -3
  151. package/dist/src/chat-commands/builtins/understanding.js +2 -5
  152. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  153. package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
  154. package/dist/src/cli/commands/init.js +3 -22
  155. package/dist/src/cli/commands/onboard/model.d.ts +3 -0
  156. package/dist/src/cli/commands/onboard/model.js +19 -4
  157. package/dist/src/cli/commands/update.js +1 -1
  158. package/dist/src/cli/templates.js +1 -1
  159. package/dist/src/config/agent-profile.js +1 -1
  160. package/dist/src/config/index.js +3 -3
  161. package/dist/src/config/paths.d.ts +0 -5
  162. package/dist/src/config/paths.js +2 -11
  163. package/dist/src/config/schema.d.ts +24 -117
  164. package/dist/src/config/schema.js +9 -39
  165. package/dist/src/connectors/learning-coordinator.js +75 -3
  166. package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
  167. package/dist/src/gateway/agent-builtin-tools.js +0 -5
  168. package/dist/src/gateway/agents-admin.d.ts +0 -7
  169. package/dist/src/gateway/agents-admin.js +4 -33
  170. package/dist/src/gateway/dreaming-automation-reconciler.d.ts +3 -3
  171. package/dist/src/gateway/dreaming-automation-reconciler.js +48 -88
  172. package/dist/src/gateway/hono/lib/config-payload.d.ts +19 -7
  173. package/dist/src/gateway/hono/lib/config-payload.js +3 -1
  174. package/dist/src/gateway/hono/oauth-async.d.ts +1 -0
  175. package/dist/src/gateway/hono/oauth-async.js +17 -2
  176. package/dist/src/gateway/hono/routes/agents.js +1 -33
  177. package/dist/src/gateway/hono/routes/config-patch/misc.js +17 -1
  178. package/dist/src/gateway/hono/routes/connectors.js +13 -12
  179. package/dist/src/gateway/hono/routes/index.js +2 -2
  180. package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -5
  181. package/dist/src/gateway/hono/routes/local-apps.js +1 -1
  182. package/dist/src/gateway/hono/routes/models.js +9 -8
  183. package/dist/src/gateway/hono/routes/status.js +0 -7
  184. package/dist/src/gateway/hono/routes/understanding-sources.d.ts +3 -0
  185. package/dist/src/gateway/hono/routes/understanding-sources.js +203 -0
  186. package/dist/src/gateway/hono/routes/update.js +2 -2
  187. package/dist/src/gateway/hono/routes/work-discovery.d.ts +2 -0
  188. package/dist/src/gateway/hono/routes/work-discovery.js +3 -134
  189. package/dist/src/gateway/hono/routes/you.d.ts +0 -22
  190. package/dist/src/gateway/hono/routes/you.js +234 -1118
  191. package/dist/src/gateway/index.js +1 -1
  192. package/dist/src/gateway/run-loop.js +1 -1
  193. package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
  194. package/dist/src/gateway/service/run-gateway-agent.js +2 -4
  195. package/dist/src/gateway/service.js +5 -5
  196. package/dist/src/infra/gateway-processes.js +1 -1
  197. package/dist/src/infra/update-restart.js +1 -1
  198. package/dist/src/infra/update-runner.js +2 -2
  199. package/dist/src/infra/update-startup.js +1 -1
  200. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  201. package/dist/src/knowledge/connected-understanding-pipeline.d.ts +2 -4
  202. package/dist/src/knowledge/connected-understanding-pipeline.js +31 -81
  203. package/dist/src/knowledge/index.js +2 -2
  204. package/dist/src/knowledge/people-graph.d.ts +22 -25
  205. package/dist/src/knowledge/people-graph.js +76 -43
  206. package/dist/src/proactive/execution/context.js +8 -13
  207. package/dist/src/providers/model-catalog-store.d.ts +15 -0
  208. package/dist/src/providers/model-catalog-store.js +14 -1
  209. package/dist/src/providers/model-catalog-sync-service.js +6 -0
  210. package/dist/src/providers/model-registry.js +4 -4
  211. package/dist/src/providers/register-runtime-providers.js +4 -4
  212. package/dist/src/providers/xopc-cloud-model-source.js +55 -8
  213. package/dist/src/realtime/broker.d.ts +1 -0
  214. package/dist/src/realtime/broker.js +19 -2
  215. package/dist/src/realtime/runtime.js +6 -1
  216. package/dist/src/storage/sqlite/connector-account-repository.js +0 -1
  217. package/dist/src/storage/sqlite/context-consolidation-repository.d.ts +37 -0
  218. package/dist/src/storage/sqlite/context-consolidation-repository.js +64 -0
  219. package/dist/src/storage/sqlite/fts.d.ts +2 -0
  220. package/dist/src/storage/sqlite/fts.js +29 -1
  221. package/dist/src/storage/sqlite/index.d.ts +4 -6
  222. package/dist/src/storage/sqlite/index.js +5 -7
  223. package/dist/src/storage/sqlite/knowledge-repository.d.ts +9 -2
  224. package/dist/src/storage/sqlite/knowledge-repository.js +58 -10
  225. package/dist/src/storage/sqlite/memory-records-repository.d.ts +7 -56
  226. package/dist/src/storage/sqlite/memory-records-repository.js +68 -218
  227. package/dist/src/storage/sqlite/migrations/113_memory_evidence_single_source.sql +54 -0
  228. package/dist/src/storage/sqlite/migrations/114_user_context_domain.sql +193 -0
  229. package/dist/src/storage/sqlite/migrations/115_remove_legacy_user_context.sql +6 -0
  230. package/dist/src/storage/sqlite/migrations/116_structured_context_consolidation.sql +38 -0
  231. package/dist/src/storage/sqlite/migrations/117_unified_understanding_sources.sql +110 -0
  232. package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
  233. package/dist/src/storage/sqlite/migrations/runner.js +3 -3
  234. package/dist/src/storage/sqlite/migrations/runner.ts +1 -1
  235. package/dist/src/storage/sqlite/schema.js +1 -1
  236. package/dist/src/storage/sqlite/schema.sql +0 -20
  237. package/dist/src/storage/sqlite/user-context-quality-repository.d.ts +34 -0
  238. package/dist/src/storage/sqlite/user-context-quality-repository.js +74 -0
  239. package/dist/src/storage/sqlite/user-context-repository.d.ts +64 -0
  240. package/dist/src/storage/sqlite/user-context-repository.js +383 -0
  241. package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
  242. package/dist/src/tui/tool-summary.js +1 -7
  243. package/dist/src/tui/tui-startup-resources.js +1 -2
  244. package/dist/src/user-context/config.d.ts +17 -210
  245. package/dist/src/user-context/config.js +19 -85
  246. package/dist/src/user-context/consolidation.d.ts +26 -0
  247. package/dist/src/user-context/consolidation.js +115 -0
  248. package/dist/src/user-context/domain.d.ts +75 -0
  249. package/dist/src/user-context/domain.js +4 -0
  250. package/dist/src/user-context/manual-understanding.d.ts +7 -14
  251. package/dist/src/user-context/manual-understanding.js +19 -54
  252. package/dist/src/{agent/memory/context → user-context}/planner.d.ts +5 -6
  253. package/dist/src/user-context/planner.js +311 -0
  254. package/dist/src/user-context/relationship-continuity.d.ts +3 -6
  255. package/dist/src/user-context/relationship-continuity.js +39 -32
  256. package/dist/src/user-context/sources/catalog.d.ts +2 -0
  257. package/dist/src/user-context/sources/catalog.js +149 -0
  258. package/dist/src/user-context/sources/index.d.ts +3 -0
  259. package/dist/src/user-context/sources/index.js +3 -0
  260. package/dist/src/user-context/sources/repository.d.ts +40 -0
  261. package/dist/src/user-context/sources/repository.js +164 -0
  262. package/dist/src/user-context/sources/types.d.ts +83 -0
  263. package/dist/src/work-discovery/analyzer.d.ts +4 -3
  264. package/dist/src/work-discovery/analyzer.js +21 -16
  265. package/dist/src/work-discovery/incremental-repository.js +42 -40
  266. package/dist/src/work-discovery/index.js +3 -3
  267. package/dist/src/work-discovery/service.d.ts +7 -7
  268. package/dist/src/work-discovery/service.js +241 -190
  269. package/dist/src/work-discovery/source-repository.js +42 -53
  270. package/dist/src/work-discovery/types.d.ts +2 -14
  271. package/package.json +3 -8
  272. package/dist/gateway/static/root/assets/agents-BvdqdER9.js +0 -2
  273. package/dist/gateway/static/root/assets/apps-page-nKLsfy6C.js +0 -1
  274. package/dist/gateway/static/root/assets/automations-page-Dh5bdZiN.js +0 -6
  275. package/dist/gateway/static/root/assets/browser-settings-page-CRJ_nAuh.js +0 -8
  276. package/dist/gateway/static/root/assets/capabilities-settings-panel-DeQR5BZt.js +0 -7
  277. package/dist/gateway/static/root/assets/capability-presets-api-D7tkhDMv.js +0 -1
  278. package/dist/gateway/static/root/assets/capability-presets-settings-panel-D7uK3q1p.js +0 -1
  279. package/dist/gateway/static/root/assets/channels-settings-Bw6Dniyq.js +0 -1
  280. package/dist/gateway/static/root/assets/channels-status-swr-BrUTz4uU.js +0 -1
  281. package/dist/gateway/static/root/assets/connector-logo-8YU53RUT.js +0 -1
  282. package/dist/gateway/static/root/assets/connectors-page-k9tMiOL5.js +0 -2
  283. package/dist/gateway/static/root/assets/cron-expression-B3B1eqnr.js +0 -2
  284. package/dist/gateway/static/root/assets/extension-settings-page-DEZw_7zN.js +0 -1
  285. package/dist/gateway/static/root/assets/gateway-settings-Dg8qCiIp.js +0 -1
  286. package/dist/gateway/static/root/assets/heartbeat-settings-27tRzDEo.js +0 -1
  287. package/dist/gateway/static/root/assets/home-page-VA511kMr.js +0 -3
  288. package/dist/gateway/static/root/assets/index-BvR-i-m6.js +0 -216
  289. package/dist/gateway/static/root/assets/index-zybP34zk.css +0 -1
  290. package/dist/gateway/static/root/assets/local-app-workbench-page-CaJq4-wV.js +0 -2
  291. package/dist/gateway/static/root/assets/locale-store-DUW5YE3R.js +0 -1
  292. package/dist/gateway/static/root/assets/logs-page-BLTCg69e.js +0 -2
  293. package/dist/gateway/static/root/assets/messages-CMjnbdbn.js +0 -3
  294. package/dist/gateway/static/root/assets/notes-workbench-Bp1w9UM1.js +0 -4
  295. package/dist/gateway/static/root/assets/project-detail-page-CZmbPDQN.js +0 -1
  296. package/dist/gateway/static/root/assets/projects-page-D5pzqfm5.js +0 -1
  297. package/dist/gateway/static/root/assets/remote-access-hub-CC-XhVGI.js +0 -1
  298. package/dist/gateway/static/root/assets/segmented-styles-BL8oLBEp.js +0 -1
  299. package/dist/gateway/static/root/assets/sessions-page-B2eTLVDV.js +0 -1
  300. package/dist/gateway/static/root/assets/settings-advanced-gate-CRuZ_bl0.js +0 -1
  301. package/dist/gateway/static/root/assets/settings-form-section-C4GXGeA4.js +0 -1
  302. package/dist/gateway/static/root/assets/shares-settings-YzSDS4G_.js +0 -1
  303. package/dist/gateway/static/root/assets/skill-reload-api-CwOo8zZk.js +0 -1
  304. package/dist/gateway/static/root/assets/skills-page-xd1cgSGN.js +0 -2
  305. package/dist/gateway/static/root/assets/time-picker-CstQ___Y.js +0 -1
  306. package/dist/gateway/static/root/assets/use-save-bar-registration-CQYE0l6z.js +0 -1
  307. package/dist/gateway/static/root/assets/user-context-page-BnQAWS_B.js +0 -1
  308. package/dist/gateway/static/root/assets/work-discovery-page-CAszL1y8.js +0 -1
  309. package/dist/gateway/static/root/assets/workflows-page-DxGzo3-x.js +0 -11
  310. package/dist/src/agent/code-intelligence/binary.d.ts +0 -15
  311. package/dist/src/agent/code-intelligence/binary.js +0 -372
  312. package/dist/src/agent/code-intelligence/index.d.ts +0 -4
  313. package/dist/src/agent/code-intelligence/index.js +0 -4
  314. package/dist/src/agent/code-intelligence/runtime.d.ts +0 -34
  315. package/dist/src/agent/code-intelligence/runtime.js +0 -280
  316. package/dist/src/agent/code-intelligence/tool-gating.d.ts +0 -5
  317. package/dist/src/agent/code-intelligence/tool-gating.js +0 -6
  318. package/dist/src/agent/code-intelligence/tools.d.ts +0 -6
  319. package/dist/src/agent/code-intelligence/tools.js +0 -266
  320. package/dist/src/agent/code-intelligence/types.d.ts +0 -22
  321. package/dist/src/agent/memory/context/planner.js +0 -286
  322. package/dist/src/agent/memory/dreaming/config.d.ts +0 -48
  323. package/dist/src/agent/memory/dreaming/config.js +0 -98
  324. package/dist/src/agent/memory/dreaming/constants.d.ts +0 -12
  325. package/dist/src/agent/memory/dreaming/constants.js +0 -18
  326. package/dist/src/agent/memory/dreaming/deep-promotion.d.ts +0 -19
  327. package/dist/src/agent/memory/dreaming/deep-promotion.js +0 -152
  328. package/dist/src/agent/memory/dreaming/light-sweep.d.ts +0 -16
  329. package/dist/src/agent/memory/dreaming/light-sweep.js +0 -115
  330. package/dist/src/agent/memory/dreaming/preview.d.ts +0 -23
  331. package/dist/src/agent/memory/dreaming/preview.js +0 -52
  332. package/dist/src/agent/memory/dreaming/promotion-lifecycle.d.ts +0 -16
  333. package/dist/src/agent/memory/dreaming/promotion-lifecycle.js +0 -44
  334. package/dist/src/agent/memory/dreaming/rem-patterns.d.ts +0 -19
  335. package/dist/src/agent/memory/dreaming/rem-patterns.js +0 -150
  336. package/dist/src/agent/memory/dreaming/runner.d.ts +0 -10
  337. package/dist/src/agent/memory/dreaming/runner.js +0 -78
  338. package/dist/src/agent/memory/dreaming/schedule.d.ts +0 -23
  339. package/dist/src/agent/memory/dreaming/schedule.js +0 -38
  340. package/dist/src/agent/memory/dreaming/scope.d.ts +0 -11
  341. package/dist/src/agent/memory/dreaming/scope.js +0 -33
  342. package/dist/src/agent/memory/dreaming/utils.d.ts +0 -3
  343. package/dist/src/agent/memory/dreaming/utils.js +0 -31
  344. package/dist/src/gateway/hono/routes/memory.d.ts +0 -3
  345. package/dist/src/gateway/hono/routes/memory.js +0 -460
  346. package/dist/src/storage/sqlite/dreaming-repository.d.ts +0 -61
  347. package/dist/src/storage/sqlite/dreaming-repository.js +0 -88
  348. package/dist/src/storage/sqlite/memory-readiness-repository.d.ts +0 -7
  349. package/dist/src/storage/sqlite/memory-readiness-repository.js +0 -30
  350. package/dist/src/storage/sqlite/memory-reference-consent-repository.d.ts +0 -27
  351. package/dist/src/storage/sqlite/memory-reference-consent-repository.js +0 -107
  352. package/dist/src/storage/sqlite/user-claims-repository.d.ts +0 -101
  353. package/dist/src/storage/sqlite/user-claims-repository.js +0 -241
  354. package/dist/src/storage/sqlite/user-profile-setup-repository.d.ts +0 -3
  355. package/dist/src/storage/sqlite/user-profile-setup-repository.js +0 -32
  356. package/dist/src/user-context/actionableInsights.d.ts +0 -14
  357. package/dist/src/user-context/actionableInsights.js +0 -34
  358. package/dist/src/user-context/context-compiler.d.ts +0 -27
  359. package/dist/src/user-context/context-compiler.js +0 -48
  360. package/dist/src/user-context/import.d.ts +0 -12
  361. package/dist/src/user-context/import.js +0 -51
  362. package/dist/src/user-context/memory-episode-evaluator.d.ts +0 -32
  363. package/dist/src/user-context/memory-episode-evaluator.js +0 -35
  364. package/dist/src/user-context/memory-readiness.d.ts +0 -33
  365. package/dist/src/user-context/memory-readiness.js +0 -41
  366. package/dist/src/user-context/memory-use-audit.d.ts +0 -10
  367. package/dist/src/user-context/memory-use-audit.js +0 -26
  368. package/dist/src/user-context/personal-playbook.d.ts +0 -11
  369. package/dist/src/user-context/personal-playbook.js +0 -41
  370. package/dist/src/user-context/profile.d.ts +0 -37
  371. package/dist/src/user-context/profile.js +0 -163
  372. package/dist/src/user-context/projection.d.ts +0 -120
  373. package/dist/src/user-context/projection.js +0 -262
  374. package/dist/src/user-context/source-recommendations.d.ts +0 -13
  375. package/dist/src/user-context/source-recommendations.js +0 -85
  376. /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
  }
@@ -3,8 +3,8 @@ import { loadConfig } from "../../../config/loader.js";
3
3
  import "../../../config/index.js";
4
4
  import { isRestartEnabled } from "../../../config/commands.flags.js";
5
5
  import { resolveGatewayService } from "../../../daemon/service.js";
6
- import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "../../../infra/restart.js";
7
6
  import { findVerifiedGatewayListenerPidsOnPortSync, formatGatewayPidList, signalVerifiedGatewayPidSync } from "../../../infra/gateway-processes.js";
7
+ import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "../../../infra/restart.js";
8
8
  import { runServiceRestart, runServiceStop } from "./lifecycle-core.js";
9
9
  import { DEFAULT_RESTART_HEALTH_ATTEMPTS, renderGatewayPortHealthDiagnostics, waitForGatewayHealthyListener } from "./restart-health.js";
10
10
  import { parsePortFromArgs, renderGatewayServiceStartHints, resolveGatewayPortFromConfig } from "./shared.js";
@@ -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
@@ -2,7 +2,10 @@
2
2
  * Catalog-driven model configuration for onboarding.
3
3
  */
4
4
  import type { Config } from '../../../config/schema.js';
5
+ import { type ModelCatalogStore } from '../../../providers/model-catalog-store.js';
5
6
  import { XopcCloudModelSource } from '../../../providers/xopc-cloud-model-source.js';
6
7
  import type { CLIContext } from '../../registry.js';
8
+ export declare function defaultXopcCloudImageModel(catalogStore?: ModelCatalogStore): string | undefined;
9
+ export declare function setPrimaryModel(config: Config, workspacePath: string, modelRef: string, defaultImageGenerationModel?: string): Config;
7
10
  export declare function refreshOnboardModelCatalogIfNeeded(provider: string, hasCatalogModels: boolean, source?: Pick<XopcCloudModelSource, 'refresh'>): Promise<void>;
8
11
  export declare function setupModel(existingConfig: Config | null, ctx: CLIContext): Promise<Config>;
@@ -2,6 +2,7 @@ import { getAgentDefaultModelRef, init_schema } from "../../../config/schema.js"
2
2
  import { resolveModelsJsonPath } from "../../../config/paths.js";
3
3
  import { init_models_json, loadModelsJson, saveModelsJson } from "../../../config/models-json.js";
4
4
  import { getApiKeyFromEnv } from "../../../providers/env-keys.js";
5
+ import { getModelCatalogStore, init_model_catalog_store } from "../../../providers/model-catalog-store.js";
5
6
  import { getModelRegistry } from "../../../providers/model-registry.js";
6
7
  import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
7
8
  import { getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../../../providers/index.js";
@@ -23,7 +24,12 @@ init_credentials();
23
24
  init_models_json();
24
25
  init_schema();
25
26
  init_providers();
26
- function setPrimaryModel(config, workspacePath, modelRef) {
27
+ init_model_catalog_store();
28
+ function defaultXopcCloudImageModel(catalogStore = getModelCatalogStore()) {
29
+ const model = catalogStore.getSource("xopc-cloud")?.models.find((entry) => entry.availability === "available" && entry.kind === "image" && entry.operations.includes("images.generate"));
30
+ return model ? `xopc-cloud/${model.id}` : void 0;
31
+ }
32
+ function setPrimaryModel(config, workspacePath, modelRef, defaultImageGenerationModel) {
27
33
  const id = config.agents.default ?? config.agents.list[0]?.id ?? "main";
28
34
  const index = config.agents.list.findIndex((entry) => entry.id === id);
29
35
  let nextConfig = config;
@@ -42,9 +48,16 @@ function setPrimaryModel(config, workspacePath, modelRef) {
42
48
  }
43
49
  };
44
50
  }
51
+ const presetId = nextConfig.agents.defaultPreset ?? "default";
52
+ const currentModels = nextConfig.agents.capabilityPresets[presetId]?.models;
45
53
  const prep = prepareUpdateGlobalDefaults(nextConfig, { models: {
54
+ ...currentModels,
46
55
  defaultRole: "deep",
47
- roles: { deep: { model: modelRef } }
56
+ roles: {
57
+ ...currentModels?.roles,
58
+ deep: { model: modelRef }
59
+ },
60
+ ...!currentModels?.imageGenerationModel && defaultImageGenerationModel ? { imageGenerationModel: { primary: defaultImageGenerationModel } } : {}
48
61
  } });
49
62
  if (prep.ok === false) throw new Error(prep.error);
50
63
  return prep.data.nextConfig;
@@ -469,7 +482,9 @@ async function setupModel(existingConfig, ctx) {
469
482
  }))
470
483
  });
471
484
  console.log("\n✅ Model configured:", model);
472
- return setPrimaryModel(config, ctx.workspacePath, model);
485
+ const imageModel = provider === "xopc-cloud" ? defaultXopcCloudImageModel() : void 0;
486
+ if (imageModel) console.log("✅ Image generation configured:", imageModel);
487
+ return setPrimaryModel(config, ctx.workspacePath, model, imageModel);
473
488
  }
474
489
  //#endregion
475
- export { refreshOnboardModelCatalogIfNeeded, setupModel };
490
+ export { defaultXopcCloudImageModel, refreshOnboardModelCatalogIfNeeded, setPrimaryModel, setupModel };
@@ -2,9 +2,9 @@ import { PACKAGE_VERSION, init_package_version } from "../../package-version.js"
2
2
  import { loadConfig } from "../../config/loader.js";
3
3
  import { formatExamples, register } from "../registry.js";
4
4
  import "../../config/index.js";
5
- import { acquireUpdateLock } from "../../infra/update-lock.js";
6
5
  import { normalizeUpdateChannel } from "../../infra/update-channels.js";
7
6
  import { compareSemver, resolveNpmChannelTag } from "../../infra/update-check.js";
7
+ import { acquireUpdateLock } from "../../infra/update-lock.js";
8
8
  import { formatUpdateApiResult, resolveUpdateInstallSurface, runGatewayUpdateWithPostSteps } from "../../infra/update-runner.js";
9
9
  import { Command } from "commander";
10
10
  //#region src/cli/commands/update.ts
@@ -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,6 +1,6 @@
1
+ import { init_agent_scope, normalizeAgentId, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
1
2
  import { resolveEffectiveAgentManifest } from "../agent-manifest/resolver.js";
2
3
  import "../agent-manifest/index.js";
3
- import { init_agent_scope, normalizeAgentId, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
4
4
  import { init_session_key, parseSessionKey } from "../routing/session-key.js";
5
5
  import { agentExists, getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
6
6
  //#region src/config/agent-profile.ts
@@ -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 };