yepanywhere 0.9.0 → 0.9.2
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/bundled/@yep-anywhere/shared/dist/__tests__/long-context-effort-warning.test.js +19 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/long-context-effort-warning.test.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/__tests__/model-prices.test.js +12 -0
- package/bundled/@yep-anywhere/shared/dist/__tests__/model-prices.test.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts +2 -2
- package/bundled/@yep-anywhere/shared/dist/app-types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/app-types.js +5 -5
- package/bundled/@yep-anywhere/shared/dist/app-types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.d.ts +21 -0
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.js +22 -1
- package/bundled/@yep-anywhere/shared/dist/artifact-viewer.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts +6 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js +6 -0
- package/bundled/@yep-anywhere/shared/dist/capability-ids.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/claude-sdk-schema/tool/ToolResultSchemas.d.ts +2 -2
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.d.ts +41 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.js +280 -0
- package/bundled/@yep-anywhere/shared/dist/find/documentFind.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.d.ts +2 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.js +5 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.generated.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.js +59 -0
- package/bundled/@yep-anywhere/shared/dist/find/frameFindAgent.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.d.ts +46 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.js +45 -0
- package/bundled/@yep-anywhere/shared/dist/find/protocol.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/index.d.ts +4 -2
- package/bundled/@yep-anywhere/shared/dist/index.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/index.js +3 -1
- package/bundled/@yep-anywhere/shared/dist/index.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.d.ts +11 -11
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.js +26 -9
- package/bundled/@yep-anywhere/shared/dist/long-context-effort-warning.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/model-prices.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/model-prices.js +9 -2
- package/bundled/@yep-anywhere/shared/dist/model-prices.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/pdfjs.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.d.ts.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.js +7 -0
- package/bundled/@yep-anywhere/shared/dist/pdfjs.js.map +1 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts +20 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js +22 -0
- package/bundled/@yep-anywhere/shared/dist/server-capabilities.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js +7 -10
- package/bundled/@yep-anywhere/shared/dist/skill-invocations.js.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.d.ts +7 -0
- package/bundled/@yep-anywhere/shared/dist/types.d.ts.map +1 -1
- package/bundled/@yep-anywhere/shared/dist/types.js.map +1 -1
- package/bundled/@yep-anywhere/shared/package.json +1 -1
- package/client-dist/assets/AboutSettings-CCzudbSj.js +1 -0
- package/client-dist/assets/{ActivityPage-FgSG_9Sl.js → ActivityPage-Bn0LbMgE.js} +1 -1
- package/client-dist/assets/{AgentContextSettings-BfTCI7qG.js → AgentContextSettings-DI8jQVIx.js} +3 -3
- package/client-dist/assets/AgentsPage-Ci_iJt8T.js +2 -0
- package/client-dist/assets/App-rFnK5pnF.js +2 -0
- package/client-dist/assets/AppearanceSettings-DTYVt0W5.js +2 -0
- package/client-dist/assets/AppsSettings-hbh_sguk.js +1 -0
- package/client-dist/assets/AttachmentChip-BFve3lTD.js +1 -0
- package/client-dist/assets/{AuthContext-CVsoMulX.js → AuthContext-DmXjW0be.js} +1 -1
- package/client-dist/assets/{BangCommandDisplayObject-B8KrHDzH.js → BangCommandDisplayObject-BH2KRGnc.js} +1 -1
- package/client-dist/assets/BangCommandsPage-MfkuL8yS.js +1 -0
- package/client-dist/assets/BrowserDebugToolbarButton-BPghQu17.js +1 -0
- package/client-dist/assets/{CacheMissBillingSettings-Bfqlk9rA.js → CacheMissBillingSettings-rUgC-_DD.js} +2 -2
- package/client-dist/assets/{CodexUpdatePrompt-ChHtbla-.js → CodexUpdatePrompt-mT9K-f1e.js} +1 -1
- package/client-dist/assets/{CommittedRangeInput-C3Z7YUlS.js → CommittedRangeInput-BwuV6Q6c.js} +1 -1
- package/client-dist/assets/{CommittedRangeNumberInput-D497_5ff.js → CommittedRangeNumberInput-C5YSVltB.js} +1 -1
- package/client-dist/assets/ComputerControlSettings-MWIdP7SS.js +1 -0
- package/client-dist/assets/{ConversationPreviewPage-CTWx9N3v.js → ConversationPreviewPage-B47r7mUF.js} +2 -2
- package/client-dist/assets/DevelopmentSettings-BEAy_xq-.js +1 -0
- package/client-dist/assets/DevicesSettings-DKQOZkRN.js +1 -0
- package/client-dist/assets/EmulatorPage-DlsPq3nR.js +1 -0
- package/client-dist/assets/EmulatorSettings-C6Ye1k_Y.js +1 -0
- package/client-dist/assets/EnvironmentSettings-ou8UNqTa.js +1 -0
- package/client-dist/assets/FilePage-Cw2PaO5H.js +1 -0
- package/client-dist/assets/FilterDropdown-CACc6ysA.js +1 -0
- package/client-dist/assets/FilterDropdown-D11gXriH.css +1 -0
- package/client-dist/assets/FloatingActionButton-Bl1Eumxh.js +1 -0
- package/client-dist/assets/{GitStatusPage-879aktqc.js → GitStatusPage-CLTkgnDI.js} +3 -3
- package/client-dist/assets/GlobalSessionsPage-Bvzs4zmW.js +2 -0
- package/client-dist/assets/GlobalSessionsPage-dlTB6crv.css +1 -0
- package/client-dist/assets/{HeartbeatTextArea-CKxL-bdJ.js → HeartbeatTextArea-CtP5kx9R.js} +1 -1
- package/client-dist/assets/HostIdentityContext-DA7dMF-y.js +1 -0
- package/client-dist/assets/HostsPage-CBOYGC2-.js +1 -0
- package/client-dist/assets/{InboxContext-opkOiXDB.js → InboxContext-8PXoTbK1.js} +1 -1
- package/client-dist/assets/InboxPage-DWl7uzdw.js +1 -0
- package/client-dist/assets/IssueSettings-BVljRpuD.js +1 -0
- package/client-dist/assets/IssuesPage-BFxgsMkf.js +1 -0
- package/client-dist/assets/LifecycleWebhooksSettings-Qw_dN3F3.js +1 -0
- package/client-dist/assets/{LocalAccessSettings-BpmNC9pI.js → LocalAccessSettings-SWirs75o.js} +3 -3
- package/client-dist/assets/LocalMediaModal-B3KXtyEB.css +1 -0
- package/client-dist/assets/LocalMediaModal-B9eHVx6y.js +14 -0
- package/client-dist/assets/{LoginPage-Cu7cX9wS.js → LoginPage-CYWqVJ95.js} +1 -1
- package/client-dist/assets/{MessageAge-Cd1C0-Kr.js → MessageAge-CaPpa1nH.js} +1 -1
- package/client-dist/assets/{MessageDeliverySettings-B_9VqCMP.js → MessageDeliverySettings-BUSuGKlc.js} +2 -2
- package/client-dist/assets/MessageInput-a13ZPAHv.js +3 -0
- package/client-dist/assets/MessageInputToolbar-BIL_6i7G.css +1 -0
- package/client-dist/assets/MessageInputToolbar-CQGTnVea.js +58 -0
- package/client-dist/assets/MessageList-C7kAuWKg.js +4 -0
- package/client-dist/assets/MessageList-rD5OPsAJ.css +1 -0
- package/client-dist/assets/Modal-ClSjJagX.js +15 -0
- package/client-dist/assets/ModelSettings-Dnd4yzmI.js +1 -0
- package/client-dist/assets/NavigationLayout-BTFsWVtE.js +2 -0
- package/client-dist/assets/NewSessionPage-BfiAS-Mo.js +1 -0
- package/client-dist/assets/NotificationsSettings-B1ugQIp-.js +1 -0
- package/client-dist/assets/PageHeader-BjwH2pWD.js +1 -0
- package/client-dist/assets/PerformanceSettings-jJYF9SPY.js +1 -0
- package/client-dist/assets/{ProjectSessionDefaultsModal-Dq2_xDka.js → ProjectSessionDefaultsModal-G_0uxJEv.js} +1 -1
- package/client-dist/assets/ProjectTemplatesSettings-BQTCV3-3.js +1 -0
- package/client-dist/assets/ProjectsPage-suTd8s9l.js +1 -0
- package/client-dist/assets/ProviderBadge-P0VTI71n.js +1 -0
- package/client-dist/assets/{ProviderChildSessionDetail-tWrpaB_X.js → ProviderChildSessionDetail-D0472EW8.js} +35 -35
- package/client-dist/assets/ProviderChildSessionPage-9__sgY14.js +1 -0
- package/client-dist/assets/ProvidersSettings-Bwzy73Rk.js +1 -0
- package/client-dist/assets/{RecapAfterSecondsControl-qU0RMrUX.js → RecapAfterSecondsControl-CxuXyFSr.js} +1 -1
- package/client-dist/assets/{RelayProtocol-DjpPJk64.js → RelayProtocol-BpdH0COG.js} +1 -1
- package/client-dist/assets/RemoteAccessSettings-Dn7KB5nK.js +1 -0
- package/client-dist/assets/RemoteExecutorsSettings-Cjl4Y2rB.js +1 -0
- package/client-dist/assets/SchemaValidationContext-57RCj4c4.js +1 -0
- package/client-dist/assets/{SearchPreview-B25ksFLA.js → SearchPreview-OzVFWPJZ.js} +1 -1
- package/client-dist/assets/{SessionHeader.module-Co9s-JR3.js → SessionHeader.module-BpaFAQ-S.js} +1 -1
- package/client-dist/assets/SessionPage-BYthaEfZ.js +50 -0
- package/client-dist/assets/SessionPage-CXXEAwu2.css +1 -0
- package/client-dist/assets/{SettingsItem-B_rM9Vhi.js → SettingsItem-C9Vh5p7F.js} +1 -1
- package/client-dist/assets/{SettingsSection-DOwc_RwX.js → SettingsSection-BaPzETK6.js} +1 -1
- package/client-dist/assets/SourceControlSettings-DnqLg0db.js +1 -0
- package/client-dist/assets/{SourceFileHeaderActions-3_76js_o.js → SourceFileHeaderActions-PjhUGnn6.js} +1 -1
- package/client-dist/assets/SpeechControlMenu-BYVdEa3C.js +2 -0
- package/client-dist/assets/{SpeechSettings-BT4TnSgr.js → SpeechSettings-B6LkqfSK.js} +2 -2
- package/client-dist/assets/{SpeechSmartTurnControls-vIZ8a7Lb.js → SpeechSmartTurnControls-LPq9wBaM.js} +1 -1
- package/client-dist/assets/StorageSettings-DtsJnYaz.js +1 -0
- package/client-dist/assets/{ThinkingControls-CbZcYobp.js → ThinkingControls-DXbxdJRi.js} +1 -1
- package/client-dist/assets/ToolbarSettings-Nb2BKpnk.js +1 -0
- package/client-dist/assets/UsersSettings-BdvqmyqK.js +1 -0
- package/client-dist/assets/ViewerModePage-CfJJA5GL.css +1 -0
- package/client-dist/assets/ViewerModePage-DzRIpuYF.js +1 -0
- package/client-dist/assets/{VoiceInputButton-japn0Kx_.js → VoiceInputButton-CCgovfyf.js} +1 -1
- package/client-dist/assets/WorkstreamsPage-dlEUllSL.js +1 -0
- package/client-dist/assets/{YaServerProvider-OSxrnpr9.js → YaServerProvider-CN3tC5UL.js} +1 -1
- package/client-dist/assets/{YepAnywhereLogo-OH70DoR4.js → YepAnywhereLogo-5zFKWjQq.js} +1 -1
- package/client-dist/assets/{abnfDiagram-VCTEODGH-BK2byNq2.js → abnfDiagram-VCTEODGH-BWHUBcV3.js} +1 -1
- package/client-dist/assets/{arc-BZ7613Gf.js → arc-DKsIJWGD.js} +1 -1
- package/client-dist/assets/{architectureDiagram-5GKGNRK7-WEjy-r-z.js → architectureDiagram-5GKGNRK7-BuLImqW3.js} +1 -1
- package/client-dist/assets/{attachmentFileNames-BfFUuufi.js → attachmentFileNames-CBV_5g65.js} +1 -1
- package/client-dist/assets/{blockDiagram-I7D4REHJ-BOsYYXyW.js → blockDiagram-I7D4REHJ-CJ4Gh6sL.js} +1 -1
- package/client-dist/assets/{c4Diagram-7LVT6UL2-BRrAUZLE.js → c4Diagram-7LVT6UL2-WR43XvCI.js} +1 -1
- package/client-dist/assets/channel-PV8AAsuo.js +1 -0
- package/client-dist/assets/{chunk-2Q5K7J3B-ikUS9MZO.js → chunk-2Q5K7J3B-CiP4m_EA.js} +1 -1
- package/client-dist/assets/{chunk-5VM5RSS4-DqxRtuTQ.js → chunk-5VM5RSS4-BUAhj1h9.js} +1 -1
- package/client-dist/assets/{chunk-F27PBJKO-DQAhMVEw.js → chunk-F27PBJKO-BUZNwiGx.js} +1 -1
- package/client-dist/assets/{chunk-IMKFNOWR-B2QXI9W-.js → chunk-IMKFNOWR-CX1a0BCE.js} +1 -1
- package/client-dist/assets/{chunk-JWPE2WC7-Px4jgxzE.js → chunk-JWPE2WC7-C6tL-mLF.js} +1 -1
- package/client-dist/assets/{chunk-POPQ4Y6H-BTrXHY42.js → chunk-POPQ4Y6H-BzijGGWv.js} +1 -1
- package/client-dist/assets/{chunk-SVP7TREG-DufcbLSM.js → chunk-SVP7TREG-CsZImJKI.js} +1 -1
- package/client-dist/assets/{chunk-TICWLB2K-C6xArrXi.js → chunk-TICWLB2K-TwCtuDc1.js} +1 -1
- package/client-dist/assets/{chunk-XXDRQBXY-CtTuQMK6.js → chunk-XXDRQBXY-C-2EoNns.js} +1 -1
- package/client-dist/assets/classDiagram-ZZMXUADV-DvtSxfma.js +1 -0
- package/client-dist/assets/classDiagram-v2-VYDZK3BY-DvtSxfma.js +1 -0
- package/client-dist/assets/{client-sN_tbfxh.js → client-Ci_HPGfl.js} +2 -2
- package/client-dist/assets/{compactSettingsControls-BjKplkgf.js → compactSettingsControls-C9mLZh5H.js} +1 -1
- package/client-dist/assets/{cose-bilkent-JH36ORCC-Cn15YJGj.js → cose-bilkent-JH36ORCC-CmbEx2jT.js} +1 -1
- package/client-dist/assets/{cynefin-OW5HDTMX-CJkFJ0DX.js → cynefin-OW5HDTMX-BSQHHXFU.js} +1 -1
- package/client-dist/assets/{cynefinDiagram-5FMLGOSQ-CVX2L_eF.js → cynefinDiagram-5FMLGOSQ-C-62JZJD.js} +1 -1
- package/client-dist/assets/{dagre-GXQ25YYZ-BMbYVbaU.js → dagre-GXQ25YYZ-BBERQe_A.js} +1 -1
- package/client-dist/assets/de-Cgdxe5vX.js +6 -0
- package/client-dist/assets/{diagram-S7CK7UJ4-DTZ_P_Fh.js → diagram-S7CK7UJ4-muw11lmG.js} +1 -1
- package/client-dist/assets/{diagram-UQ7AKVKN-C6cgxro0.js → diagram-UQ7AKVKN-DpePWzAe.js} +1 -1
- package/client-dist/assets/{diagram-VSXAHHWV-MzNPAr2n.js → diagram-VSXAHHWV-DHX6AHUY.js} +1 -1
- package/client-dist/assets/{diagram-VX7I27RA-BZN6iloV.js → diagram-VX7I27RA-DYmR6NH_.js} +1 -1
- package/client-dist/assets/{diagram-Z3DM3KII-CtTiorxp.js → diagram-Z3DM3KII-BC1SenHB.js} +1 -1
- package/client-dist/assets/{ebnfDiagram-PWID7BFC-B28XYdqt.js → ebnfDiagram-PWID7BFC-EVpri6Ma.js} +1 -1
- package/client-dist/assets/{erDiagram-RLTQ6QDP-DlMmHWyy.js → erDiagram-RLTQ6QDP-DthztUaa.js} +1 -1
- package/client-dist/assets/es-gyRk85dY.js +6 -0
- package/client-dist/assets/{flowDiagram-HODETNUW-C5mVciwL.js → flowDiagram-HODETNUW-DEpC5nMx.js} +1 -1
- package/client-dist/assets/fr-Dx9lA8u-.js +6 -0
- package/client-dist/assets/{frontendReload-DT6MOpjg.js → frontendReload-CBdyvvdy.js} +1 -1
- package/client-dist/assets/{ganttDiagram-EL5Y4UJY-BTl7ZRTR.js → ganttDiagram-EL5Y4UJY-Csqji8t1.js} +1 -1
- package/client-dist/assets/{gitGraphDiagram-WWUBYQGX-BsG6KEKe.js → gitGraphDiagram-WWUBYQGX-DVX1SDIE.js} +1 -1
- package/client-dist/assets/{hostStorage-BoEdRarg.js → hostStorage-D1KAm3U1.js} +1 -1
- package/client-dist/assets/{index-D7q51uJV.js → index-BESqiBDI.js} +1 -1
- package/client-dist/assets/index-BkOdUxq4.js +2 -0
- package/client-dist/assets/index-CPb-36gi.css +1 -0
- package/client-dist/assets/index-CoR-vzsb.js +2 -0
- package/client-dist/assets/index-Cv3tQXyE.js +1 -0
- package/client-dist/assets/{index-CkZXrIi5.js → index-DSFMItgO.js} +1 -1
- package/client-dist/assets/index-umZg0LZ6.js +81 -0
- package/client-dist/assets/{infoDiagram-27XIBGKW-CkZcthz-.js → infoDiagram-27XIBGKW-CHm3qsd2.js} +1 -1
- package/client-dist/assets/{ishikawaDiagram-5VMMS53U-Cvqitz5U.js → ishikawaDiagram-5VMMS53U-tBRZwz-_.js} +1 -1
- package/client-dist/assets/ja-BOj7smkY.js +6 -0
- package/client-dist/assets/{journeyDiagram-3NMN7TZE-vCw00Cqy.js → journeyDiagram-3NMN7TZE-EJic7nqD.js} +1 -1
- package/client-dist/assets/{kanban-definition-UXKFOSKX-BZGCo-wX.js → kanban-definition-UXKFOSKX-DtzL6eeO.js} +1 -1
- package/client-dist/assets/{layout-D7JRfual.js → layout-gb-Axsoq.js} +1 -1
- package/client-dist/assets/{linear-O9cHRsA5.js → linear-CAe4xGbR.js} +1 -1
- package/client-dist/assets/long-context-effort-warning-C6XHizE1.js +1 -0
- package/client-dist/assets/{mermaid.core-CdC8AeOx.js → mermaid.core-BCu1nv8H.js} +5 -5
- package/client-dist/assets/{mindmap-definition-YA3MSWOX-CczC57z0.js → mindmap-definition-YA3MSWOX-C7-KSPtJ.js} +1 -1
- package/client-dist/assets/newSessionPrefill-DKcy0abh.js +1 -0
- package/client-dist/assets/{pegDiagram-XKGWAZYB-jTm4iBWK.js → pegDiagram-XKGWAZYB-iWVH9rbY.js} +1 -1
- package/client-dist/assets/{pieDiagram-E7YTZNPT-DfkDPuJg.js → pieDiagram-E7YTZNPT-VKD6PLHa.js} +1 -1
- package/client-dist/assets/providerChildSessions-Cd7oK6KQ.css +1 -0
- package/client-dist/assets/providerChildSessions-DbLFSybt.js +77 -0
- package/client-dist/assets/{quadrantDiagram-AXDQQJYC--bBZSIt1.js → quadrantDiagram-AXDQQJYC-AXFugcFl.js} +1 -1
- package/client-dist/assets/{railroadDiagram-O6MQD6OU-gbkMdGN6.js → railroadDiagram-O6MQD6OU-D6oZy6Al.js} +1 -1
- package/client-dist/assets/{recentProjectPathLinks-Ba20jx5b.js → recentProjectPathLinks-D0Dx6YXT.js} +2 -2
- package/client-dist/assets/{registerServiceWorker-CGxgV4Yi.js → registerServiceWorker-B8K2KVOY.js} +1 -1
- package/client-dist/assets/{relayEndpoints-0oIbn4eU.js → relayEndpoints-BTq9xppf.js} +1 -1
- package/client-dist/assets/{remoteRoutePaths-CiDZeM2I.js → remoteRoutePaths-D8htA0xa.js} +1 -1
- package/client-dist/assets/{requirementDiagram-BXWQKSXE-WfLCTewk.js → requirementDiagram-BXWQKSXE-Eqtb74It.js} +1 -1
- package/client-dist/assets/{sankeyDiagram-P5KCCOFB-BhJkx_M1.js → sankeyDiagram-P5KCCOFB-CxvDiZ1R.js} +1 -1
- package/client-dist/assets/{sequenceDiagram-WJ2MYXX4-_S-ZN-hK.js → sequenceDiagram-WJ2MYXX4-BbpkgW2L.js} +1 -1
- package/client-dist/assets/sessionHistorySearch.worker-DCkPlfGO.js +61 -0
- package/client-dist/assets/{sessionNavigationState-DKXD1sTS.js → sessionNavigationState-BXejf2ZW.js} +1 -1
- package/client-dist/assets/sessionRouteLayer-D9T2QT8G.js +1 -0
- package/client-dist/assets/{sizeCapture-INFHLROL-YfaR_7-Y.js → sizeCapture-INFHLROL-DcuwWD5r.js} +1 -1
- package/client-dist/assets/{sourceControlNavigationState-lyZ29oaF.js → sourceControlNavigationState-BJbTzWTE.js} +1 -1
- package/client-dist/assets/{speechDraftTransaction-zyWVCYTF.js → speechDraftTransaction-WhqFE1h9.js} +1 -1
- package/client-dist/assets/{stateDiagram-D77RDMKH-_N9FdD6m.js → stateDiagram-D77RDMKH-Cidpq73w.js} +1 -1
- package/client-dist/assets/stateDiagram-v2-MP3YSRHH-DFqKXxjz.js +1 -0
- package/client-dist/assets/{swimlanes-42K2YHIH-DUl5jFZz.js → swimlanes-42K2YHIH-Ba8C7MwG.js} +1 -1
- package/client-dist/assets/swimlanesDiagram-VR7AAH4N-3pW2TcAt.js +8 -0
- package/client-dist/assets/{timeline-definition-24CTP7MA-DtYzRl63.js → timeline-definition-24CTP7MA-CKefGvUK.js} +1 -1
- package/client-dist/assets/useAcliCommentarySetting-CBKAl7qr.js +9 -0
- package/client-dist/assets/useActivityBusState-C0dor9p7.js +1 -0
- package/client-dist/assets/{useBackgroundRevalidation-CULom4_W.js → useBackgroundRevalidation-C79HAUP3.js} +1 -1
- package/client-dist/assets/{useCodexUpdateStatus-BIDehnvt.js → useCodexUpdateStatus-CEZO_f2Y.js} +1 -1
- package/client-dist/assets/{useConnectedDevices-kBo43kbz.js → useConnectedDevices-Ds-DuUDc.js} +1 -1
- package/client-dist/assets/{useDocumentTitle-C06qawRj.js → useDocumentTitle-Xz5t-nlB.js} +1 -1
- package/client-dist/assets/{useEmulators-Bz8194e3.js → useEmulators-qS_cCZ3I.js} +1 -1
- package/client-dist/assets/{useFileActivity-CwkGwsQt.js → useFileActivity-BoW4X3DY.js} +1 -1
- package/client-dist/assets/{useFloatingActionButtonEnabled-C31rfHtR.js → useFloatingActionButtonEnabled-2_hw7nSa.js} +1 -1
- package/client-dist/assets/{useForkSummaryAutoOpen-D_SvtmbE.js → useForkSummaryAutoOpen-CS33Irpf.js} +1 -1
- package/client-dist/assets/{useGeneratedTitleLength-Cu-SoQ6T.js → useGeneratedTitleLength-D856ktVg.js} +1 -1
- package/client-dist/assets/{useKeepMobileKeyboardOpenAfterDelivery-C-cYLaEU.js → useKeepMobileKeyboardOpenAfterDelivery-Ba77SbWF.js} +1 -1
- package/client-dist/assets/useModelSettings-BdlYk1DT.js +1 -0
- package/client-dist/assets/{useNotifyInApp-BcLZ8ie_.js → useNotifyInApp-DcWe3dh4.js} +1 -1
- package/client-dist/assets/{useOnboarding-CYgE-Xsg.js → useOnboarding-CoE3WF8a.js} +1 -1
- package/client-dist/assets/{useProviders-C6kBPWYX.js → useProviders-CeN1PclA.js} +1 -1
- package/client-dist/assets/{useQuestionAsideSetting-6Excl6Pm.js → useQuestionAsideSetting-CPFw1u0y.js} +1 -1
- package/client-dist/assets/{useRecentSessions-CsmsGemq.js → useRecentSessions-ieTzzJu4.js} +2 -2
- package/client-dist/assets/{useRelativeNow-BdLaPgKO.js → useRelativeNow-Ca6QGcPa.js} +1 -1
- package/client-dist/assets/{useReloadNotifications-B0egr2ys.js → useReloadNotifications-Dm1jmdIb.js} +1 -1
- package/client-dist/assets/{useRemoteExecutors-Bgjgzif1.js → useRemoteExecutors-zBAQnQXH.js} +1 -1
- package/client-dist/assets/{useSidebarWidth-ut6NNk5Y.js → useSidebarWidth-CBCcbSLg.js} +1 -1
- package/client-dist/assets/{useSourceControlCleanLanding-DxrwogwF.js → useSourceControlCleanLanding-VDlft5tr.js} +1 -1
- package/client-dist/assets/{useStableToolPreviewRendering-CcrkchTG.js → useStableToolPreviewRendering-hbVp38Jd.js} +1 -1
- package/client-dist/assets/{useStreamingEnabled-EdvW04Vz.js → useStreamingEnabled-hU1g8i7_.js} +1 -1
- package/client-dist/assets/{useTabTitleActivityPreference-B0suFUHK.js → useTabTitleActivityPreference-DhREY7m2.js} +1 -1
- package/client-dist/assets/{useVhostAccess-2ZKr0Lcl.js → useVhostAccess-DUtn_sH1.js} +1 -1
- package/client-dist/assets/{useWorkflowTags-_4F_41YI.js → useWorkflowTags-DxbEBqtf.js} +1 -1
- package/client-dist/assets/{vennDiagram-4TSXK5OY-26XZDUe6.js → vennDiagram-4TSXK5OY-CSGBq-Ur.js} +1 -1
- package/client-dist/assets/{wardleyDiagram-VM6X3IG4-YvZ37BJ7.js → wardleyDiagram-VM6X3IG4-DIMvcaMb.js} +1 -1
- package/client-dist/assets/{xychartDiagram-S5SC5T6Z-BMT0MEGz.js → xychartDiagram-S5SC5T6Z-TYXSqT3w.js} +1 -1
- package/client-dist/assets/zh-CN-DadySLj9.js +7 -0
- package/client-dist/index.html +3 -3
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +29 -10
- package/dist/app.js.map +1 -1
- package/dist/artifacts/ArtifactServer.d.ts +2 -0
- package/dist/artifacts/ArtifactServer.d.ts.map +1 -1
- package/dist/artifacts/ArtifactServer.js +79 -1
- package/dist/artifacts/ArtifactServer.js.map +1 -1
- package/dist/auth/limitedUserPolicy.d.ts +9 -5
- package/dist/auth/limitedUserPolicy.d.ts.map +1 -1
- package/dist/auth/limitedUserPolicy.js +64 -35
- package/dist/auth/limitedUserPolicy.js.map +1 -1
- package/dist/auth/principal.d.ts +6 -0
- package/dist/auth/principal.d.ts.map +1 -1
- package/dist/auth/principal.js +6 -0
- package/dist/auth/principal.js.map +1 -1
- package/dist/frontend/static.d.ts.map +1 -1
- package/dist/frontend/static.js +2 -1
- package/dist/frontend/static.js.map +1 -1
- package/dist/middleware/authenticated-transport.d.ts +13 -0
- package/dist/middleware/authenticated-transport.d.ts.map +1 -1
- package/dist/middleware/authenticated-transport.js +12 -0
- package/dist/middleware/authenticated-transport.js.map +1 -1
- package/dist/middleware/limited-users.d.ts +9 -5
- package/dist/middleware/limited-users.d.ts.map +1 -1
- package/dist/middleware/limited-users.js +37 -23
- package/dist/middleware/limited-users.js.map +1 -1
- package/dist/routes/file-edit.d.ts +18 -0
- package/dist/routes/file-edit.d.ts.map +1 -0
- package/dist/routes/file-edit.js +244 -0
- package/dist/routes/file-edit.js.map +1 -0
- package/dist/routes/files.d.ts.map +1 -1
- package/dist/routes/files.js +34 -9
- package/dist/routes/files.js.map +1 -1
- package/dist/routes/pdfjs.d.ts +9 -0
- package/dist/routes/pdfjs.d.ts.map +1 -0
- package/dist/routes/pdfjs.js +34 -0
- package/dist/routes/pdfjs.js.map +1 -0
- package/dist/routes/public-file-shares.d.ts +6 -0
- package/dist/routes/public-file-shares.d.ts.map +1 -1
- package/dist/routes/public-file-shares.js +22 -10
- package/dist/routes/public-file-shares.js.map +1 -1
- package/dist/routes/public-shares.d.ts.map +1 -1
- package/dist/routes/public-shares.js +18 -1
- package/dist/routes/public-shares.js.map +1 -1
- package/dist/routes/recents.d.ts +4 -1
- package/dist/routes/recents.d.ts.map +1 -1
- package/dist/routes/recents.js +7 -0
- package/dist/routes/recents.js.map +1 -1
- package/dist/routes/sessions.d.ts.map +1 -1
- package/dist/routes/sessions.js +4 -0
- package/dist/routes/sessions.js.map +1 -1
- package/dist/routes/settings.d.ts +7 -2
- package/dist/routes/settings.d.ts.map +1 -1
- package/dist/routes/settings.js +43 -1
- package/dist/routes/settings.js.map +1 -1
- package/dist/routes/version.d.ts.map +1 -1
- package/dist/routes/version.js +1 -0
- package/dist/routes/version.js.map +1 -1
- package/dist/routes/ws-relay-handlers.d.ts +12 -0
- package/dist/routes/ws-relay-handlers.d.ts.map +1 -1
- package/dist/routes/ws-relay-handlers.js +25 -4
- package/dist/routes/ws-relay-handlers.js.map +1 -1
- package/dist/routes/ws-relay.d.ts.map +1 -1
- package/dist/routes/ws-relay.js +8 -0
- package/dist/routes/ws-relay.js.map +1 -1
- package/dist/sdk/providers/agent-self.js +1 -1
- package/dist/sdk/providers/agent-self.js.map +1 -1
- package/dist/sdk/providers/claude.d.ts +1 -0
- package/dist/sdk/providers/claude.d.ts.map +1 -1
- package/dist/sdk/providers/claude.js +7 -0
- package/dist/sdk/providers/claude.js.map +1 -1
- package/dist/sdk/providers/codex-model-catalog.d.ts.map +1 -1
- package/dist/sdk/providers/codex-model-catalog.js +5 -3
- package/dist/sdk/providers/codex-model-catalog.js.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts +4 -1
- package/dist/sdk/providers/codex-protocol/generated/ContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts +4 -1
- package/dist/sdk/providers/codex-protocol/generated/FunctionCallOutputContentItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/Personality.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/Personality.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.d.ts +2 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/{ThreadRollbackParams.js → McpAppDisplayMode.js} +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppDisplayMode.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.d.ts.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/{ThreadRollbackResponse.js → McpAppUi.js} +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/McpAppUi.js.map +1 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/Thread.d.ts +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadForkResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts +6 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadItem.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadResumeResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts +9 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts +4 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadStartResponse.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts +7 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/TurnStartParams.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts +3 -0
- package/dist/sdk/providers/codex-protocol/generated/v2/UserInput.d.ts.map +1 -1
- package/dist/sdk/providers/codex-protocol/index.d.ts +0 -2
- package/dist/sdk/providers/codex-protocol/index.d.ts.map +1 -1
- package/dist/sdk/providers/codex.d.ts +23 -2
- package/dist/sdk/providers/codex.d.ts.map +1 -1
- package/dist/sdk/providers/codex.js +55 -22
- package/dist/sdk/providers/codex.js.map +1 -1
- package/dist/sdk/providers/index.d.ts.map +1 -1
- package/dist/sdk/providers/index.js +4 -1
- package/dist/sdk/providers/index.js.map +1 -1
- package/dist/sdk/providers/opencode.d.ts +9 -0
- package/dist/sdk/providers/opencode.d.ts.map +1 -1
- package/dist/sdk/providers/opencode.js +129 -76
- package/dist/sdk/providers/opencode.js.map +1 -1
- package/dist/sdk/providers/provider-session-owner.d.ts +9 -0
- package/dist/sdk/providers/provider-session-owner.d.ts.map +1 -1
- package/dist/sdk/providers/provider-session-owner.js +39 -3
- package/dist/sdk/providers/provider-session-owner.js.map +1 -1
- package/dist/sdk/providers/types.d.ts +13 -0
- package/dist/sdk/providers/types.d.ts.map +1 -1
- package/dist/sdk/providers/types.js.map +1 -1
- package/dist/services/ArtifactRebuildService.d.ts +67 -0
- package/dist/services/ArtifactRebuildService.d.ts.map +1 -0
- package/dist/services/ArtifactRebuildService.js +229 -0
- package/dist/services/ArtifactRebuildService.js.map +1 -0
- package/dist/services/DirtyFileEditorService.d.ts +2 -0
- package/dist/services/DirtyFileEditorService.d.ts.map +1 -1
- package/dist/services/DirtyFileEditorService.js +20 -1
- package/dist/services/DirtyFileEditorService.js.map +1 -1
- package/dist/services/PdfjsAssetCache.d.ts +20 -0
- package/dist/services/PdfjsAssetCache.d.ts.map +1 -0
- package/dist/services/PdfjsAssetCache.js +131 -0
- package/dist/services/PdfjsAssetCache.js.map +1 -0
- package/dist/services/SessionCatalogService.d.ts +27 -0
- package/dist/services/SessionCatalogService.d.ts.map +1 -1
- package/dist/services/SessionCatalogService.js +129 -34
- package/dist/services/SessionCatalogService.js.map +1 -1
- package/dist/sessions/opencode-reader.d.ts +2 -1
- package/dist/sessions/opencode-reader.d.ts.map +1 -1
- package/dist/sessions/opencode-reader.js +30 -1
- package/dist/sessions/opencode-reader.js.map +1 -1
- package/dist/sessions/types.d.ts +6 -0
- package/dist/sessions/types.d.ts.map +1 -1
- package/dist/supervisor/Process.d.ts +7 -0
- package/dist/supervisor/Process.d.ts.map +1 -1
- package/dist/supervisor/Process.js +48 -3
- package/dist/supervisor/Process.js.map +1 -1
- package/dist/supervisor/Supervisor.d.ts.map +1 -1
- package/dist/supervisor/Supervisor.js +11 -0
- package/dist/supervisor/Supervisor.js.map +1 -1
- package/dist/supervisor/types.d.ts +3 -1
- package/dist/supervisor/types.d.ts.map +1 -1
- package/dist/supervisor/types.js.map +1 -1
- package/package.json +3 -3
- package/client-dist/assets/AboutSettings-BlEONE7w.js +0 -1
- package/client-dist/assets/AgentsPage-CBku9RWz.js +0 -2
- package/client-dist/assets/App-DWHvFKob.js +0 -2
- package/client-dist/assets/AppearanceSettings-BSEBjSjr.js +0 -2
- package/client-dist/assets/AppsSettings-iDL6Xuaa.js +0 -1
- package/client-dist/assets/AttachmentChip-DHKr4EfG.js +0 -1
- package/client-dist/assets/BangCommandsPage-yX8grXp9.js +0 -1
- package/client-dist/assets/BrowserDebugToolbarButton-B-b7N4cr.js +0 -1
- package/client-dist/assets/ComputerControlSettings-DzRDwfJ1.js +0 -1
- package/client-dist/assets/DevelopmentSettings-Bf9gyeU0.js +0 -1
- package/client-dist/assets/DevicesSettings-dbZHFEEc.js +0 -1
- package/client-dist/assets/EmulatorPage-CKJwVTFq.js +0 -1
- package/client-dist/assets/EmulatorSettings-BV9Bg3Xk.js +0 -1
- package/client-dist/assets/EnvironmentSettings-DmOTuSwm.js +0 -1
- package/client-dist/assets/FilePage-DnPW5Pbc.js +0 -1
- package/client-dist/assets/FilterDropdown-CB_tRt6g.css +0 -1
- package/client-dist/assets/FilterDropdown-DpS1eMEf.js +0 -1
- package/client-dist/assets/FloatingActionButton-DBIoFwff.js +0 -1
- package/client-dist/assets/GlobalSessionsPage-Dbnuis89.css +0 -1
- package/client-dist/assets/GlobalSessionsPage-DcmQcX7q.js +0 -2
- package/client-dist/assets/HostIdentityContext-D5aBdejC.js +0 -1
- package/client-dist/assets/HostsPage-C1ZTrhJv.js +0 -1
- package/client-dist/assets/InboxPage-Cepu8VGM.js +0 -1
- package/client-dist/assets/IssueSettings-xRU8E-xR.js +0 -1
- package/client-dist/assets/IssuesPage-c6PUStFT.js +0 -1
- package/client-dist/assets/LifecycleWebhooksSettings-CZcZATjJ.js +0 -1
- package/client-dist/assets/MessageInput-B0t6b_Hd.js +0 -3
- package/client-dist/assets/MessageInputToolbar-DdP4tB2S.css +0 -1
- package/client-dist/assets/MessageInputToolbar-rhYW1xGJ.js +0 -58
- package/client-dist/assets/MessageList-Dcvfxbeq.css +0 -1
- package/client-dist/assets/MessageList-dH63bflu.js +0 -4
- package/client-dist/assets/Modal-QUinFhBP.js +0 -16
- package/client-dist/assets/ModelSettings-CcWkVSEK.js +0 -1
- package/client-dist/assets/NavigationLayout-BkOsag-J.js +0 -2
- package/client-dist/assets/NewSessionPage-DcZ9YjmC.js +0 -1
- package/client-dist/assets/NotificationsSettings-DoVzfeME.js +0 -1
- package/client-dist/assets/PageHeader-BaYMLVHI.js +0 -1
- package/client-dist/assets/PerformanceSettings-dwoVtUlX.js +0 -1
- package/client-dist/assets/ProjectTemplatesSettings-BlMWq1wb.js +0 -1
- package/client-dist/assets/ProjectsPage-B5VBairc.js +0 -1
- package/client-dist/assets/ProviderChildSessionPage-B3eTTTjF.js +0 -1
- package/client-dist/assets/ProvidersSettings-OUKp5-Hb.js +0 -1
- package/client-dist/assets/RemoteAccessSettings-Bn0ng7s4.js +0 -1
- package/client-dist/assets/RemoteExecutorsSettings-2Qh-9Qv_.js +0 -1
- package/client-dist/assets/SchemaValidationContext-CIAd7icg.js +0 -1
- package/client-dist/assets/SessionPage-B1g1UFEV.js +0 -49
- package/client-dist/assets/SessionPage-BiV0X3n1.css +0 -1
- package/client-dist/assets/SourceControlSettings-BQfC1KbV.js +0 -1
- package/client-dist/assets/SpeechControlMenu-BIv0O1la.js +0 -2
- package/client-dist/assets/StorageSettings-DQcG9Mbq.js +0 -1
- package/client-dist/assets/ToolbarSettings-CmHVAejU.js +0 -1
- package/client-dist/assets/UsersSettings-COgiiV9D.js +0 -1
- package/client-dist/assets/WorkstreamsPage-DKLRDEAp.js +0 -1
- package/client-dist/assets/channel-C-7AVqtf.js +0 -1
- package/client-dist/assets/classDiagram-ZZMXUADV-DkRr8VcO.js +0 -1
- package/client-dist/assets/classDiagram-v2-VYDZK3BY-DkRr8VcO.js +0 -1
- package/client-dist/assets/de-DKHK9Tu3.js +0 -6
- package/client-dist/assets/es-XSkBrKBg.js +0 -6
- package/client-dist/assets/fr-DKUJaPhN.js +0 -6
- package/client-dist/assets/index-BBpZzMBa.js +0 -2
- package/client-dist/assets/index-BUrcmRdN.js +0 -76
- package/client-dist/assets/index-CA-BRFYh.js +0 -1
- package/client-dist/assets/index-wA2zlxt-.css +0 -1
- package/client-dist/assets/ja-BDnQUlyD.js +0 -6
- package/client-dist/assets/long-context-effort-warning-BGls6uvf.js +0 -1
- package/client-dist/assets/newSessionPrefill-DkkSfnYR.js +0 -1
- package/client-dist/assets/providerChildSessions-ClrSXOQr.js +0 -80
- package/client-dist/assets/providerChildSessions-D2O1SLei.css +0 -1
- package/client-dist/assets/sessionHistorySearch.worker-BGlVvPYq.js +0 -60
- package/client-dist/assets/stateDiagram-v2-MP3YSRHH-CBvcZngO.js +0 -1
- package/client-dist/assets/swimlanesDiagram-VR7AAH4N-DKVyQBDp.js +0 -8
- package/client-dist/assets/useAcliCommentarySetting-DxndlmkH.js +0 -9
- package/client-dist/assets/useActivityBusState-CINl9yjP.js +0 -1
- package/client-dist/assets/useModelSettings-DoDJRymT.js +0 -1
- package/client-dist/assets/zh-CN-FVXKSeP_.js +0 -7
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts +0 -14
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.d.ts.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackParams.js.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts +0 -12
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.d.ts.map +0 -1
- package/dist/sdk/providers/codex-protocol/generated/v2/ThreadRollbackResponse.js.map +0 -1
- /package/client-dist/assets/{Modal-EC-u4IZ7.css → index-EC-u4IZ7.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionClearloopBadge } from "@yep-anywhere/shared";
|
|
1
|
+
import type { DurableLocalCommandMessage, SessionClearloopBadge } from "@yep-anywhere/shared";
|
|
2
2
|
import type { AppSessionSummary, NonHumanUserTurn, AgentActivity, CodexAsyncUserInputQuestion, ContextUsage, DurableRecapMessage, EffortLevel, InputRequest, PendingInputType, PermissionRules, PromptSuggestionMode, ProviderRuntimeStatus, ProviderChildSessionSummary, ProviderName, RecapMode, SessionSandboxEnforcement, SessionQueuedYaCommand, ThinkingConfig, UrlProjectId, SessionLivenessSnapshot, ToolResultMedia, WorkstreamId } from "@yep-anywhere/shared";
|
|
3
3
|
import type { PermissionMode, SDKMessage } from "../sdk/types.js";
|
|
4
4
|
import type { SessionExecution } from "../sdk/providers/types.js";
|
|
@@ -314,6 +314,8 @@ export type ProcessEvent = {
|
|
|
314
314
|
type: "terminated";
|
|
315
315
|
reason: string;
|
|
316
316
|
error?: Error;
|
|
317
|
+
/** Attributed notice for an unrequested provider death; Supervisor persists it. */
|
|
318
|
+
failureNotice?: DurableLocalCommandMessage;
|
|
317
319
|
} | {
|
|
318
320
|
type: "deferred-queue";
|
|
319
321
|
reason?: "queued" | "cancelled" | "promoted";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/supervisor/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/supervisor/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/supervisor/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/supervisor/types.ts"],"names":[],"mappings":"AA+BA,MAAM,CAAC,MAAM,iCAAiC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,8DAA8D;AAE1H,sDAAsD;AACtD,uFAAuF;AACvF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yepanywhere",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "A mobile-first supervisor for Claude Code agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@agentclientprotocol/sdk": "^0.12.0",
|
|
22
22
|
"@anthropic-ai/claude-agent-sdk": "^0.3.280",
|
|
23
23
|
"@anthropic-ai/sdk": "0.100.1",
|
|
24
|
-
"@hono/node-server": "^1.19.
|
|
24
|
+
"@hono/node-server": "^1.19.17",
|
|
25
25
|
"@hono/node-ws": "^1.2.0",
|
|
26
26
|
"@mdit/plugin-katex": "1.1.0",
|
|
27
27
|
"@modelcontextprotocol/sdk": "1.29.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tssrp6a": "^3.0.0",
|
|
40
40
|
"tweetnacl": "^1.0.3",
|
|
41
41
|
"web-push": "^3.6.7",
|
|
42
|
-
"ws": "^8.21.
|
|
42
|
+
"ws": "^8.21.3",
|
|
43
43
|
"zod": "^4.3.4"
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,u as B,aw as w,f as k,j as t}from"./index-BUrcmRdN.js";import{b as P,h as F,a as O}from"./client-sN_tbfxh.js";import{u as M,g as Y,a as z,f as W,p as V,R as H}from"./useOnboarding-CYgE-Xsg.js";import{f as K,a as $}from"./Modal-QUinFhBP.js";import{S as g}from"./SettingsItem-B_rM9Vhi.js";import{u as J,H as q}from"./index-BBpZzMBa.js";import{S as G}from"./SettingsSection-DOwc_RwX.js";import"./react-runtime-D-UPQ57m.js";import"./RelayProtocol-DjpPJk64.js";import"./appHref-ByaEnJGJ.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./PageHeader-BaYMLVHI.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";let o=null;function Q(){const[e,n]=r.useState(!1),[l,a]=r.useState(!1);r.useEffect(()=>{if(window.matchMedia("(display-mode: standalone)").matches||"standalone"in navigator&&navigator.standalone===!0){a(!0);return}o&&n(!0);const u=c=>{c.preventDefault(),o=c,n(!0)},d=()=>{a(!0),n(!1),o=null};return window.addEventListener("beforeinstallprompt",u),window.addEventListener("appinstalled",d),()=>{window.removeEventListener("beforeinstallprompt",u),window.removeEventListener("appinstalled",d)}},[]);const v=r.useCallback(async()=>{if(!o)return!1;await o.prompt();const{outcome:i}=await o.userChoice;return i==="accepted"?(n(!1),o=null,!0):!1},[]);return{canInstall:e,isInstalled:l,install:v}}function y(e){if(typeof e!="string")return;const n=e.trim();return n&&n!=="unknown"?n:void 0}function X(){if(typeof window>"u")return null;const e=window.__YEP_DESKTOP_RUNTIME__;if(!e||typeof e!="object")return null;const n=e,l=y(n.desktopVersion);return l?{desktopVersion:l,bundledYaVersion:y(n.bundledYaVersion),commit:y(n.commit)}:null}function I(e){const n=e.trim();return/^v\d+\.\d+\.\d+/.test(n)?n:/^\d+\.\d+\.\d+/.test(n)?`v${n}`:n}function Ce(){const{t:e}=B(),n=P();J(e("aboutTitle"));const{canInstall:l,isInstalled:a,install:v}=Q(),{version:i,loading:u,error:d,refetchFresh:c}=K({freshOnMount:!0}),x=$(),{resetOnboarding:D}=M(),j=X(),C=(x==null?void 0:x.currentRelayUsername)??null,h=r.useCallback(s=>s?Y({runtimeNotice:{runtime:s.serverRuntime,sourceKey:n,t:e},currentVersion:(s==null?void 0:s.current)??null,latestVersion:(s==null?void 0:s.latest)??null,updateAvailable:(s==null?void 0:s.updateAvailable)??!1,installSource:s==null?void 0:s.installSource,resumeProtocolVersion:s==null?void 0:s.resumeProtocolVersion,remoteCompatibilityLevel:s==null?void 0:s.remoteCompatibilityLevel,capabilities:s==null?void 0:s.capabilities,relayUsername:C}):[],[C,n,e]),m=r.useMemo(()=>h(i),[h,i]),E=m[0],{dismissedNotices:T,restoreNotices:f,visibleNotices:L}=z(m),S=L.length===0?T[0]:null,[p,N]=r.useState(!1),[b,R]=r.useState(0);r.useEffect(()=>(F("/status/workers").then(s=>R(w(s))).catch(()=>{}),k.on("worker-activity-changed",s=>{R(w(s))})),[]),r.useEffect(()=>{if(p)return k.on("reconnect",()=>{N(!1)})},[p]);const U=r.useCallback(async()=>{N(!0);try{await O.restartServer()}catch{}},[]),_=r.useCallback(()=>{f(m)},[m,f]),A=r.useCallback(async()=>{const s=await c();f(h(s??i))},[h,c,f,i]);return t.jsx(G,{children:t.jsxs("div",{className:"settings-group",children:[(l||a)&&t.jsx(g,{label:e("aboutInstallTitle"),description:e(a?"aboutInstalledDescription":"aboutInstallDescription"),children:a?t.jsx("span",{className:"settings-status-badge",children:e("aboutInstalled")}):t.jsx("button",{type:"button",className:"settings-button",onClick:v,children:e("aboutInstall")})}),t.jsx(q,{children:t.jsxs("div",{className:"settings-item settings-version-item",children:[t.jsxs("div",{className:"settings-version-item__row",children:[t.jsxs("div",{className:"settings-item-info",children:[t.jsx("strong",{children:e("aboutVersionTitle")}),j?t.jsxs(t.Fragment,{children:[t.jsxs("p",{children:[e("aboutDesktopVersion")," ",I(j.desktopVersion)]}),t.jsxs("p",{children:[e("aboutBundledYaVersion")," ",I(j.bundledYaVersion??"0.9.0")]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("p",{children:[e("aboutServerVersion")," ",i?t.jsxs(t.Fragment,{children:[W(i.current,i.installSource),V(i.current)&&i.updateAvailable&&i.latest?t.jsxs("span",{className:"settings-update-available",children:[" ",e("aboutVersionAvailable",{version:i.latest})]}):V(i.current)&&i.latest?t.jsxs("span",{className:"settings-up-to-date",children:[" ",e("aboutUpToDate")]}):null]}):e("loginLoading")]}),t.jsxs("p",{children:[e("aboutClientVersion")," v","0.9.0"]})]}),d&&t.jsx("p",{className:"settings-warning",children:e("aboutUnableRefresh")}),(i==null?void 0:i.updateAvailable)&&!E&&t.jsx("p",{className:"settings-update-hint",children:e("aboutUpdateHint")})]}),t.jsx("div",{className:"settings-item-actions",children:t.jsx("button",{type:"button",className:"settings-button",onClick:()=>void A(),disabled:u,children:e(u?"aboutChecking":"aboutCheckUpdates")})})]}),S&&t.jsx(H,{notice:S,noticeCount:m.length,placement:"inline",onRestore:_})]})}),t.jsx(g,{label:e("developmentRestartTitle"),description:e("developmentRestartDescription"),info:t.jsxs(t.Fragment,{children:[t.jsx("strong",{children:e("developmentRestartTitle")}),t.jsx("p",{children:e("developmentRestartDescription")}),b>0&&!p&&t.jsx("p",{className:"settings-warning",children:e("developmentInterruptedWarning",{count:b,suffix:b!==1?"s ":" "})})]}),children:t.jsx("button",{type:"button",className:`settings-button ${b>0?"settings-button-danger":""}`,onClick:U,disabled:p,children:p?e("developmentRestarting"):b>0?e("developmentRestartAnyway"):e("developmentRestart")})}),t.jsx(g,{label:e("aboutReportBugTitle"),description:e("aboutReportBugDescription"),children:t.jsx("a",{href:"https://github.com/kzahel/yepanywhere/issues",target:"_blank",rel:"noopener noreferrer",className:"settings-button",children:e("aboutReportBug")})}),t.jsx(g,{label:e("aboutSetupWizardTitle"),description:e("aboutSetupWizardDescription"),children:t.jsx("button",{type:"button",className:"settings-button",onClick:D,children:e("aboutLaunchWizard")})})]})})}export{Ce as AboutSettings};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as F,r as _,as as D,u as b,j as t,L as $}from"./index-BUrcmRdN.js";import{j as K,u as A,C as U,k as G,P as V}from"./NavigationLayout-BkOsag-J.js";import{a as H}from"./client-sN_tbfxh.js";import{P as W}from"./PageHeader-BaYMLVHI.js";import{T as q,p as Y,m as Q}from"./providerChildSessions-ClrSXOQr.js";import{f as z,b as J,a as X,u as Z}from"./Modal-QUinFhBP.js";import{a as ee}from"./frontendReload-DT6MOpjg.js";import{MainContent as te}from"./index-CA-BRFYh.js";import"./react-runtime-D-UPQ57m.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./RelayProtocol-DjpPJk64.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./katex-Dv2p4YRM.js";import"./remoteRoutePaths-CiDZeM2I.js";const se=5e3;function re(){const{version:e}=z(),{settings:r}=ee(),n=J();X();const l=!0,o=F(e,D)&&((r==null?void 0:r.hostProcessObservabilityEnabled)??!0),[i,d]=_.useState([]),[u,v]=_.useState(null),[x,m]=_.useState(!1),[c,j]=_.useState(!1);return _.useEffect(()=>{if(!o||!l){d([]),v(null),m(!1),j(!1);return}let g=!1,h,y=!0;const T=()=>{g||document.hidden||(h=window.setTimeout(()=>void k(),se))},k=async()=>{if(!(g||document.hidden)){y&&m(!0);try{const P=await n.transport.fetch("/host-agent-processes");if(g)return;y=!1,m(!1),j(!1),v(P.supported),d(P.enabled?P.observations:[]),P.enabled&&P.supported&&T()}catch{if(g)return;y=!1,m(!1),j(!0),d([]),T()}}},a=()=>{h!==void 0&&(window.clearTimeout(h),h=void 0),document.hidden||k()};return document.addEventListener("visibilitychange",a),k(),()=>{g=!0,h!==void 0&&window.clearTimeout(h),document.removeEventListener("visibilitychange",a)}},[o,l,n.transport]),{enabled:o,supported:u,observations:i,loading:x,error:c}}const ae="_section_1lxx8_11",ne="_empty_1lxx8_25",ie="_killFeedback_1lxx8_31",le="_killFeedbackSuccess_1lxx8_39",de="_killFeedbackError_1lxx8_43",ce="_list_1lxx8_47",oe="_card_1lxx8_53",pe="_metricsWrapOpen_1lxx8_72",ue="_cardTerminated_1lxx8_77",me="_cardHeader_1lxx8_82",xe="_cardTitle_1lxx8_88",ge="_cardSessionTitle_1lxx8_95",he="_cardProject_1lxx8_103",_e="_stateBadge_1lxx8_112",ve="_stateInput_1lxx8_120",je="_stateIdle_1lxx8_125",fe="_stateTerminated_1lxx8_130",Ce="_stateExternal_1lxx8_135",Ne="_providerBadge_1lxx8_141",Pe="_providerClaude_1lxx8_151",ye="_providerCodex_1lxx8_156",ke="_providerGemini_1lxx8_161",Te="_providerGrok_1lxx8_166",Ee="_providerOpencode_1lxx8_171",be="_providerPi_1lxx8_176",Se="_providerLocal_1lxx8_181",we="_killButton_1lxx8_186",Me="_cardMeta_1lxx8_209",Be="_cardUptime_1lxx8_216",Le="_cardPid_1lxx8_223",Ie="_metricsWrap_1lxx8_72",Re="_metrics_1lxx8_72",Oe="_metricsPopover_1lxx8_263",Fe="_cardExternal_1lxx8_281",De="_cardDetails_1lxx8_285",$e="_providerChildren_1lxx8_291",Ke="_providerChild_1lxx8_291",Ae="_providerChildBranch_1lxx8_309",Ue="_providerChildType_1lxx8_310",Ge="_providerChildTitle_1lxx8_315",Ve="_detailRow_1lxx8_322",He="_detailLabel_1lxx8_330",We="_detailValue_1lxx8_336",s={section:ae,empty:ne,killFeedback:ie,killFeedbackSuccess:le,killFeedbackError:de,list:ce,card:oe,metricsWrapOpen:pe,cardTerminated:ue,cardHeader:me,cardTitle:xe,cardSessionTitle:ge,cardProject:he,stateBadge:_e,stateInput:ve,stateIdle:je,stateTerminated:fe,stateExternal:Ce,providerBadge:Ne,providerClaude:Pe,providerCodex:ye,providerGemini:ke,providerGrok:Te,providerOpencode:Ee,providerPi:be,providerLocal:Se,killButton:we,cardMeta:Me,cardUptime:Be,cardPid:Le,metricsWrap:Ie,metrics:Re,metricsPopover:Oe,cardExternal:Fe,cardDetails:De,providerChildren:$e,providerChild:Ke,providerChildBranch:Ae,providerChildType:Ue,providerChildTitle:Ge,detailRow:Ve,detailLabel:He,detailValue:We};function N(...e){return e.filter(Boolean).join(" ")}function B(e){const r=new Date(e).getTime(),l=Date.now()-r,p=Math.floor(l/1e3),o=Math.floor(p/60),i=Math.floor(o/60),d=Math.floor(i/24);return d>0?`${d}d ${i%24}h`:i>0?`${i}h ${o%60}m`:o>0?`${o}m ${p%60}s`:`${p}s`}function S(e){const r=e/1048576;if(r<1024)return`${Math.round(r)} MiB`;const n=r/1024;return`${n<10?n.toFixed(1):Math.round(n)} GiB`}function w(e){return`${e<10?e.toFixed(1):Math.round(e)}%`}function qe(e,r){switch(e){case"running":return r("agentsRunning");case"waiting-input":return r("agentsNeedsInput");case"idle":return r("agentsIdle");case"terminated":return r("agentsStopped");default:return e}}function Ye(e){switch(e){case"running":return"";case"waiting-input":return s.stateInput;case"idle":return s.stateIdle;case"terminated":return s.stateTerminated;default:return""}}function L(e,r){switch(e){case"claude":return"Claude";case"claude-gateway":return"Claude Gateway";case"claude-ollama":return"Claude + Ollama";case"codex":return"Codex";case"gemini":case"gemini-acp":return"Gemini";case"grok":return"Grok";case"opencode":return"OpenCode";case"pi":return"Pi";case"local":return r("agentsProviderLocal");default:return e??"Claude"}}function I(e){switch(e){case"codex":return s.providerCodex;case"gemini":case"gemini-acp":return s.providerGemini;case"grok":return s.providerGrok;case"opencode":return s.providerOpencode;case"pi":return s.providerPi;case"local":return s.providerLocal;default:return s.providerClaude}}const Qe={success:s.killFeedbackSuccess,error:s.killFeedbackError};function R({observation:e,touchSurfaceRef:r}){const{t:n}=b(),[l,p]=_.useState(!1),o=_.useRef(null),i=L(e.provider,n),d=B(e.startedAt),u=e.cpu?n("agentsMetricsCpuValue",{percent:w(e.cpu.treePercent)}):n("agentsMetricsCpuSampling"),v=[n(e.supervision==="ya"?"agentsMetricsManagedYa":"agentsMetricsManagedExternal"),n("agentsMetricsProvider",{provider:i}),n("agentsPid",{pid:e.pid}),n("agentsMetricsStarted",{value:new Date(e.startedAt).toLocaleString()}),n("agentsMetricsAge",{value:d}),e.cpu?n("agentsMetricsRecentCpu",{percent:w(e.cpu.rootPercent),treePercent:w(e.cpu.treePercent),seconds:(e.cpu.windowMs/1e3).toFixed(1)}):n("agentsMetricsCpuSampling"),n("agentsMetricsRootRss",{value:S(e.memory.rootRssBytes)}),n("agentsMetricsTreeRss",{value:S(e.memory.treeRssBytes)}),n("agentsMetricsDescendants",{count:e.memory.descendantCount}),n("agentsMetricsSampled",{value:new Date(e.sampledAt).toLocaleTimeString()})].join(`
|
|
2
|
-
`);return _.useEffect(()=>{if(!l)return;const x=c=>{var g,h;if(!(c.target instanceof Node))return;const j=c.pointerType==="touch"&&((g=r==null?void 0:r.current)==null?void 0:g.contains(c.target));!((h=o.current)!=null&&h.contains(c.target))&&!j&&p(!1)},m=c=>{c.key==="Escape"&&p(!1)};return document.addEventListener("pointerdown",x),document.addEventListener("keydown",m),()=>{document.removeEventListener("pointerdown",x),document.removeEventListener("keydown",m)}},[l,r]),_.useEffect(()=>{const x=r==null?void 0:r.current;if(!x)return;const m=c=>{var g;if(c.pointerType!=="touch"||!(c.target instanceof Node)||(g=o.current)!=null&&g.contains(c.target))return;(c.target instanceof Element?c.target.closest("a, button, input, select, textarea, [role='button'], [role='link']"):null)||p(h=>!h)};return x.addEventListener("pointerup",m),()=>{x.removeEventListener("pointerup",m)}},[r]),t.jsxs("span",{className:N("agent-metrics-wrap",s.metricsWrap,l&&s.metricsWrapOpen),ref:o,children:[t.jsxs("button",{type:"button",className:s.metrics,title:v,"aria-label":v,"aria-expanded":l,onClick:x=>{x.preventDefault(),x.stopPropagation(),p(m=>!m)},children:[t.jsxs("span",{children:[S(e.memory.rootRssBytes)," RSS"]}),t.jsx("span",{"aria-hidden":!0,children:"·"}),t.jsx("span",{children:u})]}),l&&t.jsx("span",{className:s.metricsPopover,role:"status",children:v})]})}function M({process:e,observation:r,basePath:n="",isTerminated:l=!1,onKill:p,killing:o=!1}){const{t:i}=b(),d=e.providerChildren??[];return t.jsxs($,{to:`${n}/projects/${e.projectId}/sessions/${e.sessionId}`,className:N(s.card,l&&s.cardTerminated),children:[t.jsxs("div",{className:s.cardHeader,children:[t.jsxs("div",{className:s.cardTitle,children:[t.jsx("span",{className:s.cardSessionTitle,children:e.sessionTitle||i("agentsUntitled")}),e.clearloop!==void 0&&t.jsx(U,{badge:e.clearloop}),t.jsx("span",{className:N(s.providerBadge,I(e.provider)),children:L(e.provider,i)}),e.state==="in-turn"?t.jsx(q,{variant:"pill",label:i("agentsRunning")}):t.jsx("span",{className:N(s.stateBadge,Ye(e.state)),children:qe(e.state,i)}),!l&&p&&t.jsx("button",{type:"button",className:s.killButton,disabled:o,onClick:u=>{u.preventDefault(),u.stopPropagation(),p(e)},title:i("agentsKillTitle"),children:i(o?"agentsKilling":"agentsKill")})]}),t.jsxs("div",{className:N("agent-card-meta",s.cardMeta),children:[t.jsx("span",{className:s.cardProject,children:e.projectName}),e.pid!==void 0&&t.jsx("span",{className:s.cardPid,children:i("agentsPid",{pid:e.pid})}),!l&&t.jsx("span",{className:s.cardUptime,children:B(e.startedAt)}),!l&&r&&t.jsx(R,{observation:r}),e.contextUsage&&t.jsx(G,{usage:e.contextUsage})]})]}),(e.permissionMode||e.queueDepth>0||e.terminationReason)&&t.jsxs("div",{className:s.cardDetails,children:[e.permissionMode&&t.jsxs("div",{className:s.detailRow,children:[t.jsx("span",{className:s.detailLabel,children:i("agentsPermissionMode")}),t.jsx("span",{className:s.detailValue,children:e.permissionMode})]}),e.queueDepth>0&&t.jsxs("div",{className:s.detailRow,children:[t.jsx("span",{className:s.detailLabel,children:i("agentsMessagesQueued")}),t.jsx("span",{className:s.detailValue,children:e.queueDepth})]}),e.terminationReason&&t.jsxs("div",{className:s.detailRow,children:[t.jsx("span",{className:s.detailLabel,children:i("agentsStopReason")}),t.jsx("span",{className:s.detailValue,children:e.terminationReason})]})]}),d.length>0&&t.jsx("div",{className:s.providerChildren,role:"list","aria-label":i(d.length===1?"providerChildrenCountOne":"providerChildrenCountMany",{count:d.length}),children:d.map(u=>{const v=Y(u,i("providerChildFallback"));return t.jsx("span",{role:"listitem",children:t.jsxs(V,{className:s.providerChild,href:Q(n,e.projectId,e.sessionId,u.id),children:[t.jsx("span",{className:s.providerChildBranch,"aria-hidden":!0,children:"↳"}),t.jsx("span",{className:s.providerChildTitle,children:v}),u.agentType&&u.agentType!==v&&t.jsx("span",{className:s.providerChildType,children:u.agentType})]})},u.id)})})]})}function ze({observation:e}){const{t:r}=b(),n=L(e.provider,r),l=_.useRef(null);return t.jsx("article",{className:N(s.card,s.cardExternal),ref:l,children:t.jsxs("div",{className:s.cardHeader,children:[t.jsxs("div",{className:s.cardTitle,children:[t.jsx("span",{className:s.cardSessionTitle,children:r("agentsExternalProcessTitle",{provider:n})}),t.jsx("span",{className:N(s.providerBadge,I(e.provider)),children:n}),t.jsx("span",{className:N(s.stateBadge,s.stateExternal),children:r("agentsOutsideYa")})]}),t.jsxs("div",{className:N("agent-card-meta",s.cardMeta),children:[t.jsx("span",{className:s.cardPid,children:r("agentsPid",{pid:e.pid})}),t.jsx("span",{className:s.cardUptime,children:B(e.startedAt)}),t.jsx(R,{observation:e,touchSurfaceRef:l})]})]})})}function ht(){const{t:e}=b(),{processes:r,terminatedProcesses:n,loading:l,error:p,refetch:o}=K(),i=Z(),d=re(),{openSidebar:u,isWideScreen:v}=A(),[x,m]=_.useState(()=>new Set),[c,j]=_.useState(null),g=_.useCallback(async a=>{const P=a.sessionTitle||e("agentsUntitled");if(window.confirm(e("agentsKillConfirm",{title:P}))){m(f=>new Set(f).add(a.id)),j(null);try{const f=await H.abortProcess(a.id,{blockResume:!0}),E=f.pid===void 0?e("agentsKillVerified"):e("agentsKillVerifiedPid",{pid:f.pid}),C=f.resumeExemption;if(C!=null&&C.error||(C==null?void 0:C.autoResumeDisabled)===!1)j({tone:"error",message:`${E} ${e("agentsKillResumeBlockFailed",{message:C.error??e("agentsKillResumeBlockUnknown")})}`});else{const O=C!=null&&C.autoResumeDisabled?` ${e("agentsKillResumeBlocked")}`:"";j({tone:"success",message:`${E}${O}`})}}catch(f){j({tone:"error",message:e("agentsKillFailed",{message:f instanceof Error?f.message:String(f)})})}finally{await o(),m(f=>{const E=new Set(f);return E.delete(a.id),E})}}},[o,e]),h=r.filter(a=>a.state==="in-turn"||a.state==="waiting-input"),y=r.filter(a=>a.state==="idle"),T=_.useMemo(()=>new Map(d.observations.filter(a=>a.supervisorProcessId!==void 0).map(a=>[a.supervisorProcessId,a])),[d.observations]),k=d.observations.filter(a=>a.supervision==="external");return t.jsxs(te,{isWideScreen:v,children:[t.jsx(W,{title:e("agentsTitle"),onOpenSidebar:u}),t.jsx("main",{className:"page-scroll-container",children:t.jsxs("div",{className:"page-content-inner",children:[l&&t.jsx("p",{className:"loading",children:e("agentsLoading")}),p&&t.jsx("p",{className:"error",children:e("agentsError",{message:p.message})}),c&&t.jsx("p",{className:N(s.killFeedback,Qe[c.tone]),role:c.tone==="error"?"alert":"status",children:c.message}),!l&&!p&&t.jsxs(t.Fragment,{children:[t.jsxs("section",{className:s.section,children:[t.jsx("h2",{children:e("agentsSectionActive")}),h.length===0?t.jsx("p",{className:s.empty,children:e("agentsEmptyActive")}):t.jsx("div",{className:s.list,children:h.map(a=>t.jsx(M,{process:a,observation:T.get(a.id),basePath:i,onKill:g,killing:x.has(a.id)},a.id))})]}),d.enabled&&t.jsxs("section",{className:s.section,children:[t.jsx("h2",{children:e("agentsSectionExternal")}),d.loading?t.jsx("p",{className:s.empty,children:e("agentsExternalLoading")}):d.supported===!1?t.jsx("p",{className:s.empty,children:e("agentsExternalUnsupported")}):d.error?t.jsx("p",{className:s.empty,children:e("agentsExternalUnavailable")}):k.length===0?t.jsx("p",{className:s.empty,children:e("agentsEmptyExternal")}):t.jsx("div",{className:s.list,children:k.map(a=>t.jsx(ze,{observation:a},a.observationId))})]}),t.jsxs("section",{className:s.section,children:[t.jsx("h2",{children:e("agentsSectionIdle")}),y.length===0?t.jsx("p",{className:s.empty,children:e("agentsEmptyIdle")}):t.jsx("div",{className:s.list,children:y.map(a=>t.jsx(M,{process:a,observation:T.get(a.id),basePath:i,onKill:g,killing:x.has(a.id)},a.id))})]}),t.jsxs("section",{className:s.section,children:[t.jsx("h2",{children:e("agentsSectionStopped")}),n.length===0?t.jsx("p",{className:s.empty,children:e("agentsEmptyStopped")}):t.jsx("div",{className:s.list,children:n.map(a=>t.jsx(M,{process:a,basePath:i,isTerminated:!0},a.id))})]})]})]})})]})}export{ht as AgentsPage};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodexUpdatePrompt-ChHtbla-.js","assets/index-BUrcmRdN.js","assets/react-runtime-D-UPQ57m.js","assets/index-wA2zlxt-.css","assets/useCodexUpdateStatus-BIDehnvt.js","assets/client-sN_tbfxh.js","assets/RelayProtocol-DjpPJk64.js","assets/useProviders-C6kBPWYX.js","assets/types-BHkriVjU.js","assets/Modal-QUinFhBP.js","assets/remoteRoutePaths-CiDZeM2I.js","assets/Modal-EC-u4IZ7.css","assets/frontendReload-DT6MOpjg.js","assets/FloatingActionButton-DBIoFwff.js","assets/newSessionDefaults-C6a9Cpc6.js","assets/useModelSettings-DoDJRymT.js","assets/newSessionPrefill-DkkSfnYR.js","assets/speechDraftTransaction-zyWVCYTF.js","assets/deviceDetection-BVPclkty.js","assets/YaServerProvider-OSxrnpr9.js","assets/useSidebarWidth-ut6NNk5Y.js","assets/VoiceInputButton-japn0Kx_.js","assets/VoiceInputButton-CTd6zXtZ.css","assets/useFloatingActionButtonEnabled-C31rfHtR.js","assets/index-CkZXrIi5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as p,j as o,u as S,d as dt,f as X,e as O,bb as D}from"./index-BUrcmRdN.js";import{u as mt,b as ft}from"./useOnboarding-CYgE-Xsg.js";import{e as pt,u as ht,f as P,a as _t,b as gt,T as bt,m as vt,n as Rt}from"./Modal-QUinFhBP.js";import{a as yt}from"./deviceDetection-BVPclkty.js";import{u as Ct,C as St}from"./useActivityBusState-CINl9yjP.js";import{u as xt,g as Et,i as Tt}from"./remoteRoutePaths-CiDZeM2I.js";import{u as At,p as Nt}from"./useProviders-C6kBPWYX.js";import{u as J,A as kt}from"./AuthContext-CVsoMulX.js";import{J as jt,K as Bt,L as wt,C as U,g as Lt,M,N as Ot,R as A,O as Dt,b as Z}from"./client-sN_tbfxh.js";import{g as Pt,a as It}from"./hostStorage-BoEdRarg.js";import{H as $t,u as Ft}from"./HostIdentityContext-D5aBdejC.js";import{I as Ut}from"./InboxContext-opkOiXDB.js";import{S as Mt}from"./SchemaValidationContext-CIAd7icg.js";import{P as N}from"./useDocumentTitle-C06qawRj.js";import{u as Ht}from"./frontendReload-DT6MOpjg.js";import{u as Kt}from"./useTabTitleActivityPreference-B0suFUHK.js";import{a as Wt}from"./useNotifyInApp-BcLZ8ie_.js";import{u as zt,g as Gt}from"./useReloadNotifications-B0egr2ys.js";import"./react-runtime-D-UPQ57m.js";import"./appHref-ByaEnJGJ.js";import"./RelayProtocol-DjpPJk64.js";import"./types-BHkriVjU.js";function Yt(t){return wt(`server:${t}`)}function H(t){return t.serverInstanceId?Yt(t.serverInstanceId):jt(t.id)}function qt(t){return Bt(Vt(t))}function Vt(t){const e=t.trim();try{const n=new URL(e);return n.hash="",n.toString()}catch{return e}}const Qt=".session-messages, .page-scroll-container",Xt="input, textarea, select, [contenteditable='true']",Jt=48,Zt=2,te=18,ee=84;function ne(t){return t instanceof Element?t:t instanceof Node?t.parentElement:null}function re(t){return t.scrollHeight-t.clientHeight>Jt}function k(t,e=Zt){return t.scrollHeight-t.clientHeight-t.scrollTop<=e}function oe(t){const e=ne(t);if(!e||e.closest(Xt))return null;const n=e.closest(Qt);return!n||!re(n)?null:n}function se(t,e){return Math.max(0,t-e)}function ae(t){return t.atBottom?t.distancePx>=ee?"armed":t.distancePx>=te?"pull":"hidden":"hidden"}function j(){return{active:!1,container:null,startY:0,status:"hidden"}}function ie(t,e={}){const{disabled:n=!1}=e,[r,s]=p.useState("hidden"),a=p.useRef(j()),c=p.useRef("hidden");return p.useEffect(()=>{if(n||!yt()){s("hidden"),c.current="hidden",a.current=j();return}const l=d=>{c.current!==d&&(c.current=d,s(d))},u=()=>{a.current=j(),l("hidden")},h=d=>{var v;if(d.touches.length!==1){u();return}const m=oe(d.target);if(!m||!k(m)){u();return}a.current={active:!0,container:m,startY:((v=d.touches[0])==null?void 0:v.clientY)??0,status:"hidden"}},i=d=>{var _;const m=a.current;if(!m.active||!m.container||d.touches.length!==1)return;const v=se(m.startY,((_=d.touches[0])==null?void 0:_.clientY)??m.startY),f=ae({distancePx:v,atBottom:k(m.container)});m.status=f,l(f)},b=()=>{const d=a.current,m=d.active&&d.status==="armed"&&!!d.container&&k(d.container);u(),m&&t()};return document.addEventListener("touchstart",h,{passive:!0}),document.addEventListener("touchmove",i,{passive:!0}),document.addEventListener("touchend",b,{passive:!0}),document.addEventListener("touchcancel",b,{passive:!0}),()=>{document.removeEventListener("touchstart",h),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",b),document.removeEventListener("touchcancel",b)}},[n,t]),r}function ce(t){return t==="armed"?"Release to reload":"Pull up to reload"}function ue({disabled:t=!1,onReload:e}){const n=ie(e,{disabled:t});return n==="hidden"?null:o.jsx("div",{className:`bottom-overscroll-reload bottom-overscroll-reload--${n}`,"aria-live":"polite",children:ce(n)})}function le(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${Math.round(t/1e3)}K`:String(t)}function de(){const{t}=S(),{showToast:e}=pt(),n=dt(),r=ht();return p.useEffect(()=>X.on("cache-miss-billing",s=>{if(!s.showToast||!s.record.exception)return;const{record:a}=s;e(t("cacheMissBillingToast",{provider:a.provider,tokens:le(a.wastedInputTokens)}),"error",{label:t("cacheMissBillingOpenSession"),onClick:()=>n(`${r}${a.sessionPath}`)})}),[r,n,e,t]),null}const me="_root_18czr_1",fe="_connecting_18czr_12",pe="_disconnected_18czr_17",B={root:me,connecting:fe,disconnected:pe},he=["/login","/login/direct","/login/relay"];function _e(){const t=O(),{connectionState:e}=Ct(),{showConnectionBars:n}=xt();if(he.some(c=>t.pathname===c||t.pathname.startsWith(`${c}/`))||!n)return null;const s=e==="reconnecting"?"connecting":e;if(s==="connected")return null;const a=s==="connecting"?B.connecting:B.disconnected;return o.jsx("div",{className:`${B.root} ${a}`,"data-connection-status":s})}const ge="https://claude.com/download",be="https://openai.com/codex/get-started/",tt="desktop-provider-notice-dismissed";function ve(t=window.localStorage){try{return t.getItem(tt)==="true"}catch{return!1}}function Re(t=window.localStorage){try{t.setItem(tt,"true")}catch{}}function ye(t){return t.some(e=>(e.name==="claude"||e.name==="codex")&&(e.applicationDetected??e.installed))}function Ce(){const{t}=S(),{version:e}=P(),{providers:n,loading:r,error:s,refetch:a}=At(),[c,l]=p.useState(()=>ve());return p.useEffect(()=>{if((e==null?void 0:e.desktopRuntime)!==!0)return;const u=()=>void a();return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)},[a,e==null?void 0:e.desktopRuntime]),c||(e==null?void 0:e.desktopRuntime)!==!0||r||s||ye(n)?null:o.jsxs("aside",{className:"desktop-provider-notice","aria-live":"polite",children:[o.jsxs("div",{className:"desktop-provider-notice__copy",children:[o.jsx("strong",{children:t("desktopProviderNoticeTitle")}),o.jsx("span",{children:t("desktopProviderNoticeDescription")})]}),o.jsxs("div",{className:"desktop-provider-notice__actions",children:[o.jsx("a",{href:ge,target:"_blank",rel:"noreferrer",children:t("desktopProviderNoticeGetClaude")}),o.jsx("a",{href:be,target:"_blank",rel:"noreferrer",children:t("desktopProviderNoticeGetCodex")}),o.jsx("button",{type:"button",onClick:()=>void a(),children:t("desktopProviderNoticeRetry")}),o.jsx("button",{type:"button",className:"desktop-provider-notice__dismiss","aria-label":t("desktopProviderNoticeDismiss"),onClick:()=>{Re(),l(!0)},children:"×"})]})]})}const Se="_root_1kkzg_8",xe="_content_1kkzg_22",Ee="_title_1kkzg_30",Te="_body_1kkzg_38",Ae="_command_1kkzg_45",Ne="_dismiss_1kkzg_62",C={root:Se,content:xe,title:Ee,body:Te,command:Ae,dismiss:Ne};function et(t){return`yep-anywhere-storage-filesystem-dismissed:${t}`}function ke(t){var e;return((e=t==null?void 0:t.sqlite)==null?void 0:e.networkFilesystem)||null}function K(t){if(!t)return!1;try{return window.localStorage.getItem(et(t))==="dismissed"}catch{return!1}}function je(){const{t}=S(),{version:e}=P(),n=ke(e),[r,s]=p.useState(()=>K(n));p.useEffect(()=>{s(K(n))},[n]);const a=p.useCallback(()=>{if(s(!0),!!n)try{window.localStorage.setItem(et(n),"dismissed")}catch{}},[n]);return!n||r?null:o.jsxs("div",{className:C.root,role:"alert","data-storage-filesystem":"network",children:[o.jsxs("div",{className:C.content,children:[o.jsx("p",{className:C.title,children:t("storageNetworkFilesystemTitle",{filesystem:n})}),o.jsx("p",{className:C.body,children:t("storageNetworkFilesystemDescription",{filesystem:n})}),o.jsx("code",{className:C.command,children:"YEP_DATA_DIR=/path/on/local/disk/.yep-anywhere"})]}),o.jsx("button",{type:"button",className:C.dismiss,onClick:a,children:t("storageNetworkFilesystemDismiss")})]})}const Be="_stack_12lj4_24",we="_banner_12lj4_39",Le="_content_12lj4_59",Oe="_actions_12lj4_60",De="_message_12lj4_76",Pe="_warningText_12lj4_81",Ie="_warningDetail_12lj4_89",$e="_button_12lj4_100",Fe="_buttonLabel_12lj4_123",Ue="_buttonPrimary_12lj4_133",Me="_warning_12lj4_81",He="_buttonSafe_12lj4_152",Ke="_buttonDanger_12lj4_156",We="_dismiss_12lj4_165",g={stack:Be,banner:we,content:Le,actions:Oe,message:De,warningText:Pe,warningDetail:Ie,button:$e,buttonLabel:Fe,buttonPrimary:Ue,warning:Me,buttonSafe:He,buttonDanger:Ke,dismiss:We},ze=4,Ge=8,W=8,z=12;function G(t,e,n){return t.left<e.right+n&&t.right>e.left-n&&t.top<e.bottom+n&&t.bottom>e.top-n}function Ye({children:t,avoidSessionComposer:e=!1}){const n=p.useRef(null);return p.useLayoutEffect(()=>{const r=n.current;if(!r)return;let s=null;const a=()=>{r.style.setProperty("--reload-banner-stack-lift","0px");const b=r.getBoundingClientRect();if(b.width===0||b.height===0)return;let d=0;const m=e&&window.innerWidth>600?document.querySelector(".session-input"):null;if(m){const f=m.querySelectorAll("button, a[href], [role='button'], input:not([type='hidden']), select");if(Array.from(f).some(R=>{const y=R.getBoundingClientRect();return y.width>0&&y.height>0&&G(b,y,ze)})){const R=m.getBoundingClientRect();d=Math.max(d,window.innerHeight-R.top+Ge-z)}}const v=document.querySelector(".fab-container");if(v){const f=v.getBoundingClientRect();f.width>0&&f.height>0&&G(b,f,W)&&(d=Math.max(d,window.innerHeight-f.top+W-z))}r.style.setProperty("--reload-banner-stack-lift",`${Math.max(0,Math.ceil(d))}px`)},c=()=>{s!==null&&window.cancelAnimationFrame(s),s=window.requestAnimationFrame(()=>{s=null,a()})};a(),window.addEventListener("resize",c);const l=e?document.querySelector(".session-input"):null,u=document.querySelector(".fab-container"),h=typeof ResizeObserver>"u"?null:new ResizeObserver(c);h==null||h.observe(r),l&&(h==null||h.observe(l)),u&&(h==null||h.observe(u));const i=l||u?new MutationObserver(c):null;return l&&i&&i.observe(l,{attributes:!0,childList:!0,subtree:!0}),u&&i&&i.observe(u,{attributes:!0,childList:!0,subtree:!0}),()=>{s!==null&&window.cancelAnimationFrame(s),window.removeEventListener("resize",c),h==null||h.disconnect(),i==null||i.disconnect()}},[e]),o.jsx("div",{ref:n,className:`reload-banner-stack ${g.stack}`,children:t})}function Y(t,e){var n;return((n=t.find(r=>r.type===e))==null?void 0:n.count)??0}function qe(t,e){var n;return((n=t==null?void 0:t.find(r=>r.type===e))==null?void 0:n.count)??0}function q({target:t,onReload:e,onDismiss:n,onRestartWhenSafe:r,onCancelSafeRestart:s,unsafeToRestart:a,interruptibleSessionCount:c=0,queuedSessionMessageCount:l=0,safeRestartState:u,safeRestartMutating:h=!1}){const{t:i}=S(),b=i(t==="backend"?"reloadBannerTargetServer":"reloadBannerTargetFrontend"),d=t==="backend"&&u!==void 0&&u.status!=="idle",m=a&&t==="backend"||d,v=t==="backend"&&r&&a&&!d,f=u?Y(u.blockers,"active-sessions"):0,_=u?Y(u.blockers,"session-queue"):0,R=u?qe(u.preserved,"recovered-session-queue"):0,y=(u==null?void 0:u.status)==="restarting"?i("reloadBannerSafeRestartRestarting"):d?f>0&&_>0?i("reloadBannerSafeRestartWaitingActiveAndQueued",{activeCount:f,activeSuffix:f!==1?"s":"",queuedCount:_,queuedSuffix:_!==1?"s":""}):f>0?i("reloadBannerSafeRestartWaitingActive",{count:f,suffix:f!==1?"s":""}):_>0?i("reloadBannerSafeRestartWaitingQueued",{count:_,suffix:_!==1?"s":""}):i("reloadBannerSafeRestartReady"):null,x=d&&R>0?i("reloadBannerSafeRestartPreservedRecoveredQueue",{count:R,suffix:R!==1?"s":""}):null,T=c>0&&l>0?i("developmentInterruptedWarningActiveAndQueued",{activeCount:c,activeSuffix:c!==1?"s":"",queuedCount:l,queuedSuffix:l!==1?"s":""}):l>0?i("developmentInterruptedWarningQueued",{count:l,suffix:l!==1?"s":""}):i("developmentInterruptedWarning",{count:c,suffix:c!==1?"s ":" "}),E=f>0&&_>0?i("reloadBannerStatusActiveAndQueuedCompact",{activeCount:f,queuedCount:_}):f>0?i("reloadBannerStatusActiveCompact",{count:f}):_>0?i("reloadBannerStatusQueuedCompact",{count:_}):null,st=c>0&&l>0?i("reloadBannerStatusActiveAndQueuedCompact",{activeCount:c,queuedCount:l}):l>0?i("reloadBannerStatusQueuedCompact",{count:l}):i("reloadBannerStatusActiveCompact",{count:c}),at=(u==null?void 0:u.status)==="restarting"?i("reloadBannerSafeRestartRestartingCompact"):d?E??i("reloadBannerSafeRestartReadyCompact"):st,I=y??T,$=x?`${I} ${x}`:I,F=m?i("reloadBannerReloadNow"):i("reloadBannerReloadTarget",{target:b}),it=()=>{n(),e()},ct=()=>{n(),r==null||r()},ut=()=>{n(),s==null||s()},lt=()=>{n()};return o.jsxs("div",{className:`reload-banner ${g.banner} ${m?g.warning:""}`,role:"status",children:[o.jsxs("span",{className:g.content,children:[o.jsx("span",{className:g.message,children:i("reloadBannerCodeChangedCompact",{target:b})}),m&&o.jsxs("span",{className:g.warningText,"aria-hidden":"true",title:$,children:[" · ",at]}),m&&o.jsx("span",{className:g.warningDetail,children:$})]}),o.jsxs("span",{className:g.actions,children:[o.jsx("button",{type:"button",className:`${g.button} ${g.buttonPrimary} ${m?g.buttonDanger:""}`,onClick:it,"aria-label":F,title:F,children:o.jsx("span",{className:g.buttonLabel,children:i("reloadBannerReloadTargetCompact")})}),v&&o.jsx("button",{type:"button",className:`${g.button} ${g.buttonSafe}`,onClick:ct,disabled:h,"aria-label":i("reloadBannerRestartWhenSafe"),title:i("reloadBannerRestartWhenSafe"),children:o.jsx("span",{className:g.buttonLabel,children:i("reloadBannerRestartWhenSafeCompact")})}),d&&s&&o.jsx("button",{type:"button",className:g.button,onClick:ut,disabled:h,"aria-label":i("reloadBannerCancelSafeRestart"),title:i("reloadBannerCancelSafeRestart"),children:o.jsx("span",{className:g.buttonLabel,children:i("reloadBannerCancelSafeRestartCompact")})}),o.jsx("button",{type:"button",className:`${g.button} ${g.dismiss}`,onClick:lt,"aria-label":i("reloadBannerDismiss"),title:i("reloadBannerDismiss"),children:o.jsx("span",{"aria-hidden":"true",children:"×"})})]})]})}const Ve=new Set(["login","remote","share"]),Qe={kind:"localhost"},Xe={kind:"secure"};function Je(t){const e=t.replace(/^\/+/,"").split("/")[0]??"";try{return decodeURIComponent(e)}catch{return e}}function Ze(t){const{pathname:e,remote:n}=t;if(!n)return Ot;const r=Et(e);if(r){const c=Pt(r);return c?H(c):A}const s=Je(e);if(Ve.has(s)||s!==""&&!Tt(s))return A;const a=n.currentHostId?It(n.currentHostId):void 0;return(a==null?void 0:a.mode)==="direct"?H(a):n.currentDirectUrl?qt(n.currentDirectUrl):A}function tn(){const t=_t(),e=O(),n=t!==null,r=(t==null?void 0:t.currentDirectUrl)??null,s=(t==null?void 0:t.currentHostId)??null,a=p.useMemo(()=>Ze({pathname:e.pathname,remote:n?{currentDirectUrl:r,currentHostId:s}:null}),[r,s,n,e.pathname]),c=n?Xe:Qe;return U().registerSourceTransport(a,c),Lt()!==a&&M(a),p.useLayoutEffect(()=>{U().registerSourceTransport(a,c),M(a)},[a,c]),null}function en(){const{isAuthenticated:t,authEnabled:e,isLoading:n}=J(),r=gt();p.useEffect(()=>{if(!(n||!(!e||t)))return X.retainCurrentSourceStream(r.sourceKey,r.transport)},[r.sourceKey,r.transport,t,e,n])}const nn=/^\(\d+\)\s*/,rn=/^\((?:●|○|\*| )\)\s*/u,w=["bold","plain"],nt=1500;function rt(t,e){return[...t].map(n=>{const r=n.codePointAt(0),s=e(r);return s===void 0?n:String.fromCodePoint(s)}).join("")}function on(t){return rt(t,e=>{if(e>=65&&e<=90)return 119808+e-65;if(e>=97&&e<=122)return 119834+e-97;if(e>=48&&e<=57)return 120782+e-48})}function sn(t){return rt(t,e=>{if(e>=119808&&e<=119833)return 65+e-119808;if(e>=119834&&e<=119859)return 97+e-119834;if(e>=120782&&e<=120791)return 48+e-120782})}function ot(t,e,n){return n?t.replace(/^([^:]+):/u,(r,s)=>{const a=sn(s);return`${e==="bold"?on(a):a}:`}):t}function L(t,e,n=/^[A-Za-z0-9_-]{1,12}:/u.test(t)){let r=t;for(;;){const c=r.replace(nn,"").replace(rn,"");if(c===r)break;r=c}const s=e?`${e} `:"",a=s&&r.startsWith(s)?r.slice(s.length):r;return ot(a,"plain",n)}function V(t,e,n,r,s=/^[A-Za-z0-9_-]{1,12}:/u.test(t),a=!1){const c=s&&a,l=[];e>0&&l.push(`(${e})`),n&&!c&&l.push(n==="bold"?"(●)":"(○)"),r&&l.push(r);const u=ot(t,c?n:"plain",s);return l.length>0?`${l.join(" ")} ${u}`:u}function Q(t,e=Date.now()){const n=Math.max(0,e-t),r=Math.floor(n/nt)%w.length;return w[r]??w[0]}function an(t){const e=p.useRef(null),{needsAttention:n,active:r}=Dt(),{tabTitleActivityEnabled:s}=Kt(),{projectCodeNameActivityPulseEnabled:a}=Ht(),c=s&&r>0;return p.useEffect(()=>()=>{var u;const l=(u=document.querySelector("title"))==null?void 0:u.hasAttribute(N);document.title=L(document.title,t,l)},[t]),p.useEffect(()=>{c&&e.current===null?e.current=Date.now():c||(e.current=null);let l=!1,u=null;const h=()=>{var _;l=!0;const d=(_=document.querySelector("title"))==null?void 0:_.hasAttribute(N),m=L(document.title,t,d),v=e.current,f=c&&v!==null?Q(v):void 0;document.title=V(m,n,f,t,d,a),setTimeout(()=>{l=!1},0)};h(),c&&(u=setInterval(()=>{h()},nt));const i=new MutationObserver(()=>{var y;if(l)return;const d=document.title,m=(y=document.querySelector("title"))==null?void 0:y.hasAttribute(N),v=L(d,t,m),f=e.current,_=c&&f!==null?Q(f):void 0,R=V(v,n,_,t,m,a);d!==R&&h()}),b=document.querySelector("title");return b&&i.observe(b,{childList:!0,characterData:!0,subtree:!0}),()=>{i.disconnect(),u&&clearInterval(u)}},[n,t,a,c]),n}const cn=p.lazy(()=>D(async()=>{const{CodexUpdatePrompt:t}=await import("./CodexUpdatePrompt-ChHtbla-.js");return{CodexUpdatePrompt:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(({CodexUpdatePrompt:t})=>({default:t}))),un=p.lazy(()=>D(async()=>{const{FloatingActionButton:t}=await import("./FloatingActionButton-DBIoFwff.js");return{FloatingActionButton:t}},__vite__mapDeps([13,1,2,3,8,14,15,5,6,16,9,10,11,7,12,17,18,19,20,21,22,23])).then(({FloatingActionButton:t})=>({default:t}))),ln=p.lazy(()=>D(async()=>{const{OnboardingWizard:t}=await import("./index-CkZXrIi5.js");return{OnboardingWizard:t}},__vite__mapDeps([24,1,2,3,9,5,6,10,11])).then(({OnboardingWizard:t})=>({default:t})));function dn({children:t}){const e=O(),n=/\/sessions\/[^/]+/.test(e.pathname),{icon:r}=Ft(),{authEnabled:s,isAuthenticated:a,isLoading:c}=J(),l=Z();en(),p.useEffect(()=>{c||s&&!a||Nt(l).catch(()=>{})},[s,c,a,l]),p.useEffect(()=>Rt(),[]),Wt(),an(r??void 0);const{isManualReloadMode:u,pendingReloads:h,reloadBackend:i,reloadFrontend:b,scheduleSafeRestart:d,cancelSafeRestart:m,dismiss:v,unsafeToRestart:f,interruptibleSessionCount:_,queuedSessionMessageCount:R,safeRestartState:y,safeRestartMutating:x,backendReloadSafetyKnown:T}=zt(),E=Gt(!!u,h,{backendReloadSafetyKnown:T});return o.jsxs(o.Fragment,{children:[o.jsx(_e,{}),o.jsx(je,{}),o.jsx(Ce,{}),!c&&(!s||a)&&o.jsx(mn,{}),o.jsx(de,{}),!n&&o.jsx(St,{}),o.jsxs(Ye,{avoidSessionComposer:n,children:[E.backend&&o.jsx(q,{target:"backend",onReload:i,onDismiss:()=>v("backend"),onRestartWhenSafe:d,onCancelSafeRestart:m,unsafeToRestart:f,interruptibleSessionCount:_,queuedSessionMessageCount:R,safeRestartState:y,safeRestartMutating:x}),E.frontend&&o.jsx(q,{target:"frontend",onReload:b,onDismiss:()=>v("frontend")})]}),o.jsx(ue,{disabled:n,onReload:b}),t,o.jsx(p.Suspense,{fallback:null,children:o.jsx(un,{})})]})}function Dn({children:t}){const{showWizard:e,isLoading:n,completeOnboarding:r}=mt();return o.jsx(bt,{children:o.jsxs(kt,{children:[o.jsx(tn,{}),o.jsx(vt,{children:o.jsx($t,{children:o.jsx(Ut,{children:o.jsxs(Mt,{children:[o.jsx(dn,{children:t}),o.jsxs(p.Suspense,{fallback:null,children:[!n&&e&&o.jsx(ln,{onComplete:r}),!n&&!e&&o.jsx(cn,{})]})]})})})})]})})}function mn(){const{version:t,error:e}=P(),n=Z(),{t:r}=S();return e?null:o.jsx(ft,{versionInfo:t,relayUsername:null,runtimeNotice:{runtime:t==null?void 0:t.serverRuntime,sourceKey:n,t:r}})}export{Dn as App};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as Ea,d as Oa,k as Ca,l as Pa,m as va,n as ya,o as Fa,s as La,G as Ia,p as ka,r as c,q as Aa,j as e,t as wa,T as Da,M as wt,v as Dt,D as ie,w as Ua,O as Ut,x as Rt,y as Mt,z as Ra,A as Ma,C as za,E as Ha,F as Ga,I as zt,J as Xa,K as Ba,N as Wa,Q as Za,R as Va,V as $a,W as Qa,X as Ka,Y as Ya,Z as qa,_ as Ja,$ as es,a0 as Ht,a1 as Gt,a2 as Xt,a3 as ts,a4 as Bt,a5 as Wt,a6 as Zt,a7 as as,a8 as Vt,a9 as $t,aa as Qt,ab as Kt,ac as Yt,ad as qt,ae as Jt,af as ea,ag as ta,ah as aa,ai as sa,aj as na,ak as ss,al as ns,am as is,an as cs,ao as ls,ap as os,aq as rs,ar as ps}from"./index-BUrcmRdN.js";import{u as us,a as ds,T as ms}from"./useAcliCommentarySetting-DxndlmkH.js";import{a as hs,b as gs,c as Ts,d as xs,e as bs,f as Ns,g as Ss,r as js,H as ia,h as ca,i as la,D as ce,Q as _s,S as O,j as fs}from"./providerChildSessions-ClrSXOQr.js";import{u as Es}from"./remoteRoutePaths-CiDZeM2I.js";import{u as Os}from"./useFloatingActionButtonEnabled-C31rfHtR.js";import{u as Cs,a as Ps,b as vs}from"./useWorkflowTags-_4F_41YI.js";import{u as ys,a as Fs,G as oa,b as ra,c as pa,D as le}from"./useGeneratedTitleLength-Cu-SoQ6T.js";import{S as n}from"./SettingsItem-B_rM9Vhi.js";import{u as Ls,a as Is,b as ks,g as ua,c as da,S as As,s as ws,d as Ds,e as ma,f as ha,h as ga,i as Us}from"./index-BBpZzMBa.js";import{S as Rs}from"./SettingsSection-DOwc_RwX.js";import{u as Ms,f as zs}from"./Modal-QUinFhBP.js";import{c as Hs}from"./NavigationLayout-BkOsag-J.js";import{u as Gs}from"./useTabTitleActivityPreference-B0suFUHK.js";import{C as u}from"./CommittedRangeInput-C3Z7YUlS.js";import{C as R}from"./CommittedRangeNumberInput-D497_5ff.js";import{u as Xs}from"./frontendReload-DT6MOpjg.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./PageHeader-BaYMLVHI.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./index-CA-BRFYh.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";const Bs="$E=mc^2$";function i(l){return Number.isInteger(l),String(l)}function s(l,r,a){return{value:l,restore:M=>{const C=M;r(C),a==null||a(C)}}}function Ta(l,r){switch(l){case"flat":return r("appearanceSettingsIconStyleFlat");case"flat-white":return r("appearanceSettingsIconStyleFlatWhite");case"emoji":return r("appearanceSettingsIconStyleEmoji")}}function xa(l,r){switch(l){case"block":return r("appearanceQuoteReplyButtonsBlock");case"paragraph-hover":return r("appearanceQuoteReplyButtonsParagraphHover");case"paragraph-always":return r("appearanceQuoteReplyButtonsParagraphAlways")}}function jn(){const{locale:l,setLocale:r,t:a}=Ea();Ls(a("appearanceSectionTitle"));const M=Oa(),C=Ms(),{fontSizePercent:oe,setFontSizePercent:re}=Ca(),{sidebarSpacing:z,setSidebarSpacing:pe}=Pa(),{outputFont:ue,outputUiFont:de,userTurnFontSizeOffsetPx:me,tooltipFontSizeOffsetPx:he,outputFontSizePx:m,outputFixedFont:ge,outputFixedFontSizeOffsetPx:h,outputThinkingFontSizeOffsetPx:g,outputMathFontSizeOffsetPx:T,outputLineSpacingPercent:x,outputVerticalSpacingPercent:b,outputToolPreviewLineCount:N,setOutputFont:Te,setOutputUiFont:xe,setUserTurnFontSizeOffsetPx:be,setTooltipFontSizeOffsetPx:Ne,setOutputFontSizePx:H,setOutputFixedFont:Se,setOutputFixedFontSizeOffsetPx:G,setOutputThinkingFontSizeOffsetPx:X,setOutputMathFontSizeOffsetPx:B,setOutputLineSpacingPercent:W,setOutputVerticalSpacingPercent:Z,setOutputToolPreviewLineCount:V,resetOutputAppearance:ba}=va(),{tabSize:$,setTabSize:je}=ya(),{contentMaxWidth:S,setContentMaxWidth:P}=Fa(),{widerConversationActivityPreviews:_e,setWiderConversationActivityPreviews:fe}=Cs(),{glossaryHintsEnabled:Ee,setGlossaryHintsEnabled:Oe}=hs(),{workflowTagsEnabled:Ce,setWorkflowTagsEnabled:Pe}=Ps(),{sessionRightPaneEnabled:ve,setSessionRightPaneEnabled:ye}=gs(),{panelSlideAnimations:Fe,setPanelSlideAnimations:Le}=Ts(),{acliCommentaryEnabled:Ie,setAcliCommentaryEnabled:ke}=us(),{version:Na}=zs(),Sa=La(Na,Ia),{hoverCardMaxHeightPx:d,setHoverCardMaxHeightPx:v}=xs(),{tooltipMode:Q,tooltipDelayMs:Ae,setTooltipMode:y,setTooltipDelayMs:K}=ka(),{generatedTitleLength:j,setGeneratedTitleLength:F}=ys(),{generatedTitleEnabled:Y,setGeneratedTitleEnabled:we}=Fs(),De=fs(d,!0),[Ue,_]=c.useState(()=>String(S)),[Re,f]=c.useState(()=>String(d)),[Me,E]=c.useState(()=>String(j)),[ze,L]=c.useState(()=>i(m)),[He,I]=c.useState(()=>i(h)),[Ge,k]=c.useState(()=>i(g)),[Xe,A]=c.useState(()=>i(T)),[Be,w]=c.useState(()=>i(x)),[We,D]=c.useState(()=>i(b)),[Ze,U]=c.useState(()=>i(N)),{theme:q,setTheme:Ve}=Aa(),{settingsIconStyle:J,setSettingsIconStyle:$e}=Is(),{compactMultiImageGalleries:Qe,inlineMediaExpandedByDefault:Ke,setCompactMultiImageGalleries:Ye,setInlineMediaExpandedByDefault:qe}=bs(),{recentProjectPathLinksEnabled:Je,setRecentProjectPathLinksEnabled:et}=ds(),{quoteReplyButtonMode:ee,setQuoteReplyButtonMode:tt}=Ns(),{selectionQuoteActionEnabled:at,setSelectionQuoteActionEnabled:st,selectionTextCopyActionEnabled:nt,setSelectionTextCopyActionEnabled:it,selectionSourceCopyActionEnabled:ct,setSelectionSourceCopyActionEnabled:lt,selectionRichCopyActionEnabled:ot,setSelectionRichCopyActionEnabled:rt,selectionNewSessionActionEnabled:pt,setSelectionNewSessionActionEnabled:ut}=Ss(),{funPhrasesEnabled:dt,setFunPhrasesEnabled:mt}=vs(),{floatingActionButtonEnabled:ht,setFloatingActionButtonEnabled:gt}=Os(),{sidebarDuplicateHidingEnabled:Tt,setSidebarDuplicateHidingEnabled:xt}=Hs(),{projectCodeNamesEnabled:te,setProjectCodeNamesEnabled:bt,projectCodeNameActivityPulseEnabled:Nt,setProjectCodeNameActivityPulseEnabled:St}=Xs(),{tabTitleActivityEnabled:ae,setTabTitleActivityEnabled:jt}=Gs(),{showConnectionBars:_t,setShowConnectionBars:ft}=Es(),ja=c.useMemo(()=>js(Bs).html,[]),se=[s(l,r),s(oe,re),s(z,pe),s(ue,Te),s(de,xe),s(me,be),s(he,Ne),s(m,H,t=>L(i(t))),s(ge,Se),s(h,G,t=>I(i(t))),s(g,X,t=>k(i(t))),s(T,B,t=>A(i(t))),s(x,W,t=>w(i(t))),s(b,Z,t=>D(i(t))),s(N,V,t=>U(i(t))),s($,je),s(S,P,t=>_(String(t))),s(_e,fe),s(Ee,Oe),s(Ce,Pe),s(ve,ye),s(Fe,Le),s(Ie,ke),s(Ae,K),s(Q,y),s(d,v,t=>f(String(t))),s(Y,we),s(j,F,t=>E(String(t))),s(q,Ve),s(J,$e),s(Ke,qe),s(Qe,Ye),s(Je,et),s(ee,tt),s(at,st),s(nt,it),s(ct,lt),s(ot,rt),s(pt,ut),s(dt,mt),s(ht,gt),s(Tt,xt),s(te,bt),s(ae,jt),s(Nt,St),s(_t,ft)],Et=c.useRef(se);Et.current=se;const _a=se.map(t=>t.value),fa=c.useCallback(t=>{Et.current.forEach((p,ne)=>{p.restore(t[ne])})},[]);ks(_a,fa);const o=t=>a(t);c.useEffect(()=>{_(String(S))},[S]),c.useEffect(()=>{f(String(d))},[d]),c.useEffect(()=>{E(String(j))},[j]),c.useEffect(()=>{L(i(m))},[m]),c.useEffect(()=>{I(i(h))},[h]),c.useEffect(()=>{k(i(g))},[g]),c.useEffect(()=>{A(i(T))},[T]),c.useEffect(()=>{w(i(x))},[x]),c.useEffect(()=>{D(i(b))},[b]),c.useEffect(()=>{U(i(N))},[N]);const Ot=()=>{const t=Number.parseInt(Ue,10);P(Number.isFinite(t)?t:ie)},Ct=()=>{const t=Number(Re);v(Number.isFinite(t)?t:ce)},Pt=()=>{const t=Number(Me);F(Number.isFinite(t)?t:le)},vt=()=>{const t=Number(ze);H(Number.isFinite(t)?t:is)},yt=()=>{const t=Number(He);G(Number.isFinite(t)?t:ls)},Ft=()=>{const t=Number(Ge);X(Number.isFinite(t)?t:cs)},Lt=()=>{const t=Number(Xe);B(Number.isFinite(t)?t:os)},It=()=>{const t=Number(Be);W(Number.isFinite(t)?t:rs)},kt=()=>{const t=Number(We);Z(Number.isFinite(t)?t:ps)},At=()=>{const t=Number(Ze);V(Number.isFinite(t)?t:ns)};return e.jsx(Rs,{keywords:["font","typography","text size","line spacing","sidebar layout density compact comfortable spacing","generated titles","conversation view activity previews thinking"],children:e.jsxs("div",{className:"settings-group",children:[e.jsx(n,{label:a("appearanceLanguageTitle"),description:a("appearanceLanguageDescription"),valueText:ua(l,o),children:e.jsx("select",{className:"settings-select",value:l,onChange:t=>r(t.target.value),"aria-label":a("appearanceLanguageTitle"),children:wa.map(t=>e.jsx("option",{value:t,children:ua(t,o)},t))})}),e.jsx(n,{label:a("appearanceThemeTitle"),valueText:da(q,o),children:e.jsx("div",{className:"font-size-selector",children:Da.map(t=>e.jsx("button",{type:"button",className:`font-size-option ${q===t?"active":""}`,onClick:()=>Ve(t),children:da(t,o)},t))})}),e.jsx(n,{label:a("appearanceSettingsIconStyleTitle"),description:a("appearanceSettingsIconStyleDescription"),valueText:Ta(J,o),className:"settings-item--wide-control",children:e.jsx("div",{className:"font-size-selector settings-icon-style-selector",role:"group","aria-label":a("appearanceSettingsIconStyleTitle"),children:As.map(t=>{const p=J===t,ne=t==="emoji"?ws["local-access"]:Ds["local-access"];return e.jsxs("button",{type:"button",className:`font-size-option settings-icon-style-option ${p?"active":""}`,onClick:()=>$e(t),"aria-pressed":p,children:[e.jsx("span",{className:`settings-category-icon settings-category-icon-local-access settings-category-icon-${t} settings-icon-style-preview`,"aria-hidden":"true",children:ne}),e.jsx("span",{children:Ta(t,o)})]},t)})})}),e.jsx(n,{label:a("appearanceContentWidthTitle"),description:a("appearanceContentWidthDescription"),className:"settings-item--wide-control",children:e.jsxs("div",{className:"settings-item-actions",children:[e.jsx(u,{min:Dt,max:wt,step:10,value:S,onDraftChange:t=>_(String(t)),onCommit:P,"aria-label":a("appearanceContentWidthTitle")}),e.jsxs("span",{className:"settings-input-unit",children:[e.jsx("input",{type:"number",className:"settings-input-small",min:Dt,max:wt,step:10,value:Ue,onChange:t=>_(t.target.value),onBlur:Ot,onKeyDown:t=>{t.key==="Enter"&&(Ot(),t.currentTarget.blur())},"aria-label":a("appearanceContentWidthTitle")}),a("appearanceContentWidthUnit")]}),e.jsx("button",{type:"button",className:"settings-inline-x",onClick:()=>{P(ie),_(String(ie))},"aria-label":a("appearanceContentWidthReset"),title:a("appearanceContentWidthReset"),children:"×"})]})}),e.jsx(n,{label:a("appearanceSidebarSpacingTitle"),description:a("appearanceSidebarSpacingDescription"),keywords:["sidebar spacing","layout","compact","comfortable"],valueText:ma(z,o),className:"settings-item--wide-control",children:e.jsx("div",{className:"font-size-selector",role:"radiogroup","aria-label":a("appearanceSidebarSpacingTitle"),children:Ua.map(t=>{const p=z===t;return e.jsx("button",{type:"button",className:`font-size-option ${p?"active":""}`,role:"radio","aria-checked":p,onClick:()=>pe(t),children:ma(t,o)},t)})})}),e.jsx(n,{label:a("appearanceOutputToolPreviewLinesLabel"),className:"settings-item--wide-control",children:e.jsxs("div",{className:"settings-item-actions",children:[e.jsx(u,{min:Mt,max:Rt,step:Ut,value:N,onDraftChange:t=>U(i(t)),onCommit:V,"aria-label":a("appearanceOutputToolPreviewLinesLabel")}),e.jsxs("span",{className:"settings-input-unit",children:[e.jsx("input",{type:"number",className:"settings-input-small",min:Mt,max:Rt,step:Ut,value:Ze,onChange:t=>U(t.target.value),onBlur:At,onKeyDown:t=>{t.key==="Enter"&&(At(),t.currentTarget.blur())},"aria-label":a("appearanceOutputToolPreviewLinesLabel")}),a("appearanceOutputToolPreviewLinesUnit")]})]})}),e.jsx(n,{label:a("appearanceWiderActivityPreviewsTitle"),description:a("appearanceWiderActivityPreviewsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:_e,onChange:t=>fe(t.target.checked),"aria-label":a("appearanceWiderActivityPreviewsTitle")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceSessionRightPaneTitle"),description:a("appearanceSessionRightPaneDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:ve,onChange:t=>ye(t.target.checked),"aria-label":a("appearanceSessionRightPaneTitle")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearancePanelSlideAnimationsTitle"),description:a("appearancePanelSlideAnimationsDescription"),keywords:["toolbar","sidebar","slide","animation","motion","app"],children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Fe,onChange:t=>Le(t.target.checked),"aria-label":a("appearancePanelSlideAnimationsTitle")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceWorkflowTagsTitle"),description:a("appearanceWorkflowTagsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Ce,onChange:t=>Pe(t.target.checked),"aria-label":a("appearanceWorkflowTagsTitle")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("acliCommentarySetting"),description:a("acliCommentaryDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Ie,onChange:t=>ke(t.target.checked),"aria-label":a("acliCommentarySetting")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceTabSizeTitle"),description:a("appearanceTabSizeDescription"),valueText:ha($),children:e.jsx("div",{className:"font-size-selector",children:Ra.map(t=>e.jsx("button",{type:"button",className:`font-size-option ${$===t?"active":""}`,onClick:()=>je(t),children:ha(t)},t))})}),e.jsxs(n,{label:a("appearanceGeneratedTitlesTitle"),description:a("appearanceGeneratedTitlesDescription"),keywords:[a("appearanceGeneratedTitleLengthTitle"),a("appearanceGeneratedTitleLengthDescription")],layout:"custom",baseClassName:"settings-item-group",className:"generated-title-settings",children:[e.jsxs("div",{className:"settings-item-group-row",children:[e.jsxs("div",{className:"settings-item-info",children:[e.jsx("strong",{children:a("appearanceGeneratedTitlesTitle")}),e.jsx("p",{children:a("appearanceGeneratedTitlesDescription")})]}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Y,onChange:t=>we(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),Y&&e.jsxs("div",{className:"settings-item-group-row settings-item-group-row--field settings-item-group-row--wide-control",children:[e.jsxs("div",{className:"settings-item-info",children:[e.jsx("strong",{children:a("appearanceGeneratedTitleLengthTitle")}),e.jsx("p",{children:a("appearanceGeneratedTitleLengthDescription")})]}),e.jsxs("div",{className:"settings-item-actions",children:[e.jsx(u,{min:pa,max:ra,step:oa,value:j,onDraftChange:t=>E(String(t)),onCommit:F,"aria-label":a("appearanceGeneratedTitleLengthTitle")}),e.jsxs("span",{className:"settings-input-unit",children:[e.jsx("input",{type:"number",className:"settings-input-small",min:pa,max:ra,step:oa,value:Me,onChange:t=>E(t.target.value),onBlur:Pt,onKeyDown:t=>{t.key==="Enter"&&(Pt(),t.currentTarget.blur())},"aria-label":a("appearanceGeneratedTitleLengthTitle")}),a("appearanceGeneratedTitleLengthUnit")]}),e.jsx("button",{type:"button",className:"settings-inline-x",onClick:()=>{F(le),E(String(le))},"aria-label":a("appearanceGeneratedTitleLengthReset"),title:a("appearanceGeneratedTitleLengthReset"),children:"×"})]})]})]}),Sa&&e.jsx(n,{label:a("appearanceGlossaryHintsTitle"),description:a("appearanceGlossaryHintsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Ee,onChange:t=>Oe(t.target.checked),"aria-label":a("appearanceGlossaryHintsTitle")}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceTooltipDelayTitle"),description:a("appearanceTooltipDelayDescription"),className:"settings-item--wide-control settings-item--tooltip-control",children:e.jsxs("div",{className:"settings-item-actions tooltip-settings-actions",children:[e.jsxs("div",{className:"font-size-selector tooltip-mode-selector",role:"group","aria-label":a("appearanceTooltipModeTitle"),children:[e.jsx("button",{type:"button",className:`font-size-option ${Q==="themed"?"active":""}`,onClick:()=>y("themed"),children:a("appearanceTooltipModeThemed")}),e.jsx("button",{type:"button",className:`font-size-option ${Q==="native"?"active":""}`,onClick:()=>y("native"),children:a("appearanceTooltipModeNative")})]}),e.jsx(R,{id:"tooltip-delay",min:Ha,max:za,step:Ma,value:Ae,unit:a("appearanceTooltipDelayUnit"),ariaLabel:a("appearanceTooltipDelayTitle"),onEdit:()=>y("themed"),onCommit:K}),e.jsx("button",{type:"button",className:"settings-inline-x",onClick:()=>{K(Ga)},"aria-label":a("appearanceTooltipReset"),title:a("appearanceTooltipReset"),children:"×"})]})}),e.jsx(n,{label:a("appearanceHoverCardHeightTitle"),description:a("appearanceHoverCardHeightDescription"),className:"settings-item--wide-control",children:e.jsxs("div",{className:"settings-item-actions",children:[e.jsx(u,{min:la,max:ca,step:ia,value:d,onDraftChange:t=>f(String(t)),onCommit:v,"aria-label":a("appearanceHoverCardHeightTitle")}),e.jsxs("span",{className:"settings-input-unit",children:[e.jsx("input",{type:"number",className:"settings-input-small",min:la,max:ca,step:ia,value:Re,onChange:t=>f(t.target.value),onBlur:Ct,onKeyDown:t=>{t.key==="Enter"&&(Ct(),t.currentTarget.blur())},"aria-label":a("appearanceHoverCardHeightTitle")}),a("appearanceHoverCardHeightUnit")]}),e.jsxs("span",{className:"settings-hovercard-lines",children:["(",De," ",a(De===1?"appearanceHoverCardLineUnit":"appearanceHoverCardLinesUnit"),")"]}),e.jsx("button",{type:"button",className:"settings-inline-x",onClick:()=>{v(ce),f(String(ce))},"aria-label":a("appearanceHoverCardReset"),title:a("appearanceHoverCardReset"),children:"×"})]})}),e.jsx(n,{label:a("appearanceInlineImagesTitle"),description:a("appearanceInlineImagesDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Ke,onChange:t=>qe(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceImageGalleriesTitle"),description:a("appearanceImageGalleriesDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceImageGalleriesTitle"),checked:Qe,onChange:t=>Ye(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceRecentProjectPathLinksTitle"),description:a("appearanceRecentProjectPathLinksDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceRecentProjectPathLinksTitle"),checked:Je,onChange:t=>et(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceQuoteReplyButtonsTitle"),description:a("appearanceQuoteReplyButtonsDescription"),valueText:xa(ee,o),className:"settings-item--wide-control",children:e.jsx("div",{className:"font-size-selector",role:"radiogroup","aria-label":a("appearanceQuoteReplyButtonsTitle"),children:_s.map(t=>{const p=ee===t;return e.jsx("button",{type:"button",className:`font-size-option ${p?"active":""}`,role:"radio","aria-checked":p,onClick:()=>tt(t),children:xa(t,o)},t)})})}),e.jsxs(n,{label:a("appearanceSelectionQuoteActionTitle"),description:a("appearanceSelectionQuoteActionDescription"),children:[e.jsx(O,{kind:"quote",label:a("sessionQuoteSelection"),specimen:!0}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceSelectionQuoteActionTitle"),checked:at,onChange:t=>st(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),e.jsxs(n,{label:a("appearanceSelectionTextCopyActionTitle"),description:a("appearanceSelectionTextCopyActionDescription"),children:[e.jsx(O,{kind:"text",label:a("sessionCopySelectionText"),specimen:!0}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceSelectionTextCopyActionTitle"),checked:nt,onChange:t=>it(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),e.jsxs(n,{label:a("appearanceSelectionSourceCopyActionTitle"),description:a("appearanceSelectionSourceCopyActionDescription"),children:[e.jsx(O,{kind:"source",label:a("sessionCopySelectionSource"),specimen:!0}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceSelectionSourceCopyActionTitle"),checked:ct,onChange:t=>lt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),e.jsxs(n,{label:a("appearanceSelectionRichCopyActionTitle"),description:a("appearanceSelectionRichCopyActionDescription"),children:[e.jsx(O,{kind:"rich",label:a("sessionCopySelectionRich"),specimen:!0}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceSelectionRichCopyActionTitle"),checked:ot,onChange:t=>rt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),e.jsxs(n,{label:a("appearanceSelectionNewSessionActionTitle"),description:a("appearanceSelectionNewSessionActionDescription"),children:[e.jsx(O,{kind:"newSession",label:a("sessionNewSessionFromSelection"),specimen:!0}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":a("appearanceSelectionNewSessionActionTitle"),checked:pt,onChange:t=>ut(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]}),e.jsx(n,{label:a("appearanceFunPhrasesTitle"),description:a("appearanceFunPhrasesDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:dt,onChange:t=>mt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceFloatingActionButtonTitle"),description:a("appearanceFloatingActionButtonDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:ht,onChange:t=>gt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceSidebarDuplicateHidingTitle"),description:a("appearanceSidebarDuplicateHidingDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Tt,onChange:t=>xt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceProjectCodeNamesTitle"),description:a("appearanceProjectCodeNamesDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:te,onChange:t=>bt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceTabTitleActivityTitle"),description:a("appearanceTabTitleActivityDescription"),children:e.jsx("div",{className:"settings-item-actions",children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:ae,onChange:t=>jt(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})})}),e.jsx(n,{label:a("appearanceProjectCodeNameActivityPulseTitle"),description:a("appearanceProjectCodeNameActivityPulseDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:Nt,disabled:!te||!ae,onChange:t=>St(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceConnectionBarsTitle"),description:a("appearanceConnectionBarsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:_t,onChange:t=>ft(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:a("appearanceToolbarSettingsShortcutTitle"),description:a("appearanceToolbarSettingsShortcutDescription"),children:e.jsx("div",{className:"settings-item-actions",children:e.jsx("button",{type:"button",className:"settings-button",onClick:()=>M(`${C}/settings/toolbar`),children:a("appearanceToolbarSettingsShortcutAction")})})}),e.jsx(n,{label:a("appearanceOutputTypographyTitle"),keywords:[a("appearanceOutputUiFontLabel"),a("appearanceFontSizeTitle"),a("appearanceUserTurnSizeOffsetLabel"),a("appearanceTooltipSizeOffsetLabel"),a("appearanceOutputFontLabel"),a("appearanceOutputFontSizeLabel"),a("appearanceOutputThinkingSizeOffsetLabel"),a("appearanceOutputFixedFontLabel"),a("appearanceOutputFixedSizeOffsetLabel"),a("appearanceOutputMathSizeOffsetLabel"),a("appearanceOutputLineSpacingLabel"),a("appearanceOutputVerticalSpacingLabel")],layout:"custom",className:"output-appearance-settings",children:e.jsxs("div",{className:"output-appearance-panel",children:[e.jsxs("div",{className:"output-appearance-controls",children:[e.jsx("div",{className:"output-appearance-title settings-item-info",children:e.jsx("strong",{children:a("appearanceOutputTypographyTitle")})}),e.jsxs("div",{className:"output-appearance-control",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputUiFontLabel")}),e.jsx("div",{className:"font-size-selector output-font-selector",children:zt.map(t=>e.jsx("button",{type:"button",className:`font-size-option output-font-option output-font-option-${t} ${de===t?"active":""}`,onClick:()=>xe(t),children:ga(t,o)},t))})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"ui-font-scale",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceFontSizeTitle")}),e.jsx(R,{id:"ui-font-scale",min:Va,max:Za,numberMin:Wa,numberMax:Ba,step:Xa,value:oe,unit:"%",list:"ui-font-scale-presets",ariaLabel:a("appearanceFontSizeTitle"),snapTextToStep:!1,onCommit:re})]}),e.jsx("datalist",{id:"ui-font-scale-presets",children:$a.map(t=>e.jsx("option",{value:t,label:`${t}%`},t))}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"user-turn-font-size-offset",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceUserTurnSizeOffsetLabel")}),e.jsx(R,{id:"user-turn-font-size-offset",min:Ya,max:Ka,step:Qa,value:me,unit:"px",ariaLabel:a("appearanceUserTurnSizeOffsetLabel"),onCommit:be})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"tooltip-font-size-offset",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceTooltipSizeOffsetLabel")}),e.jsx(R,{id:"tooltip-font-size-offset",min:es,max:Ja,step:qa,value:he,unit:"px",ariaLabel:a("appearanceTooltipSizeOffsetLabel"),onCommit:Ne})]}),e.jsxs("div",{className:"output-appearance-control",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputFontLabel")}),e.jsx("div",{className:"font-size-selector output-font-selector",children:zt.map(t=>e.jsx("button",{type:"button",className:`font-size-option output-font-option output-font-option-${t} ${ue===t?"active":""}`,onClick:()=>Te(t),children:ga(t,o)},t))})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-font-size",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputFontSizeLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-font-size",min:Xt,max:Gt,step:Ht,value:m,list:"output-font-size-presets",onDraftChange:t=>L(i(t)),onCommit:H}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:Xt,max:Gt,step:Ht,value:ze,onChange:t=>L(t.target.value),onBlur:vt,onKeyDown:t=>{t.key==="Enter"&&(vt(),t.currentTarget.blur())},"aria-label":a("appearanceOutputFontSizeLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"px"})]})]})]}),e.jsx("datalist",{id:"output-font-size-presets",children:ts.map(t=>e.jsx("option",{value:t.value,label:t.label},t.value))}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-thinking-size-offset",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputThinkingSizeOffsetLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-thinking-size-offset",min:Zt,max:Wt,step:Bt,value:g,onDraftChange:t=>k(i(t)),onCommit:X}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:Zt,max:Wt,step:Bt,value:Ge,onChange:t=>k(t.target.value),onBlur:Ft,onKeyDown:t=>{t.key==="Enter"&&(Ft(),t.currentTarget.blur())},"aria-label":a("appearanceOutputThinkingSizeOffsetLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"px"})]})]})]}),e.jsxs("div",{className:"output-appearance-control",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputFixedFontLabel")}),e.jsx("div",{className:"font-size-selector output-font-selector",children:as.map(t=>e.jsx("button",{type:"button",className:`font-size-option output-font-option output-fixed-font-option-${t} ${ge===t?"active":""}`,onClick:()=>Se(t),children:Us(t,o)},t))})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-fixed-size-offset",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputFixedSizeOffsetLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-fixed-size-offset",min:Qt,max:$t,step:Vt,value:h,onDraftChange:t=>I(i(t)),onCommit:G}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:Qt,max:$t,step:Vt,value:He,onChange:t=>I(t.target.value),onBlur:yt,onKeyDown:t=>{t.key==="Enter"&&(yt(),t.currentTarget.blur())},"aria-label":a("appearanceOutputFixedSizeOffsetLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"px"})]})]})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-math-size-offset",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputMathSizeOffsetLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-math-size-offset",min:qt,max:Yt,step:Kt,value:T,onDraftChange:t=>A(i(t)),onCommit:B}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:qt,max:Yt,step:Kt,value:Xe,onChange:t=>A(t.target.value),onBlur:Lt,onKeyDown:t=>{t.key==="Enter"&&(Lt(),t.currentTarget.blur())},"aria-label":a("appearanceOutputMathSizeOffsetLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"px"})]})]})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-line-spacing",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputLineSpacingLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-line-spacing",min:ta,max:ea,step:Jt,value:x,onDraftChange:t=>w(i(t)),onCommit:W}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:ta,max:ea,step:Jt,value:Be,onChange:t=>w(t.target.value),onBlur:It,onKeyDown:t=>{t.key==="Enter"&&(It(),t.currentTarget.blur())},"aria-label":a("appearanceOutputLineSpacingLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"%"})]})]})]}),e.jsxs("label",{className:"output-appearance-control",htmlFor:"output-vertical-spacing",children:[e.jsx("span",{className:"output-appearance-label",children:a("appearanceOutputVerticalSpacingLabel")}),e.jsxs("span",{className:"output-appearance-slider-row",children:[e.jsx(u,{id:"output-vertical-spacing",min:na,max:sa,step:aa,value:b,onDraftChange:t=>D(i(t)),onCommit:Z}),e.jsxs("span",{className:"output-appearance-number-wrap",children:[e.jsx("input",{type:"number",className:"settings-input-small output-appearance-number",min:na,max:sa,step:aa,value:We,onChange:t=>D(t.target.value),onBlur:kt,onKeyDown:t=>{t.key==="Enter"&&(kt(),t.currentTarget.blur())},"aria-label":a("appearanceOutputVerticalSpacingLabel")}),e.jsx("span",{className:"output-appearance-unit",children:"%"})]})]})]})]}),e.jsxs("div",{className:"output-appearance-specimen",children:[e.jsxs("div",{className:"output-appearance-specimen-header",children:[e.jsx("span",{className:"output-appearance-specimen-label",children:a("appearanceOutputSpecimenLabel")}),e.jsx("button",{type:"button",className:"settings-button settings-button-secondary",onClick:ba,children:a("appearanceOutputTypographyReset")})]}),e.jsxs("div",{className:"output-appearance-preview",role:"region","aria-label":a("appearanceOutputPreviewLabel"),children:[e.jsx("div",{className:ss.specimen,"data-tooltip-specimen":!0,children:a("appearanceTooltipPreview")}),e.jsxs("div",{className:"output-preview-system",children:[e.jsx("span",{className:"output-preview-system-icon",children:"ok"}),e.jsx("span",{children:"System note: applied after reconnect."})]}),e.jsxs("div",{className:"output-preview-prose",children:[e.jsxs("p",{children:["Inline code like ",e.jsx("code",{children:"codex update"})," stays fixed width; prose wraps at phone width."]}),e.jsx("pre",{className:"output-preview-fixed",children:e.jsx("code",{children:`f0 = (x: 0) => ({ ok: x + 1 });
|
|
2
|
-
fn S(v) -> { return v[0] ?? false }`})}),e.jsxs("p",{children:["Inline math:"," ",e.jsx("span",{className:"output-preview-math",dangerouslySetInnerHTML:{__html:ja}})]}),e.jsxs("ul",{children:[e.jsxs("li",{children:["Tokens: ",e.jsx("code",{children:"fixed width"})]}),e.jsx("li",{children:"Math uses a TeX-like face."})]})]}),e.jsx("div",{className:"output-preview-thinking thinking-content",children:e.jsx(ms,{text:"**Spacing** — thinking text stays quieter and smaller."})}),e.jsxs("div",{className:"output-preview-diff","aria-hidden":"true",children:[e.jsxs("div",{children:[e.jsx("span",{className:"output-preview-diff-gutter",children:"+"}),e.jsx("span",{children:"Diff prose follows the prose font."})]}),e.jsxs("div",{children:[e.jsx("span",{className:"output-preview-diff-gutter",children:"-"}),e.jsx("span",{children:"Paragraph space can be dialed down."})]})]}),e.jsxs("div",{className:"output-preview-ui","aria-hidden":"true",children:[e.jsx("div",{className:"output-preview-ui-title",children:"Session title — uses the UI font and size"}),e.jsx("div",{className:"output-preview-ui-composer",children:"Composer: type a message to the agent…"}),e.jsx("div",{className:"message message-user-prompt",children:e.jsx("div",{className:"text-block",children:a("appearanceUserTurnPreview")})}),e.jsx("div",{className:"output-preview-ui-caption",children:"Caption · updated 2m ago · 3 files"})]})]})]})]})})]})})}export{jn as AppearanceSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t,u as A,r as n,aK as Q,L as W}from"./index-BUrcmRdN.js";import{b as B,f as F}from"./Modal-QUinFhBP.js";import{C as T}from"./CommittedRangeNumberInput-D497_5ff.js";import{S as I}from"./SettingsSection-DOwc_RwX.js";import{u as X}from"./useVhostAccess-2ZKr0Lcl.js";import{v as Y}from"./providerChildSessions-ClrSXOQr.js";import{u as Z}from"./index-BBpZzMBa.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./CommittedRangeInput-C3Z7YUlS.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./PageHeader-BaYMLVHI.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";const tt="_fields_lti5t_1",et="_toggle_lti5t_18",st="_vhostRow_lti5t_23",it="_expiry_lti5t_42",rt="_vhosts_lti5t_60",at="_vhostHeading_lti5t_67",ot="_access_lti5t_85",h={fields:tt,toggle:et,vhostRow:st,expiry:it,vhosts:rt,vhostHeading:at,access:ot};function nt(){const{sourceKey:i}=B(),{version:d,refetch:e}=F(),v=d==null?void 0:d.artifactViewer;return v?t.jsx(ct,{status:v,onSaved:e},i):null}function ct({status:i,onSaved:d}){const{t:e}=A(),{transport:v}=B(),u=X(i),g=n.useId(),[k,U]=n.useState(!!i.localOrigin),[S,K]=n.useState(i.localOrigin??i.defaultLocalOrigin),[R,$]=n.useState(i.publicOrigin??""),[C,J]=n.useState(String(i.port)),[L,M]=n.useState(i.expiryHours),[w,q]=n.useState(i.expiryDays),[_,z]=n.useState(i.vhostPublicRoot??""),[E,G]=n.useState(i.alwaysRewriteVhostLinks===!0),[y,f]=n.useState(()=>(i.vhosts??[]).map(s=>({...s}))),[P,b]=n.useState(!1),[H,m]=n.useState(""),O=i.vhosts!==void 0,N=n.useRef(Promise.resolve()),j=n.useRef(0),V=n.useRef(void 0);async function c(s={}){if(i.locked)return;const l={localEnabled:k,expiryDays:w,expiryHours:L,vhosts:y,alwaysRewriteVhostLinks:E,...s};m("");try{if([l.localEnabled?S:"",R].filter(Boolean).some(a=>new URL(a).hostname===window.location.hostname))throw new Error(e("artifactSeparateHost"));const r=JSON.stringify({port:Number(C),localOrigin:l.localEnabled?S.trim():"",publicOrigin:R.trim(),...l.expiryDays===void 0?{expiryHours:l.expiryHours}:{expiryDays:l.expiryDays},...O?{vhostPublicRoot:_.trim(),alwaysRewriteVhostLinks:l.alwaysRewriteVhostLinks,vhosts:l.vhosts.map(a=>{var D;return{name:a.name.trim(),port:a.port,...(D=a.env)!=null&&D.trim()?{env:a.env.trim()}:{},...u.supported?{public:a.public===!0}:{}}})}:{}});if(r===V.current)return;V.current=r;const p=++j.current;b(!0);const o=N.current.then(async()=>{await v.fetch("/artifacts/config",{method:"PUT",body:r}),await d()});N.current=o.catch(()=>{});try{await o,p===j.current&&m(e("artifactSaved"))}catch(a){p===j.current&&(V.current=void 0,m(a instanceof Error?a.message:String(a)))}finally{p===j.current&&b(!1)}}catch(x){m(x instanceof Error?x.message:String(x))}}return t.jsxs(I,{title:e("artifactSettingsTitle"),description:e("artifactSettingsDescription"),onSubmit:s=>{s.preventDefault(),c()},children:[t.jsx("p",{children:e("appsSettingsAutosave")}),t.jsxs("fieldset",{className:h.fields,disabled:i.locked,children:[t.jsxs("label",{className:h.toggle,children:[t.jsx("input",{type:"checkbox",checked:k,onChange:s=>{U(s.target.checked),c({localEnabled:s.target.checked})}}),e("artifactLocalEnabled")]}),k&&t.jsxs("label",{children:[e("artifactLocalOrigin"),t.jsx("input",{type:"url",value:S,onBlur:()=>void c(),onChange:s=>K(s.target.value)})]}),t.jsxs("label",{children:[e("artifactPublicOrigin"),t.jsx("input",{type:"url",value:R,onBlur:()=>void c(),onChange:s=>$(s.target.value)})]}),t.jsx("p",{children:e("artifactPublicHint")}),t.jsxs("label",{children:[e("artifactPort"),t.jsx("input",{type:"number",min:1,max:65535,value:C,onBlur:()=>void c(),onChange:s=>J(s.target.value)})]}),t.jsx("p",{children:e("artifactPortHint")}),w!==void 0?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:h.expiry,children:[t.jsx("label",{htmlFor:g,children:e("artifactExpiryDaysLabel")}),t.jsx(T,{id:g,min:1,max:30,step:1,value:w,ariaLabel:e("artifactExpiryDaysLabel"),onCommit:s=>{q(s),c({expiryDays:s})}})]}),t.jsx("p",{children:e("artifactExpiryDaysHint")}),t.jsx("p",{children:e("artifactDeleteOnExpiryHint")})]}):L!==void 0&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:h.expiry,children:[t.jsx("label",{htmlFor:g,children:e("artifactExpiryLabel")}),t.jsx(T,{id:g,min:1,max:168,step:1,value:L,ariaLabel:e("artifactExpiryLabel"),onCommit:s=>{M(s),c({expiryHours:s})}})]}),t.jsx("p",{children:e("artifactExpiryHint")})]}),O&&t.jsxs(t.Fragment,{children:[t.jsxs("label",{children:[e("artifactVhostPublicRoot"),t.jsx("input",{type:"text",value:_,onBlur:()=>void c(),autoComplete:"off",spellCheck:!1,onChange:s=>z(s.target.value)})]}),t.jsx("p",{children:e("artifactVhostPublicRootHint",{port:C})}),t.jsxs("label",{className:h.toggle,children:[t.jsx("input",{type:"checkbox",checked:E,onChange:s=>{G(s.target.checked),c({alwaysRewriteVhostLinks:s.target.checked})}}),e("artifactAlwaysRewriteVhostLinks")]}),t.jsx("p",{children:e("artifactAlwaysRewriteVhostLinksHint")}),t.jsxs("div",{className:h.vhosts,children:[t.jsx("span",{className:h.vhostHeading,children:e("artifactVhostTableTitle")}),t.jsx("p",{children:e("artifactVhostTableHint")}),t.jsx("p",{children:e(u.supported?"appAccessHint":"appAccessUnavailable")}),u.error&&t.jsx("p",{role:"alert",children:u.error}),y.map((s,l)=>{var x;return t.jsxs("div",{className:h.vhostRow,children:[t.jsxs("label",{children:[e("artifactVhostName"),t.jsx("input",{type:"text",value:s.name,onBlur:()=>void c(),autoComplete:"off",spellCheck:!1,onChange:r=>f(p=>p.map((o,a)=>a===l?{...o,name:r.target.value}:o))})]}),t.jsxs("label",{children:[e("artifactVhostPort"),t.jsx("input",{type:"number",min:1,max:65535,value:s.port||"",onBlur:()=>void c(),onChange:r=>f(p=>p.map((o,a)=>a===l?{...o,port:Number(r.target.value)}:o))})]}),t.jsxs("label",{children:[e("artifactVhostEnv"),t.jsx("input",{type:"text",value:s.env??"",onBlur:()=>void c(),placeholder:"PLANNOTATOR_PORT",autoComplete:"off",spellCheck:!1,onChange:r=>f(p=>p.map((o,a)=>a===l?{...o,env:r.target.value}:o))})]}),t.jsx("button",{type:"button",onClick:()=>{const r=y.filter((p,o)=>o!==l);f(r),c({vhosts:r})},children:e("artifactVhostRemove")}),u.supported&&t.jsxs("div",{className:h.access,children:[t.jsxs("label",{className:h.toggle,children:[t.jsx("input",{type:"checkbox",checked:s.public===!0,onChange:r=>{const p=y.map((o,a)=>a===l?{...o,public:r.target.checked}:o);f(p),c({vhosts:p})}}),e("appAccessPublic")]}),((x=i.vhosts)==null?void 0:x.some(r=>r.name===s.name&&r.port===s.port))&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",disabled:!u.config,onClick:async()=>{const r=Y(`http://localhost:${s.port}/`,u.config,window.location.href,i.vhostPublicRoot?"public":void 0);m(r&&await Q(r.url)?e("fileViewerCopied"):e("viewerCopyLinkFailed"))},children:e("appAccessCopy")}),t.jsx("button",{type:"button",disabled:P,onClick:async()=>{b(!0);try{await v.fetch(`/artifacts/vhosts/${encodeURIComponent(s.name)}/revoke`,{method:"POST"}),u.refresh(),m(e("appAccessRevoked"))}catch(r){m(r instanceof Error?r.message:String(r))}finally{b(!1)}},children:e("appAccessRevoke")})]})]})]},l)}),t.jsx("button",{type:"button",onClick:()=>f(s=>[...s,{name:"",port:19432}]),children:e("artifactVhostAdd")})]})]})]}),i.locked&&t.jsx("p",{children:e("artifactLocked")}),P&&t.jsx("p",{role:"status",children:e("artifactSaving")}),H&&t.jsx("p",{role:"status",children:H})]})}function Ht(){const{t:i}=A(),{version:d}=F();return Z(i("settingsAppsTitle")),t.jsx(I,{description:i("settingsAppsDescription"),children:d!=null&&d.artifactViewer?t.jsx(nt,{}):t.jsx("p",{children:i("settingsAppsUnavailable")})})}function Ot(){const{t:i}=A();return t.jsx(W,{to:"../apps",children:i("settingsAppsLink")})}export{Ht as AppsSettings,Ot as AppsSettingsLink};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as d,u as ae,ax as ve}from"./index-BUrcmRdN.js";import{y as be,z as ge,A as Ae,E as _e,I as xe,J as te}from"./providerChildSessions-ClrSXOQr.js";import{p as P,o as Re,l as ne,b as Ue,M as je}from"./Modal-QUinFhBP.js";import"./client-sN_tbfxh.js";const O=32,Y=2,le="image/png";function K(e,t){const n=e/t>Y,i=t,o=n?i*Y:e,s=n?Math.max(0,Math.floor((e-o)/2)):0,a=0,c=Math.max(1,Math.round(o/i*O));return{sourceX:s,sourceY:a,sourceWidth:o,sourceHeight:i,width:c,height:O,croppedWide:n}}const Ee="yep-anywhere-attachment-previews",Ce=2,x="images",re=128*1024*1024,J=`thumb:v3:${O}:${Y}:${le}`;function D(e){return e!==null&&"aliasFor"in e}function ue(e){return{aliasFor:e,totalBytes:0,lastAccessedAt:Date.now()}}let q=null;const N=new Map;function Me(e){return e.startsWith("image/")}function he(){return q||(q=Re(Ee,Ce,(e,t)=>{if(!e.objectStoreNames.contains(x))e.createObjectStore(x).createIndex("byLastAccessedAt","lastAccessedAt");else{const r=t.objectStore(x);r.indexNames.contains("byLastAccessedAt")||r.createIndex("byLastAccessedAt","lastAccessedAt")}})),q}async function de(e){if(typeof createImageBitmap=="function")try{const t=await createImageBitmap(e),r=K(t.width,t.height),n=document.createElement("canvas");n.width=r.width,n.height=r.height;const i=n.getContext("2d");if(!i){t.close();return}i.drawImage(t,r.sourceX,r.sourceY,r.sourceWidth,r.sourceHeight,0,0,r.width,r.height),t.close();const o=await new Promise(s=>{n.toBlob(a=>s(a??void 0),le)});return o?{blob:o,width:r.width,height:r.height}:void 0}catch{return}}function Ie(e){return e.thumbnailVariant!==J}async function Te(e){const n=e.transaction(x,"readonly").objectStore(x).getAll();return(await new Promise((o,s)=>{n.onsuccess=()=>o(n.result),n.onerror=()=>s(n.error)})??[]).reduce((o,s)=>o+(s.totalBytes??0),0)}async function Se(e,t){if(t<=0)return;const r=e.transaction(x,"readwrite"),n=r.objectStore(x),i=n.index("byLastAccessedAt");let o=0;await new Promise((s,a)=>{const c=i.openCursor();c.onerror=()=>a(c.error),c.onsuccess=()=>{const h=c.result;if(!h||o>=t){s();return}const u=h.value;if(D(u)){h.continue();return}if(o+=u.totalBytes??0,h.delete(),u.path&&u.path!==u.attachmentId){const p=n.get(u.path);p.onerror=()=>a(p.error),p.onsuccess=()=>{const v=p.result;v&&D(v)&&v.aliasFor===u.attachmentId&&n.delete(u.path),h.continue()};return}h.continue()}}),await new Promise((s,a)=>{r.oncomplete=()=>s(),r.onerror=()=>a(r.error),r.onabort=()=>a(r.error??new Error("Transaction aborted"))})}async function se(e,t){const r=await ne(e,x,t);if(!r)return null;if(!D(r))return{key:t,preview:r,viaAlias:!1};const n=await ne(e,x,r.aliasFor);return n&&!D(n)?{key:r.aliasFor,preview:n,viaAlias:!0}:null}function oe(e){N.set(e.attachmentId,e),e.path&&e.path!==e.attachmentId&&N.set(e.path,e)}function Le(e){N.delete(e.attachmentId),e.path&&N.delete(e.path)}async function ct(e,t){if(!Me(e.mimeType))return;const r=e.width!==void 0&&e.height!==void 0?K(e.width,e.height):void 0,n=t.slice(0,t.size,t.type),i=Date.now(),o={attachmentId:e.id,path:e.path,originalName:e.originalName,mimeType:e.mimeType,size:e.size,thumbnailVariant:J,thumbnailWidth:(r==null?void 0:r.width)??O,thumbnailHeight:(r==null?void 0:r.height)??O,fullBlob:n,totalBytes:n.size,createdAt:i,lastAccessedAt:i};oe(o);try{const s=await de(t),a=n.size+((s==null?void 0:s.blob.size)??0),c=await he(),h={...o,thumbnailWidth:(s==null?void 0:s.width)??o.thumbnailWidth,thumbnailHeight:(s==null?void 0:s.height)??o.thumbnailHeight,thumbnailBlob:s==null?void 0:s.blob,totalBytes:a,lastAccessedAt:Date.now()};oe(h),await P(c,x,e.id,h),e.path!==e.id&&await P(c,x,e.path,ue(e.id)).catch(()=>{});const u=await Te(c);u>re&&await Se(c,u-re)}finally{Le(o)}}async function ye(e,t){const r=N.get(e)??(t&&t!==e?N.get(t):void 0);if(r)return{...r,lastAccessedAt:Date.now()};const n=await he(),i=await se(n,e)??(t&&t!==e?await se(n,t):null);if(!i)return null;let o=i.key,s=i.preview;if(!i.viaAlias&&o!==e&&(s={...s,attachmentId:e},await P(n,x,e,s),await P(n,x,o,ue(e)).catch(()=>{}),o=e),Ie(s)){const c=await de(s.fullBlob);c&&(s={...s,thumbnailWidth:c.width,thumbnailHeight:c.height,thumbnailBlob:c.blob,thumbnailVariant:J},await P(n,x,o,s))}const a={...s,lastAccessedAt:Date.now()};return await P(n,x,o,a),a}function Pe(e,t=!0,r){const[n,i]=l.useState(null),[o,s]=l.useState(!1),[a,c]=l.useState(null),h=l.useRef(null),u=Ue().transport,p=!r&&u.capabilities.sameOriginUrls;return l.useEffect(()=>{const v=()=>{h.current&&(URL.revokeObjectURL(h.current),h.current=null)};if(!e||!t){v(),i(null),c(null);return}if(p){v(),i(null),s(!1),c(null);return}let b=!1;return s(!0),c(null),v(),i(null),(r?r(e):u.fetchBlob(be(e))).then(w=>{if(b)return;const C=URL.createObjectURL(w);h.current=C,i(C),s(!1)}).catch(w=>{b||(console.error("[useRemoteImage] Failed to fetch image:",w),c(w instanceof Error?w.message:"Failed to load image"),s(!1))}),()=>{b=!0,v()}},[e,p,t,u,r]),e?p?{url:e,loading:!1,error:null}:{url:n,loading:o,error:a}:{url:null,loading:!1,error:null}}const Ne=12,He=8;function G(e,t,r){return r<t?t:Math.min(r,Math.max(t,e))}function B(e,t,r,n){if(r<1||n<1)return null;const i=Math.max(1,e),o=Math.max(1,t),s=Math.min(1,r/i,n/o);return{width:Math.max(1,i*s),height:Math.max(1,o*s)}}function T(e){return e.width*e.height}function ie(e,t,r,n){return G(e,r,n-r-t)}function Be({anchor:e,imageWidth:t,imageHeight:r,viewportWidth:n,viewportHeight:i,margin:o=Ne,gap:s=He}){const a=Math.max(1,n-o*2),c=Math.max(1,i-o*2),h=B(t,r,a,c)??{width:1,height:1},u=T(h)*.5,p=e.left+e.width/2,v=e.top+e.height/2,b=[],U=i-o-(e.top+e.height+s),w=B(t,r,a,U);w&&b.push({size:w,useful:T(w)>=u,box:{top:e.top+e.height+s,left:ie(p-w.width/2,w.width,o,n),width:w.width,height:w.height}});const C=e.top-s-o,g=B(t,r,a,C);g&&b.push({size:g,useful:T(g)>=u,box:{top:e.top-s-g.height,left:ie(p-g.width/2,g.width,o,n),width:g.width,height:g.height}});const M=n-o-(e.left+e.width+s),f=B(t,r,M,c);f&&b.push({size:f,useful:T(f)>=u,box:{top:G(v-f.height/2,o,i-o-f.height),left:e.left+e.width+s,width:f.width,height:f.height}});const A=e.left-s-o,m=B(t,r,A,c);m&&b.push({size:m,useful:T(m)>=u,box:{top:G(v-m.height/2,o,i-o-m.height),left:e.left-s-m.width,width:m.width,height:m.height}});const L=b.find(j=>j.useful)??b.reduce((j,_)=>!j||T(_.size)>T(j.size)?_:j,null);return L?L.box:{top:o,left:o,width:h.width,height:h.height}}const $e="_chip_1e5od_1",Oe="_imageChip_1e5od_13",ke="_main_1e5od_18",ze="_preview_1e5od_33",We="_previewFallback_1e5od_52",Ve="_hoverPreview_1e5od_57",De="_uploading_1e5od_73",Fe="_name_1e5od_77",Xe="_size_1e5od_87",qe="_progress_1e5od_92",Ye="_remove_1e5od_98",R={chip:$e,imageChip:Oe,main:ke,preview:ze,previewFallback:We,hoverPreview:Ve,uploading:De,name:Fe,size:Xe,progress:qe,remove:Ye},Ge=450,fe=/^([0-9a-f-]{36})_/i;function Ke(e){return e.startsWith("image/")}const $=24,Je=8;function ce(e){return e==="-"||e==="_"||e===" "}function me(e){const t=e.trim();if(t.length<=$)return t;const r=$+Je;for(let n=$;n<t.length;n+=1)if(ce(t[n])){if(n<=r)return`${t.slice(0,n).replace(/[ -_]+$/u,"")}...`;break}for(let n=$-1;n>=0;n-=1)if(ce(t[n]))return`${t.slice(0,n).replace(/[ -_]+$/u,"")}...`;return`${t.slice(0,$).replace(/[ -_]+$/u,"")}...`}function Qe(e){if(!e)return null;const t=e.split(/[\\/]/).pop()??"",r=fe.exec(t);return(r==null?void 0:r[1])??null}function Ze(e,t){if(!e)return null;const r=e.includes("\\")?"\\":"/",n=e.split(/[\\/]/);if(n.length<3)return null;const i=n[n.length-1],o=n[n.length-2],s=n[n.length-3];if(!i||!o||!s||!fe.test(i))return null;if(t)return`/api/projects/${encodeURIComponent(t)}/sessions/${encodeURIComponent(o)}/upload/${encodeURIComponent(i)}`;if(s===".attachments"){const a=n.slice(0,-3).join(r);return a?`/api/projects/${te(a)}/sessions/${encodeURIComponent(o)}/upload/${encodeURIComponent(i)}`:null}if(s==="attachments"&&n[n.length-4]===".yep"){const a=n.slice(0,-4).join(r);return a?`/api/projects/${te(a)}/sessions/${encodeURIComponent(o)}/upload/${encodeURIComponent(i)}`:null}return s==="attachments"?null:`/api/projects/${s}/sessions/${encodeURIComponent(o)}/upload/${encodeURIComponent(i)}`}function et(e,t,r,n,i){const[o,s]=l.useState(null),[a,c]=l.useState(null),[h,u]=l.useState(null),[p,v]=l.useState(null),[b,U]=l.useState(!1),[w,C]=l.useState(null),[g,M]=l.useState(!1),f=l.useRef(null),A=l.useRef(null),m=Ae(),S=l.useMemo(()=>m?t?_e(m,t):null:Ze(t,i),[t,i,m]),L=l.useMemo(()=>m?_=>xe({path:_,relayUrl:m.relayUrl,relayUsername:m.relayUsername}):void 0,[m]);l.useEffect(()=>{let _=!1;if(C(null),s(null),c(null),u(null),v(null),m){U(!1),M(!0);return}return n?(U(!1),M(!1),()=>{f.current&&(URL.revokeObjectURL(f.current),f.current=null),A.current&&(URL.revokeObjectURL(A.current),A.current=null)}):!t&&!e?(U(!1),M(!1),()=>{f.current&&(URL.revokeObjectURL(f.current),f.current=null),A.current&&(URL.revokeObjectURL(A.current),A.current=null)}):(U(!0),M(!1),ye(e,t).then(E=>{if(_)return;if(!E){U(!1),M(!0);return}const k=E.thumbnailBlob??E.fullBlob,z=URL.createObjectURL(k),W=URL.createObjectURL(E.fullBlob);f.current=z,A.current=W,s(z),c(W),u(E.thumbnailWidth??null),v(E.thumbnailHeight??null),U(!1)}).catch(E=>{_||(S?(C(null),M(!0)):C(E instanceof Error?E.message:"Failed to load attachment preview"),U(!1))}),()=>{_=!0,f.current&&(URL.revokeObjectURL(f.current),f.current=null),A.current&&(URL.revokeObjectURL(A.current),A.current=null)})},[e,t,n,S,m]);const j=Pe(S,r&&g&&!n,L);return{previewUrl:n??o??j.url,fullUrl:n??a??j.url,previewWidth:h,previewHeight:p,loading:b||j.loading,error:w??j.error}}function tt({originalName:e,path:t,mimeType:r,sizeLabel:n,onRemove:i}){const{t:o}=ae();return d.jsxs("span",{className:R.chip,title:`${r}, ${n}`,children:[d.jsx("span",{className:R.previewFallback,"aria-hidden":"true",children:"📎"}),d.jsx("span",{className:R.name,title:t??e,children:me(e)}),d.jsx("span",{className:R.size,children:n}),i&&d.jsx("button",{type:"button",className:R.remove,onClick:i,"aria-label":o("attachmentRemove",{name:e}),children:"x"})]})}function nt({attachmentId:e,originalName:t,path:r,mimeType:n,sizeLabel:i,imageWidth:o,imageHeight:s,previewUrl:a,projectId:c,onRemove:h}){const{t:u}=ae(),p=ge(),v=c??(p==null?void 0:p.projectId),[b,U]=l.useState(!1),[w,C]=l.useState(!1),[g,M]=l.useState(null),f=l.useRef(null),A=l.useRef(null),m=l.useRef(null),S=Qe(r),L=e??S??r??t,{previewUrl:j,fullUrl:_,previewWidth:E,previewHeight:k,loading:z,error:W}=et(L,r,b||w,a,v),V=l.useCallback(()=>{f.current!==null&&(window.clearTimeout(f.current),f.current=null)},[]);l.useEffect(()=>V,[V]);const we=()=>{V(),f.current=window.setTimeout(()=>{C(!0)},Ge)},F=()=>{V(),C(!1),M(null)},I=l.useCallback(()=>{var ee;const H=(ee=A.current)==null?void 0:ee.getBoundingClientRect();if(!H)return;const y=m.current,Q=o??(y&&y.naturalWidth>0?y.naturalWidth:null),Z=s??(y&&y.naturalHeight>0?y.naturalHeight:null);!Q||!Z||M(Be({anchor:{top:H.top,left:H.left,width:H.width,height:H.height},imageWidth:Q,imageHeight:Z,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight}))},[s,o]);l.useLayoutEffect(()=>{if(!(!w||!_))return I(),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[_,w,I]);const X=E&&k?{width:E,height:k}:o&&s?K(o,s):null,pe=X?{width:`${X.width}px`,height:`${X.height}px`}:void 0;return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:`${R.chip} ${R.imageChip}`,children:[d.jsxs("button",{ref:A,type:"button",className:R.main,onClick:()=>{F(),U(!0)},onMouseEnter:we,onMouseLeave:F,onBlur:F,"aria-label":`Open ${t}`,title:`${n}, ${i}`,children:[d.jsx("span",{className:R.preview,"aria-hidden":"true",style:pe,children:j?d.jsx("img",{src:j,alt:""}):d.jsx("span",{className:R.previewFallback,children:"📎"})}),d.jsx("span",{className:R.name,title:r??t,children:me(t)}),d.jsx("span",{className:R.size,children:i})]}),h&&d.jsx("button",{type:"button",className:R.remove,onClick:h,"aria-label":u("attachmentRemove",{name:t}),children:"x"})]}),w&&!b&&_&&ve.createPortal(d.jsx("div",{className:R.hoverPreview,"data-testid":"attachment-hover-preview","aria-hidden":"true",style:g?{top:g.top,left:g.left,width:g.width,height:g.height}:{visibility:"hidden"},children:d.jsx("img",{ref:m,src:_,alt:"",onLoad:I})}),document.body),b&&d.jsx(je,{title:t,onClose:()=>U(!1),children:d.jsxs("div",{className:"uploaded-image-modal",children:[z&&d.jsx("div",{className:"image-loading",children:"Loading..."}),W&&d.jsx("div",{className:"image-error",children:"Failed to load image"}),_&&d.jsx("img",{src:_,alt:t})]})})]})}function at(e){return Ke(e.mimeType)?d.jsx(nt,{...e}):d.jsx(tt,{...e})}export{at as A,R as c,ct as s,Pe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as x,r as u,j as e,L as y,d as g}from"./index-BUrcmRdN.js";import{a as j}from"./client-sN_tbfxh.js";import{B as b}from"./BangCommandDisplayObject-B8KrHDzH.js";import{P as f}from"./PageHeader-BaYMLVHI.js";import{u as _}from"./Modal-QUinFhBP.js";import{MainContent as A}from"./index-CA-BRFYh.js";import{u as k}from"./NavigationLayout-BkOsag-J.js";import{c as h}from"./sessionNavigationState-DKXD1sTS.js";import"./react-runtime-D-UPQ57m.js";import"./RelayProtocol-DjpPJk64.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./types-BHkriVjU.js";const v="_page_znn8x_16",N="_empty_znn8x_21",I="_entry_znn8x_26",C="_entryMeta_znn8x_30",E="_entrySession_znn8x_38",S="_entryActions_znn8x_48",w="_entryAction_znn8x_48",o={page:v,empty:N,entry:I,entryMeta:C,entrySession:E,entryActions:S,entryAction:w};function H({projectId:i,sessionId:l,command:p,objectId:m,basePath:s}){const{t:n}=x(),r=g(),a=`${s}/projects/${i}/sessions/${l}`;return e.jsxs("span",{className:o.entryActions,children:[e.jsx("button",{type:"button",className:o.entryAction,"aria-label":n("bangHistoryActionEdit"),title:n("bangHistoryActionEdit"),onClick:()=>r(a,{state:h({composerPrefill:`!!${p}`})}),children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"M11 2.5l2.5 2.5L6 12.5 3 13l.5-3z"})})}),e.jsx("button",{type:"button",className:o.entryAction,"aria-label":n("bangHistoryActionNew"),title:n("bangHistoryActionNew"),onClick:()=>r(a,{state:h({focusComposer:!0})}),children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"M8 3.5v9M3.5 8h9"})})}),e.jsx("button",{type:"button",className:o.entryAction,"aria-label":n("bangHistoryActionJump"),title:n("bangHistoryActionJump"),onClick:()=>r(a,{state:h({scrollToRenderId:m})}),children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"M8 2.5v7M4.5 6l3.5 3.5L11.5 6M3 13h10"})})})]})}function tt(){const{t:i}=x(),l=_(),{openSidebar:p,isWideScreen:m}=k(),[s,n]=u.useState(null),[r,a]=u.useState(null);return u.useEffect(()=>{let t=!1;return j.fetchBangCommandHistory().then(c=>{t||n(c.entries.filter(d=>d.object.kind==="bang-command"))},()=>{t||n([])}),()=>{t=!0}},[]),e.jsxs(A,{isWideScreen:m,children:[e.jsx(f,{title:i("bangHistoryTitle"),onOpenSidebar:p}),e.jsxs("div",{className:o.page,children:[s!==null&&s.length===0&&e.jsx("div",{className:o.empty,children:i("bangHistoryEmpty")}),s==null?void 0:s.map(t=>{const c=`${t.sessionId}-${t.object.id}`;return e.jsxs("div",{className:o.entry,children:[e.jsxs("div",{className:o.entryMeta,children:[e.jsx("span",{className:"bang-history-entry-time",children:new Date(t.object.createdAt).toLocaleString()}),e.jsx("span",{className:"bang-history-entry-cwd",title:t.object.cwd,children:t.object.cwd.split("/").pop()}),t.projectId&&e.jsx(y,{to:`${l}/projects/${t.projectId}/sessions/${t.sessionId}`,className:o.entrySession,children:i("bangHistoryOpenSession")}),t.projectId&&e.jsx(H,{projectId:t.projectId,sessionId:t.sessionId,command:t.object.command,objectId:t.object.id,basePath:l})]}),e.jsx(b,{object:t.object,outputExpanded:r===c,onOutputExpandedChange:d=>{a(d?c:null)},handlers:t.projectId?{fetchOutput:d=>j.fetchBangCommandOutput(t.projectId,t.sessionId,d)}:void 0})]},c)})]})]})}export{tt as BangCommandsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as l,j as a}from"./index-BUrcmRdN.js";import{u as f}from"./providerChildSessions-ClrSXOQr.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./Modal-QUinFhBP.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";const m="browser-debug";function k({t:e,active:r,connected:u,disabled:p,className:c,title:b,menuItem:x=!1,onToggle:o,onReactivate:n,onReload:i,children:B,dataAttributes:w}){const t=f(e,{dismiss:e("toolbarBrowserDebugDismissMenu"),menu:e("toolbarBrowserDebugMenu")}),s=l.useMemo(()=>r?[{label:e("toolbarBrowserDebugReload"),onSelect:i},{label:e("toolbarBrowserDebugReactivate"),onSelect:n,disabled:u},{label:e("toolbarBrowserDebugDisableNow"),onSelect:o,separatorBefore:!0}]:[{label:e("toolbarBrowserDebugEnable"),onSelect:o}],[r,u,n,i,o,e]);l.useEffect(()=>{t.refreshOpenActions(m,s)},[s,t.refreshOpenActions]);const D=x?{role:"menuitemcheckbox","aria-checked":r}:{"aria-pressed":r};return a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:c,...w,...t.targetProps(s,o,{contextKey:m}),...D,title:b,"aria-label":b,disabled:p,"data-browser-debug-context-menu":"true",children:B}),t.menu]})}export{k as BrowserDebugToolbarButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as D,s as I,i as N,j as e,r as p}from"./index-BUrcmRdN.js";import{f as M,b as A}from"./Modal-QUinFhBP.js";import{S as F}from"./SettingsSection-DOwc_RwX.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./index-BBpZzMBa.js";import"./PageHeader-BaYMLVHI.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";const H="_controls_1ku6n_1",L="_toggle_1ku6n_46",V="_help_1ku6n_92",$="_advanced_1ku6n_96",O="_actions_1ku6n_109",q="_session_1ku6n_110",c={controls:H,toggle:L,help:V,advanced:$,actions:O,session:q};function pe(){const{version:h}=M(),{sourceKey:l}=A(),{t}=D(),s=I(h,N.computerControl.name),m=I(h,N.computerControlReleases.name);return e.jsx(F,{title:t("computerTitle"),description:t("computerDescription"),children:s?e.jsx(B,{managed:m},l):e.jsx("p",{children:t("computerUnsupportedServer")})})}function B({managed:h}){var E,S,T,w,_,U,P,R;const{transport:l}=A(),{t}=D(),[s,m]=p.useState(),[g,k]=p.useState(""),[j,f]=p.useState(""),[v,b]=p.useState(""),[x,y]=p.useState(!1);p.useEffect(()=>{let r=!1;return l.fetch("/computer-control").then(u=>{var d,n;r||(m(u),k(((d=u.preview)==null?void 0:d.packageDirectory)??""),f(((n=u.preview)==null?void 0:n.trustedPublisher)??""))}).catch(()=>{r||b(t("computerRequestFailed"))}),()=>{r=!0}},[l,t]),p.useEffect(()=>{var d;if(!((d=s==null?void 0:s.release)!=null&&d.working))return;let r=!1;const u=setTimeout(()=>{l.fetch("/computer-control").then(n=>{r||m(n)}).catch(()=>{r||(b(t("computerRequestFailed")),m(n=>n&&{...n,release:n.release?{...n.release,working:!1}:void 0}))})},1e3);return()=>{r=!0,clearTimeout(u)}},[s,l,t]);const a=async(r,u,d)=>{y(!0),b("");try{await l.fetch(`/computer-control${r}`,{method:u,...d?{body:JSON.stringify(d)}:{}}),m(await l.fetch("/computer-control"))}catch(n){b(n instanceof Error?n.message:t("computerRequestFailed"))}finally{y(!1)}};if(!s)return e.jsx("p",{role:"status",children:v||t("computerLoading")});if(!s.available)return e.jsx("p",{children:t("computerUnavailable")});const i=x||((E=s.release)==null?void 0:E.working)||s.busy,o=(S=s.release)==null?void 0:S.progress,C=(o==null?void 0:o.phase)==="downloading"?t("computerDownloading"):(o==null?void 0:o.phase)==="verifying"?t("computerVerifying"):(o==null?void 0:o.phase)==="installing"?t("computerInstalling"):t("computerChecking");return e.jsxs("div",{className:c.controls,children:[h?e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:c.toggle,children:[e.jsxs("span",{children:[e.jsx("strong",{children:t("computerManagedEnable")}),e.jsx("small",{children:t("computerDownloadHelp")})]}),e.jsx("input",{type:"checkbox",role:"switch","aria-checked":s.enabled,"aria-label":t("computerManagedEnable"),checked:s.enabled,disabled:i,onChange:r=>void a("/releases/enabled","PUT",{enabled:r.currentTarget.checked})})]}),(T=s.release)!=null&&T.working?e.jsxs("div",{role:"status",children:[e.jsx("p",{children:C}),e.jsx("progress",{max:o==null?void 0:o.total,value:o!=null&&o.total?o.received:void 0,"aria-label":C}),e.jsx("button",{type:"button",disabled:x,onClick:()=>void a("/releases/enabled","PUT",{enabled:!1}),children:t("computerCancelDownload")})]}):e.jsx("p",{role:"status",children:s.preview?`${t("computerInstalled")}: ${((w=s.release)==null?void 0:w.installedVersion)??t("computerLocalPackage")}. ${t(s.enabled?"computerReady":"computerDisabled")}`:t("computerNotInstalled")}),s.preview&&((_=s.release)==null?void 0:_.updateAvailable)&&e.jsxs("div",{className:c.actions,children:[e.jsx("span",{children:t("computerUpdateAvailable",{version:s.release.latestVersion??""})}),e.jsx("button",{type:"button",disabled:i||s.sessions.length>0,onClick:()=>void a("/releases/update","POST"),children:t("computerUpdateNow")})]}),s.preview&&e.jsxs("label",{className:c.toggle,children:[e.jsxs("span",{children:[t("computerAutoUpdate"),e.jsx("small",{children:t("computerAutoUpdateHelp")})]}),e.jsx("input",{type:"checkbox",checked:((U=s.release)==null?void 0:U.autoUpdate)??!0,disabled:i,onChange:r=>void a("/releases/automatic","PUT",{autoUpdate:r.currentTarget.checked})})]}),e.jsxs("div",{className:c.actions,children:[e.jsx("button",{type:"button",disabled:i,onClick:()=>void a("/releases/check","POST"),children:t("computerCheckUpdates")}),s.preview&&e.jsx("button",{type:"button",disabled:i,onClick:()=>void a("/installation","DELETE"),children:t("computerUninstall")})]}),e.jsx("p",{className:c.help,children:t("computerSessionHelp")})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:t("computerUpdateServer")}),s.preview&&e.jsxs("label",{className:c.toggle,children:[t("computerEnable"),e.jsx("input",{type:"checkbox",checked:s.enabled,disabled:i,onChange:r=>void a("/settings","PUT",{enabled:r.currentTarget.checked,idleMs:s.idleMs,grantMs:s.grantMs})})]})]}),(v||((P=s.release)==null?void 0:P.error)||s.lastError)&&e.jsx("p",{role:"alert",children:v||((R=s.release)==null?void 0:R.error)||s.lastError}),e.jsxs("details",{className:c.advanced,children:[e.jsx("summary",{children:t("computerAdvanced")}),e.jsx("p",{children:t("computerTrustHelp")}),e.jsxs("label",{children:[t("computerPackageDirectory"),e.jsx("input",{value:g,onChange:r=>k(r.currentTarget.value),disabled:i})]}),e.jsxs("label",{children:[t("computerTrustedPublisher"),e.jsx("input",{value:j,onChange:r=>f(r.currentTarget.value),disabled:i})]}),e.jsx("button",{type:"button",disabled:i||!g.trim()||!j.trim(),onClick:()=>void a("/install","POST",{packageDirectory:g,trustedPublisher:j}),children:t("computerInstall")}),e.jsx("p",{children:t(s.running?"computerRunning":"computerStopped")}),e.jsx("button",{type:"button",disabled:x,onClick:()=>void a("","GET"),children:t("computerRefresh")})]}),s.sessions.map(r=>e.jsxs("div",{className:c.session,children:[e.jsx("code",{children:r.sessionId}),e.jsx("button",{type:"button",disabled:x,onClick:()=>void a(`/sessions/${encodeURIComponent(r.sessionId)}`,"DELETE"),children:t("computerRevoke")})]},r.sessionId))]})}export{pe as ComputerControlSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as V,r as g,j as e,L as _}from"./index-BUrcmRdN.js";import{u as q,a as F}from"./SchemaValidationContext-CIAd7icg.js";import{u as K,a as Q}from"./Modal-QUinFhBP.js";import{u as $}from"./remoteRoutePaths-CiDZeM2I.js";import{u as z}from"./useReloadNotifications-B0egr2ys.js";import{a as G}from"./frontendReload-DT6MOpjg.js";import{d as J,i as f}from"./NavigationLayout-BkOsag-J.js";import{r as X}from"./relayEndpoints-0oIbn4eU.js";import{g as Y,a as Z}from"./hostStorage-BoEdRarg.js";import{S as n}from"./SettingsItem-B_rM9Vhi.js";import{u as ee,b as se}from"./index-BBpZzMBa.js";import{S as te}from"./SettingsSection-DOwc_RwX.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./appHref-ByaEnJGJ.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./newSessionPrefill-DkkSfnYR.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./relay-url-j3kYm5KO.js";import"./PageHeader-BaYMLVHI.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./index-CA-BRFYh.js";const w={"live-tail":"developmentSessionScrollMemoryModeLiveTailDescription","remember-place":"developmentSessionScrollMemoryModeRememberPlaceDescription","no-memory":"developmentSessionScrollMemoryModeNoMemoryDescription"},u={"live-tail":"developmentSessionScrollMemoryModeLiveTail","remember-place":"developmentSessionScrollMemoryModeRememberPlace","no-memory":"developmentSessionScrollMemoryModeNoMemory"};function Ce(){var C;const{t:s}=V(),I=K(),l=Q(),c=l!=null&&l.connection?l.currentRelayUsername?Y(l.currentRelayUsername):l.currentHostId?Z(l.currentHostId):void 0:void 0,D=(c==null?void 0:c.mode)==="relay"?c.relayUrl:void 0,N=D?(C=X(D))==null?void 0:C.statsUrl:void 0;ee(s("developmentSectionTitle"));const{isManualReloadMode:W,pendingReloads:H,connected:E,reloadBackend:L,unsafeToRestart:v,interruptibleSessionCount:r,queuedSessionMessageCount:i}=z(),{settings:b,setEnabled:h}=q(),{crossHostDelegationEnabled:d,setCrossHostDelegationEnabled:x,relayDebugEnabled:S,setRelayDebugEnabled:j,remoteLogCollectionEnabled:y,setRemoteLogCollectionEnabled:k}=$(),{sessionScrollBehaviorMode:m,setSessionScrollBehaviorMode:M}=J(),{ignoredTools:R,clearIgnoredTools:B}=F(),{settings:o,updateSetting:a}=G(),U=g.useMemo(()=>o?{validationEnabled:b.enabled,crossHostDelegationEnabled:d,relayDebugEnabled:S,remoteLogCollectionEnabled:y,sessionScrollBehaviorMode:m,serviceWorkerEnabled:o.serviceWorkerEnabled??!0,workstreamsEnabled:o.workstreamsEnabled??!1}:null,[b.enabled,d,S,y,o,m]),P=g.useCallback(t=>{h(t.validationEnabled),x(t.crossHostDelegationEnabled),j(t.relayDebugEnabled),k(t.remoteLogCollectionEnabled),M(t.sessionScrollBehaviorMode),a("serviceWorkerEnabled",t.serviceWorkerEnabled),a("workstreamsEnabled",t.workstreamsEnabled)},[h,x,j,k,M,a]);se(U,P);const[p,T]=g.useState(!1);g.useEffect(()=>{p&&E&&T(!1)},[p,E]);const O=async()=>{T(!0),await L()},A=r>0&&i>0?s("developmentInterruptedWarningActiveAndQueued",{activeCount:r,activeSuffix:r!==1?"s":"",queuedCount:i,queuedSuffix:i!==1?"s":""}):i>0?s("developmentInterruptedWarningQueued",{count:i,suffix:i!==1?"s":""}):s("developmentInterruptedWarning",{count:r,suffix:r!==1?"s ":" "});return e.jsxs(te,{children:[e.jsxs("div",{className:"settings-group",children:[e.jsx(n,{label:s("developmentSchemaTitle"),description:s("developmentSchemaDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:b.enabled,onChange:t=>h(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),R.length>0&&e.jsx(n,{label:s("developmentIgnoredToolsTitle"),description:s("developmentIgnoredToolsDescription"),info:e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:s("developmentIgnoredToolsTitle")}),e.jsx("p",{children:s("developmentIgnoredToolsDescription")}),e.jsx("div",{className:"ignored-tools-list",children:R.map(t=>e.jsx("span",{className:"ignored-tool-badge",children:t},t))})]}),children:e.jsx("button",{type:"button",className:"settings-button settings-button-secondary",onClick:B,children:s("developmentClearIgnored")})}),e.jsx(n,{label:s("developmentCrossHostDelegationTitle"),description:s("developmentCrossHostDelegationDescription"),className:"settings-item--wide-control",children:e.jsxs("div",{className:"settings-item-actions",children:[d&&e.jsx(_,{className:"settings-button settings-button-secondary",to:`${I}/-/hosts`,children:s("developmentHostsPreviewOpen")}),e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":s("developmentCrossHostDelegationTitle"),checked:d,onChange:t=>x(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})]})}),N&&e.jsx(n,{label:s("developmentRelayMonitorTitle"),description:s("developmentRelayMonitorDescription"),children:e.jsx("a",{className:"settings-button settings-button-secondary",href:N,target:"_blank",rel:"noreferrer",children:s("developmentRelayMonitorOpen")})}),e.jsx(n,{label:s("developmentRelayDebugTitle"),description:s("developmentRelayDebugDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox","aria-label":s("developmentRelayDebugTitle"),checked:S,onChange:t=>j(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:s("developmentDiagnosticsTitle"),description:s("developmentDiagnosticsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:y,onChange:t=>k(t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:s("developmentServiceWorkerTitle"),description:s("developmentServiceWorkerDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:(o==null?void 0:o.serviceWorkerEnabled)??!0,onChange:t=>a("serviceWorkerEnabled",t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})}),e.jsx(n,{label:s("developmentWorkstreamsTitle"),description:s("developmentWorkstreamsDescription"),children:e.jsxs("label",{className:"toggle-switch",children:[e.jsx("input",{type:"checkbox",checked:(o==null?void 0:o.workstreamsEnabled)??!1,onChange:t=>a("workstreamsEnabled",t.target.checked)}),e.jsx("span",{className:"toggle-slider"})]})})]}),e.jsx("div",{className:"settings-group",children:e.jsx(n,{label:s("developmentSessionScrollMemoryTitle"),description:s("developmentSessionScrollMemoryDescription"),keywords:[s("developmentSessionScrollMemoryControlTitle"),s("developmentSessionScrollMemoryKeywords"),...f.flatMap(t=>[s(u[t]),s(w[t])])],valueText:s(u[m]),className:"settings-item--wide-control",info:e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:s("developmentSessionScrollMemoryTitle")}),e.jsx("p",{children:s("developmentSessionScrollMemoryDescription")}),e.jsx("ul",{className:"settings-option-description-list",children:f.map(t=>e.jsxs("li",{children:[e.jsx("strong",{children:s(u[t])}),e.jsx("span",{children:s(w[t])})]},t))})]}),children:e.jsx("div",{className:"settings-item-actions",children:e.jsx("select",{className:"settings-select",value:m,onChange:t=>M(t.target.value),"aria-label":s("developmentSessionScrollMemoryControlTitle"),children:f.map(t=>e.jsx("option",{value:t,children:s(u[t])},t))})})})}),W&&e.jsx("div",{className:"settings-group",children:e.jsx(n,{label:s("developmentRestartTitle"),description:s("developmentRestartDescription"),info:e.jsxs(e.Fragment,{children:[e.jsx("strong",{children:s("developmentRestartTitle")}),e.jsxs("p",{children:[s("developmentRestartDescription"),H.backend&&e.jsxs("span",{className:"settings-pending",children:[" ",s("developmentChangesPending")]})]}),v&&e.jsx("p",{className:"settings-warning",children:A})]}),children:e.jsx("button",{type:"button",className:`settings-button ${v?"settings-button-danger":""}`,onClick:O,disabled:p,children:s(p?"developmentRestarting":v?"developmentRestartAnyway":"developmentRestart")})})})]})}export{Ce as DevelopmentSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as d,u as x,j as s}from"./index-BUrcmRdN.js";import{a as f}from"./client-sN_tbfxh.js";import{u as w}from"./useBackgroundRevalidation-CULom4_W.js";import{u as j,a as P}from"./useConnectedDevices-kBo43kbz.js";import{u as N,H as b}from"./index-BBpZzMBa.js";import{S}from"./SettingsSection-DOwc_RwX.js";import{p as D}from"./deviceDetection-BVPclkty.js";import"./react-runtime-D-UPQ57m.js";import"./RelayProtocol-DjpPJk64.js";import"./appHref-ByaEnJGJ.js";import"./PageHeader-BaYMLVHI.js";import"./providerChildSessions-ClrSXOQr.js";import"./Modal-QUinFhBP.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./katex-Dv2p4YRM.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";function y(){const[r,t]=d.useState({profiles:[],isLoading:!0,error:null}),n=d.useCallback(async()=>{t(e=>({...e,isLoading:!0,error:null}));try{const{profiles:e}=await f.getBrowserProfiles();t({profiles:e,isLoading:!1,error:null})}catch(e){console.error("[useBrowserProfiles] Failed to fetch:",e),t(i=>({...i,isLoading:!1,error:e instanceof Error?e.message:"Failed to load profiles"}))}},[]);d.useEffect(()=>{n()},[n]),w({fetcher:()=>f.getBrowserProfiles().then(e=>e.profiles),current:r.profiles,apply:e=>t(i=>({...i,profiles:e,error:null}))});const a=d.useCallback(async e=>{t(i=>({...i,isLoading:!0,error:null}));try{await f.deleteBrowserProfile(e),await n()}catch(i){console.error("[useBrowserProfiles] Failed to delete:",i),t(c=>({...c,isLoading:!1,error:i instanceof Error?i.message:"Failed to delete profile"}))}},[n]);return{...r,deleteProfile:a,refetch:n}}function m(r,t){const n=new Date(r),e=new Date().getTime()-n.getTime(),i=Math.floor(e/(1e3*60)),c=Math.floor(e/(1e3*60*60)),o=Math.floor(e/(1e3*60*60*24));return i<1?t("devicesJustNow"):i<60?t("devicesMinutesAgo",{count:i,suffix:i===1?"":"s"}):c<24?t("devicesHoursAgo",{count:c,suffix:c===1?"":"s"}):o===1?t("devicesYesterday"):o<7?`${o} days ago`:n.toLocaleDateString()}function X(){const{t:r}=x();N(r("devicesProfilesTitle"));const{profiles:t,isLoading:n,error:a,deleteProfile:e}=y(),{browserProfileId:i}=j(),{connections:c}=P();return s.jsx(S,{description:r("devicesProfilesDescription"),children:s.jsxs(b,{children:[a&&s.jsx("p",{className:"form-error",children:a}),s.jsx("div",{className:"settings-group",children:n?s.jsx("p",{className:"settings-hint",children:r("devicesLoadingProfiles")}):t.length===0?s.jsx("p",{className:"settings-hint",children:r("devicesEmpty")}):s.jsx("div",{className:"device-list",children:t.map(o=>{const p=o.browserProfileId===i,u=c.has(o.browserProfileId),g=o.deviceName||`${o.browserProfileId.slice(0,8)}...`;return s.jsxs("div",{className:"device-list-item device-profile-item",children:[s.jsxs("div",{className:"device-list-info",children:[s.jsxs("strong",{children:[s.jsx("span",{className:`device-status ${u?"device-status-online":"device-status-offline"}`,title:r(u?"devicesConnected":"devicesDisconnected")}),g,p&&s.jsx("span",{className:"device-current-badge",children:r("devicesThisDevice")})]}),s.jsx("div",{className:"device-origins",children:o.origins.map(l=>{const{browser:v,os:h}=D(l.userAgent);return s.jsxs("div",{className:"device-origin",children:[s.jsx("code",{className:"device-origin-url",children:l.origin}),s.jsxs("span",{className:"device-origin-details",children:[v," · ",h]}),s.jsx("span",{className:"device-origin-time",children:r("devicesLastSeen",{date:m(l.lastSeen,r)})})]},l.origin)})}),s.jsx("p",{className:"device-profile-meta",children:r("devicesFirstSeen",{date:m(o.createdAt,r)})})]}),s.jsx("button",{type:"button",className:"settings-button settings-button-danger-subtle",onClick:()=>e(o.browserProfileId),title:r("devicesForgetThisDevice"),children:r("devicesForget")})]},o.browserProfileId)})})})]})})}export{X as DevicesSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as M,j as o,r as d,aG as Q,s as B,aQ as J,aR as z}from"./index-BUrcmRdN.js";import{a as Z}from"./client-sN_tbfxh.js";import{A as H,c as V,d as F,e as ee,f as te,Q as ne,u as re,a as oe}from"./useEmulators-Bz8194e3.js";import{P as se}from"./PageHeader-BaYMLVHI.js";import{b as ie,f as ae}from"./Modal-QUinFhBP.js";import{MainContent as U}from"./index-CA-BRFYh.js";import{u as ce}from"./NavigationLayout-BkOsag-J.js";import"./react-runtime-D-UPQ57m.js";import"./RelayProtocol-DjpPJk64.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";const le="_root_1sqe4_1",de="_button_1sqe4_10",L={root:le,button:de};function ue({dataChannel:e,deviceType:t}){const{t:a}=M(),i=t==="emulator"||t==="android";if(!i&&!(t==="ios-simulator"))return null;const _=c=>{(e==null?void 0:e.readyState)==="open"&&e.send(JSON.stringify({type:"key",key:c}))},E=(e==null?void 0:e.readyState)!=="open";return o.jsxs("div",{className:L.root,role:"group","aria-label":a("emulatorDeviceNavigation"),children:[i&&o.jsx("button",{type:"button",className:L.button,onClick:()=>_("GoBack"),disabled:E,title:"Back","aria-label":"Back",children:o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("polyline",{points:"15 18 9 12 15 6"})})}),o.jsx("button",{type:"button",className:L.button,onClick:()=>_("GoHome"),disabled:E,title:"Home","aria-label":"Home",children:o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("circle",{cx:"12",cy:"12",r:"4"})})}),i&&o.jsx("button",{type:"button",className:L.button,onClick:()=>_("AppSwitch"),disabled:E,title:"Recents","aria-label":"Recents",children:o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"1"})})})]})}function me(e){const t=e.getBoundingClientRect(),a=e.videoWidth,i=e.videoHeight;if(!a||!i)return t;const b=Math.min(t.width/a,t.height/i),_=a*b,E=i*b;return new DOMRect(t.left+(t.width-_)/2,t.top+(t.height-E)/2,_,E)}function j(e){return Math.max(0,Math.min(1,e))}function fe(e,t,a){if(a.width<=0||a.height<=0)return null;const i=(e-a.left)/a.width,b=(t-a.top)/a.height;return i<0||i>1||b<0||b>1?null:{x:j(i),y:j(b)}}function Ee(e,t,a){if(a.width<=0||a.height<=0)return null;const i=(e-a.left)/a.width,b=(t-a.top)/a.height;return{x:j(i),y:j(b)}}const pe={Backspace:"KEYCODE_DEL",Delete:"KEYCODE_FORWARD_DEL",Enter:"KEYCODE_ENTER",Tab:"KEYCODE_TAB",Escape:"KEYCODE_ESCAPE"," ":"KEYCODE_SPACE",ArrowLeft:"KEYCODE_DPAD_LEFT",ArrowRight:"KEYCODE_DPAD_RIGHT",ArrowUp:"KEYCODE_DPAD_UP",ArrowDown:"KEYCODE_DPAD_DOWN",Home:"KEYCODE_MOVE_HOME",End:"KEYCODE_MOVE_END",PageUp:"KEYCODE_PAGE_UP",PageDown:"KEYCODE_PAGE_DOWN",Insert:"KEYCODE_INSERT",".":"KEYCODE_PERIOD",",":"KEYCODE_COMMA","/":"KEYCODE_SLASH","\\":"KEYCODE_BACKSLASH","-":"KEYCODE_MINUS","=":"KEYCODE_EQUALS",";":"KEYCODE_SEMICOLON","'":"KEYCODE_APOSTROPHE","[":"KEYCODE_LEFT_BRACKET","]":"KEYCODE_RIGHT_BRACKET","`":"KEYCODE_GRAVE"},_e={Space:"KEYCODE_SPACE",Enter:"KEYCODE_ENTER",Tab:"KEYCODE_TAB",Escape:"KEYCODE_ESCAPE",Backspace:"KEYCODE_DEL",Delete:"KEYCODE_FORWARD_DEL",ArrowLeft:"KEYCODE_DPAD_LEFT",ArrowRight:"KEYCODE_DPAD_RIGHT",ArrowUp:"KEYCODE_DPAD_UP",ArrowDown:"KEYCODE_DPAD_DOWN",Home:"KEYCODE_MOVE_HOME",End:"KEYCODE_MOVE_END",PageUp:"KEYCODE_PAGE_UP",PageDown:"KEYCODE_PAGE_DOWN",Insert:"KEYCODE_INSERT",Period:"KEYCODE_PERIOD",Comma:"KEYCODE_COMMA",Slash:"KEYCODE_SLASH",Backslash:"KEYCODE_BACKSLASH",Minus:"KEYCODE_MINUS",Equal:"KEYCODE_EQUALS",Semicolon:"KEYCODE_SEMICOLON",Quote:"KEYCODE_APOSTROPHE",BracketLeft:"KEYCODE_LEFT_BRACKET",BracketRight:"KEYCODE_RIGHT_BRACKET",Backquote:"KEYCODE_GRAVE"};function he(e){return e==="emulator"||e==="android"||e==="ios-simulator"}function De(e){if(e.isComposing||e.ctrlKey||e.metaKey||e.altKey)return null;if(e.key.length===1)return e.key;const t=pe[e.key];return t||(e.code.startsWith("Key")&&e.code.length===4?`KEYCODE_${e.code.slice(3).toUpperCase()}`:e.code.startsWith("Digit")&&e.code.length===6?`KEYCODE_${e.code.slice(5)}`:_e[e.code]??null)}const ge=new Set(["Backspace","Delete","Enter","Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown","Insert"]);function ye(e){if(e.isComposing||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return t==="Esc"&&(t="Escape"),t==="Spacebar"&&(t=" "),t===""||t==="Dead"||t==="Unidentified"||t==="Shift"||t==="Control"||t==="Alt"||t==="Meta"?null:t.length===1||ge.has(t)||/^F\d{1,2}$/.test(t)?t:null}function Se(e,t){return t==="emulator"||t==="ios-simulator"?ye(e):De(e)}function ve(e){if(!(e instanceof HTMLElement))return!1;if(e.isContentEditable)return!0;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"}function be({stream:e,dataChannel:t,deviceType:a,peerConnection:i,adaptiveFps:b=!1,configuredFps:_=30}){const E=d.useRef(null);d.useEffect(()=>{const s=E.current;if(!s||(s.srcObject=e,!e))return;const $=e.getVideoTracks();console.log(`[DeviceStream] attached stream: ${$.length} video track(s), active=${e.active}`);for(const f of $)console.log(`[DeviceStream] track ${f.id}: readyState=${f.readyState} enabled=${f.enabled} muted=${f.muted}`);let D=-1,S=0,y=0,p=0;const m=setInterval(async()=>{const f=s.currentTime;if(D>=0&&f===D&&!s.paused){S++;let K="";if(i&&i.connectionState!=="closed")try{const u=await i.getStats();for(const n of u.values())if(n.type==="inbound-rtp"&&n.kind==="video"){const r=n.packetsReceived??0,A=n.bytesReceived??0,Y=n.packetsLost??0,X=r-y,q=A-p;y=r,p=A,K=` rtp: +${X}pkts/+${q}bytes (total=${r}, lost=${Y})`}}catch{}if(S===1)console.warn(`[DeviceStream] video stale: currentTime=${f.toFixed(3)} not advancing${K}`);else if(S%6===0){const u=e.getVideoTracks()[0];console.warn(`[DeviceStream] video still stale (${S*5}s): currentTime=${f.toFixed(3)}, track=${(u==null?void 0:u.readyState)??"none"}, streamActive=${e.active}${K}`)}else console.warn(`[DeviceStream] video stale (${S*5}s)${K}`)}else if(S>0&&console.log(`[DeviceStream] video resumed after ${S*5}s stale`),S=0,i&&i.connectionState!=="closed")try{const K=await i.getStats();for(const u of K.values())u.type==="inbound-rtp"&&u.kind==="video"&&(y=u.packetsReceived??0,p=u.bytesReceived??0)}catch{}D=f},5e3),T=f=>{console.warn(`[DeviceStream] stream removetrack: ${f.track.kind} ${f.track.id}`)},h=()=>{console.warn("[DeviceStream] stream became inactive")};return e.addEventListener("removetrack",T),e.addEventListener("inactive",h),()=>{clearInterval(m),e.removeEventListener("removetrack",T),e.removeEventListener("inactive",h)}},[e,i]),d.useEffect(()=>{if(!b||!i||!t)return;let s=0,$=0,D=null;const S=setInterval(async()=>{if(i.connectionState==="closed"||t.readyState!=="open")return;let y=0,p=0;try{const h=await i.getStats();for(const f of h.values())if(f.type==="inbound-rtp"&&f.kind==="video"){const K=f.packetsReceived??0,u=f.packetsLost??0;y=K-s,p=Math.max(0,u-$),s=K,$=u}}catch{return}const m=y+p,T=m>0?p/m:0;T>H?D?D=Date.now():(D=Date.now(),t.send(JSON.stringify({type:"fps_hint",fps:V})),console.warn(`[DeviceStream] adaptive: loss rate ${(T*100).toFixed(1)}% > ${H*100}%, dropping to ${V}fps`)):D!==null&&Date.now()-D>=F*1e3&&(D=null,t.send(JSON.stringify({type:"fps_hint",fps:_})),console.log(`[DeviceStream] adaptive: loss-free for ${F}s, restoring to ${_}fps`))},ee);return()=>clearInterval(S)},[b,i,t,_]);const c=d.useCallback(()=>t&&t.readyState==="open",[t]),k=d.useCallback(s=>{!c()||!t||t.send(JSON.stringify({type:"key",key:s}))},[c,t]);d.useEffect(()=>{if(!he(a))return;const s=$=>{if(!c()||!t||ve($.target))return;const D=Se($,a);D&&($.preventDefault(),k(D))};return window.addEventListener("keydown",s,!0),()=>window.removeEventListener("keydown",s,!0)},[c,t,a,k]);const g=d.useCallback((s,$)=>{if(!c()||!t)return;const D=me($),S=s.map(y=>{const p=y.pressure<=0?Ee(y.clientX,y.clientY,D):fe(y.clientX,y.clientY,D);return p?{x:p.x,y:p.y,pressure:y.pressure,id:y.id}:null}).filter(y=>y!==null);S.length!==0&&t.send(JSON.stringify({type:"touch",touches:S}))},[c,t]);d.useEffect(()=>{const s=E.current;if(!s)return;const $=p=>{p.preventDefault(),g(Array.from(p.touches).map(m=>({clientX:m.clientX,clientY:m.clientY,id:m.identifier,pressure:m.force||.5})),s)},D=p=>{p.preventDefault(),g(Array.from(p.touches).map(m=>({clientX:m.clientX,clientY:m.clientY,id:m.identifier,pressure:m.force||.5})),s)},S=p=>{p.preventDefault(),g(Array.from(p.changedTouches).map(m=>({clientX:m.clientX,clientY:m.clientY,id:m.identifier,pressure:0})),s)},y={passive:!1};return s.addEventListener("touchstart",$,y),s.addEventListener("touchmove",D,y),s.addEventListener("touchend",S,y),s.addEventListener("touchcancel",S,y),()=>{s.removeEventListener("touchstart",$),s.removeEventListener("touchmove",D),s.removeEventListener("touchend",S),s.removeEventListener("touchcancel",S)}},[g]);const w=d.useRef(!1),R=d.useCallback(s=>{s.preventDefault(),w.current=!0,g([{clientX:s.clientX,clientY:s.clientY,id:0,pressure:.5}],s.currentTarget)},[g]),x=d.useCallback(s=>{w.current&&(s.preventDefault(),g([{clientX:s.clientX,clientY:s.clientY,id:0,pressure:.5}],s.currentTarget))},[g]),C=d.useCallback(s=>{w.current&&(w.current=!1,s.preventDefault(),g([{clientX:s.clientX,clientY:s.clientY,id:0,pressure:0}],s.currentTarget))},[g]),O=d.useCallback(s=>{w.current&&(w.current=!1,g([{clientX:s.clientX,clientY:s.clientY,id:0,pressure:0}],s.currentTarget))},[g]);return o.jsx("video",{ref:E,className:"emulator-video",autoPlay:!0,playsInline:!0,muted:!0,tabIndex:0,"aria-label":"Device stream",onMouseDown:R,onMouseMove:x,onMouseUp:C,onMouseLeave:O})}const v="[DeviceStream]",$e=8;function we(){typeof window>"u"||(window.__YEP_DEVICE_STREAM_PROFILE_EVENTS__=[])}function ke(e){if(typeof window>"u")return;const t=window,a=t.__YEP_DEVICE_STREAM_PROFILE_EVENTS__??[];a.push(e),t.__YEP_DEVICE_STREAM_PROFILE_EVENTS__=a,window.dispatchEvent(new CustomEvent("yep:device_stream_profile_event",{detail:e}))}function P(e,t){try{return Promise.resolve(e.send(t))}catch(a){return Promise.reject(a)}}function Ce(){const e=ie().transport,t=e.capabilities.device,[a,i]=d.useState(null),[b,_]=d.useState(null),[E,c]=d.useState("idle"),[k,g]=d.useState(null),[w,R]=d.useState(null),[x,C]=d.useState([]),O=d.useRef(null),s=d.useRef(null),$=d.useRef(null),D=d.useRef(null),S=d.useCallback(()=>{const p=s.current;if(console.log(`${v} disconnect() called, session=${p}`),p){const m=$.current;m&&P(m,{type:"device_stream_stop",sessionId:p}).catch(()=>{})}if(O.current){const m=O.current;console.log(`${v} closing RTCPeerConnection (state=${m.connectionState}, ice=${m.iceConnectionState})`),m.close(),O.current=null}D.current&&(D.current(),D.current=null),s.current=null,$.current=null,i(null),_(null),c("idle"),g(null),R(null),C([])},[]),y=d.useCallback(p=>{S();const m=t;if(!m){c("failed"),g("Device streaming is not available for this source");return}const T=Q();s.current=T,$.current=m;const h=T.slice(0,8);console.log(`${v} connect(deviceId=${p.id}, type=${p.type??"unknown"}, session=${h})`),c("connecting"),g(null),R(null),C([]),we();const f=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"}]});O.current=f,f.ontrack=n=>{const r=n.track;console.log(`${v} [${h}] ontrack: kind=${r.kind} id=${r.id} readyState=${r.readyState} muted=${r.muted}`),n.streams[0]&&i(n.streams[0]),r.onmute=()=>console.warn(`${v} [${h}] track MUTED: ${r.id}`),r.onunmute=()=>console.log(`${v} [${h}] track unmuted: ${r.id}`),r.onended=()=>console.warn(`${v} [${h}] track ENDED: ${r.id}`)},f.ondatachannel=n=>{const r=n.channel;console.log(`${v} [${h}] ondatachannel: label=${r.label} id=${r.id}`),r.onopen=()=>{console.log(`${v} [${h}] DataChannel "${r.label}" opened`),_(r)},r.onclose=()=>{console.warn(`${v} [${h}] DataChannel "${r.label}" closed`),_(null)},r.onerror=A=>{console.error(`${v} [${h}] DataChannel "${r.label}" error:`,A)}},f.onconnectionstatechange=()=>{switch(console.log(`${v} [${h}] connectionState: ${f.connectionState}`),f.connectionState){case"connected":c("connected");break;case"disconnected":c("disconnected");break;case"failed":c("failed"),g("WebRTC connection failed");break;case"closed":c("disconnected");break}},f.oniceconnectionstatechange=()=>{console.log(`${v} [${h}] iceConnectionState: ${f.iceConnectionState}`)},f.onicegatheringstatechange=()=>{console.log(`${v} [${h}] iceGatheringState: ${f.iceGatheringState}`)},f.onsignalingstatechange=()=>{console.log(`${v} [${h}] signalingState: ${f.signalingState}`)},f.onicecandidate=n=>{n.candidate?console.log(`${v} [${h}] sending ICE candidate: ${n.candidate.candidate.slice(0,60)}...`):console.log(`${v} [${h}] ICE gathering complete (null candidate)`),P(m,{type:"device_ice_candidate",sessionId:T,candidate:n.candidate?{candidate:n.candidate.candidate,sdpMid:n.candidate.sdpMid,sdpMLineIndex:n.candidate.sdpMLineIndex,usernameFragment:n.candidate.usernameFragment}:null}).catch(r=>{c("failed"),g(`Connection failed: ${r instanceof Error?r.message:String(r)}`)})};const K=m.onMessage(async n=>{if(n.sessionId===T)switch(n.type){case"device_webrtc_offer":{console.log(`${v} [${h}] received SDP offer (${n.sdp.length} bytes)`);try{await f.setRemoteDescription({type:"offer",sdp:n.sdp});const r=await f.createAnswer();await f.setLocalDescription(r),console.log(`${v} [${h}] sent SDP answer (${(r.sdp??"").length} bytes)`),await P(m,{type:"device_webrtc_answer",sessionId:T,sdp:r.sdp??""})}catch(r){console.error(`${v} [${h}] SDP negotiation failed:`,r),c("failed"),g(`WebRTC negotiation failed: ${r instanceof Error?r.message:String(r)}`)}break}case"device_ice_candidate_event":{if(n.candidate){console.log(`${v} [${h}] received remote ICE candidate`);try{await f.addIceCandidate(n.candidate)}catch(r){console.warn(`${v} [${h}] failed to add ICE candidate:`,r)}}else console.log(`${v} [${h}] remote ICE gathering complete`);break}case"device_session_state":{console.log(`${v} [${h}] server session state: ${n.state}${n.error?` error=${n.error}`:""}`),(n.state==="failed"||n.state==="disconnected")&&(c(n.state),n.error&&g(n.error));break}case"device_stream_profile_event":{console.log(`${v} [${h}] stream profile event: ${n.direction} tier=${n.tier}/${n.totalTiers} ${n.width}x${n.height}@${n.fps} bitrate=${n.bitrate}`);const r={...n,receivedAt:Date.now()};R(n),C(A=>[r,...A].slice(0,$e)),ke(n);break}}});D.current=K;const u=async()=>{const{maxFps:n,maxWidth:r,quality:A}=te(),Y=ne[A];console.log(`${v} [${h}] sending device_stream_start fps=${n} width=${r} quality=${A}(crf=${Y})`),await P(m,{type:"device_stream_start",sessionId:T,deviceId:p.id,deviceType:p.type,options:{maxFps:n,maxWidth:r,quality:Y}})};Promise.resolve().then(async()=>{e.status.getSnapshot().state!=="ready"&&await e.reconnect(),await u()}).catch(n=>{console.error(`${v} [${h}] device signaling failed:`,n),c("failed"),g(`Connection failed: ${n instanceof Error?n.message:String(n)}`)})},[t,S,e]);return d.useEffect(()=>{const p=$.current;p&&p!==t&&S()},[t,S]),d.useEffect(()=>()=>{if(O.current&&(O.current.close(),O.current=null),D.current&&(D.current(),D.current=null),s.current){const p=$.current;p&&P(p,{type:"device_stream_stop",sessionId:s.current}).catch(()=>{})}},[]),{remoteStream:a,dataChannel:b,peerConnection:O.current,connectionState:E,error:k,latestProfileEvent:w,profileEventHistory:x,connect:y,disconnect:S}}const Oe="_list_122d7_2",Te="_group_122d7_8",Ae="_groupTitle_122d7_14",Ke="_item_122d7_23",xe="_itemInfo_122d7_33",Re="_itemName_122d7_39",Ye="_itemStatus_122d7_44",Ne="_running_122d7_49",Pe="_stopped_122d7_53",Ie="_itemActions_122d7_57",Le="_btn_122d7_63",je="_btnPrimary_122d7_72",Me="_btnSecondary_122d7_81",Be="_streamView_122d7_91",He="_streamHeader_122d7_98",Ve="_connectionState_122d7_107",Fe="_streamHeaderActions_122d7_114",Ue="_keyboardState_122d7_119",We="_profileState_122d7_127",Ge="_profileTimeline_122d7_135",Xe="_profileTimelineItem_122d7_144",qe="_latest_122d7_154",Qe="_profileTimelineTime_122d7_158",Je="_profileTimelineDetail_122d7_163",ze="_streamContainer_122d7_169",Ze="_loading_122d7_180",et="_empty_122d7_181",tt="_error_122d7_187",nt="_connecting_122d7_196",rt="_downloadPrompt_122d7_203",l={list:Oe,group:Te,groupTitle:Ae,item:Ke,itemInfo:xe,itemName:Re,itemStatus:Ye,running:Ne,stopped:Pe,itemActions:Ie,btn:Le,btnPrimary:je,btnSecondary:Me,streamView:Be,streamHeader:He,connectionState:Ve,streamHeaderActions:Fe,keyboardState:Ue,profileState:We,profileTimeline:Ge,profileTimelineItem:Xe,latest:qe,profileTimelineTime:Qe,profileTimelineDetail:Je,streamContainer:ze,loading:Ze,empty:et,error:tt,connecting:nt,downloadPrompt:rt},W=["emulator","android","chromeos","ios-simulator"];function G(e){return e.label||e.avd||e.id}function ot(e){switch(e){case"emulator":return"Android Emulators";case"android":return"Android Devices";case"chromeos":return"ChromeOS Devices";case"ios-simulator":return"iOS Simulators";default:return"Devices"}}function I(e,t){var a;return(a=e.actions)!=null&&a.length?e.actions.includes(t):t==="stream"?e.state!=="stopped":t==="start"?e.type==="emulator"&&e.state==="stopped":t==="stop"?e.type==="emulator"&&e.state!=="stopped":!1}function N(){return navigator.keyboard}function st({device:e,onConnect:t,onStart:a,onStop:i}){const b=I(e,"stream"),_=I(e,"start"),E=I(e,"stop");return o.jsxs("div",{className:l.item,"data-testid":"device-row",children:[o.jsxs("div",{className:l.itemInfo,children:[o.jsx("span",{className:l.itemName,children:G(e)}),o.jsx("span",{className:`${l.itemStatus} ${e.state==="stopped"?l.stopped:l.running}`,children:e.state})]}),o.jsxs("div",{className:l.itemActions,children:[b&&o.jsx("button",{type:"button",className:`${l.btn} ${l.btnPrimary}`,onClick:()=>t(e),children:"Connect"}),E&&o.jsx("button",{type:"button",className:`${l.btn} ${l.btnSecondary}`,onClick:()=>i(e.id),children:"Stop"}),!E&&_&&o.jsx("button",{type:"button",className:`${l.btn} ${l.btnSecondary}`,onClick:()=>a(e.id),children:"Start"}),!b&&!E&&!_&&o.jsx("span",{className:l.itemStatus,children:"No actions"})]})]})}function it({devices:e,onConnect:t,onStart:a,onStop:i}){const b=d.useMemo(()=>{const _=new Map;for(const E of W)_.set(E,[]);for(const E of e){const c=_.get(E.type);c?c.push(E):_.set(E.type,[E])}return _},[e]);return o.jsx("div",{className:l.list,children:Array.from(b.entries()).map(([_,E])=>E.length===0?null:o.jsxs("section",{className:l.group,"data-testid":"device-group",children:[o.jsx("h3",{className:l.groupTitle,"data-testid":"device-group-title",children:ot(_)}),E.map(c=>o.jsx(st,{device:c,onConnect:t,onStart:a,onStop:i},c.id))]},_))})}function at(e){for(const t of W){const a=e.find(i=>i.type===t&&I(i,"stream"));if(a)return a}return e.find(t=>I(t,"stream"))}function ct({device:e,onBack:t}){var K;const{remoteStream:a,dataChannel:i,peerConnection:b,connectionState:_,error:E,latestProfileEvent:c,profileEventHistory:k,connect:g,disconnect:w}=Ce(),{adaptiveFps:R,maxFps:x}=oe(),C=d.useRef(null),[O,s]=d.useState(!1),[$,D]=d.useState(!1),[S,y]=d.useState(null),m=(e.type==="emulator"||e.type==="android")&&document.fullscreenEnabled&&typeof((K=N())==null?void 0:K.lock)=="function";d.useEffect(()=>(g({id:e.id,type:e.type}),()=>w()),[e.id,e.type,g,w]),d.useEffect(()=>{const u=()=>{var r,A;const n=document.fullscreenElement===C.current;s(n),n||(A=(r=N())==null?void 0:r.unlock)==null||A.call(r)};return document.addEventListener("fullscreenchange",u),()=>{var n,r;document.removeEventListener("fullscreenchange",u),(r=(n=N())==null?void 0:n.unlock)==null||r.call(n)}},[]);const T=d.useCallback(async()=>{var u,n;D(!0),y(null);try{(n=(u=N())==null?void 0:u.unlock)==null||n.call(u),document.fullscreenElement===C.current&&await document.exitFullscreen(),s(!1)}catch(r){y(`Failed to exit immersive keyboard: ${r instanceof Error?r.message:String(r)}`)}finally{D(!1)}},[]),h=d.useCallback(async()=>{var u,n,r,A;if(!(!m||!C.current)){D(!0),y(null);try{document.fullscreenElement!==C.current&&await C.current.requestFullscreen(),await((n=(u=N())==null?void 0:u.lock)==null?void 0:n.call(u)),s(!0)}catch(Y){(A=(r=N())==null?void 0:r.unlock)==null||A.call(r),s(!1),y(`Immersive keyboard failed: ${Y instanceof Error?Y.message:String(Y)}`)}finally{D(!1)}}},[m]),f=()=>{T(),w(),t()};return o.jsxs("div",{className:l.streamView,ref:C,children:[o.jsxs("div",{className:l.streamHeader,children:[o.jsx("button",{type:"button",className:`${l.btn} ${l.btnSecondary}`,onClick:f,children:"Back"}),o.jsxs("span",{className:l.connectionState,"data-testid":"device-connection-state",children:[G(e)," - ",_]}),o.jsx("div",{className:l.streamHeaderActions,children:m&&o.jsx("button",{type:"button",className:`${l.btn} ${l.btnSecondary}`,onClick:()=>{O?T():h()},disabled:$,title:"Request fullscreen and keyboard lock",children:$?"Working...":O?"Exit Immersive Keyboard":"Immersive Keyboard"})})]}),m&&o.jsxs("div",{className:l.keyboardState,children:["Keyboard mode:"," ",O?"immersive (fullscreen)":"standard"]}),S&&o.jsx("div",{className:l.error,children:S}),c&&o.jsxs("div",{className:l.profileState,children:["Profile ",c.direction,": tier ",c.tier,"/",c.totalTiers," (",c.width,"x",c.height,"@",c.fps,"fps,"," ",Math.round(c.bitrate/1e3)," kbps)"]}),k.length>0&&o.jsx("div",{className:l.profileTimeline,"data-testid":"profile-timeline",children:k.map((u,n)=>o.jsxs("div",{className:`${l.profileTimelineItem} ${n===0?l.latest:""}`,children:[o.jsx("span",{className:l.profileTimelineTime,children:new Date(u.receivedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}),o.jsxs("span",{className:l.profileTimelineDetail,children:[u.direction," tier ",u.tier,"/",u.totalTiers," (",u.width,"x",u.height,"@",u.fps,")"]})]},`${u.receivedAt}-${u.direction}-${u.tier}-${n}`))}),E&&o.jsx("div",{className:l.error,children:E}),_==="connecting"&&o.jsx("div",{className:l.connecting,children:"Connecting..."}),o.jsx("div",{className:l.streamContainer,children:o.jsx(be,{stream:a,dataChannel:i,deviceType:e.type,peerConnection:b,adaptiveFps:R,configuredFps:x})}),o.jsx(ue,{dataChannel:i,deviceType:e.type})]})}function lt({mode:e,installedVersion:t,latestVersion:a,onDownloaded:i}){const{t:b}=M(),[_,E]=d.useState(!1),[c,k]=d.useState(null),g=async()=>{E(!0),k(null);try{const w=await Z.downloadDeviceBridge();w.ok?i():k(w.error??"Download failed")}catch(w){k(w instanceof Error?w.message:String(w))}finally{E(!1)}};return o.jsxs("div",{className:l.downloadPrompt,children:[o.jsx("p",{children:e==="update"?o.jsxs(o.Fragment,{children:[b("emulatorBridgeUpdateRequired"),t&&a?` Installed: v${t}. Latest: v${a}.`:null]}):b("emulatorBridgeDownloadRequired")}),c&&o.jsx("div",{className:l.error,children:c}),o.jsx("button",{type:"button",className:`${l.btn} ${l.btnPrimary}`,onClick:g,disabled:_,children:_?e==="update"?"Updating...":"Downloading...":e==="update"?"Update Bridge":"Download Bridge"})]})}function At(){const{t:e}=M(),{openSidebar:t,isWideScreen:a}=ce(),{version:i,refetch:b}=ae(),_=(i==null?void 0:i.deviceBridgeState)==="update-available"?"update":B(i,J)&&!B(i,z)?"download":null,E=_!==null,{emulators:c,loading:k,error:g,startEmulator:w,stopEmulator:R}=re({enabled:!E}),[x,C]=d.useState(null);return d.useEffect(()=>{if(x||k||E||!new URLSearchParams(window.location.search).has("auto"))return;const s=at(c);s&&C(s)},[c,k,x,E]),x?o.jsx(U,{isWideScreen:a,children:o.jsx(ct,{device:x,onBack:()=>C(null)})}):o.jsxs(U,{isWideScreen:a,children:[o.jsx(se,{title:"Devices",onOpenSidebar:t,isWideScreen:a}),o.jsx("main",{className:"page-scroll-container",children:o.jsx("div",{className:"page-content-inner",children:_?o.jsx(lt,{mode:_,installedVersion:i==null?void 0:i.deviceBridgeVersion,latestVersion:i==null?void 0:i.latestDeviceBridgeVersion,onDownloaded:b}):o.jsxs(o.Fragment,{children:[k&&o.jsx("div",{className:l.loading,children:"Loading..."}),g&&o.jsx("div",{className:l.error,children:g}),!k&&c.length===0&&o.jsx("div",{className:l.empty,children:e("emulatorPageNoDevices")}),c.length>0&&o.jsx(it,{devices:c,onConnect:C,onStart:w,onStop:R})]})})})]})}export{lt as BridgeRuntimePrompt,At as EmulatorPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as w,r as u,j as t}from"./index-BUrcmRdN.js";import{u as Q,a as z,E as P,b as M,g as T}from"./useEmulators-Bz8194e3.js";import{a as U}from"./frontendReload-DT6MOpjg.js";import{S as c}from"./SettingsItem-B_rM9Vhi.js";import{u as _,b as W,H as A}from"./index-BBpZzMBa.js";import{S as $}from"./SettingsSection-DOwc_RwX.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./Modal-QUinFhBP.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./PageHeader-BaYMLVHI.js";import"./providerChildSessions-ClrSXOQr.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";const Y=["high","medium","low"];function q(s,l,i){return i!=null&&i.length?i.includes("start"):s==="emulator"&&l==="stopped"}function G(s,l,i){return i!=null&&i.length?i.includes("stop"):s==="emulator"&&l!=="stopped"}function be(){const{t:s}=w();_(s("emulatorSectionTitle"));const{emulators:l,loading:i,error:f,startEmulator:F,stopEmulator:k,refresh:H}=Q(),{maxFps:p,setMaxFps:h,maxWidth:g,setMaxWidth:x,quality:m,setQuality:j,adaptiveFps:b,setAdaptiveFps:N}=z(),{settings:r,isLoading:v,error:y,updateSetting:n}=U(),[E,O]=u.useState(""),[C,a]=u.useState(null),d=(r==null?void 0:r.chromeOsHosts)??[],I=u.useMemo(()=>r?{maxFps:p,maxWidth:g,quality:m,adaptiveFps:b,deviceBridgeEnabled:r.deviceBridgeEnabled??!1,chromeOsHosts:r.chromeOsHosts??[]}:null,[r,p,g,m,b]),R=u.useCallback(e=>{h(e.maxFps),x(e.maxWidth),j(e.quality),N(e.adaptiveFps),n("deviceBridgeEnabled",e.deviceBridgeEnabled),n("chromeOsHosts",e.chromeOsHosts),a(null)},[h,x,j,N,n]);W(I,R);const L=async()=>{const e=E.trim();if(!e){a(s("emulatorHostAliasRequired"));return}if(/\s/.test(e)){a(s("emulatorHostAliasNoSpaces"));return}const S=Array.from(new Set([...d,e]));try{await n("chromeOsHosts",S),O(""),a(null),await H()}catch(o){a(o instanceof Error?o.message:s("emulatorHostAliasSaveFailed"))}},B=async e=>{const S=d.filter(o=>o.toLowerCase()!==e.toLowerCase());try{await n("chromeOsHosts",S),a(null),await H()}catch(o){a(o instanceof Error?o.message:s("emulatorHostAliasRemoveFailed"))}},D=(r==null?void 0:r.deviceBridgeEnabled)??!1;return t.jsxs($,{children:[t.jsx("p",{className:"settings-description",children:s("emulatorSectionDescription")}),t.jsx("div",{className:"settings-group",children:t.jsx(c,{label:s("emulatorEnableTitle"),description:s("emulatorEnableDescription"),children:t.jsxs("label",{className:"toggle-switch",children:[t.jsx("input",{type:"checkbox",checked:D,onChange:e=>{n("deviceBridgeEnabled",e.target.checked)},disabled:v}),t.jsx("span",{className:"toggle-slider"})]})})}),D?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"settings-group",children:[t.jsx("h3",{children:s("emulatorStreamQualityTitle")}),t.jsx("p",{className:"settings-description",children:s("emulatorStreamQualityDescription")}),t.jsx(c,{label:s("emulatorFrameRateTitle"),description:s("emulatorFrameRateDescription"),children:t.jsx("div",{className:"font-size-selector",children:P.map(e=>t.jsxs("button",{type:"button",className:`font-size-option ${p===e?"active":""}`,onClick:()=>h(e),children:[e," fps"]},e))})}),t.jsx(c,{label:s("emulatorResolutionTitle"),description:s("emulatorResolutionDescription"),children:t.jsx("div",{className:"font-size-selector",children:M.map(e=>t.jsxs("button",{type:"button",className:`font-size-option ${g===e?"active":""}`,onClick:()=>x(e),children:[e,"p"]},e))})}),t.jsx(c,{label:s("emulatorQualityTitle"),description:s("emulatorQualityDescription"),valueText:T(m),children:t.jsx("div",{className:"font-size-selector",children:Y.map(e=>t.jsx("button",{type:"button",className:`font-size-option ${m===e?"active":""}`,onClick:()=>j(e),children:T(e)},e))})}),t.jsx(c,{label:s("emulatorAdaptiveFpsTitle"),description:s("emulatorAdaptiveFpsDescription"),children:t.jsxs("label",{className:"toggle-switch",children:[t.jsx("input",{type:"checkbox",checked:b,onChange:e=>N(e.target.checked)}),t.jsx("span",{className:"toggle-slider"})]})})]}),t.jsxs("div",{className:"settings-group",children:[t.jsx("h3",{children:s("emulatorChromeOsHostsTitle")}),t.jsxs("p",{className:"settings-description",children:[s("emulatorChromeOsHostsDescription"),t.jsx("code",{children:" chromeroot"}),s("emulatorChromeOsHostsDescriptionSuffix")]}),t.jsx(c,{label:s("emulatorAddHostAliasTitle"),description:s("emulatorAddHostAliasDescription"),children:t.jsxs("form",{className:"settings-item-actions",onSubmit:e=>{e.preventDefault(),L()},children:[t.jsx("input",{type:"text",name:"chromeosHost",placeholder:s("emulatorHostAliasPlaceholder"),className:"settings-select",autoComplete:"off",value:E,onChange:e=>O(e.target.value)}),t.jsx("button",{type:"submit",className:"settings-button",disabled:v,children:s("projectsAddConfirm")})]})}),t.jsxs(A,{children:[C&&t.jsx("p",{className:"settings-error",children:C}),y&&t.jsx("p",{className:"settings-error",children:y}),d.length===0?t.jsx("p",{className:"settings-muted",children:s("emulatorNoChromeOsHosts")}):d.map(e=>t.jsxs("div",{className:"settings-item",children:[t.jsxs("div",{className:"settings-item-info",children:[t.jsx("span",{className:"settings-item-label",children:e}),t.jsxs("span",{className:"settings-item-description",children:["Device ID: chromeos:",e]})]}),t.jsx("div",{className:"settings-item-action",children:t.jsx("button",{type:"button",className:"settings-button",onClick:()=>{B(e)},disabled:v,children:s("emulatorRemove")})})]},e))]})]}),t.jsx(A,{children:t.jsxs("div",{className:"settings-group",children:[t.jsx("h3",{children:s("emulatorDiscoveredDevicesTitle")}),i&&t.jsx("p",{className:"settings-muted",children:s("projectsLoading")}),f&&t.jsx("p",{className:"settings-error",children:f}),!i&&l.length===0&&t.jsx("p",{className:"settings-muted",children:s("emulatorNoDevicesFound")}),l.map(e=>t.jsxs("div",{className:"settings-item",children:[t.jsxs("div",{className:"settings-item-info",children:[t.jsx("span",{className:"settings-item-label",children:e.label||e.avd||e.id}),t.jsxs("span",{className:"settings-item-description",children:[e.type," - ",e.id," - ",e.state]})]}),t.jsx("div",{className:"settings-item-action",children:G(e.type,e.state,e.actions)?t.jsx("button",{type:"button",className:"settings-button",onClick:()=>k(e.id),children:s("emulatorStop")}):q(e.type,e.state,e.actions)?t.jsx("button",{type:"button",className:"settings-button",onClick:()=>F(e.id),children:s("emulatorStart")}):null})]},e.id))]})})]}):null]})}export{be as EmulatorSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as p,r as l,j as t}from"./index-BUrcmRdN.js";import{a as f}from"./client-sN_tbfxh.js";import{S as x}from"./SettingsItem-B_rM9Vhi.js";import{u as j,j as S,H as h}from"./index-BBpZzMBa.js";import{S as N}from"./SettingsSection-DOwc_RwX.js";import"./react-runtime-D-UPQ57m.js";import"./RelayProtocol-DjpPJk64.js";import"./PageHeader-BaYMLVHI.js";import"./providerChildSessions-ClrSXOQr.js";import"./Modal-QUinFhBP.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./newSessionPrefill-DkkSfnYR.js";import"./SessionHeader.module-Co9s-JR3.js";import"./HostIdentityContext-D5aBdejC.js";import"./frontendReload-DT6MOpjg.js";import"./NavigationLayout-BkOsag-J.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";import"./index-CA-BRFYh.js";const E="_filter_a5a08_3",w="_group_a5a08_17",b="_groupTitle_a5a08_21",T="_row_a5a08_29",B="_unset_a5a08_36",U="_head_a5a08_40",V="_name_a5a08_47",$="_secretBadge_a5a08_54",A="_value_a5a08_64",C="_valueUnset_a5a08_72",I="_description_a5a08_78",L="_note_a5a08_85",n={filter:E,group:w,groupTitle:b,row:T,unset:B,head:U,name:V,secretBadge:$,value:A,valueUnset:C,description:I,note:L};function M(e){const s=[],i=new Map;for(const a of e){let r=i.get(a.group);r||(r={group:a.group,entries:[]},i.set(a.group,r),s.push(r)),r.entries.push(a)}return s}function re(){const{t:e}=p();j(e("environmentSectionTitle"));const[s,i]=l.useState(null),[a,r]=l.useState(!1),[c,v]=l.useState(!1),m=S();l.useEffect(()=>{let o=!1;return f.getEnvSettings().then(u=>{o||i(u.entries)}).catch(()=>{o||r(!0)}),()=>{o=!0}},[]);const d=l.useMemo(()=>(s==null?void 0:s.filter(o=>m||c||o.set))??[],[s,m,c]),g=l.useMemo(()=>M(d),[d]),_=(s==null?void 0:s.filter(o=>o.set).length)??0;return t.jsxs(N,{description:e("environmentSectionDescription"),children:[t.jsxs(h,{children:[a&&t.jsx("p",{className:"settings-warning",children:e("environmentLoadError")}),!a&&s===null&&t.jsx("p",{children:e("environmentLoading")}),!a&&s&&t.jsxs("label",{className:n.filter,children:[t.jsx("span",{children:e("environmentShowLabel")}),t.jsxs("select",{className:"settings-select",value:c?"all":"set",onChange:o=>v(o.target.value==="all"),children:[t.jsx("option",{value:"set",children:e("environmentShowSet",{count:_})}),t.jsx("option",{value:"all",children:e("environmentShowAll",{count:s.length})})]})]}),!a&&s&&!c&&g.length===0&&t.jsx("p",{className:"settings-empty",children:e("environmentEmptySet")})]}),g.map(o=>t.jsxs("div",{className:`settings-group ${n.group}`,children:[t.jsx(h,{children:t.jsx("h3",{className:n.groupTitle,children:o.group})}),o.entries.map(u=>t.jsx(H,{entry:u},u.name))]},o.group))]})}function H({entry:e}){const{t:s}=p();return t.jsxs(x,{label:e.name,description:e.description,keywords:[e.group,e.note].filter(i=>!!i),layout:"custom",baseClassName:n.row,className:e.set?void 0:n.unset,children:[t.jsxs("div",{className:n.head,children:[t.jsx("code",{className:n.name,children:e.name}),e.secret&&t.jsx("span",{className:n.secretBadge,children:s("environmentSecretBadge")}),t.jsx(R,{entry:e})]}),t.jsx("p",{className:n.description,children:e.description}),e.note&&t.jsx("p",{className:n.note,children:e.note})]})}function R({entry:e}){const{t:s}=p();return e.set?e.value===""?t.jsx("span",{className:`${n.value} ${n.valueUnset}`,children:s("environmentValueEmpty")}):t.jsx("code",{className:n.value,children:e.value}):t.jsx("span",{className:`${n.value} ${n.valueUnset}`,children:s("environmentValueNotSet")})}export{re as EnvironmentSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as m,a as j,b as h,j as e,L as o}from"./index-BUrcmRdN.js";import{G as u,F as g,B as x}from"./providerChildSessions-ClrSXOQr.js";import{u as v,S as P}from"./NavigationLayout-BkOsag-J.js";import{u as b}from"./Modal-QUinFhBP.js";import"./react-runtime-D-UPQ57m.js";import"./client-sN_tbfxh.js";import"./RelayProtocol-DjpPJk64.js";import"./katex-Dv2p4YRM.js";import"./appHref-ByaEnJGJ.js";import"./remoteRoutePaths-CiDZeM2I.js";import"./newSessionPrefill-DkkSfnYR.js";import"./frontendReload-DT6MOpjg.js";import"./useSidebarWidth-ut6NNk5Y.js";import"./useFileActivity-CwkGwsQt.js";import"./YepAnywhereLogo-OH70DoR4.js";function U(){const{t:i}=m(),{openSidebar:r}=v(),t=b(),{projectId:s}=j(),[a]=h(),n=a.get("path"),c=l(a.get("line")),d=l(a.get("lineEnd")),p=N(a.get("diff")),f=a.get("view")==="range"?"range":"full";return s?n?e.jsx(u,{projectId:s,children:e.jsx("div",{className:"file-page",children:e.jsx("div",{className:"file-page-content",children:e.jsx(g,{projectId:s,filePath:n,lineNumber:c,lineEnd:d,viewMode:f,diffMode:p,standalone:!0,headerLeading:e.jsxs(e.Fragment,{children:[e.jsx(P,{label:i("actionOpenSidebar"),newSessionLabel:i("sidebarNewSession"),onActivate:r}),e.jsx(o,{to:`${t}/projects/${s}`,className:"file-viewer-action",title:i("fileBackToProject"),"aria-label":i("fileBackToProject"),children:e.jsx(x,{})})]})})})})}):e.jsx("div",{className:"file-page file-page-error",children:e.jsxs("div",{className:"file-page-error-content",children:[e.jsx("h1",{children:i("fileInvalidUrl")}),e.jsx("p",{children:i("fileMissingPath")}),e.jsx(o,{to:`${t}/projects/${s}`,className:"file-page-back-link",children:i("fileGoToProject")})]})}):e.jsx("div",{className:"file-page file-page-error",children:e.jsxs("div",{className:"file-page-error-content",children:[e.jsx("h1",{children:i("fileInvalidUrl")}),e.jsx("p",{children:i("fileMissingProjectId")}),e.jsx(o,{to:`${t}/projects`,className:"file-page-back-link",children:i("fileGoToProjects")})]})})}function N(i){return i==="worktree"||i==="cumulative"?i:void 0}function l(i){if(!i)return;const r=Number(i);if(!(!Number.isInteger(r)||r<1))return r}export{U as FilePage};
|