@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,4 +1,4 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./chunk-DTipWd-i.mjs";import{os as r}from"./src-
|
|
1
|
+
import{i as e,o as t,t as n}from"./chunk-DTipWd-i.mjs";import{os as r}from"./src-DhKkOAcb.mjs";import{delimiter as i,normalize as a,resolve as o}from"node:path";import{existsSync as s,statSync as c}from"node:fs";import{homedir as l}from"node:os";import{EventEmitter as u}from"node:events";import{spawn as d}from"child_process";var f=n(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),p=n(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=f(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),m=n(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=p()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),ee=n(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),te=n(((t,n)=>{let r=e(`os`),i=e(`tty`),a=ee(),{env:o}=process,s;a(`no-color`)||a(`no-colors`)||a(`color=false`)||a(`color=never`)?s=0:(a(`color`)||a(`colors`)||a(`color=true`)||a(`color=always`))&&(s=1),`FORCE_COLOR`in o&&(s=o.FORCE_COLOR===`true`?1:o.FORCE_COLOR===`false`?0:o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3));function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(s===0)return 0;if(a(`color=16m`)||a(`color=full`)||a(`color=truecolor`))return 3;if(a(`color=256`))return 2;if(e&&!t&&s===void 0)return 0;let n=s||0;if(o.TERM===`dumb`)return n;if(process.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in o)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in o)||o.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in o)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION);if(o.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in o){let e=parseInt((o.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(o.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||`COLORTERM`in o?1:n}function u(e){return c(l(e,e&&e.isTTY))}n.exports={supportsColor:u,stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}})),ne=n(((t,n)=>{let r=e(`tty`),i=e(`util`);t.init=d,t.log=c,t.formatArgs=o,t.save=l,t.load=u,t.useColors=a,t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{let e=te();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function a(){return`colors`in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function o(e){let{namespace:t,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${t} \u001B[0m`;e[0]=a+e[0].split(`
|
|
2
2
|
`).join(`
|
|
3
3
|
`+a),e.push(i+`m+`+n.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=s()+t+` `+e[0]}function s(){return t.inspectOpts.hideDate?``:new Date().toISOString()+` `}function c(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+`
|
|
4
4
|
`)}function l(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function u(){return process.env.DEBUG}function d(e){e.inspectOpts={};let n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]}n.exports=p()(t);let{formatters:f}=n.exports;f.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split(`
|
|
@@ -7,4 +7,4 @@ import{i as e,o as t,t as n}from"./chunk-DTipWd-i.mjs";import{os as r}from"./src
|
|
|
7
7
|
`)){let e=it(i,`
|
|
8
8
|
`);a=e[0],i=e[1]}yield{file:r,key:a,value:i}}}var Tn,En=S({"src/lib/responses/ConfigList.ts"(){q(),Tn=class{constructor(){this.files=[],this.values=Object.create(null)}get all(){return this._all||=this.files.reduce((e,t)=>Object.assign(e,this.values[t]),{}),this._all}addFile(e){if(!(e in this.values)){let t=O(this.files);this.values[e]=t?Object.create(this.values[t]):{},this.files.push(e)}return this.values[e]}addValue(e,t,n){let r=this.addFile(e);Object.hasOwn(r,t)?Array.isArray(r[t])?r[t].push(n):r[t]=[r[t],n]:r[t]=n,this._all=void 0}}}});function Dn(e,t){return typeof e==`string`&&Object.hasOwn(Mn,e)?e:t}function On(e,t,n,r){let i=[`config`,`--${r}`];return n&&i.push(`--add`),i.push(e,t),{commands:i,format:`utf-8`,parser(e){return e}}}function kn(e,t){let n=[`config`,`--null`,`--show-origin`,`--get-all`,e];return t&&n.splice(1,0,`--${t}`),{commands:n,format:`utf-8`,parser(t){return Sn(t,e)}}}function An(e){let t=[`config`,`--list`,`--show-origin`,`--null`];return e&&t.push(`--${e}`),{commands:t,format:`utf-8`,parser(e){return xn(e)}}}function jn(){return{addConfig(e,t,...n){return this._runTask(On(e,t,n[0]===!0,Dn(n[1],`local`)),G(arguments))},getConfig(e,t){return this._runTask(kn(e,Dn(t,void 0)),G(arguments))},listConfig(...e){return this._runTask(An(Dn(e[0],void 0)),G(arguments))}}}var Mn,Nn=S({"src/lib/tasks/config.ts"(){En(),q(),Mn=(e=>(e.system=`system`,e.global=`global`,e.local=`local`,e.worktree=`worktree`,e))(Mn||{})}});function Pn(e){return In.has(e)}var Fn,In,Ln=S({"src/lib/tasks/diff-name-status.ts"(){Fn=(e=>(e.ADDED=`A`,e.COPIED=`C`,e.DELETED=`D`,e.MODIFIED=`M`,e.RENAMED=`R`,e.CHANGED=`T`,e.UNMERGED=`U`,e.UNKNOWN=`X`,e.BROKEN=`B`,e))(Fn||{}),In=new Set(Object.values(Fn))}});function Rn(...e){return new Wn().param(...e)}function zn(e){let t=new Set,n={};return st(e,e=>{let[r,i,a]=e.split(I);t.add(r),(n[r]=n[r]||[]).push({line:N(i),path:r,preview:a})}),{paths:t,results:n}}function Bn(){return{grep(e){let t=G(arguments),n=W(arguments);for(let e of Vn)if(n.includes(e))return this._runTask(J(`git.grep: use of "${e}" is not supported.`),t);typeof e==`string`&&(e=Rn().param(e));let r=[`grep`,`--null`,`-n`,`--full-name`,...n,...e];return this._runTask({commands:r,format:`utf-8`,parser(e){return zn(e)}},t)}}}var Vn,Hn,Un,Wn,Gn=S({"src/lib/tasks/grep.ts"(){q(),X(),Vn=[`-h`],Hn=Symbol(`grepQuery`),Wn=class{constructor(){this[Un]=[]}*[(Un=Hn,Symbol.iterator)](){for(let e of this[Hn])yield e}and(...e){return e.length&&this[Hn].push(`--and`,`(`,...P(e,`-e`),`)`),this}param(...e){return this[Hn].push(...P(e,`-e`)),this}}}}),Kn={};C(Kn,{ResetMode:()=>Xn,getResetMode:()=>Jn,resetTask:()=>qn});function qn(e,t){let n=[`reset`];return Yn(e)&&n.push(`--${e}`),n.push(...t),Y(n)}function Jn(e){if(Yn(e))return e;switch(typeof e){case`string`:case`undefined`:return`soft`}}function Yn(e){return typeof e==`string`&&Zn.includes(e)}var Xn,Zn,Qn=S({"src/lib/tasks/reset.ts"(){q(),X(),Xn=(e=>(e.MIXED=`mixed`,e.SOFT=`soft`,e.HARD=`hard`,e.MERGE=`merge`,e.KEEP=`keep`,e))(Xn||{}),Zn=M(Object.values(Xn))}});function $n(){return(0,ue.default)(`simple-git`)}function er(e,t,n){return!t||!String(t).replace(/\s*/,``)?n?(t,...r)=>{e(t,...r),n(t,...r)}:e:(r,...i)=>{e(`%s ${r}`,t,...i),n&&n(r,...i)}}function tr(e,t,{namespace:n}){if(typeof e==`string`)return e;let r=t&&t.namespace||``;return r.startsWith(n)?r.substr(n.length+1):r||n}function nr(e,t,n,r=$n()){let i=e&&`[${e}]`||``,a=[],o=typeof t==`string`?r.extend(t):t,s=tr(z(t,V),o,r);return l(n);function c(t,n){return A(a,nr(e,s.replace(/^[^:]+/,t),n,r))}function l(t){let n=t&&`[${t}]`||``,a=o&&er(o,n)||L,s=er(r,`${i} ${n}`,a);return Object.assign(o?a:s,{label:e,sibling:c,info:s,step:l})}}var rr=S({"src/lib/git-logger.ts"(){q(),ue.default.formatters.L=e=>String(xt(e)?e.length:`-`),ue.default.formatters.B=e=>Buffer.isBuffer(e)?e.toString(`utf8`):R(e)}}),ir,ar=S({"src/lib/runners/tasks-pending-queue.ts"(){E(),rr(),ir=class e{constructor(e=`GitExecutor`){this.logLabel=e,this._queue=new Map}withProgress(e){return this._queue.get(e)}createProgress(t){let n=e.getName(t.commands[0]);return{task:t,logger:nr(this.logLabel,n),name:n}}push(e){let t=this.createProgress(e);return t.logger(`Adding task to the queue, commands = %o`,e.commands),this._queue.set(e,t),t}fatal(e){for(let[t,{logger:n}]of Array.from(this._queue.entries()))t===e.task?(n.info(`Failed %o`,e),n(`Fatal exception, any as-yet un-started tasks run through this executor will not be attempted`)):n.info(`A fatal exception occurred in a previous task, the queue has been purged: %o`,e.message),this.complete(t);if(this._queue.size!==0)throw Error(`Queue size should be zero after fatal: ${this._queue.size}`)}complete(e){this.withProgress(e)&&this._queue.delete(e)}attempt(e){let t=this.withProgress(e);if(!t)throw new T(void 0,`TasksPendingQueue: attempt called for an unknown task`);return t.logger(`Starting task`),t}static getName(t=`empty`){return`task:${t}:${++e.counter}`}static{this.counter=0}}}});function Z(e,t){return{method:at(e.commands)||``,commands:t}}function or(e,t){return n=>{t(`[ERROR] child process exception %o`,n),e.push(Buffer.from(String(n.stack),`ascii`))}}function sr(e,t,n,r){return i=>{n(`%s received %L bytes`,t,i),r(`%B`,i),e.push(i)}}var cr,lr=S({"src/lib/runners/git-executor-chain.ts"(){E(),X(),q(),ar(),cr=class{constructor(e,t,n){this._executor=e,this._scheduler=t,this._plugins=n,this._chain=Promise.resolve(),this._queue=new ir}get cwd(){return this._cwd||this._executor.cwd}set cwd(e){this._cwd=e}get env(){return this._executor.env}get outputHandler(){return this._executor.outputHandler}chain(){return this}push(e){return this._queue.push(e),this._chain=this._chain.then(()=>this.attemptTask(e))}async attemptTask(e){let t=await this._scheduler.next(),n=()=>this._queue.complete(e);try{let{logger:t}=this._queue.attempt(e);return await(an(e)?this.attemptEmptyTask(e,t):this.attemptRemoteTask(e,t))}catch(t){throw this.onFatalException(e,t)}finally{n(),t()}}onFatalException(e,t){let n=t instanceof T?Object.assign(t,{task:e}):new T(e,t&&String(t));return this._chain=Promise.resolve(),this._queue.fatal(n),n}async attemptRemoteTask(e,t){let n=this._plugins.exec(`spawn.binary`,``,Z(e,e.commands)),r=this._plugins.exec(`spawn.args`,[...e.commands],{...Z(e,e.commands),env:{...this.env}}),i=await this.gitResponse(e,n,r,this.outputHandler,t.step(`SPAWN`)),a=await this.handleTaskData(e,r,i,t.step(`HANDLE`));return t(`passing response to task's parser as a %s`,e.format),rn(e)?It(e.parser,a):It(e.parser,a.asStrings())}async attemptEmptyTask(e,t){return t(`empty task bypassing child process to call to task's parser`),e.parser(this)}handleTaskData(e,t,n,r){let{exitCode:i,rejection:a,stdOut:o,stdErr:s}=n;return new Promise((c,l)=>{r(`Preparing to handle process response exitCode=%d stdOut=`,i);let{error:u}=this._plugins.exec(`task.error`,{error:a},{...Z(e,t),...n});if(u&&e.onError)return r.info(`exitCode=%s handling with custom error handler`),e.onError(n,u,e=>{r.info(`custom error handler treated as success`),r(`custom error returned a %s`,R(e)),c(new Tt(Array.isArray(e)?Buffer.concat(e):e,Buffer.concat(s)))},l);if(u)return r.info(`handling as error: exitCode=%s stdErr=%s rejection=%o`,i,s.length,a),l(u);r.info(`retrieving task output complete`),c(new Tt(Buffer.concat(o),Buffer.concat(s)))})}async gitResponse(e,t,n,r,i){let a=i.sibling(`output`),o=this._plugins.exec(`spawn.options`,{cwd:this.cwd,env:this.env,windowsHide:!0},Z(e,e.commands));return new Promise(s=>{let c=[],l=[];i.info(`%s %o`,t,n),i(`%O`,o);let u=this._beforeSpawn(e,n);if(u)return s({stdOut:c,stdErr:l,exitCode:9901,rejection:u});this._plugins.exec(`spawn.before`,void 0,{...Z(e,n),kill(e){u=e||u}});let f=d(t,n,o);f.stdout.on(`data`,sr(c,`stdOut`,i,a.step(`stdOut`))),f.stderr.on(`data`,sr(l,`stdErr`,i,a.step(`stdErr`))),f.on(`error`,or(l,i)),r&&(i(`Passing child process stdOut/stdErr to custom outputHandler`),r(t,f.stdout,f.stderr,[...n])),this._plugins.exec(`spawn.after`,void 0,{...Z(e,n),spawned:f,close(e,t){s({stdOut:c,stdErr:l,exitCode:e,rejection:u||t})},kill(e){f.killed||(u=e,f.kill(`SIGINT`))}})})}_beforeSpawn(e,t){let n;return this._plugins.exec(`spawn.before`,void 0,{...Z(e,t),kill(e){n=e||n}}),n}}}}),ur={};C(ur,{GitExecutor:()=>dr});var dr,fr=S({"src/lib/runners/git-executor.ts"(){lr(),dr=class{constructor(e,t,n){this.cwd=e,this._scheduler=t,this._plugins=n,this._chain=new cr(this,this._scheduler,this._plugins)}chain(){return new cr(this,this._scheduler,this._plugins)}push(e){return this._chain.push(e)}}}});function pr(e,t,n=L){t.then(e=>{n(null,e)},t=>{t?.task===e&&n(t instanceof $e?mr(t):t,void 0)})}function mr(e){let t=e=>{console.warn(`simple-git deprecation notice: accessing GitResponseError.${e} should be GitResponseError.git.${e}, this will no longer be available in version 3`),t=L};return Object.create(e,Object.getOwnPropertyNames(e.git).reduce(n,{}));function n(n,r){return r in e||(n[r]={enumerable:!1,configurable:!1,get(){return t(r),e.git[r]}}),n}}var hr=S({"src/lib/task-callback.ts"(){D(),q()}});function gr(e,t){return tn(n=>{if(!ct(e))throw Error(`Git.cwd: cannot change to non-directory "${e}"`);return(t||n).cwd=e})}var _r=S({"src/lib/tasks/change-working-directory.ts"(){q(),X()}});function vr(e){let t=[`checkout`,...e];return t[1]===`-b`&&t.includes(`-B`)&&(t[1]=ut(t,`-B`)),Y(t)}function yr(){return{checkout(){return this._runTask(vr(W(arguments,1)),G(arguments))},checkoutBranch(e,t){return this._runTask(vr([`-b`,e,t,...W(arguments)]),G(arguments))},checkoutLocalBranch(e){return this._runTask(vr([`-b`,e,...W(arguments)]),G(arguments))}}}var br=S({"src/lib/tasks/checkout.ts"(){q(),X()}});function xr(){return{count:0,garbage:0,inPack:0,packs:0,prunePackable:0,size:0,sizeGarbage:0,sizePack:0}}function Sr(){return{countObjects(){return this._runTask({commands:[`count-objects`,`--verbose`],format:`utf-8`,parser(e){return K(xr(),[Cr],e)}})}}}var Cr,wr=S({"src/lib/tasks/count-objects.ts"(){q(),Cr=new H(/([a-z-]+): (\d+)$/,(e,[t,n])=>{let r=dt(t);Object.hasOwn(e,r)&&(e[r]=N(n))})}});function Tr(e){return K({author:null,branch:``,commit:``,root:!1,summary:{changes:0,insertions:0,deletions:0}},Er,e)}var Er,Dr=S({"src/lib/parsers/parse-commit.ts"(){q(),Er=[new H(/^\[([^\s]+)( \([^)]+\))? ([^\]]+)/,(e,[t,n,r])=>{e.branch=t,e.commit=r,e.root=!!n}),new H(/\s*Author:\s(.+)/i,(e,[t])=>{let n=t.split(`<`),r=n.pop();!r||!r.includes(`@`)||(e.author={email:r.substr(0,r.length-1),name:n.join(`<`).trim()})}),new H(/(\d+)[^,]*(?:,\s*(\d+)[^,]*)(?:,\s*(\d+))/g,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0,e.summary.insertions=parseInt(n,10)||0,e.summary.deletions=parseInt(r,10)||0}),new H(/^(\d+)[^,]*(?:,\s*(\d+)[^(]+\(([+-]))?/,(e,[t,n,r])=>{e.summary.changes=parseInt(t,10)||0;let i=parseInt(n,10)||0;r===`-`?e.summary.deletions=i:r===`+`&&(e.summary.insertions=i)})]}});function Or(e,t,n){return{commands:[`-c`,`core.abbrev=40`,`commit`,...P(e,`-m`),...t,...n],format:`utf-8`,parser:Tr}}function kr(){return{commit(t,...n){let r=G(arguments),i=e(t)||Or(j(t),j(z(n[0],bt,[])),[...M(z(n[1],B,[])),...W(arguments,0,!0)]);return this._runTask(i,r)}};function e(e){return!bt(e)&&J(`git.commit: requires the commit message to be supplied as a string/string[]`)}}var Ar=S({"src/lib/tasks/commit.ts"(){Dr(),q(),X()}});function jr(){return{firstCommit(){return this._runTask(Y([`rev-list`,`--max-parents=0`,`HEAD`],!0),G(arguments))}}}var Mr=S({"src/lib/tasks/first-commit.ts"(){q(),X()}});function Nr(e,t){let n=[`hash-object`,e];return t&&n.push(`-w`),Y(n,!0)}var Pr=S({"src/lib/tasks/hash-object.ts"(){X()}});function Fr(e,t,n){let r=String(n).trim(),i;if(i=Lr.exec(r))return new Ir(e,t,!1,i[1]);if(i=Rr.exec(r))return new Ir(e,t,!0,i[1]);let a=``,o=r.split(` `);for(;o.length;)if(o.shift()===`in`){a=o.join(` `);break}return new Ir(e,t,/^re/i.test(r),a)}var Ir,Lr,Rr,zr=S({"src/lib/responses/InitSummary.ts"(){Ir=class{constructor(e,t,n,r){this.bare=e,this.path=t,this.existing=n,this.gitDir=r}},Lr=/^Init.+ repository in (.+)$/,Rr=/^Rein.+ in (.+)$/}});function Br(e){return e.includes(Hr)}function Vr(e=!1,t,n){let r=[`init`,...n];return e&&!Br(r)&&r.splice(1,0,Hr),{commands:r,format:`utf-8`,parser(e){return Fr(r.includes(`--bare`),t,e)}}}var Hr,Ur=S({"src/lib/tasks/init.ts"(){zr(),Hr=`--bare`}});function Wr(e){for(let t=0;t<e.length;t++){let n=Kr.exec(e[t]);if(n)return`--${n[1]}`}return``}function Gr(e){return Kr.test(e)}var Kr,qr=S({"src/lib/args/log-format.ts"(){Kr=/^--(stat|numstat|name-only|name-status)(=|$)/}}),Jr,Yr=S({"src/lib/responses/DiffSummary.ts"(){Jr=class{constructor(){this.changed=0,this.deletions=0,this.insertions=0,this.files=[]}}}});function Xr(e=``){let t=ti[e];return e=>K(new Jr,t,e,!1)}var Zr,Qr,$r,ei,ti,ni=S({"src/lib/parsers/parse-diff-summary.ts"(){qr(),Yr(),Ln(),q(),Zr=[new H(/^(.+)\s+\|\s+(\d+)(\s+[+\-]+)?$/,(e,[t,n,r=``])=>{e.files.push({file:t.trim(),changes:N(n),insertions:r.replace(/[^+]/g,``).length,deletions:r.replace(/[^-]/g,``).length,binary:!1})}),new H(/^(.+) \|\s+Bin ([0-9.]+) -> ([0-9.]+) ([a-z]+)/,(e,[t,n,r])=>{e.files.push({file:t.trim(),before:N(n),after:N(r),binary:!0})}),new H(/(\d+) files? changed\s*((?:, \d+ [^,]+){0,2})/,(e,[t,n])=>{let r=/(\d+) i/.exec(n),i=/(\d+) d/.exec(n);e.changed=N(t),e.insertions=N(r?.[1]),e.deletions=N(i?.[1])})],Qr=[new H(/(\d+)\t(\d+)\t(.+)$/,(e,[t,n,r])=>{let i=N(t),a=N(n);e.changed++,e.insertions+=i,e.deletions+=a,e.files.push({file:r,changes:i+a,insertions:i,deletions:a,binary:!1})}),new H(/-\t-\t(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,after:0,before:0,binary:!0})})],$r=[new H(/(.+)$/,(e,[t])=>{e.changed++,e.files.push({file:t,changes:0,insertions:0,deletions:0,binary:!1})})],ei=[new H(/([ACDMRTUXB])([0-9]{0,3})\t(.[^\t]*)(\t(.[^\t]*))?$/,(e,[t,n,r,i,a])=>{e.changed++,e.files.push({file:a??r,changes:0,insertions:0,deletions:0,binary:!1,status:mt(Pn(t)&&t),from:mt(!!a&&r!==a&&r),similarity:N(n)})})],ti={"":Zr,"--stat":Zr,"--numstat":Qr,"--name-status":ei,"--name-only":$r}}});function ri(e,t){return t.reduce((t,n,r)=>(t[n]=e[r]||``,t),Object.create({diff:null}))}function ii(e=si,t=ci,n=``){let r=Xr(n);return function(n){let i=k(n.trim(),!1,ai).map(function(n){let i=n.split(oi),a=ri(i[0].split(e),t);return i.length>1&&i[1].trim()&&(a.diff=r(i[1])),a});return{all:i,latest:i.length&&i[0]||null,total:i.length}}}var ai,oi,si,ci,li=S({"src/lib/parsers/parse-list-log-summary.ts"(){q(),ni(),qr(),ai=`òòòòòò `,oi=` òò`,si=` ò `,ci=[`hash`,`date`,`message`,`refs`,`author_name`,`author_email`]}}),ui={};C(ui,{diffSummaryTask:()=>di,validateLogFormatConfig:()=>fi});function di(e){let t=Wr(e),n=[`diff`];return t===``&&(t=`--stat`,n.push(`--stat=4096`)),n.push(...e),fi(n)||{commands:n,format:`utf-8`,parser:Xr(t)}}function fi(e){let t=e.filter(Gr);if(t.length>1)return J(`Summary flags are mutually exclusive - pick one of ${t.join(`,`)}`);if(t.length&&e.includes(`-z`))return J(`Summary flag ${t} parsing is not compatible with null termination option '-z'`)}var pi=S({"src/lib/tasks/diff.ts"(){qr(),ni(),X()}});function mi(e,t){let n=[],r=[];return Object.keys(e).forEach(t=>{n.push(t),r.push(String(e[t]))}),[n,r.join(t)]}function hi(e){return Object.keys(e).reduce((t,n)=>(n in yi||(t[n]=e[n]),t),{})}function gi(e={},t=[]){let n=z(e.splitter,V,si),[r,i]=mi(_t(e.format)?e.format:{hash:`%H`,date:e.strictDate===!1?`%ai`:`%aI`,message:`%s`,refs:`%D`,body:e.multiLine?`%B`:`%b`,author_name:e.mailMap===!1?`%an`:`%aN`,author_email:e.mailMap===!1?`%ae`:`%aE`},n),a=[],o=[`--pretty=format:${ai}${i}${oi}`,...t],s=e.n||e[`max-count`]||e.maxCount;if(s&&o.push(`--max-count=${s}`),e.from||e.to){let t=e.symmetric===!1?`..`:`...`;a.push(`${e.from||``}${t}${e.to||``}`)}return V(e.file)&&o.push(`--follow`,se(e.file)),Mt(hi(e),o),{fields:r,splitter:n,commands:[...o,...a]}}function _i(e,t,n){let r=ii(e,t,Wr(n));return{commands:[`log`,...n],format:`utf-8`,parser:r}}function vi(){return{log(...n){let r=G(arguments),i=gi(Pt(arguments),M(z(arguments[0],B,[]))),a=t(...n)||fi(i.commands)||e(i);return this._runTask(a,r)}};function e(e){return _i(e.splitter,e.fields,e.commands)}function t(e,t){return V(e)&&V(t)&&J(`git.log(string, string) should be replaced with git.log({ from: string, to: string })`)}}var yi,bi=S({"src/lib/tasks/log.ts"(){qr(),li(),q(),X(),pi(),yi=(e=>(e[e[`--pretty`]=0]=`--pretty`,e[e[`max-count`]=1]=`max-count`,e[e.maxCount=2]=`maxCount`,e[e.n=3]=`n`,e[e.file=4]=`file`,e[e.format=5]=`format`,e[e.from=6]=`from`,e[e.to=7]=`to`,e[e.splitter=8]=`splitter`,e[e.symmetric=9]=`symmetric`,e[e.mailMap=10]=`mailMap`,e[e.multiLine=11]=`multiLine`,e[e.strictDate=12]=`strictDate`,e))(yi||{})}}),xi,Si,Ci=S({"src/lib/responses/MergeSummary.ts"(){xi=class{constructor(e,t=null,n){this.reason=e,this.file=t,this.meta=n}toString(){return`${this.file}:${this.reason}`}},Si=class{constructor(){this.conflicts=[],this.merges=[],this.result=`success`}get failed(){return this.conflicts.length>0}get reason(){return this.result}toString(){return this.conflicts.length?`CONFLICTS: ${this.conflicts.join(`, `)}`:`OK`}}}}),wi,Ti,Ei=S({"src/lib/responses/PullSummary.ts"(){wi=class{constructor(){this.remoteMessages={all:[]},this.created=[],this.deleted=[],this.files=[],this.deletions={},this.insertions={},this.summary={changes:0,deletions:0,insertions:0}}},Ti=class{constructor(){this.remote=``,this.hash={local:``,remote:``},this.branch={local:``,remote:``},this.message=``}toString(){return this.message}}}});function Di(e){return e.objects=e.objects||{compressing:0,counting:0,enumerating:0,packReused:0,reused:{count:0,delta:0},total:{count:0,delta:0}}}function Oi(e){let t=/^\s*(\d+)/.exec(e),n=/delta (\d+)/i.exec(e);return{count:N(t&&t[1]||`0`),delta:N(n&&n[1]||`0`)}}var ki,Ai=S({"src/lib/parsers/parse-remote-objects.ts"(){q(),ki=[new U(/^remote:\s*(enumerating|counting|compressing) objects: (\d+),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Di(e.remoteMessages);Object.assign(i,{[r]:N(n)})}),new U(/^remote:\s*(enumerating|counting|compressing) objects: \d+% \(\d+\/(\d+)\),/i,(e,[t,n])=>{let r=t.toLowerCase(),i=Di(e.remoteMessages);Object.assign(i,{[r]:N(n)})}),new U(/total ([^,]+), reused ([^,]+), pack-reused (\d+)/i,(e,[t,n,r])=>{let i=Di(e.remoteMessages);i.total=Oi(t),i.reused=Oi(n),i.packReused=N(r)})]}});function ji(e,t){return K({remoteMessages:new Ni},Mi,t)}var Mi,Ni,Pi=S({"src/lib/parsers/parse-remote-messages.ts"(){q(),Ai(),Mi=[new U(/^remote:\s*(.+)$/,(e,[t])=>(e.remoteMessages.all.push(t.trim()),!1)),...ki,new U([/create a (?:pull|merge) request/i,/\s(https?:\/\/\S+)$/],(e,[t])=>{e.remoteMessages.pullRequestUrl=t}),new U([/found (\d+) vulnerabilities.+\(([^)]+)\)/i,/\s(https?:\/\/\S+)$/],(e,[t,n,r])=>{e.remoteMessages.vulnerabilities={count:N(t),summary:n,url:r}})],Ni=class{constructor(){this.all=[]}}}});function Fi(e,t){let n=K(new Ti,Bi,[e,t]);return n.message&&n}var Ii,Li,Ri,zi,Bi,Vi,Hi,Ui=S({"src/lib/parsers/parse-pull.ts"(){Ei(),q(),Pi(),Ii=/^\s*(.+?)\s+\|\s+\d+\s*(\+*)(-*)/,Li=/(\d+)\D+((\d+)\D+\(\+\))?(\D+(\d+)\D+\(-\))?/,Ri=/^(create|delete) mode \d+ (.+)/,zi=[new H(Ii,(e,[t,n,r])=>{e.files.push(t),n&&(e.insertions[t]=n.length),r&&(e.deletions[t]=r.length)}),new H(Li,(e,[t,,n,,r])=>n!==void 0||r!==void 0?(e.summary.changes=+t||0,e.summary.insertions=+n||0,e.summary.deletions=+r||0,!0):!1),new H(Ri,(e,[t,n])=>{A(e.files,n),A(t===`create`?e.created:e.deleted,n)})],Bi=[new H(/^from\s(.+)$/i,(e,[t])=>void(e.remote=t)),new H(/^fatal:\s(.+)$/,(e,[t])=>void(e.message=t)),new H(/([a-z0-9]+)\.\.([a-z0-9]+)\s+(\S+)\s+->\s+(\S+)$/,(e,[t,n,r,i])=>{e.branch.local=r,e.hash.local=t,e.branch.remote=i,e.hash.remote=n})],Vi=(e,t)=>K(new wi,zi,[e,t]),Hi=(e,t)=>Object.assign(new wi,Vi(e,t),ji(e,t))}}),Wi,Gi,Ki,qi=S({"src/lib/parsers/parse-merge.ts"(){Ci(),q(),Ui(),Wi=[new H(/^Auto-merging\s+(.+)$/,(e,[t])=>{e.merges.push(t)}),new H(/^CONFLICT\s+\((.+)\): Merge conflict in (.+)$/,(e,[t,n])=>{e.conflicts.push(new xi(t,n))}),new H(/^CONFLICT\s+\((.+\/delete)\): (.+) deleted in (.+) and/,(e,[t,n,r])=>{e.conflicts.push(new xi(t,n,{deleteRef:r}))}),new H(/^CONFLICT\s+\((.+)\):/,(e,[t])=>{e.conflicts.push(new xi(t,null))}),new H(/^Automatic merge failed;\s+(.+)$/,(e,[t])=>{e.result=t})],Gi=(e,t)=>Object.assign(Ki(e,t),Hi(e,t)),Ki=e=>K(new Si,Wi,e)}});function Ji(e){return e.length?{commands:[`merge`,...e],format:`utf-8`,parser(e,t){let n=Gi(e,t);if(n.failed)throw new $e(n);return n}}:J(`Git.merge requires at least one option`)}var Yi=S({"src/lib/tasks/merge.ts"(){D(),qi(),X()}});function Xi(e,t,n){let r=n.includes(`deleted`),i=n.includes(`tag`)||/^refs\/tags/.test(e),a=!n.includes(`new`);return{deleted:r,tag:i,branch:!i,new:!a,alreadyUpdated:a,local:e,remote:t}}var Zi,Qi,$i,ea=S({"src/lib/parsers/parse-push.ts"(){q(),Pi(),Zi=[new H(/^Pushing to (.+)$/,(e,[t])=>{e.repo=t}),new H(/^updating local tracking ref '(.+)'/,(e,[t])=>{e.ref={...e.ref||{},local:t}}),new H(/^[=*-]\s+([^:]+):(\S+)\s+\[(.+)]$/,(e,[t,n,r])=>{e.pushed.push(Xi(t,n,r))}),new H(/^Branch '([^']+)' set up to track remote branch '([^']+)' from '([^']+)'/,(e,[t,n,r])=>{e.branch={...e.branch||{},local:t,remote:n,remoteName:r}}),new H(/^([^:]+):(\S+)\s+([a-z0-9]+)\.\.([a-z0-9]+)$/,(e,[t,n,r,i])=>{e.update={head:{local:t,remote:n},hash:{from:r,to:i}}})],Qi=(e,t)=>{let n=$i(e,t),r=ji(e,t);return{...n,...r}},$i=(e,t)=>K({pushed:[]},Zi,[e,t])}}),ta={};C(ta,{pushTagsTask:()=>na,pushTask:()=>ra});function na(e={},t){return A(t,`--tags`),ra(e,t)}function ra(e={},t){let n=[`push`,...t];return e.branch&&n.splice(1,0,e.branch),e.remote&&n.splice(1,0,e.remote),ut(n,`-v`),A(n,`--verbose`),A(n,`--porcelain`),{commands:n,format:`utf-8`,parser:Qi}}var ia=S({"src/lib/tasks/push.ts"(){ea(),q()}});function aa(){return{showBuffer(){let e=[`show`,...W(arguments,1)];return e.includes(`--binary`)||e.splice(1,0,`--binary`),this._runTask(nn(e),G(arguments))},show(){let e=[`show`,...W(arguments,1)];return this._runTask(Y(e),G(arguments))}}}var oa=S({"src/lib/tasks/show.ts"(){q(),X()}}),sa,ca,la=S({"src/lib/responses/FileStatusSummary.ts"(){sa=/^(.+)\0(.+)$/,ca=class{constructor(e,t,n){if(this.path=e,this.index=t,this.working_dir=n,t===`R`||n===`R`){let t=sa.exec(e)||[null,e,e];this.from=t[2]||``,this.path=t[1]||``}}}}});function ua(e){let[t,n]=e.split(I);return{from:n||t,to:t}}function Q(e,t,n){return[`${e}${t}`,n]}function da(e,...t){return t.map(t=>Q(e,t,(e,t)=>e.conflicted.push(t)))}function fa(e,t){let n=t.trim();switch(` `){case n.charAt(2):return r(n.charAt(0),n.charAt(1),n.slice(3));case n.charAt(1):return r(` `,n.charAt(0),n.slice(2));default:return}function r(t,n,r){let i=`${t}${n}`,a=ma.get(i);a&&a(e,r),i!==`##`&&i!==`!!`&&e.files.push(new ca(r,t,n))}}var pa,ma,ha,ga=S({"src/lib/responses/StatusSummary.ts"(){q(),la(),pa=class{constructor(){this.not_added=[],this.conflicted=[],this.created=[],this.deleted=[],this.ignored=void 0,this.modified=[],this.renamed=[],this.files=[],this.staged=[],this.ahead=0,this.behind=0,this.current=null,this.tracking=null,this.detached=!1,this.isClean=()=>!this.files.length}},ma=new Map([Q(` `,`A`,(e,t)=>e.created.push(t)),Q(` `,`D`,(e,t)=>e.deleted.push(t)),Q(` `,`M`,(e,t)=>e.modified.push(t)),Q(`A`,` `,(e,t)=>{e.created.push(t),e.staged.push(t)}),Q(`A`,`M`,(e,t)=>{e.created.push(t),e.staged.push(t),e.modified.push(t)}),Q(`D`,` `,(e,t)=>{e.deleted.push(t),e.staged.push(t)}),Q(`M`,` `,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`M`,`M`,(e,t)=>{e.modified.push(t),e.staged.push(t)}),Q(`R`,` `,(e,t)=>{e.renamed.push(ua(t))}),Q(`R`,`M`,(e,t)=>{let n=ua(t);e.renamed.push(n),e.modified.push(n.to)}),Q(`!`,`!`,(e,t)=>{(e.ignored=e.ignored||[]).push(t)}),Q(`?`,`?`,(e,t)=>e.not_added.push(t)),...da(`A`,`A`,`U`),...da(`D`,`D`,`U`),...da(`U`,`A`,`D`,`U`),[`##`,(e,t)=>{let n=/ahead (\d+)/,r=/behind (\d+)/,i=/^(.+?(?=(?:\.{3}|\s|$)))/,a=/\.{3}(\S*)/,o=/\son\s(\S+?)(?=\.{3}|$)/,s=n.exec(t);e.ahead=s&&+s[1]||0,s=r.exec(t),e.behind=s&&+s[1]||0,s=i.exec(t),e.current=z(s?.[1],V,null),s=a.exec(t),e.tracking=z(s?.[1],V,null),s=o.exec(t),s&&(e.current=z(s?.[1],V,e.current)),e.detached=/\(no branch\)/.test(t)}]]),ha=function(e){let t=e.split(I),n=new pa;for(let e=0,r=t.length;e<r;){let r=t[e++].trim();r&&(r.charAt(0)===`R`&&(r+=I+(t[e++]||``)),fa(n,r))}return n}}});function _a(e){return{format:`utf-8`,commands:[`status`,`--porcelain`,`-b`,`-u`,`--null`,...e.filter(e=>!va.includes(e))],parser(e){return ha(e)}}}var va,ya=S({"src/lib/tasks/status.ts"(){ga(),va=[`--null`,`-z`]}});function ba(e=0,t=0,n=0,r=``,i=!0){return Object.defineProperty({major:e,minor:t,patch:n,agent:r,installed:i},`toString`,{value(){return`${this.major}.${this.minor}.${this.patch}`},configurable:!1,enumerable:!1})}function xa(){return ba(0,0,0,``,!1)}function Sa(){return{version(){return this._runTask({commands:[`--version`],format:`utf-8`,parser:Ca,onError(e,t,n,r){if(e.exitCode===-2)return n(Buffer.from(wa));r(t)}})}}}function Ca(e){return e===wa?xa():K(ba(0,0,0,e),Ta,e)}var wa,Ta,Ea=S({"src/lib/tasks/version.ts"(){q(),wa=`installed=false`,Ta=[new H(/version (\d+)\.(\d+)\.(\d+)(?:\s*\((.+)\))?/,(e,[t,n,r,i=``])=>{Object.assign(e,ba(N(t),N(n),N(r),i))}),new H(/version (\d+)\.(\d+)\.(\D+)(.+)?$/,(e,[t,n,r,i=``])=>{Object.assign(e,ba(N(t),N(n),r,i))})]}});function Da(e,t,n,...r){return V(n)?t(n,z(r[0],V),W(arguments)):J(`git.${e}() requires a string 'repoPath'`)}function Oa(){return{clone(e,...t){return this._runTask(Da(`clone`,ka,z(e,V),...t),G(arguments))},mirror(e,...t){return this._runTask(Da(`mirror`,Aa,z(e,V),...t),G(arguments))}}}var ka,Aa,ja=S({"src/lib/tasks/clone.ts"(){X(),q(),ka=(e,t,n)=>{let r=[`clone`,...n];return V(e)&&r.push(se(e)),V(t)&&r.push(se(t)),Y(r)},Aa=(e,t,n)=>(A(n,`--mirror`),ka(e,t,n))}}),Ma={};C(Ma,{SimpleGitApi:()=>Na});var Na,Pa=S({"src/lib/simple-git-api.ts"(){hr(),_r(),br(),wr(),Ar(),Nn(),Mr(),Gn(),Pr(),Ur(),bi(),Yi(),ia(),oa(),ya(),X(),Ea(),q(),ja(),Na=class{constructor(e){this._executor=e}_runTask(e,t){let n=this._executor.chain(),r=n.push(e);return t&&pr(e,r,t),Object.create(this,{then:{value:r.then.bind(r)},catch:{value:r.catch.bind(r)},_executor:{value:n}})}add(e){return this._runTask(Y([`add`,...j(e)]),G(arguments))}cwd(e){let t=G(arguments);return typeof e==`string`?this._runTask(gr(e,this._executor),t):typeof e?.path==`string`?this._runTask(gr(e.path,e.root&&this._executor||void 0),t):this._runTask(J(`Git.cwd: workingDirectory must be supplied as a string`),t)}hashObject(e,t){return this._runTask(Nr(e,t===!0),G(arguments))}init(e){return this._runTask(Vr(e===!0,this._executor.cwd,W(arguments)),G(arguments))}merge(){return this._runTask(Ji(W(arguments)),G(arguments))}mergeFromTo(e,t){return V(e)&&V(t)?this._runTask(Ji([e,t,...W(arguments)]),G(arguments,!1)):this._runTask(J(`Git.mergeFromTo requires that the 'remote' and 'branch' arguments are supplied as strings`))}outputHandler(e){return this._executor.outputHandler=e,this}push(){let e=ra({remote:z(arguments[0],V),branch:z(arguments[1],V)},W(arguments));return this._runTask(e,G(arguments))}stash(){return this._runTask(Y([`stash`,...W(arguments)]),G(arguments))}status(){return this._runTask(_a(W(arguments)),G(arguments))}},Object.assign(Na.prototype,yr(),Oa(),kr(),jn(),Sr(),jr(),Bn(),vi(),aa(),Sa())}}),Fa={};C(Fa,{Scheduler:()=>La});var Ia,La,Ra=S({"src/lib/runners/scheduler.ts"(){q(),rr(),Ia=(()=>{let e=0;return()=>{e++;let{promise:t,done:n}=(0,g.createDeferred)();return{promise:t,done:n,id:e}}})(),La=class{constructor(e=2){this.concurrency=e,this.logger=nr(``,`scheduler`),this.pending=[],this.running=[],this.logger(`Constructed, concurrency=%s`,e)}schedule(){if(!this.pending.length||this.running.length>=this.concurrency){this.logger(`Schedule attempt ignored, pending=%s running=%s concurrency=%s`,this.pending.length,this.running.length,this.concurrency);return}let e=A(this.running,this.pending.shift());this.logger(`Attempting id=%s`,e.id),e.done(()=>{this.logger(`Completing id=`,e.id),ut(this.running,e),this.schedule()})}next(){let{promise:e,id:t}=A(this.pending,Ia());return this.logger(`Scheduling id=%s`,t),this.schedule(),e}}}}),za={};C(za,{applyPatchTask:()=>Ba});function Ba(e,t){return Y([`apply`,...t,...e])}var Va=S({"src/lib/tasks/apply-patch.ts"(){X()}});function Ha(e,t){return{branch:e,hash:t,success:!0}}function Ua(e){return{branch:e,hash:null,success:!1}}var Wa,Ga=S({"src/lib/responses/BranchDeleteSummary.ts"(){Wa=class{constructor(){this.all=[],this.branches={},this.errors=[]}get success(){return!this.errors.length}}}});function Ka(e,t){return t===1&&Ja.test(e)}var qa,Ja,Ya,Xa,Za=S({"src/lib/parsers/parse-branch-delete.ts"(){Ga(),q(),qa=/(\S+)\s+\(\S+\s([^)]+)\)/,Ja=/^error[^']+'([^']+)'/m,Ya=[new H(qa,(e,[t,n])=>{let r=Ha(t,n);e.all.push(r),e.branches[t]=r}),new H(Ja,(e,[t])=>{let n=Ua(t);e.errors.push(n),e.all.push(n),e.branches[t]=n})],Xa=(e,t)=>K(new Wa,Ya,[e,t])}}),Qa,$a=S({"src/lib/responses/BranchSummary.ts"(){Qa=class{constructor(){this.all=[],this.branches={},this.current=``,this.detached=!1}push(e,t,n,r,i){e===`*`&&(this.detached=t,this.current=n),this.all.push(n),this.branches[n]={current:e===`*`,linkedWorkTree:e===`+`,name:n,commit:r,label:i}}}}});function eo(e){return e?e.charAt(0):``}function to(e,t=!1){return K(new Qa,t?[ro]:no,e)}var no,ro,io=S({"src/lib/parsers/parse-branch.ts"(){$a(),q(),no=[new H(/^([*+]\s)?\((?:HEAD )?detached (?:from|at) (\S+)\)\s+([a-z0-9]+)\s(.*)$/,(e,[t,n,r,i])=>{e.push(eo(t),!0,n,r,i)}),new H(/^([*+]\s)?(\S+)\s+([a-z0-9]+)\s?(.*)$/s,(e,[t,n,r,i])=>{e.push(eo(t),!1,n,r,i)})],ro=new H(/^(\S+)$/s,(e,[t])=>{e.push(`*`,!1,t,``,``)})}}),ao={};C(ao,{branchLocalTask:()=>co,branchTask:()=>so,containsDeleteBranchCommand:()=>oo,deleteBranchTask:()=>uo,deleteBranchesTask:()=>lo});function oo(e){let t=[`-d`,`-D`,`--delete`];return e.some(e=>t.includes(e))}function so(e){let t=oo(e),n=e.includes(`--show-current`),r=[`branch`,...e];return r.length===1&&r.push(`-a`),r.includes(`-v`)||r.splice(1,0,`-v`),{format:`utf-8`,commands:r,parser(e,r){return t?Xa(e,r).all[0]:to(e,n)}}}function co(){return{format:`utf-8`,commands:[`branch`,`-v`],parser(e){return to(e)}}}function lo(e,t=!1){return{format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,...e],parser(e,t){return Xa(e,t)},onError({exitCode:e,stdOut:t},n,r,i){if(!Ka(String(n),e))return i(n);r(t)}}}function uo(e,t=!1){let n={format:`utf-8`,commands:[`branch`,`-v`,t?`-D`:`-d`,e],parser(t,n){return Xa(t,n).branches[e]},onError({exitCode:e,stdErr:t,stdOut:r},i,a,o){if(!Ka(String(i),e))return o(i);throw new $e(n.parser(F(r),F(t)),String(i))}};return n}var fo=S({"src/lib/tasks/branch.ts"(){D(),Za(),io(),q()}});function po(e){let t=e.trim().replace(/^["']|["']$/g,``);return t&&a(t)}var mo,ho=S({"src/lib/responses/CheckIgnore.ts"(){mo=e=>e.split(/\n/g).map(po).filter(Boolean)}}),go={};C(go,{checkIgnoreTask:()=>_o});function _o(e){return{commands:[`check-ignore`,...e],format:`utf-8`,parser:mo}}var vo=S({"src/lib/tasks/check-ignore.ts"(){ho()}});function yo(e,t){return K({raw:e,remote:null,branches:[],tags:[],updated:[],deleted:[]},bo,[e,t])}var bo,xo=S({"src/lib/parsers/parse-fetch.ts"(){q(),bo=[new H(/From (.+)$/,(e,[t])=>{e.remote=t}),new H(/\* \[new branch]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.branches.push({name:t,tracking:n})}),new H(/\* \[new tag]\s+(\S+)\s*-> (.+)$/,(e,[t,n])=>{e.tags.push({name:t,tracking:n})}),new H(/- \[deleted]\s+\S+\s*-> (.+)$/,(e,[t])=>{e.deleted.push({tracking:t})}),new H(/\s*([^.]+)\.\.(\S+)\s+(\S+)\s*-> (.+)$/,(e,[t,n,r,i])=>{e.updated.push({name:r,tracking:i,to:n,from:t})})]}}),So={};C(So,{fetchTask:()=>wo});function Co(e){return/^--upload-pack(=|$)/.test(e)}function wo(e,t,n){let r=[`fetch`,...n];return e&&t&&r.push(e,t),r.find(Co)?J(`git.fetch: potential exploit argument blocked.`):{commands:r,format:`utf-8`,parser:yo}}var To=S({"src/lib/tasks/fetch.ts"(){xo(),X()}});function Eo(e){return K({moves:[]},Do,e)}var Do,Oo=S({"src/lib/parsers/parse-move.ts"(){q(),Do=[new H(/^Renaming (.+) to (.+)$/,(e,[t,n])=>{e.moves.push({from:t,to:n})})]}}),ko={};C(ko,{moveTask:()=>Ao});function Ao(e,t){return{commands:[`mv`,`-v`,...j(e),t],format:`utf-8`,parser:Eo}}var jo=S({"src/lib/tasks/move.ts"(){Oo(),q()}}),Mo={};C(Mo,{pullTask:()=>No});function No(e,t,n){let r=[`pull`,...n];return e&&t&&r.splice(1,0,e,t),{commands:r,format:`utf-8`,parser(e,t){return Hi(e,t)},onError(e,t,n,r){let i=Fi(F(e.stdOut),F(e.stdErr));if(i)return r(new $e(i));r(t)}}}var Po=S({"src/lib/tasks/pull.ts"(){D(),Ui(),q()}});function Fo(e){let t={};return Lo(e,([e])=>t[e]={name:e}),Object.values(t)}function Io(e){let t={};return Lo(e,([e,n,r])=>{Object.hasOwn(t,e)||(t[e]={name:e,refs:{fetch:``,push:``}}),r&&n&&(t[e].refs[r.replace(/[^a-z]/g,``)]=n)}),Object.values(t)}function Lo(e,t){st(e,e=>t(e.split(/\s+/)))}var Ro=S({"src/lib/responses/GetRemoteSummary.ts"(){q()}}),zo={};C(zo,{addRemoteTask:()=>Bo,getRemotesTask:()=>Vo,listRemotesTask:()=>Ho,remoteTask:()=>Uo,removeRemoteTask:()=>Wo});function Bo(e,t,n){return Y([`remote`,`add`,...n,e,t])}function Vo(e){let t=[`remote`];return e&&t.push(`-v`),{commands:t,format:`utf-8`,parser:e?Io:Fo}}function Ho(e){let t=[...e];return t[0]!==`ls-remote`&&t.unshift(`ls-remote`),Y(t)}function Uo(e){let t=[...e];return t[0]!==`remote`&&t.unshift(`remote`),Y(t)}function Wo(e){return Y([`remote`,`remove`,e])}var Go=S({"src/lib/tasks/remote.ts"(){Ro(),X()}}),Ko={};C(Ko,{stashListTask:()=>qo});function qo(e={},t){let n=gi(e),r=[`stash`,`list`,...n.commands,...t],i=ii(n.splitter,n.fields,Wr(r));return fi(r)||{commands:r,format:`utf-8`,parser:i}}var Jo=S({"src/lib/tasks/stash-list.ts"(){qr(),li(),pi(),bi()}}),Yo={};C(Yo,{addSubModuleTask:()=>Xo,initSubModuleTask:()=>Zo,subModuleTask:()=>Qo,updateSubModuleTask:()=>$o});function Xo(e,t){return Qo([`add`,e,t])}function Zo(e){return Qo([`init`,...e])}function Qo(e){let t=[...e];return t[0]!==`submodule`&&t.unshift(`submodule`),Y(t)}function $o(e){return Qo([`update`,...e])}var es=S({"src/lib/tasks/sub-module.ts"(){X()}});function ts(e,t){let n=Number.isNaN(e);return n===Number.isNaN(t)?n?ns(e,t):0:n?1:-1}function ns(e,t){return e===t?0:e>t?1:-1}function rs(e){return e.trim()}function is(e){return typeof e==`string`&&parseInt(e.replace(/^\D+/g,``),10)||0}var as,os,ss=S({"src/lib/responses/TagList.ts"(){as=class{constructor(e,t){this.all=e,this.latest=t}},os=function(e,t=!1){let n=e.split(`
|
|
9
9
|
`).map(rs).filter(Boolean);t||n.sort(function(e,t){let n=e.split(`.`),r=t.split(`.`);if(n.length===1||r.length===1)return ts(is(n[0]),is(r[0]));for(let e=0,t=Math.max(n.length,r.length);e<t;e++){let t=ns(is(n[e]),is(r[e]));if(t)return t}return 0});let r=t?n[0]:[...n].reverse().find(e=>e.indexOf(`.`)>=0);return new as(n,r)}}}),cs={};C(cs,{addAnnotatedTagTask:()=>ds,addTagTask:()=>us,tagListTask:()=>ls});function ls(e=[]){let t=e.some(e=>/^--sort=/.test(e));return{format:`utf-8`,commands:[`tag`,`-l`,...e],parser(e){return os(e,t)}}}function us(e){return{format:`utf-8`,commands:[`tag`,e],parser(){return{name:e}}}}function ds(e,t){return{format:`utf-8`,commands:[`tag`,`-a`,`-m`,t,e],parser(){return{name:e}}}}var fs=S({"src/lib/tasks/tag.ts"(){ss()}}),ps=Ze({"src/git.js"(e,t){var{GitExecutor:n}=(fr(),w(ur)),{SimpleGitApi:r}=(Pa(),w(Ma)),{Scheduler:i}=(Ra(),w(Fa)),{adhocExecTask:a,configurationErrorTask:o}=(X(),w(en)),{asArray:s,filterArray:c,filterPrimitives:l,filterString:u,filterStringOrStringArray:d,filterType:f,getTrailingOptions:p,trailingFunctionArgument:m,trailingOptionsArgument:ee}=(q(),w(Rt)),{applyPatchTask:te}=(Va(),w(za)),{branchTask:ne,branchLocalTask:re,deleteBranchesTask:ie,deleteBranchTask:ae}=(fo(),w(ao)),{checkIgnoreTask:oe}=(vo(),w(go)),{checkIsRepoTask:se}=(qt(),w(zt)),{cleanWithOptionsTask:h,isCleanOptionsArray:ce}=(bn(),w(sn)),{diffSummaryTask:le}=(pi(),w(ui)),{fetchTask:ue}=(To(),w(So)),{moveTask:g}=(jo(),w(ko)),{pullTask:de}=(Po(),w(Mo)),{pushTagsTask:fe}=(ia(),w(ta)),{addRemoteTask:pe,getRemotesTask:me,listRemotesTask:he,remoteTask:ge,removeRemoteTask:_}=(Go(),w(zo)),{getResetMode:_e,resetTask:ve}=(Qn(),w(Kn)),{stashListTask:ye}=(Jo(),w(Ko)),{addSubModuleTask:be,initSubModuleTask:xe,subModuleTask:Se,updateSubModuleTask:Ce}=(es(),w(Yo)),{addAnnotatedTagTask:we,addTagTask:Te,tagListTask:Ee}=(fs(),w(cs)),{straightThroughBufferTask:De,straightThroughStringTask:v}=(X(),w(en));function y(e,t){this._plugins=t,this._executor=new n(e.baseDir,new i(e.maxConcurrentProcesses),t),this._trimmed=e.trimmed}(y.prototype=Object.create(r.prototype)).constructor=y,y.prototype.customBinary=function(e){return this._plugins.reconfigure(`binary`,e),this},y.prototype.env=function(e,t){return arguments.length===1&&typeof e==`object`?this._executor.env=e:(this._executor.env=this._executor.env||{})[e]=t,this},y.prototype.stashList=function(e){return this._runTask(ye(ee(arguments)||{},c(e)&&e||[]),m(arguments))},y.prototype.mv=function(e,t){return this._runTask(g(e,t),m(arguments))},y.prototype.checkoutLatestTag=function(e){var t=this;return this.pull(function(){t.tags(function(n,r){t.checkout(r.latest,e)})})},y.prototype.pull=function(e,t,n,r){return this._runTask(de(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.fetch=function(e,t){return this._runTask(ue(f(e,u),f(t,u),p(arguments)),m(arguments))},y.prototype.silent=function(e){return this._runTask(a(()=>console.warn("simple-git deprecation notice: git.silent: logging should be configured using the `debug` library / `DEBUG` environment variable, this method will be removed.")))},y.prototype.tags=function(e,t){return this._runTask(Ee(p(arguments)),m(arguments))},y.prototype.rebase=function(){return this._runTask(v([`rebase`,...p(arguments)]),m(arguments))},y.prototype.reset=function(e){return this._runTask(ve(_e(e),p(arguments)),m(arguments))},y.prototype.revert=function(e){let t=m(arguments);return typeof e==`string`?this._runTask(v([`revert`,...p(arguments,0,!0),e]),t):this._runTask(o(`Commit must be a string`),t)},y.prototype.addTag=function(e){let t=typeof e==`string`?Te(e):o(`Git.addTag requires a tag name`);return this._runTask(t,m(arguments))},y.prototype.addAnnotatedTag=function(e,t){return this._runTask(we(e,t),m(arguments))},y.prototype.deleteLocalBranch=function(e,t,n){return this._runTask(ae(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.deleteLocalBranches=function(e,t,n){return this._runTask(ie(e,typeof t==`boolean`?t:!1),m(arguments))},y.prototype.branch=function(e,t){return this._runTask(ne(p(arguments)),m(arguments))},y.prototype.branchLocal=function(e){return this._runTask(re(),m(arguments))},y.prototype.raw=function(e){let t=!Array.isArray(e),n=[].slice.call(t?arguments:e,0);for(let e=0;e<n.length&&t;e++)if(!l(n[e])){n.splice(e,n.length-e);break}n.push(...p(arguments,0,!0));var r=m(arguments);return n.length?this._runTask(v(n,this._trimmed),r):this._runTask(o(`Raw: must supply one or more command to execute`),r)},y.prototype.submoduleAdd=function(e,t,n){return this._runTask(be(e,t),m(arguments))},y.prototype.submoduleUpdate=function(e,t){return this._runTask(Ce(p(arguments,!0)),m(arguments))},y.prototype.submoduleInit=function(e,t){return this._runTask(xe(p(arguments,!0)),m(arguments))},y.prototype.subModule=function(e,t){return this._runTask(Se(p(arguments)),m(arguments))},y.prototype.listRemote=function(){return this._runTask(he(p(arguments)),m(arguments))},y.prototype.addRemote=function(e,t,n){return this._runTask(pe(e,t,p(arguments)),m(arguments))},y.prototype.removeRemote=function(e,t){return this._runTask(_(e),m(arguments))},y.prototype.getRemotes=function(e,t){return this._runTask(me(e===!0),m(arguments))},y.prototype.remote=function(e,t){return this._runTask(ge(p(arguments)),m(arguments))},y.prototype.tag=function(e,t){let n=p(arguments);return n[0]!==`tag`&&n.unshift(`tag`),this._runTask(v(n),m(arguments))},y.prototype.updateServerInfo=function(e){return this._runTask(v([`update-server-info`]),m(arguments))},y.prototype.pushTags=function(e,t){let n=fe({remote:f(e,u)},p(arguments));return this._runTask(n,m(arguments))},y.prototype.rm=function(e){return this._runTask(v([`rm`,`-f`,...s(e)]),m(arguments))},y.prototype.rmKeepLocal=function(e){return this._runTask(v([`rm`,`--cached`,...s(e)]),m(arguments))},y.prototype.catFile=function(e,t){return this._catFile(`utf-8`,arguments)},y.prototype.binaryCatFile=function(){return this._catFile(`buffer`,arguments)},y.prototype._catFile=function(e,t){var n=m(t),r=[`cat-file`],i=t[0];if(typeof i==`string`)return this._runTask(o(`Git.catFile: options must be supplied as an array of strings`),n);Array.isArray(i)&&r.push.apply(r,i);let a=e===`buffer`?De(r):v(r);return this._runTask(a,n)},y.prototype.diff=function(e,t){let n=u(e)?o(`git.diff: supplying options as a single string is no longer supported, switch to an array of strings`):v([`diff`,...p(arguments)]);return this._runTask(n,m(arguments))},y.prototype.diffSummary=function(){return this._runTask(le(p(arguments,1)),m(arguments))},y.prototype.applyPatch=function(e){let t=d(e)?te(s(e),p([].slice.call(arguments,1))):o(`git.applyPatch requires one or more string patches as the first argument`);return this._runTask(t,m(arguments))},y.prototype.revparse=function(){let e=[`rev-parse`,...p(arguments,!0)];return this._runTask(v(e,!0),m(arguments))},y.prototype.clean=function(e,t,n){let r=ce(e),i=r&&e.join(``)||f(e,u)||``,a=p([].slice.call(arguments,+!!r));return this._runTask(h(i,a),m(arguments))},y.prototype.exec=function(e){return this._runTask({commands:[],format:`utf-8`,parser(){typeof e==`function`&&e()}})},y.prototype.clearQueue=function(){return this._runTask(a(()=>console.warn(`simple-git deprecation notice: clearQueue() is deprecated and will be removed, switch to using the abortPlugin instead.`)))},y.prototype.checkIgnore=function(e,t){return this._runTask(oe(s(f(e,d,[]))),m(arguments))},y.prototype.checkIsRepo=function(e,t){return this._runTask(se(f(e,u)),m(arguments))},t.exports=y}});E();var ms=class extends T{constructor(e,t){super(void 0,t),this.config=e}};E(),E();var $=class extends T{constructor(e,t,n){super(e,n),this.task=e,this.plugin=t,Object.setPrototypeOf(this,new.target.prototype)}};D(),tt(),qt(),bn(),Nn(),Ln(),Gn(),Qn();function hs(e){if(e)return[{type:`spawn.before`,action(t,n){e.aborted&&n.kill(new $(void 0,`abort`,`Abort already signaled`))}},{type:`spawn.after`,action(t,n){function r(){n.kill(new $(void 0,`abort`,`Abort signal received`))}e.addEventListener(`abort`,r),n.spawned.on(`close`,()=>e.removeEventListener(`abort`,r))}}]}function gs(e={}){return{type:`spawn.args`,action(t,{env:n}){for(let r of Ke(t,n))if(e[r.category]!==!0)throw new $(void 0,`unsafe`,r.message);return t}}}q();function _s(e){let t=P(e,`-c`);return{type:`spawn.args`,action(e){return[...t,...e]}}}q();var vs=(0,g.deferred)().promise;function ys({onClose:e=!0,onExit:t=50}={}){function n(){let n=-1,i={close:(0,g.deferred)(),closeTimeout:(0,g.deferred)(),exit:(0,g.deferred)(),exitTimeout:(0,g.deferred)()},a=Promise.race([e===!1?vs:i.closeTimeout.promise,t===!1?vs:i.exitTimeout.promise]);return r(e,i.close,i.closeTimeout),r(t,i.exit,i.exitTimeout),{close(e){n=e,i.close.done()},exit(e){n=e,i.exit.done()},get exitCode(){return n},result:a}}function r(e,t,n){e!==!1&&(e===!0?t.promise:t.promise.then(()=>pt(e))).then(n.done)}return{type:`spawn.after`,async action(e,{spawned:t,close:r}){let i=n(),a=!0,o=()=>void(a=!1);t.stdout?.on(`data`,o),t.stderr?.on(`data`,o),t.on(`error`,o),t.on(`close`,e=>i.close(e)),t.on(`exit`,e=>i.exit(e));try{await i.result,a&&await pt(50),r(i.exitCode)}catch(e){r(i.exitCode,e)}}}}q();var bs=`Invalid value supplied for custom binary, requires a single string or an array containing either one or two strings`,xs=`Invalid value supplied for custom binary, restricted characters must be removed or supply the unsafe.allowUnsafeCustomBinary option`;function Ss(e){return!e||!/^([a-z]:)?([a-z0-9/.\\_~-]+)$/i.test(e)}function Cs(e,t){if(e.length<1||e.length>2)throw new $(void 0,`binary`,bs);if(e.some(Ss))if(t)console.warn(xs);else throw new $(void 0,`binary`,xs);let[n,r]=e;return{binary:n,prefix:r}}function ws(e,t=[`git`],n=!1){let r=Cs(j(t),n);e.on(`binary`,e=>{r=Cs(j(e),n)}),e.append(`spawn.binary`,()=>r.binary),e.append(`spawn.args`,e=>r.prefix?[r.prefix,...e]:e)}E();function Ts(e){return!!(e.exitCode&&e.stdErr.length)}function Es(e){return Buffer.concat([...e.stdOut,...e.stdErr])}function Ds(e=!1,t=Ts,n=Es){return(r,i)=>!e&&r||!t(i)?r:n(i)}function Os(e){return{type:`task.error`,action(t,n){let r=e(t.error,{stdErr:n.stdErr,stdOut:n.stdOut,exitCode:n.exitCode});return Buffer.isBuffer(r)?{error:new T(void 0,r.toString(`utf-8`))}:{error:r}}}}q();var ks=class{constructor(){this.plugins=new Set,this.events=new u}on(e,t){this.events.on(e,t)}reconfigure(e,t){this.events.emit(e,t)}append(e,t){let n=A(this.plugins,{type:e,action:t});return()=>this.plugins.delete(n)}add(e){let t=[];return j(e).forEach(e=>e&&this.plugins.add(A(t,e))),()=>{t.forEach(e=>this.plugins.delete(e))}}exec(e,t,n){let r=t,i=Object.freeze(Object.create(n));for(let t of this.plugins)t.type===e&&(r=t.action(r,i));return r}};q();function As(e){let t=`--progress`,n=[`checkout`,`clone`,`fetch`,`pull`,`push`];return[{type:`spawn.args`,action(e,r){return n.includes(r.method)?lt(e,t):e}},{type:`spawn.after`,action(n,r){r.commands.includes(t)&&r.spawned.stderr?.on(`data`,t=>{let n=/^([\s\S]+?):\s*(\d+)% \((\d+)\/(\d+)\)/.exec(t.toString(`utf8`));n&&e({method:r.method,stage:js(n[1]),progress:N(n[2]),processed:N(n[3]),total:N(n[4])})})}}]}function js(e){return String(e.toLowerCase().split(` `,1))||`unknown`}q();function Ms(e){let t=ft(e,[`uid`,`gid`]);return{type:`spawn.options`,action(e){return{...t,...e}}}}function Ns({block:e,stdErr:t=!0,stdOut:n=!0}){if(e>0)return{type:`spawn.after`,action(r,i){let a;function o(){a&&clearTimeout(a),a=setTimeout(c,e)}function s(){i.spawned.stdout?.off(`data`,o),i.spawned.stderr?.off(`data`,o),i.spawned.off(`exit`,s),i.spawned.off(`close`,s),a&&clearTimeout(a)}function c(){s(),i.kill(new $(void 0,`timeout`,`block timeout reached`))}n&&i.spawned.stdout?.on(`data`,o),t&&i.spawned.stderr?.on(`data`,o),i.spawned.on(`exit`,s),i.spawned.on(`close`,s),o()}}}function Ps(){return{type:`spawn.args`,action(e){let t=[],n;function r(e){(n||=[]).push(...e)}for(let n=0;n<e.length;n++){let i=e[n];if(h(i)){r(ce(i));continue}if(i===`--`){r(e.slice(n+1).flatMap(e=>h(e)&&ce(e)||e));break}t.push(i)}return n?[...t,`--`,...n.map(String)]:t}}}q();var Fs=ps();function Is(e,t){let n=new ks,r=kt(e&&(typeof e==`string`?{baseDir:e}:e)||{},t);if(!ct(r.baseDir))throw new ms(r,`Cannot use simple-git on a directory that does not exist`);return Array.isArray(r.config)&&n.add(_s(r.config)),n.add(gs(r.unsafe)),n.add(ys(r.completion)),r.abort&&n.add(hs(r.abort)),r.progress&&n.add(As(r.progress)),r.timeout&&n.add(Ns(r.timeout)),r.spawnOptions&&n.add(Ms(r.spawnOptions)),n.add(Ps()),n.add(Os(Ds(!0))),r.errors&&n.add(Os(r.errors)),ws(n,r.binary,r.unsafe?.allowUnsafeCustomBinary),new Fs(r,n)}D();var Ls=Is,Rs=Is;function zs(e){return e===``?`''`:/^[\w.\-/]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`}const Bs=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function Vs(e){return Bs.enqueue(e)}function Hs(e){try{return s(e)&&c(e).isDirectory()}catch{return!1}}const Us=[`HOME`,`USERPROFILE`,`HOMEDRIVE`,`HOMEPATH`,`APPDATA`,`LOCALAPPDATA`,`ProgramData`,`ALLUSERSPROFILE`,`SystemRoot`,`WINDIR`,`windir`,`ComSpec`,`TEMP`,`TMP`,`USERNAME`,`USERDOMAIN`,`PATHEXT`,`SSH_AUTH_SOCK`,`ELECTRON_RUN_AS_NODE`];function Ws(e){let t={LANG:`C`,LC_ALL:`C`,GIT_TERMINAL_PROMPT:`0`,GIT_MERGE_AUTOEDIT:`no`};t.PATH=r(process.env.PATH??process.env.Path,{platform:process.platform,homeDir:l(),isDir:Hs,delimiter:i});for(let e of Us){let n=process.env[e];n!==void 0&&(t[e]=n)}return e&&(t.OK_GH_TOKEN=e.token,t.OK_GH_TOKEN_HOST=e.host,e.login&&(t.OK_GH_TOKEN_LOGIN=e.login)),t}function Gs(e,t){let n={...e.env};for(let[e,r]of Object.entries(t))r!==void 0&&(n[e]=r);return e.git.env(n)}function Ks(e,t){let{credentialConfig:n,gitIndexFile:r,ghToken:i,timeoutMs:a}=t,s=Ws(i);return r&&(s.GIT_INDEX_FILE=o(e,r)),{git:Rs({baseDir:e,config:[`commit.gpgsign=false`,`core.autocrlf=false`,`credential.interactive=false`,...n],unsafe:{allowUnsafeCredentialHelper:!0},...a===void 0?{}:{timeout:{block:a}}}).env(s),projectDir:e,credentialConfig:n,env:s}}function qs(e,t){let n=`credential.helper=!${(e&&e.length>0?e:[`open-knowledge`]).map(zs).join(` `)} auth git-credential`;return t.resetAmbient?[`credential.helper=`,n]:[n]}export{Vs as a,Ls as c,Ks as i,re as l,Ws as n,zs as o,qs as r,Rs as s,Gs as t};
|
|
10
|
-
//# sourceMappingURL=git-handle-
|
|
10
|
+
//# sourceMappingURL=git-handle-29BNYqgw.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./git-handle-29BNYqgw.mjs";export{e as createGitInstance};
|
package/dist/index.d.mts
CHANGED
|
@@ -11039,37 +11039,6 @@ interface OkDesktopConfig {
|
|
|
11039
11039
|
* discriminates without payload.
|
|
11040
11040
|
*/
|
|
11041
11041
|
type OkMenuAction = 'new-doc' | 'new-folder' | 'new-project' | 'rename' | 'delete' | 'close-active-tab-or-window' | 'toggle-sidebar' | 'toggle-source' | 'save-version' | 'version-history' | 'focus-search' | 'focus-command-palette' | 'navigate-back' | 'navigate-forward' | 'new-from-template' | 'duplicate' | 'move-to-trash' | 'reveal-in-finder' | 'send-to-ai' | 'copy-full-path' | 'copy-relative-path' | 'toggle-show-hidden-files' | 'toggle-show-ok-folders' | 'toggle-show-only-markdown-files' | 'toggle-show-skills-section' | 'expand-all-tree' | 'collapse-all-tree' | 'toggle-doc-panel' | 'toggle-terminal' | 'move-terminal' | 'toggle-agent-panel' | 'new-terminal' | 'kill-terminal' | 'new-worktree' | 'switch-worktree' | 'report-bug' | 'send-feedback';
|
|
11042
|
-
/**
|
|
11043
|
-
* Where a menu action was dispatched from, for the few subscribers whose
|
|
11044
|
-
* behavior depends on the dispatching SURFACE rather than on the action.
|
|
11045
|
-
*
|
|
11046
|
-
* `launcherBorne` means the surface the user reached the command through is a
|
|
11047
|
-
* transient overlay that is still on screen at dispatch time and is about to
|
|
11048
|
-
* dismiss itself — the Cmd+K palette, the renderer-drawn menu bar, a popover.
|
|
11049
|
-
* A native menu bar item, a keyboard accelerator, and a persistent chrome
|
|
11050
|
-
* button are all launcher-free: nothing is on screen that the command's own
|
|
11051
|
-
* arrival will take away.
|
|
11052
|
-
*
|
|
11053
|
-
* The bug-report dialog is the motivating consumer: it screenshots the page
|
|
11054
|
-
* beneath itself before revealing, and a launcher-borne open must let its
|
|
11055
|
-
* launcher unmount first (or the report is a picture of the palette the user
|
|
11056
|
-
* only opened to file it), while a launcher-free open must shoot immediately
|
|
11057
|
-
* (or the report is a picture of the app after the defect went away).
|
|
11058
|
-
*
|
|
11059
|
-
* An object rather than a bare boolean so call sites read as prose and so a
|
|
11060
|
-
* second provenance fact can be added without changing every signature.
|
|
11061
|
-
*
|
|
11062
|
-
* Electron already supplies one candidate for that second fact: the
|
|
11063
|
-
* `KeyboardEvent` handed to a `MenuItem` click carries `triggeredByAccelerator`,
|
|
11064
|
-
* separating a chord press from a click on the same item. This type deliberately
|
|
11065
|
-
* collapses both into launcher-free, because a native menu is OS chrome that no
|
|
11066
|
-
* renderer capture can see at any timing — but whoever adds the second fact
|
|
11067
|
-
* should know the platform is already offering one, and that every menu callback
|
|
11068
|
-
* in main currently discards the argument that carries it.
|
|
11069
|
-
*/
|
|
11070
|
-
interface OkMenuActionOrigin {
|
|
11071
|
-
readonly launcherBorne: boolean;
|
|
11072
|
-
}
|
|
11073
11042
|
/**
|
|
11074
11043
|
* Unsubscribe closure returned from `onProjectSwitched` / `onMenuAction`.
|
|
11075
11044
|
* Calling it removes the listener. Per-electron#33328, the bridge's
|
|
@@ -11964,6 +11933,8 @@ interface OkSharingStatusResult {
|
|
|
11964
11933
|
readonly mode: 'shared' | 'local-only' | 'no-git';
|
|
11965
11934
|
readonly excluded: readonly string[];
|
|
11966
11935
|
readonly trackedUpstream: readonly string[];
|
|
11936
|
+
/** True when local-only but `.ok/skills/` is carved back out as shareable. */
|
|
11937
|
+
readonly skillsShared: boolean;
|
|
11967
11938
|
}
|
|
11968
11939
|
type OkSharingSetModeResult = {
|
|
11969
11940
|
readonly kind: 'applied';
|
|
@@ -12120,12 +12091,8 @@ interface OkDesktopBridge {
|
|
|
12120
12091
|
readonly config: OkDesktopConfig;
|
|
12121
12092
|
/** Subscribe to project-switch events. Returns unsubscribe. */
|
|
12122
12093
|
onProjectSwitched(cb: (next: OkDesktopConfig) => void): OkUnsubscribe;
|
|
12123
|
-
/**
|
|
12124
|
-
|
|
12125
|
-
* carries the dispatching surface — subscribers that only branch on the
|
|
12126
|
-
* action may keep a one-parameter callback.
|
|
12127
|
-
*/
|
|
12128
|
-
onMenuAction(cb: (action: OkMenuAction, origin: OkMenuActionOrigin) => void): OkUnsubscribe;
|
|
12094
|
+
/** Subscribe to menu-bar actions. Returns unsubscribe. */
|
|
12095
|
+
onMenuAction(cb: (action: OkMenuAction) => void): OkUnsubscribe;
|
|
12129
12096
|
/**
|
|
12130
12097
|
* Subscribe to `autoUpdater` `update-downloaded` events. Fires once per
|
|
12131
12098
|
* pending-update version (gated in main by `AppState.versionPendingInstall`).
|
|
@@ -12548,7 +12515,8 @@ interface OkDesktopBridge {
|
|
|
12548
12515
|
*/
|
|
12549
12516
|
sharing: {
|
|
12550
12517
|
status(): Promise<OkSharingStatusResult>;
|
|
12551
|
-
setMode(mode: 'shared' | 'local-only'): Promise<OkSharingSetModeResult>;
|
|
12518
|
+
setMode(mode: 'shared' | 'local-only'): Promise<OkSharingSetModeResult>; /** Toggle `.ok/skills/` shareability within local-only mode. */
|
|
12519
|
+
setSkillsShared(shared: boolean): Promise<OkSharingSetModeResult>;
|
|
12552
12520
|
};
|
|
12553
12521
|
/**
|
|
12554
12522
|
* Slides (Slidev) — `status` detects a runnable `slidev`; `open` starts (or
|
|
@@ -13489,35 +13457,16 @@ interface TrackedRefusal {
|
|
|
13489
13457
|
/** Resolved sharing-mode reading derived from `.git/info/exclude` content. */
|
|
13490
13458
|
type SharingMode = 'shared' | 'local-only' | 'no-git';
|
|
13491
13459
|
/**
|
|
13492
|
-
* Return the canonical OK artifact set for a project
|
|
13493
|
-
* toggle may git-exclude. Artifact classes:
|
|
13460
|
+
* Return the canonical OK artifact set for a project. Artifact classes:
|
|
13494
13461
|
*
|
|
13495
13462
|
* - `.ok/` — whole-tree, config + folder configs
|
|
13496
13463
|
* - `.okignore` — project ignore file (gitignore syntax)
|
|
13497
|
-
* - `.mcp.json`
|
|
13498
|
-
* - `.cursor/mcp.json`
|
|
13499
|
-
* - `.codex/config.toml`
|
|
13500
|
-
* -
|
|
13501
|
-
* - `.pi/extensions/open-knowledge.ts` — Pi bridge extension (OK's own file)
|
|
13502
|
-
* - `.claude/launch.json` — Claude launcher entry (merged file)
|
|
13464
|
+
* - `.mcp.json` — Claude Code project MCP (merged file)
|
|
13465
|
+
* - `.cursor/mcp.json` — Cursor project MCP (merged file)
|
|
13466
|
+
* - `.codex/config.toml` — Codex project MCP (merged file)
|
|
13467
|
+
* - `.claude/launch.json` — Claude launcher entry (merged file)
|
|
13503
13468
|
*
|
|
13504
|
-
*
|
|
13505
|
-
* whole file. That is deliberate and it is what keeps OK's MCP entry out of a
|
|
13506
|
-
* team's repo when a user is only trying OK: without it, `ok init` writes an
|
|
13507
|
-
* entry into `.mcp.json` and the next `git add -A` commits it. The case where
|
|
13508
|
-
* hiding a merged file would bury a teammate's work is already prevented
|
|
13509
|
-
* upstream of here — `addOkPathsToGitExclude` runs `probeTrackedOkPaths` first
|
|
13510
|
-
* and REFUSES when any candidate path is tracked, so an already-committed
|
|
13511
|
-
* `.mcp.json` is never hidden.
|
|
13512
|
-
*
|
|
13513
|
-
* NOT here: authored skills at `.{host}/skills/<name>/`. Those are the user's
|
|
13514
|
-
* own content — OK projected them, but whether they are committed is the
|
|
13515
|
-
* project's decision, not a side effect of OK's sharing mode. They were in this
|
|
13516
|
-
* set until skills were taken off the toggle; `getInstalledSkillProjectionPaths`
|
|
13517
|
-
* still names them for
|
|
13518
|
-
* `ok deinit` and for draining the lines older builds wrote.
|
|
13519
|
-
*
|
|
13520
|
-
* NOT here either: OK's built-in `open-knowledge` project-skill projection
|
|
13469
|
+
* NOT here: OK's built-in `open-knowledge` project-skill projection
|
|
13521
13470
|
* (`.{host}/skills/open-knowledge/`). That bundle is a LOCAL, per-machine
|
|
13522
13471
|
* artifact — the app regenerates it on every open and different builds
|
|
13523
13472
|
* version-stamp it differently — so it is ALWAYS git-excluded via a committed
|
|
@@ -13525,7 +13474,8 @@ type SharingMode = 'shared' | 'local-only' | 'no-git';
|
|
|
13525
13474
|
* `@inkeep/open-knowledge-server`), independent of this shared/local-only
|
|
13526
13475
|
* toggle. Carving it OUT here is what makes the exclusion unconditional:
|
|
13527
13476
|
* leaving it in would only hide it in local-only mode, and it must be hidden in
|
|
13528
|
-
* BOTH modes.
|
|
13477
|
+
* BOTH modes. Authored skills at `.{host}/skills/<other-name>/` stay in the
|
|
13478
|
+
* toggle (handled by the installed-skill marker loop below).
|
|
13529
13479
|
*
|
|
13530
13480
|
* `.ok/` and `.okignore` are emitted UNANCHORED (slash-free). gitignore
|
|
13531
13481
|
* matches a slash-free pattern at every depth, so one entry each covers the
|
|
@@ -13540,25 +13490,11 @@ type SharingMode = 'shared' | 'local-only' | 'no-git';
|
|
|
13540
13490
|
* carry a trailing `/` so the gitignore syntax in `.git/info/exclude` treats
|
|
13541
13491
|
* them as whole-tree excludes; file entries do not.
|
|
13542
13492
|
*
|
|
13543
|
-
* Derives the per-editor `projectConfigPath`
|
|
13544
|
-
* future editor entry with
|
|
13545
|
-
* — no hand-maintained list.
|
|
13493
|
+
* Derives the per-editor `projectConfigPath` / `projectSkillPath` slots from
|
|
13494
|
+
* `EDITOR_TARGETS` so a future editor entry with project-scope artifacts
|
|
13495
|
+
* flows through automatically — no hand-maintained list.
|
|
13546
13496
|
*/
|
|
13547
13497
|
declare function getOkArtifactPaths(projectRoot: string): readonly string[];
|
|
13548
|
-
/**
|
|
13549
|
-
* Project-relative paths of the authored-skill bundles OK has projected into
|
|
13550
|
-
* editor host dirs, per `.ok/local/installed-skills.json`.
|
|
13551
|
-
*
|
|
13552
|
-
* NOT part of the sharing toggle (see `getOkArtifactPaths`) — these are the
|
|
13553
|
-
* user's content. Two callers still need to name them: `ok deinit`, which
|
|
13554
|
-
* removes the projections OK created, and the legacy exclude cleanup, which
|
|
13555
|
-
* strips lines older builds wrote.
|
|
13556
|
-
*
|
|
13557
|
-
* The reserved built-in `open-knowledge` bundle is skipped — it is always
|
|
13558
|
-
* git-ignored via the committed `.gitignore` block and swept separately by
|
|
13559
|
-
* deinit. Never throws: a missing or corrupt marker reads as no projections.
|
|
13560
|
-
*/
|
|
13561
|
-
declare function getInstalledSkillProjectionPaths(projectRoot: string): readonly string[];
|
|
13562
13498
|
/**
|
|
13563
13499
|
* Append each path to `<gitdir>/info/exclude`, idempotent against the four
|
|
13564
13500
|
* recognized variants per path. Runs `probeTrackedOkPaths` FIRST — when any
|
|
@@ -13608,6 +13544,35 @@ declare function readSharingMode(projectRoot: string): SharingMode;
|
|
|
13608
13544
|
* implementation — no `excludeFileContains`-style duplicate.
|
|
13609
13545
|
*/
|
|
13610
13546
|
declare function getExcludedOkPaths(projectRoot: string): readonly string[];
|
|
13547
|
+
/**
|
|
13548
|
+
* True iff `.git/info/exclude` currently carves `.ok/skills/` OUT of a
|
|
13549
|
+
* local-only `.ok/` exclusion — the project is local-only, but skills stay
|
|
13550
|
+
* shareable. Detected by the presence of BOTH carve lines. Pure read — never
|
|
13551
|
+
* throws, never writes.
|
|
13552
|
+
*
|
|
13553
|
+
* Independent of `readSharingMode` (which reports `local-only` for both the
|
|
13554
|
+
* blanket and the carve state); this predicate distinguishes the two so the
|
|
13555
|
+
* Skills UI can render the toggle's current position.
|
|
13556
|
+
*/
|
|
13557
|
+
declare function readSkillsShared(projectRoot: string): boolean;
|
|
13558
|
+
/**
|
|
13559
|
+
* Toggle whether `.ok/skills/` stays shareable while the rest of `.ok/`
|
|
13560
|
+
* remains local-only. Swaps the `.ok/` representation in `.git/info/exclude`
|
|
13561
|
+
* between the blanket spelling (`OK_BLANKET`, skills hidden) and the carve
|
|
13562
|
+
* spelling (`OK_CARVE_CHILDREN` + `OK_CARVE_SKILLS_REINCLUDE`, skills visible).
|
|
13563
|
+
* Every OTHER OK-artifact exclude line is left untouched, so the local-only
|
|
13564
|
+
* posture for config / MCP / editor bundles is preserved.
|
|
13565
|
+
*
|
|
13566
|
+
* Mechanical — callers gate WHEN it is offered (the desktop Skills UI shows it
|
|
13567
|
+
* only in local-only mode). `shared: true` on a project that is NOT local-only
|
|
13568
|
+
* would create a partial exclusion; don't call it there.
|
|
13569
|
+
*
|
|
13570
|
+
* No tracked-files probe: turning skills sharing ON only REMOVES exclusion
|
|
13571
|
+
* (never hides a tracked file); turning it OFF re-adds the blanket, which is
|
|
13572
|
+
* inert against already-tracked skills — the same no-op the main
|
|
13573
|
+
* `shared -> local-only` refusal already documents.
|
|
13574
|
+
*/
|
|
13575
|
+
declare function setSkillsShared(projectRoot: string, shared: boolean): ExcludeWriteResult;
|
|
13611
13576
|
/**
|
|
13612
13577
|
* Pure probe — checks which of `paths` (if any) are currently tracked
|
|
13613
13578
|
* upstream via `git ls-files --error-unmatch`. Used at exactly one site
|
|
@@ -14608,23 +14573,10 @@ interface ReportBundleResult {
|
|
|
14608
14573
|
* levels produce the same system-wide bundle.
|
|
14609
14574
|
*
|
|
14610
14575
|
* With `redact` on, the secret-pattern scrub applies at both levels; the full
|
|
14611
|
-
* level additionally masks the content-dir path.
|
|
14612
|
-
*
|
|
14613
|
-
* Doc names ship raw only at `full`, under the user's explicit
|
|
14614
|
-
* Detailed-diagnostics consent. At `standard` a name is replaced by a digest
|
|
14615
|
-
* before staging, because that level's consent copy names logs and system info
|
|
14616
|
-
* and says nothing about which documents a session opened. The digest still
|
|
14617
|
-
* groups a document's marks for triage.
|
|
14618
|
-
*
|
|
14619
|
-
* Scope, precisely, because the mechanism is field-anchored: it digests the
|
|
14620
|
-
* `docName` / `doc.name` / `documentName` FIELD, then sweeps the names it
|
|
14621
|
-
* learned through the rest of that same file, which is what also covers a name
|
|
14622
|
-
* interpolated into a message body. A name that never appears as a field in the
|
|
14623
|
-
* file carrying it is not reached. See `pseudonymizeDocNames` for that bound and
|
|
14624
|
-
* for what a digest does and does not buy against a recipient who can hash
|
|
14625
|
-
* guesses.
|
|
14576
|
+
* level additionally masks the content-dir path. Doc names ship raw under the
|
|
14577
|
+
* user's explicit Detailed-diagnostics consent.
|
|
14626
14578
|
*/
|
|
14627
14579
|
declare function collectReportBundle(opts: CollectReportBundleOptions): Promise<ReportBundleResult>;
|
|
14628
14580
|
//#endregion
|
|
14629
|
-
export { ALL_EDITOR_IDS, type BundleExtraFile, type BundleLogger, type CollectReportBundleOptions, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type EnsurePiBridgeResult, type ExcludeWriteResult, type ExpectedShareRepo, type GhAccount, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, type LanguageMetadata, type LoadConfigResult, type McpConfigDeclineEvent, type McpConfigDeclineScope, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpDeclineReason, type McpEntryClassification, type McpInstallOptions, type McpRemoveOutcome, type OwnManagedMcpEntryHit, PATH_SHIM_BEGIN, PATH_SHIM_BLOCK_RE, PATH_SHIM_END, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PathDiscovery, type PathInstallConsent, type PathInstallMarker, type PiBridgeFileState, type PiBridgeState, type PiBridgeWriteAction, type PiTrustState, type PiTrustWriteAction, type PreviewResult, type ProjectAiIntegrationsResult, type ProjectSkillRemoveResult, type ProjectSkillResult, type ReportBundleLevel, type ReportBundleResult, type ReportBundleSummary, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type SkillBundleTarget, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigDeclineEvent, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, collectReportBundle, createTokenStore, defaultBugReportZipPath, detectGh, detectGhAccounts, detectInstalledEditors, editorConfigPathDisplay, editorEntryLocator, ensurePiBridge, formatTrackedRemediation, getExcludedOkPaths,
|
|
14581
|
+
export { ALL_EDITOR_IDS, type BundleExtraFile, type BundleLogger, type CollectReportBundleOptions, EDITOR_LABELS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type EnsurePiBridgeResult, type ExcludeWriteResult, type ExpectedShareRepo, type GhAccount, type GhDetectResult, HOSTS_WITH_USER_SKILL_DIR, type IntegrationWriteOutcome, LAUNCH_CONFIG_NAME, type LanguageMetadata, type LoadConfigResult, type McpConfigDeclineEvent, type McpConfigDeclineScope, type McpConfigMigrateEvent, type McpConfigMigrateScope, type McpDeclineReason, type McpEntryClassification, type McpInstallOptions, type McpRemoveOutcome, type OwnManagedMcpEntryHit, PATH_SHIM_BEGIN, PATH_SHIM_BLOCK_RE, PATH_SHIM_END, type ParsedGitHubBlobUrl, type ParsedGitHubShareTarget, type ParsedGitHubTreeUrl, type PathDiscovery, type PathInstallConsent, type PathInstallMarker, type PiBridgeFileState, type PiBridgeState, type PiBridgeWriteAction, type PiTrustState, type PiTrustWriteAction, type PreviewResult, type ProjectAiIntegrationsResult, type ProjectSkillRemoveResult, type ProjectSkillResult, type ReportBundleLevel, type ReportBundleResult, type ReportBundleSummary, type ResolveProjectRootOptions, type ResolveProjectRootResult, type ShareFolderValidationResult, type SharingMode, type SkillBundleTarget, type TokenStore, type TrackedRefusal, type UserMcpConfigsOptions, addOkPathsToGitExclude, assertProjectPathSafe, buildManagedServerEntry, buildMcpConfigDeclineEvent, buildMcpConfigMigrateEvent, classifyExistingMcpEntry, collectReportBundle, createTokenStore, defaultBugReportZipPath, detectGh, detectGhAccounts, detectInstalledEditors, editorConfigPathDisplay, editorEntryLocator, ensurePiBridge, formatTrackedRemediation, getExcludedOkPaths, getNativeTomlMcpEditor, getOkArtifactPaths, isEntryUpToDate, isOwnManagedEntry, loadConfig, makeLazyProbeTokenStore, okBugReportsDir, parseGitHubBlobUrl, parseGitHubShareUrl, parseGitHubTreeUrl, parseGitUrl, pathInstallMarkerPath, previewContent, probeOwnManagedEditorMcpEntry, probePiBridgeState, probeTrackedOkPaths, readExistingMcpEntry, readSharingMode, readSkillsShared, redactSecrets as redactContent, removeOkPathsFromGitExclude, removeOwnMcpEntry, removeProjectSkill, removeUserGlobalSkillBundle, resolveProjectRoot, runStop, setSkillsShared, truncatePriorEntry, userGlobalSkillBundleTargets, validateLocalFolderForShare, writeEditorMcpConfig, writeProjectAiIntegrations, writeProjectSkill, writeUserMcpConfigs };
|
|
14630
14582
|
//# sourceMappingURL=index.d.mts.map
|