@shell-shock/core 0.17.21 → 0.17.23

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 (307) hide show
  1. package/README.md +16 -7
  2. package/dist/api.cjs +4 -5
  3. package/dist/api.d.cts +1 -1
  4. package/dist/api.d.mts +1 -1
  5. package/dist/api.mjs +2 -2
  6. package/dist/command-B6KYexlV.d.mts +308 -0
  7. package/dist/command-B6KYexlV.d.mts.map +1 -0
  8. package/dist/command-CtfR7hKM.d.cts +308 -0
  9. package/dist/command-CtfR7hKM.d.cts.map +1 -0
  10. package/dist/components/command-validation-logic.cjs +153 -216
  11. package/dist/components/command-validation-logic.d.cts +2 -1
  12. package/dist/components/command-validation-logic.d.cts.map +1 -1
  13. package/dist/components/command-validation-logic.d.mts +2 -1
  14. package/dist/components/command-validation-logic.mjs +153 -214
  15. package/dist/components/docs.cjs +6 -364
  16. package/dist/components/docs.d.cts +2 -3
  17. package/dist/components/docs.d.cts.map +1 -1
  18. package/dist/components/docs.d.mts +2 -3
  19. package/dist/components/docs.mjs +2 -356
  20. package/dist/components/exec-builtin.cjs +63 -100
  21. package/dist/components/exec-builtin.d.cts +1 -2
  22. package/dist/components/exec-builtin.d.cts.map +1 -1
  23. package/dist/components/exec-builtin.d.mts +1 -2
  24. package/dist/components/exec-builtin.mjs +7 -41
  25. package/dist/components/helpers.cjs +2 -52
  26. package/dist/components/helpers.d.cts +2 -1
  27. package/dist/components/helpers.d.cts.map +1 -1
  28. package/dist/components/helpers.d.mts +2 -1
  29. package/dist/components/helpers.mjs +2 -50
  30. package/dist/components/index.cjs +7 -23
  31. package/dist/components/index.mjs +9 -9
  32. package/dist/components/options-parser-logic.cjs +198 -420
  33. package/dist/components/options-parser-logic.d.cts +2 -5
  34. package/dist/components/options-parser-logic.d.cts.map +1 -1
  35. package/dist/components/options-parser-logic.d.mts +2 -5
  36. package/dist/components/options-parser-logic.mjs +192 -407
  37. package/dist/components/state-builtin.cjs +106 -164
  38. package/dist/components/state-builtin.d.cts +1 -2
  39. package/dist/components/state-builtin.d.cts.map +1 -1
  40. package/dist/components/state-builtin.d.mts +1 -2
  41. package/dist/components/state-builtin.mjs +12 -68
  42. package/dist/components/usage.cjs +4 -48
  43. package/dist/components/usage.d.cts +1 -2
  44. package/dist/components/usage.d.cts.map +1 -1
  45. package/dist/components/usage.d.mts +1 -2
  46. package/dist/components/usage.mjs +4 -46
  47. package/dist/components/utils-builtin.cjs +77 -144
  48. package/dist/components/utils-builtin.d.cts +1 -2
  49. package/dist/components/utils-builtin.d.cts.map +1 -1
  50. package/dist/components/utils-builtin.d.mts +1 -2
  51. package/dist/components/utils-builtin.mjs +9 -74
  52. package/dist/config-BIF9mEz0.d.cts +157 -0
  53. package/dist/config-BIF9mEz0.d.cts.map +1 -0
  54. package/dist/config-CnNYdfsL.d.mts +157 -0
  55. package/dist/config-CnNYdfsL.d.mts.map +1 -0
  56. package/dist/config.cjs +24 -58
  57. package/dist/config.d.cts +1 -2
  58. package/dist/config.d.cts.map +1 -1
  59. package/dist/config.d.mts +1 -2
  60. package/dist/config.mjs +23 -55
  61. package/dist/{plugin-utils/context-helpers.mjs → context-helpers-D3EJxwbq.mjs} +5 -83
  62. package/dist/context-helpers-D3EJxwbq.mjs.map +1 -0
  63. package/dist/{plugin-utils/context-helpers.cjs → context-helpers-_wUuFRB8.cjs} +63 -92
  64. package/dist/contexts/command.cjs +3 -9
  65. package/dist/contexts/command.d.cts +1 -2
  66. package/dist/contexts/command.d.cts.map +1 -1
  67. package/dist/contexts/command.d.mts +1 -2
  68. package/dist/contexts/command.mjs +2 -7
  69. package/dist/contexts/index.cjs +19 -1
  70. package/dist/contexts/index.d.cts +2 -1
  71. package/dist/contexts/index.d.mts +2 -1
  72. package/dist/contexts/index.mjs +2 -1
  73. package/dist/contexts/options.cjs +7 -30
  74. package/dist/contexts/options.d.cts +1 -2
  75. package/dist/contexts/options.d.cts.map +1 -1
  76. package/dist/contexts/options.d.mts +1 -2
  77. package/dist/contexts/options.mjs +7 -27
  78. package/dist/contexts/power-plant.cjs +19 -0
  79. package/dist/contexts/power-plant.d.cts +2 -0
  80. package/dist/contexts/power-plant.d.mts +2 -0
  81. package/dist/contexts/power-plant.mjs +5 -0
  82. package/dist/docs-C6ZvsVMu.cjs +278 -0
  83. package/dist/docs-CGQ2HtEY.mjs +249 -0
  84. package/dist/docs-CGQ2HtEY.mjs.map +1 -0
  85. package/dist/engine.cjs +5 -39
  86. package/dist/engine.d.cts +1 -2
  87. package/dist/engine.d.cts.map +1 -1
  88. package/dist/engine.d.mts +1 -2
  89. package/dist/engine.mjs +4 -37
  90. package/dist/generator.cjs +68 -0
  91. package/dist/generator.d.cts +15 -0
  92. package/dist/generator.d.cts.map +1 -0
  93. package/dist/generator.d.mts +15 -0
  94. package/dist/generator.d.mts.map +1 -0
  95. package/dist/generator.mjs +66 -0
  96. package/dist/generator.mjs.map +1 -0
  97. package/dist/{helpers/get-framework.cjs → get-framework-CxZc2krd.cjs} +7 -8
  98. package/dist/{helpers/get-framework.mjs → get-framework-Dlqz2hVZ.mjs} +3 -8
  99. package/dist/get-framework-Dlqz2hVZ.mjs.map +1 -0
  100. package/dist/helpers/power-plant.cjs +102 -0
  101. package/dist/helpers/power-plant.d.cts +61 -0
  102. package/dist/helpers/power-plant.d.cts.map +1 -0
  103. package/dist/helpers/power-plant.d.mts +61 -0
  104. package/dist/helpers/power-plant.d.mts.map +1 -0
  105. package/dist/helpers/power-plant.mjs +99 -0
  106. package/dist/helpers/power-plant.mjs.map +1 -0
  107. package/dist/index-D4klH_pj.d.mts +2 -0
  108. package/dist/index-DYOBadKY.d.cts +2 -0
  109. package/dist/index.cjs +1 -37
  110. package/dist/index.d.cts +4 -6
  111. package/dist/index.d.cts.map +1 -1
  112. package/dist/index.d.mts +4 -6
  113. package/dist/index.mjs +0 -35
  114. package/dist/package-B7Vu265G.mjs +6 -0
  115. package/dist/package-B7Vu265G.mjs.map +1 -0
  116. package/dist/{package.cjs → package-BLC4qc8t.cjs} +2 -4
  117. package/dist/plugin-B-hM2twc.mjs +1458 -0
  118. package/dist/plugin-B-hM2twc.mjs.map +1 -0
  119. package/dist/plugin-Bhfq0DMC.cjs +1490 -0
  120. package/dist/plugin-utils/index.cjs +359 -26
  121. package/dist/plugin-utils/index.d.cts +273 -9
  122. package/dist/plugin-utils/index.d.cts.map +1 -0
  123. package/dist/plugin-utils/index.d.mts +273 -9
  124. package/dist/plugin-utils/index.d.mts.map +1 -0
  125. package/dist/plugin-utils/index.mjs +346 -10
  126. package/dist/plugin-utils/index.mjs.map +1 -0
  127. package/dist/plugin.cjs +3 -496
  128. package/dist/plugin.d.cts +1 -3
  129. package/dist/plugin.d.cts.map +1 -1
  130. package/dist/plugin.d.mts +1 -3
  131. package/dist/plugin.mjs +2 -491
  132. package/dist/power-plant-LgxcvlMN.d.cts +4 -0
  133. package/dist/power-plant-LgxcvlMN.d.mts +4 -0
  134. package/dist/reflect-CSiffeL9.cjs +27 -0
  135. package/dist/reflect-DXKSFgvS.mjs +23 -0
  136. package/dist/reflect-DXKSFgvS.mjs.map +1 -0
  137. package/dist/schemas/env.cjs +91 -0
  138. package/dist/schemas/env.d.cts +145 -0
  139. package/dist/schemas/env.d.cts.map +1 -0
  140. package/dist/schemas/env.d.mts +145 -0
  141. package/dist/{types → schemas}/env.d.mts.map +1 -1
  142. package/dist/schemas/env.mjs +91 -0
  143. package/dist/schemas/index.cjs +4 -0
  144. package/dist/schemas/index.d.cts +2 -0
  145. package/dist/schemas/index.d.mts +2 -0
  146. package/dist/schemas/index.mjs +3 -0
  147. package/dist/types/command.cjs +0 -402
  148. package/dist/types/command.d.cts +2 -309
  149. package/dist/types/command.d.mts +2 -309
  150. package/dist/types/command.mjs +1 -368
  151. package/dist/types/config.cjs +0 -175
  152. package/dist/types/config.d.cts +2 -126
  153. package/dist/types/config.d.mts +2 -126
  154. package/dist/types/config.mjs +1 -164
  155. package/dist/types/context.cjs +0 -45
  156. package/dist/types/context.d.cts +2 -31
  157. package/dist/types/context.d.mts +2 -31
  158. package/dist/types/context.mjs +1 -41
  159. package/dist/types/index.cjs +3 -53
  160. package/dist/types/index.d.cts +4 -5
  161. package/dist/types/index.d.mts +4 -5
  162. package/dist/types/index.mjs +4 -5
  163. package/package.json +106 -42
  164. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  165. package/dist/api.cjs.map +0 -1
  166. package/dist/components/command-validation-logic.cjs.map +0 -1
  167. package/dist/components/docs.cjs.map +0 -1
  168. package/dist/components/docs.mjs.map +0 -1
  169. package/dist/components/exec-builtin.cjs.map +0 -1
  170. package/dist/components/helpers.cjs.map +0 -1
  171. package/dist/components/options-parser-logic.cjs.map +0 -1
  172. package/dist/components/state-builtin.cjs.map +0 -1
  173. package/dist/components/usage.cjs.map +0 -1
  174. package/dist/components/utils-builtin.cjs.map +0 -1
  175. package/dist/config.cjs.map +0 -1
  176. package/dist/contexts/command.cjs.map +0 -1
  177. package/dist/contexts/options.cjs.map +0 -1
  178. package/dist/engine.cjs.map +0 -1
  179. package/dist/helpers/automd.cjs +0 -193
  180. package/dist/helpers/automd.cjs.map +0 -1
  181. package/dist/helpers/automd.mjs +0 -190
  182. package/dist/helpers/automd.mjs.map +0 -1
  183. package/dist/helpers/docs-helpers.cjs +0 -24
  184. package/dist/helpers/docs-helpers.cjs.map +0 -1
  185. package/dist/helpers/docs-helpers.mjs +0 -24
  186. package/dist/helpers/docs-helpers.mjs.map +0 -1
  187. package/dist/helpers/get-framework.cjs.map +0 -1
  188. package/dist/helpers/get-framework.mjs.map +0 -1
  189. package/dist/helpers/paths.cjs +0 -137
  190. package/dist/helpers/paths.cjs.map +0 -1
  191. package/dist/helpers/paths.mjs +0 -134
  192. package/dist/helpers/paths.mjs.map +0 -1
  193. package/dist/helpers/persistence.cjs +0 -114
  194. package/dist/helpers/persistence.cjs.map +0 -1
  195. package/dist/helpers/persistence.mjs +0 -113
  196. package/dist/helpers/persistence.mjs.map +0 -1
  197. package/dist/helpers/update-package-json.cjs +0 -65
  198. package/dist/helpers/update-package-json.cjs.map +0 -1
  199. package/dist/helpers/update-package-json.mjs +0 -64
  200. package/dist/helpers/update-package-json.mjs.map +0 -1
  201. package/dist/helpers/utilities.cjs +0 -95
  202. package/dist/helpers/utilities.cjs.map +0 -1
  203. package/dist/helpers/utilities.mjs +0 -94
  204. package/dist/helpers/utilities.mjs.map +0 -1
  205. package/dist/helpers/validations.cjs +0 -71
  206. package/dist/helpers/validations.cjs.map +0 -1
  207. package/dist/helpers/validations.mjs +0 -70
  208. package/dist/helpers/validations.mjs.map +0 -1
  209. package/dist/index.cjs.map +0 -1
  210. package/dist/package.cjs.map +0 -1
  211. package/dist/package.mjs +0 -6
  212. package/dist/package.mjs.map +0 -1
  213. package/dist/plugin-utils/compute-bin.cjs +0 -49
  214. package/dist/plugin-utils/compute-bin.cjs.map +0 -1
  215. package/dist/plugin-utils/compute-bin.d.cts +0 -13
  216. package/dist/plugin-utils/compute-bin.d.cts.map +0 -1
  217. package/dist/plugin-utils/compute-bin.d.mts +0 -13
  218. package/dist/plugin-utils/compute-bin.d.mts.map +0 -1
  219. package/dist/plugin-utils/compute-bin.mjs +0 -49
  220. package/dist/plugin-utils/compute-bin.mjs.map +0 -1
  221. package/dist/plugin-utils/context-helpers.cjs.map +0 -1
  222. package/dist/plugin-utils/context-helpers.d.cts +0 -106
  223. package/dist/plugin-utils/context-helpers.d.cts.map +0 -1
  224. package/dist/plugin-utils/context-helpers.d.mts +0 -106
  225. package/dist/plugin-utils/context-helpers.d.mts.map +0 -1
  226. package/dist/plugin-utils/context-helpers.mjs.map +0 -1
  227. package/dist/plugin-utils/deepkit.cjs +0 -70
  228. package/dist/plugin-utils/deepkit.cjs.map +0 -1
  229. package/dist/plugin-utils/deepkit.d.cts +0 -23
  230. package/dist/plugin-utils/deepkit.d.cts.map +0 -1
  231. package/dist/plugin-utils/deepkit.d.mts +0 -23
  232. package/dist/plugin-utils/deepkit.d.mts.map +0 -1
  233. package/dist/plugin-utils/deepkit.mjs +0 -69
  234. package/dist/plugin-utils/deepkit.mjs.map +0 -1
  235. package/dist/plugin-utils/description-helpers.cjs +0 -112
  236. package/dist/plugin-utils/description-helpers.cjs.map +0 -1
  237. package/dist/plugin-utils/description-helpers.d.cts +0 -44
  238. package/dist/plugin-utils/description-helpers.d.cts.map +0 -1
  239. package/dist/plugin-utils/description-helpers.d.mts +0 -44
  240. package/dist/plugin-utils/description-helpers.d.mts.map +0 -1
  241. package/dist/plugin-utils/description-helpers.mjs +0 -108
  242. package/dist/plugin-utils/description-helpers.mjs.map +0 -1
  243. package/dist/plugin-utils/get-command-tree.cjs +0 -118
  244. package/dist/plugin-utils/get-command-tree.cjs.map +0 -1
  245. package/dist/plugin-utils/get-command-tree.d.cts +0 -36
  246. package/dist/plugin-utils/get-command-tree.d.cts.map +0 -1
  247. package/dist/plugin-utils/get-command-tree.d.mts +0 -36
  248. package/dist/plugin-utils/get-command-tree.d.mts.map +0 -1
  249. package/dist/plugin-utils/get-command-tree.mjs +0 -115
  250. package/dist/plugin-utils/get-command-tree.mjs.map +0 -1
  251. package/dist/plugin-utils/reflect.cjs +0 -54
  252. package/dist/plugin-utils/reflect.cjs.map +0 -1
  253. package/dist/plugin-utils/reflect.d.cts +0 -14
  254. package/dist/plugin-utils/reflect.d.cts.map +0 -1
  255. package/dist/plugin-utils/reflect.d.mts +0 -14
  256. package/dist/plugin-utils/reflect.d.mts.map +0 -1
  257. package/dist/plugin-utils/reflect.mjs +0 -53
  258. package/dist/plugin-utils/reflect.mjs.map +0 -1
  259. package/dist/plugin-utils/traverse-command-tree.cjs +0 -65
  260. package/dist/plugin-utils/traverse-command-tree.cjs.map +0 -1
  261. package/dist/plugin-utils/traverse-command-tree.d.cts +0 -22
  262. package/dist/plugin-utils/traverse-command-tree.d.cts.map +0 -1
  263. package/dist/plugin-utils/traverse-command-tree.d.mts +0 -22
  264. package/dist/plugin-utils/traverse-command-tree.d.mts.map +0 -1
  265. package/dist/plugin-utils/traverse-command-tree.mjs +0 -63
  266. package/dist/plugin-utils/traverse-command-tree.mjs.map +0 -1
  267. package/dist/plugin-utils/type-checks.cjs +0 -222
  268. package/dist/plugin-utils/type-checks.cjs.map +0 -1
  269. package/dist/plugin-utils/type-checks.d.cts +0 -41
  270. package/dist/plugin-utils/type-checks.d.cts.map +0 -1
  271. package/dist/plugin-utils/type-checks.d.mts +0 -41
  272. package/dist/plugin-utils/type-checks.d.mts.map +0 -1
  273. package/dist/plugin-utils/type-checks.mjs +0 -218
  274. package/dist/plugin-utils/type-checks.mjs.map +0 -1
  275. package/dist/plugin.cjs.map +0 -1
  276. package/dist/plugin.mjs.map +0 -1
  277. package/dist/resolver/deepkit.cjs +0 -110
  278. package/dist/resolver/deepkit.cjs.map +0 -1
  279. package/dist/resolver/deepkit.mjs +0 -109
  280. package/dist/resolver/deepkit.mjs.map +0 -1
  281. package/dist/resolver/helpers.cjs +0 -184
  282. package/dist/resolver/helpers.cjs.map +0 -1
  283. package/dist/resolver/helpers.mjs +0 -180
  284. package/dist/resolver/helpers.mjs.map +0 -1
  285. package/dist/resolver/resolve.cjs +0 -473
  286. package/dist/resolver/resolve.cjs.map +0 -1
  287. package/dist/resolver/resolve.mjs +0 -473
  288. package/dist/resolver/resolve.mjs.map +0 -1
  289. package/dist/types/command.cjs.map +0 -1
  290. package/dist/types/command.d.cts.map +0 -1
  291. package/dist/types/command.d.mts.map +0 -1
  292. package/dist/types/command.mjs.map +0 -1
  293. package/dist/types/config.cjs.map +0 -1
  294. package/dist/types/config.d.cts.map +0 -1
  295. package/dist/types/config.d.mts.map +0 -1
  296. package/dist/types/config.mjs.map +0 -1
  297. package/dist/types/context.cjs.map +0 -1
  298. package/dist/types/context.d.cts.map +0 -1
  299. package/dist/types/context.d.mts.map +0 -1
  300. package/dist/types/context.mjs.map +0 -1
  301. package/dist/types/env.cjs +0 -53
  302. package/dist/types/env.cjs.map +0 -1
  303. package/dist/types/env.d.cts +0 -71
  304. package/dist/types/env.d.cts.map +0 -1
  305. package/dist/types/env.d.mts +0 -71
  306. package/dist/types/env.mjs +0 -51
  307. /package/dist/{types → schemas}/env.mjs.map +0 -0
