@walkeros/cli 0.7.0-next.0 → 1.0.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 (269) hide show
  1. package/CHANGELOG.md +8 -151
  2. package/README.md +123 -37
  3. package/dist/examples/flow-order-complete.json +0 -1
  4. package/dist/examples/flow-simple.json +0 -3
  5. package/dist/examples/flow.json +0 -1
  6. package/dist/index.d.ts +23 -13
  7. package/dist/index.js +882 -846
  8. package/dist/index.js.map +1 -1
  9. package/dist/runtime/main.d.ts +2 -0
  10. package/dist/runtime/main.js +271 -0
  11. package/dist/runtime/main.js.map +1 -0
  12. package/examples/flow-order-complete.json +0 -1
  13. package/examples/flow-simple.json +0 -3
  14. package/examples/flow.json +0 -1
  15. package/package.json +10 -7
  16. package/dist/__tests__/bundle/bundler-helpers.test.d.ts +0 -2
  17. package/dist/__tests__/bundle/bundler-helpers.test.d.ts.map +0 -1
  18. package/dist/__tests__/bundle/bundler-helpers.test.js +0 -151
  19. package/dist/__tests__/bundle/bundler-helpers.test.js.map +0 -1
  20. package/dist/__tests__/bundle/bundler.test.d.ts +0 -2
  21. package/dist/__tests__/bundle/bundler.test.d.ts.map +0 -1
  22. package/dist/__tests__/bundle/bundler.test.js +0 -353
  23. package/dist/__tests__/bundle/bundler.test.js.map +0 -1
  24. package/dist/__tests__/bundle/programmatic.test.d.ts +0 -2
  25. package/dist/__tests__/bundle/programmatic.test.d.ts.map +0 -1
  26. package/dist/__tests__/bundle/programmatic.test.js +0 -148
  27. package/dist/__tests__/bundle/programmatic.test.js.map +0 -1
  28. package/dist/__tests__/cli-e2e.test.d.ts +0 -8
  29. package/dist/__tests__/cli-e2e.test.d.ts.map +0 -1
  30. package/dist/__tests__/cli-e2e.test.js +0 -130
  31. package/dist/__tests__/cli-e2e.test.js.map +0 -1
  32. package/dist/__tests__/cli.test.d.ts +0 -2
  33. package/dist/__tests__/cli.test.d.ts.map +0 -1
  34. package/dist/__tests__/cli.test.js +0 -180
  35. package/dist/__tests__/cli.test.js.map +0 -1
  36. package/dist/__tests__/config-loader.test.d.ts +0 -7
  37. package/dist/__tests__/config-loader.test.d.ts.map +0 -1
  38. package/dist/__tests__/config-loader.test.js +0 -414
  39. package/dist/__tests__/config-loader.test.js.map +0 -1
  40. package/dist/__tests__/core/asset-resolver.test.d.ts +0 -2
  41. package/dist/__tests__/core/asset-resolver.test.d.ts.map +0 -1
  42. package/dist/__tests__/core/asset-resolver.test.js +0 -14
  43. package/dist/__tests__/core/asset-resolver.test.js.map +0 -1
  44. package/dist/__tests__/core/build-cache.test.d.ts +0 -2
  45. package/dist/__tests__/core/build-cache.test.d.ts.map +0 -1
  46. package/dist/__tests__/core/build-cache.test.js +0 -55
  47. package/dist/__tests__/core/build-cache.test.js.map +0 -1
  48. package/dist/__tests__/core/cache-utils.test.d.ts +0 -2
  49. package/dist/__tests__/core/cache-utils.test.d.ts.map +0 -1
  50. package/dist/__tests__/core/cache-utils.test.js +0 -70
  51. package/dist/__tests__/core/cache-utils.test.js.map +0 -1
  52. package/dist/__tests__/core/config.test.d.ts +0 -2
  53. package/dist/__tests__/core/config.test.d.ts.map +0 -1
  54. package/dist/__tests__/core/config.test.js +0 -72
  55. package/dist/__tests__/core/config.test.js.map +0 -1
  56. package/dist/__tests__/core/docker-url.test.d.ts +0 -2
  57. package/dist/__tests__/core/docker-url.test.d.ts.map +0 -1
  58. package/dist/__tests__/core/docker-url.test.js +0 -54
  59. package/dist/__tests__/core/docker-url.test.js.map +0 -1
  60. package/dist/__tests__/core/logger.test.d.ts +0 -2
  61. package/dist/__tests__/core/logger.test.d.ts.map +0 -1
  62. package/dist/__tests__/core/logger.test.js +0 -53
  63. package/dist/__tests__/core/logger.test.js.map +0 -1
  64. package/dist/__tests__/integration/bundle-run.integration.test.d.ts +0 -8
  65. package/dist/__tests__/integration/bundle-run.integration.test.d.ts.map +0 -1
  66. package/dist/__tests__/integration/bundle-run.integration.test.js +0 -54
  67. package/dist/__tests__/integration/bundle-run.integration.test.js.map +0 -1
  68. package/dist/__tests__/push/push.test.d.ts +0 -7
  69. package/dist/__tests__/push/push.test.d.ts.map +0 -1
  70. package/dist/__tests__/push/push.test.js +0 -197
  71. package/dist/__tests__/push/push.test.js.map +0 -1
  72. package/dist/__tests__/simulate/env-loader.test.d.ts +0 -2
  73. package/dist/__tests__/simulate/env-loader.test.d.ts.map +0 -1
  74. package/dist/__tests__/simulate/env-loader.test.js +0 -47
  75. package/dist/__tests__/simulate/env-loader.test.js.map +0 -1
  76. package/dist/__tests__/simulate/node-executor.test.d.ts +0 -5
  77. package/dist/__tests__/simulate/node-executor.test.d.ts.map +0 -1
  78. package/dist/__tests__/simulate/node-executor.test.js +0 -25
  79. package/dist/__tests__/simulate/node-executor.test.js.map +0 -1
  80. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts +0 -5
  81. package/dist/__tests__/simulate/server-simulate.integration.test.d.ts.map +0 -1
  82. package/dist/__tests__/simulate/server-simulate.integration.test.js +0 -58
  83. package/dist/__tests__/simulate/server-simulate.integration.test.js.map +0 -1
  84. package/dist/__tests__/smoke/production.smoke.test.d.ts +0 -8
  85. package/dist/__tests__/smoke/production.smoke.test.d.ts.map +0 -1
  86. package/dist/__tests__/smoke/production.smoke.test.js +0 -65
  87. package/dist/__tests__/smoke/production.smoke.test.js.map +0 -1
  88. package/dist/commands/bundle/bundler.d.ts +0 -32
  89. package/dist/commands/bundle/bundler.d.ts.map +0 -1
  90. package/dist/commands/bundle/bundler.js +0 -583
  91. package/dist/commands/bundle/bundler.js.map +0 -1
  92. package/dist/commands/bundle/index.d.ts +0 -57
  93. package/dist/commands/bundle/index.d.ts.map +0 -1
  94. package/dist/commands/bundle/index.js +0 -200
  95. package/dist/commands/bundle/index.js.map +0 -1
  96. package/dist/commands/bundle/package-manager.d.ts +0 -8
  97. package/dist/commands/bundle/package-manager.d.ts.map +0 -1
  98. package/dist/commands/bundle/package-manager.js +0 -197
  99. package/dist/commands/bundle/package-manager.js.map +0 -1
  100. package/dist/commands/bundle/stats.d.ts +0 -23
  101. package/dist/commands/bundle/stats.d.ts.map +0 -1
  102. package/dist/commands/bundle/stats.js +0 -52
  103. package/dist/commands/bundle/stats.js.map +0 -1
  104. package/dist/commands/cache.d.ts +0 -3
  105. package/dist/commands/cache.d.ts.map +0 -1
  106. package/dist/commands/cache.js +0 -44
  107. package/dist/commands/cache.js.map +0 -1
  108. package/dist/commands/push/index.d.ts +0 -7
  109. package/dist/commands/push/index.d.ts.map +0 -1
  110. package/dist/commands/push/index.js +0 -257
  111. package/dist/commands/push/index.js.map +0 -1
  112. package/dist/commands/push/types.d.ts +0 -21
  113. package/dist/commands/push/types.d.ts.map +0 -1
  114. package/dist/commands/push/types.js +0 -2
  115. package/dist/commands/push/types.js.map +0 -1
  116. package/dist/commands/run/__tests__/run.integration.test.d.ts +0 -8
  117. package/dist/commands/run/__tests__/run.integration.test.d.ts.map +0 -1
  118. package/dist/commands/run/__tests__/run.integration.test.js +0 -52
  119. package/dist/commands/run/__tests__/run.integration.test.js.map +0 -1
  120. package/dist/commands/run/__tests__/validators.test.d.ts +0 -2
  121. package/dist/commands/run/__tests__/validators.test.d.ts.map +0 -1
  122. package/dist/commands/run/__tests__/validators.test.js +0 -80
  123. package/dist/commands/run/__tests__/validators.test.js.map +0 -1
  124. package/dist/commands/run/execution.d.ts +0 -14
  125. package/dist/commands/run/execution.d.ts.map +0 -1
  126. package/dist/commands/run/execution.js +0 -41
  127. package/dist/commands/run/execution.js.map +0 -1
  128. package/dist/commands/run/index.d.ts +0 -39
  129. package/dist/commands/run/index.d.ts.map +0 -1
  130. package/dist/commands/run/index.js +0 -191
  131. package/dist/commands/run/index.js.map +0 -1
  132. package/dist/commands/run/types.d.ts +0 -60
  133. package/dist/commands/run/types.d.ts.map +0 -1
  134. package/dist/commands/run/types.js +0 -7
  135. package/dist/commands/run/types.js.map +0 -1
  136. package/dist/commands/run/utils.d.ts +0 -29
  137. package/dist/commands/run/utils.d.ts.map +0 -1
  138. package/dist/commands/run/utils.js +0 -52
  139. package/dist/commands/run/utils.js.map +0 -1
  140. package/dist/commands/run/validators.d.ts +0 -33
  141. package/dist/commands/run/validators.d.ts.map +0 -1
  142. package/dist/commands/run/validators.js +0 -58
  143. package/dist/commands/run/validators.js.map +0 -1
  144. package/dist/commands/simulate/env-loader.d.ts +0 -19
  145. package/dist/commands/simulate/env-loader.d.ts.map +0 -1
  146. package/dist/commands/simulate/env-loader.js +0 -46
  147. package/dist/commands/simulate/env-loader.js.map +0 -1
  148. package/dist/commands/simulate/index.d.ts +0 -48
  149. package/dist/commands/simulate/index.d.ts.map +0 -1
  150. package/dist/commands/simulate/index.js +0 -116
  151. package/dist/commands/simulate/index.js.map +0 -1
  152. package/dist/commands/simulate/jsdom-executor.d.ts +0 -37
  153. package/dist/commands/simulate/jsdom-executor.d.ts.map +0 -1
  154. package/dist/commands/simulate/jsdom-executor.js +0 -137
  155. package/dist/commands/simulate/jsdom-executor.js.map +0 -1
  156. package/dist/commands/simulate/node-executor.d.ts +0 -28
  157. package/dist/commands/simulate/node-executor.d.ts.map +0 -1
  158. package/dist/commands/simulate/node-executor.js +0 -94
  159. package/dist/commands/simulate/node-executor.js.map +0 -1
  160. package/dist/commands/simulate/simulator.d.ts +0 -14
  161. package/dist/commands/simulate/simulator.d.ts.map +0 -1
  162. package/dist/commands/simulate/simulator.js +0 -162
  163. package/dist/commands/simulate/simulator.js.map +0 -1
  164. package/dist/commands/simulate/tracker.d.ts +0 -30
  165. package/dist/commands/simulate/tracker.d.ts.map +0 -1
  166. package/dist/commands/simulate/tracker.js +0 -96
  167. package/dist/commands/simulate/tracker.js.map +0 -1
  168. package/dist/commands/simulate/types.d.ts +0 -18
  169. package/dist/commands/simulate/types.d.ts.map +0 -1
  170. package/dist/commands/simulate/types.js +0 -2
  171. package/dist/commands/simulate/types.js.map +0 -1
  172. package/dist/config/build-defaults.d.ts +0 -49
  173. package/dist/config/build-defaults.d.ts.map +0 -1
  174. package/dist/config/build-defaults.js +0 -70
  175. package/dist/config/build-defaults.js.map +0 -1
  176. package/dist/config/index.d.ts +0 -13
  177. package/dist/config/index.d.ts.map +0 -1
  178. package/dist/config/index.js +0 -15
  179. package/dist/config/index.js.map +0 -1
  180. package/dist/config/loader.d.ts +0 -81
  181. package/dist/config/loader.d.ts.map +0 -1
  182. package/dist/config/loader.js +0 -155
  183. package/dist/config/loader.js.map +0 -1
  184. package/dist/config/utils.d.ts +0 -114
  185. package/dist/config/utils.d.ts.map +0 -1
  186. package/dist/config/utils.js +0 -257
  187. package/dist/config/utils.js.map +0 -1
  188. package/dist/config/validators.d.ts +0 -52
  189. package/dist/config/validators.d.ts.map +0 -1
  190. package/dist/config/validators.js +0 -85
  191. package/dist/config/validators.js.map +0 -1
  192. package/dist/core/asset-resolver.d.ts +0 -34
  193. package/dist/core/asset-resolver.d.ts.map +0 -1
  194. package/dist/core/asset-resolver.js +0 -70
  195. package/dist/core/asset-resolver.js.map +0 -1
  196. package/dist/core/build-cache.d.ts +0 -23
  197. package/dist/core/build-cache.d.ts.map +0 -1
  198. package/dist/core/build-cache.js +0 -43
  199. package/dist/core/build-cache.js.map +0 -1
  200. package/dist/core/cache-utils.d.ts +0 -27
  201. package/dist/core/cache-utils.d.ts.map +0 -1
  202. package/dist/core/cache-utils.js +0 -60
  203. package/dist/core/cache-utils.js.map +0 -1
  204. package/dist/core/docker.d.ts +0 -102
  205. package/dist/core/docker.d.ts.map +0 -1
  206. package/dist/core/docker.js +0 -278
  207. package/dist/core/docker.js.map +0 -1
  208. package/dist/core/execution.d.ts +0 -34
  209. package/dist/core/execution.d.ts.map +0 -1
  210. package/dist/core/execution.js +0 -64
  211. package/dist/core/execution.js.map +0 -1
  212. package/dist/core/index.d.ts +0 -10
  213. package/dist/core/index.d.ts.map +0 -1
  214. package/dist/core/index.js +0 -10
  215. package/dist/core/index.js.map +0 -1
  216. package/dist/core/local-packages.d.ts +0 -19
  217. package/dist/core/local-packages.d.ts.map +0 -1
  218. package/dist/core/local-packages.js +0 -60
  219. package/dist/core/local-packages.js.map +0 -1
  220. package/dist/core/logger.d.ts +0 -28
  221. package/dist/core/logger.d.ts.map +0 -1
  222. package/dist/core/logger.js +0 -88
  223. package/dist/core/logger.js.map +0 -1
  224. package/dist/core/output.d.ts +0 -30
  225. package/dist/core/output.d.ts.map +0 -1
  226. package/dist/core/output.js +0 -46
  227. package/dist/core/output.js.map +0 -1
  228. package/dist/core/temp-manager.d.ts +0 -51
  229. package/dist/core/temp-manager.d.ts.map +0 -1
  230. package/dist/core/temp-manager.js +0 -73
  231. package/dist/core/temp-manager.js.map +0 -1
  232. package/dist/core/timer.d.ts +0 -14
  233. package/dist/core/timer.d.ts.map +0 -1
  234. package/dist/core/timer.js +0 -29
  235. package/dist/core/timer.js.map +0 -1
  236. package/dist/core/utils.d.ts +0 -10
  237. package/dist/core/utils.d.ts.map +0 -1
  238. package/dist/core/utils.js +0 -12
  239. package/dist/core/utils.js.map +0 -1
  240. package/dist/index.d.ts.map +0 -1
  241. package/dist/schemas/index.d.ts +0 -9
  242. package/dist/schemas/index.d.ts.map +0 -1
  243. package/dist/schemas/index.js +0 -9
  244. package/dist/schemas/index.js.map +0 -1
  245. package/dist/schemas/primitives.d.ts +0 -37
  246. package/dist/schemas/primitives.d.ts.map +0 -1
  247. package/dist/schemas/primitives.js +0 -43
  248. package/dist/schemas/primitives.js.map +0 -1
  249. package/dist/schemas/run.d.ts +0 -23
  250. package/dist/schemas/run.d.ts.map +0 -1
  251. package/dist/schemas/run.js +0 -20
  252. package/dist/schemas/run.js.map +0 -1
  253. package/dist/types/bundle.d.ts +0 -141
  254. package/dist/types/bundle.d.ts.map +0 -1
  255. package/dist/types/bundle.js +0 -10
  256. package/dist/types/bundle.js.map +0 -1
  257. package/dist/types/global.d.ts +0 -51
  258. package/dist/types/global.d.ts.map +0 -1
  259. package/dist/types/global.js +0 -30
  260. package/dist/types/global.js.map +0 -1
  261. package/dist/types/index.d.ts +0 -8
  262. package/dist/types/index.d.ts.map +0 -1
  263. package/dist/types/index.js +0 -8
  264. package/dist/types/index.js.map +0 -1
  265. package/dist/version.d.ts +0 -3
  266. package/dist/version.d.ts.map +0 -1
  267. package/dist/version.js +0 -27
  268. package/dist/version.js.map +0 -1
  269. package/dist/walker.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,159 +1,16 @@
