Files
t3code/apps/server/src/textGeneration/TextGenerationPolicy.ts
T
6d7fe2eeb7 Introduce pluggable VCS driver foundation (#2435)
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: codex <[email protected]>
Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
2026-05-02 16:08:17 -07:00

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;