Commit Graph

810 Commits

Author SHA1 Message Date
patrick 04e0db60d9 fix(ls): fall back to raw output when ls binary is eza/exa/lsd (#1321)
When the `ls` binary on PATH is a modern replacement (eza, exa, lsd),
its day-first date format (22 Apr 14:30) doesn't match the POSIX regex
anchor, causing every line to fail silently and returning "(empty)" for
non-empty directories.

Track `any_content_line` and `parse_hit` in `compact_ls`. When output
lines were present but none parsed successfully, return a sentinel
(both fields empty) so the caller falls back to raw output with a
warning instead of "(empty)".

Truly empty directories and noise-filtered results are unaffected.
2026-04-22 16:02:39 +02:00
aesoft 80a6fe606f Merge pull request #1421 from rtk-ai/release-please--branches--master--components--rtk
chore(master): release 0.37.2
dev-0.38.0-rc.178 dev-0.38.0-rc.177 dev-0.38.0-rc.176 dev-0.38.0-rc.175 dev-0.38.0-rc.174 dev-0.38.0-rc.179 dev-0.38.0-rc.170 dev-0.38.0-rc.171 v0.37.2 dev-0.38.0-rc.173
2026-04-20 19:57:01 +02:00
github-actions[bot] 0907b998fc chore(master): release 0.37.2 2026-04-20 17:52:14 +00:00
aesoft 638b0d4e06 Merge pull request #1383 from rtk-ai/develop
Next Release
2026-04-20 19:51:36 +02:00
aesoft da3c432201 Merge pull request #1399 from rtk-ai/fix/windows-go-binary-hook
fix(hooks): windows use 'rtk hook claude' no fallback
2026-04-19 20:50:02 +02:00
aesoft 13a73ddfd7 fix(tests): windows regression test fix path 2026-04-19 20:34:18 +02:00
aesoft 115e44853b fix(hooks): add regression test for windows native 2026-04-19 20:17:44 +02:00
aesoft ca4c59c230 Merge pull request #1398 from rtk-ai/fix/exclude-commands-bypass
fix(discover): exclude_commands bypass for env-prefix, sub cmd + regex
2026-04-19 20:15:37 +02:00
aesoft 0e29650e11 fix(hooks): windows use 'rtk hook claude' no fallback
Removing old guards, windows can now just use the binary hook engine from 0.37

Related issues:
- Fixes #502 : rtk init --global falls back to --claude-md on Windows
- Fixes #1353 : Feature request: hook-based mode on Windows
- Partially addresses #330 : Add hooks support for Windows
- Partially addresses #913 :  Persistent "No hook installed" warning on Windows
- Partially addresses #1373 : Suppress "No hook installed" warning on Windows
- Partially addresses #682 : Config to suppress hook warning
- Related to #1248 : Windows PowerShell compatibility gaps

Supersedes community PRs:
- #1123 fix(init): enable hook installation on Windows
- #1027 fix(init): enable hook-based mode on Windows
- #809 feat: enable hook-based mode on Windows
- #452 feat: add Windows hook support for rtk init --global
- #551 feat: native cross-platform hook for Windows support
- #150 feat(hook): native cross-platform hook-rewrite command
- #1063 Feat/windows hooks
2026-04-19 15:31:52 +02:00
aesoft 0ea115bca5 fix(discover): word boundary in exclude_commands
Replace \b with ($|\s) to only match end-of-string or whitespace.

Empty string and bare "^" patterns produce regexes that match all commands, silently disabling all rewrites on a config typo. Skip
  trivial patterns with an eprintln warning.
2026-04-19 14:35:04 +02:00
aesoft 2e401ac38f fix(docs): add missing docs for exclude commands patterns 2026-04-19 13:59:03 +02:00
aesoft 42d3161872 fix(discover): exclude_commands bypass for env-prefix, sub cmd + regex
Strip env prefix (sudo, VAR=val) before exclude check so PGPASSWORD=x psql matches ["psql"]. Match against full command instead of first token so ["git push"] matches "git push origin main".

Compile exclude entries as regex so ["^curl"] works as pattern.

Invalid regex falls back to prefix match with eprintln warning.
Non-regex patterns auto-anchor with ^ and \b to prevent substring matches (e.g. "go" won't exclude "golangci-lint").
2026-04-19 13:47:17 +02:00
aesoft 176ceb4a7d Merge pull request #1310 from JBF1991/feat/curl-cmd-no-filter
Simplified `rtk curl` Filter
2026-04-18 18:35:39 +02:00
Joshua e8a3bca5fb adding edge case comments and a constant for max response size 2026-04-18 09:51:56 -05:00
aesoft 5c9e1ac6d7 Merge pull request #1382 from rtk-ai/release-please--branches--master--components--rtk
chore(master): release 0.37.1
dev-0.37.2-rc.163 dev-0.37.2-rc.162 v0.37.1 dev-0.37.2-rc.165 dev-0.37.2-rc.164
2026-04-18 15:51:04 +02:00
Adrien Eppling 5cd375ec1c Reapply "fix(discover): weighted savings rate per bucket, decimal already_rtk percent"
This reverts commit ea56548009.
2026-04-18 15:50:40 +02:00
github-actions[bot] 92823bf21d chore(master): release 0.37.1 2026-04-18 13:46:53 +00:00
aesoft c8d68787fb Merge pull request #1381 from rtk-ai/develop
fix(docs): user facing docs
2026-04-18 15:46:20 +02:00
Adrien Eppling ea56548009 Revert "fix(discover): weighted savings rate per bucket, decimal already_rtk percent"
This reverts commit 82c62eb893.
2026-04-18 15:29:36 +02:00
aesoft 9673727333 Merge pull request #1304 from rtk-ai/docs/adrien-review
docs: Adrien review — hierarchy, counts, consistency, gaps
2026-04-18 15:07:43 +02:00
aesoft 6d2e5e532e Merge pull request #1360 from rtk-ai/release-please--branches--master--components--rtk
chore(master): release 0.37.0
dev-0.37.1-rc.159 v0.37.0 dev-0.37.1-rc.158
2026-04-17 09:51:09 +02:00
github-actions[bot] 75bcf9dec6 chore(master): release 0.37.0 2026-04-17 07:45:25 +00:00
aesoft 66080056dd Merge pull request #1277 from rtk-ai/develop
Next Release
2026-04-17 09:44:43 +02:00
aesoft 22ef2871a8 Merge pull request #1359 from rtk-ai/fix-conflict-next-release
Fix conflict next release
2026-04-17 09:36:27 +02:00
aesoft 953bb11442 Merge master into develop to resolve conflicts 2026-04-17 09:35:21 +02:00
aesoft df8e03558d Merge pull request #1346 from rtk-ai/feat-hook-engine
fix: P0+P1 fixes from pre-merge review of hook engine
2026-04-16 21:29:35 +02:00
aesoft d8ddefe78e fix: isolate cursor hook tests from local settings (determinist) 2026-04-16 21:00:13 +02:00
aesoft a1d46f39c2 fix(stream): missing stderr fields 2026-04-16 20:39:01 +02:00
aesoft e92d0993c9 fix(runner): preserve fd separation on command failure 2026-04-16 20:27:13 +02:00
aesoft d34389c3d0 fix: P0+P1 fixes from pre-merge review of hook engine
- runner: print captured output on non-zero exit (P0.1)
- main: add hook/pipe to META_COMMANDS (P0.2)
- init: store integrity hash after Gemini script install (P0.3)
- hook_cmd: audit log + permission check for all agent paths (P1.1, P1.2)
- runner: include failure_lines in cargo test summary (P1.5)
- Cargo.toml: remove unconditional libc dep (P1.7)
- init: clean stale settings.json entries during migration (P1.8)
2026-04-16 15:41:20 +02:00
Joshua 80bc7fbd61 documentation 2026-04-15 14:45:30 -05:00
Joshua 92bbc8a345 fixing bad merge 2026-04-15 14:29:09 -05:00
Joshua 71baf2b82d making curl_cmd use force_tee_hint 2026-04-15 14:22:56 -05:00
aesoft e7b7f9ab66 Merge pull request #956 from rtk-ai/feat-hook-engine
feat(refacto-core): binary hook w/ native cmd exec + streaming
2026-04-15 18:58:17 +02:00
Adrien Eppling dfc009a4d6 restore cursor and copilot hook scripts for backward compat 2026-04-14 22:54:03 +02:00
aesoft 7591a14e4c Merge pull request #1151 from rtk-ai/fix/release-please-changelog
fix(docs): use release please changelog no manual
2026-04-14 20:54:16 +02:00
aesoft 0f93f0e3e6 Merge branch 'develop' into fix/release-please-changelog 2026-04-14 20:54:08 +02:00
Adrien Eppling 5916ecd86f fix: rename ship.md to ship/SKILL.md to match develop 2026-04-14 20:52:34 +02:00
Florian BRUNIAUX 4c9b528206 docs: Adrien review — hierarchy, counts, consistency, gaps
Hierarchy:
- Move troubleshooting.md and what-rtk-covers.md to guide/resources/
- Add guide/resources/telemetry.md (adapted from docs/TELEMETRY.md,
  user-facing: consent, opt-out, GDPR rights — without internal sections)

Content fixes:
- Remove all hardcoded counts (9 ecosystems, 12 agents, 60+, 7 more)
  replaced with qualitative language throughout
- Unify DB filename: tracking.db → history.db everywhere
  (canonical: src/core/constants.rs HISTORY_DB)
- installation.md: replace bare `cargo install rtk` with warning +
  explicit git URL to avoid Rust Type Kit name collision
- supported-agents.md: remove hardcoded agent count
- quick-start.md: remove hardcoded ecosystem list, link to what-rtk-covers

New content:
- gain.md: add --quota section explaining pro/5x/20x tier meanings
- gain.md: add callout linking to discover.md (find missed savings)
- index.md: add "Analyze your usage" section (rtk discover, rtk session)
- configuration.md: clarify ignore_dirs/ignore_files scope, add prose
  link to telemetry.md
- what-rtk-covers.md: clarify --ultra-compact vs git -u short flag conflict

Cross-references:
- All internal links updated for new resources/ paths
- index.md: link to troubleshooting, telemetry, what-rtk-covers, analytics
- discover.md: updated relative link to troubleshooting

README:
- Add Core team section (Patrick Szymkowiak, Florian Bruniaux, Adrien Eppling)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 14:17:58 +02:00
Florian BRUNIAUX 82c62eb893 fix(discover): weighted savings rate per bucket, decimal already_rtk percent
B6 — report.rs:already_rtk integer division truncated small ratios to 0%
(e.g. 3/1000 showed "0%" instead of "0.3%"). Now uses f64 division with
one decimal place. Three regression tests added.

B7 — mod.rs:SupportedBucket.savings_pct was set once from the first-seen
sub-command and never updated. For buckets containing multiple sub-commands
(e.g. git add + git diff + git log all under "rtk git"), the displayed
estimated_savings_pct reflected only the first classification. Fix: track
total_raw_output_tokens alongside total_output_tokens (savings). Compute
effective_savings_pct = saved / raw * 100 at entry construction, giving a
weighted average across all sub-commands in the bucket. This rate is exposed
in rtk discover --format json via estimated_savings_pct.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Florian BRUNIAUX <florian@bruniaux.com>
2026-04-14 11:51:40 +02:00
aesoft 906dedd75a Merge remote-tracking branch 'origin/develop' into feat-hook-engine 2026-04-13 21:14:55 +02:00
aesoft 9e96caa0a1 Merge pull request #355 from KuSh/pnpx+dlx
feat(discover): handle more npm/npx/pnpm/pnpx patterns
2026-04-13 20:31:12 +02:00
aesoft a699357461 Merge pull request #1275 from rtk-ai/release-please--branches--master--components--rtk
chore(master): release 0.36.0
v0.36.0 dev-0.37.0-rc.155 dev-0.37.0-rc.154 dev-0.37.0-rc.153 dev-0.37.0-rc.152 dev-0.37.0-rc.151
2026-04-13 20:19:29 +02:00
github-actions[bot] efa8e86c19 chore(master): release 0.36.0 2026-04-13 17:55:56 +00:00
aesoft 314978cd78 Merge pull request #1052 from rtk-ai/develop
Next Release
2026-04-13 19:54:46 +02:00
Florian BRUNIAUX f2985ac5b4 Merge pull request #1217 from ousamabenyounes/fix/issue-1215 2026-04-13 10:30:10 +02:00
Florian BRUNIAUX 1436c2d6bb Merge pull request #1188 from ousamabenyounes/fix/git-push-u-flag-conflict-1086 2026-04-13 10:30:07 +02:00
Florian BRUNIAUX 8126a20824 Merge pull request #1200 from ousamabenyounes/fix/issue-1105 2026-04-13 10:30:04 +02:00
Florian BRUNIAUX e3a86a463b Merge pull request #1199 from ousamabenyounes/fix/issue-1101 2026-04-13 10:30:00 +02:00
Florian BRUNIAUX 9be5cc23f3 Merge pull request #1239 from KuSh/fix-pnpm-list 2026-04-13 10:29:57 +02:00