@walkeros/cli 0.4.2 → 0.5.1-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 (350) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +140 -9
  3. package/dist/examples/README.md +13 -1
  4. package/dist/examples/flow-order-complete.json +1 -2
  5. package/dist/examples/flow-simple.json +1 -2
  6. package/dist/examples/server-collect.json +4 -4
  7. package/dist/index.d.ts +1 -114
  8. package/dist/index.js +322 -387
  9. package/dist/index.js.map +1 -1
  10. package/examples/README.md +13 -1
  11. package/examples/flow-order-complete.json +1 -2
  12. package/examples/flow-simple.json +1 -2
  13. package/examples/server-collect.json +4 -4
  14. package/package.json +14 -16
  15. package/dist/__tests__/bundle/bundler-helpers.test.d.ts +0 -2
  16. package/dist/__tests__/bundle/bundler-helpers.test.d.ts.map +0 -1
  17. package/dist/__tests__/bundle/bundler-helpers.test.js +0 -285
  18. package/dist/__tests__/bundle/bundler-helpers.test.js.map +0 -1
  19. package/dist/__tests__/bundle/bundler.test.d.ts +0 -2
  20. package/dist/__tests__/bundle/bundler.test.d.ts.map +0 -1
  21. package/dist/__tests__/bundle/bundler.test.js +0 -293
  22. package/dist/__tests__/bundle/bundler.test.js.map +0 -1
  23. package/dist/__tests__/bundle/programmatic.test.d.ts +0 -2
  24. package/dist/__tests__/bundle/programmatic.test.d.ts.map +0 -1
  25. package/dist/__tests__/bundle/programmatic.test.js +0 -150
  26. package/dist/__tests__/bundle/programmatic.test.js.map +0 -1
  27. package/dist/__tests__/bundle/serializer.test.d.ts +0 -2
  28. package/dist/__tests__/bundle/serializer.test.d.ts.map +0 -1
  29. package/dist/__tests__/bundle/serializer.test.js +0 -173
  30. package/dist/__tests__/bundle/serializer.test.js.map +0 -1
  31. package/dist/__tests__/bundle/template-engine.test.d.ts +0 -2
  32. package/dist/__tests__/bundle/template-engine.test.d.ts.map +0 -1
  33. package/dist/__tests__/bundle/template-engine.test.js +0 -107
  34. package/dist/__tests__/bundle/template-engine.test.js.map +0 -1
  35. package/dist/__tests__/cli-e2e.test.d.ts +0 -8
  36. package/dist/__tests__/cli-e2e.test.d.ts.map +0 -1
  37. package/dist/__tests__/cli-e2e.test.js +0 -130
  38. package/dist/__tests__/cli-e2e.test.js.map +0 -1
  39. package/dist/__tests__/cli.test.d.ts +0 -2
  40. package/dist/__tests__/cli.test.d.ts.map +0 -1
  41. package/dist/__tests__/cli.test.js +0 -180
  42. package/dist/__tests__/cli.test.js.map +0 -1
  43. package/dist/__tests__/config-loader.test.d.ts +0 -7
  44. package/dist/__tests__/config-loader.test.d.ts.map +0 -1
  45. package/dist/__tests__/config-loader.test.js +0 -416
  46. package/dist/__tests__/config-loader.test.js.map +0 -1
  47. package/dist/__tests__/core/build-cache.test.d.ts +0 -2
  48. package/dist/__tests__/core/build-cache.test.d.ts.map +0 -1
  49. package/dist/__tests__/core/build-cache.test.js +0 -55
  50. package/dist/__tests__/core/build-cache.test.js.map +0 -1
  51. package/dist/__tests__/core/cache-utils.test.d.ts +0 -2
  52. package/dist/__tests__/core/cache-utils.test.d.ts.map +0 -1
  53. package/dist/__tests__/core/cache-utils.test.js +0 -70
  54. package/dist/__tests__/core/cache-utils.test.js.map +0 -1
  55. package/dist/__tests__/core/config.test.d.ts +0 -2
  56. package/dist/__tests__/core/config.test.d.ts.map +0 -1
  57. package/dist/__tests__/core/config.test.js +0 -72
  58. package/dist/__tests__/core/config.test.js.map +0 -1
  59. package/dist/__tests__/core/logger.test.d.ts +0 -2
  60. package/dist/__tests__/core/logger.test.d.ts.map +0 -1
  61. package/dist/__tests__/core/logger.test.js +0 -53
  62. package/dist/__tests__/core/logger.test.js.map +0 -1
  63. package/dist/__tests__/integration/bundle-run.integration.test.d.ts +0 -8
  64. package/dist/__tests__/integration/bundle-run.integration.test.d.ts.map +0 -1
  65. package/dist/__tests__/integration/bundle-run.integration.test.js +0 -54
  66. package/dist/__tests__/integration/bundle-run.integration.test.js.map +0 -1
  67. package/dist/__tests__/push/push.test.d.ts +0 -7
  68. package/dist/__tests__/push/push.test.d.ts.map +0 -1
  69. package/dist/__tests__/push/push.test.js +0 -197
  70. package/dist/__tests__/push/push.test.js.map +0 -1
  71. package/dist/__tests__/simulate/env-loader.test.d.ts +0 -2
  72. package/dist/__tests__/simulate/env-loader.test.d.ts.map +0 -1
  73. package/dist/__tests__/simulate/env-loader.test.js +0 -47
  74. package/dist/__tests__/simulate/env-loader.test.js.map +0 -1
  75. package/dist/__tests__/simulate/node-executor.test.d.ts +0 -5
  76. package/dist/__tests__/simulate/node-executor.test.d.ts.map +0 -1
  77. package/dist/__tests__/simulate/node-executor.test.js +0 -25
  78. package/dist/__tests__/simulate/node-executor.test.js.map +0 -1
  79. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts +0 -5
  80. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts.map +0 -1
  81. package/dist/__tests__/simulate/server-simulate.integration.test.js +0 -59
  82. package/dist/__tests__/simulate/server-simulate.integration.test.js.map +0 -1
  83. package/dist/__tests__/smoke/production.smoke.test.d.ts +0 -8
  84. package/dist/__tests__/smoke/production.smoke.test.d.ts.map +0 -1
  85. package/dist/__tests__/smoke/production.smoke.test.js +0 -65
  86. package/dist/__tests__/smoke/production.smoke.test.js.map +0 -1
  87. package/dist/commands/bundle/bundler.d.ts +0 -14
  88. package/dist/commands/bundle/bundler.d.ts.map +0 -1
  89. package/dist/commands/bundle/bundler.js +0 -467
  90. package/dist/commands/bundle/bundler.js.map +0 -1
  91. package/dist/commands/bundle/index.d.ts +0 -57
  92. package/dist/commands/bundle/index.d.ts.map +0 -1
  93. package/dist/commands/bundle/index.js +0 -200
  94. package/dist/commands/bundle/index.js.map +0 -1
  95. package/dist/commands/bundle/package-manager.d.ts +0 -8
  96. package/dist/commands/bundle/package-manager.d.ts.map +0 -1
  97. package/dist/commands/bundle/package-manager.js +0 -197
  98. package/dist/commands/bundle/package-manager.js.map +0 -1
  99. package/dist/commands/bundle/serializer.d.ts +0 -23
  100. package/dist/commands/bundle/serializer.d.ts.map +0 -1
  101. package/dist/commands/bundle/serializer.js +0 -127
  102. package/dist/commands/bundle/serializer.js.map +0 -1
  103. package/dist/commands/bundle/stats.d.ts +0 -23
  104. package/dist/commands/bundle/stats.d.ts.map +0 -1
  105. package/dist/commands/bundle/stats.js +0 -52
  106. package/dist/commands/bundle/stats.js.map +0 -1
  107. package/dist/commands/bundle/template-engine.d.ts +0 -20
  108. package/dist/commands/bundle/template-engine.d.ts.map +0 -1
  109. package/dist/commands/bundle/template-engine.js +0 -54
  110. package/dist/commands/bundle/template-engine.js.map +0 -1
  111. package/dist/commands/cache.d.ts +0 -3
  112. package/dist/commands/cache.d.ts.map +0 -1
  113. package/dist/commands/cache.js +0 -44
  114. package/dist/commands/cache.js.map +0 -1
  115. package/dist/commands/push/index.d.ts +0 -7
  116. package/dist/commands/push/index.d.ts.map +0 -1
  117. package/dist/commands/push/index.js +0 -257
  118. package/dist/commands/push/index.js.map +0 -1
  119. package/dist/commands/push/types.d.ts +0 -21
  120. package/dist/commands/push/types.d.ts.map +0 -1
  121. package/dist/commands/push/types.js +0 -2
  122. package/dist/commands/push/types.js.map +0 -1
  123. package/dist/commands/run/__tests__/run.integration.test.d.ts +0 -8
  124. package/dist/commands/run/__tests__/run.integration.test.d.ts.map +0 -1
  125. package/dist/commands/run/__tests__/run.integration.test.js +0 -52
  126. package/dist/commands/run/__tests__/run.integration.test.js.map +0 -1
  127. package/dist/commands/run/__tests__/validators.test.d.ts +0 -2
  128. package/dist/commands/run/__tests__/validators.test.d.ts.map +0 -1
  129. package/dist/commands/run/__tests__/validators.test.js +0 -80
  130. package/dist/commands/run/__tests__/validators.test.js.map +0 -1
  131. package/dist/commands/run/execution.d.ts +0 -14
  132. package/dist/commands/run/execution.d.ts.map +0 -1
  133. package/dist/commands/run/execution.js +0 -37
  134. package/dist/commands/run/execution.js.map +0 -1
  135. package/dist/commands/run/index.d.ts +0 -39
  136. package/dist/commands/run/index.d.ts.map +0 -1
  137. package/dist/commands/run/index.js +0 -191
  138. package/dist/commands/run/index.js.map +0 -1
  139. package/dist/commands/run/types.d.ts +0 -60
  140. package/dist/commands/run/types.d.ts.map +0 -1
  141. package/dist/commands/run/types.js +0 -7
  142. package/dist/commands/run/types.js.map +0 -1
  143. package/dist/commands/run/utils.d.ts +0 -29
  144. package/dist/commands/run/utils.d.ts.map +0 -1
  145. package/dist/commands/run/utils.js +0 -52
  146. package/dist/commands/run/utils.js.map +0 -1
  147. package/dist/commands/run/validators.d.ts +0 -33
  148. package/dist/commands/run/validators.d.ts.map +0 -1
  149. package/dist/commands/run/validators.js +0 -58
  150. package/dist/commands/run/validators.js.map +0 -1
  151. package/dist/commands/simulate/env-loader.d.ts +0 -19
  152. package/dist/commands/simulate/env-loader.d.ts.map +0 -1
  153. package/dist/commands/simulate/env-loader.js +0 -46
  154. package/dist/commands/simulate/env-loader.js.map +0 -1
  155. package/dist/commands/simulate/index.d.ts +0 -48
  156. package/dist/commands/simulate/index.d.ts.map +0 -1
  157. package/dist/commands/simulate/index.js +0 -116
  158. package/dist/commands/simulate/index.js.map +0 -1
  159. package/dist/commands/simulate/jsdom-executor.d.ts +0 -37
  160. package/dist/commands/simulate/jsdom-executor.d.ts.map +0 -1
  161. package/dist/commands/simulate/jsdom-executor.js +0 -137
  162. package/dist/commands/simulate/jsdom-executor.js.map +0 -1
  163. package/dist/commands/simulate/node-executor.d.ts +0 -28
  164. package/dist/commands/simulate/node-executor.d.ts.map +0 -1
  165. package/dist/commands/simulate/node-executor.js +0 -94
  166. package/dist/commands/simulate/node-executor.js.map +0 -1
  167. package/dist/commands/simulate/simulator.d.ts +0 -14
  168. package/dist/commands/simulate/simulator.d.ts.map +0 -1
  169. package/dist/commands/simulate/simulator.js +0 -162
  170. package/dist/commands/simulate/simulator.js.map +0 -1
  171. package/dist/commands/simulate/tracker.d.ts +0 -30
  172. package/dist/commands/simulate/tracker.d.ts.map +0 -1
  173. package/dist/commands/simulate/tracker.js +0 -96
  174. package/dist/commands/simulate/tracker.js.map +0 -1
  175. package/dist/commands/simulate/types.d.ts +0 -18
  176. package/dist/commands/simulate/types.d.ts.map +0 -1
  177. package/dist/commands/simulate/types.js +0 -2
  178. package/dist/commands/simulate/types.js.map +0 -1
  179. package/dist/config/build-defaults.d.ts +0 -49
  180. package/dist/config/build-defaults.d.ts.map +0 -1
  181. package/dist/config/build-defaults.js +0 -72
  182. package/dist/config/build-defaults.js.map +0 -1
  183. package/dist/config/index.d.ts +0 -13
  184. package/dist/config/index.d.ts.map +0 -1
  185. package/dist/config/index.js +0 -15
  186. package/dist/config/index.js.map +0 -1
  187. package/dist/config/loader.d.ts +0 -81
  188. package/dist/config/loader.d.ts.map +0 -1
  189. package/dist/config/loader.js +0 -155
  190. package/dist/config/loader.js.map +0 -1
  191. package/dist/config/utils.d.ts +0 -114
  192. package/dist/config/utils.d.ts.map +0 -1
  193. package/dist/config/utils.js +0 -257
  194. package/dist/config/utils.js.map +0 -1
  195. package/dist/config/validators.d.ts +0 -52
  196. package/dist/config/validators.d.ts.map +0 -1
  197. package/dist/config/validators.js +0 -85
  198. package/dist/config/validators.js.map +0 -1
  199. package/dist/core/asset-resolver.d.ts +0 -34
  200. package/dist/core/asset-resolver.d.ts.map +0 -1
  201. package/dist/core/asset-resolver.js +0 -69
  202. package/dist/core/asset-resolver.js.map +0 -1
  203. package/dist/core/build-cache.d.ts +0 -23
  204. package/dist/core/build-cache.d.ts.map +0 -1
  205. package/dist/core/build-cache.js +0 -43
  206. package/dist/core/build-cache.js.map +0 -1
  207. package/dist/core/cache-utils.d.ts +0 -27
  208. package/dist/core/cache-utils.d.ts.map +0 -1
  209. package/dist/core/cache-utils.js +0 -60
  210. package/dist/core/cache-utils.js.map +0 -1
  211. package/dist/core/docker.d.ts +0 -99
  212. package/dist/core/docker.d.ts.map +0 -1
  213. package/dist/core/docker.js +0 -249
  214. package/dist/core/docker.js.map +0 -1
  215. package/dist/core/execution.d.ts +0 -34
  216. package/dist/core/execution.d.ts.map +0 -1
  217. package/dist/core/execution.js +0 -64
  218. package/dist/core/execution.js.map +0 -1
  219. package/dist/core/index.d.ts +0 -10
  220. package/dist/core/index.d.ts.map +0 -1
  221. package/dist/core/index.js +0 -10
  222. package/dist/core/index.js.map +0 -1
  223. package/dist/core/local-packages.d.ts +0 -19
  224. package/dist/core/local-packages.d.ts.map +0 -1
  225. package/dist/core/local-packages.js +0 -60
  226. package/dist/core/local-packages.js.map +0 -1
  227. package/dist/core/logger.d.ts +0 -28
  228. package/dist/core/logger.d.ts.map +0 -1
  229. package/dist/core/logger.js +0 -88
  230. package/dist/core/logger.js.map +0 -1
  231. package/dist/core/output.d.ts +0 -30
  232. package/dist/core/output.d.ts.map +0 -1
  233. package/dist/core/output.js +0 -46
  234. package/dist/core/output.js.map +0 -1
  235. package/dist/core/temp-manager.d.ts +0 -51
  236. package/dist/core/temp-manager.d.ts.map +0 -1
  237. package/dist/core/temp-manager.js +0 -73
  238. package/dist/core/temp-manager.js.map +0 -1
  239. package/dist/core/timer.d.ts +0 -14
  240. package/dist/core/timer.d.ts.map +0 -1
  241. package/dist/core/timer.js +0 -29
  242. package/dist/core/timer.js.map +0 -1
  243. package/dist/core/utils.d.ts +0 -10
  244. package/dist/core/utils.d.ts.map +0 -1
  245. package/dist/core/utils.js +0 -12
  246. package/dist/core/utils.js.map +0 -1
  247. package/dist/examples/.npm-cache/content-v2/sha512/0d/2d/7581c288670eaf8538ddd9df145b78756ce3be0791c6e0b9cd33429b3bae894525b9bda287a3cedffbcdd2c7b3107bafc03f2b0367eea489eee1cc042abb +0 -1
  248. package/dist/examples/.npm-cache/content-v2/sha512/12/20/bc4f5acca143809f7e07da1fdafb38137d93243de4d5b403e6e10b92d0d3a6e51eab24fe9dbc9d3ed1cd72e8f7a406085e99c422bb2c7d1166cf9f1f564e +0 -0
  249. package/dist/examples/.npm-cache/content-v2/sha512/22/ee/fb2695b01871c1d36946bdcfb49f1b520a57200d0a0b221b1e7d5f047ab38a8b2ab0e5f0e25a00acde1f3f2f9d24430a18f1092d438bc1a9e9891cc45f75 +0 -0
  250. package/dist/examples/.npm-cache/content-v2/sha512/24/89/da1ce6a61bca6de7e132f241a675c01c83738bf6b78af25b5cce01d3030361332b3fe938571e2b721f1555da9ddf930fdcf8c02f0471556071590e68cc09 +0 -0
  251. package/dist/examples/.npm-cache/content-v2/sha512/47/fd/c6be997da99228c3e279b95d4a46d6913947078a178f54ac71795a159f3513b1483232f4c2d0a1f403178bf9f96bb19615de32a9e2133e949880c6bc15e2 +0 -0
  252. package/dist/examples/.npm-cache/content-v2/sha512/4b/1c/c1cb7f8b32102071a89fef97158daa32080ebaedfbbd596880d2213d84e305abc76d2a95a412ded55c1c3d487adcb1ceff87fc2c85d7e2856ebd9d3f16f3 +0 -0
  253. package/dist/examples/.npm-cache/content-v2/sha512/6e/53/ff864769671f44f39d8a3bf904cd646535b745cc4824a8bb3189193b474678049f43b5178ba15cad7f0289046105e70f1565afc84e907120b35a466690fd +0 -1
  254. package/dist/examples/.npm-cache/content-v2/sha512/70/4c/4c8837d446965c5551b4ea527e95fa011744fb727581d82cf35bb5599ea0b57d18baa490f7af93ef9a16e8e45e5c0802737da20575f4056a4a5c9a3cd288 +0 -0
  255. package/dist/examples/.npm-cache/content-v2/sha512/96/ad/05de3bbb12d7de8ea353f962bdaea7d2eb44f707f2973462a6635daf537c67b46cca7764fed7d464fe62152c3f783a07aba1ceb35e09ad446bff05a4b466 +0 -1
  256. package/dist/examples/.npm-cache/content-v2/sha512/b5/20/52dde94e6cef7170f6089c64a4843e57be18be450d956f4e455905aed047ae6a368451c93035e6ac3ee59576b600f03f815afba0836b3a16e10a9aaca4ba +0 -1
  257. package/dist/examples/.npm-cache/content-v2/sha512/c7/a9/d166a1c39f97df312c59261319ba1cf9aac178bda0a0cb697d5ddd78bd8dd38ef1bf40017bcc8633c2049896c2d70696d9bff9280851f270792ff38bb3a0 +0 -1
  258. package/dist/examples/.npm-cache/content-v2/sha512/e0/d0/8c14083b633e6adbd3c6a93da5fc0f6bbd456c5512ef276920bedd8d85d551052adff992de977aff326616a211aaa2d6ddcc801149e9b7f914f566359b6a +0 -1
  259. package/dist/examples/.npm-cache/content-v2/sha512/e7/c5/06ad3fd79ac4f1031fe0b16ea5e54e232ca397bbcd7592c679021cbfb027276099f8c848f3f7a7691f0102ad53aa64f9141e61d729b037a678bd60440d17 +0 -1
  260. package/dist/examples/.npm-cache/content-v2/sha512/f3/28/d5d32329604ed7d471a4949105daa2cc98858cf24f45b0b97c41d0eb0d5a9fe7bf1f69c792161cc6693e4fc1b52e886ac41875ebfb8fe47fafe417ca3e6e +0 -0
  261. package/dist/examples/.npm-cache/index-v5/04/5a/2b5d7a7c407d85d746baa0f5c9388a333e35a717a8a0a81943daa6cb1364 +0 -3
  262. package/dist/examples/.npm-cache/index-v5/12/9a/eba560cbace295d8ee04cf283015377bd77b379e70968fb6bc407c7fc410 +0 -15
  263. package/dist/examples/.npm-cache/index-v5/2f/a2/7b047564b0ee21ac835ec609e89153dd6549be554d098584d5bfd19fe043 +0 -15
  264. package/dist/examples/.npm-cache/index-v5/32/8e/322d58dd8d1e000be248ada51385bf96288e56039de9feec1a4c6a467653 +0 -3
  265. package/dist/examples/.npm-cache/index-v5/57/93/d1d7cd1402e3e26468db03f2870822bb2c9018a506cdfb3b405f38cd3e1c +0 -3
  266. package/dist/examples/.npm-cache/index-v5/5d/f8/0a1f4fa7149e4ff33e09eb6aea41ac8d1730c868a5d3ace91f762698acff +0 -3
  267. package/dist/examples/.npm-cache/index-v5/69/a4/a92c72d838259b051cdf8e0acfb2bc680b6d4cfc642314a7836c3f7b2c50 +0 -15
  268. package/dist/examples/.npm-cache/index-v5/71/31/6da3423bb203f3de5eb16c942431073f89be2cfcb40058ec91dcb5ce0abc +0 -15
  269. package/dist/examples/.npm-cache/index-v5/7b/94/72b6bffa050d9ef52a558dd220663695bc606f756be0dfa196ef4f3913ba +0 -3
  270. package/dist/examples/.npm-cache/index-v5/85/9e/99e97fdd562517e56285337db91d1a8f2f416b8d631cf4d7d754fa671299 +0 -15
  271. package/dist/examples/.npm-cache/index-v5/92/4c/9416ada81a9b3c679539fd1ab53f8de3d41ff268f35eba7a194389a85b06 +0 -3
  272. package/dist/examples/.npm-cache/index-v5/c1/5a/13df76b218deed8a6ef12961116af5183db98c53fad1b922fd9edc075247 +0 -3
  273. package/dist/examples/.npm-cache/index-v5/cb/11/253c55410a8ab7c4a9ea9d6e1bf8ef1450a581da64c478074dfd82c8bff6 +0 -3
  274. package/dist/examples/.npm-cache/index-v5/d5/ae/b57fad3a62b5ba2dbdf24b042a9e7b70820f3db00e5a630f02e1fea020dc +0 -3
  275. package/dist/examples/.npm-cache/index-v5/d6/32/2f620f83c7d14451de98de8298c2408e05a16cc0829bd16c891ac19d7a67 +0 -3
  276. package/dist/examples/.npm-cache/index-v5/dd/b5/01dc7a3cd8b6a03a69aee9af500d51ae19cb0aa12631a4aafd152148b8e5 +0 -15
  277. package/dist/examples/.npm-cache/index-v5/e0/cf/6b862c15d74630d3871cd813d305210ab741311deb10baf8813014e0bc30 +0 -3
  278. package/dist/examples/.npm-cache/index-v5/e2/be/e880ccd35950a814d3c1dded34d3938ac61b15a195321dc51357f801aad4 +0 -15
  279. package/dist/examples/.npm-cache/index-v5/e5/1f/f4affe0b392cd03288f23cc03abcb274ff11a2c8f8965299de681914abb2 +0 -3
  280. package/dist/examples/.npm-cache/index-v5/f3/5b/9ebe450958ff0d7cc44ab0a00080cb8a3ff1389744b5eab5f97b68a6a6af +0 -3
  281. package/dist/examples/.npm-cache/index-v5/fb/c1/0de405e902866d53e7c30cf36a97dc2578838622b261816f44dc377c9a80 +0 -3
  282. package/dist/index.d.ts.map +0 -1
  283. package/dist/schemas/index.d.ts +0 -9
  284. package/dist/schemas/index.d.ts.map +0 -1
  285. package/dist/schemas/index.js +0 -9
  286. package/dist/schemas/index.js.map +0 -1
  287. package/dist/schemas/primitives.d.ts +0 -37
  288. package/dist/schemas/primitives.d.ts.map +0 -1
  289. package/dist/schemas/primitives.js +0 -43
  290. package/dist/schemas/primitives.js.map +0 -1
  291. package/dist/schemas/run.d.ts +0 -23
  292. package/dist/schemas/run.d.ts.map +0 -1
  293. package/dist/schemas/run.js +0 -20
  294. package/dist/schemas/run.js.map +0 -1
  295. package/dist/templates/server.hbs +0 -29
  296. package/dist/templates/web.hbs +0 -45
  297. package/dist/types/bundle.d.ts +0 -146
  298. package/dist/types/bundle.d.ts.map +0 -1
  299. package/dist/types/bundle.js +0 -10
  300. package/dist/types/bundle.js.map +0 -1
  301. package/dist/types/global.d.ts +0 -51
  302. package/dist/types/global.d.ts.map +0 -1
  303. package/dist/types/global.js +0 -30
  304. package/dist/types/global.js.map +0 -1
  305. package/dist/types/index.d.ts +0 -8
  306. package/dist/types/index.d.ts.map +0 -1
  307. package/dist/types/index.js +0 -8
  308. package/dist/types/index.js.map +0 -1
  309. package/dist/types/template.d.ts +0 -108
  310. package/dist/types/template.d.ts.map +0 -1
  311. package/dist/types/template.js +0 -10
  312. package/dist/types/template.js.map +0 -1
  313. package/dist/walker.js +0 -1
  314. package/examples/.npm-cache/content-v2/sha512/0d/2d/7581c288670eaf8538ddd9df145b78756ce3be0791c6e0b9cd33429b3bae894525b9bda287a3cedffbcdd2c7b3107bafc03f2b0367eea489eee1cc042abb +0 -1
  315. package/examples/.npm-cache/content-v2/sha512/12/20/bc4f5acca143809f7e07da1fdafb38137d93243de4d5b403e6e10b92d0d3a6e51eab24fe9dbc9d3ed1cd72e8f7a406085e99c422bb2c7d1166cf9f1f564e +0 -0
  316. package/examples/.npm-cache/content-v2/sha512/22/ee/fb2695b01871c1d36946bdcfb49f1b520a57200d0a0b221b1e7d5f047ab38a8b2ab0e5f0e25a00acde1f3f2f9d24430a18f1092d438bc1a9e9891cc45f75 +0 -0
  317. package/examples/.npm-cache/content-v2/sha512/24/89/da1ce6a61bca6de7e132f241a675c01c83738bf6b78af25b5cce01d3030361332b3fe938571e2b721f1555da9ddf930fdcf8c02f0471556071590e68cc09 +0 -0
  318. package/examples/.npm-cache/content-v2/sha512/47/fd/c6be997da99228c3e279b95d4a46d6913947078a178f54ac71795a159f3513b1483232f4c2d0a1f403178bf9f96bb19615de32a9e2133e949880c6bc15e2 +0 -0
  319. package/examples/.npm-cache/content-v2/sha512/4b/1c/c1cb7f8b32102071a89fef97158daa32080ebaedfbbd596880d2213d84e305abc76d2a95a412ded55c1c3d487adcb1ceff87fc2c85d7e2856ebd9d3f16f3 +0 -0
  320. package/examples/.npm-cache/content-v2/sha512/6e/53/ff864769671f44f39d8a3bf904cd646535b745cc4824a8bb3189193b474678049f43b5178ba15cad7f0289046105e70f1565afc84e907120b35a466690fd +0 -1
  321. package/examples/.npm-cache/content-v2/sha512/70/4c/4c8837d446965c5551b4ea527e95fa011744fb727581d82cf35bb5599ea0b57d18baa490f7af93ef9a16e8e45e5c0802737da20575f4056a4a5c9a3cd288 +0 -0
  322. package/examples/.npm-cache/content-v2/sha512/96/ad/05de3bbb12d7de8ea353f962bdaea7d2eb44f707f2973462a6635daf537c67b46cca7764fed7d464fe62152c3f783a07aba1ceb35e09ad446bff05a4b466 +0 -1
  323. package/examples/.npm-cache/content-v2/sha512/b5/20/52dde94e6cef7170f6089c64a4843e57be18be450d956f4e455905aed047ae6a368451c93035e6ac3ee59576b600f03f815afba0836b3a16e10a9aaca4ba +0 -1
  324. package/examples/.npm-cache/content-v2/sha512/c7/a9/d166a1c39f97df312c59261319ba1cf9aac178bda0a0cb697d5ddd78bd8dd38ef1bf40017bcc8633c2049896c2d70696d9bff9280851f270792ff38bb3a0 +0 -1
  325. package/examples/.npm-cache/content-v2/sha512/e0/d0/8c14083b633e6adbd3c6a93da5fc0f6bbd456c5512ef276920bedd8d85d551052adff992de977aff326616a211aaa2d6ddcc801149e9b7f914f566359b6a +0 -1
  326. package/examples/.npm-cache/content-v2/sha512/e7/c5/06ad3fd79ac4f1031fe0b16ea5e54e232ca397bbcd7592c679021cbfb027276099f8c848f3f7a7691f0102ad53aa64f9141e61d729b037a678bd60440d17 +0 -1
  327. package/examples/.npm-cache/content-v2/sha512/f3/28/d5d32329604ed7d471a4949105daa2cc98858cf24f45b0b97c41d0eb0d5a9fe7bf1f69c792161cc6693e4fc1b52e886ac41875ebfb8fe47fafe417ca3e6e +0 -0
  328. package/examples/.npm-cache/index-v5/04/5a/2b5d7a7c407d85d746baa0f5c9388a333e35a717a8a0a81943daa6cb1364 +0 -3
  329. package/examples/.npm-cache/index-v5/12/9a/eba560cbace295d8ee04cf283015377bd77b379e70968fb6bc407c7fc410 +0 -15
  330. package/examples/.npm-cache/index-v5/2f/a2/7b047564b0ee21ac835ec609e89153dd6549be554d098584d5bfd19fe043 +0 -15
  331. package/examples/.npm-cache/index-v5/32/8e/322d58dd8d1e000be248ada51385bf96288e56039de9feec1a4c6a467653 +0 -3
  332. package/examples/.npm-cache/index-v5/57/93/d1d7cd1402e3e26468db03f2870822bb2c9018a506cdfb3b405f38cd3e1c +0 -3
  333. package/examples/.npm-cache/index-v5/5d/f8/0a1f4fa7149e4ff33e09eb6aea41ac8d1730c868a5d3ace91f762698acff +0 -3
  334. package/examples/.npm-cache/index-v5/69/a4/a92c72d838259b051cdf8e0acfb2bc680b6d4cfc642314a7836c3f7b2c50 +0 -15
  335. package/examples/.npm-cache/index-v5/71/31/6da3423bb203f3de5eb16c942431073f89be2cfcb40058ec91dcb5ce0abc +0 -15
  336. package/examples/.npm-cache/index-v5/7b/94/72b6bffa050d9ef52a558dd220663695bc606f756be0dfa196ef4f3913ba +0 -3
  337. package/examples/.npm-cache/index-v5/85/9e/99e97fdd562517e56285337db91d1a8f2f416b8d631cf4d7d754fa671299 +0 -15
  338. package/examples/.npm-cache/index-v5/92/4c/9416ada81a9b3c679539fd1ab53f8de3d41ff268f35eba7a194389a85b06 +0 -3
  339. package/examples/.npm-cache/index-v5/c1/5a/13df76b218deed8a6ef12961116af5183db98c53fad1b922fd9edc075247 +0 -3
  340. package/examples/.npm-cache/index-v5/cb/11/253c55410a8ab7c4a9ea9d6e1bf8ef1450a581da64c478074dfd82c8bff6 +0 -3
  341. package/examples/.npm-cache/index-v5/d5/ae/b57fad3a62b5ba2dbdf24b042a9e7b70820f3db00e5a630f02e1fea020dc +0 -3
  342. package/examples/.npm-cache/index-v5/d6/32/2f620f83c7d14451de98de8298c2408e05a16cc0829bd16c891ac19d7a67 +0 -3
  343. package/examples/.npm-cache/index-v5/dd/b5/01dc7a3cd8b6a03a69aee9af500d51ae19cb0aa12631a4aafd152148b8e5 +0 -15
  344. package/examples/.npm-cache/index-v5/e0/cf/6b862c15d74630d3871cd813d305210ab741311deb10baf8813014e0bc30 +0 -3
  345. package/examples/.npm-cache/index-v5/e2/be/e880ccd35950a814d3c1dded34d3938ac61b15a195321dc51357f801aad4 +0 -15
  346. package/examples/.npm-cache/index-v5/e5/1f/f4affe0b392cd03288f23cc03abcb274ff11a2c8f8965299de681914abb2 +0 -3
  347. package/examples/.npm-cache/index-v5/f3/5b/9ebe450958ff0d7cc44ab0a00080cb8a3ff1389744b5eab5f97b68a6a6af +0 -3
  348. package/examples/.npm-cache/index-v5/fb/c1/0de405e902866d53e7c30cf36a97dc2578838622b261816f44dc377c9a80 +0 -3
  349. package/templates/server.hbs +0 -29
  350. package/templates/web.hbs +0 -45
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @walkeros/cli
2
2
 
