sandboxbox 3.0.23 → 3.0.24
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 +3 -3
package/package.json
CHANGED
package/utils/sandbox.js
CHANGED
|
@@ -143,7 +143,7 @@ export function createSandbox(projectDir) {
|
|
|
143
143
|
// Show hook information in verbose mode
|
|
144
144
|
const settingsPath = join(hostClaudeDir, 'settings.json');
|
|
145
145
|
if (existsSync(settingsPath)) {
|
|
146
|
-
const settings = JSON.parse(
|
|
146
|
+
const settings = JSON.parse(readFileSync(settingsPath, 'utf8'));
|
|
147
147
|
if (settings.hooks) {
|
|
148
148
|
console.log('✅ Linked to host Claude settings directory');
|
|
149
149
|
console.log('📋 Hooks configured:');
|
|
@@ -188,7 +188,7 @@ export function createSandbox(projectDir) {
|
|
|
188
188
|
cpSync(hostFile, sandboxFile);
|
|
189
189
|
if (VERBOSE_OUTPUT && file === 'settings.json') {
|
|
190
190
|
// Show hook information for copied settings
|
|
191
|
-
const settings = JSON.parse(
|
|
191
|
+
const settings = JSON.parse(readFileSync(hostFile, 'utf8'));
|
|
192
192
|
if (settings.hooks) {
|
|
193
193
|
console.log('📋 Hooks configured in copied settings:');
|
|
194
194
|
Object.keys(settings.hooks).forEach(hookType => {
|
|
@@ -207,7 +207,7 @@ export function createSandbox(projectDir) {
|
|
|
207
207
|
}
|
|
208
208
|
if (VERBOSE_OUTPUT && file === 'settings.json') {
|
|
209
209
|
// Show hook information for existing settings
|
|
210
|
-
const settings = JSON.parse(
|
|
210
|
+
const settings = JSON.parse(readFileSync(hostFile, 'utf8'));
|
|
211
211
|
if (settings.hooks) {
|
|
212
212
|
console.log('📋 Hooks configured in existing settings:');
|
|
213
213
|
Object.keys(settings.hooks).forEach(hookType => {
|