nightytidy 0.3.6 → 0.3.8

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": "nightytidy",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Automated overnight codebase improvement through Claude Code",
5
5
  "license": "MIT",
6
6
  "author": "Dorian Spitz",
@@ -71,7 +71,10 @@ export class AgentGit {
71
71
  }
72
72
 
73
73
  async _exec(cmd, args) {
74
- const { stdout } = await execFileAsync(cmd, args, { cwd: this.projectDir });
74
+ const { stdout } = await execFileAsync(cmd, args, {
75
+ cwd: this.projectDir,
76
+ maxBuffer: 50 * 1024 * 1024, // 50 MB — large diffs from 33-step runs
77
+ });
75
78
  return stdout;
76
79
  }
77
80
  }
@@ -100,8 +100,10 @@ const STARTUP_VBS = path.join(STARTUP_DIR, 'NightyTidy Agent.vbs');
100
100
  function _registerWindows(cmd) {
101
101
  // Primary: Startup folder (no admin required)
102
102
  try {
103
- // VBS wrapper runs the agent without showing a console window
104
- const vbs = `' NightyTidy Agent auto-start on login\r\nSet ws = CreateObject("WScript.Shell")\r\nws.Run ${JSON.stringify(cmd)}, 0, False\r\n`;
103
+ // VBS wrapper runs the agent without showing a console window.
104
+ // In VBS, quotes inside strings are doubled: "" not \"
105
+ const vbsCmd = cmd.replace(/"/g, '""');
106
+ const vbs = `' NightyTidy Agent - auto-start on login\r\nSet ws = CreateObject("WScript.Shell")\r\nws.Run "${vbsCmd}", 0, False\r\n`;
105
107
  fs.mkdirSync(STARTUP_DIR, { recursive: true });
106
108
  fs.writeFileSync(STARTUP_VBS, vbs, 'utf-8');
107
109
  debug('Registered via Windows Startup folder');