specmem-hardwicksoftware 3.7.36 → 3.7.39

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- ## Please disable the proxy in the specmem TUI dashboard until 3.7.36 is released!
2
+ ## COMPACTION PROXY FIXED - AGENT BEHAVIOR IMPROVEMENT SOON!
3
3
  <!-- How to Install SVG -->
4
4
  <img src="./svg-sections/readme-how-to-install.svg" alt="How to Install SpecMem on Linux" width="800">
5
5
 
@@ -323,8 +323,19 @@ class AutoController {
323
323
  // PTY MEMORY APPROACH: NO -L -Logfile (zero disk I/O)
324
324
  // Uses screen hardcopy on-demand instead of continuous logging
325
325
  // -h 5000 sets scrollback buffer to 5000 lines for hardcopy capture
326
+ // COMPACTION: Route through proxy if running
327
+ let proxyEnv = '';
328
+ try {
329
+ const portFile = path.join(os.homedir(), '.claude', '.compaction-proxy-port');
330
+ if (fs.existsSync(portFile)) {
331
+ const port = parseInt(fs.readFileSync(portFile, 'utf8').trim(), 10);
332
+ if (port) {
333
+ proxyEnv = `ANTHROPIC_BASE_URL="http://127.0.0.1:${port}" `;
334
+ }
335
+ }
336
+ } catch (e) {}
326
337
  const claudeBin = getClaudeBinary();
327
- const cmd = `screen -h 5000 -dmS ${this.claudeSession} bash -c "cd '${this.projectPath}' && '${claudeBin}' 2>&1; exec bash"`;
338
+ const cmd = `screen -h 5000 -dmS ${this.claudeSession} bash -c "cd '${this.projectPath}' && ${proxyEnv}'${claudeBin}' 2>&1; exec bash"`;
328
339
  execSync(cmd, { stdio: 'ignore' });
329
340
 
330
341
  // Wait for it to start