- Move git text-generation layers and tests under `src/textGeneration` - Route server and provider drivers to the new module - Replace the old git-scoped `TextGenerationLive` registry layer
20 lines
680 B
TypeScript
20 lines
680 B
TypeScript
import { Schema } from "effect";
|
|
|
|
export const TextGenerationPolicyKind = Schema.Literals([
|
|
"default",
|
|
"conventional_commits",
|
|
"repo_conventions",
|
|
"custom",
|
|
]);
|
|
export type TextGenerationPolicyKind = typeof TextGenerationPolicyKind.Type;
|
|
|
|
export const TextGenerationPolicy = Schema.Struct({
|
|
kind: TextGenerationPolicyKind,
|
|
commitInstructions: Schema.optional(Schema.String),
|
|
changeRequestInstructions: Schema.optional(Schema.String),
|
|
branchInstructions: Schema.optional(Schema.String),
|
|
threadTitleInstructions: Schema.optional(Schema.String),
|
|
inferRepositoryConventions: Schema.Boolean,
|
|
});
|
|
export type TextGenerationPolicy = typeof TextGenerationPolicy.Type;
|