stringray-ai 1.0.39 → 1.0.41
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 +3 -3
- package/scripts/validate-codex.js +14 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stringray-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
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",
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
],
|
|
117
117
|
"exports": {
|
|
118
118
|
".": {
|
|
119
|
-
"types": "./dist/index.d.ts",
|
|
120
|
-
"import": "./dist/index.js"
|
|
119
|
+
"types": "./dist/plugin/index.d.ts",
|
|
120
|
+
"import": "./dist/plugin/index.js"
|
|
121
121
|
},
|
|
122
122
|
"./agents": {
|
|
123
123
|
"types": "./dist/agents/index.d.ts",
|
|
@@ -17,13 +17,22 @@ if (isDeployed) {
|
|
|
17
17
|
console.log('DEBUG: Running in deployed environment');
|
|
18
18
|
console.log('DEBUG: Current directory:', process.cwd());
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
// Check if .mcp.json exists (created by postinstall)
|
|
21
|
+
// If it doesn't exist, try to run postinstall script
|
|
22
|
+
const mcpExists = fs.existsSync(".mcp.json");
|
|
23
|
+
console.log('DEBUG: .mcp.json exists:', mcpExists);
|
|
24
|
+
if (!mcpExists) {
|
|
25
|
+
console.log('DEBUG: .mcp.json not found, attempting to run postinstall script');
|
|
26
|
+
try {
|
|
27
|
+
// Import and run the postinstall script
|
|
28
|
+
const { execSync } = await import('child_process');
|
|
29
|
+
execSync('node node_modules/stringray-ai/scripts/postinstall.cjs', { stdio: 'inherit' });
|
|
30
|
+
console.log('DEBUG: Postinstall script executed successfully');
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.log('DEBUG: Failed to run postinstall script:', error.message);
|
|
25
33
|
process.exit(1);
|
|
26
34
|
}
|
|
35
|
+
}
|
|
27
36
|
|
|
28
37
|
// Check if package.json exists
|
|
29
38
|
const pkgExists = fs.existsSync("package.json");
|