@walkeros/cli 4.6.1 → 4.7.0-next-1790245733116

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.
@@ -354,6 +354,7 @@ Flow configs use the `Flow.Config` format:
354
354
  - `@walkeros/server-destination-meta` → `destinationMeta` (Meta CAPI)
355
355
  - `@walkeros/server-destination-aws` → `destinationAWS`
356
356
  - `@walkeros/server-destination-gcp` → `destinationGCP`
357
+ - `@walkeros/server-destination-piwikpro` → `destinationPiwikPro`
357
358
 
358
359
  **Universal**:
359
360
 
@@ -376,8 +376,7 @@
376
376
  "map": {
377
377
  "transaction_id": "data.id",
378
378
  "value": {
379
- "key": "data.total",
380
- "fn": "$code:(v) => Math.round(v * 100)"
379
+ "fn": "$code:(event) => Math.round(event.data.total * 100)"
381
380
  },
382
381
  "currency": {
383
382
  "key": "data.currency",
@@ -624,8 +623,7 @@
624
623
  "language": { "key": "headers.accept-language" },
625
624
  "referer": { "key": "headers.referer" },
626
625
  "anonymizedIp": {
627
- "key": "ip",
628
- "fn": "$code:(ip) => ip ? ip.replace(/\\.\\d+$/, '.0') : ''"
626
+ "fn": "$code:(req) => req.ip ? req.ip.replace(/\\.\\d+$/, '.0') : ''"
629
627
  }
630
628
  }
631
629
  }
package/openapi/spec.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "walkerOS Tag Manager API",
5
- "version": "4.6.1",
5
+ "version": "4.7.0",
6
6
  "description": "API for managing walkerOS flows, projects, and real-time event observation.",
7
7
  "contact": {
8
8
  "name": "elbwalker",
@@ -6945,91 +6945,6 @@
6945
6945
  },
6946
6946
  "required": ["name", "scope", "expiresInDays"]
6947
6947
  },
