@xopcai/xopc 0.0.451 → 0.0.455

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 (558) hide show
  1. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/eventEmitter2.js +40 -0
  2. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/index.js +56 -0
  3. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/shared/conout.js +16 -0
  4. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/terminal.js +190 -0
  5. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/unixTerminal.js +287 -0
  6. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/utils.js +49 -0
  7. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsConoutConnection.js +190 -0
  8. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsPtyAgent.js +265 -0
  9. package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsTerminal.js +178 -0
  10. package/dist/_virtual/_rolldown/runtime.js +10 -2
  11. package/dist/browser-ext/manifest.json +1 -1
  12. package/dist/extensions/telegram/xopc.extension.json +1 -1
  13. package/dist/gateway/static/root/assets/{activity-store-OMq1GnqB.js → activity-store-DYwR1u3f.js} +1 -1
  14. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CIoE-FJR.js → agent-avatar-dicebear-CsRBprL-.js} +1 -1
  15. package/dist/gateway/static/root/assets/{agent-avatar-display-kPb6idGG.js → agent-avatar-display-DqFYHXCS.js} +2 -2
  16. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-vKUDGEU6.js → agent-defaults-settings-panel-DOAJrMLe.js} +1 -1
  17. package/dist/gateway/static/root/assets/{agent-plugin-dialog-x7guoCvz.js → agent-plugin-dialog-vqlN3ORH.js} +1 -1
  18. package/dist/gateway/static/root/assets/{agents-BbwFcl87.js → agents-BgHlOVRV.js} +3 -3
  19. package/dist/gateway/static/root/assets/{agents-admin-api-tXB8Aj5K.js → agents-admin-api-CKscfdvA.js} +1 -1
  20. package/dist/gateway/static/root/assets/api-CHM2c_Ah.js +1 -0
  21. package/dist/gateway/static/root/assets/{api-ixudT_21.js → api-DPNeNCmR.js} +1 -1
  22. package/dist/gateway/static/root/assets/{app-link-CdD448kS.js → app-link-DImAfVs5.js} +1 -1
  23. package/dist/gateway/static/root/assets/{app-management-settings-panel-nuDfyfZ5.js → app-management-settings-panel-Bhz6bj1C.js} +1 -1
  24. package/dist/gateway/static/root/assets/{appearance-settings-D4oON26V.js → appearance-settings-BX32aogA.js} +1 -1
  25. package/dist/gateway/static/root/assets/{apps-page-BM1BfXzo.js → apps-page-0Yo3jBsQ.js} +1 -1
  26. package/dist/gateway/static/root/assets/{archive-plugin-mKjfC6Sk.js → archive-plugin-Bha8obMe.js} +1 -1
  27. package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +1 -0
  28. package/dist/gateway/static/root/assets/{automation-api-C9pjryrT.js → automation-api-mn8ihWJ_.js} +1 -1
  29. package/dist/gateway/static/root/assets/{automation-result-state-uvg7Bi2x.js → automation-result-state-COzakzak.js} +1 -1
  30. package/dist/gateway/static/root/assets/automation-run-list-BhtaMpTb.js +1 -0
  31. package/dist/gateway/static/root/assets/{automation-task-card-CXGC8afU.js → automation-task-card-BY_k6iWp.js} +1 -1
  32. package/dist/gateway/static/root/assets/{automations-page-CwQg9dfM.js → automations-page-Dt_Z1UTT.js} +1 -1
  33. package/dist/gateway/static/root/assets/{automations-workspace-DhLgFY2T.js → automations-workspace-BhHgruhH.js} +2 -2
  34. package/dist/gateway/static/root/assets/{binary-plugins-BNPDM14i.js → binary-plugins-DUbrJFLU.js} +1 -1
  35. package/dist/gateway/static/root/assets/{block-editor-De9UqmMT.js → block-editor-DW--pXAc.js} +1 -1
  36. package/dist/gateway/static/root/assets/{browser-settings-page-B0VB5umC.js → browser-settings-page-CDh6nxs9.js} +1 -1
  37. package/dist/gateway/static/root/assets/{capabilities-Cp-rmFMM.js → capabilities-DKbXv8Ck.js} +1 -1
  38. package/dist/gateway/static/root/assets/{capabilities-BtJB4u5C.js → capabilities-kG175Q-7.js} +1 -1
  39. package/dist/gateway/static/root/assets/capabilities-page-D1wQ2sPI.js +2 -0
  40. package/dist/gateway/static/root/assets/capabilities-settings-panel-BW5jQz5R.js +8 -0
  41. package/dist/gateway/static/root/assets/capability-navigation-QtHJxxW2.js +1 -0
  42. package/dist/gateway/static/root/assets/{channels-ZJORx-he.js → channels-BzZp42yO.js} +1 -1
  43. package/dist/gateway/static/root/assets/{chat-agents-api-CtuEaDG8.js → chat-agents-api-UOdNWZ0_.js} +1 -1
  44. package/dist/gateway/static/root/assets/{chat-chart-block-ShPQBlNE.js → chat-chart-block-NSy-B0NS.js} +1 -1
  45. package/dist/gateway/static/root/assets/chat-page-dY6aCCRx.js +71 -0
  46. package/dist/gateway/static/root/assets/{chat-terminal-dock-CvDRfHAZ.js → chat-terminal-dock-CAaHWS7F.js} +1 -1
  47. package/dist/gateway/static/root/assets/{command-palette-api-NJTvEF2b.js → command-palette-api-Dkn9bbYd.js} +1 -1
  48. package/dist/gateway/static/root/assets/composer-model-config-control-BrK8-SNz.js +1 -0
  49. package/dist/gateway/static/root/assets/{composer-notifications-BkezOy9Q.js → composer-notifications-B-kL3qAA.js} +1 -1
  50. package/dist/gateway/static/root/assets/{composer-payload-handoff-CEjJusbJ.js → composer-payload-handoff-DBE1mvOS.js} +1 -1
  51. package/dist/gateway/static/root/assets/{computer-settings-page-DG8bcw_s.js → computer-settings-page-C9KdEecx.js} +1 -1
  52. package/dist/gateway/static/root/assets/{confirm-dialog-D7dQJytv.js → confirm-dialog-DrA5mTQp.js} +1 -1
  53. package/dist/gateway/static/root/assets/connected-providers-grid-D_8v6Qex.js +1 -0
  54. package/dist/gateway/static/root/assets/{connection-usage-guide-f55PDAbb.js → connection-usage-guide-CiVpcbds.js} +1 -1
  55. package/dist/gateway/static/root/assets/{connector-service-page-Ca09FIBW.js → connector-service-page-B919cKSm.js} +1 -1
  56. package/dist/gateway/static/root/assets/{connectors-api-dai-YAdK.js → connectors-api-CgsSm-Av.js} +1 -1
  57. package/dist/gateway/static/root/assets/connectors-page-CEpfDCLA.js +1 -0
  58. package/dist/gateway/static/root/assets/{date-picker-C70ICT7u.js → date-picker-dx284jQI.js} +1 -1
  59. package/dist/gateway/static/root/assets/{date-time-picker-Czj5fnsJ.js → date-time-picker-Dj-bhLNP.js} +1 -1
  60. package/dist/gateway/static/root/assets/{desktop-pet-Dq3OLpPg.js → desktop-pet-DlTuGzZ2.js} +1 -1
  61. package/dist/gateway/static/root/assets/{desktop-pet-narrative-B7I1II0Z.js → desktop-pet-narrative-cBFIPXzR.js} +1 -1
  62. package/dist/gateway/static/root/assets/{desktop-pet-settings-q4mec6zt.js → desktop-pet-settings-CsmrvoxU.js} +1 -1
  63. package/dist/gateway/static/root/assets/{dev-view-store-lXnKsRew.js → dev-view-store-BOxbj1ie.js} +1 -1
  64. package/dist/gateway/static/root/assets/{device-pairing-wizard-CbUX0iit.js → device-pairing-wizard-CAqFIFRC.js} +1 -1
  65. package/dist/gateway/static/root/assets/{directory-picker-path-field-BRnwhemd.js → directory-picker-path-field-BxEw5OrT.js} +1 -1
  66. package/dist/gateway/static/root/assets/{discussion-annotation-sync-BnK6Ua7v.js → discussion-annotation-sync-CyntTwIa.js} +1 -1
  67. package/dist/gateway/static/root/assets/dist-CY7CS_D3.js +1 -0
  68. package/dist/gateway/static/root/assets/extension-authoritative-grants-C0ReZguU.js +1 -0
  69. package/dist/gateway/static/root/assets/{extension-debug-page-Bp2BrJbB.js → extension-debug-page-Cd3HMUbi.js} +1 -1
  70. package/dist/gateway/static/root/assets/extension-iframe-host-DiIqM2JO.js +1 -0
  71. package/dist/gateway/static/root/assets/{extension-marketplace-api-tk93vJL_.js → extension-marketplace-api-CK5CMKTs.js} +1 -1
  72. package/dist/gateway/static/root/assets/extension-message-router-Dn8JzOdR.js +8 -0
  73. package/dist/gateway/static/root/assets/extension-page-CLZtAtqm.js +1 -0
  74. package/dist/gateway/static/root/assets/extension-provider-CbVokTvd.js +1 -0
  75. package/dist/gateway/static/root/assets/{extension-settings-page-BGcZIeHP.js → extension-settings-page-BM79cwUy.js} +1 -1
  76. package/dist/gateway/static/root/assets/{file-preview-surface-BK2_4mWy.js → file-preview-surface-z7_HV0WN.js} +1 -1
  77. package/dist/gateway/static/root/assets/{gateway-config-swr-DsXilOaJ.js → gateway-config-swr-OGhON-s6.js} +1 -1
  78. package/dist/gateway/static/root/assets/{gateway-realtime-DopPmAMl.js → gateway-realtime-B9u4uSXW.js} +1 -1
  79. package/dist/gateway/static/root/assets/gateway-realtime-store-xB7Bq4Zs.js +1 -0
  80. package/dist/gateway/static/root/assets/{gateway-restart-eozrXTm7.js → gateway-restart-DKAweWmg.js} +1 -1
  81. package/dist/gateway/static/root/assets/{gateway-settings-DddUli-p.js → gateway-settings-Dc7qUbG-.js} +1 -1
  82. package/dist/gateway/static/root/assets/{gateway-startup-retry-DMQI0ATo.js → gateway-startup-retry-BaaoKBoB.js} +1 -1
  83. package/dist/gateway/static/root/assets/{global-defaults-api-D7hk1zTj.js → global-defaults-api-BIr3ApRj.js} +1 -1
  84. package/dist/gateway/static/root/assets/{home-page-C8oVgxQg.js → home-page-i_PIrDCU.js} +2 -2
  85. package/dist/gateway/static/root/assets/{image-generation-api-BCbvDDH_.js → image-generation-api-C7D2IetZ.js} +1 -1
  86. package/dist/gateway/static/root/assets/{imports-page-B9LF_2fO.js → imports-page-BjEdZJxZ.js} +1 -1
  87. package/dist/gateway/static/root/assets/index-Bj5exyow.css +1 -0
  88. package/dist/gateway/static/root/assets/index-CZI3VGGW.js +11 -0
  89. package/dist/gateway/static/root/assets/{install-connector-dialog-DT32t-66.js → install-connector-dialog-BsiyYQhx.js} +1 -1
  90. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DDwoBK8g.js → keyboard-shortcuts-settings-CIthQ1lp.js} +1 -1
  91. package/dist/gateway/static/root/assets/local-app-workbench-page-CSCIHvZV.js +1 -0
  92. package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +1 -0
  93. package/dist/gateway/static/root/assets/{local-apps-page-qzxr3c8Y.js → local-apps-page-EntiM0tz.js} +1 -1
  94. package/dist/gateway/static/root/assets/{local-session-drafts-BU3FXj_X.js → local-session-drafts-XurtjR58.js} +1 -1
  95. package/dist/gateway/static/root/assets/{locale-store-DTUQ0JiK.js → locale-store-cg9cm2EL.js} +1 -1
  96. package/dist/gateway/static/root/assets/logs-page-rmS9VSem.js +2 -0
  97. package/dist/gateway/static/root/assets/{management-api-C6mCD0mZ.js → management-api-B6jVuJ6W.js} +1 -1
  98. package/dist/gateway/static/root/assets/{management-settings-C4BKD-_b.js → management-settings-DdI9gs51.js} +1 -1
  99. package/dist/gateway/static/root/assets/{markdown-view-DHjn1-ML.js → markdown-view-D1zBWkfB.js} +1 -1
  100. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-ClgMvru5.js → mcp-conversation-setup-page-Bn49Ph1n.js} +1 -1
  101. package/dist/gateway/static/root/assets/{media-plugins-8E2KZQym.js → media-plugins-Cd6hAGDp.js} +1 -1
  102. package/dist/gateway/static/root/assets/messages-eQ2CYlpG.js +3 -0
  103. package/dist/gateway/static/root/assets/{model-selector-CJY9LRsl.js → model-selector-CL6WT-jw.js} +1 -1
  104. package/dist/gateway/static/root/assets/{models-hub-cache-BTs8jhgq.js → models-hub-cache-s0FMNhq9.js} +1 -1
  105. package/dist/gateway/static/root/assets/{note-detail-panel-DiCfpcZd.js → note-detail-panel-anM38aV6.js} +3 -3
  106. package/dist/gateway/static/root/assets/note-image-lightbox-DfK2KSgu.js +1 -0
  107. package/dist/gateway/static/root/assets/{notes-api-BnaeXy22.js → notes-api-CR75RHd0.js} +1 -1
  108. package/dist/gateway/static/root/assets/{notes-page-B_vTBmyx.js → notes-page-BsZmT7Zw.js} +2 -2
  109. package/dist/gateway/static/root/assets/{oauth-api-BZ67vxsq.js → oauth-api-CvPnQTlH.js} +1 -1
  110. package/dist/gateway/static/root/assets/oauth-provider-connect-Dk1NeeqD.js +1 -0
  111. package/dist/gateway/static/root/assets/{page-context-capture-button-TpjRHhUt.js → page-context-capture-button-BPtX67hZ.js} +1 -1
  112. package/dist/gateway/static/root/assets/{page-context-draft-BbUpxlgV.js → page-context-draft-Ckb8baxj.js} +1 -1
  113. package/dist/gateway/static/root/assets/page-header-store-DU4NnGap.js +1 -0
  114. package/dist/gateway/static/root/assets/personal-avatar-CZSnrSfc.js +1 -0
  115. package/dist/gateway/static/root/assets/personal-page-BSCNuRMT.js +1 -0
  116. package/dist/gateway/static/root/assets/personal-profile-settings-DJRDcK2c.js +1 -0
  117. package/dist/gateway/static/root/assets/personal-settings-panel-C6p25Noq.js +1 -0
  118. package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +1 -0
  119. package/dist/gateway/static/root/assets/{phone-dependencies-card-ChRrViSc.js → phone-dependencies-card-DKkFFpqi.js} +1 -1
  120. package/dist/gateway/static/root/assets/{phone-model-connection-DmswEWqx.js → phone-model-connection-CRRHq4PQ.js} +1 -1
  121. package/dist/gateway/static/root/assets/{phone-model-picker-CvuOhQpk.js → phone-model-picker-CN_I0-46.js} +1 -1
  122. package/dist/gateway/static/root/assets/{phone-settings-page-2hZ68I47.js → phone-settings-page-CkdSOA7D.js} +1 -1
  123. package/dist/gateway/static/root/assets/{phone-workspace-store-BMvxfZ3g.js → phone-workspace-store-CC61pIuJ.js} +1 -1
  124. package/dist/gateway/static/root/assets/{plugin-details-dialog-qvdi41L2.js → plugin-details-dialog-Bqz4jT53.js} +1 -1
  125. package/dist/gateway/static/root/assets/{preference-select-fields-RDatqlhG.js → preference-select-fields-DHeNbAvn.js} +1 -1
  126. package/dist/gateway/static/root/assets/{product-automation-feedback-Bj9ZsasT.js → product-automation-feedback-BN2HTA9T.js} +1 -1
  127. package/dist/gateway/static/root/assets/{product-delivery-DRyD9_Xq.js → product-delivery-BFfqdKLe.js} +1 -1
  128. package/dist/gateway/static/root/assets/{product-open-page-CzXmn2MX.js → product-open-page-B-j4gpLD.js} +1 -1
  129. package/dist/gateway/static/root/assets/{product-preview-content-Beg0t4GW.js → product-preview-content-EqrTk7kU.js} +1 -1
  130. package/dist/gateway/static/root/assets/{product-preview-modal-5ulFfVzf.js → product-preview-modal-aurFBFq4.js} +2 -2
  131. package/dist/gateway/static/root/assets/{project-detail-page-8bnYqXLJ.js → project-detail-page-ibZZ_w51.js} +2 -2
  132. package/dist/gateway/static/root/assets/{project-understanding-CXf7wjwt.js → project-understanding-HNK9lFVy.js} +1 -1
  133. package/dist/gateway/static/root/assets/{projects-page-CyA6fCPg.js → projects-page-CugSyKl5.js} +1 -1
  134. package/dist/gateway/static/root/assets/providers-api-DUntOOqr.js +1 -0
  135. package/dist/gateway/static/root/assets/{recording-upload-BZvpuPZT.js → recording-upload-DIwP541B.js} +1 -1
  136. package/dist/gateway/static/root/assets/{registry-api-C_8-f85U.js → registry-api-BTd_OgbD.js} +1 -1
  137. package/dist/gateway/static/root/assets/{remote-access-hub-Daxdjqs9.js → remote-access-hub-f5mIfsBF.js} +1 -1
  138. package/dist/gateway/static/root/assets/{resource-unavailable-khPb8zb8.js → resource-unavailable-DtQ2rfu_.js} +1 -1
  139. package/dist/gateway/static/root/assets/route-preload-anuckzRl.js +2 -0
  140. package/dist/gateway/static/root/assets/runtime-health-zDkHcOZO.js +1 -0
  141. package/dist/gateway/static/root/assets/{runtime-tools-api-2YumRxOJ.js → runtime-tools-api-C1iI8EPo.js} +1 -1
  142. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DH00p-rI.js → runtime-tools-settings-panel-0tdI1z0g.js} +1 -1
  143. package/dist/gateway/static/root/assets/{service-recommendation-list-wXf_ZlHq.js → service-recommendation-list-DSIe-NRe.js} +1 -1
  144. package/dist/gateway/static/root/assets/{session-api-Dt7vRa-E.js → session-api-CQlEq0MB.js} +1 -1
  145. package/dist/gateway/static/root/assets/session-manager-C7RfUfqI.js +25 -0
  146. package/dist/gateway/static/root/assets/{sessions-page-CCcpMHIH.js → sessions-page-DdS8U0RV.js} +1 -1
  147. package/dist/gateway/static/root/assets/settings-advanced-gate-DnfH22f_.js +1 -0
  148. package/dist/gateway/static/root/assets/{settings-advanced-section-DRlQdj_w.js → settings-advanced-section-C6dPu5i1.js} +1 -1
  149. package/dist/gateway/static/root/assets/{settings-mode-store-BE6t--iO.js → settings-mode-store-BSiiowQa.js} +1 -1
  150. package/dist/gateway/static/root/assets/{settings-page-_F2d9-GZ.js → settings-page-DAc5n-mM.js} +1 -1
  151. package/dist/gateway/static/root/assets/{settings-page-header-DG3MQwSF.js → settings-page-header-BSMu5Zq3.js} +1 -1
  152. package/dist/gateway/static/root/assets/{settings-page-layout-SuMAUhMb.js → settings-page-layout-B_vMffB1.js} +1 -1
  153. package/dist/gateway/static/root/assets/{setup-interaction-page-DyDiHKjZ.js → setup-interaction-page-DKXfFdNt.js} +1 -1
  154. package/dist/gateway/static/root/assets/{setup-status-panel-CPNFWhrr.js → setup-status-panel-BbAZ9w77.js} +1 -1
  155. package/dist/gateway/static/root/assets/{share-link-dialog-wu-minYF.js → share-link-dialog-ztX1WPXG.js} +1 -1
  156. package/dist/gateway/static/root/assets/{share-preview-page-BqbfuQBU.js → share-preview-page-Ds2Ydfg6.js} +1 -1
  157. package/dist/gateway/static/root/assets/{shares-api-DwsEzRc6.js → shares-api-CSZqeNL4.js} +1 -1
  158. package/dist/gateway/static/root/assets/{shares-settings-BxutiB6Y.js → shares-settings-CX3TNAmI.js} +1 -1
  159. package/dist/gateway/static/root/assets/{skill-api-C7wPB73H.js → skill-api-CGzAQ-MX.js} +1 -1
  160. package/dist/gateway/static/root/assets/{skill-list-api-C4AjzhlY.js → skill-list-api-DfUsku-x.js} +1 -1
  161. package/dist/gateway/static/root/assets/{skill-reload-api-CqfS9zlG.js → skill-reload-api-Y9qSMnBd.js} +1 -1
  162. package/dist/gateway/static/root/assets/{skills-page-8VYadExR.js → skills-page-DnMN50Ot.js} +1 -1
  163. package/dist/gateway/static/root/assets/sliding-segmented-CgQ3BFdb.js +1 -0
  164. package/dist/gateway/static/root/assets/{system-settings-panel-BV4GHnns.js → system-settings-panel-DWNkQmme.js} +1 -1
  165. package/dist/gateway/static/root/assets/{task-detail-page-C9IyuxdS.js → task-detail-page-BJok6V1K.js} +3 -3
  166. package/dist/gateway/static/root/assets/{task-input-card-NtzzVc0e.js → task-input-card-lCMSy6YY.js} +1 -1
  167. package/dist/gateway/static/root/assets/{terminal-panel-store-DWdJOGMn.js → terminal-panel-store-D8eZPvql.js} +1 -1
  168. package/dist/gateway/static/root/assets/{theme-store-FNf-kdMR.js → theme-store-GZQ3pTgy.js} +1 -1
  169. package/dist/gateway/static/root/assets/tool-friendly-title-DC8_9-Lo.js +2 -0
  170. package/dist/gateway/static/root/assets/{tracing-settings-page-BRPJuRpc.js → tracing-settings-page-DM3-7Hlw.js} +1 -1
  171. package/dist/gateway/static/root/assets/{tunnel-api-B7NHNrQJ.js → tunnel-api-DOGAIXRR.js} +1 -1
  172. package/dist/gateway/static/root/assets/{understanding-activity-store-bgCeO8bb.js → understanding-activity-store-CuPfe0eQ.js} +1 -1
  173. package/dist/gateway/static/root/assets/{understanding-refresh-store-CEhWIvsQ.js → understanding-refresh-store-Ihz2p9Vg.js} +1 -1
  174. package/dist/gateway/static/root/assets/{usage-page-35YfpfVW.js → usage-page-BA9Yrvqu.js} +1 -1
  175. package/dist/gateway/static/root/assets/{use-autosave-D8Qtt_Tn.js → use-autosave-CO0IPCVg.js} +1 -1
  176. package/dist/gateway/static/root/assets/{use-composer-attachments-H-tD4Db6.js → use-composer-attachments-CLIrD0mm.js} +1 -1
  177. package/dist/gateway/static/root/assets/{use-file-preview-expanded-P-0xmST2.js → use-file-preview-expanded-dhNMHf5b.js} +3 -3
  178. package/dist/gateway/static/root/assets/{use-personal-profile-Bk2rGWSy.js → use-personal-profile-CVqDWBDS.js} +1 -1
  179. package/dist/gateway/static/root/assets/use-realtime-voice-DDVVlX1R.js +1 -0
  180. package/dist/gateway/static/root/assets/{use-workspace-tree-D0_812KH.js → use-workspace-tree-CZej8mhf.js} +1 -1
  181. package/dist/gateway/static/root/assets/{user-model-page-BxHnOljT.js → user-model-page-1eYattnk.js} +1 -1
  182. package/dist/gateway/static/root/assets/voice-CDlC6XMH.js +1 -0
  183. package/dist/gateway/static/root/assets/{voice-api-key-field-BL56KGeq.js → voice-api-key-field-DpwUDAvu.js} +1 -1
  184. package/dist/gateway/static/root/assets/voice-call-context-BM2A4bLz.js +1 -0
  185. package/dist/gateway/static/root/assets/voice-config-api-GIuXoHXw.js +1 -0
  186. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-BK-IvchL.js → voice-input-shortcut-events-Cc30ZcFy.js} +1 -1
  187. package/dist/gateway/static/root/assets/voice-settings-DA3m5MT0.js +1 -0
  188. package/dist/gateway/static/root/assets/{work-discovery-overlay-DDXae8Yc.js → work-discovery-overlay-yGUkk1NV.js} +1 -1
  189. package/dist/gateway/static/root/assets/{work-discovery-page-CxN0abrd.js → work-discovery-page-RN6iuY-0.js} +1 -1
  190. package/dist/gateway/static/root/assets/{working-directory-picker-modal-D3BUBFa0.js → working-directory-picker-modal-CeXl9w6z.js} +1 -1
  191. package/dist/gateway/static/root/assets/workspace-api-B1Uirhxf.js +2 -0
  192. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Nos5ebMv.js +1 -0
  193. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BKmtih6_.js → workspace-file-preview-dialog-D0h2yJ3v.js} +1 -1
  194. package/dist/gateway/static/root/assets/{workspace-open-location-menu-BdfKT4O4.js → workspace-open-location-menu-DWGNOIE2.js} +1 -1
  195. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BS_lsURY.js → xopc-cloud-account-card-x-XT4bKF.js} +1 -1
  196. package/dist/gateway/static/root/index.html +104 -100
  197. package/dist/package.js +1 -1
  198. package/dist/packages/gateway-contract/src/extension-capabilities.js +91 -4
  199. package/dist/packages/gateway-contract/src/index.js +3 -1
  200. package/dist/packages/gateway-contract/src/local-app-delegation.js +25 -0
  201. package/dist/packages/gateway-contract/src/local-apps.js +35 -4
  202. package/dist/packages/realtime-protocol/src/voice.js +5 -0
  203. package/dist/src/agent/agent-instance-gateway.d.ts +2 -0
  204. package/dist/src/agent/agent-manager.d.ts +1 -0
  205. package/dist/src/agent/agent-manager.js +12 -3
  206. package/dist/src/agent/background-review/prompts.js +2 -0
  207. package/dist/src/agent/background-review/run-background-review.js +13 -7
  208. package/dist/src/agent/child-agent-factory.js +24 -1
  209. package/dist/src/agent/commands/command-registry.d.ts +10 -0
  210. package/dist/src/agent/commands/command-registry.js +37 -16
  211. package/dist/src/agent/commands/command-transport.d.ts +19 -0
  212. package/dist/src/agent/commands/command-transport.js +92 -0
  213. package/dist/src/agent/context/execution-context.js +1 -1
  214. package/dist/src/agent/context/project-context.js +1 -1
  215. package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
  216. package/dist/src/agent/embedded/execution-tool-policy.js +17 -6
  217. package/dist/src/agent/embedded/index.js +1 -1
  218. package/dist/src/agent/embedded/run-for-session.js +66 -9
  219. package/dist/src/agent/embedded/run-turn.js +109 -15
  220. package/dist/src/agent/embedded/runs.d.ts +3 -0
  221. package/dist/src/agent/embedded/runs.js +21 -1
  222. package/dist/src/agent/embedded/session-runner.js +2 -2
  223. package/dist/src/agent/embedded/types.d.ts +2 -0
  224. package/dist/src/agent/external-tools/endpoint-provider.js +1 -1
  225. package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
  226. package/dist/src/agent/inbound/turn-dispatcher.d.ts +1 -0
  227. package/dist/src/agent/inbound/turn-dispatcher.js +1 -0
  228. package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
  229. package/dist/src/agent/orchestration/child-run-monitor.d.ts +35 -0
  230. package/dist/src/agent/orchestration/child-run-monitor.js +104 -0
  231. package/dist/src/agent/orchestration/child-run-resume.d.ts +3 -0
  232. package/dist/src/agent/orchestration/child-run-resume.js +67 -0
  233. package/dist/src/agent/prompt/system-prompt.js +7 -6
  234. package/dist/src/agent/prompt/types.d.ts +2 -1
  235. package/dist/src/agent/prompt/voice-history.d.ts +9 -0
  236. package/dist/src/agent/prompt/voice-history.js +35 -0
  237. package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
  238. package/dist/src/agent/prompt/voice-presentation.js +1 -0
  239. package/dist/src/agent/sandbox/native-command.d.ts +15 -0
  240. package/dist/src/agent/sandbox/native-command.js +65 -0
  241. package/dist/src/agent/service/btw-query.d.ts +1 -0
  242. package/dist/src/agent/service/btw-query.js +1 -1
  243. package/dist/src/agent/service/direct-turn-helpers.js +2 -2
  244. package/dist/src/agent/service/process-direct-streaming.js +2 -2
  245. package/dist/src/agent/service.js +3 -3
  246. package/dist/src/agent/session/interaction-policy.d.ts +21 -0
  247. package/dist/src/agent/session/interaction-policy.js +58 -0
  248. package/dist/src/agent/session/session-inspector.js +3 -2
  249. package/dist/src/agent/tasks/task-judge-service.js +1 -1
  250. package/dist/src/agent/tools/create-share-tool.js +1 -1
  251. package/dist/src/agent/tools/exec-command.js +5 -0
  252. package/dist/src/agent/tools/factory.js +2 -2
  253. package/dist/src/agent/tools/image-generate-tool.js +5 -1
  254. package/dist/src/agent/tools/index.js +1 -1
  255. package/dist/src/agent/tools/list-dir.js +1 -1
  256. package/dist/src/agent/tools/managed-job-tool.js +16 -1
  257. package/dist/src/agent/tools/personal-read-tool.js +1 -1
  258. package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
  259. package/dist/src/agent/tools/personal-task-tool.js +3 -1
  260. package/dist/src/agent/tools/publish-artifacts.js +1 -1
  261. package/dist/src/agent/tools/read.js +1 -1
  262. package/dist/src/agent/tools/send-media.js +1 -1
  263. package/dist/src/agent/tools/task-collaboration-tool.js +1 -1
  264. package/dist/src/agent/tools/task-evidence.js +6 -15
  265. package/dist/src/agent/tools/task-result-tool.js +1 -1
  266. package/dist/src/agent/tools/user-context-tool.js +1 -1
  267. package/dist/src/agent/tools/write.js +1 -1
  268. package/dist/src/agent/tools/xopc-use-tool.js +9 -8
  269. package/dist/src/agent-config/schema.d.ts +15 -0
  270. package/dist/src/automations/capabilities/drafts.js +5 -1
  271. package/dist/src/automations/capabilities/read.js +58 -8
  272. package/dist/src/automations/capabilities/write.js +53 -0
  273. package/dist/src/automations/delivery/delivery-router.js +3 -1
  274. package/dist/src/automations/run-changes.d.ts +2 -0
  275. package/dist/src/automations/run-changes.js +18 -0
  276. package/dist/src/automations/service/automation-service.d.ts +2 -9
  277. package/dist/src/automations/service/automation-service.js +3 -2
  278. package/dist/src/automations/storage/automation-run-repository.d.ts +5 -0
  279. package/dist/src/automations/storage/automation-run-repository.js +15 -1
  280. package/dist/src/capabilities/runtime/dispatcher.d.ts +12 -0
  281. package/dist/src/capabilities/runtime/dispatcher.js +22 -6
  282. package/dist/src/capabilities/runtime/product.d.ts +2 -0
  283. package/dist/src/capabilities/runtime/product.js +28 -6
  284. package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
  285. package/dist/src/chat-commands/types.d.ts +2 -0
  286. package/dist/src/cli/commands/tui-runner.d.ts +1 -1
  287. package/dist/src/cli/commands/tui-runner.js +1 -0
  288. package/dist/src/cli/commands/tui.js +1 -1
  289. package/dist/src/computer/evaluation-comparison.d.ts +4 -0
  290. package/dist/src/computer/evaluation-comparison.js +16 -1
  291. package/dist/src/computer/keyboard.js +1 -1
  292. package/dist/src/computer/model-adapter.js +18 -14
  293. package/dist/src/config/schema.d.ts +37 -3
  294. package/dist/src/config/schema.js +23 -5
  295. package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
  296. package/dist/src/gateway/agents-admin.js +1 -1
  297. package/dist/src/gateway/file-path-classifier.js +1 -1
  298. package/dist/src/gateway/hono/lib/safe-voice-config.js +4 -1
  299. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +204 -12
  300. package/dist/src/gateway/hono/routes/lazy-bundles.js +18 -2
  301. package/dist/src/gateway/hono/routes/local-app-capabilities.js +27 -6
  302. package/dist/src/gateway/hono/routes/local-app-development.d.ts +3 -0
  303. package/dist/src/gateway/hono/routes/local-app-development.js +13 -0
  304. package/dist/src/gateway/hono/routes/local-app-previews.d.ts +3 -0
  305. package/dist/src/gateway/hono/routes/local-app-previews.js +86 -0
  306. package/dist/src/gateway/hono/routes/local-app-run-streams.d.ts +4 -0
  307. package/dist/src/gateway/hono/routes/local-app-run-streams.js +105 -0
  308. package/dist/src/gateway/hono/routes/local-apps.js +3 -2
  309. package/dist/src/gateway/hono/routes/projects.js +1 -1
  310. package/dist/src/gateway/hono/routes/sessions.js +2 -2
  311. package/dist/src/gateway/hono/routes/shares.js +1 -1
  312. package/dist/src/gateway/hono/routes/tasks.js +4 -4
  313. package/dist/src/gateway/hono/routes/tui.js +308 -0
  314. package/dist/src/gateway/hono/routes/user-model.js +2 -2
  315. package/dist/src/gateway/hono/routes/voice.js +4 -3
  316. package/dist/src/gateway/media-access.js +1 -1
  317. package/dist/src/gateway/security/gateway-scopes.js +1 -1
  318. package/dist/src/gateway/security/local-app-delegation-access.d.ts +5 -0
  319. package/dist/src/gateway/security/local-app-delegation-access.js +22 -0
  320. package/dist/src/gateway/service/agent-runner.js +1 -1
  321. package/dist/src/gateway/service/config-coordinator.d.ts +8 -3
  322. package/dist/src/gateway/service/run-gateway-agent.js +7 -6
  323. package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
  324. package/dist/src/gateway/service/session-input-coordinator.js +6 -2
  325. package/dist/src/gateway/service/sessions-api.d.ts +1 -1
  326. package/dist/src/gateway/service/sessions-api.js +3 -3
  327. package/dist/src/gateway/service.js +50 -17
  328. package/dist/src/gateway/session-reset-service.js +1 -1
  329. package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
  330. package/dist/src/infra/execution-authority.d.ts +12 -0
  331. package/dist/src/infra/execution-authority.js +27 -0
  332. package/dist/src/local-apps/access-audit.d.ts +17 -0
  333. package/dist/src/local-apps/access-audit.js +42 -0
  334. package/dist/src/local-apps/automation-proposals.d.ts +754 -0
  335. package/dist/src/local-apps/automation-proposals.js +185 -0
  336. package/dist/src/local-apps/capabilities/automation-policy.d.ts +7 -0
  337. package/dist/src/local-apps/capabilities/automation-policy.js +46 -0
  338. package/dist/src/local-apps/capabilities/contracts.js +25 -0
  339. package/dist/src/local-apps/capabilities/delegate.d.ts +3 -0
  340. package/dist/src/local-apps/capabilities/delegate.js +183 -0
  341. package/dist/src/local-apps/capabilities/projections.d.ts +853 -0
  342. package/dist/src/local-apps/capabilities/projections.js +186 -0
  343. package/dist/src/local-apps/capabilities/resource-policy.d.ts +3 -0
  344. package/dist/src/local-apps/capabilities/resource-policy.js +119 -0
  345. package/dist/src/local-apps/capabilities/runtime.d.ts +2 -1
  346. package/dist/src/local-apps/capabilities/runtime.js +109 -39
  347. package/dist/src/local-apps/execution-authority.d.ts +13 -0
  348. package/dist/src/local-apps/execution-authority.js +104 -0
  349. package/dist/src/local-apps/fix-guidance.js +4 -1
  350. package/dist/src/local-apps/p1-services.d.ts +189 -0
  351. package/dist/src/local-apps/p1-services.js +620 -0
  352. package/dist/src/local-apps/preview-fixtures.d.ts +20 -0
  353. package/dist/src/local-apps/preview-fixtures.js +52 -0
  354. package/dist/src/local-apps/preview-runtime-bridge.d.ts +1 -1
  355. package/dist/src/local-apps/preview-runtime-bridge.js +41 -18
  356. package/dist/src/local-apps/preview-sessions.d.ts +52 -0
  357. package/dist/src/local-apps/preview-sessions.js +316 -0
  358. package/dist/src/local-apps/preview-worker.d.ts +1 -0
  359. package/dist/src/local-apps/preview-worker.js +117 -0
  360. package/dist/src/local-apps/public-assets.d.ts +2 -0
  361. package/dist/src/local-apps/public-assets.js +42 -0
  362. package/dist/src/local-apps/scaffold.js +1 -1
  363. package/dist/src/local-apps/service.d.ts +128 -5
  364. package/dist/src/local-apps/service.js +153 -15
  365. package/dist/src/local-apps/store.d.ts +3 -0
  366. package/dist/src/local-apps/store.js +42 -16
  367. package/dist/src/local-apps/types.d.ts +2 -0
  368. package/dist/src/memory-learning/repository.js +3 -2
  369. package/dist/src/memory-learning/service.js +4 -13
  370. package/dist/src/memory-learning/transcript-source.d.ts +9 -0
  371. package/dist/src/memory-learning/transcript-source.js +31 -0
  372. package/dist/src/notes/agent-context.js +1 -1
  373. package/dist/src/notes/capabilities/read.js +11 -2
  374. package/dist/src/notes/capabilities/write.js +10 -1
  375. package/dist/src/notes/types.d.ts +2 -0
  376. package/dist/src/personal-agent/communication.d.ts +2 -1
  377. package/dist/src/personal-agent/communication.js +3 -1
  378. package/dist/src/personal-agent/prompt-context.js +15 -23
  379. package/dist/src/personal-agent/prompts.js +3 -2
  380. package/dist/src/personal-agent/reply-composer.js +2 -2
  381. package/dist/src/personal-agent/request-access.js +1 -1
  382. package/dist/src/personal-agent/request-delivery.js +1 -1
  383. package/dist/src/personal-agent/request-service.js +2 -2
  384. package/dist/src/personal-agent/service.js +1 -0
  385. package/dist/src/personal-agent/task-cancel.js +1 -1
  386. package/dist/src/phone/contracts.d.ts +1 -1
  387. package/dist/src/phone/model-adapter.d.ts +1 -1
  388. package/dist/src/phone/runtime.d.ts +1 -1
  389. package/dist/src/platform/contracts.d.ts +3 -3
  390. package/dist/src/process/fork-worker.d.ts +2 -0
  391. package/dist/src/process/fork-worker.js +7 -0
  392. package/dist/src/projects/capabilities/read.js +43 -2
  393. package/dist/src/projects/capabilities/write.js +25 -0
  394. package/dist/src/projects/project-store.js +12 -1
  395. package/dist/src/projects/types.d.ts +1 -0
  396. package/dist/src/realtime/broker.js +1 -1
  397. package/dist/src/review/review-git.js +14 -1
  398. package/dist/src/session/client-history.js +12 -1
  399. package/dist/src/session/session-context-for-llm.js +10 -3
  400. package/dist/src/session/store.d.ts +1 -0
  401. package/dist/src/session/store.js +2 -1
  402. package/dist/src/session/stored-rows-to-file-entries.js +1 -1
  403. package/dist/src/session/transcript-outline.js +9 -0
  404. package/dist/src/session/voice-transcript.d.ts +14 -0
  405. package/dist/src/session/voice-transcript.js +19 -2
  406. package/dist/src/share/share-store.js +1 -1
  407. package/dist/src/share/site-share-store.js +1 -1
  408. package/dist/src/storage/sqlite/notes-repository.js +7 -0
  409. package/dist/src/storage/sqlite/resource-scope.d.ts +10 -0
  410. package/dist/src/storage/sqlite/resource-scope.js +31 -0
  411. package/dist/src/storage/sqlite/transcript-repository.d.ts +3 -0
  412. package/dist/src/storage/sqlite/transcript-repository.js +43 -7
  413. package/dist/src/tasks/capabilities/management.js +3 -0
  414. package/dist/src/tasks/capabilities/read.js +21 -3
  415. package/dist/src/tasks/capabilities/write.js +11 -2
  416. package/dist/src/tasks/index.js +1 -1
  417. package/dist/src/tasks/task-allocation-service.js +1 -1
  418. package/dist/src/tasks/task-application-service.js +3 -3
  419. package/dist/src/tasks/task-context-assembler.js +1 -1
  420. package/dist/src/tasks/task-evidence-tools.d.ts +2 -0
  421. package/dist/src/tasks/task-evidence-tools.js +22 -0
  422. package/dist/src/tasks/task-main-update-delivery.js +2 -0
  423. package/dist/src/tasks/task-repository.d.ts +2 -0
  424. package/dist/src/tasks/task-repository.js +7 -0
  425. package/dist/src/tasks/task-research-result.js +8 -21
  426. package/dist/src/tasks/task-result-delivery-repository.d.ts +6 -0
  427. package/dist/src/tasks/task-result-delivery-repository.js +26 -0
  428. package/dist/src/tasks/task-result-delivery-service.js +3 -3
  429. package/dist/src/tasks/task-run-coordinator.js +1 -1
  430. package/dist/src/tui/backend-services.d.ts +14 -0
  431. package/dist/src/tui/backend-services.js +67 -0
  432. package/dist/src/tui/backends/embedded-backend.d.ts +48 -4
  433. package/dist/src/tui/backends/embedded-backend.js +248 -42
  434. package/dist/src/tui/backends/gateway-realtime-backend.d.ts +46 -2
  435. package/dist/src/tui/backends/gateway-realtime-backend.js +205 -62
  436. package/dist/src/tui/components/chat-log.d.ts +1 -0
  437. package/dist/src/tui/components/chat-log.js +11 -5
  438. package/dist/src/tui/components/scoped-models-selector.js +1 -1
  439. package/dist/src/tui/components/session-selector.js +1 -1
  440. package/dist/src/tui/components/text-viewer.d.ts +32 -0
  441. package/dist/src/tui/components/text-viewer.js +132 -0
  442. package/dist/src/tui/components/tui-bottom-bar.js +3 -0
  443. package/dist/src/tui/extension-host/autocomplete.js +9 -1
  444. package/dist/src/tui/extension-host/runtime.d.ts +1 -0
  445. package/dist/src/tui/extension-host/runtime.js +1 -0
  446. package/dist/src/tui/tui-backend.d.ts +36 -3
  447. package/dist/src/tui/tui-capabilities.d.ts +15 -0
  448. package/dist/src/tui/tui-capabilities.js +46 -0
  449. package/dist/src/tui/tui-capability-controls.d.ts +9 -0
  450. package/dist/src/tui/tui-capability-controls.js +250 -0
  451. package/dist/src/tui/tui-clarification.d.ts +15 -0
  452. package/dist/src/tui/tui-clarification.js +91 -0
  453. package/dist/src/tui/tui-command-formatters.d.ts +0 -4
  454. package/dist/src/tui/tui-command-formatters.js +3 -43
  455. package/dist/src/tui/tui-commands.d.ts +4 -4
  456. package/dist/src/tui/tui-commands.js +219 -127
  457. package/dist/src/tui/tui-control-commands.d.ts +12 -0
  458. package/dist/src/tui/tui-control-commands.js +127 -0
  459. package/dist/src/tui/tui-image-files.d.ts +2 -0
  460. package/dist/src/tui/tui-image-files.js +47 -0
  461. package/dist/src/tui/tui-local-shell.d.ts +6 -0
  462. package/dist/src/tui/tui-local-shell.js +36 -2
  463. package/dist/src/tui/tui-management.d.ts +114 -0
  464. package/dist/src/tui/tui-management.js +233 -0
  465. package/dist/src/tui/tui-picker-overlay.d.ts +1 -6
  466. package/dist/src/tui/tui-picker-overlay.js +1 -62
  467. package/dist/src/tui/tui-session-actions.d.ts +1 -0
  468. package/dist/src/tui/tui-session-actions.js +97 -29
  469. package/dist/src/tui/tui-settings.js +1 -1
  470. package/dist/src/tui/tui-side-chat.d.ts +10 -0
  471. package/dist/src/tui/tui-side-chat.js +56 -0
  472. package/dist/src/tui/tui-terminal.d.ts +3 -0
  473. package/dist/src/tui/tui-terminal.js +52 -0
  474. package/dist/src/tui/tui-types.d.ts +4 -1
  475. package/dist/src/tui/tui.js +422 -211
  476. package/dist/src/tui/xopc-tui-keybindings.d.ts +29 -9
  477. package/dist/src/tui/xopc-tui-keybindings.js +27 -7
  478. package/dist/src/usage/recorder.js +2 -0
  479. package/dist/src/usage/scenario-registry.js +5 -0
  480. package/dist/src/user-model/index.js +3 -3
  481. package/dist/src/user-model/profile.d.ts +8 -0
  482. package/dist/src/user-model/profile.js +19 -1
  483. package/dist/src/voice/platform-settings.d.ts +5 -0
  484. package/dist/src/voice/platform-settings.js +15 -2
  485. package/dist/src/voice/platform-streams.d.ts +7 -3
  486. package/dist/src/voice/platform-streams.js +90 -18
  487. package/dist/src/voice/realtime/agentBroker.d.ts +12 -1
  488. package/dist/src/voice/realtime/agentBroker.js +22 -5
  489. package/dist/src/voice/realtime/agentEngine.js +104 -12
  490. package/dist/src/voice/realtime/chat-publication.d.ts +24 -0
  491. package/dist/src/voice/realtime/chat-publication.js +61 -0
  492. package/dist/src/voice/realtime/conversation-context.d.ts +7 -1
  493. package/dist/src/voice/realtime/conversation-context.js +54 -16
  494. package/dist/src/voice/realtime/engine.d.ts +2 -0
  495. package/dist/src/voice/realtime/identity-grounding.d.ts +8 -0
  496. package/dist/src/voice/realtime/identity-grounding.js +34 -0
  497. package/dist/src/voice/realtime/memory-context.js +48 -14
  498. package/dist/src/voice/realtime/naturalAgentTools.d.ts +90 -0
  499. package/dist/src/voice/realtime/naturalAgentTools.js +275 -0
  500. package/dist/src/voice/realtime/omniEngine.d.ts +8 -0
  501. package/dist/src/voice/realtime/omniEngine.js +239 -13
  502. package/dist/src/voice/realtime/omniRoute.d.ts +1 -0
  503. package/dist/src/voice/realtime/omniRoute.js +23 -4
  504. package/dist/src/voice/realtime/runtime.d.ts +1 -0
  505. package/dist/src/voice/realtime/runtime.js +116 -22
  506. package/dist/src/voice/realtime/runtime.types.d.ts +3 -1
  507. package/dist/src/voice/realtime/speakable-segmenter.d.ts +2 -1
  508. package/dist/src/voice/realtime/speakable-segmenter.js +7 -2
  509. package/dist/src/voice/realtime/turnPolicy.d.ts +1 -2
  510. package/dist/src/voice/realtime/turnPolicy.js +4 -6
  511. package/dist/src/voice/realtime/user-context.d.ts +14 -0
  512. package/dist/src/voice/realtime/user-context.js +63 -0
  513. package/dist/src/voice/tts/providers/xopc-cloud-speech.js +29 -23
  514. package/dist/src/voice/tts/speak-core.js +1 -0
  515. package/dist/src/voice/tts/speech-provider-types.d.ts +2 -0
  516. package/dist/src/work-discovery/service.js +1 -1
  517. package/package.json +3 -1
  518. package/skills/engineering/build-xopc-local-app/SKILL.md +5 -1
  519. package/skills/engineering/build-xopc-local-app/references/app-contract.md +43 -2
  520. package/dist/gateway/static/root/assets/api-DIKAjDAK.js +0 -1
  521. package/dist/gateway/static/root/assets/automation-run-list-J-R4-hVm.js +0 -1
  522. package/dist/gateway/static/root/assets/capabilities-page-KRaK8LKT.js +0 -2
  523. package/dist/gateway/static/root/assets/capabilities-settings-panel-aJy-1o5H.js +0 -8
  524. package/dist/gateway/static/root/assets/chat-page-QmBfel_Z.js +0 -71
  525. package/dist/gateway/static/root/assets/clipboard-copy-DuJk5WD6.js +0 -1
  526. package/dist/gateway/static/root/assets/connected-providers-grid-BWVieU6P.js +0 -1
  527. package/dist/gateway/static/root/assets/connectors-page-C8M01Zxs.js +0 -1
  528. package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
  529. package/dist/gateway/static/root/assets/extension-iframe-host-DjXDDmUd.js +0 -1
  530. package/dist/gateway/static/root/assets/extension-page-CGgneUDY.js +0 -1
  531. package/dist/gateway/static/root/assets/extension-provider-BktGTwH_.js +0 -1
  532. package/dist/gateway/static/root/assets/gateway-realtime-store-ZxMFPH4n.js +0 -1
  533. package/dist/gateway/static/root/assets/index-CPXKrqLj.js +0 -11
  534. package/dist/gateway/static/root/assets/index-Dc-3QQaz.css +0 -1
  535. package/dist/gateway/static/root/assets/local-app-workbench-page-CnckB-RA.js +0 -1
  536. package/dist/gateway/static/root/assets/local-apps-Ck6kACsY.js +0 -1
  537. package/dist/gateway/static/root/assets/logs-page-_nIEwZn4.js +0 -2
  538. package/dist/gateway/static/root/assets/messages-C7ruaWtK.js +0 -3
  539. package/dist/gateway/static/root/assets/note-image-lightbox-kccIXJo_.js +0 -1
  540. package/dist/gateway/static/root/assets/oauth-provider-connect-CZP15znW.js +0 -1
  541. package/dist/gateway/static/root/assets/page-header-store-CFntbsPj.js +0 -1
  542. package/dist/gateway/static/root/assets/personal-avatar-CVocefDp.js +0 -1
  543. package/dist/gateway/static/root/assets/personal-page-BjnSgU89.js +0 -1
  544. package/dist/gateway/static/root/assets/personal-proactivity-DaRnbB1f.js +0 -1
  545. package/dist/gateway/static/root/assets/personal-settings-panel-CdMHSPCH.js +0 -1
  546. package/dist/gateway/static/root/assets/providers-api-DE7kdeXc.js +0 -1
  547. package/dist/gateway/static/root/assets/route-preload-DGMUu3pm.js +0 -2
  548. package/dist/gateway/static/root/assets/runtime-health-D2TDFLLq.js +0 -1
  549. package/dist/gateway/static/root/assets/session-manager-5qokJQ6W.js +0 -25
  550. package/dist/gateway/static/root/assets/settings-advanced-gate-B7-XQiJh.js +0 -1
  551. package/dist/gateway/static/root/assets/sliding-segmented-D346J92k.js +0 -1
  552. package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +0 -2
  553. package/dist/gateway/static/root/assets/use-realtime-voice-BcokfdI0.js +0 -1
  554. package/dist/gateway/static/root/assets/voice-C607F0pB.js +0 -1
  555. package/dist/gateway/static/root/assets/voice-call-context-CJ1ZiJWR.js +0 -1
  556. package/dist/gateway/static/root/assets/voice-config-api-DVFTuHwH.js +0 -1
  557. package/dist/gateway/static/root/assets/workspace-api-ymncGc6j.js +0 -2
  558. package/dist/gateway/static/root/assets/workspace-editor-agent-store-BQrMvAkL.js +0 -1
