@xopcai/xopc 0.0.406 → 0.0.407

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 (272) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/xopc.extension.json +1 -1
  3. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BE3ci_lj.js → agent-avatar-dicebear-CPNoFyoV.js} +1 -1
  4. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BB0O3b4I.js +1 -0
  5. package/dist/gateway/static/root/assets/agents-Y7XtlqVm.js +77 -0
  6. package/dist/gateway/static/root/assets/{agents-admin-api-D6XzhsQy.js → agents-admin-api-D0UyB0Y_.js} +1 -1
  7. package/dist/gateway/static/root/assets/{app-management-settings-panel-BDbJKxa-.js → app-management-settings-panel-BOAkMTQ7.js} +1 -1
  8. package/dist/gateway/static/root/assets/{appearance-settings-CEOOrVYb.js → appearance-settings-BWPt4-vh.js} +1 -1
  9. package/dist/gateway/static/root/assets/apps-page-Ln5N1PK3.js +1 -0
  10. package/dist/gateway/static/root/assets/{archive-plugin-B7pzPErg.js → archive-plugin-CNjE6PYZ.js} +1 -1
  11. package/dist/gateway/static/root/assets/{automations-page-CcQjEiqk.js → automations-page-BsP4j7Nw.js} +1 -1
  12. package/dist/gateway/static/root/assets/automations-workspace-lq17XY3n.js +6 -0
  13. package/dist/gateway/static/root/assets/{binary-plugins-D5kTu6gH.js → binary-plugins-AFWJskT6.js} +1 -1
  14. package/dist/gateway/static/root/assets/{block-editor-CnW6rF_e.js → block-editor-SQ53S4oy.js} +40 -40
  15. package/dist/gateway/static/root/assets/{browser-automation-inputs-CAcUtInP.js → browser-automation-inputs-C2SC9h-c.js} +1 -1
  16. package/dist/gateway/static/root/assets/browser-automations-page-kRoqj1qn.js +3 -0
  17. package/dist/gateway/static/root/assets/browser-settings-page-dZhjL3oj.js +3 -0
  18. package/dist/gateway/static/root/assets/capabilities-CD6PzNK7.js +1 -0
  19. package/dist/gateway/static/root/assets/capabilities-page-Dnp_ilKR.js +2 -0
  20. package/dist/gateway/static/root/assets/capabilities-settings-panel-BA9kBBqE.js +8 -0
  21. package/dist/gateway/static/root/assets/{capability-header-actions-jztljvVW.js → capability-header-actions-Cq5XWEDs.js} +1 -1
  22. package/dist/gateway/static/root/assets/channels-BZCzeWtD.js +1 -0
  23. package/dist/gateway/static/root/assets/{chat-terminal-dock-BVlFOKJj.js → chat-terminal-dock-BC4EyhTx.js} +2 -2
  24. package/dist/gateway/static/root/assets/computer-settings-page-MxcoTOP1.js +1 -0
  25. package/dist/gateway/static/root/assets/{connector-service-page-BNcTUa99.js → connector-service-page-tSQ3a_Ti.js} +1 -1
  26. package/dist/gateway/static/root/assets/connectors-page-h5FTgews.js +1 -0
  27. package/dist/gateway/static/root/assets/{date-picker-BKUmdSp7.js → date-picker-CavoWXMc.js} +1 -1
  28. package/dist/gateway/static/root/assets/{dependency-picker-BarQvwoO.js → dependency-picker-Cl-3upFX.js} +1 -1
  29. package/dist/gateway/static/root/assets/{desktop-pet-IvADYxyi.js → desktop-pet-B-RDVNqR.js} +1 -1
  30. package/dist/gateway/static/root/assets/{desktop-pet-settings-y6WzhGEK.js → desktop-pet-settings-rttWyUzY.js} +1 -1
  31. package/dist/gateway/static/root/assets/device-pairing-wizard-6hqiv1ui.js +1 -0
  32. package/dist/gateway/static/root/assets/{directory-picker-path-field-DnEvwMTm.js → directory-picker-path-field-1rEGI8IE.js} +1 -1
  33. package/dist/gateway/static/root/assets/{extension-debug-page-CCvuK1m0.js → extension-debug-page-BaswNoXz.js} +1 -1
  34. package/dist/gateway/static/root/assets/{extension-page-DegRwY3R.js → extension-page-uCMJMnc_.js} +1 -1
  35. package/dist/gateway/static/root/assets/{extension-settings-page-B8UQgGgZ.js → extension-settings-page-DiczmHyl.js} +1 -1
  36. package/dist/gateway/static/root/assets/{gateway-config-swr-BvuySoCX.js → gateway-config-swr-CTXr917C.js} +1 -1
  37. package/dist/gateway/static/root/assets/{gateway-realtime-SBtdXzco.js → gateway-realtime-CP6L2jIR.js} +1 -1
  38. package/dist/gateway/static/root/assets/gateway-realtime-store-yXB4a40_.js +1 -0
  39. package/dist/gateway/static/root/assets/gateway-settings-DH5MOwxf.js +1 -0
  40. package/dist/gateway/static/root/assets/{gateway-startup-retry-CEpuztYK.js → gateway-startup-retry-DD2fsxdd.js} +1 -1
  41. package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-MjAoJQJX.js → highlighted-body-KQOG7T2V-B62h4sJ4.js} +1 -1
  42. package/dist/gateway/static/root/assets/home-page-BsjMhloP.js +2 -0
  43. package/dist/gateway/static/root/assets/{image-generation-api-SQDixWjO.js → image-generation-api-Di7HnFSL.js} +1 -1
  44. package/dist/gateway/static/root/assets/{imports-page-1ZId0Ng0.js → imports-page-DpKfYZMT.js} +1 -1
  45. package/dist/gateway/static/root/assets/index-BUv4J0JN.js +267 -0
  46. package/dist/gateway/static/root/assets/index-Cr4I4q1J.css +1 -0
  47. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-yMwBt1Sv.js → keyboard-shortcuts-settings-D1Q1kTMI.js} +1 -1
  48. package/dist/gateway/static/root/assets/local-app-workbench-page-CnaLbgJb.js +1 -0
  49. package/dist/gateway/static/root/assets/{local-apps-page-CF6_kS9C.js → local-apps-page-CSO0RkyG.js} +1 -1
  50. package/dist/gateway/static/root/assets/{local-session-drafts-DhJjHCfQ.js → local-session-drafts-TqLFKwYo.js} +1 -1
  51. package/dist/gateway/static/root/assets/{locale-store-D5h-Ha6-.js → locale-store-D_migb9R.js} +1 -1
  52. package/dist/gateway/static/root/assets/logs-page-DruO5LTf.js +2 -0
  53. package/dist/gateway/static/root/assets/management-settings-Dw3tQKNe.js +1 -0
  54. package/dist/gateway/static/root/assets/{markdown-view-CthsQiiO.js → markdown-view-vQSMUUY_.js} +1 -1
  55. package/dist/gateway/static/root/assets/{media-plugins-UYX1YivF.js → media-plugins-CrHXsih_.js} +1 -1
  56. package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-CNzdVIcE.js +1 -0
  57. package/dist/gateway/static/root/assets/messages-D__oW2yE.js +3 -0
  58. package/dist/gateway/static/root/assets/note-detail-panel-DCZ6Vgd_.js +5 -0
  59. package/dist/gateway/static/root/assets/note-image-lightbox-BXNZw7lJ.js +1 -0
  60. package/dist/gateway/static/root/assets/notes-page-Bqy9Rh_j.js +8 -0
  61. package/dist/gateway/static/root/assets/{page-context-capture-button-DOrPS73o.js → page-context-capture-button-DQHbuYER.js} +1 -1
  62. package/dist/gateway/static/root/assets/personal-page-C--WEB5c.js +1 -0
  63. package/dist/gateway/static/root/assets/personal-proactivity-BJcZ3Yhi.js +1 -0
  64. package/dist/gateway/static/root/assets/personal-settings-panel-Cwgc13ls.js +1 -0
  65. package/dist/gateway/static/root/assets/plugin-details-dialog-DxkFHaU-.js +1 -0
  66. package/dist/gateway/static/root/assets/plugin-presentation-CO5BFDGW.js +1 -0
  67. package/dist/gateway/static/root/assets/{preview-open-alternatives-BP9C0kH3.js → preview-open-alternatives-BW7P2akd.js} +1 -1
  68. package/dist/gateway/static/root/assets/{product-open-page-D151rJVy.js → product-open-page-BnlpaYs-.js} +1 -1
  69. package/dist/gateway/static/root/assets/product-preview-content-DkXx1Vt8.js +1 -0
  70. package/dist/gateway/static/root/assets/project-detail-page-CtyCpIx8.js +1 -0
  71. package/dist/gateway/static/root/assets/projects-page-CJ0s-bI5.js +1 -0
  72. package/dist/gateway/static/root/assets/{registry-api-Bf0hVPNV.js → registry-api-4NZOh0iz.js} +1 -1
  73. package/dist/gateway/static/root/assets/remote-access-hub-yItNjAR3.js +1 -0
  74. package/dist/gateway/static/root/assets/{runtime-tools-api-ByH1meP7.js → runtime-tools-api-CmEWVrOg.js} +1 -1
  75. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DyLxlqWV.js → runtime-tools-settings-panel-BGRbt79f.js} +1 -1
  76. package/dist/gateway/static/root/assets/{schema-form-ClP4uPSj.js → schema-form-B9VP7ldU.js} +1 -1
  77. package/dist/gateway/static/root/assets/{session-api-fVuszA_P.js → session-api-aQLptIs9.js} +1 -1
  78. package/dist/gateway/static/root/assets/session-manager-D2sLfkw-.js +16 -0
  79. package/dist/gateway/static/root/assets/sessions-page-3O5S9efw.js +1 -0
  80. package/dist/gateway/static/root/assets/settings-advanced-gate-BE-SKsf6.js +1 -0
  81. package/dist/gateway/static/root/assets/{settings-form-section-B4NShgv-.js → settings-form-section-BA2RkU1S.js} +1 -1
  82. package/dist/gateway/static/root/assets/settings-page-BUT0FzfI.js +1 -0
  83. package/dist/gateway/static/root/assets/{setup-status-panel-BVKQ2inq.js → setup-status-panel-1oWs6iPS.js} +1 -1
  84. package/dist/gateway/static/root/assets/{share-preview-page-BxN9t3MD.js → share-preview-page-CVNey8Lq.js} +1 -1
  85. package/dist/gateway/static/root/assets/shares-settings-Bb6YoDmU.js +1 -0
  86. package/dist/gateway/static/root/assets/{skill-api-E0E-MH1S.js → skill-api-BWi0G9Ii.js} +1 -1
  87. package/dist/gateway/static/root/assets/skill-reload-api-DspV2olR.js +1 -0
  88. package/dist/gateway/static/root/assets/skills-page-SbNv1vpY.js +2 -0
  89. package/dist/gateway/static/root/assets/{style-Bs9x3WBj.js → style-DlOTU5bN.js} +1 -1
  90. package/dist/gateway/static/root/assets/{system-settings-panel-DpQPaJId.js → system-settings-panel-DbS1qtOh.js} +1 -1
  91. package/dist/gateway/static/root/assets/task-detail-page-uSwizzx8.js +2 -0
  92. package/dist/gateway/static/root/assets/{task-expandable-content-BoGtWYbk.js → task-expandable-content-D0ahXP9o.js} +1 -1
  93. package/dist/gateway/static/root/assets/tracing-settings-page-BMhVvXXd.js +1 -0
  94. package/dist/gateway/static/root/assets/{tunnel-api-3GopOQ_S.js → tunnel-api-CO9rJLFh.js} +1 -1
  95. package/dist/gateway/static/root/assets/{usage-page-B8j47CWQ.js → usage-page-DVzIDec4.js} +1 -1
  96. package/dist/gateway/static/root/assets/{use-autosave-CYIuWnRn.js → use-autosave-DqPaXiX2.js} +1 -1
  97. package/dist/gateway/static/root/assets/user-model-page-BYZCHCzG.js +2 -0
  98. package/dist/gateway/static/root/assets/{voice-api-key-field-BN37Lklj.js → voice-api-key-field-C_iOzfIt.js} +1 -1
  99. package/dist/gateway/static/root/assets/{voice-config-api-CRjdZdJF.js → voice-config-api-4yGMrp7J.js} +1 -1
  100. package/dist/gateway/static/root/assets/{work-discovery-overlay-C_bcAAX6.js → work-discovery-overlay-n59s18s0.js} +1 -1
  101. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-B5oKCzTn.js → workflow-run-setup-panel-Lp6Vumxc.js} +2 -2
  102. package/dist/gateway/static/root/assets/workflows-page-B5BqN1Y1.js +6 -0
  103. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-DGGi4zVC.js → xopc-cloud-account-card-QSDUy0uF.js} +1 -1
  104. package/dist/gateway/static/root/index.html +16 -15
  105. package/dist/package.js +1 -1
  106. package/dist/packages/gateway-contract/src/capabilities.js +30 -3
  107. package/dist/src/agent/agent-manager.js +1 -1
  108. package/dist/src/agent/background-review/run-background-review.js +1 -1
  109. package/dist/src/agent/external-tools/cliProvider.js +3 -3
  110. package/dist/src/agent/external-tools/composio-provider.js +2 -2
  111. package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
  112. package/dist/src/agent/prompt/conversational-configuration-guide.d.ts +4 -0
  113. package/dist/src/agent/prompt/conversational-configuration-guide.js +25 -0
  114. package/dist/src/agent/prompt/service-prompt-builder.js +6 -1
  115. package/dist/src/agent/prompt/system-prompt.js +2 -2
  116. package/dist/src/agent/service.js +1 -1
  117. package/dist/src/agent/skills/index.js +1 -1
  118. package/dist/src/agent/skills/managed-store.js +1 -1
  119. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  120. package/dist/src/agent/tool-manuals/xopc-configuration.d.ts +8 -0
  121. package/dist/src/agent/tool-manuals/xopc-configuration.js +55 -0
  122. package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
  123. package/dist/src/agent/tool-manuals/xopc-use.js +4 -1
  124. package/dist/src/agent/tools/factory.js +0 -5
  125. package/dist/src/agent/tools/personal-read-tool.js +1 -1
  126. package/dist/src/agent/tools/tool-manual-tool.d.ts +1 -0
  127. package/dist/src/agent/tools/tool-manual-tool.js +27 -2
  128. package/dist/src/agent/tools/xopc-use-tool.js +14 -9
  129. package/dist/src/agent-catalog/capabilities.js +29 -3
  130. package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +1 -1
  131. package/dist/src/agent-catalog/repository.js +1 -1
  132. package/dist/src/agent-config/index.js +2 -2
  133. package/dist/src/agent-config/schema.d.ts +0 -116
  134. package/dist/src/agent-config/schema.js +2 -32
  135. package/dist/src/automations/capabilities/drafts.js +1 -1
  136. package/dist/src/bootstrap/application-state.js +1 -1
  137. package/dist/src/browser/providers/browser-ext-install.js +1 -1
  138. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  139. package/dist/src/capabilities/runtime/product.js +1 -1
  140. package/dist/src/capabilities/store-connector.d.ts +9 -1
  141. package/dist/src/capabilities/store-connector.js +30 -1
  142. package/dist/src/cli/commands/agents.js +1 -1
  143. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  144. package/dist/src/cli/commands/models.js +1 -1
  145. package/dist/src/cli/commands/onboard/model.js +1 -1
  146. package/dist/src/cli/utils/init-workspace-core.js +1 -1
  147. package/dist/src/config/agent-profile.js +1 -1
  148. package/dist/src/config/schema.d.ts +1 -1
  149. package/dist/src/connectors/cli/adapterRegistry.js +1 -8
  150. package/dist/src/connectors/cli/runtime.js +1 -1
  151. package/dist/src/connectors/composio-catalog.d.ts +2 -2
  152. package/dist/src/connectors/composio-catalog.js +3 -8
  153. package/dist/src/connectors/composio-sessions.js +2 -0
  154. package/dist/src/connectors/composio.js +0 -6
  155. package/dist/src/connectors/connection-candidates.js +0 -5
  156. package/dist/src/connectors/connection-capabilities.js +0 -4
  157. package/dist/src/connectors/excluded-connectors.d.ts +4 -0
  158. package/dist/src/connectors/excluded-connectors.js +24 -0
  159. package/dist/src/connectors/install.js +3 -0
  160. package/dist/src/connectors/integration-strategy.js +0 -5
  161. package/dist/src/connectors/providers.d.ts +0 -1
  162. package/dist/src/connectors/providers.js +2 -14
  163. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  164. package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
  165. package/dist/src/extensions/agent-plugins/validation.js +1 -1
  166. package/dist/src/gateway/agents-admin.js +2 -2
  167. package/dist/src/gateway/hono/routes/agents.js +1 -1
  168. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  169. package/dist/src/gateway/hono/routes/notes.js +2 -2
  170. package/dist/src/gateway/hono/routes/personal-agent.js +4 -5
  171. package/dist/src/gateway/hono/routes/projects.js +2 -2
  172. package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
  173. package/dist/src/gateway/hono/routes/tasks.js +1 -1
  174. package/dist/src/gateway/image-generation-setup.js +1 -1
  175. package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
  176. package/dist/src/gateway/service.js +4 -4
  177. package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
  178. package/dist/src/home-intelligence/host.js +2 -2
  179. package/dist/src/imports/importService.js +1 -1
  180. package/dist/src/local-apps/service.js +1 -1
  181. package/dist/src/personal-agent/communication.d.ts +1 -1
  182. package/dist/src/personal-agent/communication.js +1 -1
  183. package/dist/src/personal-agent/default-style.d.ts +2 -0
  184. package/dist/src/personal-agent/default-style.js +11 -0
  185. package/dist/src/personal-agent/persona.d.ts +1 -1
  186. package/dist/src/personal-agent/persona.js +1 -1
  187. package/dist/src/personal-agent/policy.d.ts +1 -1
  188. package/dist/src/personal-agent/policy.js +0 -1
  189. package/dist/src/personal-agent/proactivity/service.js +1 -4
  190. package/dist/src/personal-agent/prompts.d.ts +1 -5
  191. package/dist/src/personal-agent/prompts.js +28 -39
  192. package/dist/src/personal-agent/reply-composer.js +3 -2
  193. package/dist/src/personal-agent/reply-style.d.ts +10 -2
  194. package/dist/src/personal-agent/reply-style.js +61 -3
  195. package/dist/src/personal-agent/repository.d.ts +0 -8
  196. package/dist/src/personal-agent/repository.js +1 -9
  197. package/dist/src/personal-agent/service.d.ts +2 -32
  198. package/dist/src/personal-agent/service.js +12 -18
  199. package/dist/src/platform/contracts.d.ts +3 -3
  200. package/dist/src/runtime-tools/archive.js +1 -1
  201. package/dist/src/storage/sqlite/migrations/259_personal_default_style.sql +10 -0
  202. package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
  203. package/dist/src/storage/sqlite/migrations/runner.js +3 -3
  204. package/dist/src/storage/sqlite/schema.js +1 -1
  205. package/dist/src/tasks/capabilities/read.js +2 -2
  206. package/dist/src/tasks/capabilities/write.js +1 -1
  207. package/dist/src/tasks/task-main-update-decision-service.js +1 -1
  208. package/dist/src/tui/backends/embedded-backend.js +1 -1
  209. package/dist/src/voice/realtime/persona-context.js +1 -1
  210. package/package.json +5 -2
  211. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DzDaum4Y.js +0 -1
  212. package/dist/gateway/static/root/assets/agents-BfC3FYYe.js +0 -77
  213. package/dist/gateway/static/root/assets/apps-page-CpoG_3PG.js +0 -1
  214. package/dist/gateway/static/root/assets/automations-workspace-BVTP3pzt.js +0 -6
  215. package/dist/gateway/static/root/assets/browser-BLJWD7WI.js +0 -8
  216. package/dist/gateway/static/root/assets/browser-automations-page-DT7-lnPN.js +0 -3
  217. package/dist/gateway/static/root/assets/browser-settings-page-ByK8znt2.js +0 -3
  218. package/dist/gateway/static/root/assets/capabilities-Dl3LttAm.js +0 -1
  219. package/dist/gateway/static/root/assets/capabilities-page-C8tv6M_O.js +0 -2
  220. package/dist/gateway/static/root/assets/capabilities-settings-panel-OVLgL6yL.js +0 -8
  221. package/dist/gateway/static/root/assets/capability-icon-DVoZxEgW.js +0 -1
  222. package/dist/gateway/static/root/assets/capability-links-DzQWK1Fh.js +0 -1
  223. package/dist/gateway/static/root/assets/channels-D8BKMMPW.js +0 -1
  224. package/dist/gateway/static/root/assets/computer-settings-page-CvQgrTwb.js +0 -1
  225. package/dist/gateway/static/root/assets/connectors-page-CWlLRQpK.js +0 -1
  226. package/dist/gateway/static/root/assets/device-pairing-wizard-D3IUZ8xW.js +0 -1
  227. package/dist/gateway/static/root/assets/gateway-realtime-store-dKq2fm2X.js +0 -1
  228. package/dist/gateway/static/root/assets/gateway-settings-DlLyLsXY.js +0 -1
  229. package/dist/gateway/static/root/assets/home-page-DAYtNK3o.js +0 -2
  230. package/dist/gateway/static/root/assets/index-K2cy4f-3.js +0 -260
  231. package/dist/gateway/static/root/assets/index-QegseiyI.css +0 -1
  232. package/dist/gateway/static/root/assets/local-app-workbench-page-a7J0NPIs.js +0 -1
  233. package/dist/gateway/static/root/assets/logs-page-C8y5yhoM.js +0 -2
  234. package/dist/gateway/static/root/assets/management-settings-C7dL_jNu.js +0 -1
  235. package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-7zpLTDLZ.js +0 -1
  236. package/dist/gateway/static/root/assets/messages-Bwv-AOYl.js +0 -3
  237. package/dist/gateway/static/root/assets/note-detail-panel-Bxm523Up.js +0 -5
  238. package/dist/gateway/static/root/assets/note-image-lightbox-B7ARnjnB.js +0 -1
  239. package/dist/gateway/static/root/assets/notes-page-BOeS2v6x.js +0 -8
  240. package/dist/gateway/static/root/assets/personal-page-BujiHops.js +0 -1
  241. package/dist/gateway/static/root/assets/plugin-details-dialog-XOzQrJQN.js +0 -1
  242. package/dist/gateway/static/root/assets/plugin-presentation-CPEwVLd4.js +0 -1
  243. package/dist/gateway/static/root/assets/product-preview-content-CAo0XpP-.js +0 -1
  244. package/dist/gateway/static/root/assets/project-detail-page-CxB_kF0F.js +0 -1
  245. package/dist/gateway/static/root/assets/projects-page-Dvu_3c2g.js +0 -1
  246. package/dist/gateway/static/root/assets/remote-access-hub-CbzBV_BL.js +0 -1
  247. package/dist/gateway/static/root/assets/session-manager-DMDBMYfh.js +0 -16
  248. package/dist/gateway/static/root/assets/sessions-page-CvfoPeM6.js +0 -1
  249. package/dist/gateway/static/root/assets/settings-advanced-gate-BOkrHL8q.js +0 -1
  250. package/dist/gateway/static/root/assets/settings-page-C54bw5J9.js +0 -1
  251. package/dist/gateway/static/root/assets/shares-settings-BOa9NAUc.js +0 -1
  252. package/dist/gateway/static/root/assets/skill-reload-api-DEN6tOwG.js +0 -1
  253. package/dist/gateway/static/root/assets/skills-page-CeNVBQG9.js +0 -2
  254. package/dist/gateway/static/root/assets/task-detail-page-DzK53B5p.js +0 -2
  255. package/dist/gateway/static/root/assets/tracing-settings-page-BUUnZfZW.js +0 -1
  256. package/dist/gateway/static/root/assets/user-model-page-DxcH74eP.js +0 -2
  257. package/dist/gateway/static/root/assets/workflows-page-Bo5b5t_9.js +0 -6
  258. package/dist/src/agent/tools/personal-preference-tool.d.ts +0 -10
  259. package/dist/src/agent/tools/personal-preference-tool.js +0 -55
  260. package/dist/src/connectors/china-catalog.d.ts +0 -2
  261. package/dist/src/connectors/china-catalog.js +0 -873
  262. package/dist/src/connectors/cli/adapters/lark.d.ts +0 -2
  263. package/dist/src/connectors/cli/adapters/lark.js +0 -143
  264. package/dist/src/connectors/cli/adapters/larkShortcuts.d.ts +0 -3
  265. package/dist/src/connectors/cli/adapters/larkShortcuts.js +0 -64
  266. package/dist/src/connectors/cli/adapters/wecom.d.ts +0 -2
  267. package/dist/src/connectors/cli/adapters/wecom.js +0 -97
  268. package/dist/src/connectors/cli/adapters/wps365/bundle.js +0 -575
  269. package/dist/src/connectors/cli/adapters/wps365.d.ts +0 -2
  270. package/dist/src/connectors/cli/adapters/wps365.js +0 -115
  271. package/dist/src/connectors/cli/distributions.d.ts +0 -4
  272. package/dist/src/connectors/cli/distributions.js +0 -69
