/** * Rollback Implementation Command — CLI `/pd-rollback-impl` * ========================================================== * * PURPOSE: Revert the current active implementation and restore the previous one. * * FLOW: * 1. List active implementations * 2. On confirm: current -> disabled, previous -> active * * SAFETY: * - If no previous active: current -> disabled (degrades to hard-boundary gates) * - Rollback records persisted with full audit trail */ import type { PluginCommandContext, PluginCommandResult } from '../openclaw-sdk.js'; /** * Handle the /pd-rollback-impl command. * * Usage: * /pd-rollback-impl list - List active implementations * /pd-rollback-impl - Rollback current active * /pd-rollback-impl --reason "" - Rollback with reason */ export declare function handleRollbackImplCommand(ctx: PluginCommandContext): PluginCommandResult; /** * Handle natural language rollback request. * Detects phrases like "回滚这个规则实现", "rollback this implementation". */ export declare function handleNaturalLanguageRollbackImpl(workspaceDir: string, sessionId: string | undefined, reason: string): { success: boolean; message: string; };