@walkeros/cli 0.5.1-next.0 → 0.7.0-next.0

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 (258) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/__tests__/bundle/bundler-helpers.test.d.ts +2 -0
  3. package/dist/__tests__/bundle/bundler-helpers.test.d.ts.map +1 -0
  4. package/dist/__tests__/bundle/bundler-helpers.test.js +151 -0
  5. package/dist/__tests__/bundle/bundler-helpers.test.js.map +1 -0
  6. package/dist/__tests__/bundle/bundler.test.d.ts +2 -0
  7. package/dist/__tests__/bundle/bundler.test.d.ts.map +1 -0
  8. package/dist/__tests__/bundle/bundler.test.js +353 -0
  9. package/dist/__tests__/bundle/bundler.test.js.map +1 -0
  10. package/dist/__tests__/bundle/programmatic.test.d.ts +2 -0
  11. package/dist/__tests__/bundle/programmatic.test.d.ts.map +1 -0
  12. package/dist/__tests__/bundle/programmatic.test.js +148 -0
  13. package/dist/__tests__/bundle/programmatic.test.js.map +1 -0
  14. package/dist/__tests__/cli-e2e.test.d.ts +8 -0
  15. package/dist/__tests__/cli-e2e.test.d.ts.map +1 -0
  16. package/dist/__tests__/cli-e2e.test.js +130 -0
  17. package/dist/__tests__/cli-e2e.test.js.map +1 -0
  18. package/dist/__tests__/cli.test.d.ts +2 -0
  19. package/dist/__tests__/cli.test.d.ts.map +1 -0
  20. package/dist/__tests__/cli.test.js +180 -0
  21. package/dist/__tests__/cli.test.js.map +1 -0
  22. package/dist/__tests__/config-loader.test.d.ts +7 -0
  23. package/dist/__tests__/config-loader.test.d.ts.map +1 -0
  24. package/dist/__tests__/config-loader.test.js +414 -0
  25. package/dist/__tests__/config-loader.test.js.map +1 -0
  26. package/dist/__tests__/core/asset-resolver.test.d.ts +2 -0
  27. package/dist/__tests__/core/asset-resolver.test.d.ts.map +1 -0
  28. package/dist/__tests__/core/asset-resolver.test.js +14 -0
  29. package/dist/__tests__/core/asset-resolver.test.js.map +1 -0
  30. package/dist/__tests__/core/build-cache.test.d.ts +2 -0
  31. package/dist/__tests__/core/build-cache.test.d.ts.map +1 -0
  32. package/dist/__tests__/core/build-cache.test.js +55 -0
  33. package/dist/__tests__/core/build-cache.test.js.map +1 -0
  34. package/dist/__tests__/core/cache-utils.test.d.ts +2 -0
  35. package/dist/__tests__/core/cache-utils.test.d.ts.map +1 -0
  36. package/dist/__tests__/core/cache-utils.test.js +70 -0
  37. package/dist/__tests__/core/cache-utils.test.js.map +1 -0
  38. package/dist/__tests__/core/config.test.d.ts +2 -0
  39. package/dist/__tests__/core/config.test.d.ts.map +1 -0
  40. package/dist/__tests__/core/config.test.js +72 -0
  41. package/dist/__tests__/core/config.test.js.map +1 -0
  42. package/dist/__tests__/core/docker-url.test.d.ts +2 -0
  43. package/dist/__tests__/core/docker-url.test.d.ts.map +1 -0
  44. package/dist/__tests__/core/docker-url.test.js +54 -0
  45. package/dist/__tests__/core/docker-url.test.js.map +1 -0
  46. package/dist/__tests__/core/logger.test.d.ts +2 -0
  47. package/dist/__tests__/core/logger.test.d.ts.map +1 -0
  48. package/dist/__tests__/core/logger.test.js +53 -0
  49. package/dist/__tests__/core/logger.test.js.map +1 -0
  50. package/dist/__tests__/integration/bundle-run.integration.test.d.ts +8 -0
  51. package/dist/__tests__/integration/bundle-run.integration.test.d.ts.map +1 -0
  52. package/dist/__tests__/integration/bundle-run.integration.test.js +54 -0
  53. package/dist/__tests__/integration/bundle-run.integration.test.js.map +1 -0
  54. package/dist/__tests__/push/push.test.d.ts +7 -0
  55. package/dist/__tests__/push/push.test.d.ts.map +1 -0
  56. package/dist/__tests__/push/push.test.js +197 -0
  57. package/dist/__tests__/push/push.test.js.map +1 -0
  58. package/dist/__tests__/simulate/env-loader.test.d.ts +2 -0
  59. package/dist/__tests__/simulate/env-loader.test.d.ts.map +1 -0
  60. package/dist/__tests__/simulate/env-loader.test.js +47 -0
  61. package/dist/__tests__/simulate/env-loader.test.js.map +1 -0
  62. package/dist/__tests__/simulate/node-executor.test.d.ts +5 -0
  63. package/dist/__tests__/simulate/node-executor.test.d.ts.map +1 -0
  64. package/dist/__tests__/simulate/node-executor.test.js +25 -0
  65. package/dist/__tests__/simulate/node-executor.test.js.map +1 -0
  66. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts +5 -0
  67. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts.map +1 -0
  68. package/dist/__tests__/simulate/server-simulate.integration.test.js +58 -0
  69. package/dist/__tests__/simulate/server-simulate.integration.test.js.map +1 -0
  70. package/dist/__tests__/smoke/production.smoke.test.d.ts +8 -0
  71. package/dist/__tests__/smoke/production.smoke.test.d.ts.map +1 -0
  72. package/dist/__tests__/smoke/production.smoke.test.js +65 -0
  73. package/dist/__tests__/smoke/production.smoke.test.js.map +1 -0
  74. package/dist/commands/bundle/bundler.d.ts +32 -0
  75. package/dist/commands/bundle/bundler.d.ts.map +1 -0
  76. package/dist/commands/bundle/bundler.js +583 -0
  77. package/dist/commands/bundle/bundler.js.map +1 -0
  78. package/dist/commands/bundle/index.d.ts +57 -0
  79. package/dist/commands/bundle/index.d.ts.map +1 -0
  80. package/dist/commands/bundle/index.js +200 -0
  81. package/dist/commands/bundle/index.js.map +1 -0
  82. package/dist/commands/bundle/package-manager.d.ts +8 -0
  83. package/dist/commands/bundle/package-manager.d.ts.map +1 -0
  84. package/dist/commands/bundle/package-manager.js +197 -0
  85. package/dist/commands/bundle/package-manager.js.map +1 -0
  86. package/dist/commands/bundle/stats.d.ts +23 -0
  87. package/dist/commands/bundle/stats.d.ts.map +1 -0
  88. package/dist/commands/bundle/stats.js +52 -0
  89. package/dist/commands/bundle/stats.js.map +1 -0
  90. package/dist/commands/cache.d.ts +3 -0
  91. package/dist/commands/cache.d.ts.map +1 -0
  92. package/dist/commands/cache.js +44 -0
  93. package/dist/commands/cache.js.map +1 -0
  94. package/dist/commands/push/index.d.ts +7 -0
  95. package/dist/commands/push/index.d.ts.map +1 -0
  96. package/dist/commands/push/index.js +257 -0
  97. package/dist/commands/push/index.js.map +1 -0
  98. package/dist/commands/push/types.d.ts +21 -0
  99. package/dist/commands/push/types.d.ts.map +1 -0
  100. package/dist/commands/push/types.js +2 -0
  101. package/dist/commands/push/types.js.map +1 -0
  102. package/dist/commands/run/__tests__/run.integration.test.d.ts +8 -0
  103. package/dist/commands/run/__tests__/run.integration.test.d.ts.map +1 -0
  104. package/dist/commands/run/__tests__/run.integration.test.js +52 -0
  105. package/dist/commands/run/__tests__/run.integration.test.js.map +1 -0
  106. package/dist/commands/run/__tests__/validators.test.d.ts +2 -0
  107. package/dist/commands/run/__tests__/validators.test.d.ts.map +1 -0
  108. package/dist/commands/run/__tests__/validators.test.js +80 -0
  109. package/dist/commands/run/__tests__/validators.test.js.map +1 -0
  110. package/dist/commands/run/execution.d.ts +14 -0
  111. package/dist/commands/run/execution.d.ts.map +1 -0
  112. package/dist/commands/run/execution.js +41 -0
  113. package/dist/commands/run/execution.js.map +1 -0
  114. package/dist/commands/run/index.d.ts +39 -0
  115. package/dist/commands/run/index.d.ts.map +1 -0
  116. package/dist/commands/run/index.js +191 -0
  117. package/dist/commands/run/index.js.map +1 -0
  118. package/dist/commands/run/types.d.ts +60 -0
  119. package/dist/commands/run/types.d.ts.map +1 -0
  120. package/dist/commands/run/types.js +7 -0
  121. package/dist/commands/run/types.js.map +1 -0
  122. package/dist/commands/run/utils.d.ts +29 -0
  123. package/dist/commands/run/utils.d.ts.map +1 -0
  124. package/dist/commands/run/utils.js +52 -0
  125. package/dist/commands/run/utils.js.map +1 -0
  126. package/dist/commands/run/validators.d.ts +33 -0
  127. package/dist/commands/run/validators.d.ts.map +1 -0
  128. package/dist/commands/run/validators.js +58 -0
  129. package/dist/commands/run/validators.js.map +1 -0
  130. package/dist/commands/simulate/env-loader.d.ts +19 -0
  131. package/dist/commands/simulate/env-loader.d.ts.map +1 -0
  132. package/dist/commands/simulate/env-loader.js +46 -0
  133. package/dist/commands/simulate/env-loader.js.map +1 -0
  134. package/dist/commands/simulate/index.d.ts +48 -0
  135. package/dist/commands/simulate/index.d.ts.map +1 -0
  136. package/dist/commands/simulate/index.js +116 -0
  137. package/dist/commands/simulate/index.js.map +1 -0
  138. package/dist/commands/simulate/jsdom-executor.d.ts +37 -0
  139. package/dist/commands/simulate/jsdom-executor.d.ts.map +1 -0
  140. package/dist/commands/simulate/jsdom-executor.js +137 -0
  141. package/dist/commands/simulate/jsdom-executor.js.map +1 -0
  142. package/dist/commands/simulate/node-executor.d.ts +28 -0
  143. package/dist/commands/simulate/node-executor.d.ts.map +1 -0
  144. package/dist/commands/simulate/node-executor.js +94 -0
  145. package/dist/commands/simulate/node-executor.js.map +1 -0
  146. package/dist/commands/simulate/simulator.d.ts +14 -0
  147. package/dist/commands/simulate/simulator.d.ts.map +1 -0
  148. package/dist/commands/simulate/simulator.js +162 -0
  149. package/dist/commands/simulate/simulator.js.map +1 -0
  150. package/dist/commands/simulate/tracker.d.ts +30 -0
  151. package/dist/commands/simulate/tracker.d.ts.map +1 -0
  152. package/dist/commands/simulate/tracker.js +96 -0
  153. package/dist/commands/simulate/tracker.js.map +1 -0
  154. package/dist/commands/simulate/types.d.ts +18 -0
  155. package/dist/commands/simulate/types.d.ts.map +1 -0
  156. package/dist/commands/simulate/types.js +2 -0
  157. package/dist/commands/simulate/types.js.map +1 -0
  158. package/dist/config/build-defaults.d.ts +49 -0
  159. package/dist/config/build-defaults.d.ts.map +1 -0
  160. package/dist/config/build-defaults.js +70 -0
  161. package/dist/config/build-defaults.js.map +1 -0
  162. package/dist/config/index.d.ts +13 -0
  163. package/dist/config/index.d.ts.map +1 -0
  164. package/dist/config/index.js +15 -0
  165. package/dist/config/index.js.map +1 -0
  166. package/dist/config/loader.d.ts +81 -0
  167. package/dist/config/loader.d.ts.map +1 -0
  168. package/dist/config/loader.js +155 -0
  169. package/dist/config/loader.js.map +1 -0
  170. package/dist/config/utils.d.ts +114 -0
  171. package/dist/config/utils.d.ts.map +1 -0
  172. package/dist/config/utils.js +257 -0
  173. package/dist/config/utils.js.map +1 -0
  174. package/dist/config/validators.d.ts +52 -0
  175. package/dist/config/validators.d.ts.map +1 -0
  176. package/dist/config/validators.js +85 -0
  177. package/dist/config/validators.js.map +1 -0
  178. package/dist/core/asset-resolver.d.ts +34 -0
  179. package/dist/core/asset-resolver.d.ts.map +1 -0
  180. package/dist/core/asset-resolver.js +70 -0
  181. package/dist/core/asset-resolver.js.map +1 -0
  182. package/dist/core/build-cache.d.ts +23 -0
  183. package/dist/core/build-cache.d.ts.map +1 -0
  184. package/dist/core/build-cache.js +43 -0
  185. package/dist/core/build-cache.js.map +1 -0
  186. package/dist/core/cache-utils.d.ts +27 -0
  187. package/dist/core/cache-utils.d.ts.map +1 -0
  188. package/dist/core/cache-utils.js +60 -0
  189. package/dist/core/cache-utils.js.map +1 -0
  190. package/dist/core/docker.d.ts +102 -0
  191. package/dist/core/docker.d.ts.map +1 -0
  192. package/dist/core/docker.js +278 -0
  193. package/dist/core/docker.js.map +1 -0
  194. package/dist/core/execution.d.ts +34 -0
  195. package/dist/core/execution.d.ts.map +1 -0
  196. package/dist/core/execution.js +64 -0
  197. package/dist/core/execution.js.map +1 -0
  198. package/dist/core/index.d.ts +10 -0
  199. package/dist/core/index.d.ts.map +1 -0
  200. package/dist/core/index.js +10 -0
  201. package/dist/core/index.js.map +1 -0
  202. package/dist/core/local-packages.d.ts +19 -0
  203. package/dist/core/local-packages.d.ts.map +1 -0
  204. package/dist/core/local-packages.js +60 -0
  205. package/dist/core/local-packages.js.map +1 -0
  206. package/dist/core/logger.d.ts +28 -0
  207. package/dist/core/logger.d.ts.map +1 -0
  208. package/dist/core/logger.js +88 -0
  209. package/dist/core/logger.js.map +1 -0
  210. package/dist/core/output.d.ts +30 -0
  211. package/dist/core/output.d.ts.map +1 -0
  212. package/dist/core/output.js +46 -0
  213. package/dist/core/output.js.map +1 -0
  214. package/dist/core/temp-manager.d.ts +51 -0
  215. package/dist/core/temp-manager.d.ts.map +1 -0
  216. package/dist/core/temp-manager.js +73 -0
  217. package/dist/core/temp-manager.js.map +1 -0
  218. package/dist/core/timer.d.ts +14 -0
  219. package/dist/core/timer.d.ts.map +1 -0
  220. package/dist/core/timer.js +29 -0
  221. package/dist/core/timer.js.map +1 -0
  222. package/dist/core/utils.d.ts +10 -0
  223. package/dist/core/utils.d.ts.map +1 -0
  224. package/dist/core/utils.js +12 -0
  225. package/dist/core/utils.js.map +1 -0
  226. package/dist/index.d.ts.map +1 -0
  227. package/dist/index.js +128 -96
  228. package/dist/index.js.map +1 -1
  229. package/dist/schemas/index.d.ts +9 -0
  230. package/dist/schemas/index.d.ts.map +1 -0
  231. package/dist/schemas/index.js +9 -0
  232. package/dist/schemas/index.js.map +1 -0
  233. package/dist/schemas/primitives.d.ts +37 -0
  234. package/dist/schemas/primitives.d.ts.map +1 -0
  235. package/dist/schemas/primitives.js +43 -0
  236. package/dist/schemas/primitives.js.map +1 -0
  237. package/dist/schemas/run.d.ts +23 -0
  238. package/dist/schemas/run.d.ts.map +1 -0
  239. package/dist/schemas/run.js +20 -0
  240. package/dist/schemas/run.js.map +1 -0
  241. package/dist/types/bundle.d.ts +141 -0
  242. package/dist/types/bundle.d.ts.map +1 -0
  243. package/dist/types/bundle.js +10 -0
  244. package/dist/types/bundle.js.map +1 -0
  245. package/dist/types/global.d.ts +51 -0
  246. package/dist/types/global.d.ts.map +1 -0
  247. package/dist/types/global.js +30 -0
  248. package/dist/types/global.js.map +1 -0
  249. package/dist/types/index.d.ts +8 -0
  250. package/dist/types/index.d.ts.map +1 -0
  251. package/dist/types/index.js +8 -0
  252. package/dist/types/index.js.map +1 -0
  253. package/dist/version.d.ts +3 -0
  254. package/dist/version.d.ts.map +1 -0
  255. package/dist/version.js +27 -0
  256. package/dist/version.js.map +1 -0
  257. package/dist/walker.js +1 -0
  258. package/package.json +2 -2
