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 +1 -1
- package/utils/commands/claude.js +25 -2
package/package.json
CHANGED
package/utils/commands/claude.js
CHANGED
|
@@ -321,8 +321,26 @@ export async function claudeCommand(projectDir, prompt, flags = {}) {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
//
|
|
325
|
-
|
|
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
|
});
|