@inkeep/open-knowledge 0.33.0-beta.1 → 0.33.0-beta.10
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/{_baseFor-DgUmPvii.mjs → _baseFor-CMmZqlg4.mjs} +1 -1
- package/dist/alias-JE7RI5QX-DUBvIpa7.mjs +1 -0
- package/dist/{arc-DeCRbT14.mjs → arc-CQLjZPEs.mjs} +2 -2
- package/dist/architecture-YZFGNWBL-BGsYftSC.mjs +1 -0
- package/dist/{architectureDiagram-Q4EWVU46-Ddeiwqm4.mjs → architectureDiagram-Q4EWVU46-DGG0IyfP.mjs} +2 -2
- package/dist/{array-CB05KhfS.mjs → array-BNmwzyCf.mjs} +1 -1
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/awk2-BBAGSFUB-BSXvsYKE.mjs +1 -0
- package/dist/{banner-BeBA-IMp.mjs → banner-DsGpC-o3.mjs} +2 -2
- package/dist/base64-4YMZCVJ5-r5zsLj5P.mjs +1 -0
- package/dist/basename-AA2KJYZQ-DlSFPnLd.mjs +1 -0
- package/dist/bash-IJWYRKFO-CMwhRejZ.mjs +1 -0
- package/dist/{blockDiagram-DXYQGD6D-Cym5AJGx.mjs → blockDiagram-DXYQGD6D-DO_ZPiei.mjs} +2 -2
- package/dist/{build-CN003PPg.mjs → build-BGRQ9c88.mjs} +1 -1
- package/dist/build-C__Nqi6T.mjs +1 -0
- package/dist/{c4Diagram-AHTNJAMY-B7HMnVPk.mjs → c4Diagram-AHTNJAMY-CYnXxcYe.mjs} +2 -2
- package/dist/cat-RDUMLXKC-CBoLzbAA.mjs +1 -0
- package/dist/channel-Dz_kn09_.mjs +2 -0
- package/dist/chmod-SYMGL4JA-L3CtA8Q4.mjs +1 -0
- package/dist/{chokidar-C-Jds_Bg.mjs → chokidar-CrFRJt-7.mjs} +1 -1
- package/dist/{chunk-24IMIIXA-DaS5XS55.mjs → chunk-24IMIIXA-ByE3n7F5.mjs} +2 -2
- package/dist/{chunk-2KRD3SAO-Ci0JL9ng.mjs → chunk-2KRD3SAO-CC8_tMR3.mjs} +2 -2
- package/dist/{chunk-2TRDZQLB-Kqh0farN.mjs → chunk-2TRDZQLB-DJYfX1DB.mjs} +2 -2
- package/dist/{chunk-336JU56O-MOsDPDtl.mjs → chunk-336JU56O-D5mJPHrS.mjs} +2 -2
- package/dist/{chunk-3BS5SKQH-Chc9fv52.mjs → chunk-3BS5SKQH-C7siUFvi.mjs} +3 -3
- package/dist/{chunk-3H6UQG3A-B7zoJt1R.mjs → chunk-3H6UQG3A-jehz9Mov.mjs} +2 -2
- package/dist/{chunk-3THT3N7L-B1WzJUh4.mjs → chunk-3THT3N7L-DNeAafDi.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-DQB4hWDy.mjs → chunk-3ZUFRYJ4-5tUBEJiQ.mjs} +1 -1
- package/dist/chunk-426QAEUC-C79-xu4k.mjs +2 -0
- package/dist/{chunk-44UOCSGV-BZ6LfyW2.mjs → chunk-44UOCSGV-C07LY83n.mjs} +1 -1
- package/dist/{chunk-4BX2VUAB-BXGPfnwm.mjs → chunk-4BX2VUAB-CeLVr99T.mjs} +2 -2
- package/dist/{chunk-4GTNDTRF-CexF8C0H.mjs → chunk-4GTNDTRF-C79jHZPW.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-CewYv3NE.mjs → chunk-4HHKTUW3-C9w0lckj.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-D6TVzfh2.mjs → chunk-4Q4SM6WR-BBf5_ewP.mjs} +2 -2
- package/dist/{chunk-4TB4RGXK-B0uHEnHn.mjs → chunk-4TB4RGXK-n_iVg8hq.mjs} +2 -2
- package/dist/{chunk-55IACEB6-CWM_Woee.mjs → chunk-55IACEB6-DnxgLkXS.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-BoFmUszu.mjs → chunk-55VFSPNA-BI1ZlfMG.mjs} +2 -2
- package/dist/{chunk-5FUZZQ4R-BSIWed9s.mjs → chunk-5FUZZQ4R-D0CI_lA3.mjs} +2 -2
- package/dist/{chunk-5PVQY5BW-_JlgOiAb.mjs → chunk-5PVQY5BW-CM3DDgan.mjs} +2 -2
- package/dist/{chunk-5QMZ5MUS-BwpNU33k.mjs → chunk-5QMZ5MUS-DvwGjmAW.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-DJjin--s.mjs → chunk-5QVNJEHU-BwcO0gX-.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-BEpcJpsv.mjs → chunk-5V6VZH6T-CsG6wUhk.mjs} +2 -2
- package/dist/{chunk-62RKD26F-uqVDf3rA.mjs → chunk-62RKD26F-CgKazjAi.mjs} +2 -2
- package/dist/{chunk-64BAICW3-BlKhhT3-.mjs → chunk-64BAICW3-DZxI2NVA.mjs} +2 -2
- package/dist/{chunk-67CJDMHE-CADkctrU.mjs → chunk-67CJDMHE-CrUJnyQp.mjs} +2 -2
- package/dist/{chunk-6Z5SFZXK-DuXsHt84.mjs → chunk-6Z5SFZXK-CqxoPFbR.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-CciWp7CZ.mjs → chunk-74CEPOFO-smMq6g2B.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-Cok_Mfzv.mjs → chunk-7L36YK2X-BEYeMppm.mjs} +1 -1
- package/dist/{chunk-7N4EOEYR-D0VnhW8C.mjs → chunk-7N4EOEYR-qv4-7fqt.mjs} +2 -2
- package/dist/{chunk-7TSDKFEO-9ACIOuIO.mjs → chunk-7TSDKFEO-B7rhvhjt.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-DPxgapmK.mjs → chunk-A4HU7SVR-BReRiEUm.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-B_-pySix.mjs → chunk-A4JSPFCI-CzC3HvcT.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-DApqA6Ow.mjs → chunk-A5O5YHGN-0FmmnDn4.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-DRkFYIUZ.mjs → chunk-A65PWWJC-DDcfQP9l.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-DGJklf-9.mjs → chunk-A7A2DBEE-DxoLZwYW.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-BSbI3udS.mjs → chunk-A7ICOL4V-DLpBcLKS.mjs} +2 -2
- package/dist/{chunk-AA7GKIK3-DiBKA6eA.mjs → chunk-AA7GKIK3-hv3Reau6.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-B1s5GUUO.mjs → chunk-ALLTKNUZ-8gj-zLqF.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-CgGkczFr.mjs → chunk-APT7OOP2-Ba0TjHQy.mjs} +2 -2
- package/dist/{chunk-B74TABJS-CM6MrFZT.mjs → chunk-B74TABJS-D6QwMpPz.mjs} +1 -1
- package/dist/{chunk-BGSUD5R5-B-rczZvK.mjs → chunk-BGSUD5R5-BfmoQDUK.mjs} +2 -2
- package/dist/{chunk-BSJP7CBP-BWUAQGWN.mjs → chunk-BSJP7CBP-C-rdyWiE.mjs} +2 -2
- package/dist/{chunk-CIAEETIT-4Fu0r4oG.mjs → chunk-CIAEETIT-B4zNm8L4.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-BkE4vqrf.mjs → chunk-CWQS3NFK-BvSpDizp.mjs} +1 -1
- package/dist/{chunk-D4J545R4-DfBhjppa.mjs → chunk-D4J545R4-B2EJq2_m.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-BEkstiuo.mjs → chunk-D6CWQ5DW-DTkNWXQB.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-CAw29uK1.mjs → chunk-D7MEQ3VN-Cgm5u94B.mjs} +2 -2
- package/dist/{chunk-DBKNVD4L-DMfzef_7.mjs → chunk-DBKNVD4L-UVpSZ5HO.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-3VCdH2yi.mjs → chunk-DCAAORBQ-Dy6elY3j.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-F_tmy-Lz.mjs → chunk-DXB73IDG-ByieFnhr.mjs} +1 -1
- package/dist/{chunk-EDXVE4YY-COyPi8-X.mjs → chunk-EDXVE4YY-B7-wXBzK.mjs} +2 -2
- package/dist/{chunk-EEXR5ZDP-VxEPFle_.mjs → chunk-EEXR5ZDP-Bot_s1lf.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-Dz3f1URh.mjs → chunk-EIZGF4BS-Cce76mbX.mjs} +2 -2
- package/dist/{chunk-ENJZ2VHE-DgpEksO3.mjs → chunk-ENJZ2VHE-DswEO8kN.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-tJnOwArx.mjs → chunk-F23WWYKW-YV2Ziyrt.mjs} +2 -2
- package/dist/{chunk-FMBD7UC4-CFP8EClM.mjs → chunk-FMBD7UC4-DyW29ls9.mjs} +2 -2
- package/dist/{chunk-FOC6F5B3-BfuMxJA0.mjs → chunk-FOC6F5B3-Bc3GvhQ3.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-C5P_ff9C.mjs → chunk-GCTKCWKD-DBnk7jcA.mjs} +1 -1
- package/dist/{chunk-GFQRA5P5-DbAN9IDm.mjs → chunk-GFQRA5P5-DuNfOQls.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-CnqfYKLU.mjs → chunk-GOV5EKKI-BFLTyBpR.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-BZ5qwuS5.mjs → chunk-GXVXFKBA-C3l1H1PT.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-C2858kAN.mjs → chunk-HDQ56CKY-Cy6yVra7.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-BhX1qT1n.mjs → chunk-HJQJAYMS-yqfBcYOx.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-D9DjORFc.mjs → chunk-HJWBQKYG-C1cifXhx.mjs} +2 -2
- package/dist/{chunk-HKLCLINH-DiTtKPWB.mjs → chunk-HKLCLINH-Ch0mauLy.mjs} +3 -3
- package/dist/{chunk-HL6NGDO2-FvmjxcsK.mjs → chunk-HL6NGDO2-D41r2_6L.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-Cd9c0ujm.mjs → chunk-HWKDQ44K-CRAflooW.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-BsA-zv3k.mjs → chunk-I57KEIP3-BW7G5kxf.mjs} +2 -2
- package/dist/{chunk-ICPOFSXX-C2hDlKD_.mjs → chunk-ICPOFSXX-BF2fcu67.mjs} +2 -2
- package/dist/{chunk-IPJHKYVM-CUKythEA.mjs → chunk-IPJHKYVM-DDc9WF57.mjs} +1 -1
- package/dist/{chunk-JVPRLUMK-D72YT6bi.mjs → chunk-JVPRLUMK-C9zEHB9M.mjs} +2 -2
- package/dist/{chunk-K5T4RW27-ChGdeubA.mjs → chunk-K5T4RW27-DLjwaibC.mjs} +2 -2
- package/dist/{chunk-K6LIBGJA-CtwqXONG.mjs → chunk-K6LIBGJA-CSZVB574.mjs} +2 -2
- package/dist/{chunk-KGLVRYIC-BYA7AJ2g.mjs → chunk-KGLVRYIC-BNQzuSOt.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-C311YB2Q.mjs → chunk-KMEYNNUA-maIN40sk.mjs} +2 -2
- package/dist/{chunk-KRBPSX3W-DsaeH-hY.mjs → chunk-KRBPSX3W-CzvY8ZXk.mjs} +2 -2
- package/dist/{chunk-KX3P26DQ-D2yWAYlk.mjs → chunk-KX3P26DQ-76goBn6H.mjs} +1 -1
- package/dist/{chunk-LIHQZDEY-Du6TmMJL.mjs → chunk-LIHQZDEY-C1QAwaiM.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-xjImIR4A.mjs → chunk-LL3S3NLB-DbugMv6o.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-DQ58So-F.mjs → chunk-LTZRCH7N-BKI5S2SB.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-B1OcC6RH.mjs → chunk-LWEGUNWT-GnqRCIV_.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-CP6l42wf.mjs → chunk-MDDMCKUK-b-Mvbq7g.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-DDKgmYs5.mjs → chunk-MDLLFABN-CySM5qrq.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-D8l1TTsc.mjs → chunk-MHTUABJP-t1OLW57X.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-BLEhGmNy.mjs → chunk-MIZPJHVH-D-ZDkLZF.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-MXi1NN3K.mjs → chunk-MLXIYONF-2Q4Ybi7x.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-BkwmDIR4.mjs → chunk-MYE6AGBJ-BejewWl1.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-Bv2VeaZc.mjs → chunk-NAERJDUW-BeJI_Ack.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-14dRI8Qm.mjs → chunk-NCNPKYJZ-BjePegaZ.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-BiYXRcxZ.mjs → chunk-NUYSJFDK-DDVtplw1.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-B_jLzNZV.mjs → chunk-OCLXQMOG-DZx1830_.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-D4VLThbM.mjs → chunk-OCS6LSEM-DGnWZEcL.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-CmrD0Dg2.mjs → chunk-OJDRYQWQ-69O4zmKR.mjs} +1 -1
- package/dist/{chunk-ORNJ4GCN-CO4Fc0LT.mjs → chunk-ORNJ4GCN-R61lu8Cm.mjs} +2 -2
- package/dist/{chunk-OYMX7WX6-CjnWmW_n.mjs → chunk-OYMX7WX6-BShEu1pf.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-aMLWXguv.mjs → chunk-PBXLG62G-DdXtiydY.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-B3XXGg2T.mjs → chunk-PP6PSHAB-B7OGLVba.mjs} +1 -1
- package/dist/{chunk-PXTK5WE2-CguJFePc.mjs → chunk-PXTK5WE2-BeCOtT1d.mjs} +2 -2
- package/dist/{chunk-PYSFUGCK-BszfAqRG.mjs → chunk-PYSFUGCK-CoGoOEDp.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-D3ULCm4b.mjs → chunk-QCDB2VPH-z4xw9VKe.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-Dzcm83Kv.mjs → chunk-QJ7O6ZN3-Dsx1L-CX.mjs} +2 -2
- package/dist/{chunk-QZHKN3VN-CczpYV_w.mjs → chunk-QZHKN3VN-4LgLml-S.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-nrEeDNrG.mjs → chunk-R6QSAL5T-CXXlslcl.mjs} +1 -1
- package/dist/{chunk-R6VWJ2ZL-BVeTwIsz.mjs → chunk-R6VWJ2ZL-FXX1AKea.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-CajOz2i0.mjs → chunk-RPNGRAAP-D-txoG-N.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-CA2LWAo7.mjs → chunk-SDNKECQQ-sntIQEvc.mjs} +2 -2
- package/dist/{chunk-SNN4IESC-D8LPcAwE.mjs → chunk-SNN4IESC-2iQ8MDN3.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-CKzBdBMk.mjs → chunk-T56QNPHK-0UWUTTk9.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-rdis5pZn.mjs → chunk-TLSUDHID-CbxrNaLS.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-BxDnjGjc.mjs → chunk-TOMNU26N-aWRPfXR1.mjs} +2 -2
- package/dist/{chunk-TP4BZANS-ClzIzpWm.mjs → chunk-TP4BZANS-DFORxqE5.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-DnSXwySk.mjs → chunk-TXBZCHCQ-COSdckz7.mjs} +2 -2
- package/dist/{chunk-U2HBQHQK-DMRf50i8.mjs → chunk-U2HBQHQK-B6QvDsYx.mjs} +2 -2
- package/dist/{chunk-V5MWI2OL-Cjq6zFOH.mjs → chunk-V5MWI2OL-CDs_rm9r.mjs} +2 -2
- package/dist/{chunk-V7TAPXDL-BaVJN6c-.mjs → chunk-V7TAPXDL-DbTOoM_I.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-BJjeOIUB.mjs → chunk-VJFXDYWH-oT0f9NSa.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-CLvo1DrK.mjs → chunk-VOBGTVA6-D6oyYm45.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-ySo4pvxO.mjs → chunk-VYOJP4TV-Dh2zBxKQ.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-jr5eyHAR.mjs → chunk-WKFATFPP-CoNouDAR.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-Bpyh-CYM.mjs → chunk-X2AJGDEF-13z4tBy7.mjs} +1 -1
- package/dist/{chunk-X2U36JSP-B09HbTgU.mjs → chunk-X2U36JSP-BlsQfR26.mjs} +2 -2
- package/dist/{chunk-XKQRETAK-CG272cRl.mjs → chunk-XKQRETAK-EkIIjUUl.mjs} +2 -2
- package/dist/{chunk-XKWWSDBF-EI7W96Bb.mjs → chunk-XKWWSDBF-B1eAKd2w.mjs} +2 -2
- package/dist/{chunk-XPW4576I-B-qTm_Z3.mjs → chunk-XPW4576I-bLLZgym8.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-DDtsDoBd.mjs → chunk-XVDPCNWR-BAt7NxwA.mjs} +2 -2
- package/dist/{chunk-YMMW5UAP-jiH3wEeU.mjs → chunk-YMMW5UAP-Bm5rv4x6.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-D6z7D3pz.mjs → chunk-YTNYSM6T-igBSh3M-.mjs} +2 -2
- package/dist/{chunk-YULBWSET-sJ_UPhUx.mjs → chunk-YULBWSET-x9ev2Mf1.mjs} +2 -2
- package/dist/{chunk-YZCP3GAM-C2dMi590.mjs → chunk-YZCP3GAM-dFAdRCa8.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-CFEq3s_2.mjs → chunk-Z6LRHWXI-CQxrFjqd.mjs} +2 -2
- package/dist/{chunk-Z7JVV2SM-XK1154v3.mjs → chunk-Z7JVV2SM-C7YBwi4Z.mjs} +2 -2
- package/dist/{chunk-ZZ45TVLE-DmKznbd-.mjs → chunk-ZZ45TVLE-2q1aFSGq.mjs} +2 -2
- package/dist/{chunk-ZZO3UDB3-Jw0Ocy-R.mjs → chunk-ZZO3UDB3-rEua5jnw.mjs} +2 -2
- package/dist/classDiagram-6PBFFD2Q-CcylKUUy.mjs +2 -0
- package/dist/classDiagram-v2-HSJHXN6E-BuitxA8E.mjs +2 -0
- package/dist/clear-5CZ5X4YR-B1WFGbrj.mjs +1 -0
- package/dist/cli.mjs +51 -51
- package/dist/clone-FnWO_tLO.mjs +2 -0
- package/dist/colors-Ct4sdRvQ.mjs +1 -0
- package/dist/{colors-DugpbXz6.mjs → colors-DWZN3WbY.mjs} +1 -1
- package/dist/column-WLPMMSTS-DkwMR9G7.mjs +1 -0
- package/dist/comm-5SLSESQG-CXlq0ETw.mjs +1 -0
- package/dist/config-schema.json +3 -3
- package/dist/config.project-local.schema.json +3 -3
- package/dist/constants-p-XvThBy.mjs +2 -0
- package/dist/{cose-bilkent-S5V4N54A-BNALZCF0.mjs → cose-bilkent-S5V4N54A-x0sjol1e.mjs} +2 -2
- package/dist/cp-XOYR4ABJ-DSmenFoy.mjs +1 -0
- package/dist/{curl-47BFPSFW-DU0Jc2rS.mjs → curl-47BFPSFW-CLzIjKiW.mjs} +2 -2
- package/dist/cut-OPC3VAGB-Bem4Z9r_.mjs +1 -0
- package/dist/{cytoscape.esm-5XrS6n0F.mjs → cytoscape.esm-D1nqsWCf.mjs} +1 -1
- package/dist/{dagre-C04vaGU3.mjs → dagre-BTsqj5N3.mjs} +2 -2
- package/dist/{dagre-KV5264BT-Cbu_HfO4.mjs → dagre-KV5264BT-qU8auIl8.mjs} +2 -2
- package/dist/date-DD7FVA2V-BIqG8vnM.mjs +1 -0
- package/dist/{defaultLocale-0qNBj5q-.mjs → defaultLocale-DMqLGTir.mjs} +1 -1
- package/dist/{diagram-5BDNPKRD--yFFNenY.mjs → diagram-5BDNPKRD-BfaCThqw.mjs} +2 -2
- package/dist/{diagram-G4DWMVQ6-DEe2UaOJ.mjs → diagram-G4DWMVQ6-GD__kOTo.mjs} +2 -2
- package/dist/{diagram-MMDJMWI5-BEgEPDUN.mjs → diagram-MMDJMWI5-eK_WgeFb.mjs} +2 -2
- package/dist/{diagram-TYMM5635-WdKiO0-q.mjs → diagram-TYMM5635-Cw9FE8Ou.mjs} +2 -2
- package/dist/diff-HJF2MPDN-QbElik15.mjs +1 -0
- package/dist/dirname-LEMTZZFS-DjJGD8wW.mjs +1 -0
- package/dist/{dist-Co98vmuK.mjs → dist-B9rR197c.mjs} +1 -1
- package/dist/{server-lock-iLcBw_q0-JO3R7Mim.mjs → dist-BB07_fNU.mjs} +117 -117
- package/dist/{dist-qyTbo9j_.mjs → dist-C_-7dTgR.mjs} +43 -38
- package/dist/dist-DH3x1SI7.mjs +1 -0
- package/dist/{dist-bundle-tsI-uq-K.mjs → dist-bundle-CfcllBeA.mjs} +1 -1
- package/dist/dist-bundle-Dnt-gLG8.mjs +1 -0
- package/dist/du-WO2ENHXQ-gLn1L6An.mjs +1 -0
- package/dist/echo-O45JWWI2-CHeEVRD-.mjs +1 -0
- package/dist/env-5EPCWSXR-nB7iGA4U.mjs +1 -0
- package/dist/{erDiagram-SMLLAGMA-BD_bZ9y8.mjs → erDiagram-SMLLAGMA-BQ28NjyR.mjs} +2 -2
- package/dist/{esm-BNIW0EH8.mjs → esm-PWRRAk-U.mjs} +1 -1
- package/dist/{execAsync-BAuTynbH.mjs → execAsync-Clg2-3AB.mjs} +1 -1
- package/dist/{execAsync-CBkkI2Ek.mjs → execAsync-DCzaEYgw.mjs} +1 -1
- package/dist/{execAsync-DVDfm08O.mjs → execAsync-Dyv9tAFE.mjs} +1 -1
- package/dist/expand-DTNXU4LQ--1KdtI8I.mjs +1 -0
- package/dist/expansion-VBDYWVZR-Br5lbiFS.mjs +1 -0
- package/dist/expr-YYCVMXE3-D_Mgl3lg.mjs +1 -0
- package/dist/file-IGDTDPLG-DJz2lDmW.mjs +1 -0
- package/dist/find-DH2ALKQS-BCfNRHeq.mjs +1 -0
- package/dist/flag-coverage-6JEX67RU-dAJxSkKl.mjs +2 -0
- package/dist/{flatten-DsfHsK9p.mjs → flatten-CMuDMFOE.mjs} +2 -2
- package/dist/{flowDiagram-DWJPFMVM-DZgEsdRZ.mjs → flowDiagram-DWJPFMVM-BRXMLmIm.mjs} +2 -2
- package/dist/fold-LDSORVYE-X07YByBI.mjs +1 -0
- package/dist/{ganttDiagram-T4ZO3ILL-Csm0cHYU.mjs → ganttDiagram-T4ZO3ILL-BkishNK-.mjs} +2 -2
- package/dist/{getMachineId-bsd-Bd_aCdAJ.mjs → getMachineId-bsd-BfKl40ww.mjs} +2 -2
- package/dist/{getMachineId-bsd-CmfyCGp_.mjs → getMachineId-bsd-CfcvKJtS.mjs} +2 -2
- package/dist/{getMachineId-bsd-D_lpr65O.mjs → getMachineId-bsd-DHr_3v7C.mjs} +2 -2
- package/dist/{getMachineId-darwin-CFeqXDM9.mjs → getMachineId-darwin-BGSat_hq.mjs} +2 -2
- package/dist/{getMachineId-darwin-Ch6Y3434.mjs → getMachineId-darwin-ClWJDgsl.mjs} +2 -2
- package/dist/{getMachineId-darwin-DRbP6ZXo.mjs → getMachineId-darwin-kUGmbM-E.mjs} +2 -2
- package/dist/{getMachineId-linux-CsnocidZ.mjs → getMachineId-linux-Cb6TG9LG.mjs} +1 -1
- package/dist/{getMachineId-linux-n9GZPwcR.mjs → getMachineId-linux-D_xXWtEw.mjs} +1 -1
- package/dist/{getMachineId-linux-CbD1lCp_.mjs → getMachineId-linux-vXwObLy3.mjs} +1 -1
- package/dist/{getMachineId-unsupported-Bsi0aVMm.mjs → getMachineId-unsupported-B4ElBmKF.mjs} +1 -1
- package/dist/{getMachineId-unsupported-D6zswC3_.mjs → getMachineId-unsupported-BALaAmcO.mjs} +1 -1
- package/dist/{getMachineId-unsupported-BQuHcTqF.mjs → getMachineId-unsupported-CechcDdc.mjs} +1 -1
- package/dist/{getMachineId-win-BsR1lQcH.mjs → getMachineId-win-CwyWxlQ-.mjs} +2 -2
- package/dist/{getMachineId-win-Bvo8aUso.mjs → getMachineId-win-D-OyleV_.mjs} +2 -2
- package/dist/{getMachineId-win-BpALY-6t.mjs → getMachineId-win-Div5qJyL.mjs} +2 -2
- package/dist/gh-detect-C0TUrJxp.mjs +3 -0
- package/dist/git-handle-CetHWc5A-6X5OgagE.mjs +1 -0
- package/dist/git-handle-dKyep_oZ-vn8B9Tc8.mjs +10 -0
- package/dist/gitGraph-7Q5UKJZL-Cb6AI0gQ.mjs +1 -0
- package/dist/{gitGraphDiagram-UUTBAWPF-dC1IPshv.mjs → gitGraphDiagram-UUTBAWPF-LYEX-Up5.mjs} +2 -2
- package/dist/{graphlib-ZUByR7Z1.mjs → graphlib-C8GlDNIO.mjs} +2 -2
- package/dist/grep-2HUTXO5U-DF5bN210.mjs +1 -0
- package/dist/gzip-AQXSGOVS-Ld4whXAz.mjs +1 -0
- package/dist/head-HT2B6D2J-Y8QWoury.mjs +1 -0
- package/dist/help-VVWX7SA5-DNTZaSb5.mjs +1 -0
- package/dist/history-J4QRNGRO-D8QHmWq3.mjs +1 -0
- package/dist/hostname-BK6HG2DE-C229q8IA.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-EEqkh5Fp.mjs +1 -0
- package/dist/index.d.mts +11 -3
- package/dist/index.mjs +1 -1
- package/dist/info-OMHHGYJF-DY6XVLHA.mjs +1 -0
- package/dist/{infoDiagram-42DDH7IO-HjNjWo06.mjs → infoDiagram-42DDH7IO-BVXbYOHQ.mjs} +2 -2
- package/dist/init-CNb23nGn.mjs +1 -0
- package/dist/init-CXlRbgEZ.mjs +639 -0
- package/dist/{init-BQKkPl4l.mjs → init-D9nHWIP2.mjs} +1 -1
- package/dist/{is-object-DAC-mmwo.mjs → is-object-DhiFit5j.mjs} +1 -1
- package/dist/{isEmpty-jdQphHPa.mjs → isEmpty-B_hy4b7A.mjs} +2 -2
- package/dist/{ishikawaDiagram-UXIWVN3A-BlrokJRv.mjs → ishikawaDiagram-UXIWVN3A-Diodefny.mjs} +2 -2
- package/dist/join-GG2LDHE5-DJ1L_Ka6.mjs +1 -0
- package/dist/{journeyDiagram-VCZTEJTY-Bt5CmS_f.mjs → journeyDiagram-VCZTEJTY-CMQp-Rx9.mjs} +2 -2
- package/dist/jq-LYZFFBZB-BItVI6BJ.mjs +1 -0
- package/dist/{js-exec-VXN6TZ7U-B_mKz_np.mjs → js-exec-VXN6TZ7U-Bnv5xh7r.mjs} +2 -2
- package/dist/{kanban-definition-6JOO6SKY-BH015AU8.mjs → kanban-definition-6JOO6SKY-DhbBoKko.mjs} +2 -2
- package/dist/{launch-json-removal-ChpAfBAt.mjs → launch-json-removal-6s0g2-Dm.mjs} +2 -2
- package/dist/{lib-BWyT_i83.mjs → lib-BFgxfC0m.mjs} +2 -2
- package/dist/{lib-BKCY8vrL.mjs → lib-DOas6HiH.mjs} +1 -1
- package/dist/{libesm-Ob3yvbRV.mjs → libesm-bRpdkHYn.mjs} +1 -1
- package/dist/{line-DiVg83mo.mjs → line-CNrllbcq.mjs} +2 -2
- package/dist/{linear-C06cViLu.mjs → linear-CUrVtEYu.mjs} +2 -2
- package/dist/ln-4TRFBYAT-1vbMtGss.mjs +1 -0
- package/dist/loader-DZ60wqGI.mjs +4 -0
- package/dist/loader-GV9JFQfo.mjs +1 -0
- package/dist/ls-KSXFZCWH-D7XChuCb.mjs +1 -0
- package/dist/{lzma-NI_6IIcm.mjs → lzma-kz900pzb.mjs} +1 -1
- package/dist/{mcp-migrate-event-BNoOQpLB.mjs → mcp-migrate-event-H4uBxZps.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-DebFzK7Y.mjs +1 -0
- package/dist/{mermaid-parser.core-DqKkkvo5.mjs → mermaid-parser.core-C4HPipkF.mjs} +2 -2
- package/dist/{mermaid.core-BzIdCd91.mjs → mermaid.core-BjaX3aDk.mjs} +3 -3
- package/dist/{mindmap-definition-QFDTVHPH-BOkRtwWA.mjs → mindmap-definition-QFDTVHPH-aTvmjjWw.mjs} +2 -2
- package/dist/mkdir-TDEMSB6C-yKujfJwH.mjs +1 -0
- package/dist/mv-Z6MORUFL-DefDwgs3.mjs +1 -0
- package/dist/native/native-config.linux-x64-gnu.node +0 -0
- package/dist/nl-U5YJDM32-C4WnOB_Q.mjs +1 -0
- package/dist/od-VJEF2UR5-w1NlCkUs.mjs +1 -0
- package/dist/{open-browser-ByBvAte1.mjs → open-browser-9FuRJjpP.mjs} +2 -2
- package/dist/{ordinal-BuFKVuSx.mjs → ordinal-CwNJ0kWp.mjs} +2 -2
- package/dist/packet-4T2RLAQJ-Bf6ng-Cf.mjs +1 -0
- package/dist/paste-7N6AFSDS-C1xZzPgC.mjs +1 -0
- package/dist/{path-Dmj-XcQ6.mjs → path-v4_sOSY9.mjs} +1 -1
- package/dist/pie-ZZUOXDRM-B2TN5yZH.mjs +1 -0
- package/dist/{pieDiagram-DEJITSTG-Bho_Qp6H.mjs → pieDiagram-DEJITSTG-Bwxzwykf.mjs} +2 -2
- package/dist/{preview-BMFi1baT.mjs → preview-Ch5Z_ly3.mjs} +2 -2
- package/dist/preview-DZuLRNVg.mjs +1 -0
- package/dist/printf-CX64KX2P-mlOOn_9v.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-BDUkeNVR.js → ActivityModeContent-jsCTPiun.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-cmSiPzan.js +3 -0
- package/dist/public/assets/DocumentContext-CNzSFsI-.js +36 -0
- package/dist/public/assets/{EnableSyncConfirmDialog-ktBtGPVn.js → EnableSyncConfirmDialog-D_NbuJ59.js} +1 -1
- package/dist/public/assets/{GraphPanel-Bh_ECqJL.js → GraphPanel-BrqHgLjs.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-CpraWVSO.js → ManagedArtifactProperties-DqTT5fPT.js} +1 -1
- package/dist/public/assets/{McpConsentDialogBody-BzItcuaa.js → McpConsentDialogBody-BrfdQb16.js} +1 -1
- package/dist/public/assets/{MermaidDocEditor-D34p45bc.js → MermaidDocEditor-B_dNhePY.js} +1 -1
- package/dist/public/assets/{PropertyPanel-BGZ1umNl.js → PropertyPanel-Dkz1gPoU.js} +1 -1
- package/dist/public/assets/ReportBugDialogBody-CCKV6nZY.js +2 -0
- package/dist/public/assets/{SettingsDialogBody-6OwbFhgR.js → SettingsDialogBody-BxTayjY8.js} +1 -1
- package/dist/public/assets/ShareBranchSwitchDialog-BhekOXUp.js +1 -0
- package/dist/public/assets/{ShareReceiveDialog-CNb9cd96.js → ShareReceiveDialog-o5dNBk6Q.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-BAdtqIsW.js → ShareReceiveMissDialog-UODMw9si.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-Ct8StCKt.js → SkillEditorActions-euGEb-E6.js} +1 -1
- package/dist/public/assets/{SourceEditor-CknPKyPX.js → SourceEditor-CORtf1FY.js} +1 -1
- package/dist/public/assets/{TerminalPanel-xcIGFp5j.js → TerminalPanel-g64JYtbc.js} +1 -1
- package/dist/public/assets/{agent-presence-G2tEErDM.js → agent-presence-D3uA1hrz.js} +1 -1
- package/dist/public/assets/{auth-state-cache-CrClVH5u.js → auth-state-cache-DCv4Whjc.js} +1 -1
- package/dist/public/assets/{config-provider-COv6Zc0W.js → config-provider-DVy-GqC5.js} +1 -1
- package/dist/public/assets/{dist-BYEhoqGL.js → dist-DkRtDyLN.js} +39 -39
- package/dist/public/assets/{dist-BwQDClCY.js → dist-Dl_HewkW.js} +1 -1
- package/dist/public/assets/{doc-hash-BZffnOYm.js → doc-hash-BDRwCcvB.js} +1 -1
- package/dist/public/assets/{documents-events-DsS-wgQs.js → documents-events-CJpJUM_N.js} +1 -1
- package/dist/public/assets/{file-tree-adapter-BZZ3alKe.js → file-tree-adapter-_1h6_EGw.js} +1 -1
- package/dist/public/assets/index-Dyz0LlrR.css +1 -0
- package/dist/public/assets/{index-BmDjTmBE.js → index-FValh7LC.js} +102 -102
- package/dist/public/assets/{lint-config-client-BWEzLMaP.js → lint-config-client-CX_cssoL.js} +1 -1
- package/dist/public/assets/{navigation-targets-BTC4aae2.js → navigation-targets-S-8o5DE_.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DezYrSaN.js → open-managed-artifact-tab-tiXawScj.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-Cj1R4414.js → pending-receive-nav-store-BUhyCKTL.js} +1 -1
- package/dist/public/assets/{prop-types-OzYwLIEh.js → prop-types-Cr0Uib4q.js} +1 -1
- package/dist/public/assets/{receive-store-C4EsrfzM.js → receive-store-DYDEnyEg.js} +1 -1
- package/dist/public/assets/{selection-context-CKkxBmf8.js → selection-context-BjmeTT0v.js} +1 -1
- package/dist/public/assets/{skill-actions-BXAz7nyp.js → skill-actions-32qU2dgG.js} +1 -1
- package/dist/public/assets/{skills-api-KUtv2FO6.js → skills-api-UJqRM51N.js} +1 -1
- package/dist/public/assets/{src-BtJquz6k.js → src-CBkac3Ms.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-DfELdM3o.js → target-navigation-intent-BFsJN8Kr.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-C7ZM27pb.js → typing-burst-detector-CekoPsaO.js} +1 -1
- package/dist/public/assets/{use-apply-config-color-theme-BPhwwa3X.js → use-apply-config-color-theme-CUJwxTbn.js} +1 -1
- package/dist/public/assets/{workspace-paths-C2Ep-Czq.js → workspace-paths-r1tSwfOd.js} +1 -1
- package/dist/public/index.html +27 -27
- package/dist/pwd-D4OZ7N27-CT87C-5L.mjs +1 -0
- package/dist/{python3-DNGS4G3E-mSuL-4Sg.mjs → python3-DNGS4G3E-CvPRspn0.mjs} +2 -2
- package/dist/{quadrantDiagram-34T5L4WZ-Bd7jb1rn.mjs → quadrantDiagram-34T5L4WZ-DNT3MD_9.mjs} +2 -2
- package/dist/radar-PYXPWWZC-COiIo4-V.mjs +1 -0
- package/dist/readlink-MI4GCHJF-yD7ZCo6I.mjs +1 -0
- package/dist/{reduce-CKdE5ppn.mjs → reduce-KkqmWdsg.mjs} +2 -2
- package/dist/{repair-launch-json-DplJuyr4.mjs → repair-launch-json-B8-siIVG.mjs} +2 -2
- package/dist/{repair-mcp-configs-UUqPn4oa.mjs → repair-mcp-configs-iuxXR-U-.mjs} +2 -2
- package/dist/repair-skills-CZkLkOIF.mjs +1 -0
- package/dist/repair-skills-DTChn2Mf.mjs +3 -0
- package/dist/{requirementDiagram-MS252O5E-B74qjBRN.mjs → requirementDiagram-MS252O5E-25Z7WGN_.mjs} +2 -2
- package/dist/rev-XOSYPP45-DXeN2c_L.mjs +1 -0
- package/dist/rg-XNF3R3II-CSW8tOjh.mjs +1 -0
- package/dist/rm-RTZG23RL-CdPHUz_A.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-B-Hcy2_M.mjs +1 -0
- package/dist/{rough.cjs-D5rEDIRO.mjs → rough.cjs-CjMW0p0V.mjs} +1 -1
- package/dist/{sankeyDiagram-XADWPNL6-CsDd_Lum.mjs → sankeyDiagram-XADWPNL6-CaXOTYx7.mjs} +2 -2
- package/dist/schemas/v0/config.project-local.schema.json +3 -3
- package/dist/sed-JAPPVBEU-CcOukRYN.mjs +1 -0
- package/dist/seq-RN5ZUASB-s6ShRZlK.mjs +1 -0
- package/dist/{sequenceDiagram-FGHM5R23-C88m3ajK.mjs → sequenceDiagram-FGHM5R23-BgVYdPUE.mjs} +2 -2
- package/dist/server-lock-GuuouVft-BjWZinGq.mjs +1 -0
- package/dist/server-lock-iLcBw_q0-DWu5z2Sp.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DypLzN_7.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-DGVRMju7.mjs +1 -0
- package/dist/sleep-VZFPZFWA-B9Y3_tNd.mjs +1 -0
- package/dist/sort-DCNRDA7U-hsloabcm.mjs +1 -0
- package/dist/split-SITCSYCZ-BDulNHyK.mjs +1 -0
- package/dist/sqlite3-TE5AIOTF-DjHl_aWc.mjs +1 -0
- package/dist/src-4JZrrUEE.mjs +21 -0
- package/dist/{src-DC_BCes_.mjs → src-BGL-MlNN.mjs} +1 -1
- package/dist/start-B9AbQt7f.mjs +1 -0
- package/dist/start-DX8hoO29.mjs +3 -0
- package/dist/stat-BT5A227F-Bo3rQCLg.mjs +1 -0
- package/dist/{stateDiagram-FHFEXIEX-va6AVA_z.mjs → stateDiagram-FHFEXIEX-DQ2iT5iQ.mjs} +2 -2
- package/dist/stateDiagram-v2-QKLJ7IA2-BN2cDF-I.mjs +2 -0
- package/dist/strings-7PLOGTPD-DzlKcmS-.mjs +1 -0
- package/dist/tac-SJGXQ4T2-ByklUqCu.mjs +1 -0
- package/dist/tail-S5ULNTJU-4htchzH3.mjs +1 -0
- package/dist/tar-MZQD7NO4-BbDCO35a.mjs +1 -0
- package/dist/tee-O7VXZDCO-C4h94T7n.mjs +1 -0
- package/dist/time-DEUO3QV2-DgbA26hb.mjs +1 -0
- package/dist/{timeline-definition-GMOUNBTQ-TPAmdwnH.mjs → timeline-definition-GMOUNBTQ-CN-kJjLP.mjs} +2 -2
- package/dist/timeout-VRKMCG72-QNsmkGY4.mjs +1 -0
- package/dist/touch-DX2IJOQ4-DCSWORMR.mjs +1 -0
- package/dist/tr-2HXZRDSW-ClAtG6KK.mjs +1 -0
- package/dist/tree-LYXBS7DC-DY3rkdQ5.mjs +1 -0
- package/dist/treeView-SZITEDCU-IxD8BwiZ.mjs +1 -0
- package/dist/treemap-W4RFUUIX-Bi83ji26.mjs +1 -0
- package/dist/true-WHJNXCHG-D1oYWVZ5.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-MOepJcp7.mjs +1 -0
- package/dist/uniq-SUNANL47-BTfKD4-0.mjs +1 -0
- package/dist/{vennDiagram-DHZGUBPP-CVntpCfR.mjs → vennDiagram-DHZGUBPP-BJ8_Sz54.mjs} +2 -2
- package/dist/wardley-RL74JXVD-DxHrvQhH.mjs +1 -0
- package/dist/{wardleyDiagram-NUSXRM2D-DlYkmDFQ.mjs → wardleyDiagram-NUSXRM2D-j56ncYAi.mjs} +2 -2
- package/dist/wc-TQB3VNOX-CMqYcRvH.mjs +1 -0
- package/dist/which-XZHEH76L-CAv7Efsx.mjs +1 -0
- package/dist/whoami-DGKU3D2X-CpvaE3LM.mjs +1 -0
- package/dist/{wrapper-BZO_sIci.mjs → wrapper-C8gJQl5z.mjs} +1 -1
- package/dist/write-project-skill-BwRqNV9s.mjs +36 -0
- package/dist/xan-UD7JYIL2-DLOcZDYa.mjs +1 -0
- package/dist/xan-view-OW2TB7Z3-dHhPo_bJ.mjs +1 -0
- package/dist/xargs-I6EZUCYF-HR9_4d9i.mjs +1 -0
- package/dist/{xychartDiagram-5P7HB3ND-CFd6z4Gb.mjs → xychartDiagram-5P7HB3ND-CcUb_B_R.mjs} +2 -2
- package/dist/yazl-B1RwDQQs.mjs +1 -0
- package/dist/{yazl-Docqgl6q.mjs → yazl-DFMxUgKn.mjs} +1 -1
- package/dist/yq-OAKYHSXH-CJLBfTXv.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-BODj4Gfj.mjs +0 -1
- package/dist/architecture-YZFGNWBL-BJvTzYI9.mjs +0 -1
- package/dist/awk2-BBAGSFUB-lHnSCbc-.mjs +0 -1
- package/dist/base64-4YMZCVJ5-BTMj5dqF.mjs +0 -1
- package/dist/basename-AA2KJYZQ-B1wvwZXV.mjs +0 -1
- package/dist/bash-IJWYRKFO-CCnjwjWe.mjs +0 -1
- package/dist/build-Ca40rJCO.mjs +0 -1
- package/dist/cat-RDUMLXKC-JY2w4DEE.mjs +0 -1
- package/dist/channel-BQl_ktPZ.mjs +0 -2
- package/dist/chmod-SYMGL4JA-3Hk_1ELN.mjs +0 -1
- package/dist/chunk-426QAEUC-B_MzMc_U.mjs +0 -2
- package/dist/classDiagram-6PBFFD2Q-L301VcDG.mjs +0 -2
- package/dist/classDiagram-v2-HSJHXN6E-CeSqnnqg.mjs +0 -2
- package/dist/clear-5CZ5X4YR-BDbutb2U.mjs +0 -1
- package/dist/clone-DETmm2Pe.mjs +0 -2
- package/dist/colors-C2Tw16G0.mjs +0 -1
- package/dist/column-WLPMMSTS-CV6fCKBB.mjs +0 -1
- package/dist/comm-5SLSESQG-c_QNAuoh.mjs +0 -1
- package/dist/constants-V3-G8ouF.mjs +0 -2
- package/dist/cp-XOYR4ABJ-Dy7On9-M.mjs +0 -1
- package/dist/cut-OPC3VAGB-BuR9R75Y.mjs +0 -1
- package/dist/date-DD7FVA2V-ClXjwml9.mjs +0 -1
- package/dist/diff-HJF2MPDN-C0H4yjXW.mjs +0 -1
- package/dist/dirname-LEMTZZFS-4AT-pFX0.mjs +0 -1
- package/dist/dist-DCduX7hU.mjs +0 -1
- package/dist/dist-bundle-BA0EtAC7.mjs +0 -1
- package/dist/du-WO2ENHXQ-Do-4VQ3V.mjs +0 -1
- package/dist/echo-O45JWWI2-DdI80aCx.mjs +0 -1
- package/dist/env-5EPCWSXR-CDfcyvrs.mjs +0 -1
- package/dist/expand-DTNXU4LQ-D-zXh5CC.mjs +0 -1
- package/dist/expansion-VBDYWVZR-DTjZRtii.mjs +0 -1
- package/dist/expr-YYCVMXE3-C9dGgUU3.mjs +0 -1
- package/dist/file-IGDTDPLG-BEwb4MXq.mjs +0 -1
- package/dist/find-DH2ALKQS-Dni7700t.mjs +0 -1
- package/dist/flag-coverage-6JEX67RU-CMw4W0rs.mjs +0 -2
- package/dist/fold-LDSORVYE-g18Hkyqy.mjs +0 -1
- package/dist/gh-detect-BeZkyai4.mjs +0 -3
- package/dist/git-handle-BMLM1Bxa-Bic5A31t.mjs +0 -1
- package/dist/git-handle-XXj9bu6B-DY30-mw9.mjs +0 -10
- package/dist/gitGraph-7Q5UKJZL-D8oR6R4c.mjs +0 -1
- package/dist/grep-2HUTXO5U-Dq78Al2p.mjs +0 -1
- package/dist/gzip-AQXSGOVS-C9_JolVc.mjs +0 -1
- package/dist/head-HT2B6D2J-CdrKE_Tc.mjs +0 -1
- package/dist/help-VVWX7SA5-DdmujeOs.mjs +0 -1
- package/dist/history-J4QRNGRO-Bm3N_FkO.mjs +0 -1
- package/dist/hostname-BK6HG2DE-DdT-PlzJ.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-D2mzPMGY.mjs +0 -1
- package/dist/info-OMHHGYJF-pWbeXW42.mjs +0 -1
- package/dist/init-B6XHcAVC.mjs +0 -639
- package/dist/init-D82_JGjG.mjs +0 -1
- package/dist/join-GG2LDHE5-DV7ilddy.mjs +0 -1
- package/dist/jq-LYZFFBZB-DhEnecL2.mjs +0 -1
- package/dist/ln-4TRFBYAT-Cg_-SGIL.mjs +0 -1
- package/dist/loader-CXDA_GSY.mjs +0 -4
- package/dist/loader-DwTqpime.mjs +0 -1
- package/dist/ls-KSXFZCWH-RlHCZlxm.mjs +0 -1
- package/dist/md5sum-INMIK4DX-BXlXL3Ru.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-Cu2DJyfB.mjs +0 -1
- package/dist/mv-Z6MORUFL-BsEWL09Z.mjs +0 -1
- package/dist/nl-U5YJDM32-BybO7Epu.mjs +0 -1
- package/dist/od-VJEF2UR5-OIZrgjg0.mjs +0 -1
- package/dist/packet-4T2RLAQJ-BizdrxBC.mjs +0 -1
- package/dist/paste-7N6AFSDS-Ch72F0D2.mjs +0 -1
- package/dist/pie-ZZUOXDRM-BSULk3pW.mjs +0 -1
- package/dist/preview-C7E9lHEP.mjs +0 -1
- package/dist/printf-CX64KX2P-DS9NCBYX.mjs +0 -1
- package/dist/public/assets/CodeMirrorPropInput-D1tt2c9S.js +0 -3
- package/dist/public/assets/DocumentContext-CFR8QwrU.js +0 -36
- package/dist/public/assets/ReportBugDialogBody-CvNRKZlI.js +0 -2
- package/dist/public/assets/ShareBranchSwitchDialog-lPpqqOGw.js +0 -1
- package/dist/public/assets/index-Cs4DTKOK.css +0 -1
- package/dist/pwd-D4OZ7N27-PztYFitl.mjs +0 -1
- package/dist/radar-PYXPWWZC-BPIU1oIT.mjs +0 -1
- package/dist/readlink-MI4GCHJF-B72qVA05.mjs +0 -1
- package/dist/repair-skills-DhuvKw-z.mjs +0 -1
- package/dist/repair-skills-u_9IG9Uc.mjs +0 -3
- package/dist/rev-XOSYPP45-ByX-mrLe.mjs +0 -1
- package/dist/rg-XNF3R3II-CnMv6YV-.mjs +0 -1
- package/dist/rm-RTZG23RL-CEw97Zb0.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-BFdmBJEt.mjs +0 -1
- package/dist/sed-JAPPVBEU-2bqT53N-.mjs +0 -1
- package/dist/seq-RN5ZUASB-DxG4OIr9.mjs +0 -1
- package/dist/server-lock-GuuouVft-BqVdkOBo.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-4-wvJ2xb.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-BaaxN7Tl.mjs +0 -1
- package/dist/sleep-VZFPZFWA-BllHeqyP.mjs +0 -1
- package/dist/sort-DCNRDA7U-CuZyvLiY.mjs +0 -1
- package/dist/split-SITCSYCZ-_ZnwVuas.mjs +0 -1
- package/dist/sqlite3-TE5AIOTF-CNPF-saV.mjs +0 -1
- package/dist/src-BLzsM3yW.mjs +0 -21
- package/dist/start-DHOe9Y53.mjs +0 -3
- package/dist/start-UT9R53G6.mjs +0 -1
- package/dist/stat-BT5A227F-D9HiKzDi.mjs +0 -1
- package/dist/stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs +0 -2
- package/dist/strings-7PLOGTPD-kZJh53lS.mjs +0 -1
- package/dist/tac-SJGXQ4T2-Eo9pASuo.mjs +0 -1
- package/dist/tail-S5ULNTJU-PpwHAjse.mjs +0 -1
- package/dist/tar-MZQD7NO4-9e7UblLx.mjs +0 -1
- package/dist/tee-O7VXZDCO-CBU43Hsm.mjs +0 -1
- package/dist/time-DEUO3QV2-BpiPEFvF.mjs +0 -1
- package/dist/timeout-VRKMCG72-COJoI5YN.mjs +0 -1
- package/dist/touch-DX2IJOQ4-C4-z30TF.mjs +0 -1
- package/dist/tr-2HXZRDSW-C9BbHiUE.mjs +0 -1
- package/dist/tree-LYXBS7DC-BSj-bS3l.mjs +0 -1
- package/dist/treeView-SZITEDCU-CxDAshOW.mjs +0 -1
- package/dist/treemap-W4RFUUIX-Akln3RQv.mjs +0 -1
- package/dist/true-WHJNXCHG-BkJIzmUI.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-C-to2fwU.mjs +0 -1
- package/dist/uniq-SUNANL47-o1tLcwbX.mjs +0 -1
- package/dist/wardley-RL74JXVD-Djy_JGGm.mjs +0 -1
- package/dist/wc-TQB3VNOX-B-lPuWMt.mjs +0 -1
- package/dist/which-XZHEH76L-a4M_VoGw.mjs +0 -1
- package/dist/whoami-DGKU3D2X-DJ9OZDEX.mjs +0 -1
- package/dist/write-project-skill-BRmXxgY_.mjs +0 -36
- package/dist/xan-UD7JYIL2-DqVUhpbk.mjs +0 -1
- package/dist/xan-view-OW2TB7Z3-BmNMcZHM.mjs +0 -1
- package/dist/xargs-I6EZUCYF-DphRNePs.mjs +0 -1
- package/dist/yazl-CQSNnbvt.mjs +0 -1
- package/dist/yq-OAKYHSXH-BBrPVcxh.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-A4HU7SVR-DPxgapmK.mjs";export{e as pwdCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-ChGdeubA.mjs";import{n as e}from"./chunk-2KRD3SAO-Ci0JL9ng.mjs";export{e as createRadarServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-HJWBQKYG-D9DjORFc.mjs";export{e as readlinkCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./repair-skills-u_9IG9Uc.mjs";export{e as repairSkills};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Da as e}from"./server-lock-iLcBw_q0-JO3R7Mim.mjs";import{Br as t,Gr as n,Lr as r,Yr as i,ca as a,d as o,lt as s,pa as c,ti as l}from"./dist-qyTbo9j_.mjs";import{t as u}from"./esm-BNIW0EH8.mjs";import{a as d,d as f,f as p,t as m}from"./write-project-skill-BRmXxgY_.mjs";import{dirname as h,join as g,resolve as _}from"node:path";import{existsSync as v,mkdirSync as y,readFileSync as b,readdirSync as x,rmSync as S,statSync as C,writeFileSync as w}from"node:fs";import{homedir as T}from"node:os";const E={existsSync:e=>v(e),isDirectory:e=>{try{return C(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>x(e),readFileSync:e=>b(e),writeFileSync:(e,t)=>{w(e,t)},mkdirSync:(e,t)=>{y(e,t)},rmSync:(e,t)=>{S(e,t)}},D={resolveProjectBundledSkillDir:()=>l(`project`,{checkDesktop:!1}),resolveUserBundledSkillDir:e=>l(e,{checkDesktop:!1}),readBundledVersion:()=>t(),readRecordedVersion:e=>n(e,`cli-hosts`),writeRecordedVersion:(e,t)=>c(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>i(e),readBundleDecision:(e,t)=>r(e,t),writeBundleDecision:(e,t,n)=>a(e,t,n),removeBundleFromDisk:(e,t)=>d(e,t)};function O(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function k(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(h(t),{recursive:!0}),A(e,t,n)}function A(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=g(e,r),a=g(t,r);n.isDirectory(i)?A(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function j(e,t,n,r,i,a){let o=[],s=g(e,`.agents`,`skills`,t),c=r.existsSync(s),l=!1;try{k(n,s,r),l=!0,o.push({kind:`central`,path:s,outcome:c?`overwritten`:`written`}),i({event:`user-skill-reclaim-central-written`,scope:`user`,path:s,preexisting:c,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`central`,path:s,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-central-failed`,scope:`user`,path:s,error:t})}for(let c of p){let l=g(e,c.hostDir),u=g(l,`skills`,t);if(u===s){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-collapsed-with-central`});continue}if(!r.existsSync(l)){o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`skipped-host-absent`});continue}let d=r.existsSync(u);try{k(n,u,r),o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:d?`overwritten`:`written`}),i({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,preexisting:d,version:a})}catch(e){let t=e instanceof Error?e.message:String(e);o.push({kind:`host`,editorId:c.editorId,hostDir:c.hostDir,path:u,outcome:`failed`,error:t}),i({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:c.editorId,hostDir:c.hostDir,path:u,error:t})}}return{entries:o,centralWritten:l}}function M(e,t){if(!e)return!1;try{if(!t.existsSync(e))return!1;let n=t.readFileSync(e).toString(`utf8`);return n.includes(`# ok-mcp-v1`)||n.includes(`# ok-mcp-win-v1`)}catch{return!1}}function N(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of p){let o=g(e,t.hostDir,`skills`,`open-knowledge`),s=g(o,`SKILL.md`),c=n.existsSync(s),l=f[t.editorId]?.projectConfigPath?.(e),u=!c&&M(l,n);if(!c&&!u){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{m(o,e),k(i,o,n);let s=c?`reclaimed`:`created`;a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:s}),r({event:c?`project-skill-reclaim-reclaimed`:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function P(t,n,r,i){let a=e=>{n.recordEvent(e).catch(()=>{})},c=()=>new Date().toISOString(),l;try{l=await n.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return i({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),a({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let u;try{u=await n.readRecordedVersion(t)}catch(e){i({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),u=null}let d=[],f=null;for(let e of s)try{d.push({id:e,sourceDir:n.resolveUserBundledSkillDir(e)})}catch(e){f=e instanceof Error?e.message:String(e)}if(d.length===0)return i({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:f??`no user-global bundles`}),a({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,reason:`bundle-missing:${f}`}),{outcome:`skipped`,reason:`bundle-missing`};let p=[];for(let a of d){let s=o[a.id],c=r.existsSync(g(t,`.agents`,`skills`,s)),l=await n.readBundleDecision(t,s).catch(()=>null);if(!e(l,{installedOnDisk:c})){if(c)try{n.removeBundleFromDisk(t,a.id),i({event:`user-skill-reclaim-bundle-declined-removed`,scope:`user`,bundle:a.id})}catch(e){i({event:`user-skill-reclaim-bundle-remove-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}continue}if(l===null&&c)try{await n.writeBundleDecision(t,s,!0)}catch(e){i({event:`user-skill-reclaim-grandfather-write-failed`,scope:`user`,bundle:a.id,error:e instanceof Error?e.message:String(e)})}p.push(a)}if(p.length===0)return{outcome:`skipped`,reason:`all-bundles-declined`};let m=p.every(e=>r.existsSync(g(t,`.agents`,`skills`,o[e.id])));if(u!==null&&u===l&&m)return i({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:l}),{outcome:`skipped`,reason:`version-current`};let h=[],_=d.length===s.length,v=!0;for(let{id:e,sourceDir:n}of p){let a=j(t,o[e],n,r,i,l);h.push(...a.entries),a.centralWritten||(v=!1)}let y=h.some(e=>e.kind===`central`&&(e.outcome===`written`||e.outcome===`overwritten`));if(_&&v&&y){let e=null;try{await n.writeRecordedVersion(t,l),i({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:l})}catch(t){e=t instanceof Error?t.message:String(t),i({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:l,error:e})}for(let{id:t}of p)a({ts:c(),surface:`cli-start`,target:`cli-hosts`,bundle:t,outcome:e===null?`installed`:`failed`,version:l,...e===null?{}:{reason:`state-write-failed:${e}`}})}else{let e=h.some(e=>e.kind===`host`&&e.outcome===`failed`);a({ts:c(),surface:`cli-start`,target:`cli-hosts`,outcome:`failed`,version:l,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:l,entries:h}}async function F(e){let t=e.logger??O,n=e.fs??E,r=e.home??T(),i={...D,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:N(e.projectDir,i,n,t),user:await P(r,i,n,t)}}function I(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`&&e.user.reason!==`all-bundles-declined`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function L(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
|
|
2
|
-
`)}function R(){return new u(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").action(async()=>{let e=await F({projectDir:_(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${L(e)}\n`),process.exitCode=I(e)})}export{R as n,F as t};
|
|
3
|
-
//# sourceMappingURL=repair-skills-u_9IG9Uc.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-QCDB2VPH-D3ULCm4b.mjs";export{e as rev};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-CM6MrFZT.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-7TSDKFEO-9ACIOuIO.mjs";import"./chunk-2TRDZQLB-Kqh0farN.mjs";import{t as e}from"./chunk-YMMW5UAP-jiH3wEeU.mjs";export{e as rgCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-MIZPJHVH-BLEhGmNy.mjs";export{e as rmCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-OCS6LSEM-D4VLThbM.mjs";export{e as rmdirCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-CM6MrFZT.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import{t as e}from"./chunk-ZZO3UDB3-Jw0Ocy-R.mjs";export{e as sedCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-A7A2DBEE-DGJklf-9.mjs";export{e as seqCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,f as t,y as n}from"./server-lock-iLcBw_q0-JO3R7Mim.mjs";export{t as markServerLockDraining,e as releaseServerLock,n as updateServerLockPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-XKQRETAK-CG272cRl.mjs";export{e as sha1sumCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-5V6VZH6T-BEpcJpsv.mjs";export{e as sha256sumCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-A5O5YHGN-DApqA6Ow.mjs";import{n as e}from"./chunk-GOV5EKKI-CnqfYKLU.mjs";export{e as sleepCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-KMEYNNUA-C311YB2Q.mjs";export{e as sortCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-MYE6AGBJ-BkwmDIR4.mjs";export{e as split};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-A5O5YHGN-DApqA6Ow.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import{t as e}from"./chunk-XKWWSDBF-EI7W96Bb.mjs";export{e as sqlite3Command};
|
package/dist/src-BLzsM3yW.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{s as e}from"./chunk-C94x7I9S.mjs";import{c as t,ds as n,l as r,s as i,u as a}from"./server-lock-iLcBw_q0-JO3R7Mim.mjs";import{Ea as o,Nr as s,Oa as c,Pr as l,aa as u,bn as d,dn as f,oi as p,wn as m}from"./dist-qyTbo9j_.mjs";import{t as h}from"./yazl-Docqgl6q.mjs";import{t as g}from"./esm-BNIW0EH8.mjs";import"./gh-detect-BeZkyai4.mjs";import{E as _,S as v,T as y,_ as ee,b as te,o as b,v as x,w as S}from"./init-B6XHcAVC.mjs";import{n as C}from"./constants-V3-G8ouF.mjs";import{t as w}from"./is-object-DAC-mmwo.mjs";import{_ as ne,d as re,i as ie,v as T}from"./write-project-skill-BRmXxgY_.mjs";import"./loader-CXDA_GSY.mjs";import{c as ae}from"./colors-DugpbXz6.mjs";import"./preview-BMFi1baT.mjs";import{execSync as oe,spawnSync as E}from"node:child_process";import{basename as D,dirname as O,isAbsolute as k,join as A,relative as se,resolve as j,sep as ce}from"node:path";import{cpSync as le,createWriteStream as ue,existsSync as M,lstatSync as de,mkdirSync as N,mkdtempSync as fe,readFileSync as P,readdirSync as F,readlinkSync as pe,rmSync as I,statSync as me,writeFileSync as L}from"node:fs";import{arch as he,freemem as ge,homedir as _e,hostname as ve,platform as ye,release as be,tmpdir as xe,totalmem as Se,type as Ce,uptime as we}from"node:os";import{createHash as R}from"node:crypto";import{readFile as z,realpath as B}from"node:fs/promises";const Te=[{name:`macos-home-path`,regex:/\/Users\/[^/]+\//g,replacement:`~/`},{name:`linux-home-path`,regex:/\/home\/[^/]+\//g,replacement:`~/`},{name:`github-pat`,regex:/\b(ghp_|gho_|ghu_|ghs_|ghr_)[A-Za-z0-9]{36,}\b/g,replacement:`[REDACTED-GH-PAT]`},{name:`aws-access-key`,regex:/\b(AKIA|ASIA|ABIA)[A-Z2-7]{16}\b/g,replacement:`[REDACTED-AWS-KEY]`},{name:`anthropic-key`,regex:/\bsk-ant-api03-[A-Za-z0-9_-]{20,}\b/g,replacement:`[REDACTED-ANTHROPIC]`},{name:`openai-key`,regex:/\bsk-[A-Za-z0-9]{20,}\b/g,replacement:`[REDACTED-OPENAI]`},{name:`bearer-token`,regex:/([Aa]uthorization:\s*[Bb]earer\s+)\S+/g,replacement:`$1[REDACTED]`},{name:`jwt`,regex:/eyJ[A-Za-z0-9_-]{8,}\.eyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}/g,replacement:`[REDACTED-JWT]`},{name:`url-credentials`,regex:/:\/\/[^/\s:@]+:[^/\s:@]+@/g,replacement:`://[REDACTED]@`}],Ee=Te.map(e=>e.name);function V(e){let t=new Set,n=0;return{redacted:e.split(`
|
|
2
|
-
`).map(e=>{let r=e;for(let{name:e,regex:i,replacement:a}of Te)i.lastIndex=0,i.test(r)&&(t.add(e),n++,i.lastIndex=0,r=r.replace(i,a));return r}).join(`
|
|
3
|
-
`),patterns:[...t],lineCount:n}}function De(){return A(_e(),`.ok`,`bug-reports`)}function Oe(e=new Date){let t=e.toISOString().replace(/[:.]/g,`-`);return A(De(),`${t}-bugreport.zip`)}function ke(e,t){let n=A(e,`.ok`,`config.yml`);if(M(n))try{let e=P(n,`utf8`).match(/^\s*name:\s*['"]?(.+?)['"]?\s*$/m);if(e?.[1])return e[1]}catch(e){t?.warn({configPath:n,err:e instanceof Error?e.message:String(e)},`bug-report: failed to read .ok/config.yml for project slug; using path-hash fallback`)}return M(A(e,`.ok`))?R(`sha256`).update(j(e)).digest(`hex`).slice(0,12):null}function Ae(){let e={timestamp:new Date().toISOString(),platform:ye(),osType:Ce(),osRelease:be(),hostname:`[redacted]`,uptime:we(),freeMem:ge(),totalMem:Se(),nodeVersion:process.version,bunVersion:process.versions.bun??null,v8Version:process.versions.v8??null,pid:process.pid};try{e.macosVersion=oe(`sw_vers -productVersion 2>/dev/null`,u({encoding:`utf8`})).trim()}catch{}try{let t=A(__dirname,`..`,`..`,`package.json`);M(t)&&(e.okVersion=JSON.parse(P(t,`utf8`)).version)}catch{}return e}function je(e,t){if(!M(t))return{files:[]};let n=F(t).filter(e=>e.endsWith(`.log`)||/\.log\.\d+$/.test(e)).map(e=>A(t,e));if(e&&n.length>0){let t=n.filter(t=>{try{return P(t,`utf8`).includes(`"project":"${e}"`)}catch{return!0}});t.length>0&&(n=t)}return{files:n}}function Me(e){let t=A(e,`.ok`,`local`);return M(t)?{files:[`server.lock`,`last-spawn-error.log`].map(e=>A(t,e)).filter(e=>M(e))}:{files:[]}}function Ne(e){let t=A(e,`.ok`,`local`,`logs`);return M(t)?{files:[`server-current.jsonl`,`server-prev.jsonl`].map(e=>A(t,e)).filter(e=>M(e))}:{files:[]}}function Pe(e){if(e.redact){let{redacted:t,patterns:n,lineCount:r}=V(e.content);e.zipfile.addBuffer(Buffer.from(t,`utf8`),e.name),e.bundleFiles.push(e.name),n.length>0&&e.redactions.push({file:e.name,lineCount:r,patterns:n})}else e.zipfile.addBuffer(Buffer.from(e.content,`utf8`),e.name),e.bundleFiles.push(e.name)}function H(e){for(let t of e.files)try{Pe({zipfile:e.zipfile,name:`${e.prefix}/${D(t)}`,content:P(t,`utf8`),redact:e.redact,bundleFiles:e.bundleFiles,redactions:e.redactions})}catch(n){e.logger?.warn({file:t,prefix:e.prefix,err:n instanceof Error?n.message:String(n)},`bug-report: skipped unreadable file`)}}async function Fe(t){let{redact:n,outputPath:r,logger:i}=t,a=t.userLogsDir??A(_e(),`.ok`,`logs`),o=t.projectDir?ke(t.projectDir,i):null;N(O(r),{recursive:!0}),i?.info({projectSlug:o},`gathering diagnostic data`);let s=Ae();s.desktop=t.desktop??null;let{files:c}=je(o,a),{files:l}=t.projectDir?Me(t.projectDir):{files:[]},{files:u}=t.projectDir?Ne(t.projectDir):{files:[]};i?.info({logFileCount:c.length,lockFileCount:l.length,localSinkFileCount:u.length},`files collected`);let d=[],f=[],{ZipFile:p}=await import(`./yazl-CQSNnbvt.mjs`).then(t=>e(t.default,1)),m=new p;H({zipfile:m,files:c,prefix:`logs`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:l,prefix:`lockdir`,redact:n,bundleFiles:f,redactions:d,logger:i}),H({zipfile:m,files:u,prefix:`local-logs`,redact:n,bundleFiles:f,redactions:d,logger:i});for(let e of t.extraFiles??[])try{let t=P(e.sourcePath),n=`extra/${e.zipName??D(e.sourcePath)}`;m.addBuffer(t,n),f.push(n)}catch(t){i?.warn({sourcePath:e.sourcePath,err:t},`extra file unreadable; omitted from bundle`)}t.note&&Pe({zipfile:m,name:`note.txt`,content:t.note,redact:n,bundleFiles:f,redactions:d});let h=JSON.stringify(s,null,2);m.addBuffer(Buffer.from(h,`utf8`),`sysinfo.json`),f.push(`sysinfo.json`);let g={generatedAt:new Date().toISOString(),disciplineVersion:`1.0.0`,projectSlug:o,files:f,redactions:d,sysinfo:s};m.addBuffer(Buffer.from(JSON.stringify(g,null,2),`utf8`),`MANIFEST.json`);let _=d.reduce((e,t)=>e+t.lineCount,0),v=[`# Bug Report Bundle`,``,`Generated: ${g.generatedAt}`,`Project: ${o??`(unscoped)`}`,`Discipline version: ${g.disciplineVersion}`,``,`## Contents`,``,...f.map(e=>`- ${e}`),``,`## Privacy`,``,...n?[`This bundle was auto-redacted before packaging.`,`Patterns checked: ${Ee.join(`, `)}`,_>0?`${_} line(s) were scrubbed across ${d.length} file(s).`:`No redactions were needed.`,`See MANIFEST.json for the full redaction audit report.`,``,`This bundle is safe to attach to a GitHub issue.`]:[`Redaction was disabled for this bundle; file contents are unmodified.`]].join(`
|
|
4
|
-
`);m.addBuffer(Buffer.from(v,`utf8`),`README.md`),m.end();let y=ue(r);return m.outputStream.pipe(y),await new Promise((e,t)=>{y.on(`close`,e),y.on(`error`,t)}),i?.info({bundlePath:r,fileCount:f.length,redactionCount:_},`bundle written`),{zipPath:r,summary:{projectSlug:o,files:f,redactions:d,redactedLineCount:_,generatedAt:g.generatedAt}}}const Ie=new Set([`doc.name`]);function Le(e){return`doc:${R(`blake2b512`,{outputLength:32}).update(e).digest(`hex`).slice(0,8)}`}function Re(e,t,n){let r=e.docNameMap[n];if(r===void 0){e.docNameMap[n]=t;return}if(r===t)return;let i=e.docNameCollisions[n];i?i.includes(t)||i.push(t):e.docNameCollisions[n]=[t]}function ze(e,t){let n=t.originalToHashed.get(e);if(n!==void 0)return n;let r=Le(e);return t.originalToHashed.set(e,r),Re(t,e,r),r}function U(e,t){return t.length===0||!e.includes(t)?e:e.split(t).join(`<CONTENT_DIR>`)}function W(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function G(e,t){if(typeof e==`string`)return U(e,t.contentDir);if(Array.isArray(e))return e.map(e=>G(e,t));if(!W(e))return e;let n=typeof e.key==`string`&&Ie.has(e.key)&&W(e.value)&&typeof e.value.stringValue==`string`?e.value.stringValue:null,r={};for(let[i,a]of Object.entries(e))if(n!==null&&i===`value`&&W(a)){let e=ze(n,t);r[i]={...a,stringValue:e}}else Ie.has(i)&&typeof a==`string`?r[i]=ze(a,t):r[i]=G(a,t);return r}function Be(e,t){if(t.originalToHashed.size===0)return e;let n=Array.from(t.originalToHashed.entries()).sort(([e],[t])=>t.length-e.length),r=e;for(let[e,t]of n)e.length!==0&&r.includes(e)&&(r=r.split(e).join(t));return r}function Ve(e,t){let n=P(e,`utf-8`);if(n.length===0)return;let r=n.endsWith(`
|
|
5
|
-
`),i=n.split(`
|
|
6
|
-
`),a=[];for(let e=0;e<i.length;e++){let n=i[e]??``;if(!(e===i.length-1&&n===``)){if(n.length===0){a.push(``);continue}try{let e=G(JSON.parse(n),t);a.push(JSON.stringify(e))}catch{a.push(n)}}}L(e,r?`${a.join(`
|
|
7
|
-
`)}\n`:a.join(`
|
|
8
|
-
`))}function He(e,t){let n=P(e,`utf-8`);if(n.trim().length!==0)try{let r=G(JSON.parse(n),t),i=n.endsWith(`
|
|
9
|
-
`)?`
|
|
10
|
-
`:``;L(e,`${JSON.stringify(r,null,2)}${i}`)}catch{let r=Be(U(n,t.contentDir),t);r!==n&&L(e,r)}}function Ue(e,t){let n=P(e,`utf-8`),r=U(n,t.contentDir);r!==n&&L(e,r)}function We(e){try{return F(e,{withFileTypes:!0}).filter(e=>e.isFile()).map(t=>A(e,t.name))}catch{return[]}}const Ge=new Set([`agent-presence.json`,`runtime.json`]);function Ke(e){let t={contentDir:e.contentDir,docNameMap:{},originalToHashed:new Map,docNameCollisions:{}};for(let n of[`telemetry`,`logs`,`process`])for(let r of We(A(e.stagingDir,n)))r.endsWith(`.jsonl`)?Ve(r,t):r.endsWith(`.json`)?He(r,t):Ue(r,t);for(let n of We(A(e.stagingDir,`state`))){let e=D(n);Ge.has(e)?He(n,t):Ue(n,t)}return{docNameMap:t.docNameMap,docNameCollisions:t.docNameCollisions}}var K=n(),qe=e(h(),1);const Je=[`.ok`,`local`,`telemetry`],Ye=[`.ok`,`local`,`logs`],Xe=`spans-current.jsonl`,Ze=`spans-prev.jsonl`,Qe=`server-current.jsonl`,$e=`server-prev.jsonl`;function et(e){return A(e,...Je,Xe)}function tt(e){return A(e,...Je,Ze)}function nt(e){return A(e,...Ye,Qe)}function rt(e){return A(e,...Ye,$e)}async function it(e){try{let t=await fetch(`http://127.0.0.1:${e}/api/metrics/agent-presence`,{signal:AbortSignal.timeout(1e3)});return t.ok?await t.text():null}catch{return null}}function at(e){let t=A(e,`.git`,`ok`);if(!M(t))return null;let n=E(`git`,[`-C`,t,`log`,`--oneline`,`-50`],u({encoding:`utf-8`,timeout:2e3}));return n.error||n.status!==0?null:n.stdout??``}function ot(){let e=process.env.OK_DESKTOP_VERSION,t=process.env.OK_DESKTOP_PACKAGED,n=process.env.OK_DESKTOP_CHANNEL;return e===void 0||t===void 0||n===void 0?null:{electronVersion:e,packaged:t===`1`||t.toLowerCase()===`true`,channel:n}}function st(){return{nodeVersion:process.version,platform:ye(),arch:he()}}function ct(){return process.env.OTEL_SDK_DISABLED===`false`}function q(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function lt(e){if(!M(e))return{};let t;try{t=(0,K.parse)(P(e,`utf-8`))}catch(t){return console.warn(`[ok diagnose bundle] failed to parse ${e} for manifest config; manifest will report schema defaults. Reason: ${t instanceof Error?t.message:String(t)}`),{}}if(!q(t))return{};let n=t.telemetry;if(!q(n))return{};let r=n.localSink;return q(r)?r:{}}function ut(e){return typeof e==`boolean`?e:void 0}function dt(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?e:void 0}function J(e){if(q(e))return dt(e.maxBytes)}function ft(e){let t=lt(c(`project`,e)),n=lt(c(`project-local`,e));return{enabled:ut(n.enabled)??ut(t.enabled)??!0,spansMaxBytes:J(n.spans)??J(t.spans)??52428800,logsMaxBytes:J(n.logs)??J(t.logs)??26214400}}function pt(e){return R(`sha256`).update(e).digest(`hex`)}function mt(e){let t=P(e),n=0;for(let e=0;e<t.length;e++)t[e]===10&&n++;return n}function ht(e){let t=P(e,`utf-8`),n=`"doc.name"`,r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+10);return r}function Y(e,t){return M(e)?(N(O(t),{recursive:!0}),le(e,t),!0):!1}function gt(e){let t=[],n=e=>{let r=F(e,{withFileTypes:!0});for(let i of r){let r=A(e,i.name);i.isDirectory()?n(r):i.isFile()&&t.push(r)}};return n(e),t.sort()}const _t=new Set([`.jsonl`]);function vt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:_t.has(e.slice(t))}const yt=new Set([`.jsonl`,`.json`,`.txt`,`.log`,`.lock`]);function bt(e){let t=e.lastIndexOf(`.`);return t===-1?!1:yt.has(e.slice(t))}function xt(e){let t=[];for(let n of gt(e)){let r=St(e,n);if(!bt(r))continue;let{redacted:i,patterns:a,lineCount:o}=V(P(n,`utf-8`));a.length!==0&&(L(n,i),t.push({file:r,lineCount:o,patterns:a}))}return{redactions:t,redactedLineCount:t.reduce((e,t)=>e+t.lineCount,0)}}function St(e,t){return se(e,t).split(ce).join(`/`)}async function Ct(e){let t=j(e.contentDir),n=j(e.projectDir??e.contentDir),r=e.deps??{},i=r.fetchAgentPresence??it,a=r.readShadowHead??at,o=r.now??(()=>new Date),s=r.okVersion??(()=>C),c=r.readDesktopEnv??ot,l=r.readRuntime??st,u=r.isOtlpPushEnabled??ct,d=fe(A(xe(),`ok-bundle-`));try{N(A(d,`telemetry`),{recursive:!0}),N(A(d,`logs`),{recursive:!0}),N(A(d,`state`),{recursive:!0}),Y(et(n),A(d,`telemetry`,Xe)),Y(tt(n),A(d,`telemetry`,Ze)),Y(nt(n),A(d,`logs`,Qe)),Y(rt(n),A(d,`logs`,$e));let f=A(n,`.ok`,`local`),p=A(f,`server.lock`),m=`not-running`,h=`no server.lock`,g=null;if(M(p)){Y(p,A(d,`state`,`server.lock`));try{let e=P(p,`utf-8`),t=JSON.parse(e);typeof t.port==`number`?g=t.port:h=`lock present but no port`}catch{h=`lock present but unparseable`}}if(g!==null){let e=await i(g);e===null?h=`agent-presence endpoint at :${g} unreachable`:(L(A(d,`state`,`agent-presence.json`),e),m=`running`,h=``)}let _=a(t);_!==null&&L(A(d,`state`,`shadow-head.txt`),_),Y(A(f,`last-spawn-error.log`),A(d,`state`,`last-spawn-error.log`));let v=l(),y=c(),ee={ok:{version:s(),nodeVersion:v.nodeVersion,platform:v.platform,arch:v.arch},host:{desktop:y}};L(A(d,`state`,`runtime.json`),`${JSON.stringify(ee,null,2)}\n`);let te=m===`running`?`running
|
|
11
|
-
`:`not-running (${h})\n`;if(L(A(d,`state`,`server-status.txt`),te),e.processDir&&M(e.processDir)){let t=A(d,`process`);N(t,{recursive:!0}),le(e.processDir,t,{recursive:!0})}let b=null;e.redact===!0&&(b=Ke({stagingDir:d,contentDir:t})),e.note&&L(A(d,`note.txt`),e.note);let x=null;e.scrubSecrets===!0&&(x=xt(d));for(let t of e.extraFiles??[])Y(t.sourcePath,A(d,`extra`,t.zipName??D(t.sourcePath)))||r.logger?.warn({sourcePath:t.sourcePath},`extra file missing; omitted from bundle`);let S=ft(n),C=gt(d),w=[],ne=0,re=0;for(let e of C){let t=St(d,e),n=me(e).size,r=vt(t)?mt(e):0;w.push({path:t,bytes:n,lines:r}),ne+=n,t.startsWith(`telemetry/`)&&vt(t)&&(re+=ht(e))}let ie=b===null?{applied:!1,docNameMapSidecar:null}:Object.keys(b.docNameCollisions).length>0?{applied:!0,docNameMapSidecar:null,docNameCollisions:b.docNameCollisions}:{applied:!0,docNameMapSidecar:null};x!==null&&(ie.secretScrub=x);let T={schemaVersion:1,createdAt:o().toISOString(),ok:{version:s(),nodeVersion:v.nodeVersion,platform:v.platform,arch:v.arch},host:{desktop:y},contentDir:{pathSha256:pt(t),absolutePath:b===null?t:`<CONTENT_DIR>`},telemetry:{localSink:S,otlpPushEnabled:u()},redaction:ie,serverStatus:m,files:w};L(A(d,`manifest.json`),`${JSON.stringify(T,null,2)}\n`);let ae=C.some(e=>{try{return P(e,`utf-8`).includes(t)}catch{return!1}}),oe={totalBytes:ne,fileCount:w.length,docNameCount:re,contentDirVisible:ae,redacted:b!==null},E=!1;return{stagingDir:d,manifest:T,summary:oe,redactionMapPayload:b===null?null:{docNameMap:b.docNameMap,docNameCollisions:b.docNameCollisions},cleanup:()=>{E||(E=!0,I(d,{recursive:!0,force:!0}))}}}catch(e){throw I(d,{recursive:!0,force:!0}),e}}async function wt(e){let{collected:t,outputPath:n}=e,r=O(n);if(!M(r))throw Error(`ok diagnose bundle: parent directory does not exist: ${r}. Create it or pass --out with an existing parent.`);if(t.redactionMapPayload!==null){let e=`${D(n,`.zip`)}.docnames.json`,r={...t.manifest,redaction:{...t.manifest.redaction,applied:!0,docNameMapSidecar:e}};L(A(t.stagingDir,`manifest.json`),`${JSON.stringify(r,null,2)}\n`)}let i=new qe.ZipFile,a=gt(t.stagingDir);for(let e of a){let n=St(t.stagingDir,e);i.addFile(e,n)}i.end(),t.redactionMapPayload!==null&&L(A(r,`${D(n,`.zip`)}.docnames.json`),`${JSON.stringify({docNameMap:t.redactionMapPayload.docNameMap,docNameCollisions:t.redactionMapPayload.docNameCollisions},null,2)}\n`,{mode:384});let o=ue(n);return i.outputStream.pipe(o),await new Promise((e,t)=>{o.on(`close`,e),o.on(`error`,t),i.outputStream.on(`error`,t)}),n}function Tt(e,t){let n=A(e,`.ok`,`config.yml`);if(M(n))try{let t=(0,K.parse)(P(n,`utf-8`)),r=w(t)?t.content:void 0,i=w(r)?r.dir:void 0;if(typeof i==`string`&&i.length>0)return j(e,i)}catch(e){t?.warn({configPath:n,err:e instanceof Error?e.message:String(e)},`bug-report: failed to read .ok/config.yml; falling back to project root as content dir`)}return j(e)}async function Et(e,t,n){let r=await Ct({contentDir:Tt(t,e.logger),projectDir:t,redact:e.redact,scrubSecrets:e.redact,note:e.note,extraFiles:e.extraFiles,deps:{readDesktopEnv:n,logger:e.logger}});try{N(O(e.outputPath),{recursive:!0}),await wt({collected:r,outputPath:e.outputPath});let n=r.manifest.redaction.secretScrub;return{zipPath:e.outputPath,summary:{level:`full`,systemWide:!1,projectSlug:ke(t,e.logger),files:r.manifest.files.map(e=>e.path),redactions:n?.redactions??[],redactedLineCount:n?.redactedLineCount??0,generatedAt:r.manifest.createdAt}}}finally{r.cleanup()}}async function Dt(e){let{projectDir:t}=e,n=e.readDesktopEnv??ot;if(e.level===`full`&&t!==void 0)return Et(e,t,n);let{zipPath:r,summary:i}=await Fe({projectDir:t,redact:e.redact,outputPath:e.outputPath,userLogsDir:e.userLogsDir,logger:e.logger,note:e.note,extraFiles:e.extraFiles,desktop:n()});return{zipPath:r,summary:{level:e.level,systemWide:t===void 0,projectSlug:i.projectSlug,files:i.files,redactions:i.redactions,redactedLineCount:i.redactedLineCount,generatedAt:i.generatedAt}}}function X(e,n,o={}){let s=a(e,n);if(!M(s))return{status:`missing`,lockPath:s};let c;try{c=JSON.parse(P(s,`utf-8`))}catch{return{status:`corrupt`,lockPath:s}}if(!c||typeof c!=`object`||!r(c.pid))return{status:`corrupt`,lockPath:s};let l=c;if(!(o.isAlive??t)(l.pid))return{status:`dead-pid`,lockPath:s,lock:l};if(typeof l.machineId==`string`)return l.machineId===(o.machineId??i())?{status:`alive`,lockPath:s,lock:l}:{status:`foreign-host`,lockPath:s,lock:l};let u=o.host??ve();return l.hostname===u?{status:`alive`,lockPath:s,lock:l}:{status:`foreign-host`,lockPath:s,lock:l}}function Ot(e){return e.replace(/:\d+$/,``)}function kt(e){let t=e.trim();if(!t)return null;{let e=/^https?:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`https`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^ssh:\/\/(?:[\w.-]+@)?([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`ssh`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^git:\/\/([^/?#]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:Ot(e[1]),owner:e[2],name:e[3]}}{let e=/^(?:[\w.-]+@)?([\w.-]+):([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e?.[1].includes(`.`)||e&&t.startsWith(`git@`))return{protocol:`ssh`,hostname:e[1],owner:e[2],name:e[3]}}{let e=/^git:([\w.-]+)\/([\w.\-~%]+)\/([\w.\-~%]+?)(?:\.git)?\/?$/.exec(t);if(e)return{protocol:`git`,hostname:e[1],owner:e[2],name:e[3]}}if(!t.includes(`://`)&&!t.includes(`@`)&&!t.startsWith(`/`)){let e=/^([\w.-]+)\/([\w.\-~%]+?)(?:\.git)?$/.exec(t);if(e)return{protocol:`https`,hostname:`github.com`,owner:e[1],name:e[2]}}return null}function At(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`).filter(e=>e.length>0);if(n.length<5||n[2]!==`blob`)return null;let r,i,a,o;try{r=decodeURIComponent(n[0]),i=decodeURIComponent(n[1]),a=decodeURIComponent(n[3]),o=n.slice(4).map(e=>decodeURIComponent(e))}catch{return null}return!r||!i||!a||o.length===0||o.some(e=>e.length===0)?null:{owner:r,repo:i,branch:a,path:o.join(`/`)}}function jt(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!==`github.com`&&t.hostname!==`www.github.com`)return null;let n=t.pathname.split(`/`);if(n.length<5||n[0]!==``||n[3]!==`tree`)return null;let r=n.slice(5);r.length===1&&r[0]===``&&r.pop();let i,a,o,s;try{i=decodeURIComponent(n[1]),a=decodeURIComponent(n[2]),o=decodeURIComponent(n[4]),s=r.map(e=>decodeURIComponent(e))}catch{return null}return!i||!a||!o||s.some(e=>e.length===0)?null:{owner:i,repo:a,branch:o,path:s.join(`/`)}}function Mt(e){let t=At(e);if(t)return{kind:`doc`,...t};let n=jt(e);return n?{kind:`folder`,...n}:null}const Nt=`# >>> open-knowledge cli >>>`,Pt=`# <<< open-knowledge cli <<<`,Ft=/^# >>> open-knowledge cli >>>\n[\s\S]*?^# <<< open-knowledge cli <<<\n?/m;function It(e){return A(e,`Library`,`Application Support`,`OpenKnowledge`,`path-install.json`)}const Lt={existsSync:e=>M(e),readFileSync:(e,t)=>P(e,t),lstatSync:e=>de(e),readlinkSync:e=>pe(e)};function Rt(e,t=Lt){let n=It(e);if(!t.existsSync(n))return null;try{let e=JSON.parse(t.readFileSync(n,`utf8`));return e?.version===1?e:null}catch{return null}}function zt(e){let t=e.replace(Ft,``);return{text:t,changed:t!==e,emptyAfter:t.trim()===``}}function Bt(e,t,n=Lt){try{return n.lstatSync(e).isSymbolicLink()?n.readlinkSync(e)===t:!1}catch{return!1}}function Vt(e){return ne(e)||T(e)||v(e)}const Ht=10*1024*1024;function Ut(e,t,n,r){let i=b(e,t,n,r);if(i.kind===`absent`||i.kind===`no-entry`)return{kind:`not-present`};if(i.kind===`decline`)return{kind:`declined`,reason:i.reason};if(!Vt(i.entry))return{kind:`left-foreign`};let a;try{a=r??e.configPath(t,n)}catch{return{kind:`not-present`}}let o=e.serverName(t);return e.format===`file`?(I(a,{force:!0}),{kind:`removed`}):e.format===`toml`?Kt(a,o):e.format===`yaml`?Gt(a,e.topLevelKey,o):Wt(a,e.topLevelKey,e.serverMapSubKey,o)}function Wt(e,t,n,r){let i;try{i=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(i,`utf-8`)>Ht)return{kind:`declined`,reason:`oversize`};let{text:a,changed:s}=_(i,ee(t,n,r));return s?(o(e,a,{mode:S(e)}),{kind:`removed`}):{kind:`not-present`}}function Gt(e,t,n){let r;try{r=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}if(Buffer.byteLength(r,`utf-8`)>Ht)return{kind:`declined`,reason:`oversize`};let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,s=(0,K.parseDocument)(a);if(s.errors.length>0)return{kind:`declined`,reason:`unparseable`};let c=[t,n];if(!s.hasIn(c))return{kind:`not-present`};s.deleteIn(c);let l=s.toString(),u=y(a);a.trim()===``||a.endsWith(`
|
|
12
|
-
`)?l.endsWith(`
|
|
13
|
-
`)||(l=`${l}\n`):l=l.replace(/\n+$/,``),u&&(l=l.replace(/\r\n/g,`
|
|
14
|
-
`).replace(/\n/g,`\r
|
|
15
|
-
`));let d=`${i?``:``}${l}`;return d!==r&&o(e,d,{mode:S(e)}),{kind:`removed`}}function Kt(e,t){let n=te();if(n.backend===`fallback`)return{kind:`declined`,reason:`no-native-writer`};let r;try{r=P(e,`utf-8`)}catch{return{kind:`declined`,reason:`unparseable`}}let i=r.charCodeAt(0)===65279,a=i?r.slice(1):r,s=y(a),c=a.trim()===``||a.endsWith(`
|
|
16
|
-
`),l;try{l=n.removeEntry(a,t)}catch{return{kind:`declined`,reason:`unparseable`}}if(!l.existed)return{kind:`not-present`};let u=l.text;c?u.endsWith(`
|
|
17
|
-
`)||(u=`${u}\n`):u=u.replace(/\n+$/,``),s&&(u=u.replace(/\r\n/g,`
|
|
18
|
-
`).replace(/\n/g,`\r
|
|
19
|
-
`));let d=`${i?``:``}${u}`;return d!==r&&o(e,d,{mode:S(e)}),{kind:`removed`}}const qt=new Set([`start`,`stop`,`status`,`clean`,`ui`,`mcp`,`preview`,`lint`,`deinit`,`auth`]);function Jt(e,t,n=m){if(e!==void 0&&!qt.has(e))return null;let r=n(t);return r===null||r.distance===0?null:r.rootPath}let Yt=null;function Xt(e){Yt=e}function Zt(){return Yt??process.cwd()}var Z=e(ae(),1);function Qt(e){return e==null?!1:e.includes(`--type=utility`)&&e.includes(`--utility-sub-type=node.mojom.NodeService`)}function $t(e,t=Date.now()){let n=new Date(e).getTime();if(Number.isNaN(n))return`—`;let r=t-n,i=Math.floor(r/1e3);if(i<60)return`${i}s`;let a=Math.floor(i/60);if(a<60)return`${a}m ago`;let o=Math.floor(a/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function en(e,t,n,r,i,a){if(t.status===`missing`||t.status===`corrupt`)return null;let o=t.lock,s=null;if(n.status!==`missing`&&n.status!==`corrupt`){let e=n.lock;s={port:e.port,status:n.status,pid:e.pid,startedAt:e.startedAt,usage:a}}return{directory:o.worktreeRoot,server:{port:o.port,status:t.status,pid:o.pid,startedAt:o.startedAt,usage:i},ui:s,hostname:o.hostname,lockPath:t.lockPath,binary:r==null?null:d(r),command:r,isDesktop:Qt(r)}}function tn(e){return e.ui==null?!1:e.ui.status===`alive`||e.ui.status===`foreign-host`}function Q(e){let t=e.server.status;return t===`alive`||t===`foreign-host`?e.isDesktop?`desktop`:t===`alive`?`running`:`foreign`:t===`dead-pid`&&tn(e)?`ui-orphan`:`stale`}const nn=new Set([`running`,`desktop`,`foreign`,`ui-orphan`]);function rn(e){switch(e){case`running`:return Z.default.green(e);case`desktop`:return Z.default.blue(e);case`foreign`:return Z.default.cyan(e);case`ui-orphan`:return Z.default.magenta(e);case`stale`:return Z.default.yellow(e)}}function an(e){return e==null?`—`:`${e.cpuPercent.toFixed(1)}% / ${e.memPercent.toFixed(1)}%`}function on(e){return`${an(e.server.usage)} | ${an(e.ui?.usage??null)}`}function sn(e){return`${e.server.port===0?`(starting)`:String(e.server.port)} / ${e.ui==null||e.ui.status===`dead-pid`?`—`:String(e.ui.port)}`}function cn(e){if(e.length===0)return`No open-knowledge servers found.`;let t=[`DIRECTORY`,`PORTS (API/UI)`,`CPU/MEM (API | UI)`,`STATUS`,`PID`,`STARTED`,`BINARY`],n=e.map(e=>{let t=Q(e),n=t===`ui-orphan`&&e.ui!=null?e.ui.pid:e.server.pid;return[e.directory,sn(e),on(e),t,String(n),$t(e.server.startedAt),e.binary??`—`]}),r=t.length,i=t.map(e=>e.length);for(let e of n)for(let t=0;t<r;t++)i[t]=Math.max(i[t]??0,(e[t]??``).length);let a=t.map((e,t)=>e.padEnd(i[t]??0)).join(` `).trimEnd(),o=e.map((e,t)=>{let a=n[t]??[],o=[];for(let t=0;t<r;t++){let n=(a[t]??``).padEnd(i[t]??0);if(t===3){let r=a[t]??``;n=rn(Q(e))+` `.repeat(Math.max(0,(i[t]??0)-r.length))}o.push(n)}return o.join(` `).trimEnd()}),s=Z.default.dim(`To stop a server: ok stop <port|pid|directory|all>`);return[a,...o,``,s].join(`
|
|
20
|
-
`)}async function ln(e={}){let t=e.discover??f,n=e.inspect??X,r=e.log??(e=>console.log(e)),i=e.resolveCommand??s,a=e.resolveUsage??l,o=await t(),c=[];for(let e of o){let t=n(e,`server`),r=n(e,`ui`),o=en(e,t,r,t.status===`missing`||t.status===`corrupt`?null:i(t.lock.pid),t.status===`missing`||t.status===`corrupt`?null:a(t.lock.pid),r.status===`missing`||r.status===`corrupt`?null:a(r.lock.pid));o!=null&&c.push(o)}if(e.json){let e=c.map(e=>({...e,displayStatus:Q(e)}));r(JSON.stringify(e,null,2));return}r(cn(e.all?c:c.filter(e=>nn.has(Q(e)))))}function un(){return new g(`ps`).description(`List all running open-knowledge servers`).argument(`[modifier]`,`"all" to include stale (dead-pid) entries`).option(`--all`,`Include stale (dead-pid) entries (foreign-host shows by default)`).option(`--json`,`Emit structured JSON (always includes all statuses)`).action(async(e,t)=>{await ln({all:t.all===!0||e===`all`,json:t.json===!0})})}function dn(e,n,r={}){let i=r.isAlive??t,a=[];for(let[t,r]of[[`server`,e],[`ui`,n]])(r.status===`alive`||r.status===`foreign-host`&&i(r.lock.pid))&&a.push({name:t,pid:r.lock.pid,port:r.lock.port});return{targets:a}}function fn(e){let t=e.inspect??(t=>X(e.lockDir,t)),n=e.kill??((e,t)=>process.kill(e,t)),r=e.log??(e=>console.log(e)),i=e.error??(e=>console.error(e)),a=dn(t(`server`),t(`ui`),{isAlive:e.isAlive});if(a.targets.length===0)return r(`No running open-knowledge processes.`),{stopped:[],failed:[],hadTargets:!1};let o=[],s=[];for(let e of a.targets)try{n(e.pid,`SIGTERM`),o.push(e)}catch(t){s.push({target:e,error:t instanceof Error?t.message:String(t)})}return o.length>0&&r(`Stopped: ${o.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `)}`),s.length>0&&i(`Failed to stop: ${s.map(({target:e,error:t})=>`${e.name} (pid=${e.pid}): ${t}`).join(`; `)}`),{stopped:o,failed:s,hadTargets:!0}}function $(e,t){return e.status===`alive`?!0:e.status===`foreign-host`?t(e.lock.pid):!1}async function pn(e,n=t){let r=await f(),i=null;for(let t of r){let r=X(t,`server`),a=X(t,`ui`);if($(r,n)&&r.lock.port===e||$(a,n)&&a.lock.port===e)return t;i===null&&($(r,n)&&r.lock.pid===e||$(a,n)&&a.lock.pid===e)&&(i=t)}return i}function mn(e){let t=fn({lockDir:e});return t.failed.length>0&&(process.exitCode=1),t}function hn(e){return new g(`stop`).description(`Stop open-knowledge server(s). With no argument: stops the server for the current directory. Pass a port number, a directory path, or "all" to target globally.`).argument(`[target...]`,`port number, directory path (spaces OK), or "all"`).action(async n=>{let r=n.length===0?void 0:n.join(` `);if(r===void 0){e();let t=fn({lockDir:p(process.cwd()),log:()=>{}});if(t.hadTargets){if(t.stopped.length>0){let e=t.stopped.map(e=>`${e.name} (pid=${e.pid}, port=${e.port})`).join(`, `);console.log(`Stopped: ${e}`)}t.failed.length>0&&(process.exitCode=1)}else await ln({});return}if(r===`all`){let e=await f();if(e.length===0){console.log(`No running open-knowledge servers found.`);return}let n=0;for(let r of e){let e=X(r,`server`),i=X(r,`ui`);!$(e,t)&&!$(i,t)||(mn(r),n++)}n===0&&console.log(`No running open-knowledge servers found.`);return}if(/^\d+$/.test(r)){let e=Number.parseInt(r,10),t=await pn(e);if(t===null){console.log(`No running open-knowledge server found with port or PID ${e}.`);return}mn(t);return}mn(p(j(Zt(),r)))})}function gn(e){return{event:`mcp-config-decline`,scope:e.scope,surface:e.surface,editorId:e.editorId,reason:e.reason}}async function _n(e,t){let n,r;try{n=await B(j(e)),r=await B(j(O(e)))}catch{return{kind:`not-git`}}if(!yn(n,r))return{kind:`symlink-escape`};let i=A(n,`.git`),a;try{a=me(i)}catch{return{kind:`not-git`}}let o;if(a.isDirectory()){let e;try{e=await B(i)}catch{return{kind:`not-git`}}if(!yn(e,n))return{kind:`symlink-escape`};o=e}else if(a.isFile()){let e;try{e=await z(i,`utf-8`)}catch{return{kind:`not-git`}}let t=/^gitdir:\s*(.+)$/m.exec(e.trim());if(!t)return{kind:`not-git`};let r=t[1].trim(),a=k(r)?r:j(n,r);try{o=await B(a)}catch{return{kind:`not-git`}}}else return{kind:`not-git`};let s=A(await vn(o),`config`),c;try{c=await z(s,`utf-8`)}catch{return{kind:`not-git`}}let l=xn(c);if(l===null)return{kind:`no-origin`};let u=kt(l);if(u===null||u.hostname!==`github.com`)return{kind:`non-github`};let d=u.owner.toLowerCase()===t.owner.toLowerCase(),f=u.name.toLowerCase()===t.repo.toLowerCase();return!d||!f?{kind:`wrong-repo`,actualOwner:u.owner,actualRepo:u.name}:{kind:`ok`,gitRemoteUrl:`https://github.com/${u.owner}/${u.name}.git`}}async function vn(e){let t;try{t=(await z(A(e,`commondir`),`utf-8`)).trim()}catch{return e}if(t.length===0)return e;let n=k(t)?t:j(e,t);try{return await B(n)}catch{return n}}function yn(e,t){if(e===t)return!0;let n=se(t,e);return n.length>0&&!n.startsWith(`..`)&&!k(n)}function bn(e){let t=e.indexOf(`#`),n=e.indexOf(`;`),r=-1;return t>=0&&n>=0?r=Math.min(t,n):t>=0?r=t:n>=0&&(r=n),(r===-1?e:e.slice(0,r)).trim()}function xn(e){let t=!1;for(let n of e.split(/\r?\n/)){let e=bn(n);if(e.length===0)continue;if(e.startsWith(`[`)){t=/^\[\s*remote\s+["']origin["']\s*\]$/.test(e);continue}if(!t)continue;let r=/^url\s*=\s*(.+)$/.exec(e);if(r)return Sn(r[1])}return null}function Sn(e){let t=e.trim();return t.startsWith(`"`)&&t.endsWith(`"`)||t.startsWith(`'`)&&t.endsWith(`'`)?t.slice(1,-1):t}const Cn=[{id:`mcp-config`,write(e,t,n){let r=e.projectConfigPath?.(t);if(!r)return{integration:`mcp-config`,editorId:e.id,action:`skipped-unsupported`};try{let i=x(e,t,n,void 0,r);return i.action===`written`||i.action===`overwritten`?{integration:`mcp-config`,editorId:e.id,action:i.action,path:i.configPath}:i.action===`failed`?{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:i.error??`unknown failure`}:i.action===`declined`?{integration:`mcp-config`,editorId:e.id,action:`declined`,path:i.configPath,...i.declineReason===void 0?{}:{reason:i.declineReason}}:{integration:`mcp-config`,editorId:e.id,action:`failed`,path:i.configPath,error:`unexpected project-scope action: ${i.action}`}}catch(t){return{integration:`mcp-config`,editorId:e.id,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}},{id:`project-skill`,write(e,t,n){try{let r=ie(e,t,{home:n.home});return{integration:`project-skill`,editorId:e.id,action:r.action,...r.path?{path:r.path}:{},...r.error?{error:r.error}:{}}}catch(t){return{integration:`project-skill`,editorId:e.id,action:`failed`,error:t instanceof Error?t.message:String(t)}}}}];function wn(e,t,n={},r=Cn){let i=[];for(let a of t){let t=re[a];for(let a of r)i.push(a.write(t,e,n))}return i}function Tn(e,t,n={}){return{integrations:wn(e,t,n)}}export{Dt as C,V as D,Oe as E,X as S,wt as T,zt as _,hn as a,jt as b,Xt as c,Nt as d,Ft as f,Rt as g,It as h,fn as i,Jt as l,Bt as m,_n as n,un as o,Pt as p,gn as r,Zt as s,Tn as t,Ut as u,At as v,Ct as w,kt as x,Mt as y};
|
|
21
|
-
//# sourceMappingURL=src-BLzsM3yW.mjs.map
|
package/dist/start-DHOe9Y53.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Wn as e,_t as t}from"./server-lock-iLcBw_q0-JO3R7Mim.mjs";import{Mr as n,cr as r,xr as i}from"./dist-qyTbo9j_.mjs";import{n as a,t as o}from"./esm-BNIW0EH8.mjs";import{i as s,t as c}from"./gh-detect-BeZkyai4.mjs";import{n as l}from"./constants-V3-G8ouF.mjs";import{spawn as u}from"node:child_process";import{basename as d,dirname as f,join as p}from"node:path";import{closeSync as m,existsSync as h,mkdirSync as g,openSync as _,statSync as v}from"node:fs";import{homedir as y}from"node:os";import{rm as b}from"node:fs/promises";import{setTimeout as x}from"node:timers/promises";const S=`OpenKnowledge.app`,C=`/Applications/${S}`;function w(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return v(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function T(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(E(e,C))return C;let t=p(e.homeDir??y(),`Applications`,S);return E(e,t)?t:null}function E(e,t){try{let n=p(t,`Contents`,`MacOS`,`OpenKnowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function D(e){if(e.env.OK_FORCE_BROWSER===`1`)return{available:!1,reason:`force-browser`};if(e.platform!==`darwin`)return{available:!1,reason:`darwin-only`};let t;try{t=T(e)}catch{return{available:!1,reason:`stat-error`}}return t?e.env.OK_FORCE_DESKTOP===`1`?{available:!0,reason:`available`,bundlePath:t}:e.isTTY!==!0||e.env.SSH_CONNECTION||e.env.SSH_TTY?{available:!1,reason:`headless`,bundlePath:t}:{available:!0,reason:`available`,bundlePath:t}:{available:!1,reason:`no-bundle`}}function O(e){(e.log??(e=>console.error(e)))("Launching OpenKnowledge desktop (use `ok start` for the browser server, or `OK_FORCE_BROWSER=1` to always skip)");let t={...process.env};delete t.ELECTRON_RUN_AS_NODE,e.spawn(`open`,[`-b`,`com.inkeep.open-knowledge`],{detached:!0,stdio:`ignore`,env:t}).unref()}function k(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${C}. Install via DMG, or omit --mode for browser mode.`;case`darwin-only`:return`Desktop app is macOS-only on this release. Use --mode=browser, or omit --mode for the server fallback.`;case`headless`:return`Desktop launch is gated in headless contexts (CI, SSH, non-TTY stdout). Set OK_FORCE_DESKTOP=1 to override, or use --mode=browser.`;case`force-browser`:return`OK_FORCE_BROWSER=1 is set — desktop dispatch is disabled. Unset it to use --mode=app.`;case`stat-error`:return`Failed to inspect desktop bundle at ${C} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${C} but launch dispatch did not fire (caller bug).`}}function A(e){return p(f(e),`..`,`Frameworks`,`OpenKnowledge Server.app`,`Contents`,`MacOS`,`OpenKnowledge Helper`)}const j=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function M(e){if(e.platform!==`darwin`||!j.test(e.execPath))return null;let t=A(e.execPath);return e.exists(t)?t:null}function N(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??h,a=r[1];return a?{command:M({execPath:t,platform:n,exists:i})??t,prefixArgs:[a]}:(console.warn(`[self-spawn] process.argv[1] is empty — falling back to \`npx -y @inkeep/open-knowledge@latest\`. This re-introduces the registry-fetch surface that re-exec was fixing. Observed argv: ${JSON.stringify(r)}`),{command:`npx`,prefixArgs:[`-y`,`@inkeep/open-knowledge@latest`]})}function P(e,t){return e.host??t.HOST??`127.0.0.1`}function F(e){let t=d(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var I=class extends Error{cwd;constructor(e){super("This directory isn't set up yet. Run `ok init` first, then `ok start` again."),this.name=`OkDirMissingError`,this.cwd=e}};function L(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 R(t){h(t.lockDir)||g(t.lockDir,{recursive:!0});let n=_(p(t.lockDir,e),`w`),r=t.spawn??u,{PORT:i,...a}=process.env,o=N();try{let e=r(o.command,[...o.prefixArgs,...t.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,n],windowsHide:!0,cwd:t.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return e.unref(),e}finally{try{m(n)}catch{}}}function z(e,t,n){return e??(n===void 0?t:void 0)}function B(e,t){return e!==void 0&&t!==null&&t.port>0&&t.draining!==!0}function V(e,t,n){return e??(t!=null&&!n?1:0)}async function H(e){let t=e.spawn??u,n=N(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,windowsHide:!0,env:{...i,ELECTRON_RUN_AS_NODE:`1`}}),o=!1,s=e=>{o=!0;try{a.kill(e)}catch{}},c=()=>s(`SIGINT`),l=()=>s(`SIGTERM`);process.once(`SIGINT`,c),process.once(`SIGTERM`,l),await new Promise(e=>{a.on(`exit`,(t,n)=>{process.exitCode=V(t,n,o),e()}),a.on(`error`,t=>{console.error(`[start] connect fallback: failed to spawn ok ui — ${t instanceof Error?t.message:String(t)}`),process.exitCode=1,e()})}),process.removeListener(`SIGINT`,c),process.removeListener(`SIGTERM`,l)}async function U(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}const W=t;function G(e,t,n=e=>b(e,{recursive:!0,force:!0})){return async()=>{try{await e()}finally{try{await n(t)}catch(e){process.stderr.write(`[start] ephemeral temp dir reap failed for ${t}: ${e instanceof Error?e.message:String(e)}\n`)}}}}function K(e,t={}){let n=t.exit??(e=>process.exit(e)),r=t.getActiveHandles??(()=>{let e=process._getActiveHandles;return e?e.call(process):null});return async()=>{let i=!1;try{await e()}catch(e){i=!0,t.log?.error({err:e},`idle-shutdown: destroy failed — exiting anyway`)}finally{let e=null;try{let t=r();if(t!==null){e={};for(let n of t){let t=n?.constructor?.name??`unknown`;e[t]=(e[t]??0)+1}}}catch{e=null}t.log?.info({event:`idle-shutdown-exit`,exitCode:i?1:0,openHandles:e??{},handlesAvailable:e!==null},`idle-shutdown: teardown finished — exiting process`),n(i?1:0)}}}function q(e){let t=e.sigtermGraceMs??W,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>x(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 J(e){let{config:t,cwd:a,host:o}=e,l=e.skipAutoInit??!1,u=e.skipUiAutoSpawn??!1,d=e.idleThresholdMs??18e5,{existsSync:f,mkdirSync:p}=await import(`node:fs`),{basename:m,dirname:h}=await import(`node:path`),{bootServer:g,getLogger:_,isProcessAlive:v,readUiLock:y,resolveContentDir:b,resolveLockDir:S,waitForServerLockDrain:C}=await import(`./dist-DCduX7hU.mjs`),w=e.log??_(`start`),T=e.singleFile!==void 0,E=e.projectDir??a,D=T?n(e.singleFile).canonicalFilePath:void 0,O=D?h(D):void 0,k=D?m(D):void 0;if(!T){if(!l&&!r(a))throw new I(a);let t=process.env.OK_RECLAIM_DISABLE??null,n=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&w.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-UUqPn4oa.mjs`)).repairMcpConfigs)({projectDir:a,reclaimDisableEnv:t,logger:n})}catch(e){w.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-DplJuyr4.mjs`)).repairLaunchJson)({projectDir:a,reclaimDisableEnv:t,logger:n})}catch(e){w.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-DhuvKw-z.mjs`)).repairSkills)({projectDir:a,reclaimDisableEnv:t,logger:n})}catch(e){w.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let A=O??b(t,a);!T&&!f(A)&&(p(A,{recursive:!0}),w.info({contentDir:A},`Created content directory`));let j=null,M=async({lockDir:t})=>{if(j=L({uiLock:y(t),isAlive:v}),j.action===`spawn`&&!u)try{let n=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];R({lockDir:t,cwd:a,spawn:e.spawn,args:n}),w.info({reason:j.reason,uiPort:e.uiPort},`[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 j.action===`skip`&&w.info({port:j.port,pid:j.pid},`UI already running at port ${j.port}`)},N=e.reactShellDistDir===void 0,P=s(),F=i();{let e=S(T?E:a),t=Date.now(),n=await C(e);n!==`no-drain`&&w.info({event:`start-waited-for-draining-predecessor`,outcome:n,waitedMs:Date.now()-t,drainLockDir:e},n===`released`?`[start] predecessor server finished draining — proceeding`:`[start] predecessor server still draining after wait — proceeding to collide`)}let z=await g({config:t,contentDir:A,projectDir:T?E:a,contentRoot:T?void 0:t.content.dir,port:e.port,host:o,quiet:!1,detectGh:c,tokenStore:P,embeddingsKeyStore:F,...T?{ephemeral:!0,singleDocRelPath:k,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:N,idleShutdownMs:d,skipAutoInit:!0,...N?{spawnUiSiblingFn:M}:{},idleShutdownHandler:t=>{let n=q({readUiLock:()=>y(z.lockDir),isAlive:v,killPid:(e,t)=>{process.kill(e,t)},destroy:t,log:w});return K(T?G(n,E):n,{log:w,exit:e.idleExit})},log:w,...e.serveContentAssets===void 0?{}:{serveContentAssets:e.serveContentAssets},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});j||={action:`skip`,reason:`alive`,pid:0,port:0};let B=j,V=null;if(B.action===`skip`)V=B.port>0?B.port:null;else if(!u){let t=e.uiBindTimeoutMs??3e3;V=await U({readUiLock:()=>y(z.lockDir),now:Date.now,sleep:e=>x(e),timeoutMs:t,pollIntervalMs:50}),V===null&&w.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:z.httpServer,destroy:z.destroy,lockDir:z.lockDir,contentDir:A,port:z.port,ready:z.ready,degraded:z.degraded,uiSpawnDecision:j,resolvedUiPort:V}}function ee(e){if(e===`browser`||e===`app`)return e;throw new a(`--mode must be 'browser' or 'app'`)}function te(e){let t=Number.parseInt(e,10);if(Number.isNaN(t)||t<1||t>65535)throw new a(`--ui-port must be a port number between 1 and 65535`);return t}function Y(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function X(e){let t=[`Stopping OpenKnowledge…`,`Saving pending changes and releasing the server lock — this can take a few seconds.`];return e===`SIGINT`&&t.push(`Press Ctrl+C again to force quit.`),t}async function Z(e,t){let n=Y(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-BeBA-IMp.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-C2Tw16G0.mjs`),c=process.cwd(),u=e;process.title=F(c);let d=P(t,process.env),f=t.port===void 0?void 0:Number(t.port),p=process.env.PORT?Number(process.env.PORT):void 0,m=t.uiPort===void 0?void 0:Number(t.uiPort),h=z(f,p,m);if(m!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./dist-DCduX7hU.mjs`);if(B(m,e(t(c)))){await H({cwd:c,uiPort:m});return}}let g;try{g=await J({config:u,cwd:c,host:d,port:h,...m===void 0?{}:{uiPort:m},...t.serveContentAssets===void 0?{}:{serveContentAssets:t.serveContentAssets},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{}})}catch(e){e instanceof I&&(console.error(o(e.message)),process.exit(1));let t=await import(`./dist-DCduX7hU.mjs`);if((e instanceof t.GitNotAvailableError||e instanceof t.GitTooOldError)&&process.exit(78),(e instanceof t.SingleFileNotFoundError||e instanceof t.SingleFileNotAFileError||e instanceof t.SingleFileNotMarkdownError)&&(console.error(o(e.message)),process.exit(1)),m!==void 0&&Q(e,t)){await H({cwd:c,uiPort:m});return}let n=$(e,c,t);n!==null&&(console.error(o(n)),process.exit(1)),console.error(`${o(`Failed to start:`)} ${e instanceof Error?e.stack??e.message:String(e)}`),process.exit(1)}let _=!1,v=async e=>{if(_)return;_=!0;let[t,...n]=X(e);console.log(i(`\n${t}`));for(let e of n)console.log(a(` ${e}`));try{await g.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`,()=>{v(`SIGINT`)}),process.once(`SIGTERM`,()=>{v(`SIGTERM`)});let y=`http://${d}:${g.port}`,b=d===`0.0.0.0`||d===`::`?`http://0.0.0.0:${g.port}`:void 0,x=g.resolvedUiPort,S=x!==null&&x>0?`http://${d}:${x}`:y;console.log(r({name:`open-knowledge`,version:l,localUrl:S,apiUrl:S===y?void 0:y,networkUrl:b,nextSteps:[`Open the Editor URL in your browser to start editing.`]}));let C={"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`};g.ready.then(async()=>{if(g.degraded.length>0){console.log();for(let e of g.degraded){let t=C[e]??`${e} (check server logs for details)`;console.warn(` ${s(`⚠`)} ${s(e)}: ${a(t)}`)}console.log()}if(t.open){let{openBrowser:e}=await import(`./open-browser-ByBvAte1.mjs`);e(S)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function Q(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function $(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=p(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`OpenKnowledge desktop is currently running on this project. Quit it or use --cwd to point elsewhere.`:r.kind===`mcp-spawned`?"An MCP-spawned server holds this lock; it should release on idle-shutdown (~30 min). Or run `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`.":"OpenKnowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function ne(e){return new o(`start`).description(`Start the knowledge base collab server`).option(`-p, --port <port>`,`Server port`,void 0).option(`--ui-port <port>`,`Pin the ok ui sibling to <port> and connect (not exit) if a server already runs here — the worktree-preview recipe path`,te).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,ee).option(`--serve-content-assets`,`Serve content assets from this server (now the default; kept for compatibility)`).option(`--react-shell-dist-dir <path>`,`Serve React shell from <path> (suppresses ok ui sibling)`).option(`--single-file <path>`,`No-project ephemeral single-file mode: scope the server to one markdown file (git + MCP off)`).option(`--project-dir <dir>`,`Throwaway project root for --single-file (where ephemeral .ok/ state lives)`).action(async t=>{let n=e();if(t.mode===`app`){t.open&&(process.stderr.write(`error: option '--mode=app' cannot be combined with '--open' (--open opens a browser tab against the local server, which app mode does not boot)
|
|
2
|
-
`),process.exit(2));let e=[];if(t.port!==void 0&&e.push(`--port`),t.uiPort!==void 0&&e.push(`--ui-port`),t.host!==void 0&&e.push(`--host`),e.length>0){let t=process.env.OK_LOG_LEVEL??`info`;(t===`debug`||t===`trace`)&&console.error(`--mode=app: ignoring ${e.join(`, `)}`)}let n=D(w());if(n.available){O({spawn:u});return}console.error(k(n.reason)),process.exit(1)}await Z(n,t)})}export{D as C,w as S,ne as _,V as a,K as b,F as c,z as d,P as f,R as g,B as h,q as i,X as l,Z as m,U as n,H as o,Y as p,J as r,L as s,I as t,Q as u,$ as v,O as w,N as x,G as y};
|
|
3
|
-
//# sourceMappingURL=start-DHOe9Y53.mjs.map
|
package/dist/start-UT9R53G6.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,f as t,r as n}from"./start-DHOe9Y53.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-5QVNJEHU-DJjin--s.mjs";export{e as statCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w as e}from"./src-DC_BCes_.mjs";import"./chunk-ICPOFSXX-C2hDlKD_.mjs";import"./chunk-5PVQY5BW-_JlgOiAb.mjs";import"./chunk-U2HBQHQK-DMRf50i8.mjs";import"./chunk-BSJP7CBP-BWUAQGWN.mjs";import"./chunk-ZZ45TVLE-DmKznbd-.mjs";import"./chunk-55IACEB6-CWM_Woee.mjs";import"./chunk-EDXVE4YY-COyPi8-X.mjs";import"./chunk-X2U36JSP-B09HbTgU.mjs";import"./chunk-5FUZZQ4R-BSIWed9s.mjs";import"./chunk-ENJZ2VHE-DgpEksO3.mjs";import"./chunk-336JU56O-MOsDPDtl.mjs";import{i as t,n,r,t as i}from"./chunk-OYMX7WX6-CjnWmW_n.mjs";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
|
|
2
|
-
//# sourceMappingURL=stateDiagram-v2-QKLJ7IA2-Cu9wyPTl.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-VYOJP4TV-ySo4pvxO.mjs";export{e as strings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-MHTUABJP-D8l1TTsc.mjs";export{e as tac};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-DCAAORBQ-3VCdH2yi.mjs";export{e as tailCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-CM6MrFZT.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import{n as e}from"./chunk-HKLCLINH-DiTtKPWB.mjs";export{e as tarCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-55VFSPNA-BoFmUszu.mjs";export{e as teeCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-CWQS3NFK-BkE4vqrf.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-Z6LRHWXI-CFEq3s_2.mjs";export{e as timeCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-A5O5YHGN-DApqA6Ow.mjs";import{n as e}from"./chunk-YTNYSM6T-D6z7D3pz.mjs";export{e as timeoutCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-OCLXQMOG-B_jLzNZV.mjs";export{e as touchCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-62RKD26F-uqVDf3rA.mjs";export{e as trCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-XVDPCNWR-DDtsDoBd.mjs";export{e as treeCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-ChGdeubA.mjs";import{n as e}from"./chunk-ORNJ4GCN-CO4Fc0LT.mjs";export{e as createTreeViewServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-ChGdeubA.mjs";import{n as e}from"./chunk-LIHQZDEY-Du6TmMJL.mjs";export{e as createTreemapServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{i as e,t}from"./chunk-R6QSAL5T-nrEeDNrG.mjs";export{e as falseCommand,t as trueCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-PYSFUGCK-BszfAqRG.mjs";export{e as unexpand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-WKFATFPP-jr5eyHAR.mjs";export{e as uniqCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-K5T4RW27-ChGdeubA.mjs";import{n as e}from"./chunk-CIAEETIT-4Fu0r4oG.mjs";export{e as createWardleyServices};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-GXVXFKBA-BZ5qwuS5.mjs";export{e as wcCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-A65PWWJC-DRkFYIUZ.mjs";export{e as whichCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{t as e}from"./chunk-HJQJAYMS-BhX1qT1n.mjs";export{e as whoami};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{Et as e,Rt as t,S as n,gn as r}from"./server-lock-iLcBw_q0-JO3R7Mim.mjs";import{d as i,lt as a,ti as o,wa as ee}from"./dist-qyTbo9j_.mjs";import{basename as s,dirname as c,isAbsolute as l,join as u,posix as d,relative as te,resolve as f,sep as p,win32 as m}from"node:path";import{cpSync as ne,existsSync as h,lstatSync as re,mkdirSync as ie,readFileSync as g,realpathSync as _,rmSync as v,statSync as y}from"node:fs";import{homedir as b}from"node:os";const x=n,S=e,C=t,w=`node`,T={MCP_DEBUG:`1`,OK_LOG_FILE:`/tmp/ok-mcp.log`},E=`# ok-mcp-v1`,D=`# ok-mcp-v1
|
|
2
|
-
USER_BUNDLE="$HOME/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
|
|
3
|
-
[ -f "$USER_BUNDLE" ] && [ -x "$USER_BUNDLE" ] && exec "$USER_BUNDLE" mcp
|
|
4
|
-
BUNDLE="/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
|
|
5
|
-
[ -f "$BUNDLE" ] && [ -x "$BUNDLE" ] && exec "$BUNDLE" mcp
|
|
6
|
-
command -v npx >/dev/null 2>&1 && exec npx -y @inkeep/open-knowledge@latest mcp
|
|
7
|
-
for d in "$HOME/.nvm/versions/node"/*/bin "$HOME/.fnm/node-versions"/*/installation/bin "$HOME/.asdf/installs/nodejs"/*/bin /opt/homebrew/bin /usr/local/bin "$HOME/.local/bin" "$HOME/.volta/bin"; do
|
|
8
|
-
[ -f "$d/npx" ] && [ -x "$d/npx" ] && exec "$d/npx" -y @inkeep/open-knowledge@latest mcp
|
|
9
|
-
done
|
|
10
|
-
echo "OpenKnowledge: install OK Desktop or Node.js 24+, then restart your editor" >&2
|
|
11
|
-
exit 127`,O=`# ok-mcp-win-v1`,k=`# ok-mcp-win-v1
|
|
12
|
-
if ($env:PATHEXT -notmatch 'CMD') { $env:PATHEXT = '.COM;.EXE;.BAT;.CMD;' + $env:PATHEXT }
|
|
13
|
-
if ($env:APPDATA) {
|
|
14
|
-
$shim = Join-Path $env:APPDATA 'npm\\ok.cmd'
|
|
15
|
-
if (Test-Path -LiteralPath $shim -PathType Leaf) { & $shim mcp; exit $LASTEXITCODE }
|
|
16
|
-
}
|
|
17
|
-
$ok = Get-Command ok.cmd -CommandType Application -ErrorAction SilentlyContinue
|
|
18
|
-
if ($ok) { & $ok.Source mcp; exit $LASTEXITCODE }
|
|
19
|
-
$npx = Get-Command npx.cmd -CommandType Application -ErrorAction SilentlyContinue
|
|
20
|
-
if ($npx) { & $npx.Source -y '@inkeep/open-knowledge@latest' mcp; exit $LASTEXITCODE }
|
|
21
|
-
$dirs = @()
|
|
22
|
-
if ($env:ProgramFiles) { $dirs += Join-Path $env:ProgramFiles 'nodejs' }
|
|
23
|
-
if ($env:NVM_SYMLINK) { $dirs += $env:NVM_SYMLINK }
|
|
24
|
-
if ($env:LOCALAPPDATA) {
|
|
25
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'fnm\\aliases\\default'
|
|
26
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'Volta\\bin'
|
|
27
|
-
$dirs += Join-Path $env:LOCALAPPDATA 'pnpm'
|
|
28
|
-
}
|
|
29
|
-
if ($env:USERPROFILE) { $dirs += Join-Path $env:USERPROFILE 'scoop\\shims' }
|
|
30
|
-
foreach ($d in $dirs) {
|
|
31
|
-
$probe = Join-Path $d 'npx.cmd'
|
|
32
|
-
if (Test-Path -LiteralPath $probe -PathType Leaf) { & $probe -y '@inkeep/open-knowledge@latest' mcp; exit $LASTEXITCODE }
|
|
33
|
-
}
|
|
34
|
-
[Console]::Error.WriteLine('OpenKnowledge: install Node.js 24+ (npm i -g @inkeep/open-knowledge), then restart your editor')
|
|
35
|
-
exit 127`,A=`// ok-pi-bridge`,j=`${A}-v1`,M=`ok-pi-managed-extension`;function N(e){if(typeof e!=`object`||!e)return!1;let t=e;if(t.command===`/bin/sh`){if(!Array.isArray(t.args)||t.args[0]!==`-l`||t.args[1]!==`-c`)return!1;let e=t.args[2];return typeof e==`string`&&e.includes(`# ok-mcp-v1`)}if(t.command===`powershell`){if(!Array.isArray(t.args)||t.args[0]!==`-NoProfile`||t.args[1]!==`-NonInteractive`||t.args[2]!==`-Command`)return!1;let e=t.args[3];return typeof e==`string`&&e.includes(`# ok-mcp-win-v1`)}if(t.type===`local`&&Array.isArray(t.command)){if(t.command[0]===`/bin/sh`){if(t.command[1]!==`-l`||t.command[2]!==`-c`)return!1;let e=t.command[3];return typeof e==`string`&&e.includes(`# ok-mcp-v1`)}if(t.command[0]===`powershell`){if(t.command[1]!==`-NoProfile`||t.command[2]!==`-NonInteractive`||t.command[3]!==`-Command`)return!1;let e=t.command[4];return typeof e==`string`&&e.includes(`# ok-mcp-win-v1`)}return!1}if(t.command===`ok-pi-managed-extension`){if(!Array.isArray(t.args))return!1;let e=t.args[0];return typeof e==`string`&&e.startsWith(j)}return!1}function P(e=process.argv[1]){if(!e)throw Error(`Cannot infer the local CLI entry for --dev-mcp because process.argv[1] is empty.`);let t=f(e);if(s(t)===`cli.mjs`&&s(c(t))===`dist`)return t;let n=t.split(p),r=n.lastIndexOf(`packages`);if(r===-1||n[r+1]!==`cli`)throw Error(`Cannot infer the repo root for --dev-mcp from ${t}. Run the local CLI from this repo so the built dist path can be derived.`);let i=n.slice(0,r);return u(i.length===0?p:i.join(p),`packages`,`cli`,`dist`,`cli.mjs`)}function F(e={}){return e.mode===`dev`?{command:w,args:[P(),`mcp`],env:{...T}}:(e.platformName??process.platform)===`win32`?{command:`powershell`,args:[`-NoProfile`,`-NonInteractive`,`-Command`,k]}:{command:`/bin/sh`,args:[`-l`,`-c`,D]}}function ae(e={}){return e.mode===`dev`?{type:`local`,enabled:!0,command:[w,P(),`mcp`],environment:{...T}}:(e.platformName??process.platform)===`win32`?{type:`local`,enabled:!0,command:[`powershell`,`-NoProfile`,`-NonInteractive`,`-Command`,k]}:{type:`local`,enabled:!0,command:[`/bin/sh`,`-l`,`-c`,D]}}function oe(e){if(typeof e!=`object`||!e)return!1;let t=e;return I(t,F({mode:`published`,platformName:`darwin`}))||I(t,F({mode:`published`,platformName:`win32`}))}function I(e,t){if(Object.keys(e).length!==Object.keys(t).length||e.command!==t.command)return!1;let n=t.args;return!Array.isArray(n)||!Array.isArray(e.args)||e.args.length!==n.length?!1:e.args.every((e,t)=>e===n[t])}function L(e){return e===`win32`?m:d}function R(e={}){let t=e.platformName??process.platform,n=e.home??b(),r=e.env??process.env,i=L(t);return t===`darwin`?i.join(n,`Library`,`Application Support`):t===`win32`?r.APPDATA??i.join(n,`AppData`,`Roaming`):r.XDG_CONFIG_HOME??i.join(n,`.config`)}function z(e={}){let t=e.platformName??process.platform,n=e.home??b();return L(t).join(n,`.claude.json`)}function B(e={}){let t=e.platformName??process.platform,n=e.home??b(),r=e.env??process.env;if(t===`darwin`)return d.join(n,`Library`,`Application Support`,`Claude`,`claude_desktop_config.json`);if(t===`win32`){let e=r.APPDATA??m.join(n,`AppData`,`Roaming`);return m.join(e,`Claude`,`claude_desktop_config.json`)}throw Error(`Claude Desktop is not available on ${t}. Supported: macOS, Windows.`)}function V(e={}){let t=e.platformName??process.platform,n=e.home??b();return L(t).join(n,`.cursor`,`mcp.json`)}function H(e={}){let t=e.platformName??process.platform,n=e.home??b();return(e.env??process.env).CODEX_HOME??L(t).join(n,`.codex`)}function U(e={}){return L(e.platformName??process.platform).join(H(e),`config.toml`)}function W(e={}){let t=e.platformName??process.platform,n=e.home??b(),r=(e.env??process.env).COPILOT_HOME??L(t).join(n,`.copilot`);return L(t).join(r,`mcp-config.json`)}function G(e={}){let t=e.platformName??process.platform,n=e.home??b(),r=e.env??process.env,i=L(t);if(t===`win32`){let e=r.APPDATA??i.join(n,`AppData`,`Roaming`);return i.join(e,`opencode`)}let a=r.XDG_CONFIG_HOME??i.join(n,`.config`);return i.join(a,`opencode`)}function K(e={}){return L(e.platformName??process.platform).join(G(e),`opencode.json`)}function se(e={}){let t=e.platformName??process.platform,n=e.home??b();return L(t).join(n,`.openclaw`,`openclaw.json`)}function ce(e={}){let t=e.platformName??process.platform,n=e.home??b();return L(t).join(n,`.hermes`,`config.yaml`)}function le(e={}){let t=e.platformName??process.platform,n=e.home??b();return(e.env??process.env).PI_CODING_AGENT_DIR??L(t).join(n,`.pi`,`agent`)}function ue(e={}){let t=e.platformName??process.platform,n=e.home??b();return L(t).join(n,`.gemini`,`config`,`mcp_config.json`)}function de(e,t){let n=L(t),r=n.join(e,`.lmstudio`,`mcp.json`),i=n.join(e,`.cache`,`lm-studio`,`mcp.json`);return t===`darwin`?[i,r]:[r,i]}function q(e={}){let t=e.platformName??process.platform,n=de(e.home??b(),t);return n.find(e=>h(e))||n.find(e=>h(c(e)))||n[0]}const J={claude:{id:`claude`,label:S.claude,configPath:(e,t)=>z({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>u(t??b(),`.claude`),projectConfigPath:e=>u(e,`.mcp.json`),projectSkillPath:e=>u(e,`.claude`,`skills`,`open-knowledge`,`SKILL.md`)},"claude-desktop":{id:`claude-desktop`,label:S[`claude-desktop`],configPath:(e,t)=>B({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>c(B({home:t}))},cursor:{id:`cursor`,label:S.cursor,configPath:(e,t)=>V({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>c(V({home:t})),projectConfigPath:e=>u(e,`.cursor`,`mcp.json`),projectSkillPath:e=>u(e,`.cursor`,`skills`,`open-knowledge`,`SKILL.md`)},codex:{id:`codex`,label:S.codex,configPath:(e,t)=>U({home:t}),format:`toml`,topLevelKey:`mcp_servers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>c(U({home:t})),projectConfigPath:e=>u(e,`.codex`,`config.toml`),projectSkillPath:e=>u(e,`.codex`,`skills`,`open-knowledge`,`SKILL.md`)},copilot:{id:`copilot`,label:S.copilot,configPath:(e,t)=>W({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>c(W({home:t})),projectSkillPath:e=>u(e,`.github`,`skills`,`open-knowledge`,`SKILL.md`)},opencode:{id:`opencode`,label:S.opencode,configPath:(e,t)=>K({home:t}),format:`json`,topLevelKey:`mcp`,serverName:()=>r,buildEntry:(e,t)=>ae(t),scope:`global`,detectPath:(e,t)=>c(K({home:t})),projectConfigPath:e=>u(e,`opencode.json`),projectSkillPath:e=>u(e,`.opencode`,`skills`,`open-knowledge`,`SKILL.md`)},openclaw:{id:`openclaw`,label:S.openclaw,configPath:(e,t)=>se({home:t}),format:`json`,topLevelKey:`mcp`,serverMapSubKey:`servers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>u(t??b(),`.openclaw`),offerOnlyWhenDetected:!0},pi:{id:`pi`,label:S.pi,configPath:()=>{throw Error("Pi has no user-global MCP config; OK's integration is the project-scoped bridge extension at .pi/extensions/open-knowledge.ts (run `ok init` in the project).")},format:`file`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:()=>{throw Error(`Pi has no MCP entry shape; the managed bridge file is built by buildPiExtensionSource (integrations/pi-extension.ts).`)},scope:`project`,detectPath:(e,t)=>le({home:t}),projectConfigPath:e=>u(e,`.pi`,`extensions`,`open-knowledge.ts`),projectSkillPath:e=>u(e,`.pi`,`skills`,`open-knowledge`,`SKILL.md`)},antigravity:{id:`antigravity`,label:S.antigravity,configPath:(e,t)=>ue({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>u(t??b(),`.gemini`),offerOnlyWhenDetected:!0},"lm-studio":{id:`lm-studio`,label:S[`lm-studio`],configPath:(e,t)=>q({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>c(q({home:t})),offerOnlyWhenDetected:!0},hermes:{id:`hermes`,label:S.hermes,configPath:(e,t)=>ce({home:t}),format:`yaml`,topLevelKey:`mcp_servers`,serverName:()=>r,buildEntry:(e,t)=>F(t),scope:`global`,detectPath:(e,t)=>u(t??b(),`.hermes`),offerOnlyWhenDetected:!0}};function fe(e){let t=e.filter(e=>!Object.hasOwn(J,e));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${x.join(`, `)}`);return e.map(e=>J[e])}function Y(e){let t=[];for(let n of a){let r=i[n];t.push({path:u(e,`.agents`,`skills`,r),bundleId:n,scope:`central`});for(let i of C)t.push({path:u(e,i.hostDir,`skills`,r),bundleId:n,scope:`host`,hostDir:i.hostDir})}return t}function pe(e,t){let n=[];for(let r of Y(e))if(r.bundleId===t)try{v(r.path,{recursive:!0,force:!0})}catch(e){n.push(e instanceof Error?e:Error(String(e)))}if(n.length>0)throw AggregateError(n,`Failed to remove ${n.length} path(s) for ${t}`)}function X(e,t){let n;try{n=re(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(n?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);Q(e,t)}function Z(e,t){Q(e,t)}function Q(e,t){let n;try{n=_(t)}catch{n=f(t)}let r=c(e);for(;r.length>1&&r!==p;){let t;try{t=_(r)}catch(e){if(e.code===`ENOENT`){r=c(r);continue}throw e}let i=te(n,t);if(i===``||!i.startsWith(`..`)&&!l(i))return;throw Error(`Refusing to write at ${e}: ancestor ${r} resolves to ${t}, which is outside the project directory ${n}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function $(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function me(e,t,n){try{if(y(n).size>10485760)return!1}catch{return!1}let r;try{r=g(n,`utf-8`)}catch{return!1}let i=[],a=ee(r.charCodeAt(0)===65279?r.slice(1):r,i,{allowTrailingComma:!0,disallowComments:!1});if(i.length>0||!$(a))return!1;let o=a[e.topLevelKey];if(!$(o))return!1;let s=e.serverMapSubKey?o[e.serverMapSubKey]:o;return $(s)?$(s[e.serverName(t)]):!1}function he(e,t,n={}){if(e.id!==`copilot`)return!0;try{return me(e,t,e.configPath(t,n.home))}catch{return!1}}function ge(e,t,n={}){let r=e.projectSkillPath?.(t);if(!r)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};if(!he(e,t,n))return{editorId:e.id,label:e.label,action:`skipped-prerequisite`,path:r};try{let n=o(`project`,{checkDesktop:!0}),i=c(r);X(i,t);let a=h(r)?`overwritten`:`written`;return v(i,{recursive:!0,force:!0}),ie(c(i),{recursive:!0}),ne(n,i,{recursive:!0}),{editorId:e.id,label:e.label,action:a,path:r}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:r,error:t instanceof Error?t.message:String(t)}}}function _e(e,t){let n=e.projectSkillPath?.(t);if(!n)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};try{let r=c(n);return h(n)?(Z(r,t),v(r,{recursive:!0,force:!0}),{editorId:e.id,label:e.label,action:`removed`,path:n}):{editorId:e.id,label:e.label,action:`not-present`,path:n}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:n,error:t instanceof Error?t.message:String(t)}}}export{N as _,pe as a,fe as b,E as c,J as d,C as f,F as g,M as h,ge as i,O as l,j as m,Z as n,Y as o,A as p,_e as r,x as s,X as t,S as u,oe as v,R as y};
|
|
36
|
-
//# sourceMappingURL=write-project-skill-BRmXxgY_.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-CM6MrFZT.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import"./chunk-PXTK5WE2-CguJFePc.mjs";import"./chunk-7TSDKFEO-9ACIOuIO.mjs";import"./chunk-KRBPSX3W-DsaeH-hY.mjs";import"./chunk-DBKNVD4L-DMfzef_7.mjs";import{t as e}from"./chunk-3BS5SKQH-Chc9fv52.mjs";export{e as xanCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-PXTK5WE2-CguJFePc.mjs";import{c as e}from"./chunk-DBKNVD4L-DMfzef_7.mjs";export{e as cmdView};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import{n as e}from"./chunk-TOMNU26N-BxDnjGjc.mjs";export{e as xargsCommand};
|
package/dist/yazl-CQSNnbvt.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./yazl-Docqgl6q.mjs";export default e();export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-B74TABJS-CM6MrFZT.mjs";import"./chunk-DXB73IDG-F_tmy-Lz.mjs";import"./chunk-5QMZ5MUS-BwpNU33k.mjs";import"./chunk-24IMIIXA-DaS5XS55.mjs";import"./chunk-PXTK5WE2-CguJFePc.mjs";import"./chunk-7TSDKFEO-9ACIOuIO.mjs";import"./chunk-KRBPSX3W-DsaeH-hY.mjs";import{t as e}from"./chunk-6Z5SFZXK-DuXsHt84.mjs";export{e as yqCommand};
|