@xopcai/xopc 0.0.439 → 0.0.441

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 (212) hide show
  1. package/README.md +4 -0
  2. package/README.zh-CN.md +4 -0
  3. package/dist/browser-ext/dist/sidepanel.js +5 -1
  4. package/dist/browser-ext/manifest.json +1 -1
  5. package/dist/extensions/telegram/xopc.extension.json +1 -1
  6. package/dist/gateway/static/root/assets/{activity-store-Fl327RND.js → activity-store-t5c6XavH.js} +1 -1
  7. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DL_MfWA8.js → agent-avatar-dicebear-CSTtf3RI.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agent-avatar-display-BTDt883i.js → agent-avatar-display-Cm0afn_O.js} +2 -2
  9. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-CuiIuR1Q.js → agent-defaults-settings-panel-BMbsLf16.js} +1 -1
  10. package/dist/gateway/static/root/assets/{agent-plugin-dialog-moOAOJPs.js → agent-plugin-dialog-DofyWKnP.js} +1 -1
  11. package/dist/gateway/static/root/assets/{agents-B1yM1cWS.js → agents-CAqwtADW.js} +3 -3
  12. package/dist/gateway/static/root/assets/{agents-admin-api-D6pZX7nW.js → agents-admin-api-CewiIx4v.js} +1 -1
  13. package/dist/gateway/static/root/assets/{api-np_upIrk.js → api-CE6gdBWx.js} +1 -1
  14. package/dist/gateway/static/root/assets/{api-H3OfSCEz.js → api-DRyQFk9q.js} +1 -1
  15. package/dist/gateway/static/root/assets/{app-management-settings-panel-IFKcvOK9.js → app-management-settings-panel-BZfs2ydm.js} +1 -1
  16. package/dist/gateway/static/root/assets/appearance-settings-BA7spRv6.js +1 -0
  17. package/dist/gateway/static/root/assets/{apps-page-DMDwnwEi.js → apps-page-B0qorxfq.js} +1 -1
  18. package/dist/gateway/static/root/assets/{archive-plugin-DBKvxHvn.js → archive-plugin-CPCI6nqQ.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automation-api-iUvu64Gn.js → automation-api-paBg5ie6.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automation-result-state-EFwxlLpI.js → automation-result-state-Ds-59DdX.js} +1 -1
  21. package/dist/gateway/static/root/assets/automation-run-list-Crw5qn_I.js +1 -0
  22. package/dist/gateway/static/root/assets/{automation-task-card-DXNh_uKL.js → automation-task-card-BecBULES.js} +1 -1
  23. package/dist/gateway/static/root/assets/{automations-page-iCsHbzY_.js → automations-page-D3Cb5vfR.js} +1 -1
  24. package/dist/gateway/static/root/assets/automations-workspace-BBSTBucV.js +9 -0
  25. package/dist/gateway/static/root/assets/{binary-plugins-C5K0CWqt.js → binary-plugins-CFJCUpWH.js} +1 -1
  26. package/dist/gateway/static/root/assets/{block-editor-3TVEcFpk.js → block-editor-DbG2QKd0.js} +1 -1
  27. package/dist/gateway/static/root/assets/{browser-automation-inputs-Wuph6STC.js → browser-automation-inputs-DADzEaqe.js} +1 -1
  28. package/dist/gateway/static/root/assets/{browser-automations-page-THaENU71.js → browser-automations-page-V7_ZTcyU.js} +1 -1
  29. package/dist/gateway/static/root/assets/{browser-control-api-DeRUE9Io.js → browser-control-api-Bdr2nGCE.js} +1 -1
  30. package/dist/gateway/static/root/assets/{browser-settings-page-CeNb4Kyc.js → browser-settings-page-irOt8KDh.js} +1 -1
  31. package/dist/gateway/static/root/assets/{capabilities-CFO_gAma.js → capabilities-CrAs-oqU.js} +1 -1
  32. package/dist/gateway/static/root/assets/{capabilities-B3cchabB.js → capabilities-DG0ckPuF.js} +1 -1
  33. package/dist/gateway/static/root/assets/capabilities-page-CJLVUcD4.js +2 -0
  34. package/dist/gateway/static/root/assets/capabilities-settings-panel-D8t5F998.js +8 -0
  35. package/dist/gateway/static/root/assets/{channels-DmF6s5BH.js → channels-OiT-5N_6.js} +1 -1
  36. package/dist/gateway/static/root/assets/{chat-agents-api-ipkXPITj.js → chat-agents-api-CTL8cwNk.js} +1 -1
  37. package/dist/gateway/static/root/assets/{chat-chart-block-KOdy3HcB.js → chat-chart-block-Z41MRuzh.js} +1 -1
  38. package/dist/gateway/static/root/assets/chat-page-DBAezT9u.js +72 -0
  39. package/dist/gateway/static/root/assets/{chat-terminal-dock-BouLAS3C.js → chat-terminal-dock-CEaFlZEs.js} +1 -1
  40. package/dist/gateway/static/root/assets/{command-palette-api-CHEmmKmY.js → command-palette-api-C3G6veE2.js} +1 -1
  41. package/dist/gateway/static/root/assets/{composer-payload-handoff-DQVtV0L9.js → composer-payload-handoff-Ccq_KF1W.js} +1 -1
  42. package/dist/gateway/static/root/assets/{computer-settings-page-DwEzbr0-.js → computer-settings-page-CTkICYyM.js} +1 -1
  43. package/dist/gateway/static/root/assets/connected-providers-grid-CpO98SqR.js +1 -0
  44. package/dist/gateway/static/root/assets/{connection-usage-guide-5RmYdXoS.js → connection-usage-guide-DOf2VWzv.js} +1 -1
  45. package/dist/gateway/static/root/assets/{connector-service-page-TeYvzScr.js → connector-service-page-C6yeCQWW.js} +1 -1
  46. package/dist/gateway/static/root/assets/{connectors-api-Byw6RD4z.js → connectors-api-HFW1Iey5.js} +1 -1
  47. package/dist/gateway/static/root/assets/{connectors-page-B4PrSnT8.js → connectors-page-Cbn4LSpC.js} +1 -1
  48. package/dist/gateway/static/root/assets/{date-picker-BpccZyjF.js → date-picker-C_tweuM0.js} +1 -1
  49. package/dist/gateway/static/root/assets/{desktop-pet-DfGMB4GN.js → desktop-pet-BAX0ZLyq.js} +1 -1
  50. package/dist/gateway/static/root/assets/{desktop-pet-settings-ky__zEoY.js → desktop-pet-settings-BIIsWpW9.js} +1 -1
  51. package/dist/gateway/static/root/assets/{dev-view-store-do-XMWDA.js → dev-view-store-D4C_zjRq.js} +1 -1
  52. package/dist/gateway/static/root/assets/{device-pairing-wizard-CQNlQGYH.js → device-pairing-wizard-ZUE6wZ1X.js} +1 -1
  53. package/dist/gateway/static/root/assets/{directory-picker-path-field-DjhHz-4p.js → directory-picker-path-field-CFb2VFW-.js} +1 -1
  54. package/dist/gateway/static/root/assets/{discussion-annotation-sync-CvGsuUi9.js → discussion-annotation-sync-Bd4r2auZ.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-debug-page-BimrAkDl.js → extension-debug-page-DXGpnxwM.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-iframe-host-7zoDddj6.js → extension-iframe-host-DTwDBQQ9.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-marketplace-api-DA-nbL9C.js → extension-marketplace-api-Q6E4x8gu.js} +1 -1
  58. package/dist/gateway/static/root/assets/{extension-page-wjS2go2N.js → extension-page-BVBxNzys.js} +1 -1
  59. package/dist/gateway/static/root/assets/{extension-provider-C2L-lGqA.js → extension-provider-D-Fa5PU-.js} +1 -1
  60. package/dist/gateway/static/root/assets/extension-settings-page-ycMuOpv3.js +1 -0
  61. package/dist/gateway/static/root/assets/{file-preview-surface-QUJiCKCs.js → file-preview-surface-D62ph0m0.js} +1 -1
  62. package/dist/gateway/static/root/assets/{gateway-config-swr-RHiDzhCY.js → gateway-config-swr-BW6eBLIt.js} +1 -1
  63. package/dist/gateway/static/root/assets/{gateway-realtime-DUlVfng6.js → gateway-realtime-Bg4Mf7HA.js} +1 -1
  64. package/dist/gateway/static/root/assets/gateway-realtime-store-xYMxjztG.js +1 -0
  65. package/dist/gateway/static/root/assets/{gateway-restart-L34umMj8.js → gateway-restart-BzrJNB4Q.js} +1 -1
  66. package/dist/gateway/static/root/assets/{gateway-settings-DjwPEBcq.js → gateway-settings-BOW90CER.js} +1 -1
  67. package/dist/gateway/static/root/assets/{gateway-startup-retry-CgLo6P66.js → gateway-startup-retry-DCjREMIO.js} +1 -1
  68. package/dist/gateway/static/root/assets/{global-defaults-api-Cv6QEJBa.js → global-defaults-api-myAmGZ2_.js} +1 -1
  69. package/dist/gateway/static/root/assets/{home-page-D9gDR4MB.js → home-page-eXW3llb0.js} +2 -2
  70. package/dist/gateway/static/root/assets/{image-generation-api-C_GDIILz.js → image-generation-api-CLkuZdsz.js} +1 -1
  71. package/dist/gateway/static/root/assets/{imports-page-CvY8wdNu.js → imports-page-BFsLQu7n.js} +1 -1
  72. package/dist/gateway/static/root/assets/{index-CIYNPxDl.css → index-CKIirf4W.css} +1 -1
  73. package/dist/gateway/static/root/assets/index-CQ570IAI.js +11 -0
  74. package/dist/gateway/static/root/assets/{install-connector-dialog-Cnx5oOXv.js → install-connector-dialog-CVjCFdly.js} +1 -1
  75. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-AXisbvQn.js → keyboard-shortcuts-settings-DdZfxLQb.js} +1 -1
  76. package/dist/gateway/static/root/assets/{local-app-workbench-page-DxO9ZTU_.js → local-app-workbench-page-xV9a7McI.js} +1 -1
  77. package/dist/gateway/static/root/assets/{local-apps-page-sas0hMvK.js → local-apps-page-buwr_S_-.js} +1 -1
  78. package/dist/gateway/static/root/assets/local-session-drafts-v7v7Hb6T.js +4 -0
  79. package/dist/gateway/static/root/assets/{locale-store-BRJAl_Kx.js → locale-store-DGtk-KSF.js} +1 -1
  80. package/dist/gateway/static/root/assets/{logs-page-BkuLDfZ4.js → logs-page-D_VBpYkM.js} +1 -1
  81. package/dist/gateway/static/root/assets/{management-settings-CPPZfnc7.js → management-settings-BlRCdUF3.js} +1 -1
  82. package/dist/gateway/static/root/assets/{markdown-view-BRNPKsnn.js → markdown-view-JXJ3e1CB.js} +1 -1
  83. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-C5gTNa2U.js → mcp-conversation-setup-page-Vr2dpowU.js} +1 -1
  84. package/dist/gateway/static/root/assets/{media-plugins-BMvgnbE7.js → media-plugins-DcN8Y0hJ.js} +1 -1
  85. package/dist/gateway/static/root/assets/messages-DYDySzn1.js +3 -0
  86. package/dist/gateway/static/root/assets/model-selector-zD2x0Sn6.js +1 -0
  87. package/dist/gateway/static/root/assets/model-sort-_Tz8s_4N.js +1 -0
  88. package/dist/gateway/static/root/assets/{models-hub-cache-h2vf54qy.js → models-hub-cache-DtZG5bA_.js} +1 -1
  89. package/dist/gateway/static/root/assets/{note-detail-panel-DcTiI934.js → note-detail-panel-CVrfF6XL.js} +3 -3
  90. package/dist/gateway/static/root/assets/note-image-lightbox-V4rmgfLB.js +1 -0
  91. package/dist/gateway/static/root/assets/{notes-api-D29fdWyC.js → notes-api-UXC3eyeM.js} +1 -1
  92. package/dist/gateway/static/root/assets/{notes-page-CqnQ_UEf.js → notes-page-BOCURwg6.js} +1 -1
  93. package/dist/gateway/static/root/assets/{oauth-api-C8McgC-r.js → oauth-api-DYNQAQBx.js} +1 -1
  94. package/dist/gateway/static/root/assets/{oauth-provider-connect-BDTdg0lv.js → oauth-provider-connect-BvV6SP0k.js} +1 -1
  95. package/dist/gateway/static/root/assets/{page-context-capture-button-Bf0qvNmd.js → page-context-capture-button-Dor5Y5Bf.js} +1 -1
  96. package/dist/gateway/static/root/assets/{page-context-draft-Dx0F3tHK.js → page-context-draft-B8DQ5lNT.js} +1 -1
  97. package/dist/gateway/static/root/assets/page-header-store-f8XcAs9b.js +1 -0
  98. package/dist/gateway/static/root/assets/{personal-avatar-CpEFjQ4Q.js → personal-avatar-CF6T0aTT.js} +1 -1
  99. package/dist/gateway/static/root/assets/{personal-page-BvjPpwdy.js → personal-page-DUykELZZ.js} +1 -1
  100. package/dist/gateway/static/root/assets/{personal-settings-panel-DixKsLRd.js → personal-settings-panel-BrQ94X_A.js} +1 -1
  101. package/dist/gateway/static/root/assets/{phone-dependencies-card-BfpFV3SG.js → phone-dependencies-card-Zvbw-N0D.js} +1 -1
  102. package/dist/gateway/static/root/assets/{phone-model-connection-Os87SvBE.js → phone-model-connection-CQ4PhhE5.js} +1 -1
  103. package/dist/gateway/static/root/assets/phone-model-picker-BDBtemUm.js +1 -0
  104. package/dist/gateway/static/root/assets/{phone-settings-page-ByERmr61.js → phone-settings-page-D2KXWcg1.js} +1 -1
  105. package/dist/gateway/static/root/assets/{phone-workspace-store-DfhWmYic.js → phone-workspace-store-BhJAeHdQ.js} +1 -1
  106. package/dist/gateway/static/root/assets/{plugin-details-dialog-J4PKpTud.js → plugin-details-dialog-DpPtI0sI.js} +1 -1
  107. package/dist/gateway/static/root/assets/{preference-select-fields-C-PLFUS9.js → preference-select-fields-Bx26yGRF.js} +1 -1
  108. package/dist/gateway/static/root/assets/{product-automation-feedback-DLsF8VBW.js → product-automation-feedback-_K6grEOt.js} +1 -1
  109. package/dist/gateway/static/root/assets/{product-open-page-BP-ssaP8.js → product-open-page-DSWELoz0.js} +1 -1
  110. package/dist/gateway/static/root/assets/{product-preview-content-BMI7ZuKU.js → product-preview-content-DJb-OtMo.js} +1 -1
  111. package/dist/gateway/static/root/assets/product-preview-modal-DaQhXcev.js +2 -0
  112. package/dist/gateway/static/root/assets/{project-detail-page-CS-NrYi5.js → project-detail-page-BHLOHrat.js} +1 -1
  113. package/dist/gateway/static/root/assets/{project-understanding-C9WWE-3t.js → project-understanding-CjhVk8l-.js} +1 -1
  114. package/dist/gateway/static/root/assets/{projects-page-DVa38OsG.js → projects-page-sVWDuzmC.js} +1 -1
  115. package/dist/gateway/static/root/assets/{providers-api-C1KpkGUT.js → providers-api-gWGsgOOf.js} +1 -1
  116. package/dist/gateway/static/root/assets/{recording-upload-T5ArHnPJ.js → recording-upload-CBefH7C5.js} +1 -1
  117. package/dist/gateway/static/root/assets/{registry-api-Cs-R00dn.js → registry-api-CRxE9kFY.js} +1 -1
  118. package/dist/gateway/static/root/assets/{remote-access-hub-C6NBt2s-.js → remote-access-hub-Bw__qp-v.js} +1 -1
  119. package/dist/gateway/static/root/assets/{resource-unavailable-BuySLm9q.js → resource-unavailable-BaczkGfK.js} +1 -1
  120. package/dist/gateway/static/root/assets/route-preload-Coy9Gjyy.js +2 -0
  121. package/dist/gateway/static/root/assets/{runtime-tools-api-CvTCMobW.js → runtime-tools-api-ygfM5FCT.js} +1 -1
  122. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DlW9tAnO.js → runtime-tools-settings-panel-BWEK7BZS.js} +1 -1
  123. package/dist/gateway/static/root/assets/{service-recommendation-list-Biono7Ua.js → service-recommendation-list-DrgwXSEt.js} +1 -1
  124. package/dist/gateway/static/root/assets/{session-api-BNt6b3Xl.js → session-api-CpZ24vrQ.js} +1 -1
  125. package/dist/gateway/static/root/assets/session-manager-CZyY5Y87.js +25 -0
  126. package/dist/gateway/static/root/assets/{sessions-page-3LErqoR9.js → sessions-page-DgXRw0_8.js} +1 -1
  127. package/dist/gateway/static/root/assets/settings-advanced-gate-Ch9MNvvk.js +1 -0
  128. package/dist/gateway/static/root/assets/{settings-advanced-section-D4uJuQwW.js → settings-advanced-section-DmCp3OWb.js} +1 -1
  129. package/dist/gateway/static/root/assets/{settings-mode-store-CnG8uLvP.js → settings-mode-store-fZ6mzf4A.js} +1 -1
  130. package/dist/gateway/static/root/assets/{settings-page-9BthXfuc.js → settings-page-SQwLKlTr.js} +1 -1
  131. package/dist/gateway/static/root/assets/{settings-page-header-BXdbhzia.js → settings-page-header-4d1u-o-F.js} +1 -1
  132. package/dist/gateway/static/root/assets/{settings-page-layout-BQvK_gmr.js → settings-page-layout-Cy9_VBag.js} +1 -1
  133. package/dist/gateway/static/root/assets/{setup-interaction-page-D1uhozUt.js → setup-interaction-page-OFU6DKgp.js} +1 -1
  134. package/dist/gateway/static/root/assets/{setup-status-panel-C1o4-hF4.js → setup-status-panel-KKAneNTe.js} +1 -1
  135. package/dist/gateway/static/root/assets/{share-link-dialog-QTEdYG4I.js → share-link-dialog-Apq3cegw.js} +1 -1
  136. package/dist/gateway/static/root/assets/{share-preview-page-Ba77bFgS.js → share-preview-page-B6yMj5nG.js} +1 -1
  137. package/dist/gateway/static/root/assets/{shares-api-DayDdoBR.js → shares-api-Q5x_ty6F.js} +1 -1
  138. package/dist/gateway/static/root/assets/{shares-settings-67poMpxi.js → shares-settings-vxTYg6Hp.js} +1 -1
  139. package/dist/gateway/static/root/assets/{skill-api-DR3vdsrS.js → skill-api-CBFXDh9m.js} +1 -1
  140. package/dist/gateway/static/root/assets/{skill-list-api-D6X3XyTd.js → skill-list-api-C8tm-XxH.js} +1 -1
  141. package/dist/gateway/static/root/assets/{skill-reload-api-Wu0UkQ13.js → skill-reload-api-B-4Yj46U.js} +1 -1
  142. package/dist/gateway/static/root/assets/{skills-page-FmjOxilb.js → skills-page-Xbnh0-6I.js} +1 -1
  143. package/dist/gateway/static/root/assets/{system-settings-panel-BLeXSW3w.js → system-settings-panel-a4mBz4J2.js} +1 -1
  144. package/dist/gateway/static/root/assets/{task-detail-page-B5uwlFwb.js → task-detail-page-B9akf3i8.js} +1 -1
  145. package/dist/gateway/static/root/assets/{task-result-evidence-m78K4eAp.js → task-result-evidence-DFiu5SlL.js} +1 -1
  146. package/dist/gateway/static/root/assets/{terminal-panel-store-CWpiIbPY.js → terminal-panel-store-BdOlpRkY.js} +1 -1
  147. package/dist/gateway/static/root/assets/{theme-store-B9upxkW-.js → theme-store-D58tk8pq.js} +1 -1
  148. package/dist/gateway/static/root/assets/{tracing-settings-page-CACPSXVV.js → tracing-settings-page-CO0-AiCl.js} +1 -1
  149. package/dist/gateway/static/root/assets/{tunnel-api-CCC7XSFJ.js → tunnel-api-DVRX9yW6.js} +1 -1
  150. package/dist/gateway/static/root/assets/{understanding-activity-store-D7WFQ-t7.js → understanding-activity-store-B_-648uj.js} +1 -1
  151. package/dist/gateway/static/root/assets/{understanding-refresh-store-CvOFPfDi.js → understanding-refresh-store-BXJ-kwzq.js} +1 -1
  152. package/dist/gateway/static/root/assets/{usage-page-P9-7xf1p.js → usage-page-C76JnWR8.js} +1 -1
  153. package/dist/gateway/static/root/assets/{use-autosave-BNNxl23c.js → use-autosave-xytwr7Lc.js} +1 -1
  154. package/dist/gateway/static/root/assets/{use-composer-attachments-7uMSpyxm.js → use-composer-attachments-fK2PUQbB.js} +1 -1
  155. package/dist/gateway/static/root/assets/{use-file-preview-expanded-C-NCuwM3.js → use-file-preview-expanded-ivMxmMu1.js} +2 -2
  156. package/dist/gateway/static/root/assets/{use-personal-profile-1lm_wDMe.js → use-personal-profile-BXHU0P8I.js} +1 -1
  157. package/dist/gateway/static/root/assets/{use-workspace-tree-HlkNpRDC.js → use-workspace-tree-CiLbOQHQ.js} +1 -1
  158. package/dist/gateway/static/root/assets/{user-model-page-B6XfYtEm.js → user-model-page-BzpV1hq_.js} +1 -1
  159. package/dist/gateway/static/root/assets/{voice-api-key-field-CRZS6XEF.js → voice-api-key-field-Dn092u0X.js} +1 -1
  160. package/dist/gateway/static/root/assets/{voice-config-api-CrgRaCMk.js → voice-config-api-fqUzP-ZY.js} +1 -1
  161. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-vjcw6SRC.js → voice-input-shortcut-events-D7QdPeuj.js} +1 -1
  162. package/dist/gateway/static/root/assets/{voice-transcribe-api-CtUoGgGT.js → voice-transcribe-api-NpNY_gsE.js} +1 -1
  163. package/dist/gateway/static/root/assets/{work-discovery-overlay-C9tI_qQv.js → work-discovery-overlay-BARpCMZl.js} +1 -1
  164. package/dist/gateway/static/root/assets/{work-discovery-page-C-8kE4mx.js → work-discovery-page-p0aVb8xr.js} +1 -1
  165. package/dist/gateway/static/root/assets/{working-directory-picker-modal-B5fxn2wG.js → working-directory-picker-modal-7G-6icvh.js} +1 -1
  166. package/dist/gateway/static/root/assets/{workspace-api-DP2ozrRe.js → workspace-api-BKbezgv-.js} +2 -2
  167. package/dist/gateway/static/root/assets/workspace-editor-agent-store-CODAQqJn.js +1 -0
  168. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-Cp86E6-h.js → workspace-file-preview-dialog-CS8-ZbVG.js} +1 -1
  169. package/dist/gateway/static/root/assets/{workspace-open-location-menu-CWOgHMmR.js → workspace-open-location-menu-BQrTy-8o.js} +1 -1
  170. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-CIaHnCGw.js → xopc-cloud-account-card-Bc5rXL-E.js} +1 -1
  171. package/dist/gateway/static/root/dependency-records.json +4388 -0
  172. package/dist/gateway/static/root/index.html +83 -82
  173. package/dist/package.js +1 -1
  174. package/dist/packages/gateway-contract/src/session-input-command.js +5 -1
  175. package/dist/src/agent/embedded/current-turn-images.js +1 -1
  176. package/dist/src/agent/embedded/run-turn.js +6 -3
  177. package/dist/src/agent/embedded/runs.d.ts +11 -2
  178. package/dist/src/agent/embedded/runs.js +57 -6
  179. package/dist/src/agent/embedded/session-runner.js +1 -1
  180. package/dist/src/agent/inbound/attachment-pipeline.d.ts +2 -0
  181. package/dist/src/agent/inbound/attachment-pipeline.js +21 -1
  182. package/dist/src/agent/inbound/turn-dispatcher.d.ts +4 -1
  183. package/dist/src/agent/inbound/turn-dispatcher.js +31 -2
  184. package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
  185. package/dist/src/agent/service/process-direct-streaming.js +1 -1
  186. package/dist/src/gateway/service/agent-runner.js +1 -1
  187. package/dist/src/gateway/service/session-command-service.js +6 -0
  188. package/dist/src/gateway/service/session-input-coordinator.d.ts +6 -2
  189. package/dist/src/gateway/service/session-input-coordinator.js +26 -12
  190. package/dist/src/storage/sqlite/session-creation-repository.js +2 -1
  191. package/package.json +2 -2
  192. package/dist/gateway/static/root/assets/appearance-settings-Cfb4s0Ik.js +0 -1
  193. package/dist/gateway/static/root/assets/automation-run-list-C66yqC4g.js +0 -1
  194. package/dist/gateway/static/root/assets/automations-workspace-DnLrs-fb.js +0 -9
  195. package/dist/gateway/static/root/assets/capabilities-page-KM3X4Bj-.js +0 -2
  196. package/dist/gateway/static/root/assets/capabilities-settings-panel-CX201jtA.js +0 -8
  197. package/dist/gateway/static/root/assets/chat-page-DZy7iw5A.js +0 -72
  198. package/dist/gateway/static/root/assets/connected-providers-grid-CWdA7VtN.js +0 -1
  199. package/dist/gateway/static/root/assets/extension-settings-page-CTHs7h7H.js +0 -1
  200. package/dist/gateway/static/root/assets/gateway-realtime-store-C_CDU3to.js +0 -1
  201. package/dist/gateway/static/root/assets/index-Bi8BXjpC.js +0 -11
  202. package/dist/gateway/static/root/assets/local-session-drafts-DzHbV0VQ.js +0 -4
  203. package/dist/gateway/static/root/assets/messages-Ct1hODNU.js +0 -3
  204. package/dist/gateway/static/root/assets/model-selector-kWRDioTb.js +0 -1
  205. package/dist/gateway/static/root/assets/note-image-lightbox-Bjefof6e.js +0 -1
  206. package/dist/gateway/static/root/assets/page-header-store-lsAlAXWQ.js +0 -1
  207. package/dist/gateway/static/root/assets/phone-model-picker-8pkA8k_N.js +0 -1
  208. package/dist/gateway/static/root/assets/product-preview-modal-DZ0zi6ZF.js +0 -2
  209. package/dist/gateway/static/root/assets/route-preload-CDMyXjLQ.js +0 -2
  210. package/dist/gateway/static/root/assets/session-manager-CQNN8D0M.js +0 -25
  211. package/dist/gateway/static/root/assets/settings-advanced-gate-SSCcDrIV.js +0 -1
  212. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Dw3xS3sE.js +0 -1
