strray-ai 1.0.14 → 1.0.16

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.14",
3
+ "version": "1.0.16",
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",
@@ -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 // MCP server paths are now correct in the template - no updating needed // MCP server paths are now correct in the template - no updating needed Array.isArray(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" // MCP server paths are now correct in the template - no updating needed // MCP server paths are now correct in the template - no updating needed cmd.includes("dist/plugin/mcps/")) {
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 // MCP server paths are now correct in the template - no updating needed // MCP server paths are now correct in the template - no updating needed Array.isArray(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" // MCP server paths are now correct in the template - no updating needed // MCP server paths are now correct in the template - no updating needed pluginPath.includes("./dist/")) {
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:`);