@xopcai/xopc 0.0.446 → 0.0.447

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 (224) 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-D_KDDoA1.js} +1 -1
  7. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Dcu4ggpV.js → agent-avatar-dicebear-CGHzO0HR.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agent-avatar-display-CarpM_qc.js → agent-avatar-display-Dm1YHaAt.js} +2 -2
  9. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-B4GynTfH.js → agent-defaults-settings-panel-BGTfRvG5.js} +1 -1
  10. package/dist/gateway/static/root/assets/{agent-plugin-dialog-BWQ_Diyv.js → agent-plugin-dialog-D0AQB-2O.js} +1 -1
  11. package/dist/gateway/static/root/assets/{agents-DKaImiga.js → agents-Ckr-T2KU.js} +3 -3
  12. package/dist/gateway/static/root/assets/{agents-admin-api-BwoePPTG.js → agents-admin-api-D0qHxAok.js} +1 -1
  13. package/dist/gateway/static/root/assets/{api-Cc72Y3ct.js → api-pQXrYBTk.js} +1 -1
  14. package/dist/gateway/static/root/assets/{api-MJxs2HLk.js → api-uriioEZx.js} +1 -1
  15. package/dist/gateway/static/root/assets/{app-management-settings-panel-Cy6szt9g.js → app-management-settings-panel-CQbKhrjd.js} +1 -1
  16. package/dist/gateway/static/root/assets/{appearance-settings-Dy75gAe7.js → appearance-settings-Dm0GM368.js} +1 -1
  17. package/dist/gateway/static/root/assets/{apps-page-DlwW9ClN.js → apps-page-DCeINCy-.js} +1 -1
  18. package/dist/gateway/static/root/assets/{archive-plugin-_5jgYMZC.js → archive-plugin-Cd4FOTEH.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automation-api-DrxC4rCG.js → automation-api-B3df53ms.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automation-result-state-Ba_q8_Jj.js → automation-result-state-CpgaWu2r.js} +1 -1
  21. package/dist/gateway/static/root/assets/{automation-run-list-DuyMQwtf.js → automation-run-list-DrJfwJN_.js} +1 -1
  22. package/dist/gateway/static/root/assets/{automation-task-card-D4Ojt-Q4.js → automation-task-card-C2mxNw5Q.js} +1 -1
  23. package/dist/gateway/static/root/assets/{automations-page-D-Sl7Dhr.js → automations-page-B5bnb-N8.js} +1 -1
  24. package/dist/gateway/static/root/assets/{automations-workspace-ND9J7xtt.js → automations-workspace-7R4mL3M-.js} +2 -2
  25. package/dist/gateway/static/root/assets/{binary-plugins-BYHCUreq.js → binary-plugins-C0QOjfJV.js} +1 -1
  26. package/dist/gateway/static/root/assets/{block-editor-DI_JHx-P.js → block-editor-BY1Mb-WW.js} +1 -1
  27. package/dist/gateway/static/root/assets/{browser-settings-page-DXBM5lpK.js → browser-settings-page-DUsk02LK.js} +1 -1
  28. package/dist/gateway/static/root/assets/{capabilities-C_mZ4wUq.js → capabilities-Bt1fAcDI.js} +1 -1
  29. package/dist/gateway/static/root/assets/{capabilities-CUHCbQ5N.js → capabilities-Bu7efUpH.js} +1 -1
  30. package/dist/gateway/static/root/assets/{capabilities-page-RJnyR_V9.js → capabilities-page-DFv5-mPY.js} +2 -2
  31. package/dist/gateway/static/root/assets/{capabilities-settings-panel-CxSrK6bJ.js → capabilities-settings-panel-BtRMZjAx.js} +1 -1
  32. package/dist/gateway/static/root/assets/{channels-CBXmRfVR.js → channels-CByFQQ_H.js} +1 -1
  33. package/dist/gateway/static/root/assets/{chat-agents-api-D6sJpLeT.js → chat-agents-api-SruH_oEQ.js} +1 -1
  34. package/dist/gateway/static/root/assets/{chat-chart-block-B2U7epTQ.js → chat-chart-block-BBchFbUa.js} +1 -1
  35. package/dist/gateway/static/root/assets/chat-page-C3ttsYGZ.js +71 -0
  36. package/dist/gateway/static/root/assets/{chat-terminal-dock-XNPvQhNw.js → chat-terminal-dock-DCNAz0CB.js} +1 -1
  37. package/dist/gateway/static/root/assets/{command-palette-api-DbL0oPXq.js → command-palette-api-r8U5soT7.js} +1 -1
  38. package/dist/gateway/static/root/assets/{composer-payload-handoff-CaxZicbL.js → composer-payload-handoff-RaEQXTjj.js} +1 -1
  39. package/dist/gateway/static/root/assets/{computer-settings-page-Velpw46s.js → computer-settings-page-C7cj9Zyx.js} +1 -1
  40. package/dist/gateway/static/root/assets/{connected-providers-grid-Y79g354a.js → connected-providers-grid-DgJ7I1do.js} +1 -1
  41. package/dist/gateway/static/root/assets/{connection-usage-guide-BaDoesqn.js → connection-usage-guide-De6QJt8B.js} +1 -1
  42. package/dist/gateway/static/root/assets/{connector-service-page-C5mVM3zg.js → connector-service-page-qSYlFATU.js} +1 -1
  43. package/dist/gateway/static/root/assets/{connectors-api-Cgiy3Dyn.js → connectors-api-CqyteNnT.js} +1 -1
  44. package/dist/gateway/static/root/assets/{connectors-page-DDSTfe3M.js → connectors-page-BB3V-zJS.js} +1 -1
  45. package/dist/gateway/static/root/assets/{date-picker-BCxU-AEv.js → date-picker-CB6IVCiq.js} +1 -1
  46. package/dist/gateway/static/root/assets/{desktop-pet-narrative-C8zQtMcw.js → desktop-pet-narrative-B7I1II0Z.js} +1 -1
  47. package/dist/gateway/static/root/assets/{desktop-pet-settings-CVs5timB.js → desktop-pet-settings-Cm1O5CEG.js} +1 -1
  48. package/dist/gateway/static/root/assets/{desktop-pet-D1buh7JC.js → desktop-pet-wqyOn6xs.js} +1 -1
  49. package/dist/gateway/static/root/assets/{dev-view-store-rdp0Stsh.js → dev-view-store-BxPWx1Gi.js} +1 -1
  50. package/dist/gateway/static/root/assets/{device-pairing-wizard-ZX1oup6S.js → device-pairing-wizard-CqgjknYy.js} +1 -1
  51. package/dist/gateway/static/root/assets/{directory-picker-path-field-BN57kiUt.js → directory-picker-path-field-BCOUShCs.js} +1 -1
  52. package/dist/gateway/static/root/assets/{discussion-annotation-sync-BG-sbtYu.js → discussion-annotation-sync-uvwyXFX3.js} +1 -1
  53. package/dist/gateway/static/root/assets/{extension-debug-page-DuuOhNRp.js → extension-debug-page-C7ZJumIY.js} +1 -1
  54. package/dist/gateway/static/root/assets/{extension-iframe-host-DzzKhhvD.js → extension-iframe-host-B0rM3Ohp.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-marketplace-api-5BBPFsmU.js → extension-marketplace-api-DIGw487r.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-page-DDmRVcIm.js → extension-page-C5LnL_Dy.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-provider-CFzHYMV0.js → extension-provider-D5L3t0e3.js} +1 -1
  58. package/dist/gateway/static/root/assets/{extension-settings-page-DGAD52bm.js → extension-settings-page-DnXoNNDa.js} +1 -1
  59. package/dist/gateway/static/root/assets/{file-preview-surface-DgG6OJyj.js → file-preview-surface-Bfqc0ZKv.js} +1 -1
  60. package/dist/gateway/static/root/assets/{gateway-config-swr-D0yocd87.js → gateway-config-swr-Db2fE-gT.js} +1 -1
  61. package/dist/gateway/static/root/assets/{gateway-realtime-DpNC3Y7U.js → gateway-realtime-nI6k8qP8.js} +1 -1
  62. package/dist/gateway/static/root/assets/gateway-realtime-store-CjYSSi_l.js +1 -0
  63. package/dist/gateway/static/root/assets/{gateway-restart-C_8Z4DRU.js → gateway-restart-CyhN9Fk3.js} +1 -1
  64. package/dist/gateway/static/root/assets/{gateway-settings-CGlpz-Ft.js → gateway-settings-Nr0Bzbsy.js} +1 -1
  65. package/dist/gateway/static/root/assets/{gateway-startup-retry-BPSM56sw.js → gateway-startup-retry-Du7l0oxt.js} +1 -1
  66. package/dist/gateway/static/root/assets/{global-defaults-api-BFsm77dC.js → global-defaults-api-qGBKLt28.js} +1 -1
  67. package/dist/gateway/static/root/assets/{home-page-UXS36f7M.js → home-page-h6D4Pqqc.js} +2 -2
  68. package/dist/gateway/static/root/assets/{image-generation-api-wJi7zpES.js → image-generation-api-DeolJQxY.js} +1 -1
  69. package/dist/gateway/static/root/assets/{imports-page-iddP3PVx.js → imports-page-B3kUV_dq.js} +1 -1
  70. package/dist/gateway/static/root/assets/{index-D0p4v0SG.js → index-Bj6IrJGJ.js} +5 -5
  71. package/dist/gateway/static/root/assets/index-D3YWUSNe.css +1 -0
  72. package/dist/gateway/static/root/assets/install-connector-dialog-Brl22l1N.js +1 -0
  73. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Cxdd0r3Z.js → keyboard-shortcuts-settings-CFrEEDZu.js} +1 -1
  74. package/dist/gateway/static/root/assets/{local-app-workbench-page-jfkZZHHd.js → local-app-workbench-page-CbHgQzs4.js} +1 -1
  75. package/dist/gateway/static/root/assets/{local-apps-page-BwWuY0x2.js → local-apps-page-Cdeawk2X.js} +1 -1
  76. package/dist/gateway/static/root/assets/{local-session-drafts-cTAkoNSf.js → local-session-drafts-oWhYPECv.js} +1 -1
  77. package/dist/gateway/static/root/assets/{locale-store-DJYUYPdV.js → locale-store-BY-fRY-q.js} +1 -1
  78. package/dist/gateway/static/root/assets/{logs-page-CuxC8O1E.js → logs-page-3dWLrUy0.js} +1 -1
  79. package/dist/gateway/static/root/assets/{management-api-CmBUdfsn.js → management-api-BzdYxqsC.js} +1 -1
  80. package/dist/gateway/static/root/assets/{management-settings-CYn1EOVo.js → management-settings-yWWgFlzF.js} +1 -1
  81. package/dist/gateway/static/root/assets/{markdown-view-DrcA6Cfr.js → markdown-view-ClNfoiYC.js} +1 -1
  82. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-C5D5oueS.js → mcp-conversation-setup-page-C0M7yW4O.js} +1 -1
  83. package/dist/gateway/static/root/assets/{media-plugins-CQZ0Jh_x.js → media-plugins-DmVG3TQ5.js} +1 -1
  84. package/dist/gateway/static/root/assets/messages-DFCLetQl.js +3 -0
  85. package/dist/gateway/static/root/assets/{model-selector-CbKl8YPf.js → model-selector-DkytsBae.js} +1 -1
  86. package/dist/gateway/static/root/assets/{models-hub-cache-CwxnL3rY.js → models-hub-cache-CESzQ_tk.js} +1 -1
  87. package/dist/gateway/static/root/assets/{note-detail-panel-uQO4kymH.js → note-detail-panel-CQIrUO6h.js} +3 -3
  88. package/dist/gateway/static/root/assets/note-image-lightbox-Cw-TaViX.js +1 -0
  89. package/dist/gateway/static/root/assets/{notes-api-DoCb3QlH.js → notes-api-32qiHxz2.js} +1 -1
  90. package/dist/gateway/static/root/assets/{notes-page-DOl7cqLg.js → notes-page-gl59x-7l.js} +1 -1
  91. package/dist/gateway/static/root/assets/{oauth-api-3b_QtYeo.js → oauth-api-CMpfoRed.js} +1 -1
  92. package/dist/gateway/static/root/assets/{oauth-provider-connect-D1JQ4FBf.js → oauth-provider-connect-XzlLkqnK.js} +1 -1
  93. package/dist/gateway/static/root/assets/{page-context-capture-button-CVIVl1MQ.js → page-context-capture-button-CdMxGZaM.js} +1 -1
  94. package/dist/gateway/static/root/assets/{page-context-draft-Ky5J09qv.js → page-context-draft-CrgFs0h3.js} +1 -1
  95. package/dist/gateway/static/root/assets/page-header-store-BNjlQHqU.js +1 -0
  96. package/dist/gateway/static/root/assets/{personal-avatar-Dh4qjZYy.js → personal-avatar-BHMRbUIc.js} +1 -1
  97. package/dist/gateway/static/root/assets/{personal-page-edoGNvVa.js → personal-page-DUuJe2P9.js} +1 -1
  98. package/dist/gateway/static/root/assets/{personal-settings-panel-BtTwDaw0.js → personal-settings-panel-CZjvI9rl.js} +1 -1
  99. package/dist/gateway/static/root/assets/{phone-dependencies-card-B6rA2lO_.js → phone-dependencies-card-BCEI4PGp.js} +1 -1
  100. package/dist/gateway/static/root/assets/{phone-model-connection-xqaXDOVF.js → phone-model-connection-BqOzyoRr.js} +1 -1
  101. package/dist/gateway/static/root/assets/{phone-model-picker-yuGXKCM9.js → phone-model-picker-BGAAMeo6.js} +1 -1
  102. package/dist/gateway/static/root/assets/{phone-settings-page-DhjuPpF4.js → phone-settings-page-BdoFCa2J.js} +1 -1
  103. package/dist/gateway/static/root/assets/{phone-workspace-store-2xQhZsJr.js → phone-workspace-store-D1BS7otl.js} +1 -1
  104. package/dist/gateway/static/root/assets/{plugin-details-dialog-CIS3SUKM.js → plugin-details-dialog-BP-ZS2g2.js} +1 -1
  105. package/dist/gateway/static/root/assets/{preference-select-fields-BAZSKhoi.js → preference-select-fields-RITbo_ES.js} +1 -1
  106. package/dist/gateway/static/root/assets/{product-automation-feedback-Bh37tBpR.js → product-automation-feedback-CQvcSORB.js} +1 -1
  107. package/dist/gateway/static/root/assets/{product-open-page-BXcS7lCW.js → product-open-page-CJfYOVkw.js} +1 -1
  108. package/dist/gateway/static/root/assets/{product-preview-content-BNultFGN.js → product-preview-content-B0-rh4uS.js} +1 -1
  109. package/dist/gateway/static/root/assets/{product-preview-modal-BTlUoG48.js → product-preview-modal-CSFxc7oy.js} +2 -2
  110. package/dist/gateway/static/root/assets/project-detail-page-CgU7vGyT.js +7 -0
  111. package/dist/gateway/static/root/assets/{project-understanding-CrYVzB8i.js → project-understanding-szQw-qin.js} +1 -1
  112. package/dist/gateway/static/root/assets/{projects-page-nEhOaONB.js → projects-page-BFZsIyzp.js} +1 -1
  113. package/dist/gateway/static/root/assets/{providers-api-MimHCxo_.js → providers-api-j511FMYv.js} +1 -1
  114. package/dist/gateway/static/root/assets/{recording-upload-BUe8jmx8.js → recording-upload-jq70ER5Y.js} +1 -1
  115. package/dist/gateway/static/root/assets/{registry-api-CkrGCW-C.js → registry-api-BnEoY6_B.js} +1 -1
  116. package/dist/gateway/static/root/assets/{remote-access-hub-QqFEiO0m.js → remote-access-hub-B8AHjzC5.js} +1 -1
  117. package/dist/gateway/static/root/assets/{resource-unavailable-CSc5SeHy.js → resource-unavailable-AT-LkLIB.js} +1 -1
  118. package/dist/gateway/static/root/assets/{route-preload-BTPpGwjV.js → route-preload-ByDpGuZp.js} +2 -2
  119. package/dist/gateway/static/root/assets/{runtime-tools-api-BzLDrYX8.js → runtime-tools-api-BDjAwlQF.js} +1 -1
  120. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DST1lBFY.js → runtime-tools-settings-panel-kvbXN_HV.js} +1 -1
  121. package/dist/gateway/static/root/assets/{service-recommendation-list-DezuXPLs.js → service-recommendation-list-DquxQCKH.js} +1 -1
  122. package/dist/gateway/static/root/assets/{session-api-QnBTnXGH.js → session-api-CgTDekPG.js} +1 -1
  123. package/dist/gateway/static/root/assets/{session-manager-b2zxVzZI.js → session-manager-V8cj3NVD.js} +1 -1
  124. package/dist/gateway/static/root/assets/{sessions-page-uarYA2Xw.js → sessions-page-KFescmNm.js} +1 -1
  125. package/dist/gateway/static/root/assets/settings-advanced-gate-JCPJyeK-.js +1 -0
  126. package/dist/gateway/static/root/assets/{settings-advanced-section-Crhl0mQp.js → settings-advanced-section-Daxv3VGf.js} +1 -1
  127. package/dist/gateway/static/root/assets/{settings-mode-store-CrM7SFWJ.js → settings-mode-store-LUeLxacj.js} +1 -1
  128. package/dist/gateway/static/root/assets/{settings-page-BrogpvEd.js → settings-page-Bi6rvZGw.js} +1 -1
  129. package/dist/gateway/static/root/assets/{settings-page-header-DPKy790x.js → settings-page-header-Dmw3nYJ1.js} +1 -1
  130. package/dist/gateway/static/root/assets/{settings-page-layout-8kCWtU5m.js → settings-page-layout-YJXlkr_Z.js} +1 -1
  131. package/dist/gateway/static/root/assets/{setup-interaction-page-BVnMLwC-.js → setup-interaction-page-Dd3Ovfgm.js} +1 -1
  132. package/dist/gateway/static/root/assets/{setup-status-panel--Fb7FwVG.js → setup-status-panel-BZZXpXiB.js} +1 -1
  133. package/dist/gateway/static/root/assets/{share-link-dialog-C45dGG9y.js → share-link-dialog-B1g7Xero.js} +1 -1
  134. package/dist/gateway/static/root/assets/{share-preview-page-ConV6wRP.js → share-preview-page-1GlB7603.js} +1 -1
  135. package/dist/gateway/static/root/assets/{shares-api-BsDhQwd3.js → shares-api-DXOD--vt.js} +1 -1
  136. package/dist/gateway/static/root/assets/{shares-settings-DJz0p2PL.js → shares-settings-Bj-HKS3s.js} +1 -1
  137. package/dist/gateway/static/root/assets/skill-api-HQEXke4-.js +1 -0
  138. package/dist/gateway/static/root/assets/{skill-list-api-DWCkzC6W.js → skill-list-api-CJBrtxil.js} +1 -1
  139. package/dist/gateway/static/root/assets/{skill-reload-api-C2jfZi01.js → skill-reload-api-CO6jhwui.js} +1 -1
  140. package/dist/gateway/static/root/assets/skills-page-DAxov1a8.js +2 -0
  141. package/dist/gateway/static/root/assets/{system-settings-panel-BiswiIqg.js → system-settings-panel-By3gokfs.js} +1 -1
  142. package/dist/gateway/static/root/assets/{task-detail-page-R0_AM-IE.js → task-detail-page-Cf58C6gC.js} +1 -1
  143. package/dist/gateway/static/root/assets/{task-result-evidence-C1AEUu9S.js → task-result-evidence-DWfp9UIc.js} +1 -1
  144. package/dist/gateway/static/root/assets/{terminal-panel-store-qS6f2G-H.js → terminal-panel-store-DBC-pqGy.js} +1 -1
  145. package/dist/gateway/static/root/assets/{theme-store-Docer0tD.js → theme-store-C57ZxHqm.js} +1 -1
  146. package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +2 -0
  147. package/dist/gateway/static/root/assets/{tracing-settings-page-DiXHv8C3.js → tracing-settings-page-BQ7regHS.js} +1 -1
  148. package/dist/gateway/static/root/assets/{tunnel-api-UYBm3Hqd.js → tunnel-api-BOJVQPqI.js} +1 -1
  149. package/dist/gateway/static/root/assets/{understanding-activity-store-CK6cQ0iJ.js → understanding-activity-store-YrDh1XvR.js} +1 -1
  150. package/dist/gateway/static/root/assets/{understanding-refresh-store-DVNqbtHk.js → understanding-refresh-store-D6gM1s8M.js} +1 -1
  151. package/dist/gateway/static/root/assets/{usage-page-DmA7kQI2.js → usage-page-DpC6gP1I.js} +1 -1
  152. package/dist/gateway/static/root/assets/{use-autosave-D1tFBLQO.js → use-autosave-NOpNkLFw.js} +1 -1
  153. package/dist/gateway/static/root/assets/{use-composer-attachments-CwJslPRU.js → use-composer-attachments-R6kKpDgc.js} +1 -1
  154. package/dist/gateway/static/root/assets/{use-file-preview-expanded-CK1OJENF.js → use-file-preview-expanded-M7LSoDLc.js} +3 -3
  155. package/dist/gateway/static/root/assets/{use-personal-profile-CpsJdlEs.js → use-personal-profile-JPLBYzew.js} +1 -1
  156. package/dist/gateway/static/root/assets/{use-workspace-tree-CW9hcMwg.js → use-workspace-tree-jzKVAl3N.js} +1 -1
  157. package/dist/gateway/static/root/assets/{user-model-page-BlYKXzCa.js → user-model-page-CPZgl93P.js} +1 -1
  158. package/dist/gateway/static/root/assets/{voice-api-key-field-DD9V94Y7.js → voice-api-key-field-R_KAYzHp.js} +1 -1
  159. package/dist/gateway/static/root/assets/{voice-config-api-Cr6IkfV2.js → voice-config-api-D6ueBjfw.js} +1 -1
  160. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-hsEdKDO6.js → voice-input-shortcut-events-04u9YoRg.js} +1 -1
  161. package/dist/gateway/static/root/assets/{voice-transcribe-api-DKain9tL.js → voice-transcribe-api-B2NVJYnu.js} +1 -1
  162. package/dist/gateway/static/root/assets/{work-discovery-overlay-yYdAqtrO.js → work-discovery-overlay-BHaemIrQ.js} +1 -1
  163. package/dist/gateway/static/root/assets/{work-discovery-page-8hTykUqr.js → work-discovery-page-Bt_j5iQ5.js} +1 -1
  164. package/dist/gateway/static/root/assets/{working-directory-picker-modal-CXPSsy2J.js → working-directory-picker-modal-5EsBeKBO.js} +1 -1
  165. package/dist/gateway/static/root/assets/{workspace-api-DNSoGsW8.js → workspace-api-BmUCKePi.js} +2 -2
  166. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Sy1CLe2K.js +1 -0
  167. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BVYsAXwp.js → workspace-file-preview-dialog-hYGX2hWZ.js} +1 -1
  168. package/dist/gateway/static/root/assets/{workspace-open-location-menu-DN7E_-eH.js → workspace-open-location-menu-DqLui4B1.js} +1 -1
  169. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-CGs77iKb.js → xopc-cloud-account-card-CVq7U7Ft.js} +1 -1
  170. package/dist/gateway/static/root/index.html +84 -84
  171. package/dist/package.js +1 -1
  172. package/dist/src/agent/agent-manager.d.ts +0 -1
  173. package/dist/src/agent/agent-manager.js +0 -3
  174. package/dist/src/agent/embedded/run-for-session.js +3 -6
  175. package/dist/src/agent/embedded/session-runner.js +1 -1
  176. package/dist/src/agent/mcp/native-mcp.d.ts +2 -0
  177. package/dist/src/agent/mcp/native-mcp.js +5 -0
  178. package/dist/src/agent/mcp/transport.d.ts +2 -1
  179. package/dist/src/agent/mcp/transport.js +21 -6
  180. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.d.ts +1 -0
  181. package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +56 -30
  182. package/dist/src/agent/skills/marketplace/search.js +2 -2
  183. package/dist/src/channels/pairing/paths.d.ts +1 -1
  184. package/dist/src/channels/pairing/paths.js +1 -1
  185. package/dist/src/config/paths.d.ts +1 -1
  186. package/dist/src/config/paths.js +1 -1
  187. package/dist/src/extensions/agent-plugins/refresh-runtime-access.d.ts +7 -2
  188. package/dist/src/extensions/agent-plugins/refresh-runtime-access.js +36 -25
  189. package/dist/src/extensions/agent-plugins/setup.d.ts +1 -1
  190. package/dist/src/extensions/agent-plugins/setup.js +2 -2
  191. package/dist/src/extensions/loader.d.ts +0 -1
  192. package/dist/src/extensions/loader.js +3 -38
  193. package/dist/src/extensions/typed-event-bus.d.ts +0 -1
  194. package/dist/src/extensions/typed-event-bus.js +0 -1
  195. package/dist/src/gateway/service.js +4 -4
  196. package/dist/src/home-intelligence/host.js +2 -2
  197. package/package.json +3 -4
  198. package/dist/extensions/feishu/src/auth/paths.d.ts +0 -2
  199. package/dist/extensions/feishu/src/auth/paths.js +0 -16
  200. package/dist/extensions/feishu/src/state/thread-bindings.d.ts +0 -19
  201. package/dist/extensions/feishu/src/state/thread-bindings.js +0 -44
  202. package/dist/extensions/feishu/src/subagent-hooks.d.ts +0 -12
  203. package/dist/extensions/feishu/src/subagent-hooks.js +0 -50
  204. package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.d.ts +0 -11
  205. package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.js +0 -93
  206. package/dist/extensions/feishu/src/tools/docx/docx-color-text.d.ts +0 -15
  207. package/dist/extensions/feishu/src/tools/docx/docx-color-text.js +0 -73
  208. package/dist/extensions/feishu/src/tools/docx/docx-table-ops.d.ts +0 -20
  209. package/dist/extensions/feishu/src/tools/docx/docx-table-ops.js +0 -171
  210. package/dist/extensions/feishu/src/tools/docx/docx-types.d.ts +0 -34
  211. package/dist/extensions/feishu/src/tools/docx/docx-types.js +0 -1
  212. package/dist/gateway/static/root/assets/chat-page-U5hc4rIa.js +0 -72
  213. package/dist/gateway/static/root/assets/gateway-realtime-store-BQELP9Or.js +0 -1
  214. package/dist/gateway/static/root/assets/index-Uxz0OdzD.css +0 -1
  215. package/dist/gateway/static/root/assets/install-connector-dialog-DSIVSJRz.js +0 -1
  216. package/dist/gateway/static/root/assets/messages-DziUGfxF.js +0 -3
  217. package/dist/gateway/static/root/assets/note-image-lightbox-CaO_VuWl.js +0 -1
  218. package/dist/gateway/static/root/assets/page-header-store-Jt0XBQxm.js +0 -1
  219. package/dist/gateway/static/root/assets/project-detail-page-DNvQzRnU.js +0 -7
  220. package/dist/gateway/static/root/assets/settings-advanced-gate-Bq6eQ3It.js +0 -1
  221. package/dist/gateway/static/root/assets/skill-api-BrM5Ctxg.js +0 -1
  222. package/dist/gateway/static/root/assets/skills-page-DbAc1Y4C.js +0 -2
  223. package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +0 -1
  224. package/dist/gateway/static/root/assets/workspace-editor-agent-store-ENv6zDBq.js +0 -1
