algomath-extract 1.0.5 → 1.0.6

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/bin/install.js +4 -1
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -368,7 +368,9 @@ fs.copyFileSync(source, dest);
368
368
  }
369
369
  }
370
370
 
371
- // Create opencode.json if it doesn't exist
371
+ // Create opencode.json only for global installs
372
+ // Local installs should not create this file as it's not recognized by opencode
373
+ if (location === 'global') {
372
374
  const configPath = path.join(targetDir, 'opencode.json');
373
375
  if (!fs.existsSync(configPath)) {
374
376
  const config = {
@@ -408,6 +410,7 @@ fs.unlinkSync(tempConfig);
408
410
  fs.writeFileSync(configPath, JSON.stringify(config, null, 2));
409
411
  }
410
412
  }
413
+ }
411
414
 
412
415
  console.log(` ✓ Installed to ${runtime} (${location})`);
413
416
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algomath-extract",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "AlgoMath Framework - Transform AI assistants into reliable mathematical problem-solving environments",
5
5
  "main": "index.js",
6
6
  "bin": {