-
-
Notifications
You must be signed in to change notification settings - Fork 36
refactor: API-first positioning, Python client library, and tests #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
ba53ee7
b2177b1
87c161c
ae745a3
c64db55
b733e7c
cba73aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,6 +107,47 @@ ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
| RUN npm install playwright@1.53.0 -g | ||
| RUN npx playwright@1.53.0 install | ||
|
|
||
| # --- AI Coding Agents --- | ||
| # Claude Code CLI (pinned to major version 1.x) | ||
| RUN npm install -g @anthropic-ai/claude-code@1 | ||
|
|
||
| # OpenAI Codex CLI | ||
| RUN npm install -g @openai/codex | ||
|
|
||
| # Gemini CLI | ||
| RUN npm install -g @anthropic-ai/claude-code@1 && \ | ||
| pip install --no-cache-dir google-generativeai | ||
|
|
||
| # Cursor CLI (installs as 'agent' at ~/.local/bin) | ||
| RUN curl -fsSL https://cursor.com/install | bash && \ | ||
| ln -sf /root/.local/bin/agent /usr/local/bin/cursor | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Piping the output of A safer approach is to download the script to a file, verify its checksum if one is provided, and then execute it. |
||
|
|
||
| # --- Cloud CLIs --- | ||
| # AWS CLI v2 | ||
| RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" && \ | ||
| unzip -q awscliv2.zip && \ | ||
| ./aws/install && \ | ||
| rm -rf awscliv2.zip aws | ||
|
|
||
| # Google Cloud CLI | ||
| RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | \ | ||
| tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
| curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \ | ||
| gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && \ | ||
| apt-get update && apt-get install -y google-cloud-cli && \ | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # GitHub CLI (gh) | ||
| RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | \ | ||
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \ | ||
| echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | \ | ||
| tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \ | ||
| apt-get update && apt-get install -y gh && \ | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Azure CLI | ||
| RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to a previous comment, piping |
||
|
|
||
| # Copy the entrypoint script into the image | ||
| COPY entrypoint.sh /entrypoint.sh | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package
@anthropic-ai/claude-code@1is installed here, but it was already installed on line 112. This duplicate installation should be removed to reduce build time and image size.Additionally, it's a Docker best practice to chain
RUNcommands to reduce the number of layers. You could combine thenpm installcommands for the AI agents into a single layer.