@clawos-dev/clawd 0.2.143 → 0.2.144-beta.307.dc2fec6

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.cjs +4 -4
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -35749,8 +35749,8 @@ function seedDefaultPersonas(args) {
35749
35749
  args.logger.info("persona.seed.created", { personaId: entry.personaId });
35750
35750
  }
35751
35751
  }
35752
- function skipNodeModules(src) {
35753
- return !src.split(path11.sep).includes("node_modules");
35752
+ function skipNodeModulesUnder(srcRoot) {
35753
+ return (src) => !path11.relative(srcRoot, src).split(path11.sep).includes("node_modules");
35754
35754
  }
35755
35755
  function copyBundleExtras(srcDir, dstDir) {
35756
35756
  for (const entry of fs9.readdirSync(srcDir, { withFileTypes: true })) {
@@ -35758,7 +35758,7 @@ function copyBundleExtras(srcDir, dstDir) {
35758
35758
  const srcPath = path11.join(srcDir, entry.name);
35759
35759
  const dstPath = path11.join(dstDir, entry.name);
35760
35760
  if (entry.isDirectory()) {
35761
- fs9.cpSync(srcPath, dstPath, { recursive: true, dereference: true, filter: skipNodeModules });
35761
+ fs9.cpSync(srcPath, dstPath, { recursive: true, dereference: true, filter: skipNodeModulesUnder(srcPath) });
35762
35762
  } else if (entry.isFile()) {
35763
35763
  fs9.copyFileSync(srcPath, dstPath);
35764
35764
  }
@@ -35777,7 +35777,7 @@ function refreshDaemonManagedDirs(args) {
35777
35777
  if (!fs9.existsSync(srcPath)) continue;
35778
35778
  const dstPath = path11.join(personaDir, relPath);
35779
35779
  try {
35780
- fs9.cpSync(srcPath, dstPath, { recursive: true, force: true, dereference: true, filter: skipNodeModules });
35780
+ fs9.cpSync(srcPath, dstPath, { recursive: true, force: true, dereference: true, filter: skipNodeModulesUnder(srcPath) });
35781
35781
  args.logger.info("persona.refresh.synced", {
35782
35782
  personaId: entry.personaId,
35783
35783
  path: relPath
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawos-dev/clawd",
3
- "version": "0.2.143",
3
+ "version": "0.2.144-beta.307.dc2fec6",
4
4
  "description": "Standalone clawd daemon — Claude Code (and future Codex) session server over WebSocket",
5
5
  "type": "module",
6
6
  "license": "MIT",