@xopcai/xopc 0.0.467 → 0.0.469

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 (465) hide show
  1. package/dist/browser-ext/dist/sidepanel.js +5 -0
  2. package/dist/browser-ext/manifest.json +1 -1
  3. package/dist/extensions/telegram/xopc.extension.json +1 -1
  4. package/dist/gateway/static/root/assets/{activity-store-CdEua6PR.js → activity-store-DKP2sWTJ.js} +1 -1
  5. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-l8GQ4I9J.js → agent-avatar-dicebear-BR85bT1W.js} +1 -1
  6. package/dist/gateway/static/root/assets/{agent-avatar-display-BO1bqKlR.js → agent-avatar-display-CIsejg_E.js} +2 -2
  7. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Dj_H2kDD.js → agent-defaults-settings-panel-CxLUEl0V.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agent-plugin-dialog-BQA2brAU.js → agent-plugin-dialog-Cvj04Ckm.js} +1 -1
  9. package/dist/gateway/static/root/assets/{agents-C5C5l13A.js → agents-DZftplJc.js} +3 -3
  10. package/dist/gateway/static/root/assets/{agents-admin-api-DZ1lLnrj.js → agents-admin-api-BL8lN8gP.js} +1 -1
  11. package/dist/gateway/static/root/assets/{api-DDWYNF7I.js → api-BnS9d0p6.js} +1 -1
  12. package/dist/gateway/static/root/assets/{api-DVXcGKP-.js → api-V4P8zfkJ.js} +1 -1
  13. package/dist/gateway/static/root/assets/{app-link-BkEO3eBe.js → app-link-CauYDM-y.js} +1 -1
  14. package/dist/gateway/static/root/assets/{app-management-settings-panel-B5-7E03Z.js → app-management-settings-panel-CAEry5Vu.js} +1 -1
  15. package/dist/gateway/static/root/assets/{appearance-settings-E_BcjEDM.js → appearance-settings-CphsmJgM.js} +1 -1
  16. package/dist/gateway/static/root/assets/{apps-page-BjB_mjXu.js → apps-page-CXKTWj1s.js} +1 -1
  17. package/dist/gateway/static/root/assets/{archive-plugin-MvSiDvxK.js → archive-plugin-DS6JWBPZ.js} +1 -1
  18. package/dist/gateway/static/root/assets/arrow-down-to-line-C5D8Vt-L.js +1 -0
  19. package/dist/gateway/static/root/assets/{attachment-load-DrVGNxJm.js → attachment-load-C9iZLUHv.js} +1 -1
  20. package/dist/gateway/static/root/assets/attachment-preview-renderer-_6GhoCYk.js +12 -0
  21. package/dist/gateway/static/root/assets/attachment-utils-core-BPYdUI6y.js +1 -0
  22. package/dist/gateway/static/root/assets/{automation-api-24NjW7qG.js → automation-api-GcRQ9wM4.js} +1 -1
  23. package/dist/gateway/static/root/assets/{automation-result-state-C94Q3OEL.js → automation-result-state-Dcp0JX0w.js} +1 -1
  24. package/dist/gateway/static/root/assets/{automation-run-list-BShRirWV.js → automation-run-list-BLejrWpG.js} +1 -1
  25. package/dist/gateway/static/root/assets/{automation-task-card-Bgq5Plux.js → automation-task-card-BNT3n0qu.js} +1 -1
  26. package/dist/gateway/static/root/assets/{automations-page-3WGWLdiW.js → automations-page-DqrAOReO.js} +1 -1
  27. package/dist/gateway/static/root/assets/automations-workspace-BYmFhO8E.js +9 -0
  28. package/dist/gateway/static/root/assets/binary-plugins-CnFVuJtL.js +2 -0
  29. package/dist/gateway/static/root/assets/{block-editor-DAWXPErA.js → block-editor-jy5CCmhH.js} +9 -9
  30. package/dist/gateway/static/root/assets/{browser-settings-page-DI2PYAPC.js → browser-settings-page-Dd2eTtvL.js} +1 -1
  31. package/dist/gateway/static/root/assets/{capabilities-Dyw8xW90.js → capabilities-CaJjMTli.js} +1 -1
  32. package/dist/gateway/static/root/assets/capabilities-YmBD7oK8.js +1 -0
  33. package/dist/gateway/static/root/assets/capabilities-page-XgIRdqCb.js +2 -0
  34. package/dist/gateway/static/root/assets/capabilities-settings-panel-DfyND0IO.js +8 -0
  35. package/dist/gateway/static/root/assets/channels-DwUmMnA1.js +1 -0
  36. package/dist/gateway/static/root/assets/{chat-agents-api-BksS0CNy.js → chat-agents-api-Bim8--J9.js} +1 -1
  37. package/dist/gateway/static/root/assets/{chat-chart-block-aZIklMNN.js → chat-chart-block-B_c5sy7q.js} +1 -1
  38. package/dist/gateway/static/root/assets/chat-page-DfFXhDRv.js +72 -0
  39. package/dist/gateway/static/root/assets/{chat-terminal-dock-B4HoRIzf.js → chat-terminal-dock-Dn7Cm1O4.js} +1 -1
  40. package/dist/gateway/static/root/assets/{command-palette-api-VhBEUFmw.js → command-palette-api-DPtCt8Je.js} +1 -1
  41. package/dist/gateway/static/root/assets/{composer-model-config-control-BhRAbdPW.js → composer-model-config-control-BF9PPSiu.js} +1 -1
  42. package/dist/gateway/static/root/assets/{composer-notifications-nT-U6jcc.js → composer-notifications-B0IZsy8x.js} +1 -1
  43. package/dist/gateway/static/root/assets/{composer-payload-handoff-xEFHDnLo.js → composer-payload-handoff-CRCz17sd.js} +1 -1
  44. package/dist/gateway/static/root/assets/{computer-settings-page-DXlH96m6.js → computer-settings-page-CtfitoMZ.js} +1 -1
  45. package/dist/gateway/static/root/assets/{connected-providers-grid-D8vBFsbY.js → connected-providers-grid-DUHMZjyV.js} +1 -1
  46. package/dist/gateway/static/root/assets/{connection-usage-guide-C8jPm7QO.js → connection-usage-guide-CM5qgMcK.js} +1 -1
  47. package/dist/gateway/static/root/assets/{connector-service-page-B42yWHxS.js → connector-service-page-DLbBblN2.js} +1 -1
  48. package/dist/gateway/static/root/assets/{connectors-api-so2a7xrD.js → connectors-api-BUdH4tZQ.js} +1 -1
  49. package/dist/gateway/static/root/assets/{connectors-page-yhOZIiUZ.js → connectors-page-HHGB3r3Q.js} +1 -1
  50. package/dist/gateway/static/root/assets/constants-D5Z-mUto.js +1 -0
  51. package/dist/gateway/static/root/assets/{date-picker-UEh3JM7r.js → date-picker-DRSq2kDz.js} +1 -1
  52. package/dist/gateway/static/root/assets/{date-time-picker-Dci0LfAU.js → date-time-picker--LGC1D3b.js} +1 -1
  53. package/dist/gateway/static/root/assets/{desktop-pet-BAU_GuBe.js → desktop-pet-1oXlQvjH.js} +1 -1
  54. package/dist/gateway/static/root/assets/{desktop-pet-settings-CYE2eTTf.js → desktop-pet-settings-GdOjz7W9.js} +1 -1
  55. package/dist/gateway/static/root/assets/{dev-view-store-C7v4CIlF.js → dev-view-store-DnQ2nBtV.js} +1 -1
  56. package/dist/gateway/static/root/assets/{device-pairing-wizard-7NDkYmiZ.js → device-pairing-wizard-eWeHH6Ru.js} +1 -1
  57. package/dist/gateway/static/root/assets/{directory-picker-path-field-DmRZY8kg.js → directory-picker-path-field-DBe_paLy.js} +1 -1
  58. package/dist/gateway/static/root/assets/extension-authoritative-grants-BqtUnmq-.js +1 -0
  59. package/dist/gateway/static/root/assets/{extension-debug-page-D8TAJgZ_.js → extension-debug-page-DIAyDA-a.js} +1 -1
  60. package/dist/gateway/static/root/assets/{extension-iframe-host-CjfRKtQ4.js → extension-iframe-host-CCe4R7L7.js} +1 -1
  61. package/dist/gateway/static/root/assets/{extension-marketplace-api-V1oFBxVi.js → extension-marketplace-api-baFXdV56.js} +1 -1
  62. package/dist/gateway/static/root/assets/{extension-message-router-DZahH1Hd.js → extension-message-router-BD0ZamBV.js} +1 -1
  63. package/dist/gateway/static/root/assets/{extension-page-DMuHBIHa.js → extension-page-C09dlV3J.js} +1 -1
  64. package/dist/gateway/static/root/assets/{extension-provider-lqJ1zIkA.js → extension-provider-BhluafoX.js} +1 -1
  65. package/dist/gateway/static/root/assets/{extension-settings-page-D5IfKVff.js → extension-settings-page-CB8KLYoG.js} +1 -1
  66. package/dist/gateway/static/root/assets/file-CStvVK2S.js +1 -0
  67. package/dist/gateway/static/root/assets/{file-BqMS_3DT.js → file-code-corner-byQA1VfD.js} +1 -1
  68. package/dist/gateway/static/root/assets/file-icon-N6WjUhq_.js +1 -0
  69. package/dist/gateway/static/root/assets/{file-preview-surface-B7B9qXm9.js → file-preview-surface-CeFFZo3a.js} +1 -1
  70. package/dist/gateway/static/root/assets/file-tree-CYUkQR1t.js +1 -0
  71. package/dist/gateway/static/root/assets/{gateway-config-swr-Dk3FtNv1.js → gateway-config-swr-DVXDJNCI.js} +1 -1
  72. package/dist/gateway/static/root/assets/{gateway-realtime-DMvo4pAc.js → gateway-realtime-BnwNxbyc.js} +1 -1
  73. package/dist/gateway/static/root/assets/gateway-realtime-store-BpnGXAhi.js +1 -0
  74. package/dist/gateway/static/root/assets/{gateway-restart-C2h5R1eP.js → gateway-restart-Bws2Shaz.js} +1 -1
  75. package/dist/gateway/static/root/assets/{gateway-settings-DGPaikv5.js → gateway-settings-BU5Cp4Bw.js} +1 -1
  76. package/dist/gateway/static/root/assets/{gateway-startup-retry-yZn7ShiP.js → gateway-startup-retry-2jU7zCyx.js} +1 -1
  77. package/dist/gateway/static/root/assets/{global-defaults-api-gsAa0Kj9.js → global-defaults-api-CNyJ0dGb.js} +1 -1
  78. package/dist/gateway/static/root/assets/{home-page-BBTtXpDD.js → home-page-8KwhWlYt.js} +3 -3
  79. package/dist/gateway/static/root/assets/{image-generation-api-DPn1SBMH.js → image-generation-api-CiqQSx5j.js} +1 -1
  80. package/dist/gateway/static/root/assets/{imports-page-Cc48Uq20.js → imports-page-B9JMNXwt.js} +1 -1
  81. package/dist/gateway/static/root/assets/index-CZUfwwLp.css +1 -0
  82. package/dist/gateway/static/root/assets/index-D5hovYIw.js +11 -0
  83. package/dist/gateway/static/root/assets/{install-connector-dialog-QkJMw_uW.js → install-connector-dialog-BZjodnUC.js} +1 -1
  84. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BZXqXuI4.js → keyboard-shortcuts-settings-A37hYJtR.js} +1 -1
  85. package/dist/gateway/static/root/assets/local-app-workbench-page-DmzgjJNj.js +1 -0
  86. package/dist/gateway/static/root/assets/{local-apps-page-D-bRvlZY.js → local-apps-page-Ct8z2B7R.js} +1 -1
  87. package/dist/gateway/static/root/assets/{local-session-drafts-CZ19DRRK.js → local-session-drafts-CgAuYyKi.js} +1 -1
  88. package/dist/gateway/static/root/assets/{locale-store-DIBIYLnI.js → locale-store-Cit_aHqC.js} +1 -1
  89. package/dist/gateway/static/root/assets/logs-page-CH9amuGc.js +2 -0
  90. package/dist/gateway/static/root/assets/{management-api-EG5duPec.js → management-api-DG-yZnHK.js} +1 -1
  91. package/dist/gateway/static/root/assets/{management-settings-B7RWHrwo.js → management-settings-CUQd0FJ3.js} +1 -1
  92. package/dist/gateway/static/root/assets/{markdown-view-C30KvTaE.js → markdown-view-Dm01GIXv.js} +1 -1
  93. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-BZ1PDTYY.js → mcp-conversation-setup-page-YvPXchDz.js} +1 -1
  94. package/dist/gateway/static/root/assets/{media-plugins-CW5UoTx6.js → media-plugins-jsWNdARw.js} +1 -1
  95. package/dist/gateway/static/root/assets/messages-DQveK9sk.js +3 -0
  96. package/dist/gateway/static/root/assets/{model-selector-COGICRIG.js → model-selector-Cg2kTsE7.js} +1 -1
  97. package/dist/gateway/static/root/assets/models-hub-cache-B2QcrY4n.js +1 -0
  98. package/dist/gateway/static/root/assets/note-detail-panel-DeFb2HEC.js +7 -0
  99. package/dist/gateway/static/root/assets/note-image-lightbox-DUzoWZEe.js +1 -0
  100. package/dist/gateway/static/root/assets/notes-api-BMSPkAm8.js +1 -0
  101. package/dist/gateway/static/root/assets/notes-page-nvqpOeHp.js +8 -0
  102. package/dist/gateway/static/root/assets/{oauth-api-enDU_32p.js → oauth-api-Bz_PU9R_.js} +1 -1
  103. package/dist/gateway/static/root/assets/{oauth-provider-connect-C2pfvPOI.js → oauth-provider-connect-BexlZuZ4.js} +1 -1
  104. package/dist/gateway/static/root/assets/{page-context-capture-button-BaSooYGv.js → page-context-capture-button-Cn4zi3Mt.js} +1 -1
  105. package/dist/gateway/static/root/assets/{page-context-draft-4-3RtO0q.js → page-context-draft-BjbX5zd7.js} +1 -1
  106. package/dist/gateway/static/root/assets/page-header-store-1-lflHAx.js +1 -0
  107. package/dist/gateway/static/root/assets/personal-avatar-CM3vUGhL.js +1 -0
  108. package/dist/gateway/static/root/assets/personal-avatar-DsEp8QJ7.css +1 -0
  109. package/dist/gateway/static/root/assets/personal-page-HFjWZacf.js +1 -0
  110. package/dist/gateway/static/root/assets/{personal-profile-settings-DwMdjQ6H.js → personal-profile-settings-CNI5Eor6.js} +1 -1
  111. package/dist/gateway/static/root/assets/{personal-settings-panel-DiNpP_g3.js → personal-settings-panel-BcrpYRn9.js} +1 -1
  112. package/dist/gateway/static/root/assets/{phone-dependencies-card-DUT-qRLZ.js → phone-dependencies-card-CJ3ovsW1.js} +1 -1
  113. package/dist/gateway/static/root/assets/{phone-model-connection-pvOciDNo.js → phone-model-connection-DKvOEjWH.js} +1 -1
  114. package/dist/gateway/static/root/assets/{phone-model-picker-CD97E6C5.js → phone-model-picker-CNTcpY1A.js} +1 -1
  115. package/dist/gateway/static/root/assets/{phone-settings-page-BUZ1dh7s.js → phone-settings-page-DvX6okzz.js} +1 -1
  116. package/dist/gateway/static/root/assets/{phone-workspace-store-BwilERgv.js → phone-workspace-store-CKOW55gy.js} +1 -1
  117. package/dist/gateway/static/root/assets/playback-coordinator-CWHIf0wr.js +1 -0
  118. package/dist/gateway/static/root/assets/{plugin-details-dialog-C_uOVmJv.js → plugin-details-dialog-BDoSffLO.js} +1 -1
  119. package/dist/gateway/static/root/assets/{preference-select-fields-BSUgcO7-.js → preference-select-fields-BKmzpfHq.js} +1 -1
  120. package/dist/gateway/static/root/assets/presentation-D-Ui_vVA.js +1 -0
  121. package/dist/gateway/static/root/assets/preview-runtime-RnBDP-Lq.js +15 -0
  122. package/dist/gateway/static/root/assets/product-automation-feedback-xAcXeJM2.js +7 -0
  123. package/dist/gateway/static/root/assets/product-delivery-4gEqUIsK.js +1 -0
  124. package/dist/gateway/static/root/assets/{product-open-page-Dy6D5exJ.js → product-open-page-DXwOPgRP.js} +1 -1
  125. package/dist/gateway/static/root/assets/{product-preview-content-DEUPAilo.js → product-preview-content-DiQbeaCK.js} +1 -1
  126. package/dist/gateway/static/root/assets/{product-preview-modal-C4TV9RUd.js → product-preview-modal-BU7Qojpq.js} +2 -2
  127. package/dist/gateway/static/root/assets/project-detail-page-Dr5_WPRB.js +7 -0
  128. package/dist/gateway/static/root/assets/{project-understanding-lOJ5Tz2V.js → project-understanding-Dv26vu9S.js} +1 -1
  129. package/dist/gateway/static/root/assets/{projects-page-B3aGdPHy.js → projects-page-DGATZB23.js} +1 -1
  130. package/dist/gateway/static/root/assets/{providers-api-C26HgxZY.js → providers-api-BXa2Aheb.js} +1 -1
  131. package/dist/gateway/static/root/assets/recording-upload-CQdhrRq3.js +1 -0
  132. package/dist/gateway/static/root/assets/{registry-api-pQ0eInzG.js → registry-api-BEnvt9-6.js} +1 -1
  133. package/dist/gateway/static/root/assets/{remote-access-hub-CjWrYzjf.js → remote-access-hub-_7tmWand.js} +1 -1
  134. package/dist/gateway/static/root/assets/{resource-unavailable-Y9WRHOnz.js → resource-unavailable-fk26VrOL.js} +1 -1
  135. package/dist/gateway/static/root/assets/right-workspace-store-NXMrEuwH.js +1 -0
  136. package/dist/gateway/static/root/assets/route-preload-D-pdVwIK.js +2 -0
  137. package/dist/gateway/static/root/assets/routine-panel-rjq-8nZ8.js +2 -0
  138. package/dist/gateway/static/root/assets/{runtime-tools-api-BoJQ3u5o.js → runtime-tools-api-CL6CG-qq.js} +1 -1
  139. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DB7cfLrX.js → runtime-tools-settings-panel-CdvQRxCR.js} +1 -1
  140. package/dist/gateway/static/root/assets/scan-search-CSIGkseh.js +1 -0
  141. package/dist/gateway/static/root/assets/{service-recommendation-list-_rFmwIwY.js → service-recommendation-list-2UOjV0Mx.js} +1 -1
  142. package/dist/gateway/static/root/assets/{session-api-a6wb0_Gf.js → session-api-CkOliupg.js} +1 -1
  143. package/dist/gateway/static/root/assets/session-manager-BVS3zxRZ.js +22 -0
  144. package/dist/gateway/static/root/assets/{sessions-page-dEupc-3A.js → sessions-page-CN9ESZdY.js} +1 -1
  145. package/dist/gateway/static/root/assets/settings-advanced-gate-BYrXsPjK.js +1 -0
  146. package/dist/gateway/static/root/assets/{settings-advanced-section-CnGJr2xp.js → settings-advanced-section-Zex2dJo7.js} +1 -1
  147. package/dist/gateway/static/root/assets/{settings-mode-store-DWRhupcY.js → settings-mode-store-Dk0bZQgo.js} +1 -1
  148. package/dist/gateway/static/root/assets/{settings-page-D9A2DdJ_.js → settings-page-bCW4rave.js} +1 -1
  149. package/dist/gateway/static/root/assets/{settings-page-header-wL2jvs-y.js → settings-page-header-B9Y_eGcH.js} +1 -1
  150. package/dist/gateway/static/root/assets/{settings-page-layout-BkUQVmyY.js → settings-page-layout-D1MgJ5zP.js} +1 -1
  151. package/dist/gateway/static/root/assets/{setup-interaction-page-D238tuw-.js → setup-interaction-page-BYXDX0F2.js} +1 -1
  152. package/dist/gateway/static/root/assets/{setup-status-panel-DXvYjIu3.js → setup-status-panel-Bhda3jS2.js} +1 -1
  153. package/dist/gateway/static/root/assets/{share-link-dialog-DFDJyl3N.js → share-link-dialog-BxFk4-4u.js} +1 -1
  154. package/dist/gateway/static/root/assets/share-preview-page-nzWjWhqF.js +2 -0
  155. package/dist/gateway/static/root/assets/{shares-api-CfFiW03g.js → shares-api-ChBHTPKN.js} +1 -1
  156. package/dist/gateway/static/root/assets/shares-settings-LB3SYKFS.js +1 -0
  157. package/dist/gateway/static/root/assets/sheet-C2H8iR8Y.js +1 -0
  158. package/dist/gateway/static/root/assets/{skill-api-CWRhFSkA.js → skill-api-TQAyWHGS.js} +1 -1
  159. package/dist/gateway/static/root/assets/{skill-list-api-CmPp2czp.js → skill-list-api-D4eokPXx.js} +1 -1
  160. package/dist/gateway/static/root/assets/{skill-reload-api-BGsSq3dj.js → skill-reload-api-Bm-8vhsQ.js} +1 -1
  161. package/dist/gateway/static/root/assets/{skills-page-DqD0FPeH.js → skills-page-CfhEcU8L.js} +1 -1
  162. package/dist/gateway/static/root/assets/space-api-DaKpHc_7.js +1 -0
  163. package/dist/gateway/static/root/assets/space-page-BXyQdUvp.js +2 -0
  164. package/dist/gateway/static/root/assets/star-BuMAkjC9.js +1 -0
  165. package/dist/gateway/static/root/assets/{system-settings-panel-aw9C86I8.js → system-settings-panel-CvL5G2w1.js} +1 -1
  166. package/dist/gateway/static/root/assets/task-detail-page-gffrDRvW.js +3 -0
  167. package/dist/gateway/static/root/assets/task-header-title-DwtjUOBg.js +1 -0
  168. package/dist/gateway/static/root/assets/{task-result-evidence-C-zIBpzi.js → task-result-evidence-Bmgta9z9.js} +1 -1
  169. package/dist/gateway/static/root/assets/tasks-BIehlq7k.js +1 -0
  170. package/dist/gateway/static/root/assets/{terminal-panel-store-CgPqgrm7.js → terminal-panel-store-B1bAD5Xf.js} +1 -1
  171. package/dist/gateway/static/root/assets/{theme-store-DxF7S6I2.js → theme-store-C1MxmBg7.js} +1 -1
  172. package/dist/gateway/static/root/assets/{tracing-settings-page-Dvlunx28.js → tracing-settings-page-CvXDgIJQ.js} +1 -1
  173. package/dist/gateway/static/root/assets/{tunnel-api-CIte6n0U.js → tunnel-api-BkhCBt38.js} +1 -1
  174. package/dist/gateway/static/root/assets/turn-outcome-BSbEJx8h.js +1 -0
  175. package/dist/gateway/static/root/assets/{understanding-activity-store-C2RHmRo8.js → understanding-activity-store-BYGCmCVb.js} +1 -1
  176. package/dist/gateway/static/root/assets/{understanding-refresh-store-CPeQIXS_.js → understanding-refresh-store-DaLVsdYS.js} +1 -1
  177. package/dist/gateway/static/root/assets/{usage-page-DPUjEj39.js → usage-page-C-NM6vtY.js} +1 -1
  178. package/dist/gateway/static/root/assets/{use-autosave-xX2KrbXw.js → use-autosave-CvjQMyY8.js} +1 -1
  179. package/dist/gateway/static/root/assets/use-composer-attachments-sszsCdh5.js +2 -0
  180. package/dist/gateway/static/root/assets/use-file-preview-expanded-D4b4fDeu.js +1 -0
  181. package/dist/gateway/static/root/assets/use-personal-profile-CNPszzzT.js +1 -0
  182. package/dist/gateway/static/root/assets/use-personal-work-C-rw8XVO.js +1 -0
  183. package/dist/gateway/static/root/assets/{use-realtime-voice-RQW5KnIN.js → use-realtime-voice-cugjs8cK.js} +1 -1
  184. package/dist/gateway/static/root/assets/{use-workspace-tree-B6QFV5gR.js → use-workspace-tree-Crfx5ctU.js} +1 -1
  185. package/dist/gateway/static/root/assets/{user-model-page-hKnsTcMk.js → user-model-page-BvnLbTYx.js} +1 -1
  186. package/dist/gateway/static/root/assets/video-generation-Cec49Jwg.js +1 -0
  187. package/dist/gateway/static/root/assets/{voice-api-key-field-BeEF7Thh.js → voice-api-key-field-M7KB_Gl1.js} +1 -1
  188. package/dist/gateway/static/root/assets/{voice-config-api-vbBoKnqd.js → voice-config-api-BLGbUq3v.js} +1 -1
  189. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-CKn6X3qL.js → voice-input-shortcut-events-CxH3RDXi.js} +1 -1
  190. package/dist/gateway/static/root/assets/voice-player-store-DZGlzjva.js +1 -0
  191. package/dist/gateway/static/root/assets/voice-settings-BzfNK5Jm.js +1 -0
  192. package/dist/gateway/static/root/assets/{work-discovery-overlay-Ddvqu02U.js → work-discovery-overlay-DpEYgcG2.js} +1 -1
  193. package/dist/gateway/static/root/assets/{work-discovery-page-BdBpri6P.js → work-discovery-page-DappIHQq.js} +1 -1
  194. package/dist/gateway/static/root/assets/{working-directory-picker-modal-DStgfCzQ.js → working-directory-picker-modal-W2QiUVjN.js} +1 -1
  195. package/dist/gateway/static/root/assets/workspace-api-g-wCKoQU.js +2 -0
  196. package/dist/gateway/static/root/assets/workspace-editor-agent-store-DwpWKogz.js +1 -0
  197. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DxaxVC3q.js +1 -0
  198. package/dist/gateway/static/root/assets/{workspace-open-location-menu-CBHFZ2iQ.js → workspace-open-location-menu-Dh0TvTkH.js} +1 -1
  199. package/dist/gateway/static/root/assets/workspace-preview-store-DoIjn_2j.js +1 -0
  200. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Cm0Saa8B.js → xopc-cloud-account-card-DGAGXbGI.js} +1 -1
  201. package/dist/gateway/static/root/index.html +136 -123
  202. package/dist/package.js +1 -1
  203. package/dist/packages/gateway-contract/src/automations.js +7 -0
  204. package/dist/packages/gateway-contract/src/capabilities.js +1 -1
  205. package/dist/packages/gateway-contract/src/clarifications.js +20 -2
  206. package/dist/packages/gateway-contract/src/index.js +6 -4
  207. package/dist/packages/gateway-contract/src/music-generation.js +5 -2
  208. package/dist/packages/gateway-contract/src/space.js +23 -0
  209. package/dist/packages/gateway-contract/src/task-lifecycle.js +1 -0
  210. package/dist/packages/gateway-contract/src/task-result-delivery.js +1 -0
  211. package/dist/packages/gateway-contract/src/task-runs.js +1 -0
  212. package/dist/packages/gateway-contract/src/tasks.js +118 -6
  213. package/dist/packages/gateway-contract/src/turn-outcome.js +16 -2
  214. package/dist/packages/gateway-contract/src/video-generation.js +29 -4
  215. package/dist/src/agent/agent-manager.js +2 -2
  216. package/dist/src/agent/background-review/prompts.js +5 -1
  217. package/dist/src/agent/embedded/agent-profile-context.js +1 -1
  218. package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
  219. package/dist/src/agent/orchestration/delegation-budget.d.ts +2 -2
  220. package/dist/src/agent/orchestration/turn-recovery.d.ts +12 -3
  221. package/dist/src/agent/orchestration/turn-recovery.js +25 -6
  222. package/dist/src/agent/service/process-direct-streaming.js +1 -1
  223. package/dist/src/agent/service/webchat-tts.js +1 -1
  224. package/dist/src/agent/service.js +1 -1
  225. package/dist/src/agent/tasks/task-judge-service.js +1 -1
  226. package/dist/src/agent/tools/apply-patch.js +1 -1
  227. package/dist/src/agent/tools/factory.js +1 -1
  228. package/dist/src/agent/tools/image-generate-tool.js +1 -0
  229. package/dist/src/agent/tools/language-diagnostics.js +1 -1
  230. package/dist/src/agent/tools/personal-memory-tool.js +12 -10
  231. package/dist/src/agent/tools/personal-task-tool.d.ts +1 -0
  232. package/dist/src/agent/tools/personal-task-tool.js +12 -7
  233. package/dist/src/agent/tools/publish-artifacts.js +2 -1
  234. package/dist/src/agent/tools/review-workspace.js +1 -1
  235. package/dist/src/agent/tools/send-media.js +1 -0
  236. package/dist/src/agent/tools/tool-media.d.ts +3 -1
  237. package/dist/src/agent/tools/tool-media.js +2 -0
  238. package/dist/src/agent/tools/video-draft-tool.d.ts +1 -0
  239. package/dist/src/agent/tools/video-draft-tool.js +5 -1
  240. package/dist/src/agent/tools/xopc-use-tool.js +21 -4
  241. package/dist/src/agent-catalog/test-support.js +1 -1
  242. package/dist/src/agent-matching/delegation-service.js +1 -1
  243. package/dist/src/automations/capabilities/drafts.js +1 -1
  244. package/dist/src/automations/capabilities/write.d.ts +30 -6
  245. package/dist/src/automations/capabilities/write.js +2 -2
  246. package/dist/src/automations/configuration-conversation.js +1 -1
  247. package/dist/src/automations/domain/types.d.ts +6 -0
  248. package/dist/src/automations/domain/validation.d.ts +60 -12
  249. package/dist/src/automations/domain/validation.js +7 -0
  250. package/dist/src/automations/draft/automation-draft-validator.d.ts +12 -3
  251. package/dist/src/automations/draft/automation-draft-validator.js +1 -0
  252. package/dist/src/automations/service/action-executor.js +14 -2
  253. package/dist/src/automations/service/automation-service.js +2 -2
  254. package/dist/src/browser/providers/browser-ext-install.js +1 -1
  255. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  256. package/dist/src/computer/diagnostics.d.ts +9 -9
  257. package/dist/src/computer/errors.d.ts +2 -2
  258. package/dist/src/computer/evaluation.d.ts +7 -7
  259. package/dist/src/computer/runtime.d.ts +4 -4
  260. package/dist/src/config/schema.d.ts +2 -2
  261. package/dist/src/discussions/action-tasks.d.ts +2 -2
  262. package/dist/src/execution-environments/local-worktree-manager.js +1 -1
  263. package/dist/src/extensions/agent-plugins/inventory.d.ts +2 -2
  264. package/dist/src/extensions/agent-plugins/setup.d.ts +3 -3
  265. package/dist/src/gateway/hono/routes/commands-skills.js +1 -1
  266. package/dist/src/gateway/hono/routes/connectors.js +2 -2
  267. package/dist/src/gateway/hono/routes/context-sources.js +1 -1
  268. package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
  269. package/dist/src/gateway/hono/routes/memory-learning.js +19 -3
  270. package/dist/src/gateway/hono/routes/models.js +7 -0
  271. package/dist/src/gateway/hono/routes/music-generation.js +26 -3
  272. package/dist/src/gateway/hono/routes/personal-agent.js +214 -5
  273. package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
  274. package/dist/src/gateway/hono/routes/space.d.ts +3 -0
  275. package/dist/src/gateway/hono/routes/space.js +105 -0
  276. package/dist/src/gateway/hono/routes/tasks.js +27 -28
  277. package/dist/src/gateway/hono/routes/video-generation.js +9 -6
  278. package/dist/src/gateway/html-preview-shell.d.ts +1 -1
  279. package/dist/src/gateway/html-preview-shell.js +3 -0
  280. package/dist/src/gateway/media-access.js +2 -2
  281. package/dist/src/gateway/security/gateway-scopes.js +2 -0
  282. package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
  283. package/dist/src/gateway/service.d.ts +1 -0
  284. package/dist/src/gateway/service.js +10 -3
  285. package/dist/src/gateway/session-context-summary.js +1 -1
  286. package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +2 -0
  287. package/dist/src/gateway/xopc-cloud-capability-setup.js +18 -1
  288. package/dist/src/home-intelligence/follow-ups.js +2 -1
  289. package/dist/src/home-intelligence/routines.js +1 -1
  290. package/dist/src/local-apps/automation-proposals.d.ts +54 -12
  291. package/dist/src/local-apps/capabilities/projections.d.ts +7 -7
  292. package/dist/src/local-apps/preview-fixtures.d.ts +1 -1
  293. package/dist/src/media/session-references.d.ts +4 -1
  294. package/dist/src/media/session-references.js +40 -8
  295. package/dist/src/memory-learning/work-capture.js +2 -1
  296. package/dist/src/memory-learning/work-review.d.ts +2 -0
  297. package/dist/src/memory-learning/work-review.js +25 -2
  298. package/dist/src/music-generation/artifact.js +3 -1
  299. package/dist/src/music-generation/mureka.js +1 -1
  300. package/dist/src/music-generation/provider.d.ts +4 -1
  301. package/dist/src/music-generation/provider.js +6 -1
  302. package/dist/src/music-generation/providers.d.ts +3 -1
  303. package/dist/src/music-generation/providers.js +39 -16
  304. package/dist/src/music-generation/repository.d.ts +3 -1
  305. package/dist/src/music-generation/repository.js +12 -3
  306. package/dist/src/music-generation/tencent-mps.d.ts +11 -0
  307. package/dist/src/music-generation/tencent-mps.js +151 -0
  308. package/dist/src/music-generation/worker.js +16 -5
  309. package/dist/src/music-generation/xopc-cloud.d.ts +2 -0
  310. package/dist/src/music-generation/xopc-cloud.js +38 -0
  311. package/dist/src/personal-agent/capability-service.js +1 -1
  312. package/dist/src/personal-agent/proactivity/service.js +1 -1
  313. package/dist/src/personal-agent/prompt-context.js +1 -1
  314. package/dist/src/personal-agent/prompts.js +2 -2
  315. package/dist/src/personal-agent/reply-composer.js +16 -7
  316. package/dist/src/personal-agent/repository.js +1 -1
  317. package/dist/src/personal-agent/request-delivery.js +17 -7
  318. package/dist/src/personal-agent/request-service.js +6 -10
  319. package/dist/src/personal-agent/result-extraction.js +13 -13
  320. package/dist/src/personal-agent/schedules.d.ts +9 -0
  321. package/dist/src/personal-agent/schedules.js +44 -0
  322. package/dist/src/personal-agent/service.js +1 -1
  323. package/dist/src/providers/model-catalog-persistence.js +6 -1
  324. package/dist/src/providers/model-catalog-store.js +1 -0
  325. package/dist/src/providers/model-catalog-types.d.ts +2 -0
  326. package/dist/src/providers/xopc-cloud-media-manifest.d.ts +24 -0
  327. package/dist/src/providers/xopc-cloud-media-manifest.js +28 -0
  328. package/dist/src/providers/xopc-cloud-media.d.ts +28 -0
  329. package/dist/src/providers/xopc-cloud-media.js +67 -0
  330. package/dist/src/providers/xopc-cloud-model-source.js +4 -0
  331. package/dist/src/runtime-tools/archive.js +1 -1
  332. package/dist/src/runtime-tools/manager.js +1 -1
  333. package/dist/src/runtime-tools/phone-dependencies.js +1 -1
  334. package/dist/src/session/client-history.d.ts +4 -1
  335. package/dist/src/session/client-history.js +18 -0
  336. package/dist/src/session/compact-history.js +30 -1
  337. package/dist/src/session/store.js +2 -1
  338. package/dist/src/session/turn-outcome-projector.js +1 -1
  339. package/dist/src/space/ingest.d.ts +36 -0
  340. package/dist/src/space/ingest.js +149 -0
  341. package/dist/src/space/repository.d.ts +39 -0
  342. package/dist/src/space/repository.js +325 -0
  343. package/dist/src/space/worker.d.ts +14 -0
  344. package/dist/src/space/worker.js +199 -0
  345. package/dist/src/storage/sqlite/clarification-wait-repository.js +7 -4
  346. package/dist/src/storage/sqlite/row-mappers.d.ts +1 -0
  347. package/dist/src/storage/sqlite/row-mappers.js +9 -2
  348. package/dist/src/storage/sqlite/schema.d.ts +2 -2
  349. package/dist/src/storage/sqlite/schema.js +8 -7
  350. package/dist/src/storage/sqlite/schema.sql +104 -0
  351. package/dist/src/storage/sqlite/transcript-repository.js +8 -0
  352. package/dist/src/storage/sqlite/upgrades/278_music_job_error_code.sql +6 -0
  353. package/dist/src/storage/sqlite/upgrades/279_task_model_cutover.sql +288 -0
  354. package/dist/src/storage/sqlite/upgrades/280_space.sql +61 -0
  355. package/dist/src/tasks/capabilities/management.d.ts +15 -2
  356. package/dist/src/tasks/capabilities/management.js +8 -2
  357. package/dist/src/tasks/capabilities/read.js +14 -2
  358. package/dist/src/tasks/capabilities/relations.d.ts +13 -7
  359. package/dist/src/tasks/capabilities/write.d.ts +118 -2
  360. package/dist/src/tasks/capabilities/write.js +2 -0
  361. package/dist/src/tasks/home-query-service.js +7 -9
  362. package/dist/src/tasks/task-allocation-service.js +2 -2
  363. package/dist/src/tasks/task-application-service.d.ts +8 -2
  364. package/dist/src/tasks/task-application-service.js +94 -27
  365. package/dist/src/tasks/task-collaboration-repository.js +12 -1
  366. package/dist/src/tasks/task-context-assembler.js +9 -3
  367. package/dist/src/tasks/task-contract-planner.js +1 -3
  368. package/dist/src/tasks/task-conversation-summary.d.ts +33 -2
  369. package/dist/src/tasks/task-conversation-summary.js +3 -1
  370. package/dist/src/tasks/task-criterion-review-repository.d.ts +31 -2
  371. package/dist/src/tasks/task-criterion-review-repository.js +70 -23
  372. package/dist/src/tasks/task-deliverables.d.ts +7 -0
  373. package/dist/src/tasks/task-deliverables.js +112 -0
  374. package/dist/src/tasks/task-handoff-service.js +1 -1
  375. package/dist/src/tasks/task-instruction-sequence.js +10 -3
  376. package/dist/src/tasks/task-json-acceptance.js +3 -5
  377. package/dist/src/tasks/task-origin-repository.d.ts +99 -1
  378. package/dist/src/tasks/task-origin-repository.js +67 -5
  379. package/dist/src/tasks/task-read-model-projector.d.ts +4 -1
  380. package/dist/src/tasks/task-read-model-projector.js +123 -9
  381. package/dist/src/tasks/task-repository.d.ts +4 -1
  382. package/dist/src/tasks/task-repository.js +34 -11
  383. package/dist/src/tasks/task-research-repair.d.ts +2 -2
  384. package/dist/src/tasks/task-research-result.d.ts +1 -0
  385. package/dist/src/tasks/task-research-result.js +13 -3
  386. package/dist/src/tasks/task-result-delivery-repository.d.ts +4 -3
  387. package/dist/src/tasks/task-result-delivery-repository.js +35 -17
  388. package/dist/src/tasks/task-result-delivery-service.js +22 -7
  389. package/dist/src/tasks/task-result-versions.d.ts +11 -0
  390. package/dist/src/tasks/task-result-versions.js +34 -0
  391. package/dist/src/tasks/task-run-coordinator.js +28 -15
  392. package/dist/src/tasks/task-run-dispatcher.js +29 -4
  393. package/dist/src/tasks/task-run-repository.d.ts +2 -0
  394. package/dist/src/tasks/task-run-repository.js +62 -19
  395. package/dist/src/tasks/task-workspace-verification.d.ts +16 -0
  396. package/dist/src/tasks/task-workspace-verification.js +95 -0
  397. package/dist/src/tui/backends/embedded-backend.js +2 -2
  398. package/dist/src/user-model/action-rule-suggestions.js +4 -3
  399. package/dist/src/user-model/capture/evidence-policy.d.ts +7 -1
  400. package/dist/src/user-model/capture/evidence-policy.js +68 -2
  401. package/dist/src/user-model/capture/executor.js +62 -14
  402. package/dist/src/video-generation/artifact.js +3 -1
  403. package/dist/src/video-generation/drafts.d.ts +1 -0
  404. package/dist/src/video-generation/drafts.js +6 -0
  405. package/dist/src/video-generation/providers.d.ts +1 -0
  406. package/dist/src/video-generation/providers.js +37 -5
  407. package/dist/src/video-generation/repository.d.ts +5 -3
  408. package/dist/src/video-generation/repository.js +30 -8
  409. package/dist/src/video-generation/settings.d.ts +1 -0
  410. package/dist/src/video-generation/settings.js +10 -4
  411. package/dist/src/voice/realtime/runtime.js +1 -1
  412. package/package.json +1 -1
  413. package/dist/gateway/static/root/assets/attachment-preview-renderer-DdOEgexg.js +0 -12
  414. package/dist/gateway/static/root/assets/attachment-utils-core-BIOUBrpT.js +0 -1
  415. package/dist/gateway/static/root/assets/automations-workspace-CH9gYqIK.js +0 -9
  416. package/dist/gateway/static/root/assets/binary-plugins-MFVtTdvy.js +0 -2
  417. package/dist/gateway/static/root/assets/capabilities-CFWTer_v.js +0 -1
  418. package/dist/gateway/static/root/assets/capabilities-page-C2RB9fzC.js +0 -2
  419. package/dist/gateway/static/root/assets/capabilities-settings-panel-BjaLTd6i.js +0 -8
  420. package/dist/gateway/static/root/assets/channels-DiDfjON8.js +0 -1
  421. package/dist/gateway/static/root/assets/chat-page-BtMkdtxJ.js +0 -71
  422. package/dist/gateway/static/root/assets/constants-Bg1wM2nv.js +0 -1
  423. package/dist/gateway/static/root/assets/extension-authoritative-grants-DIeg1mg8.js +0 -1
  424. package/dist/gateway/static/root/assets/file-tree-CFlZnV3Y.js +0 -1
  425. package/dist/gateway/static/root/assets/gateway-realtime-store-CJf-qaHZ.js +0 -1
  426. package/dist/gateway/static/root/assets/index-BJj-uZNl.js +0 -11
  427. package/dist/gateway/static/root/assets/index-DiWUK4sJ.css +0 -1
  428. package/dist/gateway/static/root/assets/local-app-workbench-page-wekatwet.js +0 -1
  429. package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +0 -1
  430. package/dist/gateway/static/root/assets/logs-page-CukseY3k.js +0 -2
  431. package/dist/gateway/static/root/assets/messages-BDBGlBKh.js +0 -3
  432. package/dist/gateway/static/root/assets/models-hub-cache-aRYHi2dh.js +0 -1
  433. package/dist/gateway/static/root/assets/note-detail-panel-D5BtgBxy.js +0 -7
  434. package/dist/gateway/static/root/assets/note-image-lightbox-CxXu_Tkh.js +0 -1
  435. package/dist/gateway/static/root/assets/notes-api-BXevQivV.js +0 -1
  436. package/dist/gateway/static/root/assets/notes-page-DyM-3O_9.js +0 -8
  437. package/dist/gateway/static/root/assets/page-header-store-C2ydtnXa.js +0 -1
  438. package/dist/gateway/static/root/assets/personal-avatar-BPQpvC34.js +0 -1
  439. package/dist/gateway/static/root/assets/personal-avatar-BUCb7OiW.css +0 -1
  440. package/dist/gateway/static/root/assets/personal-page-BB4Sv68K.js +0 -1
  441. package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +0 -1
  442. package/dist/gateway/static/root/assets/product-automation-feedback-BlwtlUY7.js +0 -7
  443. package/dist/gateway/static/root/assets/product-delivery-CnvCn9L-.js +0 -1
  444. package/dist/gateway/static/root/assets/project-detail-page-BG2nDt98.js +0 -7
  445. package/dist/gateway/static/root/assets/recording-upload-BJkXktA-.js +0 -1
  446. package/dist/gateway/static/root/assets/right-workspace-store-DHHyicqQ.js +0 -1
  447. package/dist/gateway/static/root/assets/route-preload-BYqg1BYz.js +0 -2
  448. package/dist/gateway/static/root/assets/routine-panel-Coh2B0j7.js +0 -2
  449. package/dist/gateway/static/root/assets/session-manager-D5g6LOU-.js +0 -25
  450. package/dist/gateway/static/root/assets/settings-advanced-gate-DjyibJZ1.js +0 -1
  451. package/dist/gateway/static/root/assets/share-preview-page-CyCv69rh.js +0 -2
  452. package/dist/gateway/static/root/assets/shares-settings-B85XIDFv.js +0 -1
  453. package/dist/gateway/static/root/assets/star-CnYNmpLd.js +0 -1
  454. package/dist/gateway/static/root/assets/task-detail-page-DgsLOz6h.js +0 -3
  455. package/dist/gateway/static/root/assets/tasks-BTLabOMp.js +0 -1
  456. package/dist/gateway/static/root/assets/use-composer-attachments-C9GpCJQR.js +0 -2
  457. package/dist/gateway/static/root/assets/use-file-preview-expanded-Daf-LmiF.js +0 -15
  458. package/dist/gateway/static/root/assets/use-personal-profile-BJgaheR4.js +0 -1
  459. package/dist/gateway/static/root/assets/video-generation-D08uZbsu.js +0 -1
  460. package/dist/gateway/static/root/assets/voice-settings-BUrk4mwV.js +0 -1
  461. package/dist/gateway/static/root/assets/with-selector-xonYxPoM.js +0 -1
  462. package/dist/gateway/static/root/assets/workspace-api-CscTRODe.js +0 -2
  463. package/dist/gateway/static/root/assets/workspace-editor-agent-store-CyPjTDSx.js +0 -1
  464. package/dist/gateway/static/root/assets/workspace-file-preview-dialog-JSGIA79T.js +0 -1
  465. package/dist/gateway/static/root/assets/workspace-preview-store-DNLnuHlf.js +0 -1