@@ -1,42 +1,14 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ require('../contexts/power-plant.cjs');
3
3
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
4
  let _alloy_js_core = require("@alloy-js/core");
5
5
  let defu = require("defu");
6
- defu = require_runtime.__toESM(defu, 1);
7
- let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
6
+ let _power_plant_alloy_js_core_components_spacing = require("@power-plant/alloy-js/core/components/spacing");
8
7
  let _alloy_js_typescript = require("@alloy-js/typescript");
8
+ let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
9
9
  let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
10
- let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
11
10
 
12
11
  //#region src/components/exec-builtin.tsx
13
- const __ΩOmit = [
14
- "T",
15
- "K",
16
- () => __ΩPick,
17
- () => __ΩExclude,
18
- "Omit",
19
- "b!b\"e!!e!!ge!\"o$#o##w%y"
20
- ];
21
- const __ΩPick = [
22
- "T",
23
- "K",
24
- "Pick",
25
- "l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
26
- ];
27
- const __ΩExclude = [
28
- "T",
29
- "U",
30
- "Exclude",
31
- "l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
32
- ];
33
- const __ΩExecBuiltinProps = [
34
- () => __ΩOmit,
35
- "id",
36
- "description",
37
- "ExecBuiltinProps",
38
- "P!P.\".#Jo!#Mw$y"
39
- ];
40
12
  /**
41
13
  * A built-in module for handling command execution in Shell Shock.
42
14
  */
