@walkeros/cli 4.9.0 → 4.10.0-next-1794522704623
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 +88 -0
- package/dist/cli.js +5018 -2795
- package/dist/examples/flow-complete.json +28 -37
- package/dist/examples/flow-complete.md +4 -10
- package/dist/examples/index.d.ts +6 -40
- package/dist/examples/index.js +35 -73
- package/dist/examples/index.js.map +1 -1
- package/dist/index.d.ts +258 -81
- package/dist/index.js +1539 -545
- package/dist/index.js.map +1 -1
- package/dist/validate.js +58 -1
- package/dist/validate.js.map +1 -1
- package/examples/flow-complete.json +28 -37
- package/examples/flow-complete.md +4 -10
- package/package.json +30 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
1
|
# @walkeros/cli
|
|
2
2
|
|
|
3
|
+
## 4.10.0-next-1794522704623
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 61030f8: `startFlow({ observe })`, or `collector.observe` in a flow file,
|
|
8
|
+
starts the Observe reporter: `usage` posts counters, gauges and issues every
|
|
9
|
+
`interval` (10 to 300 seconds, default 60), and `preview` posts one row per
|
|
10
|
+
event and per destination outcome, as NDJSON with a Bearer token. It is never
|
|
11
|
+
awaited on the event path, and a failing report is one ERROR line a minute. A
|
|
12
|
+
production web bundle carries no reporter; only a preview build, whose browser
|
|
13
|
+
wrap is given `observe: { preview: { url, token } }`, does. On the minimal
|
|
14
|
+
flow that build grows by 16,064 bytes raw and 6,308 gzipped. `walkeros push`
|
|
15
|
+
and simulate send nothing.
|
|
16
|
+
|
|
17
|
+
Migration:
|
|
18
|
+
- `Logger.Config.mask` is optional and `Logger.Instance.mask(text)` is
|
|
19
|
+
required. A logger built by hand needs a `mask`; `mask: (text) => text` is
|
|
20
|
+
enough.
|
|
21
|
+
- `createBatchedPoster` posts rows of any shape and returns
|
|
22
|
+
`{ push, flush, send, dropped }`; its versioned envelope, `onError` and
|
|
23
|
+
`onStatus` are gone, and `onResult` says whether a post was a page leave's
|
|
24
|
+
`keepalive` one. A page-leave body is at most `KEEPALIVE_BODY_BYTES`
|
|
25
|
+
(16,384).
|
|
26
|
+
- `redactLine` is exported from `@walkeros/core` too (`scrubSecrets` stays in
|
|
27
|
+
`@walkeros/core/node`). Both mask every `wos_` token and the credential
|
|
28
|
+
after `Bearer` or `Basic`.
|
|
29
|
+
- `FlowState.seq` and `'sampled_out'` are removed from `skipReason`; nothing
|
|
30
|
+
set them.
|
|
31
|
+
|
|
32
|
+
- 61030f8: Observe v1 is removed: no `elbObserve` URL parameter, no Observe
|
|
33
|
+
sessions, no journey assembly and no trace-level capture of vendor calls. The
|
|
34
|
+
new Observe reporter replaces it (see the Observe reporter changeset).
|
|
35
|
+
|
|
36
|
+
Migration:
|
|
37
|
+
- Delete `config.observe`, `collector.observe` of the old shape, the `observe`
|
|
38
|
+
`startFlow` option, `pageObserveSlot`, `elbPreviewSession` and the `observe`
|
|
39
|
+
wrap option. `flows.<name>.config` now accepts only `platform`, `url`,
|
|
40
|
+
`settings` and `bundle`; any other key fails `walkeros validate` with
|
|
41
|
+
`UNKNOWN_KEY` at its path.
|
|
42
|
+
- `observeEnv` is now `recordEnv` and `ObservedEnv` is `RecordedEnv`, with no
|
|
43
|
+
alias. The recorder takes no `record` callback and reports no `unresolved`
|
|
44
|
+
paths, and `wrapEnv` no longer returns `unresolved`.
|
|
45
|
+
- Removed from `@walkeros/core`: `observeFromEnv`, `assembleJourneys` and the
|
|
46
|
+
journey types, `createTelemetryObserver`, the trace state helpers,
|
|
47
|
+
`Destination.Instance.calls`, `Collector.Instance.observeLevel` and
|
|
48
|
+
`FlowState.calls`. The `observers` option and `FlowState` stay.
|
|
49
|
+
- A page on the new web-core no longer strips the old `elbObserve` and
|
|
50
|
+
`elbPreviewSession` URL parameters (`elbPreview` is still stripped). The
|
|
51
|
+
preview grant verifier takes a page and its origin only (`origin` is
|
|
52
|
+
required); the `ses` and `sb` claims are gone.
|
|
53
|
+
- The runner no longer reads `WALKEROS_OBSERVE_LEVEL`, the observer variables
|
|
54
|
+
or the `WALKEROS_PREVIEW_*` intake variables, and `createHealthServer` takes
|
|
55
|
+
`(port, logger)`. The `previewGrantTargets` wrap option is removed.
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- 3a4d76a: The complete example flow's Data Manager step uses a numeric Google
|
|
60
|
+
Ads customer ID and conversion action ID, the format Google requires. A flow
|
|
61
|
+
copied from the example needs its own customer ID and conversion action ID in
|
|
62
|
+
the same numeric format.
|
|
63
|
+
- 61030f8: A local package (`config.bundle.packages.<name>.path`) whose `main`,
|
|
64
|
+
`module`, `exports` or `bin` points outside `dist/` is copied whole (leaving
|
|
65
|
+
out `node_modules` and `.env` files at any depth, and `.turbo` and `.git` at
|
|
66
|
+
the top; type declarations and `.json` exports do not count), so a package
|
|
67
|
+
with its Node entry in `lib/` loads. A declared package whose installed copy
|
|
68
|
+
has none of its entries is now named as such ("its installed copy has no
|
|
69
|
+
<entry>") and no longer reported as unused.
|
|
70
|
+
- 3a4d76a: `walkeros login` signs a person in with the walkerOS app in a
|
|
71
|
+
browser, and `walkeros logout` revokes that sign-in; with `--no-browser` the
|
|
72
|
+
page after Allow shows a one-time code to paste, for a container or another
|
|
73
|
+
machine. `WALKEROS_TOKEN` stays the credential for CI and wins while it is
|
|
74
|
+
set. The new `resolveCredential()` export returns the credential a command
|
|
75
|
+
would send, including a `walkeros login`; `resolveAccessToken()` still reads
|
|
76
|
+
`WALKEROS_TOKEN` only.
|
|
77
|
+
- 3a4d76a: `walkeros bundle --manifest` takes an optional `packages` field:
|
|
78
|
+
`resolve` installs only versions published at or before a cutoff and reports
|
|
79
|
+
the tree it installed, and `tree` installs exactly a recorded tree, checked
|
|
80
|
+
against each tarball's sha512, without resolving anything.
|
|
81
|
+
- Updated dependencies [61030f8]
|
|
82
|
+
- Updated dependencies [61030f8]
|
|
83
|
+
- Updated dependencies [61030f8]
|
|
84
|
+
- @walkeros/core@4.10.0-next-1794522704623
|
|
85
|
+
- @walkeros/collector@4.10.0-next-1794522704623
|
|
86
|
+
- @walkeros/web-core@4.10.0-next-1794522704623
|
|
87
|
+
- @walkeros/server-core@4.10.0-next-1794522704623
|
|
88
|
+
- @walkeros/server-destination-api@4.10.0-next-1794522704623
|
|
89
|
+
- @walkeros/transformer-validate@4.10.0-next-1794522704623
|
|
90
|
+
|
|
3
91
|
## 4.9.0
|
|
4
92
|
|
|
5
93
|
### Patch Changes
|