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
-6
View File
@@ -15,13 +15,7 @@ Arguments:
- \`noRemote\` (boolean, optional): When true, only delete local tags and do not push deletions to any remote.`,
args: {
remote: tool.schema
.union([
tool.schema
.string()
.describe(
"Remote name to push deletions to. Error if doesn't exist.",
)
])
.optional()
.describe(
"Remote handling: string=specific remote, undefined=first available remote",