/** * Smart Save Command - Auto-sync, commit, and push with intelligent message generation * * Features: * - Auto-generated commit messages from git changes * - Smart sync (pre-flight check, auto-pull/rebase, auto-stash) * - Multi-repo/umbrella support * - Interactive and automatic modes * - Conflict resolution guidance * * @module cli/commands/save */ import { Logger } from '../../utils/logger.js'; /** * Save command options */ export interface SaveOptions { /** Custom commit message */ message?: string; /** Interactive mode - ask before each step */ interactive?: boolean; /** Dry run - preview without executing */ dryRun?: boolean; /** Sync strategy */ sync?: 'rebase' | 'merge' | 'none'; /** Skip auto-stash */ noStash?: boolean; /** Only save specific repos (comma-separated) */ repos?: string; /** Skip repos without remotes */ skipNoRemote?: boolean; /** * Fan out into git repositories nested under the root even when the root is * not a SpecWeave project root. From a project root (its own * .specweave/config.json) nested repos are detected automatically (0879). */ all?: boolean; /** Commit but don't push */ noPush?: boolean; /** Force push (requires confirmation) */ force?: boolean; /** Create new branch instead of force pushing */ branch?: string; /** Logger instance */ logger?: Logger; /** * Project root path. When omitted, the top level of the git repository * enclosing process.cwd() is used, and the command refuses to run outside a * git repository — never process.cwd() itself (0879). */ projectRoot?: string; } /** * Execute save command */ export declare function executeSave(options?: SaveOptions): Promise; //# sourceMappingURL=save.d.ts.map