1
1
  # @walkeros/cli
2
2
 
3
- ## 0.7.0-next.0
3
+ ## 1.0.0
4
4
 
5
- ### Minor Changes
5
+ ### Major Changes
6
6
 
7
- - 42d06c8: Fix Docker runtime version display - versions now read reliably from
8
- package.json at runtime instead of fragile build-time injection
7
+ - 67c9e1d: Hello World! walkerOS v1.0.0
9
8
 
10
- ### Patch Changes
11
-
12
- - Updated dependencies [42d06c8]
13
- - @walkeros/docker@0.7.0-next.0
14
-
15
- ## 0.5.1-next.1
16
-
17
- ### Patch Changes
18
-
19
- - 71b615f: Fix URL handling in resolveAsset - URLs are now passed through
20
- unchanged instead of being mangled into invalid filesystem paths
21
-
22
- ## 0.5.1-next.0
23
-
24
- ### Patch Changes
25
-
26
- - Updated dependencies [5163b01]
27
- - @walkeros/core@0.5.1-next.0
28
- - @walkeros/docker@0.3.1-next.0
29
- - @walkeros/server-core@0.5.1-next.0
30
-
31
- ## 0.5.0
32
-
33
- ### Minor Changes
34
-
35
- - just flow
36
-
37
- ### Patch Changes
38
-
39
- - Updated dependencies
40
- - @walkeros/core@0.5.0
41
- - @walkeros/docker@0.3.0
42
- - @walkeros/server-core@0.5.0
43
-
44
- ## 0.4.2
45
-
46
- ### Patch Changes
47
-
48
- - simulate server and local packages
49
- - cli cache
50
- - Updated dependencies
51
- - Updated dependencies
52
- - Updated dependencies
53
- - @walkeros/core@0.4.2
54
- - @walkeros/docker@0.2.2
55
- - @walkeros/server-core@0.4.2
56
-
57
- ## 0.4.1
58
-
59
- ### Patch Changes
60
-
61
- - dev entry
62
- - Updated dependencies
63
- - @walkeros/server-core@0.4.1
64
- - @walkeros/docker@0.2.1
65
- - @walkeros/core@0.4.1
66
-
67
- ## 0.4.0
68
-
69
- ### Minor Changes
70
-
71
- - Consolidate schemas and examples under `/dev` export
72
-
73
- ### Patch Changes
74
-
75
- - Updated dependencies
76
- - @walkeros/docker@0.2.0
77
- - @walkeros/core@0.4.0
78
-
79
- ## 0.3.6
80
-
81
- ### Patch Changes
82
-
83
- - port path and name
84
- - df4b2a1: Read CLI version dynamically from package.json instead of hardcoded
85
- value
86
- - Updated dependencies
87
- - @walkeros/docker@0.1.5
88
-
89
- ## 0.3.5
90
-
91
- ### Patch Changes
92
-
93
- - cli usage
94
- - Updated dependencies
95
- - @walkeros/docker@0.1.4
96
-
97
- ## 0.3.4
98
-
99
- ### Patch Changes
100
-
101
- - main module exec
102
-
103
- ## 0.3.3
104
-
105
- ### Patch Changes
106
-
107
- - force local
108
-
109
- ## 0.3.2
110
-
111
- ### Patch Changes
112
-
113
- - walkeros cli with docker
114
- - Updated dependencies
115
- - @walkeros/docker@0.1.2
116
-
117
- ## 0.3.1
118
-
119
- ### Patch Changes
120
-
121
- - 25f7e10: Fix bundle command template path resolution to support relative paths
122
-
123
- **CLI Changes:**
124
- - Template paths starting with `./` or `../` in config files are now resolved
125
- relative to the config file's directory
126
- - Maintains backward compatibility for other relative paths (resolved from
127
- cwd)
128
- - Enables portable flow configs that reference templates next to them
129
-
130
- **Docker Changes:**
131
- - Updated demo.json and express-console.json to include template and output
132
- fields
133
- - Flow files can now be bundled standalone using the CLI bundle command
134
- - Templates are referenced using `../templates/base.hbs` relative to flow file
135
-
136
- **Example:**
137
-
138
- ```bash
139
- # Now works from any directory
140
- node dist/index.mjs bundle -c packages/docker/flows/demo.json
141
- ```
142
-
143
- - hello
144
- - Updated dependencies [25f7e10]
145
- - Updated dependencies
146
- - Updated dependencies
147
- - @walkeros/docker@0.1.1
148
- - @walkeros/core@0.3.1
149
-
150
- ## 0.2.0
151
-
152
- ### Minor Changes
153
-
154
- - env
9
+ Open-source event data collection. Collect event data for digital analytics in
10
+ a unified and privacy-centric way.
155
11
 
