AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
ci: remove the four dormant claude-code-action workflows (#14396)
Reinier van der Leer8c8df2ed8619
diff --git a/.github/workflows/claude-dependabot.yml b/.github/workflows/claude-dependabot.ymldeleted file mode 100644index d20cc75d6d..0000000000--- a/.github/workflows/claude-dependabot.yml+++ /dev/null@@ -1,364 +0,0 @@-# Claude Dependabot PR Review Workflow-#-# This workflow automatically runs Claude analysis on Dependabot PRs to:-# - Identify dependency changes and their versions-# - Look up changelogs for updated packages-# - Assess breaking changes and security impacts-# - Provide actionable recommendations for the development team-#-# Triggered on: Dependabot PRs (opened, synchronize)-# Requirements: CLAUDE_CODE_OAUTH_TOKEN secret must be configured--name: Claude Dependabot PR Review--on:- pull_request:- types: [opened, synchronize]--jobs:- dependabot-review:- # Only run on Dependabot PRs- if: github.actor == 'dependabot[bot]'- runs-on: ubuntu-latest- timeout-minutes: 30-- permissions:- contents: write- pull-requests: read- issues: read- id-token: write- actions: read # Required for CI access- steps:- - name: Checkout code- uses: actions/checkout@v6- with:- fetch-depth: 1-- # Backend Python/Poetry setup (mirrors platform-backend-ci.yml)- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: "3.11" # Use standard version matching CI-- - name: Set up Python dependency cache- uses: actions/cache@v5- with:- path: ~/.cache/pypoetry- key: poetry-${{ runner.os }}-${{ hashFiles('autogpt_platform/backend/poetry.lock') }}-- - name: Install Poetry- run: |- # Extract Poetry version from backend/poetry.lock (matches CI)- cd autogpt_platform/backend- HEAD_POETRY_VERSION=$(python3 ../../.github/workflows/scripts/get_package_version_from_lockfile.py poetry)- echo "Found Poetry version ${HEAD_POETRY_VERSION} in backend/poetry.lock"-- # Install Poetry- curl -sSL https://install.python-poetry.org | POETRY_VERSION=$HEAD_POETRY_VERSION python3 --- # Add Poetry to PATH- echo "$HOME/.local/bin" >> $GITHUB_PATH-- - name: Check poetry.lock- working-directory: autogpt_platform/backend- run: |- poetry lock- if ! git diff --quiet --ignore-matching-lines="^# " poetry.lock; then- echo "Warning: poetry.lock not up to date, but continuing for setup"- git checkout poetry.lock # Reset for clean setup- fi-- - name: Install Python dependencies- working-directory: autogpt_platform/backend- run: poetry install-- - name: Generate Prisma Client- working-directory: autogpt_platform/backend- run: poetry run prisma generate && poetry run gen-prisma-stub-- # Frontend Node.js/pnpm setup (mirrors platform-frontend-ci.yml)- - name: Enable corepack- run: corepack enable-- - name: Set up Node.js- uses: actions/setup-node@v6- with:- node-version: "24.18.0"- cache: "pnpm"- cache-dependency-path: autogpt_platform/frontend/pnpm-lock.yaml-- - name: Install JavaScript dependencies- working-directory: autogpt_platform/frontend- run: pnpm install --frozen-lockfile-- # Install Playwright browsers for frontend testing- # NOTE: Disabled to save ~1 minute of setup time. Re-enable if Copilot needs browser automation (e.g., for MCP)- # - name: Install Playwright browsers- # working-directory: autogpt_platform/frontend- # run: pnpm playwright install --with-deps chromium-- # Docker setup for development environment- - name: Set up Docker Buildx- uses: docker/setup-buildx-action@v3-- - name: Copy default environment files- working-directory: autogpt_platform- run: |- # Copy default environment files for development- cp .env.default .env- cp backend/.env.default backend/.env- cp frontend/.env.default frontend/.env-- # Phase 1: Cache and load Docker images for faster setup- - name: Set up Docker image cache- id: docker-cache- uses: actions/cache@v5- with:- path: ~/docker-cache- # Use a versioned key for cache invalidation when image list changes- key: docker-images-v2-${{ runner.os }}-${{ hashFiles('.github/workflows/copilot-setup-steps.yml') }}- restore-keys: |- docker-images-v2-${{ runner.os }}-- docker-images-v1-${{ runner.os }}--- - name: Load or pull Docker images- working-directory: autogpt_platform- run: |- mkdir -p ~/docker-cache-- # Define image list for easy maintenance- IMAGES=(- "redis:latest"- "rabbitmq:management"- "clamav/clamav-debian:latest"- "busybox:latest"- "pgvector/pgvector:pg15"- )-- # Check if any cached tar files exist (more reliable than cache-hit)- if ls ~/docker-cache/*.tar 1> /dev/null 2>&1; then- echo "Docker cache found, loading images in parallel..."- for image in "${IMAGES[@]}"; do- # Convert image name to filename (replace : and / with -)- filename=$(echo "$image" | tr ':/' '--')- if [ -f ~/docker-cache/${filename}.tar ]; then- echo "Loading $image..."- docker load -i ~/docker-cache/${filename}.tar || echo "Warning: Failed to load $image from cache" &- fi- done- wait- echo "All cached images loaded"- else- echo "No Docker cache found, pulling images in parallel..."- # Pull all images in parallel- for image in "${IMAGES[@]}"; do- docker pull "$image" &- done- wait-- # Only save cache on main branches (not PRs) to avoid cache pollution- if [[ "${{ github.ref }}" == "refs/heads/master" ]] || [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then- echo "Saving Docker images to cache in parallel..."- for image in "${IMAGES[@]}"; do- # Convert image name to filename (replace : and / with -)- filename=$(echo "$image" | tr ':/' '--')- echo "Saving $image..."- docker save -o ~/docker-cache/${filename}.tar "$image" || echo "Warning: Failed to save $image" &- done- wait- echo "Docker image cache saved"- else- echo "Skipping cache save for PR/feature branch"- fi- fi-- echo "Docker images ready for use"-- # Phase 2: Build migrate service with GitHub Actions cache- - name: Build migrate Docker image with cache- working-directory: autogpt_platform- run: |- # Build the migrate image with buildx for GHA caching- docker buildx build \- --cache-from type=gha \- --cache-to type=gha,mode=max \- --target migrate \- --tag autogpt_platform-migrate:latest \- --load \- -f backend/Dockerfile \- ..-- # Start services using pre-built images- - name: Start Docker services for development- working-directory: autogpt_platform- run: |- # Start essential services (migrate image already built with correct tag)- docker compose --profile local up deps --no-build --detach- echo "Waiting for services to be ready..."-- # Wait for database to be ready- echo "Checking database readiness..."- timeout 30 sh -c 'until docker compose exec -T db pg_isready -U postgres 2>/dev/null; do- echo " Waiting for database..."- sleep 2- done' && echo "✅ Database is ready" || echo "⚠️ Database ready check timeout after 30s, continuing..."-- # Check migrate service status- echo "Checking migration status..."- docker compose ps migrate || echo " Migrate service not visible in ps output"-- # Wait for migrate service to complete- echo "Waiting for migrations to complete..."- timeout 30 bash -c '- ATTEMPTS=0- while [ $ATTEMPTS -lt 15 ]; do- ATTEMPTS=$((ATTEMPTS + 1))-- # Check using docker directly (more reliable than docker compose ps)- CONTAINER_STATUS=$(docker ps -a --filter "label=com.docker.compose.service=migrate" --format "{{.Status}}" | head -1)-- if [ -z "$CONTAINER_STATUS" ]; then- echo " Attempt $ATTEMPTS: Migrate container not found yet..."- elif echo "$CONTAINER_STATUS" | grep -q "Exited (0)"; then- echo "✅ Migrations completed successfully"- docker compose logs migrate --tail=5 2>/dev/null || true- exit 0- elif echo "$CONTAINER_STATUS" | grep -q "Exited ([1-9]"; then- EXIT_CODE=$(echo "$CONTAINER_STATUS" | grep -oE "Exited \([0-9]+\)" | grep -oE "[0-9]+")- echo "❌ Migrations failed with exit code: $EXIT_CODE"- echo "Migration logs:"- docker compose logs migrate --tail=20 2>/dev/null || true- exit 1- elif echo "$CONTAINER_STATUS" | grep -q "Up"; then- echo " Attempt $ATTEMPTS: Migrate container is running... ($CONTAINER_STATUS)"- else- echo " Attempt $ATTEMPTS: Migrate container status: $CONTAINER_STATUS"- fi-- sleep 2- done-- echo "⚠️ Timeout: Could not determine migration status after 30 seconds"- echo "Final container check:"- docker ps -a --filter "label=com.docker.compose.service=migrate" || true- echo "Migration logs (if available):"- docker compose logs migrate --tail=10 2>/dev/null || echo " No logs available"- ' || echo "⚠️ Migration check completed with warnings, continuing..."-- # Brief wait for other services to stabilize- echo "Waiting 5 seconds for other services to stabilize..."- sleep 5-- # Verify installations and provide environment info- - name: Verify setup and show environment info- run: |- echo "=== Python Setup ==="- python --version- poetry --version-- echo "=== Node.js Setup ==="- node --version- pnpm --version-- echo "=== Additional Tools ==="- docker --version- docker compose version- gh --version || true-- echo "=== Services Status ==="- cd autogpt_platform- docker compose ps || true-- echo "=== Backend Dependencies ==="- cd backend- poetry show | head -10 || true-- echo "=== Frontend Dependencies ==="- cd ../frontend- pnpm list --depth=0 | head -10 || true-- echo "=== Environment Files ==="- ls -la ../.env* || true- ls -la .env* || true- ls -la ../backend/.env* || true-- echo "✅ AutoGPT Platform development environment setup complete!"- echo "🚀 Ready for development with Docker services running"- echo "📝 Backend server: poetry run serve (port 8000)"- echo "🌐 Frontend server: pnpm dev (port 3000)"--- - name: Run Claude Dependabot Analysis- id: claude_review- uses: anthropics/claude-code-action@v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- allowed_bots: "dependabot[bot]"- claude_args: |- --allowedTools "Bash(npm:*),Bash(pnpm:*),Bash(poetry:*),Bash(git:*),Edit,Replace,NotebookEditCell,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*)"- prompt: |- You are Claude, an AI assistant specialized in reviewing Dependabot dependency update PRs.-- Your primary tasks are:- 1. **Analyze the dependency changes** in this Dependabot PR- 2. **Look up changelogs** for all updated dependencies to understand what changed- 3. **Identify breaking changes** and assess potential impact on the AutoGPT codebase- 4. **Provide actionable recommendations** for the development team-- ## Analysis Process:-- 1. **Identify Changed Dependencies**:- - Use git diff to see what dependencies were updated- - Parse package.json, poetry.lock, requirements files, etc.- - List all package versions: old → new-- 2. **Changelog Research**:- - For each updated dependency, look up its changelog/release notes- - Use WebFetch to access GitHub releases, NPM package pages, PyPI project pages. The pr should also have some details- - Focus on versions between the old and new versions- - Identify: breaking changes, deprecations, security fixes, new features-- 3. **Breaking Change Assessment**:- - Categorize changes: BREAKING, MAJOR, MINOR, PATCH, SECURITY- - Assess impact on AutoGPT's usage patterns- - Check if AutoGPT uses affected APIs/features- - Look for migration guides or upgrade instructions-- 4. **Codebase Impact Analysis**:- - Search the AutoGPT codebase for usage of changed APIs- - Identify files that might be affected by breaking changes- - Check test files for deprecated usage patterns- - Look for configuration changes needed-- ## Output Format:-- Provide a comprehensive review comment with:-- ### 🔍 Dependency Analysis Summary- - List of updated packages with version changes- - Overall risk assessment (LOW/MEDIUM/HIGH)-- ### 📋 Detailed Changelog Review- For each updated dependency:- - **Package**: name (old_version → new_version)- - **Changes**: Summary of key changes- - **Breaking Changes**: List any breaking changes- - **Security Fixes**: Note security improvements- - **Migration Notes**: Any upgrade steps needed-- ### ⚠️ Impact Assessment- - **Breaking Changes Found**: Yes/No with details- - **Affected Files**: List AutoGPT files that may need updates- - **Test Impact**: Any tests that may need updating- - **Configuration Changes**: Required config updates-- ### 🛠️ Recommendations- - **Action Required**: What the team should do- - **Testing Focus**: Areas to test thoroughly- - **Follow-up Tasks**: Any additional work needed- - **Merge Recommendation**: APPROVE/REVIEW_NEEDED/HOLD-- ### 📚 Useful Links- - Links to relevant changelogs, migration guides, documentation-- Be thorough but concise. Focus on actionable insights that help the development team make informed decisions about the dependency updates.diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.ymldeleted file mode 100644index 964a3687c0..0000000000--- a/.github/workflows/claude.yml+++ /dev/null@@ -1,312 +0,0 @@-name: Claude Code--on:- issue_comment:- types: [created]- pull_request_review_comment:- types: [created]- issues:- types: [opened, assigned]- pull_request_review:- types: [submitted]--jobs:- claude:- if: |- (- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||- (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||- (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||- (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))- ) && (- github.event.comment.author_association == 'OWNER' ||- github.event.comment.author_association == 'MEMBER' ||- github.event.review.author_association == 'OWNER' ||- github.event.review.author_association == 'MEMBER' ||- github.event.issue.author_association == 'OWNER' ||- github.event.issue.author_association == 'MEMBER'- )- runs-on: ubuntu-latest- timeout-minutes: 45-- permissions:- contents: write- pull-requests: read- issues: read- id-token: write- actions: read # Required for CI access- steps:- - name: Checkout code- uses: actions/checkout@v6- with:- fetch-depth: 1-- - name: Free Disk Space (Ubuntu)- uses: jlumbroso/[email protected]- with:- large-packages: false # slow- docker-images: false # limited benefit-- # Backend Python/Poetry setup (mirrors platform-backend-ci.yml)- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: "3.11" # Use standard version matching CI-- - name: Set up Python dependency cache- uses: actions/cache@v5- with:- path: ~/.cache/pypoetry- key: poetry-${{ runner.os }}-${{ hashFiles('autogpt_platform/backend/poetry.lock') }}-- - name: Install Poetry- run: |- # Extract Poetry version from backend/poetry.lock (matches CI)- cd autogpt_platform/backend- HEAD_POETRY_VERSION=$(python3 ../../.github/workflows/scripts/get_package_version_from_lockfile.py poetry)- echo "Found Poetry version ${HEAD_POETRY_VERSION} in backend/poetry.lock"-- # Install Poetry- curl -sSL https://install.python-poetry.org | POETRY_VERSION=$HEAD_POETRY_VERSION python3 --- # Add Poetry to PATH- echo "$HOME/.local/bin" >> $GITHUB_PATH-- - name: Check poetry.lock- working-directory: autogpt_platform/backend- run: |- poetry lock- if ! git diff --quiet --ignore-matching-lines="^# " poetry.lock; then- echo "Warning: poetry.lock not up to date, but continuing for setup"- git checkout poetry.lock # Reset for clean setup- fi-- - name: Install Python dependencies- working-directory: autogpt_platform/backend- run: poetry install-- - name: Generate Prisma Client- working-directory: autogpt_platform/backend- run: poetry run prisma generate && poetry run gen-prisma-stub-- # Frontend Node.js/pnpm setup (mirrors platform-frontend-ci.yml)- - name: Enable corepack- run: corepack enable-- - name: Set up Node.js- uses: actions/setup-node@v6- with:- node-version: "24.18.0"- cache: "pnpm"- cache-dependency-path: autogpt_platform/frontend/pnpm-lock.yaml-- - name: Install JavaScript dependencies- working-directory: autogpt_platform/frontend- run: pnpm install --frozen-lockfile-- # Install Playwright browsers for frontend testing- # NOTE: Disabled to save ~1 minute of setup time. Re-enable if Copilot needs browser automation (e.g., for MCP)- # - name: Install Playwright browsers- # working-directory: autogpt_platform/frontend- # run: pnpm playwright install --with-deps chromium-- # Docker setup for development environment- - name: Set up Docker Buildx- uses: docker/setup-buildx-action@v3-- - name: Copy default environment files- working-directory: autogpt_platform- run: |- # Copy default environment files for development- cp .env.default .env- cp backend/.env.default backend/.env- cp frontend/.env.default frontend/.env-- # Phase 1: Cache and load Docker images for faster setup- - name: Set up Docker image cache- id: docker-cache- uses: actions/cache@v5- with:- path: ~/docker-cache- # Use a versioned key for cache invalidation when image list changes- key: docker-images-v2-${{ runner.os }}-${{ hashFiles('.github/workflows/copilot-setup-steps.yml') }}- restore-keys: |- docker-images-v2-${{ runner.os }}-- docker-images-v1-${{ runner.os }}--- - name: Load or pull Docker images- working-directory: autogpt_platform- run: |- mkdir -p ~/docker-cache-- # Define image list for easy maintenance- IMAGES=(- "redis:latest"- "rabbitmq:management"- "clamav/clamav-debian:latest"- "busybox:latest"- "pgvector/pgvector:pg15"- )-- # Check if any cached tar files exist (more reliable than cache-hit)- if ls ~/docker-cache/*.tar 1> /dev/null 2>&1; then- echo "Docker cache found, loading images in parallel..."- for image in "${IMAGES[@]}"; do- # Convert image name to filename (replace : and / with -)- filename=$(echo "$image" | tr ':/' '--')- if [ -f ~/docker-cache/${filename}.tar ]; then- echo "Loading $image..."- docker load -i ~/docker-cache/${filename}.tar || echo "Warning: Failed to load $image from cache" &- fi- done- wait- echo "All cached images loaded"- else- echo "No Docker cache found, pulling images in parallel..."- # Pull all images in parallel- for image in "${IMAGES[@]}"; do- docker pull "$image" &- done- wait-- # Only save cache on main branches (not PRs) to avoid cache pollution- if [[ "${{ github.ref }}" == "refs/heads/master" ]] || [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then- echo "Saving Docker images to cache in parallel..."- for image in "${IMAGES[@]}"; do- # Convert image name to filename (replace : and / with -)- filename=$(echo "$image" | tr ':/' '--')- echo "Saving $image..."- docker save -o ~/docker-cache/${filename}.tar "$image" || echo "Warning: Failed to save $image" &- done- wait- echo "Docker image cache saved"- else- echo "Skipping cache save for PR/feature branch"- fi- fi-- echo "Docker images ready for use"-- # Phase 2: Build migrate service with GitHub Actions cache- - name: Build migrate Docker image with cache- working-directory: autogpt_platform- run: |- # Build the migrate image with buildx for GHA caching- docker buildx build \- --cache-from type=gha \- --cache-to type=gha,mode=max \- --target migrate \- --tag autogpt_platform-migrate:latest \- --load \- -f backend/Dockerfile \- ..-- # Start services using pre-built images- - name: Start Docker services for development- working-directory: autogpt_platform- run: |- # Start essential services (migrate image already built with correct tag)- docker compose --profile local up deps --no-build --detach- echo "Waiting for services to be ready..."-- # Wait for database to be ready- echo "Checking database readiness..."- timeout 30 sh -c 'until docker compose exec -T db pg_isready -U postgres 2>/dev/null; do- echo " Waiting for database..."- sleep 2- done' && echo "✅ Database is ready" || echo "⚠️ Database ready check timeout after 30s, continuing..."-- # Check migrate service status- echo "Checking migration status..."- docker compose ps migrate || echo " Migrate service not visible in ps output"-- # Wait for migrate service to complete- echo "Waiting for migrations to complete..."- timeout 30 bash -c '- ATTEMPTS=0- while [ $ATTEMPTS -lt 15 ]; do- ATTEMPTS=$((ATTEMPTS + 1))-- # Check using docker directly (more reliable than docker compose ps)- CONTAINER_STATUS=$(docker ps -a --filter "label=com.docker.compose.service=migrate" --format "{{.Status}}" | head -1)-- if [ -z "$CONTAINER_STATUS" ]; then- echo " Attempt $ATTEMPTS: Migrate container not found yet..."- elif echo "$CONTAINER_STATUS" | grep -q "Exited (0)"; then- echo "✅ Migrations completed successfully"- docker compose logs migrate --tail=5 2>/dev/null || true- exit 0- elif echo "$CONTAINER_STATUS" | grep -q "Exited ([1-9]"; then- EXIT_CODE=$(echo "$CONTAINER_STATUS" | grep -oE "Exited \([0-9]+\)" | grep -oE "[0-9]+")- echo "❌ Migrations failed with exit code: $EXIT_CODE"- echo "Migration logs:"- docker compose logs migrate --tail=20 2>/dev/null || true- exit 1- elif echo "$CONTAINER_STATUS" | grep -q "Up"; then- echo " Attempt $ATTEMPTS: Migrate container is running... ($CONTAINER_STATUS)"- else- echo " Attempt $ATTEMPTS: Migrate container status: $CONTAINER_STATUS"- fi-- sleep 2- done-- echo "⚠️ Timeout: Could not determine migration status after 30 seconds"- echo "Final container check:"- docker ps -a --filter "label=com.docker.compose.service=migrate" || true- echo "Migration logs (if available):"- docker compose logs migrate --tail=10 2>/dev/null || echo " No logs available"- ' || echo "⚠️ Migration check completed with warnings, continuing..."-- # Brief wait for other services to stabilize- echo "Waiting 5 seconds for other services to stabilize..."- sleep 5-- # Verify installations and provide environment info- - name: Verify setup and show environment info- run: |- echo "=== Python Setup ==="- python --version- poetry --version-- echo "=== Node.js Setup ==="- node --version- pnpm --version-- echo "=== Additional Tools ==="- docker --version- docker compose version- gh --version || true-- echo "=== Services Status ==="- cd autogpt_platform- docker compose ps || true-- echo "=== Backend Dependencies ==="- cd backend- poetry show | head -10 || true-- echo "=== Frontend Dependencies ==="- cd ../frontend- pnpm list --depth=0 | head -10 || true-- echo "=== Environment Files ==="- ls -la ../.env* || true- ls -la .env* || true- ls -la ../backend/.env* || true-- echo "✅ AutoGPT Platform development environment setup complete!"- echo "🚀 Ready for development with Docker services running"- echo "📝 Backend server: poetry run serve (port 8000)"- echo "🌐 Frontend server: pnpm dev (port 3000)"-- - name: Run Claude Code- id: claude- uses: anthropics/claude-code-action@v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- claude_args: |- --allowedTools "Bash(npm:*),Bash(pnpm:*),Bash(poetry:*),Bash(git:*),Edit,Replace,NotebookEditCell,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*), Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr edit:*)"- --model opus- additional_permissions: |- actions: readdiff --git a/.github/workflows/docs-claude-review.yml b/.github/workflows/docs-claude-review.ymldeleted file mode 100644index fc3182e9a4..0000000000--- a/.github/workflows/docs-claude-review.yml+++ /dev/null@@ -1,128 +0,0 @@-name: Claude Block Docs Review--on:- pull_request:- types: [opened, synchronize]- paths:- - "docs/integrations/**"- - "autogpt_platform/backend/backend/blocks/**"--concurrency:- group: claude-docs-review-${{ github.event.pull_request.number }}- cancel-in-progress: true--jobs:- claude-review:- # Only run for PRs from members/collaborators- if: |- github.event.pull_request.author_association == 'OWNER' ||- github.event.pull_request.author_association == 'MEMBER'- runs-on: ubuntu-latest- timeout-minutes: 15- permissions:- contents: read- pull-requests: write- id-token: write-- steps:- - name: Checkout code- uses: actions/checkout@v6- with:- fetch-depth: 0-- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: "3.11"-- - name: Set up Python dependency cache- uses: actions/cache@v5- with:- path: ~/.cache/pypoetry- key: poetry-${{ runner.os }}-${{ hashFiles('autogpt_platform/backend/poetry.lock') }}- restore-keys: |- poetry-${{ runner.os }}--- - name: Install Poetry- run: |- cd autogpt_platform/backend- HEAD_POETRY_VERSION=$(python3 ../../.github/workflows/scripts/get_package_version_from_lockfile.py poetry)- curl -sSL https://install.python-poetry.org | POETRY_VERSION=$HEAD_POETRY_VERSION python3 -- echo "$HOME/.local/bin" >> $GITHUB_PATH-- - name: Install dependencies- working-directory: autogpt_platform/backend- run: |- poetry install --only main- poetry run prisma generate-- - name: Run Claude Code Review- uses: anthropics/claude-code-action@v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- claude_args: |- --allowedTools "Read,Glob,Grep,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"- prompt: |- You are reviewing a PR that modifies block documentation or block code for AutoGPT.-- ## Your Task- Review the changes in this PR and provide constructive feedback. Focus on:-- 1. **Documentation Accuracy**: For any block code changes, verify that:- - Input/output tables in docs match the actual block schemas- - Description text accurately reflects what the block does- - Any new blocks have corresponding documentation-- 2. **Manual Content Quality**: Check manual sections (marked with `<!-- MANUAL: -->` markers):- - "How it works" sections should have clear technical explanations- - "Possible use case" sections should have practical, real-world examples- - Content should be helpful for users trying to understand the blocks-- 3. **Template Compliance**: Ensure docs follow the standard template:- - What it is (brief intro)- - What it does (description)- - How it works (technical explanation)- - Inputs table- - Outputs table- - Possible use case-- 4. **Cross-references**: Check that links and anchors are correct-- ## Review Process- 1. First, get the PR diff to see what changed: `gh pr diff ${{ github.event.pull_request.number }}`- 2. Read any modified block files to understand the implementation- 3. Read corresponding documentation files to verify accuracy- 4. Provide your feedback as a PR comment-- ## IMPORTANT: Comment Marker- Start your PR comment with exactly this HTML comment marker on its own line:- <!-- CLAUDE_DOCS_REVIEW -->-- This marker is used to identify and replace your comment on subsequent runs.-- Be constructive and specific. If everything looks good, say so!- If there are issues, explain what's wrong and suggest how to fix it.-- - name: Delete old Claude review comments- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: |- # Get all comment IDs with our marker, sorted by creation date (oldest first)- COMMENT_IDS=$(gh api \- repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments \- --jq '[.[] | select(.body | contains("<!-- CLAUDE_DOCS_REVIEW -->"))] | sort_by(.created_at) | .[].id')-- # Count comments- COMMENT_COUNT=$(echo "$COMMENT_IDS" | grep -c . || true)-- if [ "$COMMENT_COUNT" -gt 1 ]; then- # Delete all but the last (newest) comment- echo "$COMMENT_IDS" | head -n -1 | while read -r COMMENT_ID; do- if [ -n "$COMMENT_ID" ]; then- echo "Deleting old review comment: $COMMENT_ID"- gh api -X DELETE repos/${{ github.repository }}/issues/comments/$COMMENT_ID- fi- done- else- echo "No old review comments to clean up"- fidiff --git a/.github/workflows/docs-enhance.yml b/.github/workflows/docs-enhance.ymldeleted file mode 100644index 52607fa5df..0000000000--- a/.github/workflows/docs-enhance.yml+++ /dev/null@@ -1,194 +0,0 @@-name: Enhance Block Documentation--on:- workflow_dispatch:- inputs:- block_pattern:- description: 'Block file pattern to enhance (e.g., "google/*.md" or "*" for all blocks)'- required: true- default: '*'- type: string- dry_run:- description: 'Dry run mode - show proposed changes without committing'- type: boolean- default: true- max_blocks:- description: 'Maximum number of blocks to process (0 for unlimited)'- type: number- default: 10--jobs:- enhance-docs:- runs-on: ubuntu-latest- timeout-minutes: 45- permissions:- contents: write- pull-requests: write- id-token: write-- steps:- - name: Checkout code- uses: actions/checkout@v6- with:- fetch-depth: 1-- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: "3.11"-- - name: Set up Python dependency cache- uses: actions/cache@v5- with:- path: ~/.cache/pypoetry- key: poetry-${{ runner.os }}-${{ hashFiles('autogpt_platform/backend/poetry.lock') }}- restore-keys: |- poetry-${{ runner.os }}--- - name: Install Poetry- run: |- cd autogpt_platform/backend- HEAD_POETRY_VERSION=$(python3 ../../.github/workflows/scripts/get_package_version_from_lockfile.py poetry)- curl -sSL https://install.python-poetry.org | POETRY_VERSION=$HEAD_POETRY_VERSION python3 -- echo "$HOME/.local/bin" >> $GITHUB_PATH-- - name: Install dependencies- working-directory: autogpt_platform/backend- run: |- poetry install --only main- poetry run prisma generate-- - name: Run Claude Enhancement- uses: anthropics/claude-code-action@v1- with:- claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}- claude_args: |- --allowedTools "Read,Edit,Glob,Grep,Write,Bash(git:*),Bash(gh:*),Bash(find:*),Bash(ls:*)"- prompt: |- You are enhancing block documentation for AutoGPT. Your task is to improve the MANUAL sections- of block documentation files by reading the actual block implementations and writing helpful content.-- ## Configuration- - Block pattern: ${{ inputs.block_pattern }}- - Dry run: ${{ inputs.dry_run }}- - Max blocks to process: ${{ inputs.max_blocks }}-- ## Your Task-- 1. **Find Documentation Files**- Find block documentation files matching the pattern in `docs/integrations/`- Pattern: ${{ inputs.block_pattern }}-- Use: `find docs/integrations -name "*.md" -type f`-- 2. **For Each Documentation File** (up to ${{ inputs.max_blocks }} files):-- a. Read the documentation file-- b. Identify which block(s) it documents (look for the block class name)-- c. Find and read the corresponding block implementation in `autogpt_platform/backend/backend/blocks/`-- d. Improve the MANUAL sections:-- **"How it works" section** (within `<!-- MANUAL: how_it_works -->` markers):- - Explain the technical flow of the block- - Describe what APIs or services it connects to- - Note any important configuration or prerequisites- - Keep it concise but informative (2-4 paragraphs)-- **"Possible use case" section** (within `<!-- MANUAL: use_case -->` markers):- - Provide 2-3 practical, real-world examples- - Make them specific and actionable- - Show how this block could be used in an automation workflow-- 3. **Important Rules**- - ONLY modify content within `<!-- MANUAL: -->` and `<!-- END MANUAL -->` markers- - Do NOT modify auto-generated sections (inputs/outputs tables, descriptions)- - Keep content accurate based on the actual block implementation- - Write for users who may not be technical experts-- 4. **Output**- ${{ inputs.dry_run == true && 'DRY RUN MODE: Show proposed changes for each file but do NOT actually edit the files. Describe what you would change.' || 'LIVE MODE: Actually edit the files to improve the documentation.' }}-- ## Example Improvements-- **Before (How it works):**- ```- _Add technical explanation here._- ```-- **After (How it works):**- ```- This block connects to the GitHub API to retrieve issue information. When executed,- it authenticates using your GitHub credentials and fetches issue details including- title, body, labels, and assignees.-- The block requires a valid GitHub OAuth connection with repository access permissions.- It supports both public and private repositories you have access to.- ```-- **Before (Possible use case):**- ```- _Add practical use case examples here._- ```-- **After (Possible use case):**- ```- **Customer Support Automation**: Monitor a GitHub repository for new issues with- the "bug" label, then automatically create a ticket in your support system and- notify the on-call engineer via Slack.-- **Release Notes Generation**: When a new release is published, gather all closed- issues since the last release and generate a summary for your changelog.- ```-- Begin by finding and listing the documentation files to process.-- - name: Create PR with enhanced documentation- if: ${{ inputs.dry_run == false }}- env:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: |- # Check if there are changes- if git diff --quiet docs/integrations/; then- echo "No changes to commit"- exit 0- fi-- # Configure git- git config user.name "github-actions[bot]"- git config user.email "github-actions[bot]@users.noreply.github.com"-- # Create branch and commit- BRANCH_NAME="docs/enhance-blocks-$(date +%Y%m%d-%H%M%S)"- git checkout -b "$BRANCH_NAME"- git add docs/integrations/- git commit -m "docs: enhance block documentation with LLM-generated content-- Pattern: ${{ inputs.block_pattern }}- Max blocks: ${{ inputs.max_blocks }}-- 🤖 Generated with [Claude Code](https://claude.com/claude-code)-- Co-Authored-By: Claude <[email protected]>"-- # Push and create PR- git push -u origin "$BRANCH_NAME"- gh pr create \- --title "docs: LLM-enhanced block documentation" \- --body "## Summary- This PR contains LLM-enhanced documentation for block files matching pattern: \`${{ inputs.block_pattern }}\`-- The following manual sections were improved:- - **How it works**: Technical explanations based on block implementations- - **Possible use case**: Practical, real-world examples-- ## Review Checklist- - [ ] Content is accurate based on block implementations- - [ ] Examples are practical and helpful- - [ ] No auto-generated sections were modified-- ---- 🤖 Generated with [Claude Code](https://claude.com/claude-code)" \- --base dev