@zapier/zapier-sdk-cli 0.66.3 → 0.66.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.66.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e560c0: The CLI now reports the correct error code and enriched message for SDK errors. Previously some errors surfaced as `UNKNOWN_ERROR` with an unformatted message (and lost their code in `--json` output) because an `instanceof` check failed across the CLI's bundled copies of the SDK.
8
+ - Updated dependencies [4e560c0]
9
+ - Updated dependencies [4e560c0]
10
+ - @zapier/zapier-sdk@0.87.0
11
+ - @zapier/zapier-sdk-mcp@0.18.13
12
+
3
13
  ## 0.66.3
4
14
 
5
15
  ### Patch Changes
package/dist/cli.cjs CHANGED
@@ -536,7 +536,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
536
536
 
537
537
  // package.json
538
538
  var package_default = {
539
- version: "0.66.3"};
539
+ version: "0.66.4"};
540
540
 
541
541
  // src/telemetry/builders.ts
542
542
  function createCliBaseEvent(context = {}) {
@@ -597,7 +597,7 @@ function buildCliCommandExecutedEvent({
597
597
  };
598
598
  }
599
599
  function getApprovalReason(error) {
600
- if (!(error instanceof zapierSdk.ZapierApprovalError)) return void 0;
600
+ if (!zapierSdk.isZapierApprovalError(error)) return void 0;
601
601
  const { reason } = error;
602
602
  return typeof reason === "string" && reason.trim().length > 0 ? reason.trim() : void 0;
603
603
  }
@@ -737,7 +737,7 @@ function buildJsonErrors(error) {
737
737
  message: isPositional2 ? `<${toKebabCase(name)}> is required in non-interactive mode` : `--${toKebabCase(name)} is required in non-interactive mode`
738
738
  }));
739
739
  }
740
- const code = error instanceof zapierSdk.ZapierError ? error.code : "UNKNOWN_ERROR";
740
+ const code = zapierSdk.isZapierError(error) ? error.code : "UNKNOWN_ERROR";
741
741
  const message = error instanceof Error ? error.message : String(error);
742
742
  const reason = getApprovalReason(error);
