clawmatrix 0.1.19 → 0.1.20
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/cluster-service.ts +1 -1
- package/src/knowledge-sync.ts +1 -1
package/package.json
CHANGED
package/src/cluster-service.ts
CHANGED
|
@@ -95,7 +95,7 @@ export class ClusterRuntime {
|
|
|
95
95
|
if (this.config.knowledge?.enabled) {
|
|
96
96
|
const workspacePath = this.resolveWorkspacePath();
|
|
97
97
|
if (workspacePath) {
|
|
98
|
-
const stateDir = path.join(
|
|
98
|
+
const stateDir = path.join(workspacePath, ".clawmatrix");
|
|
99
99
|
this.knowledgeSync = new KnowledgeSync({
|
|
100
100
|
workspacePath,
|
|
101
101
|
storePath: path.join(stateDir, "knowledge.automerge"),
|
package/src/knowledge-sync.ts
CHANGED
|
@@ -299,7 +299,6 @@ export class KnowledgeSync {
|
|
|
299
299
|
const currentFiles = await this.readWorkspaceFiles();
|
|
300
300
|
|
|
301
301
|
let written = 0;
|
|
302
|
-
let removed = 0;
|
|
303
302
|
|
|
304
303
|
for (const [relPath, content] of Object.entries(docFiles)) {
|
|
305
304
|
// Don't export files that would be gitignored
|
|
@@ -312,6 +311,7 @@ export class KnowledgeSync {
|
|
|
312
311
|
}
|
|
313
312
|
}
|
|
314
313
|
|
|
314
|
+
let removed = 0;
|
|
315
315
|
for (const relPath of Object.keys(currentFiles)) {
|
|
316
316
|
if (!(relPath in docFiles)) {
|
|
317
317
|
const absPath = path.join(this.opts.workspacePath, relPath);
|