6948
- "BundleResponse": {
6949
- "type": "object",
6950
- "properties": {
6951
- "bundleId": {
6952
- "type": "string"
6953
- },
6954
- "cached": {
6955
- "type": "boolean"
6956
- }
6957
- },
6958
- "required": ["bundleId", "cached"]
6959
- },
6960
- "SimulateResponse": {
6961
- "type": "object",
6962
- "properties": {
6963
- "success": {
6964
- "type": "boolean"
6965
- },
6966
- "result": {
6967
- "type": "object",
6968
- "properties": {
6969
- "step": {
6970
- "type": "string",
6971
- "enum": ["source", "transformer", "destination"]
6972
- },
6973
- "name": {
6974
- "type": "string"
6975
- },
6976
- "events": {
6977
- "type": "array",
6978
- "items": {
6979
- "type": "object",
6980
- "additionalProperties": {}
6981
- }
6982
- },
6983
- "calls": {
6984
- "type": "array",
6985
- "items": {
6986
- "type": "object",
6987
- "properties": {
6988
- "fn": {
6989
- "type": "string"
6990
- },
6991
- "args": {
6992
- "type": "array",
6993
- "items": {}
6994
- },
6995
- "ts": {
6996
- "type": "number"
6997
- }
6998
- },
6999
- "required": ["fn", "args", "ts"]
7000
- }
7001
- },
7002
- "duration": {
7003
- "type": "number"
7004
- }
7005
- },
7006
- "required": ["step", "name", "events", "calls", "duration"]
7007
- }
7008
- },
7009
- "required": ["success"]
7010
- },
7011
- "SimulateRequest": {
7012
- "type": "object",
7013
- "properties": {
7014
- "bundleId": {
7015
- "type": "string",
7016
- "pattern": "^[a-f0-9]{8,64}$"
7017
- },
7018
- "config": {
7019
- "type": "object",
7020
- "additionalProperties": {}
7021
- },
7022
- "event": {
7023
- "type": "object",
7024
- "additionalProperties": {}
7025
- },
7026
- "step": {
7027
- "type": "string",
7028
- "pattern": "^(source|transformer|destination)\\..+$"
7029
- }
7030
- },
7031
- "required": ["bundleId", "config", "event", "step"]
7032
- },
7033
6948
  "RegisterRuntimeRequest": {
7034
6949
  "type": "object",
7035
6950
  "properties": {
@@ -12439,7 +12354,7 @@
12439
12354
  "post": {
12440
12355
  "tags": ["Bundle"],
12441
12356
  "summary": "Bundle flow",
12442
- "description": "Bundle a flow using CLI. Returns bundleId (content-hash). Use ?output=download to redirect to presigned S3 URL.",
12357
+ "description": "Bundle a flow for deploy or download. Requires ?output=download: bearer callers get a 302 to a presigned S3 URL, session callers get the bundle bytes streamed. A POST without output=download returns 400.",
12443
12358
  "parameters": [
12444
12359
  {
12445
12360
  "schema": {
@@ -12476,40 +12391,23 @@
12476
12391
  "schema": {
12477
12392
  "type": "string",
12478
12393
  "enum": ["download"],
12479
- "description": "Set to \"download\" to redirect to the bundle file"
12394
+ "description": "Required. Must be \"download\""
12480
12395
  },
12481
- "required": false,
12482
- "description": "Set to \"download\" to redirect to the bundle file",
12396
+ "required": true,
12397
+ "description": "Required. Must be \"download\"",
12483
12398
  "name": "output",
12484
12399
  "in": "query"
12485
12400
  }
12486
12401
  ],
12487
12402
  "responses": {
12488
12403
  "200": {
12489
- "description": "Bundle result",
12490
- "content": {
12491
- "application/json": {
12492
- "schema": {
12493
- "$ref": "#/components/schemas/BundleResponse"
12494
- }
12495
- }
12496
- }
12404
+ "description": "Bundle file streamed (session callers)"
12497
12405
  },
12498
12406
  "302": {
12499
- "description": "Redirect to presigned bundle URL (when output=download)"
12500
- },
12501
- "401": {
12502
- "description": "Unauthorized",
12503
- "content": {
12504
- "application/json": {
12505
- "schema": {
12506
- "$ref": "#/components/schemas/ErrorResponse"
12507
- }
12508
- }
12509
- }
12407
+ "description": "Redirect to presigned bundle URL (bearer callers)"
12510
12408
  },
12511
- "404": {
12512
- "description": "Not found",
12409
+ "400": {
12410
+ "description": "Validation error",
12513
12411
  "content": {
12514
12412
  "application/json": {
12515
12413
  "schema": {
@@ -12517,56 +12415,6 @@
12517
12415
  }
12518
12416
  }
12519
12417
  }
12520
- }
12521
- }
12522
- }
12523
- },
12524
- "/api/projects/{projectId}/flows/{flowId}/simulate": {
12525
- "post": {
12526
- "tags": ["Simulate"],
12527
- "summary": "Simulate a flow step",
12528
- "description": "Execute a simulation against a pre-built bundle. Requires bundleId from the bundle endpoint.",
12529
- "parameters": [
12530
- {
12531
- "schema": {
12532
- "type": "string",
12533
- "pattern": "^proj_[a-zA-Z0-9_-]+$",
12534
- "example": "proj_x7y8z9"
12535
- },
12536
- "required": true,
12537
- "name": "projectId",
12538
- "in": "path"
12539
- },
12540
- {
12541
- "schema": {
12542
- "type": "string",
12543
- "pattern": "^flow_[a-zA-Z0-9_-]+$",
12544
- "example": "flow_a1b2c3d4"
12545
- },
12546
- "required": true,
12547
- "name": "flowId",
12548
- "in": "path"
12549
- }
12550
- ],
12551
- "requestBody": {
12552
- "content": {
12553
- "application/json": {
12554
- "schema": {
12555
- "$ref": "#/components/schemas/SimulateRequest"
12556
- }
12557
- }
12558
- }
12559
- },
12560
- "responses": {
12561
- "200": {
12562
- "description": "Simulation result",
12563
- "content": {
12564
- "application/json": {
12565
- "schema": {
12566
- "$ref": "#/components/schemas/SimulateResponse"
12567
- }
12568
- }
12569
- }
12570
12418
  },
12571
12419
  "401": {
12572
12420
  "description": "Unauthorized",
@@ -12589,7 +12437,7 @@
12589
12437
  }
12590
12438
  },
12591
12439
  "502": {
12592
- "description": "Simulation container error",
12440
+ "description": "Bundle upstream unavailable",
12593
12441
  "content": {
12594
12442
  "application/json": {
12595
12443
  "schema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkeros/cli",
3
- "version": "4.6.1",
3
+ "version": "4.7.0-next-1790245733116",
4
4
  "description": "walkerOS CLI - Bundle and deploy walkerOS components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,29 +47,25 @@
47
47
  "lint": "eslint \"src/**/*.ts*\"",
48
48
  "clean": "rm -rf .turbo && rm -rf dist && rm -rf coverage && rm -rf .temp && rm -rf .tmp",
49
49
  "docker:build": "bash scripts/build-docker.sh",
50
- "docker:build:flow": "bash scripts/build-flow.sh",
51
- "docker:test": "bash scripts/test-docker.sh",
52
- "docker:publish": "bash scripts/publish-docker.sh"
50
+ "docker:test": "bash scripts/test-docker.sh"
53
51
  },
54
52
  "dependencies": {
55
53
  "@vercel/nft": "^1.10.2",
56
- "@walkeros/collector": "4.6.1",
57
- "@walkeros/core": "4.6.1",
58
- "@walkeros/server-core": "4.6.1",
59
- "@walkeros/server-destination-api": "4.6.1",
60
- "@walkeros/transformer-validate": "4.6.1",
54
+ "@walkeros/collector": "4.7.0-next-1790245733116",
55
+ "@walkeros/core": "4.7.0-next-1790245733116",
56
+ "@walkeros/server-core": "4.7.0-next-1790245733116",
57
+ "@walkeros/server-destination-api": "4.7.0-next-1790245733116",
58
+ "@walkeros/transformer-validate": "4.7.0-next-1790245733116",
61
59
  "ajv": "^8.17.1",
62
60
  "chalk": "^5.6.2",
63
61
  "ci-info": "^4.4.0",
64
62
  "commander": "^15.0.0",
65
- "cors": "^2.8.5",
66
63
  "esbuild": "^0.28.0",
67
- "express": "^5.2.1",
68
64
  "fs-extra": "^11.3.2",
69
65
  "jsdom": "^29.1.1",
66
+ "npm-package-arg": "^13.0.2",
70
67
  "open": "^11.0.0",
71
68
  "openapi-fetch": "^0.17.0",
72
- "p-limit": "^7.3.0",
73
69
  "pacote": "^21.0.4",
74
70
  "picomatch": "^4.0.4",
75
71
  "semver": "^7.7.4",
@@ -77,15 +73,14 @@
77
73
  "zod": "^4.0"
78
74
  },
79
75
  "devDependencies": {
80
- "@types/cors": "^2.8.17",
81
- "@types/express": "^5.0.6",
82
76
  "@types/fs-extra": "^11.0.4",
83
77
  "@types/jsdom": "^28.0.3",
78
+ "@types/npm-package-arg": "^6.1.4",
84
79
  "@types/pacote": "^11.1.8",
85
80
  "@types/picomatch": "4.0.3",
86
81
  "@types/semver": "^7.7.1",
87
- "@walkeros/config": "4.6.1",
88
- "@walkeros/core": "4.6.1",
82
+ "@walkeros/config": "4.7.0-next-1790245733116",
83
+ "@walkeros/core": "4.7.0-next-1790245733116",
89
84
  "msw": "^2.12.10",
90
85
  "openapi-typescript": "^7.13.0",
91
86
  "tsx": "^4.21.0"