@inkeep/open-knowledge 0.2.0 → 0.4.0-beta.6
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/THIRD_PARTY_NOTICES.md +6097 -0
- package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
- package/dist/assets/skills/open-knowledge/SKILL.md +347 -0
- package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
- package/dist/banner-DdbR6AZr.mjs +3 -0
- package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
- package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
- package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
- package/dist/build-B6buVrsB.mjs +2 -0
- package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
- package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
- package/dist/chokidar-CxU7f6JW.mjs +4 -0
- package/dist/chunk-24IMIIXA-B6yIPkk2.mjs +2 -0
- package/dist/chunk-3THT3N7L-DztAF386.mjs +2 -0
- package/dist/chunk-3ZUFRYJ4-qsYuZX7b.mjs +2 -0
- package/dist/chunk-44UOCSGV-CaFxJDHm.mjs +2 -0
- package/dist/chunk-4GTNDTRF-PuLVuVJW.mjs +8 -0
- package/dist/chunk-4HHKTUW3-CQ53AiA_.mjs +3 -0
- package/dist/chunk-4Q4SM6WR-BlQvqCag.mjs +5 -0
- package/dist/chunk-55VFSPNA-DLwfww5b.mjs +3 -0
- package/dist/chunk-5QMZ5MUS-CAp625aG.mjs +5 -0
- package/dist/chunk-5QVNJEHU-dbrKfPGl.mjs +9 -0
- package/dist/chunk-5V6VZH6T-DMPvCPbn.mjs +2 -0
- package/dist/chunk-62RKD26F-B9la0pfD.mjs +21 -0
- package/dist/chunk-64BAICW3-D92CLSK-.mjs +2 -0
- package/dist/chunk-74CEPOFO-BcZUJMO1.mjs +23 -0
- package/dist/chunk-7L36YK2X-D7Z_Qw_C.mjs +3 -0
- package/dist/chunk-7TSDKFEO-DUQhJkDy.mjs +2 -0
- package/dist/chunk-A4HU7SVR-DKLaJeys.mjs +3 -0
- package/dist/chunk-A4JSPFCI-CEm2r8SB.mjs +7 -0
- package/dist/chunk-A5O5YHGN-DvJz5Cpw.mjs +2 -0
- package/dist/chunk-A65PWWJC-DV6RO_es.mjs +3 -0
- package/dist/chunk-A7A2DBEE-dTNL-45u.mjs +7 -0
- package/dist/chunk-A7ICOL4V-BvXPAaHu.mjs +14 -0
- package/dist/chunk-ALLTKNUZ-Cu6JFoC4.mjs +6 -0
- package/dist/chunk-APT7OOP2-DmUrFuRy.mjs +2 -0
- package/dist/chunk-BBXLRYSX-K758HlCs.mjs +6 -0
- package/dist/chunk-BRGMQKJV-BXc-9Cgj.mjs +63 -0
- package/dist/chunk-CR5AFCPT-DxNsgM0M.mjs +24 -0
- package/dist/chunk-CWQS3NFK-Co4ALolT.mjs +2 -0
- package/dist/chunk-D4J545R4-DkHLjHX6.mjs +12 -0
- package/dist/chunk-D6CWQ5DW-7lvT8dGP.mjs +6 -0
- package/dist/chunk-D7MEQ3VN-D8jJZr4A.mjs +5 -0
- package/dist/chunk-DCAAORBQ-C3s1D8OY.mjs +2 -0
- package/dist/chunk-DXB73IDG-DIKSLkPq.mjs +2 -0
- package/dist/chunk-EEXR5ZDP-CETL3_Uw.mjs +3 -0
- package/dist/chunk-EIZGF4BS-DOoQW9jQ.mjs +9 -0
- package/dist/chunk-F23WWYKW-BK2tpXPf.mjs +17 -0
- package/dist/chunk-F55TLFGB-Vy5RU2P3.mjs +10 -0
- package/dist/chunk-FEIOJCZD-C25Und0M.mjs +75 -0
- package/dist/chunk-FK9Q3tQk.mjs +1 -0
- package/dist/chunk-GCTKCWKD-Di-RB9Qt.mjs +4 -0
- package/dist/chunk-GFQRA5P5-DnjwTqP3.mjs +8 -0
- package/dist/chunk-GOV5EKKI-CKV9jOGv.mjs +10 -0
- package/dist/chunk-GXVXFKBA-CUKDClxt.mjs +6 -0
- package/dist/chunk-HDQ56CKY-MTQ75a8z.mjs +16 -0
- package/dist/chunk-HJQJAYMS-D-8Vc6Zb.mjs +3 -0
- package/dist/chunk-HJWBQKYG-XrOcsn2f.mjs +6 -0
- package/dist/chunk-HWBSOZZR-BZF8XsyZ.mjs +37 -0
- package/dist/chunk-HWKDQ44K-wgmyck2O.mjs +4 -0
- package/dist/chunk-I57KEIP3-DipCOPKf.mjs +11 -0
- package/dist/chunk-IPJHKYVM-C3IodQq7.mjs +2 -0
- package/dist/chunk-J642UCRS-YiNealfn.mjs +2 -0
- package/dist/chunk-JVPRLUMK-VMFWXimu.mjs +8 -0
- package/dist/chunk-KMEYNNUA-pRogdye4.mjs +16 -0
- package/dist/chunk-LL3S3NLB-ByBS5IDP.mjs +2 -0
- package/dist/chunk-LPQPILI2-FRQB9gt5.mjs +12 -0
- package/dist/chunk-LTZRCH7N-46S7WKw8.mjs +32 -0
- package/dist/chunk-LWEGUNWT-DdGmM3wr.mjs +8 -0
- package/dist/chunk-MDDMCKUK-CuRdI1Uv.mjs +7 -0
- package/dist/chunk-MDLLFABN-Wd1iVjXi.mjs +73 -0
- package/dist/chunk-MHTUABJP-BWrqic3t.mjs +9 -0
- package/dist/chunk-MIZPJHVH-DWdPvcYR.mjs +8 -0
- package/dist/chunk-MLXIYONF-CiCzoeGt.mjs +16 -0
- package/dist/chunk-MYE6AGBJ-DJo74dVC.mjs +17 -0
- package/dist/chunk-NAERJDUW-CIHrNgJB.mjs +9 -0
- package/dist/chunk-NCNPKYJZ-BVljycUZ.mjs +3 -0
- package/dist/chunk-NUYSJFDK-BTseBdxv.mjs +8 -0
- package/dist/chunk-NYQYO467-BgXuDHUQ.mjs +33 -0
- package/dist/chunk-OARHFVLG-Cr0x3Si_.mjs +21 -0
- package/dist/chunk-OCLXQMOG-BW6rwyzS.mjs +7 -0
- package/dist/chunk-OCS6LSEM-D7VAOziZ.mjs +14 -0
- package/dist/chunk-OJDRYQWQ-ikvLWpfV.mjs +2 -0
- package/dist/chunk-OL3S66CO-CQnF8cPH.mjs +100 -0
- package/dist/chunk-PBXLG62G-CgbPJTiw.mjs +9 -0
- package/dist/chunk-PP6PSHAB-CO4MYU__.mjs +5 -0
- package/dist/chunk-PYSFUGCK-DsRn64Ef.mjs +11 -0
- package/dist/chunk-QCDB2VPH-BUMOhlW7.mjs +7 -0
- package/dist/chunk-QJ7O6ZN3-F0_rcDPM.mjs +6 -0
- package/dist/chunk-R6QSAL5T-CeW6f7-x.mjs +2 -0
- package/dist/chunk-R6VWJ2ZL-FwG_Za20.mjs +2 -0
- package/dist/chunk-RPNGRAAP-BmkapBPD.mjs +8 -0
- package/dist/chunk-SDNKECQQ-DkebEzkd.mjs +6 -0
- package/dist/chunk-SYMJJMQ4-DOZMaECk.mjs +22 -0
- package/dist/chunk-T56QNPHK-DPXaSSfC.mjs +15 -0
- package/dist/chunk-TLSUDHID-BovZg0r1.mjs +7 -0
- package/dist/chunk-TOMNU26N-AAglMy4J.mjs +5 -0
- package/dist/chunk-TXBZCHCQ-WeVWfqYv.mjs +6 -0
- package/dist/chunk-UNYNJIFU-CqGlXAg7.mjs +140 -0
- package/dist/chunk-V7TAPXDL-DQgGPvBY.mjs +28 -0
- package/dist/chunk-VJFXDYWH-DIo0Ia0_.mjs +11 -0
- package/dist/chunk-VLGZJRPG-DymOu90-.mjs +17 -0
- package/dist/chunk-VOBGTVA6-Bfa1NTzt.mjs +7 -0
- package/dist/chunk-VYOJP4TV-PBsHe2md.mjs +14 -0
- package/dist/chunk-WKFATFPP-KO2zkfs2.mjs +5 -0
- package/dist/chunk-X2AJGDEF-D5w6wtaX.mjs +2 -0
- package/dist/chunk-XHM67O4N-akBjDPaR.mjs +2 -0
- package/dist/chunk-XKQRETAK-RHzVmuiF.mjs +2 -0
- package/dist/chunk-XORM457F-wr_DBBnV.mjs +288 -0
- package/dist/chunk-XVDPCNWR-DxaG1FfA.mjs +12 -0
- package/dist/chunk-YCFVLTST-Dzwevuc3.mjs +13 -0
- package/dist/chunk-YFG2CMIF-BoZQym0L.mjs +5 -0
- package/dist/chunk-YNYSPYQ5-DesxOVHh.mjs +34 -0
- package/dist/chunk-YS3AZT3J-CBc9LHIy.mjs +9 -0
- package/dist/chunk-YTNYSM6T-WMIf3AF8.mjs +12 -0
- package/dist/chunk-Z6LRHWXI-DGTVoTuf.mjs +14 -0
- package/dist/chunk-Z7JVV2SM-Cb4YKOCM.mjs +12 -0
- package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
- package/dist/cli.mjs +61 -593
- package/dist/colors-BNufdynn.mjs +2 -0
- package/dist/colors-T3xmlXQT.mjs +1 -0
- package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
- package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
- package/dist/config-schema.json +87 -0
- package/dist/config.project-local.schema.json +30 -0
- package/dist/config.project.schema.json +59 -0
- package/dist/config.user.schema.json +58 -0
- package/dist/constants-Dc6GZ6j9.mjs +2 -0
- package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
- package/dist/curl-47BFPSFW-C2kRcGkX.mjs +26 -0
- package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
- package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
- package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
- package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
- package/dist/dist-B6pNPboH.mjs +1609 -0
- package/dist/dist-DVM7wH81.mjs +359 -0
- package/dist/dist-DXLSMgBY.mjs +1 -0
- package/dist/dist-bundle-BSdjl7Rj.mjs +2 -0
- package/dist/dist-bundle-BmF5_Mcp.mjs +1 -0
- package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
- package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
- package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
- package/dist/esm-BbkJd7ro.mjs +2 -0
- package/dist/esm-CEs3LWY3.mjs +20 -0
- package/dist/execAsync-CulVJBMN.mjs +2 -0
- package/dist/execAsync-CzW9fUYQ.mjs +2 -0
- package/dist/execAsync-DuQoqWaW.mjs +2 -0
- package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
- package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
- package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
- package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
- package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
- package/dist/getMachineId-bsd-DAmB-Ym0.mjs +2 -0
- package/dist/getMachineId-bsd-FYDP9w5Q.mjs +2 -0
- package/dist/getMachineId-bsd-mPrX3ckm.mjs +2 -0
- package/dist/getMachineId-darwin-B0Qw-MTj.mjs +3 -0
- package/dist/getMachineId-darwin-C79HtyON.mjs +3 -0
- package/dist/getMachineId-darwin-Co8Jnu5v.mjs +3 -0
- package/dist/getMachineId-linux-BBORs2cS.mjs +2 -0
- package/dist/getMachineId-linux-BizmCjYq.mjs +2 -0
- package/dist/getMachineId-linux-BvLCCmKQ.mjs +2 -0
- package/dist/getMachineId-unsupported-Bgp-Es9j.mjs +2 -0
- package/dist/getMachineId-unsupported-CbR45h2D.mjs +2 -0
- package/dist/getMachineId-unsupported-DbGFOAw1.mjs +2 -0
- package/dist/getMachineId-win-CT_Y5i_4.mjs +2 -0
- package/dist/getMachineId-win-Cy0XHq4X.mjs +2 -0
- package/dist/getMachineId-win-D5gDnBHa.mjs +2 -0
- package/dist/git-handle-DwfYp_z--CfyPz4Dz.mjs +10 -0
- package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
- package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
- package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
- package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
- package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
- package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
- package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
- package/dist/index.d.mts +52 -76
- package/dist/index.mjs +1 -1
- package/dist/init-B7qJnXKB.mjs +397 -0
- package/dist/init-DiH9oQ6_.mjs +1 -0
- package/dist/{is-object-WgQ3abDo.mjs → is-object-DF0ZeuvD.mjs} +1 -1
- package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
- package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
- package/dist/js-exec-M6UR76J5-IyD-lpzv.mjs +97 -0
- package/dist/lib-BOCdCkg7.mjs +2 -0
- package/dist/libesm-YL3Bqolr.mjs +14 -0
- package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
- package/dist/loader-BQf8AJXb.mjs +4 -0
- package/dist/loader-C8lkPKn8.mjs +1 -0
- package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
- package/dist/lzma-vr8hBkhz.mjs +2 -0
- package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
- package/dist/mrmime-C2W7cgq2.mjs +2 -0
- package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
- package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
- package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
- package/dist/{open-browser-rbaiEzUy.mjs → open-browser-BZZK_gJj.mjs} +1 -1
- package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
- package/dist/preview-CN1rHXBb.mjs +1 -0
- package/dist/preview-DUTos2Es.mjs +3 -0
- package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
- package/dist/public/assets/ActivityPanelDiffView-DoHWP1ak.js +13 -0
- package/dist/public/assets/ActivityPanelDiffView-legcy4jI.css +1 -0
- package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
- package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
- package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
- package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
- package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
- package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
- package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
- package/dist/public/assets/agent-presence-Ds2n3U5P.js +1 -0
- package/dist/public/assets/arc-BL_OKZmE.js +1 -0
- package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
- package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
- package/dist/public/assets/array-X0JlPOfd.js +1 -0
- package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
- package/dist/public/assets/button-BsFpqlpT.js +1 -0
- package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
- package/dist/public/assets/channel-CR-xJel6.js +1 -0
- package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
- package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
- package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
- package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
- package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
- package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
- package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
- package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
- package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
- package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
- package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
- package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
- package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
- package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
- package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
- package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
- package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
- package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
- package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
- package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
- package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
- package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
- package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
- package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
- package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
- package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
- package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
- package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
- package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
- package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
- package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
- package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
- package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
- package/dist/public/assets/compiler-runtime-CVnuRdak.js +1 -0
- package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
- package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
- package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
- package/dist/public/assets/dagre-BEdPLXba.js +1 -0
- package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
- package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
- package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
- package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
- package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
- package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
- package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
- package/dist/public/assets/dist-B4kUko7n.js +9 -0
- package/dist/public/assets/dist-BH1b1nWB.js +1 -0
- package/dist/public/assets/dist-BOapDt7N.js +1 -0
- package/dist/public/assets/dist-CIRuNcH5.js +1 -0
- package/dist/public/assets/dist-D08h1pJc.js +1 -0
- package/dist/public/assets/dist-S8LJmtzL.js +1 -0
- package/dist/public/assets/dist-VyzSEzD4.js +1 -0
- package/dist/public/assets/dist-nPpvoMNC.js +13 -0
- package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
- package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
- package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
- package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
- package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
- package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
- package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
- package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
- package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
- package/dist/public/assets/index-B1y9QLHF.js +1858 -0
- package/dist/public/assets/index-DoXig4bf.css +1 -0
- package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
- package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
- package/dist/public/assets/init-CBj3ecIW.js +1 -0
- package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
- package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
- package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
- package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
- package/dist/public/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/public/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
- package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
- package/dist/public/assets/katex-qwlL5fSd.js +257 -0
- package/dist/public/assets/line-_p5Px7MV.js +1 -0
- package/dist/public/assets/linear-DwuDS4qT.js +1 -0
- package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
- package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
- package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
- package/dist/public/assets/min-HKuGSUqa.js +1 -0
- package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
- package/dist/public/assets/now-BBH4UqDm.js +1 -0
- package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
- package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
- package/dist/public/assets/panel-BgMqDESF.js +1 -0
- package/dist/public/assets/path-rUlDLHdA.js +1 -0
- package/dist/public/assets/pdf-a35ddrIO.js +54 -0
- package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
- package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
- package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
- package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
- package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
- package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
- package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
- package/dist/public/assets/reduce-DotyoGA7.js +1 -0
- package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
- package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
- package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
- package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
- package/dist/public/assets/src-C9jsS3p4.js +1 -0
- package/dist/public/assets/src-zyMpT2LE.js +1 -0
- package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
- package/dist/public/assets/stex-BKMR5xQj.js +1 -0
- package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
- package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
- package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
- package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
- package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
- package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
- package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
- package/dist/public/assets/w3c-keyname-Dfj2imOv.js +1 -0
- package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
- package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
- package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
- package/dist/public/favicon.svg +19 -4
- package/dist/public/index.html +57 -4
- package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
- package/dist/python3-AUFTPCU6-BaJugIdp.mjs +12 -0
- package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
- package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
- package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
- package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
- package/dist/rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs +2 -0
- package/dist/schemas/v0/config.project-local.schema.json +30 -0
- package/dist/schemas/v0/config.project.schema.json +59 -0
- package/dist/schemas/v0/config.user.schema.json +58 -0
- package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
- package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
- package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
- package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
- package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
- package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
- package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
- package/dist/src-Cak39c0B.mjs +1 -0
- package/dist/start-BXk7J0Kh.mjs +1 -0
- package/dist/start-D6Ip3u6P.mjs +3 -0
- package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
- package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
- package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
- package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
- package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
- package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
- package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
- package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
- package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
- package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
- package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
- package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
- package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
- package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
- package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
- package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
- package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
- package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
- package/package.json +25 -19
- package/scripts/build-config-schema.mjs +69 -0
- package/scripts/postinstall.mjs +33 -0
- package/scripts/probe-exec.ts +98 -0
- package/scripts/probe-read-document.ts +100 -0
- package/dist/banner-De2a4ivv.mjs +0 -3
- package/dist/colors-C2vrt_OY.mjs +0 -1
- package/dist/colors-CshxhXdR.mjs +0 -2
- package/dist/constants-yNFhYMHH.mjs +0 -2
- package/dist/git-handle-B5vQdmjQ.mjs +0 -2
- package/dist/git-handle-DGTzeK-H.mjs +0 -1
- package/dist/init-BFZ4vnnX.mjs +0 -1
- package/dist/init-BH38QtfV.mjs +0 -6
- package/dist/init-BzEVODBI.mjs +0 -230
- package/dist/init-DCZhpKSO.mjs +0 -1
- package/dist/keepalive-Bp0nJiwT.mjs +0 -2
- package/dist/loader-CoGCjTcI.mjs +0 -3
- package/dist/loader-D8pf7fi6.mjs +0 -1
- package/dist/paths-C7TuvND0.mjs +0 -2
- package/dist/paths-CWTmBbr0.mjs +0 -1
- package/dist/preview-C-NvAf2r.mjs +0 -1
- package/dist/preview-Cmt2vdUG.mjs +0 -3
- package/dist/public/assets/dist-BDfJLgAe.js +0 -1
- package/dist/public/assets/dist-BSbGs59J.js +0 -1
- package/dist/public/assets/dist-BXK-5ZOh.js +0 -1
- package/dist/public/assets/dist-BipKfxqO.js +0 -15
- package/dist/public/assets/dist-C9Jm0v8G.js +0 -1
- package/dist/public/assets/dist-CDCPrjhY.js +0 -1
- package/dist/public/assets/dist-CHAniM6T.js +0 -9
- package/dist/public/assets/dist-CYsaeLzc.js +0 -1
- package/dist/public/assets/dist-Cq9Fm8Xi.js +0 -1
- package/dist/public/assets/dist-Ct0eqVZy.js +0 -1
- package/dist/public/assets/dist-PgXBewk9.js +0 -23
- package/dist/public/assets/index-BbLzex1v.css +0 -2
- package/dist/public/assets/index-gSm49umN.js +0 -409
- package/dist/src-B7snRveE.mjs +0 -1
- package/dist/src-CEP6NuWY.mjs +0 -1
- package/dist/src-EGbU552u.mjs +0 -278
- package/dist/start-BYXBgVJW.mjs +0 -1
- package/dist/start-DqcFf-BT.mjs +0 -2
- /package/dist/public/assets/{go-IODVg4Ok.js → go-a33xvodr.js} +0 -0
- /package/dist/public/assets/{shell-COsTRxlr.js → shell-40VLet8r.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-XVDPCNWR-DxaG1FfA.mjs";export{e as treeCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CeW6f7-x.mjs";export{e as falseCommand,t as trueCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PYSFUGCK-DsRn64Ef.mjs";export{e as unexpand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-WKFATFPP-KO2zkfs2.mjs";export{e as uniqCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GXVXFKBA-CUKDClxt.mjs";export{e as wcCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A65PWWJC-DV6RO_es.mjs";export{e as whichCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-HJQJAYMS-D-8Vc6Zb.mjs";export{e as whoami};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-SYMJJMQ4-DOZMaECk.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-BBXLRYSX-K758HlCs.mjs";import"./chunk-F55TLFGB-Vy5RU2P3.mjs";import{n as e}from"./chunk-UNYNJIFU-CqGlXAg7.mjs";export{e as xanCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-SYMJJMQ4-DOZMaECk.mjs";import{c as e}from"./chunk-F55TLFGB-Vy5RU2P3.mjs";export{e as cmdView};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-TOMNU26N-AAglMy4J.mjs";export{e as xargsCommand};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-SYMJJMQ4-DOZMaECk.mjs";import"./chunk-7TSDKFEO-DUQhJkDy.mjs";import"./chunk-BBXLRYSX-K758HlCs.mjs";import{t as e}from"./chunk-XORM457F-wr_DBBnV.mjs";export{e as yqCommand};
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/open-knowledge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-beta.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/inkeep/open-knowledge-legacy.git"
|
|
9
|
+
},
|
|
6
10
|
"exports": {
|
|
7
11
|
".": {
|
|
8
12
|
"types": "./dist/index.d.mts",
|
|
@@ -10,44 +14,47 @@
|
|
|
10
14
|
}
|
|
11
15
|
},
|
|
12
16
|
"bin": {
|
|
13
|
-
"open-knowledge": "
|
|
17
|
+
"open-knowledge": "dist/cli.mjs",
|
|
18
|
+
"ok": "dist/cli.mjs"
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
16
21
|
"dist",
|
|
22
|
+
"scripts",
|
|
17
23
|
"!dist/**/*.map"
|
|
18
24
|
],
|
|
19
25
|
"engines": {
|
|
20
|
-
"node": ">=
|
|
26
|
+
"node": ">=24"
|
|
21
27
|
},
|
|
22
28
|
"publishConfig": {
|
|
23
29
|
"access": "public"
|
|
24
30
|
},
|
|
25
31
|
"scripts": {
|
|
26
32
|
"build:cli": "tsdown",
|
|
27
|
-
"build:
|
|
33
|
+
"build:app": "cp -r ../app/dist dist/public",
|
|
34
|
+
"build:skill-asset": "mkdir -p dist/assets/skills/open-knowledge && cp ../server/assets/skills/open-knowledge/SKILL.md dist/assets/skills/open-knowledge/SKILL.md",
|
|
35
|
+
"build:notices": "mkdir -p dist && cp ../../THIRD_PARTY_NOTICES.md dist/THIRD_PARTY_NOTICES.md",
|
|
36
|
+
"build:schema": "bun --conditions=development scripts/build-config-schema.mjs",
|
|
37
|
+
"build:assets": "bun run build:app && bun run build:skill-asset && bun run build:notices && bun run build:schema",
|
|
28
38
|
"build": "bun run build:cli && bun run build:assets",
|
|
29
|
-
"
|
|
39
|
+
"postinstall": "node scripts/postinstall.mjs",
|
|
40
|
+
"test": "bun run build:schema && bun test",
|
|
30
41
|
"typecheck": "tsc --noEmit",
|
|
31
|
-
"prepublishOnly": "bun run build && bun run test"
|
|
42
|
+
"prepublishOnly": "bash ../../scripts/check-notices-clean.sh && bun run build && bun run test"
|
|
32
43
|
},
|
|
33
44
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"@hocuspocus/provider": "4.0.0-rc.1",
|
|
45
|
+
"@inquirer/checkbox": "^5.0.11",
|
|
36
46
|
"@inquirer/password": "^5.0.11",
|
|
37
47
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
38
48
|
"@napi-rs/keyring": "^1.2.0",
|
|
39
49
|
"@octokit/auth-oauth-device": "^8.0.3",
|
|
50
|
+
"@octokit/request": "^10.0.8",
|
|
40
51
|
"@octokit/rest": "^22.0.1",
|
|
41
|
-
"chokidar": "^5.0.0",
|
|
42
52
|
"cli-boxes": "^4.0.1",
|
|
43
53
|
"commander": "^14.0.0",
|
|
44
|
-
"just-bash": "^2.14.1",
|
|
45
54
|
"picocolors": "^1.1.1",
|
|
46
|
-
"
|
|
47
|
-
"shell-quote": "^1.8.3",
|
|
48
|
-
"simple-git": "^3.35.2",
|
|
55
|
+
"simple-git": "^3.36.0",
|
|
49
56
|
"sirv": "^3.0.1",
|
|
50
|
-
"
|
|
57
|
+
"smol-toml": "^1.6.1",
|
|
51
58
|
"yaml": "^2.7.1",
|
|
52
59
|
"zod": "^4.3.6"
|
|
53
60
|
},
|
|
@@ -55,13 +62,12 @@
|
|
|
55
62
|
"@parcel/watcher": "^2.5.6"
|
|
56
63
|
},
|
|
57
64
|
"devDependencies": {
|
|
65
|
+
"@inkeep/open-knowledge-app": "workspace:*",
|
|
58
66
|
"@inkeep/open-knowledge-core": "workspace:*",
|
|
59
67
|
"@inkeep/open-knowledge-server": "workspace:*",
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"@types/shell-quote": "^1.7.5",
|
|
64
|
-
"@types/ws": "^8.18.1",
|
|
68
|
+
"@types/node": "^24.7.0",
|
|
69
|
+
"ajv": "^8.18.0",
|
|
70
|
+
"ajv-formats": "^3.0.1",
|
|
65
71
|
"tsdown": "^0.21.7",
|
|
66
72
|
"typescript": "^5.9.3"
|
|
67
73
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, resolve } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { CONFIG_SCHEMA_MAJOR_PATH, ConfigSchema, fieldRegistry } from '@inkeep/open-knowledge-core';
|
|
6
|
+
import { z } from 'zod';
|
|
7
|
+
|
|
8
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const distDir = resolve(here, '..', 'dist');
|
|
10
|
+
const versionedDir = resolve(distDir, 'schemas', CONFIG_SCHEMA_MAJOR_PATH);
|
|
11
|
+
|
|
12
|
+
const fullSchema = z.toJSONSchema(ConfigSchema, {
|
|
13
|
+
io: 'input',
|
|
14
|
+
target: 'draft-7',
|
|
15
|
+
metadata: fieldRegistry,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
mkdirSync(distDir, { recursive: true });
|
|
19
|
+
mkdirSync(versionedDir, { recursive: true });
|
|
20
|
+
|
|
21
|
+
function pruneByScope(node, targetScope) {
|
|
22
|
+
if (node === null || typeof node !== 'object') return node;
|
|
23
|
+
if (Array.isArray(node)) return node.map((item) => pruneByScope(item, targetScope));
|
|
24
|
+
|
|
25
|
+
const leafScope = node.scope;
|
|
26
|
+
if (leafScope !== undefined && leafScope !== 'either' && leafScope !== targetScope) {
|
|
27
|
+
return undefined; // signals to caller to drop this property
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const out = { ...node };
|
|
31
|
+
if (out.properties && typeof out.properties === 'object') {
|
|
32
|
+
const newProps = {};
|
|
33
|
+
let kept = 0;
|
|
34
|
+
for (const [key, value] of Object.entries(out.properties)) {
|
|
35
|
+
const filtered = pruneByScope(value, targetScope);
|
|
36
|
+
if (filtered !== undefined) {
|
|
37
|
+
newProps[key] = filtered;
|
|
38
|
+
kept += 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
if (kept === 0 && leafScope === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
out.properties = newProps;
|
|
45
|
+
if (Array.isArray(out.required)) {
|
|
46
|
+
out.required = out.required.filter((k) => k in newProps);
|
|
47
|
+
if (out.required.length === 0) delete out.required;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const writeSchema = (path, schema) => {
|
|
54
|
+
writeFileSync(path, `${JSON.stringify(schema, null, 2)}\n`, 'utf-8');
|
|
55
|
+
console.log(`[build:schema] wrote ${path} (${JSON.stringify(schema).length} bytes)`);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const projectSchema = pruneByScope(fullSchema, 'project');
|
|
59
|
+
const userSchema = pruneByScope(fullSchema, 'user');
|
|
60
|
+
const projectLocalSchema = pruneByScope(fullSchema, 'project-local');
|
|
61
|
+
|
|
62
|
+
writeSchema(resolve(versionedDir, 'config.project.schema.json'), projectSchema);
|
|
63
|
+
writeSchema(resolve(versionedDir, 'config.user.schema.json'), userSchema);
|
|
64
|
+
writeSchema(resolve(versionedDir, 'config.project-local.schema.json'), projectLocalSchema);
|
|
65
|
+
|
|
66
|
+
writeSchema(resolve(distDir, 'config-schema.json'), fullSchema);
|
|
67
|
+
writeSchema(resolve(distDir, 'config.project.schema.json'), projectSchema);
|
|
68
|
+
writeSchema(resolve(distDir, 'config.user.schema.json'), userSchema);
|
|
69
|
+
writeSchema(resolve(distDir, 'config.project-local.schema.json'), projectLocalSchema);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
async function run() {
|
|
4
|
+
let installUserSkill;
|
|
5
|
+
try {
|
|
6
|
+
const mod = await import('../dist/index.mjs');
|
|
7
|
+
installUserSkill = mod.installUserSkill;
|
|
8
|
+
} catch {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
if (typeof installUserSkill !== 'function') return;
|
|
13
|
+
|
|
14
|
+
let result;
|
|
15
|
+
try {
|
|
16
|
+
result = await installUserSkill();
|
|
17
|
+
} catch {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (result === 'installed') {
|
|
22
|
+
process.stdout.write('[open-knowledge] Agent Skill installed to detected agent hosts.\n');
|
|
23
|
+
} else if (result === 'failed') {
|
|
24
|
+
process.stderr.write(
|
|
25
|
+
'[open-knowledge] Agent Skill auto-install failed; run manually: ' +
|
|
26
|
+
"npx skills@~1.5.0 add <bundled-path> --agent '*' -g -y --copy\n",
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
run().finally(() => {
|
|
32
|
+
process.exit(0);
|
|
33
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { tmpdir } from 'node:os';
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
|
+
import { setTimeout as wait } from 'node:timers/promises';
|
|
5
|
+
import {
|
|
6
|
+
buildExecResult,
|
|
7
|
+
commitWip,
|
|
8
|
+
type ExecStructuredResult,
|
|
9
|
+
initShadowRepo,
|
|
10
|
+
type WriterIdentity,
|
|
11
|
+
} from '@inkeep/open-knowledge-server';
|
|
12
|
+
import simpleGit from 'simple-git';
|
|
13
|
+
|
|
14
|
+
const root = resolve(tmpdir(), `ok-exec-probe-${Date.now()}`);
|
|
15
|
+
mkdirSync(root, { recursive: true });
|
|
16
|
+
|
|
17
|
+
async function main(): Promise<void> {
|
|
18
|
+
const git = simpleGit(root);
|
|
19
|
+
await git.init();
|
|
20
|
+
await git.raw('config', 'user.name', 'Probe');
|
|
21
|
+
await git.raw('config', 'user.email', 'probe@t.test');
|
|
22
|
+
writeFileSync(resolve(root, 'README.md'), '# probe\n');
|
|
23
|
+
await git.add('README.md');
|
|
24
|
+
await git.commit('init');
|
|
25
|
+
|
|
26
|
+
const contentDir = resolve(root, 'articles');
|
|
27
|
+
mkdirSync(contentDir, { recursive: true });
|
|
28
|
+
writeFileSync(
|
|
29
|
+
resolve(contentDir, 'auth.md'),
|
|
30
|
+
'---\ntitle: Auth\ndescription: OAuth 2.0 flow\ntags:\n - auth\n - oauth\n---\n\n# Auth\n\nOAuth is...\n',
|
|
31
|
+
);
|
|
32
|
+
writeFileSync(
|
|
33
|
+
resolve(contentDir, 'sso.md'),
|
|
34
|
+
'---\ntitle: SSO\ntags:\n - auth\n---\n\n# SSO\n\noauth provider...\n',
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const shadow = await initShadowRepo(root);
|
|
38
|
+
const branch = (await simpleGit(root).revparse(['--abbrev-ref', 'HEAD'])).trim();
|
|
39
|
+
const agent: WriterIdentity = { id: 'agent-claude-7x', name: 'Claude (Tim)', email: 'a@ok.test' };
|
|
40
|
+
const human: WriterIdentity = { id: 'human-tim', name: 'Tim Cardona', email: 't@ok.test' };
|
|
41
|
+
await commitWip(shadow, human, contentDir, 'initial auth doc', branch);
|
|
42
|
+
await wait(1100);
|
|
43
|
+
writeFileSync(resolve(contentDir, 'auth.md'), '# Auth v2\n\noauth rewrite.\n');
|
|
44
|
+
await commitWip(shadow, agent, contentDir, 'rewrite §3 oauth examples', branch);
|
|
45
|
+
|
|
46
|
+
const deps = { projectDir: root, serverUrl: undefined as string | undefined };
|
|
47
|
+
|
|
48
|
+
const runs: Array<{ label: string; cmd: string }> = [
|
|
49
|
+
{ label: 'cat single file (rich enrichment)', cmd: 'cat articles/auth.md' },
|
|
50
|
+
{ label: 'ls directory (slim enrichment each)', cmd: 'ls articles/' },
|
|
51
|
+
{ label: 'grep | head pipe', cmd: 'grep -rn oauth articles/ | head -5' },
|
|
52
|
+
{ label: 'denied: awk (unknown_command)', cmd: 'awk BEGIN{print}' },
|
|
53
|
+
{ label: 'denied: redirection (write_blocked)', cmd: 'cat articles/auth.md > out.txt' },
|
|
54
|
+
{ label: 'denied: subshell (shell_construct_blocked)', cmd: 'cat `ls`' },
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
for (const { label, cmd } of runs) {
|
|
58
|
+
console.log('\n═══════════════════════════════════════════════════════════');
|
|
59
|
+
console.log(` ${label}`);
|
|
60
|
+
console.log(` exec(${JSON.stringify(cmd)})`);
|
|
61
|
+
console.log('═══════════════════════════════════════════════════════════');
|
|
62
|
+
const result = (await buildExecResult({ command: cmd }, deps)) as {
|
|
63
|
+
content: Array<{ text: string }>;
|
|
64
|
+
structuredContent: ExecStructuredResult;
|
|
65
|
+
isError?: boolean;
|
|
66
|
+
};
|
|
67
|
+
console.log(result.content[0].text.slice(0, 900));
|
|
68
|
+
if (result.structuredContent.error) {
|
|
69
|
+
console.log(`\n [error.category] ${result.structuredContent.error.category}`);
|
|
70
|
+
} else {
|
|
71
|
+
console.log(`\n [enrichedPaths] ${result.structuredContent.enrichedPaths.length} path(s)`);
|
|
72
|
+
for (const m of result.structuredContent.enrichedPaths) {
|
|
73
|
+
if ((m as { type?: string }).type === 'directory') {
|
|
74
|
+
const d = m as {
|
|
75
|
+
path: string;
|
|
76
|
+
recursiveMdCount: number;
|
|
77
|
+
childDirCount: number;
|
|
78
|
+
};
|
|
79
|
+
console.log(
|
|
80
|
+
` - ${d.path}/ (directory): ${d.recursiveMdCount} md, ${d.childDirCount} subdirs`,
|
|
81
|
+
);
|
|
82
|
+
} else {
|
|
83
|
+
const f = m as { path: string; title?: string; historySource: unknown };
|
|
84
|
+
const rich = f.historySource !== null ? ' (rich)' : '';
|
|
85
|
+
console.log(` - ${f.path}${rich}: ${f.title ?? '(no title)'}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
console.log('\n═══════════════════════════════════════════════════════════');
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
try {
|
|
95
|
+
await main();
|
|
96
|
+
} finally {
|
|
97
|
+
rmSync(root, { recursive: true, force: true });
|
|
98
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { tmpdir } from 'node:os';
|
|
3
|
+
import { resolve } from 'node:path';
|
|
4
|
+
import { setTimeout as wait } from 'node:timers/promises';
|
|
5
|
+
import {
|
|
6
|
+
buildReadResult,
|
|
7
|
+
commitUpstreamImport,
|
|
8
|
+
commitWip,
|
|
9
|
+
initShadowRepo,
|
|
10
|
+
type WriterIdentity,
|
|
11
|
+
} from '@inkeep/open-knowledge-server';
|
|
12
|
+
import simpleGit from 'simple-git';
|
|
13
|
+
|
|
14
|
+
const root = resolve(tmpdir(), `ok-probe-${Date.now()}`);
|
|
15
|
+
mkdirSync(root, { recursive: true });
|
|
16
|
+
|
|
17
|
+
async function main(): Promise<void> {
|
|
18
|
+
const git = simpleGit(root);
|
|
19
|
+
await git.init();
|
|
20
|
+
await git.raw('config', 'user.name', 'Probe');
|
|
21
|
+
await git.raw('config', 'user.email', 'probe@t.test');
|
|
22
|
+
writeFileSync(resolve(root, 'README.md'), '# probe\n');
|
|
23
|
+
await git.add('README.md');
|
|
24
|
+
await git.commit('init');
|
|
25
|
+
|
|
26
|
+
const contentDir = resolve(root, 'content');
|
|
27
|
+
mkdirSync(contentDir, { recursive: true });
|
|
28
|
+
writeFileSync(
|
|
29
|
+
resolve(contentDir, 'auth.md'),
|
|
30
|
+
`---
|
|
31
|
+
title: Auth
|
|
32
|
+
description: OAuth 2.0 flow for SSO
|
|
33
|
+
tags:
|
|
34
|
+
- auth
|
|
35
|
+
- oauth
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# Auth
|
|
39
|
+
|
|
40
|
+
OAuth is a protocol that...
|
|
41
|
+
`,
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
const shadow = await initShadowRepo(root);
|
|
45
|
+
const branch = (await simpleGit(root).revparse(['--abbrev-ref', 'HEAD'])).trim();
|
|
46
|
+
|
|
47
|
+
const agent: WriterIdentity = {
|
|
48
|
+
id: 'agent-claude-code-7x',
|
|
49
|
+
name: 'Claude Code (Tim)',
|
|
50
|
+
email: 'agent@ok.test',
|
|
51
|
+
};
|
|
52
|
+
const human: WriterIdentity = {
|
|
53
|
+
id: 'human-tim',
|
|
54
|
+
name: 'Tim Cardona',
|
|
55
|
+
email: 'tim@ok.test',
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
await commitWip(shadow, human, contentDir, 'initial draft of auth doc', branch);
|
|
59
|
+
await wait(1100);
|
|
60
|
+
writeFileSync(resolve(contentDir, 'auth.md'), '# Auth v2\n\nRewrote §3 oauth examples.\n');
|
|
61
|
+
await commitWip(shadow, agent, contentDir, 'rewrite §3 oauth examples', branch);
|
|
62
|
+
await wait(1100);
|
|
63
|
+
writeFileSync(resolve(contentDir, 'auth.md'), '# Auth v3\n\nFixed typo.\n');
|
|
64
|
+
await commitWip(shadow, human, contentDir, 'typo fix', branch);
|
|
65
|
+
await wait(1100);
|
|
66
|
+
const oldHead = 'a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0';
|
|
67
|
+
const newHead = 'f0e1d2c3b4a5f6e7d8c9b0a1f2e3d4c5b6a7f8e9';
|
|
68
|
+
await commitUpstreamImport(shadow, contentDir, oldHead, newHead, branch);
|
|
69
|
+
|
|
70
|
+
const output = await buildReadResult(
|
|
71
|
+
{ path: 'content/auth.md' },
|
|
72
|
+
{
|
|
73
|
+
projectDir: root,
|
|
74
|
+
serverUrl: undefined, // disk-only, no Hocuspocus → backlinkCount stays null
|
|
75
|
+
config: {
|
|
76
|
+
mcp: {
|
|
77
|
+
tools: {
|
|
78
|
+
read_document: { historyDepth: 5 },
|
|
79
|
+
// biome-ignore lint/suspicious/noExplicitAny: probe-only cast; full config not needed
|
|
80
|
+
} as any,
|
|
81
|
+
// biome-ignore lint/suspicious/noExplicitAny: probe-only cast
|
|
82
|
+
} as any,
|
|
83
|
+
// biome-ignore lint/suspicious/noExplicitAny: probe-only cast
|
|
84
|
+
} as any,
|
|
85
|
+
},
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
console.log('═══════════════════════════════════════════════════════════');
|
|
89
|
+
console.log(' end-to-end probe: buildReadResult via shadow-repo');
|
|
90
|
+
console.log('═══════════════════════════════════════════════════════════');
|
|
91
|
+
console.log(output);
|
|
92
|
+
console.log('═══════════════════════════════════════════════════════════');
|
|
93
|
+
console.log(` project root: ${root}`);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
try {
|
|
97
|
+
await main();
|
|
98
|
+
} finally {
|
|
99
|
+
rmSync(root, { recursive: true, force: true });
|
|
100
|
+
}
|
package/dist/banner-De2a4ivv.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t,n,t as r}from"./colors-CshxhXdR.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-De2a4ivv.mjs.map
|
package/dist/colors-C2vrt_OY.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,o as n,r}from"./colors-CshxhXdR.mjs";export{t as dim,r as error,e as info,n as warning};
|
package/dist/colors-CshxhXdR.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.cyan(t),i=t=>e.gray(t),a=t=>e.bold(t);function o(t,n){return e.isColorSupported?`\u001B]8;;${n}\u0007${t}\u001B]8;;\u0007`:t}export{o as a,r as i,i as n,n as o,t as r,a as t};
|
|
2
|
-
//# sourceMappingURL=colors-CshxhXdR.mjs.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{resolve as e}from"node:path";import t from"simple-git";const n=new class{_tail=Promise.resolve();enqueue(e){let t=this._tail.then(()=>e());return this._tail=t.catch(()=>void 0),t}};function r(e){return n.enqueue(e)}function i(n,r={}){let{credentialArgs:i=[],gitIndexFile:a}=r,o={};return a&&(o.GIT_INDEX_FILE=e(n,a)),{git:t({baseDir:n,config:i.length>=2?[i[1]]:[]}).env(o),projectDir:n,credentialArgs:i}}export{r as n,i as t};
|
|
2
|
-
//# sourceMappingURL=git-handle-B5vQdmjQ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./git-handle-B5vQdmjQ.mjs";export{e as createGitInstance};
|
package/dist/init-BFZ4vnnX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./init-BH38QtfV.mjs";export{r as detectInstalledEditors,t as formatInitResult,n as initCommand,e as runInit};
|
package/dist/init-BH38QtfV.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as e,i as t}from"./constants-yNFhYMHH.mjs";import{c as n,l as r}from"./init-BzEVODBI.mjs";import{t as i}from"./preview-Cmt2vdUG.mjs";import{o as a}from"./colors-CshxhXdR.mjs";import{t as o}from"./is-object-WgQ3abDo.mjs";import{Command as s}from"commander";import{existsSync as c,mkdirSync as l,readFileSync as u,writeFileSync as d}from"node:fs";import{homedir as f}from"node:os";import{dirname as p,isAbsolute as m,join as h,relative as g,resolve as _}from"node:path";const v=[`claude`,`cursor`,`vscode`,`windsurf`],y=[`@inkeep/open-knowledge`,`mcp`],b={claude:{id:`claude`,label:`Claude Code`,configPath:e=>h(e,`.mcp.json`),topLevelKey:`mcpServers`,buildEntry:()=>({command:`npx`,args:y}),scope:`project`,instructionsPath:e=>h(e,`CLAUDE.md`)},cursor:{id:`cursor`,label:`Cursor`,configPath:e=>h(e,`.cursor`,`mcp.json`),topLevelKey:`mcpServers`,buildEntry:()=>({command:`npx`,args:y}),scope:`project`},vscode:{id:`vscode`,label:`VS Code`,configPath:e=>h(e,`.vscode`,`mcp.json`),topLevelKey:`servers`,buildEntry:()=>({type:`stdio`,command:`npx`,args:y}),scope:`project`},windsurf:{id:`windsurf`,label:`Windsurf`,configPath:(e,t)=>h(t??f(),`.codeium`,`windsurf`,`mcp_config.json`),topLevelKey:`mcpServers`,buildEntry:()=>({command:`npx`,args:y}),scope:`global`}};function x(e){let t=e.filter(e=>!(e in b));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${v.join(`, `)}`);return e.map(e=>b[e])}function S(e){if(!c(e))return{};let t=u(e,`utf-8`).trim();if(t===``)return{};try{let n=JSON.parse(t);if(o(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 C(e,t){l(p(e),{recursive:!0}),d(e,`${JSON.stringify(t,null,2)}\n`,`utf-8`)}const w=`0.0.1`,T=`open-knowledge-ui`;function E(e,t){let n=[];e.runtimeExecutable!==t.runtimeExecutable&&n.push(`runtimeExecutable`);let r=e.runtimeArgs;return Array.isArray(r)&&r.length===t.runtimeArgs.length&&r.every((e,n)=>e===t.runtimeArgs[n])||n.push(`runtimeArgs`),e.port!==t.port&&n.push(`port`),n}function D(e,t){let n=h(e,`.claude`,`launch.json`),r={name:T,runtimeExecutable:`npx`,runtimeArgs:[`@inkeep/open-knowledge`,`ui`],port:3e3};try{if(!c(n))return l(p(n),{recursive:!0}),d(n,`${JSON.stringify({version:w,configurations:[r]},null,2)}\n`,`utf-8`),{action:`created`,configPath:n};let e=u(n,`utf-8`).trim(),i=e?JSON.parse(e):{};if(!o(i))return{action:`failed`,configPath:n,error:`launch.json root is not an object`};let a=Array.isArray(i.configurations)?i.configurations:[],s=a.findIndex(e=>o(e)&&e.name===T);if(s>=0&&!t){let e=a[s],t=E(e,r);return t.length>0?{action:`skipped-stale`,configPath:n,staleFields:t}:{action:`skipped-existing`,configPath:n}}s>=0?a[s]=r:a.push(r);let f={...i,version:i.version??w,configurations:a};return d(n,`${JSON.stringify(f,null,2)}\n`,`utf-8`),{action:`merged`,configPath:n}}catch(e){return{action:`failed`,configPath:n,error:e instanceof Error?e.message:String(e)}}}function O(e,n,r,i){let a=e.configPath(n,i),o;try{o=S(a)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:a,error:t instanceof Error?t.message:String(t)}}let s=o[e.topLevelKey]??{},c=s[t];if(c&&!r)return{editorId:e.id,label:e.label,action:`skipped-existing`,configPath:a};let l={...o,[e.topLevelKey]:{...s,[t]:e.buildEntry()}};try{C(a,l)}catch(t){return{editorId:e.id,label:e.label,action:`failed`,configPath:a,error:t instanceof Error?t.message:String(t)}}return{editorId:e.id,label:e.label,action:c?`overwritten`:`written`,configPath:a}}function k(e={}){let t=_(e.cwd??process.cwd()),i;try{i=n(t)}catch(e){return{contentCreated:[],contentSkipped:[],editors:[],rootInstructions:[],mcpAction:`failed`,mcpPath:h(t,`.mcp.json`),mcpError:`Content scaffolding failed: ${e instanceof Error?e.message:String(e)}`}}let a=e.editors??[`claude`],o=x(a),s=[];for(let n of o){if(e.mcp===!1){s.push({editorId:n.id,label:n.label,action:`skipped-flag`,configPath:n.configPath(t,e.home)});continue}s.push(O(n,t,e.force??!1,e.home))}let c=a.includes(`claude`)&&e.mcp!==!1?D(t,e.force??!1):void 0,l=o.map(e=>e.instructionsPath?.(t)).filter(e=>e!==void 0).map(e=>m(e)?g(t,e):e),u=e.rootInstructions===!1?[]:r(t,e.force??!1,l),d=s.find(e=>e.editorId===`claude`)??s[0]??{action:`skipped-flag`,configPath:h(t,`.mcp.json`)};return{contentCreated:i.created,contentSkipped:i.skipped,editors:s,rootInstructions:u,launchJson:c,mcpAction:d.action,mcpPath:d.configPath,mcpError:`error`in d?d.error:void 0}}function A(t,n){let r=[],o=h(n,e);if(t.contentCreated.length>0?(r.push(`Content scaffolded at ${o}/`),r.push(` Created: ${t.contentCreated.join(`, `)}`)):r.push(`Content already present at ${o}/`),t.contentSkipped.length>0&&r.push(` Skipped (already exist): ${t.contentSkipped.join(`, `)}`),r.push(``),t.editors.length===0)t.mcpError&&r.push(`Warning: ${t.mcpError}`);else{let e=t.editors.some(e=>e.action===`written`||e.action===`overwritten`),o=t.editors.some(e=>e.action===`failed`);if(t.editors.every(e=>e.action===`skipped-flag`))r.push(`MCP config not written — use without --no-mcp to configure editors`);else{r.push(`MCP server configuration:`);for(let e of t.editors){let t=e.configPath.startsWith(n)?g(n,e.configPath):e.configPath.replace(/^\/Users\/[^/]+/,`~`),i=` `.repeat(Math.max(1,14-e.label.length));switch(e.action){case`written`:r.push(` ${e.label}${i}${t} registered`);break;case`overwritten`:r.push(` ${e.label}${i}${t} overwritten (--force)`);break;case`skipped-existing`:r.push(` ${e.label}${i}${t} already configured`);break;case`failed`:r.push(` ${e.label}${i}${t} FAILED: ${e.error}`);break;case`skipped-flag`:break}}}if(o&&(r.push(``),r.push(`For failed editors, add the MCP server entry manually. See:`),r.push(` https://github.com/inkeep/open-knowledge#mcp-setup`)),t.launchJson){let e=t.launchJson,i=e.configPath.startsWith(n)?g(n,e.configPath):e.configPath;switch(e.action){case`created`:r.push(` launch.json ${i} created (preview_start("${T}") ready)`);break;case`merged`:r.push(` launch.json ${i} merged open-knowledge entry`);break;case`skipped-existing`:r.push(` launch.json ${i} already has open-knowledge entry`);break;case`skipped-stale`:r.push(` launch.json ${i} ${a(`⚠ existing open-knowledge entry is out of date`)}`),e.staleFields&&e.staleFields.length>0&&r.push(` ${a(`${e.staleFields.join(`, `)} differ from current defaults`)}`),r.push(` ${a(`re-run with --force to update`)}`);break;case`failed`:r.push(` launch.json ${i} FAILED: ${e.error}`);break}}if(t.rootInstructions.length>0){let e=t.rootInstructions.filter(e=>e.action!==`skipped-symlink`);if(e.length>0){r.push(``),r.push(`Root instructions:`);for(let t of e){let e=t.path.startsWith(n)?g(n,t.path):t.path,i=` `.repeat(Math.max(1,14-t.file.length));switch(t.action){case`created`:r.push(` ${t.file}${i}${e} created`);break;case`appended`:r.push(` ${t.file}${i}${e} appended Open Knowledge section`);break;case`replaced`:r.push(` ${t.file}${i}${e} replaced Open Knowledge section (--force)`);break;case`skipped-existing`:r.push(` ${t.file}${i}${e} already has Open Knowledge section`);break}}}}if(t.preview?(r.push(``),r.push(i(t.preview,n))):t.previewWarning&&(r.push(``),r.push(`Content preview unavailable: ${t.previewWarning}`)),e){let e=t.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 (${e.join(` / `)})`),r.push(` 2. Approve the MCP server when prompted`),r.push(` 3. The knowledge base is ready — use the three workflow tools:`),r.push(` - mcp__open-knowledge__init-content — bootstrap articles from the codebase`),r.push(` - mcp__open-knowledge__ingest — capture an external source`),r.push(` - mcp__open-knowledge__research — gather sources and write findings`)}}return r.join(`
|
|
2
|
-
`)}function j(e){if(e===`all`)return[...v];let t=e.split(`,`).map(e=>e.trim());return x(t),t}function M(e,t){let n=[];for(let r of v)c(p(b[r].configPath(e,t)))&&n.push(r);return n}function N(){return new s(`init`).description(`Scaffold ${e}/ 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 ${e}/ directory but do not touch MCP config`).option(`--force`,`Overwrite existing open-knowledge MCP entries (default: skip)`).option(`--editor <editors>`,`Target editor(s): claude, cursor, vscode, windsurf, all (comma-separated) — default: all detected editors (non-TTY) / preselects detected editors (TTY)`).action(async e=>{let t=process.cwd(),n;if(e.editor)try{n=j(e.editor)}catch(e){process.stderr.write(`${e instanceof Error?e.message:String(e)}\n`),process.exitCode=1;return}else if(e.mcp!==!1&&process.stdin.isTTY){let{multiselect:e,isCancel:r}=await import(`@clack/prompts`),i=new Set(M(t));i.size===0&&process.stdout.write(`No MCP-capable editors detected — select manually, or cancel and use --editor <all|claude|cursor|vscode|windsurf>.
|
|
3
|
-
`);let a=await e({message:`Which tools do you use? (space to toggle, enter to confirm)`,options:v.map(e=>{let n=b[e],r=n.scope===`global`?n.configPath(t).replace(/^\/Users\/[^/]+/,`~`):g(t,n.configPath(t));return{value:e,label:n.label,hint:r,initialValue:i.has(e)}}),required:!0});if(r(a)){process.stdout.write(`Init cancelled.
|
|
4
|
-
`);return}n=a}else if(n=M(t),n.length===0){process.stderr.write(`No MCP-capable editors detected. Use --editor <all|claude|cursor|vscode|windsurf> to force.
|
|
5
|
-
`),process.exitCode=1;return}let r=k({cwd:t,mcp:e.mcp,force:e.force,editors:n});try{let{previewContent:e}=await import(`./preview-C-NvAf2r.mjs`),{loadConfig:n}=await import(`./loader-D8pf7fi6.mjs`),{resolveContentDir:i}=await import(`./paths-CWTmBbr0.mjs`),{config:a}=n(t);r.preview=e({projectDir:t,contentDir:i(a,t),include:a.content.include,exclude:a.content.exclude})}catch(e){r.previewWarning=e instanceof Error?e.message:String(e)}process.stdout.write(`${A(r,t)}\n`),(r.editors.some(e=>e.action===`failed`)||r.mcpAction===`failed`)&&(process.exitCode=1)})}export{k as i,A as n,N as r,M as t};
|
|
6
|
-
//# sourceMappingURL=init-BH38QtfV.mjs.map
|