@inkeep/open-knowledge 0.11.0-beta.4 → 0.11.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/alias-JE7RI5QX-oTDRHt3W.mjs +1 -0
  2. package/dist/assets/skills/discovery/SKILL.md +1 -1
  3. package/dist/assets/skills/project/SKILL.md +1 -1
  4. package/dist/awk2-POPGKRAI-BZ_7e8H1.mjs +1 -0
  5. package/dist/base64-4YMZCVJ5-BhIrz6He.mjs +1 -0
  6. package/dist/basename-AA2KJYZQ-C5R0pcfV.mjs +1 -0
  7. package/dist/bash-IJWYRKFO-DywpGlyx.mjs +1 -0
  8. package/dist/{build-Dt6UA4sF.mjs → build-CJEQ0nGy.mjs} +1 -1
  9. package/dist/build-CZpdADQB.mjs +1 -0
  10. package/dist/cat-RDUMLXKC-BNwer8pK.mjs +1 -0
  11. package/dist/chmod-SYMGL4JA-BN-B1xmG.mjs +1 -0
  12. package/dist/{chunk-24IMIIXA-B6yIPkk2.mjs → chunk-24IMIIXA-C-Zyd2K_.mjs} +2 -2
  13. package/dist/{chunk-3THT3N7L-DztAF386.mjs → chunk-3THT3N7L-Ce6LrnIA.mjs} +1 -1
  14. package/dist/{chunk-44UOCSGV-CaFxJDHm.mjs → chunk-44UOCSGV-uErOrz7G.mjs} +1 -1
  15. package/dist/{chunk-5QMZ5MUS-CAp625aG.mjs → chunk-5QMZ5MUS-BfIuRNkK.mjs} +2 -2
  16. package/dist/{chunk-62RKD26F-CBIDfuTL.mjs → chunk-62RKD26F-CvuML91F.mjs} +2 -2
  17. package/dist/{chunk-A4JSPFCI-v5lUtffG.mjs → chunk-A4JSPFCI-k-tJSZgB.mjs} +2 -2
  18. package/dist/{chunk-A5O5YHGN-DvJz5Cpw.mjs → chunk-A5O5YHGN-C6ngIqYR.mjs} +2 -2
  19. package/dist/{chunk-BBXLRYSX-DHx5dxhT.mjs → chunk-BBXLRYSX-Oks1GMhO.mjs} +2 -2
  20. package/dist/{chunk-BRGMQKJV-CD9YvPOS.mjs → chunk-BRGMQKJV-CHO764qS.mjs} +2 -2
  21. package/dist/{chunk-CR5AFCPT-BWXo8X-o.mjs → chunk-CR5AFCPT-CH8ZGz3B.mjs} +2 -2
  22. package/dist/{chunk-CWQS3NFK-Co4ALolT.mjs → chunk-CWQS3NFK-BP3kiNgH.mjs} +1 -1
  23. package/dist/{chunk-D6CWQ5DW-Cik2LGX1.mjs → chunk-D6CWQ5DW-BgQGt8eQ.mjs} +2 -2
  24. package/dist/{chunk-DXB73IDG-DIKSLkPq.mjs → chunk-DXB73IDG-C2RuFAAY.mjs} +1 -1
  25. package/dist/{chunk-F55TLFGB-oTuag-aK.mjs → chunk-F55TLFGB-Bkfd8ak_.mjs} +2 -2
  26. package/dist/{chunk-FEIOJCZD-C25Und0M.mjs → chunk-FEIOJCZD-DmvuPNqm.mjs} +2 -2
  27. package/dist/{chunk-GFQRA5P5-DnjwTqP3.mjs → chunk-GFQRA5P5-ePq2jelx.mjs} +1 -1
  28. package/dist/{chunk-GOV5EKKI-i-yw_7Ty.mjs → chunk-GOV5EKKI-CyL1eJ32.mjs} +2 -2
  29. package/dist/{chunk-HWBSOZZR-Bw5kf-cE.mjs → chunk-HWBSOZZR-BeVrNfQw.mjs} +2 -2
  30. package/dist/{chunk-I57KEIP3-DwNGEmJW.mjs → chunk-I57KEIP3-5RFY25TO.mjs} +2 -2
  31. package/dist/{chunk-IPJHKYVM-C3IodQq7.mjs → chunk-IPJHKYVM-D6H6ZTtk.mjs} +1 -1
  32. package/dist/{chunk-J642UCRS-DuJ82Ao2.mjs → chunk-J642UCRS-D87gHOLP.mjs} +2 -2
  33. package/dist/{chunk-LPQPILI2-CfDX1Tyv.mjs → chunk-LPQPILI2-DyyhWSR7.mjs} +2 -2
  34. package/dist/{chunk-MDDMCKUK-BrBgeH_z.mjs → chunk-MDDMCKUK-poQ25EjI.mjs} +2 -2
  35. package/dist/{chunk-MIZPJHVH-D3ET6RI_.mjs → chunk-MIZPJHVH-BdoPqh_Y.mjs} +2 -2
  36. package/dist/{chunk-MLXIYONF-dOe6Iqcc.mjs → chunk-MLXIYONF-DwewZM3r.mjs} +2 -2
  37. package/dist/{chunk-NAERJDUW-CYdostkt.mjs → chunk-NAERJDUW-BFcmkHme.mjs} +2 -2
  38. package/dist/{chunk-NUYSJFDK-CU1FKadr.mjs → chunk-NUYSJFDK-DAvAseHr.mjs} +2 -2
  39. package/dist/{chunk-NYQYO467-DUxnOnNG.mjs → chunk-NYQYO467-_2947cgi.mjs} +2 -2
  40. package/dist/{chunk-OARHFVLG-CpUL83N9.mjs → chunk-OARHFVLG-vxL5zuWx.mjs} +2 -2
  41. package/dist/{chunk-OCLXQMOG-LAs82g00.mjs → chunk-OCLXQMOG-C7k2qEN6.mjs} +2 -2
  42. package/dist/{chunk-OCS6LSEM-y5pQiBQp.mjs → chunk-OCS6LSEM-Lh1p0H-V.mjs} +2 -2
  43. package/dist/{chunk-OJDRYQWQ-ikvLWpfV.mjs → chunk-OJDRYQWQ-DWhg7YHU.mjs} +1 -1
  44. package/dist/{chunk-OL3S66CO-DjFShiWt.mjs → chunk-OL3S66CO-B3hSNlNP.mjs} +2 -2
  45. package/dist/{chunk-PBXLG62G-CU755yEQ.mjs → chunk-PBXLG62G-MmAqjdXR.mjs} +2 -2
  46. package/dist/{chunk-R6VWJ2ZL-FwG_Za20.mjs → chunk-R6VWJ2ZL-D1Ufj9fh.mjs} +1 -1
  47. package/dist/{chunk-SYMJJMQ4-tl6Dz6VW.mjs → chunk-SYMJJMQ4-DLPoQaug.mjs} +2 -2
  48. package/dist/{chunk-T56QNPHK-Dzjonwlk.mjs → chunk-T56QNPHK-TppyesRp.mjs} +2 -2
  49. package/dist/{chunk-TLSUDHID-DYvzalvd.mjs → chunk-TLSUDHID-BeulIM_X.mjs} +2 -2
  50. package/dist/{chunk-TOMNU26N-DYqwg_75.mjs → chunk-TOMNU26N-DfLjxpHW.mjs} +2 -2
  51. package/dist/{chunk-UNYNJIFU-B6KF1Gqq.mjs → chunk-UNYNJIFU--HT-3lrq.mjs} +3 -3
  52. package/dist/{chunk-VLGZJRPG-ChVasMna.mjs → chunk-VLGZJRPG-DbWYxLfI.mjs} +2 -2
  53. package/dist/{chunk-XHM67O4N-53eJIPK0.mjs → chunk-XHM67O4N-BWGDFyz_.mjs} +1 -1
  54. package/dist/{chunk-XORM457F-BlSrSdGX.mjs → chunk-XORM457F-D-QrjagQ.mjs} +2 -2
  55. package/dist/{chunk-YCFVLTST-uJkMN44i.mjs → chunk-YCFVLTST-CFJxSbsH.mjs} +2 -2
  56. package/dist/{chunk-YFG2CMIF-DYVCRkoM.mjs → chunk-YFG2CMIF-DkT4NiqV.mjs} +2 -2
  57. package/dist/{chunk-YNYSPYQ5-DesxOVHh.mjs → chunk-YNYSPYQ5-iQGTFdx0.mjs} +1 -1
  58. package/dist/{chunk-YS3AZT3J-DqU1hDNV.mjs → chunk-YS3AZT3J-w6Dw8reo.mjs} +2 -2
  59. package/dist/{chunk-YTNYSM6T-ChSQxUVG.mjs → chunk-YTNYSM6T-Cz_dxkBy.mjs} +2 -2
  60. package/dist/{chunk-Z6LRHWXI-CEAGkbzj.mjs → chunk-Z6LRHWXI-BcgkPhhu.mjs} +2 -2
  61. package/dist/clear-5CZ5X4YR-B6kVcfOw.mjs +1 -0
  62. package/dist/cli.mjs +50 -50
  63. package/dist/column-WLPMMSTS-CEev_e2R.mjs +1 -0
  64. package/dist/comm-5SLSESQG-BXsiD7To.mjs +1 -0
  65. package/dist/constants-DSCKzAUk.mjs +2 -0
  66. package/dist/cp-XOYR4ABJ-Dy5aHk72.mjs +1 -0
  67. package/dist/{curl-47BFPSFW-CseKVLFy.mjs → curl-47BFPSFW-CdMFK7aW.mjs} +2 -2
  68. package/dist/cut-OPC3VAGB-GohHdbJ4.mjs +1 -0
  69. package/dist/date-DD7FVA2V-RM_vdvCh.mjs +1 -0
  70. package/dist/diff-HJF2MPDN-Ci7M3Pfx.mjs +1 -0
  71. package/dist/dirname-LEMTZZFS-C6aDcxLl.mjs +1 -0
  72. package/dist/dist-CHRfgQ3D.mjs +1 -0
  73. package/dist/{dist-D0BxLviK.mjs → dist-DFDll_q5.mjs} +16 -17
  74. package/dist/{dist-bundle-BK4P1EQn.mjs → dist-bundle-B3l-HkEL.mjs} +1 -1
  75. package/dist/dist-bundle-XlngXUNr.mjs +1 -0
  76. package/dist/du-WO2ENHXQ-Da1HuQkH.mjs +1 -0
  77. package/dist/echo-O45JWWI2-Cr9jHdYm.mjs +1 -0
  78. package/dist/env-5EPCWSXR-6RSqo9Bn.mjs +1 -0
  79. package/dist/{esm-s2X3YAg-.mjs → esm-k1YlZnpm.mjs} +1 -1
  80. package/dist/expand-DTNXU4LQ-D4dbwBrD.mjs +1 -0
  81. package/dist/expansion-ENLSRCXJ-Bv6RV19y.mjs +1 -0
  82. package/dist/expr-5T3UU5KE-D7ekHiOy.mjs +1 -0
  83. package/dist/file-ZIGAJ4YS-DzKHvjCj.mjs +1 -0
  84. package/dist/find-TPUOAIUQ-DuBwOGWI.mjs +1 -0
  85. package/dist/{flag-coverage-QT4N2Z44-C7XMLkDY.mjs → flag-coverage-QT4N2Z44-C38ybzz7.mjs} +2 -2
  86. package/dist/fold-LDSORVYE-BQyKAmCr.mjs +1 -0
  87. package/dist/{getMachineId-bsd-BCJXEJCn.mjs → getMachineId-bsd-CzP05Ffc.mjs} +2 -2
  88. package/dist/{getMachineId-bsd-GIcY1fmf.mjs → getMachineId-bsd-D0erQsHH.mjs} +2 -2
  89. package/dist/{getMachineId-bsd-D7C80Q-x.mjs → getMachineId-bsd-Dp2q7huT.mjs} +2 -2
  90. package/dist/{getMachineId-darwin-C9wsuHP1.mjs → getMachineId-darwin-C4PiguA-.mjs} +2 -2
  91. package/dist/{getMachineId-darwin-D9y6ky_l.mjs → getMachineId-darwin-COcA_c6l.mjs} +2 -2
  92. package/dist/{getMachineId-darwin-DG876t7S.mjs → getMachineId-darwin-CywdnyvB.mjs} +2 -2
  93. package/dist/{getMachineId-linux-Bt9mk0EE.mjs → getMachineId-linux-BRPjBsHg.mjs} +2 -2
  94. package/dist/{getMachineId-linux-D9atImpV.mjs → getMachineId-linux-CQZJR55S.mjs} +2 -2
  95. package/dist/{getMachineId-linux-BJESQahL.mjs → getMachineId-linux-DcN5tfI_.mjs} +2 -2
  96. package/dist/{getMachineId-unsupported-Dabs3aBp.mjs → getMachineId-unsupported-BokXsjFr.mjs} +2 -2
  97. package/dist/{getMachineId-unsupported-cApRznzG.mjs → getMachineId-unsupported-DZAxq-oW.mjs} +2 -2
  98. package/dist/{getMachineId-unsupported-DAbsbHrs.mjs → getMachineId-unsupported-GPbM_evk.mjs} +2 -2
  99. package/dist/{getMachineId-win-CU_iAQo9.mjs → getMachineId-win-B20yaCSB.mjs} +2 -2
  100. package/dist/{getMachineId-win-CH98qgwX.mjs → getMachineId-win-BXWDfxLS.mjs} +2 -2
  101. package/dist/{getMachineId-win-1MPHaim9.mjs → getMachineId-win-BfSvDvM7.mjs} +2 -2
  102. package/dist/gh-detect-C3kYac-p.mjs +3 -0
  103. package/dist/{git-handle-BSAUg1L_-Bn2h-fYS.mjs → git-handle-BSAUg1L_-B0dX3OSo.mjs} +1 -1
  104. package/dist/git-handle-CvT4CaVU-BqccGnFS.mjs +1 -0
  105. package/dist/grep-3AIAIJVR-DhLMPK9o.mjs +1 -0
  106. package/dist/gzip-AQXSGOVS-kzAFjO_Y.mjs +1 -0
  107. package/dist/head-HT2B6D2J-BR-dv_ar.mjs +1 -0
  108. package/dist/help-VVWX7SA5-jdvqGfQj.mjs +1 -0
  109. package/dist/history-J4QRNGRO-jb5B-tWQ.mjs +1 -0
  110. package/dist/hostname-BK6HG2DE-CVVAGatl.mjs +1 -0
  111. package/dist/html-to-markdown-TFCECAGV-B5yiu2Qr.mjs +1 -0
  112. package/dist/index.d.mts +12 -1
  113. package/dist/index.mjs +1 -1
  114. package/dist/{init-DRfbG7u0.mjs → init-DOOSSLEH.mjs} +15 -15
  115. package/dist/init-s_zGdaxm.mjs +1 -0
  116. package/dist/join-GG2LDHE5-BLgXAHZ_.mjs +1 -0
  117. package/dist/jq-ODXZBPLY-JpgGenzN.mjs +1 -0
  118. package/dist/{js-exec-M6UR76J5-Cw-W_H_2.mjs → js-exec-M6UR76J5-Bo7dCQVP.mjs} +3 -3
  119. package/dist/{libesm-B_qVEpZ1.mjs → libesm-BXjuRhd9.mjs} +1 -1
  120. package/dist/ln-4TRFBYAT-C7xn5Rqr.mjs +1 -0
  121. package/dist/{loader-Dr74NhT-.mjs → loader-BrdaUVEQ.mjs} +3 -3
  122. package/dist/loader-DePwbagD.mjs +1 -0
  123. package/dist/ls-KSXFZCWH-BFVVAoBi.mjs +1 -0
  124. package/dist/md5sum-INMIK4DX-0GZIz1Ci.mjs +1 -0
  125. package/dist/mkdir-TDEMSB6C-DTyG__G-.mjs +1 -0
  126. package/dist/mv-Z6MORUFL-CmjBk72Q.mjs +1 -0
  127. package/dist/nl-U5YJDM32-5XaxKjVN.mjs +1 -0
  128. package/dist/od-VJEF2UR5-BYZOEzSd.mjs +1 -0
  129. package/dist/paste-7N6AFSDS-BnDgUhuq.mjs +1 -0
  130. package/dist/{preview-WlY5Fo0D.mjs → preview-BHPfi0n1.mjs} +2 -2
  131. package/dist/preview-CQODygq-.mjs +1 -0
  132. package/dist/printf-CX64KX2P-0abCeF-D.mjs +1 -0
  133. package/dist/public/assets/{ActivityModeContent-DYz6rey5.js → ActivityModeContent-A9JVnd1C.js} +1 -1
  134. package/dist/public/assets/{DocumentContext-B4QIWPrL.js → DocumentContext-CmBtR_Ex.js} +1 -1
  135. package/dist/public/assets/{GraphPanel-DFeRGhXy.js → GraphPanel-BvMeDFSM.js} +1 -1
  136. package/dist/public/assets/{SettingsDialogBody-B8ZGJUn1.js → SettingsDialogBody-Dhgc3_Ok.js} +1 -1
  137. package/dist/public/assets/{SourceEditor-_U6sbaL_.js → SourceEditor-D0EQlBRn.js} +1 -1
  138. package/dist/public/assets/{config-validation-events-DOsyw_ZJ.js → config-validation-events-BnNnGv50.js} +1 -1
  139. package/dist/public/assets/{index-BDfLuihf.js → index-BXJoxA8K.js} +4 -4
  140. package/dist/public/assets/{keyboard-shortcuts-Cb78kYel.js → keyboard-shortcuts-DGQUJa57.js} +1 -1
  141. package/dist/public/assets/{prop-types-IdQnEpCT.js → prop-types-z8aPJgr3.js} +155 -153
  142. package/dist/public/assets/{target-navigation-intent-CE2P4fcd.js → target-navigation-intent-BAXnlSRH.js} +1 -1
  143. package/dist/public/assets/{typing-burst-detector-jWK_zqz9.js → typing-burst-detector-DihrFfB5.js} +1 -1
  144. package/dist/public/index.html +7 -7
  145. package/dist/pwd-D4OZ7N27-AYS4A9o1.mjs +1 -0
  146. package/dist/{python3-AUFTPCU6-C02r6EXI.mjs → python3-AUFTPCU6-1PPUn2I7.mjs} +2 -2
  147. package/dist/readlink-MI4GCHJF-BvzND_DT.mjs +1 -0
  148. package/dist/{repair-launch-json-bfPeTjC1.mjs → repair-launch-json-C6PTJ9xk.mjs} +2 -2
  149. package/dist/{repair-mcp-configs-Dv7-MChW.mjs → repair-mcp-configs-1DLQ_aI_.mjs} +2 -2
  150. package/dist/{repair-skills-DYNSfoYx.mjs → repair-skills-CjT8z59t.mjs} +2 -2
  151. package/dist/repair-skills-DIfWiu1E.mjs +1 -0
  152. package/dist/rev-XOSYPP45-Bqdhxuez.mjs +1 -0
  153. package/dist/rg-FOQSCCX3-CrVzsut-.mjs +1 -0
  154. package/dist/rm-RTZG23RL-DVQCHLUL.mjs +1 -0
  155. package/dist/rmdir-XTQXT7RK-DrUUkxCF.mjs +1 -0
  156. package/dist/sed-VFTTATXJ-QHemmbCP.mjs +1 -0
  157. package/dist/seq-RN5ZUASB-BBSGpJq5.mjs +1 -0
  158. package/dist/{server-lock-BpjJj3OD-0F8DEGbQ.mjs → server-lock-BpjJj3OD-vTp6kF0e.mjs} +10 -8
  159. package/dist/server-lock-CyhBidkz-C2yQNfyA.mjs +1 -0
  160. package/dist/sha1sum-VJPNLNU6-D6-7B21n.mjs +1 -0
  161. package/dist/sha256sum-PI32XWXY-BYVtIJOS.mjs +1 -0
  162. package/dist/sleep-VZFPZFWA-C-x_VGtG.mjs +1 -0
  163. package/dist/sort-DCNRDA7U-BTlvuG7X.mjs +1 -0
  164. package/dist/split-SITCSYCZ-BmGbaiMe.mjs +1 -0
  165. package/dist/sqlite3-56UMWEY3-Cjvsy5Oo.mjs +1 -0
  166. package/dist/{src-C_kqzFe0.mjs → src-DPAvJMN5.mjs} +3 -3
  167. package/dist/{start-C2GdC0f6.mjs → start-CQvloGGb.mjs} +2 -2
  168. package/dist/start-DMPvMQIA.mjs +1 -0
  169. package/dist/stat-BT5A227F-BjNsVAze.mjs +1 -0
  170. package/dist/strings-7PLOGTPD-B6_kjNM-.mjs +1 -0
  171. package/dist/tac-SJGXQ4T2-BEQ9sZmi.mjs +1 -0
  172. package/dist/tail-S5ULNTJU-DSe2aEO8.mjs +1 -0
  173. package/dist/tar-ANUBEFJY-HbwMpE1g.mjs +1 -0
  174. package/dist/tee-O7VXZDCO-BD6QXg_b.mjs +1 -0
  175. package/dist/time-DEUO3QV2-CRnH51wk.mjs +1 -0
  176. package/dist/timeout-VRKMCG72-D_oS0IDg.mjs +1 -0
  177. package/dist/touch-DX2IJOQ4-4yR1M9Nd.mjs +1 -0
  178. package/dist/tr-2HXZRDSW-Ca-NmLk7.mjs +1 -0
  179. package/dist/tree-LYXBS7DC-CR3kfmh6.mjs +1 -0
  180. package/dist/true-WHJNXCHG-x85l8vsW.mjs +1 -0
  181. package/dist/unexpand-RGTMIGZM-D-1EwjbB.mjs +1 -0
  182. package/dist/uniq-SUNANL47-DtBj3lmA.mjs +1 -0
  183. package/dist/wc-TQB3VNOX-Qw6WjSl1.mjs +1 -0
  184. package/dist/which-XZHEH76L-B-Xo178d.mjs +1 -0
  185. package/dist/whoami-DGKU3D2X-_Mgzu6ty.mjs +1 -0
  186. package/dist/{write-project-skill-CPYFetL-.mjs → write-project-skill-B4WKDHbQ.mjs} +2 -2
  187. package/dist/xan-BXDXYEIB-qijhj_cA.mjs +1 -0
  188. package/dist/xan-view-ECQUO7AJ-BfZejrY6.mjs +1 -0
  189. package/dist/xargs-I6EZUCYF-aS184J1w.mjs +1 -0
  190. package/dist/{yazl-DjRp4wSy.mjs → yazl-CB0sfSbo.mjs} +1 -1
  191. package/dist/yazl-Dqnhfxk7.mjs +1 -0
  192. package/dist/yq-MJMAR36V-Cgql6fKu.mjs +1 -0
  193. package/package.json +1 -1
  194. package/dist/alias-JE7RI5QX-DvXqsNuT.mjs +0 -1
  195. package/dist/awk2-POPGKRAI-DjdS5H9u.mjs +0 -1
  196. package/dist/base64-4YMZCVJ5-KM4zCU91.mjs +0 -1
  197. package/dist/basename-AA2KJYZQ-623KrTZh.mjs +0 -1
  198. package/dist/bash-IJWYRKFO-Czh-Vt61.mjs +0 -1
  199. package/dist/build-CcnIXJkq.mjs +0 -1
  200. package/dist/cat-RDUMLXKC-BcPFfXNy.mjs +0 -1
  201. package/dist/chmod-SYMGL4JA-DNQ-_FB-.mjs +0 -1
  202. package/dist/clear-5CZ5X4YR-DQDNPZFX.mjs +0 -1
  203. package/dist/column-WLPMMSTS-D7ZdQMYX.mjs +0 -1
  204. package/dist/comm-5SLSESQG-D314YMTX.mjs +0 -1
  205. package/dist/constants-LiLVgWIu.mjs +0 -2
  206. package/dist/cp-XOYR4ABJ-BoeqT96E.mjs +0 -1
  207. package/dist/cut-OPC3VAGB-BduNLBmG.mjs +0 -1
  208. package/dist/date-DD7FVA2V-CXtS-UgC.mjs +0 -1
  209. package/dist/diff-HJF2MPDN-BIBcfzYf.mjs +0 -1
  210. package/dist/dirname-LEMTZZFS-y-nYlas9.mjs +0 -1
  211. package/dist/dist-DDYBq5tf.mjs +0 -1
  212. package/dist/dist-bundle-CjV1Pdeo.mjs +0 -1
  213. package/dist/du-WO2ENHXQ-DxBFDhE9.mjs +0 -1
  214. package/dist/echo-O45JWWI2-D2qFOnG-.mjs +0 -1
  215. package/dist/env-5EPCWSXR-3enSMuUq.mjs +0 -1
  216. package/dist/expand-DTNXU4LQ-ByrWF7LC.mjs +0 -1
  217. package/dist/expansion-ENLSRCXJ-ZEK-CtLJ.mjs +0 -1
  218. package/dist/expr-5T3UU5KE-DslbMHGH.mjs +0 -1
  219. package/dist/file-ZIGAJ4YS-5ydJB32I.mjs +0 -1
  220. package/dist/find-TPUOAIUQ-B-6hQsZ1.mjs +0 -1
  221. package/dist/fold-LDSORVYE-BcrX-J9k.mjs +0 -1
  222. package/dist/gh-detect-DjyibUoa.mjs +0 -3
  223. package/dist/git-handle-CvT4CaVU-HAzuhDq0.mjs +0 -1
  224. package/dist/grep-3AIAIJVR-Gk5ggptS.mjs +0 -1
  225. package/dist/gzip-AQXSGOVS-DVhom50G.mjs +0 -1
  226. package/dist/head-HT2B6D2J-ahSJqSiq.mjs +0 -1
  227. package/dist/help-VVWX7SA5-DWuklTmV.mjs +0 -1
  228. package/dist/history-J4QRNGRO-DF-FzAzf.mjs +0 -1
  229. package/dist/hostname-BK6HG2DE-BduSSI6z.mjs +0 -1
  230. package/dist/html-to-markdown-TFCECAGV-Dyh1D0fg.mjs +0 -1
  231. package/dist/init-CehvDihd.mjs +0 -1
  232. package/dist/join-GG2LDHE5-DbbozPoG.mjs +0 -1
  233. package/dist/jq-ODXZBPLY-DDNFO29H.mjs +0 -1
  234. package/dist/ln-4TRFBYAT-D-c9GUlv.mjs +0 -1
  235. package/dist/loader-CX4fDb28.mjs +0 -1
  236. package/dist/ls-KSXFZCWH-Cpvwn_RB.mjs +0 -1
  237. package/dist/md5sum-INMIK4DX-ysJE_fRH.mjs +0 -1
  238. package/dist/mkdir-TDEMSB6C-Doj-uc1V.mjs +0 -1
  239. package/dist/mv-Z6MORUFL-CB3JJwR7.mjs +0 -1
  240. package/dist/nl-U5YJDM32-DNpHPr0D.mjs +0 -1
  241. package/dist/od-VJEF2UR5-CU4HUmLC.mjs +0 -1
  242. package/dist/paste-7N6AFSDS-CRLhW5JD.mjs +0 -1
  243. package/dist/preview-b3CbdBUE.mjs +0 -1
  244. package/dist/printf-CX64KX2P-BRDA91sv.mjs +0 -1
  245. package/dist/pwd-D4OZ7N27-DOBMwDAQ.mjs +0 -1
  246. package/dist/readlink-MI4GCHJF-C7jxdmka.mjs +0 -1
  247. package/dist/repair-skills-C9qAyzit.mjs +0 -1
  248. package/dist/rev-XOSYPP45-BrzxRIO9.mjs +0 -1
  249. package/dist/rg-FOQSCCX3-D0ctWk6O.mjs +0 -1
  250. package/dist/rm-RTZG23RL-DZt78fCD.mjs +0 -1
  251. package/dist/rmdir-XTQXT7RK-CJJKrOdm.mjs +0 -1
  252. package/dist/sed-VFTTATXJ-Cv8KiT35.mjs +0 -1
  253. package/dist/seq-RN5ZUASB-BD6p5vId.mjs +0 -1
  254. package/dist/server-lock-CyhBidkz-DRsKQAKO.mjs +0 -1
  255. package/dist/sha1sum-VJPNLNU6-DukJfnER.mjs +0 -1
  256. package/dist/sha256sum-PI32XWXY-QlLE_NGo.mjs +0 -1
  257. package/dist/sleep-VZFPZFWA-gwZmptDS.mjs +0 -1
  258. package/dist/sort-DCNRDA7U-Bnmzizlk.mjs +0 -1
  259. package/dist/split-SITCSYCZ-NsOC8k0n.mjs +0 -1
  260. package/dist/sqlite3-56UMWEY3-URg2-QXI.mjs +0 -1
  261. package/dist/start-Cuu2M83v.mjs +0 -1
  262. package/dist/stat-BT5A227F-Di81wqB8.mjs +0 -1
  263. package/dist/strings-7PLOGTPD-DKTG3t3M.mjs +0 -1
  264. package/dist/tac-SJGXQ4T2-CMuGqDl5.mjs +0 -1
  265. package/dist/tail-S5ULNTJU-CxhswWhX.mjs +0 -1
  266. package/dist/tar-ANUBEFJY-BBFrIW8E.mjs +0 -1
  267. package/dist/tee-O7VXZDCO-DwJ0hUpW.mjs +0 -1
  268. package/dist/time-DEUO3QV2-W5vzutuD.mjs +0 -1
  269. package/dist/timeout-VRKMCG72-wW3XOtt7.mjs +0 -1
  270. package/dist/touch-DX2IJOQ4-C7eGjNGd.mjs +0 -1
  271. package/dist/tr-2HXZRDSW-DlafN6SW.mjs +0 -1
  272. package/dist/tree-LYXBS7DC-Ou8JkGQ1.mjs +0 -1
  273. package/dist/true-WHJNXCHG-B4B4ZHqp.mjs +0 -1
  274. package/dist/unexpand-RGTMIGZM-D6xZmTWp.mjs +0 -1
  275. package/dist/uniq-SUNANL47-Ce9L4IzE.mjs +0 -1
  276. package/dist/wc-TQB3VNOX-dwG38U4n.mjs +0 -1
  277. package/dist/which-XZHEH76L-Cw9SQliE.mjs +0 -1
  278. package/dist/whoami-DGKU3D2X-hzRI9gvz.mjs +0 -1
  279. package/dist/xan-BXDXYEIB-loWv9Mk3.mjs +0 -1
  280. package/dist/xan-view-ECQUO7AJ-8Lt55NoE.mjs +0 -1
  281. package/dist/xargs-I6EZUCYF-CG6axhMW.mjs +0 -1
  282. package/dist/yazl-CJayzk0b.mjs +0 -1
  283. package/dist/yq-MJMAR36V-CsEAtdgj.mjs +0 -1
