sandboxbox 3.0.44 → 3.0.46

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": "sandboxbox",
3
- "version": "3.0.44",
3
+ "version": "3.0.46",
4
4
  "description": "Lightweight process containment sandbox for CLI tools - Playwright, Claude Code, and more. Pure Node.js, no dependencies.",
5
5
  "type": "module",
6
6
  "main": "cli.js",
Binary file
@@ -21,34 +21,20 @@ export class ClaudeOptimizer {
21
21
  }
22
22
  }
23
23
 
24
- // Apply startup optimizations
24
+ // Apply startup optimizations - preserve bundled hooks!
25
25
  const optimizedSettings = {
26
26
  ...settings,
27
27
  // Reduce plugin timeouts
28
- pluginTimeout: 5000,
28
+ pluginTimeout: settings.pluginTimeout || 5000,
29
29
  // Disable unnecessary features for faster startup
30
- alwaysThinkingEnabled: false,
31
- // Optimize plugin loading
30
+ alwaysThinkingEnabled: settings.alwaysThinkingEnabled || false,
31
+ // Optimize plugin loading - preserve existing plugins
32
32
  enabledPlugins: {
33
33
  ...settings.enabledPlugins,
34
34
  // Only enable essential plugins for performance
35
35
  'glootie-cc@anentrypoint-plugins': true
36
- },
37
- // Add performance-focused hooks
38
- hooks: {
39
- ...(settings.hooks || {}),
40
- SessionStart: [
41
- {
42
- matcher: "*",
43
- hooks: [
44
- {
45
- type: "command",
46
- command: "echo 'Claude optimized session started'"
47
- }
48
- ]
49
- }
50
- ]
51
36
  }
37
+ // Note: DO NOT override hooks - preserve bundled settings hooks!
52
38
  };
53
39
 
54
40
  // Ensure directory exists
package/utils/sandbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { mkdtempSync, rmSync, cpSync, existsSync, mkdirSync, writeFileSync, symlinkSync, realpathSync, readFileSync } from 'fs';
1
+ import { mkdtempSync, rmSync, cpSync, existsSync, mkdirSync, writeFileSync, symlinkSync, realpathSync, readFileSync, appendFileSync } from 'fs';
2
2
  import { tmpdir, homedir, platform } from 'os';
3
3
  import { join, resolve, dirname } from 'path';
4
4
  import { fileURLToPath } from 'url';
@@ -243,8 +243,7 @@ node_modules/
243
243
  console.log(`🔍 Debug: Bundled settings not found at ${bundledSettingsPath}`);
244
244
  }
245
245
  }
246
-
247
- // No host settings fallback - only bundled settings used
246
+ }
248
247
 
249
248
  // Optimize cache directory handling - use symlinks instead of copying
250
249
  const hostCacheDir = join(homedir(), '.cache');