1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q '\\.(ts|tsx|js|jsx)$'; then echo \"๐ง Formatting $file_path with Prettier...\"; npx prettier --write \"$file_path\" 2>/dev/null || echo \"โ ๏ธ Prettier not available\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'api.*route\\.(ts|js)$'; then echo \"๐ AI SDK API route detected: $file_path\"; echo \"๐ Advanced checklist:\"; echo \" โข Edge Runtime compatibility (runtime = 'edge')\"; echo \" โข Streaming with proper timeouts\"; echo \" โข Error boundaries and recovery\"; echo \" โข Rate limiting and security\"; echo \" โข Monitoring and analytics integration\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'package\\.json$'; then echo \"๐ฆ Package.json updated: $file_path\"; echo \"๐ Run 'npm install' to sync dependencies\"; echo \"๐ก Consider updating Vercel config for Edge Runtime\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'streamUI\\|generateUI'; then echo \"๐จ Generative UI detected: $file_path\"; echo \"โจ Advanced UI features available:\"; echo \" โข Dynamic component streaming\"; echo \" โข Real-time chart generation\"; echo \" โข Interactive form creation\"; echo \" โข Dashboard widgets\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'computer.*tool\\|computer_20241022'; then echo \"๐ฅ๏ธ Computer Use implementation detected: $file_path\"; echo \"๐ Security reminders:\"; echo \" โข Validate all actions before execution\"; echo \" โข Implement rate limiting\"; echo \" โข Add permission controls\"; echo \" โข Log all computer interactions\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'o1-preview\\|o1-mini\\|deepseek.*reasoner'; then echo \"๐ง Reasoning model detected: $file_path\"; echo \"๐ญ Reasoning optimizations:\"; echo \" โข Enable thinking mode visibility\"; echo \" โข Increase token limits (8K-32K)\"; echo \" โข Add reasoning-specific prompts\"; echo \" โข Monitor thinking token usage\"; fi; }"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'npm install.*@ai-sdk'; then echo \"๐ค AI SDK dependency installed!\"; echo \"๐ Advanced features now available:\"; echo \" โข Reasoning models (O1, O3-mini, DeepSeek R1)\"; echo \" โข Computer use capabilities\"; echo \" โข Generative UI with streamUI\"; echo \" โข Multi-modal streaming\"; echo \" โข Edge runtime optimization\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'npm.*test'; then echo \"๐งช Tests completed\"; echo \"๐ Advanced testing coverage:\"; echo \" โข Streaming response validation\"; echo \" โข Error recovery mechanisms\"; echo \" โข Tool execution testing\"; echo \" โข Edge runtime compatibility\"; echo \" โข Performance benchmarks\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'vercel.*deploy'; then echo \"๐ Vercel deployment detected\"; echo \"โก Edge optimization reminders:\"; echo \" โข Verify Edge Runtime configuration\"; echo \" โข Check bundle size limits\"; echo \" โข Test regional performance\"; echo \" โข Monitor cold start times\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'build'; then echo \"๐๏ธ Build process initiated\"; echo \"๐ Advanced build checks:\"; echo \" โข TypeScript compilation\"; echo \" โข Bundle analysis\"; echo \" โข Dependency optimization\"; echo \" โข Performance profiling\"; fi; }"
}
]
}
],
"PreToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q '\\.env'; then echo \"๐ WARNING: Writing to environment file. Ensure no secrets are committed!\"; echo \"๐ AI SDK environment variables checklist:\"; echo \" โข ANTHROPIC_API_KEY for Claude models\"; echo \" โข OPENAI_API_KEY for GPT models\"; echo \" โข Provider-specific configurations\"; echo \" โข Edge runtime settings\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'api.*route'; then echo \"๐ก๏ธ Creating AI SDK API route: $file_path\"; echo \"๐ Advanced implementation checklist:\"; echo \" โ
Edge Runtime compatibility (runtime = 'edge')\"; echo \" โ
Advanced streaming with timeouts\"; echo \" โ
Multi-step tool execution with stopWhen\"; echo \" โ
Background processing with waitUntil\"; echo \" โ
Provider fallback mechanisms\"; echo \" โ
Comprehensive error handling\"; echo \" โ
Rate limiting and security\"; echo \" โ
Performance monitoring integration\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'next\\.config'; then echo \"โ๏ธ Next.js configuration update: $file_path\"; echo \"๐ Advanced AI SDK optimizations:\"; echo \" โข Edge Runtime configuration\"; echo \" โข Bundle optimization for AI SDK\"; echo \" โข Streaming response headers\"; echo \" โข Performance monitoring setup\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.file_path' | { read file_path; if echo \"$file_path\" | grep -q 'vercel\\.json'; then echo \"๐ Vercel configuration detected: $file_path\"; echo \"โก Edge deployment optimizations:\"; echo \" โข Regional function deployment\"; echo \" โข Edge Runtime configuration\"; echo \" โข Custom headers for AI responses\"; echo \" โข Performance monitoring setup\"; fi; }"
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'rm.*-rf'; then echo \"โ ๏ธ CAUTION: Destructive operation detected!\"; echo \"Please review: $cmd\"; echo \"๐พ Consider backing up important AI models/data first\"; fi; }"
},
{
"type": "command",
"command": "jq -r '.tool_input.command' | { read cmd; if echo \"$cmd\" | grep -q 'git.*push'; then echo \"๐ค Git push detected\"; echo \"๐ Pre-push AI SDK checklist:\"; echo \" โข No API keys in commits\"; echo \" โข AI SDK dependencies updated\"; echo \" โข Tests passing\"; echo \" โข Performance benchmarks acceptable\"; fi; }"
}
]
}
],
"Stop": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "if [ -f \"package.json\" ] && grep -q '@ai-sdk' package.json; then echo \"\\n๐ฏ Advanced AI SDK Development Session Complete\"; echo \"\\n๐ Cutting-edge AI features implemented:\"; echo \" โจ Generative UI with streamUI\"; echo \" ๐ง Reasoning models (O1, O3-mini, DeepSeek)\"; echo \" ๐ฅ๏ธ Computer use automation\"; echo \" โก Edge runtime optimization\"; echo \" ๐ Performance monitoring\"; echo \" ๐ง Advanced streaming patterns\"; echo \"\\n๐ Final production checklist:\"; echo \" โ Streaming responses optimized?\"; echo \" โ Error boundaries implemented?\"; echo \" โ Edge runtime configured?\"; echo \" โ Monitoring and analytics active?\"; echo \" โ Security measures in place?\"; echo \" โ Performance tested?\"; echo \" โ Cost tracking enabled?\"; echo \"\\n๐ Ready to deploy next-generation AI experiences!\"; fi"
}
]
}
],
"Notification": [
{
"matcher": "",
"hooks": [
{
"type": "command",
"command": "echo \"๐ค Claude Code Advanced AI SDK Expert is ready!\"; echo \"\\n๐ Advanced capabilities available:\"; echo \" ๐ง Reasoning Models (O1, O3-mini, DeepSeek R1)\"; echo \" ๐ฅ๏ธ Computer Use Automation\"; echo \" ๐จ Generative UI with streamUI\"; echo \" โก Edge Runtime Optimization\"; echo \" ๐ Performance Monitoring\"; echo \" ๐ง Multi-step Agent Workflows\"; echo \"\\n๐ก Use specialized agents and commands for advanced features!\""
}
]
}
]
},
"permissions": {
"allow": [
"Bash(npm:*)",
"Bash(pnpm:*)",
"Bash(yarn:*)",
"Bash(npx:*)",
"Bash(node:*)",
"Bash(git:*)",
"Bash(curl:*)",
"Bash(mkdir:*)",
"Bash(cp:*)",
"Bash(mv:*)",
"Bash(rm:*)",
"Bash(ls:*)",
"Bash(cat:*)",
"Bash(grep:*)",
"Bash(find:*)",
"Bash(jq:*)",
"Bash(echo:*)",
"Bash(vercel:*)",
"Bash(docker:*)",
"Write",
"Edit",
"MultiEdit",
"Read",
"Glob",
"Grep",
"LS",
"Task"
],
"deny": [
"Bash(sudo:*)",
"Bash(su:*)",
"Read(.env)",
"Read(.env.*)",
"Read(*/secrets/*)",
"Read(**/secrets/**)",
"Write(.env)",
"Write(.env.*)"
]
},
"env": {
"AI_SDK_EXPERT_MODE": "advanced",
"CLAUDE_CODE_AI_SDK_CONFIG": "loaded",
"ENABLE_REASONING_MODELS": "true",
"ENABLE_COMPUTER_USE": "true",
"ENABLE_GENERATIVE_UI": "true",
"ENABLE_EDGE_OPTIMIZATION": "true",
"ENABLE_ADVANCED_MONITORING": "true"
},
"_metadata": {
"name": "Vercel AI SDK",
"version": "1.0.0",
"category": "tooling",
"generated": "2025-08-20T13:36:56.495Z",
"generator": "manual",
"note": "Official Claude Code configuration"
}
}
|