@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
@@ -114,7 +114,7 @@ var TaskJudgeService = class {
114
114
  if (!task?.contract) return;
115
115
  const run = this.#runs.getActiveRoot(taskId);
116
116
  if (!run || run.status !== "running" || run.conversationId !== payload.conversationId) return;
117
- if (currentTaskResearchResult(run.id) || task.body?.includes("publish_task_result")) return;
117
+ if (currentTaskResearchResult(run.id) || task.contract && task.contract.resultPolicy !== "standard") return;
118
118
  let runtimeModel;
119
119
  try {
120
120
  runtimeModel = this.options.modelManager.getModelForSession(payload.conversationId);
@@ -1,8 +1,8 @@
1
1
  import { checkedFilePath, deleteWorkspaceFile, readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
2
2
  import { detectLineEnding, generateDiffString, normalizeToLF, restoreLineEndings } from "./edit-diff.js";
3
3
  import { relative } from "node:path";
4
- import { Type } from "@sinclair/typebox";
5
4
  import { stat } from "node:fs/promises";
5
+ import { Type } from "@sinclair/typebox";
6
6
  //#region src/agent/tools/apply-patch.ts
7
7
  const ApplyPatchSchema = Type.Object({ patch: Type.String({ description: [
8
8
  "Patch text using the grammar:",
@@ -3,12 +3,12 @@ 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
5
  import { getBrowserTabBinding } from "../../storage/sqlite/browser-tab-binding-repository.js";
6
+ import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
6
7
  import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
7
8
  import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
8
9
  import { patchSessionMetadata } from "../../storage/sqlite/session-repository.js";
9
10
  import { getSessionTaskPlan, setSessionTaskPlan } from "../../storage/sqlite/session-task-plan-repository.js";
10
11
  import "../../storage/sqlite/index.js";
11
- import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
12
12
  import { getConversationRouting } from "../../storage/sqlite/conversation-repository.js";
13
13
  import { init_session_key } from "../../routing/session-key.js";
14
14
  import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
@@ -309,6 +309,7 @@ function createImageGenerateTool(options) {
309
309
  kind: "image",
310
310
  mimeType: item.mimeType,
311
311
  sizeBytes: item.size,
312
+ sha256: item.sha256,
312
313
  availability: "available",
313
314
  location: "artifact_store",
314
315
  capabilities: ["preview", "download"],
@@ -1,7 +1,7 @@
1
1
  import { createExecCommandTool } from "./exec-command.js";
2
2
  import { relative, resolve, sep } from "node:path";
3
- import { Type } from "@sinclair/typebox";
4
3
  import { access } from "node:fs/promises";
4
+ import { Type } from "@sinclair/typebox";
5
5
  //#region src/agent/tools/language-diagnostics.ts
6
6
  function parseTypeScriptDiagnostics(output) {
7
7
  return [...output.matchAll(/^(.+)\((\d+),(\d+)\): error (TS\d+): (.+)$/gm)].slice(0, 200).map((match) => ({
@@ -9,6 +9,7 @@ import { inferMemorySensitivity } from "../memory/sensitivity.js";
9
9
  import { canUseKnowledge, knowledgeContentSources } from "../../knowledge-memory/usage-policy.js";
10
10
  import { deleteKnowledgeItem, getKnowledgeItem, reviewKnowledgeItem, setKnowledgeScope, writeKnowledgeItem } from "../../knowledge-memory/repository.js";
11
11
  import "../../knowledge-memory/index.js";
12
+ import { ownerExcludesGlobalScope, ownerMemoryScope, standingToolScope } from "../../user-model/capture/evidence-policy.js";
12
13
  import { isUnquotedOwnerEvidence } from "../../memory-learning/owner-directive.js";
13
14
  import { deleteUserAssertion, getAssertionSlot, getUserAssertion, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../user-model/repository.js";
14
15
  import { canUseAssertion } from "../../user-model/usage-policy.js";
@@ -91,7 +92,7 @@ function explicitRequest(text, quote, command) {
91
92
  const author = text.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~|^\s*>.*$/gmu, "").replace(/“[^”]*”|「[^」]*」|『[^』]*』|"[^"\n]*"/gu, (span) => /记住|保存|纠正|修改|remember|save|correct|scope/iu.test(span) ? "" : span);
92
93
  if (!quote.trim() || !author.includes(quote.trim())) return false;
93
94
  if (command === "remember") return !/不要.*(?:记住|保存)|别.*(?:记住|保存)|(?:don't|do not|never)\s+(?:remember|save|store)/iu.test(author) && /记住|保存|记下|记着|\b(?:remember|save|store)\b/iu.test(quote);
94
- return /纠正|修正|改成|改为|修改|更正|不是|仅|只(?:在|用|对)|范围|所有|全局|\b(?:correct|change|update|instead|only|scope|global|all)\b/iu.test(quote) && !/(?:不要|别|不必)(?:再)?(?:修改|更正|纠正)|(?:don't|do not|never)\s+(?:change|correct|update)/iu.test(author);
95
+ return /纠正|修正|改成|改为|修改|更正|不是|仅|只(?:在|用|对)|范围|所有|全局|跨项目|\b(?:correct|change|update|instead|only|scope|global|globally|all|across)\b/iu.test(quote) && !/(?:不要|别|不必)(?:再)?(?:修改|更正|纠正)|(?:don't|do not|never)\s+(?:change|correct|update)/iu.test(author);
95
96
  }
96
97
  /** Explicit owner mutations use the existing domain transactions and atomic operation receipts. */
97
98
  function createPersonalMemoryTool(deps) {
@@ -99,7 +100,7 @@ function createPersonalMemoryTool(deps) {
99
100
  name: "personal_memory",
100
101
  label: "Manage memory",
101
102
  parameters: schema,
102
- description: "Remember, correct, forget, or change the scope of memory only on an explicit current owner request. Quote that request in userEvidence. User identity/preferences use target=user; project facts/decisions/lessons use knowledge. For existing items first read their id and version with user_context_read or knowledge_read. Scope IDs come from the current conversation; never guess another agent/project. Report the committed receipt status and scope: saved is durable, pending is not yet usable, forgotten keeps original sources. Changes apply to future turns, not already running prompts. Memory never grants action authority.",
103
+ description: "Remember, correct, forget, or change the scope of memory only on an explicit current owner request. Quote that request and its scope qualifiers in userEvidence. User identity, preferences and standing collaboration instructions use target=user. Project facts, decisions and lessons use target=knowledge. A tool instruction for all operations of one type is not an instruction for all projects. For existing items first read their id and version with user_context_read or knowledge_read. Scope IDs come from the current conversation; never guess another agent/project. Report the committed receipt status and scope: saved is durable, pending is not yet usable, forgotten keeps original sources. Changes apply to future turns, not already running prompts. Memory never grants action authority.",
103
104
  async execute(_callId, raw) {
104
105
  const fail = (error) => ({
105
106
  content: [{
@@ -154,13 +155,13 @@ function createPersonalMemoryTool(deps) {
154
155
  id
155
156
  };
156
157
  };
157
- const requestedScope = [
158
- ["project", /(?:只|仅)(?:在|用|对|限于)?.{0,6}(?:本项目|这个项目|当前项目)|only.{0,20}(?:this|current) project/iu],
159
- ["workspace", /(?:只|仅)(?:在|用|对|限于)?.{0,6}(?:本工作区|这个工作区|当前工作区)|only.{0,20}(?:this|current) workspace/iu],
160
- ["session", /(?:只|仅)(?:在|用|对|限于)?.{0,6}(?:本会话|这个会话|当前会话|这次对话)|only.{0,20}(?:this|current) (?:chat|session|conversation)/iu],
161
- ["agent", /(?:只|仅)(?:在|用|对|限于)?.{0,6}(?:本助手|这个助手|当前助手)|only.{0,20}(?:this|current) (?:agent|assistant)/iu]
162
- ].find(([, pattern]) => pattern.test(input.userEvidence))?.[0];
163
- if (requestedScope && input.scope && requestedScope !== input.scope) return fail("requested_scope_mismatch");
158
+ const requestedScope = ownerMemoryScope(text, input.userEvidence);
159
+ const localScope = requestedScope === "global" ? void 0 : requestedScope;
160
+ if (localScope && input.scope && localScope !== input.scope) return fail("requested_scope_mismatch");
161
+ const toolScope = input.command === "remember" ? standingToolScope(text, input.userEvidence, Boolean(context.projectId)) : void 0;
162
+ if (toolScope && input.target === "knowledge") return fail("collaboration_instruction_requires_preference");
163
+ if (toolScope && input.scope && toolScope !== input.scope || requestedScope === "global" && input.command === "remember" && input.scope && input.scope !== "global") return fail("requested_scope_mismatch");
164
+ if (input.command === "scope" && input.scope === "global" && requestedScope !== "global") return fail("explicit_global_scope_required");
164
165
  const digest = createHash("sha256").update(JSON.stringify(input)).digest("hex");
165
166
  const receipt = executeAtomicOperation({
166
167
  principalId: "local-owner",
@@ -184,8 +185,9 @@ function createPersonalMemoryTool(deps) {
184
185
  } : knowledge)) throw new Error("memory_version_conflict_read_again");
185
186
  } else if (input.id || input.version) throw new Error("remember_does_not_accept_existing_id");
186
187
  if (input.command !== "scope" && currentScope && requestedScope && currentScope.type !== requestedScope) throw new Error("requested_scope_mismatch");
187
- const scope = input.command === "scope" ? input.scope ?? requestedScope ? resolveScope(input.scope ?? requestedScope) : void 0 : currentScope ?? resolveScope(input.scope ?? requestedScope ?? (input.target === "user" ? "global" : context.projectId ? "project" : "workspace"));
188
+ const scope = input.command === "scope" ? input.scope ?? requestedScope ? resolveScope(input.scope ?? requestedScope) : void 0 : currentScope ?? resolveScope(input.scope ?? requestedScope ?? toolScope ?? (input.target === "user" && !ownerExcludesGlobalScope(text, input.userEvidence) ? "global" : context.projectId ? "project" : "workspace"));
188
189
  if (!scope) throw new Error("scope_required");
190
+ if (scope.type === "global" && ownerExcludesGlobalScope(text, input.userEvidence)) throw new Error("requested_scope_mismatch");
189
191
  if (input.target === "knowledge" && input.command !== "forget" && (!access.knowledgePolicy.scopes.includes(scope.type) || !access.knowledgePolicy.contentSources.includes("memory"))) throw new Error("memory_scope_denied");
190
192
  if (input.command !== "scope" && input.command !== "remember" && input.scope) {
191
193
  const suppliedScope = resolveScope(input.scope);
@@ -33,6 +33,7 @@ declare const PersonalTaskModelSchema: import("@sinclair/typebox").TObject<{
33
33
  baselineVersion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
34
34
  notificationPreference: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<import("@sinclair/typebox").TLiteral<"default" | "final_only" | "updates">[]>>;
35
35
  afterSequence: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
36
+ workspaceOutputs: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
36
37
  useOriginalRequest: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
37
38
  baselineResultId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
38
39
  supersedesEntryIds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
@@ -1,6 +1,5 @@
1
- import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
2
1
  import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
3
- import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../../../packages/gateway-contract/src/task-display.js";
2
+ import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
4
3
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
5
4
  import { getSessionInputById, getSessionInputState, init_session_input_repository } from "../../storage/sqlite/session-input-repository.js";
6
5
  import { TaskRepository, init_task_repository } from "../../tasks/task-repository.js";
@@ -10,14 +9,13 @@ import "../../storage/sqlite/index.js";
10
9
  import { isPersonalConversation } from "../../personal-agent/repository.js";
11
10
  import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
12
11
  import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
13
- import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
14
12
  import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
15
13
  import { TaskResultDeliveryRepository } from "../../tasks/task-result-delivery-repository.js";
14
+ import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
16
15
  import { boundedPersonalResult } from "./personal-result-budget.js";
17
16
  import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
18
17
  import { TaskApplicationService } from "../../tasks/task-application-service.js";
19
18
  import { TASK_NOTIFICATION_PREFERENCES, isTaskNotificationPreference, setTaskNotificationPreference } from "../../tasks/task-notification-preference.js";
20
- import "../../personal-agent/communication.js";
21
19
  import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
22
20
  import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
23
21
  import { createXopcUseTool } from "./xopc-use-tool.js";
@@ -123,6 +121,7 @@ const PersonalTaskSchema = Type.Object({
123
121
  ].map((value) => Type.Literal(value)))),
124
122
  questionId: Type.Optional(Type.String({ description: "Collaboration question ID to answer." })),
125
123
  expectedOutputs: Type.Optional(Type.Array(Type.String())),
124
+ workspaceOutputs: Type.Optional(Type.Array(Type.String({ description: "Only an explicitly requested output path relative to the originating workspace. Do not list previews or temporary files." }), { maxItems: 20 })),
126
125
  acceptancePolicy: Type.Optional(Type.Union([Type.Literal("verified_auto"), Type.Literal("manual")], { description: "Defaults to automatic verification and completion. Use manual only when the user explicitly requests human acceptance." })),
127
126
  acceptanceCriteria: Type.Optional(Type.Array(Type.String())),
128
127
  constraints: Type.Optional(Type.Array(Type.String())),
@@ -274,12 +273,15 @@ function buildPersonalTaskBrief(input) {
274
273
  return {
275
274
  title,
276
275
  objective,
277
- body: [fullObjective !== objective ? [fullObjective, description].filter(Boolean).join("\n\n") : description, PERSONAL_WORKER_RESULT_GUIDANCE].filter(Boolean).join("\n\n")
276
+ body: (fullObjective !== objective ? [fullObjective, description].filter(Boolean).join("\n\n") : description) || void 0
278
277
  };
279
278
  }
280
279
  /** A narrow Task surface for the fast personal conversation. */
281
280
  function createPersonalTaskTool(deps) {
282
- const productTool = createXopcUseTool(deps);
281
+ const productTool = createXopcUseTool({
282
+ ...deps,
283
+ createTask: (input, actor) => deps.createTask ? deps.createTask(input, actor, { resultPolicy: "selected" }) : new TaskApplicationService().create(input, actor, { resultPolicy: "selected" })
284
+ });
283
285
  const matches = /* @__PURE__ */ new Map();
284
286
  return {
285
287
  name: "personal_task",
@@ -397,7 +399,8 @@ function createPersonalTaskTool(deps) {
397
399
  acceptancePolicy: input.acceptancePolicy,
398
400
  notificationPreference: input.notificationPreference,
399
401
  dueAt: input.dueAt,
400
- constraints: input.constraints
402
+ constraints: input.constraints,
403
+ workspaceOutputs: input.workspaceOutputs
401
404
  });
402
405
  command = "create";
403
406
  args = {
@@ -413,6 +416,7 @@ function createPersonalTaskTool(deps) {
413
416
  acceptanceCriteria: input.acceptanceCriteria,
414
417
  acceptancePolicy: input.acceptancePolicy,
415
418
  constraints: input.constraints,
419
+ workspaceOutputs: input.workspaceOutputs,
416
420
  idempotencyKey: `personal-submit:${conversationId}:${selectionRequestHash(submissionKey)}`
417
421
  };
418
422
  if (requirements.requiredSkills?.length) args.body = `${brief.body}\n\nRequired Skills: ${requirements.requiredSkills.join(", ")}. Read and follow these Skills before execution.`;
@@ -494,6 +498,7 @@ function createPersonalTaskTool(deps) {
494
498
  createMode: "start",
495
499
  includeConversationContext: false,
496
500
  expectedOutputs: input.expectedOutputs,
501
+ workspaceOutputs: input.workspaceOutputs,
497
502
  acceptanceCriteria: input.acceptanceCriteria,
498
503
  acceptancePolicy: input.acceptancePolicy,
499
504
  constraints: input.constraints,
@@ -6,8 +6,8 @@ import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
6
6
  import { readWorkspaceFile } from "../sandbox/fileAccess.js";
7
7
  import { persistToolMedia } from "./tool-media.js";
8
8
  import { basename, isAbsolute, relative, sep } from "node:path";
9
- import { Type } from "@sinclair/typebox";
10
9
  import { realpath } from "node:fs/promises";
10
+ import { Type } from "@sinclair/typebox";
11
11
  //#region src/agent/tools/publish-artifacts.ts
12
12
  init_src();
13
13
  const PublishArtifactsSchema = Type.Object({ paths: Type.Array(Type.String({ minLength: 1 }), {
@@ -49,6 +49,7 @@ async function publishArtifactPaths(params) {
49
49
  kind,
50
50
  mimeType: media.mimeType,
51
51
  sizeBytes: media.size,
52
+ sha256: media.sha256,
52
53
  availability: "available",
53
54
  location: "artifact_store",
54
55
  capabilities: kind === "archive" || kind === "file" ? ["download"] : ["preview", "download"],
@@ -5,8 +5,8 @@ import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
5
5
  import { resolve } from "node:path";
6
6
  import { execFile } from "node:child_process";
7
7
  import { promisify } from "node:util";
8
- import { Type } from "@sinclair/typebox";
9
8
  import { lstat, readlink, realpath } from "node:fs/promises";
9
+ import { Type } from "@sinclair/typebox";
10
10
  //#region src/agent/tools/review-workspace.ts
11
11
  const exec = promisify(execFile);
12
12
  function createReviewWorkspaceTool(workspace) {
@@ -74,6 +74,7 @@ function createSendMediaTool(workspace, bus, getContext) {
74
74
  kind: media.type === "photo" ? "image" : media.type === "video" ? "video" : media.type === "audio" ? "audio" : turnOutcomeKindFromFileName(media.name),
75
75
  mimeType: media.mimeType,
76
76
  sizeBytes: media.size,
77
+ sha256: media.sha256,
77
78
  availability: "available",
78
79
  location: "artifact_store",
79
80
  capabilities: ["preview", "download"],
@@ -6,4 +6,6 @@ export declare function persistToolMedia(params: {
6
6
  buffer: Buffer;
7
7
  filePath: string;
8
8
  mediaType?: ToolMediaType;
9
- }): Promise<MediaRef>;
9
+ }): Promise<MediaRef & {
10
+ sha256: string;
11
+ }>;
@@ -1,6 +1,7 @@
1
1
  import { MEDIA_ARTIFACT_MAX_BYTES, mimeTypeFromMediaPath, saveMediaBuffer } from "../../media/store.js";
2
2
  import { sniffImageMimeType } from "../image/generation/image-assets.js";
3
3
  import { basename } from "node:path";
4
+ import { createHash } from "node:crypto";
4
5
  //#region src/agent/tools/tool-media.ts
5
6
  function hasImageMagic(buffer) {
6
7
  if (buffer.length >= 8 && buffer.subarray(0, 8).equals(Buffer.from([
@@ -49,6 +50,7 @@ async function persistToolMedia(params) {
49
50
  mimeType: saved.contentType,
50
51
  name,
51
52
  size: saved.size,
53
+ sha256: createHash("sha256").update(params.buffer).digest("hex"),
52
54
  uri: saved.uri,
53
55
  path: saved.path
54
56
  };
@@ -2,6 +2,7 @@ import type { AgentTool } from '@earendil-works/pi-agent-core';
2
2
  declare const schema: import("@sinclair/typebox").TObject<{
3
3
  action: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"create">, import("@sinclair/typebox").TLiteral<"update">, import("@sinclair/typebox").TLiteral<"revise">, import("@sinclair/typebox").TLiteral<"inspect">]>;
4
4
  prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
+ summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
5
6
  duration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
6
7
  ratio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"16:9">, import("@sinclair/typebox").TLiteral<"9:16">, import("@sinclair/typebox").TLiteral<"adaptive">]>>;
7
8
  resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"480P">, import("@sinclair/typebox").TLiteral<"720P">, import("@sinclair/typebox").TLiteral<"1080P">]>>;
@@ -13,6 +13,10 @@ const schema = Type.Object({
13
13
  Type.Literal("inspect")
14
14
  ]),
15
15
  prompt: Type.Optional(Type.String({ maxLength: 1e3 })),
16
+ summary: Type.Optional(Type.String({
17
+ maxLength: 180,
18
+ description: "A short description of the visible scene in the user’s language. Keep it in sync whenever the prompt changes."
19
+ })),
16
20
  duration: Type.Optional(Type.Integer()),
17
21
  ratio: Type.Optional(Type.Union([
18
22
  Type.Literal("16:9"),
@@ -31,7 +35,7 @@ function createVideoDraftTool(getConversationId) {
31
35
  return {
32
36
  name: "video_draft",
33
37
  label: "Prepare video draft",
34
- description: "Prepare a video when the user asks to generate one in Web chat. Create a draft, update the pending draft, or revise the last submitted video as a new version. For a new draft, a single image in the current user message is used by default. An update or revision keeps its reference image unless the user requests another one; use image=current to switch to a new attachment. Use inspect to list recent images and the previous draft. Ask which image to use when the reference is ambiguous. Use video settings for any unspecified options. The draft appears as a card. Tell the user to click Generate or reply “confirm video generation” / “就按这个生成” to submit the reviewed draft. This tool cannot start generation.",
38
+ description: "Prepare a video when the user asks to generate one in Web chat. Create a draft, update the pending draft, or revise the last submitted video as a new version. For a new draft, a single image in the current user message is used by default. An update or revision keeps its reference image unless the user requests another one; use image=current to switch to a new attachment. Use inspect to list recent images and the previous draft. Ask which image to use when the reference is ambiguous. Use video settings for any unspecified options. Provide a short scene summary alongside the full prompt. The draft appears as a card. When first presenting it, briefly tell the user they can click Confirm generation or reply “confirm video generation” / “就按这个生成”. This tool cannot start generation.",
35
39
  parameters: schema,
36
40
  async execute(_id, args) {
37
41
  if (!Value.Check(schema, args)) throw new Error("Invalid video draft parameters.");
@@ -1,9 +1,9 @@
1
1
  import { runWithActivityContext } from "../../activity/context.js";
2
2
  import { init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
3
- import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
4
- import { TaskCommandSchema, TaskContextInputSchema } from "../../../packages/gateway-contract/src/tasks.js";
5
3
  import { ChatPreviewCreateInputSchema, ChatPreviewReviseInputSchema } from "../../../packages/gateway-contract/src/chat-previews.js";
6
4
  import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
5
+ import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
6
+ import { TaskCommandSchema, TaskContextInputSchema, TaskWorkspaceDestinationSchema } from "../../../packages/gateway-contract/src/tasks.js";
7
7
  import { AutomationCancelOutputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRecoveryOutputSchema, AutomationRunMutationOutputSchema, CapabilityCallSchema, CapabilityResourceInputSchema, NoteDeleteOutputSchema, NoteGetOutputSchema, ProjectCreateInputSchema, ProjectDeleteInputSchema, ProjectDeleteOutputSchema, ProjectEditInputSchema, ProjectMilestoneCreateInputSchema, ProjectMilestoneDeleteInputSchema, ProjectMilestoneDeleteOutputSchema, ProjectMilestoneOutputSchema, ProjectMilestoneUpdateInputSchema, ProjectMutationOutputSchema, ProjectResolveWorkspaceInputSchema, ProjectResolveWorkspaceOutputSchema, ProjectSetPinnedInputSchema, ProjectUpdateCreateInputSchema, ProjectUpdateOutputSchema, TaskRunCancelInputSchema, TaskRunCancelOutputSchema, TaskRunFeedbackInputSchema, TaskRunFeedbackOutputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
8
8
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
9
9
  import { TaskRepository } from "../../tasks/task-repository.js";
@@ -15,9 +15,9 @@ import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-rou
15
15
  import { isPersonalConversation } from "../../personal-agent/repository.js";
16
16
  import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-language.js";
17
17
  import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
18
- import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
19
18
  import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
20
19
  import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
20
+ import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
21
21
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
22
22
  import { getAutomationSetup } from "../../automations/configuration-conversation.js";
23
23
  import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
@@ -1433,6 +1433,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
1433
1433
  const baseContract = defineTaskContract(objective, taskLocale);
1434
1434
  const contractFields = [
1435
1435
  "expectedOutputs",
1436
+ "workspaceOutputs",
1436
1437
  "acceptanceCriteria",
1437
1438
  "constraints",
1438
1439
  "approvalRequired",
@@ -1463,6 +1464,22 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
1463
1464
  error: "Invalid acceptancePolicy"
1464
1465
  };
1465
1466
  const originConversationId = deps.getCurrentConversationId?.();
1467
+ const workspaceAgentId = originConversationId ? deps.getCurrentAgentId?.() : void 0;
1468
+ const workspaceId = projectId ? `project:${projectId}` : workspaceAgentId ? `agent:${workspaceAgentId}` : "";
1469
+ const workspaceOutputs = args.workspaceOutputs === void 0 ? [] : args.workspaceOutputs;
1470
+ if (!Array.isArray(workspaceOutputs) || workspaceOutputs.length > 20) return {
1471
+ ok: false,
1472
+ error: "Invalid workspaceOutputs"
1473
+ };
1474
+ const outputDestinations = workspaceOutputs.map((relativePath) => TaskWorkspaceDestinationSchema.safeParse({
1475
+ kind: "workspace_file",
1476
+ workspaceId,
1477
+ relativePath
1478
+ }));
1479
+ if (outputDestinations.some((target) => !target.success)) return {
1480
+ ok: false,
1481
+ error: "Use explicit paths relative to the task workspace"
1482
+ };
1466
1483
  const conversationId = trimString(args.conversationId) ?? originConversationId;
1467
1484
  const config = deps.getConfig?.();
1468
1485
  const projectService = deps.getProjectService?.();
@@ -1528,7 +1545,7 @@ async function handleTask(command, args, deps, dryRun, capabilities) {
1528
1545
  contract: {
1529
1546
  ...contract,
1530
1547
  acceptancePolicy,
1531
- outputDestinations: []
1548
+ outputDestinations: outputDestinations.flatMap((target) => target.success ? [target.data] : [])
1532
1549
  },
1533
1550
  dependencies: dependsOnTaskIds,
1534
1551
  context: [
@@ -1,6 +1,6 @@
1
1
  import { closeXopcDatabase, openXopcDatabase } from "../storage/sqlite/connection.js";
2
- import "../storage/sqlite/index.js";
3
2
  import { AgentCatalogRepository, init_repository } from "./repository.js";
3
+ import "../storage/sqlite/index.js";
4
4
  //#region src/agent-catalog/test-support.ts
5
5
  init_repository();
6
6
  /** Build an isolated, ready in-memory Agent catalog for a unit test. */
@@ -65,7 +65,7 @@ function createSelectedTask(input, actor, selection) {
65
65
  previousSelectionId: selection.previousSelectionId,
66
66
  status: "task_linked"
67
67
  });
68
- const result = new TaskApplicationService().create(input, actor);
68
+ const result = new TaskApplicationService().create(input, actor, { resultPolicy: "selected" });
69
69
  repository.link(record.id, {
70
70
  taskId: result.model?.task.id,
71
71
  runId: result.ok ? result.runId : void 0,
@@ -1,9 +1,9 @@
1
1
  import { AutomationDraftOutputSchema, AutomationDraftRequestSchema, AutomationRepairDraftOutputSchema, AutomationSimulationSchema } from "../../../packages/gateway-contract/src/capabilities.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
3
4
  import { resolveAutomationSafetyForTrust } from "../../user-context/trust-policy.js";
4
5
  import { getUserTrustPolicy } from "../../storage/sqlite/user-trust-repository.js";
5
6
  import "../../storage/sqlite/index.js";
6
- import { init_agent_scope, resolveDefaultAgentId } from "../../agent/agent-scope.js";
7
7
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
8
8
  import { ExternalEffectNotAppliedError } from "../../capabilities/runtime/external-operations.js";
9
9
  import { defineExternalCapability, defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
@@ -41,6 +41,15 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
41
41
  name: z.ZodString;
42
42
  enabled: z.ZodOptional<z.ZodBoolean>;
43
43
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
44
+ kind: z.ZodLiteral<"personal_task">;
45
+ conversationId: z.ZodString;
46
+ agentId: z.ZodString;
47
+ instruction: z.ZodString;
48
+ locale: z.ZodEnum<{
49
+ zh: "zh";
50
+ en: "en";
51
+ }>;
52
+ }, z.core.$strict>, z.ZodObject<{
44
53
  kind: z.ZodLiteral<"routine">;
45
54
  routineId: z.ZodString;
46
55
  version: z.ZodNumber;
@@ -62,8 +71,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
62
71
  type: z.ZodLiteral<"move">;
63
72
  phase: z.ZodEnum<{
64
73
  review: "review";
65
- backlog: "backlog";
66
74
  ready: "ready";
75
+ backlog: "backlog";
67
76
  active: "active";
68
77
  closed: "closed";
69
78
  }>;
@@ -91,6 +100,9 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
91
100
  scheduleAt: z.ZodOptional<z.ZodNumber>;
92
101
  }, z.core.$strip>, z.ZodObject<{
93
102
  type: z.ZodLiteral<"request_review">;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ type: z.ZodLiteral<"signoff">;
105
+ resultId: z.ZodString;
94
106
  }, z.core.$strip>, z.ZodObject<{
95
107
  type: z.ZodLiteral<"close">;
96
108
  resolution: z.ZodEnum<{
@@ -103,8 +115,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
103
115
  type: z.ZodLiteral<"reopen">;
104
116
  phase: z.ZodEnum<{
105
117
  review: "review";
106
- backlog: "backlog";
107
118
  ready: "ready";
119
+ backlog: "backlog";
108
120
  active: "active";
109
121
  }>;
110
122
  }, z.core.$strip>, z.ZodObject<{
@@ -159,8 +171,8 @@ export declare const AutomationCreateCapabilityInputSchema: z.ZodObject<{
159
171
  description: z.ZodOptional<z.ZodString>;
160
172
  delivery: z.ZodDefault<z.ZodObject<{
161
173
  notificationPolicy: z.ZodDefault<z.ZodEnum<{
162
- attention: "attention";
163
174
  none: "none";
175
+ attention: "attention";
164
176
  all: "all";
165
177
  }>>;
166
178
  destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -275,6 +287,15 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
275
287
  name: z.ZodOptional<z.ZodString>;
276
288
  enabled: z.ZodOptional<z.ZodBoolean>;
277
289
  action: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
290
+ kind: z.ZodLiteral<"personal_task">;
291
+ conversationId: z.ZodString;
292
+ agentId: z.ZodString;
293
+ instruction: z.ZodString;
294
+ locale: z.ZodEnum<{
295
+ zh: "zh";
296
+ en: "en";
297
+ }>;
298
+ }, z.core.$strict>, z.ZodObject<{
278
299
  kind: z.ZodLiteral<"routine">;
279
300
  routineId: z.ZodString;
280
301
  version: z.ZodNumber;
@@ -296,8 +317,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
296
317
  type: z.ZodLiteral<"move">;
297
318
  phase: z.ZodEnum<{
298
319
  review: "review";
299
- backlog: "backlog";
300
320
  ready: "ready";
321
+ backlog: "backlog";
301
322
  active: "active";
302
323
  closed: "closed";
303
324
  }>;
@@ -325,6 +346,9 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
325
346
  scheduleAt: z.ZodOptional<z.ZodNumber>;
326
347
  }, z.core.$strip>, z.ZodObject<{
327
348
  type: z.ZodLiteral<"request_review">;
349
+ }, z.core.$strip>, z.ZodObject<{
350
+ type: z.ZodLiteral<"signoff">;
351
+ resultId: z.ZodString;
328
352
  }, z.core.$strip>, z.ZodObject<{
329
353
  type: z.ZodLiteral<"close">;
330
354
  resolution: z.ZodEnum<{
@@ -337,8 +361,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
337
361
  type: z.ZodLiteral<"reopen">;
338
362
  phase: z.ZodEnum<{
339
363
  review: "review";
340
- backlog: "backlog";
341
364
  ready: "ready";
365
+ backlog: "backlog";
342
366
  active: "active";
343
367
  }>;
344
368
  }, z.core.$strip>, z.ZodObject<{
@@ -409,8 +433,8 @@ export declare const AutomationUpdatePatchSchema: z.ZodObject<{
409
433
  }>>;
410
434
  delivery: z.ZodOptional<z.ZodOptional<z.ZodObject<{
411
435
  notificationPolicy: z.ZodDefault<z.ZodEnum<{
412
- attention: "attention";
413
436
  none: "none";
437
+ attention: "attention";
414
438
  all: "all";
415
439
  }>>;
416
440
  destinations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -41,13 +41,13 @@ const AutomationCreateCapabilityInputSchema = CreateAutomationSchema.omit({
41
41
  state: true,
42
42
  management: true,
43
43
  trigger: true
44
- }).extend({ trigger: triggerRequest }).refine((input) => input.action.kind !== "system", { message: "System actions can only be created by the runtime" });
44
+ }).extend({ trigger: triggerRequest }).refine((input) => input.action.kind !== "system" && input.action.kind !== "personal_task", { message: "This action requires its dedicated creation flow" });
45
45
  const AutomationUpdatePatchSchema = z.object({
46
46
  ...UpdateAutomationSchema.shape,
47
47
  trigger: triggerRequest.optional(),
48
48
  state: z.never().optional(),
49
49
  management: z.never().optional()
50
- }).strict().refine((data) => Object.keys(data).length > 0, { message: "At least one field must be provided" });
50
+ }).strict().refine((data) => Object.keys(data).length > 0, { message: "At least one field must be provided" }).refine((data) => data.action?.kind !== "personal_task", { message: "This action requires its dedicated creation flow" });
51
51
  function assertManagedOperation(automation, operation, patch) {
52
52
  const management = automation.management;
53
53
  if (!management) return;
@@ -1,9 +1,9 @@
1
1
  import { isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
2
2
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
3
+ import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
3
4
  import { getSessionMetadata } from "../storage/sqlite/session-read-repository.js";
4
5
  import { init_session_repository, patchSessionMetadata } from "../storage/sqlite/session-repository.js";
5
6
  import "../storage/sqlite/index.js";
6
- import { init_agent_scope, listAgentEntries } from "../agent/agent-scope.js";
7
7
  import { createConversation, init_conversation_repository } from "../storage/sqlite/conversation-repository.js";
8
8
  import { CapabilityError } from "../capabilities/runtime/errors.js";
9
9
  import { getAutomation } from "./storage/automation-repository.js";
@@ -39,6 +39,12 @@ export type AutomationAction = {
39
39
  routineId: string;
40
40
  version: number;
41
41
  hash: string;
42
+ } | {
43
+ kind: 'personal_task';
44
+ conversationId: string;
45
+ agentId: string;
46
+ instruction: string;
47
+ locale: 'zh' | 'en';
42
48
  } | {
43
49
  kind: 'task_command';
44
50
  taskId: string;