nano-brain 2026.6.13 → 2026.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/watcher.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nano-brain",
|
|
3
|
-
"version": "2026.6.
|
|
3
|
+
"version": "2026.6.14",
|
|
4
4
|
"description": "Persistent memory and code intelligence for AI coding agents. Local MCP server with self-learning hybrid search (BM25 + vector + knowledge graph + LLM reranking), automatic session ingestion, codebase indexing, and 22 tools. Learns your preferences over time. Works with OpenCode, Claude, Cursor, Windsurf, and any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/watcher.ts
CHANGED
|
@@ -329,7 +329,17 @@ export function startWatcher(options: WatcherOptions): Watcher {
|
|
|
329
329
|
|
|
330
330
|
const setupWatcher = () => {
|
|
331
331
|
const pathsToWatch: string[] = []
|
|
332
|
-
|
|
332
|
+
// Function-based ignore so chokidar skips entire directory trees BEFORE opening them.
|
|
333
|
+
// Regex-only ignored still causes EMFILE because chokidar opens dirs before filtering.
|
|
334
|
+
const SKIP_DIRS = new Set(['node_modules', '.git', 'dist', 'build', '.next', '.nuxt', '__pycache__', '.venv', 'venv', '.tox', 'target', 'vendor', '.bundle'])
|
|
335
|
+
const ignoredPatterns: (string | RegExp | ((path: string) => boolean))[] = [
|
|
336
|
+
(p: string) => {
|
|
337
|
+
const base = path.basename(p)
|
|
338
|
+
if (SKIP_DIRS.has(base)) return true
|
|
339
|
+
if (base.startsWith('.') && base !== '.nano-brain') return true
|
|
340
|
+
return false
|
|
341
|
+
},
|
|
342
|
+
]
|
|
333
343
|
for (const collection of collections) {
|
|
334
344
|
const expandedPath = collection.path.replace(/^~/, os.homedir())
|
|
335
345
|
if (fs.existsSync(expandedPath)) {
|