@inkeep/open-knowledge 0.0.0-dev-20260427210233 → 0.0.0-dev-20260427212952
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/alias-JE7RI5QX-TirEebNy.mjs +1 -0
- package/dist/awk2-POPGKRAI-DigGXYmO.mjs +1 -0
- package/dist/banner-BxI1wnW9.mjs +3 -0
- package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +1 -0
- package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +1 -0
- package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +1 -0
- package/dist/build-D4l8tfO0.mjs +2 -0
- package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +1 -0
- package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +1 -0
- package/dist/{chokidar-DhL3M6Oj.mjs → chokidar-CblsKfnx.mjs} +3 -3
- package/dist/chunk-24IMIIXA-Bz7rlZT3.mjs +2 -0
- package/dist/chunk-3THT3N7L-klp8GP84.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-C93H8j0V.mjs +2 -0
- package/dist/chunk-44UOCSGV-BUBpWxXm.mjs +2 -0
- package/dist/chunk-4GTNDTRF-_OVmXcJ-.mjs +8 -0
- package/dist/chunk-4HHKTUW3-Dm69hDaZ.mjs +3 -0
- package/dist/chunk-4Q4SM6WR-DDQRsilN.mjs +5 -0
- package/dist/chunk-55VFSPNA-DVZfQAzN.mjs +3 -0
- package/dist/chunk-5QMZ5MUS-DWTkM0vM.mjs +5 -0
- package/dist/chunk-5QVNJEHU-BvsipSFW.mjs +9 -0
- package/dist/chunk-5V6VZH6T-BCr5_GDF.mjs +2 -0
- package/dist/chunk-62RKD26F-D-luOa0m.mjs +21 -0
- package/dist/chunk-64BAICW3-CTJNEx4Q.mjs +2 -0
- package/dist/chunk-74CEPOFO-D1bzz49u.mjs +23 -0
- package/dist/chunk-7L36YK2X-RiPZFKaV.mjs +3 -0
- package/dist/chunk-7TSDKFEO-a-GUGBTu.mjs +2 -0
- package/dist/chunk-A4HU7SVR-hefV_YmW.mjs +3 -0
- package/dist/chunk-A4JSPFCI-U-xWmMMC.mjs +7 -0
- package/dist/chunk-A5O5YHGN-C7BVq0eF.mjs +2 -0
- package/dist/chunk-A65PWWJC-D7J5l9eq.mjs +3 -0
- package/dist/chunk-A7A2DBEE-PLfkXLI4.mjs +7 -0
- package/dist/chunk-A7ICOL4V-Drb3XsEL.mjs +14 -0
- package/dist/chunk-ALLTKNUZ-BMiTDN50.mjs +6 -0
- package/dist/chunk-APT7OOP2-CXHnSuct.mjs +2 -0
- package/dist/chunk-BBXLRYSX-DURjrblE.mjs +6 -0
- package/dist/chunk-BRGMQKJV-CdrkqzRA.mjs +63 -0
- package/dist/chunk-CR5AFCPT-ROmyDFrB.mjs +24 -0
- package/dist/chunk-CWQS3NFK-DFdwmFxJ.mjs +2 -0
- package/dist/chunk-D4J545R4-C8nMOauR.mjs +12 -0
- package/dist/chunk-D6CWQ5DW-B-J4LN9N.mjs +6 -0
- package/dist/chunk-D7MEQ3VN-Csvth_Ss.mjs +5 -0
- package/dist/chunk-DCAAORBQ-BdrR5ttw.mjs +2 -0
- package/dist/chunk-DXB73IDG-C774okS0.mjs +2 -0
- package/dist/chunk-EEXR5ZDP-C5AJH114.mjs +3 -0
- package/dist/chunk-EIZGF4BS-8bsVXqW0.mjs +9 -0
- package/dist/chunk-F23WWYKW-DST0dB7V.mjs +17 -0
- package/dist/chunk-F55TLFGB-DqkrAMO5.mjs +10 -0
- package/dist/chunk-FEIOJCZD-C4x0A4rb.mjs +75 -0
- package/dist/chunk-GCTKCWKD-Deqi1D_N.mjs +4 -0
- package/dist/chunk-GFQRA5P5-1fzItQ8F.mjs +8 -0
- package/dist/chunk-GOV5EKKI-PN17n-Z0.mjs +10 -0
- package/dist/chunk-GXVXFKBA-993FoPmq.mjs +6 -0
- package/dist/chunk-HDQ56CKY-pGV4pOJA.mjs +16 -0
- package/dist/chunk-HJQJAYMS-Ci3vsKQW.mjs +3 -0
- package/dist/chunk-HJWBQKYG-UZig4wUt.mjs +6 -0
- package/dist/chunk-HWBSOZZR-Dikp87Ww.mjs +37 -0
- package/dist/chunk-HWKDQ44K-CPSjqtR_.mjs +4 -0
- package/dist/chunk-I57KEIP3-B1DoH8rp.mjs +11 -0
- package/dist/chunk-IPJHKYVM-BbWncVr2.mjs +2 -0
- package/dist/chunk-J642UCRS-DB77Y2Wt.mjs +2 -0
- package/dist/chunk-JVPRLUMK-DnQCNjpq.mjs +8 -0
- package/dist/chunk-KMEYNNUA-DfdK88O_.mjs +16 -0
- package/dist/chunk-LL3S3NLB-DxXgE3kY.mjs +2 -0
- package/dist/chunk-LPQPILI2-BXfU9TgM.mjs +12 -0
- package/dist/chunk-LTZRCH7N-GAjTFNwG.mjs +32 -0
- package/dist/chunk-LWEGUNWT-BALY4RLC.mjs +8 -0
- package/dist/chunk-MDDMCKUK-D6GWoJsI.mjs +7 -0
- package/dist/chunk-MDLLFABN-oBQf6bGE.mjs +73 -0
- package/dist/chunk-MHTUABJP-dKmK6Hw7.mjs +9 -0
- package/dist/chunk-MIZPJHVH-z-geAni9.mjs +8 -0
- package/dist/chunk-MLXIYONF-DB-C8Hx8.mjs +16 -0
- package/dist/chunk-MYE6AGBJ-B4pRo9ma.mjs +17 -0
- package/dist/chunk-NAERJDUW-CX0lf-xx.mjs +9 -0
- package/dist/chunk-NCNPKYJZ-BFGan4lR.mjs +3 -0
- package/dist/chunk-NUYSJFDK-D2NXm2ND.mjs +8 -0
- package/dist/chunk-NYQYO467-Degkom4D.mjs +33 -0
- package/dist/chunk-OARHFVLG-CY8D2Qov.mjs +21 -0
- package/dist/chunk-OCLXQMOG-BMsyLQhm.mjs +7 -0
- package/dist/chunk-OCS6LSEM-BHslttnj.mjs +14 -0
- package/dist/chunk-OJDRYQWQ-BV5MVRVg.mjs +2 -0
- package/dist/chunk-OL3S66CO-Bmgu4tW4.mjs +100 -0
- package/dist/chunk-PBXLG62G-lGjqkk78.mjs +9 -0
- package/dist/chunk-PP6PSHAB-DMC_XCfO.mjs +5 -0
- package/dist/chunk-PYSFUGCK-CY7pclEB.mjs +11 -0
- package/dist/chunk-QCDB2VPH-D1RuXtOm.mjs +7 -0
- package/dist/chunk-QJ7O6ZN3-BH67tCjg.mjs +6 -0
- package/dist/chunk-R6QSAL5T-CtbJTvt9.mjs +2 -0
- package/dist/chunk-R6VWJ2ZL-B0CcMPyK.mjs +2 -0
- package/dist/chunk-RPNGRAAP-BughPjdR.mjs +8 -0
- package/dist/chunk-SDNKECQQ-C3GEf3VZ.mjs +6 -0
- package/dist/chunk-SYMJJMQ4-CWTh95-4.mjs +22 -0
- package/dist/chunk-T56QNPHK-DlKQeuXU.mjs +15 -0
- package/dist/chunk-TLSUDHID-B8UnqY4U.mjs +7 -0
- package/dist/chunk-TOMNU26N-BcdbBQ2p.mjs +5 -0
- package/dist/chunk-TXBZCHCQ-l48TczF5.mjs +6 -0
- package/dist/chunk-UNYNJIFU-DwPQMz0F.mjs +140 -0
- package/dist/chunk-V7TAPXDL-CnKUp2df.mjs +28 -0
- package/dist/chunk-VJFXDYWH-IiUXkKX0.mjs +11 -0
- package/dist/chunk-VLGZJRPG-D4NVKJYL.mjs +17 -0
- package/dist/chunk-VOBGTVA6-BT7gUxqf.mjs +7 -0
- package/dist/chunk-VYOJP4TV-BvibOnKG.mjs +14 -0
- package/dist/chunk-WKFATFPP-DCZdrA8x.mjs +5 -0
- package/dist/chunk-X2AJGDEF-BaH6i1Rq.mjs +2 -0
- package/dist/chunk-XHM67O4N-Cg35xc6b.mjs +2 -0
- package/dist/chunk-XKQRETAK-cVWA9gEB.mjs +2 -0
- package/dist/chunk-XORM457F-CRToN1RQ.mjs +288 -0
- package/dist/chunk-XVDPCNWR-CtK-Xs2O.mjs +12 -0
- package/dist/chunk-YCFVLTST-Ox9Z0Nk6.mjs +13 -0
- package/dist/chunk-YFG2CMIF-Csgr05KV.mjs +5 -0
- package/dist/chunk-YNYSPYQ5-BpP11HXS.mjs +34 -0
- package/dist/chunk-YS3AZT3J-BEZxz_aQ.mjs +9 -0
- package/dist/chunk-YTNYSM6T-DuBR2-TM.mjs +12 -0
- package/dist/chunk-Z6LRHWXI-DbRghyzT.mjs +14 -0
- package/dist/chunk-Z7JVV2SM-BzR-yvwK.mjs +12 -0
- package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +1 -0
- package/dist/cli.mjs +798 -67
- package/dist/colors-BnZ-i-vb.mjs +1 -0
- package/dist/colors-DoPZvo1q.mjs +2 -0
- package/dist/column-WLPMMSTS-fFssyAvW.mjs +1 -0
- package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +1 -0
- package/dist/constants-DH4vHcob.mjs +2 -0
- package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +1 -0
- package/dist/curl-47BFPSFW-Kn_Na_aU.mjs +26 -0
- package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +1 -0
- package/dist/date-DD7FVA2V-DRxppxbV.mjs +1 -0
- package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +1 -0
- package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +1 -0
- package/dist/dist-BCyi1oM7.mjs +116 -0
- package/dist/{dist-mmLEboji.mjs → dist-BWvkug8h.mjs} +34 -50
- package/dist/dist-Bx5GgBdJ.mjs +1 -0
- package/dist/dist-DRC09WNZ.mjs +199 -0
- package/dist/dist-bundle-BSdjl7Rj.mjs +2 -0
- package/dist/dist-bundle-BmF5_Mcp.mjs +1 -0
- package/dist/du-WO2ENHXQ-B5uda2-L.mjs +1 -0
- package/dist/echo-O45JWWI2-B9QCpaZR.mjs +1 -0
- package/dist/env-5EPCWSXR--4eujSrM.mjs +1 -0
- package/dist/esm-29fM6BBO.mjs +20 -0
- package/dist/{esm-DcyORBXm.mjs → esm-BFkWzFey.mjs} +1 -1
- package/dist/{execAsync-CUVyYd50.mjs → execAsync-0jii24p9.mjs} +1 -1
- package/dist/{execAsync-DXwNXlSG.mjs → execAsync-Czqc-yAz.mjs} +1 -1
- package/dist/{execAsync-r1zz6x3t.mjs → execAsync-DgmLXmTx.mjs} +1 -1
- package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +1 -0
- package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +1 -0
- package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +1 -0
- package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +2 -0
- package/dist/fold-LDSORVYE-CAfX9d8n.mjs +1 -0
- package/dist/{getMachineId-bsd-BrpAo1fJ.mjs → getMachineId-bsd-C1M346yz.mjs} +2 -2
- package/dist/{getMachineId-bsd-DZHdCHYD.mjs → getMachineId-bsd-CPESl3L6.mjs} +2 -2
- package/dist/{getMachineId-bsd-o7HphUWK.mjs → getMachineId-bsd-DEUypOXJ.mjs} +2 -2
- package/dist/{getMachineId-darwin-3D3eRDVl.mjs → getMachineId-darwin-0hBTy7c8.mjs} +2 -2
- package/dist/{getMachineId-darwin-CsteOFjK.mjs → getMachineId-darwin-CJK3eX9q.mjs} +2 -2
- package/dist/{getMachineId-darwin-D-BjJUXV.mjs → getMachineId-darwin-Vupnt-kR.mjs} +2 -2
- package/dist/{getMachineId-linux-C-EpqTRh.mjs → getMachineId-linux-B2nkqMir.mjs} +2 -2
- package/dist/{getMachineId-linux-CceeieLZ.mjs → getMachineId-linux-BGQn48cN.mjs} +2 -2
- package/dist/{getMachineId-linux-BELE5feP.mjs → getMachineId-linux-CIp07XEX.mjs} +2 -2
- package/dist/{getMachineId-unsupported-CUPNvbj5.mjs → getMachineId-unsupported-BnsanXR2.mjs} +2 -2
- package/dist/{getMachineId-unsupported-CrmDv6SC.mjs → getMachineId-unsupported-CH1Q20xN.mjs} +2 -2
- package/dist/{getMachineId-unsupported-C9qPEPHy.mjs → getMachineId-unsupported-DfSmC7Gy.mjs} +2 -2
- package/dist/{getMachineId-win-AH3HxM3-.mjs → getMachineId-win-BmmB_8yL.mjs} +2 -2
- package/dist/{getMachineId-win-BHtOEO59.mjs → getMachineId-win-DlPRChXs.mjs} +2 -2
- package/dist/{getMachineId-win-CFHq48vo.mjs → getMachineId-win-JnMJbIaW.mjs} +2 -2
- package/dist/git-handle-BhGnmvTB-BMB_49Sb.mjs +10 -0
- package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +1 -0
- package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +1 -0
- package/dist/gzip-AQXSGOVS-CL228lzk.mjs +1 -0
- package/dist/head-HT2B6D2J-DyNkF3aY.mjs +1 -0
- package/dist/help-VVWX7SA5-D5WzpTIY.mjs +1 -0
- package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +1 -0
- package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +1 -0
- package/dist/index.d.mts +2118 -54
- package/dist/index.mjs +1 -1
- package/dist/init-B1Jey503.mjs +254 -0
- package/dist/{init-CsbZPgm9.mjs → init-CJoLGAY6.mjs} +6 -6
- package/dist/{init-BCFZ-B8u.mjs → init-DeCOeGug.mjs} +1 -1
- package/dist/init-DfA60Kno.mjs +1 -0
- package/dist/{is-object-CEU0BgQ5.mjs → is-object-BNVklKxg.mjs} +1 -1
- package/dist/join-GG2LDHE5-B6C3-ghI.mjs +1 -0
- package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +1 -0
- package/dist/js-exec-M6UR76J5-DSk5_wnx.mjs +97 -0
- package/dist/{keepalive-DCcA7pmC.mjs → keepalive-CZzB5k1h.mjs} +1 -1
- package/dist/lib-Dl2j2VNl.mjs +2 -0
- package/dist/libesm-DC4M2SkF.mjs +14 -0
- package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +1 -0
- package/dist/loader-BbrgX71w.mjs +3 -0
- package/dist/loader-BeLHSHPq.mjs +1 -0
- package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +1 -0
- package/dist/lzma-0LJzVZpl.mjs +2 -0
- package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +1 -0
- package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +1 -0
- package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +1 -0
- package/dist/od-VJEF2UR5-PasvdXXR.mjs +1 -0
- package/dist/{open-browser-ryHU9Kmc.mjs → open-browser-BzMQ6cLf.mjs} +1 -1
- package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +1 -0
- package/dist/paths-DNHrhtCs.mjs +1 -0
- package/dist/paths-DoecMW1f.mjs +2 -0
- package/dist/preview-BaIpXL9X.mjs +3 -0
- package/dist/preview-C9Bi4BlJ.mjs +1 -0
- package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +1 -0
- package/dist/public/assets/McpConsentDialogBody-LXYIBYv0.js +1 -0
- package/dist/public/assets/{index-L-2j8CET.js → index-BGLcTJSa.js} +2 -2
- package/dist/public/index.html +1 -1
- package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +1 -0
- package/dist/python3-AUFTPCU6-MeZyx8_A.mjs +12 -0
- package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +1 -0
- package/dist/rev-XOSYPP45-q2MQLs41.mjs +1 -0
- package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +1 -0
- package/dist/rm-RTZG23RL-fjvVauiI.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +1 -0
- package/dist/{rolldown-runtime-wcPFST8Q-DriDJLQM.mjs → rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs} +1 -1
- package/dist/sed-VFTTATXJ-DO49xc40.mjs +1 -0
- package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +1 -0
- package/dist/server-lock-CH0GCP_4-DXqutMlt.mjs +2 -0
- package/dist/server-lock-CH0GCP_4-MazZqjDk.mjs +1 -0
- package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +1 -0
- package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +1 -0
- package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +1 -0
- package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +1 -0
- package/dist/src-DFLNUNiQ.mjs +1 -0
- package/dist/start-Dbkt_qXk.mjs +2 -0
- package/dist/start-Dj5cU7Fg.mjs +1 -0
- package/dist/stat-BT5A227F-Dqepjl-k.mjs +1 -0
- package/dist/strings-7PLOGTPD-g6FhPS64.mjs +1 -0
- package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +1 -0
- package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +1 -0
- package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +1 -0
- package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +1 -0
- package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +1 -0
- package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +1 -0
- package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +1 -0
- package/dist/tr-2HXZRDSW-DrrobhxR.mjs +1 -0
- package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +1 -0
- package/dist/true-WHJNXCHG-BaLssNp9.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +1 -0
- package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +1 -0
- package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +1 -0
- package/dist/which-XZHEH76L-DxZJ58G5.mjs +1 -0
- package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +1 -0
- package/dist/{wrapper-DDHUdYtj.mjs → wrapper-BTT6637Z.mjs} +1 -1
- package/dist/xan-BXDXYEIB-_Vtao535.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +1 -0
- package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +1 -0
- package/dist/yq-MJMAR36V-pRBq87Ya.mjs +1 -0
- package/package.json +1 -1
- package/dist/banner-B9XXjTZc.mjs +0 -3
- package/dist/colors-CMt7h9Vn.mjs +0 -1
- package/dist/colors-Jf5QUiX2.mjs +0 -2
- package/dist/constants-DCYrT5Qy.mjs +0 -2
- package/dist/dist-B8mg-f6q.mjs +0 -1
- package/dist/dist-D4iyaPjq.mjs +0 -161
- package/dist/git-handle-BhGnmvTB-BLKTZ5Yk.mjs +0 -1
- package/dist/git-handle-BhGnmvTB-DnqwJBAv.mjs +0 -2
- package/dist/init-B61XMkrc.mjs +0 -5
- package/dist/init-CS5xVRRu.mjs +0 -1
- package/dist/loader-BpHan16x.mjs +0 -1
- package/dist/loader-DjYfoioW.mjs +0 -3
- package/dist/paths-CWuZnjHL.mjs +0 -1
- package/dist/paths-HVMMTnqB.mjs +0 -2
- package/dist/preview-D5D9OVCW.mjs +0 -1
- package/dist/preview-Lo1Amm1Z.mjs +0 -3
- package/dist/public/assets/McpConsentDialogBody-DgIeLbWq.js +0 -1
- package/dist/server-lock-CH0GCP_4-DCYOtKMW.mjs +0 -2
- package/dist/server-lock-CH0GCP_4-DHiJeSSV.mjs +0 -1
- package/dist/src-B08b0hiw.mjs +0 -1
- package/dist/start-BccdyuHF.mjs +0 -2
- package/dist/start-CsashZvR.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./git-handle-BhGnmvTB-DnqwJBAv.mjs";export{e as n};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-wcPFST8Q-DriDJLQM.mjs";import{resolve as t}from"node:path";import n from"simple-git";const r=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function i(e){return r.enqueue(e)}var a=e({createGitInstance:()=>o});function o(e,r={}){let{credentialArgs:i=[],gitIndexFile:a}=r,o={};return a&&(o.GIT_INDEX_FILE=t(e,a)),{git:n({baseDir:e,config:i.length>=2?[i[1]]:[],unsafe:{allowUnsafeCredentialHelper:!0}}).env(o),projectDir:e,credentialArgs:i}}export{a as n,i as r,o as t};
|
|
2
|
-
//# sourceMappingURL=git-handle-BhGnmvTB-DnqwJBAv.mjs.map
|
package/dist/init-B61XMkrc.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./constants-DCYrT5Qy.mjs";import{p as t}from"./dist-D4iyaPjq.mjs";import{K as n,_ as r,at as i,q as a}from"./dist-mmLEboji.mjs";import{n as o}from"./init-CsbZPgm9.mjs";import{t as s}from"./preview-Lo1Amm1Z.mjs";import{s as c,t as l}from"./colors-Jf5QUiX2.mjs";import{t as u}from"./is-object-CEU0BgQ5.mjs";import{Command as d}from"commander";import{existsSync as f,mkdirSync as p,readFileSync as m,writeFileSync as h}from"node:fs";import{homedir as g}from"node:os";import{basename as _,dirname as v,join as y,posix as b,relative as x,resolve as S,sep as C,win32 as w}from"node:path";import{parse as ee,stringify as te}from"smol-toml";const T=[`claude`,`claude-desktop`,`cursor`,`vscode`,`windsurf`,`codex`],ne=[`@inkeep/open-knowledge`,`mcp`],re={MCP_DEBUG:`1`,OK_LOG_FILE:`/tmp/ok-mcp.log`};function E(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=S(e);if(_(t)===`cli.mjs`&&_(v(t))===`dist`)return t;let n=t.split(C),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);return y(i.length===0?C:i.join(C),`packages`,`cli`,`dist`,`cli.mjs`)}function D(e={}){return e.cliPath?{command:e.cliPath,args:[`mcp`]}:e.mode===`dev`?{command:`node`,args:[E(e.cliEntryPath),`mcp`],env:{...re}}:{command:`npx`,args:[...ne]}}function O(e){return e===`win32`?w:b}function k(e={}){let t=e.platformName??process.platform,n=e.home??g(),r=e.env??process.env,i=O(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 A(e={}){let t=e.platformName??process.platform,n=e.home??g();return O(t).join(n,`.claude.json`)}function j(e={}){let t=e.platformName??process.platform,n=e.home??g(),r=e.env??process.env;if(t===`darwin`)return b.join(n,`Library`,`Application Support`,`Claude`,`claude_desktop_config.json`);if(t===`win32`){let e=r.APPDATA??w.join(n,`AppData`,`Roaming`);return w.join(e,`Claude`,`claude_desktop_config.json`)}throw Error(`Claude Desktop is not available on ${t}. Supported: macOS, Windows.`)}function M(e={}){let t=e.platformName??process.platform,n=e.home??g();return O(t).join(n,`.cursor`,`mcp.json`)}function N(e={}){return O(e.platformName??process.platform).join(k(e),`Code`,`User`,`mcp.json`)}function P(e={}){let t=e.platformName??process.platform,n=e.home??g();return O(t).join(n,`.codeium`,`windsurf`,`mcp_config.json`)}function F(e={}){let t=e.platformName??process.platform,n=e.home??g();return(e.env??process.env).CODEX_HOME??O(t).join(n,`.codex`)}function I(e={}){return O(e.platformName??process.platform).join(F(e),`config.toml`)}function L(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>L(e,t[n]));if(u(e)&&u(t)){let n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((e,t)=>e===r[t])&&n.every(n=>L(e[n],t[n]))}return!1}function R(e,t){return Object.entries(t).every(([t,n])=>L(e[t],n))}function ie(e,t){return{...e,...t}}function z(e){return{...e,isCompatible(t,n,r){return R(t,e.buildEntry(n,r))},mergeManagedFields(t,n,r){return ie(t,e.buildEntry(n,r))}}}const B={claude:z({id:`claude`,label:`Claude Code`,configPath:(e,t)=>A({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>D(t),scope:`global`,detectPath:(e,t)=>y(t??g(),`.claude`),legacyProjectConfigPath:e=>y(e,`.mcp.json`)}),"claude-desktop":z({id:`claude-desktop`,label:`Claude Desktop`,configPath:(e,t)=>j({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>D(t),scope:`global`,detectPath:(e,t)=>v(j({home:t}))}),cursor:z({id:`cursor`,label:`Cursor`,configPath:(e,t)=>M({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>D(t),scope:`global`,detectPath:(e,t)=>v(M({home:t})),legacyProjectConfigPath:e=>y(e,`.cursor`,`mcp.json`)}),vscode:z({id:`vscode`,label:`VS Code`,configPath:(e,t)=>N({home:t}),format:`json`,topLevelKey:`servers`,serverName:()=>e,buildEntry:(e,t)=>({type:`stdio`,...D(t)}),scope:`global`,detectPath:(e,t)=>v(N({home:t})),legacyProjectConfigPath:e=>y(e,`.vscode`,`mcp.json`)}),windsurf:z({id:`windsurf`,label:`Windsurf`,configPath:(e,t)=>P({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>D(t),scope:`global`,detectPath:(e,t)=>v(P({home:t}))}),codex:z({id:`codex`,label:`Codex`,configPath:(e,t)=>I({home:t}),format:`toml`,topLevelKey:`mcp_servers`,serverName:()=>e,buildEntry:(e,t)=>D(t),scope:`global`,detectPath:(e,t)=>v(I({home:t})),legacyProjectConfigPath:e=>y(e,`.codex`,`config.toml`)})};function V(e){let t=e.filter(e=>!(e in B));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${T.join(`, `)}`);return e.map(e=>B[e])}function H(e){if(!f(e))return{};let t=m(e,`utf-8`).trim();if(t===``)return{};try{let n=JSON.parse(t);if(u(n))return n;throw Error(`${e} root must be a JSON object`)}catch(t){throw t instanceof SyntaxError?Error(`${e} contains invalid JSON: ${t.message}`):t}}function U(e){if(!f(e))return{};let t=m(e,`utf-8`).trim();if(t===``)return{};try{let n=ee(t);if(u(n))return n;throw Error(`${e} root must be a TOML table`)}catch(t){throw Error(`${e} contains invalid TOML: ${t instanceof Error?t.message:String(t)}`)}}function W(e,t){p(v(e),{recursive:!0}),h(e,`${JSON.stringify(t,null,2)}\n`,`utf-8`)}function G(e,t){p(v(e),{recursive:!0});let n=te(t);h(e,n.endsWith(`
|
|
2
|
-
`)?n:`${n}\n`,`utf-8`)}const K=`0.0.1`,q=`open-knowledge-ui`;function J(e,t={}){let n=y(e,`.claude`,`launch.json`),r=t.mode===`dev`?{name:q,runtimeExecutable:`node`,runtimeArgs:[E(t.cliEntryPath),`ui`],port:3e3}:{name:q,runtimeExecutable:`npx`,runtimeArgs:[`@inkeep/open-knowledge`,`ui`],port:3e3};try{if(!f(n))return p(v(n),{recursive:!0}),h(n,`${JSON.stringify({version:K,configurations:[r]},null,2)}\n`,`utf-8`),{action:`created`,configPath:n};let e=m(n,`utf-8`).trim(),t=e?JSON.parse(e):{};if(!u(t))return{action:`failed`,configPath:n,error:`launch.json root is not an object`};let i=Array.isArray(t.configurations)?t.configurations:[],a=i.findIndex(e=>u(e)&&e.name===q);a>=0?i[a]=r:i.push(r);let o={...t,version:t.version??K,configurations:i};return h(n,`${JSON.stringify(o,null,2)}\n`,`utf-8`),{action:a>=0?`merged`:`created`,configPath:n}}catch(e){return{action:`failed`,configPath:n,error:e instanceof Error?e.message:String(e)}}}function Y(e,t,n){try{return f(e.detectPath?.(t,n)??v(e.configPath(t,n)))}catch{return!1}}function X(e,t,n,r){let i=e.serverName(t),a;try{a=e.configPath(t,r)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:``,serverName:i,error:t instanceof Error?t.message:String(t)}}if(!n.skipAvailabilityCheck&&!Y(e,t,r))return{editorId:e.id,label:e.label,action:`skipped-missing`,configPath:a,serverName:i};let o;try{o=e.format===`toml`?U(a):H(a)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:a,serverName:i,error:t instanceof Error?t.message:String(t)}}let s=o[e.topLevelKey]??{},c=s[i],l;try{l=e.buildEntry(t,n)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:a,serverName:i,error:t instanceof Error?t.message:String(t)}}let u={...o,[e.topLevelKey]:{...s,[i]:l}};try{e.format===`toml`?G(a,u):W(a,u)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:a,serverName:i,error:t instanceof Error?t.message:String(t)}}return{editorId:e.id,label:e.label,action:c===void 0?`written`:`overwritten`,configPath:a,serverName:i}}function ae(e,t){let n=e.legacyProjectConfigPath?.(t);if(!(!n||!f(n)))return{editorId:e.id,label:e.label,path:n}}async function oe(e){let t=V(e.editors),n={mode:`published`,cliPath:e.cliPath,skipAvailabilityCheck:!0};return t.map(t=>X(t,``,n,e.home))}function se(e,t,n){let r;try{r=e.configPath(t,n)}catch{return null}let i;try{i=e.format===`toml`?U(r):H(r)}catch{return null}let a=i[e.topLevelKey];if(!u(a))return null;let o=a[e.serverName(t)];return u(o)?o:null}async function Z(e={}){let t=S(e.cwd??process.cwd()),r={mode:e.devMcp?`dev`:`published`,cliEntryPath:e.cliEntryPath},s=await a(t),c;try{c=o(t)}catch(n){let r=B.claude.configPath(t,e.home);return{contentCreated:[],contentSkipped:[],editors:[],legacyProjectConfigs:[],didGitInit:s.didInit,claudeDesktopDetected:!1,mcpAction:`failed`,mcpPath:r,mcpError:`Content scaffolding failed: ${n instanceof Error?n.message:String(n)}`}}let l=V(e.editors??$(t,e.home)),u=l.filter(n=>Y(n,t,e.home)),d=[];for(let n of l){if(e.mcp===!1){let r=``;try{r=n.configPath(t,e.home)}catch{}d.push({editorId:n.id,label:n.label,action:`skipped-flag`,configPath:r,serverName:n.serverName(t)});continue}d.push(X(n,t,r,e.home))}let f=e.mcp===!1?[]:u.map(e=>ae(e,t)).filter(e=>e!==void 0),p=u.some(e=>e.id===`claude`)&&e.mcp!==!1?J(t,r):void 0,m=await(e.installUserSkill??i)({home:e.home}),h=n({home:e.home}),g=e.mcp===!1?`skipped-flag`:`skipped-missing`,_=d.find(e=>e.editorId===`claude`)??d[0]??{action:g,configPath:B.claude.configPath(t,e.home)};return{contentCreated:c.created,contentSkipped:c.skipped,editors:d,legacyProjectConfigs:f,launchJson:p,skillInstall:m,didGitInit:s.didInit,claudeDesktopDetected:h,mcpAction:_.action,mcpPath:_.configPath,mcpError:`error`in _?_.error:void 0}}function Q(e,n){let r=[],i=e.editors.some(e=>e.action===`written`||e.action===`overwritten`),a=e.editors.some(e=>e.action===`failed`),o=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-flag`),u=e.editors.length>0&&e.editors.every(e=>e.action===`skipped-missing`),d=e=>{let t=e.configPath.startsWith(n)?x(n,e.configPath):e.configPath;switch(e.action){case`created`:return` app preview server ${t} configured for Claude Code Desktop embedded browser`;case`merged`:return` app preview server ${t} updated for Claude Code Desktop embedded browser`;case`failed`:return` app preview server ${t} FAILED: ${e.error}`}};e.didGitInit&&r.push(`Initialized git repo at ${n}/.git/ (default branch: main)`);let f=y(n,t);if(e.contentCreated.length>0?(r.push(`Content scaffolded at ${f}/`),r.push(` Created: ${e.contentCreated.join(`, `)}`)):r.push(`Content already present at ${f}/`),e.contentSkipped.length>0&&r.push(` Skipped (already exist): ${e.contentSkipped.join(`, `)}`),r.push(``),e.mcpError&&e.editors.length===0)r.push(`Warning: ${e.mcpError}`);else if(e.editors.length===0)r.push(`MCP server configuration:`),r.push(e.mcpAction===`skipped-flag`?` MCP config not written — use without --no-mcp to configure editors`:` No supported editor config directories detected; skipped MCP registration`);else if(o)r.push(`MCP config not written — use without --no-mcp to configure editors`);else if(u)r.push(`MCP server configuration:`),r.push(` No supported editor config directories detected; skipped MCP registration`);else{r.push(`MCP server configuration:`);for(let t of e.editors){let i=t.configPath.startsWith(n)?x(n,t.configPath):t.configPath.replace(/^\/Users\/[^/]+/,`~`),a=t.serverName===`open-knowledge`?``:` (${t.serverName})`,o=` `.repeat(Math.max(1,14-t.label.length)),s=t.editorId===`claude-desktop`&&(t.action===`written`||t.action===`overwritten`)?` — quit and relaunch Claude Desktop to activate`:``;switch(t.action){case`written`:r.push(` ${t.label}${o}${i} registered${a}${s}`);break;case`overwritten`:r.push(` ${t.label}${o}${i} updated${a}${s}`);break;case`skipped-missing`:r.push(` ${t.label}${o}${i} config root missing; skipped`);break;case`failed`:r.push(` ${t.label}${o}${i} FAILED: ${t.error}`);break;case`skipped-flag`:break}t.editorId===`claude`&&e.launchJson&&r.push(d(e.launchJson))}}if(a&&(r.push(``),r.push(`For failed editors, add the MCP server entry manually. See:`),r.push(` https://github.com/inkeep/open-knowledge#mcp-setup`)),e.legacyProjectConfigs.length>0){r.push(``),r.push(`Legacy project MCP configs detected:`);for(let t of e.legacyProjectConfigs)r.push(` ${t.label} ${x(n,t.path)}`);r.push(` These project-local files may override the new global config. Remove them if you want fully user-scoped MCP setup in this project.`)}if(e.skillInstall)switch(r.push(``),r.push(`User-global skill:`),e.skillInstall){case`installed`:r.push(" open-knowledge installed to detected agent hosts via `npx skills`");break;case`skip-current`:r.push(` open-knowledge already installed at current version`);break;case`failed`:r.push(` ${c(`open-knowledge install failed — MCP still configured; run manually:`)}`),r.push(` ${c(` npx skills@~1.5.0 add <bundled-path> --agent '*' -g -y --copy`)}`);break}if(e.claudeDesktopDetected&&(r.push(``),r.push(`Claude Desktop App detected. To enable in Claude Chat & Cowork, run: ${l(`ok install-skill`)}`)),e.preview?(r.push(``),r.push(s(e.preview,n))):e.previewWarning&&(r.push(``),r.push(`Content preview unavailable: ${e.previewWarning}`)),i){let t=e.editors.filter(e=>e.action===`written`||e.action===`overwritten`).map(e=>e.label);r.push(``),r.push(`Next steps:`),r.push(` 1. Open your editor (${t.join(` / `)})`),r.push(` 2. Approve the MCP server when prompted`),r.push(` 3. (Optional) scaffold the starter knowledge-base structure:`),r.push(` - ok seed`),r.push(` 4. Use the three MCP workflow tools as you build the wiki:`),r.push(` - mcp__open-knowledge__ingest — capture an external source`),r.push(` - mcp__open-knowledge__research — gather sources and write findings`),r.push(` - mcp__open-knowledge__consolidate — promote research to canonical articles`)}return r.join(`
|
|
3
|
-
`)}function $(e,t){let n=[];for(let r of T)Y(B[r],e,t)&&n.push(r);return n}function ce(){return new d(`init`).description(`Scaffold ${t}/ 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 ${t}/ 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`).action(async e=>{let t=process.cwd(),n;try{n=await Z({cwd:t,mcp:e.mcp,devMcp:e.devMcp})}catch(e){if(e instanceof r){process.stderr.write(`open-knowledge requires git to initialize a parent repo. Install git or run 'git init' yourself, then re-run.
|
|
4
|
-
`),e.stderr&&process.stderr.write(`${e.stderr.trim()}\n`),process.exitCode=1;return}throw e}try{let{previewContent:e}=await import(`./preview-D5D9OVCW.mjs`),{loadConfig:r}=await import(`./loader-BpHan16x.mjs`),{resolveContentDir:i}=await import(`./paths-CWuZnjHL.mjs`),{config:a}=r(t),o=i(a,t);n.preview=e({projectDir:t,contentDir:o,include:a.content.include,exclude:a.content.exclude})}catch(e){n.previewWarning=e instanceof Error?e.message:String(e)}process.stdout.write(`${Q(n,t)}\n`),(n.editors.some(e=>e.action===`failed`)||n.mcpAction===`failed`)&&(process.exitCode=1)})}export{Z as a,T as c,se as i,B as l,Q as n,X as o,ce as r,oe as s,$ as t};
|
|
5
|
-
//# sourceMappingURL=init-B61XMkrc.mjs.map
|
package/dist/init-CS5xVRRu.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./init-CsbZPgm9.mjs";export{t as ensureOkGitignoredAtRoot,e as initContent};
|
package/dist/loader-BpHan16x.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./loader-DjYfoioW.mjs";export{e as loadConfig};
|
package/dist/loader-DjYfoioW.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./constants-DCYrT5Qy.mjs";import{p as t}from"./dist-D4iyaPjq.mjs";import{t as n}from"./is-object-CEU0BgQ5.mjs";import{existsSync as r,readFileSync as i}from"node:fs";import{homedir as a}from"node:os";import{resolve as o}from"node:path";import{parse as s}from"yaml";import{z as c}from"zod";import{realpath as l}from"node:fs/promises";async function u(e){let t=o(e);try{return await l(t)}catch(e){if(e.code!==`ENOENT`){let n=e instanceof Error?e.message:String(e);console.warn(`[normalize-cwd] realpath failed for ${t}: ${n}`)}return t}}const d=c.object({title:c.string().optional(),description:c.string().optional(),tags:c.array(c.string()).optional()}).strict(),f=c.object({match:c.string().min(1,"`match` must be a non-empty glob pattern (e.g. 'specs/**' or 'reports/*/**')"),frontmatter:d}).strict(),p=c.object({content:c.object({dir:c.string().default(`.`),include:c.array(c.string()).min(1).default([`**/*.md`,`**/*.mdx`]),exclude:c.array(c.string()).default([])}).default({dir:`.`,include:[`**/*.md`,`**/*.mdx`],exclude:[]}),github:c.object({oauthAppClientId:c.string().default(`Ov23liqlSd0V1MwR6rhI`)}).default({oauthAppClientId:`Ov23liqlSd0V1MwR6rhI`}),sync:c.object({enabled:c.boolean().optional(),pushIntervalSeconds:c.number().int().min(1).default(60),pullIntervalSeconds:c.number().int().min(1).default(30),autoCommit:c.boolean().default(!0),autoPush:c.boolean().default(!0),autoPull:c.boolean().default(!0),commitMessage:c.string().default(`auto`)}).default({pushIntervalSeconds:60,pullIntervalSeconds:30,autoCommit:!0,autoPush:!0,autoPull:!0,commitMessage:`auto`}),server:c.object({port:c.number().int().min(0).max(65535).default(0),host:c.string().regex(/^[\w.\-:]+$/,`Invalid hostname`).default(`localhost`),openOnAgentEdit:c.boolean().default(!1)}).default({port:0,host:`localhost`,openOnAgentEdit:!1}),persistence:c.object({debounceMs:c.number().int().min(0).default(2e3),maxDebounceMs:c.number().int().min(0).default(1e4)}).default({debounceMs:2e3,maxDebounceMs:1e4}),preview:c.object({baseUrl:c.url().optional()}).default({}),folders:c.array(f).default([]),mcp:c.object({autoStart:c.boolean().default(!0),tools:c.object({read_document:c.object({historyDepth:c.number().int().min(0).default(5)}).default({historyDepth:5}),search:c.object({maxResults:c.number().int().min(1).default(50)}).default({maxResults:50})}).default({read_document:{historyDepth:5},search:{maxResults:50}})}).default({autoStart:!0,tools:{read_document:{historyDepth:5},search:{maxResults:50}}})});function m(e,t){let r={...e};for(let i of Object.keys(t)){let a=e[i],o=t[i];n(o)&&n(a)?r[i]=m(a,o):o!==void 0&&(r[i]=o)}return r}function h(e){if(!r(e))return null;try{let t=s(i(e,`utf-8`));return n(t)?t:null}catch(t){return console.warn(`[config] Failed to parse ${e}: ${t instanceof Error?t.message:t}`),null}}function g(n){let r=n??process.cwd(),i=[],s=o(a(),t,e),c={},l=h(s);l&&(c=m(c,l),i.push(s));let u=o(r,t,e),d=h(u);d&&(c=m(c,d),i.push(u));let f=p.safeParse(c);if(!f.success){let e=f.error.issues.map(e=>` ${e.path.join(`.`)}: ${e.message}`);throw Error(`Invalid configuration:\n${e.join(`
|
|
2
|
-
`)}`)}return{config:f.data,sources:i}}function _(e,t=process.env){let n=e;return t.PORT&&(n={...n,server:{...n.server,port:Number(t.PORT)}}),t.HOST&&(n={...n,server:{...n.server,host:t.HOST}}),n}function v(e){let t=e.env??process.env,n=e.cacheMs??1e3,r=e.loadConfigFn??g,i=new Map,a=new Map,o=u(e.startupCwd);return async s=>{let c=await u(s??e.startupCwd),l=Date.now(),d=i.get(c);if(d&&d.expiresAt>l)return d.config;let f=a.get(c);if(f)return await f;let p=(async()=>{if(c===await o){let r=_(e.startupConfig,t);return i.set(c,{config:r,expiresAt:Date.now()+n}),r}let a=_(r(c).config,t);return i.set(c,{config:a,expiresAt:Date.now()+n}),a})();a.set(c,p);try{return await p}finally{a.delete(c)}}}export{u as i,g as n,p as r,v as t};
|
|
3
|
-
//# sourceMappingURL=loader-DjYfoioW.mjs.map
|
package/dist/paths-CWuZnjHL.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./paths-HVMMTnqB.mjs";export{t as resolveContentDir,e as resolveLockDir};
|
package/dist/paths-HVMMTnqB.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./preview-Lo1Amm1Z.mjs";export{t as formatPreviewBlock,e as previewContent};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import"./constants-DCYrT5Qy.mjs";import{p as e}from"./dist-D4iyaPjq.mjs";import{V as t}from"./dist-mmLEboji.mjs";import{existsSync as n,lstatSync as r,readdirSync as i,realpathSync as a,statSync as o}from"node:fs";import{join as s,relative as c}from"node:path";function l(e){let{projectDir:n,contentDir:l,include:u,exclude:d,sampleCap:f=5}=e,p=[],m=[];try{r(l)}catch(e){return{totalCount:0,sample:[],contentDir:l,include:u,exclude:d,warnings:[`cannot access content directory ${l}: ${e instanceof Error?e.message:String(e)}`]}}let h;try{h=t({projectDir:n,contentDir:l,includePatterns:u,excludePatterns:d})}catch(e){return{totalCount:0,sample:[],contentDir:l,include:u,exclude:d,warnings:[e instanceof Error?e.message:String(e)]}}function g(e){let t;try{t=i(e,{withFileTypes:!0})}catch(t){let n=t instanceof Error?t.message:String(t);p.push(`could not read directory ${c(l,e)||`.`}: ${n}`);return}for(let n of t){let t=s(e,n.name);if(n.isSymbolicLink()){let e;try{e=a(t)}catch(e){let n=e.code;n===`ENOENT`||n===`ELOOP`?p.push(`broken or cyclic symlink: ${c(l,t)}`):p.push(`cannot resolve symlink ${c(l,t)}: ${n??`unknown error`}`);continue}let n;try{n=o(e)}catch{continue}if(n.isDirectory()){let e=c(l,t);if(h.isDirExcluded(e))continue;g(t)}else if(n.isFile()){let e=c(l,t);if(h.isExcluded(e))continue;m.push(e)}}else if(n.isDirectory()){let e=c(l,t);if(h.isDirExcluded(e))continue;g(t)}else if(n.isFile()){let e=c(l,t);if(h.isExcluded(e))continue;m.push(e)}}}return g(l),{totalCount:m.length,sample:m.slice(0,f),contentDir:l,include:u,exclude:d,warnings:p}}function u(t,r){let i=[],a=c(r,t.contentDir),o=a===``?`./`:`./${a}`;i.push(`Content:`),i.push(` Found ${t.totalCount} markdown files in ${o}`);let l=t.include.join(`, `),u=t.exclude.length>0?t.exclude.join(`, `):`(none)`;if(i.push(` Scope: include=${l} exclude=${u}`),t.sample.length>0){let e=t.sample.join(`, `),n=t.totalCount>t.sample.length?`, …`:``;i.push(` Sample: ${e}${n}`)}if(t.warnings.length>0)for(let e of t.warnings)i.push(` Warning: ${e}`);return i.push(``),n(s(r,`.open-knowledge`,`config.yml`))?(i.push(` To adjust, edit ${e}/config.yml:`),i.push(` content:`),i.push(` include: ${JSON.stringify(t.include)}`),i.push(` exclude: ${JSON.stringify(t.exclude)}`)):(i.push(" Run `open-knowledge init` to scaffold config, then adjust:"),i.push(` ${e}/config.yml → content.include / content.exclude`)),i.push(``),i.push(` Re-check anytime: open-knowledge preview`),i.join(`
|
|
2
|
-
`)}export{l as n,u as t};
|
|
3
|
-
//# sourceMappingURL=preview-Lo1Amm1Z.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./index-L-2j8CET.js";export{r as McpConsentDialogBody,r as default,t as computeInitialSelection,n as selectedIdsOrdered,e as toggleSelectedId};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-wcPFST8Q-DriDJLQM.mjs";import{closeSync as t,existsSync as n,mkdirSync as r,openSync as i,readFileSync as a,unlinkSync as o,writeFileSync as s,writeSync as c}from"node:fs";import{hostname as l}from"node:os";import{resolve as u}from"node:path";function d(e){try{return process.kill(e,0),!0}catch(e){return!!(e&&typeof e==`object`&&`code`in e&&e.code===`EPERM`)}}var f=class extends Error{existing;lockPath;lockName;constructor(e,t,n){super(`Open Knowledge ${n} already running on port ${e.port} (pid ${e.pid}, started ${e.startedAt}). Stop it first or use a different directory. Lock: ${t}`),this.name=`ProcessLockCollisionError`,this.existing=e,this.lockPath=t,this.lockName=n}};function p(e,t){return u(e,`${t}.lock`)}const m=new Map;function h(e){m.set(e,(m.get(e)??0)+1)}function g(e){let t=m.get(e);return t===void 0||t<=1?(m.delete(e),!0):(m.set(e,t-1),!1)}function _(e,t){try{let n=JSON.parse(a(e,`utf-8`));return n&&typeof n==`object`&&typeof n.pid==`number`?n:(console.warn(`${t} Corrupt lock file at ${e} — replacing`),null)}catch{return console.warn(`${t} Corrupt lock file at ${e} — replacing`),null}}function v(e){let{lockName:a,lockDir:u,metadata:m}=e,g=`[${a}-lock]`;r(u,{recursive:!0});let v=p(u,a),b={pid:process.pid,hostname:l(),port:m.port,startedAt:new Date().toISOString(),worktreeRoot:m.worktreeRoot},x=JSON.stringify(b,null,2);for(let e=0;e<3;e++){if(!n(v))try{let e=i(v,`wx`,384);try{c(e,x)}finally{t(e)}return h(v),y({lockName:a,lockDir:u,lockPath:v})}catch(e){if(e.code!==`EEXIST`)throw e}let e=_(v,g);if(e){let t=e.hostname===l();if(t&&e.pid===process.pid)return s(v,x,{encoding:`utf-8`,mode:384}),h(v),y({lockName:a,lockDir:u,lockPath:v});if(t&&d(e.pid))throw new f(e,v,a);console.warn(`${g} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{o(v)}catch{}}throw Error(`${g} Failed to acquire ${v} after 3 attempts (concurrent acquire contention).`)}function y(e){let{lockName:t,lockDir:n,lockPath:r}=e;return{lockPath:r,release:()=>S({lockName:t,lockDir:n}),updatePort:e=>b({lockName:t,lockDir:n,port:e})}}function b(e){let{lockName:t,lockDir:r,port:i}=e,o=`[${t}-lock]`,c=p(r,t);if(!n(c)){console.warn(`${o} Lock file missing at ${c} during port update — skipping`);return}let u;try{let e=JSON.parse(a(c,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`){console.warn(`${o} Corrupt lock at ${c} during port update — skipping`);return}u=e}catch{console.warn(`${o} Unreadable lock at ${c} during port update — skipping`);return}if(u.pid===process.pid&&!(typeof u.hostname==`string`&&u.hostname!==l())){u.port=i;try{s(c,JSON.stringify(u,null,2),{encoding:`utf-8`,mode:384})}catch(e){console.warn(`${o} Failed to update port in ${c}: ${e instanceof Error?e.message:String(e)}`)}}}function x(e){let{lockName:t,lockDir:r}=e,i=p(r,t);if(!n(i))return null;let s;try{let e=JSON.parse(a(i,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`)return null;s=e}catch{return null}if(s.hostname!==l())return null;if(!d(s.pid)){try{o(i)}catch{}return null}return s}function S(e){let{lockName:t,lockDir:r}=e,i=`[${t}-lock]`,s=p(r,t);if(g(s)&&n(s))try{let e=JSON.parse(a(s,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||typeof e.hostname==`string`&&e.hostname!==l())return;o(s)}catch(e){console.warn(`${i} Failed to release ${s}: ${e instanceof Error?e.message:String(e)}`)}}var C=e({ServerLockCollisionError:()=>w,acquireServerLock:()=>T,readServerLock:()=>D,releaseServerLock:()=>O,updateServerLockPort:()=>E}),w=class extends f{constructor(e,t){super(e,t,`server`),this.name=`ServerLockCollisionError`}};function T(e,t){try{return v({lockName:`server`,lockDir:e,metadata:t}).lockPath}catch(e){throw e instanceof f&&e.lockName===`server`?new w(e.existing,e.lockPath):e}}function E(e,t){b({lockName:`server`,lockDir:e,port:t})}function D(e){return x({lockName:`server`,lockDir:e})}function O(e){S({lockName:`server`,lockDir:e})}export{d as a,D as c,C as d,b as f,T as i,S as l,w as n,p as o,E as p,v as r,x as s,f as t,O as u};
|
|
2
|
-
//# sourceMappingURL=server-lock-CH0GCP_4-DCYOtKMW.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e}from"./server-lock-CH0GCP_4-DCYOtKMW.mjs";export{e as a};
|
package/dist/src-B08b0hiw.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./init-B61XMkrc.mjs";import"./loader-DjYfoioW.mjs";export{};
|
package/dist/start-BccdyuHF.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./constants-DCYrT5Qy.mjs";import{p as t}from"./dist-D4iyaPjq.mjs";import{Command as n}from"commander";import{closeSync as r,existsSync as i,mkdirSync as a,openSync as o}from"node:fs";import{join as s}from"node:path";import{spawn as c}from"node:child_process";function l(){let e=process.execPath,t=process.argv[1];return t?{command:e,prefixArgs:[t]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx @inkeep/open-knowledge\`. This re-introduces the version-drift surface that re-exec was fixing. Observed argv: ${JSON.stringify(process.argv)}`),{command:`npx`,prefixArgs:[`@inkeep/open-knowledge`]})}function u(e){return e.uiLock?e.isAlive(e.uiLock.pid)?{action:`skip`,reason:`alive`,pid:e.uiLock.pid,port:e.uiLock.port}:{action:`spawn`,reason:`stale`,stalePid:e.uiLock.pid}:{action:`spawn`,reason:`absent`}}function d(e){i(e.lockDir)||a(e.lockDir,{recursive:!0});let t=o(s(e.lockDir,`last-spawn-error.log`),`w`),n=e.spawn??c,{PORT:u,...d}=process.env,f=l();try{let r=n(f.command,[...f.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:d});return r.unref(),r}finally{try{r(t)}catch{}}}async function f(e){let t=e.now()+e.timeoutMs;for(;e.now()<t;){let t=e.readUiLock();if(t&&t.port>0)return t.port;await e.sleep(e.pollIntervalMs)}let n=e.readUiLock();return n&&n.port>0?n.port:null}function p(e){let t=e.sigtermGraceMs??1e4,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>new Promise(t=>setTimeout(t,e)));return async()=>{try{let i=e.readUiLock();if(i&&e.isAlive(i.pid))try{e.killPid(i.pid,`SIGTERM`),e.log?.info({pid:i.pid,port:i.port},`idle-shutdown: SIGTERM UI sibling`);let a=Date.now()+t;for(;Date.now()<a&&e.isAlive(i.pid);)await r(n);if(e.isAlive(i.pid))try{e.killPid(i.pid,`SIGKILL`),e.log?.warn({pid:i.pid,graceMs:t},`idle-shutdown: SIGTERM grace expired — escalated to SIGKILL`)}catch(t){e.log?.error({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: SIGKILL failed`)}}catch(t){e.log?.warn({pid:i.pid,err:t instanceof Error?t.message:String(t)},`idle-shutdown: failed to SIGTERM UI sibling`)}}catch(t){e.log?.warn({err:t instanceof Error?t.message:String(t)},`idle-shutdown: UI lookup failed; proceeding with destroy`)}await e.destroy()}}async function m(e){let{config:n,cwd:r}=e,i=e.skipAutoInit??!1,a=e.skipUiAutoSpawn??!1,o=e.idleThresholdMs??18e5,{existsSync:s,mkdirSync:c}=await import(`node:fs`),{resolve:l}=await import(`node:path`),{bootServer:m,ensureProjectGit:h,getLogger:g,isProcessAlive:_,readUiLock:v}=await import(`./dist-B8mg-f6q.mjs`),{resolveContentDir:y}=await import(`./paths-CWuZnjHL.mjs`),b=e.log??g(`start`),x=y(n,r);s(x)||(c(x,{recursive:!0}),b.info({contentDir:x},`Created content directory`));let S=!s(l(r,t)),C=i?void 0:async()=>{try{let{initContent:e}=await import(`./init-CS5xVRRu.mjs`),t=e(r);return S||t.created.length>0}catch(e){return console.warn(`Auto-init failed:`,e instanceof Error?e.message:e),!1}},w=!1,T=l(x,t),E=n.server.openOnAgentEdit?()=>{if(w)return;let e=v(T);if(!e||e.port<=0||!_(e.pid))return;w=!0;let t=`http://localhost:${e.port}`;import(`./open-browser-ryHU9Kmc.mjs`).then(({openBrowser:e})=>e(t)).catch(()=>{})}:void 0,D=null,O=await m({contentDir:x,projectDir:r,contentRoot:n.content.dir,port:n.server.port,host:n.server.host,quiet:!1,debounce:n.persistence.debounceMs,maxDebounce:n.persistence.maxDebounceMs,includePatterns:n.content.include,excludePatterns:n.content.exclude,onAgentWrite:E,localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:!0,idleShutdownMs:o,skipAutoInit:i,autoInitFn:C,ensureProjectGitFn:i?void 0:()=>h(r),spawnUiSiblingFn:async({lockDir:t})=>{if(D=u({uiLock:v(t),isAlive:_}),D.action===`spawn`&&!a)try{d({lockDir:t,cwd:r,spawn:e.spawn}),b.info({reason:D.reason},`[start] auto-spawned ok ui sibling`)}catch(e){console.warn(`[start] failed to auto-spawn ok ui: ${e instanceof Error?e.message:String(e)}`)}else D.action===`skip`&&b.info({port:D.port,pid:D.pid},`UI already running at port ${D.port}`)},idleShutdownHandler:e=>p({readUiLock:()=>v(O.lockDir),isAlive:_,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:b}),log:b});D||={action:`skip`,reason:`alive`,pid:0,port:0};let k=D,A=null;if(k.action===`skip`)A=k.port>0?k.port:null;else if(!a){let t=e.uiBindTimeoutMs??3e3;A=await f({readUiLock:()=>v(O.lockDir),now:Date.now,sleep:e=>new Promise(t=>setTimeout(t,e)),timeoutMs:t,pollIntervalMs:50}),A===null&&b.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:O.httpServer,destroy:O.destroy,lockDir:O.lockDir,contentDir:x,port:O.port,ready:O.ready,degraded:O.degraded,uiSpawnDecision:D,resolvedUiPort:A,didAutoInit:O.didAutoInit,didGitInit:O.didGitInit}}function h(r){return new n(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--no-init`,`Skip auto-scaffolding of ${t}/`).action(async n=>{let{renderBanner:i}=await import(`./banner-B9XXjTZc.mjs`),{dim:a,error:o,info:s,warning:c}=await import(`./colors-CMt7h9Vn.mjs`),l=r(),u=process.cwd();n.port!==void 0&&(l.server.port=Number(n.port)),n.host!==void 0&&(l.server.host=n.host);let d;try{d=await m({config:l,cwd:u,skipAutoInit:n.init===!1})}catch(e){let{ProjectGitInitError:t}=await import(`./dist-B8mg-f6q.mjs`);e instanceof t&&(console.error(o(`open-knowledge requires git to initialize a parent repo. Install git or run 'git init' yourself, then re-run.`)),e.stderr&&console.error(a(e.stderr.trim())),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let f=!1,p=async e=>{if(!f){f=!0,console.log(a(`\nShutting down (${e})...`));try{await d.destroy()}catch(e){console.error(`${o(`destroy() failed:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exitCode=1}process.exit(process.exitCode??0)}};process.once(`SIGINT`,()=>{p(`SIGINT`)}),process.once(`SIGTERM`,()=>{p(`SIGTERM`)});let h=`http://${l.server.host}:${d.port}`,g=l.server.host===`0.0.0.0`||l.server.host===`::`?`http://0.0.0.0:${d.port}`:void 0,_=d.resolvedUiPort,v=_!==null&&_>0?`http://${l.server.host}:${_}`:h;console.log(i({name:`open-knowledge`,version:e,localUrl:v,apiUrl:v===h?void 0:h,networkUrl:g})),d.didAutoInit&&(console.log(` ${s(`✓`)} Scaffolded ${t}/ (first run)`),console.log(` ${a("Tip: Run `open-knowledge init` to register MCP tools for Claude Code")}\n`));let y={"shadow-repo":`Version history and branch-switch safety unavailable`,"file-watcher":`External file changes will not sync to the editor`,"head-watcher":`Git branch switches may cause document inconsistency`};d.ready.then(async()=>{if(d.degraded.length>0){console.log();for(let e of d.degraded){let t=y[e]??`${e} (check server logs for details)`;console.warn(` ${c(`⚠`)} ${c(e)}: ${a(t)}`)}console.log()}if(d.didAutoInit||d.didGitInit)if(d.didGitInit&&console.log(`\n ${s(`✓`)} Initialized git repo at ${u}/.git/ (default branch: main)`),d.didAutoInit)try{let{previewContent:e,formatPreviewBlock:t}=await import(`./preview-D5D9OVCW.mjs`),n=e({projectDir:u,contentDir:d.contentDir,include:l.content.include,exclude:l.content.exclude});console.log(`\n${t(n,u)}\n`)}catch(e){console.warn(`Content preview unavailable: ${e instanceof Error?e.message:String(e)}`)}else console.log();if(n.open){let{openBrowser:e}=await import(`./open-browser-ryHU9Kmc.mjs`);e(v)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})})}export{d as a,u as i,m as n,h as o,p as r,l as s,f as t};
|
|
2
|
-
//# sourceMappingURL=start-BccdyuHF.mjs.map
|
package/dist/start-CsashZvR.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./start-BccdyuHF.mjs";export{e as startCommand};
|