feat(app): allow .claude folder in file browser tree
Updates vite-fs tree walker to include .claude directories so users can browse CLAUDE.md, settings, hooks, and memory files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e33cb359a0
commit
a60faedc48
@@ -78,7 +78,7 @@ function handleTree(req: Connect.IncomingMessage, res: any) {
|
||||
if (depth > MAX_DEPTH || entryCount >= MAX_TREE_ENTRIES) return []
|
||||
try {
|
||||
const entries = readdirSync(dir, { withFileTypes: true })
|
||||
.filter(e => !IGNORED.has(e.name) && !e.name.startsWith('.'))
|
||||
.filter(e => !IGNORED.has(e.name) && (!e.name.startsWith('.') || e.name === '.claude'))
|
||||
.sort((a, b) => {
|
||||
// Directories first, then alphabetical
|
||||
if (a.isDirectory() !== b.isDirectory()) return a.isDirectory() ? -1 : 1
|
||||
|
||||
Reference in New Issue
Block a user