@@ -47,7 +19,7 @@ function ExecBuiltin(props) {
47
19
  description: "A module to handle command execution in a Shell Shock application."
48
20
  }, rest, {
49
21
  get imports() {
50
- return (0, defu.default)(rest.imports ?? {}, {
22
+ return (0, defu.defu)(rest.imports ?? {}, {
51
23
  "node:path": [
52
24
  "basename",
53
25
  "extname",
@@ -67,7 +39,7 @@ function ExecBuiltin(props) {
67
39
  });
68
40
  },
69
41
  get builtinImports() {
70
- return (0, defu.default)(rest.builtinImports ?? {}, { env: ["isWindows", "env"] });
42
+ return (0, defu.defu)(rest.builtinImports ?? {}, { env: ["isWindows", "env"] });
71
43
  },
72
44
  get children() {
73
45
  return [
@@ -106,7 +78,7 @@ function ExecBuiltin(props) {
106
78
  }
107
79
  return result; `
108
80
  }),
109
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
81
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
110
82
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
111
83
  name: "isWindowsBatchCommand",
112
84
  parameters: [{
@@ -121,7 +93,7 @@ function ExecBuiltin(props) {
121
93
 
122
94
  return ext === ".cmd" || ext === ".bat"; `
123
95
  }),
124
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
96
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
125
97
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
126
98
  name: "escapeForCmdExe",
127
99
  parameters: [{
@@ -140,7 +112,7 @@ function ExecBuiltin(props) {
140
112
  }
141
113
  return \`"\${arg.replace(/"/g, '""')}"\`; `
142
114
  }),
143
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
115
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
144
116
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
145
117
  name: "buildCmdExeCommandLine",
146
118
  parameters: [{
@@ -155,7 +127,7 @@ function ExecBuiltin(props) {
155
127
  " "
156
128
  ); `
157
129
  }),
158
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
130
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
159
131
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
160
132
  name: "resolveNpmArgvForWindows",
161
133
  doc: "On Windows, Node 18.20.2+ (CVE-2024-27980) rejects spawning .cmd/.bat directly without shell, causing EINVAL. Resolve npm/npx to node + cli script so we spawn node.exe instead of npm.cmd.",
@@ -186,7 +158,7 @@ function ExecBuiltin(props) {
186
158
  }
187
159
  return [process.execPath, cliPath, ...argv.slice(1)]; `
188
160
  }),
189
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
161
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
190
162
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
191
163
  name: "resolveCommand",
192
164
  doc: "Resolves a command for Windows compatibility. On Windows, non-.exe commands (like pnpm, yarn) are resolved to .cmd; npm/npx are handled by resolveNpmArgvForWindows to avoid spawn EINVAL (no direct .cmd).",
@@ -207,7 +179,7 @@ function ExecBuiltin(props) {
207
179
  }
208
180
  return command; `
209
181
  }),
210
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
182
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
211
183
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
212
184
  name: "resolveCommandStdio",
213
185
  parameters: [{
@@ -223,7 +195,7 @@ function ExecBuiltin(props) {
223
195
 
224
196
  return [stdin, "pipe", "pipe"]; `
225
197
  }),
226
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
198
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
227
199
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
228
200
  name: "resolveProcessExitCode",
229
201
  parameters: [{
@@ -243,7 +215,7 @@ function ExecBuiltin(props) {
243
215
  : null)
244
216
  ); `
245
217
  }),
246
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
218
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
247
219
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.FunctionDeclaration, {
248
220
  name: "shouldSpawnWithShell",
249
221
  parameters: [{
@@ -259,57 +231,57 @@ function ExecBuiltin(props) {
259
231
  void params;
260
232
  return false; `
261
233
  }),
262
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
263
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The result of a spawn operation." }),
234
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
235
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The result of a spawn operation." }),
264
236
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
265
237
  "export": true,
266
238
  name: "SpawnResult",
267
239
  get children() {
268
240
  return [
269
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The PID of the spawned child process, if available." }),
241
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The PID of the spawned child process, if available." }),
270
242
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
271
243
  name: "pid",
272
244
  optional: true,
273
245
  type: "number"
274
246
  }),
275
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
276
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The standard output produced by the child process." }),
247
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
248
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The standard output produced by the child process." }),
277
249
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
278
250
  name: "stdout",
279
251
  type: "string"
280
252
  }),
