Skip to content

Conversation

tony
Copy link
Member

@tony tony commented Oct 19, 2025

why: Displaying full home paths like /home/username exposes usernames and creates unnecessary verbosity in human-readable output. Using ~/ is more concise, privacy-friendly, and portable across systems.

what:

  • Add contract_user_home() utility function in util.py
  • Apply path contraction in list command human output
  • Apply path contraction in status command human output
  • Apply path contraction in sync dry-run plan output
  • Preserve full paths in JSON/NDJSON output for machine consumption
  • Update docs to show ~/ in human-readable examples
  • Add 3 comprehensive tests for contract_user_home()

Examples:
Before: • tiktoken → /home/d/study/ai/tiktoken After: • tiktoken → ~/study/ai/tiktoken

JSON output still shows full paths for automation: {"path": "/home/d/study/ai/tiktoken", ...}

tests: 195/195 passing (3 new tests added)

why: Displaying full home paths like /home/username exposes usernames and
creates unnecessary verbosity in human-readable output. Using ~/ is more
concise, privacy-friendly, and portable across systems.

what:
- Add contract_user_home() utility function in util.py
- Apply path contraction in list command human output
- Apply path contraction in status command human output
- Apply path contraction in sync dry-run plan output
- Preserve full paths in JSON/NDJSON output for machine consumption
- Update docs to show ~/ in human-readable examples
- Add 3 comprehensive tests for contract_user_home()

Examples:
  Before: • tiktoken → /home/d/study/ai/tiktoken
  After:  • tiktoken → ~/study/ai/tiktoken

  JSON output still shows full paths for automation:
  {"path": "/home/d/study/ai/tiktoken", ...}

tests: 195/195 passing (3 new tests added)
Copy link

codecov bot commented Oct 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.33%. Comparing base (53974f1) to head (ece928a).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
+ Coverage   79.15%   79.33%   +0.18%     
==========================================
  Files          14       14              
  Lines        1439     1452      +13     
  Branches      309      311       +2     
==========================================
+ Hits         1139     1152      +13     
  Misses        185      185              
  Partials      115      115              

☔ View full report in Codecov by Sentry.
📢 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.

@tony tony merged commit 8e4b7e9 into master Oct 19, 2025
10 checks passed
@tony tony deleted the streamline-tildes branch October 19, 2025 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant