sandboxbox 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/cli.js +21 -0
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -10,6 +10,14 @@
10
10
  * npx sandboxbox shell <project> # Interactive shell
11
11
  */
12
12
 
13
+ // Debug: Make sure the script starts
14
+ console.log('🚀 SandboxBox starting...');
15
+ if (process.env.DEBUG) {
16
+ console.log(`🔧 Debug: Platform: ${process.platform}`);
17
+ console.log(`🔧 Debug: Node.js: ${process.version}`);
18
+ console.log(`🔧 Debug: Args: ${process.argv.slice(2).join(' ')}`);
19
+ }
20
+
13
21
  import { readFileSync, existsSync, writeFileSync, mkdirSync } from 'fs';
14
22
  import { execSync } from 'child_process';
15
23
  import { fileURLToPath } from 'url';
@@ -236,7 +244,20 @@ async function main() {
236
244
  // Run if called directly
237
245
  if (import.meta.url === `file://${process.argv[1]}`) {
238
246
  main().catch(error => {
247
+ console.error('❌ SandboxBox failed to start:');
239
248
  console.error('Error:', error.message);
249
+ console.error('');
250
+ console.error('💡 This might be because:');
251
+ console.error(' • You are not on Linux (SandboxBox requires Linux)');
252
+ console.error(' • Node.js version compatibility issue');
253
+ console.error(' • Missing dependencies during installation');
254
+ console.error('');
255
+ console.error('📋 System information:');
256
+ console.error(` Platform: ${process.platform}`);
257
+ console.error(` Node.js: ${process.version}`);
258
+ console.error(` Architecture: ${process.arch}`);
259
+ console.error('');
260
+ console.error('🔧 Try: npx sandboxbox --help');
240
261
  process.exit(1);
241
262
  });
242
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandboxbox",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Zero-privilege container runner with Playwright support",
5
5
  "type": "module",
6
6
  "main": "index.js",