From f215e49241450de291900bb7bbb04f56e4a904f5 Mon Sep 17 00:00:00 2001 From: David Gitman <1743448+dgitman@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:00:09 -0400 Subject: [PATCH] zapier: support the zapier-platform binary zapier-platform-cli v19 renamed its binary from `zapier` to `zapier-platform`, so the plugin no longer found the CLI. Co-Authored-By: Claude Sonnet 5.5 --- plugins/zapier/plugin.go | 1 + plugins/zapier/zapier.go | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/zapier/plugin.go b/plugins/zapier/plugin.go index a8b519537..0f58b5a76 100644 --- a/plugins/zapier/plugin.go +++ b/plugins/zapier/plugin.go @@ -17,6 +17,7 @@ func New() schema.Plugin { }, Executables: []schema.Executable{ ZapierCLI(), + ZapierPlatformCLI(), }, } } diff --git a/plugins/zapier/zapier.go b/plugins/zapier/zapier.go index 570133759..78ed3ed1b 100644 --- a/plugins/zapier/zapier.go +++ b/plugins/zapier/zapier.go @@ -8,9 +8,18 @@ import ( ) func ZapierCLI() schema.Executable { + return zapierExecutable("zapier") +} + +// ZapierPlatformCLI covers zapier-platform-cli v19+, which no longer installs a `zapier` binary. +func ZapierPlatformCLI() schema.Executable { + return zapierExecutable("zapier-platform") +} + +func zapierExecutable(command string) schema.Executable { return schema.Executable{ Name: "Zapier CLI", - Runs: []string{"zapier"}, + Runs: []string{command}, DocsURL: sdk.URL("https://platform.zapier.com/cli_docs/docs"), NeedsAuth: needsauth.IfAll( needsauth.NotForHelpOrVersion(),