@xopcai/xopc 0.0.474 → 0.0.475

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 (258) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/xopc.extension.json +1 -1
  3. package/dist/gateway/server/chunks.bin +953 -968
  4. package/dist/gateway/server/chunks.json +1 -1
  5. package/dist/gateway/static/root/assets/{activity-store-nD2NH0C7.js → activity-store-BK11iD5x.js} +1 -1
  6. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-D0JEEj2L.js → agent-avatar-dicebear-DZlgZHm9.js} +1 -1
  7. package/dist/gateway/static/root/assets/{agent-avatar-display-BxHA8hEW.js → agent-avatar-display-BDHjRaTK.js} +2 -2
  8. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-C7O0Aaq3.js → agent-defaults-settings-panel-Bicuh10_.js} +1 -1
  9. package/dist/gateway/static/root/assets/{agent-plugin-dialog--H7-gWL7.js → agent-plugin-dialog-hRZYhcLp.js} +1 -1
  10. package/dist/gateway/static/root/assets/{agents-CIcUUuaE.js → agents-C2DH8M4z.js} +3 -3
  11. package/dist/gateway/static/root/assets/{agents-admin-api-DyeFg0yq.js → agents-admin-api-_mp_Ew1u.js} +1 -1
  12. package/dist/gateway/static/root/assets/{api-DAWXH9Wf.js → api-D0r-2gWQ.js} +1 -1
  13. package/dist/gateway/static/root/assets/{api-LSz0L9gc.js → api-oA0NOKLI.js} +1 -1
  14. package/dist/gateway/static/root/assets/{app-management-settings-panel-CjXfqaEA.js → app-management-settings-panel-BrO0gY6b.js} +1 -1
  15. package/dist/gateway/static/root/assets/{appearance-settings-0Zl5M7iV.js → appearance-settings-h82Or0g-.js} +1 -1
  16. package/dist/gateway/static/root/assets/{apps-page-DDVJnHlm.js → apps-page-BknrhGJ9.js} +1 -1
  17. package/dist/gateway/static/root/assets/{archive-plugin-CMqJbzQ-.js → archive-plugin-Co_oRPj1.js} +1 -1
  18. package/dist/gateway/static/root/assets/{automation-api-DHGtNfOT.js → automation-api-CxLFngqe.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automation-result-state-DUBlVnPg.js → automation-result-state-CjiuyW-C.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automation-run-list-CuWKRWy0.js → automation-run-list-CLjSIujK.js} +1 -1
  21. package/dist/gateway/static/root/assets/{automation-task-card-Y4vC_7qq.js → automation-task-card-BS-RT312.js} +1 -1
  22. package/dist/gateway/static/root/assets/{automations-page-DBQyHgFW.js → automations-page-C1s0jwt9.js} +1 -1
  23. package/dist/gateway/static/root/assets/{automations-workspace-DRCt4lq0.js → automations-workspace-DIwYmYb1.js} +2 -2
  24. package/dist/gateway/static/root/assets/{binary-plugins-CMKEp-IB.js → binary-plugins-5GVlyrXg.js} +1 -1
  25. package/dist/gateway/static/root/assets/{block-editor-CQwjLxA9.js → block-editor-Dtz8JtrO.js} +1 -1
  26. package/dist/gateway/static/root/assets/{browser-settings-page-BA0i0h3v.js → browser-settings-page-CDUHHu0n.js} +1 -1
  27. package/dist/gateway/static/root/assets/capabilities-Clwtvm7F.js +1 -0
  28. package/dist/gateway/static/root/assets/{capabilities--EoyYsa8.js → capabilities-DFRrPT_I.js} +1 -1
  29. package/dist/gateway/static/root/assets/{capabilities-page-B5Ja0Knr.js → capabilities-page-2vSlbM-C.js} +2 -2
  30. package/dist/gateway/static/root/assets/{capabilities-settings-panel-C5WmcgqD.js → capabilities-settings-panel-CfEq0ob4.js} +2 -2
  31. package/dist/gateway/static/root/assets/{channels-BQPomrMC.js → channels-Bi0L3VP1.js} +1 -1
  32. package/dist/gateway/static/root/assets/{chat-agents-api-DI0TksSO.js → chat-agents-api-B-47bqbd.js} +1 -1
  33. package/dist/gateway/static/root/assets/{chat-chart-block-CNm3uFNf.js → chat-chart-block-DA2S21y2.js} +1 -1
  34. package/dist/gateway/static/root/assets/chat-page-DV7fS7_1.js +72 -0
  35. package/dist/gateway/static/root/assets/{chat-terminal-dock-D1DkoN9Y.js → chat-terminal-dock-CYAZic7B.js} +1 -1
  36. package/dist/gateway/static/root/assets/{chunk-KS7C4IRE-CiwuuyV8.js → chunk-KS7C4IRE-BPb7KheU.js} +2 -2
  37. package/dist/gateway/static/root/assets/{command-palette-api-DZt3IZKz.js → command-palette-api-BbSsGD48.js} +1 -1
  38. package/dist/gateway/static/root/assets/{composer-model-config-control-_doimXGR.js → composer-model-config-control-BFC8jNyK.js} +1 -1
  39. package/dist/gateway/static/root/assets/{composer-notifications-BE40dFxM.js → composer-notifications-Drbl5lKS.js} +1 -1
  40. package/dist/gateway/static/root/assets/{composer-payload-handoff-DMWTIrnl.js → composer-payload-handoff-DKLokix8.js} +1 -1
  41. package/dist/gateway/static/root/assets/{computer-settings-page-DJiToD0s.js → computer-settings-page-CVWaJ3L8.js} +1 -1
  42. package/dist/gateway/static/root/assets/{connected-providers-grid-CYWTW8cv.js → connected-providers-grid-NZP4qb6S.js} +1 -1
  43. package/dist/gateway/static/root/assets/{connection-usage-guide-QgwPzjZb.js → connection-usage-guide-BNoFtMol.js} +1 -1
  44. package/dist/gateway/static/root/assets/{connector-service-page-DkQsU_yu.js → connector-service-page-CzrdJ4JY.js} +1 -1
  45. package/dist/gateway/static/root/assets/{connectors-api-Bqac6cVg.js → connectors-api-KA6rkOJX.js} +1 -1
  46. package/dist/gateway/static/root/assets/{connectors-page-DSCQw53B.js → connectors-page-Bn6Z5xfy.js} +1 -1
  47. package/dist/gateway/static/root/assets/{date-picker-B0J_jDfr.js → date-picker-DgTDENzF.js} +1 -1
  48. package/dist/gateway/static/root/assets/{date-time-picker-Zr3u7nL1.js → date-time-picker-Gw4oSOk9.js} +1 -1
  49. package/dist/gateway/static/root/assets/{dependency-picker-CLD0xbpi.js → dependency-picker-BJDpQtKY.js} +1 -1
  50. package/dist/gateway/static/root/assets/{desktop-pet-CfQHdCjf.js → desktop-pet-BbIPYbvc.js} +1 -1
  51. package/dist/gateway/static/root/assets/{desktop-pet-settings-wlYidCpI.js → desktop-pet-settings-Cqzplufb.js} +1 -1
  52. package/dist/gateway/static/root/assets/{dev-view-store-DM2X7oYZ.js → dev-view-store-CXE5-Egp.js} +1 -1
  53. package/dist/gateway/static/root/assets/{device-pairing-wizard-DIjBN08k.js → device-pairing-wizard-DXFZiWMi.js} +1 -1
  54. package/dist/gateway/static/root/assets/{directory-picker-path-field-BJj6gT1z.js → directory-picker-path-field-DVFEzTAJ.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-authoritative-grants-DC9q_s91.js → extension-authoritative-grants-DAfeCx4B.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-debug-page-DBLJqOJ2.js → extension-debug-page-CNrjzlYX.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-iframe-host-DCdjl257.js → extension-iframe-host-DnautIj8.js} +1 -1
  58. package/dist/gateway/static/root/assets/{extension-marketplace-api-BEulqVpr.js → extension-marketplace-api-Bo_chffY.js} +1 -1
  59. package/dist/gateway/static/root/assets/{extension-message-router-DhEyQZWI.js → extension-message-router-D81YD6lm.js} +1 -1
  60. package/dist/gateway/static/root/assets/{extension-page-BpY2ZrxI.js → extension-page-BEY_ML_j.js} +1 -1
  61. package/dist/gateway/static/root/assets/{extension-provider-YdavG8wv.js → extension-provider-CrMilva_.js} +1 -1
  62. package/dist/gateway/static/root/assets/{extension-settings-page-BKvG-hJa.js → extension-settings-page-QRbfKUay.js} +1 -1
  63. package/dist/gateway/static/root/assets/{file-preview-surface-D71-xhLL.js → file-preview-surface-BSrIpn5C.js} +1 -1
  64. package/dist/gateway/static/root/assets/files-GdwDamkp.js +1 -0
  65. package/dist/gateway/static/root/assets/{gateway-config-swr-C-cx4ObA.js → gateway-config-swr-2VOPSLSq.js} +1 -1
  66. package/dist/gateway/static/root/assets/{gateway-realtime-Dh23j5Jx.js → gateway-realtime-CfceJ5WX.js} +1 -1
  67. package/dist/gateway/static/root/assets/gateway-realtime-store-Ca42Wsk6.js +1 -0
  68. package/dist/gateway/static/root/assets/{gateway-restart-F1q8XY7Y.js → gateway-restart-Dsg95Dwt.js} +1 -1
  69. package/dist/gateway/static/root/assets/{gateway-settings-WQ42gfHY.js → gateway-settings-CMgry8RK.js} +1 -1
  70. package/dist/gateway/static/root/assets/{gateway-startup-retry-Dx1dmgnX.js → gateway-startup-retry-D0i7dt51.js} +1 -1
  71. package/dist/gateway/static/root/assets/{global-defaults-api-C_Sn41rn.js → global-defaults-api-u-ado9kz.js} +1 -1
  72. package/dist/gateway/static/root/assets/{home-page-A3VCyEO8.js → home-page-Cs1kOdTH.js} +4 -4
  73. package/dist/gateway/static/root/assets/{image-generation-api-CvRiMNIJ.js → image-generation-api-DDHOD0Nx.js} +1 -1
  74. package/dist/gateway/static/root/assets/{imports-page-DJ2wJ2QG.js → imports-page-BxRXNvQx.js} +1 -1
  75. package/dist/gateway/static/root/assets/index-D0R_YIRE.js +11 -0
  76. package/dist/gateway/static/root/assets/index-g7f1Sp02.css +1 -0
  77. package/dist/gateway/static/root/assets/{install-connector-dialog-CyHz1Nys.js → install-connector-dialog-Rox2_5eU.js} +1 -1
  78. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Byb_rqj4.js → keyboard-shortcuts-settings-D7xlV7xT.js} +1 -1
  79. package/dist/gateway/static/root/assets/{local-app-workbench-page-D58zzTUZ.js → local-app-workbench-page-DLGY-zR3.js} +1 -1
  80. package/dist/gateway/static/root/assets/{local-apps-page-L6ODN66C.js → local-apps-page-Ct07GT0V.js} +1 -1
  81. package/dist/gateway/static/root/assets/{local-session-drafts-UN3vioSr.js → local-session-drafts-8PozABVy.js} +1 -1
  82. package/dist/gateway/static/root/assets/{locale-store-CnHhWsDP.js → locale-store-B4o4aDCg.js} +1 -1
  83. package/dist/gateway/static/root/assets/{logs-page-2rOEUxHs.js → logs-page-CtEv5J4C.js} +1 -1
  84. package/dist/gateway/static/root/assets/{management-api-CSkXaCjk.js → management-api-BBLUlEXt.js} +1 -1
  85. package/dist/gateway/static/root/assets/{management-settings-B1Enr-fL.js → management-settings-BjvQ4WiZ.js} +1 -1
  86. package/dist/gateway/static/root/assets/{markdown-view-CWhAtI1O.js → markdown-view-C7kqotD-.js} +1 -1
  87. package/dist/gateway/static/root/assets/mcp-conversation-setup-page-DfbMmlmC.js +1 -0
  88. package/dist/gateway/static/root/assets/{media-plugins-DVrn3x6D.js → media-plugins-B5XMcW5S.js} +1 -1
  89. package/dist/gateway/static/root/assets/{messages-CZCXd6Pj.js → messages-hlOsXkQ7.js} +2 -2
  90. package/dist/gateway/static/root/assets/{model-selector-D-9SUwg2.js → model-selector-BP-t33vd.js} +1 -1
  91. package/dist/gateway/static/root/assets/{models-hub-cache-qgre89p2.js → models-hub-cache-B0z5Ptmt.js} +1 -1
  92. package/dist/gateway/static/root/assets/{new-chat-navigation-DXYDldT_.js → new-chat-navigation-BA1IB3hy.js} +1 -1
  93. package/dist/gateway/static/root/assets/{note-detail-panel-4Pd0mAhL.js → note-detail-panel-BS7pKIMu.js} +3 -3
  94. package/dist/gateway/static/root/assets/note-image-lightbox-DrVGs1eQ.js +1 -0
  95. package/dist/gateway/static/root/assets/{notes-api-_jYkMe8e.js → notes-api-B3Kc4909.js} +1 -1
  96. package/dist/gateway/static/root/assets/notes-page-DBz5y6aX.js +8 -0
  97. package/dist/gateway/static/root/assets/{oauth-api-CaWkle-J.js → oauth-api-CW1XhW42.js} +1 -1
  98. package/dist/gateway/static/root/assets/{oauth-provider-connect-DTsztbWi.js → oauth-provider-connect-3QGibJMl.js} +1 -1
  99. package/dist/gateway/static/root/assets/{page-context-capture-button-CYMb3IZu.js → page-context-capture-button-Dtvz4KwD.js} +1 -1
  100. package/dist/gateway/static/root/assets/{page-context-draft-D441lgCD.js → page-context-draft-DpDsGHtl.js} +1 -1
  101. package/dist/gateway/static/root/assets/{page-header-store-7jhoVGK_.js → page-header-store-D_2QZ6Ps.js} +1 -1
  102. package/dist/gateway/static/root/assets/page-tabs-DoYMKhVO.js +1 -0
  103. package/dist/gateway/static/root/assets/{personal-avatar-CAATciod.js → personal-avatar-D5VUVQGE.js} +1 -1
  104. package/dist/gateway/static/root/assets/{personal-page-DCcipmsB.js → personal-page-DpmhcQoZ.js} +1 -1
  105. package/dist/gateway/static/root/assets/{personal-profile-settings-CZhQ4fwt.js → personal-profile-settings-KGDtrQK7.js} +1 -1
  106. package/dist/gateway/static/root/assets/{personal-settings-panel-CMaFnp1G.js → personal-settings-panel-DBlUrnCy.js} +1 -1
  107. package/dist/gateway/static/root/assets/{phone-dependencies-card-BlFgKeRz.js → phone-dependencies-card-CREmmRxI.js} +1 -1
  108. package/dist/gateway/static/root/assets/{phone-model-connection-DF_E69Sv.js → phone-model-connection-BDzr9jXL.js} +1 -1
  109. package/dist/gateway/static/root/assets/{phone-model-picker-D3O3vql4.js → phone-model-picker-DSQF-RxW.js} +1 -1
  110. package/dist/gateway/static/root/assets/{phone-settings-page-d2OEqR-2.js → phone-settings-page-gP5kr3VO.js} +1 -1
  111. package/dist/gateway/static/root/assets/{phone-workspace-store-BrXIdz55.js → phone-workspace-store-B0mF8oMk.js} +1 -1
  112. package/dist/gateway/static/root/assets/{plugin-details-dialog-tpugwKl1.js → plugin-details-dialog-43jCnG5n.js} +1 -1
  113. package/dist/gateway/static/root/assets/{preference-select-fields-DXMfKUtD.js → preference-select-fields-VqtR_pOy.js} +1 -1
  114. package/dist/gateway/static/root/assets/{preview-runtime-Bd9e2ent.js → preview-runtime-BWkErYI2.js} +3 -3
  115. package/dist/gateway/static/root/assets/{product-automation-feedback-DmdIebRg.js → product-automation-feedback-D43XiQq6.js} +1 -1
  116. package/dist/gateway/static/root/assets/{product-open-page-DnPJLzt7.js → product-open-page-CQMoDCO1.js} +1 -1
  117. package/dist/gateway/static/root/assets/{product-preview-content-hChoKYQM.js → product-preview-content-CkQebfi-.js} +1 -1
  118. package/dist/gateway/static/root/assets/{product-preview-modal-CwAjfaEd.js → product-preview-modal-DToUA1EF.js} +2 -2
  119. package/dist/gateway/static/root/assets/{project-detail-page-BYZdStns.js → project-detail-page-D6Y3kdtF.js} +2 -2
  120. package/dist/gateway/static/root/assets/{project-understanding-CeZ3CW6E.js → project-understanding-BScfv1pD.js} +1 -1
  121. package/dist/gateway/static/root/assets/{projects-page-BpARg2mt.js → projects-page-BCMWrLGf.js} +1 -1
  122. package/dist/gateway/static/root/assets/{providers-api-DjHMmSNk.js → providers-api-BIA2IARN.js} +1 -1
  123. package/dist/gateway/static/root/assets/{recording-upload-CxcMaBPr.js → recording-upload-Yy9r6kHe.js} +1 -1
  124. package/dist/gateway/static/root/assets/{registry-api-x3kjVVzC.js → registry-api-CmLu4MA9.js} +1 -1
  125. package/dist/gateway/static/root/assets/{remote-access-hub-Cuyfg5gz.js → remote-access-hub-BeG8Bgy0.js} +1 -1
  126. package/dist/gateway/static/root/assets/{resource-unavailable-ClTyW1KO.js → resource-unavailable-Dccp_uis.js} +1 -1
  127. package/dist/gateway/static/root/assets/{right-workspace-store-BgVMF75g.js → right-workspace-store-CFf15f36.js} +1 -1
  128. package/dist/gateway/static/root/assets/{route-preload-BPMOD0qt.js → route-preload-CvsNMwNp.js} +2 -2
  129. package/dist/gateway/static/root/assets/{routine-panel-DqCzH4o9.js → routine-panel-Cudq6VgR.js} +2 -2
  130. package/dist/gateway/static/root/assets/{runtime-tools-api-ZKJq8Y1c.js → runtime-tools-api-CFvov9Uy.js} +1 -1
  131. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-CSVS-0w1.js → runtime-tools-settings-panel-C7sHr-Lm.js} +1 -1
  132. package/dist/gateway/static/root/assets/{service-recommendation-list-Jbg55MsH.js → service-recommendation-list-Bz9QWUZc.js} +1 -1
  133. package/dist/gateway/static/root/assets/{session-api-JAcSuzXh.js → session-api-7-TPnKv0.js} +1 -1
  134. package/dist/gateway/static/root/assets/{session-manager-CvC5uo-A.js → session-manager-CJvUtul5.js} +1 -1
  135. package/dist/gateway/static/root/assets/{sessions-page-itpuSflW.js → sessions-page-DS-OExY1.js} +1 -1
  136. package/dist/gateway/static/root/assets/settings-advanced-gate-DHfrm0Zj.js +1 -0
  137. package/dist/gateway/static/root/assets/{settings-advanced-section-C-Rq-g2w.js → settings-advanced-section-BsqgVQL3.js} +1 -1
  138. package/dist/gateway/static/root/assets/{settings-mode-store-DWWvnHvd.js → settings-mode-store-BtwrUOdQ.js} +1 -1
  139. package/dist/gateway/static/root/assets/{settings-page-DppkfISC.js → settings-page-DEU9sOgT.js} +1 -1
  140. package/dist/gateway/static/root/assets/{settings-page-header-BnBbewrE.js → settings-page-header-DKgbD0Bc.js} +1 -1
  141. package/dist/gateway/static/root/assets/{settings-page-layout-DgRq0a-W.js → settings-page-layout-BE3vLWp_.js} +1 -1
  142. package/dist/gateway/static/root/assets/{setup-interaction-page-_UOcgWMs.js → setup-interaction-page-DLpGv0yp.js} +1 -1
  143. package/dist/gateway/static/root/assets/{setup-status-panel-fXdj1EOR.js → setup-status-panel-BMaFUPnt.js} +1 -1
  144. package/dist/gateway/static/root/assets/{share-link-dialog-BUzVn5kX.js → share-link-dialog-3RNzFIH3.js} +1 -1
  145. package/dist/gateway/static/root/assets/{share-preview-page-CIdxsC9i.js → share-preview-page-BRQ6t9CI.js} +1 -1
  146. package/dist/gateway/static/root/assets/{shares-api-DNlL_AwP.js → shares-api-B532SLIU.js} +1 -1
  147. package/dist/gateway/static/root/assets/{shares-settings-R2H0pdNK.js → shares-settings-CQSN1jLt.js} +1 -1
  148. package/dist/gateway/static/root/assets/{skill-api-D3iuvyp7.js → skill-api-x-ENFv-9.js} +1 -1
  149. package/dist/gateway/static/root/assets/{skill-list-api-K8n_AYMV.js → skill-list-api-CqmglPCz.js} +1 -1
  150. package/dist/gateway/static/root/assets/{skill-reload-api-BqxHK3K0.js → skill-reload-api-YeoxO91w.js} +1 -1
  151. package/dist/gateway/static/root/assets/{skills-page-BHciTWaw.js → skills-page-B30SsJL6.js} +1 -1
  152. package/dist/gateway/static/root/assets/space-page-Cjp2j2Xx.js +2 -0
  153. package/dist/gateway/static/root/assets/{system-settings-panel-BPyQzKf8.js → system-settings-panel-KXLPpyOW.js} +1 -1
  154. package/dist/gateway/static/root/assets/{task-detail-page-By5vozgo.js → task-detail-page-CH7jSUWA.js} +3 -3
  155. package/dist/gateway/static/root/assets/{task-header-title-lUJ0ls3u.js → task-header-title-DemBzQyz.js} +1 -1
  156. package/dist/gateway/static/root/assets/{task-result-evidence-CWpAUoNq.js → task-result-evidence-ZKcxDYVE.js} +1 -1
  157. package/dist/gateway/static/root/assets/{terminal-panel-store-D24y7GIK.js → terminal-panel-store-Ch8lOYIq.js} +1 -1
  158. package/dist/gateway/static/root/assets/{theme-store-VVHRSdNZ.js → theme-store-C7t81hG7.js} +1 -1
  159. package/dist/gateway/static/root/assets/{tracing-settings-page-D3tu_G8X.js → tracing-settings-page-CcyPoojp.js} +1 -1
  160. package/dist/gateway/static/root/assets/{tunnel-api-DwTTVUxp.js → tunnel-api-D713CJ9R.js} +1 -1
  161. package/dist/gateway/static/root/assets/{understanding-activity-store-BOIGCSnz.js → understanding-activity-store-mSawFpIz.js} +1 -1
  162. package/dist/gateway/static/root/assets/{understanding-refresh-store-mKqdZVjW.js → understanding-refresh-store-4M0xrc88.js} +1 -1
  163. package/dist/gateway/static/root/assets/{usage-page-B4MqbLKR.js → usage-page-DN1TcxWS.js} +1 -1
  164. package/dist/gateway/static/root/assets/{use-autosave-BcgfZd3f.js → use-autosave-BkVX6SyB.js} +1 -1
  165. package/dist/gateway/static/root/assets/{use-composer-attachments-Ca1eE6iV.js → use-composer-attachments-O2une3Cn.js} +1 -1
  166. package/dist/gateway/static/root/assets/{use-file-preview-expanded-BwB7VH_A.js → use-file-preview-expanded-6TirYKSr.js} +1 -1
  167. package/dist/gateway/static/root/assets/use-generated-media-CEJ5BBxX.js +1 -0
  168. package/dist/gateway/static/root/assets/{use-personal-profile-BDLuMaWC.js → use-personal-profile-DdjQjf9I.js} +1 -1
  169. package/dist/gateway/static/root/assets/{use-personal-work-Dfbs6S75.js → use-personal-work-CaO6D7sJ.js} +1 -1
  170. package/dist/gateway/static/root/assets/{use-realtime-voice-BrM12ktL.js → use-realtime-voice-D3hr1-yf.js} +1 -1
  171. package/dist/gateway/static/root/assets/{use-workspace-tree-AL4BVZhS.js → use-workspace-tree-D6IwkuTh.js} +1 -1
  172. package/dist/gateway/static/root/assets/{user-model-page-CqTB0BIf.js → user-model-page-D-F5GO3T.js} +2 -2
  173. package/dist/gateway/static/root/assets/{voice-api-key-field-BbVCvQrE.js → voice-api-key-field-gWJ6bx-H.js} +1 -1
  174. package/dist/gateway/static/root/assets/{voice-config-api-vtmTs-mq.js → voice-config-api-B1RtxiRq.js} +1 -1
  175. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-BhmaEWvI.js → voice-input-shortcut-events-C-8Ts1gq.js} +1 -1
  176. package/dist/gateway/static/root/assets/{voice-player-store-IVeW1g9y.js → voice-player-store-DyuAAbk0.js} +1 -1
  177. package/dist/gateway/static/root/assets/{voice-settings-JJfxv-lj.js → voice-settings-BgdC-Ae5.js} +1 -1
  178. package/dist/gateway/static/root/assets/{work-discovery-overlay-Bl2qHC88.js → work-discovery-overlay-CTLp1-tu.js} +1 -1
  179. package/dist/gateway/static/root/assets/{work-discovery-page-ChvUHm0f.js → work-discovery-page-B-UzFKIr.js} +1 -1
  180. package/dist/gateway/static/root/assets/{working-directory-picker-modal-BxeoaS6d.js → working-directory-picker-modal-DvVtUxHW.js} +1 -1
  181. package/dist/gateway/static/root/assets/{workspace-api-D_dxOn8W.js → workspace-api-DdVYTEEV.js} +2 -2
  182. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Bh4FYwVq.js +1 -0
  183. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-D0GxWvAv.js → workspace-file-preview-dialog-BTLLCHMI.js} +1 -1
  184. package/dist/gateway/static/root/assets/{workspace-open-location-menu-CCJISdeq.js → workspace-open-location-menu-sbOva_RI.js} +1 -1
  185. package/dist/gateway/static/root/assets/{workspace-preview-store-DKZ6gVL4.js → workspace-preview-store-DYd8E5bV.js} +1 -1
  186. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Cxt6wEom.js → xopc-cloud-account-card-BYuMOGaK.js} +1 -1
  187. package/dist/gateway/static/root/index.html +96 -96
  188. package/dist/package.js +1 -1
  189. package/dist/packages/gateway-contract/src/files.js +17 -3
  190. package/dist/packages/gateway-contract/src/home.js +1 -0
  191. package/dist/src/agent/agent-manager.js +1 -1
  192. package/dist/src/agent/commands/command-registry.d.ts +1 -1
  193. package/dist/src/agent/commands/command-registry.js +10 -1
  194. package/dist/src/agent/embedded/index.js +1 -1
  195. package/dist/src/agent/embedded/run-for-session.js +1 -1
  196. package/dist/src/agent/embedded/run-turn.js +3 -2
  197. package/dist/src/agent/embedded/runs.d.ts +3 -0
  198. package/dist/src/agent/embedded/runs.js +20 -2
  199. package/dist/src/agent/embedded/tool-search-extension.js +2 -0
  200. package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
  201. package/dist/src/agent/external-tools/discovery.js +1 -1
  202. package/dist/src/agent/external-tools/endpoint-provider.js +1 -1
  203. package/dist/src/agent/mcp/continuation-guard.js +1 -1
  204. package/dist/src/agent/mcp/conversation-setup.d.ts +220 -4
  205. package/dist/src/agent/mcp/conversation-setup.js +42 -27
  206. package/dist/src/agent/mcp/discovery.d.ts +5 -0
  207. package/dist/src/agent/mcp/discovery.js +47 -6
  208. package/dist/src/agent/prompt/conversational-configuration-guide.js +3 -2
  209. package/dist/src/agent/prompt/sections/tooling.js +1 -1
  210. package/dist/src/agent/tool-manuals/browser.d.ts +1 -1
  211. package/dist/src/agent/tool-manuals/browser.js +3 -1
  212. package/dist/src/agent/tool-manuals/xopc-configuration.d.ts +2 -2
  213. package/dist/src/agent/tool-manuals/xopc-configuration.js +10 -9
  214. package/dist/src/agent/tools/browser/tool/browser-use-tool.js +1 -1
  215. package/dist/src/agent/tools/exec-command.d.ts +1 -0
  216. package/dist/src/agent/tools/exec-command.js +11 -5
  217. package/dist/src/agent/tools/factory.js +7 -1
  218. package/dist/src/agent/tools/language-diagnostics.js +4 -1
  219. package/dist/src/agent/tools/managed-job-tool.js +3 -2
  220. package/dist/src/agent/tools/mcp-setup-tool.js +2 -2
  221. package/dist/src/agent/tools/phone-use-tool.js +1 -1
  222. package/dist/src/agent/tools/xopc-use-tool.d.ts +1 -0
  223. package/dist/src/agent/tools/xopc-use-tool.js +4 -3
  224. package/dist/src/automations/api/routes.js +17 -5
  225. package/dist/src/automations/capabilities/write.js +32 -4
  226. package/dist/src/automations/configuration-conversation.d.ts +7 -0
  227. package/dist/src/automations/configuration-conversation.js +13 -5
  228. package/dist/src/capabilities/runtime/product.js +1 -1
  229. package/dist/src/cli/commands/platform.js +2 -2
  230. package/dist/src/files/file-service.js +1 -0
  231. package/dist/src/files/file-versions.d.ts +15 -0
  232. package/dist/src/files/file-versions.js +87 -0
  233. package/dist/src/gateway/hono/routes/files.js +39 -0
  234. package/dist/src/gateway/hono/routes/personal-agent.js +9 -38
  235. package/dist/src/gateway/hono/routes/sessions.js +7 -1
  236. package/dist/src/gateway/security/gateway-principal.d.ts +1 -0
  237. package/dist/src/gateway/security/gateway-principal.js +9 -1
  238. package/dist/src/gateway/service.js +5 -5
  239. package/dist/src/personal-agent/schedules.d.ts +9 -1
  240. package/dist/src/personal-agent/schedules.js +32 -1
  241. package/dist/src/projects/index.js +1 -1
  242. package/dist/src/tasks/home-query-service.js +1 -0
  243. package/dist/src/tui/backends/embedded-backend.js +4 -3
  244. package/package.json +2 -2
  245. package/dist/gateway/static/root/assets/capabilities-DG-WesBp.js +0 -1
  246. package/dist/gateway/static/root/assets/chat-page-DO060oe9.js +0 -72
  247. package/dist/gateway/static/root/assets/files-BNL4kkSB.js +0 -1
  248. package/dist/gateway/static/root/assets/gateway-realtime-store-D_ZITqDi.js +0 -1
  249. package/dist/gateway/static/root/assets/index-Ca939klV.js +0 -11
  250. package/dist/gateway/static/root/assets/index-DrWdNdP4.css +0 -1
  251. package/dist/gateway/static/root/assets/mcp-conversation-setup-page-lOOFtIXe.js +0 -1
  252. package/dist/gateway/static/root/assets/note-image-lightbox-C1w4X0T6.js +0 -1
  253. package/dist/gateway/static/root/assets/notes-page-strWZLkP.js +0 -8
  254. package/dist/gateway/static/root/assets/page-tabs-oeTY7z3_.js +0 -1
  255. package/dist/gateway/static/root/assets/settings-advanced-gate-BEDT8_0u.js +0 -1
  256. package/dist/gateway/static/root/assets/space-api-C302hvkG.js +0 -1
  257. package/dist/gateway/static/root/assets/space-page-sfc82o9O.js +0 -2
  258. package/dist/gateway/static/root/assets/workspace-editor-agent-store-D5wq8Kme.js +0 -1
