@posthog/agent
Version:
TypeScript agent framework wrapping Claude Agent SDK with Git-based task execution for PostHog
30 lines • 957 B
TypeScript
export interface TemplateVariables {
task_id: string;
task_title: string;
task_description?: string;
date: string;
repository?: string;
[key: string]: string | undefined;
}
export declare class TemplateManager {
private templatesDir;
constructor();
private loadTemplate;
private substituteVariables;
generatePlan(variables: TemplateVariables): Promise<string>;
generateCustomFile(templateName: string, variables: TemplateVariables): Promise<string>;
createTaskStructure(taskId: string, taskTitle: string, options?: {
includePlan?: boolean;
additionalFiles?: Array<{
name: string;
template?: string;
content?: string;
}>;
}): Promise<Array<{
name: string;
content: string;
type: "plan" | "context" | "reference" | "output";
}>>;
generatePostHogReadme(): string;
}
//# sourceMappingURL=template-manager.d.ts.map