@inkeep/open-knowledge 0.88.6-beta.4 → 0.88.6-beta.5

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 (203) hide show
  1. package/dist/alias-JE7RI5QX-D_KITrCa.mjs +1 -0
  2. package/dist/awk2-BBAGSFUB-CehlsFZ5.mjs +1 -0
  3. package/dist/bash-IJWYRKFO-D1gJZuWH.mjs +1 -0
  4. package/dist/chokidar-D0G-K3zc.mjs +3 -0
  5. package/dist/{chunk-3BS5SKQH-C9C8uLJE.mjs → chunk-3BS5SKQH-CKmQMz_L.mjs} +15 -15
  6. package/dist/{chunk-62RKD26F-Bv6peUyf.mjs → chunk-62RKD26F-B6OssxCM.mjs} +3 -3
  7. package/dist/{chunk-6Z5SFZXK-CiQN8zZ8.mjs → chunk-6Z5SFZXK-D2_6X1Dn.mjs} +35 -35
  8. package/dist/chunk-A4JSPFCI-DQxLkrTb.mjs +6 -0
  9. package/dist/chunk-D6CWQ5DW-BybImdUI.mjs +5 -0
  10. package/dist/chunk-GOV5EKKI-D42P07Xu.mjs +9 -0
  11. package/dist/{chunk-HKLCLINH-BHo2f5d2.mjs → chunk-HKLCLINH-C2rvDMlW.mjs} +20 -20
  12. package/dist/{chunk-HL6NGDO2-BFPiiJBP.mjs → chunk-HL6NGDO2-CvsVMff5.mjs} +9 -9
  13. package/dist/{chunk-I57KEIP3-C90kULU7.mjs → chunk-I57KEIP3-BrnLL4Gl.mjs} +4 -4
  14. package/dist/{chunk-K6LIBGJA-D-bMYdgr.mjs → chunk-K6LIBGJA-CN_13h4C.mjs} +7 -7
  15. package/dist/{chunk-KRBPSX3W-DXuvylLd.mjs → chunk-KRBPSX3W-CY8FCKFm.mjs} +2 -2
  16. package/dist/chunk-MDDMCKUK-ByCsPSNd.mjs +6 -0
  17. package/dist/chunk-MIZPJHVH-DrIwZ3F_.mjs +7 -0
  18. package/dist/chunk-NAERJDUW-nfjIZ3Pb.mjs +8 -0
  19. package/dist/chunk-NUYSJFDK-M0xrw_uS.mjs +7 -0
  20. package/dist/chunk-OCLXQMOG-DHLmxiVS.mjs +6 -0
  21. package/dist/{chunk-OCS6LSEM-BBT5tk28.mjs → chunk-OCS6LSEM-CUgQNrT_.mjs} +7 -7
  22. package/dist/{chunk-PBXLG62G-G7lHqZ9p.mjs → chunk-PBXLG62G-CuixUdAo.mjs} +3 -3
  23. package/dist/{chunk-T56QNPHK-BuLSSwpV.mjs → chunk-T56QNPHK-BhobE-0w.mjs} +3 -3
  24. package/dist/chunk-TLSUDHID-BpXt2GFu.mjs +6 -0
  25. package/dist/{chunk-TOMNU26N-CPb3jib2.mjs → chunk-TOMNU26N-Bhlbw7_h.mjs} +3 -3
  26. package/dist/{chunk-TP4BZANS-BKDDD1i2.mjs → chunk-TP4BZANS-Dv2qAxWh.mjs} +12 -12
  27. package/dist/{chunk-XKWWSDBF-CiyukTrj.mjs → chunk-XKWWSDBF-COm-Bab0.mjs} +10 -10
  28. package/dist/{chunk-YMMW5UAP-B7swMNER.mjs → chunk-YMMW5UAP-CTA9rr10.mjs} +7 -7
  29. package/dist/chunk-YTNYSM6T-gRMum0pq.mjs +11 -0
  30. package/dist/{chunk-YULBWSET-BjwIKz2I.mjs → chunk-YULBWSET-BZbeBpnM.mjs} +6 -6
  31. package/dist/{chunk-Z6LRHWXI-B5pNb54L.mjs → chunk-Z6LRHWXI-BE3EMa92.mjs} +5 -5
  32. package/dist/{chunk-ZZO3UDB3-Dr2Q2MNF.mjs → chunk-ZZO3UDB3-C92Poglu.mjs} +32 -32
  33. package/dist/cli-DtqA8k1H.mjs +110 -0
  34. package/dist/cli.mjs +1 -110
  35. package/dist/constants-D-73L_8T.mjs +1 -0
  36. package/dist/constants-ok-dir-DZ25OS9-.mjs +115 -0
  37. package/dist/{cp-XOYR4ABJ-BWvobbqd.mjs → cp-XOYR4ABJ-KRhRq3W9.mjs} +1 -1
  38. package/dist/{curl-47BFPSFW-CjxwhFSt.mjs → curl-47BFPSFW-D1cYHIfa.mjs} +8 -8
  39. package/dist/{diff-HJF2MPDN-B5Vu5bd_.mjs → diff-HJF2MPDN-CLb1d3Pm.mjs} +1 -1
  40. package/dist/dist-D4ipyg1q.mjs +1 -0
  41. package/dist/{dist-DIwQtyEF.mjs → dist-DPe6aLSk.mjs} +518 -522
  42. package/dist/env-5EPCWSXR-B6cYhau7.mjs +1 -0
  43. package/dist/expansion-VBDYWVZR-vhATs2YP.mjs +1 -0
  44. package/dist/expr-YYCVMXE3-BG-gQLPe.mjs +1 -0
  45. package/dist/{file-IGDTDPLG-CRy1Omyh.mjs → file-IGDTDPLG-CqcQiax7.mjs} +1 -1
  46. package/dist/find-DH2ALKQS-DUCbwSBg.mjs +1 -0
  47. package/dist/flag-coverage-6JEX67RU-BgXRRqNM.mjs +1 -0
  48. package/dist/fs-find-project-root-BYV07wjn.mjs +5 -0
  49. package/dist/git-credential-get-BOA4DNNp.mjs +2 -0
  50. package/dist/git-credential-helper-DY8W25nc.mjs +1 -0
  51. package/dist/git-credential-operation-9lLcCrJB.mjs +1 -0
  52. package/dist/grep-2HUTXO5U-CbvcQZdY.mjs +1 -0
  53. package/dist/index.mjs +302 -302
  54. package/dist/{init-DrtyRwCd.mjs → init-C08CTCp9.mjs} +28 -28
  55. package/dist/init-CSYVvJYZ.mjs +1 -0
  56. package/dist/jq-LYZFFBZB-DP4gih1P.mjs +1 -0
  57. package/dist/{js-exec-VXN6TZ7U-Z8_USGOo.mjs → js-exec-VXN6TZ7U-B4rL1N_3.mjs} +4 -4
  58. package/dist/{js-exec-VXN6TZ7U-D--44jnh.mjs → js-exec-VXN6TZ7U-CByMmXZz.mjs} +8 -8
  59. package/dist/launch-json-removal-B39BoBBe.mjs +1 -0
  60. package/dist/{lib-CxwDRGVJ.mjs → lib-CGyiYSWt.mjs} +15 -15
  61. package/dist/{ln-4TRFBYAT-xkfE7-89.mjs → ln-4TRFBYAT-RK1Uvly1.mjs} +1 -1
  62. package/dist/loader-D4dq2xfA.mjs +1 -0
  63. package/dist/loader-DeOCcx0c.mjs +1 -0
  64. package/dist/{lzma-CEMDJHEs.mjs → lzma-B6QS2aZK.mjs} +2 -2
  65. package/dist/{lzma-PPHiE419.mjs → lzma-VPfz3anC.mjs} +1 -1
  66. package/dist/md-manager-BGnqyqi1-DmEmjhMs.mjs +400 -0
  67. package/dist/{mkdir-TDEMSB6C-DKSMdaAE.mjs → mkdir-TDEMSB6C-Ds9y3YxN.mjs} +1 -1
  68. package/dist/{mv-Z6MORUFL-C-C4Dr_j.mjs → mv-Z6MORUFL-C9ixK1Sz.mjs} +1 -1
  69. package/dist/{open-browser-1Rfqcka0.mjs → open-browser-d8GjenQK.mjs} +1 -1
  70. package/dist/parse-worker.mjs +1 -1
  71. package/dist/preview-BD9T555q.mjs +1 -0
  72. package/dist/preview-BOmvdi0o.mjs +2 -0
  73. package/dist/printf-CX64KX2P-DlBDp9me.mjs +1 -0
  74. package/dist/public/assets/{AccountSection-CvEQFMeu.js → AccountSection-UK4fSEAo.js} +1 -1
  75. package/dist/public/assets/{ActivityModeContent-CXZShFfa.js → ActivityModeContent-CD3FGIx9.js} +1 -1
  76. package/dist/public/assets/{AddPropertiesButton-fzqN8jo0.js → AddPropertiesButton-B6p_gdr8.js} +1 -1
  77. package/dist/public/assets/{AgentDiffPane-DpPw6Vrx.js → AgentDiffPane-DkoQ7ai2.js} +1 -1
  78. package/dist/public/assets/{AttachmentsSection-CM625TNw.js → AttachmentsSection-B4oQIzeZ.js} +1 -1
  79. package/dist/public/assets/{CodeMirrorPropInput-DhTOQHoT.js → CodeMirrorPropInput-B9s5B9Bw.js} +1 -1
  80. package/dist/public/assets/{ContentRulesSection-CmbLyKpr.js → ContentRulesSection-aWJrYA4j.js} +1 -1
  81. package/dist/public/assets/{DocumentContext-BV1YTd2j.js → DocumentContext-DXpWi5ky.js} +1 -1
  82. package/dist/public/assets/{EditorModeToggle-DpLjVkbn.js → EditorModeToggle-Diya7MyF.js} +1 -1
  83. package/dist/public/assets/{ExcalidrawDocEditor-B8pXWkF3.js → ExcalidrawDocEditor-PRwr0WYf.js} +1 -1
  84. package/dist/public/assets/FeedbackForm-Cvqd9EXq.js +1 -0
  85. package/dist/public/assets/{ImportSkillDialog-BhxfW92X.js → ImportSkillDialog-CMk2xlCO.js} +1 -1
  86. package/dist/public/assets/{LinkPreviewsSection-CQbnzKbR.js → LinkPreviewsSection-KX_4h53c.js} +1 -1
  87. package/dist/public/assets/{LintConfigEditor-Cjpsh9rK.js → LintConfigEditor-7ZtCVw7Y.js} +1 -1
  88. package/dist/public/assets/{LintingSection-C1YnkUp9.js → LintingSection-ClAY_FjD.js} +1 -1
  89. package/dist/public/assets/ManagedArtifactProperties-C6A9h_XM.js +1 -0
  90. package/dist/public/assets/{ManagedArtifactProperties-Be_X7jvo.js → ManagedArtifactProperties-lEwwds9N.js} +1 -1
  91. package/dist/public/assets/{MermaidDocEditor-C4ZqQjrP.js → MermaidDocEditor-DHUtun4r.js} +1 -1
  92. package/dist/public/assets/{NetworkAccessSection-BBlBPreP.js → NetworkAccessSection-CkW30CIT.js} +1 -1
  93. package/dist/public/assets/{PropertyDisplayRow-Dug4mXDY.js → PropertyDisplayRow-D6c0dfSa.js} +1 -1
  94. package/dist/public/assets/{PublishToGitHubDialog-CTJhJVAo.js → PublishToGitHubDialog-CwF7zH2X.js} +1 -1
  95. package/dist/public/assets/{SchemaConfigEditor-BudGex9d.js → SchemaConfigEditor-BEJxtFtu.js} +1 -1
  96. package/dist/public/assets/{SearchSection-DoHDN8qv.js → SearchSection-CDyx2C9f.js} +1 -1
  97. package/dist/public/assets/{SessionsHost-hU0XdNe1.js → SessionsHost-H5NLeN9a.js} +2 -2
  98. package/dist/public/assets/{SettingsDialogBody-oVGZPfLs.js → SettingsDialogBody-C_YjecBu.js} +2 -2
  99. package/dist/public/assets/{ShareReceiveMissDialog-Cv1nXUjE.js → ShareReceiveMissDialog-D_FkOpht.js} +1 -1
  100. package/dist/public/assets/{SkillToolbarControls-Cmmd5rQT.js → SkillToolbarControls-CtxNLAp-.js} +1 -1
  101. package/dist/public/assets/{SourceEditor-BxGAh_1V.js → SourceEditor-B5LnWxyf.js} +1 -1
  102. package/dist/public/assets/{SyncSection-Bow4_eTH.js → SyncSection-D3PTVWIM.js} +1 -1
  103. package/dist/public/assets/{SyncStatusBadge-RstDs12m.js → SyncStatusBadge-BaJrZaL1.js} +1 -1
  104. package/dist/public/assets/{TerminalSection-CShVO8cy.js → TerminalSection-CsRkbMx2.js} +1 -1
  105. package/dist/public/assets/{TerminalWindowApp-QKtwgUJg.js → TerminalWindowApp-CA9GKqNE.js} +1 -1
  106. package/dist/public/assets/{TextDocEditor-CXd6guUM.js → TextDocEditor-Ch27GvYs.js} +1 -1
  107. package/dist/public/assets/{ThreadView-B1_dybM1.js → ThreadView-Dj6jQfOU.js} +1 -1
  108. package/dist/public/assets/{TimelineDiffPane-kMqLqGsp.js → TimelineDiffPane-4gPranZj.js} +1 -1
  109. package/dist/public/assets/{client-version-C9gO0ViI.js → client-version-B_xA5Zs6.js} +1 -1
  110. package/dist/public/assets/{comment-chips-CrIr3pI7.js → comment-chips-nSpyi8g5.js} +1 -1
  111. package/dist/public/assets/{config-provider-B6XrR1oF.js → config-provider-CNRgcd7O.js} +1 -1
  112. package/dist/public/assets/{doc-undo-manager-5pEmL4Md.js → doc-undo-manager-mWX4_oGV.js} +1 -1
  113. package/dist/public/assets/{index-B_LvEM9a.js → index-DvFhVjVJ.js} +7 -7
  114. package/dist/public/assets/{lint-plugins-DjYwHU6Y.js → lint-plugins-DAx86XSh.js} +1 -1
  115. package/dist/public/assets/{pending-receive-nav-store-z_w0V1XK.js → pending-receive-nav-store-hbWxGWbG.js} +1 -1
  116. package/dist/public/assets/{preferred-session-events-CnyBH-J0.js → preferred-session-events-CD3TX4uI.js} +1 -1
  117. package/dist/public/assets/{progress-CaJJRh70.js → progress-Bp-8Nd7B.js} +1 -1
  118. package/dist/public/assets/{selection-context-rkLAW0dO.js → selection-context-C7DBYtd4.js} +1 -1
  119. package/dist/public/assets/{src-BHmw898V.js → src-Bd4ITI6l.js} +1 -1
  120. package/dist/public/assets/{telemetry-impl-DMjnHwnz.js → telemetry-impl-D34TS_t5.js} +1 -1
  121. package/dist/public/assets/{telemetry-startup-Dp5luYdb.js → telemetry-startup-S6YVb_-D.js} +1 -1
  122. package/dist/public/assets/{typing-burst-detector-CZm4MWxf.js → typing-burst-detector-BPhBcJhO.js} +1 -1
  123. package/dist/public/assets/{use-activity-panel-jNpqo2Qu.js → use-activity-panel-DAiQAul-.js} +1 -1
  124. package/dist/public/assets/{use-open-skill-CAlUFWAX.js → use-open-skill-BiGTEBAG.js} +1 -1
  125. package/dist/public/assets/{use-terminal-enabled-2ee2nusY.js → use-terminal-enabled-BPFt3ZjV.js} +1 -1
  126. package/dist/public/assets/{use-timeline-entry-diff-BFUF2Y2y.js → use-timeline-entry-diff-DI6wb0mp.js} +1 -1
  127. package/dist/public/index.html +19 -19
  128. package/dist/python3-DNGS4G3E-BgcDJ4cm.mjs +11 -0
  129. package/dist/{python3-DNGS4G3E-CixyRGKv.mjs → python3-DNGS4G3E-Cm5Hwa-u.mjs} +3 -3
  130. package/dist/registry-probes-CQ5QHLWA.mjs +16 -0
  131. package/dist/{removal-file-path-El1_tQoY.mjs → removal-file-path-DhnfL9uo.mjs} +1 -1
  132. package/dist/{repair-launch-json-CUEk_b1D.mjs → repair-launch-json-D4tGRImu.mjs} +1 -1
  133. package/dist/{repair-mcp-configs-D7S2EP20.mjs → repair-mcp-configs-CkXUYNJq.mjs} +1 -1
  134. package/dist/rg-XNF3R3II-BCapXTDd.mjs +1 -0
  135. package/dist/{rm-RTZG23RL-CVxZCS0d.mjs → rm-RTZG23RL-pdC15ghA.mjs} +1 -1
  136. package/dist/{rmdir-XTQXT7RK-DnFOfz6J.mjs → rmdir-XTQXT7RK-DcllfdyA.mjs} +1 -1
  137. package/dist/sed-JAPPVBEU-BogTEm4c.mjs +1 -0
  138. package/dist/{sleep-VZFPZFWA-C-QGmlTD.mjs → sleep-VZFPZFWA-Z-cEwS7i.mjs} +1 -1
  139. package/dist/sqlite3-TE5AIOTF-DqoN8a9C.mjs +1 -0
  140. package/dist/{sqlite3-TE5AIOTF-DVwda1Ow.mjs → sqlite3-TE5AIOTF-DxxxT49W.mjs} +3 -3
  141. package/dist/src-DxORHPwx.mjs +1 -0
  142. package/dist/src-uYPRavFi.mjs +16 -0
  143. package/dist/start-BVplvpm0.mjs +5 -0
  144. package/dist/start-Dp7OVBDP.mjs +1 -0
  145. package/dist/tar-MZQD7NO4-DEw7Py1-.mjs +1 -0
  146. package/dist/{tar-MZQD7NO4-BRGDcHqv.mjs → tar-MZQD7NO4-ljX84Spn.mjs} +2 -2
  147. package/dist/time-DEUO3QV2-BdkhaszE.mjs +1 -0
  148. package/dist/{timeout-VRKMCG72-Bn-zPLw8.mjs → timeout-VRKMCG72-BJshiKR9.mjs} +1 -1
  149. package/dist/token-store-Bmb3_0hU.mjs +2 -0
  150. package/dist/touch-DX2IJOQ4-DQk2E3PA.mjs +1 -0
  151. package/dist/{tr-2HXZRDSW-D6nqhlWa.mjs → tr-2HXZRDSW-B9XzLO_W.mjs} +1 -1
  152. package/dist/xan-UD7JYIL2-B0nl-bKu.mjs +1 -0
  153. package/dist/xargs-I6EZUCYF-DyMYQH4H.mjs +1 -0
  154. package/dist/yq-OAKYHSXH-BuWuWli6.mjs +1 -0
  155. package/package.json +4 -4
  156. package/dist/alias-JE7RI5QX-DJCUhA0w.mjs +0 -1
  157. package/dist/awk2-BBAGSFUB-e61UM1Y8.mjs +0 -1
  158. package/dist/bash-IJWYRKFO-L9NsSg-G.mjs +0 -1
  159. package/dist/chokidar-BXdru135.mjs +0 -3
  160. package/dist/chunk-A4JSPFCI-Ywh1N_m_.mjs +0 -6
  161. package/dist/chunk-D6CWQ5DW-CWPsf9FV.mjs +0 -5
  162. package/dist/chunk-GOV5EKKI-DH8052og.mjs +0 -9
  163. package/dist/chunk-MDDMCKUK-B8V-vwhF.mjs +0 -6
  164. package/dist/chunk-MIZPJHVH-D45kCv1L.mjs +0 -7
  165. package/dist/chunk-NAERJDUW-g_zD_t_X.mjs +0 -8
  166. package/dist/chunk-NUYSJFDK-C3CfS8pU.mjs +0 -7
  167. package/dist/chunk-OCLXQMOG-BgcVHeKY.mjs +0 -6
  168. package/dist/chunk-TLSUDHID-BY7gVdyC.mjs +0 -6
  169. package/dist/chunk-YTNYSM6T-3WjLDS_v.mjs +0 -11
  170. package/dist/constants-BxUVFv0v.mjs +0 -1
  171. package/dist/dist-C1xee7WC.mjs +0 -1
  172. package/dist/env-5EPCWSXR-hkmWHgd5.mjs +0 -1
  173. package/dist/expansion-VBDYWVZR-CPnYsIZl.mjs +0 -1
  174. package/dist/expr-YYCVMXE3-DtiMaNQl.mjs +0 -1
  175. package/dist/find-DH2ALKQS-44-asZtW.mjs +0 -1
  176. package/dist/flag-coverage-6JEX67RU-CvfAS1f3.mjs +0 -1
  177. package/dist/grep-2HUTXO5U-CoGVhBxG.mjs +0 -1
  178. package/dist/init-D_UJIf3q.mjs +0 -1
  179. package/dist/jq-LYZFFBZB-CXMPfDWj.mjs +0 -1
  180. package/dist/launch-json-removal-CzsGIWza.mjs +0 -1
  181. package/dist/loader-651GN5sB.mjs +0 -1
  182. package/dist/loader-DbUHvJUZ.mjs +0 -1
  183. package/dist/md-manager-BGnqyqi1-uHVeQn_6.mjs +0 -514
  184. package/dist/preview-CZSVVTzm.mjs +0 -2
  185. package/dist/preview-Cem1ca21.mjs +0 -1
  186. package/dist/printf-CX64KX2P-zCdxSgaG.mjs +0 -1
  187. package/dist/public/assets/FeedbackForm-DZj72gd9.js +0 -1
  188. package/dist/public/assets/ManagedArtifactProperties-BJLN3Tgw.js +0 -1
  189. package/dist/python3-DNGS4G3E-CRyO5yp1.mjs +0 -11
  190. package/dist/registry-probes-BtvDhVsS.mjs +0 -17
  191. package/dist/rg-XNF3R3II-ClllMprJ.mjs +0 -1
  192. package/dist/sed-JAPPVBEU-D49-i6JC.mjs +0 -1
  193. package/dist/sqlite3-TE5AIOTF-BK092fD6.mjs +0 -1
  194. package/dist/src-D9bFP3lk.mjs +0 -1
  195. package/dist/src-TUVVD6Gp.mjs +0 -16
  196. package/dist/start-D8Lh1b_o.mjs +0 -1
  197. package/dist/start-MojQH3H6.mjs +0 -5
  198. package/dist/tar-MZQD7NO4-D__44nPJ.mjs +0 -1
  199. package/dist/time-DEUO3QV2-BAt2bzlP.mjs +0 -1
  200. package/dist/touch-DX2IJOQ4-BJTz2DiT.mjs +0 -1
  201. package/dist/xan-UD7JYIL2-IybnHHpT.mjs +0 -1
  202. package/dist/xargs-I6EZUCYF-CpVYZvg1.mjs +0 -1
  203. package/dist/yq-OAKYHSXH-kqRGBS-8.mjs +0 -1
