Skip to content

Commit 22c2aad

Browse files
davila7claude
andcommitted
chore: sync project files and configurations
- Update local settings and configurations - Add Vertex AI Claude Code integration blog post - Sync analytics components and documentation - Remove test data files and update configurations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 6bff503 commit 22c2aad

File tree

4 files changed

+13
-1130
lines changed

4 files changed

+13
-1130
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
{
2-
"description": "Configure Claude Code to use Google Vertex AI for AI model access. Provides integration with Google Cloud Platform infrastructure and billing, suitable for organizations using GCP services.",
2+
"description": "Connect Claude Code with Google Vertex AI to access Anthropic's Claude models through Google Cloud Platform. Automatically configures all available Claude models (Sonnet, Haiku, Opus) with enterprise-grade infrastructure, billing, and security. Requires: GCP project with Vertex AI API enabled, authenticated gcloud CLI, and model access approval in Model Garden.",
33
"env": {
44
"CLAUDE_CODE_USE_VERTEX": "1",
5+
"CLOUD_ML_REGION": "global",
6+
"ANTHROPIC_VERTEX_PROJECT_ID": "your-gcp-project-id",
57
"VERTEX_REGION_CLAUDE_3_5_SONNET": "us-central1",
6-
"VERTEX_REGION_CLAUDE_3_5_HAIKU": "us-central1"
8+
"VERTEX_REGION_CLAUDE_3_5_HAIKU": "us-central1",
9+
"VERTEX_REGION_CLAUDE_3_7_SONNET": "us-central1",
10+
"VERTEX_REGION_CLAUDE_4_0_OPUS": "us-central1",
11+
"VERTEX_REGION_CLAUDE_4_0_SONNET": "us-central1",
12+
"VERTEX_REGION_CLAUDE_4_1_OPUS": "us-central1",
13+
"ANTHROPIC_MODEL": "claude-sonnet-4@20250514",
14+
"ANTHROPIC_SMALL_FAST_MODEL": "claude-3-5-haiku@20241022"
715
}
816
}

cli-tool/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli-tool/src/analytics.js

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,41 +1227,10 @@ class ClaudeAnalytics {
12271227
// Activity heatmap data endpoint - needs full conversation history
12281228
this.app.get('/api/activity', async (req, res) => {
12291229
try {
1230-
// TEMPORARY: Use test data for demo/screenshots
1231-
console.log(`🔥 /api/activity called - using test data for demo...`);
1232-
const fs = require('fs');
1233-
const path = require('path');
1234-
const testDataPath = path.join(__dirname, 'test-activity-data.json');
1235-
1236-
if (fs.existsSync(testDataPath)) {
1237-
const testData = JSON.parse(fs.readFileSync(testDataPath, 'utf8'));
1238-
1239-
// Calculate totals
1240-
const totalContributions = testData.reduce((sum, day) => sum + day.conversations, 0);
1241-
const totalTools = testData.reduce((sum, day) => sum + day.tools, 0);
1242-
const totalMessages = testData.reduce((sum, day) => sum + day.messages, 0);
1243-
const totalTokens = testData.reduce((sum, day) => sum + day.tokens, 0);
1244-
1245-
const activityData = {
1246-
dailyActivity: testData,
1247-
totalContributions,
1248-
activeDays: testData.length,
1249-
longestStreak: 7, // Sample streak
1250-
currentStreak: 3, // Sample current streak
1251-
totalTools,
1252-
totalMessages,
1253-
totalTokens,
1254-
timestamp: new Date().toISOString()
1255-
};
1256-
1257-
return res.json(activityData);
1258-
}
1259-
1260-
// Fallback to real data if test file doesn't exist
12611230
console.log(`🔥 /api/activity called - loading all conversations...`);
12621231
const allConversations = await this.conversationAnalyzer.loadConversations(this.stateCalculator);
12631232
console.log(`🔥 Loaded ${allConversations.length} conversations from server`);
1264-
1233+
12651234
// Generate activity data using complete dataset
12661235
const activityData = this.generateActivityDataFromConversations(allConversations);
12671236
res.json({

0 commit comments

Comments
 (0)