mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user