memoclaw 1.8.3 → 1.8.4

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +32 -3
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -30108,7 +30108,7 @@ var jsYaml = {
30108
30108
  import * as fs from "fs";
30109
30109
  import * as path from "path";
30110
30110
  import * as os from "os";
30111
- var VERSION = "1.9.0";
30111
+ var VERSION = "1.8.4";
30112
30112
  var CONFIG_DIR = path.join(os.homedir(), ".memoclaw");
30113
30113
  var CONFIG_FILE_JSON = path.join(CONFIG_DIR, "config.json");
30114
30114
  var CONFIG_FILE_YAML = path.join(CONFIG_DIR, "config");
@@ -31136,13 +31136,42 @@ async function cmdMigrate(targetPath, opts) {
31136
31136
  }
31137
31137
  const mdFiles = [];
31138
31138
  const stat = fs.statSync(resolvedPath);
31139
+ const IGNORED_DIRS = new Set([
31140
+ "node_modules",
31141
+ ".git",
31142
+ ".next",
31143
+ ".nuxt",
31144
+ "dist",
31145
+ "build",
31146
+ ".output",
31147
+ "__pycache__",
31148
+ ".venv",
31149
+ "venv",
31150
+ "env",
31151
+ ".env",
31152
+ ".tox",
31153
+ ".cache",
31154
+ ".tmp",
31155
+ "tmp",
31156
+ "coverage",
31157
+ ".nyc_output",
31158
+ "vendor",
31159
+ "target",
31160
+ ".gradle",
31161
+ ".mvn",
31162
+ "skills",
31163
+ ".openclaw",
31164
+ ".clawd"
31165
+ ]);
31139
31166
  if (stat.isDirectory()) {
31140
31167
  const walk2 = (dir) => {
31141
31168
  const entries = fs.readdirSync(dir, { withFileTypes: true });
31142
31169
  for (const entry of entries) {
31143
31170
  const full = path.join(dir, entry.name);
31144
31171
  if (entry.isDirectory()) {
31145
- walk2(full);
31172
+ if (!IGNORED_DIRS.has(entry.name)) {
31173
+ walk2(full);
31174
+ }
31146
31175
  } else if (entry.name.endsWith(".md")) {
31147
31176
  mdFiles.push({ filepath: full, filename: path.relative(resolvedPath, full) });
31148
31177
  }
@@ -31160,7 +31189,7 @@ async function cmdMigrate(targetPath, opts) {
31160
31189
  if (!outputQuiet) {
31161
31190
  console.log(`${c.blue}ℹ${c.reset} Found ${c.bold}${mdFiles.length}${c.reset} markdown file${mdFiles.length !== 1 ? "s" : ""}`);
31162
31191
  }
31163
- const BATCH_SIZE = 50;
31192
+ const BATCH_SIZE = 5;
31164
31193
  let totalCreated = 0;
31165
31194
  let totalDeduplicated = 0;
31166
31195
  let totalErrors = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memoclaw",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "MemoClaw CLI - Memory-as-a-Service for AI agents. 1000 free calls, then x402 micropayments.",
5
5
  "type": "module",
6
6
  "bin": {