281
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
282
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The standard error produced by the child process." }),
253
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
254
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The standard error produced by the child process." }),
283
255
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
284
256
  name: "stderr",
285
257
  type: "string"
286
258
  }),
287
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
288
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The exit code of the child process, if available." }),
259
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
260
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The exit code of the child process, if available." }),
289
261
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
290
262
  name: "code",
291
263
  type: "number | null"
292
264
  }),
293
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
294
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The signal that caused the child process to terminate, if it was killed by a signal." }),
265
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
266
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The signal that caused the child process to terminate, if it was killed by a signal." }),
295
267
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
296
268
  name: "signal",
297
269
  type: "NodeJS.Signals | null"
298
270
  }),
299
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
300
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Whether the child process was killed." }),
271
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
272
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Whether the child process was killed." }),
301
273
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
302
274
  name: "killed",
303
275
  type: "boolean"
304
276
  }),
305
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
306
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The reason for the child process termination." }),
277
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
278
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The reason for the child process termination." }),
307
279
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
308
280
  name: "termination",
309
281
  type: _alloy_js_core.code`"exit" | "timeout" | "no-output-timeout" | "signal"`
310
282
  }),
311
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
312
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Whether the child process timed out due to no output." }),
283
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
284
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Whether the child process timed out due to no output." }),
313
285
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
314
286
  name: "noOutputTimedOut",
