Skip to content

Commit bd56f1c

Browse files
committed
[gobby-#207] release: gsqz 0.4.4
1 parent 3f96c3b commit bd56f1c

10 files changed

Lines changed: 27 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
## [0.4.4] — gsqz
13+
14+
### Fixed
15+
16+
#### gsqz
17+
18+
- **Raw passthrough for inspection CLIs**`gh`, `rg`, and `sed` now join the
19+
built-in exclusion list so GitHub CLI output, ripgrep search results, and
20+
exact file slices surface verbatim with no compression header or daemon
21+
savings report.
22+
1223
## [0.8.6] — gcode
1324

1425
### Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/gsqz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gobby-squeeze"
3-
version = "0.4.3"
3+
version = "0.4.4"
44
edition = "2024"
55
rust-version = "1.88"
66
authors = ["Josh Wilhelmi <hello@gobby.ai>"]

crates/gsqz/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pipelines:
175175

176176
...and 10+ more. Run `gsqz --dump-config` to see the full list.
177177

178-
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `rg`, and `sed` are always surfaced raw with no compression header and no savings report.
178+
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `gh`, `rg`, and `sed` are always surfaced raw with no compression header and no savings report.
179179

180180
### Step reference
181181

crates/gsqz/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ gsqz auto-detects the command and applies the right compression:
3535
| Package | pip install/list, npm install/ls, uv pip/sync/add |
3636
| Files | ls, tree, find, grep |
3737
| Container | docker ps/images/logs, kubectl logs |
38-
| GitHub | gh pr/issue list/view |
3938
| Fallback | Any unmatched command: keeps first 20 + last 20 lines |
4039

41-
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `rg`, and `sed` are built-in exclusions. gsqz surfaces them raw.
40+
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `gh`, `rg`, and `sed` are built-in exclusions. gsqz surfaces them raw.
4241

4342
## When NOT to Use
4443

crates/gsqz/config.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,6 @@ pipelines:
188188
head: 30
189189
tail: 20
190190

191-
# === GitHub CLI ===
192-
gh-cli:
193-
match: '\bgh\s+(?:pr|issue)\s+(?:list|view)\b'
194-
steps:
195-
- filter_lines:
196-
patterns:
197-
- '^\s*$'
198-
- truncate:
199-
head: 30
200-
tail: 5
201-
202191
# === Utility ===
203192
download:
204193
match: '\b(?:wget|curl)\b'
@@ -220,6 +209,6 @@ fallback:
220209
head: 20
221210
tail: 20
222211

223-
# These are additive. Gobby-owned CLIs, git, rg, and sed are always excluded in code:
224-
# gobby, gobby-cli, gcode, ghook, gloc, gsqz, git, rg, sed.
212+
# These are additive. Gobby-owned CLIs, git, gh, rg, and sed are always excluded in code:
213+
# gobby, gobby-cli, gcode, gh, ghook, gloc, gsqz, git, rg, sed.
225214
excluded_commands: []

crates/gsqz/src/compressor.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ mod tests {
387387
"gobby status",
388388
"gobby-cli status",
389389
"gcode search symbol",
390+
"gh pr list",
390391
"ghook --diagnose",
391392
"gloc prompt",
392393
"gsqz --stats -- cargo test",
@@ -430,12 +431,17 @@ mod tests {
430431
}
431432

432433
#[test]
433-
fn test_sed_and_rg_are_builtin_exclusions() {
434+
fn test_shell_inspection_commands_are_builtin_exclusions() {
434435
let compressor = Compressor::new(&test_config());
435436
let output = (0..120)
436437
.map(|i| format!("src/file_{i}.rs:{i}:fn item_{i}() {{}}\n"))
437438
.collect::<String>();
438439

440+
let gh_result = compressor.compress("gh pr view 123", &output);
441+
assert_eq!(gh_result.strategy_name, "excluded");
442+
assert_eq!(gh_result.compressed, output);
443+
assert!(gh_result.is_passthrough());
444+
439445
let rg_result = compressor.compress("rg \"fn item\" crates/gsqz/src", &output);
440446
assert_eq!(rg_result.strategy_name, "excluded");
441447
assert_eq!(rg_result.compressed, output);

crates/gsqz/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub const BUILTIN_EXCLUDED_COMMANDS: &[&str] = &[
1313
"gobby",
1414
"gobby-cli",
1515
"gcode",
16+
"gh",
1617
"ghook",
1718
"gloc",
1819
"gsqz",

docs/guides/gsqz-development-guide.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ The visitor extracts the key name (`filter_lines`, `group_lines`, `truncate`, `d
109109

110110
`Compressor::new(config)` compiles all pipeline `match_pattern` regexes and configured excluded command patterns at construction time (not per-compress call). Invalid regexes are silently skipped via `filter_map`.
111111

112-
Built-in exclusions are checked by executable name before regex exclusions: `gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`, `git`, `rg`, and `sed`. These commands are raw passthrough because their output is already structured or source-of-truth diagnostic data.
112+
Built-in exclusions are checked by executable name before regex exclusions: `gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`, `git`, `gh`, `rg`, and `sed`. These commands are raw passthrough because their output is already structured or source-of-truth diagnostic data.
113113

114114
### Compression Flow
115115

@@ -392,7 +392,6 @@ State machine tracking single/double quotes and paren depth. Splits at `&&`, `||
392392
| package-mgmt | `pip\s+install\|npm\s+install\|uv\s+pip` | filter + truncate |
393393
| docker-list | `docker\s+(?:ps\|images)` | truncate |
394394
| container-logs | `docker\s+logs\|kubectl\s+logs` | dedup + truncate |
395-
| gh-cli | `gh\s+(?:pr\|issue)\s+(?:list\|view)` | filter + truncate |
396395
| download | `\b(?:wget\|curl)\b` | filter(progress) + truncate |
397396

398397
### Fallback

docs/guides/gsqz-user-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ excluded_commands:
244244
- '\becho\b'
245245
```
246246

247-
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `rg`, and `sed` are built-in exclusions. Their output is already structured or source-of-truth diagnostic data, so gsqz surfaces it verbatim with no compression header and no savings report.
247+
Gobby-owned CLIs (`gobby`, `gobby-cli`, `gcode`, `ghook`, `gloc`, `gsqz`), `git`, `gh`, `rg`, and `sed` are built-in exclusions. Their output is already structured or source-of-truth diagnostic data, so gsqz surfaces it verbatim with no compression header and no savings report.
248248

249249
### Full Pipeline Example
250250

0 commit comments

Comments
 (0)