@@ -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",
@@ -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);
@@ -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,
@@ -103,6 +103,10 @@ import { DiscussionSealer } from "../discussions/sealer.js";
103
103
  import "../discussions/index.js";
104
104
  import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
105
105
  import "../endpoint-tools/index.js";
106
+ import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
107
+ import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
108
+ import { HomeIntelligenceHost } from "../home-intelligence/host.js";
109
+ import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
106
110
  import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
107
111
  import { prepareAutomationAgentSession } from "./automation-agent-session.js";
108
112
  import { deliverAutomationCompletion } from "./automation-completion-delivery.js";
@@ -164,10 +168,6 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
164
168
  import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
165
169
  import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
166
170
  import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
167
- import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
168
- import { HomeIntelligenceHost } from "../home-intelligence/host.js";
169
- import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
170
- import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
171
171
  import crypto from "node:crypto";
172
172
  //#region src/gateway/service.ts
173
173
  init_session_repository();
@@ -1,10 +1,10 @@
1
1
  import { createLogger } from "../utils/logger/index.js";
2
2
  import { init_logger } from "../utils/logger.js";
3
- import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
4
3
  import { homePatternKey } from "./strategy.js";
5
- import { HomeAdvicePolicy } from "./policy.js";
6
4
  import { HomeIntelligenceRepository } from "./repository.js";
