sandboxbox 2.5.0 → 2.5.2
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Test file');
|
package/package.json
CHANGED
package/utils/commands/claude.js
CHANGED
|
@@ -60,8 +60,8 @@ export function claudeCommand(projectDir, command = 'claude') {
|
|
|
60
60
|
execSync(containerCommand, {
|
|
61
61
|
stdio: 'inherit',
|
|
62
62
|
shell: process.platform === 'win32',
|
|
63
|
-
windowsHide: process.platform === 'win32'
|
|
64
|
-
timeout
|
|
63
|
+
windowsHide: process.platform === 'win32'
|
|
64
|
+
// No timeout for interactive Claude sessions
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
cleanup();
|
|
@@ -93,10 +93,14 @@ export function runCommand(projectDir, cmd = 'bash') {
|
|
|
93
93
|
timeout: 30000 // 30 second timeout
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
// For echo command,
|
|
96
|
+
// For echo command, capture and display output
|
|
97
97
|
if (cmd === 'echo' || cmd.startsWith('echo ')) {
|
|
98
98
|
const echoCmd = cmd.replace('echo ', '');
|
|
99
|
-
execSync(`"${podmanPath}" run --rm ${mounts.join(' ')} -w /workspace sandboxbox:latest echo ${echoCmd}`,
|
|
99
|
+
const output = execSync(`"${podmanPath}" run --rm ${mounts.join(' ')} -w /workspace sandboxbox:latest echo ${echoCmd}`, {
|
|
100
|
+
...containerOptions,
|
|
101
|
+
encoding: 'utf8'
|
|
102
|
+
}).trim();
|
|
103
|
+
console.log(output);
|
|
100
104
|
} else {
|
|
101
105
|
execSync(`"${podmanPath}" run --rm -it ${mounts.join(' ')} -w /workspace sandboxbox:latest ${cmd}`, containerOptions);
|
|
102
106
|
}
|