@@ -0,0 +1,9 @@
1
+ /**
2
+ * CLI Schemas
3
+ *
4
+ * Zod schemas for CLI parameter validation.
5
+ * Follows walkerOS patterns from @walkeros/core.
6
+ */
7
+ export { RunModeSchema, PortSchema, FilePathSchema, type RunMode, } from './primitives';
8
+ export { RunOptionsSchema, type RunOptions } from './run';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,cAAc,EACd,KAAK,OAAO,GACb,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * CLI Schemas
3
+ *
4
+ * Zod schemas for CLI parameter validation.
5
+ * Follows walkerOS patterns from @walkeros/core.
6
+ */
7
+ export { RunModeSchema, PortSchema, FilePathSchema, } from './primitives';
8
+ export { RunOptionsSchema } from './run';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,aAAa,EACb,UAAU,EACV,cAAc,GAEf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAmB,MAAM,OAAO,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * CLI Primitive Schemas
3
+ *
4
+ * Basic Zod schemas for CLI parameter validation.
5
+ * Follows walkerOS patterns from @walkeros/core.
6
+ */
7
+ import { z } from '@walkeros/core/dev';
8
+ /**
9
+ * Run mode schema.
10
+ *
11
+ * @remarks
12
+ * Validates CLI run mode for the `run` command.
13
+ * - `collect`: Run as event collector
14
+ * - `serve`: Run as HTTP server
15
+ */
16
+ export declare const RunModeSchema: z.ZodEnum<{
17
+ collect: "collect";
18
+ serve: "serve";
19
+ }>;
20
+ export type RunMode = z.infer<typeof RunModeSchema>;
21
+ /**
22
+ * Port number schema.
23
+ *
24
+ * @remarks
25
+ * Validates HTTP server port number.
26
+ * Must be integer between 1-65535.
27
+ */
28
+ export declare const PortSchema: z.ZodNumber;
29
+ /**
30
+ * File path schema.
31
+ *
32
+ * @remarks
33
+ * Basic string validation for file paths.
34
+ * File existence is checked separately (Zod can't check filesystem).
35
+ */
36
+ export declare const FilePathSchema: z.ZodString;
37
+ //# sourceMappingURL=primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../src/schemas/primitives.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEvC;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;EAE+B,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,aAKe,CAAC;AAEvC;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAGc,CAAC"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * CLI Primitive Schemas
3
+ *
4
+ * Basic Zod schemas for CLI parameter validation.
5
+ * Follows walkerOS patterns from @walkeros/core.
6
+ */
7
+ import { z } from '@walkeros/core/dev';
8
+ /**
9
+ * Run mode schema.
10
+ *
11
+ * @remarks
12
+ * Validates CLI run mode for the `run` command.
13
+ * - `collect`: Run as event collector
14
+ * - `serve`: Run as HTTP server
15
+ */
16
+ export const RunModeSchema = z
17
+ .enum(['collect', 'serve'])
18
+ .describe('CLI run mode: collect events or serve HTTP');
19
+ /**
20
+ * Port number schema.
21
+ *
22
+ * @remarks
23
+ * Validates HTTP server port number.
24
+ * Must be integer between 1-65535.
25
+ */
26
+ export const PortSchema = z
27
+ .number()
28
+ .int('Port must be an integer')
29
+ .min(1, 'Port must be at least 1')
30
+ .max(65535, 'Port must be at most 65535')
31
+ .describe('HTTP server port number');
32
+ /**
33
+ * File path schema.
34
+ *
35
+ * @remarks
36
+ * Basic string validation for file paths.
37
+ * File existence is checked separately (Zod can't check filesystem).
38
+ */
39
+ export const FilePathSchema = z
40
+ .string()
41
+ .min(1, 'File path cannot be empty')
42
+ .describe('Path to configuration file');
43
+ //# sourceMappingURL=primitives.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../src/schemas/primitives.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KAC1B,QAAQ,CAAC,4CAA4C,CAAC,CAAC;AAI1D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,GAAG,CAAC,yBAAyB,CAAC;KAC9B,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;KACjC,GAAG,CAAC,KAAK,EAAE,4BAA4B,CAAC;KACxC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;KACnC,QAAQ,CAAC,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Run Command Schemas
3
+ *
4
+ * Zod schemas for run command options validation.
5
+ */
6
+ import { z } from '@walkeros/core/dev';
7
+ /**
8
+ * Run command options schema.
9
+ *
10
+ * @remarks
11
+ * Validates all options for the `walkeros run` command.
12
+ */
13
+ export declare const RunOptionsSchema: z.ZodObject<{
14
+ mode: z.ZodEnum<{
15
+ collect: "collect";
16
+ serve: "serve";
17
+ }>;
18
+ flow: z.ZodString;
19
+ port: z.ZodDefault<z.ZodNumber>;
20
+ flowName: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ export type RunOptions = z.infer<typeof RunOptionsSchema>;
23
+ //# sourceMappingURL=run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAGvC;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;iBAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Run Command Schemas
3
+ *
4
+ * Zod schemas for run command options validation.
5
+ */
6
+ import { z } from '@walkeros/core/dev';
7
+ import { RunModeSchema, PortSchema, FilePathSchema } from './primitives';
8
+ /**
9
+ * Run command options schema.
10
+ *
11
+ * @remarks
12
+ * Validates all options for the `walkeros run` command.
13
+ */
14
+ export const RunOptionsSchema = z.object({
15
+ mode: RunModeSchema,
16
+ flow: FilePathSchema,
17
+ port: PortSchema.default(8080),
18
+ flowName: z.string().optional().describe('Specific flow name to run'),
19
+ });
20
+ //# sourceMappingURL=run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACtE,CAAC,CAAC"}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * CLI Build Configuration
3
+ *
4
+ * CLI-specific build options for walkerOS bundle generation.
5
+ * Uses Flow.Setup and Flow.Config from @walkeros/core for config structure.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import type { Flow } from '@walkeros/core';
10
+ import type { BuildOptions as ESBuildOptions } from 'esbuild';
11
+ export type { Flow };
12
+ /**
13
+ * CLI-specific build options (public API).
14
+ *
15
+ * @remarks
16
+ * These are CLI-only options not part of the config file.
17
+ * The config file uses Flow.Setup from @walkeros/core.
18
+ *
19
+ * Platform-derived defaults:
20
+ * - web: format=iife, target=es2020, platform=browser
21
+ * - server: format=esm, target=node18, platform=node
22
+ */
23
+ export interface CLIBuildOptions extends Pick<ESBuildOptions, 'external'> {
24
+ /**
25
+ * Output file path (CLI argument, not in config).
26
+ * @default "./dist/walker.js" (web) or "./dist/bundle.mjs" (server)
27
+ */
28
+ output?: string;
29
+ /**
30
+ * Temporary directory for build artifacts.
31
+ * @default ".tmp"
32
+ */
33
+ tempDir?: string;
34
+ /**
35
+ * Enable package caching.
36
+ * @default true
37
+ */
38
+ cache?: boolean;
39
+ /**
40
+ * User code to include in bundle.
41
+ */
42
+ code?: string;
43
+ }
44
+ /**
45
+ * Internal build options used by the bundler.
46
+ *
47
+ * @remarks
48
+ * Combines CLI options with resolved esbuild settings.
49
+ * This is populated after processing config and CLI arguments.
50
+ */
51
+ export interface BuildOptions extends CLIBuildOptions {
52
+ /**
53
+ * Output file path (required for bundler).
54
+ */
55
+ output: string;
56
+ /**
57
+ * Packages to include in the bundle.
58
+ */
59
+ packages: Flow.Packages;
60
+ /**
61
+ * Output format.
62
+ */
63
+ format: 'esm' | 'iife' | 'cjs';
64
+ /**
65
+ * Target platform.
66
+ */
67
+ platform: 'browser' | 'node';
68
+ /**
69
+ * Enable minification.
70
+ * @default true
71
+ */
72
+ minify?: boolean;
73
+ /**
74
+ * Enable source maps.
75
+ * @default false
76
+ */
77
+ sourcemap?: boolean;
78
+ /**
79
+ * ECMAScript target version.
80
+ */
81
+ target?: string;
82
+ /**
83
+ * Minification options.
84
+ */
85
+ minifyOptions?: MinifyOptions;
86
+ /**
87
+ * Window property name for collector (web platform only).
88
+ * @default "collector"
89
+ */
90
+ windowCollector?: string;
91
+ /**
92
+ * Window property name for elb function (web platform only).
93
+ * @default "elb"
94
+ */
95
+ windowElb?: string;
96
+ /**
97
+ * Folders to include in the output directory.
98
+ * These folders are copied alongside the bundle for runtime access.
99
+ * @default ["./shared"] if folder exists
100
+ */
101
+ include?: string[];
102
+ /**
103
+ * Base directory for resolving include paths.
104
+ * Typically the directory containing the config file.
105
+ */
106
+ configDir?: string;
107
+ }
108
+ /**
109
+ * Minification options.
110
+ *
111
+ * @remarks
112
+ * Controls esbuild's minification behavior.
113
+ */
114
+ export interface MinifyOptions {
115
+ /**
116
+ * Minify identifiers (variable names).
117
+ * @default true
118
+ */
119
+ identifiers?: boolean;
120
+ /**
121
+ * Minify syntax (shorten code).
122
+ * @default true
123
+ */
124
+ syntax?: boolean;
125
+ /**
126
+ * Minify whitespace.
127
+ * @default true
128
+ */
129
+ whitespace?: boolean;
130
+ /**
131
+ * Keep original function/class names.
132
+ * @default false
133
+ */
134
+ keepNames?: boolean;
135
+ /**
136
+ * How to handle legal comments.
137
+ * @default "none"
138
+ */
139
+ legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
140
+ }
141
+ //# sourceMappingURL=bundle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/types/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9D,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;;;;;;;;;GAUG;AACH,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,cAAc,EACd,UAAU,CACX;IACD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IAE/B;;OAEG;IACH,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;CACnE"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * CLI Build Configuration
3
+ *
4
+ * CLI-specific build options for walkerOS bundle generation.
5
+ * Uses Flow.Setup and Flow.Config from @walkeros/core for config structure.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/types/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Global CLI Options
3
+ *
4
+ * Options that apply to all commands.
5
+ */
6
+ /**
7
+ * Global options available across all CLI commands
8
+ */
9
+ export interface GlobalOptions {
10
+ /**
11
+ * Execute using local Node.js environment (vs Docker container)
12
+ * @default false (Docker mode)
13
+ */
14
+ local?: boolean;
15
+ /**
16
+ * Show detailed execution logs
17
+ * @default false
18
+ */
19
+ verbose?: boolean;
20
+ /**
21
+ * Suppress all output except errors
22
+ * @default false
23
+ */
24
+ silent?: boolean;
25
+ /**
26
+ * Preview command without executing
27
+ * @default false
28
+ */
29
+ dryRun?: boolean;
30
+ }
31
+ /**
32
+ * Execution mode for commands
33
+ */
34
+ export type ExecutionMode = 'docker' | 'local';
35
+ /**
36
+ * Get execution mode from global options
37
+ */
38
+ export declare function getExecutionMode(options: GlobalOptions): ExecutionMode;
39
+ /**
40
+ * Check if output should be shown based on global options
41
+ */
42
+ export declare function shouldShowOutput(options: GlobalOptions): boolean;
43
+ /**
44
+ * Check if verbose output should be shown
45
+ */
46
+ export declare function isVerbose(options: GlobalOptions): boolean;
47
+ /**
48
+ * Check if this is a dry run
49
+ */
50
+ export declare function isDryRun(options: GlobalOptions): boolean;
51
+ //# sourceMappingURL=global.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAEtE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEhE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAExD"}
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Global CLI Options
3
+ *
4
+ * Options that apply to all commands.
5
+ */
6
+ /**
7
+ * Get execution mode from global options
8
+ */
9
+ export function getExecutionMode(options) {
10
+ return options.local ? 'local' : 'docker';
11
+ }
12
+ /**
13
+ * Check if output should be shown based on global options
14
+ */
15
+ export function shouldShowOutput(options) {
16
+ return !options.silent;
17
+ }
18
+ /**
19
+ * Check if verbose output should be shown
20
+ */
21
+ export function isVerbose(options) {
22
+ return options.verbose === true;
23
+ }
24
+ /**
25
+ * Check if this is a dry run
26
+ */
27
+ export function isDryRun(options) {
28
+ return options.dryRun === true;
29
+ }
30
+ //# sourceMappingURL=global.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoCH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,OAAsB;IAC9C,OAAO,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAsB;IAC7C,OAAO,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC;AACjC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI Type Definitions
3
+ *
4
+ * Type definitions for walkerOS CLI commands and configuration.
5
+ */
6
+ export * as Bundle from './bundle.js';
7
+ export * from './global.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI Type Definitions
3
+ *
4
+ * Type definitions for walkerOS CLI commands and configuration.
5
+ */
6
+ export * as Bundle from './bundle.js';
7
+ export * from './global.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** CLI package version */
2
+ export declare const VERSION: string;
3
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AA0BA,0BAA0B;AAC1B,eAAO,MAAM,OAAO,EAAE,MAA8C,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { readFileSync } from 'fs';
2
+ import { fileURLToPath } from 'url';
3
+ import { dirname, join } from 'path';
4
+ const versionFilename = fileURLToPath(import.meta.url);
5
+ const versionDirname = dirname(versionFilename);
6
+ /**
7
+ * Find package.json in parent directories
8
+ * Handles both source (src/) and bundled (dist/) contexts
9
+ */
10
+ function findPackageJson() {
11
+ const paths = [
12
+ join(versionDirname, '../package.json'), // dist/ or src/
13
+ join(versionDirname, '../../package.json'), // src/core/ (not used, but safe)
14
+ ];
15
+ for (const p of paths) {
16
+ try {
17
+ return readFileSync(p, 'utf-8');
18
+ }
19
+ catch {
20
+ // Continue to next path
21
+ }
22
+ }
23
+ return JSON.stringify({ version: '0.0.0' });
24
+ }
25
+ /** CLI package version */
26
+ export const VERSION = JSON.parse(findPackageJson()).version;
27
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvD,MAAM,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEhD;;;GAGG;AACH,SAAS,eAAe;IACtB,MAAM,KAAK,GAAG;QACZ,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;QACzD,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC,EAAE,iCAAiC;KAC9E,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,OAAO,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,wBAAwB;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC"}
package/dist/walker.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(()=>{var o=Object.defineProperty;var i={};((t,e)=>{for(var n in e)o(t,n,{get:e[n],enumerable:!0})})(i,{Level:()=>r});var r=(t=>(t[t.ERROR=0]="ERROR",t[t.INFO=1]="INFO",t[t.DEBUG=2]="DEBUG",t))(r||{});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/cli",
3
- "version": "0.5.1-next.0",
3
+ "version": "0.7.0-next.0",
4
4
  "description": "walkerOS CLI - Bundle and deploy walkerOS components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@walkeros/core": "^0.5.1-next.0",
37
- "@walkeros/docker": "0.3.1-next.0",
37
+ "@walkeros/docker": "0.7.0-next.0",
38
38
  "@walkeros/server-core": "0.5.1-next.0",
39
39
  "chalk": "^5.6.2",
40
40
  "commander": "^14.0.2",