import { SfCommand } from '@salesforce/sf-plugins-core'; import type { ReferenceHealth } from '../../services/reference-fetcher.js'; import type { OpenCodeHealth } from '../../services/opencode-health.js'; import type { KnowledgeReadiness } from '../../services/knowledge-refresh.js'; import type { SetupHealth } from '../../services/setup-health.js'; import type { SetupAgentsUpdateDocReferenceResult, SetupAgentsUpdateFetchRefsResult, StaleRuleFile } from '../../types/index.js'; export type SetupUpdateResult = { updated: string[]; skipped: string[]; staleFiles: StaleRuleFile[]; availableActions: Array<'check' | 'dry-run' | 'update'>; cwd: string; docReference?: SetupAgentsUpdateDocReferenceResult; fetchRefs?: SetupAgentsUpdateFetchRefsResult; opencodeHealth?: OpenCodeHealth; setupHealth?: SetupHealth; referenceHealth?: ReferenceHealth; knowledgeReadiness?: KnowledgeReadiness; }; export default class Update extends SfCommand { static readonly summary: string; static readonly description: string; static readonly examples: string[]; static readonly flags: { 'dry-run': import("@oclif/core/interfaces").BooleanFlag; check: import("@oclif/core/interfaces").BooleanFlag; yes: import("@oclif/core/interfaces").BooleanFlag; 'doc-reference': import("@oclif/core/interfaces").BooleanFlag; 'fetch-refs': import("@oclif/core/interfaces").BooleanFlag; force: import("@oclif/core/interfaces").BooleanFlag; }; run(): Promise; private logStaleFiles; private runDryRunOrCheck; private logOpenCodeHealth; private promptConfirmation; private applyUpdates; private runForce; /** * Warn when cached reference `.md` files still carry leftover SPA bootstrap * scripts (pre-GH-522 stale cache). Points the user at the one-line fix. Runs on * every `update` invocation (including `--check`), independent of stale rules. */ private warnReferenceHealth; private runFetchRefs; private runDocReference; }