7
5
  import { HomeOpportunityApplicationService } from "./application-service.js";
6
+ import { HomeAdvicePolicy } from "./policy.js";
7
+ import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
8
8
  import { buildHomeOpportunityNotification } from "./notification.js";
9
9
  import { createHash } from "node:crypto";
10
10
  //#region src/home-intelligence/host.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xopcai/xopc",
3
- "version": "0.0.446",
3
+ "version": "0.0.447",
4
4
  "description": "An open-source AI assistant for work and everyday life. Remembers context and helps you get things done. Local-first, on a computer you choose.",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -101,7 +101,6 @@
101
101
  "glob": "^13.0.6",
102
102
  "grammy": "^1.43.0",
103
103
  "hono": "^4.12.25",
104
- "jiti": "^2.7.0",
105
104
  "js-yaml": "^4.3.2",
106
105
  "linkedom": "0.18.13",
107
106
  "luxon": "3.7.2",
@@ -171,8 +170,8 @@
171
170
  "vue": "^3.5.44",
172
171
  "xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
173
172
  "@xopcai/browser-control-contract": "0.1.0",
174
- "@xopcai/computer-control-contract": "0.1.0",
175
173
  "@xopcai/endpoint-tools-client": "0.0.0",
174
+ "@xopcai/computer-control-contract": "0.1.0",
176
175
  "@xopcai/endpoint-tools-protocol": "0.0.0",
