strray-ai 1.0.21 → 1.0.23

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": "strray-ai",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "⚡ StringRay ⚡: Bulletproof AI orchestration with systematic error prevention. Zero dead ends. Ship clean, tested, optimized code — every time.",
5
5
  "type": "module",
6
6
  "main": "./dist/plugin/index.js",
@@ -481,14 +481,14 @@ function configureStrRayPlugin() {
481
481
  console.log("ℹ️ Test files not found (this is normal for some installations)");
482
482
  }
483
483
 
484
- // Update paths in consumer scripts
485
- console.log("Checking consumer scripts for path updates...");
486
- const scriptsDir = path.join(process.cwd(), "node_modules", "strray-ai", "scripts");
487
- if (fs.existsSync(scriptsDir)) {
488
- console.log("Consumer scripts found, updating paths...");
489
- let scriptsUpdated = 0;
490
-
491
- function processScriptFile(filePath) {
484
+ // Update paths in .opencode directory files
485
+ console.log("Checking .opencode directory files for path updates...");
486
+ const opencodeDir = path.join(process.cwd(), ".opencode");
487
+ if (fs.existsSync(opencodeDir)) {
488
+ console.log(".opencode directory found, updating paths...");
489
+ let opencodeFilesUpdated = 0;
490
+
491
+ function processOpencodeFile(filePath) {
492
492
  try {
493
493
  let content = fs.readFileSync(filePath, "utf-8");
494
494
  let updated = false;
@@ -515,38 +515,40 @@ function configureStrRayPlugin() {
515
515
 
516
516
  if (updated) {
517
517
  fs.writeFileSync(filePath, content);
518
- scriptsUpdated++;
519
- console.log(`✅ Updated script file: ${path.relative(process.cwd(), filePath)}`);
518
+ opencodeFilesUpdated++;
519
+ console.log(`✅ Updated .opencode file: ${path.relative(process.cwd(), filePath)}`);
520
520
  }
521
521
  } catch (error) {
522
- console.warn(`Warning: Could not update script file ${filePath}:`, error.message);
522
+ console.warn(`Warning: Could not update .opencode file ${filePath}:`, error.message);
523
523
  }
524
524
  }
525
525
 
526
- function processScriptsDirectory(dirPath) {
526
+ function processOpencodeDirectory(dirPath) {
527
527
  const items = fs.readdirSync(dirPath);
528
528
  for (const item of items) {
529
529
  const fullPath = path.join(dirPath, item);
530
530
  const stat = fs.statSync(fullPath);
531
531
  if (stat.isDirectory()) {
532
- processScriptsDirectory(fullPath);
533
- } else if (item.endsWith('.js') || item.endsWith('.mjs') || item.endsWith('.ts')) {
534
- processScriptFile(fullPath);
532
+ processOpencodeDirectory(fullPath);
533
+ } else if (item.endsWith('.js') || item.endsWith('.ts') || item.endsWith('.json') || item.endsWith('.md') || item.endsWith('.sh')) {
534
+ processOpencodeFile(fullPath);
535
535
  }
536
536
  }
537
537
  }
538
538
 
539
- processScriptsDirectory(scriptsDir);
539
+ processOpencodeDirectory(opencodeDir);
540
540
 
541
- if (scriptsUpdated > 0) {
542
- console.log(`✅ Updated ${scriptsUpdated} consumer scripts with correct paths`);
541
+ if (opencodeFilesUpdated > 0) {
542
+ console.log(`✅ Updated ${opencodeFilesUpdated} .opencode files with consumer paths`);
543
543
  } else {
544
- console.log("ℹ️ No script path updates needed");
544
+ console.log("ℹ️ No .opencode file path updates needed");
545
545
  }
546
546
  } else {
547
- console.log("ℹ️ Consumer scripts not found");
547
+ console.log("ℹ️ .opencode directory not found");
548
548
  }
549
549
 
550
+ // Consumer scripts already have correct relative paths - no conversion needed
551
+
550
552
  // All configuration paths are now updated for consumer usage
551
553
 
552
554
  console.log('🎉 StrRay plugin installation complete!');