@inkeep/open-knowledge 0.0.0-dev-20260427194153 → 0.0.0-dev-20260427210535
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-BZWlp7wi.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-AF92T0LI.mjs +1 -0
- package/dist/{init-aygOL5mI.mjs → init-CDQXH2-i.mjs} +6 -6
- package/dist/init-DOiFaqRI.mjs +254 -0
- package/dist/init-SDAphqYo.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-B-hHIGF7.mjs +3 -0
- package/dist/loader-DsgFEqrz.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-CcbqTPyR.mjs +2 -0
- package/dist/paths-DtSqXz-J.mjs +1 -0
- package/dist/preview-C9fc_Jna.mjs +1 -0
- package/dist/preview-DsHKavXe.mjs +3 -0
- package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +1 -0
- package/dist/public/assets/McpConsentDialogBody-DgIeLbWq.js +1 -0
- package/dist/public/assets/{index-e-6eeSOy.js → index-L-2j8CET.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-BkszjXGW.mjs +1 -0
- package/dist/start-BMH5fwi_.mjs +2 -0
- package/dist/start-jYZEQp_g.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-CXtb6S9e.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-BCnlpWMq.mjs +0 -1
- package/dist/init-Bc8AaeuH.mjs +0 -5
- package/dist/init-Dn8zvSe9.mjs +0 -1
- package/dist/loader-CkLCJZ_a.mjs +0 -3
- package/dist/loader-VgnU35KK.mjs +0 -1
- package/dist/paths-L4UjjxH7.mjs +0 -1
- package/dist/paths-uWxFvwPB.mjs +0 -2
- package/dist/preview-BRKICSmX.mjs +0 -1
- package/dist/preview-DMPV6CsE.mjs +0 -3
- package/dist/public/assets/McpConsentDialogBody-rv8E7452.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-B0_BgXoG.mjs +0 -1
- package/dist/start-BrAnBRSa.mjs +0 -2
- package/dist/start-CZ3afhmt.mjs +0 -1
package/dist/public/index.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
nothing for the formatter to reindent.
|
|
21
21
|
-->
|
|
22
22
|
<script>(() => { let mode = 'wysiwyg'; try { const raw = localStorage.getItem('ok-editor-mode-v1'); if (raw === 'wysiwyg' || raw === 'source') mode = raw; } catch {} window.__OK_EDITOR_MODE__ = mode; })();</script>
|
|
23
|
-
<script type="module" crossorigin src="./assets/index-
|
|
23
|
+
<script type="module" crossorigin src="./assets/index-L-2j8CET.js"></script>
|
|
24
24
|
<link rel="modulepreload" crossorigin href="./assets/chunk-DECur_0Z.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="./assets/propagation-api-Bugyj7xy.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="./assets/w3c-keyname-CSlwavrd.js">
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-A4HU7SVR-hefV_YmW.mjs";export{e as pwdCommand};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import"./chunk-R6VWJ2ZL-B0CcMPyK.mjs";import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as t,t as n}from"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{r}from"./chunk-OJDRYQWQ-BV5MVRVg.mjs";import{n as i}from"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{n as a,t as o}from"./chunk-3THT3N7L-klp8GP84.mjs";import{t as s}from"./chunk-44UOCSGV-BUBpWxXm.mjs";import{r as c,t as l}from"./chunk-74CEPOFO-D1bzz49u.mjs";import{n as u,t as d}from"./chunk-I57KEIP3-B1DoH8rp.mjs";import{fileURLToPath as f}from"node:url";import{Worker as p}from"node:worker_threads";import{randomBytes as m}from"node:crypto";var h=1e4,g=6e4,_={name:`python3`,summary:`Execute Python code via CPython Emscripten`,usage:`python3 [OPTIONS] [-c CODE | -m MODULE | FILE] [ARGS...]`,description:[`Execute Python code using CPython compiled to WebAssembly via Emscripten.`,``,`This command runs Python in an isolated environment with access to`,`the virtual filesystem. Standard library modules are available.`],options:[`-c CODE Execute CODE as Python script`,`-m MODULE Run library module as a script`,`--version Show Python version`,`--help Show this help`],examples:[`python3 -c "print(1 + 2)"`,`python3 -c "import sys; print(sys.version)"`,`python3 script.py`,`python3 script.py arg1 arg2`,`echo 'print("hello")' | python3`],notes:[`CPython runs in WebAssembly, so execution may be slower than native Python.`,`Standard library modules are available (no pip install).`,`Maximum execution time is 30 seconds by default.`]};function v(e){let t={code:null,module:null,scriptFile:null,showVersion:!1,scriptArgs:[]};if(e.length===0)return t;let n=e.findIndex(e=>!e.startsWith(`-`)||e===`-`||e===`--`);for(let r=0;r<(n===-1?e.length:n);r++){let n=e[r];if(n===`-c`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'c'
|
|
2
|
+
`,exitCode:2}:(t.code=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`-m`)return r+1>=e.length?{stdout:``,stderr:`python3: option requires an argument -- 'm'
|
|
3
|
+
`,exitCode:2}:(t.module=e[r+1],t.scriptArgs=e.slice(r+2),t);if(n===`--version`||n===`-V`)return t.showVersion=!0,t;if(n.startsWith(`-`)&&n!==`-`)return{stdout:``,stderr:`python3: unrecognized option '${n}'
|
|
4
|
+
`,exitCode:2}}if(n!==-1){let r=e[n];r===`--`?n+1<e.length&&(t.scriptFile=e[n+1],t.scriptArgs=e.slice(n+2)):(t.scriptFile=r,t.scriptArgs=e.slice(n+1))}return t}var y=new WeakMap;function b(e){let t=y.get(e);return t||(t={executionQueue:[],isExecuting:!1},y.set(e,t)),t}var x=f(new URL(`./worker.js`,import.meta.url));function S(){return m(16).toString(`hex`)}function C(e,t){if(!e||typeof e!=`object`)return{success:!1,error:`Malformed worker response`};let n=e;return typeof n.protocolToken!=`string`||n.protocolToken!==t?{success:!1,error:`Malformed worker response: invalid protocol token`}:n.type===`security-violation`?{success:!1,error:`Security violation: ${typeof n.violation?.type==`string`?n.violation.type:`unknown`}`}:typeof n.success==`boolean`?n.success?{success:!0}:{success:!1,error:typeof n.error==`string`&&n.error.length>0?n.error:`Worker execution failed`}:{success:!1,error:`Malformed worker response: missing success flag`}}function w(t){if(t.isExecuting||t.executionQueue.length===0)return;for(;t.executionQueue.length>0&&t.executionQueue[0].canceled;)t.executionQueue.shift();if(t.executionQueue.length===0)return;let n=t.executionQueue.shift();if(!n)return;t.isExecuting=!0;let r;try{r=e.runTrusted(()=>new p(x,{workerData:n.input}))}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t);return}n.workerRef&&(n.workerRef.current=r);let a=i(n.requireDefenseContext,`python3`,`worker message callback`,e=>{n.resolve(C(e,n.input.protocolToken)),t.isExecuting=!1,r.terminate(),w(t)}),c=i(n.requireDefenseContext,`python3`,`worker error callback`,e=>{let r=o(s(e));n.resolve({success:!1,error:r}),t.isExecuting=!1,w(t)}),l=i(n.requireDefenseContext,`python3`,`worker exit callback`,()=>{t.isExecuting&&(n.resolve({success:!1,error:`Worker exited unexpectedly`}),t.isExecuting=!1,w(t))});r.on(`message`,e=>{try{a(e)}catch(e){let i=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(i)}),t.isExecuting=!1,r.terminate(),w(t)}}),r.on(`error`,e=>{try{c(e)}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}}),r.on(`exit`,()=>{try{l()}catch(e){let r=e instanceof Error?e.message:String(e);n.resolve({success:!1,error:o(r)}),t.isExecuting=!1,w(t)}})}async function T(e,a,c,l=[]){let f=u(),p=new d(f,a.fs,a.cwd,`python3`,a.fetch,a.limits?.maxOutputSize??0),m=a.limits?.maxPythonTimeoutMs??h,_=a.fetch?Math.max(m,g):m,v=b(a.fs),y={protocolToken:S(),sharedBuffer:f,pythonCode:e,cwd:a.cwd,env:r(a.env),args:l,scriptPath:c,timeoutMs:_},x={current:null},C=new Promise(e=>{let r={input:y,resolve:()=>{},workerRef:x,requireDefenseContext:a.requireDefenseContext},s=i(a.requireDefenseContext,`python3`,`worker timeout callback`,()=>{x.current?x.current.terminate():r.canceled=!0,e({success:!1,error:`Execution timeout: exceeded ${_}ms limit`})}),c=n(()=>{try{s()}catch(t){e({success:!1,error:o(t instanceof Error?t.message:String(t))})}},_);r.resolve=n=>{t(c),e(n)},v.executionQueue.push(r),w(v)}),[T,E]=await Promise.all([p.run(_).catch(e=>({stdout:``,stderr:`python3: bridge error: ${o(s(e))}
|
|
5
|
+
`,exitCode:1})),C.catch(e=>({success:!1,error:o(s(e))}))]);if(!E.success&&E.error){let e=o(E.error);return{stdout:T.stdout,stderr:`${T.stderr}python3: ${e}
|
|
6
|
+
`,exitCode:T.exitCode||1}}return T}var E={name:`python3`,async execute(e,t){if(l(e))return c(_);let n=v(e);if(`exitCode`in n)return n;if(n.showVersion)return{stdout:`Python 3.13.2 (Emscripten)
|
|
7
|
+
`,stderr:``,exitCode:0};let r,i;if(n.code!==null)r=n.code,i=`-c`;else if(n.module!==null){if(!/^[a-zA-Z_][a-zA-Z0-9_.]*$/.test(n.module))return{stdout:``,stderr:`python3: No module named '${n.module.slice(0,200)}'
|
|
8
|
+
`,exitCode:1};r=`import runpy; runpy.run_module('${n.module}', run_name='__main__')`,i=n.module}else if(n.scriptFile!==null){let e=t.fs.resolvePath(t.cwd,n.scriptFile);if(!await t.fs.exists(e))return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': [Errno 2] No such file or directory
|
|
9
|
+
`,exitCode:2};try{r=await t.fs.readFile(e),i=n.scriptFile}catch(e){let t=a(e.message);return{stdout:``,stderr:`python3: can't open file '${n.scriptFile}': ${t}
|
|
10
|
+
`,exitCode:2}}}else if(t.stdin.trim())r=t.stdin,i=`<stdin>`;else return{stdout:``,stderr:`python3: no input provided (use -c CODE, -m MODULE, or provide a script file)
|
|
11
|
+
`,exitCode:2};return T(r,t,i,n.scriptArgs)}},D={name:`python`,async execute(e,t){return E.execute(e,t)}};export{E as python3Command,D as pythonCommand};
|
|
12
|
+
//# sourceMappingURL=python3-AUFTPCU6-MeZyx8_A.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-HJWBQKYG-UZig4wUt.mjs";export{e as readlinkCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";export{e as rev};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-VLGZJRPG-D4NVKJYL.mjs";import{t as e}from"./chunk-NYQYO467-Degkom4D.mjs";export{e as rgCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MIZPJHVH-z-geAni9.mjs";export{e as rmCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-OCS6LSEM-BHslttnj.mjs";export{e as rmdirCommand};
|
package/dist/{rolldown-runtime-wcPFST8Q-DriDJLQM.mjs → rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};export{t};
|
|
2
|
-
//# sourceMappingURL=rolldown-runtime-wcPFST8Q-
|
|
2
|
+
//# sourceMappingURL=rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{t as e}from"./chunk-OL3S66CO-Bmgu4tW4.mjs";export{e as sedCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";export{e as seqCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs";import{resolve as t}from"node:path";import{closeSync as n,existsSync as r,mkdirSync as i,openSync as a,readFileSync as o,unlinkSync as s,writeFileSync as c,writeSync as l}from"node:fs";import{hostname as u}from"node:os";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,n){return t(e,`${n}.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(o(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:t,lockDir:o,metadata:m}=e,g=`[${t}-lock]`;i(o,{recursive:!0});let v=p(o,t),b={pid:process.pid,hostname:u(),port:m.port,startedAt:new Date().toISOString(),worktreeRoot:m.worktreeRoot},x=JSON.stringify(b,null,2);for(let e=0;e<3;e++){if(!r(v))try{let e=a(v,`wx`,384);try{l(e,x)}finally{n(e)}return h(v),y({lockName:t,lockDir:o,lockPath:v})}catch(e){if(e.code!==`EEXIST`)throw e}let e=_(v,g);if(e){let n=e.hostname===u();if(n&&e.pid===process.pid)return c(v,x,{encoding:`utf-8`,mode:384}),h(v),y({lockName:t,lockDir:o,lockPath:v});if(n&&d(e.pid))throw new f(e,v,t);console.warn(`${g} Stale lock detected (pid=${e.pid}, host=${e.hostname}) — replacing`)}try{s(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:n,port:i}=e,a=`[${t}-lock]`,s=p(n,t);if(!r(s)){console.warn(`${a} Lock file missing at ${s} during port update — skipping`);return}let l;try{let e=JSON.parse(o(s,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`){console.warn(`${a} Corrupt lock at ${s} during port update — skipping`);return}l=e}catch{console.warn(`${a} Unreadable lock at ${s} during port update — skipping`);return}if(l.pid===process.pid&&!(typeof l.hostname==`string`&&l.hostname!==u())){l.port=i;try{c(s,JSON.stringify(l,null,2),{encoding:`utf-8`,mode:384})}catch(e){console.warn(`${a} Failed to update port in ${s}: ${e instanceof Error?e.message:String(e)}`)}}}function x(e){let{lockName:t,lockDir:n}=e,i=p(n,t);if(!r(i))return null;let a;try{let e=JSON.parse(o(i,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`)return null;a=e}catch{return null}if(a.hostname!==u())return null;if(!d(a.pid)){try{s(i)}catch{}return null}return a}function S(e){let{lockName:t,lockDir:n}=e,i=`[${t}-lock]`,a=p(n,t);if(g(a)&&r(a))try{let e=JSON.parse(o(a,`utf-8`));if(!e||typeof e!=`object`||typeof e.pid!=`number`||e.pid!==process.pid||typeof e.hostname==`string`&&e.hostname!==u())return;s(a)}catch(e){console.warn(`${i} Failed to release ${a}: ${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-DXqutMlt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e}from"./server-lock-CH0GCP_4-DXqutMlt.mjs";export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-XKQRETAK-cVWA9gEB.mjs";export{e as sha1sumCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";export{e as sha256sumCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{n as e}from"./chunk-GOV5EKKI-PN17n-Z0.mjs";export{e as sleepCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-KMEYNNUA-DfdK88O_.mjs";export{e as sortCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";export{e as split};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import{t as e}from"./chunk-HWBSOZZR-Dikp87Ww.mjs";export{e as sqlite3Command};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./init-DOiFaqRI.mjs";import"./loader-B-hHIGF7.mjs";export{};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./esm-29fM6BBO.mjs";import{i as t}from"./constants-BZWlp7wi.mjs";import{p as n}from"./dist-DRC09WNZ.mjs";import{spawn as r}from"node:child_process";import{join as i}from"node:path";import{closeSync as a,existsSync as o,mkdirSync as s,openSync as c}from"node:fs";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){o(e.lockDir)||s(e.lockDir,{recursive:!0});let t=c(i(e.lockDir,`last-spawn-error.log`),`w`),n=e.spawn??r,{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{a(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:t,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-Bx5GgBdJ.mjs`),{resolveContentDir:y}=await import(`./paths-DtSqXz-J.mjs`),b=e.log??g(`start`),x=y(t,r);s(x)||(c(x,{recursive:!0}),b.info({contentDir:x},`Created content directory`));let S=!s(l(r,n)),C=i?void 0:async()=>{try{let{initContent:e}=await import(`./init-SDAphqYo.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,n),E=t.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-BzMQ6cLf.mjs`).then(({openBrowser:e})=>e(t)).catch(()=>{})}:void 0,D=null,O=await m({contentDir:x,projectDir:r,contentRoot:t.content.dir,port:t.server.port,host:t.server.host,quiet:!1,debounce:t.persistence.debounceMs,maxDebounce:t.persistence.maxDebounceMs,includePatterns:t.content.include,excludePatterns:t.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 e(`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 ${n}/`).action(async e=>{let{renderBanner:i}=await import(`./banner-BxI1wnW9.mjs`),{dim:a,error:o,info:s,warning:c}=await import(`./colors-BnZ-i-vb.mjs`),l=r(),u=process.cwd();e.port!==void 0&&(l.server.port=Number(e.port)),e.host!==void 0&&(l.server.host=e.host);let d;try{d=await m({config:l,cwd:u,skipAutoInit:e.init===!1})}catch(e){let{ProjectGitInitError:t}=await import(`./dist-Bx5GgBdJ.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:t,localUrl:v,apiUrl:v===h?void 0:h,networkUrl:g})),d.didAutoInit&&(console.log(` ${s(`✓`)} Scaffolded ${n}/ (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-C9fc_Jna.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(e.open){let{openBrowser:e}=await import(`./open-browser-BzMQ6cLf.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-BMH5fwi_.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./start-BMH5fwi_.mjs";export{e as startCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-5QVNJEHU-BvsipSFW.mjs";export{e as statCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-VYOJP4TV-BvibOnKG.mjs";export{e as strings};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";export{e as tac};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";export{e as tailCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import{n as e}from"./chunk-BRGMQKJV-CdrkqzRA.mjs";export{e as tarCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-55VFSPNA-DVZfQAzN.mjs";export{e as teeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-CWQS3NFK-DFdwmFxJ.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-Z6LRHWXI-DbRghyzT.mjs";export{e as timeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-A5O5YHGN-C7BVq0eF.mjs";import{n as e}from"./chunk-YTNYSM6T-DuBR2-TM.mjs";export{e as timeoutCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-OCLXQMOG-BMsyLQhm.mjs";export{e as touchCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-62RKD26F-D-luOa0m.mjs";export{e as trCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";export{e as treeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";export{e as falseCommand,t as trueCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-PYSFUGCK-CY7pclEB.mjs";export{e as unexpand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-WKFATFPP-DCZdrA8x.mjs";export{e as uniqCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-GXVXFKBA-993FoPmq.mjs";export{e as wcCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-A65PWWJC-D7J5l9eq.mjs";export{e as whichCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{t as e}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";export{e as whoami};
|
|
@@ -4,4 +4,4 @@ import{i as e,o as t,t as n}from"./chunk-FK9Q3tQk.mjs";var r=n(((e,t)=>{let n=[`
|
|
|
4
4
|
`)+`\r
|
|
5
5
|
\r
|
|
6
6
|
`+n)}function w(e,t,n,r,i,a){if(e.listenerCount(`wsClientError`)){let r=Error(i);Error.captureStackTrace(r,w),e.emit(`wsClientError`,r,n,t)}else C(n,r,i,a)}}));p(),d(),o(),c(),l(),m(),f();var g=t(h(),1).default;export{g as WebSocketServer};
|
|
7
|
-
//# sourceMappingURL=wrapper-
|
|
7
|
+
//# sourceMappingURL=wrapper-BTT6637Z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import"./chunk-SYMJJMQ4-CWTh95-4.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DURjrblE.mjs";import"./chunk-F55TLFGB-DqkrAMO5.mjs";import{n as e}from"./chunk-UNYNJIFU-DwPQMz0F.mjs";export{e as xanCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-SYMJJMQ4-CWTh95-4.mjs";import{c as e}from"./chunk-F55TLFGB-DqkrAMO5.mjs";export{e as cmdView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-C774okS0.mjs";import{n as e}from"./chunk-TOMNU26N-BcdbBQ2p.mjs";export{e as xargsCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-BpP11HXS.mjs";import"./chunk-DXB73IDG-C774okS0.mjs";import"./chunk-5QMZ5MUS-DWTkM0vM.mjs";import"./chunk-24IMIIXA-Bz7rlZT3.mjs";import"./chunk-SYMJJMQ4-CWTh95-4.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DURjrblE.mjs";import{t as e}from"./chunk-XORM457F-CRToN1RQ.mjs";export{e as yqCommand};
|
package/package.json
CHANGED
package/dist/banner-B9XXjTZc.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,t as r}from"./colors-Jf5QUiX2.mjs";import i from"cli-boxes";const a=i.round;function o(i){let o=[],s=`${i.name} v${i.version}`;o.push({plain:s,colored:r(s)}),o.push({plain:``,colored:``});let c=i.apiUrl?`Editor: `:`Local: `;if(o.push({plain:`${c}${i.localUrl}`,colored:`${c}${e(t(i.localUrl),i.localUrl)}`}),i.apiUrl){let t=`API: `;o.push({plain:`${t}${i.apiUrl}`,colored:`${t}${n(e(i.apiUrl,i.apiUrl))}`})}if(i.networkUrl){let n=`Network: `;o.push({plain:`${n}${i.networkUrl}`,colored:`${n}${e(t(i.networkUrl),i.networkUrl)}`})}o.push({plain:``,colored:``});let l=`Press Ctrl+C to stop`;o.push({plain:l,colored:n(l)});let u=Math.max(...o.map(e=>e.plain.length)),d=u+4,f=` ${a.topLeft}${a.top.repeat(d)}${a.topRight}`,p=` ${a.bottomLeft}${a.bottom.repeat(d)}${a.bottomRight}`;return[``,f,...o.map(e=>{let t=u-e.plain.length;return` ${a.left}${` `.repeat(2)}${e.colored}${` `.repeat(t+2)}${a.right}`}),p,``].join(`
|
|
2
|
-
`)}export{o as renderBanner};
|
|
3
|
-
//# sourceMappingURL=banner-B9XXjTZc.mjs.map
|
package/dist/colors-CMt7h9Vn.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,s as r}from"./colors-Jf5QUiX2.mjs";export{t as dim,n as error,e as info,r as warning};
|
package/dist/colors-Jf5QUiX2.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import e from"picocolors";const t=t=>e.red(t),n=t=>e.yellow(t),r=t=>e.green(t),i=t=>e.cyan(t),a=t=>e.gray(t),o=t=>e.bold(t);function s(t,n){return e.isColorSupported?`\u001B]8;;${n}\u0007${t}\u001B]8;;\u0007`:t}export{s as a,i,a as n,r as o,t as r,n as s,o as t};
|
|
2
|
-
//# sourceMappingURL=colors-Jf5QUiX2.mjs.map
|
package/dist/dist-B8mg-f6q.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./dist-D4iyaPjq.mjs";import{a as e,c as t}from"./server-lock-CH0GCP_4-DCYOtKMW.mjs";import{A as n,Bt as r,St as i,T as a,X as o,_ as s,q as c,vt as l,w as u}from"./dist-mmLEboji.mjs";export{s as ProjectGitInitError,u as UiLockCollisionError,a as acquireUiLock,n as bootServer,c as ensureProjectGit,o as getLogger,e as isProcessAlive,t as readServerLock,l as readUiLock,i as releaseUiLock,r as updateUiLockPort};
|