@xopcai/xopc 0.0.419 → 0.0.421

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 (610) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
  3. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  4. package/dist/extensions/telegram/src/inbound-processor.js +2 -2
  5. package/dist/extensions/telegram/src/outbound-sender.js +1 -1
  6. package/dist/extensions/telegram/src/plugin.js +2 -2
  7. package/dist/extensions/telegram/xopc.extension.json +1 -1
  8. package/dist/extensions/weixin/src/api/api.js +2 -2
  9. package/dist/extensions/weixin/src/auth/accounts.js +12 -12
  10. package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
  11. package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
  12. package/dist/gateway/static/root/assets/{activity-store-DnqOM8GN.js → activity-store-CKrylgib.js} +1 -1
  13. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-1UABT2KS.js → agent-avatar-dicebear-Dv5Rda4y.js} +1 -1
  14. package/dist/gateway/static/root/assets/agent-avatar-display-B1ycycx2.js +2 -0
  15. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-D285zy0S.js +1 -0
  16. package/dist/gateway/static/root/assets/agent-plugin-dialog-D3yCqVan.js +1 -0
  17. package/dist/gateway/static/root/assets/{agents-O7mago-m.js → agents-DyAuR3rG.js} +5 -5
  18. package/dist/gateway/static/root/assets/{agents-admin-api-CyjykMEh.js → agents-admin-api-CASGzvkW.js} +1 -1
  19. package/dist/gateway/static/root/assets/{api-C1dxxDZx.js → api-C4LxuNzq.js} +1 -1
  20. package/dist/gateway/static/root/assets/{api-Ddrs70xV.js → api-Uk05lF9i.js} +1 -1
  21. package/dist/gateway/static/root/assets/app-management-settings-panel-CDnZNKHt.js +1 -0
  22. package/dist/gateway/static/root/assets/appearance-settings-CmCF7PZ5.js +1 -0
  23. package/dist/gateway/static/root/assets/apps-page-BR9qoA2P.js +1 -0
  24. package/dist/gateway/static/root/assets/{archive-plugin-n5lPr79c.js → archive-plugin-nuHYYVty.js} +1 -1
  25. package/dist/gateway/static/root/assets/automation-api-DtJfd1QM.js +1 -0
  26. package/dist/gateway/static/root/assets/automation-display-BlGt8MAC.js +2 -0
  27. package/dist/gateway/static/root/assets/automation-task-card-Cp3RIw5d.js +2 -0
  28. package/dist/gateway/static/root/assets/{automations-page-oLsNzu_6.js → automations-page-DM4IdUJh.js} +1 -1
  29. package/dist/gateway/static/root/assets/automations-workspace-CXLu04I-.js +9 -0
  30. package/dist/gateway/static/root/assets/{binary-plugins-D9VW7dWP.js → binary-plugins-CHCAr8jt.js} +1 -1
  31. package/dist/gateway/static/root/assets/{block-editor-C477bTtO.js → block-editor-B0v8KxsO.js} +4 -4
  32. package/dist/gateway/static/root/assets/{browser-automation-inputs-CCiYXxmh.js → browser-automation-inputs-DjUW7PEB.js} +1 -1
  33. package/dist/gateway/static/root/assets/browser-automations-page-Cf8AoQz1.js +3 -0
  34. package/dist/gateway/static/root/assets/{browser-control-api-Y3fvmeBk.js → browser-control-api-C6NZgaA1.js} +1 -1
  35. package/dist/gateway/static/root/assets/{browser-settings-page-DjkGahlz.js → browser-settings-page-DV2FNEDf.js} +2 -2
  36. package/dist/gateway/static/root/assets/{capabilities-DAyA681v.js → capabilities-CwdjWz2r.js} +1 -1
  37. package/dist/gateway/static/root/assets/{capabilities-DRVXLssH.js → capabilities-D0-HCZ5J.js} +1 -1
  38. package/dist/gateway/static/root/assets/capabilities-page-DwDkritH.js +2 -0
  39. package/dist/gateway/static/root/assets/capabilities-settings-panel-mme16Fbp.js +8 -0
  40. package/dist/gateway/static/root/assets/channels-lKFLu8p-.js +1 -0
  41. package/dist/gateway/static/root/assets/{chat-agents-api-D5nR_JVe.js → chat-agents-api-l80cvSac.js} +1 -1
  42. package/dist/gateway/static/root/assets/{chat-chart-block-K2t333qv.js → chat-chart-block-BwP5QXEk.js} +1 -1
  43. package/dist/gateway/static/root/assets/chat-page-CT3K7lFT.js +71 -0
  44. package/dist/gateway/static/root/assets/{chat-terminal-dock-CkFG6mA3.js → chat-terminal-dock-D2bV9YUL.js} +2 -2
  45. package/dist/gateway/static/root/assets/{list-filter-COkzTdOz.js → clipboard-copy-DuJk5WD6.js} +1 -1
  46. package/dist/gateway/static/root/assets/{command-palette-api-Do_66X1B.js → command-palette-api-CtapG8ck.js} +1 -1
  47. package/dist/gateway/static/root/assets/composer-payload-handoff-DYuhKZRC.js +1 -0
  48. package/dist/gateway/static/root/assets/{computer-settings-page-DBxOcMko.js → computer-settings-page-DZtMuihL.js} +1 -1
  49. package/dist/gateway/static/root/assets/connected-providers-grid-BQH5k3iC.js +1 -0
  50. package/dist/gateway/static/root/assets/{connector-service-page-rWpnchb3.js → connector-service-page-DrvFdP3G.js} +1 -1
  51. package/dist/gateway/static/root/assets/{connectors-api-DIBG72k4.js → connectors-api-BzkgVBYC.js} +1 -1
  52. package/dist/gateway/static/root/assets/connectors-page-BtRNVCFy.js +1 -0
  53. package/dist/gateway/static/root/assets/{date-picker-CE-cZFCU.js → date-picker-ByTasrfl.js} +1 -1
  54. package/dist/gateway/static/root/assets/{dependency-picker-7SpSfDSg.js → dependency-picker-Dh8hPmsT.js} +1 -1
  55. package/dist/gateway/static/root/assets/desktop-pet-CFz8bqyI.js +1 -0
  56. package/dist/gateway/static/root/assets/desktop-pet-settings-COaboNn1.js +1 -0
  57. package/dist/gateway/static/root/assets/{dev-view-store-57HgVuZ6.js → dev-view-store-D8XYHVqG.js} +1 -1
  58. package/dist/gateway/static/root/assets/device-pairing-wizard-BKMpLdIA.js +1 -0
  59. package/dist/gateway/static/root/assets/{directory-picker-path-field-D4jMhpka.js → directory-picker-path-field-Cjv7rdo3.js} +1 -1
  60. package/dist/gateway/static/root/assets/discussion-annotation-sync-YvlVw17j.js +1 -0
  61. package/dist/gateway/static/root/assets/{dist-DNCdG_qB.js → dist-D3lWNSe7.js} +1 -1
  62. package/dist/gateway/static/root/assets/{extension-debug-page-BsK2LMXQ.js → extension-debug-page-CXx3m5-B.js} +1 -1
  63. package/dist/gateway/static/root/assets/extension-iframe-host-CnOdNwbo.js +1 -0
  64. package/dist/gateway/static/root/assets/{extension-marketplace-api-CVJPqJOB.js → extension-marketplace-api-BABmUY2s.js} +1 -1
  65. package/dist/gateway/static/root/assets/extension-page-C1nGr4DD.js +1 -0
  66. package/dist/gateway/static/root/assets/{extension-provider-Byrd8Sor.js → extension-provider-BA0Y2Rvs.js} +1 -1
  67. package/dist/gateway/static/root/assets/extension-settings-page-QIPI8e7k.js +1 -0
  68. package/dist/gateway/static/root/assets/{file-preview-surface-BlprUrIs.js → file-preview-surface-BsB7bnFH.js} +1 -1
  69. package/dist/gateway/static/root/assets/{gateway-config-swr-BAmUhiP1.js → gateway-config-swr-Bt8w0Iio.js} +1 -1
  70. package/dist/gateway/static/root/assets/{gateway-realtime-CsykKL4l.js → gateway-realtime-CyCCNUxm.js} +1 -1
  71. package/dist/gateway/static/root/assets/gateway-realtime-store-0gmDfPeP.js +1 -0
  72. package/dist/gateway/static/root/assets/gateway-restart-Ty4AzDxa.js +1 -0
  73. package/dist/gateway/static/root/assets/{gateway-settings-BA5-Uuwx.js → gateway-settings-BvKq7vuz.js} +1 -1
  74. package/dist/gateway/static/root/assets/{gateway-startup-retry-CtUB3g6N.js → gateway-startup-retry-N3k-C7c2.js} +1 -1
  75. package/dist/gateway/static/root/assets/{global-defaults-api-CINf-C6a.js → global-defaults-api-D8EB2vfY.js} +1 -1
  76. package/dist/gateway/static/root/assets/home-page-eRuAzi58.js +2 -0
  77. package/dist/gateway/static/root/assets/image-generation-api-C99Fsofm.js +1 -0
  78. package/dist/gateway/static/root/assets/{imports-page-BWShtGRQ.js → imports-page-Cp9RquVb.js} +1 -1
  79. package/dist/gateway/static/root/assets/index-6vVrWfwM.js +11 -0
  80. package/dist/gateway/static/root/assets/index-DDGK6klk.css +1 -0
  81. package/dist/gateway/static/root/assets/install-connector-dialog-CsoAidXp.js +1 -0
  82. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CdM4BQwp.js → keyboard-shortcuts-settings-DFhOP2aD.js} +1 -1
  83. package/dist/gateway/static/root/assets/list-filter-CIPvpfLA.js +1 -0
  84. package/dist/gateway/static/root/assets/local-app-workbench-page-DbtU_A-l.js +1 -0
  85. package/dist/gateway/static/root/assets/{local-apps-page-CxyRVfjD.js → local-apps-page-rjhHfLpe.js} +1 -1
  86. package/dist/gateway/static/root/assets/{local-session-drafts-B9ZPwotC.js → local-session-drafts-DHM4vWDO.js} +1 -1
  87. package/dist/gateway/static/root/assets/{locale-store-lIXD1FMw.js → locale-store-5Hf8J8-_.js} +1 -1
  88. package/dist/gateway/static/root/assets/logs-page-Dx_JIOpF.js +2 -0
  89. package/dist/gateway/static/root/assets/management-settings-CuSzixOw.js +1 -0
  90. package/dist/gateway/static/root/assets/{markdown-view-CJt-i2Dp.js → markdown-view-pzSRu7av.js} +3 -3
  91. package/dist/gateway/static/root/assets/{media-plugins-D_bR23mA.js → media-plugins-3cJuHbO7.js} +1 -1
  92. package/dist/gateway/static/root/assets/messages-uXxg5p54.js +3 -0
  93. package/dist/gateway/static/root/assets/model-selector-ksLo-5B_.js +1 -0
  94. package/dist/gateway/static/root/assets/{models-hub-cache-za2fWJLg.js → models-hub-cache-DhZng2nF.js} +1 -1
  95. package/dist/gateway/static/root/assets/navigation-D62kPsA9.js +1 -0
  96. package/dist/gateway/static/root/assets/note-detail-panel-B6RbjwJq.js +5 -0
  97. package/dist/gateway/static/root/assets/note-image-lightbox-BCjvBqwy.js +1 -0
  98. package/dist/gateway/static/root/assets/{notes-api-C_458rv5.js → notes-api-DocbsBbT.js} +1 -1
  99. package/dist/gateway/static/root/assets/notes-page-B7889s6-.js +8 -0
  100. package/dist/gateway/static/root/assets/{oauth-api-C3X9FLYw.js → oauth-api-CCFIPbA0.js} +1 -1
  101. package/dist/gateway/static/root/assets/{oauth-provider-connect-H81se_3n.js → oauth-provider-connect-GxkF0vWJ.js} +1 -1
  102. package/dist/gateway/static/root/assets/open-capability-settings-Cvb65hQB.js +1 -0
  103. package/dist/gateway/static/root/assets/{page-context-capture-button-BkAlQ7cB.js → page-context-capture-button-CvWLVeRA.js} +1 -1
  104. package/dist/gateway/static/root/assets/{page-context-draft-ClLgaOaD.js → page-context-draft-CMRDNv4d.js} +1 -1
  105. package/dist/gateway/static/root/assets/page-header-store-reh1es-3.js +1 -0
  106. package/dist/gateway/static/root/assets/{personal-avatar-BLtHt8fV.js → personal-avatar-CqNJ48Ge.js} +1 -1
  107. package/dist/gateway/static/root/assets/personal-page-D95FHaw9.js +1 -0
  108. package/dist/gateway/static/root/assets/personal-settings-panel-DAcl8DU4.js +1 -0
  109. package/dist/gateway/static/root/assets/{phone-dependencies-card-DISHarj8.js → phone-dependencies-card-DLWblGj7.js} +1 -1
  110. package/dist/gateway/static/root/assets/phone-model-picker-ugrT9GJu.js +1 -0
  111. package/dist/gateway/static/root/assets/phone-settings-page-DIIt7JOE.js +1 -0
  112. package/dist/gateway/static/root/assets/{phone-workspace-store-fhnZrgy_.js → phone-workspace-store-mawKT5kV.js} +1 -1
  113. package/dist/gateway/static/root/assets/plugin-details-dialog-BdueMT3q.js +1 -0
  114. package/dist/gateway/static/root/assets/popover-select-DD8fmrxH.js +1 -0
  115. package/dist/gateway/static/root/assets/preference-select-fields-CmLZNwbm.js +1 -0
  116. package/dist/gateway/static/root/assets/product-automation-feedback-DYwhL37Y.js +7 -0
  117. package/dist/gateway/static/root/assets/{product-open-page-xn9G4hSI.js → product-open-page-B5G4X71t.js} +1 -1
  118. package/dist/gateway/static/root/assets/{product-preview-content-DcoK-iZe.js → product-preview-content-BUheyLqt.js} +1 -1
  119. package/dist/gateway/static/root/assets/{product-preview-modal-Ruw9WSKK.js → product-preview-modal-Cj_Zxu4G.js} +2 -2
  120. package/dist/gateway/static/root/assets/project-detail-page-CRJb69vP.js +7 -0
  121. package/dist/gateway/static/root/assets/project-understanding-D3w8cZEm.js +1 -0
  122. package/dist/gateway/static/root/assets/projects-page-CkifzKjz.js +1 -0
  123. package/dist/gateway/static/root/assets/{providers-api-CzVkFKFg.js → providers-api-CKFg2PZQ.js} +1 -1
  124. package/dist/gateway/static/root/assets/{recording-upload-0jxahBMo.js → recording-upload-ZkmRf0GR.js} +1 -1
  125. package/dist/gateway/static/root/assets/{registry-api-n8TwtJ_j.js → registry-api-B1Mh3bNo.js} +1 -1
  126. package/dist/gateway/static/root/assets/{remote-access-hub-cZpBi4Rk.js → remote-access-hub-Dw5rG-aA.js} +1 -1
  127. package/dist/gateway/static/root/assets/resource-unavailable-BUWsH3fp.js +1 -0
  128. package/dist/gateway/static/root/assets/route-preload-CRKbVwQ1.js +2 -0
  129. package/dist/gateway/static/root/assets/runtime-impact-DbySfhdp.js +1 -0
  130. package/dist/gateway/static/root/assets/{runtime-tools-api-D-8KjYK6.js → runtime-tools-api-BXvn5ImA.js} +1 -1
  131. package/dist/gateway/static/root/assets/runtime-tools-settings-panel-BALcypHp.js +1 -0
  132. package/dist/gateway/static/root/assets/schema-form-BKeP5G7b.js +1 -0
  133. package/dist/gateway/static/root/assets/service-recommendation-list-CpVUnz89.js +1 -0
  134. package/dist/gateway/static/root/assets/{session-api-CsCoI2im.js → session-api-VquhIBHI.js} +1 -1
  135. package/dist/gateway/static/root/assets/session-manager-DNMosCtW.js +23 -0
  136. package/dist/gateway/static/root/assets/sessions-page-DlvPkE5Y.js +1 -0
  137. package/dist/gateway/static/root/assets/settings-advanced-gate-Ckc1aCLG.js +1 -0
  138. package/dist/gateway/static/root/assets/{settings-advanced-section-BqoVSko2.js → settings-advanced-section-c9_iZ-46.js} +1 -1
  139. package/dist/gateway/static/root/assets/{settings-mode-store-CBsJ-Qg2.js → settings-mode-store-Dem6-TBe.js} +1 -1
  140. package/dist/gateway/static/root/assets/{settings-page-DROUGyJl.js → settings-page-B_wNfFQe.js} +1 -1
  141. package/dist/gateway/static/root/assets/{settings-page-header-Bv-kQFTm.js → settings-page-header-C8a_oOyw.js} +1 -1
  142. package/dist/gateway/static/root/assets/{settings-page-layout-DHP6MrrL.js → settings-page-layout-CTSRWljG.js} +1 -1
  143. package/dist/gateway/static/root/assets/setup-status-panel-BNZoqF40.js +1 -0
  144. package/dist/gateway/static/root/assets/{share-link-dialog-BJHRQVKC.js → share-link-dialog-C5JTTxsy.js} +1 -1
  145. package/dist/gateway/static/root/assets/share-preview-page-D-KxzXgm.js +2 -0
  146. package/dist/gateway/static/root/assets/{shares-api-rtWVHA_d.js → shares-api-CztKbxdd.js} +1 -1
  147. package/dist/gateway/static/root/assets/shares-settings-CzR21j6e.js +1 -0
  148. package/dist/gateway/static/root/assets/skill-api-B7kWl6LK.js +1 -0
  149. package/dist/gateway/static/root/assets/{skill-list-api-BzlKXPsE.js → skill-list-api-Cn07P6qZ.js} +1 -1
  150. package/dist/gateway/static/root/assets/{skill-reload-api-Cff2GgZb.js → skill-reload-api-Bhl0u16_.js} +1 -1
  151. package/dist/gateway/static/root/assets/skills-page-BmkuxHZe.js +2 -0
  152. package/dist/gateway/static/root/assets/{system-settings-panel-BeQeUUMH.js → system-settings-panel-Ce6zIcki.js} +1 -1
  153. package/dist/gateway/static/root/assets/task-detail-page-CysJhG3B.js +2 -0
  154. package/dist/gateway/static/root/assets/task-result-evidence-CGZKMnNo.js +1 -0
  155. package/dist/gateway/static/root/assets/{terminal-panel-store-5Fzctajw.js → terminal-panel-store-YwLUkuyV.js} +1 -1
  156. package/dist/gateway/static/root/assets/{theme-store-DW45fWYQ.js → theme-store-DOJ9tu-j.js} +1 -1
  157. package/dist/gateway/static/root/assets/tracing-settings-page-BplBpTdL.js +1 -0
  158. package/dist/gateway/static/root/assets/tunnel-api-B5-Ypvqa.js +1 -0
  159. package/dist/gateway/static/root/assets/{understanding-activity-store-CTe6TFB0.js → understanding-activity-store-CmwtE8Kd.js} +1 -1
  160. package/dist/gateway/static/root/assets/{understanding-refresh-store-mE9OKG6q.js → understanding-refresh-store-9apSmAVL.js} +1 -1
  161. package/dist/gateway/static/root/assets/usage-page-cPbirpXX.js +1 -0
  162. package/dist/gateway/static/root/assets/{use-autosave-Cs2Ga_Y_.js → use-autosave-B3p2QWaF.js} +1 -1
  163. package/dist/gateway/static/root/assets/use-composer-attachments-D-AEYC85.js +2 -0
  164. package/dist/gateway/static/root/assets/use-file-preview-expanded-CO4SC-LX.js +2 -0
  165. package/dist/gateway/static/root/assets/{use-personal-profile-BHL2AxWU.js → use-personal-profile-DocmhC9I.js} +1 -1
  166. package/dist/gateway/static/root/assets/{use-workspace-tree-CnmPZrpx.js → use-workspace-tree-VraTGKx-.js} +1 -1
  167. package/dist/gateway/static/root/assets/user-model-page-DuRALzhe.js +2 -0
  168. package/dist/gateway/static/root/assets/{voice-api-key-field-3gyc2UV3.js → voice-api-key-field-DbSQHZZW.js} +1 -1
  169. package/dist/gateway/static/root/assets/{voice-config-api-Cda2uBIC.js → voice-config-api-D9iNJSvm.js} +1 -1
  170. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-DtYHsPLF.js → voice-input-shortcut-events-hso9_VvT.js} +1 -1
  171. package/dist/gateway/static/root/assets/voice-transcribe-api-BqIs0jgv.js +1 -0
  172. package/dist/gateway/static/root/assets/{work-discovery-overlay-Dqu5CQCS.js → work-discovery-overlay-fsL9RJqB.js} +1 -1
  173. package/dist/gateway/static/root/assets/work-discovery-page-DAQPKVDs.js +1 -0
  174. package/dist/gateway/static/root/assets/{working-directory-picker-modal-DHl2cZY1.js → working-directory-picker-modal-Ta73QrNw.js} +1 -1
  175. package/dist/gateway/static/root/assets/{workspace-api-CtDbI6T7.js → workspace-api-CgrcNyBc.js} +2 -2
  176. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Dw6wtadX.js +1 -0
  177. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-CTIbUfKb.js → workspace-file-preview-dialog-B7uBuPtA.js} +1 -1
  178. package/dist/gateway/static/root/assets/{workspace-open-location-menu-BwxouqdZ.js → workspace-open-location-menu-Bi2vRvaQ.js} +1 -1
  179. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-CFb-23rS.js → xopc-cloud-account-card-CCOOBG-7.js} +1 -1
  180. package/dist/gateway/static/root/index.html +86 -81
  181. package/dist/package.js +1 -1
  182. package/dist/packages/gateway-contract/src/index.js +2 -0
  183. package/dist/packages/gateway-contract/src/task-display.js +14 -0
  184. package/dist/src/agent/agent-manager.js +18 -18
  185. package/dist/src/agent/agent-scope.js +2 -2
  186. package/dist/src/agent/background-review/prompts.js +1 -1
  187. package/dist/src/agent/background-review/run-background-review.js +13 -13
  188. package/dist/src/agent/child-agent-factory.js +2 -2
  189. package/dist/src/agent/coding/repository-instructions.js +1 -1
  190. package/dist/src/agent/context/coordinator.js +2 -2
  191. package/dist/src/agent/context/execution-context.js +4 -4
  192. package/dist/src/agent/context/execution-scope.js +10 -5
  193. package/dist/src/agent/context/project-context.js +3 -3
  194. package/dist/src/agent/data-acquisition/service.js +1 -1
  195. package/dist/src/agent/embedded/codemode-extension.js +1 -1
  196. package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
  197. package/dist/src/agent/embedded/external-tool-discovery.js +1 -1
  198. package/dist/src/agent/embedded/run-for-session.js +5 -5
  199. package/dist/src/agent/embedded/run-turn.js +15 -15
  200. package/dist/src/agent/embedded/session-runner.js +4 -4
  201. package/dist/src/agent/embedded/session-tool-result-guard.js +2 -2
  202. package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
  203. package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
  204. package/dist/src/agent/external-tools/cliProvider.js +4 -4
  205. package/dist/src/agent/external-tools/composio-provider.js +4 -4
  206. package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
  207. package/dist/src/agent/external-tools/extension-provider.js +1 -1
  208. package/dist/src/agent/external-tools/gateway-tools.js +3 -3
  209. package/dist/src/agent/external-tools/memory-provider.js +1 -1
  210. package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
  211. package/dist/src/agent/image/generation/runtime.js +1 -1
  212. package/dist/src/agent/image/index.js +1 -1
  213. package/dist/src/agent/image/load-image-media.js +1 -1
  214. package/dist/src/agent/inbound/attachment-pipeline.js +3 -3
  215. package/dist/src/agent/inbound/inbound-loop.js +2 -2
  216. package/dist/src/agent/independent-execution.js +1 -1
  217. package/dist/src/agent/index.js +3 -3
  218. package/dist/src/agent/mcp/connection-drafts.js +1 -1
  219. package/dist/src/agent/memory/context-budget.js +1 -1
  220. package/dist/src/agent/memory/context-recovery.js +1 -1
  221. package/dist/src/agent/memory/index.js +1 -1
  222. package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
  223. package/dist/src/agent/prompt/response-language.js +1 -1
  224. package/dist/src/agent/prompt/service-prompt-builder.js +4 -4
  225. package/dist/src/agent/prompt/system-prompt-params.js +1 -1
  226. package/dist/src/agent/sandbox/exec-policy.js +1 -1
  227. package/dist/src/agent/service/direct-turn-helpers.js +4 -4
  228. package/dist/src/agent/service/process-direct-streaming.js +7 -7
  229. package/dist/src/agent/service/webchat-tts.js +2 -2
  230. package/dist/src/agent/service.js +23 -23
  231. package/dist/src/agent/session/session-config-service.js +2 -2
  232. package/dist/src/agent/session/session-hydrator.js +1 -1
  233. package/dist/src/agent/session/session-inspector.js +1 -1
  234. package/dist/src/agent/skills/filesystem-watcher.js +1 -1
  235. package/dist/src/agent/skills/hub-lock.js +1 -1
  236. package/dist/src/agent/skills/hub-pull.js +2 -2
  237. package/dist/src/agent/skills/index.js +1 -1
  238. package/dist/src/agent/skills/managed-store.js +1 -1
  239. package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
  240. package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
  241. package/dist/src/agent/skills/skill-manage-ops.js +1 -1
  242. package/dist/src/agent/skills/skill-manager.js +1 -1
  243. package/dist/src/agent/skills/skill-sources.js +1 -1
  244. package/dist/src/agent/source-context/index.js +1 -1
  245. package/dist/src/agent/tasks/task-judge-service.js +8 -8
  246. package/dist/src/agent/tools/automation-tool.d.ts +2 -1
  247. package/dist/src/agent/tools/automation-tool.js +10 -3
  248. package/dist/src/agent/tools/create-share-tool.js +3 -3
  249. package/dist/src/agent/tools/dataBatch.js +1 -1
  250. package/dist/src/agent/tools/delegate-tool.js +3 -3
  251. package/dist/src/agent/tools/exec-command.js +1 -1
  252. package/dist/src/agent/tools/executor.js +1 -1
  253. package/dist/src/agent/tools/factory.js +19 -18
  254. package/dist/src/agent/tools/fetch-text.js +1 -1
  255. package/dist/src/agent/tools/image-generate-tool.js +3 -3
  256. package/dist/src/agent/tools/index.js +5 -5
  257. package/dist/src/agent/tools/list-dir.js +1 -1
  258. package/dist/src/agent/tools/personal-attention-tool.js +2 -2
  259. package/dist/src/agent/tools/personal-read-tool.js +2 -2
  260. package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
  261. package/dist/src/agent/tools/personal-request-tool.js +4 -4
  262. package/dist/src/agent/tools/personal-result-tool.js +1 -1
  263. package/dist/src/agent/tools/personal-task-tool.js +7 -6
  264. package/dist/src/agent/tools/publish-artifacts.js +2 -2
  265. package/dist/src/agent/tools/read.js +2 -2
  266. package/dist/src/agent/tools/review-workspace.js +1 -1
  267. package/dist/src/agent/tools/send-media.js +1 -1
  268. package/dist/src/agent/tools/session-search-tool.js +1 -1
  269. package/dist/src/agent/tools/skills-tools.js +1 -1
  270. package/dist/src/agent/tools/task-collaboration-tool.js +2 -2
  271. package/dist/src/agent/tools/tts-tool.js +1 -1
  272. package/dist/src/agent/tools/user-context-tool.js +2 -2
  273. package/dist/src/agent/tools/web.js +1 -1
  274. package/dist/src/agent/tools/write.js +2 -2
  275. package/dist/src/agent/tools/xopc-use-tool.js +12 -10
  276. package/dist/src/agent/transcript/index.js +2 -2
  277. package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
  278. package/dist/src/agent-catalog/capabilities.js +2 -2
  279. package/dist/src/agent-catalog/repository.js +1 -1
  280. package/dist/src/agent-matching/delegation-service.js +1 -1
  281. package/dist/src/ai-assist/text-assist.js +1 -1
  282. package/dist/src/auth/credentials.js +1 -1
  283. package/dist/src/auth/oauth/openai.js +1 -1
  284. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  285. package/dist/src/auth/profiles/store.js +1 -1
  286. package/dist/src/automations/api/routes.js +38 -0
  287. package/dist/src/automations/capabilities/drafts.js +1 -1
  288. package/dist/src/automations/capabilities/write.js +25 -9
  289. package/dist/src/automations/configuration-conversation.d.ts +16 -0
  290. package/dist/src/automations/configuration-conversation.js +120 -0
  291. package/dist/src/automations/delivery/delivery-router.d.ts +2 -0
  292. package/dist/src/automations/delivery/delivery-router.js +30 -9
  293. package/dist/src/automations/domain/index.js +1 -1
  294. package/dist/src/automations/domain/types.d.ts +1 -0
  295. package/dist/src/automations/draft/automation-draft-service.js +1 -1
  296. package/dist/src/automations/index.js +6 -6
  297. package/dist/src/automations/service/action-executor.js +42 -13
  298. package/dist/src/automations/service/automation-service.d.ts +6 -0
  299. package/dist/src/automations/service/automation-service.js +47 -12
  300. package/dist/src/automations/service/index.js +2 -2
  301. package/dist/src/browser/native-messaging-host.js +1 -1
  302. package/dist/src/browser/providers/browser-ext-install.js +2 -2
  303. package/dist/src/capabilities/runtime/dispatcher.js +1 -1
  304. package/dist/src/capabilities/runtime/product.js +1 -1
  305. package/dist/src/capabilities/store-connector.js +1 -1
  306. package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
  307. package/dist/src/channels/index.js +2 -2
  308. package/dist/src/channels/outbound-sender.js +1 -1
  309. package/dist/src/channels/pairing/allow-from-file.js +9 -9
  310. package/dist/src/channels/pairing/pairing-store.js +6 -6
  311. package/dist/src/chat-commands/agent-edit.js +1 -1
  312. package/dist/src/chat-commands/builtins/config.js +3 -3
  313. package/dist/src/chat-commands/builtins/session.js +1 -1
  314. package/dist/src/chat-commands/builtins/thinking.js +1 -1
  315. package/dist/src/chat-commands/builtins/tts.js +1 -1
  316. package/dist/src/chat-commands/context.js +1 -1
  317. package/dist/src/chat-commands/index.js +3 -3
  318. package/dist/src/cli/commands/agent.js +8 -8
  319. package/dist/src/cli/commands/agents.js +1 -1
  320. package/dist/src/cli/commands/config.js +1 -1
  321. package/dist/src/cli/commands/connectors.js +1 -1
  322. package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
  323. package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
  324. package/dist/src/cli/commands/extension-agent-plugin.js +2 -2
  325. package/dist/src/cli/commands/extension-dev.js +1 -1
  326. package/dist/src/cli/commands/extension.js +2 -2
  327. package/dist/src/cli/commands/image.js +1 -1
  328. package/dist/src/cli/commands/init.js +1 -1
  329. package/dist/src/cli/commands/mcp.js +2 -2
  330. package/dist/src/cli/commands/models.js +3 -3
  331. package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
  332. package/dist/src/cli/commands/onboard/model.js +1 -1
  333. package/dist/src/cli/commands/onboard.js +1 -1
  334. package/dist/src/cli/commands/project.js +1 -1
  335. package/dist/src/cli/commands/skills.js +2 -2
  336. package/dist/src/cli/commands/tunnel.js +4 -4
  337. package/dist/src/cli/extension-cli-register.js +6 -6
  338. package/dist/src/cli/utils/gateway-client.js +1 -1
  339. package/dist/src/cli/utils/init-workspace-core.js +3 -3
  340. package/dist/src/cli/utils/session.js +1 -1
  341. package/dist/src/computer/broker.js +16 -3
  342. package/dist/src/computer/diagnostics.js +1 -1
  343. package/dist/src/computer/errors.js +4 -0
  344. package/dist/src/computer/flows.js +1 -1
  345. package/dist/src/computer/model-adapter.js +1 -1
  346. package/dist/src/computer/runtime.js +3 -3
  347. package/dist/src/config/agent-profile.js +1 -1
  348. package/dist/src/config/index.js +4 -4
  349. package/dist/src/config/loader.js +1 -1
  350. package/dist/src/config/models-json.js +1 -1
  351. package/dist/src/connectors/cli/authorization.js +1 -1
  352. package/dist/src/connectors/composio-sessions.js +1 -1
  353. package/dist/src/connectors/composio.js +1 -1
  354. package/dist/src/connectors/connected-source-ingestion.js +3 -3
  355. package/dist/src/connectors/connected-source-understanding.js +5 -5
  356. package/dist/src/connectors/connection-recovery-service.js +4 -4
  357. package/dist/src/connectors/content-enrichment.js +1 -1
  358. package/dist/src/connectors/health.js +1 -1
  359. package/dist/src/discussions/live-worker.js +1 -1
  360. package/dist/src/discussions/sealer.js +1 -1
  361. package/dist/src/endpoint-tools/index.js +1 -1
  362. package/dist/src/endpoint-tools/runtime.js +2 -2
  363. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  364. package/dist/src/extensions/activation-context.js +3 -3
  365. package/dist/src/extensions/agent-plugins/auth.js +1 -1
  366. package/dist/src/extensions/agent-plugins/skill-catalog.js +3 -3
  367. package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
  368. package/dist/src/extensions/agent-plugins/validation.js +1 -1
  369. package/dist/src/extensions/api.js +3 -3
  370. package/dist/src/extensions/bundled-extension-activation.js +1 -1
  371. package/dist/src/extensions/index.js +3 -3
  372. package/dist/src/extensions/loader.js +2 -2
  373. package/dist/src/extensions/lockfile.js +1 -1
  374. package/dist/src/extensions/sdk/index.js +1 -1
  375. package/dist/src/extensions/sdk/media.js +1 -1
  376. package/dist/src/gateway/agents-admin.js +2 -2
  377. package/dist/src/gateway/automation-completion-delivery.d.ts +4 -0
  378. package/dist/src/gateway/automation-completion-delivery.js +14 -0
  379. package/dist/src/gateway/device-routes.js +2 -2
  380. package/dist/src/gateway/file-path-classifier.js +1 -1
  381. package/dist/src/gateway/global-defaults-admin.js +1 -1
  382. package/dist/src/gateway/hono/app.js +3 -3
  383. package/dist/src/gateway/hono/lib/config-payload.js +3 -3
  384. package/dist/src/gateway/hono/routes/agents.js +1 -1
  385. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  386. package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
  387. package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
  388. package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
  389. package/dist/src/gateway/hono/routes/context-sources.js +1 -1
  390. package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
  391. package/dist/src/gateway/hono/routes/home.js +1 -1
  392. package/dist/src/gateway/hono/routes/mcp.js +1 -1
  393. package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
  394. package/dist/src/gateway/hono/routes/models.js +4 -4
  395. package/dist/src/gateway/hono/routes/notes.js +3 -3
  396. package/dist/src/gateway/hono/routes/phone-dependencies.js +1 -1
  397. package/dist/src/gateway/hono/routes/phone-setup.js +2 -2
  398. package/dist/src/gateway/hono/routes/phone.js +2 -2
  399. package/dist/src/gateway/hono/routes/projects.js +5 -5
  400. package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
  401. package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
  402. package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
  403. package/dist/src/gateway/hono/routes/sessions.js +3 -3
  404. package/dist/src/gateway/hono/routes/shares.js +2 -2
  405. package/dist/src/gateway/hono/routes/side-chats.js +1 -1
  406. package/dist/src/gateway/hono/routes/site-shares.js +1 -1
  407. package/dist/src/gateway/hono/routes/tasks.js +1 -1
  408. package/dist/src/gateway/hono/routes/user-model.js +7 -7
  409. package/dist/src/gateway/hono/routes/voice.js +7 -7
  410. package/dist/src/gateway/image-generation-setup.js +1 -1
  411. package/dist/src/gateway/lock.js +11 -11
  412. package/dist/src/gateway/media-access.js +1 -1
  413. package/dist/src/gateway/mobile-privacy.js +2 -2
  414. package/dist/src/gateway/ports.js +6 -6
  415. package/dist/src/gateway/provider-model-setup.js +1 -1
  416. package/dist/src/gateway/respawn.js +2 -1
  417. package/dist/src/gateway/server.js +1 -1
  418. package/dist/src/gateway/service/agent-runner.js +3 -3
  419. package/dist/src/gateway/service/config-coordinator.js +2 -2
  420. package/dist/src/gateway/service/marketplace-service.js +2 -2
  421. package/dist/src/gateway/service/run-gateway-agent.js +4 -4
  422. package/dist/src/gateway/service/session-command-service.js +2 -2
  423. package/dist/src/gateway/service.js +46 -46
  424. package/dist/src/gateway/session-context-summary.js +4 -4
  425. package/dist/src/gateway/workspace-editor-path.js +2 -2
  426. package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
  427. package/dist/src/home-intelligence/generator.js +2 -2
  428. package/dist/src/imports/importService.js +1 -1
  429. package/dist/src/imports/inventory.js +2 -2
  430. package/dist/src/imports/productImport.js +1 -1
  431. package/dist/src/imports/runtime.js +1 -1
  432. package/dist/src/infra/gateway-processes.js +2 -2
  433. package/dist/src/infra/path-env.js +3 -3
  434. package/dist/src/infra/update-global.js +9 -9
  435. package/dist/src/knowledge/connected-knowledge-pipeline.js +1 -1
  436. package/dist/src/knowledge/index.js +1 -1
  437. package/dist/src/knowledge-memory/repository.js +1 -1
  438. package/dist/src/knowledge-memory/usage-policy.js +1 -1
  439. package/dist/src/local-apps/service.js +3 -3
  440. package/dist/src/mcp/gateway-http-client.js +1 -1
  441. package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
  442. package/dist/src/memory-learning/source-learning.js +5 -5
  443. package/dist/src/memory-learning/task-receipts.js +1 -1
  444. package/dist/src/notes/agent-context.js +4 -4
  445. package/dist/src/notes/index.js +1 -1
  446. package/dist/src/notes/service.js +3 -3
  447. package/dist/src/observability/store.d.ts +9 -0
  448. package/dist/src/observability/store.js +77 -32
  449. package/dist/src/personal-agent/capability-service.js +2 -2
  450. package/dist/src/personal-agent/communication.d.ts +1 -1
  451. package/dist/src/personal-agent/communication.js +3 -6
  452. package/dist/src/personal-agent/proactivity/routes.js +1 -1
  453. package/dist/src/personal-agent/proactivity/service.js +7 -7
  454. package/dist/src/personal-agent/prompt-context.js +7 -7
  455. package/dist/src/personal-agent/prompts.js +1 -1
  456. package/dist/src/personal-agent/reply-composer.js +10 -10
  457. package/dist/src/personal-agent/request-delivery.js +2 -2
  458. package/dist/src/personal-agent/request-service.js +9 -8
  459. package/dist/src/personal-agent/result-reader.js +1 -1
  460. package/dist/src/personal-agent/service.js +2 -2
  461. package/dist/src/personal-agent/task-cancel.js +1 -1
  462. package/dist/src/phone/repository.js +1 -1
  463. package/dist/src/phone/runtime.js +4 -4
  464. package/dist/src/projects/index.js +1 -1
  465. package/dist/src/projects/project-agent-suggestion.js +1 -1
  466. package/dist/src/projects/project-service.js +1 -1
  467. package/dist/src/projects/project-skill-service.js +2 -2
  468. package/dist/src/projects/workspace.js +1 -1
  469. package/dist/src/providers/model-reference-auditor.js +1 -1
  470. package/dist/src/realtime/runtime.js +1 -1
  471. package/dist/src/remote-access/exposure-manager.js +1 -1
  472. package/dist/src/routing/agent-session-key.js +1 -1
  473. package/dist/src/runtime-tools/archive.js +1 -1
  474. package/dist/src/runtime-tools/phone-dependencies.js +2 -2
  475. package/dist/src/session/index.js +2 -2
  476. package/dist/src/session/init-session-turn.js +1 -1
  477. package/dist/src/session/resolve-session.js +1 -1
  478. package/dist/src/session/store.js +5 -5
  479. package/dist/src/session/thinking-resolve.js +1 -1
  480. package/dist/src/share/hosted-session-share.js +2 -2
  481. package/dist/src/share/session-share-service.js +1 -1
  482. package/dist/src/share/share-store.js +1 -1
  483. package/dist/src/share/share-thumbnail.js +1 -1
  484. package/dist/src/share/site-share-store.js +1 -1
  485. package/dist/src/storage/sqlite/connection.js +9 -9
  486. package/dist/src/tasks/capabilities/read.js +2 -2
  487. package/dist/src/tasks/capabilities/write.js +2 -2
  488. package/dist/src/tasks/home-query-service.js +1 -1
  489. package/dist/src/tasks/index.js +4 -4
  490. package/dist/src/tasks/task-allocation-service.js +6 -6
  491. package/dist/src/tasks/task-application-service.js +6 -6
  492. package/dist/src/tasks/task-collaboration-delivery.js +1 -1
  493. package/dist/src/tasks/task-context-assembler.js +2 -2
  494. package/dist/src/tasks/task-contract-planner.js +3 -2
  495. package/dist/src/tasks/task-handoff-service.js +1 -1
  496. package/dist/src/tasks/task-handoff.js +5 -5
  497. package/dist/src/tasks/task-main-update-decision-service.js +3 -3
  498. package/dist/src/tasks/task-model-call.js +1 -1
  499. package/dist/src/tasks/task-research-result.js +4 -4
  500. package/dist/src/tasks/task-result-delivery-repository.js +1 -1
  501. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  502. package/dist/src/tasks/task-run-coordinator.js +4 -4
  503. package/dist/src/tasks/task-run-dispatcher.js +1 -1
  504. package/dist/src/tui/backends/embedded-backend.js +12 -12
  505. package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
  506. package/dist/src/tui/extension-host/load-extensions.js +2 -2
  507. package/dist/src/tui/tui-commands.js +5 -5
  508. package/dist/src/tui/tui-picker-overlay.js +1 -1
  509. package/dist/src/tui/tui-skills-autocomplete.js +1 -1
  510. package/dist/src/tui/tui-startup-resources.js +4 -4
  511. package/dist/src/tui/tui.js +4 -4
  512. package/dist/src/tunnel/gateway-lifecycle.js +1 -1
  513. package/dist/src/user-context/access-policy.js +2 -2
  514. package/dist/src/user-model/bootstrap.js +1 -1
  515. package/dist/src/user-model/capture/executor.js +1 -1
  516. package/dist/src/user-model/index.js +2 -2
  517. package/dist/src/user-model/usage-policy.js +1 -1
  518. package/dist/src/voice/realtime/memory-context.js +5 -5
  519. package/dist/src/voice/realtime/omniRoute.js +1 -1
  520. package/dist/src/voice/realtime/persona-context.js +1 -1
  521. package/dist/src/voice/realtime/runtime.js +4 -4
  522. package/dist/src/voice/stt/index.js +2 -2
  523. package/dist/src/voice/stt/preflight.js +1 -1
  524. package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
  525. package/dist/src/voice/stt/providers/bailian-plan-transcription.js +1 -1
  526. package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
  527. package/dist/src/voice/stt/transcribe-core.js +1 -1
  528. package/dist/src/voice/tts/index.js +3 -3
  529. package/dist/src/voice/tts/merge-config.js +1 -1
  530. package/dist/src/voice/tts/payload.js +1 -1
  531. package/dist/src/voice/tts/providers/bailian-plan-speech.js +1 -1
  532. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
  533. package/dist/src/voice/tts/speak-core.js +1 -1
  534. package/dist/src/work-discovery/service.js +7 -7
  535. package/package.json +3 -3
  536. package/dist/gateway/static/root/assets/agent-avatar-display-Cy50vjbq.js +0 -2
  537. package/dist/gateway/static/root/assets/agent-defaults-settings-panel-V4NX_cWz.js +0 -1
  538. package/dist/gateway/static/root/assets/agent-plugin-dialog-CQ5LLDMO.js +0 -1
  539. package/dist/gateway/static/root/assets/app-management-settings-panel-C1Zs-eha.js +0 -1
  540. package/dist/gateway/static/root/assets/appearance-settings-lIfGokbz.js +0 -1
  541. package/dist/gateway/static/root/assets/apps-page-CUvtsRYD.js +0 -1
  542. package/dist/gateway/static/root/assets/automation-api-Bld8blNl.js +0 -1
  543. package/dist/gateway/static/root/assets/automation-display-BcfZOQTC.js +0 -2
  544. package/dist/gateway/static/root/assets/automations-workspace-BgtYY2Mm.js +0 -8
  545. package/dist/gateway/static/root/assets/browser-automations-page-DIUNY94X.js +0 -3
  546. package/dist/gateway/static/root/assets/capabilities-page-DFW4Y0x8.js +0 -2
  547. package/dist/gateway/static/root/assets/capabilities-settings-panel-uOHSMQPZ.js +0 -8
  548. package/dist/gateway/static/root/assets/channels-D2a69dSt.js +0 -1
  549. package/dist/gateway/static/root/assets/chat-page-CG38tCHE.js +0 -71
  550. package/dist/gateway/static/root/assets/composer-payload-handoff-BU3B-C26.js +0 -1
  551. package/dist/gateway/static/root/assets/connected-providers-grid-Dmnu2zle.js +0 -1
  552. package/dist/gateway/static/root/assets/connectors-page-DT_WrC1y.js +0 -1
  553. package/dist/gateway/static/root/assets/desktop-pet-lorocS9j.js +0 -1
  554. package/dist/gateway/static/root/assets/desktop-pet-settings-CEcohlZq.js +0 -1
  555. package/dist/gateway/static/root/assets/device-pairing-wizard-CLCPuf4R.js +0 -1
  556. package/dist/gateway/static/root/assets/discussion-annotation-sync-BKjf9gWe.js +0 -1
  557. package/dist/gateway/static/root/assets/extension-iframe-host-Dhkk5JV2.js +0 -1
  558. package/dist/gateway/static/root/assets/extension-page-Brps2XDP.js +0 -1
  559. package/dist/gateway/static/root/assets/extension-settings-page-CHY68DpG.js +0 -1
  560. package/dist/gateway/static/root/assets/gateway-realtime-store-DQqMBruB.js +0 -1
  561. package/dist/gateway/static/root/assets/gateway-restart-Ch128Lrr.js +0 -1
  562. package/dist/gateway/static/root/assets/home-page-DaMFBYo1.js +0 -2
  563. package/dist/gateway/static/root/assets/image-generation-api-I_JgLL_m.js +0 -1
  564. package/dist/gateway/static/root/assets/index-DS60ZSdQ.js +0 -11
  565. package/dist/gateway/static/root/assets/index-DY2Y83b9.css +0 -1
  566. package/dist/gateway/static/root/assets/install-connector-dialog-DU1Tz7B3.js +0 -1
  567. package/dist/gateway/static/root/assets/local-app-workbench-page-qPflPuQD.js +0 -1
  568. package/dist/gateway/static/root/assets/logs-page-CbY1N-zi.js +0 -2
  569. package/dist/gateway/static/root/assets/management-settings-Diy12JfQ.js +0 -1
  570. package/dist/gateway/static/root/assets/messages-DRR9N3HC.js +0 -3
  571. package/dist/gateway/static/root/assets/model-selector-DCYA_ntf.js +0 -1
  572. package/dist/gateway/static/root/assets/navigation-BkjnOw30.js +0 -1
  573. package/dist/gateway/static/root/assets/note-detail-panel-DBs1yHLy.js +0 -5
  574. package/dist/gateway/static/root/assets/note-image-lightbox-CivkB6LB.js +0 -1
  575. package/dist/gateway/static/root/assets/notes-page-DL3c-41a.js +0 -8
  576. package/dist/gateway/static/root/assets/page-header-store-DH8K0xii.js +0 -1
  577. package/dist/gateway/static/root/assets/personal-page-B5DP3lO-.js +0 -1
  578. package/dist/gateway/static/root/assets/personal-settings-panel-DjDc5Kaz.js +0 -1
  579. package/dist/gateway/static/root/assets/phone-model-picker-u8YIQCgo.js +0 -1
  580. package/dist/gateway/static/root/assets/phone-settings-page-el3pT0PD.js +0 -1
  581. package/dist/gateway/static/root/assets/plugin-details-dialog-CTBs1Jde.js +0 -1
  582. package/dist/gateway/static/root/assets/popover-select-DniHw2dy.js +0 -1
  583. package/dist/gateway/static/root/assets/preference-select-fields-D7oluyHN.js +0 -1
  584. package/dist/gateway/static/root/assets/product-automation-feedback-DsUSqCOX.js +0 -7
  585. package/dist/gateway/static/root/assets/project-detail-page-BKvWLiMw.js +0 -7
  586. package/dist/gateway/static/root/assets/project-understanding-BCQr0AZ_.js +0 -1
  587. package/dist/gateway/static/root/assets/projects-page-D4g7bB7X.js +0 -1
  588. package/dist/gateway/static/root/assets/route-preload-B5UiReO7.js +0 -2
  589. package/dist/gateway/static/root/assets/runtime-tools-settings-panel-MKlLFuow.js +0 -1
  590. package/dist/gateway/static/root/assets/schema-form-v4N4lawq.js +0 -1
  591. package/dist/gateway/static/root/assets/service-recommendation-list-B1xuVT3N.js +0 -1
  592. package/dist/gateway/static/root/assets/session-manager-5l9q0cd5.js +0 -16
  593. package/dist/gateway/static/root/assets/sessions-page-DsLw2aMD.js +0 -1
  594. package/dist/gateway/static/root/assets/settings-advanced-gate-B5lQeVNi.js +0 -1
  595. package/dist/gateway/static/root/assets/setup-status-panel-MJE3B_LX.js +0 -1
  596. package/dist/gateway/static/root/assets/share-preview-page-Bsrv_zOQ.js +0 -2
  597. package/dist/gateway/static/root/assets/shares-settings-CfIRv4uX.js +0 -1
  598. package/dist/gateway/static/root/assets/skill-api-B_W1K3sv.js +0 -1
  599. package/dist/gateway/static/root/assets/skills-page-DtBloYeU.js +0 -2
  600. package/dist/gateway/static/root/assets/task-detail-page-Drrv-Hp0.js +0 -2
  601. package/dist/gateway/static/root/assets/task-result-evidence-D1Kyskm_.js +0 -1
  602. package/dist/gateway/static/root/assets/tracing-settings-page-B12u5D9A.js +0 -1
  603. package/dist/gateway/static/root/assets/tunnel-api-DGO56LQU.js +0 -1
  604. package/dist/gateway/static/root/assets/usage-page-Ud2U9UG1.js +0 -1
  605. package/dist/gateway/static/root/assets/use-composer-attachments-BCbMj-MN.js +0 -2
  606. package/dist/gateway/static/root/assets/use-file-preview-expanded-DSpCRXUW.js +0 -2
  607. package/dist/gateway/static/root/assets/user-model-page-p5iPfnwl.js +0 -2
  608. package/dist/gateway/static/root/assets/voice-transcribe-api-TInEfIYo.js +0 -1
  609. package/dist/gateway/static/root/assets/work-discovery-page-p-8ciZ0i.js +0 -1
  610. package/dist/gateway/static/root/assets/workspace-editor-agent-store-B94Q2nN8.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import { resolveStateDir } from "../config/paths-state.js";
