@rse/ase 0.0.42 → 0.0.44

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 (1554) hide show
  1. package/dst/ase-hello.js +5 -9
  2. package/package.json +7 -7
  3. package/plugin/.claude-plugin/plugin.json +1 -1
  4. package/plugin/.github/plugin/plugin.json +1 -1
  5. package/plugin/meta/ase-dialog.md +1 -0
  6. package/plugin/meta/ase-persona.md +50 -26
  7. package/plugin/meta/ase-plan.md +1 -0
  8. package/plugin/package.json +1 -1
  9. package/plugin/skills/ase-meta-changes/SKILL.md +1 -1
  10. package/plugin/skills/ase-meta-persona/SKILL.md +23 -18
  11. package/plugin/skills/ase-task-delete/SKILL.md +1 -0
  12. package/plugin/skills/ase-task-id/SKILL.md +1 -0
  13. package/plugin/skills/ase-task-implement/SKILL.md +1 -0
  14. package/plugin/skills/ase-task-reboot/SKILL.md +1 -0
  15. package/plugin/skills/ase-task-view/SKILL.md +1 -0
  16. package/plugin/node_modules/.package-lock.json +0 -1342
  17. package/plugin/node_modules/@nodelib/fs.scandir/LICENSE +0 -21
  18. package/plugin/node_modules/@nodelib/fs.scandir/README.md +0 -171
  19. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  20. package/plugin/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +0 -19
  21. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.d.ts +0 -4
  22. package/plugin/node_modules/@nodelib/fs.scandir/out/constants.js +0 -17
  23. package/plugin/node_modules/@nodelib/fs.scandir/out/index.d.ts +0 -12
  24. package/plugin/node_modules/@nodelib/fs.scandir/out/index.js +0 -26
  25. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  26. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/async.js +0 -104
  27. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +0 -1
  28. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/common.js +0 -13
  29. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +0 -5
  30. package/plugin/node_modules/@nodelib/fs.scandir/out/providers/sync.js +0 -54
  31. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  32. package/plugin/node_modules/@nodelib/fs.scandir/out/settings.js +0 -24
  33. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  34. package/plugin/node_modules/@nodelib/fs.scandir/out/types/index.js +0 -2
  35. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +0 -2
  36. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/fs.js +0 -19
  37. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +0 -2
  38. package/plugin/node_modules/@nodelib/fs.scandir/out/utils/index.js +0 -5
  39. package/plugin/node_modules/@nodelib/fs.scandir/package.json +0 -44
  40. package/plugin/node_modules/@nodelib/fs.stat/LICENSE +0 -21
  41. package/plugin/node_modules/@nodelib/fs.stat/README.md +0 -126
  42. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  43. package/plugin/node_modules/@nodelib/fs.stat/out/adapters/fs.js +0 -17
  44. package/plugin/node_modules/@nodelib/fs.stat/out/index.d.ts +0 -12
  45. package/plugin/node_modules/@nodelib/fs.stat/out/index.js +0 -26
  46. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  47. package/plugin/node_modules/@nodelib/fs.stat/out/providers/async.js +0 -36
  48. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +0 -3
  49. package/plugin/node_modules/@nodelib/fs.stat/out/providers/sync.js +0 -23
  50. package/plugin/node_modules/@nodelib/fs.stat/out/settings.d.ts +0 -16
  51. package/plugin/node_modules/@nodelib/fs.stat/out/settings.js +0 -16
  52. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  53. package/plugin/node_modules/@nodelib/fs.stat/out/types/index.js +0 -2
  54. package/plugin/node_modules/@nodelib/fs.stat/package.json +0 -37
  55. package/plugin/node_modules/@nodelib/fs.walk/LICENSE +0 -21
  56. package/plugin/node_modules/@nodelib/fs.walk/README.md +0 -215
  57. package/plugin/node_modules/@nodelib/fs.walk/out/index.d.ts +0 -14
  58. package/plugin/node_modules/@nodelib/fs.walk/out/index.js +0 -34
  59. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  60. package/plugin/node_modules/@nodelib/fs.walk/out/providers/async.js +0 -30
  61. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +0 -4
  62. package/plugin/node_modules/@nodelib/fs.walk/out/providers/index.js +0 -9
  63. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +0 -12
  64. package/plugin/node_modules/@nodelib/fs.walk/out/providers/stream.js +0 -34
  65. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +0 -10
  66. package/plugin/node_modules/@nodelib/fs.walk/out/providers/sync.js +0 -14
  67. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  68. package/plugin/node_modules/@nodelib/fs.walk/out/readers/async.js +0 -97
  69. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +0 -7
  70. package/plugin/node_modules/@nodelib/fs.walk/out/readers/common.js +0 -31
  71. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  72. package/plugin/node_modules/@nodelib/fs.walk/out/readers/reader.js +0 -11
  73. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +0 -15
  74. package/plugin/node_modules/@nodelib/fs.walk/out/readers/sync.js +0 -59
  75. package/plugin/node_modules/@nodelib/fs.walk/out/settings.d.ts +0 -30
  76. package/plugin/node_modules/@nodelib/fs.walk/out/settings.js +0 -26
  77. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  78. package/plugin/node_modules/@nodelib/fs.walk/out/types/index.js +0 -2
  79. package/plugin/node_modules/@nodelib/fs.walk/package.json +0 -44
  80. package/plugin/node_modules/@rse/stx/README.md +0 -176
  81. package/plugin/node_modules/@rse/stx/dst-stage2/stx.1 +0 -206
  82. package/plugin/node_modules/@rse/stx/dst-stage2/stx.js +0 -205
  83. package/plugin/node_modules/@rse/stx/etc/.markdownlint.yaml +0 -11
  84. package/plugin/node_modules/@rse/stx/etc/eslint.mjs +0 -82
  85. package/plugin/node_modules/@rse/stx/etc/stx-bootstrap.js +0 -18
  86. package/plugin/node_modules/@rse/stx/etc/stx.conf +0 -59
  87. package/plugin/node_modules/@rse/stx/etc/tsc.json +0 -24
  88. package/plugin/node_modules/@rse/stx/etc/vite.mts +0 -69
  89. package/plugin/node_modules/@rse/stx/package.json +0 -71
  90. package/plugin/node_modules/@rse/stx/src/stx-logo.ai +7 -1463
  91. package/plugin/node_modules/@rse/stx/src/stx-logo.svg +0 -31
  92. package/plugin/node_modules/@rse/stx/src/stx.md +0 -293
  93. package/plugin/node_modules/@rse/stx/src/stx.ts +0 -708
  94. package/plugin/node_modules/@rse/stx/src/tsconfig.json +0 -3
  95. package/plugin/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
  96. package/plugin/node_modules/@sindresorhus/merge-streams/index.js +0 -265
  97. package/plugin/node_modules/@sindresorhus/merge-streams/license +0 -9
  98. package/plugin/node_modules/@sindresorhus/merge-streams/package.json +0 -49
  99. package/plugin/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
  100. package/plugin/node_modules/@types/debug/LICENSE +0 -21
  101. package/plugin/node_modules/@types/debug/README.md +0 -69
  102. package/plugin/node_modules/@types/debug/index.d.ts +0 -50
  103. package/plugin/node_modules/@types/debug/package.json +0 -58
  104. package/plugin/node_modules/@types/katex/LICENSE +0 -21
  105. package/plugin/node_modules/@types/katex/README.md +0 -15
  106. package/plugin/node_modules/@types/katex/contrib/auto-render.d.ts +0 -67
  107. package/plugin/node_modules/@types/katex/index.d.ts +0 -151
  108. package/plugin/node_modules/@types/katex/package.json +0 -46
  109. package/plugin/node_modules/@types/ms/LICENSE +0 -21
  110. package/plugin/node_modules/@types/ms/README.md +0 -82
  111. package/plugin/node_modules/@types/ms/index.d.ts +0 -63
  112. package/plugin/node_modules/@types/ms/package.json +0 -26
  113. package/plugin/node_modules/@types/unist/LICENSE +0 -21
  114. package/plugin/node_modules/@types/unist/README.md +0 -122
  115. package/plugin/node_modules/@types/unist/index.d.ts +0 -103
  116. package/plugin/node_modules/@types/unist/package.json +0 -55
  117. package/plugin/node_modules/ansi-regex/index.d.ts +0 -33
  118. package/plugin/node_modules/ansi-regex/index.js +0 -14
  119. package/plugin/node_modules/ansi-regex/license +0 -9
  120. package/plugin/node_modules/ansi-regex/package.json +0 -61
  121. package/plugin/node_modules/ansi-regex/readme.md +0 -66
  122. package/plugin/node_modules/argparse/CHANGELOG.md +0 -216
  123. package/plugin/node_modules/argparse/LICENSE +0 -254
  124. package/plugin/node_modules/argparse/README.md +0 -84
  125. package/plugin/node_modules/argparse/argparse.js +0 -3707
  126. package/plugin/node_modules/argparse/lib/sub.js +0 -67
  127. package/plugin/node_modules/argparse/lib/textwrap.js +0 -440
  128. package/plugin/node_modules/argparse/package.json +0 -31
  129. package/plugin/node_modules/braces/LICENSE +0 -21
  130. package/plugin/node_modules/braces/README.md +0 -586
  131. package/plugin/node_modules/braces/index.js +0 -170
  132. package/plugin/node_modules/braces/lib/compile.js +0 -60
  133. package/plugin/node_modules/braces/lib/constants.js +0 -57
  134. package/plugin/node_modules/braces/lib/expand.js +0 -113
  135. package/plugin/node_modules/braces/lib/parse.js +0 -331
  136. package/plugin/node_modules/braces/lib/stringify.js +0 -32
  137. package/plugin/node_modules/braces/lib/utils.js +0 -122
  138. package/plugin/node_modules/braces/package.json +0 -77
  139. package/plugin/node_modules/character-entities/index.d.ts +0 -6
  140. package/plugin/node_modules/character-entities/index.js +0 -2132
  141. package/plugin/node_modules/character-entities/license +0 -22
  142. package/plugin/node_modules/character-entities/package.json +0 -78
  143. package/plugin/node_modules/character-entities/readme.md +0 -152
  144. package/plugin/node_modules/character-entities-legacy/index.d.ts +0 -6
  145. package/plugin/node_modules/character-entities-legacy/index.js +0 -113
  146. package/plugin/node_modules/character-entities-legacy/license +0 -22
  147. package/plugin/node_modules/character-entities-legacy/package.json +0 -77
  148. package/plugin/node_modules/character-entities-legacy/readme.md +0 -157
  149. package/plugin/node_modules/character-reference-invalid/index.d.ts +0 -6
  150. package/plugin/node_modules/character-reference-invalid/index.js +0 -35
  151. package/plugin/node_modules/character-reference-invalid/license +0 -22
  152. package/plugin/node_modules/character-reference-invalid/package.json +0 -83
  153. package/plugin/node_modules/character-reference-invalid/readme.md +0 -156
  154. package/plugin/node_modules/commander/LICENSE +0 -22
  155. package/plugin/node_modules/commander/Readme.md +0 -1015
  156. package/plugin/node_modules/commander/esm.mjs +0 -15
  157. package/plugin/node_modules/commander/index.js +0 -27
  158. package/plugin/node_modules/commander/lib/argument.js +0 -147
  159. package/plugin/node_modules/commander/lib/command.js +0 -1944
  160. package/plugin/node_modules/commander/lib/error.js +0 -45
  161. package/plugin/node_modules/commander/lib/help.js +0 -396
  162. package/plugin/node_modules/commander/lib/option.js +0 -208
  163. package/plugin/node_modules/commander/lib/suggestSimilar.js +0 -100
  164. package/plugin/node_modules/commander/package-support.json +0 -16
  165. package/plugin/node_modules/commander/package.json +0 -69
  166. package/plugin/node_modules/commander/typings/index.d.ts +0 -774
  167. package/plugin/node_modules/debug/LICENSE +0 -20
  168. package/plugin/node_modules/debug/README.md +0 -481
  169. package/plugin/node_modules/debug/package.json +0 -64
  170. package/plugin/node_modules/debug/src/browser.js +0 -272
  171. package/plugin/node_modules/debug/src/common.js +0 -292
  172. package/plugin/node_modules/debug/src/index.js +0 -10
  173. package/plugin/node_modules/debug/src/node.js +0 -263
  174. package/plugin/node_modules/decode-named-character-reference/index.d.ts +0 -13
  175. package/plugin/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
  176. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
  177. package/plugin/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
  178. package/plugin/node_modules/decode-named-character-reference/index.dom.js +0 -32
  179. package/plugin/node_modules/decode-named-character-reference/index.js +0 -19
  180. package/plugin/node_modules/decode-named-character-reference/license +0 -22
  181. package/plugin/node_modules/decode-named-character-reference/package.json +0 -90
  182. package/plugin/node_modules/decode-named-character-reference/readme.md +0 -136
  183. package/plugin/node_modules/dequal/dist/index.js +0 -86
  184. package/plugin/node_modules/dequal/dist/index.min.js +0 -1
  185. package/plugin/node_modules/dequal/dist/index.mjs +0 -84
  186. package/plugin/node_modules/dequal/index.d.ts +0 -1
  187. package/plugin/node_modules/dequal/license +0 -21
  188. package/plugin/node_modules/dequal/lite/index.d.ts +0 -1
  189. package/plugin/node_modules/dequal/lite/index.js +0 -31
  190. package/plugin/node_modules/dequal/lite/index.min.js +0 -1
  191. package/plugin/node_modules/dequal/lite/index.mjs +0 -29
  192. package/plugin/node_modules/dequal/package.json +0 -57
  193. package/plugin/node_modules/dequal/readme.md +0 -112
  194. package/plugin/node_modules/devlop/lib/default.js +0 -9
  195. package/plugin/node_modules/devlop/lib/development.d.ts +0 -84
  196. package/plugin/node_modules/devlop/lib/development.js +0 -238
  197. package/plugin/node_modules/devlop/license +0 -22
  198. package/plugin/node_modules/devlop/package.json +0 -80
  199. package/plugin/node_modules/devlop/readme.md +0 -360
  200. package/plugin/node_modules/entities/LICENSE +0 -11
  201. package/plugin/node_modules/entities/lib/decode.d.ts +0 -211
  202. package/plugin/node_modules/entities/lib/decode.d.ts.map +0 -1
  203. package/plugin/node_modules/entities/lib/decode.js +0 -536
  204. package/plugin/node_modules/entities/lib/decode.js.map +0 -1
  205. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  206. package/plugin/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  207. package/plugin/node_modules/entities/lib/decode_codepoint.js +0 -76
  208. package/plugin/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  209. package/plugin/node_modules/entities/lib/encode.d.ts +0 -22
  210. package/plugin/node_modules/entities/lib/encode.d.ts.map +0 -1
  211. package/plugin/node_modules/entities/lib/encode.js +0 -77
  212. package/plugin/node_modules/entities/lib/encode.js.map +0 -1
  213. package/plugin/node_modules/entities/lib/escape.d.ts +0 -43
  214. package/plugin/node_modules/entities/lib/escape.d.ts.map +0 -1
  215. package/plugin/node_modules/entities/lib/escape.js +0 -122
  216. package/plugin/node_modules/entities/lib/escape.js.map +0 -1
  217. package/plugin/node_modules/entities/lib/esm/decode.d.ts +0 -211
  218. package/plugin/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  219. package/plugin/node_modules/entities/lib/esm/decode.js +0 -496
  220. package/plugin/node_modules/entities/lib/esm/decode.js.map +0 -1
  221. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  222. package/plugin/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  223. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  224. package/plugin/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  225. package/plugin/node_modules/entities/lib/esm/encode.d.ts +0 -22
  226. package/plugin/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  227. package/plugin/node_modules/entities/lib/esm/encode.js +0 -69
  228. package/plugin/node_modules/entities/lib/esm/encode.js.map +0 -1
  229. package/plugin/node_modules/entities/lib/esm/escape.d.ts +0 -43
  230. package/plugin/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  231. package/plugin/node_modules/entities/lib/esm/escape.js +0 -116
  232. package/plugin/node_modules/entities/lib/esm/escape.js.map +0 -1
  233. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  234. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  235. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  236. package/plugin/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  237. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  238. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  239. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  240. package/plugin/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  241. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  242. package/plugin/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  243. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  244. package/plugin/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  245. package/plugin/node_modules/entities/lib/esm/index.d.ts +0 -96
  246. package/plugin/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  247. package/plugin/node_modules/entities/lib/esm/index.js +0 -99
  248. package/plugin/node_modules/entities/lib/esm/index.js.map +0 -1
  249. package/plugin/node_modules/entities/lib/esm/package.json +0 -1
  250. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  251. package/plugin/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  252. package/plugin/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  253. package/plugin/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  254. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  255. package/plugin/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  256. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  257. package/plugin/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  258. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  259. package/plugin/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  260. package/plugin/node_modules/entities/lib/generated/encode-html.js +0 -12
  261. package/plugin/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  262. package/plugin/node_modules/entities/lib/index.d.ts +0 -96
  263. package/plugin/node_modules/entities/lib/index.d.ts.map +0 -1
  264. package/plugin/node_modules/entities/lib/index.js +0 -126
  265. package/plugin/node_modules/entities/lib/index.js.map +0 -1
  266. package/plugin/node_modules/entities/package.json +0 -90
  267. package/plugin/node_modules/entities/readme.md +0 -122
  268. package/plugin/node_modules/fast-glob/LICENSE +0 -21
  269. package/plugin/node_modules/fast-glob/README.md +0 -830
  270. package/plugin/node_modules/fast-glob/out/index.d.ts +0 -40
  271. package/plugin/node_modules/fast-glob/out/index.js +0 -102
  272. package/plugin/node_modules/fast-glob/out/managers/tasks.d.ts +0 -22
  273. package/plugin/node_modules/fast-glob/out/managers/tasks.js +0 -110
  274. package/plugin/node_modules/fast-glob/out/providers/async.d.ts +0 -9
  275. package/plugin/node_modules/fast-glob/out/providers/async.js +0 -23
  276. package/plugin/node_modules/fast-glob/out/providers/filters/deep.d.ts +0 -16
  277. package/plugin/node_modules/fast-glob/out/providers/filters/deep.js +0 -62
  278. package/plugin/node_modules/fast-glob/out/providers/filters/entry.d.ts +0 -17
  279. package/plugin/node_modules/fast-glob/out/providers/filters/entry.js +0 -85
  280. package/plugin/node_modules/fast-glob/out/providers/filters/error.d.ts +0 -8
  281. package/plugin/node_modules/fast-glob/out/providers/filters/error.js +0 -15
  282. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +0 -33
  283. package/plugin/node_modules/fast-glob/out/providers/matchers/matcher.js +0 -45
  284. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.d.ts +0 -4
  285. package/plugin/node_modules/fast-glob/out/providers/matchers/partial.js +0 -38
  286. package/plugin/node_modules/fast-glob/out/providers/provider.d.ts +0 -19
  287. package/plugin/node_modules/fast-glob/out/providers/provider.js +0 -48
  288. package/plugin/node_modules/fast-glob/out/providers/stream.d.ts +0 -11
  289. package/plugin/node_modules/fast-glob/out/providers/stream.js +0 -31
  290. package/plugin/node_modules/fast-glob/out/providers/sync.d.ts +0 -9
  291. package/plugin/node_modules/fast-glob/out/providers/sync.js +0 -23
  292. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.d.ts +0 -8
  293. package/plugin/node_modules/fast-glob/out/providers/transformers/entry.js +0 -26
  294. package/plugin/node_modules/fast-glob/out/readers/async.d.ts +0 -10
  295. package/plugin/node_modules/fast-glob/out/readers/async.js +0 -35
  296. package/plugin/node_modules/fast-glob/out/readers/reader.d.ts +0 -15
  297. package/plugin/node_modules/fast-glob/out/readers/reader.js +0 -33
  298. package/plugin/node_modules/fast-glob/out/readers/stream.d.ts +0 -14
  299. package/plugin/node_modules/fast-glob/out/readers/stream.js +0 -55
  300. package/plugin/node_modules/fast-glob/out/readers/sync.d.ts +0 -12
  301. package/plugin/node_modules/fast-glob/out/readers/sync.js +0 -43
  302. package/plugin/node_modules/fast-glob/out/settings.d.ts +0 -164
  303. package/plugin/node_modules/fast-glob/out/settings.js +0 -59
  304. package/plugin/node_modules/fast-glob/out/types/index.d.ts +0 -31
  305. package/plugin/node_modules/fast-glob/out/types/index.js +0 -2
  306. package/plugin/node_modules/fast-glob/out/utils/array.d.ts +0 -2
  307. package/plugin/node_modules/fast-glob/out/utils/array.js +0 -22
  308. package/plugin/node_modules/fast-glob/out/utils/errno.d.ts +0 -2
  309. package/plugin/node_modules/fast-glob/out/utils/errno.js +0 -7
  310. package/plugin/node_modules/fast-glob/out/utils/fs.d.ts +0 -4
  311. package/plugin/node_modules/fast-glob/out/utils/fs.js +0 -19
  312. package/plugin/node_modules/fast-glob/out/utils/index.d.ts +0 -8
  313. package/plugin/node_modules/fast-glob/out/utils/index.js +0 -17
  314. package/plugin/node_modules/fast-glob/out/utils/path.d.ts +0 -13
  315. package/plugin/node_modules/fast-glob/out/utils/path.js +0 -68
  316. package/plugin/node_modules/fast-glob/out/utils/pattern.d.ts +0 -49
  317. package/plugin/node_modules/fast-glob/out/utils/pattern.js +0 -206
  318. package/plugin/node_modules/fast-glob/out/utils/stream.d.ts +0 -4
  319. package/plugin/node_modules/fast-glob/out/utils/stream.js +0 -17
  320. package/plugin/node_modules/fast-glob/out/utils/string.d.ts +0 -2
  321. package/plugin/node_modules/fast-glob/out/utils/string.js +0 -11
  322. package/plugin/node_modules/fast-glob/package.json +0 -81
  323. package/plugin/node_modules/fastq/LICENSE +0 -13
  324. package/plugin/node_modules/fastq/README.md +0 -310
  325. package/plugin/node_modules/fastq/SECURITY.md +0 -15
  326. package/plugin/node_modules/fastq/bench.js +0 -66
  327. package/plugin/node_modules/fastq/eslint.config.js +0 -11
  328. package/plugin/node_modules/fastq/example.js +0 -14
  329. package/plugin/node_modules/fastq/example.mjs +0 -9
  330. package/plugin/node_modules/fastq/index.d.ts +0 -59
  331. package/plugin/node_modules/fastq/package.json +0 -49
  332. package/plugin/node_modules/fastq/queue.js +0 -346
  333. package/plugin/node_modules/fastq/test/example.ts +0 -83
  334. package/plugin/node_modules/fastq/test/promise.js +0 -325
  335. package/plugin/node_modules/fastq/test/test.js +0 -733
  336. package/plugin/node_modules/fastq/test/tsconfig.json +0 -11
  337. package/plugin/node_modules/fill-range/LICENSE +0 -21
  338. package/plugin/node_modules/fill-range/README.md +0 -237
  339. package/plugin/node_modules/fill-range/index.js +0 -248
  340. package/plugin/node_modules/fill-range/package.json +0 -74
  341. package/plugin/node_modules/get-east-asian-width/index.d.ts +0 -60
  342. package/plugin/node_modules/get-east-asian-width/index.js +0 -30
  343. package/plugin/node_modules/get-east-asian-width/license +0 -9
  344. package/plugin/node_modules/get-east-asian-width/lookup-data.js +0 -21
  345. package/plugin/node_modules/get-east-asian-width/lookup.js +0 -138
  346. package/plugin/node_modules/get-east-asian-width/package.json +0 -71
  347. package/plugin/node_modules/get-east-asian-width/readme.md +0 -65
  348. package/plugin/node_modules/get-east-asian-width/utilities.js +0 -24
  349. package/plugin/node_modules/glob-parent/CHANGELOG.md +0 -110
  350. package/plugin/node_modules/glob-parent/LICENSE +0 -15
  351. package/plugin/node_modules/glob-parent/README.md +0 -137
  352. package/plugin/node_modules/glob-parent/index.js +0 -42
  353. package/plugin/node_modules/glob-parent/package.json +0 -48
  354. package/plugin/node_modules/globby/ignore.js +0 -868
  355. package/plugin/node_modules/globby/index.d.ts +0 -413
  356. package/plugin/node_modules/globby/index.js +0 -680
  357. package/plugin/node_modules/globby/license +0 -9
  358. package/plugin/node_modules/globby/package.json +0 -94
  359. package/plugin/node_modules/globby/readme.md +0 -401
  360. package/plugin/node_modules/globby/utilities.js +0 -382
  361. package/plugin/node_modules/ignore/LICENSE-MIT +0 -21
  362. package/plugin/node_modules/ignore/README.md +0 -452
  363. package/plugin/node_modules/ignore/index.d.ts +0 -81
  364. package/plugin/node_modules/ignore/index.js +0 -784
  365. package/plugin/node_modules/ignore/legacy.js +0 -681
  366. package/plugin/node_modules/ignore/package.json +0 -87
  367. package/plugin/node_modules/is-alphabetical/index.d.ts +0 -8
  368. package/plugin/node_modules/is-alphabetical/index.js +0 -16
  369. package/plugin/node_modules/is-alphabetical/license +0 -22
  370. package/plugin/node_modules/is-alphabetical/package.json +0 -73
  371. package/plugin/node_modules/is-alphabetical/readme.md +0 -141
  372. package/plugin/node_modules/is-alphanumerical/index.d.ts +0 -8
  373. package/plugin/node_modules/is-alphanumerical/index.js +0 -13
  374. package/plugin/node_modules/is-alphanumerical/license +0 -22
  375. package/plugin/node_modules/is-alphanumerical/package.json +0 -79
  376. package/plugin/node_modules/is-alphanumerical/readme.md +0 -142
  377. package/plugin/node_modules/is-decimal/index.d.ts +0 -8
  378. package/plugin/node_modules/is-decimal/index.js +0 -13
  379. package/plugin/node_modules/is-decimal/license +0 -22
  380. package/plugin/node_modules/is-decimal/package.json +0 -73
  381. package/plugin/node_modules/is-decimal/readme.md +0 -139
  382. package/plugin/node_modules/is-extglob/LICENSE +0 -21
  383. package/plugin/node_modules/is-extglob/README.md +0 -107
  384. package/plugin/node_modules/is-extglob/index.js +0 -20
  385. package/plugin/node_modules/is-extglob/package.json +0 -69
  386. package/plugin/node_modules/is-glob/LICENSE +0 -21
  387. package/plugin/node_modules/is-glob/README.md +0 -206
  388. package/plugin/node_modules/is-glob/index.js +0 -150
  389. package/plugin/node_modules/is-glob/package.json +0 -81
  390. package/plugin/node_modules/is-hexadecimal/index.d.ts +0 -8
  391. package/plugin/node_modules/is-hexadecimal/index.js +0 -17
  392. package/plugin/node_modules/is-hexadecimal/license +0 -22
  393. package/plugin/node_modules/is-hexadecimal/package.json +0 -73
  394. package/plugin/node_modules/is-hexadecimal/readme.md +0 -141
  395. package/plugin/node_modules/is-number/LICENSE +0 -21
  396. package/plugin/node_modules/is-number/README.md +0 -187
  397. package/plugin/node_modules/is-number/index.js +0 -18
  398. package/plugin/node_modules/is-number/package.json +0 -82
  399. package/plugin/node_modules/is-path-inside/index.d.ts +0 -25
  400. package/plugin/node_modules/is-path-inside/index.js +0 -12
  401. package/plugin/node_modules/is-path-inside/license +0 -9
  402. package/plugin/node_modules/is-path-inside/package.json +0 -38
  403. package/plugin/node_modules/is-path-inside/readme.md +0 -59
  404. package/plugin/node_modules/js-yaml/LICENSE +0 -21
  405. package/plugin/node_modules/js-yaml/README.md +0 -247
  406. package/plugin/node_modules/js-yaml/bin/js-yaml.js +0 -126
  407. package/plugin/node_modules/js-yaml/dist/js-yaml.js +0 -3880
  408. package/plugin/node_modules/js-yaml/dist/js-yaml.min.js +0 -2
  409. package/plugin/node_modules/js-yaml/dist/js-yaml.mjs +0 -3856
  410. package/plugin/node_modules/js-yaml/index.js +0 -47
  411. package/plugin/node_modules/js-yaml/lib/common.js +0 -59
  412. package/plugin/node_modules/js-yaml/lib/dumper.js +0 -965
  413. package/plugin/node_modules/js-yaml/lib/exception.js +0 -55
  414. package/plugin/node_modules/js-yaml/lib/loader.js +0 -1733
  415. package/plugin/node_modules/js-yaml/lib/schema/core.js +0 -11
  416. package/plugin/node_modules/js-yaml/lib/schema/default.js +0 -22
  417. package/plugin/node_modules/js-yaml/lib/schema/failsafe.js +0 -17
  418. package/plugin/node_modules/js-yaml/lib/schema/json.js +0 -19
  419. package/plugin/node_modules/js-yaml/lib/schema.js +0 -121
  420. package/plugin/node_modules/js-yaml/lib/snippet.js +0 -101
  421. package/plugin/node_modules/js-yaml/lib/type/binary.js +0 -125
  422. package/plugin/node_modules/js-yaml/lib/type/bool.js +0 -35
  423. package/plugin/node_modules/js-yaml/lib/type/float.js +0 -97
  424. package/plugin/node_modules/js-yaml/lib/type/int.js +0 -156
  425. package/plugin/node_modules/js-yaml/lib/type/map.js +0 -8
  426. package/plugin/node_modules/js-yaml/lib/type/merge.js +0 -12
  427. package/plugin/node_modules/js-yaml/lib/type/null.js +0 -35
  428. package/plugin/node_modules/js-yaml/lib/type/omap.js +0 -44
  429. package/plugin/node_modules/js-yaml/lib/type/pairs.js +0 -53
  430. package/plugin/node_modules/js-yaml/lib/type/seq.js +0 -8
  431. package/plugin/node_modules/js-yaml/lib/type/set.js +0 -29
  432. package/plugin/node_modules/js-yaml/lib/type/str.js +0 -8
  433. package/plugin/node_modules/js-yaml/lib/type/timestamp.js +0 -88
  434. package/plugin/node_modules/js-yaml/lib/type.js +0 -66
  435. package/plugin/node_modules/js-yaml/package.json +0 -66
  436. package/plugin/node_modules/jsonc-parser/CHANGELOG.md +0 -76
  437. package/plugin/node_modules/jsonc-parser/LICENSE.md +0 -21
  438. package/plugin/node_modules/jsonc-parser/README.md +0 -364
  439. package/plugin/node_modules/jsonc-parser/SECURITY.md +0 -41
  440. package/plugin/node_modules/jsonc-parser/lib/esm/impl/edit.js +0 -185
  441. package/plugin/node_modules/jsonc-parser/lib/esm/impl/format.js +0 -261
  442. package/plugin/node_modules/jsonc-parser/lib/esm/impl/parser.js +0 -659
  443. package/plugin/node_modules/jsonc-parser/lib/esm/impl/scanner.js +0 -443
  444. package/plugin/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +0 -29
  445. package/plugin/node_modules/jsonc-parser/lib/esm/main.d.ts +0 -351
  446. package/plugin/node_modules/jsonc-parser/lib/esm/main.js +0 -178
  447. package/plugin/node_modules/jsonc-parser/lib/umd/impl/edit.js +0 -201
  448. package/plugin/node_modules/jsonc-parser/lib/umd/impl/format.js +0 -275
  449. package/plugin/node_modules/jsonc-parser/lib/umd/impl/parser.js +0 -682
  450. package/plugin/node_modules/jsonc-parser/lib/umd/impl/scanner.js +0 -456
  451. package/plugin/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +0 -42
  452. package/plugin/node_modules/jsonc-parser/lib/umd/main.d.ts +0 -351
  453. package/plugin/node_modules/jsonc-parser/lib/umd/main.js +0 -194
  454. package/plugin/node_modules/jsonc-parser/package.json +0 -37
  455. package/plugin/node_modules/jsonpointer/LICENSE.md +0 -21
  456. package/plugin/node_modules/jsonpointer/README.md +0 -45
  457. package/plugin/node_modules/jsonpointer/jsonpointer.d.ts +0 -35
  458. package/plugin/node_modules/jsonpointer/jsonpointer.js +0 -100
  459. package/plugin/node_modules/jsonpointer/package.json +0 -48
  460. package/plugin/node_modules/katex/LICENSE +0 -21
  461. package/plugin/node_modules/katex/README.md +0 -125
  462. package/plugin/node_modules/katex/cli.js +0 -114
  463. package/plugin/node_modules/katex/contrib/auto-render/README.md +0 -8
  464. package/plugin/node_modules/katex/contrib/auto-render/auto-render.ts +0 -164
  465. package/plugin/node_modules/katex/contrib/auto-render/index.html +0 -57
  466. package/plugin/node_modules/katex/contrib/auto-render/splitAtDelimiters.ts +0 -99
  467. package/plugin/node_modules/katex/contrib/auto-render/test/auto-render-spec.ts +0 -371
  468. package/plugin/node_modules/katex/contrib/copy-tex/README.md +0 -39
  469. package/plugin/node_modules/katex/contrib/copy-tex/copy-tex.ts +0 -49
  470. package/plugin/node_modules/katex/contrib/copy-tex/index.html +0 -38
  471. package/plugin/node_modules/katex/contrib/copy-tex/katex2tex.ts +0 -60
  472. package/plugin/node_modules/katex/contrib/mathtex-script-type/README.md +0 -38
  473. package/plugin/node_modules/katex/contrib/mathtex-script-type/mathtex-script-type.js +0 -23
  474. package/plugin/node_modules/katex/contrib/mhchem/README.md +0 -23
  475. package/plugin/node_modules/katex/contrib/mhchem/mhchem.js +0 -1695
  476. package/plugin/node_modules/katex/contrib/render-a11y-string/render-a11y-string.ts +0 -729
  477. package/plugin/node_modules/katex/contrib/render-a11y-string/test/render-a11y-string-spec.ts +0 -561
  478. package/plugin/node_modules/katex/dist/README.md +0 -125
  479. package/plugin/node_modules/katex/dist/contrib/auto-render.js +0 -305
  480. package/plugin/node_modules/katex/dist/contrib/auto-render.min.js +0 -1
  481. package/plugin/node_modules/katex/dist/contrib/auto-render.mjs +0 -210
  482. package/plugin/node_modules/katex/dist/contrib/copy-tex.js +0 -113
  483. package/plugin/node_modules/katex/dist/contrib/copy-tex.min.js +0 -1
  484. package/plugin/node_modules/katex/dist/contrib/copy-tex.mjs +0 -85
  485. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.js +0 -107
  486. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.min.js +0 -1
  487. package/plugin/node_modules/katex/dist/contrib/mathtex-script-type.mjs +0 -22
  488. package/plugin/node_modules/katex/dist/contrib/mhchem.js +0 -2965
  489. package/plugin/node_modules/katex/dist/contrib/mhchem.min.js +0 -1
  490. package/plugin/node_modules/katex/dist/contrib/mhchem.mjs +0 -2864
  491. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.js +0 -827
  492. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.min.js +0 -1
  493. package/plugin/node_modules/katex/dist/contrib/render-a11y-string.mjs +0 -723
  494. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  495. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  496. package/plugin/node_modules/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  497. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  498. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  499. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  500. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  501. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  502. package/plugin/node_modules/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  503. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  504. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  505. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  506. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  507. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  508. package/plugin/node_modules/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  509. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  510. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  511. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  512. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  513. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  514. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  515. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  516. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  517. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  518. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  519. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  520. package/plugin/node_modules/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  521. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  522. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  523. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  524. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  525. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  526. package/plugin/node_modules/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  527. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  528. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  529. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  530. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  531. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  532. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  533. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  534. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  535. package/plugin/node_modules/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  536. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  537. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  538. package/plugin/node_modules/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  539. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  540. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  541. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  542. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  543. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  544. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  545. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  546. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  547. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  548. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  549. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  550. package/plugin/node_modules/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  551. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  552. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  553. package/plugin/node_modules/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  554. package/plugin/node_modules/katex/dist/katex-swap.css +0 -1241
  555. package/plugin/node_modules/katex/dist/katex-swap.min.css +0 -1
  556. package/plugin/node_modules/katex/dist/katex.css +0 -1241
  557. package/plugin/node_modules/katex/dist/katex.js +0 -18010
  558. package/plugin/node_modules/katex/dist/katex.min.css +0 -1
  559. package/plugin/node_modules/katex/dist/katex.min.js +0 -1
  560. package/plugin/node_modules/katex/dist/katex.mjs +0 -16670
  561. package/plugin/node_modules/katex/katex.ts +0 -250
  562. package/plugin/node_modules/katex/package.json +0 -198
  563. package/plugin/node_modules/katex/src/Lexer.ts +0 -121
  564. package/plugin/node_modules/katex/src/MacroExpander.ts +0 -467
  565. package/plugin/node_modules/katex/src/Namespace.ts +0 -127
  566. package/plugin/node_modules/katex/src/Options.ts +0 -315
  567. package/plugin/node_modules/katex/src/ParseError.ts +0 -76
  568. package/plugin/node_modules/katex/src/Parser.ts +0 -1053
  569. package/plugin/node_modules/katex/src/Settings.ts +0 -477
  570. package/plugin/node_modules/katex/src/SourceLocation.ts +0 -41
  571. package/plugin/node_modules/katex/src/Style.ts +0 -129
  572. package/plugin/node_modules/katex/src/Token.ts +0 -49
  573. package/plugin/node_modules/katex/src/atoms.ts +0 -33
  574. package/plugin/node_modules/katex/src/buildCommon.ts +0 -783
  575. package/plugin/node_modules/katex/src/buildHTML.ts +0 -412
  576. package/plugin/node_modules/katex/src/buildMathML.ts +0 -332
  577. package/plugin/node_modules/katex/src/buildTree.ts +0 -66
  578. package/plugin/node_modules/katex/src/defineEnvironment.ts +0 -116
  579. package/plugin/node_modules/katex/src/defineFunction.ts +0 -228
  580. package/plugin/node_modules/katex/src/defineMacro.ts +0 -124
  581. package/plugin/node_modules/katex/src/delimiter.ts +0 -832
  582. package/plugin/node_modules/katex/src/domTree.ts +0 -641
  583. package/plugin/node_modules/katex/src/environments/array.ts +0 -1136
  584. package/plugin/node_modules/katex/src/environments/cd.ts +0 -318
  585. package/plugin/node_modules/katex/src/environments.ts +0 -8
  586. package/plugin/node_modules/katex/src/fontMetrics.ts +0 -267
  587. package/plugin/node_modules/katex/src/fontMetricsData.d.ts +0 -8
  588. package/plugin/node_modules/katex/src/fontMetricsData.js +0 -2077
  589. package/plugin/node_modules/katex/src/fonts/Makefile +0 -139
  590. package/plugin/node_modules/katex/src/fonts/default.cfg +0 -20
  591. package/plugin/node_modules/katex/src/fonts/generate_fonts.py +0 -58
  592. package/plugin/node_modules/katex/src/fonts/lib/Extra.otf +0 -0
  593. package/plugin/node_modules/katex/src/fonts/lib/Space.ttx +0 -234
  594. package/plugin/node_modules/katex/src/fonts/makeBlacker +0 -49
  595. package/plugin/node_modules/katex/src/fonts/makeFF +0 -2005
  596. package/plugin/node_modules/katex/src/fonts/xbbold.mf +0 -182
  597. package/plugin/node_modules/katex/src/functions/accent.ts +0 -285
  598. package/plugin/node_modules/katex/src/functions/accentunder.ts +0 -59
  599. package/plugin/node_modules/katex/src/functions/arrow.ts +0 -141
  600. package/plugin/node_modules/katex/src/functions/char.ts +0 -44
  601. package/plugin/node_modules/katex/src/functions/color.ts +0 -87
  602. package/plugin/node_modules/katex/src/functions/cr.ts +0 -60
  603. package/plugin/node_modules/katex/src/functions/def.ts +0 -212
  604. package/plugin/node_modules/katex/src/functions/delimsizing.ts +0 -366
  605. package/plugin/node_modules/katex/src/functions/enclose.ts +0 -345
  606. package/plugin/node_modules/katex/src/functions/environment.ts +0 -66
  607. package/plugin/node_modules/katex/src/functions/font.ts +0 -124
  608. package/plugin/node_modules/katex/src/functions/genfrac.ts +0 -470
  609. package/plugin/node_modules/katex/src/functions/hbox.ts +0 -38
  610. package/plugin/node_modules/katex/src/functions/horizBrace.ts +0 -134
  611. package/plugin/node_modules/katex/src/functions/href.ts +0 -93
  612. package/plugin/node_modules/katex/src/functions/html.ts +0 -105
  613. package/plugin/node_modules/katex/src/functions/htmlmathml.ts +0 -34
  614. package/plugin/node_modules/katex/src/functions/includegraphics.ts +0 -150
  615. package/plugin/node_modules/katex/src/functions/kern.ts +0 -55
  616. package/plugin/node_modules/katex/src/functions/lap.ts +0 -73
  617. package/plugin/node_modules/katex/src/functions/math.ts +0 -42
  618. package/plugin/node_modules/katex/src/functions/mathchoice.ts +0 -51
  619. package/plugin/node_modules/katex/src/functions/mclass.ts +0 -165
  620. package/plugin/node_modules/katex/src/functions/op.ts +0 -337
  621. package/plugin/node_modules/katex/src/functions/operatorname.ts +0 -161
  622. package/plugin/node_modules/katex/src/functions/ordgroup.ts +0 -20
  623. package/plugin/node_modules/katex/src/functions/overline.ts +0 -58
  624. package/plugin/node_modules/katex/src/functions/phantom.ts +0 -73
  625. package/plugin/node_modules/katex/src/functions/pmb.ts +0 -43
  626. package/plugin/node_modules/katex/src/functions/raisebox.ts +0 -45
  627. package/plugin/node_modules/katex/src/functions/relax.ts +0 -17
  628. package/plugin/node_modules/katex/src/functions/rule.ts +0 -76
  629. package/plugin/node_modules/katex/src/functions/sizing.ts +0 -90
  630. package/plugin/node_modules/katex/src/functions/smash.ts +0 -115
  631. package/plugin/node_modules/katex/src/functions/sqrt.ts +0 -124
  632. package/plugin/node_modules/katex/src/functions/styling.ts +0 -85
  633. package/plugin/node_modules/katex/src/functions/supsub.ts +0 -268
  634. package/plugin/node_modules/katex/src/functions/symbolsOp.ts +0 -32
  635. package/plugin/node_modules/katex/src/functions/symbolsOrd.ts +0 -61
  636. package/plugin/node_modules/katex/src/functions/symbolsSpacing.ts +0 -72
  637. package/plugin/node_modules/katex/src/functions/tag.ts +0 -38
  638. package/plugin/node_modules/katex/src/functions/text.ts +0 -81
  639. package/plugin/node_modules/katex/src/functions/underline.ts +0 -57
  640. package/plugin/node_modules/katex/src/functions/utils/assembleSupSub.ts +0 -119
  641. package/plugin/node_modules/katex/src/functions/vcenter.ts +0 -44
  642. package/plugin/node_modules/katex/src/functions/verb.ts +0 -57
  643. package/plugin/node_modules/katex/src/functions.ts +0 -54
  644. package/plugin/node_modules/katex/src/macros.ts +0 -1032
  645. package/plugin/node_modules/katex/src/mathMLTree.ts +0 -259
  646. package/plugin/node_modules/katex/src/metrics/README.md +0 -23
  647. package/plugin/node_modules/katex/src/metrics/extract_tfms.py +0 -114
  648. package/plugin/node_modules/katex/src/metrics/extract_ttfs.py +0 -122
  649. package/plugin/node_modules/katex/src/metrics/format_json.py +0 -28
  650. package/plugin/node_modules/katex/src/metrics/mapping.pl +0 -1224
  651. package/plugin/node_modules/katex/src/metrics/parse_tfm.py +0 -211
  652. package/plugin/node_modules/katex/src/parseNode.ts +0 -518
  653. package/plugin/node_modules/katex/src/parseTree.ts +0 -51
  654. package/plugin/node_modules/katex/src/spacingData.ts +0 -107
  655. package/plugin/node_modules/katex/src/stretchy.ts +0 -358
  656. package/plugin/node_modules/katex/src/styles/fonts.scss +0 -75
  657. package/plugin/node_modules/katex/src/styles/katex-swap.scss +0 -4
  658. package/plugin/node_modules/katex/src/styles/katex.scss +0 -683
  659. package/plugin/node_modules/katex/src/svgGeometry.ts +0 -561
  660. package/plugin/node_modules/katex/src/symbols.ts +0 -879
  661. package/plugin/node_modules/katex/src/tree.ts +0 -79
  662. package/plugin/node_modules/katex/src/types/fonts.ts +0 -73
  663. package/plugin/node_modules/katex/src/types/index.ts +0 -29
  664. package/plugin/node_modules/katex/src/unicodeAccents.js +0 -21
  665. package/plugin/node_modules/katex/src/unicodeScripts.ts +0 -124
  666. package/plugin/node_modules/katex/src/unicodeSupOrSub.ts +0 -108
  667. package/plugin/node_modules/katex/src/unicodeSymbols.js +0 -33
  668. package/plugin/node_modules/katex/src/units.ts +0 -104
  669. package/plugin/node_modules/katex/src/utils.ts +0 -89
  670. package/plugin/node_modules/katex/src/wide-character.ts +0 -155
  671. package/plugin/node_modules/katex/types/katex.d.ts +0 -259
  672. package/plugin/node_modules/linkify-it/LICENSE +0 -22
  673. package/plugin/node_modules/linkify-it/README.md +0 -196
  674. package/plugin/node_modules/linkify-it/build/index.cjs.js +0 -832
  675. package/plugin/node_modules/linkify-it/index.mjs +0 -642
  676. package/plugin/node_modules/linkify-it/lib/re.mjs +0 -189
  677. package/plugin/node_modules/linkify-it/package.json +0 -58
  678. package/plugin/node_modules/markdown-it/LICENSE +0 -22
  679. package/plugin/node_modules/markdown-it/README.md +0 -324
  680. package/plugin/node_modules/markdown-it/bin/markdown-it.mjs +0 -107
  681. package/plugin/node_modules/markdown-it/dist/index.cjs.js +0 -5547
  682. package/plugin/node_modules/markdown-it/dist/markdown-it.js +0 -6969
  683. package/plugin/node_modules/markdown-it/dist/markdown-it.min.js +0 -2
  684. package/plugin/node_modules/markdown-it/index.mjs +0 -1
  685. package/plugin/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  686. package/plugin/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
  687. package/plugin/node_modules/markdown-it/lib/common/utils.mjs +0 -304
  688. package/plugin/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  689. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
  690. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
  691. package/plugin/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
  692. package/plugin/node_modules/markdown-it/lib/index.mjs +0 -565
  693. package/plugin/node_modules/markdown-it/lib/parser_block.mjs +0 -134
  694. package/plugin/node_modules/markdown-it/lib/parser_core.mjs +0 -62
  695. package/plugin/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  696. package/plugin/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
  697. package/plugin/node_modules/markdown-it/lib/presets/default.mjs +0 -47
  698. package/plugin/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
  699. package/plugin/node_modules/markdown-it/lib/renderer.mjs +0 -322
  700. package/plugin/node_modules/markdown-it/lib/ruler.mjs +0 -340
  701. package/plugin/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
  702. package/plugin/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
  703. package/plugin/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
  704. package/plugin/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
  705. package/plugin/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
  706. package/plugin/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -69
  707. package/plugin/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -82
  708. package/plugin/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
  709. package/plugin/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -46
  710. package/plugin/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
  711. package/plugin/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
  712. package/plugin/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
  713. package/plugin/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
  714. package/plugin/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
  715. package/plugin/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
  716. package/plugin/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
  717. package/plugin/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
  718. package/plugin/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -193
  719. package/plugin/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
  720. package/plugin/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
  721. package/plugin/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
  722. package/plugin/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
  723. package/plugin/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
  724. package/plugin/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
  725. package/plugin/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  726. package/plugin/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -69
  727. package/plugin/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
  728. package/plugin/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
  729. package/plugin/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
  730. package/plugin/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
  731. package/plugin/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -63
  732. package/plugin/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
  733. package/plugin/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -123
  734. package/plugin/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
  735. package/plugin/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
  736. package/plugin/node_modules/markdown-it/lib/token.mjs +0 -191
  737. package/plugin/node_modules/markdown-it/package.json +0 -92
  738. package/plugin/node_modules/markdownlint/CHANGELOG.md +0 -520
  739. package/plugin/node_modules/markdownlint/CONTRIBUTING.md +0 -92
  740. package/plugin/node_modules/markdownlint/LICENSE +0 -21
  741. package/plugin/node_modules/markdownlint/README.md +0 -1124
  742. package/plugin/node_modules/markdownlint/doc/CustomRules.md +0 -194
  743. package/plugin/node_modules/markdownlint/doc/Prettier.md +0 -27
  744. package/plugin/node_modules/markdownlint/doc/ReleaseProcess.md +0 -20
  745. package/plugin/node_modules/markdownlint/doc/Rules.md +0 -2814
  746. package/plugin/node_modules/markdownlint/doc/md001.md +0 -51
  747. package/plugin/node_modules/markdownlint/doc/md003.md +0 -59
  748. package/plugin/node_modules/markdownlint/doc/md004.md +0 -50
  749. package/plugin/node_modules/markdownlint/doc/md005.md +0 -53
  750. package/plugin/node_modules/markdownlint/doc/md007.md +0 -52
  751. package/plugin/node_modules/markdownlint/doc/md009.md +0 -50
  752. package/plugin/node_modules/markdownlint/doc/md010.md +0 -62
  753. package/plugin/node_modules/markdownlint/doc/md011.md +0 -30
  754. package/plugin/node_modules/markdownlint/doc/md012.md +0 -38
  755. package/plugin/node_modules/markdownlint/doc/md013.md +0 -58
  756. package/plugin/node_modules/markdownlint/doc/md014.md +0 -54
  757. package/plugin/node_modules/markdownlint/doc/md018.md +0 -27
  758. package/plugin/node_modules/markdownlint/doc/md019.md +0 -28
  759. package/plugin/node_modules/markdownlint/doc/md020.md +0 -29
  760. package/plugin/node_modules/markdownlint/doc/md021.md +0 -31
  761. package/plugin/node_modules/markdownlint/doc/md022.md +0 -52
  762. package/plugin/node_modules/markdownlint/doc/md023.md +0 -33
  763. package/plugin/node_modules/markdownlint/doc/md024.md +0 -44
  764. package/plugin/node_modules/markdownlint/doc/md025.md +0 -49
  765. package/plugin/node_modules/markdownlint/doc/md026.md +0 -40
  766. package/plugin/node_modules/markdownlint/doc/md027.md +0 -32
  767. package/plugin/node_modules/markdownlint/doc/md028.md +0 -40
  768. package/plugin/node_modules/markdownlint/doc/md029.md +0 -100
  769. package/plugin/node_modules/markdownlint/doc/md030.md +0 -82
  770. package/plugin/node_modules/markdownlint/doc/md031.md +0 -50
  771. package/plugin/node_modules/markdownlint/doc/md032.md +0 -55
  772. package/plugin/node_modules/markdownlint/doc/md033.md +0 -33
  773. package/plugin/node_modules/markdownlint/doc/md034.md +0 -55
  774. package/plugin/node_modules/markdownlint/doc/md035.md +0 -37
  775. package/plugin/node_modules/markdownlint/doc/md036.md +0 -45
  776. package/plugin/node_modules/markdownlint/doc/md037.md +0 -37
  777. package/plugin/node_modules/markdownlint/doc/md038.md +0 -52
  778. package/plugin/node_modules/markdownlint/doc/md039.md +0 -21
  779. package/plugin/node_modules/markdownlint/doc/md040.md +0 -52
  780. package/plugin/node_modules/markdownlint/doc/md041.md +0 -64
  781. package/plugin/node_modules/markdownlint/doc/md042.md +0 -32
  782. package/plugin/node_modules/markdownlint/doc/md043.md +0 -87
  783. package/plugin/node_modules/markdownlint/doc/md044.md +0 -45
  784. package/plugin/node_modules/markdownlint/doc/md045.md +0 -48
  785. package/plugin/node_modules/markdownlint/doc/md046.md +0 -40
  786. package/plugin/node_modules/markdownlint/doc/md047.md +0 -34
  787. package/plugin/node_modules/markdownlint/doc/md048.md +0 -42
  788. package/plugin/node_modules/markdownlint/doc/md049.md +0 -36
  789. package/plugin/node_modules/markdownlint/doc/md050.md +0 -35
  790. package/plugin/node_modules/markdownlint/doc/md051.md +0 -117
  791. package/plugin/node_modules/markdownlint/doc/md052.md +0 -52
  792. package/plugin/node_modules/markdownlint/doc/md053.md +0 -38
  793. package/plugin/node_modules/markdownlint/doc/md054.md +0 -100
  794. package/plugin/node_modules/markdownlint/doc/md055.md +0 -55
  795. package/plugin/node_modules/markdownlint/doc/md056.md +0 -37
  796. package/plugin/node_modules/markdownlint/doc/md058.md +0 -48
  797. package/plugin/node_modules/markdownlint/doc/md059.md +0 -33
  798. package/plugin/node_modules/markdownlint/doc/md060.md +0 -118
  799. package/plugin/node_modules/markdownlint/helpers/LICENSE +0 -21
  800. package/plugin/node_modules/markdownlint/helpers/README.md +0 -29
  801. package/plugin/node_modules/markdownlint/helpers/helpers.cjs +0 -696
  802. package/plugin/node_modules/markdownlint/helpers/micromark-helpers.cjs +0 -331
  803. package/plugin/node_modules/markdownlint/helpers/package.json +0 -26
  804. package/plugin/node_modules/markdownlint/helpers/shared.cjs +0 -16
  805. package/plugin/node_modules/markdownlint/lib/cache.mjs +0 -80
  806. package/plugin/node_modules/markdownlint/lib/configuration-strict.d.ts +0 -2409
  807. package/plugin/node_modules/markdownlint/lib/configuration.d.ts +0 -8
  808. package/plugin/node_modules/markdownlint/lib/constants.mjs +0 -14
  809. package/plugin/node_modules/markdownlint/lib/defer-require.cjs +0 -18
  810. package/plugin/node_modules/markdownlint/lib/exports-async.d.mts +0 -1
  811. package/plugin/node_modules/markdownlint/lib/exports-async.mjs +0 -3
  812. package/plugin/node_modules/markdownlint/lib/exports-promise.d.mts +0 -1
  813. package/plugin/node_modules/markdownlint/lib/exports-promise.mjs +0 -3
  814. package/plugin/node_modules/markdownlint/lib/exports-sync.d.mts +0 -1
  815. package/plugin/node_modules/markdownlint/lib/exports-sync.mjs +0 -3
  816. package/plugin/node_modules/markdownlint/lib/exports.d.mts +0 -29
  817. package/plugin/node_modules/markdownlint/lib/exports.mjs +0 -32
  818. package/plugin/node_modules/markdownlint/lib/markdownit.cjs +0 -170
  819. package/plugin/node_modules/markdownlint/lib/markdownlint.d.mts +0 -600
  820. package/plugin/node_modules/markdownlint/lib/markdownlint.mjs +0 -1660
  821. package/plugin/node_modules/markdownlint/lib/md001.mjs +0 -32
  822. package/plugin/node_modules/markdownlint/lib/md003.mjs +0 -47
  823. package/plugin/node_modules/markdownlint/lib/md004.mjs +0 -72
  824. package/plugin/node_modules/markdownlint/lib/md005.mjs +0 -69
  825. package/plugin/node_modules/markdownlint/lib/md007.mjs +0 -84
  826. package/plugin/node_modules/markdownlint/lib/md009.mjs +0 -96
  827. package/plugin/node_modules/markdownlint/lib/md010.mjs +0 -78
  828. package/plugin/node_modules/markdownlint/lib/md011.mjs +0 -56
  829. package/plugin/node_modules/markdownlint/lib/md012.mjs +0 -40
  830. package/plugin/node_modules/markdownlint/lib/md013.mjs +0 -91
  831. package/plugin/node_modules/markdownlint/lib/md014.mjs +0 -47
  832. package/plugin/node_modules/markdownlint/lib/md018.mjs +0 -43
  833. package/plugin/node_modules/markdownlint/lib/md019-md021.mjs +0 -77
  834. package/plugin/node_modules/markdownlint/lib/md020.mjs +0 -68
  835. package/plugin/node_modules/markdownlint/lib/md022.mjs +0 -100
  836. package/plugin/node_modules/markdownlint/lib/md023.mjs +0 -37
  837. package/plugin/node_modules/markdownlint/lib/md024.mjs +0 -45
  838. package/plugin/node_modules/markdownlint/lib/md025.mjs +0 -45
  839. package/plugin/node_modules/markdownlint/lib/md026.mjs +0 -46
  840. package/plugin/node_modules/markdownlint/lib/md027.mjs +0 -50
  841. package/plugin/node_modules/markdownlint/lib/md028.mjs +0 -39
  842. package/plugin/node_modules/markdownlint/lib/md029.mjs +0 -84
  843. package/plugin/node_modules/markdownlint/lib/md030.mjs +0 -57
  844. package/plugin/node_modules/markdownlint/lib/md031.mjs +0 -61
  845. package/plugin/node_modules/markdownlint/lib/md032.mjs +0 -78
  846. package/plugin/node_modules/markdownlint/lib/md033.mjs +0 -46
  847. package/plugin/node_modules/markdownlint/lib/md034.mjs +0 -92
  848. package/plugin/node_modules/markdownlint/lib/md035.mjs +0 -23
  849. package/plugin/node_modules/markdownlint/lib/md036.mjs +0 -54
  850. package/plugin/node_modules/markdownlint/lib/md037.mjs +0 -94
  851. package/plugin/node_modules/markdownlint/lib/md038.mjs +0 -73
  852. package/plugin/node_modules/markdownlint/lib/md039.mjs +0 -59
  853. package/plugin/node_modules/markdownlint/lib/md040.mjs +0 -32
  854. package/plugin/node_modules/markdownlint/lib/md041.mjs +0 -71
  855. package/plugin/node_modules/markdownlint/lib/md042.mjs +0 -58
  856. package/plugin/node_modules/markdownlint/lib/md043.mjs +0 -72
  857. package/plugin/node_modules/markdownlint/lib/md044.mjs +0 -110
  858. package/plugin/node_modules/markdownlint/lib/md045.mjs +0 -61
  859. package/plugin/node_modules/markdownlint/lib/md046.mjs +0 -31
  860. package/plugin/node_modules/markdownlint/lib/md047.mjs +0 -28
  861. package/plugin/node_modules/markdownlint/lib/md048.mjs +0 -47
  862. package/plugin/node_modules/markdownlint/lib/md049-md050.mjs +0 -115
  863. package/plugin/node_modules/markdownlint/lib/md051.mjs +0 -172
  864. package/plugin/node_modules/markdownlint/lib/md052.mjs +0 -40
  865. package/plugin/node_modules/markdownlint/lib/md053.mjs +0 -60
  866. package/plugin/node_modules/markdownlint/lib/md054.mjs +0 -122
  867. package/plugin/node_modules/markdownlint/lib/md055.mjs +0 -72
  868. package/plugin/node_modules/markdownlint/lib/md056.mjs +0 -50
  869. package/plugin/node_modules/markdownlint/lib/md058.mjs +0 -57
  870. package/plugin/node_modules/markdownlint/lib/md059.mjs +0 -71
  871. package/plugin/node_modules/markdownlint/lib/md060.mjs +0 -170
  872. package/plugin/node_modules/markdownlint/lib/micromark-parse.mjs +0 -322
  873. package/plugin/node_modules/markdownlint/lib/micromark-types.d.mts +0 -11
  874. package/plugin/node_modules/markdownlint/lib/node-imports-browser.mjs +0 -22
  875. package/plugin/node_modules/markdownlint/lib/node-imports-node.mjs +0 -11
  876. package/plugin/node_modules/markdownlint/lib/parse-configuration.mjs +0 -47
  877. package/plugin/node_modules/markdownlint/lib/resolve-module.cjs +0 -52
  878. package/plugin/node_modules/markdownlint/lib/resolve-module.d.cts +0 -34
  879. package/plugin/node_modules/markdownlint/lib/rules.mjs +0 -122
  880. package/plugin/node_modules/markdownlint/lib/types.d.mts +0 -13
  881. package/plugin/node_modules/markdownlint/package.json +0 -123
  882. package/plugin/node_modules/markdownlint/schema/.markdownlint.jsonc +0 -347
  883. package/plugin/node_modules/markdownlint/schema/.markdownlint.yaml +0 -308
  884. package/plugin/node_modules/markdownlint/schema/ValidatingConfiguration.md +0 -26
  885. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema-strict.json +0 -5128
  886. package/plugin/node_modules/markdownlint/schema/markdownlint-config-schema.json +0 -5133
  887. package/plugin/node_modules/markdownlint/style/all.json +0 -5
  888. package/plugin/node_modules/markdownlint/style/cirosantilli.json +0 -22
  889. package/plugin/node_modules/markdownlint/style/prettier.json +0 -27
  890. package/plugin/node_modules/markdownlint/style/relaxed.json +0 -12
  891. package/plugin/node_modules/markdownlint-cli2/CHANGELOG.md +0 -258
  892. package/plugin/node_modules/markdownlint-cli2/LICENSE +0 -21
  893. package/plugin/node_modules/markdownlint-cli2/README.md +0 -578
  894. package/plugin/node_modules/markdownlint-cli2/append-to-array.mjs +0 -24
  895. package/plugin/node_modules/markdownlint-cli2/constants.mjs +0 -30
  896. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-helpers.mjs +0 -3
  897. package/plugin/node_modules/markdownlint-cli2/export-markdownlint-promise.mjs +0 -3
  898. package/plugin/node_modules/markdownlint-cli2/export-markdownlint.mjs +0 -3
  899. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2-bin.mjs +0 -18
  900. package/plugin/node_modules/markdownlint-cli2/markdownlint-cli2.mjs +0 -1165
  901. package/plugin/node_modules/markdownlint-cli2/merge-options.mjs +0 -27
  902. package/plugin/node_modules/markdownlint-cli2/package.json +0 -124
  903. package/plugin/node_modules/markdownlint-cli2/parsers/jsonc-parse.mjs +0 -22
  904. package/plugin/node_modules/markdownlint-cli2/parsers/parsers.mjs +0 -17
  905. package/plugin/node_modules/markdownlint-cli2/parsers/toml-parse.mjs +0 -11
  906. package/plugin/node_modules/markdownlint-cli2/parsers/yaml-parse.mjs +0 -16
  907. package/plugin/node_modules/markdownlint-cli2/schema/ValidatingConfiguration.md +0 -24
  908. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json +0 -138
  909. package/plugin/node_modules/markdownlint-cli2/schema/markdownlint-config-schema.json +0 -5133
  910. package/plugin/node_modules/markdownlint-cli2-formatter-default/LICENSE +0 -21
  911. package/plugin/node_modules/markdownlint-cli2-formatter-default/README.md +0 -54
  912. package/plugin/node_modules/markdownlint-cli2-formatter-default/markdownlint-cli2-formatter-default.js +0 -25
  913. package/plugin/node_modules/markdownlint-cli2-formatter-default/package.json +0 -27
  914. package/plugin/node_modules/mdurl/LICENSE +0 -45
  915. package/plugin/node_modules/mdurl/README.md +0 -102
  916. package/plugin/node_modules/mdurl/build/index.cjs.js +0 -534
  917. package/plugin/node_modules/mdurl/index.mjs +0 -11
  918. package/plugin/node_modules/mdurl/lib/decode.mjs +0 -112
  919. package/plugin/node_modules/mdurl/lib/encode.mjs +0 -89
  920. package/plugin/node_modules/mdurl/lib/format.mjs +0 -21
  921. package/plugin/node_modules/mdurl/lib/parse.mjs +0 -308
  922. package/plugin/node_modules/mdurl/package.json +0 -37
  923. package/plugin/node_modules/merge2/LICENSE +0 -21
  924. package/plugin/node_modules/merge2/README.md +0 -144
  925. package/plugin/node_modules/merge2/index.js +0 -144
  926. package/plugin/node_modules/merge2/package.json +0 -43
  927. package/plugin/node_modules/micromark/dev/index.d.ts +0 -82
  928. package/plugin/node_modules/micromark/dev/index.d.ts.map +0 -1
  929. package/plugin/node_modules/micromark/dev/index.js +0 -68
  930. package/plugin/node_modules/micromark/dev/lib/compile.d.ts +0 -16
  931. package/plugin/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
  932. package/plugin/node_modules/micromark/dev/lib/compile.js +0 -1152
  933. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
  934. package/plugin/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
  935. package/plugin/node_modules/micromark/dev/lib/constructs.js +0 -101
  936. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
  937. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
  938. package/plugin/node_modules/micromark/dev/lib/create-tokenizer.js +0 -717
  939. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
  940. package/plugin/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
  941. package/plugin/node_modules/micromark/dev/lib/initialize/content.js +0 -99
  942. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
  943. package/plugin/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
  944. package/plugin/node_modules/micromark/dev/lib/initialize/document.js +0 -445
  945. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
  946. package/plugin/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
  947. package/plugin/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
  948. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
  949. package/plugin/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
  950. package/plugin/node_modules/micromark/dev/lib/initialize/text.js +0 -244
  951. package/plugin/node_modules/micromark/dev/lib/parse.d.ts +0 -10
  952. package/plugin/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
  953. package/plugin/node_modules/micromark/dev/lib/parse.js +0 -58
  954. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
  955. package/plugin/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
  956. package/plugin/node_modules/micromark/dev/lib/postprocess.js +0 -19
  957. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
  958. package/plugin/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
  959. package/plugin/node_modules/micromark/dev/lib/preprocess.js +0 -141
  960. package/plugin/node_modules/micromark/dev/stream.d.ts +0 -35
  961. package/plugin/node_modules/micromark/dev/stream.d.ts.map +0 -1
  962. package/plugin/node_modules/micromark/dev/stream.js +0 -270
  963. package/plugin/node_modules/micromark/index.d.ts +0 -82
  964. package/plugin/node_modules/micromark/index.d.ts.map +0 -1
  965. package/plugin/node_modules/micromark/index.js +0 -60
  966. package/plugin/node_modules/micromark/lib/compile.d.ts +0 -16
  967. package/plugin/node_modules/micromark/lib/compile.d.ts.map +0 -1
  968. package/plugin/node_modules/micromark/lib/compile.js +0 -1060
  969. package/plugin/node_modules/micromark/lib/constructs.d.ts +0 -73
  970. package/plugin/node_modules/micromark/lib/constructs.d.ts.map +0 -1
  971. package/plugin/node_modules/micromark/lib/constructs.js +0 -85
  972. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
  973. package/plugin/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
  974. package/plugin/node_modules/micromark/lib/create-tokenizer.js +0 -611
  975. package/plugin/node_modules/micromark/lib/initialize/content.d.ts +0 -4
  976. package/plugin/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
  977. package/plugin/node_modules/micromark/lib/initialize/content.js +0 -79
  978. package/plugin/node_modules/micromark/lib/initialize/document.d.ts +0 -10
  979. package/plugin/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
  980. package/plugin/node_modules/micromark/lib/initialize/document.js +0 -362
  981. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
  982. package/plugin/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
  983. package/plugin/node_modules/micromark/lib/initialize/flow.js +0 -58
  984. package/plugin/node_modules/micromark/lib/initialize/text.d.ts +0 -8
  985. package/plugin/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
  986. package/plugin/node_modules/micromark/lib/initialize/text.js +0 -212
  987. package/plugin/node_modules/micromark/lib/parse.d.ts +0 -10
  988. package/plugin/node_modules/micromark/lib/parse.d.ts.map +0 -1
  989. package/plugin/node_modules/micromark/lib/parse.js +0 -56
  990. package/plugin/node_modules/micromark/lib/postprocess.d.ts +0 -9
  991. package/plugin/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
  992. package/plugin/node_modules/micromark/lib/postprocess.js +0 -18
  993. package/plugin/node_modules/micromark/lib/preprocess.d.ts +0 -13
  994. package/plugin/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
  995. package/plugin/node_modules/micromark/lib/preprocess.js +0 -115
  996. package/plugin/node_modules/micromark/license +0 -22
  997. package/plugin/node_modules/micromark/package.json +0 -100
  998. package/plugin/node_modules/micromark/readme.md +0 -488
  999. package/plugin/node_modules/micromark/stream.d.ts +0 -35
  1000. package/plugin/node_modules/micromark/stream.d.ts.map +0 -1
  1001. package/plugin/node_modules/micromark/stream.js +0 -256
  1002. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
  1003. package/plugin/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
  1004. package/plugin/node_modules/micromark-core-commonmark/dev/index.js +0 -22
  1005. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
  1006. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
  1007. package/plugin/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -300
  1008. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
  1009. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
  1010. package/plugin/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
  1011. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
  1012. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
  1013. package/plugin/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
  1014. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
  1015. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
  1016. package/plugin/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
  1017. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
  1018. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
  1019. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
  1020. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
  1021. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
  1022. package/plugin/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
  1023. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
  1024. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
  1025. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -514
  1026. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
  1027. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
  1028. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -202
  1029. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
  1030. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
  1031. package/plugin/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
  1032. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
  1033. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
  1034. package/plugin/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
  1035. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
  1036. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
  1037. package/plugin/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
  1038. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
  1039. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
  1040. package/plugin/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
  1041. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
  1042. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
  1043. package/plugin/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -233
  1044. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
  1045. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
  1046. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -989
  1047. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
  1048. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
  1049. package/plugin/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
  1050. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
  1051. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
  1052. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -656
  1053. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
  1054. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
  1055. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -110
  1056. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
  1057. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
  1058. package/plugin/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -62
  1059. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
  1060. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
  1061. package/plugin/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
  1062. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
  1063. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
  1064. package/plugin/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
  1065. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
  1066. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
  1067. package/plugin/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -210
  1068. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
  1069. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
  1070. package/plugin/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
  1071. package/plugin/node_modules/micromark-core-commonmark/index.d.ts +0 -23
  1072. package/plugin/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
  1073. package/plugin/node_modules/micromark-core-commonmark/index.js +0 -22
  1074. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
  1075. package/plugin/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
  1076. package/plugin/node_modules/micromark-core-commonmark/lib/attention.js +0 -241
  1077. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
  1078. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
  1079. package/plugin/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
  1080. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
  1081. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
  1082. package/plugin/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
  1083. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
  1084. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
  1085. package/plugin/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
  1086. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
  1087. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
  1088. package/plugin/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
  1089. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
  1090. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
  1091. package/plugin/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
  1092. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
  1093. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
  1094. package/plugin/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -460
  1095. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
  1096. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
  1097. package/plugin/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -177
  1098. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
  1099. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
  1100. package/plugin/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
  1101. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
  1102. package/plugin/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
  1103. package/plugin/node_modules/micromark-core-commonmark/lib/content.js +0 -163
  1104. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
  1105. package/plugin/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
  1106. package/plugin/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
  1107. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
  1108. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
  1109. package/plugin/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
  1110. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
  1111. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
  1112. package/plugin/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -195
  1113. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
  1114. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
  1115. package/plugin/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -876
  1116. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
  1117. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
  1118. package/plugin/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
  1119. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
  1120. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
  1121. package/plugin/node_modules/micromark-core-commonmark/lib/label-end.js +0 -560
  1122. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
  1123. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
  1124. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -102
  1125. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
  1126. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
  1127. package/plugin/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -55
  1128. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
  1129. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
  1130. package/plugin/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
  1131. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
  1132. package/plugin/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
  1133. package/plugin/node_modules/micromark-core-commonmark/lib/list.js +0 -213
  1134. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
  1135. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
  1136. package/plugin/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -185
  1137. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
  1138. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
  1139. package/plugin/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
  1140. package/plugin/node_modules/micromark-core-commonmark/license +0 -22
  1141. package/plugin/node_modules/micromark-core-commonmark/package.json +0 -74
  1142. package/plugin/node_modules/micromark-core-commonmark/readme.md +0 -171
  1143. package/plugin/node_modules/micromark-extension-directive/dev/index.d.ts +0 -156
  1144. package/plugin/node_modules/micromark-extension-directive/dev/index.js +0 -3
  1145. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts +0 -4
  1146. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.d.ts.map +0 -1
  1147. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-container.js +0 -323
  1148. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts +0 -4
  1149. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.d.ts.map +0 -1
  1150. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-leaf.js +0 -124
  1151. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts +0 -4
  1152. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.d.ts.map +0 -1
  1153. package/plugin/node_modules/micromark-extension-directive/dev/lib/directive-text.js +0 -113
  1154. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts +0 -23
  1155. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.d.ts.map +0 -1
  1156. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-attributes.js +0 -348
  1157. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts +0 -15
  1158. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.d.ts.map +0 -1
  1159. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-label.js +0 -135
  1160. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts +0 -14
  1161. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.d.ts.map +0 -1
  1162. package/plugin/node_modules/micromark-extension-directive/dev/lib/factory-name.js +0 -59
  1163. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts +0 -14
  1164. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.d.ts.map +0 -1
  1165. package/plugin/node_modules/micromark-extension-directive/dev/lib/html.js +0 -265
  1166. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts +0 -10
  1167. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.d.ts.map +0 -1
  1168. package/plugin/node_modules/micromark-extension-directive/dev/lib/syntax.js +0 -22
  1169. package/plugin/node_modules/micromark-extension-directive/index.d.ts +0 -156
  1170. package/plugin/node_modules/micromark-extension-directive/index.js +0 -3
  1171. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts +0 -4
  1172. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.d.ts.map +0 -1
  1173. package/plugin/node_modules/micromark-extension-directive/lib/directive-container.js +0 -259
  1174. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts +0 -4
  1175. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.d.ts.map +0 -1
  1176. package/plugin/node_modules/micromark-extension-directive/lib/directive-leaf.js +0 -91
  1177. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts +0 -4
  1178. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.d.ts.map +0 -1
  1179. package/plugin/node_modules/micromark-extension-directive/lib/directive-text.js +0 -82
  1180. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts +0 -23
  1181. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.d.ts.map +0 -1
  1182. package/plugin/node_modules/micromark-extension-directive/lib/factory-attributes.js +0 -238
  1183. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts +0 -15
  1184. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.d.ts.map +0 -1
  1185. package/plugin/node_modules/micromark-extension-directive/lib/factory-label.js +0 -107
  1186. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts +0 -14
  1187. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.d.ts.map +0 -1
  1188. package/plugin/node_modules/micromark-extension-directive/lib/factory-name.js +0 -36
  1189. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts +0 -14
  1190. package/plugin/node_modules/micromark-extension-directive/lib/html.d.ts.map +0 -1
  1191. package/plugin/node_modules/micromark-extension-directive/lib/html.js +0 -233
  1192. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts +0 -10
  1193. package/plugin/node_modules/micromark-extension-directive/lib/syntax.d.ts.map +0 -1
  1194. package/plugin/node_modules/micromark-extension-directive/lib/syntax.js +0 -25
  1195. package/plugin/node_modules/micromark-extension-directive/license +0 -22
  1196. package/plugin/node_modules/micromark-extension-directive/package.json +0 -124
  1197. package/plugin/node_modules/micromark-extension-directive/readme.md +0 -451
  1198. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.d.ts +0 -24
  1199. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/index.js +0 -2
  1200. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.d.ts +0 -10
  1201. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/html.js +0 -56
  1202. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.d.ts +0 -10
  1203. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/dev/lib/syntax.js +0 -983
  1204. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.d.ts +0 -24
  1205. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/index.js +0 -2
  1206. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.d.ts +0 -10
  1207. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +0 -60
  1208. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.d.ts +0 -10
  1209. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +0 -854
  1210. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/license +0 -22
  1211. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/package.json +0 -116
  1212. package/plugin/node_modules/micromark-extension-gfm-autolink-literal/readme.md +0 -422
  1213. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.d.ts +0 -164
  1214. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/index.js +0 -3
  1215. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.d.ts +0 -25
  1216. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/html.js +0 -226
  1217. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.d.ts +0 -9
  1218. package/plugin/node_modules/micromark-extension-gfm-footnote/dev/lib/syntax.js +0 -558
  1219. package/plugin/node_modules/micromark-extension-gfm-footnote/index.d.ts +0 -164
  1220. package/plugin/node_modules/micromark-extension-gfm-footnote/index.js +0 -3
  1221. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.d.ts +0 -25
  1222. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/html.js +0 -154
  1223. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.d.ts +0 -9
  1224. package/plugin/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +0 -485
  1225. package/plugin/node_modules/micromark-extension-gfm-footnote/license +0 -22
  1226. package/plugin/node_modules/micromark-extension-gfm-footnote/package.json +0 -132
  1227. package/plugin/node_modules/micromark-extension-gfm-footnote/readme.md +0 -656
  1228. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.d.ts +0 -55
  1229. package/plugin/node_modules/micromark-extension-gfm-table/dev/index.js +0 -2
  1230. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +0 -38
  1231. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +0 -1
  1232. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +0 -212
  1233. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +0 -11
  1234. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +0 -1
  1235. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/html.js +0 -148
  1236. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +0 -14
  1237. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +0 -1
  1238. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +0 -64
  1239. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +0 -18
  1240. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +0 -1
  1241. package/plugin/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +0 -941
  1242. package/plugin/node_modules/micromark-extension-gfm-table/index.d.ts +0 -55
  1243. package/plugin/node_modules/micromark-extension-gfm-table/index.js +0 -2
  1244. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +0 -38
  1245. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +0 -1
  1246. package/plugin/node_modules/micromark-extension-gfm-table/lib/edit-map.js +0 -202
  1247. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts +0 -11
  1248. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +0 -1
  1249. package/plugin/node_modules/micromark-extension-gfm-table/lib/html.js +0 -130
  1250. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +0 -14
  1251. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +0 -1
  1252. package/plugin/node_modules/micromark-extension-gfm-table/lib/infer.js +0 -52
  1253. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +0 -18
  1254. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +0 -1
  1255. package/plugin/node_modules/micromark-extension-gfm-table/lib/syntax.js +0 -819
  1256. package/plugin/node_modules/micromark-extension-gfm-table/license +0 -22
  1257. package/plugin/node_modules/micromark-extension-gfm-table/package.json +0 -128
  1258. package/plugin/node_modules/micromark-extension-gfm-table/readme.md +0 -515
  1259. package/plugin/node_modules/micromark-extension-math/dev/index.d.ts +0 -61
  1260. package/plugin/node_modules/micromark-extension-math/dev/index.js +0 -3
  1261. package/plugin/node_modules/micromark-extension-math/dev/lib/html.d.ts +0 -15
  1262. package/plugin/node_modules/micromark-extension-math/dev/lib/html.js +0 -82
  1263. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.d.ts +0 -3
  1264. package/plugin/node_modules/micromark-extension-math/dev/lib/math-flow.js +0 -394
  1265. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.d.ts +0 -9
  1266. package/plugin/node_modules/micromark-extension-math/dev/lib/math-text.js +0 -267
  1267. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.d.ts +0 -12
  1268. package/plugin/node_modules/micromark-extension-math/dev/lib/syntax.js +0 -24
  1269. package/plugin/node_modules/micromark-extension-math/index.d.ts +0 -61
  1270. package/plugin/node_modules/micromark-extension-math/index.js +0 -3
  1271. package/plugin/node_modules/micromark-extension-math/lib/html.d.ts +0 -15
  1272. package/plugin/node_modules/micromark-extension-math/lib/html.js +0 -84
  1273. package/plugin/node_modules/micromark-extension-math/lib/math-flow.d.ts +0 -3
  1274. package/plugin/node_modules/micromark-extension-math/lib/math-flow.js +0 -345
  1275. package/plugin/node_modules/micromark-extension-math/lib/math-text.d.ts +0 -9
  1276. package/plugin/node_modules/micromark-extension-math/lib/math-text.js +0 -232
  1277. package/plugin/node_modules/micromark-extension-math/lib/syntax.d.ts +0 -12
  1278. package/plugin/node_modules/micromark-extension-math/lib/syntax.js +0 -27
  1279. package/plugin/node_modules/micromark-extension-math/license +0 -22
  1280. package/plugin/node_modules/micromark-extension-math/package.json +0 -121
  1281. package/plugin/node_modules/micromark-extension-math/readme.md +0 -429
  1282. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
  1283. package/plugin/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
  1284. package/plugin/node_modules/micromark-factory-destination/dev/index.js +0 -255
  1285. package/plugin/node_modules/micromark-factory-destination/index.d.ts +0 -42
  1286. package/plugin/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
  1287. package/plugin/node_modules/micromark-factory-destination/index.js +0 -206
  1288. package/plugin/node_modules/micromark-factory-destination/license +0 -22
  1289. package/plugin/node_modules/micromark-factory-destination/package.json +0 -57
  1290. package/plugin/node_modules/micromark-factory-destination/readme.md +0 -234
  1291. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
  1292. package/plugin/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
  1293. package/plugin/node_modules/micromark-factory-label/dev/index.js +0 -172
  1294. package/plugin/node_modules/micromark-factory-label/index.d.ts +0 -37
  1295. package/plugin/node_modules/micromark-factory-label/index.d.ts.map +0 -1
  1296. package/plugin/node_modules/micromark-factory-label/index.js +0 -148
  1297. package/plugin/node_modules/micromark-factory-label/license +0 -22
  1298. package/plugin/node_modules/micromark-factory-label/package.json +0 -60
  1299. package/plugin/node_modules/micromark-factory-label/readme.md +0 -224
  1300. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
  1301. package/plugin/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
  1302. package/plugin/node_modules/micromark-factory-space/dev/index.js +0 -67
  1303. package/plugin/node_modules/micromark-factory-space/index.d.ts +0 -37
  1304. package/plugin/node_modules/micromark-factory-space/index.d.ts.map +0 -1
  1305. package/plugin/node_modules/micromark-factory-space/index.js +0 -64
  1306. package/plugin/node_modules/micromark-factory-space/license +0 -22
  1307. package/plugin/node_modules/micromark-factory-space/package.json +0 -55
  1308. package/plugin/node_modules/micromark-factory-space/readme.md +0 -225
  1309. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
  1310. package/plugin/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
  1311. package/plugin/node_modules/micromark-factory-title/dev/index.js +0 -169
  1312. package/plugin/node_modules/micromark-factory-title/index.d.ts +0 -36
  1313. package/plugin/node_modules/micromark-factory-title/index.d.ts.map +0 -1
  1314. package/plugin/node_modules/micromark-factory-title/index.js +0 -158
  1315. package/plugin/node_modules/micromark-factory-title/license +0 -22
  1316. package/plugin/node_modules/micromark-factory-title/package.json +0 -58
  1317. package/plugin/node_modules/micromark-factory-title/readme.md +0 -229
  1318. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
  1319. package/plugin/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
  1320. package/plugin/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
  1321. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
  1322. package/plugin/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
  1323. package/plugin/node_modules/micromark-factory-whitespace/index.js +0 -44
  1324. package/plugin/node_modules/micromark-factory-whitespace/license +0 -22
  1325. package/plugin/node_modules/micromark-factory-whitespace/package.json +0 -57
  1326. package/plugin/node_modules/micromark-factory-whitespace/readme.md +0 -205
  1327. package/plugin/node_modules/micromark-util-character/dev/index.d.ts +0 -195
  1328. package/plugin/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
  1329. package/plugin/node_modules/micromark-util-character/dev/index.js +0 -252
  1330. package/plugin/node_modules/micromark-util-character/index.d.ts +0 -195
  1331. package/plugin/node_modules/micromark-util-character/index.d.ts.map +0 -1
  1332. package/plugin/node_modules/micromark-util-character/index.js +0 -246
  1333. package/plugin/node_modules/micromark-util-character/license +0 -22
  1334. package/plugin/node_modules/micromark-util-character/package.json +0 -57
  1335. package/plugin/node_modules/micromark-util-character/readme.md +0 -446
  1336. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
  1337. package/plugin/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
  1338. package/plugin/node_modules/micromark-util-chunked/dev/index.js +0 -89
  1339. package/plugin/node_modules/micromark-util-chunked/index.d.ts +0 -41
  1340. package/plugin/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
  1341. package/plugin/node_modules/micromark-util-chunked/index.js +0 -81
  1342. package/plugin/node_modules/micromark-util-chunked/license +0 -22
  1343. package/plugin/node_modules/micromark-util-chunked/package.json +0 -57
  1344. package/plugin/node_modules/micromark-util-chunked/readme.md +0 -219
  1345. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
  1346. package/plugin/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
  1347. package/plugin/node_modules/micromark-util-classify-character/dev/index.js +0 -38
  1348. package/plugin/node_modules/micromark-util-classify-character/index.d.ts +0 -18
  1349. package/plugin/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
  1350. package/plugin/node_modules/micromark-util-classify-character/index.js +0 -27
  1351. package/plugin/node_modules/micromark-util-classify-character/license +0 -22
  1352. package/plugin/node_modules/micromark-util-classify-character/package.json +0 -59
  1353. package/plugin/node_modules/micromark-util-classify-character/readme.md +0 -205
  1354. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
  1355. package/plugin/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
  1356. package/plugin/node_modules/micromark-util-combine-extensions/index.js +0 -143
  1357. package/plugin/node_modules/micromark-util-combine-extensions/license +0 -22
  1358. package/plugin/node_modules/micromark-util-combine-extensions/package.json +0 -52
  1359. package/plugin/node_modules/micromark-util-combine-extensions/readme.md +0 -201
  1360. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
  1361. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
  1362. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
  1363. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
  1364. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
  1365. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
  1366. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
  1367. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
  1368. package/plugin/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
  1369. package/plugin/node_modules/micromark-util-encode/index.d.ts +0 -14
  1370. package/plugin/node_modules/micromark-util-encode/index.d.ts.map +0 -1
  1371. package/plugin/node_modules/micromark-util-encode/index.js +0 -33
  1372. package/plugin/node_modules/micromark-util-encode/license +0 -22
  1373. package/plugin/node_modules/micromark-util-encode/package.json +0 -47
  1374. package/plugin/node_modules/micromark-util-encode/readme.md +0 -176
  1375. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
  1376. package/plugin/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
  1377. package/plugin/node_modules/micromark-util-html-tag-name/index.js +0 -93
  1378. package/plugin/node_modules/micromark-util-html-tag-name/license +0 -22
  1379. package/plugin/node_modules/micromark-util-html-tag-name/package.json +0 -47
  1380. package/plugin/node_modules/micromark-util-html-tag-name/readme.md +0 -193
  1381. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
  1382. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
  1383. package/plugin/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
  1384. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
  1385. package/plugin/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
  1386. package/plugin/node_modules/micromark-util-normalize-identifier/index.js +0 -33
  1387. package/plugin/node_modules/micromark-util-normalize-identifier/license +0 -22
  1388. package/plugin/node_modules/micromark-util-normalize-identifier/package.json +0 -58
  1389. package/plugin/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
  1390. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
  1391. package/plugin/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
  1392. package/plugin/node_modules/micromark-util-resolve-all/index.js +0 -32
  1393. package/plugin/node_modules/micromark-util-resolve-all/license +0 -22
  1394. package/plugin/node_modules/micromark-util-resolve-all/package.json +0 -48
  1395. package/plugin/node_modules/micromark-util-resolve-all/readme.md +0 -238
  1396. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
  1397. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
  1398. package/plugin/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
  1399. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
  1400. package/plugin/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
  1401. package/plugin/node_modules/micromark-util-sanitize-uri/index.js +0 -107
  1402. package/plugin/node_modules/micromark-util-sanitize-uri/license +0 -22
  1403. package/plugin/node_modules/micromark-util-sanitize-uri/package.json +0 -59
  1404. package/plugin/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
  1405. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
  1406. package/plugin/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
  1407. package/plugin/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
  1408. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
  1409. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
  1410. package/plugin/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
  1411. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
  1412. package/plugin/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
  1413. package/plugin/node_modules/micromark-util-subtokenize/index.js +0 -228
  1414. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
  1415. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
  1416. package/plugin/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
  1417. package/plugin/node_modules/micromark-util-subtokenize/license +0 -22
  1418. package/plugin/node_modules/micromark-util-subtokenize/package.json +0 -60
  1419. package/plugin/node_modules/micromark-util-subtokenize/readme.md +0 -181
  1420. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
  1421. package/plugin/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
  1422. package/plugin/node_modules/micromark-util-symbol/lib/codes.js +0 -158
  1423. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
  1424. package/plugin/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
  1425. package/plugin/node_modules/micromark-util-symbol/lib/constants.js +0 -44
  1426. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
  1427. package/plugin/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
  1428. package/plugin/node_modules/micromark-util-symbol/lib/default.js +0 -4
  1429. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
  1430. package/plugin/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
  1431. package/plugin/node_modules/micromark-util-symbol/lib/types.js +0 -453
  1432. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
  1433. package/plugin/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
  1434. package/plugin/node_modules/micromark-util-symbol/lib/values.js +0 -109
  1435. package/plugin/node_modules/micromark-util-symbol/license +0 -22
  1436. package/plugin/node_modules/micromark-util-symbol/package.json +0 -43
  1437. package/plugin/node_modules/micromark-util-symbol/readme.md +0 -168
  1438. package/plugin/node_modules/micromark-util-types/index.d.ts +0 -1312
  1439. package/plugin/node_modules/micromark-util-types/index.js +0 -2
  1440. package/plugin/node_modules/micromark-util-types/license +0 -22
  1441. package/plugin/node_modules/micromark-util-types/package.json +0 -71
  1442. package/plugin/node_modules/micromark-util-types/readme.md +0 -151
  1443. package/plugin/node_modules/micromatch/LICENSE +0 -21
  1444. package/plugin/node_modules/micromatch/README.md +0 -1024
  1445. package/plugin/node_modules/micromatch/index.js +0 -474
  1446. package/plugin/node_modules/micromatch/package.json +0 -119
  1447. package/plugin/node_modules/ms/index.js +0 -162
  1448. package/plugin/node_modules/ms/license.md +0 -21
  1449. package/plugin/node_modules/ms/package.json +0 -38
  1450. package/plugin/node_modules/ms/readme.md +0 -59
  1451. package/plugin/node_modules/parse-entities/index.d.ts +0 -126
  1452. package/plugin/node_modules/parse-entities/index.js +0 -3
  1453. package/plugin/node_modules/parse-entities/lib/index.d.ts +0 -9
  1454. package/plugin/node_modules/parse-entities/lib/index.d.ts.map +0 -1
  1455. package/plugin/node_modules/parse-entities/lib/index.js +0 -407
  1456. package/plugin/node_modules/parse-entities/license +0 -22
  1457. package/plugin/node_modules/parse-entities/package.json +0 -91
  1458. package/plugin/node_modules/parse-entities/readme.md +0 -266
  1459. package/plugin/node_modules/picomatch/LICENSE +0 -21
  1460. package/plugin/node_modules/picomatch/README.md +0 -716
  1461. package/plugin/node_modules/picomatch/index.js +0 -3
  1462. package/plugin/node_modules/picomatch/lib/constants.js +0 -184
  1463. package/plugin/node_modules/picomatch/lib/parse.js +0 -1392
  1464. package/plugin/node_modules/picomatch/lib/picomatch.js +0 -342
  1465. package/plugin/node_modules/picomatch/lib/scan.js +0 -391
  1466. package/plugin/node_modules/picomatch/lib/utils.js +0 -64
  1467. package/plugin/node_modules/picomatch/package.json +0 -81
  1468. package/plugin/node_modules/punycode.js/LICENSE-MIT.txt +0 -20
  1469. package/plugin/node_modules/punycode.js/README.md +0 -148
  1470. package/plugin/node_modules/punycode.js/package.json +0 -58
  1471. package/plugin/node_modules/punycode.js/punycode.es6.js +0 -444
  1472. package/plugin/node_modules/punycode.js/punycode.js +0 -443
  1473. package/plugin/node_modules/queue-microtask/LICENSE +0 -20
  1474. package/plugin/node_modules/queue-microtask/README.md +0 -90
  1475. package/plugin/node_modules/queue-microtask/index.d.ts +0 -2
  1476. package/plugin/node_modules/queue-microtask/index.js +0 -9
  1477. package/plugin/node_modules/queue-microtask/package.json +0 -55
  1478. package/plugin/node_modules/reusify/.github/dependabot.yml +0 -7
  1479. package/plugin/node_modules/reusify/.github/workflows/ci.yml +0 -96
  1480. package/plugin/node_modules/reusify/LICENSE +0 -22
  1481. package/plugin/node_modules/reusify/README.md +0 -139
  1482. package/plugin/node_modules/reusify/SECURITY.md +0 -15
  1483. package/plugin/node_modules/reusify/benchmarks/createNoCodeFunction.js +0 -30
  1484. package/plugin/node_modules/reusify/benchmarks/fib.js +0 -13
  1485. package/plugin/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +0 -38
  1486. package/plugin/node_modules/reusify/eslint.config.js +0 -14
  1487. package/plugin/node_modules/reusify/package.json +0 -50
  1488. package/plugin/node_modules/reusify/reusify.d.ts +0 -14
  1489. package/plugin/node_modules/reusify/reusify.js +0 -33
  1490. package/plugin/node_modules/reusify/test.js +0 -66
  1491. package/plugin/node_modules/reusify/tsconfig.json +0 -11
  1492. package/plugin/node_modules/run-parallel/LICENSE +0 -20
  1493. package/plugin/node_modules/run-parallel/README.md +0 -85
  1494. package/plugin/node_modules/run-parallel/index.js +0 -51
  1495. package/plugin/node_modules/run-parallel/package.json +0 -58
  1496. package/plugin/node_modules/slash/index.d.ts +0 -23
  1497. package/plugin/node_modules/slash/index.js +0 -9
  1498. package/plugin/node_modules/slash/license +0 -9
  1499. package/plugin/node_modules/slash/package.json +0 -39
  1500. package/plugin/node_modules/slash/readme.md +0 -36
  1501. package/plugin/node_modules/smol-toml/LICENSE +0 -24
  1502. package/plugin/node_modules/smol-toml/README.md +0 -239
  1503. package/plugin/node_modules/smol-toml/dist/date.d.ts +0 -41
  1504. package/plugin/node_modules/smol-toml/dist/date.js +0 -127
  1505. package/plugin/node_modules/smol-toml/dist/error.d.ts +0 -38
  1506. package/plugin/node_modules/smol-toml/dist/error.js +0 -63
  1507. package/plugin/node_modules/smol-toml/dist/extract.d.ts +0 -30
  1508. package/plugin/node_modules/smol-toml/dist/extract.js +0 -100
  1509. package/plugin/node_modules/smol-toml/dist/index.cjs +0 -897
  1510. package/plugin/node_modules/smol-toml/dist/index.d.ts +0 -43
  1511. package/plugin/node_modules/smol-toml/dist/index.js +0 -33
  1512. package/plugin/node_modules/smol-toml/dist/parse.d.ts +0 -37
  1513. package/plugin/node_modules/smol-toml/dist/parse.js +0 -148
  1514. package/plugin/node_modules/smol-toml/dist/primitive.d.ts +0 -31
  1515. package/plugin/node_modules/smol-toml/dist/primitive.js +0 -179
  1516. package/plugin/node_modules/smol-toml/dist/stringify.d.ts +0 -31
  1517. package/plugin/node_modules/smol-toml/dist/stringify.js +0 -167
  1518. package/plugin/node_modules/smol-toml/dist/struct.d.ts +0 -32
  1519. package/plugin/node_modules/smol-toml/dist/struct.js +0 -184
  1520. package/plugin/node_modules/smol-toml/dist/util.d.ts +0 -42
  1521. package/plugin/node_modules/smol-toml/dist/util.js +0 -111
  1522. package/plugin/node_modules/smol-toml/package.json +0 -54
  1523. package/plugin/node_modules/string-width/index.d.ts +0 -39
  1524. package/plugin/node_modules/string-width/index.js +0 -89
  1525. package/plugin/node_modules/string-width/license +0 -9
  1526. package/plugin/node_modules/string-width/package.json +0 -65
  1527. package/plugin/node_modules/string-width/readme.md +0 -66
  1528. package/plugin/node_modules/strip-ansi/index.d.ts +0 -15
  1529. package/plugin/node_modules/strip-ansi/index.js +0 -19
  1530. package/plugin/node_modules/strip-ansi/license +0 -9
  1531. package/plugin/node_modules/strip-ansi/package.json +0 -59
  1532. package/plugin/node_modules/strip-ansi/readme.md +0 -37
  1533. package/plugin/node_modules/to-regex-range/LICENSE +0 -21
  1534. package/plugin/node_modules/to-regex-range/README.md +0 -305
  1535. package/plugin/node_modules/to-regex-range/index.js +0 -288
  1536. package/plugin/node_modules/to-regex-range/package.json +0 -88
  1537. package/plugin/node_modules/uc.micro/LICENSE.txt +0 -20
  1538. package/plugin/node_modules/uc.micro/README.md +0 -14
  1539. package/plugin/node_modules/uc.micro/build/index.cjs.js +0 -20
  1540. package/plugin/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
  1541. package/plugin/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
  1542. package/plugin/node_modules/uc.micro/categories/P/regex.mjs +0 -1
  1543. package/plugin/node_modules/uc.micro/categories/S/regex.mjs +0 -1
  1544. package/plugin/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
  1545. package/plugin/node_modules/uc.micro/index.mjs +0 -8
  1546. package/plugin/node_modules/uc.micro/package.json +0 -37
  1547. package/plugin/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
  1548. package/plugin/node_modules/unicorn-magic/default.d.ts +0 -13
  1549. package/plugin/node_modules/unicorn-magic/default.js +0 -14
  1550. package/plugin/node_modules/unicorn-magic/license +0 -9
  1551. package/plugin/node_modules/unicorn-magic/node.d.ts +0 -125
  1552. package/plugin/node_modules/unicorn-magic/node.js +0 -49
  1553. package/plugin/node_modules/unicorn-magic/package.json +0 -68
  1554. package/plugin/node_modules/unicorn-magic/readme.md +0 -31