@@ -1,4 +1,5 @@
1
1
  import { CredentialResolver, init_credentials } from "../auth/credentials.js";
2
+ import { assertComposioToolkitAvailable, assertStoreConnectorAvailable } from "./excluded-connectors.js";
2
3
  import { assertPreferredConnectorStrategy } from "./integration-strategy.js";
3
4
  import { getConnectorDefinition } from "./catalog.js";
4
5
  import { getConnectorInstance, getInstalledConnectorDefinition } from "./instances.js";
@@ -6,6 +7,8 @@ import { getConnectorRuntimeAdapter } from "./runtime-adapter-registry.js";
6
7
  //#region src/connectors/install.ts
7
8
  init_credentials();
8
9
  async function installConnectorDefinition(config, definition, input, resolver = new CredentialResolver()) {
10
+ if (definition.runtime.type === "composio") assertComposioToolkitAvailable(definition.runtime.toolkit);
11
+ if (definition.source === "store") assertStoreConnectorAvailable(definition.provenance?.packageName ?? definition.id);
9
12
  assertPreferredConnectorStrategy(definition);
10
13
  return await getConnectorRuntimeAdapter(definition.runtime.type).install({
11
14
  config,
@@ -15,11 +15,6 @@ const COMPOSIO_STRATEGY_OVERRIDES = {
15
15
  workload: "core",
16
16
  preferred: true
17
17
  },
18
- notion: {
19
- lane: "composio",
20
- workload: "core",
21
- preferred: true
22
- },
23
18
  slack: {
24
19
  lane: "composio",
25
20
  workload: "core",
@@ -6,6 +6,5 @@ export type ConnectorProvider = {
6
6
  };
7
7
  export declare const builtinConnectorProvider: ConnectorProvider;
8
8
  export declare const composioConnectorProvider: ConnectorProvider;
9
- export declare const chinaConnectorProvider: ConnectorProvider;
10
9
  export declare function listConnectorProviders(): ConnectorProvider[];
11
10
  export declare function listConnectorProviderDefinitions(): ConnectorDefinition[];
@@ -1,5 +1,4 @@
1
1
  import { BUILTIN_CONNECTORS } from "./builtin-catalog.js";
2
- import { CHINA_CONNECTORS } from "./china-catalog.js";
3
2
  import { COMPOSIO_CONNECTORS } from "./composio.js";
4
3
  //#region src/connectors/providers.ts
5
4
  const builtinConnectorProvider = {
@@ -16,18 +15,7 @@ const composioConnectorProvider = {
16
15
  return COMPOSIO_CONNECTORS;
17
16
  }
18
17
  };
19
- const chinaConnectorProvider = {
20
- id: "china",
21
- displayName: "China connectors",
22
- listConnectors() {
23
- return CHINA_CONNECTORS;
24
- }
25
- };
26
- const CONNECTOR_PROVIDERS = [
27
- builtinConnectorProvider,
28
- chinaConnectorProvider,
29
- composioConnectorProvider
30
- ];
18
+ const CONNECTOR_PROVIDERS = [builtinConnectorProvider, composioConnectorProvider];
31
19
  function listConnectorProviders() {
32
20
  return [...CONNECTOR_PROVIDERS];
33
21
  }
@@ -35,4 +23,4 @@ function listConnectorProviderDefinitions() {
35
23
  return CONNECTOR_PROVIDERS.flatMap((provider) => provider.listConnectors());
36
24
  }
37
25
  //#endregion
38
- export { builtinConnectorProvider, chinaConnectorProvider, composioConnectorProvider, listConnectorProviderDefinitions, listConnectorProviders };
26
+ export { builtinConnectorProvider, composioConnectorProvider, listConnectorProviderDefinitions, listConnectorProviders };
@@ -8,8 +8,8 @@ import { assertManagedWorktreePath, assertNoNestedRegisteredWorktrees, readDirec
8
8
  import { dirname, resolve } from "node:path";
9
9
  import { existsSync } from "node:fs";
10
10
  import { randomUUID } from "node:crypto";
11
- import { mkdir, rm, stat } from "node:fs/promises";
12
11
  import lockfile from "proper-lockfile";
12
+ import { mkdir, rm, stat } from "node:fs/promises";
13
13
  //#region src/execution-environments/local-worktree-manager.ts
14
14
  init_logger();
15
15
  const log = createLogger("ExecutionEnvironment:LocalWorktree");
@@ -1,6 +1,6 @@
1
- import { parseFrontmatter } from "../../markdown/frontmatter.js";
2
1
  import { containedPath } from "./validation.js";
3
2
  import { AgentPluginStore } from "./store.js";
3
+ import { parseFrontmatter } from "../../markdown/frontmatter.js";
4
4
  import { createSkillConfigManager } from "../../agent/skills/config.js";
5
5
  import { parseSkillLocalizations } from "../../agent/skills/parse-skill-metadata.js";
6
6
  import { buildSkillMarkdownPreviewFromRaw } from "../../agent/skills/skill-markdown-preview-from-raw.js";
@@ -8,8 +8,8 @@ import { dirname, isAbsolute, join, relative, resolve } from "node:path";
8
8
  import { existsSync, lstatSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
9
9
  import { createHash } from "node:crypto";
10
10
  import { z } from "zod";
11
- import yaml from "js-yaml";
12
11
  import { validateHeaderName, validateHeaderValue } from "node:http";
12
+ import yaml from "js-yaml";
13
13
  //#region src/extensions/agent-plugins/validation.ts
14
14
  init_schema();
15
15
  const PLUGIN_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json";
@@ -1,10 +1,10 @@
1
1
  import { normalizeAgentId, validateAgentIdForNewAgent } from "../agent-catalog/id.js";
2
2
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
3
3
  import { init_agent_scope, listAgentEntries, resolveAgentProfileDir, resolveAgentWorkspaceDir, resolveDefaultAgentId, resolveUserPath } from "../agent/agent-scope.js";
4
- import { AGENT_PROFILE_MARKDOWN_SYSTEM_FILES, REQUIRED_AGENT_PROFILE_MARKDOWN_FILE_SET } from "../agent/context/workspace.js";
5
- import { AgentCatalogService } from "../agent-catalog/service.js";
6
4
  import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
5
+ import { AGENT_PROFILE_MARKDOWN_SYSTEM_FILES, REQUIRED_AGENT_PROFILE_MARKDOWN_FILE_SET } from "../agent/context/workspace.js";
7
6
  import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
7
+ import { AgentCatalogService } from "../agent-catalog/service.js";
8
8
  import { GATEWAY_BUILTIN_TOOL_IDS } from "./agent-builtin-tools.js";
9
9
  import { resolve } from "node:path";
10
10
  import { mkdir, readFile, realpath, stat, unlink, writeFile } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
+ import { normalizeAgentId } from "../../../agent-catalog/id.js";
1
2
  import { AgentEntrySchema, AgentModelsOverrideSchema, AgentProfileSchema, RuntimePolicySchema, SkillOverrideSchema, ToolPoliciesSchema, WorkflowPolicySchema } from "../../../agent-config/schema.js";
2
3
  import { init_agent_config } from "../../../agent-config/index.js";
3
- import { normalizeAgentId } from "../../../agent-catalog/id.js";
4
4
  import { init_agent_scope } from "../../../agent/agent-scope.js";
5
5
  import { createGatewayAgent, deleteAgentAvatarFile, deleteGatewayAgent, getGatewayAgentEffectiveConfig, listAgentProfileFiles, listGatewayAgents, readAgentAvatarFile, readAgentProfileFile, resolveAgentAvatarImage, updateGatewayAgent, writeAgentAvatarFromBase64, writeAgentProfileFile } from "../../agents-admin.js";
6
6
  import { getVoiceModelsConfig } from "../../../config/voice.js";
@@ -1,10 +1,10 @@
1
1
  import { BindingsSchema, init_binding_schema } from "../../../../routing/binding-schema.js";
2
- import { AgentCatalogService } from "../../../../agent-catalog/service.js";
3
2
  import { ComputerConfigSchema, init_config } from "../../../../computer/config.js";
4
3
  import { ContextPlanningConfigSchema, HomeIntelligenceConfigSchema, KnowledgeMemoryConfigSchema, UserContextConfigSchema, UserModelConfigSchema, init_config as init_config$1 } from "../../../../user-context/config.js";
5
4
  import { BrowserConfigSchema, McpConfigSchema, VoiceConfigSchema, init_schema } from "../../../../config/schema.js";
6
5
  import { CredentialResolver, init_credentials } from "../../../../auth/credentials.js";
7
6
  import { canonicalizeConfiguredMcpServer } from "../../../../config/mcp-config-normalize.js";
7
+ import { AgentCatalogService } from "../../../../agent-catalog/service.js";
8
8
  import { mergeGatewaySkillsMarketplacePatch, mergeSessionConfigPatch, mergeUpdateConfigPatch } from "../../../../config/web-patch.js";
9
9
  import { assertGatewayAuthConfigured, resolveGatewayAuth } from "../../../auth.js";
10
10
  import { isMaskedSecretPatchValue } from "../../lib/mask-secret-length.js";
@@ -1,9 +1,9 @@
1
1
  import { NoteDeleteOutputSchema, NoteGetOutputSchema, ProductReadContracts } from "../../../../packages/gateway-contract/src/capabilities.js";
2
2
  import { init_src } from "../../../../packages/gateway-contract/src/index.js";
3
- import { CapabilityError } from "../../../capabilities/runtime/errors.js";
4
- import "../../../capabilities/runtime/dispatcher.js";
5
3
  import { init_session_key, resolveConversationId } from "../../../routing/session-key.js";
6
4
  import { agentExists, getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
5
+ import { CapabilityError } from "../../../capabilities/runtime/errors.js";
6
+ import "../../../capabilities/runtime/dispatcher.js";
7
7
  import { resolveGatewayEffectiveHost } from "../../../config/gateway-bind.js";
8
8
  import { getShareStore } from "../../../share/share-store.js";
9
9
  import { resolveShareUrl } from "../../../share/share-url.js";
@@ -4,9 +4,9 @@ import { getPersonalAgent } from "../../../personal-agent/repository.js";
4
4
  import { TaskOriginRepository } from "../../../tasks/task-origin-repository.js";
5
5
  import { writeAgentAvatarFromBase64 } from "../../agents-admin.js";
6
6
  import { cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest } from "../../../personal-agent/request-service.js";
7
- import { PersonalOnboardingDraftSchema, PersonalOnboardingStepSchema, finishPersonalWelcome, getPersonalOnboarding, savePersonalOnboarding } from "../../../personal-agent/onboarding.js";
8
- import { PersonalAppearanceSchema, PersonalPreferencesSchema, createOrResumePersonalAgent, ensurePersonalConversationVisibility, listPersonalModels, patchPersonalProfile, refreshPersonalDelegationGuidance } from "../../../personal-agent/service.js";
9
7
  import { getGatewayPrincipal } from "../../security/gateway-principal.js";
8
+ import { PersonalOnboardingDraftSchema, PersonalOnboardingStepSchema, finishPersonalWelcome, getPersonalOnboarding, savePersonalOnboarding } from "../../../personal-agent/onboarding.js";
9
+ import { PersonalAppearanceSchema, createOrResumePersonalAgent, ensurePersonalConversationVisibility, listPersonalModels, patchPersonalProfile, refreshPersonalDelegationGuidance } from "../../../personal-agent/service.js";
10
10
  import { markPersonalRead, personalUnreadSnapshot } from "../../../personal-agent/unread.js";
11
11
  import { registerProactivityRoutes } from "../../../personal-agent/proactivity/routes.js";
12
12
  import { z } from "zod";
@@ -44,7 +44,6 @@ const ProfileSchema = z.object({
44
44
  revision: z.number().int().positive(),
45
45
  displayName: z.string().trim().min(1).max(60),
46
46
  appearance: PersonalAppearanceSchema,
47
- preferences: PersonalPreferencesSchema,
48
47
  voicePreference: z.object({
49
48
  provider: z.string().trim().min(1).max(100),
50
49
  model: z.string().trim().min(1).max(200),
@@ -350,7 +349,7 @@ function registerPersonalAgentRoutes(authenticated, deps) {
350
349
  ok: false,
351
350
  error: "Invalid profile"
352
351
  }, 400);
353
- const { revision, displayName, appearance, preferences, voicePreference, voiceCallPreferences } = parsed.data;
352
+ const { revision, displayName, appearance, voicePreference, voiceCallPreferences } = parsed.data;
354
353
  if (voicePreference) {
355
354
  const { resolveStreamingTts } = await import("../../../voice/realtime/runtime.js");
356
355
  const route = resolveStreamingTts(deps.service.currentConfig);
@@ -367,7 +366,7 @@ function registerPersonalAgentRoutes(authenticated, deps) {
367
366
  error: "Selected voice is unavailable"
368
367
  }, 400);
369
368
  }
370
- const updated = await patchPersonalProfile(deps.service, ownerId, revision, displayName, preferences, appearance, voicePreference, voiceCallPreferences);
369
+ const updated = await patchPersonalProfile(deps.service, ownerId, revision, displayName, appearance, voicePreference, voiceCallPreferences);
371
370
  return updated ? c.json({
372
371
  ok: true,
373
372
  payload: updated
@@ -7,12 +7,12 @@ import { loadTranscriptRowsForSession } from "../../../storage/sqlite/transcript
7
7
  import { init_sqlite } from "../../../storage/sqlite/index.js";
8
8
  import { ActivityService } from "../../../activity/service.js";
9
9
  import "../../../activity/index.js";
10
- import { CapabilityError } from "../../../capabilities/runtime/errors.js";
11
- import "../../../capabilities/runtime/dispatcher.js";
12
10
  import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memory/repository.js";
13
11
  import "../../../knowledge-memory/index.js";
14
12
  import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
15
13
  import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
14
+ import { CapabilityError } from "../../../capabilities/runtime/errors.js";
15
+ import "../../../capabilities/runtime/dispatcher.js";
16
16
  import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
17
17
  import { inferProjectExecutionMode, inferProjectKind } from "../../../projects/project-kind.js";
18
18
  import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError } from "../../../projects/project-service.js";
@@ -5,9 +5,9 @@ import { endpointContextSchema } from "../../../../packages/gateway-contract/src
5
5
  import { parseUserTurnDocument, userTurnDocumentRefIds } from "../../../../packages/gateway-contract/src/user-turn-document.js";
6
6
  import { init_src } from "../../../../packages/gateway-contract/src/index.js";
7
7
  import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
8
+ import { init_providers, resolveModel } from "../../../providers/index.js";
8
9
  import { CapabilityError } from "../../../capabilities/runtime/errors.js";
9
10
  import "../../../capabilities/runtime/dispatcher.js";
10
- import { init_providers, resolveModel } from "../../../providers/index.js";
11
11
  import { getModelThinking } from "../../../providers/model-thinking.js";
12
12
  import { parseTurnContextRefs } from "../../../agent/source-context/types.js";
13
13
  import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
@@ -6,9 +6,9 @@ import { hasGatewayScope, init_gateway_scopes } from "../../security/gateway-sco
6
6
  import { enqueueTaskChangedEvent, init_task_change_events } from "../../../tasks/task-change-events.js";
7
7
  import { TaskRepository, init_task_repository } from "../../../tasks/task-repository.js";
8
8
  import { TaskRunRepository, init_task_run_repository } from "../../../tasks/task-run-repository.js";
9
+ import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
9
10
  import { CapabilityError } from "../../../capabilities/runtime/errors.js";
10
11
  import "../../../capabilities/runtime/dispatcher.js";
11
- import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
12
12
  import { TaskCollaborationRepository } from "../../../tasks/task-collaboration-repository.js";
13
13
  import { TaskCriterionReviewRepository } from "../../../tasks/task-criterion-review-repository.js";
14
14
  import { TaskContextMutationOutputSchema } from "../../../tasks/capabilities/relations.js";
@@ -1,11 +1,11 @@
1
1
  import { normalizeAgentId } from "../agent-catalog/id.js";
2
2
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
3
3
  import { init_agent_scope } from "../agent/agent-scope.js";
4
- import { AgentCatalogService } from "../agent-catalog/service.js";
5
4
  import { ConfigSchema, init_schema } from "../config/schema.js";
6
5
  import { resolveEffectiveAgentConfigForAgent } from "../config/agent-profile.js";
7
6
  import { fetchWithTimeoutGuarded } from "../media-shared/http/provider-http.js";
8
7
  import "../media-shared/http/index.js";
8
+ import { AgentCatalogService } from "../agent-catalog/service.js";
9
9
  import { getImageGenerationProvider, listImageGenerationProvidersSummary } from "../agent/image/generation/provider-registry.js";
10
10
  //#region src/gateway/image-generation-setup.ts
11
11
  init_repository();
@@ -442,7 +442,7 @@ export declare class GatewayConfigCoordinator {
442
442
  a2aApi?: string;
443
443
  realtime?: string;
444
444
  };
445
- capabilities: Record<"models" | "connectors" | "tunnels" | "shares" | "managedRuntime" | "runtimeFleet" | "traceUpload" | "a2a", boolean>;
445
+ capabilities: Record<"shares" | "models" | "connectors" | "tunnels" | "managedRuntime" | "runtimeFleet" | "traceUpload" | "a2a", boolean>;
446
446
  protocols: {
447
447
  xopc: {
448
448
  min: string;
@@ -103,10 +103,6 @@ import { DiscussionSealer } from "../discussions/sealer.js";
103
103
  import "../discussions/index.js";
104
104
  import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
105
105
  import "../endpoint-tools/index.js";
106
- import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
107
- import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
108
- import { HomeIntelligenceHost } from "../home-intelligence/host.js";
109
- import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
110
106
  import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
111
107
  import { prepareAutomationAgentSession } from "./automation-agent-session.js";
112
108
  import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
@@ -167,6 +163,10 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
167
163
  import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
168
164
  import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
169
165
  import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
166
+ import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
167
+ import { HomeIntelligenceHost } from "../home-intelligence/host.js";
168
+ import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
169
+ import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
170
170
  import crypto from "node:crypto";
171
171
  //#region src/gateway/service.ts
172
172
  init_session_repository();
@@ -1,13 +1,13 @@
1
1
  import "../agent-config/schema.js";
2
2
  import { init_agent_config } from "../agent-config/index.js";
3
3
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
4
- import { AgentCatalogService } from "../agent-catalog/service.js";
5
4
  import { ConfigSchema, init_schema } from "../config/schema.js";
6
5
  import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
7
6
  import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
8
7
  import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
9
8
  import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
10
9
  import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
10
+ import { AgentCatalogService } from "../agent-catalog/service.js";
11
11
  import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
12
12
  //#region src/gateway/xopc-cloud-capability-setup.ts
13
13
  init_voice();
@@ -1,10 +1,10 @@
1
1
  import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
+ import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
3
4
  import { homePatternKey } from "./strategy.js";
5
+ import { HomeAdvicePolicy } from "./policy.js";
4
6
  import { HomeIntelligenceRepository } from "./repository.js";
5
7
  import { HomeOpportunityApplicationService } from "./application-service.js";
6
- import { HomeAdvicePolicy } from "./policy.js";
7
- import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
8
8
  import { buildHomeOpportunityNotification } from "./notification.js";
9
9
  import { createHash } from "node:crypto";
10
10
  //#region src/home-intelligence/host.ts
@@ -11,8 +11,8 @@ import { scanLocal } from "./scanner.js";
11
11
  import { dirname, join } from "node:path";
12
12
  import { existsSync, lstatSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
13
13
  import { randomUUID } from "node:crypto";
14
- import yaml from "js-yaml";
15
14
  import lockfile from "proper-lockfile";
15
+ import yaml from "js-yaml";
16
16
  //#region src/imports/importService.ts
17
17
  init_write_file_atomic();
18
18
  init_logger();
@@ -5,10 +5,10 @@ import { currentOperationId, init_operation_context } from "../infra/operation-c
5
5
  import { afterSqliteCommit, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
6
6
  import { ExtensionCapabilityBindingsSchema, extensionCapabilityPermissions } from "../../packages/gateway-contract/src/extension-capabilities.js";
7
7
  import { init_src } from "../../packages/gateway-contract/src/index.js";
8
- import { CapabilityError } from "../capabilities/runtime/errors.js";
9
8
  import { init_paths, resolveExtensionsDir } from "../config/paths.js";
10
9
  import { slugifyProjectName } from "../projects/project-store.js";
11
10
  import { LocalAppStore } from "./store.js";
11
+ import { CapabilityError } from "../capabilities/runtime/errors.js";
12
12
  import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
13
13
  import { validateLocalAppCapabilityContracts } from "./capabilities/contracts.js";
14
14
  import { buildLocalAppFixGuidance } from "./fix-guidance.js";
@@ -1,6 +1,6 @@
1
1
  export declare const PERSONAL_PREVIOUS_RESULT_COMMUNICATION = "For completed work, lead with the requested result or conclusion and only the explanation needed to use it. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible. Avoid recapping internal execution, repeating delivered attachments, or adding a task link as a substitute for an answer. Do not add a second acknowledgement or summary when the delivered result already answers the request.";
2
2
  export { PERSONAL_PERSONA_GUIDANCE } from './persona.js';
3
- export declare const PERSONAL_RELIABILITY_RULES: readonly ["For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.", "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.", "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future preference can be saved with personal_preference. Preserve unrelated preferences. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.", "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."];
3
+ export declare const PERSONAL_RELIABILITY_RULES: readonly ["For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.", "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.", "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future notification preference belongs to that attention thread. Preserve unrelated settings. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.", "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."];
4
4
  export declare const PRE_COMPACT_PERSONAL_COMMUNICATION_RULES: readonly [string, "The user is talking to you and entrusting you with an outcome. Keep ownership through delivery in this conversation. Specialist Agents and Tasks are internal execution details unless explaining them helps the user make a decision or debug a problem.", "Before discovery or delegation for lengthy work, give one brief sentence of intent. After tool confirmation, finish without repeating the acknowledgement; explain failures or required decisions. Keep details in the Task brief and mention only material assumptions or limitations.", "Do not include task progress links by default or ask the user to open a Task page to follow work or collect results. Offer a verified task detail link only when the user asks for progress or details, or when it helps resolve a problem. Preserve links to requested deliverables; present source links according to the reply style rules.", "Describe only the state confirmed by tool results. Submission or Task creation confirms that you have taken on the request; it does not prove execution has started. Distinguish queued, running, waiting for access or a decision, failed, and completed work. Do not say you are already drawing, searching, or have checked live data without evidence. Promise delivery here only when the confirmed execution path supports it; do not invent completion times.", "Keep routine progress private unless the user requests it. Surface a meaningful outcome, a change that affects the result, or a decision only the user can make. Resolve worker questions from the conversation first. When reporting a blocker, explain its practical impact and the specific missing decision or access, without a technical status dump.", "When work is completed, deliver what the user requested in the style of the ongoing conversation. Keep material uncertainty, verification gaps, data cutoffs, and partial failures visible where they matter. Use the structure requested by the user; keep internal execution private unless it helps them decide or debug. Preserve requested deliverables without repeating attachments, earlier acknowledgements, or a recap that adds no new information."];
5
5
  export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first; surface meaningful outcomes, failures affecting the result, or decisions only the user can make.", "Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."];
6
6
  export declare const PERSONAL_WORKER_RESULT_GUIDANCE: string;
@@ -4,7 +4,7 @@ const PERSONAL_PREVIOUS_RESULT_COMMUNICATION = "For completed work, lead with th
4
4
  const PERSONAL_RELIABILITY_RULES = [
5
5
  "For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.",
6
6
  "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.",
7
- "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future preference can be saved with personal_preference. Preserve unrelated preferences. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.",
7
+ "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future notification preference belongs to that attention thread. Preserve unrelated settings. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.",
8
8
  "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."
9
9
  ];
10
10
  const PRE_COMPACT_PERSONAL_COMMUNICATION_RULES = [
@@ -0,0 +1,2 @@
1
+ /** Product-wide Personal AI defaults, shared by chat and result composition. */
2
+ export declare const PERSONAL_DEFAULT_STYLE_RULES: readonly ["Tone: friendly and natural.", "Use an occasional light touch when the moment fits.", "When the user is struggling, help name the core problem and make it manageable.", "Keep replies short and respond to the current request in a natural sentence.", "Only proactively surface decisions and outcomes."];
@@ -0,0 +1,11 @@
1
+ //#region src/personal-agent/default-style.ts
2
+ /** Product-wide Personal AI defaults, shared by chat and result composition. */
3
+ const PERSONAL_DEFAULT_STYLE_RULES = [
4
+ "Tone: friendly and natural.",
5
+ "Use an occasional light touch when the moment fits.",
6
+ "When the user is struggling, help name the core problem and make it manageable.",
7
+ "Keep replies short and respond to the current request in a natural sentence.",
8
+ "Only proactively surface decisions and outcomes."
9
+ ];
10
+ //#endregion
11
+ export { PERSONAL_DEFAULT_STYLE_RULES };
@@ -4,4 +4,4 @@ export declare const PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer o
4
4
  export declare const PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Acknowledge feelings only when relevant, without guessing how the user feels. Avoid formulaic reassurance, praise, pet names, emojis, or jokes unless the user welcomes them and the moment fits. Be accurate about task state, evidence, and uncertainty.";
5
5
  export declare const PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s current words first, then their saved preferences, while retaining your consistent personality. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation. Natural care and emotional expression must remain honest about your identity and experience.";
6
6
  export declare const PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s current words first, then their saved preferences. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation or claim human feelings or experiences.";
7
- export declare const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s explicit language and style preferences at their stated scope while retaining your personality. Keep conversation-only preferences in this conversation; use personal_preference only when the user explicitly requests a lasting preference across conversations. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
7
+ export declare const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user\u2019s explicit language and style preferences at their stated scope while retaining your personality. Keep reply preferences in the current conversation. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
@@ -12,6 +12,6 @@ const PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in
12
12
  const PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE = "Give the accurate answer or next step in the order this user prefers. Acknowledge feelings only when relevant, without guessing how the user feels. Avoid formulaic reassurance, praise, pet names, emojis, or jokes unless the user welcomes them and the moment fits. Be accurate about task state, evidence, and uncertainty.";
13
13
  const PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s current words first, then their saved preferences, while retaining your consistent personality. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation. Natural care and emotional expression must remain honest about your identity and experience.";
14
14
  const PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s current words first, then their saved preferences. If the user explicitly changes how they want you to respond in future, save it with personal_preference. Do not infer a lasting emotional trait from one conversation or claim human feelings or experiences.";
15
- const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s explicit language and style preferences at their stated scope while retaining your personality. Keep conversation-only preferences in this conversation; use personal_preference only when the user explicitly requests a lasting preference across conversations. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
15
+ const PERSONAL_IDENTITY_CONTINUITY_RULE = "Adapt to the user’s explicit language and style preferences at their stated scope while retaining your personality. Keep reply preferences in the current conversation. A single-turn exception does not erase an ongoing preference. Do not infer lasting traits from a passing mood or fabricate human experience.";
16
16
  //#endregion
17
17
  export { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE, PERSONAL_PERSONA_GUIDANCE, PREVIOUS_PERSONAL_EMOTIONAL_STYLE_RULE, PREVIOUS_PERSONAL_IDENTITY_CONTINUITY_RULE, PREVIOUS_PERSONAL_PERSONA_GUIDANCE, PRE_COMPACT_PERSONAL_IDENTITY_CONTINUITY_RULE };
@@ -1,3 +1,3 @@
1
- export declare const PERSONAL_MAIN_TOOL_IDS: readonly ["personal_task", "personal_attention", "personal_capability", "personal_request", "personal_preference", "session_recall", "read_media", "read_file", "session_search", "personal_read", "personal_result", "user_context_read", "knowledge_read"];
1
+ export declare const PERSONAL_MAIN_TOOL_IDS: readonly ["personal_task", "personal_attention", "personal_capability", "personal_request", "session_recall", "read_media", "read_file", "session_search", "personal_read", "personal_result", "user_context_read", "knowledge_read"];
2
2
  export declare const PERSONAL_TOOL_DESCRIPTIONS: Readonly<Record<string, string>>;
3
3
  export declare const PERSONAL_READ_TOOL_ALIASES: Readonly<Record<string, string>>;
@@ -4,7 +4,6 @@ const PERSONAL_MAIN_TOOL_IDS = [
4
4
  "personal_attention",
5
5
  "personal_capability",
6
6
  "personal_request",
7
- "personal_preference",
8
7
  "session_recall",
9
8
  "read_media",
10
9
  "read_file",
@@ -355,10 +355,7 @@ var PersonalProactivityService = class {
355
355
  "Return JSON {decision:\"silent\"|\"defer\"|\"prepare\"|\"contact\",reason,sourceIds,text?,nextCheckAt?}. sourceIds must reference supplied evidence.",
356
356
  JSON.stringify({
357
357
  now,
358
- identity: {
359
- name: profile?.name,
360
- preferences: profile?.responsePreferences
361
- },
358
+ identity: { name: profile?.name },
362
359
  history,
363
360
  thread: {
364
361
  subject: thread.subject,
@@ -1,10 +1,6 @@
1
- import type { z } from 'zod';
2
- import type { ResponsePreferencesSchema } from '../agent-config/index.js';
3
- type PersonalPreferences = z.infer<typeof ResponsePreferencesSchema>;
4
1
  export declare const PREVIOUS_PERSONAL_INTERRUPTION_RULE = "A new user message takes priority over your current reply. Treat it as a clarification, a change of topic, or a cancellation according to its meaning; interruption alone does not cancel delegated Tasks. Use the preserved conversation and tool outcomes. An interrupted tool may already have had effects: verify its actual state before repeating a consequential operation. Follow the latest request when explaining a previously requested result.";
5
- export declare function personalInstructions(preferences: PersonalPreferences): string;
2
+ export declare function personalInstructions(): string;
6
3
  /** Project only complete product-owned rules; custom prose and stored instructions stay intact. */
7
4
  export declare function projectPersonalInstructions(instructions: string, toolNames: readonly string[]): string;
8
5
  /** Refresh known generated rules without replacing custom instructions. */
9
6
  export declare function upgradePersonalInstructions(instructions: string, legacyName?: string): string;
10
- export {};