@gitmit/core
v0.8.0
Published
Diff analysis engine for gitmit: parse, filter, classify, summarize.
Maintainers
Readme
@gitmit/core
The engine behind gitmit: turns a git diff into Conventional Commits suggestions. It has no terminal or editor code, so it works in a CLI, a web page or an editor extension.
import { analyze, generate, createProvider } from "@gitmit/core";
const analysis = analyze(diff); // type, scope, noise filtering, size-bounded summary
const { suggestions } = await generate(diff, {
provider: createProvider("openai", { apiKey: process.env.OPENAI_API_KEY }),
});
console.log(suggestions[0].message);Providers: openai, anthropic, ollama, and rules (offline, no network). Remote providers only receive input that passed the secret scanner.
Documentation: https://gitmit-frontend.vercel.app/docs/api · MIT licensed · Source: https://github.com/sammy440/gitmit
