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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmatrix",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Decentralized mesh cluster plugin for OpenClaw — inter-gateway communication, model proxy, task handoff, and tool proxy.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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(path.dirname(workspacePath), ".clawmatrix");
98
+ const stateDir = path.join(workspacePath, ".clawmatrix");
99
99
  this.knowledgeSync = new KnowledgeSync({
100
100
  workspacePath,
101
101
  storePath: path.join(stateDir, "knowledge.automerge"),
@@ -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);