Skip to content

feat: add per-target lifecycle event opt-outs (events, time_tracking)#36

Open
CraZySacX wants to merge 6 commits into
masterfrom
35-v051-enhancements
Open

feat: add per-target lifecycle event opt-outs (events, time_tracking)#36
CraZySacX wants to merge 6 commits into
masterfrom
35-v051-enhancements

Conversation

@CraZySacX

@CraZySacX CraZySacX commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add a per-target events field (default true) so a [target.X] can opt out of lifecycle events entirely — its before/after events and all nested command/tool events are suppressed regardless of the top-level [lifecycle]/license gating
  • Add a per-target time_tracking field (default true) so a [target.X] can fire a no_time_tracking lifecycle event immediately after its before_target event, letting external time-tracking integrations see the opt-out inline in the stream
  • Remove a stray commented-out coverage_nightly cfg attribute left in rake/src/main.rs
  • Refresh Cargo.lock with the latest compatible dependency versions

@CraZySacX CraZySacX self-assigned this Jul 2, 2026
@CraZySacX CraZySacX added the enhancement New feature or request label Jul 2, 2026
@codecov-commenter

codecov-commenter commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.11321% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.36%. Comparing base (5a76bf8) to head (6bff2bf).

Files with missing lines Patch % Lines
librake/src/lib.rs 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
+ Coverage   88.18%   88.36%   +0.17%     
==========================================
  Files          11       11              
  Lines        3784     3859      +75     
==========================================
+ Hits         3337     3410      +73     
- Misses        447      449       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CraZySacX CraZySacX changed the title chore(lint): lints cleanup feat: add per-target lifecycle event opt-outs (events, time_tracking) Jul 4, 2026
CraZySacX and others added 6 commits July 3, 2026 23:50
Adds an optional `events` field (default `true`) to `[target.X]` that, when set to `false`, suppresses that target's before/after lifecycle events and all nested command/tool events, regardless of the top-level `[lifecycle]`/license gating.
…event

Adds an optional `time_tracking` field (default `true`) to `[target.X]`
that, when set to `false`, fires a `no_time_tracking` lifecycle event
immediately after that target's `before_target` event, so external
time-tracking integrations can see the opt-out inline in the stream.
Mirrors the existing `events` opt-out's implementation pattern.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@CraZySacX CraZySacX force-pushed the 35-v051-enhancements branch from ecc2d56 to 6bff2bf Compare July 4, 2026 03:50
@CraZySacX CraZySacX enabled auto-merge (squash) July 4, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants