/** * Shared types for init command helpers */ import type { SupportedLanguage } from '../../../core/i18n/types.js'; /** * Repository fetching limits * * These limits control how many repositories can be fetched during init. * Increased from 500 to 1000 in v0.35.0 to support large organizations. */ export declare const REPO_FETCH_LIMITS: { /** Default maximum repos to fetch during init (GitHub, Bitbucket, ADO) */ readonly DEFAULT_MAX_REPOS: 1000; /** Maximum repos allowed via gh repo list command */ readonly GH_CLI_MAX_REPOS: 1000; /** Per-page limit for API pagination (GitHub/Bitbucket API max is 100) */ readonly API_PER_PAGE: 100; }; /** * Options passed to the init command */ export interface InitOptions { adapter?: string; techStack?: string; force?: boolean; gitHooks?: boolean; quick?: boolean; } /** * Repository hosting configuration */ export type RepositoryHosting = 'github' | 'bitbucket' | 'ado' | 'local' | 'other'; /** * Detected parent .specweave folder info */ export interface ParentSpecweaveFolder { path: string; depth: number; isHomeDir?: boolean; /** * True if this is a user-level .specweave folder (e.g., ~/.specweave or ~/.claude/.specweave) * User-level folders are VALID and should NOT block project initialization */ isUserLevel?: boolean; /** * True if the .specweave folder has no config.json (stale/partial folder). * Stale folders are created by runtime code (hooks, loggers) using process.cwd() * and should NOT block project initialization. */ isStale?: boolean; } /** * GitHub remote detection result */ export interface GitHubRemote { owner: string; repo: string; } /** * JIRA project configuration for multi-project mode */ export interface JiraProjectConfig { key: string; name?: string; id?: string; boards?: Array<{ id: string; name?: string; }>; isDefault?: boolean; } /** * JIRA configuration detection result * Extended with multi-project support (v0.33.0+) */ export interface JiraConfig { host: string; email?: string; apiToken?: string; strategy?: string; projects?: JiraProjectConfig[]; } /** * Azure DevOps project configuration for multi-project mode */ export interface ADOProjectConfig { name: string; areaPaths?: string[]; isDefault?: boolean; isUmbrella?: boolean; } /** * Azure DevOps configuration detection result */ export interface ADOConfig { orgUrl: string; project: string; pat?: string; teams?: string[]; areaPaths?: string[]; strategy?: string; projects?: ADOProjectConfig[]; } /** * Testing mode configuration * - TDD: Write tests first (mission-critical systems) * - test-after: Implement first, test later (recommended for most) * - manual: Test when needed, no strict rules (flexible for startups/MVPs) * - none: Skip testing entirely (hackathons, experiments, prototypes) */ export type TestMode = 'TDD' | 'test-after' | 'manual' | 'none'; /** * Testing configuration for config.json */ export interface TestingConfig { mode: TestMode; commands: string[]; coverage: { unit: number; integration: number; e2e: number; }; } /** * Translation scope - what gets auto-translated */ export interface TranslationScope { /** Auto-translate spec.md, plan.md, tasks.md after creation */ incrementSpecs: boolean; /** Auto-translate living docs on update */ livingDocs: boolean; /** Auto-translate GitHub/JIRA/ADO issues on sync */ externalSync: boolean; } /** * Translation configuration for config.json * * CRITICAL: Translation can ~2x token usage * User MUST explicitly opt-in during init */ export interface TranslationConfig { /** Master switch for auto-translation */ enabled: boolean; /** Enabled languages (always includes 'en' as source) */ languages: SupportedLanguage[]; /** Primary output language for user */ primary: SupportedLanguage; /** Translation method: auto (hooks), manual (sw:translate), none */ method: 'auto' | 'manual' | 'none'; /** Keep SpecWeave framework terms in English (increment, spec.md, etc.) */ preserveFrameworkTerms: boolean; /** What to auto-translate */ scope: TranslationScope; /** Keep English originals as .en.md files */ keepEnglishOriginals: boolean; } /** * Result of umbrella parent detection */ export interface UmbrellaParentResult { umbrellaRoot: string; reason: 'config-umbrella-repo' | 'repositories-dir'; } /** * A discovered child repository: `repositories//` or any nested checkout */ export interface DiscoveredRepo { registered?: import('../../../core/config/types.js').WorkspaceRepo; org: string; name: string; path: string; hasGit: boolean; } /** * Result of scanning a folder for the repositories it holds */ export interface UmbrellaDiscoveryResult { isUmbrella: boolean; repositoriesDir: string; orgs: string[]; repos: DiscoveredRepo[]; totalRepoCount: number; } /** * Result of suspicious path detection */ export interface SuspiciousPathResult { segment: string; suggestedRoot: string; } //# sourceMappingURL=types.d.ts.map