156
12
  ### Patch Changes
157
13
 
158
- - Updated dependencies
159
- - @walkeros/core@0.2.0
14
+ - Updated dependencies [67c9e1d]
15
+ - @walkeros/core@1.0.0
16
+ - @walkeros/server-core@1.0.0
package/README.md CHANGED
@@ -14,6 +14,21 @@ The walkerOS CLI is a developer tool that:
14
14
  Think of it as your development toolchain for walkerOS - from config to running
15
15
  production bundles.
16
16
 
17
+ ### When to Use the CLI
18
+
19
+ The CLI is for **Bundled mode** — when you want config-as-code and separate
20
+ deployment:
21
+
22
+ | Use CLI When | Use Integrated Mode When |
23
+ | --------------------------- | ------------------------ |
24
+ | Static sites, landing pages | React/Next.js apps |
25
+ | Docker/server deployments | TypeScript projects |
26
+ | CI/CD versioned configs | Programmatic control |
27
+ | Marketing/GTM workflows | Build-time type safety |
28
+
29
+ For Integrated mode (importing directly into your app), see the
30
+ [Collector package](../collector/).
31
+
17
32
  ## Installation
18
33
 
19
34
  ```bash
@@ -31,13 +46,16 @@ npm install @walkeros/cli
31
46
  walkeros bundle flow.json
32
47
 
33
48
  # Test with simulated events (no real API calls)
34
- walkeros simulate flow.json --event '{"name":"page view"}'
49
+ walkeros simulate flow.json --event '{"name":"product view"}'
50
+
51
+ # Or test a pre-built bundle directly
52
+ walkeros simulate dist/bundle.mjs --event '{"name":"product view"}'
35
53
 
36
54
  # Push real events to destinations
37
- walkeros push flow.json --event '{"name":"page view"}'
55
+ walkeros push flow.json --event '{"name":"product view"}'
38
56
 
39
57
  # Run a collection server locally
40
- walkeros run collect flow.json --port 3000
58
+ walkeros run collect dist/bundle.mjs --port 3000
41
59
  ```