177
176
  "@xopcai/gateway-contract": "0.0.0",
178
177
  "@xopcai/image-providers": "0.1.0",
@@ -209,7 +208,7 @@
209
208
  "mobile:ios:build": "pnpm run mobile:ios:generate && cd apps/mobile-ios && xcodebuild -project XopcMobile.xcodeproj -scheme XopcMobile -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build",
210
209
  "mobile:ios:test": "pnpm run mobile:ios:generate && cd apps/mobile-ios && xcodebuild -project XopcMobile.xcodeproj -scheme XopcMobile -destination 'platform=iOS Simulator,name=iPhone 17 Pro' -only-testing:XopcMobileTests CODE_SIGNING_ALLOWED=NO test",
211
210
  "mobile:test": "pnpm run mobile:android:test && pnpm run mobile:ios:test",
212
- "mobile:test:stream": "pnpm --filter @xopcai/agent-stream-client test",
211
+ "mobile:test:stream": "pnpm exec vitest run --project packages packages/realtime-protocol/src/index.test.ts packages/gateway-contract/src/session-input-reliability.test.ts packages/gateway-contract/src/tool-activity.test.ts packages/gateway-contract/src/turn-outcome.test.ts",
213
212
  "harmony:verify": "tsx apps/mobile-harmony/scripts/verify.mts",
