bdo-cli 0.49.2 → 0.49.3

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 CHANGED
@@ -5,6 +5,28 @@ 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.49.3] (2026-11-03)
9
+
10
+ ### Security
11
+
12
+ - **Hook permission gate: comments and redirects can no longer hide
13
+ commands or arguments.**
14
+ - A quote inside a comment (`git status # it's`) was read as opening a
15
+ string, so the next line's command was swallowed into "one" `git status`
16
+ and auto-approved by a `git status` allow rule. Comments (a `#` that
17
+ starts a word, outside quotes) now run to the end of the line in the
18
+ tokenizer and in the substitution scan, as in bash.
19
+ - Each permission segment was cut at its first redirect, so
20
+ `git push 2>/dev/null --force` was checked as `git push` and a deny rule
21
+ for `git push --force` never matched. Redirects and their targets are
22
+ now removed and the words after them kept: it is checked as
23
+ `git push --force`.
24
+ - A line continuation split an argument for the check but not for bash:
25
+ `git push --for\<newline>ce` runs `git push --force` yet dodged a deny
26
+ rule for it. Backslash-newlines are now removed before checking, as bash
27
+ does (not inside single quotes, and not at the end of a comment, where
28
+ the next line remains its own command).
29
+
8
30
  ## [0.49.2] (2026-10-31)
9
31
 
10
32
  ### Security
package/README.md CHANGED
@@ -119,7 +119,7 @@ gh attestation verify "$(brew --cache bushido)" --repo tedorigawa001/TokenReduct
119
119
  ### Verify Installation
120
120
 
121
121
  ```bash
122
- bdo --version # Should show "bdo 0.49.2"
122
+ bdo --version # Should show "bdo 0.49.3"
123
123
  bdo gain # Should show token savings stats
124
124
  ```
125
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/tedorigawa001/TokenReductionTool-BDO/releases/download/v0.49.2"
3
+ "https://github.com/tedorigawa001/TokenReductionTool-BDO/releases/download/v0.49.3"
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.49.2",
94
+ "version": "0.49.3",
95
95
  "volta": {
96
96
  "node": "18.14.1",
97
97
  "npm": "9.5.0"