@xopcai/xopc 0.0.440 → 0.0.442
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.
- package/README.md +2 -3
- package/README.zh-CN.md +1 -2
- package/dist/browser-ext/_locales/en/messages.json +0 -28
- package/dist/browser-ext/_locales/zh_CN/messages.json +0 -28
- package/dist/browser-ext/dist/assets/{sidepanel-CQeQB5vW.css → sidepanel-lpBGVKwZ.css} +0 -42
- package/dist/browser-ext/dist/background.js +247 -647
- package/dist/browser-ext/dist/sidepanel.html +2 -2
- package/dist/browser-ext/dist/sidepanel.js +110 -347
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-t5c6XavH.js → activity-store-CuPXAoLe.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CSTtf3RI.js → agent-avatar-dicebear-D92uHOFV.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-Cm0afn_O.js → agent-avatar-display-DINzeGs0.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BMbsLf16.js → agent-defaults-settings-panel-Chneosh4.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DofyWKnP.js → agent-plugin-dialog-B2vXlrDW.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CAqwtADW.js → agents-DKfOY5z9.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-CewiIx4v.js → agents-admin-api-DPLtjJtX.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CE6gdBWx.js → api-CEzBruRJ.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DRyQFk9q.js → api-ClZ7BrD4.js} +1 -1
- package/dist/gateway/static/root/assets/app-link-CdD448kS.js +1 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BZfs2ydm.js → app-management-settings-panel-CONwDpqL.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BA7spRv6.js → appearance-settings-Bu7K-_ri.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DOcr7J4E.js → apps-page-CBLj-m2k.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CPCI6nqQ.js → archive-plugin-CfLz9o-2.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-paBg5ie6.js → automation-api-Dl9fi8t0.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-Ds-59DdX.js → automation-result-state-BjjZCxee.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-Crw5qn_I.js → automation-run-list-9IPHu_UC.js} +1 -1
- package/dist/gateway/static/root/assets/automation-task-card-DLg-LYCm.js +3 -0
- package/dist/gateway/static/root/assets/{automations-page-6ti-Fduf.js → automations-page-CYngiwxI.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-zyhyqSdH.js +9 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CFJCUpWH.js → binary-plugins-Bv4ixxo4.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DbG2QKd0.js → block-editor-CtaJSB9U.js} +1 -1
- package/dist/gateway/static/root/assets/browser-settings-page-CmBsnx24.js +8 -0
- package/dist/gateway/static/root/assets/capabilities-BpYi2fQO.js +1 -0
- package/dist/gateway/static/root/assets/{capabilities-DSfd2fMv.js → capabilities-oWWLfwf3.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-Dlgwv1dI.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CslXPIs8.js +8 -0
- package/dist/gateway/static/root/assets/capability-icon-CmvCZOJX.js +1 -0
- package/dist/gateway/static/root/assets/{capability-links-DeO34GIF.js → capability-links-MZdYfPKx.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-DVTl7Jqc.js → channels-P-xOLYBz.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CTL8cwNk.js → chat-agents-api-BOB3dILf.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Z41MRuzh.js → chat-chart-block-DsaCatBN.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-Cen4dGHa.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BJ8SYeo7.js → chat-terminal-dock-DTQL2DBu.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-DUDKFXBH.js → command-palette-api-Cj0_7g9o.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-Cqi83bL5.js → composer-payload-handoff-B1GFVFK_.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CTkICYyM.js → computer-settings-page-DJ9BIOHC.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-sULM6YyQ.js +1 -0
- package/dist/gateway/static/root/assets/connection-usage-BhdQRWgQ.js +1 -0
- package/dist/gateway/static/root/assets/connection-usage-guide-bD1sKiAp.js +1 -0
- package/dist/gateway/static/root/assets/{connector-service-page-C6yeCQWW.js → connector-service-page-BEq3i3Vi.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-HFW1Iey5.js → connectors-api-DEExP6a7.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-DN9BOiFk.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-C_tweuM0.js → date-picker-D2whl8Ci.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-ChwjpnsG.js → desktop-pet-narrative-C8zQtMcw.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BAX0ZLyq.js → desktop-pet-qnIdmNnH.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BIIsWpW9.js → desktop-pet-settings-C54b1FY4.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-D4C_zjRq.js → dev-view-store-bryv5YRw.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-ZUE6wZ1X.js → device-pairing-wizard-Du-yOxZv.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-CFb2VFW-.js → directory-picker-path-field-GsMkjw59.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-Bd4r2auZ.js → discussion-annotation-sync-CrpDiC7J.js} +1 -1
- package/dist/gateway/static/root/assets/earth-C9Z4bTTG.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-CSsZoz0G.js → extension-debug-page-D2Dhtu6H.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-DHeeJG5w.js → extension-iframe-host-Dra7k_6o.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-Q6E4x8gu.js → extension-marketplace-api-D7Av-sOf.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DhQJVav9.js → extension-page-Dd16lQg-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-CJQkyfle.js → extension-provider-C4WwnCxf.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-qUg8c93J.js → extension-settings-page-BHwQ2ipj.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-D62ph0m0.js → file-preview-surface-Dtla5oAW.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BW6eBLIt.js → gateway-config-swr-B5THNdYK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-Bg4Mf7HA.js → gateway-realtime-hnEaDFaA.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-ugwtyD4q.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-BzrJNB4Q.js → gateway-restart-kwv0njYq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BOW90CER.js → gateway-settings-CxYPJTy8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DCjREMIO.js → gateway-startup-retry-CqtCJzWJ.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-myAmGZ2_.js → global-defaults-api-BQMdHLlp.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-BjAejNQt.js → home-page-D-gy9LlQ.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-CLkuZdsz.js → image-generation-api-G3tQFhif.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BFsLQu7n.js → imports-page-BmEqiunH.js} +1 -1
- package/dist/gateway/static/root/assets/index-CqQZfWRQ.js +11 -0
- package/dist/gateway/static/root/assets/index-D7Noveui.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-CVjCFdly.js → install-connector-dialog-BU4l6KJv.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DdZfxLQb.js → keyboard-shortcuts-settings-CtNI6i7K.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-B6iL_VbY.js → local-app-workbench-page-Drbzz4Lm.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-buwr_S_-.js → local-apps-page-DqZT5hLH.js} +1 -1
- package/dist/gateway/static/root/assets/local-session-drafts-Bt_e3A8f.js +4 -0
- package/dist/gateway/static/root/assets/{locale-store-DGtk-KSF.js → locale-store-Bld7_m-Q.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-D_VBpYkM.js → logs-page-CzajqK40.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BlRCdUF3.js → management-settings-BgdAP0kf.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-JXJ3e1CB.js → markdown-view-B3cFKCfO.js} +1 -1
- package/dist/gateway/static/root/assets/markdown-view-DG8DDkEA.css +1 -0
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-Vr2dpowU.js → mcp-conversation-setup-page-ZcY1nqMO.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DcN8Y0hJ.js → media-plugins-DSOplRhW.js} +1 -1
- package/dist/gateway/static/root/assets/messages-CGO1P4mz.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-zD2x0Sn6.js → model-selector-yAKlOR3O.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-DtZG5bA_.js → models-hub-cache-8V-ZpAIa.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-i_c7IJon.js → note-detail-panel-BQdgpm0s.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-BbNYW2Rw.js +1 -0
- package/dist/gateway/static/root/assets/notes-api-CVQqqmGI.js +1 -0
- package/dist/gateway/static/root/assets/{notes-page-DUpUq3ca.js → notes-page-IefutMyg.js} +3 -3
- package/dist/gateway/static/root/assets/{oauth-api-DYNQAQBx.js → oauth-api-DGa6PTuq.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-BvV6SP0k.js → oauth-provider-connect-Bc-KLH1e.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BJASJMLv.js → page-context-capture-button-DDmLslYG.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-5xnVOZAF.js → page-context-draft-GveHK8e2.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-YZfSLNTg.js +1 -0
- package/dist/gateway/static/root/assets/palette-CDI0VweW.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-CF6T0aTT.js → personal-avatar-Cu8lGBXZ.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-DkrDSJqk.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-BrQ94X_A.js → personal-settings-panel-awr10jTV.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-Zvbw-N0D.js → phone-dependencies-card-CAxn3usD.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-CQ4PhhE5.js → phone-model-connection-BBG3LxRP.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-BDBtemUm.js → phone-model-picker-CfPjKpnd.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-D2KXWcg1.js → phone-settings-page-C4dJdwRW.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-BhJAeHdQ.js → phone-workspace-store-BKltFHtG.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-DpPtI0sI.js → plugin-details-dialog-BqcFfZFH.js} +1 -1
- package/dist/gateway/static/root/assets/{popover-select-CEMWIrtY.js → popover-select-CLsphyzA.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-Bx26yGRF.js → preference-select-fields-QlyIA8ve.js} +1 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-CRsfuAXl.js +7 -0
- package/dist/gateway/static/root/assets/product-navigation-Dp-adLY_.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-DSWELoz0.js → product-open-page-CQ4dk-_l.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-DJb-OtMo.js → product-preview-content-COU6H_jO.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-DaQhXcev.js → product-preview-modal-Ct5q4tv6.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BpFMnYqe.js → project-detail-page-CQj7nm6I.js} +1 -1
- package/dist/gateway/static/root/assets/{project-understanding-CjhVk8l-.js → project-understanding-CU2af95r.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-sVWDuzmC.js → projects-page-sWxQJrFS.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-gWGsgOOf.js → providers-api-CspehmSU.js} +1 -1
- package/dist/gateway/static/root/assets/recording-upload-BOZAOdCI.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CRxE9kFY.js → registry-api-Bdp3UUyz.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bw__qp-v.js → remote-access-hub-Bos3uwAT.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-BaczkGfK.js → resource-unavailable-DJR3SCy6.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-CDQtPdgq.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-ygfM5FCT.js → runtime-tools-api-DsbahxzE.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BWEK7BZS.js → runtime-tools-settings-panel-DW9_OFi2.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-C-jw6Hid.js → schema-form-CtRM41Re.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-DrgwXSEt.js → service-recommendation-list-Bd1JDO5T.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CpZ24vrQ.js → session-api-DjnHJ-0n.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-BpO7h2es.js → session-manager-Czu9GpZX.js} +2 -2
- package/dist/gateway/static/root/assets/{sessions-page-DgXRw0_8.js → sessions-page-CGkbbrz-.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DyGT3o1e.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-DmCp3OWb.js → settings-advanced-section-CM44UlF8.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BTqvr_Fw.js → settings-loading-skeleton-CAoOV17i.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-fZ6mzf4A.js → settings-mode-store-Blc4C8aw.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-4d1u-o-F.js → settings-page-header-BYFaTD8a.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-Cy9_VBag.js → settings-page-layout-CnUQSxT3.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-JEaz5Vzy.js → settings-page-zGjDXdHY.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-OFU6DKgp.js → setup-interaction-page-DqaiLQ0I.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-KKAneNTe.js → setup-status-panel-iOYgfkoK.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-Apq3cegw.js → share-link-dialog-C_uYNUlp.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-pLEAG660.js → share-preview-page-Bs3VjTGj.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-Q5x_ty6F.js → shares-api-C2GDyqxP.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-Zdv1sVrv.js → shares-settings-BseSozxm.js} +1 -1
- package/dist/gateway/static/root/assets/skeleton-DzdOeGYz.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-CBFXDh9m.js → skill-api-BnpTSZGc.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-C8tm-XxH.js → skill-list-api-7MY9ewiu.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-B-4Yj46U.js → skill-reload-api-DkDpu3Wd.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-sL2kGqHZ.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-a4mBz4J2.js → system-settings-panel-BltKPJdb.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BkPUm6sy.js → task-detail-page-CwMpmFVS.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-MOHY0Myr.js → task-result-evidence-BNhYqUAa.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-BdOlpRkY.js → terminal-panel-store-DUEJoa1M.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-D58tk8pq.js → theme-store-DsvYj7Vy.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +1 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-CO0-AiCl.js → tracing-settings-page-CMtFem_g.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-DVRX9yW6.js → tunnel-api-B6BhWTh3.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-B_-648uj.js → understanding-activity-store-B7rFXhDk.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BXJ-kwzq.js → understanding-refresh-store-DCFASve5.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-C76JnWR8.js → usage-page-BO2OFCoA.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-xytwr7Lc.js → use-autosave-DsqcLHV9.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-DA6SxZPQ.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-g4SwMHbx.js +2 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-BXHU0P8I.js → use-personal-profile-T2e6P5Ed.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-CU-lW_cN.js → use-workspace-tree-DG5ZMfaY.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-B5_01fi_.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-Dn092u0X.js → voice-api-key-field-D7NPAc1E.js} +1 -1
- package/dist/gateway/static/root/assets/voice-call-context-CJ1ZiJWR.js +1 -0
- package/dist/gateway/static/root/assets/{voice-config-api-fqUzP-ZY.js → voice-config-api-UQDTh6hh.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-D7QdPeuj.js → voice-input-shortcut-events-SD2gZVg8.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-transcribe-api-Z56gWWll.js → voice-transcribe-api-Cc92OabY.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BARpCMZl.js → work-discovery-overlay-B41GOFXh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-p0aVb8xr.js → work-discovery-page-NNhExALx.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-7G-6icvh.js → working-directory-picker-modal-DeNWVFFK.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-DJ3Ebhz_.js → workspace-api-fKmmIslV.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CmSYxTmk.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BlVJ5Vmn.js → workspace-file-preview-dialog-C_0lUEsm.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-jAwoLoam.js → workspace-open-location-menu-BznuSmFZ.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Bc5rXL-E.js → xopc-cloud-account-card-BlhFT1q9.js} +1 -1
- package/dist/gateway/static/root/index.html +95 -98
- package/dist/package.js +1 -1
- package/dist/packages/browser-control-contract/src/dom.js +79 -0
- package/dist/packages/browser-control-contract/src/index.js +2 -25
- package/dist/packages/gateway-contract/src/automations.js +0 -6
- package/dist/packages/gateway-contract/src/session-input-command.js +5 -1
- package/dist/src/agent/agent-manager.d.ts +0 -1
- package/dist/src/agent/agent-manager.js +0 -1
- package/dist/src/agent/external-tools/index.d.ts +1 -1
- package/dist/src/agent/service.js +0 -1
- package/dist/src/agent/service.types.d.ts +0 -1
- package/dist/src/agent/tool-manuals/browser.d.ts +1 -1
- package/dist/src/agent/tool-manuals/browser.js +0 -3
- package/dist/src/agent/tools/factory.d.ts +0 -2
- package/dist/src/agent/tools/factory.js +0 -2
- package/dist/src/agent/tools/find.d.ts +1 -1
- package/dist/src/agent/tools/grep.d.ts +1 -1
- package/dist/src/agent/tools/index.d.ts +0 -1
- package/dist/src/agent/tools/index.js +1 -2
- package/dist/src/agent/tools/metadata.d.ts +1 -1
- package/dist/src/auth/oauth/anthropic.d.ts +1 -7
- package/dist/src/auth/oauth/anthropic.js +6 -83
- package/dist/src/auth/oauth/index.d.ts +0 -2
- package/dist/src/auth/oauth/index.js +2 -6
- package/dist/src/auth/oauth/kimi-coding.d.ts +1 -6
- package/dist/src/auth/oauth/kimi-coding.js +5 -79
- package/dist/src/auth/oauth/openai.js +1 -1
- package/dist/src/auth/oauth/pi-oauth-adapter.d.ts +4 -0
- package/dist/src/auth/oauth/pi-oauth-adapter.js +53 -0
- package/dist/src/auth/oauth/registry.js +0 -9
- package/dist/src/automations/capabilities/write.d.ts +0 -12
- package/dist/src/automations/domain/defaults.d.ts +0 -1
- package/dist/src/automations/domain/defaults.js +2 -3
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/types.d.ts +0 -26
- package/dist/src/automations/domain/validation.d.ts +0 -24
- package/dist/src/automations/domain/validation.js +0 -7
- package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -6
- package/dist/src/automations/draft/automation-draft-validator.js +0 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/service/action-executor.d.ts +0 -1
- package/dist/src/automations/service/action-executor.js +0 -31
- package/dist/src/automations/service/automation-service.d.ts +0 -1
- package/dist/src/automations/service/automation-service.js +1 -13
- package/dist/src/browser/drivers/playwright-driver.js +1 -2
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +3 -3
- package/dist/src/cli/commands/tunnel.js +1 -1
- package/dist/src/cli/commands/update.js +1 -1
- package/dist/src/config/models-json.d.ts +24 -24
- package/dist/src/endpoint-tools/policy.js +3 -4
- package/dist/src/gateway/hono/app.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/desktop-host.js +1 -1
- package/dist/src/gateway/hono/routes/exposure.js +1 -1
- package/dist/src/gateway/hono/routes/files.js +2 -2
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -16
- package/dist/src/gateway/hono/routes/local-apps.js +1 -1
- package/dist/src/gateway/hono/routes/logs.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/personal-agent.js +2 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +5 -5
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/tunnel.js +2 -2
- package/dist/src/gateway/hono/routes/update.js +2 -2
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/index.js +2 -2
- package/dist/src/gateway/provider-model-setup.js +1 -1
- package/dist/src/gateway/run-loop.js +2 -2
- package/dist/src/gateway/security/audit.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +0 -2
- package/dist/src/gateway/security/index.js +2 -2
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/run-gateway-agent.js +2 -2
- package/dist/src/gateway/service/session-command-service.js +6 -0
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.d.ts +0 -3
- package/dist/src/gateway/service.js +31 -46
- package/dist/src/gateway/side-chat/run-service.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/infra/gateway-processes.js +1 -1
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/infra/update-runner.js +2 -2
- package/dist/src/infra/update-startup.js +1 -1
- package/dist/src/notifications/service.js +2 -2
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-style.d.ts +2 -2
- package/dist/src/personal-agent/reply-style.js +10 -0
- package/dist/src/phone/stream-gateway.js +1 -1
- package/dist/src/providers/domestic-presets.d.ts +2 -310
- package/dist/src/providers/domestic-presets.js +2 -396
- package/dist/src/providers/env-keys.js +2 -6
- package/dist/src/providers/index.js +6 -13
- package/dist/src/providers/presentation.js +4 -6
- package/dist/src/providers/setup/profiles.js +1 -2
- package/dist/src/providers/setup/voice.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/share/site-share-router.js +2 -2
- package/dist/src/storage/sqlite/schema.sql +0 -81
- package/dist/src/storage/sqlite/session-creation-repository.js +2 -1
- package/dist/src/tasks/home-query-service.js +0 -1
- package/dist/src/tui/backends/embedded-backend.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/dist/src/work-discovery/index.js +2 -2
- package/dist/src/work-discovery/investigator.js +1 -1
- package/dist/src/work-discovery/service.js +3 -3
- package/package.json +9 -9
- package/dist/gateway/static/root/assets/app-link-DRy3-k7j.js +0 -1
- package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +0 -1
- package/dist/gateway/static/root/assets/automation-task-card-BecBULES.js +0 -3
- package/dist/gateway/static/root/assets/automations-workspace-AJhsnIMA.js +0 -9
- package/dist/gateway/static/root/assets/book-open-CCGtrT3R.js +0 -1
- package/dist/gateway/static/root/assets/browser-automation-inputs-DADzEaqe.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-V7_ZTcyU.js +0 -3
- package/dist/gateway/static/root/assets/browser-control-api-Bdr2nGCE.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-irOt8KDh.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-bTEnfGla.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-BmTXUhQp.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DWelRpM-.js +0 -8
- package/dist/gateway/static/root/assets/capability-icon-DVoZxEgW.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-ATnFh_yO.js +0 -72
- package/dist/gateway/static/root/assets/connected-providers-grid-CpO98SqR.js +0 -1
- package/dist/gateway/static/root/assets/connection-usage-Cm_McddI.js +0 -1
- package/dist/gateway/static/root/assets/connection-usage-guide-DOf2VWzv.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-B_qTQG1-.js +0 -1
- package/dist/gateway/static/root/assets/earth-BMhZtzcj.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-xYMxjztG.js +0 -1
- package/dist/gateway/static/root/assets/index-Bn4t_KuI.js +0 -11
- package/dist/gateway/static/root/assets/index-CKIirf4W.css +0 -1
- package/dist/gateway/static/root/assets/local-session-drafts-DILglF8O.js +0 -4
- package/dist/gateway/static/root/assets/markdown-view-C-DHb3Io.css +0 -1
- package/dist/gateway/static/root/assets/messages-DYDySzn1.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-V4rmgfLB.js +0 -1
- package/dist/gateway/static/root/assets/notes-api-UXC3eyeM.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-f8XcAs9b.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-Cen6HXw_.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-_K6grEOt.js +0 -7
- package/dist/gateway/static/root/assets/product-navigation-Co8pLbDP.js +0 -1
- package/dist/gateway/static/root/assets/recording-upload-CBefH7C5.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-C2b1djX_.js +0 -2
- package/dist/gateway/static/root/assets/settings-advanced-gate-Ch9MNvvk.js +0 -1
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-ftr5UzWS.js +0 -2
- package/dist/gateway/static/root/assets/star-BUWJqJ5c.js +0 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DcCc6g7o.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-CgVehTrs.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-GOK8-Bzy.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-BzpV1hq_.js +0 -2
- package/dist/gateway/static/root/assets/video-B6V0GFss.js +0 -1
- package/dist/gateway/static/root/assets/voice-call-context-BM2A4bLz.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CODAQqJn.js +0 -1
- package/dist/packages/browser-control-contract/src/automation.js +0 -213
- package/dist/src/agent/tools/browser-automation-tool.d.ts +0 -194
- package/dist/src/agent/tools/browser-automation-tool.js +0 -243
- package/dist/src/auth/oauth/minimax-cn.d.ts +0 -11
- package/dist/src/auth/oauth/minimax-cn.js +0 -95
- package/dist/src/auth/oauth/minimax.d.ts +0 -8
- package/dist/src/auth/oauth/minimax.js +0 -95
- package/dist/src/browser/automations/index.d.ts +0 -4
- package/dist/src/browser/automations/index.js +0 -4
- package/dist/src/browser/automations/repository.d.ts +0 -17
- package/dist/src/browser/automations/repository.js +0 -81
- package/dist/src/browser/automations/runner.d.ts +0 -17
- package/dist/src/browser/automations/runner.js +0 -265
- package/dist/src/browser/automations/runtime-service.d.ts +0 -8
- package/dist/src/browser/automations/runtime-service.js +0 -38
- package/dist/src/browser/automations/schema.d.ts +0 -227
- package/dist/src/browser/automations/schema.js +0 -201
- package/dist/src/browser/automations/service.d.ts +0 -232
- package/dist/src/browser/automations/service.js +0 -214
- package/dist/src/browser/automations/types.d.ts +0 -105
- package/dist/src/browser/automations/types.js +0 -1
- package/dist/src/browser/recordings/service.d.ts +0 -22
- package/dist/src/browser/recordings/service.js +0 -159
- package/dist/src/gateway/hono/routes/browser-automations.d.ts +0 -3
- package/dist/src/gateway/hono/routes/browser-automations.js +0 -93
- package/dist/src/gateway/hono/routes/browser-recordings.d.ts +0 -3
- package/dist/src/gateway/hono/routes/browser-recordings.js +0 -78
- package/dist/browser-ext/dist/assets/{page-context-DngcqfGf.js → auth-DAIwDtVp.js} +1368 -1368
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>xopc</title>
|
|
7
7
|
<script type="module" crossorigin src="./sidepanel.js"></script>
|
|
8
|
-
<link rel="modulepreload" crossorigin href="./assets/
|
|
9
|
-
<link rel="stylesheet" crossorigin href="./assets/sidepanel-
|
|
8
|
+
<link rel="modulepreload" crossorigin href="./assets/auth-DAIwDtVp.js">
|
|
9
|
+
<link rel="stylesheet" crossorigin href="./assets/sidepanel-lpBGVKwZ.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as strictObject, c as array, K as union, s as literal, I as string, n as discriminatedUnion, u as number, d as boolean, _ as _enum, v as object, e as browserPageContextsInputSchema, A as record$1, L as unknown, J as t,
|
|
1
|
+
import { H as strictObject, c as array, K as union, s as literal, I as string, n as discriminatedUnion, u as number, d as boolean, _ as _enum, v as object, e as browserPageContextsInputSchema, A as record$1, L as unknown, J as t, M as MAX_BROWSER_CONTEXTS_PER_TURN, q as gatewayFetch, p as extensionLocale, w as openDatabase, a as RealtimeClient, R as REALTIME_PROTOCOL_VERSION, b as activeTabId, l as currentTabDescriptor, T as TAB_BINDING_PREFIX, r as getAccessProfile, z as readProfile, D as runWithTabSiteAccess, P as PENDING_CONTEXT_KEY, i as captureTabWithPermission, x as pairGateway, G as setAutoConnectEnabled, y as readPendingBrowserPairing, m as discoverLocalGateway, F as saveExtensionLocalePreference, C as revokeAndForgetProfile, f as cancelPendingBrowserPairing, t as loadExtensionLocalePreference } from './assets/auth-DAIwDtVp.js';
|
|
2
2
|
|
|
3
3
|
const id = string().regex(/^[A-Za-z0-9_-]{1,64}$/);
|
|
4
4
|
const choice = strictObject({ id, label: string().trim().min(1).max(120), description: string().max(500).optional() });
|
|
@@ -58,10 +58,14 @@ const sessionCreationSchema = strictObject({
|
|
|
58
58
|
}).nullable(),
|
|
59
59
|
temporary: boolean(),
|
|
60
60
|
model: string().trim().min(1),
|
|
61
|
-
thinkingLevel: string().min(1)
|
|
61
|
+
thinkingLevel: string().min(1),
|
|
62
|
+
workingDirectory: string().trim().min(1).optional()
|
|
62
63
|
}).refine((value) => value.projectId !== null || value.execution === null, {
|
|
63
64
|
message: "An execution environment requires a project",
|
|
64
65
|
path: ["execution"]
|
|
66
|
+
}).refine((value) => !value.workingDirectory || value.projectId === null, {
|
|
67
|
+
message: "A project controls the working directory",
|
|
68
|
+
path: ["workingDirectory"]
|
|
65
69
|
});
|
|
66
70
|
const attachmentSchema = strictObject({
|
|
67
71
|
id: string().optional(),
|
|
@@ -17689,331 +17693,6 @@ function MicrophonePermission() {
|
|
|
17689
17693
|
] });
|
|
17690
17694
|
}
|
|
17691
17695
|
|
|
17692
|
-
function IconBase({ children, ...props }) {
|
|
17693
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", ...props, children });
|
|
17694
|
-
}
|
|
17695
|
-
function ChevronDownIcon(props) {
|
|
17696
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m7 10 5 5 5-5" }) });
|
|
17697
|
-
}
|
|
17698
|
-
function ArrowDownIcon(props) {
|
|
17699
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 5v14M6 13l6 6 6-6" }) });
|
|
17700
|
-
}
|
|
17701
|
-
function PlusIcon(props) {
|
|
17702
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 5v14M5 12h14" }) });
|
|
17703
|
-
}
|
|
17704
|
-
function SearchIcon(props) {
|
|
17705
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17706
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "11", cy: "11", r: "7" }),
|
|
17707
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m20 20-4-4" })
|
|
17708
|
-
] });
|
|
17709
|
-
}
|
|
17710
|
-
function PaperclipIcon(props) {
|
|
17711
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m20.5 11.5-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 0 1 5.7 5.7l-9.5 9.5A2 2 0 0 1 6 14.8l8.8-8.8" }) });
|
|
17712
|
-
}
|
|
17713
|
-
function PageIcon(props) {
|
|
17714
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17715
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
|
|
17716
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2v6h6M8 13h8M8 17h5" })
|
|
17717
|
-
] });
|
|
17718
|
-
}
|
|
17719
|
-
function SelectionIcon(props) {
|
|
17720
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M8 4H5a1 1 0 0 0-1 1v3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3M8 9h8M8 13h6" }) });
|
|
17721
|
-
}
|
|
17722
|
-
function CameraIcon(props) {
|
|
17723
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17724
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.5 4 16 7h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3Z" }),
|
|
17725
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "13", r: "3" })
|
|
17726
|
-
] });
|
|
17727
|
-
}
|
|
17728
|
-
function FileIcon(props) {
|
|
17729
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17730
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
|
|
17731
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2v6h6" })
|
|
17732
|
-
] });
|
|
17733
|
-
}
|
|
17734
|
-
function EyeIcon(props) {
|
|
17735
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17736
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z" }),
|
|
17737
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "2.5" })
|
|
17738
|
-
] });
|
|
17739
|
-
}
|
|
17740
|
-
function CursorIcon(props) {
|
|
17741
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 3 14 9-6 2-3 6Z" }) });
|
|
17742
|
-
}
|
|
17743
|
-
function SendIcon(props) {
|
|
17744
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 12 7-7 7 7M12 19V5" }) });
|
|
17745
|
-
}
|
|
17746
|
-
function StopIcon(props) {
|
|
17747
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7", y: "7", width: "10", height: "10", rx: "1.5", fill: "currentColor", stroke: "none" }) });
|
|
17748
|
-
}
|
|
17749
|
-
function CopyIcon(props) {
|
|
17750
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17751
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
|
|
17752
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3" })
|
|
17753
|
-
] });
|
|
17754
|
-
}
|
|
17755
|
-
function CheckIcon(props) {
|
|
17756
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 12 4 4L19 6" }) });
|
|
17757
|
-
}
|
|
17758
|
-
function CloseIcon(props) {
|
|
17759
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m6 6 12 12M18 6 6 18" }) });
|
|
17760
|
-
}
|
|
17761
|
-
function SparkleIcon(props) {
|
|
17762
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 3c.7 4.4 3.6 7.3 8 8-4.4.7-7.3 3.6-8 8-.7-4.4-3.6-7.3-8-8 4.4-.7 7.3-3.6 8-8Z" }) });
|
|
17763
|
-
}
|
|
17764
|
-
function AlertIcon(props) {
|
|
17765
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17766
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
17767
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 8v5M12 16.5h.01" })
|
|
17768
|
-
] });
|
|
17769
|
-
}
|
|
17770
|
-
function SettingsIcon(props) {
|
|
17771
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17772
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "3" }),
|
|
17773
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.86 2.86-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1.1V21H9.55v-.1A1.7 1.7 0 0 0 8.5 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.86-2.86.06-.06A1.7 1.7 0 0 0 4.1 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1.1-.4H2V9.55h.4A1.7 1.7 0 0 0 4.1 8.5a1.7 1.7 0 0 0-.34-1.88l-.06-.06L6.56 3.7l.06.06A1.7 1.7 0 0 0 8.5 4.1a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1.1V2h4.05v.4A1.7 1.7 0 0 0 15 4.1a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.86 2.86-.06.06A1.7 1.7 0 0 0 19.4 8.5a1.7 1.7 0 0 0 .6 1 1.7 1.7 0 0 0 1.1.4h.4v4.05h-.4A1.7 1.7 0 0 0 19.4 15Z" })
|
|
17774
|
-
] });
|
|
17775
|
-
}
|
|
17776
|
-
function SunIcon(props) {
|
|
17777
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17778
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "4" }),
|
|
17779
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41" })
|
|
17780
|
-
] });
|
|
17781
|
-
}
|
|
17782
|
-
function GlobeIcon(props) {
|
|
17783
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17784
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
17785
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18" })
|
|
17786
|
-
] });
|
|
17787
|
-
}
|
|
17788
|
-
function MicrophoneIcon(props) {
|
|
17789
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
17790
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "9", y: "2", width: "6", height: "12", rx: "3" }),
|
|
17791
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8" })
|
|
17792
|
-
] });
|
|
17793
|
-
}
|
|
17794
|
-
|
|
17795
|
-
function recordingErrorMessage(cause) {
|
|
17796
|
-
const message = (cause instanceof Error ? cause.message : String(cause)).replace(/^(?:Error:\s*)+/, "");
|
|
17797
|
-
if (message === "RECORDING_PAGE_UNAVAILABLE") return t("recordingChooseWebsite");
|
|
17798
|
-
return message;
|
|
17799
|
-
}
|
|
17800
|
-
function RecordingPanel({ open = false, onClose, onRequiredChange }) {
|
|
17801
|
-
const [session, setSession] = reactExports.useState();
|
|
17802
|
-
const [pages, setPages] = reactExports.useState([]);
|
|
17803
|
-
const [selectedTab, setSelectedTab] = reactExports.useState();
|
|
17804
|
-
const [pagesLoading, setPagesLoading] = reactExports.useState(true);
|
|
17805
|
-
const [busy, setBusy] = reactExports.useState(false);
|
|
17806
|
-
const [error, setError] = reactExports.useState("");
|
|
17807
|
-
const [automation, setAutomation] = reactExports.useState();
|
|
17808
|
-
const [inputs, setInputs] = reactExports.useState({});
|
|
17809
|
-
const [run, setRun] = reactExports.useState();
|
|
17810
|
-
const active = !!session && ["recording", "paused"].includes(session.state);
|
|
17811
|
-
const saved = !!session?.automationId;
|
|
17812
|
-
const syncing = session?.state === "stopped" && !saved;
|
|
17813
|
-
const required = active || syncing || busy || !!run && ["queued", "running"].includes(run.status);
|
|
17814
|
-
const visible = open || required;
|
|
17815
|
-
reactExports.useEffect(() => {
|
|
17816
|
-
onRequiredChange?.(required);
|
|
17817
|
-
return () => onRequiredChange?.(false);
|
|
17818
|
-
}, [required, onRequiredChange]);
|
|
17819
|
-
const api = async (path, init) => {
|
|
17820
|
-
const response = await gatewayFetch(path, init);
|
|
17821
|
-
const data = await response.json();
|
|
17822
|
-
if (!response.ok) throw new Error(typeof data.error === "string" ? data.error : data.error?.message || t("recordingRequestFailed"));
|
|
17823
|
-
return data;
|
|
17824
|
-
};
|
|
17825
|
-
const command = async (operation, tabId) => {
|
|
17826
|
-
const response = await chrome.runtime.sendMessage({ type: "browser/recording-command", operation, ...tabId !== void 0 ? { tabId } : {} });
|
|
17827
|
-
if (!response.ok) throw new Error(response.error);
|
|
17828
|
-
return response.value;
|
|
17829
|
-
};
|
|
17830
|
-
reactExports.useEffect(() => {
|
|
17831
|
-
let disposed = false;
|
|
17832
|
-
if (!visible) return;
|
|
17833
|
-
setPagesLoading(true);
|
|
17834
|
-
const refresh = async (followActive = false) => {
|
|
17835
|
-
try {
|
|
17836
|
-
const tabs = (await chrome.tabs.query({ currentWindow: true })).filter((tab) => tab.id !== void 0 && /^https?:\/\//.test(tab.url ?? ""));
|
|
17837
|
-
if (disposed) return;
|
|
17838
|
-
setPages(tabs);
|
|
17839
|
-
setSelectedTab((current) => followActive && tabs.find((tab) => tab.active)?.id || tabs.find((tab) => tab.id === current)?.id || tabs.find((tab) => tab.active)?.id || (tabs.length === 1 ? tabs[0].id : void 0));
|
|
17840
|
-
} catch (cause) {
|
|
17841
|
-
if (!disposed) setError(recordingErrorMessage(cause));
|
|
17842
|
-
} finally {
|
|
17843
|
-
if (!disposed) setPagesLoading(false);
|
|
17844
|
-
}
|
|
17845
|
-
};
|
|
17846
|
-
const activated = () => {
|
|
17847
|
-
void refresh(true);
|
|
17848
|
-
};
|
|
17849
|
-
const changed = () => {
|
|
17850
|
-
void refresh();
|
|
17851
|
-
};
|
|
17852
|
-
void refresh(true);
|
|
17853
|
-
chrome.tabs.onActivated.addListener(activated);
|
|
17854
|
-
chrome.tabs.onUpdated.addListener(changed);
|
|
17855
|
-
chrome.tabs.onRemoved.addListener(changed);
|
|
17856
|
-
chrome.tabs.onCreated.addListener(changed);
|
|
17857
|
-
return () => {
|
|
17858
|
-
disposed = true;
|
|
17859
|
-
chrome.tabs.onActivated.removeListener(activated);
|
|
17860
|
-
chrome.tabs.onUpdated.removeListener(changed);
|
|
17861
|
-
chrome.tabs.onRemoved.removeListener(changed);
|
|
17862
|
-
chrome.tabs.onCreated.removeListener(changed);
|
|
17863
|
-
};
|
|
17864
|
-
}, [visible]);
|
|
17865
|
-
reactExports.useEffect(() => {
|
|
17866
|
-
let disposed = false;
|
|
17867
|
-
const refresh = () => void command("status").then((sessions) => {
|
|
17868
|
-
if (!disposed) setSession(sessions.find((item) => ["recording", "paused"].includes(item.state)) ?? sessions.at(-1));
|
|
17869
|
-
}).catch((cause) => {
|
|
17870
|
-
if (!disposed) setError(recordingErrorMessage(cause));
|
|
17871
|
-
});
|
|
17872
|
-
refresh();
|
|
17873
|
-
const timer = window.setInterval(refresh, 1500);
|
|
17874
|
-
return () => {
|
|
17875
|
-
disposed = true;
|
|
17876
|
-
window.clearInterval(timer);
|
|
17877
|
-
};
|
|
17878
|
-
}, []);
|
|
17879
|
-
reactExports.useEffect(() => {
|
|
17880
|
-
if (!visible) return;
|
|
17881
|
-
if (!session?.automationId) {
|
|
17882
|
-
setAutomation(void 0);
|
|
17883
|
-
return;
|
|
17884
|
-
}
|
|
17885
|
-
let disposed = false;
|
|
17886
|
-
void api(`/api/browser/automations/${encodeURIComponent(session.automationId)}`).then((data) => {
|
|
17887
|
-
if (disposed) return;
|
|
17888
|
-
const saved2 = data.automation;
|
|
17889
|
-
setAutomation(saved2);
|
|
17890
|
-
setInputs(Object.fromEntries(Object.entries(saved2.definition.inputs).map(([key, spec]) => [key, spec.default ?? ""])));
|
|
17891
|
-
}).catch((cause) => {
|
|
17892
|
-
if (!disposed) setError(recordingErrorMessage(cause));
|
|
17893
|
-
});
|
|
17894
|
-
return () => {
|
|
17895
|
-
disposed = true;
|
|
17896
|
-
};
|
|
17897
|
-
}, [session?.automationId, visible]);
|
|
17898
|
-
reactExports.useEffect(() => {
|
|
17899
|
-
if (!run || !["queued", "running"].includes(run.status)) return;
|
|
17900
|
-
let disposed = false;
|
|
17901
|
-
const timer = window.setInterval(() => {
|
|
17902
|
-
void api(`/api/browser/automation-runs/${run.id}`).then((data) => {
|
|
17903
|
-
if (!disposed) setRun(data.run);
|
|
17904
|
-
}).catch((cause) => {
|
|
17905
|
-
if (!disposed) setError(recordingErrorMessage(cause));
|
|
17906
|
-
});
|
|
17907
|
-
}, 1e3);
|
|
17908
|
-
return () => {
|
|
17909
|
-
disposed = true;
|
|
17910
|
-
window.clearInterval(timer);
|
|
17911
|
-
};
|
|
17912
|
-
}, [run]);
|
|
17913
|
-
const runSaved = async () => {
|
|
17914
|
-
if (!automation) return;
|
|
17915
|
-
setBusy(true);
|
|
17916
|
-
setError("");
|
|
17917
|
-
try {
|
|
17918
|
-
const data = await api(`/api/browser/automations/${automation.id}/run`, {
|
|
17919
|
-
method: "POST",
|
|
17920
|
-
headers: { "Content-Type": "application/json" },
|
|
17921
|
-
body: JSON.stringify({ inputs, revision: automation.revision, clientRequestId: crypto.randomUUID() })
|
|
17922
|
-
});
|
|
17923
|
-
setRun(data.run);
|
|
17924
|
-
} catch (cause) {
|
|
17925
|
-
setError(recordingErrorMessage(cause));
|
|
17926
|
-
} finally {
|
|
17927
|
-
setBusy(false);
|
|
17928
|
-
}
|
|
17929
|
-
};
|
|
17930
|
-
const act = async (operation) => {
|
|
17931
|
-
setBusy(true);
|
|
17932
|
-
setError("");
|
|
17933
|
-
try {
|
|
17934
|
-
if (operation === "start") {
|
|
17935
|
-
if (selectedTab === void 0) return;
|
|
17936
|
-
await chrome.tabs.update(selectedTab, { active: true });
|
|
17937
|
-
setRun(void 0);
|
|
17938
|
-
}
|
|
17939
|
-
setSession(await command(operation, operation === "start" ? selectedTab : void 0));
|
|
17940
|
-
} catch (cause) {
|
|
17941
|
-
setError(recordingErrorMessage(cause));
|
|
17942
|
-
} finally {
|
|
17943
|
-
setBusy(false);
|
|
17944
|
-
}
|
|
17945
|
-
};
|
|
17946
|
-
const page = pages.find((tab) => tab.id === (active || syncing ? session.tabId : selectedTab));
|
|
17947
|
-
const status = active ? session.state === "paused" ? "recordingPaused" : "recordingActive" : saved ? "recordingSavedShort" : session?.state === "stopped" ? "recordingSaving" : session?.state === "interrupted" ? "recordingInterrupted" : "recordingReady";
|
|
17948
|
-
const runStatus = run?.businessOutcome === "unknown" ? t("recordingUnknown") : run?.status === "succeeded" ? t("recordingCompleted") : run?.status === "cancelled" ? t("recordingStopped") : run?.status === "failed" ? recordingErrorMessage(run.error || t("recordingRequestFailed")) : t("recordingRunning");
|
|
17949
|
-
if (!visible) return null;
|
|
17950
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("section", { id: "browser-recording-panel", className: "recording-panel", "data-state": active ? session.state : syncing ? "syncing" : saved ? "saved" : "ready", "aria-label": t("recordingTitle"), "aria-busy": busy, children: [
|
|
17951
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("header", { className: "recording-heading", children: [
|
|
17952
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "recording-icon", children: saved ? /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(PageIcon, {}) }),
|
|
17953
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "recording-heading-text", children: [
|
|
17954
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: saved && automation ? automation.definition.name : t("recordingTitle") }),
|
|
17955
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: active ? t("recordingActiveHelp") : saved ? t("recordingSaved") : t("recordingDescription") })
|
|
17956
|
-
] }),
|
|
17957
|
-
(active || saved || session?.state === "stopped" || session?.state === "interrupted" || selectedTab !== void 0) && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: `recording-status ${active && session.state === "recording" ? "is-recording" : saved ? "is-saved" : ""}`, role: "status", children: [
|
|
17958
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("i", {}),
|
|
17959
|
-
t(status)
|
|
17960
|
-
] }),
|
|
17961
|
-
!required && onClose && /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "header-icon-button", onClick: onClose, "aria-label": t("recordingHide"), title: t("recordingHide"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(CloseIcon, {}) })
|
|
17962
|
-
] }),
|
|
17963
|
-
!active && !syncing && (!saved || selectedTab === void 0) && (pagesLoading ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "recording-skeleton" }) : pages.length ? /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: "recording-target-label", children: [
|
|
17964
|
-
t("recordingTarget"),
|
|
17965
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("select", { className: "recording-page-select", value: selectedTab ?? "", disabled: busy, onChange: (event) => {
|
|
17966
|
-
setSelectedTab(Number(event.target.value));
|
|
17967
|
-
setError("");
|
|
17968
|
-
}, children: [
|
|
17969
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", disabled: true, children: t("recordingChoosePage") }),
|
|
17970
|
-
pages.map((tab) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: tab.id, children: tab.title || new URL(tab.url).hostname }, tab.id))
|
|
17971
|
-
] })
|
|
17972
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "recording-hint", children: t("recordingChooseWebsite") })),
|
|
17973
|
-
page && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "recording-page", children: [
|
|
17974
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(GlobeIcon, {}),
|
|
17975
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: new URL(page.url).hostname }),
|
|
17976
|
-
active && /* @__PURE__ */ jsxRuntimeExports.jsx("strong", { children: page.title })
|
|
17977
|
-
] }),
|
|
17978
|
-
syncing && /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "recording-sync", role: "status", children: [
|
|
17979
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "recording-spinner", "aria-hidden": "true" }),
|
|
17980
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t("recordingSyncing") })
|
|
17981
|
-
] }),
|
|
17982
|
-
session?.state === "interrupted" && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "recording-hint", children: t("recordingInterruptedHelp") }),
|
|
17983
|
-
automation && Object.keys(automation.definition.inputs).length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs("details", { className: "recording-parameters", children: [
|
|
17984
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("summary", { children: t("recordingParameters") }),
|
|
17985
|
-
Object.entries(automation.definition.inputs).map(([key, spec]) => /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: `recording-input ${spec.type === "boolean" ? "is-checkbox" : ""}`, children: [
|
|
17986
|
-
spec.description || key,
|
|
17987
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
17988
|
-
"input",
|
|
17989
|
-
{
|
|
17990
|
-
type: spec.type === "boolean" ? "checkbox" : spec.type === "number" ? "number" : "text",
|
|
17991
|
-
checked: spec.type === "boolean" ? !!inputs[key] : void 0,
|
|
17992
|
-
value: spec.type === "boolean" ? void 0 : String(inputs[key] ?? ""),
|
|
17993
|
-
onChange: (event) => setInputs((current) => ({ ...current, [key]: spec.type === "boolean" ? event.target.checked : spec.type === "number" ? Number(event.target.value) : event.target.value }))
|
|
17994
|
-
}
|
|
17995
|
-
)
|
|
17996
|
-
] }, key))
|
|
17997
|
-
] }),
|
|
17998
|
-
!syncing && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "recording-actions", children: active ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
17999
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "recording-button", disabled: busy, onClick: () => void act(session.state === "paused" ? "resume" : "pause"), children: t(session.state === "paused" ? "recordingResume" : "recordingPause") }),
|
|
18000
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "recording-button is-primary", disabled: busy, onClick: () => void act("finish"), children: [
|
|
18001
|
-
busy ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "recording-spinner", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(StopIcon, {}),
|
|
18002
|
-
t("recordingFinish")
|
|
18003
|
-
] })
|
|
18004
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
18005
|
-
automation && /* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "recording-button is-primary", disabled: busy || !!run && ["queued", "running"].includes(run.status), onClick: () => void runSaved(), children: t("recordingRun") }),
|
|
18006
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: `recording-button ${saved ? "" : "is-primary"}`, disabled: busy || pagesLoading || selectedTab === void 0, onClick: () => void act("start"), children: [
|
|
18007
|
-
busy ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "recording-spinner", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "recording-button-dot" }),
|
|
18008
|
-
t(saved ? "recordingNew" : "recordingStart")
|
|
18009
|
-
] })
|
|
18010
|
-
] }) }),
|
|
18011
|
-
run && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "recording-run-status", role: "status", children: runStatus }),
|
|
18012
|
-
run?.status === "succeeded" && /* @__PURE__ */ jsxRuntimeExports.jsx("pre", { className: "recording-result", children: typeof run.result === "object" && run.result !== null ? Object.entries(run.result).map(([key, value]) => `${key}: ${typeof value === "string" ? value : JSON.stringify(value)}`).join("\n") : String(run.result ?? "") }),
|
|
18013
|
-
(error || session?.error) && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "recording-error", role: "alert", children: recordingErrorMessage(error || session.error) })
|
|
18014
|
-
] });
|
|
18015
|
-
}
|
|
18016
|
-
|
|
18017
17696
|
function appendPageContext(pages, page) {
|
|
18018
17697
|
const others = pages.filter((item) => item.tabId !== page.tabId || Boolean(item.context.selection) !== Boolean(page.context.selection));
|
|
18019
17698
|
if (others.length >= MAX_BROWSER_CONTEXTS_PER_TURN) throw new Error(t("errorPageLimit", String(MAX_BROWSER_CONTEXTS_PER_TURN)));
|
|
@@ -18328,6 +18007,109 @@ class PcmWavRecorder {
|
|
|
18328
18007
|
}
|
|
18329
18008
|
}
|
|
18330
18009
|
|
|
18010
|
+
function IconBase({ children, ...props }) {
|
|
18011
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round", ...props, children });
|
|
18012
|
+
}
|
|
18013
|
+
function ChevronDownIcon(props) {
|
|
18014
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m7 10 5 5 5-5" }) });
|
|
18015
|
+
}
|
|
18016
|
+
function ArrowDownIcon(props) {
|
|
18017
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 5v14M6 13l6 6 6-6" }) });
|
|
18018
|
+
}
|
|
18019
|
+
function PlusIcon(props) {
|
|
18020
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 5v14M5 12h14" }) });
|
|
18021
|
+
}
|
|
18022
|
+
function SearchIcon(props) {
|
|
18023
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18024
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "11", cy: "11", r: "7" }),
|
|
18025
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m20 20-4-4" })
|
|
18026
|
+
] });
|
|
18027
|
+
}
|
|
18028
|
+
function PaperclipIcon(props) {
|
|
18029
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m20.5 11.5-8.9 8.9a6 6 0 0 1-8.5-8.5l9.5-9.5a4 4 0 0 1 5.7 5.7l-9.5 9.5A2 2 0 0 1 6 14.8l8.8-8.8" }) });
|
|
18030
|
+
}
|
|
18031
|
+
function PageIcon(props) {
|
|
18032
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18033
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
|
|
18034
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2v6h6M8 13h8M8 17h5" })
|
|
18035
|
+
] });
|
|
18036
|
+
}
|
|
18037
|
+
function SelectionIcon(props) {
|
|
18038
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M8 4H5a1 1 0 0 0-1 1v3M16 4h3a1 1 0 0 1 1 1v3M20 16v3a1 1 0 0 1-1 1h-3M8 20H5a1 1 0 0 1-1-1v-3M8 9h8M8 13h6" }) });
|
|
18039
|
+
}
|
|
18040
|
+
function CameraIcon(props) {
|
|
18041
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18042
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.5 4 16 7h3a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3Z" }),
|
|
18043
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "13", r: "3" })
|
|
18044
|
+
] });
|
|
18045
|
+
}
|
|
18046
|
+
function FileIcon(props) {
|
|
18047
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18048
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z" }),
|
|
18049
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14 2v6h6" })
|
|
18050
|
+
] });
|
|
18051
|
+
}
|
|
18052
|
+
function EyeIcon(props) {
|
|
18053
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18054
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z" }),
|
|
18055
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "2.5" })
|
|
18056
|
+
] });
|
|
18057
|
+
}
|
|
18058
|
+
function CursorIcon(props) {
|
|
18059
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 3 14 9-6 2-3 6Z" }) });
|
|
18060
|
+
}
|
|
18061
|
+
function SendIcon(props) {
|
|
18062
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 12 7-7 7 7M12 19V5" }) });
|
|
18063
|
+
}
|
|
18064
|
+
function StopIcon(props) {
|
|
18065
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "7", y: "7", width: "10", height: "10", rx: "1.5", fill: "currentColor", stroke: "none" }) });
|
|
18066
|
+
}
|
|
18067
|
+
function CopyIcon(props) {
|
|
18068
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18069
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
|
|
18070
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3" })
|
|
18071
|
+
] });
|
|
18072
|
+
}
|
|
18073
|
+
function CheckIcon(props) {
|
|
18074
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m5 12 4 4L19 6" }) });
|
|
18075
|
+
}
|
|
18076
|
+
function CloseIcon(props) {
|
|
18077
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "m6 6 12 12M18 6 6 18" }) });
|
|
18078
|
+
}
|
|
18079
|
+
function SparkleIcon(props) {
|
|
18080
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(IconBase, { ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 3c.7 4.4 3.6 7.3 8 8-4.4.7-7.3 3.6-8 8-.7-4.4-3.6-7.3-8-8 4.4-.7 7.3-3.6 8-8Z" }) });
|
|
18081
|
+
}
|
|
18082
|
+
function AlertIcon(props) {
|
|
18083
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18084
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
18085
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 8v5M12 16.5h.01" })
|
|
18086
|
+
] });
|
|
18087
|
+
}
|
|
18088
|
+
function SettingsIcon(props) {
|
|
18089
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18090
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "3" }),
|
|
18091
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.86 2.86-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1.1V21H9.55v-.1A1.7 1.7 0 0 0 8.5 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.86-2.86.06-.06A1.7 1.7 0 0 0 4.1 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1.1-.4H2V9.55h.4A1.7 1.7 0 0 0 4.1 8.5a1.7 1.7 0 0 0-.34-1.88l-.06-.06L6.56 3.7l.06.06A1.7 1.7 0 0 0 8.5 4.1a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1.1V2h4.05v.4A1.7 1.7 0 0 0 15 4.1a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.86 2.86-.06.06A1.7 1.7 0 0 0 19.4 8.5a1.7 1.7 0 0 0 .6 1 1.7 1.7 0 0 0 1.1.4h.4v4.05h-.4A1.7 1.7 0 0 0 19.4 15Z" })
|
|
18092
|
+
] });
|
|
18093
|
+
}
|
|
18094
|
+
function SunIcon(props) {
|
|
18095
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18096
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "4" }),
|
|
18097
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41" })
|
|
18098
|
+
] });
|
|
18099
|
+
}
|
|
18100
|
+
function GlobeIcon(props) {
|
|
18101
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18102
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
18103
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M3 12h18M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18" })
|
|
18104
|
+
] });
|
|
18105
|
+
}
|
|
18106
|
+
function MicrophoneIcon(props) {
|
|
18107
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconBase, { ...props, children: [
|
|
18108
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("rect", { x: "9", y: "2", width: "6", height: "12", rx: "3" }),
|
|
18109
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8" })
|
|
18110
|
+
] });
|
|
18111
|
+
}
|
|
18112
|
+
|
|
18331
18113
|
function VoiceInput({ disabled, onTranscript, onBusy }) {
|
|
18332
18114
|
const [state, setState] = reactExports.useState("idle");
|
|
18333
18115
|
const [error, setError] = reactExports.useState("");
|
|
@@ -46477,8 +46259,6 @@ function SidePanelApp({ initialLocale, initialTheme }) {
|
|
|
46477
46259
|
const [nextOrigin, setNextOrigin] = reactExports.useState();
|
|
46478
46260
|
const [locale, setLocale] = reactExports.useState(initialLocale);
|
|
46479
46261
|
const [theme, setTheme] = reactExports.useState(initialTheme);
|
|
46480
|
-
const [recordingOpen, setRecordingOpen] = reactExports.useState(false);
|
|
46481
|
-
const [recordingRequired, setRecordingRequired] = reactExports.useState(false);
|
|
46482
46262
|
const [settingsOpen, setSettingsOpen] = reactExports.useState(false);
|
|
46483
46263
|
const initializationStarted = reactExports.useRef(false);
|
|
46484
46264
|
const pairingStarted = reactExports.useRef(false);
|
|
@@ -46577,7 +46357,6 @@ function SidePanelApp({ initialLocale, initialTheme }) {
|
|
|
46577
46357
|
async function disconnect() {
|
|
46578
46358
|
await revokeAndForgetProfile();
|
|
46579
46359
|
setProfile(void 0);
|
|
46580
|
-
setRecordingOpen(false);
|
|
46581
46360
|
setLocalInvitation("");
|
|
46582
46361
|
setState("unpaired");
|
|
46583
46362
|
}
|
|
@@ -46619,19 +46398,6 @@ function SidePanelApp({ initialLocale, initialTheme }) {
|
|
|
46619
46398
|
state === "pairing" ? t("statusPairing") : state === "loading" ? t("statusStarting") : t("statusSetupRequired")
|
|
46620
46399
|
] }) : null,
|
|
46621
46400
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "header-actions", children: [
|
|
46622
|
-
state === "online" && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46623
|
-
"button",
|
|
46624
|
-
{
|
|
46625
|
-
className: "header-icon-button",
|
|
46626
|
-
onClick: () => setRecordingOpen((open) => !open),
|
|
46627
|
-
title: t("recordingTitle"),
|
|
46628
|
-
"aria-label": t("recordingTitle"),
|
|
46629
|
-
"aria-expanded": recordingOpen || recordingRequired,
|
|
46630
|
-
"aria-controls": "browser-recording-panel",
|
|
46631
|
-
disabled: recordingRequired,
|
|
46632
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(PageIcon, {})
|
|
46633
|
-
}
|
|
46634
|
-
),
|
|
46635
46401
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
46636
46402
|
"button",
|
|
46637
46403
|
{
|
|
@@ -46717,10 +46483,7 @@ function SidePanelApp({ initialLocale, initialTheme }) {
|
|
|
46717
46483
|
invitation ? /* @__PURE__ */ jsxRuntimeExports.jsx("button", { onClick: () => void cancelPairing(), disabled: state === "pairing", children: t("cancelPairing") }) : null
|
|
46718
46484
|
] })
|
|
46719
46485
|
] }) : null
|
|
46720
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.
|
|
46721
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(RecordingPanel, { open: recordingOpen, onClose: () => setRecordingOpen(false), onRequiredChange: setRecordingRequired }),
|
|
46722
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ChatPanel, { gatewayId: profile.gatewayId, deviceId: profile.deviceId }, JSON.stringify([profile.gatewayId, profile.gatewayUrl, profile.deviceId]))
|
|
46723
|
-
] })
|
|
46486
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChatPanel, { gatewayId: profile.gatewayId, deviceId: profile.deviceId }, JSON.stringify([profile.gatewayId, profile.gatewayUrl, profile.deviceId])) })
|
|
46724
46487
|
] });
|
|
46725
46488
|
}
|
|
46726
46489
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"minimum_chrome_version": "120",
|
|
4
4
|
"default_locale": "en",
|
|
5
5
|
"name": "__MSG_appName__",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.442",
|
|
7
7
|
"description": "__MSG_appDescription__",
|
|
8
8
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqnpr4vpLC/nmvy+wiOWk3SWlp2nEZkFijfk8ivGw7StNZgCK90nOMvwhdEtlkk3GOWDvdVnq8HxCsM3UNQ8FnGUyerpH1FJXqXuradxeHf8ZxFjiQU/mIWfnKbUuONWQORon3/pigyoXoK/VUXgg0Wbm/rbVwsS0bv+25R6m+mZgBspOLeKuoH7ivhL+48WV6POtMBsFPZweY26477EM7ukh+56Ff5ENevB8ymxBBn7qK5ZoeZd2a23U8ioX5TsHfe6fnrjitPWjIxD8G0NoKQxcaa/Mo+xs+T6UiLKxP0wjz5bm7jB5H+CXtkRJqzBWUB0h+RSLJckzZfA8BAJrRwIDAQAB",
|
|
9
9
|
"permissions": [
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "telegram",
|
|
3
3
|
"name": "Telegram Channel",
|
|
4
4
|
"description": "Bundled Telegram Bot channel (private workspace sources; ships inside @xopcai/xopc dist/)",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.442",
|
|
6
6
|
"kind": "channel",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"channels": [
|
package/dist/gateway/static/root/assets/{activity-store-t5c6XavH.js → activity-store-CuPXAoLe.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./locale-store-
|
|
1
|
+
import{p as e}from"./locale-store-Bld7_m-Q.js";var t=`xopc.activity-center.v2`,n=80,r=720*60*60*1e3;function i(e){return e===`error`?`failed`:e===`warning`?`attention`:`done`}function a(){if(!(typeof window>`u`))return window.location.hash.replace(/^#/,``)||`${window.location.pathname}${window.location.search}`||void 0}function o(){try{let e=globalThis.localStorage?.getItem(t);if(!e)return[];let i=JSON.parse(e);if(!Array.isArray(i.items))return[];let a=Date.now()-r,o=i.items.filter(e=>e&&typeof e.id==`string`&&typeof e.title==`string`).filter(e=>Number.isFinite(e.updatedAt)&&e.updatedAt>=a).slice(0,n);return o.length!==i.items.length&&s(o),o}catch{return[]}}function s(e){try{globalThis.localStorage?.setItem(t,JSON.stringify({items:e}))}catch{}}function c(e){return`${e.toString(36)}-${Math.random().toString(36).slice(2,8)}`}var l=e(e=>({items:o(),add:t=>e(e=>{let r=t.title.trim();if(!r)return e;let o=Date.now(),l=t.tone??`info`,u=t.dedupeKey?e.items.findIndex(e=>e.dedupeKey===t.dedupeKey):-1,d=[{id:u>=0?e.items[u].id:c(o),tone:l,status:t.status??i(l),title:r,message:t.message?.trim()||void 0,source:t.source?.trim()||void 0,href:t.href??a(),dedupeKey:t.dedupeKey,createdAt:u>=0?e.items[u].createdAt:o,updatedAt:o,read:t.read??!1,occurrences:u>=0?e.items[u].occurrences+1:1},...u>=0?e.items.filter((e,t)=>t!==u):e.items].slice(0,n);return s(d),{items:d}}),markAllRead:()=>e(e=>{let t=e.items.map(e=>({...e,read:!0}));return s(t),{items:t}}),markRead:t=>e(e=>{let n=e.items.map(e=>e.id===t?{...e,read:!0}:e);return s(n),{items:n}}),remove:t=>e(e=>{let n=e.items.filter(e=>e.id!==t);return s(n),{items:n}}),clearFinished:()=>e(e=>{let t=e.items.filter(e=>e.status!==`done`);return s(t),{items:t}}),clear:()=>{s([]),e({items:[]})}}));function u(e){l.getState().add(e)}export{l as n,u as t};
|