diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index 205b0fe2..14aa1fcc 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -11,7 +11,31 @@ on: # - "src/**/*.jsx" jobs: + # Secrets cannot be read in a job-level `if`, so this gate exposes whether + # CLAUDE_CODE_OAUTH_TOKEN is set (never its value) as a job output. + # Without the secret (e.g. forks, or before it is configured) claude-review + # is skipped instead of failing every PR. + check-token: + runs-on: ubuntu-latest + permissions: {} + outputs: + has_token: ${{ steps.check.outputs.has_token }} + steps: + - name: Check for CLAUDE_CODE_OAUTH_TOKEN + id: check + env: + CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + run: | + if [ -n "$CLAUDE_CODE_OAUTH_TOKEN" ]; then + echo "has_token=true" >> "$GITHUB_OUTPUT" + else + echo "has_token=false" >> "$GITHUB_OUTPUT" + echo "::notice::CLAUDE_CODE_OAUTH_TOKEN is not set; skipping Claude Code Review." + fi + claude-review: + needs: check-token + if: ${{ needs.check-token.outputs.has_token == 'true' }} # Optional: Filter by PR author # if: | # github.event.pull_request.user.login == 'external-contributor' || diff --git a/apps/agentdb/package.json b/apps/agentdb/package.json index 1477550a..bd81c004 100644 --- a/apps/agentdb/package.json +++ b/apps/agentdb/package.json @@ -1,5 +1,6 @@ { "name": "agentdb", + "private": true, "version": "2.0.0-alpha.2.20", "description": "AgentDB v2 - RuVector-powered graph database with Cypher queries, hyperedges, and ACID persistence. 150x faster than SQLite with integrated vector search, GNN learning, semantic routing, and comprehensive memory patterns. Includes reflexion memory, skill library, causal reasoning, and MCP integration.", "type": "module",