@shell-shock/preset-cli 0.9.18 → 0.9.20

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 (393) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_rolldown/runtime.cjs +1 -45
  3. package/dist/components/banner-builtin.cjs +5 -93
  4. package/dist/components/banner-builtin.mjs +5 -90
  5. package/dist/components/banner-builtin.mjs.map +1 -1
  6. package/dist/components/command-entry.cjs +56 -356
  7. package/dist/components/command-entry.mjs +56 -353
  8. package/dist/components/command-entry.mjs.map +1 -1
  9. package/dist/components/command-router.cjs +4 -60
  10. package/dist/components/command-router.mjs +4 -57
  11. package/dist/components/command-router.mjs.map +1 -1
  12. package/dist/components/index.cjs +1 -15
  13. package/dist/components/index.mjs +1 -7
  14. package/dist/components/upgrade-builtin.cjs +14 -135
  15. package/dist/components/upgrade-builtin.mjs +14 -132
  16. package/dist/components/upgrade-builtin.mjs.map +1 -1
  17. package/dist/components/virtual-command-entry.cjs +1 -113
  18. package/dist/components/virtual-command-entry.mjs +1 -110
  19. package/dist/components/virtual-command-entry.mjs.map +1 -1
  20. package/dist/helpers/get-global-options.cjs +1 -39
  21. package/dist/helpers/get-global-options.mjs +1 -38
  22. package/dist/helpers/get-global-options.mjs.map +1 -1
  23. package/dist/index.cjs +1 -173
  24. package/dist/index.d.cts.map +1 -1
  25. package/dist/index.d.mts.map +1 -1
  26. package/dist/index.mjs +1 -165
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/types/index.mjs +1 -1
  29. package/dist/types/plugin.d.cts +3 -3
  30. package/dist/types/plugin.d.cts.map +1 -1
  31. package/dist/types/plugin.d.mts +3 -3
  32. package/dist/types/plugin.d.mts.map +1 -1
  33. package/dist/types/plugin.mjs +1 -1
  34. package/package.json +22 -74
  35. package/dist/_virtual/_rolldown/runtime.mjs +0 -42
  36. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs +0 -94
  37. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs +0 -94
  38. package/dist/node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/@stryke_types@0.11.3/node_modules/@stryke/types/dist/base.d.cts +0 -17
  40. package/dist/node_modules/.pnpm/@stryke_types@0.11.3/node_modules/@stryke/types/dist/base.d.cts.map +0 -1
  41. package/dist/node_modules/.pnpm/@stryke_types@0.11.3/node_modules/@stryke/types/dist/base.d.mts +0 -17
  42. package/dist/node_modules/.pnpm/@stryke_types@0.11.3/node_modules/@stryke/types/dist/base.d.mts.map +0 -1
  43. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.cjs +0 -8
  44. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs +0 -8
  45. package/dist/node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.mjs.map +0 -1
  46. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.cjs +0 -167
  47. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs +0 -167
  48. package/dist/node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.cjs +0 -373
  50. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs +0 -374
  51. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.mjs.map +0 -1
  52. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.cjs +0 -60
  53. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs +0 -59
  54. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.cjs +0 -6
  56. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs +0 -6
  57. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.mjs.map +0 -1
  58. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.cjs +0 -6
  59. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +0 -6
  60. package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.cjs +0 -59
  62. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +0 -59
  63. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs.map +0 -1
  64. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.cjs +0 -338
  65. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +0 -333
  66. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.cjs +0 -6
  68. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +0 -6
  69. package/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs.map +0 -1
  70. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.cjs +0 -14
  71. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs +0 -15
  72. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.cjs +0 -655
  74. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs +0 -651
  75. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.mjs.map +0 -1
  76. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.cjs +0 -48
  77. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs +0 -47
  78. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.cjs +0 -24
  80. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs +0 -24
  81. package/dist/node_modules/.pnpm/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.mjs.map +0 -1
  82. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.cjs +0 -4095
  83. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs +0 -4093
  84. package/dist/node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.cjs +0 -449
  86. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs +0 -450
  87. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.mjs.map +0 -1
  88. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.cjs +0 -47
  89. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs +0 -48
  90. package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.cjs +0 -94
  92. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs +0 -94
  93. package/dist/node_modules/.pnpm/markdown-it-abbr@2.0.0/node_modules/markdown-it-abbr/index.mjs.map +0 -1
  94. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.cjs +0 -78
  95. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs +0 -78
  96. package/dist/node_modules/.pnpm/markdown-it-container@4.0.0/node_modules/markdown-it-container/index.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.cjs +0 -123
  98. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs +0 -123
  99. package/dist/node_modules/.pnpm/markdown-it-deflist@3.0.0/node_modules/markdown-it-deflist/index.mjs.map +0 -1
  100. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.cjs +0 -246
  101. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs +0 -244
  102. package/dist/node_modules/.pnpm/markdown-it-footnote@4.0.0/node_modules/markdown-it-footnote/index.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.cjs +0 -80
  104. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs +0 -80
  105. package/dist/node_modules/.pnpm/markdown-it-ins@4.0.0/node_modules/markdown-it-ins/index.mjs.map +0 -1
  106. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.cjs +0 -80
  107. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs +0 -80
  108. package/dist/node_modules/.pnpm/markdown-it-mark@4.0.0/node_modules/markdown-it-mark/index.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.cjs +0 -45
  110. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs +0 -45
  111. package/dist/node_modules/.pnpm/markdown-it-sub@2.0.0/node_modules/markdown-it-sub/index.mjs.map +0 -1
  112. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.cjs +0 -45
  113. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs +0 -45
  114. package/dist/node_modules/.pnpm/markdown-it-sup@2.0.0/node_modules/markdown-it-sup/index.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs +0 -94
  116. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs +0 -92
  117. package/dist/node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs.map +0 -1
  118. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs +0 -1
  119. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs +0 -3
  120. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.cjs +0 -69
  121. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -69
  122. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_blocks.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.cjs +0 -9
  124. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs +0 -8
  125. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/html_re.mjs.map +0 -1
  126. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.cjs +0 -205
  127. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs +0 -189
  128. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/common/utils.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.cjs +0 -19
  130. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs +0 -15
  131. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/index.mjs.map +0 -1
  132. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.cjs +0 -61
  133. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -62
  134. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.cjs +0 -35
  136. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -35
  137. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_label.mjs.map +0 -1
  138. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.cjs +0 -43
  139. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -44
  140. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/helpers/parse_link_title.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs +0 -488
  142. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs +0 -489
  143. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs.map +0 -1
  144. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.cjs +0 -148
  145. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs +0 -149
  146. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_block.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.cjs +0 -51
  148. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs +0 -52
  149. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_core.mjs.map +0 -1
  150. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.cjs +0 -126
  151. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs +0 -127
  152. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/parser_inline.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.cjs +0 -57
  154. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -57
  155. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/commonmark.mjs.map +0 -1
  156. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.cjs +0 -23
  157. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs +0 -23
  158. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/default.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.cjs +0 -31
  160. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs +0 -31
  161. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/presets/zero.mjs.map +0 -1
  162. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.cjs +0 -217
  163. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs +0 -218
  164. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/renderer.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.cjs +0 -274
  166. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs +0 -274
  167. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/ruler.mjs.map +0 -1
  168. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.cjs +0 -107
  169. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -108
  170. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/blockquote.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.cjs +0 -27
  172. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs +0 -27
  173. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/code.mjs.map +0 -1
  174. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.cjs +0 -48
  175. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -48
  176. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/fence.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.cjs +0 -35
  178. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -36
  179. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/heading.mjs.map +0 -1
  180. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.cjs +0 -26
  181. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -27
  182. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/hr.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.cjs +0 -72
  184. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -73
  185. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/html_block.mjs.map +0 -1
  186. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.cjs +0 -53
  187. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -53
  188. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/lheading.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.cjs +0 -157
  190. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs +0 -158
  191. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/list.mjs.map +0 -1
  192. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.cjs +0 -32
  193. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -32
  194. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/paragraph.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.cjs +0 -140
  196. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -141
  197. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/reference.mjs.map +0 -1
  198. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.cjs +0 -112
  199. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -113
  200. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/state_block.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.cjs +0 -139
  202. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs +0 -140
  203. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_block/table.mjs.map +0 -1
  204. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.cjs +0 -15
  205. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs +0 -15
  206. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/block.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.cjs +0 -12
  208. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -12
  209. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/inline.mjs.map +0 -1
  210. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.cjs +0 -81
  211. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -82
  212. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/linkify.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.cjs +0 -13
  214. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -13
  215. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/normalize.mjs.map +0 -1
  216. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.cjs +0 -45
  217. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -45
  218. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/replacements.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.cjs +0 -112
  220. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -113
  221. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/smartquotes.mjs.map +0 -1
  222. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.cjs +0 -14
  223. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -15
  224. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/state_core.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.cjs +0 -22
  226. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -22
  227. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_core/text_join.mjs.map +0 -1
  228. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.cjs +0 -55
  229. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -55
  230. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/autolink.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.cjs +0 -41
  232. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -41
  233. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/backticks.mjs.map +0 -1
  234. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.cjs +0 -62
  235. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -62
  236. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.cjs +0 -64
  238. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -64
  239. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/emphasis.mjs.map +0 -1
  240. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.cjs +0 -45
  241. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -46
  242. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/entity.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.cjs +0 -48
  244. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -49
  245. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/escape.mjs.map +0 -1
  246. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.cjs +0 -22
  247. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -22
  248. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.cjs +0 -34
  250. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -35
  251. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/html_inline.mjs.map +0 -1
  252. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.cjs +0 -82
  253. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -83
  254. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/image.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.cjs +0 -84
  256. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -85
  257. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/link.mjs.map +0 -1
  258. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.cjs +0 -42
  259. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -42
  260. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/linkify.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.cjs +0 -26
  262. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -27
  263. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/newline.mjs.map +0 -1
  264. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.cjs +0 -74
  265. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -75
  266. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/state_inline.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.cjs +0 -80
  268. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -80
  269. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs.map +0 -1
  270. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.cjs +0 -41
  271. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -41
  272. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/rules_inline/text.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.cjs +0 -157
  274. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs +0 -157
  275. package/dist/node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/token.mjs.map +0 -1
  276. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.cjs +0 -21
  277. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs +0 -17
  278. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.cjs +0 -74
  280. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs +0 -74
  281. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.mjs.map +0 -1
  282. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.cjs +0 -57
  283. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs +0 -57
  284. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.cjs +0 -18
  286. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs +0 -18
  287. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.mjs.map +0 -1
  288. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.cjs +0 -175
  289. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs +0 -175
  290. package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.cjs +0 -19
  292. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs +0 -15
  293. package/dist/node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs.map +0 -1
  294. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.cjs +0 -104
  295. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs +0 -104
  296. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.cjs +0 -73
  298. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs +0 -68
  299. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.mjs.map +0 -1
  300. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.cjs +0 -266
  301. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs +0 -262
  302. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.cjs +0 -575
  304. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs +0 -543
  305. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.mjs.map +0 -1
  306. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.cjs +0 -27
  307. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs +0 -21
  308. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.cjs +0 -105
  310. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs +0 -94
  311. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.mjs.map +0 -1
  312. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.cjs +0 -33
  313. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs +0 -34
  314. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.cjs +0 -99
  316. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +0 -93
  317. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.mjs.map +0 -1
  318. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.cjs +0 -2544
  319. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs +0 -2545
  320. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.cjs +0 -296
  322. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs +0 -297
  323. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.mjs.map +0 -1
  324. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.cjs +0 -26
  325. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs +0 -28
  326. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.cjs +0 -2069
  328. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs +0 -2069
  329. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.mjs.map +0 -1
  330. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.cjs +0 -156
  331. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +0 -157
  332. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs.map +0 -1
  333. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.cjs +0 -166
  334. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs +0 -167
  335. package/dist/node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.mjs.map +0 -1
  336. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.cjs +0 -299
  337. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs +0 -295
  338. package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.mjs.map +0 -1
  339. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.cjs +0 -65
  340. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs +0 -66
  341. package/dist/node_modules/.pnpm/string-width@8.2.0/node_modules/string-width/index.mjs.map +0 -1
  342. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.cjs +0 -12
  343. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs +0 -13
  344. package/dist/node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.mjs.map +0 -1
  345. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.cjs +0 -6
  346. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs +0 -6
  347. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.mjs.map +0 -1
  348. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.cjs +0 -6
  349. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs +0 -6
  350. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.mjs.map +0 -1
  351. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.cjs +0 -6
  352. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs +0 -6
  353. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.mjs.map +0 -1
  354. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.cjs +0 -6
  355. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs +0 -6
  356. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.mjs.map +0 -1
  357. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.cjs +0 -6
  358. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs +0 -6
  359. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.mjs.map +0 -1
  360. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.cjs +0 -25
  361. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs +0 -21
  362. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.mjs.map +0 -1
  363. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.cjs +0 -6
  364. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs +0 -6
  365. package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.mjs.map +0 -1
  366. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.cjs +0 -302
  367. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs +0 -303
  368. package/dist/node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs.map +0 -1
  369. package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +0 -106
  370. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +0 -106
  371. package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs.map +0 -1
  372. package/dist/packages/plugin-changelog/dist/components/index.cjs +0 -1
  373. package/dist/packages/plugin-changelog/dist/components/index.mjs +0 -3
  374. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.cjs +0 -51
  375. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.mjs +0 -51
  376. package/dist/packages/plugin-changelog/dist/helpers/resolve-changelog.mjs.map +0 -1
  377. package/dist/packages/plugin-changelog/dist/index.cjs +0 -65
  378. package/dist/packages/plugin-changelog/dist/index.d.cts +0 -2
  379. package/dist/packages/plugin-changelog/dist/index.d.mts +0 -2
  380. package/dist/packages/plugin-changelog/dist/index.mjs +0 -64
  381. package/dist/packages/plugin-changelog/dist/index.mjs.map +0 -1
  382. package/dist/packages/plugin-changelog/dist/types/plugin.d.cts +0 -91
  383. package/dist/packages/plugin-changelog/dist/types/plugin.d.cts.map +0 -1
  384. package/dist/packages/plugin-changelog/dist/types/plugin.d.mts +0 -91
  385. package/dist/packages/plugin-changelog/dist/types/plugin.d.mts.map +0 -1
  386. package/dist/packages/unified/dist/html-DzwMMQv6.cjs +0 -612
  387. package/dist/packages/unified/dist/html-DzwMMQv6.mjs +0 -613
  388. package/dist/packages/unified/dist/html-DzwMMQv6.mjs.map +0 -1
  389. package/dist/packages/unified/dist/markdown/index.cjs +0 -1
  390. package/dist/packages/unified/dist/markdown/index.mjs +0 -3
  391. package/dist/packages/unified/dist/markdown-CLMRZZ3Y.cjs +0 -46
  392. package/dist/packages/unified/dist/markdown-CLMRZZ3Y.mjs +0 -47
  393. package/dist/packages/unified/dist/markdown-CLMRZZ3Y.mjs.map +0 -1
@@ -1,71 +1,15 @@
1
- import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
2
- import { Show, code, splitProps } from "@alloy-js/core";
3
- import { ElseClause, ElseIfClause, FunctionDeclaration, IfStatement, VarDeclaration } from "@alloy-js/typescript";
4
- import { getAppBin, getAppTitle } from "@shell-shock/core/plugin-utils";
5
- import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
6
- import { defu as defu$1 } from "defu";
7
- import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
8
- import { UpgradeBuiltin as UpgradeBuiltin$1 } from "@shell-shock/plugin-upgrade/components/upgrade-builtin";
9
-
10
- //#region src/components/upgrade-builtin.tsx
11
- /**
12
- * A component to generate the `executeUpgrade` function in the `shell-shock:upgrade` builtin module.
13
- */
14
- function ExecuteUpgradeFunctionDeclaration() {
15
- const context = usePowerlines();
16
- return createComponent(Show, {
17
- get when() {
18
- return context.config.upgradeType !== false;
19
- },
20
- get children() {
21
- return createComponent(FunctionDeclaration, {
22
- "export": true,
23
- async: true,
24
- name: "executeUpgrade",
25
- get doc() {
26
- return `Run upgrade processing for the ${getAppTitle(context, true)} application.`;
27
- },
28
- get children() {
29
- return createComponent(IfStatement, {
30
- condition: code`await isCheckForUpdatesRequired()`,
31
- get children() {
32
- return [
33
- createComponent(VarDeclaration, {
34
- "const": true,
35
- name: "spinner",
36
- initializer: code`createSpinner({
1
+ import{createComponent as e,memo as t,mergeProps as n}from"@alloy-js/core/jsx-runtime";import{Show as r,code as i,splitProps as a}from"@alloy-js/core";import{ElseClause as o,ElseIfClause as s,FunctionDeclaration as c,IfStatement as l,VarDeclaration as u}from"@alloy-js/typescript";import{getAppBin as d,getAppTitle as f}from"@shell-shock/core/plugin-utils";import{Spacing as p}from"@powerlines/plugin-alloy/core/components/spacing";import{usePowerlines as m}from"@powerlines/plugin-alloy/core/contexts/context";import{defu as h}from"defu";import{UpgradeBuiltin as g}from"@shell-shock/plugin-upgrade/components/upgrade-builtin";function _(){let n=m();return e(r,{get when(){return n.config.upgradeType!==!1},get children(){return e(c,{export:!0,async:!0,name:`executeUpgrade`,get doc(){return`Run upgrade processing for the ${f(n,!0)} application.`},get children(){return e(l,{condition:i`await isCheckForUpdatesRequired()`,get children(){return[e(u,{const:!0,name:`spinner`,initializer:i`createSpinner({
37
2
  message: "Checking for updates..."
38
- }).start(); `
39
- }),
40
- createComponent(VarDeclaration, {
41
- "const": true,
42
- name: "result",
43
- initializer: code`await checkForUpdates({ force: true }); `
44
- }),
45
- createComponent(IfStatement, {
46
- condition: code`(result as CheckForUpdatesErrorResult)?.isError`,
47
- get children() {
48
- return code`spinner.error(\`An error occurred while checking for ${getAppTitle(context, true)} application updates. Please try again later - if the problem persists, please contact support.\`);
49
- debug((result as CheckForUpdatesErrorResult).error); `;
50
- }
51
- }),
52
- createComponent(ElseIfClause, {
53
- condition: code`!(result as CheckForUpdatesSuccessResult)?.isUpToDate`,
54
- get children() {
55
- return createComponent(Show, {
56
- get when() {
57
- return context.config.upgradeType !== false && (context.config.upgradeType === "confirm" || context.config.upgradeType === "manual");
58
- },
59
- get fallback() {
60
- return [memo(() => code`spinner.stop();
61
- info(\`A new version of ${getAppTitle(context, true)} is available: \${red(\`v\${(result as CheckForUpdatesSuccessResult).currentVersion}\`)} \${textColors.body.tertiary("➜")} \${green(\`v\${(result as CheckForUpdatesSuccessResult).latestVersion}\`)}\${(result as CheckForUpdatesSuccessResult).package?.date ? textColors.body.tertiary(\` (updated on \${(result as CheckForUpdatesSuccessResult).package?.date})\`) : ""}\`);
3
+ }).start(); `}),e(u,{const:!0,name:`result`,initializer:i`await checkForUpdates({ force: true }); `}),e(l,{condition:i`(result as CheckForUpdatesErrorResult)?.isError`,get children(){return i`spinner.error(\`An error occurred while checking for ${f(n,!0)} application updates. Please try again later - if the problem persists, please contact support.\`);
4
+ debug((result as CheckForUpdatesErrorResult).error); `}}),e(s,{condition:i`!(result as CheckForUpdatesSuccessResult)?.isUpToDate`,get children(){return e(r,{get when(){return n.config.upgradeType!==!1&&(n.config.upgradeType===`confirm`||n.config.upgradeType===`manual`)},get fallback(){return[t(()=>i`spinner.stop();
5
+ info(\`A new version of ${f(n,!0)} is available: \${red(\`v\${(result as CheckForUpdatesSuccessResult).currentVersion}\`)} \${textColors.body.tertiary("➜")} \${green(\`v\${(result as CheckForUpdatesSuccessResult).latestVersion}\`)}\${(result as CheckForUpdatesSuccessResult).package?.date ? textColors.body.tertiary(\` (updated on \${(result as CheckForUpdatesSuccessResult).package?.date})\`) : ""}\`);
62
6
 
63
7
  try {
64
8
  await upgrade();
65
9
  spinner.success("Update successful! Please restart the application to apply the update.");
66
10
 
67
11
  writeLine("");
68
- help(\`You can view the changelog for this release at any time by running the \${inlineCode("${getAppBin(context)} changelog --latest")} command.\`);
12
+ help(\`You can view the changelog for this release at any time by running the \${inlineCode("${d(n)} changelog --latest")} command.\`);
69
13
 
70
14
  writeLine("");
71
15
  writeLine("Press any key to exit the application...");
@@ -73,21 +17,10 @@ function ExecuteUpgradeFunctionDeclaration() {
73
17
  await waitForKeyPress();
74
18
  return;
75
19
  } catch (err) {
76
- spinner.error(\`An error occurred while updating ${getAppTitle(context, true)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\`);
20
+ spinner.error(\`An error occurred while updating ${f(n,!0)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\`);
77
21
  debug(err);
78
- } `), createComponent(Spacing, {})];
79
- },
80
- get children() {
81
- return [
82
- memo(() => code`spinner.stop();
83
- warn(\`A new version of ${getAppTitle(context, true)} is available: \${red(\`v\${(result as CheckForUpdatesSuccessResult).currentVersion}\`)} \${textColors.body.tertiary("➜")} \${green(\`v\${(result as CheckForUpdatesSuccessResult).latestVersion}\`)}\${(result as CheckForUpdatesSuccessResult).package.date ? textColors.body.tertiary(\` (updated on \${(result as CheckForUpdatesSuccessResult).package.date})\`) : ""}${context.config.upgradeType !== false && context.config.upgradeType === "manual" ? ` \\nPlease run \`${getAppBin(context)} upgrade\` to upgrade to the latest version.` : ""}\`); `),
84
- createComponent(Spacing, {}),
85
- createComponent(Show, {
86
- get when() {
87
- return context.config.upgradeType !== false && context.config.upgradeType === "confirm";
88
- },
89
- get children() {
90
- return code`const willUpgradeNow = await confirm({
22
+ } `),e(p,{})]},get children(){return[t(()=>i`spinner.stop();
23
+ warn(\`A new version of ${f(n,!0)} is available: \${red(\`v\${(result as CheckForUpdatesSuccessResult).currentVersion}\`)} \${textColors.body.tertiary("➜")} \${green(\`v\${(result as CheckForUpdatesSuccessResult).latestVersion}\`)}\${(result as CheckForUpdatesSuccessResult).package.date ? textColors.body.tertiary(\` (updated on \${(result as CheckForUpdatesSuccessResult).package.date})\`) : ""}${n.config.upgradeType!==!1&&n.config.upgradeType===`manual`?` \\nPlease run \`${d(n)} upgrade\` to upgrade to the latest version.`:``}\`); `),e(p,{}),e(r,{get when(){return n.config.upgradeType!==!1&&n.config.upgradeType===`confirm`},get children(){return i`const willUpgradeNow = await confirm({
91
24
  message: \`Would you like to update to v\${(result as CheckForUpdatesSuccessResult).latestVersion} now?\`,
92
25
  initialValue: true
93
26
  });
@@ -96,7 +29,7 @@ function ExecuteUpgradeFunctionDeclaration() {
96
29
  }
97
30
 
98
31
  if (willUpgradeNow) {
99
- spinner.text = \`Updating ${getAppTitle(context, true)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}...\`;
32
+ spinner.text = \`Updating ${f(n,!0)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}...\`;
100
33
  spinner.start();
101
34
 
102
35
  try {
@@ -104,7 +37,7 @@ function ExecuteUpgradeFunctionDeclaration() {
104
37
  spinner.success("Update successful! Please restart the application to apply the update.");
105
38
 
106
39
  writeLine("");
107
- help(\`You can view the changelog for this release at any time by running the \${inlineCode("${getAppBin(context)} changelog --latest")} command.\`);
40
+ help(\`You can view the changelog for this release at any time by running the \${inlineCode("${d(n)} changelog --latest")} command.\`);
108
41
 
109
42
  writeLine("");
110
43
  writeLine("Press any key to exit the application...");
@@ -112,63 +45,12 @@ function ExecuteUpgradeFunctionDeclaration() {
112
45
  await waitForKeyPress();
113
46
  return;
114
47
  } catch (err) {
115
- spinner.error(\`An error occurred while updating ${getAppTitle(context, true)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\`);
48
+ spinner.error(\`An error occurred while updating ${f(n,!0)} to v\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\`);
116
49
  return { error: err };
117
50
  }
118
51
  } else {
119
- help("Updates can be performed at any time by running the \`${getAppBin(context)} upgrade\` command. Please remember that keeping your application up to date is important for ensuring you have the latest features, performance improvements, and security patches.");
120
- } `;
121
- }
122
- })
123
- ];
124
- }
125
- });
126
- }
127
- }),
128
- createComponent(ElseClause, { get children() {
129
- return code`spinner.success("Currently running the latest version of ${getAppTitle(context, true)}.");
52
+ help("Updates can be performed at any time by running the \`${d(n)} upgrade\` command. Please remember that keeping your application up to date is important for ensuring you have the latest features, performance improvements, and security patches.");
53
+ } `}})]}})}}),e(o,{get children(){return i`spinner.success("Currently running the latest version of ${f(n,!0)}.");
130
54
  writeLine("");
131
- `;
132
- } })
133
- ];
134
- }
135
- });
136
- }
137
- });
138
- }
139
- });
140
- }
141
- /**
142
- * A built-in upgrade module for Shell Shock.
143
- */
144
- function UpgradeBuiltin(props) {
145
- const [{ children, builtinImports }, rest] = splitProps(props, ["children", "builtinImports"]);
146
- return createComponent(UpgradeBuiltin$1, mergeProps(rest, {
147
- get builtinImports() {
148
- return defu$1(builtinImports ?? {}, {
149
- console: [
150
- "createSpinner",
151
- "debug",
152
- "info"
153
- ],
154
- prompts: ["waitForKeyPress"]
155
- });
156
- },
157
- get children() {
158
- return [
159
- createComponent(ExecuteUpgradeFunctionDeclaration, {}),
160
- createComponent(Spacing, {}),
161
- createComponent(Show, {
162
- get when() {
163
- return Boolean(children);
164
- },
165
- children
166
- })
167
- ];
168
- }
169
- }));
170
- }
171
-
172
- //#endregion
173
- export { ExecuteUpgradeFunctionDeclaration, UpgradeBuiltin };
55
+ `}})]}})}})}})}function v(t){let[{children:i,builtinImports:o},s]=a(t,[`children`,`builtinImports`]);return e(g,n(s,{get builtinImports(){return h(o??{},{console:[`createSpinner`,`debug`,`info`],prompts:[`waitForKeyPress`]})},get children(){return[e(_,{}),e(p,{}),e(r,{get when(){return!!i},children:i})]}}))}export{_ as ExecuteUpgradeFunctionDeclaration,v as UpgradeBuiltin};
174
56
  //# sourceMappingURL=upgrade-builtin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-builtin.mjs","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport {\n ElseClause,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { getAppBin, getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport type { UpgradeBuiltinProps } from \"@shell-shock/plugin-upgrade/components/upgrade-builtin\";\nimport { UpgradeBuiltin as BaseUpgradeBuiltin } from \"@shell-shock/plugin-upgrade/components/upgrade-builtin\";\nimport { defu } from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\n\n/**\n * A component to generate the `executeUpgrade` function in the `shell-shock:upgrade` builtin module.\n */\nexport function ExecuteUpgradeFunctionDeclaration() {\n const context = usePowerlines<CLIPresetContext>();\n\n return (\n <Show when={context.config.upgradeType !== false}>\n <FunctionDeclaration\n export\n async\n name=\"executeUpgrade\"\n doc={`Run upgrade processing for the ${getAppTitle(\n context,\n true\n )} application.`}>\n <IfStatement condition={code`await isCheckForUpdatesRequired()`}>\n <VarDeclaration\n const\n name=\"spinner\"\n initializer={code`createSpinner({\n message: \"Checking for updates...\"\n }).start(); `}\n />\n <VarDeclaration\n const\n name=\"result\"\n initializer={code`await checkForUpdates({ force: true }); `}\n />\n <IfStatement\n condition={code`(result as CheckForUpdatesErrorResult)?.isError`}>\n {code`spinner.error(\\`An error occurred while checking for ${getAppTitle(\n context,\n true\n )} application updates. Please try again later - if the problem persists, please contact support.\\`);\n debug((result as CheckForUpdatesErrorResult).error); `}\n </IfStatement>\n <ElseIfClause\n condition={code`!(result as CheckForUpdatesSuccessResult)?.isUpToDate`}>\n <Show\n when={\n context.config.upgradeType !== false &&\n (context.config.upgradeType === \"confirm\" ||\n context.config.upgradeType === \"manual\")\n }\n fallback={\n <>\n {code`spinner.stop();\n info(\\`A new version of ${getAppTitle(\n context,\n true\n )} is available: \\${red(\\`v\\${(result as CheckForUpdatesSuccessResult).currentVersion}\\`)} \\${textColors.body.tertiary(\"➜\")} \\${green(\\`v\\${(result as CheckForUpdatesSuccessResult).latestVersion}\\`)}\\${(result as CheckForUpdatesSuccessResult).package?.date ? textColors.body.tertiary(\\` (updated on \\${(result as CheckForUpdatesSuccessResult).package?.date})\\`) : \"\"}\\`);\n\n try {\n await upgrade();\n spinner.success(\"Update successful! Please restart the application to apply the update.\");\n\n writeLine(\"\");\n help(\\`You can view the changelog for this release at any time by running the \\${inlineCode(\"${getAppBin(\n context\n )} changelog --latest\")} command.\\`);\n\n writeLine(\"\");\n writeLine(\"Press any key to exit the application...\");\n\n await waitForKeyPress();\n return;\n } catch (err) {\n spinner.error(\\`An error occurred while updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\\`);\n debug(err);\n } `}\n <Spacing />\n </>\n }>\n {code`spinner.stop();\n warn(\\`A new version of ${getAppTitle(\n context,\n true\n )} is available: \\${red(\\`v\\${(result as CheckForUpdatesSuccessResult).currentVersion}\\`)} \\${textColors.body.tertiary(\"➜\")} \\${green(\\`v\\${(result as CheckForUpdatesSuccessResult).latestVersion}\\`)}\\${(result as CheckForUpdatesSuccessResult).package.date ? textColors.body.tertiary(\\` (updated on \\${(result as CheckForUpdatesSuccessResult).package.date})\\`) : \"\"}${\n context.config.upgradeType !== false &&\n context.config.upgradeType === \"manual\"\n ? ` \\\\nPlease run \\`${getAppBin(\n context\n )} upgrade\\` to upgrade to the latest version.`\n : \"\"\n }\\`); `}\n <Spacing />\n <Show\n when={\n context.config.upgradeType !== false &&\n context.config.upgradeType === \"confirm\"\n }>\n {code`const willUpgradeNow = await confirm({\n message: \\`Would you like to update to v\\${(result as CheckForUpdatesSuccessResult).latestVersion} now?\\`,\n initialValue: true\n });\n if (isCancel(willUpgradeNow)) {\n return;\n }\n\n if (willUpgradeNow) {\n spinner.text = \\`Updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}...\\`;\n spinner.start();\n\n try {\n await upgrade();\n spinner.success(\"Update successful! Please restart the application to apply the update.\");\n\n writeLine(\"\");\n help(\\`You can view the changelog for this release at any time by running the \\${inlineCode(\"${getAppBin(\n context\n )} changelog --latest\")} command.\\`);\n\n writeLine(\"\");\n writeLine(\"Press any key to exit the application...\");\n\n await waitForKeyPress();\n return;\n } catch (err) {\n spinner.error(\\`An error occurred while updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\\`);\n return { error: err };\n }\n } else {\n help(\"Updates can be performed at any time by running the \\`${getAppBin(\n context\n )} upgrade\\` command. Please remember that keeping your application up to date is important for ensuring you have the latest features, performance improvements, and security patches.\");\n } `}\n </Show>\n </Show>\n </ElseIfClause>\n <ElseClause>{code`spinner.success(\"Currently running the latest version of ${getAppTitle(\n context,\n true\n )}.\");\n writeLine(\"\");\n `}</ElseClause>\n </IfStatement>\n </FunctionDeclaration>\n </Show>\n );\n}\n\n/**\n * A built-in upgrade module for Shell Shock.\n */\nexport function UpgradeBuiltin(props: UpgradeBuiltinProps) {\n const [{ children, builtinImports }, rest] = splitProps(props, [\n \"children\",\n \"builtinImports\"\n ]);\n\n return (\n <BaseUpgradeBuiltin\n {...rest}\n builtinImports={defu(builtinImports ?? {}, {\n console: [\"createSpinner\", \"debug\", \"info\"],\n prompts: [\"waitForKeyPress\"]\n })}>\n <ExecuteUpgradeFunctionDeclaration />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BaseUpgradeBuiltin>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAgCA,SAAc,oCAAkC;;AAE9C,QAAA,gBAAA,MAAA;EACE,IAAC,OAAU;AACb,UAAA,QAAA,OAAA,gBAAA;;EAEA,IAAM,WAAU;;IAEV,UAAC;IACJ,OAAU;IACR,MAAA;IACC,IAAA,MAAA;AACA,YAAA,kCAAA,YAAA,SAAA,KAAA,CAAA;;IAEA,IAAI,WAAM;AACR,YAAO,gBAAA,aAAA;MACP,WAAA,IAAA;MACC,IAAA,WAAc;AAChB,cAAY;QAAA,gBAAgB,gBAAM;SAChC,SAAA;SACC,MAAA;SACI,aAAS,IAAA;;;SAGV,CAAC;QAAC,gBAAU,gBAAA;SAChB,SAAA;SACA,MAAA;SACC,aAAA,IAAA;SACA,CAAI;QAAE,gBAAM,aAAA;SACZ,WAAa,IAAK;SACnB,IAAA,WAAA;AACA,iBAAA,IAAA,wDAAA,YAAA,SAAA,KAAA,CAAA;;;SAGG,CAAA;QAAA,gBAAO,cAAA;SACP,WAAA,IAAA;SACC,IAAA,WAAY;AACb,iBAAO,gBAAU,MAAA;WACnB,IAAW,OAAA;AACZ,mBAAA,QAAA,OAAA,gBAAA,UAAA,QAAA,OAAA,gBAAA,aAAA,QAAA,OAAA,gBAAA;;WAEE,IAAA,WAAA;AACM,mBAAA,CAAA,WAAA,IAAA;8CAC2B,YAAQ,SAAA,KAAA,CAAA;;;;;;;qHAOG,UAAA,QAAA,CAAA;;;;;;;;;;wBAUnC,EAAI,gBAAgB,SAAI,EAAS,CAAC,CAAA;;WAEpC,IAAI,WAAW;;;0CAEA,YAAA,SAAA,KAAA,CAAA,6WAAA,QAAA,OAAA,gBAAA,SAAA,QAAA,OAAA,gBAAA,WAAA,oBAAA,UAAA,QAAA,CAAA,gDAAA,GAAA,OAAA;aAAA,gBAAA,SAAA,EAAA,CAAA;aAAA,gBAAA,MAAA;cACb,IAAA,OAAW;;;cAGX,IAAM,WAAA;AACN,sBAAW,IAAC;;;;;;;;;8CASnB,YAAA,SAAA,KAAA,CAAA;;;;;;;;mHAQoC,UAAA,QAAA,CAAA;;;;;;;;uEAQK,YAAA,SAAA,KAAA,CAAA;;;;gFAIgB,UAAA,QAAA,CAAA;;;cAGpD,CAAA;aAAA;;WAEJ,CAAA;;SAED,CAAC;QAAE,gBAAkB,YAAA,EACpB,IAAE,WAAa;AACb,gBAAE,IAAO,4DAAA,YAAA,SAAA,KAAA,CAAA;;;;;;MAMhB,CAAC;;;;EAIT,CAAC;;;;;;CAOF,MAAM,CAAC,EACL,UACA,kBACC,QAAQ,WAAO,OAAQ,CAAA,YAAgB,iBAAgB,CAAA;AAC1D,QAAO,gBAAa,kBAAO,WAAA,MAAA;EACzB,IAAI,iBAAc;AAChB,UAAO,OAAK,kBAAa,EAAO,EAAE;IAChC,SAAS;KAAC;KAAiB;KAAM;KAAA;IACjC,SAAS,CAAC,kBAAA;IACX,CAAC;;EAEJ,IAAI,WAAW;AACb,UAAO;IAAC,gBAAiB,mCAA8B,EAAQ,CAAA;IAAA,gBAAoB,SAAU,EAAC,CAAA;IAAA,gBAAsB,MAAK;KACvH,IAAI,OAAO;AACT,aAAM,QAAI,SAAA;;KAER;KACL,CAAC;IAAC;;EAEN,CAAC,CAAC"}
1
+ {"version":3,"file":"upgrade-builtin.mjs","names":[],"sources":["../../src/components/upgrade-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport {\n ElseClause,\n ElseIfClause,\n FunctionDeclaration,\n IfStatement,\n VarDeclaration\n} from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { getAppBin, getAppTitle } from \"@shell-shock/core/plugin-utils\";\nimport type { UpgradeBuiltinProps } from \"@shell-shock/plugin-upgrade/components/upgrade-builtin\";\nimport { UpgradeBuiltin as BaseUpgradeBuiltin } from \"@shell-shock/plugin-upgrade/components/upgrade-builtin\";\nimport { defu } from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\n\n/**\n * A component to generate the `executeUpgrade` function in the `shell-shock:upgrade` builtin module.\n */\nexport function ExecuteUpgradeFunctionDeclaration() {\n const context = usePowerlines<CLIPresetContext>();\n\n return (\n <Show when={context.config.upgradeType !== false}>\n <FunctionDeclaration\n export\n async\n name=\"executeUpgrade\"\n doc={`Run upgrade processing for the ${getAppTitle(\n context,\n true\n )} application.`}>\n <IfStatement condition={code`await isCheckForUpdatesRequired()`}>\n <VarDeclaration\n const\n name=\"spinner\"\n initializer={code`createSpinner({\n message: \"Checking for updates...\"\n }).start(); `}\n />\n <VarDeclaration\n const\n name=\"result\"\n initializer={code`await checkForUpdates({ force: true }); `}\n />\n <IfStatement\n condition={code`(result as CheckForUpdatesErrorResult)?.isError`}>\n {code`spinner.error(\\`An error occurred while checking for ${getAppTitle(\n context,\n true\n )} application updates. Please try again later - if the problem persists, please contact support.\\`);\n debug((result as CheckForUpdatesErrorResult).error); `}\n </IfStatement>\n <ElseIfClause\n condition={code`!(result as CheckForUpdatesSuccessResult)?.isUpToDate`}>\n <Show\n when={\n context.config.upgradeType !== false &&\n (context.config.upgradeType === \"confirm\" ||\n context.config.upgradeType === \"manual\")\n }\n fallback={\n <>\n {code`spinner.stop();\n info(\\`A new version of ${getAppTitle(\n context,\n true\n )} is available: \\${red(\\`v\\${(result as CheckForUpdatesSuccessResult).currentVersion}\\`)} \\${textColors.body.tertiary(\"➜\")} \\${green(\\`v\\${(result as CheckForUpdatesSuccessResult).latestVersion}\\`)}\\${(result as CheckForUpdatesSuccessResult).package?.date ? textColors.body.tertiary(\\` (updated on \\${(result as CheckForUpdatesSuccessResult).package?.date})\\`) : \"\"}\\`);\n\n try {\n await upgrade();\n spinner.success(\"Update successful! Please restart the application to apply the update.\");\n\n writeLine(\"\");\n help(\\`You can view the changelog for this release at any time by running the \\${inlineCode(\"${getAppBin(\n context\n )} changelog --latest\")} command.\\`);\n\n writeLine(\"\");\n writeLine(\"Press any key to exit the application...\");\n\n await waitForKeyPress();\n return;\n } catch (err) {\n spinner.error(\\`An error occurred while updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\\`);\n debug(err);\n } `}\n <Spacing />\n </>\n }>\n {code`spinner.stop();\n warn(\\`A new version of ${getAppTitle(\n context,\n true\n )} is available: \\${red(\\`v\\${(result as CheckForUpdatesSuccessResult).currentVersion}\\`)} \\${textColors.body.tertiary(\"➜\")} \\${green(\\`v\\${(result as CheckForUpdatesSuccessResult).latestVersion}\\`)}\\${(result as CheckForUpdatesSuccessResult).package.date ? textColors.body.tertiary(\\` (updated on \\${(result as CheckForUpdatesSuccessResult).package.date})\\`) : \"\"}${\n context.config.upgradeType !== false &&\n context.config.upgradeType === \"manual\"\n ? ` \\\\nPlease run \\`${getAppBin(\n context\n )} upgrade\\` to upgrade to the latest version.`\n : \"\"\n }\\`); `}\n <Spacing />\n <Show\n when={\n context.config.upgradeType !== false &&\n context.config.upgradeType === \"confirm\"\n }>\n {code`const willUpgradeNow = await confirm({\n message: \\`Would you like to update to v\\${(result as CheckForUpdatesSuccessResult).latestVersion} now?\\`,\n initialValue: true\n });\n if (isCancel(willUpgradeNow)) {\n return;\n }\n\n if (willUpgradeNow) {\n spinner.text = \\`Updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}...\\`;\n spinner.start();\n\n try {\n await upgrade();\n spinner.success(\"Update successful! Please restart the application to apply the update.\");\n\n writeLine(\"\");\n help(\\`You can view the changelog for this release at any time by running the \\${inlineCode(\"${getAppBin(\n context\n )} changelog --latest\")} command.\\`);\n\n writeLine(\"\");\n writeLine(\"Press any key to exit the application...\");\n\n await waitForKeyPress();\n return;\n } catch (err) {\n spinner.error(\\`An error occurred while updating ${getAppTitle(\n context,\n true\n )} to v\\${(result as CheckForUpdatesSuccessResult).latestVersion}. Please try again later - if the problem persists, please contact support.\\`);\n return { error: err };\n }\n } else {\n help(\"Updates can be performed at any time by running the \\`${getAppBin(\n context\n )} upgrade\\` command. Please remember that keeping your application up to date is important for ensuring you have the latest features, performance improvements, and security patches.\");\n } `}\n </Show>\n </Show>\n </ElseIfClause>\n <ElseClause>{code`spinner.success(\"Currently running the latest version of ${getAppTitle(\n context,\n true\n )}.\");\n writeLine(\"\");\n `}</ElseClause>\n </IfStatement>\n </FunctionDeclaration>\n </Show>\n );\n}\n\n/**\n * A built-in upgrade module for Shell Shock.\n */\nexport function UpgradeBuiltin(props: UpgradeBuiltinProps) {\n const [{ children, builtinImports }, rest] = splitProps(props, [\n \"children\",\n \"builtinImports\"\n ]);\n\n return (\n <BaseUpgradeBuiltin\n {...rest}\n builtinImports={defu(builtinImports ?? {}, {\n console: [\"createSpinner\", \"debug\", \"info\"],\n prompts: [\"waitForKeyPress\"]\n })}>\n <ExecuteUpgradeFunctionDeclaration />\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BaseUpgradeBuiltin>\n );\n}\n"],"mappings":"mnBA6BA,SAAc,GAAmC,CACjD,IAAQ,EAAC,GAAkB,CAC3B,OAAS,EAAkB,EAAA,CAC3B,IAAO,MAAO,mCAGV,IAAC,UAAa,CAChB,OAAA,EAAA,EAAA,CACK,OAAS,GACR,MAAO,yBAEP,IAAC,KAAA,CACC,MAAM,kCAA+B,EAAM,EAAA,GAAA,CAAA,gBAE7C,IAAA,UAAA,CACA,OAAA,EAAA,EAAA,CACI,UAAE,CAAA,oCACF,IAAE,UAAY,CAChB,MAAO,CAAA,EAAA,EAAA,CACP,MAAA,GACC,KAAW,UACb,YAAY,CAAW;;4BAGpB,CAAI,CAAE,EAAO,EAAA,CACb,MAAa,GACT,KAAA,SACA,YAAW,CAAA,2CAChB,CAAA,CAAA,EAAA,EAAA,CACA,UAAA,CAAA,kDACC,IAAA,UAAA,CACM,MAAM,EAAA,wDAAA,EAAA,EAAA,GAAA,CAAA;sEAGb,CAAA,CAAA,EAAA,EAAA,CACC,UAAe,CAAE,wDAChB,IAAK,UAAa,CACjB,OAAO,EAAA,EAAA,CACP,IAAA,MAAA,CACC,OAAY,EAAS,OAAO,cAAiB,KAAQ,EAAQ,OAAS,cAAgB,WAAW,EAAA,OAAA,cAAA,WAEpG,IAAW,UAAA,CACZ,MAAA,CAAA,MAAA,CAAA;8CAC6B,EAAA,EAAA,GAA+B,CAAA;;;;;;;qHAOhD,EAAA,EAAA,CAAA;;;;;;;;yEAQC,EAAA,EAAA,GAAA,CAAA;;wBAEF,CAAA,EAAiB,EAAO,EAAA,CAAU,CAAC,EAErC,IAAE,UAAa,CACb,MAAO,CAAA,MAAa,CAAI;0CACtB,EAAA,EAAA,GAAA,CAAA,6WAAA,EAAA,OAAA,cAAA,IAAA,EAAA,OAAA,cAAA,SAAA,oBAAA,EAAA,EAAA,CAAA,8CAAA,GAAA,OAAA,CAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,EAAA,CACA,IAAC,MAAU,qEAGb,IAAA,UAAiB;;;;;;;;;8CAUhB,EAAA,EAAA,GAAA,CAAA;;;;;;;;mHAQuF,EAAe,EAAC,CAAQ;;;;;;;;uEAQ9G,EAAA,EAAA,GAAA,CAAA;;;;gFAIiC,EAAA,EAAA,CAAA;qBAGvC,CAAA,CAAO,EAEP,CAAA,EAEH,CAAC,CAAE,EAAM,EAAA,CACR,IAAA,UAAA;;eAKD,CAAC,CAAC,EAEN,CAAC,EAEL,CAAC,EAEL,CAAC,eAOF,GAAM,CAAC,CACL,WAAA,kBAEC,GAAQ,EAAO,EAAM,CAAA,WAAiB,iBAAA,CAAA,CACzC,OAAO,EAAiB,EAAA,EAAA,EAAA,CACtB,IAAI,gBAAiB,CACnB,OAAO,EAAK,GAAkB,EAAE,CAAC,CAC/B,QAAS,CAAC,gBAAW,QAAA,OAAA,CACrB,QAAS,CAAC,kBAAI,CACf,CAAC,EAEJ,IAAI,UAAU,CACZ,MAAO,CAAC,EAAS,EAAA,EAAA,CAAA,CAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,EAAA,CACf,IAAI,MAAM,CACR,MAAO,EAAG,GAEF,WACX,CAAC,CAAC,EAEN,CAAC,CAAC"}
@@ -1,113 +1 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- const require_components_command_router = require('./command-router.cjs');
4
- const require_components_command_entry = require('./command-entry.cjs');
5
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
- let _alloy_js_core = require("@alloy-js/core");
7
- let _powerlines_plugin_alloy_core_components = require("@powerlines/plugin-alloy/core/components");
8
- let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
9
- let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
- let _stryke_path_join = require("@stryke/path/join");
11
- let defu = require("defu");
12
- defu = require_runtime.__toESM(defu);
13
- let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
14
- let _powerlines_plugin_alloy_typescript_components_typescript_file = require("@powerlines/plugin-alloy/typescript/components/typescript-file");
15
- let _shell_shock_preset_script_components_virtual_command_entry = require("@shell-shock/preset-script/components/virtual-command-entry");
16
-
17
- //#region src/components/virtual-command-entry.tsx
18
- /**
19
- * The virtual command entry point for the Shell Shock project.
20
- */
21
- function VirtualCommandEntry(props) {
22
- const { command, imports, builtinImports, ...rest } = props;
23
- const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
24
- const filePath = (0, _alloy_js_core.computed)(() => (0, _stryke_path_join.joinPaths)(context.entryPath, command.segments.filter((segment) => !(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment)).join("/"), "index.ts"));
25
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_typescript_file.TypescriptFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
26
- get path() {
27
- return filePath.value;
28
- },
29
- get imports() {
30
- return (0, defu.default)(imports ?? {}, Object.entries(command.children).filter(([, child]) => child.isVirtual).reduce((ret, [name, child]) => {
31
- ret[`./${child.name}`] = [{
32
- name: "handler",
33
- alias: `handle${(0, _stryke_string_format_pascal_case.pascalCase)(name)}`
34
- }];
35
- return ret;
36
- }, {}));
37
- },
38
- get builtinImports() {
39
- return (0, defu.default)(builtinImports ?? {}, {
40
- env: ["isDevelopment", "isDebug"],
41
- console: [
42
- "warn",
43
- "error",
44
- "info",
45
- "help",
46
- "table",
47
- "writeLine",
48
- "splitText",
49
- "textColors",
50
- "stripAnsi"
51
- ],
52
- utils: [
53
- "isMinimal",
54
- "isUnicodeSupported",
55
- "isInteractive",
56
- "findSuggestions",
57
- "sleep"
58
- ],
59
- state: [
60
- "useGlobal",
61
- "GlobalOptions",
62
- "useGlobalOptions",
63
- "withCommand",
64
- "useArgs",
65
- "hasFlag",
66
- "isHelp"
67
- ],
68
- prompts: [
69
- "text",
70
- "numeric",
71
- "toggle",
72
- "select",
73
- "isCancel"
74
- ],
75
- [(0, _stryke_path_join.joinPaths)("help", ...command.segments.filter((segment) => !(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment)))]: ["showHelp"],
76
- [(0, _stryke_path_join.joinPaths)("banner", ...command.segments.filter((segment) => !(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment)))]: ["showBanner"]
77
- });
78
- },
79
- get children() {
80
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components.Spacing, {}), (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_preset_script_components_virtual_command_entry.VirtualCommandHandlerDeclaration, {
81
- command,
82
- get children() {
83
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_command_router.CommandRouter, {
84
- get segments() {
85
- return command.segments;
86
- },
87
- get commands() {
88
- return command.children;
89
- }
90
- });
91
- }
92
- })];
93
- }
94
- })), (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.For, {
95
- get each() {
96
- return Object.values(command.children);
97
- },
98
- children: (child) => (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
99
- get when() {
100
- return child.isVirtual;
101
- },
102
- get fallback() {
103
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_components_command_entry.CommandEntry, { command: child });
104
- },
105
- get children() {
106
- return (0, _alloy_js_core_jsx_runtime.createComponent)(VirtualCommandEntry, { command: child });
107
- }
108
- })
109
- })];
110
- }
111
-
112
- //#endregion
113
- exports.VirtualCommandEntry = VirtualCommandEntry;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../_virtual/_rolldown/runtime.cjs`),t=require(`./command-router.cjs`),n=require(`./command-entry.cjs`);let r=require(`@alloy-js/core/jsx-runtime`),i=require(`@alloy-js/core`),a=require(`@powerlines/plugin-alloy/core/components`),o=require(`@shell-shock/core/plugin-utils`),s=require(`@powerlines/plugin-alloy/core/contexts/context`),c=require(`@stryke/path/join`),l=require(`@stryke/string-format/pascal-case`),u=require(`defu`);u=e.__toESM(u);let d=require(`@powerlines/plugin-alloy/typescript/components/typescript-file`),f=require(`@shell-shock/preset-script/components/virtual-command-entry`);function p(e){let{command:m,imports:h,builtinImports:g,..._}=e,v=(0,s.usePowerlines)(),y=(0,i.computed)(()=>(0,c.joinPaths)(v.entryPath,m.segments.filter(e=>!(0,o.isDynamicPathSegment)(e)).join(`/`),`index.ts`));return[(0,r.createComponent)(d.TypescriptFile,(0,r.mergeProps)(_,{get path(){return y.value},get imports(){return(0,u.default)(h??{},Object.entries(m.children).filter(([,e])=>e.isVirtual).reduce((e,[t,n])=>(e[`./${n.name}`]=[{name:`handler`,alias:`handle${(0,l.pascalCase)(t)}`}],e),{}))},get builtinImports(){return(0,u.default)(g??{},{env:[`isDevelopment`,`isDebug`],console:[`warn`,`error`,`info`,`help`,`table`,`writeLine`,`splitText`,`textColors`,`stripAnsi`],utils:[`isMinimal`,`isUnicodeSupported`,`isInteractive`,`findSuggestions`,`sleep`],state:[{name:`GlobalOptions`,type:!0},`useGlobal`,`useGlobalOptions`,`withCommand`,`useArgs`,`hasFlag`,`isHelp`],prompts:[`text`,`numeric`,`toggle`,`select`,`isCancel`],[(0,c.joinPaths)(`help`,...m.segments.filter(e=>!(0,o.isDynamicPathSegment)(e)))]:[`showHelp`],[(0,c.joinPaths)(`banner`,...m.segments.filter(e=>!(0,o.isDynamicPathSegment)(e)))]:[`showBanner`]})},get children(){return[(0,r.createComponent)(a.Spacing,{}),(0,r.createComponent)(f.VirtualCommandHandlerDeclaration,{command:m,get children(){return(0,r.createComponent)(t.CommandRouter,{get segments(){return m.segments},get commands(){return m.children}})}})]}})),(0,r.createComponent)(i.For,{get each(){return Object.values(m.children)},children:e=>(0,r.createComponent)(i.Show,{get when(){return e.isVirtual},get fallback(){return(0,r.createComponent)(n.CommandEntry,{command:e})},get children(){return(0,r.createComponent)(p,{command:e})}})})]}exports.VirtualCommandEntry=p;
@@ -1,111 +1,2 @@
1
- import { CommandRouter } from "./command-router.mjs";
2
- import { CommandEntry } from "./command-entry.mjs";
3
- import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
4
- import { For, Show, computed } from "@alloy-js/core";
5
- import { Spacing } from "@powerlines/plugin-alloy/core/components";
6
- import { isDynamicPathSegment } from "@shell-shock/core/plugin-utils";
7
- import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
8
- import { joinPaths } from "@stryke/path/join";
9
- import defu from "defu";
10
- import { pascalCase } from "@stryke/string-format/pascal-case";
11
- import { TypescriptFile } from "@powerlines/plugin-alloy/typescript/components/typescript-file";
12
- import { VirtualCommandHandlerDeclaration } from "@shell-shock/preset-script/components/virtual-command-entry";
13
-
14
- //#region src/components/virtual-command-entry.tsx
15
- /**
16
- * The virtual command entry point for the Shell Shock project.
17
- */
18
- function VirtualCommandEntry(props) {
19
- const { command, imports, builtinImports, ...rest } = props;
20
- const context = usePowerlines();
21
- const filePath = computed(() => joinPaths(context.entryPath, command.segments.filter((segment) => !isDynamicPathSegment(segment)).join("/"), "index.ts"));
22
- return [createComponent(TypescriptFile, mergeProps(rest, {
23
- get path() {
24
- return filePath.value;
25
- },
26
- get imports() {
27
- return defu(imports ?? {}, Object.entries(command.children).filter(([, child]) => child.isVirtual).reduce((ret, [name, child]) => {
28
- ret[`./${child.name}`] = [{
29
- name: "handler",
30
- alias: `handle${pascalCase(name)}`
31
- }];
32
- return ret;
33
- }, {}));
34
- },
35
- get builtinImports() {
36
- return defu(builtinImports ?? {}, {
37
- env: ["isDevelopment", "isDebug"],
38
- console: [
39
- "warn",
40
- "error",
41
- "info",
42
- "help",
43
- "table",
44
- "writeLine",
45
- "splitText",
46
- "textColors",
47
- "stripAnsi"
48
- ],
49
- utils: [
50
- "isMinimal",
51
- "isUnicodeSupported",
52
- "isInteractive",
53
- "findSuggestions",
54
- "sleep"
55
- ],
56
- state: [
57
- "useGlobal",
58
- "GlobalOptions",
59
- "useGlobalOptions",
60
- "withCommand",
61
- "useArgs",
62
- "hasFlag",
63
- "isHelp"
64
- ],
65
- prompts: [
66
- "text",
67
- "numeric",
68
- "toggle",
69
- "select",
70
- "isCancel"
71
- ],
72
- [joinPaths("help", ...command.segments.filter((segment) => !isDynamicPathSegment(segment)))]: ["showHelp"],
73
- [joinPaths("banner", ...command.segments.filter((segment) => !isDynamicPathSegment(segment)))]: ["showBanner"]
74
- });
75
- },
76
- get children() {
77
- return [createComponent(Spacing, {}), createComponent(VirtualCommandHandlerDeclaration, {
78
- command,
79
- get children() {
80
- return createComponent(CommandRouter, {
81
- get segments() {
82
- return command.segments;
83
- },
84
- get commands() {
85
- return command.children;
86
- }
87
- });
88
- }
89
- })];
90
- }
91
- })), createComponent(For, {
92
- get each() {
93
- return Object.values(command.children);
94
- },
95
- children: (child) => createComponent(Show, {
96
- get when() {
97
- return child.isVirtual;
98
- },
99
- get fallback() {
100
- return createComponent(CommandEntry, { command: child });
101
- },
102
- get children() {
103
- return createComponent(VirtualCommandEntry, { command: child });
104
- }
105
- })
106
- })];
107
- }
108
-
109
- //#endregion
110
- export { VirtualCommandEntry };
1
+ import{CommandRouter as e}from"./command-router.mjs";import{CommandEntry as t}from"./command-entry.mjs";import{createComponent as n,mergeProps as r}from"@alloy-js/core/jsx-runtime";import{For as i,Show as a,computed as o}from"@alloy-js/core";import{Spacing as s}from"@powerlines/plugin-alloy/core/components";import{isDynamicPathSegment as c}from"@shell-shock/core/plugin-utils";import{usePowerlines as l}from"@powerlines/plugin-alloy/core/contexts/context";import{joinPaths as u}from"@stryke/path/join";import{pascalCase as d}from"@stryke/string-format/pascal-case";import f from"defu";import{TypescriptFile as p}from"@powerlines/plugin-alloy/typescript/components/typescript-file";import{VirtualCommandHandlerDeclaration as m}from"@shell-shock/preset-script/components/virtual-command-entry";function h(g){let{command:_,imports:v,builtinImports:y,...b}=g,x=l(),S=o(()=>u(x.entryPath,_.segments.filter(e=>!c(e)).join(`/`),`index.ts`));return[n(p,r(b,{get path(){return S.value},get imports(){return f(v??{},Object.entries(_.children).filter(([,e])=>e.isVirtual).reduce((e,[t,n])=>(e[`./${n.name}`]=[{name:`handler`,alias:`handle${d(t)}`}],e),{}))},get builtinImports(){return f(y??{},{env:[`isDevelopment`,`isDebug`],console:[`warn`,`error`,`info`,`help`,`table`,`writeLine`,`splitText`,`textColors`,`stripAnsi`],utils:[`isMinimal`,`isUnicodeSupported`,`isInteractive`,`findSuggestions`,`sleep`],state:[{name:`GlobalOptions`,type:!0},`useGlobal`,`useGlobalOptions`,`withCommand`,`useArgs`,`hasFlag`,`isHelp`],prompts:[`text`,`numeric`,`toggle`,`select`,`isCancel`],[u(`help`,..._.segments.filter(e=>!c(e)))]:[`showHelp`],[u(`banner`,..._.segments.filter(e=>!c(e)))]:[`showBanner`]})},get children(){return[n(s,{}),n(m,{command:_,get children(){return n(e,{get segments(){return _.segments},get commands(){return _.children}})}})]}})),n(i,{get each(){return Object.values(_.children)},children:e=>n(a,{get when(){return e.isVirtual},get fallback(){return n(t,{command:e})},get children(){return n(h,{command:e})}})})]}export{h as VirtualCommandEntry};
111
2
  //# sourceMappingURL=virtual-command-entry.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-command-entry.mjs","names":[],"sources":["../../src/components/virtual-command-entry.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, For, Show } from \"@alloy-js/core\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { TypescriptFileImports } from \"@powerlines/plugin-alloy/types/components\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TypescriptFile } from \"@powerlines/plugin-alloy/typescript/components/typescript-file\";\nimport type { CommandTree } from \"@shell-shock/core\";\nimport { isDynamicPathSegment } from \"@shell-shock/core/plugin-utils\";\nimport { VirtualCommandHandlerDeclaration } from \"@shell-shock/preset-script/components/virtual-command-entry\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport defu from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\nimport { CommandEntry } from \"./command-entry\";\nimport { CommandRouter } from \"./command-router\";\n\nexport interface VirtualCommandEntryProps extends Omit<\n EntryFileProps,\n \"path\" | \"typeDefinition\"\n> {\n command: CommandTree;\n}\n\n/**\n * The virtual command entry point for the Shell Shock project.\n */\nexport function VirtualCommandEntry(props: VirtualCommandEntryProps) {\n const { command, imports, builtinImports, ...rest } = props;\n\n const context = usePowerlines<CLIPresetContext>();\n const filePath = computed(() =>\n joinPaths(\n context.entryPath,\n command.segments\n .filter(segment => !isDynamicPathSegment(segment))\n .join(\"/\"),\n \"index.ts\"\n )\n );\n\n return (\n <>\n <TypescriptFile\n {...rest}\n path={filePath.value}\n imports={defu(\n imports ?? {},\n Object.entries(command.children)\n .filter(([, child]) => child.isVirtual)\n .reduce((ret, [name, child]) => {\n ret[`./${child.name}`] = [\n { name: \"handler\", alias: `handle${pascalCase(name)}` }\n ];\n\n return ret;\n }, {} as TypescriptFileImports)\n )}\n builtinImports={defu(builtinImports ?? {}, {\n env: [\"isDevelopment\", \"isDebug\"],\n console: [\n \"warn\",\n \"error\",\n \"info\",\n \"help\",\n \"table\",\n \"writeLine\",\n \"splitText\",\n \"textColors\",\n \"stripAnsi\"\n ],\n utils: [\n \"isMinimal\",\n \"isUnicodeSupported\",\n \"isInteractive\",\n \"findSuggestions\",\n \"sleep\"\n ],\n state: [\n \"useGlobal\",\n \"GlobalOptions\",\n \"useGlobalOptions\",\n \"withCommand\",\n \"useArgs\",\n \"hasFlag\",\n \"isHelp\"\n ],\n prompts: [\"text\", \"numeric\", \"toggle\", \"select\", \"isCancel\"],\n [joinPaths(\n \"help\",\n ...command.segments.filter(\n segment => !isDynamicPathSegment(segment)\n )\n )]: [\"showHelp\"],\n [joinPaths(\n \"banner\",\n ...command.segments.filter(\n segment => !isDynamicPathSegment(segment)\n )\n )]: [\"showBanner\"]\n })}>\n <Spacing />\n <VirtualCommandHandlerDeclaration command={command}>\n <CommandRouter\n segments={command.segments}\n commands={command.children}\n />\n </VirtualCommandHandlerDeclaration>\n </TypescriptFile>\n <For each={Object.values(command.children)}>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAyCA,SAAE,oBAAA,OAAA;CACA,MAAK,EACL,SACF,SACE,4BAEA;CACA,MAAM,UAAU,eAAc;CAC9B,MAAE,WAAS,eAAA,UAAA,QAAA,WAAA,QAAA,SAAA,QAAA,YAAA,CAAA,qBAAA,QAAA,CAAA,CAAA,KAAA,IAAA,EAAA,WAAA,CAAA;AACX,QAAI,CAAA,gBAAiB,gBAAA,WAAA,MAAA;EACnB,IAAE,OAAQ;AACR,UAAG,SAAO;;EAEZ,IAAG,UAAQ;AACX,UAAA,KAAA,WAAA,EAAA,EAAA,OAAA,QAAA,QAAA,SAAA,CAAA,QAAA,GAAA,WAAA,MAAA,UAAA,CAAA,QAAA,KAAA,CAAA,MAAA,WAAA;AACD,QAAA,KAAA,MAAA,UAAA,CAAA;;KAEM,OAAA,SAAA,WAAA,KAAA;KACJ,CAAA;AACE,WAAA;MACE,EAAE,CAAK,CAAA;;EAEZ,IAAI,iBAAa;AACf,UAAI,KAAQ,kBAAK,EAAA,EAAA;IACf,KAAE,CAAA,iBAAe,UAAgB;IACjC,SAAK;KAAA;KAAW;KAAW;KAAM;KAAS;KAAA;KAAA;KAAA;KAAA;KAAA;IAC1C,OAAK;KAAA;KAAc;KAAiB;KAAA;KAAA;KAAA;IACpC,OAAM;KAAA;KAAe;KAAU;KAAA;KAAA;KAAA;KAAA;KAAA;IAC/B,SAAS;KAAC;KAAO;KAAU;KAAQ;KAAQ;KAAiB;KAC3D,UAAM,QAAA,GAAA,QAAA,SAAA,QAAA,YAAA,CAAA,qBAAA,QAAA,CAAA,CAAA,GAAA,CAAA,WAAA;;IAER,CAAC;;EAEJ,IAAI,WAAC;AACH,UAAE,CAAA,gBAAqB,SAAA,EAAc,CAAC,EAAE,gBAAK,kCAAA;IAClC;IACT,IAAE,WAAS;AACT,YAAO,gBAAC,eAAA;MACN,IAAC,WAAM;AACN,cAAK,QAAA;;MAEN,IAAC,WAAM;AACN,cAAA,QAAU;;MAEZ,CAAC;;IAEL,CAAC,CAAC;;EAEN,CAAC,CAAC,EAAE,gBAAgB,KAAA;EACnB,IAAI,OAAK;AACP,UAAO,OAAA,OAAc,QAAA,SAAA;;EAEvB,WAAS,UAAK,gBAAA,MAAA;GACZ,IAAI,OAAC;AACH,WAAO,MAAE;;GAEX,IAAI,WAAG;AACL,WAAK,gBAAiB,cAAA,EACpB,SAAG,OACJ,CAAC;;GAEJ,IAAI,WAAS;AACX,WAAG,gBAAA,qBAAA,EACD,SAAS,OACV,CAAC;;GAEL,CAAC;EACH,CAAC,CAAC"}
1
+ {"version":3,"file":"virtual-command-entry.mjs","names":[],"sources":["../../src/components/virtual-command-entry.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { computed, For, Show } from \"@alloy-js/core\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport type { TypescriptFileImports } from \"@powerlines/plugin-alloy/types/components\";\nimport type { EntryFileProps } from \"@powerlines/plugin-alloy/typescript/components/entry-file\";\nimport { TypescriptFile } from \"@powerlines/plugin-alloy/typescript/components/typescript-file\";\nimport type { CommandTree } from \"@shell-shock/core\";\nimport { isDynamicPathSegment } from \"@shell-shock/core/plugin-utils\";\nimport { VirtualCommandHandlerDeclaration } from \"@shell-shock/preset-script/components/virtual-command-entry\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport defu from \"defu\";\nimport type { CLIPresetContext } from \"../types/plugin\";\nimport { CommandEntry } from \"./command-entry\";\nimport { CommandRouter } from \"./command-router\";\n\nexport interface VirtualCommandEntryProps extends Omit<\n EntryFileProps,\n \"path\" | \"typeDefinition\"\n> {\n command: CommandTree;\n}\n\n/**\n * The virtual command entry point for the Shell Shock project.\n */\nexport function VirtualCommandEntry(props: VirtualCommandEntryProps) {\n const { command, imports, builtinImports, ...rest } = props;\n\n const context = usePowerlines<CLIPresetContext>();\n const filePath = computed(() =>\n joinPaths(\n context.entryPath,\n command.segments\n .filter(segment => !isDynamicPathSegment(segment))\n .join(\"/\"),\n \"index.ts\"\n )\n );\n\n return (\n <>\n <TypescriptFile\n {...rest}\n path={filePath.value}\n imports={defu(\n imports ?? {},\n Object.entries(command.children)\n .filter(([, child]) => child.isVirtual)\n .reduce((ret, [name, child]) => {\n ret[`./${child.name}`] = [\n { name: \"handler\", alias: `handle${pascalCase(name)}` }\n ];\n\n return ret;\n }, {} as TypescriptFileImports)\n )}\n builtinImports={defu(builtinImports ?? {}, {\n env: [\"isDevelopment\", \"isDebug\"],\n console: [\n \"warn\",\n \"error\",\n \"info\",\n \"help\",\n \"table\",\n \"writeLine\",\n \"splitText\",\n \"textColors\",\n \"stripAnsi\"\n ],\n utils: [\n \"isMinimal\",\n \"isUnicodeSupported\",\n \"isInteractive\",\n \"findSuggestions\",\n \"sleep\"\n ],\n state: [\n { name: \"GlobalOptions\", type: true },\n \"useGlobal\",\n \"useGlobalOptions\",\n \"withCommand\",\n \"useArgs\",\n \"hasFlag\",\n \"isHelp\"\n ],\n prompts: [\"text\", \"numeric\", \"toggle\", \"select\", \"isCancel\"],\n [joinPaths(\n \"help\",\n ...command.segments.filter(\n segment => !isDynamicPathSegment(segment)\n )\n )]: [\"showHelp\"],\n [joinPaths(\n \"banner\",\n ...command.segments.filter(\n segment => !isDynamicPathSegment(segment)\n )\n )]: [\"showBanner\"]\n })}>\n <Spacing />\n <VirtualCommandHandlerDeclaration command={command}>\n <CommandRouter\n segments={command.segments}\n commands={command.children}\n />\n </VirtualCommandHandlerDeclaration>\n </TypescriptFile>\n <For each={Object.values(command.children)}>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </>\n );\n}\n"],"mappings":"wyBAkCA,GAAO,CACL,UACC,UACD,iBACA,GAAA,GACF,QAEE,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,SAAA,OAAA,GAAA,CAAA,EAAA,EAAA,CAAA,CAAA,KAAA,IAAA,CAAA,WAAA,CAAA,CACA,MAAK,CAAA,EAAqB,EAAe,EAAY,EAAO,CAC5D,IAAA,MAAA,CACI,OAAC,EAAS,qBAGd,OAAM,EAAU,GAAA,EAAa,CAAC,OAAA,QAAgB,EAAG,SAAA,CAAA,QAAA,EAAA,KAAA,EAAA,UAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAC3C,EAAA,KAAS,EAAE,QAAa,CAAA,CAC5B,KAAS,UACP,MAAQ,SAAS,EAAA,EAAA,GACjB,CAAA,CACS,GACN,EAAA,CAAA,CAAI,EAET,IAAA,gBAAA,CACD,OAAA,EAAA,GAAA,EAAA,CAAA,iCAEK,QAAC,CAAA,OAAA,QAAA,OAAA,OAAA,QAAA,YAAA,YAAA,aAAA,YAAA,CACJ,MAAA,CAAA,YAAA,qBAAA,gBAAA,kBAAA,QAAA,CACE,MAAA,CAAA,CACG,KAAM,gBACR,KAAM,GACN,CAAA,YAAa,mBAAA,cAAA,UAAA,UAAA,SAAA,CACb,QAAS,CAAC,OAAK,UAAA,SAAA,SAAA,WAAA,EACd,EAAQ,OAAQ,GAAA,EAAQ,SAAQ,OAAA,GAAA,CAAA,EAAA,EAAA,CAAA,CAAA,EAAA,CAAA,WAAA,EAChC,EAAU,SAAU,GAAG,EAAQ,SAAC,OAAS,GAAA,CAAA,EAAA,EAAA,CAAA,CAAA,EAAA,CAAA,aAAA,CAC3C,CAAC,EAEJ,IAAI,UAAU,CACZ,MAAO,CAAC,EAAC,EAAA,EAAA,CAAA,CAAA,EAAA,EAAA,WAEP,IAAI,UAAS,CACX,OAAO,EAAI,EAAqB,CACjC,IAAA,UAAA,CACD,OAAA,EAAqB,UAEnB,IAAA,UAAS,CACN,OAAK,EAAA,UAEP,CAAC,EAEL,CAAC,CAAC,EAEN,CAAC,CAAC,CAAE,EAAgB,EAAA,CACnB,IAAI,MAAK,CACP,OAAO,OAAA,OAAS,EAAA,SAAA,EAElB,SAAM,GAAO,EAAA,EAAA,CACX,IAAI,MAAG,CACL,OAAK,EAAA,WAEP,IAAI,UAAG,CACL,OAAK,EAAK,EAAA,CACR,QAAC,EACF,CAAC,EAEJ,IAAI,UAAG,CACL,OAAK,EAAiB,EAAA,CACpB,QAAG,EACJ,CAAC,EAEL,CAAC,CACH,CAAC,CAAC"}
@@ -1,39 +1 @@
1
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
- let _shell_shock_core = require("@shell-shock/core");
3
- let _shell_shock_preset_script_helpers_get_global_options = require("@shell-shock/preset-script/helpers/get-global-options");
4
-
5
- //#region src/helpers/get-global-options.ts
6
- /**
7
- * Get the default command options.
8
- *
9
- * @param context - The build context.
10
- * @param _ - The command input.
11
- * @returns The default command options.
12
- */
13
- function getGlobalOptions(context, _) {
14
- return [
15
- ...(0, _shell_shock_preset_script_helpers_get_global_options.getGlobalOptions)(),
16
- context.config.interactive !== "never" && context.config.interactive !== true && {
17
- name: "interactive",
18
- title: "Interactive",
19
- description: "Enable interactive mode - will be set to false if running in a CI pipeline.",
20
- alias: ["i", "interact"],
21
- kind: _shell_shock_core.CommandParameterKinds.boolean,
22
- optional: true,
23
- default: context.config.interactive !== false
24
- },
25
- context.config.interactive !== "never" && context.config.interactive !== false && {
26
- name: "non-interactive",
27
- title: "Non-Interactive",
28
- description: "Disable interactive mode - will be set to true if running in a CI pipeline.",
29
- alias: ["no-interactive"],
30
- kind: _shell_shock_core.CommandParameterKinds.boolean,
31
- optional: true,
32
- default: false,
33
- isNegativeOf: "interactive"
34
- }
35
- ].filter(Boolean);
36
- }
37
-
38
- //#endregion
39
- exports.getGlobalOptions = getGlobalOptions;
1
+ require(`../_virtual/_rolldown/runtime.cjs`);let e=require(`@shell-shock/core`),t=require(`@shell-shock/preset-script/helpers/get-global-options`);function n(n,r){return[...(0,t.getGlobalOptions)(),n.config.interactive!==`never`&&n.config.interactive!==!0&&{name:`interactive`,title:`Interactive`,description:`Enable interactive mode - will be set to false if running in a CI pipeline.`,alias:[`i`,`interact`],kind:e.CommandParameterKinds.boolean,optional:!0,default:n.config.interactive!==!1},n.config.interactive!==`never`&&n.config.interactive!==!1&&{name:`non-interactive`,title:`Non-Interactive`,description:`Disable interactive mode - will be set to true if running in a CI pipeline.`,alias:[`no-interactive`],kind:e.CommandParameterKinds.boolean,optional:!0,default:!1,isNegativeOf:`interactive`}].filter(Boolean)}exports.getGlobalOptions=n;
@@ -1,39 +1,2 @@
1
- import { CommandParameterKinds } from "@shell-shock/core";
2
- import { getGlobalOptions } from "@shell-shock/preset-script/helpers/get-global-options";
3
-
4
- //#region src/helpers/get-global-options.ts
5
- /**
6
- * Get the default command options.
7
- *
8
- * @param context - The build context.
9
- * @param _ - The command input.
10
- * @returns The default command options.
11
- */
12
- function getGlobalOptions$1(context, _) {
13
- return [
14
- ...getGlobalOptions(),
15
- context.config.interactive !== "never" && context.config.interactive !== true && {
16
- name: "interactive",
17
- title: "Interactive",
18
- description: "Enable interactive mode - will be set to false if running in a CI pipeline.",
19
- alias: ["i", "interact"],
20
- kind: CommandParameterKinds.boolean,
21
- optional: true,
22
- default: context.config.interactive !== false
23
- },
24
- context.config.interactive !== "never" && context.config.interactive !== false && {
25
- name: "non-interactive",
26
- title: "Non-Interactive",
27
- description: "Disable interactive mode - will be set to true if running in a CI pipeline.",
28
- alias: ["no-interactive"],
29
- kind: CommandParameterKinds.boolean,
30
- optional: true,
31
- default: false,
32
- isNegativeOf: "interactive"
33
- }
34
- ].filter(Boolean);
35
- }
36
-
37
- //#endregion
38
- export { getGlobalOptions$1 as getGlobalOptions };
1
+ import{CommandParameterKinds as e}from"@shell-shock/core";import{getGlobalOptions as t}from"@shell-shock/preset-script/helpers/get-global-options";function n(n,r){return[...t(),n.config.interactive!==`never`&&n.config.interactive!==!0&&{name:`interactive`,title:`Interactive`,description:`Enable interactive mode - will be set to false if running in a CI pipeline.`,alias:[`i`,`interact`],kind:e.boolean,optional:!0,default:n.config.interactive!==!1},n.config.interactive!==`never`&&n.config.interactive!==!1&&{name:`non-interactive`,title:`Non-Interactive`,description:`Disable interactive mode - will be set to true if running in a CI pipeline.`,alias:[`no-interactive`],kind:e.boolean,optional:!0,default:!1,isNegativeOf:`interactive`}].filter(Boolean)}export{n as getGlobalOptions};
39
2
  //# sourceMappingURL=get-global-options.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-global-options.mjs","names":["getGlobalOptions","_getGlobalOptions"],"sources":["../../src/helpers/get-global-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CommandBase, CommandOption } from \"@shell-shock/core\";\nimport { CommandParameterKinds } from \"@shell-shock/core\";\nimport { getGlobalOptions as _getGlobalOptions } from \"@shell-shock/preset-script/helpers/get-global-options\";\nimport type { CLIPresetContext } from \"../types\";\n\n/**\n * Get the default command options.\n *\n * @param context - The build context.\n * @param _ - The command input.\n * @returns The default command options.\n */\nexport function getGlobalOptions(\n context: CLIPresetContext,\n _: CommandBase\n): CommandOption[] {\n return [\n ..._getGlobalOptions(),\n context.config.interactive !== \"never\" &&\n context.config.interactive !== true && {\n name: \"interactive\",\n title: \"Interactive\",\n description:\n \"Enable interactive mode - will be set to false if running in a CI pipeline.\",\n alias: [\"i\", \"interact\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: context.config.interactive !== false\n },\n context.config.interactive !== \"never\" &&\n context.config.interactive !== false && {\n name: \"non-interactive\",\n title: \"Non-Interactive\",\n description:\n \"Disable interactive mode - will be set to true if running in a CI pipeline.\",\n alias: [\"no-interactive\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: false,\n isNegativeOf: \"interactive\"\n }\n ].filter(Boolean) as CommandOption[];\n}\n"],"mappings":";;;;;;;;;;;AA8BA,SAAgBA,mBACd,SACA,GACiB;AACjB,QAAO;EACL,GAAGC,kBAAmB;EACtB,QAAQ,OAAO,gBAAgB,WAC7B,QAAQ,OAAO,gBAAgB,QAAQ;GACrC,MAAM;GACN,OAAO;GACP,aACE;GACF,OAAO,CAAC,KAAK,WAAW;GACxB,MAAM,sBAAsB;GAC5B,UAAU;GACV,SAAS,QAAQ,OAAO,gBAAgB;GACzC;EACH,QAAQ,OAAO,gBAAgB,WAC7B,QAAQ,OAAO,gBAAgB,SAAS;GACtC,MAAM;GACN,OAAO;GACP,aACE;GACF,OAAO,CAAC,iBAAiB;GACzB,MAAM,sBAAsB;GAC5B,UAAU;GACV,SAAS;GACT,cAAc;GACf;EACJ,CAAC,OAAO,QAAQ"}
1
+ {"version":3,"file":"get-global-options.mjs","names":[],"sources":["../../src/helpers/get-global-options.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { CommandBase, CommandOption } from \"@shell-shock/core\";\nimport { CommandParameterKinds } from \"@shell-shock/core\";\nimport { getGlobalOptions as _getGlobalOptions } from \"@shell-shock/preset-script/helpers/get-global-options\";\nimport type { CLIPresetContext } from \"../types\";\n\n/**\n * Get the default command options.\n *\n * @param context - The build context.\n * @param _ - The command input.\n * @returns The default command options.\n */\nexport function getGlobalOptions(\n context: CLIPresetContext,\n _: CommandBase\n): CommandOption[] {\n return [\n ..._getGlobalOptions(),\n context.config.interactive !== \"never\" &&\n context.config.interactive !== true && {\n name: \"interactive\",\n title: \"Interactive\",\n description:\n \"Enable interactive mode - will be set to false if running in a CI pipeline.\",\n alias: [\"i\", \"interact\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: context.config.interactive !== false\n },\n context.config.interactive !== \"never\" &&\n context.config.interactive !== false && {\n name: \"non-interactive\",\n title: \"Non-Interactive\",\n description:\n \"Disable interactive mode - will be set to true if running in a CI pipeline.\",\n alias: [\"no-interactive\"],\n kind: CommandParameterKinds.boolean,\n optional: true,\n default: false,\n isNegativeOf: \"interactive\"\n }\n ].filter(Boolean) as CommandOption[];\n}\n"],"mappings":"mJA2BA,SAAc,EAAiB,EAAA,EAAA,CAC7B,MAAE,CAAA,GAAQ,GAAoB,CAAA,EAAO,OAAA,cAAA,SAAA,EAAA,OAAA,cAAA,IAAA,CACrC,KAAA,cACF,MAAO,cACL,YAAS,8EACP,MAAC,CAAA,IAAA,WAAA,CACF,KAAA,EAAgB,QACjB,SAAO,GACL,QAAG,EAAA,OAAmB,cAAA,GACvB,CAAC,EAAQ,OAAO,cAAiB,SAAQ,EAAA,OAAA,cAAA,IAAA,CACxC,KAAE,kBACF,MAAI,kBACJ,YAAY,8EACZ,MAAI,CAAA,iBAAW,CACf,KAAM,EAAoB,QAC1B,SAAU,GACV,QAAS,GACT,aAAc,cACf,CAAC,CAAC,OAAG,QAAS"}