bdo-cli 0.45.7 → 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.
- package/CHANGELOG.md +45 -0
- package/README.md +27 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,51 @@ 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
|
+
|
|
8
53
|
## [0.45.7] (2026-09-26)
|
|
9
54
|
|
|
10
55
|
### Features
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ Each has a `.sha256` sidecar — verify before extracting.
|
|
|
97
97
|
### Verify Installation
|
|
98
98
|
|
|
99
99
|
```bash
|
|
100
|
-
bdo --version # Should show "bdo 0.
|
|
100
|
+
bdo --version # Should show "bdo 0.46.0"
|
|
101
101
|
bdo gain # Should show token savings stats
|
|
102
102
|
```
|
|
103
103
|
|
|
@@ -399,8 +399,34 @@ Antigravity, Copilot, Cursor), or set explicitly via `BDO_AGENT=<name>`. Command
|
|
|
399
399
|
```bash
|
|
400
400
|
-u, --ultra-compact # ASCII icons, inline format (extra token savings)
|
|
401
401
|
-v, --verbose # Increase verbosity (-v, -vv, -vvv)
|
|
402
|
+
--raw # No filtering at all — run as if bdo weren't there
|
|
402
403
|
```
|
|
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
|
|
414
|
+
```
|
|
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
|
+
|
|
404
430
|
## Examples
|
|
405
431
|
|
|
406
432
|
**Directory listing:**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/tedorigawa001/TokenReductionTool-BDO/releases/download/v0.
|
|
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.
|
|
94
|
+
"version": "0.46.0",
|
|
95
95
|
"volta": {
|
|
96
96
|
"node": "18.14.1",
|
|
97
97
|
"npm": "9.5.0"
|