bdo-cli 0.45.6 → 0.46.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 (3) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +39 -4
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -5,6 +5,83 @@ All notable changes to Bushido (bdo) will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.46.0] (2026-10-04)
9
+
10
+ ### Features
11
+
12
+ - **`--raw` / `BDO_RAW=1`: unreduced output for every command.** One switch
13
+ replaces the per-command escape hatches, meaning "run as if bdo weren't
14
+ there":
15
+
16
+ ```bash
17
+ bdo --raw git log # identical to `git log`, byte for byte, same exit code
18
+ bdo --raw read src/main.rs # the whole file
19
+ BDO_RAW=1 bdo cargo test # env form, e.g. for a whole session
20
+ ```
21
+
22
+ A command with a same-named program runs it with your arguments unchanged;
23
+ `err` / `test` / `summary` run what they wrap; `read` shows the full file;
24
+ commands that run a differently named tool (`lint`, `format`, `vitest`,
25
+ `jest`, `prisma`, `playwright`) do the same work with bdo's output
26
+ reduction and parsing-only flags (`--reporter=json` and the like) removed —
27
+ but keep flags that change what runs, such as vitest's `run` and black's
28
+ `--check`, so raw mode never hangs in watch mode or rewrites files.
29
+ bdo-only commands (`gain`, `map`, …) run as usual. Raw runs are tracked at
30
+ 0% savings.
31
+
32
+ Put `--raw` before the subcommand; `BDO_RAW=1` works anywhere and leaves the
33
+ hook's rewriting unchanged. `bdo read -l none`, `BDO_NO_TOML=1` and
34
+ `bdo proxy` keep working, and `bdo read`'s reduced-view hint now suggests
35
+ `bdo --raw read <file>`.
36
+
37
+ ### Fixes
38
+
39
+ - **`bdo lint` mangled output-format options.** `bdo lint ruff check
40
+ --output-format text .` ran `ruff text .` — `check` and the option were
41
+ dropped, the option's value left behind. `bdo lint eslint -f stylish` passed
42
+ `-f json -f stylish`, so eslint used stylish and bdo's JSON parse failed.
43
+ Each linter's format option is now handled as one unit, in either spelling.
44
+ - **`bdo --raw` or `bdo -v` with no subcommand** tried to run `--raw` / `-v`
45
+ as a program and exited 127. It's now a usage error.
46
+
47
+ ### Chores
48
+
49
+ - The dependency audit (`cargo audit`) runs daily in CI, not only on push —
50
+ a new advisory against a locked dependency no longer waits for the next
51
+ commit to surface.
52
+
53
+ ## [0.45.7] (2026-09-26)
54
+
55
+ ### Features
56
+
57
+ - **`bdo stale` / `bdo review` flag package-manager commands that use the
58
+ binary name.** Homebrew, cargo, and the tap all key on the package name —
59
+ `bushido` — not the binary, `bdo`, so `brew install bdo`,
60
+ `cargo uninstall bdo`, `tap/bdo` and friends fail outright. Only
61
+ `cargo install bdo` was caught before. The npm form is deliberately not a
62
+ marker: it would also match the correct `bdo-cli`.
63
+
64
+ ### Fixes
65
+
66
+ - **Documented install commands.** Every Homebrew instruction said
67
+ `brew install bdo`, which fails with "No available formula" — the formula is
68
+ `bushido`. Uninstall lines, including `cargo uninstall`, had the same
69
+ problem. Fixed in both READMEs, the installation guide, `INSTALL.md`, and
70
+ the OpenClaw README.
71
+ - **`brew upgrade` silently not upgrading.** Recent Homebrew skips untrusted
72
+ third-party taps during `brew update` without an error, so the local
73
+ formula goes stale and `brew upgrade bushido` reports up to date. Install
74
+ instructions now run `brew trust --formula tedorigawa001/tap/bushido`
75
+ first; existing users should run it once, then
76
+ `brew update && brew upgrade bushido`.
77
+
78
+ ### Chores
79
+
80
+ - Removed `Formula/bdo.rb`, an unreferenced hand-written formula from before
81
+ the cargo-dist pipeline (version 0.1.0, placeholder checksums). The
82
+ published formula is generated into the tap as `bushido.rb`. Found by the
83
+ new markers on their first run.
84
+
8
85
  ## [0.45.6] (2026-09-26)
9
86
 
