@ai-support-agent/cli 0.1.13-beta.0 → 0.1.13-beta.1
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/docker/Dockerfile +17 -10
- 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:
|
|
121
|
-
# Browser binary is
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
#
|
|
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
|
|
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
|
|
139
|
-
#
|
|
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)
|