214
213
  "harmony:test:server": "tsx apps/mobile-harmony/scripts/native-test-server.mts",
215
214
  "mobile:release:patch": "bash scripts/apps/mobile-native/release-patch.sh",
@@ -1,2 +0,0 @@
1
- export declare function resolveFeishuCredentialsDir(): string;
2
- export declare function resolveFeishuFrameworkAllowFromPath(accountId: string): string;
@@ -1,16 +0,0 @@
1
- import { ENV_VARS, init_paths_state, resolveStateDir } from "../../../../src/config/paths-state.js";
2
- import path from "node:path";
3
- //#region extensions/feishu/src/auth/paths.ts
4
- init_paths_state();
5
- function resolveFeishuCredentialsDir() {
6
- const explicit = process.env[ENV_VARS.CREDENTIALS_DIR]?.trim();
7
- if (explicit) return explicit;
8
- return path.join(resolveStateDir(), "credentials");
9
- }
10
- function resolveFeishuFrameworkAllowFromPath(accountId) {
11
- const base = "xopc-feishu".replace(/[\\/:*?"<>|]/g, "_");
12
- const safeAccount = accountId.trim().toLowerCase().replace(/[\\/:*?"<>|]/g, "_").replace(/\.\./g, "_");
13
- return path.join(resolveFeishuCredentialsDir(), `${base}-${safeAccount}-allowFrom.json`);
14
- }
15
- //#endregion
16
- export { resolveFeishuCredentialsDir, resolveFeishuFrameworkAllowFromPath };
@@ -1,19 +0,0 @@
1
- type BindingRecord = {
2
- accountId: string;
3
- conversationId: string;
4
- parentConversationId?: string;
5
- targetConversationId: string;
6
- boundAt: number;
7
- lastActivityAt: number;
8
- metadata?: Record<string, unknown>;
9
- };
10
- export declare function bindFeishuConversation(params: {
11
- accountId: string;
12
- conversationId: string;
13
- parentConversationId?: string;
14
- targetConversationId: string;
15
- metadata?: Record<string, unknown>;
16
- }): BindingRecord;
17
- export declare function listBindingsByConversationId(accountId: string, targetConversationId: string): BindingRecord[];
18
- export declare function unbindByConversationId(accountId: string, targetConversationId: string): BindingRecord[];
19
- export {};
@@ -1,44 +0,0 @@
1
- //#region extensions/feishu/src/state/thread-bindings.ts
2
- const STATE_KEY = Symbol.for("xopc.feishuThreadBindingsState");
3
- function getState() {
4
- const store = globalThis;
5
- let st = store[STATE_KEY];
6
- if (!st) {
7
- st = { byAccountConversation: /* @__PURE__ */ new Map() };
8
- store[STATE_KEY] = st;
9
- }
10
- return st;
11
- }
12
- function key(accountId, conversationId) {
13
- return `${accountId}:${conversationId}`;
14
- }
15
- function bindFeishuConversation(params) {
16
- const now = Date.now();
17
- const rec = {
18
- accountId: params.accountId,
19
- conversationId: params.conversationId,
20
- parentConversationId: params.parentConversationId,
21
- targetConversationId: params.targetConversationId,
22
- boundAt: now,
23
- lastActivityAt: now,
24
- metadata: params.metadata
25
- };
26
- getState().byAccountConversation.set(key(rec.accountId, rec.conversationId), rec);
27
- return rec;
28
- }
29
- function listBindingsByConversationId(accountId, targetConversationId) {
30
- const out = [];
31
- for (const rec of getState().byAccountConversation.values()) if (rec.accountId === accountId && rec.targetConversationId === targetConversationId) out.push(rec);
32
- return out;
33
- }
34
- function unbindByConversationId(accountId, targetConversationId) {
35
- const removed = [];
36
- for (const rec of getState().byAccountConversation.values()) {
37
- if (rec.accountId !== accountId || rec.targetConversationId !== targetConversationId) continue;
38
- getState().byAccountConversation.delete(key(rec.accountId, rec.conversationId));
39
- removed.push(rec);
40
- }
41
- return removed;
42
- }
43
- //#endregion
44
- export { bindFeishuConversation, listBindingsByConversationId, unbindByConversationId };
@@ -1,12 +0,0 @@
1
- export declare function handleFeishuSubagentSpawning(event: any, ctx?: {
2
- requesterConversationId?: string;
3
- }): Promise<{
4
- status: "error";
5
- error: string;
6
- threadBindingReady?: undefined;
7
- } | {
8
- status: "ok";
9
- threadBindingReady: boolean;
10
- error?: undefined;
11
- }>;
12
- export declare function handleFeishuSubagentEnded(event: any): void;