@walkeros/cli 0.4.1 → 0.5.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.
- package/CHANGELOG.md +26 -0
- package/README.md +247 -46
- package/dist/__tests__/bundle/bundler-helpers.test.js +0 -134
- package/dist/__tests__/bundle/bundler-helpers.test.js.map +1 -1
- package/dist/__tests__/bundle/bundler.test.js +253 -183
- package/dist/__tests__/bundle/bundler.test.js.map +1 -1
- package/dist/__tests__/bundle/programmatic.test.js +74 -53
- package/dist/__tests__/bundle/programmatic.test.js.map +1 -1
- package/dist/__tests__/cli.test.js +58 -46
- package/dist/__tests__/cli.test.js.map +1 -1
- package/dist/__tests__/config-loader.test.d.ts +1 -1
- package/dist/__tests__/config-loader.test.js +229 -212
- package/dist/__tests__/config-loader.test.js.map +1 -1
- package/dist/__tests__/core/build-cache.test.d.ts +2 -0
- package/dist/__tests__/core/build-cache.test.d.ts.map +1 -0
- package/dist/__tests__/core/build-cache.test.js +55 -0
- package/dist/__tests__/core/build-cache.test.js.map +1 -0
- package/dist/__tests__/core/cache-utils.test.d.ts +2 -0
- package/dist/__tests__/core/cache-utils.test.d.ts.map +1 -0
- package/dist/__tests__/core/cache-utils.test.js +70 -0
- package/dist/__tests__/core/cache-utils.test.js.map +1 -0
- package/dist/__tests__/integration/bundle-run.integration.test.js +8 -4
- package/dist/__tests__/integration/bundle-run.integration.test.js.map +1 -1
- package/dist/__tests__/simulate/node-executor.test.d.ts +5 -0
- package/dist/__tests__/simulate/node-executor.test.d.ts.map +1 -0
- package/dist/__tests__/simulate/node-executor.test.js +25 -0
- package/dist/__tests__/simulate/node-executor.test.js.map +1 -0
- package/dist/__tests__/simulate/server-simulate.integration.test.d.ts +5 -0
- package/dist/__tests__/simulate/server-simulate.integration.test.d.ts.map +1 -0
- package/dist/__tests__/simulate/server-simulate.integration.test.js +58 -0
- package/dist/__tests__/simulate/server-simulate.integration.test.js.map +1 -0
- package/dist/__tests__/smoke/production.smoke.test.js +9 -2
- package/dist/__tests__/smoke/production.smoke.test.js.map +1 -1
- package/dist/commands/bundle/bundler.d.ts +18 -0
- package/dist/commands/bundle/bundler.d.ts.map +1 -1
- package/dist/commands/bundle/bundler.js +286 -80
- package/dist/commands/bundle/bundler.js.map +1 -1
- package/dist/commands/bundle/index.d.ts +16 -10
- package/dist/commands/bundle/index.d.ts.map +1 -1
- package/dist/commands/bundle/index.js +44 -32
- package/dist/commands/bundle/index.js.map +1 -1
- package/dist/commands/bundle/package-manager.d.ts +2 -1
- package/dist/commands/bundle/package-manager.d.ts.map +1 -1
- package/dist/commands/bundle/package-manager.js +34 -7
- package/dist/commands/bundle/package-manager.js.map +1 -1
- package/dist/commands/cache.d.ts +3 -0
- package/dist/commands/cache.d.ts.map +1 -0
- package/dist/commands/cache.js +44 -0
- package/dist/commands/cache.js.map +1 -0
- package/dist/commands/push/index.d.ts.map +1 -1
- package/dist/commands/push/index.js +49 -44
- package/dist/commands/push/index.js.map +1 -1
- package/dist/commands/push/types.d.ts +1 -1
- package/dist/commands/push/types.d.ts.map +1 -1
- package/dist/commands/run/__tests__/run.integration.test.js +14 -15
- package/dist/commands/run/__tests__/run.integration.test.js.map +1 -1
- package/dist/commands/run/execution.d.ts.map +1 -1
- package/dist/commands/run/execution.js +6 -2
- package/dist/commands/run/execution.js.map +1 -1
- package/dist/commands/run/utils.d.ts +4 -1
- package/dist/commands/run/utils.d.ts.map +1 -1
- package/dist/commands/run/utils.js +18 -24
- package/dist/commands/run/utils.js.map +1 -1
- package/dist/commands/run/validators.d.ts +9 -5
- package/dist/commands/run/validators.d.ts.map +1 -1
- package/dist/commands/run/validators.js +14 -11
- package/dist/commands/run/validators.js.map +1 -1
- package/dist/commands/simulate/index.d.ts +1 -0
- package/dist/commands/simulate/index.d.ts.map +1 -1
- package/dist/commands/simulate/index.js +1 -0
- package/dist/commands/simulate/index.js.map +1 -1
- package/dist/commands/simulate/node-executor.d.ts +28 -0
- package/dist/commands/simulate/node-executor.d.ts.map +1 -0
- package/dist/commands/simulate/node-executor.js +94 -0
- package/dist/commands/simulate/node-executor.js.map +1 -0
- package/dist/commands/simulate/simulator.d.ts.map +1 -1
- package/dist/commands/simulate/simulator.js +36 -32
- package/dist/commands/simulate/simulator.js.map +1 -1
- package/dist/config/build-defaults.d.ts +49 -0
- package/dist/config/build-defaults.d.ts.map +1 -0
- package/dist/config/build-defaults.js +70 -0
- package/dist/config/build-defaults.js.map +1 -0
- package/dist/config/index.d.ts +6 -7
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -7
- package/dist/config/index.js.map +1 -1
- package/dist/config/loader.d.ts +34 -27
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/loader.js +107 -92
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators.d.ts +34 -8
- package/dist/config/validators.d.ts.map +1 -1
- package/dist/config/validators.js +59 -21
- package/dist/config/validators.js.map +1 -1
- package/dist/core/asset-resolver.d.ts +9 -16
- package/dist/core/asset-resolver.d.ts.map +1 -1
- package/dist/core/asset-resolver.js +30 -41
- package/dist/core/asset-resolver.js.map +1 -1
- package/dist/core/build-cache.d.ts +23 -0
- package/dist/core/build-cache.d.ts.map +1 -0
- package/dist/core/build-cache.js +43 -0
- package/dist/core/build-cache.js.map +1 -0
- package/dist/core/cache-utils.d.ts +27 -0
- package/dist/core/cache-utils.d.ts.map +1 -0
- package/dist/core/cache-utils.js +60 -0
- package/dist/core/cache-utils.js.map +1 -0
- package/dist/core/docker.d.ts.map +1 -1
- package/dist/core/docker.js +14 -27
- package/dist/core/docker.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/local-packages.d.ts +19 -0
- package/dist/core/local-packages.d.ts.map +1 -0
- package/dist/core/local-packages.js +60 -0
- package/dist/core/local-packages.js.map +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/0d/2d/7581c288670eaf8538ddd9df145b78756ce3be0791c6e0b9cd33429b3bae894525b9bda287a3cedffbcdd2c7b3107bafc03f2b0367eea489eee1cc042abb +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/12/20/bc4f5acca143809f7e07da1fdafb38137d93243de4d5b403e6e10b92d0d3a6e51eab24fe9dbc9d3ed1cd72e8f7a406085e99c422bb2c7d1166cf9f1f564e +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/22/ee/fb2695b01871c1d36946bdcfb49f1b520a57200d0a0b221b1e7d5f047ab38a8b2ab0e5f0e25a00acde1f3f2f9d24430a18f1092d438bc1a9e9891cc45f75 +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/24/89/da1ce6a61bca6de7e132f241a675c01c83738bf6b78af25b5cce01d3030361332b3fe938571e2b721f1555da9ddf930fdcf8c02f0471556071590e68cc09 +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/47/fd/c6be997da99228c3e279b95d4a46d6913947078a178f54ac71795a159f3513b1483232f4c2d0a1f403178bf9f96bb19615de32a9e2133e949880c6bc15e2 +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/4b/1c/c1cb7f8b32102071a89fef97158daa32080ebaedfbbd596880d2213d84e305abc76d2a95a412ded55c1c3d487adcb1ceff87fc2c85d7e2856ebd9d3f16f3 +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/6e/53/ff864769671f44f39d8a3bf904cd646535b745cc4824a8bb3189193b474678049f43b5178ba15cad7f0289046105e70f1565afc84e907120b35a466690fd +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/70/4c/4c8837d446965c5551b4ea527e95fa011744fb727581d82cf35bb5599ea0b57d18baa490f7af93ef9a16e8e45e5c0802737da20575f4056a4a5c9a3cd288 +0 -0
- package/dist/examples/.npm-cache/content-v2/sha512/96/ad/05de3bbb12d7de8ea353f962bdaea7d2eb44f707f2973462a6635daf537c67b46cca7764fed7d464fe62152c3f783a07aba1ceb35e09ad446bff05a4b466 +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/b5/20/52dde94e6cef7170f6089c64a4843e57be18be450d956f4e455905aed047ae6a368451c93035e6ac3ee59576b600f03f815afba0836b3a16e10a9aaca4ba +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/c7/a9/d166a1c39f97df312c59261319ba1cf9aac178bda0a0cb697d5ddd78bd8dd38ef1bf40017bcc8633c2049896c2d70696d9bff9280851f270792ff38bb3a0 +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/e0/d0/8c14083b633e6adbd3c6a93da5fc0f6bbd456c5512ef276920bedd8d85d551052adff992de977aff326616a211aaa2d6ddcc801149e9b7f914f566359b6a +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/e7/c5/06ad3fd79ac4f1031fe0b16ea5e54e232ca397bbcd7592c679021cbfb027276099f8c848f3f7a7691f0102ad53aa64f9141e61d729b037a678bd60440d17 +1 -0
- package/dist/examples/.npm-cache/content-v2/sha512/f3/28/d5d32329604ed7d471a4949105daa2cc98858cf24f45b0b97c41d0eb0d5a9fe7bf1f69c792161cc6693e4fc1b52e886ac41875ebfb8fe47fafe417ca3e6e +0 -0
- package/dist/examples/.npm-cache/index-v5/04/5a/2b5d7a7c407d85d746baa0f5c9388a333e35a717a8a0a81943daa6cb1364 +3 -0
- package/dist/examples/.npm-cache/index-v5/12/9a/eba560cbace295d8ee04cf283015377bd77b379e70968fb6bc407c7fc410 +15 -0
- package/dist/examples/.npm-cache/index-v5/2f/a2/7b047564b0ee21ac835ec609e89153dd6549be554d098584d5bfd19fe043 +15 -0
- package/dist/examples/.npm-cache/index-v5/32/8e/322d58dd8d1e000be248ada51385bf96288e56039de9feec1a4c6a467653 +3 -0
- package/dist/examples/.npm-cache/index-v5/57/93/d1d7cd1402e3e26468db03f2870822bb2c9018a506cdfb3b405f38cd3e1c +3 -0
- package/dist/examples/.npm-cache/index-v5/5d/f8/0a1f4fa7149e4ff33e09eb6aea41ac8d1730c868a5d3ace91f762698acff +3 -0
- package/dist/examples/.npm-cache/index-v5/69/a4/a92c72d838259b051cdf8e0acfb2bc680b6d4cfc642314a7836c3f7b2c50 +15 -0
- package/dist/examples/.npm-cache/index-v5/71/31/6da3423bb203f3de5eb16c942431073f89be2cfcb40058ec91dcb5ce0abc +15 -0
- package/dist/examples/.npm-cache/index-v5/7b/94/72b6bffa050d9ef52a558dd220663695bc606f756be0dfa196ef4f3913ba +3 -0
- package/dist/examples/.npm-cache/index-v5/85/9e/99e97fdd562517e56285337db91d1a8f2f416b8d631cf4d7d754fa671299 +15 -0
- package/dist/examples/.npm-cache/index-v5/92/4c/9416ada81a9b3c679539fd1ab53f8de3d41ff268f35eba7a194389a85b06 +3 -0
- package/dist/examples/.npm-cache/index-v5/c1/5a/13df76b218deed8a6ef12961116af5183db98c53fad1b922fd9edc075247 +3 -0
- package/dist/examples/.npm-cache/index-v5/cb/11/253c55410a8ab7c4a9ea9d6e1bf8ef1450a581da64c478074dfd82c8bff6 +3 -0
- package/dist/examples/.npm-cache/index-v5/d5/ae/b57fad3a62b5ba2dbdf24b042a9e7b70820f3db00e5a630f02e1fea020dc +3 -0
- package/dist/examples/.npm-cache/index-v5/d6/32/2f620f83c7d14451de98de8298c2408e05a16cc0829bd16c891ac19d7a67 +3 -0
- package/dist/examples/.npm-cache/index-v5/dd/b5/01dc7a3cd8b6a03a69aee9af500d51ae19cb0aa12631a4aafd152148b8e5 +15 -0
- package/dist/examples/.npm-cache/index-v5/e0/cf/6b862c15d74630d3871cd813d305210ab741311deb10baf8813014e0bc30 +3 -0
- package/dist/examples/.npm-cache/index-v5/e2/be/e880ccd35950a814d3c1dded34d3938ac61b15a195321dc51357f801aad4 +15 -0
- package/dist/examples/.npm-cache/index-v5/e5/1f/f4affe0b392cd03288f23cc03abcb274ff11a2c8f8965299de681914abb2 +3 -0
- package/dist/examples/.npm-cache/index-v5/f3/5b/9ebe450958ff0d7cc44ab0a00080cb8a3ff1389744b5eab5f97b68a6a6af +3 -0
- package/dist/examples/.npm-cache/index-v5/fb/c1/0de405e902866d53e7c30cf36a97dc2578838622b261816f44dc377c9a80 +3 -0
- package/dist/examples/README.md +355 -0
- package/dist/examples/event.json +53 -0
- package/dist/examples/flow-order-complete.json +67 -0
- package/dist/examples/flow-simple.json +31 -0
- package/dist/examples/flow.json +82 -0
- package/dist/examples/server-collect.json +60 -0
- package/dist/examples/server-collect.mjs +13540 -0
- package/dist/examples/test.html +43 -0
- package/dist/examples/web-serve.js +25503 -0
- package/dist/examples/web-serve.json +74 -0
- package/dist/index.d.ts +80 -310
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +924 -736
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +9 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +9 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/primitives.d.ts +37 -0
- package/dist/schemas/primitives.d.ts.map +1 -0
- package/dist/schemas/primitives.js +43 -0
- package/dist/schemas/primitives.js.map +1 -0
- package/dist/schemas/run.d.ts +23 -0
- package/dist/schemas/run.d.ts.map +1 -0
- package/dist/schemas/run.js +20 -0
- package/dist/schemas/run.js.map +1 -0
- package/dist/types/bundle.d.ts +64 -191
- package/dist/types/bundle.d.ts.map +1 -1
- package/dist/types/bundle.js +2 -2
- package/dist/walker.js +1 -0
- package/examples/README.md +55 -30
- package/examples/flow-order-complete.json +56 -57
- package/examples/flow-simple.json +24 -25
- package/examples/flow.json +69 -69
- package/examples/server-collect.json +51 -44
- package/examples/server-collect.mjs +1 -1
- package/examples/web-serve.json +62 -63
- package/package.json +2 -4
- package/dist/__tests__/bundle/serializer.test.d.ts +0 -2
- package/dist/__tests__/bundle/serializer.test.d.ts.map +0 -1
- package/dist/__tests__/bundle/serializer.test.js +0 -173
- package/dist/__tests__/bundle/serializer.test.js.map +0 -1
- package/dist/__tests__/bundle/template-engine.test.d.ts +0 -2
- package/dist/__tests__/bundle/template-engine.test.d.ts.map +0 -1
- package/dist/__tests__/bundle/template-engine.test.js +0 -107
- package/dist/__tests__/bundle/template-engine.test.js.map +0 -1
- package/dist/commands/bundle/serializer.d.ts +0 -23
- package/dist/commands/bundle/serializer.d.ts.map +0 -1
- package/dist/commands/bundle/serializer.js +0 -127
- package/dist/commands/bundle/serializer.js.map +0 -1
- package/dist/commands/bundle/template-engine.d.ts +0 -20
- package/dist/commands/bundle/template-engine.d.ts.map +0 -1
- package/dist/commands/bundle/template-engine.js +0 -54
- package/dist/commands/bundle/template-engine.js.map +0 -1
- package/dist/config/defaults.d.ts +0 -33
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js +0 -69
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/parser.d.ts +0 -128
- package/dist/config/parser.d.ts.map +0 -1
- package/dist/config/parser.js +0 -256
- package/dist/config/parser.js.map +0 -1
- package/dist/types/template.d.ts +0 -108
- package/dist/types/template.d.ts.map +0 -1
- package/dist/types/template.js +0 -10
- package/dist/types/template.js.map +0 -1
- package/templates/server.hbs +0 -29
- package/templates/web.hbs +0 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @walkeros/cli
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- just flow
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @walkeros/core@0.5.0
|
|
13
|
+
- @walkeros/docker@0.3.0
|
|
14
|
+
- @walkeros/server-core@0.5.0
|
|
15
|
+
|
|
16
|
+
## 0.4.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- simulate server and local packages
|
|
21
|
+
- cli cache
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @walkeros/core@0.4.2
|
|
26
|
+
- @walkeros/docker@0.2.2
|
|
27
|
+
- @walkeros/server-core@0.4.2
|
|
28
|
+
|
|
3
29
|
## 0.4.1
|
|
4
30
|
|
|
5
31
|
### 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
|
|
@@ -43,8 +59,8 @@ walkeros bundle https://example.com/config.json # Remote URL
|
|
|
43
59
|
|
|
44
60
|
**Options:**
|
|
45
61
|
|
|
46
|
-
- `-
|
|
47
|
-
- `--all` - Build all
|
|
62
|
+
- `-f, --flow <name>` - Build specific flow (multi-flow configs)
|
|
63
|
+
- `--all` - Build all flows
|
|
48
64
|
- `-s, --stats` - Show bundle statistics
|
|
49
65
|
- `--json` - Output stats as JSON
|
|
50
66
|
- `--no-cache` - Disable package caching
|
|
@@ -58,7 +74,8 @@ walkeros bundle https://example.com/config.json # Remote URL
|
|
|
58
74
|
walkeros bundle examples/server-collect.json --stats
|
|
59
75
|
```
|
|
60
76
|
|
|
61
|
-
The output path
|
|
77
|
+
The output path uses convention-based defaults: `./dist/bundle.mjs` for server,
|
|
78
|
+
`./dist/walker.js` for web.
|
|
62
79
|
|
|
63
80
|
### simulate
|
|
64
81
|
|
|
@@ -85,6 +102,49 @@ walkeros simulate \
|
|
|
85
102
|
--json
|
|
86
103
|
```
|
|
87
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
|
+
|
|
88
148
|
### run
|
|
89
149
|
|
|
90
150
|
Run flows locally using @walkeros/docker as a library (no Docker daemon
|
|
@@ -128,61 +188,200 @@ walkeros run serve flow.json --port 8080 --static-dir ./dist
|
|
|
128
188
|
3. Runs in current Node.js process (no containers)
|
|
129
189
|
4. Press Ctrl+C for graceful shutdown
|
|
130
190
|
|
|
191
|
+
## Caching
|
|
192
|
+
|
|
193
|
+
The CLI implements intelligent caching for faster builds:
|
|
194
|
+
|
|
195
|
+
### Package Cache
|
|
196
|
+
|
|
197
|
+
- NPM packages are cached in `.tmp/cache/packages/`
|
|
198
|
+
- Mutable versions (`latest`, `^`, `~`) are re-checked daily
|
|
199
|
+
- Exact versions (`0.4.1`) are cached indefinitely
|
|
200
|
+
|
|
201
|
+
### Build Cache
|
|
202
|
+
|
|
203
|
+
- Compiled bundles are cached in `.tmp/cache/builds/`
|
|
204
|
+
- Cache key based on flow.json content + current date
|
|
205
|
+
- Identical configs reuse cached build within the same day
|
|
206
|
+
|
|
207
|
+
### Cache Management
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# View cache info
|
|
211
|
+
walkeros cache info
|
|
212
|
+
|
|
213
|
+
# Clear all caches
|
|
214
|
+
walkeros cache clear
|
|
215
|
+
|
|
216
|
+
# Clear only package cache
|
|
217
|
+
walkeros cache clear --packages
|
|
218
|
+
|
|
219
|
+
# Clear only build cache
|
|
220
|
+
walkeros cache clear --builds
|
|
221
|
+
|
|
222
|
+
# Disable caching for a single build
|
|
223
|
+
walkeros bundle flow.json --no-cache
|
|
224
|
+
```
|
|
225
|
+
|
|
131
226
|
## Flow Configuration
|
|
132
227
|
|
|
133
|
-
|
|
228
|
+
Flow configs use the `Flow.Setup` format with `version` and `flows`:
|
|
134
229
|
|
|
135
230
|
```json
|
|
136
231
|
{
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
232
|
+
"version": 1,
|
|
233
|
+
"flows": {
|
|
234
|
+
"default": {
|
|
235
|
+
"server": {},
|
|
236
|
+
"packages": {
|
|
237
|
+
"@walkeros/collector": { "imports": ["startFlow"] },
|
|
238
|
+
"@walkeros/server-source-express": {},
|
|
239
|
+
"@walkeros/destination-demo": {}
|
|
240
|
+
},
|
|
241
|
+
"sources": {
|
|
242
|
+
"http": {
|
|
243
|
+
"package": "@walkeros/server-source-express",
|
|
244
|
+
"config": {
|
|
245
|
+
"settings": { "path": "/collect", "port": 8080 }
|
|
146
246
|
}
|
|
147
247
|
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"settings": {
|
|
155
|
-
"name": "Demo"
|
|
248
|
+
},
|
|
249
|
+
"destinations": {
|
|
250
|
+
"demo": {
|
|
251
|
+
"package": "@walkeros/destination-demo",
|
|
252
|
+
"config": {
|
|
253
|
+
"settings": { "name": "Demo" }
|
|
156
254
|
}
|
|
157
255
|
}
|
|
158
|
-
}
|
|
256
|
+
},
|
|
257
|
+
"collector": { "run": true }
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Platform is determined by the `web: {}` or `server: {}` key presence.
|
|
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"
|
|
159
298
|
},
|
|
160
|
-
"
|
|
161
|
-
"
|
|
299
|
+
"analytics": {
|
|
300
|
+
"package": "@walkeros/server-destination-gcp",
|
|
301
|
+
"code": "destinationAnalytics"
|
|
162
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"] }
|
|
163
316
|
},
|
|
164
|
-
"
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
+
|
|
335
|
+
### Local Packages
|
|
336
|
+
|
|
337
|
+
Use local packages instead of npm for development or testing unpublished
|
|
338
|
+
packages:
|
|
339
|
+
|
|
340
|
+
```json
|
|
341
|
+
{
|
|
342
|
+
"packages": {
|
|
343
|
+
"@walkeros/collector": {
|
|
344
|
+
"path": "../packages/collector",
|
|
345
|
+
"imports": ["startFlow"]
|
|
178
346
|
},
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
347
|
+
"@my/custom-destination": {
|
|
348
|
+
"path": "./my-destination",
|
|
349
|
+
"imports": ["myDestination"]
|
|
350
|
+
}
|
|
182
351
|
}
|
|
183
352
|
}
|
|
184
353
|
```
|
|
185
354
|
|
|
355
|
+
**Resolution rules:**
|
|
356
|
+
|
|
357
|
+
- `path` takes precedence over `version`
|
|
358
|
+
- Relative paths are resolved from the config file's directory
|
|
359
|
+
- If `dist/` folder exists, it's used; otherwise package root is used
|
|
360
|
+
|
|
361
|
+
**Dependency resolution:**
|
|
362
|
+
|
|
363
|
+
When a local package has dependencies on other packages that are also specified
|
|
364
|
+
with local paths, the CLI will use the local versions for those dependencies
|
|
365
|
+
too. This prevents npm versions from overwriting your local packages.
|
|
366
|
+
|
|
367
|
+
```json
|
|
368
|
+
{
|
|
369
|
+
"packages": {
|
|
370
|
+
"@walkeros/core": {
|
|
371
|
+
"path": "../packages/core",
|
|
372
|
+
"imports": []
|
|
373
|
+
},
|
|
374
|
+
"@walkeros/collector": {
|
|
375
|
+
"path": "../packages/collector",
|
|
376
|
+
"imports": ["startFlow"]
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
In this example, even though `@walkeros/collector` depends on `@walkeros/core`,
|
|
383
|
+
the local version of core will be used (not downloaded from npm).
|
|
384
|
+
|
|
186
385
|
See [examples/](./examples/) for complete working configurations.
|
|
187
386
|
|
|
188
387
|
## Programmatic API
|
|
@@ -294,13 +493,15 @@ walkeros bundle config.json
|
|
|
294
493
|
- **Node.js**: 18+ or 22+
|
|
295
494
|
- **Docker**: Not required for CLI (only for production deployment)
|
|
296
495
|
|
|
297
|
-
##
|
|
496
|
+
## Type Definitions
|
|
497
|
+
|
|
498
|
+
See [src/types.ts](./src/types.ts) for TypeScript interfaces.
|
|
298
499
|
|
|
299
|
-
|
|
500
|
+
## Related
|
|
300
501
|
|
|
301
|
-
- [
|
|
302
|
-
- [
|
|
303
|
-
- [
|
|
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
|
|
304
505
|
|
|
305
506
|
## License
|
|
306
507
|
|
|
@@ -110,139 +110,6 @@ describe('Bundler Helper Functions', () => {
|
|
|
110
110
|
expect(packages).toBeDefined();
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
-
describe('processTemplate', () => {
|
|
114
|
-
it('should return code directly when no template', async () => {
|
|
115
|
-
const flowConfig = {};
|
|
116
|
-
const buildOptions = {
|
|
117
|
-
code: 'console.log("test");',
|
|
118
|
-
template: undefined,
|
|
119
|
-
};
|
|
120
|
-
// Expected: returns code as-is
|
|
121
|
-
expect(buildOptions.template).toBeUndefined();
|
|
122
|
-
expect(buildOptions.code).toBe('console.log("test");');
|
|
123
|
-
});
|
|
124
|
-
it('should process template when configured', async () => {
|
|
125
|
-
const flowConfig = {
|
|
126
|
-
sources: {},
|
|
127
|
-
destinations: {},
|
|
128
|
-
collector: {},
|
|
129
|
-
};
|
|
130
|
-
const buildOptions = {
|
|
131
|
-
code: 'custom code',
|
|
132
|
-
template: 'flow-template',
|
|
133
|
-
};
|
|
134
|
-
// Expected: calls TemplateEngine.process with all parameters
|
|
135
|
-
expect(buildOptions.template).toBe('flow-template');
|
|
136
|
-
});
|
|
137
|
-
it('should handle empty code', async () => {
|
|
138
|
-
const flowConfig = {};
|
|
139
|
-
const buildOptions = {
|
|
140
|
-
code: undefined,
|
|
141
|
-
template: undefined,
|
|
142
|
-
};
|
|
143
|
-
// Expected: returns empty string
|
|
144
|
-
expect(buildOptions.code).toBeUndefined();
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
describe('wrapCodeForFormat', () => {
|
|
148
|
-
it('should not wrap code when template is used', () => {
|
|
149
|
-
const code = 'const flow = startFlow();';
|
|
150
|
-
const format = 'esm';
|
|
151
|
-
const hasTemplate = true;
|
|
152
|
-
// Expected: returns code as-is
|
|
153
|
-
expect(hasTemplate).toBe(true);
|
|
154
|
-
});
|
|
155
|
-
it('should wrap ESM code without exports', () => {
|
|
156
|
-
const code = 'const flow = startFlow();';
|
|
157
|
-
const format = 'esm';
|
|
158
|
-
const hasTemplate = false;
|
|
159
|
-
// Expected: export default const flow = startFlow();
|
|
160
|
-
expect(format).toBe('esm');
|
|
161
|
-
expect(hasTemplate).toBe(false);
|
|
162
|
-
expect(code).not.toMatch(/^\s*export\s/m);
|
|
163
|
-
});
|
|
164
|
-
it('should not wrap ESM code that already has exports', () => {
|
|
165
|
-
const code = 'export const flow = startFlow();';
|
|
166
|
-
const format = 'esm';
|
|
167
|
-
const hasTemplate = false;
|
|
168
|
-
// Expected: returns code as-is (already has export)
|
|
169
|
-
expect(code).toMatch(/^\s*export\s/m);
|
|
170
|
-
});
|
|
171
|
-
it('should not wrap non-ESM formats', () => {
|
|
172
|
-
const code = 'const flow = startFlow();';
|
|
173
|
-
const format = 'cjs';
|
|
174
|
-
const hasTemplate = false;
|
|
175
|
-
// Expected: returns code as-is
|
|
176
|
-
expect(format).toBe('cjs');
|
|
177
|
-
});
|
|
178
|
-
it('should not wrap IIFE format', () => {
|
|
179
|
-
const code = 'const flow = startFlow();';
|
|
180
|
-
const format = 'iife';
|
|
181
|
-
const hasTemplate = false;
|
|
182
|
-
// Expected: returns code as-is
|
|
183
|
-
expect(format).toBe('iife');
|
|
184
|
-
});
|
|
185
|
-
});
|
|
186
|
-
describe('assembleFinalCode', () => {
|
|
187
|
-
it('should combine imports, examples, and code', () => {
|
|
188
|
-
const importStatements = [
|
|
189
|
-
"import { getId } from '@walkeros/core';",
|
|
190
|
-
"import { startFlow } from '@walkeros/collector';",
|
|
191
|
-
];
|
|
192
|
-
const examplesObject = 'const examples = {\n gtag: gtag_examples\n};\n\n';
|
|
193
|
-
const wrappedCode = 'export default startFlow();';
|
|
194
|
-
const format = 'esm';
|
|
195
|
-
// Expected: imports + examples + code
|
|
196
|
-
expect(importStatements).toHaveLength(2);
|
|
197
|
-
expect(examplesObject).toContain('const examples');
|
|
198
|
-
expect(wrappedCode).toContain('export default');
|
|
199
|
-
});
|
|
200
|
-
it('should handle empty imports', () => {
|
|
201
|
-
const importStatements = [];
|
|
202
|
-
const examplesObject = '';
|
|
203
|
-
const wrappedCode = 'export default startFlow();';
|
|
204
|
-
const format = 'esm';
|
|
205
|
-
// Expected: just the code
|
|
206
|
-
expect(importStatements).toHaveLength(0);
|
|
207
|
-
});
|
|
208
|
-
it('should add examples export for ESM with examples', () => {
|
|
209
|
-
const importStatements = ["import { getId } from '@walkeros/core';"];
|
|
210
|
-
const examplesObject = 'const examples = {\n gtag: gtag_examples\n};\n\n';
|
|
211
|
-
const wrappedCode = 'export default startFlow();';
|
|
212
|
-
const format = 'esm';
|
|
213
|
-
// Expected to include: export { examples };
|
|
214
|
-
expect(format).toBe('esm');
|
|
215
|
-
expect(examplesObject).toContain('const examples');
|
|
216
|
-
});
|
|
217
|
-
it('should not add examples export for non-ESM formats', () => {
|
|
218
|
-
const importStatements = ["import { getId } from '@walkeros/core';"];
|
|
219
|
-
const examplesObject = 'const examples = {\n gtag: gtag_examples\n};\n\n';
|
|
220
|
-
const wrappedCode = 'startFlow();';
|
|
221
|
-
const format = 'cjs';
|
|
222
|
-
// Should not include: export { examples };
|
|
223
|
-
expect(format).not.toBe('esm');
|
|
224
|
-
});
|
|
225
|
-
it('should not add examples export when no examples', () => {
|
|
226
|
-
const importStatements = ["import { getId } from '@walkeros/core';"];
|
|
227
|
-
const examplesObject = '';
|
|
228
|
-
const wrappedCode = 'export default startFlow();';
|
|
229
|
-
const format = 'esm';
|
|
230
|
-
// Should not include: export { examples };
|
|
231
|
-
expect(examplesObject).toBe('');
|
|
232
|
-
});
|
|
233
|
-
it('should handle multiple import statements', () => {
|
|
234
|
-
const importStatements = [
|
|
235
|
-
"import walkerCore from '@walkeros/core';",
|
|
236
|
-
"import { getId, trim } from '@walkeros/core';",
|
|
237
|
-
"import { startFlow } from '@walkeros/collector';",
|
|
238
|
-
];
|
|
239
|
-
const examplesObject = '';
|
|
240
|
-
const wrappedCode = 'export default startFlow();';
|
|
241
|
-
const format = 'esm';
|
|
242
|
-
// Expected: all imports joined with newlines
|
|
243
|
-
expect(importStatements).toHaveLength(3);
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
113
|
describe('Integration: createEntryPoint refactored behavior', () => {
|
|
247
114
|
it('should maintain backward compatibility with original implementation', () => {
|
|
248
115
|
// This test documents that the refactored version should produce
|
|
@@ -265,7 +132,6 @@ describe('Bundler Helper Functions', () => {
|
|
|
265
132
|
},
|
|
266
133
|
},
|
|
267
134
|
code: 'export const flow = startFlow();',
|
|
268
|
-
template: undefined,
|
|
269
135
|
format: 'esm',
|
|
270
136
|
platform: 'browser',
|
|
271
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler-helpers.test.js","sourceRoot":"","sources":["../../../src/__tests__/bundle/bundler-helpers.test.ts"],"names":[],"mappings":"AAGA,+DAA+D;AAC/D,6EAA6E;AAC7E,gDAAgD;AAChD,oEAAoE;AAEpE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACzC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;YACxE,MAAM,UAAU,GAAgB;gBAC9B,YAAY,EAAE;oBACZ,IAAI,EAAE;wBACJ,OAAO,EAAE,gCAAgC;wBACzC,MAAM,EAAE,EAAE;qBACX;oBACD,GAAG,EAAE;wB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6B;gBACzC,gBAAgB,EAAE;oBAChB,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC;iBACpC;aACF,CAAC;YAEF,uEAAuE;YACvE,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;QACjC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"bundler-helpers.test.js","sourceRoot":"","sources":["../../../src/__tests__/bundle/bundler-helpers.test.ts"],"names":[],"mappings":"AAGA,+DAA+D;AAC/D,6EAA6E;AAC7E,gDAAgD;AAChD,oEAAoE;AAEpE,QAAQ,CAAC,0BAA0B,EAAE,GAAG,EAAE;IACxC,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACzC,EAAE,CAAC,gEAAgE,EAAE,GAAG,EAAE;YACxE,MAAM,UAAU,GAAgB;gBAC9B,YAAY,EAAE;oBACZ,IAAI,EAAE;wBACJ,OAAO,EAAE,gCAAgC;wBACzC,MAAM,EAAE,EAAE;qBACX;oBACD,GAAG,EAAE;wBACH,OAAO,EAAE,+BAA+B;wBACxC,MAAM,EAAE,EAAE;qBACX;iBACF;aACwB,CAAC;YAE5B,qDAAqD;YACrD,0DAA0D;YAC1D,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;YACxD,MAAM,UAAU,GAAgB;gBAC9B,YAAY,EAAE;oBACZ,MAAM,EAAE;wBACN,mBAAmB;wBACnB,MAAM,EAAE,EAAE;qBACX;iBACF;aACwB,CAAC;YAE5B,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,kCAAkC,EAAE,GAAG,EAAE;YAC1C,MAAM,UAAU,GAAgB,EAAiB,CAAC;YACl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