743
743
  return [
@@ -950,7 +950,7 @@ function createInteractiveRenderer(context = {}) {
950
950
  console.error("\n" + chalk8__default.default.dim("Use --help to see available options"));
951
951
  throw new ZapierCliExitError(error.message, 1);
952
952
  }
953
- if (error instanceof zapierSdk.ZapierError) {
953
+ if (zapierSdk.isZapierError(error)) {
954
954
  const formattedMessage = zapierSdk.formatErrorMessage(error);
955
955
  console.error(chalk8__default.default.red("\u274C Error:"), formattedMessage);
956
956
  throw new ZapierCliExitError(formattedMessage, 1);
@@ -1462,7 +1462,7 @@ function createCommandConfig(cliCommandName, functionInfo, sdk) {
1462
1462
  interactive: promptingEnabled
1463
1463
  });
1464
1464
  } catch (err) {
1465
- if (err instanceof zapierSdk.CoreCancelledSignal) {
1465
+ if (zapierSdk.isCoreCancelledSignal(err)) {
1466
1466
  throw new ZapierCliUserCancellationError();
1467
1467
  }
1468
1468
  throw err;
@@ -4286,7 +4286,7 @@ async function bundleCode(options) {
4286
4286
  }
4287
4287
  return finalOutput;
4288
4288
  } catch (error) {
4289
- if (error instanceof zapierSdk.ZapierBundleError) {
4289
+ if (zapierSdk.isZapierBundleError(error)) {
4290
4290
  throw error;
4291
4291
  }
4292
4292
  throw new zapierSdk.ZapierBundleError(
@@ -5169,7 +5169,7 @@ var generateAppTypesPlugin = zapierSdk.defineMethod({
5169
5169
  app: app.key,
5170
5170
  error: errorMessage
5171
5171
  });
5172
- if (error instanceof zapierSdk.ZapierValidationError) {
5172
+ if (zapierSdk.isZapierValidationError(error)) {
5173
5173
  throw error;
5174
5174
  }
5175
5175
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -5256,7 +5256,7 @@ var buildManifestPlugin = zapierSdk.defineMethod({
5256
5256
  app: app.key,
5257
5257
  error: errorMessage
5258
5258
  });
5259
- if (error instanceof zapierSdk.ZapierValidationError) {
5259
+ if (zapierSdk.isZapierValidationError(error)) {
5260
5260
  throw error;
5261
5261
  }
5262
5262
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -6587,7 +6587,7 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
6587
6587
  await interactive(message);
6588
6588
  fulfilled++;
6589
6589
  } catch (err) {
6590
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
6590
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
6591
6591
  skipped++;
6592
6592
  }
6593
6593
  throw err;
@@ -6706,7 +6706,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
6706
6706
  await interactive(message);
6707
6707
  fulfilled++;
6708
6708
  } catch (err) {
6709
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
6709
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
6710
6710
  skipped++;
6711
6711
  }
6712
6712
  throw err;
@@ -6767,7 +6767,7 @@ function buildBoxLines(message) {
6767
6767
  // package.json with { type: 'json' }
6768
6768
  var package_default2 = {
6769
6769
  name: "@zapier/zapier-sdk-cli",
6770
- version: "0.66.3"};
6770
+ version: "0.66.4"};
6771
6771
 
6772
6772
  // src/sdk.ts
6773
6773
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command, CommanderError, Option } from 'commander';
3
- import { getConnectionPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, BaseSdkOptionsSchema, disposeSdk, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, ZapierReleaseTriggerMessageSignal, createSdk as createSdk$1, CORE_OPTIONS_ID as CORE_OPTIONS_ID$1, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin as addPlugin$1, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT, runWithCallerContext, isPositional, createController, CoreCancelledSignal, resolvePlugin, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, ZapierApprovalError } from '@zapier/zapier-sdk';
3
+ import { getConnectionPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, BaseSdkOptionsSchema, disposeSdk, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, createSdk as createSdk$1, CORE_OPTIONS_ID as CORE_OPTIONS_ID$1, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin as addPlugin$1, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT, runWithCallerContext, isPositional, createController, isCoreCancelledSignal, resolvePlugin, isZapierError, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, isZapierApprovalError } from '@zapier/zapier-sdk';
4
4
  import { z } from 'zod';
5
5
  import inquirer from 'inquirer';
6
6
  import chalk8 from 'chalk';
@@ -494,7 +494,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
494
494
 
495
495
  // package.json
496
496
  var package_default = {
497
- version: "0.66.3"};
497
+ version: "0.66.4"};
498
498
 
499
499
  // src/telemetry/builders.ts
500
500
  function createCliBaseEvent(context = {}) {
@@ -555,7 +555,7 @@ function buildCliCommandExecutedEvent({
555
555
  };
556
556
  }
557
557
  function getApprovalReason(error) {
558
- if (!(error instanceof ZapierApprovalError)) return void 0;
558
+ if (!isZapierApprovalError(error)) return void 0;
559
559
  const { reason } = error;
560
560
  return typeof reason === "string" && reason.trim().length > 0 ? reason.trim() : void 0;
561
561
  }
@@ -695,7 +695,7 @@ function buildJsonErrors(error) {
695
695
  message: isPositional2 ? `<${toKebabCase(name)}> is required in non-interactive mode` : `--${toKebabCase(name)} is required in non-interactive mode`
696
696
  }));
697
697
  }
698
- const code = error instanceof ZapierError ? error.code : "UNKNOWN_ERROR";
698
+ const code = isZapierError(error) ? error.code : "UNKNOWN_ERROR";
699
699
  const message = error instanceof Error ? error.message : String(error);
700
700
  const reason = getApprovalReason(error);
701
701
  return [
@@ -908,7 +908,7 @@ function createInteractiveRenderer(context = {}) {
908
908
  console.error("\n" + chalk8.dim("Use --help to see available options"));
909
909
  throw new ZapierCliExitError(error.message, 1);
910
910
  }
911
- if (error instanceof ZapierError) {
911
+ if (isZapierError(error)) {
912
912
  const formattedMessage = formatErrorMessage(error);
913
913
  console.error(chalk8.red("\u274C Error:"), formattedMessage);
914
914
  throw new ZapierCliExitError(formattedMessage, 1);
@@ -1420,7 +1420,7 @@ function createCommandConfig(cliCommandName, functionInfo, sdk) {
1420
1420
  interactive: promptingEnabled
1421
1421
  });
1422
1422
  } catch (err) {
1423
- if (err instanceof CoreCancelledSignal) {
1423
+ if (isCoreCancelledSignal(err)) {
1424
1424
  throw new ZapierCliUserCancellationError();
1425
1425
  }
1426
1426
  throw err;
@@ -4244,7 +4244,7 @@ async function bundleCode(options) {
4244
4244
  }
4245
4245
  return finalOutput;
4246
4246
  } catch (error) {
4247
- if (error instanceof ZapierBundleError) {
4247
+ if (isZapierBundleError(error)) {
4248
4248
  throw error;
4249
4249
  }
4250
4250
  throw new ZapierBundleError(
@@ -5127,7 +5127,7 @@ var generateAppTypesPlugin = defineMethod({
5127
5127
  app: app.key,
5128
5128
  error: errorMessage
5129
5129
  });
5130
- if (error instanceof ZapierValidationError) {
5130
+ if (isZapierValidationError(error)) {
5131
5131
  throw error;
5132
5132
  }
5133
5133
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -5214,7 +5214,7 @@ var buildManifestPlugin = defineMethod({
5214
5214
  app: app.key,
5215
5215
  error: errorMessage
5216
5216
  });
5217
- if (error instanceof ZapierValidationError) {
5217
+ if (isZapierValidationError(error)) {
5218
5218
  throw error;
5219
5219
  }
5220
5220
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -6545,7 +6545,7 @@ var drainTriggerInboxCliPlugin = defineMethod({
6545
6545
  await interactive(message);
6546
6546
  fulfilled++;
6547
6547
  } catch (err) {
6548
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
6548
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
6549
6549
  skipped++;
6550
6550
  }
6551
6551
  throw err;
@@ -6664,7 +6664,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
6664
6664
  await interactive(message);
6665
6665
  fulfilled++;
6666
6666
  } catch (err) {
6667
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
6667
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
6668
6668
  skipped++;
6669
6669
  }
6670
6670
  throw err;
@@ -6725,7 +6725,7 @@ function buildBoxLines(message) {
6725
6725
  // package.json with { type: 'json' }
6726
6726
  var package_default2 = {
6727
6727
  name: "@zapier/zapier-sdk-cli",
6728
- version: "0.66.3"};
6728
+ version: "0.66.4"};
6729
6729
 
6730
6730
  // src/sdk.ts
6731
6731
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -2666,7 +2666,7 @@ async function bundleCode(options) {
2666
2666
  }
2667
2667
  return finalOutput;
2668
2668
  } catch (error) {
2669
- if (error instanceof zapierSdk.ZapierBundleError) {
2669
+ if (zapierSdk.isZapierBundleError(error)) {
2670
2670
  throw error;
2671
2671
  }
2672
2672
  throw new zapierSdk.ZapierBundleError(
@@ -3549,7 +3549,7 @@ var generateAppTypesPlugin = zapierSdk.defineMethod({
3549
3549
  app: app.key,
3550
3550
  error: errorMessage
3551
3551
  });
3552
- if (error instanceof zapierSdk.ZapierValidationError) {
3552
+ if (zapierSdk.isZapierValidationError(error)) {
3553
3553
  throw error;
3554
3554
  }
3555
3555
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -3636,7 +3636,7 @@ var buildManifestPlugin = zapierSdk.defineMethod({
3636
3636
  app: app.key,
3637
3637
  error: errorMessage
3638
3638
  });
3639
- if (error instanceof zapierSdk.ZapierValidationError) {
3639
+ if (zapierSdk.isZapierValidationError(error)) {
3640
3640
  throw error;
3641
3641
  }
3642
3642
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -4955,7 +4955,7 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
4955
4955
  await interactive(message);
4956
4956
  fulfilled++;
4957
4957
  } catch (err) {
4958
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4958
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4959
4959
  skipped++;
4960
4960
  }
4961
4961
  throw err;
@@ -5074,7 +5074,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
5074
5074
  await interactive(message);
5075
5075
  fulfilled++;
5076
5076
  } catch (err) {
5077
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5077
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5078
5078
  skipped++;
5079
5079
  }
5080
5080
  throw err;
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5109
5109
  // package.json with { type: 'json' }
5110
5110
  var package_default = {
5111
5111
  name: "@zapier/zapier-sdk-cli",
5112
- version: "0.66.3"};
5112
+ version: "0.66.4"};
5113
5113
 
5114
5114
  // src/sdk.ts
5115
5115
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -7,7 +7,7 @@ import crypto, { createHash } from 'crypto';
7
7
  import * as path from 'path';
8
8
  import { resolve, join, dirname, basename, relative, extname } from 'path';
9
9
  import * as lockfile from 'proper-lockfile';
10
- import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
10
+ import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
11
11
  import { z } from 'zod';
12
12
  import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, injectCliLogin as injectCliLogin$1, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin } from '@zapier/zapier-sdk/experimental';
13
13
  import { hostname } from 'os';
@@ -2630,7 +2630,7 @@ async function bundleCode(options) {
2630
2630
  }
2631
2631
  return finalOutput;
2632
2632
  } catch (error) {
2633
- if (error instanceof ZapierBundleError) {
2633
+ if (isZapierBundleError(error)) {
2634
2634
  throw error;
2635
2635
  }
2636
2636
  throw new ZapierBundleError(
@@ -3513,7 +3513,7 @@ var generateAppTypesPlugin = defineMethod({
3513
3513
  app: app.key,
3514
3514
  error: errorMessage
3515
3515
  });
3516
- if (error instanceof ZapierValidationError) {
3516
+ if (isZapierValidationError(error)) {
3517
3517
  throw error;
3518
3518
  }
3519
3519
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -3600,7 +3600,7 @@ var buildManifestPlugin = defineMethod({
3600
3600
  app: app.key,
3601
3601
  error: errorMessage
3602
3602
  });
3603
- if (error instanceof ZapierValidationError) {
3603
+ if (isZapierValidationError(error)) {
3604
3604
  throw error;
3605
3605
  }
3606
3606
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -4919,7 +4919,7 @@ var drainTriggerInboxCliPlugin = defineMethod({
4919
4919
  await interactive(message);
4920
4920
  fulfilled++;
4921
4921
  } catch (err) {
4922
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4922
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4923
4923
  skipped++;
4924
4924
  }
4925
4925
  throw err;
@@ -5038,7 +5038,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
5038
5038
  await interactive(message);
5039
5039
  fulfilled++;
5040
5040
  } catch (err) {
5041
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5041
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5042
5042
  skipped++;
5043
5043
  }
5044
5044
  throw err;
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5073
5073
  // package.json with { type: 'json' }
5074
5074
  var package_default = {
5075
5075
  name: "@zapier/zapier-sdk-cli",
5076
- version: "0.66.3"};
5076
+ version: "0.66.4"};
5077
5077
 
5078
5078
  // src/sdk.ts
5079
5079
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
package/dist/index.cjs CHANGED
@@ -2671,7 +2671,7 @@ async function bundleCode(options) {
2671
2671
  }
2672
2672
  return finalOutput;
2673
2673
  } catch (error) {
2674
- if (error instanceof zapierSdk.ZapierBundleError) {
2674
+ if (zapierSdk.isZapierBundleError(error)) {
2675
2675
  throw error;
2676
2676
  }
2677
2677
  throw new zapierSdk.ZapierBundleError(
@@ -3554,7 +3554,7 @@ var generateAppTypesPlugin = zapierSdk.defineMethod({
3554
3554
  app: app.key,
3555
3555
  error: errorMessage
3556
3556
  });
3557
- if (error instanceof zapierSdk.ZapierValidationError) {
3557
+ if (zapierSdk.isZapierValidationError(error)) {
3558
3558
  throw error;
3559
3559
  }
3560
3560
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -3641,7 +3641,7 @@ var buildManifestPlugin = zapierSdk.defineMethod({
3641
3641
  app: app.key,
3642
3642
  error: errorMessage
3643
3643
  });
3644
- if (error instanceof zapierSdk.ZapierValidationError) {
3644
+ if (zapierSdk.isZapierValidationError(error)) {
3645
3645
  throw error;
3646
3646
  }
3647
3647
  throw new zapierSdk.ZapierUnknownError(errorMessage, { cause: error });
@@ -4955,7 +4955,7 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
4955
4955
  await interactive(message);
4956
4956
  fulfilled++;
4957
4957
  } catch (err) {
4958
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4958
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4959
4959
  skipped++;
4960
4960
  }
4961
4961
  throw err;
@@ -5074,7 +5074,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
5074
5074
  await interactive(message);
5075
5075
  fulfilled++;
5076
5076
  } catch (err) {
5077
- if (err instanceof zapierSdk.ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5077
+ if (zapierSdk.isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5078
5078
  skipped++;
5079
5079
  }
5080
5080
  throw err;
@@ -5109,7 +5109,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5109
5109
  // package.json with { type: 'json' }
5110
5110
  var package_default = {
5111
5111
  name: "@zapier/zapier-sdk-cli",
5112
- version: "0.66.3"};
5112
+ version: "0.66.4"};
5113
5113
 
5114
5114
  // src/sdk.ts
5115
5115
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -5192,7 +5192,7 @@ function createZapierCliSdk(options = {}) {
5192
5192
 
5193
5193
  // package.json
5194
5194
  var package_default2 = {
5195
- version: "0.66.3"};
5195
+ version: "0.66.4"};
5196
5196
 
5197
5197
  // src/telemetry/builders.ts
5198
5198
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import crypto, { createHash } from 'crypto';
7
7
  import * as path from 'path';
8
8
  import { resolve, join, dirname, basename, relative, extname } from 'path';
9
9
  import * as lockfile from 'proper-lockfile';
10
- import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, buildApplicationLifecycleEvent, AuthMechanism, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
10
+ import { defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, defineMethodOverride, zapierCoreOptions, injectCliLogin, definePlugin, omitExports, zapierSdkPlugin, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isCredentialsObject, ZapierAuthenticationError, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
11
11
  import { z } from 'zod';
12
12
  import chalk3 from 'chalk';
13
13
  import { hostname } from 'os';
@@ -2635,7 +2635,7 @@ async function bundleCode(options) {
2635
2635
  }
2636
2636
  return finalOutput;
2637
2637
  } catch (error) {
2638
- if (error instanceof ZapierBundleError) {
2638
+ if (isZapierBundleError(error)) {
2639
2639
  throw error;
2640
2640
  }
2641
2641
  throw new ZapierBundleError(
@@ -3518,7 +3518,7 @@ var generateAppTypesPlugin = defineMethod({
3518
3518
  app: app.key,
3519
3519
  error: errorMessage
3520
3520
  });
3521
- if (error instanceof ZapierValidationError) {
3521
+ if (isZapierValidationError(error)) {
3522
3522
  throw error;
3523
3523
  }
3524
3524
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -3605,7 +3605,7 @@ var buildManifestPlugin = defineMethod({
3605
3605
  app: app.key,
3606
3606
  error: errorMessage
3607
3607
  });
3608
- if (error instanceof ZapierValidationError) {
3608
+ if (isZapierValidationError(error)) {
3609
3609
  throw error;
3610
3610
  }
3611
3611
  throw new ZapierUnknownError(errorMessage, { cause: error });
@@ -4919,7 +4919,7 @@ var drainTriggerInboxCliPlugin = defineMethod({
4919
4919
  await interactive(message);
4920
4920
  fulfilled++;
4921
4921
  } catch (err) {
4922
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
4922
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
4923
4923
  skipped++;
4924
4924
  }
4925
4925
  throw err;
@@ -5038,7 +5038,7 @@ var watchTriggerInboxCliPlugin = defineMethod({
5038
5038
  await interactive(message);
5039
5039
  fulfilled++;
5040
5040
  } catch (err) {
5041
- if (err instanceof ZapierReleaseTriggerMessageSignal || err instanceof CliSkipLeaseExpireError) {
5041
+ if (isZapierReleaseTriggerMessageSignal(err) || err instanceof CliSkipLeaseExpireError) {
5042
5042
  skipped++;
5043
5043
  }
5044
5044
  throw err;
@@ -5073,7 +5073,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
5073
5073
  // package.json with { type: 'json' }
5074
5074
  var package_default = {
5075
5075
  name: "@zapier/zapier-sdk-cli",
5076
- version: "0.66.3"};
5076
+ version: "0.66.4"};
5077
5077
 
5078
5078
  // src/sdk.ts
5079
5079
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -5156,7 +5156,7 @@ function createZapierCliSdk(options = {}) {
5156
5156
 
5157
5157
  // package.json
5158
5158
  var package_default2 = {
5159
- version: "0.66.3"};
5159
+ version: "0.66.4"};
5160
5160
 
5161
5161
  // src/telemetry/builders.ts
5162
5162
  function createCliBaseEvent(context = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.66.3",
3
+ "version": "0.66.4",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -94,8 +94,8 @@
94
94
  "typescript": "^5.8.3",
95
95
  "wrap-ansi": "^10.0.0",
96
96
  "zod": "4.3.6",
97
- "@zapier/zapier-sdk": "0.86.0",
98
- "@zapier/zapier-sdk-mcp": "0.18.12"
97
+ "@zapier/zapier-sdk": "0.87.0",
98
+ "@zapier/zapier-sdk-mcp": "0.18.13"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@types/express": "^5.0.3",