@p4code/cli 0.8.17 → 0.8.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-C2OtBl3_.mjs → binCli-BfqWHczJ.mjs} +718 -486
  3. package/dist/client/.vite/manifest.json +2221 -2169
  4. package/dist/client/assets/AlertDialogRoot-D5I6scXr.js +2 -0
  5. package/dist/client/assets/{AnimatedHeight-CROd_m0y.js → AnimatedHeight-Bt23tBJu.js} +2 -2
  6. package/dist/client/assets/{AuthSurfaceShell-BFqgU6Cf.js → AuthSurfaceShell-CScpeyCZ.js} +2 -2
  7. package/dist/client/assets/{CSPContext-BUFNSYww.js → CSPContext-CCVdxObl.js} +2 -2
  8. package/dist/client/assets/{ChatGptUsageButton-CAkbdzVa.js → ChatGptUsageButton-yYHsmy4T.js} +2 -2
  9. package/dist/client/assets/{ChatMarkdown-DRdUETgB.js → ChatMarkdown-B0DVA2sH.js} +13 -13
  10. package/dist/client/assets/{CheckboxIndicator-DS1cy5Y6.js → CheckboxIndicator-wz_7NgXC.js} +2 -2
  11. package/dist/client/assets/CodexSetupSection.logic-BtAckihn.js +2 -0
  12. package/dist/client/assets/{CollapsiblePanel-DzlAN8vm.js → CollapsiblePanel-lE29H_pe.js} +2 -2
  13. package/dist/client/assets/{ComboboxClear-D3w2fM_m.js → ComboboxClear-DNFG72Hd.js} +2 -2
  14. package/dist/client/assets/ComboboxGroupLabel-B_bH_C6n.js +2 -0
  15. package/dist/client/assets/CommandBlock-VGf7qjr7.js +2 -0
  16. package/dist/client/assets/{ComposerPromptEditor-jeEkR9fy.js → ComposerPromptEditor-CVko-EBm.js} +13 -13
  17. package/dist/client/assets/{CompositeRoot-r9p4LoiQ.js → CompositeRoot-BaL7J4TF.js} +2 -2
  18. package/dist/client/assets/{ConnectionStatusDot-C8T3Smus.js → ConnectionStatusDot-IvAZUpIh.js} +2 -2
  19. package/dist/client/assets/DevicePanel-fh1omTPb.js +2 -0
  20. package/dist/client/assets/DeviceSetup-wfV02sXR.js +2 -0
  21. package/dist/client/assets/{DialogTitle-Bs5Povma.js → DialogTitle-CJosg0_K.js} +2 -2
  22. package/dist/client/assets/{DiffCommentAnnotation-CX8scC3B.js → DiffCommentAnnotation-C4ODeTG1.js} +2 -2
  23. package/dist/client/assets/DiffFileTree-Cm5AwI-L.js +2 -0
  24. package/dist/client/assets/DiffPanel-DW_sAhx0.js +2 -0
  25. package/dist/client/assets/{DiffWorkerPoolProvider-Bn4H-Zao.js → DiffWorkerPoolProvider-CXn9pnyS.js} +3 -3
  26. package/dist/client/assets/EmbeddedDesign-QMT8odFI.js +19 -0
  27. package/dist/client/assets/{EmbeddedDesign-BsHZJ1Ch.css → EmbeddedDesign-nRjXWU5Y.css} +1 -1
  28. package/dist/client/assets/{EnvironmentMachineIcon-DKzRVCQ4.js → EnvironmentMachineIcon-Cs4BoaOB.js} +2 -2
  29. package/dist/client/assets/{ExpandableText-BanCMyot.js → ExpandableText-DUYIICsi.js} +2 -2
  30. package/dist/client/assets/{FieldControl-s_wzlnCP.js → FieldControl-CSR5qaN6.js} +2 -2
  31. package/dist/client/assets/{FileDiff-BTx35t8y.js → FileDiff-DfokdNMp.js} +2 -2
  32. package/dist/client/assets/FilePreviewPanel-BiO1c4ia.js +34 -0
  33. package/dist/client/assets/{FoldedSettingsSection-BW3s8OMk.js → FoldedSettingsSection-CqteSm77.js} +2 -2
  34. package/dist/client/assets/{FormContext-CUlgAi-q.js → FormContext-D3Ve_Lza.js} +2 -2
  35. package/dist/client/assets/{Icons-3I0QXv0W.js → Icons-Bfx5fXpN.js} +2 -2
  36. package/dist/client/assets/Input-DyKzFpW0.js +2 -0
  37. package/dist/client/assets/{KeybindingsSettings.logic-CSyJIpFu.js → KeybindingsSettings.logic-0P2hWpBG.js} +2 -2
  38. package/dist/client/assets/NoProjectsHero-GWvfTakA.js +2 -0
  39. package/dist/client/assets/{PanelLayoutControls-Cyag4Tur.js → PanelLayoutControls-yA-MhIU3.js} +10 -10
  40. package/dist/client/assets/{PierreEntryIcon-C5vp6j29.js → PierreEntryIcon-x_cG473l.js} +2 -2
  41. package/dist/client/assets/{PopoverHandle-CgOyoBVs.js → PopoverHandle-CY2mrZwB.js} +2 -2
  42. package/dist/client/assets/PreviewPanel-Dh9n6Ys-.js +2 -0
  43. package/dist/client/assets/ProjectDefaultsSettings-DS-3kgM0.js +2 -0
  44. package/dist/client/assets/ProjectFavicon-Bdl7Tzds.js +3 -0
  45. package/dist/client/assets/{ProjectIconPickerDialog-CK8qpgyz.js → ProjectIconPickerDialog-BaajvQh5.js} +2 -2
  46. package/dist/client/assets/{ProjectMonogram-BaA9dKQy.js → ProjectMonogram-TlvVxVmS.js} +2 -2
  47. package/dist/client/assets/{ProviderAuthTerminal-AH-Cy_pb.js → ProviderAuthTerminal-UECuLZ2G.js} +2 -2
  48. package/dist/client/assets/ProviderModelPicker-De9mZUTr.js +2 -0
  49. package/dist/client/assets/{ProviderSettingsForm-DXzJoQR9.js → ProviderSettingsForm-Ck0g4BIu.js} +2 -2
  50. package/dist/client/assets/PullRequestCodeTab-Ba54Mifj.js +6 -0
  51. package/dist/client/assets/{ReadOnlySourcePreview-CBGeBLfB.js → ReadOnlySourcePreview-CVocraam.js} +2 -2
  52. package/dist/client/assets/RenderErrorBoundary-DKs56Rs9.js +2 -0
  53. package/dist/client/assets/ScheduledTasksSettings-d4dmI9oH.js +4 -0
  54. package/dist/client/assets/{ScopedSwitch-Bk5kVayQ.js → ScopedSwitch-Z6zp5sHo.js} +2 -2
  55. package/dist/client/assets/{ScrollAreaCorner-CxSOla7S.js → ScrollAreaCorner-B-Z3OJHa.js} +2 -2
  56. package/dist/client/assets/{SecretInput-6K6o0z_j.js → SecretInput-DeAPhcuN.js} +2 -2
  57. package/dist/client/assets/{SelectScrollUpArrow-DKwyzFlM.js → SelectScrollUpArrow-DfDNBpqc.js} +2 -2
  58. package/dist/client/assets/{SettingsPanels-CzHOdmoE.js → SettingsPanels-CWgjxAiG.js} +8 -8
  59. package/dist/client/assets/{SettingsPanels.logic-B9MzQwrf.js → SettingsPanels.logic-D3iQ5aZy.js} +2 -2
  60. package/dist/client/assets/SettingsScopeNotice-BfjZTvSz.js +2 -0
  61. package/dist/client/assets/{T3ConnectAccountPages-DORAp_V3.js → T3ConnectAccountPages-CsFviIjD.js} +2 -2
  62. package/dist/client/assets/{T3ConnectSidebarSignIn-D4iDcrjK.js → T3ConnectSidebarSignIn-3MsegucL.js} +2 -2
  63. package/dist/client/assets/ThemeEditorPanel-Bj9nHohX.js +5 -0
  64. package/dist/client/assets/{ThreadTerminalDrawer-E3tgtH2-.js → ThreadTerminalDrawer-Cks3C8wv.js} +4 -4
  65. package/dist/client/assets/TooltipViewport-WRCNCy-2.js +2 -0
  66. package/dist/client/assets/{Virtualizer-YZrA28xX.js → Virtualizer-D6VpBTPc.js} +2 -2
  67. package/dist/client/assets/{WorkspaceBreadcrumb-DRyODQoe.js → WorkspaceBreadcrumb-CR_Yk7Ph.js} +2 -2
  68. package/dist/client/assets/{WorkspacePageContainer-C9d1CC0F.js → WorkspacePageContainer-D3M3Ncv4.js} +2 -2
  69. package/dist/client/assets/{WorkspacePageHeader-cjFWAiFR.js → WorkspacePageHeader-xuSJTTO0.js} +2 -2
  70. package/dist/client/assets/_chat-DkCa6MKZ.js +45 -0
  71. package/dist/client/assets/_chat.index-B5-xqP_5.js +2 -0
  72. package/dist/client/assets/_chat.new-DxPEFJcT.js +4 -0
  73. package/dist/client/assets/_chat.pull-requests-BBVWbXyN.js +2 -0
  74. package/dist/client/assets/{abnfDiagram-VCTEODGH-Bg9Y0ptm.js → abnfDiagram-VCTEODGH-CxxMo560.js} +2 -2
  75. package/dist/client/assets/{alert-C9G2MwuB.js → alert-BXnCHOJp.js} +2 -2
  76. package/dist/client/assets/architecture-7GRP2DOG-CrDVVAg3.js +1 -0
  77. package/dist/client/assets/{architectureDiagram-5GKGNRK7-DaFWEoVm.js → architectureDiagram-5GKGNRK7-DJiRjS82.js} +2 -2
  78. package/dist/client/assets/{assets-BngUvpba.js → assets-B5H7ruRK.js} +2 -2
  79. package/dist/client/assets/{blockDiagram-I7D4REHJ-BLFoCG7i.js → blockDiagram-I7D4REHJ-kDnwtgKo.js} +2 -2
  80. package/dist/client/assets/browserHistoryStore-o7hGV5zZ.js +2 -0
  81. package/dist/client/assets/{browserLinkTarget-BTsZgYV0.js → browserLinkTarget-hn6UyJXl.js} +2 -2
  82. package/dist/client/assets/{c4Diagram-7LVT6UL2-DI-I8wOH.js → c4Diagram-7LVT6UL2-D1fm-1EX.js} +2 -2
  83. package/dist/client/assets/channel-CzmVRCkd.js +2 -0
  84. package/dist/client/assets/{checkbox-BMrBwYAj.js → checkbox-tOWU_Z9Y.js} +2 -2
  85. package/dist/client/assets/{chunk-4HAMMTFA-DJYGf4Ym.js → chunk-4HAMMTFA-BLYTHhED.js} +2 -2
  86. package/dist/client/assets/{chunk-75Z2AOVW-BHc4yRCt.js → chunk-75Z2AOVW-DT7Umtgk.js} +2 -2
  87. package/dist/client/assets/{chunk-DU6HZSFF-CxeiyFio.js → chunk-DU6HZSFF-D0K-8X_H.js} +2 -2
  88. package/dist/client/assets/{chunk-F27PBJKO-CoBuXptu.js → chunk-F27PBJKO-5P4LORWK.js} +2 -2
  89. package/dist/client/assets/{chunk-GMAD6QVW-Djtqr7wA.js → chunk-GMAD6QVW-DO-mb18X.js} +2 -2
  90. package/dist/client/assets/{chunk-GVQU2GXP-B_dZvf-D.js → chunk-GVQU2GXP-CxauyvGQ.js} +2 -2
  91. package/dist/client/assets/{chunk-IMKFNOWR-CIZUn2vm.js → chunk-IMKFNOWR-QGonsH_m.js} +2 -2
  92. package/dist/client/assets/{chunk-L3NEJ4N5-DMIPUTzl.js → chunk-L3NEJ4N5-DxKhJ2tE.js} +2 -2
  93. package/dist/client/assets/{chunk-OSK3NFVY-8kOFeAYp.js → chunk-OSK3NFVY-BlR0vtv9.js} +2 -2
  94. package/dist/client/assets/{chunk-P2QGCYS3-CRs2CVdk.js → chunk-P2QGCYS3-BIit_gMZ.js} +2 -2
  95. package/dist/client/assets/{chunk-POPQ4Y6H-BF0zVulS.js → chunk-POPQ4Y6H-Ojuitc4K.js} +2 -2
  96. package/dist/client/assets/{chunk-PWAF6VOD-pAkrbks5.js → chunk-PWAF6VOD-B6Uc75KF.js} +2 -2
  97. package/dist/client/assets/{chunk-SHT3W25Y-XA9rgPJk.js → chunk-SHT3W25Y-DSzF0_aF.js} +2 -2
  98. package/dist/client/assets/{chunk-SVP7TREG-BLPEkz6O.js → chunk-SVP7TREG-BbxrRzvm.js} +2 -2
  99. package/dist/client/assets/{chunk-TICWLB2K-BDX6zFln.js → chunk-TICWLB2K-qxbKtZBK.js} +2 -2
  100. package/dist/client/assets/classDiagram-ZZMXUADV-Ce7tu2gJ.js +2 -0
  101. package/dist/client/assets/classDiagram-v2-VYDZK3BY-Ce7tu2gJ.js +2 -0
  102. package/dist/client/assets/{color-picker-CHpDpF1q.js → color-picker-C_20-4RB.js} +2 -2
  103. package/dist/client/assets/{combobox-DsEnX06q.js → combobox-NsYaIiJL.js} +2 -2
  104. package/dist/client/assets/command-DJR9ebnx.js +2 -0
  105. package/dist/client/assets/composer-logic-CkuMSzLW.js +6 -0
  106. package/dist/client/assets/composerDraftUploads-D0K1HfK_.js +2 -0
  107. package/dist/client/assets/{connect-CrLJN7lo.js → connect-BSmdC-l-.js} +2 -2
  108. package/dist/client/assets/{connect-agent-iD4mBU_q.js → connect-agent-BNeGfFIv.js} +2 -2
  109. package/dist/client/assets/{cynefin-OW5HDTMX-BPbkuuD0.js → cynefin-OW5HDTMX-BRoWQ1nZ.js} +1 -1
  110. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-Tg7_4aNX.js → cynefinDiagram-5FMLGOSQ-BPoK_fdY.js} +2 -2
  111. package/dist/client/assets/{dagre-GXQ25YYZ-BO8vBn--.js → dagre-GXQ25YYZ-B6n9u2fx.js} +2 -2
  112. package/dist/client/assets/{device-D7crohVQ.js → device-V5bbUMMx.js} +2 -2
  113. package/dist/client/assets/{diagram-S7CK7UJ4-Cw7tf93w.js → diagram-S7CK7UJ4-B4H5MfDU.js} +2 -2
  114. package/dist/client/assets/{diagram-UQ7AKVKN-CWCxivXY.js → diagram-UQ7AKVKN-BN9pt82T.js} +2 -2
  115. package/dist/client/assets/{diagram-VSXAHHWV-obA2VrFx.js → diagram-VSXAHHWV-C69gO9TK.js} +2 -2
  116. package/dist/client/assets/{diagram-VX7I27RA-BZZX0tDC.js → diagram-VX7I27RA-qliQCn2I.js} +2 -2
  117. package/dist/client/assets/{diagram-Z3DM3KII-BXgCa2au.js → diagram-Z3DM3KII-JnCXFjMD.js} +2 -2
  118. package/dist/client/assets/{dialog-DWCEeJ2c.js → dialog-C4UzQSL1.js} +2 -2
  119. package/dist/client/assets/{diffRendering-BAlsKvkZ.js → diffRendering-Cuv7q0nc.js} +2 -2
  120. package/dist/client/assets/{discovery-list-BaMSF62J.js → discovery-list-ppl7-G1K.js} +2 -2
  121. package/dist/client/assets/{dist-CtlrzKKg.js → dist-CnDtgaa3.js} +3 -3
  122. package/dist/client/assets/{draft-input-DZZB4KBb.js → draft-input-DUB7VaUv.js} +2 -2
  123. package/dist/client/assets/{duoViewer-BDT5Pw1R.js → duoViewer-Bi-KrG5F.js} +2 -2
  124. package/dist/client/assets/{dynamic-B_1SDXVm.js → dynamic-mqe80fw7.js} +3 -3
  125. package/dist/client/assets/{ebnfDiagram-PWID7BFC-C79a3o-h.js → ebnfDiagram-PWID7BFC-jdXVhqCj.js} +2 -2
  126. package/dist/client/assets/{embeddedScripts-DWtZjYSD.js → embeddedScripts-Qhl8LxE1.js} +2 -2
  127. package/dist/client/assets/{empty-CdigxFIr.js → empty-GrsNgo1m.js} +2 -2
  128. package/dist/client/assets/{entities-Cri9JXzU.js → entities-D6pHmUcl.js} +2 -2
  129. package/dist/client/assets/{erDiagram-RLTQ6QDP-C_C_xUYl.js → erDiagram-RLTQ6QDP-DdgQriY9.js} +2 -2
  130. package/dist/client/assets/eventmodeling-NTZA5JFV-C45g87dF.js +1 -0
  131. package/dist/client/assets/{fileLinks-gi8wmjAc.js → fileLinks-DKkO_IJu.js} +2 -2
  132. package/dist/client/assets/{fileTreeExpansion-By588Tlp.js → fileTreeExpansion-C1UNNqSC.js} +2 -2
  133. package/dist/client/assets/flowDiagram-HODETNUW-CxTQXeBP.js +1 -0
  134. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-vDMTogcH.js → ganttDiagram-EL5Y4UJY-DFCwukfW.js} +2 -2
  135. package/dist/client/assets/{getDiffFileInput-B20LTLvK.js → getDiffFileInput-phPjSTY8.js} +2 -2
  136. package/dist/client/assets/git-compare-DW_c6fci.js +2 -0
  137. package/dist/client/assets/{gitGraph-4MIJSDKK-CP2HybJj.js → gitGraph-4MIJSDKK-B-iBBweB.js} +1 -1
  138. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-okkWrJG2.js → gitGraphDiagram-WWUBYQGX-w7enwZUZ.js} +2 -2
  139. package/dist/client/assets/{guideRunStore-BuNfL9zT.js → guideRunStore-C-LauQUS.js} +2 -2
  140. package/dist/client/assets/{htmlRender-B0nsPoF5.js → htmlRender-DVq1i7PZ.js} +2 -2
  141. package/dist/client/assets/{index-C4eY-csp.js → index-CW8ApI1G.js} +3 -3
  142. package/dist/client/assets/{info-A6RAGUB7-RHhd5N_M.js → info-A6RAGUB7-zYd5-_tB.js} +1 -1
  143. package/dist/client/assets/{infoDiagram-27XIBGKW-YzE38gXg.js → infoDiagram-27XIBGKW-BlWLgzyt.js} +2 -2
  144. package/dist/client/assets/{input-RCV7-UKX.js → input-DpZhQSV2.js} +2 -2
  145. package/dist/client/assets/{input-group-Bcuxz_AQ.js → input-group-BjfPTIWt.js} +2 -2
  146. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-Sz6NR02e.js → ishikawaDiagram-5VMMS53U-oNq825oe.js} +2 -2
  147. package/dist/client/assets/{journeyDiagram-3NMN7TZE-BQjnHIg3.js → journeyDiagram-3NMN7TZE-BQqGB1_d.js} +2 -2
  148. package/dist/client/assets/{kanban-definition-UXKFOSKX-DZUIDXIB.js → kanban-definition-UXKFOSKX-CDCYjq7t.js} +2 -2
  149. package/dist/client/assets/{kbd-CIJ2_Q5W.js → kbd-BfsP5lvQ.js} +2 -2
  150. package/dist/client/assets/{keybindings-BpKkzV__.js → keybindings-BD3cM3Jm.js} +2 -2
  151. package/dist/client/assets/{lazyRouteComponent-BRNgDsba.js → lazyRouteComponent-DebYKx4q.js} +2 -2
  152. package/dist/client/assets/{line-D2YW2WaY.js → line-Dr_Yg9S8.js} +2 -2
  153. package/dist/client/assets/{link-D4TtDnqi.js → link-wJO6kwX4.js} +2 -2
  154. package/dist/client/assets/{linkedPrompt-1QsAG0gO.js → linkedPrompt-Dx_WF0Gk.js} +2 -2
  155. package/dist/client/assets/main-DklPMTd5.css +2 -0
  156. package/dist/client/assets/main-DqlnVz2C.js +26 -0
  157. package/dist/client/assets/{mediaReference-BUHO9ICD.js → mediaReference-DEdeypAC.js} +2 -2
  158. package/dist/client/assets/{mediaSource-CHFugA8_.js → mediaSource-DTry5UU8.js} +2 -2
  159. package/dist/client/assets/{mermaid-parser.core-Ch6yrkIv.js → mermaid-parser.core-EKu4BBvw.js} +4 -4
  160. package/dist/client/assets/{mermaid.core-CDUpMNay.js → mermaid.core-C-FRLnEk.js} +5 -5
  161. package/dist/client/assets/{mindmap-definition-YA3MSWOX-J5u85Ham.js → mindmap-definition-YA3MSWOX-Bo-8FCl-.js} +2 -2
  162. package/dist/client/assets/{number-field-Osl5PZkX.js → number-field-B0OyTTUs.js} +2 -2
  163. package/dist/client/assets/{observeResize-BeeOdDdQ.js → observeResize-CBAzjAMz.js} +2 -2
  164. package/dist/client/assets/{onboarding-BF9yT3Xi.js → onboarding-EecLmYJ0.js} +2 -2
  165. package/dist/client/assets/{openFileInPreview-C15eoyYZ.js → openFileInPreview-MgwNsNCM.js} +2 -2
  166. package/dist/client/assets/{p4ProjectFile-CAKJOMUN.js → p4ProjectFile-DZ6HGjaI.js} +2 -2
  167. package/dist/client/assets/{packet-AYTQ26CC-Cs25hnS9.js → packet-AYTQ26CC-DD_SFe63.js} +1 -1
  168. package/dist/client/assets/{pair-BA6LcmsK.js → pair-BzsQ1gz0.js} +2 -2
  169. package/dist/client/assets/{pegDiagram-XKGWAZYB-BMn57iOd.js → pegDiagram-XKGWAZYB-Bbw22YYs.js} +2 -2
  170. package/dist/client/assets/{phoneViewer-C-9G9sMe.js → phoneViewer-DZyuQ-is.js} +2 -2
  171. package/dist/client/assets/{pie-WAS4IAKB-DSKy_d1u.js → pie-WAS4IAKB-CNHjs-Ma.js} +1 -1
  172. package/dist/client/assets/{pieDiagram-E7YTZNPT-DJxOVDr9.js → pieDiagram-E7YTZNPT-_ZbKy7eA.js} +2 -2
  173. package/dist/client/assets/{pierre-icons-Cp8tJJSF.js → pierre-icons-BubjdUjD.js} +2 -2
  174. package/dist/client/assets/{popover-B70_-gBS.js → popover-BuuvISBT.js} +2 -2
  175. package/dist/client/assets/{preview-BHYM-_BL.js → preview-BlW45a9H.js} +2 -2
  176. package/dist/client/assets/{preview-Dj_ac_jZ.js → preview-CwzKOKVG.js} +2 -2
  177. package/dist/client/assets/{previewMiniPlayerStore-DX9IKNL3.js → previewMiniPlayerStore-CGiA2h59.js} +2 -2
  178. package/dist/client/assets/{primary-DHlSwiw_.js → primary-3GB-obcz.js} +2 -2
  179. package/dist/client/assets/primaryCloudLinkState-DYmepSfi.js +2 -0
  180. package/dist/client/assets/{projectFilesQueryState-DPo8i5yD.js → projectFilesQueryState-D2rMhOEA.js} +2 -2
  181. package/dist/client/assets/{projectScriptEditor-By8EdSYw.js → projectScriptEditor-BxnriUVv.js} +2 -2
  182. package/dist/client/assets/providerSkills-C_OG7yP0.js +2 -0
  183. package/dist/client/assets/{pullRequestDetail.logic-B2AL8Xka.js → pullRequestDetail.logic-BhGUhCGd.js} +2 -2
  184. package/dist/client/assets/{pullRequestIcons-B2-CZ5Ci.js → pullRequestIcons-DsTinQ4q.js} +2 -2
  185. package/dist/client/assets/{pullRequestReviewStore-CxOHaJ2U.js → pullRequestReviewStore-BKYNixhZ.js} +2 -2
  186. package/dist/client/assets/pullRequests-CQ2Zte1o.js +2 -0
  187. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DE0d6o0C.js → quadrantDiagram-AXDQQJYC-Bnl3w7OY.js} +2 -2
  188. package/dist/client/assets/{queries-DqFudp6N.js → queries-_Qf89qTX.js} +2 -2
  189. package/dist/client/assets/{query-1tRB9OB0.js → query-CRlRG7rf.js} +2 -2
  190. package/dist/client/assets/{radar-RG4KPBEZ-DveMwSB8.js → radar-RG4KPBEZ-DweWJU_g.js} +1 -1
  191. package/dist/client/assets/{radio-group-BDPDnH4m.js → radio-group-iJUHzvZC.js} +2 -2
  192. package/dist/client/assets/{railroad-74A4TZTK-7mru9krG.js → railroad-74A4TZTK-DmxX8fKE.js} +1 -1
  193. package/dist/client/assets/railroad-abnf-HS5TGJTU-CSGCBDLE.js +1 -0
  194. package/dist/client/assets/railroad-ebnf-LZEXJU2U-qkcBzemM.js +1 -0
  195. package/dist/client/assets/railroad-peg-WCYAUIDC-B-rmMXQT.js +1 -0
  196. package/dist/client/assets/{railroadDiagram-O6MQD6OU-bAzEpkUJ.js → railroadDiagram-O6MQD6OU-D94VfvdV.js} +2 -2
  197. package/dist/client/assets/{renderScheduler-DM1wgh78.js → renderScheduler-DIWSOdLy.js} +2 -2
  198. package/dist/client/assets/{requirementDiagram-BXWQKSXE-ClHxFUNg.js → requirementDiagram-BXWQKSXE-4Sss1rRH.js} +2 -2
  199. package/dist/client/assets/{rightPanelStore-DNohe5X6.js → rightPanelStore-C3FvIXSq.js} +2 -2
  200. package/dist/client/assets/{runtime-B7jXrsPs.js → runtime-CJNEsw6U.js} +3 -3
  201. package/dist/client/assets/runtime-ets76j-h.js +2 -0
  202. package/dist/client/assets/{runtimeModeConfig-D044rsFH.js → runtimeModeConfig-DNgZlBoC.js} +2 -2
  203. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BwX1Wn_u.js → sankeyDiagram-P5KCCOFB-CFV5CXMi.js} +2 -2
  204. package/dist/client/assets/{scheduledTasksSettings.logic-Bw_obRa9.js → scheduledTasksSettings.logic-CGYf8FQi.js} +2 -2
  205. package/dist/client/assets/{scroll-area-Ckz2bO0L.js → scroll-area-By1ARHPp.js} +2 -2
  206. package/dist/client/assets/{select-DWT2vKJH.js → select-DqGlaY40.js} +2 -2
  207. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-BSpw0E5m.js → sequenceDiagram-WJ2MYXX4-Cln2JnVw.js} +2 -2
  208. package/dist/client/assets/{server-B0y-CZn0.js → server-DpLkyQ0R.js} +2 -2
  209. package/dist/client/assets/{session-eKfJi_Kx.js → session-Cau_XThy.js} +2 -2
  210. package/dist/client/assets/{session-logic-BAndUZwA.js → session-logic-CRwcdrNw.js} +2 -2
  211. package/dist/client/assets/settings-B4aWX2xy.js +2 -0
  212. package/dist/client/assets/{settings.appearance-kTWXGfao.js → settings.appearance-C__igzME.js} +2 -2
  213. package/dist/client/assets/settings.archived-Bs-jKZBo.js +2 -0
  214. package/dist/client/assets/{settings.computer-use-BuDMoYe7.js → settings.computer-use-SngXUHmk.js} +2 -2
  215. package/dist/client/assets/settings.connections-Bw61DbEx.js +2 -0
  216. package/dist/client/assets/settings.data-controls-DbqXwsIJ.js +2 -0
  217. package/dist/client/assets/{settings.decisions-rppoMBkE.js → settings.decisions-Bw-dFoGZ.js} +2 -2
  218. package/dist/client/assets/settings.diagnostics-D5dG-CTq.js +2 -0
  219. package/dist/client/assets/{settings.general-D1vnEzQa.js → settings.general-DVafi8E5.js} +2 -2
  220. package/dist/client/assets/settings.integrations-C4t8diIu.js +2 -0
  221. package/dist/client/assets/{settings.keybindings-BstDnaeV.js → settings.keybindings-B1dMCy_G.js} +2 -2
  222. package/dist/client/assets/{settings.open-source-licenses-s96NzjdF.js → settings.open-source-licenses-kgRl8SYE.js} +2 -2
  223. package/dist/client/assets/settings.plugins-HtKh3bu8.js +5 -0
  224. package/dist/client/assets/settings.projects-CtKhtmR8.js +4 -0
  225. package/dist/client/assets/settings.providers-Bd0702hD.js +3 -0
  226. package/dist/client/assets/{settings.scheduled-tasks-WuxBbfP4.js → settings.scheduled-tasks-Tpcp-BCI.js} +2 -2
  227. package/dist/client/assets/settings.snap-shot-BngynTBI.js +2 -0
  228. package/dist/client/assets/settings.source-control-DmQkMruN.js +2 -0
  229. package/dist/client/assets/{settings.storage-DHtjVWHK.js → settings.storage-CUeYkScx.js} +2 -2
  230. package/dist/client/assets/settingsLayout-Du5mjDQU.js +3 -0
  231. package/dist/client/assets/sidebar-Dxq8kloB.js +2 -0
  232. package/dist/client/assets/{sidebarProjectGrouping-BpwyF0h8.js → sidebarProjectGrouping-BfZ705hQ.js} +2 -2
  233. package/dist/client/assets/{skeleton-DxoA_uLH.js → skeleton--M5AJWoC.js} +2 -2
  234. package/dist/client/assets/{sourceControl-C-R8wmTp.js → sourceControl-Cmvk57z0.js} +2 -2
  235. package/dist/client/assets/sourceControlClients-C0IkCWsN.js +2 -0
  236. package/dist/client/assets/{spinner-B1oJASgu.js → spinner-cHzhZrgb.js} +2 -2
  237. package/dist/client/assets/{standalone-page-OuNLgPqS.js → standalone-page-BaVFigS5.js} +2 -2
  238. package/dist/client/assets/{stateDiagram-D77RDMKH-DjLNu-aO.js → stateDiagram-D77RDMKH-CZ_bsdqp.js} +2 -2
  239. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-93FSJgV8.js +2 -0
  240. package/dist/client/assets/{swimlanes-42K2YHIH-BAlKsUJH.js → swimlanes-42K2YHIH-My4j-GD7.js} +2 -2
  241. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-1FS1ow3r.js +9 -0
  242. package/dist/client/assets/{terminal-links-B7jzSUaR.js → terminal-links-BSEOjQCo.js} +2 -2
  243. package/dist/client/assets/{terminalSessions-CHAAF5wF.js → terminalSessions-BpuHxk1q.js} +2 -2
  244. package/dist/client/assets/{textarea-B86ZyXzK.js → textarea-XR9lgl40.js} +2 -2
  245. package/dist/client/assets/{themePalette-BAR7Sc97.js → themePalette-CONAHv4I.js} +2 -2
  246. package/dist/client/assets/threadSort-Bd2rijEy.js +2 -0
  247. package/dist/client/assets/{timeline-definition-24CTP7MA-YXaIoqb6.js → timeline-definition-24CTP7MA-Q9JBFJBF.js} +2 -2
  248. package/dist/client/assets/toast-CwJ-bjHi.js +2 -0
  249. package/dist/client/assets/{toggle-D4IMx5jG.js → toggle-FqX4CVcC.js} +2 -2
  250. package/dist/client/assets/{toggle-group-BWnqiNcg.js → toggle-group-JCVlIQ5i.js} +2 -2
  251. package/dist/client/assets/tooltip-CtZ6PJJw.js +2 -0
  252. package/dist/client/assets/{treeView-Q6P3EWNA-BKHL242s.js → treeView-Q6P3EWNA-3qBVWI88.js} +1 -1
  253. package/dist/client/assets/{treemap-WGGIJYW6-DKZHfhNz.js → treemap-WGGIJYW6-O3_0iynh.js} +1 -1
  254. package/dist/client/assets/uiStateStore-CcTtH1Jz.js +6 -0
  255. package/dist/client/assets/usage-DWATWAhJ.js +2 -0
  256. package/dist/client/assets/{usageAccess-DLbz2bdv.js → usageAccess-Cpk_Aec9.js} +2 -2
  257. package/dist/client/assets/{usageFormat-CzWB9UsH.js → usageFormat-B23xwSbG.js} +2 -2
  258. package/dist/client/assets/{usageShortcuts-DAEm4s6Q.js → usageShortcuts-BMHWlKT1.js} +2 -2
  259. package/dist/client/assets/{use-atom-command-BEpD82FZ.js → use-atom-command-3Z4EZbCj.js} +2 -2
  260. package/dist/client/assets/{useAriaLabelledBy-D6y1qpkp.js → useAriaLabelledBy-CMSGO3cd.js} +2 -2
  261. package/dist/client/assets/{useHandleNewThread-6AAzzJsA.js → useHandleNewThread-B9RCcbnw.js} +2 -2
  262. package/dist/client/assets/{useLocation-X2uUveT9.js → useLocation-BTH6wjAt.js} +2 -2
  263. package/dist/client/assets/useNavigate-BS8hIoQr.js +2 -0
  264. package/dist/client/assets/{useNavigateBack-DoGrCk85.js → useNavigateBack-DskLvJ9n.js} +2 -2
  265. package/dist/client/assets/{useParams-Bschqkhl.js → useParams-DhNu716j.js} +2 -2
  266. package/dist/client/assets/{usePermissionStatus-DFa5P3Vr.js → usePermissionStatus-DaOsrYgE.js} +2 -2
  267. package/dist/client/assets/usePullRequestActions-3vXHUgiG.js +3 -0
  268. package/dist/client/assets/{useRegisterFieldControl-BgyE4_OV.js → useRegisterFieldControl-BX1EsUxP.js} +2 -2
  269. package/dist/client/assets/useScopedModelAvailability-BcYNdaQr.js +2 -0
  270. package/dist/client/assets/useSettings-D_OJJgNE.js +3 -0
  271. package/dist/client/assets/{useT3ConnectAuthPrompt-BgqISbBe.js → useT3ConnectAuthPrompt-BcMgBGvL.js} +2 -2
  272. package/dist/client/assets/utils-DqIvhFCT.js +37 -0
  273. package/dist/client/assets/{vcsRefInvalidation-BWvsbPLB.js → vcsRefInvalidation-Dj5BpmJA.js} +2 -2
  274. package/dist/client/assets/{vennDiagram-4TSXK5OY-BN0NlVtY.js → vennDiagram-4TSXK5OY-CGJ_vzL4.js} +2 -2
  275. package/dist/client/assets/{wardley-WFR3VGLG-DWpJUQkf.js → wardley-WFR3VGLG-dLKWDrdG.js} +1 -1
  276. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-C_2_0OtT.js → wardleyDiagram-VM6X3IG4-CZY3cfuL.js} +2 -2
  277. package/dist/client/assets/welcome-BSKechyt.js +2 -0
  278. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-gSixBfkr.js → xychartDiagram-S5SC5T6Z-H2sll7xl.js} +2 -2
  279. package/dist/client/index.html +1 -1
  280. package/dist/{renderer-B8qsc7RL.mjs → renderer-CCVomMFP.mjs} +2 -2
  281. package/dist/{runtime-CEdmfdaF.mjs → runtime-DKclsP_7.mjs} +84 -7
  282. package/package.json +1 -1
  283. package/dist/client/assets/AlertDialogRoot-C4_VBb4J.js +0 -2
  284. package/dist/client/assets/CodexSetupSection.logic-B-Gs8BS6.js +0 -2
  285. package/dist/client/assets/CommandBlock-BaaPOUD7.js +0 -2
  286. package/dist/client/assets/DevicePanel-BG2hk0i3.js +0 -2
  287. package/dist/client/assets/DeviceSetup-CKZmblju.js +0 -2
  288. package/dist/client/assets/DiffFileTree-BnizHv7v.js +0 -2
  289. package/dist/client/assets/DiffPanel-DxnHaLb1.js +0 -2
  290. package/dist/client/assets/EmbeddedDesign-BiW8ewmO.js +0 -19
  291. package/dist/client/assets/FilePreviewPanel-Cii41zwQ.js +0 -34
  292. package/dist/client/assets/Input-D-VEMFtp.js +0 -2
  293. package/dist/client/assets/NoProjectsHero-Cbnk6tn0.js +0 -2
  294. package/dist/client/assets/PreviewPanel-CZ_Qxxvo.js +0 -2
  295. package/dist/client/assets/ProjectDefaultsSettings-BIEY8BOO.js +0 -2
  296. package/dist/client/assets/ProjectFavicon-DU8VbXX4.js +0 -3
  297. package/dist/client/assets/ProviderModelPicker-wOdtIBVW.js +0 -2
  298. package/dist/client/assets/PullRequestCodeTab-CkE2ul9K.js +0 -6
  299. package/dist/client/assets/RenderErrorBoundary-CgWfZhV9.js +0 -2
  300. package/dist/client/assets/ScheduledTasksSettings-CykPbEbT.js +0 -4
  301. package/dist/client/assets/SettingsScopeNotice-ml10Xbs_.js +0 -2
  302. package/dist/client/assets/ThemeEditorPanel-BiB-1tTU.js +0 -5
  303. package/dist/client/assets/TooltipViewport-A4hJLsA1.js +0 -2
  304. package/dist/client/assets/_chat-DcFCVkrG.js +0 -45
  305. package/dist/client/assets/_chat.index-D1edR5Y7.js +0 -2
  306. package/dist/client/assets/_chat.new-CNtY6xfX.js +0 -4
  307. package/dist/client/assets/_chat.pull-requests-B9gYbv3C.js +0 -2
  308. package/dist/client/assets/architecture-7GRP2DOG-B_DOBvMT.js +0 -1
  309. package/dist/client/assets/browserHistoryStore-D3jg6lW0.js +0 -2
  310. package/dist/client/assets/channel-D77117oc.js +0 -2
  311. package/dist/client/assets/classDiagram-ZZMXUADV-BOfzjSR1.js +0 -2
  312. package/dist/client/assets/classDiagram-v2-VYDZK3BY-BOfzjSR1.js +0 -2
  313. package/dist/client/assets/command-7JZ4jreB.js +0 -2
  314. package/dist/client/assets/environments-CXLCfPlP.js +0 -2
  315. package/dist/client/assets/eventmodeling-NTZA5JFV-BBNrMOto.js +0 -1
  316. package/dist/client/assets/flowDiagram-HODETNUW-DE4e8-KT.js +0 -1
  317. package/dist/client/assets/git-compare-CCnx9obs.js +0 -2
  318. package/dist/client/assets/main-ChIB1-3M.css +0 -2
  319. package/dist/client/assets/main-Co3JeKTg.js +0 -30
  320. package/dist/client/assets/primaryCloudLinkState-LOtU3kc-.js +0 -2
  321. package/dist/client/assets/providerSkills-mKD6o1i5.js +0 -2
  322. package/dist/client/assets/pullRequests-DDmSd4bP.js +0 -2
  323. package/dist/client/assets/railroad-abnf-HS5TGJTU-Ch23A2t1.js +0 -1
  324. package/dist/client/assets/railroad-ebnf-LZEXJU2U-D0diYlkX.js +0 -1
  325. package/dist/client/assets/railroad-peg-WCYAUIDC-CnUWPGXT.js +0 -1
  326. package/dist/client/assets/runtime-B75ae48c.js +0 -2
  327. package/dist/client/assets/settings-D_eUqlLu.js +0 -2
  328. package/dist/client/assets/settings.archived-By7wX_fc.js +0 -2
  329. package/dist/client/assets/settings.connections-DwruajVk.js +0 -2
  330. package/dist/client/assets/settings.data-controls-Ew7ogbgL.js +0 -2
  331. package/dist/client/assets/settings.diagnostics-BcNTndhm.js +0 -2
  332. package/dist/client/assets/settings.integrations-DKEJMS6o.js +0 -2
  333. package/dist/client/assets/settings.plugins--hNL0lcF.js +0 -5
  334. package/dist/client/assets/settings.projects-BQBJ0eQ0.js +0 -4
  335. package/dist/client/assets/settings.providers-C-R4_ra0.js +0 -3
  336. package/dist/client/assets/settings.snap-shot-D-GpjQxg.js +0 -2
  337. package/dist/client/assets/settings.source-control-D_Ipwyto.js +0 -2
  338. package/dist/client/assets/settingsLayout-B_Bq9Cq9.js +0 -3
  339. package/dist/client/assets/sidebar-m0COIl9s.js +0 -2
  340. package/dist/client/assets/sortable.esm-DAcHa5SQ.js +0 -6
  341. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Cx2Qu8wY.js +0 -2
  342. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-euVkUgFA.js +0 -9
  343. package/dist/client/assets/threadSort-Dnq059Z5.js +0 -2
  344. package/dist/client/assets/toast-e2DHftFl.js +0 -2
  345. package/dist/client/assets/tooltip-DRGG_vM1.js +0 -2
  346. package/dist/client/assets/usage-DZw1xQLa.js +0 -2
  347. package/dist/client/assets/useNavigate-B7cVsvjL.js +0 -2
  348. package/dist/client/assets/usePullRequestActions-FCnq9KIj.js +0 -3
  349. package/dist/client/assets/useScopedModelAvailability-B8VSCR9i.js +0 -2
  350. package/dist/client/assets/useSettings-CUN8qNLl.js +0 -3
  351. package/dist/client/assets/utils-BgVDKR83.js +0 -37
  352. package/dist/client/assets/welcome-CT583VDG.js +0 -2
