@vitrinka/cli 3.11.0 → 4.0.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,43 @@
3
3
  `vitrinka update` prints the sections newer than your previous version after
4
4
  updating — keep entries short and user-facing.
5
5
 
6
+ ## 4.0.0
7
+
8
+ One `--json` shape for ordinary commands, including help, version and doctor.
9
+ An agent reads `ok`, then `data` or `diagnostics`, then `next`.
10
+
11
+ ### Changed (breaking)
12
+ - **`--json` is an envelope**: ordinary commands print
13
+ `{v: 1, ok, verb, data, diagnostics, next}` on stdout, success and failure
14
+ alike. What a command printed before is now its `data`; a failure carries
15
+ one or more `diagnostics` (`code` · `severity` · `detail` · `why` · `fix`
16
+ · `http_status`) plus `exit_code`, and `next` lists `{do, cmd}` steps.
17
+ Scripts reading a top-level field (`.url`, `.slug`, `.error`) read
18
+ `.data.url` / `.diagnostics[0].detail` now.
19
+ - **Misuse is a coded diagnostic, exit 2** — an unknown command, a wrong
20
+ argument count or a bad flag value answers `unknown_command` /
21
+ `bad_argument` with the corrected invocation in `fix`. An unknown
22
+ subcommand no longer prints the group's help page and exits 0.
23
+ - **Every failure carries a `code`** from one closed vocabulary shared with
24
+ the server (`not_signed_in`, `unreachable`, `not_found`,
25
+ `gateway_unavailable`, …); an error with no better class is `failed`.
26
+ A raw library error never reaches you as styled prose under `--json`.
27
+
28
+ ### Added
29
+ - A bare group under `--json` (`vitrinka task --json`) lists its commands
30
+ as `data.commands` instead of printing help.
31
+ - The server's own error `code`, `detail` and `fix` are read into the
32
+ diagnostic when the reply carries them.
33
+ - REST errors, including authentication and routing failures, carry a code
34
+ and recovery instructions. MCP exposes the same object in `structuredContent`.
35
+ - `doctor --json` emits one failure with check results. Permission failures
36
+ do not suggest repeated login; malformed JSON bodies cannot silently mutate data.
37
+ - Protocol/stream exceptions retain their output: MCP, extension host,
38
+ child commands via `run`, `listen`, continuous `work watch`, raw `auth token`,
39
+ completion scripts and interactive UI.
40
+ - Go source builds use module `github.com/henderson-tech/vitrinka`; update
41
+ custom import paths and `-ldflags -X` references when building from source.
42
+
6
43
  ## 3.11.0
7
44
 
8
45
  The task is the handoff: a session picks a task up from one bounded view,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrinka/cli",
3
- "version": "3.11.0",
3
+ "version": "4.0.0",
4
4
  "description": "vitrinka CLI — capture and publish artifact sets, drive the annotation-board work queue. Thin npm launcher for the single-binary Go CLI.",
5
5
  "bin": {
6
6
  "vitrinka": "bin/vitrinka.js"
@@ -15,12 +15,12 @@
15
15
  "node": ">=18"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@vitrinka/cli-darwin-arm64": "3.11.0",
19
- "@vitrinka/cli-darwin-x64": "3.11.0",
20
- "@vitrinka/cli-linux-arm64": "3.11.0",
21
- "@vitrinka/cli-linux-x64": "3.11.0",
22
- "@vitrinka/cli-win32-arm64": "3.11.0",
23
- "@vitrinka/cli-win32-x64": "3.11.0"
18
+ "@vitrinka/cli-darwin-arm64": "4.0.0",
19
+ "@vitrinka/cli-darwin-x64": "4.0.0",
20
+ "@vitrinka/cli-linux-arm64": "4.0.0",
21
+ "@vitrinka/cli-linux-x64": "4.0.0",
22
+ "@vitrinka/cli-win32-arm64": "4.0.0",
23
+ "@vitrinka/cli-win32-x64": "4.0.0"
24
24
  },
25
25
  "keywords": [
26
26
  "vitrinka",