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 +1 -1
- package/sandboxbox-3.0.45.tgz +0 -0
- package/utils/claude-optimizer.js +5 -19
- package/utils/sandbox.js +2 -3
package/package.json
CHANGED
|
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');
|