test(e2e): configurable real API key for live tool-integration e2e + wire into CI#95
Merged
jeff-r2026 merged 1 commit intoJul 1, 2026
Conversation
…wire into CI Decouple the live claude/codebuddy hook-integration e2e from ambient interactive login by making the Anthropic API key and base URL configurable via TEAMAI_E2E_ANTHROPIC_API_KEY / TEAMAI_E2E_ANTHROPIC_BASE_URL, broaden the assertion to cover the full hook lifecycle (session_start, prompt_submit, tool_use, stop), and add an e2e-live-tools CI job that runs it on GitHub Actions when the corresponding secret is configured. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude/codebuddyhook-integration e2e from ambient interactive login by making the Anthropic API key and base URL configurable viaTEAMAI_E2E_ANTHROPIC_API_KEY/TEAMAI_E2E_ANTHROPIC_BASE_URL.session_startto the full hook lifecycle:session_start,prompt_submit,tool_use(PostToolUse),stop.e2e-live-toolsGitHub Actions job that installs the realclaude/codebuddyCLIs from public npm and runs this suite for real, gated behind theTEAMAI_E2E_ANTHROPIC_API_KEYsecret so it no-ops on forks/PRs without it configured.Test plan
npx tsc --noEmitnpm run test:e2e:livelocally against a real Anthropic-compatible endpoint —claudeandcodebuddyboth pass (full hook lifecycle verified end-to-end);cursorskips gracefully (not logged in)TEAMAI_E2E_ANTHROPIC_API_KEYsecret (and optionallyTEAMAI_E2E_ANTHROPIC_BASE_URL/TEAMAI_E2E_CLAUDE_MODELvariables) so the newe2e-live-toolsCI job runs on GitHub Actions🤖 Generated with Claude Code