@inkeep/open-knowledge 0.77.8-beta.0 → 0.77.8-beta.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/cli.mjs +6 -6
- package/dist/constants-BFB3r1cZ.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/init-BMOQ0ZUD.mjs +693 -0
- package/dist/init-DE-JNzZM.mjs +1 -0
- package/dist/launch-json-removal-BjY6qTfw.mjs +1 -0
- package/dist/loader-B5ttnXZI.mjs +1 -0
- package/dist/loader-olXkVqIj.mjs +1 -0
- package/dist/preview-BZ-zLJzG.mjs +2 -0
- package/dist/preview-jh77MmBn.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-M2k3YwfN.js +1 -0
- package/dist/public/assets/ActivityPanelDiffView-Cw3jARI1.js +1 -0
- package/dist/public/assets/AddPropertiesButton-CF3xs1vF.js +2 -0
- package/dist/public/assets/AgentDiffPane-COuPkRtG.js +2 -0
- package/dist/public/assets/AgentIconCluster-BNHmzy2N.js +1 -0
- package/dist/public/assets/AgentThreadClientBinder-CM_Hnzrg.js +1 -0
- package/dist/public/assets/AppMenubar-CugHlIEF.js +1 -0
- package/dist/public/assets/BugReportHistory-CpWgA9i6.js +1 -0
- package/dist/public/assets/BugReportHistoryDialog-Bh3IoStx.js +1 -0
- package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-DLCuGDtS.js +1 -0
- package/dist/public/assets/CodeMirrorPropInput-IRKh744X.js +3 -0
- package/dist/public/assets/ConsentDialogBody-D9t5RNVy.js +2 -0
- package/dist/public/assets/DiffViewBoundary-8RVTpygC.js +29 -0
- package/dist/public/assets/DocumentContext-DN3lHA0f.js +39 -0
- package/dist/public/assets/EditorModeToggle-BNW3Mc3U.js +1 -0
- package/dist/public/assets/EnableSyncConfirmDialog-C5vyStvZ.js +1 -0
- package/dist/public/assets/ExcalidrawDocEditor-DJ1kVVQQ.js +1 -0
- package/dist/public/assets/FeedbackForm-B60zvRQ5.js +1 -0
- package/dist/public/assets/GraphPanel-C3eHn4gW.js +44 -0
- package/dist/public/assets/ImageAttachments-DSlR8TcI.js +1 -0
- package/dist/public/assets/ImportSkillDialog-ZHBp0kBI.js +1 -0
- package/dist/public/assets/LintConfigEditor-DGelEZH6.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-Bw8Ex5op.js +1 -0
- package/dist/public/assets/ManagedArtifactProperties-DWrCvKHd.js +1 -0
- package/dist/public/assets/McpConsentDialogBody-8e-ObxAg.js +1 -0
- package/dist/public/assets/Mermaid-DHu2w9uV.js +2 -0
- package/dist/public/assets/MermaidDocEditor-BGHacCHW.js +1 -0
- package/dist/public/assets/MultiFileDiff-D4AM_h2y.js +1 -0
- package/dist/public/assets/OpenInAgentMenuItem-D2wwOGYA.js +1 -0
- package/dist/public/assets/PropertyDisplayRow-BPvh08wu.js +2 -0
- package/dist/public/assets/RegisteredAgentIcon-9VM9CSSM.js +1 -0
- package/dist/public/assets/ReportBugDialogBody-DpKnchmQ.js +3 -0
- package/dist/public/assets/ReportBugMenuTrigger-DSs8yLxa.js +2 -0
- package/dist/public/assets/RowDisclosure-DJ3nqs6Y.js +1 -0
- package/dist/public/assets/SchemaConfigEditor-7DP1DDaJ.js +1 -0
- package/dist/public/assets/SessionsHost-Cgl3LOrn.js +2 -0
- package/dist/public/assets/SettingsDialogBody-0b_jtYPb.js +12 -0
- package/dist/public/assets/ShareBranchSwitchDialog-CTDAYuOX.js +1 -0
- package/dist/public/assets/ShareReceiveDialog-Cuf5ASDY.js +1 -0
- package/dist/public/assets/ShareReceiveMissDialog-BxhkG5Bj.js +1 -0
- package/dist/public/assets/SkillEditBanner-BycfTypX.js +1 -0
- package/dist/public/assets/SkillForkDialog-SINB-id1.js +1 -0
- package/dist/public/assets/SkillInstallMenu-DFjFfhRl.js +2 -0
- package/dist/public/assets/SkillOriginInline-Cgl8RIR-.js +2 -0
- package/dist/public/assets/SkillToolbarControls-BIOQTgH1.js +1 -0
- package/dist/public/assets/SkillUpdateConflictDialog-_FtQV05l.js +1 -0
- package/dist/public/assets/SourceEditor-CniCNTCo.js +1 -0
- package/dist/public/assets/TerminalPanel-BkLbM57Y.js +146 -0
- package/dist/public/assets/TerminalWindowApp-Dl09UNeQ.js +1 -0
- package/dist/public/assets/TextDocEditor-BmeCpFYS.js +1 -0
- package/dist/public/assets/ThreadView-BPAWyKRD.js +20 -0
- package/dist/public/assets/TimelineDiffPane-Dq31of3V.js +2 -0
- package/dist/public/assets/abnfDiagram-N423BO3Z-rZ14eGNY.js +1 -0
- package/dist/public/assets/agent-connection-status-CqhLenyQ.js +1 -0
- package/dist/public/assets/agent-diff-store-aummoA4y.js +1 -0
- package/dist/public/assets/angular-html-CP1Mtl49.js +1 -0
- package/dist/public/assets/angular-ts-BavDNamq.js +1 -0
- package/dist/public/assets/apl-CwY4ECmV.js +1 -0
- package/dist/public/assets/ar-SA-PQUY64WN-Cf3y4h_F.js +10 -0
- package/dist/public/assets/arc-Cb8qga6D.js +1 -0
- package/dist/public/assets/architecture-TIHT7OUA-C1pLiDqc.js +1 -0
- package/dist/public/assets/architectureDiagram-T3A2C74G-Ds3Z2SpG.js +36 -0
- package/dist/public/assets/astro-B6K1nuLY.js +1 -0
- package/dist/public/assets/auth-state-cache-lm2-OPjo.js +11 -0
- package/dist/public/assets/az-AZ-OXJXL76K-BSEOh_uA.js +1 -0
- package/dist/public/assets/bg-BG-W2GKIJDF-Y8VnAF_2.js +5 -0
- package/dist/public/assets/blade-Bp6pK5jj.js +1 -0
- package/dist/public/assets/blockDiagram-VBNYF7ZC-CSBpuBOt.js +132 -0
- package/dist/public/assets/bn-BD-TGL7M4PJ-yFyHqrho.js +3 -0
- package/dist/public/assets/bn-IN-BKETKYEH-ChcOXMze.js +3 -0
- package/dist/public/assets/bsl-32V029sh.js +1 -0
- package/dist/public/assets/bug-report-send-manager-Bmqwf2M5.js +1 -0
- package/dist/public/assets/c4Diagram-5PPSVZJV-BP_WoVSe.js +10 -0
- package/dist/public/assets/ca-ES-LD5SCRVV-CPS5oast.js +8 -0
- package/dist/public/assets/cairo-o-HrIt-U.js +1 -0
- package/dist/public/assets/calendar-DH4UeMHI.js +1 -0
- package/dist/public/assets/channel-6pU8Q8Gi.js +1 -0
- package/dist/public/assets/chunk-2GRJ4B5K-CFDQaHDR.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-C9tRIdM0.js +1 -0
- package/dist/public/assets/chunk-3NCLNEKW-DcH67JIX.js +1 -0
- package/dist/public/assets/chunk-4I5QYGJK-Bj6mWET0.js +1 -0
- package/dist/public/assets/chunk-5FCAYU7R-DwnzyNSB.js +1 -0
- package/dist/public/assets/chunk-5HE753X5-LZbvfCWx.js +1 -0
- package/dist/public/assets/chunk-5JV3BV7I-aDb0BKiq.js +1 -0
- package/dist/public/assets/chunk-5RXB4S5H-BJZ-Tl5_.js +231 -0
- package/dist/public/assets/chunk-5TONJI2A-CFkFFP0S.js +2 -0
- package/dist/public/assets/chunk-5VM5RSS4-LjzhGuuy.js +15 -0
- package/dist/public/assets/chunk-6Q2QTUOP-BVZILbkq.js +88 -0
- package/dist/public/assets/chunk-7BUUIJ7U-lDb_6iDm.js +1 -0
- package/dist/public/assets/chunk-7Z6QIM7H-CwVAvQR-.js +10 -0
- package/dist/public/assets/chunk-BIQX33UG-CZ9Id9SI.js +1 -0
- package/dist/public/assets/chunk-BO2N2NFS-C0xtDToB.js +103 -0
- package/dist/public/assets/chunk-CQNSW5MT-CG9Pl4cI.js +1 -0
- package/dist/public/assets/chunk-CYSBUYHQ-DkvnDBvT.js +1 -0
- package/dist/public/assets/chunk-EMLP6XTP-SRJUXgDp.js +1 -0
- package/dist/public/assets/chunk-GF5L2VYU-Dnb2WPRn.js +206 -0
- package/dist/public/assets/chunk-I66GZJ75-CaZJWhBB.js +127 -0
- package/dist/public/assets/chunk-J7OUQ5F2-DnB2_gaW.js +2 -0
- package/dist/public/assets/chunk-JG7HCLWE-CS_172FL.js +2 -0
- package/dist/public/assets/chunk-JQJVKLGR-feqZZz4U.js +156 -0
- package/dist/public/assets/chunk-JWPE2WC7-CAoEyrsi.js +1 -0
- package/dist/public/assets/chunk-KBJHAD2P-BwRe1DMX.js +1 -0
- package/dist/public/assets/chunk-MOZMSUNE-Cor0T3A_.js +1 -0
- package/dist/public/assets/chunk-NSK5VX7P-DH87SvdK.js +2 -0
- package/dist/public/assets/chunk-OSBZ3O6U-Bu3prE_J.js +1 -0
- package/dist/public/assets/chunk-QBLGF6JB-D7kO3ogb.js +1 -0
- package/dist/public/assets/chunk-QR6OTTB3-B9TBIcP3.js +62 -0
- package/dist/public/assets/chunk-R7FJI6CG-DZh7FnPp.js +1 -0
- package/dist/public/assets/chunk-RM4UPSZO-DOTPgt8P.js +35 -0
- package/dist/public/assets/chunk-RYQCIY6F-Cgx1TVBL.js +1 -0
- package/dist/public/assets/chunk-U6XO7XAA-BY-vcf-i.js +2 -0
- package/dist/public/assets/chunk-UBXNYLIW-DP3Ih57B.js +1 -0
- package/dist/public/assets/chunk-W5SLKNZC-C0M5YSmU.js +1 -0
- package/dist/public/assets/chunk-WRU74C26-HdWASCZy.js +70 -0
- package/dist/public/assets/chunk-XXDRQBXY-CXAMsDZf.js +1 -0
- package/dist/public/assets/chunk-YOTPTUD7-BRmjMAlO.js +1 -0
- package/dist/public/assets/chunk-Z5NKEFVG-DsHzhgWS.js +22 -0
- package/dist/public/assets/chunk-ZIRB5QZD-CCZkLoft.js +32 -0
- package/dist/public/assets/classDiagram-JCYQIIEL-BV824rB1.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-CgG4K2nf.js +1 -0
- package/dist/public/assets/cm-theme-CwmFYVNi.js +1 -0
- package/dist/public/assets/cobol-BuWL4y-f.js +1 -0
- package/dist/public/assets/code-highlighter-impl-eIFcwxp_.js +1 -0
- package/dist/public/assets/coffee-B7YD86Y8.js +1 -0
- package/dist/public/assets/comment-chips-Da3EBbGr.js +5 -0
- package/dist/public/assets/config-provider-2QXsvFX3.js +4 -0
- package/dist/public/assets/cose-bilkent-JH36ORCC-_GRuV-Uv.js +1 -0
- package/dist/public/assets/cpp-Co5AvCwe.js +1 -0
- package/dist/public/assets/crystal-DBAVN_pI.js +1 -0
- package/dist/public/assets/cs-CZ-OFPU5DBV-BjXNOnvb.js +7 -0
- package/dist/public/assets/cynefin-VYW2F7L2-CNQh7ae5.js +1 -0
- package/dist/public/assets/cynefinDiagram-MW4NZA55-C6Z73TWC.js +62 -0
- package/dist/public/assets/da-DK-FRDJFYWF-CKbZ-9Cn.js +2 -0
- package/dist/public/assets/dagre-VZM6K2ZE-BIiMIqQp.js +4 -0
- package/dist/public/assets/dagre-vG_ZIpF2.js +1 -0
- package/dist/public/assets/de-CH-ZG7H3QK3-Db6TTrTg.js +11 -0
- package/dist/public/assets/de-DE-SIJYH4IH-DmuqCK1U.js +11 -0
- package/dist/public/assets/diagnostic-breadcrumb-BjDNQhui.js +1 -0
- package/dist/public/assets/diagram-7IWD3JNH-CUdJOUxC.js +30 -0
- package/dist/public/assets/diagram-B4RE2ZJO-jGSSHj0Z.js +3 -0
- package/dist/public/assets/diagram-LBJQPF4R-IpZPHU-d.js +24 -0
- package/dist/public/assets/diagram-Q27KOJAE-By7nL7U8.js +24 -0
- package/dist/public/assets/diagram-UB23O5K3-QsmWtlNS.js +41 -0
- package/dist/public/assets/dist-B-rOxt7_.js +19 -0
- package/dist/public/assets/dist-BVlXaanp.js +1 -0
- package/dist/public/assets/dist-Bn5WIaKA.js +1 -0
- package/dist/public/assets/dist-BrW_Vaw8.js +1 -0
- package/dist/public/assets/dist-C-_cB73G.js +1 -0
- package/dist/public/assets/dist-CKx7qIeD.js +6 -0
- package/dist/public/assets/dist-CVYbGDxf.js +23 -0
- package/dist/public/assets/dist-CoHX6EXK.js +1 -0
- package/dist/public/assets/dist-DD23qI37.js +1 -0
- package/dist/public/assets/dist-DDtYZwaK.js +1 -0
- package/dist/public/assets/dist-DQmlLKXk.js +1 -0
- package/dist/public/assets/dist-Dt26oMwk.js +1 -0
- package/dist/public/assets/dist-DzgSQ1Ui.js +1 -0
- package/dist/public/assets/dist-F74CvEkF.js +2 -0
- package/dist/public/assets/dist-kpg7slNG.js +9 -0
- package/dist/public/assets/dist-zgu6nv33.js +124 -0
- package/dist/public/assets/doc-undo-manager-oaq6VHBD.js +1 -0
- package/dist/public/assets/ebnfDiagram-BXEA7PRR-ByDMtLg2.js +1 -0
- package/dist/public/assets/edge-pl4gdtgE.js +1 -0
- package/dist/public/assets/el-GR-IEE2CGI2-BHLnyN1G.js +7 -0
- package/dist/public/assets/elixir-CbDsY8aJ.js +1 -0
- package/dist/public/assets/elm-VcCv3Ynn.js +1 -0
- package/dist/public/assets/en-SJ2YIMFF-BJvIUfmi.js +1 -0
- package/dist/public/assets/erDiagram-JOGREHBK-Derdr79g.js +85 -0
- package/dist/public/assets/erb-ebRlEcuE.js +1 -0
- package/dist/public/assets/erlang-Di3DOfq0.js +1 -0
- package/dist/public/assets/es-ES-TVVPWKV5-BBc3A9gg.js +12 -0
- package/dist/public/assets/eu-ES-CGBMFQDT-BSYX0P-c.js +8 -0
- package/dist/public/assets/eventmodeling-45OFAUF4-DMubwVZ2.js +1 -0
- package/dist/public/assets/fa-IR-IE6XAPR4-BH9PqoDH.js +9 -0
- package/dist/public/assets/fi-FI-P7TKNHRM-By0-YQix.js +6 -0
- package/dist/public/assets/file-tree-adapter-CrD2Zh_o.js +1 -0
- package/dist/public/assets/flowDiagram-UKHOOZJN-Hj6DsSbj.js +1 -0
- package/dist/public/assets/fortran-fixed-form-DL4N4DbJ.js +1 -0
- package/dist/public/assets/fr-FR-QI2XZNT7-D_IgZZbj.js +12 -0
- package/dist/public/assets/fsharp-IqXwEPW0.js +1 -0
- package/dist/public/assets/ganttDiagram-PKOTCBZU-Cf0lzFig.js +292 -0
- package/dist/public/assets/gdresource-BMZ65Z4O.js +1 -0
- package/dist/public/assets/git-commit-BTboO6zN.js +1 -0
- package/dist/public/assets/git-rebase-DFpAMrFQ.js +1 -0
- package/dist/public/assets/gitGraph-TEB2WS4Q-C8ClyCNz.js +1 -0
- package/dist/public/assets/gitGraphDiagram-DS77QQ5N-39NyGPSn.js +106 -0
- package/dist/public/assets/gl-ES-TLYCNOZZ-Vd21X1VX.js +6 -0
- package/dist/public/assets/glimmer-js-B64v5Ccu.js +1 -0
- package/dist/public/assets/glimmer-ts-3BT-lhmA.js +1 -0
- package/dist/public/assets/glsl-eayQssr_.js +1 -0
- package/dist/public/assets/graphlib-BuxGseI0.js +1 -0
- package/dist/public/assets/graphql-Bc6mT6eA.js +1 -0
- package/dist/public/assets/hack-5nd6xj4J.js +1 -0
- package/dist/public/assets/haml-DTYq44FV.js +1 -0
- package/dist/public/assets/handlebars-MhWmwyXW.js +1 -0
- package/dist/public/assets/he-IL-ZX43XLGP-CIFW1E-j.js +9 -0
- package/dist/public/assets/hi-IN-UTYRMTUF-B__oo3hV.js +3 -0
- package/dist/public/assets/highlighted-body-OFNGDK62-CHKfPvoh.js +1 -0
- package/dist/public/assets/html-CEwyO5au.js +1 -0
- package/dist/public/assets/html-derivative-B3OWdEJE.js +1 -0
- package/dist/public/assets/http-tVtAqPuz.js +1 -0
- package/dist/public/assets/hu-HU-AJOSEBW6-jnjAQMvn.js +3 -0
- package/dist/public/assets/hurl-disgV3HC.js +1 -0
- package/dist/public/assets/hxml-BzA03VZF.js +1 -0
- package/dist/public/assets/id-ID-ETLTVG6C-Cpr5tmb0.js +8 -0
- package/dist/public/assets/image-ZVKINSPA-BpfdJ5cL.js +1 -0
- package/dist/public/assets/index-m11UgwXb.js +2205 -0
- package/dist/public/assets/info-DKCQHKI2-DbyDDTJw.js +1 -0
- package/dist/public/assets/infoDiagram-6WML65LV-Dc0eyeuL.js +2 -0
- package/dist/public/assets/input-group-D2I6Z888.js +1 -0
- package/dist/public/assets/ishikawaDiagram-WSZJBQD7-BxCoecaZ.js +70 -0
- package/dist/public/assets/it-IT-B4B6TP6L-BpBsg82c.js +12 -0
- package/dist/public/assets/ja-JP-IYKVURR5-BDawe607.js +12 -0
- package/dist/public/assets/jinja-C7ubQhj3.js +1 -0
- package/dist/public/assets/jison-DntQ0i9o.js +1 -0
- package/dist/public/assets/journeyDiagram-NVQOT4AX-DeGHV9Ir.js +139 -0
- package/dist/public/assets/julia-BM41Xd_y.js +1 -0
- package/dist/public/assets/just-CISmca9E.js +1 -0
- package/dist/public/assets/kaa-SE2BUIKX-B7PBi5ly.js +1 -0
- package/dist/public/assets/kab-KAB-Y3GLKXLR-Cn9EBhN0.js +4 -0
- package/dist/public/assets/kanban-definition-27J2QSJJ-DmnsA8ms.js +89 -0
- package/dist/public/assets/kk-KZ-ABWUFVOH-juC3EbwA.js +1 -0
- package/dist/public/assets/km-KH-PCWDKPHP-DPS4hSj8.js +7 -0
- package/dist/public/assets/ko-KR-7JQDXKGM-Do_yR66q.js +5 -0
- package/dist/public/assets/ku-TR-NAH2Q5B7-CKfmYJpF.js +6 -0
- package/dist/public/assets/latex-Be-RzNrR.js +1 -0
- package/dist/public/assets/launch-agent-thread-BTIPj2wd.js +1 -0
- package/dist/public/assets/line-YVIy1wOD.js +1 -0
- package/dist/public/assets/linear-B2InR6dg.js +1 -0
- package/dist/public/assets/liquid-DVDdyrXe.js +1 -0
- package/dist/public/assets/lt-LT-VQFYRSNQ-BJNsspgd.js +3 -0
- package/dist/public/assets/lua-CSSEleUs.js +1 -0
- package/dist/public/assets/lv-LV-T62VSYUM-CQDr3iF9.js +4 -0
- package/dist/public/assets/map-CD98Ozq0.js +1 -0
- package/dist/public/assets/markdownlint-rule-browser-BoWbwkTH.js +1 -0
- package/dist/public/assets/marko-CSNj8OQd.js +1 -0
- package/dist/public/assets/mdc-CZwCt6pW.js +1 -0
- package/dist/public/assets/mermaid-GHXKKRXX-DkHg8G_u.js +1 -0
- package/dist/public/assets/mermaid-parser.core-DqE1g3lp.js +4 -0
- package/dist/public/assets/mermaid.core-B051Z60F.js +1 -0
- package/dist/public/assets/mermaid.core-BLEkvFrs.js +11 -0
- package/dist/public/assets/mindmap-definition-FAOFIHXS-BFX-ZdPB.js +96 -0
- package/dist/public/assets/mr-IN-V4FHLCJE-C988xPro.js +9 -0
- package/dist/public/assets/my-MM-E3SQ6E54-BAyOKJzL.js +1 -0
- package/dist/public/assets/navigation-targets-CvNinRyp.js +1 -0
- package/dist/public/assets/nb-NO-MLNOFN5H-Drpolmt1.js +8 -0
- package/dist/public/assets/nextflow-YbDX0-hA.js +1 -0
- package/dist/public/assets/nginx-BirRjk_C.js +1 -0
- package/dist/public/assets/nim-DPc5JOHm.js +1 -0
- package/dist/public/assets/nl-NL-D5L3ZV4M-CAnUp8jY.js +13 -0
- package/dist/public/assets/nn-NO-NNHDGPKB-CKhgeX-F.js +4 -0
- package/dist/public/assets/now-CW3CftQy.js +1 -0
- package/dist/public/assets/oc-FR-DWCRF55G-Bgzcsbgb.js +4 -0
- package/dist/public/assets/ordinal-CN-svfzK.js +1 -0
- package/dist/public/assets/pa-IN-3JSAY44M-Bz1QUH-5.js +4 -0
- package/dist/public/assets/packet-7NZHBO7P-DCclLwLQ.js +1 -0
- package/dist/public/assets/pegDiagram-VL7TDLO6-CSaClogP.js +1 -0
- package/dist/public/assets/pending-receive-nav-store-BLPPywaR.js +1 -0
- package/dist/public/assets/percentages-ETZPVQEE-QwfLjMJ6.js +1 -0
- package/dist/public/assets/perl-BFUmRKXF.js +1 -0
- package/dist/public/assets/php-39i11mGj.js +1 -0
- package/dist/public/assets/pie-RZYD4A2V-Cw9uCaVx.js +1 -0
- package/dist/public/assets/pieDiagram-7S7Q4E2Y-C3bP9bTv.js +39 -0
- package/dist/public/assets/pierre-theme-9p_fs-tU.js +1376 -0
- package/dist/public/assets/pl-PL-ACURYKP3-BtqOxby0.js +12 -0
- package/dist/public/assets/preferred-session-events-DgZTy0EL.js +1 -0
- package/dist/public/assets/prod-C_R-B8wD.js +137 -0
- package/dist/public/assets/progress-CbsOEU6k.js +9 -0
- package/dist/public/assets/project-paths-BwLVIblW.js +1 -0
- package/dist/public/assets/prop-types-DI-i5R8d.js +1 -0
- package/dist/public/assets/pt-BR-LOX7MLGD-BrT7JQvD.js +10 -0
- package/dist/public/assets/pt-PT-CZ2U2RFQ-DMcKaZQe.js +12 -0
- package/dist/public/assets/pug-CimIaSu0.js +1 -0
- package/dist/public/assets/qml-Bv9AoC75.js +1 -0
- package/dist/public/assets/quadrantDiagram-CIZ2JOQS-COCvsgdV.js +7 -0
- package/dist/public/assets/radar-I7S5WNFK-DAegoO3w.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-BRT1hiU6.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-B3IRo6Bt.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-DcVN2KRu.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-DX8xFRrc.js +1 -0
- package/dist/public/assets/railroadDiagram-AXF67PYL-BuxO7nh8.js +1 -0
- package/dist/public/assets/razor-CXIgy4pb.js +1 -0
- package/dist/public/assets/requirementDiagram-LRYGKXZP-0wcI6Asd.js +84 -0
- package/dist/public/assets/ro-RO-2HECL2X6-DIW06lv0.js +12 -0
- package/dist/public/assets/rst--8Ov2Mb0.js +1 -0
- package/dist/public/assets/ru-RU-HAYNXO46-oZHwU2nj.js +10 -0
- package/dist/public/assets/ruby-Dut0pMXE.js +1 -0
- package/dist/public/assets/sankeyDiagram-W5VNT64P-C9g-FrhL.js +40 -0
- package/dist/public/assets/sas-DY8AiprC.js +1 -0
- package/dist/public/assets/scss-D5sbaF1c.js +1 -0
- package/dist/public/assets/selection-context-Djo41sqY.js +4 -0
- package/dist/public/assets/sequenceDiagram-SI44F4Z6-y_Vxvbfz.js +162 -0
- package/dist/public/assets/shaderlab-CQObPJaw.js +1 -0
- package/dist/public/assets/shellsession-D_eNs3bE.js +1 -0
- package/dist/public/assets/si-LK-W5KNS4H6-BqXVLoCL.js +1 -0
- package/dist/public/assets/sizeCapture-X5ZJPWSS-Jvvkqia3.js +1 -0
- package/dist/public/assets/sk-SK-7K2CFGDV-BvjpibKy.js +7 -0
- package/dist/public/assets/sl-SI-OXV2QZWW-BUga8Ktl.js +6 -0
- package/dist/public/assets/soy-7qeNzvQ-.js +1 -0
- package/dist/public/assets/sparql-B3kY7JWn.js +1 -0
- package/dist/public/assets/src-BmrKqIrD.js +2 -0
- package/dist/public/assets/src-DXPuodFp.js +1 -0
- package/dist/public/assets/startup-marks--VxxzHYd.js +1 -0
- package/dist/public/assets/stata-DvllnwWq.js +1 -0
- package/dist/public/assets/stateDiagram-OKZ733FA-DfuHN4bm.js +1 -0
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-DSD8B0YA.js +1 -0
- package/dist/public/assets/subset-shared.chunk-C9wphtWR.js +1 -0
- package/dist/public/assets/subset-worker.chunk-C8nyHhDh.js +1 -0
- package/dist/public/assets/surrealql-CRgMd6QC.js +1 -0
- package/dist/public/assets/sv-SE-JTOBZRGL-DGFmDyvk.js +12 -0
- package/dist/public/assets/svelte-C9eVKbbK.js +1 -0
- package/dist/public/assets/swimlanes-SLNWSIFB-C-VGSUTX.js +2 -0
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-D1HG3hQV.js +8 -0
- package/dist/public/assets/ta-IN-KFAVKXGT-_r_hO-SX.js +6 -0
- package/dist/public/assets/tag-pill-input-L67HH_ro.js +1 -0
- package/dist/public/assets/target-navigation-intent-DAHHkidf.js +1 -0
- package/dist/public/assets/telemetry-impl-Ba0vOMCN.js +2 -0
- package/dist/public/assets/telemetry-startup-bvdTP93D.js +1 -0
- package/dist/public/assets/templ-D4thRGBp.js +1 -0
- package/dist/public/assets/terminal-launch-events-C87UeOVG.js +1 -0
- package/dist/public/assets/terminal-telemetry-rnrKpL-Q.js +1 -0
- package/dist/public/assets/tex-CdivdP-Y.js +1 -0
- package/dist/public/assets/text-viewer-languages-B0aVR_01.js +2 -0
- package/dist/public/assets/th-TH-VDMSCPDL-ityDdOua.js +1 -0
- package/dist/public/assets/timeline-definition-Z64GVDOM-BCjQEjPs.js +120 -0
- package/dist/public/assets/tr-TR-CEZ6GX45-D_r3pTQk.js +4 -0
- package/dist/public/assets/treeView-QDETBFTQ-DHf70Q-N.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-DqVNy69_.js +1 -0
- package/dist/public/assets/ts-tags-Crcmhbt0.js +1 -0
- package/dist/public/assets/twig-NuiikSM7.js +1 -0
- package/dist/public/assets/typing-burst-detector-DMDqi5dA.js +8 -0
- package/dist/public/assets/uk-UA-Q3H3OXQC-CuveKljv.js +6 -0
- package/dist/public/assets/uninstall-CjAeJKDn.js +1 -0
- package/dist/public/assets/use-activity-panel-DC73mzAa.js +1 -0
- package/dist/public/assets/use-apply-config-language-7Y1kLw_A.js +2 -0
- package/dist/public/assets/use-live-xterm-theme-BDq8DzaU.js +1 -0
- package/dist/public/assets/use-open-skill-BBWxh7W0.js +1 -0
- package/dist/public/assets/use-skill-origin-B1YmBhKN.js +1 -0
- package/dist/public/assets/use-skills-CYMgz3tV.js +1 -0
- package/dist/public/assets/use-terminal-enabled-BhsY-vIc.js +1 -0
- package/dist/public/assets/use-timeline-entry-diff-DSNKKDKd.js +5 -0
- package/dist/public/assets/uz-UZ-NGCSWWPX-Dqsi2Oq4.js +1 -0
- package/dist/public/assets/vennDiagram-T6HMQDX7-HTVT56oY.js +34 -0
- package/dist/public/assets/vi-VN-P3NDEVPS-tIhiBLAT.js +7 -0
- package/dist/public/assets/vue-DvKjlWdX.js +1 -0
- package/dist/public/assets/vue-html-BMvKPpzh.js +1 -0
- package/dist/public/assets/vue-vine-Da_wNI8a.js +1 -0
- package/dist/public/assets/wardley-OPB4EBWU-AI6mcheA.js +1 -0
- package/dist/public/assets/wardleyDiagram-T6FBY63Y-CVEQjnbz.js +78 -0
- package/dist/public/assets/xml-Dc52HcSm.js +1 -0
- package/dist/public/assets/xsl-B-ccQehP.js +1 -0
- package/dist/public/assets/xychartDiagram-ELKLHX3M-fr8zjMkE.js +7 -0
- package/dist/public/assets/zh-CN-SS3O57GA-By1E_Y2f.js +11 -0
- package/dist/public/assets/zh-HK-LWJT3VCF-DcKeQdCC.js +1 -0
- package/dist/public/assets/zh-TW-VJXC72RT-BVAS5E62.js +13 -0
- package/dist/public/index.html +103 -102
- package/dist/public/uninstall.html +6 -6
- package/dist/registry-probes-DY7cv23M.mjs +17 -0
- package/dist/removal-file-path-cRE_JkoU.mjs +1 -0
- package/dist/repair-launch-json-CTyhVHJB.mjs +1 -0
- package/dist/repair-mcp-configs-DuNUZGcy.mjs +1 -0
- package/dist/src-B8oEEvIG.mjs +1 -0
- package/dist/src-DxDKir3c.mjs +11 -0
- package/dist/start-CMFC_nE6.mjs +5 -0
- package/dist/start-De9OZbwZ.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-Dfsa9Tly.mjs +0 -1
- package/dist/init-C8xK8YsJ.mjs +0 -693
- package/dist/init-D45tKYIg.mjs +0 -1
- package/dist/launch-json-removal-C_A2DphI.mjs +0 -1
- package/dist/loader-CN19l16Q.mjs +0 -1
- package/dist/loader-asslhshx.mjs +0 -1
- package/dist/preview-DRbZ1DMt.mjs +0 -1
- package/dist/preview-Du4mTEY7.mjs +0 -2
- package/dist/public/assets/ActivityModeContent-BgrL_tw0.js +0 -1
- package/dist/public/assets/ActivityPanelDiffView-DwiYWfsS.js +0 -1
- package/dist/public/assets/AddPropertiesButton-DKDibL69.js +0 -2
- package/dist/public/assets/AgentDiffPane-hZzBJMez.js +0 -2
- package/dist/public/assets/AgentIconCluster-cERwj1ys.js +0 -1
- package/dist/public/assets/AgentThreadClientBinder-CYSP4btM.js +0 -1
- package/dist/public/assets/AppMenubar-CZfNAtvi.js +0 -1
- package/dist/public/assets/BugReportHistory-BqVQCJMX.js +0 -1
- package/dist/public/assets/BugReportHistoryDialog-CBQmc7nD.js +0 -1
- package/dist/public/assets/CodeMirrorEditor-UCMRAMCV-DDtLB6bl.js +0 -1
- package/dist/public/assets/CodeMirrorPropInput-lKhM-DuQ.js +0 -3
- package/dist/public/assets/ConsentDialogBody--x6DttEH.js +0 -2
- package/dist/public/assets/DiffViewBoundary-CjVn-oce.js +0 -29
- package/dist/public/assets/DocumentContext-k7E9BUpN.js +0 -39
- package/dist/public/assets/EditorModeToggle-Dim82S3z.js +0 -1
- package/dist/public/assets/EnableSyncConfirmDialog-DSsid2mK.js +0 -1
- package/dist/public/assets/ExcalidrawDocEditor-DvI20tIO.js +0 -1
- package/dist/public/assets/FeedbackForm-CE65yJQc.js +0 -1
- package/dist/public/assets/GraphPanel-qgZVtAYl.js +0 -44
- package/dist/public/assets/ImageAttachments-BUEoak09.js +0 -1
- package/dist/public/assets/ImportSkillDialog-DmIceX9v.js +0 -1
- package/dist/public/assets/LintConfigEditor-Cv11Fis4.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-C-iPKFMo.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-Ufukx4Uo.js +0 -1
- package/dist/public/assets/McpConsentDialogBody-D6uKpnd7.js +0 -1
- package/dist/public/assets/Mermaid-DF-zF9ZQ.js +0 -2
- package/dist/public/assets/MermaidDocEditor-C3S6Pso8.js +0 -1
- package/dist/public/assets/MultiFileDiff-Blb8I6mV.js +0 -1
- package/dist/public/assets/OpenInAgentMenuItem-CGwHGCv5.js +0 -1
- package/dist/public/assets/PropertyDisplayRow-CnSByLHQ.js +0 -2
- package/dist/public/assets/RegisteredAgentIcon-C1-3G6U_.js +0 -1
- package/dist/public/assets/ReportBugDialogBody-m75G3xh-.js +0 -3
- package/dist/public/assets/ReportBugMenuTrigger-DeqAiH6B.js +0 -2
- package/dist/public/assets/RowDisclosure-DMbI1q_e.js +0 -1
- package/dist/public/assets/SchemaConfigEditor-DIFuSitJ.js +0 -1
- package/dist/public/assets/SessionsHost-BkRXbbP3.js +0 -2
- package/dist/public/assets/SettingsDialogBody-gwlWw6ee.js +0 -12
- package/dist/public/assets/ShareBranchSwitchDialog-CPQXouNs.js +0 -1
- package/dist/public/assets/ShareReceiveDialog-BOFHrMij.js +0 -1
- package/dist/public/assets/ShareReceiveMissDialog-DLscol0t.js +0 -1
- package/dist/public/assets/SkillEditBanner-D6Dtu8c8.js +0 -1
- package/dist/public/assets/SkillForkDialog-DmgM-ku1.js +0 -1
- package/dist/public/assets/SkillInstallMenu-ysiXTvdY.js +0 -2
- package/dist/public/assets/SkillOriginInline-Cg6SmepR.js +0 -2
- package/dist/public/assets/SkillToolbarControls-Dxooq3rz.js +0 -1
- package/dist/public/assets/SkillUpdateConflictDialog-DrD7rrxa.js +0 -1
- package/dist/public/assets/SourceEditor-hTmtFaNS.js +0 -1
- package/dist/public/assets/TerminalPanel-C-NyJi62.js +0 -146
- package/dist/public/assets/TerminalWindowApp-CtZg_kya.js +0 -1
- package/dist/public/assets/TextDocEditor-DvwmVIU_.js +0 -1
- package/dist/public/assets/ThreadView-Cmire9LW.js +0 -20
- package/dist/public/assets/TimelineDiffPane-c5Vsmuk-.js +0 -2
- package/dist/public/assets/abnfDiagram-N423BO3Z-DQ49-e1N.js +0 -1
- package/dist/public/assets/agent-connection-status-CeUzHEIL.js +0 -1
- package/dist/public/assets/agent-diff-store-CT9M8rFt.js +0 -1
- package/dist/public/assets/angular-html-tyhcvWsQ.js +0 -1
- package/dist/public/assets/angular-ts-BHZ4OQKw.js +0 -1
- package/dist/public/assets/apl-DqcPPf8D.js +0 -1
- package/dist/public/assets/ar-SA-PQUY64WN-YEiz9y0l.js +0 -10
- package/dist/public/assets/arc-gXDVqTiK.js +0 -1
- package/dist/public/assets/architecture-TIHT7OUA-CvFZ3nkz.js +0 -1
- package/dist/public/assets/architectureDiagram-T3A2C74G-CD_QVvnW.js +0 -36
- package/dist/public/assets/astro-Dkys2H-7.js +0 -1
- package/dist/public/assets/auth-state-cache-BE83fdOk.js +0 -11
- package/dist/public/assets/az-AZ-OXJXL76K-ClB6aj0L.js +0 -1
- package/dist/public/assets/bg-BG-W2GKIJDF-CDxnBgZO.js +0 -5
- package/dist/public/assets/blade-CR51HZVp.js +0 -1
- package/dist/public/assets/blockDiagram-VBNYF7ZC-BjfcdSuI.js +0 -132
- package/dist/public/assets/bn-BD-TGL7M4PJ-BIR4lN3h.js +0 -3
- package/dist/public/assets/bn-IN-BKETKYEH-DPztG3Wb.js +0 -3
- package/dist/public/assets/bsl-D3v8IZXP.js +0 -1
- package/dist/public/assets/bug-report-send-manager-C-miBdjz.js +0 -1
- package/dist/public/assets/c4Diagram-5PPSVZJV-DoUauXNb.js +0 -10
- package/dist/public/assets/ca-ES-LD5SCRVV-CEGdddhU.js +0 -8
- package/dist/public/assets/cairo-CHO9PFIl.js +0 -1
- package/dist/public/assets/calendar-Ds5kEtQm.js +0 -1
- package/dist/public/assets/channel-CYsDo3ez.js +0 -1
- package/dist/public/assets/chunk-2GRJ4B5K-BclpCc-b.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-BiC2MxHz.js +0 -1
- package/dist/public/assets/chunk-3NCLNEKW-BDcTgR2u.js +0 -1
- package/dist/public/assets/chunk-4I5QYGJK-Cs0_7suI.js +0 -1
- package/dist/public/assets/chunk-5FCAYU7R-Byi9fe6J.js +0 -1
- package/dist/public/assets/chunk-5HE753X5-DFfoFOPg.js +0 -1
- package/dist/public/assets/chunk-5JV3BV7I-DTlyoT1V.js +0 -1
- package/dist/public/assets/chunk-5RXB4S5H-BQaWgUQw.js +0 -231
- package/dist/public/assets/chunk-5TONJI2A-DVPLg1BO.js +0 -2
- package/dist/public/assets/chunk-5VM5RSS4-C9QH6fG6.js +0 -15
- package/dist/public/assets/chunk-6Q2QTUOP-CODZaw33.js +0 -88
- package/dist/public/assets/chunk-7BUUIJ7U-DQkU7wyM.js +0 -1
- package/dist/public/assets/chunk-7Z6QIM7H-CMYC6X6E.js +0 -10
- package/dist/public/assets/chunk-BIQX33UG-CkCtnkb_.js +0 -1
- package/dist/public/assets/chunk-BO2N2NFS-DKulHdwE.js +0 -103
- package/dist/public/assets/chunk-CQNSW5MT-CPnmdTxj.js +0 -1
- package/dist/public/assets/chunk-CYSBUYHQ-KeooFtrp.js +0 -1
- package/dist/public/assets/chunk-EMLP6XTP-Cpg6P_x_.js +0 -1
- package/dist/public/assets/chunk-GF5L2VYU-DqaldnvL.js +0 -206
- package/dist/public/assets/chunk-I66GZJ75-Bnx0TlxG.js +0 -127
- package/dist/public/assets/chunk-J7OUQ5F2-E_n0qxWa.js +0 -2
- package/dist/public/assets/chunk-JG7HCLWE-dkWcqv2s.js +0 -2
- package/dist/public/assets/chunk-JQJVKLGR-C92iji4t.js +0 -156
- package/dist/public/assets/chunk-JWPE2WC7-BXZpsuVb.js +0 -1
- package/dist/public/assets/chunk-KBJHAD2P-DGW5aUAs.js +0 -1
- package/dist/public/assets/chunk-MOZMSUNE-C77s7qb_.js +0 -1
- package/dist/public/assets/chunk-NSK5VX7P-D7muJB30.js +0 -2
- package/dist/public/assets/chunk-OSBZ3O6U-BHgffWEN.js +0 -1
- package/dist/public/assets/chunk-QBLGF6JB-CZjFXiTa.js +0 -1
- package/dist/public/assets/chunk-QR6OTTB3-B6K-lScb.js +0 -62
- package/dist/public/assets/chunk-R7FJI6CG-uPYx-WmN.js +0 -1
- package/dist/public/assets/chunk-RM4UPSZO-FoyUitTt.js +0 -35
- package/dist/public/assets/chunk-RYQCIY6F-Bx-mdUBi.js +0 -1
- package/dist/public/assets/chunk-U6XO7XAA-d-Ve4-u0.js +0 -2
- package/dist/public/assets/chunk-UBXNYLIW-CURQPEUA.js +0 -1
- package/dist/public/assets/chunk-W5SLKNZC-CVzlVUFy.js +0 -1
- package/dist/public/assets/chunk-WRU74C26-1oF6dXge.js +0 -70
- package/dist/public/assets/chunk-XXDRQBXY-DK-kAk0t.js +0 -1
- package/dist/public/assets/chunk-YOTPTUD7-D9Dulv6h.js +0 -1
- package/dist/public/assets/chunk-Z5NKEFVG-Col1gBNK.js +0 -22
- package/dist/public/assets/chunk-ZIRB5QZD-BrgOHb9l.js +0 -32
- package/dist/public/assets/classDiagram-JCYQIIEL-DHE995QS.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-C6PI7WXf.js +0 -1
- package/dist/public/assets/cm-theme-DEecevl5.js +0 -1
- package/dist/public/assets/cobol-D47-sND6.js +0 -1
- package/dist/public/assets/code-highlighter-impl-CScE2iIc.js +0 -1
- package/dist/public/assets/coffee-TzG5ahFo.js +0 -1
- package/dist/public/assets/comment-chips-B4v46rIE.js +0 -5
- package/dist/public/assets/config-provider-D9Gr6Xo5.js +0 -4
- package/dist/public/assets/cose-bilkent-JH36ORCC-Duj7_9QH.js +0 -1
- package/dist/public/assets/cpp-cwvU5l8X.js +0 -1
- package/dist/public/assets/crystal-CK7i_bQ3.js +0 -1
- package/dist/public/assets/cs-CZ-OFPU5DBV-LKAjVQQA.js +0 -7
- package/dist/public/assets/cynefin-VYW2F7L2-BJ3bQ4x0.js +0 -1
- package/dist/public/assets/cynefinDiagram-MW4NZA55-3Rr5jQ2k.js +0 -62
- package/dist/public/assets/da-DK-FRDJFYWF-e08C5Y3e.js +0 -2
- package/dist/public/assets/dagre-CxxJ07l8.js +0 -1
- package/dist/public/assets/dagre-VZM6K2ZE-Bhjeh-Y6.js +0 -4
- package/dist/public/assets/de-CH-ZG7H3QK3-D-9OL981.js +0 -11
- package/dist/public/assets/de-DE-SIJYH4IH-DvU_Lndd.js +0 -11
- package/dist/public/assets/diagram-7IWD3JNH-CAGemw5c.js +0 -30
- package/dist/public/assets/diagram-B4RE2ZJO-DwDshuyi.js +0 -3
- package/dist/public/assets/diagram-LBJQPF4R-CaZkuIpw.js +0 -24
- package/dist/public/assets/diagram-Q27KOJAE-qC2fO3U6.js +0 -24
- package/dist/public/assets/diagram-UB23O5K3-DlrQdA03.js +0 -41
- package/dist/public/assets/dist-1_Q89fVt.js +0 -1
- package/dist/public/assets/dist-6gT1hn-u.js +0 -1
- package/dist/public/assets/dist-BGSsu1bg.js +0 -6
- package/dist/public/assets/dist-BHqBl3t2.js +0 -124
- package/dist/public/assets/dist-BISe9TCZ.js +0 -1
- package/dist/public/assets/dist-BWW5b2CT.js +0 -2
- package/dist/public/assets/dist-C6AdHsiT.js +0 -1
- package/dist/public/assets/dist-CXHxHLG6.js +0 -23
- package/dist/public/assets/dist-CfSqFgiI.js +0 -1
- package/dist/public/assets/dist-CpmzYutK.js +0 -1
- package/dist/public/assets/dist-D3w2UByS.js +0 -9
- package/dist/public/assets/dist-DRP7FFQ4.js +0 -1
- package/dist/public/assets/dist-DZStwcBj.js +0 -1
- package/dist/public/assets/dist-Dpls7qrX.js +0 -1
- package/dist/public/assets/dist-FrYyCZWh.js +0 -1
- package/dist/public/assets/dist-njfDE5pS.js +0 -19
- package/dist/public/assets/doc-undo-manager-B7qC3Ler.js +0 -1
- package/dist/public/assets/ebnfDiagram-BXEA7PRR-C7jscuyY.js +0 -1
- package/dist/public/assets/edge-QUNYnjn6.js +0 -1
- package/dist/public/assets/el-GR-IEE2CGI2-UMC51L04.js +0 -7
- package/dist/public/assets/elixir-BBYZYlaR.js +0 -1
- package/dist/public/assets/elm-BulIbDbE.js +0 -1
- package/dist/public/assets/en-SJ2YIMFF-Bg1W3dOl.js +0 -1
- package/dist/public/assets/erDiagram-JOGREHBK-Dhz6D7Yi.js +0 -85
- package/dist/public/assets/erb-Cj-_KKPz.js +0 -1
- package/dist/public/assets/erlang-ChbYC39i.js +0 -1
- package/dist/public/assets/es-ES-TVVPWKV5-CIMTZjx5.js +0 -12
- package/dist/public/assets/eu-ES-CGBMFQDT-BUUAVJHd.js +0 -8
- package/dist/public/assets/eventmodeling-45OFAUF4-CjmrBe_s.js +0 -1
- package/dist/public/assets/fa-IR-IE6XAPR4-Cl4DSWkI.js +0 -9
- package/dist/public/assets/fi-FI-P7TKNHRM-CD1XKxmZ.js +0 -6
- package/dist/public/assets/file-tree-adapter-Dkm2Hh29.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-B4aQ7zoj.js +0 -1
- package/dist/public/assets/fortran-fixed-form-DbeTrqpV.js +0 -1
- package/dist/public/assets/fr-FR-QI2XZNT7-BSh80zjd.js +0 -12
- package/dist/public/assets/fsharp-BJgju2zn.js +0 -1
- package/dist/public/assets/ganttDiagram-PKOTCBZU-DJdlja7K.js +0 -292
- package/dist/public/assets/gdresource-2U2JZ8ed.js +0 -1
- package/dist/public/assets/git-commit-lNkI1cNS.js +0 -1
- package/dist/public/assets/git-rebase-DNi6cpt4.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-BhEEVW8K.js +0 -1
- package/dist/public/assets/gitGraphDiagram-DS77QQ5N-bjer5YHj.js +0 -106
- package/dist/public/assets/gl-ES-TLYCNOZZ-CschwxRk.js +0 -6
- package/dist/public/assets/glimmer-js-CqWhrvRE.js +0 -1
- package/dist/public/assets/glimmer-ts-Cl4jc3Ay.js +0 -1
- package/dist/public/assets/glsl-BJrljcHy.js +0 -1
- package/dist/public/assets/graphlib-CMA9yu2j.js +0 -1
- package/dist/public/assets/graphql-CdiqWiCT.js +0 -1
- package/dist/public/assets/hack-BdIJzNBT.js +0 -1
- package/dist/public/assets/haml-BfrYqosC.js +0 -1
- package/dist/public/assets/handlebars-DLOJsZub.js +0 -1
- package/dist/public/assets/he-IL-ZX43XLGP-Dl0rpIPM.js +0 -9
- package/dist/public/assets/hi-IN-UTYRMTUF-CTiGmTvW.js +0 -3
- package/dist/public/assets/highlighted-body-OFNGDK62-C8NxHVz6.js +0 -1
- package/dist/public/assets/html-ILu4Ou2o.js +0 -1
- package/dist/public/assets/html-derivative-Bujn3YLR.js +0 -1
- package/dist/public/assets/http-BxVSK7Vq.js +0 -1
- package/dist/public/assets/hu-HU-AJOSEBW6-C3bePr4h.js +0 -3
- package/dist/public/assets/hurl-B1k8P-j4.js +0 -1
- package/dist/public/assets/hxml-Cx1LhVUb.js +0 -1
- package/dist/public/assets/id-ID-ETLTVG6C-DWPmW5VT.js +0 -8
- package/dist/public/assets/image-ZVKINSPA-CWKWE5kC.js +0 -1
- package/dist/public/assets/index-SRPfhcDV.js +0 -2205
- package/dist/public/assets/info-DKCQHKI2-BmxlO1aV.js +0 -1
- package/dist/public/assets/infoDiagram-6WML65LV-qsJadI-F.js +0 -2
- package/dist/public/assets/input-group-BJKbZdHx.js +0 -1
- package/dist/public/assets/ishikawaDiagram-WSZJBQD7-dCbaFzIw.js +0 -70
- package/dist/public/assets/it-IT-B4B6TP6L-CmevsSWA.js +0 -12
- package/dist/public/assets/ja-JP-IYKVURR5-Iy9X8e67.js +0 -12
- package/dist/public/assets/jinja-DcWeC1vM.js +0 -1
- package/dist/public/assets/jison-Cp3bC9rO.js +0 -1
- package/dist/public/assets/journeyDiagram-NVQOT4AX-wxOCyW_r.js +0 -139
- package/dist/public/assets/julia-DyO8dmF4.js +0 -1
- package/dist/public/assets/just-PXDPX-KM.js +0 -1
- package/dist/public/assets/kaa-SE2BUIKX-SnKihMic.js +0 -1
- package/dist/public/assets/kab-KAB-Y3GLKXLR-CKewUwoa.js +0 -4
- package/dist/public/assets/kanban-definition-27J2QSJJ-UYnusGKP.js +0 -89
- package/dist/public/assets/kk-KZ-ABWUFVOH-9pG9MlwC.js +0 -1
- package/dist/public/assets/km-KH-PCWDKPHP-BWqouJXL.js +0 -7
- package/dist/public/assets/ko-KR-7JQDXKGM-BIvUdfpO.js +0 -5
- package/dist/public/assets/ku-TR-NAH2Q5B7-vlVe4uZO.js +0 -6
- package/dist/public/assets/latex-B-ElOa2k.js +0 -1
- package/dist/public/assets/launch-agent-thread-DtoLB12k.js +0 -1
- package/dist/public/assets/line-CCYJ3qtm.js +0 -1
- package/dist/public/assets/linear-wLRk1Mk5.js +0 -1
- package/dist/public/assets/liquid-DSHdIKcn.js +0 -1
- package/dist/public/assets/lt-LT-VQFYRSNQ-wqaj_sVI.js +0 -3
- package/dist/public/assets/lua-uuut0le-.js +0 -1
- package/dist/public/assets/lv-LV-T62VSYUM-BNtyl2rQ.js +0 -4
- package/dist/public/assets/map-HibSw9rM.js +0 -1
- package/dist/public/assets/markdownlint-rule-browser-BkoFe8vh.js +0 -1
- package/dist/public/assets/marko-B2ItSRAE.js +0 -1
- package/dist/public/assets/mdc-D8f-QMCR.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-9eTibmB8.js +0 -1
- package/dist/public/assets/mermaid-parser.core-CrMB0N84.js +0 -4
- package/dist/public/assets/mermaid.core-2k0e7aqA.js +0 -11
- package/dist/public/assets/mermaid.core-BZJZtrEQ.js +0 -1
- package/dist/public/assets/mindmap-definition-FAOFIHXS-CCKcHUq5.js +0 -96
- package/dist/public/assets/mr-IN-V4FHLCJE-oMA3egg7.js +0 -9
- package/dist/public/assets/my-MM-E3SQ6E54-BZ-VT2s2.js +0 -1
- package/dist/public/assets/navigation-targets-DNz1-Mdq.js +0 -1
- package/dist/public/assets/nb-NO-MLNOFN5H-CrEw8ViA.js +0 -8
- package/dist/public/assets/nextflow-DU_40_1U.js +0 -1
- package/dist/public/assets/nginx-D6LaZx8i.js +0 -1
- package/dist/public/assets/nim-B_3GUpGU.js +0 -1
- package/dist/public/assets/nl-NL-D5L3ZV4M-DR9i1yif.js +0 -13
- package/dist/public/assets/nn-NO-NNHDGPKB-hPCJnr2h.js +0 -4
- package/dist/public/assets/now-uu92kaf4.js +0 -1
- package/dist/public/assets/oc-FR-DWCRF55G-Dsw7c95A.js +0 -4
- package/dist/public/assets/ordinal-DQysBR80.js +0 -1
- package/dist/public/assets/pa-IN-3JSAY44M-CMK2nRrE.js +0 -4
- package/dist/public/assets/packet-7NZHBO7P-B9z17m58.js +0 -1
- package/dist/public/assets/pegDiagram-VL7TDLO6-DnXF2pPV.js +0 -1
- package/dist/public/assets/pending-receive-nav-store-BBv0eZU0.js +0 -1
- package/dist/public/assets/percentages-ETZPVQEE-BDt5rRQM.js +0 -1
- package/dist/public/assets/perl-CLDNDCLQ.js +0 -1
- package/dist/public/assets/php-BSCAUT8n.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-CzDE8OGq.js +0 -1
- package/dist/public/assets/pieDiagram-7S7Q4E2Y-CLwunx0y.js +0 -39
- package/dist/public/assets/pierre-theme-DS0n_Eei.js +0 -1376
- package/dist/public/assets/pl-PL-ACURYKP3-s4w2ecZ9.js +0 -12
- package/dist/public/assets/preferred-session-events-DL2IsSJX.js +0 -1
- package/dist/public/assets/prod-DCL1bSJN.js +0 -137
- package/dist/public/assets/progress-ajRGyTS4.js +0 -9
- package/dist/public/assets/project-paths-CFjiYaQI.js +0 -1
- package/dist/public/assets/prop-types-Dp5EeAot.js +0 -1
- package/dist/public/assets/pt-BR-LOX7MLGD-PbsMD0Tk.js +0 -10
- package/dist/public/assets/pt-PT-CZ2U2RFQ-DqzWwPhF.js +0 -12
- package/dist/public/assets/pug-BtQ4rHoj.js +0 -1
- package/dist/public/assets/qml-PHkhd373.js +0 -1
- package/dist/public/assets/quadrantDiagram-CIZ2JOQS-rFSUD5aB.js +0 -7
- package/dist/public/assets/radar-I7S5WNFK-Wnr-Dxa-.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-BlCehe-_.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-WbWW6RBJ.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-BNpef_w9.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-cqe3HjZY.js +0 -1
- package/dist/public/assets/railroadDiagram-AXF67PYL-Cb3qw3k2.js +0 -1
- package/dist/public/assets/razor-BoLMeGDL.js +0 -1
- package/dist/public/assets/requirementDiagram-LRYGKXZP-CeBifPIF.js +0 -84
- package/dist/public/assets/ro-RO-2HECL2X6-CPY5StG8.js +0 -12
- package/dist/public/assets/rst-Bu3gzIlQ.js +0 -1
- package/dist/public/assets/ru-RU-HAYNXO46-CC-zRU2y.js +0 -10
- package/dist/public/assets/ruby-CxMmoDCn.js +0 -1
- package/dist/public/assets/sankeyDiagram-W5VNT64P-DgSL0xBJ.js +0 -40
- package/dist/public/assets/sas-CMtpOcI8.js +0 -1
- package/dist/public/assets/scss-DxhCW7ZQ.js +0 -1
- package/dist/public/assets/selection-context-IrTsD024.js +0 -4
- package/dist/public/assets/sequenceDiagram-SI44F4Z6-BlbEYytU.js +0 -162
- package/dist/public/assets/shaderlab-CGbZvPgv.js +0 -1
- package/dist/public/assets/shellsession-BQfwaugQ.js +0 -1
- package/dist/public/assets/si-LK-W5KNS4H6-2INolAeD.js +0 -1
- package/dist/public/assets/sizeCapture-X5ZJPWSS-B4L05vz3.js +0 -1
- package/dist/public/assets/sk-SK-7K2CFGDV-Bx8NGrrt.js +0 -7
- package/dist/public/assets/sl-SI-OXV2QZWW-BQ_DBaBO.js +0 -6
- package/dist/public/assets/soy-BE086iUa.js +0 -1
- package/dist/public/assets/sparql-BxR905RN.js +0 -1
- package/dist/public/assets/src-3ELJ5te-.js +0 -1
- package/dist/public/assets/src-BlywHjNh.js +0 -2
- package/dist/public/assets/startup-marks-DMGltEeZ.js +0 -1
- package/dist/public/assets/stata-BDc5CzFy.js +0 -1
- package/dist/public/assets/stateDiagram-OKZ733FA-bl_yF4pA.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-C_MMnQ2J.js +0 -1
- package/dist/public/assets/subset-shared.chunk-b-UXZLmT.js +0 -1
- package/dist/public/assets/subset-worker.chunk-qJFL5htu.js +0 -1
- package/dist/public/assets/surrealql-nI_-L93O.js +0 -1
- package/dist/public/assets/sv-SE-JTOBZRGL-CGxGHo-W.js +0 -12
- package/dist/public/assets/svelte-DnK2lskG.js +0 -1
- package/dist/public/assets/swimlanes-SLNWSIFB-BLdhvGln.js +0 -2
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-gJ2u4kCv.js +0 -8
- package/dist/public/assets/ta-IN-KFAVKXGT-BS0hURfX.js +0 -6
- package/dist/public/assets/tag-pill-input-DZtyWe7m.js +0 -1
- package/dist/public/assets/target-navigation-intent-x6Cz30gq.js +0 -1
- package/dist/public/assets/telemetry-impl-CIOqNvHl.js +0 -2
- package/dist/public/assets/telemetry-startup-BcJfe6wF.js +0 -1
- package/dist/public/assets/templ-Cf13XiKX.js +0 -1
- package/dist/public/assets/terminal-launch-events-CD-f3rsR.js +0 -1
- package/dist/public/assets/terminal-telemetry-Bal4jOvO.js +0 -1
- package/dist/public/assets/tex-PmMtv69w.js +0 -1
- package/dist/public/assets/text-viewer-languages-DP8HzdKZ.js +0 -2
- package/dist/public/assets/th-TH-VDMSCPDL-C0yuJs1c.js +0 -1
- package/dist/public/assets/timeline-definition-Z64GVDOM-CPtNMIK4.js +0 -120
- package/dist/public/assets/tr-TR-CEZ6GX45-D1kPob6b.js +0 -4
- package/dist/public/assets/treeView-QDETBFTQ-BOn66Qic.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-C6R78ixY.js +0 -1
- package/dist/public/assets/ts-tags-4L2CpVbC.js +0 -1
- package/dist/public/assets/twig-Cj5j8FyV.js +0 -1
- package/dist/public/assets/typing-burst-detector-DISwAsbE.js +0 -8
- package/dist/public/assets/uk-UA-Q3H3OXQC-BQRgGHnc.js +0 -6
- package/dist/public/assets/uninstall-B0BbTXcU.js +0 -1
- package/dist/public/assets/use-activity-panel-ycvxJw7e.js +0 -1
- package/dist/public/assets/use-apply-config-language-CGsU-KWQ.js +0 -2
- package/dist/public/assets/use-live-xterm-theme-p2XjXywO.js +0 -1
- package/dist/public/assets/use-open-skill-Cb3YbBrN.js +0 -1
- package/dist/public/assets/use-skill-origin-InKRgPZV.js +0 -1
- package/dist/public/assets/use-skills-BgxkrVNo.js +0 -1
- package/dist/public/assets/use-terminal-enabled-wvtXpU82.js +0 -1
- package/dist/public/assets/use-timeline-entry-diff-q_FFOgQp.js +0 -5
- package/dist/public/assets/uz-UZ-NGCSWWPX-BbJBLsmQ.js +0 -1
- package/dist/public/assets/vennDiagram-T6HMQDX7-Cmmm7-Ic.js +0 -34
- package/dist/public/assets/vi-VN-P3NDEVPS-BkxULfm2.js +0 -7
- package/dist/public/assets/vue-BydAoNhZ.js +0 -1
- package/dist/public/assets/vue-html-gTBk01uO.js +0 -1
- package/dist/public/assets/vue-vine-_qFJWw6a.js +0 -1
- package/dist/public/assets/wardley-OPB4EBWU-BQu8FNUe.js +0 -1
- package/dist/public/assets/wardleyDiagram-T6FBY63Y-57Ij_2ve.js +0 -78
- package/dist/public/assets/xml-DFyuqrlM.js +0 -1
- package/dist/public/assets/xsl-CoH6Ht1D.js +0 -1
- package/dist/public/assets/xychartDiagram-ELKLHX3M-DjQiN8rp.js +0 -7
- package/dist/public/assets/zh-CN-SS3O57GA-CFvPsriE.js +0 -11
- package/dist/public/assets/zh-HK-LWJT3VCF-WbAIkmVr.js +0 -1
- package/dist/public/assets/zh-TW-VJXC72RT-goxexaoR.js +0 -13
- package/dist/registry-probes-Di9JNX9z.mjs +0 -17
- package/dist/removal-file-path-CgAmb4fV.mjs +0 -1
- package/dist/repair-launch-json-DEvH6l3H.mjs +0 -1
- package/dist/repair-mcp-configs-C7fQk3ys.mjs +0 -1
- package/dist/src-CzKwMKKs.mjs +0 -11
- package/dist/src-DwAq2_3L.mjs +0 -1
- package/dist/start-CVtJofhF.mjs +0 -5
- package/dist/start-GgK0YR4m.mjs +0 -1
- /package/dist/public/assets/{ConfigSharingInfoTooltip-CK9XrP2K.js → ConfigSharingInfoTooltip-DTnyEAkk.js} +0 -0
- /package/dist/public/assets/{DeleteConfirmationDialog-D282MErq.js → DeleteConfirmationDialog-BhMILeeF.js} +0 -0
- /package/dist/public/assets/{SkillCostValue-CDByRGH8.js → SkillCostValue-BE6EBNfT.js} +0 -0
- /package/dist/public/assets/{SkillModeBanner-D9DKXr9n.js → SkillModeBanner-zy45N7wU.js} +0 -0
- /package/dist/public/assets/{SlidesToolbarControls-BIG_fk4x.js → SlidesToolbarControls-60y5ydf2.js} +0 -0
- /package/dist/public/assets/{TerminalStartingNotice-CMzG3ocb.js → TerminalStartingNotice-BfAeAYou.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-BCp-FgmU.js → __vite-browser-external-Dp1w7vup.js} +0 -0
- /package/dist/public/assets/{abap-B6G1O06E.js → abap-DPEeM0nz.js} +0 -0
- /package/dist/public/assets/{actionscript-3-DfcmY80m.js → actionscript-3-CDbCbcML.js} +0 -0
- /package/dist/public/assets/{ada-C9PNCWS1.js → ada-qDp3_kP9.js} +0 -0
- /package/dist/public/assets/{agent-launcher-labels-C68Xjdk5.js → agent-launcher-labels-DN_oIpF1.js} +0 -0
- /package/dist/public/assets/{agent-presence-B7da2Vup.js → agent-presence-CI_mKDt4.js} +0 -0
- /package/dist/public/assets/{alert-DY6-nRLe.js → alert-BxnW-ZlU.js} +0 -0
- /package/dist/public/assets/{andromeeda-BUZSJe6f.js → andromeeda-CDbyw6SK.js} +0 -0
- /package/dist/public/assets/{apache-BDRvsaKK.js → apache-qtljdixL.js} +0 -0
- /package/dist/public/assets/{apex-DkYAsEfY.js → apex-9hgne4ZQ.js} +0 -0
- /package/dist/public/assets/{app-menubar-gate-CzegIdbU.js → app-menubar-gate-Ctr6noRu.js} +0 -0
- /package/dist/public/assets/{applescript-D-xOb6mv.js → applescript-ropEX6c9.js} +0 -0
- /package/dist/public/assets/{ara-BlDreiOm.js → ara-Co-KWcrG.js} +0 -0
- /package/dist/public/assets/{array-Chjy1TEV.js → array-CptRW1Qx.js} +0 -0
- /package/dist/public/assets/{asciidoc-aLwH4Lg9.js → asciidoc-CZVjsvOa.js} +0 -0
- /package/dist/public/assets/{asm-SaDP0k_I.js → asm-BI7Ia2MB.js} +0 -0
- /package/dist/public/assets/{aurora-x-Dhh1uO8c.js → aurora-x-Bh5NI184.js} +0 -0
- /package/dist/public/assets/{auth-prompt-store-CoaumXOi.js → auth-prompt-store-BG1KGa5o.js} +0 -0
- /package/dist/public/assets/{awk-DZ1870od.js → awk-B5Fj3upK.js} +0 -0
- /package/dist/public/assets/{ayu-dark-BFkemmT0.js → ayu-dark-DuY7ZiFo.js} +0 -0
- /package/dist/public/assets/{ayu-light-DSmIl4MJ.js → ayu-light-D983_CFs.js} +0 -0
- /package/dist/public/assets/{ayu-mirage-BMcWqIAc.js → ayu-mirage-CM-XV3Bs.js} +0 -0
- /package/dist/public/assets/{badge-BGcBcbDV.js → badge-EmKkAvTN.js} +0 -0
- /package/dist/public/assets/{ballerina-BjDpKDuE.js → ballerina-Dtj3Gjn_.js} +0 -0
- /package/dist/public/assets/{bat-_3XIw4OE.js → bat-DuWzkiax.js} +0 -0
- /package/dist/public/assets/{beancount-UGm0jkC-.js → beancount-DRbNXhAj.js} +0 -0
- /package/dist/public/assets/{berry-CiF65Lpy.js → berry-DbfcebwT.js} +0 -0
- /package/dist/public/assets/{bibtex-Usxd7MiN.js → bibtex-B_82B4rg.js} +0 -0
- /package/dist/public/assets/{bicep-D_xuHYza.js → bicep-DxRWkojc.js} +0 -0
- /package/dist/public/assets/{bird2-BNd-ayKa.js → bird2-CfqsBtVU.js} +0 -0
- /package/dist/public/assets/{c-CP8wywea.js → c-C0_6aqUQ.js} +0 -0
- /package/dist/public/assets/{c3-CdPZvDob.js → c3-B1411BmU.js} +0 -0
- /package/dist/public/assets/{cadence-DWxxesSQ.js → cadence-B0wyF3hR.js} +0 -0
- /package/dist/public/assets/{catppuccin-frappe-BmPgnwqX.js → catppuccin-frappe-DyPdqe3p.js} +0 -0
- /package/dist/public/assets/{catppuccin-latte-BdvYcfh3.js → catppuccin-latte-CtluGetf.js} +0 -0
- /package/dist/public/assets/{catppuccin-macchiato-BlcPvcxU.js → catppuccin-macchiato-DW2ULqjb.js} +0 -0
- /package/dist/public/assets/{catppuccin-mocha-B22hMB1U.js → catppuccin-mocha-BcVgnbeQ.js} +0 -0
- /package/dist/public/assets/{chunk-7XWMRXBY-l8jqD2Vn.js → chunk-7XWMRXBY-VpqwGI73.js} +0 -0
- /package/dist/public/assets/{chunk-A66AFZZU-D_zGw-jZ.js → chunk-A66AFZZU-Yip-PrMD.js} +0 -0
- /package/dist/public/assets/{chunk-FLYJHZSQ-CdggMJA5.js → chunk-FLYJHZSQ-D0KYF_nu.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-DSxLjAUA.js → chunk-KEIR6QF5-CyCrZ67g.js} +0 -0
- /package/dist/public/assets/{chunk-SRAX5OIU-_Ipu9ItK.js → chunk-SRAX5OIU-BBgA7Nfy.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-aKnyP-VT.js → chunk-Y2CYZVJY-Cp_w6nmo.js} +0 -0
- /package/dist/public/assets/{clarity-C0QzzeGV.js → clarity-DhXugHGq.js} +0 -0
- /package/dist/public/assets/{client-version-ol04LmN-.js → client-version-ChvQDp-z.js} +0 -0
- /package/dist/public/assets/{clike-7zPn0smO.js → clike-CIA0a2V1.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter-3v18kDwB.js → clipboard-adapter-BcUyjgvn.js} +0 -0
- /package/dist/public/assets/{clojure-xscGagfk.js → clojure-CO53VZTK.js} +0 -0
- /package/dist/public/assets/{cmake-6QmxG3QP.js → cmake-Bz-mGLzr.js} +0 -0
- /package/dist/public/assets/{codeowners-f33Tw_h8.js → codeowners-DPs0MBVL.js} +0 -0
- /package/dist/public/assets/{codeql-Ds6IFKQo.js → codeql-C2t9dgQ-.js} +0 -0
- /package/dist/public/assets/{colors-CX5_yg89.js → colors-Btzkwby1.js} +0 -0
- /package/dist/public/assets/{common-lisp-EsM9BOl6.js → common-lisp-C7Pe81ix.js} +0 -0
- /package/dist/public/assets/{contact-email-store-Dom1z23f.js → contact-email-store-C7J4PhPO.js} +0 -0
- /package/dist/public/assets/{copilot-SyPOvrhq.js → copilot-Cm5ODIkW.js} +0 -0
- /package/dist/public/assets/{coq-D-4bZTKK.js → coq-D1JzbtxY.js} +0 -0
- /package/dist/public/assets/{csharp-ByOAtMr_.js → csharp-DBFp7Rw8.js} +0 -0
- /package/dist/public/assets/{css-B2oBx02a.js → css-D9nOW1gz.js} +0 -0
- /package/dist/public/assets/{css-color-to-hex-Ddd95JnW.js → css-color-to-hex-wMBAsSG3.js} +0 -0
- /package/dist/public/assets/{csv-C_KIA25A.js → csv-DAwWuGse.js} +0 -0
- /package/dist/public/assets/{cue-CCC6JMGx.js → cue-DJ-6thWU.js} +0 -0
- /package/dist/public/assets/{cursor-DnmFJny0.js → cursor-4hw-hwX-.js} +0 -0
- /package/dist/public/assets/{cypher-BV6ubiGS.js → cypher-HO1ntCcH.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-DxmLQTcx.js → cytoscape.esm-Bd1JUlwi.js} +0 -0
- /package/dist/public/assets/{d-CVl6vWco.js → d-DxDCR2RY.js} +0 -0
- /package/dist/public/assets/{dark-plus-C2zD35tS.js → dark-plus-C-BinfKO.js} +0 -0
- /package/dist/public/assets/{dart-a_8TYlPk.js → dart-DKOs13M4.js} +0 -0
- /package/dist/public/assets/{dax-D6av1cDO.js → dax-B4HLdCME.js} +0 -0
- /package/dist/public/assets/{defaultLocale-BTOUcNS-.js → defaultLocale-DvpxZUnT.js} +0 -0
- /package/dist/public/assets/{desktop-DCDlfvuk.js → desktop-B6iSWPQJ.js} +0 -0
- /package/dist/public/assets/{dialog-gPDFmQk-.js → dialog-Cv_pRVgB.js} +0 -0
- /package/dist/public/assets/{diff-D8kx8xdo.js → diff-Bmzfxlij.js} +0 -0
- /package/dist/public/assets/{diff-BnI_crp2.js → diff-Dtkja3mx.js} +0 -0
- /package/dist/public/assets/{dist-CLRN-Sf-.js → dist-AflZtDqw.js} +0 -0
- /package/dist/public/assets/{dist-Aa9c7yje.js → dist-DDVbnKWY.js} +0 -0
- /package/dist/public/assets/{dist-gZdRwFap.js → dist-DWixtctT.js} +0 -0
- /package/dist/public/assets/{docker-BQkPBbZo.js → docker-SyYRzWOA.js} +0 -0
- /package/dist/public/assets/{documents-fetch-sbhR-qg0.js → documents-fetch-BN5vQY0e.js} +0 -0
- /package/dist/public/assets/{dotenv-B9PltzQO.js → dotenv-CkU560BN.js} +0 -0
- /package/dist/public/assets/{dracula-C8YOCbJD.js → dracula-snm8AwlD.js} +0 -0
- /package/dist/public/assets/{dracula-soft-D_v_j4j3.js → dracula-soft-CAW8lBLS.js} +0 -0
- /package/dist/public/assets/{dream-maker-D6U2XrIN.js → dream-maker-CGqVx3lj.js} +0 -0
- /package/dist/public/assets/{emacs-lisp-CF5kgWp1.js → emacs-lisp-CcQds-Bo.js} +0 -0
- /package/dist/public/assets/{engine-compile-DM2DbcFO.js → engine-compile-Cgd-zCgy.js} +0 -0
- /package/dist/public/assets/{everforest-dark-Ce_9x7gy.js → everforest-dark-DgWEQXa5.js} +0 -0
- /package/dist/public/assets/{everforest-light-CpBXb568.js → everforest-light-WzUuSvtT.js} +0 -0
- /package/dist/public/assets/{excalidraw-scene-B8IkFuHe.js → excalidraw-scene-BStZkHyn.js} +0 -0
- /package/dist/public/assets/{external-link-C5LIdhIa.js → external-link-iDv4MHBU.js} +0 -0
- /package/dist/public/assets/{fennel-BL2It54o.js → fennel-Cozur1Qf.js} +0 -0
- /package/dist/public/assets/{field-bXEeLKBZ.js → field-CKJVhgvN.js} +0 -0
- /package/dist/public/assets/{file-tree-rename-validation-CaMw2nJs.js → file-tree-rename-validation-C0aGoscw.js} +0 -0
- /package/dist/public/assets/{file-tree-utils-6Y2CjVKd.js → file-tree-utils-elC-lbdd.js} +0 -0
- /package/dist/public/assets/{fish-3biEKwnx.js → fish-Cz__Is_v.js} +0 -0
- /package/dist/public/assets/{fluent-CRUqYV6F.js → fluent-eOqkWxfb.js} +0 -0
- /package/dist/public/assets/{form-C-BVpLsV.js → form-L3zDbeZR.js} +0 -0
- /package/dist/public/assets/{format-DOUMbUdu.js → format-D-TW7aYJ.js} +0 -0
- /package/dist/public/assets/{fortran-free-form-PCb3S0BH.js → fortran-free-form-DOc-uCH8.js} +0 -0
- /package/dist/public/assets/{gdscript-C0rIyVMl.js → gdscript-NSoMR6dX.js} +0 -0
- /package/dist/public/assets/{gdshader-_0-CZ7Hf.js → gdshader-CtuXPM-D.js} +0 -0
- /package/dist/public/assets/{genie-0Rq_SAdW.js → genie-CO7h5Vci.js} +0 -0
- /package/dist/public/assets/{gherkin-D0zUCQx9.js → gherkin-Cdd9Sa5b.js} +0 -0
- /package/dist/public/assets/{gherkin-Cdc3a_xv.js → gherkin-DcciNeMx.js} +0 -0
- /package/dist/public/assets/{github-dark-D98ZVxku.js → github-dark-BhW1tl4F.js} +0 -0
- /package/dist/public/assets/{github-dark-default-9J-5aEvp.js → github-dark-default-CkXQhFFQ.js} +0 -0
- /package/dist/public/assets/{github-dark-dimmed-9iqkTI51.js → github-dark-dimmed-CwtPEAjW.js} +0 -0
- /package/dist/public/assets/{github-dark-high-contrast-C9r61hWl.js → github-dark-high-contrast-DIdgxCsK.js} +0 -0
- /package/dist/public/assets/{github-light-DWgv_oJg.js → github-light-DLkccEgZ.js} +0 -0
- /package/dist/public/assets/{github-light-default-D82xHin5.js → github-light-default-BXac_QDn.js} +0 -0
- /package/dist/public/assets/{github-light-high-contrast-cCDh8RU1.js → github-light-high-contrast-DBfvZcri.js} +0 -0
- /package/dist/public/assets/{gleam-D3JrWHS1.js → gleam-BIm-lqIh.js} +0 -0
- /package/dist/public/assets/{gn-CKDc26Dt.js → gn-DEPR6fkU.js} +0 -0
- /package/dist/public/assets/{gnuplot-kxrYpuWz.js → gnuplot-Bv19JGhb.js} +0 -0
- /package/dist/public/assets/{go-Co3UuA4J.js → go-DIIQSsXN.js} +0 -0
- /package/dist/public/assets/{go-BmEgGOn9.js → go-dJvMroCu.js} +0 -0
- /package/dist/public/assets/{groovy-CaSl4Fdo.js → groovy-QRLCMic2.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-hard-Dhhz8TIz.js → gruvbox-dark-hard-CFbTicCD.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-medium-SvZjnxeC.js → gruvbox-dark-medium-DtHzLC_G.js} +0 -0
- /package/dist/public/assets/{gruvbox-dark-soft-B-oNL0KQ.js → gruvbox-dark-soft-BYlSgQwT.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-hard-DqIVn_el.js → gruvbox-light-hard-nt_ZFDam.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-medium-Bqe_jWIZ.js → gruvbox-light-medium-D1KFlXbq.js} +0 -0
- /package/dist/public/assets/{gruvbox-light-soft-CO1XsPWD.js → gruvbox-light-soft-fjAAaZbm.js} +0 -0
- /package/dist/public/assets/{haskell-Di8rWef8.js → haskell-MrmiRzxZ.js} +0 -0
- /package/dist/public/assets/{haxe-CgMzeTna.js → haxe-CG6XwjVB.js} +0 -0
- /package/dist/public/assets/{hcl-ChKQ7lpN.js → hcl-YKWaew7n.js} +0 -0
- /package/dist/public/assets/{hjson-48pvdtkI.js → hjson-CXoNFYEy.js} +0 -0
- /package/dist/public/assets/{hlsl-CR7CH9fv.js → hlsl-BBX3Pu1I.js} +0 -0
- /package/dist/public/assets/{horizon-DbRrwU2h.js → horizon-ChftiNLU.js} +0 -0
- /package/dist/public/assets/{horizon-bright-B4ag9vb-.js → horizon-bright-D_3Kauqj.js} +0 -0
- /package/dist/public/assets/{houston-BZPo8uAq.js → houston-DovfF3_X.js} +0 -0
- /package/dist/public/assets/{hy-BJy0eoIH.js → hy-Ci_jFuTf.js} +0 -0
- /package/dist/public/assets/{image-blob-reduce.esm-ClqAmlzn.js → image-blob-reduce.esm-D6mW2xi9.js} +0 -0
- /package/dist/public/assets/{imba-xgKqcNKB.js → imba-50mWIp4y.js} +0 -0
- /package/dist/public/assets/{ini-DKtEmc5B.js → ini-DH8r6S76.js} +0 -0
- /package/dist/public/assets/{init-BThtXcua.js → init-D5xl0SXZ.js} +0 -0
- /package/dist/public/assets/{input-f41fkc3m.js → input-6HnhfmYW.js} +0 -0
- /package/dist/public/assets/{isObject-D6RZweuV.js → isObject-DZDcBSCs.js} +0 -0
- /package/dist/public/assets/{java-CTx3zeAp.js → java-BiphkwM4.js} +0 -0
- /package/dist/public/assets/{javascript-DQmQ7Pmq.js → javascript-DlHDGilr.js} +0 -0
- /package/dist/public/assets/{json-Wb0KVxb4.js → json-DKmbqLQO.js} +0 -0
- /package/dist/public/assets/{json5-CDzqm5pH.js → json5-CbA7B19t.js} +0 -0
- /package/dist/public/assets/{jsonc-Bhm5u6Oy.js → jsonc-16gHT3lY.js} +0 -0
- /package/dist/public/assets/{jsonl-B1ujJxyU.js → jsonl-1P63S-da.js} +0 -0
- /package/dist/public/assets/{jsonnet-BPfLDi1N.js → jsonnet-St0SEDJA.js} +0 -0
- /package/dist/public/assets/{jssm-BMqya12L.js → jssm-D9pc8bT7.js} +0 -0
- /package/dist/public/assets/{jsx-CGt27cLy.js → jsx-CIgo9HJY.js} +0 -0
- /package/dist/public/assets/{kanagawa-dragon-BGI9LG6c.js → kanagawa-dragon-c5RVuQo2.js} +0 -0
- /package/dist/public/assets/{kanagawa-lotus-BMadzn_Y.js → kanagawa-lotus-Cj0-LcLV.js} +0 -0
- /package/dist/public/assets/{kanagawa-wave-BtoOe6QC.js → kanagawa-wave-CyKnp27K.js} +0 -0
- /package/dist/public/assets/{kdl-CB-Sq7Dx.js → kdl-DXLzn4yV.js} +0 -0
- /package/dist/public/assets/{known-skill-dirs-BKa6yUB3.js → known-skill-dirs-BZ8lUpY6.js} +0 -0
- /package/dist/public/assets/{kotlin-ByzvSoid.js → kotlin-CGdGXVk2.js} +0 -0
- /package/dist/public/assets/{kusto-CgkCu44m.js → kusto-D437SRfT.js} +0 -0
- /package/dist/public/assets/{laserwave-CW9egyLc.js → laserwave-fni2NBsl.js} +0 -0
- /package/dist/public/assets/{lean-DxL7tyqw.js → lean-nhnkt8KX.js} +0 -0
- /package/dist/public/assets/{less-DbVqUQOT.js → less-C1fn1Gyf.js} +0 -0
- /package/dist/public/assets/{libesm-Crzrznn_.js → libesm-BEUxPyRS.js} +0 -0
- /package/dist/public/assets/{light-plus-DH7FkSAc.js → light-plus-e-IzfJhg.js} +0 -0
- /package/dist/public/assets/{lint-config-client-KBVNMhL3.js → lint-config-client-DBFw6OHC.js} +0 -0
- /package/dist/public/assets/{llvm-CHmTBrGB.js → llvm-CSD_2XI7.js} +0 -0
- /package/dist/public/assets/{log-CzWM2UtE.js → log-DrimKCsQ.js} +0 -0
- /package/dist/public/assets/{logo-h8nVViI-.js → logo-Bll3l9KX.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-16HpGUlE.js → lru-string-cache-DqO2nmU0.js} +0 -0
- /package/dist/public/assets/{lua-D7Iy94c5.js → lua-5sXwmXX7.js} +0 -0
- /package/dist/public/assets/{luau-CxDmBAjD.js → luau-BVQ1C7K8.js} +0 -0
- /package/dist/public/assets/{make-BHLB4QPh.js → make-x759WNaC.js} +0 -0
- /package/dist/public/assets/{markdown-BybTbn-K.js → markdown-BXZoSw-G.js} +0 -0
- /package/dist/public/assets/{material-theme-DySYnQpY.js → material-theme-ByrV5adO.js} +0 -0
- /package/dist/public/assets/{material-theme-darker-D0Xrm9hJ.js → material-theme-darker-CSQTKd9_.js} +0 -0
- /package/dist/public/assets/{material-theme-lighter-uORXTrUt.js → material-theme-lighter-DJvX3Onv.js} +0 -0
- /package/dist/public/assets/{material-theme-ocean-th1hTGS3.js → material-theme-ocean-AojpcjWK.js} +0 -0
- /package/dist/public/assets/{material-theme-palenight-BjC1SDEr.js → material-theme-palenight-BjCdzDgN.js} +0 -0
- /package/dist/public/assets/{matlab-xfdmVf5h.js → matlab-B51TUcta.js} +0 -0
- /package/dist/public/assets/{mdx-BGr4WQiV.js → mdx-BxWX6cgh.js} +0 -0
- /package/dist/public/assets/{mermaid-BxLF-buK.js → mermaid-BPL861OF.js} +0 -0
- /package/dist/public/assets/{messages-CMVUUHOC.js → messages-BW4p1NtB.js} +0 -0
- /package/dist/public/assets/{messages-CH85mC4z.js → messages-BbtT8UWj.js} +0 -0
- /package/dist/public/assets/{messages-DuiRtbNh.js → messages-C1VeyNl0.js} +0 -0
- /package/dist/public/assets/{messages-DJLSxeV6.js → messages-CMn1fNZK.js} +0 -0
- /package/dist/public/assets/{messages-CJQZ4pG6.js → messages-D6rUTZQ6.js} +0 -0
- /package/dist/public/assets/{messages-Dj4gUBL7.js → messages-DK3V0faN.js} +0 -0
- /package/dist/public/assets/{messages-BBuikFTN.js → messages-DNpYLZfq.js} +0 -0
- /package/dist/public/assets/{messages-DLxeITeT.js → messages-DVQlq8SU.js} +0 -0
- /package/dist/public/assets/{messages-BdMaFk9p.js → messages-D_2aHJUi.js} +0 -0
- /package/dist/public/assets/{messages-ALZVWgcA.js → messages-Dcr562Y0.js} +0 -0
- /package/dist/public/assets/{messages-Bn1_08f0.js → messages-DvaMLKsL.js} +0 -0
- /package/dist/public/assets/{messages-DZh_70lh.js → messages-Dz2z2MLj.js} +0 -0
- /package/dist/public/assets/{min-NTuZ-xsF.js → min-C17jSMaY.js} +0 -0
- /package/dist/public/assets/{min-dark-uiAKaQix.js → min-dark-0X0enwTy.js} +0 -0
- /package/dist/public/assets/{min-light-BoVyZrL-.js → min-light-hyqyiBhK.js} +0 -0
- /package/dist/public/assets/{mipsasm-BG1NuRJT.js → mipsasm-DZ-DerOW.js} +0 -0
- /package/dist/public/assets/{mojo-BFh2pV_5.js → mojo-xq-aQ13L.js} +0 -0
- /package/dist/public/assets/{monokai-bbBrCdcG.js → monokai-o2f7FRXT.js} +0 -0
- /package/dist/public/assets/{moonbit-DxIUBkBo.js → moonbit-Brt_BRZr.js} +0 -0
- /package/dist/public/assets/{move-BSmoqwC8.js → move-CMkSn4xI.js} +0 -0
- /package/dist/public/assets/{narrat-Bj-utHfk.js → narrat-Dawk8vJW.js} +0 -0
- /package/dist/public/assets/{nextflow-groovy-BfVhNrWa.js → nextflow-groovy-CTKdTV4p.js} +0 -0
- /package/dist/public/assets/{night-owl-CpHKdcX8.js → night-owl-Ci4RUF4G.js} +0 -0
- /package/dist/public/assets/{night-owl-light-LyhNs2M-.js → night-owl-light-BBVZScAw.js} +0 -0
- /package/dist/public/assets/{nix-ClFitmpR.js → nix-CU9UQov9.js} +0 -0
- /package/dist/public/assets/{nord-D1SVwnSs.js → nord-BWcVlsgT.js} +0 -0
- /package/dist/public/assets/{nushell-BHWLq_1I.js → nushell-DPcrz7g9.js} +0 -0
- /package/dist/public/assets/{objective-c-v_xN8GD3.js → objective-c-Bm4yYAj-.js} +0 -0
- /package/dist/public/assets/{objective-cpp-CibqCln4.js → objective-cpp-nfI96nBP.js} +0 -0
- /package/dist/public/assets/{ocaml-BY2V91uO.js → ocaml-B-_49PKI.js} +0 -0
- /package/dist/public/assets/{odin-CZtp0iiq.js → odin-CQf5tQ8Y.js} +0 -0
- /package/dist/public/assets/{ok-C8C0LnTP.js → ok-BOt5NZkI.js} +0 -0
- /package/dist/public/assets/{ok-syntax-theme-BmVEsR7C.js → ok-syntax-theme-BmEJWhRq.js} +0 -0
- /package/dist/public/assets/{one-dark-pro-B1zSH5mj.js → one-dark-pro-C3NcDchq.js} +0 -0
- /package/dist/public/assets/{one-light-xF5PB54d.js → one-light-CX2ZkaZr.js} +0 -0
- /package/dist/public/assets/{openscad-Yr3aaR7x.js → openscad-B03CWcpV.js} +0 -0
- /package/dist/public/assets/{page-list-cache-CiL3sHQ-.js → page-list-cache-DvhqPgdF.js} +0 -0
- /package/dist/public/assets/{panel-YWvIeRKP.js → panel-BZDa_Rdl.js} +0 -0
- /package/dist/public/assets/{panzoom.es-CdDoTOGj.js → panzoom.es-B5ta3IUI.js} +0 -0
- /package/dist/public/assets/{pascal-Di8o2txR.js → pascal-NJO6xQFP.js} +0 -0
- /package/dist/public/assets/{path-qsVnkQMi.js → path-Dxj0j-14.js} +0 -0
- /package/dist/public/assets/{pdf-B_KM6HrW.js → pdf-BRv3Az6X.js} +0 -0
- /package/dist/public/assets/{pdf.worker-BOK7dGS9.js → pdf.worker-Cf0_N8eX.js} +0 -0
- /package/dist/public/assets/{perl-Cowe37JI.js → perl-D5gLYqTZ.js} +0 -0
- /package/dist/public/assets/{pica-D5-eMd4K.js → pica-B_zwnX7t.js} +0 -0
- /package/dist/public/assets/{pierre-dark-protanopia-deuteranopia-ypH1ArvY.js → pierre-dark-protanopia-deuteranopia-B0ftdsPE.js} +0 -0
- /package/dist/public/assets/{pierre-dark-Do9UcwTK.js → pierre-dark-rrscqVQq.js} +0 -0
- /package/dist/public/assets/{pierre-dark-soft-aLCDRG1u.js → pierre-dark-soft-DZiwj92d.js} +0 -0
- /package/dist/public/assets/{pierre-dark-tritanopia-CoRiIfxz.js → pierre-dark-tritanopia-CixhAD2g.js} +0 -0
- /package/dist/public/assets/{pierre-dark-vibrant-abEkFOLj.js → pierre-dark-vibrant-A0FNdxyg.js} +0 -0
- /package/dist/public/assets/{pierre-light-B5mx-OO0.js → pierre-light-2JrT5RnW.js} +0 -0
- /package/dist/public/assets/{pierre-light-protanopia-deuteranopia-70WWPsZQ.js → pierre-light-protanopia-deuteranopia-Cvitf3nx.js} +0 -0
- /package/dist/public/assets/{pierre-light-soft-DtgFPpfM.js → pierre-light-soft-NBYL08mT.js} +0 -0
- /package/dist/public/assets/{pierre-light-tritanopia-y3mv-iNd.js → pierre-light-tritanopia-laSRy7Qz.js} +0 -0
- /package/dist/public/assets/{pierre-light-vibrant-B_Wjsn7F.js → pierre-light-vibrant-DMPpspFW.js} +0 -0
- /package/dist/public/assets/{pkl-4n_BVBGf.js → pkl-DBgHNK67.js} +0 -0
- /package/dist/public/assets/{plastic-Q50-QWnu.js → plastic-M_BFha8c.js} +0 -0
- /package/dist/public/assets/{platform-labels-_NqJVta7.js → platform-labels-E86pSHLg.js} +0 -0
- /package/dist/public/assets/{plsql-Buro9Xsa.js → plsql-BcAibH9g.js} +0 -0
- /package/dist/public/assets/{po-B55S9v9E.js → po-DLB9713I.js} +0 -0
- /package/dist/public/assets/{poimandres-CFtyxSUq.js → poimandres-ByORt5qI.js} +0 -0
- /package/dist/public/assets/{polar-hI68BkNA.js → polar-DMypDn9P.js} +0 -0
- /package/dist/public/assets/{popover-CBJqdXoA.js → popover-COZloETk.js} +0 -0
- /package/dist/public/assets/{postcss-DiEmoWz3.js → postcss-Ccgbw1zo.js} +0 -0
- /package/dist/public/assets/{powerquery-CGDKELfB.js → powerquery-CoYoPDhy.js} +0 -0
- /package/dist/public/assets/{powershell-7AE7XVcl.js → powershell-RM_jWTQ8.js} +0 -0
- /package/dist/public/assets/{prisma-_sy2hn7i.js → prisma-JgN60A4h.js} +0 -0
- /package/dist/public/assets/{prolog-TuU2vkl3.js → prolog-CYEW59_z.js} +0 -0
- /package/dist/public/assets/{properties-DZ8vtoOH.js → properties-CbGvo0aA.js} +0 -0
- /package/dist/public/assets/{proto-DFIx2oRg.js → proto-BrJJ_Fn2.js} +0 -0
- /package/dist/public/assets/{puppet-BLKSELnA.js → puppet-DuBIg4gn.js} +0 -0
- /package/dist/public/assets/{purescript-CTLwyr7N.js → purescript-Bv6XbmOm.js} +0 -0
- /package/dist/public/assets/{python-BcVv4oUw.js → python-CV47t8Gf.js} +0 -0
- /package/dist/public/assets/{qmldir-CilLbzOY.js → qmldir-Dasr3cc5.js} +0 -0
- /package/dist/public/assets/{qss-CEvN9Pus.js → qss-CQgMFeEI.js} +0 -0
- /package/dist/public/assets/{r-DWWMYyNY.js → r-BfYo7P4b.js} +0 -0
- /package/dist/public/assets/{r-ICgUvKY9.js → r-C_xjFlqJ.js} +0 -0
- /package/dist/public/assets/{racket-BX7l4Odg.js → racket-cwCCECwF.js} +0 -0
- /package/dist/public/assets/{raku-DCPbjCK4.js → raku-Bj0c2PoO.js} +0 -0
- /package/dist/public/assets/{receive-store-C-X75l3d.js → receive-store-Djrqwgcm.js} +0 -0
- /package/dist/public/assets/{red-CHJGKO14.js → red-BLXAVNUU.js} +0 -0
- /package/dist/public/assets/{reg-v1lYxIk4.js → reg-BJ4VhAqv.js} +0 -0
- /package/dist/public/assets/{regexp-DPa2YRJ0.js → regexp-DC_q-qQW.js} +0 -0
- /package/dist/public/assets/{rel-i2D2vbC1.js → rel-CYZiUXcT.js} +0 -0
- /package/dist/public/assets/{riscv-DDoWHn9e.js → riscv-BrxcwWCd.js} +0 -0
- /package/dist/public/assets/{ron-CIgWlySU.js → ron-BCYsybTe.js} +0 -0
- /package/dist/public/assets/{rose-pine-DbzmiSK0.js → rose-pine-CXf56REi.js} +0 -0
- /package/dist/public/assets/{rose-pine-dawn-CyDdbkC0.js → rose-pine-dawn-B7gldBeO.js} +0 -0
- /package/dist/public/assets/{rose-pine-moon-DVsWUxsc.js → rose-pine-moon-CNu7L6GE.js} +0 -0
- /package/dist/public/assets/{rosmsg-8bxj5Wxk.js → rosmsg-tEEe5NZR.js} +0 -0
- /package/dist/public/assets/{rough.esm-jZQkcmER.js → rough.esm-DE_lJ5Ge.js} +0 -0
- /package/dist/public/assets/{roundRect-qsjhvWa7.js → roundRect-Dj9Qe5Ji.js} +0 -0
- /package/dist/public/assets/{ruby-CV1cSk7y.js → ruby-BQqhxVtv.js} +0 -0
- /package/dist/public/assets/{rust-DunuSzmW.js → rust-C6z4oJOy.js} +0 -0
- /package/dist/public/assets/{sass-7yks5T8G.js → sass-BSRZawnQ.js} +0 -0
- /package/dist/public/assets/{scala-D3QLCSjK.js → scala-kprtgFrl.js} +0 -0
- /package/dist/public/assets/{schema-fields-view-intent-CNfwnNXG.js → schema-fields-view-intent-DelPzufU.js} +0 -0
- /package/dist/public/assets/{scheme-BKKX442g.js → scheme-RXjF-I-t.js} +0 -0
- /package/dist/public/assets/{sdbl-BO7gjAg3.js → sdbl-B_6tpzzW.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-p2fOHi_7.js → share-metadata-rows-iQiWNrX5.js} +0 -0
- /package/dist/public/assets/{shell-DMxyb7JZ.js → shell-CSNfdh9n.js} +0 -0
- /package/dist/public/assets/{shellscript-B7ivo3w2.js → shellscript-D5UuKqHK.js} +0 -0
- /package/dist/public/assets/{skeleton-BJMacgN3.js → skeleton-dNp6WrHl.js} +0 -0
- /package/dist/public/assets/{skill-scope-07jzWC6c.js → skill-scope-BnHkWlIp.js} +0 -0
- /package/dist/public/assets/{skills-api-Bdi9Sls8.js → skills-api-C9lYknem.js} +0 -0
- /package/dist/public/assets/{slack-dark-C4BAj0zG.js → slack-dark-CwjFnlVt.js} +0 -0
- /package/dist/public/assets/{slack-ochin-C7ZSz2re.js → slack-ochin-LzCvys6s.js} +0 -0
- /package/dist/public/assets/{smalltalk-BVg0n3PR.js → smalltalk-BBbACgl7.js} +0 -0
- /package/dist/public/assets/{snazzy-light-Cs5rak87.js → snazzy-light-NXcQ8sF0.js} +0 -0
- /package/dist/public/assets/{solarized-dark-D5tKhMKW.js → solarized-dark-B-VoNlUK.js} +0 -0
- /package/dist/public/assets/{solarized-light-Cfg4buFY.js → solarized-light-C8vl6MNh.js} +0 -0
- /package/dist/public/assets/{solidity-CNyVlel_.js → solidity-Ctalf8dM.js} +0 -0
- /package/dist/public/assets/{sortable.esm-BqXWcrem.js → sortable.esm-D50Gs9Eb.js} +0 -0
- /package/dist/public/assets/{splunk-CguydXwG.js → splunk-B_oMX2tE.js} +0 -0
- /package/dist/public/assets/{sql-Dc5_M3Jn.js → sql-CxtKvNAf.js} +0 -0
- /package/dist/public/assets/{sql-D0xFSArR.js → sql-EiNxeFWI.js} +0 -0
- /package/dist/public/assets/{src-CFCDRYHD.js → src-D90fZ1pT.js} +0 -0
- /package/dist/public/assets/{ssh-config-BzUb6Ldl.js → ssh-config-CLbibmz9.js} +0 -0
- /package/dist/public/assets/{stex-Bg195G9l.js → stex-D_W9RRx2.js} +0 -0
- /package/dist/public/assets/{stylus-CNDNun22.js → stylus-YEVMcPJ_.js} +0 -0
- /package/dist/public/assets/{swift-B58SmkpI.js → swift-Cf04WqN5.js} +0 -0
- /package/dist/public/assets/{swift-BM43jnQ4.js → swift-k2zMh0Sz.js} +0 -0
- /package/dist/public/assets/{synthwave-84-D0d2D2kc.js → synthwave-84-DlwiGpRE.js} +0 -0
- /package/dist/public/assets/{system-verilog-BefigMKC.js → system-verilog-BjzhvZci.js} +0 -0
- /package/dist/public/assets/{systemd-CicIMKx8.js → systemd-r4irDtOY.js} +0 -0
- /package/dist/public/assets/{tabs-B4yZ8H83.js → tabs-DWO28sb2.js} +0 -0
- /package/dist/public/assets/{talonscript-nw2ZOgZF.js → talonscript-y8AQFJDG.js} +0 -0
- /package/dist/public/assets/{tasl-B5MX0P1I.js → tasl-CXkTfQ-7.js} +0 -0
- /package/dist/public/assets/{tcl-DUJsrRHU.js → tcl-q0qwTP_T.js} +0 -0
- /package/dist/public/assets/{terminal-command-events-DaYZ4rvK.js → terminal-command-events-DonTra6W.js} +0 -0
- /package/dist/public/assets/{terraform-BurLtx7S.js → terraform-BTUgfdOT.js} +0 -0
- /package/dist/public/assets/{textarea-DkcNoPBJ.js → textarea-DUYJ_2l0.js} +0 -0
- /package/dist/public/assets/{thread-client-C1FOF8bU.js → thread-client-BS0s_MKD.js} +0 -0
- /package/dist/public/assets/{timeline-diff-store-C2db-_BF.js → timeline-diff-store-Dx1mFxgG.js} +0 -0
- /package/dist/public/assets/{tokyo-night-B2kArRer.js → tokyo-night-Di7IEaJD.js} +0 -0
- /package/dist/public/assets/{toml-Dx3bnRiA.js → toml-B2qVDGgJ.js} +0 -0
- /package/dist/public/assets/{toml-BKXsT_kJ.js → toml-CLlekQWz.js} +0 -0
- /package/dist/public/assets/{tool-list-format-CN0A1M0q.js → tool-list-format-C-Zu064J.js} +0 -0
- /package/dist/public/assets/{tsv-DxTSgXKD.js → tsv-D6S6-BAc.js} +0 -0
- /package/dist/public/assets/{tsx-C-TkkiIW.js → tsx-DZG4sVWZ.js} +0 -0
- /package/dist/public/assets/{turtle-CCyFdVnr.js → turtle-CznagvsP.js} +0 -0
- /package/dist/public/assets/{typescript-o1bu4XTI.js → typescript-D-0vhNzb.js} +0 -0
- /package/dist/public/assets/{typespec-CO9ZM9oq.js → typespec-CYnEOgpX.js} +0 -0
- /package/dist/public/assets/{typst-CtIB1Ee7.js → typst-DVNeljyd.js} +0 -0
- /package/dist/public/assets/{use-collab-url-BOYyAEAy.js → use-collab-url-DnDtI_86.js} +0 -0
- /package/dist/public/assets/{use-conflicts-CcUMLnH-.js → use-conflicts-DYvfJWip.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-Cr9Uz3fy.js → use-installed-clis-DYoBxFbg.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-QafPWUQc.js → useLintConfigViewMode-C2RW74Gg.js} +0 -0
- /package/dist/public/assets/{v-C4oDod1z.js → v-VKcGmoG_.js} +0 -0
- /package/dist/public/assets/{vala-D5cfiTIx.js → vala-D6c66HHx.js} +0 -0
- /package/dist/public/assets/{vb-Bq3RHYwu.js → vb-DVrp7wo6.js} +0 -0
- /package/dist/public/assets/{verilog-BFXABkJw.js → verilog-BNTty9nX.js} +0 -0
- /package/dist/public/assets/{vesper-CIoTQeIf.js → vesper-Ce1c9RsC.js} +0 -0
- /package/dist/public/assets/{vhdl-CobdOxZ5.js → vhdl-CiHAZFu_.js} +0 -0
- /package/dist/public/assets/{viml-2wiKXwq9.js → viml-BAvXMdfj.js} +0 -0
- /package/dist/public/assets/{vitesse-black-BxU7Aa0j.js → vitesse-black-CRAYCNyL.js} +0 -0
- /package/dist/public/assets/{vitesse-dark-KgaxUars.js → vitesse-dark-C2ZAZDAH.js} +0 -0
- /package/dist/public/assets/{vitesse-light-mCXGgljU.js → vitesse-light-doROc42j.js} +0 -0
- /package/dist/public/assets/{vyper-CkAUfbkf.js → vyper-qlHqsgRr.js} +0 -0
- /package/dist/public/assets/{wasm-Cjb81IoX.js → wasm-0HIOaKHk.js} +0 -0
- /package/dist/public/assets/{wasm-D6eO1hWJ.js → wasm-BE0rLPn9.js} +0 -0
- /package/dist/public/assets/{wenyan-CYSV40hV.js → wenyan-C93oTLLt.js} +0 -0
- /package/dist/public/assets/{wgsl-fVQJ6W1J.js → wgsl-DInwu8sy.js} +0 -0
- /package/dist/public/assets/{wikitext-DqzFh5aG.js → wikitext-D4G3Dvdp.js} +0 -0
- /package/dist/public/assets/{wit-BRyAhOp-.js → wit-C6ULNp8j.js} +0 -0
- /package/dist/public/assets/{wolfram-B9tfv63T.js → wolfram-S9AeH3Rt.js} +0 -0
- /package/dist/public/assets/{yaml-CL_pb-41.js → yaml-BgLFzqoW.js} +0 -0
- /package/dist/public/assets/{zenscript-q_X5Icpd.js → zenscript-CahmDEEt.js} +0 -0
- /package/dist/public/assets/{zig-DIa2U638.js → zig-BZWJUFD7.js} +0 -0
package/dist/init-C8xK8YsJ.mjs
DELETED
|
@@ -1,693 +0,0 @@
|
|
|
1
|
-
import{i as e,o as t,t as n}from"./rolldown-runtime-tZXQYakl.mjs";import{Ad as r,Bd as i,Fd as a,Fu as o,Gl as s,Hu as c,Id as l,Iu as u,Mt as d,Nd as f,Nl as p,Vl as m,_s as h,hs as g,jd as _,ju as v,rc as y,zd as b}from"./md-manager-BGnqyqi1-DKflYxqj.mjs";import{Co as x,Do as S,Eo as ee,Fr as te,Gn as ne,H as re,Ji as ie,L as ae,Lo as oe,Or as se,Qt as ce,R as le,Rn as ue,Sr as de,To as fe,Tt as pe,Uo as me,Zi as he,at as ge,fo as _e,jo as C,la as ve,m as ye,qi as be,qr as xe,rt as Se,so as Ce,uo as we,wo as Te}from"./dist-Bz66haV-.mjs";import{i as w,n as T,o as E,r as Ee,s as D,t as O}from"./colors-r_owlCuY.mjs";import{t as k}from"./is-object-BGze3w87.mjs";import{t as De}from"./constants-Dfsa9Tly.mjs";import{t as Oe}from"./preview-Du4mTEY7.mjs";import{createRequire as ke}from"node:module";import{execFileSync as Ae}from"node:child_process";import je,{basename as Me,dirname as A,isAbsolute as Ne,join as j,posix as Pe,relative as M,resolve as N,sep as P,win32 as Fe}from"node:path";import F from"node:process";import{fileURLToPath as Ie}from"node:url";import{cpSync as Le,existsSync as I,lstatSync as Re,mkdirSync as ze,readFileSync as L,readdirSync as Be,readlinkSync as Ve,realpathSync as He,rmSync as Ue,statSync as We,writeFileSync as Ge}from"node:fs";import{homedir as R}from"node:os";import{inspect as Ke,stripVTControlCharacters as qe,styleText as z}from"node:util";import*as Je from"node:readline";import{AsyncLocalStorage as Ye,AsyncResource as Xe}from"node:async_hooks";var Ze=n((e=>{var t=class extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},n=class extends t{constructor(e){super(1,`commander.invalidArgument`,e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};e.CommanderError=t,e.InvalidArgumentError=n})),Qe=n((e=>{let{InvalidArgumentError:t}=Ze();var n=class{constructor(e,t){switch(this.description=t||``,this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case`<`:this.required=!0,this._name=e.slice(1,-1);break;case`[`:this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith(`...`)&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function r(e){let t=e.name()+(e.variadic===!0?`...`:``);return e.required?`<`+t+`>`:`[`+t+`]`}e.Argument=n,e.humanReadableArgName=r})),$e=n((e=>{let{humanReadableArgName:t}=Qe();var n=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){let t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){let n=e=>e.short?e.short.replace(/^-/,``):e.long.replace(/^--/,``);return n(e).localeCompare(n(t))}visibleOptions(e){let t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){let r=n.short&&e._findOption(n.short),i=n.long&&e._findOption(n.long);!r&&!i?t.push(n):n.long&&!i?t.push(e.createOption(n.long,n.description)):n.short&&!r&&t.push(e.createOption(n.short,n.description))}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let n=e.parent;n;n=n.parent){let e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||``}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){let n=e.registeredArguments.map(e=>t(e)).join(` `);return e._name+(e._aliases[0]?`|`+e._aliases[0]:``)+(e.options.length?` [options]`:``)+(n?` `+n:``)}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+`|`+e._aliases[0]);let n=``;for(let t=e.parent;t;t=t.parent)n=t.name()+` `+n;return n+t+` `+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue==`boolean`)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(`, `)}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let n=`(${t.join(`, `)})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return t.length===0?[]:[n.styleTitle(e),...t,``]}groupItems(e,t,n){let r=new Map;return e.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[])}),t.forEach(e=>{let t=n(e);r.has(t)||r.set(t,[]),r.get(t).push(e)}),r}formatHelp(e,t){let n=t.padWidth(e,t),r=t.helpWidth??80;function i(e,r){return t.formatItem(e,n,r,t)}let a=[`${t.styleTitle(`Usage:`)} ${t.styleUsage(t.commandUsage(e))}`,``],o=t.commandDescription(e);o.length>0&&(a=a.concat([t.boxWrap(t.styleCommandDescription(o),r),``]));let s=t.visibleArguments(e).map(e=>i(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(a=a.concat(this.formatItemList(`Arguments:`,s,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??`Options:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),t.showGlobalOptions){let n=t.visibleGlobalOptions(e).map(e=>i(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));a=a.concat(this.formatItemList(`Global Options:`,n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||`Commands:`).forEach((e,n)=>{let r=e.map(e=>i(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));a=a.concat(this.formatItemList(n,r,t))}),a.join(`
|
|
2
|
-
`)}displayWidth(e){return r(e).length}styleTitle(e){return e}styleUsage(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e===`[command]`?this.styleSubcommandText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleCommandText(e)).join(` `)}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(` `).map(e=>e===`[options]`?this.styleOptionText(e):e[0]===`[`||e[0]===`<`?this.styleArgumentText(e):this.styleSubcommandText(e)).join(` `)}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,r){let i=` `.repeat(2);if(!n)return i+e;let a=e.padEnd(t+e.length-r.displayWidth(e)),o=(this.helpWidth??80)-t-2-2,s;return s=o<this.minWidthToWrap||r.preformatted(n)?n:r.boxWrap(n,o).replace(/\n/g,`
|
|
3
|
-
`+` `.repeat(t+2)),i+a+` `.repeat(2)+s.replace(/\n/g,`\n${i}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;let n=e.split(/\r\n|\n/),r=/[\s]*[^\s]+/g,i=[];return n.forEach(e=>{let n=e.match(r);if(n===null){i.push(``);return}let a=[n.shift()],o=this.displayWidth(a[0]);n.forEach(e=>{let n=this.displayWidth(e);if(o+n<=t){a.push(e),o+=n;return}i.push(a.join(``));let r=e.trimStart();a=[r],o=this.displayWidth(r)}),i.push(a.join(``))}),i.join(`
|
|
4
|
-
`)}};function r(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,``)}e.Help=n,e.stripColor=r})),et=n((e=>{let{InvalidArgumentError:t}=Ze();var n=class{constructor(e,t){this.flags=e,this.description=t||``,this.required=e.includes(`<`),this.optional=e.includes(`[`),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=a(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith(`--no-`)),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return typeof e==`string`&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:(t.push(e),t)}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new t(`Allowed choices are ${this.argChoices.join(`, `)}.`);return this.variadic?this._collectValue(e,n):e},this}name(){return this.long?this.long.replace(/^--/,``):this.short.replace(/^-/,``)}attributeName(){return this.negate?i(this.name().replace(/^no-/,``)):i(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},r=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){let n=t.attributeName();if(!this.dualOptions.has(n))return!0;let r=this.negativeOptions.get(n).presetArg,i=r!==void 0&&r;return t.negate===(i===e)}};function i(e){return e.split(`-`).reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function a(e){let t,n,r=/^-[^-]$/,i=/^--[^-]/,a=e.split(/[ |,]+/).concat(`guard`);if(r.test(a[0])&&(t=a.shift()),i.test(a[0])&&(n=a.shift()),!t&&r.test(a[0])&&(t=a.shift()),!t&&i.test(a[0])&&(t=n,n=a.shift()),a[0].startsWith(`-`)){let t=a[0],n=`option creation failed due to '${t}' in option flags '${e}'`;throw/^-[^-][^-]/.test(t)?Error(`${n}
|
|
5
|
-
- a short flag is a single dash and a single character
|
|
6
|
-
- either use a single dash and a single character (for a short flag)
|
|
7
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(t)?Error(`${n}
|
|
8
|
-
- too many short flags`):i.test(t)?Error(`${n}
|
|
9
|
-
- too many long flags`):Error(`${n}
|
|
10
|
-
- unrecognised flag format`)}if(t===void 0&&n===void 0)throw Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}e.Option=n,e.DualOptions=r})),tt=n((e=>{function t(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let n=[];for(let t=0;t<=e.length;t++)n[t]=[t];for(let e=0;e<=t.length;e++)n[0][e]=e;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++){let a=1;a=e[i-1]===t[r-1]?0:1,n[i][r]=Math.min(n[i-1][r]+1,n[i][r-1]+1,n[i-1][r-1]+a),i>1&&r>1&&e[i-1]===t[r-2]&&e[i-2]===t[r-1]&&(n[i][r]=Math.min(n[i][r],n[i-2][r-2]+1))}return n[e.length][t.length]}function n(e,n){if(!n||n.length===0)return``;n=Array.from(new Set(n));let r=e.startsWith(`--`);r&&(e=e.slice(2),n=n.map(e=>e.slice(2)));let i=[],a=3;return n.forEach(n=>{if(n.length<=1)return;let r=t(e,n),o=Math.max(e.length,n.length);(o-r)/o>.4&&(r<a?(a=r,i=[n]):r===a&&i.push(n))}),i.sort((e,t)=>e.localeCompare(t)),r&&(i=i.map(e=>`--${e}`)),i.length>1?`\n(Did you mean one of ${i.join(`, `)}?)`:i.length===1?`\n(Did you mean ${i[0]}?)`:``}e.suggestSimilar=n})),nt=n((t=>{let n=e(`node:events`).EventEmitter,r=e(`node:child_process`),i=e(`node:path`),a=e(`node:fs`),o=e(`node:process`),{Argument:s,humanReadableArgName:c}=Qe(),{CommanderError:l}=Ze(),{Help:u,stripColor:d}=$e(),{Option:f,DualOptions:p}=et(),{suggestSimilar:m}=tt();var h=class e extends n{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||``,this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description=``,this._summary=``,this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>o.stdout.write(e),writeErr:e=>o.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>o.stdout.isTTY?o.stdout.columns:void 0,getErrHelpWidth:()=>o.stderr.isTTY?o.stderr.columns:void 0,getOutHasColors:()=>_()??(o.stdout.isTTY&&o.stdout.hasColors?.()),getErrHasColors:()=>_()??(o.stderr.isTTY&&o.stderr.hasColors?.()),stripColor:e=>d(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){let e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let r=t,i=n;typeof r==`object`&&r&&(i=r,r=null),i||={};let[,a,o]=e.match(/([^ ]+) *(.*)/),s=this.createCommand(a);return r&&(s.description(r),s._executableHandler=!0),i.isDefault&&(this._defaultCommandName=s._name),s._hidden=!!(i.noHelp||i.hidden),s._executableFile=i.executableFile||null,o&&s.arguments(o),this._registerCommand(s),s.parent=this,s.copyInheritedSettings(this),r?this:s}createCommand(t){return new e(t)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return typeof e!=`string`&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw Error(`Command passed to .addCommand() must have a name
|
|
11
|
-
- specify the name in Command constructor or using .name()`);return t||={},t.isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new s(e,t)}argument(e,t,n,r){let i=this.createArgument(e,t);return typeof n==`function`?i.default(r).argParser(n):i.default(n),this.addArgument(i),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){let t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if(typeof e==`boolean`)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let[,n,r]=(e??`help [command]`).match(/([^ ]+) *(.*)/),i=t??`display help for command`,a=this.createCommand(n);return a.helpOption(!1),r&&a.arguments(r),i&&a.description(i),this._addImplicitHelpCommand=!0,this._helpCommand=a,(e||t)&&this._initCommandGroup(a),this}addHelpCommand(e,t){return typeof e==`object`?(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this):(this.helpCommand(e,t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand(`help`))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){let n=[`preSubcommand`,`preAction`,`postAction`];if(!n.includes(e))throw Error(`Unexpected value for event passed to hook : '${e}'.
|
|
12
|
-
Expecting one of '${n.join(`', '`)}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if(e.code!==`commander.executeSubCommandAsync`)throw e}),this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new l(e,t,n)),o.exit(e)}action(e){let t=t=>{let n=this.registeredArguments.length,r=t.slice(0,n);return r[n]=this._storeOptionsAsProperties?this:this.opts(),r.push(this),e.apply(this,r)};return this._actionHandler=t,this}createOption(e,t){return new f(e,t)}_callParseArg(e,t,n,r){try{return e.parseArg(t,n)}catch(e){if(e.code===`commander.invalidArgument`){let t=`${r} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){let t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){let n=e.long&&this._findOption(e.long)?e.long:e.short;throw Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'
|
|
13
|
-
- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){let t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){let r=t(this._findCommand(n)).join(`|`),i=t(e).join(`|`);throw Error(`cannot add command '${i}' as already have command '${r}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);let t=e.name(),n=e.attributeName();if(e.negate){let t=e.long.replace(/^--no-/,`--`);this._findOption(t)||this.setOptionValueWithSource(n,e.defaultValue===void 0||e.defaultValue,`default`)}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,`default`);let r=(t,r,i)=>{t==null&&e.presetArg!==void 0&&(t=e.presetArg);let a=this.getOptionValue(n);t!==null&&e.parseArg?t=this._callParseArg(e,t,a,r):t!==null&&e.variadic&&(t=e._collectValue(t,a)),t??=e.negate?!1:e.isBoolean()||e.optional?!0:``,this.setOptionValueWithSource(n,t,i)};return this.on(`option:`+t,t=>{let n=`error: option '${e.flags}' argument '${t}' is invalid.`;r(t,n,`cli`)}),e.envVar&&this.on(`optionEnv:`+t,t=>{let n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;r(t,n,`env`)}),this}_optionEx(e,t,n,r,i){if(typeof t==`object`&&t instanceof f)throw Error(`To add an Option object use addOption() instead of option() or requiredOption()`);let a=this.createOption(t,n);if(a.makeOptionMandatory(!!e.mandatory),typeof r==`function`)a.default(i).argParser(r);else if(r instanceof RegExp){let e=r;r=(t,n)=>{let r=e.exec(t);return r?r[0]:n},a.default(i).argParser(r)}else a.default(r);return this.addOption(a)}option(e,t,n,r){return this._optionEx({},e,t,n,r)}requiredOption(e,t,n,r){return this._optionEx({mandatory:!0},e,t,n,r)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw Error(`call .storeOptionsAsProperties() before adding options`);if(Object.keys(this._optionValues).length)throw Error(`call .storeOptionsAsProperties() before setting option values`);return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{n.getOptionValueSource(e)!==void 0&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(e!==void 0&&!Array.isArray(e))throw Error(`first parameter to parse must be array or undefined`);if(t||={},e===void 0&&t.from===void 0){o.versions?.electron&&(t.from=`electron`);let e=o.execArgv??[];(e.includes(`-e`)||e.includes(`--eval`)||e.includes(`-p`)||e.includes(`--print`))&&(t.from=`eval`)}e===void 0&&(e=o.argv),this.rawArgs=e.slice();let n;switch(t.from){case void 0:case`node`:this._scriptPath=e[1],n=e.slice(2);break;case`electron`:o.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case`user`:n=e.slice(0);break;case`eval`:n=e.slice(1);break;default:throw Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||`program`,n}parse(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();let n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
14
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,n){if(a.existsSync(e))return;let r=`'${e}' does not exist
|
|
15
|
-
- if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
16
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
17
|
-
- ${t?`searched for local subcommand relative to directory '${t}'`:`no directory for search for local subcommand, use .executableDir() to supply a custom directory`}`;throw Error(r)}_executeSubCommand(e,t){t=t.slice();let n=!1,s=[`.js`,`.ts`,`.tsx`,`.mjs`,`.cjs`];function c(e,t){let n=i.resolve(e,t);if(a.existsSync(n))return n;if(s.includes(i.extname(t)))return;let r=s.find(e=>a.existsSync(`${n}${e}`));if(r)return`${n}${r}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||``;if(this._scriptPath){let e;try{e=a.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=i.resolve(i.dirname(e),d)}if(d){let t=c(d,u);if(!t&&!e._executableFile&&this._scriptPath){let n=i.basename(this._scriptPath,i.extname(this._scriptPath));n!==this._name&&(t=c(d,`${n}-${e._name}`))}u=t||u}n=s.includes(i.extname(u));let f;o.platform===`win32`?(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=g(o.execArgv).concat(t),f=r.spawn(o.execPath,t,{stdio:`inherit`})):n?(t.unshift(u),t=g(o.execArgv).concat(t),f=r.spawn(o.argv[0],t,{stdio:`inherit`})):f=r.spawn(u,t,{stdio:`inherit`}),f.killed||[`SIGUSR1`,`SIGUSR2`,`SIGTERM`,`SIGINT`,`SIGHUP`].forEach(e=>{o.on(e,()=>{f.killed===!1&&f.exitCode===null&&f.kill(e)})});let p=this._exitCallback;f.on(`close`,e=>{e??=1,p?p(new l(e,`commander.executeSubCommandAsync`,`(close)`)):o.exit(e)}),f.on(`error`,t=>{if(t.code===`ENOENT`)this._checkForMissingExecutable(u,d,e._name);else if(t.code===`EACCES`)throw Error(`'${u}' not executable`);if(!p)o.exit(1);else{let e=new l(1,`commander.executeSubCommandAsync`,`(error)`);e.nestedError=t,p(e)}}),this.runningCommand=f}_dispatchSubcommand(e,t,n){let r=this._findCommand(e);r||this.help({error:!0}),r._prepareForParse();let i;return i=this._chainOrCallSubCommandHook(i,r,`preSubcommand`),i=this._chainOrCall(i,()=>{if(r._executableHandler)this._executeSubCommand(r,t.concat(n));else return r._parseCommand(t,n)}),i}_dispatchHelpCommand(e){e||this.help();let t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??`--help`])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&this.args[t]==null&&this.missingArgument(e.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let e=(e,t,n)=>{let r=t;if(t!==null&&e.parseArg){let i=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;r=this._callParseArg(e,t,n,i)}return r};this._checkNumberOfArguments();let t=[];this.registeredArguments.forEach((n,r)=>{let i=n.defaultValue;n.variadic?r<this.args.length?(i=this.args.slice(r),n.parseArg&&(i=i.reduce((t,r)=>e(n,r,t),n.defaultValue))):i===void 0&&(i=[]):r<this.args.length&&(i=this.args[r],n.parseArg&&(i=e(n,i,n.defaultValue))),t[r]=i}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&typeof e.then==`function`?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e,r=[];return this._getCommandAndAncestors().reverse().filter(e=>e._lifeCycleHooks[t]!==void 0).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{r.push({hookedCommand:e,callback:t})})}),t===`postAction`&&r.reverse(),r.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let r=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(e=>{r=this._chainOrCall(r,()=>e(this,t))}),r}_parseCommand(e,t){let n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let r=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},i=`command:${this.name()}`;if(this._actionHandler){r(),this._processArguments();let n;return n=this._chainOrCallHooks(n,`preAction`),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(i,e,t)})),n=this._chainOrCallHooks(n,`postAction`),n}if(this.parent?.listenerCount(i))r(),this._processArguments(),this.parent.emit(i,e,t);else if(e.length){if(this._findCommand(`*`))return this._dispatchSubcommand(`*`,e,t);this.listenerCount(`command:*`)?this.emit(`command:*`,e,t):this.commands.length?this.unknownCommand():(r(),this._processArguments())}else this.commands.length?(r(),this.help({error:!0})):(r(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&e.getOptionValue(t.attributeName())===void 0&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){let e=this.options.filter(e=>{let t=e.attributeName();return this.getOptionValue(t)!==void 0&&this.getOptionValueSource(t)!=="default"});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{let n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){let t=[],n=[],r=t;function i(e){return e.length>1&&e[0]===`-`}let a=e=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)?!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e))):!1,o=null,s=null,c=0;for(;c<e.length||s;){let l=s??e[c++];if(s=null,l===`--`){r===n&&r.push(l),r.push(...e.slice(c));break}if(o&&(!i(l)||a(l))){this.emit(`option:${o.name()}`,l);continue}if(o=null,i(l)){let t=this._findOption(l);if(t){if(t.required){let n=e[c++];n===void 0&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!i(e[c])||a(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);o=t.variadic?t:null;continue}}if(l.length>2&&l[0]===`-`&&l[1]!==`-`){let e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),s=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){let e=l.indexOf(`=`),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(r===t&&i(l)&&!(this.commands.length===0&&a(l))&&(r=n),(this._enablePositionalOptions||this._passThroughOptions)&&t.length===0&&n.length===0){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){r.push(l,...e.slice(c));break}r.push(l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},t=this.options.length;for(let n=0;n<t;n++){let t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==`string`?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
18
|
-
`),this.outputHelp({error:!0}));let n=t||{},r=n.exitCode||1,i=n.code||`commander.error`;this._exit(r,i,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in o.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||[`default`,`config`,`env`].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,o.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new p(this.options),t=e=>this.getOptionValue(e)!==void 0&&![`default`,`implied`].includes(this.getOptionValueSource(e));this.options.filter(n=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],`implied`)})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:`commander.missingArgument`})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:`commander.optionMissingArgument`})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:`commander.missingMandatoryOptionValue`})}_conflictingOption(e,t){let n=e=>{let t=e.attributeName(),n=this.getOptionValue(t),r=this.options.find(e=>e.negate&&t===e.attributeName()),i=this.options.find(e=>!e.negate&&t===e.attributeName());return r&&(r.presetArg===void 0&&n===!1||r.presetArg!==void 0&&n===r.presetArg)?r:i||e},r=e=>{let t=n(e),r=t.attributeName();return this.getOptionValueSource(r)===`env`?`environment variable '${t.envVar}'`:`option '${t.flags}'`},i=`error: ${r(e)} cannot be used with ${r(t)}`;this.error(i,{code:`commander.conflictingOption`})}unknownOption(e){if(this._allowUnknownOption)return;let t=``;if(e.startsWith(`--`)&&this._showSuggestionAfterError){let n=[],r=this;do{let e=r.createHelp().visibleOptions(r).filter(e=>e.long).map(e=>e.long);n=n.concat(e),r=r.parent}while(r&&!r._enablePositionalOptions);t=m(e,n)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:`commander.unknownOption`})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?``:`s`,r=`error: too many arguments${this.parent?` for '${this.name()}'`:``}. Expected ${t} argument${n} but got ${e.length}.`;this.error(r,{code:`commander.excessArguments`})}unknownCommand(){let e=this.args[0],t=``;if(this._showSuggestionAfterError){let n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=m(e,n)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:`commander.unknownCommand`})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t||=`-V, --version`,n||=`output the version number`;let r=this.createOption(t,n);return this._versionOptionName=r.attributeName(),this._registerOption(r),this.on(`option:`+r.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,`commander.version`,e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw Error(`Command alias can't be the same as its name`);let n=this.parent?._findCommand(e);if(n){let t=[n.name()].concat(n.aliases()).join(`|`);throw Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let e=this.registeredArguments.map(e=>c(e));return[].concat(this.options.length||this._helpOption!==null?`[options]`:[],this.commands.length?`[command]`:[],this.registeredArguments.length?e:[]).join(` `)}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}helpGroup(e){return e===void 0?this._helpGroupHeading??``:(this._helpGroupHeading=e,this)}commandsGroup(e){return e===void 0?this._defaultCommandGroup??``:(this._defaultCommandGroup=e,this)}optionsGroup(e){return e===void 0?this._defaultOptionGroup??``:(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=i.basename(e,i.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});let r=t.formatHelp(this,t);return n.hasColors?r:this._outputConfiguration.stripColor(r)}_getOutputContext(e){e||={};let t=!!e.error,n,r,i;return t?(n=e=>this._outputConfiguration.writeErr(e),r=this._outputConfiguration.getErrHasColors(),i=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),r=this._outputConfiguration.getOutHasColors(),i=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(r||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:r,helpWidth:i}}outputHelp(e){let t;typeof e==`function`&&(t=e,e=void 0);let n=this._getOutputContext(e),r={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit(`beforeAllHelp`,r)),this.emit(`beforeHelp`,r);let i=this.helpInformation({error:n.error});if(t&&(i=t(i),typeof i!=`string`&&!Buffer.isBuffer(i)))throw Error(`outputHelp callback must return a string or a Buffer`);n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit(`afterHelp`,r),this._getCommandAndAncestors().forEach(e=>e.emit(`afterAllHelp`,r))}helpOption(e,t){return typeof e==`boolean`?(e?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??`-h, --help`,t??`display help for command`),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(o.exitCode??0);t===0&&e&&typeof e!=`function`&&e.error&&(t=1),this._exit(t,`commander.help`,`(outputHelp)`)}addHelpText(e,t){let n=[`beforeAll`,`before`,`after`,`afterAll`];if(!n.includes(e))throw Error(`Unexpected value for position to addHelpText.
|
|
19
|
-
Expecting one of '${n.join(`', '`)}'`);let r=`${e}Help`;return this.on(r,e=>{let n;n=typeof t==`function`?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,`commander.helpDisplayed`,`(outputHelp)`))}};function g(e){return e.map(e=>{if(!e.startsWith(`--inspect`))return e;let t,n=`127.0.0.1`,r=`9229`,i;return(i=e.match(/^(--inspect(-brk)?)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))===null?(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],r=i[4]):(t=i[1],/^\d+$/.test(i[3])?r=i[3]:n=i[3]):t=i[1],t&&r!==`0`?`${t}=${n}:${parseInt(r)+1}`:e})}function _(){if(o.env.NO_COLOR||o.env.FORCE_COLOR===`0`||o.env.FORCE_COLOR===`false`)return!1;if(o.env.FORCE_COLOR||o.env.CLICOLOR_FORCE!==void 0)return!0}t.Command=h,t.useColor=_}));const{program:rt,createCommand:it,createArgument:at,createOption:ot,CommanderError:st,InvalidArgumentError:ct,InvalidOptionArgumentError:lt,Command:ut,Argument:dt,Option:ft,Help:pt}=t(n((e=>{let{Argument:t}=Qe(),{Command:n}=nt(),{CommanderError:r,InvalidArgumentError:i}=Ze(),{Help:a}=$e(),{Option:o}=et();e.program=new n,e.createCommand=e=>new n(e),e.createOption=(e,t)=>new o(e,t),e.createArgument=(e,n)=>new t(e,n),e.Command=n,e.Option=o,e.Argument=t,e.Help=a,e.CommanderError=r,e.InvalidArgumentError=i,e.InvalidOptionArgumentError=i}))(),1).default,mt=new Set([`emacs`,`vim`]);function ht(e){return mt.has(e)}function gt(){let e=process.env.INQUIRER_KEYBINDINGS;return e?Array.from(new Set(e.toLowerCase().split(/[\s,]+/).filter(ht))):[]}const B=(e,t=[])=>e.name===`up`||t.includes(`vim`)&&e.name===`k`||t.includes(`emacs`)&&e.ctrl&&e.name===`p`,_t=(e,t=[])=>e.name===`down`||t.includes(`vim`)&&e.name===`j`||t.includes(`emacs`)&&e.ctrl&&e.name===`n`,vt=e=>e.name===`space`,yt=e=>e.name===`backspace`,bt=e=>`1234567890`.includes(e.name),xt=e=>e.name===`enter`||e.name===`return`;var St=class extends Error{name=`AbortPromptError`;message=`Prompt was aborted`;constructor(e){super(),this.cause=e?.cause}},Ct=class extends Error{name=`CancelPromptError`;message=`Prompt was canceled`},wt=class extends Error{name=`ExitPromptError`},Tt=class extends Error{name=`HookError`},Et=class extends Error{name=`ValidationError`};const Dt=new Ye;function Ot(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function kt(e,t){let n=Ot(e);return Dt.run(n,()=>{function e(e){n.handleChange=()=>{n.index=0,e()},n.handleChange()}return t(e)})}function V(){let e=Dt.getStore();if(!e)throw new Tt(`[Inquirer] Hook functions can only be called from within a prompt`);return e}function At(){return V().rl}function jt(e){return Xe.bind((...t)=>{let n=V(),r=!1,i=n.handleChange;n.handleChange=()=>{r=!0};let a=e(...t);return r&&i(),n.handleChange=i,a})}function Mt(e){let t=V(),{index:n}=t,r=e({get(){return t.hooks[n]},set(e){t.hooks[n]=e},initialized:n in t.hooks});return t.index++,r}function Nt(){V().handleChange()}const Pt={queue(e){let t=V(),{index:n}=t;t.hooksEffect.push(()=>{t.hooksCleanup[n]?.();let r=e(At());if(r!=null&&typeof r!=`function`)throw new Et(`useEffect return value must be a cleanup function or nothing.`);t.hooksCleanup[n]=r})},run(){let e=V();jt(()=>{e.hooksEffect.forEach(e=>{e()}),e.hooksEffect.length=0})()},clearAll(){let e=V();e.hooksCleanup.forEach(e=>{e?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function Ft(e){return typeof e==`function`}function H(e){return Mt(t=>{let n=Xe.bind(function(e){t.get()!==e&&(t.set(e),Nt())});if(t.initialized)return[t.get(),n];let r=Ft(e)?e():e;return t.set(r),[r,n]})}function It(e,t){Mt(n=>{let r=n.get();(!Array.isArray(r)||t.some((e,t)=>!Object.is(e,r[t])))&&Pt.queue(e),n.set(t)})}function Lt(){return F.platform.startsWith(`win`)?!!F.env.CI||!!F.env.WT_SESSION||!!F.env.TERMINUS_SUBLIME||F.env.ConEmuTask===`{cmd::Cmder}`||F.env.TERM_PROGRAM===`Terminus-Sublime`||F.env.TERM_PROGRAM===`vscode`||F.env.TERM===`xterm-256color`||F.env.TERM===`alacritty`||F.env.TERMINAL_EMULATOR===`JetBrains-JediTerm`:F.env.TERM!==`linux`}const Rt={circleQuestionMark:`(?)`,questionMarkPrefix:`(?)`,square:`█`,squareDarkShade:`▓`,squareMediumShade:`▒`,squareLightShade:`░`,squareTop:`▀`,squareBottom:`▄`,squareLeft:`▌`,squareRight:`▐`,squareCenter:`■`,bullet:`●`,dot:`․`,ellipsis:`…`,pointerSmall:`›`,triangleUp:`▲`,triangleUpSmall:`▴`,triangleDown:`▼`,triangleDownSmall:`▾`,triangleLeftSmall:`◂`,triangleRightSmall:`▸`,home:`⌂`,heart:`♥`,musicNote:`♪`,musicNoteBeamed:`♫`,arrowUp:`↑`,arrowDown:`↓`,arrowLeft:`←`,arrowRight:`→`,arrowLeftRight:`↔`,arrowUpDown:`↕`,almostEqual:`≈`,notEqual:`≠`,lessOrEqual:`≤`,greaterOrEqual:`≥`,identical:`≡`,infinity:`∞`,subscriptZero:`₀`,subscriptOne:`₁`,subscriptTwo:`₂`,subscriptThree:`₃`,subscriptFour:`₄`,subscriptFive:`₅`,subscriptSix:`₆`,subscriptSeven:`₇`,subscriptEight:`₈`,subscriptNine:`₉`,oneHalf:`½`,oneThird:`⅓`,oneQuarter:`¼`,oneFifth:`⅕`,oneSixth:`⅙`,oneEighth:`⅛`,twoThirds:`⅔`,twoFifths:`⅖`,threeQuarters:`¾`,threeFifths:`⅗`,threeEighths:`⅜`,fourFifths:`⅘`,fiveSixths:`⅚`,fiveEighths:`⅝`,sevenEighths:`⅞`,line:`─`,lineBold:`━`,lineDouble:`═`,lineDashed0:`┄`,lineDashed1:`┅`,lineDashed2:`┈`,lineDashed3:`┉`,lineDashed4:`╌`,lineDashed5:`╍`,lineDashed6:`╴`,lineDashed7:`╶`,lineDashed8:`╸`,lineDashed9:`╺`,lineDashed10:`╼`,lineDashed11:`╾`,lineDashed12:`−`,lineDashed13:`–`,lineDashed14:`‐`,lineDashed15:`⁃`,lineVertical:`│`,lineVerticalBold:`┃`,lineVerticalDouble:`║`,lineVerticalDashed0:`┆`,lineVerticalDashed1:`┇`,lineVerticalDashed2:`┊`,lineVerticalDashed3:`┋`,lineVerticalDashed4:`╎`,lineVerticalDashed5:`╏`,lineVerticalDashed6:`╵`,lineVerticalDashed7:`╷`,lineVerticalDashed8:`╹`,lineVerticalDashed9:`╻`,lineVerticalDashed10:`╽`,lineVerticalDashed11:`╿`,lineDownLeft:`┐`,lineDownLeftArc:`╮`,lineDownBoldLeftBold:`┓`,lineDownBoldLeft:`┒`,lineDownLeftBold:`┑`,lineDownDoubleLeftDouble:`╗`,lineDownDoubleLeft:`╖`,lineDownLeftDouble:`╕`,lineDownRight:`┌`,lineDownRightArc:`╭`,lineDownBoldRightBold:`┏`,lineDownBoldRight:`┎`,lineDownRightBold:`┍`,lineDownDoubleRightDouble:`╔`,lineDownDoubleRight:`╓`,lineDownRightDouble:`╒`,lineUpLeft:`┘`,lineUpLeftArc:`╯`,lineUpBoldLeftBold:`┛`,lineUpBoldLeft:`┚`,lineUpLeftBold:`┙`,lineUpDoubleLeftDouble:`╝`,lineUpDoubleLeft:`╜`,lineUpLeftDouble:`╛`,lineUpRight:`└`,lineUpRightArc:`╰`,lineUpBoldRightBold:`┗`,lineUpBoldRight:`┖`,lineUpRightBold:`┕`,lineUpDoubleRightDouble:`╚`,lineUpDoubleRight:`╙`,lineUpRightDouble:`╘`,lineUpDownLeft:`┤`,lineUpBoldDownBoldLeftBold:`┫`,lineUpBoldDownBoldLeft:`┨`,lineUpDownLeftBold:`┥`,lineUpBoldDownLeftBold:`┩`,lineUpDownBoldLeftBold:`┪`,lineUpDownBoldLeft:`┧`,lineUpBoldDownLeft:`┦`,lineUpDoubleDownDoubleLeftDouble:`╣`,lineUpDoubleDownDoubleLeft:`╢`,lineUpDownLeftDouble:`╡`,lineUpDownRight:`├`,lineUpBoldDownBoldRightBold:`┣`,lineUpBoldDownBoldRight:`┠`,lineUpDownRightBold:`┝`,lineUpBoldDownRightBold:`┡`,lineUpDownBoldRightBold:`┢`,lineUpDownBoldRight:`┟`,lineUpBoldDownRight:`┞`,lineUpDoubleDownDoubleRightDouble:`╠`,lineUpDoubleDownDoubleRight:`╟`,lineUpDownRightDouble:`╞`,lineDownLeftRight:`┬`,lineDownBoldLeftBoldRightBold:`┳`,lineDownLeftBoldRightBold:`┯`,lineDownBoldLeftRight:`┰`,lineDownBoldLeftBoldRight:`┱`,lineDownBoldLeftRightBold:`┲`,lineDownLeftRightBold:`┮`,lineDownLeftBoldRight:`┭`,lineDownDoubleLeftDoubleRightDouble:`╦`,lineDownDoubleLeftRight:`╥`,lineDownLeftDoubleRightDouble:`╤`,lineUpLeftRight:`┴`,lineUpBoldLeftBoldRightBold:`┻`,lineUpLeftBoldRightBold:`┷`,lineUpBoldLeftRight:`┸`,lineUpBoldLeftBoldRight:`┹`,lineUpBoldLeftRightBold:`┺`,lineUpLeftRightBold:`┶`,lineUpLeftBoldRight:`┵`,lineUpDoubleLeftDoubleRightDouble:`╩`,lineUpDoubleLeftRight:`╨`,lineUpLeftDoubleRightDouble:`╧`,lineUpDownLeftRight:`┼`,lineUpBoldDownBoldLeftBoldRightBold:`╋`,lineUpDownBoldLeftBoldRightBold:`╈`,lineUpBoldDownLeftBoldRightBold:`╇`,lineUpBoldDownBoldLeftRightBold:`╊`,lineUpBoldDownBoldLeftBoldRight:`╉`,lineUpBoldDownLeftRight:`╀`,lineUpDownBoldLeftRight:`╁`,lineUpDownLeftBoldRight:`┽`,lineUpDownLeftRightBold:`┾`,lineUpBoldDownBoldLeftRight:`╂`,lineUpDownLeftBoldRightBold:`┿`,lineUpBoldDownLeftBoldRight:`╃`,lineUpBoldDownLeftRightBold:`╄`,lineUpDownBoldLeftBoldRight:`╅`,lineUpDownBoldLeftRightBold:`╆`,lineUpDoubleDownDoubleLeftDoubleRightDouble:`╬`,lineUpDoubleDownDoubleLeftRight:`╫`,lineUpDownLeftDoubleRightDouble:`╪`,lineCross:`╳`,lineBackslash:`╲`,lineSlash:`╱`},zt={tick:`✔`,info:`ℹ`,warning:`⚠`,cross:`✘`,squareSmall:`◻`,squareSmallFilled:`◼`,circle:`◯`,circleFilled:`◉`,circleDotted:`◌`,circleDouble:`◎`,circleCircle:`ⓞ`,circleCross:`ⓧ`,circlePipe:`Ⓘ`,radioOn:`◉`,radioOff:`◯`,checkboxOn:`☒`,checkboxOff:`☐`,checkboxCircleOn:`ⓧ`,checkboxCircleOff:`Ⓘ`,pointer:`❯`,triangleUpOutline:`△`,triangleLeft:`◀`,triangleRight:`▶`,lozenge:`◆`,lozengeOutline:`◇`,hamburger:`☰`,smiley:`㋡`,mustache:`෴`,star:`★`,play:`▶`,nodejs:`⬢`,oneSeventh:`⅐`,oneNinth:`⅑`,oneTenth:`⅒`},Bt={tick:`√`,info:`i`,warning:`‼`,cross:`×`,squareSmall:`□`,squareSmallFilled:`■`,circle:`( )`,circleFilled:`(*)`,circleDotted:`( )`,circleDouble:`( )`,circleCircle:`(○)`,circleCross:`(×)`,circlePipe:`(│)`,radioOn:`(*)`,radioOff:`( )`,checkboxOn:`[×]`,checkboxOff:`[ ]`,checkboxCircleOn:`(×)`,checkboxCircleOff:`( )`,pointer:`>`,triangleUpOutline:`∆`,triangleLeft:`◄`,triangleRight:`►`,lozenge:`♦`,lozengeOutline:`◊`,hamburger:`≡`,smiley:`☺`,mustache:`┌─┐`,star:`✶`,play:`►`,nodejs:`♦`,oneSeventh:`1/7`,oneNinth:`1/9`,oneTenth:`1/10`},Vt={...Rt,...zt},Ht={...Rt,...Bt},U=Lt()?Vt:Ht;Object.entries(zt);const Ut={prefix:{idle:z(`blue`,`?`),done:z(`green`,U.tick)},spinner:{interval:80,frames:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`].map(e=>z(`yellow`,e))},keybindings:[],style:{answer:e=>z(`cyan`,e),message:e=>z(`bold`,e),error:e=>z(`red`,`> ${e}`),defaultAnswer:e=>z(`dim`,`(${e})`),help:e=>z(`dim`,e),highlight:e=>z(`cyan`,e),key:e=>z(`cyan`,z(`bold`,`<${e}>`))}};function Wt(){return{...Ut,keybindings:gt()}}function Gt(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Kt(...e){let t={};for(let n of e)for(let[e,r]of Object.entries(n)){let n=t[e];t[e]=Gt(n)&&Gt(r)?Kt(n,r):r}return t}function qt(...e){return Kt(Wt(),...e.filter(e=>e!=null))}function Jt({status:e=`idle`,theme:t}){let[n,r]=H(!1),[i,a]=H(0),{prefix:o,spinner:s}=qt(t);return It(()=>{if(e===`loading`){let e,t=-1,n=setTimeout(()=>{r(!0),e=setInterval(()=>{t+=1,a(t%s.frames.length)},s.interval)},300);return()=>{clearTimeout(n),clearInterval(e)}}r(!1)},[e]),n?s.frames[i]:typeof o==`string`?o:o[e===`loading`?`idle`:e]??o.idle}function Yt(e,t){return Mt(n=>{let r=n.get();if(!r||r.dependencies.length!==t.length||r.dependencies.some((e,n)=>e!==t[n])){let r=e();return n.set({value:r,dependencies:t}),r}return r.value})}function Xt(e){return H({current:e})[0]}function Zt(e){let t=Xt(e);t.current=e,It(e=>{let n=!1,r=jt((r,i)=>{n||t.current(i,e)});return e.input.on(`keypress`,r),()=>{n=!0,e.input.removeListener(`keypress`,r)}},[])}var Qt=t(n(((t,n)=>{n.exports=i;function r(t){let n={defaultWidth:0,output:process.stdout,tty:e(`tty`)};return t?(Object.keys(n).forEach(function(e){t[e]||(t[e]=n[e])}),t):n}function i(e){let t=r(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let e=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(e)&&e!==0)return e}return t.defaultWidth}}))(),1);const $t=(()=>{let e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return t=>{let n=0;for(e.lastIndex=0;e.test(t);)n+=1;return t.length-n}})(),en=e=>e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510,tn=e=>e===8987||e===9001||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e>=131072&&e<=196605||e>=196608&&e<=262141,nn=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,rn=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,an=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/uy,on=/\t{1,1000}/y,sn=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,cn=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,ln=/\p{M}+/gu,un={limit:1/0,ellipsis:``},dn=(e,t={},n={})=>{let r=t.limit??1/0,i=t.ellipsis??``,a=t?.ellipsisWidth??(i?dn(i,un,n).width:0),o=n.controlWidth??0,s=n.tabWidth??8,c=n.emojiWidth??2,l=n.regularWidth??1,u=n.wideWidth??2,d=[[cn,l],[nn,0],[rn,o],[on,s],[sn,c],[an,u]],f=0,p=0,m=e.length,h=0,g=!1,_=m,v=Math.max(0,r-a),y=0,b=0,x=0,S=0;outer:for(;;){if(b>y||p>=m&&p>f){let t=e.slice(y,b)||e.slice(f,p);h=0;for(let e of t.replaceAll(ln,``)){let t=e.codePointAt(0)||0;if(S=en(t)?2:tn(t)?u:l,x+S>v&&(_=Math.min(_,Math.max(y,f)+h)),x+S>r){g=!0;break outer}h+=e.length,x+=S}y=b=0}if(p>=m)break outer;for(let t=0,n=d.length;t<n;t++){let[n,i]=d[t];if(n.lastIndex=p,n.test(e)){if(h=n===an?$t(e.slice(p,n.lastIndex)):n===sn?1:n.lastIndex-p,S=h*i,x+S>v&&(_=Math.min(_,p+Math.floor((v-x)/i))),x+S>r){g=!0;break outer}x+=S,y=f,b=p,p=f=n.lastIndex;continue outer}}p+=1}return{width:g?v:x,index:g?_:m,truncated:g,ellipsed:g&&r>=a}},fn={limit:1/0,ellipsis:``,ellipsisWidth:0},W=(e,t={})=>dn(e,fn,t).width,pn=`]8;;`,mn=RegExp(`(?:\\[(?<code>\\d+)m|\\${pn}(?<uri>.*))`,`y`),hn=e=>{if(e>=30&&e<=37||e>=90&&e<=97)return 39;if(e>=40&&e<=47||e>=100&&e<=107)return 49;if(e===1||e===2)return 22;if(e===3)return 23;if(e===4)return 24;if(e===7)return 27;if(e===8)return 28;if(e===9)return 29;if(e===0)return 0},gn=e=>`[${e}m`,_n=e=>`${pn}${e}`,vn=(e,t,n)=>{let r=t[Symbol.iterator](),i=!1,a=!1,o=e.at(-1),s=o===void 0?0:W(o),c=r.next(),l=r.next(),u=0;for(;!c.done;){let o=c.value,d=W(o);s+d<=n?e[e.length-1]+=o:(e.push(o),s=0),(o===`\x1B`||o===``)&&(i=!0,a=t.startsWith(pn,u+1)),i?a?o===`\x07`&&(i=!1,a=!1):o===`m`&&(i=!1):(s+=d,s===n&&!l.done&&(e.push(``),s=0)),c=l,l=r.next(),u+=o.length}o=e.at(-1),!s&&o!==void 0&&o.length&&e.length>1&&(e[e.length-2]+=e.pop())},yn=e=>{let t=e.split(` `),n=t.length;for(;n&&!W(t[n-1]);)n--;return n===t.length?e:t.slice(0,n).join(` `)+t.slice(n).join(``)},bn=(e,t,n={})=>{if(n.trim!==!1&&e.trim()===``)return``;let r=``,i,a,o=e.split(` `),s=[``],c=0;for(let e=0;e<o.length;e++){let r=o[e];if(n.trim!==!1){let e=s.at(-1)??``,t=e.trimStart();e.length!==t.length&&(s[s.length-1]=t,c=W(t))}e!==0&&(c>=t&&(n.wordWrap===!1||n.trim===!1)&&(s.push(``),c=0),(c||n.trim===!1)&&(s[s.length-1]+=` `,c++));let i=W(r);if(n.hard&&i>t){let e=t-c,n=1+Math.floor((i-e-1)/t);Math.floor((i-1)/t)<n&&s.push(``),vn(s,r,t),c=W(s.at(-1)??``);continue}if(c+i>t&&c&&i){if(n.wordWrap===!1&&c<t){vn(s,r,t),c=W(s.at(-1)??``);continue}s.push(``),c=0}if(c+i>t&&n.wordWrap===!1){vn(s,r,t),c=W(s.at(-1)??``);continue}s[s.length-1]+=r,c+=i}n.trim!==!1&&(s=s.map(e=>yn(e)));let l=s.join(`
|
|
20
|
-
`),u=!1;for(let e=0;e<l.length;e++){let t=l[e];if(r+=t,u)u=!1;else if(u=t>=`\ud800`&&t<=`\udbff`,u)continue;if(t===`\x1B`||t===``){mn.lastIndex=e+1;let t=mn.exec(l)?.groups;if(t?.code!==void 0){let e=Number.parseFloat(t.code);i=e===39?void 0:e}else t?.uri!==void 0&&(a=t.uri.length===0?void 0:t.uri)}if(l[e+1]===`
|
|
21
|
-
`){a&&(r+=_n(``));let e=i?hn(i):void 0;i&&e&&(r+=gn(e))}else t===`
|
|
22
|
-
`&&(i&&hn(i)&&(r+=gn(i)),a&&(r+=_n(a)))}return r},xn=/\r?\n/;function Sn(e,t,n){return String(e).normalize().split(xn).map(e=>bn(e,t,n)).join(`
|
|
23
|
-
`)}function Cn(e,t){return e.split(`
|
|
24
|
-
`).flatMap(e=>Sn(e,t,{trim:!1,wordWrap:!1}).split(`
|
|
25
|
-
`).map(e=>e.trimEnd())).join(`
|
|
26
|
-
`)}function wn(){return(0,Qt.default)({defaultWidth:80,output:At().output})}function Tn({active:e,renderedItems:t,pageSize:n,loop:r}){let i=Xt({lastPointer:e,lastActive:void 0}),{lastPointer:a,lastActive:o}=i.current,s=Math.floor(n/2),c=t.reduce((e,t)=>e+t.length,0),l=t.slice(0,e).reduce((e,t)=>e+t.length,0),u=l;if(c>n){if(r)u=a,o!=null&&o<e&&e-o<n&&(u=Math.min(s,Math.abs(e-o)===1?Math.min(a+(t[o]?.length??0),Math.max(l,a)):a+e-o));else{let r=t.slice(e).reduce((e,t)=>e+t.length,0);u=r<n-s?n-r:Math.min(l,s)}}return i.current.lastPointer=u,i.current.lastActive=e,u}function En({items:e,active:t,renderItem:n,pageSize:r,loop:i=!0}){let a=wn(),o=t=>(t%e.length+e.length)%e.length,s=e.map((e,r)=>e==null?[]:Cn(n({item:e,index:r,isActive:r===t}),a).split(`
|
|
27
|
-
`)),c=s.reduce((e,t)=>e+t.length,0),l=e=>s[e]??[],u=Tn({active:t,renderedItems:s,pageSize:r,loop:i}),d=l(t).slice(0,r),f=u+d.length<=r?u:r-d.length,p=Array.from({length:r});p.splice(f,d.length,...d);let m=new Set([t]),h=f+d.length,g=o(t+1);for(;h<r&&!m.has(g)&&(i&&c>r?g!==t:g>t);){let e=l(g).slice(0,r-h);p.splice(h,e.length,...e),m.add(g),h+=e.length,g=o(g+1)}for(h=f-1,g=o(t-1);h>=0&&!m.has(g)&&(i&&c>r?g!==t:g<t);){let e=l(g),t=e.slice(Math.max(0,e.length-h-1));p.splice(h-t.length+1,t.length,...t),m.add(g),h-=t.length,g=o(g-1)}return p.filter(e=>typeof e==`string`).join(`
|
|
28
|
-
`)}var Dn=t(n(((t,n)=>{let r=e(`stream`);n.exports=class extends r{#e=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on(`pipe`,this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#t(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#n(e,...t){typeof this._dest?.[e]==`function`&&this._dest[e](...t),typeof this._src?.[e]==`function`&&this._src[e](...t)}get isTTY(){return this.#e===null?this.#t(`isTTY`,!1):this.#e}set isTTY(e){this.#e=e}get rows(){return this.#t(`rows`)}get columns(){return this.#t(`columns`)}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit(`data`,e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit(`data`,this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit(`data`,e)}end(e){this.muted&&(e=e&&this.replace?e.toString().replace(/./g,this.replace):null),e&&this.emit(`data`,e),this.emit(`end`)}destroy(...e){return this.#n(`destroy`,...e)}destroySoon(...e){return this.#n(`destroySoon`,...e)}close(...e){return this.#n(`close`,...e)}}}))(),1);const G=[];G.push(`SIGHUP`,`SIGINT`,`SIGTERM`),process.platform!==`win32`&&G.push(`SIGALRM`,`SIGABRT`,`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&G.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`);const On=e=>!!e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`,kn=Symbol.for(`signal-exit emitter`),An=globalThis,jn=Object.defineProperty.bind(Object);var Mn=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(An[kn])return An[kn];jn(An,kn,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){let n=this.listeners[e],r=n.indexOf(t);r!==-1&&(r===0&&n.length===1?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(let i of this.listeners[e])r=i(t,n)===!0||r;return e===`exit`&&(r=this.emit(`afterExit`,t,n)||r),r}},Nn=class{};const Pn=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}});var Fn=class extends Nn{onExit(){return()=>{}}load(){}unload(){}},In=class extends Nn{#e=Ln.platform===`win32`?`SIGINT`:`SIGHUP`;#t=new Mn;#n;#r;#i;#a={};#o=!1;constructor(e){super(),this.#n=e,this.#a={};for(let t of G)this.#a[t]=()=>{let n=this.#n.listeners(t),{count:r}=this.#t,i=e;if(typeof i.__signal_exit_emitter__==`object`&&typeof i.__signal_exit_emitter__.count==`number`&&(r+=i.__signal_exit_emitter__.count),n.length===r){this.unload();let n=this.#t.emit(`exit`,null,t),r=t===`SIGHUP`?this.#e:t;n||e.kill(e.pid,r)}};this.#i=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!On(this.#n))return()=>{};this.#o===!1&&this.load();let n=t?.alwaysLast?`afterExit`:`exit`;return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),this.#t.listeners.exit.length===0&&this.#t.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(let e of G)try{let t=this.#a[e];t&&this.#n.on(e,t)}catch{}this.#n.emit=(e,...t)=>this.#c(e,...t),this.#n.reallyExit=e=>this.#s(e)}}unload(){this.#o&&(this.#o=!1,G.forEach(e=>{let t=this.#a[e];if(!t)throw Error(`Listener not defined for signal: `+e);try{this.#n.removeListener(e,t)}catch{}}),this.#n.emit=this.#r,this.#n.reallyExit=this.#i,--this.#t.count)}#s(e){return On(this.#n)?(this.#n.exitCode=e||0,this.#t.emit(`exit`,this.#n.exitCode,null),this.#i.call(this.#n,this.#n.exitCode)):0}#c(e,...t){let n=this.#r;if(e===`exit`&&On(this.#n)){typeof t[0]==`number`&&(this.#n.exitCode=t[0]);let r=n.call(this.#n,e,...t);return this.#t.emit(`exit`,this.#n.exitCode,null),r}return n.call(this.#n,e,...t)}};const Ln=globalThis.process,{onExit:Rn,load:zn,unload:Bn}=Pn(On(Ln)?new In(Ln):new Fn),Vn=`\x1B[?25l`,Hn=(e=1)=>e>0?`[${e}A`:``,Un=(e=1)=>e>0?`[${e}B`:``,Wn=(e,t)=>typeof t==`number`&&!Number.isNaN(t)?`[${t+1};${e+1}H`:`[${e+1}G`,Gn=e=>e>0?(`\x1B[2K`+Hn(1)).repeat(e-1)+`\x1B[2K\x1B[G`:``,Kn=e=>e.split(`
|
|
29
|
-
`).length,qn=e=>e.split(`
|
|
30
|
-
`).pop()??``;var Jn=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(e){this.rl=e,this.cursorPos=e.getCursorPos()}write(e){this.rl.output.unmute(),this.rl.output.write(e),this.rl.output.mute()}render(e,t=``){let n=qn(e),r=qe(n),i=r;this.rl.line.length>0&&(i=i.slice(0,-this.rl.line.length)),this.rl.setPrompt(i),this.cursorPos=this.rl.getCursorPos();let a=wn();e=Cn(e,a),t=Cn(t,a),r.length%a===0&&(e+=`
|
|
31
|
-
`);let o=e+(t?`
|
|
32
|
-
`+t:``),s=Math.floor(r.length/a)-this.cursorPos.rows+(t?Kn(t):0);s>0&&(o+=Hn(s)),o+=Wn(this.cursorPos.cols),this.write(Un(this.extraLinesUnderPrompt)+Gn(this.height)+o),this.extraLinesUnderPrompt=s,this.height=Kn(o)}checkCursorPos(){let e=this.rl.getCursorPos();e.cols!==this.cursorPos.cols&&(this.write(Wn(e.cols)),this.cursorPos=e)}done({clearContent:e}){this.rl.setPrompt(``);let t=Un(this.extraLinesUnderPrompt);t+=e?Gn(this.height):`
|
|
33
|
-
`,t+=`\x1B[G`,t+=`\x1B[?25h`,this.write(t),this.rl.close()}},Yn=class extends Promise{static withResolver(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}};const Xn=globalThis.setImmediate;function Zn(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(e,n)=>{let r=n.slice(1);return t=r,r},Error().stack}catch{return t}return Error.prepareStackTrace=e,t}function Qn(e){let t=Zn();return(n,r={})=>{let{input:i=process.stdin,signal:a}=r,o=new Set,s=new Dn.default;s.pipe(r.output??process.stdout);let c=Je.createInterface({terminal:!0,input:i,output:s});s.mute();let l=new Jn(c),{promise:u,resolve:d,reject:f}=Yn.withResolver(),p=()=>f(new Ct);if(a){let e=()=>f(new St({cause:a.reason}));if(a.aborted)return e(),Object.assign(u,{cancel:p});a.addEventListener(`abort`,e),o.add(()=>a.removeEventListener(`abort`,e))}o.add(Rn((e,t)=>{f(new wt(`User force closed the prompt with ${e} ${t}`))}));let m=()=>f(new wt(`User force closed the prompt with SIGINT`));return c.on(`SIGINT`,m),o.add(()=>c.removeListener(`SIGINT`,m)),kt(c,a=>{let m=Xe.bind(()=>Pt.clearAll());c.on(`close`,m),o.add(()=>c.removeListener(`close`,m));let h=()=>{let r=()=>l.checkCursorPos();c.input.on(`keypress`,r),o.add(()=>c.input.removeListener(`keypress`,r));let i=null;a(()=>{let r=!1;try{let a=e(n,e=>{r?d(e):i={value:e}});if(a===void 0){let e=t[1]?.getFileName();throw e&&!e.startsWith(`file://`)&&(e=je.resolve(e)),Error(`Prompt functions must return a string.\n at ${e}`)}let[o,s]=typeof a==`string`?[a]:a;l.render(o,s),Pt.run()}catch(e){f(e)}if(r=!0,i!==null){let{value:e}=i;i=null,d(e)}})};return`readableFlowing`in i?Xn(h):h(),Object.assign(u.then(e=>(Pt.clearAll(),e),e=>{throw Pt.clearAll(),e}).finally(()=>{o.forEach(e=>e()),l.done({clearContent:!!r.clearPromptOnDone}),s.end()}).then(()=>u),{cancel:p})})}}var K=class{separator=z(`dim`,Array.from({length:15}).join(U.line));type=`separator`;constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&typeof e==`object`&&`type`in e&&e.type===`separator`)}};
|
|
34
|
-
/*!
|
|
35
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
36
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*
|
|
38
|
-
* Redistribution and use in source and binary forms, with or without
|
|
39
|
-
* modification, are permitted provided that the following conditions are met:
|
|
40
|
-
*
|
|
41
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
42
|
-
* list of conditions and the following disclaimer.
|
|
43
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
44
|
-
* this list of conditions and the following disclaimer in the
|
|
45
|
-
* documentation and/or other materials provided with the distribution.
|
|
46
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
47
|
-
* may be used to endorse or promote products derived from this software without
|
|
48
|
-
* specific prior written permission.
|
|
49
|
-
*
|
|
50
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
51
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
52
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
53
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
54
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
55
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
56
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
57
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
58
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
59
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
60
|
-
*/
|
|
61
|
-
let $n=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;var er=class e extends Date{#e=!1;#t=!1;#n=null;constructor(e){let t=!0,n=!0,r=`Z`;if(typeof e==`string`){let i=e.match($n);i?(i[1]||(t=!1,e=`0000-01-01T${e}`),n=!!i[2],n&&e[10]===` `&&(e=e.replace(` `,`T`)),i[2]&&+i[2]>23?e=``:(r=i[3]||null,e=e.toUpperCase(),!r&&n&&(e+=`Z`))):e=``}super(e),isNaN(this.getTime())||(this.#e=t,this.#t=n,this.#n=r)}isDateTime(){return this.#e&&this.#t}isLocal(){return!this.#e||!this.#t||!this.#n}isDate(){return this.#e&&!this.#t}isTime(){return this.#t&&!this.#e}isValid(){return this.#e||this.#t}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#n===null)return e.slice(0,-1);if(this.#n===`Z`)return e;let t=this.#n.slice(1,3)*60+ +this.#n.slice(4,6);return t=this.#n[0]===`-`?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#n}static wrapAsOffsetDateTime(t,n=`Z`){let r=new e(t);return r.#n=n,r}static wrapAsLocalDateTime(t){let n=new e(t);return n.#n=null,n}static wrapAsLocalDate(t){let n=new e(t);return n.#t=!1,n.#n=null,n}static wrapAsLocalTime(t){let n=new e(t);return n.#e=!1,n.#n=null,n}};
|
|
62
|
-
/*!
|
|
63
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
64
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*
|
|
66
|
-
* Redistribution and use in source and binary forms, with or without
|
|
67
|
-
* modification, are permitted provided that the following conditions are met:
|
|
68
|
-
*
|
|
69
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
70
|
-
* list of conditions and the following disclaimer.
|
|
71
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
72
|
-
* this list of conditions and the following disclaimer in the
|
|
73
|
-
* documentation and/or other materials provided with the distribution.
|
|
74
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
75
|
-
* may be used to endorse or promote products derived from this software without
|
|
76
|
-
* specific prior written permission.
|
|
77
|
-
*
|
|
78
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
79
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
80
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
81
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
82
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
83
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
84
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
85
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
86
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
87
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
88
|
-
*/
|
|
89
|
-
function tr(e,t){let n=e.slice(0,t).split(/\r\n|\n|\r/g);return[n.length,n.pop().length+1]}function nr(e,t,n){let r=e.split(/\r\n|\n|\r/g),i=``,a=(Math.log10(t+1)|0)+1;for(let e=t-1;e<=t+1;e++){let o=r[e-1];o&&(i+=e.toString().padEnd(a,` `),i+=`: `,i+=o,i+=`
|
|
90
|
-
`,e===t&&(i+=` `.repeat(a+n+2),i+=`^
|
|
91
|
-
`))}return i}var q=class extends Error{line;column;codeblock;constructor(e,t){let[n,r]=tr(t.toml,t.ptr),i=nr(t.toml,n,r);super(`Invalid TOML document: ${e}\n\n${i}`,t),this.line=n,this.column=r,this.codeblock=i}};
|
|
92
|
-
/*!
|
|
93
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
94
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*
|
|
96
|
-
* Redistribution and use in source and binary forms, with or without
|
|
97
|
-
* modification, are permitted provided that the following conditions are met:
|
|
98
|
-
*
|
|
99
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
100
|
-
* list of conditions and the following disclaimer.
|
|
101
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
102
|
-
* this list of conditions and the following disclaimer in the
|
|
103
|
-
* documentation and/or other materials provided with the distribution.
|
|
104
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
105
|
-
* may be used to endorse or promote products derived from this software without
|
|
106
|
-
* specific prior written permission.
|
|
107
|
-
*
|
|
108
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
109
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
110
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
111
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
112
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
113
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
114
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
115
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
116
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
117
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
118
|
-
*/
|
|
119
|
-
let rr=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,ir=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,ar=/^[+-]?0[0-9_]/;function or(e,t){let n=e[t++],r=n,i=n===`'`,a=n===e[t]&&n===e[t+1];a&&(e[t+=2]===`
|
|
120
|
-
`?t++:e[t]===`\r`&&e[t+1]===`
|
|
121
|
-
`&&(t+=2));let o=``,s=t,c=0;for(let l=t;l<e.length;l++)if(n=e[l],a&&(n===`
|
|
122
|
-
`||n===`\r`&&e[l+1]===`
|
|
123
|
-
`))c&&=3;else if(n<` `&&n!==` `||n===``)throw new q(`control characters are not allowed in strings`,{toml:e,ptr:l});else if((!c||c===3)&&n===r&&(!a||e[l+1]===r&&e[l+2]===r))return a&&(e[l+3]===r&&l++,e[l+3]===r&&l++),[c?o:o+e.slice(s,l),l+(a?3:1)];else if(!c)!i&&n===`\\`&&(o+=e.slice(s,s=l),c=1);else if(c===1){if(n===`x`||n===`u`||n===`U`){let t=0,r=n===`x`?2:n===`u`?4:8;for(let n=0;n<r;n++,l++){let n=e.charCodeAt(l+1),r=n>=48&&n<=57?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1;if(r<0)throw new q(`invalid non-hex character in unicode escape`,{toml:e,ptr:l+1});t=t<<4|r}if(t<0||t>1114111||t>=55296&&t<=57343)throw new q(`invalid unicode escape`,{toml:e,ptr:l});o+=String.fromCodePoint(t),s=l+1,c=0}else if(n===` `||n===` `)c=2;else{if(n===`b`)o+=`\b`;else if(n===`t`)o+=` `;else if(n===`n`)o+=`
|
|
124
|
-
`;else if(n===`f`)o+=`\f`;else if(n===`r`)o+=`\r`;else if(n===`e`)o+=`\x1B`;else if(n===`"`)o+=`"`;else if(n===`\\`)o+=`\\`;else throw new q(`unrecognized escape sequence`,{toml:e,ptr:l});s=l+1,c=0}}else if(n!==` `&&n!==` `){if(c===2)throw new q(`invalid escape: only line-ending whitespace may be escaped`,{toml:e,ptr:s});c=+(!i&&n===`\\`),s=l}throw new q(`unfinished string`,{toml:e,ptr:t})}function sr(e,t,n,r){if(e===`true`)return!0;if(e===`false`)return!1;if(e===`-inf`)return-1/0;if(e===`inf`||e===`+inf`)return 1/0;if(e===`nan`||e===`+nan`||e===`-nan`)return NaN;if(e===`-0`)return r?0n:0;let i=rr.test(e);if(i||ir.test(e)){if(ar.test(e))throw new q(`leading zeroes are not allowed`,{toml:t,ptr:n});e=e.replace(/_/g,``);let a=+e;if(isNaN(a))throw new q(`invalid number`,{toml:t,ptr:n});if(i){if((i=!Number.isSafeInteger(a))&&!r)throw new q(`integer value cannot be represented losslessly`,{toml:t,ptr:n});(i||r===!0)&&(a=BigInt(e))}return a}let a=new er(e);if(!a.isValid())throw new q(`invalid value`,{toml:t,ptr:n});return a}
|
|
125
|
-
/*!
|
|
126
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
127
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
128
|
-
*
|
|
129
|
-
* Redistribution and use in source and binary forms, with or without
|
|
130
|
-
* modification, are permitted provided that the following conditions are met:
|
|
131
|
-
*
|
|
132
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
133
|
-
* list of conditions and the following disclaimer.
|
|
134
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
135
|
-
* this list of conditions and the following disclaimer in the
|
|
136
|
-
* documentation and/or other materials provided with the distribution.
|
|
137
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
138
|
-
* may be used to endorse or promote products derived from this software without
|
|
139
|
-
* specific prior written permission.
|
|
140
|
-
*
|
|
141
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
142
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
143
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
144
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
145
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
146
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
147
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
148
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
149
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
150
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
151
|
-
*/
|
|
152
|
-
function cr(e,t=0,n=e.length){let r=e.indexOf(`
|
|
153
|
-
`,t);return e[r-1]===`\r`&&r--,r<=n?r:-1}function lr(e,t){for(let n=t;n<e.length;n++){let r=e[n];if(r===`
|
|
154
|
-
`)return n;if(r===`\r`&&e[n+1]===`
|
|
155
|
-
`)return n+1;if(r<` `&&r!==` `||r===``)throw new q(`control characters are not allowed in comments`,{toml:e,ptr:t})}return e.length}function J(e,t,n,r){let i;for(;;){for(;(i=e[t])===` `||i===` `||!n&&(i===`
|
|
156
|
-
`||i===`\r`&&e[t+1]===`
|
|
157
|
-
`);)t++;if(r||i!==`#`)break;t=lr(e,t)}return t}function ur(e,t,n,r,i=!1){if(!r)return t=cr(e,t),t<0?e.length:t;for(let a=t;a<e.length;a++){let t=e[a];if(t===`#`)a=cr(e,a);else if(t===n)return a+1;else if(t===r||i&&(t===`
|
|
158
|
-
`||t===`\r`&&e[a+1]===`
|
|
159
|
-
`))return a}throw new q(`cannot find end of structure`,{toml:e,ptr:t})}
|
|
160
|
-
/*!
|
|
161
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
162
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
163
|
-
*
|
|
164
|
-
* Redistribution and use in source and binary forms, with or without
|
|
165
|
-
* modification, are permitted provided that the following conditions are met:
|
|
166
|
-
*
|
|
167
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
168
|
-
* list of conditions and the following disclaimer.
|
|
169
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
170
|
-
* this list of conditions and the following disclaimer in the
|
|
171
|
-
* documentation and/or other materials provided with the distribution.
|
|
172
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
173
|
-
* may be used to endorse or promote products derived from this software without
|
|
174
|
-
* specific prior written permission.
|
|
175
|
-
*
|
|
176
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
177
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
178
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
179
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
180
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
181
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
182
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
183
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
184
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
185
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
186
|
-
*/
|
|
187
|
-
function dr(e,t,n){let r=e.slice(t,n),i=r.indexOf(`#`);return i>-1&&(lr(e,i),r=r.slice(0,i)),[r.trimEnd(),i]}function fr(e,t,n,r,i){if(r===0)throw new q(`document contains excessively nested structures. aborting.`,{toml:e,ptr:t});let a=e[t];if(a===`[`||a===`{`){let[o,s]=a===`[`?gr(e,t,r,i):hr(e,t,r,i);if(n){if(s=J(e,s),e[s]===`,`)s++;else if(e[s]!==n)throw new q(`expected comma or end of structure`,{toml:e,ptr:s})}return[o,s]}if(a===`"`||a===`'`){let[r,i]=or(e,t);if(n){if(i=J(e,i),e[i]&&e[i]!==`,`&&e[i]!==n&&e[i]!==`
|
|
188
|
-
`&&e[i]!==`\r`)throw new q(`unexpected character encountered`,{toml:e,ptr:i});e[i]===`,`&&i++}return[r,i]}let o=ur(e,t,`,`,n),s=dr(e,t,o-+(e[o-1]===`,`));if(!s[0])throw new q(`incomplete key-value declaration: no value specified`,{toml:e,ptr:t});return n&&s[1]>-1&&(o=J(e,t+s[1]),e[o]===`,`&&o++),[sr(s[0],e,t,i),o]}
|
|
189
|
-
/*!
|
|
190
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
191
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
192
|
-
*
|
|
193
|
-
* Redistribution and use in source and binary forms, with or without
|
|
194
|
-
* modification, are permitted provided that the following conditions are met:
|
|
195
|
-
*
|
|
196
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
197
|
-
* list of conditions and the following disclaimer.
|
|
198
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
199
|
-
* this list of conditions and the following disclaimer in the
|
|
200
|
-
* documentation and/or other materials provided with the distribution.
|
|
201
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
202
|
-
* may be used to endorse or promote products derived from this software without
|
|
203
|
-
* specific prior written permission.
|
|
204
|
-
*
|
|
205
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
206
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
207
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
208
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
209
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
210
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
211
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
212
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
213
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
214
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
215
|
-
*/
|
|
216
|
-
let pr=/^[a-zA-Z0-9-_]+[ \t]*$/;function mr(e,t,n=`=`){let r=t-1,i=[],a=e.indexOf(n,t);if(a<0)throw new q(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});do{let o=e[t=++r];if(o!==` `&&o!==` `){if(o===`"`||o===`'`){if(o===e[t+1]&&o===e[t+2])throw new q(`multiline strings are not allowed in keys`,{toml:e,ptr:t});let[s,c]=or(e,t);r=e.indexOf(`.`,c);let l=e.slice(c,r<0||r>a?a:r),u=cr(l);if(u>-1)throw new q(`newlines are not allowed in keys`,{toml:e,ptr:t+r+u});if(l.trimStart())throw new q(`found extra tokens after the string part`,{toml:e,ptr:c});if(a<c&&(a=e.indexOf(n,c),a<0))throw new q(`incomplete key-value: cannot find end of key`,{toml:e,ptr:t});i.push(s)}else{r=e.indexOf(`.`,t);let n=e.slice(t,r<0||r>a?a:r);if(!pr.test(n))throw new q(`only letter, numbers, dashes and underscores are allowed in keys`,{toml:e,ptr:t});i.push(n.trimEnd())}}}while(r+1&&r<a);return[i,J(e,a+1,!0,!0)]}function hr(e,t,n,r){let i={},a=new Set,o;for(t++;(o=e[t++])!==`}`&&o;)if(o===`,`)throw new q(`expected value, found comma`,{toml:e,ptr:t-1});else if(o===`#`)t=lr(e,t);else if(o!==` `&&o!==` `&&o!==`
|
|
217
|
-
`&&o!==`\r`){let o,s=i,c=!1,[l,u]=mr(e,t-1);for(let n=0;n<l.length;n++){if(n&&(s=c?s[o]:s[o]={}),o=l[n],(c=Object.hasOwn(s,o))&&(typeof s[o]!=`object`||a.has(s[o])))throw new q(`trying to redefine an already defined value`,{toml:e,ptr:t});!c&&o===`__proto__`&&Object.defineProperty(s,o,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new q(`trying to redefine an already defined value`,{toml:e,ptr:t});let[d,f]=fr(e,u,`}`,n-1,r);a.add(d),s[o]=d,t=f}if(!o)throw new q(`unfinished table encountered`,{toml:e,ptr:t});return[i,t]}function gr(e,t,n,r){let i=[],a;for(t++;(a=e[t++])!==`]`&&a;)if(a===`,`)throw new q(`expected value, found comma`,{toml:e,ptr:t-1});else if(a===`#`)t=lr(e,t);else if(a!==` `&&a!==` `&&a!==`
|
|
218
|
-
`&&a!==`\r`){let a=fr(e,t-1,`]`,n-1,r);i.push(a[0]),t=a[1]}if(!a)throw new q(`unfinished array encountered`,{toml:e,ptr:t});return[i,t]}
|
|
219
|
-
/*!
|
|
220
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
221
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
222
|
-
*
|
|
223
|
-
* Redistribution and use in source and binary forms, with or without
|
|
224
|
-
* modification, are permitted provided that the following conditions are met:
|
|
225
|
-
*
|
|
226
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
227
|
-
* list of conditions and the following disclaimer.
|
|
228
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
229
|
-
* this list of conditions and the following disclaimer in the
|
|
230
|
-
* documentation and/or other materials provided with the distribution.
|
|
231
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
232
|
-
* may be used to endorse or promote products derived from this software without
|
|
233
|
-
* specific prior written permission.
|
|
234
|
-
*
|
|
235
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
236
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
237
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
238
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
239
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
240
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
241
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
242
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
243
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
244
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
245
|
-
*/
|
|
246
|
-
function _r(e,t,n,r){let i=t,a=n,o,s=!1,c;for(let t=0;t<e.length;t++){if(t){if(i=s?i[o]:i[o]={},a=(c=a[o]).c,r===0&&(c.t===1||c.t===2))return null;if(c.t===2){let e=i.length-1;i=i[e],a=a[e].c}}if(o=e[t],(s=Object.hasOwn(i,o))&&a[o]?.t===0&&a[o]?.d)return null;s||(o===`__proto__`&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(a,o,{enumerable:!0,configurable:!0,writable:!0})),a[o]={t:t<e.length-1&&r===2?3:r,d:!1,i:0,c:{}})}if(c=a[o],c.t!==r&&(r!==1||c.t!==3)||(r===2&&(c.d||(c.d=!0,i[o]=[]),i[o].push(i={}),c.c[c.i++]=c={t:1,d:!1,i:0,c:{}}),c.d))return null;if(c.d=!0,r===1)i=s?i[o]:i[o]={};else if(r===0&&s)return null;return[o,i,c.c]}function vr(e,{maxDepth:t=1e3,integersAsBigInt:n}={}){let r={},i={},a=r,o=i;for(let s=J(e,0);s<e.length;){if(e[s]===`[`){let t=e[++s]===`[`,n=mr(e,s+=+t,`]`);if(t){if(e[n[1]-1]!==`]`)throw new q(`expected end of table declaration`,{toml:e,ptr:n[1]-1});n[1]++}let c=_r(n[0],r,i,t?2:1);if(!c)throw new q(`trying to redefine an already defined table or value`,{toml:e,ptr:s});o=c[2],a=c[1],s=n[1]}else{let r=mr(e,s),i=_r(r[0],a,o,0);if(!i)throw new q(`trying to redefine an already defined table or value`,{toml:e,ptr:s});let c=fr(e,r[1],void 0,t,n);i[1][i[0]]=c[0],s=c[1]}if(s=J(e,s,!0),e[s]&&e[s]!==`
|
|
247
|
-
`&&e[s]!==`\r`)throw new q(`each key-value declaration must be followed by an end-of-line`,{toml:e,ptr:s});s=J(e,s)}return r}
|
|
248
|
-
/*!
|
|
249
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
250
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
251
|
-
*
|
|
252
|
-
* Redistribution and use in source and binary forms, with or without
|
|
253
|
-
* modification, are permitted provided that the following conditions are met:
|
|
254
|
-
*
|
|
255
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
256
|
-
* list of conditions and the following disclaimer.
|
|
257
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
258
|
-
* this list of conditions and the following disclaimer in the
|
|
259
|
-
* documentation and/or other materials provided with the distribution.
|
|
260
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
261
|
-
* may be used to endorse or promote products derived from this software without
|
|
262
|
-
* specific prior written permission.
|
|
263
|
-
*
|
|
264
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
265
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
266
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
267
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
268
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
269
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
270
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
271
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
272
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
273
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
274
|
-
*/
|
|
275
|
-
let yr=/^[a-z0-9-_]+$/i;function br(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`;if(e instanceof Date)return`date`}return t}function xr(e){for(let t=0;t<e.length;t++)if(br(e[t])!==`object`)return!1;return e.length!=0}function Sr(e){return JSON.stringify(e).replace(/\x7f/g,`\\u007f`)}function Cr(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);if(t===`number`)return isNaN(e)?`nan`:e===1/0?`inf`:e===-1/0?`-inf`:Number.isInteger(e)&&(r||!Number.isSafeInteger(e))?e.toFixed(1):e.toString();if(t===`bigint`||t===`boolean`)return e.toString();if(t===`string`)return Sr(e);if(t===`date`){if(isNaN(e.getTime()))throw TypeError(`cannot serialize invalid date`);return e.toISOString()}if(t===`object`)return wr(e,n,r);if(t===`array`)return Tr(e,n,r)}function wr(e,t,n){let r=Object.keys(e);if(r.length===0)return`{}`;let i=`{ `;for(let a=0;a<r.length;a++){let o=r[a];a&&(i+=`, `),i+=yr.test(o)?o:Sr(o),i+=` = `,i+=Cr(e[o],br(e[o]),t-1,n)}return i+` }`}function Tr(e,t,n){if(e.length===0)return`[]`;let r=`[ `;for(let i=0;i<e.length;i++){if(i&&(r+=`, `),e[i]===null||e[i]===void 0)throw TypeError(`arrays cannot contain null or undefined values`);r+=Cr(e[i],br(e[i]),t-1,n)}return r+` ]`}function Er(e,t,n,r){if(n===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let i=``;for(let a=0;a<e.length;a++)i+=`${i&&`
|
|
276
|
-
`}[[${t}]]\n`,i+=Dr(0,e[a],t,n,r);return i}function Dr(e,t,n,r,i){if(r===0)throw Error(`Could not stringify the object: maximum object depth exceeded`);let a=``,o=``,s=Object.keys(t);for(let e=0;e<s.length;e++){let c=s[e];if(t[c]!==null&&t[c]!==void 0){let e=br(t[c]);if(e===`symbol`||e===`function`)throw TypeError(`cannot serialize values of type '${e}'`);let s=yr.test(c)?c:Sr(c);if(e===`array`&&xr(t[c]))o+=(o&&`
|
|
277
|
-
`)+Er(t[c],n?`${n}.${s}`:s,r-1,i);else if(e===`object`){let e=n?`${n}.${s}`:s;o+=(o&&`
|
|
278
|
-
`)+Dr(e,t[c],e,r-1,i)}else a+=s,a+=` = `,a+=Cr(t[c],e,r,i),a+=`
|
|
279
|
-
`}}return e&&(a||!o)&&(a=a?`[${e}]\n${a}`:`[${e}]`),a&&o?`${a}\n${o}`:a||o}function Or(e,{maxDepth:t=1e3,numbersAsFloat:n=!1}={}){if(br(e)!==`object`)throw TypeError(`stringify can only be called with an object`);let r=Dr(0,e,``,t,n);return r[r.length-1]===`
|
|
280
|
-
`?r:r+`
|
|
281
|
-
`}var kr=v();function Ar(e){let t=e&&typeof e==`object`&&`code`in e?e.code:void 0;return t===`MODULE_NOT_FOUND`||t===`ERR_MODULE_NOT_FOUND`}function jr(e){return!e||typeof e!=`object`?String(e):`${typeof e} keys=[${Object.keys(e).join(`,`)}]`}function Mr(e,t){let n=[],r=new WeakSet,i=t;for(;i instanceof Error&&!r.has(i);)r.add(i),n.push(i.message),i=i.cause;return n.length===0?`${e}: ${jr(t)}`:`${e}: ${n.reverse().slice(0,5).join(` -> `)}`}function Y(e,t){process.env.OK_DEBUG_NATIVE&&process.stderr.write(`[ok] native-config ${Mr(e,t)}\n`)}const Nr=[`native`,`index.js`];function Pr(e={},t=Y){let n=e.moduleUrl??import.meta.url,r=e.requireModule??ke(n);try{let e=A(Ie(n));return r(j(e,...Nr))}catch(e){Ar(e)||t(`bundled loader failed to load`,e)}try{return r(`@inkeep/open-knowledge-native-config`)}catch(e){return Ar(e)||t(`workspace addon failed to load`,e),null}}function Fr(){let e=Pr();return e&&typeof e.parseTomlToJson==`function`?e:null}function Ir(e){try{let t=e.parseTomlToJson(`probe = 1`);return typeof t==`string`&&t.includes(`probe`)}catch(e){return Y(`addon loaded but probe failed`,e),!1}}function Lr(e){if(!k(e))throw Error(`TOML root is not a table`);return e}function Rr(e){return{backend:`native`,parseToObject(t){return Lr(JSON.parse(e.parseTomlToJson(t)))},upsertEntry(t,n,r){let i=e.upsertMcpServer(t,n,JSON.stringify(r));return{text:i.text,existed:i.existed}},removeEntry(t,n){let r=e.removeMcpServer(t,n);return{text:r.text,existed:r.existed}},removeEntryKey(t,n,r){let i=e.removeMcpServerKey(t,n,r);return{text:i.text,existed:i.existed}}}}function zr(){return{backend:`fallback`,parseToObject(e){return Lr(vr(e))}}}function Br(e=Fr){let t=e();return t&&Ir(t)?Rr(t):zr()}let Vr=null;function Hr(){return Vr===null&&(Vr=Br()),Vr}function Ur(){let e=Hr();return e.backend===`native`?e:void 0}const Wr=r,X=_,Gr=a,Kr=`node`,qr={MCP_DEBUG:`1`,OK_LOG_FILE:`/tmp/ok-mcp.log`},Jr=`# ok-mcp-v2`,Yr=`# ok-mcp-v2
|
|
282
|
-
USER_BUNDLE="$HOME/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
|
|
283
|
-
[ -f "$USER_BUNDLE" ] && [ -x "$USER_BUNDLE" ] && exec "$USER_BUNDLE" mcp
|
|
284
|
-
BUNDLE="/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
|
|
285
|
-
[ -f "$BUNDLE" ] && [ -x "$BUNDLE" ] && exec "$BUNDLE" mcp
|
|
286
|
-
DEB_BUNDLE="/opt/OpenKnowledge/resources/cli/bin/ok.sh"
|
|
287
|
-
[ -f "$DEB_BUNDLE" ] && [ -x "$DEB_BUNDLE" ] && exec "$DEB_BUNDLE" mcp
|
|
288
|
-
command -v npx >/dev/null 2>&1 && exec npx -y @inkeep/open-knowledge@latest mcp
|
|
289
|
-
for d in "$HOME/.nvm/versions/node"/*/bin "$HOME/.fnm/node-versions"/*/installation/bin "$HOME/.asdf/installs/nodejs"/*/bin /opt/homebrew/bin /usr/local/bin "$HOME/.local/bin" "$HOME/.volta/bin"; do
|
|
290
|
-
[ -f "$d/npx" ] && [ -x "$d/npx" ] && exec "$d/npx" -y @inkeep/open-knowledge@latest mcp
|
|
291
|
-
done
|
|
292
|
-
echo "OpenKnowledge: install OK Desktop or Node.js 24+, then restart your editor" >&2
|
|
293
|
-
exit 127`,Xr=`# ok-mcp-win-v1`,Zr=`@inkeep/open-knowledge`,Qr=`# ok-mcp-win-v1
|
|
294
|
-
if ($env:PATHEXT -notmatch 'CMD') { $env:PATHEXT = '.COM;.EXE;.BAT;.CMD;' + $env:PATHEXT }
|
|
295
|
-
if ($env:APPDATA) {
|
|
296
|
-
$shim = Join-Path $env:APPDATA 'npm\\ok.cmd'
|
|
297
|
-
if (Test-Path -LiteralPath $shim -PathType Leaf) { & $shim mcp; exit $LASTEXITCODE }
|
|
298
|
-
}
|
|
299
|
-
$ok = Get-Command ok.cmd -CommandType Application -ErrorAction SilentlyContinue
|
|
300
|
-
if ($ok) { & $ok.Source mcp; exit $LASTEXITCODE }
|
|
301
|
-
$npx = Get-Command npx.cmd -CommandType Application -ErrorAction SilentlyContinue
|
|
302
|
-
if ($npx) { & $npx.Source -y '@inkeep/open-knowledge@latest' mcp; exit $LASTEXITCODE }
|
|
303
|
-
$dirs = @()
|
|
304
|
-
if ($env:ProgramFiles) { $dirs += Join-Path $env:ProgramFiles 'nodejs' }
|
|
305
|
-
if ($env:NVM_SYMLINK) { $dirs += $env:NVM_SYMLINK }
|
|
306
|
-
if ($env:LOCALAPPDATA) {
|
|
307
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'fnm\\aliases\\default'
|
|
308
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'Volta\\bin'
|
|
309
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'pnpm'
|
|
310
|
-
}
|
|
311
|
-
if ($env:USERPROFILE) { $dirs += Join-Path $env:USERPROFILE 'scoop\\shims' }
|
|
312
|
-
foreach ($d in $dirs) {
|
|
313
|
-
$probe = Join-Path $d 'npx.cmd'
|
|
314
|
-
if (Test-Path -LiteralPath $probe -PathType Leaf) { & $probe -y '@inkeep/open-knowledge@latest' mcp; exit $LASTEXITCODE }
|
|
315
|
-
}
|
|
316
|
-
[Console]::Error.WriteLine('OpenKnowledge: install Node.js 24+ (npm i -g @inkeep/open-knowledge), then restart your editor')
|
|
317
|
-
exit 127`,$r=`// ok-pi-bridge`,ei=`${$r}-v1`;function ti(e){if(typeof e!=`object`||!e)return!1;let t=e;if(t.command===`/bin/sh`){if(!Array.isArray(t.args)||t.args[0]!==`-l`||t.args[1]!==`-c`)return!1;let e=t.args[2];return ui(e,Jr)}if(t.command===`powershell`){if(!Array.isArray(t.args)||t.args[0]!==`-NoProfile`||t.args[1]!==`-NonInteractive`||t.args[2]!==`-Command`)return!1;let e=t.args[3];return ui(e,Xr)}if(t.type===`local`&&Array.isArray(t.command)){if(t.command[0]===`/bin/sh`){if(t.command[1]!==`-l`||t.command[2]!==`-c`)return!1;let e=t.command[3];return ui(e,Jr)}if(t.command[0]===`powershell`){if(t.command[1]!==`-NoProfile`||t.command[2]!==`-NonInteractive`||t.command[3]!==`-Command`)return!1;let e=t.command[4];return ui(e,Xr)}return!1}if(t.command===`ok-pi-managed-extension`){if(!Array.isArray(t.args))return!1;let e=t.args[0];return typeof e==`string`&&e.startsWith(ei)}return!1}function ni(e=process.argv[1]){if(!e)throw Error(`Cannot infer the local CLI entry for --dev-mcp because process.argv[1] is empty.`);let t=N(e);if(Me(t)===`cli.mjs`&&Me(A(t))===`dist`)return t;let n=t.split(P),r=n.lastIndexOf(`packages`);if(r===-1||n[r+1]!==`cli`)throw Error(`Cannot infer the repo root for --dev-mcp from ${t}. Run the local CLI from this repo so the built dist path can be derived.`);let i=n.slice(0,r),a=i.length===0?P:i.join(P);return j(a,`packages`,`cli`,`dist`,`cli.mjs`)}function Z(e={}){return e.mode===`dev`?{command:Kr,args:[ni(),`mcp`],env:{...qr}}:(e.platformName??process.platform)===`win32`?{command:`powershell`,args:[`-NoProfile`,`-NonInteractive`,`-Command`,Qr]}:{command:`/bin/sh`,args:[`-l`,`-c`,Yr]}}function ri(e={}){return e.mode===`dev`?{type:`local`,enabled:!0,command:[Kr,ni(),`mcp`],environment:{...qr}}:(e.platformName??process.platform)===`win32`?{type:`local`,enabled:!0,command:[`powershell`,`-NoProfile`,`-NonInteractive`,`-Command`,Qr]}:{type:`local`,enabled:!0,command:[`/bin/sh`,`-l`,`-c`,Yr]}}function ii(e){if(typeof e!=`object`||!e)return!1;let t=e;return ai(t,Z({mode:`published`,platformName:`darwin`}))||ai(t,Z({mode:`published`,platformName:`win32`}))}function ai(e,t){return Object.keys(e).length===Object.keys(t).length&&oi(e,t)}function oi(e,t){if(e.command!==t.command)return!1;let n=t.args;return!Array.isArray(n)||!Array.isArray(e.args)||e.args.length!==n.length?!1:e.args.every((e,t)=>e===n[t])}function si(e,t){let n=e=>di(e);return t===`/bin/sh`?e[0]===`-l`&&e[1]===`-c`&&n(e[2]):t===`powershell`&&e[0]===`-NoProfile`&&e[1]===`-NonInteractive`&&e[2]===`-Command`&&n(e[3])}function ci(e){return e.format===`toml`?Hr().backend===`native`:e.format===`json`||e.format===`yaml`}function li(e){return Array.isArray(e.command)?e.command:[e.command,...Array.isArray(e.args)?e.args:[]]}function ui(e,t){return typeof e==`string`&&e.trimStart().startsWith(t)}function di(e){return ui(e,`# ok-mcp`)}function fi(e){return typeof e==`string`&&(e===Zr||e.startsWith(`${Zr}@`))}function pi(e){if(typeof e!=`object`||!e)return!1;let t=li(e),n=t.findIndex(e=>e===`-c`||e===`-Command`);return n>=0&&di(t[n+1])?!0:t.some(fi)}function mi(e){if(typeof e!=`object`||!e)return!1;let t=li(e);if(t[0]!==Kr||t[2]!==`mcp`)return!1;try{return t[1]===ni()}catch{return!1}}const hi=[`command`,`args`,`env`],gi=[`type`,`command`,`environment`];function _i(e){return e.type===`local`&&Array.isArray(e.command)?gi:hi}function vi(e,t){if(typeof e!=`object`||!e)return[];let n=e;return _i(t).filter(e=>t[e]===void 0&&n[e]!==void 0)}function yi(e,t){return e.format===`file`?null:e.buildEntry(t,{})}function bi(e,t){return vi(e,t).length>0}function xi(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.enabled===!1||typeof t.command!=`string`||!Array.isArray(t.args)?!1:si(t.args,t.command)}function Si(e){if(typeof e!=`object`||!e)return!1;let t=e;if(t.type!==`local`||t.enabled===!1||!Array.isArray(t.command))return!1;let[n,...r]=t.command;return typeof n==`string`&&si(r,n)}function Q(e){return e===`win32`?Fe:Pe}function Ci(e={}){let t=e.platformName??process.platform,n=e.home??R(),r=e.env??process.env,i=Q(t);return t===`darwin`?i.join(n,`Library`,`Application Support`):t===`win32`?r.APPDATA||i.join(n,`AppData`,`Roaming`):r.XDG_CONFIG_HOME||i.join(n,`.config`)}function wi(e={}){let t=e.platformName??process.platform,n=e.home??R();return Q(t).join(n,`.claude.json`)}function Ti(e={}){let t=e.platformName??process.platform,n=e.home??R(),r=e.env??process.env;if(t===`darwin`)return Pe.join(n,`Library`,`Application Support`,`Claude`,`claude_desktop_config.json`);if(t===`win32`){let e=r.APPDATA??Fe.join(n,`AppData`,`Roaming`);return Fe.join(e,`Claude`,`claude_desktop_config.json`)}throw Error(`Claude Desktop is not available on ${t}. Supported: macOS, Windows.`)}function Ei(e={}){let t=e.platformName??process.platform,n=e.home??R();return Q(t).join(n,`.cursor`,`mcp.json`)}function Di(e={}){let t=e.platformName??process.platform,n=e.home??R();return(e.env??process.env).CODEX_HOME??Q(t).join(n,`.codex`)}function Oi(e={}){return Q(e.platformName??process.platform).join(Di(e),`config.toml`)}function ki(e={}){let t=e.platformName??process.platform,n=e.home??R(),r=(e.env??process.env).COPILOT_HOME??Q(t).join(n,`.copilot`);return Q(t).join(r,`mcp-config.json`)}function Ai(e={}){let t=e.platformName??process.platform,n=e.home??R(),r=e.env??process.env,i=Q(t);if(t===`win32`){let e=r.APPDATA??i.join(n,`AppData`,`Roaming`);return i.join(e,`opencode`)}let a=r.XDG_CONFIG_HOME??i.join(n,`.config`);return i.join(a,`opencode`)}function ji(e={}){return Q(e.platformName??process.platform).join(Ai(e),`opencode.json`)}function Mi(e={}){let t=e.platformName??process.platform,n=e.home??R();return Q(t).join(n,`.openclaw`,`openclaw.json`)}function Ni(e={}){let t=e.platformName??process.platform,n=e.home??R();return Q(t).join(n,`.hermes`,`config.yaml`)}function Pi(e={}){let t=e.platformName??process.platform,n=e.home??R();return(e.env??process.env).PI_CODING_AGENT_DIR??Q(t).join(n,`.pi`,`agent`)}function Fi(e={}){let t=e.platformName??process.platform,n=e.home??R();return Q(t).join(n,`.gemini`,`config`,`mcp_config.json`)}function Ii(e,t){let n=Q(t);return[{file:n.join(e,`.lmstudio`,`mcp.json`),dir:n.join(e,`.lmstudio`)},{file:n.join(e,`.cache`,`lm-studio`,`mcp.json`),dir:n.join(e,`.cache`,`lm-studio`)}]}function Li(e){try{return Be(e).length>0}catch{return!1}}function Ri(e={}){let t=e.platformName??process.platform,[n,r]=Ii(e.home??R(),t),i=[n,r].find(e=>I(e.file));return i?i.file:Li(r.dir)?r.file:n.file}const $={claude:{id:`claude`,label:X.claude,configPath:(e,t)=>wi({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>j(t??R(),`.claude`),projectConfigPath:e=>j(e,`.mcp.json`),projectSkillPath:e=>j(e,`.claude`,`skills`,`open-knowledge`,`SKILL.md`)},"claude-desktop":{id:`claude-desktop`,label:X[`claude-desktop`],configPath:(e,t)=>Ti({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>A(Ti({home:t}))},cursor:{id:`cursor`,label:X.cursor,configPath:(e,t)=>Ei({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>A(Ei({home:t})),projectConfigPath:e=>j(e,`.cursor`,`mcp.json`),projectSkillPath:e=>j(e,`.cursor`,`skills`,`open-knowledge`,`SKILL.md`)},codex:{id:`codex`,label:X.codex,configPath:(e,t)=>Oi({home:t}),format:`toml`,topLevelKey:`mcp_servers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>A(Oi({home:t})),projectConfigPath:e=>j(e,`.codex`,`config.toml`),projectSkillPath:e=>j(e,`.codex`,`skills`,`open-knowledge`,`SKILL.md`)},copilot:{id:`copilot`,label:X.copilot,configPath:(e,t)=>ki({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>A(ki({home:t})),projectSkillPath:e=>j(e,`.github`,`skills`,`open-knowledge`,`SKILL.md`)},opencode:{id:`opencode`,label:X.opencode,configPath:(e,t)=>ji({home:t}),format:`json`,topLevelKey:`mcp`,serverName:()=>u,buildEntry:(e,t)=>ri(t),scope:`global`,detectPath:(e,t)=>A(ji({home:t})),projectConfigPath:e=>j(e,`opencode.json`),projectSkillPath:e=>j(e,`.opencode`,`skills`,`open-knowledge`,`SKILL.md`)},openclaw:{id:`openclaw`,label:X.openclaw,configPath:(e,t)=>Mi({home:t}),format:`json`,topLevelKey:`mcp`,serverMapSubKey:`servers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>j(t??R(),`.openclaw`),offerOnlyWhenDetected:!0},pi:{id:`pi`,label:X.pi,configPath:()=>{throw Error("Pi has no user-global MCP config; OK's integration is the project-scoped bridge extension at .pi/extensions/open-knowledge.ts (run `ok init` in the project).")},format:`file`,topLevelKey:`mcpServers`,serverName:()=>u,scope:`project`,detectPath:(e,t)=>Pi({home:t}),projectConfigPath:e=>j(e,`.pi`,`extensions`,`open-knowledge.ts`),projectSkillPath:e=>j(e,`.pi`,`skills`,`open-knowledge`,`SKILL.md`)},antigravity:{id:`antigravity`,label:X.antigravity,configPath:(e,t)=>Fi({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>j(t??R(),`.gemini`),offerOnlyWhenDetected:!0},"lm-studio":{id:`lm-studio`,label:X[`lm-studio`],configPath:(e,t)=>Ri({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>A(Ri({home:t})),offerOnlyWhenDetected:!0},hermes:{id:`hermes`,label:X.hermes,configPath:(e,t)=>Ni({home:t}),format:`yaml`,topLevelKey:`mcp_servers`,serverName:()=>u,buildEntry:(e,t)=>Z(t),scope:`global`,detectPath:(e,t)=>j(t??R(),`.hermes`),offerOnlyWhenDetected:!0}};function zi(e){let t=e.filter(e=>!Object.hasOwn($,e));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${Wr.join(`, `)}`);return e.map(e=>$[e])}const Bi=`**/.ok/*`,Vi=`!**/${m}/`;function Hi(e){let t=[`.ok/`,`.okignore`];for(let n of Wr){let r=$[n];r.projectConfigPath&&t.push(ra(r.projectConfigPath(e),e))}return t.push(`.claude/launch.json`),Array.from(new Set(t))}function Ui(e){let t=j(e,...d);if(!I(t))return[];try{let e=g(L(t,`utf-8`));if(!e)return[];let n=[];for(let[t,r]of Object.entries(e.skills))if(t!==`open-knowledge`)for(let e of r.hosts){let r=f[e];r&&n.push(`${r}/${t}/`)}return Array.from(new Set(n))}catch{return[]}}function Wi(e,t){let n=Ji(e,t).tracked;if(n.length>0)return{kind:`refused-tracked`,tracked:n,remediation:Qi(n)};let r=$i(e);if(r.kind!==`ok`)return r.result;let i=I(r.path)?L(r.path,`utf-8`):``,a=new Set(Ui(e)),o=[],s=a.size===0?i:i.split(`
|
|
318
|
-
`).filter(e=>{let t=e.trim();return!a.has(t)||(o.push(t),!1)}).join(`
|
|
319
|
-
`),c=na(s),l=[],u=[];for(let e of t)ta(c,e)?u.push(e):l.push(e);if(l.length===0&&o.length===0)return{kind:`updated`,appended:l,alreadyPresent:u,removed:[]};let d=l.length===0||s.length===0||s.endsWith(`
|
|
320
|
-
`)?``:`
|
|
321
|
-
`,f=l.length===0?``:`${l.join(`
|
|
322
|
-
`)}\n`;try{Ge(r.path,`${s}${d}${f}`,`utf-8`)}catch{return{kind:`no-exclude`,reason:`inaccessible`}}return{kind:`updated`,appended:l,alreadyPresent:u,removed:o}}function Gi(e,t){let n=$i(e);if(n.kind!==`ok`)return n.result;if(!I(n.path))return{kind:`updated`,appended:[],alreadyPresent:[],removed:[]};let r=t.map(e=>ea(e)),i=new Set;for(let e of r)for(let t of e)i.add(t);i.add(Bi),i.add(Vi);for(let t of Ui(e))i.add(t);let a;try{a=L(n.path,`utf-8`)}catch{return{kind:`no-exclude`,reason:`inaccessible`}}let o=a.split(`
|
|
323
|
-
`),s=new Set,c=[];for(let e of o){let t=e.trim();if(i.has(t)){s.add(t);continue}c.push(e)}let l=[...s];if(s.size===0)return{kind:`updated`,appended:[],alreadyPresent:[],removed:[]};let u=c.join(`
|
|
324
|
-
`);if(u!==a)try{Ge(n.path,u,`utf-8`)}catch{return{kind:`no-exclude`,reason:`inaccessible`}}return{kind:`updated`,appended:[],alreadyPresent:[],removed:l}}function Ki(e){let t=$i(e);if(t.kind!==`ok`)return t.result.reason===`no-git`||t.result.reason===`malformed-pointer`||t.result.reason===`inaccessible`?`no-git`:`shared`;if(!I(t.path))return`shared`;let n;try{n=L(t.path,`utf-8`)}catch{return`shared`}let r=na(n),i=Hi(e);for(let e of i)if(ta(r,e))return`local-only`;return r.has(Bi)?`local-only`:`shared`}function qi(e){let t=$i(e);if(t.kind!==`ok`||!I(t.path))return[];let n;try{n=L(t.path,`utf-8`)}catch{return[]}let r=na(n),i=[...Hi(e),...Ui(e)].filter(e=>ta(r,e)),a=new Set(i),o=[];for(let e of Object.values(f))e!==null&&o.push(e);let s=[];for(let e of r){if(a.has(e))continue;if(e===Bi||e===Vi){s.push(e);continue}let t=e.replace(/^\//,``).replace(/\/$/,``);o.some(e=>t.startsWith(`${e}/`)&&t.length>e.length+1)&&s.push(e)}return[...i,...s]}function Ji(e,t){let n=[];for(let r of t){let t=N(e,r);if(I(t))try{Ae(`git`,[`ls-files`,`--error-unmatch`,...h([r])],Ce({cwd:e,stdio:[`ignore`,`ignore`,`ignore`]})),n.push(r)}catch{}}return{tracked:n}}const Yi=/^[\w.\-/]+$/;function Xi(e){return process.platform===`win32`?`"${e.replaceAll(`"`,``)}"`:`'${e.replaceAll(`'`,`'\\''`)}'`}function Zi(e){return Yi.test(e)?e:Xi(y(e))}function Qi(e){let t=[];t.push(`Cannot switch OpenKnowledge to local-only — these OK files are tracked upstream:`),t.push(``);for(let n of e)t.push(` ${n}`);t.push(``),t.push(`.git/info/exclude only hides files that git isn't already tracking. To proceed, untrack them first:`),t.push(``);for(let n of e){let e=n.replace(/\/$/,``),r=n.endsWith(`/`)?`-r `:``;t.push(` git rm --cached ${r}-- ${Zi(e)}`)}return t.push(``),t.push("Then re-run the command. Note: `git rm --cached` removes the files from the index — your teammates will see a deletion on their next pull. If you don't want that, leave sharing mode set to 'shared'."),t.join(`
|
|
325
|
-
`)}function $i(e){let t=me(e);switch(t.kind){case`repository`:{let e=t.repository.readCommonDir();if(e.kind===`unreadable`)return{kind:`no-exclude`,result:{kind:`no-exclude`,reason:`inaccessible`}};let n=j(e.path,`info`);return I(n)?{kind:`ok`,path:j(n,`exclude`)}:{kind:`no-exclude`,result:{kind:`no-exclude`,reason:`no-info-dir`}}}case`absent`:return{kind:`no-exclude`,result:{kind:`no-exclude`,reason:`no-git`}};case`malformed-pointer`:return{kind:`no-exclude`,result:{kind:`no-exclude`,reason:`malformed-pointer`}};case`inaccessible`:return{kind:`no-exclude`,result:{kind:`no-exclude`,reason:`inaccessible`}}}}function ea(e){let t=e.replace(/\/$/,``);return new Set([e,t,`/${e}`,`/${t}`])}function ta(e,t){for(let n of ea(t))if(e.has(n))return!0;return!1}function na(e){let t=new Set;for(let n of e.split(`
|
|
326
|
-
`)){let e=n.trim();e.length!==0&&t.add(e)}return t}function ra(e,t){return ia(M(t,e))}function ia(e){return P===`/`?e:e.split(P).join(`/`)}function aa(e,t){let n;try{n=Re(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(n?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);sa(e,t)}function oa(e,t){sa(e,t)}function sa(e,t){ca(e,t)}function ca(e,t){let n=t,r;try{r=He(n)}catch{r=N(n)}let i=A(e);for(;i.length>1&&i!==P;){let t;try{t=He(i)}catch(e){if(e.code===`ENOENT`){i=A(i);continue}throw e}let n=M(r,t);if(n===``||!n.startsWith(`..`)&&!Ne(n))return;throw Error(`Refusing to write at ${e}: ancestor ${i} resolves to ${t}, which is outside the project directory ${r}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function la(e,t){let n=A(t),r=I(t)?`overwritten`:`written`;if(r===`written`&&I(n))throw Error(`Refusing to replace ${n}: it exists but holds no SKILL.md, so it is not a bundle OpenKnowledge wrote. Move it aside and try again.`);return Ue(n,{recursive:!0,force:!0}),ze(A(n),{recursive:!0}),Le(e,n,{recursive:!0}),r}function ua(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function da(e,t,n){try{if(We(n).size>10485760)return!1}catch{return!1}let r;try{r=L(n,`utf-8`)}catch{return!1}let i=[],a=ee(r.charCodeAt(0)===65279?r.slice(1):r,i,{allowTrailingComma:!0,disallowComments:!1});if(i.length>0||!ua(a))return!1;let o=a[e.topLevelKey];if(!ua(o))return!1;let s=e.serverMapSubKey?o[e.serverMapSubKey]:o;if(!ua(s))return!1;let c=s[e.serverName(t)];return ua(c)&&c.enabled===!1?!1:pi(c)||mi(c)}function fa(e){let t=o[e]?.satisfiers.find(e=>e.piece===`mcp`&&e.scope===`project`),n=t?.pathId===void 0?null:c(t.pathId);return n===null||n.kind!==`editor-project-config`||n.editor===e?null:$[n.editor]??null}function pa(e,t,n={}){if(!i.includes(e.id))return!0;let r=fa(e.id),a=r?.projectConfigPath?.(t);if(r!==null&&a!==void 0&&da(r,t,a))return!0;try{return da(e,t,e.configPath(t,n.home))}catch{return!1}}function ma(e){let t=new Set(l.filter(e=>e.scope===`project`).map(e=>e.editorId));return e.filter(e=>t.has(e))}function ha(e,t){if(ma(t).length===0)return null;let n=j(e,p,b,`SKILL.md`);try{let t=he(`project`,{checkDesktop:!0});return aa(A(n),e),{editorId:`agents`,label:`.agents hub`,action:la(t,n),path:n}}catch(e){return{editorId:`agents`,label:`.agents hub`,action:`failed`,path:n,error:e instanceof Error?e.message:String(e)}}}function ga(e,t,n={}){let r=e.projectSkillPath?.(t);if(!r)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};if(!pa(e,t,n))return{editorId:e.id,label:e.label,action:`skipped-prerequisite`,path:r};try{let n=he(`project`,{checkDesktop:!0});aa(A(r),t);let i=la(n,r);return{editorId:e.id,label:e.label,action:i,path:r}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}function _a(e,t){let n=e.projectSkillPath?.(t);if(!n)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};try{let r=A(n);return I(n)?(oa(r,t),Ue(r,{recursive:!0,force:!0}),{editorId:e.id,label:e.label,action:`removed`,path:n}):{editorId:e.id,label:e.label,action:`not-present`,path:n}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:n,error:t instanceof Error?t.message:String(t)}}}function va(e){switch(e?.code){case`EACCES`:case`EPERM`:return`permission-denied`;case`ELOOP`:return`unresolved-symlink`;case`EISDIR`:case`ENOTDIR`:return`not-a-file`;case`ENOENT`:return`disappeared`;default:return`unreadable`}}function ya(e){switch(e){case`permission-denied`:return`permission denied; check file and parent-directory permissions, then retry`;case`missing-symlink-target`:return`the symlink target is missing; restore the target or correct the symlink, then retry`;case`unresolved-symlink`:return`the path or symlink could not be resolved; check path permissions and repair any symlink cycle, then retry`;case`not-a-file`:return`the path is not a regular file; restore the intended configuration file, then retry`;case`disappeared`:return`the file disappeared; retry to check its current state`;case`unreadable`:return`the file could not be read; check that the path is accessible, then retry`;default:throw Error(`unhandled configuration file decline reason: ${e}`)}}function ba(e){for(let t of e.split(`
|
|
327
|
-
`)){let e=t.trimStart();if(e.length!==0&&e.length!==t.length)return t.charCodeAt(0)===9?{insertSpaces:!1,tabSize:1}:{insertSpaces:!0,tabSize:t.length-e.length}}return{insertSpaces:!0,tabSize:2}}function xa(e){let t=(e.match(/\r\n/g)??[]).length;return t!==0&&t>=(e.match(/\n/g)??[]).length-t}function Sa(e){try{return We(e).mode&511}catch{return}}function Ca(e,t){let n=e.charCodeAt(0)===65279,r=n?e.slice(1):e,i=r.includes(`\r
|
|
328
|
-
`)?`\r
|
|
329
|
-
`:`
|
|
330
|
-
`,a=fe(r,t,void 0,{formattingOptions:{...ba(r),eol:i}});if(a.length===0)return{text:e,changed:!1};let o=`${n?``:``}${x(r,a)}`;return{text:o,changed:o!==e}}const wa={icon:{checked:z(`green`,U.circleFilled),unchecked:U.circle,cursor:U.pointer,disabledChecked:z(`green`,U.circleDouble),disabledUnchecked:`-`},style:{disabled:e=>z(`dim`,e),renderSelectedChoices:e=>e.map(e=>e.short).join(`, `),description:e=>z(`cyan`,e),keysHelpTip:e=>e.map(([e,t])=>`${z(`bold`,e)} ${z(`dim`,t)}`).join(z(`dim`,` • `))},i18n:{disabledError:`This option is disabled and cannot be toggled.`}};function Ta(e){return!K.isSeparator(e)&&!e.disabled}function Ea(e){return!K.isSeparator(e)}function Da(e){return!K.isSeparator(e)&&e.checked}function Oa(e){return Ta(e)?{...e,checked:!e.checked}:e}function ka(e){return function(t){return Ta(t)?{...t,checked:e}:t}}function Aa(e){return e.map(e=>{if(K.isSeparator(e))return e;if(typeof e!=`object`||!e||!(`value`in e)){let t=String(e);return{value:e,name:t,short:t,checkedName:t,disabled:!1,checked:!1}}let t=e.name??String(e.value),n={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(n.description=e.description),n})}var ja=Qn((e,t)=>{let{pageSize:n=7,loop:r=!0,required:i,validate:a=()=>!0}=e,o={all:`a`,invert:`i`,...e.shortcuts},s=qt(wa,e.theme),{keybindings:c}=s,[l,u]=H(`idle`),d=Jt({status:l,theme:s}),[f,p]=H(Aa(e.choices)),m=Yt(()=>{let e=f.findIndex(Ea),t=f.findLastIndex(Ea);if(e===-1)throw new Et(`[checkbox prompt] No selectable choices. All choices are disabled.`);return{first:e,last:t}},[f]),[h,g]=H(m.first),[_,v]=H();Zt(async e=>{if(xt(e)){let e=f.filter(Da),n=await a([...e]);i&&!e.length?v(`At least one choice must be selected`):n===!0?(u(`done`),t(e.map(e=>e.value))):v(n||`You must select a valid value`)}else if(B(e,c)||_t(e,c)){if(_&&v(void 0),r||B(e,c)&&h!==m.first||_t(e,c)&&h!==m.last){let t=B(e,c)?-1:1,n=h;do n=(n+t+f.length)%f.length;while(!Ea(f[n]));g(n)}}else if(vt(e)){let e=f[h];e&&!K.isSeparator(e)&&(e.disabled?v(s.i18n.disabledError):(v(void 0),p(f.map((e,t)=>t===h?Oa(e):e))))}else if(e.name===o.all){let e=f.some(e=>Ta(e)&&!e.checked);p(f.map(ka(e)))}else if(e.name===o.invert)p(f.map(Oa));else if(bt(e)){let t=Number(e.name)-1,n=-1,r=f.findIndex(e=>!K.isSeparator(e)&&(n++,n===t)),i=f[r];i&&Ta(i)&&(g(r),p(f.map((e,t)=>t===r?Oa(e):e)))}});let y=s.style.message(e.message,l),b,x=En({items:f,active:h,renderItem({item:e,isActive:t}){if(K.isSeparator(e))return` ${e.separator}`;let n=t?s.icon.cursor:` `;if(e.disabled){let t=typeof e.disabled==`string`?e.disabled:`(disabled)`,r=e.checked?s.icon.disabledChecked:s.icon.disabledUnchecked;return s.style.disabled(`${n}${r} ${e.name} ${t}`)}t&&(b=e.description);let r=e.checked?s.icon.checked:s.icon.unchecked,i=e.checked?e.checkedName:e.name;return(t?s.style.highlight:e=>e)(`${n}${r} ${i}`)},pageSize:n,loop:r});if(l===`done`){let e=f.filter(Da);return[d,y,s.style.answer(s.style.renderSelectedChoices(e,f))].filter(Boolean).join(` `)}let S=[[`↑↓`,`navigate`],[`space`,`select`]];o.all&&S.push([o.all,`all`]),o.invert&&S.push([o.invert,`invert`]),S.push([`⏎`,`submit`]);let ee=s.style.keysHelpTip(S);return`${[[d,y].filter(Boolean).join(` `),x,` `,b?s.style.description(b):``,_?s.style.error(_):``,ee].filter(Boolean).join(`
|
|
331
|
-
`).trimEnd()}${Vn}`});const Ma={icon:{cursor:U.pointer},style:{disabled:e=>z(`dim`,e),description:e=>z(`cyan`,e),keysHelpTip:e=>e.map(([e,t])=>`${z(`bold`,e)} ${z(`dim`,t)}`).join(z(`dim`,` • `))},i18n:{disabledError:`This option is disabled and cannot be selected.`},indexMode:`hidden`};function Na(e){return!K.isSeparator(e)&&!e.disabled}function Pa(e){return!K.isSeparator(e)}function Fa(e){return e.map(e=>{if(K.isSeparator(e))return e;if(typeof e!=`object`||!e||!(`value`in e)){let t=String(e);return{value:e,name:t,short:t,disabled:!1}}let t=e.name??String(e.value),n={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(n.description=e.description),n})}var Ia=Qn((e,t)=>{let{loop:n=!0,pageSize:r=7}=e,i=qt(Ma,e.theme),{keybindings:a}=i,[o,s]=H(`idle`),c=Jt({status:o,theme:i}),l=Xt(),u=!a.includes(`vim`),d=Yt(()=>Fa(e.choices),[e.choices]),f=Yt(()=>{let e=d.findIndex(Pa),t=d.findLastIndex(Pa);if(e===-1)throw new Et(`[select prompt] No selectable choices. All choices are disabled.`);return{first:e,last:t}},[d]),p=Yt(()=>`default`in e?d.findIndex(t=>Na(t)&&t.value===e.default):-1,[e.default,d]),[m,h]=H(p===-1?f.first:p),g=d[m];if(g==null||K.isSeparator(g))throw Error(`Active index does not point to a choice`);let[_,v]=H();Zt((e,r)=>{if(clearTimeout(l.current),_&&v(void 0),xt(e))g.disabled?v(i.i18n.disabledError):(s(`done`),t(g.value));else if(B(e,a)||_t(e,a)){if(r.clearLine(0),n||B(e,a)&&m!==f.first||_t(e,a)&&m!==f.last){let t=B(e,a)?-1:1,n=m;do n=(n+t+d.length)%d.length;while(!Pa(d[n]));h(n)}}else if(bt(e)&&!Number.isNaN(Number(r.line))){let e=Number(r.line)-1,t=-1,n=d.findIndex(n=>!K.isSeparator(n)&&(t++,t===e)),i=d[n];i!=null&&Na(i)&&h(n),l.current=setTimeout(()=>{r.clearLine(0)},700)}else if(yt(e))r.clearLine(0);else if(u){let e=r.line.toLowerCase(),t=d.findIndex(t=>K.isSeparator(t)||!Na(t)?!1:t.name.toLowerCase().startsWith(e));t!==-1&&h(t),l.current=setTimeout(()=>{r.clearLine(0)},700)}}),It(()=>()=>{clearTimeout(l.current)},[]);let y=i.style.message(e.message,o),b=i.style.keysHelpTip([[`↑↓`,`navigate`],[`⏎`,`select`]]),x=0,S=En({items:d,active:m,renderItem({item:e,isActive:t,index:n}){if(K.isSeparator(e))return x++,` ${e.separator}`;let r=t?i.icon.cursor:` `,a=i.indexMode===`number`?`${n+1-x}. `:``;if(e.disabled){let n=typeof e.disabled==`string`?e.disabled:`(disabled)`,r=t?i.icon.cursor:`-`;return i.style.disabled(`${r} ${a}${e.name} ${n}`)}return(t?i.style.highlight:e=>e)(`${r} ${a}${e.name}`)},pageSize:r,loop:n});if(o===`done`)return[c,y,i.style.answer(g.short)].filter(Boolean).join(` `);let{description:ee}=g;return`${[[c,y].filter(Boolean).join(` `),S,` `,ee?i.style.description(ee):``,_?i.style.error(_):``,b].filter(Boolean).join(`
|
|
332
|
-
`).trimEnd()}${Vn}`});const La=`${$r}-dev`;function Ra(e){return e.startsWith($r)}function za(e){if(typeof e!=`object`||!e)return!1;let t=e;if(t.command!==`ok-pi-managed-extension`||!Array.isArray(t.args))return!1;let n=t.args[0];return typeof n==`string`&&Ra(n)}function Ba(e){return{command:`ok-pi-managed-extension`,args:[e]}}function Va(e={}){let t=e.mode===`dev`?La:ei,n={unix:Z({...e,platformName:`darwin`}),win32:Z({...e,platformName:`win32`})};return`${t}
|
|
333
|
-
/**
|
|
334
|
-
* Open Knowledge bridge for Pi — MANAGED FILE, written by \`ok init\`.
|
|
335
|
-
* Hand edits are overwritten whenever OK re-syncs this project; remove it
|
|
336
|
-
* with \`ok deinit\` (or delete the file) to disconnect Pi from OK.
|
|
337
|
-
*
|
|
338
|
-
* On session start it spawns Open Knowledge's MCP stdio server via OK's
|
|
339
|
-
* resilient launcher (bundle, then npx, then version-manager probes), performs
|
|
340
|
-
* the MCP handshake, and registers each MCP tool as a Pi tool under an
|
|
341
|
-
* \`ok_\` prefix (Pi has no MCP namespacing; the prefix keeps OK's \`edit\` /
|
|
342
|
-
* \`write\` from shadowing Pi's built-in tools).
|
|
343
|
-
*/
|
|
344
|
-
import { spawn } from "node:child_process";
|
|
345
|
-
import type { ChildProcessWithoutNullStreams } from "node:child_process";
|
|
346
|
-
|
|
347
|
-
const LAUNCHERS = ${JSON.stringify(n,null,2)} as const;
|
|
348
|
-
|
|
349
|
-
const TOOL_PREFIX = "ok_";
|
|
350
|
-
// First contact may cold-install the CLI through npx — allow a generous window.
|
|
351
|
-
const INIT_TIMEOUT_MS = 120000;
|
|
352
|
-
const STDERR_TAIL_LIMIT = 2000;
|
|
353
|
-
|
|
354
|
-
interface McpContentItem {
|
|
355
|
-
type: string;
|
|
356
|
-
text?: string;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
interface McpToolInfo {
|
|
360
|
-
name: string;
|
|
361
|
-
description?: string;
|
|
362
|
-
inputSchema?: Record<string, unknown>;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
interface PendingRequest {
|
|
366
|
-
resolve: (value: Record<string, unknown>) => void;
|
|
367
|
-
reject: (err: Error) => void;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
class OkMcpClient {
|
|
371
|
-
private child: ChildProcessWithoutNullStreams;
|
|
372
|
-
private pending = new Map<number, PendingRequest>();
|
|
373
|
-
private nextId = 1;
|
|
374
|
-
private buffer = "";
|
|
375
|
-
private stderrTail = "";
|
|
376
|
-
alive = true;
|
|
377
|
-
|
|
378
|
-
constructor(cwd: string, onExit: () => void) {
|
|
379
|
-
const launcher = process.platform === "win32" ? LAUNCHERS.win32 : LAUNCHERS.unix;
|
|
380
|
-
const env: Record<string, string | undefined> = { ...process.env };
|
|
381
|
-
const launcherEnv = (launcher as { env?: Record<string, string> }).env;
|
|
382
|
-
if (launcherEnv) Object.assign(env, launcherEnv);
|
|
383
|
-
this.child = spawn(launcher.command, [...launcher.args], {
|
|
384
|
-
cwd,
|
|
385
|
-
env,
|
|
386
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
387
|
-
// Inline (not the withHiddenWindowsConsole helper): this spawn lives in the
|
|
388
|
-
// GENERATED Pi extension source, which must stay dependency-free (Pi loads
|
|
389
|
-
// it with jiti; no npm packages resolve). Hide the console on Windows anyway.
|
|
390
|
-
windowsHide: true,
|
|
391
|
-
});
|
|
392
|
-
this.child.stdout.setEncoding("utf8");
|
|
393
|
-
this.child.stdout.on("data", (chunk: string) => this.onStdout(chunk));
|
|
394
|
-
this.child.stderr.setEncoding("utf8");
|
|
395
|
-
this.child.stderr.on("data", (chunk: string) => {
|
|
396
|
-
this.stderrTail = (this.stderrTail + chunk).slice(-STDERR_TAIL_LIMIT);
|
|
397
|
-
});
|
|
398
|
-
// A write buffered before the pipe breaks surfaces as an 'error' on stdin
|
|
399
|
-
// (not on the child); unhandled it would crash Pi's extension host.
|
|
400
|
-
// Swallow it — the exit handler owns teardown.
|
|
401
|
-
this.child.stdin.on("error", () => {});
|
|
402
|
-
const fail = () => {
|
|
403
|
-
if (!this.alive) return;
|
|
404
|
-
this.alive = false;
|
|
405
|
-
const err = new Error(
|
|
406
|
-
"Open Knowledge MCP server exited" +
|
|
407
|
-
(this.stderrTail ? ": " + this.stderrTail.trim() : ""),
|
|
408
|
-
);
|
|
409
|
-
for (const p of this.pending.values()) p.reject(err);
|
|
410
|
-
this.pending.clear();
|
|
411
|
-
onExit();
|
|
412
|
-
};
|
|
413
|
-
this.child.on("exit", fail);
|
|
414
|
-
this.child.on("error", fail);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
private onStdout(chunk: string): void {
|
|
418
|
-
this.buffer += chunk;
|
|
419
|
-
let newline = this.buffer.indexOf("\\n");
|
|
420
|
-
while (newline !== -1) {
|
|
421
|
-
const line = this.buffer.slice(0, newline).trim();
|
|
422
|
-
this.buffer = this.buffer.slice(newline + 1);
|
|
423
|
-
if (line.startsWith("{")) {
|
|
424
|
-
try {
|
|
425
|
-
this.onMessage(JSON.parse(line) as Record<string, unknown>);
|
|
426
|
-
} catch {
|
|
427
|
-
// Non-JSON noise on stdout is ignored; framing recovers on the next line.
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
newline = this.buffer.indexOf("\\n");
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
private onMessage(msg: Record<string, unknown>): void {
|
|
435
|
-
const id = msg.id;
|
|
436
|
-
if (typeof msg.method === "string") {
|
|
437
|
-
// Server-initiated request (e.g. roots/list). This bridge declares no
|
|
438
|
-
// client capabilities, so decline rather than leave the server hanging.
|
|
439
|
-
if (id !== undefined && id !== null) {
|
|
440
|
-
this.send({
|
|
441
|
-
jsonrpc: "2.0",
|
|
442
|
-
id,
|
|
443
|
-
error: { code: -32601, message: "Method not supported by the OK Pi bridge" },
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (typeof id !== "number") return;
|
|
449
|
-
const pending = this.pending.get(id);
|
|
450
|
-
if (!pending) return;
|
|
451
|
-
this.pending.delete(id);
|
|
452
|
-
const error = msg.error as { message?: string } | undefined;
|
|
453
|
-
if (error) {
|
|
454
|
-
pending.reject(new Error(error.message || "Open Knowledge MCP error"));
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
pending.resolve((msg.result ?? {}) as Record<string, unknown>);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
private send(msg: Record<string, unknown>): void {
|
|
461
|
-
// Buffered stdout can still dispatch onMessage replies after close() ends
|
|
462
|
-
// stdin; writing then would raise ERR_STREAM_WRITE_AFTER_END unhandled.
|
|
463
|
-
if (!this.alive) return;
|
|
464
|
-
this.child.stdin.write(JSON.stringify(msg) + "\\n");
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
request(
|
|
468
|
-
method: string,
|
|
469
|
-
params: Record<string, unknown>,
|
|
470
|
-
opts: { timeoutMs?: number; signal?: AbortSignal } = {},
|
|
471
|
-
): Promise<Record<string, unknown>> {
|
|
472
|
-
if (!this.alive) return Promise.reject(new Error("Open Knowledge MCP server is not running"));
|
|
473
|
-
const id = this.nextId++;
|
|
474
|
-
return new Promise<Record<string, unknown>>((resolve, reject) => {
|
|
475
|
-
let timer: ReturnType<typeof setTimeout> | undefined;
|
|
476
|
-
let onAbort: (() => void) | undefined;
|
|
477
|
-
const cleanup = () => {
|
|
478
|
-
if (timer !== undefined) clearTimeout(timer);
|
|
479
|
-
if (onAbort && opts.signal) opts.signal.removeEventListener("abort", onAbort);
|
|
480
|
-
this.pending.delete(id);
|
|
481
|
-
};
|
|
482
|
-
const done: PendingRequest = {
|
|
483
|
-
resolve: (value) => {
|
|
484
|
-
cleanup();
|
|
485
|
-
resolve(value);
|
|
486
|
-
},
|
|
487
|
-
reject: (err) => {
|
|
488
|
-
cleanup();
|
|
489
|
-
reject(err);
|
|
490
|
-
},
|
|
491
|
-
};
|
|
492
|
-
this.pending.set(id, done);
|
|
493
|
-
if (opts.timeoutMs) {
|
|
494
|
-
timer = setTimeout(() => {
|
|
495
|
-
done.reject(new Error(method + " timed out after " + opts.timeoutMs + "ms"));
|
|
496
|
-
}, opts.timeoutMs);
|
|
497
|
-
}
|
|
498
|
-
if (opts.signal) {
|
|
499
|
-
onAbort = () => {
|
|
500
|
-
this.notify("notifications/cancelled", { requestId: id, reason: "aborted" });
|
|
501
|
-
done.reject(new Error("Cancelled"));
|
|
502
|
-
};
|
|
503
|
-
if (opts.signal.aborted) {
|
|
504
|
-
onAbort();
|
|
505
|
-
return;
|
|
506
|
-
}
|
|
507
|
-
opts.signal.addEventListener("abort", onAbort, { once: true });
|
|
508
|
-
}
|
|
509
|
-
this.send({ jsonrpc: "2.0", id, method, params });
|
|
510
|
-
});
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
notify(method: string, params: Record<string, unknown>): void {
|
|
514
|
-
if (!this.alive) return;
|
|
515
|
-
this.send({ jsonrpc: "2.0", method, params });
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
close(): void {
|
|
519
|
-
this.alive = false;
|
|
520
|
-
for (const p of this.pending.values()) {
|
|
521
|
-
p.reject(new Error("Open Knowledge MCP client closed"));
|
|
522
|
-
}
|
|
523
|
-
this.pending.clear();
|
|
524
|
-
// ok mcp exits on stdin EOF; the delayed kill is a backstop.
|
|
525
|
-
try {
|
|
526
|
-
this.child.stdin.end();
|
|
527
|
-
} catch {
|
|
528
|
-
// Already gone.
|
|
529
|
-
}
|
|
530
|
-
const child = this.child;
|
|
531
|
-
setTimeout(() => {
|
|
532
|
-
try {
|
|
533
|
-
child.kill();
|
|
534
|
-
} catch {
|
|
535
|
-
// Already gone.
|
|
536
|
-
}
|
|
537
|
-
}, 2000).unref();
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/** JSON Schema pass-through: Pi validates plain JSON Schema parameters. */
|
|
542
|
-
function toParameters(inputSchema: Record<string, unknown> | undefined): Record<string, unknown> {
|
|
543
|
-
if (!inputSchema || typeof inputSchema !== "object") {
|
|
544
|
-
return { type: "object", properties: {} };
|
|
545
|
-
}
|
|
546
|
-
const schema = { ...inputSchema };
|
|
547
|
-
delete schema.$schema;
|
|
548
|
-
return schema;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
function contentText(content: unknown): string {
|
|
552
|
-
if (!Array.isArray(content)) return "";
|
|
553
|
-
return (content as McpContentItem[])
|
|
554
|
-
.filter((item) => item && item.type === "text" && typeof item.text === "string")
|
|
555
|
-
.map((item) => item.text as string)
|
|
556
|
-
.join("\\n");
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export default function okBridge(pi: {
|
|
560
|
-
on(event: string, handler: (event: unknown, ctx: unknown) => unknown): void;
|
|
561
|
-
registerTool(definition: Record<string, unknown>): void;
|
|
562
|
-
}) {
|
|
563
|
-
let client: OkMcpClient | null = null;
|
|
564
|
-
let starting: Promise<OkMcpClient> | null = null;
|
|
565
|
-
let sessionCwd = process.cwd();
|
|
566
|
-
const registeredTools = new Set<string>();
|
|
567
|
-
|
|
568
|
-
async function ensureClient(): Promise<OkMcpClient> {
|
|
569
|
-
if (client && client.alive) return client;
|
|
570
|
-
if (starting) return starting;
|
|
571
|
-
starting = (async () => {
|
|
572
|
-
const next = new OkMcpClient(sessionCwd, () => {
|
|
573
|
-
if (client === next) client = null;
|
|
574
|
-
});
|
|
575
|
-
try {
|
|
576
|
-
await next.request(
|
|
577
|
-
"initialize",
|
|
578
|
-
{
|
|
579
|
-
protocolVersion: "2025-06-18",
|
|
580
|
-
capabilities: {},
|
|
581
|
-
clientInfo: { name: "pi", version: "1.0.0" },
|
|
582
|
-
},
|
|
583
|
-
{ timeoutMs: INIT_TIMEOUT_MS },
|
|
584
|
-
);
|
|
585
|
-
} catch (err) {
|
|
586
|
-
// A timed-out initialize rejects the request while the child may
|
|
587
|
-
// still be running; tear it down so retries don't stack orphans.
|
|
588
|
-
next.close();
|
|
589
|
-
throw err;
|
|
590
|
-
}
|
|
591
|
-
next.notify("notifications/initialized", {});
|
|
592
|
-
client = next;
|
|
593
|
-
return next;
|
|
594
|
-
})();
|
|
595
|
-
try {
|
|
596
|
-
return await starting;
|
|
597
|
-
} finally {
|
|
598
|
-
starting = null;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
async function registerOkTools(): Promise<number> {
|
|
603
|
-
const mcp = await ensureClient();
|
|
604
|
-
const listed = await mcp.request("tools/list", {}, { timeoutMs: INIT_TIMEOUT_MS });
|
|
605
|
-
const tools = Array.isArray(listed.tools) ? (listed.tools as McpToolInfo[]) : [];
|
|
606
|
-
for (const tool of tools) {
|
|
607
|
-
const name = TOOL_PREFIX + tool.name;
|
|
608
|
-
if (registeredTools.has(name)) continue;
|
|
609
|
-
registeredTools.add(name);
|
|
610
|
-
pi.registerTool({
|
|
611
|
-
name,
|
|
612
|
-
label: "OK " + tool.name,
|
|
613
|
-
description: tool.description || "Open Knowledge " + tool.name + " tool.",
|
|
614
|
-
parameters: toParameters(tool.inputSchema),
|
|
615
|
-
execute: async (
|
|
616
|
-
_toolCallId: string,
|
|
617
|
-
params: Record<string, unknown>,
|
|
618
|
-
signal: AbortSignal | undefined,
|
|
619
|
-
) => {
|
|
620
|
-
const live = await ensureClient();
|
|
621
|
-
const result = await live.request(
|
|
622
|
-
"tools/call",
|
|
623
|
-
{ name: tool.name, arguments: params ?? {} },
|
|
624
|
-
{ signal },
|
|
625
|
-
);
|
|
626
|
-
const text = contentText(result.content);
|
|
627
|
-
if (result.isError) {
|
|
628
|
-
throw new Error(text || "Open Knowledge tool " + tool.name + " failed");
|
|
629
|
-
}
|
|
630
|
-
return {
|
|
631
|
-
content: [{ type: "text", text }],
|
|
632
|
-
details: result.structuredContent,
|
|
633
|
-
};
|
|
634
|
-
},
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
return tools.length;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
pi.on("session_start", async (_event, ctx) => {
|
|
641
|
-
const cwd = (ctx as { cwd?: string } | undefined)?.cwd;
|
|
642
|
-
if (typeof cwd === "string" && cwd.length > 0) sessionCwd = cwd;
|
|
643
|
-
try {
|
|
644
|
-
await registerOkTools();
|
|
645
|
-
} catch (err) {
|
|
646
|
-
const ui = (ctx as { ui?: { notify?: (m: string, level: string) => void } } | undefined)?.ui;
|
|
647
|
-
try {
|
|
648
|
-
ui?.notify?.(
|
|
649
|
-
"Open Knowledge tools unavailable: " + (err instanceof Error ? err.message : String(err)),
|
|
650
|
-
"warning",
|
|
651
|
-
);
|
|
652
|
-
} catch {
|
|
653
|
-
// Non-interactive mode; the failure will resurface on first tool use.
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
|
|
658
|
-
pi.on("session_shutdown", async () => {
|
|
659
|
-
const pending = starting;
|
|
660
|
-
starting = null;
|
|
661
|
-
const current = client;
|
|
662
|
-
client = null;
|
|
663
|
-
current?.close();
|
|
664
|
-
// An in-flight ensureClient would otherwise assign a live client after
|
|
665
|
-
// shutdown; await it and tear that one down too.
|
|
666
|
-
if (pending) {
|
|
667
|
-
try {
|
|
668
|
-
(await pending).close();
|
|
669
|
-
} catch {
|
|
670
|
-
// Initialization failed — its catch path already closed the client.
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
`}function Ha(e,t){let n=M(ce(t),ce(e));return n.length>0&&!n.startsWith(`..`)&&!Ne(n)}const Ua=e=>{try{let t=Ae(`git`,[`rev-parse`,`--show-toplevel`],Ce({cwd:e,encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`]})).trim();return t.length>0?t:null}catch{return null}};function Wa(e,t={}){let n=t.homeDir??R(),r=t.gitTopLevel??Ua,i=N(e),a;try{a=He(i)}catch{a=i}let o=a,s=0;for(;s<30&&o!==n&&o!==`/`&&o!==``;){if(xe(o))return{projectRoot:o,defaultContentDir:`.`,ancestorPromoted:o!==a,gitRootPromoted:!1};let e=A(o);if(e===o)break;o=e,s+=1}let c=r(a);return c!==null&&Ha(c,n)?c===a?{projectRoot:i,defaultContentDir:`.`,ancestorPromoted:!1,gitRootPromoted:!1}:{projectRoot:c,defaultContentDir:`.`,ancestorPromoted:!1,gitRootPromoted:!0}:{projectRoot:i,defaultContentDir:`.`,ancestorPromoted:!1,gitRootPromoted:!1}}function Ga(){let e=Pr();return e&&typeof e.resolveSymlinkWritePath==`function`?e:null}function Ka(e){let t=e,n=new Set;for(;;){let r;try{r=Re(t).isSymbolicLink()}catch(n){return n.code===`ENOENT`?{readPath:t,writePath:t}:{readPath:null,writePath:e}}if(!r)return{readPath:t,writePath:t};if(n.has(t))return{readPath:null,writePath:e};n.add(t);let i;try{i=Ve(t)}catch(t){return Y(`readlinkSync threw during symlink walk`,t),{readPath:null,writePath:e}}t=Ne(i)?i:j(A(t),i)}}let qa;function Ja(){return qa===void 0&&(qa=Ga()),qa}function Ya(e,t=Ja){let n=t();if(n)try{let t=n.resolveSymlinkWritePath(e);return{readPath:t.readPath??null,writePath:t.writePath}}catch(e){Y(`resolveSymlinkWritePath threw`,e)}return Ka(e)}const Xa={allowTrailingComma:!0,disallowComments:!1};function Za(e,t){return e.error===1&&e.offset===0&&t.charCodeAt(0)===65279}function Qa(e){let t=[],n=S(e,t,Xa);return t.some(t=>!Za(t,e))||n?.type!==`object`?null:n}function $a(e,t){let n=0;for(let r of e.children??[]){let e=r.children?.[0];e!==void 0&&Te(e)===t&&(n+=1)}return n}function eo(e,t){C(e,`${JSON.stringify(t,null,2)}\n`)}function to(e,t){let n=Or(t);C(e,n.endsWith(`
|
|
676
|
-
`)?n:`${n}\n`)}function no(e,t){let n=(0,kr.stringify)(t);C(e,n.endsWith(`
|
|
677
|
-
`)?n:`${n}\n`)}const ro=10485760;function io(e,t){if(e===t)return!0;if(Array.isArray(e)||Array.isArray(t))return!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length?!1:e.every((e,n)=>io(e,t[n]));if(k(e)&&k(t)){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>Object.hasOwn(t,n)&&io(e[n],t[n]))}return!1}function ao(e,t,n){return k(e)&&n.every(n=>io(e[n],t[n]))}function oo(e){for(let t of e.split(`
|
|
678
|
-
`)){let e=t.trimStart();if(e.length!==0&&e.length!==t.length)return t.charCodeAt(0)===9?{insertSpaces:!1,tabSize:1}:{insertSpaces:!0,tabSize:t.length-e.length}}return{insertSpaces:!0,tabSize:2}}function so(e,t,n){return t===void 0?[e,n]:[e,t,n]}function co(e,t,n,r){let i={[n]:r};return{[e]:t===void 0?i:{[t]:i}}}function lo(e,t,n){let r=e[t];return n===void 0?r:k(r)?r[n]:void 0}function uo(e,t,n,r,i,a=!1,o=!1){if(!I(e))return o?{kind:`unchanged`}:(eo(e,co(t,i,n,r)),{kind:`written`});let s;try{s=L(e,`utf-8`)}catch(e){return Y(`json config read failed`,e),{kind:`declined`,reason:va(e)}}if(s.trim()===``)return o?{kind:`unchanged`}:(eo(e,co(t,i,n,r)),{kind:`written`});if(Buffer.byteLength(s,`utf-8`)>ro)return{kind:`declined`,reason:`oversize`};let c=Qa(s);if(!c)return{kind:`declined`,reason:`unparseable`};if($a(c,t)>1)return{kind:`declined`,reason:`duplicate-container`};let l=lo(Te(c),t,i),u=k(l)?l[n]:void 0,d=u!==void 0,f=_i(r);if(d&&a?ii(u):d&&ao(u,r,f))return{kind:o?`unchanged`:`overwritten`};let p=s.charCodeAt(0)===65279,m=p?s.slice(1):s,h=m.includes(`\r
|
|
679
|
-
`)?`\r
|
|
680
|
-
`:`
|
|
681
|
-
`,g={...oo(m),eol:h},_=so(t,i,n),v=m;if(o)for(let e of d?vi(u,r):[]){let t=fe(v,[..._,e],void 0,{formattingOptions:g});v=x(v,t)}else if(d&&!a&&pi(u))for(let e of f){let t=fe(v,[..._,e],r[e],{formattingOptions:g});v=x(v,t)}else{let e=fe(v,_,r,{formattingOptions:g});v=x(v,e)}let y=`${p?``:``}${v}`;return y!==s&&C(e,y,{mode:Sa(e)}),o&&y===s?{kind:`unchanged`}:{kind:d?`overwritten`:`written`}}function fo(e,t,n,r,i,a=!1,o=!1){let s=``;if(I(t))try{s=L(t,`utf-8`)}catch(e){return Y(`toml config read failed`,e),{kind:`declined`,reason:va(e)}}let c=s.trim()===``;if(c&&o)return{kind:`unchanged`};if(e.backend===`fallback`)return c?(to(t,{[n]:{[r]:i}}),{kind:`written`}):{kind:`declined`,reason:`no-native-writer`};let l=s.charCodeAt(0)===65279,u=l?s.slice(1):s,d=xa(u),f=c||u.endsWith(`
|
|
682
|
-
`),p,m=!1;try{let t=po(e,u,n,r);if(o){let n=u;for(let a of t===void 0?[]:vi(t,i))n=e.removeEntryKey(n,r,a).text;p={text:n,existed:t!==void 0}}else{let n=mo(t,i,a);m=n.kind===`replace`;let o=m?e.removeEntry(u,r).text:u;if(n.kind===`merge`)for(let t of n.prune)o=e.removeEntryKey(o,r,t).text;p=e.upsertEntry(o,r,i)}}catch(e){return Y(`upsertEntry failed`,e),{kind:`declined`,reason:`unparseable`}}let h=p.text;f?h.endsWith(`
|
|
683
|
-
`)||(h=`${h}\n`):h=h.replace(/\n+$/,``),d&&(h=h.replace(/\r\n/g,`
|
|
684
|
-
`).replace(/\n/g,`\r
|
|
685
|
-
`));let g=`${l?``:``}${h}`;return g!==s&&C(t,g,{mode:Sa(t)}),o&&g===s?{kind:`unchanged`}:{kind:p.existed||m?`overwritten`:`written`}}function po(e,t,n,r){if(t.trim()===``)return;let i=e.parseToObject(t)[n],a=k(i)?i[r]:void 0;return k(a)?a:void 0}function mo(e,t,n){return e===void 0||ii(e)?{kind:`merge`,prune:[]}:n||!pi(e)?{kind:`replace`}:{kind:`merge`,prune:vi(e,t)}}function ho(e,t,n,r,i=!1,a=!1){let o=``;if(I(e))try{o=L(e,`utf-8`)}catch(e){return Y(`yaml config read failed`,e),{kind:`declined`,reason:va(e)}}if(o.trim()===``)return a?{kind:`unchanged`}:(no(e,{[t]:{[n]:r}}),{kind:`written`});if(Buffer.byteLength(o,`utf-8`)>ro)return{kind:`declined`,reason:`oversize`};let s=o.charCodeAt(0)===65279,c=s?o.slice(1):o,l=(0,kr.parseDocument)(c);if(l.errors.length>0)return{kind:`declined`,reason:`unparseable`};let u=[t,n],d=l.hasIn(u);l.hasIn([t])&&!(0,kr.isCollection)(l.getIn([t],!0))&&l.deleteIn([t]);let f=l.getIn(u,!0),p=d&&(0,kr.isCollection)(f)&&(i?ii(f.toJSON()):pi(f.toJSON()));if(a){if(d&&(0,kr.isCollection)(f))for(let e of vi(f.toJSON(),r))l.deleteIn([...u,e])}else if(p)for(let e of _i(r))r[e]===void 0?l.deleteIn([...u,e]):l.setIn([...u,e],l.createNode(r[e]));else l.setIn(u,l.createNode(r));let m=l.toString(),h=xa(c);c.endsWith(`
|
|
686
|
-
`)?m.endsWith(`
|
|
687
|
-
`)||(m=`${m}\n`):m=m.replace(/\n+$/,``),h&&(m=m.replace(/\r\n/g,`
|
|
688
|
-
`).replace(/\n/g,`\r
|
|
689
|
-
`));let g=`${s?``:``}${m}`;return g!==o&&C(e,g,{mode:Sa(e)}),a&&g===o?{kind:`unchanged`}:{kind:d?`overwritten`:`written`}}const go=e=>e!==`project`,_o=e=>e!==`user`;async function vo(){let e=await ja({message:`Where should the MCP server be configured?
|
|
690
|
-
`,required:!1,theme:{icon:{checked:`[x]`,unchecked:`[ ]`}},choices:[{name:`User-level (~/.claude.json, ~/.cursor/mcp.json, …)`,value:`user`,checked:!0},{name:`Project-level (.mcp.json, .cursor/mcp.json, …)`,value:`project`,checked:!0}]});return e.includes(`user`)&&e.includes(`project`)?`both`:e.includes(`user`)?`user`:e.includes(`project`)?`project`:null}async function yo(e){return e.mcp===!1?null:e.scope?e.scope:e.isTTY??process.stdout.isTTY?(e.promptFn??vo)():`both`}async function bo(e){return Ia({message:`How do you want to handle OpenKnowledge config files (.ok/, .mcp.json)?`,default:e,choices:[{name:`Share with my team (commit alongside content)`,value:`shared`,description:`OK config gets committed alongside your project content.`},{name:`Local only (keep out of git via .git/info/exclude)`,value:`local-only`,description:"OK config stays on this machine only; teammates do not see it. Safe escape hatch via `ok config-sharing share`."}]})}async function xo(e){if(e.sharing!==void 0)return e.sharing;let t=Ki(e.projectRoot)===`local-only`||e.freshProject===!0?`local-only`:`shared`;return e.isTTY??process.stdout.isTTY?(e.promptFn??bo)(t):t}var So=class extends Error{constructor(e){super(e),this.name=`ContentDirError`}};function Co(e){if(e===void 0||e===!0)return new Set(Se);if(e===!1)return new Set;let t=e.split(`,`).map(e=>e.trim()).filter(Boolean);return new Set(pe.filter(e=>t.includes(e)))}function wo(e,t,n){let r=N(n,e),i;try{i=We(r)}catch(e){let t=e.code;throw t===`ENOENT`?new So(`--content-dir path does not exist: ${r}`):new So(`--content-dir path is not accessible (${t??`unknown error`}): ${r}`)}if(!i.isDirectory())throw new So(`--content-dir must be a directory: ${r}`);let a=To(t),o=To(r),s=M(a,o);if(s.startsWith(`..`)||Ne(s))throw new So(`--content-dir must be inside the project root (${t}); got ${r}`);return s===``?`.`:s}function To(e){try{return He(e)}catch{return e}}const Eo=`open-knowledge-ui`;function Do(e,t,n){try{let r=e.detectPath?.(t,n)??A(e.configPath(t,n));return I(r)}catch{return!1}}function Oo(e,t,n){try{let r=N(A(e.configPath(t,n))),i=N(e.detectPath?.(t,n)??r);return i===r||r.startsWith(i+P)}catch{return!1}}function ko(e,t,n,r,i){let a=e.serverName(t),o;try{o=i??e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:a,error:t instanceof Error?t.message:String(t)}}let s=n.pruneOnly===!0;if(s&&(e.format===`file`||!I(o)))return{editorId:e.id,label:e.label,action:`skipped-flag`,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}};let c=!n.skipAvailabilityCheck||e.offerOnlyWhenDetected===!0||Oo(e,t,r);if(!i&&c&&!Do(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:o,serverName:a};if(i!==void 0)try{aa(o,t)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),configScope:`project`}}if(e.format===`file`)return jo(e,o,a,n,{isProjectScope:i!==void 0});let l;try{l=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}try{s||ze(A(o),{recursive:!0})}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:t instanceof Error?t.message:String(t),...i===void 0?{}:{configScope:`project`}}}let u={action:`written`},d;try{oe(`${o}.lock`,()=>{let t=Ya(o).writePath;if(s||ze(A(t),{recursive:!0}),e.format===`toml`){let r=fo(Hr(),t,e.topLevelKey,a,l,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason);return}if(e.format===`yaml`){let r=ho(t,e.topLevelKey,a,l,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason);return}let r=uo(t,e.topLevelKey,a,l,e.serverMapSubKey,n.replaceEntry===!0,n.pruneOnly===!0);u.action=r.kind,r.kind===`declined`&&(u.declineReason=r.reason)},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){d=e instanceof Error?e:Error(String(e))}return d?{editorId:e.id,label:e.label,action:`failed`,configPath:o,serverName:a,error:d.message,...i===void 0?{}:{configScope:`project`}}:u.action===`declined`?{editorId:e.id,label:e.label,action:`declined`,configPath:o,serverName:a,declineReason:u.declineReason,...i===void 0?{}:{configScope:`project`}}:{editorId:e.id,label:e.label,action:u.action===`unchanged`?`skipped-flag`:u.action,configPath:o,serverName:a,...i===void 0?{}:{configScope:`project`}}}const Ao={pi:Va};function jo(e,t,n,r,i){let a=i.isProjectScope?{configScope:`project`}:{},o=r=>({editorId:e.id,label:e.label,action:`failed`,configPath:t,serverName:n,error:r instanceof Error?r.message:String(r),...a}),s=Ao[e.id];if(!s)return o(Error(`No managed-file builder registered for editor "${e.id}" (format: 'file' targets need a MANAGED_FILE_BUILDERS entry).`));let c;try{c=s(r)}catch(e){return o(e)}try{ze(A(t),{recursive:!0})}catch(e){return o(e)}let l={action:`written`};try{oe(`${t}.lock`,()=>{let e=null;try{e=L(t,`utf-8`)}catch{e=null}if(e===c){l.action=`overwritten`;return}C(t,c,e===null?void 0:{mode:Sa(t)}),l.action=e===null?`written`:`overwritten`},{onWarn:(e,t)=>process.stderr.write(`[ok] ${e} ${JSON.stringify(t)}\n`)})}catch(e){return o(e)}return{editorId:e.id,label:e.label,action:l.action,configPath:t,serverName:n,...a}}function Mo(e,t){let n=e.projectConfigPath?.(t);if(!(!n||!I(n)))return{editorId:e.id,label:e.label,path:n}}async function No(e){let t=zi(e.editors).filter(e=>e.scope===`global`),n={mode:`published`,skipAvailabilityCheck:!0,...e.replaceEntry===!0?{replaceEntry:!0}:{},...e.pruneOnly===!0?{pruneOnly:!0}:{}};return t.map(t=>ko(t,``,n,e.home))}function Po(e,t,n,r){let i=Io(e,t,n,r);return i.kind===`present`?i.entry:null}function Fo(e,t,n,r){let i=lo(e,t,r);if(!k(i))return{kind:`no-entry`};let a=i[n];return k(a)?{kind:`present`,entry:a}:{kind:`no-entry`}}function Io(e,t,n,r){let i;try{i=r??e.configPath(t,n)}catch{return{kind:`absent`}}if(!I(i))return{kind:`absent`};try{if(We(i).size>ro)return{kind:`decline`,reason:`oversize`}}catch(e){return{kind:`decline`,reason:va(e)}}let a;try{a=L(i,`utf-8`)}catch(e){return{kind:`decline`,reason:va(e)}}if(a.trim()===``)return{kind:`absent`};if(e.format===`file`)return{kind:`present`,entry:Ba(a)};let o=e.serverName(t);if(e.format===`toml`){let t;try{t=Hr().parseToObject(a)}catch{return{kind:`decline`,reason:`unparseable`}}return Fo(t,e.topLevelKey,o,e.serverMapSubKey)}if(e.format===`yaml`){let t=(0,kr.parseDocument)(a.charCodeAt(0)===65279?a.slice(1):a);return t.errors.length>0?{kind:`decline`,reason:`unparseable`}:Fo(t.toJS()??{},e.topLevelKey,o,e.serverMapSubKey)}let s=Qa(a);return s?$a(s,e.topLevelKey)>1?{kind:`decline`,reason:`duplicate-container`}:Fo(Te(s),e.topLevelKey,o,e.serverMapSubKey):{kind:`decline`,reason:`unparseable`}}async function Lo(e={}){let t=N(e.cwd??process.cwd()),n=Wa(t,{homeDir:e.home}),r=n.projectRoot;if(te(r,e.home??R()))throw new re(r);let i=!I(j(r,`.ok`)),a=n.gitRootPromoted?M(r,t):void 0,o=e.contentDir===void 0?n.defaultContentDir:wo(e.contentDir,r,t);n.ancestorPromoted?console.log(`[ok] Opened existing project at ${r}`):n.gitRootPromoted&&i&&o===`.`&&process.stderr.write(`${D(`[ok] Content scope promoted to the git repo root: ${r}`)}\n Ran in ${a}/, but .ok/ lives at the git root (one .ok/ per git repo),\n so the whole repo is now the content scope. To narrow it, re-run with\n \`ok init --content-dir .\`, or set content.dir: ${a} in .ok/config.yml.\n`);let c={mode:e.devMcp?`dev`:`published`},l=await ne(r),u;try{u=de(r,{contentDir:o})}catch(t){let i=$.claude.configPath(r,e.home);return{projectRoot:r,contentCreated:[],contentUpdated:[],contentSkipped:[],editors:[],projectSkills:[],legacyProjectConfigs:[],didGitInit:l.didInit,rootGitignoreCreated:!1,gitRootPromoted:n.gitRootPromoted,promotedFromDir:a,contentDirRequested:e.contentDir,contentScaffoldFailed:!0,mcpAction:`failed`,mcpPath:i,mcpError:`Content scaffolding failed: ${t instanceof Error?t.message:String(t)}`,sharing:{kind:`no-exclude`,reason:`no-git`,localOnlyRequested:!1}}}let d=u.created.includes(De),f=!1;if(l.didInit)try{f=_e(r)===`created`}catch(e){console.warn(`[ok] Skipping .gitignore seed at ${r}: ${e instanceof Error?e.message:String(e)}`)}try{be(r)===`removed`&&console.warn(`[ok] Removed the OpenKnowledge project-skill lines from .gitignore. The skill is ordinary project content now — commit it if your team wants it on clone.`)}catch(e){console.warn(`[ok] Skipping project-skill .gitignore cleanup at ${r}: ${e instanceof Error?e.message:String(e)}`)}let p=await yo({scope:e.scope,mcp:e.mcp,isTTY:e.isTTY,promptFn:e.promptFn}),m=e.editors??Uo(r,e.home),h=e.editors??m,g=zi(m),_=zi(h),v=e.mcp===!1||p===null,y=Array.from(new Map([...g,...v?[]:_].map(e=>[e.id,e])).values()),b=g.filter(t=>Do(t,r,e.home)),x=[],S=[],ee=new Set;for(let t of y){if(v){let n=``;try{n=t.configPath(r,e.home)}catch{}x.push({editorId:t.id,label:t.label,action:`skipped-flag`,configPath:n,serverName:t.serverName(r)});continue}if(go(p)&&g.includes(t)&&t.scope===`global`&&x.push(ko(t,r,c,e.home)),_o(p)&&_.includes(t)&&t.projectConfigPath){let n=t.projectConfigPath(r),i=ko(t,r,c,e.home,n);x.push(i),(i.action===`written`||i.action===`overwritten`)&&ee.add(n)}}let ae=new Set;for(let t of _){let n=t.projectSkillPath?.(r);!n||ae.has(n)||(ae.add(n),S.push(ga(t,r,{home:e.home})))}let oe=ha(r,_.map(e=>e.id));oe&&S.push(oe);let ce=S.filter(e=>e.action===`written`||e.action===`overwritten`).map(e=>e.editorId);if(ce.length>0){let t=e.home??R();ie({source:s,skills:[ye.project],agents:ce,scope:r},{home:t,enabled:ve(t).enabled})}let le=!v&&p!==null&&_o(p)?_.filter(e=>!e.projectConfigPath&&!e.projectSkillPath).map(e=>e.label):void 0,fe=v?[]:b.map(e=>Mo(e,r)).filter(e=>e!==void 0).filter(e=>!ee.has(e.path)),me=e.installUserSkill??se,he=e.home??R(),ge=Co(e.skills),C=!1,xe=!1,Se=!1,Ce=!1,Te=!1;for(let t of pe){if(!ge.has(t))continue;await we(he,ye[t],!0).catch(()=>{}),C=!0;let n=await me({home:e.home,bundleId:t,force:!0});n===`installed`?xe=!0:n===`failed`?Se=!0:n===`no-hosts`?Te=!0:Ce=!0}let w=Se?`failed`:xe?`installed`:C&&Ce?`skip-current`:C&&Te?`no-hosts`:`declined`,T=xe?ue(he).map(e=>e.editorId):[],E=v?`skipped-flag`:`skipped-missing`,Ee=x.find(e=>e.editorId===`claude`)??x[0]??{action:E,configPath:$.claude.configPath(r,e.home)},O=await Ro({projectRoot:r,desiredMode:await xo({sharing:e.sharing,projectRoot:r,isTTY:e.isTTY,freshProject:i,promptFn:e.sharingPromptFn}),explicitFlag:e.sharing});return{projectRoot:r,contentCreated:u.created,contentUpdated:u.updated,contentSkipped:u.skipped,editors:x,projectSkills:S,legacyProjectConfigs:fe,skillInstall:w,skillHosts:T,didGitInit:l.didInit,rootGitignoreCreated:f,gitRootPromoted:n.gitRootPromoted,promotedFromDir:a,contentDir:d?o:void 0,contentDirRequested:e.contentDir,contentScaffoldFailed:!1,mcpAction:Ee.action,mcpPath:Ee.configPath,mcpError:`error`in Ee?Ee.error:void 0,projectScopeUnsupportedLabels:le,sharing:O}}async function Ro(e){let{projectRoot:t,desiredMode:n,explicitFlag:r}=e,i=Ki(t);if(i===`no-git`)return{kind:`no-exclude`,reason:`no-git`,localOnlyRequested:r===`local-only`};let a=Hi(t);if(n===`local-only`){let e=Wi(t,a);if(e.kind===`refused-tracked`){let t=e;return{kind:`refused-tracked`,tracked:t.tracked,remediation:t.remediation}}return e.kind===`no-exclude`?{kind:`no-exclude`,reason:e.reason,localOnlyRequested:r===`local-only`}:zo(t,e,`add`)}if(i===`shared`)return{kind:`applied`,mode:`shared`,action:`noop`,appended:[],alreadyPresent:[],removed:[]};let o=Gi(t,a);return o.kind===`no-exclude`?{kind:`no-exclude`,reason:o.reason,localOnlyRequested:!1}:zo(t,o,`remove`)}function zo(e,t,n){let r=Ki(e);return n===`add`?{kind:`applied`,mode:r,action:t.appended.length>0?`added`:t.removed.length>0?`cleaned`:`noop`,appended:t.appended,alreadyPresent:t.alreadyPresent,removed:t.removed}:{kind:`applied`,mode:r,action:`removed`,appended:[],alreadyPresent:[],removed:t.removed}}function Bo(e){switch(e){case`permission-denied`:return`permission denied; check file and parent-directory permissions`;case`unresolved-symlink`:return`could not resolve the path or symlink; check permissions and symlink cycles`;case`not-a-file`:return`config path is not a regular file`;case`disappeared`:return`config disappeared while being read; retry to check its current state`;case`unreadable`:return`could not read the config file; check that the path is accessible`;case`unparseable`:return`config could not be parsed`;case`oversize`:return`config too large to edit safely`;case`duplicate-container`:return`duplicate server block`;case`no-native-writer`:return`no format-preserving writer available`;case void 0:return`config not readable`;default:throw Error(`unhandled MCP decline reason: ${e}`)}}function Vo(e,t){let n=[],r=e.editors.some(e=>e.action===`written`||e.action===`overwritten`),i=e.editors.some(e=>e.action===`failed`)||e.projectSkills.some(e=>e.action===`failed`),a=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-flag`),o=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-missing`);e.didGitInit&&n.push(`Initialized git repo at ${t}/.git/ (default branch: main)`),e.rootGitignoreCreated&&n.push(`Seeded .gitignore at ${t}/.gitignore (.DS_Store)`);let s=j(t,`.ok`);if(e.contentCreated.length>0||e.contentUpdated.length>0?(n.push(O(`Content scaffolded at ${s}/`)),e.contentCreated.length>0&&n.push(` Created: ${e.contentCreated.join(`, `)}`),e.contentUpdated.length>0&&n.push(` Updated: ${e.contentUpdated.join(`, `)}`)):n.push(O(`Content already present at ${s}/`)),e.contentSkipped.length>0&&n.push(` Skipped (already exist): ${e.contentSkipped.join(`, `)}`),n.push(``),e.mcpError&&e.editors.length===0)n.push(`Warning: ${e.mcpError}`);else if(e.editors.length===0){if(n.push(O(`MCP server configuration:`)),e.mcpAction===`skipped-flag`)n.push(` MCP config not written — use without --no-mcp to configure editors`);else if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}else n.push(` No supported editor config directories detected; skipped MCP registration`)}else if(a)n.push(`MCP config not written — use without --no-mcp to configure editors`);else if(o)n.push(O(`MCP server configuration:`)),n.push(` No supported editor config directories detected; skipped MCP registration`);else{n.push(O(`MCP server configuration:`));for(let r of e.editors){let e=r.configPath.startsWith(t)?M(t,r.configPath):r.configPath.replace(/^\/Users\/[^/]+/,`~`),i=r.serverName===`open-knowledge`?``:` (${r.serverName})`,a=r.configScope===`project`?` (project)`:``,o=`${r.label}${a}`,s=` `.repeat(Math.max(1,20-o.length)),c=r.editorId===`claude-desktop`&&(r.action===`written`||r.action===`overwritten`)?` — quit and relaunch Claude Desktop to activate`:``;switch(r.action){case`written`:n.push(` ${o}${s}${e} ${E(`registered`)}${i}${c}`);break;case`overwritten`:n.push(` ${o}${s}${e} ${E(`updated`)}${i}${c}`);break;case`skipped-missing`:n.push(` ${o}${s}${e} config root missing; skipped`);break;case`failed`:n.push(` ${o}${s}${e} ${Ee(`FAILED`)}: ${r.error}`);break;case`declined`:n.push(` ${o}${s}${e} left unchanged (${Bo(r.declineReason)})`);break;case`skipped-flag`:break;default:r.action}}if(e.projectScopeUnsupportedLabels&&e.projectScopeUnsupportedLabels.length>0){let t=e.projectScopeUnsupportedLabels.join(`, `),r=e.projectScopeUnsupportedLabels.length===1?`does`:`do`;n.push(` ${t} ${r} not support project-level config; skipped`)}}if(e.projectSkills.length>0){n.push(``),n.push(O(`Project-local skills:`));for(let r of e.projectSkills){let e=`${r.label} (project)`,i=` `.repeat(Math.max(1,20-e.length)),a=r.path?M(t,r.path):``;switch(r.action){case`written`:n.push(` ${e}${i}${a} ${E(`installed`)}`);break;case`overwritten`:n.push(` ${e}${i}${a} ${E(`updated`)}`);break;case`skipped-unsupported`:n.push(` ${e}${i}no known project skill surface; skipped`);break;case`skipped-prerequisite`:n.push(` ${e}${i}OpenKnowledge MCP is not configured; skipped`);break;case`failed`:n.push(` ${e}${i}${a} ${Ee(`FAILED`)}: ${r.error}`)}}}if(i&&(n.push(``),n.push(`For failed editors, add the MCP server entry or project skill manually. See:`),n.push(` https://github.com/inkeep/open-knowledge#mcp-setup`)),e.legacyProjectConfigs.length>0){n.push(``),n.push(`Project MCP configs found:`);for(let r of e.legacyProjectConfigs)n.push(` ${r.label} ${M(t,r.path)}`);n.push(` These project-local files may override the global config. Remove them if you want fully user-scoped MCP setup in this project.`)}if(e.skillInstall)switch(n.push(``),n.push(O(`User-global skill:`)),e.skillInstall){case`installed`:{let t=(e.skillHosts??[]).map(e=>X[e]??e),r=t.length>0?t.join(`, `):`the shared ~/.agents store`;n.push(` open-knowledge ${E(`installed for ${r}`)}`),n.push(` ${T(`Counted on skills.sh (skill name + source repo, once per machine).`)}`),n.push(` ${T(`Opt out: DO_NOT_TRACK=1, or Settings → User → Preferences.`)}`);break}case`skip-current`:n.push(` open-knowledge ${E(`already installed at current version`)}`);break;case`declined`:n.push(` open-knowledge ${T(`skipped for this run (--no-skills)`)}`),n.push(` ${T(`Nothing was installed or removed. Any built-in skills already on this`)}`),n.push(` ${T(`machine are untouched. Run init without the flag to install them:`)}`),n.push(` ${T(` ok init`)}`);break;case`no-hosts`:n.push(` open-knowledge ${T(`skipped — no supported agent host detected in your home directory`)}`);break;case`failed`:n.push(` ${D(`open-knowledge install failed — MCP still configured; retry with:`)}`),n.push(` ${D(` ok repair-skills`)}`)}if(e.contentDirRequested!==void 0&&e.contentDir===void 0&&!e.contentScaffoldFailed?(n.push(``),n.push(D(`⚠ --content-dir ${e.contentDirRequested} ignored — .ok/config.yml already exists`)),n.push(` Edit .ok/config.yml → content.dir directly to change the content scope.`)):e.contentDir!==void 0&&e.contentDir!==`.`?(n.push(``),n.push(`Content scope set to ${e.contentDir}/ (content.dir in .ok/config.yml).`)):e.gitRootPromoted&&e.contentDir===`.`&&e.contentDirRequested===void 0&&(n.push(``),n.push(D(`⚠ Content scope promoted to the git repo root`)),n.push(` .ok/ was initialized at ${t} because it contains a .git folder (one .ok/ per git repo),`),n.push(` not the sub-folder you ran \`ok init\` in${e.promotedFromDir?` (${e.promotedFromDir})`:``}. The whole repo is now the content scope.`),e.promotedFromDir&&(n.push(" To scope to just that sub-folder, re-run `ok init --content-dir .` from there, or set"),n.push(` content.dir: ${e.promotedFromDir} in .ok/config.yml.`))),e.preview?(n.push(``),n.push(Oe(e.preview,t))):e.previewWarning&&(n.push(``),n.push(`Content preview unavailable: ${e.previewWarning}`)),n.push(``),n.push(...Ko(e.sharing,t)),r){let t=new Set,r=e.editors.filter(e=>e.action===`written`||e.action===`overwritten`).filter(e=>!t.has(e.editorId)&&t.add(e.editorId)).map(e=>e.label);n.push(``),n.push(`${E(`✓`)} ${O(`Next steps:`)}`),n.push(` 1. Open your editor (${w(r.join(` / `))})`),n.push(` 2. Approve the MCP server when prompted`),n.push(` 3. (Optional) scaffold the starter knowledge-base structure:`),n.push(` - ${w(`ok seed --list-packs`)} — browse the starter packs`),n.push(` - ${w(`ok seed`)} — scaffold an empty repo`),n.push(` 4. Ask your agent to capture a source, research a topic, or build a wiki —`),n.push(` the procedures ship as skills alongside the MCP tools.`)}return n.join(`
|
|
691
|
-
`)}function Ho(e,t){return{projectRoot:e.projectRoot,gitRootPromoted:e.gitRootPromoted,promotedFromDir:e.promotedFromDir??null,contentDir:t.contentDir,contentDirRequested:e.contentDirRequested??null,contentDirApplied:e.contentDir!==void 0,contentFileCount:t.contentFileCount,previewError:e.previewWarning??null,didGitInit:e.didGitInit,mcpAction:e.mcpAction,editors:e.editors.map(e=>({editorId:e.editorId,label:e.label,action:e.action,configPath:e.configPath,scope:e.configScope===`project`?`project`:`user`}))}}function Uo(e,t){let n=[];for(let r of Wr)r!==`claude-desktop`&&Do($[r],e,t)&&n.push(r);return n}function Wo(){let e={log:console.log,info:console.info,debug:console.debug},t=(...e)=>{process.stderr.write(`${e.map(e=>typeof e==`string`?e:Ke(e)).join(` `)}\n`)};return console.log=t,console.info=t,console.debug=t,()=>{console.log=e.log,console.info=e.info,console.debug=e.debug}}function Go(){return new ut(`init`).description(`Scaffold .ok/ in the current directory and register the MCP server for your editor(s)`).option(`--mcp`,`Register the MCP server for selected editors (default: true)`,!0).option(`--no-mcp`,`Scaffold the .ok/ directory but do not touch MCP config`).option(`--dev-mcp`,`Register a local dev MCP entry using node + packages/cli/dist/cli.mjs with debug logging`).option(`--content-dir <dir>`,`Limit content to <dir> instead of the whole project. <dir> is interpreted relative to your current directory (e.g. "." = the folder you run the command in), then saved to .ok/config.yml as content.dir.`).option(`--json`,`Emit a structured JSON summary to stdout (diagnostics stay on stderr)`).option(`--skills <ids>`,`Install only the named user-global skill bundles (comma list: discovery,write-skill)`).option(`--no-skills`,`Do not install any user-global skill bundles`).addOption(new ft(`--scope <scope>`,`Write MCP config at user level, project level, or both`).choices([`user`,`project`,`both`])).addOption(new ft(`--shared`,`Commit OK config alongside content (the default for fresh repos)`).conflicts(`localOnly`)).addOption(new ft(`--local-only`,`Keep OK config out of git via .git/info/exclude (per-clone, not committed)`).conflicts(`shared`)).action(async e=>{let t=process.cwd(),n=e.shared?`shared`:e.localOnly?`local-only`:void 0,r=e.json?Wo():null;try{let r;try{r=await Lo({cwd:t,mcp:e.mcp,devMcp:e.devMcp,scope:e.scope,sharing:n,contentDir:e.contentDir,skills:e.skills})}catch(e){if(e instanceof So||e instanceof re){process.stderr.write(`${e.message}\n`),process.exitCode=64;return}if(e instanceof ae||e instanceof le){process.stderr.write(`${e.message}\n`),process.exitCode=78;return}if(e instanceof ge){process.stderr.write(`open-knowledge could not initialize a git repo for this project. Re-run, or run 'git init' yourself in the project folder.
|
|
692
|
-
`),e.stderr&&process.stderr.write(`${e.stderr.trim()}\n`),process.exitCode=1;return}throw e}let i=r.contentDir??`.`,a=null,{loadConfig:o}=await import(`./loader-asslhshx.mjs`),{resolveContentDir:s}=await import(`./dist-CI2v4o_0.mjs`),c;try{c=o(r.projectRoot).config,i=c.content.dir}catch(e){r.previewWarning=e instanceof Error?e.message:String(e)}if(c)try{let{previewContent:e}=await import(`./preview-DRbZ1DMt.mjs`),t=s(c,r.projectRoot);r.preview=e({projectDir:r.projectRoot,contentDir:t}),a=r.preview.totalCount}catch(e){r.previewWarning=e instanceof Error?e.message:String(e)}e.json?process.stdout.write(`${JSON.stringify(Ho(r,{contentDir:i,contentFileCount:a}),null,2)}\n`):process.stdout.write(`${Vo(r,r.projectRoot)}\n`),(r.editors.some(e=>e.action===`failed`)||r.mcpAction===`failed`)&&(process.exitCode=1)}finally{r?.()}})}function Ko(e,t){let n=[];switch(e.kind){case`applied`:return n.push(O(`Sharing mode:`)),e.mode===`local-only`?e.action===`added`?(n.push(` ${E(`local-only`)} — appended ${e.appended.length} path(s) to ${O(`${t}/.git/info/exclude`)} (per-clone, not committed).`),e.removed.length>0&&n.push(` cleared ${e.removed.length} stale entry(s) left by an older version: ${e.removed.join(`, `)}.`)):e.action===`cleaned`?n.push(` ${E(`local-only`)} — already excluded; cleared ${e.removed.length} stale entry(s) left by an older version: ${e.removed.join(`, `)}.`):e.action===`noop`&&e.alreadyPresent.length>0?n.push(` ${E(`local-only`)} — already excluded; nothing to do.`):n.push(` ${E(`local-only`)}`):e.action===`removed`?n.push(` ${E(`shared`)} — removed OK paths from ${O(`${t}/.git/info/exclude`)}; commit the files to share with teammates.`):n.push(` ${E(`shared`)} — OK config will be committed alongside content.`),n;case`refused-tracked`:n.push(D(`Sharing mode: switch to local-only deferred`));for(let t of e.remediation.split(`
|
|
693
|
-
`))n.push(t.length>0?` ${t}`:``);return n.push(` Re-run ${w(`ok config-sharing unshare`)} after resolving to complete the switch.`),n;case`no-exclude`:if(e.localOnlyRequested)n.push(D(`Sharing mode: --local-only requested but no git repo found — option ignored`)),n.push(` Run ${w(`git init`)} (or open this folder via OK Desktop, which can scaffold a repo) and then ${w(`ok config-sharing unshare`)}.`);else if(e.reason===`no-git`)return[];else n.push(D(`Sharing mode unavailable: ${e.reason}.`));return n}}export{vi as $,Ca as A,Qi as B,Wa as C,ct as Ct,ja as D,Ia as E,oa as F,Ki as G,Ui as H,_a as I,X as J,Gi as K,la as L,va as M,ca as N,Sa as O,aa as P,yi as Q,ga as R,Ya as S,ut as St,za as T,Hi as U,qi as V,Ji as W,Gr as X,$ as Y,Z,Lo as _,Zt as _t,Ho as a,Q as at,No as b,H as bt,Vo as c,ci as ct,Do as d,Y as dt,bi as et,Po as f,Mr as ft,xo as g,Vn as gt,wo as h,Qn as ht,Ro as i,Si as it,ya as j,xa as k,Ko as l,Ur as lt,yo as m,Pr as mt,Eo as n,ti as nt,Io as o,Ci as ot,Co as p,jr as pt,Wr as q,Ao as r,ii as rt,Uo as s,Pi as st,So as t,xi as tt,Go as u,Hr as ut,so as v,Jt as vt,Va as w,ft as wt,Oo as x,xt,ko as y,qt as yt,Wi as z};
|