@xopcai/xopc 0.0.446 → 0.0.448

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 (274) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/src/draft-stream-lifecycle.d.ts +2 -3
  3. package/dist/extensions/telegram/src/plugin.d.ts +0 -1
  4. package/dist/extensions/telegram/src/plugin.js +0 -1
  5. package/dist/extensions/telegram/xopc.extension.json +1 -1
  6. package/dist/gateway/static/root/assets/{activity-store-Ddf-02Rf.js → activity-store-Tn5McYcg.js} +1 -1
  7. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Dcu4ggpV.js → agent-avatar-dicebear-BX5HhrTI.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agent-avatar-display-CarpM_qc.js → agent-avatar-display-C7Dx9nt1.js} +2 -2
  9. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-B4GynTfH.js → agent-defaults-settings-panel-AAJsxEjB.js} +1 -1
  10. package/dist/gateway/static/root/assets/{agent-plugin-dialog-BWQ_Diyv.js → agent-plugin-dialog-BhtzU8qr.js} +1 -1
  11. package/dist/gateway/static/root/assets/{agents-DKaImiga.js → agents-CbGYb9WI.js} +3 -3
  12. package/dist/gateway/static/root/assets/{agents-admin-api-BwoePPTG.js → agents-admin-api-CShyoj9I.js} +1 -1
  13. package/dist/gateway/static/root/assets/{api-MJxs2HLk.js → api-B3M6ifoo.js} +1 -1
  14. package/dist/gateway/static/root/assets/{api-Cc72Y3ct.js → api-BET9vZ1l.js} +1 -1
  15. package/dist/gateway/static/root/assets/{app-management-settings-panel-Cy6szt9g.js → app-management-settings-panel-BxOShFPO.js} +1 -1
  16. package/dist/gateway/static/root/assets/{appearance-settings-Dy75gAe7.js → appearance-settings-L450QlMW.js} +1 -1
  17. package/dist/gateway/static/root/assets/{apps-page-DlwW9ClN.js → apps-page-BNhpN8RA.js} +1 -1
  18. package/dist/gateway/static/root/assets/{archive-plugin-_5jgYMZC.js → archive-plugin-BCXEOal7.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automation-api-DrxC4rCG.js → automation-api-B3Jnoa2G.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automation-result-state-Ba_q8_Jj.js → automation-result-state-BHAKc5QI.js} +1 -1
  21. package/dist/gateway/static/root/assets/{automation-run-list-DuyMQwtf.js → automation-run-list-De7gini_.js} +1 -1
  22. package/dist/gateway/static/root/assets/automation-task-card-Clf0fe_n.js +3 -0
  23. package/dist/gateway/static/root/assets/{automations-page-D-Sl7Dhr.js → automations-page-CJ1rfmZd.js} +1 -1
  24. package/dist/gateway/static/root/assets/automations-workspace-CHFTlLiA.js +9 -0
  25. package/dist/gateway/static/root/assets/{binary-plugins-BYHCUreq.js → binary-plugins-B7tuUWzS.js} +1 -1
  26. package/dist/gateway/static/root/assets/{block-editor-DI_JHx-P.js → block-editor-D-YHASZr.js} +55 -55
  27. package/dist/gateway/static/root/assets/{browser-settings-page-DXBM5lpK.js → browser-settings-page-DdMMia7Y.js} +1 -1
  28. package/dist/gateway/static/root/assets/capabilities-Cxh3nYa6.js +1 -0
  29. package/dist/gateway/static/root/assets/{capabilities-CUHCbQ5N.js → capabilities-YfkMBZCb.js} +1 -1
  30. package/dist/gateway/static/root/assets/{capabilities-page-RJnyR_V9.js → capabilities-page-DosENGaK.js} +2 -2
  31. package/dist/gateway/static/root/assets/{capabilities-settings-panel-CxSrK6bJ.js → capabilities-settings-panel-qZ3S06yZ.js} +1 -1
  32. package/dist/gateway/static/root/assets/{channels-CBXmRfVR.js → channels-BBgyZnHB.js} +1 -1
  33. package/dist/gateway/static/root/assets/{chat-agents-api-D6sJpLeT.js → chat-agents-api-CgasFAm4.js} +1 -1
  34. package/dist/gateway/static/root/assets/{chat-chart-block-B2U7epTQ.js → chat-chart-block-Cgks7rH3.js} +1 -1
  35. package/dist/gateway/static/root/assets/chat-page-CCwdk6yE.js +71 -0
  36. package/dist/gateway/static/root/assets/{chat-terminal-dock-XNPvQhNw.js → chat-terminal-dock-CbP1mS4v.js} +1 -1
  37. package/dist/gateway/static/root/assets/{command-palette-api-DbL0oPXq.js → command-palette-api-Bku_h283.js} +1 -1
  38. package/dist/gateway/static/root/assets/{composer-payload-handoff-CaxZicbL.js → composer-payload-handoff-CrTYMPL_.js} +1 -1
  39. package/dist/gateway/static/root/assets/{computer-settings-page-Velpw46s.js → computer-settings-page-zvWUPPAr.js} +1 -1
  40. package/dist/gateway/static/root/assets/{connected-providers-grid-Y79g354a.js → connected-providers-grid-w3htbAyh.js} +1 -1
  41. package/dist/gateway/static/root/assets/{connection-usage-guide-BaDoesqn.js → connection-usage-guide-DL2T6cSN.js} +1 -1
  42. package/dist/gateway/static/root/assets/{connector-service-page-C5mVM3zg.js → connector-service-page-a0gQC-nc.js} +1 -1
  43. package/dist/gateway/static/root/assets/{connectors-api-Cgiy3Dyn.js → connectors-api-DNVUmf9M.js} +1 -1
  44. package/dist/gateway/static/root/assets/{connectors-page-DDSTfe3M.js → connectors-page-CPGlpvoB.js} +1 -1
  45. package/dist/gateway/static/root/assets/constants-DpkUgykJ.js +1 -0
  46. package/dist/gateway/static/root/assets/date-picker-E0cqnNlR.js +1 -0
  47. package/dist/gateway/static/root/assets/date-time-picker-CrC_VKpw.js +1 -0
  48. package/dist/gateway/static/root/assets/{desktop-pet-D1buh7JC.js → desktop-pet-D1MkNl5F.js} +1 -1
  49. package/dist/gateway/static/root/assets/{desktop-pet-narrative-C8zQtMcw.js → desktop-pet-narrative-B7I1II0Z.js} +1 -1
  50. package/dist/gateway/static/root/assets/{desktop-pet-settings-CVs5timB.js → desktop-pet-settings-BA6u5Md-.js} +1 -1
  51. package/dist/gateway/static/root/assets/{dev-view-store-rdp0Stsh.js → dev-view-store-DnqJb6NS.js} +1 -1
  52. package/dist/gateway/static/root/assets/{device-pairing-wizard-ZX1oup6S.js → device-pairing-wizard-Ba3d606o.js} +1 -1
  53. package/dist/gateway/static/root/assets/{directory-picker-path-field-BN57kiUt.js → directory-picker-path-field-lcps-hsZ.js} +1 -1
  54. package/dist/gateway/static/root/assets/{discussion-annotation-sync-BG-sbtYu.js → discussion-annotation-sync-BmvCn1Xn.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-debug-page-DuuOhNRp.js → extension-debug-page-DED5LHxs.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-iframe-host-DzzKhhvD.js → extension-iframe-host-B0oIml1X.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-marketplace-api-5BBPFsmU.js → extension-marketplace-api-BrLsjJLA.js} +1 -1
  58. package/dist/gateway/static/root/assets/{extension-page-DDmRVcIm.js → extension-page-Ber9sWpz.js} +1 -1
  59. package/dist/gateway/static/root/assets/{extension-provider-CFzHYMV0.js → extension-provider-dpOtxmuc.js} +1 -1
  60. package/dist/gateway/static/root/assets/{extension-settings-page-DGAD52bm.js → extension-settings-page-BSG-nJ_7.js} +1 -1
  61. package/dist/gateway/static/root/assets/{file-preview-surface-DgG6OJyj.js → file-preview-surface-B3nLuoQO.js} +1 -1
  62. package/dist/gateway/static/root/assets/{gateway-config-swr-D0yocd87.js → gateway-config-swr-CtZy1Qw0.js} +1 -1
  63. package/dist/gateway/static/root/assets/{gateway-realtime-DpNC3Y7U.js → gateway-realtime-CG65gHUY.js} +1 -1
  64. package/dist/gateway/static/root/assets/gateway-realtime-store-Vl3uKAHV.js +1 -0
  65. package/dist/gateway/static/root/assets/{gateway-restart-C_8Z4DRU.js → gateway-restart-Cr5xtfZU.js} +1 -1
  66. package/dist/gateway/static/root/assets/{gateway-settings-CGlpz-Ft.js → gateway-settings-BwMwdwXh.js} +1 -1
  67. package/dist/gateway/static/root/assets/{gateway-startup-retry-BPSM56sw.js → gateway-startup-retry-DztAHGru.js} +1 -1
  68. package/dist/gateway/static/root/assets/{global-defaults-api-BFsm77dC.js → global-defaults-api-yHc-ZfjU.js} +1 -1
  69. package/dist/gateway/static/root/assets/home-page-DGsDrtlA.js +3 -0
  70. package/dist/gateway/static/root/assets/{image-generation-api-wJi7zpES.js → image-generation-api-D5eo_stq.js} +1 -1
  71. package/dist/gateway/static/root/assets/{imports-page-iddP3PVx.js → imports-page-CLbpRE5i.js} +1 -1
  72. package/dist/gateway/static/root/assets/index-D1EDrkUo.css +1 -0
  73. package/dist/gateway/static/root/assets/index-Dw5NFmnZ.js +11 -0
  74. package/dist/gateway/static/root/assets/install-connector-dialog-B-v1FT3P.js +1 -0
  75. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Cxdd0r3Z.js → keyboard-shortcuts-settings-BLBASsCP.js} +1 -1
  76. package/dist/gateway/static/root/assets/linkify-it-BkqEorO0.js +1 -0
  77. package/dist/gateway/static/root/assets/{local-app-workbench-page-jfkZZHHd.js → local-app-workbench-page-u0lVT4rD.js} +1 -1
  78. package/dist/gateway/static/root/assets/{local-apps-page-BwWuY0x2.js → local-apps-page-Db93n4Zy.js} +1 -1
  79. package/dist/gateway/static/root/assets/{local-session-drafts-cTAkoNSf.js → local-session-drafts-C6oPrCYY.js} +1 -1
  80. package/dist/gateway/static/root/assets/{locale-store-DJYUYPdV.js → locale-store-CQcW9_qA.js} +1 -1
  81. package/dist/gateway/static/root/assets/logs-page-Dtoheh2t.js +2 -0
  82. package/dist/gateway/static/root/assets/{management-api-CmBUdfsn.js → management-api-Dh2r5GrQ.js} +1 -1
  83. package/dist/gateway/static/root/assets/{management-settings-CYn1EOVo.js → management-settings-Fj25fafb.js} +1 -1
  84. package/dist/gateway/static/root/assets/{markdown-view-DrcA6Cfr.js → markdown-view-CkihBz06.js} +1 -1
  85. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-C5D5oueS.js → mcp-conversation-setup-page-jh3dwNfg.js} +1 -1
  86. package/dist/gateway/static/root/assets/{media-plugins-CQZ0Jh_x.js → media-plugins-BUapXtQZ.js} +1 -1
  87. package/dist/gateway/static/root/assets/messages-orB1BMgI.js +3 -0
  88. package/dist/gateway/static/root/assets/{model-selector-CbKl8YPf.js → model-selector-DYxgKUju.js} +1 -1
  89. package/dist/gateway/static/root/assets/{models-hub-cache-CwxnL3rY.js → models-hub-cache-D2cdb8nZ.js} +1 -1
  90. package/dist/gateway/static/root/assets/{note-detail-panel-uQO4kymH.js → note-detail-panel-Bw5VDFPV.js} +3 -3
  91. package/dist/gateway/static/root/assets/note-image-lightbox-C6aTUp-c.js +1 -0
  92. package/dist/gateway/static/root/assets/{notes-api-DoCb3QlH.js → notes-api-BhRyWe3S.js} +1 -1
  93. package/dist/gateway/static/root/assets/{notes-page-DOl7cqLg.js → notes-page-BmmeGUUy.js} +1 -1
  94. package/dist/gateway/static/root/assets/{oauth-api-3b_QtYeo.js → oauth-api-D5iBtOid.js} +1 -1
  95. package/dist/gateway/static/root/assets/{oauth-provider-connect-D1JQ4FBf.js → oauth-provider-connect-CmHsHynu.js} +1 -1
  96. package/dist/gateway/static/root/assets/{page-context-capture-button-CVIVl1MQ.js → page-context-capture-button-CQoRZ1b-.js} +1 -1
  97. package/dist/gateway/static/root/assets/{page-context-draft-Ky5J09qv.js → page-context-draft-aApa5ApP.js} +1 -1
  98. package/dist/gateway/static/root/assets/page-header-store-B2Ahfm0W.js +1 -0
  99. package/dist/gateway/static/root/assets/{personal-avatar-Dh4qjZYy.js → personal-avatar-Dp5LHjk3.js} +1 -1
  100. package/dist/gateway/static/root/assets/{personal-page-edoGNvVa.js → personal-page-gdKGnAPi.js} +1 -1
  101. package/dist/gateway/static/root/assets/{personal-settings-panel-BtTwDaw0.js → personal-settings-panel-CtJL6qIN.js} +1 -1
  102. package/dist/gateway/static/root/assets/{phone-dependencies-card-B6rA2lO_.js → phone-dependencies-card-BBk6k0t0.js} +1 -1
  103. package/dist/gateway/static/root/assets/{phone-model-connection-xqaXDOVF.js → phone-model-connection-QJt8SAb7.js} +1 -1
  104. package/dist/gateway/static/root/assets/{phone-model-picker-yuGXKCM9.js → phone-model-picker-CRxUxJNZ.js} +1 -1
  105. package/dist/gateway/static/root/assets/{phone-settings-page-DhjuPpF4.js → phone-settings-page-Df64khPY.js} +1 -1
  106. package/dist/gateway/static/root/assets/{phone-workspace-store-2xQhZsJr.js → phone-workspace-store-DAuPd2ie.js} +1 -1
  107. package/dist/gateway/static/root/assets/{plugin-details-dialog-CIS3SUKM.js → plugin-details-dialog-Bcer4RC3.js} +1 -1
  108. package/dist/gateway/static/root/assets/{preference-select-fields-BAZSKhoi.js → preference-select-fields-DdV7q9Bd.js} +1 -1
  109. package/dist/gateway/static/root/assets/{product-automation-feedback-Bh37tBpR.js → product-automation-feedback-uKndNxpU.js} +1 -1
  110. package/dist/gateway/static/root/assets/{product-open-page-BXcS7lCW.js → product-open-page-A7lyoXVv.js} +1 -1
  111. package/dist/gateway/static/root/assets/{product-preview-content-BNultFGN.js → product-preview-content-BrdvkWOg.js} +1 -1
  112. package/dist/gateway/static/root/assets/product-preview-modal-BxHKejcX.js +2 -0
  113. package/dist/gateway/static/root/assets/project-detail-page-BedOnA0G.js +7 -0
  114. package/dist/gateway/static/root/assets/{project-understanding-CrYVzB8i.js → project-understanding-BVhSoQHu.js} +1 -1
  115. package/dist/gateway/static/root/assets/{projects-page-nEhOaONB.js → projects-page-DSPoyFda.js} +1 -1
  116. package/dist/gateway/static/root/assets/{providers-api-MimHCxo_.js → providers-api-B47s6_9Q.js} +1 -1
  117. package/dist/gateway/static/root/assets/{recording-upload-BUe8jmx8.js → recording-upload-B-IHTsVC.js} +1 -1
  118. package/dist/gateway/static/root/assets/{registry-api-CkrGCW-C.js → registry-api-Bo8YiUE0.js} +1 -1
  119. package/dist/gateway/static/root/assets/{remote-access-hub-QqFEiO0m.js → remote-access-hub-BRf9znLV.js} +1 -1
  120. package/dist/gateway/static/root/assets/{resource-unavailable-CSc5SeHy.js → resource-unavailable-CAljzZx8.js} +1 -1
  121. package/dist/gateway/static/root/assets/route-preload-cpv-TDla.js +2 -0
  122. package/dist/gateway/static/root/assets/{runtime-tools-api-BzLDrYX8.js → runtime-tools-api-C28pB9__.js} +1 -1
  123. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DST1lBFY.js → runtime-tools-settings-panel-XYeadnhL.js} +1 -1
  124. package/dist/gateway/static/root/assets/{service-recommendation-list-DezuXPLs.js → service-recommendation-list-C6ydoBSU.js} +1 -1
  125. package/dist/gateway/static/root/assets/{session-api-QnBTnXGH.js → session-api-D7FWdG43.js} +1 -1
  126. package/dist/gateway/static/root/assets/{session-manager-b2zxVzZI.js → session-manager-7qKSmROh.js} +1 -1
  127. package/dist/gateway/static/root/assets/{sessions-page-uarYA2Xw.js → sessions-page-CyYkCsfy.js} +1 -1
  128. package/dist/gateway/static/root/assets/settings-advanced-gate-B3rOBkm_.js +1 -0
  129. package/dist/gateway/static/root/assets/{settings-advanced-section-Crhl0mQp.js → settings-advanced-section-3HwfHbqz.js} +1 -1
  130. package/dist/gateway/static/root/assets/{settings-mode-store-CrM7SFWJ.js → settings-mode-store-BVvIXZlg.js} +1 -1
  131. package/dist/gateway/static/root/assets/{settings-page-BrogpvEd.js → settings-page-DLmsK1x2.js} +1 -1
  132. package/dist/gateway/static/root/assets/{settings-page-header-DPKy790x.js → settings-page-header-CheboxIM.js} +1 -1
  133. package/dist/gateway/static/root/assets/{settings-page-layout-8kCWtU5m.js → settings-page-layout-CPFMZaLF.js} +1 -1
  134. package/dist/gateway/static/root/assets/{setup-interaction-page-BVnMLwC-.js → setup-interaction-page-BbCzYq9S.js} +1 -1
  135. package/dist/gateway/static/root/assets/{setup-status-panel--Fb7FwVG.js → setup-status-panel-DUNgVqtz.js} +1 -1
  136. package/dist/gateway/static/root/assets/{share-link-dialog-C45dGG9y.js → share-link-dialog-0P9ghttc.js} +1 -1
  137. package/dist/gateway/static/root/assets/{share-preview-page-ConV6wRP.js → share-preview-page-OOKslNfX.js} +1 -1
  138. package/dist/gateway/static/root/assets/{shares-api-BsDhQwd3.js → shares-api-iiw4F-ra.js} +1 -1
  139. package/dist/gateway/static/root/assets/{shares-settings-DJz0p2PL.js → shares-settings-DUB9Ek8Q.js} +1 -1
  140. package/dist/gateway/static/root/assets/skill-api-CLtIjE8K.js +1 -0
  141. package/dist/gateway/static/root/assets/{skill-list-api-DWCkzC6W.js → skill-list-api-DY0rRlUk.js} +1 -1
  142. package/dist/gateway/static/root/assets/{skill-reload-api-C2jfZi01.js → skill-reload-api-DJC8uWLu.js} +1 -1
  143. package/dist/gateway/static/root/assets/skills-page-CQYf7s9f.js +2 -0
  144. package/dist/gateway/static/root/assets/{system-settings-panel-BiswiIqg.js → system-settings-panel-DdBmyc93.js} +1 -1
  145. package/dist/gateway/static/root/assets/task-detail-page-BskTta5G.js +3 -0
  146. package/dist/gateway/static/root/assets/task-input-card-5BDu71NL.js +1 -0
  147. package/dist/gateway/static/root/assets/{tasks-D_xuHn6V.js → tasks-BTLabOMp.js} +1 -1
  148. package/dist/gateway/static/root/assets/{terminal-panel-store-qS6f2G-H.js → terminal-panel-store-B1EVdx4L.js} +1 -1
  149. package/dist/gateway/static/root/assets/{theme-store-Docer0tD.js → theme-store-BTkYFJOE.js} +1 -1
  150. package/dist/gateway/static/root/assets/time-picker-C1PXAXZF.js +1 -0
  151. package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +2 -0
  152. package/dist/gateway/static/root/assets/{tracing-settings-page-DiXHv8C3.js → tracing-settings-page-h-gbBAtl.js} +1 -1
  153. package/dist/gateway/static/root/assets/{tunnel-api-UYBm3Hqd.js → tunnel-api-BDoegsWD.js} +1 -1
  154. package/dist/gateway/static/root/assets/{understanding-activity-store-CK6cQ0iJ.js → understanding-activity-store-DyFJDqHy.js} +1 -1
  155. package/dist/gateway/static/root/assets/{understanding-refresh-store-DVNqbtHk.js → understanding-refresh-store-C0SRcgyd.js} +1 -1
  156. package/dist/gateway/static/root/assets/{usage-page-DmA7kQI2.js → usage-page-CbJsT3zT.js} +1 -1
  157. package/dist/gateway/static/root/assets/{use-autosave-D1tFBLQO.js → use-autosave-CB2B4NMO.js} +1 -1
  158. package/dist/gateway/static/root/assets/{use-composer-attachments-CwJslPRU.js → use-composer-attachments-DBsGBWDR.js} +1 -1
  159. package/dist/gateway/static/root/assets/{use-file-preview-expanded-CK1OJENF.js → use-file-preview-expanded-RpLp7VdL.js} +3 -3
  160. package/dist/gateway/static/root/assets/{use-personal-profile-CpsJdlEs.js → use-personal-profile-r0OuOlBJ.js} +1 -1
  161. package/dist/gateway/static/root/assets/{use-workspace-tree-CW9hcMwg.js → use-workspace-tree-BGco62Ny.js} +1 -1
  162. package/dist/gateway/static/root/assets/{user-model-page-BlYKXzCa.js → user-model-page-BudrJ73l.js} +1 -1
  163. package/dist/gateway/static/root/assets/{voice-api-key-field-DD9V94Y7.js → voice-api-key-field-C8wd8ijq.js} +1 -1
  164. package/dist/gateway/static/root/assets/{voice-config-api-Cr6IkfV2.js → voice-config-api-yBcUSvvn.js} +1 -1
  165. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-hsEdKDO6.js → voice-input-shortcut-events-TAmJNcsN.js} +1 -1
  166. package/dist/gateway/static/root/assets/{voice-transcribe-api-DKain9tL.js → voice-transcribe-api-By2znMrG.js} +1 -1
  167. package/dist/gateway/static/root/assets/{work-discovery-overlay-yYdAqtrO.js → work-discovery-overlay-DsyYo1p0.js} +1 -1
  168. package/dist/gateway/static/root/assets/{work-discovery-page-8hTykUqr.js → work-discovery-page-BJ9VN5Zd.js} +1 -1
  169. package/dist/gateway/static/root/assets/{working-directory-picker-modal-CXPSsy2J.js → working-directory-picker-modal-CFj-ZOJE.js} +1 -1
  170. package/dist/gateway/static/root/assets/{workspace-api-DNSoGsW8.js → workspace-api-CD2aXy2n.js} +2 -2
  171. package/dist/gateway/static/root/assets/workspace-editor-agent-store-2Lt7rQfw.js +1 -0
  172. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BVYsAXwp.js → workspace-file-preview-dialog-B23lE7H0.js} +1 -1
  173. package/dist/gateway/static/root/assets/{workspace-open-location-menu-DN7E_-eH.js → workspace-open-location-menu-CJUf755Q.js} +1 -1
  174. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-CGs77iKb.js → xopc-cloud-account-card-DN4DdOWZ.js} +1 -1
  175. package/dist/gateway/static/root/index.html +88 -86
  176. package/dist/package.js +1 -1
  177. package/dist/packages/gateway-contract/src/home.js +21 -0
  178. package/dist/packages/gateway-contract/src/task-research-result.js +1 -0
  179. package/dist/packages/gateway-contract/src/tasks.js +10 -2
  180. package/dist/src/agent/agent-manager.d.ts +0 -1
  181. package/dist/src/agent/agent-manager.js +0 -3
  182. package/dist/src/agent/embedded/run-for-session.js +3 -6
  183. package/dist/src/agent/embedded/session-runner.js +1 -1
  184. package/dist/src/agent/mcp/native-mcp.d.ts +2 -0
  185. package/dist/src/agent/mcp/native-mcp.js +5 -0
  186. package/dist/src/agent/mcp/transport.d.ts +2 -1
  187. package/dist/src/agent/mcp/transport.js +21 -6
  188. package/dist/src/agent/orchestration/turn-recovery.js +7 -3
  189. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.d.ts +1 -0
  190. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +56 -30
  191. package/dist/src/agent/skills/marketplace/search.js +2 -2
  192. package/dist/src/agent/tools/task-result-tool.js +6 -1
  193. package/dist/src/channels/pairing/paths.d.ts +1 -1
  194. package/dist/src/channels/pairing/paths.js +1 -1
  195. package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
  196. package/dist/src/config/paths.d.ts +1 -1
  197. package/dist/src/config/paths.js +1 -1
  198. package/dist/src/extensions/agent-plugins/refresh-runtime-access.d.ts +7 -2
  199. package/dist/src/extensions/agent-plugins/refresh-runtime-access.js +36 -25
  200. package/dist/src/extensions/agent-plugins/setup.d.ts +1 -1
  201. package/dist/src/extensions/agent-plugins/setup.js +2 -2
  202. package/dist/src/extensions/loader.d.ts +0 -1
  203. package/dist/src/extensions/loader.js +3 -38
  204. package/dist/src/extensions/typed-event-bus.d.ts +0 -1
  205. package/dist/src/extensions/typed-event-bus.js +0 -1
  206. package/dist/src/gateway/hono/routes/tasks.js +49 -22
  207. package/dist/src/personal-agent/reply-composer.js +6 -2
  208. package/dist/src/storage/sqlite/schema.d.ts +2 -2
  209. package/dist/src/storage/sqlite/schema.js +7 -7
  210. package/dist/src/storage/sqlite/schema.sql +1 -1
  211. package/dist/src/storage/sqlite/upgrades/271_task_criterion_unverified.sql +21 -0
  212. package/dist/src/tasks/attention-governor.d.ts +2 -0
  213. package/dist/src/tasks/attention-governor.js +8 -3
  214. package/dist/src/tasks/home-query-service.d.ts +3 -0
  215. package/dist/src/tasks/home-query-service.js +187 -41
  216. package/dist/src/tasks/index.js +2 -2
  217. package/dist/src/tasks/task-application-service.js +2 -2
  218. package/dist/src/tasks/task-context-assembler.js +1 -1
  219. package/dist/src/tasks/task-contract-planner.js +6 -4
  220. package/dist/src/tasks/task-criterion-review-repository.d.ts +3 -12
  221. package/dist/src/tasks/task-criterion-review-repository.js +3 -2
  222. package/dist/src/tasks/task-final-reply.d.ts +2 -0
  223. package/dist/src/tasks/task-final-reply.js +11 -0
  224. package/dist/src/tasks/task-repository.d.ts +1 -0
  225. package/dist/src/tasks/task-repository.js +1 -0
  226. package/dist/src/tasks/task-research-repair.d.ts +1 -0
  227. package/dist/src/tasks/task-research-repair.js +4 -1
  228. package/dist/src/tasks/task-research-result.d.ts +1 -0
  229. package/dist/src/tasks/task-research-result.js +35 -1
  230. package/dist/src/tasks/task-result-delivery-repository.js +10 -5
  231. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  232. package/dist/src/tasks/task-run-coordinator.js +7 -5
  233. package/dist/src/voice/tts/index.js +1 -1
  234. package/dist/src/voice/tts/speak-core.js +1 -1
  235. package/package.json +2 -3
  236. package/dist/extensions/feishu/src/auth/paths.d.ts +0 -2
  237. package/dist/extensions/feishu/src/auth/paths.js +0 -16
  238. package/dist/extensions/feishu/src/state/thread-bindings.d.ts +0 -19
  239. package/dist/extensions/feishu/src/state/thread-bindings.js +0 -44
  240. package/dist/extensions/feishu/src/subagent-hooks.d.ts +0 -12
  241. package/dist/extensions/feishu/src/subagent-hooks.js +0 -50
  242. package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.d.ts +0 -11
  243. package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.js +0 -93
  244. package/dist/extensions/feishu/src/tools/docx/docx-color-text.d.ts +0 -15
  245. package/dist/extensions/feishu/src/tools/docx/docx-color-text.js +0 -73
  246. package/dist/extensions/feishu/src/tools/docx/docx-table-ops.d.ts +0 -20
  247. package/dist/extensions/feishu/src/tools/docx/docx-table-ops.js +0 -171
  248. package/dist/extensions/feishu/src/tools/docx/docx-types.d.ts +0 -34
  249. package/dist/extensions/feishu/src/tools/docx/docx-types.js +0 -1
  250. package/dist/gateway/static/root/assets/automation-task-card-D4Ojt-Q4.js +0 -3
  251. package/dist/gateway/static/root/assets/automations-workspace-ND9J7xtt.js +0 -9
  252. package/dist/gateway/static/root/assets/capabilities-C_mZ4wUq.js +0 -1
  253. package/dist/gateway/static/root/assets/chat-page-U5hc4rIa.js +0 -72
  254. package/dist/gateway/static/root/assets/constants-CsVXarqA.js +0 -1
  255. package/dist/gateway/static/root/assets/date-picker-BCxU-AEv.js +0 -1
  256. package/dist/gateway/static/root/assets/gateway-realtime-store-BQELP9Or.js +0 -1
  257. package/dist/gateway/static/root/assets/home-page-UXS36f7M.js +0 -2
  258. package/dist/gateway/static/root/assets/index-D0p4v0SG.js +0 -11
  259. package/dist/gateway/static/root/assets/index-Uxz0OdzD.css +0 -1
  260. package/dist/gateway/static/root/assets/install-connector-dialog-DSIVSJRz.js +0 -1
  261. package/dist/gateway/static/root/assets/logs-page-CuxC8O1E.js +0 -2
  262. package/dist/gateway/static/root/assets/messages-DziUGfxF.js +0 -3
  263. package/dist/gateway/static/root/assets/note-image-lightbox-CaO_VuWl.js +0 -1
  264. package/dist/gateway/static/root/assets/page-header-store-Jt0XBQxm.js +0 -1
  265. package/dist/gateway/static/root/assets/product-preview-modal-BTlUoG48.js +0 -2
  266. package/dist/gateway/static/root/assets/project-detail-page-DNvQzRnU.js +0 -7
  267. package/dist/gateway/static/root/assets/route-preload-BTPpGwjV.js +0 -2
  268. package/dist/gateway/static/root/assets/settings-advanced-gate-Bq6eQ3It.js +0 -1
  269. package/dist/gateway/static/root/assets/skill-api-BrM5Ctxg.js +0 -1
  270. package/dist/gateway/static/root/assets/skills-page-DbAc1Y4C.js +0 -2
  271. package/dist/gateway/static/root/assets/task-detail-page-R0_AM-IE.js +0 -3
  272. package/dist/gateway/static/root/assets/task-result-evidence-C1AEUu9S.js +0 -1
  273. package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +0 -1
  274. package/dist/gateway/static/root/assets/workspace-editor-agent-store-ENv6zDBq.js +0 -1
