Files
Folo/packages/changelog-cli/bin/cli.js
T
Innei 0c128d3e58 feat(changelog-cli): implement AI-driven changelog generation with OpenAI integration
- Added a new changelog CLI tool that analyzes git commits and generates user-friendly changelog entries.
- Integrated OpenAI for AI-powered commit analysis and categorization.
- Configurable AI model settings and support for custom endpoints.
- Introduced a configuration file for internal team members and commit analysis categories.
- Implemented fallback support for keyword-based analysis if AI is unavailable.
- Updated package.json and README with usage instructions and examples.

Signed-off-by: Innei <tukon479@gmail.com>
2025-07-25 00:09:11 +08:00

19 lines
405 B
JavaScript

#!/usr/bin/env node
import { execSync } from "node:child_process"
import { fileURLToPath } from "node:url"
import { dirname, join } from "pathe"
const __dirname = dirname(fileURLToPath(import.meta.url))
const indexPath = join(__dirname, "..", "index.ts")
try {
execSync(`tsx "${indexPath}"`, {
stdio: "inherit",
cwd: process.cwd(),
})
} catch (error) {
process.exit(error.status || 1)
}