@walkeros/cli 4.0.0-next-1776095573328 → 4.0.0-next-1777463920154
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 +248 -3
- package/dist/cli.js +5811 -18473
- package/dist/examples/event.json +3 -2
- package/dist/examples/flow-complete.json +51 -41
- package/dist/examples/flow-complete.md +76 -57
- package/dist/examples/flow-order-complete.json +13 -11
- package/dist/examples/flow-selfhost-test.json +7 -5
- package/dist/examples/flow-simple.json +12 -10
- package/dist/examples/flow.json +18 -16
- package/dist/examples/server-collect.json +15 -13
- package/dist/examples/web-serve.json +21 -18
- package/dist/index.d.ts +787 -499
- package/dist/index.js +1395 -695
- package/dist/index.js.map +1 -1
- package/examples/event.json +3 -2
- package/examples/flow-complete.json +51 -41
- package/examples/flow-complete.md +76 -57
- package/examples/flow-order-complete.json +13 -11
- package/examples/flow-selfhost-test.json +7 -5
- package/examples/flow-simple.json +12 -10
- package/examples/flow.json +18 -16
- package/examples/server-collect.json +15 -13
- package/examples/web-serve.json +21 -18
- package/package.json +11 -6
- package/src/telemetry/flow.json +110 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,251 @@
|
|
|
1
1
|
# @walkeros/cli
|
|
2
2
|
|
|
3
|
-
## 4.0.0-next-
|
|
3
|
+
## 4.0.0-next-1777463920154
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 0ffb1d3: Remove dead `bundleRemote()` and add OpenAPI drift detection.
|
|
8
|
+
|
|
9
|
+
Breaking changes:
|
|
10
|
+
- Removed `bundleRemote()` export from `@walkeros/cli`. The corresponding
|
|
11
|
+
`/api/bundle` endpoint was removed from the walkerOS app on 2026-04-08, so
|
|
12
|
+
this function had been silently broken in production for ~3 weeks. Local
|
|
13
|
+
bundling via `bundle()` is unaffected.
|
|
14
|
+
- Removed `remote` and `content` options from the MCP `flow_bundle` tool. The
|
|
15
|
+
tool now bundles locally only.
|
|
16
|
+
|
|
17
|
+
New:
|
|
18
|
+
- Added `npm run -w @walkeros/cli validate:openapi-spec` script that diffs the
|
|
19
|
+
checked-in `packages/cli/openapi/spec.json` against the live app's OpenAPI
|
|
20
|
+
document. Detects drift between the walkerOS-side type contract and the
|
|
21
|
+
actual API. Wired into PR-time CI, daily cron, and a pre-commit lint-staged
|
|
22
|
+
hook. All layers are gated on a `WALKEROS_APP_URL` secret and skip silently
|
|
23
|
+
when unset, so the change ships safely without configuration. To activate:
|
|
24
|
+
set `WALKEROS_APP_URL` in repo secrets pointing to a deployed app instance.
|
|
25
|
+
|
|
26
|
+
- 93ea9c4: Event model v4: breaking changes to the `Event`, `Source`, and
|
|
27
|
+
`Entity` shapes.
|
|
28
|
+
- `event.id` is now a W3C span_id (16 lowercase hex chars), generated by the
|
|
29
|
+
collector. Reference: W3C Trace Context (W3C Recommendation, January 2020).
|
|
30
|
+
- `event.version`, `event.group`, `event.count` are removed.
|
|
31
|
+
- `source.type` is now the source kind (e.g. `browser`, `gtag`, `mcp`, `cli`).
|
|
32
|
+
New `source.platform` holds the runtime (`web` | `server` | `app` | ...).
|
|
33
|
+
- `source.id` and `source.previous_id` are removed.
|
|
34
|
+
- Browser source now sets `source.url` and `source.referrer`.
|
|
35
|
+
- MCP source sets `source.tool` per emission. CLI source sets
|
|
36
|
+
`source.command`.
|
|
37
|
+
- `Entity.nested` and `Entity.context` are now optional. Root `event.nested`
|
|
38
|
+
and `event.context` remain required.
|
|
39
|
+
- Each source self-registers via TypeScript module augmentation of `SourceMap`
|
|
40
|
+
in `@walkeros/core`.
|
|
41
|
+
- App-side coordination (`/workspaces/developer/app`) is a follow-up plan, not
|
|
42
|
+
part of this release. Telemetry from v4 CLI/MCP will not validate against
|
|
43
|
+
the existing app schema until that follow-up ships.
|
|
44
|
+
- `Mapping.Rule.skip` is renamed to `Mapping.Rule.silent`. Customer flow.json
|
|
45
|
+
configs using `skip: true` in mapping rules must rename to `silent: true`.
|
|
46
|
+
Hard cut: no legacy alias, the field is gone.
|
|
47
|
+
|
|
48
|
+
- 942a7fe: Flow v4: type redesign and cross-flow references.
|
|
49
|
+
|
|
50
|
+
Breaking changes:
|
|
51
|
+
- Renamed `Flow.Settings` (single-flow shape) to `Flow`. The new
|
|
52
|
+
`Flow.Settings` is the arbitrary kv-bag inside `Flow.Config` (matches
|
|
53
|
+
`Destination.Settings` semantics).
|
|
54
|
+
- Renamed `Flow.Config` (root file shape) to `Flow.Json`.
|
|
55
|
+
- Removed `Flow.Web` and `Flow.Server`. Replaced by
|
|
56
|
+
`config.platform: 'web' | 'server'` (a string discriminator).
|
|
57
|
+
- Renamed `Flow.InlineCode` to `Flow.Code`.
|
|
58
|
+
- Renamed `Flow.SourceReference` / `DestinationReference` /
|
|
59
|
+
`TransformerReference` / `StoreReference` to `Flow.Source` / `Destination` /
|
|
60
|
+
`Transformer` / `Store` (Reference suffix dropped).
|
|
61
|
+
- Renamed `Flow.ContractEntry` to `Flow.ContractRule`.
|
|
62
|
+
- Lifted `bundle` and platform fields into the per-flow `config` block.
|
|
63
|
+
- `flow.json` `version` bumped from 3 to 4. v3 input is rejected (no compat
|
|
64
|
+
shim).
|
|
65
|
+
|
|
66
|
+
New:
|
|
67
|
+
- `$flow.X.Y` reference resolves to `flows.X.config.Y` in the same file.
|
|
68
|
+
Useful for linking a web flow's API destination to a server flow's deployed
|
|
69
|
+
URL without duplicating values.
|
|
70
|
+
- Per-flow `Flow.Config` block: `{ platform, url, settings, bundle }`.
|
|
71
|
+
- `walkeros validate` warns on unresolved `$flow.X.Y` (use `--strict` to
|
|
72
|
+
error). `walkeros bundle` and `walkeros deploy` always error on unresolved
|
|
73
|
+
refs.
|
|
74
|
+
- See `docs/migrating/v3-to-v4.mdx` on the website for the manual migration
|
|
75
|
+
steps. No automated codemod is shipped.
|
|
76
|
+
|
|
77
|
+
### Minor Changes
|
|
78
|
+
|
|
79
|
+
- cfc7469: **Breaking — `@walkeros/core`:** `fetchPackage(name, { baseUrl })`
|
|
80
|
+
now expects the host app to expose the v2 `/api/packages/[name]` endpoint that
|
|
81
|
+
returns the merged `WalkerOSPackage` shape directly (single round-trip,
|
|
82
|
+
`?expand=all`). The previous two-fetch pattern (`?path=package.json` +
|
|
83
|
+
`?path=dist/walkerOS.json`) is removed. Hosts must serve the v2 shape; the
|
|
84
|
+
offline jsdelivr fallback is unchanged.
|
|
85
|
+
|
|
86
|
+
**Feature — CLI/MCP/explorer:** Outbound walkerOS-aware HTTP clients now
|
|
87
|
+
identify themselves to the configured app origin via
|
|
88
|
+
`X-Walkeros-Client: walkeros-{cli|mcp}/{version}`. `@walkeros/explorer`
|
|
89
|
+
exports `setPackageTypesBaseUrl(url?)` so host apps can proxy `.d.ts` through
|
|
90
|
+
their own origin (used by the walkerOS Tag Manager app to drop the jsdelivr
|
|
91
|
+
CDN allowance entirely).
|
|
92
|
+
|
|
93
|
+
- 8e06b1f: **BREAKING:** Unified reference syntax: `$store:id` and
|
|
94
|
+
`$secret:NAME` now use the dot separator: `$store.id` and `$secret.NAME`.
|
|
95
|
+
|
|
96
|
+
The coherent rule across every walkerOS reference is:
|
|
97
|
+
- **`.`** key or path (resolver looks up or walks what follows)
|
|
98
|
+
- **`:`** literal value or raw-code payload (resolver uses what follows
|
|
99
|
+
verbatim)
|
|
100
|
+
|
|
101
|
+
`$var.`, `$def.`, `$env.NAME[:default]`, `$contract.`, and `$code:(…)` are
|
|
102
|
+
unchanged, they already fit the rule.
|
|
103
|
+
|
|
104
|
+
Every shipped example, published `walkerOS.json` metadata, doc page, and skill
|
|
105
|
+
has been updated. A new canonical reference-syntax guide lives at
|
|
106
|
+
`/docs/guides/reference-syntax`. Regex constants (`REF_VAR`, `REF_DEF`,
|
|
107
|
+
`REF_ENV`, `REF_CONTRACT`, `REF_STORE`, `REF_SECRET`, `REF_CODE_PREFIX`) are
|
|
108
|
+
exported from `@walkeros/core` import these instead of hand-rolling regexes.
|
|
109
|
+
|
|
110
|
+
### Upgrade
|
|
111
|
+
|
|
112
|
+
Search-and-replace across your flow configs:
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
$store:<id> → $store.<id>
|
|
116
|
+
$secret:<NAME> → $secret.<NAME>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Everything else stays the same. Your `$var.*`, `$def.*`, `$env.*`,
|
|
120
|
+
`$contract.*`, and `$code:*` references need no changes.
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- 6422b9b: Validate device-code and token responses from the auth server with
|
|
125
|
+
Zod schemas at the trust boundary in `login/index.ts`. Malformed responses now
|
|
126
|
+
surface as structured errors instead of being trusted into config writes or
|
|
127
|
+
browser launches. Replaces the hand-rolled type guards for Items 1 and 3 of
|
|
128
|
+
the cli-auth feedback review. No public API change.
|
|
129
|
+
- 78b651a: Explicit opt-in anonymous usage telemetry for CLI and MCP. Telemetry
|
|
130
|
+
is off by default; users opt in with `walkeros telemetry enable` and out with
|
|
131
|
+
`walkeros telemetry disable`. No persistent identifier is written before
|
|
132
|
+
opt-in. No ingest endpoint ships in this release: opting in records consent
|
|
133
|
+
locally; emission begins when a managed endpoint is released. The data
|
|
134
|
+
contract lives at `packages/cli/src/telemetry/flow.json`.
|
|
135
|
+
- 6422b9b: Add `flowId` filter to CLI `listDeployments` and redesign the MCP
|
|
136
|
+
`deploy_manage` tool around it.
|
|
137
|
+
|
|
138
|
+
**CLI (`@walkeros/cli`):**
|
|
139
|
+
- `listDeployments({ projectId?, type?, status?, flowId? })` now forwards
|
|
140
|
+
`flowId` as a query parameter to `GET /api/projects/{id}/deployments`.
|
|
141
|
+
- New helper `deleteDeploymentByFlowId({ projectId?, flowId, slug? })` deletes
|
|
142
|
+
the active deployment for a flow, surfacing a `DeploymentAmbiguityError`
|
|
143
|
+
(code `MULTIPLE_DEPLOYMENTS`, with a `details[]` list) when a flow has more
|
|
144
|
+
than one active deployment and no slug was supplied.
|
|
145
|
+
|
|
146
|
+
**MCP (`@walkeros/mcp`) breaking:**
|
|
147
|
+
- `deploy_manage`'s `get`, `delete`, and `list` actions now take
|
|
148
|
+
`{ projectId?, flowId, slug? }`. The old `id` parameter has been removed.
|
|
149
|
+
`flowId` is required for `get`/`delete` and optional for `list`.
|
|
150
|
+
Soft-deleted deployments are always excluded.
|
|
151
|
+
- When a flow has multiple active deployments and `slug` is not provided,
|
|
152
|
+
`get`/`delete` return a `MULTIPLE_DEPLOYMENTS` error with a `details[]` list
|
|
153
|
+
of `{ slug, type, status, updatedAt }` entries so the caller can pick one.
|
|
154
|
+
`deploy` action is unchanged.
|
|
155
|
+
|
|
156
|
+
- Updated dependencies [93ea9c4]
|
|
157
|
+
- Updated dependencies [942a7fe]
|
|
158
|
+
- Updated dependencies [cfc7469]
|
|
159
|
+
- Updated dependencies [8e06b1f]
|
|
160
|
+
- Updated dependencies [3d50dd6]
|
|
161
|
+
- @walkeros/core@4.0.0-next-1777463920154
|
|
162
|
+
- @walkeros/collector@4.0.0-next-1777463920154
|
|
163
|
+
- @walkeros/server-destination-api@4.0.0-next-1777463920154
|
|
164
|
+
- @walkeros/server-core@4.0.0-next-1777463920154
|
|
165
|
+
|
|
166
|
+
## 3.4.2
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- 2d25eda: Replace `api` mega-tool with four focused management tools: `auth`
|
|
171
|
+
(device code login), `project_manage`, `flow_manage`, and `deploy_manage`.
|
|
172
|
+
Enforce strict CLI/MCP separation of concern — MCP no longer reads config
|
|
173
|
+
files or checks env vars directly. All tools are always registered regardless
|
|
174
|
+
of auth state.
|
|
175
|
+
|
|
176
|
+
CLI exports new functions: `requestDeviceCode`, `pollForToken`,
|
|
177
|
+
`setDefaultProject`, `getDefaultProject`, `listAllFlows`,
|
|
178
|
+
`setFeedbackPreference`, `getFeedbackPreference`, `resolveToken`,
|
|
179
|
+
`deleteConfig`.
|
|
180
|
+
|
|
181
|
+
Preview CRUD (`preview_list`, `preview_get`, `preview_create`,
|
|
182
|
+
`preview_delete`) is now part of `flow_manage` — previews are a flow-scoped
|
|
183
|
+
concern and belong alongside the flow lifecycle actions rather than in a
|
|
184
|
+
separate tool.
|
|
185
|
+
|
|
186
|
+
- cb4c069: Runtime fetchers (`fetchConfig`, `fetchSecrets`) now classify 401/403
|
|
187
|
+
responses from the app as a typed `RunnerAuthError` with a structured `reason`
|
|
188
|
+
(`'unauthorised' | 'flow' | 'scope' | 'forbidden'`) and the app's error `code`
|
|
189
|
+
(`FORBIDDEN_FLOW` / `FORBIDDEN_SCOPE`). Callers can log a specific reason
|
|
190
|
+
instead of a generic "token may have expired" message, and exit cleanly rather
|
|
191
|
+
than retry on scope/flow mismatches.
|
|
192
|
+
- @walkeros/core@3.4.2
|
|
193
|
+
- @walkeros/server-core@3.4.2
|
|
194
|
+
|
|
195
|
+
## 3.4.1
|
|
196
|
+
|
|
197
|
+
### Patch Changes
|
|
198
|
+
|
|
199
|
+
- caea905: Add `walkeros previews {list|get|create|delete}` commands for
|
|
200
|
+
managing preview bundles. `create` supports `--flow <name>` or
|
|
201
|
+
`--settings-id <id>` to target a flow settings entry, and `--url <siteUrl>` to
|
|
202
|
+
produce a ready-to-open activation URL. Use `--open` to launch it in your
|
|
203
|
+
default browser.
|
|
204
|
+
- caea905: Preview preflight now self-heals when a preview bundle is deleted.
|
|
205
|
+
Instead of injecting the preview script directly and letting it 404, the
|
|
206
|
+
preflight does a `fetch(HEAD)` first. If the bundle is missing, it clears the
|
|
207
|
+
`elbPreview` cookie and loads the production walker, so visitors never see
|
|
208
|
+
silent analytics breakage.
|
|
209
|
+
- Updated dependencies [12adf24]
|
|
210
|
+
- Updated dependencies [75aa26b]
|
|
211
|
+
- @walkeros/core@3.4.1
|
|
212
|
+
- @walkeros/server-core@3.4.1
|
|
213
|
+
|
|
214
|
+
## 3.4.0
|
|
215
|
+
|
|
216
|
+
### Minor Changes
|
|
217
|
+
|
|
218
|
+
- 1a0f8f2: Add `target` option to `bundle()`:
|
|
219
|
+
`cdn | cdn-skeleton | runner | simulate | push`. Replaces
|
|
220
|
+
`buildOverrides.skipWrapper` (deprecated) to stop dev schemas leaking into
|
|
221
|
+
production CDN bundles. Stage 2 entry generators gain `platform` option and
|
|
222
|
+
inject `env.window`/`env.document` for browser targets, fixing
|
|
223
|
+
`window.elbLayer` in deployed walker.js.
|
|
224
|
+
- 9f97bdd: Clients now send `User-Agent`, `X-WalkerOS-Client`, and
|
|
225
|
+
`X-WalkerOS-Client-Version` on every request to the walkerOS app. When the app
|
|
226
|
+
returns `426 Upgrade Required`, the CLI prints the required version + upgrade
|
|
227
|
+
instruction and exits with code 2; the MCP surfaces the same info in tool
|
|
228
|
+
errors. Set `WALKEROS_CLIENT_TYPE=runner` to have the CLI binary identify as a
|
|
229
|
+
long-lived runner instead of an interactive CLI (used by the runtime image so
|
|
230
|
+
runners are distinguishable from interactive sessions).
|
|
231
|
+
|
|
232
|
+
### Patch Changes
|
|
233
|
+
|
|
234
|
+
- Updated dependencies [74940cc]
|
|
235
|
+
- Updated dependencies [525f5d9]
|
|
236
|
+
- @walkeros/core@3.4.0
|
|
237
|
+
- @walkeros/server-core@3.4.0
|
|
238
|
+
|
|
239
|
+
## 3.3.1
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- 62f6a38: Force collector.run=true during push and simulate so flows with
|
|
244
|
+
run:false work in CLI
|
|
245
|
+
- @walkeros/server-core@3.3.1
|
|
246
|
+
- @walkeros/core@3.3.1
|
|
247
|
+
|
|
248
|
+
## 3.3.0
|
|
4
249
|
|
|
5
250
|
### Minor Changes
|
|
6
251
|
|
|
@@ -95,8 +340,8 @@
|
|
|
95
340
|
- Updated dependencies [08c365a]
|
|
96
341
|
- Updated dependencies [08c365a]
|
|
97
342
|
- Updated dependencies [08c365a]
|
|
98
|
-
- @walkeros/core@
|
|
99
|
-
- @walkeros/server-core@
|
|
343
|
+
- @walkeros/core@3.3.0
|
|
344
|
+
- @walkeros/server-core@3.3.0
|
|
100
345
|
|
|
101
346
|
## 3.2.0
|
|
102
347
|
|