315
287
  optional: true,
@@ -318,17 +290,17 @@ function ExecBuiltin(props) {
318
290
  ];
319
291
  }
320
292
  }),
321
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
322
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Options for spawning a child process." }),
293
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
294
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Options for spawning a child process." }),
323
295
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceDeclaration, {
324
296
  "export": true,
325
297
  name: "SpawnOptions",
326
298
  get children() {
327
299
  return [
328
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
300
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
329
301
  heading: "The timeout in milliseconds for the spawn operation. If the process runs longer than this, it will be killed and the spawn promise will reject. This can also be provided as a number directly to the spawn function for convenience. Providing \\`-1\\` will disable the timeout.",
330
302
  get children() {
331
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocDefaultValue, {
303
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocDefaultValue, {
332
304
  type: "number",
333
305
  defaultValue: "300_000"
334
306
  });
@@ -339,36 +311,36 @@ function ExecBuiltin(props) {
339
311
  optional: true,
340
312
  type: "number"
341
313
  }),
342
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
343
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The current working directory of the child process." }),
314
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
315
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The current working directory of the child process." }),
344
316
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
345
317
  name: "cwd",
346
318
  optional: true,
347
319
  type: "string"
348
320
  }),
349
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
350
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The input to be passed to the child process." }),
321
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
322
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The input to be passed to the child process." }),
351
323
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
352
324
  name: "input",
353
325
  optional: true,
354
326
  type: "string"
355
327
  }),
356
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
357
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The environment variables for the child process." }),
328
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
329
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The environment variables for the child process." }),
358
330
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
359
331
  name: "env",
360
332
  optional: true,
361
333
  type: "NodeJS.ProcessEnv"
362
334
  }),
363
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
364
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "Whether to pass arguments to the child process verbatim on Windows." }),
335
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
336
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "Whether to pass arguments to the child process verbatim on Windows." }),
365
337
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
366
338
  name: "windowsVerbatimArguments",
367
339
  optional: true,
368
340
  type: "boolean"
369
341
  }),