2
2
  import { init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
3
- import { ProjectService } from "../projects/project-service.js";
4
3
  import { init_paths } from "../config/paths.js";
4
+ import { ProjectService } from "../projects/project-service.js";
5
5
  import { ImportError } from "./types.js";
6
6
  import { digest, fileHash, readRegularFile, readTree } from "./files.js";
7
7
  import { importContextDocument } from "./contextImport.js";
@@ -1,6 +1,6 @@
1
1
  import { resolveStateDir } from "../config/paths-state.js";
2
- import { ProjectService } from "../projects/project-service.js";
3
2
  import { init_paths, resolveBundledSkillsDir, resolveSkillsDir } from "../config/paths.js";
3
+ import { ProjectService } from "../projects/project-service.js";
4
4
  import { resolveWorkspaceSkillsDir } from "../agent/skills/workspace-skills-dir.js";
5
5
  import { loadSkills } from "../agent/skills/index.js";
6
6
  import { ProjectTrustStore } from "../project-trust/trust-store.js";
@@ -1,11 +1,11 @@
1
1
  import { listPortListeners } from "../gateway/ports.js";
2
2
  import { isGatewayArgv, parseProcCmdline } from "./gateway-process-argv.js";
3
- import fsSync from "node:fs";
3
+ import fs from "node:fs";
4
4
  import { spawnSync } from "node:child_process";
5
5
  //#region src/infra/gateway-processes.ts
6
6
  function readGatewayProcessArgsSync(pid) {
7
7
  if (process.platform === "linux") try {
8
- return parseProcCmdline(fsSync.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
8
+ return parseProcCmdline(fs.readFileSync(`/proc/${pid}/cmdline`, "utf8"));
9
9
  } catch {
10
10
  return null;
11
11
  }
@@ -1,7 +1,7 @@
1
1
  import { resolveBrewPathDirs } from "./brew.js";
2
2
  import os from "node:os";
3
3
  import path from "node:path";
4
- import fsSync from "node:fs";
4
+ import fs from "node:fs";
5
5
  //#region src/infra/path-env.ts
6
6
  function isTruthyEnvValue(value) {
7
7
  if (!value) return false;
@@ -10,7 +10,7 @@ function isTruthyEnvValue(value) {
10
10
  }
11
11
  function isExecutable(filePath) {
12
12
  try {
13
- fsSync.accessSync(filePath, fsSync.constants.X_OK);
13
+ fs.accessSync(filePath, fs.constants.X_OK);
14
14
  return true;
15
15
  } catch {
16
16
  return false;
@@ -18,7 +18,7 @@ function isExecutable(filePath) {
18
18
  }
19
19
  function isDirectory(dirPath) {
20
20
  try {
21
- return fsSync.statSync(dirPath).isDirectory();
21
+ return fs.statSync(dirPath).isDirectory();
22
22
  } catch {
23
23
  return false;
24
24
  }
@@ -4,8 +4,8 @@ import { readPackageVersion } from "./package-json.js";
4
4
  import { createDefaultCommandRunner } from "./run-command.js";
5
5
  import { verifyInstalledGatewayRuntime } from "./package-runtime-check.js";
6
6
  import path from "node:path";
7
- import fsSync from "node:fs";
8
- import fs from "node:fs/promises";
7
+ import fs from "node:fs";
8
+ import fs$1 from "node:fs/promises";
9
9
  //#region src/infra/update-global.ts
10
10
  const XOPC_PACKAGE_NAME = "@xopcai/xopc";
11
11
  const GLOBAL_RENAME_PREFIX = ".";
@@ -19,7 +19,7 @@ const NPM_GLOBAL_INSTALL_OMIT_OPTIONAL_FLAGS = ["--omit=optional", ...NPM_GLOBAL
19
19
  const GLOBAL_DETECT_TIMEOUT_MS = 15e3;
20
20
  async function pathExists(targetPath) {
21
21
  try {
22
- await fs.access(targetPath);
22
+ await fs$1.access(targetPath);
23
23
  return true;
24
24
  } catch {
25
25
  return false;
@@ -27,7 +27,7 @@ async function pathExists(targetPath) {
27
27
  }
28
28
  async function tryRealpath(targetPath) {
29
29
  try {
30
- return await fs.realpath(targetPath);
30
+ return await fs$1.realpath(targetPath);
31
31
  } catch {
32
32
  return path.resolve(targetPath);
33
33
  }
@@ -50,14 +50,14 @@ function resolvePreferredNpmCommand(pkgRoot) {
50
50
  const prefix = inferNpmPrefixFromPackageRoot(pkgRoot);
51
51
  if (!prefix) return null;
52
52
  const candidate = process.platform === "win32" ? path.join(prefix, "npm.cmd") : path.join(prefix, "bin", "npm");
53
- return fsSync.existsSync(candidate) ? candidate : null;
53
+ return fs.existsSync(candidate) ? candidate : null;
54
54
  }
55
55
  function resolveNpmFromExecPath() {
56
56
  const execPath = process.execPath?.trim();
57
57
  if (!execPath) return null;
58
58
  const binDir = path.dirname(execPath);
59
59
  const candidate = process.platform === "win32" ? path.join(binDir, "npm.cmd") : path.join(binDir, "npm");
60
- return fsSync.existsSync(candidate) ? candidate : null;
60
+ return fs.existsSync(candidate) ? candidate : null;
61
61
  }
62
62
  function resolvePreferredGlobalManagerCommand(manager, pkgRoot) {
63
63
  if (manager !== "npm") return manager;
@@ -206,7 +206,7 @@ async function cleanupGlobalRenameDirs(params) {
206
206
  const prefix = `${GLOBAL_RENAME_PREFIX}${name}-`;
207
207
  let entries = [];
208
208
  try {
209
- entries = await fs.readdir(root);
209
+ entries = await fs$1.readdir(root);
210
210
  } catch {
211
211
  return { removed };
212
212
  }
@@ -214,8 +214,8 @@ async function cleanupGlobalRenameDirs(params) {
214
214
  if (!entry.startsWith(prefix)) continue;
215
215
  const target = path.join(root, entry);
216
216
  try {
217
- if (!(await fs.lstat(target)).isDirectory()) continue;
218
- await fs.rm(target, {
217
+ if (!(await fs$1.lstat(target)).isDirectory()) continue;
218
+ await fs$1.rm(target, {
219
219
  recursive: true,
220
220
  force: true
221
221
  });
@@ -7,9 +7,9 @@ import { claimKnowledgeSourceItems, completeKnowledgeSourceItemSynthesis, pruneB
7
7
  import "../storage/sqlite/index.js";
8
8
  import { clearMemoryAudit } from "../user-context/memory-suppression.js";
9
9
  import { getActiveUnderstandingConsent } from "../user-context/sources/consent-repository.js";
10
- import { consentFilteredText } from "../user-context/sources/consent-fields.js";
11
10
  import { listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
12
11
  import "../knowledge-memory/index.js";
12
+ import { consentFilteredText } from "../user-context/sources/consent-fields.js";
13
13
  import { randomUUID } from "node:crypto";
14
14
  //#region src/knowledge/connected-knowledge-pipeline.ts
15
15
  init_transaction();
@@ -1,5 +1,5 @@
1
- import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
2
1
  import { ConnectedKnowledgePipeline } from "./connected-knowledge-pipeline.js";
2
+ import { KnowledgeIngestionService, SqliteKnowledgeSourceStateStore } from "./ingestion-service.js";
3
3
  import { startConnectedKnowledgeCoordinator } from "./coordinator.js";
4
4
  import { LocalFolderKnowledgeSourceAdapter } from "./local-folder-adapter.js";
5
5
  export { ConnectedKnowledgePipeline, KnowledgeIngestionService, LocalFolderKnowledgeSourceAdapter, SqliteKnowledgeSourceStateStore, startConnectedKnowledgeCoordinator };
@@ -1,8 +1,8 @@
1
1
  import { init_search_text, memorySearchQuery } from "./search-text.js";
2
2
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
3
3
  import { validateScope } from "../user-model/domain.js";
4
- import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
5
4
  import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
5
+ import { clearMemoryAudit, isMemorySuppressed, memoryFingerprint, restoreMemory, suppressMemory } from "../user-context/memory-suppression.js";
6
6
  import { canUseKnowledge, knowledgeContentSources } from "./usage-policy.js";
7
7
  import { randomUUID } from "node:crypto";
8
8
  //#region src/knowledge-memory/repository.ts
@@ -1,8 +1,8 @@
1
1
  import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
2
2
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
3
3
  import { init_session_repository } from "../storage/sqlite/session-repository.js";
4
- import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
5
4
  import { isOwnerIdentity } from "../user-context/identity-bindings.js";
5
+ import { getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
6
6
  //#region src/knowledge-memory/usage-policy.ts
7
7
  init_transaction();
8
8
  init_session_repository();
@@ -5,11 +5,11 @@ import { init_logger } from "../utils/logger.js";
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
- import { slugifyProjectName } from "../projects/project-store.js";
10
- import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
11
8
  import { init_paths, resolveExtensionsDir } from "../config/paths.js";
9
+ import { slugifyProjectName } from "../projects/project-store.js";
10
+ import { CapabilityError } from "../capabilities/runtime/errors.js";
12
11
  import { LocalAppStore } from "./store.js";
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";
15
15
  import { readLocalAppAcceptanceConfig } from "./acceptance.js";
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
3
  import { CapabilityErrorCodeSchema } from "../../packages/gateway-contract/src/capabilities.js";
4
4
  import { init_src } from "../../packages/gateway-contract/src/index.js";
5
- import { loadConfig } from "../config/loader.js";
6
5
  import { resolveGatewayLocalClientHost } from "../config/gateway-bind.js";
6
+ import { loadConfig } from "../config/loader.js";
7
7
  import { createGatewayCredential, gatewayCredentialAuthorization } from "../gateway/credential.js";
8
8
  import { fetch } from "undici";
9
9
  //#region src/mcp/gateway-http-client.ts
@@ -1,6 +1,6 @@
1
+ import { registerMediaUnderstandingProvider } from "./registry.js";
1
2
  import { normalizeBaseUrl, postMultipartRequest } from "../media-shared/http/provider-http.js";
2
3
  import "../media-shared/http/index.js";
3
- import { registerMediaUnderstandingProvider } from "./registry.js";
4
4
  import path from "node:path";
5
5
  //#region src/media-understanding/openai-compatible-audio.ts
6
6
  /**
@@ -2,16 +2,16 @@ import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
3
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
4
4
  import { claimContextExtractionRun, finishContextExtractionRun } from "../storage/sqlite/context-extraction-repository.js";
5
- import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
6
5
  import { init_config, resolveKnowledgeReadPolicy } from "../user-context/config.js";
6
+ import { learningPolicyHash } from "./repository.js";
7
+ import { getActiveUnderstandingConsent, getUnderstandingConsent } from "../user-context/sources/consent-repository.js";
8
+ import { resolveModelSelector } from "../config/agent-model-intents.js";
7
9
  import { init_providers, resolveModel } from "../providers/index.js";
8
10
  import { completeWithResolvedCredentials } from "../providers/model-call.js";
9
- import { getWorkspacePath } from "../config/workspace-path-helpers.js";
10
- import { resolveModelSelector } from "../config/agent-model-intents.js";
11
+ import { isLoopbackModel } from "../providers/local-model.js";
11
12
  import { ConnectedKnowledgePipeline } from "../knowledge/connected-knowledge-pipeline.js";
13
+ import { getWorkspacePath } from "../config/workspace-path-helpers.js";
12
14
  import { extractionInputHash } from "../user-context/extraction/registry.js";
13
- import { learningPolicyHash } from "./repository.js";
14
- import { isLoopbackModel } from "../providers/local-model.js";
15
15
  import { WorkCandidateSchema } from "./work-candidate.js";
16
16
  import { applyWorkCandidates } from "./work-capture.js";
17
17
  import { randomUUID } from "node:crypto";
@@ -2,10 +2,10 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
2
2
  import { createContextEvidence } from "../storage/sqlite/context-evidence-repository.js";
3
3
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
4
4
  import { init_session_repository } from "../storage/sqlite/session-repository.js";
5
+ import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
5
6
  import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
6
7
  import { writeKnowledgeItem } from "../knowledge-memory/repository.js";
7
8
  import "../knowledge-memory/index.js";
8
- import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
9
9
  import { createHash } from "node:crypto";
10
10
  //#region src/memory-learning/task-receipts.ts
11
11
  init_session_repository();
@@ -1,12 +1,12 @@
1
1
  import { getNoteAgentContextRecord, upsertNoteAgentContextRecord } from "../storage/sqlite/note-agent-context-repository.js";
2
2
  import "../storage/sqlite/index.js";
3
- import { isSTTAvailable } from "../voice/stt/availability.js";
4
- import { transcribe } from "../voice/stt/transcribe-core.js";
5
- import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
6
- import "../voice/stt/index.js";
7
3
  import { extractDocumentText } from "../document-understanding/extract.js";
8
4
  import { resolveImageModelConfigForTool } from "../agent/image/tool-model-config.js";
9
5
  import { describeImagesWithFallback } from "../agent/image/understanding/runtime.js";
6
+ import { transcribe } from "../voice/stt/transcribe-core.js";
7
+ import { isSTTAvailable } from "../voice/stt/availability.js";
8
+ import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
9
+ import "../voice/stt/index.js";
10
10
  import { extname } from "node:path";
11
11
  import { readFile } from "node:fs/promises";
12
12
  //#region src/notes/agent-context.ts
@@ -1,5 +1,5 @@
1
+ import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
1
2
  import { resolveNoteMediaDir, resolveNotesDir } from "./paths.js";
2
3
  import { NotesStore } from "./store.js";
3
- import { buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
4
4
  import { NotesService } from "./service.js";
5
5
  export { NotesService, NotesStore, buildNoteAgentContext, buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact, resolveNoteMediaDir, resolveNotesDir };
@@ -6,13 +6,13 @@ import { buildNoteAttachmentRef } from "./attachment-ref.js";
6
6
  import { parseNoteMarkdown } from "./note-markdown.js";
7
7
  import { listNoteProjectSummaries } from "../storage/sqlite/notes-repository.js";
8
8
  import { changedFieldsFromPatch, emitActivity, previewText, systemActivityActor, systemActivitySource } from "../activity/emitter.js";
9
- import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
10
- import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
11
- import { NotesStore } from "./store.js";
12
9
  import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
13
10
  import { completeWithResolvedCredentials } from "../providers/model-call.js";
11
+ import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
14
12
  import { partitionAttachmentsByReference } from "./note-attachment-sync.js";
15
13
  import { buildNoteAgentContextArtifact, getCachedNoteAgentContextArtifact } from "./agent-context.js";
14
+ import { revokeNoteShareRecords } from "../share/note-share-revocation.js";
15
+ import { NotesStore } from "./store.js";
16
16
  import { createHash, randomUUID } from "node:crypto";
17
17
  //#region src/notes/service.ts
18
18
  init_providers();
@@ -1,17 +1,26 @@
1
1
  import type { TracingConfig } from './config.js';
2
2
  import type { TraceRecord } from './types.js';
3
3
  export declare class LocalTraceStore {
4
+ private config;
5
+ private readonly file;
4
6
  private worker?;
5
7
  private sequence;
6
8
  private requests;
7
9
  private pendingBytes;
8
10
  private epoch;
9
11
  private epochReady;
12
+ private readonly owner;
13
+ private stopped?;
14
+ private retryAfter;
15
+ private closed;
10
16
  dropped: number;
11
17
  lastError?: string;
12
18
  constructor(config: TracingConfig, file?: string);
19
+ private startWorker;
13
20
  private fail;
14
21
  request(op: string, data?: unknown): Promise<any>;
22
+ private readyWorker;
23
+ private dispatch;
15
24
  begin(record: TraceRecord): Promise<number>;
16
25
  write(record: TraceRecord, epoch?: number): Promise<void>;
17
26
  clear(): Promise<void>;
@@ -1,4 +1,6 @@
1
1
  import { init_paths_state, resolveStateDir } from "../config/paths-state.js";
2
+ import { createLogger } from "../utils/logger/index.js";
3
+ import { init_logger } from "../utils/logger.js";
2
4
  import { redactString } from "./sanitize.js";
3
5
  import { traceStoreWorkerSource } from "./storeWorker.js";
4
6
  import { join } from "node:path";
@@ -6,27 +8,40 @@ import { randomUUID } from "node:crypto";
6
8
  import { Worker } from "node:worker_threads";
7
9
  //#region src/observability/store.ts
8
10
  init_paths_state();
11
+ init_logger();
12
+ const log = createLogger("Observability:Store");
9
13
  var LocalTraceStore = class {
10
14
  worker;
11
15
  sequence = 0;
12
16
  requests = /* @__PURE__ */ new Map();
13
17
  pendingBytes = 0;
14
18
  epoch = 0;
15
- epochReady;
19
+ epochReady = Promise.resolve();
20
+ owner = randomUUID();
21
+ stopped;
22
+ retryAfter = 0;
23
+ closed = false;
16
24
  dropped = 0;
17
25
  lastError;
18
26
  constructor(config, file = join(resolveStateDir(), "traces", "traces.db")) {
27
+ this.config = config;
28
+ this.file = file;
29
+ this.startWorker();
30
+ }
31
+ startWorker() {
19
32
  try {
20
- this.worker = new Worker(traceStoreWorkerSource, {
33
+ const worker = new Worker(traceStoreWorkerSource, {
21
34
  eval: true,
22
35
  execArgv: process.execArgv.filter((arg, index, args) => !arg.startsWith("--input-type") && args[index - 1] !== "--input-type"),
23
36
  workerData: {
24
- path: file,
25
- config,
26
- owner: randomUUID()
37
+ path: this.file,
38
+ config: this.config,
39
+ owner: this.owner
27
40
  }
28
41
  });
29
- this.worker.on("message", ({ id, value, error }) => {
42
+ this.worker = worker;
43
+ worker.on("message", ({ id, value, error }) => {
44
+ if (this.worker !== worker) return;
30
45
  const request = this.requests.get(id);
31
46
  if (!request) return;
32
47
  clearTimeout(request.timer);
@@ -36,33 +51,63 @@ var LocalTraceStore = class {
36
51
  this.lastError = error;
37
52
  request.reject(new Error(error));
38
53
  } else request.resolve(value);
39
- if (!this.requests.size) this.worker?.unref();
40
- });
41
- this.worker.on("error", (error) => this.fail(`Trace worker unavailable: ${redactString(error instanceof Error ? error.message : "Worker startup failed").slice(0, 200)}`));
42
- this.worker.on("exit", () => {
43
- if (this.worker) this.fail("Trace worker stopped");
54
+ if (!this.requests.size) worker.unref();
44
55
  });
45
- this.worker.unref();
46
- this.epochReady = this.request("status").then((s) => {
56
+ worker.on("error", (error) => this.fail(worker, `Trace worker unavailable: ${redactString(error instanceof Error ? error.message : "Worker startup failed").slice(0, 200)}`));
57
+ worker.on("exit", (code) => this.fail(worker, `Trace worker stopped (exit ${code})`));
58
+ worker.unref();
59
+ this.epochReady = this.dispatch(worker, "status").then((s) => {
47
60
  this.epoch = s.epoch;
48
- }).catch(() => {});
61
+ if (this.retryAfter) log.info({ phase: "local_trace_worker_recovery" }, "Local trace worker recovered");
62
+ this.lastError = void 0;
63
+ }, (error) => {
64
+ this.fail(worker, error instanceof Error ? error.message : "Trace worker startup failed");
65
+ throw error;
66
+ });
67
+ this.epochReady.catch(() => {});
49
68
  } catch {
50
69
  this.lastError = "Trace worker unavailable";
70
+ this.retryAfter = Date.now() + 1e3;
51
71
  this.epochReady = Promise.resolve();
52
72
  }
53
73
  }
54
- fail(message) {
74
+ fail(worker, message) {
75
+ if (this.worker !== worker) return;
55
76
  this.lastError = message;
77
+ if (!this.closed) log.warn({
78
+ phase: "local_trace_worker",
79
+ errorMessage: message,
80
+ pendingRequests: this.requests.size,
81
+ pendingBytes: this.pendingBytes
82
+ }, "Local trace worker stopped; a later request can recover recording");
83
+ this.worker = void 0;
84
+ this.retryAfter = Date.now() + 1e3;
56
85
  for (const r of this.requests.values()) {
57
86
  clearTimeout(r.timer);
58
87
  r.reject(new Error(message));
59
88
  }
60
89
  this.requests.clear();
61
90
  this.pendingBytes = 0;
62
- this.worker = void 0;
91
+ this.stopped = worker.terminate().catch(() => {});
63
92
  }
64
93
  async request(op, data) {
94
+ if (op === "configure") this.config = data;
95
+ return this.dispatch(await this.readyWorker(), op, data);
96
+ }
97
+ async readyWorker() {
98
+ if (this.closed) throw new Error("Trace store closed");
99
+ if (!this.worker) {
100
+ if (Date.now() < this.retryAfter) throw new Error(this.lastError ?? "Trace storage unavailable");
101
+ await this.stopped;
102
+ if (this.closed) throw new Error("Trace store closed");
103
+ if (!this.worker) this.startWorker();
104
+ }
105
+ await this.epochReady;
65
106
  if (!this.worker) throw new Error(this.lastError ?? "Trace storage unavailable");
107
+ return this.worker;
108
+ }
109
+ dispatch(worker, op, data) {
110
+ if (this.closed || this.worker !== worker) return Promise.reject(new Error(this.lastError ?? "Trace storage unavailable"));
66
111
  const bytes = Buffer.byteLength(JSON.stringify(data ?? null));
67
112
  if (this.requests.size >= 2e3 || this.pendingBytes + bytes > 8 * 1048576) {
68
113
  this.dropped++;
@@ -70,14 +115,11 @@ var LocalTraceStore = class {
70
115
  }
71
116
  const id = ++this.sequence;
72
117
  this.pendingBytes += bytes;
73
- this.worker.ref();
118
+ worker.ref();
74
119
  return new Promise((resolve, reject) => {
75
120
  const timer = setTimeout(() => {
76
- this.requests.delete(id);
77
- this.pendingBytes -= bytes;
78
121
  this.dropped++;
79
- reject(/* @__PURE__ */ new Error("Trace storage timeout"));
80
- this.worker?.terminate();
122
+ this.fail(worker, "Trace storage timeout");
81
123
  }, 5e3);
82
124
  this.requests.set(id, {
83
125
  resolve,
@@ -85,24 +127,27 @@ var LocalTraceStore = class {
85
127
  timer,
86
128
  bytes
87
129
  });
88
- this.worker.postMessage({
89
- id,
90
- op,
91
- data
92
- });
130
+ try {
131
+ worker.postMessage({
132
+ id,
133
+ op,
134
+ data
135
+ });
136
+ } catch {
137
+ this.fail(worker, "Trace worker unavailable");
138
+ }
93
139
  });
94
140
  }
95
141
  async begin(record) {
96
- await this.epochReady;
97
142
  return this.request("put", {
98
143
  records: [record],
99
144
  epoch: null
100
145
  });
101
146
  }
102
147
  async write(record, epoch) {
103
- await this.epochReady;
104
148
  try {
105
- await this.request("put", {
149
+ const worker = await this.readyWorker();
150
+ await this.dispatch(worker, "put", {
106
151
  records: [record],
107
152
  epoch: epoch ?? this.epoch
108
153
  });
@@ -119,9 +164,9 @@ var LocalTraceStore = class {
119
164
  await this.request("status");
120
165
  }
121
166
  async close() {
122
- const worker = this.worker;
123
- this.fail("Trace store closed");
124
- await worker?.terminate();
167
+ this.closed = true;
168
+ if (this.worker) this.fail(this.worker, "Trace store closed");
169
+ await this.stopped;
125
170
  }
126
171
  };
127
172
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
2
2
  import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
3
+ import { isPersonalConversation } from "./repository.js";
3
4
  import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
4
5
  import { connectorPrincipalForSession } from "../connectors/principal.js";
5
- import { isPersonalConversation } from "./repository.js";
6
- import { assessSpecialist } from "../agent-matching/service.js";
7
6
  import { connectionCandidates, resolveConnectionCandidate } from "../connectors/connection-candidates.js";
7
+ import { assessSpecialist } from "../agent-matching/service.js";
8
8
  //#region src/personal-agent/capability-service.ts
9
9
  init_repository();
10
10
  init_connector_repository();
@@ -1,4 +1,4 @@
1
1
  export { PERSONAL_PERSONA_GUIDANCE } from './persona.js';
2
2
  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."];
3
3
  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.", "Hide submission, routing, and queue/start narration. Use the task card for routine status.", "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."];
4
- export declare const PERSONAL_WORKER_RESULT_GUIDANCE: string;
4
+ export { PERSONAL_WORKER_RESULT_GUIDANCE } from '@xopcai/gateway-contract';
@@ -1,5 +1,8 @@
1
+ import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../../packages/gateway-contract/src/task-display.js";
2
+ import { init_src } from "../../packages/gateway-contract/src/index.js";
1
3
  import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
2
4
  //#region src/personal-agent/communication.ts
5
+ init_src();
3
6
  const PERSONAL_RELIABILITY_RULES = [
4
7
  "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.",
5
8
  "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.",
@@ -16,11 +19,5 @@ const PERSONAL_COMMUNICATION_RULES = [
16
19
  "Hide submission, routing, and queue/start narration. Use the task card for routine status.",
17
20
  "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."
18
21
  ];
19
- const PERSONAL_WORKER_RESULT_GUIDANCE = [
20
- "## Result for the originating conversation",
21
- "For ordinary Tasks when publish_task_result is available, use it before completion to review the actual result. Connected Requests use their own structured result tool instead. When files were published, finalArtifactIds must select the exact final artifact IDs from publication receipts, including [] for a text-only result. Exclude intermediate, obsolete and failed files; publication history is not the final delivery manifest.",
22
- "Provide a complete, evidence-grounded result for the originating conversation. The personal assistant may synthesize its final reply from your report. Match the user’s language and requested depth; preserve requested content, relevant sources, verified data cutoffs, uncertainty, and partial failures. Distinguish reported findings from verified facts. Do not invent a friendly opening or assume a new user request.",
23
- "Keep internal planning, Agent names, tool logs, and task progress links out of the result unless the user specifically requested them or they are necessary to explain a blocker. Never substitute a progress page, a plan, or a promise for the requested result. Publish required files through the available artifact tools; do not repeat the same attachments or send the user to a Task page to collect them."
24
- ].join("\n");
25
22
  //#endregion
26
23
  export { PERSONAL_COMMUNICATION_RULES, PERSONAL_PERSONA_GUIDANCE, PERSONAL_RELIABILITY_RULES, PERSONAL_WORKER_RESULT_GUIDANCE };
@@ -1,7 +1,7 @@
1
1
  import { PersonalFeedbackSchema, PersonalProactivitySettingsSchema, PersonalStrategyRollbackSchema } from "../../../packages/gateway-contract/src/personal-proactivity.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
- import { getPersonalAgent } from "../repository.js";
4
3
  import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
4
+ import { getPersonalAgent } from "../repository.js";
5
5
  import { getProactivitySettings, listInterestCandidates, patchAttention, patchProactivitySettings, provenanceDetail, recordFeedback, rollbackStrategy, strategyState } from "./repository.js";
6
6
  import { z } from "zod";
7
7
  //#region src/personal-agent/proactivity/routes.ts
@@ -6,16 +6,16 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
6
6
  import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
7
7
  import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
8
8
  import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
9
- import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
10
- import { getPersonalAgent } from "../repository.js";
11
- import { DurableState } from "../../storage/sqlite/durable-state.js";
9
+ import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
12
10
  import { init_providers, resolveModel } from "../../providers/index.js";
13
- import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
14
11
  import { completeWithResolvedCredentials } from "../../providers/model-call.js";
15
- import { personalConversationState } from "../conversation-state.js";
16
- import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
17
- import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
12
+ import { extractAssistantText, getAssistantMessageErrorReason, stripCodeFences } from "../../providers/model-response.js";
13
+ import { getPersonalAgent } from "../repository.js";
14
+ import { emitSessionTranscriptUpdate } from "../../session/transcript-events.js";
15
+ import { DurableState } from "../../storage/sqlite/durable-state.js";
18
16
  import { enqueueDue, enqueueWakeup, getAttention, getAttentionSources, getProactivitySettings, isQuiet, listAttention, localDay, preparationStrategy, recordFeedback, reserveModelCall, saveAttention, sourceFingerprint, userText } from "./repository.js";
17
+ import { PERSONAL_PERSONA_GUIDANCE } from "../persona.js";
18
+ import { personalConversationState } from "../conversation-state.js";
19
19
  import { randomUUID } from "node:crypto";
20
20
  import { z } from "zod";
21
21
  //#region src/personal-agent/proactivity/service.ts
@@ -1,16 +1,16 @@
1
1
  import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
2
2
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
3
3
  import "../storage/sqlite/index.js";
4
+ import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
5
+ import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
6
+ import "../knowledge-memory/index.js";
4
7
  import { getActiveAssertionForSlot } from "../user-model/repository.js";
5
- import { isPersonalConversation } from "./repository.js";
6
- import { listPersonalResults } from "./result-reader.js";
7
- import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
8
+ import { getProjectForSession } from "../projects/workspace.js";
8
9
  import { canUseAssertion } from "../user-model/usage-policy.js";
9
10
  import "../user-model/index.js";
10
- import { getProjectForSession } from "../projects/workspace.js";
11
- import { isKnowledgeCurrent, knowledgeItemAllowed, listKnowledgeItems } from "../knowledge-memory/repository.js";
12
- import "../knowledge-memory/index.js";
13
- import { resolveUserContextSessionAccess } from "../user-context/access-policy.js";
11
+ import { isPersonalConversation } from "./repository.js";
12
+ import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
13
+ import { listPersonalResults } from "./result-reader.js";
14
14
  //#region src/personal-agent/prompt-context.ts
15
15
  const clip = (value, limit) => value && (value.length > limit ? `${value.slice(0, limit - 1)}…` : value);
16
16
  /** Keep complete JSON records and identifiers, even when the snapshot is incomplete. */
@@ -1,7 +1,7 @@
1
1
  import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
2
- import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
3
2
  import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE } from "./persona.js";
4
3
  import { PERSONAL_COMMUNICATION_RULES, PERSONAL_RELIABILITY_RULES } from "./communication.js";
4
+ import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
5
5
  //#region src/personal-agent/prompts.ts
6
6
  const DELEGATION_RULES = [
7
7
  "Answer directly when your capabilities suffice. Otherwise call personal_task(command=\"submit\") with a short objective. For a self-contained current request send {command:\"submit\", objective:\"short outcome\", useOriginalRequest:true}; command is required. With this mode, the host copies its entire stored text, including exact constraints. Preserve sourceRefs and explicitly requested Agent/Skills. Use a concise complete description instead when earlier conversation must be synthesized. Submit before reading materials. The background Task Router selects and starts the executor. After the tool succeeds, reply only with a short confirmation such as \"Submitted; I will report the result here.\" in the conversation language, then finish. Do not restate any task details, files, requirements or acceptance criteria, and do not wait for the worker. Remain available for conversation.",