#!/usr/bin/env node /** * SpecWeave Update Command * * Unified update command for keeping SpecWeave up-to-date. * This is the recommended command for users to run when updating. * * What it does (by default): * 1. Self-updates SpecWeave CLI via npm (npm i -g specweave@latest) * 2. Migrates config.json to the 2.0 shape (dead 1.x keys dropped, renames * applied, dropped keys recorded in .specweave/state/config-migration-2.json) * 3. Updates instruction files (CLAUDE.md, AGENTS.md) * 4. Validates project health * 5. Refreshes ALL marketplace plugins (DEFAULT - keeps all skills up to date) * * Usage: * specweave update # Full update: CLI + instructions + config + plugins * specweave update --no-plugins # Skip marketplace plugins refresh * specweave update --all # Install ALL plugins (default, kept for compat) * specweave update --minimal # Clean /plugin output (removes marketplace) * specweave update --no-self # Skip CLI update, only project files * specweave update --check # Dry run - show what would change * * @since 1.0.131 * @updated 1.0.138 - Plugins refresh is now DEFAULT (use --no-plugins to skip) */ interface UpdateOptions { /** Skip marketplace plugins refresh (`--no-plugins`; Commander sets plugins=false) */ noPlugins?: boolean; /** Commander maps --no-plugins to plugins=false */ plugins?: boolean; /** Install all plugins (default: true). Kept for backward compat — update always refreshes all plugins. */ all?: boolean; /** Minimal mode: remove marketplace for clean /plugin output */ minimal?: boolean; /** Dry run - show what would change */ check?: boolean; /** Verbose output */ verbose?: boolean; /** Force refresh even if up to date */ force?: boolean; /** Skip self-update of specweave CLI (--no-self sets self=false via Commander) */ noSelf?: boolean; /** Commander maps --no-self to self=false */ self?: boolean; } /** * Main update command */ export declare function updateCommand(options?: UpdateOptions): Promise; /** * Register command with Commander */ export declare function registerUpdateCommand(program: import('commander').Command): void; export {}; //# sourceMappingURL=update.d.ts.map