370
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
371
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, { heading: "The timeout in milliseconds for the child process to produce output on stdout or stderr. If the process produces no output for this duration, it will be killed and the spawn promise will reject with a no-output-timeout termination reason." }),
342
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
343
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, { heading: "The timeout in milliseconds for the child process to produce output on stdout or stderr. If the process produces no output for this duration, it will be killed and the spawn promise will reject with a no-output-timeout termination reason." }),
372
344
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.InterfaceMember, {
373
345
  name: "noOutputTimeoutMs",
374
346
  optional: true,
@@ -377,32 +349,32 @@ function ExecBuiltin(props) {
377
349
  ];
378
350
  }
379
351
  }),
380
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
352
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
381
353
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
382
354
  "const": true,
383
355
  name: "WINDOWS_CLOSE_STATE_SETTLE_TIMEOUT_MS",
384
356
  initializer: _alloy_js_core.code`250`
385
357
  }),
386
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
358
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
387
359
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_typescript.VarDeclaration, {
388
360
  "const": true,
389
361
  name: "WINDOWS_CLOSE_STATE_POLL_MS",
390
362
  initializer: _alloy_js_core.code`10`
391
363
  }),
392
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
393
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
364
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
365
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
394
366
  heading: "Spawns a child process with the given arguments and options, returning a promise that resolves with the result of the spawn operation.",
395
367
  get children() {
396
368
  return [
397
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
369
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
398
370
  name: "argv",
399
371
  children: "The command and its arguments to spawn."
400
372
  }),
401
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
373
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
402
374
  name: "optionsOrTimeoutMs",
403
375
  children: `The options for spawning the command, or a number representing the timeout in milliseconds. This allows for a convenient shorthand when only a timeout is needed. Providing \`-1\` will disable the timeout. If no options or timeout are provided, a default timeout of 5 minutes will be used.`
404
376
  }),
405
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "A promise that resolves with the result of the spawn operation, including stdout, stderr, exit code, signal, and termination reason." })
377
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocReturns, { children: "A promise that resolves with the result of the spawn operation, including stdout, stderr, exit code, signal, and termination reason." })
406
378
  ];
407
379
  }
408
380
  }),
@@ -644,20 +616,20 @@ return new Promise((resolve, reject) => {
644
616
  });
645
617
  });`
646
618
  }),
647
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
648
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
619
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
620
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
649
621
  heading: "A helper function that executes a command and returns its stdout.",
650
622
  get children() {
651
623
  return [
652
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
624
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
653
625
  name: "argv",
654
626
  children: `The command and its arguments to spawn. This is passed directly to the spawn function. Remember that on Windows, commands like \`npm\` or \`pnpm\` will be resolved to their .cmd shims, so you can just pass \`npm\` without worrying about the extension.`
655
627
  }),
656
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
628
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
657
629
  name: "optionsOrTimeoutMs",
658
630
  children: `The options for spawning the command, or a number representing the timeout in milliseconds. This is passed directly to the spawn function. Providing \`-1\` will disable the timeout. If no options or timeout are provided, a default timeout of 5 minutes will be used.`
659
631
  }),
660
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "A promise that resolves with the result of the spawn operation if the command exits with code 0, or rejects with an error if the command exits with a non-zero code or if there is a problem spawning the process." })
632
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocReturns, { children: "A promise that resolves with the result of the spawn operation if the command exits with code 0, or rejects with an error if the command exits with a non-zero code or if there is a problem spawning the process." })
661
633
  ];
662
634
  }
663
635
  }),
@@ -683,20 +655,20 @@ return new Promise((resolve, reject) => {
683
655
 
684
656
  return spawnResult.stdout.trim(); `
685
657
  }),
686
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
687
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
658
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
659
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
688
660
  heading: "A helper function that executes a command synchronously and returns its stdout. This is a thin wrapper around \\`child_process.execFileSync\\` with some added Windows compatibility handling.",
689
661
  get children() {
690
662
  return [
691
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
663
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
692
664
  name: "argv",
693
665
  children: `The command and its arguments to spawn. This is passed directly to \`execFileSync\` after Windows-specific resolution. Remember that on Windows, commands like \`npm\` or \`pnpm\` will be resolved to their .cmd shims, so you can just pass \`npm\` without worrying about the extension.`
694
666
  }),
695
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
667
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
696
668
  name: "options",
697
669
  children: `The options for spawning the command. This is passed directly to \`execFileSync\` after some processing. The timeout option is supported, but note that it will throw an error if the process runs longer than the specified timeout. If no options are provided, a default timeout of 5 minutes will be used.`
698
670
  }),
699
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocReturns, { children: "The standard output produced by the command if it exits with code 0. If the command exits with a non-zero code or if there is a problem spawning the process, an error will be thrown." })
671
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocReturns, { children: "The standard output produced by the command if it exits with code 0. If the command exits with a non-zero code or if there is a problem spawning the process, an error will be thrown." })
700
672
  ];
701
673
  }
702
674
  }),