42
60
 
43
61
  ## Commands
@@ -64,7 +82,6 @@ walkeros bundle https://example.com/config.json # Remote URL
64
82
  - `-s, --stats` - Show bundle statistics
65
83
  - `--json` - Output stats as JSON
66
84
  - `--no-cache` - Disable package caching
67
- - `--local` - Run locally without Docker
68
85
  - `-v, --verbose` - Verbose output
69
86
 
70
87
  **Example:**
@@ -79,47 +96,77 @@ The output path uses convention-based defaults: `./dist/bundle.mjs` for server,
79
96
 
80
97
  ### simulate
81
98
 
82
- Test event processing with simulated events.
99
+ Test event processing with simulated events. Accepts either a config JSON (which
100
+ gets bundled) or a pre-built bundle (executed directly).
83
101
 
84
102
  ```bash
85
- walkeros simulate <config-file> --event '{"name":"page view"}' [options]
103
+ walkeros simulate <input> --event '{"name":"page view"}' [options]
86
104
  ```
87
105
 
106
+ **Input types:**
107
+
108
+ - **Config JSON** - Bundled and executed with destination mocking
109
+ - **Pre-built bundle** (`.js`/`.mjs`) - Executed directly, no mocking
110
+
111
+ The CLI auto-detects the input type by attempting to parse as JSON.
112
+
88
113
  **Options:**
