@solidnumber/cli 2.24.12 → 2.25.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 ADDED
@@ -0,0 +1,1638 @@
1
+ # Changelog
2
+
3
+ All notable changes to `@solidnumber/cli` will be documented in this file.
4
+
5
+ ## [2.25.0] — 2026-10-03
6
+
7
+ **`solid app` reads your repository itself, says which commit is live, and can hold
8
+ a build until you choose to make it live.**
9
+
10
+ - `solid app github` reads the repository before it writes anything: it finds the
11
+ app's folder (the root or one level down), the package manager from the lockfile,
12
+ the built folder (Vite's `outDir` included) and whether one of your own workflows
13
+ already rebuilds it, then writes the matching workflow — build then publish,
14
+ publish a committed folder when it changes, or publish when your rebuilding
15
+ workflow finishes. `--folder` is optional; `--plan` shows what it found and the
16
+ workflow without creating a key or writing a file. The real run prints the exact
17
+ steps, in order.
18
+ - `solid app publish` sends the commit and repository the build came from, so
19
+ `solid app get` says which commit is live. `--hold` keeps a build without making
20
+ it live, and `solid app github --review` does that on every push. `publish` and
21
+ `get` print what the server says to do next, and the outside addresses the build
22
+ depends on. Publishing opens company by company; until it is on for yours, the
23
+ command says so and nothing is published.
24
+ - The Playground checks inside array items (`terms[0].excerpt`, `lines[2].amount`)
25
+ with the same rules as the top level, and enforces "one of these is required"
26
+ (`missing_one_of`). A payload it called valid is no longer refused live.
27
+ - `solid verbs invoke` on a write without `--confirm` now sends the call without
28
+ consent instead of stopping before it: the server refuses it
29
+ (`confirmation_required`), nothing changes, and the attempt is recorded in
30
+ `audit.receipts`. It used to leave no trace. `--confirm` is still how you consent.
31
+ - Release notes are a release gate: every version ships with its CHANGELOG entry,
32
+ shows on solidnumber.com/docs/cli/changelog, and gets a GitHub release.
33
+ - Dependency update: axios 1.20.
34
+
35
+ ## [2.24.12] — 2026-09-30
36
+
37
+ **`solid app` puts a designer's interactive app live for your company, and
38
+ `solid update` brings everything Solid# on your machine current.**
39
+
40
+ - New: `solid app publish <folder>` puts an app built in Figma Make, Lovable, v0,
41
+ Bolt or plain React live for this company. Point it at the BUILT folder (the one
42
+ with `index.html`: `dist/`, `build/` or `docs/`). It is zipped on your machine and
43
+ uploaded to a private link, so the app's files never travel inside the API call.
44
+ `solid app list`, `get`, `rollback` and `unpublish` manage it; every version is
45
+ kept, and `rollback` also brings an unpublished app back.
46
+ - New: `solid app github`, run once inside the app's repository, adds a workflow
47
+ that builds the app in your own GitHub Actions and publishes it on every push. It
48
+ saves a key that can only publish apps as a repository secret, so private
49
+ repositories are never shared with us.
50
+ - `solid update` tries every way this machine can install the CLI (the one it
51
+ detects first, then npm, then Homebrew or scoop) and counts the update done only
52
+ when the `solid` your terminal runs reports the new version. It then refreshes
53
+ what the CLI set up: the MCP server your AI tools launch, the Claude Code session
54
+ hook, shell completion, the agent skills and plugin in every project where you ran
55
+ `solid agent setup`, and the render browser. Nothing new is installed.
56
+ `solid update --check` lists every part; `--json` reports each part for an agent.
57
+ - Fixed: sending and replying to email from `solid inbox` was rejected on every call
58
+ (the CLI posted field names the server does not take). It now sends the recipient,
59
+ subject and text the server expects, and a reply goes to the other party of the
60
+ original message with `Re:` on the subject.
61
+ - Dependencies: `undici` 6.28.0 → 6.29.0 (high-severity advisories).
62
+ - Coming from 2.24.11 or earlier: that version runs its own update code for this one
63
+ step. If it stops, run `npm install -g @solidnumber/cli@latest` once.
64
+
65
+ ## [2.24.11] — 2026-09-28
66
+
67
+ **`solid inventory import` reports every row, and `solid update` works in the
68
+ first minutes after a release.**
69
+
70
+ - `solid inventory import <file>` prints how many rows were created, updated and
71
+ unchanged, names every row that failed with its row number, SKU and reason, and
72
+ lists the columns it did not import. It exits 1 if any row failed.
73
+ `--dry-run` says nothing was written and previews what each row would do.
74
+ - Server-side, shipped 2026-09-28 (no CLI update needed): the import now writes
75
+ your real products and per-location stock. It used to fail for every company.
76
+ Rows match by SKU in your company; a blank cell never overwrites; a new SKU needs
77
+ a name; a `location` column sets that location's count. `--dry-run` is now truly
78
+ a dry run: the server used to ignore the flag the CLI sends. New verb:
79
+ `inventory.import_csv`.
80
+ - `solid update` installs with `--prefer-online`. Right after a release, npm's
81
+ cached package list lacked the new version, so updating to `@latest` failed
82
+ (`ETARGET`) for the first few minutes. The MCP self-update uses the same flag.
83
+
84
+ ## [2.24.10] — 2026-09-27
85
+
86
+ **`solid docs` points at the public booking routes that exist, and the
87
+ published counts are regenerated.**
88
+
89
+ - `solid docs` listed `GET /api/v1/cms/public/availability` for open appointment
90
+ slots. That route never existed (404). It now lists the host-resolved routes:
91
+ `GET /api/v1/cms/pages/public/booking?host=<site>` (bookable services),
92
+ `GET /api/v1/cms/pages/public/booking/times?host=<site>&service_id=<id>&date=YYYY-MM-DD`
93
+ (open slots) and `POST /api/v1/cms/pages/public/book?host=<site>` (book a slot).
94
+ - Counts re-measured by `npm run sync:counts`: 172 top-level commands, 914 verbs.
95
+
96
+ ## [2.24.9] — 2026-09-24
97
+
98
+ **`solid update` keeps the MCP server current, not just the CLI.**
99
+
100
+ - Client configs written before 2.24.8 launch a bare `@solidnumber/mcp`, which
101
+ npx serves from its cache forever — updating the CLI never touched it. After
102
+ the CLI step, every Solid# launch in Claude Desktop, Cursor, Windsurf and
103
+ Claude Code (including per-project servers in `~/.claude.json`) that uses the
104
+ bare spec is switched to `@solidnumber/mcp@latest`; only that one argument
105
+ changes. A deliberate version pin is left alone and reported. Unparseable
106
+ files are never written.
107
+ - A global npm install of `@solidnumber/mcp` is upgraded when behind.
108
+ - Runs even when the CLI is already current.
109
+ - `--json` now performs the update and reports it, so an agent can call it;
110
+ `--check` changes nothing, with or without `--json`. Exit 1 if any step fails.
111
+
112
+ ## [2.24.8] — 2026-09-24
113
+
114
+ **Flags reach the commands they belong to, a missing-scope error tells you the
115
+ real fix, and `solid mcp install` writes a key that doesn't expire.**
116
+
117
+ - `solid inbox --limit 5` — was read as a subcommand named `5`. Fixed, and
118
+ `inbox list --limit` / `inbox email list --limit` now reach the route instead
119
+ of running with the default 20.
120
+ - Missing scope — the backend's structured 403 is now `SCOPE_MISSING` with the
121
+ scope it needs, not "check your tier". `solid keys rotate --add-scope <scope>`
122
+ exists now, and rotate creates the new key BEFORE revoking the old one.
123
+ - `solid subscriptions list` — sends no filters the route ignores; shows the one
124
+ plan it returns.
125
+ - `solid verbs invoke` — uses each verb's HTTP method from the manifest (9 verbs
126
+ drew 405 before).
127
+ - `solid ucp consent grant|revoke` and `solid ucp capabilities` — call routes that
128
+ exist; a tenant without UCP gets a plain "not enabled".
129
+ - `solid mcp install` — writes an `sk_` key for this company (reused when still
130
+ valid) and `@solidnumber/mcp@latest`, never an expiring login token.
131
+ `solid mcp doctor` names each connection's company and the exact repair command.
132
+ - Releases now start the Homebrew and scoop bumps the moment npm serves the
133
+ version, so `install.sh` on a brew or scoop machine gets the new release
134
+ within minutes instead of the next 4-hour cron.
135
+
136
+ ## [2.24.7] — 2026-09-24
137
+
138
+ **`solid nest <folder>` imports the whole site a designer handed over; `solid mcp
139
+ doctor --fix` leaves exactly one Solid# connection; `auth login --token` no longer
140
+ drifts back to the previous account.**
141
+
142
+ - `solid nest <folder>` — a folder used to be sent to the server as if its PATH
143
+ were the site's HTML. It now reads the folder (relative paths kept, text as text,
144
+ images and fonts as binary; hidden, VCS and `node_modules` items skipped and
145
+ listed), imports every page as the site with the links between them kept, and
146
+ builds each one. `--entry <file>` names the home page; `--single` imports only it.
147
+ A folder named like a domain (`showerpros.com`) is still a folder.
148
+ - `solid mcp doctor --fix` — removes the local duplicate Solid# connections that
149
+ made "which company is the AI on?" unanswerable, backing each config file up
150
+ first. The claude.ai connector is never touched — it is named as a step for you,
151
+ and the report says plainly when a conflict remains. `--dry-run` shows the plan.
152
+ - `solid auth login --token` — the previous account's refresh token and cached
153
+ companies are set aside before the key is verified and restored only if it is
154
+ bad, so a typo never logs you out and a good key never refreshes back into the
155
+ old account.
156
+
157
+ ## [2.24.6] — 2026-09-24
158
+
159
+ **`solid verbs list` takes the Atlas addresses the backend now uses, and a retired
160
+ address tells you where it went.**
161
+
162
+ Class 5 is curated with three-digit addresses (`530` taking payment, `531`
163
+ refunds), and `verbs list` accepted only one or two digits, so a real address was
164
+ refused as malformed. It now accepts a class, a noun or a curated address (1–3
165
+ digits). An address the backend has retired used to return an empty list, which
166
+ reads exactly like "nothing lives here". It now returns the standard error envelope
167
+ (`410 address_retired`) with the replacement addresses in `did_you_mean` and a
168
+ `fix` you can run; when there are several candidates, `fix` is `solid map`, because
169
+ the CLI will not pick one for you. The examples in `verbs`, `map` and `context`
170
+ use the three-digit addresses.
171
+
172
+ ## [Unreleased]
173
+
174
+ **`solid apply` grows a memory: a lockfile, three-way drift, recorded pre-images
175
+ with rollback, and export — plus five more kinds.**
176
+
177
+ Every apply that writes now records `<manifest>.lock.json` beside the manifest:
178
+ server ids, the managed fields as applied, and a pre-image for every write.
179
+ Commit it with the manifest. `solid apply drift <file>` compares manifest, lock
180
+ and production and names what moved where — `live_changed` is the one that
181
+ matters (someone edited production outside git) and exits 1 for CI.
182
+ `solid apply <file> --strict` refuses to write over it. `solid apply rollback
183
+ <file>` inverts a recorded run most-recent-first and verifies the result
184
+ (ordered, not atomic — it says so). `solid apply export` writes the live tenant
185
+ as a manifest. `solid apply history` lists the runs.
186
+
187
+ New kinds: `kb` (by title), `service` (by title), `brand` (a singleton: one per
188
+ company, never pruned), and the two configure-only kinds below.
189
+
190
+ **`solid apply` reconciles agents and voice lines — configure, never create or
191
+ delete.**
192
+
193
+ Two new kinds. `agent` (keyed by `agent_type`) manages `autonomy_level`,
194
+ `is_enabled`, `llm_model_override`, `llm_provider_id` and `voice_enabled`;
195
+ `voice_line` (keyed by `phone_number`) manages routing mode, assigned agent,
196
+ greeting, voice config, business hours, voicemail, translation and active
197
+ state. Neither kind can be created by a manifest and `--prune` skips both: an
198
+ agent comes from the registry and a phone number is bought and released only
199
+ by the explicit commands that cost money.
200
+
201
+ The engine learned three things for this: an update can be split across the
202
+ endpoints that own each field (only a route with a changed field is called),
203
+ a kind can declare the only fields it manages (a write-only field that could
204
+ never compare equal is rejected instead of planning as drift forever), and a
205
+ read-side field can be renamed on write (`is_active` → `status`). The plan
206
+ summary now says `unsupported` rather than `immutable`, since "cannot be
207
+ created" is now one of the reasons.
208
+
209
+ ## [2.17.0] — 2026-09-02
210
+
211
+ **Deals report their own progress, quizzes actually branch, and the advertised
212
+ numbers are generated rather than typed.**
213
+
214
+ `solid deals` reads the deal and reports where it stands — offer and order
215
+ milestones, so an agent can answer "what is left on this?" without stitching
216
+ three calls together.
217
+
218
+ Quiz scoring walks the real branching path instead of a flattened list, so a
219
+ quiz that forks on an answer is scored the way a respondent actually experienced
220
+ it.
221
+
222
+ The legacy REST seam now closes wherever a verb exists: one vocabulary, one code
223
+ path, and no second way to do the same thing that drifts from the first.
224
+
225
+ `sync-counts` generates every advertised count instead of trusting a human to
226
+ walk twelve surfaces. It stamps the CLI's own paired phrasing and **refuses**
227
+ what it should not touch — a minimum version like `@2.10+`, a dated changelog
228
+ line, and WebMCP's separate measurement — printing each refusal so a clean run
229
+ can never hide one. `prepublishOnly` runs it in check mode, so a stale surface
230
+ stops a publish instead of shipping a wrong number.
231
+
232
+ Verb and command discovery is unchanged and still LIVE: the CLI reads
233
+ `/api/v1/agent/verbs` at call time, so a platform-side change reaches you without
234
+ a release.
235
+
236
+ ## [2.13.1] — 2026-06-15
237
+
238
+ **`solid whoami` now shows which company + permission level you're bound to.**
239
+
240
+ `solid whoami` / `solid auth status` add the bound **company name**, **role**,
241
+ and **tier** to the human-readable output (was company id only). The same
242
+ fields land in `--json` for agents. Best-effort lookups that never block the
243
+ status check.
244
+
245
+ ## [2.7.0] — 2026-05-15
246
+
247
+ **`solid webmcp ...` + `solid ucp ...` — agent transports go cross-runtime.**
248
+
249
+ Two verb families that surface Solid#'s in-browser MCP (WebMCP, W3C draft by
250
+ Microsoft + Google) and Universal Commerce Protocol (UCP, Google + retail
251
+ partners) directly from the CLI. Same JSON-LD verb registry on the backend
252
+ serves all three transports (stdio MCP via `@solidnumber/mcp`, WebMCP via
253
+ `navigator.modelContext` on every Solid# page, UCP via signed RFC 9421
254
+ buyer-agent requests). One registry, three transports — the CLI now drives
255
+ all three with symmetric command shapes.
256
+
257
+ ### Added — `solid webmcp ...`
258
+
259
+ - `solid webmcp manifest [--surface public|tenant-site|dashboard|portal|developer]` —
260
+ dump the WebMCP tool catalog for the current tenant (or a specific surface).
261
+ Defaults to dashboard surface; supports `--json` for agent consumption.
262
+ - `solid webmcp verb <name>` — inspect one verb: input schema, annotations,
263
+ platform-canonical IRI (`https://api.solidnumber.com/webmcp/tools/{name}`)
264
+ or tenant-scoped IRI for write verbs.
265
+ - `solid webmcp test <tool_name> [--input @payload.json] [--confirm]` —
266
+ dry-run a tool against the backend. Write tools require `--confirm`.
267
+ - `solid webmcp execute <tool_name> --input '<json>'` — server-side execute
268
+ with auto-generated idempotency key.
269
+ - `solid webmcp invocations [--limit N] [--tool <name>] [--status success|error|denied]` —
270
+ recent WebMCP tool invocations for the current tenant.
271
+ - `solid webmcp consent {list|grant|revoke}` — manage the 4-rung consent
272
+ ladder (once / session / permanent / deny) for write verbs.
273
+
274
+ ### Added — `solid ucp ...`
275
+
276
+ - `solid ucp manifest` — dump the tenant's signed UCP profile from
277
+ `/co/{id}/.well-known/ucp`.
278
+ - `solid ucp capabilities` — list capabilities exposed by the current tenant
279
+ (signed envelope, RFC 9421 ES256).
280
+ - `solid ucp consent {list|grant|revoke}` — manage UCP consent grants for
281
+ buyer-agent access (owner-only; tied to the same 4-rung ladder).
282
+
283
+ ### Why
284
+
285
+ Three transports for AI agents to drive Solid# — stdio MCP (`@solidnumber/mcp`
286
+ for AI editors), WebMCP (`navigator.modelContext` for in-browser agents), UCP
287
+ (signed buyer-agent commerce). Before v2.7 you could see the WebMCP/UCP
288
+ verbs by reading the registry source; now the CLI introspects them with the
289
+ same shape as `solid schema verbs --json`. Symmetric with how `solid mcp ...`
290
+ already worked.
291
+
292
+ ### Platform context
293
+
294
+ - 31 WebMCP verbs across 5 surfaces (public / tenant-site / dashboard /
295
+ portal / developer). Every solidnumber.com page registers the right
296
+ catalog at mount time; tenant subdomains register their own per-company
297
+ catalog.
298
+ - Public discovery file: `https://solidnumber.com/.well-known/webmcp.json`.
299
+ - Anonymous manifest endpoint:
300
+ `GET /api/v1/webmcp/public/manifest?company_id={id}&surface={public|tenant-site}`.
301
+ - Spec: https://webmachinelearning.github.io/webmcp/ (W3C Web ML Community
302
+ Group, authored by Microsoft + Google).
303
+ - Docs: https://solidnumber.com/docs/webmcp + https://solidnumber.com/docs/ucp.
304
+
305
+ ---
306
+
307
+ ## [2.6.0] — 2026-05-12
308
+
309
+ **`solid qchain ...` — Q-Chain substrate verification for external auditors.**
310
+
311
+ Four verbs that close the "insurance auditor walks in and verifies our
312
+ hash chain without trusting us" loop. JSON-first; the export shape is
313
+ the contract `/.well-known/qchain.json` publishes so an auditor can
314
+ recompute SHA-256 + verify Ed25519 signatures offline.
315
+
316
+ ### Added
317
+
318
+ - `solid qchain pubkey` — fetch the platform's verification metadata
319
+ (anonymous, no auth). Returns signer_id, Ed25519 public key, hash +
320
+ signature algorithm spec, canonical-row-fields contract.
321
+ - `solid qchain export [--since X --until Y]` — pull this tenant's
322
+ full substrate chain in canonical form. JSON always; the auditor
323
+ recomputes the hash + signature locally.
324
+ - `solid qchain verify` — server-side chain walk + sig verify. Sanity
325
+ check before the auditor runs their own offline verification.
326
+ - `solid qchain audit-key --label "Acme Insurance — 2026 SOC 2"` —
327
+ mint an API key scoped to `audit:substrate:read` only. Hand to the
328
+ auditor; they can hit export/verify/recent/summary and nothing else.
329
+
330
+ ### Why
331
+
332
+ Phase 4 substrate attestation (Q-Chain hash chain + Ed25519) is the
333
+ audit source of truth for every agent action and observed outcome.
334
+ Without these CLI verbs, an auditor (or AI agent diagnosing one) had
335
+ to either trust the platform's UI or SSH in and run SQL. Now they
336
+ call the CLI, get JSON, walk the chain locally.
337
+
338
+ Spec: `Owners-Manual/75-Qchain/08-EXTERNAL-AUDITOR-FLOW.md`.
339
+
340
+ ## [2.5.0] — 2026-05-12
341
+
342
+ **`solid tenant ...` — Tenant Activity Gate introspection from the CLI.**
343
+
344
+ Four new verbs let agents and operators query the platform-level
345
+ compute-budget gate that decides whether per-tenant Celery sweeps fire.
346
+ JSON-first; reason codes are stable for pattern-matching.
347
+
348
+ ### Added
349
+
350
+ - `solid tenant level` — your own company's current activity level
351
+ (HOT/WARM/COLD/DORMANT/BLOCKED), reason code, and all signals.
352
+ - `solid tenant gate-debug <company_id>` — admin-only full breakdown for
353
+ any tenant.
354
+ - `solid tenant active --min warm` — admin-only list of company IDs
355
+ passing a threshold (same set a Celery fan-out would enqueue).
356
+ - `solid tenant allowlist` — admin-only snapshot of the owner allowlist
357
+ (hardcoded IDs + `billing_exempt=true` SOLON partners).
358
+
359
+ ### Why
360
+
361
+ AI agents diagnosing "why didn't last night's sweep run for tenant X?"
362
+ needed a deterministic, JSON-first introspection path. Previously they
363
+ had to SSH into production and run a Python REPL. Now they can ask the
364
+ CLI and pattern-match on `reason`.
365
+
366
+ Spec: `Owners-Manual/06-Operations/TENANT-ACTIVITY-GATE/`.
367
+
368
+ ## [2.3.2] — 2026-04-29
369
+
370
+ **`solid ai` no longer prints "Refusing to write tenant data" when
371
+ launched outside a tenant directory.**
372
+
373
+ ### Changed
374
+
375
+ - `commands/ai.ts::refreshContext` now spawns
376
+ `solid context <flag> --if-tenant` instead of `solid context <flag>`.
377
+ When the AI is launched from `$HOME`, the platform monorepo, or any
378
+ directory without `.solid/manifest.json`, the child context refresh
379
+ silently exits 0 and the AI launches with whatever cached files
380
+ exist — instead of printing the loud guard banner followed by
381
+ "Context refresh failed — launching anyway."
382
+
383
+ ### Why
384
+
385
+ Same root cause as 2.3.1, second code path. `solid auth login` →
386
+ `solid ai` from `$HOME` hit the protected_root guard via the child
387
+ context refresh and surfaced the wrong-shape error to the user.
388
+ Two regression tests in `__tests__/commands/ai-options.test.ts`
389
+ lock in the spawnSync args for all three AI kinds (claude, cursor,
390
+ codex).
391
+
392
+ ### Migration
393
+
394
+ None — purely additive. Re-install: `npm i -g @solidnumber/cli` (or
395
+ `npm install -g .` from a local checkout).
396
+
397
+ ## [2.3.1] — 2026-04-29
398
+
399
+ **`--if-tenant` flag — fixes "Refusing to write tenant data" banner
400
+ on every `claude` launch outside a tenant directory.**
401
+
402
+ ### Added
403
+
404
+ - **`solid context --if-tenant`** — hook-mode flag. Silently exits 0
405
+ when the cwd is not a tenant directory (no `.solid/manifest.json`)
406
+ or sits inside a protected root (platform monorepo, `$HOME`,
407
+ `$HOME/.claude`). Mismatched-company manifests still fail loudly
408
+ because silent skip there would let stale/wrong context flow into
409
+ the next session.
410
+
411
+ - **`tenantManifestForHook(baseDir, companyId)`** in
412
+ `lib/tenant-guard.ts` — lenient guard for hook contexts. Returns
413
+ `null` (silent no-op) for `protected_root` + `missing`, exits 1
414
+ loud for `mismatch`. Six new unit tests lock in the contract.
415
+
416
+ ### Changed
417
+
418
+ - **SessionStart hook command** registered by `solid install`:
419
+ `solid context --claude --raw` → `solid context --claude --raw --if-tenant`.
420
+ - `solid install` migrates older hooks (`--quiet` pre-2.2, plain
421
+ `--raw` from 2.2–2.3.0) to the current command in place.
422
+ - `solid doctor env` recognizes the new command as the pass case;
423
+ older variants drift to `warn` with `solid install` as the hint.
424
+
425
+ ### Why
426
+
427
+ The 2.2–2.3.0 SessionStart hook printed `Refusing to write tenant
428
+ data inside the Solid# platform monorepo` (or `…to your home
429
+ directory`) every time a user launched Claude Code outside their
430
+ tenant repo. The tenant-guard was doing exactly its job — but the
431
+ guard's loud banner is for direct invocation (`solid context --claude`),
432
+ not background hooks fired in arbitrary cwds. `--if-tenant` is the
433
+ right shape for the hook: refresh when there's a tenant to refresh,
434
+ silent otherwise.
435
+
436
+ Real-world trigger: 2026-04-29, Adam launched `claude` from
437
+ `~/Desktop/Solid` (the platform monorepo, Role 1 — never gets
438
+ tenant writes) and saw the refusal banner stuck to the splash
439
+ screen. Confusing UX that would scare any first-time user.
440
+
441
+ ### Migration
442
+
443
+ Re-run `solid install`. Existing hooks migrate in place. No tenant
444
+ data changes.
445
+
446
+ **Propagation note (per CLAUDE-CONTEXT-CANONICAL-TRUTH § 650):**
447
+ Live — purely additive at the CLI layer. Old hook still works (just
448
+ noisy in non-tenant cwds); new hook is silent there. Existing
449
+ tenants need no re-seed.
450
+
451
+ ## [2.3.0] — 2026-04-29
452
+
453
+ **New flag: `solid graph --watch-actions` — live tail of tenant graph
454
+ mutations as agents fire.** SSE-driven, tenant-scoped via JWT. Pairs
455
+ with the new backend endpoint `/api/v1/cli/graph/watch-actions`.
456
+
457
+ ### Added
458
+
459
+ - **`solid graph --watch-actions`** — opens a Server-Sent Events
460
+ stream and renders each event as a one-line graph diff:
461
+
462
+ ```
463
+ [12:34:56] + Contact #42 (Ada Lovelace) by Sarah (agent)
464
+ [12:34:58] ~ Service #3 (Drain cleaning) price: 99 → 119
465
+ [12:35:01] + Order #99 (ORD-2026-099) fired by chain "New lead followup"
466
+ ```
467
+
468
+ Symbols: `+` create (green), `~` update (yellow), `-` delete (red),
469
+ `⚡` fire (cyan). Press Ctrl+C to stop.
470
+
471
+ - **`--watch-pattern <p>`** — narrows the subscription. Examples:
472
+ `order.*`, `contact.*`, `inventory.*`. Default `*` (all events).
473
+
474
+ - **`graph-watch-render.ts`** — pure renderer (`formatTime`,
475
+ `payloadLabel`, `payloadId`, `classifyEvent`, `renderWatchEvent`)
476
+ with 31 unit tests covering happy + edge paths.
477
+
478
+ ### Why
479
+
480
+ The second holy-shit moment after auto-flush. An agent fires an MCP
481
+ tool; the operator watches the resulting graph diff stream into the
482
+ terminal in real time. Every action is an edge; every response
483
+ updates a known node by IRI. Sprint:
484
+ `Owners-Manual/99-Active-Sprints/SPRINT-JSONLD-GRAPH-MOAT.md` § A+.3b.
485
+
486
+ ## [2.2.3] — 2026-04-27
487
+
488
+ **Bug fix — `solid completion install` produced an unparseable zsh script.**
489
+
490
+ ### Fixed
491
+
492
+ - **Apostrophes in command descriptions broke the generated zsh/bash
493
+ completion script.** The generator escaped `'` with `\'`, which is
494
+ valid in fish but invalid inside zsh/bash single-quoted strings (where
495
+ `\` is literal). The `solid ai` description (`...this company's
496
+ context...`) terminated its string early, surfacing as
497
+ `parse error near '>'` on every shell start after `solid completion
498
+ install`. Each shell now uses its own correct quoting:
499
+ - zsh/bash: `'\''` (close, escaped literal, reopen) — POSIX-portable
500
+ - fish: `\'` (fish's actual single-quote escape) — unchanged
501
+
502
+ ### Added
503
+
504
+ - **`completion.test.ts`** — runs `zsh -n` / `bash -n` against the
505
+ generated scripts to lock the regression. Catches future quoting bugs
506
+ before they ship.
507
+
508
+ **Action for existing users:** re-run `solid completion install` (or
509
+ `solid setup`) after upgrading. Reload the shell.
510
+
511
+ ## [2.2.2] — 2026-04-27
512
+
513
+ **Hardening release for the magic-link install path.**
514
+ No public CLI surface change — every command behaves the same — but
515
+ several quiet correctness + security wins for the `--install-token` flow
516
+ shipped in 2.2.0/2.2.1.
517
+
518
+ ### Added
519
+
520
+ - **`SOLID_INSTALL_TOKEN` env var as the preferred input** for
521
+ `solid setup`. argv (`--install-token <token>`) still works, but
522
+ the CLI now warns when used because tokens on argv are visible in
523
+ process listings (`ps -ef`) for the lifetime of the process.
524
+ install.sh already sets the env var; users + automation should
525
+ prefer it directly.
526
+ - **`SOLID_INSTALL_TOKEN_TIMEOUT_MS` env override** for the exchange
527
+ call. Production stays at 30s; tests can drop to 200ms. Clamped to
528
+ `[50ms, 120s]` so a misconfigured shell can't disable the safety.
529
+ - **3 regression tests** locking the post-2.2.1 fixes (timeout path,
530
+ token-byte leak prevention, anti-leak prefix phrasing).
531
+ - **Cross-repo contract test** — fetches the live `install.sh` and
532
+ asserts (a) it references `SOLID_INSTALL_TOKEN`, (b) it uses the
533
+ same prefix the CLI validates. Network-gated via
534
+ `SOLID_RUN_NETWORK_TESTS=1`. Run on a daily cron — when it fails,
535
+ the cross-repo contract has drifted.
536
+
537
+ ### Changed
538
+
539
+ - The timeout error message now reflects the actual configured timeout
540
+ instead of a hardcoded "30s" string.
541
+
542
+ ## [2.2.1] — 2026-04-27
543
+
544
+ **Quiet fixes on top of 2.2.0 — no public CLI behavior change.**
545
+ Backfilled CHANGELOG entry; the version was published without one.
546
+
547
+ ### Fixed
548
+
549
+ - **Hash corruption on partial download** — install scripts now use
550
+ `rm -f` + a `downloaded=false` flag + `[ ! -s "$file" ]` guard so
551
+ a half-downloaded tarball can't pass verification.
552
+ - **Indefinite hang on unreachable backend** — `solid setup
553
+ --install-token` now uses `AbortSignal.timeout(30_000)` and
554
+ discriminates `TimeoutError` / `AbortError` from generic network
555
+ errors in the failure detail.
556
+ - **User-supplied token bytes leaking into stderr** — bad-prefix
557
+ validation no longer echoes the supplied value; the message reads
558
+ `--install-token must start with "ist_" (got something else)`.
559
+ - **Workflow re-run safety** — auto-bump CI uses `git checkout -B` +
560
+ `--force-with-lease` so a re-run on the same tag doesn't choke on
561
+ a stale local branch.
562
+
563
+ ### CI
564
+
565
+ - Added Node 20 + 22 matrix (dropped 18); `npm audit --omit=dev` +
566
+ `audit-ci`; secret-scan; company-isolation grep;
567
+ version-consistency check (`pkg.version === solid --version`);
568
+ tarball install smoke; and a static dep verifier
569
+ (`scripts/verify-runtime-deps.mjs`) catching the v2.1.0 regression
570
+ class.
571
+
572
+ ## [2.2.0] — 2026-04-26
573
+
574
+ **Phase 3 of `SPRINT-CLI-ONE-COMMAND-ONBOARDING` — magic-link auth.**
575
+ A logged-in dashboard user mints a single-use `ist_*` token at
576
+ `/dashboard/install-command`, embeds it in their install command,
577
+ and the CLI redeems it for real auth in one paste — no browser
578
+ dance, no second login.
579
+
580
+ ### Added
581
+
582
+ - **`solid setup --install-token <ist_*>`** — redeem an install
583
+ token from the dashboard for a real CLI session. Single-use,
584
+ 5-minute TTL, scope-bound to the minting user's company. Skips
585
+ the browser auth step entirely.
586
+ - **install.sh + install.ps1** forward the `SOLID_INSTALL_TOKEN`
587
+ env var to `solid setup`, enabling one-paste install + auth:
588
+ ```
589
+ curl -fsSL https://solidnumber.com/install.sh | SOLID_INSTALL_TOKEN=ist_xxx sh
590
+ ```
591
+ - **Homebrew tap** at `Solidnumber/homebrew-tap` —
592
+ `brew install solidnumber/tap/cli` is live.
593
+ - **Scoop bucket** at `Solidnumber/scoop-bucket` —
594
+ `scoop install solidnumber/solid` is live.
595
+ - Auto-bump CI workflows in `.github/workflows/` open PRs to
596
+ both registries on every `v*` tag.
597
+
598
+ ### Notes
599
+
600
+ - Backend ships two new endpoints (`POST /api/v1/auth/install-token`
601
+ and `/install-token/exchange`). Token exchange is CSRF-exempt
602
+ because the token IS the auth — replays return 401 + audit event.
603
+ - winget is in the backlog pending a self-contained Windows binary.
604
+ Tracked at `Owners-Manual/98-Backlog/CLI-WINGET-NATIVE-WINDOWS.md`.
605
+
606
+ ## [2.1.1] — 2026-04-26
607
+
608
+ **Critical fix.** v2.1.0 was published without `lighthouse` declared
609
+ as a runtime dependency — `solid audit a11y|perf|mobile <slug>`
610
+ would fail with `Cannot find module 'lighthouse'` for every fresh
611
+ install. Caught by deploy gate; v2.1.1 ships the dep correctly.
612
+
613
+ ### Fixed
614
+
615
+ - **`lighthouse@^13.1.0` now declared in `dependencies`** of
616
+ `@solidnumber/cli/package.json` (was only in the parent monorepo's
617
+ `package.json` due to `npm install` running from the wrong cwd).
618
+ Fresh installs of v2.1.1 now have lighthouse available; v2.1.0
619
+ installs need to upgrade.
620
+
621
+ ### Security
622
+
623
+ - **Added `overrides.minimatch: ^9.0.7`** to force a non-vulnerable
624
+ `minimatch` in the dep tree. lighthouse → @sentry/node → minimatch
625
+ pulled in `9.0.3` which has 3 ReDoS advisories
626
+ (GHSA-3ppc-4f35-3m26, GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74).
627
+ `npm audit --omit=dev`: 0 vulnerabilities.
628
+
629
+ ## [2.1.0] — 2026-04-25
630
+
631
+ **Agents can now see what they ship.** Closes Phase 1 of
632
+ SPRINT-CLI-AGENT-CAN-SHIP — the four highest-leverage visible-gap
633
+ fixes. The agent's read graph + write graph + visual outcome are now
634
+ inspectable from the CLI without reaching for a browser.
635
+
636
+ ### Added
637
+
638
+ - **`solid render <slug> --png`** — headless screenshot of any page
639
+ or breakpoint. Returns a path the agent can attach to its reasoning.
640
+ Supports named breakpoints (`mobile`, `tablet`, `desktop`, `full`),
641
+ custom `--viewport WxH`, `--full-page`, `--wait <ms>`, multiple
642
+ breakpoints in one call, `--json` output, `--out <dir>` override.
643
+ - **`solid render --install`** — one-time Chromium download (~150MB)
644
+ into `~/.solid/chromium/`. Auto-prompted on first `render`/`audit`
645
+ invocation in interactive contexts; non-interactive contexts (CI,
646
+ agents) get a clear "run `solid render --install`" hint or
647
+ auto-install via `SOLID_AUTO_INSTALL=1`.
648
+ - **`solid schema blocks --examples`** — canonical example JSON per
649
+ block type. Agents copy/paste; no inferring from the source. Uses
650
+ domain-aware placeholders (headline → marketing copy, image →
651
+ placehold.co, cta_url → /signup, enums → first sane value). Hand-
652
+ written examples in the schema win over synthesized ones.
653
+ `--type <name>` for one block; `--json` for the full
654
+ `{examples, count}` envelope.
655
+ - **`solid audit a11y|perf|mobile <slug>`** — Lighthouse-driven page
656
+ quality scoring on top of `solid seo audit`. Supports
657
+ `--threshold <0..100>` (exit 1 if score below — CI-gateable),
658
+ `--keep-raw`, `--json`. Mobile is a form-factor toggle (throttled
659
+ network + viewport). Reuses the same Chromium that powers
660
+ `solid render`.
661
+ - **`Owners-Manual/45-Developer-CLI/CUSTOM-MODULES.md`** — canonical
662
+ agent-friendly answer to "what IS a custom module?" File layout,
663
+ lifecycle, where each piece runs, multi-tenancy guarantee, and a
664
+ side-by-side comparison with industry templates so agents stop
665
+ confusing the two.
666
+
667
+ ### Dependencies
668
+
669
+ - **`puppeteer-core@^24`** — runtime browser automation (~9 MB).
670
+ - **`@puppeteer/browsers@^2`** — programmatic Chromium installer.
671
+ - **`lighthouse@^13`** — quality auditing.
672
+
673
+ Total install footprint added: ~30 MB. Chromium itself is downloaded
674
+ on first use (~150 MB), not bundled — most CLI users never run
675
+ `render`/`audit` and pay zero browser cost.
676
+
677
+ `npm audit --omit=dev`: 0 vulnerabilities.
678
+
679
+ ### Sprint context
680
+
681
+ This is **Phase 1** of SPRINT-CLI-AGENT-CAN-SHIP — the subset
682
+ shippable in ~3 days as one cohesive release. Phase 2 covers the
683
+ heavier items: `solid serve --proxy`, `solid pages diff --visual`,
684
+ `solid pages translate`, `solid pages preview --shareable-url`,
685
+ integration manifests + OAuth-test + typed clients, app templates +
686
+ data model + marketplace publish. Tracked in
687
+ `Owners-Manual/98-Backlog/`.
688
+
689
+ ### Verification
690
+
691
+ - 921/921 tests green (888 → 921, +33 unit + integration tests).
692
+ - Lighthouse extract logic, browser install resolution, viewport
693
+ parsing, breakpoint resolution, URL construction, output filename
694
+ generation, block-example synthesis (placeholders, types, enums,
695
+ hand-written precedence) all covered.
696
+ - `solid schema blocks --examples --json` smoke-tested in CI.
697
+
698
+ ## [2.0.1] — 2026-04-25
699
+
700
+ **A+.7 — top-15 command surface smoke coverage.** Catches the most-
701
+ common regression class: "user installs the CLI, types
702
+ `solid <cmd> --help`, gets a stack trace instead of help text."
703
+
704
+ ### Added
705
+
706
+ - **23 new smoke tests** in `__tests__/integration/smoke.test.ts`,
707
+ bringing the suite from 12 → 35 tests:
708
+ - `--help` render checks for kb, services, clone, audit, doctor,
709
+ status, schema, mcp, chains, domains, insights, nest, dev, health,
710
+ context, graph, push (each with hand-picked load-bearing tokens)
711
+ - Real-shape tests: `schema verbs --json` parses + has 50+ verbs;
712
+ `graph --offline` exits 1 with no local file; `graph --query`
713
+ without arg is usage error; `--dry-run` + `--queue` global flags
714
+ are parseable; `completion` works for zsh + bash + fish.
715
+ - 858/858 tests green (was 835).
716
+
717
+ ### Why this matters for the S-grade goal
718
+
719
+ Top-20 CLIs are top-20 partly because they don't crash on
720
+ first-touch. Every regression class our existing suite caught
721
+ (silent failures, exit codes, secret-scanner false positives,
722
+ package-lock drift) was a per-incident fix. Smoke coverage is the
723
+ preventive layer: every command's help renders without crashing,
724
+ verified on every CI run.
725
+
726
+ ### What's still uncovered
727
+
728
+ - Mocked-backend E2E tests (assert exit code + stdout shape against
729
+ recorded backend responses) — still ~3-5 days of work for full
730
+ top-20 backend coverage.
731
+ - The other ~50 commands without test files (most are low-traffic
732
+ or already covered by lib-level unit tests).
733
+
734
+ ## [2.0.0] — 2026-04-25
735
+
736
+ **v2.0.0 — agent-ready by default.** The structured JSON error
737
+ envelopes shipped behind `SOLID_JSON_V2=1` since 1.10.0 are now ON
738
+ by default. Every `--json` invocation gets the structured envelope
739
+ without ceremony. Closes the v2.0.0 default-flip on the SPRINT-CLI-V2-
740
+ AGENT-READY sprint.
741
+
742
+ ### Breaking change
743
+
744
+ - **Default `--json` shape now ships the structured error envelope.**
745
+ When a `--json` invocation hits an error, stdout receives:
746
+
747
+ {
748
+ "error": {
749
+ "code": "NOT_FOUND",
750
+ "status": 404,
751
+ "message": "...",
752
+ "hint": "...",
753
+ "docs_url": "...",
754
+ "scope": "...",
755
+ "feature": "...",
756
+ "upgrade_to": "...",
757
+ "request_id": "..."
758
+ }
759
+ }
760
+
761
+ In 1.x this was opt-in via `SOLID_JSON_V2=1`. AI agents and
762
+ scripts that wanted the structured shape had to set the env var.
763
+ In 2.0.0 it's the default — agents work out of the box.
764
+
765
+ ### Backward compatibility
766
+
767
+ - **Opt-out: `SOLID_LEGACY_ERRORS=1`** restores the 1.x prose-style
768
+ errors for any script that depends on the old shape.
769
+ - **`SOLID_JSON_V2=1` is still honored** (it just no longer matters,
770
+ since the default is already on). Scripts that explicitly opt in
771
+ need no changes.
772
+ - **List envelope normalization** (the `{items, total, page}` shape
773
+ added in 1.10) is unchanged — already on by default; opt-out via
774
+ `SOLID_LEGACY_LIST_SHAPES=1` still works.
775
+
776
+ ### Why now
777
+
778
+ The agent-ready features (T1.1 structured errors, T1.2 dry-run
779
+ validation, T1.3 schema verbs, T1.4 list envelopes, T1.5 MCP serve,
780
+ T1.6 doctor scopes) shipped in 1.10.0 (2026-04-15) but stayed
781
+ gated behind `SOLID_JSON_V2=1`. AI agents that didn't know to set
782
+ the env var got the legacy shape. Flipping to default-on closes the
783
+ "why does the same CLI behave differently for different agents"
784
+ gap and is the single biggest functionality grade unlock — it's
785
+ what makes the agent-ready sprint actually visible.
786
+
787
+ ### Verification
788
+
789
+ - 835/835 tests green. The legacy-prose path now requires explicit
790
+ `SOLID_LEGACY_ERRORS=1`; the new default test covers the flipped
791
+ behavior; backward-compat path with `SOLID_JSON_V2=1` still
792
+ yields the structured envelope.
793
+
794
+ ## [1.26.0] — 2026-04-25
795
+
796
+ **Full SPARQL 1.1 (online).** Closes A+.5b of SPRINT-JSONLD-GRAPH-MOAT.md.
797
+ The CLI's offline BGP matcher handles SELECT + multi-pattern joins;
798
+ this release adds `--server` to route to the backend's full SPARQL
799
+ endpoint for OPTIONAL, FILTER, property paths, UNION, GROUP BY,
800
+ ORDER BY, LIMIT.
801
+
802
+ ### Added
803
+
804
+ - **`solid graph --query <sparql> --server`** — POSTs the query to
805
+ `/api/v1/cli/context/query`. The backend uses rdflib's full SPARQL
806
+ 1.1 implementation. Same output shape as the offline matcher
807
+ (`{vars, bindings}`) so the table render works identically.
808
+
809
+ ### Backend
810
+
811
+ - New endpoint `POST /api/v1/cli/context/query` shipped in
812
+ `solid-backend` 1dc7306. Tenant scope is JWT-derived (cross-tenant
813
+ query is impossible by construction). Response carries both the
814
+ SPARQL 1.1 spec shape (`head.vars` + `results.bindings` with
815
+ type-tagged terms) AND the CLI-friendly flat shape.
816
+
817
+ ### Verification
818
+
819
+ - 835/835 CLI tests green (1 new flag-parse test).
820
+ - 18/18 backend RDF-suite tests green (7 new SPARQL tests covering
821
+ SELECT, OPTIONAL, FILTER, URI classification, empty/invalid query
822
+ rejection, zero-match).
823
+
824
+ ## [1.25.0] — 2026-04-25
825
+
826
+ **Auto-detect connectivity.** Closes A+.6b of SPRINT-JSONLD-GRAPH-MOAT.md.
827
+ The "holy shit" moment: lose wifi mid-mutation, the CLI auto-queues
828
+ without erroring; regain wifi, the next successful mutation auto-replays
829
+ the entire queue. No flag, no ceremony — it just works.
830
+
831
+ ### Added
832
+
833
+ - **Auto-queue on network failure.** When a mutation hits
834
+ `ECONNREFUSED` / `ENOTFOUND` / `ECONNABORTED` / `ECONNRESET` /
835
+ `EAI_AGAIN` / "Network Error", the api-client interceptor
836
+ intercepts the failure and writes the mutation to `.solid/queue/`
837
+ (same JSON-LD format as explicit `--queue` mode). User sees:
838
+
839
+ [QUEUED — offline] connection failed; mutation saved.
840
+ Replay automatically on the next online command, or run: solid push --flush
841
+
842
+ The mutation's success path runs as if the server returned 202.
843
+ Caller code doesn't need to know.
844
+
845
+ - **Auto-flush on next online mutation.** A successful mutation
846
+ response proves connectivity. The api-client response interceptor
847
+ drains the queue silently in the background. User sees:
848
+
849
+ [auto-flush] replayed 4 queued mutations.
850
+
851
+ Re-entry is guarded so the replay's own success doesn't trigger
852
+ another flush attempt. Best-effort: a failure on one queued
853
+ mutation leaves it in queue; the rest still get a chance.
854
+
855
+ ### Excluded
856
+
857
+ - `/auth/login` and `/auth/refresh` are NOT auto-queued — replaying
858
+ them on reconnect would loop or create duplicate sessions.
859
+ - Queue mode (`--queue`) supersedes auto-flush: explicitly armed
860
+ offline mode never triggers auto-replay.
861
+
862
+ ### Verification
863
+
864
+ - `npm test`: 834/834 green (24 unit tests on the queue alone — 18
865
+ for the file format + 6 for auto-flush behavior).
866
+ - Re-entry guard: a recursive auto-flush attempt during an in-flight
867
+ flush returns zero-stats instead of double-dispatching. Verified
868
+ by test.
869
+ - Tested edge cases: empty queue is a no-op; failed dispatches stay
870
+ in queue for retry; chronological order preserved.
871
+
872
+ ## [1.24.0] — 2026-04-25
873
+
874
+ **Offline mutation queue.** Closes A+.6 (happy path) of
875
+ SPRINT-JSONLD-GRAPH-MOAT.md. Read side was already offline via
876
+ `.claude/solid-context.jsonld`; write side now is too. Field agents,
877
+ travel, air-gapped demos.
878
+
879
+ ### Added
880
+
881
+ - **`--queue` global flag** (also `SOLID_OFFLINE_QUEUE=1` env var) —
882
+ arms offline mode. With it on, every mutation (POST/PUT/PATCH/DELETE)
883
+ is written to `.solid/queue/<utc>-<uuid>.jsonld` instead of being
884
+ dispatched. The mutation file is itself a JSON-LD document
885
+ (`@type: solid:QueuedMutation`) so `solid graph` over the queue
886
+ directory can introspect what's pending.
887
+ - **`solid push --flush`** — replay every queued mutation in
888
+ chronological order. Idempotency keys travel with each mutation so
889
+ retries are safe. Successful files are deleted; failed files stay
890
+ in queue for the next attempt.
891
+ - **`lib/offline-queue.ts`** — pure module: `enqueue`, `readQueue`,
892
+ `deleteQueued`, `queueSize`, plus the mode-toggle plumbing that
893
+ mirrors the dry-run pattern.
894
+
895
+ ### Behavior
896
+
897
+ - Reads pass through unchanged (the read side already supports offline).
898
+ - Queue mode supersedes dry-run: if both armed, queue wins (dry-run
899
+ is fire-and-forget, queue preserves state for replay).
900
+ - The api-client interceptor (same layer as `--dry-run`) intercepts
901
+ before any network I/O, so `--queue` works with zero connectivity.
902
+ - File names are `<UTC-timestamp>-<UUID>.jsonld` so a directory
903
+ listing IS chronological order.
904
+ - `readQueue` skips malformed files with a stderr warning rather
905
+ than failing — one bad file shouldn't block the rest from
906
+ replaying.
907
+
908
+ ### What's NOT shipped (deferred to A+.6b)
909
+
910
+ - **Conflict resolution.** If the queued mutation conflicts with
911
+ current server state on replay (e.g., the resource was deleted
912
+ while you were offline), v1 surfaces the backend's error and
913
+ preserves the queue file. v1.1 will add a `solid:conflictsWith`
914
+ IRI in the response and an interactive resolver.
915
+ - **Idempotency-Key header send.** Each queue file has an
916
+ idempotencyKey field; v1 doesn't yet thread it as an HTTP header
917
+ through `apiClient.{post,put,patch,delete}` because per-call
918
+ headers aren't in the v1 wrapper signature. The key still serves
919
+ as the de-dup token in the file format for client-side
920
+ deduplication.
921
+ - **Auto-detect connectivity.** v1 requires explicit `--queue`. v1.1
922
+ could fall back to the queue when an axios `ECONNREFUSED` /
923
+ network error fires.
924
+
925
+ ### Verification
926
+
927
+ - `npm test`: 828/828 green (18 unit + 3 integration tests).
928
+ - File format is a valid JSON-LD document (verified via the
929
+ `solid graph --offline` walker on a hand-placed queue dir).
930
+
931
+ ## [1.23.0] — 2026-04-25
932
+
933
+ **SPARQL BGP query.** Closes A+.5 of SPRINT-JSONLD-GRAPH-MOAT.md (offline
934
+ half) — answer "show me every Service provided by companies on builder
935
+ tier" as a graph query, not an array join.
936
+
937
+ ### Added
938
+
939
+ - **`solid graph --query <sparql>`** — minimal SPARQL Basic Graph Pattern
940
+ engine, runs in-process against the loaded graph. Works offline (the
941
+ bundled `.claude/solid-context.jsonld`) and remote (auto-fetches via
942
+ the existing `loadDocument` path). Output: a table by default,
943
+ `--json` emits the structured `{vars, bindings}` shape (SPARQL 1.1
944
+ results spec).
945
+ - **`lib/sparql-bgp.ts`** — pure functions:
946
+ - `parseQuery(text)` → typed AST with PREFIX expansion
947
+ - `materializeTriples(doc)` → flat (s, p, o) triples
948
+ - `runQuery(query, doc)` → de-duplicated bindings
949
+ - `query(text, doc)` → convenience parse-and-run
950
+
951
+ ### Supported
952
+
953
+ - `SELECT ?var ?var WHERE { ?s ?p ?o . ?s2 ?p2 ?o2 . }`
954
+ - `SELECT *` (binds every variable in WHERE)
955
+ - `PREFIX foo: <http://...>` plus always-on `schema:`, `solid:`, `rdf:`
956
+ - `a` shorthand for `rdf:type`
957
+ - IRI terms, prefixed names, string literals (`"..."`), numeric literals
958
+ - Multi-pattern joins (variable bindings carry forward)
959
+ - List-valued JSON-LD predicates expand to multiple matches
960
+ - Triple terminator `.` properly handled inside `<...>` IRIs and quoted
961
+ literals
962
+ - Result rows de-duplicated (DISTINCT-by-default for projection)
963
+
964
+ ### Not supported (use the RDF export + a real SPARQL engine)
965
+
966
+ - `OPTIONAL { ... }`
967
+ - `FILTER (...)`
968
+ - Property paths (`?s schema:knows+ ?o`)
969
+ - `UNION` / `MINUS`
970
+ - `GROUP BY` / `ORDER BY` / `LIMIT` (pipe through `head` / `sort`)
971
+ - Named graphs / `GRAPH ?g { ... }`
972
+
973
+ For those: `solid graph --dump nquads | apache-jena-fuseki tdbloader2`
974
+ and run full SPARQL there.
975
+
976
+ ### Verification
977
+
978
+ - `npm test`: 807/807 green (18 unit + 4 integration tests).
979
+ - 10 canned queries from the spec all green: tier holders, services
980
+ by category, agents handling a category, webhooks firing chains,
981
+ type counts, services by provider, KB by category, chained joins,
982
+ predicate-counts, zero-match.
983
+ - Plus join-semantics (var bound twice must agree), DISTINCT
984
+ projection, list-valued predicates, and parser sanity.
985
+
986
+ ## [1.22.0] — 2026-04-25
987
+
988
+ **Graph diff.** Closes A+.4 of SPRINT-JSONLD-GRAPH-MOAT.md — answer
989
+ "what changed in my tenant since X" structurally, not by log-grepping.
990
+
991
+ ### Added
992
+
993
+ - **`solid graph --diff <baseline>`** — load a baseline `.jsonld` file,
994
+ compare against the currently loaded graph (offline file or remote
995
+ fetch), report added / removed / modified nodes with per-predicate
996
+ operations in JSON-Patch style. Pretty-prints by default; `--json`
997
+ emits the structured report.
998
+ - **Exit code is the diff signal.** 0 if graphs are identical, 1 if
999
+ any change. Lets you gate CI on graph stability:
1000
+ `solid graph --diff baseline.jsonld --offline || echo "tenant drifted"`.
1001
+ - **`lib/graph-diff.ts`** — pure function `diff(before, after)` so
1002
+ consumers (eventually `solid graph --since 2d`) can reuse the
1003
+ primitive.
1004
+
1005
+ ### Behavior
1006
+
1007
+ - Identity is `@id`. Anonymous nodes (no `@id`) are skipped — diffing
1008
+ them produces phantom add+remove churn that's never useful.
1009
+ - `@type` array order is normalized — reordering a node's types is
1010
+ not a modification.
1011
+ - Edge changes appear as predicate changes on the source node (every
1012
+ JSON-LD edge is a predicate value), not as separate edge entries.
1013
+ - Stable output ordering: nodes sorted by `@id`, predicates sorted
1014
+ alphabetically. Deterministic for snapshots and CI gates.
1015
+
1016
+ ### Verification
1017
+
1018
+ - `npm test`: 785/785 green (11 lib + 3 integration tests).
1019
+ - 8 acceptance scenarios from the spec all green: zero-diff,
1020
+ add/remove × node + edge, modify (rename, predicate add, predicate
1021
+ remove), plus tenant-isolation and @type-reorder invariants.
1022
+
1023
+ ## [1.21.0] — 2026-04-25
1024
+
1025
+ **RDF export.** Closes A+.2 of SPRINT-JSONLD-GRAPH-MOAT.md — the
1026
+ tenant graph is now ingestable into any RDF store (Neo4j, Fuseki,
1027
+ Blazegraph, GraphDB, Neptune) without going through JSON-LD.
1028
+
1029
+ ### Added
1030
+
1031
+ - **`solid graph --dump nquads`** — converts the loaded JSON-LD context
1032
+ to N-Quads and prints to stdout. Pipe to a file, a graph store
1033
+ ingester, or `rdfox load` / `tdbloader`. Works **offline** (uses
1034
+ the local `.claude/solid-context.jsonld` and the bundled `jsonld`
1035
+ npm lib) so AI agents bound to a tenant dir can dump without
1036
+ network.
1037
+ - **`solid graph --dump turtle`** — same idea, Turtle format.
1038
+ Currently requires the backend (it fetches `?format=turtle` from
1039
+ `/api/v1/cli/context`); offline turtle errors with a hint pointing
1040
+ to nquads. Adding offline turtle is a future patch — N-Quads is
1041
+ the canonical lossless format every RDF store accepts, so this
1042
+ doesn't block any real workflow.
1043
+
1044
+ ### Dependencies
1045
+
1046
+ - **Added `jsonld@^9.0.0`** as a runtime dep (~2 MB unpacked). This
1047
+ is the canonical JSON-LD reference implementation; we use its
1048
+ `toRDF()` for offline conversion. `npm audit --omit=dev`: 0 vulns.
1049
+
1050
+ ### Verification
1051
+
1052
+ - `npm test`: 771/771 green (5 new in `graph-dump.test.ts`).
1053
+ - `tsc --noEmit`: clean.
1054
+ - Round-trip verified: every IRI from a fixture JSON-LD doc survives
1055
+ `--dump nquads` as either subject or object position.
1056
+
1057
+ ## [1.20.1] — 2026-04-25
1058
+
1059
+ **License reconciliation.** Closes Phase 0.3 of the AI Stack
1060
+ Sovereignty sprint — three drifted spellings of the same license,
1061
+ one of them ("MIT" in the README footer) actively wrong.
1062
+
1063
+ ### Fixed
1064
+
1065
+ - **`package.json` license: `BSL-1.1` → `BUSL-1.1`** — the SPDX
1066
+ license list standardized "Business Source License 1.1" to
1067
+ identifier `BUSL-1.1` in 2023. The non-standard `BSL-1.1` rendered
1068
+ as "Custom" on npm and broke GitHub's license detection. Now
1069
+ recognized correctly by tooling (npm, FOSSA, Snyk, GitHub).
1070
+ - **README footer: `## License\n\nMIT` → BSL-1.1 with plain-English
1071
+ summary.** The footer was outright wrong (claimed MIT) while
1072
+ `package.json` and `LICENSE` both correctly said BSL-1.1. The new
1073
+ section names what's permitted (read source, build on the SDK,
1074
+ run for your own business, ship internal tools), what's not
1075
+ (competing commercial CLI for AI-powered business infrastructure),
1076
+ and the 2030-04-14 conversion to Apache 2.0.
1077
+
1078
+ The `LICENSE` file (full BSL-1.1 text + additional use grant) was
1079
+ already correct; this patch only fixes the references.
1080
+
1081
+ ### Verification
1082
+
1083
+ - `npm test`: 766/766 green.
1084
+ - `npm view @solidnumber/cli@1.20.1 license` will return `BUSL-1.1`
1085
+ after publish.
1086
+
1087
+ ## [1.20.0] — 2026-04-25
1088
+
1089
+ **CI green patch.** Closes Phase 0.2 of the AI Stack Sovereignty
1090
+ sprint — five red CI runs in a row, two distinct root causes.
1091
+
1092
+ ### Breaking
1093
+
1094
+ - **Drop Node.js 18 support.** Node 18 reached EOL on 2025-04-30 and
1095
+ several runtime deps (notably `inquirer@9`, ESM-only) no longer
1096
+ load via CommonJS `require()` on Node 18, producing
1097
+ `ERR_REQUIRE_ESM` on every command. Minimum is now Node 20.
1098
+ `engines.node` updated to `>=20.0.0`. Users on Node 18 should
1099
+ upgrade to Node 20 LTS or 22 LTS.
1100
+
1101
+ ### Fixed
1102
+
1103
+ - **CI matrix: Node 18 dropped, kept 20 + 22.** Was failing
1104
+ `test (18)` because of the ESM/CJS interop break described above.
1105
+ - **CI security job: `npm audit --omit=dev`.** Was failing on the
1106
+ `@typescript-eslint/*` dev-only advisory chain — vulns shielded
1107
+ from user installs since dev deps don't ship to npm. Now matches
1108
+ the `audit:prod` script in `prepublishOnly`. Same flag passed to
1109
+ `audit-ci` (`--skip-dev`).
1110
+
1111
+ ### Verification
1112
+
1113
+ - 766/766 tests green locally.
1114
+ - `npm audit --omit=dev`: 0 vulns.
1115
+ - CI matrix builds + tests on Node 20 and 22.
1116
+
1117
+ ## [1.19.5] — 2026-04-24
1118
+
1119
+ **Truth-in-advertising patch.** Closes Phase 0.9 of the AI Stack
1120
+ Sovereignty sprint — the README banner numbers were stale and
1121
+ undercounting the actual CLI surface by ~3×.
1122
+
1123
+ ### Fixed
1124
+
1125
+ - **README banner now matches the program registry.** Was: "86
1126
+ top-level commands, 200+ subcommands". Reality: 96 top-level,
1127
+ 595 subcommands. Updated to "96 top-level commands, 500+
1128
+ subcommands".
1129
+
1130
+ ### Added
1131
+
1132
+ - **`marketing-numbers-drift.test.ts`** — runs `dist/index.js schema
1133
+ verbs --json` against the built CLI and asserts the README banner
1134
+ is in sync with the registry. Top-level number must match exactly;
1135
+ subcommand count must be `≤ actual && ≥ floor(actual/100)*100`.
1136
+ Drift now fails CI before publish.
1137
+
1138
+ ### Verification
1139
+
1140
+ - `npm test`: 766/766 green (two new tests).
1141
+ - README banner now matches `solid schema verbs --json` output.
1142
+
1143
+ ## [1.19.4] — 2026-04-24
1144
+
1145
+ **Honesty patch.** Closes Phases 0.6 and 0.10 of the AI Stack
1146
+ Sovereignty sprint — eliminates the last placeholder assertion in the
1147
+ critical-security test file and brings dev dep versions current.
1148
+
1149
+ ### Fixed
1150
+
1151
+ - **`company-isolation.test.ts` no longer contains `expect(true).toBe(true)`**
1152
+ (Phase 0.6) — the placeholder for "company switch requires a new
1153
+ JWT" is replaced with two real source-level contract assertions:
1154
+ one verifying that `commands/switch.ts` writes BOTH new tokens
1155
+ AND `companyId` back to config, and one verifying that the
1156
+ `companySwitch` API method's return type still includes
1157
+ `access_token` and `refresh_token`. A future refactor that breaks
1158
+ the new-JWT contract (e.g., dropping refresh_token, or only
1159
+ changing `X-Company-ID` while keeping the old JWT) will fail this
1160
+ test instead of silently regressing.
1161
+
1162
+ ### Changed
1163
+
1164
+ - **`@types/node` 20.19.33 → 20.19.39, `ts-jest` 29.4.6 → 29.4.9**
1165
+ (Phase 0.10) — within-semver dev dep updates. Major-version
1166
+ bumps for `chalk` / `ora` / `inquirer` / `commander` / `eslint` /
1167
+ `jest` / `typescript` are deferred to a dedicated migration sprint
1168
+ (ESM-only conversions and breaking API changes; not safe in a
1169
+ hygiene patch).
1170
+
1171
+ ### Verification
1172
+
1173
+ - `npm test`: 764/764 green (one new test added in 0.6).
1174
+ - `npm audit --omit=dev`: 0 vulns.
1175
+ - `tsc --noEmit`: clean.
1176
+
1177
+ ## [1.19.3] — 2026-04-24
1178
+
1179
+ **Hygiene batch.** Closes Phases 0.5, 0.7, 0.8, and 0.12 of the AI Stack
1180
+ Sovereignty sprint — four small but load-bearing gaps that an AI
1181
+ agent calling the CLI from a script would have hit silently.
1182
+
1183
+ ### Added
1184
+
1185
+ - **`solid kb search <query>`** (Phase 0.5) — first-class subcommand
1186
+ for the company-scoped full-text + semantic KB search. Was reachable
1187
+ before only via `solid kb list -q`, which is a different code path
1188
+ (title `ILIKE` filter, not the embedding-aware `/api/v1/kb/search`).
1189
+ Supports `--limit`, `--offset`, and `--json`. Exits non-zero on
1190
+ failure.
1191
+ - **Recursive unknown-command handler** (Phase 0.7) — `solid kb xyzzy`
1192
+ and every other typo at any subcommand level now exits 1 with a
1193
+ Levenshtein-suggested correction. Previously, only top-level typos
1194
+ exited 1; any subcommand typo silently exited 0, which broke
1195
+ pipelines that rely on exit codes to detect mistakes.
1196
+
1197
+ ### Changed
1198
+
1199
+ - **`__solid_dry_run` config flags now have a typed home** (Phase 0.12) —
1200
+ introduced `ExtendedAxiosRequestConfig`, `ExtendedAxiosError`, and
1201
+ `ExtendedRequestConfig` interfaces in `lib/api-client.ts`. Removed
1202
+ the 7 `as any` casts that were threading these flags through axios's
1203
+ typed config. The flags' lifecycle is now self-documenting in the
1204
+ type system instead of a parade of escape hatches.
1205
+
1206
+ ### Removed
1207
+
1208
+ - **Source maps no longer ship to npm** (Phase 0.8) — added `*.js.map`
1209
+ and `*.d.ts.map` to `.npmignore`. They exposed original source paths
1210
+ to anyone who unpacked the tarball and added ~200 KB of dead weight
1211
+ to every install. Stack traces in production CLI usage are
1212
+ unaffected (they reference compiled paths).
1213
+
1214
+ ### Verification
1215
+
1216
+ - `npm test`: 763/763 green.
1217
+ - `tsc --noEmit`: clean.
1218
+ - Tarball size shrinks; install size for 1M+ AI-agent installs drops
1219
+ proportionally.
1220
+
1221
+ ## [1.19.2] — 2026-04-24
1222
+
1223
+ **Correctness patch.** Closes Phase 0.4 of the AI Stack Sovereignty
1224
+ sprint — the silent-failure bug that broke the scripting contract.
1225
+
1226
+ ### Fixed
1227
+
1228
+ - **109 silent-failure sites across 26 command files** — every catch
1229
+ block whose only error handling was `console.error(handleApiError(e).message)`
1230
+ (no `process.exit(1)`) now exits non-zero. Pipelines that depended
1231
+ on the documented `solid <verb> && next-step` contract no longer
1232
+ paper over backend failures.
1233
+ Files touched: `accounting`, `analytics`, `audit`, `billing`, `crm`,
1234
+ `dashboard`, `demo`, `dev`, `domains`, `export`, `inventory`,
1235
+ `llms`, `logs`, `notifications`, `pages`, `payment`, `sandbox`,
1236
+ `schedule`, `seo`, `services`, `status`, `storage`, `support`,
1237
+ `test`, `webhooks`, plus a JSDoc comment fix in `command-kit.ts`.
1238
+ - **Cleanup-before-exit preserved** in three catch blocks where
1239
+ follow-up code matters — `demo.ts` (state restoration after a
1240
+ failed company switch), `demo.ts` delete (helpful CLI hint about
1241
+ demo-company-only deletion), `test.ts` (loop continues counting
1242
+ failures and exits at end based on aggregate, not on first failure).
1243
+ - **Redundant `return` after `process.exit`** removed in `webhooks.ts`
1244
+ (exit is `never`-typed; return is unreachable).
1245
+
1246
+ ### Verification
1247
+
1248
+ - `npm test`: 763/763 green.
1249
+ - `npm audit --omit=dev`: 0 vulns (carried from v1.19.1).
1250
+ - `tsc --noEmit`: clean.
1251
+ - Audit script (verifies no exit-before-cleanup-code patterns left):
1252
+ pass.
1253
+
1254
+ ## [1.19.1] — 2026-04-24
1255
+
1256
+ **Security patch.** Closes the production CVEs that shipped in v1.19.0.
1257
+ A third-party audit on 2026-04-24 caught that the published tarball
1258
+ contained a vulnerable `axios@1.13.5` (NO_PROXY → SSRF; header
1259
+ injection → cloud-metadata exfil) plus a transitively vulnerable
1260
+ `handlebars@4.7.8` (critical) and minor regressions in
1261
+ `flatted` / `minimatch` / `picomatch`.
1262
+
1263
+ ### Security
1264
+
1265
+ - **`axios` 1.13.5 → 1.15.2** —
1266
+ closes [GHSA-3p68-rc4w-qgx5](https://github.com/advisories/GHSA-3p68-rc4w-qgx5)
1267
+ (NO_PROXY bypass → SSRF) and
1268
+ [GHSA-fvcv-3m26-pcqx](https://github.com/advisories/GHSA-fvcv-3m26-pcqx)
1269
+ (header injection → cloud-metadata exfiltration). `follow-redirects`
1270
+ also bumped to a non-vulnerable version
1271
+ ([GHSA-r4q5-vmmm-2653](https://github.com/advisories/GHSA-r4q5-vmmm-2653) —
1272
+ auth-header leak on cross-domain redirects).
1273
+ - **`handlebars` 4.7.8 → 4.7.9** — closes the
1274
+ critical-severity advisory chain (transitive via `ts-jest`; not
1275
+ reachable from runtime, but still patched).
1276
+ - **`flatted`, `minimatch`, `picomatch`** bumped to non-vulnerable
1277
+ versions in lockfile.
1278
+
1279
+ ### Changed
1280
+
1281
+ - **`prepublishOnly` adds `npm run audit:prod`** —
1282
+ `npm publish` now refuses if the production dependency tree
1283
+ (`npm audit --omit=dev --audit-level=high`) has any high or critical
1284
+ vulnerabilities. The local publish flow now catches what CI catches.
1285
+ Closes the gap that let v1.16.2 / v1.17.0 / v1.18.0 / v1.19.0 ship
1286
+ through a failing security job.
1287
+ - New script `audit:prod` for production-only audit (devDeps excluded
1288
+ from the gate so eslint / typescript / jest churn doesn't block
1289
+ releases that are clean for end users).
1290
+
1291
+ ### Verification
1292
+
1293
+ - `npm audit --omit=dev`: **0 vulnerabilities** in the production tree.
1294
+ - `npm test`: 763/763 green.
1295
+ - `npm pack --dry-run`: tarball builds cleanly.
1296
+
1297
+ ### Outstanding (deferred — won't block users)
1298
+
1299
+ - 6 high-severity advisories remain in the `@typescript-eslint`
1300
+ devDependency family (require a major version bump from v6/v7 to
1301
+ v8+, which needs a separate PR to verify the eslint config still
1302
+ builds). These are devDeps only — they don't ship in the published
1303
+ tarball, so end users are unaffected.
1304
+
1305
+ ## [1.16.1] — 2026-04-23
1306
+
1307
+ Gap-closure patch following the 1.16.0 tenant-guard ship. Tightens the
1308
+ same invariant in the one write-path command that was missed.
1309
+
1310
+ ### Added
1311
+
1312
+ - **`refuseProtectedRoot(baseDir)`** in `lib/tenant-guard.ts` — home-dir-
1313
+ only refusal helper for commands that CREATE the manifest and therefore
1314
+ can't call `requireTenantManifest` yet. Exits 1 if `baseDir` resolves
1315
+ to `$HOME` or `$HOME/.claude/`. Shares `isProtectedRoot` with the full
1316
+ guard so there's one source of truth.
1317
+ - **`isProtectedRoot`** now exported (was previously private).
1318
+
1319
+ ### Changed
1320
+
1321
+ - **`solid pull`** now calls `refuseProtectedRoot(baseDir)` before writing.
1322
+ Prevents scaffolding a tenant project (pages/, kb/, .solid/manifest.json)
1323
+ into the home directory, closing the symmetric gap to 1.16.0's `context`
1324
+ and `push` coverage.
1325
+ - **`pull.ts`** now imports `PullManifest` from `lib/tenant-guard.ts`
1326
+ instead of keeping its own inline duplicate. `push.ts` + `pull.ts` +
1327
+ `context.ts` all share one canonical type.
1328
+
1329
+ ### Tests
1330
+
1331
+ - 4 new cases in `__tests__/lib/tenant-guard.test.ts` covering
1332
+ `refuseProtectedRoot` and `isProtectedRoot`.
1333
+ - Suite: 709 / 709 passing.
1334
+
1335
+ ## [1.16.0] — 2026-04-23
1336
+
1337
+ Tenant context boundary guard. Closes a multi-tenant hygiene bug where
1338
+ `solid context --claude` would write tenant-scoped data to any directory
1339
+ the user happened to be in, including the platform monorepo and
1340
+ `$HOME/.claude/` (which is loaded by every Claude Code session on the
1341
+ machine).
1342
+
1343
+ ### Added
1344
+
1345
+ - **`lib/tenant-guard.ts`** — new shared guard module exporting
1346
+ `requireTenantManifest(baseDir, companyId)` and the pure testable variant
1347
+ `checkTenantManifest(...)`. Enforces three rules:
1348
+ 1. `$HOME` and `$HOME/.claude/` are never writeable (hard refusal, even
1349
+ if a manifest somehow existed there).
1350
+ 2. `<cwd>/.solid/manifest.json` must exist.
1351
+ 3. `manifest.company_id` must equal the active session's `company_id`.
1352
+ - **`PullManifest` interface** — exported from `lib/tenant-guard.ts` as the
1353
+ canonical type. `push.ts` now imports it from there instead of keeping
1354
+ its own copy.
1355
+ - Tests: `__tests__/lib/tenant-guard.test.ts`, `__tests__/commands/context.test.ts`.
1356
+
1357
+ ### Changed
1358
+
1359
+ - **`solid context --claude / --cursor / --codex / --save / --watch`** now
1360
+ calls `requireTenantManifest` before writing. Unbound directories exit 1
1361
+ with a friendly error instead of silently contaminating the filesystem.
1362
+ Read-only paths (`--summary`, `--tools-only`, `--section`, `--json` to
1363
+ stdout) are unchanged and remain usable in any directory.
1364
+ - **`solid push`** refactored to use the shared guard (previously had an
1365
+ inline duplicate check). Behavior equivalent; the extraction is proven
1366
+ by reuse.
1367
+
1368
+ ### Docs
1369
+
1370
+ - New canonical-truth doc:
1371
+ `Owners-Manual/03-AI-Systems/CLAUDE-CONTEXT-CANONICAL-TRUTH.md`
1372
+ consolidating the previously-dispersed Claude context architecture
1373
+ (three roles of CLAUDE.md, four flows-down channels, write model,
1374
+ refresh model, multi-tenant invariants).
1375
+ - Platform `CLAUDE.md` now references the canonical-truth doc as Rule 4b.
1376
+
1377
+ ### Fixed
1378
+
1379
+ - `solid context --claude` no longer writes into `$HOME`, the platform
1380
+ monorepo, or any directory whose bound `company_id` differs from the
1381
+ active session.
1382
+
1383
+ ## [1.10.0] — 2026-04-19
1384
+
1385
+ Sprint 1 — CLI v2 Agent-Ready. Six agent-quality-of-life upgrades ship
1386
+ in this release, all behind opt-in env flags so existing callers are
1387
+ unaffected until v2.0 flips defaults.
1388
+
1389
+ ### Added
1390
+ - **Structured JSON errors (T1.1)** — Enable with `SOLID_JSON_V2=1`.
1391
+ Under `--json + V2`, errors emit `{error:{code,status,message,scope?,
1392
+ feature?,upgrade_to?,hint?,request_id?}}` to stdout instead of prose
1393
+ to stderr. Closed `ErrorCode` vocabulary (12 codes): AUTH_REQUIRED,
1394
+ FORBIDDEN, FEATURE_GATED, SCOPE_MISSING, NOT_FOUND, VALIDATION_FAILED,
1395
+ CONFLICT, RATE_LIMITED, SERVER_ERROR, NETWORK_ERROR, TIMEOUT,
1396
+ DRY_RUN_BLOCKED. Honors backend-supplied envelope shapes.
1397
+ - **Dry-run existence verification (T1.2)** — Mutations with `--dry-run`
1398
+ now GET the resource URL first. If it 404s, the CLI surfaces
1399
+ NOT_FOUND instead of synthetic success. Closes the `solid pages
1400
+ update 99999 --dry-run` false-success lie. Skips for POST/collection
1401
+ and action endpoints where existence can't be probed.
1402
+ - **`solid schema verbs` (T1.3)** — Full CLI verb manifest for agent
1403
+ discovery. Walks the Commander tree, emits `{verb, path, description,
1404
+ options, args, subcommands, is_leaf}` per node. `--json` for machine
1405
+ consumption; `--include-hidden` surfaces normally-hidden verbs.
1406
+ - **Unified list envelopes (T1.4)** — Every list response now carries
1407
+ `.items` + `.total / .page / .has_more` regardless of whether the
1408
+ backend returned `pages`, `results`, `leads`, `logs`, `api_keys`, etc.
1409
+ Original keys preserved — no breakage. Opt out with
1410
+ `SOLID_LEGACY_LIST_SHAPES=1` (removes in next minor).
1411
+ - **`solid mcp install|serve|tools` (T1.5)** — Install Solid# into
1412
+ Claude Desktop / Cursor / Windsurf with one command; spawn the MCP
1413
+ server; list tools from the backend manifest. Auto-detects per-OS
1414
+ config paths, non-destructive merge preserves other MCP servers.
1415
+ - **`solid doctor scopes` (T1.6)** — Catches the silent-failure case
1416
+ where a tenant enables a feature after an API key was issued and the
1417
+ key lacks the implied scopes. Reports missing scopes + one-line
1418
+ rotation hint. Uses the same feature→scope map as the backend
1419
+ (services/scope_expansion.py).
1420
+
1421
+ ### Changed
1422
+ - `ApiError` now carries optional `code / hint / docs_url / scope /
1423
+ feature / upgrade_to / request_id`. Legacy string `message` still
1424
+ printed unchanged for humans.
1425
+ - Request interceptor issues a verify GET before short-circuiting
1426
+ resource-targeted PATCH/PUT/DELETE under `--dry-run`.
1427
+ - Response interceptor non-destructively aliases list arrays to
1428
+ `.items` — consumers that used to branch on `d.pages || d.items ||
1429
+ d.results` can simplify to `d.items`.
1430
+
1431
+ ### Internal
1432
+ - `CLI_VERSION` now exported from `src/lib/api-client.ts` so other
1433
+ modules don't re-read `package.json`.
1434
+ - New pure libraries: `error-codes`, `verb-manifest`, `list-envelope`,
1435
+ `mcp-client-config`, `scope-diagnostic`, `program-registry`. Each
1436
+ ships with a dedicated unit-test suite.
1437
+ - Full suite grew from **486 → 642 tests** (+156 new Sprint 1 cases).
1438
+ TypeScript + build clean.
1439
+
1440
+ ### Rollout (T1.7 two-step)
1441
+ - `1.10.0`: every new behavior is opt-in via env var. Old `--json`
1442
+ callers see exactly what they see today.
1443
+ - `2.0.0` (after soak, TBD): `SOLID_JSON_V2` defaults to on.
1444
+ `SOLID_LEGACY_LIST_SHAPES=1` preserves old envelope keys for one
1445
+ more minor before final removal.
1446
+
1447
+ ---
1448
+
1449
+ ## [1.7.3] — 2026-04-15
1450
+
1451
+ ### Added
1452
+ - `solid demo create plumber "Joe's" --expires 72h` — live demo with AI for sales meetings
1453
+ - `solid demo convert <id> --tier starter` — convert demo to paid via checkout link
1454
+ - `solid sandbox fork` — server-side sandbox (isolated copy via backend API)
1455
+ - `solid sandbox preview` — shareable preview URL for client approval
1456
+ - `solid sandbox promote` — push sandbox to production
1457
+ - `solid sandbox exit` — discard sandbox
1458
+ - `solid brand set --logo --domain --colors --email-from` — full white-label from CLI
1459
+ - `solid init my-app --type marketplace` — scaffold apps on Solid# (4 templates: basic, marketplace, saas, agency-dashboard)
1460
+ - `solid payment analytics` — payment volume, interchange savings, chargebacks
1461
+ - `solid payment connect stripe --account acct_123` — connect payment processor
1462
+ - `solid payment terminal --amount 49.99` — POS from the CLI
1463
+ - Tab completion for all new commands
1464
+
1465
+ ### Fixed
1466
+ - Inventory endpoints: corrected to /api/v1/Inventory/list, /get, /create, /adjust
1467
+ - Audit endpoint: /api/v1/audit/log → /api/v1/security/audit/logs
1468
+ - Token auto-refresh: isLoggedIn() no longer rejects expired tokens (interceptor handles refresh)
1469
+ - .npmignore: dist/__tests__/ excluded from npm package
1470
+
1471
+ ## [1.7.2] — 2026-04-14
1472
+
1473
+ ### Added
1474
+ - `solid dashboard` — cross-company overview for agencies (revenue, agents, health)
1475
+ - `solid api list/docs/call` — API explorer from the CLI (13 sections, 70+ endpoints)
1476
+ - `solid proposal "Business" --template plumber` — branded client proposals with tier pricing
1477
+ - `solid webhooks listen` — forward production webhooks to localhost for development
1478
+ - `solid webhooks test <event>` — send test webhook events to local server
1479
+ - `solid status --all` — quick view of all companies for agencies
1480
+ - `solid open --portal / --api-docs / --sdk / --webhooks` — open developer docs in browser
1481
+ - Developer portal, API docs, and SDK links in help output
1482
+
1483
+ ### Fixed
1484
+ - Refresh interceptor no longer nukes session on 401 (was wiping tokens on network blips)
1485
+ - Banner only shows on top-level `--help`, not subcommand help
1486
+ - Health `--full` hits correct endpoint `/api/v1/health`
1487
+ - 9 CLI bugs from QA audit (inbox, auth, services, SEO, flows, completion, analytics)
1488
+ - Chalk v5 → v4 for Node 18 compatibility
1489
+ - Version banner reads from package.json instead of hardcoded v1.0.0
1490
+
1491
+ ### Changed
1492
+ - License changed from MIT to BSL-1.1
1493
+ - `@anthropic-ai/sdk` moved to optionalDependencies
1494
+ - Dead `keytar` dependency removed
1495
+ - Platform docs `llms.txt` updated (v1.4.6 → v1.7.2, 47 → 62 commands)
1496
+
1497
+ ## [1.7.1] — 2026-04-14
1498
+
1499
+ ### Fixed
1500
+ - Banner version was hardcoded as v1.0.0 — now reads from package.json
1501
+ - Login used `expires_at` (undefined) instead of `expires_in` (seconds) from backend
1502
+ - Chalk v5 ESM-only — pinned to v4 for Node 18 compatibility
1503
+ - CI secrets scanner false positive on example `sk_live_...` text
1504
+ - 9 CLI bugs from QA audit:
1505
+ - Inbox crash on non-array API responses
1506
+ - `auth status` double-nested user object from `/me` endpoint
1507
+ - Services list hitting wrong endpoint (`/cms/public/services` → `/services/catalog`)
1508
+ - SEO audit sending empty body without `--url`
1509
+ - `health --full` hitting admin-gated endpoint — now uses `/api/v1/health`
1510
+ - Flows showing cryptic error instead of explaining CLI API key requirement
1511
+ - 14 commands missing from tab completion
1512
+ - Analytics dashboard showing blank instead of "no data" message
1513
+ - Health subcommand recursion removed — flags-only interface
1514
+
1515
+ ## [1.7.0] — 2026-04-12
1516
+
1517
+ ### Added
1518
+ - Sandbox Engine CLI — 10 new `solid dev` commands for isolated development
1519
+ - `solid logs` and `solid test` commands
1520
+ - `solid serve --preview` and `solid migrate --replace` flags
1521
+ - Services create/delete commands
1522
+ - 154 tests passing (up from 98)
1523
+
1524
+ ## [1.6.5] — 2026-04-10
1525
+
1526
+ ### Fixed
1527
+ - Replace `solid dev` stubs with redirects to real commands
1528
+
1529
+ ## [1.6.4] — 2026-04-09
1530
+
1531
+ ### Fixed
1532
+ - Build and packaging improvements
1533
+
1534
+ ## [1.6.3] — 2026-04-08
1535
+
1536
+ ### Fixed
1537
+ - Build and packaging improvements
1538
+
1539
+ ## [1.6.1] — 2026-04-06
1540
+
1541
+ ### Added
1542
+ - Full type safety — zero `any` casts across all 47 commands
1543
+ - 98 tests passing with CI/CD pipeline
1544
+
1545
+ ### Fixed
1546
+ - Live reload, npmignore, zero remaining gaps
1547
+
1548
+ ## [1.6.0] — 2026-04-04
1549
+
1550
+ ### Added
1551
+ - AI-powered import command (`solid import mockup.html`)
1552
+ - 7 new commands: import, sandbox, watch, dedicated droplets
1553
+ - Agency CMS workflow — full content management for client companies
1554
+ - CI/CD pipeline with company isolation security tests
1555
+ - 98 tests across 9 suites
1556
+
1557
+ ### Fixed
1558
+ - Removed all `as any` casts from api-client.ts
1559
+
1560
+ ## [1.5.0] — 2026-03-28
1561
+
1562
+ ### Added
1563
+ - `solid open`, `solid diff`, `solid serve` commands
1564
+ - CLI testing + deploy safety system
1565
+ - Push auto-snapshot with comprehensive unit tests
1566
+ - History, deploy, migrate, rollback commands with tests and docs
1567
+
1568
+ ## [1.4.6] — 2026-03-20
1569
+
1570
+ ### Fixed
1571
+ - Close CLI gaps — billing endpoints, domains, page generate, site regenerate
1572
+ - Synced llms.txt with platform
1573
+
1574
+ ## [1.4.5] — 2026-03-18
1575
+
1576
+ ### Added
1577
+ - `solid billing checkout-link` and `solid billing invoice` commands
1578
+
1579
+ ## [1.4.4] — 2026-03-16
1580
+
1581
+ ### Added
1582
+ - `solid site` commands + expanded `solid pages`
1583
+ - Site management and page delete API methods
1584
+
1585
+ ## [1.4.3] — 2026-03-14
1586
+
1587
+ ### Added
1588
+ - Billing, audit, notifications, domains commands
1589
+
1590
+ ## [1.4.2] — 2026-03-12
1591
+
1592
+ ### Added
1593
+ - Accounting, webhooks, support, export commands
1594
+
1595
+ ## [1.4.1] — 2026-03-10
1596
+
1597
+ ### Added
1598
+ - Analytics, SEO, insights, llms commands
1599
+
1600
+ ## [1.4.0] — 2026-03-08
1601
+
1602
+ ### Added
1603
+ - `solid context` — AI context package generation (CLAUDE.md, Cursor rules)
1604
+ - Watch mode for context regeneration
1605
+ - `solid payment` — Level 3 interchange CLI commands
1606
+
1607
+ ## [1.3.1] — 2026-03-05
1608
+
1609
+ ### Added
1610
+ - `solid design` command for AI-generated UI
1611
+
1612
+ ## [1.3.0] — 2026-03-02
1613
+
1614
+ ### Added
1615
+ - `solid explore` — Platform Intelligence Console with zero-setup API proxy
1616
+ - CRM, voice, inbox, schedule, reports, inventory, blog commands
1617
+ - Commerce flows, brand, widgets, ant farm commands
1618
+ - Agent consciousness commands — soul, reflect, emotions, spiral, missions
1619
+ - `solid connect` — import from Figma, Slack, Notion, CSV, WordPress, GitHub
1620
+
1621
+ ### Fixed
1622
+ - ASCII `#` character redesigned (looked like `4`)
1623
+ - Removed `--password` and `--token` CLI flags to prevent credential exposure
1624
+
1625
+ ### Security
1626
+ - Config file permissions set to 0600
1627
+
1628
+ ## [1.2.0] — 2026-02-20
1629
+
1630
+ ### Added
1631
+ - Multi-company commands + API key auth
1632
+ - Complete CLI with 16 commands, branded UI, AI training, clone templates
1633
+
1634
+ ## [1.0.0] — 2026-02-15
1635
+
1636
+ ### Added
1637
+ - Initial release — tenant-scoped business management CLI
1638
+ - Auth, status, KB, pages, pull/push, clone with 52 industry templates