refactor: extract event, spec, and enhancement types to shared package

- Extract EventType and EventCallback to @automaker/types
- Extract SpecOutput and specOutputSchema to @automaker/types
- Extract EnhancementMode and EnhancementExample to @automaker/types
- Update server files to import from shared types
- Reduces server code duplication by ~123 lines

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Kacper
2025-12-20 00:29:24 +01:00
parent 108d52ce9f
commit 3a69f973d0
7 changed files with 198 additions and 157 deletions

View File

@@ -10,18 +10,10 @@
* Uses chain-of-thought prompting with few-shot examples for consistent results.
*/
/**
* Available enhancement modes for transforming task descriptions
*/
export type EnhancementMode = "improve" | "technical" | "simplify" | "acceptance";
import type { EnhancementMode, EnhancementExample } from "@automaker/types";
/**
* Example input/output pair for few-shot learning
*/
export interface EnhancementExample {
input: string;
output: string;
}
// Re-export enhancement types from shared package
export type { EnhancementMode, EnhancementExample } from "@automaker/types";
/**
* System prompt for the "improve" enhancement mode.