specmem-hardwicksoftware 3.5.27 → 3.5.29

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.

Potentially problematic release.


This version of specmem-hardwicksoftware might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specmem-hardwicksoftware",
3
- "version": "3.5.27",
3
+ "version": "3.5.29",
4
4
  "type": "module",
5
5
  "description": "SpecMem - Speculative Memory for Claude Code. Auto-configures hooks, docker, embeddings. https://justcalljon.pro",
6
6
  "main": "dist/index.js",
@@ -527,8 +527,10 @@ print(f"""
527
527
  console.log(`${GREEN}${BOLD}✓ Optimization complete!${RESET}\n`);
528
528
  resolve();
529
529
  } else {
530
- console.log(`${RED}Optimization failed: ${error}${RESET}`);
531
- reject(new Error('Optimization failed'));
530
+ console.log(`${YELLOW}Optimization had issues but base model is ready${RESET}`);
531
+ console.log(`${DIM}SpecMem will use PyTorch model (still fast!)${RESET}`);
532
+ // Don't fail - continue with unoptimized model
533
+ resolve();
532
534
  }
533
535
  });
534
536
  });
@@ -597,15 +599,30 @@ async function main() {
597
599
  // Download base model
598
600
  await downloadBaseModel();
599
601
 
600
- // Optimize it
601
- await optimizeModel();
602
+ // Optimize it (non-fatal if fails)
603
+ try {
604
+ await optimizeModel();
605
+ } catch (optErr) {
606
+ console.log(`\n${YELLOW}⚠ Optimization skipped - using base PyTorch model${RESET}`);
607
+ console.log(`${DIM}This is fine! Base model still works great.${RESET}\n`);
608
+ }
602
609
 
603
610
  // Show summary
604
611
  showSummary();
605
612
 
613
+ // Create marker file so init knows setup completed
614
+ const markerPath = path.join(SPECMEM_DIR, '.setup-complete');
615
+ fs.writeFileSync(markerPath, JSON.stringify({
616
+ timestamp: new Date().toISOString(),
617
+ model: MODEL_NAME,
618
+ optimized: fs.existsSync(path.join(OPTIMIZED_DIR, 'quantized_model'))
619
+ }));
620
+
621
+ console.log(`${GREEN}${BOLD}✓ Setup complete! Run 'specmem init' in your project.${RESET}\n`);
622
+
606
623
  } catch (e) {
607
624
  console.log(`\n${RED}${BOLD}Setup failed: ${e.message}${RESET}`);
608
- console.log(`${DIM}Try running manually: python3 ${SPECMEM_DIR}/scripts/optimize-embedding-model.py${RESET}`);
625
+ console.log(`${DIM}Try: pip3 install torch sentence-transformers${RESET}`);
609
626
  process.exit(1);
610
627
  }
611
628
  }