Commit Graph

19 Commits

Author SHA1 Message Date
Adrien Eppling 861a46dee5 fix(core): never-worse output guard so RTK never exceeds the raw command
RTK could emit more tokens than the underlying command on small inputs:
filters that add headers, summaries, re-indentation, or a tee hint, plus
synthetic no-result messages ("0 matches", "No stashes", "[docker] 0
containers") printed where the raw command emitted nothing. Both break the
Transparency principle and inflate tokens instead of saving them.

- core::guard::never_worse(raw, filtered) returns raw when the filtered form
  has more tokens (reuses tracking::estimate_tokens), so RTK output is never
  larger than the real command.
- runner::emit_guarded(filtered, hint, raw) composes body + tee hint, guards
  the whole, prints, and returns what was shown so printed == tracked.
- run_captured_filter guards the run_filtered* family centrally; per-site
  guards cover the remaining single-string filters.
- On empty raw, emit empty and preserve the exit code instead of a synthetic
  no-result message (the messages were cosmetic with no dependents; #2461
  reports the grep one as actively harmful).
- git stash show now propagates its exit code instead of masking a real
  failure as Ok(0).

Resolves #2551.
2026-06-23 21:53:35 +02:00
aesoft b6054a5fef refacto(truncations): Set global CAPS for truncation
Following tee and hint refacto
Add global CAP constant to be inherited , to enable easier global configuration later
2026-05-20 17:29:14 +02:00
aesoft 4acdcf29f7 docs(cmds): truncations hints and recovery guidelines 2026-05-19 10:23:04 +02:00
aesoft dc5877579e docs(docs): stop manual CHANGELOG edits and use release please 2026-04-10 13:58:52 +02:00
aesoft deda44f736 fix(docs): clean some docs + disclaimer 2026-04-02 21:33:38 +02:00
Florian BRUNIAUX cb30d174f7 Merge pull request #525 from zerone0x/fix/docs-branch-naming-474
Docs correct — branch names use slash prefixes, not conventional-commit format in parentheses.
2026-03-28 01:46:47 +01:00
aesoft 0925cf21e0 fix(docs): last review 2026-03-25 19:12:46 +01:00
aesoft 46fa31c4b8 chore(refacto-codebase): Folders + Technical docs
- codebase more clear for humans and AI agents
- alignement on vision and filter quality in technical docs
2026-03-24 22:14:35 +01:00
aesoft 4b2179e587 Update CONTRIBUTING.md 2026-03-21 17:17:55 +01:00
zerone0x c253c0168b docs: correct branch naming example (#474) 2026-03-21 08:14:41 +01:00
zerone0x c5e1d7f559 docs: correct branch naming guidance (#474)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: zerone0x <hi@trine.dev>
2026-03-21 08:14:36 +01:00
aesoft de710f4ea3 fix(cicd-docs): add agent reviewer + some contribute guidelines 2026-03-13 15:08:24 +01:00
aesoft f50ff31cb7 Update CONTRIBUTING.md 2026-03-06 14:33:18 +01:00
aesoft 171e63002f Update CONTRIBUTING.md 2026-03-05 17:31:09 +01:00
aesoft 1dff09df62 Update CONTRIBUTING.md 2026-03-05 17:15:30 +01:00
aesoft 9c3162a968 Update CONTRIBUTING.md 2026-03-05 17:15:11 +01:00
aesoft 18e7e085f5 Update CONTRIBUTING.md 2026-03-05 15:23:05 +01:00
aesoft f2f17bb4b4 Update CONTRIBUTING.md 2026-03-05 15:12:51 +01:00
aesoft 93f8c09485 Add files via upload 2026-03-05 15:09:44 +01:00