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 +1 -1
- package/scripts/postinstall.cjs +22 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strray-ai",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -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
|
|
485
|
-
console.log("Checking
|
|
486
|
-
const
|
|
487
|
-
if (fs.existsSync(
|
|
488
|
-
console.log("
|
|
489
|
-
let
|
|
490
|
-
|
|
491
|
-
function
|
|
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
|
-
|
|
519
|
-
console.log(`✅ Updated
|
|
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
|
|
522
|
+
console.warn(`Warning: Could not update .opencode file ${filePath}:`, error.message);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
function
|
|
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
|
-
|
|
533
|
-
} else if (item.endsWith('.js') || item.endsWith('.
|
|
534
|
-
|
|
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
|
-
|
|
539
|
+
processOpencodeDirectory(opencodeDir);
|
|
540
540
|
|
|
541
|
-
if (
|
|
542
|
-
console.log(`✅ Updated ${
|
|
541
|
+
if (opencodeFilesUpdated > 0) {
|
|
542
|
+
console.log(`✅ Updated ${opencodeFilesUpdated} .opencode files with consumer paths`);
|
|
543
543
|
} else {
|
|
544
|
-
console.log("ℹ️ No
|
|
544
|
+
console.log("ℹ️ No .opencode file path updates needed");
|
|
545
545
|
}
|
|
546
546
|
} else {
|
|
547
|
-
console.log("ℹ️
|
|
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!');
|