fabis-ralph-loop 1.5.0 → 1.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.
@@ -21,26 +21,14 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
21
21
  && apt-get install -y --no-install-recommends nodejs
22
22
  <% } -%>
23
23
  <% if (playwright) { %>
24
- # === Playwright/Chromium dependencies ===
24
+ # === Google Chrome (Playwright uses /opt/google/chrome/chrome by default) ===
25
25
  # hadolint ignore=DL3008
26
- RUN apt-get update && apt-get install -y --no-install-recommends \
27
- chromium \
28
- fonts-liberation \
29
- libnss3 \
30
- libatk1.0-0 \
31
- libatk-bridge2.0-0 \
32
- libcups2 \
33
- libxdamage1 \
34
- libxrandr2 \
35
- libgbm1 \
36
- libpango-1.0-0 \
37
- libcairo2 \
38
- libasound2 \
39
- libxshmfence1 \
26
+ RUN curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o /tmp/chrome.deb \
27
+ && apt-get update && apt-get install -y --no-install-recommends /tmp/chrome.deb \
40
28
  <% if (sslCerts) { -%>
41
29
  libnss3-tools \
42
30
  <% } -%>
43
- && rm -rf /var/lib/apt/lists/*
31
+ && rm /tmp/chrome.deb && rm -rf /var/lib/apt/lists/*
44
32
  <% } -%>
45
33
  <% for (const instruction of hooks.rootSetup) { %>
46
34
  <%= instruction %>
@@ -99,7 +87,6 @@ RUN npm install -g @playwright/cli@latest \
99
87
  # === Environment ===
100
88
  ENV IS_SANDBOX=1
101
89
  <% if (playwright) { -%>
102
- ENV PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
103
90
  ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
104
91
  <% } %>
105
92
  # === Entrypoint ===
@@ -43,7 +43,7 @@ if (existsSync(sslCertsDir)) {
43
43
  execSync('sudo mkdir -p /usr/local/share/ca-certificates/custom', { stdio: 'pipe' })
44
44
  execSync(`
45
45
  for f in ${sslCertsDir}/*.crt ${sslCertsDir}/*.pem ${sslCertsDir}/*.cer; do
46
- [ -f "$f" ] && sudo cp "$f" "/usr/local/share/ca-certificates/custom/$(basename "\${f%.*}").crt"
46
+ [ -f "$f" ] && openssl x509 -in "$f" -noout 2>/dev/null && sudo cp "$f" "/usr/local/share/ca-certificates/custom/$(basename "\${f%.*}").crt"
47
47
  done
48
48
  `, { stdio: 'pipe', shell: '/bin/bash' })
49
49
  execSync('sudo update-ca-certificates', { stdio: 'pipe' })
@@ -57,7 +57,7 @@ if (existsSync(sslCertsDir)) {
57
57
  execSync(`certutil -d sql:${nssDb} -N --empty-password 2>/dev/null || true`, { stdio: 'pipe', shell: '/bin/bash' })
58
58
  execSync(`
59
59
  for f in ${sslCertsDir}/*.crt ${sslCertsDir}/*.pem ${sslCertsDir}/*.cer; do
60
- [ -f "$f" ] && certutil -d sql:${nssDb} -A -t "CT,C,C" -n "$(basename "$f")" -i "$f" 2>/dev/null || true
60
+ [ -f "$f" ] && openssl x509 -in "$f" -noout 2>/dev/null && certutil -d sql:${nssDb} -A -t "CT,C,C" -n "$(basename "$f")" -i "$f" 2>/dev/null || true
61
61
  done
62
62
  `, { stdio: 'pipe', shell: '/bin/bash' })
63
63
  console.log('SSL certificates trusted (Chromium NSS).')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fabis-ralph-loop",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "CLI for setting up and running Claude Ralph autonomous coding loops in Docker containers",
5
5
  "repository": {
6
6
  "type": "git",