sandboxbox 1.0.7 → 1.0.8
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/cli.js +17 -19
- package/debug-cli.js +15 -0
- package/package.json +1 -1
package/cli.js
CHANGED
@@ -248,22 +248,20 @@ async function main() {
|
|
248
248
|
}
|
249
249
|
|
250
250
|
// Run if called directly
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
});
|
269
|
-
}
|
251
|
+
main().catch(error => {
|
252
|
+
console.error('❌ SandboxBox failed to start:');
|
253
|
+
console.error('Error:', error.message);
|
254
|
+
console.error('');
|
255
|
+
console.error('💡 This might be because:');
|
256
|
+
console.error(' • You are not on Linux (SandboxBox requires Linux)');
|
257
|
+
console.error(' • Node.js version compatibility issue');
|
258
|
+
console.error(' • Missing dependencies during installation');
|
259
|
+
console.error('');
|
260
|
+
console.error('📋 System information:');
|
261
|
+
console.error(` Platform: ${process.platform}`);
|
262
|
+
console.error(` Node.js: ${process.version}`);
|
263
|
+
console.error(` Architecture: ${process.arch}`);
|
264
|
+
console.error('');
|
265
|
+
console.error('🔧 Try: npx sandboxbox --help');
|
266
|
+
process.exit(1);
|
267
|
+
});
|
package/debug-cli.js
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
|
3
|
+
console.log('🚀 Debug CLI starting...');
|
4
|
+
console.log('Args:', process.argv.slice(2));
|
5
|
+
console.log('Platform:', process.platform);
|
6
|
+
console.log('CWD:', process.cwd());
|
7
|
+
|
8
|
+
// Test basic output
|
9
|
+
console.log('✅ Basic output works');
|
10
|
+
|
11
|
+
// Test if script continues
|
12
|
+
setTimeout(() => {
|
13
|
+
console.log('✅ Script completed after timeout');
|
14
|
+
process.exit(0);
|
15
|
+
}, 1000);
|