@ai-support-agent/cli 0.1.13-beta.0 → 0.1.13

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.
Files changed (2) hide show
  1. package/docker/Dockerfile +17 -10
  2. package/package.json +1 -1
package/docker/Dockerfile CHANGED
@@ -117,15 +117,15 @@ RUN npm install -g \
117
117
  && npm cache clean --force
118
118
 
119
119
  # =============================================================================
120
- # Layer 5: Playwright browser binary (large, stable — cache before app packages)
121
- # Browser binary is architecture-independent and rarely changes, so it is
122
- # installed before AGENT_VERSION so the layer stays cached on version bumps.
123
- # The playwright npm package is installed later as a peer of @ai-support-agent/cli.
124
- # Use /opt/playwright-browsers so all users (root, node, arbitrary UID) can access it.
120
+ # Layer 5: System dependencies for Playwright Chromium
121
+ # Browser binary itself is installed in Layer 6 with the playwright version
122
+ # that actually ships with @ai-support-agent/cli, to avoid Chromium revision
123
+ # mismatch (e.g. `Executable doesn't exist at .../chromium_headless_shell-XXXX`).
124
+ # This layer installs only the OS packages so the heavier work below can use
125
+ # `playwright install` without `--with-deps` (no apt-get on the runtime path).
125
126
  # =============================================================================
126
127
  ENV PLAYWRIGHT_BROWSERS_PATH=/opt/playwright-browsers
127
- RUN npx playwright install --with-deps chromium \
128
- && chmod -R 755 /opt/playwright-browsers
128
+ RUN npx --yes playwright install-deps chromium
129
129
 
130
130
  # =============================================================================
131
131
  # Layer 6: Application packages (changes on every version bump)
@@ -135,10 +135,17 @@ ARG AGENT_VERSION=latest
135
135
  RUN npm install -g @anthropic-ai/claude-code @ai-support-agent/cli@${AGENT_VERSION} backlog-mcp-server \
136
136
  && npm cache clean --force
137
137
 
138
- # Install playwright npm package as peer of @ai-support-agent/cli so require('playwright') resolves.
139
- # Browser binary is already installed above; this only adds the Node.js bindings (~3MB).
138
+ # Install playwright npm package as peer of @ai-support-agent/cli, then download
139
+ # the Chromium binary matching THIS playwright's expected revision.
140
+ # Doing the binary download *after* the peer install guarantees that the
141
+ # revision under /opt/playwright-browsers matches what playwright runtime
142
+ # resolves, fixing the "Executable doesn't exist at ..." error that occurred
143
+ # when `npx playwright install` (Layer 5) picked a newer playwright via npx
144
+ # cache than the one pinned by @ai-support-agent/cli's peer dep.
140
145
  RUN cd /usr/local/lib/node_modules/@ai-support-agent/cli \
141
- && npm install playwright
146
+ && npm install playwright \
147
+ && node node_modules/playwright/cli.js install chromium \
148
+ && chmod -R 755 /opt/playwright-browsers
142
149
 
143
150
  # =============================================================================
144
151
  # Layer 7: Permissions and runtime setup (lightweight, changes rarely)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-support-agent/cli",
3
- "version": "0.1.13-beta.0",
3
+ "version": "0.1.13",
4
4
  "description": "AI Support Agent CLI client",
5
5
  "main": "dist/index.js",
6
6
  "bin": {