From 197ba6a91f3f32aae90285fac4d76b459832c461 Mon Sep 17 00:00:00 2001 From: "Claude Sonnet 4.6" Date: Sun, 5 Apr 2026 10:37:56 +0000 Subject: [PATCH 1/3] chore: clean up devcontainer and update model configuration Remove unused packages (tmux, vim, yq), add chrome_args for Docker environment, and update Claude model versions. Co-Authored-By: Claude Opus 4.6 --- .devcontainer/Dockerfile | 12 ++++++------ .devcontainer/post-create.sh | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8659a4d..9a05dab 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -14,8 +14,6 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ pkg-config \ libssl-dev \ ripgrep \ - tmux \ - vim \ jq \ sudo \ chromium \ @@ -28,10 +26,6 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \ && apt-get install -y nodejs \ && apt-get clean -y && rm -rf /var/lib/apt/lists/* -# Install yq manually -RUN curl -L https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -o /usr/local/bin/yq \ - && chmod +x /usr/local/bin/yq - # Ensure pre-installed tools are always in PATH even if CARGO_HOME is overridden at runtime ENV PATH=/usr/local/cargo/bin:$PATH @@ -39,3 +33,9 @@ ENV PATH=/usr/local/cargo/bin:$PATH RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash \ && rustup component add rustfmt clippy llvm-tools-preview \ && cargo binstall -y cargo-audit cargo-llvm-cov + +# Install Chromium and dependencies for browser-based MCP +RUN apt-get update && apt-get install -y \ + chromium \ + chromium-common \ + && apt-get clean -y && rm -rf /var/lib/apt/lists/* diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 83f40bf..abba6fe 100644 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -19,13 +19,6 @@ if [ -z "$CI" ] && [ -z "$GITHUB_ACTIONS" ]; then echo "[Devcontainer Setup] Claude CLI already installed: $(claude --version)" fi - echo "[Devcontainer Setup] Configuring tmux..." - cat > $HOME/.tmux.conf << 'EOF' -# Display pane number -bind-key p display-panes -set display-panes-time 10000 -EOF - echo "[Devcontainer Setup] Configuring claude alias..." echo 'alias claude="claude --allow-dangerously-skip-permissions"' >> $HOME/.bashrc echo 'alias claude="claude --allow-dangerously-skip-permissions"' >> $HOME/.zshrc @@ -53,8 +46,16 @@ EOF # Note: chrome_args will be dynamically determined by the app echo "[Devcontainer Setup] Configuring google-patent-cli..." mkdir -p "$HOME/.config/google-patent-cli" - cat > "$HOME/.config/google-patent-cli/config.toml" < ~/.config/google-patent-cli/config.toml << 'EOF' +# Chrome browser path browser_path = "/usr/bin/chromium" + +# Chrome arguments for Docker/DevContainer environment +chrome_args = [ + "--no-sandbox", + "--disable-setuid-sandbox", + "--disable-gpu" +] EOF # Run mise install @@ -79,8 +80,8 @@ EOF "ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic", "API_TIMEOUT_MS": "3000000", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", - "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5", - "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.7", + "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.1", + "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5-turbo", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air" } } From 4cb09378c590534e618458a8c58504a894c0cf6f Mon Sep 17 00:00:00 2001 From: "Claude Sonnet 4.6" Date: Sun, 5 Apr 2026 10:38:49 +0000 Subject: [PATCH 2/3] chore: bump version to 0.2.2 Co-Authored-By: Claude Opus 4.6 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f928f3c..76d2664 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "google-patent-cli" -version = "0.2.1" +version = "0.2.2" edition = "2024" rust-version = "1.93" From 1ec4f9fc66f8dbfc30620d8f72d2fd2b4363f75a Mon Sep 17 00:00:00 2001 From: "Claude Sonnet 4.6" Date: Sun, 5 Apr 2026 10:40:50 +0000 Subject: [PATCH 3/3] chore: add gh auth setup-git to devcontainer post-create Co-Authored-By: Claude Opus 4.6 --- .devcontainer/post-create.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index abba6fe..087658b 100644 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -88,6 +88,12 @@ EOF EOF fi + # Configure git to use gh for HTTPS auth + if command -v gh >/dev/null 2>&1; then + echo "[Devcontainer Setup] Configuring gh auth for git..." + gh auth setup-git + fi + echo "[Devcontainer Setup] Complete!" else echo "Running in CI environment, skipping development setup..."