From 42f153a28f318c0f65eeb14a074cde67c6b3bf7b Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 23 Mar 2026 09:33:39 +0530 Subject: [PATCH] plan: cleanup - streamline remote option handling --- .opencode/plans/1774116737450-clever-canyon.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.opencode/plans/1774116737450-clever-canyon.md b/.opencode/plans/1774116737450-clever-canyon.md index 2b8616b..0e6aee4 100644 --- a/.opencode/plans/1774116737450-clever-canyon.md +++ b/.opencode/plans/1774116737450-clever-canyon.md @@ -307,8 +307,7 @@ export const cleanupTool = tool({ remote: tool.schema.union([ tool.schema.string().describe("Remote name to push deletions to. Error if doesn't exist."), tool.schema.literal(false).describe("Only delete local tags, don't push to remote."), - tool.schema.undefined().describe("Use first available remote from git remote -v."), - ]).optional().describe("Remote handling: string=specific remote, false=local-only, undefined=first available"), + ]).optional().describe("Remote handling: string=specific remote, false=local-only, undefined=first available remote"), }, async execute(args, context) { // In plugin mode, we skip confirmation (force=true) @@ -344,8 +343,8 @@ program .description("Delete all archive tags from local and remote") .option("-f, --force", "Skip confirmation prompts", false) .option("-r, --remote ", "Remote name to push deletions to (default: first remote from git remote -v)") - .option("--no-remote", "Only delete local tags, skip remote", false) - .action(async (options: { force: boolean; remote?: string; noRemote: boolean }) => { + .option("--no-remote", "Only delete local tags, skip remote") + .action(async (options: { force: boolean; remote?: string|boolean }) => { try { const result = await cleanupArchiveTags({ force: options.force,