89
114
 
90
115
  - `-e, --event <json>` - Event JSON string (required)
116
+ - `-p, --platform <platform>` - Platform override (`web` or `server`)
91
117
  - `--json` - Output results as JSON
92
- - `--local` - Run locally without Docker
93
118
  - `-v, --verbose` - Verbose output
94
119
 
95
- **Example:**
120
+ **Examples:**
96
121
 
97
122
  ```bash
98
- # Simulate page view
99
- walkeros simulate \
100
- examples/web-serve.json \
123
+ # Simulate with config (auto-bundled)
124
+ walkeros simulate examples/web-serve.json \
101
125
  --event '{"name":"page view","data":{"title":"Home"}}' \
102
126
  --json
127
+
128
+ # Simulate with pre-built bundle
129
+ walkeros simulate dist/bundle.mjs --event '{"name":"page view"}'
130
+
131
+ # Override platform detection
132
+ walkeros simulate dist/bundle.js --platform server --event '{"name":"page view"}'
103
133
  ```
104
134
 
135
+ **Platform detection:**
136
+
137
+ When using pre-built bundles, platform is detected from file extension:
138
+
139
+ - `.mjs` → server (ESM, Node.js)
140
+ - `.js` → web (IIFE, JSDOM)
141
+
142
+ Use `--platform` to override if extension doesn't match intended runtime.
143
+
105
144
  ### push
