stringray-ai 1.0.11 → 1.0.13

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.11",
3
+ "version": "1.0.13",
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 test environment (directory name contains 'stringray-' or 'test-')
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 isTestEnvironment = dirName.includes('stringray-') || dirName.includes('final-stringray') || dirName.includes('test-') || dirName.includes('final-test');
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