ai-commit-report-generator-cli
Version:
An AI-powered CLI tool that generates weekly reports from your Git activity
28 lines (27 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BulletPointsSchema = exports.CommitSchema = exports.CommitStatisticsSchema = void 0;
const zod_1 = require("zod");
exports.CommitStatisticsSchema = zod_1.z.object({
fileName: zod_1.z.string(),
totalChanges: zod_1.z.number(),
numberOfInsertions: zod_1.z.number(),
numberOfDeletions: zod_1.z.number()
});
exports.CommitSchema = zod_1.z.object({
hash: zod_1.z.string(),
message: zod_1.z.string(),
date: zod_1.z.string(),
username: zod_1.z.string(),
});
exports.BulletPointsSchema = zod_1.z.object({
date: zod_1.z.string().datetime(),
// hashes:z.array(
// z.string().
// describe("The commit full hash string")
// ),
bulletPoints: zod_1.z.array(zod_1.z.object({
short: zod_1.z.string().describe("The short description of the change"),
long: zod_1.z.string().describe("The long description of the change")
})).describe("Try to include as much information as possible. The more bullet points the better. The number of bullet points should be equal to the number of commits"),
});