stringray-ai 1.0.26 → 1.0.28
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/README.md +20 -1
- package/dist/cli/index.js +75 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ⚡ StringRay AI v1.0.
|
|
1
|
+
# ⚡ StringRay AI v1.0.26 – Bulletproof AI Orchestration for Production-Grade Development
|
|
2
2
|
|
|
3
3
|
[](https://github.com/htafolla/stringray)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -101,8 +101,27 @@ node node_modules/stringray-ai/scripts/test-stringray-plugin.mjs
|
|
|
101
101
|
|
|
102
102
|
# Check system status
|
|
103
103
|
npx stringray-ai status
|
|
104
|
+
|
|
105
|
+
# Use StringRay AI features
|
|
106
|
+
npx stringray-ai run "Your prompt here"
|
|
107
|
+
npx stringray-ai auth
|
|
104
108
|
```
|
|
105
109
|
|
|
110
|
+
## Available Commands
|
|
111
|
+
|
|
112
|
+
**Core Commands:**
|
|
113
|
+
- `npx stringray-ai --help` - Show help and available commands
|
|
114
|
+
- `npx stringray-ai doctor` - Run health checks and diagnostics
|
|
115
|
+
- `npx stringray-ai install` - Interactive setup wizard
|
|
116
|
+
- `npx stringray-ai status` - Display system status
|
|
117
|
+
|
|
118
|
+
**AI Features:**
|
|
119
|
+
- `npx stringray-ai run "prompt"` - Execute StringRay session with agent orchestration
|
|
120
|
+
- `npx stringray-ai auth` - Manage authentication for AI providers
|
|
121
|
+
|
|
122
|
+
**Validation:**
|
|
123
|
+
- `node node_modules/stringray-ai/scripts/test-stringray-plugin.mjs` - Comprehensive plugin validation
|
|
124
|
+
|
|
106
125
|
The plugin test will verify:
|
|
107
126
|
- ✅ Plugin loads successfully
|
|
108
127
|
- ✅ Codex injection works
|
package/dist/cli/index.js
CHANGED
|
@@ -28,16 +28,81 @@ program
|
|
|
28
28
|
.action(async (options) => {
|
|
29
29
|
console.log("🚀 StringRay Framework Setup Wizard");
|
|
30
30
|
console.log("=================================");
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
// Check system prerequisites
|
|
34
|
+
console.log("Checking system prerequisites...");
|
|
35
|
+
|
|
36
|
+
// Check Node.js version
|
|
37
|
+
const nodeVersion = process.versions.node;
|
|
38
|
+
const majorVersion = parseInt(nodeVersion.split('.')[0]);
|
|
39
|
+
if (majorVersion < 18) {
|
|
40
|
+
console.error(`❌ Node.js version ${nodeVersion} is not supported. Please upgrade to Node.js 18+`);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
console.log("✅ Node.js version compatible");
|
|
44
|
+
|
|
45
|
+
// Check if oh-my-opencode is available
|
|
46
|
+
try {
|
|
47
|
+
const { execSync } = await import('child_process');
|
|
48
|
+
execSync('which oh-my-opencode', { stdio: 'pipe' });
|
|
49
|
+
console.log("✅ oh-my-opencode available");
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.log("⚠️ oh-my-opencode not found in PATH (this is okay if using as a plugin)");
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Create configuration files
|
|
55
|
+
console.log("\nCreating configuration files...");
|
|
56
|
+
|
|
57
|
+
// Create .opencode directory
|
|
58
|
+
const fs = await import('fs');
|
|
59
|
+
const path = await import('path');
|
|
60
|
+
|
|
61
|
+
const opencodeDir = path.join(process.cwd(), '.opencode');
|
|
62
|
+
if (!fs.existsSync(opencodeDir)) {
|
|
63
|
+
fs.mkdirSync(opencodeDir, { recursive: true });
|
|
64
|
+
console.log("✅ Created .opencode directory");
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Create oh-my-opencode.json configuration
|
|
68
|
+
const ohMyOpencodeConfig = {
|
|
69
|
+
"plugin": [
|
|
70
|
+
"oh-my-opencode",
|
|
71
|
+
"stringray-ai/dist/plugin/stringray-codex-injection.js"
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const configPath = path.join(opencodeDir, 'oh-my-opencode.json');
|
|
76
|
+
fs.writeFileSync(configPath, JSON.stringify(ohMyOpencodeConfig, null, 2));
|
|
77
|
+
console.log("✅ Created oh-my-opencode.json configuration");
|
|
78
|
+
|
|
79
|
+
// Copy .mcp.json configuration
|
|
80
|
+
const { fileURLToPath } = await import('url');
|
|
81
|
+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
82
|
+
const mcpConfigSource = path.join(currentDir, '..', '.mcp.json');
|
|
83
|
+
const mcpConfigDest = path.join(process.cwd(), '.mcp.json');
|
|
84
|
+
|
|
85
|
+
if (fs.existsSync(mcpConfigSource)) {
|
|
86
|
+
fs.copyFileSync(mcpConfigSource, mcpConfigDest);
|
|
87
|
+
console.log("✅ Copied MCP server configuration");
|
|
88
|
+
} else {
|
|
89
|
+
console.warn('Warning: MCP config not found in package');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
console.log("\n🎉 StringRay Framework installation completed successfully!");
|
|
93
|
+
console.log("✅ Enterprise AI orchestration ready!");
|
|
94
|
+
console.log("🌟 Welcome to the future of AI-powered development!");
|
|
95
|
+
|
|
96
|
+
console.log("\nNext steps:");
|
|
97
|
+
console.log(" • Run 'stringray-ai doctor' to verify everything is working");
|
|
98
|
+
console.log(" • Run 'stringray-ai status' to see system status");
|
|
99
|
+
console.log(" • Start oh-my-opencode to use StringRay AI features");
|
|
100
|
+
|
|
101
|
+
} catch (error) {
|
|
102
|
+
console.error("❌ Installation failed:", error.message);
|
|
103
|
+
console.error("❌ Stack trace:", error.stack);
|
|
104
|
+
process.exit(1);
|
|
105
|
+
}
|
|
41
106
|
});
|
|
42
107
|
// Doctor Command - Basic implementation
|
|
43
108
|
program
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stringray-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
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",
|