sandboxbox 3.0.28 → 3.0.30
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 +4 -3
package/package.json
CHANGED
package/utils/sandbox.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { mkdtempSync, rmSync, cpSync, existsSync, mkdirSync, writeFileSync, symlinkSync, realpathSync } from 'fs';
|
|
1
|
+
import { mkdtempSync, rmSync, cpSync, existsSync, mkdirSync, writeFileSync, symlinkSync, realpathSync, readFileSync } from 'fs';
|
|
2
2
|
import { tmpdir, homedir, platform } from 'os';
|
|
3
|
-
import { join, resolve
|
|
3
|
+
import { join, resolve } from 'path';
|
|
4
|
+
import { fileURLToPath } from 'url';
|
|
4
5
|
import { spawn, execSync } from 'child_process';
|
|
5
6
|
|
|
6
7
|
export function createSandbox(projectDir, options = {}) {
|
|
@@ -139,7 +140,7 @@ export function createSandbox(projectDir, options = {}) {
|
|
|
139
140
|
// Create sandbox Claude directory and copy bundled settings
|
|
140
141
|
mkdirSync(sandboxClaudeDir, { recursive: true });
|
|
141
142
|
|
|
142
|
-
const bundledSettingsPath = join(resolve(), 'sandboxbox-settings.json');
|
|
143
|
+
const bundledSettingsPath = join(resolve(fileURLToPath(import.meta.url), '..'), '..', 'sandboxbox-settings.json');
|
|
143
144
|
const sandboxSettingsPath = join(sandboxClaudeDir, 'settings.json');
|
|
144
145
|
|
|
145
146
|
// Copy bundled settings to sandbox
|