@walkeros/cli 4.0.0 → 4.0.1-next-1778068549946
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 +50 -0
- package/README.md +68 -9
- package/dist/cli.js +1155 -979
- package/dist/examples/README.md +3 -3
- package/dist/examples/flow-complete.json +4 -6
- package/dist/examples/flow-complete.md +8 -10
- package/dist/examples/index.js +4 -6
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +6 -21
- package/dist/index.js +69 -27
- package/dist/index.js.map +1 -1
- package/examples/README.md +3 -3
- package/examples/flow-complete.json +4 -6
- package/examples/flow-complete.md +8 -10
- package/package.json +7 -7
package/examples/README.md
CHANGED
|
@@ -46,9 +46,9 @@ devcontainer.
|
|
|
46
46
|
**Purpose**: Complete reference demonstrating ALL JSON-compatible walkerOS
|
|
47
47
|
features
|
|
48
48
|
|
|
49
|
-
**Features**: 51 features including variables,
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
**Features**: 51 features including variables, mapping (key, map, loop, set),
|
|
50
|
+
transformers (validator, fingerprint), consent gating, wildcards, ingest
|
|
51
|
+
metadata, and more.
|
|
52
52
|
|
|
53
53
|
**Architecture**: Two named flows (`web` and `server`) showing full event
|
|
54
54
|
pipeline from browser to server-side forwarding.
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
"currency": "EUR",
|
|
6
6
|
"flowVersion": "1.0.0",
|
|
7
7
|
"ga4MeasurementId": "$env.GA4_MEASUREMENT_ID:G-DEMO123456",
|
|
8
|
-
"apiUrl": "$env.API_URL:http://localhost:8080/collect"
|
|
9
|
-
},
|
|
10
|
-
"definitions": {
|
|
8
|
+
"apiUrl": "$env.API_URL:http://localhost:8080/collect",
|
|
11
9
|
"ga4ItemsLoop": {
|
|
12
10
|
"loop": [
|
|
13
11
|
"nested",
|
|
@@ -394,7 +392,7 @@
|
|
|
394
392
|
},
|
|
395
393
|
"tax": "data.tax",
|
|
396
394
|
"shipping": "data.shipping",
|
|
397
|
-
"items": "$
|
|
395
|
+
"items": "$var.ga4ItemsLoop"
|
|
398
396
|
}
|
|
399
397
|
}
|
|
400
398
|
}
|
|
@@ -534,7 +532,7 @@
|
|
|
534
532
|
"marketing": true
|
|
535
533
|
}
|
|
536
534
|
},
|
|
537
|
-
"items": "$
|
|
535
|
+
"items": "$var.ga4ItemsLoop"
|
|
538
536
|
}
|
|
539
537
|
}
|
|
540
538
|
}
|
|
@@ -849,7 +847,7 @@
|
|
|
849
847
|
"value": "$var.currency"
|
|
850
848
|
},
|
|
851
849
|
"order_id": "data.id",
|
|
852
|
-
"contents": "$
|
|
850
|
+
"contents": "$var.metaContentsLoop"
|
|
853
851
|
}
|
|
854
852
|
}
|
|
855
853
|
}
|
|
@@ -109,7 +109,7 @@ npx walkeros run packages/cli/examples/flow-complete.json --flow web
|
|
|
109
109
|
| Wildcard action (\*) | GA4 test, Meta | `"test": { "*": { "ignore": true } }` |
|
|
110
110
|
| Wildcard entity (\*) | Meta click handler | `"*": { "click": { "name": "CustomEvent" } }` |
|
|
111
111
|
|
|
112
|
-
####
|
|
112
|
+
#### Variables
|
|
113
113
|
|
|
114
114
|
| Feature | Location | Example |
|
|
115
115
|
| -------------------- | ------------------ | ---------------------------------------------- |
|
|
@@ -118,8 +118,6 @@ npx walkeros run packages/cli/examples/flow-complete.json --flow web
|
|
|
118
118
|
| Environment variable | Variables | `"$env.GA4_MEASUREMENT_ID:G-DEMO123456"` |
|
|
119
119
|
| Env with default | Variables | `"$env.API_URL:http://localhost:8080/collect"` |
|
|
120
120
|
| $var reference | GA4 settings | `"$var.ga4MeasurementId"` |
|
|
121
|
-
| Definition (complex) | Root definitions | `"ga4ItemsLoop": { "loop": [...] }` |
|
|
122
|
-
| $def reference | GA4 purchase items | `"$def.ga4ItemsLoop"` |
|
|
123
121
|
| $contract reference | serverValidator | `"$contract.default.events"` |
|
|
124
122
|
| $store reference | filter transformer | `"env": { "store": "$store.cache" }` |
|
|
125
123
|
|
|
@@ -205,13 +203,13 @@ npx walkeros run packages/cli/examples/flow-complete.json --flow web
|
|
|
205
203
|
These features are now fully supported in JSON via `$code:` prefix (and ARE used
|
|
206
204
|
in this example):
|
|
207
205
|
|
|
208
|
-
| Feature | Status
|
|
209
|
-
| --------------------------- |
|
|
210
|
-
| `fn:` function | ✅ Used via `$code:` in GA4 value
|
|
211
|
-
| `condition:` | ✅ Used via `$code:` in
|
|
212
|
-
| Conditional mapping (array) | ✅ Used in serverValidator
|
|
213
|
-
| Custom transformer code | ✅ Used in enricher, filter
|
|
214
|
-
| Custom destination code | ✅ Used in debug logger
|
|
206
|
+
| Feature | Status |
|
|
207
|
+
| --------------------------- | --------------------------------- |
|
|
208
|
+
| `fn:` function | ✅ Used via `$code:` in GA4 value |
|
|
209
|
+
| `condition:` | ✅ Used via `$code:` in variables |
|
|
210
|
+
| Conditional mapping (array) | ✅ Used in serverValidator |
|
|
211
|
+
| Custom transformer code | ✅ Used in enricher, filter |
|
|
212
|
+
| Custom destination code | ✅ Used in debug logger |
|
|
215
213
|
|
|
216
214
|
#### Omitted for Clarity (6)
|
|
217
215
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/cli",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1-next-1778068549946",
|
|
4
4
|
"description": "walkerOS CLI - Bundle and deploy walkerOS components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"docker:publish": "bash scripts/publish-docker.sh"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@walkeros/collector": "4.0.
|
|
53
|
-
"@walkeros/core": "4.0.
|
|
54
|
-
"@walkeros/server-core": "4.0.
|
|
55
|
-
"@walkeros/server-destination-api": "4.0.
|
|
52
|
+
"@walkeros/collector": "4.0.1-next-1778068549946",
|
|
53
|
+
"@walkeros/core": "4.0.1-next-1778068549946",
|
|
54
|
+
"@walkeros/server-core": "4.0.1-next-1778068549946",
|
|
55
|
+
"@walkeros/server-destination-api": "4.0.1-next-1778068549946",
|
|
56
56
|
"ajv": "^8.17.1",
|
|
57
57
|
"chalk": "^5.6.2",
|
|
58
58
|
"ci-info": "^4.4.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@types/jsdom": "^21.1.7",
|
|
76
76
|
"@types/pacote": "^11.1.8",
|
|
77
77
|
"@types/semver": "^7.7.1",
|
|
78
|
-
"@walkeros/config": "4.0.
|
|
79
|
-
"@walkeros/core": "4.0.
|
|
78
|
+
"@walkeros/config": "4.0.1-next-1778068549946",
|
|
79
|
+
"@walkeros/core": "4.0.1-next-1778068549946",
|
|
80
80
|
"msw": "^2.12.10",
|
|
81
81
|
"openapi-typescript": "^7.13.0",
|
|
82
82
|
"tsx": "^4.21.0"
|