3
+ ## 0.5.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [5163b01]
8
+ - @walkeros/core@0.5.1-next.0
9
+ - @walkeros/docker@0.3.1-next.0
10
+ - @walkeros/server-core@0.5.1-next.0
11
+
12
+ ## 0.5.0
13
+
14
+ ### Minor Changes
15
+
16
+ - just flow
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+ - @walkeros/core@0.5.0
22
+ - @walkeros/docker@0.3.0
23
+ - @walkeros/server-core@0.5.0
24
+
3
25
  ## 0.4.2
4
26
 
5
27
  ### Patch Changes
package/README.md CHANGED
@@ -24,6 +24,22 @@ npm install -g @walkeros/cli
24
24
  npm install @walkeros/cli
25
25
  ```
26
26
 
27
+ ## Quick Start
28
+
29
+ ```bash
30
+ # Bundle a flow configuration
31
+ walkeros bundle flow.json
32
+
33
+ # Test with simulated events (no real API calls)
34
+ walkeros simulate flow.json --event '{"name":"page view"}'
35
+
36
+ # Push real events to destinations
37
+ walkeros push flow.json --event '{"name":"page view"}'
38
+
39
+ # Run a collection server locally
40
+ walkeros run collect flow.json --port 3000
41
+ ```
42
+
27
43
  ## Commands
28
44
 
29
45
  ### bundle
@@ -86,6 +102,49 @@ walkeros simulate \
86
102
  --json
87
103
  ```
