sandboxbox 3.0.30 → 3.0.32

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.30",
3
+ "version": "3.0.32",
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",
@@ -4,6 +4,9 @@
4
4
  "enabledPlugins": {
5
5
  "glootie-cc@anentrypoint-plugins": true
6
6
  },
7
+ "pluginPaths": [
8
+ "../plugin"
9
+ ],
7
10
  "hooks": {
8
11
  "SessionStart": [
9
12
  {
@@ -27,6 +30,18 @@
27
30
  {
28
31
  "type": "command",
29
32
  "command": "echo 'GIT_INTEGRATION: Review modified files, stage appropriate changes, and create an intelligent commit message that describes the work accomplished. Push to host repository if changes are ready.'"
33
+ },
34
+ {
35
+ "type": "command",
36
+ "command": "git status --porcelain"
37
+ },
38
+ {
39
+ "type": "command",
40
+ "command": "if [ -n \"$(git status --porcelain)\" ]; then echo 'Changes detected - preparing intelligent Git operations...'; git add -A; echo 'Changes staged. Ready for intelligent commit analysis.'; else echo 'No changes detected in working directory.'; fi"
41
+ },
42
+ {
43
+ "type": "command",
44
+ "command": "echo 'Please intelligently analyze the staged changes and create an appropriate commit message, then commit and push if the changes are ready.'"
30
45
  }
31
46
  ]
32
47
  }
package/utils/sandbox.js CHANGED
@@ -309,6 +309,29 @@ export function createSandbox(projectDir, options = {}) {
309
309
  cpSync(pluginsDir, sandboxPluginsDir, { recursive: true });
310
310
  }
311
311
  }
312
+
313
+ // Copy the glootie-cc plugin from host if it exists
314
+ const hostPluginDir = join(dirname(projectDir), 'plugin');
315
+ if (existsSync(hostPluginDir)) {
316
+ const sandboxPluginDir = join(sandboxDir, 'plugin');
317
+
318
+ if (VERBOSE_OUTPUT) {
319
+ console.log('📦 Copying glootie-cc plugin from host');
320
+ }
321
+
322
+ cpSync(hostPluginDir, sandboxPluginDir, { recursive: true });
323
+
324
+ // Make sure the hook scripts are executable
325
+ const startScript = join(sandboxPluginDir, 'start.sh');
326
+ const stopScript = join(sandboxPluginDir, 'stop.sh');
327
+
328
+ if (existsSync(startScript)) {
329
+ execSync(`chmod +x "${startScript}"`, { stdio: 'pipe' });
330
+ }
331
+ if (existsSync(stopScript)) {
332
+ execSync(`chmod +x "${stopScript}"`, { stdio: 'pipe' });
333
+ }
334
+ }
312
335
  }
313
336
  }
314
337