sandboxbox 3.0.45 → 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/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
|