@@ -2,15 +2,15 @@ import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { init_agent_stream } from "./agent-stream.js";
3
3
  import { init_follow_ups } from "./follow-ups.js";
4
4
  import { init_task_research_result } from "./task-research-result.js";
5
+ import { init_chat_previews } from "./chat-previews.js";
6
+ import { init_extension_capabilities } from "./extension-capabilities.js";
7
+ import { init_local_apps } from "./local-apps.js";
8
+ import { init_product_delivery } from "./product-delivery.js";
5
9
  import { init_turn_outcome } from "./turn-outcome.js";
6
10
  import { init_specialists } from "./specialists.js";
7
11
  import { init_task_lifecycle } from "./task-lifecycle.js";
8
12
  import { init_task_runs } from "./task-runs.js";
9
13
  import { init_tasks } from "./tasks.js";
10
- import { init_chat_previews } from "./chat-previews.js";
11
- import { init_extension_capabilities } from "./extension-capabilities.js";
12
- import { init_local_apps } from "./local-apps.js";
13
- import { init_product_delivery } from "./product-delivery.js";
14
14
  import { init_project_operating } from "./project-operating.js";
15
15
  import { init_conversation_identity } from "./conversation-identity.js";
16
16
  import { init_sessions } from "./sessions.js";
@@ -60,6 +60,7 @@ import { init_device_request_proof } from "./device-request-proof.js";
60
60
  import { init_local_app_delegation } from "./local-app-delegation.js";