@@ -721,7 +693,7 @@ return new Promise((resolve, reject) => {
721
693
  windowsHide: true
722
694
  }).trim(); `
723
695
  }),
724
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
696
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
725
697
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
726
698
  get when() {
727
699
  return Boolean(children);
@@ -732,15 +704,6 @@ return new Promise((resolve, reject) => {
732
704
  }
733
705
  }));
734
706
  }
735
- ExecBuiltin.__type = [
736
- () => __ΩExecBuiltinProps,
737
- "props",
738
- "ExecBuiltin",
739
- "A built-in module for handling command execution in Shell Shock.",
740
- "Pn!2\"\"/#?$"
741
- ];
742
707
 
743
708
  //#endregion
744
- exports.ExecBuiltin = ExecBuiltin;
745
- exports.__ΩExecBuiltinProps = __ΩExecBuiltinProps;
746
- //# sourceMappingURL=exec-builtin.cjs.map
709
+ exports.ExecBuiltin = ExecBuiltin;
@@ -1,5 +1,4 @@
1
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
2
-
1
+ import { n as BuiltinFileProps } from "../power-plant-LgxcvlMN.cjs";
3
2
  //#region src/components/exec-builtin.d.ts
4
3
  interface ExecBuiltinProps extends Omit<BuiltinFileProps, "id" | "description"> {}
5
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"exec-builtin.d.cts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;;UAoCiB,gBAAA,SAAyB,IAAI,CAC5C,gBAAA;AADF;;;AAAA,iBAQgB,WAAA,CAAY,KAAA,EAAO,gBAAgB,4BAAA,QAAA"}
1
+ {"version":3,"file":"exec-builtin.d.cts","names":[],"sources":["../../src/components/exec-builtin.tsx"],"mappings":";;UAoCiB,yBAAyB,KACxC;;;;iBAOc,YAAY,OAAO,4CAAgB"}
@@ -1,5 +1,4 @@
1
- import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
2
-
1
+ import { n as BuiltinFileProps } from "../power-plant-LgxcvlMN.mjs";
3
2
  //#region src/components/exec-builtin.d.ts
4
3
  interface ExecBuiltinProps extends Omit<BuiltinFileProps, "id" | "description"> {}
5
4
  /**
@@ -1,39 +1,12 @@
1
+ import { BuiltinFile } from "../contexts/power-plant.mjs";
1
2
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
2
3
  import { Show, code, splitProps } from "@alloy-js/core";
3
- import defu$1 from "defu";
4
- import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
4
+ import { defu } from "defu";
5
+ import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
5
6
  import { FunctionDeclaration, InterfaceDeclaration, InterfaceMember, VarDeclaration } from "@alloy-js/typescript";
6
- import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
7
- import { TSDoc, TSDocDefaultValue, TSDocParam, TSDocReturns } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
7
+ import { TSDoc, TSDocDefaultValue, TSDocParam, TSDocReturns } from "@power-plant/alloy-js/typescript/components/tsdoc";
8
8
 
9
9
  //#region src/components/exec-builtin.tsx
10
- const __ΩOmit = [
11
- "T",
12
- "K",
13
- () => __ΩPick,
14
- () => __ΩExclude,
15
- "Omit",
16
- "b!b\"e!!e!!ge!\"o$#o##w%y"
17
- ];
18
- const __ΩPick = [
19
- "T",
20
- "K",
21
- "Pick",
22
- "l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
23
- ];
24
- const __ΩExclude = [
25
- "T",
26
- "U",
27
- "Exclude",
28
- "l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
29
- ];
30
- const __ΩExecBuiltinProps = [
31
- () => __ΩOmit,
32
- "id",
33
- "description",
34
- "ExecBuiltinProps",
35
- "P!P.\".#Jo!#Mw$y"
36
- ];
37
10
  /**
38
11
  * A built-in module for handling command execution in Shell Shock.
39
12
  */
@@ -44,7 +17,7 @@ function ExecBuiltin(props) {
44
17
  description: "A module to handle command execution in a Shell Shock application."
45
18
  }, rest, {
46
19
  get imports() {
47
- return defu$1(rest.imports ?? {}, {
20
+ return defu(rest.imports ?? {}, {
48
21
  "node:path": [
49
22
  "basename",
50
23
  "extname",
@@ -64,7 +37,7 @@ function ExecBuiltin(props) {
64
37
  });
65
38
  },
66
39
  get builtinImports() {
67
- return defu$1(rest.builtinImports ?? {}, { env: ["isWindows", "env"] });
40
+ return defu(rest.builtinImports ?? {}, { env: ["isWindows", "env"] });
68
41
  },
69
42
  get children() {
70
43
  return [
@@ -729,14 +702,7 @@ return new Promise((resolve, reject) => {
729
702
  }
730
703
  }));
731
704
  }
732
- ExecBuiltin.__type = [
733
- () => __ΩExecBuiltinProps,
734
- "props",
735
- "ExecBuiltin",
736
- "A built-in module for handling command execution in Shell Shock.",
737
- "Pn!2\"\"/#?$"
738
- ];
739
705
 
740
706
  //#endregion
741
- export { ExecBuiltin, __ΩExecBuiltinProps };
707
+ export { ExecBuiltin };
742
708
  //# sourceMappingURL=exec-builtin.mjs.map
@@ -3,15 +3,6 @@ let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
3
  let _alloy_js_core = require("@alloy-js/core");
4
4
 
5
5
  //#region src/components/helpers.tsx
6
- function __assignType(fn, args) {
7
- fn.__type = args;
8
- return fn;
9
- }
10
- const __ΩBooleanInputParserLogicProps = [
11
- "name",
12
- "BooleanInputParserLogicProps",
13
- "P&4!Mw\"y"
14
- ];
15
6
  /**
16
7
  * Parses a string input into a boolean value, interpreting common truthy and falsy string representations.
17
8
  */
@@ -19,13 +10,6 @@ function BooleanInputParserLogic(props) {
19
10
  const { name } = props;
20
11
  return [_alloy_js_core.code` !!${name} && ${name}.toLowerCase() !== "false" && ${name}.toLowerCase() !== "f" && ${name}.toLowerCase() !== "no" && ${name} !== "n" && ${name}.toLowerCase() !== "0" && ${name}.toLowerCase() !== "off" && ${name} !== "disable" && ${name}.toLowerCase() !== "disabled" && ${name}.toLowerCase() !== "never" && (Number.isNaN(Number.parseFloat(${name})) || Number.parseFloat(${name}) > 0) `];
21
12
  }
22
- BooleanInputParserLogic.__type = [
23
- () => __ΩBooleanInputParserLogicProps,
24
- "props",
25
- "BooleanInputParserLogic",
26
- "Parses a string input into a boolean value, interpreting common truthy and falsy string representations.",
27
- "Pn!2\"\"/#?$"
28
- ];
29
13
  /**
30
14
  * Write the logic to determine if the application is running in debug mode.
31
15
  *
@@ -35,11 +19,6 @@ BooleanInputParserLogic.__type = [
35
19
  function IsDebug() {
36
20
  return _alloy_js_core.code`isDevelopment || isDebug || env.LOG_LEVEL === "debug"`;
37
21
  }
38
- IsDebug.__type = [
39
- "IsDebug",
40
- "Write the logic to determine if the application is running in debug mode.",
41
- "P\"/!?\""
42
- ];
43
22
  /**
44
23
  * Write the logic to determine if the application is **not** running in debug mode.
45
24
  */
@@ -50,11 +29,6 @@ function IsNotDebug() {
50
29
  _alloy_js_core.code`)`
51
30
  ];
52
31
  }
53
- IsNotDebug.__type = [
54
- "IsNotDebug",
55
- "Write the logic to determine if the application is **not** running in debug mode.",
56
- "P\"/!?\""
57
- ];
58
32
  /**
59
33
  * Write the logic to determine if the application is running in verbose mode.
60
34
  *
@@ -68,11 +42,6 @@ function IsVerbose() {
68
42
  _alloy_js_core.code`|| hasFlag(["verbose", "verbose=true", "verbose=always"]))`
69
43
  ];
70
44
  }
71
- IsVerbose.__type = [
72
- "IsVerbose",
73
- "Write the logic to determine if the application is running in verbose mode.",
74
- "P\"/!?\""
75
- ];
76
45
  /**
77
46
  * Write the logic to determine if the application is **not** running in verbose mode.
78
47
  */
@@ -83,30 +52,13 @@ function IsNotVerbose() {
83
52
  _alloy_js_core.code`)`
84
53
  ];
85
54
  }
86
- IsNotVerbose.__type = [
87
- "IsNotVerbose",
88
- "Write the logic to determine if the application is **not** running in verbose mode.",
89
- "P\"/!?\""
90
- ];
91
55
  /**
92
56
  * Write the type declaration for a command parameter based on its configuration.
93
57
  */
94
58
  function CommandParameterType(props) {
95
59
  const { parameter } = props;
96
- return _alloy_js_core.code`${(parameter.type === "string" || parameter.type === "number") && parameter.choices && parameter.choices.length > 0 ? parameter.choices.map(__assignType((choice) => typeof choice === "string" ? `"${choice}"` : choice, [
97
- "choice",
98
- "",
99
- "P\"2!\"/\""
100
- ])).join(" | ") : parameter.type === "boolean" ? "boolean" : parameter.type === "number" ? "number" : "string"}${parameter.variadic ? "[]" : ""}${!parameter.required ? " | undefined" : ""}`;
60
+ return _alloy_js_core.code`${(parameter.type === "string" || parameter.type === "number") && parameter.choices && parameter.choices.length > 0 ? parameter.choices.map((choice) => typeof choice === "string" ? `"${choice}"` : choice).join(" | ") : parameter.type === "boolean" ? "boolean" : parameter.type === "number" ? "number" : "string"}${parameter.variadic ? "[]" : ""}${!parameter.required ? " | undefined" : ""}`;
101
61
  }
102
- CommandParameterType.__type = [
103
- "CommandParameter",
104
- "parameter",
105
- "props",
106
- "CommandParameterType",
107
- "Write the type declaration for a command parameter based on its configuration.",
108
- "PP\"w!4\"M2#\"/$?%"
109
- ];
110
62
 
111
63
  //#endregion
112
64
  exports.BooleanInputParserLogic = BooleanInputParserLogic;
@@ -114,6 +66,4 @@ exports.CommandParameterType = CommandParameterType;
114
66
  exports.IsDebug = IsDebug;
115
67
  exports.IsNotDebug = IsNotDebug;
116
68
  exports.IsNotVerbose = IsNotVerbose;
117
- exports.IsVerbose = IsVerbose;
118
- exports.__ΩBooleanInputParserLogicProps = __ΩBooleanInputParserLogicProps;
119
- //# sourceMappingURL=helpers.cjs.map
69
+ exports.IsVerbose = IsVerbose;
@@ -1,4 +1,5 @@
1
- import { CommandParameter } from "../types/command.cjs";
1
+ import { y as CommandParameter } from "../command-CtfR7hKM.cjs";
2
+ import "../index-DYOBadKY.cjs";
2
3
  //#region src/components/helpers.d.ts
3
4
  interface BooleanInputParserLogicProps {
4
5
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"mappings":";;UAqBiB,4BAAA;EACf,IAAI;AAAA;AADN;;;AAAA,iBAOgB,uBAAA,CAAwB,KAAA,EAAO,4BAA4B,4BAAA,QAAA;AANrE;AAMN;;;;;AANM,iBAgCU,OAAA,6BAAO,QAAA;;;AA1BoD;iBAiC3D,UAAA,6BAAU,QAAA;;;;AAPH;AAOvB;;iBAgBgB,SAAA,6BAAS,QAAA;;AAhBC;AAgB1B;iBAagB,YAAA,6BAAY,QAAA;;;AAbH;iBA0BT,oBAAA,CAAqB,KAAA;EAAS,SAAA,EAAW,gBAAgB;AAAA,6BAAE,QAAA"}
1
+ {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"mappings":";;;UAqBiB;EACf;;;;;iBAMc,wBAAwB,OAAO,wDAA4B;;;;;;;iBA0B3D,oCAAO;;;;iBAOP,uCAAU;;;;;;;iBAgBV,sCAAS;;;;iBAaT,yCAAY;;;;iBAaZ,qBAAqB;EAAS,WAAW;6BAAkB"}
@@ -1,4 +1,5 @@
1
- import { CommandParameter } from "../types/command.mjs";
1
+ import { y as CommandParameter } from "../command-B6KYexlV.mjs";
2
+ import "../index-D4klH_pj.mjs";
2
3
  //#region src/components/helpers.d.ts
3
4
  interface BooleanInputParserLogicProps {
4
5
  name: string;