mirror of
https://github.com/bendtherules/opencode-multi-model.git
synced 2026-08-18 21:52:11 +00:00
feat: add multi-model cleanup tool and CLI command
- Bump `@opencode-ai/plugin` dependency from 1.2.27 to 1.3.0. - Introduce `cleanup` command in CLI with force and remote options. - Export `cleanupMultiModel` from core index. - Register `multi-model-cleanup` tool in plugin and update exports. - Add `CleanupOptions` and `CleanupResult` types to define cleanup behavior and results.
This commit is contained in:
@@ -74,6 +74,45 @@ export interface WindowLaunchPlan {
|
||||
windowName: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for cleaning up archive tags.
|
||||
*/
|
||||
export interface CleanupOptions {
|
||||
/** Skip confirmation prompts. */
|
||||
force?: boolean;
|
||||
/**
|
||||
* Remote name to push deletions to.
|
||||
* - If string: use specified remote (error if doesn't exist)
|
||||
* - If undefined: use first available remote from git remote -v
|
||||
* - If false: only local cleanup (--no-remote flag)
|
||||
*/
|
||||
remote?: string | false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Result returned after attempting to cleanup archive tags.
|
||||
*/
|
||||
export interface CleanupResult {
|
||||
/** Whether the cleanup succeeded. */
|
||||
success: boolean;
|
||||
/** Error message if the cleanup failed. */
|
||||
error?: string;
|
||||
/** Summary message for the user. */
|
||||
instructions?: string;
|
||||
/** Number of local tags deleted. */
|
||||
localTagsDeleted: number;
|
||||
/** Number of remote tags deleted. */
|
||||
remoteTagsDeleted: number;
|
||||
/** Names of tags that were deleted locally. */
|
||||
localTagNames: string[];
|
||||
/** Names of tags deleted from remote. */
|
||||
remoteTagNames: string[];
|
||||
/** Tags that failed remote deletion. */
|
||||
remoteTagErrors: Array<{ tag: string; error: string }>;
|
||||
/** Available remotes discovered. */
|
||||
availableRemotes: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Result of running a shell command.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user