88
104
 
105
+ ### push
106
+
107
+ Execute your flow with real API calls to configured destinations. Unlike
108
+ `simulate` which mocks API calls, `push` performs actual HTTP requests.
109
+
110
+ ```bash
111
+ walkeros push <config-file> --event '<json>' [options]
112
+ ```
113
+
114
+ **Options:**
115
+
116
+ - `-e, --event <source>` - Event to push (JSON string, file path, or URL)
117
+ **Required**
118
+ - `--flow <name>` - Flow name (for multi-flow configs)
119
+ - `--json` - Output results as JSON
120
+ - `-v, --verbose` - Verbose output
121
+ - `-s, --silent` - Suppress output (for CI/CD)
122
+ - `--local` - Execute locally without Docker
123
+
124
+ **Event input formats:**
125
+
126
+ ```bash
127
+ # Inline JSON
128
+ walkeros push flow.json --event '{"name":"page view","data":{"title":"Home"}}'
129
+
130
+ # File path
131
+ walkeros push flow.json --event ./events/order.json
132
+
133
+ # URL
134
+ walkeros push flow.json --event https://example.com/sample-event.json
135
+ ```
136
+
137
+ **Push vs Simulate:**
138
+
139
+ | Feature | `push` | `simulate` |
140
+ | ------------ | ----------------------------------- | ------------------ |
141
+ | API Calls | Real HTTP requests | Mocked (captured) |
142
+ | Use Case | Integration testing | Safe local testing |
143
+ | Side Effects | Full (writes to DBs, sends to APIs) | None |
144
+
145
+ Use `simulate` first to validate configuration safely, then `push` to verify
146
+ real integrations.
147
+
89
148
  ### run
