clawmatrix 0.1.18 → 0.1.19
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/knowledge-sync.ts +2 -3
package/package.json
CHANGED
package/src/knowledge-sync.ts
CHANGED
|
@@ -280,13 +280,12 @@ export class KnowledgeSync {
|
|
|
280
280
|
const relPath = rel ? `${rel}/${entry.name}` : entry.name;
|
|
281
281
|
// Skip hidden files/dirs
|
|
282
282
|
if (entry.name.startsWith(".")) continue;
|
|
283
|
-
// Skip gitignored paths
|
|
284
|
-
if (this.isIgnored(relPath)) continue;
|
|
285
283
|
if (entry.isDirectory()) {
|
|
286
|
-
// For directories, check with trailing slash
|
|
284
|
+
// For directories, check with trailing slash so negation rules like !memory/ work
|
|
287
285
|
if (this.isIgnored(relPath + "/")) continue;
|
|
288
286
|
await this.walkDir(base, relPath, result);
|
|
289
287
|
} else if (entry.isFile()) {
|
|
288
|
+
if (this.isIgnored(relPath)) continue;
|
|
290
289
|
const content = await readFile(path.join(base, relPath), "utf-8");
|
|
291
290
|
result[relPath] = content;
|
|
292
291
|
}
|