@@ -1,9 +1,13 @@
1
+ import { init_types, summarizeSourceContext } from "../source-context/types.js";
2
+ import { resolveImageHandlingStrategy } from "../image/vision-detection.js";
3
+ import { hydrateUserTurnForLlm } from "./attachment-pipeline.js";
1
4
  import { queueEmbeddedSteer } from "../embedded/runs.js";
2
5
  import { buildDirectUserMessageContent } from "../service/build-direct-message-content.js";
3
6
  import { maybeEmitWebchatTts } from "../service/webchat-tts.js";
4
7
  import { runProcessDirectStreaming } from "../service/process-direct-streaming.js";
5
8
  import { runProcessDirect } from "../service/process-direct-one-shot.js";
6
9
  //#region src/agent/inbound/turn-dispatcher.ts
10
+ init_types();
7
11
  var TurnDispatcher = class {
8
12
  cfg;
9
13
  log;
@@ -76,10 +80,35 @@ var TurnDispatcher = class {
76
80
  * after current tool work, before the next LLM call). See `Agent.steer`
77
81
  * in `@earendil-works/pi-agent-core`.
78
82
  */
79
- async steerWebchatSession(conversationId, text, expectedRunId) {
83
+ async steerWebchatSession(conversationId, text, expectedRunId, options) {
80
84
  const trimmed = text.trim();
81
- if (!trimmed) return false;
85
+ if (!trimmed && !options?.attachments?.length && !options?.sourceContexts?.length) return false;
82
86
  try {
87
+ if (options?.attachments?.length || options?.sourceContexts?.length) {
88
+ const c = this.cfg;
89
+ const modelRef = c.modelManager.getModelForSession(conversationId);
90
+ const message = await buildDirectUserMessageContent({
91
+ content: trimmed,
92
+ attachments: await c.prepareInboundAttachments(conversationId, options.attachments),
93
+ conversationId,
94
+ config: c.requireConfig(),
95
+ agentManager: c.agentManager,
96
+ modelManager: c.modelManager
97
+ });
98
+ const transcriptMessage = options.sourceContexts?.length ? {
99
+ ...message,
100
+ metadata: { sourceContexts: options.sourceContexts.map(summarizeSourceContext) }
101
+ } : message;
102
+ const hydrated = await hydrateUserTurnForLlm({
103
+ message: transcriptMessage,
104
+ modelRef
105
+ });
106
+ const contextImages = resolveImageHandlingStrategy(modelRef) === "native" ? options.sourceContexts?.flatMap((context) => context.images ?? []) ?? [] : [];
107
+ return await queueEmbeddedSteer(conversationId, hydrated.text, expectedRunId, {
108
+ images: [...hydrated.images, ...contextImages],
109
+ transcriptMessage
110
+ });
111
+ }
83
112
  return await queueEmbeddedSteer(conversationId, trimmed, expectedRunId);
84
113
  } catch (err) {
85
114
  this.log.warn({
@@ -1,9 +1,9 @@
1
1
  import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
3
  import { init_model_usage, modelUsageOriginFromTurn, withModelUsageOrigin } from "../../providers/model-usage.js";
4
- import { abortEmbeddedRun } from "../embedded/runs.js";
5
4
  import { persistInboundAttachments } from "../../channels/attachments/inbound-persist.js";
6
5
  import { buildTranscriptUserMessage, clearPendingTranscriptUserMessage, hydrateUserTurnForLlm, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
6
+ import { abortEmbeddedRun } from "../embedded/runs.js";
7
7
  import { resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
8
8
  import { runEmbeddedTurnForSession } from "../embedded/run-for-session.js";
9
9
  import { randomUUID } from "node:crypto";
@@ -13,8 +13,8 @@ import { phoneResumeForRun } from "../../phone/assistance.js";
13
13
  import { mergeSttConfigFromAppConfig } from "../../voice/stt/config.js";
14
14
  import "../../voice/stt/index.js";
15
15
  import { getMcpSetupResumeInput } from "../mcp/continuation-input.js";
16
- import { abortEmbeddedRun } from "../embedded/runs.js";
17
16
  import { clearPendingTranscriptUserMessage, setPendingTranscriptUserMessage } from "../inbound/attachment-pipeline.js";
17
+ import { abortEmbeddedRun } from "../embedded/runs.js";
18
18
  import { formatAgentRunErrorForClient } from "../client-error-format.js";
19
19
  import { resolveConfiguredActivityDetailDefault, resolveEffectiveReasoningLevel } from "../../session/thinking-resolve.js";
20
20
  import { initSessionTurn } from "../../session/init-session-turn.js";
@@ -137,7 +137,7 @@ var GatewayAgentRunner = class {
137
137
  if (contexts.some((context) => context === null)) throw new Error("A referenced source is unavailable or has changed; select it again");
138
138
  return fitSourceContextsToBudget(contexts.filter((context) => context !== null));
139
139
  },
140
- steer: (conversationId, content, runId) => opts.getAgentService().turnDispatcher.steerWebchatSession(conversationId, content, runId),
140
+ steer: (conversationId, content, runId, options) => opts.getAgentService().turnDispatcher.steerWebchatSession(conversationId, content, runId, options),
141
141
  emit: (type, payload) => {
142
142
  opts.emit(type, payload);
143
143
  if (type === "session.input-interrupt") opts.publishRealtime("sessions", type, payload);
@@ -2,6 +2,7 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
2
2
  import { init_session_repository } from "../../storage/sqlite/session-repository.js";
3
3
  import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
4
4
  import { init_providers, resolveModel } from "../../providers/index.js";
5
+ import { normalizeWorkingDirectoryInput } from "../../session/session-workspace.js";
5
6
  import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
6
7
  import { resolveProjectAgentId } from "../../projects/project-agent.js";
7
8
  import "../../projects/index.js";
@@ -12,6 +13,11 @@ import { SessionCommandError, acceptSessionCommand, getSessionPreparation, match
12
13
  init_providers();
13
14
  init_session_repository();
14
15
  function validateCreation(service, creation) {
16
+ if (creation.workingDirectory !== void 0) {
17
+ if (creation.projectId) throw new Error("A project controls the working directory");
18
+ const normalized = normalizeWorkingDirectoryInput(creation.workingDirectory);
19
+ if (normalized.ok === false) throw new Error(normalized.error);
20
+ }
15
21
  const project = creation.projectId ? service.projects.get(creation.projectId) : null;
16
22
  if (creation.projectId && !project) throw new Error("Project not found");
17
23
  if (resolveProjectAgentId({
@@ -1,4 +1,4 @@
1
- import type { SessionInputControlCommand } from '@xopcai/gateway-contract';
1
+ import { type SessionInputControlCommand } from '@xopcai/gateway-contract';
2
2
  import { type PhoneAssistance } from '../../phone/assistance.js';
3
3
  import type { TurnOrigin } from '@xopcai/endpoint-tools-protocol';
4
4
  import type { ConnectionWait } from '@xopcai/gateway-contract';
@@ -57,7 +57,10 @@ export declare class SessionInputCoordinator {
57
57
  }>;
58
58
  prepareAttachments: (conversationId: string, attachments?: UserTurnAttachment[]) => Promise<UserTurnAttachment[] | undefined>;
59
59
  prepareContexts: (conversationId: string, contextRefs?: TurnContextRef[]) => Promise<AgentSourceContext[] | undefined>;
60
- steer: (conversationId: string, content: string, runId?: string) => Promise<boolean>;
60
+ steer: (conversationId: string, content: string, runId?: string, options?: {
61
+ attachments?: UserTurnAttachment[];
62
+ sourceContexts?: AgentSourceContext[];
63
+ }) => Promise<boolean>;
61
64
  emit: (type: string, payload: unknown) => void;
62
65
  });
63
66
  control(conversationId: string, command: SessionInputControlCommand): Promise<SessionInputState>;
@@ -109,6 +112,7 @@ export declare class SessionInputCoordinator {
109
112
  code: 'BAD_REQUEST' | 'TARGET_NOT_FOUND' | 'NOT_LATEST' | 'SESSION_BUSY' | 'CONTEXT_UNAVAILABLE';
110
113
  }>;
111
114
  private submitLocked;
115
+ private steerInput;
112
116
  drain(conversationId: string): Promise<void>;
113
117
  private requestConnectionStop;
114
118
  private completeConnectionCancellation;
@@ -1,6 +1,8 @@
1
1
  import { createLogger } from "../../utils/logger/index.js";
2
2
  import { init_logger } from "../../utils/logger.js";
3
3
  import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
4
+ import { parseUserTurnDocument, renderUserTurnDocument } from "../../../packages/gateway-contract/src/user-turn-document.js";
5
+ import { init_src } from "../../../packages/gateway-contract/src/index.js";
4
6
  import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
5
7
  import { SessionInputControlConflict, acceptSessionInputControl, hasSessionInputControlOperation, init_session_input_control_repository, readSessionInputControl } from "../../storage/sqlite/session-input-control-repository.js";
6
8
  import { SessionInstanceChangedError, cancelQueuedSessionInput, claimNextSessionInput, findSessionInput, findSessionInputByRunId, finishSessionInputRun, getSessionInputById, getSessionInputState, init_session_input_repository, insertSessionInput, mutateQueuedSessionInput, recoverSessionInputState, setSessionInputStatus } from "../../storage/sqlite/session-input-repository.js";
@@ -20,6 +22,7 @@ import { fitSourceContextsToBudget } from "../../agent/source-context/budget.js"
20
22
  import crypto from "node:crypto";
21
23
  import { isDeepStrictEqual } from "node:util";
22
24
  //#region src/gateway/service/session-input-coordinator.ts
25
+ init_src();
23
26
  init_session_input_control_repository();
24
27
  init_injector();
25
28
  init_session_input_repository();
@@ -62,17 +65,20 @@ function sameAppContext(input, existing) {
62
65
  return isDeepStrictEqual(input.origin, existing.origin) && isDeepStrictEqual(identity(input.sourceContexts), identity(existing.contextSnapshots));
63
66
  }
64
67
  function canSteerContexts(state, origin, contexts) {
65
- if (!contexts?.length) return true;
68
+ if (!contexts?.some((context) => context.kind === "device_context" || context.kind === "app_context")) return true;
66
69
  const active = state.activeInputId ? getSessionInputById(state.conversationId, state.activeInputId) : void 0;
67
- return Boolean(active && isDeepStrictEqual(active.origin, origin) && contexts.every((context) => context.kind === "device_context"));
70
+ return Boolean(active && isDeepStrictEqual(active.origin, origin));
68
71
  }
69
72
  function steeringText(content, contexts) {
73
+ const document = parseUserTurnDocument(content);
74
+ if (document) content = renderUserTurnDocument(document, (refId) => contexts?.find((context) => context.refId === refId)?.title ?? null);
70
75
  if (!contexts?.length) return content;
71
- return injectSourceContextsIntoUserMessage({
76
+ const enriched = injectSourceContextsIntoUserMessage({
72
77
  role: "user",
73
78
  content,
74
79
  timestamp: Date.now()
75
- }, contexts).content[0].text;
80
+ }, contexts).content;
81
+ return typeof enriched === "string" ? enriched : enriched.filter((part) => part.type === "text").map((part) => part.text ?? "").join("\n");
76
82
  }
77
83
  function contextRefsMatchFrozenSnapshot(requested, frozen) {
78
84
  const editable = frozen?.filter((ref) => ref.kind === "result" || ref.kind === "note" || ref.kind === "task" || ref.kind === "file" || ref.kind === "session" || ref.kind === "browser_tab" || ref.kind === "user_assertion") ?? [];
@@ -98,12 +104,12 @@ var SessionInputCoordinator = class {
98
104
  if (!validateLatestSessionTurnTarget(conversationId, command.turnId).ok) throw new SessionInputControlConflict("Only the latest user turn can be edited");
99
105
  }
100
106
  const row = command.inputId ? getSessionInputById(conversationId, command.inputId) : void 0;
101
- if (!replay && command.action === "steer" && (!row || row.attachments?.length || row.contextRefs?.some((ref) => ref.kind !== "device_context") || !canSteerContexts(this.snapshot(conversationId), row.origin, row.contextSnapshots))) throw new SessionInputControlConflict("This input cannot steer the active reply");
107
+ if (!replay && command.action === "steer" && (!row || !canSteerContexts(this.snapshot(conversationId), row.origin, row.contextSnapshots))) throw new SessionInputControlConflict("This input cannot steer the active reply");
102
108
  const accepted = acceptSessionInputControl(conversationId, command);
103
109
  this.publish(conversationId);
104
110
  if (command.action === "steer") {
105
111
  if (!accepted.replay && row) try {
106
- if (!await this.deps.steer(conversationId, steeringText(row.content, row.contextSnapshots), accepted.runId)) setSessionInputStatus(row.id, "interrupted", {
112
+ if (!await this.steerInput(row, accepted.runId)) setSessionInputStatus(row.id, "interrupted", {
107
113
  effectiveDelivery: "next",
108
114
  targetRunId: null,
109
115
  error: "Current reply ended before steering"
@@ -171,13 +177,13 @@ var SessionInputCoordinator = class {
171
177
  this.prioritizeAcceptedInput(row, state);
172
178
  return;
173
179
  }
174
- if (row.requestedDelivery !== "steer" || !state.activeRunId || row.attachments?.length || !canSteerContexts(state, row.origin, row.contextSnapshots) || state.preparation && state.preparation.state !== "ready") return;
180
+ if (row.requestedDelivery !== "steer" || !state.activeRunId || !canSteerContexts(state, row.origin, row.contextSnapshots) || state.preparation && state.preparation.state !== "ready") return;
175
181
  setSessionInputStatus(row.id, "injecting", {
176
182
  effectiveDelivery: "steer",
177
183
  targetRunId: state.activeRunId
178
184
  });
179
185
  try {
180
- if (!await this.deps.steer(row.conversationId, steeringText(row.content, row.contextSnapshots), state.activeRunId)) setSessionInputStatus(row.id, "queued", {
186
+ if (!await this.steerInput(row, state.activeRunId)) setSessionInputStatus(row.id, "queued", {
181
187
  effectiveDelivery: "next",
182
188
  targetRunId: null
183
189
  });
@@ -268,7 +274,7 @@ var SessionInputCoordinator = class {
268
274
  const clientMessageId = input.clientMessageId.trim();
269
275
  const content = input.content.trim();
270
276
  const targetTurnId = input.targetTurnId.trim();
271
- if (!conversationId || !clientMessageId || !targetTurnId || !content && !input.attachments?.length && !input.sourceContexts?.length) return {
277
+ if (!conversationId || !clientMessageId || !targetTurnId || !content && !input.attachments?.length && !input.sourceContexts?.length && !input.contextRefs?.length) return {
272
278
  ok: false,
273
279
  code: "BAD_REQUEST"
274
280
  };
@@ -356,7 +362,7 @@ var SessionInputCoordinator = class {
356
362
  const conversationId = input.conversationId;
357
363
  const clientMessageId = input.clientMessageId.trim();
358
364
  const content = input.content.trim();
359
- if (!conversationId || !clientMessageId || !content && !input.attachments?.length && !input.sourceContexts?.length) return {
365
+ if (!conversationId || !clientMessageId || !content && !input.attachments?.length && !input.sourceContexts?.length && !input.contextRefs?.length) return {
360
366
  ok: false,
361
367
  code: "BAD_REQUEST"
362
368
  };
@@ -434,7 +440,7 @@ var SessionInputCoordinator = class {
434
440
  const control = wait?.principalId === "local-owner" ? connectionControl(input, wait) : void 0;
435
441
  const payload = connectionInputPayload(wait, control);
436
442
  const priority = !runtime.control.paused && !wait && input.interrupt !== false && this.deps.prioritizeInput?.(input) === true;
437
- const canSteer = !runtime.control.paused && !wait && !priority && input.delivery === "steer" && runtime.activeRunId !== void 0 && !attachments?.length && canSteerContexts(runtime, input.origin, sourceContexts);
443
+ const canSteer = !runtime.control.paused && !wait && !priority && input.delivery === "steer" && runtime.activeRunId !== void 0 && canSteerContexts(runtime, input.origin, sourceContexts);
438
444
  const effectiveDelivery = canSteer ? "steer" : "next";
439
445
  const row = runSqliteWriteTransaction(() => {
440
446
  const row = insertSessionInput({
@@ -470,7 +476,7 @@ var SessionInputCoordinator = class {
470
476
  };
471
477
  }
472
478
  if (canSteer) {
473
- if (!await this.deps.steer(conversationId, steeringText(content, sourceContexts), runtime.activeRunId)) {
479
+ if (!await this.steerInput(row, runtime.activeRunId)) {
474
480
  setSessionInputStatus(row.id, "queued", {
475
481
  effectiveDelivery: "next",
476
482
  targetRunId: null
@@ -495,6 +501,14 @@ var SessionInputCoordinator = class {
495
501
  state: this.publish(conversationId)
496
502
  };
497
503
  }
504
+ steerInput(row, runId) {
505
+ const text = steeringText(row.content, row.contextSnapshots);
506
+ if (!row.attachments?.length && !row.contextSnapshots?.length) return this.deps.steer(row.conversationId, text, runId);
507
+ return this.deps.steer(row.conversationId, text, runId, {
508
+ attachments: row.attachments,
509
+ sourceContexts: row.contextSnapshots
510
+ });
511
+ }
498
512
  async drain(conversationId) {
499
513
  if (this.draining.has(conversationId)) return;
500
514
  this.draining.add(conversationId);
@@ -89,7 +89,8 @@ function acceptSessionCommand(input) {
89
89
  modelOverride: creation.model,
90
90
  fixedModel: true,
91
91
  thinkingLevel: creation.thinkingLevel,
92
- userContextMode: creation.temporary ? "temporary" : "enabled"
92
+ userContextMode: creation.temporary ? "temporary" : "enabled",
93
+ ...creation.workingDirectory ? { workingDirectoryOverride: creation.workingDirectory } : {}
93
94
  }, "");
94
95
  if (creation.projectId) {
95
96
  if (!input.attachProject) throw new Error("Project attachment is required");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xopcai/xopc",
3
- "version": "0.0.439",
3
+ "version": "0.0.441",
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",
@@ -168,7 +168,7 @@
168
168
  "vite": "^8.0.16",
169
169
  "vitepress": "^1.6.4",
170
170
  "vitest": "4.1.5",
171
- "vue": "^3.5.35",
171
+ "vue": "^3.5.44",
172
172
  "xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
173
173
  "@xopcai/browser-control-contract": "0.1.0",
174
174
  "@xopcai/computer-control-contract": "0.1.0",
@@ -1 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{i,n as a,o}from"./locale-store-BRJAl_Kx.js";import{t as s}from"./messages-Ct1hODNU.js";import{n as c,r as l}from"./popover-select-CEMWIrtY.js";import{t as u}from"./cn-0WouolD0.js";import{t as d}from"./skeleton-BI5TyibZ.js";import{n as f,r as p}from"./gateway-config-swr-RHiDzhCY.js";import{n as m}from"./interaction-BdhHBbYa.js";import{t as h}from"./preference-select-fields-C-PLFUS9.js";import{i as g}from"./theme-store-B9upxkW-.js";import{t as _}from"./dev-view-store-do-XMWDA.js";import{n as v,t as y}from"./settings-page-header-BXdbhzia.js";import"./settings-page-layout-BQvK_gmr.js";import{t as b}from"./settings-advanced-gate-SSCcDrIV.js";var x=e(t(),1),S=n();function C(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function w(e){let t=C(e)?e:{},n=C(t.gateway)?t.gateway:{},r=(C(n.webchat)?n.webchat:{}).activityDetailDefault;return r===`off`||r===`stream`||r===`on`?r:`on`}async function T(e){await o(i(`/api/config`),{method:`PATCH`,body:JSON.stringify({gateway:{webchat:{activityDetailDefault:e}}})}),await f()}var E=r();function D(e){let t=(0,S.c)(13),{title:n,footer:r,children:i,className:a}=e,o;t[0]===a?o=t[1]:(o=u(`min-w-0`,a),t[0]=a,t[1]=o);let s;t[2]===n?s=t[3]:(s=n?(0,E.jsx)(`h2`,{className:`mb-2 px-1 text-xs font-medium text-fg-muted`,children:n}):null,t[2]=n,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,E.jsx)(`div`,{className:`flex flex-col gap-1 overflow-hidden rounded-xl bg-surface-hover/20 p-1 [&>*]:rounded-lg [&>*]:bg-surface-base/45`,children:i}),t[4]=i,t[5]=c);let l;t[6]===r?l=t[7]:(l=r?(0,E.jsx)(`p`,{className:`mt-2 px-1 text-xs leading-5 text-fg-subtle`,children:r}):null,t[6]=r,t[7]=l);let d;return t[8]!==o||t[9]!==s||t[10]!==c||t[11]!==l?(d=(0,E.jsxs)(`section`,{className:o,children:[s,c,l]}),t[8]=o,t[9]=s,t[10]=c,t[11]=l,t[12]=d):d=t[12],d}var O={default:{light:{canvas:`#ffffff`,panel:`#fafafa`,accent:`#3a6bff`,fg:`#111111`,muted:`#ececec`},dark:{canvas:`#0a0a0a`,panel:`#121212`,accent:`#3a6bff`,fg:`#f5f5f5`,muted:`#222222`}},emerald:{light:{canvas:`#f0fdf4`,panel:`#ffffff`,accent:`#059669`,fg:`#052e16`,muted:`#86efac`},dark:{canvas:`#000000`,panel:`#0a0a0a`,accent:`#10b981`,fg:`#d1fae5`,muted:`#134e2a`}},clay:{light:{canvas:`#fffaf0`,panel:`#ffffff`,accent:`#1a3a3a`,fg:`#0a0a0a`,muted:`#e5e5e5`},dark:{canvas:`#0a1a1a`,panel:`#1a2a2a`,accent:`#ffb084`,fg:`#fffaf0`,muted:`#2a3a3a`}},porcelain:{light:{canvas:`#f6f0e7`,panel:`#fffcf7`,accent:`#985d4d`,fg:`#352e2a`,muted:`#e8d9cf`},dark:{canvas:`#211c19`,panel:`#2b2420`,accent:`#d4a08c`,fg:`#f3eae1`,muted:`#493a32`}},dawn:{light:{canvas:`#accdec`,panel:`#f8fbff`,accent:`#34363a`,fg:`#262626`,muted:`#e7ebf4`},dark:{canvas:`#172433`,panel:`#253342`,accent:`#d9dde2`,fg:`#f3f6fa`,muted:`#415264`}}};function k(e){let t=(0,S.c)(23),{canvas:n,panel:r,accent:i,fg:a,muted:o}=e,s;t[0]===n?s=t[1]:(s={backgroundColor:n},t[0]=n,t[1]=s);let c;t[2]===r?c=t[3]:(c={backgroundColor:r},t[2]=r,t[3]=c);let l;t[4]===i?l=t[5]:(l=(0,E.jsx)(`div`,{className:`size-1 shrink-0 rounded-full`,style:{backgroundColor:i}}),t[4]=i,t[5]=l);let u;t[6]===a?u=t[7]:(u=(0,E.jsx)(`div`,{className:`h-1 min-w-0 flex-1 rounded-full`,style:{backgroundColor:a,opacity:.85}}),t[6]=a,t[7]=u);let d;t[8]!==l||t[9]!==u?(d=(0,E.jsxs)(`div`,{className:`flex items-center gap-1`,children:[l,u]}),t[8]=l,t[9]=u,t[10]=d):d=t[10];let f;t[11]===o?f=t[12]:(f=(0,E.jsx)(`div`,{className:`h-1 w-2/3 max-w-[70%] rounded-full`,style:{backgroundColor:o}}),t[11]=o,t[12]=f);let p;t[13]===o?p=t[14]:(p=(0,E.jsx)(`div`,{className:`size-1/2 max-w-[55%] rounded-full`,style:{backgroundColor:o}}),t[13]=o,t[14]=p);let m;t[15]!==c||t[16]!==d||t[17]!==f||t[18]!==p?(m=(0,E.jsxs)(`div`,{className:`flex flex-col gap-0.5 rounded-sm p-1`,style:c,children:[d,f,p]}),t[15]=c,t[16]=d,t[17]=f,t[18]=p,t[19]=m):m=t[19];let h;return t[20]!==s||t[21]!==m?(h=(0,E.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col justify-center gap-1 p-1.5`,style:s,children:m}),t[20]=s,t[21]=m,t[22]=h):h=t[22],h}function A(e){let t=(0,S.c)(8),{scheme:n}=e,{light:r,dark:i}=O[n],a;t[0]===r?a=t[1]:(a=(0,E.jsx)(k,{...r}),t[0]=r,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,E.jsx)(`div`,{className:`w-px shrink-0 bg-black/12 dark:bg-white/12`,"aria-hidden":!0}),t[2]=o):o=t[2];let s;t[3]===i?s=t[4]:(s=(0,E.jsx)(k,{...i}),t[3]=i,t[4]=s);let c;return t[5]!==a||t[6]!==s?(c=(0,E.jsxs)(`div`,{className:`flex h-11 w-full overflow-hidden rounded-md`,children:[a,o,s]}),t[5]=a,t[6]=s,t[7]=c):c=t[7],c}var j=[{value:`default`,labelKey:`colorSchemeDefault`},{value:`porcelain`,labelKey:`colorSchemePorcelain`},{value:`dawn`,labelKey:`colorSchemeDawn`},{value:`emerald`,labelKey:`colorSchemeLightGreen`},{value:`clay`,labelKey:`colorSchemeClay`}];function M(){let e=(0,S.c)(13),t=a(F),n;e[0]===t?n=e[1]:(n=s(t),e[0]=t,e[1]=n);let r=n.appearanceSettings,i=g(P),o=g(N),c;e[2]===r.colorSchemeTitle?c=e[3]:(c=(0,E.jsx)(`div`,{className:`min-w-0`,children:(0,E.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:r.colorSchemeTitle})}),e[2]=r.colorSchemeTitle,e[3]=c);let l;e[4]!==r||e[5]!==i||e[6]!==o?(l=j.map(e=>{let{value:t,labelKey:n}=e,a=i===t;return(0,E.jsxs)(`button`,{type:`button`,"aria-pressed":a,onClick:()=>o(t),className:u(`flex flex-col gap-2 rounded-xl bg-surface-hover/25 p-2.5 text-left transition-[background-color,box-shadow,transform] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,m.pressCard,a?`bg-surface-active shadow-surface`:`hover:bg-surface-hover/60`),children:[(0,E.jsx)(A,{scheme:t}),(0,E.jsx)(`span`,{className:u(`text-xs font-medium leading-none`,a?`text-accent-fg`:`text-fg-muted`),children:r[n]})]},t)}),e[4]=r,e[5]=i,e[6]=o,e[7]=l):l=e[7];let d;e[8]===l?d=e[9]:(d=(0,E.jsx)(`div`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-3 xl:grid-cols-5`,children:l}),e[8]=l,e[9]=d);let f;return e[10]!==c||e[11]!==d?(f=(0,E.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3.5 sm:px-5 sm:py-4`,children:[c,d]}),e[10]=c,e[11]=d,e[12]=f):f=e[12],f}function N(e){return e.setColorScheme}function P(e){return e.colorScheme}function F(e){return e.language}function I(){let e=(0,S.c)(28),t=a(L),n;e[0]===t?n=e[1]:(n=s(t),e[0]=t,e[1]=n);let r=n.appearanceSettings,{data:i,isLoading:o}=p(!0),f=i?.payload?.config,m;e[2]===f?m=e[3]:(m=w(f),e[2]=f,e[3]=m);let h=m,[g,_]=(0,x.useState)(h),[v,y]=(0,x.useState)(!1),[b,C]=(0,x.useState)(!1),D,O;e[4]===h?(D=e[5],O=e[6]):(D=()=>_(h),O=[h],e[4]=h,e[5]=D,e[6]=O),(0,x.useEffect)(D,O);let k;e[7]===g?k=e[8]:(k=e=>{let t=g;_(e),y(!0),C(!1),T(e).catch(()=>{_(t),C(!0)}).finally(()=>y(!1))},e[7]=g,e[8]=k);let A=k,j;e[9]===r.activityDetailDefaultTitle?j=e[10]:(j=(0,E.jsx)(`div`,{className:`min-w-0 text-sm font-medium text-fg`,children:r.activityDetailDefaultTitle}),e[9]=r.activityDetailDefaultTitle,e[10]=j);let M;e[11]!==r.activityDetailLevels||e[12]!==A||e[13]!==o||e[14]!==g||e[15]!==v?(M=o?(0,E.jsx)(d,{className:`h-10 w-full rounded-lg sm:max-w-[11rem]`}):(0,E.jsxs)(c,{value:g,disabled:v,onChange:e=>A(e.target.value),triggerClassName:`w-full sm:max-w-[11rem]`,children:[(0,E.jsx)(l,{value:`off`,children:r.activityDetailLevels.off}),(0,E.jsx)(l,{value:`on`,children:r.activityDetailLevels.on}),(0,E.jsx)(l,{value:`stream`,children:r.activityDetailLevels.stream})]}),e[11]=r.activityDetailLevels,e[12]=A,e[13]=o,e[14]=g,e[15]=v,e[16]=M):M=e[16];let N;e[17]!==j||e[18]!==M?(N=(0,E.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between sm:gap-6`,children:[j,M]}),e[17]=j,e[18]=M,e[19]=N):N=e[19];let P;e[20]!==r.activityDetailSaveError||e[21]!==r.activityDetailSaving||e[22]!==b||e[23]!==v?(P=b||v?(0,E.jsx)(`p`,{className:u(`text-xs`,b?`text-red-600 dark:text-red-400`:`text-fg-subtle`),children:b?r.activityDetailSaveError:r.activityDetailSaving}):null,e[20]=r.activityDetailSaveError,e[21]=r.activityDetailSaving,e[22]=b,e[23]=v,e[24]=P):P=e[24];let F;return e[25]!==N||e[26]!==P?(F=(0,E.jsxs)(`div`,{className:`flex flex-col gap-2 px-4 py-3.5 sm:px-5 sm:py-4`,children:[N,P]}),e[25]=N,e[26]=P,e[27]=F):F=e[27],F}function L(e){return e.language}function R(){let e=(0,S.c)(17),t=a(V),n;e[0]===t?n=e[1]:(n=s(t),e[0]=t,e[1]=n);let r=n.appearanceSettings,i=_(B),o=_(z),c;e[2]===r.showRawToolDataTitle?c=e[3]:(c=(0,E.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:r.showRawToolDataTitle}),e[2]=r.showRawToolDataTitle,e[3]=c);let l;e[4]===r.showRawToolDataDescription?l=e[5]:(l=(0,E.jsx)(`p`,{className:`text-xs text-fg-muted`,children:r.showRawToolDataDescription}),e[4]=r.showRawToolDataDescription,e[5]=l);let u;e[6]!==c||e[7]!==l?(u=(0,E.jsxs)(`div`,{className:`min-w-0`,children:[c,l]}),e[6]=c,e[7]=l,e[8]=u):u=e[8];let d;e[9]===o?d=e[10]:(d=e=>o(e.target.checked),e[9]=o,e[10]=d);let f;e[11]!==i||e[12]!==d?(f=(0,E.jsx)(`input`,{type:`checkbox`,className:`ui-checkbox`,checked:i,onChange:d}),e[11]=i,e[12]=d,e[13]=f):f=e[13];let p;return e[14]!==u||e[15]!==f?(p=(0,E.jsx)(`div`,{className:`px-4 py-3.5 sm:px-5 sm:py-4`,children:(0,E.jsxs)(`label`,{className:`flex items-center justify-between gap-3`,children:[u,f]})}),e[14]=u,e[15]=f,e[16]=p):p=e[16],p}function z(e){return e.setShowRawToolData}function B(e){return e.showRawToolData}function V(e){return e.language}function H(){let e=(0,S.c)(12),t=a(U),n;e[0]===t?n=e[1]:(n=s(t),e[0]=t,e[1]=n);let r=n.appearanceSettings,i;e[2]===r.pageTitle?i=e[3]:(i=(0,E.jsx)(y,{title:r.pageTitle}),e[2]=r.pageTitle,e[3]=i);let o;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,E.jsx)(D,{children:(0,E.jsx)(h,{variant:`page`,sections:[`language`]})}),e[4]=o):o=e[4];let c;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,E.jsxs)(D,{children:[(0,E.jsx)(h,{variant:`page`,sections:[`theme`,`font`]}),(0,E.jsx)(M,{}),(0,E.jsx)(I,{})]}),e[5]=c):c=e[5];let l;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,E.jsx)(R,{}),e[6]=l):l=e[6];let u;e[7]===r.developerGroupTitle?u=e[8]:(u=(0,E.jsx)(b,{children:(0,E.jsx)(D,{title:r.developerGroupTitle,children:l})}),e[7]=r.developerGroupTitle,e[8]=u);let d;return e[9]!==i||e[10]!==u?(d=(0,E.jsxs)(v,{gap:`gap-6`,children:[i,o,c,u]}),e[9]=i,e[10]=u,e[11]=d):d=e[11],d}function U(e){return e.language}export{H as AppearanceSettingsPanel};
@@ -1 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{t as i}from"./chunk-KS7C4IRE-CiwuuyV8.js";import{t as a}from"./messages-Ct1hODNU.js";import{t as o}from"./createLucideIcon-DPHK1VkS.js";import{t as s}from"./cn-0WouolD0.js";import{t as c}from"./skeleton-BI5TyibZ.js";import{i as l,t as u}from"./vendor-swr-CdRzEUwF.js";import{t as d}from"./automation-api-iUvu64Gn.js";var f=o(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),p=n(),m=e(t(),1),h=r(),g=e=>[`queued`,`running`,`cancelling`].includes(e.status);function _(e){let t=(0,p.c)(66),{automationId:n,projectId:r,language:o,selectedRunId:f,selectedRun:_,enabled:S,runHref:C,onSelectRun:w}=e,T=S===void 0||S,[E,D]=(0,m.useState)(!1),O=o===`zh`,k;t[0]!==T||t[1]!==_||t[2]!==f?(k=T&&f&&!_?[`automation-navigation-selected-run`,f]:null,t[0]=T,t[1]=_,t[2]=f,t[3]=k):k=t[3];let A;t[4]===f?A=t[5]:(A=()=>d.getRun(f),t[4]=f,t[5]=A);let j;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(j={revalidateOnFocus:!1,shouldRetryOnError:!1},t[6]=j):j=t[6];let{data:M}=l(k,A,j),N=_??M?.run,P;t[7]!==n||t[8]!==T||t[9]!==r?(P=(e,t)=>!T||e&&!t?.nextCursor?null:[`automation-navigation-runs`,n,r??``,e?t.nextCursor:``],t[7]=n,t[8]=T,t[9]=r,t[10]=P):P=t[10];let F;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(F={refreshInterval:b,refreshWhenHidden:!1,refreshWhenOffline:!1,revalidateAll:!0,persistSize:!0},t[11]=F):F=t[11];let{data:I,error:L,size:R,setSize:z,isValidating:B,mutate:V}=u(P,x,F),H,U,W,G,K,q;if(t[12]!==E||t[13]!==n||t[14]!==N||t[15]!==I||t[16]!==L||t[17]!==B||t[18]!==o||t[19]!==w||t[20]!==C||t[21]!==f||t[22]!==R||t[23]!==O){U=[...new Map((I??[]).flatMap(y).map(v)).values()];let e=E?U:U.slice(0,3),r=N?.automationId===n&&!e.some(e=>e.id===N.id)?[N,...e]:e;H=B&&(!I||I.length<R),G=`space-y-1 pb-3 pl-8 pr-2`,K=O?`执行记录`:`Execution history`,t[30]!==I||t[31]!==L?(q=!I&&!L?(0,h.jsxs)(`div`,{"aria-busy":`true`,className:`space-y-2 px-3 py-2`,children:[(0,h.jsx)(c,{className:`h-8`}),(0,h.jsx)(c,{className:`h-8`})]}):null,t[30]=I,t[31]=L,t[32]=q):q=t[32],W=r.map(t=>{let n=s(`w-full rounded-lg px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,f===t.id&&`bg-surface-active text-fg`),r=f===t.id?`true`:void 0,c=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(`span`,{className:`flex items-center justify-between gap-2`,children:[(0,h.jsx)(`span`,{children:new Date(t.createdAtMs).toLocaleString(O?`zh-CN`:`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`})}),!g(t)&&t.readAtMs==null?(0,h.jsx)(`span`,{className:`size-1.5 shrink-0 rounded-full bg-accent`,children:(0,h.jsx)(`span`,{className:`sr-only`,children:O?`未读`:`Unread`})}):null]}),N?.id===t.id&&!e.some(e=>e.id===t.id)?(0,h.jsx)(`span`,{className:`block text-accent-fg`,children:O?`当前查看`:`Currently viewing`}):null,(0,h.jsx)(`span`,{className:s(`block`,[`failed`,`timeout`].includes(t.status)&&`text-danger`),children:a(o).automations.status[t.status]})]});return C?(0,h.jsx)(i,{to:C(t),className:s(`block`,n),"aria-current":r,onClick:()=>w(t),children:c},t.id):(0,h.jsx)(`button`,{type:`button`,className:n,"aria-current":r,onClick:()=>w(t),children:c},t.id)}),t[12]=E,t[13]=n,t[14]=N,t[15]=I,t[16]=L,t[17]=B,t[18]=o,t[19]=w,t[20]=C,t[21]=f,t[22]=R,t[23]=O,t[24]=H,t[25]=U,t[26]=W,t[27]=G,t[28]=K,t[29]=q}else H=t[24],U=t[25],W=t[26],G=t[27],K=t[28],q=t[29];let J;t[33]!==I||t[34]!==U||t[35]!==O?(J=I&&U.length===0?(0,h.jsx)(`p`,{className:`px-3 py-2 text-xs text-fg-muted`,children:O?`尚未执行`:`No executions yet`}):null,t[33]=I,t[34]=U,t[35]=O,t[36]=J):J=t[36];let Y;t[37]!==L||t[38]!==V||t[39]!==O?(Y=L?(0,h.jsxs)(`div`,{role:`alert`,className:`px-3 py-2 text-xs text-danger`,children:[(0,h.jsx)(`p`,{children:O?`执行记录加载失败`:`Could not load history`}),(0,h.jsx)(`button`,{type:`button`,className:`w-full rounded-lg px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>void V(),children:O?`重试`:`Retry`})]}):null,t[37]=L,t[38]=V,t[39]=O,t[40]=Y):Y=t[40];let X;t[41]!==E||t[42]!==I?.[0]?.hasMore||t[43]!==U||t[44]!==O?(X=!E&&(U.length>3||I?.[0]?.hasMore)?(0,h.jsx)(`button`,{type:`button`,className:`w-full rounded-lg px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>D(!0),children:O?`查看全部执行`:`View all executions`}):null,t[41]=E,t[42]=I?.[0]?.hasMore,t[43]=U,t[44]=O,t[45]=X):X=t[45];let Z;t[46]!==E||t[47]!==I||t[48]!==H||t[49]!==z||t[50]!==R||t[51]!==O?(Z=E&&I?.at(-1)?.hasMore?(0,h.jsx)(`button`,{type:`button`,className:`w-full rounded-lg px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,disabled:H,onClick:()=>void z(R+1),children:H?O?`加载中…`:`Loading…`:O?`加载更多`:`Load more`}):null,t[46]=E,t[47]=I,t[48]=H,t[49]=z,t[50]=R,t[51]=O,t[52]=Z):Z=t[52];let Q;t[53]!==E||t[54]!==O?(Q=E?(0,h.jsx)(`button`,{type:`button`,className:`w-full rounded-lg px-3 py-2 text-left text-xs text-fg-muted hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-accent`,onClick:()=>D(!1),children:O?`收起历史`:`Show recent`}):null,t[53]=E,t[54]=O,t[55]=Q):Q=t[55];let $;return t[56]!==W||t[57]!==J||t[58]!==Y||t[59]!==X||t[60]!==Z||t[61]!==Q||t[62]!==G||t[63]!==K||t[64]!==q?($=(0,h.jsxs)(`div`,{className:G,"aria-label":K,children:[q,W,J,Y,X,Z,Q]}),t[56]=W,t[57]=J,t[58]=Y,t[59]=X,t[60]=Z,t[61]=Q,t[62]=G,t[63]=K,t[64]=q,t[65]=$):$=t[65],$}function v(e){return[e.id,e]}function y(e){return e.runs}function b(e){return(e?.length??0)>1?0:e?.[0]?.runs.some(g)?3e3:15e3}function x(e){let[,t,n,r]=e;return d.runs(20,t,{projectId:n||void 0,cursor:r||void 0})}export{g as n,f as r,_ as t};