/** * New Command Types * * The new/interview workflow is now handled by the TUI (InterviewScreen.tsx). * This file provides type exports and utility functions. */ import type { AIProvider } from '../ai/providers.js'; import type { ScanResult } from '../scanner/index.js'; export interface NewOptions { /** Open in editor after creation */ edit?: boolean; /** Editor to use (defaults to $EDITOR or 'code') */ editor?: string; /** Force overwrite if file exists */ force?: boolean; /** AI provider (anthropic, openai, openrouter) */ provider?: AIProvider; /** Model to use for AI generation */ model?: string; /** Pre-loaded scan result (from session) */ scanResult?: ScanResult; } /** * Default spec template content */ export declare const DEFAULT_SPEC_TEMPLATE = "# {{feature}} Feature Specification\n\n**Status:** Planned\n**Version:** 1.0\n**Last Updated:** {{date}}\n\n## Purpose\n\nDescribe what this feature does and why it's needed.\n\n## User Stories\n\n- As a user, I want [action] so that [benefit]\n- As an admin, I want [action] so that [benefit]\n\n## Requirements\n\n### Functional Requirements\n- [ ] Requirement 1 - Description of what the system must do\n- [ ] Requirement 2 - Another functional requirement\n\n### Non-Functional Requirements\n- [ ] Performance: [target metrics]\n- [ ] Security: [security considerations]\n- [ ] Accessibility: [WCAG level]\n\n## Technical Notes\n\n- **Uses:** Existing patterns or components to leverage\n- **Location:** Where the code should live\n- **Dependencies:** External libraries or APIs needed\n- **Database:** Schema changes required (if any)\n\n## Visual Requirements\n\n(For UI features - delete this section if backend-only)\n\n- **Layout:** Describe the layout structure and responsive behavior\n- **Components:** List the UI components needed\n- **States:**\n - Empty: What to show when there's no data\n - Loading: Skeleton or spinner pattern\n - Error: How to display errors\n- **Mobile:** How the layout adapts on small screens\n\n## API Endpoints\n\n(If applicable)\n\n| Method | Endpoint | Description |\n|--------|----------|-------------|\n| GET | `/api/{{feature}}` | Fetch data |\n| POST | `/api/{{feature}}` | Create new |\n\n## Acceptance Criteria\n\n- [ ] Criteria 1 - Specific, testable condition\n- [ ] Criteria 2 - Another acceptance criterion\n- [ ] Criteria 3 - E2E testable scenario\n\n## Out of Scope\n\n- Feature X (planned for future iteration)\n- Integration Y (separate spec)\n\n## Open Questions\n\n- [ ] Question 1 - Decision needed\n- [ ] Question 2 - Clarification required\n"; /** * Find the _example.md template */ export declare function findExampleTemplate(projectRoot: string): Promise; /** * Get template directory from the package */ export declare function getPackageTemplateDir(): string; /** * Process template variables */ export declare function processTemplate(template: string, feature: string): string;