@@ -0,0 +1,2 @@
1
+ import{d as e,k as t,o as n,x as r}from"./constants-ok-dir-DZ25OS9-.mjs";import{f as i,s as a,t as o,y as s}from"./fs-find-project-root-BYV07wjn.mjs";import{dirname as c,join as l}from"node:path";import{existsSync as u,mkdirSync as d,readFileSync as f}from"node:fs";let p;function m(){return p}function h(e,t){if(t!==void 0&&t.length>0)return t;try{return o(e)?.rootPath}catch{return}}function g(e){let t=h(e.cwd,e.configuredProjectName),n=i({name:`cli`,project:t});return p=n,n.info({command:e.command,cwd:e.cwd,project:t},`cli command started`),n}var _=r();function v(){return e(n)}function y(){return t().keyringService}function b(e){try{e()}catch{}}var x=class{backend=`keyring`;onKeychainRead;constructor(e){this.onKeychainRead=e}async get(e){let{Entry:t}=await import(`@napi-rs/keyring`),n;try{n=new t(y(),e).getPassword()}catch(t){return b(()=>this.onKeychainRead?.({kind:`read-error`,host:e,error:t instanceof Error?t.name:`unknown`})),null}if(n==null)return b(()=>this.onKeychainRead?.({kind:`absent`,host:e})),null;try{return JSON.parse(n)}catch{return b(()=>this.onKeychainRead?.({kind:`corrupt-entry`,host:e,error:`corrupt-entry`})),null}}async set(e,t,n,r){let{Entry:i}=await import(`@napi-rs/keyring`),a=new i(y(),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(y(),e).deletePassword()}catch{}}},S=class{backend=`file`;authFile;constructor(e){this.authFile=e??l(s(),`auth.yml`)}read(){if(!u(this.authFile))return{};try{let e=f(this.authFile,`utf-8`);return(0,_.parse)(e)??{}}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=c(this.authFile);u(t)||d(t,{recursive:!0,mode:448}),a(this.authFile,(0,_.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)}},C=class{backend=`keyring`;keychain;file;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 ${v()} 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 w(e,t){try{let{Entry:n}=await import(`@napi-rs/keyring`);return new n(y(),`__probe__`),process.stderr.write(`[auth] token storage: OS keychain
2
+ `),b(()=>t?.onBackendSelected?.({backend:`keyring`})),new C(new x(t?.onKeychainRead),new S(e))}catch(n){let r=n instanceof Error?`${n.name}: ${n.message}`:String(n);return process.stderr.write(`[auth] token storage: file (${v()}) — OS keychain unavailable: ${r}\n`),b(()=>t?.onBackendSelected?.({backend:`file`,reason:r})),new S(e)}}function T(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 (${v()})\n`),r(new S(e))},n)});try{return await Promise.race([w(e),r])}catch{return new S(e)}finally{t!==null&&clearTimeout(t)}})(),t}}function E(e){let t=T(e);return{async get(e){let n=await(await t()).get(e);return n===null?null:{token:n.token,login:n.login}}}}function D(e){let t=T(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 O(e,t){let n=[],r=new S(t);await r.get(e)!=null&&(await r.clear(e),n.push(`file`));let i;try{let{Entry:t}=await import(`@napi-rs/keyring`);new t(y(),`__probe__`);let r,a=await new x(e=>{e.kind===`read-error`&&(r=e.error??`read-error`)}).get(e);if(r!==void 0)i=r;else if(a!=null)try{new t(y(),e).deletePassword(),n.push(`keychain`)}catch(e){i=e instanceof Error?e.name:`delete-error`}}catch{}return{touched:n,keychainError:i}}export{D as a,E as i,O as n,m as o,w as r,g as s,v as t};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DFy9txNR.mjs";import{t as e}from"./chunk-OCLXQMOG-DHLmxiVS.mjs";export{e as touchCommand};
@@ -1 +1 @@
1
- import"./chunk-DXB73IDG-DFy9txNR.mjs";import{n as e}from"./chunk-62RKD26F-Bv6peUyf.mjs";export{e as trCommand};
1
+ import"./chunk-DXB73IDG-DFy9txNR.mjs";import{n as e}from"./chunk-62RKD26F-B6OssxCM.mjs";export{e as trCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-5QMZ5MUS-BuB3i_B5.mjs";import"./chunk-24IMIIXA-Dj5K6qOb.mjs";import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-PXTK5WE2-D43s5Y84.mjs";import"./chunk-7TSDKFEO-BGeceqqc.mjs";import"./chunk-KRBPSX3W-CY8FCKFm.mjs";import"./chunk-DBKNVD4L-BquVyNve.mjs";import{t as e}from"./chunk-3BS5SKQH-CKmQMz_L.mjs";export{e as xanCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DFy9txNR.mjs";import{n as e}from"./chunk-TOMNU26N-Bhlbw7_h.mjs";export{e as xargsCommand};
@@ -0,0 +1 @@
1
+ import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-5QMZ5MUS-BuB3i_B5.mjs";import"./chunk-24IMIIXA-Dj5K6qOb.mjs";import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-PXTK5WE2-D43s5Y84.mjs";import"./chunk-7TSDKFEO-BGeceqqc.mjs";import"./chunk-KRBPSX3W-CY8FCKFm.mjs";import{t as e}from"./chunk-6Z5SFZXK-D2_6X1Dn.mjs";export{e as yqCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/open-knowledge",
3
- "version": "0.88.6-beta.4",
3
+ "version": "0.88.6-beta.5",
4
4
  "description": "Local-first, agent-friendly Markdown knowledge base with a cross-platform CLI and web editor",
5
5
  "keywords": [
6
6
  "knowledge-base",
@@ -65,10 +65,10 @@
65
65
  "@parcel/watcher": "^2.5.6"
66
66
  },
67
67
  "devDependencies": {
68
- "@inkeep/open-knowledge-app": "0.88.6-beta.4",
69
- "@inkeep/open-knowledge-core": "0.88.6-beta.4",
68
+ "@inkeep/open-knowledge-app": "0.88.6-beta.5",
69
+ "@inkeep/open-knowledge-core": "0.88.6-beta.5",
70
70
  "@inkeep/open-knowledge-native-config": "0.0.0",
71
- "@inkeep/open-knowledge-server": "0.88.6-beta.4",
71
+ "@inkeep/open-knowledge-server": "0.88.6-beta.5",
72
72
  "@types/node": "^24.7.0",
73
73
  "@types/proper-lockfile": "^4.1.4",
74
74
  "@types/yazl": "^3.3.1",
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DFy9txNR.mjs";import{r as e,t}from"./chunk-VOBGTVA6-C-yM78jB.mjs";export{e as aliasCommand,t as unaliasCommand};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-5QMZ5MUS-BuB3i_B5.mjs";import"./chunk-24IMIIXA-Dj5K6qOb.mjs";import{n as e}from"./chunk-TP4BZANS-BKDDD1i2.mjs";export{e as awkCommand2};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DFy9txNR.mjs";import{i as e,t}from"./chunk-D6CWQ5DW-CWPsf9FV.mjs";export{e as bashCommand,t as shCommand};
@@ -1,3 +0,0 @@
1
- import*as e from"node:path";import{join as t,relative as n,resolve as r,sep as i}from"node:path";import{stat as a,unwatchFile as o,watch as s,watchFile as c}from"node:fs";import{type as l}from"node:os";import{lstat as u,open as d,readdir as f,realpath as p,stat as m}from"node:fs/promises";import{Readable as ee}from"node:stream";import{EventEmitter as te}from"node:events";const h={FILE_TYPE:`files`,DIR_TYPE:`directories`,FILE_DIR_TYPE:`files_directories`,EVERYTHING_TYPE:`all`},g={root:`.`,fileFilter:e=>!0,directoryFilter:e=>!0,type:h.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(g);const _=`READDIRP_RECURSIVE_ERROR`,v=new Set([`ENOENT`,`EPERM`,`EACCES`,`ELOOP`,_]),y=[h.DIR_TYPE,h.EVERYTHING_TYPE,h.FILE_DIR_TYPE,h.FILE_TYPE],ne=new Set([h.DIR_TYPE,h.EVERYTHING_TYPE,h.FILE_DIR_TYPE]),re=new Set([h.EVERYTHING_TYPE,h.FILE_DIR_TYPE,h.FILE_TYPE]),ie=e=>v.has(e.code),b=process.platform===`win32`,x=e=>!0,S=e=>{if(e===void 0)return x;if(typeof e==`function`)return e;if(typeof e==`string`){let t=e.trim();return e=>e.basename===t}if(Array.isArray(e)){let t=e.map(e=>e.trim());return e=>t.some(t=>e.basename===t)}return x};var C=class extends ee{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark});let t={...g,...e},{root:n,type:i}=t;this._fileFilter=S(t.fileFilter),this._directoryFilter=S(t.directoryFilter);let a=t.lstat?u:m;this._stat=b?e=>a(e,{bigint:!0}):a,this._maxDepth=t.depth!=null&&Number.isSafeInteger(t.depth)?t.depth:g.depth,this._wantsDir=i?ne.has(i):!1,this._wantsFile=i?re.has(i):!1,this._wantsEverything=i===h.EVERYTHING_TYPE,this._root=r(n),this._isDirent=!t.alwaysStat,this._statsProp=this._isDirent?`dirent`:`stats`,this._rdOptions={encoding:`utf8`,withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let t=this.parent,n=t&&t.files;if(n&&n.length>0){let{path:r,depth:i}=t,a=n.splice(0,e).map(e=>this._formatEntry(e,r)),o=await Promise.all(a);for(let t of o){if(!t)continue;if(this.destroyed)return;let n=await this._getEntryType(t);n===`directory`&&this._directoryFilter(t)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(t.fullPath,i+1)),this._wantsDir&&(this.push(t),e--)):(n===`file`||this._includeAsFile(t))&&this._fileFilter(t)&&this._wantsFile&&(this.push(t),e--)}}else{let e=this.parents.pop();if(!e){this.push(null);break}if(this.parent=await e,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(e,t){let n;try{n=await f(e,this._rdOptions)}catch(e){this._onError(e)}return{files:n,depth:t,path:e}}async _formatEntry(e,i){let a,o=this._isDirent?e.name:e;try{let s=r(t(i,o));a={path:n(this._root,s),fullPath:s,basename:o},a[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(e){this._onError(e);return}return a}_onError(e){ie(e)&&!this.destroyed?this.emit(`warn`,e):this.destroy(e)}async _getEntryType(e){if(!e&&this._statsProp in e)return``;let t=e[this._statsProp];if(t.isFile())return`file`;if(t.isDirectory())return`directory`;if(t&&t.isSymbolicLink()){let t=e.fullPath;try{let e=await p(t),n=await u(e);if(n.isFile())return`file`;if(n.isDirectory()){let n=e.length;if(t.startsWith(e)&&t.substr(n,1)===i){let n=Error(`Circular symlink detected: "${t}" points to "${e}"`);return n.code=_,this._onError(n)}return`directory`}}catch(e){return this._onError(e),``}}}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}};function ae(e,t={}){let n=t.entryType||t.type;if(n===`both`&&(n=h.FILE_DIR_TYPE),n&&(t.type=n),!e)throw Error(`readdirp: root argument is required. Usage: readdirp(root, options)`);if(typeof e!=`string`)throw TypeError(`readdirp: root argument must be a string. Usage: readdirp(root, options)`);if(n&&!y.includes(n))throw Error(`readdirp: Invalid type passed. Use one of ${y.join(`, `)}`);return t.root=e,new C(t)}const w=()=>{},T=process.platform,E=T===`win32`,D=T===`darwin`,O=T===`linux`,k=T===`freebsd`,A=l()===`OS400`,j={ALL:`all`,READY:`ready`,ADD:`add`,CHANGE:`change`,ADD_DIR:`addDir`,UNLINK:`unlink`,UNLINK_DIR:`unlinkDir`,RAW:`raw`,ERROR:`error`},M=j,N={lstat:u,stat:m},P=`listeners`,F=`errHandlers`,I=`rawEmitters`,oe=[P,F,I],se=new Set(`3dm.3ds.3g2.3gp.7z.a.aac.adp.afdesign.afphoto.afpub.ai.aif.aiff.alz.ape.apk.appimage.ar.arj.asf.au.avi.bak.baml.bh.bin.bk.bmp.btif.bz2.bzip2.cab.caf.cgm.class.cmx.cpio.cr2.cur.dat.dcm.deb.dex.djvu.dll.dmg.dng.doc.docm.docx.dot.dotm.dra.DS_Store.dsk.dts.dtshd.dvb.dwg.dxf.ecelp4800.ecelp7470.ecelp9600.egg.eol.eot.epub.exe.f4v.fbs.fh.fla.flac.flatpak.fli.flv.fpx.fst.fvt.g3.gh.gif.graffle.gz.gzip.h261.h263.h264.icns.ico.ief.img.ipa.iso.jar.jpeg.jpg.jpgv.jpm.jxr.key.ktx.lha.lib.lvp.lz.lzh.lzma.lzo.m3u.m4a.m4v.mar.mdi.mht.mid.midi.mj2.mka.mkv.mmr.mng.mobi.mov.movie.mp3.mp4.mp4a.mpeg.mpg.mpga.mxu.nef.npx.numbers.nupkg.o.odp.ods.odt.oga.ogg.ogv.otf.ott.pages.pbm.pcx.pdb.pdf.pea.pgm.pic.png.pnm.pot.potm.potx.ppa.ppam.ppm.pps.ppsm.ppsx.ppt.pptm.pptx.psd.pya.pyc.pyo.pyv.qt.rar.ras.raw.resources.rgb.rip.rlc.rmf.rmvb.rpm.rtf.rz.s3m.s7z.scpt.sgi.shar.snap.sil.sketch.slk.smv.snk.so.stl.suo.sub.swf.tar.tbz.tbz2.tga.tgz.thmx.tif.tiff.tlz.ttc.ttf.txz.udf.uvh.uvi.uvm.uvp.uvs.uvu.viv.vob.war.wav.wax.wbmp.wdp.weba.webm.webp.whl.wim.wm.wma.wmv.wmx.woff.woff2.wrm.wvx.xbm.xif.xla.xlam.xls.xlsb.xlsm.xlsx.xlt.xltm.xltx.xm.xmind.xpi.xpm.xwd.xz.z.zip.zipx`.split(`.`)),ce=t=>se.has(e.extname(t).slice(1).toLowerCase()),L=(e,t)=>{e instanceof Set?e.forEach(t):t(e)},R=(e,t,n)=>{let r=e[t];r instanceof Set||(e[t]=r=new Set([r])),r.add(n)},z=e=>t=>{let n=e[t];n instanceof Set?n.clear():delete e[t]},B=(e,t,n)=>{let r=e[t];r instanceof Set?r.delete(n):r===n&&delete e[t]},V=e=>e instanceof Set?e.size===0:!e,H=new Map;function U(t,n,r,i,a){let o=(n,i)=>{r(t),a(n,i,{watchedPath:t}),i&&t!==i&&W(e.resolve(t,i),P,e.join(t,i))};try{return s(t,{persistent:n.persistent},o)}catch(e){i(e);return}}const W=(e,t,n,r,i)=>{let a=H.get(e);a&&L(a[t],e=>{e(n,r,i)})},le=(e,t,n,r)=>{let{listener:i,errHandler:a,rawEmitter:o}=r,s=H.get(t),c;if(!n.persistent)return c=U(e,n,i,a,o),c?c.close.bind(c):void 0;if(s)R(s,P,i),R(s,F,a),R(s,I,o);else{if(c=U(e,n,W.bind(null,t,P),a,W.bind(null,t,I)),!c)return;c.on(M.ERROR,async n=>{let r=W.bind(null,t,F);if(s&&(s.watcherUnusable=!0),E&&n.code===`EPERM`)try{await(await d(e,`r`)).close(),r(n)}catch{}else r(n)}),s={listeners:i,errHandlers:a,rawEmitters:o,watcher:c},H.set(t,s)}return()=>{B(s,P,i),B(s,F,a),B(s,I,o),V(s.listeners)&&(s.watcher.close(),H.delete(t),oe.forEach(z(s)),s.watcher=void 0,Object.freeze(s))}},G=new Map,ue=(e,t,n,r)=>{let{listener:i,rawEmitter:a}=r,s=G.get(t),l=s&&s.options;return l&&(l.persistent<n.persistent||l.interval>n.interval)&&(o(t),s=void 0),s?(R(s,P,i),R(s,I,a)):(s={listeners:i,rawEmitters:a,options:n,watcher:c(t,n,(n,r)=>{L(s.rawEmitters,e=>{e(M.CHANGE,t,{curr:n,prev:r})});let i=n.mtimeMs;(n.size!==r.size||i>r.mtimeMs||i===0)&&L(s.listeners,t=>t(e,n))})},G.set(t,s)),()=>{B(s,P,i),B(s,I,a),V(s.listeners)&&(G.delete(t),o(t),s.options=s.watcher=void 0,Object.freeze(s))}};var de=class{fsw;_boundHandleError;constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t)}_watchWithNodeFs(t,n){let r=this.fsw.options,i=e.dirname(t),a=e.basename(t);this.fsw._getWatchedDir(i).add(a);let o=e.resolve(t),s={persistent:r.persistent};n||=w;let c;return r.usePolling?(s.interval=r.interval!==r.binaryInterval&&ce(a)?r.binaryInterval:r.interval,c=ue(t,o,s,{listener:n,rawEmitter:this.fsw._emitRaw})):c=le(t,o,s,{listener:n,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),c}_handleFile(t,n,r){if(this.fsw.closed)return;let i=e.dirname(t),a=e.basename(t),o=this.fsw._getWatchedDir(i),s=n;if(o.has(a))return;let c=async(e,n)=>{if(this.fsw._throttle(`watch`,t,5)){if(!n||n.mtimeMs===0)try{let n=await m(t);if(this.fsw.closed)return;let r=n.atimeMs,i=n.mtimeMs;if((!r||r<=i||i!==s.mtimeMs)&&this.fsw._emit(M.CHANGE,t,n),(D||O||k)&&s.ino!==n.ino){this.fsw._closeFile(e),s=n;let r=this._watchWithNodeFs(t,c);r&&this.fsw._addPathCloser(e,r)}else s=n}catch{this.fsw._remove(i,a)}else if(o.has(a)){let e=n.atimeMs,r=n.mtimeMs;(!e||e<=r||r!==s.mtimeMs)&&this.fsw._emit(M.CHANGE,t,n),s=n}}},l=this._watchWithNodeFs(t,c);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(M.ADD,t,0))return;this.fsw._emit(M.ADD,t,n)}return l}async _handleSymlink(e,t,n,r){if(this.fsw.closed)return;let i=e.fullPath,a=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let t;try{t=await p(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(a.has(r)?this.fsw._symlinkPaths.get(i)!==t&&(this.fsw._symlinkPaths.set(i,t),this.fsw._emit(M.CHANGE,n,e.stats)):(a.add(r),this.fsw._symlinkPaths.set(i,t),this.fsw._emit(M.ADD,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return!0;this.fsw._symlinkPaths.set(i,!0)}_handleRead(t,n,r,i,a,o,s){t=e.join(t,``);let c=i?`${t}:${i}`:t;if(s=this.fsw._throttle(`readdir`,c,1e3),!s)return;let l=this.fsw._getWatchedDir(r.path),u=new Set,d=this.fsw._readdirp(t,{fileFilter:e=>r.filterPath(e),directoryFilter:e=>r.filterDir(e)});if(d)return d.on(`data`,async s=>{if(this.fsw.closed){d=void 0;return}let c=s.path,f=e.join(t,c);if(u.add(c),!(s.stats.isSymbolicLink()&&await this._handleSymlink(s,t,f,c))){if(this.fsw.closed){d=void 0;return}(c===i||!i&&!l.has(c))&&(this.fsw._incrReadyCount(),f=e.join(a,e.relative(a,f)),this._addToNodeFs(f,n,r,o+1))}}).on(M.ERROR,this._boundHandleError),new Promise((e,n)=>{if(!d)return n();d.once(`end`,()=>{if(this.fsw.closed){d=void 0;return}let n=s?s.clear():!1;e(void 0),l.getChildren().filter(e=>e!==t&&!u.has(e)).forEach(e=>{this.fsw._remove(t,e)}),d=void 0,n&&this._handleRead(t,!1,r,i,a,o,s)})})}async _handleDir(t,n,r,i,a,o,s){let c=this.fsw._getWatchedDir(e.dirname(t)),l=c.has(e.basename(t));!(r&&this.fsw.options.ignoreInitial)&&!a&&!l&&this.fsw._emit(M.ADD_DIR,t,n),c.add(e.basename(t)),this.fsw._getWatchedDir(t);let u,d,f=this.fsw.options.depth;if((f==null||i<=f)&&!this.fsw._symlinkPaths.has(s)){if(!a&&(await this._handleRead(t,r,o,a,t,i,u),this.fsw.closed))return;d=this._watchWithNodeFs(t,(e,n)=>{n&&n.mtimeMs===0||this._handleRead(e,!1,o,a,t,i,u)})}return d}async _addToNodeFs(t,n,r,i,a){let o=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return o(),!1;let s=this.fsw._getWatchHelpers(t);r&&(s.filterPath=e=>r.filterPath(e),s.filterDir=e=>r.filterDir(e));try{let r=await N[s.statMethod](s.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(s.watchPath,r))return o(),!1;let c=this.fsw.options.followSymlinks,l;if(r.isDirectory()){let o=e.resolve(t),u=c?await p(t):t;if(this.fsw.closed||(l=await this._handleDir(s.watchPath,r,n,i,a,s,u),this.fsw.closed))return;o!==u&&u!==void 0&&this.fsw._symlinkPaths.set(o,u)}else if(r.isSymbolicLink()){let a=c?await p(t):t;if(this.fsw.closed)return;let o=e.dirname(s.watchPath);if(this.fsw._getWatchedDir(o).add(s.watchPath),this.fsw._emit(M.ADD,s.watchPath,r),l=await this._handleDir(o,r,n,i,t,s,a),this.fsw.closed)return;a!==void 0&&this.fsw._symlinkPaths.set(e.resolve(t),a)}else l=this._handleFile(s.watchPath,r,n);return o(),l&&this.fsw._addPathCloser(t,l),!1}catch(e){if(this.fsw._handleError(e))return o(),t}}};
2
- /*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */
3
- const fe=/\\/g,K=/\/\//g,pe=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,me=/^\.[/\\]/;function q(e){return Array.isArray(e)?e:[e]}const J=e=>typeof e==`object`&&!!e&&!(e instanceof RegExp);function he(t){return typeof t==`function`?t:typeof t==`string`?e=>t===e:t instanceof RegExp?e=>t.test(e):typeof t==`object`&&t?n=>{if(t.path===n)return!0;if(t.recursive){let r=e.relative(t.path,n);return r?!r.startsWith(`..`)&&!e.isAbsolute(r):!1}return!1}:()=>!1}function ge(t){if(typeof t!=`string`)throw Error(`string expected`);t=e.normalize(t),t=t.replace(/\\/g,`/`);let n=!1;return t.startsWith(`//`)&&(n=!0),t=t.replace(K,`/`),n&&(t=`/`+t),t}function Y(e,t,n){let r=ge(t);for(let t=0;t<e.length;t++){let i=e[t];if(i(r,n))return!0}return!1}function _e(e,t){if(e==null)throw TypeError(`anymatch: specify first argument`);let n=q(e).map(e=>he(e));return t==null?(e,t)=>Y(n,e,t):Y(n,t)}const X=e=>{let t=q(e).flat();if(!t.every(e=>typeof e==`string`))throw TypeError(`Non-string provided as watch path: ${t}`);return t.map(Q)},Z=e=>{let t=e.replace(fe,`/`),n=!1;return t.startsWith(`//`)&&(n=!0),t=t.replace(K,`/`),n&&(t=`/`+t),t},Q=t=>Z(e.normalize(Z(t))),$=(t=``)=>n=>typeof n==`string`?Q(e.isAbsolute(n)?n:e.join(t,n)):n,ve=(t,n)=>e.isAbsolute(t)?t:e.join(n,t),ye=Object.freeze(new Set);var be=class{path;_removeWatcher;items;constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set}add(e){let{items:t}=this;t&&e!==`.`&&e!==`..`&&t.add(e)}async remove(t){let{items:n}=this;if(!n||(n.delete(t),n.size>0))return;let r=this.path;try{await f(r)}catch{this._removeWatcher&&this._removeWatcher(e.dirname(r),e.basename(r))}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;return e?[...e.values()]:[]}dispose(){this.items.clear(),this.path=``,this._removeWatcher=w,this.items=ye,Object.freeze(this)}},xe=class{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(t,n,r){this.fsw=r;let i=t;this.path=t=t.replace(me,``),this.watchPath=i,this.fullWatchPath=e.resolve(i),this.dirParts=[],this.dirParts.forEach(e=>{e.length>1&&e.pop()}),this.followSymlinks=n,this.statMethod=n?`stat`:`lstat`}entryPath(t){return e.join(this.watchPath,e.relative(this.watchPath,t.fullPath))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let n=this.entryPath(e);return this.fsw._isntIgnored(n,t)&&this.fsw._hasReadPermissions(t)}filterDir(e){return this.fsw._isntIgnored(this.entryPath(e),e.stats)}},Se=class extends te{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(e={}){super(),this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let t=e.awaitWriteFinish,n={stabilityThreshold:2e3,pollInterval:100},r={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...e,ignored:e.ignored?q(e.ignored):q([]),awaitWriteFinish:t===!0?n:typeof t==`object`&&{...n,...t}};A&&(r.usePolling=!0),r.atomic===void 0&&(r.atomic=!r.usePolling);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let e=i.toLowerCase();r.usePolling=e===`false`||e===`0`?!1:e===`true`||e===`1`||!!e}let a=process.env.CHOKIDAR_INTERVAL;a&&(r.interval=Number.parseInt(a,10));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=w,this._readyEmitted=!0,process.nextTick(()=>this.emit(j.READY)))},this._emitRaw=(...e)=>this.emit(j.RAW,...e),this._boundRemove=this._remove.bind(this),this.options=r,this._nodeFsHandler=new de(this),Object.freeze(r)}_addIgnoredPath(e){if(J(e)){for(let t of this._ignoredPaths)if(J(t)&&t.path===e.path&&t.recursive===e.recursive)return}this._ignoredPaths.add(e)}_removeIgnoredPath(e){if(this._ignoredPaths.delete(e),typeof e==`string`)for(let t of this._ignoredPaths)J(t)&&t.path===e&&this._ignoredPaths.delete(t)}add(t,n,r){let{cwd:i}=this.options;this.closed=!1,this._closePromise=void 0;let a=X(t);return i&&(a=a.map(e=>ve(e,i))),a.forEach(e=>{this._removeIgnoredPath(e)}),this._userIgnored=void 0,this._readyCount||=0,this._readyCount+=a.length,Promise.all(a.map(async e=>{let t=await this._nodeFsHandler._addToNodeFs(e,!r,void 0,0,n);return t&&this._emitReady(),t})).then(t=>{this.closed||t.forEach(t=>{t&&this.add(e.dirname(t),e.basename(n||t))})}),this}unwatch(t){if(this.closed)return this;let n=X(t),{cwd:r}=this.options;return n.forEach(t=>{!e.isAbsolute(t)&&!this._closers.has(t)&&(r&&(t=e.join(r,t)),t=e.resolve(t)),this._closePath(t),this._addIgnoredPath(t),this._watched.has(t)&&this._addIgnoredPath({path:t,recursive:!0}),this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(t=>{let n=t();n instanceof Promise&&e.push(n)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=e.length?Promise.all(e).then(()=>void 0):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((n,r)=>{let i=(this.options.cwd?e.relative(this.options.cwd,r):r)||`.`;t[i]=n.getChildren().sort()}),t}emitWithAll(e,t){this.emit(e,...t),e!==j.ERROR&&this.emit(j.ALL,e,...t)}async _emit(t,n,r){if(this.closed)return;let i=this.options;E&&(n=e.normalize(n)),i.cwd&&(n=e.relative(i.cwd,n));let a=[n];r!=null&&a.push(r);let o=i.awaitWriteFinish,s;if(o&&(s=this._pendingWrites.get(n)))return s.lastChange=new Date,this;if(i.atomic){if(t===j.UNLINK)return this._pendingUnlinks.set(n,[t,...a]),setTimeout(()=>{this._pendingUnlinks.forEach((e,t)=>{this.emit(...e),this.emit(j.ALL,...e),this._pendingUnlinks.delete(t)})},typeof i.atomic==`number`?i.atomic:100),this;t===j.ADD&&this._pendingUnlinks.has(n)&&(t=j.CHANGE,this._pendingUnlinks.delete(n))}if(o&&(t===j.ADD||t===j.CHANGE)&&this._readyEmitted)return this._awaitWriteFinish(n,o.stabilityThreshold,t,(e,n)=>{e?(t=j.ERROR,a[0]=e,this.emitWithAll(t,a)):n&&(a.length>1?a[1]=n:a.push(n),this.emitWithAll(t,a))}),this;if(t===j.CHANGE&&!this._throttle(j.CHANGE,n,50))return this;if(i.alwaysStat&&r===void 0&&(t===j.ADD||t===j.ADD_DIR||t===j.CHANGE)){let t=i.cwd?e.join(i.cwd,n):n,r;try{r=await m(t)}catch{}if(!r||this.closed)return;a.push(r)}return this.emitWithAll(t,a),this}_handleError(e){let t=e&&e.code;return e&&t!==`ENOENT`&&t!==`ENOTDIR`&&(!this.options.ignorePermissionErrors||t!==`EPERM`&&t!==`EACCES`)&&this.emit(j.ERROR,e),e||this.closed}_throttle(e,t,n){this._throttled.has(e)||this._throttled.set(e,new Map);let r=this._throttled.get(e);if(!r)throw Error(`invalid throttle`);let i=r.get(t);if(i)return i.count++,!1;let a,o=()=>{let e=r.get(t),n=e?e.count:0;return r.delete(t),clearTimeout(a),e&&clearTimeout(e.timeoutObject),n};a=setTimeout(o,n);let s={timeoutObject:a,clear:o,count:0};return r.set(t,s),s}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,n,r,i){let o=this.options.awaitWriteFinish;if(typeof o!=`object`)return;let s=o.pollInterval,c,l=t;this.options.cwd&&!e.isAbsolute(t)&&(l=e.join(this.options.cwd,t));let u=new Date,d=this._pendingWrites;function f(e){a(l,(r,a)=>{if(r||!d.has(t)){r&&r.code!==`ENOENT`&&i(r);return}let o=Number(new Date);e&&a.size!==e.size&&(d.get(t).lastChange=o),o-d.get(t).lastChange>=n?(d.delete(t),i(void 0,a)):c=setTimeout(f,s,a)})}d.has(t)||(d.set(t,{lastChange:u,cancelWait:()=>(d.delete(t),clearTimeout(c),r)}),c=setTimeout(f,s))}_isIgnored(e,t){if(this.options.atomic&&pe.test(e))return!0;if(!this._userIgnored){let{cwd:e}=this.options,t=(this.options.ignored||[]).map($(e)),n=[...[...this._ignoredPaths].map($(e)),...t];this._userIgnored=_e(n,void 0)}return this._userIgnored(e,t)}_isntIgnored(e,t){return!this._isIgnored(e,t)}_getWatchHelpers(e){return new xe(e,this.options.followSymlinks,this)}_getWatchedDir(t){let n=e.resolve(t);return this._watched.has(n)||this._watched.set(n,new be(n,this._boundRemove)),this._watched.get(n)}_hasReadPermissions(e){return this.options.ignorePermissionErrors?!0:!!(Number(e.mode)&256)}_remove(t,n,r){let i=e.join(t,n),a=e.resolve(i);if(r??=this._watched.has(i)||this._watched.has(a),!this._throttle(`remove`,i,100))return;!r&&this._watched.size===1&&this.add(t,n,!0),this._getWatchedDir(i).getChildren().forEach(e=>this._remove(i,e));let o=this._getWatchedDir(t),s=o.has(n);o.remove(n),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let c=i;if(this.options.cwd&&(c=e.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===j.ADD)return;this._watched.delete(i),this._watched.delete(a);let l=r?j.UNLINK_DIR:j.UNLINK;s&&!this._isIgnored(i)&&this._emit(l,i),this._closePath(i)}_closePath(t){this._closeFile(t);let n=e.dirname(t);this._getWatchedDir(n).remove(e.basename(t))}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(e=>e()),this._closers.delete(e))}_addPathCloser(e,t){if(!t)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(t)}_readdirp(e,t){if(this.closed)return;let n=ae(e,{type:j.ALL,alwaysStat:!0,lstat:!0,...t,depth:0});return this._streams.add(n),n.once(`close`,()=>{n=void 0}),n.once(`end`,()=>{n&&=(this._streams.delete(n),void 0)}),n}};function Ce(e,t={}){let n=new Se(t);return n.add(e),n}export{Ce as watch};
@@ -1,6 +0,0 @@
1
- import{t as e}from"./chunk-44UOCSGV-CeGMLWmo.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BuzahJu2.mjs";import{t as r}from"./chunk-HWKDQ44K-hk_eDgrm.mjs";var i={name:`mv`,summary:`move (rename) files`,usage:`mv [OPTION]... SOURCE... DEST`,options:[`-f, --force do not prompt before overwriting`,`-n, --no-clobber do not overwrite an existing file`,`-v, --verbose explain what is being done`,` --help display this help and exit`]},a={force:{short:`f`,long:`force`,type:`boolean`},noClobber:{short:`n`,long:`no-clobber`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},o={name:`mv`,async execute(o,s){if(n(o))return t(i);let c=r(`mv`,o,a);if(!c.ok)return c.error;c.result.flags.force;let l=c.result.flags.noClobber,u=c.result.flags.verbose,d=c.result.positional;if(d.length<2)return{stdout:``,stderr:`mv: missing destination file operand
2
- `,exitCode:1};let f=d.pop()??``,p=d,m=s.fs.resolvePath(s.cwd,f),h=``,g=``,_=0,v=!1;try{v=(await s.fs.stat(m)).isDirectory}catch{}if(p.length>1&&!v)return{stdout:``,stderr:`mv: target '${f}' is not a directory
3
- `,exitCode:1};for(let t of p)try{let e=s.fs.resolvePath(s.cwd,t),n=m;if(v){let e=t.split(`/`).pop()||t;n=m===`/`?`/${e}`:`${m}/${e}`}if(l)try{await s.fs.stat(n);continue}catch{}if(await s.fs.mv(e,n),u){let e=v?`${f}/${t.split(`/`).pop()||t}`:f;h+=`renamed '${t}' -> '${e}'
4
- `}}catch(n){let r=e(n);r.includes(`ENOENT`)||r.includes(`no such file`)?g+=`mv: cannot stat '${t}': No such file or directory
5
- `:g+=`mv: cannot move '${t}': ${r}
6
- `,_=1}return{stdout:h,stderr:g,exitCode:_}}},s={name:`mv`,flags:[{flag:`-f`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,o as t};
@@ -1,5 +0,0 @@
1
- import{t as e}from"./chunk-OJDRYQWQ-JGMWNwO9.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BuzahJu2.mjs";var r={name:`bash`,summary:`execute shell commands or scripts`,usage:`bash [OPTIONS] [SCRIPT_FILE] [ARGUMENTS...]`,options:[`-c COMMAND execute COMMAND string`,` --help display this help and exit`],notes:[`Without -c, reads and executes commands from SCRIPT_FILE.`,`Arguments are passed as $1, $2, etc. to the script.`,`$0 is set to the script name (or "bash" with -c).`]},i={name:`bash`,async execute(e,i){if(n(e))return t(r);if(e[0]===`-c`&&e.length>=2){let t=e[1];return o(t,e[2]||`bash`,e.slice(3),i)}if(e.length===0)return i.stdin?.trim()?o(i.stdin,`bash`,[],i):{stdout:``,stderr:``,exitCode:0};let a=e[0],s=e.slice(1);try{let e=i.fs.resolvePath(i.cwd,a);return o(await i.fs.readFile(e),a,s,i)}catch{return{stdout:``,stderr:`bash: ${a}: No such file or directory
2
- `,exitCode:127}}}},a={name:`sh`,async execute(e,i){if(n(e))return t({...r,name:`sh`,summary:`execute shell commands or scripts (POSIX shell)`});if(e[0]===`-c`&&e.length>=2){let t=e[1];return o(t,e[2]||`sh`,e.slice(3),i)}if(e.length===0)return i.stdin?.trim()?o(i.stdin,`sh`,[],i):{stdout:``,stderr:``,exitCode:0};let a=e[0],s=e.slice(1);try{let e=i.fs.resolvePath(i.cwd,a);return o(await i.fs.readFile(e),a,s,i)}catch{return{stdout:``,stderr:`sh: ${a}: No such file or directory
3
- `,exitCode:127}}}};async function o(t,n,r,i){if(!i.exec)return{stdout:``,stderr:`bash: internal error: exec function not available
4
- `,exitCode:1};let a=e(i.exportedEnv||{},{0:n,"#":String(r.length),"@":r.join(` `),"*":r.join(` `)});r.forEach((e,t)=>{a[String(t+1)]=e});let o=t;if(o.startsWith(`#!`)){let e=o.indexOf(`
5
- `);e!==-1&&(o=o.slice(e+1))}return await i.exec(o,{env:a,cwd:i.cwd,stdin:i.stdin,signal:i.signal})}var s={name:`bash`,flags:[{flag:`-c`,type:`value`,valueHint:`string`}],stdinType:`text`},c={name:`sh`,flags:[{flag:`-c`,type:`value`,valueHint:`string`}],stdinType:`text`};export{i,c as n,s as r,a as t};
@@ -1,9 +0,0 @@
1
- import{n as e,t}from"./chunk-A5O5YHGN-BRMz0iFo.mjs";import{r as n,t as r}from"./chunk-74CEPOFO-BuzahJu2.mjs";import{t as i}from"./chunk-3ZUFRYJ4-CYc2CHkz.mjs";var a={name:`sleep`,summary:`delay for a specified amount of time`,usage:`sleep NUMBER[SUFFIX]`,description:`Pause for NUMBER seconds. SUFFIX may be:
2
- s - seconds (default)
3
- m - minutes
4
- h - hours
5
- d - days
6
-
7
- NUMBER may be a decimal number.`,options:[` --help display this help and exit`]},o=36e5,s={name:`sleep`,async execute(s,c){if(r(s))return n(a);if(s.length===0)return{stdout:``,stderr:`sleep: missing operand
8
- `,exitCode:1};let l=0;for(let e of s){let t=i(e);if(t===null)return{stdout:``,stderr:`sleep: invalid time interval '${e}'
9
- `,exitCode:1};l+=t}return l>o&&(l=o),c.signal?.aborted||(c.sleep?await c.sleep(l):c.signal?await new Promise(n=>{let r=()=>{e(i),n()},i=t(()=>{c.signal?.removeEventListener(`abort`,r),n()},l);c.signal?.addEventListener(`abort`,r,{once:!0})}):await new Promise(e=>t(e,l))),{stdout:``,stderr:``,exitCode:0}}},c={name:`sleep`,flags:[],needsArgs:!0};export{s as n,c as t};
@@ -1,6 +0,0 @@
1
- import{n as e}from"./chunk-3THT3N7L-DVKHLRUO.mjs";import{t}from"./chunk-44UOCSGV-CeGMLWmo.mjs";import{t as n}from"./chunk-HWKDQ44K-hk_eDgrm.mjs";var r={recursive:{short:`p`,long:`parents`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},i={name:`mkdir`,async execute(i,a){let o=n(`mkdir`,i,r);if(!o.ok)return o.error;let s=o.result.flags.recursive,c=o.result.flags.verbose,l=o.result.positional;if(l.length===0)return{stdout:``,stderr:`mkdir: missing operand
2
- `,exitCode:1};let u=``,d=``,f=0;for(let n of l)try{let e=a.fs.resolvePath(a.cwd,n);await a.fs.mkdir(e,{recursive:s}),c&&(u+=`mkdir: created directory '${n}'
3
- `)}catch(r){let i=t(r);i.includes(`ENOENT`)||i.includes(`no such file`)?d+=`mkdir: cannot create directory '${n}': No such file or directory
4
- `:i.includes(`EEXIST`)||i.includes(`already exists`)?d+=`mkdir: cannot create directory '${n}': File exists
5
- `:d+=`mkdir: cannot create directory '${n}': ${e(i)}
6
- `,f=1}return{stdout:u,stderr:d,exitCode:f}}},a={name:`mkdir`,flags:[{flag:`-p`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{a as n,i as t};
@@ -1,7 +0,0 @@
1
- import{n as e}from"./chunk-3THT3N7L-DVKHLRUO.mjs";import{t}from"./chunk-44UOCSGV-CeGMLWmo.mjs";import{t as n}from"./chunk-HWKDQ44K-hk_eDgrm.mjs";var r={recursive:{short:`r`,long:`recursive`,type:`boolean`},recursiveUpper:{short:`R`,type:`boolean`},force:{short:`f`,long:`force`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},i={name:`rm`,async execute(i,a){let o=n(`rm`,i,r);if(!o.ok)return o.error;let s=o.result.flags.recursive||o.result.flags.recursiveUpper,c=o.result.flags.force,l=o.result.flags.verbose,u=o.result.positional;if(u.length===0)return c?{stdout:``,stderr:``,exitCode:0}:{stdout:``,stderr:`rm: missing operand
2
- `,exitCode:1};let d=``,f=``,p=0;for(let n of u)try{let e=a.fs.resolvePath(a.cwd,n);if((await a.fs.stat(e)).isDirectory&&!s){f+=`rm: cannot remove '${n}': Is a directory
3
- `,p=1;continue}await a.fs.rm(e,{recursive:s,force:c}),l&&(d+=`removed '${n}'
4
- `)}catch(r){if(!c){let i=t(r);i.includes(`ENOENT`)||i.includes(`no such file`)?f+=`rm: cannot remove '${n}': No such file or directory
5
- `:i.includes(`ENOTEMPTY`)||i.includes(`not empty`)?f+=`rm: cannot remove '${n}': Directory not empty
6
- `:f+=`rm: cannot remove '${n}': ${e(i)}
7
- `,p=1}}return{stdout:d,stderr:f,exitCode:p}}},a={name:`rm`,flags:[{flag:`-r`,type:`boolean`},{flag:`-R`,type:`boolean`},{flag:`-f`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0};export{i as n,a as t};
@@ -1,8 +0,0 @@
1
- import{r as e}from"./chunk-OJDRYQWQ-JGMWNwO9.mjs";import{n as t,r as n,t as r}from"./chunk-74CEPOFO-BuzahJu2.mjs";var i={name:`env`,summary:`run a program in a modified environment`,usage:`env [OPTION]... [NAME=VALUE]... [COMMAND [ARG]...]`,options:[`-i, --ignore-environment start with an empty environment`,`-u NAME, --unset=NAME remove NAME from the environment`,` --help display this help and exit`]},a={name:`env`,async execute(a,o){if(r(a))return n(i);let s=!1,c=[],l=new Map,u=-1;for(let e=0;e<a.length;e++){let n=a[e];if(n===`-i`||n===`--ignore-environment`)s=!0;else if(n===`-u`&&e+1<a.length)c.push(a[++e]);else if(n.startsWith(`-u`))c.push(n.slice(2));else if(n.startsWith(`--unset=`))c.push(n.slice(8));else{if(n.startsWith(`--`)&&n!==`--`)return t(`env`,n);if(n.startsWith(`-`)&&n!==`-`){for(let e of n.slice(1))if(e!==`i`&&e!==`u`)return t(`env`,`-${e}`);n.includes(`i`)&&(s=!0)}else if(n.includes(`=`)&&u===-1){let e=n.indexOf(`=`),t=n.slice(0,e),r=n.slice(e+1);l.set(t,r)}else{u=e;break}}}let d;if(s)d=new Map(l);else{d=new Map(o.env);for(let e of c)d.delete(e);for(let[e,t]of l)d.set(e,t)}if(u===-1){let e=[];for(let[t,n]of d)e.push(`${t}=${n}`);return{stdout:e.join(`
2
- `)+(e.length>0?`
3
- `:``),stderr:``,exitCode:0}}if(!o.exec)return{stdout:``,stderr:`env: command execution not supported in this context
4
- `,exitCode:1};let f=a.slice(u);return o.exec(`command`,{cwd:o.cwd,env:e(d),replaceEnv:!0,stdin:o.stdin,signal:o.signal,args:f})}},o={name:`printenv`,summary:`print all or part of environment`,usage:`printenv [OPTION]... [VARIABLE]...`,options:[` --help display this help and exit`]},s={name:`printenv`,async execute(e,t){if(r(e))return n(o);let i=e.filter(e=>!e.startsWith(`-`));if(i.length===0){let e=[];for(let[n,r]of t.env)e.push(`${n}=${r}`);return{stdout:e.join(`
5
- `)+(e.length>0?`
6
- `:``),stderr:``,exitCode:0}}let a=[],s=0;for(let e of i){let n=t.env.get(e);n===void 0?s=1:a.push(n)}return{stdout:a.join(`
7
- `)+(a.length>0?`
8
- `:``),stderr:``,exitCode:s}}},c={name:`env`,flags:[{flag:`-i`,type:`boolean`},{flag:`-u`,type:`value`,valueHint:`string`}]},l={name:`printenv`,flags:[]};export{a as i,c as n,l as r,s as t};
@@ -1,7 +0,0 @@
1
- import{t as e}from"./chunk-44UOCSGV-CeGMLWmo.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BuzahJu2.mjs";import{t as r}from"./chunk-HWKDQ44K-hk_eDgrm.mjs";var i={name:`cp`,summary:`copy files and directories`,usage:`cp [OPTION]... SOURCE... DEST`,options:[`-r, -R, --recursive copy directories recursively`,`-n, --no-clobber do not overwrite an existing file`,`-p, --preserve preserve file attributes`,`-v, --verbose explain what is being done`,` --help display this help and exit`]},a={recursive:{short:`r`,long:`recursive`,type:`boolean`},recursiveUpper:{short:`R`,type:`boolean`},noClobber:{short:`n`,long:`no-clobber`,type:`boolean`},preserve:{short:`p`,long:`preserve`,type:`boolean`},verbose:{short:`v`,long:`verbose`,type:`boolean`}},o={name:`cp`,async execute(o,s){if(n(o))return t(i);let c=r(`cp`,o,a);if(!c.ok)return c.error;let l=c.result.flags.recursive||c.result.flags.recursiveUpper,u=c.result.flags.noClobber;c.result.flags.preserve;let d=c.result.flags.verbose,f=c.result.positional;if(f.length<2)return{stdout:``,stderr:`cp: missing destination file operand
2
- `,exitCode:1};let p=f.pop()??``,m=f,h=s.fs.resolvePath(s.cwd,p),g=``,_=``,v=0,y=!1;try{y=(await s.fs.stat(h)).isDirectory}catch{}if(m.length>1&&!y)return{stdout:``,stderr:`cp: target '${p}' is not a directory
3
- `,exitCode:1};for(let t of m)try{let e=s.fs.resolvePath(s.cwd,t),n=await s.fs.stat(e),r=h;if(y){let e=t.split(`/`).pop()||t;r=h===`/`?`/${e}`:`${h}/${e}`}if(n.isDirectory&&!l){_+=`cp: -r not specified; omitting directory '${t}'
4
- `,v=1;continue}if(u)try{await s.fs.stat(r);continue}catch{}await s.fs.cp(e,r,{recursive:l}),d&&(g+=`'${t}' -> '${r}'
5
- `)}catch(n){let r=e(n);r.includes(`ENOENT`)||r.includes(`no such file`)?_+=`cp: cannot stat '${t}': No such file or directory
6
- `:_+=`cp: cannot copy '${t}': ${r}
7
- `,v=1}return{stdout:g,stderr:_,exitCode:v}}},s={name:`cp`,flags:[{flag:`-r`,type:`boolean`},{flag:`-R`,type:`boolean`},{flag:`-n`,type:`boolean`},{flag:`-p`,type:`boolean`},{flag:`-v`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,o as t};
@@ -1,6 +0,0 @@
1
- import{t as e}from"./chunk-44UOCSGV-CeGMLWmo.mjs";import{n as t}from"./chunk-74CEPOFO-BuzahJu2.mjs";function n(e){let t=e.replace(/\//g,`-`),n=new Date(t);if(!Number.isNaN(n.getTime()))return n;let r=t.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(r){let[,e,t,i]=r;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(i,10)),!Number.isNaN(n.getTime()))return n}let i=t.match(/^(\d{4})-(\d{2})-(\d{2})\s+(\d{2}):(\d{2}):(\d{2})$/);if(i){let[,e,t,r,a,o,s]=i;if(n=new Date(Number.parseInt(e,10),Number.parseInt(t,10)-1,Number.parseInt(r,10),Number.parseInt(a,10),Number.parseInt(o,10),Number.parseInt(s,10)),!Number.isNaN(n.getTime()))return n}return null}var r={name:`touch`,async execute(r,i){let a=[],o=null,s=!1;for(let e=0;e<r.length;e++){let n=r[e];if(n===`--`){a.push(...r.slice(e+1));break}if(n===`-d`||n===`--date`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
2
- `,exitCode:1};o=r[++e]}else if(n.startsWith(`--date=`))o=n.slice(7);else if(n===`-c`||n===`--no-create`)s=!0;else if(n===`-a`||n===`-m`||n===`-r`||n===`-t`)(n===`-r`||n===`-t`)&&e++;else{if(n.startsWith(`--`))return t(`touch`,n);if(n.startsWith(`-`)&&n.length>1){let i=!1;for(let a of n.slice(1))if(a===`c`)s=!0;else if(a!==`a`&&a!==`m`){if(a===`d`){if(e+1>=r.length)return{stdout:``,stderr:`touch: option requires an argument -- 'd'
3
- `,exitCode:1};o=r[++e],i=!0;break}if(a===`r`||a===`t`){e++,i=!0;break}return t(`touch`,`-${a}`)}if(i)continue}else a.push(n)}}if(a.length===0)return{stdout:``,stderr:`touch: missing file operand
4
- `,exitCode:1};let c=null;if(o!==null&&(c=n(o),c===null))return{stdout:``,stderr:`touch: invalid date format '${o}'
5
- `,exitCode:1};let l=``,u=0;for(let t of a)try{let e=i.fs.resolvePath(i.cwd,t);if(!await i.fs.exists(e)){if(s)continue;await i.fs.writeFile(e,``)}let n=c??new Date;await i.fs.utimes(e,n,n)}catch(n){l+=`touch: cannot touch '${t}': ${e(n)}
6
- `,u=1}return{stdout:``,stderr:l,exitCode:u}}},i={name:`touch`,flags:[{flag:`-c`,type:`boolean`},{flag:`-a`,type:`boolean`},{flag:`-m`,type:`boolean`},{flag:`-d`,type:`value`,valueHint:`string`}],needsArgs:!0};export{i as n,r as t};
@@ -1,6 +0,0 @@
1
- import{n as e}from"./libesm-DRoEqbAC.mjs";import{r as t,t as n}from"./chunk-74CEPOFO-BuzahJu2.mjs";import{t as r}from"./chunk-HWKDQ44K-hk_eDgrm.mjs";var i={name:`diff`,summary:`compare files line by line`,usage:`diff [OPTION]... FILE1 FILE2`,options:[`-u, --unified output unified diff format (default)`,`-q, --brief report only whether files differ`,`-s, --report-identical-files report when files are the same`,`-i, --ignore-case ignore case differences`,` --help display this help and exit`]},a={unified:{short:`u`,long:`unified`,type:`boolean`},brief:{short:`q`,long:`brief`,type:`boolean`},reportSame:{short:`s`,long:`report-identical-files`,type:`boolean`},ignoreCase:{short:`i`,long:`ignore-case`,type:`boolean`}},o={name:`diff`,async execute(o,s){if(n(o))return t(i);let c=r(`diff`,o,a);if(!c.ok)return c.error;let l=c.result.flags.brief,u=c.result.flags.reportSame,d=c.result.flags.ignoreCase,f=c.result.positional;if(c.result.flags.unified,f.length<2)return{stdout:``,stderr:`diff: missing operand
2
- `,exitCode:2};let p,m,[h,g]=f;try{p=h===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,h))}catch{return{stdout:``,stderr:`diff: ${h}: No such file or directory
3
- `,exitCode:2}}try{m=g===`-`?s.stdin:await s.fs.readFile(s.fs.resolvePath(s.cwd,g))}catch{return{stdout:``,stderr:`diff: ${g}: No such file or directory
4
- `,exitCode:2}}let _=p,v=m;return d&&(_=_.toLowerCase(),v=v.toLowerCase()),_===v?u?{stdout:`Files ${h} and ${g} are identical
5
- `,stderr:``,exitCode:0}:{stdout:``,stderr:``,exitCode:0}:l?{stdout:`Files ${h} and ${g} differ
6
- `,stderr:``,exitCode:1}:{stdout:e(h,g,p,m,``,``,{context:3}),stderr:``,exitCode:1}}},s={name:`diff`,flags:[{flag:`-u`,type:`boolean`},{flag:`-q`,type:`boolean`},{flag:`-s`,type:`boolean`},{flag:`-i`,type:`boolean`}],needsArgs:!0,minArgs:2};export{s as n,o as t};
@@ -1,11 +0,0 @@
1
- import{n as e,t}from"./chunk-A5O5YHGN-BRMz0iFo.mjs";import{t as n}from"./chunk-IPJHKYVM-BuXAD82m.mjs";import{n as r,r as i,t as a}from"./chunk-74CEPOFO-BuzahJu2.mjs";import{t as o}from"./chunk-3ZUFRYJ4-CYc2CHkz.mjs";var s={name:`timeout`,summary:`run a command with a time limit`,usage:`timeout [OPTION] DURATION COMMAND [ARG]...`,description:`Start COMMAND, and kill it if still running after DURATION.
2
-
3
- DURATION is a number with optional suffix:
4
- s - seconds (default)
5
- m - minutes
6
- h - hours
7
- d - days`,options:[`-k, --kill-after=DURATION send KILL signal after DURATION if still running`,`-s, --signal=SIGNAL specify signal to send (default: TERM)`,` --preserve-status exit with same status as COMMAND, even on timeout`,` --foreground run command in foreground`,` --help display this help and exit`]},c={name:`timeout`,async execute(c,l){if(a(c))return i(s);let u=0;for(let e=0;e<c.length;e++){let t=c[e];if(t===`--preserve-status`)u=e+1;else if(t===`--foreground`)u=e+1;else if(t===`-k`||t===`--kill-after`)e++,u=e+1;else if(t.startsWith(`--kill-after=`))u=e+1;else if(t===`-s`||t===`--signal`)e++,u=e+1;else if(t.startsWith(`--signal=`))u=e+1;else{if(t.startsWith(`--`)&&t!==`--`)return r(`timeout`,t);if(t.startsWith(`-`)&&t.length>1&&t!==`--`){if(t.startsWith(`-k`))u=e+1;else if(t.startsWith(`-s`))u=e+1;else return r(`timeout`,t)}else{u=e;break}}}let d=c.slice(u);if(d.length===0)return{stdout:``,stderr:`timeout: missing operand
8
- `,exitCode:1};let f=d[0],p=o(f);if(p===null)return{stdout:``,stderr:`timeout: invalid time interval '${f}'
9
- `,exitCode:1};let m=d.slice(1);if(m.length===0)return{stdout:``,stderr:`timeout: missing operand
10
- `,exitCode:1};if(!l.exec)return{stdout:``,stderr:`timeout: exec not available
11
- `,exitCode:1};let h=new AbortController,g;try{let e=new Promise(e=>{g=t(()=>{h.abort(),e({timedOut:!0})},p)}),r=l.exec(n([m[0]]),{cwd:l.cwd,signal:h.signal,stdin:l.stdin,args:m.slice(1)}).then(e=>({timedOut:!1,result:e})),i=await Promise.race([e,r]);return i.timedOut?{stdout:``,stderr:``,exitCode:124}:i.result}finally{g!==void 0&&e(g)}}},l={name:`timeout`,flags:[{flag:`-k`,type:`value`,valueHint:`string`},{flag:`-s`,type:`value`,valueHint:`string`},{flag:`--preserve-status`,type:`boolean`},{flag:`--foreground`,type:`boolean`}],needsArgs:!0,minArgs:2};export{c as n,l as t};
@@ -1 +0,0 @@
1
- import"./md-manager-BGnqyqi1-uHVeQn_6.mjs";var e=`0.88.6-beta.4`;const t=`config.yml`,n=e;export{n,t};
@@ -1 +0,0 @@
1
- import{Cc as e,Et as t,Ot as n,Pc as r,S as i,X as a,_c as o,no as s,v as c}from"./md-manager-BGnqyqi1-uHVeQn_6.mjs";import{$ as l,$a as u,$i as d,$n as f,$o as p,$r as m,$t as h,A as g,Aa as _,Ai as v,An as y,Ao as b,Ar as x,As as S,At as C,B as w,Ba as T,Bi as E,Bn as D,Bo as O,Br as k,Bt as A,C as j,Ca as M,Ci as N,Cn as P,Co as F,Cr as I,Cs as L,Ct as R,D as z,Da as B,Di as V,Dn as H,Do as U,Dr as W,Ds as G,Dt as K,E as q,Ea as J,Ei as Y,En as X,Eo as Z,Er as Q,Es as $,Et as ee,F as te,Fa as ne,Fi as re,Fn as ie,Fo as ae,Fr as oe,Ft as se,G as ce,Ga as le,Gi as ue,Gn as de,Go as fe,Gr as pe,Gt as me,H as he,Ha as ge,Hi as _e,Hn as ve,Ho as ye,Hr as be,Ht as xe,I as Se,Ia as Ce,Ii as we,In as Te,Io as Ee,Ir as De,It as Oe,J as ke,Ja as Ae,Ji as je,Jn as Me,Jo as Ne,Jr as Pe,Js as Fe,Jt as Ie,K as Le,Ka as Re,Ki as ze,Kn as Be,Ko as Ve,Kr as He,Ks as Ue,Kt as We,L as Ge,La as Ke,Li as qe,Ln as Je,Lo as Ye,Lr as Xe,Lt as Ze,M as Qe,Ma as $e,Mi as et,Mn as tt,Mo as nt,Mr as rt,Mt as it,N as at,Na as ot,Ni as st,Nn as ct,No as lt,Nr as ut,Nt as dt,O as ft,Oa as pt,Oi as mt,On as ht,Oo as gt,Or as _t,Os as vt,Ot as yt,P as bt,Pa as xt,Pi as St,Pn as Ct,Po as wt,Pr as Tt,Pt as Et,Q as Dt,Qa as Ot,Qi as kt,Qn as At,Qo as jt,Qr as Mt,Qt as Nt,R as Pt,Ra as Ft,Ri as It,Rn as Lt,Ro as Rt,Rr as zt,Rt as Bt,S as Vt,Sa as Ht,Si as Ut,Sn as Wt,So as Gt,Sr as Kt,Ss as qt,St as Jt,T as Yt,Ta as Xt,Ti as Zt,Tn as Qt,To as $t,Tr as en,Ts as tn,Tt as nn,U as rn,Ua as an,Ui as on,Un as sn,Uo as cn,Ur as ln,Ut as un,V as dn,Va as fn,Vi as pn,Vn as mn,Vo as hn,Vr as gn,Vt as _n,W as vn,Wa as yn,Wi as bn,Wn as xn,Wo as Sn,Wr as Cn,Wt as wn,X as Tn,Xa as En,Xi as Dn,Xn as On,Xo as kn,Xr as An,Xt as jn,Y as Mn,Ya as Nn,Yi as Pn,Yn as Fn,Yo as In,Yr as Ln,Ys as Rn,Yt as zn,Z as Bn,Za as Vn,Zi as Hn,Zn as Un,Zo as Wn,Zr as Gn,Zt as Kn,_ as qn,_a as Jn,_i as Yn,_n as Xn,_o as Zn,_r as Qn,_s as $n,_t as er,a as tr,aa as nr,ai as rr,an as ir,ao as ar,ar as or,at as sr,b as cr,ba as lr,bi as ur,bn as dr,bo as fr,br as pr,bt as mr,c as hr,ca as gr,ci as _r,cn as vr,co as yr,cr as br,ct as xr,d as Sr,da as Cr,di as wr,dn as Tr,do as Er,dr as Dr,dt as Or,ea as kr,ei as Ar,en as jr,eo as Mr,er as Nr,es as Pr,et as Fr,f as Ir,fa as Lr,fi as Rr,fn as zr,fo as Br,fr as Vr,ft as Hr,g as Ur,ga as Wr,gi as Gr,gn as Kr,go as qr,gr as Jr,gt as Yr,h as Xr,ha as Zr,hi as Qr,hn as $r,ho as ei,hr as ti,ht as ni,i as ri,ia as ii,ii as ai,in as oi,io as si,ir as ci,it as li,j as ui,ja as di,ji as fi,jn as pi,jo as mi,jr as hi,jt as gi,k as _i,ka as vi,ki as yi,kn as bi,ko as xi,kr as Si,ks as Ci,kt as wi,l as Ti,la as Ei,li as Di,ln as Oi,lo as ki,lr as Ai,lt as ji,m as Mi,ma as Ni,mi as Pi,mn as Fi,mo as Ii,mr as Li,mt as Ri,n as zi,na as Bi,ni as Vi,nn as Hi,no as Ui,nr as Wi,nt as Gi,o as Ki,oa as qi,oi as Ji,on as Yi,oo as Xi,or as Zi,ot as Qi,p as $i,pa as ea,pi as ta,pn as na,po as ra,pr as ia,pt as aa,q as oa,qa as sa,qi as ca,qn as la,qo as ua,qr as da,qs as fa,qt as pa,r as ma,ra as ha,ri as ga,rn as _a,ro as va,rr as ya,rt as ba,s as xa,sa as Sa,si as Ca,sn as wa,so as Ta,sr as Ea,st as Da,t as Oa,ta as ka,ti as Aa,tn as ja,to as Ma,tr as Na,ts as Pa,tt as Fa,u as Ia,ua as La,ui as Ra,un as za,uo as Ba,ur as Va,ut as Ha,v as Ua,va as Wa,vi as Ga,vn as Ka,vo as qa,vr as Ja,vs as Ya,vt as Xa,w as Za,wa as Qa,wi as $a,wn as eo,wo as to,wr as no,ws as ro,wt as io,x as ao,xa as oo,xi as so,xn as co,xo as lo,xr as uo,xt as fo,y as po,ya as mo,yi as ho,yn as go,yo as _o,yr as vo,yt as yo,z as bo,za as xo,zi as So,zn as Co,zo as wo,zr as To,zt as Eo}from"./dist-DIwQtyEF.mjs";export{Oa as AGENT_ID_MAX_LEN,zi as AGENT_ID_RE,ma as AGENT_WRITE_ORIGIN,s as AUDIT_EMPTY_SCOPE_WARNING,ri as AcpPermissionStore,tr as AcpRegistry,Ki as AcpThreadManager,xa as AgentFocusBroadcaster,hr as AgentPresenceBroadcaster,Ti as AgentSessionCapacityError,Ia as AgentSessionManager,Sr as AutoStartDisabledError,Ir as BUNDLE_IDS,$i as BUNDLE_SCOPE,Mi as BUNDLE_SKILL_NAME,Xr as BacklinkIndex,Ur as CC1Broadcaster,e as CC1_CONTRACT_VERSION,qn as CONCURRENT_REPLACE_WINDOW_MS,Ua as CONFIG_FILENAME,po as CONFLICT_MARKER_RE,cr as CURSOR_BUNDLE_PATHS_BY_PLATFORM,ao as ConfigSchema,Vt as ConflictAuthority,j as DEFAULT_CHECKPOINT_RETENTION,Za as DEFAULT_EMBEDDINGS_DIMENSIONS,Yt as DEFAULT_PACK_ID,q as DocumentDurabilityState,z as DocumentDurabilityStateError,ft as EMBEDDINGS_API_KEY_ENV,_i as EPHEMERAL_PROJECT_DIR_PREFIX,g as ExposureConsentError,ui as FEATURED_AGENT_IDS,Qe as FILE_SYSTEM_WRITER,at as FILE_WATCHER_ORIGIN,bt as FileEmbeddingsBackend,te as FilesystemRootProjectError,Se as GIT_PREFLIGHT_FAIL_SPAN_NAME,Ge as GIT_UPSTREAM_WRITER,$n as GitDirAccessError,Pt as GitNotAvailableError,bo as GitProbeTimeoutError,w as GitTooOldError,dn as HOCUSPOCUS_AUTH_REJECTION_REASONS,he as HocuspocusAuthRejection,rn as HocuspocusAuthTokenSchema,vn as HomeProjectRootError,ce as INSTALLED_AGENTS_SCHEMES,Le as JSON_SCHEMA_DIALECT_2020_12,Fe as LINEAGE_EPOCH_KEY,oa as LIVE_DERIVED_INDEX_DEBOUNCE_MS,ke as LOCK_FILE_ACCESS_REMEDY,Mn as MANAGED_RENAME_ORIGIN,Tn as MAX_ACP_THREADS,Bn as MAX_AGENT_SESSIONS,Dt as MCP_CONNECTION_ID_HEADER,o as MCP_SERVER_NAME,l as MIN_EVICTABLE_IDLE_MS,Fr as MIN_GIT_VERSION,Ya as MalformedGitPointerError,Fa as McpLogger,Gi as MissingOkConfigError,ba as OBSERVER_SYNC_ORIGIN,li as OK_OKIGNORE_TEMPLATE,sr as ONBOARDING_BUNDLE_IDS,Ue as ORPHAN_MODES,Rn as PROTOCOL_VERSION,qt as PinoLogger,Qi as ProcessLockCollisionError,Da as ProcessLockFileError,xr as ProjectGitInitError,ji as ROLLBACK_ORIGIN,Ha as ROOT_GITIGNORE_TEMPLATE,Or as RUNTIME_VERSION,Hr as SERVICE_WRITER,aa as SKILL_INSTALL_EVENTS_FILENAME,c as SKILL_STATE_TARGETS,Ri as STARTER_FOLDER_FRONTMATTER_FILENAME,ni as STARTER_PACKS,Yr as STARTER_PACK_IDS,er as STATE_MANIFEST_FILENAME,Xa as STATE_SCHEMA_VERSION,yo as SYMLINK_MERGE_MIN_GIT_LABEL,mr as SYMLINK_MERGE_MIN_GIT_VERSION,r as SYSTEM_DOC_NAME,fo as SeedPrerequisiteError,Jt as SeedRootDirError,R as ServerAuthorityCollisionError,io as ServerAuthorityRegistryError,nn as ServerLockCollisionError,ee as SingleFileNotAFileError,K as SingleFileNotFoundError,yt as SingleFileNotMarkdownError,wi as SingleFileProjectOverrideError,C as StateManifestError,i as TEST_LOOP_CORE_MARKER,gi as TEST_LOOP_SERVER_MARKER,it as TagIndex,dt as USER_GLOBAL_BUNDLE_IDS,Et as UnsafeIncomingSymlinkError,se as __getShowAllWalkStatsForTesting,Oe as __resetShowAllWalkStatsForTesting,Ze as acpThreadStoreRoots,Bt as acpThreadsDir,Eo as acquireProcessLock,A as acquireServerLock,_n as applyAgentMarkdownWrite,xe as applyExternalChange,un as applySeed,wn as assertCheckoutSymlinksSafe,me as assertCompatibleStateManifest,We as assertGitAvailable,pa as assertIncomingSymlinksSafe,Ie as assertMergeNameResolvesTo,zn as assertNeverDiskEvent,jn as assertRepoCheckoutSymlinksSafe,Kn as assertSafeProjectRoot,Nt as assessLockHolder,h as attachAcpThreadSocket,jr as attachCollabClientCounter,ja as attachIdleShutdown,Hi as auditScopeNotFoundTitle,_a as bindConflictAuthority,oi as bootServer,ir as buildAndOpenSkill,Yi as buildConfigYmlContent,wa as buildExecResult,vr as buildIngressPolicy,Oi as buildOkMcpStdioCommand,za as buildSkillZip,Tr as buildStarterFolderFrontmatterYaml,zr as buildWipTree,na as bundleSkillMdPath,Fi as canonicalProjectKey,$r as canonicalizeForCompare,Kr as classifyEvents,Xn as classifyFsPath,Ka as classifyLockHolder,go as clearAllEmbeddingsKeys,dr as coercePackId,co as collectServerHostSnapshot,t as colorFromSeed,Wt as commitUpstreamImport,P as commitWip,eo as commitWipFromTree,Qt as compareSemver,X as composeEffectiveLinterConfig,H as composeFrontmatterSchemasConfig,ht as containsConflictMarkers,bi as contentHash,y as contributorCount,pi as countShadowObjects,tt as countStaleAgentWipRefs,ct as countWipRefs,Ct as createApiExtension,ie as createAssetServeMiddleware,Te as createCollaborationHost,Je as createContentFilter,Lt as createContentFilterAsync,Co as createEmbeddingsSecretStore,D as createEphemeralProjectDir,mn as createExternalChangeHandler,ve as createFileLogger,sn as createLiveDerivedIndexExtension,xn as createMcpHttpHandler,de as createOsProbe,Be as createPersistenceExtension,la as createProbeFailureReporter,Me as createServer,Fn as createServerObserverExtension,On as createServerProbeResolver,Un as createStreamingErrorWriter,L as createTestLogger,At as describeStoredEmbeddingsKey,f as detectClaudeDesktopPresence,Nr as detectGit,Na as detectProjectShape,Wi as detectUserSkillHosts,ya as discoverLockDirs,ci as discoverMarkdownlintConfig,or as emitPreflightFailureSpan,Zi as encodeDocName,Ea as encodeFolderRoute,br as encodeSkillRoute,Ai as ensureProjectGit,Va as errorResponse,Dr as evictStaleTrackerEntries,Vr as extractHeadings,ia as extractOkBinaryPath,Li as extractWikiLinksFromMarkdown,ti as fallbackPaths,Jr as findEnclosingGitRoot,Qn as findEnclosingProjectRoot,Ja as findNativeMarkdownlintFile,vo as flushFileLogger,pr as formatAuditBrokenLinkSuppressionLine,uo as formatAuthRejectionWire,Kt as formatContributorsFrom,I as formatPackRationale,no as gcCheckpointRefs,en as getCurrentMcpLogger,Q as getIngressContext,W as getLocalDir,_t as getLogFilePath,ro as getLogger,Si as getLogsDir,x as getMachineId,hi as getMeter,rt as getMetrics,ut as getTracer,Tt as handleCollabSocketError,oe as handleSpawnCursor,De as hasForwardingHeaders,Xe as hasGcLogLatch,n as iconFromClientName,zt as incrementCollabSocketFilteredError,To as incrementServerObserverFire,k as initContent,gn as initShadowRepo,be as initTelemetry,ln as initToleranceTelemetryWriter,Cn as installJsonSchemaDialect,pe as installPrettyZodErrors,tn as installTestLoggers,He as installUserSkill,da as isAllowedApiOrigin,Pe as isAllowedWorkspaceHostHeader,Ln as isConfigDoc,An as isDefunctProcess,Gn as isDocInConflict,Mt as isFilesystemRoot,m as isHocuspocusAuthRejectionReason,Ar as isHomeDir,Aa as isHostAdmitted,Vi as isKnownPackId,ga as isLinkIndexExcludedDoc,ai as isLockFromThisMachine,rr as isLockProcessRunning,Ji as isLoopbackAddress,Ca as isManagedArtifactDoc,_r as isMintedThreadId,Di as isOriginAdmitted,fa as isOrphanMode,Ra as isPairedWriteOrigin,wr as isPathWithinDir,Rr as isPeerAdmitted,ta as isProcessAlive,Pi as isProjectRoot,Qr as isReservedForUserTree,Gr as isSelfWrite,Yn as isSkillInstallReportEnvOptOut,Ga as isSystemDoc,ho as isToleranceTelemetryEnabled,ur as isValidLockPid,so as lastKnownHash,Ut as listRescueCheckpoints,N as listStarterPacks,$a as loadCustomAgents,Zt as loadPrincipal,Y as lockAdvertisesUi,V as lockBaseUrl,mt as lockFilePath,$ as loggerFactory,yi as loginShapedUserinfoUser,G as logsCurrentPath,vt as logsPreviousPath,v as machineIdFilePath,fi as makeLazyEmbeddingsKeyStore,et as markServerLockDraining,st as missingOkConfigMessage,St as mountMcpAndApi,re as normalizeFsPath,we as observeReadiness,qe as packageVersionMajorMinor,It as parseAuthRejectionWire,So as parseGitVersion,E as parseHocuspocusAuthToken,pn as parseKeepaliveConnectionId,_e as parseProcessStartToken,on as pathToDocName,bn as planSeed,ue as prepareProjectLogsDir,ze as prepareSingleFileOpen,ca as prepareSpawnProjectLogsDir,je as processCommand,Pn as processStartToken,Dn as processUsage,Hn as readAgentBrowserTools,kt as readAllTargets,d as readBootStartedAtMs,kr as readBundleDecision,ka as readDeclaredGitHubHosts,Bi as readOriginCredentialHost,ha as readOriginGitHubRepo,ii as readOwnNativeRules,nr as readProcessLock,qi as readProcessLockDetailed,Sa as readProcessStart,gr as readProcessState,Ei as readProjectHeadState,La as readProjectLocalSemanticConfig,Cr as readServerLock,Lr as readServerPackageVersion,ea as readSkillInstallStateSnapshot,Ni as readStateManifest,Zr as readTargetRecordedAt,Wr as readTargetVersion,Jn as reconcile,Wa as recordContributor,mo as recordSkillInstallEvent,lr as recordsLockOwner,oo as redactShareSubprocessStderr,Ht as registerAllTools,M as registerNativeProcessStartReader,Qa as registerWrite,Xt as releaseProcessLock,J as releaseServerLock,B as removeLastKnownHash,pt as removeLockIfUnchanged,vi as removeProjectSkillGitignoreBlock,_ as reportSkillInstall,di as resetMetrics,$e as resolveAuditScope,ot as resolveBuiltinSkillHosts,a as resolveBundleEnabled,xt as resolveBundledSkillDir,ne as resolveContentDir,Ce as resolveCursorBinaryDefault,Ke as resolveCursorSpawnInvocation,Ft as resolveEffectiveLinterConfig,xo as resolveEmbeddingsCredential,T as resolveGitHubAccountFromUrl,fn as resolveGitHubAuthHost,ge as resolveLockDir,an as resolveNativeConfigForDoc,yn as resolveNativeMarkdownlintConfig,le as resolvePack,Re as resolvePackageVersion,sa as resolveSkillInstallReportSettings,Ae as resolveUiInfo,Nn as restoreContributors,En as rewriteMarkdownLinksForDocumentRename,Vn as rewriteWikiLinksForDocumentRename,Ot as runAuthReposSubprocess,u as runAuthStatusSubprocess,Mr as runCloneSubprocess,Ma as runDeviceFlowSubprocess,Ui as runWithMcpLogger,va as safeContentPath,si as safeSubdir,ar as safetyCheckpoint,Xi as sameGitHubLogin,Ta as sanitizeClientName,yr as saveInMemoryCheckpoint,ki as saveVersion,Ba as scanLockProcesses,Er as seedBasenameIndex,Br as seedEphemeralProjectDir,ra as serializeError,Ii as setActiveSpanAttributes,ei as setupServerObservers,qr as shadowGit,Zn as shutdownTelemetry,Ci as spansCurrentPath,S as spansPreviousPath,qa as spawnDetached,_o as splitMarkdownBlocks,fr as startWatcher,lo as strategiesFor,Gt as streamedChunkOf,F as streamingProblemEvent,to as swapContributors,$t as teardownToleranceTelemetryWriter,Z as toBroadcasterKey,U as toProcessLockMetadata,gt as tracedAppendFileSync,xi as tracedLinkSync,b as tracedMkdir,mi as tracedMkdirSync,nt as tracedRename,lt as tracedRenameSync,wt as tracedRmSync,ae as tracedRmdirSync,Ee as tracedUnlinkSync,Ye as tracedWriteFile,Rt as tracedWriteFileSync,wo as trustSystemCertificates,O as updateLastKnownHash,hn as updateProcessLockPort,ye as updateServerLockPort,cn as validateAgentId,Sn as validateCloneInputs,fe as validateSkillZip,Ve as waitForServerLockDrain,ua as withHiddenWindowsConsole,Ne as withSpan,In as withSpanSync,kn as writeBundleDecision,Wn as writeMarkdownlintRule,jt as writeRootGitignoreForNewRepo,p as writeStateManifest,Pr as writeTargetVersion,Pa as writeTracker};
@@ -1 +0,0 @@
1
- import"./chunk-DXB73IDG-DFy9txNR.mjs";import{i as e,t}from"./chunk-NAERJDUW-g_zD_t_X.mjs";export{e as envCommand,t as printenvCommand};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import{w as e}from"./chunk-BGSUD5R5-Do2r1ZFF.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";export{e as isArray};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import{n as e}from"./chunk-V5MWI2OL-D_UdDDU2.mjs";export{e as exprCommand};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-SNN4IESC-CQKipF97.mjs";import{n as e}from"./chunk-K6LIBGJA-D-bMYdgr.mjs";export{e as findCommand};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-CWQS3NFK-BbpS-dVt.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-5QMZ5MUS-BuB3i_B5.mjs";import"./chunk-A5O5YHGN-BRMz0iFo.mjs";import"./chunk-24IMIIXA-Dj5K6qOb.mjs";import{i as e,n as t}from"./chunk-VOBGTVA6-C-yM78jB.mjs";import{t as n}from"./chunk-TP4BZANS-BKDDD1i2.mjs";import{n as r}from"./chunk-QJ7O6ZN3-q386D56M.mjs";import{n as i}from"./chunk-ALLTKNUZ-Dt9IXqyb.mjs";import{n as ee,r as te}from"./chunk-D6CWQ5DW-CWPsf9FV.mjs";import{n as a}from"./chunk-TXBZCHCQ-sUfgYaXE.mjs";import{n as o}from"./chunk-4GTNDTRF-B014H-Vf.mjs";import{t as s}from"./chunk-LL3S3NLB-Ajr0xcGQ.mjs";import{n as c}from"./chunk-LWEGUNWT-DZIaRpTF.mjs";import{n as l}from"./chunk-Z7JVV2SM-BINs_ZHI.mjs";import{n as u}from"./chunk-NUYSJFDK-C3CfS8pU.mjs";import{t as d}from"./chunk-SDNKECQQ-DM1Xij9V.mjs";import{t as f}from"./chunk-D7MEQ3VN-DWLndLz-.mjs";import{n as p}from"./chunk-TLSUDHID-BY7gVdyC.mjs";import{t as m}from"./chunk-4Q4SM6WR-BByvHNHw.mjs";import{n as h}from"./chunk-RPNGRAAP-sLuOEo0y.mjs";import{n as g}from"./chunk-GCTKCWKD-DHLYAKo9.mjs";import{n as _,r as v}from"./chunk-NAERJDUW-g_zD_t_X.mjs";import{n as y}from"./chunk-VJFXDYWH-BoVgsgGP.mjs";import{t as b}from"./chunk-V5MWI2OL-D_UdDDU2.mjs";import{t as x}from"./chunk-HL6NGDO2-BFPiiJBP.mjs";import"./chunk-SNN4IESC-CQKipF97.mjs";import{t as S}from"./chunk-K6LIBGJA-D-bMYdgr.mjs";import{t as C}from"./chunk-HKLCLINH-BHo2f5d2.mjs";import"./chunk-PXTK5WE2-D43s5Y84.mjs";import"./chunk-7TSDKFEO-BGeceqqc.mjs";import"./chunk-KRBPSX3W-DXuvylLd.mjs";import{n as w}from"./chunk-6Z5SFZXK-CiQN8zZ8.mjs";import"./chunk-DBKNVD4L-BquVyNve.mjs";import{n as T}from"./chunk-3BS5SKQH-C9C8uLJE.mjs";import{r as E}from"./chunk-XKWWSDBF-CiyukTrj.mjs";import{n as D}from"./chunk-MDLLFABN-atjlDSKW.mjs";import{n as O}from"./chunk-MLXIYONF-DhFByO_L.mjs";import{n as k}from"./chunk-A65PWWJC-ty1xRTlb.mjs";import{t as A}from"./chunk-MHTUABJP-Bx1COF_D.mjs";import{n as j}from"./chunk-4HHKTUW3-5_W2yDzN.mjs";import{n as M}from"./chunk-HJQJAYMS-DfCRRExB.mjs";import{n as N}from"./chunk-PP6PSHAB-CE4DzJ7f.mjs";import{i as P,n as F,o as I}from"./chunk-LTZRCH7N--i3y1RJg.mjs";import{t as L}from"./chunk-YTNYSM6T-3WjLDS_v.mjs";import{t as R}from"./chunk-Z6LRHWXI-B5pNb54L.mjs";import{n as z}from"./chunk-A7A2DBEE-1UAmSdpX.mjs";import{t as B}from"./chunk-APT7OOP2-CXQOmH8b.mjs";import{n as V}from"./chunk-XKQRETAK-bwd8BllX.mjs";import{n as H}from"./chunk-5V6VZH6T-tiNn_vQG.mjs";import{n as U,r as W}from"./chunk-R6QSAL5T-Dv5oFrVy.mjs";import{t as G}from"./chunk-YULBWSET-BjwIKz2I.mjs";import{t as K}from"./chunk-GOV5EKKI-DH8052og.mjs";import{t as q}from"./chunk-XVDPCNWR-ZVXqrUFZ.mjs";import{n as J}from"./chunk-NCNPKYJZ-CDqoN1dj.mjs";import{t as ne}from"./chunk-TOMNU26N-CPb3jib2.mjs";import{t as Y}from"./chunk-PYSFUGCK-Df5rjEfZ.mjs";import{t as X}from"./chunk-VYOJP4TV-C8YA9nzf.mjs";import{t as Z}from"./chunk-MYE6AGBJ-BNt8GfRA.mjs";import{t as re}from"./chunk-A7ICOL4V-COO78BCc.mjs";import{t as ie}from"./chunk-55VFSPNA-gjy8mRkg.mjs";import{n as ae}from"./chunk-WKFATFPP-BZJxkiO8.mjs";import{n as oe}from"./chunk-JVPRLUMK-Dnk7Ut7r.mjs";import{t as se}from"./chunk-62RKD26F-Bv6peUyf.mjs";import{t as ce}from"./chunk-QCDB2VPH-D3K7RTSa.mjs";import{t as le}from"./chunk-F23WWYKW-D0Fgb_Sl.mjs";import{n as ue}from"./chunk-D4J545R4-B8oju6Ck.mjs";import{t as de}from"./chunk-DCAAORBQ-DDuKnhlU.mjs";import{n as fe}from"./chunk-GXVXFKBA-BgfDuzB9.mjs";import{n as pe}from"./chunk-5QVNJEHU-tZRwEecL.mjs";import"./chunk-2TRDZQLB-bwBxC32K.mjs";import{a as me,i as he,n as ge}from"./chunk-3H6UQG3A-Doth9YS5.mjs";import{n as _e}from"./chunk-YMMW5UAP-B7swMNER.mjs";import{n as ve}from"./chunk-ZZO3UDB3-Dr2Q2MNF.mjs";import{t as ye}from"./chunk-KMEYNNUA-DXjVqTvU.mjs";import{t as be}from"./chunk-MIZPJHVH-D45kCv1L.mjs";import{n as xe}from"./chunk-A4JSPFCI-Ywh1N_m_.mjs";import{t as Q}from"./chunk-PBXLG62G-G7lHqZ9p.mjs";import{t as Se}from"./chunk-A4HU7SVR-CvqvtO-h.mjs";import{t as Ce}from"./chunk-HJWBQKYG-BrKW1t0J.mjs";import{t as we}from"./chunk-64BAICW3-YGmIqSV-.mjs";import{n as Te}from"./chunk-T56QNPHK-BuLSSwpV.mjs";import{n as Ee}from"./chunk-V7TAPXDL-DzRhOIAC.mjs";import{n as De}from"./chunk-MDDMCKUK-B8V-vwhF.mjs";import{t as Oe}from"./chunk-OCS6LSEM-BBT5tk28.mjs";import{n as ke}from"./chunk-OCLXQMOG-BgcVHeKY.mjs";var Ae=[g,a,Te,Ee,De,Oe,ke,be,u,xe,Q,o,Se,Ce,we,de,fe,pe,ge,me,he,_e,ve,n,ye,ae,l,d,oe,se,ce,le,ue,y,Y,X,Z,c,re,ie,S,i,m,q,h,_,v,e,t,J,ne,W,U,s,te,ee,G,r,p,f,K,L,R,z,b,B,V,H,x,D,O,k,A,j,M,N,P,F,I,C,w,T,E];function je(){return Ae}var $=new Map;for(let e of je())$.set(e.name,new Set(e.flags.map(e=>e.flag)));function Me(e,t,n){let r=$.get(t);if(!(!r||r.size===0))for(let i of n)r.has(i)&&e.hit(`cmd:flag:${t}:${i}`)}export{Me as emitFlagCoverage};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-SNN4IESC-CQKipF97.mjs";import"./chunk-2TRDZQLB-bwBxC32K.mjs";import{o as e,r as t,t as n}from"./chunk-3H6UQG3A-Doth9YS5.mjs";export{e as egrepCommand,t as fgrepCommand,n as grepCommand};
@@ -1 +0,0 @@
1
- import"./dist-DIwQtyEF.mjs";import{v as e}from"./init-DrtyRwCd.mjs";export{e as runInit};
@@ -1 +0,0 @@
1
- import"./chunk-B74TABJS-DAm9lxFL.mjs";import"./chunk-DXB73IDG-DFy9txNR.mjs";import"./chunk-5QMZ5MUS-BuB3i_B5.mjs";import"./chunk-24IMIIXA-Dj5K6qOb.mjs";import"./chunk-7TSDKFEO-BGeceqqc.mjs";import"./chunk-KRBPSX3W-DXuvylLd.mjs";import{n as e}from"./chunk-YULBWSET-BjwIKz2I.mjs";export{e as jqCommand};
@@ -1 +0,0 @@
1
- import{Ms as e,ps as t,us as n}from"./dist-DIwQtyEF.mjs";import{N as r,j as i,k as a}from"./init-DrtyRwCd.mjs";import{t as o}from"./is-object-BGze3w87.mjs";import{t as s}from"./removal-file-path-El1_tQoY.mjs";import{join as c}from"node:path";import{readFileSync as l}from"node:fs";const u={allowTrailingComma:!0,disallowComments:!1};function d(e,t){return e.error===1&&e.offset===0&&t.charCodeAt(0)===65279}function f(o){let f=s(c(o,`.claude`,`launch.json`));if(f.kind!==`ready`)return f;let m=f.path,h;try{h=l(m,`utf-8`)}catch(e){return{kind:`declined`,reason:r(e)}}let g=[],_=t(h,g,u)??void 0;if(g.some(e=>!d(e,h))||_?.type!==`object`)return{kind:`declined`,reason:`unparseable`};let v=n(_).configurations;if(!Array.isArray(v))return{kind:`not-present`};let y=v.findIndex(p);if(y===-1)return{kind:`not-present`};let{text:b,changed:x}=i(h,[`configurations`,y]);return x?(e(m,b,{mode:a(m)}),{kind:`removed`}):{kind:`not-present`}}function p(e){if(!o(e))return!1;let t=e;if(t.name!==`open-knowledge-ui`||!Array.isArray(t.runtimeArgs))return!1;let n=t.runtimeArgs;return t.runtimeExecutable===`/bin/sh`?n.length===3&&n[0]===`-l`&&n[1]===`-c`&&typeof n[2]==`string`&&/^# ok-ui-v[1-9]\d*$/.test(n[2].split(/\r?\n/,1)[0]??``):t.runtimeExecutable===`npx`?m.some(e=>h(n,e)):t.runtimeExecutable===`powershell`&&n.length===4&&n[0]===`-NoProfile`&&n[1]===`-NonInteractive`&&n[2]===`-Command`&&typeof n[3]==`string`&&/^# ok-ui-win-v[1-9]\d*$/.test(n[3].split(/\r?\n/,1)[0]??``)}const m=[[`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge`,`ui`],[`-y`,`@inkeep/open-knowledge@latest`,`ui`]];function h(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}export{f as t};
@@ -1 +0,0 @@
1
- import{Gc as e,bl as t,gl as n,k as r,ml as i,qc as a,vd as o}from"./md-manager-BGnqyqi1-uHVeQn_6.mjs";import{Bs as s,Rs as c,x as l}from"./dist-DIwQtyEF.mjs";import{t as u}from"./is-object-BGze3w87.mjs";import{t as d}from"./constants-BxUVFv0v.mjs";import{resolve as f}from"node:path";import{existsSync as p,readFileSync as m}from"node:fs";import{realpath as h}from"node:fs/promises";var g=o();async function _(e){let t=f(e);try{return await h(t)}catch(e){if(e.code!==`ENOENT`){let n=e instanceof Error?e.message:String(e);console.warn(`[normalize-cwd] realpath failed for ${t}: ${n}`)}return t}}function v(e){if(!p(e))return{value:null,path:e,source:null,doc:null};let t;try{t=m(e,`utf-8`)}catch(t){let n=t instanceof Error?t.message:String(t);return console.warn(`[config] Failed to read ${e}: ${n}`),{value:null,path:e,source:null,doc:null,diagnostic:{code:`UNREADABLE`,detail:`${e}: ${n}`}}}let n=(0,g.parseDocument)(t);if(n.errors.length>0){let r=n.errors.map(e=>e.message).join(`; `);return console.warn(`[config] Failed to parse ${e}: ${r}`),{value:null,path:e,source:t,doc:null,diagnostic:{code:`YAML_PARSE`,detail:`${e}: ${r}`}}}let r=n.toJSON();return u(r)?{value:r,path:e,source:t,doc:n}:{value:null,path:e,source:t,doc:n}}function y(e,t){return e.map(e=>{let r=e.path.map(e=>typeof e==`symbol`?String(e):e),i={path:r,message:e.message,issueCode:e.code};if(t.doc!==null&&t.source!==null){let e=n({file:t.path,source:t.source,doc:t.doc,path:r});if(e!==void 0)return{...i,source:e}}return i})}function b(n){let o=n??process.cwd(),u=[],p=[],m=[],h=[],g=s(`user`,o),_=c({absPath:g});p.push(..._.diagnostics),!_.valid&&_.sidelinedTo!==void 0&&m.push({from:g,to:_.sidelinedTo}),_.valid&&_.source!==void 0&&u.push(g);let b=(e,n=!1)=>{let a=v(e);if(a.diagnostic!==void 0&&p.push(a.diagnostic),a.value===null)return{};let o=i({value:a.value,file:a.path,source:a.source,doc:a.doc});p.push(...o),u.push(e);let s=o.length>0?t(a.value):a.value;return n&&h.push(...r({value:s,file:a.path,source:a.source,doc:a.doc})),s},x=f(o,`.ok`,d),S=b(x,!0),C=b(s(`project-local`,o)),w=e(_.value,S,C),T=l.safeParse(w);if(!T.success){let e=v(x),t={code:`SCHEMA_INVALID`,issues:y(T.error.issues,e)};throw Error(a(t))}return{config:T.data,sources:u,diagnostics:p,sidelined:m,ignoredCommittedKeys:h}}function x(e){let t=e.cacheMs??1e3,n=e.loadConfigFn??b,r=new Map,i=new Map,a=_(e.startupCwd);return async o=>{let s=await _(o??e.startupCwd),c=Date.now(),l=r.get(s);if(l&&l.expiresAt>c)return l.config;let u=i.get(s);if(u)return await u;let d=(async()=>{if(s===await a)return r.set(s,{config:e.startupConfig,expiresAt:Date.now()+t}),e.startupConfig;let i=n(s).config;return r.set(s,{config:i,expiresAt:Date.now()+t}),i})();i.set(s,d);try{return await d}finally{i.delete(s)}}}export{b as n,x as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./loader-651GN5sB.mjs";export{e as loadConfig};