sandboxbox 2.4.2 → 2.4.4

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.4.2",
3
+ "version": "2.4.4",
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",
@@ -69,7 +69,7 @@ export function claudeCommand(projectDir, command = 'claude') {
69
69
  return true;
70
70
  } catch (error) {
71
71
  retries++;
72
- if (retries < maxRetries && error.message.includes('Cannot connect to Podman')) {
72
+ if (retries < maxRetries && (error.message.includes('Cannot connect to Podman') || error.message.includes('connectex') || error.message.includes('No connection could be made') || error.message.includes('actively refused'))) {
73
73
  console.log(color('yellow', ` Backend not ready yet (${retries}/${maxRetries}), waiting 15 seconds...`));
74
74
  const start = Date.now();
75
75
  while (Date.now() - start < 15000) {
@@ -40,7 +40,7 @@ export function buildCommand(dockerfilePath) {
40
40
  return true;
41
41
  } catch (error) {
42
42
  retries++;
43
- if (retries < maxRetries && error.message.includes('Cannot connect to Podman')) {
43
+ if (retries < maxRetries && (error.message.includes('Cannot connect to Podman') || error.message.includes('connectex') || error.message.includes('No connection could be made') || error.message.includes('actively refused'))) {
44
44
  console.log(color('yellow', ` Backend not ready yet (${retries}/${maxRetries}), waiting 15 seconds...`));
45
45
  const start = Date.now();
46
46
  while (Date.now() - start < 15000) {
@@ -97,7 +97,7 @@ export function runCommand(projectDir, cmd = 'bash') {
97
97
  return true;
98
98
  } catch (error) {
99
99
  retries++;
100
- if (retries < maxRetries && error.message.includes('Cannot connect to Podman')) {
100
+ if (retries < maxRetries && (error.message.includes('Cannot connect to Podman') || error.message.includes('connectex') || error.message.includes('No connection could be made') || error.message.includes('actively refused'))) {
101
101
  console.log(color('yellow', ` Backend not ready yet (${retries}/${maxRetries}), waiting 15 seconds...`));
102
102
  const start = Date.now();
103
103
  while (Date.now() - start < 15000) {
@@ -153,7 +153,7 @@ export function shellCommand(projectDir) {
153
153
  return true;
154
154
  } catch (error) {
155
155
  retries++;
156
- if (retries < maxRetries && error.message.includes('Cannot connect to Podman')) {
156
+ if (retries < maxRetries && (error.message.includes('Cannot connect to Podman') || error.message.includes('connectex') || error.message.includes('No connection could be made') || error.message.includes('actively refused'))) {
157
157
  console.log(color('yellow', ` Backend not ready yet (${retries}/${maxRetries}), waiting 15 seconds...`));
158
158
  const start = Date.now();
159
159
  while (Date.now() - start < 15000) {