stringray-ai 1.0.12 → 1.0.14
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": "stringray-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
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",
|
|
@@ -11,10 +11,21 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// Path configuration for cross-environment compatibility
|
|
14
|
-
// Check if we're running from a
|
|
14
|
+
// Check if we're running from a deployed environment (has stringray-ai in node_modules)
|
|
15
15
|
const cwd = process.cwd();
|
|
16
16
|
const dirName = cwd.split('/').pop() || '';
|
|
17
|
-
const
|
|
17
|
+
const fs = await import('fs');
|
|
18
|
+
const path = await import('path');
|
|
19
|
+
|
|
20
|
+
// More robust detection: check for installed stringray-ai package
|
|
21
|
+
const deployedPluginPath = path.join(cwd, 'node_modules', 'stringray-ai', 'dist', 'plugin', 'plugins');
|
|
22
|
+
const isDeployedEnvironment = fs.existsSync(path.join(cwd, 'node_modules', 'stringray-ai'));
|
|
23
|
+
|
|
24
|
+
// Also check directory name patterns
|
|
25
|
+
const isTestEnvironment = dirName.includes('stringray-') || dirName.includes('final-stringray') ||
|
|
26
|
+
dirName.includes('test-') || dirName.includes('deploy-verify') || dirName.includes('final-test') ||
|
|
27
|
+
dirName.includes('jelly') || isDeployedEnvironment;
|
|
28
|
+
|
|
18
29
|
const PLUGIN_PATH = process.env.STRINGRAY_PLUGIN_PATH ||
|
|
19
30
|
(isTestEnvironment ? 'node_modules/stringray-ai/dist/plugin/plugins' : 'dist/plugin/plugins');
|
|
20
31
|
|
|
@@ -47,10 +58,11 @@ console.log('=====================================\n');
|
|
|
47
58
|
console.log(`📚 Codex context injected: ${hasCodex ? '✅' : '❌'}`);
|
|
48
59
|
console.log(`📋 Codex terms included: ${hasTerms ? '✅' : '❌'}`);
|
|
49
60
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
61
|
+
if (hasCodex && hasTerms) {
|
|
62
|
+
console.log('\n🎉 StringRay Framework Plugin Test: PASSED');
|
|
63
|
+
console.log('✨ Framework is ready for oh-my-opencode integration');
|
|
64
|
+
process.exit(0);
|
|
65
|
+
} else {
|
|
54
66
|
console.log('\n❌ StringRay Framework Plugin Test: FAILED');
|
|
55
67
|
process.exit(1);
|
|
56
68
|
}
|