We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac33f3 commit 9cba62dCopy full SHA for 9cba62d
scripts/generate-tool-definitions.ts
@@ -2,6 +2,7 @@
2
3
import { writeFileSync } from 'fs'
4
import { join } from 'path'
5
+import { execSync } from 'child_process'
6
7
import { compileToolDefinitions } from '@codebuff/common/tools/compile-tool-definitions'
8
@@ -18,6 +19,10 @@ function main() {
18
19
20
writeFileSync(outputPath, content, 'utf8')
21
22
+ // Format the generated file with prettier
23
+ console.log('🎨 Formatting generated file...')
24
+ execSync(`npx prettier --write "${outputPath}"`, { stdio: 'inherit' })
25
+
26
console.log('✅ Successfully generated tools.d.ts')
27
console.log(`📁 Output: ${outputPath}`)
28
} catch (error) {
0 commit comments