fix: remote argument schema

Removed unnecessary union wrapper for the `remote` argument, now using a direct string schema with optional flag and updated description.
This commit is contained in:
2026-03-23 12:55:50 +05:30
parent 4e20a03359
commit f58cd1e897
+1 -7
View File
@@ -15,13 +15,7 @@ Arguments:
- \`noRemote\` (boolean, optional): When true, only delete local tags and do not push deletions to any remote.`, - \`noRemote\` (boolean, optional): When true, only delete local tags and do not push deletions to any remote.`,
args: { args: {
remote: tool.schema remote: tool.schema
.union([ .string()
tool.schema
.string()
.describe(
"Remote name to push deletions to. Error if doesn't exist.",
)
])
.optional() .optional()
.describe( .describe(
"Remote handling: string=specific remote, undefined=first available remote", "Remote handling: string=specific remote, undefined=first available remote",