90
149
 
91
150
  Run flows locally using @walkeros/docker as a library (no Docker daemon
@@ -176,12 +235,12 @@ Flow configs use the `Flow.Setup` format with `version` and `flows`:
176
235
  "server": {},
177
236
  "packages": {
178
237
  "@walkeros/collector": { "imports": ["startFlow"] },
179
- "@walkeros/server-source-express": { "imports": ["sourceExpress"] },
180
- "@walkeros/destination-demo": { "imports": ["destinationDemo"] }
238
+ "@walkeros/server-source-express": {},
239
+ "@walkeros/destination-demo": {}
181
240
  },
182
241
  "sources": {
183
242
  "http": {
184
- "code": "sourceExpress",
243
+ "package": "@walkeros/server-source-express",
185
244
  "config": {
186
245
  "settings": { "path": "/collect", "port": 8080 }
187
246
  }
@@ -189,7 +248,7 @@ Flow configs use the `Flow.Setup` format with `version` and `flows`:
189
248
  },
190
249
  "destinations": {
191
250
  "demo": {
192
- "code": "destinationDemo",
251
+ "package": "@walkeros/destination-demo",
193
252
  "config": {
194
253
  "settings": { "name": "Demo" }
195
254
  }
@@ -203,6 +262,76 @@ Flow configs use the `Flow.Setup` format with `version` and `flows`:
203
262
 
204
263
  Platform is determined by the `web: {}` or `server: {}` key presence.
205
264
 
265
+ ### Package Configuration Patterns
266
+
267
+ The CLI automatically resolves imports based on how you configure packages:
268
+
269
+ **1. Default exports (recommended for single-export packages):**
270
+
271
+ ```json
272
+ {
273
+ "packages": {
274
+ "@walkeros/server-destination-api": {}
275
+ },
276
+ "destinations": {
277
+ "api": {
278
+ "package": "@walkeros/server-destination-api"
279
+ }
280
+ }
281
+ }
282
+ ```
283
+
284
+ The CLI generates:
285
+ `import _walkerosServerDestinationApi from '@walkeros/server-destination-api';`
286
+
287
+ **2. Named exports (for multi-export packages):**
288
+
289
+ ```json
290
+ {
291
+ "packages": {
292
+ "@walkeros/server-destination-gcp": {}
293
+ },
294
+ "destinations": {
295
+ "bigquery": {
296
+ "package": "@walkeros/server-destination-gcp",
297
+ "code": "destinationBigQuery"
298
+ },
299
+ "analytics": {
300
+ "package": "@walkeros/server-destination-gcp",
301
+ "code": "destinationAnalytics"
302
+ }
303
+ }
304
+ }
305
+ ```
306
+
307
+ The CLI generates:
308
+ `import { destinationBigQuery, destinationAnalytics } from '@walkeros/server-destination-gcp';`
309
+
310
+ **3. Utility imports (for helper functions):**
311
+
312
+ ```json
313
+ {
314
+ "packages": {
315
+ "lodash": { "imports": ["get", "set"] }
316
+ },
317
+ "mappings": {
318
+ "custom": {
319
+ "data": "({ data }) => get(data, 'user.email')"
320
+ }
321
+ }
322
+ }
323
+ ```
324
+
325
+ The CLI generates: `import { get, set } from 'lodash';`
326
+
327
+ **Key points:**
328
+
329
+ - Omit `packages.imports` for destinations/sources - the default export is used
330
+ automatically
331
+ - Only specify `code` when using a specific named export from a multi-export
332
+ package
333
+ - Use `packages.imports` only for utilities needed in mappings or custom code
334
+
206
335
  ### Local Packages
207
336
 
208
337
  Use local packages instead of npm for development or testing unpublished
@@ -364,13 +493,15 @@ walkeros bundle config.json
364
493
  - **Node.js**: 18+ or 22+
365
494
  - **Docker**: Not required for CLI (only for production deployment)
366
495
 
367
- ## Documentation
496
+ ## Type Definitions
497
+
498
+ See [src/types.ts](./src/types.ts) for TypeScript interfaces.
368
499
 
369
- Detailed guides in [docs/](./docs/):
500
+ ## Related
370
501
 
371
- - [RUN_COMMAND.md](./docs/RUN_COMMAND.md) - Run command details
372
- - [PUBLISHING.md](./docs/PUBLISHING.md) - Publishing guide
373
- - [MANUAL_TESTING_GUIDE.md](./docs/MANUAL_TESTING_GUIDE.md) - Testing guide
502
+ - [Website Documentation](https://www.walkeros.io/docs/cli/)
503
+ - [Flow Configuration](https://www.walkeros.io/docs/getting-started/flow/)
504
+ - [Docker Package](../docker/) - Production runtime
374
505
 
375
506
  ## License
376
507
 
@@ -1,5 +1,17 @@
1
1
  # walkerOS Flow Examples
2
2
 
3
+ ## Installation
4
+
5
+ These are example configurations - see the main [CLI README](../README.md) for
6
+ installation.
7
+
8
+ ## Usage
9
+
10
+ Use `walkeros bundle <example>.json` to build any example, then `walkeros run`
11
+ to execute.
12
+
13
+ ---
14
+
3
15
  This directory contains example flow configurations demonstrating various
4
16
  walkerOS use cases.
5
17
 
@@ -340,4 +352,4 @@ The event name is parsed as: `const [entity, action] = event.split(' ')`
340
352
  1. Try each example with `walkeros bundle` and `walkeros simulate`
341
353
  2. Modify examples to match your tracking requirements
342
354
  3. Create custom flow files for your use case
343
- 4. Deploy to production (see [PUBLISHING.md](../docs/PUBLISHING.md))
355
+ 4. Deploy to production
@@ -9,8 +9,7 @@
9
9
  "imports": ["startFlow"]
10
10
  },
11
11
  "@walkeros/destination-demo": {
12
- "version": "latest",
13
- "imports": ["destinationDemo"]
12
+ "version": "latest"
14
13
  }
15
14
  },
16
15
  "destinations": {
@@ -9,8 +9,7 @@
9
9
  "imports": ["startFlow"]
10
10
  },
11
11
  "@walkeros/destination-demo": {
12
- "version": "latest",
13
- "imports": ["destinationDemo"]
12
+ "version": "latest"
14
13
  }
15
14
  },
16
15
  "destinations": {
@@ -9,17 +9,16 @@
9
9
  "imports": ["startFlow"]
10
10
  },
11
11
  "@walkeros/server-source-express": {
12
- "version": "latest",
13
- "imports": ["sourceExpress"]
12
+ "version": "latest"
14
13
  },
15
14
  "@walkeros/destination-demo": {
16
- "version": "latest",
17
- "imports": ["destinationDemo"]
15
+ "version": "latest"
18
16
  }
19
17
  },
20
18
  "sources": {
21
19
  "http": {
22
20
  "package": "@walkeros/server-source-express",
21
+ "code": "sourceExpress",
23
22
  "config": {
24
23
  "settings": {
25
24
  "path": "/collect",
@@ -33,6 +32,7 @@
33
32
  "destinations": {
34
33
  "demo": {
35
34
  "package": "@walkeros/destination-demo",
35
+ "code": "destinationDemo",
36
36
  "config": {
37
37
  "settings": {
38
38
  "name": "Server Collection Demo",
package/dist/index.d.ts CHANGED
@@ -33,11 +33,6 @@ interface CLIBuildOptions extends Pick<BuildOptions$1, 'external'> {
33
33
  * @default ".tmp"
34
34
  */
35
35
  tempDir?: string;
36
- /**
37
- * Custom template file path.
38
- * @default undefined (uses platform-specific default)
39
- */
40
- template?: string;
41
36
  /**
42
37
  * Enable package caching.
43
38
  * @default true
@@ -422,112 +417,4 @@ declare function runCommand(mode: string, options: RunCommandOptions): Promise<v
422
417
  */
423
418
  declare function run(mode: RunMode, options: RunOptions): Promise<RunResult>;
424
419
 
425
- /**
426
- * Template Configuration Types
427
- *
428
- * Type definitions for template processing and serialization.
429
- * Used by the template engine and serializer.
430
- *
431
- * @packageDocumentation
432
- */
433
- /**
434
- * Source or Destination configuration item for templates.
435
- *
436
- * @remarks
437
- * This type is used in template processing where config objects
438
- * are serialized to JavaScript code.
439
- */
440
- interface SourceDestinationItem {
441
- /**
442
- * JavaScript code reference (variable name or expression)
443
- */
444
- code: string;
445
- /**
446
- * Configuration object for the source/destination
447
- */
448
- config?: unknown;
449
- /**
450
- * Environment-specific variables
451
- */
452
- env?: unknown;
453
- /**
454
- * Allow additional properties for extensibility
455
- */
456
- [key: string]: unknown;
457
- }
458
- /**
459
- * Template variables that can be used in Handlebars templates.
460
- *
461
- * @remarks
462
- * These variables are available in template files for customization.
463
- */
464
- interface TemplateVariables {
465
- /**
466
- * Serialized sources configuration
467
- */
468
- sources: string;
469
- /**
470
- * Serialized destinations configuration
471
- */
472
- destinations: string;
473
- /**
474
- * Serialized collector configuration
475
- */
476
- collector: string;
477
- /**
478
- * User-provided code to be inserted
479
- */
480
- CODE: string;
481
- /**
482
- * Build configuration (optional)
483
- */
484
- build?: Record<string, unknown>;
485
- }
486
- /**
487
- * Processed template variables after serialization.
488
- *
489
- * @remarks
490
- * Internal type used by the serializer to represent processed configs.
491
- */
492
- interface ProcessedTemplateVariables {
493
- /**
494
- * Processed sources with serialized configs
495
- */
496
- sources?: Record<string, TemplateSource>;
497
- /**
498
- * Processed destinations with serialized configs
499
- */
500
- destinations?: Record<string, TemplateDestination>;
501
- /**
502
- * Processed collector configuration
503
- */
504
- collector?: Record<string, unknown> | string;
505
- /**
506
- * Allow additional properties
507
- */
508
- [key: string]: unknown;
509
- }
510
- /**
511
- * Template source after processing.
512
- *
513
- * @internal
514
- */
515
- interface TemplateSource {
516
- code: string;
517
- config?: unknown | string;
518
- env?: unknown;
519
- [key: string]: unknown;
520
- }
521
- /**
522
- * Template destination after processing.
523
- *
524
- * @internal
525
- */
526
- interface TemplateDestination {
527
- code: string;
528
- config?: unknown | string;
529
- env?: unknown;
530
- [key: string]: unknown;
531
- }
532
-
533
- export { type BuildOptions, type BundleStats, type CLIBuildOptions, type GlobalOptions, type MinifyOptions, type ProcessedTemplateVariables, type RunCommandOptions, type RunMode, type RunOptions, type RunResult, type SimulationResult, type SourceDestinationItem, type TemplateDestination, type TemplateSource, type TemplateVariables, bundle, bundleCommand, pushCommand, run, runCommand, simulate, simulateCommand };
420
+ export { type BuildOptions, type BundleStats, type CLIBuildOptions, type GlobalOptions, type MinifyOptions, type RunCommandOptions, type RunMode, type RunOptions, type RunResult, type SimulationResult, bundle, bundleCommand, pushCommand, run, runCommand, simulate, simulateCommand };