10
87
  ### Features
package/README.md CHANGED
@@ -53,9 +53,18 @@ bdo filters and compresses command outputs before they reach your LLM context. S
53
53
  ### Homebrew
54
54
 
55
55
  ```bash
56
- brew tap tedorigawa001/tap && brew install bdo
56
+ brew tap tedorigawa001/tap
57
+ brew trust --formula tedorigawa001/tap/bushido
58
+ brew install bushido
57
59
  ```
58
60
 
61
+ The formula is named after the crate (`bushido`); it installs the `bdo` command.
62
+
63
+ > **`brew upgrade` not picking up new versions?** Recent Homebrew skips
64
+ > untrusted third-party taps during `brew update` — silently, so `bdo --version`
65
+ > just stays put. Run the `brew trust` line above once, then
66
+ > `brew update && brew upgrade bushido`.
67
+
59
68
  ### Quick Install (Linux/macOS)
60
69
 
61
70
  ```bash
@@ -88,7 +97,7 @@ Each has a `.sha256` sidecar — verify before extracting.
88
97
  ### Verify Installation
89
98
 
90
99
  ```bash
91
- bdo --version # Should show "bdo 0.45.6"
100
+ bdo --version # Should show "bdo 0.46.0"
92
101
  bdo gain # Should show token savings stats
93
102
  ```
94
103
 
@@ -390,8 +399,34 @@ Antigravity, Copilot, Cursor), or set explicitly via `BDO_AGENT=<name>`. Command
390
399
  ```bash
391
400
  -u, --ultra-compact # ASCII icons, inline format (extra token savings)
392
401
  -v, --verbose # Increase verbosity (-v, -vv, -vvv)
402
+ --raw # No filtering at all — run as if bdo weren't there
403
+ ```
404
+
405
+ ### Raw output (`--raw` / `BDO_RAW=1`)
406
+
407
+ When you need the exact, unreduced output — a checksum, a precise count, an
408
+ error message bdo would trim — use one switch for every command:
409
+
410
+ ```bash
411
+ bdo --raw git log # identical to `git log`, byte for byte, same exit code
412
+ bdo --raw read src/main.rs # the whole file
413
+ BDO_RAW=1 bdo cargo test # env var form, e.g. for a whole session
393
414
  ```
394
415
 
416
+ - A command with a same-named program (`git`, `ls`, `cargo`, `grep`, …) runs
417
+ that program with your arguments unchanged.
418
+ - `err` / `test` / `summary` run the command they wrap.
419
+ - `read` shows the full file.
420
+ - bdo-only commands (`gain`, `map`, …) have no unfiltered form and run as usual.
421
+
422
+ Put `--raw` **before** the subcommand: after it, the flag belongs to the
423
+ wrapped command (`git log --raw` is git's own option). `BDO_RAW=1` works
424
+ anywhere, and leaves the hook's rewriting unchanged — the rewritten command
425
+ just runs raw. Raw runs are still tracked, at 0% savings.
426
+
427
+ The older per-command switches — `bdo read -l none`, `BDO_NO_TOML=1`,
428
+ `bdo proxy <cmd>` — keep working.
429
+
395
430
  ## Examples
396
431
 
397
432
  **Directory listing:**
@@ -528,8 +563,8 @@ For the full config reference (all sections, env vars, per-project filters), see
528
563
 
529
564
  ```bash
530
565
  bdo init -g --uninstall # Remove hook, Bushido.md, settings.json entry
531
- cargo uninstall bdo # Remove binary
532
- brew uninstall bdo # If installed via Homebrew
566
+ cargo uninstall bushido # Remove binary (if installed via Cargo)
567
+ brew uninstall bushido # If installed via Homebrew
533
568
  ```
534
569
 
535
570
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/tedorigawa001/TokenReductionTool-BDO/releases/download/v0.45.6"
3
+ "https://github.com/tedorigawa001/TokenReductionTool-BDO/releases/download/v0.46.0"
4
4
  ],
5
5
  "author": "Patrick Szymkowiak",
6
6
  "bin": {
@@ -91,7 +91,7 @@
91
91
  "zipExt": ".tar.xz"
92
92
  }
93
93
  },
94
- "version": "0.45.6",
94
+ "version": "0.46.0",
95
95
  "volta": {
96
96
  "node": "18.14.1",
97
97
  "npm": "9.5.0"