Skip to content

feat: add filesystem browse API and path utilities#2

Open
Noojuno wants to merge 1 commit intomainfrom
t3code/file-browsing
Open

feat: add filesystem browse API and path utilities#2
Noojuno wants to merge 1 commit intomainfrom
t3code/file-browsing

Conversation

@Noojuno
Copy link
Copy Markdown
Owner

@Noojuno Noojuno commented Mar 25, 2026

Summary

  • Adds filesystem.browse WebSocket method for navigating directories (contracts, server endpoint, web transport)
  • Adds @t3tools/shared/path with Windows/Unix path detection helpers
  • Adds projectPaths utility library for browse navigation and project path resolution
  • Server endpoint lists directories, filters by prefix, handles symlinks gracefully, supports relative paths via cwd

Context

Split out from pingdotgg#1103 (command palette) to enable independent review. This PR provides the API infrastructure; the command palette browse UI integration will be added in a follow-up after both PRs merge.

Test plan

  • bun run typecheck passes (verified)
  • Server tests: 7 new filesystem.browse integration tests covering directory-only results, hidden dirs, broken symlinks, relative paths, Windows path rejection
  • Contract tests: schema validation for filesystem browse requests
  • Web tests: wsNativeApi forwarding test
  • Shared tests: path detection helper tests

🤖 Generated with Claude Code

Add the filesystem browsing infrastructure for navigating directories:
- contracts: FilesystemBrowseInput/Result schemas, WS method, NativeApi
- server: filesystem.browse endpoint with directory listing
- web: wsNativeApi filesystem.browse transport wiring
- shared: path detection helpers (Windows/Unix/relative)
- web/lib: projectPaths utilities for browse navigation and project paths

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant