chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
@@ -0,0 +1,32 @@
# QA: Frontend Tools — Claude Agent SDK (Python)
## Prerequisites
- Demo is deployed and accessible
- Agent backend is healthy (check /api/health)
- ANTHROPIC_API_KEY is set
## Test Steps
### 1. Basic Functionality
- [ ] Navigate to `/demos/frontend-tools`
- [ ] Verify a chat surface renders in the centered card
- [ ] Send a message: "Change the background to a blue-to-purple gradient."
- [ ] Verify the agent calls the `change_background` frontend tool
- [ ] Verify the page background updates to the requested gradient
### 2. Feature-Specific Checks
- [ ] Click the "Sunset theme" suggestion — background changes to a sunset gradient
- [ ] Ask "Change the background back to default." — background resets
- [ ] Verify no errors in the console
### 3. Error Handling
- [ ] Verify the chat remains usable after multiple background changes
## Expected Results
- Background element with `data-testid="background-container"` reflects the CSS background value returned by the tool handler
- Agent calls the tool and produces a short confirmation message