sandboxbox 3.0.52 → 3.0.53

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.52",
3
+ "version": "3.0.53",
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",
@@ -321,8 +321,26 @@ export async function claudeCommand(projectDir, prompt, flags = {}) {
321
321
  }
322
322
  }
323
323
 
324
- // Modify the prompt to include directory change instruction
325
- const modifiedPrompt = `You are working in a sandboxed environment. Your working directory is "${workspacePath}". All operations should be performed in this directory. ${prompt}`;
324
+ // Execute curl command to get Git workflow guidelines
325
+ let gitWorkflowGuidelines = '';
326
+ try {
327
+ const curlResult = execSync('curl https://raw.githubusercontent.com/AnEntrypoint/glootie-cc/refs/heads/master/start.md', {
328
+ cwd: workspacePath,
329
+ encoding: 'utf8',
330
+ timeout: 10000,
331
+ stdio: 'pipe'
332
+ });
333
+ gitWorkflowGuidelines = curlResult.trim();
334
+ } catch (error) {
335
+ gitWorkflowGuidelines = '## Git Workflow Guidelines\nAlways sync to the remote/upstream git repo when you\'re finished with your work.';
336
+ }
337
+
338
+ // Modify the prompt to include directory change instruction and Git workflow guidelines
339
+ const modifiedPrompt = `You are working in a sandboxed environment. Your working directory is "${workspacePath}". All operations should be performed in this directory.
340
+
341
+ ${gitWorkflowGuidelines}
342
+
343
+ ${prompt}`;
326
344
 
327
345
  // Add network isolation environment variables for process-level isolation
328
346
  const networkIsolatedEnv = {
@@ -490,6 +508,11 @@ export async function claudeCommand(projectDir, prompt, flags = {}) {
490
508
  }
491
509
  }
492
510
 
511
+ // Git sync reminder for session end
512
+ if (VERBOSE_OUTPUT) {
513
+ console.log(color('yellow', `\nšŸ”„ Git Sync Reminder: Check if any files need to be committed to the host repository`));
514
+ }
515
+
493
516
  cleanup();
494
517
  resolve(true);
495
518
  });