sandboxbox 3.0.10 → 3.0.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandboxbox",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "Lightweight process containment sandbox for CLI tools - Playwright, Claude Code, and more. Pure Node.js, no dependencies.",
5
5
  "type": "module",
6
6
  "main": "cli.js",
@@ -112,7 +112,15 @@ export async function claudeCommand(projectDir, prompt) {
112
112
  }
113
113
  console.log(color('green', `✅ Session started (${event.session_id.substring(0, 8)}...)`));
114
114
  console.log(color('cyan', `📦 Model: ${event.model}`));
115
- console.log(color('cyan', `🔧 Tools: ${event.tools.length} available\n`));
115
+ console.log(color('cyan', `🔧 Tools: ${event.tools.length} available`));
116
+
117
+ // List available tools
118
+ if (event.tools && event.tools.length > 0) {
119
+ const toolNames = event.tools.map(tool => tool.name || tool).sort();
120
+ console.log(color('yellow', ` Available: ${toolNames.join(', ')}\n`));
121
+ } else {
122
+ console.log('');
123
+ }
116
124
  } else if (event.type === 'assistant' && event.message) {
117
125
  const content = event.message.content;
118
126
  if (Array.isArray(content)) {
package/utils/sandbox.js CHANGED
@@ -12,11 +12,16 @@ export function createSandbox(projectDir) {
12
12
  `git config --global --add safe.directory "${projectDir}"`,
13
13
  `git config --global --add safe.directory "${projectDir}/.git"`,
14
14
  // Use shallow clone for faster checkout (depth 1 = current commit only)
15
- `git clone --depth 1 --no-tags "${projectDir}" "${workspaceDir}"`,
16
- // Configure host repo to accept pushes
17
- `git config receive.denyCurrentBranch updateInstead`
15
+ `git clone --depth 1 --no-tags "${projectDir}" "${workspaceDir}"`
18
16
  ];
19
17
 
18
+ // Configure host repo to accept pushes (run in project directory)
19
+ execSync(`cd "${projectDir}" && git config receive.denyCurrentBranch updateInstead`, {
20
+ stdio: 'pipe',
21
+ shell: true,
22
+ windowsHide: true
23
+ });
24
+
20
25
  // Execute git commands in parallel where possible
21
26
  gitCommands.forEach(cmd => {
22
27
  execSync(cmd, {