@@ -1,3 +1,3 @@
1
- import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Cn as n,dt as r}from"./server-lock-BpjJj3OD-0F8DEGbQ.mjs";import{i,t as a}from"./gh-detect-DjyibUoa.mjs";import{Kn as o,fr as s,nr as c}from"./dist-D0BxLviK.mjs";import{n as l}from"./constants-LiLVgWIu.mjs";import{spawn as u}from"node:child_process";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{basename as g,dirname as _,join as v}from"node:path";import{homedir as y}from"node:os";import{setTimeout as b}from"node:timers/promises";const x=`Open Knowledge.app`,S=`/Applications/${x}`;function C(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function w(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(T(e,S))return S;let t=v(e.homeDir??y(),`Applications`,x);return T(e,t)?t:null}function T(e,t){try{let n=v(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function E(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=w(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 D(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge 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 O(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${S}. 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 ${S} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${S} but launch dispatch did not fire (caller bug).`}}function k(e){return v(_(e),`..`,`Frameworks`,`Open Knowledge Server.app`,`Contents`,`MacOS`,`Open Knowledge Helper`)}const A=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function j(e){if(e.platform!==`darwin`||!A.test(e.execPath))return null;let t=k(e.execPath);return e.exists(t)?t:null}function M(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??f,a=r[1];return a?{command:j({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 N(e,t){return e.host??t.HOST??`localhost`}function P(e){let t=g(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var F=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 I(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 L(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(v(e.lockDir,n),`w`),r=e.spawn??u,{PORT:i,...a}=process.env,o=M();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return n.unref(),n}finally{try{d(t)}catch{}}}function R(e,t,n){return e??(n===void 0?t:void 0)}function z(e,t){return e!==void 0&&t!==null&&t.port>0}function B(e,t,n){return e??(t!=null&&!n?1:0)}async function V(e){let t=e.spawn??u,n=M(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,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=B(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 H(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 U=r;function W(e){let t=e.sigtermGraceMs??U,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>b(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 G(e){let{config:t,cwd:n,host:r}=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:x}=await import(`./dist-DDYBq5tf.mjs`),S=e.log??_(`start`),C=e.singleFile!==void 0,w=e.projectDir??n,T=C?s(e.singleFile).canonicalFilePath:void 0,E=T?h(T):void 0,D=T?m(T):void 0;if(!C){if(!l&&!o(n))throw new F(n);let t=process.env.OK_RECLAIM_DISABLE??null,r=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&S.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-Dv7-MChW.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-bfPeTjC1.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-C9qAyzit.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let O=E??x(t,n);!C&&!f(O)&&(p(O,{recursive:!0}),S.info({contentDir:O},`Created content directory`));let k=null,A=async({lockDir:t})=>{if(k=I({uiLock:y(t),isAlive:v}),k.action===`spawn`&&!u)try{let r=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];L({lockDir:t,cwd:n,spawn:e.spawn,args:r}),S.info({reason:k.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 k.action===`skip`&&S.info({port:k.port,pid:k.pid},`UI already running at port ${k.port}`)},j=e.reactShellDistDir===void 0,M=i(),N=c(),P=await g({config:t,contentDir:O,projectDir:C?w:n,contentRoot:C?void 0:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:a,tokenStore:M,embeddingsKeyStore:N,...C?{ephemeral:!0,singleDocRelPath:D,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:j,idleShutdownMs:d,skipAutoInit:!0,...j?{spawnUiSiblingFn:A}:{},idleShutdownHandler:e=>W({readUiLock:()=>y(P.lockDir),isAlive:v,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:S}),log:S,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});k||={action:`skip`,reason:`alive`,pid:0,port:0};let R=k,z=null;if(R.action===`skip`)z=R.port>0?R.port:null;else if(!u){let t=e.uiBindTimeoutMs??3e3;z=await H({readUiLock:()=>y(P.lockDir),now:Date.now,sleep:e=>b(e),timeoutMs:t,pollIntervalMs:50}),z===null&&S.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:P.httpServer,destroy:P.destroy,lockDir:P.lockDir,contentDir:O,port:P.port,ready:P.ready,degraded:P.degraded,uiSpawnDecision:k,resolvedUiPort:z}}function K(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}function q(t){let n=Number.parseInt(t,10);if(Number.isNaN(n)||n<1||n>65535)throw new e(`--ui-port must be a port number between 1 and 65535`);return n}function J(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function Y(e){let t=[`Stopping Open Knowledge…`,`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 X(e,t){let n=J(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-BeneQTB4.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-gw_5YWUu.mjs`),c=process.cwd(),u=e;process.title=P(c);let d=N(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=R(f,p,m);if(m!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./dist-DDYBq5tf.mjs`);if(z(m,e(t(c)))){await V({cwd:c,uiPort:m});return}}let g;try{g=await G({config:u,cwd:c,host:d,port:h,...m===void 0?{}:{uiPort:m},...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{}})}catch(e){e instanceof F&&(console.error(o(e.message)),process.exit(1));let t=await import(`./dist-DDYBq5tf.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&&Z(e,t)){await V({cwd:c,uiPort:m});return}let n=Q(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]=Y(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-C6LU_1mt.mjs`);e(S)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function Z(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function Q(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=v(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge 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`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function $(e){return new t(`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`,q).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,K).option(`--serve-content-assets`,`Serve content assets from this server`).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)
1
+ import{n as e,t}from"./esm-CEs3LWY3.mjs";import{Sn as n,dt as r}from"./server-lock-BpjJj3OD-vTp6kF0e.mjs";import{i,t as a}from"./gh-detect-C3kYac-p.mjs";import{pr as o,qn as s,rr as c}from"./dist-DFDll_q5.mjs";import{n as l}from"./constants-DSCKzAUk.mjs";import{spawn as u}from"node:child_process";import{closeSync as d,existsSync as f,mkdirSync as p,openSync as m,statSync as h}from"node:fs";import{basename as g,dirname as _,join as v}from"node:path";import{homedir as y}from"node:os";import{setTimeout as b}from"node:timers/promises";const x=`Open Knowledge.app`,S=`/Applications/${x}`;function C(){return{platform:process.platform,env:process.env,execPath:process.execPath,isTTY:process.stdout.isTTY,statSync:e=>{try{return h(e,{throwIfNoEntry:!1})??null}catch{return null}}}}function w(e){if(e.env.ELECTRON_RUN_AS_NODE===`1`){let t=/(.+?\.app)\/Contents\/MacOS\//.exec(e.execPath);if(t?.[1])return t[1]}if(T(e,S))return S;let t=v(e.homeDir??y(),`Applications`,x);return T(e,t)?t:null}function T(e,t){try{let n=v(t,`Contents`,`MacOS`,`Open Knowledge`),r=e.statSync(n);return r&&typeof r.isFile==`function`?r.isFile():!1}catch{return!1}}function E(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=w(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 D(e){(e.log??(e=>console.error(e)))("Launching Open Knowledge 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 O(e=`no-bundle`){switch(e){case`no-bundle`:return`Desktop app not found at ${S}. 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 ${S} (filesystem error). Check permissions or use --mode=browser.`;case`available`:return`Desktop app appears available at ${S} but launch dispatch did not fire (caller bug).`}}function k(e){return v(_(e),`..`,`Frameworks`,`Open Knowledge Server.app`,`Contents`,`MacOS`,`Open Knowledge Helper`)}const A=/\/[^/]+\.app\/Contents\/MacOS\/[^/]+$/;function j(e){if(e.platform!==`darwin`||!A.test(e.execPath))return null;let t=k(e.execPath);return e.exists(t)?t:null}function M(e={}){let t=e.execPath??process.execPath,n=e.platform??process.platform,r=e.argv??process.argv,i=e.exists??f,a=r[1];return a?{command:j({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 N(e,t){return e.host??t.HOST??`localhost`}function P(e){let t=g(e).replace(/[^\x20-\x7E]/g,``).trim().slice(0,64);return`open-knowledge-server ${t.length>0?t:`unknown`}`}var F=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 I(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 L(e){f(e.lockDir)||p(e.lockDir,{recursive:!0});let t=m(v(e.lockDir,n),`w`),r=e.spawn??u,{PORT:i,...a}=process.env,o=M();try{let n=r(o.command,[...o.prefixArgs,...e.args??[`ui`]],{detached:!0,stdio:[`ignore`,`ignore`,t],cwd:e.cwd,env:{...a,ELECTRON_RUN_AS_NODE:`1`}});return n.unref(),n}finally{try{d(t)}catch{}}}function R(e,t,n){return e??(n===void 0?t:void 0)}function z(e,t){return e!==void 0&&t!==null&&t.port>0}function B(e,t,n){return e??(t!=null&&!n?1:0)}async function V(e){let t=e.spawn??u,n=M(),{PORT:r,...i}=process.env,a=t(n.command,[...n.prefixArgs,`ui`,`--port`,String(e.uiPort)],{cwd:e.cwd,stdio:`inherit`,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=B(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 H(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 U=r;function W(e){let t=e.sigtermGraceMs??U,n=e.sigtermPollIntervalMs??200,r=e.sleep??(e=>b(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 G(e){let{config:t,cwd:n,host:r}=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:x}=await import(`./dist-CHRfgQ3D.mjs`),S=e.log??_(`start`),C=e.singleFile!==void 0,w=e.projectDir??n,T=C?o(e.singleFile).canonicalFilePath:void 0,E=T?h(T):void 0,D=T?m(T):void 0;if(!C){if(!l&&!s(n))throw new F(n);let t=process.env.OK_RECLAIM_DISABLE??null,r=e=>{let t=typeof e.event==`string`?e.event:``;(t.endsWith(`-failed`)||t.endsWith(`-error`)||t.endsWith(`-missing`))&&S.warn({event:e},`[start] reclaim sweep reported a problem`)};try{(e.repairMcpConfigsFn??(await import(`./repair-mcp-configs-1DLQ_aI_.mjs`)).repairMcpConfigs)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] mcp-config repair sweep failed; continuing`)}try{(e.repairLaunchJsonFn??(await import(`./repair-launch-json-C6PTJ9xk.mjs`)).repairLaunchJson)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] launch.json repair sweep failed; continuing`)}try{await(e.repairSkillsFn??(await import(`./repair-skills-DIfWiu1E.mjs`)).repairSkills)({projectDir:n,reclaimDisableEnv:t,logger:r})}catch(e){S.warn({err:e},`[start] skill repair sweep failed; continuing`)}}let O=E??x(t,n);!C&&!f(O)&&(p(O,{recursive:!0}),S.info({contentDir:O},`Created content directory`));let k=null,A=async({lockDir:t})=>{if(k=I({uiLock:y(t),isAlive:v}),k.action===`spawn`&&!u)try{let r=e.uiPort===void 0?void 0:[`ui`,`--port`,String(e.uiPort)];L({lockDir:t,cwd:n,spawn:e.spawn,args:r}),S.info({reason:k.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 k.action===`skip`&&S.info({port:k.port,pid:k.pid},`UI already running at port ${k.port}`)},j=e.reactShellDistDir===void 0,M=i(),N=c(),P=await g({config:t,contentDir:O,projectDir:C?w:n,contentRoot:C?void 0:t.content.dir,port:e.port,host:r,quiet:!1,detectGh:a,tokenStore:M,embeddingsKeyStore:N,...C?{ephemeral:!0,singleDocRelPath:D,gitEnabled:!1,gitPreflight:()=>({ok:!0,version:`0.0.0`,resolvedPath:`git`,source:`PATH`})}:{},localOpCliArgs:[process.execPath,process.argv[1]],attachUiSibling:j,idleShutdownMs:d,skipAutoInit:!0,...j?{spawnUiSiblingFn:A}:{},idleShutdownHandler:e=>W({readUiLock:()=>y(P.lockDir),isAlive:v,killPid:(e,t)=>{process.kill(e,t)},destroy:e,log:S}),log:S,...e.serveContentAssets?{serveContentAssets:!0}:{},...e.reactShellDistDir?{reactShellDistDir:e.reactShellDistDir}:{}});k||={action:`skip`,reason:`alive`,pid:0,port:0};let R=k,z=null;if(R.action===`skip`)z=R.port>0?R.port:null;else if(!u){let t=e.uiBindTimeoutMs??3e3;z=await H({readUiLock:()=>y(P.lockDir),now:Date.now,sleep:e=>b(e),timeoutMs:t,pollIntervalMs:50}),z===null&&S.warn({timeoutMs:t},`[start] ok ui did not bind within timeout — banner falls back to API URL`)}return{httpServer:P.httpServer,destroy:P.destroy,lockDir:P.lockDir,contentDir:O,port:P.port,ready:P.ready,degraded:P.degraded,uiSpawnDecision:k,resolvedUiPort:z}}function K(t){if(t===`browser`||t===`app`)return t;throw new e(`--mode must be 'browser' or 'app'`)}function q(t){let n=Number.parseInt(t,10);if(Number.isNaN(n)||n<1||n>65535)throw new e(`--ui-port must be a port number between 1 and 65535`);return n}function J(e){return e.OK_CONSOLE_LEVEL!==void 0||e.LOG_LEVEL!==void 0?null:`warn`}function Y(e){let t=[`Stopping Open Knowledge…`,`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 X(e,t){let n=J(process.env);n!==null&&(process.env.OK_CONSOLE_LEVEL=n);let{renderBanner:r}=await import(`./banner-BeneQTB4.mjs`),{accent:i,dim:a,error:o,warning:s}=await import(`./colors-gw_5YWUu.mjs`),c=process.cwd(),u=e;process.title=P(c);let d=N(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=R(f,p,m);if(m!==void 0){let{readServerLock:e,resolveLockDir:t}=await import(`./dist-CHRfgQ3D.mjs`);if(z(m,e(t(c)))){await V({cwd:c,uiPort:m});return}}let g;try{g=await G({config:u,cwd:c,host:d,port:h,...m===void 0?{}:{uiPort:m},...t.serveContentAssets?{serveContentAssets:!0}:{},...t.reactShellDistDir?{reactShellDistDir:t.reactShellDistDir}:{},...t.singleFile?{singleFile:t.singleFile}:{},...t.projectDir?{projectDir:t.projectDir}:{}})}catch(e){e instanceof F&&(console.error(o(e.message)),process.exit(1));let t=await import(`./dist-CHRfgQ3D.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&&Z(e,t)){await V({cwd:c,uiPort:m});return}let n=Q(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]=Y(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-C6LU_1mt.mjs`);e(S)}}).catch(e=>{console.error(` ${o(`Server initialization failed:`)} ${e instanceof Error?e.message:String(e)}`)})}function Z(e,t){let n=t.ServerLockCollisionError;return n!==void 0&&e instanceof n}function Q(e,t,n){let r=n.ServerLockCollisionError;if(r===void 0||!(e instanceof r))return null;try{let e=v(t,`.ok`),r=n.readServerLock(e);return r?r.kind===`interactive`?`Open Knowledge 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`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`.":"Open Knowledge server is already running on this project — check `ok status` or `ok stop`."}catch{return null}}function $(e){return new t(`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`,q).option(`-H, --host <host>`,`Server host`,void 0).option(`--open`,`Open browser after start`).option(`--mode <mode>`,`Force dispatch mode: 'browser' or 'app'`,K).option(`--serve-content-assets`,`Serve content assets from this server`).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
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=E(C());if(n.available){D({spawn:u});return}console.error(O(n.reason)),process.exit(1)}await X(n,t)})}export{D as S,$ as _,B as a,C as b,P as c,R as d,N as f,L as g,z as h,W as i,Y as l,X as m,H as n,V as o,J as p,G as r,I as s,F as t,Z as u,Q as v,E as x,M as y};
3
- //# sourceMappingURL=start-C2GdC0f6.mjs.map
3
+ //# sourceMappingURL=start-CQvloGGb.mjs.map
@@ -0,0 +1 @@
1
+ import{_ as e,f as t,r as n}from"./start-CQvloGGb.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-5QVNJEHU-BvsipSFW.mjs";export{e as statCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-VYOJP4TV-BvibOnKG.mjs";export{e as strings};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";export{e as tac};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";export{e as tailCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import{n as e}from"./chunk-BRGMQKJV-CHO764qS.mjs";export{e as tarCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-55VFSPNA-DVZfQAzN.mjs";export{e as teeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-CWQS3NFK-BP3kiNgH.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-Z6LRHWXI-BcgkPhhu.mjs";export{e as timeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import"./chunk-A5O5YHGN-C6ngIqYR.mjs";import{n as e}from"./chunk-YTNYSM6T-Cz_dxkBy.mjs";export{e as timeoutCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-OCLXQMOG-C7k2qEN6.mjs";export{e as touchCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-62RKD26F-CvuML91F.mjs";export{e as trCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";export{e as treeCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";export{e as falseCommand,t as trueCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-PYSFUGCK-CY7pclEB.mjs";export{e as unexpand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-WKFATFPP-DCZdrA8x.mjs";export{e as uniqCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-GXVXFKBA-993FoPmq.mjs";export{e as wcCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-A65PWWJC-D7J5l9eq.mjs";export{e as whichCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{t as e}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";export{e as whoami};
@@ -1,2 +1,2 @@
1
- import{jr as e}from"./dist-D0BxLviK.mjs";import{cpSync as t,existsSync as n,lstatSync as r,mkdirSync as i,realpathSync as a,rmSync as o}from"node:fs";import{dirname as s,isAbsolute as c,relative as l,resolve as u,sep as d}from"node:path";function f(e,t){let n;try{n=a(t)}catch{n=u(t)}let i;try{i=r(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(i?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let o=s(e);for(;o.length>1&&o!==d;){let t;try{t=a(o)}catch(e){if(e.code===`ENOENT`){o=s(o);continue}throw e}let r=l(n,t);if(r===``||!r.startsWith(`..`)&&!c(r))return;throw Error(`Refusing to write at ${e}: ancestor ${o} 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 p(r,a){let c=r.projectSkillPath?.(a);if(!c)return{editorId:r.id,label:r.label,action:`skipped-unsupported`,path:``};try{let l=e(`project`,{checkDesktop:!0}),u=s(c);f(u,a);let d=n(c)?`overwritten`:`written`;return o(u,{recursive:!0,force:!0}),i(s(u),{recursive:!0}),t(l,u,{recursive:!0}),{editorId:r.id,label:r.label,action:d,path:c}}catch(e){return{editorId:r.id,label:r.label,action:`failed`,path:c,error:e instanceof Error?e.message:String(e)}}}export{p as n,f as t};
2
- //# sourceMappingURL=write-project-skill-CPYFetL-.mjs.map
1
+ import{Mr as e}from"./dist-DFDll_q5.mjs";import{cpSync as t,existsSync as n,lstatSync as r,mkdirSync as i,realpathSync as a,rmSync as o}from"node:fs";import{dirname as s,isAbsolute as c,relative as l,resolve as u,sep as d}from"node:path";function f(e,t){let n;try{n=a(t)}catch{n=u(t)}let i;try{i=r(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(i?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let o=s(e);for(;o.length>1&&o!==d;){let t;try{t=a(o)}catch(e){if(e.code===`ENOENT`){o=s(o);continue}throw e}let r=l(n,t);if(r===``||!r.startsWith(`..`)&&!c(r))return;throw Error(`Refusing to write at ${e}: ancestor ${o} 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 p(r,a){let c=r.projectSkillPath?.(a);if(!c)return{editorId:r.id,label:r.label,action:`skipped-unsupported`,path:``};try{let l=e(`project`,{checkDesktop:!0}),u=s(c);f(u,a);let d=n(c)?`overwritten`:`written`;return o(u,{recursive:!0,force:!0}),i(s(u),{recursive:!0}),t(l,u,{recursive:!0}),{editorId:r.id,label:r.label,action:d,path:c}}catch(e){return{editorId:r.id,label:r.label,action:`failed`,path:c,error:e instanceof Error?e.message:String(e)}}}export{p as n,f as t};
2
+ //# sourceMappingURL=write-project-skill-B4WKDHbQ.mjs.map
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import"./chunk-24IMIIXA-C-Zyd2K_.mjs";import"./chunk-SYMJJMQ4-DLPoQaug.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-Oks1GMhO.mjs";import"./chunk-F55TLFGB-Bkfd8ak_.mjs";import{n as e}from"./chunk-UNYNJIFU--HT-3lrq.mjs";export{e as xanCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-SYMJJMQ4-DLPoQaug.mjs";import{c as e}from"./chunk-F55TLFGB-Bkfd8ak_.mjs";export{e as cmdView};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-C2RuFAAY.mjs";import{n as e}from"./chunk-TOMNU26N-DfLjxpHW.mjs";export{e as xargsCommand};
@@ -1,2 +1,2 @@
1
1
  import{i as e,t}from"./chunk-FK9Q3tQk.mjs";var n=t(((e,t)=>{function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}let r=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function i(e){if(Buffer.isBuffer(e))return e;if(typeof e==`number`)return Buffer.alloc(e);if(typeof e==`string`)return Buffer.from(e);throw Error(`input must be buffer, number, or string, received `+typeof e)}function a(e){let t=i(4);return t.writeInt32BE(e,0),t}function o(e,t){e=i(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var a=0;a<e.length;a++)n=r[(n^e[a])&255]^n>>>8;return n^-1}function s(){return a(o.apply(null,arguments))}s.signed=function(){return o.apply(null,arguments)},s.unsigned=function(){return o.apply(null,arguments)>>>0},t.exports=n(s)})),r=t((t=>{var r=e(`fs`),i=e(`stream`).Transform,a=e(`stream`).PassThrough,o=e(`zlib`),s=e(`util`),c=e(`events`).EventEmitter,l=e(`events`).errorMonitor,u=n();t.ZipFile=d,t.dateToDosDateTime=z,s.inherits(d,c);function d(){this.outputStream=new a,this.entries=[],this.outputStreamCursor=0,this.ended=!1,this.allDone=!1,this.forceZip64Eocd=!1,this.errored=!1,this.on(l,function(){this.errored=!0})}d.prototype.addFile=function(e,t,n){var i=this;if(t=C(t,!1),n??={},!v(i)){var a=new T(t,!1,n);i.entries.push(a),r.stat(e,function(t,o){if(t)return i.emit(`error`,t);if(!o.isFile())return i.emit(`error`,Error(`not a file: `+e));a.uncompressedSize=o.size,n.mtime??a.setLastModDate(o.mtime),n.mode??a.setFileAttributesMode(o.mode),a.setFileDataPumpFunction(function(){var t=r.createReadStream(e);a.state=T.FILE_DATA_IN_PROGRESS,t.on(`error`,function(e){i.emit(`error`,e)}),m(i,a,t)}),g(i)})}},d.prototype.addReadStream=function(e,t,n){this.addReadStreamLazy(t,n,function(t){t(null,e)})},d.prototype.addReadStreamLazy=function(e,t,n){var r=this;if(typeof t==`function`&&(n=t,t=null),t??={},e=C(e,!1),!v(r)){var i=new T(e,!1,t);r.entries.push(i),i.setFileDataPumpFunction(function(){i.state=T.FILE_DATA_IN_PROGRESS,n(function(e,t){if(e)return r.emit(`error`,e);m(r,i,t)})}),g(r)}},d.prototype.addBuffer=function(e,t,n){var r=this;if(t=C(t,!1),e.length>1073741823)throw Error(`buffer too large: `+e.length+` > 1073741823`);if(n??={},n.size!=null)throw Error(`options.size not allowed`);if(v(r))return;var i=new T(t,!1,n);i.uncompressedSize=e.length,i.crc32=u.unsigned(e),i.crcAndFileSizeKnown=!0,r.entries.push(i),i.compressionLevel===0?a(e):o.deflateRaw(e,{level:i.compressionLevel},function(e,t){a(t)});function a(e){i.compressedSize=e.length,i.setFileDataPumpFunction(function(){p(r,e),p(r,i.getDataDescriptor()),i.state=T.FILE_DATA_DONE,setImmediate(function(){g(r)})}),g(r)}},d.prototype.addEmptyDirectory=function(e,t){var n=this;if(e=C(e,!0),t??={},t.size!=null)throw Error(`options.size not allowed`);if(t.compress!=null)throw Error(`options.compress not allowed`);if(t.compressionLevel!=null)throw Error(`options.compressionLevel not allowed`);if(!v(n)){var r=new T(e,!0,t);n.entries.push(r),r.setFileDataPumpFunction(function(){p(n,r.getDataDescriptor()),r.state=T.FILE_DATA_DONE,g(n)}),g(n)}};var f=q([80,75,5,6]);d.prototype.end=function(e,t){if(typeof e==`function`&&(t=e,e=null),e??={},!this.ended&&(this.ended=!0,!this.errored)){if(this.calculatedTotalSizeCallback=t,this.forceZip64Eocd=!!e.forceZip64Format,e.comment){if(typeof e.comment==`string`?this.comment=G(e.comment):this.comment=e.comment,this.comment.length>65535)throw Error(`comment is too large`);if(J(this.comment,f))throw Error(`comment contains end of central directory record signature`)}else this.comment=w;g(this)}};function p(e,t){e.outputStream.write(t),e.outputStreamCursor+=t.length}function m(e,t,n){var r=new H,i=new V,s=t.compressionLevel===0?new a:new o.DeflateRaw({level:t.compressionLevel}),c=new V;n.pipe(r).pipe(i).pipe(s).pipe(c).pipe(e.outputStream,{end:!1}),c.on(`end`,function(){if(t.crc32=r.crc32,t.uncompressedSize==null)t.uncompressedSize=i.byteCount;else if(t.uncompressedSize!==i.byteCount)return e.emit(`error`,Error(`file data stream has unexpected number of bytes`));t.compressedSize=c.byteCount,e.outputStreamCursor+=t.compressedSize,p(e,t.getDataDescriptor()),t.state=T.FILE_DATA_DONE,g(e)})}function h(e){if(e.compress!=null&&e.compressionLevel!=null&&!!e.compress!=!!e.compressionLevel)throw Error(`conflicting settings for compress and compressionLevel`);return e.compressionLevel==null?e.compress===!1?0:6:e.compressionLevel}function g(e){if(e.allDone||e.errored)return;if(e.ended&&e.calculatedTotalSizeCallback!=null){var t=_(e);t!=null&&(e.calculatedTotalSizeCallback(t),e.calculatedTotalSizeCallback=null)}var n=r();function r(){for(var t=0;t<e.entries.length;t++){var n=e.entries[t];if(n.state<T.FILE_DATA_DONE)return n}return null}if(n!=null){if(n.state<T.READY_TO_PUMP_FILE_DATA||n.state===T.FILE_DATA_IN_PROGRESS)return;n.relativeOffsetOfLocalHeader=e.outputStreamCursor,p(e,n.getLocalFileHeader()),n.doFileDataPump()}else e.ended&&(e.offsetOfStartOfCentralDirectory=e.outputStreamCursor,e.entries.forEach(function(t){p(e,t.getCentralDirectoryRecord())}),p(e,S(e)),e.outputStream.end(),e.allDone=!0)}function _(e){for(var t=0,n=0,r=0;r<e.entries.length;r++){var i=e.entries[r];if(i.compressionLevel!==0)return-1;if(i.state>=T.READY_TO_PUMP_FILE_DATA){if(i.uncompressedSize==null)return-1}else if(i.uncompressedSize==null)return null;i.relativeOffsetOfLocalHeader=t;var a=i.useZip64Format();t+=E+i.utf8FileName.length,t+=i.uncompressedSize,i.crcAndFileSizeKnown||(a?t+=N:t+=M),n+=P+i.utf8FileName.length+i.fileComment.length,i.forceDosTimestamp||(n+=F),a&&(n+=I)}var o=0;return(e.forceZip64Eocd||e.entries.length>=65535||n>=65535||t>=4294967295)&&(o+=y+b),o+=x+e.comment.length,t+n+o}function v(e){if(e.ended)throw Error(`cannot add entries after calling end()`);return!!e.errored}var y=56,b=20,x=22;function S(e,t){var n=!1,r=e.entries.length;(e.forceZip64Eocd||e.entries.length>=65535)&&(r=65535,n=!0);var i=e.outputStreamCursor-e.offsetOfStartOfCentralDirectory,a=i;(e.forceZip64Eocd||i>=4294967295)&&(a=4294967295,n=!0);var o=e.offsetOfStartOfCentralDirectory;if((e.forceZip64Eocd||e.offsetOfStartOfCentralDirectory>=4294967295)&&(o=4294967295,n=!0),t)return n?y+b+x:x;var s=K(x+e.comment.length);if(s.writeUInt32LE(101010256,0),s.writeUInt16LE(0,4),s.writeUInt16LE(0,6),s.writeUInt16LE(r,8),s.writeUInt16LE(r,10),s.writeUInt32LE(a,12),s.writeUInt32LE(o,16),s.writeUInt16LE(e.comment.length,20),e.comment.copy(s,22),!n)return s;var c=K(y);c.writeUInt32LE(101075792,0),B(c,y-12,4),c.writeUInt16LE(k,12),c.writeUInt16LE(O,14),c.writeUInt32LE(0,16),c.writeUInt32LE(0,20),B(c,e.entries.length,24),B(c,e.entries.length,32),B(c,i,40),B(c,e.offsetOfStartOfCentralDirectory,48);var l=K(b);return l.writeUInt32LE(117853008,0),l.writeUInt32LE(0,4),B(l,e.outputStreamCursor,8),l.writeUInt32LE(1,16),Buffer.concat([c,l,s])}function C(e,t){if(e===``)throw Error(`empty metadataPath`);if(e=e.replace(/\\/g,`/`),/^[a-zA-Z]:/.test(e)||/^\//.test(e))throw Error(`absolute path: `+e);if(e.split(`/`).indexOf(`..`)!==-1)throw Error(`invalid relative path: `+e);var n=/\/$/.test(e);if(t)n||(e+=`/`);else if(n)throw Error(`file path cannot end with '/': `+e);return e}var w=K(0);function T(e,t,n){if(this.utf8FileName=q(e),this.utf8FileName.length>65535)throw Error(`utf8 file name too long. `+utf8FileName.length+` > 65535`);if(this.isDirectory=t,this.state=T.WAITING_FOR_METADATA,this.setLastModDate(n.mtime==null?new Date:n.mtime),this.forceDosTimestamp=!!n.forceDosTimestamp,n.mode==null?this.setFileAttributesMode(t?16893:33204):this.setFileAttributesMode(n.mode),t?(this.crcAndFileSizeKnown=!0,this.crc32=0,this.uncompressedSize=0,this.compressedSize=0):(this.crcAndFileSizeKnown=!1,this.crc32=null,this.uncompressedSize=null,this.compressedSize=null,n.size!=null&&(this.uncompressedSize=n.size)),t?this.compressionLevel=0:this.compressionLevel=h(n),this.forceZip64Format=!!n.forceZip64Format,n.fileComment){if(typeof n.fileComment==`string`?this.fileComment=q(n.fileComment,`utf-8`):this.fileComment=n.fileComment,this.fileComment.length>65535)throw Error(`fileComment is too large`)}else this.fileComment=w}T.WAITING_FOR_METADATA=0,T.READY_TO_PUMP_FILE_DATA=1,T.FILE_DATA_IN_PROGRESS=2,T.FILE_DATA_DONE=3,T.prototype.setLastModDate=function(e){this.mtime=e;var t=z(e);this.lastModFileTime=t.time,this.lastModFileDate=t.date},T.prototype.setFileAttributesMode=function(e){if((e&65535)!==e)throw Error(`invalid mode. expected: 0 <= `+e+` <= 65535`);this.externalFileAttributes=e<<16>>>0},T.prototype.setFileDataPumpFunction=function(e){this.doFileDataPump=e,this.state=T.READY_TO_PUMP_FILE_DATA},T.prototype.useZip64Format=function(){return this.forceZip64Format||this.uncompressedSize!=null&&this.uncompressedSize>4294967294||this.compressedSize!=null&&this.compressedSize>4294967294||this.relativeOffsetOfLocalHeader!=null&&this.relativeOffsetOfLocalHeader>4294967294};var E=30,D=20,O=45,k=831,A=2048,j=8;T.prototype.getLocalFileHeader=function(){var e=0,t=0,n=0;this.crcAndFileSizeKnown&&(e=this.crc32,t=this.compressedSize,n=this.uncompressedSize);var r=K(E),i=A;return this.crcAndFileSizeKnown||(i|=j),r.writeUInt32LE(67324752,0),r.writeUInt16LE(D,4),r.writeUInt16LE(i,6),r.writeUInt16LE(this.getCompressionMethod(),8),r.writeUInt16LE(this.lastModFileTime,10),r.writeUInt16LE(this.lastModFileDate,12),r.writeUInt32LE(e,14),r.writeUInt32LE(t,18),r.writeUInt32LE(n,22),r.writeUInt16LE(this.utf8FileName.length,26),r.writeUInt16LE(0,28),Buffer.concat([r,this.utf8FileName])};var M=16,N=24;T.prototype.getDataDescriptor=function(){if(this.crcAndFileSizeKnown)return w;if(this.useZip64Format()){var e=K(N);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),B(e,this.compressedSize,8),B(e,this.uncompressedSize,16),e}else{var e=K(M);return e.writeUInt32LE(134695760,0),e.writeUInt32LE(this.crc32,4),e.writeUInt32LE(this.compressedSize,8),e.writeUInt32LE(this.uncompressedSize,12),e}};var P=46,F=9,I=28;T.prototype.getCentralDirectoryRecord=function(){var e=K(P),t=A;this.crcAndFileSizeKnown||(t|=j);var n=w;if(!this.forceDosTimestamp){n=K(F),n.writeUInt16LE(21589,0),n.writeUInt16LE(F-4,2),n.writeUInt8(3,4);var r=Math.floor(this.mtime.getTime()/1e3);r<-2147483648&&(r=-2147483648),r>2147483647&&(r=2147483647),n.writeUInt32LE(r,5)}var i=this.compressedSize,a=this.uncompressedSize,o=this.relativeOffsetOfLocalHeader,s=D,c=w;return this.useZip64Format()&&(i=4294967295,a=4294967295,o=4294967295,s=O,c=K(I),c.writeUInt16LE(1,0),c.writeUInt16LE(I-4,2),B(c,this.uncompressedSize,4),B(c,this.compressedSize,12),B(c,this.relativeOffsetOfLocalHeader,20)),e.writeUInt32LE(33639248,0),e.writeUInt16LE(k,4),e.writeUInt16LE(s,6),e.writeUInt16LE(t,8),e.writeUInt16LE(this.getCompressionMethod(),10),e.writeUInt16LE(this.lastModFileTime,12),e.writeUInt16LE(this.lastModFileDate,14),e.writeUInt32LE(this.crc32,16),e.writeUInt32LE(i,20),e.writeUInt32LE(a,24),e.writeUInt16LE(this.utf8FileName.length,28),e.writeUInt16LE(n.length+c.length,30),e.writeUInt16LE(this.fileComment.length,32),e.writeUInt16LE(0,34),e.writeUInt16LE(0,36),e.writeUInt32LE(this.externalFileAttributes,38),e.writeUInt32LE(o,42),Buffer.concat([e,this.utf8FileName,n,c,this.fileComment])},T.prototype.getCompressionMethod=function(){return this.compressionLevel===0?0:8};var L=new Date(1980,0,1),R=new Date(2107,11,31,23,59,58);function z(e){e<L?e=L:e>R&&(e=R);var t=0;t|=e.getDate()&31,t|=(e.getMonth()+1&15)<<5,t|=(e.getFullYear()-1980&127)<<9;var n=0;return n|=Math.floor(e.getSeconds()/2),n|=(e.getMinutes()&63)<<5,n|=(e.getHours()&31)<<11,{date:t,time:n}}function B(e,t,n){var r=Math.floor(t/4294967296),i=t%4294967296;e.writeUInt32LE(i,n),e.writeUInt32LE(r,n+4)}s.inherits(V,i);function V(e){i.call(this,e),this.byteCount=0}V.prototype._transform=function(e,t,n){this.byteCount+=e.length,n(null,e)},s.inherits(H,i);function H(e){i.call(this,e),this.crc32=0}H.prototype._transform=function(e,t,n){this.crc32=u.unsigned(e,this.crc32),n(null,e)};var U=`\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`;if(U.length!==256)throw Error(`assertion failure`);var W=null;function G(e){if(/^[\x20-\x7e]*$/.test(e))return q(e,`utf-8`);if(W==null){W={};for(var t=0;t<U.length;t++)W[U[t]]=t}for(var n=K(e.length),t=0;t<e.length;t++){var r=W[e[t]];if(r==null)throw Error(`character not encodable in CP437: `+JSON.stringify(e[t]));n[t]=r}return n}function K(e){K=t;try{return K(e)}catch{return K=n,K(e)}function t(e){return Buffer.allocUnsafe(e)}function n(e){return new Buffer(e)}}function q(e,t){q=n;try{return q(e,t)}catch{return q=r,q(e,t)}function n(e,t){return Buffer.from(e,t)}function r(e,t){return new Buffer(e,t)}}function J(e,t){J=n;try{return J(e,t)}catch{return J=r,J(e,t)}function n(e,t){return e.includes(t)}function r(e,t){for(var n=0;n<=e.length-t.length;n++)for(var r=0;;r++){if(r===t.length)return!0;if(e[n+r]!==t[r])break}return!1}}}));export{r as t};
2
- //# sourceMappingURL=yazl-DjRp4wSy.mjs.map
2
+ //# sourceMappingURL=yazl-CB0sfSbo.mjs.map
@@ -0,0 +1 @@
1
+ import{t as e}from"./yazl-CB0sfSbo.mjs";export default e();export{};
@@ -0,0 +1 @@
1
+ import"./chunk-YNYSPYQ5-iQGTFdx0.mjs";import"./chunk-DXB73IDG-C2RuFAAY.mjs";import"./chunk-5QMZ5MUS-BfIuRNkK.mjs";import"./chunk-24IMIIXA-C-Zyd2K_.mjs";import"./chunk-SYMJJMQ4-DLPoQaug.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-Oks1GMhO.mjs";import{t as e}from"./chunk-XORM457F-D-QrjagQ.mjs";export{e as yqCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/open-knowledge",
3
- "version": "0.11.0-beta.4",
3
+ "version": "0.11.0-beta.6",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "private": false,
6
6
  "type": "module",
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{r as e,t}from"./chunk-VOBGTVA6-BT7gUxqf.mjs";export{e as aliasCommand,t as unaliasCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{n as e}from"./chunk-OARHFVLG-CpUL83N9.mjs";export{e as awkCommand2};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-QJ7O6ZN3-BH67tCjg.mjs";export{e as base64Command};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-ALLTKNUZ-BMiTDN50.mjs";export{e as basenameCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-D6CWQ5DW-Cik2LGX1.mjs";export{e as bashCommand,t as shCommand};
@@ -1 +0,0 @@
1
- import{t as e}from"./build-Dt6UA4sF.mjs";export{e as default};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-TXBZCHCQ-l48TczF5.mjs";export{e as catCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-4GTNDTRF-_OVmXcJ-.mjs";export{e as chmodCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-LL3S3NLB-DxXgE3kY.mjs";export{e as clearCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-LWEGUNWT-BALY4RLC.mjs";export{e as column};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-Z7JVV2SM-BzR-yvwK.mjs";export{e as commCommand};
@@ -1,2 +0,0 @@
1
- import"./server-lock-BpjJj3OD-0F8DEGbQ.mjs";var e=`0.11.0-beta.4`;const t=`config.yml`,n=e;export{n,t};
2
- //# sourceMappingURL=constants-LiLVgWIu.mjs.map
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-NUYSJFDK-CU1FKadr.mjs";export{e as cpCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-SDNKECQQ-C3GEf3VZ.mjs";export{e as cutCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-D7MEQ3VN-Csvth_Ss.mjs";export{e as dateCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-TLSUDHID-DYvzalvd.mjs";export{e as diffCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-4Q4SM6WR-DDQRsilN.mjs";export{e as dirnameCommand};
@@ -1 +0,0 @@
1
- import{Gr as e,Tr as t,Yr as n,a as r,c as i,cn as a,d as o,f as s,g as c,h as l,i as u,in as d,l as f,m as p,n as m,o as h,p as g,q as _,r as v,s as y,t as b,u as x,wn as S,xn as C,zt as w}from"./server-lock-BpjJj3OD-0F8DEGbQ.mjs";import{$ as T,$n as E,$r as D,$t as O,A as k,Ai as A,An as j,Ar as M,At as N,B as P,Bn as F,Br as I,Bt as L,C as R,Ci as z,Cn as B,Cr as V,Ct as H,D as U,Di as W,Dn as G,Dr as K,Dt as q,E as J,Ei as Y,En as X,Er as Z,Et as Q,F as $,Fn as ee,Fr as te,Ft as ne,G as re,Gn as ie,Gr as ae,Gt as oe,H as se,Hn as ce,Hr as le,Ht as ue,I as de,In as fe,Ir as pe,It as me,J as he,Jn as ge,Jr as _e,Jt as ve,K as ye,Ki as be,Kn as xe,Kr as Se,Kt as Ce,L as we,Ln as Te,Lr as Ee,Lt as De,M as Oe,Mi as ke,Mn as Ae,Mr as je,Mt as Me,N as Ne,Ni as Pe,Nn as Fe,Nr as Ie,Nt as Le,O as Re,Oi as ze,On as Be,Or as Ve,Ot as He,P as Ue,Pi as We,Pn as Ge,Pr as Ke,Pt as qe,Q as Je,Qn as Ye,Qr as Xe,Qt as Ze,R as Qe,Rn as $e,Rr as et,Rt as tt,S as nt,Si as rt,Sn as it,Sr as at,St as ot,T as st,Ti as ct,Tn as lt,Tr as ut,Tt as dt,U as ft,Un as pt,Ur as mt,Ut as ht,V as gt,Vn as _t,Vr as vt,Vt as yt,W as bt,Wn as xt,Wr as St,Wt as Ct,X as wt,Xn as Tt,Xr as Et,Xt as Dt,Y as Ot,Yn as kt,Yr as At,Yt as jt,Z as Mt,Zn as Nt,Zr as Pt,Zt as Ft,_ as It,_i as Lt,_n as Rt,_r as zt,_t as Bt,a as Vt,ai as Ht,an as Ut,ar as Wt,at as Gt,b as Kt,bi as qt,bn as Jt,br as Yt,bt as Xt,c as Zt,ci as Qt,cn as $t,cr as en,ct as tn,d as nn,di as rn,dn as an,dr as on,dt as sn,ei as cn,en as ln,er as un,et as dn,f as fn,fi as pn,fn as mn,fr as hn,ft as gn,g as _n,gi as vn,gn as yn,gr as bn,gt as xn,h as Sn,hi as Cn,hn as wn,hr as Tn,ht as En,i as Dn,ii as On,in as kn,ir as An,it as jn,j as Mn,ji as Nn,jn as Pn,jr as Fn,jt as In,k as Ln,ki as Rn,kn as zn,kr as Bn,kt as Vn,l as Hn,li as Un,ln as Wn,lr as Gn,lt as Kn,m as qn,mi as Jn,mn as Yn,mr as Xn,mt as Zn,n as Qn,ni as $n,nn as er,nr as tr,nt as nr,o as rr,oi as ir,on as ar,or,ot as sr,p as cr,pi as lr,pn as ur,pr as dr,pt as fr,q as pr,qi as mr,qn as hr,qr as gr,qt as _r,r as vr,ri as yr,rn as br,rr as xr,rt as Sr,s as Cr,si as wr,sn as Tr,sr as Er,st as Dr,t as Or,ti as kr,tn as Ar,tr as jr,tt as Mr,u as Nr,ui as Pr,un as Fr,ur as Ir,ut as Lr,v as Rr,vi as zr,vn as Br,vr as Vr,vt as Hr,w as Ur,wi as Wr,wn as Gr,wr as Kr,wt as qr,x as Jr,xi as Yr,xn as Xr,xr as Zr,xt as Qr,y as $r,yi as ei,yn as ti,yr as ni,yt as ri,z as ii,zn as ai,zr as oi,zt as si}from"./dist-D0BxLviK.mjs";export{Or as AGENT_ID_MAX_LEN,Qn as AGENT_ID_RE,vr as AGENT_WRITE_ORIGIN,Dn as AgentFocusBroadcaster,Vt as AgentPresenceBroadcaster,rr as AgentSessionCapacityError,Cr as AgentSessionManager,Zt as BacklinkIndex,Hn as CC1Broadcaster,_ as CC1_CONTRACT_VERSION,Nr as CONFIG_FILENAME,nn as CONFLICT_MARKER_RE,fn as CURSOR_BUNDLE_PATHS_BY_PLATFORM,cr as ConfigSchema,qn as DEFAULT_CHECKPOINT_RETENTION,Sn as DEFAULT_EMBEDDINGS_DIMENSIONS,_n as DEFAULT_PACK_ID,It as EMBEDDINGS_API_KEY_ENV,Rr as FILE_SYSTEM_WRITER,$r as FILE_WATCHER_ORIGIN,Kt as FileEmbeddingsBackend,Jr as GIT_PREFLIGHT_FAIL_SPAN_NAME,nt as GIT_UPSTREAM_WRITER,be as GitDirAccessError,R as GitNotAvailableError,Ur as GitTooOldError,st as HOCUSPOCUS_AUTH_REJECTION_REASONS,J as HocuspocusAuthRejection,U as HocuspocusAuthTokenSchema,Re as INSTALLED_AGENTS_SCHEMES,w as LINEAGE_EPOCH_KEY,Ln as LIVE_DERIVED_INDEX_DEBOUNCE_MS,k as LOG_MD_TEMPLATE,Mn as MANAGED_RENAME_ORIGIN,Oe as MAX_AGENT_SESSIONS,Ne as MCP_CONNECTION_ID_HEADER,Ue as MCP_SERVER_NAME,$ as MIN_GIT_VERSION,de as MISSING_OK_CONFIG_MESSAGE,mr as MalformedGitPointerError,we as McpLogger,Qe as MissingOkConfigError,ii as OBSERVER_SYNC_ORIGIN,P as OK_OKIGNORE_TEMPLATE,d as ORPHAN_MODES,gt as PANE_TARGET_TTL_MS,a as PROTOCOL_VERSION,se as PinoLogger,b as ProcessLockCollisionError,ft as ProjectGitInitError,bt as ROLLBACK_ORIGIN,re as ROOT_GITIGNORE_TEMPLATE,m as RUNTIME_VERSION,ye as SERVICE_WRITER,pr as SKILL_INSTALL_EVENTS_FILE_REL,C as SKILL_STATE_TARGETS,he as STARTER_FOLDERS,Ot as STARTER_FOLDER_FRONTMATTER_FILENAME,wt as STARTER_PACKS,Mt as STARTER_PACK_IDS,Je as STARTER_TEMPLATES,T as STATE_MANIFEST_FILENAME,v as STATE_SCHEMA_VERSION,S as SYSTEM_DOC_NAME,dn as SeedPrerequisiteError,Mr as SeedRootDirError,u as ServerLockCollisionError,nr as SingleFileNotAFileError,Sr as SingleFileNotFoundError,jn as SingleFileNotMarkdownError,Gt as StateManifestError,sr as TagIndex,Dr as UiLockCollisionError,tn as __getShowAllWalkStatsForTesting,Kn as __resetShowAllWalkStatsForTesting,r as acquireProcessLock,h as acquireServerLock,Lr as acquireUiLock,sn as applyAgentMarkdownWrite,gn as applyExternalChange,fr as applySeed,Zn as armPaneTarget,En as assertCompatibleStateManifest,xn as assertGitAvailable,Bt as assertNeverDiskEvent,Hr as attachIdleShutdown,ri as bootServer,Xt as buildAndOpenSkill,Qr as buildConfigYmlContent,ot as buildExecResult,H as buildInstructions,qr as buildSkillZip,dt as buildStarterFolderFrontmatterYaml,Q as buildWipTree,q as classifyEvents,He as classifyFsPath,Vn as clearArmedPaneTarget,N as clearContributors,In as clearEmbeddingsKeyFromAllBackends,Me as coercePackId,t as colorFromSeed,Le as commitUpstreamImport,qe as commitWip,ne as commitWipFromTree,me as compareSemver,De as containsConflictMarkers,tt as contentHash,si as contributorCount,L as createApiExtension,yt as createAssetServeMiddleware,ue as createContentFilter,ht as createContentFilterAsync,Ct as createEmbeddingsSecretStore,oe as createEphemeralProjectDir,Ce as createExternalChangeHandler,_r as createFileLogger,ve as createLiveDerivedIndexExtension,jt as createMcpHttpHandler,Dt as createOsProbe,Ft as createPersistenceExtension,Ze as createServer,O as createServerObserverExtension,ln as createStreamingErrorWriter,Ar as createTestLogger,er as describeStoredEmbeddingsKey,br as detectClaudeDesktopPresence,kn as detectGit,Ut as detectProjectShape,ar as emitPreflightFailureSpan,Tr as encodeDocName,$t as encodeFolderRoute,Wn as ensureProjectGit,Fr as errorResponse,an as evictStaleTrackerEntries,mn as extractWikiLinksFromMarkdown,ur as fallbackPaths,Yn as findEnclosingGitRoot,wn as findEnclosingProjectRoot,yn as formatAuthRejectionWire,Rt as formatContributors,Br as formatContributorsFrom,ti as gcCheckpointRefs,Jt as getCurrentMcpLogger,Xr as getLocalDir,it as getLogFilePath,B as getLogger,Gr as getLogsDir,lt as getMeter,X as getMetrics,G as getTracer,Be as handleCollabSocketError,zn as handleSpawnCursor,e as iconFromClientName,j as incrementCollabSocketFilteredError,Pn as incrementServerObserverFire,Ae as initContent,Fe as initShadowRepo,Ge as initTelemetry,ee as installPrettyZodErrors,fe as installTestLoggers,Te as installUserSkill,$e as isAllowedApiOrigin,ai as isAllowedWorkspaceHostHeader,F as isConfigDoc,_t as isHocuspocusAuthRejectionReason,ce as isKnownPackId,pt as isLoopbackAddress,n as isOrphanMode,xt as isPairedWriteOrigin,ie as isPathWithinDir,y as isProcessAlive,xe as isProjectRoot,hr as isSelfWrite,ge as isSystemDoc,i as isValidLockPid,kt as lastKnownHash,Tt as listRescueCheckpoints,Nt as listStarterPacks,Ye as loadPrincipal,f as lockFilePath,E as loggerFactory,un as logsCurrentPath,jr as logsPreviousPath,tr as makeLazyEmbeddingsKeyStore,xr as mountMcpAndApi,An as normalizeFsPath,Wt as packageVersionMajorMinor,or as parseAuthRejectionWire,Er as parseGitVersion,en as parseHocuspocusAuthToken,Gn as parseKeepaliveConnectionId,Ir as pathToDocName,on as planSeed,hn as prepareSingleFileOpen,dr as readAllTargets,Xn as readArmedPaneTarget,Tn as readBranchFromHead,x as readProcessLock,o as readProcessLockDetailed,bn as readProjectLocalSemanticConfig,s as readServerLock,zt as readServerPackageVersion,Vr as readSkillInstallStateSnapshot,ni as readStateManifest,Yt as readTargetRecordedAt,Zr as readTargetVersion,at as readUiLock,V as reconcile,Kr as recordContributor,ut as recordSkillInstallEvent,Z as registerAllTools,K as registerWrite,g as releaseProcessLock,p as releaseServerLock,Ve as releaseUiLock,Bn as removeLastKnownHash,M as resetMetrics,Fn as resolveBundledSkillDir,je as resolveContentDir,Ie as resolveCursorBinaryDefault,Ke as resolveCursorSpawnInvocation,te as resolveLockDir,pe as resolvePack,Ee as resolvePackageVersion,et as resolveUiInfo,oi as restoreContributors,I as restoreLifecycleFromConflictsJson,vt as rewriteMarkdownLinksForDocumentRename,le as rewriteWikiLinksForDocumentRename,mt as runAuthReposSubprocess,St as runAuthStatusSubprocess,ae as runCloneSubprocess,Se as runDeviceFlowSubprocess,gr as runWithMcpLogger,_e as safeContentPath,At as safeSubdir,Et as safetyCheckpoint,Pt as sanitizeClientName,Xe as saveInMemoryCheckpoint,D as saveVersion,cn as seedBasenameIndex,kr as serializeError,$n as setActiveSpanAttributes,yr as shadowGit,On as shutdownTelemetry,Ht as spansCurrentPath,ir as spansPreviousPath,wr as spawnDetached,Qt as splitMarkdownBlocks,Un as startWatcher,Pr as streamingProblemEvent,rn as swapContributors,pn as toBroadcasterKey,lr as tracedAppendFileSync,Jn as tracedLinkSync,Cn as tracedMkdir,vn as tracedMkdirSync,Lt as tracedRename,zr as tracedRenameSync,ei as tracedRmSync,qt as tracedRmdirSync,Yr as tracedUnlinkSync,rt as tracedWriteFile,z as tracedWriteFileSync,Wr as updateLastKnownHash,l as updateProcessLockPort,c as updateServerLockPort,ct as updateUiLockPort,Y as validateAgentId,W as validateCloneInputs,ze as validateSkillZip,Rn as withSpan,A as withSpanSync,Nn as writeRootGitignoreForNewRepo,ke as writeStateManifest,Pe as writeTargetVersion,We as writeTracker};
@@ -1 +0,0 @@
1
- import{t as e}from"./dist-bundle-BK4P1EQn.mjs";export{e as request};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-RPNGRAAP-BughPjdR.mjs";export{e as duCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GCTKCWKD-Deqi1D_N.mjs";export{e as echoCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-NAERJDUW-CYdostkt.mjs";export{e as envCommand,t as printenvCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-VJFXDYWH-IiUXkKX0.mjs";export{e as expand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import{w as e}from"./chunk-FEIOJCZD-C25Und0M.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";export{e as isArray};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-YFG2CMIF-DYVCRkoM.mjs";export{e as exprCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-CR5AFCPT-BWXo8X-o.mjs";export{e as fileCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-J642UCRS-DuJ82Ao2.mjs";import{n as e}from"./chunk-LPQPILI2-CfDX1Tyv.mjs";export{e as findCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-D4J545R4-C8nMOauR.mjs";export{e as fold};
@@ -1,3 +0,0 @@
1
- import{Ca as e}from"./server-lock-BpjJj3OD-0F8DEGbQ.mjs";import{execFileSync as t}from"node:child_process";import{existsSync as n,mkdirSync as r,readFileSync as i,writeFileSync as a}from"node:fs";import{dirname as o,join as s}from"node:path";import{homedir as c}from"node:os";var l=e();const u=`open-knowledge`;var d=class{backend=`keyring`;async get(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{let n=new t(u,e).getPassword();return n==null?null:JSON.parse(n)}catch{return null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(u,e),o={login:t,token:n,...r};a.setPassword(JSON.stringify(o))}async clear(e){let{Entry:t}=await import(`@napi-rs/keyring`);try{new t(u,e).deletePassword()}catch{}}},f=class{backend=`file`;authFile;constructor(e){this.authFile=e??s(c(),`.ok`,`auth.yml`)}read(){if(!n(this.authFile))return{};try{return(0,l.parse)(i(this.authFile,`utf-8`))??{}}catch(e){let t=e instanceof Error?e.message:`unknown error`;return process.stderr.write(`[auth] Failed to parse ${this.authFile}: ${t}. Starting with empty credentials.\n`),{}}}write(e){let t=o(this.authFile);n(t)||r(t,{recursive:!0,mode:448}),a(this.authFile,(0,l.stringify)(e),{mode:384})}async get(e){return this.read()[e]??null}async set(e,t,n,r){let i=this.read();i[e]={login:t,token:n,...r},this.write(i)}async clear(e){let t=this.read();delete t[e],this.write(t)}},p=class{backend=`keyring`;constructor(e,t){this.keychain=e,this.file=t}async get(e){let t=await this.keychain.get(e);if(t!=null)return t;let n=await this.file.get(e);if(n==null)return null;try{await this.keychain.set(e,n.login,n.token,{gitProtocol:n.gitProtocol,name:n.name,email:n.email}),await this.file.clear(e),process.stderr.write(`[auth] migrated ${e} credential from ~/.ok/auth.yml to the OS keychain\n`)}catch{}return n}set(e,t,n,r){return this.keychain.set(e,t,n,r)}async clear(e){await this.keychain.clear(e),await this.file.get(e)!=null&&await this.file.clear(e)}};async function m(e){try{let{Entry:t}=await import(`@napi-rs/keyring`);return new t(u,`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
- `),new p(new d,new f(e))}catch(t){let n=t instanceof Error?`${t.name}: ${t.message}`:String(t);return process.stderr.write(`[auth] token storage: file (~/.ok/auth.yml) — OS keychain unavailable: ${n}\n`),new f(e)}}function h(e){let t=null;return function(){if(t)return t;let n=2e3;return t=(async()=>{let t=null,r=new Promise(r=>{t=setTimeout(()=>{process.stderr.write(`[auth] token storage: keyring init exceeded ${n}ms; falling back to file (~/.ok/auth.yml)\n`),r(new f(e))},n)});try{return await Promise.race([m(e),r])}catch{return new f(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function g(e){let t=h(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token}}}}function _(e){let t=h(e);return{backend:`file`,async get(e){return(await t()).get(e)},async set(e,n,r,i){return(await t()).set(e,n,r,i)},async clear(e){return(await t()).clear(e)}}}async function v(e,t){let n=[],r=new f(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(u,`__probe__`);let r=new d;await r.get(e)!=null&&(await r.clear(e),n.push(`keychain`))}catch{}return{touched:n}}const y=[`/opt/homebrew/bin/gh`,`/usr/local/bin/gh`,`/opt/local/bin/gh`,`/snap/bin/gh`,`/usr/bin/gh`];function b(e,r={}){let i=r._exec??t,a=r._fileExists??n,o=[`auth`,`token`,...e?[`--hostname`,e]:[]],s=[`gh`,...y.filter(a)];for(let e of s)try{let t=i(e,o,{encoding:`utf-8`,stdio:[`ignore`,`pipe`,`pipe`],timeout:5e3}).toString().trim();if(t.length>0)return{available:!0,token:t}}catch{}return{available:!1}}export{_ as a,g as i,v as n,m as r,b as t};
3
- //# sourceMappingURL=gh-detect-DjyibUoa.mjs.map
@@ -1 +0,0 @@
1
- import{t as e}from"./git-handle-BSAUg1L_-Bn2h-fYS.mjs";export{e as createGitInstance};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-J642UCRS-DuJ82Ao2.mjs";import"./chunk-VLGZJRPG-ChVasMna.mjs";import{i as e,r as t,t as n}from"./chunk-YS3AZT3J-DqU1hDNV.mjs";export{t as egrepCommand,n as fgrepCommand,e as grepCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{a as e,r as t,t as n}from"./chunk-LTZRCH7N-GAjTFNwG.mjs";export{t as gunzipCommand,n as gzipCommand,e as zcatCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-64BAICW3-CTJNEx4Q.mjs";export{e as headCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-MLXIYONF-dOe6Iqcc.mjs";export{e as helpCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-NCNPKYJZ-BFGan4lR.mjs";export{e as historyCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-4HHKTUW3-Dm69hDaZ.mjs";export{e as hostname};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-MDLLFABN-oBQf6bGE.mjs";export{e as htmlToMarkdownCommand};
@@ -1 +0,0 @@
1
- import{m as e}from"./init-DRfbG7u0.mjs";export{e as runInit};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-A7ICOL4V-Drb3XsEL.mjs";export{e as join};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DHx5dxhT.mjs";import{t as e}from"./chunk-YCFVLTST-uJkMN44i.mjs";export{e as jqCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PBXLG62G-CU755yEQ.mjs";export{e as lnCommand};
@@ -1 +0,0 @@
1
- import{n as e}from"./loader-Dr74NhT-.mjs";export{e as loadConfig};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-V7TAPXDL-CnKUp2df.mjs";export{e as lsCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-APT7OOP2-CXHnSuct.mjs";export{e as md5sumCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-MDDMCKUK-BrBgeH_z.mjs";export{e as mkdirCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A4JSPFCI-v5lUtffG.mjs";export{e as mvCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-F23WWYKW-DST0dB7V.mjs";export{e as nl};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-PP6PSHAB-DMC_XCfO.mjs";export{e as od};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-JVPRLUMK-DnQCNjpq.mjs";export{e as pasteCommand};
@@ -1 +0,0 @@
1
- import{n as e,t}from"./preview-WlY5Fo0D.mjs";export{t as formatPreviewBlock,e as previewContent};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-T56QNPHK-Dzjonwlk.mjs";export{e as printfCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-A4HU7SVR-hefV_YmW.mjs";export{e as pwdCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-HJWBQKYG-UZig4wUt.mjs";export{e as readlinkCommand};
@@ -1 +0,0 @@
1
- import{t as e}from"./repair-skills-DYNSfoYx.mjs";export{e as repairSkills};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-QCDB2VPH-D1RuXtOm.mjs";export{e as rev};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-VLGZJRPG-ChVasMna.mjs";import{t as e}from"./chunk-NYQYO467-DUxnOnNG.mjs";export{e as rgCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MIZPJHVH-D3ET6RI_.mjs";export{e as rmCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-OCS6LSEM-y5pQiBQp.mjs";export{e as rmdirCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{t as e}from"./chunk-OL3S66CO-DjFShiWt.mjs";export{e as sedCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A7A2DBEE-PLfkXLI4.mjs";export{e as seqCommand};
@@ -1 +0,0 @@
1
- import{g as e}from"./server-lock-BpjJj3OD-0F8DEGbQ.mjs";export{e as updateServerLockPort};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-XKQRETAK-cVWA9gEB.mjs";export{e as sha1sumCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5V6VZH6T-BCr5_GDF.mjs";export{e as sha256sumCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{n as e}from"./chunk-GOV5EKKI-i-yw_7Ty.mjs";export{e as sleepCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-KMEYNNUA-DfdK88O_.mjs";export{e as sortCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MYE6AGBJ-B4pRo9ma.mjs";export{e as split};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import{t as e}from"./chunk-HWBSOZZR-Bw5kf-cE.mjs";export{e as sqlite3Command};
@@ -1 +0,0 @@
1
- import{_ as e,f as t,r as n}from"./start-C2GdC0f6.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-5QVNJEHU-BvsipSFW.mjs";export{e as statCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-VYOJP4TV-BvibOnKG.mjs";export{e as strings};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-MHTUABJP-dKmK6Hw7.mjs";export{e as tac};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-DCAAORBQ-BdrR5ttw.mjs";export{e as tailCommand};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import{n as e}from"./chunk-BRGMQKJV-CD9YvPOS.mjs";export{e as tarCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-55VFSPNA-DVZfQAzN.mjs";export{e as teeCommand};
@@ -1 +0,0 @@
1
- import"./chunk-CWQS3NFK-Co4ALolT.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-Z6LRHWXI-CEAGkbzj.mjs";export{e as timeCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-A5O5YHGN-DvJz5Cpw.mjs";import{n as e}from"./chunk-YTNYSM6T-ChSQxUVG.mjs";export{e as timeoutCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-OCLXQMOG-LAs82g00.mjs";export{e as touchCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-62RKD26F-CBIDfuTL.mjs";export{e as trCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-XVDPCNWR-CtK-Xs2O.mjs";export{e as treeCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{i as e,t}from"./chunk-R6QSAL5T-CtbJTvt9.mjs";export{e as falseCommand,t as trueCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-PYSFUGCK-CY7pclEB.mjs";export{e as unexpand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-WKFATFPP-DCZdrA8x.mjs";export{e as uniqCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-GXVXFKBA-993FoPmq.mjs";export{e as wcCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-A65PWWJC-D7J5l9eq.mjs";export{e as whichCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{t as e}from"./chunk-HJQJAYMS-Ci3vsKQW.mjs";export{e as whoami};
@@ -1 +0,0 @@
1
- import"./chunk-YNYSPYQ5-DesxOVHh.mjs";import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-5QMZ5MUS-CAp625aG.mjs";import"./chunk-24IMIIXA-B6yIPkk2.mjs";import"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import"./chunk-7TSDKFEO-a-GUGBTu.mjs";import"./chunk-BBXLRYSX-DHx5dxhT.mjs";import"./chunk-F55TLFGB-oTuag-aK.mjs";import{n as e}from"./chunk-UNYNJIFU-B6KF1Gqq.mjs";export{e as xanCommand};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import"./chunk-SYMJJMQ4-tl6Dz6VW.mjs";import{c as e}from"./chunk-F55TLFGB-oTuag-aK.mjs";export{e as cmdView};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DIKSLkPq.mjs";import{n as e}from"./chunk-TOMNU26N-DYqwg_75.mjs";export{e as xargsCommand};
@@ -1 +0,0 @@
1
- import{t as e}from"./yazl-DjRp4wSy.mjs";export default e();export{};