stringray-ai 1.0.10 → 1.0.12
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.12",
|
|
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",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -10,14 +10,16 @@ const os = require('os');
|
|
|
10
10
|
|
|
11
11
|
// Copy .mcp.json to project root if it doesn't exist
|
|
12
12
|
// Find the package root relative to this script
|
|
13
|
-
const packageRoot = path.
|
|
13
|
+
const packageRoot = path.join(__dirname, '..');
|
|
14
14
|
const mcpConfigSource = path.join(packageRoot, '.mcp.json');
|
|
15
15
|
const mcpConfigDest = path.join(process.cwd(), '.mcp.json');
|
|
16
16
|
|
|
17
17
|
console.log('Postinstall running...');
|
|
18
|
+
console.log('Script dir:', __dirname);
|
|
18
19
|
console.log('Package root:', packageRoot);
|
|
19
20
|
console.log('Source:', mcpConfigSource);
|
|
20
21
|
console.log('Destination:', mcpConfigDest);
|
|
22
|
+
console.log('Source exists:', fs.existsSync(mcpConfigSource));
|
|
21
23
|
|
|
22
24
|
try {
|
|
23
25
|
if (fs.existsSync(mcpConfigSource)) {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// Check if we're running from a test environment (directory name contains 'stringray-' or 'test-')
|
|
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 isTestEnvironment = dirName.includes('stringray-') || dirName.includes('final-stringray') || dirName.includes('test-') || dirName.includes('deploy-verify') || dirName.includes('final-test');
|
|
18
18
|
const PLUGIN_PATH = process.env.STRINGRAY_PLUGIN_PATH ||
|
|
19
19
|
(isTestEnvironment ? 'node_modules/stringray-ai/dist/plugin/plugins' : 'dist/plugin/plugins');
|
|
20
20
|
|