106
145
 
107
146
  Execute your flow with real API calls to configured destinations. Unlike
108
- `simulate` which mocks API calls, `push` performs actual HTTP requests.
147
+ `simulate` which mocks API calls, `push` performs actual HTTP requests. Accepts
148
+ either a config JSON (which gets bundled) or a pre-built bundle.
109
149
 
110
150
  ```bash
111
- walkeros push <config-file> --event '<json>' [options]
151
+ walkeros push <input> --event '<json>' [options]
112
152
  ```
113
153
 
154
+ **Input types:**
155
+
156
+ - **Config JSON** - Bundled and executed
157
+ - **Pre-built bundle** (`.js`/`.mjs`) - Executed directly
158
+
159
+ The CLI auto-detects the input type by attempting to parse as JSON.
160
+
114
161
  **Options:**
115
162
 
116
163
  - `-e, --event <source>` - Event to push (JSON string, file path, or URL)
117
164
  **Required**
118
165
  - `--flow <name>` - Flow name (for multi-flow configs)
166
+ - `-p, --platform <platform>` - Platform override (`web` or `server`)
119
167
  - `--json` - Output results as JSON
120
168
  - `-v, --verbose` - Verbose output
121
169
  - `-s, --silent` - Suppress output (for CI/CD)
122
- - `--local` - Execute locally without Docker
123
170
 
124
171
  **Event input formats:**
125
172
 
@@ -134,6 +181,16 @@ walkeros push flow.json --event ./events/order.json
134
181
  walkeros push flow.json --event https://example.com/sample-event.json
135
182
  ```
136
183
 
184
+ **Bundle input:**
185
+
186
+ ```bash
187
+ # Push with pre-built bundle
188
+ walkeros push dist/bundle.mjs --event '{"name":"order complete"}'
189
+
190
+ # Override platform detection
191
+ walkeros push dist/bundle.js --platform server --event '{"name":"order complete"}'
192
+ ```
193
+
137
194
  **Push vs Simulate:**
138
195
 
139
196
  | Feature | `push` | `simulate` |
@@ -147,8 +204,7 @@ real integrations.
147
204
 
148
205
  ### run
149
206
 
150
- Run flows locally using @walkeros/docker as a library (no Docker daemon
151
- required).
207
+ Run flows locally (no Docker daemon required).
152
208
 
153
209
  ```bash
154
210
  walkeros run <mode> <config-file> [options]
