sandboxbox 2.2.7 → 2.2.8

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": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "Portable container runner with Podman - Claude Code & Playwright support. Works on Windows, macOS, and Linux.",
5
5
  "type": "module",
6
6
  "main": "cli.js",
package/utils/commands.js CHANGED
@@ -3,7 +3,7 @@ import { execSync } from 'child_process';
3
3
  import { resolve, dirname } from 'path';
4
4
  import { fileURLToPath } from 'url';
5
5
  import { color } from './colors.js';
6
- import { checkPodman, getPodmanPath, ensureBackend } from './podman.js';
6
+ import { checkPodman, getPodmanPath } from './podman.js';
7
7
  import { buildClaudeContainerCommand, createClaudeDockerfile } from './claude-workspace.js';
8
8
  import { createIsolatedEnvironment, setupCleanupHandlers, buildContainerMounts } from './isolation.js';
9
9
 
@@ -22,8 +22,6 @@ export function buildCommand(dockerfilePath) {
22
22
  const podmanPath = checkPodman();
23
23
  if (!podmanPath) return false;
24
24
 
25
- ensureBackend(podmanPath);
26
-
27
25
  try {
28
26
  execSync(`"${podmanPath}" build -f "${dockerfilePath}" -t sandboxbox:latest .`, {
29
27
  stdio: 'inherit',
@@ -52,8 +50,6 @@ export function runCommand(projectDir, cmd = 'bash') {
52
50
  const podmanPath = checkPodman();
53
51
  if (!podmanPath) return false;
54
52
 
55
- ensureBackend(podmanPath);
56
-
57
53
  try {
58
54
  const { tempProjectDir, cleanup } = createIsolatedEnvironment(projectDir);
59
55
  setupCleanupHandlers(cleanup);
@@ -86,8 +82,6 @@ export function shellCommand(projectDir) {
86
82
  const podmanPath = checkPodman();
87
83
  if (!podmanPath) return false;
88
84
 
89
- ensureBackend(podmanPath);
90
-
91
85
  try {
92
86
  const { tempProjectDir, cleanup } = createIsolatedEnvironment(projectDir);
93
87
  setupCleanupHandlers(cleanup);
@@ -139,8 +133,6 @@ export function claudeCommand(projectDir, command = 'claude') {
139
133
  const buildPodman = checkPodman();
140
134
  if (!buildPodman) return false;
141
135
 
142
- ensureBackend(buildPodman);
143
-
144
136
  try {
145
137
  const { tempProjectDir, cleanup } = createIsolatedEnvironment(projectDir);
146
138
  setupCleanupHandlers(cleanup);
@@ -186,8 +178,6 @@ function buildClaudeContainer() {
186
178
  const podmanPath = checkPodman();
187
179
  if (!podmanPath) return false;
188
180
 
189
- ensureBackend(podmanPath);
190
-
191
181
  try {
192
182
  execSync(`"${podmanPath}" build -f "${dockerfilePath}" -t sandboxbox-local:latest .`, {
193
183
  stdio: 'inherit',
package/utils/podman.js CHANGED
@@ -26,42 +26,6 @@ export function getPodmanPath() {
26
26
  return 'podman';
27
27
  }
28
28
 
29
- export function ensureBackend(podmanPath) {
30
- if (process.platform !== 'win32') return;
31
-
32
- const execOptions = {
33
- encoding: 'utf-8',
34
- stdio: 'pipe',
35
- shell: true
36
- };
37
-
38
- try {
39
- execSync(`"${podmanPath}" info`, execOptions);
40
- } catch (infoError) {
41
- if (infoError.message.includes('Cannot connect to Podman')) {
42
- console.log('\nšŸ”§ Starting Podman backend (first run may take a few minutes)...');
43
- try {
44
- execSync(`"${podmanPath}" machine start`, {
45
- stdio: 'inherit',
46
- shell: true
47
- });
48
- } catch (startError) {
49
- if (startError.message.includes('does not exist') || startError.message.includes('not found')) {
50
- console.log('šŸ”§ Creating Podman machine (rootless mode)...');
51
- execSync(`"${podmanPath}" machine init --rootful=false`, {
52
- stdio: 'inherit',
53
- shell: true
54
- });
55
- execSync(`"${podmanPath}" machine start`, {
56
- stdio: 'inherit',
57
- shell: true
58
- });
59
- }
60
- }
61
- }
62
- }
63
- }
64
-
65
29
  export function checkPodman() {
66
30
  const podmanPath = getPodmanPath();
67
31
  const isBundled = podmanPath.includes('bin');