@gistdiff/core
v0.1.0
Published
Core library powering the gistdiff CLI: summarize git diffs via Vercel AI Gateway
Maintainers
Readme
@gistdiff/core
Core library powering the gistdiff CLI. Summarizes a git diff into a commit message via the Vercel AI Gateway.
Most users want the CLI, not this package — install gistdiff instead:
npm i -g gistdiffProgrammatic use
import { summarizeDiff, DEFAULT_MODEL } from "@gistdiff/core";
const result = await summarizeDiff(diffText, {
model: DEFAULT_MODEL,
description: true,
reasoning: true,
});
console.log(result.subject);
console.log(result.body);
console.log(result.cost); // usage + authoritative billing from the gatewayRequires AI_GATEWAY_API_KEY in the environment. Node.js 20+.
License
ISC © Joe McKenney