@@ -164,7 +220,6 @@ walkeros run <mode> <config-file> [options]
164
220
  - `-p, --port <number>` - Server port
165
221
  - `-h, --host <host>` - Server host
166
222
  - `--static-dir <dir>` - Static directory (serve mode)
167
- - `--local` - Run locally without Docker
168
223
  - `--json` - JSON output
169
224
  - `-v, --verbose` - Verbose output
170
225
 
@@ -183,9 +238,9 @@ walkeros run serve flow.json --port 8080 --static-dir ./dist
183
238
 
184
239
  **How it works:**
185
240
 
186
- 1. JSON configs are bundled to temp `.mjs` automatically
241
+ 1. JSON configs are auto-bundled to temp `.mjs`
187
242
  2. `.mjs` bundles are used directly
188
- 3. Runs in current Node.js process (no containers)
243
+ 3. Runs in current Node.js process
189
244
  4. Press Ctrl+C for graceful shutdown
190
245
 
191
246
  ## Caching
@@ -444,17 +499,17 @@ Typical development cycle:
444
499
  # 1. Create/edit config
445
500
  vim my-flow.json
446
501
 
447
- # 2. Bundle and check stats
448
- walkeros bundle my-flow.json --stats
449
-
450
- # 3. Test with simulation
502
+ # 2. Test with simulation (no real API calls)
451
503
  walkeros simulate \
452
504
  my-flow.json \
453
- --event '{"name":"test event"}' \
505
+ --event '{"name":"product view"}' \
454
506
  --verbose
455
507
 
508
+ # 3. Bundle and check stats
509
+ walkeros bundle my-flow.json --stats
510
+
456
511
  # 4. Run locally
457
- walkeros run collect my-flow.json --port 3000
512
+ walkeros run collect dist/bundle.mjs --port 3000
458
513
 
459
514
  # 5. In another terminal, test it
460
515
  curl -X POST http://localhost:3000/collect \
@@ -468,26 +523,55 @@ curl -X POST http://localhost:3000/collect \
468
523
  CLI (downloads packages + bundles with esbuild)
469
524
  ├─ Bundle → optimized .mjs file
470
525
  ├─ Simulate → test bundle with events
471
- └─ Run → import @walkeros/docker + execute bundle
526
+ └─ Run → execute bundle with built-in runtime
527
+ ```
528
+
529
+ **Key principle**: CLI handles both build-time and runtime operations.
530
+
531
+ ## Production Deployment
532
+
533
+ Deploy your flows using Docker or Node.js.
534
+
535
+ ### Using Docker
536
+
537
+ The `walkeros/flow` image runs pre-built bundles in production:
538
+
539
+ ```bash
540
+ # Build your flow
541
+ walkeros bundle flow.json
542
+
543
+ # Run with Docker
544
+ docker run -v ./dist:/flow -p 8080:8080 walkeros/flow
472
545
  ```
473
546
 
474
- **Key principle**: CLI handles build-time, Docker handles runtime.
547
+ **Custom image:**
475
548
 
476
- ## Docker Images
549
+ ```dockerfile
550
+ FROM walkeros/flow
551
+ COPY dist/bundle.mjs /app/flow/
552
+ ```
553
+
554
+ **Environment variables:**
477
555
 
478
- By default, CLI uses **explicit version tags** (not `:latest`):
556
+ - `MODE` - `collect` or `serve` (default: `collect`)
557
+ - `PORT` - Server port (default: `8080`)
558
+ - `BUNDLE` - Bundle path (default: `/app/flow/bundle.mjs`)
479
559
 
480
- - `walkeros/cli:0.3.5` - Build tools (bundle, simulate)
481
- - `walkeros/docker:0.1.4` - Production runtime
560
+ ### Using Node.js
482
561
 
483
- Override with environment variables:
562
+ Run the bundle directly with the CLI:
484
563
 
485
564
  ```bash