@@ -291,7 +291,11 @@ function createImageGenerateTool(options) {
291
291
  return {
292
292
  content: [{
293
293
  type: "text",
294
- text: [`Generated and attached ${paths.length} image(s) with ${result.provider}/${result.model}.`, ...paths.map((p) => `Saved: ${p}`)].join("\n")
294
+ text: [
295
+ `Generated and published ${paths.length} image(s) with ${result.provider}/${result.model}.`,
296
+ "In a Task, select the returned artifact IDs in publish_task_result.finalArtifactIds for final delivery. Publication alone does not confirm delivery to the originating chat.",
297
+ ...paths.map((p) => `Saved: ${p}`)
298
+ ].join("\n")
295
299
  }],
296
300
  details: {
297
301
  provider: result.provider,
@@ -1,6 +1,6 @@
1
+ import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
1
2
  import { DEFAULT_TOOL_METADATA, getToolMetadata } from "./metadata.js";
2
3
  import { ToolConcurrencyController, resolveToolLockMode } from "./concurrency.js";
3
- import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
4
4
  import { createDataBatchTool } from "./dataBatch.js";
5
5
  import { createXopcUseTool } from "./xopc-use-tool.js";
6
6
  import { createMcpSetupTool } from "./mcp-setup-tool.js";
@@ -1,5 +1,5 @@
1
- import { checkedFilePath } from "../sandbox/fileAccess.js";
2
1
  import { resolvePathUnderWorkspace } from "./tool-paths.js";
2
+ import { checkedFilePath } from "../sandbox/fileAccess.js";
3
3
  import { readdir } from "fs/promises";
4
4
  import { Type } from "@sinclair/typebox";
5
5
  //#region src/agent/tools/list-dir.ts
@@ -8,6 +8,7 @@ const ManagedJobSchema = Type.Union([
8
8
  action: Type.Literal("start"),
9
9
  command: Type.String({ minLength: 1 }),
10
10
  cwd: Type.Optional(Type.String()),
11
+ tty: Type.Optional(Type.Boolean()),
11
12
  maxRuntimeMs: Type.Optional(Type.Number())
12
13
  }),
13
14
  Type.Object({
@@ -28,6 +29,18 @@ const ManagedJobSchema = Type.Union([
28
29
  chars: Type.String({ maxLength: 65536 }),
29
30
  end: Type.Optional(Type.Boolean())
30
31
  }),
32
+ Type.Object({
33
+ action: Type.Literal("resize"),
34
+ jobId: Type.String(),
35
+ cols: Type.Integer({
36
+ minimum: 2,
37
+ maximum: 1e3
38
+ }),
39
+ rows: Type.Integer({
40
+ minimum: 2,
41
+ maximum: 1e3
42
+ })
43
+ }),
31
44
  Type.Object({ action: Type.Literal("list") }),
32
45
  Type.Object({
33
46
  action: Type.Literal("cancel"),
@@ -47,7 +60,7 @@ function createManagedJobTool(workspace, getConversationId, getSkillPassthroughE
47
60
  return {
48
61
  name: "managed_job",
49
62
  label: "Managed Job",
50
- description: "Manage shell jobs, including jobs yielded by exec_command. Start returns an id; wait returns on completion or after at most 60s; stdin writes pipe input (not a terminal); status/list/cancel inspect or stop jobs. Completed output and logs survive restart. Interrupted jobs require inspection before restart.",
63
+ description: "Manage shell jobs, including jobs yielded by exec_command. Start returns an id; wait returns on completion or after at most 60s; stdin writes input; tty:true allocates a terminal and resize changes its dimensions; status/list/cancel inspect or stop jobs. Completed output and logs survive restart. Interrupted jobs require inspection before restart.",
51
64
  parameters: ManagedJobSchema,
52
65
  supportsParallel: true,
53
66
  idempotent: false,
@@ -56,6 +69,7 @@ function createManagedJobTool(workspace, getConversationId, getSkillPassthroughE
56
69
  const registry = commandRegistry();
57
70
  if (input.action === "list") return result(registry.list(owner));
58
71
  if (input.action !== "start") {
72
+ if (input.action === "resize" && !registry.resize(owner, input.jobId, input.cols, input.rows)) throw new Error("Terminal job not found");
59
73
  if (input.action === "stdin" && !registry.write(owner, input.jobId, input.chars, input.end)) return result({
60
74
  status: "failed",
61
75
  error: "Job is unavailable or stdin is closed"
@@ -89,6 +103,7 @@ function createManagedJobTool(workspace, getConversationId, getSkillPassthroughE
89
103
  ...env,
90
104
  COLUMNS: "200"
91
105
  },
106
+ tty: input.tty,
92
107
  workspace,
93
108
  isolation: getCommandIsolation?.(),
94
109
  timeoutMs: commandTimeout(input.maxRuntimeMs, policy.timeoutMs),
@@ -3,8 +3,8 @@ import { getEmbeddedExecutionSession } from "../embedded/execution-context.js";
3
3
  import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
4
4
  import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
5
5
  import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
6
- import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
7
6
  import { registerAutomationReadCapabilities } from "../../automations/capabilities/read.js";
7
+ import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
8
8
  import { Type } from "@sinclair/typebox";
9
9
  //#region src/agent/tools/personal-read-tool.ts
10
10
  const schema = Type.Object({
@@ -1,8 +1,8 @@
1
1
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
2
2
  import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
3
3
  import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
4
- import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
5
4
  import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
5
+ import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
6
6
  import { PersonalRequestResultSchema } from "../../personal-agent/request-result.js";
7
7
  import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
8
8
  import { Type } from "@sinclair/typebox";
@@ -11,9 +11,10 @@ import { isPersonalConversation } from "../../personal-agent/repository.js";
11
11
  import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
12
12
  import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
13
13
  import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
14
+ import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
15
+ import { TaskResultDeliveryRepository } from "../../tasks/task-result-delivery-repository.js";
14
16
  import { boundedPersonalResult } from "./personal-result-budget.js";
15
17
  import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
16
- import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
17
18
  import { TaskApplicationService } from "../../tasks/task-application-service.js";
18
19
  import "../../personal-agent/communication.js";
19
20
  import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
@@ -669,6 +670,7 @@ function createPersonalTaskTool(deps) {
669
670
  [input.section]: payload[input.section]
670
671
  } : { ...payload };
671
672
  read.revisionBaseline = new TaskReadModelProjector().get(input.taskId)?.revisionBaseline;
673
+ read.fileDelivery = new TaskResultDeliveryRepository().fileDeliveryState(input.taskId, conversationId);
672
674
  const pagination = {};
673
675
  for (const key of [
674
676
  "waits",
@@ -1,9 +1,9 @@
1
1
  import { turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { resolvePathUnderWorkspace } from "./tool-paths.js";
3
4
  import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
4
5
  import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
5
6
  import { readWorkspaceFile } from "../sandbox/fileAccess.js";
6
- import { resolvePathUnderWorkspace } from "./tool-paths.js";
7
7
  import { persistToolMedia } from "./tool-media.js";
8
8
  import { basename, isAbsolute, relative, sep } from "node:path";
9
9
  import { Type } from "@sinclair/typebox";
@@ -1,8 +1,8 @@
1
+ import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
1
2
  import { checkedFilePath, readWorkspaceFileAsync } from "../sandbox/fileAccess.js";
2
3
  import { checkFileSafety } from "../prompt/safety.js";
3
4
  import { dataScheduler } from "../data-acquisition/scheduler.js";
4
5
  import { formatSize, truncateHead } from "./truncate.js";
5
- import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
6
6
  import { stat } from "fs/promises";
7
7
  import { Type } from "@sinclair/typebox";
8
8
  //#region src/agent/tools/read.ts
@@ -1,9 +1,9 @@
1
1
  import { turnOutcomeKindFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
3
  import { MEDIA_MAX_BYTES } from "../../media/store.js";
4
+ import { resolvePathUnderWorkspace } from "./tool-paths.js";
4
5
  import { readWorkspaceFile } from "../sandbox/fileAccess.js";
5
6
  import { checkFileSafety } from "../prompt/safety.js";
6
- import { resolvePathUnderWorkspace } from "./tool-paths.js";
7
7
  import { persistToolMedia } from "./tool-media.js";
8
8
  import { basename } from "node:path";
9
9
  import { Type } from "@sinclair/typebox";
@@ -7,9 +7,9 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
7
7
  import { init_session_repository } from "../../storage/sqlite/session-repository.js";
8
8
  import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
9
9
  import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
10
+ import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
10
11
  import { getEmbeddedExecutionSession } from "../embedded/execution-context.js";
11
12
  import { assertTaskHandoffAccess, assertTaskHandoffExecutorAccess, getTaskHandoff, materializeTaskHandoffFile, readTaskHandoffSource } from "../../tasks/task-handoff.js";
12
- import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
13
13
  import { taskResearchEvidence } from "../../tasks/task-research-result.js";
14
14
  import { createXopcUseTool } from "./xopc-use-tool.js";
15
15
  import { Type } from "@sinclair/typebox";
@@ -1,26 +1,15 @@
1
1
  import { suggestedEvidenceRanges } from "../../tasks/task-evidence-ranges.js";
2
+ import { isTaskEvidenceTool } from "../../tasks/task-evidence-tools.js";
2
3
  //#region src/agent/tools/task-evidence.ts
3
4
  /** Tool-call IDs are protocol metadata and may be invisible to the model; expose the host ID in Task reads. */
4
5
  function withTaskEvidenceIdentity(tool) {
5
- if (!new Set([
6
- "read_file",
7
- "read_media",
8
- "web_fetch",
9
- "web_search",
10
- "web_extract",
11
- "exec_command",
12
- "managed_job",
13
- "xopc_tool_execute",
14
- "publish_artifacts",
15
- "session_status",
16
- "task_collaboration"
17
- ]).has(tool.name)) return tool;
6
+ if (!isTaskEvidenceTool(tool.name)) return tool;
18
7
  return {
19
8
  ...tool,
20
9
  execute: async (...args) => {
21
10
  const result = await tool.execute(args[0], args[1], args[2], args[3]);
22
11
  if (tool.name === "task_collaboration" && !result.details?.taskSourceRead) return result;
23
- const artifacts = tool.name === "publish_artifacts" ? result.details?.artifacts : void 0;
12
+ const artifacts = result.details?.artifacts;
24
13
  const receipt = artifacts ? [{
25
14
  type: "text",
26
15
  text: JSON.stringify({
@@ -34,9 +23,11 @@ function withTaskEvidenceIdentity(tool) {
34
23
  }] : [];
35
24
  const execution = result.details;
36
25
  const body = result.content.filter((part) => part.type === "text").map((part) => part.text).join("\n");
37
- const ranges = !result.isError && ![
26
+ const ranges = !result.isError && !execution?.error && ![
38
27
  "failed",
39
28
  "blocked",
29
+ "error",
30
+ "queued",
40
31
  "running",
41
32
  "timed_out",
42
33
  "cancelled"
@@ -67,7 +67,7 @@ function createTaskResultTool(getConversationId) {
67
67
  name: "publish_task_result",
68
68
  label: "Publish research conclusions",
69
69
  parameters: schema,
70
- description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, finalArtifactIds is required: explicitly select the exact artifact IDs from publication receipts for the final delivery. Exclude intermediate, failed, obsolete and unrelated files. [] explicitly selects a text-only final result. New submissions replace this final selection; no historical union. Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Reviewer support/note/checks fields are read-only; never send them back in sources or claims. Never drop valid calculation/input evidence merely to fix a file. Negative assertions such as \"never reran a script\" need an observable, scoped execution record; do not invent proof of absence or add an unnecessary absolute negative claim. Keep prohibitions as constraints, and retire unsupported optional claims while retaining required verified findings. Sources require short contiguous exact excerpts from successful read_file/read_media/web/exec/session_status results or publication receipts in this TaskRun. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Use task_collaboration get section evidence to list/read original toolCallIds. Use finalText to submit the exact chat deliverable for content checks. It is not a source for external factual claims. On source_quote_mismatch follow the recovery instruction; never repeat unchanged sources. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
70
+ description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, finalArtifactIds is required: explicitly select the exact artifact IDs from publication receipts for the final delivery. Exclude intermediate, failed, obsolete and unrelated files. [] explicitly selects a text-only final result. New submissions replace this final selection; no historical union. Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Reviewer support/note/checks fields are read-only; never send them back in sources or claims. Never drop valid calculation/input evidence merely to fix a file. Negative assertions such as \"never reran a script\" need an observable, scoped execution record; do not invent proof of absence or add an unnecessary absolute negative claim. Keep prohibitions as constraints, and retire unsupported optional claims while retaining required verified findings. Sources require short contiguous exact excerpts from successful read_file/read_media/image/web/exec/session_status results or publication receipts (including image_generate) in this TaskRun. Use image observations for visual criteria; generation/publication alone does not verify appearance or confirm delivery to the originating chat. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Use task_collaboration get section evidence to list/read original toolCallIds. Use finalText to submit the exact chat deliverable for content checks. It is not a source for external factual claims. On source_quote_mismatch follow the recovery instruction; never repeat unchanged sources. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
71
71
  supportsParallel: false,
72
72
  mutationScope: "none",
73
73
  idempotent: false,
@@ -1,8 +1,8 @@
1
1
  import { projectForgottenEvidence } from "../../memory-learning/forgotten-history.js";
2
2
  import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
3
3
  import { canUseAssertion } from "../../user-model/usage-policy.js";
4
- import "../../user-model/index.js";
5
4
  import "./local-read-budget.js";
5
+ import "../../user-model/index.js";
6
6
  import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
7
7
  import { Type } from "@sinclair/typebox";
8
8
  //#region src/agent/tools/user-context-tool.ts
@@ -1,9 +1,9 @@
1
1
  import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
3
4
  import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
4
5
  import { writeWorkspaceFile } from "../sandbox/fileAccess.js";
5
6
  import { checkFileSafety } from "../prompt/safety.js";
6
- import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
7
7
  import { basename, relative, sep } from "path";
8
8
  import { realpath } from "fs/promises";
9
9
  import { Type } from "@sinclair/typebox";
@@ -16,23 +16,23 @@ import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-lang
16
16
  import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
17
17
  import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
18
18
  import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
19
+ import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
19
20
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
20
21
  import { getAutomationSetup } from "../../automations/configuration-conversation.js";
21
22
  import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
22
23
  import "../../capabilities/runtime/dispatcher.js";
23
24
  import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
25
+ import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
24
26
  import { resolveProjectAgentId } from "../../projects/project-agent.js";
25
- import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
26
- import { TaskDeleteOutputSchema } from "../../tasks/capabilities/management.js";
27
27
  import "../../projects/index.js";
28
28
  import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
29
- import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
30
29
  import { TaskApplicationService } from "../../tasks/task-application-service.js";
31
- import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
32
30
  import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
33
31
  import { TaskMutationOutputSchema } from "../../tasks/capabilities/write.js";
34
- import { createProductDispatcher } from "../../capabilities/runtime/product.js";
32
+ import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
33
+ import { TaskDeleteOutputSchema } from "../../tasks/capabilities/management.js";
35
34
  import { localAppCapabilities } from "../../local-apps/capabilities/runtime.js";
35
+ import { createProductDispatcher } from "../../capabilities/runtime/product.js";
36
36
  import { getDelegationScope } from "../orchestration/delegation-scope.js";
37
37
  import { defineTaskContract } from "../../tasks/task-contract-definition.js";
38
38
  import "../../tasks/index.js";
@@ -1854,7 +1854,7 @@ async function handleLocalApp(command, args, deps, dryRun) {
1854
1854
  };
1855
1855
  return {
1856
1856
  ok: true,
1857
- app: localApps.create(input)
1857
+ app: localApps.create(input, deps.getCurrentConversationId?.())
1858
1858
  };
1859
1859
  }
1860
1860
  return {
@@ -1932,7 +1932,7 @@ function createXopcUseTool(deps) {
1932
1932
  return {
1933
1933
  name: "xopc_use",
1934
1934
  label: "XOPC Use",
1935
- description: "Use mode browser_setup for inspect/preview/start/get/advance/recheck/request_interaction/begin_verification/verification_report/cancel of local Chrome setup. Load configure-xopc for guided setup; writes require product-owner approval. Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {title:\"Short task name\", objective:\"One-sentence outcome\", body:\"Full Markdown task brief\", createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
1935
+ description: "Use mode browser_setup for inspect/preview/start/get/advance/recheck/request_interaction/begin_verification/verification_report/cancel of local Chrome setup. Load configure-xopc for guided setup; writes require product-owner approval. Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {title:\"Short task name\", objective:\"One-sentence outcome\", body:\"Full Markdown task brief\", createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest and grantRevision, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
1936
1936
  parameters: XopcUseToolSchema,
1937
1937
  mutatesWorkspace: true,
1938
1938
  mutationScope: "external",
@@ -2059,6 +2059,7 @@ function createXopcUseTool(deps) {
2059
2059
  if (typeof args.extensionId !== "string") return errorText("extensionId is required", details);
2060
2060
  const manifestDigest = command === "capabilities" ? apps.getUiGrant(args.extensionId).manifestDigest : args.manifestDigest;
2061
2061
  if (typeof manifestDigest !== "string") return errorText("A discovered manifestDigest is required", details);
2062
+ if (command === "invoke" && typeof args.grantRevision !== "string") return errorText("A discovered grantRevision is required", details);
2062
2063
  const caller = {
2063
2064
  principalId: `agent:${deps.getCurrentAgentId?.() ?? "main"}`,
2064
2065
  surface: "agent",
@@ -2066,7 +2067,7 @@ function createXopcUseTool(deps) {
2066
2067
  authorize: deps.authorizeCapability ?? (() => true),
2067
2068
  signal
2068
2069
  };
2069
- const runtime = localAppCapabilities(apps, capabilities, args.extensionId, manifestDigest, caller);
2070
+ const runtime = localAppCapabilities(apps, capabilities, args.extensionId, manifestDigest, caller, command === "invoke" ? args.grantRevision : void 0);
2070
2071
  if (command === "capabilities") return okText({
2071
2072
  ...details,
2072
2073
  result: runtime.list()
@@ -310,6 +310,11 @@ export declare const AgentProfileSchema: z.ZodObject<{
310
310
  }, z.core.$strict>>;
311
311
  voiceCallPreferences: z.ZodOptional<z.ZodObject<{
312
312
  openingGreetingEnabled: z.ZodBoolean;
313
+ enginePreference: z.ZodOptional<z.ZodEnum<{
314
+ auto: "auto";
315
+ natural: "natural";
316
+ assistant: "assistant";
317
+ }>>;
313
318
  defaultMode: z.ZodOptional<z.ZodEnum<{
314
319
  natural: "natural";
315
320
  assistant: "assistant";
@@ -342,6 +347,11 @@ export declare const AgentEntrySchema: z.ZodObject<{
342
347
  }, z.core.$strict>>;
343
348
  voiceCallPreferences: z.ZodOptional<z.ZodObject<{
344
349
  openingGreetingEnabled: z.ZodBoolean;
350
+ enginePreference: z.ZodOptional<z.ZodEnum<{
351
+ auto: "auto";
352
+ natural: "natural";
353
+ assistant: "assistant";
354
+ }>>;
345
355
  defaultMode: z.ZodOptional<z.ZodEnum<{
346
356
  natural: "natural";
347
357
  assistant: "assistant";
@@ -493,6 +503,11 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
493
503
  }, z.core.$strict>>;
494
504
  voiceCallPreferences: z.ZodOptional<z.ZodObject<{
495
505
  openingGreetingEnabled: z.ZodBoolean;
506
+ enginePreference: z.ZodOptional<z.ZodEnum<{
507
+ auto: "auto";
508
+ natural: "natural";
509
+ assistant: "assistant";
510
+ }>>;
496
511
  defaultMode: z.ZodOptional<z.ZodEnum<{
497
512
  natural: "natural";
498
513
  assistant: "assistant";
@@ -32,7 +32,11 @@ function registerAutomationDraftCapabilities(dispatcher, service, getConfig) {
32
32
  id: "xopc.automations.simulate",
33
33
  majorVersion: 1,
34
34
  effect: "read",
35
- surfaces: ["http", "agent"],
35
+ surfaces: [
36
+ "http",
37
+ "agent",
38
+ "extension"
39
+ ],
36
40
  scopes: ["automations.read"],
37
41
  description: "Validate and explain an automation without running it or calling a model.",
38
42
  input: AutomationCreateCapabilityInputSchema,
@@ -2,6 +2,8 @@ import { ProductReadContracts } from "../../../packages/gateway-contract/src/cap
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
3
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
4
4
  import { defineReadCapability } from "../../capabilities/runtime/dispatcher.js";
5
+ import { automationReadable } from "../../local-apps/capabilities/automation-policy.js";
6
+ import { LocalAppAutomationHistorySchema, LocalAppAutomationListSchema, LocalAppAutomationOutputSchema, LocalAppAutomationRunOutputSchema, LocalAppRunEventsSchema, projectLocalAppRun } from "../../local-apps/capabilities/projections.js";
5
7
  import { setTimeout } from "node:timers/promises";
6
8
  //#region src/automations/capabilities/read.ts
7
9
  init_src();
@@ -23,10 +25,18 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
23
25
  ...policy,
24
26
  id: "xopc.automations.get_run",
25
27
  description: "Read current run state rather than the historical submission receipt.",
28
+ surfaces: [
29
+ "http",
30
+ "agent",
31
+ "cli",
32
+ "extension"
33
+ ],
34
+ extensionOutput: LocalAppAutomationRunOutputSchema,
26
35
  ...ProductReadContracts["xopc.automations.get_run"],
27
36
  async execute({ id, waitMs }, context) {
28
- const deadline = Date.now() + (waitMs ?? 0);
37
+ const deadline = Date.now() + (context.localApp ? Math.min(waitMs ?? 0, 5e3) : waitMs ?? 0);
29
38
  for (;;) {
39
+ context.assertCurrent?.();
30
40
  context.signal?.throwIfAborted();
31
41
  const run = await service.getRun(id);
32
42
  if (!run) throw new CapabilityError("NOT_FOUND", "Run not found");
@@ -37,7 +47,7 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
37
47
  "cancelling"
38
48
  ].includes(run.status) || remaining <= 0) return {
39
49
  ok: true,
40
- run: { ...run }
50
+ run: { ...context.localApp ? projectLocalAppRun(run) : run }
41
51
  };
42
52
  await setTimeout(Math.min(250, remaining), void 0, { signal: context.signal });
43
53
  }
@@ -47,12 +57,21 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
47
57
  ...policy,
48
58
  id: "xopc.automations.run_events",
49
59
  description: "Read ordered diagnostic events for an existing run.",
60
+ surfaces: [
61
+ "http",
62
+ "agent",
63
+ "cli",
64
+ "extension"
65
+ ],
66
+ extensionOutput: LocalAppRunEventsSchema,
50
67
  ...ProductReadContracts["xopc.automations.run_events"],
51
- async execute({ id }) {
68
+ async execute({ id }, context) {
52
69
  if (!await service.getRun(id)) throw new CapabilityError("NOT_FOUND", "Run not found");
70
+ const events = await service.listRunEvents(id);
53
71
  return {
54
72
  ok: true,
55
- events: (await service.listRunEvents(id)).map((event) => ({ ...event }))
73
+ events: (context.localApp ? events.slice(-100) : events).map((event) => ({ ...event })),
74
+ truncated: context.localApp ? events.length > 100 : false
56
75
  };
57
76
  }
58
77
  }));
@@ -111,7 +130,20 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
111
130
  ...policy,
112
131
  id: "xopc.automations.list",
113
132
  description: "List automations, optionally scoped to a project.",
133
+ surfaces: [
134
+ "http",
135
+ "agent",
136
+ "cli",
137
+ "extension"
138
+ ],
139
+ extensionOutput: LocalAppAutomationListSchema,
114
140
  ...ProductReadContracts["xopc.automations.list"],
141
+ async extensionExecute(input, context) {
142
+ return {
143
+ ok: true,
144
+ items: (await service.list(input)).filter((item) => context.localApp && automationReadable(context.localApp.resourceScopes, item))
145
+ };
146
+ },
115
147
  async execute(input) {
116
148
  requireProject(input.projectId);
117
149
  return {
@@ -126,6 +158,13 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
126
158
  ...policy,
127
159
  id: "xopc.automations.get",
128
160
  description: "Read an automation.",
161
+ surfaces: [
162
+ "http",
163
+ "agent",
164
+ "cli",
165
+ "extension"
166
+ ],
167
+ extensionOutput: LocalAppAutomationOutputSchema,
129
168
  ...ProductReadContracts["xopc.automations.get"],
130
169
  async execute({ id }) {
131
170
  const automation = await service.get(id);
@@ -140,9 +179,16 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
140
179
  ...policy,
141
180
  id: "xopc.automations.history",
142
181
  description: "Read automation execution history.",
182
+ surfaces: [
183
+ "http",
184
+ "agent",
185
+ "cli",
186
+ "extension"
187
+ ],
188
+ extensionOutput: LocalAppAutomationHistorySchema,
143
189
  ...ProductReadContracts["xopc.automations.history"],
144
- async execute(input) {
145
- requireProject(input.projectId);
190
+ async execute(input, context) {
191
+ if (!context.localApp) requireProject(input.projectId);
146
192
  let before;
147
193
  if (input.cursor) try {
148
194
  const parsed = JSON.parse(Buffer.from(input.cursor, "base64url").toString("utf8"));
@@ -157,10 +203,14 @@ function registerAutomationReadCapabilities(dispatcher, service, projects) {
157
203
  const rows = await service.listRuns({
158
204
  ...input,
159
205
  before,
160
- limit: input.limit + 1
206
+ limit: input.limit + 1,
207
+ ...context.localApp ? { localAppRestriction: {
208
+ extensionId: context.localApp.extensionId,
209
+ scope: context.localApp.resourceScopes.automationsRead
210
+ } } : {}
161
211
  });
162
212
  const hasMore = rows.length > input.limit;
163
- const items = rows.slice(0, input.limit).map((item) => ({ ...item }));
213
+ const items = rows.slice(0, input.limit).map((item) => ({ ...context.localApp ? projectLocalAppRun(item) : item }));
164
214
  const last = items.at(-1);
165
215
  const nextCursor = hasMore && last ? Buffer.from(JSON.stringify({
166
216
  createdAtMs: last.createdAtMs,
@@ -1,5 +1,6 @@
1
1
  import { AutomationCancelOutputSchema, AutomationDeleteInputSchema, AutomationDeleteOutputSchema, AutomationMutationOutputSchema, AutomationReadAllInputSchema, AutomationReadAllOutputSchema, AutomationReadOutputSchema, AutomationRecoveryOutputSchema, AutomationReplayEventInputSchema, AutomationRetryDeliveryInputSchema, AutomationRunMutationOutputSchema, AutomationSetEnabledInputSchema, CapabilityResourceInputSchema } from "../../../packages/gateway-contract/src/capabilities.js";
2
2
  import { init_src } from "../../../packages/gateway-contract/src/index.js";
3
+ import { DurableState } from "../../storage/sqlite/durable-state.js";
3
4
  import { CapabilityError } from "../../capabilities/runtime/errors.js";
4
5
  import { AutomationTriggerSchema, CreateAutomationSchema, UpdateAutomationSchema } from "../domain/validation.js";
5
6
  import { getAutomation } from "../storage/automation-repository.js";
@@ -9,6 +10,7 @@ import { getAutomationEventForRun } from "../events/event-repository.js";
9
10
  import "../events/index.js";
10
11
  import { assertAutomationSetupTarget, bindAutomationSetup } from "../configuration-conversation.js";
11
12
  import { defineAtomicCapability } from "../../capabilities/runtime/dispatcher.js";
13
+ import { LocalAppAutomationSubmitSchema } from "../../local-apps/capabilities/projections.js";
12
14
  import { AutomationAlreadyExistsError, AutomationAlreadyRunningError, AutomationInvalidAgentError, AutomationInvalidScheduleError, AutomationInvalidSourceError } from "../service/automation-service.js";
13
15
  import { z } from "zod";
14
16
  //#region src/automations/capabilities/write.ts
@@ -113,6 +115,11 @@ function registerAutomationWriteCapabilities(dispatcher, service, projects) {
113
115
  dispatcher.register(defineAtomicCapability({
114
116
  ...policy,
115
117
  id: "xopc.automations.cancel",
118
+ surfaces: [
119
+ "http",
120
+ "agent",
121
+ "extension"
122
+ ],
116
123
  description: "Persist cancellation intent for a run. Only queued work is confirmed stopped immediately; receipts describe acceptance time.",
117
124
  input: CapabilityResourceInputSchema,
118
125
  output: AutomationCancelOutputSchema,
@@ -154,6 +161,12 @@ function registerAutomationWriteCapabilities(dispatcher, service, projects) {
154
161
  for (const command of ["run", "rerun"]) dispatcher.register(defineAtomicCapability({
155
162
  ...policy,
156
163
  id: `xopc.automations.${command}`,
164
+ surfaces: command === "run" ? [
165
+ "http",
166
+ "agent",
167
+ "extension"
168
+ ] : ["http", "agent"],
169
+ extensionOutput: LocalAppAutomationSubmitSchema,
157
170
  description: command === "run" ? "Queue a manual run with the currently accepted execution configuration." : "Queue a rerun with current configuration and the original trigger event.",
158
171
  input: CapabilityResourceInputSchema,
159
172
  output: AutomationRunMutationOutputSchema,
@@ -162,6 +175,23 @@ function registerAutomationWriteCapabilities(dispatcher, service, projects) {
162
175
  const automation = automationId ? getAutomation(automationId) : null;
163
176
  if (!automation) throw new CapabilityError("NOT_FOUND", "Automation or source run not found");
164
177
  assertManagedOperation(automation, "run");
178
+ if (context.localApp) {
179
+ context.assertCurrent?.();
180
+ new DurableState("local-app-automation-budget", context.localApp.extensionId).update("hour", (previous) => {
181
+ const budget = previous && Date.now() - previous.start < 36e5 ? previous : {
182
+ start: Date.now(),
183
+ count: 0
184
+ };
185
+ if (budget.count >= 20) throw new CapabilityError("UNAVAILABLE", "This app has reached its hourly automation budget");
186
+ return {
187
+ value: {
188
+ ...budget,
189
+ count: budget.count + 1
190
+ },
191
+ result: void 0
192
+ };
193
+ });
194
+ }
165
195
  try {
166
196
  const request = {
167
197
  id: `${command}:${context.operationId}`,
@@ -181,6 +211,29 @@ function registerAutomationWriteCapabilities(dispatcher, service, projects) {
181
211
  };
182
212
  const executionEvent = command === "rerun" ? getAutomationEventForRun(id) ?? request : request;
183
213
  const run = service.queueTriggerAtomically(automation.id, request, executionEvent);
214
+ if (context.localApp) new DurableState("local-app-automation-runs", context.localApp.extensionId).set(run.id, { automationId: automation.id });
215
+ if (context.localApp) {
216
+ const app = context.localApp;
217
+ const approval = app.resourceScopes.automationsRun.mode === "selected" ? app.resourceScopes.automationsRun.approvals.find((item) => item.id === automation.id) : void 0;
218
+ if (!approval || !app.releaseId || !app.grantRevision) throw new CapabilityError("FORBIDDEN", "Bounded execution approval is required");
219
+ if (!app.manifestDigest) throw new CapabilityError("FORBIDDEN", "Release identity is required");
220
+ new DurableState("local-app-execution-runs", app.extensionId).update(`${app.grantRevision}:${automation.id}`, (previous) => {
221
+ if ((previous ?? 0) >= approval.authority.maxRuns) throw new CapabilityError("FORBIDDEN", "Execution count exhausted");
222
+ return {
223
+ value: (previous ?? 0) + 1,
224
+ result: void 0
225
+ };
226
+ });
227
+ new DurableState("local-app-run-authority").set(run.id, {
228
+ extensionId: app.extensionId,
229
+ automationId: automation.id,
230
+ manifestDigest: app.manifestDigest,
231
+ releaseId: app.releaseId,
232
+ grantRevision: app.grantRevision,
233
+ configurationDigest: approval.configurationDigest,
234
+ authority: approval.authority
235
+ });
236
+ }
184
237
  return {
185
238
  ok: true,
186
239
  automation: { ...automation },
@@ -2,8 +2,9 @@ import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
3
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
4
4
  import { getAutomationRun } from "../storage/automation-run-repository.js";
5
- import { assertUrlSafe } from "../../agent/tools/url-safety.js";
6
5
  import "../storage/index.js";
6
+ import { assertLocalAppDelivery } from "../../local-apps/execution-authority.js";
7
+ import { assertUrlSafe } from "../../agent/tools/url-safety.js";
7
8
  import { getAutomationEventForRun } from "../events/event-repository.js";
8
9
  import "../events/index.js";
9
10
  import { resolveAutomationWebhookSecret } from "../webhook-secrets.js";
@@ -260,6 +261,7 @@ var AutomationDeliveryRouter = class {
260
261
  try {
261
262
  const handler = this.handlers.get(row.kind);
262
263
  if (!handler) throw new Error(`Automation delivery handler is unavailable: ${row.kind}`);
264
+ assertLocalAppDelivery(row.run_id, row.kind);
263
265
  await handler({
264
266
  deliveryId: row.delivery_id,
265
267
  attempt: row.attempts + 1,
@@ -0,0 +1,2 @@
1
+ export declare function notifyAutomationRun(runId: string): void;
2
+ export declare function onAutomationRunChange(runId: string, listener: () => void): () => void;