@xopcai/xopc 0.0.311 → 0.0.313

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 (345) hide show
  1. package/README.md +2 -1
  2. package/README.zh-CN.md +2 -1
  3. package/dist/browser-ext/manifest.json +1 -1
  4. package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
  5. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  6. package/dist/extensions/telegram/src/inbound-processor.js +1 -1
  7. package/dist/extensions/telegram/src/outbound-sender.js +1 -1
  8. package/dist/extensions/telegram/src/plugin.js +2 -2
  9. package/dist/extensions/telegram/xopc.extension.json +1 -1
  10. package/dist/extensions/weixin/src/api/api.js +2 -2
  11. package/dist/extensions/weixin/src/auth/accounts.js +12 -12
  12. package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
  13. package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
  14. package/dist/gateway/static/root/assets/{activity-store-DVUTs1fk.js → activity-store-CS_SAPwP.js} +1 -1
  15. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-zKINl7UH.js → agent-avatar-dicebear-C73s_EYF.js} +1 -1
  16. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-D2ePZKdY.js → agent-defaults-settings-panel-9w_YVThL.js} +1 -1
  17. package/dist/gateway/static/root/assets/{agents-BiD9STyv.js → agents-Bspu1pT2.js} +1 -1
  18. package/dist/gateway/static/root/assets/{api-_aHQA8bd.js → api-Com7kQuw.js} +1 -1
  19. package/dist/gateway/static/root/assets/app-link-CKueEVbT.js +1 -0
  20. package/dist/gateway/static/root/assets/{app-management-settings-panel-C94LAxyt.js → app-management-settings-panel-DSo_SV6G.js} +1 -1
  21. package/dist/gateway/static/root/assets/{appearance-settings-CP01zHvC.js → appearance-settings-Jgvx-RKL.js} +1 -1
  22. package/dist/gateway/static/root/assets/apps-page-403o57-3.js +1 -0
  23. package/dist/gateway/static/root/assets/{archive-plugin-SwWFt5MT.js → archive-plugin-BWueu3Qt.js} +1 -1
  24. package/dist/gateway/static/root/assets/{attachment-load-DdTFml9l.js → attachment-load-DYV25sAC.js} +1 -1
  25. package/dist/gateway/static/root/assets/{automations-page-Kmr5WVFp.js → automations-page-Du8AkHrH.js} +1 -1
  26. package/dist/gateway/static/root/assets/{automations-workspace-bkijiu-Y.js → automations-workspace-Dpju5KT_.js} +1 -1
  27. package/dist/gateway/static/root/assets/{binary-plugins-47UTtDNq.js → binary-plugins-rahoUE_-.js} +1 -1
  28. package/dist/gateway/static/root/assets/{block-editor-DvzZkMG8.js → block-editor-CVbiuQ90.js} +1 -1
  29. package/dist/gateway/static/root/assets/{browser-automation-inputs-C611KRBx.js → browser-automation-inputs-CAC4w9KM.js} +1 -1
  30. package/dist/gateway/static/root/assets/{browser-automations-page-DrUKNL9X.js → browser-automations-page-B3-fdrAr.js} +1 -1
  31. package/dist/gateway/static/root/assets/{browser-settings-page-Dhf_MWCf.js → browser-settings-page-C0HJrpr1.js} +1 -1
  32. package/dist/gateway/static/root/assets/{capabilities-settings-panel-BCubrDf8.js → capabilities-settings-panel-BanM86OX.js} +1 -1
  33. package/dist/gateway/static/root/assets/{channels-settings-e4T1DEfN.js → channels-settings-Bhh0F9pO.js} +1 -1
  34. package/dist/gateway/static/root/assets/{chat-terminal-dock-Bg_m7HUE.js → chat-terminal-dock-98GzKJ0K.js} +1 -1
  35. package/dist/gateway/static/root/assets/{computer-settings-page-CosCmVsT.js → computer-settings-page-CB3mySQb.js} +1 -1
  36. package/dist/gateway/static/root/assets/connector-service-page-ZlbIXdey.js +1 -0
  37. package/dist/gateway/static/root/assets/{connectors-page-C0WWxnxJ.js → connectors-page-BTqjm6eD.js} +2 -2
  38. package/dist/gateway/static/root/assets/{date-picker-DqYFVasF.js → date-picker-WW3fY-ng.js} +1 -1
  39. package/dist/gateway/static/root/assets/{dependency-picker-DCyyFLKp.js → dependency-picker-D1QgzM_s.js} +1 -1
  40. package/dist/gateway/static/root/assets/{desktop-pet-CFnnpRA_.js → desktop-pet-D0MtbTwu.js} +1 -1
  41. package/dist/gateway/static/root/assets/{desktop-pet-settings-U5wWRH4c.js → desktop-pet-settings-BI_sQTR_.js} +1 -1
  42. package/dist/gateway/static/root/assets/{device-pairing-wizard-BhHxvFO1.js → device-pairing-wizard-BoPCEIm5.js} +1 -1
  43. package/dist/gateway/static/root/assets/{extension-debug-page-DA8WJ3-E.js → extension-debug-page-BOtWAAGM.js} +1 -1
  44. package/dist/gateway/static/root/assets/{extension-page-C2BIB88m.js → extension-page-FULvawj8.js} +1 -1
  45. package/dist/gateway/static/root/assets/{extension-settings-page-kpYo979N.js → extension-settings-page-Dzh6lE26.js} +1 -1
  46. package/dist/gateway/static/root/assets/{gateway-config-swr-DUDX42qY.js → gateway-config-swr-D7SG_ECs.js} +1 -1
  47. package/dist/gateway/static/root/assets/{gateway-realtime-CGOW0-b4.js → gateway-realtime-mpOw3R4d.js} +1 -1
  48. package/dist/gateway/static/root/assets/gateway-realtime-store-Z-ErSgkD.js +1 -0
  49. package/dist/gateway/static/root/assets/{gateway-settings-CE9t1yTa.js → gateway-settings-Bq82yXVh.js} +1 -1
  50. package/dist/gateway/static/root/assets/{gateway-startup-retry-Cf8OxlvY.js → gateway-startup-retry-CrHz00-9.js} +1 -1
  51. package/dist/gateway/static/root/assets/{home-page-C7Ezx8Du.js → home-page-BD1v6Uee.js} +1 -1
  52. package/dist/gateway/static/root/assets/{image-generation-api-D2YorS--.js → image-generation-api-DGiHzeLb.js} +1 -1
  53. package/dist/gateway/static/root/assets/{imports-page-NPk698vI.js → imports-page-DiJrgu9D.js} +1 -1
  54. package/dist/gateway/static/root/assets/{index-DxYitLp8.js → index-Ah5XDhOL.js} +46 -46
  55. package/dist/gateway/static/root/assets/{index-1wIKA-kM.css → index-CV5b1pD1.css} +1 -1
  56. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BhreF0_O.js → keyboard-shortcuts-settings-DZ60sucF.js} +1 -1
  57. package/dist/gateway/static/root/assets/{local-app-workbench-page-CPmynb3x.js → local-app-workbench-page-BF8x3bgh.js} +2 -2
  58. package/dist/gateway/static/root/assets/{local-apps-page-DOZZBdqj.js → local-apps-page-Cx2YuI8E.js} +1 -1
  59. package/dist/gateway/static/root/assets/{locale-store-DA0Z5jM_.js → locale-store-vZTDIqJB.js} +1 -1
  60. package/dist/gateway/static/root/assets/{logs-page-M8kz26yo.js → logs-page-B4vMUM7D.js} +1 -1
  61. package/dist/gateway/static/root/assets/{management-settings-JLqHYQvY.js → management-settings-Cg0UjJpy.js} +1 -1
  62. package/dist/gateway/static/root/assets/{markdown-view-BDpcjR_Z.js → markdown-view-DJfzcZCW.js} +1 -1
  63. package/dist/gateway/static/root/assets/{media-plugins-B75SWUJd.js → media-plugins-COpQGcN3.js} +1 -1
  64. package/dist/gateway/static/root/assets/{messages-4BtQKYlM.js → messages-CRH2my19.js} +2 -2
  65. package/dist/gateway/static/root/assets/{note-detail-panel-B_Ft0M32.js → note-detail-panel-CWVIGctd.js} +3 -3
  66. package/dist/gateway/static/root/assets/notes-page-CcTzMI1K.js +8 -0
  67. package/dist/gateway/static/root/assets/{page-tabs-CMlQUzT6.js → page-tabs-nARdLZcP.js} +1 -1
  68. package/dist/gateway/static/root/assets/{preview-open-alternatives-cZ2hszQT.js → preview-open-alternatives-BEJg3fTq.js} +1 -1
  69. package/dist/gateway/static/root/assets/product-delivery-CrAI8ZEa.js +1 -0
  70. package/dist/gateway/static/root/assets/{product-open-page-CPoSbglF.js → product-open-page-CR4Lehku.js} +1 -1
  71. package/dist/gateway/static/root/assets/{project-detail-page-DYttWua0.js → project-detail-page-BNYoV9Ac.js} +1 -1
  72. package/dist/gateway/static/root/assets/{projects-page-D46drWbl.js → projects-page-CcKnYQqm.js} +1 -1
  73. package/dist/gateway/static/root/assets/{registry-api-C0DCx3wv.js → registry-api-CF-nJ5MG.js} +1 -1
  74. package/dist/gateway/static/root/assets/{remote-access-hub-C9n9Nuhi.js → remote-access-hub-HIvwD5Xn.js} +1 -1
  75. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-bMLWRApp.js → runtime-tools-settings-panel-CFE2oX_l.js} +1 -1
  76. package/dist/gateway/static/root/assets/scenes-page-BGKdg4uS.js +1 -0
  77. package/dist/gateway/static/root/assets/{schema-form-UVJV_7AS.js → schema-form-DOsDKbWU.js} +1 -1
  78. package/dist/gateway/static/root/assets/{sessions-page-C8P6ff91.js → sessions-page-tn99saMj.js} +1 -1
  79. package/dist/gateway/static/root/assets/settings-advanced-gate-Cx_uvwqz.js +1 -0
  80. package/dist/gateway/static/root/assets/{settings-form-section-BqzOqonM.js → settings-form-section-kIV5M-9G.js} +1 -1
  81. package/dist/gateway/static/root/assets/{settings-page-DQ9RJ8-b.js → settings-page-C2TS9mvq.js} +1 -1
  82. package/dist/gateway/static/root/assets/{settings-page-layout-D3Spald3.js → settings-page-layout-B39PogyD.js} +1 -1
  83. package/dist/gateway/static/root/assets/{setup-status-panel-C8u601m8.js → setup-status-panel-1kYYg3BH.js} +1 -1
  84. package/dist/gateway/static/root/assets/{share-preview-page-BcgYzA7y.js → share-preview-page-CMbgRZ7w.js} +1 -1
  85. package/dist/gateway/static/root/assets/{shares-settings-Bv-2rZ8e.js → shares-settings-Du7BfwId.js} +1 -1
  86. package/dist/gateway/static/root/assets/skill-reload-api-BMhhXxRZ.js +1 -0
  87. package/dist/gateway/static/root/assets/{skills-page-ggmb7rCW.js → skills-page-DV4FX1ev.js} +1 -1
  88. package/dist/gateway/static/root/assets/{skills-page.utils-ADABzrtk.js → skills-page.utils-C-2lmZHk.js} +1 -1
  89. package/dist/gateway/static/root/assets/{system-settings-panel-DfkcW_Za.js → system-settings-panel-CQ1Z6i28.js} +1 -1
  90. package/dist/gateway/static/root/assets/{task-detail-page-DC4yqDFd.js → task-detail-page-vFn3xdlZ.js} +1 -1
  91. package/dist/gateway/static/root/assets/{theme-store-CegIlB8d.js → theme-store-DdURyZ1M.js} +1 -1
  92. package/dist/gateway/static/root/assets/{tunnel-api-CTuwTdMm.js → tunnel-api-tn6H0D44.js} +1 -1
  93. package/dist/gateway/static/root/assets/{use-autosave-5ZDd9XKh.js → use-autosave-CkEM9tXu.js} +1 -1
  94. package/dist/gateway/static/root/assets/{user-model-page-BFKFhdZ0.js → user-model-page-uK9sxPUH.js} +1 -1
  95. package/dist/gateway/static/root/assets/{voice-api-key-field-D3urfd-n.js → voice-api-key-field-d0Fawetf.js} +1 -1
  96. package/dist/gateway/static/root/assets/{voice-config-api-DTyMdGOR.js → voice-config-api-D_8zU7Li.js} +1 -1
  97. package/dist/gateway/static/root/assets/{work-discovery-overlay-JzM3Ylbs.js → work-discovery-overlay-C5FFSieF.js} +1 -1
  98. package/dist/gateway/static/root/assets/{workflow-run-setup-panel-Bn2CtRdB.js → workflow-run-setup-panel-q5ammR4k.js} +1 -1
  99. package/dist/gateway/static/root/assets/{workflows-page-BiCmt98A.js → workflows-page-DIyd5AC9.js} +1 -1
  100. package/dist/gateway/static/root/index.html +14 -14
  101. package/dist/package.js +1 -1
  102. package/dist/packages/gateway-contract/src/product-delivery.js +1 -0
  103. package/dist/src/agent/agent-manager.js +18 -18
  104. package/dist/src/agent/agent-scope.js +2 -2
  105. package/dist/src/agent/background-review/run-background-review.js +4 -4
  106. package/dist/src/agent/coding/repository-instructions.js +1 -1
  107. package/dist/src/agent/context/coordinator.js +2 -2
  108. package/dist/src/agent/context/execution-context.js +4 -4
  109. package/dist/src/agent/context/execution-scope.js +2 -2
  110. package/dist/src/agent/context/project-context.js +4 -4
  111. package/dist/src/agent/data-acquisition/service.js +1 -1
  112. package/dist/src/agent/embedded/index.js +2 -2
  113. package/dist/src/agent/embedded/model-runtime.js +1 -1
  114. package/dist/src/agent/embedded/run-for-session.js +4 -4
  115. package/dist/src/agent/embedded/run-turn.js +4 -4
  116. package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
  117. package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
  118. package/dist/src/agent/external-tools/cliProvider.js +3 -3
  119. package/dist/src/agent/external-tools/composio-provider.js +3 -3
  120. package/dist/src/agent/external-tools/gateway-tools.js +1 -1
  121. package/dist/src/agent/external-tools/mcp-provider.js +2 -2
  122. package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
  123. package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
  124. package/dist/src/agent/image/generation/providers/fal.js +1 -1
  125. package/dist/src/agent/image/generation/providers/google.js +1 -1
  126. package/dist/src/agent/image/generation/runtime.js +1 -1
  127. package/dist/src/agent/image/index.js +1 -1
  128. package/dist/src/agent/image/load-image-media.js +1 -1
  129. package/dist/src/agent/image/tool-model-config.js +1 -1
  130. package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
  131. package/dist/src/agent/inbound/inbound-loop.js +2 -2
  132. package/dist/src/agent/index.js +1 -1
  133. package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
  134. package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
  135. package/dist/src/agent/mcp/index.js +2 -2
  136. package/dist/src/agent/mcp/mcp-transport.js +1 -1
  137. package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -1
  138. package/dist/src/agent/memory/context-recovery.js +1 -1
  139. package/dist/src/agent/memory/index.js +2 -2
  140. package/dist/src/agent/orchestration/agent-orchestrator.js +5 -5
  141. package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
  142. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  143. package/dist/src/agent/service/direct-turn-helpers.js +5 -5
  144. package/dist/src/agent/service/process-direct-one-shot.js +1 -1
  145. package/dist/src/agent/service/process-direct-streaming.js +5 -5
  146. package/dist/src/agent/service/webchat-tts.js +1 -1
  147. package/dist/src/agent/service.js +21 -21
  148. package/dist/src/agent/session/session-inspector.js +1 -1
  149. package/dist/src/agent/skills/filesystem-watcher.js +1 -1
  150. package/dist/src/agent/skills/hub-lock.js +1 -1
  151. package/dist/src/agent/skills/hub-pull.js +3 -3
  152. package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
  153. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
  154. package/dist/src/agent/tasks/task-judge-service.js +5 -5
  155. package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
  156. package/dist/src/agent/tool-manuals/xopc-use.js +43 -16
  157. package/dist/src/agent/tools/create-share-tool.js +4 -4
  158. package/dist/src/agent/tools/dataBatch.js +1 -1
  159. package/dist/src/agent/tools/delegate-tool.js +3 -3
  160. package/dist/src/agent/tools/delegation-parent-policy.js +1 -1
  161. package/dist/src/agent/tools/executor.js +1 -1
  162. package/dist/src/agent/tools/factory.js +16 -16
  163. package/dist/src/agent/tools/fetch-text.js +1 -1
  164. package/dist/src/agent/tools/image-generate-tool.js +3 -3
  165. package/dist/src/agent/tools/index.js +6 -6
  166. package/dist/src/agent/tools/list-dir.js +1 -1
  167. package/dist/src/agent/tools/publish-artifacts.js +2 -2
  168. package/dist/src/agent/tools/read.js +2 -2
  169. package/dist/src/agent/tools/review-workspace.js +1 -1
  170. package/dist/src/agent/tools/send-media.js +2 -2
  171. package/dist/src/agent/tools/skills-tools.js +1 -1
  172. package/dist/src/agent/tools/user-context-tool.js +1 -1
  173. package/dist/src/agent/tools/write.js +2 -2
  174. package/dist/src/agent/tools/xopc-use-tool.js +64 -7
  175. package/dist/src/agent/workflow/subagent-runner.js +1 -1
  176. package/dist/src/ai-assist/text-assist.js +1 -1
  177. package/dist/src/auth/credentials.js +2 -2
  178. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  179. package/dist/src/auth/profiles/store.js +1 -1
  180. package/dist/src/auth/sync-provider-auth.js +2 -2
  181. package/dist/src/browser/providers/browser-ext-install.js +1 -1
  182. package/dist/src/capabilities/store-connector.js +1 -1
  183. package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
  184. package/dist/src/channels/index.js +1 -1
  185. package/dist/src/channels/pairing/allow-from-file.js +9 -9
  186. package/dist/src/channels/pairing/pairing-store.js +6 -6
  187. package/dist/src/chat-commands/agent-edit.js +1 -1
  188. package/dist/src/chat-commands/builtins/config.js +1 -1
  189. package/dist/src/chat-commands/builtins/review.js +1 -1
  190. package/dist/src/chat-commands/builtins/thinking.js +1 -1
  191. package/dist/src/chat-commands/builtins/tts.js +1 -1
  192. package/dist/src/chat-commands/builtins/understanding.js +1 -1
  193. package/dist/src/chat-commands/builtins/workflow.js +2 -2
  194. package/dist/src/chat-commands/context.js +2 -2
  195. package/dist/src/chat-commands/index.js +2 -2
  196. package/dist/src/cli/commands/agent.js +7 -7
  197. package/dist/src/cli/commands/agents.js +1 -1
  198. package/dist/src/cli/commands/config.js +1 -1
  199. package/dist/src/cli/commands/doctor/checks/provider-auth.js +3 -3
  200. package/dist/src/cli/commands/extension-dev.js +1 -1
  201. package/dist/src/cli/commands/extension.js +1 -1
  202. package/dist/src/cli/commands/gateway/shared.js +1 -1
  203. package/dist/src/cli/commands/gateway/token.js +1 -1
  204. package/dist/src/cli/commands/image.js +1 -1
  205. package/dist/src/cli/commands/init.js +1 -1
  206. package/dist/src/cli/commands/models.js +1 -1
  207. package/dist/src/cli/commands/onboard.js +1 -1
  208. package/dist/src/cli/commands/project.js +1 -1
  209. package/dist/src/cli/commands/runtime.js +1 -1
  210. package/dist/src/cli/commands/skills.js +2 -2
  211. package/dist/src/cli/commands/tunnel.js +3 -3
  212. package/dist/src/cli/extension-cli-register.js +4 -4
  213. package/dist/src/cli/utils/gateway-client.js +1 -1
  214. package/dist/src/computer/runtime.js +2 -2
  215. package/dist/src/config/index.js +7 -7
  216. package/dist/src/config/loader.js +2 -2
  217. package/dist/src/config/models-json.js +2 -2
  218. package/dist/src/config/schema.d.ts +9 -0
  219. package/dist/src/config/schema.js +9 -3
  220. package/dist/src/connectors/cli/authorization.js +1 -1
  221. package/dist/src/connectors/cli/runtime.js +1 -1
  222. package/dist/src/connectors/composio-sessions.js +1 -1
  223. package/dist/src/connectors/composio.js +1 -1
  224. package/dist/src/connectors/connected-source-understanding.js +2 -2
  225. package/dist/src/connectors/connection-recovery-service.js +5 -5
  226. package/dist/src/connectors/health.js +1 -1
  227. package/dist/src/discussions/live-worker.js +1 -1
  228. package/dist/src/discussions/sealer.js +1 -1
  229. package/dist/src/extensions/api.js +3 -3
  230. package/dist/src/extensions/bundled-extension-activation.js +1 -1
  231. package/dist/src/extensions/index.js +1 -1
  232. package/dist/src/extensions/loader.js +1 -1
  233. package/dist/src/extensions/lockfile.js +1 -1
  234. package/dist/src/extensions/sdk/index.js +1 -1
  235. package/dist/src/gateway/agents-admin.js +4 -4
  236. package/dist/src/gateway/device-routes.js +2 -2
  237. package/dist/src/gateway/file-path-classifier.js +2 -2
  238. package/dist/src/gateway/global-defaults-admin.js +1 -1
  239. package/dist/src/gateway/hono/app.js +3 -3
  240. package/dist/src/gateway/hono/lib/config-payload.d.ts +3 -0
  241. package/dist/src/gateway/hono/lib/config-payload.js +4 -3
  242. package/dist/src/gateway/hono/routes/agents.js +1 -1
  243. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  244. package/dist/src/gateway/hono/routes/browser.js +1 -1
  245. package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
  246. package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
  247. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  248. package/dist/src/gateway/hono/routes/home.js +1 -1
  249. package/dist/src/gateway/hono/routes/imports.js +1 -1
  250. package/dist/src/gateway/hono/routes/mcp.js +1 -1
  251. package/dist/src/gateway/hono/routes/media.js +1 -1
  252. package/dist/src/gateway/hono/routes/models.js +5 -5
  253. package/dist/src/gateway/hono/routes/notes.js +1 -1
  254. package/dist/src/gateway/hono/routes/projects.js +4 -4
  255. package/dist/src/gateway/hono/routes/session-input-handler.js +2 -2
  256. package/dist/src/gateway/hono/routes/sessions.js +1 -1
  257. package/dist/src/gateway/hono/routes/shares.js +3 -3
  258. package/dist/src/gateway/hono/routes/site-shares.js +1 -1
  259. package/dist/src/gateway/hono/routes/status.js +1 -1
  260. package/dist/src/gateway/hono/routes/tasks.js +3 -3
  261. package/dist/src/gateway/hono/routes/user-model.js +4 -4
  262. package/dist/src/gateway/hono/routes/voice.js +2 -2
  263. package/dist/src/gateway/hono/routes/workflows.js +2 -2
  264. package/dist/src/gateway/lock.js +11 -11
  265. package/dist/src/gateway/media-access.js +1 -1
  266. package/dist/src/gateway/ports.js +6 -6
  267. package/dist/src/gateway/scenes/host.js +5 -4
  268. package/dist/src/gateway/server.js +1 -1
  269. package/dist/src/gateway/service/config-coordinator.js +4 -4
  270. package/dist/src/gateway/service/marketplace-service.js +3 -3
  271. package/dist/src/gateway/service/run-gateway-agent.js +3 -3
  272. package/dist/src/gateway/service/sessions-api.js +1 -1
  273. package/dist/src/gateway/service.js +31 -31
  274. package/dist/src/gateway/session-context-summary.js +2 -2
  275. package/dist/src/gateway/workspace-editor-path.js +2 -2
  276. package/dist/src/heartbeat/index.js +1 -1
  277. package/dist/src/i18n/share-tool-bundle.js +2 -2
  278. package/dist/src/imports/runtime.js +1 -1
  279. package/dist/src/infra/gateway-processes.js +2 -2
  280. package/dist/src/infra/path-env.js +3 -3
  281. package/dist/src/infra/update-global.js +10 -10
  282. package/dist/src/local-apps/service.js +1 -1
  283. package/dist/src/notes/agent-context.js +3 -3
  284. package/dist/src/projects/project-skill-service.js +2 -2
  285. package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
  286. package/dist/src/providers/index.js +2 -2
  287. package/dist/src/providers/model-catalog-persistence.js +1 -1
  288. package/dist/src/providers/model-reference-auditor.js +1 -1
  289. package/dist/src/providers/model-registry.js +1 -1
  290. package/dist/src/providers/register-runtime-providers.js +1 -1
  291. package/dist/src/remote-access/exposure-manager.js +1 -1
  292. package/dist/src/scenes/metrics.d.ts +3 -1
  293. package/dist/src/scenes/metrics.js +7 -1
  294. package/dist/src/scenes/model.d.ts +3 -0
  295. package/dist/src/scenes/model.js +10 -0
  296. package/dist/src/session/index.js +2 -2
  297. package/dist/src/session/session-title.js +1 -1
  298. package/dist/src/session/store.js +3 -3
  299. package/dist/src/session/thinking-resolve.js +1 -1
  300. package/dist/src/share/share-store.js +1 -1
  301. package/dist/src/share/share-thumbnail.js +1 -1
  302. package/dist/src/share/site-proxy.js +1 -1
  303. package/dist/src/share/site-share-store.js +1 -1
  304. package/dist/src/storage/sqlite/connection.js +9 -9
  305. package/dist/src/tasks/execution-context.js +1 -1
  306. package/dist/src/tasks/home-query-service.js +3 -3
  307. package/dist/src/tasks/index.js +5 -5
  308. package/dist/src/tasks/task-application-service.js +1 -1
  309. package/dist/src/tasks/task-context-assembler.js +1 -1
  310. package/dist/src/tasks/task-handoff-service.js +1 -1
  311. package/dist/src/tasks/task-run-coordinator.js +1 -1
  312. package/dist/src/tui/backends/embedded-backend.js +10 -10
  313. package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
  314. package/dist/src/tui/extension-host/load-extensions.js +1 -1
  315. package/dist/src/tui/tui-command-formatters.js +1 -1
  316. package/dist/src/tui/tui-commands.js +5 -5
  317. package/dist/src/tui/tui-picker-overlay.js +1 -1
  318. package/dist/src/tui/tui-skills-autocomplete.js +1 -1
  319. package/dist/src/tui/tui-startup-resources.js +4 -4
  320. package/dist/src/tui/tui.js +3 -3
  321. package/dist/src/tunnel/gateway-lifecycle.js +1 -1
  322. package/dist/src/voice/local/runtime-worker.js +1 -1
  323. package/dist/src/voice/realtime/memory-context.js +3 -3
  324. package/dist/src/voice/stt/index.js +2 -2
  325. package/dist/src/voice/stt/preflight.js +1 -1
  326. package/dist/src/voice/stt/providers/local-transcription.js +1 -1
  327. package/dist/src/voice/stt/transcribe-core.js +1 -1
  328. package/dist/src/voice/tts/audio.js +1 -1
  329. package/dist/src/voice/tts/factory.js +1 -1
  330. package/dist/src/voice/tts/index.js +1 -1
  331. package/dist/src/voice/tts/payload.js +1 -1
  332. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
  333. package/dist/src/work-discovery/service.js +4 -4
  334. package/dist/src/workflows/service/workflow-run-service.js +6 -6
  335. package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
  336. package/package.json +4 -4
  337. package/dist/gateway/static/root/assets/app-link-wamYbNUl.js +0 -1
  338. package/dist/gateway/static/root/assets/apps-page-B7DmSJQj.js +0 -1
  339. package/dist/gateway/static/root/assets/connector-service-page-BL-hSR7_.js +0 -1
  340. package/dist/gateway/static/root/assets/gateway-realtime-store-D4um_sV7.js +0 -1
  341. package/dist/gateway/static/root/assets/notes-page-C32mxSD-.js +0 -8
  342. package/dist/gateway/static/root/assets/product-delivery-CCC4FJ3Y.js +0 -1
  343. package/dist/gateway/static/root/assets/scenes-page-Dw3hmHAr.js +0 -1
  344. package/dist/gateway/static/root/assets/settings-advanced-gate-whpUsAy3.js +0 -1
  345. package/dist/gateway/static/root/assets/skill-reload-api-LM-cgWUS.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { resolveStateDir } from "../../config/paths-state.js";
