moveros 4.1.0 → 4.1.1

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/install.js +4 -1
  2. package/package.json +1 -1
package/install.js CHANGED
@@ -1012,7 +1012,10 @@ function installHooksForClaude(bundleDir, vaultPath) {
1012
1012
 
1013
1013
  let count = 0;
1014
1014
  for (const file of fs.readdirSync(hooksSrc).filter((f) => f.endsWith(".sh"))) {
1015
- fs.copyFileSync(path.join(hooksSrc, file), path.join(hooksDst, file));
1015
+ const dst = path.join(hooksDst, file);
1016
+ // Read, strip \r (CRLF→LF), write — prevents "command not found" on macOS/Linux
1017
+ const content = fs.readFileSync(path.join(hooksSrc, file), "utf8").replace(/\r\n/g, "\n").replace(/\r/g, "\n");
1018
+ fs.writeFileSync(dst, content, { mode: 0o755 });
1016
1019
  count++;
1017
1020
  }
1018
1021
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moveros",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "The self-improving OS for AI agents. Turns Obsidian into an execution engine.",
5
5
  "bin": {
6
6
  "moveros": "install.js"