stringray-ai 1.0.6 → 1.0.8

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/dist/cli/index.js +12 -11
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -43,21 +43,21 @@ program
43
43
  }
44
44
  console.log("✅ Node.js version compatible");
45
45
 
46
- // Check if oh-my-opencode is available
47
- try {
48
- const { execSync } = require('child_process');
49
- execSync('which oh-my-opencode', { stdio: 'pipe' });
50
- console.log("✅ oh-my-opencode available");
51
- } catch (error) {
52
- console.log("⚠️ oh-my-opencode not found in PATH (this is okay if using as a plugin)");
53
- }
46
+ // Check if oh-my-opencode is available
47
+ try {
48
+ const { execSync } = await import('child_process');
49
+ execSync('which oh-my-opencode', { stdio: 'pipe' });
50
+ console.log("✅ oh-my-opencode available");
51
+ } catch (error) {
52
+ console.log("⚠️ oh-my-opencode not found in PATH (this is okay if using as a plugin)");
53
+ }
54
54
 
55
55
  // Create configuration files
56
56
  console.log("\nCreating configuration files...");
57
57
 
58
58
  // Create .opencode directory
59
- const fs = require('fs');
60
- const path = require('path');
59
+ const fs = await import('fs');
60
+ const path = await import('path');
61
61
 
62
62
  const opencodeDir = path.join(process.cwd(), '.opencode');
63
63
  if (!fs.existsSync(opencodeDir)) {
@@ -78,7 +78,8 @@ program
78
78
  console.log("✅ Created oh-my-opencode.json configuration");
79
79
 
80
80
  // Copy .mcp.json configuration
81
- const mcpConfigSource = path.join(__dirname, '..', '.mcp.json');
81
+ // Use a simpler approach that works in both CommonJS and ES modules
82
+ const mcpConfigSource = path.resolve(__dirname, '..', '.mcp.json');
82
83
  const mcpConfigDest = path.join(process.cwd(), '.mcp.json');
83
84
 
84
85
  if (fs.existsSync(mcpConfigSource)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stringray-ai",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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",