@@ -1,1944 +0,0 @@
1
- const EventEmitter = require('events').EventEmitter;
2
- const childProcess = require('child_process');
3
- const path = require('path');
4
- const fs = require('fs');
5
-
6
- const { Argument, humanReadableArgName } = require('./argument.js');
7
- const { CommanderError } = require('./error.js');
8
- const { Help } = require('./help.js');
9
- const { Option, splitOptionFlags } = require('./option.js');
10
- const { suggestSimilar } = require('./suggestSimilar');
11
-
12
- // @ts-check
13
-
14
- class Command extends EventEmitter {
15
- /**
16
- * Initialize a new `Command`.
17
- *
18
- * @param {string} [name]
19
- */
20
-
21
- constructor(name) {
22
- super();
23
- /** @type {Command[]} */
24
- this.commands = [];
25
- /** @type {Option[]} */
26
- this.options = [];
27
- this.parent = null;
28
- this._allowUnknownOption = false;
29
- this._allowExcessArguments = true;
30
- /** @type {Argument[]} */
31
- this._args = [];
32
- /** @type {string[]} */
33
- this.args = []; // cli args with options removed
34
- this.rawArgs = [];
35
- this.processedArgs = []; // like .args but after custom processing and collecting variadic
36
- this._scriptPath = null;
37
- this._name = name || '';
38
- this._optionValues = {};
39
- this._optionValueSources = {}; // default < config < env < cli
40
- this._storeOptionsAsProperties = false;
41
- this._actionHandler = null;
42
- this._executableHandler = false;
43
- this._executableFile = null; // custom name for executable
44
- this._defaultCommandName = null;
45
- this._exitCallback = null;
46
- this._aliases = [];
47
- this._combineFlagAndOptionalValue = true;
48
- this._description = '';
49
- this._argsDescription = undefined; // legacy
50
- this._enablePositionalOptions = false;
51
- this._passThroughOptions = false;
52
- this._lifeCycleHooks = {}; // a hash of arrays
53
- /** @type {boolean | string} */
54
- this._showHelpAfterError = false;
55
- this._showSuggestionAfterError = false;
56
-
57
- // see .configureOutput() for docs
58
- this._outputConfiguration = {
59
- writeOut: (str) => process.stdout.write(str),
60
- writeErr: (str) => process.stderr.write(str),
61
- getOutHelpWidth: () => process.stdout.isTTY ? process.stdout.columns : undefined,
62
- getErrHelpWidth: () => process.stderr.isTTY ? process.stderr.columns : undefined,
63
- outputError: (str, write) => write(str)
64
- };
65
-
66
- this._hidden = false;
67
- this._hasHelpOption = true;
68
- this._helpFlags = '-h, --help';
69
- this._helpDescription = 'display help for command';
70
- this._helpShortFlag = '-h';
71
- this._helpLongFlag = '--help';
72
- this._addImplicitHelpCommand = undefined; // Deliberately undefined, not decided whether true or false
73
- this._helpCommandName = 'help';
74
- this._helpCommandnameAndArgs = 'help [command]';
75
- this._helpCommandDescription = 'display help for command';
76
- this._helpConfiguration = {};
77
- }
78
-
79
- /**
80
- * Copy settings that are useful to have in common across root command and subcommands.
81
- *
82
- * (Used internally when adding a command using `.command()` so subcommands inherit parent settings.)
83
- *
84
- * @param {Command} sourceCommand
85
- * @return {Command} returns `this` for executable command
86
- */
87
- copyInheritedSettings(sourceCommand) {
88
- this._outputConfiguration = sourceCommand._outputConfiguration;
89
- this._hasHelpOption = sourceCommand._hasHelpOption;
90
- this._helpFlags = sourceCommand._helpFlags;
91
- this._helpDescription = sourceCommand._helpDescription;
92
- this._helpShortFlag = sourceCommand._helpShortFlag;
93
- this._helpLongFlag = sourceCommand._helpLongFlag;
94
- this._helpCommandName = sourceCommand._helpCommandName;
95
- this._helpCommandnameAndArgs = sourceCommand._helpCommandnameAndArgs;
96
- this._helpCommandDescription = sourceCommand._helpCommandDescription;
97
- this._helpConfiguration = sourceCommand._helpConfiguration;
98
- this._exitCallback = sourceCommand._exitCallback;
99
- this._storeOptionsAsProperties = sourceCommand._storeOptionsAsProperties;
100
- this._combineFlagAndOptionalValue = sourceCommand._combineFlagAndOptionalValue;
101
- this._allowExcessArguments = sourceCommand._allowExcessArguments;
102
- this._enablePositionalOptions = sourceCommand._enablePositionalOptions;
103
- this._showHelpAfterError = sourceCommand._showHelpAfterError;
104
- this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError;
105
-
106
- return this;
107
- }
108
-
109
- /**
110
- * Define a command.
111
- *
112
- * There are two styles of command: pay attention to where to put the description.
113
- *
114
- * @example
115
- * // Command implemented using action handler (description is supplied separately to `.command`)
116
- * program
117
- * .command('clone <source> [destination]')
118
- * .description('clone a repository into a newly created directory')
119
- * .action((source, destination) => {
120
- * console.log('clone command called');
121
- * });
122
- *
123
- * // Command implemented using separate executable file (description is second parameter to `.command`)
124
- * program
125
- * .command('start <service>', 'start named service')
126
- * .command('stop [service]', 'stop named service, or all if no name supplied');
127
- *
128
- * @param {string} nameAndArgs - command name and arguments, args are `<required>` or `[optional]` and last may also be `variadic...`
129
- * @param {Object|string} [actionOptsOrExecDesc] - configuration options (for action), or description (for executable)
130
- * @param {Object} [execOpts] - configuration options (for executable)
131
- * @return {Command} returns new command for action handler, or `this` for executable command
132
- */
133
-
134
- command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
135
- let desc = actionOptsOrExecDesc;
136
- let opts = execOpts;
137
- if (typeof desc === 'object' && desc !== null) {
138
- opts = desc;
139
- desc = null;
140
- }
141
- opts = opts || {};
142
- const [, name, args] = nameAndArgs.match(/([^ ]+) *(.*)/);
143
-
144
- const cmd = this.createCommand(name);
145
- if (desc) {
146
- cmd.description(desc);
147
- cmd._executableHandler = true;
148
- }
149
- if (opts.isDefault) this._defaultCommandName = cmd._name;
150
- cmd._hidden = !!(opts.noHelp || opts.hidden); // noHelp is deprecated old name for hidden
151
- cmd._executableFile = opts.executableFile || null; // Custom name for executable file, set missing to null to match constructor
152
- if (args) cmd.arguments(args);
153
- this.commands.push(cmd);
154
- cmd.parent = this;
155
- cmd.copyInheritedSettings(this);
156
-
157
- if (desc) return this;
158
- return cmd;
159
- };
160
-
161
- /**
162
- * Factory routine to create a new unattached command.
163
- *
164
- * See .command() for creating an attached subcommand, which uses this routine to
165
- * create the command. You can override createCommand to customise subcommands.
166
- *
167
- * @param {string} [name]
168
- * @return {Command} new command
169
- */
170
-
171
- createCommand(name) {
172
- return new Command(name);
173
- };
174
-
175
- /**
176
- * You can customise the help with a subclass of Help by overriding createHelp,
177
- * or by overriding Help properties using configureHelp().
178
- *
179
- * @return {Help}
180
- */
181
-
182
- createHelp() {
183
- return Object.assign(new Help(), this.configureHelp());
184
- };
185
-
186
- /**
187
- * You can customise the help by overriding Help properties using configureHelp(),
188
- * or with a subclass of Help by overriding createHelp().
189
- *
190
- * @param {Object} [configuration] - configuration options
191
- * @return {Command|Object} `this` command for chaining, or stored configuration
192
- */
193
-
194
- configureHelp(configuration) {
195
- if (configuration === undefined) return this._helpConfiguration;
196
-
197
- this._helpConfiguration = configuration;
198
- return this;
199
- }
200
-
201
- /**
202
- * The default output goes to stdout and stderr. You can customise this for special
203
- * applications. You can also customise the display of errors by overriding outputError.
204
- *
205
- * The configuration properties are all functions:
206
- *
207
- * // functions to change where being written, stdout and stderr
208
- * writeOut(str)
209
- * writeErr(str)
210
- * // matching functions to specify width for wrapping help
211
- * getOutHelpWidth()
212
- * getErrHelpWidth()
213
- * // functions based on what is being written out
214
- * outputError(str, write) // used for displaying errors, and not used for displaying help
215
- *
216
- * @param {Object} [configuration] - configuration options
217
- * @return {Command|Object} `this` command for chaining, or stored configuration
218
- */
219
-
220
- configureOutput(configuration) {
221
- if (configuration === undefined) return this._outputConfiguration;
222
-
223
- Object.assign(this._outputConfiguration, configuration);
224
- return this;
225
- }
226
-
227
- /**
228
- * Display the help or a custom message after an error occurs.
229
- *
230
- * @param {boolean|string} [displayHelp]
231
- * @return {Command} `this` command for chaining
232
- */
233
- showHelpAfterError(displayHelp = true) {
234
- if (typeof displayHelp !== 'string') displayHelp = !!displayHelp;
235
- this._showHelpAfterError = displayHelp;
236
- return this;
237
- }
238
-
239
- /**
240
- * Display suggestion of similar commands for unknown commands, or options for unknown options.
241
- *
242
- * @param {boolean} [displaySuggestion]
243
- * @return {Command} `this` command for chaining
244
- */
245
- showSuggestionAfterError(displaySuggestion = true) {
246
- this._showSuggestionAfterError = !!displaySuggestion;
247
- return this;
248
- }
249
-
250
- /**
251
- * Add a prepared subcommand.
252
- *
253
- * See .command() for creating an attached subcommand which inherits settings from its parent.
254
- *
255
- * @param {Command} cmd - new subcommand
256
- * @param {Object} [opts] - configuration options
257
- * @return {Command} `this` command for chaining
258
- */
259
-
260
- addCommand(cmd, opts) {
261
- if (!cmd._name) throw new Error('Command passed to .addCommand() must have a name');
262
-
263
- // To keep things simple, block automatic name generation for deeply nested executables.
264
- // Fail fast and detect when adding rather than later when parsing.
265
- function checkExplicitNames(commandArray) {
266
- commandArray.forEach((cmd) => {
267
- if (cmd._executableHandler && !cmd._executableFile) {
268
- throw new Error(`Must specify executableFile for deeply nested executable: ${cmd.name()}`);
269
- }
270
- checkExplicitNames(cmd.commands);
271
- });
272
- }
273
- checkExplicitNames(cmd.commands);
274
-
275
- opts = opts || {};
276
- if (opts.isDefault) this._defaultCommandName = cmd._name;
277
- if (opts.noHelp || opts.hidden) cmd._hidden = true; // modifying passed command due to existing implementation
278
-
279
- this.commands.push(cmd);
280
- cmd.parent = this;
281
- return this;
282
- };
283
-
284
- /**
285
- * Factory routine to create a new unattached argument.
286
- *
287
- * See .argument() for creating an attached argument, which uses this routine to
288
- * create the argument. You can override createArgument to return a custom argument.
289
- *
290
- * @param {string} name
291
- * @param {string} [description]
292
- * @return {Argument} new argument
293
- */
294
-
295
- createArgument(name, description) {
296
- return new Argument(name, description);
297
- };
298
-
299
- /**
300
- * Define argument syntax for command.
301
- *
302
- * The default is that the argument is required, and you can explicitly
303
- * indicate this with <> around the name. Put [] around the name for an optional argument.
304
- *
305
- * @example
306
- * program.argument('<input-file>');
307
- * program.argument('[output-file]');
308
- *
309
- * @param {string} name
310
- * @param {string} [description]
311
- * @param {Function|*} [fn] - custom argument processing function
312
- * @param {*} [defaultValue]
313
- * @return {Command} `this` command for chaining
314
- */
315
- argument(name, description, fn, defaultValue) {
316
- const argument = this.createArgument(name, description);
317
- if (typeof fn === 'function') {
318
- argument.default(defaultValue).argParser(fn);
319
- } else {
320
- argument.default(fn);
321
- }
322
- this.addArgument(argument);
323
- return this;
324
- }
325
-
326
- /**
327
- * Define argument syntax for command, adding multiple at once (without descriptions).
328
- *
329
- * See also .argument().
330
- *
331
- * @example
332
- * program.arguments('<cmd> [env]');
333
- *
334
- * @param {string} names
335
- * @return {Command} `this` command for chaining
336
- */
337
-
338
- arguments(names) {
339
- names.split(/ +/).forEach((detail) => {
340
- this.argument(detail);
341
- });
342
- return this;
343
- };
344
-
345
- /**
346
- * Define argument syntax for command, adding a prepared argument.
347
- *
348
- * @param {Argument} argument
349
- * @return {Command} `this` command for chaining
350
- */
351
- addArgument(argument) {
352
- const previousArgument = this._args.slice(-1)[0];
353
- if (previousArgument && previousArgument.variadic) {
354
- throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
355
- }
356
- if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
357
- throw new Error(`a default value for a required argument is never used: '${argument.name()}'`);
358
- }
359
- this._args.push(argument);
360
- return this;
361
- }
362
-
363
- /**
364
- * Override default decision whether to add implicit help command.
365
- *
366
- * addHelpCommand() // force on
367
- * addHelpCommand(false); // force off
368
- * addHelpCommand('help [cmd]', 'display help for [cmd]'); // force on with custom details
369
- *
370
- * @return {Command} `this` command for chaining
371
- */
372
-
373
- addHelpCommand(enableOrNameAndArgs, description) {
374
- if (enableOrNameAndArgs === false) {
375
- this._addImplicitHelpCommand = false;
376
- } else {
377
- this._addImplicitHelpCommand = true;
378
- if (typeof enableOrNameAndArgs === 'string') {
379
- this._helpCommandName = enableOrNameAndArgs.split(' ')[0];
380
- this._helpCommandnameAndArgs = enableOrNameAndArgs;
381
- }
382
- this._helpCommandDescription = description || this._helpCommandDescription;
383
- }
384
- return this;
385
- };
386
-
387
- /**
388
- * @return {boolean}
389
- * @api private
390
- */
391
-
392
- _hasImplicitHelpCommand() {
393
- if (this._addImplicitHelpCommand === undefined) {
394
- return this.commands.length && !this._actionHandler && !this._findCommand('help');
395
- }
396
- return this._addImplicitHelpCommand;
397
- };
398
-
399
- /**
400
- * Add hook for life cycle event.
401
- *
402
- * @param {string} event
403
- * @param {Function} listener
404
- * @return {Command} `this` command for chaining
405
- */
406
-
407
- hook(event, listener) {
408
- const allowedValues = ['preAction', 'postAction'];
409
- if (!allowedValues.includes(event)) {
410
- throw new Error(`Unexpected value for event passed to hook : '${event}'.
411
- Expecting one of '${allowedValues.join("', '")}'`);
412
- }
413
- if (this._lifeCycleHooks[event]) {
414
- this._lifeCycleHooks[event].push(listener);
415
- } else {
416
- this._lifeCycleHooks[event] = [listener];
417
- }
418
- return this;
419
- }
420
-
421
- /**
422
- * Register callback to use as replacement for calling process.exit.
423
- *
424
- * @param {Function} [fn] optional callback which will be passed a CommanderError, defaults to throwing
425
- * @return {Command} `this` command for chaining
426
- */
427
-
428
- exitOverride(fn) {
429
- if (fn) {
430
- this._exitCallback = fn;
431
- } else {
432
- this._exitCallback = (err) => {
433
- if (err.code !== 'commander.executeSubCommandAsync') {
434
- throw err;
435
- } else {
436
- // Async callback from spawn events, not useful to throw.
437
- }
438
- };
439
- }
440
- return this;
441
- };
442
-
443
- /**
444
- * Call process.exit, and _exitCallback if defined.
445
- *
446
- * @param {number} exitCode exit code for using with process.exit
447
- * @param {string} code an id string representing the error
448
- * @param {string} message human-readable description of the error
449
- * @return never
450
- * @api private
451
- */
452
-
453
- _exit(exitCode, code, message) {
454
- if (this._exitCallback) {
455
- this._exitCallback(new CommanderError(exitCode, code, message));
456
- // Expecting this line is not reached.
457
- }
458
- process.exit(exitCode);
459
- };
460
-
461
- /**
462
- * Register callback `fn` for the command.
463
- *
464
- * @example
465
- * program
466
- * .command('serve')
467
- * .description('start service')
468
- * .action(function() {
469
- * // do work here
470
- * });
471
- *
472
- * @param {Function} fn
473
- * @return {Command} `this` command for chaining
474
- */
475
-
476
- action(fn) {
477
- const listener = (args) => {
478
- // The .action callback takes an extra parameter which is the command or options.
479
- const expectedArgsCount = this._args.length;
480
- const actionArgs = args.slice(0, expectedArgsCount);
481
- if (this._storeOptionsAsProperties) {
482
- actionArgs[expectedArgsCount] = this; // backwards compatible "options"
483
- } else {
484
- actionArgs[expectedArgsCount] = this.opts();
485
- }
486
- actionArgs.push(this);
487
-
488
- return fn.apply(this, actionArgs);
489
- };
490
- this._actionHandler = listener;
491
- return this;
492
- };
493
-
494
- /**
495
- * Factory routine to create a new unattached option.
496
- *
497
- * See .option() for creating an attached option, which uses this routine to
498
- * create the option. You can override createOption to return a custom option.
499
- *
500
- * @param {string} flags
501
- * @param {string} [description]
502
- * @return {Option} new option
503
- */
504
-
505
- createOption(flags, description) {
506
- return new Option(flags, description);
507
- };
508
-
509
- /**
510
- * Add an option.
511
- *
512
- * @param {Option} option
513
- * @return {Command} `this` command for chaining
514
- */
515
- addOption(option) {
516
- const oname = option.name();
517
- const name = option.attributeName();
518
-
519
- let defaultValue = option.defaultValue;
520
-
521
- // preassign default value for --no-*, [optional], <required>, or plain flag if boolean value
522
- if (option.negate || option.optional || option.required || typeof defaultValue === 'boolean') {
523
- // when --no-foo we make sure default is true, unless a --foo option is already defined
524
- if (option.negate) {
525
- const positiveLongFlag = option.long.replace(/^--no-/, '--');
526
- defaultValue = this._findOption(positiveLongFlag) ? this.getOptionValue(name) : true;
527
- }
528
- // preassign only if we have a default
529
- if (defaultValue !== undefined) {
530
- this.setOptionValueWithSource(name, defaultValue, 'default');
531
- }
532
- }
533
-
534
- // register the option
535
- this.options.push(option);
536
-
537
- // handler for cli and env supplied values
538
- const handleOptionValue = (val, invalidValueMessage, valueSource) => {
539
- // Note: using closure to access lots of lexical scoped variables.
540
- const oldValue = this.getOptionValue(name);
541
-
542
- // custom processing
543
- if (val !== null && option.parseArg) {
544
- try {
545
- val = option.parseArg(val, oldValue === undefined ? defaultValue : oldValue);
546
- } catch (err) {
547
- if (err.code === 'commander.invalidArgument') {
548
- const message = `${invalidValueMessage} ${err.message}`;
549
- this._displayError(err.exitCode, err.code, message);
550
- }
551
- throw err;
552
- }
553
- } else if (val !== null && option.variadic) {
554
- val = option._concatValue(val, oldValue);
555
- }
556
-
557
- // unassigned or boolean value
558
- if (typeof oldValue === 'boolean' || typeof oldValue === 'undefined') {
559
- // if no value, negate false, and we have a default, then use it!
560
- if (val == null) {
561
- this.setOptionValueWithSource(name, option.negate ? false : defaultValue || true, valueSource);
562
- } else {
563
- this.setOptionValueWithSource(name, val, valueSource);
564
- }
565
- } else if (val !== null) {
566
- // reassign
567
- this.setOptionValueWithSource(name, option.negate ? false : val, valueSource);
568
- }
569
- };
570
-
571
- this.on('option:' + oname, (val) => {
572
- const invalidValueMessage = `error: option '${option.flags}' argument '${val}' is invalid.`;
573
- handleOptionValue(val, invalidValueMessage, 'cli');
574
- });
575
-
576
- if (option.envVar) {
577
- this.on('optionEnv:' + oname, (val) => {
578
- const invalidValueMessage = `error: option '${option.flags}' value '${val}' from env '${option.envVar}' is invalid.`;
579
- handleOptionValue(val, invalidValueMessage, 'env');
580
- });
581
- }
582
-
583
- return this;
584
- }
585
-
586
- /**
587
- * Internal implementation shared by .option() and .requiredOption()
588
- *
589
- * @api private
590
- */
591
- _optionEx(config, flags, description, fn, defaultValue) {
592
- const option = this.createOption(flags, description);
593
- option.makeOptionMandatory(!!config.mandatory);
594
- if (typeof fn === 'function') {
595
- option.default(defaultValue).argParser(fn);
596
- } else if (fn instanceof RegExp) {
597
- // deprecated
598
- const regex = fn;
599
- fn = (val, def) => {
600
- const m = regex.exec(val);
601
- return m ? m[0] : def;
602
- };
603
- option.default(defaultValue).argParser(fn);
604
- } else {
605
- option.default(fn);
606
- }
607
-
608
- return this.addOption(option);
609
- }
610
-
611
- /**
612
- * Define option with `flags`, `description` and optional
613
- * coercion `fn`.
614
- *
615
- * The `flags` string contains the short and/or long flags,
616
- * separated by comma, a pipe or space. The following are all valid
617
- * all will output this way when `--help` is used.
618
- *
619
- * "-p, --pepper"
620
- * "-p|--pepper"
621
- * "-p --pepper"
622
- *
623
- * @example
624
- * // simple boolean defaulting to undefined
625
- * program.option('-p, --pepper', 'add pepper');
626
- *
627
- * program.pepper
628
- * // => undefined
629
- *
630
- * --pepper
631
- * program.pepper
632
- * // => true
633
- *
634
- * // simple boolean defaulting to true (unless non-negated option is also defined)
635
- * program.option('-C, --no-cheese', 'remove cheese');
636
- *
637
- * program.cheese
638
- * // => true
639
- *
640
- * --no-cheese
641
- * program.cheese
642
- * // => false
643
- *
644
- * // required argument
645
- * program.option('-C, --chdir <path>', 'change the working directory');
646
- *
647
- * --chdir /tmp
648
- * program.chdir
649
- * // => "/tmp"
650
- *
651
- * // optional argument
652
- * program.option('-c, --cheese [type]', 'add cheese [marble]');
653
- *
654
- * @param {string} flags
655
- * @param {string} [description]
656
- * @param {Function|*} [fn] - custom option processing function or default value
657
- * @param {*} [defaultValue]
658
- * @return {Command} `this` command for chaining
659
- */
660
-
661
- option(flags, description, fn, defaultValue) {
662
- return this._optionEx({}, flags, description, fn, defaultValue);
663
- };
664
-
665
- /**
666
- * Add a required option which must have a value after parsing. This usually means
667
- * the option must be specified on the command line. (Otherwise the same as .option().)
668
- *
669
- * The `flags` string contains the short and/or long flags, separated by comma, a pipe or space.
670
- *
671
- * @param {string} flags
672
- * @param {string} [description]
673
- * @param {Function|*} [fn] - custom option processing function or default value
674
- * @param {*} [defaultValue]
675
- * @return {Command} `this` command for chaining
676
- */
677
-
678
- requiredOption(flags, description, fn, defaultValue) {
679
- return this._optionEx({ mandatory: true }, flags, description, fn, defaultValue);
680
- };
681
-
682
- /**
683
- * Alter parsing of short flags with optional values.
684
- *
685
- * @example
686
- * // for `.option('-f,--flag [value]'):
687
- * program.combineFlagAndOptionalValue(true); // `-f80` is treated like `--flag=80`, this is the default behaviour
688
- * program.combineFlagAndOptionalValue(false) // `-fb` is treated like `-f -b`
689
- *
690
- * @param {Boolean} [combine=true] - if `true` or omitted, an optional value can be specified directly after the flag.
691
- */
692
- combineFlagAndOptionalValue(combine = true) {
693
- this._combineFlagAndOptionalValue = !!combine;
694
- return this;
695
- };
696
-
697
- /**
698
- * Allow unknown options on the command line.
699
- *
700
- * @param {Boolean} [allowUnknown=true] - if `true` or omitted, no error will be thrown
701
- * for unknown options.
702
- */
703
- allowUnknownOption(allowUnknown = true) {
704
- this._allowUnknownOption = !!allowUnknown;
705
- return this;
706
- };
707
-
708
- /**
709
- * Allow excess command-arguments on the command line. Pass false to make excess arguments an error.
710
- *
711
- * @param {Boolean} [allowExcess=true] - if `true` or omitted, no error will be thrown
712
- * for excess arguments.
713
- */
714
- allowExcessArguments(allowExcess = true) {
715
- this._allowExcessArguments = !!allowExcess;
716
- return this;
717
- };
718
-
719
- /**
720
- * Enable positional options. Positional means global options are specified before subcommands which lets
721
- * subcommands reuse the same option names, and also enables subcommands to turn on passThroughOptions.
722
- * The default behaviour is non-positional and global options may appear anywhere on the command line.
723
- *
724
- * @param {Boolean} [positional=true]
725
- */
726
- enablePositionalOptions(positional = true) {
727
- this._enablePositionalOptions = !!positional;
728
- return this;
729
- };
730
-
731
- /**
732
- * Pass through options that come after command-arguments rather than treat them as command-options,
733
- * so actual command-options come before command-arguments. Turning this on for a subcommand requires
734
- * positional options to have been enabled on the program (parent commands).
735
- * The default behaviour is non-positional and options may appear before or after command-arguments.
736
- *
737
- * @param {Boolean} [passThrough=true]
738
- * for unknown options.
739
- */
740
- passThroughOptions(passThrough = true) {
741
- this._passThroughOptions = !!passThrough;
742
- if (!!this.parent && passThrough && !this.parent._enablePositionalOptions) {
743
- throw new Error('passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)');
744
- }
745
- return this;
746
- };
747
-
748
- /**
749
- * Whether to store option values as properties on command object,
750
- * or store separately (specify false). In both cases the option values can be accessed using .opts().
751
- *
752
- * @param {boolean} [storeAsProperties=true]
753
- * @return {Command} `this` command for chaining
754
- */
755
-
756
- storeOptionsAsProperties(storeAsProperties = true) {
757
- this._storeOptionsAsProperties = !!storeAsProperties;
758
- if (this.options.length) {
759
- throw new Error('call .storeOptionsAsProperties() before adding options');
760
- }
761
- return this;
762
- };
763
-
764
- /**
765
- * Retrieve option value.
766
- *
767
- * @param {string} key
768
- * @return {Object} value
769
- */
770
-
771
- getOptionValue(key) {
772
- if (this._storeOptionsAsProperties) {
773
- return this[key];
774
- }
775
- return this._optionValues[key];
776
- };
777
-
778
- /**
779
- * Store option value.
780
- *
781
- * @param {string} key
782
- * @param {Object} value
783
- * @return {Command} `this` command for chaining
784
- */
785
-
786
- setOptionValue(key, value) {
787
- if (this._storeOptionsAsProperties) {
788
- this[key] = value;
789
- } else {
790
- this._optionValues[key] = value;
791
- }
792
- return this;
793
- };
794
-
795
- /**
796
- * Store option value and where the value came from.
797
- *
798
- * @param {string} key
799
- * @param {Object} value
800
- * @param {string} source - expected values are default/config/env/cli
801
- * @return {Command} `this` command for chaining
802
- */
803
-
804
- setOptionValueWithSource(key, value, source) {
805
- this.setOptionValue(key, value);
806
- this._optionValueSources[key] = source;
807
- return this;
808
- }
809
-
810
- /**
811
- * Get source of option value.
812
- * Expected values are default | config | env | cli
813
- *
814
- * @param {string} key
815
- * @return {string}
816
- */
817
-
818
- getOptionValueSource(key) {
819
- return this._optionValueSources[key];
820
- };
821
-
822
- /**
823
- * Get user arguments implied or explicit arguments.
824
- * Side-effects: set _scriptPath if args included application, and use that to set implicit command name.
825
- *
826
- * @api private
827
- */
828
-
829
- _prepareUserArgs(argv, parseOptions) {
830
- if (argv !== undefined && !Array.isArray(argv)) {
831
- throw new Error('first parameter to parse must be array or undefined');
832
- }
833
- parseOptions = parseOptions || {};
834
-
835
- // Default to using process.argv
836
- if (argv === undefined) {
837
- argv = process.argv;
838
- // @ts-ignore: unknown property
839
- if (process.versions && process.versions.electron) {
840
- parseOptions.from = 'electron';
841
- }
842
- }
843
- this.rawArgs = argv.slice();
844
-
845
- // make it a little easier for callers by supporting various argv conventions
846
- let userArgs;
847
- switch (parseOptions.from) {
848
- case undefined:
849
- case 'node':
850
- this._scriptPath = argv[1];
851
- userArgs = argv.slice(2);
852
- break;
853
- case 'electron':
854
- // @ts-ignore: unknown property
855
- if (process.defaultApp) {
856
- this._scriptPath = argv[1];
857
- userArgs = argv.slice(2);
858
- } else {
859
- userArgs = argv.slice(1);
860
- }
861
- break;
862
- case 'user':
863
- userArgs = argv.slice(0);
864
- break;
865
- default:
866
- throw new Error(`unexpected parse option { from: '${parseOptions.from}' }`);
867
- }
868
- if (!this._scriptPath && require.main) {
869
- this._scriptPath = require.main.filename;
870
- }
871
-
872
- // Guess name, used in usage in help.
873
- this._name = this._name || (this._scriptPath && path.basename(this._scriptPath, path.extname(this._scriptPath)));
874
-
875
- return userArgs;
876
- }
877
-
878
- /**
879
- * Parse `argv`, setting options and invoking commands when defined.
880
- *
881
- * The default expectation is that the arguments are from node and have the application as argv[0]
882
- * and the script being run in argv[1], with user parameters after that.
883
- *
884
- * @example
885
- * program.parse(process.argv);
886
- * program.parse(); // implicitly use process.argv and auto-detect node vs electron conventions
887
- * program.parse(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
888
- *
889
- * @param {string[]} [argv] - optional, defaults to process.argv
890
- * @param {Object} [parseOptions] - optionally specify style of options with from: node/user/electron
891
- * @param {string} [parseOptions.from] - where the args are from: 'node', 'user', 'electron'
892
- * @return {Command} `this` command for chaining
893
- */
894
-
895
- parse(argv, parseOptions) {
896
- const userArgs = this._prepareUserArgs(argv, parseOptions);
897
- this._parseCommand([], userArgs);
898
-
899
- return this;
900
- };
901
-
902
- /**
903
- * Parse `argv`, setting options and invoking commands when defined.
904
- *
905
- * Use parseAsync instead of parse if any of your action handlers are async. Returns a Promise.
906
- *
907
- * The default expectation is that the arguments are from node and have the application as argv[0]
908
- * and the script being run in argv[1], with user parameters after that.
909
- *
910
- * @example
911
- * await program.parseAsync(process.argv);
912
- * await program.parseAsync(); // implicitly use process.argv and auto-detect node vs electron conventions
913
- * await program.parseAsync(my-args, { from: 'user' }); // just user supplied arguments, nothing special about argv[0]
914
- *
915
- * @param {string[]} [argv]
916
- * @param {Object} [parseOptions]
917
- * @param {string} parseOptions.from - where the args are from: 'node', 'user', 'electron'
918
- * @return {Promise}
919
- */
920
-
921
- async parseAsync(argv, parseOptions) {
922
- const userArgs = this._prepareUserArgs(argv, parseOptions);
923
- await this._parseCommand([], userArgs);
924
-
925
- return this;
926
- };
927
-
928
- /**
929
- * Execute a sub-command executable.
930
- *
931
- * @api private
932
- */
933
-
934
- _executeSubCommand(subcommand, args) {
935
- args = args.slice();
936
- let launchWithNode = false; // Use node for source targets so do not need to get permissions correct, and on Windows.
937
- const sourceExt = ['.js', '.ts', '.tsx', '.mjs', '.cjs'];
938
-
939
- // Not checking for help first. Unlikely to have mandatory and executable, and can't robustly test for help flags in external command.
940
- this._checkForMissingMandatoryOptions();
941
-
942
- // Want the entry script as the reference for command name and directory for searching for other files.
943
- let scriptPath = this._scriptPath;
944
- // Fallback in case not set, due to how Command created or called.
945
- if (!scriptPath && require.main) {
946
- scriptPath = require.main.filename;
947
- }
948
-
949
- let baseDir;
950
- try {
951
- const resolvedLink = fs.realpathSync(scriptPath);
952
- baseDir = path.dirname(resolvedLink);
953
- } catch (e) {
954
- baseDir = '.'; // dummy, probably not going to find executable!
955
- }
956
-
957
- // name of the subcommand, like `pm-install`
958
- let bin = path.basename(scriptPath, path.extname(scriptPath)) + '-' + subcommand._name;
959
- if (subcommand._executableFile) {
960
- bin = subcommand._executableFile;
961
- }
962
-
963
- const localBin = path.join(baseDir, bin);
964
- if (fs.existsSync(localBin)) {
965
- // prefer local `./<bin>` to bin in the $PATH
966
- bin = localBin;
967
- } else {
968
- // Look for source files.
969
- sourceExt.forEach((ext) => {
970
- if (fs.existsSync(`${localBin}${ext}`)) {
971
- bin = `${localBin}${ext}`;
972
- }
973
- });
974
- }
975
- launchWithNode = sourceExt.includes(path.extname(bin));
976
-
977
- let proc;
978
- if (process.platform !== 'win32') {
979
- if (launchWithNode) {
980
- args.unshift(bin);
981
- // add executable arguments to spawn
982
- args = incrementNodeInspectorPort(process.execArgv).concat(args);
983
-
984
- proc = childProcess.spawn(process.argv[0], args, { stdio: 'inherit' });
985
- } else {
986
- proc = childProcess.spawn(bin, args, { stdio: 'inherit' });
987
- }
988
- } else {
989
- args.unshift(bin);
990
- // add executable arguments to spawn
991
- args = incrementNodeInspectorPort(process.execArgv).concat(args);
992
- proc = childProcess.spawn(process.execPath, args, { stdio: 'inherit' });
993
- }
994
-
995
- const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGHUP'];
996
- signals.forEach((signal) => {
997
- // @ts-ignore
998
- process.on(signal, () => {
999
- if (proc.killed === false && proc.exitCode === null) {
1000
- proc.kill(signal);
1001
- }
1002
- });
1003
- });
1004
-
1005
- // By default terminate process when spawned process terminates.
1006
- // Suppressing the exit if exitCallback defined is a bit messy and of limited use, but does allow process to stay running!
1007
- const exitCallback = this._exitCallback;
1008
- if (!exitCallback) {
1009
- proc.on('close', process.exit.bind(process));
1010
- } else {
1011
- proc.on('close', () => {
1012
- exitCallback(new CommanderError(process.exitCode || 0, 'commander.executeSubCommandAsync', '(close)'));
1013
- });
1014
- }
1015
- proc.on('error', (err) => {
1016
- // @ts-ignore
1017
- if (err.code === 'ENOENT') {
1018
- const executableMissing = `'${bin}' does not exist
1019
- - if '${subcommand._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
1020
- - if the default executable name is not suitable, use the executableFile option to supply a custom name`;
1021
- throw new Error(executableMissing);
1022
- // @ts-ignore
1023
- } else if (err.code === 'EACCES') {
1024
- throw new Error(`'${bin}' not executable`);
1025
- }
1026
- if (!exitCallback) {
1027
- process.exit(1);
1028
- } else {
1029
- const wrappedError = new CommanderError(1, 'commander.executeSubCommandAsync', '(error)');
1030
- wrappedError.nestedError = err;
1031
- exitCallback(wrappedError);
1032
- }
1033
- });
1034
-
1035
- // Store the reference to the child process
1036
- this.runningCommand = proc;
1037
- };
1038
-
1039
- /**
1040
- * @api private
1041
- */
1042
-
1043
- _dispatchSubcommand(commandName, operands, unknown) {
1044
- const subCommand = this._findCommand(commandName);
1045
- if (!subCommand) this.help({ error: true });
1046
-
1047
- if (subCommand._executableHandler) {
1048
- this._executeSubCommand(subCommand, operands.concat(unknown));
1049
- } else {
1050
- return subCommand._parseCommand(operands, unknown);
1051
- }
1052
- };
1053
-
1054
- /**
1055
- * Check this.args against expected this._args.
1056
- *
1057
- * @api private
1058
- */
1059
-
1060
- _checkNumberOfArguments() {
1061
- // too few
1062
- this._args.forEach((arg, i) => {
1063
- if (arg.required && this.args[i] == null) {
1064
- this.missingArgument(arg.name());
1065
- }
1066
- });
1067
- // too many
1068
- if (this._args.length > 0 && this._args[this._args.length - 1].variadic) {
1069
- return;
1070
- }
1071
- if (this.args.length > this._args.length) {
1072
- this._excessArguments(this.args);
1073
- }
1074
- };
1075
-
1076
- /**
1077
- * Process this.args using this._args and save as this.processedArgs!
1078
- *
1079
- * @api private
1080
- */
1081
-
1082
- _processArguments() {
1083
- const myParseArg = (argument, value, previous) => {
1084
- // Extra processing for nice error message on parsing failure.
1085
- let parsedValue = value;
1086
- if (value !== null && argument.parseArg) {
1087
- try {
1088
- parsedValue = argument.parseArg(value, previous);
1089
- } catch (err) {
1090
- if (err.code === 'commander.invalidArgument') {
1091
- const message = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'. ${err.message}`;
1092
- this._displayError(err.exitCode, err.code, message);
1093
- }
1094
- throw err;
1095
- }
1096
- }
1097
- return parsedValue;
1098
- };
1099
-
1100
- this._checkNumberOfArguments();
1101
-
1102
- const processedArgs = [];
1103
- this._args.forEach((declaredArg, index) => {
1104
- let value = declaredArg.defaultValue;
1105
- if (declaredArg.variadic) {
1106
- // Collect together remaining arguments for passing together as an array.
1107
- if (index < this.args.length) {
1108
- value = this.args.slice(index);
1109
- if (declaredArg.parseArg) {
1110
- value = value.reduce((processed, v) => {
1111
- return myParseArg(declaredArg, v, processed);
1112
- }, declaredArg.defaultValue);
1113
- }
1114
- } else if (value === undefined) {
1115
- value = [];
1116
- }
1117
- } else if (index < this.args.length) {
1118
- value = this.args[index];
1119
- if (declaredArg.parseArg) {
1120
- value = myParseArg(declaredArg, value, declaredArg.defaultValue);
1121
- }
1122
- }
1123
- processedArgs[index] = value;
1124
- });
1125
- this.processedArgs = processedArgs;
1126
- }
1127
-
1128
- /**
1129
- * Once we have a promise we chain, but call synchronously until then.
1130
- *
1131
- * @param {Promise|undefined} promise
1132
- * @param {Function} fn
1133
- * @return {Promise|undefined}
1134
- * @api private
1135
- */
1136
-
1137
- _chainOrCall(promise, fn) {
1138
- // thenable
1139
- if (promise && promise.then && typeof promise.then === 'function') {
1140
- // already have a promise, chain callback
1141
- return promise.then(() => fn());
1142
- }
1143
- // callback might return a promise
1144
- return fn();
1145
- }
1146
-
1147
- /**
1148
- *
1149
- * @param {Promise|undefined} promise
1150
- * @param {string} event
1151
- * @return {Promise|undefined}
1152
- * @api private
1153
- */
1154
-
1155
- _chainOrCallHooks(promise, event) {
1156
- let result = promise;
1157
- const hooks = [];
1158
- getCommandAndParents(this)
1159
- .reverse()
1160
- .filter(cmd => cmd._lifeCycleHooks[event] !== undefined)
1161
- .forEach(hookedCommand => {
1162
- hookedCommand._lifeCycleHooks[event].forEach((callback) => {
1163
- hooks.push({ hookedCommand, callback });
1164
- });
1165
- });
1166
- if (event === 'postAction') {
1167
- hooks.reverse();
1168
- }
1169
-
1170
- hooks.forEach((hookDetail) => {
1171
- result = this._chainOrCall(result, () => {
1172
- return hookDetail.callback(hookDetail.hookedCommand, this);
1173
- });
1174
- });
1175
- return result;
1176
- }
1177
-
1178
- /**
1179
- * Process arguments in context of this command.
1180
- * Returns action result, in case it is a promise.
1181
- *
1182
- * @api private
1183
- */
1184
-
1185
- _parseCommand(operands, unknown) {
1186
- const parsed = this.parseOptions(unknown);
1187
- this._parseOptionsEnv(); // after cli, so parseArg not called on both cli and env
1188
- operands = operands.concat(parsed.operands);
1189
- unknown = parsed.unknown;
1190
- this.args = operands.concat(unknown);
1191
-
1192
- if (operands && this._findCommand(operands[0])) {
1193
- return this._dispatchSubcommand(operands[0], operands.slice(1), unknown);
1194
- }
1195
- if (this._hasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
1196
- if (operands.length === 1) {
1197
- this.help();
1198
- }
1199
- return this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
1200
- }
1201
- if (this._defaultCommandName) {
1202
- outputHelpIfRequested(this, unknown); // Run the help for default command from parent rather than passing to default command
1203
- return this._dispatchSubcommand(this._defaultCommandName, operands, unknown);
1204
- }
1205
- if (this.commands.length && this.args.length === 0 && !this._actionHandler && !this._defaultCommandName) {
1206
- // probably missing subcommand and no handler, user needs help (and exit)
1207
- this.help({ error: true });
1208
- }
1209
-
1210
- outputHelpIfRequested(this, parsed.unknown);
1211
- this._checkForMissingMandatoryOptions();
1212
-
1213
- // We do not always call this check to avoid masking a "better" error, like unknown command.
1214
- const checkForUnknownOptions = () => {
1215
- if (parsed.unknown.length > 0) {
1216
- this.unknownOption(parsed.unknown[0]);
1217
- }
1218
- };
1219
-
1220
- const commandEvent = `command:${this.name()}`;
1221
- if (this._actionHandler) {
1222
- checkForUnknownOptions();
1223
- this._processArguments();
1224
-
1225
- let actionResult;
1226
- actionResult = this._chainOrCallHooks(actionResult, 'preAction');
1227
- actionResult = this._chainOrCall(actionResult, () => this._actionHandler(this.processedArgs));
1228
- if (this.parent) this.parent.emit(commandEvent, operands, unknown); // legacy
1229
- actionResult = this._chainOrCallHooks(actionResult, 'postAction');
1230
- return actionResult;
1231
- }
1232
- if (this.parent && this.parent.listenerCount(commandEvent)) {
1233
- checkForUnknownOptions();
1234
- this._processArguments();
1235
- this.parent.emit(commandEvent, operands, unknown); // legacy
1236
- } else if (operands.length) {
1237
- if (this._findCommand('*')) { // legacy default command
1238
- return this._dispatchSubcommand('*', operands, unknown);
1239
- }
1240
- if (this.listenerCount('command:*')) {
1241
- // skip option check, emit event for possible misspelling suggestion
1242
- this.emit('command:*', operands, unknown);
1243
- } else if (this.commands.length) {
1244
- this.unknownCommand();
1245
- } else {
1246
- checkForUnknownOptions();
1247
- this._processArguments();
1248
- }
1249
- } else if (this.commands.length) {
1250
- checkForUnknownOptions();
1251
- // This command has subcommands and nothing hooked up at this level, so display help (and exit).
1252
- this.help({ error: true });
1253
- } else {
1254
- checkForUnknownOptions();
1255
- this._processArguments();
1256
- // fall through for caller to handle after calling .parse()
1257
- }
1258
- };
1259
-
1260
- /**
1261
- * Find matching command.
1262
- *
1263
- * @api private
1264
- */
1265
- _findCommand(name) {
1266
- if (!name) return undefined;
1267
- return this.commands.find(cmd => cmd._name === name || cmd._aliases.includes(name));
1268
- };
1269
-
1270
- /**
1271
- * Return an option matching `arg` if any.
1272
- *
1273
- * @param {string} arg
1274
- * @return {Option}
1275
- * @api private
1276
- */
1277
-
1278
- _findOption(arg) {
1279
- return this.options.find(option => option.is(arg));
1280
- };
1281
-
1282
- /**
1283
- * Display an error message if a mandatory option does not have a value.
1284
- * Lazy calling after checking for help flags from leaf subcommand.
1285
- *
1286
- * @api private
1287
- */
1288
-
1289
- _checkForMissingMandatoryOptions() {
1290
- // Walk up hierarchy so can call in subcommand after checking for displaying help.
1291
- for (let cmd = this; cmd; cmd = cmd.parent) {
1292
- cmd.options.forEach((anOption) => {
1293
- if (anOption.mandatory && (cmd.getOptionValue(anOption.attributeName()) === undefined)) {
1294
- cmd.missingMandatoryOptionValue(anOption);
1295
- }
1296
- });
1297
- }
1298
- };
1299
-
1300
- /**
1301
- * Parse options from `argv` removing known options,
1302
- * and return argv split into operands and unknown arguments.
1303
- *
1304
- * Examples:
1305
- *
1306
- * argv => operands, unknown
1307
- * --known kkk op => [op], []
1308
- * op --known kkk => [op], []
1309
- * sub --unknown uuu op => [sub], [--unknown uuu op]
1310
- * sub -- --unknown uuu op => [sub --unknown uuu op], []
1311
- *
1312
- * @param {String[]} argv
1313
- * @return {{operands: String[], unknown: String[]}}
1314
- */
1315
-
1316
- parseOptions(argv) {
1317
- const operands = []; // operands, not options or values
1318
- const unknown = []; // first unknown option and remaining unknown args
1319
- let dest = operands;
1320
- const args = argv.slice();
1321
-
1322
- function maybeOption(arg) {
1323
- return arg.length > 1 && arg[0] === '-';
1324
- }
1325
-
1326
- // parse options
1327
- let activeVariadicOption = null;
1328
- while (args.length) {
1329
- const arg = args.shift();
1330
-
1331
- // literal
1332
- if (arg === '--') {
1333
- if (dest === unknown) dest.push(arg);
1334
- dest.push(...args);
1335
- break;
1336
- }
1337
-
1338
- if (activeVariadicOption && !maybeOption(arg)) {
1339
- this.emit(`option:${activeVariadicOption.name()}`, arg);
1340
- continue;
1341
- }
1342
- activeVariadicOption = null;
1343
-
1344
- if (maybeOption(arg)) {
1345
- const option = this._findOption(arg);
1346
- // recognised option, call listener to assign value with possible custom processing
1347
- if (option) {
1348
- if (option.required) {
1349
- const value = args.shift();
1350
- if (value === undefined) this.optionMissingArgument(option);
1351
- this.emit(`option:${option.name()}`, value);
1352
- } else if (option.optional) {
1353
- let value = null;
1354
- // historical behaviour is optional value is following arg unless an option
1355
- if (args.length > 0 && !maybeOption(args[0])) {
1356
- value = args.shift();
1357
- }
1358
- this.emit(`option:${option.name()}`, value);
1359
- } else { // boolean flag
1360
- this.emit(`option:${option.name()}`);
1361
- }
1362
- activeVariadicOption = option.variadic ? option : null;
1363
- continue;
1364
- }
1365
- }
1366
-
1367
- // Look for combo options following single dash, eat first one if known.
1368
- if (arg.length > 2 && arg[0] === '-' && arg[1] !== '-') {
1369
- const option = this._findOption(`-${arg[1]}`);
1370
- if (option) {
1371
- if (option.required || (option.optional && this._combineFlagAndOptionalValue)) {
1372
- // option with value following in same argument
1373
- this.emit(`option:${option.name()}`, arg.slice(2));
1374
- } else {
1375
- // boolean option, emit and put back remainder of arg for further processing
1376
- this.emit(`option:${option.name()}`);
1377
- args.unshift(`-${arg.slice(2)}`);
1378
- }
1379
- continue;
1380
- }
1381
- }
1382
-
1383
- // Look for known long flag with value, like --foo=bar
1384
- if (/^--[^=]+=/.test(arg)) {
1385
- const index = arg.indexOf('=');
1386
- const option = this._findOption(arg.slice(0, index));
1387
- if (option && (option.required || option.optional)) {
1388
- this.emit(`option:${option.name()}`, arg.slice(index + 1));
1389
- continue;
1390
- }
1391
- }
1392
-
1393
- // Not a recognised option by this command.
1394
- // Might be a command-argument, or subcommand option, or unknown option, or help command or option.
1395
-
1396
- // An unknown option means further arguments also classified as unknown so can be reprocessed by subcommands.
1397
- if (maybeOption(arg)) {
1398
- dest = unknown;
1399
- }
1400
-
1401
- // If using positionalOptions, stop processing our options at subcommand.
1402
- if ((this._enablePositionalOptions || this._passThroughOptions) && operands.length === 0 && unknown.length === 0) {
1403
- if (this._findCommand(arg)) {
1404
- operands.push(arg);
1405
- if (args.length > 0) unknown.push(...args);
1406
- break;
1407
- } else if (arg === this._helpCommandName && this._hasImplicitHelpCommand()) {
1408
- operands.push(arg);
1409
- if (args.length > 0) operands.push(...args);
1410
- break;
1411
- } else if (this._defaultCommandName) {
1412
- unknown.push(arg);
1413
- if (args.length > 0) unknown.push(...args);
1414
- break;
1415
- }
1416
- }
1417
-
1418
- // If using passThroughOptions, stop processing options at first command-argument.
1419
- if (this._passThroughOptions) {
1420
- dest.push(arg);
1421
- if (args.length > 0) dest.push(...args);
1422
- break;
1423
- }
1424
-
1425
- // add arg
1426
- dest.push(arg);
1427
- }
1428
-
1429
- return { operands, unknown };
1430
- };
1431
-
1432
- /**
1433
- * Return an object containing options as key-value pairs
1434
- *
1435
- * @return {Object}
1436
- */
1437
- opts() {
1438
- if (this._storeOptionsAsProperties) {
1439
- // Preserve original behaviour so backwards compatible when still using properties
1440
- const result = {};
1441
- const len = this.options.length;
1442
-
1443
- for (let i = 0; i < len; i++) {
1444
- const key = this.options[i].attributeName();
1445
- result[key] = key === this._versionOptionName ? this._version : this[key];
1446
- }
1447
- return result;
1448
- }
1449
-
1450
- return this._optionValues;
1451
- };
1452
-
1453
- /**
1454
- * Internal bottleneck for handling of parsing errors.
1455
- *
1456
- * @api private
1457
- */
1458
- _displayError(exitCode, code, message) {
1459
- this._outputConfiguration.outputError(`${message}\n`, this._outputConfiguration.writeErr);
1460
- if (typeof this._showHelpAfterError === 'string') {
1461
- this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`);
1462
- } else if (this._showHelpAfterError) {
1463
- this._outputConfiguration.writeErr('\n');
1464
- this.outputHelp({ error: true });
1465
- }
1466
- this._exit(exitCode, code, message);
1467
- }
1468
-
1469
- /**
1470
- * Apply any option related environment variables, if option does
1471
- * not have a value from cli or client code.
1472
- *
1473
- * @api private
1474
- */
1475
- _parseOptionsEnv() {
1476
- this.options.forEach((option) => {
1477
- if (option.envVar && option.envVar in process.env) {
1478
- const optionKey = option.attributeName();
1479
- // Priority check. Do not overwrite cli or options from unknown source (client-code).
1480
- if (this.getOptionValue(optionKey) === undefined || ['default', 'config', 'env'].includes(this.getOptionValueSource(optionKey))) {
1481
- if (option.required || option.optional) { // option can take a value
1482
- // keep very simple, optional always takes value
1483
- this.emit(`optionEnv:${option.name()}`, process.env[option.envVar]);
1484
- } else { // boolean
1485
- // keep very simple, only care that envVar defined and not the value
1486
- this.emit(`optionEnv:${option.name()}`);
1487
- }
1488
- }
1489
- }
1490
- });
1491
- }
1492
-
1493
- /**
1494
- * Argument `name` is missing.
1495
- *
1496
- * @param {string} name
1497
- * @api private
1498
- */
1499
-
1500
- missingArgument(name) {
1501
- const message = `error: missing required argument '${name}'`;
1502
- this._displayError(1, 'commander.missingArgument', message);
1503
- };
1504
-
1505
- /**
1506
- * `Option` is missing an argument.
1507
- *
1508
- * @param {Option} option
1509
- * @api private
1510
- */
1511
-
1512
- optionMissingArgument(option) {
1513
- const message = `error: option '${option.flags}' argument missing`;
1514
- this._displayError(1, 'commander.optionMissingArgument', message);
1515
- };
1516
-
1517
- /**
1518
- * `Option` does not have a value, and is a mandatory option.
1519
- *
1520
- * @param {Option} option
1521
- * @api private
1522
- */
1523
-
1524
- missingMandatoryOptionValue(option) {
1525
- const message = `error: required option '${option.flags}' not specified`;
1526
- this._displayError(1, 'commander.missingMandatoryOptionValue', message);
1527
- };
1528
-
1529
- /**
1530
- * Unknown option `flag`.
1531
- *
1532
- * @param {string} flag
1533
- * @api private
1534
- */
1535
-
1536
- unknownOption(flag) {
1537
- if (this._allowUnknownOption) return;
1538
- let suggestion = '';
1539
-
1540
- if (flag.startsWith('--') && this._showSuggestionAfterError) {
1541
- // Looping to pick up the global options too
1542
- let candidateFlags = [];
1543
- let command = this;
1544
- do {
1545
- const moreFlags = command.createHelp().visibleOptions(command)
1546
- .filter(option => option.long)
1547
- .map(option => option.long);
1548
- candidateFlags = candidateFlags.concat(moreFlags);
1549
- command = command.parent;
1550
- } while (command && !command._enablePositionalOptions);
1551
- suggestion = suggestSimilar(flag, candidateFlags);
1552
- }
1553
-
1554
- const message = `error: unknown option '${flag}'${suggestion}`;
1555
- this._displayError(1, 'commander.unknownOption', message);
1556
- };
1557
-
1558
- /**
1559
- * Excess arguments, more than expected.
1560
- *
1561
- * @param {string[]} receivedArgs
1562
- * @api private
1563
- */
1564
-
1565
- _excessArguments(receivedArgs) {
1566
- if (this._allowExcessArguments) return;
1567
-
1568
- const expected = this._args.length;
1569
- const s = (expected === 1) ? '' : 's';
1570
- const forSubcommand = this.parent ? ` for '${this.name()}'` : '';
1571
- const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
1572
- this._displayError(1, 'commander.excessArguments', message);
1573
- };
1574
-
1575
- /**
1576
- * Unknown command.
1577
- *
1578
- * @api private
1579
- */
1580
-
1581
- unknownCommand() {
1582
- const unknownName = this.args[0];
1583
- let suggestion = '';
1584
-
1585
- if (this._showSuggestionAfterError) {
1586
- const candidateNames = [];
1587
- this.createHelp().visibleCommands(this).forEach((command) => {
1588
- candidateNames.push(command.name());
1589
- // just visible alias
1590
- if (command.alias()) candidateNames.push(command.alias());
1591
- });
1592
- suggestion = suggestSimilar(unknownName, candidateNames);
1593
- }
1594
-
1595
- const message = `error: unknown command '${unknownName}'${suggestion}`;
1596
- this._displayError(1, 'commander.unknownCommand', message);
1597
- };
1598
-
1599
- /**
1600
- * Set the program version to `str`.
1601
- *
1602
- * This method auto-registers the "-V, --version" flag
1603
- * which will print the version number when passed.
1604
- *
1605
- * You can optionally supply the flags and description to override the defaults.
1606
- *
1607
- * @param {string} str
1608
- * @param {string} [flags]
1609
- * @param {string} [description]
1610
- * @return {this | string} `this` command for chaining, or version string if no arguments
1611
- */
1612
-
1613
- version(str, flags, description) {
1614
- if (str === undefined) return this._version;
1615
- this._version = str;
1616
- flags = flags || '-V, --version';
1617
- description = description || 'output the version number';
1618
- const versionOption = this.createOption(flags, description);
1619
- this._versionOptionName = versionOption.attributeName();
1620
- this.options.push(versionOption);
1621
- this.on('option:' + versionOption.name(), () => {
1622
- this._outputConfiguration.writeOut(`${str}\n`);
1623
- this._exit(0, 'commander.version', str);
1624
- });
1625
- return this;
1626
- };
1627
-
1628
- /**
1629
- * Set the description to `str`.
1630
- *
1631
- * @param {string} [str]
1632
- * @param {Object} [argsDescription]
1633
- * @return {string|Command}
1634
- */
1635
- description(str, argsDescription) {
1636
- if (str === undefined && argsDescription === undefined) return this._description;
1637
- this._description = str;
1638
- if (argsDescription) {
1639
- this._argsDescription = argsDescription;
1640
- }
1641
- return this;
1642
- };
1643
-
1644
- /**
1645
- * Set an alias for the command.
1646
- *
1647
- * You may call more than once to add multiple aliases. Only the first alias is shown in the auto-generated help.
1648
- *
1649
- * @param {string} [alias]
1650
- * @return {string|Command}
1651
- */
1652
-
1653
- alias(alias) {
1654
- if (alias === undefined) return this._aliases[0]; // just return first, for backwards compatibility
1655
-
1656
- /** @type {Command} */
1657
- let command = this;
1658
- if (this.commands.length !== 0 && this.commands[this.commands.length - 1]._executableHandler) {
1659
- // assume adding alias for last added executable subcommand, rather than this
1660
- command = this.commands[this.commands.length - 1];
1661
- }
1662
-
1663
- if (alias === command._name) throw new Error('Command alias can\'t be the same as its name');
1664
-
1665
- command._aliases.push(alias);
1666
- return this;
1667
- };
1668
-
1669
- /**
1670
- * Set aliases for the command.
1671
- *
1672
- * Only the first alias is shown in the auto-generated help.
1673
- *
1674
- * @param {string[]} [aliases]
1675
- * @return {string[]|Command}
1676
- */
1677
-
1678
- aliases(aliases) {
1679
- // Getter for the array of aliases is the main reason for having aliases() in addition to alias().
1680
- if (aliases === undefined) return this._aliases;
1681
-
1682
- aliases.forEach((alias) => this.alias(alias));
1683
- return this;
1684
- };
1685
-
1686
- /**
1687
- * Set / get the command usage `str`.
1688
- *
1689
- * @param {string} [str]
1690
- * @return {String|Command}
1691
- */
1692
-
1693
- usage(str) {
1694
- if (str === undefined) {
1695
- if (this._usage) return this._usage;
1696
-
1697
- const args = this._args.map((arg) => {
1698
- return humanReadableArgName(arg);
1699
- });
1700
- return [].concat(
1701
- (this.options.length || this._hasHelpOption ? '[options]' : []),
1702
- (this.commands.length ? '[command]' : []),
1703
- (this._args.length ? args : [])
1704
- ).join(' ');
1705
- }
1706
-
1707
- this._usage = str;
1708
- return this;
1709
- };
1710
-
1711
- /**
1712
- * Get or set the name of the command
1713
- *
1714
- * @param {string} [str]
1715
- * @return {string|Command}
1716
- */
1717
-
1718
- name(str) {
1719
- if (str === undefined) return this._name;
1720
- this._name = str;
1721
- return this;
1722
- };
1723
-
1724
- /**
1725
- * Return program help documentation.
1726
- *
1727
- * @param {{ error: boolean }} [contextOptions] - pass {error:true} to wrap for stderr instead of stdout
1728
- * @return {string}
1729
- */
1730
-
1731
- helpInformation(contextOptions) {
1732
- const helper = this.createHelp();
1733
- if (helper.helpWidth === undefined) {
1734
- helper.helpWidth = (contextOptions && contextOptions.error) ? this._outputConfiguration.getErrHelpWidth() : this._outputConfiguration.getOutHelpWidth();
1735
- }
1736
- return helper.formatHelp(this, helper);
1737
- };
1738
-
1739
- /**
1740
- * @api private
1741
- */
1742
-
1743
- _getHelpContext(contextOptions) {
1744
- contextOptions = contextOptions || {};
1745
- const context = { error: !!contextOptions.error };
1746
- let write;
1747
- if (context.error) {
1748
- write = (arg) => this._outputConfiguration.writeErr(arg);
1749
- } else {
1750
- write = (arg) => this._outputConfiguration.writeOut(arg);
1751
- }
1752
- context.write = contextOptions.write || write;
1753
- context.command = this;
1754
- return context;
1755
- }
1756
-
1757
- /**
1758
- * Output help information for this command.
1759
- *
1760
- * Outputs built-in help, and custom text added using `.addHelpText()`.
1761
- *
1762
- * @param {{ error: boolean } | Function} [contextOptions] - pass {error:true} to write to stderr instead of stdout
1763
- */
1764
-
1765
- outputHelp(contextOptions) {
1766
- let deprecatedCallback;
1767
- if (typeof contextOptions === 'function') {
1768
- deprecatedCallback = contextOptions;
1769
- contextOptions = undefined;
1770
- }
1771
- const context = this._getHelpContext(contextOptions);
1772
-
1773
- getCommandAndParents(this).reverse().forEach(command => command.emit('beforeAllHelp', context));
1774
- this.emit('beforeHelp', context);
1775
-
1776
- let helpInformation = this.helpInformation(context);
1777
- if (deprecatedCallback) {
1778
- helpInformation = deprecatedCallback(helpInformation);
1779
- if (typeof helpInformation !== 'string' && !Buffer.isBuffer(helpInformation)) {
1780
- throw new Error('outputHelp callback must return a string or a Buffer');
1781
- }
1782
- }
1783
- context.write(helpInformation);
1784
-
1785
- this.emit(this._helpLongFlag); // deprecated
1786
- this.emit('afterHelp', context);
1787
- getCommandAndParents(this).forEach(command => command.emit('afterAllHelp', context));
1788
- };
1789
-
1790
- /**
1791
- * You can pass in flags and a description to override the help
1792
- * flags and help description for your command. Pass in false to
1793
- * disable the built-in help option.
1794
- *
1795
- * @param {string | boolean} [flags]
1796
- * @param {string} [description]
1797
- * @return {Command} `this` command for chaining
1798
- */
1799
-
1800
- helpOption(flags, description) {
1801
- if (typeof flags === 'boolean') {
1802
- this._hasHelpOption = flags;
1803
- return this;
1804
- }
1805
- this._helpFlags = flags || this._helpFlags;
1806
- this._helpDescription = description || this._helpDescription;
1807
-
1808
- const helpFlags = splitOptionFlags(this._helpFlags);
1809
- this._helpShortFlag = helpFlags.shortFlag;
1810
- this._helpLongFlag = helpFlags.longFlag;
1811
-
1812
- return this;
1813
- };
1814
-
1815
- /**
1816
- * Output help information and exit.
1817
- *
1818
- * Outputs built-in help, and custom text added using `.addHelpText()`.
1819
- *
1820
- * @param {{ error: boolean }} [contextOptions] - pass {error:true} to write to stderr instead of stdout
1821
- */
1822
-
1823
- help(contextOptions) {
1824
- this.outputHelp(contextOptions);
1825
- let exitCode = process.exitCode || 0;
1826
- if (exitCode === 0 && contextOptions && typeof contextOptions !== 'function' && contextOptions.error) {
1827
- exitCode = 1;
1828
- }
1829
- // message: do not have all displayed text available so only passing placeholder.
1830
- this._exit(exitCode, 'commander.help', '(outputHelp)');
1831
- };
1832
-
1833
- /**
1834
- * Add additional text to be displayed with the built-in help.
1835
- *
1836
- * Position is 'before' or 'after' to affect just this command,
1837
- * and 'beforeAll' or 'afterAll' to affect this command and all its subcommands.
1838
- *
1839
- * @param {string} position - before or after built-in help
1840
- * @param {string | Function} text - string to add, or a function returning a string
1841
- * @return {Command} `this` command for chaining
1842
- */
1843
- addHelpText(position, text) {
1844
- const allowedValues = ['beforeAll', 'before', 'after', 'afterAll'];
1845
- if (!allowedValues.includes(position)) {
1846
- throw new Error(`Unexpected value for position to addHelpText.
1847
- Expecting one of '${allowedValues.join("', '")}'`);
1848
- }
1849
- const helpEvent = `${position}Help`;
1850
- this.on(helpEvent, (context) => {
1851
- let helpStr;
1852
- if (typeof text === 'function') {
1853
- helpStr = text({ error: context.error, command: context.command });
1854
- } else {
1855
- helpStr = text;
1856
- }
1857
- // Ignore falsy value when nothing to output.
1858
- if (helpStr) {
1859
- context.write(`${helpStr}\n`);
1860
- }
1861
- });
1862
- return this;
1863
- }
1864
- };
1865
-
1866
- /**
1867
- * Output help information if help flags specified
1868
- *
1869
- * @param {Command} cmd - command to output help for
1870
- * @param {Array} args - array of options to search for help flags
1871
- * @api private
1872
- */
1873
-
1874
- function outputHelpIfRequested(cmd, args) {
1875
- const helpOption = cmd._hasHelpOption && args.find(arg => arg === cmd._helpLongFlag || arg === cmd._helpShortFlag);
1876
- if (helpOption) {
1877
- cmd.outputHelp();
1878
- // (Do not have all displayed text available so only passing placeholder.)
1879
- cmd._exit(0, 'commander.helpDisplayed', '(outputHelp)');
1880
- }
1881
- }
1882
-
1883
- /**
1884
- * Scan arguments and increment port number for inspect calls (to avoid conflicts when spawning new command).
1885
- *
1886
- * @param {string[]} args - array of arguments from node.execArgv
1887
- * @returns {string[]}
1888
- * @api private
1889
- */
1890
-
1891
- function incrementNodeInspectorPort(args) {
1892
- // Testing for these options:
1893
- // --inspect[=[host:]port]
1894
- // --inspect-brk[=[host:]port]
1895
- // --inspect-port=[host:]port
1896
- return args.map((arg) => {
1897
- if (!arg.startsWith('--inspect')) {
1898
- return arg;
1899
- }
1900
- let debugOption;
1901
- let debugHost = '127.0.0.1';
1902
- let debugPort = '9229';
1903
- let match;
1904
- if ((match = arg.match(/^(--inspect(-brk)?)$/)) !== null) {
1905
- // e.g. --inspect
1906
- debugOption = match[1];
1907
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+)$/)) !== null) {
1908
- debugOption = match[1];
1909
- if (/^\d+$/.test(match[3])) {
1910
- // e.g. --inspect=1234
1911
- debugPort = match[3];
1912
- } else {
1913
- // e.g. --inspect=localhost
1914
- debugHost = match[3];
1915
- }
1916
- } else if ((match = arg.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/)) !== null) {
1917
- // e.g. --inspect=localhost:1234
1918
- debugOption = match[1];
1919
- debugHost = match[3];
1920
- debugPort = match[4];
1921
- }
1922
-
1923
- if (debugOption && debugPort !== '0') {
1924
- return `${debugOption}=${debugHost}:${parseInt(debugPort) + 1}`;
1925
- }
1926
- return arg;
1927
- });
1928
- }
1929
-
1930
- /**
1931
- * @param {Command} startCommand
1932
- * @returns {Command[]}
1933
- * @api private
1934
- */
1935
-
1936
- function getCommandAndParents(startCommand) {
1937
- const result = [];
1938
- for (let command = startCommand; command; command = command.parent) {
1939
- result.push(command);
1940
- }
1941
- return result;
1942
- }
1943
-
1944
- exports.Command = Command;