486
- export WALKEROS_CLI_DOCKER_IMAGE=walkeros/cli:0.3.4
487
- export WALKEROS_RUNTIME_DOCKER_IMAGE=walkeros/docker:latest
488
- walkeros bundle config.json
565
+ # Build your flow
566
+ walkeros bundle flow.json
567
+
568
+ # Run in production
569
+ walkeros run collect dist/bundle.mjs --port 8080
489
570
  ```
490
571
 
572
+ This runs the flow in the current Node.js process, suitable for deployment on
573
+ platforms like AWS Lambda, Google Cloud Run, or any Node.js hosting.
574
+
491
575
  ## Requirements
492
576
 
493
577
  - **Node.js**: 18+ or 22+
@@ -499,9 +583,11 @@ See [src/types.ts](./src/types.ts) for TypeScript interfaces.
499
583
 
500
584
  ## Related
501
585
 
502
- - [Website Documentation](https://www.walkeros.io/docs/cli/)
586
+ - [Website Documentation](https://www.walkeros.io/docs/apps/cli/)
503
587
  - [Flow Configuration](https://www.walkeros.io/docs/getting-started/flow/)
504
- - [Docker Package](../docker/) - Production runtime
588
+ - [Collector Package](../collector/) - For Integrated mode (direct imports)
589
+ - [Operating Modes](https://www.walkeros.io/docs/getting-started/modes/) -
590
+ Choosing between Integrated and Bundled
505
591
 
506
592
  ## License
507
593
 
@@ -56,7 +56,6 @@
56
56
  }
57
57
  },
58
58
  "collector": {
59
- "run": true,
60
59
  "globals": {
61
60
  "environment": "production",
62
61
  "version": "1.0.0"
@@ -22,9 +22,6 @@
22
22
  }
23
23
  }
24
24
  }
25
- },
26
- "collector": {
27
- "run": true
28
25
  }
29
26
  }
30
27
  }
@@ -71,7 +71,6 @@
71
71
  }
72
72
  },
73
73
  "collector": {
74
- "run": true,
75
74
  "globals": {
76
75
  "environment": "production",
77
76
  "version": "1.0.0"
package/dist/index.d.ts CHANGED
@@ -150,11 +150,6 @@ interface MinifyOptions {
150
150
  * Global options available across all CLI commands
151
151
  */
152
152
  interface GlobalOptions {
153
- /**
154
- * Execute using local Node.js environment (vs Docker container)
155
- * @default false (Docker mode)
156
- */
157
- local?: boolean;
158
153
  /**
159
154
  * Show detailed execution logs
160
155
  * @default false
@@ -182,13 +177,17 @@ interface BundleStats {
182
177
  treeshakingEffective: boolean;
183
178
  }
184
179
 
185
- interface BundleCommandOptions extends GlobalOptions {
180
+ interface BundleCommandOptions {
186
181
  config: string;
187
182
  flow?: string;
188
183
  all?: boolean;
189
184
  stats?: boolean;
190
185
  json?: boolean;
191
186
  cache?: boolean;
187
+ verbose?: boolean;
188
+ dryRun?: boolean;
189
+ silent?: boolean;
190
+ dockerfile?: boolean;
192
191
  }
193
192
  declare function bundleCommand(options: BundleCommandOptions): Promise<void>;
194
193
  /**
@@ -245,10 +244,14 @@ interface ApiCall {
245
244
  timestamp: number;
246
245
  }
247
246
 
248
- interface SimulateCommandOptions extends GlobalOptions {
247
+ interface SimulateCommandOptions {
249
248
  config: string;
250
249
  event?: string;
251
250
  json?: boolean;
251
+ verbose?: boolean;
252
+ dryRun?: boolean;
253
+ silent?: boolean;
254
+ platform?: 'web' | 'server';
252
255
  }
253
256
  interface SimulationResult {
254
257
  success: boolean;
@@ -307,11 +310,14 @@ declare function simulate(configOrPath: string | unknown, event: unknown, option
307
310
  /**
308
311
  * Push command options
309
312
  */
310
- interface PushCommandOptions extends GlobalOptions {
313
+ interface PushCommandOptions {
311
314
  config: string;
312
315
  event: string;
313
316
  flow?: string;
314
317
  json?: boolean;
318
+ verbose?: boolean;
319
+ silent?: boolean;
320
+ platform?: 'web' | 'server';
315
321
  }
316
322
 
317
323
  /**
@@ -322,9 +328,8 @@ declare function pushCommand(options: PushCommandOptions): Promise<void>;
322
328
  /**
323
329
  * Run Command Types
324
330
  *
325
- * Types for running walkerOS flows via CLI using @walkeros/docker as a library
331
+ * Types for running walkerOS flows via CLI using local runtime
326
332
  */
327
-
328
333
  /**
329
334
  * Run mode - determines which execution mode to use
330
335
  */
@@ -332,7 +337,7 @@ type RunMode = 'collect' | 'serve';
332
337
  /**
333
338
  * CLI command options for `walkeros run`
334
339
  */
335
- interface RunCommandOptions extends GlobalOptions {
340
+ interface RunCommandOptions {
336
341
  /** Flow configuration file path (.json or pre-built .mjs) */
337
342
  config: string;
338
343
  /** Server port (overrides flow config) */
@@ -345,6 +350,12 @@ interface RunCommandOptions extends GlobalOptions {
345
350
  serveName?: string;
346
351
  /** Enable JSON output */
347
352
  json?: boolean;
353
+ /** Verbose logging */
354
+ verbose?: boolean;
355
+ /** Dry-run mode */
356
+ dryRun?: boolean;
357
+ /** Suppress output */
358
+ silent?: boolean;
348
359
  }
349
360
  /**
350
361
  * Programmatic run options (subset of CLI options)
@@ -382,8 +393,7 @@ interface RunResult {
382
393
  /**
383
394
  * Run Command
384
395
  *
385
- * Runs walkerOS flows using @walkeros/docker as a library
386
- * No Docker daemon required - runs directly in Node.js
396
+ * Runs walkerOS flows using local runtime
387
397
  */
388
398
 
389
399
  /**