@@ -11234,6 +11234,16 @@ const ThreadPullRequestLink = Struct({
11234
11234
  watch: optional(ThreadPullRequestWatch)
11235
11235
  });
11236
11236
  //#endregion
11237
+ //#region ../../packages/contracts/src/threadDesign.ts
11238
+ /** Agent links come from design_apply in the thread; manual links come from the user. */
11239
+ const ThreadDesignLinkSource = Literals(["agent", "manual"]);
11240
+ /** A `.p4design` document, relative to the thread's workspace, that belongs to the thread. */
11241
+ const ThreadDesignLink = Struct({
11242
+ path: TrimmedNonEmptyString,
11243
+ source: ThreadDesignLinkSource,
11244
+ linkedAt: IsoDateTime
11245
+ });
11246
+ //#endregion
11237
11247
  //#region ../../packages/contracts/src/providerPolicy.ts
11238
11248
  const ProviderApprovalPolicy = Literals([
11239
11249
  "untrusted",
@@ -12940,6 +12950,8 @@ const OrchestrationV2AppThread = Struct({
12940
12950
  pre-linking servers still decode. */
12941
12951
  linkedPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
12942
12952
  pullRequests: optional(ArraySchema(ThreadPullRequestLink)),
12953
+ /** Design documents the thread created or the user attached. */
12954
+ designs: optional(ArraySchema(ThreadDesignLink)),
12943
12955
  /** Pull request discovered from the thread's current branch. */
12944
12956
  branchPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
12945
12957
  activeProviderThreadId: NullOr(ProviderThreadId),
@@ -14377,6 +14389,8 @@ const OrchestrationV2ThreadShell = Struct({
14377
14389
  /** Pull request the user linked to this thread (#8160). */
14378
14390
  linkedPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
14379
14391
  pullRequests: optional(ArraySchema(ThreadPullRequestLink)),
14392
+ /** Design documents the thread created or the user attached. */
14393
+ designs: optional(ArraySchema(ThreadDesignLink)),
14380
14394
  /** Pull request discovered from the thread's current branch. */
14381
14395
  branchPullRequest: optional(NullOr(ThreadLinkedPullRequest)),
14382
14396
  lineage: OrchestrationV2AppThreadLineage,
@@ -15174,6 +15188,19 @@ const OrchestrationV2Command = Union([
15174
15188
  threadId: ThreadId,
15175
15189
  ...ThreadPullRequestKey.fields
15176
15190
  }),
15191
+ Struct({
15192
+ type: Literal("thread.design.link"),
15193
+ commandId: CommandId,
15194
+ threadId: ThreadId,
15195
+ path: TrimmedNonEmptyString,
15196
+ source: ThreadDesignLinkSource
15197
+ }),
15198
+ Struct({
15199
+ type: Literal("thread.design.unlink"),
15200
+ commandId: CommandId,
15201
+ threadId: ThreadId,
15202
+ path: TrimmedNonEmptyString
15203
+ }),
15177
15204
  Struct({
15178
15205
  type: Literal("thread.pull-request-link.sync"),
15179
15206
  commandId: CommandId,
@@ -18991,18 +19018,30 @@ const McpProviderSignInStatus = Literals([
18991
19018
  "unavailable",
18992
19019
  "unknown"
18993
19020
  ]);
19021
+ const McpProviderSignInStartResult = Struct({
19022
+ flowId: NonEmptyString,
19023
+ authorizationUrl: String$1
19024
+ });
18994
19025
  const McpProviderSignInEntry = Struct({
18995
19026
  instanceId: ProviderInstanceId,
18996
19027
  driver: ProviderDriverKind,
18997
19028
  displayName: optionalKey(String$1),
18998
- status: McpProviderSignInStatus
19029
+ status: McpProviderSignInStatus,
19030
+ pending: optionalKey(McpProviderSignInStartResult)
18999
19031
  });
19000
19032
  const McpProviderSignInStateResult = Struct({ providers: ArraySchema(McpProviderSignInEntry) });
19001
19033
  const McpProviderSignInTarget = Struct({
19002
19034
  serverId: McpServerId,
19003
19035
  instanceId: ProviderInstanceId
19004
19036
  });
19005
- const McpProviderSignInStartResult = Struct({ authorizationUrl: String$1 });
19037
+ const McpProviderSignInFlow = Struct({
19038
+ ...McpProviderSignInTarget.fields,
19039
+ flowId: NonEmptyString.check(isMaxLength(128))
19040
+ });
19041
+ const McpProviderSignInCompleteInput = Struct({
19042
+ ...McpProviderSignInFlow.fields,
19043
+ callbackUrl: NonEmptyString.check(isMaxLength(16384))
19044
+ });
19006
19045
  /**
19007
19046
  * A server found in a provider's own config. Only a display summary leaves the
19008
19047
  * server: no environment values, headers, or arguments, which may hold
@@ -27200,7 +27239,28 @@ const DesignAssetRequest = Struct({
27200
27239
  sourceDocumentId: optional(DesignId),
27201
27240
  expectedContentHash: optional(DesignHash)
27202
27241
  });
27203
- const DesignCatalogResult = Struct({ paths: ArraySchema(String$1) });
27242
+ /** `secondary` marks copies in nested worktrees, fixtures, and dot folders, which pickers fold away. */
27243
+ const DesignCatalogEntry = Struct({
27244
+ path: String$1,
27245
+ modifiedAt: optional(String$1),
27246
+ /** Top-level frames; absent for copies and documents too large to read for a picker. */
27247
+ pageCount: optional(Int),
27248
+ secondary: Boolean,
27249
+ /** Linked to the thread the listing was made for. */
27250
+ linked: optional(Boolean)
27251
+ });
27252
+ /** `design_list`: documents an agent can work on, its own thread's first. */
27253
+ const DesignListRequest = Struct({ includeCopies: optional(Boolean.annotate({ description: "Also list copies in nested worktrees, fixtures, and dot folders. Omit for the project's own designs." })) });
27254
+ const DesignListReceipt = Struct({
27255
+ documents: ArraySchema(DesignCatalogEntry),
27256
+ /** Documents left out by the result limit. */
27257
+ omitted: Int
27258
+ });
27259
+ /** `entries` is absent on hosts that only list paths. */
27260
+ const DesignCatalogResult = Struct({
27261
+ paths: ArraySchema(String$1),
27262
+ entries: optional(ArraySchema(DesignCatalogEntry))
27263
+ });
27204
27264
  const DesignTransferRequest = Union([Struct({
27205
27265
  kind: Literal("import"),
27206
27266
  target: DesignTarget,
@@ -27594,6 +27654,8 @@ const WS_METHODS = {
27594
27654
  mcpRegistryOAuthSignOut: "mcpRegistry.oauthSignOut",
27595
27655
  mcpRegistryProviderSignInState: "mcpRegistry.providerSignInState",
27596
27656
  mcpRegistryProviderSignInStart: "mcpRegistry.providerSignInStart",
27657
+ mcpRegistryProviderSignInComplete: "mcpRegistry.providerSignInComplete",
27658
+ mcpRegistryProviderSignInCancel: "mcpRegistry.providerSignInCancel",
27597
27659
  mcpRegistryProviderSignInWait: "mcpRegistry.providerSignInWait",
27598
27660
  mcpRegistryProviderSignOut: "mcpRegistry.providerSignOut",
27599
27661
  mcpRegistryDiscover: "mcpRegistry.discover",
@@ -27755,8 +27817,21 @@ const WsMcpRegistryProviderSignInStartRpc = make$1(WS_METHODS.mcpRegistryProvide
27755
27817
  success: McpProviderSignInStartResult,
27756
27818
  error: McpRegistryErrors
27757
27819
  });
27820
+ const WsMcpRegistryProviderSignInCompleteRpc = make$1(WS_METHODS.mcpRegistryProviderSignInComplete, {
27821
+ payload: McpProviderSignInCompleteInput,
27822
+ success: McpProviderSignInEntry,
27823
+ error: McpRegistryErrors
27824
+ });
27825
+ const WsMcpRegistryProviderSignInCancelRpc = make$1(WS_METHODS.mcpRegistryProviderSignInCancel, {
27826
+ payload: McpProviderSignInFlow,
27827
+ success: McpProviderSignInEntry,
27828
+ error: McpRegistryErrors
27829
+ });
27758
27830
  const WsMcpRegistryProviderSignInWaitRpc = make$1(WS_METHODS.mcpRegistryProviderSignInWait, {
27759
- payload: McpProviderSignInTarget,
27831
+ payload: Struct({
27832
+ ...McpProviderSignInTarget.fields,
27833
+ flowId: optionalKey(String$1)
27834
+ }),
27760
27835
  success: McpProviderSignInEntry,
27761
27836
  error: McpRegistryErrors
27762
27837
  });
@@ -28826,7 +28901,7 @@ const WsSubscribeResourceTelemetryRpc = make$1(WS_METHODS.subscribeResourceTelem
28826
28901
  * be added without authorization.
28827
28902
  */
28828
28903
  var RpcScopeAuthorization = class extends Service()("t3/contracts/RpcScopeAuthorization", { error: EnvironmentAuthorizationError }) {};
28829
- const WsRpcGroup = make(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsMcpRegistryStateRpc, WsMcpRegistryTestRpc, WsMcpRegistryOAuthStartRpc, WsMcpRegistryOAuthSignOutRpc, WsMcpRegistryProviderSignInStateRpc, WsMcpRegistryProviderSignInStartRpc, WsMcpRegistryProviderSignInWaitRpc, WsMcpRegistryProviderSignOutRpc, WsMcpRegistryDiscoverRpc, WsMcpRegistryImportRpc, WsServerUpdateProviderRpc, WsProviderConsumeResetCreditRpc, WsProviderAuthStartRpc, WsProviderAuthCompleteRpc, WsChatGptReconnectProfileRpc, WsChatGptImportProfileRpc, WsChatGptHandoffSubscribeRpc, WsCodexAuthCallbackSubscribeRpc, WsProviderAuthRespondRpc, WsProviderAuthCancelRpc, WsProviderAuthLogoutRpc, WsProviderAuthSubscribeRpc, WsProviderInstallStartRpc, WsProviderInstallCancelRpc, WsProviderInstallSubscribeRpc, WsProviderInstallRemoveRpc, WsServerUpdateServerRpc, WsServerUpdateServerWithProgressRpc, WsServerCommitDesktopUpdateRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerRunStorageCleanupRpc, WsServerGetStorageCleanupReportRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerDiscoverSourceControlRpc, WsServerSearchAcpRegistryRpc, WsServerPrepareAcpRegistryAgentRpc, WsServerUninstallAcpRegistryManagedBinaryRpc, WsServerAcceptAcpRegistryUrlAuthRpc, WsServerListAcpRegistrySessionsRpc, WsServerImportAcpRegistrySessionRpc, WsServerDeleteAcpRegistrySessionRpc, WsServerListAcpRegistryProvidersRpc, WsServerSetAcpRegistryProviderRpc, WsServerDisableAcpRegistryProviderRpc, WsServerLogoutAcpRegistryRpc, WsServerGetTraceDiagnosticsRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetHostResourcesRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetResourceTelemetryHistoryRpc, WsServerRetryResourceTelemetryRpc, WsServerCheckOtlpEndpointRpc, WsUserInputRankRpc, WsServerGetUsageSummaryRpc, WsServerRefreshUsageRatesRpc, WsServerSignalProcessRpc, WsScheduledTasksListRpc, WsScheduledTasksSubscribeRpc, WsScheduledTasksUpsertRpc, WsScheduledTasksSetEnabledRpc, WsScheduledTasksDeleteRpc, WsScheduledTasksRunNowRpc, WsScheduledTasksRotateWebhookTokenRpc, WsSecretsAnswerRequestRpc, WsScheduledTasksListWebhookDeliveriesRpc, WsScheduledTasksGetWebhookDeliveryRpc, WsServerReportClientActivityRpc, WsServerReportHostPowerStateRpc, WsServerGetBackgroundPolicyRpc, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsSummaryRpc, WsPullRequestsRoutingRpc, WsPullRequestsRoutingIdentityRpc, WsPullRequestsStackRpc, WsPullRequestsLinkedThreadsRpc, WsPullRequestsDetailRpc, WsPullRequestsPreviewRpc, WsPullRequestsChecksRpc, WsPullRequestsActivityRpc, WsPullRequestsReviewGuideRpc, WsPullRequestsGenerateReviewGuideRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsFilesViewedRpc, WsPullRequestsSetFilesViewedRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReportStateRpc, WsPullRequestsSubscribeRefreshesRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsPullRequestsLabelCandidatesRpc, WsPullRequestsSetLabelsRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsProjectCloneStartRpc, WsProjectCloneCancelRpc, WsProjectCloneRetryRpc, WsSubscribeProjectClonesRpc, WsProjectsListEntriesRpc, WsProjectsReadFileRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsEnsureScratchRpc, WsProjectsCreateNewRpc, WsProjectsWriteFileRpc, WsProjectsMutateRpc, WsShellOpenInEditorRpc, WsFilesystemBrowseRpc, WsFilesystemGetMetadataRpc, WsAgentSessionsScanRpc, WsAgentSessionsImportRpc, WsAssetsCreateUrlRpc, WsAssetsPersistChatAttachmentsRpc, WsAttachmentsCreateUploadUrlRpc, WsAttachmentsDeleteRpc, WsMcpAppsCallToolRpc, WsMcpAppsToolInfoRpc, WsMcpAppsReadResourceRpc, WsMcpAppsUpdateModelContextRpc, WsProviderUploadFeedbackRpc, WsSubscribeVcsStatusRpc, WsSubscribeWorktreeSetupRpc, WsSubscribeThreadDecisionsRpc, WsWorktreeSetupCancelRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsVcsListRefsRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsReviewGetDiffPreviewRpc, WsReviewGetDiffFileContentsRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalObserveRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsPreviewOpenRpc, WsPreviewNavigateRpc, WsPreviewResizeRpc, WsPreviewAdjustRpc, WsPreviewRefreshRpc, WsPreviewCloseRpc, WsPreviewListRpc, WsPreviewClearProfileRpc, WsPreviewReportProfilesRpc, WsPreviewReportStatusRpc, WsSubscribePreviewEventsRpc, WsSubscribeDiscoveredLocalServersRpc, WsDeviceConfigureRpc, WsDeviceListRpc, WsDeviceTestHostRpc, WsDeviceOpenRpc, WsDeviceCloseRpc, WsDeviceShutdownRpc, WsDeviceDetailRpc, WsDeviceActionRpc, WsSubscribeDeviceStateRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeBackgroundPolicyRpc, WsSubscribeResourceTelemetryRpc, WsOrchestrationV2DispatchCommandRpc, WsOrchestrationV2GetWorkflowScriptRpc, WsOrchestrationV2StopWorkflowRpc, WsOrchestrationV2GetTurnItemRpc, WsOrchestrationV2GetTurnDiffRpc, WsOrchestrationV2GetFullThreadDiffRpc, WsOrchestrationV2SearchThreadsRpc, WsOrchestrationV2SearchThreadRpc, WsOrchestrationV2SearchThreadStreamRpc, WsOrchestrationV2GetArchivedShellSnapshotRpc, WsOrchestrationV2GetThreadProjectionRpc, WsOrchestrationV2LaunchThreadRpc, WsOrchestrationV2SubscribeArchivedShellRpc, WsOrchestrationV2SubscribeShellRpc, WsOrchestrationV2SubscribeThreadRpc).merge(DesignRpcGroup).middleware(RpcScopeAuthorization);
28904
+ const WsRpcGroup = make(WsServerProbeRpc, WsServerGetConfigRpc, WsServerRefreshProvidersRpc, WsMcpRegistryStateRpc, WsMcpRegistryTestRpc, WsMcpRegistryOAuthStartRpc, WsMcpRegistryOAuthSignOutRpc, WsMcpRegistryProviderSignInStateRpc, WsMcpRegistryProviderSignInStartRpc, WsMcpRegistryProviderSignInWaitRpc, WsMcpRegistryProviderSignInCompleteRpc, WsMcpRegistryProviderSignInCancelRpc, WsMcpRegistryProviderSignOutRpc, WsMcpRegistryDiscoverRpc, WsMcpRegistryImportRpc, WsServerUpdateProviderRpc, WsProviderConsumeResetCreditRpc, WsProviderAuthStartRpc, WsProviderAuthCompleteRpc, WsChatGptReconnectProfileRpc, WsChatGptImportProfileRpc, WsChatGptHandoffSubscribeRpc, WsCodexAuthCallbackSubscribeRpc, WsProviderAuthRespondRpc, WsProviderAuthCancelRpc, WsProviderAuthLogoutRpc, WsProviderAuthSubscribeRpc, WsProviderInstallStartRpc, WsProviderInstallCancelRpc, WsProviderInstallSubscribeRpc, WsProviderInstallRemoveRpc, WsServerUpdateServerRpc, WsServerUpdateServerWithProgressRpc, WsServerCommitDesktopUpdateRpc, WsServerUpsertKeybindingRpc, WsServerRemoveKeybindingRpc, WsServerRunStorageCleanupRpc, WsServerGetStorageCleanupReportRpc, WsServerGetSettingsRpc, WsServerUpdateSettingsRpc, WsServerDiscoverSourceControlRpc, WsServerSearchAcpRegistryRpc, WsServerPrepareAcpRegistryAgentRpc, WsServerUninstallAcpRegistryManagedBinaryRpc, WsServerAcceptAcpRegistryUrlAuthRpc, WsServerListAcpRegistrySessionsRpc, WsServerImportAcpRegistrySessionRpc, WsServerDeleteAcpRegistrySessionRpc, WsServerListAcpRegistryProvidersRpc, WsServerSetAcpRegistryProviderRpc, WsServerDisableAcpRegistryProviderRpc, WsServerLogoutAcpRegistryRpc, WsServerGetTraceDiagnosticsRpc, WsServerGetProcessDiagnosticsRpc, WsServerGetHostResourcesRpc, WsServerGetProcessResourceHistoryRpc, WsServerGetResourceTelemetryHistoryRpc, WsServerRetryResourceTelemetryRpc, WsServerCheckOtlpEndpointRpc, WsUserInputRankRpc, WsServerGetUsageSummaryRpc, WsServerRefreshUsageRatesRpc, WsServerSignalProcessRpc, WsScheduledTasksListRpc, WsScheduledTasksSubscribeRpc, WsScheduledTasksUpsertRpc, WsScheduledTasksSetEnabledRpc, WsScheduledTasksDeleteRpc, WsScheduledTasksRunNowRpc, WsScheduledTasksRotateWebhookTokenRpc, WsSecretsAnswerRequestRpc, WsScheduledTasksListWebhookDeliveriesRpc, WsScheduledTasksGetWebhookDeliveryRpc, WsServerReportClientActivityRpc, WsServerReportHostPowerStateRpc, WsServerGetBackgroundPolicyRpc, WsCloudGetRelayClientStatusRpc, WsCloudInstallRelayClientRpc, WsPullRequestsListRpc, WsPullRequestsListStatsRpc, WsPullRequestsSummaryRpc, WsPullRequestsRoutingRpc, WsPullRequestsRoutingIdentityRpc, WsPullRequestsStackRpc, WsPullRequestsLinkedThreadsRpc, WsPullRequestsDetailRpc, WsPullRequestsPreviewRpc, WsPullRequestsChecksRpc, WsPullRequestsActivityRpc, WsPullRequestsReviewGuideRpc, WsPullRequestsGenerateReviewGuideRpc, WsPullRequestsThreadCommentsRpc, WsPullRequestsDiffFileContentsRpc, WsPullRequestsFilesViewedRpc, WsPullRequestsSetFilesViewedRpc, WsPullRequestsRunActionRpc, WsPullRequestsUpdateRpc, WsPullRequestsCommentRpc, WsPullRequestsUpdateCommentRpc, WsPullRequestsSubmitReviewRpc, WsPullRequestsReplyToThreadRpc, WsPullRequestsSetThreadResolutionRpc, WsPullRequestsSetReactionRpc, WsPullRequestsInvalidateRpc, WsPullRequestsReportStateRpc, WsPullRequestsSubscribeRefreshesRpc, WsPullRequestsReviewerCandidatesRpc, WsPullRequestsRequestReviewersRpc, WsPullRequestsLabelCandidatesRpc, WsPullRequestsSetLabelsRpc, WsSourceControlLookupRepositoryRpc, WsSourceControlCloneRepositoryRpc, WsSourceControlPublishRepositoryRpc, WsProjectCloneStartRpc, WsProjectCloneCancelRpc, WsProjectCloneRetryRpc, WsSubscribeProjectClonesRpc, WsProjectsListEntriesRpc, WsProjectsReadFileRpc, WsProjectsSearchContentsRpc, WsProjectsSearchEntriesRpc, WsProjectsEnsureScratchRpc, WsProjectsCreateNewRpc, WsProjectsWriteFileRpc, WsProjectsMutateRpc, WsShellOpenInEditorRpc, WsFilesystemBrowseRpc, WsFilesystemGetMetadataRpc, WsAgentSessionsScanRpc, WsAgentSessionsImportRpc, WsAssetsCreateUrlRpc, WsAssetsPersistChatAttachmentsRpc, WsAttachmentsCreateUploadUrlRpc, WsAttachmentsDeleteRpc, WsMcpAppsCallToolRpc, WsMcpAppsToolInfoRpc, WsMcpAppsReadResourceRpc, WsMcpAppsUpdateModelContextRpc, WsProviderUploadFeedbackRpc, WsSubscribeVcsStatusRpc, WsSubscribeWorktreeSetupRpc, WsSubscribeThreadDecisionsRpc, WsWorktreeSetupCancelRpc, WsVcsPullRpc, WsVcsRefreshStatusRpc, WsGitRunStackedActionRpc, WsGitResolvePullRequestRpc, WsGitPreparePullRequestThreadRpc, WsVcsListRefsRpc, WsVcsCreateWorktreeRpc, WsVcsRemoveWorktreeRpc, WsVcsCreateRefRpc, WsVcsSwitchRefRpc, WsVcsInitRpc, WsReviewGetDiffPreviewRpc, WsReviewGetDiffFileContentsRpc, WsTerminalOpenRpc, WsTerminalAttachRpc, WsTerminalObserveRpc, WsTerminalWriteRpc, WsTerminalResizeRpc, WsTerminalClearRpc, WsTerminalRestartRpc, WsTerminalCloseRpc, WsSubscribeTerminalEventsRpc, WsSubscribeTerminalMetadataRpc, WsPreviewOpenRpc, WsPreviewNavigateRpc, WsPreviewResizeRpc, WsPreviewAdjustRpc, WsPreviewRefreshRpc, WsPreviewCloseRpc, WsPreviewListRpc, WsPreviewClearProfileRpc, WsPreviewReportProfilesRpc, WsPreviewReportStatusRpc, WsSubscribePreviewEventsRpc, WsSubscribeDiscoveredLocalServersRpc, WsDeviceConfigureRpc, WsDeviceListRpc, WsDeviceTestHostRpc, WsDeviceOpenRpc, WsDeviceCloseRpc, WsDeviceShutdownRpc, WsDeviceDetailRpc, WsDeviceActionRpc, WsSubscribeDeviceStateRpc, WsSubscribeServerConfigRpc, WsSubscribeServerLifecycleRpc, WsSubscribeAuthAccessRpc, WsSubscribeBackgroundPolicyRpc, WsSubscribeResourceTelemetryRpc, WsOrchestrationV2DispatchCommandRpc, WsOrchestrationV2GetWorkflowScriptRpc, WsOrchestrationV2StopWorkflowRpc, WsOrchestrationV2GetTurnItemRpc, WsOrchestrationV2GetTurnDiffRpc, WsOrchestrationV2GetFullThreadDiffRpc, WsOrchestrationV2SearchThreadsRpc, WsOrchestrationV2SearchThreadRpc, WsOrchestrationV2SearchThreadStreamRpc, WsOrchestrationV2GetArchivedShellSnapshotRpc, WsOrchestrationV2GetThreadProjectionRpc, WsOrchestrationV2LaunchThreadRpc, WsOrchestrationV2SubscribeArchivedShellRpc, WsOrchestrationV2SubscribeShellRpc, WsOrchestrationV2SubscribeThreadRpc).merge(DesignRpcGroup).middleware(RpcScopeAuthorization);
28830
28905
  //#endregion
28831
28906
  //#region ../../packages/contracts/src/clientRpcPermissions.ts
28832
28907
  /** Incremental client enforcement; the server still authorizes every request. */
@@ -28840,6 +28915,8 @@ const CLIENT_GUARDED_RPC_SCOPES = {
28840
28915
  [WS_METHODS.mcpRegistryOAuthSignOut]: AuthProvidersManageScope,
28841
28916
  [WS_METHODS.mcpRegistryProviderSignInState]: AuthProvidersManageScope,
28842
28917
  [WS_METHODS.mcpRegistryProviderSignInStart]: AuthProvidersManageScope,
28918
+ [WS_METHODS.mcpRegistryProviderSignInComplete]: AuthProvidersManageScope,
28919
+ [WS_METHODS.mcpRegistryProviderSignInCancel]: AuthProvidersManageScope,
28843
28920
  [WS_METHODS.mcpRegistryProviderSignInWait]: AuthProvidersManageScope,
28844
28921
  [WS_METHODS.mcpRegistryProviderSignOut]: AuthProvidersManageScope,
28845
28922
  [WS_METHODS.mcpRegistryDiscover]: AuthProvidersManageScope,
@@ -30998,6 +31075,6 @@ function semanticDiff(before, after) {
30998
31075
  return changes;
30999
31076
  }
31000
31077
  //#endregion
31001
- export { WsSubscribeThreadDecisionsRpc as $, DeviceToolOpenInput as $a, VcsProcessOutputReadError as $c, ORCHESTRATION_PROTOCOL_QUERY_PARAM as $d, AcpRegistryListProvidersResult as $f, ResponseStreamingMode as $i, toHeaders as $l, AttachmentCreateUploadUrlInput as $n, RelayManagedEndpointRuntimeConfig as $o, ProviderTurnId as $p, OrchestrationDispatchCommandError as $r, OrchestrationV2ThreadShell as $s, PreviewAutomationEvaluateInput as $t, appendUrlParams as $u, SelfImproveLabel as A, ResolvedKeybindingRule as Aa, RuntimeMode as Ac, layer$1 as Ad, authScopeRequiredResponse as Af, TerminalCwdNotFoundError as Ai, patch as Al, PreviewAutomationTypeInput as An, EnvironmentAuthenticatedPrincipal as Ao, CheckpointRef as Ap, OrchestratorMcpRequestSecretResult as Ar, OrchestrationV2ProviderGoal as As, ClientAbort as At, isHttpServerResponse as Au, ComputerUseHostResponse as B, mcpProviderSupport as Ba, PullRequestUnavailableError as Bc, urlParams$1 as Bd, getWithHeadersAnnotation as Bf, BackgroundActivityProfile as Bi, serve as Bl, AssetGitHubMediaUrlValidationError as Bn, EnvironmentOperationForbiddenError as Bo, DpopFailureReason as Bp, OrchestratorMcpThreadReadInput as Br, OrchestrationV2RunStatus as Bs, ResourceMonitorCommand as Bt, stream as Bu, clean as C, PreviewStreamHostSetup as Ca, ProjectWriteFileError as Cc, StatusCodeError as Cd, AuthSettingsWriteScope as Cf, ExternalLauncherUnknownEditorError as Ci, make$3 as Cl, PreviewAutomationSetColorSchemeResult as Cn, DesktopBrowserCommand as Co, OrchestrationMessageContext as Cp, OrchestratorMcpDelegateTaskResult as Cr, OrchestrationV2DomainEventJson as Cs, DesignValidateReceipt as Ct, symbol$1 as Cu, SelfImproveDecision as D, KeybindingsConfig as Da, ProviderApprovalDecision as Dc, TypeId$17 as Dd, AuthTerminalReadScope as Df, ProviderUploadFeedbackError as Di, getErrorSchemas as Dl, PreviewAutomationTabTargetInput as Dn, RelayClientInstallFailedError as Do, AssistantCitation as Dp, OrchestratorMcpListScheduledTasksInput as Dr, OrchestrationV2GetThreadProjectionError as Ds, exitSchema as Dt, empty as Du, toBytes as E, KeybindingRule as Ea, DEFAULT_RUNTIME_MODE as Ec, CurrentErrorReporters as Ed, AuthTerminalOperateScope as Ef, ProviderSetupError as Ei, get as El, PreviewAutomationTabNotFoundError as En, DesktopBackendBootstrap as Eo, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Ep, OrchestratorMcpFailure as Er, OrchestrationV2GetShellSnapshotError as Es, ServerClient as Et, make$12 as Eu, COMPUTER_USE_MAX_OUTPUT_CHARS as F, McpServerName as Fa, PullRequestLinkedThreadsResult as Fc, jsonUnsafe$1 as Fd, getPayloadEncoding as Ff, TerminalProviderInstanceNotFoundError as Fi, RouteContext as Fl, SERVER_BROWSER_AUTOMATION_CLIENT_ID as Fn, EnvironmentHttpConflictError as Fo, ClientSurface as Fp, OrchestratorMcpTaskStatusInput as Fr, OrchestrationV2ProviderThreadJson as Fs, WorktreeMcpHandoffResult as Ft, removeHeader as Fu, clientRpcRequiredScopes as G, DeviceHostUnavailableError as Ga, SourceControlCloneRepositoryResult as Gc, BadArgument as Gd, isWithHeadersValue as Gf, DATABASE_COMPACTION_RECOMMENDED_BYTES as Gi, compression as Gl, AssetSigningKeyLoadError as Gn, RelayCloudEnvironmentHealthProofPayload as Go, NodeId as Gp, OrchestratorMcpThreadWaitResult as Gr, OrchestrationV2StopWorkflowError as Gs, PREVIEW_RECORDING_STOP_TIMEOUT_MS as Gt, filterStatusOk as Gu, ComputerUseOutput as H, supportsProviderMcpSignIn as Ha, pullRequestProviderRequirement as Hc, FileTypeId as Hd, isStreamSchema$1 as Hf, ClaudeSettings as Hi, HttpServer as Hl, AssetProjectFaviconInspectionError as Hn, EnvironmentResourceNotFoundError as Ho, EventId as Hp, OrchestratorMcpThreadSendInput as Hr, OrchestrationV2RuntimeRequestJson as Hs, McpCapabilityUnavailableError as Ht, uint8Array as Hu, ComputerUseError as I, McpServerRuntimeState as Ia, PullRequestOperationError as Ic, raw$1 as Id, getResponseEncoding as If, TerminalResizeError as Ii, add$1 as Il, McpAppRequestError as In, EnvironmentHttpForbiddenError as Io, ClientWebDeployment as Ip, OrchestratorMcpThreadInterruptInput as Ir, OrchestrationV2ProviderTurn as Is, WorktreeMcpStatusResult as It, setBody as Iu, WsMcpRegistryProviderSignInStartRpc as J, DevicePlatformAvailability as Ja, SourceControlRepositoryError as Jc, isPlatformError as Jd, hasBody as Jf, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as Ji, addHeaderAttributes as Jl, AssetWorkspaceContextNotFoundError as Jn, RelayEnvironmentLinkResponse as Jo, PortSchema as Jp, ScheduledTask as Jr, OrchestrationV2Subagent as Js, PreviewAutomationControlInterruptedError as Jt, MaxBodySize as Ju, RpcScopeAuthorization as K, DeviceNotFoundError as Ka, SourceControlProviderError as Kc, PlatformError as Kd, withHeaders as Kf, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Ki, isTracerDisabledUnsafe as Kl, AssetWorkspaceAssetInspectionError as Kn, RelayCloudMintCredentialProofPayload as Ko, NonNegativeInt as Kp, OrchestratorMcpUpdateScheduledTaskInput as Kr, OrchestrationV2StopWorkflowInput as Ks, PreviewAutomationClickInput as Kt, fromWeb as Ku, ComputerUseHost as L, McpServerTransport as La, PullRequestStack as Lc, stream$1 as Ld, getResponseEncodingSchema as Lf, TerminalSessionLookupError as Li, cors as Ll, ATTACHMENT_UPLOAD_URL_TTL_MS as Ln, EnvironmentHttpInternalServerError as Lo, CommandId as Lp, OrchestratorMcpThreadInterruptResult as Lr, OrchestrationV2ProviderTurnJson as Ls, UsageReadError as Lt, setHeader as Lu, SelfImproveResult as M, THREAD_JUMP_KEYBINDING_COMMANDS as Ma, ThreadPullRequestKey as Mc, layer$2 as Md, NoContent as Mf, TerminalHistoryError as Mi, put as Ml, PreviewAutomationUnsupportedClientError as Mn, EnvironmentHttpApi as Mo, ClientConnectionMethod as Mp, OrchestratorMcpScheduleTaskResult as Mr, OrchestrationV2ProviderSession as Ms, isStreamSchema as Mt, mergeCookies as Mu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as N, McpRegistryRpcError as Na, ThreadPullRequestLink as Nc, layerWeak as Nd, StreamSse as Nf, TerminalNotRunningError as Ni, normalize as Nl, PreviewAutomationUploadInput as Nn, EnvironmentHttpBadRequestError as No, ClientDeviceType as Np, OrchestratorMcpTaskCancelInput as Nr, OrchestrationV2ProviderSessionJson as Ns, WorktreeMcpFailure as Nt, raw as Nu, SelfImproveError as O, KeybindingsConfigError as Oa, ProviderInteractionMode as Oc, ignore as Od, EnvironmentAuthorizationError as Of, DEFAULT_TERMINAL_ID as Oi, getPayloadSchemas as Ol, PreviewAutomationTargetNotEditableError as On, EnvironmentAuthInvalidError as Oo, AuthSessionId as Op, OrchestratorMcpListScheduledTasksResult as Or, OrchestrationV2PlanArtifact as Os, isWrapper as Ot, file as Ou, COMPUTER_USE_JEV_TAKE_CODE as P, McpServerId as Pa, ThreadPullRequestLinkSource as Pc, isHttpBody as Pd, asUint8Array as Pf, TerminalProviderEnvironmentError as Pi, HttpRouter as Pl, PreviewAutomationWaitForInput as Pn, EnvironmentHttpCommonError as Po, ClientOs as Pp, OrchestratorMcpTaskCancelResult as Pr, OrchestrationV2ProviderThread as Ps, WorktreeMcpHandoffInput as Pt, redirect as Pu, WsRpcGroup as Q, DeviceToolListResult as Qa, VcsProcessOutputLimitError as Qc, ORCHESTRATION_PROTOCOL_HEADER as Qd, encoder$1 as Qf, ProjectSettingsOverrides as Qi, fromHeaders as Ql, AssetWorkspaceRootNormalizationError as Qn, RelayManagedEndpointRecoveryResponse as Qo, ProviderThreadId as Qp, ApplicationProjectEvent as Qr, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as Qs, PreviewAutomationError as Qt, acceptJson as Qu, ComputerUseHostRegistration as R, PluginId as Ra, PullRequestState as Rc, text$1 as Rd, getStatusErrorSchema as Rf, TerminalWriteError as Ri, middleware as Rl, AssetAttachmentNotFoundError as Rn, EnvironmentHttpUnauthorizedError as Ro, ContextHandoffId as Rp, OrchestratorMcpThreadListInput as Rr, OrchestrationV2RunAttemptJson as Rs, DesktopHostTelemetryMessage as Rt, setHeaders as Ru, anumber as S, PreviewSessionLookupError as Sa, ProjectUpdatePayload as Sc, InvalidUrlError as Sd, AuthRelayWriteScope as Sf, ExternalLauncherEditorSpawnError as Si, getSlotParseOptions as Sl, PreviewAutomationSetColorSchemeInput as Sn, DesktopAppActivationResponse as So, ComposerContextRecord as Sp, OrchestratorMcpDelegateTaskInput as Sr, OrchestrationV2DomainEvent as Ss, DesignStylesRequest as St, causeResponse as Su, randomBytes as T, PreviewViewportSetting as Ta, DEFAULT_PROVIDER_INTERACTION_MODE as Tc, isHttpClientError as Td, AuthStandardClientScopes as Tf, ExternalLauncherUnsupportedTargetError as Ti, del as Tl, PreviewAutomationStatus as Tn, DESKTOP_UPDATE_RESTART_MARKER_FILE as To, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as Tp, OrchestratorMcpDeleteScheduledTaskResult as Tr, OrchestrationV2ExecutionNodeJson as Ts, make as Tt, HttpPlatform as Tu, computerUseJevStepCode as U, DeviceActionUnavailableError as Ua, resolvePullRequestAuthorFilter as Uc, WatchBackend as Ud, isStreamUint8Array as Uf, CodexSettings as Ui, make$6 as Ul, AssetProjectFaviconNotFoundError as Un, EnvironmentScopeRequiredError as Uo, IsoDateTime as Up, OrchestratorMcpThreadSendResult as Ur, OrchestrationV2SearchThreadError as Us, PREVIEW_AUTOMATION_SERVER_OPERATIONS as Ut, urlParams as Uu, ComputerUseJsInput as V, resolveRegistryEntryEnabled as Va, pullRequestHostOf as Vc, FileSystem as Vd, isNoContent as Vf, BackgroundActivityProfileSelection as Vi, use as Vl, AssetPreviewTypeValidationError as Vn, EnvironmentRequestInvalidError as Vo, EnvironmentId as Vp, OrchestratorMcpThreadReadResult as Vr, OrchestrationV2RuntimeRequest as Vs, ResourceMonitorEvent as Vt, text as Vu, CLIENT_GUARDED_RPC_SCOPES as W, DeviceBootError as Wa, SourceControlCloneRepositoryInput as Wc, make$16 as Wd, isWithHeaders as Wf, CompressMode as Wi, TracerDisabledWhen as Wl, AssetProjectFaviconResolutionError as Wn, RelayApi as Wo, MessageId as Wp, OrchestratorMcpThreadWaitInput as Wr, OrchestrationV2SearchThreadInput as Ws, PREVIEW_AUTOMATION_V1_OPERATIONS as Wt, TypeId$13 as Wu, WsMcpRegistryProviderSignInWaitRpc as X, DeviceToolCloseInput as Xa, VcsProcessExitError as Xc, make$17 as Xd, decode as Xf, GitHubHost as Xi, appendPreResponseHandlerUnsafe as Xl, AssetWorkspacePathValidationError as Xn, RelayManagedEndpointOrigin as Xo, ProjectId as Xp, ScheduledTaskWebhookDeliveryId as Xr, OrchestrationV2ThreadForkSourcePoint as Xs, PreviewAutomationDialogInput as Xt, inspect as Xu, WsMcpRegistryProviderSignInStateRpc as Y, DevicePlatformUnavailableError as Ya, VcsDriverKind as Yc, systemError as Yd, Retry as Yf, DEFAULT_SERVER_SETTINGS as Yi, addUrlAttributes as Yl, AssetWorkspaceContextResolutionError as Yn, RelayHookDeliveryProofPayload as Yo, PositiveInt as Yp, ScheduledTaskError as Yr, OrchestrationV2SubagentJson as Ys, PreviewAutomationControlReason as Yt, TypeId$14 as Yu, WsMcpRegistryProviderSignOutRpc as Z, DeviceToolError as Za, VcsProcessMissingExitCodeError as Zc, ExecutionEnvironmentDescriptor as Zd, decodeSchema as Zf, PROJECT_SCOPED_SERVER_SETTING_KEYS as Zi, requestPreResponseHandlers as Zl, AssetWorkspaceResolutionError as Zn, RelayManagedEndpointRecoveryRegistrationResponse as Zo, ProviderSessionId as Zp, ApplicationEventMetadata as Zr, OrchestrationV2ThreadLaunchError as Zs, PreviewAutomationDragInput as Zt, schemaBodyJson as Zu, sha512 as _, PREVIEW_VIEWPORT_PRESET_IDS as _a, ProjectMutationError as _c, setUrl as _d, AuthOrchestrationOperateScope as _f, isProviderTextGenerationCapable as _i, getProviderAttachmentLimitError as _l, set as _m, PreviewAutomationResizeResult as _n, DEFAULT_BROWSER_PROFILE_ID as _o, ProviderDriverKind as _p, ThreadMetadataMcpUpdateInput as _r, OrchestrationV2ContextTransferJson as _s, DesignRenderRequest as _t, ClientAbort$1 as _u, documentContentDigest as a, makeBinaryPathSetting as aa, isOrchestrationV2WorkActive as ac, bodyStream as ad, AuthAdministrativeScopes as af, GitPullRequestMaterializationError as ai, ModelSelection as al, ScheduledTaskId as am, PreviewAutomationNoAvailableHostError as an, LOCAL_DEVICE_HOST_ID as ao, resolveOfficialAcpRegistryIconUrl as ap, AgentSessionImportSource as ar, toRouterPath as as, DesignHumanApplyRequest as at, schemaSearchParams as au, aexists as b, PreviewInvalidUrlError as ba, ProjectSearchContentsError as bc, HttpClientError as bd, AuthProvidersManageScope as bf, ExternalLauncherBrowserSpawnError as bi, isSecurity as bl, PreviewAutomationSelectInput as bn, resolveBrowserProfiles as bo, defaultInstanceIdForDriver as bp, OrchestratorMcpCreateThreadsInput as br, OrchestrationV2DispatchCommandError as bs, DesignStatusRequest as bt, ResponseError as bu, parseDesign as c, requiredScopesForProjectMutation as ca, orchestrationV2RunWorkStartedAt as cc, del$1 as cd, AuthEnvironmentMaintainScope as cf, VcsListRefsResult as ci, OrchestrationGetTurnDiffResult as cl, TrimmedNonEmptyString as cm, PreviewAutomationRecordingArtifact as cn, value as co, DEFAULT_MODEL as cp, FilesystemBrowseError as cr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as cs, DesignSubscribeRequest as ct, TypeId$9 as cu, reviewState as d, resolveProviderInstanceEnabled as da, UsageLimitSourceError as dc, post$1 as dd, AuthFilesystemWriteScope as df, ServerProvider as di, ChatFileAttachment as dl, CurrentRedactedNames as dm, PreviewAutomationRecordingStatus as dn, DecisionInput as do, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as dp, P4_PROJECT_FILE_NAME as dr, OrchestrationV2AppThread as ds, DesignGuideReceipt as dt, makeConfig as du, ServerSettings as ea, OrchestrationV2TurnItem as ec, basicAuth as ed, ThreadEnvMode as ef, PullRequestReviewGuide as ei, VcsProcessSpawnError as el, RawEventId as em, PreviewAutomationExecutionError as en, DeviceToolOpenResult as eo, AcpRegistryListSessionsResult as ep, AttachmentCreateUploadUrlResult as er, RelayOkResponse as es, SecretRequestError as et, HttpServerRequest as eu, selectLayoutItems as f, secretSetting as fa, OrchestrationProjectShell as fc, prependUrl as fd, AuthGrantScope as ff, ServerProviderCompatibilityStatus as fi, ChatImageAttachment as fl, empty$3 as fm, PreviewAutomationRecordingTooLargeError as fn, DecisionResult as fo, MODEL_SLUG_ALIASES_BY_PROVIDER as fp, PROJECT_FILE_BACKED_SETTINGS as fr, OrchestrationV2AppThreadJson as fs, DesignGuideRequest as ft, toPersisted as fu, sha384 as g, PREVIEW_URL_MAX_LENGTH as ga, ProjectMutation as gc, setHeaders$1 as gd, AuthMcpTokenError as gf, isProviderAvailable as gi, PersistChatAttachmentsError as gl, remove as gm, PreviewAutomationResizeInput as gn, BUILT_IN_BROWSER_PROFILES as go, PROVIDER_DISPLAY_NAMES as gp, OrchestrationThreadSearchSource as gr, OrchestrationV2ContextTransfer as gs, DesignRenderReceipt as gt, TypeId$10 as gu, sha256$1 as h, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as ha, ProjectListEntriesError as hc, setHeader$1 as hd, AuthMcpRegistrationError as hf, environmentThemeFileHasColors as hi, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as hl, merge as hm, PreviewAutomationRequestQueueClosedError as hn, resolveDecisionBackend as ho, PREFERRED_DEFAULT_CODEX_MODELS as hp, OrchestrationSearchThreadsResult as hr, OrchestrationV2ContextHandoffJson as hs, DesignLibraryManifest as ht, Path as hu, diagnostic as i, isUnconfiguredDefaultInstanceEnabled as ia, isKnownOrchestrationV2EventType as ic, bodyJsonUnsafe as id, AuthAccessWriteScope as if, GitManagerError as ii, VcsUnsupportedOperationError as il, RuntimeRequestId as im, PreviewAutomationNavigateInput as in, DeviceToolVersions as io, officialAcpRegistryIconUrlForAgentId as ip, AgentSessionImportProjectNotFoundError as ir, getParamNames as is, UserInputRankError as it, schemaHeaders as iu, SelfImproveRequest as j, SCRIPT_RUN_COMMAND_PATTERN as ja, ThreadLinkedPullRequest as jc, report as jd, authScopeResponse as jf, TerminalCwdStatError as ji, post as jl, PreviewAutomationUnavailableError as jn, EnvironmentCloudEndpointUnavailableError as jo, CheckpointScopeId as jp, OrchestratorMcpScheduleTaskInput as jr, OrchestrationV2ProviderRetry as js, getStreamSchemas as jt, jsonUnsafe as ju, SelfImproveEvidence as k, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as ka, ProviderUserInputAnswers as kc, isIgnored as kd, ServerAuthSessionMethod as kf, TerminalCwdNotDirectoryError as ki, getSuccessSchemas as kl, PreviewAutomationTimeoutError as kn, EnvironmentAuthenticatedAuth as ko, CheckpointId as kp, OrchestratorMcpRequestSecretInput as kr, OrchestrationV2ProviderFailure as ks, make$1 as kt, html as ku, patchNode as l, requiredScopesForServerSettingsPatch as la, ToolActivityIcon as lc, get$1 as ld, AuthEnvironmentScopes as lf, EnvironmentThemeFile as li, ChatAttachment as ll, TrimmedString as lm, PreviewAutomationRecordingDeadlineExpiredError as ln, DECISION_MODELS as lo, DEFAULT_MODEL_BY_PROVIDER as lp, LEGACY_PROJECT_FILE_NAME as lr, ORCHESTRATION_V2_WS_METHODS as ls, DesignApplyReceipt as lt, isPersistedFile as lu, validateDesign as m, FILL_PREVIEW_VIEWPORT as ma, ProjectCreatePayload as mc, setBody$1 as md, AuthMcpClientAccess as mf, ServerSelfUpdateError as mi, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as ml, fromRecordUnsafe as mm, PreviewAutomationRemoteUnavailableError as mn, ThreadDecisionsReadError as mo, ModelCapabilities as mp, OrchestrationSearchThreadsInput as mr, OrchestrationV2CheckpointScopeJson as ms, DesignInspectRequest as mt, make$8 as mu, canonicalSerialize as n, ServerSettingsPatch as na, OrchestrationWorkflowFileError as nc, bodyFormData as nd, AuthAccessStreamError as nf, PROJECT_CLONE_ERROR_MAX_LENGTH as ni, VcsProcessTimeoutError as nl, RunAttemptId as nm, PreviewAutomationInvalidSelectorError as nn, DeviceToolTargetInput as no, AcpRegistryOperationErrorReason as np, AttachmentUploadSigningKeyError as nr, annotations as ns, WORKTREE_SETUP_STAGE_ORDER as nt, TypeId$8 as nu, fileHash as o, makeProviderSettingsSchema as oa, isProviderNativeSubagentThread as oc, bodyText as od, AuthClientMetadataDeviceType as of, TextGenerationError as oi, OrchestrationGetFullThreadDiffError as ol, SecretRef as om, PreviewAutomationOpenInput as on, deviceToolInstallMessage as oo, ANTIGRAVITY_DEFAULT_MODEL as op, AgentSessionScanError as or, AUTO_WORKSPACE_NOTICE_TITLE as os, DesignRpcGroup as ot, toURL as ou, semanticDiff as p, secretSettingsFields as pa, Project as pc, put$1 as pd, AuthMcpApprovalError as pf, ServerProviderUpdateError as pi, PROVIDER_SEND_TURN_MAX_FILE_BYTES as pl, fromInput as pm, PreviewAutomationRecordingTransferError as pn, ThreadDecision as po, MUSE_DEFAULT_MODEL as pp, OrchestrationSearchThreadsError as pr, OrchestrationV2CheckpointJson as ps, DesignInspectReceipt as pt, decodeField as pu, WS_METHODS as q, DeviceOperationError as qa, SourceControlProviderKind as qc, badArgument as qd, allShort as qf, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as qi, tracer as ql, AssetWorkspaceAssetNotFoundError as qn, RelayEnvironmentLinkChallengeResponse as qo, PlanId as qp, MIN_SCHEDULED_TASK_INTERVAL_MS as qr, OrchestrationV2StoredEvent as qs, PreviewAutomationClientDisconnectedError as qt, matchStatus as qu, computeLayout as r, UsageLimitSourceConfig as ra, autoWorkspaceNoticeMessage as rc, bodyJson as rd, AuthAccessTokenType as rf, GitCommandError as ri, VcsRepositoryDetectionError as rl, RunId as rm, PreviewAutomationMalformedResponseError as rn, DeviceToolUnavailableError as ro, AcpRegistryProbeResult as rp, AgentSessionImportProjectChangedError as rr, fromApi as rs, Service as rt, schemaCookies as ru, isConfinedRelativePath as s, providerInstanceConfigEnabledFlag as sa, latestProviderTurnForAttempt as sc, bodyUrlParams as sd, AuthDiagnosticsReadScope as sf, VcsListRefsInput as si, OrchestrationGetTurnDiffError as sl, ThreadId as sm, PreviewAutomationPressInput as sn, symbol as so, CustomModelSetting as sp, AgentSessionSource as sr, AUTO_WORKSPACE_UNDECIDED_REASON as ss, DesignServiceError as st, MultipartError as su, buildIndexes as t, ServerSettingsError as ta, OrchestrationV2TurnItemJson as tc, bearerToken as td, AuthAccessReadScope as tf, PullRequestReviewGuideRun as ti, VcsProcessStdinWriteError as tl, RpcClientId as tm, PreviewAutomationHoverInput as tn, DeviceToolScreenshotResult as to, AcpRegistryOperationError as tp, AttachmentDeleteInput as tr, RelayProtectedError as ts, WORKTREE_SETUP_ERROR_MAX_LENGTH as tt, ParsedSearchParams as tu, resolveValue as u, resolveProjectProviderInstanceEnabled as ua, ToolActivityNativeAppReference as uc, make$14 as ud, AuthFilesystemReadScope as uf, EnvironmentThemeId as ui, ChatAttachmentId as ul, TurnItemId as um, PreviewAutomationRecordingDesktopUpdateRequiredError as un, DecisionError as uo, DEFAULT_TEXT_GENERATION_MODEL as up, P4ProjectFile as ur, OrchestrationGetWorkflowScriptError as us, DesignApplyRequest as ut, limitsServices as uu, Hash as v, PreviewClearProfileError as va, ProjectReadFileError as vc, make$15 as vd, AuthOrchestrationReadScope as vf, isProviderWorkspaceSnapshotCurrent as vi, isProviderSendTurnSupportedImageMimeType as vl, bytes as vm, PreviewAutomationResultTooLargeError as vn, INCOGNITO_BROWSER_PROFILE_ID as vo, ProviderInstanceId as vp, ThreadMetadataMcpUpdateResult as vr, OrchestrationV2ConversationMessage as vs, DesignSelection as vt, HttpServerError as vu, concatBytes as w, PreviewTabId as wa, StoredProjectIcon as wc, TransportError as wd, AuthSourceControlWriteScope as wf, ExternalLauncherUnsupportedEditorError as wi, reflect as wl, PreviewAutomationSnapshot as wn, DesktopBrowserEvent as wo, ReviewCommentContextRecord as wp, OrchestratorMcpDeleteScheduledTaskInput as wr, OrchestrationV2ExecutionNode as ws, DesignValidateRequest as wt, toResponse as wu, ahash as x, PreviewListResult as xa, ProjectSearchEntriesError as xc, HttpClientErrorSchema as xd, AuthRelayReadScope as xf, ExternalLauncherCommandNotFoundError as xi, make$2 as xl, PreviewAutomationSelectResult as xn, DesktopAppActivationErrorCode as xo, isProviderDriverKind as xp, OrchestratorMcpCreateThreadsResult as xr, OrchestrationV2DispatchCommandResult as xs, DesignStylesReceipt as xt, ServeError as xu, abytes as y, PreviewControlRequiredError as ya, ProjectScript as yc, DecodeError as yd, AuthPreviewOperateScope as yf, EDITORS as yi, Service$1 as yl, fromInputUnsafe as ym, PreviewAutomationScrollInput as yn, findBrowserProfile as yo, ProviderInstanceMutation as yp, OrchestratorMcpCapabilitiesResult as yr, OrchestrationV2ConversationMessageJson as ys, DesignStatusReceipt as yt, RequestParseError as yu, ComputerUseHostReport as z, RESERVED_MCP_SERVER_NAME as za, PullRequestSummary as zc, uint8Array$1 as zd, getStatusSuccessSchema as zf, AntigravitySettings as zi, route as zl, AssetCreateUrlInput as zn, EnvironmentInternalError as zo, ContextTransferId as zp, OrchestratorMcpThreadListResult as zr, OrchestrationV2RunJson as zs, DesktopTelemetryControlMessage as zt, setStatus as zu };
31078
+ export { WsMcpRegistryProviderSignOutRpc as $, DevicePlatformUnavailableError as $a, VcsDriverKind as $c, systemError as $d, Retry as $f, DEFAULT_SERVER_SETTINGS as $i, addUrlAttributes as $l, AssetWorkspaceContextResolutionError as $n, RelayHookDeliveryProofPayload as $o, PositiveInt as $p, ScheduledTaskError as $r, OrchestrationV2SubagentJson as $s, PreviewAutomationControlReason as $t, TypeId$14 as $u, SelfImproveLabel as A, KeybindingRule as Aa, DEFAULT_RUNTIME_MODE as Ac, CurrentErrorReporters as Ad, AuthTerminalOperateScope as Af, ProviderSetupError as Ai, get as Al, PreviewAutomationTabNotFoundError as An, DesktopBackendBootstrap as Ao, ASSISTANT_CITATION_MAX_TEXT_LENGTH as Ap, OrchestratorMcpFailure as Ar, OrchestrationV2GetShellSnapshotError as As, ServerClient as At, make$12 as Au, ComputerUseHostResponse as B, McpServerRuntimeState as Ba, PullRequestOperationError as Bc, raw$1 as Bd, getResponseEncoding as Bf, TerminalResizeError as Bi, add$1 as Bl, McpAppRequestError as Bn, EnvironmentHttpForbiddenError as Bo, ClientWebDeployment as Bp, OrchestratorMcpThreadInterruptInput as Br, OrchestrationV2ProviderTurn as Bs, WorktreeMcpStatusResult as Bt, setBody as Bu, clean as C, PreviewControlRequiredError as Ca, ProjectScript as Cc, DecodeError as Cd, AuthPreviewOperateScope as Cf, EDITORS as Ci, Service$1 as Cl, fromInputUnsafe as Cm, PreviewAutomationScrollInput as Cn, findBrowserProfile as Co, ProviderInstanceMutation as Cp, OrchestratorMcpCapabilitiesResult as Cr, OrchestrationV2ConversationMessageJson as Cs, DesignStatusReceipt as Ct, RequestParseError as Cu, SelfImproveDecision as D, PreviewStreamHostSetup as Da, ProjectWriteFileError as Dc, StatusCodeError as Dd, AuthSettingsWriteScope as Df, ExternalLauncherUnknownEditorError as Di, make$3 as Dl, PreviewAutomationSetColorSchemeResult as Dn, DesktopBrowserCommand as Do, OrchestrationMessageContext as Dp, OrchestratorMcpDelegateTaskResult as Dr, OrchestrationV2DomainEventJson as Ds, DesignValidateReceipt as Dt, symbol$1 as Du, toBytes as E, PreviewSessionLookupError as Ea, ProjectUpdatePayload as Ec, InvalidUrlError as Ed, AuthRelayWriteScope as Ef, ExternalLauncherEditorSpawnError as Ei, getSlotParseOptions as El, PreviewAutomationSetColorSchemeInput as En, DesktopAppActivationResponse as Eo, ComposerContextRecord as Ep, OrchestratorMcpDelegateTaskInput as Er, OrchestrationV2DomainEvent as Es, DesignStylesRequest as Et, causeResponse as Eu, COMPUTER_USE_MAX_OUTPUT_CHARS as F, SCRIPT_RUN_COMMAND_PATTERN as Fa, ThreadLinkedPullRequest as Fc, report as Fd, authScopeResponse as Ff, TerminalCwdStatError as Fi, post as Fl, PreviewAutomationUnavailableError as Fn, EnvironmentCloudEndpointUnavailableError as Fo, CheckpointScopeId as Fp, OrchestratorMcpScheduleTaskInput as Fr, OrchestrationV2ProviderRetry as Fs, getStreamSchemas as Ft, jsonUnsafe as Fu, clientRpcRequiredScopes as G, resolveRegistryEntryEnabled as Ga, pullRequestHostOf as Gc, FileSystem as Gd, isNoContent as Gf, BackgroundActivityProfileSelection as Gi, use as Gl, AssetPreviewTypeValidationError as Gn, EnvironmentRequestInvalidError as Go, EnvironmentId as Gp, OrchestratorMcpThreadReadResult as Gr, OrchestrationV2RuntimeRequest as Gs, ResourceMonitorEvent as Gt, text as Gu, ComputerUseOutput as H, PluginId as Ha, PullRequestState as Hc, text$1 as Hd, getStatusErrorSchema as Hf, TerminalWriteError as Hi, middleware as Hl, AssetAttachmentNotFoundError as Hn, EnvironmentHttpUnauthorizedError as Ho, ContextHandoffId as Hp, OrchestratorMcpThreadListInput as Hr, OrchestrationV2RunAttemptJson as Hs, DesktopHostTelemetryMessage as Ht, setHeaders as Hu, ComputerUseError as I, THREAD_JUMP_KEYBINDING_COMMANDS as Ia, ThreadPullRequestKey as Ic, layer$2 as Id, NoContent as If, TerminalHistoryError as Ii, put as Il, PreviewAutomationUnsupportedClientError as In, EnvironmentHttpApi as Io, ClientConnectionMethod as Ip, OrchestratorMcpScheduleTaskResult as Ir, OrchestrationV2ProviderSession as Is, isStreamSchema as It, mergeCookies as Iu, WsMcpRegistryProviderSignInCancelRpc as J, DeviceBootError as Ja, SourceControlCloneRepositoryInput as Jc, make$16 as Jd, isWithHeaders as Jf, CompressMode as Ji, TracerDisabledWhen as Jl, AssetProjectFaviconResolutionError as Jn, RelayApi as Jo, MessageId as Jp, OrchestratorMcpThreadWaitInput as Jr, OrchestrationV2SearchThreadInput as Js, PREVIEW_AUTOMATION_V1_OPERATIONS as Jt, TypeId$13 as Ju, RpcScopeAuthorization as K, supportsProviderMcpSignIn as Ka, pullRequestProviderRequirement as Kc, FileTypeId as Kd, isStreamSchema$1 as Kf, ClaudeSettings as Ki, HttpServer as Kl, AssetProjectFaviconInspectionError as Kn, EnvironmentResourceNotFoundError as Ko, EventId as Kp, OrchestratorMcpThreadSendInput as Kr, OrchestrationV2RuntimeRequestJson as Ks, McpCapabilityUnavailableError as Kt, uint8Array as Ku, ComputerUseHost as L, McpRegistryRpcError as La, ThreadPullRequestLink as Lc, layerWeak as Ld, StreamSse as Lf, TerminalNotRunningError as Li, normalize as Ll, PreviewAutomationUploadInput as Ln, EnvironmentHttpBadRequestError as Lo, ClientDeviceType as Lp, OrchestratorMcpTaskCancelInput as Lr, OrchestrationV2ProviderSessionJson as Ls, WorktreeMcpFailure as Lt, raw as Lu, SelfImproveResult as M, KeybindingsConfigError as Ma, ProviderInteractionMode as Mc, ignore as Md, EnvironmentAuthorizationError as Mf, DEFAULT_TERMINAL_ID as Mi, getPayloadSchemas as Ml, PreviewAutomationTargetNotEditableError as Mn, EnvironmentAuthInvalidError as Mo, AuthSessionId as Mp, OrchestratorMcpListScheduledTasksResult as Mr, OrchestrationV2PlanArtifact as Ms, isWrapper as Mt, file as Mu, COMPUTER_USE_DEFAULT_TIMEOUT_MS as N, MODEL_PICKER_JUMP_KEYBINDING_COMMANDS as Na, ProviderUserInputAnswers as Nc, isIgnored as Nd, ServerAuthSessionMethod as Nf, TerminalCwdNotDirectoryError as Ni, getSuccessSchemas as Nl, PreviewAutomationTimeoutError as Nn, EnvironmentAuthenticatedAuth as No, CheckpointId as Np, OrchestratorMcpRequestSecretInput as Nr, OrchestrationV2ProviderFailure as Ns, make$1 as Nt, html as Nu, SelfImproveError as O, PreviewTabId as Oa, StoredProjectIcon as Oc, TransportError as Od, AuthSourceControlWriteScope as Of, ExternalLauncherUnsupportedEditorError as Oi, reflect as Ol, PreviewAutomationSnapshot as On, DesktopBrowserEvent as Oo, ReviewCommentContextRecord as Op, OrchestratorMcpDeleteScheduledTaskInput as Or, OrchestrationV2ExecutionNode as Os, DesignValidateRequest as Ot, toResponse as Ou, COMPUTER_USE_JEV_TAKE_CODE as P, ResolvedKeybindingRule as Pa, RuntimeMode as Pc, layer$1 as Pd, authScopeRequiredResponse as Pf, TerminalCwdNotFoundError as Pi, patch as Pl, PreviewAutomationTypeInput as Pn, EnvironmentAuthenticatedPrincipal as Po, CheckpointRef as Pp, OrchestratorMcpRequestSecretResult as Pr, OrchestrationV2ProviderGoal as Ps, ClientAbort as Pt, isHttpServerResponse as Pu, WsMcpRegistryProviderSignInWaitRpc as Q, DevicePlatformAvailability as Qa, SourceControlRepositoryError as Qc, isPlatformError as Qd, hasBody as Qf, DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL as Qi, addHeaderAttributes as Ql, AssetWorkspaceContextNotFoundError as Qn, RelayEnvironmentLinkResponse as Qo, PortSchema as Qp, ScheduledTask as Qr, OrchestrationV2Subagent as Qs, PreviewAutomationControlInterruptedError as Qt, MaxBodySize as Qu, ComputerUseHostRegistration as R, McpServerId as Ra, ThreadPullRequestLinkSource as Rc, isHttpBody as Rd, asUint8Array as Rf, TerminalProviderEnvironmentError as Ri, HttpRouter as Rl, PreviewAutomationWaitForInput as Rn, EnvironmentHttpCommonError as Ro, ClientOs as Rp, OrchestratorMcpTaskCancelResult as Rr, OrchestrationV2ProviderThread as Rs, WorktreeMcpHandoffInput as Rt, redirect as Ru, anumber as S, PreviewClearProfileError as Sa, ProjectReadFileError as Sc, make$15 as Sd, AuthOrchestrationReadScope as Sf, isProviderWorkspaceSnapshotCurrent as Si, isProviderSendTurnSupportedImageMimeType as Sl, bytes as Sm, PreviewAutomationResultTooLargeError as Sn, INCOGNITO_BROWSER_PROFILE_ID as So, ProviderInstanceId as Sp, ThreadMetadataMcpUpdateResult as Sr, OrchestrationV2ConversationMessage as Ss, DesignSelection as St, HttpServerError as Su, randomBytes as T, PreviewListResult as Ta, ProjectSearchEntriesError as Tc, HttpClientErrorSchema as Td, AuthRelayReadScope as Tf, ExternalLauncherCommandNotFoundError as Ti, make$2 as Tl, PreviewAutomationSelectResult as Tn, DesktopAppActivationErrorCode as To, isProviderDriverKind as Tp, OrchestratorMcpCreateThreadsResult as Tr, OrchestrationV2DispatchCommandResult as Ts, DesignStylesReceipt as Tt, ServeError as Tu, computerUseJevStepCode as U, RESERVED_MCP_SERVER_NAME as Ua, PullRequestSummary as Uc, uint8Array$1 as Ud, getStatusSuccessSchema as Uf, AntigravitySettings as Ui, route as Ul, AssetCreateUrlInput as Un, EnvironmentInternalError as Uo, ContextTransferId as Up, OrchestratorMcpThreadListResult as Ur, OrchestrationV2RunJson as Us, DesktopTelemetryControlMessage as Ut, setStatus as Uu, ComputerUseJsInput as V, McpServerTransport as Va, PullRequestStack as Vc, stream$1 as Vd, getResponseEncodingSchema as Vf, TerminalSessionLookupError as Vi, cors as Vl, ATTACHMENT_UPLOAD_URL_TTL_MS as Vn, EnvironmentHttpInternalServerError as Vo, CommandId as Vp, OrchestratorMcpThreadInterruptResult as Vr, OrchestrationV2ProviderTurnJson as Vs, UsageReadError as Vt, setHeader as Vu, CLIENT_GUARDED_RPC_SCOPES as W, mcpProviderSupport as Wa, PullRequestUnavailableError as Wc, urlParams$1 as Wd, getWithHeadersAnnotation as Wf, BackgroundActivityProfile as Wi, serve as Wl, AssetGitHubMediaUrlValidationError as Wn, EnvironmentOperationForbiddenError as Wo, DpopFailureReason as Wp, OrchestratorMcpThreadReadInput as Wr, OrchestrationV2RunStatus as Ws, ResourceMonitorCommand as Wt, stream as Wu, WsMcpRegistryProviderSignInStartRpc as X, DeviceNotFoundError as Xa, SourceControlProviderError as Xc, PlatformError as Xd, withHeaders as Xf, DEFAULT_AUTOMATIC_GIT_FETCH_INTERVAL as Xi, isTracerDisabledUnsafe as Xl, AssetWorkspaceAssetInspectionError as Xn, RelayCloudMintCredentialProofPayload as Xo, NonNegativeInt as Xp, OrchestratorMcpUpdateScheduledTaskInput as Xr, OrchestrationV2StopWorkflowInput as Xs, PreviewAutomationClickInput as Xt, fromWeb as Xu, WsMcpRegistryProviderSignInCompleteRpc as Y, DeviceHostUnavailableError as Ya, SourceControlCloneRepositoryResult as Yc, BadArgument as Yd, isWithHeadersValue as Yf, DATABASE_COMPACTION_RECOMMENDED_BYTES as Yi, compression as Yl, AssetSigningKeyLoadError as Yn, RelayCloudEnvironmentHealthProofPayload as Yo, NodeId as Yp, OrchestratorMcpThreadWaitResult as Yr, OrchestrationV2StopWorkflowError as Ys, PREVIEW_RECORDING_STOP_TIMEOUT_MS as Yt, filterStatusOk as Yu, WsMcpRegistryProviderSignInStateRpc as Z, DeviceOperationError as Za, SourceControlProviderKind as Zc, badArgument as Zd, allShort as Zf, DEFAULT_BACKGROUND_ACTIVITY_PROFILE as Zi, tracer as Zl, AssetWorkspaceAssetNotFoundError as Zn, RelayEnvironmentLinkChallengeResponse as Zo, PlanId as Zp, MIN_SCHEDULED_TASK_INTERVAL_MS as Zr, OrchestrationV2StoredEvent as Zs, PreviewAutomationClientDisconnectedError as Zt, matchStatus as Zu, sha512 as _, secretSettingsFields as _a, Project as _c, put$1 as _d, AuthMcpApprovalError as _f, ServerProviderUpdateError as _i, PROVIDER_SEND_TURN_MAX_FILE_BYTES as _l, fromInput as _m, PreviewAutomationRecordingTransferError as _n, ThreadDecision as _o, MUSE_DEFAULT_MODEL as _p, OrchestrationSearchThreadsError as _r, OrchestrationV2CheckpointJson as _s, DesignInspectReceipt as _t, decodeField as _u, documentContentDigest as a, ServerSettingsError as aa, OrchestrationV2TurnItemJson as ac, bearerToken as ad, AuthAccessReadScope as af, PullRequestReviewGuideRun as ai, VcsProcessStdinWriteError as al, RpcClientId as am, PreviewAutomationHoverInput as an, DeviceToolScreenshotResult as ao, AcpRegistryOperationError as ap, AttachmentDeleteInput as ar, RelayProtectedError as as, Service as at, ParsedSearchParams as au, aexists as b, PREVIEW_URL_MAX_LENGTH as ba, ProjectMutation as bc, setHeaders$1 as bd, AuthMcpTokenError as bf, isProviderAvailable as bi, PersistChatAttachmentsError as bl, remove as bm, PreviewAutomationResizeInput as bn, BUILT_IN_BROWSER_PROFILES as bo, PROVIDER_DISPLAY_NAMES as bp, OrchestrationThreadSearchSource as br, OrchestrationV2ContextTransfer as bs, DesignRenderReceipt as bt, TypeId$10 as bu, parseDesign as c, isUnconfiguredDefaultInstanceEnabled as ca, isKnownOrchestrationV2EventType as cc, bodyJsonUnsafe as cd, AuthAccessWriteScope as cf, GitManagerError as ci, VcsUnsupportedOperationError as cl, RuntimeRequestId as cm, PreviewAutomationNavigateInput as cn, DeviceToolVersions as co, officialAcpRegistryIconUrlForAgentId as cp, AgentSessionImportProjectNotFoundError as cr, getParamNames as cs, DesignListReceipt as ct, schemaHeaders as cu, reviewState as d, providerInstanceConfigEnabledFlag as da, latestProviderTurnForAttempt as dc, bodyUrlParams as dd, AuthDiagnosticsReadScope as df, VcsListRefsInput as di, OrchestrationGetTurnDiffError as dl, ThreadId as dm, PreviewAutomationPressInput as dn, symbol as do, CustomModelSetting as dp, AgentSessionSource as dr, AUTO_WORKSPACE_UNDECIDED_REASON as ds, DesignServiceError as dt, MultipartError as du, GitHubHost as ea, OrchestrationV2ThreadForkSourcePoint as ec, inspect as ed, make$17 as ef, ScheduledTaskWebhookDeliveryId as ei, VcsProcessExitError as el, ProjectId as em, PreviewAutomationDialogInput as en, DeviceToolCloseInput as eo, decode as ep, AssetWorkspacePathValidationError as er, RelayManagedEndpointOrigin as es, WsRpcGroup as et, appendPreResponseHandlerUnsafe as eu, selectLayoutItems as f, requiredScopesForProjectMutation as fa, orchestrationV2RunWorkStartedAt as fc, del$1 as fd, AuthEnvironmentMaintainScope as ff, VcsListRefsResult as fi, OrchestrationGetTurnDiffResult as fl, TrimmedNonEmptyString as fm, PreviewAutomationRecordingArtifact as fn, value as fo, DEFAULT_MODEL as fp, FilesystemBrowseError as fr, ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE as fs, DesignSubscribeRequest as ft, TypeId$9 as fu, sha384 as g, secretSetting as ga, OrchestrationProjectShell as gc, prependUrl as gd, AuthGrantScope as gf, ServerProviderCompatibilityStatus as gi, ChatImageAttachment as gl, empty$3 as gm, PreviewAutomationRecordingTooLargeError as gn, DecisionResult as go, MODEL_SLUG_ALIASES_BY_PROVIDER as gp, PROJECT_FILE_BACKED_SETTINGS as gr, OrchestrationV2AppThreadJson as gs, DesignGuideRequest as gt, toPersisted as gu, sha256$1 as h, resolveProviderInstanceEnabled as ha, UsageLimitSourceError as hc, post$1 as hd, AuthFilesystemWriteScope as hf, ServerProvider as hi, ChatFileAttachment as hl, CurrentRedactedNames as hm, PreviewAutomationRecordingStatus as hn, DecisionInput as ho, DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER as hp, P4_PROJECT_FILE_NAME as hr, OrchestrationV2AppThread as hs, DesignGuideReceipt as ht, makeConfig as hu, diagnostic as i, ServerSettings as ia, OrchestrationV2TurnItem as ic, basicAuth as id, ThreadEnvMode as if, PullRequestReviewGuide as ii, VcsProcessSpawnError as il, RawEventId as im, PreviewAutomationExecutionError as in, DeviceToolOpenResult as io, AcpRegistryListSessionsResult as ip, AttachmentCreateUploadUrlResult as ir, RelayOkResponse as is, WORKTREE_SETUP_STAGE_ORDER as it, HttpServerRequest as iu, SelfImproveRequest as j, KeybindingsConfig as ja, ProviderApprovalDecision as jc, TypeId$17 as jd, AuthTerminalReadScope as jf, ProviderUploadFeedbackError as ji, getErrorSchemas as jl, PreviewAutomationTabTargetInput as jn, RelayClientInstallFailedError as jo, AssistantCitation as jp, OrchestratorMcpListScheduledTasksInput as jr, OrchestrationV2GetThreadProjectionError as js, exitSchema as jt, empty as ju, SelfImproveEvidence as k, PreviewViewportSetting as ka, DEFAULT_PROVIDER_INTERACTION_MODE as kc, isHttpClientError as kd, AuthStandardClientScopes as kf, ExternalLauncherUnsupportedTargetError as ki, del as kl, PreviewAutomationStatus as kn, DESKTOP_UPDATE_RESTART_MARKER_FILE as ko, ASSISTANT_CITATION_MAX_COMMENT_LENGTH as kp, OrchestratorMcpDeleteScheduledTaskResult as kr, OrchestrationV2ExecutionNodeJson as ks, make as kt, HttpPlatform as ku, patchNode as l, makeBinaryPathSetting as la, isOrchestrationV2WorkActive as lc, bodyStream as ld, AuthAdministrativeScopes as lf, GitPullRequestMaterializationError as li, ModelSelection as ll, ScheduledTaskId as lm, PreviewAutomationNoAvailableHostError as ln, LOCAL_DEVICE_HOST_ID as lo, resolveOfficialAcpRegistryIconUrl as lp, AgentSessionImportSource as lr, toRouterPath as ls, DesignListRequest as lt, schemaSearchParams as lu, validateDesign as m, resolveProjectProviderInstanceEnabled as ma, ToolActivityNativeAppReference as mc, make$14 as md, AuthFilesystemReadScope as mf, EnvironmentThemeId as mi, ChatAttachmentId as ml, TurnItemId as mm, PreviewAutomationRecordingDesktopUpdateRequiredError as mn, DecisionError as mo, DEFAULT_TEXT_GENERATION_MODEL as mp, P4ProjectFile as mr, OrchestrationGetWorkflowScriptError as ms, DesignApplyRequest as mt, limitsServices as mu, canonicalSerialize as n, ProjectSettingsOverrides as na, OrchestrationV2ThreadLaunchRequestWorkspaceStrategy as nc, acceptJson as nd, ORCHESTRATION_PROTOCOL_HEADER as nf, ApplicationProjectEvent as ni, VcsProcessOutputLimitError as nl, ProviderThreadId as nm, PreviewAutomationError as nn, DeviceToolListResult as no, encoder$1 as np, AssetWorkspaceRootNormalizationError as nr, RelayManagedEndpointRecoveryResponse as ns, SecretRequestError as nt, fromHeaders as nu, fileHash as o, ServerSettingsPatch as oa, OrchestrationWorkflowFileError as oc, bodyFormData as od, AuthAccessStreamError as of, PROJECT_CLONE_ERROR_MAX_LENGTH as oi, VcsProcessTimeoutError as ol, RunAttemptId as om, PreviewAutomationInvalidSelectorError as on, DeviceToolTargetInput as oo, AcpRegistryOperationErrorReason as op, AttachmentUploadSigningKeyError as or, annotations as os, UserInputRankError as ot, TypeId$8 as ou, semanticDiff as p, requiredScopesForServerSettingsPatch as pa, ToolActivityIcon as pc, get$1 as pd, AuthEnvironmentScopes as pf, EnvironmentThemeFile as pi, ChatAttachment as pl, TrimmedString as pm, PreviewAutomationRecordingDeadlineExpiredError as pn, DECISION_MODELS as po, DEFAULT_MODEL_BY_PROVIDER as pp, LEGACY_PROJECT_FILE_NAME as pr, ORCHESTRATION_V2_WS_METHODS as ps, DesignApplyReceipt as pt, isPersistedFile as pu, WS_METHODS as q, DeviceActionUnavailableError as qa, resolvePullRequestAuthorFilter as qc, WatchBackend as qd, isStreamUint8Array as qf, CodexSettings as qi, make$6 as ql, AssetProjectFaviconNotFoundError as qn, EnvironmentScopeRequiredError as qo, IsoDateTime as qp, OrchestratorMcpThreadSendResult as qr, OrchestrationV2SearchThreadError as qs, PREVIEW_AUTOMATION_SERVER_OPERATIONS as qt, urlParams as qu, computeLayout as r, ResponseStreamingMode as ra, OrchestrationV2ThreadShell as rc, appendUrlParams as rd, ORCHESTRATION_PROTOCOL_QUERY_PARAM as rf, OrchestrationDispatchCommandError as ri, VcsProcessOutputReadError as rl, ProviderTurnId as rm, PreviewAutomationEvaluateInput as rn, DeviceToolOpenInput as ro, AcpRegistryListProvidersResult as rp, AttachmentCreateUploadUrlInput as rr, RelayManagedEndpointRuntimeConfig as rs, WORKTREE_SETUP_ERROR_MAX_LENGTH as rt, toHeaders as ru, isConfinedRelativePath as s, UsageLimitSourceConfig as sa, autoWorkspaceNoticeMessage as sc, bodyJson as sd, AuthAccessTokenType as sf, GitCommandError as si, VcsRepositoryDetectionError as sl, RunId as sm, PreviewAutomationMalformedResponseError as sn, DeviceToolUnavailableError as so, AcpRegistryProbeResult as sp, AgentSessionImportProjectChangedError as sr, fromApi as ss, DesignHumanApplyRequest as st, schemaCookies as su, buildIndexes as t, PROJECT_SCOPED_SERVER_SETTING_KEYS as ta, OrchestrationV2ThreadLaunchError as tc, schemaBodyJson as td, ExecutionEnvironmentDescriptor as tf, ApplicationEventMetadata as ti, VcsProcessMissingExitCodeError as tl, ProviderSessionId as tm, PreviewAutomationDragInput as tn, DeviceToolError as to, decodeSchema as tp, AssetWorkspaceResolutionError as tr, RelayManagedEndpointRecoveryRegistrationResponse as ts, WsSubscribeThreadDecisionsRpc as tt, requestPreResponseHandlers as tu, resolveValue as u, makeProviderSettingsSchema as ua, isProviderNativeSubagentThread as uc, bodyText as ud, AuthClientMetadataDeviceType as uf, TextGenerationError as ui, OrchestrationGetFullThreadDiffError as ul, SecretRef as um, PreviewAutomationOpenInput as un, deviceToolInstallMessage as uo, ANTIGRAVITY_DEFAULT_MODEL as up, AgentSessionScanError as ur, AUTO_WORKSPACE_NOTICE_TITLE as us, DesignRpcGroup as ut, toURL as uu, Hash as v, FILL_PREVIEW_VIEWPORT as va, ProjectCreatePayload as vc, setBody$1 as vd, AuthMcpClientAccess as vf, ServerSelfUpdateError as vi, PROVIDER_SEND_TURN_MAX_IMAGE_BYTES as vl, fromRecordUnsafe as vm, PreviewAutomationRemoteUnavailableError as vn, ThreadDecisionsReadError as vo, ModelCapabilities as vp, OrchestrationSearchThreadsInput as vr, OrchestrationV2CheckpointScopeJson as vs, DesignInspectRequest as vt, make$8 as vu, concatBytes as w, PreviewInvalidUrlError as wa, ProjectSearchContentsError as wc, HttpClientError as wd, AuthProvidersManageScope as wf, ExternalLauncherBrowserSpawnError as wi, isSecurity as wl, PreviewAutomationSelectInput as wn, resolveBrowserProfiles as wo, defaultInstanceIdForDriver as wp, OrchestratorMcpCreateThreadsInput as wr, OrchestrationV2DispatchCommandError as ws, DesignStatusRequest as wt, ResponseError as wu, ahash as x, PREVIEW_VIEWPORT_PRESET_IDS as xa, ProjectMutationError as xc, setUrl as xd, AuthOrchestrationOperateScope as xf, isProviderTextGenerationCapable as xi, getProviderAttachmentLimitError as xl, set as xm, PreviewAutomationResizeResult as xn, DEFAULT_BROWSER_PROFILE_ID as xo, ProviderDriverKind as xp, ThreadMetadataMcpUpdateInput as xr, OrchestrationV2ContextTransferJson as xs, DesignRenderRequest as xt, ClientAbort$1 as xu, abytes as y, PREVIEW_STREAM_HOST_SETUP_CLOSE_CODE as ya, ProjectListEntriesError as yc, setHeader$1 as yd, AuthMcpRegistrationError as yf, environmentThemeFileHasColors as yi, PROVIDER_SEND_TURN_MAX_INPUT_CHARS as yl, merge as ym, PreviewAutomationRequestQueueClosedError as yn, resolveDecisionBackend as yo, PREFERRED_DEFAULT_CODEX_MODELS as yp, OrchestrationSearchThreadsResult as yr, OrchestrationV2ContextHandoffJson as ys, DesignLibraryManifest as yt, Path as yu, ComputerUseHostReport as z, McpServerName as za, PullRequestLinkedThreadsResult as zc, jsonUnsafe$1 as zd, getPayloadEncoding as zf, TerminalProviderInstanceNotFoundError as zi, RouteContext as zl, SERVER_BROWSER_AUTOMATION_CLIENT_ID as zn, EnvironmentHttpConflictError as zo, ClientSurface as zp, OrchestratorMcpTaskStatusInput as zr, OrchestrationV2ProviderThreadJson as zs, WorktreeMcpHandoffResult as zt, removeHeader as zu };
31002
31079
 
31003
- //# sourceMappingURL=runtime-CEdmfdaF.mjs.map
31080
+ //# sourceMappingURL=runtime-DKclsP_7.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@p4code/cli",
3
- "version": "0.8.17",
3
+ "version": "0.8.19",
4
4
  "description": "P4 Code coding agent server and command-line client",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- import{i as e}from"./DialogTitle-Bs5Povma.js";function t(t){return e(t,`alert-dialog`)}export{t};
2
- //# sourceMappingURL=AlertDialogRoot-C4_VBb4J.js.map
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$y as n,Kd as r,LT as i,NE as a,Yo as o,b_ as s,eh as c,hd as l,l as u,lE as d,n_ as f,nh as p,r_ as m,sr as h,t as g,vd as _}from"./utils-BgVDKR83.js";import{R as v,W as y}from"./runtime-B7jXrsPs.js";import{n as b,s as x,t as ee}from"./environments-CXLCfPlP.js";import{f as S}from"./server-B0y-CZn0.js";import{i as te,n as C}from"./session-eKfJi_Kx.js";import{n as w}from"./query-1tRB9OB0.js";import{t as T}from"./use-atom-command-BEpD82FZ.js";import{L as ne,f as re}from"./useSettings-CUN8qNLl.js";import{n as E,t as D}from"./radio-group-BDPDnH4m.js";import{t as ie}from"./input-RCV7-UKX.js";import{a as ae,c as O,i as oe,r as se,s as ce,t as le}from"./dialog-DWCEeJ2c.js";import{x as k}from"./Icons-3I0QXv0W.js";import{t as ue}from"./preview-Dj_ac_jZ.js";import{S as A,t as de}from"./ChatGptUsageButton-CAkbdzVa.js";import{a as j}from"./settingsLayout-B_Bq9Cq9.js";import{Aa as M,Fa as N,Ki as fe,Ma as pe,Pa as me,fr as P,ja as he,ka as F,qi as ge}from"./main-Co3JeKTg.js";var I=e(t(),1),L=a(),R=e(d(),1);function z(e){let t=(0,L.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,R.jsx)(k,{className:`size-4 shrink-0`,"aria-hidden":`true`}),t[3]=i):i=t[3];let a=n??`Continue with ChatGPT`,o;return t[4]!==r||t[5]!==a?(o=(0,R.jsxs)(h,{...r,children:[i,a]}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function _e(e){let t=(0,L.c)(23),{open:n,methods:r,onClose:i,onSelect:a}=e,o=r.filter(ye),[s,c]=(0,I.useState)(null),l=s===`chatgpt-change-account`?s:o.find(e=>e.id===s)?.id??o[0]?.id??`chatgpt-change-account`,u=le,d;t[0]===i?d=t[1]:(d=e=>{e||i()},t[0]=i,t[1]=d);let f=ce,p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,R.jsxs)(ae,{children:[(0,R.jsx)(O,{children:`Reconnect ChatGPT`}),(0,R.jsx)(se,{children:`On OpenAI, sign in with the account you choose here.`})]}),t[2]=p):p=t[2];let m=E,h;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(h=e=>c(e),t[3]=h):h=t[3];let g=o.map(ve),_;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,R.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-sm`,children:[(0,R.jsx)(D,{value:`chatgpt-change-account`}),(0,R.jsx)(`span`,{className:`font-medium`,children:`Use a different account`})]}),t[4]=_):_=t[4];let v;t[5]!==m||t[6]!==l||t[7]!==h||t[8]!==g?(v=(0,R.jsx)(`div`,{className:`px-6 pb-6`,children:(0,R.jsxs)(m,{"aria-label":`ChatGPT account to connect`,value:l,onValueChange:h,children:[g,_]})}),t[5]=m,t[6]=l,t[7]=h,t[8]=g,t[9]=v):v=t[9];let y;t[10]!==a||t[11]!==l?(y=(0,R.jsx)(oe,{children:(0,R.jsx)(z,{onClick:()=>a(l)})}),t[10]=a,t[11]=l,t[12]=y):y=t[12];let b;t[13]!==f||t[14]!==p||t[15]!==v||t[16]!==y?(b=(0,R.jsxs)(f,{children:[p,v,y]}),t[13]=f,t[14]=p,t[15]=v,t[16]=y,t[17]=b):b=t[17];let x;return t[18]!==u||t[19]!==n||t[20]!==d||t[21]!==b?(x=(0,R.jsx)(u,{open:n,onOpenChange:d,children:b}),t[18]=u,t[19]=n,t[20]=d,t[21]=b,t[22]=x):x=t[22],x}function ve(e){return(0,R.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-lg border px-3 py-3 text-sm`,children:[(0,R.jsx)(D,{value:e.id}),(0,R.jsx)(`span`,{className:`min-w-0 break-all font-medium`,children:e.name})]},e.id)}function ye(e){return e.id.startsWith(`chatgpt-profile:`)}function be(e){let t=(0,L.c)(36),{environmentId:n,onClose:r,renderSetup:i,onAccountCreated:a}=e,c=te(n,s),l=re(n),d;t[0]===n?d=t[1]:(d=S.providersValueAtom(n),t[0]=n,t[1]=d);let p=o(d),g=T(S.updateSettings,`Add ChatGPT account`),[_,v]=(0,I.useState)(`Personal`),y;t[2]===_?y=t[3]:(y=_.trim(),t[2]=_,t[3]=y);let b=`ChatGPT - ${y}`,[x,ee]=(0,I.useState)(null),[w,ne]=(0,I.useState)(!1),E=p?.find(e=>e.instanceId===x),D=A(E),ae=(0,I.useEffectEvent)(r);(0,I.useEffect)(()=>{D&&ae()},[D]);let O;t[4]!==b||t[5]!==n||t[6]!==_||t[7]!==a||t[8]!==r||t[9]!==w||t[10]!==l||t[11]!==g?(O=async()=>{if(w||!_.trim()||!C(n,`providers:manage`))return;ne(!0);let e=m.make(`codex_${u()}`);(await g({environmentId:n,input:{patch:{providerInstances:{...l.providerInstances,[e]:{driver:f.make(`codex`),displayName:b,enabled:!0,config:{enabled:!0,setupMode:`managed`}}}}}}))._tag===`Success`&&(a?(a(e,b),r()):ee(e)),ne(!1)},t[4]=b,t[5]=n,t[6]=_,t[7]=a,t[8]=r,t[9]=w,t[10]=l,t[11]=g,t[12]=O):O=t[12];let oe=O,se=le,ce=!D,k;t[13]===r?k=t[14]:(k=e=>{e||r()},t[13]=r,t[14]=k);let ue=pe,de=x?b:`Add ChatGPT account`,N;t[15]===de?N=t[16]:(N=(0,R.jsx)(M,{title:de,description:`Each account has its own Codex instance and sign-in. Choose the other account on the sign-in page.`}),t[15]=de,t[16]=N);let fe=he,me=x?E?.setup?i(x,E):(0,R.jsx)(j,{title:`Codex runtime`,description:`Preparing managed setup.`}):(0,R.jsx)(`form`,{id:`add-codex-account`,onSubmit:e=>{e.preventDefault(),oe()},children:(0,R.jsx)(j,{title:`Account name`,description:`Shown in the provider list and model picker.`,control:(0,R.jsx)(ie,{"aria-label":`Account name`,value:_,disabled:w,onChange:e=>v(e.target.value),placeholder:`e.g. Personal or Work`})})}),P;t[17]!==fe||t[18]!==me?(P=(0,R.jsx)(fe,{children:me}),t[17]=fe,t[18]=me,t[19]=P):P=t[19];let ge;t[20]!==c||t[21]!==x||t[22]!==_||t[23]!==r||t[24]!==w?(ge=(0,R.jsx)(F,{children:x?(0,R.jsx)(h,{variant:`outline`,onClick:r,children:`Finish later`}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(h,{variant:`outline`,disabled:w,onClick:r,children:`Cancel`}),(0,R.jsx)(h,{type:`submit`,form:`add-codex-account`,disabled:w||!_.trim()||!c,children:w?`Adding account…`:`Continue`})]})}),t[20]=c,t[21]=x,t[22]=_,t[23]=r,t[24]=w,t[25]=ge):ge=t[25];let z;t[26]!==ue||t[27]!==P||t[28]!==ge||t[29]!==N?(z=(0,R.jsxs)(ue,{size:`wide`,children:[N,P,ge]}),t[26]=ue,t[27]=P,t[28]=ge,t[29]=N,t[30]=z):z=t[30];let _e;return t[31]!==se||t[32]!==z||t[33]!==ce||t[34]!==k?(_e=(0,R.jsx)(se,{open:ce,onOpenChange:k,children:z}),t[31]=se,t[32]=z,t[33]=ce,t[34]=k,t[35]=_e):_e=t[35],_e}var xe=n(c),Se=n(p),Ce=/^[A-Za-z0-9_./:\\-]+$/;function we(e,t,n){return Ce.test(e)&&(n===`windows`||!e.includes(`\\`))?e:n===`windows`?`& '${e.replaceAll(`'`,`''`)}'`:n===`darwin`||n===`linux`?e.startsWith(`~/`)||e.startsWith(`~\\`)?`~/'${e.slice(2).replaceAll(`'`,`'"'"'`)}'`:`'${e.replaceAll(`'`,`'"'"'`)}'`:t}function Te(e){return e===void 0?`checking`:!e.enabled||e.status===`disabled`?`disabled`:!e.installed&&e.status===`warning`&&e.auth.status===`unknown`?`checking`:e.installed?e.auth.status===`unauthenticated`?`signIn`:e.status===`ready`?`ready`:`attention`:`install`}var B={checking:0,disabled:1,install:2,attention:3,signIn:4,ready:5};function V(e){let t=new Map;for(let n of e??[]){let e=t.get(n.driver);(e===void 0||B[Te(n)]>B[Te(e)])&&t.set(n.driver,n)}return t}var Ee={claudeAgent:{windows:`irm https://claude.ai/install.ps1 | iex`,posix:`curl -fsSL https://claude.ai/install.sh | bash`},codex:{windows:`irm https://chatgpt.com/codex/install.ps1 | iex`,posix:`curl -fsSL https://chatgpt.com/codex/install.sh | sh`}};function De(e,t){let n=Ee[e];return t===`windows`?n.windows:n.posix}function Oe(e,t,n){let r=t.providerInstances[e.instanceId];if(e.driver===`claudeAgent`){let e=xe(r?.config??{});return`${we(i(e)?e.value.binaryPath:`claude`,`claude`,n)} auth login`}if(e.driver===`codex`){let e=Se(r?.config??{});return`${we(i(e)?e.value.binaryPath:`codex`,`codex`,n)} login`}return e.driver}var ke={disabled:{dot:`bg-muted-foreground/50`},error:{dot:`bg-destructive`},ready:{dot:`bg-success`},warning:{dot:`bg-warning`}};function H(e){if(!e)return{headline:`Checking provider status`,detail:`Waiting for the server to report installation and authentication details.`};if(!e.enabled||e.status===`disabled`)return{headline:`Disabled`,detail:e.message??`This provider is installed but disabled for new sessions in P4 Code.`};if(!e.installed)return{headline:`Not found`,detail:e.message??`CLI not detected on PATH.`};if(e.auth.status===`unauthenticated`){let t=e.auth.label??e.auth.type;return{headline:t?`Not authenticated · ${t}`:`Not authenticated`,detail:e.message??null}}if(e.status===`warning`)return{headline:`Needs attention`,detail:e.message??`The provider is installed, but the server could not fully verify it.`};if(e.status===`error`)return{headline:`Unavailable`,detail:e.message??`The provider failed its startup checks.`};if(e.auth.status===`authenticated`){let t=e.auth.label??e.auth.type;return{headline:t?`Authenticated · ${t}`:`Authenticated`,detail:e.message??null}}return{headline:`Available`,detail:e.message??null}}function U(e){if(!e)return null;let t=/^agy_acp_server_(\d{4})(\d{2})(\d{2})_\d+(?:_(\w+))?$/.exec(e);if(t){let[,e,n,r,i]=t;return`${e}-${n}-${r}${i?` ${i}`:``}`}return/^\d/.test(e)?`v${e}`:e}var Ae={graceful:`Limited support`,unsupported:`Unsupported version`,broken:`Known broken version`};function je(e,t,n=!0){let r=t?.latestVersionStatus===`broken`||t?.latestVersionStatus===`unsupported`;if(n&&t&&(t.status===`graceful`||t.status===`unsupported`||t.status===`broken`)){let n=t.recommendedVersion,i=U(n)??t.recommendedRange;return{title:Ae[t.status],detail:t.message??(i?`Use ${i} for full support.`:`Update for full support.`),updateCommand:n||r?null:e?.updateCommand??null,emphasis:t.status===`graceful`?`normal`:`strong`,targetVersion:n}}if(!e||e.status===`current`||e.status===`unknown`||r)return null;let i=`Update available`,a=e.latestVersion,o=U(a);return{title:i,detail:e.message??(o?`${i}: install ${o}.`:`${i}: install the latest provider version.`),updateCommand:e.updateCommand,emphasis:`normal`,targetVersion:null}}var Me=()=>void 0;function Ne(e){let t=(0,L.c)(11),[n,r]=(0,I.useState)(!1),i;t[0]===e.provider?i=t[1]:(i=Te(e.provider),t[0]=e.provider,t[1]=i);let a=i,o=e.enabled&&a===`ready`,s=e.provider?.auth.status===`authenticated`,c=a===`checking`,u;t[2]===e.provider?u=t[3]:(u=H(e.provider),t[2]=e.provider,t[3]=u);let d=u,f;return t[4]!==s||t[5]!==c||t[6]!==o||t[7]!==d||t[8]!==e||t[9]!==n?(f=e.mode===`existing`&&e.presentation===`onboarding`?(0,R.jsx)(Le,{title:e.displayName||e.provider?.displayName||`Codex`,description:o?e.provider?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(P,{value:e.provider.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`,className:`break-all`}),`.`]}):`Connected with your Codex CLI.`:c?`Checking your Codex CLI...`:e.provider?.installed?d.headline:`Code with your ChatGPT subscription.`,control:o?(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,R.jsx)(l,{className:`size-3.5`}),`Ready`]}):c?(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Checking...`}):s?(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:d.headline}):(0,R.jsx)(z,{size:`sm`,disabled:e.readOnly,onClick:()=>{r(!0),e.onModeChange(`managed`)},children:`Continue with ChatGPT`}),secondaryControl:!s&&!o&&!c?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,onClick:()=>e.onModeChange(`existing`),children:`Use existing CLI`}):null}):e.mode===`existing`?null:e.provider?.setup===void 0?e.presentation===`onboarding`?(0,R.jsx)(Le,{title:e.displayName||e.provider?.displayName||`Codex`,description:(0,R.jsx)(Ie,{}),control:(0,R.jsx)(h,{size:`sm`,variant:`outline`,className:`min-w-44`,disabled:!0,children:`Open sign-in page`}),secondaryControl:(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:!0,children:`Cancel`})}):(0,R.jsx)(j,{title:`ChatGPT account`,description:`Preparing sign-in.`}):(0,R.jsx)(Fe,{...e,autoStart:n||e.autoStart===!0,onAutoStartConsumed:()=>{r(!1),e.onAutoStartConsumed?.()}},`${e.environmentId}:${e.instanceId}`),t[4]=s,t[5]=c,t[6]=o,t[7]=d,t[8]=e,t[9]=n,t[10]=f):f=t[10],f}function Pe(e){let t=(0,L.c)(9),{environmentId:n,onClose:r,onAccountCreated:i}=e,a=te(n,s),o;t[0]!==a||t[1]!==n||t[2]!==r?(o=(e,t)=>(0,R.jsx)(Fe,{environmentId:n,instanceId:e,provider:t,mode:`managed`,enabled:!0,readOnly:!a,autoStart:!0,onAutoStartConsumed:Me,onModeChange:Me,onSignInCancelled:r,allowExistingCli:!1},e),t[0]=a,t[1]=n,t[2]=r,t[3]=o):o=t[3];let c;return t[4]!==n||t[5]!==i||t[6]!==r||t[7]!==o?(c=(0,R.jsx)(be,{environmentId:n,onClose:r,onAccountCreated:i,renderSetup:o}),t[4]=n,t[5]=i,t[6]=r,t[7]=o,t[8]=c):c=t[8],c}function Fe({environmentId:e,instanceId:t,provider:n,enabled:i,readOnly:a,onModeChange:o,autoStart:s,onAutoStartConsumed:c,allowExistingCli:u=!0,presentation:d,displayName:f,onSignInCancelled:p}){let m={environmentId:e,input:{instanceId:t}},_=w(S.providerAuthState(m)),te=w(S.providerInstallState(m)),[C,re]=(0,I.useState)(null),E=w(C?S.chatGptHandoffState(C):null),D=E.data?.phase===`auth`?E.data.state:_.data,[ae,O]=(0,I.useState)(!1),[oe,se]=(0,I.useState)(`chatgpt`),ce=D?.methods?.find(e=>e.id===`chatgpt`)?.accountEmail,le=D?.methods?.find(e=>e.id===oe)?.accountEmail,k=D?.methods?.some(e=>e.id.startsWith(`chatgpt-profile:`)),A=D?.interaction?.type===`browser`?D.interaction.url:D?.authorizationUrl,M=te.data,pe=b(e),he=pe!==null&&ue(new URL(pe).hostname),F={reportFailure:!1,reportDefect:!1},L=T(S.startProviderAuth,F),ve=T(S.refreshProviders,F),ye=T(S.completeProviderAuth,F),be=T(S.cancelProviderAuth,F),xe=T(S.logoutProviderAuth,F),Se=T(S.startProviderInstall,F),Ce=T(S.cancelProviderInstall,F),we=T(S.chatGptReconnectProfile,F),Te=T(S.chatGptImportProfile,F),B=!C&&(!he||window.desktopBridge?.receiveProviderAuthCallback!==void 0),V=B&&!window.desktopBridge?.receiveProviderAuthCallback,Ee=x(),De=ee(Ee),Oe=b(Ee),ke=!he&&Ee&&De?.connection.phase===`connected`&&Oe&&ue(new URL(Oe).hostname)&&(window.desktopBridge!==void 0||ue(window.location.hostname))?Ee:null,H=new URL(window.location.href);H.pathname===`/welcome`&&(H.hash=`agents:${e}`),H.pathname===`/settings/providers`&&H.searchParams.set(`instanceId`,t);let U=V,Ae=(0,I.useId)(),[je,Me]=(0,I.useState)(!1),[Ne,Pe]=(0,I.useState)({flowId:``,value:``}),Fe=Ne.flowId===D?.flowId?Ne.value:``,[W,Re]=(0,I.useState)(!1),[ze,Be]=(0,I.useState)(null),Ve=(0,I.useRef)(!1),[He,Ue]=(0,I.useState)(null),G=(0,I.useRef)(null),K=(0,I.useRef)(!1),We=(0,I.useRef)(null),[Ge,Ke]=(0,I.useState)(!1),q=M?.installedVersion!=null,J=n?.auth.status===`authenticated`,qe=q&&M?.source!==`local`&&M?.version!=null&&M.version!==M.installedVersion,Je=ze!==null&&!J&&(D?.phase===`succeeded`||ze===`handoff`);(0,I.useEffect)(()=>{(J||D?.phase===`failed`||D?.phase===`cancelled`)&&Be(null)},[J,D?.phase]),(0,I.useEffect)(()=>{ze&&D?.phase===`succeeded`&&ve({environmentId:e,input:{instanceId:t}})},[ze,D?.phase,ve,e,t]);let Ye=s&&!Ge,Xe=ze===`sign-in`&&!J&&(D===null||D.phase===`idle`),Ze=Je||Xe||C!==null||D?.phase===`starting`||D?.phase===`waiting`||D?.phase===`verifying`,Y=M?.phase===`downloading`||M?.phase===`extracting`||M?.phase===`verifying`,X=Ye||Ze||W&&!Y,Z=a||!i||W||_.error!==null||te.error!==null,Q=W||Ze||Y,$=(0,I.useCallback)(async(e,t)=>{if(Ve.current)return!1;Ve.current=!0,Re(!0),Ue(null);let n=!1;try{let r=await e();if(r._tag===`Failure`){if(!v(r)){let e=y(r);Ue(e instanceof Error?e.message:`Codex setup failed. Try again.`)}}else n=!0,t?.(r.value)}catch{Ue(`Codex setup failed. Try again.`)}return Ve.current=!1,Re(!1),n},[]),Qe=(0,I.useId)(),$e=(0,I.useRef)(0),et=(0,I.useRef)(null),[tt,nt]=(0,I.useState)(!1),rt=(0,I.useCallback)(async n=>{let r=await $(()=>Te({environmentId:e,input:{instanceId:t,profile:n}}));r&&(Be(`handoff`),re(null)),nt(!r)},[$,Te,e,t]);(0,I.useEffect)(()=>{if(!C||E.data?.phase!==`finished`)return;let e=C.input.attemptId;et.current!==e&&(et.current=e,rt(E.data.profile))},[C,E.data,rt]),(0,I.useEffect)(()=>{C&&(E.error||E.data?.phase===`auth`&&[`failed`,`cancelled`].includes(E.data.state.phase))&&(Ue(E.data?.phase===`auth`?E.data.state.message??`ChatGPT sign-in could not finish. Try again.`:`ChatGPT sign-in on the primary environment was interrupted. Try again.`),re(null))},[C,E.data,E.error]);let it=(0,I.useCallback)(()=>(Be(null),C?(re(null),Promise.resolve()):$(()=>be({environmentId:e,input:{instanceId:t,flowId:D.flowId}}))),[C,$,be,e,t,D]),at=(0,I.useCallback)(async(n=`chatgpt`)=>{if(Ve.current)return;K.current=!0,nt(!1),se(n);let r=new URL(window.location.href);if(r.pathname===`/welcome`&&(r.hash=`agents:${e}`),r.pathname===`/settings/providers`&&r.searchParams.set(`instanceId`,t),ke){let i=`${Qe}:${++$e.current}`;await $(()=>we({environmentId:e,input:{instanceId:t,methodId:n}}),n=>re({environmentId:ke,input:{instanceId:t,environmentId:e,attemptId:i,returnUrl:r.toString(),profile:n}}))||(K.current=!1);return}await $(()=>L({environmentId:e,input:{instanceId:t,methodId:n,returnUrl:r.toString(),callbackMode:B?`client`:`server`}}),()=>Be(`sign-in`))||(K.current=!1)},[e,t,$,L,B,ke,we,Qe]),ot=(0,I.useCallback)(async(n=`chatgpt`)=>{Z||Q||(q&&!qe?await at(n):(G.current=n,await $(()=>Se({environmentId:e,input:{instanceId:t}}))||(G.current=null)))},[Z,Q,q,qe,at,$,Se,e,t]);(0,I.useEffect)(()=>{!s||Ge||Z||Q||M===null||!n?.setup?.canInstall||(Ke(!0),c(),ot())},[s,Ge,Z,Q,M,n?.setup?.canInstall,c,ot]),(0,I.useEffect)(()=>{if(!(!G.current||W||Y)){if(M?.phase===`failed`||M?.phase===`cancelled`)G.current=null;else if(q){let e=G.current;G.current=null,at(e)}}},[W,Y,M?.phase,q,at]);let st=(0,I.useRef)(null),ct=D?.flowId,lt=(0,I.useCallback)(async n=>{try{let r=window.desktopBridge?.receiveProviderAuthCallback;if(r&&B&&ct){if(st.current===n){await ne().shell.openExternal(n);return}st.current=n;let i=await r(n);if(st.current!==n)return;st.current=null,await $(()=>ye({environmentId:e,input:{instanceId:t,flowId:ct,callbackUrl:i}}))}else await ne().shell.openExternal(n)}catch{Ue(`Could not finish sign-in on this computer. Try again or paste the redirect URL below.`)}},[B,ct,$,ye,e,t]);(0,I.useEffect)(()=>{if(B&&A&&window.desktopBridge?.cancelProviderAuthCallback)return()=>{st.current===A&&(st.current=null),window.desktopBridge?.cancelProviderAuthCallback?.(A).catch(()=>void 0)}},[B,A]),(0,I.useEffect)(()=>{K.current&&D?.phase===`waiting`&&D.flowId&&A&&We.current!==D.flowId&&(We.current=D.flowId,K.current=!1,V||lt(A))},[D?.phase,D?.flowId,A,lt,V]);let ut=M?.phase===`downloading`?`Downloading ${(M.downloadedBytes/1e6).toFixed(1)}${M.totalBytes===null?``:` of ${(M.totalBytes/1e6).toFixed(1)}`} MB.`:M?.phase===`extracting`?`Installing Codex.`:M?.phase===`verifying`?`Checking Codex.`:q?`${M?.source===`local`?`Using your installed Codex`:`Managed by P4 Code`}${M?.installedVersion?` · v${M.installedVersion}`:``}.`:M?.message??`P4 Code downloads and manages Codex for you.`,dt=Je?`Finishing sign-in...`:Y?ut:X||D?.phase===`failed`||D?.phase===`cancelled`?D?.phase===`waiting`&&le?`Continue as ${le} on OpenAI.`:D?.message??`Finish signing in in your browser.`:J?n?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(P,{value:n.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`}),`.`]}):`Signed in with ChatGPT.`:ce??`Use your ChatGPT subscription.`,ft=U&&A&&D?.flowId&&ge(H.toString())?fe({authorizationUrl:A,returnUrl:H.toString(),environmentId:e,instanceId:t,flowId:D.flowId},!1):null,pt=(0,R.jsx)(h,{size:`sm`,variant:V?`default`:`outline`,className:d===`onboarding`?`min-w-44`:void 0,disabled:E.data?.phase===`finished`?W||!tt:!A||D?.phase!==`waiting`,onClick:()=>{E.data?.phase===`finished`?rt(E.data.profile):A&&lt(A)},children:Je?`Finishing sign-in...`:E.data?.phase===`finished`?tt?`Retry connection`:`Finishing sign-in...`:D?.phase===`waiting`?V?`Open ChatGPT sign-in`:`Open sign-in page`:d===`onboarding`?`Open sign-in page`:`Signing in...`}),mt=!C&&D?.phase===`waiting`&&A?(0,R.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-xs leading-relaxed text-muted-foreground`,children:[(0,R.jsx)(`p`,{children:`If sign-in doesn't return to P4 Code, paste the URL from the final localhost page.`}),(0,R.jsxs)(`form`,{className:`flex flex-col gap-2 sm:flex-row sm:items-center`,onSubmit:n=>{if(n.preventDefault(),!D.flowId||!Fe.trim())return;let r=Fe.trim(),i=D.flowId;$(()=>ye({environmentId:e,input:{instanceId:t,flowId:i,callbackUrl:r}})).then(e=>{e&&Pe({flowId:i,value:``})})},children:[(0,R.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,R.jsx)(ie,{"aria-label":`ChatGPT sign-in redirect URL`,type:`password`,autoComplete:`off`,placeholder:`Paste the URL from the sign-in tab`,value:Fe,maxLength:16384,disabled:W||a,onChange:e=>Pe({flowId:D.flowId??``,value:e.target.value})})}),(0,R.jsx)(h,{variant:`outline`,type:`submit`,disabled:W||a||!Fe.trim(),children:`Connect`})]}),V?null:(0,R.jsx)(`div`,{children:(0,R.jsxs)(h,{size:`xs`,variant:`ghost-muted`,onClick:()=>void ne().shell.openExternal(A),children:[`Try sign-in in your browser`,(0,R.jsx)(r,{className:`size-3.5`})]})}),ft?(0,R.jsxs)(`details`,{children:[(0,R.jsx)(`summary`,{className:`cursor-pointer`,children:`Other ways to connect`}),(0,R.jsx)(h,{className:`mt-2`,size:`sm`,variant:`outline`,render:(0,R.jsx)(`a`,{href:ft}),children:`Use P4 Code desktop for automatic return`})]}):null]}):null,ht=e=>mt?(0,R.jsx)(me,{open:je,children:(0,R.jsx)(N,{children:(0,R.jsx)(`div`,{id:Ae,className:g(`w-full border-t border-border/50 pt-3`,e),children:mt})})}):null,gt=U?mt:mt?(0,R.jsxs)(`div`,{className:`text-xs leading-relaxed text-muted-foreground`,children:[(0,R.jsx)(Ie,{label:`Having trouble signing in?`,expanded:je,controls:Ae,onToggle:()=>Me(e=>!e)}),ht(`mt-3`)]}):null,_t=(0,R.jsx)(_e,{open:ae,methods:D?.methods??[],onClose:()=>O(!1),onSelect:e=>{O(!1),ot(D?.methods?.some(t=>t.id===e)?e:`chatgpt-change-account`)}}),vt=D?.phase===`idle`&&D.message?.startsWith(`Signed out locally.`)?D.message:null;if(d===`onboarding`){let r=vt??He??(_.error||te.error?`Could not read setup status. Reconnect and try again.`:M?.phase===`failed`?M.message:null);return(0,R.jsxs)(R.Fragment,{children:[_t,(0,R.jsxs)(Le,{title:f||n?.displayName||`Codex`,description:Y?ut:J?n?.auth.email?.trim()?(0,R.jsxs)(R.Fragment,{children:[`Signed in as`,` `,(0,R.jsx)(P,{value:n.auth.email.trim(),ariaLabel:`Toggle account email visibility`,revealTooltip:`Click to reveal email`,hideTooltip:`Click to hide email`,className:`break-all`}),`.`]}):`Connected to ChatGPT.`:mt&&!U?(0,R.jsx)(Ie,{expanded:je,controls:Ae,onToggle:()=>Me(e=>!e)}):Ye||Xe||D?.phase===`starting`||D?.phase===`waiting`||W&&!Y?(0,R.jsx)(Ie,{}):X||D?.phase===`failed`||D?.phase===`cancelled`?dt:`Code with your ChatGPT subscription.`,control:J&&!Q?(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-success-foreground`,children:[(0,R.jsx)(l,{className:`size-3.5`}),`Ready`]}):X?pt:(0,R.jsx)(z,{size:`sm`,disabled:Z||Q||(q?!n?.setup?.canAuthenticate:!n?.setup?.canInstall),onClick:()=>{k?O(!0):ot()},children:Y||W?`Setting up...`:k?`Reconnect account`:`Continue with ChatGPT`}),secondaryControl:X&&!Je||Y?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:W||a,onClick:()=>{K.current=!1,G.current=null,C||X&&D?.flowId?it():M?.operationId&&$(()=>Ce({environmentId:e,input:{instanceId:t,operationId:M.operationId}}))},children:`Cancel`}):!X&&!J&&k?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:Z||Q,onClick:()=>void ot(`chatgpt-change-account`),children:`Use a different account`}):!X&&!J&&u?(0,R.jsx)(h,{size:`sm`,variant:`ghost-muted`,disabled:a||Q,onClick:()=>o(`existing`),children:`Use existing CLI`}):null,children:[U?gt:ht(),r?(0,R.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive`,children:r}):null]})]})}return(0,R.jsxs)(`section`,{"aria-label":`Codex setup`,className:`divide-y divide-border/50`,children:[_t,(0,R.jsx)(j,{title:`ChatGPT account`,description:dt,control:(0,R.jsx)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:X?(0,R.jsxs)(R.Fragment,{children:[pt,!Je&&(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:W||a,onClick:()=>{(C||D?.flowId)&&(K.current=!1,it(),p?.())},children:`Cancel`})]}):Y?(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:W||a,onClick:()=>{M?.operationId&&(G.current=null,$(()=>Ce({environmentId:e,input:{instanceId:t,operationId:M.operationId}})))},children:`Cancel`}):J?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(h,{size:`sm`,variant:`outline`,disabled:Z||Q,onClick:()=>O(!0),children:`Change account`}),(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:Z||Q,onClick:()=>void $(()=>xe(m)),children:`Disconnect`})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(z,{size:`sm`,disabled:Z||Q||(q?!n?.setup?.canAuthenticate:!n?.setup?.canInstall),onClick:()=>{k?O(!0):ot()},children:W?`Setting up...`:k?`Reconnect account`:`Continue with ChatGPT`}),k?(0,R.jsx)(h,{size:`sm`,variant:`ghost`,disabled:Z||Q,onClick:()=>void ot(`chatgpt-change-account`),children:`Use a different account`}):null]})})}),J?(0,R.jsx)(`div`,{className:`flex justify-end px-3 py-1 sm:px-4`,children:(0,R.jsx)(de,{})}):null,vt?(0,R.jsx)(`p`,{role:`alert`,className:`px-3 py-2 text-xs text-muted-foreground sm:px-4`,children:vt}):null,gt?(0,R.jsx)(`div`,{className:`px-3 py-3 sm:px-4`,children:gt}):null,He||_.error||te.error||M?.phase===`failed`?(0,R.jsx)(`p`,{role:`alert`,className:`px-3 py-2 text-xs text-destructive sm:px-4`,children:He??(M?.phase===`failed`?M.message:`Could not read Codex setup status. Reconnect and try again.`)}):null]})}function W(e){let t=(0,L.c)(20),{environmentId:n,instanceId:r,provider:i}=e,a;t[0]!==n||t[1]!==r?(a=S.providerInstallState({environmentId:n,input:{instanceId:r}}),t[0]=n,t[1]=r,t[2]=a):a=t[2];let o=w(a),s=o.data?.executablePath??``,c=o.error?`Could not read runtime path`:`Not installed`,l;t[3]!==s||t[4]!==c?(l=(0,R.jsx)(j,{title:`Binary path`,description:`Selected by P4 Code.`,control:(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex binary path`,value:s,title:s,placeholder:c,disabled:!0})})}),t[3]=s,t[4]=c,t[5]=l):l=t[5];let u=i?.runtimePaths?.homePath??``,d=i?.runtimePaths?.homePath,f;t[6]!==u||t[7]!==d?(f=(0,R.jsx)(j,{title:`CODEX_HOME path`,description:`Shared Codex config, sessions, and state.`,control:(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex home path`,value:u,title:d,placeholder:`Unavailable`,disabled:!0})})}),t[6]=u,t[7]=d,t[8]=f):f=t[8];let p=i?.runtimePaths?.shadowHomePath?`Account-specific home sharing the Codex state above.`:`This instance uses the shared Codex home directly.`,m=i?.runtimePaths?.shadowHomePath??``,h=i?.runtimePaths?.shadowHomePath??void 0,g=i?.runtimePaths?`Not used`:`Unavailable`,_;t[9]!==g||t[10]!==m||t[11]!==h?(_=(0,R.jsx)(`div`,{className:`w-full sm:w-80`,children:(0,R.jsx)(ie,{"aria-label":`Codex shadow home path`,value:m,title:h,placeholder:g,disabled:!0})}),t[9]=g,t[10]=m,t[11]=h,t[12]=_):_=t[12];let v;t[13]!==_||t[14]!==p?(v=(0,R.jsx)(j,{title:`Shadow home path`,description:p,control:_}),t[13]=_,t[14]=p,t[15]=v):v=t[15];let y;return t[16]!==v||t[17]!==l||t[18]!==f?(y=(0,R.jsxs)(R.Fragment,{children:[l,f,v]}),t[16]=v,t[17]=l,t[18]=f,t[19]=y):y=t[19],y}function Ie(e){let t=(0,L.c)(10),{label:n,expanded:r,controls:i,onToggle:a}=e,o=n===void 0?`Complete sign-in in your browser.`:n,s=r!==void 0&&r;if(!a){let e;return t[0]===o?e=t[1]:(e=(0,R.jsx)(`div`,{className:`leading-relaxed`,children:o}),t[0]=o,t[1]=e),e}let c=`size-3 shrink-0 ${s?`rotate-90`:``}`,l;t[2]===c?l=t[3]:(l=(0,R.jsx)(_,{"aria-hidden":!0,className:c}),t[2]=c,t[3]=l);let u;return t[4]!==i||t[5]!==s||t[6]!==o||t[7]!==a||t[8]!==l?(u=(0,R.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-sm text-left leading-relaxed outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring`,"aria-label":`Having trouble signing in?`,"aria-expanded":s,"aria-controls":i,onClick:a,children:[o,l]}),t[4]=i,t[5]=s,t[6]=o,t[7]=a,t[8]=l,t[9]=u):u=t[9],u}function Le(e){let t=(0,L.c)(21),{title:n,description:r,control:i,secondaryControl:a,children:o}=e,s;t[0]===o?s=t[1]:(s=I.Children.toArray(o),t[0]=o,t[1]=s);let c=s,l;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,R.jsx)(k,{className:`size-5 shrink-0 fill-foreground`}),t[2]=l):l=t[2];let u;t[3]===n?u=t[4]:(u=(0,R.jsx)(`h3`,{className:`text-sm font-medium`,children:n}),t[3]=n,t[4]=u);let d;t[5]===r?d=t[6]:(d=(0,R.jsx)(`div`,{className:`mt-0.5 text-xs leading-relaxed text-muted-foreground`,children:r}),t[5]=r,t[6]=d);let f;t[7]!==u||t[8]!==d?(f=(0,R.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[u,d]}),t[7]=u,t[8]=d,t[9]=f):f=t[9];let p;t[10]!==i||t[11]!==a?(p=i||a?(0,R.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center justify-end gap-2 has-[button]:w-full has-[button]:flex-col-reverse has-[button]:items-end sm:has-[button]:w-auto sm:has-[button]:flex-row sm:has-[button]:items-center`,children:[a,i]}):null,t[10]=i,t[11]=a,t[12]=p):p=t[12];let m;t[13]!==f||t[14]!==p?(m=(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[l,f,p]}),t[13]=f,t[14]=p,t[15]=m):m=t[15];let h;t[16]===c?h=t[17]:(h=c.length>0?(0,R.jsx)(`div`,{className:`ml-8 mt-2 flex flex-wrap items-center gap-2`,children:c}):null,t[16]=c,t[17]=h);let g;return t[18]!==m||t[19]!==h?(g=(0,R.jsxs)(`div`,{className:`rounded-lg border border-border bg-background px-4 py-4`,children:[m,h]}),t[18]=m,t[19]=h,t[20]=g):g=t[20],g}function Re(e){return typeof e==`object`&&e&&`setupMode`in e&&e.setupMode===`managed`?`managed`:`existing`}export{ke as a,U as c,Oe as d,V as f,Ne as i,Te as l,Pe as n,H as o,z as p,W as r,je as s,Re as t,De as u};
2
- //# sourceMappingURL=CodexSetupSection.logic-B-Gs8BS6.js.map
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{NE as t,lE as n,sr as r,t as i}from"./utils-BgVDKR83.js";import{p as a}from"./toast-e2DHftFl.js";import{c as o,l as s,y as c}from"./tooltip-DRGG_vM1.js";var l=t(),u=e(n(),1);function d(e){let t=(0,l.c)(19),{command:n,className:d,prominent:f}=e,p=f!==void 0&&f,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m={timeout:1500,target:`command`},t[0]=m):m=t[0];let{copyToClipboard:h,isCopied:g}=a(m),_=p?`px-4 py-3.5 text-base`:`px-3 py-2.5 text-sm`,v;t[1]!==d||t[2]!==_?(v=i(`flex items-center justify-between gap-3 rounded-lg border border-border bg-muted/50 font-mono`,_,d),t[1]=d,t[2]=_,t[3]=v):v=t[3];let y;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,u.jsx)(`span`,{className:`mr-2 text-muted-foreground`,children:`$`}),t[4]=y):y=t[4];let b;t[5]===n?b=t[6]:(b=(0,u.jsxs)(`span`,{className:`min-w-0 truncate`,children:[y,n]}),t[5]=n,t[6]=b);let x;t[7]!==n||t[8]!==h?(x=()=>h(n,void 0),t[7]=n,t[8]=h,t[9]=x):x=t[9];let S=g?s:c,C;t[10]===S?C=t[11]:(C=(0,u.jsx)(o,{className:`size-3.5`,icon:S}),t[10]=S,t[11]=C);let w;t[12]!==x||t[13]!==C?(w=(0,u.jsx)(r,{size:`icon-xs`,variant:`ghost`,"aria-label":`Copy command`,onClick:x,children:C}),t[12]=x,t[13]=C,t[14]=w):w=t[14];let T;return t[15]!==w||t[16]!==v||t[17]!==b?(T=(0,u.jsxs)(`div`,{className:v,children:[b,w]}),t[15]=w,t[16]=v,t[17]=b,t[18]=T):T=t[18],T}export{d as t};
2
- //# sourceMappingURL=CommandBlock-BaaPOUD7.js.map
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$n as n,Dm as r,Fp as i,Gn as a,NE as o,Nf as s,Op as c,Qn as l,Um as u,Up as d,Xf as f,Yn as p,Zn as m,_d as h,er as g,fd as _,gd as v,kf as y,lE as b,nm as x,od as S,or as C,rm as w,sm as T,sr as E,t as D,tr as O,up as ee}from"./utils-BgVDKR83.js";import{a as k,c as A,o as j,s as M,t as N}from"./select-DWT2vKJH.js";import{t as te}from"./spinner-B1oJASgu.js";import{P as ne,R as re,a as ie,c as ae,n as oe,t as se}from"./tooltip-DRGG_vM1.js";import{t as P}from"./query-1tRB9OB0.js";import{t as F}from"./use-atom-command-BEpD82FZ.js";import{l as ce}from"./rightPanelStore-DNohe5X6.js";import{A as I}from"./PanelLayoutControls-Cyag4Tur.js";import{n as le,t as ue}from"./toggle-group-BWnqiNcg.js";import{t as L}from"./input-RCV7-UKX.js";import{t as R}from"./dialog-DWCEeJ2c.js";import{i as z,n as de,r as B,t as V}from"./device-D7crohVQ.js";import{a as H,i as U}from"./previewMiniPlayerStore-DX9IKNL3.js";import{c as fe,r as pe}from"./DeviceSetup-CKZmblju.js";import{n as me,t as W}from"./discovery-list-BaMSF62J.js";import{Fa as G,Ia as K,La as q,Ma as J,Pa as he}from"./main-Co3JeKTg.js";import{C as ge,_ as _e,v as ve,y as ye}from"./_chat-DcFCVkrG.js";var Y=e(t(),1),X=o(),be=class extends Error{status;constructor(e){super(`Screenshot capture failed (${e}). Try again.`),this.status=e}};async function xe(e,t){let n=e.platform===`ios`?`serve-sim`:`serve-emu`,r=H(`${e.access.httpBase}/vendor/${n}/api/screenshot?device=${encodeURIComponent(e.deviceId)}`,e.access),i=await fetch(r,{method:`POST`,credentials:e.access.credentials?`include`:`omit`,signal:AbortSignal.any([t,AbortSignal.timeout(2e4)])});if(!i.ok)throw new be(i.status);let a=await i.blob();if(!a.size)throw Error(`The device returned an empty screenshot. Try again.`);return a}var Z=e(b(),1);function Se(e){let t=(0,X.c)(94),{view:n,handle:o,controls:g}=e,v=g.detail?.settings,b=!o?.inputConnected,D=v?.appearance===`dark`?`light`:`dark`,k;t[0]===o?k=t[1]:(k=()=>o?.pressButton(`home`),t[0]=o,t[1]=k);let A;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,Z.jsx)(y,{}),t[2]=A):A=t[2];let j;t[3]!==b||t[4]!==k?(j=(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Home`,disabled:b,onClick:k,children:A}),t[3]=b,t[4]=k,t[5]=j):j=t[5];let M;t[6]!==g||t[7]!==o||t[8]!==b||t[9]!==e.platform||t[10]!==n.keyboard?.attached?(M=e.platform===`android`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Back`,disabled:b,onClick:()=>o?.pressButton(`back`),children:(0,Z.jsx)(h,{})}),(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Recents`,disabled:b,onClick:()=>o?.pressButton(`recents`),children:(0,Z.jsx)(T,{})}),(0,Z.jsxs)(a,{children:[(0,Z.jsx)(C,{render:(0,Z.jsx)(E,{size:`icon-sm`,variant:`ghost`,"aria-label":`Rotate device`,disabled:g.disabled}),children:(0,Z.jsx)(d,{})}),(0,Z.jsxs)(m,{side:`left`,children:[(0,Z.jsx)(p,{onClick:()=>void g.act({type:`setOrientation`,value:`portrait`}),children:`Portrait`}),(0,Z.jsx)(p,{onClick:()=>void g.act({type:`setOrientation`,value:`landscape_left`}),children:`Landscape`})]})]})]}):(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Rotate device`,disabled:b||!!n.keyboard?.attached,onClick:()=>o?.rotate(),children:(0,Z.jsx)(d,{})}),t[6]=g,t[7]=o,t[8]=b,t[9]=e.platform,t[10]=n.keyboard?.attached,t[11]=M):M=t[11];let N;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,Z.jsx)(we,{}),t[12]=N):N=t[12];let te=`Switch device to ${D} mode`,ie=g.disabled||!v?.appearance,oe;t[13]!==g||t[14]!==D?(oe=()=>void g.act({type:`setAppearance`,value:D}),t[13]=g,t[14]=D,t[15]=oe):oe=t[15];let se=v?.appearance===`dark`?re:ne,P;t[16]===se?P=t[17]:(P=(0,Z.jsx)(ae,{icon:se}),t[16]=se,t[17]=P);let F;t[18]!==te||t[19]!==ie||t[20]!==oe||t[21]!==P?(F=(0,Z.jsx)(Te,{tooltipSide:`left`,label:te,disabled:ie,onClick:oe,children:P}),t[18]=te,t[19]=ie,t[20]=oe,t[21]=P,t[22]=F):F=t[22];let ce=g.disabled||!v?.textSize,I;t[23]===ce?I=t[24]:(I=(0,Z.jsx)(E,{size:`icon-sm`,variant:`ghost`,"aria-label":`Device text size`,title:`Device text size`,disabled:ce}),t[23]=ce,t[24]=I);let le;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,Z.jsx)(r,{}),t[25]=le):le=t[25];let ue;t[26]===I?ue=t[27]:(ue=(0,Z.jsx)(C,{render:I,children:le}),t[26]=I,t[27]=ue);let L=v?.textSize??``,R;t[28]===g?R=t[29]:(R=e=>{(e===`small`||e==="default"||e===`large`||e===`extra-large`)&&g.act({type:`setTextSize`,value:e})},t[28]=g,t[29]=R);let z;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(z=[[`small`,`Small`],[`default`,`Default`],[`large`,`Large`],[`extra-large`,`Extra large`]],t[30]=z):z=t[30];let de;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(de=z.map(Ce),t[31]=de):de=t[31];let B;t[32]!==L||t[33]!==R?(B=(0,Z.jsx)(m,{side:`left`,className:`min-w-40`,children:(0,Z.jsx)(l,{value:L,onValueChange:R,children:de})}),t[32]=L,t[33]=R,t[34]=B):B=t[34];let V;t[35]!==ue||t[36]!==B?(V=(0,Z.jsxs)(a,{children:[ue,B]}),t[35]=ue,t[36]=B,t[37]=V):V=t[37];let H;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,Z.jsx)(x,{}),t[38]=H):H=t[38];let U;t[39]!==e.onTools||t[40]!==e.toolsOpen?(U=(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Device tools`,pressed:e.toolsOpen,onClick:e.onTools,children:H}),t[39]=e.onTools,t[40]=e.toolsOpen,t[41]=U):U=t[41];let fe=e.screenshotPending?`Capturing screenshot`:`Save screenshot`,pe=!n.streaming||e.screenshotPending,me;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,Z.jsx)(_,{}),t[42]=me):me=t[42];let W;t[43]!==e.onScreenshot||t[44]!==fe||t[45]!==pe?(W=(0,Z.jsx)(Te,{tooltipSide:`left`,label:fe,disabled:pe,onClick:e.onScreenshot,children:me}),t[43]=e.onScreenshot,t[44]=fe,t[45]=pe,t[46]=W):W=t[46];let G;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,Z.jsx)(C,{render:(0,Z.jsx)(E,{size:`icon-sm`,variant:`ghost`,"aria-label":`More device actions`,title:`More device actions`}),children:(0,Z.jsx)(ee,{})}),t[47]=G):G=t[47];let K;t[48]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Z.jsx)(c,{}),t[48]=K):K=t[48];let q;t[49]===e.onFloat?q=t[50]:(q=(0,Z.jsxs)(p,{onClick:e.onFloat,children:[K,`Float device over chat`]}),t[49]=e.onFloat,t[50]=q);let J;t[51]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,Z.jsx)(u,{}),t[51]=J):J=t[51];let he;t[52]===e.onClose?he=t[53]:(he=(0,Z.jsxs)(p,{onClick:e.onClose,children:[J,`Close device panel`]}),t[52]=e.onClose,t[53]=he);let ge;t[54]===Symbol.for(`react.memo_cache_sentinel`)?(ge=(0,Z.jsx)(O,{}),t[54]=ge):ge=t[54];let _e;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(_e=(0,Z.jsx)(i,{}),t[55]=_e):_e=t[55];let ve;t[56]===e.onPowerOff?ve=t[57]:(ve=(0,Z.jsxs)(p,{variant:`destructive`,onClick:e.onPowerOff,children:[_e,`Power off device`]}),t[56]=e.onPowerOff,t[57]=ve);let ye;t[58]!==q||t[59]!==he||t[60]!==ve?(ye=(0,Z.jsxs)(a,{children:[G,(0,Z.jsxs)(m,{side:`left`,align:`end`,children:[q,he,ge,ve]})]}),t[58]=q,t[59]=he,t[60]=ve,t[61]=ye):ye=t[61];let Y;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,Z.jsx)(we,{}),t[62]=Y):Y=t[62];let be=!n.streaming||!!n.phoneUnavailableReason,xe=n.phoneUnavailableReason??void 0,Se;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Se=(0,Z.jsx)(S,{}),t[63]=Se):Se=t[63];let Ee;t[64]!==be||t[65]!==xe||t[66]!==n.phone||t[67]!==n.showPhone?(Ee=(0,Z.jsx)(Te,{tooltipSide:`left`,label:`3D view`,pressed:n.phone,disabled:be,description:xe,onClick:n.showPhone,children:Se}),t[64]=be,t[65]=xe,t[66]=n.phone,t[67]=n.showPhone,t[68]=Ee):Ee=t[68];let De=!n.phone,Oe=!n.streaming,ke;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,Z.jsx)(w,{}),t[69]=ke):ke=t[69];let Ae;t[70]!==De||t[71]!==Oe||t[72]!==n.showFlat?(Ae=(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Flat view`,pressed:De,disabled:Oe,onClick:n.showFlat,children:ke}),t[70]=De,t[71]=Oe,t[72]=n.showFlat,t[73]=Ae):Ae=t[73];let je;t[74]===n.keyboard?je=t[75]:(je=n.keyboard?(0,Z.jsx)(Te,{tooltipSide:`left`,label:n.keyboard.attached?`Detach Magic Keyboard`:`Attach Magic Keyboard`,pressed:n.keyboard.attached,onClick:n.keyboard.toggle,children:(0,Z.jsx)(s,{})}):null,t[74]=n.keyboard,t[75]=je);let Me;t[76]!==n.phone||t[77]!==n.resetView?(Me=n.phone?(0,Z.jsx)(Te,{tooltipSide:`left`,label:`Restore 3D view`,onClick:n.resetView,children:(0,Z.jsx)(f,{})}):null,t[76]=n.phone,t[77]=n.resetView,t[78]=Me):Me=t[78];let Q;t[79]!==F||t[80]!==j||t[81]!==V||t[82]!==U||t[83]!==W||t[84]!==M||t[85]!==ye||t[86]!==Ee||t[87]!==Ae||t[88]!==je||t[89]!==Me?(Q=(0,Z.jsxs)(`div`,{className:`pointer-events-auto flex shrink-0 flex-col items-center gap-1 overflow-y-auto rounded-full border border-border/50 bg-background/80 p-2 shadow-sm [scrollbar-width:none]`,children:[j,M,N,F,V,U,W,ye,Y,Ee,Ae,je,Me]}),t[79]=F,t[80]=j,t[81]=V,t[82]=U,t[83]=W,t[84]=M,t[85]=ye,t[86]=Ee,t[87]=Ae,t[88]=je,t[89]=Me,t[90]=Q):Q=t[90];let $;return t[91]!==Q||t[92]!==n.foldingControls?($=(0,Z.jsxs)(`aside`,{"aria-label":`Device controls`,"data-layout":`rail`,className:`pointer-events-none absolute inset-y-0 right-0 z-10 flex w-14 flex-col items-center gap-2 overflow-y-auto [justify-content:safe_center] py-3 pr-2 [scrollbar-width:none]`,children:[Q,n.foldingControls]}),t[91]=Q,t[92]=n.foldingControls,t[93]=$):$=t[93],$}function Ce(e){let[t,r]=e;return(0,Z.jsx)(n,{value:t,children:(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`flex-1`,children:r}),(0,Z.jsx)(g,{})]})},t)}function we(){let e=(0,X.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Z.jsx)(`div`,{"aria-hidden":!0,className:`my-1 h-px w-5 shrink-0 bg-border/70`}),e[0]=t):t=e[0],t}function Te(e){let t=(0,X.c)(18),n=e.pressed?`secondary`:`ghost`,r;t[0]!==e.children||t[1]!==e.disabled||t[2]!==e.label||t[3]!==e.onClick||t[4]!==e.pressed||t[5]!==n?(r=(0,Z.jsx)(E,{size:`icon-sm`,variant:n,"aria-label":e.label,"aria-pressed":e.pressed,disabled:e.disabled,onClick:e.onClick,children:e.children}),t[0]=e.children,t[1]=e.disabled,t[2]=e.label,t[3]=e.onClick,t[4]=e.pressed,t[5]=n,t[6]=r):r=t[6];let i=r,a;t[7]!==i||t[8]!==e.description||t[9]!==e.disabled||t[10]!==e.label?(a=e.disabled&&e.description?(0,Z.jsx)(ie,{render:(0,Z.jsx)(`span`,{className:`inline-flex`,tabIndex:0,role:`group`,"aria-label":e.label}),children:i}):(0,Z.jsx)(ie,{render:i}),t[7]=i,t[8]=e.description,t[9]=e.disabled,t[10]=e.label,t[11]=a):a=t[11];let o=e.description??e.label,s;t[12]!==e.tooltipSide||t[13]!==o?(s=(0,Z.jsx)(oe,{side:e.tooltipSide,children:o}),t[12]=e.tooltipSide,t[13]=o,t[14]=s):s=t[14];let c;return t[15]!==a||t[16]!==s?(c=(0,Z.jsxs)(se,{children:[a,s]}),t[15]=a,t[16]=s,t[17]=c):c=t[17],c}var Ee=[{value:`small`,label:`Small`},{value:`default`,label:`Default`},{value:`large`,label:`Large`},{value:`extra-large`,label:`Extra large`}],De=[{value:`none`,label:`None`},{value:`grayscale`,label:`Grayscale`},{value:`red-green`,label:`Red / green (protanopia)`},{value:`green-red`,label:`Green / red (deuteranopia)`},{value:`blue-yellow`,label:`Blue / yellow (tritanopia)`}],Oe=[{value:`portrait`,label:`Portrait`},{value:`landscape_left`,label:`Landscape left`},{value:`portrait_upside_down`,label:`Upside down`},{value:`landscape_right`,label:`Landscape right`}],ke=[{value:`camera`,label:`Camera`},{value:`microphone`,label:`Microphone`},{value:`photos`,label:`Photos`},{value:`contacts`,label:`Contacts`},{value:`calendar`,label:`Calendar`},{value:`reminders`,label:`Reminders`},{value:`location`,label:`Location`},{value:`notifications`,label:`Notifications`},{value:`motion`,label:`Motion`},{value:`media-library`,label:`Media library`},{value:`faceid`,label:`Face ID`}],Ae=[{value:`camera`,label:`Camera`},{value:`microphone`,label:`Microphone`},{value:`photos`,label:`Photos`},{value:`contacts`,label:`Contacts`},{value:`calendar`,label:`Calendar`},{value:`location`,label:`Location`},{value:`notifications`,label:`Notifications`},{value:`motion`,label:`Physical activity`}],je=[{label:`San Francisco`,latitude:37.7749,longitude:-122.4194},{label:`New York`,latitude:40.7128,longitude:-74.006},{label:`London`,latitude:51.5074,longitude:-.1278},{label:`Stockholm`,latitude:59.3293,longitude:18.0686},{label:`Tokyo`,latitude:35.6762,longitude:139.6503}];function Me(e){let t=(0,X.c)(129),{device:n,controls:r}=e,{detail:i,pending:a,error:o,foregroundApp:s,disabled:c,act:l}=r,d=i?.settings,f=n.platform===`ios`,p;t[0]===e.className?p=t[1]:(p=D(`flex min-h-0 flex-col border-border bg-background text-sm`,e.className),t[0]=e.className,t[1]=p);let m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,Z.jsx)(`span`,{className:`font-medium`,children:`Tools`}),t[2]=m):m=t[2];let h;t[3]===a?h=t[4]:(h=a?(0,Z.jsx)(te,{size:`sm`}):null,t[3]=a,t[4]=h);let g;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Z.jsx)(u,{}),t[5]=g):g=t[5];let _;t[6]===e.onClose?_=t[7]:(_=(0,Z.jsx)(E,{size:`icon-xs`,variant:`ghost-muted`,"aria-label":`Close tools`,className:`ml-auto`,onClick:e.onClose,children:g}),t[6]=e.onClose,t[7]=_);let v;t[8]!==h||t[9]!==_?(v=(0,Z.jsxs)(`div`,{className:`flex h-9 shrink-0 items-center gap-2 border-b px-3`,children:[m,h,_]}),t[8]=h,t[9]=_,t[10]=v):v=t[10];let y;t[11]===o?y=t[12]:(y=o?(0,Z.jsx)(`p`,{className:`border-b bg-destructive/10 px-3 py-2 text-xs text-destructive`,children:o}):null,t[11]=o,t[12]=y);let b;t[13]!==i||t[14]!==o?(b=i===null&&!o?(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-3 text-xs text-muted-foreground`,children:[(0,Z.jsx)(te,{size:`sm`}),` Reading device settings…`]}):null,t[13]=i,t[14]=o,t[15]=b):b=t[15];let x;t[16]===e.hostDiagnostics?x=t[17]:(x=e.hostDiagnostics?(0,Z.jsx)(Q,{title:`Host diagnostics`,children:(0,Z.jsx)(`p`,{className:`whitespace-pre-line text-xs text-muted-foreground`,children:e.hostDiagnostics})}):null,t[16]=e.hostDiagnostics,t[17]=x);let S=s?.id??`—`,C;t[18]===S?C=t[19]:(C=(0,Z.jsx)($,{label:`Foreground`,children:(0,Z.jsx)(`span`,{className:`truncate font-mono text-xs`,children:S})}),t[18]=S,t[19]=C);let w;t[20]!==l||t[21]!==c||t[22]!==s?(w=s?(0,Z.jsxs)(`div`,{className:`flex gap-1.5`,children:[(0,Z.jsx)(E,{size:`xs`,variant:`outline`,disabled:c,onClick:()=>void l({type:`terminateApp`,appId:s.id}),children:`Terminate`}),(0,Z.jsx)(E,{size:`xs`,variant:`outline`,disabled:c,onClick:()=>void l({type:`launchApp`,appId:s.id}),children:`Relaunch`})]}):null,t[20]=l,t[21]=c,t[22]=s,t[23]=w):w=t[23];let T;t[24]===l?T=t[25]:(T=e=>l({type:`openUrl`,url:e}),t[24]=l,t[25]=T);let O;t[26]!==c||t[27]!==T?(O=(0,Z.jsx)(Ie,{placeholder:`https://… or myapp://`,action:`Open`,disabled:c,onSubmit:T}),t[26]=c,t[27]=T,t[28]=O):O=t[28];let ee=f?`Bundle ID to launch`:`Package name to launch`,k;t[29]===l?k=t[30]:(k=e=>l({type:`launchApp`,appId:e}),t[29]=l,t[30]=k);let A;t[31]!==c||t[32]!==ee||t[33]!==k?(A=(0,Z.jsx)(Ie,{placeholder:ee,action:`Launch`,disabled:c,onSubmit:k}),t[31]=c,t[32]=ee,t[33]=k,t[34]=A):A=t[34];let j;t[35]!==C||t[36]!==w||t[37]!==O||t[38]!==A?(j=(0,Z.jsxs)(Q,{title:`App`,children:[C,w,O,A]}),t[35]=C,t[36]=w,t[37]=O,t[38]=A,t[39]=j):j=t[39];let M=f?`Simulator`:`Emulator`,N;t[40]===d?N=t[41]:(N=d?.appearance?[d.appearance]:[],t[40]=d,t[41]=N);let ne;t[42]===l?ne=t[43]:(ne=e=>{let t=e[0];(t===`light`||t===`dark`)&&l({type:`setAppearance`,value:t})},t[42]=l,t[43]=ne);let re,ie;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,Z.jsx)(ue,{value:`light`,children:`Light`}),ie=(0,Z.jsx)(ue,{value:`dark`,children:`Dark`}),t[44]=re,t[45]=ie):(re=t[44],ie=t[45]);let ae;t[46]!==c||t[47]!==N||t[48]!==ne?(ae=(0,Z.jsx)($,{label:`Appearance`,children:(0,Z.jsxs)(le,{"aria-label":`Appearance`,value:N,disabled:c,onValueChange:ne,children:[re,ie]})}),t[46]=c,t[47]=N,t[48]=ne,t[49]=ae):ae=t[49];let oe=d?.textSize??null,se;t[50]===l?se=t[51]:(se=e=>l({type:`setTextSize`,value:e}),t[50]=l,t[51]=se);let P;t[52]!==c||t[53]!==oe||t[54]!==se?(P=(0,Z.jsx)($,{label:`Text size`,children:(0,Z.jsx)(Pe,{ariaLabel:`Text size`,value:oe,options:Ee,disabled:c,onChange:se})}),t[52]=c,t[53]=oe,t[54]=se,t[55]=P):P=t[55];let F;t[56]!==l||t[57]!==c||t[58]!==f||t[59]!==d?(F=f?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)($,{label:`Liquid Glass`,children:(0,Z.jsxs)(le,{"aria-label":`Liquid Glass`,value:d?.liquidGlass?[d.liquidGlass]:[],disabled:c||d?.liquidGlass===void 0,onValueChange:e=>{let t=e[0];(t===`clear`||t===`tinted`)&&l({type:`setLiquidGlass`,value:t})},children:[(0,Z.jsx)(ue,{value:`clear`,children:`Clear`}),(0,Z.jsx)(ue,{value:`tinted`,children:`Tinted`})]})}),(0,Z.jsx)($,{label:`Color filter`,children:(0,Z.jsx)(Pe,{ariaLabel:`Color filter`,value:d?.colorFilter??null,options:De,disabled:c,onChange:e=>l({type:`setColorFilter`,value:e})})})]}):(0,Z.jsx)($,{label:`Orientation`,children:(0,Z.jsx)(Pe,{ariaLabel:`Orientation`,value:null,placeholder:`Rotate to…`,options:Oe,disabled:c,onChange:e=>l({type:`setOrientation`,value:e})})}),t[56]=l,t[57]=c,t[58]=f,t[59]=d,t[60]=F):F=t[60];let ce=d?.reduceMotion,I;t[61]===l?I=t[62]:(I=e=>l({type:`setToggle`,setting:`reduceMotion`,value:e}),t[61]=l,t[62]=I);let L;t[63]!==c||t[64]!==ce||t[65]!==I?(L=(0,Z.jsx)(Ne,{label:`Reduce Motion`,checked:ce,disabled:c,onChange:I}),t[63]=c,t[64]=ce,t[65]=I,t[66]=L):L=t[66];let R;t[67]!==l||t[68]!==c||t[69]!==f||t[70]!==d?.increaseContrast||t[71]!==d?.networkEnabled||t[72]!==d?.reduceTransparency||t[73]!==d?.showBorders||t[74]!==d?.voiceOver?(R=f?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ne,{label:`Increase Contrast`,checked:d?.increaseContrast,disabled:c,onChange:e=>l({type:`setToggle`,setting:`increaseContrast`,value:e})}),(0,Z.jsx)(Ne,{label:`Reduce Transparency`,checked:d?.reduceTransparency,disabled:c,onChange:e=>l({type:`setToggle`,setting:`reduceTransparency`,value:e})}),(0,Z.jsx)(Ne,{label:`Show Borders`,checked:d?.showBorders,disabled:c,onChange:e=>l({type:`setToggle`,setting:`showBorders`,value:e})}),(0,Z.jsx)(Ne,{label:`VoiceOver`,checked:d?.voiceOver,disabled:c,onChange:e=>l({type:`setToggle`,setting:`voiceOver`,value:e})})]}):(0,Z.jsx)(Ne,{label:`Network`,checked:d?.networkEnabled,disabled:c,onChange:e=>l({type:`setToggle`,setting:`networkEnabled`,value:e})}),t[67]=l,t[68]=c,t[69]=f,t[70]=d?.increaseContrast,t[71]=d?.networkEnabled,t[72]=d?.reduceTransparency,t[73]=d?.showBorders,t[74]=d?.voiceOver,t[75]=R):R=t[75];let z;t[76]!==M||t[77]!==ae||t[78]!==P||t[79]!==F||t[80]!==L||t[81]!==R?(z=(0,Z.jsxs)(Q,{title:M,children:[ae,P,F,L,R]}),t[76]=M,t[77]=ae,t[78]=P,t[79]=F,t[80]=L,t[81]=R,t[82]=z):z=t[82];let de=e.access===null,B;t[83]===e?B=t[84]:(B=t=>(e.onAxOverlayChange(t),Promise.resolve()),t[83]=e,t[84]=B);let V;t[85]!==e.axOverlay||t[86]!==de||t[87]!==B?(V=(0,Z.jsx)(Q,{title:`Accessibility`,children:(0,Z.jsx)(Ne,{label:`Overlay element frames`,checked:e.axOverlay,disabled:de,onChange:B})}),t[85]=e.axOverlay,t[86]=de,t[87]=B,t[88]=V):V=t[88];let H,U;t[89]===l?(H=t[90],U=t[91]):(H=(e,t)=>l({type:`setLocation`,latitude:e,longitude:t}),U=()=>l({type:`clearLocation`}),t[89]=l,t[90]=H,t[91]=U);let fe;t[92]!==c||t[93]!==f||t[94]!==H||t[95]!==U?(fe=(0,Z.jsx)(Le,{disabled:c,canClear:f,onSet:H,onClear:U}),t[92]=c,t[93]=f,t[94]=H,t[95]=U,t[96]=fe):fe=t[96];let pe=f?ke:Ae,me=s?.id??``,W;t[97]===l?W=t[98]:(W=(e,t,n)=>l({type:`setPermission`,appId:e,permission:t,decision:n}),t[97]=l,t[98]=W);let G;t[99]!==c||t[100]!==f||t[101]!==pe||t[102]!==me||t[103]!==W?(G=(0,Z.jsx)(ze,{permissions:pe,canReset:f,defaultAppId:me,disabled:c,onDecide:W}),t[99]=c,t[100]=f,t[101]=pe,t[102]=me,t[103]=W,t[104]=G):G=t[104];let K;t[105]!==l||t[106]!==c||t[107]!==s||t[108]!==f?(K=f?(0,Z.jsxs)(Q,{title:`Push notification`,children:[(0,Z.jsx)(Ie,{placeholder:`Alert text`,action:`Send`,disabled:c||!s,onSubmit:e=>s?l({type:`sendPush`,appId:s.id,payload:e}):Promise.resolve()}),s?null:(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Open an app first.`})]}):null,t[105]=l,t[106]=c,t[107]=s,t[108]=f,t[109]=K):K=t[109];let q;t[110]!==n||t[111]!==f||t[112]!==e.access?(q=f&&e.access?(0,Z.jsx)(Ve,{access:e.access,device:n}):null,t[110]=n,t[111]=f,t[112]=e.access,t[113]=q):q=t[113];let J;t[114]!==j||t[115]!==z||t[116]!==V||t[117]!==fe||t[118]!==G||t[119]!==K||t[120]!==q||t[121]!==y||t[122]!==b||t[123]!==x?(J=(0,Z.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:[y,b,x,j,z,V,fe,G,K,q]}),t[114]=j,t[115]=z,t[116]=V,t[117]=fe,t[118]=G,t[119]=K,t[120]=q,t[121]=y,t[122]=b,t[123]=x,t[124]=J):J=t[124];let he;return t[125]!==p||t[126]!==J||t[127]!==v?(he=(0,Z.jsxs)(`div`,{className:p,children:[v,J]}),t[125]=p,t[126]=J,t[127]=v,t[128]=he):he=t[128],he}function Q(e){let t=(0,X.c)(5),n;t[0]===e.title?n=t[1]:(n=(0,Z.jsx)(`h3`,{className:`text-xs font-medium text-muted-foreground`,children:e.title}),t[0]=e.title,t[1]=n);let r;return t[2]!==e.children||t[3]!==n?(r=(0,Z.jsxs)(`section`,{className:`flex flex-col gap-2 border-b px-3 py-2.5 last:border-b-0`,children:[n,e.children]}),t[2]=e.children,t[3]=n,t[4]=r):r=t[4],r}function $(e){let t=(0,X.c)(7),n;t[0]===e.label?n=t[1]:(n=(0,Z.jsx)(`span`,{className:`shrink-0 text-xs text-muted-foreground`,children:e.label}),t[0]=e.label,t[1]=n);let r;t[2]===e.children?r=t[3]:(r=(0,Z.jsx)(`div`,{className:`flex min-w-0 items-center justify-end`,children:e.children}),t[2]=e.children,t[3]=r);let i;return t[4]!==n||t[5]!==r?(i=(0,Z.jsxs)(`div`,{className:`flex min-h-7 items-center justify-between gap-3`,children:[n,r]}),t[4]=n,t[5]=r,t[6]=i):i=t[6],i}function Ne(e){let t=(0,X.c)(10),n=e.checked??!1,r=e.disabled||e.checked===void 0,i;t[0]===e?i=t[1]:(i=t=>void e.onChange(t),t[0]=e,t[1]=i);let a;t[2]!==e.label||t[3]!==n||t[4]!==r||t[5]!==i?(a=(0,Z.jsx)(q,{size:`sm`,"aria-label":e.label,checked:n,disabled:r,onCheckedChange:i}),t[2]=e.label,t[3]=n,t[4]=r,t[5]=i,t[6]=a):a=t[6];let o;return t[7]!==e.label||t[8]!==a?(o=(0,Z.jsx)($,{label:e.label,children:a}),t[7]=e.label,t[8]=a,t[9]=o):o=t[9],o}function Pe(e){let t=(0,X.c)(25),n;if(t[0]!==e.options||t[1]!==e.value){let r;t[3]===e.value?r=t[4]:(r=t=>t.value===e.value,t[3]=e.value,t[4]=r),n=e.options.find(r),t[0]=e.options,t[1]=e.value,t[2]=n}else n=t[2];let r=n,i=e.value,a=e.disabled,o;t[5]===e?o=t[6]:(o=t=>{t!==null&&t!==e.value&&e.onChange(t)},t[5]=e,t[6]=o);let s;t[7]!==r||t[8]!==e.placeholder?(s=r?r.label:(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:e.placeholder??`Unknown`}),t[7]=r,t[8]=e.placeholder,t[9]=s):s=t[9];let c;t[10]===s?c=t[11]:(c=(0,Z.jsx)(A,{children:s}),t[10]=s,t[11]=c);let l;t[12]!==e.ariaLabel||t[13]!==c?(l=(0,Z.jsx)(M,{size:`xs`,className:`w-40`,"aria-label":e.ariaLabel,children:c}),t[12]=e.ariaLabel,t[13]=c,t[14]=l):l=t[14];let u;t[15]===e.options?u=t[16]:(u=e.options.map(Fe),t[15]=e.options,t[16]=u);let d;t[17]===u?d=t[18]:(d=(0,Z.jsx)(j,{align:`end`,alignItemWithTrigger:!1,children:u}),t[17]=u,t[18]=d);let f;return t[19]!==e.disabled||t[20]!==e.value||t[21]!==o||t[22]!==l||t[23]!==d?(f=(0,Z.jsxs)(N,{value:i,disabled:a,onValueChange:o,children:[l,d]}),t[19]=e.disabled,t[20]=e.value,t[21]=o,t[22]=l,t[23]=d,t[24]=f):f=t[24],f}function Fe(e){return(0,Z.jsx)(k,{value:e.value,children:e.label},e.value)}function Ie(e){let t=(0,X.c)(20),[n,r]=(0,Y.useState)(``),i;t[0]!==e||t[1]!==n?(i=()=>{let t=n.trim();t&&e.onSubmit(t).then(()=>r(``))},t[0]=e,t[1]=n,t[2]=i):i=t[2];let a=i,o;t[3]===a?o=t[4]:(o=e=>{e.preventDefault(),a()},t[3]=a,t[4]=o);let s;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=e=>r(e.target.value),t[5]=s):s=t[5];let c;t[6]!==e.disabled||t[7]!==e.placeholder||t[8]!==n?(c=(0,Z.jsx)(L,{size:`compact`,font:`mono`,className:`min-w-0 flex-1`,placeholder:e.placeholder,value:n,disabled:e.disabled,onChange:s}),t[6]=e.disabled,t[7]=e.placeholder,t[8]=n,t[9]=c):c=t[9];let l;t[10]!==e.disabled||t[11]!==n?(l=e.disabled||n.trim().length===0,t[10]=e.disabled,t[11]=n,t[12]=l):l=t[12];let u;t[13]!==e.action||t[14]!==l?(u=(0,Z.jsx)(E,{type:`submit`,size:`xs`,variant:`outline`,disabled:l,children:e.action}),t[13]=e.action,t[14]=l,t[15]=u):u=t[15];let d;return t[16]!==o||t[17]!==c||t[18]!==u?(d=(0,Z.jsxs)(`form`,{className:`flex gap-1.5`,onSubmit:o,children:[c,u]}),t[16]=o,t[17]=c,t[18]=u,t[19]=d):d=t[19],d}function Le(e){let t=(0,X.c)(40),[n,r]=(0,Y.useState)(``),[i,a]=(0,Y.useState)(``),o=Number(n),s=Number(i),c,l;t[0]!==n||t[1]!==i||t[2]!==o||t[3]!==s?(c={latitude:o,longitude:s},l=n.trim()!==``&&i.trim()!==``&&Math.abs(c.latitude)<=90&&Math.abs(c.longitude)<=180,t[0]=n,t[1]=i,t[2]=o,t[3]=s,t[4]=c,t[5]=l):(c=t[4],l=t[5]);let u=l,d;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>r(e.target.value),t[6]=d):d=t[6];let f;t[7]!==n||t[8]!==e.disabled?(f=(0,Z.jsx)(L,{size:`compact`,font:`mono`,className:`min-w-0 flex-1`,placeholder:`Latitude`,inputMode:`decimal`,value:n,disabled:e.disabled,onChange:d}),t[7]=n,t[8]=e.disabled,t[9]=f):f=t[9];let p;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>a(e.target.value),t[10]=p):p=t[10];let m;t[11]!==i||t[12]!==e.disabled?(m=(0,Z.jsx)(L,{size:`compact`,font:`mono`,className:`min-w-0 flex-1`,placeholder:`Longitude`,inputMode:`decimal`,value:i,disabled:e.disabled,onChange:p}),t[11]=i,t[12]=e.disabled,t[13]=m):m=t[13];let h;t[14]!==f||t[15]!==m?(h=(0,Z.jsxs)(`div`,{className:`flex gap-1.5`,children:[f,m]}),t[14]=f,t[15]=m,t[16]=h):h=t[16];let g;t[17]===e?g=t[18]:(g=t=>{let n=je.find(e=>e.label===t);n&&(r(String(n.latitude)),a(String(n.longitude)),e.onSet(n.latitude,n.longitude))},t[17]=e,t[18]=g);let _;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,Z.jsx)(M,{size:`xs`,className:`w-32`,"aria-label":`Location preset`,children:(0,Z.jsx)(A,{children:(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:`Preset…`})})}),t[19]=_):_=t[19];let v;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(v=(0,Z.jsx)(j,{align:`start`,alignItemWithTrigger:!1,children:je.map(Re)}),t[20]=v):v=t[20];let y;t[21]!==e.disabled||t[22]!==g?(y=(0,Z.jsxs)(N,{value:null,disabled:e.disabled,onValueChange:g,children:[_,v]}),t[21]=e.disabled,t[22]=g,t[23]=y):y=t[23];let b=e.disabled||!u,x;t[24]!==c.latitude||t[25]!==c.longitude||t[26]!==e?(x=()=>void e.onSet(c.latitude,c.longitude),t[24]=c.latitude,t[25]=c.longitude,t[26]=e,t[27]=x):x=t[27];let S;t[28]!==b||t[29]!==x?(S=(0,Z.jsx)(E,{size:`xs`,variant:`outline`,disabled:b,onClick:x,children:`Set`}),t[28]=b,t[29]=x,t[30]=S):S=t[30];let C;t[31]===e?C=t[32]:(C=e.canClear?(0,Z.jsx)(E,{size:`xs`,variant:`ghost`,disabled:e.disabled,onClick:()=>{r(``),a(``),e.onClear()},children:`Clear`}):null,t[31]=e,t[32]=C);let w;t[33]!==y||t[34]!==S||t[35]!==C?(w=(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[y,S,C]}),t[33]=y,t[34]=S,t[35]=C,t[36]=w):w=t[36];let T;return t[37]!==w||t[38]!==h?(T=(0,Z.jsxs)(Q,{title:`Location`,children:[h,w]}),t[37]=w,t[38]=h,t[39]=T):T=t[39],T}function Re(e){return(0,Z.jsx)(k,{value:e.label,children:e.label},e.label)}function ze(e){let t=(0,X.c)(40),[n,r]=(0,Y.useState)(``),[i,a]=(0,Y.useState)(`camera`),o;t[0]!==n||t[1]!==e.defaultAppId?(o=n.trim()||e.defaultAppId,t[0]=n,t[1]=e.defaultAppId,t[2]=o):o=t[2];let s=o,c;t[3]!==i||t[4]!==e||t[5]!==s?(c=t=>void e.onDecide(s,i,t),t[3]=i,t[4]=e,t[5]=s,t[6]=c):c=t[6];let l=c,u=e.defaultAppId||`App ID`,d;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>r(e.target.value),t[7]=d):d=t[7];let f;t[8]!==n||t[9]!==e.disabled||t[10]!==u?(f=(0,Z.jsx)(L,{size:`compact`,font:`mono`,placeholder:u,value:n,disabled:e.disabled,onChange:d}),t[8]=n,t[9]=e.disabled,t[10]=u,t[11]=f):f=t[11];let p;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>(a(e),Promise.resolve()),t[12]=p):p=t[12];let m;t[13]!==i||t[14]!==e.disabled||t[15]!==e.permissions?(m=(0,Z.jsx)(Pe,{ariaLabel:`Permission`,value:i,options:e.permissions,disabled:e.disabled,onChange:p}),t[13]=i,t[14]=e.disabled,t[15]=e.permissions,t[16]=m):m=t[16];let h=e.disabled||!s,g;t[17]===l?g=t[18]:(g=()=>l(`grant`),t[17]=l,t[18]=g);let _;t[19]!==h||t[20]!==g?(_=(0,Z.jsx)(E,{size:`xs`,variant:`outline`,disabled:h,onClick:g,children:`Grant`}),t[19]=h,t[20]=g,t[21]=_):_=t[21];let v=e.disabled||!s,y;t[22]===l?y=t[23]:(y=()=>l(`revoke`),t[22]=l,t[23]=y);let b;t[24]!==v||t[25]!==y?(b=(0,Z.jsx)(E,{size:`xs`,variant:`outline`,disabled:v,onClick:y,children:`Revoke`}),t[24]=v,t[25]=y,t[26]=b):b=t[26];let x;t[27]!==l||t[28]!==e.canReset||t[29]!==e.disabled||t[30]!==s?(x=e.canReset?(0,Z.jsx)(E,{size:`xs`,variant:`ghost`,disabled:e.disabled||!s,onClick:()=>l(`reset`),children:`Reset`}):null,t[27]=l,t[28]=e.canReset,t[29]=e.disabled,t[30]=s,t[31]=x):x=t[31];let S;t[32]!==b||t[33]!==x||t[34]!==m||t[35]!==_?(S=(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[m,_,b,x]}),t[32]=b,t[33]=x,t[34]=m,t[35]=_,t[36]=S):S=t[36];let C;return t[37]!==S||t[38]!==f?(C=(0,Z.jsxs)(Q,{title:`Permissions`,children:[f,S]}),t[37]=S,t[38]=f,t[39]=C):C=t[39],C}var Be=100;function Ve(e){let t=(0,X.c)(19),[n,r]=(0,Y.useState)(!1),i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=[],t[0]=i):i=t[0];let[a,o]=(0,Y.useState)(i),s,c;t[1]!==n||t[2]!==e.access||t[3]!==e.device.id||t[4]!==e.device.platform?(s=()=>{if(!n)return;let t=ve({access:e.access,platform:e.device.platform,deviceId:e.device.id},(e,t)=>{o(n=>{let r=t?[...e]:[...n,...e];return r.length>Be?r.slice(-100):r})});return()=>{t(),o([])}},c=[n,e.access,e.device.id,e.device.platform],t[1]=n,t[2]=e.access,t[3]=e.device.id,t[4]=e.device.platform,t[5]=s,t[6]=c):(s=t[5],c=t[6]),(0,Y.useEffect)(s,c);let l=n&&`rotate-180`,u;t[7]===l?u=t[8]:(u=D(`ml-auto size-3.5 transition-transform`,l),t[7]=l,t[8]=u);let d;t[9]===u?d=t[10]:(d=(0,Z.jsxs)(K,{className:`flex w-full items-center gap-1.5 border-b px-3 py-2.5 text-left text-xs font-medium text-muted-foreground`,children:[`Event log`,(0,Z.jsx)(v,{className:u})]}),t[9]=u,t[10]=d);let f;t[11]===a?f=t[12]:(f=a.length===0?(0,Z.jsx)(`li`,{className:`text-muted-foreground`,children:`No events yet.`}):a.map(He),t[11]=a,t[12]=f);let p;t[13]===f?p=t[14]:(p=(0,Z.jsx)(G,{children:(0,Z.jsx)(`ol`,{className:`max-h-64 overflow-y-auto px-3 py-2 font-mono text-2xs leading-relaxed`,children:f})}),t[13]=f,t[14]=p);let m;return t[15]!==n||t[16]!==d||t[17]!==p?(m=(0,Z.jsxs)(he,{open:n,onOpenChange:r,children:[d,p]}),t[15]=n,t[16]=d,t[17]=p,t[18]=m):m=t[18],m}function He(e){return(0,Z.jsxs)(`li`,{className:`flex gap-2`,children:[(0,Z.jsx)(`span`,{className:`shrink-0 text-muted-foreground`,children:e.timestamp.slice(11,19)}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.summary})]},e.id)}function Ue(e){let t=(0,X.c)(30),{environmentId:n,device:r,access:i,visible:a}=e,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={reportFailure:!1},t[0]=o):o=t[0];let s=F(V.detail,o),c;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(c={reportFailure:!1},t[1]=c):c=t[1];let l=F(V.action,c),[u,d]=(0,Y.useState)(null),[f,p]=(0,Y.useState)(!1),[m,h]=(0,Y.useState)(null),[g,_]=(0,Y.useState)(),v=(0,Y.useRef)(!1),y=(0,Y.useRef)(0),b=(0,Y.useRef)(null),x;t[2]!==r.hostId||t[3]!==r.id?(x={hostId:r.hostId,deviceId:r.id},t[2]=r.hostId,t[3]=r.id,t[4]=x):x=t[4];let S=x,C,w;t[5]!==n||t[6]!==s||t[7]!==S||t[8]!==a?(C=()=>{let e=y.current+=1;if(!a)return;let t={environmentId:n,input:S};return b.current=t,s(t).then(t=>{y.current===e&&(t._tag===`Success`?(d(t.value),h(null)):(d(null),h(P(t.cause))))}),()=>{b.current=null,y.current+=1}},w=[n,s,S,a],t[5]=n,t[6]=s,t[7]=S,t[8]=a,t[9]=C,t[10]=w):(C=t[9],w=t[10]),(0,Y.useEffect)(C,w);let T,E;t[11]!==i||t[12]!==r.id||t[13]!==r.platform||t[14]!==a?(T=()=>{if(!i||!a)return;let e=!0,t=ye({access:i,platform:r.platform,deviceId:r.id},t=>{e&&_(t)});return()=>{e=!1,t(),_(void 0)}},E=[i,r.id,r.platform,a],t[11]=i,t[12]=r.id,t[13]=r.platform,t[14]=a,t[15]=T,t[16]=E):(T=t[15],E=t[16]),(0,Y.useEffect)(T,E);let D=u!==null&&a,O;t[17]!==D||t[18]!==n||t[19]!==s||t[20]!==l||t[21]!==S?(O=async e=>{if(v.current||!D)return;v.current=!0;let t=y.current+=1;return p(!0),h(null),l({environmentId:n,input:{...S,...e}}).then(e=>{if(y.current!==t){let e=b.current;if(!e)return;let t=y.current+=1;return s(e).then(e=>{y.current===t&&(e._tag===`Success`?(d(e.value),h(null)):(d(null),h(P(e.cause))))})}e._tag===`Success`?d(e.value):h(P(e.cause))}).finally(()=>{v.current=!1,p(!1)})},t[17]=D,t[18]=n,t[19]=s,t[20]=l,t[21]=S,t[22]=O):O=t[22];let ee=O,k=f||!u||!a,A=g===void 0?u?.foregroundApp??null:g,j;return t[23]!==ee||t[24]!==u||t[25]!==m||t[26]!==f||t[27]!==k||t[28]!==A?(j={detail:u,pending:f,error:m,act:ee,disabled:k,foregroundApp:A},t[23]=ee,t[24]=u,t[25]=m,t[26]=f,t[27]=k,t[28]=A,t[29]=j):j=t[29],j}function We(e){let t=(0,X.c)(51),[n,r]=(0,Y.useState)(null),[i,a]=(0,Y.useState)(!1),[o,s]=(0,Y.useState)(!1),[c,l]=(0,Y.useState)(!1),[u,d]=(0,Y.useState)(null),f=(0,Y.useRef)(null),p=(0,Y.useRef)(null),m=B(e.environmentId,e.device.hostId),h;t[0]!==m||t[1]!==e?(h={...e,access:m},t[0]=m,t[1]=e,t[2]=h):h=t[2];let g=Ue(h),_,v;t[3]!==m||t[4]!==e.visible?(_=()=>((!m||!e.visible)&&f.current?.abort(),()=>{f.current?.abort(),p.current&&URL.revokeObjectURL(p.current),p.current=null}),v=[m,e.visible],t[3]=m,t[4]=e.visible,t[5]=_,t[6]=v):(_=t[5],v=t[6]),(0,Y.useEffect)(_,v);let y;t[7]!==m||t[8]!==e.device.id||t[9]!==e.device.name||t[10]!==e.device.platform||t[11]!==e.environmentId||t[12]!==e.visible?(y=()=>{if(!m||f.current||!e.visible)return;let t=new AbortController;return f.current=t,l(!0),d(null),xe({access:m,platform:e.device.platform,deviceId:e.device.id},t.signal).then(n=>{if(t.signal.aborted)return;p.current&&URL.revokeObjectURL(p.current);let r=URL.createObjectURL(n);p.current=r;let i=document.createElement(`a`);i.href=r,i.download=`${e.device.name.replace(/[^a-z0-9-]/gi,`-`)}-${Date.now()}.png`,document.body.append(i),i.click(),i.remove()}).catch(n=>{t.signal.aborted||(n instanceof be&&n.status===401&&de(e.environmentId),d(n instanceof Error?n.message:`Screenshot capture failed. Try again.`))}).finally(()=>{f.current===t&&(f.current=null,l(!1))})},t[7]=m,t[8]=e.device.id,t[9]=e.device.name,t[10]=e.device.platform,t[11]=e.environmentId,t[12]=e.visible,t[13]=y):y=t[13];let b=y,x;t[14]!==g||t[15]!==u||t[16]!==i?(x=u||g.error&&!i?(0,Z.jsx)(`p`,{role:`alert`,className:`px-3 py-2 text-xs text-destructive`,children:u??g.error}):null,t[14]=g,t[15]=u,t[16]=i,t[17]=x):x=t[17];let S=`${e.hostLabel} · ${e.device.version}`,C;t[18]!==g||t[19]!==n||t[20]!==e.device.platform||t[21]!==e.onClose||t[22]!==e.onFloat||t[23]!==e.onPowerOff||t[24]!==b||t[25]!==c||t[26]!==i?(C=t=>(0,Z.jsx)(Se,{platform:e.device.platform,handle:n,view:t,controls:g,screenshotPending:c,onScreenshot:()=>void b(),toolsOpen:i,onTools:()=>a(!i),onFloat:e.onFloat,onClose:e.onClose,onPowerOff:e.onPowerOff}),t[18]=g,t[19]=n,t[20]=e.device.platform,t[21]=e.onClose,t[22]=e.onFloat,t[23]=e.onPowerOff,t[24]=b,t[25]=c,t[26]=i,t[27]=C):C=t[27];let w;t[28]!==o||t[29]!==e.device.hostId||t[30]!==e.device.id||t[31]!==e.device.name||t[32]!==e.device.platform||t[33]!==e.environmentId||t[34]!==e.visible||t[35]!==S||t[36]!==C?(w=(0,Z.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,Z.jsx)(_e,{environmentId:e.environmentId,platform:e.device.platform,deviceName:e.device.name,deviceDescription:S,deviceId:e.device.id,hostId:e.device.hostId,visible:e.visible,axOverlay:o,allowPhoneView:!0,onHandle:r,renderControls:C})}),t[28]=o,t[29]=e.device.hostId,t[30]=e.device.id,t[31]=e.device.name,t[32]=e.device.platform,t[33]=e.environmentId,t[34]=e.visible,t[35]=S,t[36]=C,t[37]=w):w=t[37];let T;t[38]!==x||t[39]!==w?(T=(0,Z.jsxs)(`div`,{className:`relative flex min-h-0 min-w-0 flex-1 flex-col`,children:[x,w]}),t[38]=x,t[39]=w,t[40]=T):T=t[40];let E;t[41]!==m||t[42]!==o||t[43]!==g||t[44]!==e.device||t[45]!==e.hostDiagnostics||t[46]!==i?(E=i?(0,Z.jsx)(Me,{device:e.device,controls:g,hostDiagnostics:e.hostDiagnostics,access:m,axOverlay:o,onAxOverlayChange:s,onClose:()=>a(!1),className:`absolute inset-y-0 right-0 z-10 w-full max-w-72 border-l shadow-lg @[700px]:static @[700px]:w-72 @[700px]:shrink-0 @[700px]:shadow-none`}):null,t[41]=m,t[42]=o,t[43]=g,t[44]=e.device,t[45]=e.hostDiagnostics,t[46]=i,t[47]=E):E=t[47];let D;return t[48]!==T||t[49]!==E?(D=(0,Z.jsxs)(Z.Fragment,{children:[T,E]}),t[48]=T,t[49]=E,t[50]=D):D=t[50],D}var Ge=e=>e===`ios`?`iOS Simulators`:`Android Emulators`,Ke=e=>`${e.hostId}\u0000${e.id}`;function qe(e){let{environmentId:t,threadId:n}=e.threadRef,{state:r,loaded:i}=z(t),a=F(V.list,{reportFailure:!1}),o=F(V.open),s=F(V.close),[c,l]=(0,Y.useState)(null),[d,f]=(0,Y.useState)(null),p=d?Ke(d):null,m=r.hostStatus===`disabled`;(0,Y.useEffect)(()=>{e.visible&&i&&!m&&a({environmentId:t,input:{}})},[t,a,i,e.visible,m]);let h=(0,Y.useMemo)(()=>r.sessions.filter(e=>e.threadId===n),[r.sessions,n]),g=e.surface.target?h.find(t=>t.deviceId===e.surface.target?.deviceId&&t.hostId===e.surface.target.hostId):void 0,_=g?r.devices.find(e=>e.hostId===g.hostId&&e.id===g.deviceId):void 0,v=(0,Y.useMemo)(()=>Je(r),[r]),y=async i=>{let a=r.devices.find(e=>Ke(e)===i);if(a){l(null),f(a);try{let r=await o({environmentId:t,input:{threadId:n,hostId:a.hostId,deviceId:a.id,platform:a.platform}});r._tag===`Failure`?l(P(r.cause)):ce.getState().openDevice(e.threadRef,{hostId:r.value.hostId,deviceId:r.value.deviceId,platform:a.platform,name:a.name})}finally{f(null)}}},b=()=>{_&&(U.getState().open(e.threadRef,{kind:`device`,hostId:_.hostId,deviceId:_.id,platform:_.platform,name:_.name}),ce.getState().close(e.threadRef))},x=r=>{if(!r){ce.getState().closeSurface(e.threadRef,e.surface.id);return}g&&(l(null),s({environmentId:t,input:{threadId:n,hostId:g.hostId,deviceId:g.deviceId,shutdown:r}}).then(t=>{t._tag===`Failure`?l(P(t.cause)):ce.getState().closeSurface(e.threadRef,e.surface.id)}))},S=r.bootingDevices?.filter(e=>e.threadId===n)??[],C=Object.values(r.hostStatuses).some(e=>e.status===`ready`),T=!C&&Object.values(r.hostStatuses).some(e=>e.status===`installing`||e.status===`starting`),O=r.hosts.flatMap(e=>e.platforms.filter(e=>!e.available).map(t=>({...t,hostId:e.id,hostLabel:e.label})));return i&&(!r.onboardingCompleted||m)?(0,Z.jsx)(R,{open:e.visible,onOpenChange:t=>{t||e.onDismissSetup()},children:(0,Z.jsx)(J,{children:(0,Z.jsx)(pe,{environmentId:t,state:r})})}):(0,Z.jsxs)(I,{mode:e.mode,children:[C&&!_&&r.hostStatusDetail?(0,Z.jsx)(`div`,{role:`status`,className:`whitespace-pre-line border-b px-3 py-2 text-xs text-muted-foreground`,children:r.hostStatusDetail}):null,(0,Z.jsx)(fe,{state:r,environmentId:t}),S.length>0?(0,Z.jsxs)(`div`,{role:`status`,className:`border-b px-3 py-2 text-xs text-muted-foreground`,children:[`Starting `,S.map(e=>e.name).join(`, `),`… This can take a minute.`]}):null,c?(0,Z.jsxs)(`div`,{role:`alert`,className:`flex items-start gap-2 border-b bg-destructive/5 px-3 py-2 text-xs text-destructive`,children:[(0,Z.jsx)(`p`,{className:`min-w-0 flex-1 whitespace-pre-wrap break-words`,children:c}),(0,Z.jsx)(E,{size:`icon-xs`,variant:`ghost`,"aria-label":`Dismiss device error`,onClick:()=>l(null),children:(0,Z.jsx)(u,{className:`size-3`})})]}):null,(0,Z.jsx)(`div`,{className:`@container relative flex min-h-0 flex-1`,children:_&&g?(0,Z.jsx)(We,{environmentId:t,device:_,hostLabel:r.hosts.find(e=>e.id===_.hostId)?.label??`Device host`,hostDiagnostics:r.hostStatusDetail,visible:e.visible,onFloat:b,onClose:()=>x(!1),onPowerOff:()=>x(!0)},`${t}\u0000${Ke(_)}`):d||T||!i?(0,Z.jsx)(ge,{name:d?.name??`Devices`,description:d?`${r.hosts.find(e=>e.id===d.hostId)?.label??`Device host`} · ${d.version}`:``,stage:`opening`,message:d?d.booted?`Opening device…`:`Starting device…`:r.hostStatus===`installing`?r.hostStatusDetail??`Installing device support…`:`Finding devices…`}):(0,Z.jsx)(`div`,{className:`scrollbar-gutter-both flex size-full flex-col overflow-y-auto px-5 py-8 text-sm text-muted-foreground`,children:(0,Z.jsxs)(`div`,{className:D(`mx-auto flex w-full max-w-xl flex-col gap-6`,v.length===0&&`my-auto items-center text-center`),children:[v.length===0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(w,{className:`size-6 opacity-60`}),(0,Z.jsx)(`p`,{className:`max-w-sm`,children:r.hostStatus===`failed`?r.hostStatusDetail??`The device hub failed to start.`:`No simulators or emulators were found on this environment.`})]}):null,C&&v.length>0?(0,Z.jsx)(`div`,{className:`w-full space-y-6 text-left`,children:v.map(e=>(0,Z.jsxs)(`section`,{className:`space-y-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,Z.jsx)(w,{className:`size-4 shrink-0`}),(0,Z.jsx)(`h3`,{className:`font-medium`,children:Ge(e.platform)})]}),(0,Z.jsx)(W,{children:e.devices.map(e=>(0,Z.jsx)(me,{icon:(0,Z.jsx)(`span`,{className:`grid size-8 shrink-0 place-items-center rounded-md border border-border/60`,children:(0,Z.jsx)(w,{className:`size-4`})}),title:e.name,description:`${r.hosts.find(t=>t.id===e.hostId)?.label} · ${e.version} · ${e.booted?`Running`:`Stopped`}`,disabled:p!==null,"aria-label":`${e.booted?`Open`:`Start`} ${e.name}`,onClick:()=>void y(Ke(e)),action:p===Ke(e)?(0,Z.jsx)(te,{size:`xs`}):(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.booted?`Open`:`Start`})},Ke(e)))})]},e.platform))}):null,C&&!r.devices.some(e=>e.platform===`android`)&&!O.some(e=>e.platform===`android`)?(0,Z.jsx)(`p`,{className:`max-w-sm text-xs`,children:`No Android virtual devices found. Create one in Android Studio's Device Manager, then refresh.`}):null,i&&!T?(0,Z.jsx)(E,{className:v.length>0?`self-start`:`self-center`,variant:v.length>0?`ghost`:`outline`,size:`sm`,onClick:()=>void a({environmentId:t,input:{}}),children:`Refresh devices`}):null]})})})]})}function Je(e){let t=[];for(let n of[`ios`,`android`]){let r=e.devices.filter(e=>e.platform===n).toSorted((e,t)=>Number(t.booted)-Number(e.booted)||e.name.localeCompare(t.name));r.length>0&&t.push({platform:n,devices:r})}return t}export{qe as DevicePanel};
2
- //# sourceMappingURL=DevicePanel-BG2hk0i3.js.map
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{C_ as n,NE as r,hd as i,lE as a,sr as o,t as s}from"./utils-BgVDKR83.js";import{t as c}from"./spinner-B1oJASgu.js";import{c as l,g as u,l as d}from"./tooltip-DRGG_vM1.js";import{i as f,n as p}from"./session-eKfJi_Kx.js";import{t as m}from"./use-atom-command-BEpD82FZ.js";import{n as h}from"./dialog-DWCEeJ2c.js";import{t as g}from"./device-D7crohVQ.js";import{Aa as _,La as v,Na as y,ja as b,ka as x}from"./main-Co3JeKTg.js";var S=r(),C=e(t(),1),w=e(a(),1);function T(e){let t=(0,S.c)(15),{state:n,environmentId:r}=e,i=m(g.list),[a,s]=(0,C.useState)(null);if(n.hostStatus===`disabled`)return null;let c;if(t[0]!==r||t[1]!==a||t[2]!==i||t[3]!==n.hostStatuses||t[4]!==n.hosts||t[5]!==n.supportsHostRetry){let e;t[7]!==r||t[8]!==a||t[9]!==i||t[10]!==n.hostStatuses||t[11]!==n.supportsHostRetry?(e=e=>{let t=n.hostStatuses[e.id];if(!t||![`installing`,`starting`,`failed`].includes(t.status))return null;let c=t.status===`failed`;return(0,w.jsxs)(`div`,{role:c?`alert`:`status`,className:`flex items-start gap-3 rounded-md border border-border/60 px-3 py-2 text-xs`,children:[(0,w.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,w.jsx)(`p`,{className:`font-medium`,children:e.label}),(0,w.jsx)(`p`,{className:`whitespace-pre-wrap break-words text-muted-foreground`,children:t.detail??(c?`Device support could not start.`:t.status===`installing`?`Installing device tools…`:`Starting device tools…`)}),c?(0,w.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:`Check the host connection and network access, then retry. Your device settings are saved.`}):null]}),c&&n.supportsHostRetry?(0,w.jsx)(o,{size:`compact`,variant:`outline`,disabled:a!==null,onClick:()=>{s(e.id),i({environmentId:r,input:{retryHostId:e.id}}).finally(()=>s(null))},children:a===e.id?`Retrying…`:`Retry`}):null]},e.id)},t[7]=r,t[8]=a,t[9]=i,t[10]=n.hostStatuses,t[11]=n.supportsHostRetry,t[12]=e):e=t[12],c=n.hosts.map(e),t[0]=r,t[1]=a,t[2]=i,t[3]=n.hostStatuses,t[4]=n.hosts,t[5]=n.supportsHostRetry,t[6]=c}else c=t[6];let l;return t[13]===c?l=t[14]:(l=(0,w.jsx)(`div`,{className:`space-y-2`,children:c}),t[13]=c,t[14]=l),l}var E=e=>e===`ios`?`iOS`:`Android`,D=`Enable this environment to open simulators and emulators, whether they run here or on a remote device host.`,O=`Allow new agent sessions in this environment to start and control local and remote devices, with required tools set up automatically.`;function k(e,t){let n=e.hosts.flatMap(e=>e.platforms).find(e=>e.platform===t);return n?.available?e.hostStatus===`ready`&&!e.devices.some(e=>e.platform===t)?{ready:!1,message:t===`ios`?`Xcode is installed, but no iOS Simulator is available. Install a runtime in Xcode Settings → Components.`:`The Android SDK is installed, but no virtual device exists. Create one in Android Studio → Device Manager.`}:{ready:!0,message:t===`ios`?`Xcode and iOS Simulator are available.`:`The Android SDK and Emulator are available.`}:{ready:!1,message:n?.reason??`${E(t)} support was not detected.`}}function A(e){let t=f(e.environmentId,n),r=m(g.configure),i=m(g.list,{reportFailure:!1}),[a,c]=(0,C.useState)(null),[l,u]=(0,C.useState)(0),d=e.state.hostStatus!==`disabled`,S=e.state.hostStatus===`installing`||e.state.hostStatus===`starting`,E=e.state.hosts.some(e=>e.kind===`local`&&!e.platforms.some(e=>e.available)),k=async(t,n)=>{if(p(e.environmentId,`settings:write`)){c(t);try{let i=await r({environmentId:e.environmentId,input:n});t===`complete`&&i._tag===`Success`&&e.onComplete?.()}finally{c(null)}}};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(_,{title:`Set up devices`,description:`Review what runs on this environment before using simulators and emulators.`,children:(0,w.jsx)(y,{steps:[`Device hub`,`Simulators`,`Agent access`],currentStep:l,onStepChange:u,isStepDisabled:e=>S||a!==null||e>l})}),(0,w.jsxs)(b,{children:[(0,w.jsx)(T,{state:e.state,environmentId:e.environmentId}),l===0?(0,w.jsxs)(`section`,{className:`space-y-3 text-sm`,children:[(0,w.jsx)(`h3`,{className:`font-medium`,children:`Enable the device hub`}),(0,w.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:D}),(0,w.jsx)(v,{checked:d,disabled:!t||S||a!==null,"aria-label":`Enable device hub`,onCheckedChange:e=>void k(`hub`,{enabled:!!e,...e?{}:{agentAccessEnabled:!1}})})]}),(0,w.jsx)(j,{state:e.state,pending:a===`hub`||S&&a!==`agent`})]}):null,l===1||l===0&&d&&E?(0,w.jsxs)(`section`,{className:s(`space-y-3 text-sm`,l===0&&`mt-4`),children:[(0,w.jsx)(`h3`,{className:`font-medium`,children:`Check simulator support`}),(0,w.jsx)(M,{state:e.state,checking:a===`check`,disabled:!d||S||a!==null,onCheck:()=>{c(`check`),i({environmentId:e.environmentId,input:{}}).finally(()=>c(null))}})]}):null,l===2?(0,w.jsxs)(`section`,{className:`space-y-3 text-sm`,children:[(0,w.jsx)(`h3`,{className:`font-medium`,children:`Allow agent control`}),(0,w.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:O}),(0,w.jsx)(v,{checked:e.state.agentAccessEnabled,disabled:!t||!d||S||a!==null,"aria-label":`Allow agents to control devices`,onCheckedChange:e=>void k(`agent`,{agentAccessEnabled:!!e})})]}),(0,w.jsx)(N,{state:e.state,pending:a===`agent`}),(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Leave this off to keep manual device controls without giving agents access.`})]}):null,e.state.hostStatus===`failed`&&e.state.hostStatusDetail?(0,w.jsx)(`p`,{role:`alert`,className:`mt-3 text-xs text-destructive`,children:e.state.hostStatusDetail}):null]}),(0,w.jsxs)(x,{children:[l===0?(0,w.jsx)(h,{render:(0,w.jsx)(o,{variant:`outline`}),children:`Cancel`}):(0,w.jsx)(o,{variant:`outline`,disabled:S||a!==null,onClick:()=>u(l-1),children:`Back`}),l<2?(0,w.jsx)(o,{disabled:e.state.hostStatus!==`ready`||a!==null,onClick:()=>u(l+1),children:`Continue`}):(0,w.jsx)(o,{disabled:!t||e.state.hostStatus!==`ready`||a!==null,onClick:()=>void k(`complete`,{onboardingCompleted:!0}),children:a===`complete`?`Saving…`:`Done`})]})]})}function j(e){let t=(0,S.c)(5),{state:n,pending:r,compact:a}=e,o=a!==void 0&&a;if(!r&&n.hostStatus!==`ready`)return null;let s;t[0]===r?s=t[1]:(s=r?(0,w.jsx)(c,{size:`xs`}):(0,w.jsx)(i,{className:`size-3 text-success`}),t[0]=r,t[1]=s);let l=r?n.hostStatus===`installing`?o?`Installing…`:`Installing device hub…`:n.hostStatus===`starting`?o?`Starting…`:`Starting device hub…`:o?`Updating…`:`Updating device hub…`:`Device hub is ready.`,u;return t[2]!==s||t[3]!==l?(u=(0,w.jsxs)(`p`,{role:`status`,className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[s,l]}),t[2]=s,t[3]=l,t[4]=u):u=t[4],u}function M(e){let t=(0,S.c)(20),n;t[0]===e.state?n=t[1]:(n=k(e.state,`ios`),t[0]=e.state,t[1]=n);let r;t[2]===n?r=t[3]:(r=(0,w.jsx)(F,{platform:`iOS`,status:n}),t[2]=n,t[3]=r);let i;t[4]===e.state?i=t[5]:(i=k(e.state,`android`),t[4]=e.state,t[5]=i);let a;t[6]===i?a=t[7]:(a=(0,w.jsx)(F,{platform:`Android`,status:i}),t[6]=i,t[7]=a);let s;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`You can use either platform. Fixing a missing platform does not block the other one.`}),t[8]=s):s=t[8];let l;t[9]===e.checking?l=t[10]:(l=e.checking?(0,w.jsx)(c,{size:`xs`}):null,t[9]=e.checking,t[10]=l);let u=e.checking?`Checking…`:`Check again`,d;t[11]!==e.disabled||t[12]!==e.onCheck||t[13]!==l||t[14]!==u?(d=(0,w.jsxs)(o,{size:`compact`,variant:`outline`,disabled:e.disabled,onClick:e.onCheck,children:[l,u]}),t[11]=e.disabled,t[12]=e.onCheck,t[13]=l,t[14]=u,t[15]=d):d=t[15];let f;return t[16]!==r||t[17]!==a||t[18]!==d?(f=(0,w.jsxs)(`div`,{className:`space-y-3`,children:[r,a,s,d]}),t[16]=r,t[17]=a,t[18]=d,t[19]=f):f=t[19],f}function N(e){let t=(0,S.c)(4);if(e.pending){let n=e.state.hostStatus===`installing`?e.compact?`Installing…`:`Installing agent tools…`:e.state.hostStatus===`starting`?e.compact?`Starting…`:`Starting agent tools…`:e.compact?`Updating…`:`Updating agent access…`,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,w.jsx)(c,{size:`xs`}),t[0]=r):r=t[0];let i;return t[1]===n?i=t[2]:(i=(0,w.jsxs)(`p`,{role:`status`,className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[r,n]}),t[1]=n,t[2]=i),i}if(e.state.agentAccessEnabled&&e.state.hostStatus===`ready`&&e.state.hosts.some(P)){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,w.jsxs)(`p`,{role:`status`,className:`flex items-center gap-2 text-xs text-muted-foreground`,children:[(0,w.jsx)(i,{className:`size-3 text-success`}),`Agent tools are ready.`]}),t[3]=e):e=t[3],e}return null}function P(e){return e.agentDeviceInstalled}function F(e){let t=(0,S.c)(21),n=!e.compact&&`rounded-md border border-border/60 px-3 py-2`,r;t[0]===n?r=t[1]:(r=s(`flex gap-2`,n),t[0]=n,t[1]=r);let i=e.status.ready?`text-success`:`text-muted-foreground`,a;t[2]===i?a=t[3]:(a=s(`mt-0.5 size-4 shrink-0`,i),t[2]=i,t[3]=a);let o=e.status.ready?d:u,c;t[4]!==a||t[5]!==o?(c=(0,w.jsx)(l,{className:a,icon:o}),t[4]=a,t[5]=o,t[6]=c):c=t[6];let f=e.compact&&e.status.ready&&`flex items-center gap-2`,p;t[7]===f?p=t[8]:(p=s(f),t[7]=f,t[8]=p);let m;t[9]===e.platform?m=t[10]:(m=(0,w.jsx)(`p`,{className:`font-medium`,children:e.platform}),t[9]=e.platform,t[10]=m);let h=e.compact&&e.status.ready?`Ready`:e.status.message,g;t[11]===h?g=t[12]:(g=(0,w.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:h}),t[11]=h,t[12]=g);let _;t[13]!==g||t[14]!==p||t[15]!==m?(_=(0,w.jsxs)(`div`,{className:p,children:[m,g]}),t[13]=g,t[14]=p,t[15]=m,t[16]=_):_=t[16];let v;return t[17]!==r||t[18]!==_||t[19]!==c?(v=(0,w.jsxs)(`div`,{className:r,children:[c,_]}),t[17]=r,t[18]=_,t[19]=c,t[20]=v):v=t[20],v}export{O as a,T as c,F as i,j as n,D as o,A as r,k as s,N as t};
2
- //# sourceMappingURL=DeviceSetup-CKZmblju.js.map
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{NE as n,lE as r,sr as i,t as a}from"./utils-BgVDKR83.js";import{c as o,m as s,p as c}from"./tooltip-DRGG_vM1.js";import{I as l}from"./useSettings-CUN8qNLl.js";import{u as ee}from"./diffRendering-BAlsKvkZ.js";import{c as te,i as ne,n as re,o as ie,r as ae,s as oe,t as se}from"./fileTreeExpansion-By588Tlp.js";import{t as ce}from"./pierre-icons-Cp8tJJSF.js";var le=n(),u=e(t(),1);function d(e,t,n){let r=(0,le.c)(8),[i,a]=(0,u.useState)(null),o=(0,u.useRef)(null),s,c;r[0]!==n||r[1]!==i||r[2]!==t||r[3]!==e?(s=()=>{if(i!==null&&o.current!==i){if(i.scope!==t){o.current=i;return}!e?.getInstance()||n&&!n.includes(i.fileKey)||(e.scrollTo({type:`item`,id:i.fileKey,align:`start`}),o.current=i)}},c=[i,t,e,n],r[0]=n,r[1]=i,r[2]=t,r[3]=e,r[4]=s,r[5]=c):(s=r[4],c=r[5]),(0,u.useEffect)(s,c);let l;return r[6]===t?l=r[7]:(l=e=>a({fileKey:e,scope:t}),r[6]=t,r[7]=l),l}function f(e,t){return e.length>0&&e.every(e=>t.has(e))}function p(e,t){return f(e,t)?new Set:new Set(e)}function m(e){switch(e.type){case`new`:return`added`;case`deleted`:return`deleted`;case`rename-pure`:case`rename-changed`:return`renamed`;case`change`:return`modified`}}function h(e){let t=new Map;for(let n of e){let e=ee(n),r=m(n),i=t.get(e);t.set(e,i===void 0||i===r?r:`modified`)}return[...t].map(([e,t])=>({path:e,status:t}))}function ue(e){let t=new Set;for(let n of e){let e=n.split(`/`),r=``;for(let n of e.slice(0,-1))r+=`${n}/`,t.add(r)}return[...t]}function de(e){let t=new Map;return e.forEach((e,n)=>{t.set(e,n);let r=``;for(let i of e.split(`/`).slice(0,-1))r+=`${i}/`,t.has(r)||t.set(r,n)}),t}function g(e){return(t,n)=>{let r=e();return(r.get(t.path)??2**53-1)-(r.get(n.path)??2**53-1)||t.depth-n.depth||t.path.localeCompare(n.path)}}function _(e){return e.split(`/`).filter(Boolean).length}function fe(e,t){let n=new Set(ue(e)),r=new Set(ue(t)),i=new Set(e),a=new Set(t),o=[];for(let t of e)a.has(t)||o.push({type:`remove`,path:t});let s=[...n].filter(e=>!r.has(e)).toSorted((e,t)=>_(t)-_(e));for(let e of s)o.push({type:`remove`,path:e,recursive:!0});let c=[...r].filter(e=>!n.has(e)).toSorted((e,t)=>_(e)-_(t));for(let e of c)o.push({type:`add`,path:e});for(let e of t)i.has(e)||o.push({type:`add`,path:e});return o}var v=e(r(),1);function y(e){let t=(0,le.c)(64),{entries:n,onSelectFile:r,selectedPath:ee,revealRequestId:d,ariaLabel:f,headerAccessory:p,footer:m,className:h}=e,g=ee===void 0?null:ee,_=d===void 0?0:d,{resolvedTheme:y}=l(),b;t[0]===n?b=t[1]:(b=n.map(he),t[0]=n,t[1]=b);let x=b,S;t[2]===x?S=t[3]:(S=ue(x),t[2]=x,t[3]=S);let C=S,w;t[4]===x?w=t[5]:(w=de(x),t[4]=x,t[5]=w);let T=w,[E]=(0,u.useState)(me),D;t[6]===n?D=t[7]:(D=n.map(pe),t[6]=n,t[7]=D);let O=D,k;t[8]===x?k=t[9]:(k=new Set(x),t[8]=x,t[9]=k);let A=(0,u.useRef)(k),j=(0,u.useRef)(r),ge=(0,u.useRef)(!1),M=(0,u.useRef)(null),_e=(0,u.useRef)(null),N,P;t[10]!==r||t[11]!==x?(N=()=>{A.current=new Set(x),j.current=r},P=[r,x],t[10]=r,t[11]=x,t[12]=N,t[13]=P):(N=t[12],P=t[13]),(0,u.useEffect)(N,P);let F,I;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(F=e=>{if(ge.current)return;let t=e.at(-1)?.replace(/\/$/,``);t&&A.current.has(t)&&j.current(t)},I=[],t[14]=F,t[15]=I):(F=t[14],I=t[15]);let L;t[16]===E.sort?L=t[17]:(L={density:`compact`,flattenEmptyDirectories:!0,initialExpansion:`open`,icons:ce,onSelectionChange:F,paths:I,search:!1,sort:E.sort,unsafeCSS:ae},t[16]=E.sort,t[17]=L);let{model:R}=oe(L),z;t[18]===C?z=t[19]:(z=e=>se(e,C),t[18]=C,t[19]=z);let B=ie(R,z),V,H;t[20]!==C||t[21]!==O||t[22]!==R||t[23]!==E||t[24]!==x||t[25]!==T?(V=()=>{E.update(T);let e=_e.current;if(e!==x){if(_e.current=x,e===null)R.resetPaths(x);else if(e.every((e,t)=>x[t]===e)){let t=fe(e,x);t.length>0&&R.batch(t)}else{let e=C.filter(e=>{let t=R.getItem(e);return t!==null&&`isExpanded`in t&&!t.isExpanded()});R.resetPaths(x);for(let t of e){let e=R.getItem(t);e!==null&&`collapse`in e&&e.collapse()}}R.setGitStatus(O)}},H=[C,O,R,E,x,T],t[20]=C,t[21]=O,t[22]=R,t[23]=E,t[24]=x,t[25]=T,t[26]=V,t[27]=H):(V=t[26],H=t[27]),(0,u.useEffect)(V,H);let U;t[28]!==R||t[29]!==_||t[30]!==g?(U=()=>{if(g===null){M.current=null;return}let e=R.getItem(g);if(e===null||e.isDirectory()){M.current=null;return}let t=M.current;if(t?.path===g&&t.revealRequestId===_)return;M.current={path:g,revealRequestId:_},ge.current=!0;for(let e of R.getSelectedPaths())e!==g&&R.getItem(e)?.deselect();let n=``;for(let e of g.split(`/`).slice(0,-1)){n+=`${e}/`;let t=R.getItem(n);t!==null&&`expand`in t&&t.expand()}e.select(),R.scrollToPath(g,{offset:`nearest`}),queueMicrotask(()=>{ge.current=!1})},t[28]=R,t[29]=_,t[30]=g,t[31]=U):U=t[31];let W;t[32]!==R||t[33]!==x||t[34]!==_||t[35]!==g?(W=[R,x,_,g],t[32]=R,t[33]=x,t[34]=_,t[35]=g,t[36]=W):W=t[36],(0,u.useEffect)(U,W);let G;t[37]===h?G=t[38]:(G=a(`flex min-h-0 flex-1 flex-col bg-background`,h),t[37]=h,t[38]=G);let K;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,v.jsx)(`span`,{className:`px-1 font-medium text-foreground`,children:`Files`}),t[39]=K):K=t[39];let q;t[40]===n.length?q=t[41]:(q=(0,v.jsx)(`span`,{className:`ml-auto tabular-nums`,children:n.length}),t[40]=n.length,t[41]=q);let J;t[42]!==B||t[43]!==C||t[44]!==R?(J=C.length>0?(0,v.jsx)(i,{type:`button`,size:`icon-xs`,variant:`ghost`,"aria-label":B?`Collapse all folders`:`Expand all folders`,onClick:()=>re(R,C,!B),children:(0,v.jsx)(o,{className:`size-3.5`,icon:B?c:s})}):null,t[42]=B,t[43]=C,t[44]=R,t[45]=J):J=t[45];let Y;t[46]!==p||t[47]!==q||t[48]!==J?(Y=(0,v.jsxs)(`div`,{className:`flex h-10 min-h-10 shrink-0 items-center gap-1 border-b border-border/60 bg-background px-2 text-xs text-muted-foreground in-data-[preview-panel-mode=inline]:mb-3 in-data-[preview-panel-mode=inline]:h-7 in-data-[preview-panel-mode=inline]:min-h-7 in-data-[preview-panel-mode=inline]:border-b-transparent`,"data-surface-subheader":!0,children:[K,q,p,J]}),t[46]=p,t[47]=q,t[48]=J,t[49]=Y):Y=t[49];let X;t[50]===R?X=t[51]:(X=e=>{if(e.defaultPrevented||e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let t=R.getSelectedPaths(),n=t.length===1?t[0]:void 0;n&&A.current.has(n)&&e.nativeEvent.composedPath().some(e=>e instanceof HTMLElement&&e.getAttribute(`data-item-path`)===n)&&j.current(n)},t[50]=R,t[51]=X);let Z;t[52]===y?Z=t[53]:(Z=ne(y),t[52]=y,t[53]=Z);let Q;t[54]!==f||t[55]!==R||t[56]!==X||t[57]!==Z?(Q=(0,v.jsx)(te,{model:R,"aria-label":f,onClickCapture:X,className:`min-h-0 flex-1 overflow-hidden`,style:Z}),t[54]=f,t[55]=R,t[56]=X,t[57]=Z,t[58]=Q):Q=t[58];let $;return t[59]!==m||t[60]!==G||t[61]!==Y||t[62]!==Q?($=(0,v.jsxs)(`div`,{className:G,children:[Y,Q,m]}),t[59]=m,t[60]=G,t[61]=Y,t[62]=Q,t[63]=$):$=t[63],$}function pe(e){return{path:e.path,status:e.status}}function me(){let e=new Map;return{sort:g(()=>e),update:t=>{e=t}}}function he(e){return e.path}export{d as a,p as i,h as n,f as r,y as t};
2
- //# sourceMappingURL=DiffFileTree-BnizHv7v.js.map