2
2
  import { init_paths } from "../../config/paths.js";
3
- import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
4
3
  import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "../skills/config.js";
4
+ import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
5
5
  import { resolveSkillReadablePath } from "../skills/skill-view-path.js";
6
6
  import { readFileSync, statSync } from "fs";
7
7
  import { Type } from "@sinclair/typebox";
@@ -1,7 +1,7 @@
1
- import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
2
1
  import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
3
2
  import { canUseAssertion } from "../../user-model/usage-policy.js";
4
3
  import "../../user-model/index.js";
4
+ import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
5
5
  import { Type } from "@sinclair/typebox";
6
6
  //#region src/agent/tools/user-context-tool.ts
7
7
  const SearchSchema = Type.Object({
@@ -1,9 +1,9 @@
1
1
  import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
4
+ import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
3
5
  import { writeWorkspaceFile } from "../sandbox/fileAccess.js";
4
6
  import { checkFileSafety } from "../prompt/safety.js";
5
- import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
6
- import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
7
7
  import { basename, relative, sep } from "path";
8
8
  import { realpath } from "fs/promises";
9
9
  import { Type } from "@sinclair/typebox";
@@ -10,15 +10,15 @@ import "../../storage/sqlite/index.js";
10
10
  import { ObjectLinkService } from "../../activity/service.js";
11
11
  import "../../activity/index.js";
12
12
  import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
13
- import { TaskRepository } from "../../tasks/task-repository.js";
14
- import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
15
- import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "../../projects/project-agent.js";
16
- import "../../projects/index.js";
17
13
  import { CreateAutomationSchema, UpdateAutomationSchema } from "../../automations/domain/validation.js";
18
14
  import "../../automations/index.js";
19
15
  import { TaskContextRepository } from "../../tasks/task-context-repository.js";
16
+ import { TaskRepository } from "../../tasks/task-repository.js";
17
+ import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
20
18
  import { TaskDependencyError, TaskDependencyService } from "../../tasks/task-dependency-service.js";
21
19
  import { TaskApplicationService } from "../../tasks/task-application-service.js";
20
+ import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "../../projects/project-agent.js";
21
+ import "../../projects/index.js";
22
22
  import { defineTaskContract } from "../../tasks/task-contract-definition.js";
23
23
  import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
24
24
  import "../../tasks/index.js";
@@ -39,7 +39,7 @@ const XopcUseToolSchema = Type.Object({
39
39
  Type.Literal("local_app"),
40
40
  Type.Literal("settings")
41
41
  ]),
42
- command: Type.String({ description: "Object command. Scene commands: templates, list, get {id}, mail_accounts, mail_search {accountId, query}, mail_sources, preflight/start {templateKey, templateVersion, goal, scope, permissions}, configure {id, expectedRevision, goal, scope, permissions}, transition {id, expectedRevision, status: paused|active|completed|archived}, check {id}, notes {id, expectedRevision, content, validUntil?}, work_item {id, subjectId, accountId, dueAt}, schedule {id, triggerKey, expectedRevision, schedule}, results {id}. Start and check accept a stable requestId for retries. Scenes prepare read-only suggestions and drafts; never send mail. Only create a scene for work explicitly delegated by the user; inspect existing scenes first. Supports project list/get/create/update/resolve_workspace/list_milestones/create_milestone/update_milestone/list_updates/create_update, automation list/get/create/update/delete/run/pause/resume/history, note list/get/create/append/update/preview_edit/delete, task list/get/create/update_dependencies/add_context/remove_context/command/delete, task_run list/get/cancel, local_app list/get/create/validate, and settings open." }),
42
+ command: Type.String({ description: "Object command. Scene commands: templates, list, get {id}, mail_accounts, mail_search {accountId, query}, mail_sources, read_notes {id}, preflight/start {templateKey, templateVersion, goal, scope, permissions}, configure {id, expectedRevision, goal, scope, permissions}, transition {id, expectedRevision, status: paused|active|completed|archived}, check {id}, notes {id, expectedRevision, content, validUntil?}, work_item {id, subjectId, accountId, dueAt}, update_work_item {workItemId, expectedRevision, dueAt?, status?}, schedule {id, triggerKey, expectedRevision, schedule}, results {id?}, feedback {presentationId, expectedRevision, rating}, mark_read {presentationId, read}, diagnostics, get_preferences, set_preferences {expectedRevision, ...preferences}. Start and check accept a stable requestId for retries. Scenes prepare read-only suggestions and drafts; never send mail. Only create a scene for work explicitly delegated by the user; inspect existing scenes first. Supports project list/get/create/update/resolve_workspace/list_milestones/create_milestone/update_milestone/list_updates/create_update, automation list/get/create/update/delete/run/pause/resume/history, note list/get/create/append/update/preview_edit/delete, task list/get/create/update_dependencies/add_context/remove_context/command/delete, task_run list/get/cancel, local_app list/get/create/validate, and settings open." }),
43
43
  args: Type.Optional(Type.Record(Type.String(), Type.Any())),
44
44
  dryRun: Type.Optional(Type.Boolean({ description: "Validate and preview the action without mutating xopc state." }))
45
45
  });
