@inkeep/open-knowledge 0.89.1-beta.3 → 0.89.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-BNTVA4cX.mjs → cli-CQfCrneK.mjs} +6 -6
- package/dist/cli.mjs +1 -1
- package/dist/constants-CpsSLH8K.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-C53kUCVN.mjs +1 -0
- package/dist/{init-DQMXb7pz.mjs → init-DMEgsCO_.mjs} +2 -2
- package/dist/{launch-json-removal-XzwmH8VA.mjs → launch-json-removal-BRGir6sa.mjs} +1 -1
- package/dist/{loader-DZHQrNG-.mjs → loader-CA-sFbfB.mjs} +1 -1
- package/dist/loader-ozL1G3tH.mjs +1 -0
- package/dist/{preview-COH7UFVW.mjs → preview-BNeOtuYk.mjs} +1 -1
- package/dist/preview-eXuw0ZsX.mjs +1 -0
- package/dist/public/assets/{AboutSection-tRd4zWnA.js → AboutSection-Wga6ljal.js} +1 -1
- package/dist/public/assets/{AccountSection-D-Zall4m.js → AccountSection-BxA3npGg.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-Df-RqhPu.js → ActivityModeContent-gpbFdkTU.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BrWvNG4i.js → AddPropertiesButton-V-9pfunh.js} +2 -2
- package/dist/public/assets/{AgentConnectionsSection-zBXwBiiA.js → AgentConnectionsSection-BGriqiir.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-sAkF_NLr.js → AgentDiffPane-yQbqJfsi.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-B9rTFji5.js → AgentIconCluster-DJYZ5s2f.js} +1 -1
- package/dist/public/assets/{AgentThreadClientBinder-BXRVPDki.js → AgentThreadClientBinder-CzUmSXiH.js} +1 -1
- package/dist/public/assets/{AppMenubar-VrP4K7e4.js → AppMenubar-N_LouakH.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-D76XKrhk.js → AttachmentsSection-B_OUperC.js} +1 -1
- package/dist/public/assets/{AuthModal-B9y3bqhO.js → AuthModal-CJedoV6p.js} +1 -1
- package/dist/public/assets/{BugReportHistory-BsyHsVNu.js → BugReportHistory-D-crQhE_.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-Bm48RkG0.js → BugReportHistoryDialog-C44scJWu.js} +1 -1
- package/dist/public/assets/{CodeMirrorEditor-UCMRAMCV-jW_2l0nP.js → CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-CpXyhdyX.js → CodeMirrorPropInput-BjXlLQ_X.js} +3 -3
- package/dist/public/assets/{ConfigSharingInfoTooltip-CI5Q4134.js → ConfigSharingInfoTooltip-CmaSkr99.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-Dfwwu4vC.js → ConsentDialogBody-B20jtW8L.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-ciIo1Fox.js → ContentRulesSection-BsUQ0zJF.js} +1 -1
- package/dist/public/assets/{CopyButton-CTEyT6XZ.js → CopyButton-BGXlB8sP.js} +1 -1
- package/dist/public/assets/{DeleteConfirmationDialog-BmShNEdj.js → DeleteConfirmationDialog-DJ6Qtngd.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-CQYIlOsP.js → DiffViewBoundary-hs_VDrka.js} +1 -1
- package/dist/public/assets/DocumentContext-C3d3aPqq.js +110 -0
- package/dist/public/assets/{EditorModeToggle-BNWcaoac.js → EditorModeToggle-Bgispkgy.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-zJYliunZ.js → ExcalidrawDocEditor-CL1aJRLt.js} +1 -1
- package/dist/public/assets/FeedbackForm-D0ym4bbj.js +1 -0
- package/dist/public/assets/{GraphPanel-BTP-s4xS.js → GraphPanel-CA7VLMPM.js} +1 -1
- package/dist/public/assets/{HotkeysSection-B7aU1Xml.js → HotkeysSection-DrZRSXKK.js} +1 -1
- package/dist/public/assets/{ImageAttachments-DtqOrDVB.js → ImageAttachments-DLQC8k-Z.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-BQCpvSBy.js → ImportSkillDialog-BMeOmhlC.js} +1 -1
- package/dist/public/assets/{InstallInClaudeDesktopDialog-BmZRe4ai.js → InstallInClaudeDesktopDialog-C_RQYp3V.js} +1 -1
- package/dist/public/assets/{IntegrationsSection-BhYEcdaY.js → IntegrationsSection-gn7Gi9_7.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CKiImo2e.js → LinkPreviewsSection-DJl-IPy_.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-CvXRnn-2.js → LintConfigEditor-BaIj6Zsp.js} +1 -1
- package/dist/public/assets/LintingSection-Dpym-WwL.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-BKGAnhMk.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-CzlNCWxw.js → ManagedArtifactProperties-DAKwfoMZ.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-9-QJlWro.js → McpConsentDialogBody-CpTyyWwe.js} +1 -1
- package/dist/public/assets/Mermaid--NaGL3Jp.js +2 -0
- package/dist/public/assets/MermaidDocEditor-BIvYQTbS.js +1 -0
- package/dist/public/assets/{NetworkAccessSection-CVtdkBHf.js → NetworkAccessSection-Bhvpr6OE.js} +1 -1
- package/dist/public/assets/{OkCliPathRow-Cp6iztN6.js → OkCliPathRow-S85j6YMf.js} +1 -1
- package/dist/public/assets/{OkignoreSection-DnoLrVcI.js → OkignoreSection-BfbduXqI.js} +1 -1
- package/dist/public/assets/{OpenInAgentMenuItem-N6xIhi4p.js → OpenInAgentMenuItem-BBBy2Gy8.js} +1 -1
- package/dist/public/assets/{PageListContext-BlD9uQe7.js → PageListContext-DpKyZSYI.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-s7icbspb.js → ProjectTemplatesSection-DnNyoDmD.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-H7bj6f5t.js → PropertyDisplayRow-DCVZcKLb.js} +2 -2
- package/dist/public/assets/PublishToGitHubDialog-UHsZa7GM.js +1 -0
- package/dist/public/assets/{RegisteredAgentIcon-B5-umwTf.js → RegisteredAgentIcon-DtQ0KEVm.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-BcTojqR0.js → ReportBugDialogBody-BAr884FO.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-78gwrqdl.js → ReportBugMenuTrigger-B1Y-51y_.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Bf5cqDaq.js → SchemaConfigEditor-D3s5A49m.js} +1 -1
- package/dist/public/assets/{SearchSection-DRdyZQZf.js → SearchSection-Bi3VBSp6.js} +1 -1
- package/dist/public/assets/{SessionsHost-mRrdjGIy.js → SessionsHost-2SfG2-Gc.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-DmZz1LOo.js → SettingsDialogBody-wJKOE5mL.js} +2 -2
- package/dist/public/assets/{SettingsSectionHeader-B2_3E9FZ.js → SettingsSectionHeader-DoDCqZE9.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-DWQTjLZ-.js → ShareBranchSwitchDialog-CHuKbT9D.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-BdppBZDP.js → ShareReceiveDialog-2iD7YbAG.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Dbjg3K-r.js → ShareReceiveMissDialog-BPBSQEGy.js} +1 -1
- package/dist/public/assets/{SharingSection-MyaUcheU.js → SharingSection-CmvBaP1e.js} +1 -1
- package/dist/public/assets/{SkillCostValue-DGFAhums.js → SkillCostValue-DvhkGtxl.js} +1 -1
- package/dist/public/assets/{SkillEditBanner-Ci6hp9qh.js → SkillEditBanner-DgXHGu5U.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-CKEK2MLM.js → SkillForkDialog-DRFCczwZ.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-Fmrl12N7.js → SkillInstallMenu-yZ2LF3xI.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-h0ecHbks.js → SkillOriginInline-CtCMa2BK.js} +2 -2
- package/dist/public/assets/{SkillPluginBundleDialog-0PDRSlc7.js → SkillPluginBundleDialog-3QRGH28G.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-zISw8oZn.js → SkillToolbarControls-CBBLRFMf.js} +1 -1
- package/dist/public/assets/{SkillUpdateConflictDialog-B2amDEg5.js → SkillUpdateConflictDialog-BRuajj8h.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-CXbSw1oW.js → SkillsManagerSection-CfotG9eR.js} +1 -1
- package/dist/public/assets/{SlidesPluginSection-sGWfjtzJ.js → SlidesPluginSection-BpeI6naA.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-BVK9CgWY.js → SlidesToolbarControls-DsTwYCvs.js} +1 -1
- package/dist/public/assets/SourceEditor-xm588PrA.js +1 -0
- package/dist/public/assets/{SpellingSettings-DYtxL6uE.js → SpellingSettings-DS0iCc6q.js} +1 -1
- package/dist/public/assets/{SyncSection-Eyz1tj40.js → SyncSection-Bu7cBZQC.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-CE7Y2cCh.js → SyncStatusBadge-5xYsRIZu.js} +1 -1
- package/dist/public/assets/{TemplateRow-W3JPZI1f.js → TemplateRow-CH88SaaS.js} +1 -1
- package/dist/public/assets/{TerminalLaunchContext-P5-tdwl5.js → TerminalLaunchContext-DknxkMP_.js} +1 -1
- package/dist/public/assets/{TerminalPanel-BXCRCaq6.js → TerminalPanel-CzYCOqZx.js} +1 -1
- package/dist/public/assets/{TerminalSection-xwZM2Hgh.js → TerminalSection-CxJHg3uk.js} +1 -1
- package/dist/public/assets/{TerminalStartingNotice-CdvEXHch.js → TerminalStartingNotice-eW111Pr-.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-D8l7JsRd.js → TerminalWindowApp-ElLsKjvU.js} +1 -1
- package/dist/public/assets/{TextDocEditor-BG9kfQtX.js → TextDocEditor-B3Xv0IEB.js} +1 -1
- package/dist/public/assets/{ThemePicker-c5au2kY3.js → ThemePicker-l4igefke.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-Fo_U0vAO.js → ThemePluginSection-C3QmAxSy.js} +1 -1
- package/dist/public/assets/ThreadView-D4rEicmI.js +28 -0
- package/dist/public/assets/{TimelineDiffPane-DE5qL-Hx.js → TimelineDiffPane-pWimxwSf.js} +1 -1
- package/dist/public/assets/{_envelope-DuFpUEag-Beu481Zb.js → _envelope-DuFpUEag-DIV0rnvM.js} +1 -1
- package/dist/public/assets/{acp-tool-call-input-4D1kgN9C.js → acp-tool-call-input-BAHxmJVC.js} +1 -1
- package/dist/public/assets/{agent-connections-CgDvLLC0.js → agent-connections-Bk1le3Hp.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Dk1ZsJcI.js → agent-diff-store-lpiSKA5i.js} +1 -1
- package/dist/public/assets/{agent-registry-U8NZfQJI.js → agent-registry-DAlpnuPI.js} +1 -1
- package/dist/public/assets/arrow-right-9zZjHMAu.js +1 -0
- package/dist/public/assets/{arrow-up-BGHhPj4y.js → arrow-up-VsvqTAMX.js} +1 -1
- package/dist/public/assets/arrow-up-right-BuM5_PNk.js +1 -0
- package/dist/public/assets/{braces--g9Mwtim.js → braces-BuqU1wEY.js} +1 -1
- package/dist/public/assets/{bridge-RmbYCE1j.js → bridge-C3zpQGKh.js} +1 -1
- package/dist/public/assets/{bug-report-send-manager-D9UBUsIi.js → bug-report-send-manager-BOS3d4vT.js} +1 -1
- package/dist/public/assets/{calendar-D8X69oI3.js → calendar-GZZrn9oy.js} +1 -1
- package/dist/public/assets/{case-sensitive-DIxypOE0.js → case-sensitive-CON108GM.js} +1 -1
- package/dist/public/assets/{catalog-qUDNhRiX.js → catalog-BIFRvQrT.js} +1 -1
- package/dist/public/assets/channel-cli-copy-BE13Ri4Z.js +1 -0
- package/dist/public/assets/check-x3deoXUY.js +1 -0
- package/dist/public/assets/{checkbox-CKD8LETI.js → checkbox-CYP7ZXBH.js} +1 -1
- package/dist/public/assets/{chevron-down-CEv6N8LG.js → chevron-down-COI0lQ_Z.js} +1 -1
- package/dist/public/assets/chevron-left-az_PtXMd.js +1 -0
- package/dist/public/assets/chevron-right-B3hLba9m.js +1 -0
- package/dist/public/assets/{circle-alert-eBm4JPxY.js → circle-alert-dBeNuHbp.js} +1 -1
- package/dist/public/assets/circle-check-CGCTZ_86.js +1 -0
- package/dist/public/assets/{client-version-BOmJe1SA.js → client-version-CE1HFR4D.js} +1 -1
- package/dist/public/assets/{cm-theme-jJbc1zUE.js → cm-theme-DHJ4FCK8.js} +1 -1
- package/dist/public/assets/comment-chips-CCtWVMI5.js +8 -0
- package/dist/public/assets/{config-errors-d-4C2SfD.js → config-errors-BXj4CTPy.js} +1 -1
- package/dist/public/assets/{config-provider-t8yPjJNx.js → config-provider-DzD_5rVC.js} +1 -1
- package/dist/public/assets/config-schema-CmT2Ao7f.js +1 -0
- package/dist/public/assets/{constants-editors-DmmORwNP.js → constants-editors-IUfUQiPg.js} +1 -1
- package/dist/public/assets/{context-menu-DJEXk_NV.js → context-menu-v1ORxy1K.js} +1 -1
- package/dist/public/assets/{copy-DpWa6i2v.js → copy-C2v-T-2G.js} +1 -1
- package/dist/public/assets/{css-color-to-hex-BSfwCuBg.js → css-color-to-hex-B2zwblEY.js} +1 -1
- package/dist/public/assets/{diagnostic-breadcrumb-Mg7sdCfQ.js → diagnostic-breadcrumb-DJHixy9_.js} +1 -1
- package/dist/public/assets/{dialog-CAxu_6pu.js → dialog-BPbtQmOL.js} +1 -1
- package/dist/public/assets/{dist-CALMvI24.js → dist-B3l4eYse.js} +1 -1
- package/dist/public/assets/{dist-D3OAk9962.js → dist-CDI_AHNY2.js} +1 -1
- package/dist/public/assets/{dist-D7OhjHST.js → dist-CUgGmlsn.js} +1 -1
- package/dist/public/assets/{dist-Dc8tD1th.js → dist-CdgIFD0J.js} +1 -1
- package/dist/public/assets/{dist-DC3MtD_U.js → dist-CitzgyZk.js} +1 -1
- package/dist/public/assets/{dist-CuciuUd8.js → dist-DPg4Sze-.js} +1 -1
- package/dist/public/assets/{dist-C2kRm2yU.js → dist-DQuOA3vR.js} +1 -1
- package/dist/public/assets/{dist-1WMiywBY.js → dist-DlTJY48Q.js} +1 -1
- package/dist/public/assets/{dist-B2xcxFKA.js → dist-DqqLfr8L.js} +1 -1
- package/dist/public/assets/{dist-BB-_bX4W.js → dist-LtbcyjB7.js} +1 -1
- package/dist/public/assets/{dist-CTgYxMvL.js → dist-McVxqaQr.js} +1 -1
- package/dist/public/assets/{dist-CEcVCo7N.js → dist-R7QC_kjf.js} +1 -1
- package/dist/public/assets/{dist-BMKoCRsq.js → dist-XOMICCBT.js} +1 -1
- package/dist/public/assets/{dist-BJEecnun.js → dist-oYievw6e.js} +1 -1
- package/dist/public/assets/{dist-BDK1JLMM.js → dist-qfZ4Zkay.js} +1 -1
- package/dist/public/assets/{doc-hash-BT2I193z.js → doc-hash-BDtDlqpM.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-CfgPgnPl.js → doc-undo-manager-yavvIgvD.js} +1 -1
- package/dist/public/assets/{documents-events-C1uYbecE.js → documents-events-DD7-XBOS.js} +1 -1
- package/dist/public/assets/{download-BouT3__0.js → download-D-kvS_hz.js} +1 -1
- package/dist/public/assets/{dropdown-menu-DH6UNmuX.js → dropdown-menu-480HwyVz.js} +1 -1
- package/dist/public/assets/field-controls-ZSTvXteZ.js +1 -0
- package/dist/public/assets/{field-controls-DVDZIfO-.js → field-controls-hRoeLiNf.js} +1 -1
- package/dist/public/assets/{file-plus-DKxOZh2k.js → file-plus-DBpEVY_Q.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-swxoGL5Y.js → file-tree-adapter-CCs0BTVj.js} +1 -1
- package/dist/public/assets/{file-tree-utils-4_QK0cZe.js → file-tree-utils-Chf8oKT-.js} +1 -1
- package/dist/public/assets/{folder-QqUoFRPR.js → folder-DSkyRNas.js} +1 -1
- package/dist/public/assets/{folder-config-api-CzgwDsGQ.js → folder-config-api-DIgyKHZD.js} +1 -1
- package/dist/public/assets/{folder-open-COGOeTzI.js → folder-open-a_XLAh8h.js} +1 -1
- package/dist/public/assets/{git-branch-CeTudSak.js → git-branch-EQxRRYB4.js} +1 -1
- package/dist/public/assets/{git-merge-VDBzSZBV.js → git-merge-Cmg8y0YC.js} +1 -1
- package/dist/public/assets/{grip-vertical-DNbkgWZL.js → grip-vertical-DDCmIcxh.js} +1 -1
- package/dist/public/assets/{handoff-DsHaP2rA.js → handoff-rTg39zAU.js} +1 -1
- package/dist/public/assets/{hash-C4CJQURT.js → hash-Cm4xjMc9.js} +1 -1
- package/dist/public/assets/{image-attachment-dml6C4FH.js → image-attachment-DFK2cqaC.js} +1 -1
- package/dist/public/assets/{ime-composition-ga8qmx5E.js → ime-composition-CGhNlGxT.js} +1 -1
- package/dist/public/assets/index-ceo-9NqS.js +2209 -0
- package/dist/public/assets/{info-CyR0W2SK.js → info-CTtlruwn.js} +1 -1
- package/dist/public/assets/{keyboard-shortcuts-D5fo2XHL.js → keyboard-shortcuts-BqVfFaC6.js} +1 -1
- package/dist/public/assets/{lint-config-client-DTbxVXNu.js → lint-config-client-Cwihn-uv.js} +1 -1
- package/dist/public/assets/{lint-plugin-meta-CtDE2R0v.js → lint-plugin-meta-6QZWEsvL.js} +1 -1
- package/dist/public/assets/lint-plugins-Bvo_3j4n.js +1 -0
- package/dist/public/assets/{list-plus-CYMJBvrm.js → list-plus-BF2ESfO9.js} +1 -1
- package/dist/public/assets/{local-menu-action-bus-Dyh2UJJF.js → local-menu-action-bus-BRwk7KU_.js} +1 -1
- package/dist/public/assets/{markdown-lint-yCmtY_Fk.js → markdown-lint-BHJCn8aG.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-DCZOAJHa.js → markdownlint-rule-browser-BljNWP0X.js} +1 -1
- package/dist/public/assets/minus-BUHNVRuZ.js +1 -0
- package/dist/public/assets/{miss-dialog-store-CsiJb9Ou.js → miss-dialog-store-9W8qZPsI.js} +1 -1
- package/dist/public/assets/{monitor-IXzxTnmk.js → monitor-Ddo728b9.js} +1 -1
- package/dist/public/assets/{navigation-targets-24nBe7eF.js → navigation-targets-CDgtiaAU.js} +1 -1
- package/dist/public/assets/{ok-bT2YVjQO.js → ok-Bc_I9i6o.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-CU-PLDYS.js → open-managed-artifact-tab-Iri08bTq.js} +1 -1
- package/dist/public/assets/{package-PkCmIx3S.js → package-C9LVxBgR.js} +1 -1
- package/dist/public/assets/{page-list-cache-QYahbazR.js → page-list-cache-tOaID4O4.js} +1 -1
- package/dist/public/assets/{panel-right-close-Bsh1pCmh.js → panel-right-close-D50eEzbs.js} +1 -1
- package/dist/public/assets/{panel-right-open-D4M8nGPT.js → panel-right-open-Bf2A8riD.js} +1 -1
- package/dist/public/assets/{paperclip-FfP_WlTp.js → paperclip-CToLKs9f.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BrZXdyHa.js → pending-receive-nav-store-NVntzFTK.js} +1 -1
- package/dist/public/assets/{perf-CYJlqBBt.js → perf-B1ng3teX.js} +1 -1
- package/dist/public/assets/{platform-labels-Bz5YiQUO.js → platform-labels-aUYOyjZS.js} +1 -1
- package/dist/public/assets/{plus-CXQ-oViZ.js → plus-CTeS7j4Q.js} +1 -1
- package/dist/public/assets/{preferred-session-events-DmjJhoQV.js → preferred-session-events-DoI6Nltj.js} +1 -1
- package/dist/public/assets/{prod-y4DljgL_.js → prod-CxmLlnTC.js} +2 -2
- package/dist/public/assets/{progress-BW0rUQqg.js → progress-DLhlLXF7.js} +4 -4
- package/dist/public/assets/{project-paths-apPSrrqd.js → project-paths-DjS_hY_q.js} +1 -1
- package/dist/public/assets/{prop-types-ZtKgQMRh.js → prop-types-CLb0dK7M.js} +1 -1
- package/dist/public/assets/{receive-store-BxNGsbg2.js → receive-store-DG-FxM8p.js} +1 -1
- package/dist/public/assets/{refresh-cw-BVQchE6b.js → refresh-cw-kK6tPJpw.js} +1 -1
- package/dist/public/assets/{restart-collab-server-J9LBNmz1.js → restart-collab-server-D7TSZeVB.js} +1 -1
- package/dist/public/assets/{rotate-ccw-DeMl2ou7.js → rotate-ccw-LkVEzPHf.js} +1 -1
- package/dist/public/assets/{save-held-message-EDUNzH4a.js → save-held-message-BxyYPArP.js} +1 -1
- package/dist/public/assets/{saved-themes-client-CekgvN2w.js → saved-themes-client-BESiCu3n.js} +1 -1
- package/dist/public/assets/{schema-section-UHYsIbh2.js → schema-section-CufFaxte.js} +1 -1
- package/dist/public/assets/{schemas-api-DlZNlpBW.js → schemas-api-6ufosDur.js} +1 -1
- package/dist/public/assets/{schemas-cc1-DAVdMZdU.js → schemas-cc1-tjl2gPeT.js} +1 -1
- package/dist/public/assets/search-DtAlL42D.js +1 -0
- package/dist/public/assets/{select-BsDvTs6I.js → select-BELkoEB6.js} +1 -1
- package/dist/public/assets/{selection-context-CL5DJJ5J.js → selection-context-D-6Wx6n8.js} +1 -1
- package/dist/public/assets/{settings-2-DoBlNQMk.js → settings-2-wYPq-LU9.js} +1 -1
- package/dist/public/assets/{share-D-LUU2aX-rZ2lBHef.js → share-D-LUU2aX-iU4CJWyG.js} +1 -1
- package/dist/public/assets/{sign-in-terminal-events-Cq-Ff47d.js → sign-in-terminal-events-BDhZsuH0.js} +1 -1
- package/dist/public/assets/{skill-scope-B5R5dnia.js → skill-scope-C6c798PF.js} +1 -1
- package/dist/public/assets/skill-targets-schema-CqL94mYR.js +1 -0
- package/dist/public/assets/{skills-api-BfE5FOtO.js → skills-api-BW6egGED.js} +1 -1
- package/dist/public/assets/{sparkles-lfxw6YO9.js → sparkles-CLa9Bco7.js} +1 -1
- package/dist/public/assets/{spinner-Bx8xD6f8.js → spinner-CeYJkImG.js} +1 -1
- package/dist/public/assets/{square-pen-DU3t-IcD.js → square-pen-5YkKFkKE.js} +1 -1
- package/dist/public/assets/{src-DZLuBGc4.js → src-BnRkOYT2.js} +1 -1
- package/dist/public/assets/{startup-marks-BTf4KsuH.js → startup-marks-iW0WPaQZ.js} +1 -1
- package/dist/public/assets/storage-scope-CM5DIkjP.js +1 -0
- package/dist/public/assets/{tag-pill-input-CsGX3LfF.js → tag-pill-input-BaWWdgLz.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-C5UVyTyO.js → target-navigation-intent-CwpBpDqj.js} +1 -1
- package/dist/public/assets/{telemetry-impl-B31Ncjxi.js → telemetry-impl-xdjXYvb5.js} +1 -1
- package/dist/public/assets/{telemetry-startup-B6ziimEZ.js → telemetry-startup-Dzg-IDUr.js} +1 -1
- package/dist/public/assets/terminal-BaAWoXQi.js +1 -0
- package/dist/public/assets/terminal-cli-display-nqMvU4tr.js +1 -0
- package/dist/public/assets/{terminal-command-events-DChb4IWc.js → terminal-command-events-DHW8vnqr.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-C4fI5alv.js → terminal-launch-events-CzHSWWOd.js} +1 -1
- package/dist/public/assets/{text-viewer-languages-CEIKqAO0.js → text-viewer-languages-5aC_46ro.js} +2 -2
- package/dist/public/assets/{theme-token-colors-BdA7xOfE.js → theme-token-colors-BHO3FRsE.js} +1 -1
- package/dist/public/assets/{thread-client-RjSMZyu3.js → thread-client-Dpm0z74_.js} +1 -1
- package/dist/public/assets/{trash-2-Blf9Cydx.js → trash-2-Dx-L6HlB.js} +1 -1
- package/dist/public/assets/{triangle-alert-DFWRwfH7.js → triangle-alert-COKT45NU.js} +1 -1
- package/dist/public/assets/typing-burst-detector-xtgLhjHi.js +6 -0
- package/dist/public/assets/{undo-2-opKemDpM.js → undo-2-DFO1_Si-.js} +1 -1
- package/dist/public/assets/{uninstall-QtbRPTPw.js → uninstall-8hUOVLi8.js} +1 -1
- package/dist/public/assets/use-activity-panel-No-V0vGV.js +1 -0
- package/dist/public/assets/{use-app-color-mode-IuaS2l9q.js → use-app-color-mode-D01Vqp07.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-DtZYKd4S.js → use-apply-config-color-theme-Dp4XXsd0.js} +1 -1
- package/dist/public/assets/{use-apply-config-language-2osa4BZp.js → use-apply-config-language-zbymJk7K.js} +1 -1
- package/dist/public/assets/{use-collab-url-cdu23GKm.js → use-collab-url-KnAEFuX9.js} +1 -1
- package/dist/public/assets/{use-conflicts-DYDVgnHm.js → use-conflicts-BjdOWvm-.js} +1 -1
- package/dist/public/assets/{use-git-sync-status-QF4fPT1l.js → use-git-sync-status-D8KvdiBj.js} +1 -1
- package/dist/public/assets/{use-installed-clis-CuUHppPf.js → use-installed-clis-CJz4xwue.js} +2 -2
- package/dist/public/assets/{use-live-xterm-theme-C44W14gS.js → use-live-xterm-theme-BeWdaIDt.js} +1 -1
- package/dist/public/assets/use-open-skill-BqX8C4Fb.js +1 -0
- package/dist/public/assets/{use-semantic-search-status-CtwmKCOY.js → use-semantic-search-status-H3Lc3w3y.js} +1 -1
- package/dist/public/assets/{use-settings-route-BGtkup9E.js → use-settings-route-9jEucaC_.js} +1 -1
- package/dist/public/assets/{use-skill-origin-CqdAI0LE.js → use-skill-origin-CevMDiz2.js} +1 -1
- package/dist/public/assets/{use-skill-targets-L7eMluIp.js → use-skill-targets-Bm-1Jayt.js} +1 -1
- package/dist/public/assets/{use-skills-CjskC_gs.js → use-skills-BWN24_tx.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-CNxLndWK.js → use-terminal-enabled-C38kf-nC.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-BBU349EG.js +7 -0
- package/dist/public/assets/{use-workspace-DyJIW5z6.js → use-workspace-gZ0GtHN-.js} +1 -1
- package/dist/public/assets/{wrench-DmtZXcHB.js → wrench-DX4SUik6.js} +1 -1
- package/dist/public/assets/x-B-DmMnJT.js +1 -0
- package/dist/public/index.html +180 -180
- package/dist/public/uninstall.html +9 -9
- package/dist/{registry-probes-CYNi5qIQ.mjs → registry-probes-i8THON1F.mjs} +1 -1
- package/dist/{removal-file-path-DZLkET7b.mjs → removal-file-path-C6ummtKf.mjs} +1 -1
- package/dist/{repair-launch-json-B7OnJBuU.mjs → repair-launch-json-D13WJKpY.mjs} +1 -1
- package/dist/{repair-mcp-configs-C4dUbuGT.mjs → repair-mcp-configs-Dpcbr0O1.mjs} +1 -1
- package/dist/src-C7iKm_nG.mjs +1 -0
- package/dist/{src-CbhsFfxZ.mjs → src-Cdv7Ww9e.mjs} +1 -1
- package/dist/{start-DjdNCY_w.mjs → start-BUPWWrZ2.mjs} +2 -2
- package/dist/start-CFBtSeQO.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-CDIC_0E3.mjs +0 -1
- package/dist/init-DksPCBxe.mjs +0 -1
- package/dist/loader-mvKq5eBt.mjs +0 -1
- package/dist/preview-C7MzdJar.mjs +0 -1
- package/dist/public/assets/DocumentContext-Dd5YjJ75.js +0 -110
- package/dist/public/assets/FeedbackForm-CuhSXZwR.js +0 -1
- package/dist/public/assets/LintingSection-Bu0KWPM4.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Pum7Yl2Z.js +0 -1
- package/dist/public/assets/Mermaid-BtwwoOWv.js +0 -2
- package/dist/public/assets/MermaidDocEditor-CkzKNCRL.js +0 -1
- package/dist/public/assets/PublishToGitHubDialog-B8k76ixS.js +0 -1
- package/dist/public/assets/SourceEditor-Ch9WvIrp.js +0 -1
- package/dist/public/assets/ThreadView-D014DKw-.js +0 -28
- package/dist/public/assets/arrow-right-NOQZeKIW.js +0 -1
- package/dist/public/assets/arrow-up-right-nJaICi16.js +0 -1
- package/dist/public/assets/channel-cli-copy-B2cLpMLf.js +0 -1
- package/dist/public/assets/check-B2OLRY33.js +0 -1
- package/dist/public/assets/chevron-left-C5T97PNU.js +0 -1
- package/dist/public/assets/chevron-right-Bofu4lib.js +0 -1
- package/dist/public/assets/circle-check-nK1yRBIw.js +0 -1
- package/dist/public/assets/comment-chips-HHEqRWai.js +0 -8
- package/dist/public/assets/config-schema-B0ILVL9I.js +0 -1
- package/dist/public/assets/field-controls-CERlEL35.js +0 -1
- package/dist/public/assets/index-Cc2cEgpA.js +0 -2209
- package/dist/public/assets/lint-plugins-MY8H8P61.js +0 -1
- package/dist/public/assets/minus-DdRxss3A.js +0 -1
- package/dist/public/assets/search-BoiwnBpA.js +0 -1
- package/dist/public/assets/skill-targets-schema-DIfTaAkM.js +0 -1
- package/dist/public/assets/storage-scope-BxY5pL8X.js +0 -1
- package/dist/public/assets/terminal-B38K-KMo.js +0 -1
- package/dist/public/assets/terminal-cli-display-F8P1rJOv.js +0 -1
- package/dist/public/assets/typing-burst-detector-Cdgni4Wx.js +0 -6
- package/dist/public/assets/use-activity-panel-CSJGf6vZ.js +0 -1
- package/dist/public/assets/use-open-skill-Bw3rOfos.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-BlZZ9rzl.js +0 -7
- package/dist/public/assets/x-wldAHzfP.js +0 -1
- package/dist/src-LKeE7di1.mjs +0 -1
- package/dist/start-DjDw3VK-.mjs +0 -1
- /package/dist/public/assets/{config-context-Dr6ezl8P.js → config-context-DmzX_4s_.js} +0 -0
- /package/dist/public/assets/{constants-cc1-Bt4QPTUe.js → constants-cc1-DSBEUyZb.js} +0 -0
- /package/dist/public/assets/{constants-github-B7yhDvQc.js → constants-github-CG_3Vnhk.js} +0 -0
- /package/dist/public/assets/{constants-product-BVSOzxVs.js → constants-product-DTeqlnBa.js} +0 -0
- /package/dist/public/assets/{constants-upload-DZP-sCdl.js → constants-upload-kkBkFBty.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-DdBzwsHe.js → createLucideIcon-CB3nKwwz.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-BxqZkaz9.js → desktop-bridge-types-B8voP7ui.js} +0 -0
- /package/dist/public/assets/{dist-BGzUo_18.js → dist-Bs8bPT30.js} +0 -0
- /package/dist/public/assets/{dist-C_FzPxEX2.js → dist-XgwTV-oh2.js} +0 -0
- /package/dist/public/assets/{doc-extensions-CcO7K8uD-DG9uHV54.js → doc-extensions-CcO7K8uD-BsCiKh3N.js} +0 -0
- /package/dist/public/assets/{logging-renderer-log-CqIZVUIQ.js → logging-renderer-log-BxHgdJfM.js} +0 -0
- /package/dist/public/assets/{note-window-mode-CI3Yju9B.js → note-window-mode-DK36peY8.js} +0 -0
- /package/dist/public/assets/{parse-api-error-CeEVOj25.js → parse-api-error-B-hICRsf.js} +0 -0
- /package/dist/public/assets/{schemas-CxFhJLAM.js → schemas-DN_HD0k4.js} +0 -0
- /package/dist/public/assets/{util-doc-name-DRKmy6g9.js → util-doc-name-ICsmfVCh.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-C7Rznu6R.js → w3c-keyname-DElaZB74.js} +0 -0
- /package/dist/public/assets/{workspace-paths-BjilyZF6.js → workspace-paths-C2i9A8jM.js} +0 -0
package/dist/public/assets/{SettingsDialogBody-DmZz1LOo.js → SettingsDialogBody-wJKOE5mL.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-
|
|
2
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-DFWRwfH7.js";import{t as c}from"./lazy-with-preload-CZeMX40u.js";import{n as l,r as u,t as d}from"./alert-B2ODUyh8.js";import{r as f}from"./settings-host-gates-4_h8m1EA.js";import{n as p}from"./settings-fields-B2hCMOD3.js";import{t as m}from"./SettingsSectionHeader-B2_3E9FZ.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-tRd4zWnA.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-MyaUcheU.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-D-Zall4m.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,65,20,21,14,29,22,66,19,13,16,67,68,69,70,15,71,72,73,17,74,75,76,77,78,79,23,24,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,25,18,34,100,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-zBXwBiiA.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([101,1,56,2,3,4,12,6,7,8,13,14,9,10,11,102,16,15,103,104,105,43,44,45,46,47,48,49,50,51,52,53,36,79,67,17,106,76,107,108,109,81,22,66,26,24,110,111,5,19,20,21,112,33,113,114,82,115,116,117,118,119,29,30,71,42,120,121,122,23,80,123,124,125,126,127,128,129,130,131,18,25,132,99,133,134]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-D76XKrhk.js`);return{AttachmentsSection:e}},__vite__mapDeps([135,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,136,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,12,137,30,24,138,139,28,113,140,141,96,76,142,5,26,80,81,82,123,124,99,34,143,88,144,18,15,23,25,145]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-ciIo1Fox.js`);return{ContentRulesSection:e}},__vite__mapDeps([146,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,5,12,147,148,149,150,151,18,15,23,24,25,88]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-CERlEL35.js`);return{SectionSkeleton:e}},__vite__mapDeps([152,136,1,2,3,4,40,65,20,21,6,7,8,14,29,22,66,19,9,10,11,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,142,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-B7aU1Xml.js`);return{HotkeysSection:e}},__vite__mapDeps([153,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,154,155,93,94,95]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-BhYEcdaY.js`);return{IntegrationsSection:e}},__vite__mapDeps([156,1,2,3,4,157,16,158,159,98,160,17,9,10,11,31,8,26,7,24,80,81,6,22,66,82,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-CKiImo2e.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([161,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,80,81,66,82,88]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-Bu0KWPM4.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,71,138,159,98,160,197,72,198,199,33,17,111,200,201,140,106,114,202,203,204,86,87,88,205,206,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-Bu0KWPM4.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,71,138,159,98,160,197,72,198,199,33,17,111,200,201,140,106,114,202,203,204,86,87,88,205,206,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-Bu0KWPM4.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,71,138,159,98,160,197,72,198,199,33,17,111,200,201,140,106,114,202,203,204,86,87,88,205,206,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-CVtdkBHf.js`);return{NetworkAccessSection:e}},__vite__mapDeps([234,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,109,6,7,81,22,66,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,99,35,235,88,144]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-DnoLrVcI.js`);return{OkignoreSection:e}},__vite__mapDeps([236,1,237,8,4,2,3,19,20,21,6,7,14,22,9,10,11,67,16,238,76,82,31,204,56,180,181,48,47,182,64,50,185,86,87,44,88,36,186,205,206,207,208,51,18,15,23,24,25,239,26,99,34,145,240]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-s7icbspb.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([241,1,2,3,4,140,16,9,242,56,109,6,7,8,81,22,66,26,24,11,10,117,118,119,20,21,14,29,30,67,71,243,96,82,31,43,44,45,46,47,48,49,50,51,52,53,36,220,17,80,123,5,124,99,143,86,87,88,244,205,18,19,15,23,25,34,232,90,92,93,94,95]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-DRdyZQZf.js`);return{SearchSection:e}},__vite__mapDeps([245,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,69,6,7,12,13,14,10,11,71,16,246,86,87,88,18,19,20,21,22,15,23,24,25,26,80,81,66,82,123,5,124,99,144]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-CXbSw1oW.js`);return{SkillsManagerSection:e}},__vite__mapDeps([247,1,2,3,4,109,6,7,8,81,22,66,9,26,24,11,10,16,158,117,118,119,20,21,14,29,30,67,71,98,96,31,115,19,112,114,116,42,104,120,121,122,53,36,223,18,15,23,25,80,82,99,34,227,56,43,44,45,46,47,48,49,50,51,52,86,87,88,205,216,226,213,232,90,207,208,215,126,125]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-sGWfjtzJ.js`);return{SlidesPluginSection:e}},__vite__mapDeps([248,1,2,3,4,15,16,75,9,203,19,20,21,6,7,8,14,22,10,11,67,98,26,24,78,79,45,44,46,47,18,23,25,249,99,143,92,93,94,95]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-Eyz1tj40.js`);return{SyncSection:e}},__vite__mapDeps([250,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,69,137,30,24,38,70,15,71,72,73,17,74,75,76,77,78,79,23,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,25,251,5,28,188,164,165,166,167,168,169,170,171,172,173,174,163,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,186,187,130,189,190,12,191,129,192,193,194,195,158,196,138,159,160,197,198,199,33,111,200,201,140,106,114,202,203,204,205,206,207,208,209,155,34,210,211,212,213,214,215,126,216,128,134,121,217,123,124,143,252,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-xwZM2Hgh.js`);return{TerminalSection:e}},__vite__mapDeps([253,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,254,88,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-Fo_U0vAO.js`);return{ThemePluginSection:e}},__vite__mapDeps([255,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,256,142,136,40,65,20,21,14,29,22,66,19,13,67,68,12,137,30,24,138,139,28,113,61,140,141,96,76,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,23,25,145,240,257]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-MY8H8P61.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([258,218,16,1,4,162,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,71,138,159,98,160,197,72,198,199,33,17,111,200,201,140,106,114,202,203,204,86,87,88,205,206,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-UHYsIbh2.js`),__vite__mapDeps([256,1,2,3,4,142,7,5,6,8,9,10,11,31,136,40,65,20,21,14,29,22,66,19,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,15,23,25,145,240]),import.meta.url),t(()=>import(`./OkCliPathRow-Cp6iztN6.js`),__vite__mapDeps([259,1,2,3,4,110,6,7,8,13,14,67,16,111,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-DYtxL6uE.js`),__vite__mapDeps([260,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,67,16,141,82,31,179,136,40,65,29,66,68,137,30,24,138,139,28,113,61,42,140,96,76,142,5,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,123,124,99,34,143,54,55,57,60,62,63,64,88,144,154]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-Wga6ljal.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-BuM5_PNk.js","./createLucideIcon-CB3nKwwz.js","./spinner-CeYJkImG.js","./SettingsSectionHeader-DoDCqZE9.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-DcyFOLs8.js","./dist-BsJYDohW.js","./external-link-C6hldklD.js","./button-DzgjsZzC.js","./SharingSection-CmvBaP1e.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-Bs8bPT30.js","./ConfigSharingInfoTooltip-CmaSkr99.js","./info-CTtlruwn.js","./skeleton-BBQ4J9l6.js","./channel-cli-copy-BE13Ri4Z.js","./constants-product-DTeqlnBa.js","./AccountSection-BxA3npGg.js","./SyncStatusBadge-5xYsRIZu.js","./config-provider-DzD_5rVC.js","./trace-api-nQInEDYS.js","./status-CUwkWWLj.js","./dist-PQ5KMVDh.js","./schemas-api-6ufosDur.js","./schemas-DN_HD0k4.js","./_envelope-DuFpUEag-DIV0rnvM.js","./share-D-LUU2aX-iU4CJWyG.js","./util-doc-name-ICsmfVCh.js","./constants-cc1-DSBEUyZb.js","./constants-github-CG_3Vnhk.js","./doc-extensions-CcO7K8uD-BsCiKh3N.js","./logging-renderer-log-BxHgdJfM.js","./skill-targets-schema-CqL94mYR.js","./constants-editors-IUfUQiPg.js","./use-apply-config-language-zbymJk7K.js","./preload-helper-Chd9yIcd.js","./dist-XgwTV-oh2.js","./messages-C8cmUpJ8.js","./client-version-CE1HFR4D.js","./css-color-to-hex-B2zwblEY.js","./use-apply-config-color-theme-Dp4XXsd0.js","./use-apply-config-theme-D81w9H1H.js","./config-context-DmzX_4s_.js","./saved-themes-client-BESiCu3n.js","./constants-upload-kkBkFBty.js","./select-BELkoEB6.js","./es2015-Dtr4fzLT.js","./check-x3deoXUY.js","./chevron-down-COI0lQ_Z.js","./collapsible-BKbszYZV.js","./arrow-up-VsvqTAMX.js","./chevron-right-B3hLba9m.js","./settings-2-wYPq-LU9.js","./git-merge-Cmg8y0YC.js","./refresh-cw-kK6tPJpw.js","./terminal-BaAWoXQi.js","./triangle-alert-COKT45NU.js","./DisclosureWarning-ColqYMZV.js","./terminal-command-events-DHW8vnqr.js","./handoff-rTg39zAU.js","./dialog-BPbtQmOL.js","./electron-drag-strip-D9GZhMg_.js","./x-B-DmMnJT.js","./popover-Dxc5JyiN.js","./dist-Cj3Bpren.js","./use-conflicts-BjdOWvm-.js","./documents-events-DD7-XBOS.js","./schemas-cc1-tjl2gPeT.js","./config-errors-BXj4CTPy.js","./use-git-sync-status-D8KvdiBj.js","./doc-hash-BDtDlqpM.js","./reveal-editor-8pMyPDaK.js","./use-settings-route-9jEucaC_.js","./keyboard-shortcuts-BqVfFaC6.js","./dist-CdgIFD0J.js","./w3c-keyname-DElaZB74.js","./trash-2-Dx-L6HlB.js","./AuthModal-CJedoV6p.js","./copy-C2v-T-2G.js","./input-DUSj2Bri.js","./auth-state-cache-Upa8QNbS.js","./AgentConnectionsSection-BGriqiir.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-DtQ0KEVm.js","./cursor-pH0WlPzE.js","./agent-registry-DAlpnuPI.js","./search-DtAlL42D.js","./TerminalLaunchContext-DknxkMP_.js","./agent-connections-Bk1le3Hp.js","./alert-dialog-Mwvu63aS.js","./checkbox-CYP7ZXBH.js","./minus-BUHNVRuZ.js","./folder-DSkyRNas.js","./monitor-Ddo728b9.js","./sparkles-CLa9Bco7.js","./AgentIconCluster-DJYZ5s2f.js","./OpenInAgentMenuItem-BBBy2Gy8.js","./dropdown-menu-480HwyVz.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CmkvU8CH.js","./utils-random-uuid-CE1X6bNM.js","./mascot-outline-CtS592mc.js","./field-DtEiTjHS.js","./separator-D7s_9ZwH.js","./tool-list-format-ahklHT7Z.js","./constants-skills-Coq7kn_k.js","./bool-pref-pcNhKZb_.js","./storage-scope-CM5DIkjP.js","./bridge-C3zpQGKh.js","./structural-freshness-C6rR7cV3-VXiZX15w.js","./terminal-cli-display-nqMvU4tr.js","./settings-section-labels-BfnPYQKp.js","./catalog-BIFRvQrT.js","./use-workspace-gZ0GtHN-.js","./AttachmentsSection-B_OUperC.js","./field-controls-hRoeLiNf.js","./toggle-group-aEGkM0EG.js","./circle-alert-dBeNuHbp.js","./ThemePicker-l4igefke.js","./plus-CTeS7j4Q.js","./rotate-ccw-LkVEzPHf.js","./form-zUZZA6cJ.js","./textarea-DUYJ_2l0.js","./config-schema-CmT2Ao7f.js","./config-validation-events-BcNoRosd.js","./ContentRulesSection-BsUQ0zJF.js","./markdown-lint-BHJCn8aG.js","./lib-Bq-Hw4OM.js","./ccount-Bpl7p-di.js","./syntax-IpEhTG_b.js","./markdownit-Bzko96Lx.js","./field-controls-ZSTvXteZ.js","./HotkeysSection-DrZRSXKK.js","./settings-host-gates-4_h8m1EA.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-gn7Gi9_7.js","./InstallInClaudeDesktopDialog-C_RQYp3V.js","./arrow-right-9zZjHMAu.js","./circle-check-CGCTZ_86.js","./download-D-kvS_hz.js","./LinkPreviewsSection-DJl-IPy_.js","./LintingSection-Dpym-WwL.js","./CodeMirrorPropInput-BjXlLQ_X.js","./dist-qfZ4Zkay.js","./dist-DPg4Sze-.js","./dist-DlTJY48Q.js","./dist-McVxqaQr.js","./dist-LtbcyjB7.js","./dist-XOMICCBT.js","./dist-B3l4eYse.js","./dist-CitzgyZk.js","./dist-oYievw6e.js","./dist-CDI_AHNY2.js","./stex-BzLRGzOW.js","./lib-BdDWWJXX.js","./space-separated-tokens-Db5y9Cue.js","./trim-lines-34TPYcWX.js","./folder-open-a_XLAh8h.js","./with-selector-zVo3Fruj.js","./navigation-targets-CDgtiaAU.js","./file-tree-utils-Chf8oKT-.js","./doc-paths-BxQo1KRQ.js","./cm-theme-DHJ4FCK8.js","./desktop-bridge-Btg3qpKV.js","./page-list-cache-tOaID4O4.js","./documents-fetch-aXwpCEvh.js","./note-window-mode-DK36peY8.js","./DocumentContext-C3d3aPqq.js","./propagation-api-dgM6YInk.js","./context-api-CMjojwfb.js","./lib-dxiLvrQN.js","./lib-CNBaznYe.js","./lib-AgCVC0Wn.js","./git-branch-EQxRRYB4.js","./Mermaid--NaGL3Jp.js","./use-app-color-mode-D01Vqp07.js","./perf-B1ng3teX.js","./diagnostic-breadcrumb-DJHixy9_.js","./ime-composition-CGhNlGxT.js","./prop-types-CLb0dK7M.js","./hash-Cm4xjMc9.js","./local-menu-action-bus-BRwk7KU_.js","./paperclip-CToLKs9f.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-BGXlB8sP.js","./PageListContext-DpKyZSYI.js","./parse-api-error-B-hICRsf.js","./startup-marks-iW0WPaQZ.js","./file-tree-rename-validation-7hzb3Ip7.js","./use-collab-url-KnAEFuX9.js","./api-config-DPT9T4cy.js","./excalidraw-scene-D5967Kw-.js","./known-skill-dirs-DrTKWg6a.js","./single-file-mode-DZrC4pKS.js","./skill-scope-C6c798PF.js","./skills-api-BW6egGED.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-6QZWEsvL.js","./square-pen-5YkKFkKE.js","./DeleteConfirmationDialog-DJ6Qtngd.js","./SkillPluginBundleDialog-3QRGH28G.js","./SkillInstallMenu-yZ2LF3xI.js","./ChangedOutsideBadge-h-lbo6MQ.js","./context-menu-v1ORxy1K.js","./dist-BzicVdNV.js","./use-skills-BWN24_tx.js","./use-skill-targets-Bm-1Jayt.js","./markdownlint-rule-browser-BljNWP0X.js","./tag-pill-input-BaWWdgLz.js","./lint-config-client-Cwihn-uv.js","./use-open-skill-BqX8C4Fb.js","./open-managed-artifact-tab-Iri08bTq.js","./schema-fields-view-intent-D1_jiI63.js","./NetworkAccessSection-Bhvpr6OE.js","./restart-collab-server-D7TSZeVB.js","./OkignoreSection-BfbduXqI.js","./sortable.esm-IIDOfP1t.js","./grip-vertical-DDCmIcxh.js","./config-ignore-nested-error-events-DxD25Hw7.js","./save-held-message-BxyYPArP.js","./ProjectTemplatesSection-DnNyoDmD.js","./TemplateRow-CH88SaaS.js","./file-plus-DBpEVY_Q.js","./folder-config-api-DIgyKHZD.js","./SearchSection-Bi3VBSp6.js","./use-semantic-search-status-H3Lc3w3y.js","./SkillsManagerSection-CfotG9eR.js","./SlidesPluginSection-BpeI6naA.js","./input-group-CaWCr-lk.js","./SyncSection-Bu7cBZQC.js","./PublishToGitHubDialog-UHsZa7GM.js","./clipboard-adapter-DZrGg03s.js","./TerminalSection-CxJHg3uk.js","./use-terminal-enabled-C38kf-nC.js","./ThemePluginSection-C3QmAxSy.js","./schema-section-CufFaxte.js","./settings-fields-B2hCMOD3.js","./lint-plugins-Bvo_3j4n.js","./OkCliPathRow-S85j6YMf.js","./SpellingSettings-DS0iCc6q.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-COKT45NU.js";import{t as c}from"./lazy-with-preload-CZeMX40u.js";import{n as l,r as u,t as d}from"./alert-B2ODUyh8.js";import{r as f}from"./settings-host-gates-4_h8m1EA.js";import{n as p}from"./settings-fields-B2hCMOD3.js";import{t as m}from"./SettingsSectionHeader-DoDCqZE9.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-Wga6ljal.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-CmvBaP1e.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34,35,36]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-BxA3npGg.js`);return{AccountSection:e}},__vite__mapDeps([37,1,2,3,4,5,6,7,8,9,10,11,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,57,58,59,60,61,62,63,64,65,20,21,14,29,22,66,19,13,16,67,68,69,70,15,71,72,73,17,74,75,76,77,78,79,23,24,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,25,18,34,100,35]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-BGriqiir.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([101,1,56,2,3,4,12,6,7,8,13,14,9,10,11,102,16,15,103,104,105,43,44,45,46,47,48,49,50,51,52,53,36,79,67,17,106,76,107,108,109,81,22,66,26,24,110,111,5,19,20,21,112,33,113,114,82,115,116,117,118,119,29,30,71,42,120,121,122,23,80,123,124,125,126,127,128,129,130,131,18,25,132,99,133,134]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-B_OUperC.js`);return{AttachmentsSection:e}},__vite__mapDeps([135,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,136,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,12,137,30,24,138,139,28,113,140,141,96,76,142,5,26,80,81,82,123,124,99,34,143,88,144,18,15,23,25,145]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-BsUQ0zJF.js`);return{ContentRulesSection:e}},__vite__mapDeps([146,39,1,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,5,12,147,148,149,150,151,18,15,23,24,25,88]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-ZSTvXteZ.js`);return{SectionSkeleton:e}},__vite__mapDeps([152,136,1,2,3,4,40,65,20,21,6,7,8,14,29,22,66,19,9,10,11,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,142,5,31,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-DrZRSXKK.js`);return{HotkeysSection:e}},__vite__mapDeps([153,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,154,155,93,94,95]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-gn7Gi9_7.js`);return{IntegrationsSection:e}},__vite__mapDeps([156,1,2,3,4,157,16,158,159,98,160,17,9,10,11,31,8,26,7,24,80,81,6,22,66,82,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-DJl-IPy_.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([161,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,80,81,66,82,88]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-Dpym-WwL.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-Dpym-WwL.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-Dpym-WwL.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([162,1,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,16,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,218,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-Bhvpr6OE.js`);return{NetworkAccessSection:e}},__vite__mapDeps([234,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,109,6,7,81,22,66,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,99,35,235,88,144]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-BfbduXqI.js`);return{OkignoreSection:e}},__vite__mapDeps([236,1,237,8,4,2,3,19,20,21,6,7,14,22,9,10,11,67,16,238,76,82,31,206,56,180,181,48,47,182,64,50,185,86,87,44,88,36,186,207,208,197,198,51,18,15,23,24,25,239,26,99,34,145,240]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-DnNyoDmD.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([241,1,2,3,4,140,16,9,242,56,109,6,7,8,81,22,66,26,24,11,10,117,118,119,20,21,14,29,30,67,71,243,96,82,31,43,44,45,46,47,48,49,50,51,52,53,36,220,17,80,123,5,124,99,143,86,87,88,244,207,18,19,15,23,25,34,232,90,92,93,94,95]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-Bi3VBSp6.js`);return{SearchSection:e}},__vite__mapDeps([245,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,69,6,7,12,13,14,10,11,71,16,246,86,87,88,18,19,20,21,22,15,23,24,25,26,80,81,66,82,123,5,124,99,144]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-CfotG9eR.js`);return{SkillsManagerSection:e}},__vite__mapDeps([247,1,2,3,4,109,6,7,8,81,22,66,9,26,24,11,10,16,158,117,118,119,20,21,14,29,30,67,71,98,96,31,115,19,112,114,116,42,104,120,121,122,53,36,223,18,15,23,25,80,82,99,34,227,56,43,44,45,46,47,48,49,50,51,52,86,87,88,207,216,226,213,232,90,197,198,215,126,125]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-BpeI6naA.js`);return{SlidesPluginSection:e}},__vite__mapDeps([248,1,2,3,4,15,16,75,9,205,19,20,21,6,7,8,14,22,10,11,67,98,26,24,78,79,45,44,46,47,18,23,25,249,99,143,92,93,94,95]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-Bu7cBZQC.js`);return{SyncSection:e}},__vite__mapDeps([250,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,65,20,21,6,7,14,29,22,66,19,10,11,13,16,67,68,69,137,30,24,38,70,15,71,72,73,17,74,75,76,77,78,79,23,26,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,25,251,5,28,188,164,165,166,167,168,169,170,171,172,173,174,163,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,186,187,130,189,190,12,191,129,192,193,194,195,158,196,197,198,138,159,160,199,200,201,33,111,202,203,140,106,114,204,205,206,207,208,209,155,34,210,211,212,213,214,215,126,216,128,134,121,217,123,124,143,252,18]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-CxJHg3uk.js`);return{TerminalSection:e}},__vite__mapDeps([253,1,39,40,41,42,4,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,55,56,31,8,57,58,59,60,61,62,2,63,64,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,254,88,35]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-C3QmAxSy.js`);return{ThemePluginSection:e}},__vite__mapDeps([255,1,2,3,4,5,6,7,8,9,10,11,15,16,42,31,43,44,45,46,47,48,49,50,51,52,53,36,256,142,136,40,65,20,21,14,29,22,66,19,13,67,68,12,137,30,24,138,139,28,113,61,140,141,96,76,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,23,25,145,240,257]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-Bvo_3j4n.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([258,218,16,1,4,162,163,55,164,165,95,166,167,168,169,170,171,172,173,174,21,39,40,41,42,9,3,43,44,45,46,47,48,49,50,51,52,53,36,54,56,31,8,57,58,59,60,61,62,2,63,64,94,148,149,175,176,177,150,178,96,179,180,181,182,183,184,185,25,90,186,187,130,109,6,7,81,22,66,26,24,11,10,5,12,13,14,188,189,190,65,20,29,19,67,68,69,191,129,192,193,194,70,195,158,196,76,80,82,197,198,71,138,159,98,160,199,72,200,201,33,17,111,202,203,140,106,114,204,205,206,86,87,88,207,208,209,23,99,155,83,84,34,210,211,212,93,213,91,214,215,126,216,128,134,121,217,147,151,15,73,219,220,77,221,110,222,117,118,119,30,112,115,116,104,120,122,223,224,225,226,227,18,228,141,123,124,229,230,231,232,233,92]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-CufFaxte.js`),__vite__mapDeps([256,1,2,3,4,142,7,5,6,8,9,10,11,31,136,40,65,20,21,14,29,22,66,19,13,16,67,68,12,137,30,24,138,139,28,113,61,42,140,141,96,76,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,82,123,124,99,34,143,54,55,56,57,60,62,63,64,88,144,18,15,23,25,145,240]),import.meta.url),t(()=>import(`./OkCliPathRow-S85j6YMf.js`),__vite__mapDeps([259,1,2,3,4,110,6,7,8,13,14,67,16,111,9,10,11,5,19,20,21,22,33,31,26,24,35,36]),import.meta.url),t(()=>import(`./SpellingSettings-DS0iCc6q.js`),__vite__mapDeps([260,1,21,20,6,7,4,8,3,14,56,2,12,13,9,10,11,19,22,67,16,141,82,31,179,136,40,65,29,66,68,137,30,24,138,139,28,113,61,42,140,96,76,142,5,43,44,45,46,47,48,49,50,51,52,53,36,26,80,81,123,124,99,34,143,54,55,57,60,62,63,64,88,144,154]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
|
package/dist/public/assets/{SettingsSectionHeader-B2_3E9FZ.js → SettingsSectionHeader-DoDCqZE9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{i as a,n as o,r as s,t as c}from"./tooltip-BjuCvy5N.js";import{t as l}from"./arrow-up-right-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{t as i}from"./utils-CPqDy6Hr.js";import{i as a,n as o,r as s,t as c}from"./tooltip-BjuCvy5N.js";import{t as l}from"./arrow-up-right-BuM5_PNk.js";import{t as u}from"./badge-DcyFOLs8.js";import{t as d}from"./external-link-C6hldklD.js";var f=r(),p=e();function m(){let e=(0,f.c)(1),n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,p.jsx)(u,{variant:`gray`,children:(0,p.jsx)(t,{id:`YBt9YP`})}),e[0]=n):n=e[0],n}function h(e){let n=(0,f.c)(10),{scope:r}=e,i=`settings-scope-badge-${r}`,l;n[0]===r?l=n[1]:(l=r===`user`?(0,p.jsx)(t,{id:`7PzzBU`}):r===`project-local`?(0,p.jsx)(t,{id:`ImTzPZ`}):(0,p.jsx)(t,{id:`e0NrBM`}),n[0]=r,n[1]=l);let d;n[2]!==i||n[3]!==l?(d=(0,p.jsx)(a,{asChild:!0,children:(0,p.jsx)(u,{variant:`gray`,tabIndex:0,className:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"data-testid":i,children:l})}),n[2]=i,n[3]=l,n[4]=d):d=n[4];let m;n[5]===r?m=n[6]:(m=(0,p.jsx)(o,{children:r===`user`?(0,p.jsx)(t,{id:`cFSbbh`}):r===`project-local`?(0,p.jsx)(t,{id:`YlwI5F`}):(0,p.jsx)(t,{id:`ebqMh6`})}),n[5]=r,n[6]=m);let h;return n[7]!==d||n[8]!==m?(h=(0,p.jsx)(s,{children:(0,p.jsxs)(c,{children:[d,m]})}),n[7]=d,n[8]=m,n[9]=h):h=n[9],h}function g(e){let r=(0,f.c)(28),{titleId:a,title:o,scope:s,level:c,beta:u,adornment:g,docUrl:_,descriptionId:v,children:y}=e,b=c===void 0?`page`:c,{_:x}=n(),S=b===`page`?`h3`:`h4`,C;r[0]!==x||r[1]!==_||r[2]!==o||r[3]!==a?(C=_===void 0?null:(0,p.jsxs)(`a`,{href:_,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>d(e,_),onAuxClick:e=>d(e,_),"aria-label":x(typeof o==`string`?{id:`Li4U-T`,values:{title:o}}:{id:`zwWKhA`}),className:`inline-flex items-center gap-0.5 text-sm text-primary underline-offset-2 hover:underline`,"data-testid":`${a}-docs-link`,children:[(0,p.jsx)(t,{id:`zwWKhA`}),(0,p.jsx)(l,{"aria-hidden":!0,className:`size-3`})]}),r[0]=x,r[1]=_,r[2]=o,r[3]=a,r[4]=C):C=r[4];let w=C,T=b===`page`?`text-lg`:`text-base`,E;r[5]===T?E=r[6]:(E=i(`font-semibold`,T),r[5]=T,r[6]=E);let D;r[7]!==S||r[8]!==E||r[9]!==o||r[10]!==a?(D=(0,p.jsx)(S,{id:a,className:E,children:o}),r[7]=S,r[8]=E,r[9]=o,r[10]=a,r[11]=D):D=r[11];let O;r[12]===u?O=r[13]:(O=u?(0,p.jsx)(m,{}):null,r[12]=u,r[13]=O);let k;r[14]===s?k=r[15]:(k=s?(0,p.jsx)(h,{scope:s}):null,r[14]=s,r[15]=k);let A;r[16]!==g||r[17]!==D||r[18]!==O||r[19]!==k?(A=(0,p.jsxs)(`div`,{className:`flex items-center gap-2`,children:[D,g,O,k]}),r[16]=g,r[17]=D,r[18]=O,r[19]=k,r[20]=A):A=r[20];let j;r[21]!==y||r[22]!==v||r[23]!==w?(j=y?(0,p.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[(0,p.jsx)(`span`,{id:v,children:y}),w?(0,p.jsxs)(p.Fragment,{children:[` `,w]}):null]}):w,r[21]=y,r[22]=v,r[23]=w,r[24]=j):j=r[24];let M;return r[25]!==A||r[26]!==j?(M=(0,p.jsxs)(`div`,{className:`space-y-1`,children:[A,j]}),r[25]=A,r[26]=j,r[27]=M):M=r[27],M}export{h as n,m as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-DzgjsZzC.js";import{n as s}from"./dist-BGzUo_18.js";import{t as ee}from"./dist-C_FzPxEX2.js";import{t as c}from"./desktop-bridge-types-BxqZkaz9.js";import{n as l,t as te}from"./git-branch-CeTudSak.js";import{t as u}from"./spinner-Bx8xD6f8.js";import{n as ne,t as d}from"./miss-dialog-store-CsiJb9Ou.js";import{a as re,c as ie,i as ae,n as oe,o as f,s as se,t as ce}from"./dialog-CAxu_6pu.js";import{t as le}from"./tool-list-format-ahklHT7Z.js";import{i as ue,n as p,t as m}from"./auth-prompt-store-Bv6bFEMJ.js";import{a as h,n as de}from"./receive-store-BxNGsbg2.js";import{t as fe}from"./share-metadata-rows-CWmpgFkC.js";var g=e(n(),1),pe=a();function me(e){let t=e.shareTargetExists,n=e.dirtyConflicts.conflicts,r=e.dirtyConflicts.files;return t&&!n?{kind:`A`,openCurrentEnabled:!0,switchEnabled:!0,conflictingFiles:r}:!t&&!n?{kind:`B`,openCurrentEnabled:!1,switchEnabled:!0,conflictingFiles:r}:t&&n?{kind:`C`,openCurrentEnabled:!0,switchEnabled:!1,conflictingFiles:r}:{kind:`D`,openCurrentEnabled:!1,switchEnabled:!1,conflictingFiles:r}}function he(e){return e.detached?e.currentHeadSha:e.currentBranch??`HEAD`}function _(e){if(e.ok)return{action:`await-cc1`};switch(e.reason){case`dirty-conflict`:return{action:`rerender-conflict`,files:e.files??[]};case`branch-not-found`:return{action:`dismiss-with-toast`,reason:`branch-not-found`};case`fetch-failed`:case`checkout-failed`:return{action:`stay-with-toast`,reason:e.reason};case`branch-in-other-worktree`:{let t=e.otherWorktreePath;return t===void 0||t.length===0?{action:`stay-with-toast`,reason:`checkout-failed`}:{action:`pivot-to-other-worktree`,otherWorktreePath:t}}case`ff-diverged`:return{action:`branch-diverged`};case`unsafe-symlinks`:return{action:`refused-unsafe-symlinks`,paths:e.refusedSymlinkPaths??[]};case`symlink-check-failed`:return{action:`stay-with-toast`,reason:`symlink-check-failed`};default:{let t=e.reason;throw Error(`Unhandled CheckoutFailureReason: ${String(t)}`)}}}var ge={phase:`loading`};function _e(e,t){return e.phase===`loading`?t===null?{phase:`error`}:{phase:`ready`,info:t}:e}function ve(e,t){return e.phase!==`ready`&&e.phase!==`verdict`?e:{phase:`switching`,info:e.info,pendingDoc:t}}function ye(e){return e.phase===`ready`?{phase:`creating-worktree`,info:e.info}:e}function be(e){return me(e).kind===`B`&&e.shareTargetOnOriginBranch===!1}function xe(e){return e.phase===`ready`?{phase:`verdict-pending`,info:e.info}:e}function Se(e,t){if(e.phase!==`verdict-pending`)return e;if(t===null||t.verdict===`unknown`||t.verdict===`changed-locally`)return{phase:`ready`,info:e.info};let n=t.verdict===`renamed`?{kind:`renamed`,renamedTo:t.renamedTo}:{kind:t.verdict};return{phase:`verdict`,info:e.info,resolution:n}}function Ce(e,t){if(e.phase!==`switching`)return{state:e};if(t===null)return{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`proxy-null`}};let n=_(t);return n.action===`await-cc1`?{state:{phase:`awaiting-cc1-recycle`,pendingDoc:e.pendingDoc}}:n.action===`rerender-conflict`?{state:{phase:`ready`,info:{...e.info,dirtyConflicts:{conflicts:!0,files:n.files.slice()}}}}:n.action===`pivot-to-other-worktree`?{state:{phase:`branch-in-other-worktree`,info:e.info,otherWorktreePath:n.otherWorktreePath,pendingDoc:e.pendingDoc}}:n.action===`dismiss-with-toast`?{state:{phase:`dismissed`,reason:n.reason},sideEffect:{kind:`toast`,reason:n.reason}}:n.action===`branch-diverged`?{state:{phase:`verdict`,info:e.info,resolution:{kind:`diverged`}}}:n.action===`refused-unsafe-symlinks`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`unsafe-symlinks`,paths:n.paths}}:{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:n.reason}}}function we(e,t){return e.phase===`creating-worktree`?t===null?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`proxy-null`}}:t.ok?{state:{phase:`opening-worktree`,path:t.path}}:t.reason===`branch-not-found`?{state:{phase:`dismissed`,reason:`branch-not-found`},sideEffect:{kind:`toast`,reason:`branch-not-found`}}:t.reason===`project-scope-unavailable`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,projectScopeIssue:t.issue}}:t.reason===`unsafe-symlinks`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,paths:t.refusedSymlinkPaths}}:{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,helper:t.helper,authFailed:t.reason===`fetch-failed`?t.authFailed:void 0,notFoundAsIdentity:t.reason===`fetch-failed`?t.notFoundAsIdentity:void 0}}:{state:e}}var v=t();function Te(e){return c(e.repositoryTarget)}function Ee(e,t=c(e.target)){let n=e.contentRootDepth===null?t:[...Te(e).split(`/`).slice(0,e.contentRootDepth),...t===``?[]:t.split(`/`)].join(`/`);return{kind:e.target.kind,path:t,repositoryPath:n,...e.contentRootDepth===null?{}:{contentRootDepth:e.contentRootDepth}}}function De(e){return e!==null&&e.kind===`project-branch-switch`}var Oe=5;function ke(e){return`share-branch-unsafe-symlinks:${e}`}function Ae(e){let t=(0,pe.c)(221),{bridge:n,store:a}=e,m=a===void 0?de:a,{_}=i(),Ae;t[0]===_?Ae=t[1]:(Ae=function(e){let t=e.slice(0,Oe),n=e.length-t.length,r=n>0?[...t,_({id:`pCJv30`,values:{hiddenCount:n}})]:t;return r.length===0?void 0:le(r,ee.locale)},t[0]=_,t[1]=Ae);let y=Ae,b=(0,g.useSyncExternalStore)(m.subscribe,m.getSnapshot,Re),[x,S]=(0,g.useState)(ge),ze=(0,g.useRef)(!1),Be=(0,g.useRef)(!1),Ve=(0,g.useRef)(!1),He=(0,g.useRef)(null),Ue;t[2]===b?Ue=t[3]:(Ue=De(b)?b:null,t[2]=b,t[3]=Ue);let C=Ue,We;t[4]!==_||t[5]!==C?.share.target.kind?(We=C?.share.target.kind===`folder`?_({id:`ugoTXs`}):_({id:`XH30C4`}),t[4]=_,t[5]=C?.share.target.kind,t[6]=We):We=t[6];let w=We,Ge;t[7]===C?Ge=t[8]:(Ge=()=>{S(ge),ze.current=!1,Be.current=!1,Ve.current=!1,He.current=C},t[7]=C,t[8]=Ge);let Ke;t[9]===b?Ke=t[10]:(Ke=[b],t[9]=b,t[10]=Ke),(0,g.useEffect)(Ge,Ke);let qe;t[11]!==C||t[12]!==n?(qe=()=>{if(!C||ze.current)return;ze.current=!0;let e=!1;return n.project.fetchBranchInfo({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.repositoryTarget.kind,path:Te(C.share)}).then(t=>{e||S(e=>_e(e,t))}).catch(t=>{e||(console.warn(`[receive] branch-info-fetch-failed`,t instanceof Error?t.message:t),S(Le))}),()=>{e=!0}},t[11]=C,t[12]=n,t[13]=qe):qe=t[13];let Je;t[14]===C?Je=t[15]:(Je=[C],t[14]=C,t[15]=Je),(0,g.useEffect)(qe,Je);let Ye;t[16]!==C||t[17]!==x.info||t[18]!==x.phase||t[19]!==n?(Ye=()=>{if(!C||x.phase!==`ready`||Ve.current||!be(x.info))return;Ve.current=!0,S(xe);let e=C;n.project.fetchTargetStatus({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.target.kind,path:Te(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth}}).then(t=>{He.current===e&&S(e=>Se(e,t))}).catch(t=>{He.current===e&&(console.warn(`[receive] target-status-fetch-failed`,t instanceof Error?t.message:t),S(Ie))})},t[16]=C,t[17]=x.info,t[18]=x.phase,t[19]=n,t[20]=Ye):Ye=t[20];let Xe;t[21]!==C||t[22]!==x.phase?(Xe=[x.phase,C],t[21]=C,t[22]=x.phase,t[23]=Xe):Xe=t[23],(0,g.useEffect)(Ye,Xe);let Ze;t[24]!==C||t[25]!==x.phase||t[26]!==x.resolution||t[27]!==m?(Ze=()=>{if(x.phase!==`verdict`)return;let{kind:e}=x.resolution;e!==`deleted`&&e!==`never-on-branch`||C&&(d.arm({kind:C.share.target.kind,path:c(C.share.target),repositoryPath:Te(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth},branch:C.share.branch}),m.dismiss())},t[24]=C,t[25]=x.phase,t[26]=x.resolution,t[27]=m,t[28]=Ze):Ze=t[28];let Qe;t[29]!==C||t[30]!==x||t[31]!==m?(Qe=[x,C,m],t[29]=C,t[30]=x,t[31]=m,t[32]=Qe):Qe=t[32],(0,g.useEffect)(Ze,Qe);let $e;t[33]!==x.phase||t[34]!==x.resolution?($e=()=>{x.phase===`verdict`&&console.log(h({verdict_cell:x.resolution.kind}))},t[33]=x.phase,t[34]=x.resolution,t[35]=$e):$e=t[35];let et;t[36]===x?et=t[37]:(et=[x],t[36]=x,t[37]=et),(0,g.useEffect)($e,et);let tt;t[38]!==_||t[39]!==C||t[40]!==x.pendingDoc||t[41]!==x.phase||t[42]!==n||t[43]!==m||t[44]!==w?(tt=()=>{if(x.phase!==`awaiting-cc1-recycle`||!C)return;let e=C.share.branch,t=x.pendingDoc;if(!e){m.dismiss();return}if(Be.current)return;Be.current=!0;let r=!1;return n.project.awaitBranchSwitched({projectPath:C.projectPath,branch:e,timeoutMs:3e4}).then(i=>{if(!r){if(i.ok){console.log(h({branch_dialog_action:`branch-switch-complete`,branch:e})),n.project.open({path:C.projectPath,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(C.share,t),pendingBranch:e}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=switch`,e instanceof Error?e.message:e),s.error(_({id:`gQV-9w`,values:{targetNoun:w}}))}),m.dismiss();return}console.log(h({branch_dialog_action:`branch-switch-timeout`,branch:e})),s.error(_({id:`LBwUR6`,values:{targetNoun:w}})),m.dismiss()}}).catch(e=>{r||(console.warn(`[receive] awaitBranchSwitched rejected`,e instanceof Error?e.message:e),s.error(_({id:`Jw6EC4`,values:{targetNoun:w}})),m.dismiss())}),()=>{r=!0}},t[38]=_,t[39]=C,t[40]=x.pendingDoc,t[41]=x.phase,t[42]=n,t[43]=m,t[44]=w,t[45]=tt):tt=t[45];let nt;if(t[46]!==C||t[47]!==x.phase?(nt=[x.phase,C],t[46]=C,t[47]=x.phase,t[48]=nt):nt=t[48],(0,g.useEffect)(tt,nt),!C)return null;let{share:T,projectPath:E,currentBranch:rt}=C,D=T.branch,it;t[49]!==_||t[50]!==n.project||t[51]!==E||t[52]!==y||t[53]!==D||t[54]!==m?(it=function(e,t,r){console.log(h({branch_dialog_action:`switch`,branch_action:`switch`,branch:D,verdict_cell:r})),S(t=>ve(t,e)),n.project.runCheckout(t?{projectPath:E,branch:D,fastForward:!0}:{projectPath:E,branch:D}).then(e=>{let t=null,n=!1,r=[];S(i=>{let{state:a,sideEffect:o}=Ce(i,e);return o&&(t=o.reason,r=o.paths??[],n=a.phase===`dismissed`),a});let i=ke(D);t!==`unsafe-symlinks`&&s.dismiss(i),t===`unsafe-symlinks`?s.error(_({id:`461Vg9`,values:{shareBranch:D}}),{description:y(r),id:i,duration:1/0}):t===`branch-not-found`?s.error(_({id:`NJyQi_`,values:{shareBranch:D}})):t===`fetch-failed`?s.error(_({id:`bWLmRK`})):t===`symlink-check-failed`?s.error(_({id:`0uxLib`,values:{shareBranch:D}})):(t===`checkout-failed`||t===`proxy-null`)&&s.error(_({id:`c863eW`,values:{shareBranch:D}})),n&&m.dismiss()}).catch(e=>{console.warn(`[receive] runCheckout rejected branch_action=switch`,e instanceof Error?e.message:e),S(Fe),s.dismiss(ke(D)),s.error(_({id:`c863eW`,values:{shareBranch:D}}))})},t[49]=_,t[50]=n.project,t[51]=E,t[52]=y,t[53]=D,t[54]=m,t[55]=it):it=t[55];let O=it,at;t[56]!==x.info||t[57]!==x.phase||t[58]!==O||t[59]!==T.target?(at=function(){x.phase===`ready`&&me(x.info).switchEnabled&&O(c(T.target),!1)},t[56]=x.info,t[57]=x.phase,t[58]=O,t[59]=T.target,t[60]=at):at=t[60];let ot=at,st;t[61]!==x.phase||t[62]!==x.resolution||t[63]!==O||t[64]!==T.target?(st=function(){x.phase===`verdict`&&O(c(T.target),!0,x.resolution.kind)},t[61]=x.phase,t[62]=x.resolution,t[63]=O,t[64]=T.target,t[65]=st):st=t[65];let ct=st,lt;t[66]!==x.phase||t[67]!==x.resolution||t[68]!==O?(lt=function(){x.phase===`verdict`&&x.resolution.kind===`renamed`&&O(x.resolution.renamedTo,!0,x.resolution.kind)},t[66]=x.phase,t[67]=x.resolution,t[68]=O,t[69]=lt):lt=t[69];let ut=lt,dt;t[70]!==x.phase||t[71]!==x.resolution||t[72]!==O||t[73]!==T.target?(dt=function(){x.phase===`verdict`&&O(c(T.target),!1,x.resolution.kind)},t[70]=x.phase,t[71]=x.resolution,t[72]=O,t[73]=T.target,t[74]=dt):dt=t[74];let ft=dt,pt;t[75]!==_||t[76]!==n.project||t[77]!==E||t[78]!==T||t[79]!==D||t[80]!==m||t[81]!==w?(pt=function(){console.log(h({branch_dialog_action:`open-current`,branch:D})),n.project.open({path:E,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(T)}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=open-current`,e instanceof Error?e.message:e),s.error(_({id:`b5aNbi`,values:{targetNoun:w}}))}),m.dismiss()},t[75]=_,t[76]=n.project,t[77]=E,t[78]=T,t[79]=D,t[80]=m,t[81]=w,t[82]=pt):pt=t[82];let mt=pt,ht;t[83]!==_||t[84]!==y||t[85]!==D?(ht=function(e){let{reason:t}=e,n=`helper`in e?e.helper:void 0,r=`authFailed`in e?e.authFailed:void 0,i=`notFoundAsIdentity`in e?e.notFoundAsIdentity:void 0;if(t===`fetch-failed`&&i){s.error(_({id:`jRsjlF`}));return}if(t===`fetch-failed`&&r){s.error(_({id:`gfb-CM`}),{action:{label:_({id:`5lWFkC`}),onClick:Pe}});return}switch(t){case`helper-not-found`:{let e=n??_({id:`cHhH3i`});s.error(_({id:`Z7x_Zh`,values:{tool:e}}));return}case`branch-not-found`:s.error(_({id:`NJyQi_`,values:{shareBranch:D}}));return;case`fetch-failed`:s.error(_({id:`bWLmRK`}));return;case`already-checked-out`:s.error(_({id:`ljHjfg`}));return;case`branch-exists`:s.error(_({id:`h3QZcB`,values:{shareBranch:D}}));return;case`path-exists`:s.error(_({id:`cN1Gcp`,values:{shareBranch:D}}));return;case`no-git`:s.error(_({id:`CFnavk`}));return;case`empty-repo`:s.error(_({id:`5IgYAM`}));return;case`invalid-branch`:s.error(_({id:`JfPuv7`,values:{shareBranch:D}}));return;case`project-scope-unavailable`:s.error(_(p({reason:t,issue:e.projectScopeIssue})));return;case`unsafe-symlinks`:s.error(_({id:`_6cS9O`,values:{shareBranch:D}}),{description:y(e.paths),id:ke(D),duration:1/0});return;case`proxy-null`:case`error`:s.error(_({id:`e8zYa8`,values:{shareBranch:D}}));return;default:throw Error(`Unhandled worktree failure reason: ${String(t)}`)}},t[83]=_,t[84]=y,t[85]=D,t[86]=ht):ht=t[86];let gt=ht,_t;t[87]!==_||t[88]!==n.project||t[89]!==T||t[90]!==D||t[91]!==gt||t[92]!==m?(_t=function(e){e?.ok===!1&&e.reason===`project-scope-unavailable`&&ue();let t,r=!1,i=null;if(S(n=>{let{state:a,sideEffect:o}=we(n,e);return o&&(t=o,r=a.phase===`dismissed`),a.phase===`opening-worktree`&&(i=a.path),a}),t?.reason!==`unsafe-symlinks`&&s.dismiss(ke(D)),t!==void 0&&(console.log(h({branch_dialog_action:`open-worktree-failed:${t.reason}`,branch:D})),gt(t)),i!==null){ue();let e=i;n.project.open({path:e,target:`new-window`,entryPoint:`worktree`,pendingDeepLinkTarget:Ee(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] worktree-open-failed branch_dialog_action=open-worktree`,t instanceof Error?t.message:t),s.error(_({id:`LdABLa`,values:{target:e}}))}),m.dismiss()}r&&m.dismiss()},t[87]=_,t[88]=n.project,t[89]=T,t[90]=D,t[91]=gt,t[92]=m,t[93]=_t):_t=t[93];let vt=_t,yt;t[94]!==vt||t[95]!==x.phase||t[96]!==n.worktree||t[97]!==D?(yt=function(){x.phase===`ready`&&(console.log(h({branch_dialog_action:`open-worktree`,branch:D})),S(ye),n.worktree.checkout({branch:D}).then(e=>{vt(e)}).catch(e=>{console.warn(`[receive] worktree-checkout rejected branch_dialog_action=open-worktree`,e instanceof Error?e.message:e),vt(null)}))},t[94]=vt,t[95]=x.phase,t[96]=n.worktree,t[97]=D,t[98]=yt):yt=t[98];let bt=yt,xt;t[99]!==_||t[100]!==x.otherWorktreePath||t[101]!==x.phase||t[102]!==n.project||t[103]!==T||t[104]!==D||t[105]!==m?(xt=function(){if(x.phase!==`branch-in-other-worktree`)return;let e=x.otherWorktreePath;console.log(h({branch_dialog_action:`pivot-to-other-worktree`,branch:D})),n.project.open({path:e,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] pivot-open-failed branch_action=pivot-to-other-worktree`,t instanceof Error?t.message:t),s.error(_({id:`LdABLa`,values:{target:e}}))}),m.dismiss()},t[99]=_,t[100]=x.otherWorktreePath,t[101]=x.phase,t[102]=n.project,t[103]=T,t[104]=D,t[105]=m,t[106]=xt):xt=t[106];let St=xt,Ct;t[107]!==x.phase||t[108]!==x.resolution||t[109]!==m?(Ct=function(){console.log(h({branch_dialog_action:`cancel`,verdict_cell:x.phase===`verdict`?x.resolution.kind:void 0})),m.dismiss()},t[107]=x.phase,t[108]=x.resolution,t[109]=m,t[110]=Ct):Ct=t[110];let k=Ct,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J;if(t[111]!==_||t[112]!==x.info||t[113]!==x.otherWorktreePath||t[114]!==x.phase||t[115]!==x.resolution||t[116]!==k||t[117]!==rt||t[118]!==T.branch||t[119]!==T.owner||t[120]!==T.repo||t[121]!==T.target||t[122]!==D||t[123]!==w){q=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?me(x.info):null;let e;t[143]!==x.info||t[144]!==x.phase||t[145]!==rt?(e=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?he(x.info):rt??`HEAD`,t[143]=x.info,t[144]=x.phase,t[145]=rt,t[146]=e):e=t[146];let n=e;I=x.phase===`switching`||x.phase===`awaiting-cc1-recycle`,N=x.phase===`creating-worktree`;let i;t[147]===_?i=t[148]:(i=_({id:`OuY8t9`}),t[147]=_,t[148]=i),P=i;let a;t[149]===_?a=t[150]:(a=_({id:`XZkdtg`}),t[149]=_,t[150]=a),F=a;let o;t[151]===_?o=t[152]:(o=_({id:`VTulZj`}),t[151]=_,t[152]=o),J=o;let s=x.phase===`loading`,ee=x.phase===`error`;M=ce,G=!0,t[153]===k?K=t[154]:(K=e=>{e||k()},t[153]=k,t[154]=K),j=ae,B=`sm:max-w-xl`,V=`share-branch-switch-dialog`,H=Ne,U=Me;let l;t[155]===w?l=t[156]:(l=(0,v.jsx)(ie,{children:(0,v.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:w}})}),t[155]=w,t[156]=l);let te=T.owner,ne=T.repo,d;t[157]===T.target?d=t[158]:(d=c(T.target),t[157]=T.target,t[158]=d);let f;t[159]!==T.owner||t[160]!==T.repo||t[161]!==d?(f=(0,v.jsx)(re,{className:`sr-only`,children:(0,v.jsx)(r,{id:`f8jU-L`,values:{0:te,1:ne,2:d}})}),t[159]=T.owner,t[160]=T.repo,t[161]=d,t[162]=f):f=t[162],t[163]!==l||t[164]!==f?(W=(0,v.jsxs)(se,{children:[l,f]}),t[163]=l,t[164]=f,t[165]=W):W=t[165],A=oe;let le=T.owner,ue=T.repo,p;t[166]===T.target?p=t[167]:(p=c(T.target),t[166]=T.target,t[167]=p),t[168]!==T.branch||t[169]!==T.owner||t[170]!==T.repo||t[171]!==T.target.kind||t[172]!==p?(L=(0,v.jsx)(`div`,{className:`mb-4`,children:(0,v.jsx)(fe,{owner:le,repo:ue,path:p,kind:T.target.kind,branch:T.branch,testId:`share-branch-switch-metadata`,branchTestId:`share-branch-switch-metadata-branch`})}),t[168]=T.branch,t[169]=T.owner,t[170]=T.repo,t[171]=T.target.kind,t[172]=p,t[173]=L):L=t[173],R=x.phase===`branch-in-other-worktree`?(0,v.jsxs)(`div`,{className:`text-sm text-muted-foreground`,"data-testid":`share-branch-switch-in-other-worktree`,children:[(0,v.jsx)(`p`,{className:`leading-6`,children:(0,v.jsx)(r,{id:`yjExfe`,values:{shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),(0,v.jsx)(`p`,{className:`mt-2 break-all rounded bg-muted px-2 py-1 font-mono text-xs text-foreground/80`,"data-testid":`share-branch-switch-in-other-worktree-path`,children:x.otherWorktreePath})]}):x.phase===`verdict-pending`?(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-verdict-pending`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`c8jBgX`})]}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-on-origin`,children:(0,v.jsx)(r,{id:`Uay5NL`,values:{targetNoun:w,shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`renamed`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-renamed`,children:(0,v.jsx)(r,{id:`P0HC30`,values:{0:x.resolution.renamedTo,targetNoun:w},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`diverged`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-diverged`,children:(0,v.jsx)(r,{id:`kLv8d3`,values:{shareBranch:D,targetNoun:w},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-verdict-handoff`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`c8jBgX`})]}):s?(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-loading`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`jerqF0`})]}):ee?(0,v.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,v.jsx)(r,{id:`w4hMYl`})}):q?.kind===`D`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`DTI-fp`,values:{targetNoun:w,shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):q?.kind===`B`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`sZ2IOu`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`_902BE`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),z=q&&!q.switchEnabled&&q.conflictingFiles.length>0?(0,v.jsxs)(`div`,{className:`mt-3 rounded-md border border-border bg-muted/30 p-3 text-1sm`,"data-testid":`share-branch-switch-conflict`,children:[(0,v.jsx)(`p`,{className:`font-medium text-foreground/90`,children:(0,v.jsx)(r,{id:`n2lRue`})}),(0,v.jsx)(`ul`,{id:`share-receive-branch-conflict-files`,className:`mt-1 list-disc space-y-0.5 pl-5 text-muted-foreground`,children:q.conflictingFiles.map(je)})]}):null,t[111]=_,t[112]=x.info,t[113]=x.otherWorktreePath,t[114]=x.phase,t[115]=x.resolution,t[116]=k,t[117]=rt,t[118]=T.branch,t[119]=T.owner,t[120]=T.repo,t[121]=T.target,t[122]=D,t[123]=w,t[124]=A,t[125]=j,t[126]=M,t[127]=N,t[128]=P,t[129]=F,t[130]=I,t[131]=L,t[132]=R,t[133]=z,t[134]=B,t[135]=V,t[136]=H,t[137]=U,t[138]=W,t[139]=G,t[140]=K,t[141]=q,t[142]=J}else A=t[124],j=t[125],M=t[126],N=t[127],P=t[128],F=t[129],I=t[130],L=t[131],R=t[132],z=t[133],B=t[134],V=t[135],H=t[136],U=t[137],W=t[138],G=t[139],K=t[140],q=t[141],J=t[142];let Y;t[174]===I?Y=t[175]:(Y=I?(0,v.jsxs)(`p`,{className:`mt-3 flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-switching`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`CU3AiE`})]}):null,t[174]=I,t[175]=Y);let X;t[176]===N?X=t[177]:(X=N?(0,v.jsxs)(`p`,{className:`mt-3 flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-creating-worktree`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`PZtgO0`})]}):null,t[176]=N,t[177]=X);let Z;t[178]!==A||t[179]!==L||t[180]!==R||t[181]!==z||t[182]!==Y||t[183]!==X?(Z=(0,v.jsxs)(A,{children:[L,R,z,Y,X]}),t[178]=A,t[179]=L,t[180]=R,t[181]=z,t[182]=Y,t[183]=X,t[184]=Z):Z=t[184];let wt;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(wt=(0,v.jsx)(r,{id:`dEgA5A`}),t[185]=wt):wt=t[185];let Q;t[186]===k?Q=t[187]:(Q=(0,v.jsx)(o,{variant:`ghost`,onClick:k,"data-testid":`share-branch-switch-cancel`,children:wt}),t[186]=k,t[187]=Q);let Tt;t[188]!==x.phase||t[189]!==x.resolution||t[190]!==N||t[191]!==mt||t[192]!==ut||t[193]!==bt||t[194]!==St||t[195]!==ft||t[196]!==ot||t[197]!==ct||t[198]!==P||t[199]!==F||t[200]!==I||t[201]!==q||t[202]!==J?(Tt=x.phase===`branch-in-other-worktree`?(0,v.jsx)(o,{onClick:St,"data-testid":`share-branch-switch-in-other-worktree-pivot`,children:(0,v.jsx)(r,{id:`hyCxJY`})}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,v.jsxs)(o,{onClick:ct,"data-testid":`share-branch-switch-verdict-switch-update`,children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),(0,v.jsx)(r,{id:`uA_jXp`})]}):x.resolution.kind===`renamed`?(0,v.jsxs)(o,{onClick:ut,"data-testid":`share-branch-switch-verdict-open-renamed`,children:[(0,v.jsx)(ne,{className:`size-3.5`,"aria-hidden":!0}),(0,v.jsx)(r,{id:`AItsE5`})]}):x.resolution.kind===`diverged`?(0,v.jsxs)(o,{onClick:ft,"data-testid":`share-branch-switch-verdict-plain-switch`,children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),F]}):null:(0,v.jsxs)(`div`,{className:`flex min-w-0 flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-end sm:gap-2`,children:[q?.openCurrentEnabled?(0,v.jsxs)(o,{variant:`outline`,onClick:mt,disabled:I||N,"data-testid":`share-branch-switch-open-current`,children:[(0,v.jsx)(ne,{className:`size-3.5`,"aria-hidden":!0}),P]}):null,(0,v.jsx)(o,{variant:`outline`,onClick:ot,disabled:!q?.switchEnabled||I||N,"aria-disabled":!q?.switchEnabled||I||N,"aria-describedby":q&&!q.switchEnabled&&q.conflictingFiles.length>0?`share-receive-branch-conflict-files`:void 0,"data-testid":`share-branch-switch-switch`,children:I?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u,{className:`size-3.5`,"aria-hidden":`true`}),F]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),F]})}),(0,v.jsx)(o,{onClick:bt,disabled:!q||I||N,"data-testid":`share-branch-switch-worktree`,children:N?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u,{className:`size-3.5`,"aria-hidden":`true`}),J]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l,{className:`size-3.5`,"aria-hidden":!0}),J]})})]}),t[188]=x.phase,t[189]=x.resolution,t[190]=N,t[191]=mt,t[192]=ut,t[193]=bt,t[194]=St,t[195]=ft,t[196]=ot,t[197]=ct,t[198]=P,t[199]=F,t[200]=I,t[201]=q,t[202]=J,t[203]=Tt):Tt=t[203];let Et;t[204]!==Q||t[205]!==Tt?(Et=(0,v.jsxs)(f,{className:`sm:justify-between`,children:[Q,Tt]}),t[204]=Q,t[205]=Tt,t[206]=Et):Et=t[206];let $;t[207]!==j||t[208]!==B||t[209]!==V||t[210]!==H||t[211]!==U||t[212]!==W||t[213]!==Z||t[214]!==Et?($=(0,v.jsxs)(j,{className:B,"data-testid":V,onInteractOutside:H,onPointerDownOutside:U,children:[W,Z,Et]}),t[207]=j,t[208]=B,t[209]=V,t[210]=H,t[211]=U,t[212]=W,t[213]=Z,t[214]=Et,t[215]=$):$=t[215];let Dt;return t[216]!==M||t[217]!==G||t[218]!==K||t[219]!==$?(Dt=(0,v.jsx)(M,{open:G,onOpenChange:K,children:$}),t[216]=M,t[217]=G,t[218]=K,t[219]=$,t[220]=Dt):Dt=t[220],Dt}function je(e){return(0,v.jsx)(`li`,{children:(0,v.jsx)(`code`,{className:`text-foreground/80`,children:e})},e)}function Me(e){e.preventDefault()}function Ne(e){e.preventDefault()}function Pe(){return m.request()}function Fe(e){return Ce(e,null).state}function Ie(e){return Se(e,null)}function Le(e){return _e(e,null)}function Re(){return null}export{Ae as ShareBranchSwitchDialog};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-DzgjsZzC.js";import{n as s}from"./dist-Bs8bPT30.js";import{t as ee}from"./dist-XgwTV-oh2.js";import{t as c}from"./desktop-bridge-types-B8voP7ui.js";import{n as l,t as te}from"./git-branch-EQxRRYB4.js";import{t as u}from"./spinner-CeYJkImG.js";import{n as ne,t as d}from"./miss-dialog-store-9W8qZPsI.js";import{a as re,c as ie,i as ae,n as oe,o as f,s as se,t as ce}from"./dialog-BPbtQmOL.js";import{t as le}from"./tool-list-format-ahklHT7Z.js";import{i as ue,n as p,t as m}from"./auth-prompt-store-Bv6bFEMJ.js";import{a as h,n as de}from"./receive-store-DG-FxM8p.js";import{t as fe}from"./share-metadata-rows-CWmpgFkC.js";var g=e(n(),1),pe=a();function me(e){let t=e.shareTargetExists,n=e.dirtyConflicts.conflicts,r=e.dirtyConflicts.files;return t&&!n?{kind:`A`,openCurrentEnabled:!0,switchEnabled:!0,conflictingFiles:r}:!t&&!n?{kind:`B`,openCurrentEnabled:!1,switchEnabled:!0,conflictingFiles:r}:t&&n?{kind:`C`,openCurrentEnabled:!0,switchEnabled:!1,conflictingFiles:r}:{kind:`D`,openCurrentEnabled:!1,switchEnabled:!1,conflictingFiles:r}}function he(e){return e.detached?e.currentHeadSha:e.currentBranch??`HEAD`}function _(e){if(e.ok)return{action:`await-cc1`};switch(e.reason){case`dirty-conflict`:return{action:`rerender-conflict`,files:e.files??[]};case`branch-not-found`:return{action:`dismiss-with-toast`,reason:`branch-not-found`};case`fetch-failed`:case`checkout-failed`:return{action:`stay-with-toast`,reason:e.reason};case`branch-in-other-worktree`:{let t=e.otherWorktreePath;return t===void 0||t.length===0?{action:`stay-with-toast`,reason:`checkout-failed`}:{action:`pivot-to-other-worktree`,otherWorktreePath:t}}case`ff-diverged`:return{action:`branch-diverged`};case`unsafe-symlinks`:return{action:`refused-unsafe-symlinks`,paths:e.refusedSymlinkPaths??[]};case`symlink-check-failed`:return{action:`stay-with-toast`,reason:`symlink-check-failed`};default:{let t=e.reason;throw Error(`Unhandled CheckoutFailureReason: ${String(t)}`)}}}var ge={phase:`loading`};function _e(e,t){return e.phase===`loading`?t===null?{phase:`error`}:{phase:`ready`,info:t}:e}function ve(e,t){return e.phase!==`ready`&&e.phase!==`verdict`?e:{phase:`switching`,info:e.info,pendingDoc:t}}function ye(e){return e.phase===`ready`?{phase:`creating-worktree`,info:e.info}:e}function be(e){return me(e).kind===`B`&&e.shareTargetOnOriginBranch===!1}function xe(e){return e.phase===`ready`?{phase:`verdict-pending`,info:e.info}:e}function Se(e,t){if(e.phase!==`verdict-pending`)return e;if(t===null||t.verdict===`unknown`||t.verdict===`changed-locally`)return{phase:`ready`,info:e.info};let n=t.verdict===`renamed`?{kind:`renamed`,renamedTo:t.renamedTo}:{kind:t.verdict};return{phase:`verdict`,info:e.info,resolution:n}}function Ce(e,t){if(e.phase!==`switching`)return{state:e};if(t===null)return{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`proxy-null`}};let n=_(t);return n.action===`await-cc1`?{state:{phase:`awaiting-cc1-recycle`,pendingDoc:e.pendingDoc}}:n.action===`rerender-conflict`?{state:{phase:`ready`,info:{...e.info,dirtyConflicts:{conflicts:!0,files:n.files.slice()}}}}:n.action===`pivot-to-other-worktree`?{state:{phase:`branch-in-other-worktree`,info:e.info,otherWorktreePath:n.otherWorktreePath,pendingDoc:e.pendingDoc}}:n.action===`dismiss-with-toast`?{state:{phase:`dismissed`,reason:n.reason},sideEffect:{kind:`toast`,reason:n.reason}}:n.action===`branch-diverged`?{state:{phase:`verdict`,info:e.info,resolution:{kind:`diverged`}}}:n.action===`refused-unsafe-symlinks`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`unsafe-symlinks`,paths:n.paths}}:{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:n.reason}}}function we(e,t){return e.phase===`creating-worktree`?t===null?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:`proxy-null`}}:t.ok?{state:{phase:`opening-worktree`,path:t.path}}:t.reason===`branch-not-found`?{state:{phase:`dismissed`,reason:`branch-not-found`},sideEffect:{kind:`toast`,reason:`branch-not-found`}}:t.reason===`project-scope-unavailable`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,projectScopeIssue:t.issue}}:t.reason===`unsafe-symlinks`?{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,paths:t.refusedSymlinkPaths}}:{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:t.reason,helper:t.helper,authFailed:t.reason===`fetch-failed`?t.authFailed:void 0,notFoundAsIdentity:t.reason===`fetch-failed`?t.notFoundAsIdentity:void 0}}:{state:e}}var v=t();function Te(e){return c(e.repositoryTarget)}function Ee(e,t=c(e.target)){let n=e.contentRootDepth===null?t:[...Te(e).split(`/`).slice(0,e.contentRootDepth),...t===``?[]:t.split(`/`)].join(`/`);return{kind:e.target.kind,path:t,repositoryPath:n,...e.contentRootDepth===null?{}:{contentRootDepth:e.contentRootDepth}}}function De(e){return e!==null&&e.kind===`project-branch-switch`}var Oe=5;function ke(e){return`share-branch-unsafe-symlinks:${e}`}function Ae(e){let t=(0,pe.c)(221),{bridge:n,store:a}=e,m=a===void 0?de:a,{_}=i(),Ae;t[0]===_?Ae=t[1]:(Ae=function(e){let t=e.slice(0,Oe),n=e.length-t.length,r=n>0?[...t,_({id:`pCJv30`,values:{hiddenCount:n}})]:t;return r.length===0?void 0:le(r,ee.locale)},t[0]=_,t[1]=Ae);let y=Ae,b=(0,g.useSyncExternalStore)(m.subscribe,m.getSnapshot,Re),[x,S]=(0,g.useState)(ge),ze=(0,g.useRef)(!1),Be=(0,g.useRef)(!1),Ve=(0,g.useRef)(!1),He=(0,g.useRef)(null),Ue;t[2]===b?Ue=t[3]:(Ue=De(b)?b:null,t[2]=b,t[3]=Ue);let C=Ue,We;t[4]!==_||t[5]!==C?.share.target.kind?(We=C?.share.target.kind===`folder`?_({id:`ugoTXs`}):_({id:`XH30C4`}),t[4]=_,t[5]=C?.share.target.kind,t[6]=We):We=t[6];let w=We,Ge;t[7]===C?Ge=t[8]:(Ge=()=>{S(ge),ze.current=!1,Be.current=!1,Ve.current=!1,He.current=C},t[7]=C,t[8]=Ge);let Ke;t[9]===b?Ke=t[10]:(Ke=[b],t[9]=b,t[10]=Ke),(0,g.useEffect)(Ge,Ke);let qe;t[11]!==C||t[12]!==n?(qe=()=>{if(!C||ze.current)return;ze.current=!0;let e=!1;return n.project.fetchBranchInfo({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.repositoryTarget.kind,path:Te(C.share)}).then(t=>{e||S(e=>_e(e,t))}).catch(t=>{e||(console.warn(`[receive] branch-info-fetch-failed`,t instanceof Error?t.message:t),S(Le))}),()=>{e=!0}},t[11]=C,t[12]=n,t[13]=qe):qe=t[13];let Je;t[14]===C?Je=t[15]:(Je=[C],t[14]=C,t[15]=Je),(0,g.useEffect)(qe,Je);let Ye;t[16]!==C||t[17]!==x.info||t[18]!==x.phase||t[19]!==n?(Ye=()=>{if(!C||x.phase!==`ready`||Ve.current||!be(x.info))return;Ve.current=!0,S(xe);let e=C;n.project.fetchTargetStatus({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.target.kind,path:Te(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth}}).then(t=>{He.current===e&&S(e=>Se(e,t))}).catch(t=>{He.current===e&&(console.warn(`[receive] target-status-fetch-failed`,t instanceof Error?t.message:t),S(Ie))})},t[16]=C,t[17]=x.info,t[18]=x.phase,t[19]=n,t[20]=Ye):Ye=t[20];let Xe;t[21]!==C||t[22]!==x.phase?(Xe=[x.phase,C],t[21]=C,t[22]=x.phase,t[23]=Xe):Xe=t[23],(0,g.useEffect)(Ye,Xe);let Ze;t[24]!==C||t[25]!==x.phase||t[26]!==x.resolution||t[27]!==m?(Ze=()=>{if(x.phase!==`verdict`)return;let{kind:e}=x.resolution;e!==`deleted`&&e!==`never-on-branch`||C&&(d.arm({kind:C.share.target.kind,path:c(C.share.target),repositoryPath:Te(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth},branch:C.share.branch}),m.dismiss())},t[24]=C,t[25]=x.phase,t[26]=x.resolution,t[27]=m,t[28]=Ze):Ze=t[28];let Qe;t[29]!==C||t[30]!==x||t[31]!==m?(Qe=[x,C,m],t[29]=C,t[30]=x,t[31]=m,t[32]=Qe):Qe=t[32],(0,g.useEffect)(Ze,Qe);let $e;t[33]!==x.phase||t[34]!==x.resolution?($e=()=>{x.phase===`verdict`&&console.log(h({verdict_cell:x.resolution.kind}))},t[33]=x.phase,t[34]=x.resolution,t[35]=$e):$e=t[35];let et;t[36]===x?et=t[37]:(et=[x],t[36]=x,t[37]=et),(0,g.useEffect)($e,et);let tt;t[38]!==_||t[39]!==C||t[40]!==x.pendingDoc||t[41]!==x.phase||t[42]!==n||t[43]!==m||t[44]!==w?(tt=()=>{if(x.phase!==`awaiting-cc1-recycle`||!C)return;let e=C.share.branch,t=x.pendingDoc;if(!e){m.dismiss();return}if(Be.current)return;Be.current=!0;let r=!1;return n.project.awaitBranchSwitched({projectPath:C.projectPath,branch:e,timeoutMs:3e4}).then(i=>{if(!r){if(i.ok){console.log(h({branch_dialog_action:`branch-switch-complete`,branch:e})),n.project.open({path:C.projectPath,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(C.share,t),pendingBranch:e}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=switch`,e instanceof Error?e.message:e),s.error(_({id:`gQV-9w`,values:{targetNoun:w}}))}),m.dismiss();return}console.log(h({branch_dialog_action:`branch-switch-timeout`,branch:e})),s.error(_({id:`LBwUR6`,values:{targetNoun:w}})),m.dismiss()}}).catch(e=>{r||(console.warn(`[receive] awaitBranchSwitched rejected`,e instanceof Error?e.message:e),s.error(_({id:`Jw6EC4`,values:{targetNoun:w}})),m.dismiss())}),()=>{r=!0}},t[38]=_,t[39]=C,t[40]=x.pendingDoc,t[41]=x.phase,t[42]=n,t[43]=m,t[44]=w,t[45]=tt):tt=t[45];let nt;if(t[46]!==C||t[47]!==x.phase?(nt=[x.phase,C],t[46]=C,t[47]=x.phase,t[48]=nt):nt=t[48],(0,g.useEffect)(tt,nt),!C)return null;let{share:T,projectPath:E,currentBranch:rt}=C,D=T.branch,it;t[49]!==_||t[50]!==n.project||t[51]!==E||t[52]!==y||t[53]!==D||t[54]!==m?(it=function(e,t,r){console.log(h({branch_dialog_action:`switch`,branch_action:`switch`,branch:D,verdict_cell:r})),S(t=>ve(t,e)),n.project.runCheckout(t?{projectPath:E,branch:D,fastForward:!0}:{projectPath:E,branch:D}).then(e=>{let t=null,n=!1,r=[];S(i=>{let{state:a,sideEffect:o}=Ce(i,e);return o&&(t=o.reason,r=o.paths??[],n=a.phase===`dismissed`),a});let i=ke(D);t!==`unsafe-symlinks`&&s.dismiss(i),t===`unsafe-symlinks`?s.error(_({id:`461Vg9`,values:{shareBranch:D}}),{description:y(r),id:i,duration:1/0}):t===`branch-not-found`?s.error(_({id:`NJyQi_`,values:{shareBranch:D}})):t===`fetch-failed`?s.error(_({id:`bWLmRK`})):t===`symlink-check-failed`?s.error(_({id:`0uxLib`,values:{shareBranch:D}})):(t===`checkout-failed`||t===`proxy-null`)&&s.error(_({id:`c863eW`,values:{shareBranch:D}})),n&&m.dismiss()}).catch(e=>{console.warn(`[receive] runCheckout rejected branch_action=switch`,e instanceof Error?e.message:e),S(Fe),s.dismiss(ke(D)),s.error(_({id:`c863eW`,values:{shareBranch:D}}))})},t[49]=_,t[50]=n.project,t[51]=E,t[52]=y,t[53]=D,t[54]=m,t[55]=it):it=t[55];let O=it,at;t[56]!==x.info||t[57]!==x.phase||t[58]!==O||t[59]!==T.target?(at=function(){x.phase===`ready`&&me(x.info).switchEnabled&&O(c(T.target),!1)},t[56]=x.info,t[57]=x.phase,t[58]=O,t[59]=T.target,t[60]=at):at=t[60];let ot=at,st;t[61]!==x.phase||t[62]!==x.resolution||t[63]!==O||t[64]!==T.target?(st=function(){x.phase===`verdict`&&O(c(T.target),!0,x.resolution.kind)},t[61]=x.phase,t[62]=x.resolution,t[63]=O,t[64]=T.target,t[65]=st):st=t[65];let ct=st,lt;t[66]!==x.phase||t[67]!==x.resolution||t[68]!==O?(lt=function(){x.phase===`verdict`&&x.resolution.kind===`renamed`&&O(x.resolution.renamedTo,!0,x.resolution.kind)},t[66]=x.phase,t[67]=x.resolution,t[68]=O,t[69]=lt):lt=t[69];let ut=lt,dt;t[70]!==x.phase||t[71]!==x.resolution||t[72]!==O||t[73]!==T.target?(dt=function(){x.phase===`verdict`&&O(c(T.target),!1,x.resolution.kind)},t[70]=x.phase,t[71]=x.resolution,t[72]=O,t[73]=T.target,t[74]=dt):dt=t[74];let ft=dt,pt;t[75]!==_||t[76]!==n.project||t[77]!==E||t[78]!==T||t[79]!==D||t[80]!==m||t[81]!==w?(pt=function(){console.log(h({branch_dialog_action:`open-current`,branch:D})),n.project.open({path:E,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(T)}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=open-current`,e instanceof Error?e.message:e),s.error(_({id:`b5aNbi`,values:{targetNoun:w}}))}),m.dismiss()},t[75]=_,t[76]=n.project,t[77]=E,t[78]=T,t[79]=D,t[80]=m,t[81]=w,t[82]=pt):pt=t[82];let mt=pt,ht;t[83]!==_||t[84]!==y||t[85]!==D?(ht=function(e){let{reason:t}=e,n=`helper`in e?e.helper:void 0,r=`authFailed`in e?e.authFailed:void 0,i=`notFoundAsIdentity`in e?e.notFoundAsIdentity:void 0;if(t===`fetch-failed`&&i){s.error(_({id:`jRsjlF`}));return}if(t===`fetch-failed`&&r){s.error(_({id:`gfb-CM`}),{action:{label:_({id:`5lWFkC`}),onClick:Pe}});return}switch(t){case`helper-not-found`:{let e=n??_({id:`cHhH3i`});s.error(_({id:`Z7x_Zh`,values:{tool:e}}));return}case`branch-not-found`:s.error(_({id:`NJyQi_`,values:{shareBranch:D}}));return;case`fetch-failed`:s.error(_({id:`bWLmRK`}));return;case`already-checked-out`:s.error(_({id:`ljHjfg`}));return;case`branch-exists`:s.error(_({id:`h3QZcB`,values:{shareBranch:D}}));return;case`path-exists`:s.error(_({id:`cN1Gcp`,values:{shareBranch:D}}));return;case`no-git`:s.error(_({id:`CFnavk`}));return;case`empty-repo`:s.error(_({id:`5IgYAM`}));return;case`invalid-branch`:s.error(_({id:`JfPuv7`,values:{shareBranch:D}}));return;case`project-scope-unavailable`:s.error(_(p({reason:t,issue:e.projectScopeIssue})));return;case`unsafe-symlinks`:s.error(_({id:`_6cS9O`,values:{shareBranch:D}}),{description:y(e.paths),id:ke(D),duration:1/0});return;case`proxy-null`:case`error`:s.error(_({id:`e8zYa8`,values:{shareBranch:D}}));return;default:throw Error(`Unhandled worktree failure reason: ${String(t)}`)}},t[83]=_,t[84]=y,t[85]=D,t[86]=ht):ht=t[86];let gt=ht,_t;t[87]!==_||t[88]!==n.project||t[89]!==T||t[90]!==D||t[91]!==gt||t[92]!==m?(_t=function(e){e?.ok===!1&&e.reason===`project-scope-unavailable`&&ue();let t,r=!1,i=null;if(S(n=>{let{state:a,sideEffect:o}=we(n,e);return o&&(t=o,r=a.phase===`dismissed`),a.phase===`opening-worktree`&&(i=a.path),a}),t?.reason!==`unsafe-symlinks`&&s.dismiss(ke(D)),t!==void 0&&(console.log(h({branch_dialog_action:`open-worktree-failed:${t.reason}`,branch:D})),gt(t)),i!==null){ue();let e=i;n.project.open({path:e,target:`new-window`,entryPoint:`worktree`,pendingDeepLinkTarget:Ee(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] worktree-open-failed branch_dialog_action=open-worktree`,t instanceof Error?t.message:t),s.error(_({id:`LdABLa`,values:{target:e}}))}),m.dismiss()}r&&m.dismiss()},t[87]=_,t[88]=n.project,t[89]=T,t[90]=D,t[91]=gt,t[92]=m,t[93]=_t):_t=t[93];let vt=_t,yt;t[94]!==vt||t[95]!==x.phase||t[96]!==n.worktree||t[97]!==D?(yt=function(){x.phase===`ready`&&(console.log(h({branch_dialog_action:`open-worktree`,branch:D})),S(ye),n.worktree.checkout({branch:D}).then(e=>{vt(e)}).catch(e=>{console.warn(`[receive] worktree-checkout rejected branch_dialog_action=open-worktree`,e instanceof Error?e.message:e),vt(null)}))},t[94]=vt,t[95]=x.phase,t[96]=n.worktree,t[97]=D,t[98]=yt):yt=t[98];let bt=yt,xt;t[99]!==_||t[100]!==x.otherWorktreePath||t[101]!==x.phase||t[102]!==n.project||t[103]!==T||t[104]!==D||t[105]!==m?(xt=function(){if(x.phase!==`branch-in-other-worktree`)return;let e=x.otherWorktreePath;console.log(h({branch_dialog_action:`pivot-to-other-worktree`,branch:D})),n.project.open({path:e,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Ee(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] pivot-open-failed branch_action=pivot-to-other-worktree`,t instanceof Error?t.message:t),s.error(_({id:`LdABLa`,values:{target:e}}))}),m.dismiss()},t[99]=_,t[100]=x.otherWorktreePath,t[101]=x.phase,t[102]=n.project,t[103]=T,t[104]=D,t[105]=m,t[106]=xt):xt=t[106];let St=xt,Ct;t[107]!==x.phase||t[108]!==x.resolution||t[109]!==m?(Ct=function(){console.log(h({branch_dialog_action:`cancel`,verdict_cell:x.phase===`verdict`?x.resolution.kind:void 0})),m.dismiss()},t[107]=x.phase,t[108]=x.resolution,t[109]=m,t[110]=Ct):Ct=t[110];let k=Ct,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J;if(t[111]!==_||t[112]!==x.info||t[113]!==x.otherWorktreePath||t[114]!==x.phase||t[115]!==x.resolution||t[116]!==k||t[117]!==rt||t[118]!==T.branch||t[119]!==T.owner||t[120]!==T.repo||t[121]!==T.target||t[122]!==D||t[123]!==w){q=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?me(x.info):null;let e;t[143]!==x.info||t[144]!==x.phase||t[145]!==rt?(e=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?he(x.info):rt??`HEAD`,t[143]=x.info,t[144]=x.phase,t[145]=rt,t[146]=e):e=t[146];let n=e;I=x.phase===`switching`||x.phase===`awaiting-cc1-recycle`,N=x.phase===`creating-worktree`;let i;t[147]===_?i=t[148]:(i=_({id:`OuY8t9`}),t[147]=_,t[148]=i),P=i;let a;t[149]===_?a=t[150]:(a=_({id:`XZkdtg`}),t[149]=_,t[150]=a),F=a;let o;t[151]===_?o=t[152]:(o=_({id:`VTulZj`}),t[151]=_,t[152]=o),J=o;let s=x.phase===`loading`,ee=x.phase===`error`;M=ce,G=!0,t[153]===k?K=t[154]:(K=e=>{e||k()},t[153]=k,t[154]=K),j=ae,B=`sm:max-w-xl`,V=`share-branch-switch-dialog`,H=Ne,U=Me;let l;t[155]===w?l=t[156]:(l=(0,v.jsx)(ie,{children:(0,v.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:w}})}),t[155]=w,t[156]=l);let te=T.owner,ne=T.repo,d;t[157]===T.target?d=t[158]:(d=c(T.target),t[157]=T.target,t[158]=d);let f;t[159]!==T.owner||t[160]!==T.repo||t[161]!==d?(f=(0,v.jsx)(re,{className:`sr-only`,children:(0,v.jsx)(r,{id:`f8jU-L`,values:{0:te,1:ne,2:d}})}),t[159]=T.owner,t[160]=T.repo,t[161]=d,t[162]=f):f=t[162],t[163]!==l||t[164]!==f?(W=(0,v.jsxs)(se,{children:[l,f]}),t[163]=l,t[164]=f,t[165]=W):W=t[165],A=oe;let le=T.owner,ue=T.repo,p;t[166]===T.target?p=t[167]:(p=c(T.target),t[166]=T.target,t[167]=p),t[168]!==T.branch||t[169]!==T.owner||t[170]!==T.repo||t[171]!==T.target.kind||t[172]!==p?(L=(0,v.jsx)(`div`,{className:`mb-4`,children:(0,v.jsx)(fe,{owner:le,repo:ue,path:p,kind:T.target.kind,branch:T.branch,testId:`share-branch-switch-metadata`,branchTestId:`share-branch-switch-metadata-branch`})}),t[168]=T.branch,t[169]=T.owner,t[170]=T.repo,t[171]=T.target.kind,t[172]=p,t[173]=L):L=t[173],R=x.phase===`branch-in-other-worktree`?(0,v.jsxs)(`div`,{className:`text-sm text-muted-foreground`,"data-testid":`share-branch-switch-in-other-worktree`,children:[(0,v.jsx)(`p`,{className:`leading-6`,children:(0,v.jsx)(r,{id:`yjExfe`,values:{shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),(0,v.jsx)(`p`,{className:`mt-2 break-all rounded bg-muted px-2 py-1 font-mono text-xs text-foreground/80`,"data-testid":`share-branch-switch-in-other-worktree-path`,children:x.otherWorktreePath})]}):x.phase===`verdict-pending`?(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-verdict-pending`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`c8jBgX`})]}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-on-origin`,children:(0,v.jsx)(r,{id:`Uay5NL`,values:{targetNoun:w,shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`renamed`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-renamed`,children:(0,v.jsx)(r,{id:`P0HC30`,values:{0:x.resolution.renamedTo,targetNoun:w},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`diverged`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-diverged`,children:(0,v.jsx)(r,{id:`kLv8d3`,values:{shareBranch:D,targetNoun:w},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-verdict-handoff`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`c8jBgX`})]}):s?(0,v.jsxs)(`p`,{className:`flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-loading`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`jerqF0`})]}):ee?(0,v.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,v.jsx)(r,{id:`w4hMYl`})}):q?.kind===`D`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`DTI-fp`,values:{targetNoun:w,shareBranch:D},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):q?.kind===`B`?(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`sZ2IOu`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,v.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,v.jsx)(r,{id:`_902BE`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,v.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),z=q&&!q.switchEnabled&&q.conflictingFiles.length>0?(0,v.jsxs)(`div`,{className:`mt-3 rounded-md border border-border bg-muted/30 p-3 text-1sm`,"data-testid":`share-branch-switch-conflict`,children:[(0,v.jsx)(`p`,{className:`font-medium text-foreground/90`,children:(0,v.jsx)(r,{id:`n2lRue`})}),(0,v.jsx)(`ul`,{id:`share-receive-branch-conflict-files`,className:`mt-1 list-disc space-y-0.5 pl-5 text-muted-foreground`,children:q.conflictingFiles.map(je)})]}):null,t[111]=_,t[112]=x.info,t[113]=x.otherWorktreePath,t[114]=x.phase,t[115]=x.resolution,t[116]=k,t[117]=rt,t[118]=T.branch,t[119]=T.owner,t[120]=T.repo,t[121]=T.target,t[122]=D,t[123]=w,t[124]=A,t[125]=j,t[126]=M,t[127]=N,t[128]=P,t[129]=F,t[130]=I,t[131]=L,t[132]=R,t[133]=z,t[134]=B,t[135]=V,t[136]=H,t[137]=U,t[138]=W,t[139]=G,t[140]=K,t[141]=q,t[142]=J}else A=t[124],j=t[125],M=t[126],N=t[127],P=t[128],F=t[129],I=t[130],L=t[131],R=t[132],z=t[133],B=t[134],V=t[135],H=t[136],U=t[137],W=t[138],G=t[139],K=t[140],q=t[141],J=t[142];let Y;t[174]===I?Y=t[175]:(Y=I?(0,v.jsxs)(`p`,{className:`mt-3 flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-switching`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`CU3AiE`})]}):null,t[174]=I,t[175]=Y);let X;t[176]===N?X=t[177]:(X=N?(0,v.jsxs)(`p`,{className:`mt-3 flex items-center gap-2 text-sm text-muted-foreground`,"data-testid":`share-branch-switch-creating-worktree`,role:`status`,"aria-live":`polite`,children:[(0,v.jsx)(u,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,v.jsx)(r,{id:`PZtgO0`})]}):null,t[176]=N,t[177]=X);let Z;t[178]!==A||t[179]!==L||t[180]!==R||t[181]!==z||t[182]!==Y||t[183]!==X?(Z=(0,v.jsxs)(A,{children:[L,R,z,Y,X]}),t[178]=A,t[179]=L,t[180]=R,t[181]=z,t[182]=Y,t[183]=X,t[184]=Z):Z=t[184];let wt;t[185]===Symbol.for(`react.memo_cache_sentinel`)?(wt=(0,v.jsx)(r,{id:`dEgA5A`}),t[185]=wt):wt=t[185];let Q;t[186]===k?Q=t[187]:(Q=(0,v.jsx)(o,{variant:`ghost`,onClick:k,"data-testid":`share-branch-switch-cancel`,children:wt}),t[186]=k,t[187]=Q);let Tt;t[188]!==x.phase||t[189]!==x.resolution||t[190]!==N||t[191]!==mt||t[192]!==ut||t[193]!==bt||t[194]!==St||t[195]!==ft||t[196]!==ot||t[197]!==ct||t[198]!==P||t[199]!==F||t[200]!==I||t[201]!==q||t[202]!==J?(Tt=x.phase===`branch-in-other-worktree`?(0,v.jsx)(o,{onClick:St,"data-testid":`share-branch-switch-in-other-worktree-pivot`,children:(0,v.jsx)(r,{id:`hyCxJY`})}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,v.jsxs)(o,{onClick:ct,"data-testid":`share-branch-switch-verdict-switch-update`,children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),(0,v.jsx)(r,{id:`uA_jXp`})]}):x.resolution.kind===`renamed`?(0,v.jsxs)(o,{onClick:ut,"data-testid":`share-branch-switch-verdict-open-renamed`,children:[(0,v.jsx)(ne,{className:`size-3.5`,"aria-hidden":!0}),(0,v.jsx)(r,{id:`AItsE5`})]}):x.resolution.kind===`diverged`?(0,v.jsxs)(o,{onClick:ft,"data-testid":`share-branch-switch-verdict-plain-switch`,children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),F]}):null:(0,v.jsxs)(`div`,{className:`flex min-w-0 flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-end sm:gap-2`,children:[q?.openCurrentEnabled?(0,v.jsxs)(o,{variant:`outline`,onClick:mt,disabled:I||N,"data-testid":`share-branch-switch-open-current`,children:[(0,v.jsx)(ne,{className:`size-3.5`,"aria-hidden":!0}),P]}):null,(0,v.jsx)(o,{variant:`outline`,onClick:ot,disabled:!q?.switchEnabled||I||N,"aria-disabled":!q?.switchEnabled||I||N,"aria-describedby":q&&!q.switchEnabled&&q.conflictingFiles.length>0?`share-receive-branch-conflict-files`:void 0,"data-testid":`share-branch-switch-switch`,children:I?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u,{className:`size-3.5`,"aria-hidden":`true`}),F]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),F]})}),(0,v.jsx)(o,{onClick:bt,disabled:!q||I||N,"data-testid":`share-branch-switch-worktree`,children:N?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u,{className:`size-3.5`,"aria-hidden":`true`}),J]}):(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l,{className:`size-3.5`,"aria-hidden":!0}),J]})})]}),t[188]=x.phase,t[189]=x.resolution,t[190]=N,t[191]=mt,t[192]=ut,t[193]=bt,t[194]=St,t[195]=ft,t[196]=ot,t[197]=ct,t[198]=P,t[199]=F,t[200]=I,t[201]=q,t[202]=J,t[203]=Tt):Tt=t[203];let Et;t[204]!==Q||t[205]!==Tt?(Et=(0,v.jsxs)(f,{className:`sm:justify-between`,children:[Q,Tt]}),t[204]=Q,t[205]=Tt,t[206]=Et):Et=t[206];let $;t[207]!==j||t[208]!==B||t[209]!==V||t[210]!==H||t[211]!==U||t[212]!==W||t[213]!==Z||t[214]!==Et?($=(0,v.jsxs)(j,{className:B,"data-testid":V,onInteractOutside:H,onPointerDownOutside:U,children:[W,Z,Et]}),t[207]=j,t[208]=B,t[209]=V,t[210]=H,t[211]=U,t[212]=W,t[213]=Z,t[214]=Et,t[215]=$):$=t[215];let Dt;return t[216]!==M||t[217]!==G||t[218]!==K||t[219]!==$?(Dt=(0,v.jsx)(M,{open:G,onOpenChange:K,children:$}),t[216]=M,t[217]=G,t[218]=K,t[219]=$,t[220]=Dt):Dt=t[220],Dt}function je(e){return(0,v.jsx)(`li`,{children:(0,v.jsx)(`code`,{className:`text-foreground/80`,children:e})},e)}function Me(e){e.preventDefault()}function Ne(e){e.preventDefault()}function Pe(){return m.request()}function Fe(e){return Ce(e,null).state}function Ie(e){return Se(e,null)}function Le(e){return _e(e,null)}function Re(){return null}export{Ae as ShareBranchSwitchDialog};
|
package/dist/public/assets/{ShareReceiveDialog-BdppBZDP.js → ShareReceiveDialog-2iD7YbAG.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-DzgjsZzC.js";import{n as s}from"./dist-BGzUo_18.js";import{t as c}from"./desktop-bridge-types-BxqZkaz9.js";import{t as ee}from"./spinner-Bx8xD6f8.js";import{a as te,c as ne,i as re,n as l,o as u,s as ie,t as d}from"./dialog-CAxu_6pu.js";import{a as f,c as p,i as m,l as h,n as g,o as _,r as ae,s as v}from"./receive-store-BxNGsbg2.js";import{t as oe}from"./share-metadata-rows-CWmpgFkC.js";var y=e(n(),1),b=a(),x=e=>({phase:`ready`,seed:e});function S(e){return e.phase===`ready`?{phase:`initializing`,seed:e.seed}:e}function C(e,t){return e.phase===`initializing`?t.ok?{phase:`opening`,seed:e.seed}:{phase:`error`,seed:e.seed,reason:t.reason,message:t.message}:e}function w(e,t){return e.phase===`opening`?t.ok?{phase:`done`,seed:e.seed}:{phase:`error`,seed:e.seed,reason:`network-error`,message:t.message}:e}function T(e){return e.phase===`done`||e.phase===`cancelled`||e.phase===`error`?e:{phase:`cancelled`,seed:e.seed}}var E=t();function D(e){return{kind:e.target.kind,path:c(e.target),repositoryPath:c(e.repositoryTarget),...e.contentRootDepth===null?{}:{contentRootDepth:e.contentRootDepth}}}function O(e){return e!==null&&e.kind===`launcher-consent`}function k(e){return e!==null&&e.kind===`launcher-miss`}function A(e){let t=(0,b.c)(14),{bridge:n,cloneController:r,store:i}=e,a=i===void 0?g:i,o=(0,y.useSyncExternalStore)(a.subscribe,a.getSnapshot,M),[c,ee]=(0,y.useState)(0),[te,ne]=(0,y.useState)(o);o!==te&&(ne(o),ee(j));let re,l;t[0]!==o||t[1]!==a?(re=()=>{if(!o)return;let e=v(o);e&&(s.error(e.message),a.dismiss())},l=[o,a],t[0]=o,t[1]=a,t[2]=re,t[3]=l):(re=t[2],l=t[3]),(0,y.useEffect)(re,l);let u;t[4]===o?u=t[5]:(u=k(o)?o:null,t[4]=o,t[5]=u);let ie=u,d;t[6]===o?d=t[7]:(d=O(o)?o:null,t[6]=o,t[7]=d);let f=d??ie;if(!f)return null;let p;return t[8]!==f||t[9]!==n||t[10]!==r||t[11]!==c||t[12]!==a?(p=(0,E.jsx)(N,{payload:f,bridge:n,cloneController:r,store:a},c),t[8]=f,t[9]=n,t[10]=r,t[11]=c,t[12]=a,t[13]=p):p=t[13],p}function j(e){return e+1}function M(){return null}function N(e){let t=(0,b.c)(165),{payload:n,bridge:a,cloneController:g,store:v}=e,{_:S}=i(),[T,A]=(0,y.useState)(!1),[j,M]=(0,y.useState)(null),[N,fe]=(0,y.useState)(!1),[P,pe]=(0,y.useState)(!1),[F,me]=(0,y.useState)(null),[I,L]=(0,y.useState)(null),he=(0,y.useRef)(!1),ge=(0,y.useRef)(null),_e,ve;t[0]===F?(_e=t[1],ve=t[2]):(_e=()=>{F&&ge.current?.focus()},ve=[F],t[0]=F,t[1]=_e,t[2]=ve),(0,y.useEffect)(_e,ve);let ye;t[3]!==I||t[4]!==n?(ye=()=>{O(n)&&I===null&&(console.warn(`[receive] q1_hit=true selection=branch_match_non_ok candidate=${n.candidatePath}`),L(x({candidatePath:n.candidatePath,branch:n.share.branch,targetPath:c(n.share.target),targetKind:n.share.target.kind,repositoryPath:c(n.share.repositoryTarget),...n.share.contentRootDepth===null?{}:{contentRootDepth:n.share.contentRootDepth},parentProjectName:n.parentProjectName})))},t[3]=I,t[4]=n,t[5]=ye):ye=t[5];let be;t[6]===n?be=t[7]:(be=[n],t[6]=n,t[7]=be),(0,y.useEffect)(ye,be);let xe;t[8]!==j||t[9]!==g||t[10]!==n?(xe=()=>{if(!g||!k(n)||j!==null||he.current)return;he.current=!0,fe(!0);let e=n.share.host;g.getAuthStatus(e).then(e=>{M(e)}).catch(t=>{console.warn(`[receive] auth pre-flight probe failed`,t instanceof Error?t.message:t),M({authenticated:!1,host:e})}).finally(()=>{fe(!1)})},t[8]=j,t[9]=g,t[10]=n,t[11]=xe):xe=t[11];let Se;t[12]!==j||t[13]!==n?(Se=[n,j],t[12]=j,t[13]=n,t[14]=Se):Se=t[14],(0,y.useEffect)(xe,Se);let R=k(n)?n:null,Ce=O(n)?n:null,z=R?.share??Ce?.share??null,B,V,H,U,W,we,G,K;if(t[15]!==S||t[16]!==N||t[17]!==a||t[18]!==g||t[19]!==P||t[20]!==I||t[21]!==R||t[22]!==T||t[23]!==z||t[24]!==v){G=Symbol.for(`react.early_return_sentinel`);bb0:{let e=z?{host:z.host,owner:z.owner,repo:z.repo}:null,n;t[33]!==S||t[34]!==z?.target.kind?(n=z?.target.kind===`folder`?S({id:`ugoTXs`}):S({id:`XH30C4`}),t[33]=S,t[34]=z?.target.kind,t[35]=n):n=t[35],K=n,H=async function(){if(!R||!e)return;if(console.log(f({q2_path:`clone`})),!g){s.info(S({id:`27XW26`}),{action:{label:S({id:`B3NAZC`}),onClick:()=>{a.navigator.open()}},duration:8e3});return}if(P)return;me(null),pe(!0);let t=ae(e),n;try{n=await g.runClone({url:t,branch:R.share.branch})}catch(e){let t=e;console.warn(`[receive] runClone threw unexpectedly`,t),pe(!1),me({detail:t instanceof Error?t.message:String(t)});return}if(pe(!1),n.kind===`error`){me({detail:n.detail??null});return}if(n.kind===`ok`){try{await a.project.open({path:n.dir,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:D(R.share)}),v.dismiss()}catch(e){let t=e;console.warn(`[receive] project open after clone failed`,t instanceof Error?t.message:t),s.error(S({id:`438Fca`}))}return}};let i;t[36]!==S||t[37]!==N||t[38]!==g?(i=async function(){if(!(!g||N)){fe(!0);try{let e=await g.startSignIn();fe(!1),e!==null&&M(e)}catch(e){let t=e;fe(!1),console.warn(`[receive] startSignIn failed`,t instanceof Error?t.message:t),s.error(S({id:`lzwo7p`}))}}},t[36]=S,t[37]=N,t[38]=g,t[39]=i):i=t[39],W=i,U=async function(){if(!(!R||!e||T)){me(null),A(!0),console.log(f({q2_path:`local`}));try{for(;;){let t=await a.dialog.openFolder();if(!t)break;let n=await a.share.validateLocalFolder({folderPath:t,host:e.host,owner:e.owner,repo:e.repo});if(console.log(f({folder_validate:n.kind})),n.kind===`ok`){let e=R.share.branch,n={currentBranch:null,headSha:null,detached:!1};try{n=await a.project.readHeadBranch(t)}catch(e){let t=e;console.warn(`[receive] local-folder readHeadBranch failed`,t instanceof Error?t.message:t)}let r=h(e,n)!==`true`;try{await a.project.open({path:t,target:`new-window`,entryPoint:`share-receive`,...r?{pendingShareBranchSwitch:{share:R.share,projectPath:t,currentBranch:n.currentBranch}}:{pendingDeepLinkTarget:D(R.share)}}),v.dismiss()}catch(e){let t=e;console.warn(`[receive] local-folder-open failed`,t instanceof Error?t.message:t),s.error(S({id:`phM8Kh`}))}break}let r=_(n,e);r&&s.error(r)}}catch(e){let t=e;console.warn(`[receive] local-folder-validate failed`,t instanceof Error?t.message:t),s.error(S({id:`rlUzXK`}))}A(!1)}};let m;t[40]!==S||t[41]!==a||t[42]!==I||t[43]!==v?(m=function(){if(I===null||I.phase!==`ready`)return;let e=I.seed;console.warn(`[receive] consent_dialog action=initialize worktree=${e.candidatePath}`),L(de),a.project.okInit({projectPath:e.candidatePath}).then(async t=>{if(t.ok===!0){L(e=>e===null?e:C(e,{ok:!0,projectPath:t.projectPath}));try{await a.project.open({path:t.projectPath,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:{kind:e.targetKind,path:e.targetPath,repositoryPath:e.repositoryPath??e.targetPath,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}},pendingBranch:e.branch}),L(ue),v.dismiss()}catch(t){let n=t,r=n instanceof Error?n.message:String(n);L(e=>e===null?e:w(e,{ok:!1,message:r})),s.error(S({id:`nDT8qt`,values:{0:e.candidatePath}}))}return}let n=t.reason,r=t.message||`Initialization failed.`;L(e=>e===null?e:C(e,{ok:!1,reason:n,message:r})),s.error(r)}).catch(t=>{let n=t instanceof Error?t.message:String(t);L(e=>e===null?e:C(e,{ok:!1,reason:`network-error`,message:n})),s.error(S({id:`3Mwaly`,values:{0:e.candidatePath}}))})},t[40]=S,t[41]=a,t[42]=I,t[43]=v,t[44]=m):m=t[44];let y=m,b;t[45]!==I||t[46]!==v?(b=function(){I!==null&&console.warn(`[receive] consent_dialog action=cancel worktree=${I.seed.candidatePath}`),L(le),v.dismiss()},t[45]=I,t[46]=v,t[47]=b):b=t[47];let x=b;if(I!==null&&I.phase!==`cancelled`&&I.phase!==`done`&&z!==null){let e=I.seed,n=I.phase===`initializing`||I.phase===`opening`,i;t[48]===x?i=t[49]:(i=e=>{e||x()},t[48]=x,t[49]=i);let a;t[50]===K?a=t[51]:(a=(0,E.jsx)(ne,{children:(0,E.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:K}})}),t[50]=K,t[51]=a);let s;t[52]===z.target?s=t[53]:(s=c(z.target)?`— ${c(z.target)}`:``,t[52]=z.target,t[53]=s);let f;t[54]!==z.owner||t[55]!==z.repo||t[56]!==s?(f=(0,E.jsx)(te,{className:`sr-only`,children:(0,E.jsx)(r,{id:`pgq_xf`,values:{0:z.owner,1:z.repo,2:s}})}),t[54]=z.owner,t[55]=z.repo,t[56]=s,t[57]=f):f=t[57];let p=z.owner,m=z.repo,h;t[58]===z.target?h=t[59]:(h=c(z.target),t[58]=z.target,t[59]=h);let g;t[60]!==z.branch||t[61]!==z.owner||t[62]!==z.repo||t[63]!==z.target.kind||t[64]!==h?(g=(0,E.jsx)(oe,{owner:p,repo:m,path:h,kind:z.target.kind,branch:z.branch,testId:`share-receive-metadata`,branchTestId:`share-receive-metadata-branch`}),t[60]=z.branch,t[61]=z.owner,t[62]=z.repo,t[63]=z.target.kind,t[64]=h,t[65]=g):g=t[65];let _;t[66]!==a||t[67]!==f||t[68]!==g?(_=(0,E.jsxs)(ie,{children:[a,f,g]}),t[66]=a,t[67]=f,t[68]=g,t[69]=_):_=t[69];let ae;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,E.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`KsAPaB`})}),t[70]=ae):ae=t[70];let v;t[71]===e.candidatePath?v=t[72]:(v=(0,E.jsx)(`p`,{className:`mt-2 break-all rounded bg-muted px-2 py-1 font-mono text-xs text-foreground/80`,"data-testid":`share-receive-consent-path`,children:e.candidatePath}),t[71]=e.candidatePath,t[72]=v);let b;t[73]===e.parentProjectName?b=t[74]:(b=e.parentProjectName===null?null:(0,E.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,"data-testid":`share-receive-consent-parent`,children:(0,E.jsx)(r,{id:`JmfgFc`,values:{0:e.parentProjectName}})}),t[73]=e.parentProjectName,t[74]=b);let S;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,E.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`w7SsvI`})}),t[75]=S):S=t[75];let C;t[76]!==I.message||t[77]!==I.phase?(C=I.phase===`error`?(0,E.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,"data-testid":`share-receive-consent-error`,role:`alert`,children:I.message}):null,t[76]=I.message,t[77]=I.phase,t[78]=C):C=t[78];let w;t[79]!==v||t[80]!==b||t[81]!==C?(w=(0,E.jsxs)(l,{children:[ae,v,b,S,C]}),t[79]=v,t[80]=b,t[81]=C,t[82]=w):w=t[82];let T;t[83]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,E.jsx)(r,{id:`dEgA5A`}),t[83]=T):T=t[83];let D;t[84]===x?D=t[85]:(D=(0,E.jsx)(o,{variant:`ghost`,onClick:x,"data-testid":`share-receive-consent-cancel`,children:T}),t[84]=x,t[85]=D);let O=n||I.phase===`error`,k=n||I.phase===`error`,A;t[86]===n?A=t[87]:(A=n?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ee,{className:`mr-2 h-4 w-4`,"aria-hidden":`true`}),(0,E.jsx)(r,{id:`NKkZXl`})]}):(0,E.jsx)(r,{id:`NKkZXl`}),t[86]=n,t[87]=A);let j;t[88]!==y||t[89]!==O||t[90]!==k||t[91]!==A?(j=(0,E.jsx)(o,{onClick:y,disabled:O,"aria-disabled":k,"data-testid":`share-receive-consent-initialize`,children:A}),t[88]=y,t[89]=O,t[90]=k,t[91]=A,t[92]=j):j=t[92];let M;t[93]!==D||t[94]!==j?(M=(0,E.jsxs)(u,{children:[D,j]}),t[93]=D,t[94]=j,t[95]=M):M=t[95];let N;t[96]!==_||t[97]!==w||t[98]!==M?(N=(0,E.jsxs)(re,{className:`sm:max-w-xl`,"data-testid":`share-receive-consent-dialog`,onInteractOutside:ce,onPointerDownOutside:se,children:[_,w,M]}),t[96]=_,t[97]=w,t[98]=M,t[99]=N):N=t[99];let le;t[100]!==i||t[101]!==N?(le=(0,E.jsx)(d,{open:!0,onOpenChange:i,children:N}),t[100]=i,t[101]=N,t[102]=le):le=t[102],G=le;break bb0}if(!R||!z||!e){G=null;break bb0}B=g!==void 0&&!P;let O;t[103]!==S||t[104]!==P?(O=S(P?{id:`YjhKI5`}:{id:`LE7t79`}),t[103]=S,t[104]=P,t[105]=O):O=t[105],V=O,we=p(e)}t[15]=S,t[16]=N,t[17]=a,t[18]=g,t[19]=P,t[20]=I,t[21]=R,t[22]=T,t[23]=z,t[24]=v,t[25]=B,t[26]=V,t[27]=H,t[28]=U,t[29]=W,t[30]=we,t[31]=G,t[32]=K}else B=t[25],V=t[26],H=t[27],U=t[28],W=t[29],we=t[30],G=t[31],K=t[32];if(G!==Symbol.for(`react.early_return_sentinel`))return G;let Te=we,Ee=j?.authenticated?j.login:void 0,De;t[106]===F?De=t[107]:(De=F?.detail?m(F.detail):``,t[106]=F,t[107]=De);let Oe=De,q;t[108]===v?q=t[109]:(q=e=>{e||v.dismiss()},t[108]=v,t[109]=q);let J;t[110]===K?J=t[111]:(J=(0,E.jsx)(ne,{children:(0,E.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:K}})}),t[110]=K,t[111]=J);let Y;t[112]===z.target?Y=t[113]:(Y=c(z.target)?` — ${c(z.target)}`:null,t[112]=z.target,t[113]=Y);let X;t[114]!==z.owner||t[115]!==z.repo||t[116]!==Y?(X=(0,E.jsxs)(te,{className:`sr-only`,children:[z.owner,`/`,z.repo,Y]}),t[114]=z.owner,t[115]=z.repo,t[116]=Y,t[117]=X):X=t[117];let ke=z.owner,Ae=z.repo,Z;t[118]===z.target?Z=t[119]:(Z=c(z.target),t[118]=z.target,t[119]=Z);let Q;t[120]!==z.branch||t[121]!==z.owner||t[122]!==z.repo||t[123]!==z.target.kind||t[124]!==Z?(Q=(0,E.jsx)(oe,{owner:ke,repo:Ae,path:Z,kind:z.target.kind,branch:z.branch,testId:`share-receive-metadata`,branchTestId:`share-receive-metadata-branch`}),t[120]=z.branch,t[121]=z.owner,t[122]=z.repo,t[123]=z.target.kind,t[124]=Z,t[125]=Q):Q=t[125];let je;t[126]!==J||t[127]!==X||t[128]!==Q?(je=(0,E.jsxs)(ie,{children:[J,X,Q]}),t[126]=J,t[127]=X,t[128]=Q,t[129]=je):je=t[129];let Me;t[130]!==g||t[131]!==B||t[132]!==F||t[133]!==Oe||t[134]!==V||t[135]!==P||t[136]!==H||t[137]!==U||t[138]!==T?(Me=F?(0,E.jsxs)(`div`,{ref:ge,tabIndex:-1,className:`rounded-lg border border-destructive/40 p-4 outline-none`,"data-testid":`share-receive-clone-error`,children:[(0,E.jsx)(`p`,{className:`text-sm font-semibold text-foreground`,role:`alert`,children:(0,E.jsx)(r,{id:`aiArms`})}),Oe?(0,E.jsxs)(`p`,{className:`mt-2 break-words text-xs text-destructive`,"data-testid":`share-receive-clone-error-message`,children:[(0,E.jsx)(r,{id:`4BITzH`}),` `,(0,E.jsxs)(`span`,{className:`font-mono text-foreground/80`,children:[`"`,Oe,`"`]})]}):null,(0,E.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`Llyqvo`})}),(0,E.jsxs)(`ul`,{className:`mt-1 list-disc space-y-1 pl-5 text-sm text-muted-foreground`,"data-testid":`share-receive-clone-error-reasons`,children:[(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`6LbUG7`})}),(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`_pY_Vq`})}),(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`J6mxC1`})})]}),(0,E.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,E.jsx)(o,{onClick:()=>{H()},"data-testid":`share-receive-clone-retry`,children:(0,E.jsx)(r,{id:`KDw4GX`})}),(0,E.jsx)(o,{variant:`outline`,onClick:()=>{U()},disabled:T||P,"data-testid":`share-receive-error-local`,children:(0,E.jsx)(r,{id:`xFQRu4`})})]})]}):(0,E.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,E.jsxs)(`button`,{type:`button`,"data-testid":`share-receive-clone`,className:`flex flex-col items-start gap-2 rounded-lg border border-primary/50 bg-primary/5 p-4 text-left transition hover:border-primary hover:bg-primary/10 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/50 disabled:hover:bg-primary/5`,onClick:()=>{H()},disabled:g!==void 0&&!B,"aria-disabled":g!==void 0&&!B,children:[(0,E.jsx)(`span`,{className:`text-sm font-semibold`,children:V}),(0,E.jsx)(`span`,{className:`line-clamp-2 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`fj5YiP`})})]}),(0,E.jsxs)(`button`,{type:`button`,"data-testid":`share-receive-local`,className:`flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,onClick:()=>{U()},disabled:T||P,children:[(0,E.jsx)(`span`,{className:`text-sm font-semibold`,children:(0,E.jsx)(r,{id:`HfI1dR`})}),(0,E.jsx)(`span`,{className:`line-clamp-2 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`_qD6mn`})})]})]}),t[130]=g,t[131]=B,t[132]=F,t[133]=Oe,t[134]=V,t[135]=P,t[136]=H,t[137]=U,t[138]=T,t[139]=Me):Me=t[139];let Ne;t[140]!==N||t[141]!==j||t[142]!==g||t[143]!==W||t[144]!==Ee?(Ne=g?(0,E.jsx)(`div`,{className:`mt-3 flex items-center justify-between rounded-md border border-border bg-muted/30 px-3 py-2 text-xs`,"data-testid":`share-receive-auth-banner`,role:`status`,"aria-live":`polite`,children:j===null?(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`UDFrWm`})}):j.authenticated?(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`VAHWL_`,values:{signedInLogin:Ee},components:{0:(0,E.jsx)(`span`,{className:`font-medium text-foreground/90`})}})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`SgKLfA`})}),(0,E.jsx)(`button`,{type:`button`,"data-testid":`share-receive-signin`,className:`font-medium text-primary underline-offset-2 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded`,onClick:()=>{W()},disabled:N,children:N?(0,E.jsx)(r,{id:`PKLY-1`}):(0,E.jsx)(r,{id:`3jod3l`})})]})}):null,t[140]=N,t[141]=j,t[142]=g,t[143]=W,t[144]=Ee,t[145]=Ne):Ne=t[145];let Pe;t[146]!==F||t[147]!==Te?(Pe=F?null:(0,E.jsx)(`p`,{className:`mt-3 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`RJ3a8Z`,values:{lookingForUrl:Te},components:{0:(0,E.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),t[146]=F,t[147]=Te,t[148]=Pe):Pe=t[148];let Fe;t[149]!==Me||t[150]!==Ne||t[151]!==Pe?(Fe=(0,E.jsxs)(l,{children:[Me,Ne,Pe]}),t[149]=Me,t[150]=Ne,t[151]=Pe,t[152]=Fe):Fe=t[152];let Ie;t[153]===v?Ie=t[154]:(Ie=()=>v.dismiss(),t[153]=v,t[154]=Ie);let Le;t[155]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,E.jsx)(r,{id:`dEgA5A`}),t[155]=Le):Le=t[155];let Re;t[156]===Ie?Re=t[157]:(Re=(0,E.jsx)(u,{children:(0,E.jsx)(o,{variant:`outline`,onClick:Ie,children:Le})}),t[156]=Ie,t[157]=Re);let $;t[158]!==je||t[159]!==Fe||t[160]!==Re?($=(0,E.jsxs)(re,{className:`sm:max-w-xl`,"data-testid":`share-receive-dialog`,children:[je,Fe,Re]}),t[158]=je,t[159]=Fe,t[160]=Re,t[161]=$):$=t[161];let ze;return t[162]!==q||t[163]!==$?(ze=(0,E.jsx)(d,{open:!0,onOpenChange:q,children:$}),t[162]=q,t[163]=$,t[164]=ze):ze=t[164],ze}function se(e){return e.preventDefault()}function ce(e){return e.preventDefault()}function le(e){return e===null?e:T(e)}function ue(e){return e===null?e:w(e,{ok:!0})}function de(e){return e===null?e:S(e)}export{A as ShareReceiveDialog};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./button-DzgjsZzC.js";import{n as s}from"./dist-Bs8bPT30.js";import{t as c}from"./desktop-bridge-types-B8voP7ui.js";import{t as ee}from"./spinner-CeYJkImG.js";import{a as te,c as ne,i as re,n as l,o as u,s as ie,t as d}from"./dialog-BPbtQmOL.js";import{a as f,c as p,i as m,l as h,n as g,o as _,r as ae,s as v}from"./receive-store-DG-FxM8p.js";import{t as oe}from"./share-metadata-rows-CWmpgFkC.js";var y=e(n(),1),b=a(),x=e=>({phase:`ready`,seed:e});function S(e){return e.phase===`ready`?{phase:`initializing`,seed:e.seed}:e}function C(e,t){return e.phase===`initializing`?t.ok?{phase:`opening`,seed:e.seed}:{phase:`error`,seed:e.seed,reason:t.reason,message:t.message}:e}function w(e,t){return e.phase===`opening`?t.ok?{phase:`done`,seed:e.seed}:{phase:`error`,seed:e.seed,reason:`network-error`,message:t.message}:e}function T(e){return e.phase===`done`||e.phase===`cancelled`||e.phase===`error`?e:{phase:`cancelled`,seed:e.seed}}var E=t();function D(e){return{kind:e.target.kind,path:c(e.target),repositoryPath:c(e.repositoryTarget),...e.contentRootDepth===null?{}:{contentRootDepth:e.contentRootDepth}}}function O(e){return e!==null&&e.kind===`launcher-consent`}function k(e){return e!==null&&e.kind===`launcher-miss`}function A(e){let t=(0,b.c)(14),{bridge:n,cloneController:r,store:i}=e,a=i===void 0?g:i,o=(0,y.useSyncExternalStore)(a.subscribe,a.getSnapshot,M),[c,ee]=(0,y.useState)(0),[te,ne]=(0,y.useState)(o);o!==te&&(ne(o),ee(j));let re,l;t[0]!==o||t[1]!==a?(re=()=>{if(!o)return;let e=v(o);e&&(s.error(e.message),a.dismiss())},l=[o,a],t[0]=o,t[1]=a,t[2]=re,t[3]=l):(re=t[2],l=t[3]),(0,y.useEffect)(re,l);let u;t[4]===o?u=t[5]:(u=k(o)?o:null,t[4]=o,t[5]=u);let ie=u,d;t[6]===o?d=t[7]:(d=O(o)?o:null,t[6]=o,t[7]=d);let f=d??ie;if(!f)return null;let p;return t[8]!==f||t[9]!==n||t[10]!==r||t[11]!==c||t[12]!==a?(p=(0,E.jsx)(N,{payload:f,bridge:n,cloneController:r,store:a},c),t[8]=f,t[9]=n,t[10]=r,t[11]=c,t[12]=a,t[13]=p):p=t[13],p}function j(e){return e+1}function M(){return null}function N(e){let t=(0,b.c)(165),{payload:n,bridge:a,cloneController:g,store:v}=e,{_:S}=i(),[T,A]=(0,y.useState)(!1),[j,M]=(0,y.useState)(null),[N,fe]=(0,y.useState)(!1),[P,pe]=(0,y.useState)(!1),[F,me]=(0,y.useState)(null),[I,L]=(0,y.useState)(null),he=(0,y.useRef)(!1),ge=(0,y.useRef)(null),_e,ve;t[0]===F?(_e=t[1],ve=t[2]):(_e=()=>{F&&ge.current?.focus()},ve=[F],t[0]=F,t[1]=_e,t[2]=ve),(0,y.useEffect)(_e,ve);let ye;t[3]!==I||t[4]!==n?(ye=()=>{O(n)&&I===null&&(console.warn(`[receive] q1_hit=true selection=branch_match_non_ok candidate=${n.candidatePath}`),L(x({candidatePath:n.candidatePath,branch:n.share.branch,targetPath:c(n.share.target),targetKind:n.share.target.kind,repositoryPath:c(n.share.repositoryTarget),...n.share.contentRootDepth===null?{}:{contentRootDepth:n.share.contentRootDepth},parentProjectName:n.parentProjectName})))},t[3]=I,t[4]=n,t[5]=ye):ye=t[5];let be;t[6]===n?be=t[7]:(be=[n],t[6]=n,t[7]=be),(0,y.useEffect)(ye,be);let xe;t[8]!==j||t[9]!==g||t[10]!==n?(xe=()=>{if(!g||!k(n)||j!==null||he.current)return;he.current=!0,fe(!0);let e=n.share.host;g.getAuthStatus(e).then(e=>{M(e)}).catch(t=>{console.warn(`[receive] auth pre-flight probe failed`,t instanceof Error?t.message:t),M({authenticated:!1,host:e})}).finally(()=>{fe(!1)})},t[8]=j,t[9]=g,t[10]=n,t[11]=xe):xe=t[11];let Se;t[12]!==j||t[13]!==n?(Se=[n,j],t[12]=j,t[13]=n,t[14]=Se):Se=t[14],(0,y.useEffect)(xe,Se);let R=k(n)?n:null,Ce=O(n)?n:null,z=R?.share??Ce?.share??null,B,V,H,U,W,we,G,K;if(t[15]!==S||t[16]!==N||t[17]!==a||t[18]!==g||t[19]!==P||t[20]!==I||t[21]!==R||t[22]!==T||t[23]!==z||t[24]!==v){G=Symbol.for(`react.early_return_sentinel`);bb0:{let e=z?{host:z.host,owner:z.owner,repo:z.repo}:null,n;t[33]!==S||t[34]!==z?.target.kind?(n=z?.target.kind===`folder`?S({id:`ugoTXs`}):S({id:`XH30C4`}),t[33]=S,t[34]=z?.target.kind,t[35]=n):n=t[35],K=n,H=async function(){if(!R||!e)return;if(console.log(f({q2_path:`clone`})),!g){s.info(S({id:`27XW26`}),{action:{label:S({id:`B3NAZC`}),onClick:()=>{a.navigator.open()}},duration:8e3});return}if(P)return;me(null),pe(!0);let t=ae(e),n;try{n=await g.runClone({url:t,branch:R.share.branch})}catch(e){let t=e;console.warn(`[receive] runClone threw unexpectedly`,t),pe(!1),me({detail:t instanceof Error?t.message:String(t)});return}if(pe(!1),n.kind===`error`){me({detail:n.detail??null});return}if(n.kind===`ok`){try{await a.project.open({path:n.dir,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:D(R.share)}),v.dismiss()}catch(e){let t=e;console.warn(`[receive] project open after clone failed`,t instanceof Error?t.message:t),s.error(S({id:`438Fca`}))}return}};let i;t[36]!==S||t[37]!==N||t[38]!==g?(i=async function(){if(!(!g||N)){fe(!0);try{let e=await g.startSignIn();fe(!1),e!==null&&M(e)}catch(e){let t=e;fe(!1),console.warn(`[receive] startSignIn failed`,t instanceof Error?t.message:t),s.error(S({id:`lzwo7p`}))}}},t[36]=S,t[37]=N,t[38]=g,t[39]=i):i=t[39],W=i,U=async function(){if(!(!R||!e||T)){me(null),A(!0),console.log(f({q2_path:`local`}));try{for(;;){let t=await a.dialog.openFolder();if(!t)break;let n=await a.share.validateLocalFolder({folderPath:t,host:e.host,owner:e.owner,repo:e.repo});if(console.log(f({folder_validate:n.kind})),n.kind===`ok`){let e=R.share.branch,n={currentBranch:null,headSha:null,detached:!1};try{n=await a.project.readHeadBranch(t)}catch(e){let t=e;console.warn(`[receive] local-folder readHeadBranch failed`,t instanceof Error?t.message:t)}let r=h(e,n)!==`true`;try{await a.project.open({path:t,target:`new-window`,entryPoint:`share-receive`,...r?{pendingShareBranchSwitch:{share:R.share,projectPath:t,currentBranch:n.currentBranch}}:{pendingDeepLinkTarget:D(R.share)}}),v.dismiss()}catch(e){let t=e;console.warn(`[receive] local-folder-open failed`,t instanceof Error?t.message:t),s.error(S({id:`phM8Kh`}))}break}let r=_(n,e);r&&s.error(r)}}catch(e){let t=e;console.warn(`[receive] local-folder-validate failed`,t instanceof Error?t.message:t),s.error(S({id:`rlUzXK`}))}A(!1)}};let m;t[40]!==S||t[41]!==a||t[42]!==I||t[43]!==v?(m=function(){if(I===null||I.phase!==`ready`)return;let e=I.seed;console.warn(`[receive] consent_dialog action=initialize worktree=${e.candidatePath}`),L(de),a.project.okInit({projectPath:e.candidatePath}).then(async t=>{if(t.ok===!0){L(e=>e===null?e:C(e,{ok:!0,projectPath:t.projectPath}));try{await a.project.open({path:t.projectPath,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:{kind:e.targetKind,path:e.targetPath,repositoryPath:e.repositoryPath??e.targetPath,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}},pendingBranch:e.branch}),L(ue),v.dismiss()}catch(t){let n=t,r=n instanceof Error?n.message:String(n);L(e=>e===null?e:w(e,{ok:!1,message:r})),s.error(S({id:`nDT8qt`,values:{0:e.candidatePath}}))}return}let n=t.reason,r=t.message||`Initialization failed.`;L(e=>e===null?e:C(e,{ok:!1,reason:n,message:r})),s.error(r)}).catch(t=>{let n=t instanceof Error?t.message:String(t);L(e=>e===null?e:C(e,{ok:!1,reason:`network-error`,message:n})),s.error(S({id:`3Mwaly`,values:{0:e.candidatePath}}))})},t[40]=S,t[41]=a,t[42]=I,t[43]=v,t[44]=m):m=t[44];let y=m,b;t[45]!==I||t[46]!==v?(b=function(){I!==null&&console.warn(`[receive] consent_dialog action=cancel worktree=${I.seed.candidatePath}`),L(le),v.dismiss()},t[45]=I,t[46]=v,t[47]=b):b=t[47];let x=b;if(I!==null&&I.phase!==`cancelled`&&I.phase!==`done`&&z!==null){let e=I.seed,n=I.phase===`initializing`||I.phase===`opening`,i;t[48]===x?i=t[49]:(i=e=>{e||x()},t[48]=x,t[49]=i);let a;t[50]===K?a=t[51]:(a=(0,E.jsx)(ne,{children:(0,E.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:K}})}),t[50]=K,t[51]=a);let s;t[52]===z.target?s=t[53]:(s=c(z.target)?`— ${c(z.target)}`:``,t[52]=z.target,t[53]=s);let f;t[54]!==z.owner||t[55]!==z.repo||t[56]!==s?(f=(0,E.jsx)(te,{className:`sr-only`,children:(0,E.jsx)(r,{id:`pgq_xf`,values:{0:z.owner,1:z.repo,2:s}})}),t[54]=z.owner,t[55]=z.repo,t[56]=s,t[57]=f):f=t[57];let p=z.owner,m=z.repo,h;t[58]===z.target?h=t[59]:(h=c(z.target),t[58]=z.target,t[59]=h);let g;t[60]!==z.branch||t[61]!==z.owner||t[62]!==z.repo||t[63]!==z.target.kind||t[64]!==h?(g=(0,E.jsx)(oe,{owner:p,repo:m,path:h,kind:z.target.kind,branch:z.branch,testId:`share-receive-metadata`,branchTestId:`share-receive-metadata-branch`}),t[60]=z.branch,t[61]=z.owner,t[62]=z.repo,t[63]=z.target.kind,t[64]=h,t[65]=g):g=t[65];let _;t[66]!==a||t[67]!==f||t[68]!==g?(_=(0,E.jsxs)(ie,{children:[a,f,g]}),t[66]=a,t[67]=f,t[68]=g,t[69]=_):_=t[69];let ae;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(ae=(0,E.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`KsAPaB`})}),t[70]=ae):ae=t[70];let v;t[71]===e.candidatePath?v=t[72]:(v=(0,E.jsx)(`p`,{className:`mt-2 break-all rounded bg-muted px-2 py-1 font-mono text-xs text-foreground/80`,"data-testid":`share-receive-consent-path`,children:e.candidatePath}),t[71]=e.candidatePath,t[72]=v);let b;t[73]===e.parentProjectName?b=t[74]:(b=e.parentProjectName===null?null:(0,E.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,"data-testid":`share-receive-consent-parent`,children:(0,E.jsx)(r,{id:`JmfgFc`,values:{0:e.parentProjectName}})}),t[73]=e.parentProjectName,t[74]=b);let S;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,E.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`w7SsvI`})}),t[75]=S):S=t[75];let C;t[76]!==I.message||t[77]!==I.phase?(C=I.phase===`error`?(0,E.jsx)(`p`,{className:`mt-3 text-sm text-destructive`,"data-testid":`share-receive-consent-error`,role:`alert`,children:I.message}):null,t[76]=I.message,t[77]=I.phase,t[78]=C):C=t[78];let w;t[79]!==v||t[80]!==b||t[81]!==C?(w=(0,E.jsxs)(l,{children:[ae,v,b,S,C]}),t[79]=v,t[80]=b,t[81]=C,t[82]=w):w=t[82];let T;t[83]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,E.jsx)(r,{id:`dEgA5A`}),t[83]=T):T=t[83];let D;t[84]===x?D=t[85]:(D=(0,E.jsx)(o,{variant:`ghost`,onClick:x,"data-testid":`share-receive-consent-cancel`,children:T}),t[84]=x,t[85]=D);let O=n||I.phase===`error`,k=n||I.phase===`error`,A;t[86]===n?A=t[87]:(A=n?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(ee,{className:`mr-2 h-4 w-4`,"aria-hidden":`true`}),(0,E.jsx)(r,{id:`NKkZXl`})]}):(0,E.jsx)(r,{id:`NKkZXl`}),t[86]=n,t[87]=A);let j;t[88]!==y||t[89]!==O||t[90]!==k||t[91]!==A?(j=(0,E.jsx)(o,{onClick:y,disabled:O,"aria-disabled":k,"data-testid":`share-receive-consent-initialize`,children:A}),t[88]=y,t[89]=O,t[90]=k,t[91]=A,t[92]=j):j=t[92];let M;t[93]!==D||t[94]!==j?(M=(0,E.jsxs)(u,{children:[D,j]}),t[93]=D,t[94]=j,t[95]=M):M=t[95];let N;t[96]!==_||t[97]!==w||t[98]!==M?(N=(0,E.jsxs)(re,{className:`sm:max-w-xl`,"data-testid":`share-receive-consent-dialog`,onInteractOutside:ce,onPointerDownOutside:se,children:[_,w,M]}),t[96]=_,t[97]=w,t[98]=M,t[99]=N):N=t[99];let le;t[100]!==i||t[101]!==N?(le=(0,E.jsx)(d,{open:!0,onOpenChange:i,children:N}),t[100]=i,t[101]=N,t[102]=le):le=t[102],G=le;break bb0}if(!R||!z||!e){G=null;break bb0}B=g!==void 0&&!P;let O;t[103]!==S||t[104]!==P?(O=S(P?{id:`YjhKI5`}:{id:`LE7t79`}),t[103]=S,t[104]=P,t[105]=O):O=t[105],V=O,we=p(e)}t[15]=S,t[16]=N,t[17]=a,t[18]=g,t[19]=P,t[20]=I,t[21]=R,t[22]=T,t[23]=z,t[24]=v,t[25]=B,t[26]=V,t[27]=H,t[28]=U,t[29]=W,t[30]=we,t[31]=G,t[32]=K}else B=t[25],V=t[26],H=t[27],U=t[28],W=t[29],we=t[30],G=t[31],K=t[32];if(G!==Symbol.for(`react.early_return_sentinel`))return G;let Te=we,Ee=j?.authenticated?j.login:void 0,De;t[106]===F?De=t[107]:(De=F?.detail?m(F.detail):``,t[106]=F,t[107]=De);let Oe=De,q;t[108]===v?q=t[109]:(q=e=>{e||v.dismiss()},t[108]=v,t[109]=q);let J;t[110]===K?J=t[111]:(J=(0,E.jsx)(ne,{children:(0,E.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:K}})}),t[110]=K,t[111]=J);let Y;t[112]===z.target?Y=t[113]:(Y=c(z.target)?` — ${c(z.target)}`:null,t[112]=z.target,t[113]=Y);let X;t[114]!==z.owner||t[115]!==z.repo||t[116]!==Y?(X=(0,E.jsxs)(te,{className:`sr-only`,children:[z.owner,`/`,z.repo,Y]}),t[114]=z.owner,t[115]=z.repo,t[116]=Y,t[117]=X):X=t[117];let ke=z.owner,Ae=z.repo,Z;t[118]===z.target?Z=t[119]:(Z=c(z.target),t[118]=z.target,t[119]=Z);let Q;t[120]!==z.branch||t[121]!==z.owner||t[122]!==z.repo||t[123]!==z.target.kind||t[124]!==Z?(Q=(0,E.jsx)(oe,{owner:ke,repo:Ae,path:Z,kind:z.target.kind,branch:z.branch,testId:`share-receive-metadata`,branchTestId:`share-receive-metadata-branch`}),t[120]=z.branch,t[121]=z.owner,t[122]=z.repo,t[123]=z.target.kind,t[124]=Z,t[125]=Q):Q=t[125];let je;t[126]!==J||t[127]!==X||t[128]!==Q?(je=(0,E.jsxs)(ie,{children:[J,X,Q]}),t[126]=J,t[127]=X,t[128]=Q,t[129]=je):je=t[129];let Me;t[130]!==g||t[131]!==B||t[132]!==F||t[133]!==Oe||t[134]!==V||t[135]!==P||t[136]!==H||t[137]!==U||t[138]!==T?(Me=F?(0,E.jsxs)(`div`,{ref:ge,tabIndex:-1,className:`rounded-lg border border-destructive/40 p-4 outline-none`,"data-testid":`share-receive-clone-error`,children:[(0,E.jsx)(`p`,{className:`text-sm font-semibold text-foreground`,role:`alert`,children:(0,E.jsx)(r,{id:`aiArms`})}),Oe?(0,E.jsxs)(`p`,{className:`mt-2 break-words text-xs text-destructive`,"data-testid":`share-receive-clone-error-message`,children:[(0,E.jsx)(r,{id:`4BITzH`}),` `,(0,E.jsxs)(`span`,{className:`font-mono text-foreground/80`,children:[`"`,Oe,`"`]})]}):null,(0,E.jsx)(`p`,{className:`mt-3 text-sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`Llyqvo`})}),(0,E.jsxs)(`ul`,{className:`mt-1 list-disc space-y-1 pl-5 text-sm text-muted-foreground`,"data-testid":`share-receive-clone-error-reasons`,children:[(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`6LbUG7`})}),(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`_pY_Vq`})}),(0,E.jsx)(`li`,{children:(0,E.jsx)(r,{id:`J6mxC1`})})]}),(0,E.jsxs)(`div`,{className:`mt-4 flex flex-wrap gap-2`,children:[(0,E.jsx)(o,{onClick:()=>{H()},"data-testid":`share-receive-clone-retry`,children:(0,E.jsx)(r,{id:`KDw4GX`})}),(0,E.jsx)(o,{variant:`outline`,onClick:()=>{U()},disabled:T||P,"data-testid":`share-receive-error-local`,children:(0,E.jsx)(r,{id:`xFQRu4`})})]})]}):(0,E.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,E.jsxs)(`button`,{type:`button`,"data-testid":`share-receive-clone`,className:`flex flex-col items-start gap-2 rounded-lg border border-primary/50 bg-primary/5 p-4 text-left transition hover:border-primary hover:bg-primary/10 focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:border-primary/50 disabled:hover:bg-primary/5`,onClick:()=>{H()},disabled:g!==void 0&&!B,"aria-disabled":g!==void 0&&!B,children:[(0,E.jsx)(`span`,{className:`text-sm font-semibold`,children:V}),(0,E.jsx)(`span`,{className:`line-clamp-2 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`fj5YiP`})})]}),(0,E.jsxs)(`button`,{type:`button`,"data-testid":`share-receive-local`,className:`flex flex-col items-start gap-2 rounded-lg border border-border bg-card p-4 text-left transition hover:border-foreground/50 hover:bg-accent focus-visible:border-ring focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/50`,onClick:()=>{U()},disabled:T||P,children:[(0,E.jsx)(`span`,{className:`text-sm font-semibold`,children:(0,E.jsx)(r,{id:`HfI1dR`})}),(0,E.jsx)(`span`,{className:`line-clamp-2 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`_qD6mn`})})]})]}),t[130]=g,t[131]=B,t[132]=F,t[133]=Oe,t[134]=V,t[135]=P,t[136]=H,t[137]=U,t[138]=T,t[139]=Me):Me=t[139];let Ne;t[140]!==N||t[141]!==j||t[142]!==g||t[143]!==W||t[144]!==Ee?(Ne=g?(0,E.jsx)(`div`,{className:`mt-3 flex items-center justify-between rounded-md border border-border bg-muted/30 px-3 py-2 text-xs`,"data-testid":`share-receive-auth-banner`,role:`status`,"aria-live":`polite`,children:j===null?(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`UDFrWm`})}):j.authenticated?(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`VAHWL_`,values:{signedInLogin:Ee},components:{0:(0,E.jsx)(`span`,{className:`font-medium text-foreground/90`})}})}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`span`,{className:`text-muted-foreground`,children:(0,E.jsx)(r,{id:`SgKLfA`})}),(0,E.jsx)(`button`,{type:`button`,"data-testid":`share-receive-signin`,className:`font-medium text-primary underline-offset-2 hover:underline focus:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded`,onClick:()=>{W()},disabled:N,children:N?(0,E.jsx)(r,{id:`PKLY-1`}):(0,E.jsx)(r,{id:`3jod3l`})})]})}):null,t[140]=N,t[141]=j,t[142]=g,t[143]=W,t[144]=Ee,t[145]=Ne):Ne=t[145];let Pe;t[146]!==F||t[147]!==Te?(Pe=F?null:(0,E.jsx)(`p`,{className:`mt-3 text-1sm text-muted-foreground`,children:(0,E.jsx)(r,{id:`RJ3a8Z`,values:{lookingForUrl:Te},components:{0:(0,E.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),t[146]=F,t[147]=Te,t[148]=Pe):Pe=t[148];let Fe;t[149]!==Me||t[150]!==Ne||t[151]!==Pe?(Fe=(0,E.jsxs)(l,{children:[Me,Ne,Pe]}),t[149]=Me,t[150]=Ne,t[151]=Pe,t[152]=Fe):Fe=t[152];let Ie;t[153]===v?Ie=t[154]:(Ie=()=>v.dismiss(),t[153]=v,t[154]=Ie);let Le;t[155]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,E.jsx)(r,{id:`dEgA5A`}),t[155]=Le):Le=t[155];let Re;t[156]===Ie?Re=t[157]:(Re=(0,E.jsx)(u,{children:(0,E.jsx)(o,{variant:`outline`,onClick:Ie,children:Le})}),t[156]=Ie,t[157]=Re);let $;t[158]!==je||t[159]!==Fe||t[160]!==Re?($=(0,E.jsxs)(re,{className:`sm:max-w-xl`,"data-testid":`share-receive-dialog`,children:[je,Fe,Re]}),t[158]=je,t[159]=Fe,t[160]=Re,t[161]=$):$=t[161];let ze;return t[162]!==q||t[163]!==$?(ze=(0,E.jsx)(d,{open:!0,onOpenChange:q,children:$}),t[162]=q,t[163]=$,t[164]=ze):ze=t[164],ze}function se(e){return e.preventDefault()}function ce(e){return e.preventDefault()}function le(e){return e===null?e:T(e)}function ue(e){return e===null?e:w(e,{ok:!0})}function de(e){return e===null?e:S(e)}export{A as ShareReceiveDialog};
|
package/dist/public/assets/{ShareReceiveMissDialog-Dbjg3K-r.js → ShareReceiveMissDialog-BPBSQEGy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-NVntzFTK.js";import{t as l}from"./miss-dialog-store-9W8qZPsI.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-BPbtQmOL.js";import{d as h,u as g}from"./doc-hash-BDtDlqpM.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=h(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?h(e):g(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{n as o,t as s}from"./radio-group-G1GR05Rb.js";import{t as c}from"./button-DzgjsZzC.js";import{n as l}from"./dist-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{n as o,t as s}from"./radio-group-G1GR05Rb.js";import{t as c}from"./button-DzgjsZzC.js";import{n as l}from"./dist-Bs8bPT30.js";import{t as u}from"./skeleton-BBQ4J9l6.js";import{t as d}from"./ConfigSharingInfoTooltip-CmaSkr99.js";import{t as f}from"./channel-cli-copy-BE13Ri4Z.js";import{t as p}from"./SettingsSectionHeader-DoDCqZE9.js";var m=a(),h=e(n(),1),g=t(),_=`settings-sharing-title`;function v(){let e=(0,m.c)(1),t=(typeof window<`u`?window.okDesktop:void 0)?.sharing,n;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=t===void 0?(0,g.jsx)(y,{}):(0,g.jsx)(b,{}),e[0]=n):n=e[0],n}function y(){let e=(0,m.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=f(),e[0]=t):t=e[0];let n=t,i;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,g.jsx)(r,{id:`cs4mps`}),e[1]=i):i=e[1];let a;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,g.jsx)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:(0,g.jsx)(p,{titleId:_,title:i,scope:`project`,level:`block`,children:(0,g.jsx)(r,{id:`UbQzWP`,values:{cliCommand:n},components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{}),2:(0,g.jsx)(`code`,{})}})})}),e[2]=a):a=e[2],a}function b(){let e=(0,m.c)(29),{_:t}=i(),[n,a]=(0,h.useState)(null),[f,v]=(0,h.useState)(!1),[y,b]=(0,h.useState)(null),C;e[0]===t?C=e[1]:(C=async function(){let e=window.okDesktop?.sharing;if(e)try{a(await e.status())}catch(e){let n=e;l.error(n instanceof Error?n.message:t({id:`K0N7zS`})),a(S)}},e[0]=t,e[1]=C);let w=C,T;e[2]===w?T=e[3]:(T=()=>{w()},e[2]=w,e[3]=T);let E;e[4]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],e[4]=E):E=e[4],(0,h.useEffect)(T,E);let D;e[5]!==t||e[6]!==f||e[7]!==w||e[8]!==n?(D=async function(e){let r=window.okDesktop?.sharing;if(!r||n===null||f||n.mode===e)return;v(!0),b(null);let i=null,a=null;try{i=await r.setMode(e)}catch(e){a=e}if(v(!1),a!==null){l.error(a instanceof Error?a.message:t({id:`qZv5ZR`}));return}i!==null&&(i.kind===`refused-tracked`?(b({tracked:i.tracked,remediation:i.remediation}),l.error(t({id:`z2JdQ-`}),{duration:5e3})):i.kind===`no-exclude`?l.warning(i.reason===`no-git`?t({id:`YSFv5w`}):t({id:`8cS0nH`,values:{0:i.reason}})):l.success(t(e===`local-only`?{id:`wdzBgi`}:{id:`k_pade`})),await w())},e[5]=t,e[6]=f,e[7]=w,e[8]=n,e[9]=D):D=e[9];let O=D;if(n===null){let t;e[10]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,g.jsx)(p,{titleId:_,title:(0,g.jsx)(r,{id:`cs4mps`}),scope:`project`,level:`block`}),e[10]=t):t=e[10];let n;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-3`,"data-field":`section:sharing`,children:[t,(0,g.jsxs)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":`true`,children:[(0,g.jsx)(`span`,{className:`sr-only`,children:(0,g.jsx)(r,{id:`eQn7nI`})}),(0,g.jsx)(u,{className:`h-24`})]})]}),e[11]=n):n=e[11],n}let k=n.mode===`no-git`,A;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,g.jsx)(r,{id:`cs4mps`}),e[12]=A):A=e[12];let j;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,g.jsx)(p,{titleId:_,title:A,scope:`project`,level:`block`,adornment:(0,g.jsx)(d,{}),children:(0,g.jsx)(r,{id:`50gx7V`})}),e[13]=j):j=e[13];let M;e[14]!==f||e[15]!==k||e[16]!==O||e[17]!==n.mode?(M=k?(0,g.jsx)(`p`,{className:`rounded-md border border-warning/40 px-3 py-2 text-sm text-foreground`,role:`status`,"data-testid":`settings-sharing-no-git`,children:(0,g.jsx)(r,{id:`ju38ms`})}):(0,g.jsxs)(s,{value:n.mode,onValueChange:e=>void O(e),disabled:f,className:`gap-2`,"aria-labelledby":_,"data-testid":`settings-sharing-radiogroup`,children:[(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-local-only`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-local-only`,value:`local-only`,"data-testid":`settings-sharing-local-only`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`QjzFZj`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`un-K1H`})})]})]}),(0,g.jsxs)(`label`,{htmlFor:`settings-sharing-shared`,className:`flex items-start gap-2 text-sm`,children:[(0,g.jsx)(o,{id:`settings-sharing-shared`,value:`shared`,"data-testid":`settings-sharing-shared`,className:`mt-1`}),(0,g.jsxs)(`span`,{children:[(0,g.jsx)(`span`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`0Gd0NU`})}),(0,g.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`dJw2_7`})})]})]})]}),e[14]=f,e[15]=k,e[16]=O,e[17]=n.mode,e[18]=M):M=e[18];let N;e[19]===y?N=e[20]:(N=y===null?null:(0,g.jsxs)(`div`,{className:`space-y-2 rounded-md border border-destructive p-3 text-sm`,role:`alert`,"data-testid":`settings-sharing-refusal`,children:[(0,g.jsx)(`p`,{className:`font-semibold`,children:(0,g.jsx)(r,{id:`ZscwQ0`})}),(0,g.jsx)(`pre`,{className:`whitespace-pre-wrap font-mono text-xs leading-relaxed`,children:y.remediation}),(0,g.jsx)(c,{variant:`outline`,size:`sm`,onClick:()=>b(null),children:(0,g.jsx)(r,{id:`1QfxQT`})})]}),e[19]=y,e[20]=N);let P;e[21]!==y||e[22]!==n.mode||e[23]!==n.trackedUpstream?(P=n.trackedUpstream.length>0&&n.mode!==`no-git`&&y===null?(0,g.jsxs)(`div`,{className:`space-y-1 rounded-md border border-muted-foreground/30 bg-muted/40 p-3 text-sm`,"data-testid":`settings-sharing-tracked-info`,children:[(0,g.jsx)(`p`,{className:`font-medium`,children:(0,g.jsx)(r,{id:`LhWYpm`})}),(0,g.jsx)(`ul`,{className:`list-disc pl-5 font-mono text-xs text-muted-foreground`,children:n.trackedUpstream.map(x)}),(0,g.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:(0,g.jsx)(r,{id:`1XSMhZ`,components:{0:(0,g.jsx)(`code`,{}),1:(0,g.jsx)(`code`,{})}})})]}):null,e[21]=y,e[22]=n.mode,e[23]=n.trackedUpstream,e[24]=P):P=e[24];let F;return e[25]!==M||e[26]!==N||e[27]!==P?(F=(0,g.jsxs)(`section`,{"aria-labelledby":_,className:`space-y-4`,"data-testid":`settings-sharing`,"data-field":`section:sharing`,children:[j,M,N,P]}),e[25]=M,e[26]=N,e[27]=P,e[28]=F):F=e[28],F}function x(e){return(0,g.jsx)(`li`,{children:e},e)}function S(e){return e??{kind:`status`,mode:`no-git`,excluded:[],trackedUpstream:[]}}export{v as SharingSection};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{i,n as a,r as o,t as s}from"./tooltip-BjuCvy5N.js";import{nt as c}from"./schemas-api-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t,r as n}from"./dist-Nvb76hAm.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{i,n as a,r as o,t as s}from"./tooltip-BjuCvy5N.js";import{nt as c}from"./schemas-api-6ufosDur.js";import{t as l}from"./triangle-alert-COKT45NU.js";var u=r(),d=e();function f(e){return e<1e3?`${e}`:`${Math.round(e/100)/10}k`}function p(e){let t=(0,u.c)(33),{tokens:r,budget:c}=e,{_:p}=n(),m=c!==void 0&&r>c,h,g,_,v,y,b,x,S;if(t[0]!==p||t[1]!==c||t[2]!==m||t[3]!==r){S=Symbol.for(`react.early_return_sentinel`);bb0:{let e=c===void 0?``:f(c),n=m||void 0,u=m?`text-warning`:void 0,C;t[12]===r?C=t[13]:(C=f(r),t[12]=r,t[13]=C);let w=m?(0,d.jsx)(`span`,{role:`img`,"aria-label":p({id:`nem6R7`,values:{budgetLabel:e}}),children:(0,d.jsx)(l,{className:`ms-0.5 inline size-3 align-[-0.1em]`,"aria-hidden":`true`})}):null,T;t[14]!==n||t[15]!==u||t[16]!==C||t[17]!==w?(T=(0,d.jsxs)(`span`,{"data-over-budget":n,className:u,children:[C,w]}),t[14]=n,t[15]=u,t[16]=C,t[17]=w,t[18]=T):T=t[18];let E=T;if(!m){S=E;break bb0}_=o,g=s,t[19]===E?x=t[20]:(x=(0,d.jsx)(i,{asChild:!0,children:E}),t[19]=E,t[20]=x),h=a,v=`right`,y=`max-w-xs`,b=p({id:`JsHvhz`,values:{budgetLabel:e}})}t[0]=p,t[1]=c,t[2]=m,t[3]=r,t[4]=h,t[5]=g,t[6]=_,t[7]=v,t[8]=y,t[9]=b,t[10]=x,t[11]=S}else h=t[4],g=t[5],_=t[6],v=t[7],y=t[8],b=t[9],x=t[10],S=t[11];if(S!==Symbol.for(`react.early_return_sentinel`))return S;let C;t[21]!==h||t[22]!==v||t[23]!==y||t[24]!==b?(C=(0,d.jsx)(h,{side:v,className:y,children:b}),t[21]=h,t[22]=v,t[23]=y,t[24]=b,t[25]=C):C=t[25];let w;t[26]!==g||t[27]!==x||t[28]!==C?(w=(0,d.jsxs)(g,{children:[x,C]}),t[26]=g,t[27]=x,t[28]=C,t[29]=w):w=t[29];let T;return t[30]!==_||t[31]!==w?(T=(0,d.jsx)(_,{children:w}),t[30]=_,t[31]=w,t[32]=T):T=t[32],T}function m(e){let n=(0,u.c)(22),{size:r}=e,i=r.alwaysOn+r.onTrigger+r.onDemand,a;n[0]===r.alwaysOn?a=n[1]:(a=(0,d.jsx)(p,{tokens:r.alwaysOn,budget:100}),n[0]=r.alwaysOn,n[1]=a);let o;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,d.jsx)(t,{id:`eTsJYJ`}),n[2]=o):o=n[2];let s;n[3]===a?s=n[4]:(s=(0,d.jsxs)(`span`,{children:[a,` `,o]}),n[3]=a,n[4]=s);let l;n[5]===r.onTrigger?l=n[6]:(l=(0,d.jsxs)(`span`,{children:[(0,d.jsx)(p,{tokens:r.onTrigger,budget:c}),` SKILL.md`]}),n[5]=r.onTrigger,n[6]=l);let f;n[7]===r.onDemand?f=n[8]:(f=(0,d.jsx)(p,{tokens:r.onDemand}),n[7]=r.onDemand,n[8]=f);let m;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,d.jsx)(t,{id:`ae9Ozt`}),n[9]=m):m=n[9];let h;n[10]===f?h=n[11]:(h=(0,d.jsxs)(`span`,{children:[f,` `,m]}),n[10]=f,n[11]=h);let g;n[12]===i?g=n[13]:(g=(0,d.jsx)(p,{tokens:i}),n[12]=i,n[13]=g);let _;n[14]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,d.jsx)(t,{id:`ONchxy`}),n[14]=_):_=n[14];let v;n[15]===g?v=n[16]:(v=(0,d.jsxs)(`span`,{className:`text-foreground/80`,children:[g,` `,_]}),n[15]=g,n[16]=v);let y;return n[17]!==v||n[18]!==s||n[19]!==l||n[20]!==h?(y=(0,d.jsxs)(`span`,{"data-testid":`skill-cost-value`,className:`flex flex-col gap-0.5 font-mono text-[13px] text-muted-foreground`,children:[s,l,h,v]}),n[17]=v,n[18]=s,n[19]=l,n[20]=h,n[21]=y):y=n[21],y}export{f as n,m as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./square-pen-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./square-pen-5YkKFkKE.js";import{s as i}from"./skill-scope-C6c798PF.js";import{t as a}from"./SkillModeBanner-DnVYMXFn.js";var o=n(),s=e();function c(e){let n=(0,o.c)(7),{name:c}=e,l;n[0]===c?l=n[1]:(l=i(c),n[0]=c,n[1]=l);let u;n[2]===l?u=n[3]:(u=(0,s.jsx)(`strong`,{className:`font-medium text-foreground`,children:l}),n[2]=l,n[3]=u);let d=u,f;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,s.jsx)(r,{className:`size-4`,"aria-hidden":!0}),n[4]=f):f=n[4];let p;return n[5]===d?p=n[6]:(p=(0,s.jsx)(a,{icon:f,children:(0,s.jsx)(t,{id:`i-wHEp`,values:{boldName:d}})}),n[5]=d,n[6]=p),p}export{c as SkillEditBanner};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-Bs8bPT30.js";import{A as ee}from"./schemas-api-6ufosDur.js";import{a as l,c as te,i as u,n as d,o as f,s as p,t as m}from"./dialog-BPbtQmOL.js";import{t as h}from"./input-DUSj2Bri.js";import{l as ne}from"./skill-scope-C6c798PF.js";import{E as re,u as ie}from"./skills-api-BW6egGED.js";import{t as ae}from"./MultiFileDiff-BsuBGl7q.js";import{t as oe}from"./pierre-theme-Og_zQBPD.js";var se=a(),g=e(n(),1),_=t();function v(e){let t=(0,se.c)(60),{target:n,onOpenChange:a}=e,{_:v}=i(),y=(0,g.useId)(),[b,x]=(0,g.useState)(null),[S,C]=(0,g.useState)(null),[w,T]=(0,g.useState)(!1),[E,D]=(0,g.useState)(!1),[O,k]=(0,g.useState)(``),[A,j]=(0,g.useState)(!1),M;t[0]===n?M=t[1]:(M=()=>{if(x(null),C(null),T(!1),D(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){T(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${ne(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,C],[a,x]])ie({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):T(!0))}).catch(()=>{o.signal.aborted||T(!0)});return()=>o.abort()},t[0]=n,t[1]=M);let N=n?.skill.scope,P=n?.skill.name,F=n?.editor,I;if(t[2]!==N||t[3]!==P||t[4]!==F?(I=[N,P,F],t[2]=N,t[3]=P,t[4]=F,t[5]=I):I=t[5],(0,g.useEffect)(M,I),!n)return null;let{skill:L,editor:R}=n,z;t[6]!==v||t[7]!==R||t[8]!==a||t[9]!==L.name||t[10]!==L.scope||t[11]!==n||t[12]!==O?(z=async function(e){if(!n)return;j(!0);let t=await re({scope:L.scope,name:L.name,editor:R,action:e,...e===`rename`?{toName:O.trim()}:{}});if(j(!1),!t.ok){c.error(v({id:`MIF36T`,values:{0:t.error}}));return}c.success(v(e===`align`?{id:`QKgePK`,values:{editor:R}}:e===`make-source`?{id:`It9oAP`,values:{editor:R}}:{id:`b2ezG_`,values:{0:O.trim()}})),a(!1)},t[6]=v,t[7]=R,t[8]=a,t[9]=L.name,t[10]=L.scope,t[11]=n,t[12]=O,t[13]=z):z=t[13];let B=z,V,H;t[14]!==L.name||t[15]!==O?(H=O.trim(),V=H===``||!ee.test(H)||H===L.name,t[14]=L.name,t[15]=O,t[16]=V,t[17]=H):(V=t[16],H=t[17]);let U=V,W;t[18]!==A||t[19]!==a?(W=e=>{!e&&!A&&a(!1)},t[18]=A,t[19]=a,t[20]=W):W=t[20];let G;t[21]!==R||t[22]!==L.name?(G=(0,_.jsx)(te,{children:(0,_.jsx)(r,{id:`q8aCbb`,values:{0:L.name,editor:R}})}),t[21]=R,t[22]=L.name,t[23]=G):G=t[23];let K;t[24]===R?K=t[25]:(K=(0,_.jsx)(l,{children:(0,_.jsx)(r,{id:`QASTNu`,values:{editor:R}})}),t[24]=R,t[25]=K);let q;t[26]!==K||t[27]!==G?(q=(0,_.jsxs)(p,{children:[G,K]}),t[26]=K,t[27]=G,t[28]=q):q=t[28];let J;t[29]!==S||t[30]!==b||t[31]!==w||t[32]!==L.name?(J=S!==null&&b!==null?(0,_.jsx)(ae,{className:`pierre-diff`,oldFile:{name:L.name,contents:S},newFile:{name:L.name,contents:b},options:{overflow:`wrap`,diffStyle:`unified`,theme:oe()}}):w?(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`5BlXTD`})}):(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`1V17kO`})}),t[29]=S,t[30]=b,t[31]=w,t[32]=L.name,t[33]=J):J=t[33];let Y;t[34]!==B||t[35]!==R||t[36]!==y||t[37]!==U||t[38]!==E||t[39]!==L.name||t[40]!==O||t[41]!==H?(Y=E?(0,_.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,_.jsx)(o,{htmlFor:y,children:(0,_.jsx)(r,{id:`pSimwP`,values:{editor:R}})}),(0,_.jsx)(h,{id:y,value:O,onChange:e=>k(e.target.value),placeholder:`${L.name}-${R}`,"aria-invalid":U&&H!==``,onKeyDown:e=>{e.key===`Enter`&&!U&&B(`rename`)}})]}):null,t[34]=B,t[35]=R,t[36]=y,t[37]=U,t[38]=E,t[39]=L.name,t[40]=O,t[41]=H,t[42]=Y):Y=t[42];let X;t[43]!==J||t[44]!==Y?(X=(0,_.jsxs)(d,{className:`min-h-0 flex-1 overflow-auto`,children:[J,Y]}),t[43]=J,t[44]=Y,t[45]=X):X=t[45];let Z;t[46]!==B||t[47]!==A||t[48]!==R||t[49]!==U||t[50]!==E||t[51]!==L.name?(Z=(0,_.jsx)(f,{children:E?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>D(!1),disabled:A,children:(0,_.jsx)(r,{id:`iH8pgl`})}),(0,_.jsx)(s,{onClick:()=>void B(`rename`),disabled:A||U,children:(0,_.jsx)(r,{id:`AT0e50`})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>{k(`${L.name}-${R}`),D(!0)},disabled:A,children:(0,_.jsx)(r,{id:`AT0e50`})}),(0,_.jsx)(s,{variant:`outline`,onClick:()=>void B(`make-source`),disabled:A,children:(0,_.jsx)(r,{id:`xWomUD`,values:{editor:R}})}),(0,_.jsx)(s,{onClick:()=>void B(`align`),disabled:A,children:(0,_.jsx)(r,{id:`PZn2LP`})})]})}),t[46]=B,t[47]=A,t[48]=R,t[49]=U,t[50]=E,t[51]=L.name,t[52]=Z):Z=t[52];let Q;t[53]!==q||t[54]!==X||t[55]!==Z?(Q=(0,_.jsxs)(u,{className:`flex max-h-[85vh] w-full flex-col sm:max-w-5xl`,children:[q,X,Z]}),t[53]=q,t[54]=X,t[55]=Z,t[56]=Q):Q=t[56];let $;return t[57]!==Q||t[58]!==W?($=(0,_.jsx)(m,{open:!0,onOpenChange:W,children:Q}),t[57]=Q,t[58]=W,t[59]=$):$=t[59],$}export{v as SkillForkDialog};
|