@inkeep/open-knowledge 0.64.0-beta.7 → 0.64.1
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/{acp-harness-probe-BML7wGVY.mjs → acp-harness-probe-BS2KKWDg.mjs} +2 -2
- package/dist/cli.mjs +46 -46
- package/dist/constants-VMvduCQu.mjs +2 -0
- package/dist/{git-handle-UnQwrdlT.mjs → git-handle-29BNYqgw.mjs} +2 -2
- package/dist/git-handle-DfQBBy3_.mjs +1 -0
- package/dist/index.d.mts +49 -97
- package/dist/index.mjs +161 -158
- package/dist/{init-ChQc0EZ1.mjs → init-CB9b8ABp.mjs} +35 -37
- package/dist/init-C_7xLv5L.mjs +1 -0
- package/dist/{launch-json-removal-BrdHqkRe.mjs → launch-json-removal-lmoBoEPZ.mjs} +2 -2
- package/dist/loader-CqMTrIZH.mjs +1 -0
- package/dist/{loader-Bz3Pc-W1.mjs → loader-DyT98uPM.mjs} +2 -2
- package/dist/md-manager-CZcRasmz.mjs +2 -0
- package/dist/{open-browser-mXaE0V-v.mjs → open-browser-aU_PSdrG.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-UNTRk4oX.mjs → preview-B0PMP9Tc.mjs} +2 -2
- package/dist/preview-BnhlaGQl.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-CrcHRSaR.js → ActivityModeContent-rGNWFHTn.js} +1 -1
- package/dist/public/assets/AddPropertiesButton-2JRBAQEf.js +1 -0
- package/dist/public/assets/{AgentDiffPane-iV_pard0.js → AgentDiffPane-DaORQqpS.js} +1 -1
- package/dist/public/assets/AgentThreadClientBinder-CJYGMIr6.js +1 -0
- package/dist/public/assets/{AppMenubar-ywn95n5_.js → AppMenubar-MkvVs-8F.js} +1 -1
- package/dist/public/assets/{BugReportHistory-BATOeSHw.js → BugReportHistory-Cuh__mug.js} +1 -1
- package/dist/public/assets/{BugReportHistoryDialog-sIMmVxt-.js → BugReportHistoryDialog-C_9BqWro.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-B8JfraRG.js +3 -0
- package/dist/public/assets/{ConfigSharingInfoTooltip-D7VVLhT-.js → ConfigSharingInfoTooltip-N4ECgZTE.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-BcI0XBtZ.js → ConsentDialogBody-CK9RceLc.js} +1 -1
- package/dist/public/assets/DiffView-CkGEuSZT.js +3 -0
- package/dist/public/assets/DocumentContext-DyBKMWUQ.js +38 -0
- package/dist/public/assets/{EditorModeToggle-BuOATFco.js → EditorModeToggle-CTMAAr-X.js} +1 -1
- package/dist/public/assets/{EnableSyncConfirmDialog-DQVZgH-e.js → EnableSyncConfirmDialog-D80Aucr3.js} +1 -1
- package/dist/public/assets/{ExcalidrawDocEditor-BiNEXjZO.js → ExcalidrawDocEditor-CMeQn_u0.js} +4 -4
- package/dist/public/assets/FeedbackForm-SUXnCd9B.js +1 -0
- package/dist/public/assets/{GraphPanel-Brg6YDja.js → GraphPanel-CnxzWV5D.js} +2 -2
- package/dist/public/assets/ImportSkillDialog-DUdFUw6e.js +1 -0
- package/dist/public/assets/{LintConfigEditor-BWWinty4.js → LintConfigEditor-BC8TYjz-.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-Bt9WbztG.js → ManagedArtifactProperties-Cr21JXmD.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-DVT7r-wR.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-Da_YGlKw.js → McpConsentDialogBody-cAAI8kXS.js} +1 -1
- package/dist/public/assets/{Mermaid-BAKMqFxz.js → Mermaid-NYQ6RsUB.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-Dlr5gtqf.js → MermaidDocEditor-CCEt4Opw.js} +1 -1
- package/dist/public/assets/PropertyDisplayRow-CTVCclTK.js +2 -0
- package/dist/public/assets/RegisteredAgentIcon-Fkz5hv6G.js +1 -0
- package/dist/public/assets/ReportBugDialogBody-VIeqRFre.js +3 -0
- package/dist/public/assets/{RowDisclosure-BD4HJbRH.js → RowDisclosure-fCAaAHdQ.js} +1 -1
- package/dist/public/assets/SchemaConfigEditor-UcCzcUIa.js +1 -0
- package/dist/public/assets/SessionsHost-gxeaEpjc.js +2 -0
- package/dist/public/assets/SettingsDialogBody-CxoXcrrW.js +12 -0
- package/dist/public/assets/ShareBranchSwitchDialog-Cee3pwDa.js +1 -0
- package/dist/public/assets/{ShareReceiveDialog-CxRzoJmJ.js → ShareReceiveDialog-blTr_HPx.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-BzMzXr7U.js → ShareReceiveMissDialog-DJ9DvFJq.js} +1 -1
- package/dist/public/assets/SkillCostValue-DEly99Yk.js +1 -0
- package/dist/public/assets/{SkillEditBanner-BIAkDbBb.js → SkillEditBanner-bd1zvQfx.js} +1 -1
- package/dist/public/assets/SkillInstallMenu-sneUc7PA.js +2 -0
- package/dist/public/assets/{SkillOriginInline-C35IR2C_.js → SkillOriginInline-BQIo2jSh.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-BIUtpkZb.js → SkillToolbarControls-A3BqTaVC.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-Bua5dOtR.js → SlidesToolbarControls-DpcrHeKz.js} +1 -1
- package/dist/public/assets/SourceEditor-yCp7AOuC.js +1 -0
- package/dist/public/assets/{TerminalPanel-EZTkF_Im.js → TerminalPanel-DitPHk-i.js} +3 -3
- package/dist/public/assets/{TerminalStartingNotice-5YXAirXU.js → TerminalStartingNotice-7XmsKQfW.js} +1 -1
- package/dist/public/assets/TerminalWindowApp-CEMvQfmt.js +1 -0
- package/dist/public/assets/TextDocEditor-Ckd918Mb.js +1 -0
- package/dist/public/assets/{ThemePicker-BEVvKk5L.js → ThemePicker-BEO3X5aw.js} +1 -1
- package/dist/public/assets/ThreadView-DGR1KByM.js +14 -0
- package/dist/public/assets/{TimelineDiffPane-ZQbqPdw2.js → TimelineDiffPane-CpgSHJGN.js} +1 -1
- package/dist/public/assets/{abnfDiagram-N423BO3Z-DBJ3AZ9J.js → abnfDiagram-N423BO3Z-U4VtqGBo.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Dy0fjBEy.js → agent-diff-store-DzZwPUH2.js} +1 -1
- package/dist/public/assets/{alert-dialog-BV3f4Vr2.js → alert-dialog-C8E8SkhJ.js} +1 -1
- package/dist/public/assets/{architectureDiagram-T3A2C74G-DHhiMV1e.js → architectureDiagram-T3A2C74G-tXECBSP6.js} +1 -1
- package/dist/public/assets/arrow-up-right-CXMA4cr5.js +1 -0
- package/dist/public/assets/auth-state-cache-CEf8XB-q.js +11 -0
- package/dist/public/assets/{badge-52pHek8I.js → badge-DGD9B_-e.js} +1 -1
- package/dist/public/assets/{blockDiagram-VBNYF7ZC-B0XVQOlY.js → blockDiagram-VBNYF7ZC-Lzh-maol.js} +1 -1
- package/dist/public/assets/{braces-Bzye844v.js → braces-okUwnkYm.js} +1 -1
- package/dist/public/assets/bug-report-send-manager-D19JO93p.js +1 -0
- package/dist/public/assets/{button-Cym3gapE.js → button-CA0dewJJ.js} +1 -1
- package/dist/public/assets/{c4Diagram-5PPSVZJV-C0fXVzxK.js → c4Diagram-5PPSVZJV-Dv2DA9Ff.js} +1 -1
- package/dist/public/assets/{calendar-P1YHNDVH.js → calendar-C9Zcn0Ol.js} +1 -1
- package/dist/public/assets/{case-sensitive-BwklrMJw.js → case-sensitive-B9mhUnHr.js} +1 -1
- package/dist/public/assets/channel-DkPHFN0f.js +1 -0
- package/dist/public/assets/check-Bzwwm-o4.js +1 -0
- package/dist/public/assets/{checkbox-UfDS9TpS.js → checkbox-Bi7zk4c5.js} +1 -1
- package/dist/public/assets/{chevron-down-DNO3PgI_.js → chevron-down-xENV92Te.js} +1 -1
- package/dist/public/assets/chevron-left-B1wYSm9K.js +1 -0
- package/dist/public/assets/chevron-right-BVvjaUfh.js +1 -0
- package/dist/public/assets/{chunk-2GRJ4B5K-I9g7v43C.js → chunk-2GRJ4B5K-C9V9XFHZ.js} +1 -1
- package/dist/public/assets/{chunk-3NCLNEKW-CIPZUTs2.js → chunk-3NCLNEKW-BYKJOcB6.js} +1 -1
- package/dist/public/assets/{chunk-4I5QYGJK-CJSo7JWo.js → chunk-4I5QYGJK-DRvkWpJa.js} +1 -1
- package/dist/public/assets/{chunk-5RXB4S5H-CV_VIHj4.js → chunk-5RXB4S5H-Bepujvi7.js} +1 -1
- package/dist/public/assets/{chunk-6Q2QTUOP-HonjM1WC.js → chunk-6Q2QTUOP-uZ1QaaTd.js} +1 -1
- package/dist/public/assets/{chunk-7Z6QIM7H-C7MoQiZ1.js → chunk-7Z6QIM7H-BaiL4HQb.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-D2iiEks4.js → chunk-BO2N2NFS-aa_rQr8f.js} +4 -4
- package/dist/public/assets/{chunk-GF5L2VYU-DMKobWUK.js → chunk-GF5L2VYU-bkTHrje2.js} +1 -1
- package/dist/public/assets/{chunk-I66GZJ75-BUquu3u4.js → chunk-I66GZJ75-DdvvFHYK.js} +1 -1
- package/dist/public/assets/{chunk-J7OUQ5F2-D_xZJOyH.js → chunk-J7OUQ5F2-Dkai_3ry.js} +2 -2
- package/dist/public/assets/{chunk-JQJVKLGR-DEq8-3eQ.js → chunk-JQJVKLGR-BVFBBTqn.js} +1 -1
- package/dist/public/assets/{chunk-KBJHAD2P-D4Yduc8o.js → chunk-KBJHAD2P-Cu02YobZ.js} +1 -1
- package/dist/public/assets/{chunk-NSK5VX7P-BW0NvKtJ.js → chunk-NSK5VX7P-Cm6rtpZw.js} +1 -1
- package/dist/public/assets/{chunk-QR6OTTB3-BAd_wKMz.js → chunk-QR6OTTB3-CdcXCJoC.js} +1 -1
- package/dist/public/assets/{chunk-UBXNYLIW-xJmEmvG8.js → chunk-UBXNYLIW-tLiyG5ZI.js} +1 -1
- package/dist/public/assets/{chunk-W5SLKNZC-9q5ZT0Or.js → chunk-W5SLKNZC-DuVZK-DG.js} +1 -1
- package/dist/public/assets/{chunk-WRU74C26-DEuLBlab.js → chunk-WRU74C26-1154g7A6.js} +1 -1
- package/dist/public/assets/{circle-alert-b-E0_BIP.js → circle-alert-CKGYtHdt.js} +1 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-ZJNQWqPL.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-BVcoIlfv.js +1 -0
- package/dist/public/assets/client-version-ow2B_U-6.js +1 -0
- package/dist/public/assets/{cm-theme-CvD6eMwN.js → cm-theme-CqnwWjn0.js} +1 -1
- package/dist/public/assets/{code-highlighter-impl-CGDVGaGi.js → code-highlighter-impl-Cd7bLu8y.js} +1 -1
- package/dist/public/assets/{collapsible-DYySK8La.js → collapsible-COrqeoHr.js} +1 -1
- package/dist/public/assets/comment-chips-C076-HNt.js +5 -0
- package/dist/public/assets/{config-provider-CH5GabLO.js → config-provider-JYp7fF6x.js} +3 -3
- package/dist/public/assets/context-api-CW3A_QP4.js +1 -0
- package/dist/public/assets/{cynefinDiagram-MW4NZA55-Vp3Z3EOq.js → cynefinDiagram-MW4NZA55-CE9Z5Vl5.js} +1 -1
- package/dist/public/assets/{dagre-VZM6K2ZE-BsNhh3lr.js → dagre-VZM6K2ZE-l6JbWhTm.js} +1 -1
- package/dist/public/assets/{diagram-7IWD3JNH-CntjEuMQ.js → diagram-7IWD3JNH-R_54Evc_.js} +1 -1
- package/dist/public/assets/{diagram-B4RE2ZJO-CxKY34wz.js → diagram-B4RE2ZJO-jRIES5QB.js} +1 -1
- package/dist/public/assets/{diagram-LBJQPF4R-CAoRKtuu.js → diagram-LBJQPF4R-BcO2HjWp.js} +1 -1
- package/dist/public/assets/{diagram-Q27KOJAE-Bexqwg9W.js → diagram-Q27KOJAE-Cx6r8Ane.js} +1 -1
- package/dist/public/assets/{diagram-UB23O5K3-BO3f0yq6.js → diagram-UB23O5K3-DqfBod7o.js} +1 -1
- package/dist/public/assets/{dialog-Ba9N5nEw.js → dialog-BH80AfFt.js} +1 -1
- package/dist/public/assets/{dist-MhaicsMV.js → dist--D6RzOfD.js} +1 -1
- package/dist/public/assets/{dist-B6U1sHwQ2.js → dist-BFkXO51e2.js} +1 -1
- package/dist/public/assets/{dist-Dhtu02232.js → dist-BcWdMddd.js} +1 -1
- package/dist/public/assets/dist-Be8lWZxP2.js +1 -0
- package/dist/public/assets/{dist-DRO03ovd.js → dist-BvwnbioL.js} +1 -1
- package/dist/public/assets/{dist-Bd3O90Cl.js → dist-CFs5UHD5.js} +1 -1
- package/dist/public/assets/{dist-CZYk4Gmy.js → dist-CLS9aKf7.js} +1 -1
- package/dist/public/assets/{dist-xXHzlM2r.js → dist-CPvLRdmt.js} +1 -1
- package/dist/public/assets/{dist-CMrReMig.js → dist-CSCWMTfQ.js} +1 -1
- package/dist/public/assets/{dist-C_QZEaeX.js → dist-CWxNQtC52.js} +87 -87
- package/dist/public/assets/{dist-GoOli512.js → dist-Cu8jzM5J.js} +1 -1
- package/dist/public/assets/{dist-BDna-dOq.js → dist-DJUH3LhV.js} +1 -1
- package/dist/public/assets/{dist-CfolydxL.js → dist-DoGQZx5L.js} +1 -1
- package/dist/public/assets/{dist-BcvirUWL.js → dist-DsLZcVyZ.js} +1 -1
- package/dist/public/assets/{dist-Ds0ot8zG.js → dist-DxgTfwGf.js} +1 -1
- package/dist/public/assets/{dist-BXlOzfrR.js → dist-EbTHn-HD.js} +1 -1
- package/dist/public/assets/{dist-DnnH0RLX2.js → dist-O5qpSCnc2.js} +1 -1
- package/dist/public/assets/{dist-DatS2_-H.js → dist-awmOdYf0.js} +1 -1
- package/dist/public/assets/{dist-CWL3ooGG.js → dist-cQHiWmQq.js} +1 -1
- package/dist/public/assets/{dist-DXjgrsHI.js → dist-ezYezphN.js} +1 -1
- package/dist/public/assets/{dist-Bn0BEeMP.js → dist-gTGB_-tT.js} +1 -1
- package/dist/public/assets/dist-pKYOq3XC2.js +1 -0
- package/dist/public/assets/{dist-CkzVKD46.js → dist-tUuSMxU2.js} +1 -1
- package/dist/public/assets/{dist-4YFTUwt_.js → dist-yHiImJTb.js} +1 -1
- package/dist/public/assets/doc-paths-DgbGdxZ1.js +1 -0
- package/dist/public/assets/documents-events-DViu97ho.js +1 -0
- package/dist/public/assets/dropdown-menu-BpLbh79a.js +1 -0
- package/dist/public/assets/{ebnfDiagram-BXEA7PRR-DC58rQAn.js → ebnfDiagram-BXEA7PRR-Bwwa1Mdz.js} +1 -1
- package/dist/public/assets/{erDiagram-JOGREHBK-CUz9pdjc.js → erDiagram-JOGREHBK-BXsgvN7L.js} +1 -1
- package/dist/public/assets/{es2015-B9_uRFGw.js → es2015-wpLRKwCl.js} +1 -1
- package/dist/public/assets/{eye-7pio2q9G.js → eye-DIJifYDY.js} +1 -1
- package/dist/public/assets/field-5c9smYxo.js +1 -0
- package/dist/public/assets/file-tree-adapter-B2J82X4l.js +1 -0
- package/dist/public/assets/file-tree-utils-MiagXf7l.js +1 -0
- package/dist/public/assets/flowDiagram-UKHOOZJN-C7BD5YvS.js +1 -0
- package/dist/public/assets/{folder-config-api-Dxuhqlqr.js → folder-config-api-CNXuE5zD.js} +1 -1
- package/dist/public/assets/{folder-open-BWpLO6wT.js → folder-open-5aQb9yif.js} +1 -1
- package/dist/public/assets/{form-BntZOc7C.js → form-DWhbcQ6z.js} +1 -1
- package/dist/public/assets/{ganttDiagram-PKOTCBZU-C2NMWsS0.js → ganttDiagram-PKOTCBZU-DDPJ5Vmz.js} +1 -1
- package/dist/public/assets/{git-branch-3CSRgL0o.js → git-branch-BEl3Boky.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-CVdMqGMX.js → gitGraphDiagram-DS77QQ5N-DV8nqTks.js} +1 -1
- package/dist/public/assets/globals-DMaCiviB.css +1 -0
- package/dist/public/assets/{hash-3VQG5UJ7.js → hash-26j3E552.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-UCUIw0Lt.js → highlighted-body-OFNGDK62-eLakIx_-.js} +1 -1
- package/dist/public/assets/history-BteF85_l.js +1 -0
- package/dist/public/assets/i18n-CqDKlhNm.js +1 -0
- package/dist/public/assets/index-CVIfHBfN.js +2204 -0
- package/dist/public/assets/{info-SlzbpjOb.js → info-CqQMSCez.js} +1 -1
- package/dist/public/assets/{infoDiagram-6WML65LV-D2JV8LcI.js → infoDiagram-6WML65LV-DPWJulz5.js} +1 -1
- package/dist/public/assets/{input-group-DpVg5lNG.js → input-group-BScOj_fR.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-YJJMNAlB.js → ishikawaDiagram-WSZJBQD7-DTJJS9BZ.js} +1 -1
- package/dist/public/assets/{journeyDiagram-NVQOT4AX-NC-EWDbF.js → journeyDiagram-NVQOT4AX-DSNwyC9g.js} +1 -1
- package/dist/public/assets/{kanban-definition-27J2QSJJ-A5wz4I7T.js → kanban-definition-27J2QSJJ-B5B5rQlv.js} +1 -1
- package/dist/public/assets/{label-D-K3fWtj.js → label-Bbz2bT-a.js} +1 -1
- package/dist/public/assets/{lib-DmueaA5E.js → lib-B3XVxNhx.js} +1 -1
- package/dist/public/assets/{lib-vOz_s3tj.js → lib-DH_OjOEF.js} +1 -1
- package/dist/public/assets/{line-BURCYBOK.js → line-BX_DXx_6.js} +1 -1
- package/dist/public/assets/{lint-config-client-pNtVqn1v.js → lint-config-client-RzlDcfLl.js} +1 -1
- package/dist/public/assets/{lint-plugin-meta-LEBWvINg.js → lint-plugin-meta-C15NfeTq.js} +1 -1
- package/dist/public/assets/{list-plus-nPRgk4Qi.js → list-plus-1_iMFVqs.js} +1 -1
- package/dist/public/assets/{local-menu-action-bus-BLEUyEvu.js → local-menu-action-bus-BuSRFm5g.js} +1 -1
- package/dist/public/assets/markdownlint-rule-browser-Bmk3lsoP.js +1 -0
- package/dist/public/assets/{clipboard-adapter-815RzzoI.js → mascot-outline-CtS592mc.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-ChsT7WMf.js +1 -0
- package/dist/public/assets/mermaid.core-DNpF2SSh.js +1 -0
- package/dist/public/assets/{mermaid.core-C0IvVkS9.js → mermaid.core-W68NSbS2.js} +3 -3
- package/dist/public/assets/messages-10f1hPWP.js +1 -0
- package/dist/public/assets/messages-5TeeUeS0.js +1 -0
- package/dist/public/assets/messages-8WTqq3Mp.js +1 -0
- package/dist/public/assets/messages-BRgdD2wL.js +1 -0
- package/dist/public/assets/messages-Bbr1HKxw.js +1 -0
- package/dist/public/assets/messages-Bo2D8MSU.js +1 -0
- package/dist/public/assets/messages-BoTpi3Tc.js +1 -0
- package/dist/public/assets/messages-CCrzx-Sh.js +1 -0
- package/dist/public/assets/messages-CxY3xIzN.js +1 -0
- package/dist/public/assets/messages-DpV3A7jU.js +1 -0
- package/dist/public/assets/messages-DyWXi2qN.js +1 -0
- package/dist/public/assets/messages-ZkMy8GOy.js +1 -0
- package/dist/public/assets/{mindmap-definition-FAOFIHXS-CKQxgOGt.js → mindmap-definition-FAOFIHXS-CJdkasm6.js} +1 -1
- package/dist/public/assets/minus-HJRULrSt.js +1 -0
- package/dist/public/assets/{miss-dialog-store-DVpIaq34.js → miss-dialog-store-CdkrAlK3.js} +1 -1
- package/dist/public/assets/ok-XpAzrb6Z.js +1 -0
- package/dist/public/assets/{package-B5dxtZEP.js → package-BuoPO9EK.js} +1 -1
- package/dist/public/assets/page-list-cache-CEyxAohw.js +1 -0
- package/dist/public/assets/{panel-right-open-B0h13QHr.js → panel-right-open-BXE3r3dB.js} +1 -1
- package/dist/public/assets/{paperclip-ChAyZqn8.js → paperclip-C-okgtwN.js} +1 -1
- package/dist/public/assets/{pegDiagram-VL7TDLO6-BHV9FATd.js → pegDiagram-VL7TDLO6-DmyKkWD-.js} +1 -1
- package/dist/public/assets/pending-receive-nav-store-CTqjXsBl.js +1 -0
- package/dist/public/assets/{pieDiagram-7S7Q4E2Y-vlst6sEu.js → pieDiagram-7S7Q4E2Y-DbB4HZ75.js} +1 -1
- package/dist/public/assets/platform-labels-CwDqSSkR.js +1 -0
- package/dist/public/assets/{popover-B7jXm65e.js → popover-CA_JdlWS.js} +1 -1
- package/dist/public/assets/progress-OoUVKpXn.js +9 -0
- package/dist/public/assets/project-paths-BdGjLtxT.js +1 -0
- package/dist/public/assets/prop-types-CU7HQl68.js +1 -0
- package/dist/public/assets/{propagation-api-DC5404fy.js → propagation-api-B1_qxPZb.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-aZGa0dqP.js → quadrantDiagram-CIZ2JOQS-BjHQcxZ0.js} +1 -1
- package/dist/public/assets/radio-group-BsZGGl8l.js +1 -0
- package/dist/public/assets/{railroadDiagram-AXF67PYL-Daf6Zy7e.js → railroadDiagram-AXF67PYL-CWE-Lz8D.js} +1 -1
- package/dist/public/assets/{receive-store-Rla0xjPc.js → receive-store-CJtiTNp3.js} +1 -1
- package/dist/public/assets/{refresh-cw-DwRz6AkS.js → refresh-cw-D41gUk_B.js} +1 -1
- package/dist/public/assets/{requirementDiagram-LRYGKXZP-C8dZAU1p.js → requirementDiagram-LRYGKXZP-DVzRPfG6.js} +1 -1
- package/dist/public/assets/rotate-ccw-Dh7y6tzD.js +1 -0
- package/dist/public/assets/{sankeyDiagram-W5VNT64P-DSVSXy_1.js → sankeyDiagram-W5VNT64P-BvGHv_UD.js} +1 -1
- package/dist/public/assets/{select-XEGYznMI.js → select-fWSYgcDA.js} +1 -1
- package/dist/public/assets/{selection-context-D9UxW_oI.js → selection-context-DR7ab7yE.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-SI44F4Z6-Bnbh_rO1.js → sequenceDiagram-SI44F4Z6-Ckszb4Mj.js} +1 -1
- package/dist/public/assets/skill-scope-BAozv3yS.js +1 -0
- package/dist/public/assets/skills-api-DY2ILAVx.js +1 -0
- package/dist/public/assets/{spinner-t7GahFcQ.js → spinner-DmibE6UV.js} +1 -1
- package/dist/public/assets/{square-pen-K4JT0cp9.js → square-pen-Blyr7NAu.js} +1 -1
- package/dist/public/assets/{src-CMLgwlib.js → src-CGTpf8aj.js} +1 -1
- package/dist/public/assets/startup-marks-BYurBbnW.js +1 -0
- package/dist/public/assets/{stateDiagram-OKZ733FA-DS5XYAjU.js → stateDiagram-OKZ733FA-Bm4P0e_g.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-D9_hTyIp.js +1 -0
- package/dist/public/assets/{swimlanes-SLNWSIFB-BGX6QMGe.js → swimlanes-SLNWSIFB-iiVbZ3fC.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-Hd_RccsN.js +8 -0
- package/dist/public/assets/{switch-iwBsEWej.js → switch-BeP1gMN6.js} +1 -1
- package/dist/public/assets/{tabs-BNfoCymd.js → tabs-r9BJxNSQ.js} +1 -1
- package/dist/public/assets/tag-pill-input-llQtM5Z_.js +1 -0
- package/dist/public/assets/{target-navigation-intent-C_Ucfr51.js → target-navigation-intent-HQou_X-w.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DLl1oxED.js → telemetry-impl-BIepj08G.js} +1 -1
- package/dist/public/assets/{telemetry-startup-k7vK2L8Z.js → telemetry-startup-B7OSl-z5.js} +1 -1
- package/dist/public/assets/{terminal-D4HSnHXf.js → terminal-CFd7qrv_.js} +1 -1
- package/dist/public/assets/terminal-cli-display-DTFiZBBc.js +1 -0
- package/dist/public/assets/terminal-launch-events-Bfi4m2vK.js +1 -0
- package/dist/public/assets/terminal-telemetry-CboX_HNN.js +1 -0
- package/dist/public/assets/{text-viewer-languages-DRp_Y82n.js → text-viewer-languages-BtwF8E4F.js} +2 -2
- package/dist/public/assets/thread-client-o-xHAmeK.js +1 -0
- package/dist/public/assets/thread-draft-staging-D-3dp2ov.js +1 -0
- package/dist/public/assets/{timeline-definition-Z64GVDOM-BKNoWHPk.js → timeline-definition-Z64GVDOM-CrQPhNwW.js} +1 -1
- package/dist/public/assets/toggle-group-BlEg4yJE.js +1 -0
- package/dist/public/assets/{tooltip-DttaCTqz.js → tooltip-DPvMEqsq.js} +1 -1
- package/dist/public/assets/{trash-2-CePzTX_C.js → trash-2-BVoWHmfV.js} +1 -1
- package/dist/public/assets/{triangle-alert-D0n54WVY.js → triangle-alert-CJVfCxE0.js} +1 -1
- package/dist/public/assets/typing-burst-detector-C4y2fKpb.js +8 -0
- package/dist/public/assets/{undo-2-BOBiJGd5.js → undo-2-CXHp9Ngg.js} +1 -1
- package/dist/public/assets/uninstall-Bf9OgFpb.js +1 -0
- package/dist/public/assets/use-activity-panel-D_OG3gXD.js +1 -0
- package/dist/public/assets/use-apply-config-color-theme-H1zX9cBU.js +1 -0
- package/dist/public/assets/use-collab-url-Dk-3M_go.js +1 -0
- package/dist/public/assets/use-installed-clis-vg6izNL9.js +1 -0
- package/dist/public/assets/{use-live-xterm-theme-BjybDd5E.js → use-live-xterm-theme-ChdQbgac.js} +1 -1
- package/dist/public/assets/use-open-skill-BeZcrVWu.js +1 -0
- package/dist/public/assets/use-settings-route-CHUO6Vb3.js +1 -0
- package/dist/public/assets/{use-skill-origin-C0RzVLGk.js → use-skill-origin-CLzO6XeG.js} +1 -1
- package/dist/public/assets/use-skills-B1r84pEp.js +1 -0
- package/dist/public/assets/use-terminal-enabled-BCESHfrF.js +1 -0
- package/dist/public/assets/use-timeline-entry-diff-Bs-prtib.js +6 -0
- package/dist/public/assets/use-workspace-DigIBtSV.js +1 -0
- package/dist/public/assets/{vennDiagram-T6HMQDX7-CRzUxobP.js → vennDiagram-T6HMQDX7-DUxH4wy8.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-T6FBY63Y-CoEGckrX.js → wardleyDiagram-T6FBY63Y-CRduVCHa.js} +1 -1
- package/dist/public/assets/{wrench-ZOpNzIoC.js → wrench-JX3g_hHJ.js} +1 -1
- package/dist/public/assets/x-wQUDJS55.js +1 -0
- package/dist/public/assets/{xychartDiagram-ELKLHX3M-BlVTFSNG.js → xychartDiagram-ELKLHX3M-ayUwPHsi.js} +1 -1
- package/dist/public/index.html +149 -149
- package/dist/public/uninstall.html +28 -28
- package/dist/{repair-launch-json-BWwjyrdu.mjs → repair-launch-json-DGu77VVa.mjs} +2 -2
- package/dist/{repair-mcp-configs-D6VBK-GI.mjs → repair-mcp-configs-BKUZ3NzW.mjs} +2 -2
- package/dist/repair-skills-BABpOhB_.mjs +1 -0
- package/dist/{repair-skills-Dbdo1dep.mjs → repair-skills-CRG-r1Xh.mjs} +2 -2
- package/dist/{resolve-project-root-BgZ293gs.mjs → resolve-project-root-urAKqvDX.mjs} +2 -2
- package/dist/server-lock-C_5VGPQF.mjs +1 -0
- package/dist/{server-lock-CcnGITIh.mjs → server-lock-_JWkU2Mh.mjs} +2 -2
- package/dist/{skill-teardown-BQcurw-H.mjs → skill-teardown-CVMrfSeZ.mjs} +2 -2
- package/dist/{src-DB7C0CZe.mjs → src-BRlSw7bk.mjs} +1 -1
- package/dist/{src-DGS-lA-C.mjs → src-CjFV1e1Z.mjs} +328 -330
- package/dist/src-D6Ou79Ng.mjs +1 -0
- package/dist/src-DBh4BCS2.mjs +20 -0
- package/dist/{src-CaLoSvK5.mjs → src-DhKkOAcb.mjs} +2 -2
- package/dist/start-CGzXGtnH.mjs +1 -0
- package/dist/{start-Ce9Y7lY6.mjs → start-DaYtIHPj.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-sxUfcj6G.mjs +0 -2
- package/dist/git-handle-Bh1alj7a.mjs +0 -1
- package/dist/init-DgJM6DnS.mjs +0 -1
- package/dist/loader-DK5Ie7sZ.mjs +0 -1
- package/dist/md-manager-BJ88tow5.mjs +0 -2
- package/dist/preview-Z_AS1JW8.mjs +0 -1
- package/dist/public/assets/AddPropertiesButton-Dhb2CS28.js +0 -1
- package/dist/public/assets/AgentThreadClientBinder-BeLgy3iy.js +0 -1
- package/dist/public/assets/CodeMirrorPropInput-BtM8bLgN.js +0 -3
- package/dist/public/assets/DiffView-BgxYEqNK.js +0 -3
- package/dist/public/assets/DocumentContext-BLYhIJKb.js +0 -38
- package/dist/public/assets/FeedbackForm-Bjktf7Jt.js +0 -1
- package/dist/public/assets/ImportSkillDialog-BDHGW3fP.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-BqpLg9rc.js +0 -1
- package/dist/public/assets/PropertyDisplayRow-CjaFUnLr.js +0 -2
- package/dist/public/assets/RegisteredAgentIcon-C5l0ngck.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-YQEEGPWa.js +0 -3
- package/dist/public/assets/ReportBugMenuTrigger-BYHhqbyX.js +0 -2
- package/dist/public/assets/SchemaConfigEditor-CucEIur2.js +0 -1
- package/dist/public/assets/SessionsHost-LdAlgsGb.js +0 -2
- package/dist/public/assets/SettingsDialogBody-BaOeNsR9.js +0 -12
- package/dist/public/assets/ShareBranchSwitchDialog-DNMbGcR3.js +0 -1
- package/dist/public/assets/SkillCostValue-0sdQK-kg.js +0 -1
- package/dist/public/assets/SkillInstallMenu-CglzHAk9.js +0 -2
- package/dist/public/assets/SourceEditor-2ULgPpJa.js +0 -1
- package/dist/public/assets/TerminalWindowApp-CsYceTtM.js +0 -1
- package/dist/public/assets/TextDocEditor-BG0744jP.js +0 -1
- package/dist/public/assets/ThreadView-CmaAxNLC.js +0 -15
- package/dist/public/assets/arrow-up-right-BTi7mHwL.js +0 -1
- package/dist/public/assets/auth-state-cache-Cl-oEkV3.js +0 -11
- package/dist/public/assets/bug-report-send-manager-idwD-g0s.js +0 -1
- package/dist/public/assets/channel-Bw1oZ3oX.js +0 -1
- package/dist/public/assets/check-Dut4Aov8.js +0 -1
- package/dist/public/assets/chevron-left-Dhf0Sw0W.js +0 -1
- package/dist/public/assets/chevron-right-4mYNnAZZ.js +0 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-CrlbOdYD.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-CrkjdB4S.js +0 -1
- package/dist/public/assets/client-version-BBQwLhqb.js +0 -1
- package/dist/public/assets/comment-chips-BXljbVyj.js +0 -5
- package/dist/public/assets/context-api-dUnlgSJr.js +0 -1
- package/dist/public/assets/dist-BY_vnlVW2.js +0 -1
- package/dist/public/assets/dist-wcXwpuqG.js +0 -1
- package/dist/public/assets/doc-paths-DMctW8qz.js +0 -1
- package/dist/public/assets/documents-events-CwqQxQT5.js +0 -1
- package/dist/public/assets/dropdown-menu-CRvS0_4-.js +0 -1
- package/dist/public/assets/field-XqXEu64v.js +0 -1
- package/dist/public/assets/file-tree-adapter-CpTo1U5h.js +0 -1
- package/dist/public/assets/file-tree-utils-DrK6l51M.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-DHMrplYi.js +0 -1
- package/dist/public/assets/globals-20k8qIHJ.css +0 -1
- package/dist/public/assets/i18n-fff2WirB.js +0 -1
- package/dist/public/assets/index-DETxM0cG.js +0 -2204
- package/dist/public/assets/launch-agent-thread-CiJKMl7i.js +0 -1
- package/dist/public/assets/launcher-selection-Btzbq8G9.js +0 -1
- package/dist/public/assets/markdownlint-rule-browser-IpH2V17S.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-BmYrNHJr.js +0 -1
- package/dist/public/assets/mermaid.core-DhUKqb7Q.js +0 -1
- package/dist/public/assets/messages-BA7DohGj.js +0 -1
- package/dist/public/assets/messages-BdGgYrkw.js +0 -1
- package/dist/public/assets/messages-BmJwFFk2.js +0 -1
- package/dist/public/assets/messages-CAE2zUYV.js +0 -1
- package/dist/public/assets/messages-CrVPM5E4.js +0 -1
- package/dist/public/assets/messages-D-zK8yr7.js +0 -1
- package/dist/public/assets/messages-DUPvSdtJ.js +0 -1
- package/dist/public/assets/messages-DopL6n4F.js +0 -1
- package/dist/public/assets/messages-Dqi8grxj.js +0 -1
- package/dist/public/assets/messages-MMPlXGaP.js +0 -1
- package/dist/public/assets/messages-Onfj9qmo.js +0 -1
- package/dist/public/assets/messages-tKMCe9_5.js +0 -1
- package/dist/public/assets/minus-VHw16jS_.js +0 -1
- package/dist/public/assets/ok-Z-u-nHAF.js +0 -1
- package/dist/public/assets/page-list-cache-DambRQ7B.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-TC2l6M7Y.js +0 -1
- package/dist/public/assets/platform-labels-DdSSzvdg.js +0 -1
- package/dist/public/assets/progress-i5ULe7SF.js +0 -9
- package/dist/public/assets/project-paths-VEOKTjqe.js +0 -1
- package/dist/public/assets/prop-types-Boc_oFTG.js +0 -1
- package/dist/public/assets/radio-group-npdxiS6E.js +0 -1
- package/dist/public/assets/separator-C6x7j8mC.js +0 -1
- package/dist/public/assets/skill-scope-C2Q18Fyo.js +0 -1
- package/dist/public/assets/skills-api-Du0yE_Ea.js +0 -1
- package/dist/public/assets/startup-marks-Cw2UqI10.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-BWm5URXG.js +0 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-CQ5DIVBE.js +0 -8
- package/dist/public/assets/tag-pill-input-BWs4IhME.js +0 -1
- package/dist/public/assets/terminal-cli-display-CrkxgiPR.js +0 -1
- package/dist/public/assets/terminal-launch-events-BgzVfom1.js +0 -1
- package/dist/public/assets/terminal-telemetry-CWD0Kbui.js +0 -1
- package/dist/public/assets/thread-client-BpV1TUph.js +0 -3
- package/dist/public/assets/toggle-group-C2_37kV5.js +0 -1
- package/dist/public/assets/typing-burst-detector-D_M-RPSc.js +0 -8
- package/dist/public/assets/uninstall-B-oOJpa1.js +0 -1
- package/dist/public/assets/use-activity-panel-bh4GxchM.js +0 -1
- package/dist/public/assets/use-apply-config-color-theme-3_75T4Q8.js +0 -1
- package/dist/public/assets/use-collab-url-9MxkxDjK.js +0 -1
- package/dist/public/assets/use-open-skill-CoAITmJi.js +0 -1
- package/dist/public/assets/use-settings-route-6Aa41RPQ.js +0 -1
- package/dist/public/assets/use-skills-BkWQHhha.js +0 -1
- package/dist/public/assets/use-terminal-enabled-qkqdcBcO.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-BPHrBftQ.js +0 -6
- package/dist/public/assets/use-workspace-7B06onC_.js +0 -1
- package/dist/public/assets/x-C0WDbk6g.js +0 -1
- package/dist/repair-skills-CBdnIHQ1.mjs +0 -1
- package/dist/server-lock-D8d0WVYU.mjs +0 -1
- package/dist/src-CkaS3ZCg.mjs +0 -20
- package/dist/src-DwfqRaaM.mjs +0 -1
- package/dist/start-D_L9hslR.mjs +0 -1
- /package/dist/public/assets/{auth-prompt-store-vAFATIFt.js → auth-prompt-store-BXeyTyYx.js} +0 -0
- /package/dist/public/assets/{createLucideIcon-BulbvLvN.js → createLucideIcon-CAkY8Blx.js} +0 -0
- /package/dist/public/assets/{desktop-bridge-types-oYPdTDmz.js → desktop-bridge-types-msKbUsnF.js} +0 -0
- /package/dist/public/assets/{dist-Cr4-nBVI.js → dist-BIGNzOeF2.js} +0 -0
- /package/dist/public/assets/{dist-Bd_yyADX.js → dist-Cm417ZCm.js} +0 -0
- /package/dist/public/assets/{dist-CJhtNlOm2.js → dist-CuH7ikCn.js} +0 -0
- /package/dist/public/assets/{dist-BHv-mziD.js → dist-mv8e6dBX.js} +0 -0
- /package/dist/public/assets/{floating-ui.dom-BcZPrP06.js → floating-ui.dom-Dk5WJYh0.js} +0 -0
- /package/dist/public/assets/{globals-CTSydwqe.js → globals-BFYzJ2RB.js} +0 -0
- /package/dist/public/assets/{html-void-elements-zEl0KGqf.js → html-void-elements-XfxYgU9i.js} +0 -0
- /package/dist/public/assets/{katex-CcPk1vJT.js → katex-BRGj_jwq.js} +0 -0
- /package/dist/public/assets/{markdownit-CugClK-K.js → markdownit-Du2gL9_G.js} +0 -0
- /package/dist/public/assets/{note-window-mode-CsmLTxU_.js → note-window-mode-J_lykVfh.js} +0 -0
- /package/dist/public/assets/{parse-api-error-Dd8VI2eu.js → parse-api-error-DcnXKbfT.js} +0 -0
- /package/dist/public/assets/{trace-api-BP9dN1Hz.js → trace-api-BslS_6CM.js} +0 -0
- /package/dist/public/assets/{use-apply-config-theme-CBmHKD_B.js → use-apply-config-theme-B1eLRQeV.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-C7Rznu6R.js → w3c-keyname-yVu9TQnl.js} +0 -0
- /package/dist/public/assets/{workspace-paths-CAsMig07.js → workspace-paths-CD0W1etA.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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-Cym3gapE.js";import{a as ee,c as te,i as s,n as ne,o as re,s as ie,t as ae}from"./dialog-Ba9N5nEw.js";import{n as c}from"./dist-CJhtNlOm2.js";import{t as l}from"./desktop-bridge-types-oYPdTDmz.js";import{n as u,t as oe}from"./git-branch-3CSRgL0o.js";import{t as d}from"./spinner-t7GahFcQ.js";import{n as se,t as f}from"./miss-dialog-store-DVpIaq34.js";import{r as p,t as m}from"./auth-prompt-store-vAFATIFt.js";import{a as h,n as g}from"./receive-store-Rla0xjPc.js";import{t as ce}from"./share-metadata-rows-JAHDqWDY.js";var _=e(n(),1),le=a();function ue(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 de(e){return e.detached?e.currentHeadSha:e.currentBranch??`HEAD`}function v(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`};default:{let t=e.reason;throw Error(`Unhandled CheckoutFailureReason: ${String(t)}`)}}}var fe={phase:`loading`};function pe(e,t){return e.phase===`loading`?t===null?{phase:`error`}:{phase:`ready`,info:t}:e}function me(e,t){return e.phase!==`ready`&&e.phase!==`verdict`?e:{phase:`switching`,info:e.info,pendingDoc:t}}function he(e){return e.phase===`ready`?{phase:`creating-worktree`,info:e.info}:e}function ge(e){return ue(e).kind===`B`&&e.shareTargetOnOriginBranch===!1}function _e(e){return e.phase===`ready`?{phase:`verdict-pending`,info:e.info}:e}function ve(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 ye(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=v(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`}}}:{state:{phase:`ready`,info:e.info},sideEffect:{kind:`toast`,reason:n.reason}}}function be(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`}}:{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 y=t();function xe(e){return l(e.repositoryTarget)}function Se(e,t=l(e.target)){let n=e.contentRootDepth===null?t:[...xe(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 Ce(e){return e!==null&&e.kind===`project-branch-switch`}function b(e){let t=(0,le.c)(217),{bridge:n,store:a}=e,m=a===void 0?g:a,{_:v}=i(),b=(0,_.useSyncExternalStore)(m.subscribe,m.getSnapshot,je),[x,S]=(0,_.useState)(fe),Me=(0,_.useRef)(!1),Ne=(0,_.useRef)(!1),Pe=(0,_.useRef)(!1),Fe=(0,_.useRef)(null),Ie;t[0]===b?Ie=t[1]:(Ie=Ce(b)?b:null,t[0]=b,t[1]=Ie);let C=Ie,Le;t[2]!==v||t[3]!==C?.share.target.kind?(Le=C?.share.target.kind===`folder`?v({id:`ugoTXs`}):v({id:`XH30C4`}),t[2]=v,t[3]=C?.share.target.kind,t[4]=Le):Le=t[4];let w=Le,Re;t[5]===C?Re=t[6]:(Re=()=>{S(fe),Me.current=!1,Ne.current=!1,Pe.current=!1,Fe.current=C},t[5]=C,t[6]=Re);let ze;t[7]===b?ze=t[8]:(ze=[b],t[7]=b,t[8]=ze),(0,_.useEffect)(Re,ze);let Be;t[9]!==C||t[10]!==n?(Be=()=>{if(!C||Me.current)return;Me.current=!0;let e=!1;return n.project.fetchBranchInfo({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.repositoryTarget.kind,path:xe(C.share)}).then(t=>{e||S(e=>pe(e,t))}).catch(t=>{e||(console.warn(`[receive] branch-info-fetch-failed`,t instanceof Error?t.message:t),S(Ae))}),()=>{e=!0}},t[9]=C,t[10]=n,t[11]=Be):Be=t[11];let Ve;t[12]===C?Ve=t[13]:(Ve=[C],t[12]=C,t[13]=Ve),(0,_.useEffect)(Be,Ve);let He;t[14]!==C||t[15]!==x.info||t[16]!==x.phase||t[17]!==n?(He=()=>{if(!C||x.phase!==`ready`||Pe.current||!ge(x.info))return;Pe.current=!0,S(_e);let e=C;n.project.fetchTargetStatus({projectPath:C.projectPath,branch:C.share.branch,kind:C.share.target.kind,path:xe(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth}}).then(t=>{Fe.current===e&&S(e=>ve(e,t))}).catch(t=>{Fe.current===e&&(console.warn(`[receive] target-status-fetch-failed`,t instanceof Error?t.message:t),S(ke))})},t[14]=C,t[15]=x.info,t[16]=x.phase,t[17]=n,t[18]=He):He=t[18];let Ue;t[19]!==C||t[20]!==x.phase?(Ue=[x.phase,C],t[19]=C,t[20]=x.phase,t[21]=Ue):Ue=t[21],(0,_.useEffect)(He,Ue);let We;t[22]!==C||t[23]!==x.phase||t[24]!==x.resolution||t[25]!==m?(We=()=>{if(x.phase!==`verdict`)return;let{kind:e}=x.resolution;e!==`deleted`&&e!==`never-on-branch`||C&&(f.arm({kind:C.share.target.kind,path:l(C.share.target),repositoryPath:xe(C.share),...C.share.contentRootDepth===null?{}:{contentRootDepth:C.share.contentRootDepth},branch:C.share.branch}),m.dismiss())},t[22]=C,t[23]=x.phase,t[24]=x.resolution,t[25]=m,t[26]=We):We=t[26];let Ge;t[27]!==C||t[28]!==x||t[29]!==m?(Ge=[x,C,m],t[27]=C,t[28]=x,t[29]=m,t[30]=Ge):Ge=t[30],(0,_.useEffect)(We,Ge);let Ke;t[31]!==x.phase||t[32]!==x.resolution?(Ke=()=>{x.phase===`verdict`&&console.log(h({verdict_cell:x.resolution.kind}))},t[31]=x.phase,t[32]=x.resolution,t[33]=Ke):Ke=t[33];let qe;t[34]===x?qe=t[35]:(qe=[x],t[34]=x,t[35]=qe),(0,_.useEffect)(Ke,qe);let Je;t[36]!==v||t[37]!==C||t[38]!==x.pendingDoc||t[39]!==x.phase||t[40]!==n||t[41]!==m||t[42]!==w?(Je=()=>{if(x.phase!==`awaiting-cc1-recycle`||!C)return;let e=C.share.branch,t=x.pendingDoc;if(!e){m.dismiss();return}if(Ne.current)return;Ne.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:Se(C.share,t),pendingBranch:e}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=switch`,e instanceof Error?e.message:e),c.error(v({id:`gQV-9w`,values:{targetNoun:w}}))}),m.dismiss();return}console.log(h({branch_dialog_action:`branch-switch-timeout`,branch:e})),c.error(v({id:`LBwUR6`,values:{targetNoun:w}})),m.dismiss()}}).catch(e=>{r||(console.warn(`[receive] awaitBranchSwitched rejected`,e instanceof Error?e.message:e),c.error(v({id:`Jw6EC4`,values:{targetNoun:w}})),m.dismiss())}),()=>{r=!0}},t[36]=v,t[37]=C,t[38]=x.pendingDoc,t[39]=x.phase,t[40]=n,t[41]=m,t[42]=w,t[43]=Je):Je=t[43];let Ye;if(t[44]!==C||t[45]!==x.phase?(Ye=[x.phase,C],t[44]=C,t[45]=x.phase,t[46]=Ye):Ye=t[46],(0,_.useEffect)(Je,Ye),!C)return null;let{share:T,projectPath:E,currentBranch:Xe}=C,D=T.branch,Ze;t[47]!==v||t[48]!==n.project||t[49]!==E||t[50]!==D||t[51]!==m?(Ze=function(e,t,r){console.log(h({branch_dialog_action:`switch`,branch_action:`switch`,branch:D,verdict_cell:r})),S(t=>me(t,e)),n.project.runCheckout(t?{projectPath:E,branch:D,fastForward:!0}:{projectPath:E,branch:D}).then(e=>{let t=null,n=!1;S(r=>{let{state:i,sideEffect:a}=ye(r,e);return a&&(t=a.reason,n=i.phase===`dismissed`),i}),t===`branch-not-found`?c.error(v({id:`NJyQi_`,values:{shareBranch:D}})):t===`fetch-failed`?c.error(v({id:`bWLmRK`})):(t===`checkout-failed`||t===`proxy-null`)&&c.error(v({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(Oe),c.error(v({id:`c863eW`,values:{shareBranch:D}}))})},t[47]=v,t[48]=n.project,t[49]=E,t[50]=D,t[51]=m,t[52]=Ze):Ze=t[52];let O=Ze,Qe;t[53]!==x.info||t[54]!==x.phase||t[55]!==O||t[56]!==T.target?(Qe=function(){x.phase===`ready`&&ue(x.info).switchEnabled&&O(l(T.target),!1)},t[53]=x.info,t[54]=x.phase,t[55]=O,t[56]=T.target,t[57]=Qe):Qe=t[57];let $e=Qe,et;t[58]!==x.phase||t[59]!==x.resolution||t[60]!==O||t[61]!==T.target?(et=function(){x.phase===`verdict`&&O(l(T.target),!0,x.resolution.kind)},t[58]=x.phase,t[59]=x.resolution,t[60]=O,t[61]=T.target,t[62]=et):et=t[62];let tt=et,nt;t[63]!==x.phase||t[64]!==x.resolution||t[65]!==O?(nt=function(){x.phase===`verdict`&&x.resolution.kind===`renamed`&&O(x.resolution.renamedTo,!0,x.resolution.kind)},t[63]=x.phase,t[64]=x.resolution,t[65]=O,t[66]=nt):nt=t[66];let rt=nt,it;t[67]!==x.phase||t[68]!==x.resolution||t[69]!==O||t[70]!==T.target?(it=function(){x.phase===`verdict`&&O(l(T.target),!1,x.resolution.kind)},t[67]=x.phase,t[68]=x.resolution,t[69]=O,t[70]=T.target,t[71]=it):it=t[71];let at=it,ot;t[72]!==v||t[73]!==n.project||t[74]!==E||t[75]!==T||t[76]!==D||t[77]!==m||t[78]!==w?(ot=function(){console.log(h({branch_dialog_action:`open-current`,branch:D})),n.project.open({path:E,target:`new-window`,entryPoint:`share-receive`,pendingDeepLinkTarget:Se(T)}).catch(e=>{console.warn(`[receive] warm-focus-dispatch-failed branch_action=open-current`,e instanceof Error?e.message:e),c.error(v({id:`b5aNbi`,values:{targetNoun:w}}))}),m.dismiss()},t[72]=v,t[73]=n.project,t[74]=E,t[75]=T,t[76]=D,t[77]=m,t[78]=w,t[79]=ot):ot=t[79];let st=ot,ct;t[80]!==v||t[81]!==D?(ct=function(e,t){let{helper:n,authFailed:r,notFoundAsIdentity:i}=t===void 0?{}:t;if(e===`fetch-failed`&&i){c.error(v({id:`jRsjlF`}));return}if(e===`fetch-failed`&&r){c.error(v({id:`gfb-CM`}),{action:{label:v({id:`5lWFkC`}),onClick:De}});return}switch(e){case`helper-not-found`:{let e=n??v({id:`cHhH3i`});c.error(v({id:`Z7x_Zh`,values:{tool:e}}));return}case`branch-not-found`:c.error(v({id:`NJyQi_`,values:{shareBranch:D}}));return;case`fetch-failed`:c.error(v({id:`bWLmRK`}));return;case`already-checked-out`:c.error(v({id:`ljHjfg`}));return;case`branch-exists`:c.error(v({id:`h3QZcB`,values:{shareBranch:D}}));return;case`path-exists`:c.error(v({id:`cN1Gcp`,values:{shareBranch:D}}));return;case`no-git`:c.error(v({id:`CFnavk`}));return;case`empty-repo`:c.error(v({id:`5IgYAM`}));return;case`invalid-branch`:c.error(v({id:`JfPuv7`,values:{shareBranch:D}}));return;case`proxy-null`:case`error`:c.error(v({id:`e8zYa8`,values:{shareBranch:D}}));return;default:throw Error(`Unhandled worktree failure reason: ${String(e)}`)}},t[80]=v,t[81]=D,t[82]=ct):ct=t[82];let lt=ct,ut;t[83]!==v||t[84]!==n.project||t[85]!==T||t[86]!==D||t[87]!==lt||t[88]!==m?(ut=function(e){let t=null,r,i,a,o=!1,ee=null;if(S(n=>{let{state:te,sideEffect:s}=be(n,e);return s&&(t=s.reason,r=s.helper,i=s.authFailed,a=s.notFoundAsIdentity,o=te.phase===`dismissed`),te.phase===`opening-worktree`&&(ee=te.path),te}),t!==null&&(console.log(h({branch_dialog_action:`open-worktree-failed:${t}`,branch:D})),lt(t,{helper:r,authFailed:i,notFoundAsIdentity:a})),ee!==null){p();let e=ee;n.project.open({path:e,target:`new-window`,entryPoint:`worktree`,pendingDeepLinkTarget:Se(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] worktree-open-failed branch_dialog_action=open-worktree`,t instanceof Error?t.message:t),c.error(v({id:`LdABLa`,values:{target:e}}))}),m.dismiss()}o&&m.dismiss()},t[83]=v,t[84]=n.project,t[85]=T,t[86]=D,t[87]=lt,t[88]=m,t[89]=ut):ut=t[89];let dt=ut,ft;t[90]!==dt||t[91]!==x.phase||t[92]!==n.worktree||t[93]!==D?(ft=function(){x.phase===`ready`&&(console.log(h({branch_dialog_action:`open-worktree`,branch:D})),S(he),n.worktree.checkout({branch:D}).then(e=>{dt(e)}).catch(e=>{console.warn(`[receive] worktree-checkout rejected branch_dialog_action=open-worktree`,e instanceof Error?e.message:e),dt(null)}))},t[90]=dt,t[91]=x.phase,t[92]=n.worktree,t[93]=D,t[94]=ft):ft=t[94];let pt=ft,mt;t[95]!==v||t[96]!==x.otherWorktreePath||t[97]!==x.phase||t[98]!==n.project||t[99]!==T||t[100]!==D||t[101]!==m?(mt=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:Se(T),pendingBranch:D}).catch(t=>{console.warn(`[receive] pivot-open-failed branch_action=pivot-to-other-worktree`,t instanceof Error?t.message:t),c.error(v({id:`LdABLa`,values:{target:e}}))}),m.dismiss()},t[95]=v,t[96]=x.otherWorktreePath,t[97]=x.phase,t[98]=n.project,t[99]=T,t[100]=D,t[101]=m,t[102]=mt):mt=t[102];let ht=mt,gt;t[103]!==x.phase||t[104]!==x.resolution||t[105]!==m?(gt=function(){console.log(h({branch_dialog_action:`cancel`,verdict_cell:x.phase===`verdict`?x.resolution.kind:void 0})),m.dismiss()},t[103]=x.phase,t[104]=x.resolution,t[105]=m,t[106]=gt):gt=t[106];let k=gt,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J;if(t[107]!==v||t[108]!==x.info||t[109]!==x.otherWorktreePath||t[110]!==x.phase||t[111]!==x.resolution||t[112]!==k||t[113]!==Xe||t[114]!==T.branch||t[115]!==T.owner||t[116]!==T.repo||t[117]!==T.target||t[118]!==D||t[119]!==w){q=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?ue(x.info):null;let e;t[139]!==x.info||t[140]!==x.phase||t[141]!==Xe?(e=x.phase===`ready`||x.phase===`switching`||x.phase===`creating-worktree`?de(x.info):Xe??`HEAD`,t[139]=x.info,t[140]=x.phase,t[141]=Xe,t[142]=e):e=t[142];let n=e;I=x.phase===`switching`||x.phase===`awaiting-cc1-recycle`,N=x.phase===`creating-worktree`;let i;t[143]===v?i=t[144]:(i=v({id:`OuY8t9`}),t[143]=v,t[144]=i),P=i;let a;t[145]===v?a=t[146]:(a=v({id:`XZkdtg`}),t[145]=v,t[146]=a),F=a;let o;t[147]===v?o=t[148]:(o=v({id:`VTulZj`}),t[147]=v,t[148]=o),J=o;let re=x.phase===`loading`,c=x.phase===`error`;M=ae,G=!0,t[149]===k?K=t[150]:(K=e=>{e||k()},t[149]=k,t[150]=K),j=s,B=`sm:max-w-xl`,V=`share-branch-switch-dialog`,H=Ee,U=Te;let u;t[151]===w?u=t[152]:(u=(0,y.jsx)(te,{children:(0,y.jsx)(r,{id:`RY6Bq1`,values:{targetNoun:w}})}),t[151]=w,t[152]=u);let oe=T.owner,se=T.repo,f;t[153]===T.target?f=t[154]:(f=l(T.target),t[153]=T.target,t[154]=f);let p;t[155]!==T.owner||t[156]!==T.repo||t[157]!==f?(p=(0,y.jsx)(ee,{className:`sr-only`,children:(0,y.jsx)(r,{id:`f8jU-L`,values:{0:oe,1:se,2:f}})}),t[155]=T.owner,t[156]=T.repo,t[157]=f,t[158]=p):p=t[158],t[159]!==u||t[160]!==p?(W=(0,y.jsxs)(ie,{children:[u,p]}),t[159]=u,t[160]=p,t[161]=W):W=t[161],A=ne;let m=T.owner,h=T.repo,g;t[162]===T.target?g=t[163]:(g=l(T.target),t[162]=T.target,t[163]=g),t[164]!==T.branch||t[165]!==T.owner||t[166]!==T.repo||t[167]!==T.target.kind||t[168]!==g?(L=(0,y.jsx)(`div`,{className:`mb-4`,children:(0,y.jsx)(ce,{owner:m,repo:h,path:g,kind:T.target.kind,branch:T.branch,testId:`share-branch-switch-metadata`,branchTestId:`share-branch-switch-metadata-branch`})}),t[164]=T.branch,t[165]=T.owner,t[166]=T.repo,t[167]=T.target.kind,t[168]=g,t[169]=L):L=t[169],R=x.phase===`branch-in-other-worktree`?(0,y.jsxs)(`div`,{className:`text-sm text-muted-foreground`,"data-testid":`share-branch-switch-in-other-worktree`,children:[(0,y.jsx)(`p`,{className:`leading-6`,children:(0,y.jsx)(r,{id:`yjExfe`,values:{shareBranch:D},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),(0,y.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,y.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,y.jsx)(d,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,y.jsx)(r,{id:`c8jBgX`})]}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-on-origin`,children:(0,y.jsx)(r,{id:`Uay5NL`,values:{targetNoun:w,shareBranch:D},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`renamed`?(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-renamed`,children:(0,y.jsx)(r,{id:`P0HC30`,values:{0:x.resolution.renamedTo,targetNoun:w},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):x.resolution.kind===`diverged`?(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,"data-testid":`share-branch-switch-verdict-diverged`,children:(0,y.jsx)(r,{id:`kLv8d3`,values:{shareBranch:D,targetNoun:w},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,y.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,y.jsx)(d,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,y.jsx)(r,{id:`c8jBgX`})]}):re?(0,y.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,y.jsx)(d,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,y.jsx)(r,{id:`jerqF0`})]}):c?(0,y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,y.jsx)(r,{id:`w4hMYl`})}):q?.kind===`D`?(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,y.jsx)(r,{id:`DTI-fp`,values:{targetNoun:w,shareBranch:D},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):q?.kind===`B`?(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,y.jsx)(r,{id:`sZ2IOu`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}):(0,y.jsx)(`p`,{className:`text-sm leading-6 text-muted-foreground`,children:(0,y.jsx)(r,{id:`_902BE`,values:{targetNoun:w,shareBranch:D,currentLabel:n},components:{0:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`}),1:(0,y.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}})}),z=q&&!q.switchEnabled&&q.conflictingFiles.length>0?(0,y.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,y.jsx)(`p`,{className:`font-medium text-foreground/90`,children:(0,y.jsx)(r,{id:`n2lRue`})}),(0,y.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(we)})]}):null,t[107]=v,t[108]=x.info,t[109]=x.otherWorktreePath,t[110]=x.phase,t[111]=x.resolution,t[112]=k,t[113]=Xe,t[114]=T.branch,t[115]=T.owner,t[116]=T.repo,t[117]=T.target,t[118]=D,t[119]=w,t[120]=A,t[121]=j,t[122]=M,t[123]=N,t[124]=P,t[125]=F,t[126]=I,t[127]=L,t[128]=R,t[129]=z,t[130]=B,t[131]=V,t[132]=H,t[133]=U,t[134]=W,t[135]=G,t[136]=K,t[137]=q,t[138]=J}else A=t[120],j=t[121],M=t[122],N=t[123],P=t[124],F=t[125],I=t[126],L=t[127],R=t[128],z=t[129],B=t[130],V=t[131],H=t[132],U=t[133],W=t[134],G=t[135],K=t[136],q=t[137],J=t[138];let Y;t[170]===I?Y=t[171]:(Y=I?(0,y.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,y.jsx)(d,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,y.jsx)(r,{id:`CU3AiE`})]}):null,t[170]=I,t[171]=Y);let X;t[172]===N?X=t[173]:(X=N?(0,y.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,y.jsx)(d,{className:`h-4 w-4`,"aria-hidden":`true`}),(0,y.jsx)(r,{id:`PZtgO0`})]}):null,t[172]=N,t[173]=X);let Z;t[174]!==A||t[175]!==L||t[176]!==R||t[177]!==z||t[178]!==Y||t[179]!==X?(Z=(0,y.jsxs)(A,{children:[L,R,z,Y,X]}),t[174]=A,t[175]=L,t[176]=R,t[177]=z,t[178]=Y,t[179]=X,t[180]=Z):Z=t[180];let _t;t[181]===Symbol.for(`react.memo_cache_sentinel`)?(_t=(0,y.jsx)(r,{id:`dEgA5A`}),t[181]=_t):_t=t[181];let Q;t[182]===k?Q=t[183]:(Q=(0,y.jsx)(o,{variant:`ghost`,className:`font-mono uppercase`,onClick:k,"data-testid":`share-branch-switch-cancel`,children:_t}),t[182]=k,t[183]=Q);let vt;t[184]!==x.phase||t[185]!==x.resolution||t[186]!==N||t[187]!==st||t[188]!==rt||t[189]!==pt||t[190]!==ht||t[191]!==at||t[192]!==$e||t[193]!==tt||t[194]!==P||t[195]!==F||t[196]!==I||t[197]!==q||t[198]!==J?(vt=x.phase===`branch-in-other-worktree`?(0,y.jsx)(o,{onClick:ht,"data-testid":`share-branch-switch-in-other-worktree-pivot`,children:(0,y.jsx)(r,{id:`hyCxJY`})}):x.phase===`verdict`?x.resolution.kind===`on-origin`?(0,y.jsxs)(o,{onClick:tt,"data-testid":`share-branch-switch-verdict-switch-update`,children:[(0,y.jsx)(oe,{className:`size-3.5`,"aria-hidden":!0}),(0,y.jsx)(r,{id:`uA_jXp`})]}):x.resolution.kind===`renamed`?(0,y.jsxs)(o,{onClick:rt,"data-testid":`share-branch-switch-verdict-open-renamed`,children:[(0,y.jsx)(se,{className:`size-3.5`,"aria-hidden":!0}),(0,y.jsx)(r,{id:`AItsE5`})]}):x.resolution.kind===`diverged`?(0,y.jsxs)(o,{onClick:at,"data-testid":`share-branch-switch-verdict-plain-switch`,children:[(0,y.jsx)(oe,{className:`size-3.5`,"aria-hidden":!0}),F]}):null:(0,y.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,y.jsxs)(o,{variant:`outline`,className:`font-mono uppercase`,onClick:st,disabled:I||N,"data-testid":`share-branch-switch-open-current`,children:[(0,y.jsx)(se,{className:`size-3.5`,"aria-hidden":!0}),P]}):null,(0,y.jsx)(o,{variant:`outline`,onClick:$e,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,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d,{className:`size-3.5`,"aria-hidden":`true`}),F]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(oe,{className:`size-3.5`,"aria-hidden":!0}),F]})}),(0,y.jsx)(o,{onClick:pt,disabled:!q||I||N,"data-testid":`share-branch-switch-worktree`,children:N?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d,{className:`size-3.5`,"aria-hidden":`true`}),J]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u,{className:`size-3.5`,"aria-hidden":!0}),J]})})]}),t[184]=x.phase,t[185]=x.resolution,t[186]=N,t[187]=st,t[188]=rt,t[189]=pt,t[190]=ht,t[191]=at,t[192]=$e,t[193]=tt,t[194]=P,t[195]=F,t[196]=I,t[197]=q,t[198]=J,t[199]=vt):vt=t[199];let yt;t[200]!==Q||t[201]!==vt?(yt=(0,y.jsxs)(re,{className:`sm:justify-between`,children:[Q,vt]}),t[200]=Q,t[201]=vt,t[202]=yt):yt=t[202];let $;t[203]!==j||t[204]!==B||t[205]!==V||t[206]!==H||t[207]!==U||t[208]!==W||t[209]!==Z||t[210]!==yt?($=(0,y.jsxs)(j,{className:B,"data-testid":V,onInteractOutside:H,onPointerDownOutside:U,children:[W,Z,yt]}),t[203]=j,t[204]=B,t[205]=V,t[206]=H,t[207]=U,t[208]=W,t[209]=Z,t[210]=yt,t[211]=$):$=t[211];let bt;return t[212]!==M||t[213]!==G||t[214]!==K||t[215]!==$?(bt=(0,y.jsx)(M,{open:G,onOpenChange:K,children:$}),t[212]=M,t[213]=G,t[214]=K,t[215]=$,t[216]=bt):bt=t[216],bt}function we(e){return(0,y.jsx)(`li`,{children:(0,y.jsx)(`code`,{className:`text-foreground/80`,children:e})},e)}function Te(e){e.preventDefault()}function Ee(e){e.preventDefault()}function De(){return m.request()}function Oe(e){return ye(e,null).state}function ke(e){return ve(e,null)}function Ae(e){return pe(e,null)}function je(){return null}export{b as ShareBranchSwitchDialog};
|
|
@@ -1 +0,0 @@
|
|
|
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-DttaCTqz.js";import{dt as c}from"./dist-C_QZEaeX.js";import{t as l}from"./triangle-alert-D0n54WVY.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-amber-600 dark:text-amber-500`: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,2 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{er as n}from"./DocumentContext-BLYhIJKb.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"./utils-CPqDy6Hr.js";import{r as c}from"./clipboard-adapter-815RzzoI.js";import{t as l}from"./button-Cym3gapE.js";import{i as u,n as d,t as f}from"./tooltip-DttaCTqz.js";import{a as p,c as m,i as h,l as g,o as _,r as v,s as y}from"./alert-dialog-BV3f4Vr2.js";import{a as b,c as x,d as S,f as C,l as w,p as T,r as E,s as D,u as O}from"./terminal-cli-display-CrkxgiPR.js";import{a as k,d as A,f as j,i as M,n as N,o as P,p as F,u as I}from"./dropdown-menu-CRvS0_4-.js";import{f as L}from"./RegisteredAgentIcon-C5l0ngck.js";import{Jt as R,Xt as z,po as B,ri as ee}from"./dist-C_QZEaeX.js";import{n as V}from"./dist-CJhtNlOm2.js";import{c as te}from"./documents-events-CwqQxQT5.js";import{t as H}from"./createLucideIcon-BulbvLvN.js";import{c as U}from"./use-open-skill-CoAITmJi.js";import{t as ne}from"./spinner-t7GahFcQ.js";import{N as W,S as re,j as G,x as K}from"./skills-api-Du0yE_Ea.js";import{i as ie,l as ae,n as oe,r as q}from"./skill-scope-C2Q18Fyo.js";import{t as J}from"./use-skills-BkWQHhha.js";var Y=t(),X=e(r(),1),Z=o(),se=3100,ce=3;function le(e,t,n){let r=n?.windowMs??600,i=n?.maxLevel??ce;if(e===0||t>=r)return 1;let a=e+1;return a>i?i:a}var ue={0:{count:0,startRadius:0,baseDistance:0,distanceVariance:0,sizeMin:0,sizeMax:0,maxDelay:0,durationMin:0,durationMax:0},1:{count:0,startRadius:0,baseDistance:0,distanceVariance:0,sizeMin:0,sizeMax:0,maxDelay:0,durationMin:0,durationMax:0},2:{count:0,startRadius:0,baseDistance:0,distanceVariance:0,sizeMin:0,sizeMax:0,maxDelay:0,durationMin:0,durationMax:0},3:{count:16,startRadius:11,baseDistance:7,distanceVariance:3,sizeMin:.45,sizeMax:1.2,maxDelay:500,durationMin:1100,durationMax:2400}},de=[`var(--color-azure-blue)`,`var(--color-sky-blue)`,`var(--color-violet-300)`,`var(--color-orange-light)`,`var(--color-crystal-blue)`,`var(--color-white-cream)`];function fe(e,t={}){let n=t.rng??Math.random,r=t.colors??de,i=ue[e];if(i.count===0||r.length===0)return[];let a=[],o=Math.PI*2/i.count;for(let e=0;e<i.count;e++){let t=e*o+(n()-.5)*o*.7,s=i.baseDistance+(n()-.5)*2*i.distanceVariance,c=i.sizeMin+n()*(i.sizeMax-i.sizeMin),l=n()*i.maxDelay,u=i.durationMin+n()*(i.durationMax-i.durationMin),d=Math.floor(n()*r.length),f=Math.cos(t),p=Math.sin(t);a.push({id:e,dx:f*s,dy:p*s,originDx:f*i.startRadius,originDy:p*i.startRadius,size:c,color:r[d]??`currentColor`,delay:l,duration:u})}return a}var pe=1.8,me=90,he=16,ge=380,_e=.025,ve=.1,ye=.18,be=400,xe=9.2736,Se=18.1799,Ce=14.5244,we={1:{halfWidth:1.5,apexLift:2.2},2:{halfWidth:1.4,apexLift:2.6},3:{halfWidth:1.25,apexLift:3}};function Te(e,t){let{halfWidth:n,apexLift:r}=we[t];return`M${e-n} ${Ce+.3} Q${e} ${Ce-r}, ${e+n} ${Ce+.3}`}function Ee(e){let t=1.5,n=.3;return`M${e-t} ${Ce-n} Q${e} ${Ce+1.4}, ${e+t} ${Ce-n}`}var De=15,Oe=15;function ke(e){return{fill:e.color,"--fx-tx":`${e.dx}px`,"--fx-ty":`${e.dy}px`,"--fx-delay":`${e.delay}ms`,"--fx-duration":`${e.duration}ms`}}function Ae(e){let t=(0,Z.c)(73),{size:n,className:r,style:i,trackMouse:a,variant:o,celebrateSignal:l,onRage:u}=e,d=n===void 0?48:n,f=a===void 0?!0:a,p=o===void 0?`default`:o,m=l===void 0?0:l,h=(0,X.useRef)(null),g=(0,X.useRef)(null),_=(0,X.useRef)(null),v;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(v={x:0,y:0},t[0]=v):v=t[0];let y=(0,X.useRef)(v),[b,x]=(0,X.useState)(0),[S,C]=(0,X.useState)(0),[w,T]=(0,X.useState)(0),E;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(E=[],t[1]=E):E=t[1];let[D,O]=(0,X.useState)(E),k=(0,X.useRef)(0),A=(0,X.useRef)(0),j=(0,X.useRef)(void 0),M=p===`sleeping`,N;t[2]!==b||t[3]!==M||t[4]!==u?(N=function(){if(M)return;let e=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),t=A.current===0?1/0:e-A.current;A.current=e;let n=le(b,t),r=b===3&&e-k.current<3100,i=n===3&&r;n===3&&u?.(),x(n),C(Ie),i||(O(fe(n)),n===3&&(k.current=e,T(Fe))),clearTimeout(j.current),j.current=setTimeout(()=>{x(0),O([])},se)},t[2]=b,t[3]=M,t[4]=u,t[5]=N):N=t[5];let P=N,F,I;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(F=()=>()=>clearTimeout(j.current),I=[],t[6]=F,t[7]=I):(F=t[6],I=t[7]),(0,X.useEffect)(F,I);let L,R;t[8]!==m||t[9]!==M?(L=()=>{m===0||M||(x(3),C(Pe),O(fe(3)),k.current=typeof performance<`u`&&typeof performance.now==`function`?performance.now():Date.now(),T(Ne),clearTimeout(j.current),j.current=setTimeout(()=>{x(0),O([])},se))},R=[m,M],t[8]=m,t[9]=M,t[10]=L,t[11]=R):(L=t[10],R=t[11]),(0,X.useEffect)(L,R);let z,B;t[12]!==M||t[13]!==f?(z=()=>{if(!f||M||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;let e=0,t=0,n=!1,r=0,i=0,a=0,o=0,s=0,c=function(){s===0&&(s=requestAnimationFrame(u))},l=function(r){e=r.clientX,t=r.clientY,n=!0,c()};function u(){s=0;let l=g.current,u=h.current;if(!l||!u){c();return}let d=n;n=!1;let f=l.getBoundingClientRect(),p=f.left+f.width/2,m=f.top+f.height*.48,v=e-p,b=t-m,x=Math.hypot(v,b),S=Math.max(-1,Math.min(1,v/ge)),C=-Math.max(-1,Math.min(1,b/ge))*he,w=S*he,T=0,E=0;if(x>=1){let e=Math.min(x/me,1)*pe;T=v/x*e,E=b/x*e}let D=Math.abs(C-r)<.01&&Math.abs(w-i)<.01&&Math.abs(T-a)<.01&&Math.abs(E-o)<.01;if(!d&&D)return;c(),r+=(C-r)*ve,i+=(w-i)*ve,u.style.transform=`perspective(${be}px) rotateX(${r.toFixed(3)}deg) rotateY(${i.toFixed(3)}deg)`,a+=(T-a)*ye,o+=(E-o)*ye;let O=i*_e,k=-r*_e,A=a+O,j=o+k;y.current.x=A,y.current.y=j,_.current?.setAttribute(`transform`,`translate(${A.toFixed(3)} ${j.toFixed(3)})`)}return document.addEventListener(`mousemove`,l,{passive:!0}),c(),()=>{document.removeEventListener(`mousemove`,l),s!==0&&cancelAnimationFrame(s),s=0,h.current&&(h.current.style.transform=``),y.current={x:0,y:0},_.current?.removeAttribute(`transform`)}},B=[f,M],t[12]=M,t[13]=f,t[14]=z,t[15]=B):(z=t[14],B=t[15]),(0,X.useEffect)(z,B);let ee;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(ee=()=>{let e=_.current;if(!e)return;let{x:t,y:n}=y.current;e.setAttribute(`transform`,`translate(${t.toFixed(3)} ${n.toFixed(3)})`)},t[16]=ee):ee=t[16],(0,X.useLayoutEffect)(ee);let V=b>0,te=V?b:1,H=V?`ok-blob-clicked-${b}`:null,U;t[17]===r?U=t[18]:(U=s(`ok-blob-3d-wrapper`,r),t[17]=r,t[18]=U);let ne=M?`cursor-default`:`cursor-pointer`,W=`body-${S}`,re=M&&`ok-blob-sleeping`,G;t[19]!==H||t[20]!==re?(G=s(`ok-blob-group`,re,H),t[19]=H,t[20]=re,t[21]=G):G=t[21];let K;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(K=(0,Y.jsx)(`path`,{d:c,className:`ok-blob-body`}),t[22]=K):K=t[22];let ie=(V||M)&&`ok-blob-eye-hidden`,ae;t[23]===ie?ae=t[24]:(ae=s(`ok-blob-eye`,ie),t[23]=ie,t[24]=ae);let oe;t[25]===ae?oe=t[26]:(oe=(0,Y.jsx)(`ellipse`,{cx:xe,cy:Ce,rx:1.2722,ry:1.9083,className:ae}),t[25]=ae,t[26]=oe);let q=(V||M)&&`ok-blob-eye-hidden`,J;t[27]===q?J=t[28]:(J=s(`ok-blob-eye ok-blob-eye-right`,q),t[27]=q,t[28]=J);let ce;t[29]===J?ce=t[30]:(ce=(0,Y.jsx)(`ellipse`,{cx:Se,cy:Ce,rx:1.2722,ry:1.9083,className:J}),t[29]=J,t[30]=ce);let ue;t[31]===te?ue=t[32]:(ue=Te(xe,te),t[31]=te,t[32]=ue);let de=(!V||M)&&`ok-blob-eye-hidden`,we;t[33]===de?we=t[34]:(we=s(`ok-blob-happy-eye`,de),t[33]=de,t[34]=we);let De;t[35]!==ue||t[36]!==we?(De=(0,Y.jsx)(`path`,{d:ue,strokeWidth:`1.2`,strokeLinecap:`round`,fill:`none`,className:we}),t[35]=ue,t[36]=we,t[37]=De):De=t[37];let Oe;t[38]===te?Oe=t[39]:(Oe=Te(Se,te),t[38]=te,t[39]=Oe);let ke=(!V||M)&&`ok-blob-eye-hidden`,Ae;t[40]===ke?Ae=t[41]:(Ae=s(`ok-blob-happy-eye`,ke),t[40]=ke,t[41]=Ae);let Le;t[42]!==Oe||t[43]!==Ae?(Le=(0,Y.jsx)(`path`,{d:Oe,strokeWidth:`1.2`,strokeLinecap:`round`,fill:`none`,className:Ae}),t[42]=Oe,t[43]=Ae,t[44]=Le):Le=t[44];let Re;t[45]===M?Re=t[46]:(Re=M?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`path`,{d:Ee(xe),strokeWidth:`1.2`,strokeLinecap:`round`,fill:`none`,className:`ok-blob-sleeping-eye`}),(0,Y.jsx)(`path`,{d:Ee(Se),strokeWidth:`1.2`,strokeLinecap:`round`,fill:`none`,className:`ok-blob-sleeping-eye`})]}):null,t[45]=M,t[46]=Re);let ze;t[47]!==oe||t[48]!==ce||t[49]!==De||t[50]!==Le||t[51]!==Re?(ze=(0,Y.jsxs)(`g`,{ref:_,children:[oe,ce,De,Le,Re]}),t[47]=oe,t[48]=ce,t[49]=De,t[50]=Le,t[51]=Re,t[52]=ze):ze=t[52];let Q;t[53]!==W||t[54]!==G||t[55]!==ze?(Q=(0,Y.jsxs)(`g`,{className:G,children:[K,ze]},W),t[53]=W,t[54]=G,t[55]=ze,t[56]=Q):Q=t[56];let Be;t[57]===M?Be=t[58]:(Be=M?(0,Y.jsxs)(`g`,{children:[(0,Y.jsx)(`text`,{x:21,y:7,className:`ok-blob-z ok-blob-z-1`,children:`z`}),(0,Y.jsx)(`text`,{x:26,y:2,className:`ok-blob-z ok-blob-z-2`,children:`z`})]}):null,t[57]=M,t[58]=Be);let Ve;t[59]!==w||t[60]!==D?(Ve=D.length>0&&(0,Y.jsx)(`g`,{"data-slot":`ok-blob-burst`,children:D.map(je)},`firework-${w}`),t[59]=w,t[60]=D,t[61]=Ve):Ve=t[61];let He;t[62]!==P||t[63]!==d||t[64]!==ne||t[65]!==Q||t[66]!==Be||t[67]!==Ve?(He=(0,Y.jsxs)(`svg`,{ref:g,width:d,height:d,viewBox:`0 0 30 30`,fill:`none`,overflow:`visible`,xmlns:`http://www.w3.org/2000/svg`,className:ne,"aria-hidden":`true`,onClick:P,onMouseDown:Me,children:[Q,Be,Ve]}),t[62]=P,t[63]=d,t[64]=ne,t[65]=Q,t[66]=Be,t[67]=Ve,t[68]=He):He=t[68];let Ue;return t[69]!==i||t[70]!==U||t[71]!==He?(Ue=(0,Y.jsx)(`span`,{ref:h,className:U,style:i,children:He}),t[69]=i,t[70]=U,t[71]=He,t[72]=Ue):Ue=t[72],Ue}function je(e){return(0,Y.jsx)(`circle`,{cx:De+e.originDx,cy:Oe+e.originDy,r:e.size,className:`ok-blob-firework`,style:ke(e)},e.id)}function Me(e){return e.preventDefault()}function Ne(e){return e+1}function Pe(e){return e+1}function Fe(e){return e+1}function Ie(e){return e+1}var Le=H(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),Re=H(`file-plus`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 15h6`,key:`cctwl0`}],[`path`,{d:`M12 18v-6`,key:`17g6i2`}]]),ze=H(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Q=[...new Set(L.flatMap(e=>e.schemes))];function Be(e,t){let n=t.now?.()??Date.now(),r={};for(let t of L){let i=t.schemes[0],a=i===void 0?void 0:e[i];if(!a){r[t.id]={installed:null};continue}r[t.id]={installed:a.installed,...a.displayName===void 0?{}:{displayName:a.displayName},lastChecked:n}}return r}function Ve(e){return Be({},e)}async function He(e){let t=e.schemes??Q,n=await Promise.all(t.map(async t=>{let n=t.replace(/:$/,``);try{return[t,await e.detectProtocol(n)]}catch{return[t,{installed:!1}]}}));return Object.fromEntries(n)}var Ue=Object.fromEntries(Q.map(e=>[e,{installed:!1}]));async function We(e){let t;try{t=await e.fetch(`/api/installed-agents`,{signal:e.signal,headers:{Accept:`application/json`}})}catch(e){if(e.name===`AbortError`)throw e;return Ue}if(!t.ok)return Ue;let n;try{n=await t.json()}catch{return Ue}if(typeof n!=`object`||!n||Array.isArray(n))return Ue;let r=n,i={};for(let e of Q)i[e]={installed:r[e.replace(/:$/,``)]===!0};return i}function Ge(e,t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n){let n=e[r],i=t[r];if(!n||!i||n.installed!==i.installed||n.displayName!==i.displayName)return!1}return!0}function Ke(e){let t=e.throttleMs??1e4,n=!1,r=null,i=null,a={},o=Ve({isElectronHost:e.isElectronHost(),now:e.now}),s=new Set,c=()=>{if(!n)for(let e of s)e(o)},l=()=>{o=Be(a,{isElectronHost:e.isElectronHost(),now:e.now})};return{probe:async()=>{if(n)return;if(i)return i;if(r!==null&&e.now()-r<t)return;let o=(async()=>{try{let t=await e.probe();if(n)return;let i=!Ge(a,t);a=t,i&&(l(),c()),r=e.now()}catch{}finally{i=null}})();return i=o,o},getTargetStates:()=>o,subscribe:e=>(s.add(e),()=>{s.delete(e)}),cancel:()=>{n=!0,s.clear()}}}function qe(e=typeof window<`u`?window:void 0){return e?.okDesktop!=null}function Je(){let e=typeof window<`u`?window.okDesktop:void 0;if(e){let t=t=>e.shell.detectProtocol(t);return{probe:()=>He({detectProtocol:t}),isElectronHost:()=>!0,now:Date.now}}let t=globalThis.fetch.bind(globalThis);return{probe:()=>We({fetch:t}),isElectronHost:()=>!1,now:Date.now}}function Ye(){let e=(0,Z.c)(5),[t,n]=(0,X.useState)(Xe),r=(0,X.useRef)(null),i,a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=()=>{let e=Ke(Je());r.current=e;let t=e.subscribe(n);e.probe();let i=()=>{e.probe()};return window.addEventListener(`focus`,i),()=>{window.removeEventListener(`focus`,i),t(),e.cancel(),r.current=null}},a=[],e[0]=i,e[1]=a):(i=e[0],a=e[1]),(0,X.useEffect)(i,a);let o;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>r.current?.probe()??Promise.resolve(),e[2]=o):o=e[2];let s;return e[3]===t?s=e[4]:(s={states:t,refresh:o},e[3]=t,e[4]=s),s}function Xe(){return Ve({isElectronHost:qe(),now:Date.now})}var Ze=(0,X.createContext)(null);function Qe(e){let t=(0,Z.c)(3),{value:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,Y.jsx)(Ze,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function $e(){return(0,X.use)(Ze)}function et(e){let t=(0,Z.c)(48),{itemName:n,isSubmitting:r,onDelete:o,customTitle:s,customDescription:c,customDetail:u,customConfirmLabel:d,customConfirmLabelBusy:f,children:b}=e,{_:x}=a(),S;t[0]!==x||t[1]!==n?(S=n??x({id:`L3CEC1`}),t[0]=x,t[1]=n,t[2]=S):S=t[2];let C=S,w;t[3]!==x||t[4]!==d?(w=d??x({id:`cnGeoo`}),t[3]=x,t[4]=d,t[5]=w):w=t[5];let T=w,E;t[6]!==x||t[7]!==d||t[8]!==f?(E=f??d??x({id:`s3caR3`}),t[6]=x,t[7]=d,t[8]=f,t[9]=E):E=t[9];let D=E,O;t[10]!==x||t[11]!==s||t[12]!==C?(O=s??x({id:`77SdEP`,values:{itemName:C}}),t[10]=x,t[11]=s,t[12]=C,t[13]=O):O=t[13];let k;t[14]===O?k=t[15]:(k=(0,Y.jsx)(g,{children:O}),t[14]=O,t[15]=k);let A;t[16]!==x||t[17]!==c||t[18]!==C?(A=c??x({id:`16D5Zj`,values:{itemName:C}}),t[16]=x,t[17]=c,t[18]=C,t[19]=A):A=t[19];let j;t[20]===A?j=t[21]:(j=(0,Y.jsx)(_,{className:`whitespace-pre-wrap`,children:A}),t[20]=A,t[21]=j);let M;t[22]===u?M=t[23]:(M=u?(0,Y.jsx)(`p`,{className:`text-muted-foreground text-sm`,"data-testid":`delete-confirmation-detail`,children:u}):null,t[22]=u,t[23]=M);let N;t[24]!==k||t[25]!==j||t[26]!==M?(N=(0,Y.jsxs)(m,{children:[k,j,M]}),t[24]=k,t[25]=j,t[26]=M,t[27]=N):N=t[27];let P;t[28]===b?P=t[29]:(P=b?(0,Y.jsx)(v,{children:b}):null,t[28]=b,t[29]=P);let F;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,Y.jsx)(i,{id:`dEgA5A`}),t[30]=F):F=t[30];let I;t[31]===r?I=t[32]:(I=(0,Y.jsx)(h,{disabled:r,children:F}),t[31]=r,t[32]=I);let L;t[33]!==T||t[34]!==D||t[35]!==r?(L=r?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ne,{"aria-hidden":`true`,className:`size-4`}),` `,D]}):T,t[33]=T,t[34]=D,t[35]=r,t[36]=L):L=t[36];let R;t[37]!==r||t[38]!==o||t[39]!==L?(R=(0,Y.jsx)(l,{variant:`destructive`,onClick:o,disabled:r,children:L}),t[37]=r,t[38]=o,t[39]=L,t[40]=R):R=t[40];let z;t[41]!==I||t[42]!==R?(z=(0,Y.jsxs)(y,{children:[I,R]}),t[41]=I,t[42]=R,t[43]=z):z=t[43];let B;return t[44]!==P||t[45]!==z||t[46]!==N?(B=(0,Y.jsxs)(p,{children:[N,P,z]}),t[44]=P,t[45]=z,t[46]=N,t[47]=B):B=t[47],B}function tt(e){return e===`agents`||e===`.agents`||e.startsWith(`.agents/`)?`.agents`:e.includes(`/`)?e:B[e]??e}function nt(e){return e===`claude`?`claude-code`:e}function rt(e){let t=(0,Z.c)(18),r,i;if(t[0]===e?(r=t[1],i=t[2]):({host:r,...i}=e,t[0]=e,t[1]=r,t[2]=i),r===`agents`){let e;return t[3]===i?e=t[4]:(e=(0,Y.jsx)(n,{...i}),t[3]=i,t[4]=e),e}if(r.includes(`/`)){if(r===`.agents`||r.startsWith(`.agents/`)){let e;return t[5]===i?e=t[6]:(e=(0,Y.jsx)(n,{...i}),t[5]=i,t[6]=e),e}if(r===`.ok`||r.startsWith(`.ok/`)){let e;if(t[7]!==i){let{className:n,...r}=i;e=r,t[7]=i,t[8]=e}else e=t[8];let n=e,r;return t[9]===n?r=t[10]:(r=(0,Y.jsx)(Ae,{size:14,...n}),t[9]=n,t[10]=r),r}let e;return t[11]===i?e=t[12]:(e=(0,Y.jsx)(U,{...i}),t[11]=i,t[12]=e),e}let a;t[13]===r?a=t[14]:(a=nt(r),t[13]=r,t[14]=a);let o;return t[15]!==i||t[16]!==a?(o=(0,Y.jsx)(E,{...i,id:a}),t[15]=i,t[16]=a,t[17]=o):o=t[17],o}function it(e){let t=(0,Z.c)(14),{hosts:n,className:r,iconClassName:i}=e,a,o,c;if(t[0]!==r||t[1]!==n||t[2]!==i){let e=n.slice(0,2),l=n.slice(2);t[6]===r?a=t[7]:(a=s(`flex items-center gap-1`,r),t[6]=r,t[7]=a);let p;t[8]===i?p=t[9]:(p=e=>(0,Y.jsxs)(f,{children:[(0,Y.jsx)(u,{asChild:!0,children:(0,Y.jsx)(`span`,{className:`flex shrink-0 items-center`,children:(0,Y.jsx)(rt,{host:e,className:s(`size-3.5 shrink-0`,i),"aria-label":tt(e)})})}),(0,Y.jsx)(d,{children:tt(e)})]},e),t[8]=i,t[9]=p),o=e.map(p),c=l.length>0?(0,Y.jsxs)(f,{children:[(0,Y.jsx)(u,{asChild:!0,children:(0,Y.jsxs)(`span`,{className:`ml-0.5 cursor-default`,children:[`+`,l.length]})}),(0,Y.jsx)(d,{children:l.map(tt).join(`, `)})]}):null,t[0]=r,t[1]=n,t[2]=i,t[3]=a,t[4]=o,t[5]=c}else a=t[3],o=t[4],c=t[5];let l;return t[10]!==a||t[11]!==o||t[12]!==c?(l=(0,Y.jsxs)(`span`,{className:a,children:[o,c]}),t[10]=a,t[11]=o,t[12]=c,t[13]=l):l=t[13],l}function at(e){let t=(0,Z.c)(6),{testId:n,title:r}=e,a;t[0]===r?a=t[1]:(a=r===void 0?{}:{title:r},t[0]=r,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsx)(i,{id:`YjiZAs`}),t[2]=o):o=t[2];let s;return t[3]!==a||t[4]!==n?(s=(0,Y.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-yellow-500/40 bg-yellow-500/10 px-1 text-[10px] text-yellow-600 uppercase tracking-wide`,"data-testid":n,...a,children:o}),t[3]=a,t[4]=n,t[5]=s):s=t[5],s}function ot(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(D,{...r}):(0,Y.jsx)(M,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function st(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(x,{...r}):(0,Y.jsx)(k,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ct(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(b,{...r}):(0,Y.jsx)(N,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function lt(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(w,{...r}):(0,Y.jsx)(P,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ut(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(O,{...r}):(0,Y.jsx)(I,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function dt(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(S,{...r}):(0,Y.jsx)(A,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ft(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(C,{...r}):(0,Y.jsx)(j,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function pt(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({menuKind:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=n===`context`?(0,Y.jsx)(T,{...r}):(0,Y.jsx)(F,{...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}var mt=Object.freeze({hosts:null,source:null}),ht=new Map,gt=new Map;function _t(e,t){return`${e}:${t}`}function vt(e){return ht.get(e)??mt}function yt(e,t){let n=gt.get(e)??new Set;return gt.set(e,n),n.add(t),()=>{n.delete(t),n.size===0&>.delete(e)}}function bt(e,t){let n=vt(e),r={...n,...t};if(!(r.hosts===n.hosts&&r.source===n.source)){r.hosts===null&&r.source===null?ht.delete(e):ht.set(e,r);for(let t of gt.get(e)??[])t()}}var xt=R.options,St=z.options,Ct=`.agents/`;function wt({skill:e,allSkills:t,hostSet:n,sourceHostOverlay:r,linkMode:i}){let a=t=>e?`${ae(t,e.scope)}/${e.name}`:null,o=e!==void 0&&((e.hosts??[]).includes(`agents`)||t?.some(e=>e.hosts.includes(`agents`)||e.path.startsWith(Ct))),s=e?.hostAliases??(e&&t!==null?Object.assign({},...t.filter(t=>t.scope===e.scope).map(e=>e.hostAliases??{})):{}),c=e?.installableEditors??(e&&t!==null?t.find(t=>t.scope===e.scope)?.installableEditors:void 0),l=c?new Set(c):null,u=e?.scope===`global`?St:xt,d=(o?[...u,`agents`]:u).filter(e=>!(e in s)).filter(e=>e===`agents`||l===null||l.has(e)||n.has(e)),f=new Set(d.map(e=>a(e))),p=e?.scope===`global`?`~/`:``,m=e?.path?.includes(`/`)?`${p}${e.path.replace(/\/SKILL\.mdx?$/i,``)}`:null,h=m!==null&&!f.has(m)?m:null,g=h===null?r??e?.hosts?.[0]:void 0,_=new Set(e?.conflictHosts??[]),v=new Set(e?.driftPaths??[]),y=new Set(e?.symlinkedHosts??[]),b=[...[...n].filter(e=>e!==g&&!(e in s)&&!_.has(e)&&!e.includes(`/`)).map(e=>({target:e,display:a(e)??e,mode:y.has(e)?`link`:`copy`})),...(e?.customPlacements??[]).map(e=>({target:q(e),display:`${p}${e.path}`,mode:e.mode}))],x=b.map(e=>e.mode),S=x.filter(e=>e===`link`).length,C=x.length===0?i?`link`:`copy`:S*2>=x.length?`link`:`copy`,w=new Map((e?.customPlacements??[]).map(e=>[q(e),e])),T=new Set(w.keys());if(t!==null&&e){for(let n of t)if(n.scope===e.scope)for(let e of n.customPlacements??[]){let t=q(e);t!==``&&T.add(t)}}return{pathFor:a,aliases:s,rows:d,sourceRow:h,sourceHost:g,conflicted:_,drifted:v,linked:y,expectedMode:C,convertible:b,customRootRows:e===void 0?[]:[...T].sort().map(t=>({root:t,display:`${p}${t}/${e.name}`,placed:w.get(t)??null})).filter(e=>!f.has(e.display)&&e.display!==m&&!(e.root in s))}}var Tt=`min-w-[24rem]`;function Et(e,t){let n=(0,Z.c)(45),r=t.installingName===e.name,i=(0,X.useRef)(e),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(!1),c,l;n[0]===r?(c=n[1],l=n[2]):(c=()=>{s.current&&!r&&o(!0),s.current=r},l=[r],n[0]=r,n[1]=c,n[2]=l),(0,X.useEffect)(c,l);let u,d;n[3]===e?(u=n[4],d=n[5]):(u=()=>{e!==i.current&&(i.current=e,o(!1))},d=[e],n[3]=e,n[4]=u,n[5]=d),(0,X.useEffect)(u,d);let f=r||a,p;n[6]!==e.name||n[7]!==e.scope?(p=_t(e.scope,e.name),n[6]=e.name,n[7]=e.scope,n[8]=p):p=n[8];let m=p,h,g;n[9]===m?(h=n[10],g=n[11]):(h=e=>yt(m,e),g=()=>vt(m),n[9]=m,n[10]=h,n[11]=g);let _=(0,X.useSyncExternalStore)(h,g),v=_.hosts,y=_.source,b,x;n[12]!==y||n[13]!==m||n[14]!==e.hosts?(b=()=>{y!==null&&e.hosts[0]===y&&bt(m,{source:null})},x=[e.hosts,y,m],n[12]=y,n[13]=m,n[14]=e.hosts,n[15]=b,n[16]=x):(b=n[15],x=n[16]),(0,X.useEffect)(b,x);let S=e.linkMode===!0,C=v??e.hosts,w;n[17]===C?w=n[18]:(w=new Set(C),n[17]=C,n[18]=w);let T=w,E=v?v.length>0:e.installed,D=(0,X.useRef)(e.hosts),O,k;n[19]!==v||n[20]!==e.hosts?(O=()=>{v===null&&(D.current=e.hosts)},k=[v,e.hosts],n[19]=v,n[20]=e.hosts,n[21]=O,n[22]=k):(O=n[21],k=n[22]),(0,X.useEffect)(O,k);let A;n[23]===e.hosts?A=n[24]:(A=[...e.hosts].sort().join(`,`),n[23]=e.hosts,n[24]=A);let j=A,M,N;n[25]!==m||n[26]!==j?(M=()=>{let e=vt(m).hosts;e&&[...e].sort().join(`,`)===j&&bt(m,{hosts:null})},N=[j,m],n[25]=m,n[26]=j,n[27]=M,n[28]=N):(M=n[27],N=n[28]),(0,X.useEffect)(M,N);let P=(0,X.useRef)(null),F=(0,X.useRef)(null),I,L;n[29]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>()=>{P.current&&clearTimeout(P.current),F.current?.(),F.current=null},L=[],n[29]=I,n[30]=L):(I=n[29],L=n[30]),(0,X.useEffect)(I,L);let R;n[31]!==t||n[32]!==m||n[33]!==e?(R=function(n,r){D.current=n,bt(m,{hosts:n}),P.current&&clearTimeout(P.current);let i=async()=>{F.current=null,P.current=null;let r=await t.install(e,n.filter(ee));if(!r.ok){bt(m,{hosts:null});return}D.current=[...r.hosts],bt(m,{hosts:[...r.hosts]})};r?(F.current=()=>void i(),P.current=setTimeout(()=>void i(),350)):(F.current=null,i())},n[31]=t,n[32]=m,n[33]=e,n[34]=R):R=n[34];let z=R,B;return n[35]!==t||n[36]!==z||n[37]!==T||n[38]!==E||n[39]!==f||n[40]!==y||n[41]!==m||n[42]!==S||n[43]!==e?(B={hostSet:T,installed:E,installing:f,toggleEditor(e,t){let n=new Set(D.current);t?n.add(e):n.delete(e),z([...n],!0)},installAll(){let t=e.scope===`global`?St:xt,n=D.current.filter(e=>!t.includes(e)),r=e.installableEditors??t,i=t.filter(e=>r.includes(e)||D.current.includes(e));z([...n,...i],!1)},linkMode:S,sourceHost:y??e.hosts[0],placeAt(n,r){t.runLocationWrite(e,()=>K({scope:e.scope,name:e.name,dir:n,mode:r})).then(Ot)},unplaceAt(n){t.runLocationWrite(e,()=>W({scope:e.scope,name:e.name,path:n})).then(Dt)},setSource(n){bt(m,{source:n}),t.runLocationWrite(e,()=>G({scope:e.scope,name:e.name,target:n})).then(e=>{e.ok||(bt(m,{source:null}),V.error(e.error))})},convertLocation(n,r){t.convertLocations(e,[{target:n,mode:r}])},convertLocations(n){t.convertLocations(e,n)}},n[35]=t,n[36]=z,n[37]=T,n[38]=E,n[39]=f,n[40]=y,n[41]=m,n[42]=S,n[43]=e,n[44]=B):B=n[44],B}function Dt(e){e.ok||V.error(e.error)}function Ot(e){e.ok||V.error(e.error)}function $(e){let t=(0,Z.c)(7),{hint:n,children:r}=e,i;t[0]===r?i=t[1]:(i=(0,Y.jsx)(u,{asChild:!0,children:r}),t[0]=r,t[1]=i);let a;t[2]===n?a=t[3]:(a=(0,Y.jsx)(d,{side:`right`,className:`max-w-xs`,children:n}),t[2]=n,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,Y.jsxs)(f,{children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function kt(e){let t=(0,Z.c)(77),{toggles:n,skill:r,onResolveFork:o,onRunStart:s,menuKind:c}=e,u=c===void 0?`dropdown`:c,{_:d}=a(),{hostSet:f,toggleEditor:p,installAll:m}=n,h=J(),g,_,v,y,b,x,S,C,w,T;if(t[0]!==d||t[1]!==h.data||t[2]!==h.status||t[3]!==f||t[4]!==m||t[5]!==u||t[6]!==o||t[7]!==s||t[8]!==r||t[9]!==p||t[10]!==n){let{pathFor:e,aliases:a,rows:c,sourceRow:E,sourceHost:D,conflicted:O,drifted:k,linked:A,expectedMode:j,convertible:M,customRootRows:N}=wt({skill:r,allSkills:h.status===`ready`?h.data:null,hostSet:f,sourceHostOverlay:n.sourceHost,linkMode:n.linkMode});b=c,x=E,y=j,_=M,v=N;let P=e=>oe(a,e),F=It,I=e=>{let t=P(e);return t.length===0?!0:window.confirm(d({id:`Uobeu9`,values:{0:t.map(F).join(`, `),rootRel:e}}))},L;t[21]!==d||t[22]!==r?(L=(e,t)=>{let n=e.includes(`/`)?e:ae(e,r?.scope??`project`);return(0,Y.jsx)($,{hint:d({id:`0dslv8`,values:{0:F(e),1:F(e),2:r?.name??``,poolRootRel:t,subRoot:n}}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-4 shrink-0 px-0`,"aria-label":d({id:`G6Lrs_`,values:{0:F(e)}}),onClick:i=>{i.preventDefault(),i.stopPropagation(),window.confirm(d({id:`iiqOKM`,values:{0:F(e),1:r.name,2:F(e),subRoot:n,poolRootRel:t}}))&&re({scope:r.scope,root:n,action:`unlink`,exclude:[r.name]}).then(e=>{e.ok?te():V.error(d({id:`PRgIJh`,values:{0:e.error,subRoot:n}}))})},"data-testid":`skill-audience-unfollow-${e}`,children:(0,Y.jsx)(rt,{host:e,"aria-hidden":!0,className:`size-3.5`})})},e)},t[21]=d,t[22]=r,t[23]=L):L=t[23];let R=L;g=n.installing;let z=ie(r),ee=Ft,H;t[24]!==d||t[25]!==s||t[26]!==n?(H=(e,t,r)=>{let a=r===`link`?`copy`:`link`;return(0,Y.jsx)($,{hint:d(r===`link`?{id:`FeXcUS`,values:{display:t}}:{id:`ugQcJX`,values:{display:t}}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 font-normal text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:r=>{r.preventDefault(),r.stopPropagation(),window.confirm(d(a===`link`?{id:`m0eHej`,values:{display:t}}:{id:`HbcQYf`,values:{display:t}}))&&(s?.(),n.convertLocation?.(e,a))},"data-testid":`skill-convert-${e}`,children:r===`link`?(0,Y.jsx)(i,{id:`uUCrBv`}):(0,Y.jsx)(i,{id:`iaPtht`})})})},t[24]=d,t[25]=s,t[26]=n,t[27]=H):H=t[27];let ne=H,W;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,Y.jsx)(i,{id:`npcziF`}),t[28]=W):W=t[28];let G;t[29]===d?G=t[30]:(G=d({id:`6f_UX4`}),t[29]=d,t[30]=G);let K;t[31]===m?K=t[32]:(K=()=>m(),t[31]=m,t[32]=K);let q;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(q=(0,Y.jsx)(i,{id:`N40H-G`}),t[33]=q):q=t[33];let J;t[34]!==g||t[35]!==K?(J=(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-5 px-1.5 font-normal text-[11px] text-muted-foreground hover:text-foreground`,disabled:g,onClick:K,"data-testid":`skill-install-all`,children:q}),t[34]=g,t[35]=K,t[36]=J):J=t[36];let X;t[37]!==G||t[38]!==J?(X=(0,Y.jsx)($,{hint:G,children:J}),t[37]=G,t[38]=J,t[39]=X):X=t[39],t[40]!==u||t[41]!==X?(S=(0,Y.jsxs)(lt,{menuKind:u,className:`flex items-center justify-between gap-2`,children:[W,X]}),t[40]=u,t[41]=X,t[42]=S):S=t[42],C=x===null?null:(0,Y.jsx)($,{hint:d({id:`pXB6SL`}),children:(0,Y.jsxs)(ct,{menuKind:u,disabled:g,checked:!0,onSelect:Pt,"data-testid":`skill-source-row`,children:[(0,Y.jsx)(U,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:x}),(()=>{let e=ee(x).split(`/`).slice(0,-1).join(`/`),t=P(e);return t.length>0?(0,Y.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-source`,children:t.map(t=>R(t,e))}):null})(),(0,Y.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,Y.jsx)(i,{id:`tiFPjk`})})]})]})}),w=b.map(t=>{let a=e(t),s=t===`agents`?`.agents`:B[t],c=ee(a).split(`/`).slice(0,-1).join(`/`),m=P(c);return(0,Y.jsx)($,{hint:O.has(t)?d({id:`8HvJlU`,values:{0:a??s}}):t===D?a?d({id:`ssk6rl`,values:{path:a}}):s:f.has(t)?d(a?{id:`9ieZhu`,values:{path:a}}:{id:`n3T3EE`,values:{label:s}}):z?.editor===t?d({id:`_3S4Ql`,values:{0:r?.name??``,1:z.plugin,2:a??s,label:s}}):d(a?D===void 0?{id:`xk133d`,values:{path:a}}:y===`link`?{id:`1LtA5r`,values:{path:a}}:{id:`opPbzN`,values:{path:a}}:{id:`Pp0Vgd`,values:{label:s}}),children:(0,Y.jsxs)(ct,{menuKind:u,disabled:g,checked:f.has(t),onCheckedChange:e=>{O.has(t)||e===!0&&!I(c)||p(t,e===!0)},onSelect:Nt,className:`group`,"data-testid":`skill-install-editor-${t}`,children:[(0,Y.jsx)(rt,{host:t,"aria-hidden":!0,className:`size-4`}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:a??s}),m.length>0?(0,Y.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-${t}`,children:m.map(e=>R(e,c))}):null,z?.editor===t&&!f.has(t)?(0,Y.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,"data-testid":`skill-row-plugin-covered-${t}`,children:(0,Y.jsx)(i,{id:`scRzTw`})}):null,O.has(t)?(0,Y.jsx)($,{hint:d({id:`_O7dJS`}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-yellow-500/40 bg-yellow-500/10 px-1 text-[10px] text-yellow-600 uppercase tracking-wide hover:bg-yellow-500/20`,onClick:e=>{e.preventDefault(),o?.(t)},"data-testid":`skill-fork-chip-${t}`,children:(0,Y.jsx)(i,{id:`jng7Ko`})})}):t===D?(0,Y.jsx)(`span`,{className:`inline-flex h-5 shrink-0 items-center rounded border border-border/60 px-1 text-[10px] uppercase tracking-wide text-muted-foreground`,children:(0,Y.jsx)(i,{id:`tiFPjk`})}):f.has(t)&&r?.hosts?(0,Y.jsxs)(Y.Fragment,{children:[!g&&(A.has(t)?`link`:`copy`)!==y?ne(t,a??s,A.has(t)?`link`:`copy`):null,(0,Y.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:e=>{e.preventDefault(),e.stopPropagation(),n.setSource?.(t)},"data-testid":`skill-set-source-${t}`,children:(0,Y.jsx)(i,{id:`VNNRfN`})})})]}):null,!g&&k.has(ee(a))?(0,Y.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,Y.jsx)(at,{testId:`skill-drift-${t}`})}):null]})]})},t)}),T=v.map(e=>{let t=e.display;return(0,Y.jsx)($,{hint:e.placed===null?d(D===void 0?{id:`xk133d`,values:{path:t}}:y===`link`?{id:`1LtA5r`,values:{path:t}}:{id:`opPbzN`,values:{path:t}}):d({id:`9ieZhu`,values:{path:t}}),children:(0,Y.jsxs)(ct,{menuKind:u,disabled:g,checked:e.placed!==null,onCheckedChange:t=>{if(t===!0&&e.placed===null){if(!I(e.root))return;n.placeAt(e.root,y)}else e.placed!==null&&n.unplaceAt?.(e.placed.path)},onSelect:Mt,className:`group`,"data-testid":`skill-custom-root-${e.root}`,children:[e.root===`.agents/skills`?(0,Y.jsx)(rt,{host:`agents`,"aria-hidden":!0,className:`size-4`}):(0,Y.jsx)(U,{"aria-hidden":!0,className:`size-4 text-muted-foreground`}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-baseline gap-1.5`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs`,children:e.display}),P(e.root).length>0?(0,Y.jsx)(`span`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`skill-row-audience-custom-${e.root}`,children:P(e.root).map(t=>R(t,e.root))}):null,!g&&e.placed!==null&&k.has(e.placed.path)?(0,Y.jsx)($,{hint:d({id:`iz1LdD`}),children:(0,Y.jsx)(at,{testId:`skill-drift-custom-${e.root}`})}):e.placed===null?null:(0,Y.jsxs)(Y.Fragment,{children:[!g&&e.placed.mode!==y?ne(e.root,e.display,e.placed.mode):null,(0,Y.jsx)($,{hint:d({id:`nBgzKO`}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-5 shrink-0 rounded border border-border/60 px-1 font-normal text-[10px] text-muted-foreground uppercase tracking-wide opacity-0 focus-visible:opacity-100 group-hover:opacity-100 hover:border-foreground/40 hover:text-foreground`,onClick:t=>{t.preventDefault(),t.stopPropagation(),n.setSource?.(e.root)},"data-testid":`skill-set-source-custom-${e.root}`,children:(0,Y.jsx)(i,{id:`VNNRfN`})})})]})]})]})},e.root)}),t[0]=d,t[1]=h.data,t[2]=h.status,t[3]=f,t[4]=m,t[5]=u,t[6]=o,t[7]=s,t[8]=r,t[9]=p,t[10]=n,t[11]=g,t[12]=_,t[13]=v,t[14]=y,t[15]=b,t[16]=x,t[17]=S,t[18]=C,t[19]=w,t[20]=T}else g=t[11],_=t[12],v=t[13],y=t[14],b=t[15],x=t[16],S=t[17],C=t[18],w=t[19],T=t[20];let E;t[43]!==v||t[44]!==b.length||t[45]!==x?(E=b.length===0&&v.length===0&&x===null?(0,Y.jsx)(`div`,{className:`px-2 py-1.5 text-[11px] text-muted-foreground leading-snug`,"data-testid":`skill-install-no-destinations`,children:(0,Y.jsx)(i,{id:`MOAoFO`})}):null,t[43]=v,t[44]=b.length,t[45]=x,t[46]=E):E=t[46];let D;t[47]!==d||t[48]!==g||t[49]!==_||t[50]!==y||t[51]!==s||t[52]!==n?(D=_.length>0&&n.convertLocations?(0,Y.jsxs)(`div`,{className:`flex items-center gap-1 px-2 pt-1 pb-1.5`,children:[(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,className:`h-auto whitespace-normal p-0 text-left font-normal text-[11px] text-muted-foreground leading-snug hover:bg-transparent hover:text-foreground`,onClick:e=>{e.preventDefault();let t=y===`link`?`copy`:`link`,r=_.filter(e=>e.mode!==t);if(r.length===0)return;let i=d(t===`copy`?{id:`iOAsF1`}:{id:`MS8lMS`}),a=d(t===`copy`?{id:`gZiT5e`}:{id:`PhIa-X`}),o=r.map(jt).join(`
|
|
2
|
-
`);window.confirm(`${i}\n\n${a}\n\n${o}\n\n${d({id:`Cu6GXQ`})}`)&&(s?.(),n.convertLocations?.(r.map(e=>({target:e.target,mode:t}))))},disabled:g,"data-testid":`skill-convert-all`,children:y===`link`?(0,Y.jsx)(i,{id:`rcJmK8`}):(0,Y.jsx)(i,{id:`LBv_TR`})}),(0,Y.jsx)($,{hint:d({id:`0J6nhG`}),children:(0,Y.jsx)(l,{variant:`ghost`,size:`sm`,"aria-label":d({id:`qJSo0_`}),className:`size-4 shrink-0 rounded-full border border-border/60 p-0 font-normal text-[9px] text-muted-foreground hover:border-foreground/40 hover:bg-transparent hover:text-foreground`,onClick:At,"data-testid":`skill-convert-all-help`,children:`?`})})]}):null,t[47]=d,t[48]=g,t[49]=_,t[50]=y,t[51]=s,t[52]=n,t[53]=D):D=t[53];let O;t[54]===u?O=t[55]:(O=(0,Y.jsx)(ut,{menuKind:u}),t[54]=u,t[55]=O);let k;t[56]===d?k=t[57]:(k=d({id:`5ymuTA`}),t[56]=d,t[57]=k);let A;t[58]===r?.scope?A=t[59]:(A=()=>{window.location.hash=r?.scope===`global`?`#settings/user-skills`:`#settings/skills`},t[58]=r?.scope,t[59]=A);let j,M;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,Y.jsx)(ze,{"aria-hidden":!0}),M=(0,Y.jsx)(i,{id:`ZBF9fn`}),t[60]=j,t[61]=M):(j=t[60],M=t[61]);let N;t[62]!==u||t[63]!==A?(N=(0,Y.jsxs)(st,{menuKind:u,onSelect:A,children:[j,M]}),t[62]=u,t[63]=A,t[64]=N):N=t[64];let P;t[65]!==N||t[66]!==k?(P=(0,Y.jsx)($,{hint:k,children:N}),t[65]=N,t[66]=k,t[67]=P):P=t[67];let F;return t[68]!==P||t[69]!==S||t[70]!==C||t[71]!==w||t[72]!==T||t[73]!==E||t[74]!==D||t[75]!==O?(F=(0,Y.jsxs)(Y.Fragment,{children:[S,C,w,T,E,D,O,P]}),t[68]=P,t[69]=S,t[70]=C,t[71]=w,t[72]=T,t[73]=E,t[74]=D,t[75]=O,t[76]=F):F=t[76],F}function At(e){return e.preventDefault()}function jt(e){return e.display}function Mt(e){return e.preventDefault()}function Nt(e){return e.preventDefault()}function Pt(e){return e.preventDefault()}function Ft(e){return(e??``).replace(/^~\//,``)}function It(e){return e===`agents`?`.agents`:B[e]??e}export{Le as C,Re as S,et as _,xt as a,Ye as b,lt as c,ft as d,pt as f,tt as g,it as h,St as i,ut as l,rt as m,kt as n,ot as o,at as p,Et as r,st as s,Tt as t,dt as u,Qe as v,Ae as w,ze as x,$e as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{Dn as n,It as r,Mn as i,Rt as a,U as o,bt as s,gn as c,lt as l,mt as u,nn as ee,st as d,tn as te,ut as f,vn as ne,yt as p}from"./DocumentContext-BLYhIJKb.js";import{t as m}from"./react-f2sANaYj.js";import{n as h}from"./dist-PQ5KMVDh.js";import{t as re}from"./compiler-runtime-BfE3aGVn.js";import{J as g,M as _,X as ie,a as ae,b as v,i as oe,o as se}from"./CodeMirrorPropInput-BtM8bLgN.js";import{Po as y,T as ce,Zi as le,oi as b,vo as x,wo as S}from"./dist-C_QZEaeX.js";import{i as ue}from"./use-apply-config-theme-CBmHKD_B.js";import{B as de,D as C,F as fe,L as pe,P as me,T as w,d as he,h as ge,i as _e,j as ve,m as T,r as ye,t as be,u as E}from"./typing-burst-detector-D_M-RPSc.js";import{s as D}from"./startup-marks-Cw2UqI10.js";import"./config-provider-CH5GabLO.js";import{$ as O,D as k,Dt as A,F as j,It as M,Lt as N,Ot as P,Pt as F,Y as I,Z as L,b as R,ct as z,ft as B,g as V,gt as H,ht as xe,it as U,kt as Se,l as W,lt as G,nt as K,pt as q,rt as J,ut as Y,v as X}from"./dist-BXlOzfrR.js";import{a as Ce,n as we}from"./cm-theme-CvD6eMwN.js";import{i as Te,n as Ee,o as De,r as Oe}from"./dist-DXjgrsHI.js";import{o as ke,r as Ae}from"./selection-context-D9UxW_oI.js";import{l as je}from"./lint-config-client-pNtVqn1v.js";import{a as Me,i as Ne,n as Pe,o as Fe,r as Ie,s as Le,t as Re}from"./dist-B6U1sHwQ2.js";import{n as ze,t as Be}from"./src-CMLgwlib.js";var Z=e(m(),1),Ve=re();function He(){let e=p();return e===null?null:new Set(e.keys())}function Ue(e,t,n){let r=[],i=j(e);if(n!=null){let a=[];for(let{from:e,to:n}of t)i.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return a.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>a.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);S.lastIndex=0;for(let e=S.exec(t);e!==null;e=S.exec(t)){let t=e[2];if(!y(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(I.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:a,to:o}of t)i.iterate({from:a,to:o,enter(t){if(t.name!==`InlineCode`)return;let i=e.doc.sliceString(t.from,t.to),a=i.length-i.replace(/^`+/,``).length,o=i.length-i.replace(/`+$/,``).length,s=i.slice(a,i.length-o),c=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(s)?.[1];if(c!==void 0&&y(c)&&n!=null)return r.push(I.mark({class:n.has(c)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":c}}).range(t.from+a,t.to-o)),!1;let l=d.exec(s);if(l)return r.push(I.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":l[1]}}).range(t.from+a,t.to-o)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),I.set(r)}function We(e){let t=f(e);return t===null?[]:[O.fromClass(class{decorations;constructor(e){this.decorations=Ue(e.state,e.visibleRanges,He())}update(e){(e.docChanged||e.viewportChanged||j(e.startState)!==j(e.state))&&(this.decorations=Ue(e.view.state,e.view.visibleRanges,He()))}},{decorations:e=>e.decorations}),L.domEventHandlers({mousedown(n){let r=n.target?.closest?.(`[data-skill-ref]`),i=r instanceof HTMLElement?r.dataset.skillRef:void 0;if(i!==void 0){n.preventDefault();let e=p()?.get(i);return e===void 0?u():window.location.hash=s(i,e),!0}let a=n.target?.closest?.(`.cm-skill-path-link`),o=a instanceof HTMLElement?a.dataset.skillPath:void 0;return o===void 0?!1:(n.preventDefault(),window.location.hash=l(t,e,o),!0)}})]}var Ge=I.line({attributes:{dir:`auto`}});function Ke(e){let t=new F;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Ge),r=n.to+1}return t.finish()}var qe=O.fromClass(class{decorations;constructor(e){this.decorations=Ke(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=Ke(e.view))}},{decorations:e=>e.decorations}),Je=[L.perLineTextDirection.of(!0),qe],Ye=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),Xe=`cm-lint-local-target`;function Ze(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function Qe(e,t){let n=V(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Ye.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function $e(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function et(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=Qe(e,Ze(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:$e(i.severity),message:C(i),source:`${i.source}/${i.code}`,markClass:Xe})}return r}var tt=M.define();function nt(e){let t={findings:[]};return[Ne(e=>g()?et(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(tt)))}),O.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:tt.of(null)}),Re(n)},i=w(e,e=>{e.status===`loaded`&&r(e.findings)}),a=ie(()=>r(t.findings));return{destroy(){i(),a()}}})]}function rt(e,t){return e.enabled?[Pe(),Ne(async n=>it(n.state.doc,await b(n.state.doc.toString(),e,t)),{delay:600})]:[]}function Q(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function it(e,t){let n=[];for(let r of t){let t=Q(e,r.range.start),i=Q(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=at(r);o&&(a.actions=[o]),n.push(a)}return n}function at(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:Q(n,e.range.start),to:Q(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var ot=[q(),G(),Y(),X(),J(),U(),Se.allowMultipleSelections.of(!0),k(),W(),Oe(),Ee(),H(),K(),z(),Me(),B.of([...Te,...we,...Le,...R,...De,...Ie])],st=I.mark({class:`cm-link-ref-broken`}),ct=/^\s{0,3}\[([^\]]+)\]:\s/,lt=/\[([^\]]*)\]\[([^\]]*)\]/g,ut=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function $(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function dt(e){let t=[];return j(e).iterate({enter(e){if(ut.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function ft(e){let t=new Set,n=[],r=e.doc,i=dt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if($(n.from,i))continue;let a=ct.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!$(t.from,i)&&!ct.test(t.text))for(lt.lastIndex=0;;){let e=lt.exec(t.text);if(!e)break;let r=t.from+e.index;if($(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(st.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),I.set(a)}var pt=N.define({create(e){return ft(e)},update(e,t){return t.docChanged?ft(t.state):e},provide:e=>L.decorations.from(e)}),mt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,ht=I.mark({class:`cm-del`}),gt=I.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),_t=I.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function vt(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function yt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!x.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(x.test(r.text))return{from:t.from,to:r.to}}return null}function bt(e,t){let n=[],r=j(e),i=yt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(ht.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=mt.exec(r.text),a=i?i[1].length:2,o=I.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=vt(r.text),a=I.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(gt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(_t.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(_t.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),I.set(n)}var xt=class{decorations;constructor(e){this.decorations=bt(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||j(e.startState)!==j(e.state))&&(this.decorations=bt(e.view.state,e.view.visibleRanges))}},St=O.fromClass(xt,{decorations:e=>e.decorations});function Ct(){return[St,pt]}var wt=t(),Tt=M.define();function Et(e,t,n){let r=T(e.state.doc),a=r[t.index],o={docName:n,mode:`source`,index:t.index,sourceHeadingCount:r.length};if(!a){D(E,{...o,outcome:`no-target`});return}let s=i(n,`outline`,()=>{e.dispatch({selection:P.cursor(a.from),effects:L.scrollIntoView(a.from,{y:`start`})}),e.focus()});D(E,{...o,outcome:s?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(a.from).number})}function Dt(e,t,n,r){requestAnimationFrame(()=>{if(!n())return;let a=e.state.doc,o=Math.min(t.offset,a.length);i(r,`raw-mdx`,()=>{e.dispatch({selection:P.cursor(o),effects:L.scrollIntoView(o,{y:`center`})}),e.focus()})})}function Ot(e,t,n){let r=e.state.doc,a=Math.min(Math.max(t.line,1),r.lines),o=r.line(a),s=Math.min(o.from+Math.max(0,t.column-1),o.to);return i(n,`problems-row`,()=>{e.dispatch({selection:P.cursor(s),effects:L.scrollIntoView(s,{y:`start`})}),e.focus()})}function kt(e){let t=(0,Ve.c)(50),{docName:i,ytext:s,provider:l,placeholder:u,isSourceModeActive:d}=e,f=(0,Z.useRef)(null),p=(0,Z.useRef)(null),[m,re]=(0,Z.useState)(null);if(m)throw m;let{resolvedTheme:g}=h(),{merged:_}=ue(),ie=(0,Z.useRef)(d),v=_?.editor?.wordWrap??!0,{data:y}=je(i),b;t[0]!==y?.effective||t[1]!==_?(b=y?.effective??(_?.contentRules?le(_.contentRules):ce),t[0]=y?.effective,t[1]=_,t[2]=b):b=t[2];let x=b,S;t[3]===x?S=t[4]:(S=JSON.stringify(x),t[3]=x,t[4]=S);let C=S,w,T;t[5]===d?(w=t[6],T=t[7]):(w=()=>{ie.current=d},T=[d],t[5]=d,t[6]=w,t[7]=T),(0,Z.useEffect)(w,T);let O=(0,Z.useRef)(null),k;t[8]!==i||t[9]!==x||t[10]!==u||t[11]!==l||t[12]!==g||t[13]!==v||t[14]!==s?(k=()=>{let e=f.current;if(!e)return;let t=l.configuration.name??``,d,m=jt;try{d=te({docName:t,container:e,sizeStats:{viewCount:0,bytes:s.length},factory:e=>{let c=null,ee=o({ydoc:l.document,ytext:s,docName:t}),d=new A,te=new A,f=new A,ne=new A,p=new L({state:Se.create({doc:s.toString(),extensions:[ot,Je,Fe({scrollToMatch:e=>n(t,`find-match`)?L.scrollIntoView(e,{y:`start`}):Tt.of(null)}),B.of([Ce]),Be(s,l.awareness),B.of(ze),...oe({themeCompartment:d,resolvedTheme:g,ydoc:l.document,wordWrapCompartment:te,wordWrap:v,currentDocName:t}),Ct(),We(t),de(),ne.of(rt(x,i)),nt(i),ee,L.updateListener.of(e=>{r(e)&&a(t)}),L.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(c!==null&&clearTimeout(c),c=setTimeout(()=>{c=null,ye(t,`source`,_e(e.view)),Ae(t,`source`,ke(e.view,t))},120))}),f.of(xe(u??``)),L.theme({"&":{height:`100%`}}),L.scrollMargins.of(At)]}),parent:e});ye(t,`source`,_e(p)),Ae(t,`source`,ke(p,t));let h=p.contentDOM;return h.addEventListener(`keydown`,m),h.addEventListener(`paste`,m),h.addEventListener(`drop`,m),h.addEventListener(`cut`,m),{view:p,ydoc:l.document,ytext:s,provider:l,themeCompartment:d,wordWrapCompartment:te,placeholderCompartment:f,lintCompartment:ne}}}),O.current=d,p.current=d.view,c(i,d.view),be()&&d.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),O.current=null,p.current=null,re(t instanceof Error?t:Error(String(t)))}return()=>{let e=O.current;e&&(ee(e),ne(i,e.view)),O.current=null,p.current=null}},t[8]=i,t[9]=x,t[10]=u,t[11]=l,t[12]=g,t[13]=v,t[14]=s,t[15]=k):k=t[15];let j;t[16]!==l||t[17]!==s?(j=[s,l],t[16]=l,t[17]=s,t[18]=j):j=t[18],(0,Z.useEffect)(k,j);let M,N;t[19]===i?(M=t[20],N=t[21]):(M=()=>{},N=[i],t[19]=i,t[20]=M,t[21]=N),(0,Z.useEffect)(M,N);let P,F;t[22]===g?(P=t[23],F=t[24]):(F=()=>{let e=O.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(g===`dark`?ae:se)})},P=[g],t[22]=g,t[23]=P,t[24]=F),(0,Z.useEffect)(F,P);let I,R;t[25]===v?(I=t[26],R=t[27]):(I=()=>{let e=O.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(v?L.lineWrapping:[])})},R=[v],t[25]=v,t[26]=I,t[27]=R),(0,Z.useEffect)(I,R);let z,V;t[28]===u?(z=t[29],V=t[30]):(z=()=>{let e=O.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(xe(u??``))})},V=[u],t[28]=u,t[29]=z,t[30]=V),(0,Z.useEffect)(z,V);let H;t[31]!==i||t[32]!==x?(H=()=>{let e=O.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(rt(x,i))})},t[31]=i,t[32]=x,t[33]=H):H=t[33];let U;t[34]===C?U=t[35]:(U=[C],t[34]=C,t[35]=U),(0,Z.useEffect)(H,U);let W,G;t[36]!==i||t[37]!==d?(W=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||t.mode!==`source`||!d)return;let n=p.current;if(!n){D(E,{docName:i,mode:`source`,index:t.index,outcome:`no-view`});return}Et(n,t,i),me(i)};return window.addEventListener(he,e),()=>window.removeEventListener(he,e)},G=[i,d],t[36]=i,t[37]=d,t[38]=W,t[39]=G):(W=t[38],G=t[39]),(0,Z.useEffect)(W,G);let K,q;t[40]!==i||t[41]!==d?(K=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==i||!d)return;let n=p.current;n&&Ot(n,t,i)&&me(i)};return window.addEventListener(ge,e),()=>window.removeEventListener(ge,e)},q=[i,d],t[40]=i,t[41]=d,t[42]=K,t[43]=q):(K=t[42],q=t[43]),(0,Z.useEffect)(K,q);let J,Y;t[44]!==i||t[45]!==d||t[46]!==l?(J=()=>{if(!d)return;let e=p.current;if(!e)return;let t=pe(i);if(!t)return;if(t.kind!==`selection-offset`){fe(i),t.kind===`outline`?Et(e,t.detail,i):t.kind===`lint`?Ot(e,t.detail,i):t.kind===`raw-mdx`&&Dt(e,t.detail,()=>ie.current,i);return}let n=!1,r=null;return queueMicrotask(()=>{if(n)return;let t=pe(i);t?.kind===`selection-offset`&&(r=ve({view:e,docName:i,navigation:t,ydoc:l.document,transition:{from:`wysiwyg`,to:`source`}}),r&&fe(i))}),()=>{n=!0,r?.cancel(`mode-flip`)}},Y=[i,d,l],t[44]=i,t[45]=d,t[46]=l,t[47]=J,t[48]=Y):(J=t[47],Y=t[48]),(0,Z.useEffect)(J,Y);let X;return t[49]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,wt.jsx)(`div`,{ref:f,className:`source-editor h-full pb-3`}),t[49]=X):X=t[49],X}function At(){return{top:v()}}function jt(){return _()}export{kt as SourceEditor,Dt as applyRawMdxNavigation};
|
|
@@ -1 +0,0 @@
|
|
|
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}from"./dist-PQ5KMVDh.js";import{t as i}from"./compiler-runtime-BfE3aGVn.js";import{n as a,t as o}from"./ReportBugMenuTrigger-BYHhqbyX.js";import{t as s}from"./config-provider-CH5GabLO.js";import{t as c}from"./use-live-xterm-theme-BjybDd5E.js";import{SessionsHost as l}from"./SessionsHost-LdAlgsGb.js";var u=i(),d=e(n(),1),f=t();function p(e){let t=(0,u.c)(8),{bridge:n}=e,r=n.config.collabUrl?n.config.collabUrl:null,i;t[0]===n?i=t[1]:(i=(0,f.jsx)(m,{bridge:n}),t[0]=n,t[1]=i);let a=r===null,c;t[2]===a?c=t[3]:(c=(0,f.jsx)(o,{systemWide:a}),t[2]=a,t[3]=c);let l;return t[4]!==r||t[5]!==i||t[6]!==c?(l=(0,f.jsxs)(s,{collabUrl:r,children:[i,c]}),t[4]=r,t[5]=i,t[6]=c,t[7]=l):l=t[7],l}function m(e){let t=(0,u.c)(9),{bridge:n}=e,{resolvedTheme:i}=r(),o=c(i),s=a(),[p,m]=(0,d.useState)(null),_;t[0]===o.background?_=t[1]:(_=(0,f.jsx)(`div`,{ref:m,className:`flex h-screen min-h-0 flex-col`,style:{backgroundColor:o.background}}),t[0]=o.background,t[1]=_);let v;t[2]!==n||t[3]!==p||t[4]!==s?(v=(0,f.jsx)(l,{bridge:n,surface:`terminal-window`,terminalCapable:!0,visible:!0,onVisibleChange:g,installedClis:s,container:p,isShowing:!0,onRequestEditorFocus:h}),t[2]=n,t[3]=p,t[4]=s,t[5]=v):v=t[5];let y;return t[6]!==_||t[7]!==v?(y=(0,f.jsxs)(f.Fragment,{children:[_,v]}),t[6]=_,t[7]=v,t[8]=y):y=t[8],y}function h(){}function g(e){e||window.close()}export{p as TerminalWindowApp};
|
|
@@ -1 +0,0 @@
|
|
|
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{r}from"./dist-Nvb76hAm.js";import{n as i}from"./dist-PQ5KMVDh.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{n as o}from"./CodeMirrorPropInput-BtM8bLgN.js";import{Ss as s,mr as c,us as l}from"./dist-C_QZEaeX.js";import{g as u}from"./config-provider-CH5GabLO.js";import{Dt as d,P as f,Z as p,kt as m}from"./dist-BXlOzfrR.js";import{t as h}from"./cm-theme-CvD6eMwN.js";import{t as g}from"./dist-DnnH0RLX2.js";import{t as _}from"./text-viewer-languages-DRp_Y82n.js";import{t as v}from"./src-CMLgwlib.js";var y=a(),b=e(n(),1),x=t(),S=h({dark:!0,background:`var(--background)`,gutterBackground:`var(--muted)`}),C=h({dark:!1,background:`var(--background)`,gutterBackground:`var(--muted)`});function w(e){let t=(0,y.c)(19),{docName:n,provider:a}=e,{_:h}=r(),w=n.slice(n.lastIndexOf(`/`)+1),T=(0,b.useRef)(null),{resolvedTheme:E}=i(),D;t[0]===a.document?D=t[1]:(D=a.document.getText(`source`),t[0]=a.document,t[1]=D);let O=D,k;t[2]===O?k=t[3]:(k=()=>new u(O),t[2]=O,t[3]=k);let[A]=(0,b.useState)(k),j;t[4]!==n||t[5]!==a.awareness||t[6]!==E||t[7]!==A||t[8]!==O?(j=()=>{let e=T.current;if(!e)return;let t=E===`dark`?S:C,r=new d,i=new d,u=(l[c(n)]??s(c(n)))!==null&&c(n)!==``,h=new p({state:m.create({doc:O.toString(),extensions:[g,v(O,a.awareness,{undoManager:A}),r.of([]),f(o),i.of(u?[]:p.lineWrapping),p.theme({"&":{height:`100%`}}),t]}),parent:e}),y=!1,b=c(n)||null;return b&&_(b,l[b]??s(b)).then(e=>{y||!e||h.dispatch({effects:r.reconfigure(e)})}),()=>{y=!0,h.destroy()}},t[4]=n,t[5]=a.awareness,t[6]=E,t[7]=A,t[8]=O,t[9]=j):j=t[9];let M;t[10]!==n||t[11]!==a||t[12]!==E||t[13]!==A||t[14]!==O?(M=[O,a,E,n,A],t[10]=n,t[11]=a,t[12]=E,t[13]=A,t[14]=O,t[15]=M):M=t[15],(0,b.useEffect)(j,M);let N=h({id:`xAlHfe`,values:{basename:w}}),P;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,x.jsx)(`div`,{ref:T,className:`min-h-0 flex-1 overflow-auto`}),t[16]=P):P=t[16];let F;return t[17]===N?F=t[18]:(F=(0,x.jsx)(`main`,{className:`flex h-full min-h-0 flex-col bg-background`,"aria-label":N,"data-text-doc-editor":``,children:P}),t[17]=N,t[18]=F),F}export{w as TextDocEditor};
|