strray-ai 1.0.14 → 1.0.15
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 +5 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strray-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
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
|
@@ -370,10 +370,10 @@ function configureStrRayPlugin() {
|
|
|
370
370
|
// Update MCP server commands in opencode.json
|
|
371
371
|
if (opencodeConfig.mcp) {
|
|
372
372
|
for (const [serverName, serverConfig] of Object.entries(opencodeConfig.mcp)) {
|
|
373
|
-
if (serverConfig.command
|
|
373
|
+
if (serverConfig.command && Array.isArray(serverConfig.command)) {
|
|
374
374
|
for (let i = 0; i < serverConfig.command.length; i++) {
|
|
375
375
|
const cmd = serverConfig.command[i];
|
|
376
|
-
if (typeof cmd === "string"
|
|
376
|
+
if (typeof cmd === "string" && cmd.includes("dist/plugin/mcps/")) {
|
|
377
377
|
const newCmd = cmd.replace("dist/plugin/mcps/", "node_modules/strray-ai/dist/plugin/mcps/");
|
|
378
378
|
if (newCmd !== cmd) {
|
|
379
379
|
serverConfig.command[i] = newCmd;
|
|
@@ -405,10 +405,10 @@ function configureStrRayPlugin() {
|
|
|
405
405
|
let ohMyUpdated = false;
|
|
406
406
|
|
|
407
407
|
// Update plugin path
|
|
408
|
-
if (ohMyConfig.plugin
|
|
408
|
+
if (ohMyConfig.plugin && Array.isArray(ohMyConfig.plugin)) {
|
|
409
409
|
for (let i = 0; i < ohMyConfig.plugin.length; i++) {
|
|
410
410
|
const pluginPath = ohMyConfig.plugin[i];
|
|
411
|
-
if (typeof pluginPath === "string"
|
|
411
|
+
if (typeof pluginPath === "string" && pluginPath.includes("./dist/")) {
|
|
412
412
|
const newPath = pluginPath.replace("./dist/", "../node_modules/strray-ai/dist/");
|
|
413
413
|
if (newPath !== pluginPath) {
|
|
414
414
|
ohMyConfig.plugin[i] = newPath;
|
|
@@ -429,19 +429,7 @@ function configureStrRayPlugin() {
|
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
// All configuration paths are now updated for consumer usage
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
if (updated) {
|
|
438
|
-
fs.writeFileSync(mcpConfigPath, JSON.stringify(mcpConfig, null, 2));
|
|
439
|
-
console.log('✅ Updated MCP server paths in .mcp.json');
|
|
440
|
-
}
|
|
441
|
-
} catch (error) {
|
|
442
|
-
console.warn('Warning: Could not update MCP server paths:', error.message);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
432
|
+
}
|
|
445
433
|
|
|
446
434
|
console.log('🎉 StrRay plugin installation complete!');
|
|
447
435
|
console.log(`\n📋 Next Steps:`);
|