aboutsummaryrefslogtreecommitdiff
path: root/modules/core/module-neural-vfs.js
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-06-08 06:01:25 +0200
committerAgando <roduccomm@gmail.com>2026-06-08 06:01:25 +0200
commitb9485bae5c2e62fa9c1b1c56d0f75be67cb47c37 (patch)
treeb565095aa14c0072ceb6ca675f0182c275cff0b2 /modules/core/module-neural-vfs.js
parent0fa227601d51263b0eb787d53225de3f0b44cad1 (diff)
auto: 2026-06-08_06:00 changes
Diffstat (limited to 'modules/core/module-neural-vfs.js')
-rw-r--r--modules/core/module-neural-vfs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/core/module-neural-vfs.js b/modules/core/module-neural-vfs.js
index 5c30718..e216656 100644
--- a/modules/core/module-neural-vfs.js
+++ b/modules/core/module-neural-vfs.js
@@ -445,8 +445,9 @@ class NeuralVFSModule {
}
_isSystemFile(path) {
+ const normalized = path.startsWith('/') ? path : '/' + path;
const sysPrefixes = ['/.trash', '/.semantic_index', '/.memory_graph', '/_snapshots', '/_sessions', '/logs', '/memory', '/system', '/_mods', '/backups'];
- return sysPrefixes.some(p => path.startsWith(p) || path.includes('/node_modules'));
+ return sysPrefixes.some(p => normalized.startsWith(p) || path.includes('/node_modules'));
}
_contentHash(str) {