@@ -66,4 +66,5 @@ export interface ClawHubSearchResponse {
66
66
  }
67
67
  /** Public federated search used by the read-only marketplace discovery tool. */
68
68
  export declare function searchClawHubFederatedSkills(query: string, limit?: number): Promise<ClawHubSearchResponse>;
69
+ export declare function clawHubSearchReference(item: ClawHubSearchResultItem): string;
69
70
  export declare const clawHubMarketplaceAdapter: SkillsMarketplaceAdapter;
@@ -57,23 +57,41 @@ async function searchClawHubSkills(query, limit) {
57
57
  async function searchClawHubFederatedSkills(query, limit) {
58
58
  return cachedSearchClawHubSkills(query, limit);
59
59
  }
60
- async function getClawHubSkillDetail(slug) {
61
- const res = await clawHubFetch(`/api/v1/skills/${encodeURIComponent(slug.trim())}`);
62
- assertOk(res, `skill detail [${slug}]`);
60
+ function parseClawHubReference(reference) {
61
+ const parts = reference.trim().replace(/^@/, "").split("/");
62
+ const slug = parts.at(-1) ?? "";
63
+ const ownerHandle = parts.length === 2 ? parts[0] : void 0;
64
+ if (parts.length > 2 || !isValidSkillId(slug) || ownerHandle !== void 0 && !isValidSkillId(ownerHandle)) throw new Error(`Invalid ClawHub skill reference: ${reference}`);
65
+ return {
66
+ slug,
67
+ ownerHandle
68
+ };
69
+ }
70
+ function clawHubReference(slug, ownerHandle) {
71
+ return ownerHandle ? `${ownerHandle}/${slug}` : slug;
72
+ }
73
+ function clawHubSkillPath(reference, suffix = "", params = new URLSearchParams()) {
74
+ const { slug, ownerHandle } = parseClawHubReference(reference);
75
+ if (ownerHandle) params.set("ownerHandle", ownerHandle);
76
+ return `/api/v1/skills/${encodeURIComponent(slug)}${suffix}${params.size ? `?${params}` : ""}`;
77
+ }
78
+ async function getClawHubSkillDetail(reference) {
79
+ const res = await clawHubFetch(clawHubSkillPath(reference));
80
+ if (res.status === 409) throw new Error(`Ambiguous ClawHub skill "${reference}". Select a publisher or use owner/slug.`);
81
+ assertOk(res, `skill detail [${reference}]`);
63
82
  return await res.json();
64
83
  }
65
- async function getClawHubVersionDetail(slug, version) {
66
- const res = await clawHubFetch(`/api/v1/skills/${encodeURIComponent(slug.trim())}/versions/${encodeURIComponent(version.trim())}`);
67
- assertOk(res, `version detail [${slug}@${version}]`);
84
+ async function getClawHubVersionDetail(reference, version) {
85
+ const res = await clawHubFetch(clawHubSkillPath(reference, `/versions/${encodeURIComponent(version.trim())}`));
86
+ assertOk(res, `version detail [${reference}@${version}]`);
68
87
  return await res.json();
69
88
  }
70
- async function getClawHubSkillFileText(slug, filePath, version) {
71
- const enc = encodeURIComponent(slug.trim());
89
+ async function getClawHubSkillFileText(reference, filePath, version) {
72
90
  const sp = new URLSearchParams({ path: filePath });
73
91
  if (version?.trim()) sp.set("version", version.trim());
74
- const url = `${resolveClawHubBaseUrl()}/api/v1/skills/${enc}/file?${sp.toString()}`;
92
+ const url = `${resolveClawHubBaseUrl()}${clawHubSkillPath(reference, "/file", sp)}`;
75
93
  const res = await fetch(url, { headers: { Accept: "text/markdown,text/plain,*/*" } });
76
- if (!res.ok) throw new Error(`ClawHub file fetch [${slug}/${filePath}] failed (${res.status})`);
94
+ if (!res.ok) throw new Error(`ClawHub file fetch [${reference}/${filePath}] failed (${res.status})`);
77
95
  const text = await res.text();
78
96
  return text.length > MAX_CLAWHUB_FILE_BYTES ? text.slice(0, MAX_CLAWHUB_FILE_BYTES) : text;
79
97
  }
@@ -84,10 +102,7 @@ function versionFromDownloadDisposition(value, slug) {
84
102
  return filename.slice(prefix.length, -4).trim() || void 0;
85
103
  }
86
104
  async function downloadClawHubSkillZip(reference, version) {
87
- const parts = reference.trim().replace(/^@/, "").split("/").filter(Boolean);
88
- const ownerHandle = parts.length === 2 ? parts[0] : void 0;
89
- const slug = parts.length === 2 ? parts[1] : parts.length === 1 ? parts[0] : "";
90
- if (!isValidSkillId(slug) || ownerHandle && !isValidSkillId(ownerHandle)) throw new Error(`Invalid ClawHub install reference: ${reference}`);
105
+ const { slug, ownerHandle } = parseClawHubReference(reference);
91
106
  const sp = new URLSearchParams({ slug });
92
107
  if (ownerHandle) sp.set("ownerHandle", ownerHandle);
93
108
  if (version?.trim()) sp.set("version", version.trim());
@@ -95,12 +110,12 @@ async function downloadClawHubSkillZip(reference, version) {
95
110
  const res = await fetch(url, { redirect: "follow" });
96
111
  if (!res.ok) {
97
112
  const body = await res.text().catch(() => "");
98
- throw new Error(`ClawHub download [${slug}] failed (${res.status}): ${body.slice(0, 200)}`);
113
+ throw new Error(`ClawHub download [${reference}] failed (${res.status}): ${body.slice(0, 200)}`);
99
114
  }
100
115
  const contentType = res.headers.get("content-type") ?? "";
101
- if (!contentType.includes("zip") && !contentType.includes("octet-stream")) throw new Error(`ClawHub download [${slug}] unexpected content-type: ${contentType}`);
116
+ if (!contentType.includes("zip") && !contentType.includes("octet-stream")) throw new Error(`ClawHub download [${reference}] unexpected content-type: ${contentType}`);
102
117
  const arrayBuf = await res.arrayBuffer();
103
- if (arrayBuf.byteLength > MAX_SKILL_ZIP_BYTES) throw new Error(`ClawHub download [${slug}] exceeds size limit (${arrayBuf.byteLength} > ${MAX_SKILL_ZIP_BYTES})`);
118
+ if (arrayBuf.byteLength > MAX_SKILL_ZIP_BYTES) throw new Error(`ClawHub download [${reference}] exceeds size limit (${arrayBuf.byteLength} > ${MAX_SKILL_ZIP_BYTES})`);
104
119
  const resolvedVersion = version?.trim() || versionFromDownloadDisposition(res.headers.get("content-disposition"), slug) || "latest";
105
120
  return {
106
121
  buffer: Buffer.from(arrayBuf),
@@ -191,13 +206,13 @@ async function cachedGetClawHubSkillDetail(slug) {
191
206
  }
192
207
  function convertListItemToPackageItem(item) {
193
208
  return {
194
- id: item.slug,
209
+ id: clawHubReference(item.slug, item.ownerHandle),
195
210
  name: item.displayName || item.slug,
196
211
  type: "skill",
197
212
  description: item.summary || "",
198
213
  downloads: item.stats.downloads,
199
214
  author: {
200
- username: "clawhub",
215
+ username: item.ownerHandle || "clawhub",
201
216
  avatarUrl: null
202
217
  },
203
218
  latestVersion: item.latestVersion?.version ?? item.tags.latest ?? "1.0.0",
@@ -207,15 +222,24 @@ function convertListItemToPackageItem(item) {
207
222
  sourceLabel: "ClawHub"
208
223
  };
209
224
  }
225
+ function clawHubSearchOwner(item) {
226
+ return item.ownerHandle || item.publisher?.handle || item.owner?.handle || void 0;
227
+ }
228
+ function clawHubSearchReference(item) {
229
+ const [owner, slug, ...rest] = (item.install?.reference?.trim().replace(/^@/, ""))?.split("/") ?? [];
230
+ if (slug === item.slug && rest.length === 0 && owner && isValidSkillId(owner)) return clawHubReference(slug, owner);
231
+ return clawHubReference(item.slug, clawHubSearchOwner(item));
232
+ }
210
233
  function convertSearchResultToPackageItem(item, enrichment) {
234
+ const reference = clawHubSearchReference(item);
211
235
  return {
212
- id: item.slug,
236
+ id: reference,
213
237
  name: item.displayName || item.slug,
214
238
  type: "skill",
215
239
  description: item.summary || "",
216
240
  downloads: item.downloads ?? item.native?.skill?.stats?.downloads ?? enrichment?.stats.downloads ?? 0,
217
241
  author: {
218
- username: item.publisher?.handle ?? item.sourceIdentity?.owner ?? item.owner?.handle ?? item.ownerHandle ?? "clawhub",
242
+ username: reference === item.slug ? "clawhub" : reference.slice(0, reference.indexOf("/")),
219
243
  avatarUrl: item.publisher?.avatarUrl ?? item.owner?.image ?? null
220
244
  },
221
245
  latestVersion: item.version ?? enrichment?.latestVersion?.version ?? "1.0.0",
@@ -263,9 +287,9 @@ const clawHubMarketplaceAdapter = {
263
287
  if (params.q?.trim()) {
264
288
  const [searchResponse, listSettled] = await Promise.allSettled([cachedSearchClawHubSkills(params.q.trim(), LIST_BATCH_SIZE), cachedListClawHubSkills({ limit: LIST_BATCH_SIZE })]);
265
289
  if (searchResponse.status === "rejected") throw searchResponse.reason;
266
- const enrichmentBySlug = /* @__PURE__ */ new Map();
267
- if (listSettled.status === "fulfilled") for (const it of listSettled.value.items) enrichmentBySlug.set(it.slug, it);
268
- let rows = searchResponse.value.results.filter((r) => !r.source || r.source === "clawhub").map((r) => convertSearchResultToPackageItem(r, enrichmentBySlug.get(r.slug)));
290
+ const enrichmentByReference = /* @__PURE__ */ new Map();
291
+ if (listSettled.status === "fulfilled") for (const item of listSettled.value.items) enrichmentByReference.set(clawHubReference(item.slug, item.ownerHandle), item);
292
+ let rows = searchResponse.value.results.filter((r) => !r.source || r.source === "clawhub").map((r) => convertSearchResultToPackageItem(r, enrichmentByReference.get(clawHubSearchReference(r))));
269
293
  rows = sortClawHubSearchRows(rows, params.sort);
270
294
  const total = rows.length;
271
295
  const start = (page - 1) * pageSize;
@@ -300,12 +324,14 @@ const clawHubMarketplaceAdapter = {
300
324
  async getPackageDetail(_config, packageName) {
301
325
  const detail = await cachedGetClawHubSkillDetail(packageName);
302
326
  const slug = detail.skill.slug;
327
+ const ownerHandle = parseClawHubReference(packageName).ownerHandle || detail.owner?.handle;
328
+ const reference = clawHubReference(slug, ownerHandle);
303
329
  const version = detail.latestVersion.version;
304
330
  let readme = null;
305
331
  try {
306
- const docPath = pickClawHubDocFilePath((await getClawHubVersionDetail(slug, version)).version.files);
332
+ const docPath = pickClawHubDocFilePath((await getClawHubVersionDetail(reference, version)).version.files);
307
333
  if (docPath) {
308
- const trimmed = (await getClawHubSkillFileText(slug, docPath, version)).trim();
334
+ const trimmed = (await getClawHubSkillFileText(reference, docPath, version)).trim();
309
335
  if (trimmed) readme = trimmed;
310
336
  }
311
337
  } catch {}
@@ -318,7 +344,7 @@ const clawHubMarketplaceAdapter = {
318
344
  description
319
345
  });
320
346
  return {
321
- id: slug,
347
+ id: reference,
322
348
  name: slug,
323
349
  type: "skill",
324
350
  description,
@@ -326,8 +352,8 @@ const clawHubMarketplaceAdapter = {
326
352
  skillDocPreview,
327
353
  downloads: detail.skill.stats.downloads,
328
354
  author: {
329
- username: detail.owner.handle,
330
- avatarUrl: detail.owner.image
355
+ username: ownerHandle ?? "clawhub",
356
+ avatarUrl: detail.owner?.image ?? null
331
357
  },
332
358
  latestVersion: {
333
359
  version: detail.latestVersion.version,
@@ -351,4 +377,4 @@ registerMarketplaceAdapter({
351
377
  displayName: "ClawHub"
352
378
  });
353
379
  //#endregion
354
- export { clawHubMarketplaceAdapter, searchClawHubFederatedSkills };
380
+ export { clawHubMarketplaceAdapter, clawHubSearchReference, searchClawHubFederatedSkills };
@@ -1,4 +1,4 @@
1
- import { searchClawHubFederatedSkills } from "./adapters/clawhub/adapter.js";
1
+ import { clawHubSearchReference, searchClawHubFederatedSkills } from "./adapters/clawhub/adapter.js";
2
2
  import { listMarketplacePackages } from "../skills-marketplace.js";
3
3
  //#region src/agent/skills/marketplace/search.ts
4
4
  const SKILL_MARKETPLACE_SEARCH_SOURCES = [
@@ -74,7 +74,7 @@ function valueScore(query, result) {
74
74
  function fromClawHub(item) {
75
75
  const source = item.source === "skills-sh" ? "skills-sh" : "clawhub";
76
76
  const owner = item.publisher?.handle ?? item.sourceIdentity?.owner ?? item.owner?.handle ?? item.ownerHandle ?? source;
77
- const reference = item.install?.reference ?? (source === "clawhub" && owner !== "clawhub" ? `${owner}/${item.slug}` : item.slug);
77
+ const reference = source === "clawhub" ? clawHubSearchReference(item) : item.install?.reference ?? item.slug;
78
78
  return {
79
79
  id: item.id ?? `${source}:${reference}`,
80
80
  provider: "clawhub",
@@ -6,6 +6,11 @@ const id = Type.String({
6
6
  maxLength: 120
7
7
  });
8
8
  const schema = Type.Object({
9
+ finalText: Type.Optional(Type.String({
10
+ minLength: 1,
11
+ maxLength: 16e3,
12
+ description: "Exact final chat reply, including any required limitations. The host reviews and delivers this text without rewriting it. Supply it when the chat reply itself is a deliverable. Omit for connected-app results saved with personal_request_result."
13
+ })),
9
14
  finalArtifactIds: Type.Optional(Type.Array(Type.String({ minLength: 1 }), {
10
15
  maxItems: 50,
11
16
  uniqueItems: true
@@ -62,7 +67,7 @@ function createTaskResultTool(getConversationId) {
62
67
  name: "publish_task_result",
63
68
  label: "Publish research conclusions",
64
69
  parameters: schema,
65
- 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. Your planned final reply is not evidence and should not become a claim about future delivery. 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/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.",
66
71
  supportsParallel: false,
67
72
  mutationScope: "none",
68
73
  idempotent: false,
@@ -1,6 +1,6 @@
1
1
  import type { StandardPairingChannel } from './pairing-channel.js';
2
2
  export declare function resolveDefaultCredentialsDir(env?: NodeJS.ProcessEnv): string;
3
- /** Same layout as `extensions/feishu` `resolveFeishuFrameworkAllowFromPath` for `feishu`. */
3
+ /** Resolve the persisted allowlist path for a channel account. */
4
4
  export declare function resolveStandardAllowFromPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
5
5
  export declare function resolveStandardPairingPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
6
6
  /** Weixin stores under `~/.xopc/weixin/credentials/` (matches `extensions/weixin` accounts helper). */
@@ -10,7 +10,7 @@ function resolveDefaultCredentialsDir(env = process.env) {
10
10
  function safeAccountKey(accountId) {
11
11
  return accountId.trim().toLowerCase().replace(/[\\/:*?"<>|]/g, "_").replace(/\.\./g, "_");
12
12
  }
13
- /** Same layout as `extensions/feishu` `resolveFeishuFrameworkAllowFromPath` for `feishu`. */
13
+ /** Resolve the persisted allowlist path for a channel account. */
14
14
  function resolveStandardAllowFromPath(channel, accountId, env = process.env) {
15
15
  const base = `xopc-${channel}`.replace(/[\\/:*?"<>|]/g, "_");
16
16
  const safe = safeAccountKey(accountId);
@@ -31,7 +31,7 @@ async function checkDatabaseSchema(ctx) {
31
31
  id: "database-schema",
32
32
  label: "Database schema",
33
33
  status: "pass",
34
- message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release v270).`,
34
+ message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release v271).`,
35
35
  hints: []
36
36
  };
37
37
  }
@@ -182,7 +182,7 @@ export declare function resolveBundledExtensionsDir(): string | null;
182
182
  */
183
183
  export declare function resolveBundledSkillsDir(): string | null;
184
184
  /**
185
- * Path to extension-sdk entry (for jiti / extension loader aliases).
185
+ * Resolve the extension SDK source entry path.
186
186
  */
187
187
  export declare function resolveExtensionSdkPath(): string;
188
188
  export { existsSync };
@@ -273,7 +273,7 @@ function resolveBundledSkillsDir() {
273
273
  }
274
274
  }
275
275
  /**
276
- * Path to extension-sdk entry (for jiti / extension loader aliases).
276
+ * Resolve the extension SDK source entry path.
277
277
  */
278
278
  function resolveExtensionSdkPath() {
279
279
  try {
@@ -1,3 +1,8 @@
1
1
  import type { Config } from '../../config/schema.js';
2
- /** Check provider-defined credentials before constructing a new turn's Skill index and MCP config. */
3
- export declare function refreshPluginRuntimeAccess(config: Config, workspace: string, agentId?: string): Promise<boolean>;
2
+ export type PluginMcpOrigin = {
3
+ id: string;
4
+ revision: string;
5
+ serverName: string;
6
+ };
7
+ export declare function schedulePluginRuntimeAccessRefresh(config: Config, workspace: string, agentId?: string): void;
8
+ export declare function assertPluginMcpCallAccess(config: Config, workspace: string, origin: PluginMcpOrigin): Promise<void>;
@@ -7,30 +7,41 @@ import { PluginSetupService } from "./setup.js";
7
7
  //#region src/extensions/agent-plugins/refresh-runtime-access.ts
8
8
  init_logger();
9
9
  const log = createLogger("PluginRuntimeAccess");
10
- /** Check provider-defined credentials before constructing a new turn's Skill index and MCP config. */
11
- async function refreshPluginRuntimeAccess(config, workspace, agentId) {
12
- const store = new AgentPluginStore(), service = new PluginSetupService(store);
13
- const signature = () => JSON.stringify(store.active(agentId, workspace).map((plugin) => {
14
- const access = resolvePluginCapabilityAccess(plugin, store);
15
- return [
16
- plugin.id,
17
- plugin.skills.filter((s) => access.skill(s.name)).map((s) => s.name),
18
- Object.keys(plugin.servers).filter(access.server)
19
- ];
20
- }));
21
- const before = signature();
22
- for (const plugin of store.active(agentId, workspace)) {
23
- if (!pluginAuthorizations(plugin.manifest).length && !Object.values(plugin.layout?.userConfig ?? {}).some((field) => field.sensitive) && Object.values(plugin.servers).every((server) => server.type === "stdio" || server.connectionAuth?.mode === "none")) continue;
24
- try {
25
- await service.refreshRuntime(plugin.id, config, workspace);
26
- } catch (err) {
27
- log.warn({
28
- err,
29
- pluginId: plugin.id
30
- }, "Could not refresh plugin authorization state");
31
- }
32
- }
33
- return before !== signature();
10
+ const refreshIntervalMs = 6e4;
11
+ const refreshes = /* @__PURE__ */ new Map();
12
+ function refreshPlugin(config, store, plugin, workspace) {
13
+ if (!pluginAuthorizations(plugin.manifest).length && !Object.values(plugin.layout?.userConfig ?? {}).some((field) => field.sensitive) && Object.values(plugin.servers).every((server) => server.type === "stdio" || server.connectionAuth?.mode === "none")) return Promise.resolve();
14
+ const key = JSON.stringify([plugin.id, plugin.receipt.revision]);
15
+ const current = refreshes.get(key);
16
+ if (current) return current;
17
+ const refresh = new PluginSetupService(store).refreshRuntime(plugin.id, config, workspace).finally(() => {
18
+ setTimeout(() => refreshes.delete(key), refreshIntervalMs).unref();
19
+ });
20
+ refreshes.set(key, refresh);
21
+ return refresh;
22
+ }
23
+ function schedulePluginRuntimeAccessRefresh(config, workspace, agentId) {
24
+ setImmediate(() => {
25
+ const store = new AgentPluginStore();
26
+ Promise.resolve().then(() => Promise.all(store.active(agentId, workspace).map(async (plugin) => {
27
+ try {
28
+ await refreshPlugin(config, store, plugin, workspace);
29
+ } catch (err) {
30
+ log.warn({
31
+ err,
32
+ pluginId: plugin.id
33
+ }, "Could not refresh plugin authorization state");
34
+ }
35
+ }))).catch((err) => log.warn({ err }, "Could not list plugins for authorization refresh"));
36
+ }).unref();
37
+ }
38
+ async function assertPluginMcpCallAccess(config, workspace, origin) {
39
+ const store = new AgentPluginStore();
40
+ const allowedPlugin = () => store.active(void 0, workspace).find((plugin) => plugin.id === origin.id && plugin.receipt.revision === origin.revision && resolvePluginCapabilityAccess(plugin, store).server(origin.serverName));
41
+ const plugin = allowedPlugin();
42
+ if (!plugin) throw new Error("Plugin tool authorization is unavailable. Check the plugin connection.");
43
+ await refreshPlugin(config, store, plugin, workspace);
44
+ if (!allowedPlugin()) throw new Error("Plugin tool authorization changed. Check the plugin connection.");
34
45
  }
35
46
  //#endregion
36
- export { refreshPluginRuntimeAccess };
47
+ export { assertPluginMcpCallAccess, schedulePluginRuntimeAccessRefresh };
@@ -119,7 +119,7 @@ export declare class PluginSetupService {
119
119
  id: string;
120
120
  name: string;
121
121
  }>>>;
122
- authorization(id: string, owner: string, server: string, config: Config): Promise<import("../../agent/mcp/connection-setup.js").McpAuthorization | import("./cli-authorization.js").PluginCliAuthorization>;
122
+ authorization(id: string, owner: string, server: string, config: Config): Promise<import("./cli-authorization.js").PluginCliAuthorization | import("../../agent/mcp/connection-setup.js").McpAuthorization>;
123
123
  redirect(id: string, owner: string, server: string, url: string, config: Config): boolean;
124
124
  private config;
125
125
  startPrepare(id: string, owner: string, revision: number, config: Config, workspace: string, idempotencyKey?: string): PluginSetupJob;
@@ -443,7 +443,7 @@ var PluginSetupService = class {
443
443
  job.state = "running";
444
444
  job.resources = "running";
445
445
  delete job.error;
446
- this.write(job);
446
+ if (!refreshOnly) this.write(job);
447
447
  try {
448
448
  if (!refreshOnly) await preparePluginResources(this.store, plugin, controller.signal);
449
449
  job.resources = "ready";
@@ -488,7 +488,7 @@ var PluginSetupService = class {
488
488
  const persisted = this.get(id, owner);
489
489
  if (!persisted || persisted.id !== job.id || persisted.revision !== job.revision || persisted.state === "cancelled" || !this.store.receipt(id)) throw new Error("Setup changed");
490
490
  this.config(id, job.packageRevision, config);
491
- this.write(job);
491
+ if (!refreshOnly) this.write(job);
492
492
  }
493
493
  for (const target of job.authorizations) {
494
494
  const declaration = declarations.find((value) => value.id === target.id);
@@ -31,7 +31,6 @@ export declare class ExtensionLoader {
31
31
  private options;
32
32
  private extensionInstances;
33
33
  private startedServiceIds;
34
- private jiti;
35
34
  private _appConfig?;
36
35
  private _runtimeContext?;
37
36
  private securityConfig;
@@ -2,7 +2,7 @@ import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
2
2
  import { createLogger, createServiceLogger } from "../utils/logger/index.js";
3
3
  import { init_logger } from "../utils/logger.js";
4
4
  import { init_agent_scope, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
5
- import { init_paths, resolveBundledExtensionsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveWorkspaceExtensionsDir } from "../config/paths.js";
5
+ import { init_paths, resolveBundledExtensionsDir, resolveExtensionsDir, resolveWorkspaceExtensionsDir } from "../config/paths.js";
6
6
  import { getProviderRegistry, init_plugin_registry } from "../providers/plugin-registry.js";
7
7
  import { normalizeExtensionManifest } from "./normalize-manifest.js";
8
8
  import { areExtensionsGloballyDisabled, discoverExtensionsFromDisk } from "./discover-extensions.js";
@@ -19,10 +19,9 @@ import { EXTENSION_API_VERSION, EXTENSION_UI_API_VERSION, checkExtensionApiCompa
19
19
  import { DEFAULT_SECURITY_CONFIG, checkExtensionDirSafety, checkExtensionPathSafety, isExtensionAllowed, logSecurityIssue, provenanceTracker } from "./security.js";
20
20
  import { getSlotRegistry } from "./slots.js";
21
21
  import { getExtensionCache, getExtensionDiagnostics } from "./diagnostics.js";
22
- import { fileURLToPath, pathToFileURL } from "node:url";
23
- import { dirname, isAbsolute, join } from "path";
22
+ import { pathToFileURL } from "node:url";
23
+ import { isAbsolute, join } from "path";
24
24
  import { existsSync, readFileSync } from "fs";
25
- import { createJiti } from "jiti";
26
25
  //#region src/extensions/loader.ts
27
26
  /**
28
27
  * Extension Loader and Registry
@@ -57,7 +56,6 @@ var ExtensionLoader = class {
57
56
  options;
58
57
  extensionInstances = /* @__PURE__ */ new Map();
59
58
  startedServiceIds = /* @__PURE__ */ new Set();
60
- jiti;
61
59
  _appConfig;
62
60
  _runtimeContext;
63
61
  securityConfig;
@@ -83,39 +81,6 @@ var ExtensionLoader = class {
83
81
  this.slotRegistry = getSlotRegistry();
84
82
  this.cache = getExtensionCache();
85
83
  this.diagnostics = getExtensionDiagnostics();
86
- const alias = {};
87
- const sdkPath = resolveExtensionSdkPath();
88
- if (sdkPath) {
89
- const sdkDir = dirname(sdkPath);
90
- const sdkSubpaths = [
91
- "core",
92
- "lazy",
93
- "provider",
94
- "channel",
95
- "hooks",
96
- "tools",
97
- "testing",
98
- "speech",
99
- "media"
100
- ];
101
- const prefix = "@xopcai/xopc/extension-sdk";
102
- alias[prefix] = sdkPath;
103
- for (const subpath of sdkSubpaths) alias[`${prefix}/${subpath}`] = join(sdkDir, `${subpath}.ts`);
104
- }
105
- this.jiti = createJiti(fileURLToPath(import.meta.url), {
106
- interopDefault: true,
107
- extensions: [
108
- ".ts",
109
- ".tsx",
110
- ".mts",
111
- ".cts",
112
- ".js",
113
- ".mjs",
114
- ".cjs",
115
- ".json"
116
- ],
117
- alias
118
- });
119
84
  }
120
85
  /**
121
86
  * Reuse a pre-built metadata snapshot (avoids duplicate filesystem discovery).
@@ -53,7 +53,6 @@ export declare class TypedEventBus<TEvents extends EventMap = EventMap, TRequest
53
53
  private requestHandlers;
54
54
  private pendingRequests;
55
55
  private options;
56
- private requestIdCounter;
57
56
  constructor(options?: TypedEventBusOptions);
58
57
  /**
59
58
  * Subscribe to an event
@@ -41,7 +41,6 @@ var TypedEventBus = class {
41
41
  requestHandlers = /* @__PURE__ */ new Map();
42
42
  pendingRequests = /* @__PURE__ */ new Map();
43
43
  options;
44
- requestIdCounter = 0;
45
44
  constructor(options = {}) {
46
45
  this.options = {
47
46
  requestTimeout: options.requestTimeout ?? 5e3,
@@ -13,6 +13,7 @@ import { TaskCriterionReviewRepository } from "../../../tasks/task-criterion-rev
13
13
  import { TaskContextMutationOutputSchema } from "../../../tasks/capabilities/relations.js";
14
14
  import { TaskDeleteOutputSchema } from "../../../tasks/capabilities/management.js";
15
15
  import { TaskCollaborationRepository } from "../../../tasks/task-collaboration-repository.js";
16
+ import { TaskApplicationService } from "../../../tasks/task-application-service.js";
16
17
  import { TaskMutationOutputSchema } from "../../../tasks/capabilities/write.js";
17
18
  import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
18
19
  import { ProjectOperatingViewService } from "../../../tasks/project-operating-view-service.js";
@@ -157,36 +158,62 @@ function registerTaskRoutes(authenticated, deps) {
157
158
  ok: false,
158
159
  error: "Criterion not found"
159
160
  }, 404);
160
- const review = criterionReviews.set({
161
- task,
162
- expectedVersion: parsed.data.expectedVersion,
163
- criterionIndex: index,
164
- status: parsed.data.status,
165
- note: parsed.data.note,
166
- actor: {
167
- kind: "user",
168
- id: principal.principalId
161
+ const actor = {
162
+ kind: "user",
163
+ id: principal.principalId
164
+ };
165
+ const result = runSqliteWriteTransaction((db) => {
166
+ const completed = parsed.data.status === "passed" && criterionReviews.allPassed(task, index);
167
+ if (completed && (runs.getActiveRoot(task.id) || runs.listActiveWaits(task.id).length > 0)) return { blocked: true };
168
+ const review = criterionReviews.set({
169
+ task,
170
+ expectedVersion: parsed.data.expectedVersion,
171
+ criterionIndex: index,
172
+ status: parsed.data.status,
173
+ note: parsed.data.note,
174
+ actor
175
+ });
176
+ if (!review) return void 0;
177
+ let version = task.version + 1;
178
+ if (completed) {
179
+ const closed = new TaskApplicationService().execute({
180
+ taskId: task.id,
181
+ expectedVersion: version,
182
+ idempotencyKey: `criterion-completion:${task.id}:${version}`,
183
+ actor,
184
+ command: {
185
+ type: "close",
186
+ resolution: "done"
187
+ }
188
+ });
189
+ if (closed.ok === false) throw new Error(`Task completion failed after criterion review: ${closed.reason}`);
190
+ version = closed.model.task.version;
169
191
  }
192
+ enqueueTaskChangedEvent(db, {
193
+ taskId: task.id,
194
+ projectId: task.projectId,
195
+ version,
196
+ changedFields: ["acceptance"],
197
+ actor
198
+ });
199
+ return {
200
+ review,
201
+ version,
202
+ completed
203
+ };
170
204
  });
171
- if (!review) return c.json({
205
+ if (!result) return c.json({
172
206
  ok: false,
173
207
  error: "Task changed; refresh before reviewing"
174
208
  }, 409);
175
- runSqliteWriteTransaction((db) => enqueueTaskChangedEvent(db, {
176
- taskId: task.id,
177
- projectId: task.projectId,
178
- version: task.version + 1,
179
- changedFields: ["acceptance"],
180
- actor: {
181
- kind: "user",
182
- id: principal.principalId
183
- }
184
- }));
209
+ if ("blocked" in result) return c.json({
210
+ ok: false,
211
+ error: "Wait for execution and pending items before completing acceptance"
212
+ }, 409);
185
213
  deps.service.dispatchTaskEvents();
186
214
  return c.json({
187
215
  ok: true,
188
- review,
189
- version: task.version + 1
216
+ ...result
190
217
  });
191
218
  });
192
219
  authenticated.get("/api/tasks/:id/collaboration", async (c) => {
@@ -251,7 +251,8 @@ var PersonalReplyComposer = class {
251
251
  db.prepare("UPDATE task_result_deliveries SET reply_status = 'stale', reply_lease_token = NULL, reply_lease_until = 0 WHERE delivery_id = ?").run(row.delivery_id);
252
252
  continue;
253
253
  }
254
- const text = (packet.delivery.outcome.status === "succeeded" ? "" : packet.delivery.outcome.status === "partial" ? "部分完成 / Partial result.\n\n" : "未完成 / Incomplete result.\n\n") + sanitizePersonalResultFileLinks(packet.preservedText ?? packet.report);
254
+ const prefix = packet.delivery.outcome.status === "succeeded" ? "" : packet.delivery.outcome.status === "partial" ? "部分完成 / Partial result.\n\n" : "未完成 / Incomplete result.\n\n";
255
+ const text = packet.delivery.text && packet.delivery.text === packet.delivery.outcome.research?.finalText ? packet.delivery.text : prefix + sanitizePersonalResultFileLinks(packet.preservedText ?? packet.report);
255
256
  const delivery = TaskResultDeliverySchema.parse({
256
257
  ...packet.delivery,
257
258
  deliveryId: `reply:${packet.delivery.deliveryId}`,
@@ -328,7 +329,10 @@ var PersonalReplyComposer = class {
328
329
  }
329
330
  const transcriptId = readCurrentTranscriptId(db, packet.delivery.conversationId);
330
331
  let text = row.draft_transcript_id === transcriptId && row.context_revision === conversation.revision ? row.text : null;
331
- if (!text) {
332
+ if (packet.delivery.text && packet.delivery.text === packet.delivery.outcome.research?.finalText) {
333
+ text = packet.delivery.text;
334
+ db.prepare("UPDATE task_result_deliveries SET reply_text = ?, reply_draft_transcript_id = ?, reply_context_revision = ?, reply_status = 'ready' WHERE delivery_id = ? AND reply_lease_token = ?").run(text, transcriptId, conversation.revision, row.delivery_id, row.lease_token);
335
+ } else if (!text) {
332
336
  const controller = new AbortController();
333
337
  composingReplies.set(row.delivery_id, controller);
334
338
  const compositionStartedAt = performance.now();
@@ -1,7 +1,7 @@
1
1
  import type { DatabaseSync } from 'node:sqlite';
2
2
  export { SCHEMA_META_SCHEMA_VERSION_KEY, readSchemaVersionForTest, readSchemaVersion, setSchemaVersion, ensureSchemaMetaTable } from './schema-version.js';
3
- export declare const XOPC_DB_SCHEMA_VERSION = 270;
4
- export declare const XOPC_DB_BASELINE_SCHEMA_VERSION = 270;
3
+ export declare const XOPC_DB_SCHEMA_VERSION = 271;
4
+ export declare const XOPC_DB_BASELINE_SCHEMA_VERSION = 271;
5
5
  export { XOPC_DB_MINIMUM_SCHEMA_VERSION } from './schema-upgrade.js';
6
6
  /** Initialize fresh databases directly; upgrade supported installed databases transactionally. */
7
7
  export declare function ensureXopcDatabaseSchema(db: DatabaseSync): void;