sandboxbox 3.0.41 → 3.0.43
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/utils/sandbox.js +12 -2
package/package.json
CHANGED
package/utils/sandbox.js
CHANGED
|
@@ -199,11 +199,14 @@ node_modules/
|
|
|
199
199
|
// Create sandbox Claude directory and copy bundled settings
|
|
200
200
|
mkdirSync(sandboxClaudeDir, { recursive: true });
|
|
201
201
|
|
|
202
|
-
const bundledSettingsPath = join(resolve(fileURLToPath(import.meta.url), '..'
|
|
202
|
+
const bundledSettingsPath = join(resolve(fileURLToPath(import.meta.url), '..', '..'), 'sandboxbox-settings.json');
|
|
203
203
|
const sandboxSettingsPath = join(sandboxClaudeDir, 'settings.json');
|
|
204
204
|
|
|
205
205
|
// Copy bundled settings to sandbox
|
|
206
206
|
if (existsSync(bundledSettingsPath)) {
|
|
207
|
+
if (VERBOSE_OUTPUT) {
|
|
208
|
+
console.log(`🔍 Debug: Found bundled settings at ${bundledSettingsPath}`);
|
|
209
|
+
}
|
|
207
210
|
cpSync(bundledSettingsPath, sandboxSettingsPath);
|
|
208
211
|
|
|
209
212
|
// Also copy credentials from host if available
|
|
@@ -235,8 +238,15 @@ node_modules/
|
|
|
235
238
|
});
|
|
236
239
|
}
|
|
237
240
|
}
|
|
241
|
+
} else {
|
|
242
|
+
if (VERBOSE_OUTPUT) {
|
|
243
|
+
console.log(`🔍 Debug: Bundled settings not found at ${bundledSettingsPath}`);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
// Host settings fallback completely removed - prevents host hooks from interfering
|
|
247
|
+
if (VERBOSE_OUTPUT) {
|
|
248
|
+
console.log(`🔍 Debug: useHostSettings=${useHostSettings}, falling back to host settings`);
|
|
238
249
|
}
|
|
239
|
-
} else if (existsSync(hostClaudeDir)) {
|
|
240
250
|
try {
|
|
241
251
|
// Create symbolic link to host .claude directory
|
|
242
252
|
symlinkSync(hostClaudeDir, sandboxClaudeDir, 'dir');
|