61
61
  import { init_video_generation } from "./video-generation.js";
62
62
  import { init_music_generation } from "./music-generation.js";
63
+ import { init_space } from "./space.js";
63
64
  //#region packages/gateway-contract/src/index.ts
64
65
  var init_src = __esmMin((() => {
65
66
  init_agent_stream();
@@ -122,6 +123,7 @@ var init_src = __esmMin((() => {
122
123
  init_follow_ups();
123
124
  init_video_generation();
124
125
  init_music_generation();
126
+ init_space();
125
127
  }));
126
128
  //#endregion
127
129
  init_src();
@@ -1,6 +1,9 @@
1
1
  import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
2
  //#region packages/gateway-contract/src/music-generation.ts
3
- var init_music_generation = __esmMin((() => {}));
3
+ var TENCENT_MPS_MUSIC_PROVIDER;
4
+ var init_music_generation = __esmMin((() => {
5
+ TENCENT_MPS_MUSIC_PROVIDER = "tencent-mps";
6
+ }));
4
7
  //#endregion
5
8
  init_music_generation();
6
- export { init_music_generation };
9
+ export { TENCENT_MPS_MUSIC_PROVIDER, init_music_generation };
@@ -0,0 +1,23 @@
1
+ import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
+ import { z } from "zod";
3
+ //#region packages/gateway-contract/src/space.ts
4
+ var SpacePatchSchema, SpaceSaveReplySchema, SpaceSaveVersionSchema;
5
+ var init_space = __esmMin((() => {
6
+ SpacePatchSchema = z.object({
7
+ revision: z.number().int().positive(),
8
+ title: z.string().trim().min(1).max(240).optional(),
9
+ favorite: z.boolean().optional()
10
+ }).strict();
11
+ SpaceSaveReplySchema = z.object({
12
+ conversationId: z.string().min(1).max(160),
13
+ entryId: z.string().min(1).max(160).optional(),
14
+ turnId: z.string().min(1).max(160).optional()
15
+ }).strict().refine((input) => Boolean(input.entryId) !== Boolean(input.turnId));
16
+ SpaceSaveVersionSchema = z.object({
17
+ sourceVersionId: z.string().uuid(),
18
+ revision: z.number().int().positive()
19
+ }).strict();
20
+ }));
21
+ //#endregion
22
+ init_space();
23
+ export { SpacePatchSchema, SpaceSaveReplySchema, SpaceSaveVersionSchema, init_space };
@@ -62,6 +62,7 @@ var init_task_lifecycle = __esmMin((() => {
62
62
  "approval_required",
63
63
  "dependency_blocked",
64
64
  "run_failed",
65
+ "run_decision_required",
65
66
  "verification_failed",
66
67
  "overdue",
67
68
  "stale"
@@ -14,6 +14,7 @@ var init_task_result_delivery = __esmMin((() => {
14
14
  deliveryId: z.string().min(1),
15
15
  taskId: z.string().min(1),
16
16
  taskRunId: z.string().min(1),
17
+ taskResultId: z.string().min(1).optional(),
17
18
  taskTitle: z.string().min(1).max(500),
18
19
  conversationId: z.string().min(1),
19
20
  originTranscriptId: z.string().min(1),
@@ -36,6 +36,7 @@ var init_task_runs = __esmMin((() => {
36
36
  causationId: z.string().optional(),
37
37
  idempotencyKey: z.string(),
38
38
  contractVersion: z.number().int().positive(),
39
+ instructionSequenceAtStart: z.number().int().nonnegative().optional(),
39
40
  contextSnapshotId: z.string().optional(),
40
41
  policySnapshot: z.record(z.string(), z.unknown()).optional(),
41
42
  conversationId: z.string().optional(),
@@ -1,19 +1,37 @@
1
1
  import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
+ import { PersonalDeliverableSchema, init_turn_outcome } from "./turn-outcome.js";
2
3
  import { SpecialistTaskRequirementsSchema, init_specialists } from "./specialists.js";
3
4
  import { TaskAttentionItemSchema, TaskOperationalStateSchema, TaskPhaseSchema, TaskResolutionSchema, TaskWaitSchema, init_task_lifecycle } from "./task-lifecycle.js";
4
5
  import { TaskRunSchema, init_task_runs } from "./task-runs.js";
5
6
  import { z } from "zod";
6
7
  //#region packages/gateway-contract/src/tasks.ts
8
+ function taskCheckId(taskId, contractVersion, criterionIndex) {
9
+ return `${taskId}:${contractVersion}:${criterionIndex}`;
10
+ }
7
11
  /** Criteria count as verified only when their passing check cites verified evidence. */
8
12
  function verifiedTaskCriteria(receipt) {
9
- const evidence = new Set(receipt?.evidence.filter((item) => item.strength === "verified").map((item) => item.title));
10
- return new Set(receipt?.verification.checks.filter((check) => check.status === "passed" && check.evidenceTitles.some((title) => evidence.has(title))).map((check) => check.criterion));
13
+ return verifiedCheckKeys(receipt, (check) => check.criterion);
14
+ }
15
+ function verifiedTaskCheckIds(receipt) {
16
+ return verifiedCheckKeys(receipt, (check) => check.checkId);
17
+ }
18
+ function verifiedCheckKeys(receipt, key) {
19
+ const evidence = /* @__PURE__ */ new Map();
20
+ for (const item of receipt?.evidence ?? []) evidence.set(item.title, !evidence.has(item.title) && item.strength === "verified");
21
+ const checks = /* @__PURE__ */ new Map();
22
+ for (const check of receipt?.verification.checks ?? []) {
23
+ const id = key(check);
24
+ if (!id) continue;
25
+ checks.set(id, !checks.has(id) && check.status === "passed" && check.evidenceTitles.some((title) => evidence.get(title) === true));
26
+ }
27
+ return new Set([...checks].filter(([, passed]) => passed).map(([criterion]) => criterion));
11
28
  }
12
- var TaskAllocationSchema, TaskPrioritySchema, TaskChangedFieldSchema, TaskAcceptancePolicySchema, ActorRefSchema, TaskContractSchema, TaskSchema, TaskContextRoleSchema, TaskContextEdgeSchema, TaskAuthorityGrantSchema, TaskDependencySummarySchema, TaskEvidenceSchema, TaskJudgmentSchema, TaskRunReceiptSchema, TaskCriterionReviewSchema, TaskCriterionReviewInputSchema, TaskExecutorSelectionSchema, TaskContractInputSchema, TaskContextInputSchema, TaskCreateRequestSchema, TaskPatchRequestSchema, TaskWaitInputSchema, TaskCommandSchema, TaskChangeSourceSchema, TaskPhaseChangeSchema, TaskCommandRequestSchema, TaskDependencyUpdateRequestSchema, TaskBoardPositionRequestSchema, TaskListResponseSchema, TaskConversationStateSchema, TaskSessionLinkSchema, TaskHandoffRequestSchema, TaskDetailResponseSchema;
29
+ var TaskAllocationSchema, TaskPrioritySchema, TaskChangedFieldSchema, TaskAcceptancePolicySchema, ActorRefSchema, TaskResultPolicySchema, TaskWorkspaceDestinationSchema, TaskContractSchema, TaskSchema, TaskContextRoleSchema, TaskContextEdgeSchema, TaskAuthorityGrantSchema, TaskDependencySummarySchema, TaskEvidenceSchema, TaskJudgmentSchema, TaskRunReceiptSchema, TaskCriterionReviewSchema, TaskCriterionReviewInputSchema, TaskExecutorSelectionSchema, TaskContractInputSchema, TaskContextInputSchema, TaskCreateRequestSchema, TaskPatchRequestSchema, TaskWaitInputSchema, TaskCommandSchema, TaskChangeSourceSchema, TaskPhaseChangeSchema, TaskCommandRequestSchema, TaskDependencyUpdateRequestSchema, TaskBoardPositionRequestSchema, TaskPresentationSchema, TaskAcceptanceTargetSchema, TaskResultVersionSchema, TaskListResponseSchema, TaskConversationStateSchema, TaskSessionLinkSchema, TaskHandoffRequestSchema, TaskDetailResponseSchema;
13
30
  var init_tasks = __esmMin((() => {
14
31
  init_specialists();
15
32
  init_task_lifecycle();
16
33
  init_task_runs();
34
+ init_turn_outcome();
17
35
  TaskAllocationSchema = z.object({
18
36
  id: z.string(),
19
37
  taskId: z.string(),
@@ -92,10 +110,23 @@ var init_tasks = __esmMin((() => {
92
110
  ]),
93
111
  id: z.string().optional()
94
112
  });
113
+ TaskResultPolicySchema = z.enum([
114
+ "standard",
115
+ "selected",
116
+ "connected"
117
+ ]);
118
+ TaskWorkspaceDestinationSchema = z.object({
119
+ kind: z.literal("workspace_file"),
120
+ workspaceId: z.string().regex(/^(agent|project):[a-zA-Z0-9_-]{1,200}$/),
121
+ expectedRoot: z.string().min(1).max(2048).optional(),
122
+ relativePath: z.string().min(1).max(2048).refine((path) => !/[\\:\u0000-\u001f]/u.test(path) && path.split("/").every((part) => part && part !== "." && part !== ".."))
123
+ }).strict();
95
124
  TaskContractSchema = z.object({
96
125
  taskId: z.string(),
97
126
  version: z.number().int().positive(),
98
127
  objective: z.string(),
128
+ brief: z.string().optional(),
129
+ resultPolicy: TaskResultPolicySchema,
99
130
  expectedOutputs: z.array(z.string()),
100
131
  acceptanceCriteria: z.array(z.string()),
101
132
  constraints: z.array(z.string()),
@@ -231,6 +262,7 @@ var init_tasks = __esmMin((() => {
231
262
  "unverified"
232
263
  ]),
233
264
  checks: z.array(z.object({
265
+ checkId: z.string().optional(),
234
266
  criterion: z.string(),
235
267
  status: z.enum([
236
268
  "passed",
@@ -264,6 +296,7 @@ var init_tasks = __esmMin((() => {
264
296
  finalizedAt: z.number().int().nonnegative()
265
297
  });
266
298
  TaskCriterionReviewSchema = z.object({
299
+ checkId: z.string(),
267
300
  contractVersion: z.number().int().positive(),
268
301
  criterionIndex: z.number().int().nonnegative(),
269
302
  criterionText: z.string(),
@@ -279,6 +312,7 @@ var init_tasks = __esmMin((() => {
279
312
  TaskCriterionReviewInputSchema = z.object({
280
313
  expectedVersion: z.number().int().positive(),
281
314
  contractVersion: z.number().int().positive(),
315
+ resultId: z.string().min(1),
282
316
  status: z.enum([
283
317
  "passed",
284
318
  "failed",
@@ -305,7 +339,9 @@ var init_tasks = __esmMin((() => {
305
339
  taskId: true,
306
340
  version: true,
307
341
  createdBy: true,
308
- createdAt: true
342
+ createdAt: true,
343
+ brief: true,
344
+ resultPolicy: true
309
345
  }).extend({ acceptancePolicy: TaskAcceptancePolicySchema.default("verified_auto") });
310
346
  TaskContextInputSchema = TaskContextEdgeSchema.omit({
311
347
  id: true,
@@ -390,6 +426,10 @@ var init_tasks = __esmMin((() => {
390
426
  scheduleAt: z.number().int().nonnegative().optional()
391
427
  }),
392
428
  z.object({ type: z.literal("request_review") }),
429
+ z.object({
430
+ type: z.literal("signoff"),
431
+ resultId: z.string().min(1)
432
+ }),
393
433
  z.object({
394
434
  type: z.literal("close"),
395
435
  resolution: TaskResolutionSchema
@@ -452,13 +492,76 @@ var init_tasks = __esmMin((() => {
452
492
  expectedVersion: z.number().int().positive(),
453
493
  beforeTaskId: z.string().trim().min(1).nullable().optional()
454
494
  }).strict();
495
+ TaskPresentationSchema = z.object({
496
+ status: z.enum([
497
+ "allocating",
498
+ "captured",
499
+ "ready",
500
+ "queued",
501
+ "running",
502
+ "verifying",
503
+ "waiting",
504
+ "blocked",
505
+ "failed",
506
+ "cancelled",
507
+ "needsUser",
508
+ "review",
509
+ "completed",
510
+ "ended",
511
+ "paused"
512
+ ]),
513
+ reason: z.string().optional(),
514
+ primaryAction: z.discriminatedUnion("type", [
515
+ z.object({ type: z.literal("view_results") }),
516
+ z.object({
517
+ type: z.literal("resume"),
518
+ waitId: z.string()
519
+ }),
520
+ z.object({
521
+ type: z.literal("resolve_wait"),
522
+ waitId: z.string()
523
+ }),
524
+ z.object({
525
+ type: z.literal("inspect_run"),
526
+ runId: z.string()
527
+ }),
528
+ z.object({ type: z.literal("review") }),
529
+ z.object({
530
+ type: z.literal("signoff"),
531
+ resultId: z.string()
532
+ }),
533
+ z.object({ type: z.literal("retry_allocation") }),
534
+ z.object({ type: z.literal("mark_ready") }),
535
+ z.object({ type: z.literal("start") }),
536
+ z.object({
537
+ type: z.literal("retry_run"),
538
+ runId: z.string()
539
+ })
540
+ ]).optional()
541
+ });
542
+ TaskAcceptanceTargetSchema = z.object({
543
+ id: z.string(),
544
+ runId: z.string().optional(),
545
+ canSignOff: z.boolean()
546
+ });
547
+ TaskResultVersionSchema = z.object({
548
+ id: z.string(),
549
+ runId: z.string(),
550
+ version: z.number().int().positive(),
551
+ contractVersion: z.number().int().positive(),
552
+ assignmentEpoch: z.number().int().nonnegative(),
553
+ instructionSequence: z.number().int().nonnegative(),
554
+ outcomeId: z.string().optional(),
555
+ finalizedAt: z.number().int().nonnegative().optional()
556
+ });
455
557
  TaskListResponseSchema = z.object({
456
558
  ok: z.literal(true),
457
559
  items: z.array(z.object({
458
560
  task: TaskSchema,
459
561
  allocation: TaskAllocationSchema.optional(),
460
562
  operationalState: TaskOperationalStateSchema,
461
- attention: z.array(TaskAttentionItemSchema)
563
+ attention: z.array(TaskAttentionItemSchema),
564
+ presentation: TaskPresentationSchema
462
565
  }))
463
566
  });
464
567
  z.object({
@@ -518,11 +621,20 @@ var init_tasks = __esmMin((() => {
518
621
  task: TaskSchema,
519
622
  allocation: TaskAllocationSchema.optional(),
520
623
  operationalState: TaskOperationalStateSchema,
624
+ presentation: TaskPresentationSchema,
625
+ acceptanceTarget: TaskAcceptanceTargetSchema.optional(),
521
626
  attention: z.array(TaskAttentionItemSchema),
522
627
  waits: z.array(TaskWaitSchema),
523
628
  runs: z.array(TaskRunSchema),
524
629
  receipts: z.array(TaskRunReceiptSchema),
630
+ deliverables: z.array(PersonalDeliverableSchema).optional(),
525
631
  criterionReviews: z.array(TaskCriterionReviewSchema),
632
+ acceptanceChecks: z.array(z.object({
633
+ id: z.string(),
634
+ criterion: z.string()
635
+ })).default([]),
636
+ results: z.array(TaskResultVersionSchema).default([]),
637
+ criterionReviewHistory: z.array(TaskCriterionReviewSchema.extend({ resultId: z.string().optional() })).optional(),
526
638
  context: z.array(TaskContextEdgeSchema),
527
639
  conversation: TaskConversationStateSchema,
528
640
  sessions: z.array(TaskSessionLinkSchema),
@@ -538,4 +650,4 @@ var init_tasks = __esmMin((() => {
538
650
  }));
539
651
  //#endregion
540
652
  init_tasks();
541
- export { ActorRefSchema, TaskAcceptancePolicySchema, TaskAllocationSchema, TaskAuthorityGrantSchema, TaskBoardPositionRequestSchema, TaskChangeSourceSchema, TaskChangedFieldSchema, TaskCommandRequestSchema, TaskCommandSchema, TaskContextEdgeSchema, TaskContextInputSchema, TaskContextRoleSchema, TaskContractInputSchema, TaskContractSchema, TaskConversationStateSchema, TaskCreateRequestSchema, TaskCriterionReviewInputSchema, TaskCriterionReviewSchema, TaskDependencySummarySchema, TaskDependencyUpdateRequestSchema, TaskDetailResponseSchema, TaskEvidenceSchema, TaskExecutorSelectionSchema, TaskHandoffRequestSchema, TaskJudgmentSchema, TaskListResponseSchema, TaskPatchRequestSchema, TaskPhaseChangeSchema, TaskPrioritySchema, TaskRunReceiptSchema, TaskSchema, TaskSessionLinkSchema, init_tasks, verifiedTaskCriteria };
653
+ export { ActorRefSchema, TaskAcceptancePolicySchema, TaskAcceptanceTargetSchema, TaskAllocationSchema, TaskAuthorityGrantSchema, TaskBoardPositionRequestSchema, TaskChangeSourceSchema, TaskChangedFieldSchema, TaskCommandRequestSchema, TaskCommandSchema, TaskContextEdgeSchema, TaskContextInputSchema, TaskContextRoleSchema, TaskContractInputSchema, TaskContractSchema, TaskConversationStateSchema, TaskCreateRequestSchema, TaskCriterionReviewInputSchema, TaskCriterionReviewSchema, TaskDependencySummarySchema, TaskDependencyUpdateRequestSchema, TaskDetailResponseSchema, TaskEvidenceSchema, TaskExecutorSelectionSchema, TaskHandoffRequestSchema, TaskJudgmentSchema, TaskListResponseSchema, TaskPatchRequestSchema, TaskPhaseChangeSchema, TaskPresentationSchema, TaskPrioritySchema, TaskResultPolicySchema, TaskResultVersionSchema, TaskRunReceiptSchema, TaskSchema, TaskSessionLinkSchema, TaskWorkspaceDestinationSchema, init_tasks, taskCheckId, verifiedTaskCheckIds, verifiedTaskCriteria };
@@ -1,5 +1,6 @@
1
1
  import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { TaskResearchResultSchema, init_task_research_result } from "./task-research-result.js";
3
+ import { ProductReferenceSchema, init_product_delivery } from "./product-delivery.js";
3
4
  import { z } from "zod";
4
5
  //#region packages/gateway-contract/src/turn-outcome.ts
5
6
  function fileResourceArtifactUri(fileResourceId) {
@@ -105,9 +106,10 @@ function parseTurnOutcome(value) {
105
106
  deliverables: mergeTurnOutcomeDeliverables(parsed.data.deliverables)
106
107
  } : null;
107
108
  }
108
- var TurnOutcomeDeliverableKindSchema, TurnOutcomeArtifactLocationSchema, TurnOutcomeArtifactAvailabilitySchema, TurnOutcomeArtifactCapabilitySchema, TurnOutcomeDeliverableSchema, TurnOutcomeChangedFileSchema, TurnOutcomeChangeSetSchema, TurnOutcomeEvidenceSchema, TurnOutcomeSchema, FILE_RESOURCE_ARTIFACT_URI_PREFIX;
109
+ var TurnOutcomeDeliverableKindSchema, TurnOutcomeArtifactLocationSchema, TurnOutcomeArtifactAvailabilitySchema, TurnOutcomeArtifactCapabilitySchema, TurnOutcomeDeliverableSchema, TurnOutcomeChangedFileSchema, TurnOutcomeChangeSetSchema, TurnOutcomeEvidenceSchema, TurnOutcomeSchema, PersonalDeliverableSchema, FILE_RESOURCE_ARTIFACT_URI_PREFIX;
109
110
  var init_turn_outcome = __esmMin((() => {
110
111
  init_task_research_result();
112
+ init_product_delivery();
111
113
  TurnOutcomeDeliverableKindSchema = z.enum([
112
114
  "document",
113
115
  "spreadsheet",
@@ -220,8 +222,20 @@ var init_turn_outcome = __esmMin((() => {
220
222
  research: TaskResearchResultSchema.optional(),
221
223
  createdAt: z.string()
222
224
  });
225
+ PersonalDeliverableSchema = z.object({
226
+ id: z.string(),
227
+ turnId: z.string(),
228
+ createdAt: z.number(),
229
+ task: z.object({
230
+ id: z.string(),
231
+ title: z.string(),
232
+ conversationId: z.string().optional()
233
+ }).optional(),
234
+ artifact: TurnOutcomeDeliverableSchema.optional(),
235
+ reference: ProductReferenceSchema.optional()
236
+ }).refine((item) => Boolean(item.artifact) !== Boolean(item.reference));
223
237
  FILE_RESOURCE_ARTIFACT_URI_PREFIX = "xopc-file:";
224
238
  }));
225
239
  //#endregion
226
240
  init_turn_outcome();
227
- export { TurnOutcomeArtifactAvailabilitySchema, TurnOutcomeArtifactCapabilitySchema, TurnOutcomeArtifactLocationSchema, TurnOutcomeChangeSetSchema, TurnOutcomeChangedFileSchema, TurnOutcomeDeliverableKindSchema, TurnOutcomeDeliverableSchema, TurnOutcomeEvidenceSchema, TurnOutcomeSchema, fileResourceArtifactUri, init_turn_outcome, mergeTurnOutcomeDeliverables, parseFileResourceArtifactUri, parseTurnOutcome, turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName };
241
+ export { PersonalDeliverableSchema, TurnOutcomeArtifactAvailabilitySchema, TurnOutcomeArtifactCapabilitySchema, TurnOutcomeArtifactLocationSchema, TurnOutcomeChangeSetSchema, TurnOutcomeChangedFileSchema, TurnOutcomeDeliverableKindSchema, TurnOutcomeDeliverableSchema, TurnOutcomeEvidenceSchema, TurnOutcomeSchema, fileResourceArtifactUri, init_turn_outcome, mergeTurnOutcomeDeliverables, parseFileResourceArtifactUri, parseTurnOutcome, turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName };
@@ -10,6 +10,7 @@ function estimateVideoCostFen(modelRef, duration, resolution) {
10
10
  "720P": 60,
11
11
  "1080P": 120
12
12
  };
13
+ if (VIDEO_MODELS[modelRef].provider === "xopc-cloud") return 0;
13
14
  if (modelRef === "dashscope-cn/wan3.0-video") return seconds * wanPricePerSecond[resolution];
14
15
  const pixels = {
15
16
  "480P": 854 * 480,
@@ -19,7 +20,7 @@ function estimateVideoCostFen(modelRef, duration, resolution) {
19
20
  const yuanPerMillionTokens = modelRef === "volcengine-ark/doubao-seedance-2-5-260628" ? resolution === "1080P" ? 77 : 70 : 37;
20
21
  return Math.ceil(seconds * pixels[resolution] * 24 / 1024 * yuanPerMillionTokens / 1e4);
21
22
  }
22
- var VIDEO_RESOLUTIONS, WAN_VIDEO_MODEL_REF, SEEDANCE_VIDEO_MODEL_REF, SEEDANCE_FAST_VIDEO_MODEL_REF, VIDEO_MODEL_REFS, VIDEO_MODELS, VIDEO_IMAGE_MAX_BYTES;
23
+ var VIDEO_RESOLUTIONS, WAN_VIDEO_MODEL_REF, SEEDANCE_VIDEO_MODEL_REF, SEEDANCE_FAST_VIDEO_MODEL_REF, CLOUD_WAN_VIDEO_MODEL_REF, CLOUD_SEEDANCE_VIDEO_MODEL_REF, CLOUD_SEEDANCE_FAST_VIDEO_MODEL_REF, LOCAL_VIDEO_MODEL_REFS, VIDEO_MODEL_REFS, localVideoModels, VIDEO_MODELS, VIDEO_IMAGE_MAX_BYTES;
23
24
  var init_video_generation = __esmMin((() => {
24
25
  VIDEO_RESOLUTIONS = [
25
26
  "480P",
@@ -29,12 +30,21 @@ var init_video_generation = __esmMin((() => {
29
30
  WAN_VIDEO_MODEL_REF = "dashscope-cn/wan3.0-video";
30
31
  SEEDANCE_VIDEO_MODEL_REF = "volcengine-ark/doubao-seedance-2-5-260628";
31
32
  SEEDANCE_FAST_VIDEO_MODEL_REF = "volcengine-ark/doubao-seedance-2-0-fast-260128";
32
- VIDEO_MODEL_REFS = [
33
+ CLOUD_WAN_VIDEO_MODEL_REF = "xopc-cloud/video";
34
+ CLOUD_SEEDANCE_VIDEO_MODEL_REF = "xopc-cloud/video-seedance";
35
+ CLOUD_SEEDANCE_FAST_VIDEO_MODEL_REF = "xopc-cloud/video-seedance-fast";
36
+ LOCAL_VIDEO_MODEL_REFS = [
33
37
  WAN_VIDEO_MODEL_REF,
34
38
  SEEDANCE_VIDEO_MODEL_REF,
35
39
  SEEDANCE_FAST_VIDEO_MODEL_REF
36
40
  ];
37
- VIDEO_MODELS = {
41
+ VIDEO_MODEL_REFS = [
42
+ ...LOCAL_VIDEO_MODEL_REFS,
43
+ CLOUD_WAN_VIDEO_MODEL_REF,
44
+ CLOUD_SEEDANCE_VIDEO_MODEL_REF,
45
+ CLOUD_SEEDANCE_FAST_VIDEO_MODEL_REF
46
+ ];
47
+ localVideoModels = {
38
48
  [WAN_VIDEO_MODEL_REF]: {
39
49
  provider: "dashscope-cn",
40
50
  name: "Wan 3.0",
@@ -68,8 +78,23 @@ var init_video_generation = __esmMin((() => {
68
78
  ]
69
79
  }
70
80
  };
81
+ VIDEO_MODELS = {
82
+ ...localVideoModels,
83
+ [CLOUD_WAN_VIDEO_MODEL_REF]: {
84
+ ...localVideoModels[WAN_VIDEO_MODEL_REF],
85
+ provider: "xopc-cloud"
86
+ },
87
+ [CLOUD_SEEDANCE_VIDEO_MODEL_REF]: {
88
+ ...localVideoModels[SEEDANCE_VIDEO_MODEL_REF],
89
+ provider: "xopc-cloud"
90
+ },
91
+ [CLOUD_SEEDANCE_FAST_VIDEO_MODEL_REF]: {
92
+ ...localVideoModels[SEEDANCE_FAST_VIDEO_MODEL_REF],
93
+ provider: "xopc-cloud"
94
+ }
95
+ };
71
96
  VIDEO_IMAGE_MAX_BYTES = 5 * 1024 * 1024;
72
97
  }));
73
98
  //#endregion
74
99
  init_video_generation();
75
- export { SEEDANCE_FAST_VIDEO_MODEL_REF, SEEDANCE_VIDEO_MODEL_REF, VIDEO_IMAGE_MAX_BYTES, VIDEO_MODELS, VIDEO_MODEL_REFS, VIDEO_RESOLUTIONS, WAN_VIDEO_MODEL_REF, estimateVideoCostFen, init_video_generation, isVideoDurationSupported };
100
+ export { CLOUD_SEEDANCE_FAST_VIDEO_MODEL_REF, CLOUD_SEEDANCE_VIDEO_MODEL_REF, CLOUD_WAN_VIDEO_MODEL_REF, LOCAL_VIDEO_MODEL_REFS, SEEDANCE_FAST_VIDEO_MODEL_REF, SEEDANCE_VIDEO_MODEL_REF, VIDEO_IMAGE_MAX_BYTES, VIDEO_MODELS, VIDEO_MODEL_REFS, VIDEO_RESOLUTIONS, WAN_VIDEO_MODEL_REF, estimateVideoCostFen, init_video_generation, isVideoDurationSupported };
@@ -2,13 +2,13 @@ import { resolveStateDir } from "../config/paths-state.js";
2
2
  import { createLogger } from "../utils/logger/index.js";
3
3
  import { init_logger } from "../utils/logger.js";
4
4
  import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
5
+ import { expandWorkspacePathString, init_workspace_path } from "../config/workspace-path.js";
6
+ import { init_agent_scope, listAgentEntries, resolveAgentProfileDir } from "./agent-scope.js";
5
7
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
6
8
  import { consumeClarificationApproval } from "../storage/sqlite/clarification-wait-repository.js";
7
9
  import { getInteractionState } from "../storage/sqlite/interaction-state-repository.js";
8
10
  import { getSessionConfig } from "../storage/sqlite/config-repository.js";
9
11
  import "../storage/sqlite/index.js";
10
- import { expandWorkspacePathString, init_workspace_path } from "../config/workspace-path.js";
11
- import { init_agent_scope, listAgentEntries, resolveAgentProfileDir } from "./agent-scope.js";
12
12
  import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
13
13
  import { pluginRuntimeAccessKey } from "../extensions/agent-plugins/capability-access.js";
14
14
  import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
@@ -23,6 +23,7 @@ Goal shape:
23
23
 
24
24
  Collaboration rule shape:
25
25
  {"intent":"user_assertion","category":"communication","priority":10,"scope":{"type":"global"},"conditions":{"enforcementLevel":"prompt"},"statement":"Keep status updates concise.","evidence":[{"ref":"entry-id","quote":"exact quote"}],"selfContained":true,"unresolvedReferences":[]}
26
+ Rule categories: communication, execution, boundary, routine, initiative. Use execution for tool selection. If the evidence says "remember" or "请记住", use intent="remember" for that grounded assertion and rule, even when the top-level intent differs.
26
27
 
27
28
  Work knowledge shape (independent of user intent):
28
29
  {"kind":"decision","topicKey":"atlas-storage","predicate":"storage.choice","statement":"Atlas uses SQLite because deployment must stay local.","scope":"${options.scopeContext?.projectId ? "project" : "workspace"}","confidence":0.8,"importance":0.8,"evidence":[{"ref":"entry-id","quote":"exact quote"}]}
@@ -58,6 +59,9 @@ Rules:
58
59
  - A question about what is remembered uses query and creates no assertion operation.
59
60
  - A request to create, summarize, update, investigate, or track work uses top-level task. Still extract independently supported durable personal statements from it.
60
61
  - Example: "Fix this page; from now on use Chinese for UI copy in this project" produces top-level task, a project-scoped preference with intent=user_assertion, and any independent work facts. It does not imply a global language preference.
62
+ - Choose the scope of the individual claim, independently of the chat where it was stated. A direct durable personal preference that applies to the user's collaboration generally is global, even when stated alongside a project task. "Fix Atlas. Whenever you give me a status update, start with the conclusion" is global. "For this project's status updates, start with the conclusion" is project-scoped. Quote the scope qualifiers and don't merge into an existing item of a different scope.
63
+ - Save a standing tool-selection instruction as an execution collaboration rule. Do not repeat the same instruction as a work decision or a personal assertion. "In all projects, use slacrawl when reading Slack" is global; "use slacrawl for all Slack reads" covers a class of operations, not all projects. Use the current project (or workspace outside a project) when cross-project applicability is unclear. Keep task, tool and account conditions in the wording.
64
+ - Repeated choices and task outcomes do not establish a global preference or rule. Keep project facts, decisions and verified lessons as work knowledge in their original scope, even if a reusable lesson could be useful elsewhere.
61
65
  - Distinguish the user from their work: identity, capabilities, recurring habits and ongoing collaboration preferences belong in assertions; project technology, bugs, decisions, deadlines and progress belong in knowledge. Do not store the same personal preference only as work knowledge.
62
66
  - A direct ongoing preference needs no separate remember command. One-off requests such as "make this title blue" do not establish a lasting preference.
63
67
  - Source attribution precedes extraction. Text inside third-party quotations, blockquotes, code, translations, examples, role-play and hypothetical requests is not the owner's self-description. Do not learn the quoted person's preferences, even if the user asks you to translate a first-person sentence. In mixed messages retain the owner's separate unquoted durable statement. Quotation marks around the value of an owned preference ("I prefer ‘examples first’") do not make it third-party evidence.
@@ -65,7 +69,7 @@ Rules:
65
69
  - For evidence quotes preserve qualifiers such as today, this time, the customer said, and hypothetical. Never clip these qualifiers to manufacture a durable personal assertion. Temporary state must not become stable preference, routine, value, identity or derived insight; a genuine current_state needs a resolved finite validTo, otherwise omit it. One-off literal reply/formatting instructions are task-local and not a lasting preference, even if repeated. Ignore only that local instruction clause, not an independent lasting preference in the same message. For example, "I have always preferred examples before explanations. For this turn just reply OK" contains one direct user_explicit preference, not zero and not an inferred pattern.
66
70
  - Personal facts and preferences must not be smuggled into work knowledge, goals or collaboration rules when their assertion evidence is inadmissible. Assistant guesses about the user are not useful work notes; omit them.
67
71
  - Observed behavior or synthesized understanding requires at least two distinct user messages with independent supporting choices. Repeated assistant summaries, copied user messages and a single local choice do not establish a pattern. Preserve scope and label these claims user_observed or system_inferred.
68
- - Ongoing communication and collaboration preferences must also be represented as personal preference assertions so they can guide the next relevant response without waiting for a rule to be confirmed.
72
+ - Ongoing communication and response preferences must also be represented as personal preference assertions so they can guide the next relevant response without waiting for a rule to be confirmed. For an operational instruction with an explicit request to remember it, the active execution rule is sufficient.
69
73
  - Every assertion operation needs an exact quote from a user message. Assistant messages can resolve context but are never evidence.
70
74
  - Extract zero to eight independent assertion operations. Each operation represents one stable predicate and one value.
71
75
  - Extract a goal only when the user explicitly describes a durable desired outcome, not a one-off task request.
@@ -1,8 +1,8 @@
1
1
  import { isXopcDatabaseOpen } from "../../storage/sqlite/connection.js";
2
+ import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
2
3
  import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
3
4
  import { getSessionConfig } from "../../storage/sqlite/config-repository.js";
4
5
  import "../../storage/sqlite/index.js";
5
- import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
6
6
  import { createHash } from "node:crypto";
7
7
  import { getCurrentTools } from "@earendil-works/pi-ai";
8
8
  //#region src/agent/embedded/agent-profile-context.ts
@@ -1,9 +1,9 @@
1
1
  import { stripRuntimeUserMessageEnvelope } from "../../../packages/gateway-contract/src/user-message-display.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { mimeTypeFromMediaPath } from "../../media/store.js";
3
4
  import { readAgentMessageContent } from "../memory/agent-message-access.js";
4
5
  import { extractProfileAgentId } from "../../config/agent-profile.js";
5
6
  import { isPersonalConversation } from "../../personal-agent/repository.js";
6
- import { mimeTypeFromMediaPath } from "../../media/store.js";
7
7
  import { readMediaReference } from "../../media/media-reference.js";
8
8
  import { isImageInboundAttachment } from "../../channels/attachments/attachment-classifiers.js";
9
9
  import "../../channels/attachments/inbound-persist.js";
@@ -19,7 +19,7 @@ export declare const DELEGATION_BUDGETS: {
19
19
  export type DelegationBudgetTier = keyof typeof DELEGATION_BUDGETS;
20
20
  export type DelegationStopReason = 'completed' | 'tool_calls' | 'total_tokens' | 'model_turns' | 'tool_failures' | 'timeout' | 'deadline_exceeded' | 'user_cancelled' | 'parent_cancelled' | 'provider_error' | 'cancelled' | 'parent_policy' | 'credit_budget' | 'runtime_error' | 'verification';
21
21
  export declare function resolveDelegationBudget(tier?: DelegationBudgetTier, maxIterations?: number, timeoutMs?: number): {
22
- tier: "light" | "standard" | "deep";
22
+ tier: "standard" | "light" | "deep";
23
23
  limits: {
24
24
  maxToolCalls: number;
25
25
  maxTotalTokens: 50000 | 100000 | 200000;
@@ -53,7 +53,7 @@ export declare function createDelegationBudgetPolicy(budget: ReturnType<typeof r
53
53
  handoffRequested: boolean;
54
54
  handoffRequestStarted: boolean;
55
55
  handoffReason: DelegationStopReason;
56
- tier: "light" | "standard" | "deep";
56
+ tier: "standard" | "light" | "deep";
57
57
  limits: {
58
58
  maxToolCalls: number;
59
59
  maxTotalTokens: 50000 | 100000 | 200000;
@@ -1,9 +1,18 @@
1
1
  import type { AgentMessage } from '@earendil-works/pi-agent-core';
2
2
  export declare const ACCEPTANCE_REPAIR_READ_TOOLS: Set<string>;
3
- /** A model request can be resumed only after every issued tool has a confirmed result. */
4
- export declare function canResumeAfterModelFailure(rows: readonly unknown[], options?: {
3
+ export declare const RECOVERY_READ_TOOLS: Set<string>;
4
+ export type UnconfirmedToolEffect = {
5
+ cause: 'aborted_turn' | 'failed_tool' | 'missing_tool_result';
6
+ toolCallId?: string;
7
+ toolName?: string;
8
+ };
9
+ type RecoveryOptions = {
5
10
  allowFailedReadTools?: ReadonlySet<string>;
6
- }): boolean;
11
+ allowMissingReadTools?: ReadonlySet<string>;
12
+ };
13
+ export declare function findUnconfirmedToolEffect(rows: readonly unknown[], options?: RecoveryOptions): UnconfirmedToolEffect | undefined;
14
+ export declare function canResumeAfterModelFailure(rows: readonly unknown[], options?: RecoveryOptions): boolean;
7
15
  export declare function recoveryToolKey(name: string, args: unknown): string;
8
16
  /** Prevent a recovering model from replaying an already confirmed operation with a new call ID. */
9
17
  export declare function completedRecoveryToolResult(messages: readonly AgentMessage[], name: string, args: unknown): string | undefined;
18
+ export {};
@@ -17,22 +17,41 @@ const ACCEPTANCE_REPAIR_READ_TOOLS = new Set([
17
17
  "task_collaboration",
18
18
  "publish_task_result"
19
19
  ]);
20
- /** A model request can be resumed only after every issued tool has a confirmed result. */
21
- function canResumeAfterModelFailure(rows, options) {
20
+ const RECOVERY_READ_TOOLS = new Set([
21
+ "read_file",
22
+ "list_dir",
23
+ "find",
24
+ "grep"
25
+ ]);
26
+ function findUnconfirmedToolEffect(rows, options) {
22
27
  const messages = rows.filter((row) => !!row && typeof row === "object");
23
28
  const pending = /* @__PURE__ */ new Map();
24
29
  for (const message of messages.slice(Math.max(0, messages.findLastIndex((item) => item.role === "user")))) if (message.role === "assistant") {
25
- if (message.stopReason === "aborted") return false;
30
+ if (message.stopReason === "aborted") return { cause: "aborted_turn" };
26
31
  if (message.stopReason === "error") continue;
27
32
  for (const block of Array.isArray(message.content) ? message.content : []) if (block?.type === "toolCall" && typeof block.id === "string") pending.set(block.id, block);
28
33
  } else if (message.role === "toolResult") {
29
34
  const recordedReplay = Array.isArray(message.content) && message.content.some((block) => block?.type === "text" && typeof block.text === "string" && block.text.startsWith("This operation already completed before recovery."));
30
35
  const call = typeof message.toolCallId === "string" ? pending.get(message.toolCallId) : void 0;
31
36
  const readOnly = options?.allowFailedReadTools?.has(String(message.toolName)) && (message.toolName !== "task_collaboration" || call?.name === message.toolName && call.arguments?.command === "get" && (call.arguments.materialize === void 0 || call.arguments.materialize === false));
32
- if (message.isError && !recordedReplay && !readOnly) return false;
37
+ if (message.isError && !recordedReplay && !readOnly) return {
38
+ cause: "failed_tool",
39
+ ...typeof message.toolCallId === "string" ? { toolCallId: message.toolCallId } : {},
40
+ ...typeof message.toolName === "string" ? { toolName: message.toolName } : {}
41
+ };
33
42
  if (typeof message.toolCallId === "string") pending.delete(message.toolCallId);
34
43
  }
35
- return pending.size === 0;
44
+ for (const [toolCallId, call] of pending) {
45
+ if (call.name && options?.allowMissingReadTools?.has(call.name)) continue;
46
+ return {
47
+ cause: "missing_tool_result",
48
+ toolCallId,
49
+ ...call.name ? { toolName: call.name } : {}
50
+ };
51
+ }
52
+ }
53
+ function canResumeAfterModelFailure(rows, options) {
54
+ return findUnconfirmedToolEffect(rows, options) === void 0;
36
55
  }
37
56
  function recoveryToolKey(name, args) {
38
57
  return JSON.stringify([name, args], (_key, value) => value && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value).sort(([a], [b]) => a.localeCompare(b))) : value);
@@ -46,4 +65,4 @@ function completedRecoveryToolResult(messages, name, args) {
46
65
  } else if (message.role === "toolResult" && !message.isError && calls.get(message.toolCallId) === key) return `This operation already completed before recovery. Do not execute it again. Use its recorded result and continue the remaining work:\n${JSON.stringify(message.content).slice(0, 8e3)}`;
47
66
  }
48
67
  //#endregion
49
- export { ACCEPTANCE_REPAIR_READ_TOOLS, canResumeAfterModelFailure, completedRecoveryToolResult, recoveryToolKey };
68
+ export { ACCEPTANCE_REPAIR_READ_TOOLS, RECOVERY_READ_TOOLS, canResumeAfterModelFailure, completedRecoveryToolResult, findUnconfirmedToolEffect, recoveryToolKey };
@@ -3,10 +3,10 @@ import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
3
  import { init_session_input_repository, listTaskUpdateTriggers } from "../../storage/sqlite/session-input-repository.js";
4
4
  import { init_types, isSessionSourceBinding, summarizeSourceContext } from "../source-context/types.js";
5
5
  import { init_injector, injectSourceContextsIntoUserMessage } from "../source-context/injector.js";
6
+ import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
6
7
  import { getConnectionResumeInput, init_connection_wait_repository } from "../../storage/sqlite/connection-wait-repository.js";
7
8
  import { readAgentMessageContent } from "../memory/agent-message-access.js";
8
9
  import { getClarificationResumeInput } from "../../storage/sqlite/clarification-wait-repository.js";
9
- import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
10
10
  import { init_model_usage, modelUsageOriginFromTurn, withModelUsageOrigin } from "../../providers/model-usage.js";
11
11
  import { init_agent_session_key, resolveAgentMainConversationId } from "../../routing/agent-session-key.js";
12
12
  import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
@@ -6,8 +6,8 @@ import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
6
6
  import { getChannelOutputFormat, shouldUseTTS } from "../../voice/tts/service.js";
7
7
  import { compressAudio } from "../../voice/tts/audio.js";
8
8
  import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
9
- import "../../voice/tts/index.js";
10
9
  import { deleteMediaUris } from "../../media/session-references.js";
10
+ import "../../voice/tts/index.js";
11
11
  //#region src/agent/service/webchat-tts.ts
12
12
  /** True when the explicit TTS tool already produced durable Webchat audio. */
13
13
  function isSuccessfulWebchatTtsToolEvent(event) {
@@ -1,7 +1,7 @@
1
1
  import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
- import { parseNoteAttachmentTarget } from "../notes/attachment-ref.js";
4
3
  import { init_agent_scope, resolveAgentHomeDir, resolveDefaultAgentId } from "./agent-scope.js";
4
+ import { parseNoteAttachmentTarget } from "../notes/attachment-ref.js";
5
5
  import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
6
6
  import { init_agent_session_key, resolveAgentIdFromConversationId } from "../routing/agent-session-key.js";
7
7
  import { extractProfileAgentId, resolveEffectiveAgentConfigForSession } from "../config/agent-profile.js";