Skip to content

Respect home path boundaries in pwd - #13

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/pwd-home-boundary
Jul 13, 2026
Merged

Respect home path boundaries in pwd#13
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/pwd-home-boundary

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • avoid shortening sibling paths that merely share the home path prefix
  • keep exact home and true child paths rendered with ~`n- add focused tests for exact home, child paths, and same-prefix sibling paths

Tests

  • npm.cmd test
  • node --check src\pwd.mjs
  • node --check test\pwd.test.mjs
  • git diff --check

@ralyodio
ralyodio merged commit 3f7dad6 into moshcoder:main Jul 13, 2026
1 check passed
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.

2 participants