VIBN Frontend for Coolify deployment

This commit is contained in:
2026-02-15 19:25:52 -08:00
commit 40bf8428cd
398 changed files with 76513 additions and 0 deletions

43
TEST_SESSION_API.md Normal file
View File

@@ -0,0 +1,43 @@
# Test Your API Key
## Quick Test
Replace `YOUR_API_KEY` with your actual API key and run:
```bash
curl -X POST http://localhost:3000/api/sessions/track \
-H "Content-Type: application/json" \
-d '{
"apiKey": "YOUR_API_KEY",
"sessionData": {
"startTime": "2025-01-15T10:30:00.000Z",
"endTime": "2025-01-15T11:00:00.000Z",
"duration": 1800,
"model": "claude-sonnet-4",
"tokensUsed": 45000,
"cost": 1.35,
"filesModified": ["/src/components/Button.tsx", "/src/utils/api.ts"],
"conversationSummary": "Added new Button component and refactored API utilities"
}
}'
```
## Expected Response
If successful, you'll see:
```json
{
"success": true,
"sessionId": "abc123...",
"message": "Session tracked successfully"
}
```
## What This Means
✅ Your extension can now send session data to Vibn
✅ Each coding session will be tracked automatically
✅ You'll see real-time cost tracking
✅ All data is stored securely in Firebase