@@ -223,6 +223,21 @@ function deliveryForXopcResult(mode, command, result, dryRun) {
223
223
  ]
224
224
  };
225
225
  }
226
+ } else if (mode === "scene") {
227
+ source = record(resultRecord.activation);
228
+ const id = deliveryText(source?.id);
229
+ if (id) primary = {
230
+ kind: "scene",
231
+ id,
232
+ title: deliveryText(source?.goal) ?? "Scene",
233
+ status: deliveryText(source?.status),
234
+ revision: deliveryRevision(source?.revision),
235
+ capabilities: [
236
+ "open",
237
+ "edit",
238
+ "continue_in_chat"
239
+ ]
240
+ };
226
241
  } else if (mode === "note") {
227
242
  source = record(resultRecord.note);
228
243
  const id = deliveryText(source?.id);
@@ -314,7 +329,7 @@ function deliveryForXopcResult(mode, command, result, dryRun) {
314
329
  if (!primary) return void 0;
315
330
  return {
316
331
  version: 1,
317
- operation: mode === "task" && deliveryText(resultRecord.runId) || mode === "automation" && command === "run" ? "started" : command === "create" ? "created" : command === "get" || command === "resolve_workspace" || mode === "settings" ? "opened" : command === "validate" ? "completed" : "updated",
332
+ operation: mode === "task" && deliveryText(resultRecord.runId) || mode === "automation" && command === "run" || mode === "scene" && command === "check" ? "started" : command === "create" || mode === "scene" && command === "start" ? "created" : command === "get" || command === "resolve_workspace" || mode === "settings" ? "opened" : command === "validate" ? "completed" : "updated",
318
333
  primary
319
334
  };
320
335
  }
@@ -1763,7 +1778,7 @@ function createXopcUseTool(deps) {
1763
1778
  return {
1764
1779
  name: "xopc_use",
1765
1780
  label: "XOPC Use",
1766
- description: "Operate first-class xopc objects through one safe entry point. Use for projects, automations, notes, tasks, TaskRuns, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
1781
+ description: "Operate first-class xopc objects through one safe entry point. Use for scenes, projects, automations, notes, tasks, TaskRuns, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
1767
1782
  parameters: XopcUseToolSchema,
1768
1783
  mutatesWorkspace: true,
1769
1784
  mutationScope: "external",
@@ -1839,8 +1854,27 @@ async function handleScene(command, args, deps, dryRun, toolCallId) {
1839
1854
  if (command === "read_notes") return { notes: services.repository.readNotes(principal, activationId) };
1840
1855
  if (command === "mail_sources") return { sources: services.mail.listSources(principal) };
1841
1856
  if (command === "results") return { outcomes: services.repository.listInbox(principal, 50, "", activationId || null) };
1857
+ if (command === "diagnostics") return services.metrics.diagnostics(principal);
1858
+ if (command === "get_preferences") return services.preferences.get(principal);
1842
1859
  if (command === "preflight" || command === "start" && dryRun) return services.application.preflight(principal, input);
1843
1860
  if (dryRun) {
1861
+ if (command === "set_preferences") return {
1862
+ preview: true,
1863
+ command,
1864
+ input: args
1865
+ };
1866
+ if (command === "update_work_item") return {
1867
+ preview: true,
1868
+ command,
1869
+ workItemId: args.workItemId ?? id,
1870
+ input
1871
+ };
1872
+ if (command === "feedback" || command === "mark_read") return {
1873
+ preview: true,
1874
+ command,
1875
+ presentationId: args.presentationId ?? id,
1876
+ input
1877
+ };
1844
1878
  services.repository.getActivation(principal, activationId);
1845
1879
  return {
1846
1880
  preview: true,
@@ -1855,7 +1889,30 @@ async function handleScene(command, args, deps, dryRun, toolCallId) {
1855
1889
  if (command === "check") return { intentId: services.application.check(principal, activationId, request) };
1856
1890
  if (command === "notes") return { revision: services.application.writeNotes(principal, activationId, input) };
1857
1891
  if (command === "work_item") return { workItem: services.application.createWorkItem(principal, activationId, input) };
1892
+ if (command === "update_work_item") {
1893
+ const workItemId = typeof args.workItemId === "string" ? args.workItemId : activationId;
1894
+ const { workItemId: _workItemId, ...workItemInput } = args;
1895
+ return { workItem: services.application.updateWorkItem(principal, workItemId, workItemInput) };
1896
+ }
1858
1897
  if (command === "schedule") return { revision: services.application.setSchedule(principal, activationId, String(triggerKey ?? ""), input) };
1898
+ if (command === "set_preferences") return services.preferences.update(principal, args);
1899
+ if (command === "feedback") {
1900
+ const presentationId = typeof args.presentationId === "string" ? args.presentationId : activationId;
1901
+ if (!presentationId.trim()) throw new Error("presentationId is required");
1902
+ const { presentationId: _presentationId, ...feedbackInput } = args;
1903
+ return { revision: services.inbox.feedback(principal, presentationId, feedbackInput) };
1904
+ }
1905
+ if (command === "mark_read") {
1906
+ const presentationId = typeof args.presentationId === "string" ? args.presentationId : activationId;
1907
+ if (!presentationId.trim()) throw new Error("presentationId is required");
1908
+ if (typeof args.read !== "boolean") throw new Error("read must be a boolean");
1909
+ services.inbox.setRead(principal, presentationId, args.read);
1910
+ return {
1911
+ ok: true,
1912
+ presentationId,
1913
+ read: args.read
1914
+ };
1915
+ }
1859
1916
  throw new Error("Unsupported scene command");
1860
1917
  }
1861
1918
  //#endregion
@@ -1,11 +1,11 @@
1
1
  import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
3
  import { createSqliteTranscriptRuntime } from "../embedded/transcript-runtime.js";
4
+ import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
4
5
  import { createDelegateChildHandle } from "../child-agent-factory.js";
5
6
  import { DELEGATION_TOOL_CAPABILITIES, protectDelegatedTool, resolveDelegationTools } from "../tools/delegation-policy.js";
6
7
  import { DELEGATE_BLOCKED_TOOLS } from "../tools/delegate-tool.js";
7
8
  import { createDelegationParentPolicy } from "../tools/delegation-parent-policy.js";
8
- import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
9
9
  //#region src/agent/workflow/subagent-runner.ts
10
10
  init_logger();
11
11
  const log = createLogger("Agent:WorkflowSubagent");
@@ -1,9 +1,9 @@
1
1
  import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
+ import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
3
4
  import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
4
5
  import { createExtensionAwareStreamFn } from "../providers/extension-stream-bridge.js";
5
6
  import { isLocalModelBaseUrl, resolveModelCallApiKey, resolveModelCallOptions } from "../providers/model-call.js";
6
- import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
7
7
  //#region src/ai-assist/text-assist.ts
8
8
  init_providers();
9
9
  init_logger();
@@ -1,10 +1,10 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
2
  import { createLogger } from "../utils/logger/index.js";
3
3
  import { init_logger } from "../utils/logger.js";
4
- import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
5
4
  import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
6
- import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
5
+ import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
7
6
  import { getApiKeyFromEnv, init_env_keys } from "../providers/env-keys.js";
7
+ import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
8
8
  import { init_oauth_provider_lock, withOAuthProviderLock } from "./oauth-provider-lock.js";
9
9
  import { dirname, join } from "path";
10
10
  import { mkdir, readFile, readdir, rm } from "fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
- import { init_resolution, resolveConnectedPlatformEndpoint } from "../../platform/resolution.js";
3
2
  import { generatePKCE, init_pkce } from "./pkce.js";
3
+ import { init_resolution, resolveConnectedPlatformEndpoint } from "../../platform/resolution.js";
4
4
  import { hostname } from "node:os";
5
5
  import { randomBytes } from "node:crypto";
6
6
  import http from "node:http";
@@ -1,5 +1,5 @@
1
- import { init_paths, resolveCredentialsDir } from "../../config/paths.js";
2
1
  import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
2
+ import { init_paths, resolveCredentialsDir } from "../../config/paths.js";
3
3
  import path from "node:path";
4
4
  import { chmodSync, existsSync, mkdirSync, readFileSync } from "node:fs";
5
5
  //#region src/auth/profiles/store.ts
@@ -1,8 +1,8 @@
1
1
  import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
2
- import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
3
2
  import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveOAuthPath } from "../config/paths.js";
4
- import { init_loader, loadConfig } from "../config/loader.js";
5
3
  import { init_registry, isOAuthOnlyProvider } from "./oauth/registry.js";
4
+ import { init_loader, loadConfig } from "../config/loader.js";
5
+ import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
6
6
  import { existsSync, readFileSync } from "node:fs";
7
7
  //#region src/auth/sync-provider-auth.ts
8
8
  /**
@@ -2,8 +2,8 @@ import { PACKAGE_VERSION, init_package_version } from "../../package-version.js"
2
2
  import { resolveStateDir } from "../../config/paths-state.js";
3
3
  import { createLogger } from "../../utils/logger/index.js";
4
4
  import { init_logger } from "../../utils/logger.js";
5
- import { init_paths, resolveBinDir, resolveConfigPath } from "../../config/paths.js";
6
5
  import { init_write_file_atomic, writeTextAtomic } from "../../infra/write-file-atomic.js";
6
+ import { init_paths, resolveBinDir, resolveConfigPath } from "../../config/paths.js";
7
7
  import { assertCacheDir } from "../cache-dir-policy.js";
8
8
  import { BROWSER_EXTENSION_ID, BROWSER_NATIVE_HOST_NAME } from "../extension-identity.js";
9
9
  import "../native-messaging-host.js";
@@ -1,6 +1,6 @@
1
1
  import { getCliAdapter } from "../connectors/cli/adapterRegistry.js";
2
- import { downloadConnectorStoreZipBuffer, fetchStoreConnectorPackageDetail, listConnectorPackages, resolveSkillsStoreBaseUrl } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
3
2
  import { installConnectorDefinition } from "../connectors/install.js";
3
+ import { downloadConnectorStoreZipBuffer, fetchStoreConnectorPackageDetail, listConnectorPackages, resolveSkillsStoreBaseUrl } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
4
4
  import { createHash } from "node:crypto";
5
5
  import { isIP } from "node:net";
6
6
  import AdmZip from "adm-zip";
@@ -1,9 +1,9 @@
1
1
  import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
- import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
4
- import { transcribe } from "../../voice/stt/transcribe-core.js";
5
3
  import { isSTTAvailable } from "../../voice/stt/availability.js";
4
+ import { transcribe } from "../../voice/stt/transcribe-core.js";
6
5
  import "../../voice/stt/index.js";
6
+ import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
7
7
  //#region src/channels/attachments/voice-stt-webchat.ts
8
8
  init_logger();
9
9
  const STT_MAX_BYTES = 25 * 1024 * 1024;
@@ -1,5 +1,4 @@
1
1
  import { parseFrontmatterBlock } from "../markdown/frontmatter.js";
2
- import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
3
2
  import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
4
3
  import { findFenceSpanAt, isSafeFenceBreak, parseFenceSpans } from "../markdown/fences.js";
5
4
  import { chunkText } from "../markdown/chunk.js";
@@ -9,6 +8,7 @@ import { convertMarkdownTables } from "../markdown/tables.js";
9
8
  import { buildCodeSpanIndex, createInlineCodeState } from "../markdown/code-spans.js";
10
9
  import "./format.js";
11
10
  import { MessagePipeline, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createPipeline, standardPreflightHandlers, standardProcessHandlers } from "./pipeline.js";
11
+ import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
12
12
  import { ChannelManager, createChannelManager } from "./manager.js";
13
13
  import { collectSetupWizardChannels } from "./setup-wizard-discovery.js";
14
14
  export { ChannelManager, MessagePipeline, buildCodeSpanIndex, chunkMarkdownIR, chunkText, collectSetupWizardChannels, compileAllowlist, convertMarkdownTables, createChannelManager, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createInlineCodeState, createPipeline, evaluateAccess, findFenceSpanAt, getChannelPlugin, getChannelRegistryVersion, hasBotMention, isSafeFenceBreak, listChannelPlugins, markdownToIR, markdownToIRWithMeta, parseFenceSpans, parseFrontmatterBlock, removeBotMention, renderMarkdownWithMarkers, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy, standardPreflightHandlers, standardProcessHandlers, syncChannelPluginsFromManager };
@@ -1,13 +1,13 @@
1
1
  import path from "node:path";
2
- import fs from "node:fs";
2
+ import fsSync from "node:fs";
3
3
  //#region src/channels/pairing/allow-from-file.ts
4
4
  function readAllowFromFile(filePath) {
5
5
  try {
6
- if (!fs.existsSync(filePath)) return {
6
+ if (!fsSync.existsSync(filePath)) return {
7
7
  version: 1,
8
8
  allowFrom: []
9
9
  };
10
- const raw = fs.readFileSync(filePath, "utf-8");
10
+ const raw = fsSync.readFileSync(filePath, "utf-8");
11
11
  const parsed = JSON.parse(raw);
12
12
  if (Array.isArray(parsed.allowFrom)) return {
13
13
  version: 1,
@@ -26,13 +26,13 @@ function appendAllowFromIdSync(filePath, userId) {
26
26
  const trimmed = userId.trim();
27
27
  if (!trimmed) return { changed: false };
28
28
  const dir = path.dirname(filePath);
29
- fs.mkdirSync(dir, { recursive: true });
29
+ fsSync.mkdirSync(dir, { recursive: true });
30
30
  const content = readAllowFromFile(filePath);
31
31
  if (content.allowFrom.includes(trimmed)) return { changed: false };
32
32
  content.allowFrom.push(trimmed);
33
- fs.writeFileSync(filePath, JSON.stringify(content, null, 2), "utf-8");
33
+ fsSync.writeFileSync(filePath, JSON.stringify(content, null, 2), "utf-8");
34
34
  try {
35
- fs.chmodSync(filePath, 384);
35
+ fsSync.chmodSync(filePath, 384);
36
36
  } catch {}
37
37
  return { changed: true };
38
38
  }
@@ -43,13 +43,13 @@ function removeAllowFromIdSync(filePath, userId) {
43
43
  const next = content.allowFrom.filter((id) => id !== trimmed);
44
44
  if (next.length === content.allowFrom.length) return { changed: false };
45
45
  const dir = path.dirname(filePath);
46
- fs.mkdirSync(dir, { recursive: true });
47
- fs.writeFileSync(filePath, JSON.stringify({
46
+ fsSync.mkdirSync(dir, { recursive: true });
47
+ fsSync.writeFileSync(filePath, JSON.stringify({
48
48
  version: 1,
49
49
  allowFrom: next
50
50
  }, null, 2), "utf-8");
51
51
  try {
52
- fs.chmodSync(filePath, 384);
52
+ fsSync.chmodSync(filePath, 384);
53
53
  } catch {}
54
54
  return { changed: true };
55
55
  }
@@ -1,7 +1,7 @@
1
1
  import { appendAllowFromIdSync } from "./allow-from-file.js";
2
2
  import "./pairing-constants.js";
3
3
  import path from "node:path";
4
- import fs from "node:fs";
4
+ import fsSync from "node:fs";
5
5
  import crypto from "node:crypto";
6
6
  //#region src/channels/pairing/pairing-store.ts
7
7
  const PAIRING_CODE_LENGTH = 8;
@@ -36,11 +36,11 @@ function requestAccountId(entry) {
36
36
  }
37
37
  function readStore(filePath) {
38
38
  try {
39
- if (!fs.existsSync(filePath)) return {
39
+ if (!fsSync.existsSync(filePath)) return {
40
40
  version: 1,
41
41
  requests: []
42
42
  };
43
- const raw = fs.readFileSync(filePath, "utf-8");
43
+ const raw = fsSync.readFileSync(filePath, "utf-8");
44
44
  const parsed = JSON.parse(raw);
45
45
  if (parsed && Array.isArray(parsed.requests)) return {
46
46
  version: 1,
@@ -54,10 +54,10 @@ function readStore(filePath) {
54
54
  }
55
55
  function writeStore(filePath, store) {
56
56
  const dir = path.dirname(filePath);
57
- fs.mkdirSync(dir, { recursive: true });
58
- fs.writeFileSync(filePath, JSON.stringify(store, null, 2), "utf-8");
57
+ fsSync.mkdirSync(dir, { recursive: true });
58
+ fsSync.writeFileSync(filePath, JSON.stringify(store, null, 2), "utf-8");
59
59
  try {
60
- fs.chmodSync(filePath, 384);
60
+ fsSync.chmodSync(filePath, 384);
61
61
  } catch {}
62
62
  }
63
63
  /**
@@ -1,6 +1,6 @@
1
1
  import { init_agent_scope, normalizeAgentId, resolveAgentProfileDir } from "../agent/agent-scope.js";
2
- import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
3
2
  import { WORKSPACE_FILES, init_paths } from "../config/paths.js";
3
+ import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
4
4
  import { commandRegistry } from "./registry.js";
5
5
  import { join } from "node:path";
6
6
  import { readFile } from "node:fs/promises";
@@ -4,8 +4,8 @@ import { ConfigSchema, init_schema } from "../../config/schema.js";
4
4
  import { init_paths, resolveConfigPath } from "../../config/paths.js";
5
5
  import { init_loader, loadConfig, saveConfig } from "../../config/loader.js";
6
6
  import { commandRegistry } from "../registry.js";
7
- import { parseConfigValue } from "../config-value.js";
8
7
  import { getConfigValueAtPath, parseConfigPath, setConfigValueAtPath, unsetConfigValueAtPath } from "../config-paths.js";
8
+ import { parseConfigValue } from "../config-value.js";
9
9
  import { resolveAllowlistMatchSimple } from "../../channels/security.js";
10
10
  //#region src/chat-commands/builtins/config.ts
11
11
  init_schema();
@@ -1,7 +1,7 @@
1
+ import { commandRegistry } from "../registry.js";
1
2
  import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
2
3
  import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
3
4
  import { getProjectForSession } from "../../projects/workspace.js";
4
- import { commandRegistry } from "../registry.js";
5
5
  import { buildReviewDiffBundle, parseReviewTargetArgs, resolveGitRoot } from "../../review/review-git.js";
6
6
  import { formatReviewMarkdown } from "../../review/review-types.js";
7
7
  import { randomUUID } from "node:crypto";
@@ -1,5 +1,5 @@
1
- import { formatThinkingLevels, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../../agent/transcript/thinking-types.js";
2
1
  import { commandRegistry } from "../registry.js";
2
+ import { formatThinkingLevels, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../../agent/transcript/thinking-types.js";
3
3
  //#region src/chat-commands/builtins/thinking.ts
4
4
  async function setSessionAgentField(store, conversationId, field, value) {
5
5
  if (!store) return;
@@ -1,6 +1,6 @@
1
+ import { commandRegistry } from "../registry.js";
1
2
  import { isTTSAvailable } from "../../voice/tts/factory.js";
2
3
  import { appendTtsReadinessNote, formatTtsSetupHint, mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
3
- import { commandRegistry } from "../registry.js";
4
4
  import { ttsStatusTracker } from "../../voice/tts/status-tracker.js";
5
5
  import "../../voice/tts/index.js";
6
6
  //#region src/chat-commands/builtins/tts.ts
@@ -1,6 +1,6 @@
1
+ import { commandRegistry } from "../registry.js";
1
2
  import { reconcileAssertion } from "../../user-model/repository.js";
2
3
  import "../../user-model/index.js";
3
- import { commandRegistry } from "../registry.js";
4
4
  import { createHash } from "node:crypto";
5
5
  //#region src/chat-commands/builtins/understanding.ts
6
6
  function parseRememberArgs(args) {
@@ -1,7 +1,7 @@
1
- import { extractProfileAgentId } from "../../config/agent-profile.js";
2
- import { createWorkflowCatalog } from "../../agent/workflow/catalog.js";
3
1
  import { commandRegistry } from "../registry.js";
2
+ import { extractProfileAgentId } from "../../config/agent-profile.js";
4
3
  import { bulletList, code, joinBlocks, section } from "../format-output.js";
4
+ import { createWorkflowCatalog } from "../../agent/workflow/catalog.js";
5
5
  //#region src/chat-commands/builtins/workflow.ts
6
6
  /**
7
7
  * `/workflows` and `/workflow <subcommand>` — read-only commands for browsing
@@ -2,10 +2,10 @@ import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
3
  import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
4
4
  import { init_loader, saveConfig } from "../config/loader.js";
5
- import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
6
- import { getProjectForSession } from "../projects/workspace.js";
7
5
  import { getSessionDisplayName } from "./session-key.js";
6
+ import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
8
7
  import { wrapMarkdownExportAsHtml } from "../session/chat-export.js";
8
+ import { getProjectForSession } from "../projects/workspace.js";
9
9
  import { join } from "path";
10
10
  import { mkdir, writeFile } from "fs/promises";
11
11
  //#region src/chat-commands/context.ts
@@ -1,6 +1,8 @@
1
1
  import { normalizeTelegramCommandName, parseSlashCommand } from "./command-parse.js";
2
2
  import { CommandRegistry, commandRegistry } from "./registry.js";
3
+ import { registerAgentEditCommand } from "./agent-edit.js";
3
4
  import { generateConversationId, getSessionDisplayName } from "./session-key.js";
5
+ import { CommandContextImpl, createCommandContext } from "./context.js";
4
6
  import { registerSessionCommands } from "./builtins/session.js";
5
7
  import { registerModelCommands } from "./builtins/model.js";
6
8
  import { registerSystemCommands } from "./builtins/system.js";
@@ -12,8 +14,6 @@ import { registerWorkflowCommands } from "./builtins/workflow.js";
12
14
  import { registerReviewCommand } from "./builtins/review.js";
13
15
  import { registerSkillCommand } from "./builtins/skill.js";
14
16
  import { registerUnderstandingCommands } from "./builtins/understanding.js";
15
- import { registerAgentEditCommand } from "./agent-edit.js";
16
- import { CommandContextImpl, createCommandContext } from "./context.js";
17
17
  //#region src/chat-commands/index.ts
18
18
  /**
19
19
  * Unified Command System
@@ -2,19 +2,19 @@ import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
3
  import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
4
4
  import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
5
- import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
6
5
  import { loadConfig } from "../../config/loader.js";
7
- import { ExtensionLoader } from "../../extensions/loader.js";
8
- import "../../extensions/index.js";
9
- import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
10
- import "../../infra/bus/index.js";
11
- import { AgentService } from "../../agent/service.js";
12
- import "../../agent/index.js";
6
+ import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
13
7
  import { formatExamples, register } from "../registry.js";
14
8
  import { getContextWithOpts } from "../context.js";
9
+ import { MessageBus, MessageBusShutdownError } from "../../infra/bus/queue.js";
10
+ import "../../infra/bus/index.js";
15
11
  import { getWorkspacePath } from "../../config/workspace-path-helpers.js";
16
12
  import "../../config/index.js";
13
+ import { ExtensionLoader } from "../../extensions/loader.js";
14
+ import "../../extensions/index.js";
15
+ import { AgentService } from "../../agent/service.js";
17
16
  import { getXopcCloudCatalogCoordinator } from "../../providers/xopc-cloud-catalog-coordinator.js";
17
+ import "../../agent/index.js";
18
18
  import { listSessions } from "./agent/sessions.js";
19
19
  import { renderStreamToTerminal } from "./agent/stream-renderer.js";
20
20
  import { startInteractiveChat } from "./agent/interactive.js";
@@ -1,8 +1,8 @@
1
1
  import { init_agent_scope, listAgentEntries, normalizeAgentId, resolveAgentDir, resolveAgentProfileDir, resolveAgentWorkspaceDir, resolveDefaultAgentId, validateAgentIdForNewAgent } from "../../agent/agent-scope.js";
2
2
  import { init_paths, resolveConfigPath } from "../../config/paths.js";
3
3
  import { init_loader, loadConfig, saveConfig } from "../../config/loader.js";
4
- import { seedAgentProfileMarkdownFiles } from "../../agent/context/workspace-seed.js";
5
4
  import { applyAgentConfig, findAgentEntryIndex, getAgentDeleteBlocker, pruneAgentConfig, removeAgentDirsFromDisk } from "../../commands/agents.config.js";
5
+ import { seedAgentProfileMarkdownFiles } from "../../agent/context/workspace-seed.js";
6
6
  import { colors } from "../utils/colors.js";
7
7
  import { mkdir } from "node:fs/promises";
8
8
  //#region src/cli/commands/agents.ts
@@ -1,6 +1,6 @@
1
1
  import { ConfigSchema, init_schema } from "../../config/schema.js";
2
- import { resolveGatewayLocalClientHost } from "../../config/gateway-bind.js";
3
2
  import { formatExamples, register } from "../registry.js";
3
+ import { resolveGatewayLocalClientHost } from "../../config/gateway-bind.js";
4
4
  import { existsSync, readFileSync } from "fs";
5
5
  import { Command } from "commander";
6
6
  //#region src/cli/commands/config.ts
@@ -1,9 +1,9 @@
1
1
  import { getAgentDefaultModelRef, init_schema, parseModelRef } from "../../../../config/schema.js";
2
- import { getDefaultAgentId, init_resolve_route } from "../../../../routing/resolve-route.js";
3
- import { init_loader, loadConfig } from "../../../../config/loader.js";
4
- import { getModelOAuthProviderIds, init_registry } from "../../../../auth/oauth/registry.js";
5
2
  import { PROVIDER_ENV_MAP, init_env_keys } from "../../../../providers/env-keys.js";
3
+ import { getModelOAuthProviderIds, init_registry } from "../../../../auth/oauth/registry.js";
6
4
  import { CredentialResolver, init_credentials } from "../../../../auth/credentials.js";
5
+ import { init_loader, loadConfig } from "../../../../config/loader.js";
6
+ import { getDefaultAgentId, init_resolve_route } from "../../../../routing/resolve-route.js";
7
7
  import { existsSync } from "node:fs";
8
8
  //#region src/cli/commands/doctor/checks/provider-auth.ts
9
9
  init_credentials();
@@ -4,8 +4,8 @@ import { init_logger } from "../../utils/logger.js";
4
4
  import { init_paths, resolveConfigPath, resolveExtensionsDir } from "../../config/paths.js";
5
5
  import { init_normalize_manifest, normalizeExtensionManifest } from "../../extensions/normalize-manifest.js";
6
6
  import { init_loader, loadConfig } from "../../config/loader.js";
7
- import { checkEngineCompatibility } from "../../extensions/engine-check.js";
8
7
  import { getContextWithOpts } from "../context.js";
8
+ import { checkEngineCompatibility } from "../../extensions/engine-check.js";
9
9
  import { GatewayServer } from "../../gateway/server.js";
10
10
  import { runGatewayLoop } from "../../gateway/run-loop.js";
11
11
  import "../../gateway/index.js";
@@ -3,9 +3,9 @@ import { createLogger } from "../../utils/logger/index.js";
3
3
  import { init_logger } from "../../utils/logger.js";
4
4
  import { init_paths, resolveExtensionsDir } from "../../config/paths.js";
5
5
  import { init_loader, loadConfig, saveConfig } from "../../config/loader.js";
6
+ import { getContextWithOpts } from "../context.js";
6
7
  import { checkEngineCompatibility } from "../../extensions/engine-check.js";
7
8
  import { ExtensionLoader } from "../../extensions/loader.js";
8
- import { getContextWithOpts } from "../context.js";
9
9
  import { computeExtensionDirectoryIntegrity, getExtensionLockfileManager } from "../../extensions/lockfile.js";
10
10
  import { checkAllExtensionsHealth, getExtensionHealthChecker } from "../../extensions/health.js";
11
11
  import { collectExtensionPackageDependencyIssues } from "../../extensions/package-contract.js";
@@ -1,7 +1,7 @@
1
1
  import { init_paths, resolveConfigPath } from "../../../config/paths.js";
2
2
  import { loadConfig } from "../../../config/loader.js";
3
- import { resolveGatewayLaunchAgentLabel, resolveGatewaySystemdServiceName, resolveGatewayWindowsTaskName } from "../../../daemon/constants.js";
4
3
  import "../../../config/index.js";
4
+ import { resolveGatewayLaunchAgentLabel, resolveGatewaySystemdServiceName, resolveGatewayWindowsTaskName } from "../../../daemon/constants.js";
5
5
  //#region src/cli/commands/gateway/shared.ts
6
6
  init_paths();
7
7
  function parsePortFromArgs(programArguments) {
@@ -1,7 +1,7 @@
1
1
  import { init_paths, resolveConfigPath } from "../../../config/paths.js";
2
2
  import { getContextWithOpts } from "../../context.js";
3
- import crypto from "crypto";
4
3
  import { Command } from "commander";
4
+ import crypto from "crypto";
5
5
  //#region src/cli/commands/gateway/token.ts
6
6
  init_paths();
7
7
  async function readInstalledServiceToken() {
@@ -1,5 +1,5 @@
1
- import { listImageGenerationProvidersSummary } from "../../agent/image/generation/runtime.js";
2
1
  import { formatExamples, register } from "../registry.js";
2
+ import { listImageGenerationProvidersSummary } from "../../agent/image/generation/runtime.js";
3
3
  import "../../agent/image/index.js";
4
4
  import { Command } from "commander";
5
5
  //#region src/cli/commands/image.ts
@@ -4,8 +4,8 @@ import { init_logger } from "../../utils/logger.js";
4
4
  import { resolveAgentWorkspaceDir } from "../../agent/agent-scope.js";
5
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
- import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
8
7
  import { formatExamples, register } from "../registry.js";
8
+ import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
9
9
  import { join } from "path";
10
10
  import { existsSync, readFileSync } from "fs";
11
11
  import { mkdir, writeFile } from "fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
2
- import { loadConfig, saveConfig } from "../../config/loader.js";
3
2
  import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
3
+ import { loadConfig, saveConfig } from "../../config/loader.js";
4
4
  import { getAllModels, getAvailableModels, getConfiguredProviders, getProviderAuthState, getProviderDisplayName, init_providers, isProviderConfigured, providerSupportsApiKey, providerSupportsOAuth, resolveModel } from "../../providers/index.js";
5
5
  import { formatExamples, register } from "../registry.js";
6
6
  import { getContextWithOpts } from "../context.js";