@@ -1,4 +1,5 @@
1
1
  import { runProcess } from "../../process/run-process.js";
2
+ import { getEmbeddedCommandYieldSignal } from "../embedded/runs.js";
2
3
  import { readWorkspaceRevision } from "../coding/workspace-revision.js";
3
4
  import { commandRegistry, commandTimeout } from "../commands/command-registry.js";
4
5
  import { getSessionInteractionPolicy } from "../session/interaction-policy.js";
@@ -19,7 +20,7 @@ const ExecCommandSchema = Type.Object({
19
20
  yieldTimeMs: Type.Optional(Type.Number({
20
21
  minimum: 0,
21
22
  maximum: 6e4,
22
- description: "Return a running job after this wait; manage it with managed_job. Omit to wait for completion. Cannot be combined with outputs."
23
+ description: "Return a running job after this wait; manage it with managed_job. Omit to wait for completion or a user steer. Cannot be combined with outputs, which require waiting through publication."
23
24
  })),
24
25
  reuseVerification: Type.Optional(Type.Boolean({ description: "Publish outputs using this exact command and cwd from a prior successful check at the identical workspace revision, without executing again. Requires outputs. Fails closed if no matching evidence; omit when a fresh execution is required." })),
25
26
  outputs: Type.Optional(Type.Array(Type.String({ minLength: 1 }), {
@@ -214,6 +215,8 @@ function createExecCommandTool(workspaceCwd, options) {
214
215
  }
215
216
  const runtimeEnv = options?.prepareEnv ? await options.prepareEnv(policy.sanitizedEnv, policy.effectiveCwd) : policy.sanitizedEnv;
216
217
  const registry = commandRegistry();
218
+ const yieldSignal = params.outputs?.length || options?.yieldOnSteer === false ? void 0 : getEmbeddedCommandYieldSignal();
219
+ let forwardOutput = onUpdate;
217
220
  successfulChecks.delete(checkKey);
218
221
  let commandResult = await registry.start({
219
222
  workspace: workspaceCwd,
@@ -230,7 +233,7 @@ function createExecCommandTool(workspaceCwd, options) {
230
233
  maxOutputChars,
231
234
  signal,
232
235
  snapshot: true,
233
- onOutput: (stream, delta) => onUpdate?.({
236
+ onOutput: (stream, delta) => forwardOutput?.({
234
237
  content: [],
235
238
  details: {
236
239
  kind: "command_output_delta",
@@ -242,12 +245,15 @@ function createExecCommandTool(workspaceCwd, options) {
242
245
  })
243
246
  });
244
247
  try {
245
- do
246
- commandResult = await registry.wait(owner, commandResult.id, params.yieldTimeMs ?? 6e4, signal);
247
- while (params.yieldTimeMs === void 0 && commandResult.status === "running");
248
+ do {
249
+ commandResult = await registry.wait(owner, commandResult.id, params.yieldTimeMs ?? 6e4, signal, yieldSignal);
250
+ signal?.throwIfAborted();
251
+ } while (params.yieldTimeMs === void 0 && commandResult.status === "running" && !yieldSignal?.aborted);
248
252
  } catch (error) {
249
253
  if (!signal?.aborted) throw error;
250
254
  commandResult = await registry.cancel(owner, commandResult.id);
255
+ } finally {
256
+ forwardOutput = void 0;
251
257
  }
252
258
  const baseDetails = {
253
259
  ...commandResult,
@@ -18,11 +18,11 @@ import { canRecallConversation, canRecallHistoryEntry } from "../../session/hist
18
18
  import { getExecutionEnvironmentForSession } from "../../execution-environments/subject.js";
19
19
  import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
20
20
  import { getActiveTranscriptUserText, getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
21
+ import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
21
22
  import { getSessionInteractionPolicy } from "../session/interaction-policy.js";
22
23
  import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
23
24
  import { PERSONAL_REQUEST_TOOL_IDS, TASK_EXECUTION_TOOL_IDS, filterExecutionTools, resolveExecutionToolPolicy } from "../embedded/execution-tool-policy.js";
24
25
  import { getPhoneRuntime, phoneExecutionContext } from "../../phone/runtime.js";
25
- import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
26
26
  import { createPhoneUseTool } from "./phone-use-tool.js";
27
27
  import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
28
28
  import { createPersonalAttentionTool } from "./personal-attention-tool.js";
@@ -462,6 +462,12 @@ var AgentToolsFactory = class AgentToolsFactory {
462
462
  const route = getConversationRouting(context.conversationId);
463
463
  return route?.accountId === context.metadata?.accountId && route.peerId.toLowerCase() === context.chatId.toLowerCase();
464
464
  },
465
+ canShowMcpSetupCard: () => {
466
+ const origin = this.deps.getCurrentContext()?.origin;
467
+ if (origin?.type !== "endpoint") return false;
468
+ const kind = this.deps.endpointTools?.registry.get(origin.endpointId)?.kind;
469
+ return kind === "web" || kind === "desktop";
470
+ },
465
471
  canConfigureFromConversation: () => {
466
472
  const origin = this.deps.getCurrentContext()?.origin;
467
473
  return origin?.type === "system" && origin.source === "cli" || origin?.type === "endpoint" && this.deps.canConfigureEndpoint?.(origin.endpointId) === true;
@@ -20,7 +20,10 @@ function quote(value) {
20
20
  return `'${value.replace(/'/g, `'\\''`)}'`;
21
21
  }
22
22
  function createLanguageDiagnosticsTool(workspace, options) {
23
- const exec = createExecCommandTool(workspace, options);
23
+ const exec = createExecCommandTool(workspace, {
24
+ ...options,
25
+ yieldOnSteer: false
26
+ });
24
27
  return {
25
28
  name: "language_diagnostics",
26
29
  label: "TypeScript diagnostics",
@@ -1,3 +1,4 @@
1
+ import { getEmbeddedCommandYieldSignal } from "../embedded/runs.js";
1
2
  import { commandRegistry, commandTimeout } from "../commands/command-registry.js";
2
3
  import { getSessionInteractionPolicy } from "../session/interaction-policy.js";
3
4
  import { evaluateExecPolicy } from "../sandbox/exec-policy.js";
@@ -61,7 +62,7 @@ function createManagedJobTool(workspace, getConversationId, getSkillPassthroughE
61
62
  return {
62
63
  name: "managed_job",
63
64
  label: "Managed Job",
64
- description: "Manage shell jobs, including jobs yielded by exec_command. Start returns an id; wait returns on completion or after at most 60s; stdin writes input; tty:true allocates a terminal and resize changes its dimensions; status/list/cancel inspect or stop jobs. Completed output and logs survive restart. Interrupted jobs require inspection before restart.",
65
+ description: "Manage shell jobs, including jobs yielded by exec_command. Start returns an id; wait returns on completion, a user steer, or after at most 60s; stdin writes input; tty:true allocates a terminal and resize changes its dimensions; status/list/cancel inspect or stop jobs. Completed output and logs survive restart. Interrupted jobs require inspection before restart.",
65
66
  parameters: ManagedJobSchema,
66
67
  supportsParallel: true,
67
68
  idempotent: false,
@@ -75,7 +76,7 @@ function createManagedJobTool(workspace, getConversationId, getSkillPassthroughE
75
76
  status: "failed",
76
77
  error: "Job is unavailable or stdin is closed"
77
78
  });
78
- return result((input.action === "wait" ? await registry.wait(owner, input.jobId, input.waitMs, signal) : input.action === "cancel" ? await registry.cancel(owner, input.jobId) : registry.get(owner, input.jobId)) ?? {
79
+ return result((input.action === "wait" ? await registry.wait(owner, input.jobId, input.waitMs, signal, getEmbeddedCommandYieldSignal()) : input.action === "cancel" ? await registry.cancel(owner, input.jobId) : registry.get(owner, input.jobId)) ?? {
79
80
  status: "failed",
80
81
  error: "Managed job not found"
81
82
  });
@@ -15,7 +15,7 @@ const schema = Type.Object({
15
15
  "set_enabled",
16
16
  "remove"
17
17
  ].map((value) => Type.Literal(value))),
18
- args: Type.Optional(Type.Record(Type.String(), Type.Any(), { description: "For a service name use discover {serviceName,purpose}, then propose {discoveryId,expectedVersion,plan,evidence}, select {discoveryId,expectedVersion,candidateId}, start {planId,expectedPlanVersion,serverId,purpose}. Read tool_manual topic mcp for plan fields and evidence. Explicit-address start: {serverId,url,purpose,displayName?,authentication?:\"auto\"|\"bearer\"|\"header\"|\"none\",transport?:\"streamable-http\"|\"sse\",secretFields?,helpUrl?,objective?:\"connect_only\"|\"complete_task\",expectedRevision?}. stdio start uses transport:\"stdio\" and execution instead of url and requires owner review. get: {setupId}. advance/cancel: {setupId,expectedVersion}. Never include credential values." }))
18
+ args: Type.Optional(Type.Record(Type.String(), Type.Any(), { description: "For a service name use discover {serviceName,purpose}, then propose {discoveryId,expectedVersion,plan,evidence}, select {discoveryId,expectedVersion,candidateId}, start {planId,expectedPlanVersion,serverId,purpose}. Read tool_manual topic mcp for plan fields and evidence. For documented manual Bearer authentication, quote the Token acquisition instructions and use the documented issuance URL as helpUrl. Explicit-address start: {serverId,url,purpose,displayName?,authentication?:\"auto\"|\"bearer\"|\"header\"|\"none\",transport?:\"streamable-http\"|\"sse\",secretFields?,helpUrl?,objective?:\"connect_only\"|\"complete_task\",expectedRevision?}. stdio start uses transport:\"stdio\" and execution instead of url and requires owner review. get: {setupId}. advance/cancel: {setupId,expectedVersion}. Never include credential values." }))
19
19
  });
20
20
  /** Small eager entry point; the existing product adapter owns authority and execution. */
21
21
  function createMcpSetupTool(deps) {
@@ -24,7 +24,7 @@ function createMcpSetupTool(deps) {
24
24
  name: "mcp_setup",
25
25
  label: "Connect MCP service",
26
26
  parameters: schema,
27
- description: "Discover and configure a requested MCP service from its name or explicit address on the Gateway host. For a name, discover official integration references and preserve evidence; do not guess the URL or ask the user for technical configuration. Read tool_manual xopc_use topic mcp. Explicit localhost addresses remain supported. Only connect means objective connect_only; a requested task means complete_task. Token/OAuth uses the exact host interaction link, never chat input. stdio execution and unverified publishers require owner review. The host resumes the original objective after verification; tool counts are not business results.",
27
+ description: "Discover and configure a requested MCP service from its name or explicit address. For a task that requires a named service with no matching usable tool, discover before asking for a URL or using a device. For a name, discover official integration references and preserve evidence; do not guess the URL or ask the user for technical configuration. Read tool_manual xopc_use topic mcp. Explicit localhost addresses remain supported. Only connect means objective connect_only; a requested task means complete_task. Token/OAuth uses the host chat card, or the returned secure link for text-only channels. Keep credentials out of chat. stdio execution and unverified publishers require owner review. The host resumes the original objective after verification; tool counts are not business results.",
28
28
  execute: (id, params, signal, update) => product.execute(id, {
29
29
  mode: "mcp_setup",
30
30
  command: params.command,
@@ -1,6 +1,6 @@
1
1
  import { PhoneError, PhoneInputSchema, init_contracts } from "../../phone/contracts.js";
2
- import { cancelPhoneAssistance, phoneResumeForRun, requirePhoneAssistance } from "../../phone/assistance.js";
3
2
  import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
3
+ import { cancelPhoneAssistance, phoneResumeForRun, requirePhoneAssistance } from "../../phone/assistance.js";
4
4
  import { Type } from "@sinclair/typebox";
5
5
  //#region src/agent/tools/phone-use-tool.ts
6
6
  init_contracts();
@@ -24,6 +24,7 @@ export interface XopcUseToolInput {
24
24
  export interface XopcUseToolDeps {
25
25
  getAgentToolAvailability?: (agentId: string, tool: string) => import('../../agent-matching/service.js').AvailabilityCheck;
26
26
  canConfigureFromConversation?: () => boolean;
27
+ canShowMcpSetupCard?: () => boolean;
27
28
  canRequestWeixinMcpSetup?: () => boolean;
28
29
  getPhoneSetupService?: () => import('../../phone/setup/service.js').PhoneSetupService | undefined;
29
30
  getBrowserSetupService?: () => import('../../browser/setup/service.js').BrowserSetupService | undefined;
@@ -18,16 +18,16 @@ import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js
18
18
  import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
19
19
  import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
20
20
  import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
21
+ import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
21
22
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
22
23
  import { getAutomationSetup } from "../../automations/configuration-conversation.js";
23
- import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
24
24
  import "../../capabilities/runtime/dispatcher.js";
25
25
  import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
26
- import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
27
26
  import { resolveProjectAgentId } from "../../projects/project-agent.js";
28
27
  import "../../projects/index.js";
29
28
  import { parseTaskConversationExcerpts, parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
30
29
  import { TaskApplicationService } from "../../tasks/task-application-service.js";
30
+ import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
31
31
  import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
32
32
  import { TaskMutationOutputSchema } from "../../tasks/capabilities/write.js";
33
33
  import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
@@ -2041,7 +2041,8 @@ function createXopcUseTool(deps) {
2041
2041
  return !deps.authorizeCapability || await deps.authorizeCapability(tool, params);
2042
2042
  },
2043
2043
  canConfigure: deps.canConfigureFromConversation?.() === true,
2044
- canRequestWeixinSetup: deps.canRequestWeixinMcpSetup?.() === true
2044
+ canRequestWeixinSetup: deps.canRequestWeixinMcpSetup?.() === true,
2045
+ showSetupCard: deps.canShowMcpSetupCard?.() === true
2045
2046
  }, dryRun)
2046
2047
  });
2047
2048
  } catch (error) {
@@ -1,9 +1,11 @@
1
1
  import { AutomationCancelOutputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRunMutationOutputSchema, ProductReadContracts } from "../../../packages/gateway-contract/src/capabilities.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
3
  import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
4
+ import { getPersonalAgent } from "../../personal-agent/repository.js";
4
5
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
5
6
  import { getAutomationSetup, openAutomationConfiguration } from "../configuration-conversation.js";
6
7
  import "../../capabilities/runtime/dispatcher.js";
8
+ import { getPersonalOwnerId } from "../../gateway/security/gateway-principal.js";
7
9
  import { capabilityHttpContext, capabilityHttpError } from "../../capabilities/adapters/http.js";
8
10
  import { createAutomationDispatcher } from "./dispatcher.js";
9
11
  import { randomUUID } from "node:crypto";
@@ -37,14 +39,24 @@ function registerAutomationRoutes(authenticated, deps) {
37
39
  if (!body || typeof body !== "object" || Array.isArray(body) || Object.keys(body).some((key) => ![
38
40
  "automationId",
39
41
  "projectId",
40
- "runId"
41
- ].includes(key)) || body.automationId !== void 0 && typeof body.automationId !== "string" || body.projectId !== void 0 && typeof body.projectId !== "string" || body.runId !== void 0 && typeof body.runId !== "string") throw new CapabilityError("INVALID_INPUT", "Expected automationId or projectId");
42
- if (body.projectId && !service.projects?.get(body.projectId)) throw new CapabilityError("NOT_FOUND", "Project not found");
42
+ "runId",
43
+ "personalLocale"
44
+ ].includes(key)) || body.automationId !== void 0 && typeof body.automationId !== "string" || body.projectId !== void 0 && typeof body.projectId !== "string" || body.runId !== void 0 && typeof body.runId !== "string" || body.personalLocale !== void 0 && (body.personalLocale !== "zh" && body.personalLocale !== "en" || body.automationId !== void 0 || body.projectId !== void 0 || body.runId !== void 0)) throw new CapabilityError("INVALID_INPUT", "Invalid automation configuration scope");
45
+ const projectId = body.projectId?.trim() || void 0;
46
+ if (projectId && !service.projects?.get(projectId)) throw new CapabilityError("NOT_FOUND", "Project not found");
47
+ const ownerId = body.personalLocale ? getPersonalOwnerId(c) : null;
48
+ if (body.personalLocale && !ownerId) throw new CapabilityError("FORBIDDEN", "Owner access is required");
49
+ const profile = ownerId ? getPersonalAgent(ownerId) : null;
50
+ if (ownerId && profile?.state !== "ready") throw new CapabilityError("NOT_FOUND", "Personal Agent is unavailable");
43
51
  const conversationId = openAutomationConfiguration({
44
52
  agentId: resolveDefaultAgentId(),
45
53
  automationId: body.automationId?.trim() || void 0,
46
- projectId: body.projectId?.trim() || void 0,
47
- runId: body.runId?.trim() || void 0
54
+ projectId,
55
+ runId: body.runId?.trim() || void 0,
56
+ personal: profile ? {
57
+ conversationId: profile.conversationId,
58
+ locale: body.personalLocale
59
+ } : void 0
48
60
  });
49
61
  return c.json({ conversationId }, 200);
50
62
  } catch (error) {
@@ -1,6 +1,9 @@
1
1
  import { AutomationCancelOutputSchema, AutomationDeleteInputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRecoveryOutputSchema, AutomationReplayEventInputSchema, AutomationRetryDeliveryInputSchema, AutomationRunMutationOutputSchema, AutomationSetEnabledInputSchema, CapabilityResourceInputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
3
  import { DurableState } from "../../storage/sqlite/durable-state.js";
4
+ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
5
+ import { init_session_repository } from "../../storage/sqlite/session-repository.js";
6
+ import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
4
7
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
5
8
  import { AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
6
9
  import { getAutomation } from "../storage/automation-repository.js";
@@ -8,13 +11,15 @@ import { getAutomationRun, markAllAutomationRunsRead, markAutomationRunRead } fr
8
11
  import "../storage/index.js";
9
12
  import { getAutomationEventForRun } from "../events/event-repository.js";
10
13
  import "../events/index.js";
11
- import { assertAutomationSetupTarget, bindAutomationSetup } from "../configuration-conversation.js";
14
+ import { assertAutomationSetupTarget, bindAutomationSetup, getAutomationSetup } from "../configuration-conversation.js";
12
15
  import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
13
16
  import { LocalAppAutomationSubmitSchema } from "../../local-apps/capabilities/projections.js";
14
17
  import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
18
+ import { personalScheduleInput } from "../../personal-agent/schedules.js";
15
19
  import { z } from "zod";
16
20
  //#region src/automations/capabilities/write.ts
17
21
  init_src();
22
+ init_session_repository();
18
23
  const triggerRequest = z.union([AutomationTriggerSchema, z.object({
19
24
  kind: z.literal("schedule"),
20
25
  schedule: z.object({
@@ -273,13 +278,36 @@ function registerAutomationWriteCapabilities(dispatcher, service, projects) {
273
278
  input: AutomationCreateCapabilityInputSchema,
274
279
  requestScope: (context) => context.conversationId ?? "",
275
280
  execute(input, context) {
276
- requireProject(input.projectId);
277
281
  assertAutomationSetupTarget(context.conversationId);
282
+ const setup = getAutomationSetup(context.conversationId);
283
+ const scopedProjectId = setup && context.conversationId ? getSessionMetadata(context.conversationId)?.projectId : void 0;
284
+ if (scopedProjectId && input.projectId && scopedProjectId !== input.projectId) throw new CapabilityError("INVALID_INPUT", "This configuration conversation belongs to another project");
285
+ const projectId = scopedProjectId ?? input.projectId;
286
+ requireProject(projectId);
278
287
  try {
279
- const automation = validateSchedule(() => service.createAtomically({
288
+ const trigger = materializeAutomationTrigger(input.trigger);
289
+ const personal = setup?.personal;
290
+ let automation;
291
+ if (personal) {
292
+ const profile = getPersonalAgentByConversation(personal.conversationId);
293
+ if (profile?.state !== "ready") throw new CapabilityError("NOT_FOUND", "Personal Agent is unavailable");
294
+ if (projectId || trigger.kind !== "schedule" || !trigger.schedule || input.action.kind !== "agent" || input.action.mcpSourceId) throw new CapabilityError("INVALID_INPUT", "Personal schedules require a schedule and a Personal Agent task instruction");
295
+ const request = personalScheduleInput(profile, {
296
+ id: input.id,
297
+ name: input.name,
298
+ description: input.description,
299
+ enabled: input.enabled,
300
+ schedule: trigger.schedule,
301
+ instruction: input.action.instruction,
302
+ locale: personal.locale,
303
+ notificationPolicy: input.delivery?.notificationPolicy
304
+ });
305
+ automation = validateSchedule(() => service.createAtomically(request));
306
+ } else automation = validateSchedule(() => service.createAtomically({
280
307
  ...input,
308
+ projectId,
281
309
  delivery: service.bindConversationDelivery(context.conversationId, input.delivery),
282
- trigger: materializeAutomationTrigger(input.trigger)
310
+ trigger
283
311
  }));
284
312
  bindAutomationSetup(context.conversationId, automation.id);
285
313
  return {
@@ -1,6 +1,11 @@
1
+ type PersonalSetup = {
2
+ conversationId: string;
3
+ locale: 'zh' | 'en';
4
+ };
1
5
  export type AutomationSetup = {
2
6
  automationId?: string;
3
7
  focusedRunId?: string;
8
+ personal?: PersonalSetup;
4
9
  };
5
10
  export declare function getAutomationSetup(conversationId?: string): AutomationSetup | null;
6
11
  /** Called inside the capability transaction so creation and association commit together. */
@@ -12,5 +17,7 @@ export declare function openAutomationConfiguration(input: {
12
17
  automationId?: string;
13
18
  projectId?: string;
14
19
  runId?: string;
20
+ personal?: PersonalSetup;
15
21
  }): string;
16
22
  export declare function buildAutomationSetupContext(conversationId?: string): string;
23
+ export {};
@@ -16,13 +16,16 @@ init_session_repository();
16
16
  init_transaction();
17
17
  function getAutomationSetup(conversationId) {
18
18
  if (!conversationId || !isXopcDatabaseOpen()) return null;
19
- const value = getSessionMetadata(conversationId)?.customData?.automationSetup;
19
+ const metadata = getSessionMetadata(conversationId);
20
+ const value = metadata?.customData?.automationSetup;
20
21
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
21
22
  const id = value.automationId;
22
23
  const focusedRunId = value.focusedRunId;
24
+ const personal = value.personal;
23
25
  return {
24
26
  ...typeof id === "string" && id ? { automationId: id } : {},
25
- ...typeof focusedRunId === "string" && focusedRunId ? { focusedRunId } : {}
27
+ ...typeof focusedRunId === "string" && focusedRunId ? { focusedRunId } : {},
28
+ ...metadata?.sourceChatId === "automation-configuration" && personal && typeof personal.conversationId === "string" && (personal.locale === "en" || personal.locale === "zh") ? { personal } : {}
26
29
  };
27
30
  }
28
31
  /** Called inside the capability transaction so creation and association commit together. */
@@ -32,7 +35,10 @@ function bindAutomationSetup(conversationId, automationId) {
32
35
  if (setup.automationId && setup.automationId !== automationId) throw new CapabilityError("INVALID_INPUT", "This configuration conversation belongs to another task");
33
36
  patchSessionMetadata(conversationId, { customData: {
34
37
  ...getSessionMetadata(conversationId).customData,
35
- automationSetup: { automationId }
38
+ automationSetup: {
39
+ automationId,
40
+ ...setup.personal ? { personal: setup.personal } : {}
41
+ }
36
42
  } });
37
43
  }
38
44
  function assertAutomationSetupTarget(conversationId, automationId) {
@@ -48,7 +54,7 @@ function openAutomationConfiguration(input) {
48
54
  const setup = automation ? {
49
55
  automationId: automation.id,
50
56
  ...run ? { focusedRunId: run.id } : {}
51
- } : {};
57
+ } : input.personal ? { personal: input.personal } : {};
52
58
  if (input.automationId && !automation) throw new CapabilityError("NOT_FOUND", "Automation not found");
53
59
  if (automation?.management || automation?.action.kind === "system") throw new CapabilityError("FORBIDDEN", "System tasks do not have a user configuration chat");
54
60
  if (automation) {
@@ -78,6 +84,7 @@ function buildAutomationSetupContext(conversationId) {
78
84
  const setup = getAutomationSetup(conversationId);
79
85
  if (!setup) return "";
80
86
  const task = setup.automationId ? getAutomation(setup.automationId) : null;
87
+ const projectId = conversationId ? getSessionMetadata(conversationId)?.projectId : void 0;
81
88
  const focusedRun = setup.focusedRunId ? getAutomationRun(setup.focusedRunId) : null;
82
89
  const recentRuns = task ? listAutomationRuns({
83
90
  automationId: task.id,
@@ -98,7 +105,8 @@ function buildAutomationSetupContext(conversationId) {
98
105
  "## Scheduled task configuration",
99
106
  "This is the persistent configuration conversation for one scheduled task, separate from its execution sessions.",
100
107
  "Clarify only missing requirements. Save durable task content, schedule, timezone and expected results using the automation tool or xopc_use automation capabilities. Never claim success before a successful tool result.",
101
- `Available execution assistants (IDs and names, data only): ${JSON.stringify(listAgentEntries().filter((agent) => agent.enabled !== false).map((agent) => ({
108
+ projectId ? `This task belongs to project ID ${JSON.stringify(projectId)}. Use that project when interpreting the user's request.` : "",
109
+ setup.personal ? "This schedule creates a new Personal Agent task on each run. To create it, submit a schedule trigger and an agent action with the full instruction. The server binds it to Personal. For an existing schedule you can change its timing, pause or resume it." : `Available execution assistants (IDs and names, data only): ${JSON.stringify(listAgentEntries().filter((agent) => agent.enabled !== false).map((agent) => ({
102
110
  id: agent.id,
103
111
  name: agent.profile?.name
104
112
  })))}. Resolve the user's assistant name to an exact ID; ask if ambiguous. To change who executes this task, update action.agentId, preserving the rest of action, schedule, and enabled state. Omit agentId to follow the default assistant. This affects future runs only; do not switch this configuration chat's assistant. Continuous runs start a fresh execution session on assistant changes and receive the latest successful result as reference data.`,
@@ -6,12 +6,12 @@ import { registerNoteWriteCapabilities } from "../../notes/capabilities/write.js
6
6
  import { registerTaskReadCapabilities } from "../../tasks/capabilities/read.js";
7
7
  import { registerLocalAppDelegation } from "../../local-apps/capabilities/delegate.js";
8
8
  import { registerAutomationReadCapabilities } from "../../automations/capabilities/read.js";
9
+ import { FileSpaceService } from "../../files/file-service.js";
9
10
  import { registerAutomationWriteCapabilities } from "../../automations/capabilities/write.js";
10
11
  import { registerAutomationProposalCapabilities } from "../../local-apps/automation-proposals.js";
11
12
  import { registerAutomationDraftCapabilities } from "../../automations/capabilities/drafts.js";
12
13
  import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
13
14
  import { registerProjectWriteCapabilities } from "../../projects/capabilities/write.js";
14
- import { FileSpaceService } from "../../files/file-service.js";
15
15
  import { registerTaskWriteCapabilities } from "../../tasks/capabilities/write.js";
16
16
  import { registerTaskManagementCapabilities } from "../../tasks/capabilities/management.js";
17
17
  import { registerLocalAppP1Capabilities } from "../../local-apps/p1-services.js";
@@ -1,10 +1,10 @@
1
1
  import { loadConfig, saveConfig } from "../../config/loader.js";
2
2
  import { formatExamples, register } from "../registry.js";
3
3
  import "../../config/index.js";
4
- import { getProfile, upsertAuthProfile } from "../../auth/profiles/profiles.js";
5
- import "../../auth/profiles/index.js";
6
4
  import { PLATFORM_RUNTIME_PROFILE, PLATFORM_RUNTIME_PROVIDER, PlatformRuntimeClient, discoverPlatform } from "../../platform/client.js";
7
5
  import "../../platform/index.js";
6
+ import { getProfile, upsertAuthProfile } from "../../auth/profiles/profiles.js";
7
+ import "../../auth/profiles/index.js";
8
8
  import { Command } from "commander";
9
9
  //#region src/cli/commands/platform.ts
10
10
  async function readStdin() {
@@ -289,6 +289,7 @@ function capabilities(name, directory, writable, textFile) {
289
289
  const result = ["download", "share"];
290
290
  if (MIME_TYPES[extension] || textFile) result.unshift("preview");
291
291
  if (writable) {
292
+ if (result.includes("preview")) result.push("save_version");
292
293
  if (textFile) result.push("edit");
293
294
  result.push("delete");
294
295
  }
@@ -0,0 +1,15 @@
1
+ import { type FileVersion } from '@xopcai/gateway-contract';
2
+ import { type FileSpaceService } from './file-service.js';
3
+ export declare const MAX_VERSION_BYTES: number;
4
+ export declare function listFileVersions(absolutePath: string): Promise<FileVersion[]>;
5
+ export declare function loadFileVersion(absolutePath: string, id: string): Promise<{
6
+ version: {
7
+ id: string;
8
+ revision: string;
9
+ name: string;
10
+ size: number;
11
+ createdAt: number;
12
+ };
13
+ content: NonSharedBuffer;
14
+ }>;
15
+ export declare function saveFileVersion(files: FileSpaceService, fileId: string, absolutePath: string, revision: string, id: string): Promise<FileVersion>;
@@ -0,0 +1,87 @@
1
+ import { init_paths_state, resolveStateDir } from "../config/paths-state.js";
2
+ import { FileVersionSchema } from "../../packages/gateway-contract/src/files.js";
3
+ import { init_src } from "../../packages/gateway-contract/src/index.js";
4
+ import { FileServiceError } from "./file-service.js";
5
+ import { join } from "node:path";
6
+ import { createHash } from "node:crypto";
7
+ import { copyFile, mkdir, mkdtemp, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
8
+ //#region src/files/file-versions.ts
9
+ init_src();
10
+ init_paths_state();
11
+ const MAX_VERSION_BYTES = 8 * 1024 * 1024;
12
+ function versionRoot(absolutePath) {
13
+ return join(resolveStateDir(), "file-versions", createHash("sha256").update(absolutePath).digest("hex"));
14
+ }
15
+ async function readVersion(directory) {
16
+ try {
17
+ return FileVersionSchema.parse(JSON.parse(await readFile(join(directory, "version.json"), "utf8")));
18
+ } catch (error) {
19
+ if (error.code === "ENOENT") return void 0;
20
+ throw error;
21
+ }
22
+ }
23
+ async function listFileVersions(absolutePath) {
24
+ const root = versionRoot(absolutePath);
25
+ const entries = await readdir(root, { withFileTypes: true }).catch((error) => {
26
+ if (error.code === "ENOENT") return [];
27
+ throw error;
28
+ });
29
+ const versions = [];
30
+ for (const entry of entries) {
31
+ if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
32
+ const version = await readVersion(join(root, entry.name));
33
+ if (version) versions.push(version);
34
+ }
35
+ return versions.sort((left, right) => right.createdAt - left.createdAt || right.id.localeCompare(left.id));
36
+ }
37
+ async function loadFileVersion(absolutePath, id) {
38
+ const directory = join(versionRoot(absolutePath), id);
39
+ const version = await readVersion(directory);
40
+ if (!version) throw new FileServiceError(404, "File version not found");
41
+ return {
42
+ version,
43
+ content: await readFile(join(directory, "content"))
44
+ };
45
+ }
46
+ async function saveFileVersion(files, fileId, absolutePath, revision, id) {
47
+ const current = await files.resource(fileId);
48
+ if (current.absolutePath !== absolutePath) throw new FileServiceError(409, "File has changed");
49
+ if (current.resource.kind !== "file" || !current.resource.capabilities.includes("save_version")) throw new FileServiceError(400, "File cannot be versioned");
50
+ const root = versionRoot(absolutePath);
51
+ const destination = join(root, id);
52
+ const previous = await readVersion(destination);
53
+ if (previous) {
54
+ if (previous.revision !== revision) throw new FileServiceError(409, "Version request has changed");
55
+ return previous;
56
+ }
57
+ if (current.resource.revision !== revision) throw new FileServiceError(409, "File has changed");
58
+ if (current.resource.size > 8388608) throw new FileServiceError(400, "File too large to save a version");
59
+ await mkdir(root, {
60
+ recursive: true,
61
+ mode: 448
62
+ });
63
+ const staging = await mkdtemp(join(root, ".pending-"));
64
+ try {
65
+ await copyFile(absolutePath, join(staging, "content"));
66
+ const rechecked = await files.resource(fileId);
67
+ if (rechecked.absolutePath !== absolutePath || rechecked.resource.revision !== revision) throw new FileServiceError(409, "File has changed");
68
+ const { name, size } = current.resource;
69
+ const version = {
70
+ id,
71
+ revision,
72
+ name,
73
+ size,
74
+ createdAt: Date.now()
75
+ };
76
+ await writeFile(join(staging, "version.json"), JSON.stringify(version), { mode: 384 });
77
+ await rename(staging, destination);
78
+ return version;
79
+ } finally {
80
+ await rm(staging, {
81
+ recursive: true,
82
+ force: true
83
+ });
84
+ }
85
+ }
86
+ //#endregion
87
+ export { MAX_VERSION_BYTES, listFileVersions, loadFileVersion, saveFileVersion };
@@ -1,13 +1,18 @@
1
+ import { FileVersionRequestSchema } from "../../../../packages/gateway-contract/src/files.js";
2
+ import { init_src } from "../../../../packages/gateway-contract/src/index.js";
1
3
  import { TaskRunRepository, init_task_run_repository } from "../../../tasks/task-run-repository.js";
2
4
  import { FileServiceError, fileResourceFromPath, parseFileResourceId, resolveFilePath } from "../../../files/file-service.js";
5
+ import { listFileVersions, loadFileVersion, saveFileVersion } from "../../../files/file-versions.js";
3
6
  import { buildFilePathClassifierContext, resolveFileReferenceCandidate } from "../../file-path-classifier.js";
4
7
  import { getGatewayFileSpaceService } from "../../file-space-service.js";
5
8
  import { getSessionPreparation } from "../../../storage/sqlite/session-creation-repository.js";
6
9
  import { fuzzySearchWorkspaceFiles, fuzzySubsequenceScore } from "../../workspace-file-search.js";
7
10
  import { registerFileReferenceRoutes } from "./file-references.js";
8
11
  import { basename, join } from "node:path";
12
+ import { z } from "zod";
9
13
  import { readFile, unlink, writeFile } from "node:fs/promises";
10
14
  //#region src/gateway/hono/routes/files.ts
15
+ init_src();
11
16
  init_task_run_repository();
12
17
  const mutationLocks = /* @__PURE__ */ new Map();
13
18
  async function withMutationLock(key, action) {
@@ -178,6 +183,40 @@ function registerFilesRoutes(authenticated, deps) {
178
183
  return errorResponse(c, error);
179
184
  }
180
185
  });
186
+ authenticated.get("/api/files/:id/versions", async (c) => {
187
+ try {
188
+ const { absolutePath } = await files.resource(c.req.param("id"));
189
+ return c.json({ versions: await listFileVersions(absolutePath) });
190
+ } catch (error) {
191
+ return errorResponse(c, error);
192
+ }
193
+ });
194
+ authenticated.post("/api/files/:id/versions", async (c) => {
195
+ try {
196
+ const payload = FileVersionRequestSchema.safeParse(await c.req.json().catch(() => null));
197
+ if (!payload.success) throw new FileServiceError(400, "Version id and revision are required");
198
+ const id = c.req.param("id");
199
+ const { absolutePath, space } = await files.resource(id);
200
+ if (!space.writable) throw new FileServiceError(403, "File space is read-only");
201
+ const version = await withMutationLock(absolutePath, () => saveFileVersion(files, id, absolutePath, payload.data.revision, payload.data.id));
202
+ return c.json({ version }, 201);
203
+ } catch (error) {
204
+ return errorResponse(c, error);
205
+ }
206
+ });
207
+ authenticated.get("/api/files/:id/versions/:versionId/content", async (c) => {
208
+ try {
209
+ const id = z.uuid().safeParse(c.req.param("versionId"));
210
+ if (!id.success) throw new FileServiceError(400, "Invalid version id");
211
+ const { absolutePath, resource } = await files.resource(c.req.param("id"));
212
+ const { version, content } = await loadFileVersion(absolutePath, id.data);
213
+ c.header("Content-Type", resource.mimeType);
214
+ c.header("Content-Disposition", contentDisposition("attachment", version.name));
215
+ return c.body(content);
216
+ } catch (error) {
217
+ return errorResponse(c, error);
218
+ }
219
+ });
181
220
  authenticated.delete("/api/files/:id", async (c) => {
182
221
  try {
183
222
  const id = c.req.param("id");