@zapier/zapier-sdk-cli 0.83.1 → 0.84.0
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 +37 -0
- package/dist/cli.cjs +26 -43
- package/dist/cli.mjs +28 -45
- package/dist/experimental.cjs +8 -11
- package/dist/experimental.d.mts +1 -1
- package/dist/experimental.d.ts +1 -1
- package/dist/experimental.mjs +9 -12
- package/dist/{extensions-DZX0QxXl.d.mts → extensions-DSq2M_7b.d.mts} +8 -9
- package/dist/{extensions-DZX0QxXl.d.ts → extensions-DSq2M_7b.d.ts} +8 -9
- package/dist/index.cjs +9 -12
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +10 -13
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.84.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 2102c00: **An SDK extension must be a plugin descriptor.** A package named in
|
|
8
|
+
`ZAPIER_SDK_EXTENSIONS` (and an entry in the MCP server's `extensions` option)
|
|
9
|
+
must default-export one, or an array of them: the output of `defineMethod`,
|
|
10
|
+
`defineProperty`, `definePlugin`, `defineHook`, or `defineOverride`
|
|
11
|
+
(`defineMethodOverride` still works until it is removed). A module with no
|
|
12
|
+
default export is skipped with a warning that says so. A `(sdk) => provides`
|
|
13
|
+
function export is skipped with a warning. A `declare*` stand-in is refused by
|
|
14
|
+
`addPlugin`.
|
|
15
|
+
|
|
16
|
+
The CLI's `Extension` type and the MCP server's `extensions` option take
|
|
17
|
+
`Plugin`, so `{ pluginType: "banana" }` fails to compile.
|
|
18
|
+
|
|
19
|
+
The extension-skip warning says what the refusal guarantees: the plugin added
|
|
20
|
+
nothing, a `dispose` it registered ran, plugins already loaded stay loaded, and
|
|
21
|
+
cleanup after an `await` inside a `dispose` is not guaranteed.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [2102c00]
|
|
26
|
+
- Updated dependencies [2102c00]
|
|
27
|
+
- Updated dependencies [2102c00]
|
|
28
|
+
- @zapier/zapier-sdk-mcp@0.25.0
|
|
29
|
+
- @zapier/kitcore@0.21.0
|
|
30
|
+
- @zapier/zapier-sdk@0.112.0
|
|
31
|
+
|
|
32
|
+
## 0.83.2
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [0535d52]
|
|
37
|
+
- @zapier/zapier-sdk@0.111.2
|
|
38
|
+
- @zapier/zapier-sdk-mcp@0.24.5
|
|
39
|
+
|
|
3
40
|
## 0.83.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -602,7 +602,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
602
602
|
|
|
603
603
|
// package.json
|
|
604
604
|
var package_default = {
|
|
605
|
-
version: "0.
|
|
605
|
+
version: "0.84.0"};
|
|
606
606
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
607
607
|
var LOCKFILES = [
|
|
608
608
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -1455,12 +1455,18 @@ function nestPositionalParams(projection, flatParams) {
|
|
|
1455
1455
|
function methodNameToCliCommand(methodName) {
|
|
1456
1456
|
return toKebabCase(methodName);
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1459
|
-
|
|
1458
|
+
function readCliRegistry(sdk) {
|
|
1459
|
+
try {
|
|
1460
|
+
return zapierSdk.getRegistry(sdk, "cli");
|
|
1461
|
+
} catch (err) {
|
|
1462
|
+
if (zapierSdk.getCoreErrorCode(err) !== zapierSdk.CoreErrorCode.NoSdkContext) throw err;
|
|
1460
1463
|
console.error("SDK registry not available");
|
|
1461
|
-
return;
|
|
1464
|
+
return void 0;
|
|
1462
1465
|
}
|
|
1463
|
-
|
|
1466
|
+
}
|
|
1467
|
+
function generateCliCommands(program2, sdk) {
|
|
1468
|
+
const registry = readCliRegistry(sdk);
|
|
1469
|
+
if (!registry) return;
|
|
1464
1470
|
registry.functions.forEach((fnInfo) => {
|
|
1465
1471
|
if (!fnInfo.inputSchema) {
|
|
1466
1472
|
console.warn(`Schema not found for ${fnInfo.name}`);
|
|
@@ -8423,12 +8429,11 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
8423
8429
|
itemType: "void",
|
|
8424
8430
|
returnType: "void",
|
|
8425
8431
|
categories: ["trigger"],
|
|
8426
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
8427
|
-
//
|
|
8432
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
8433
|
+
// schema's own description.
|
|
8428
8434
|
description: experimental.DrainTriggerInboxSchema.description,
|
|
8429
|
-
// Visible in cli+mcp+sdk views
|
|
8430
|
-
//
|
|
8431
|
-
// that gate so the command shows up on the CLI surface).
|
|
8435
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
8436
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
8432
8437
|
inputSchema: experimental.DrainTriggerInboxSchema.extend({
|
|
8433
8438
|
exec: ExecCliProperty,
|
|
8434
8439
|
execShell: ExecShellCliProperty,
|
|
@@ -8558,8 +8563,8 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
8558
8563
|
returnType: "void",
|
|
8559
8564
|
categories: ["trigger"],
|
|
8560
8565
|
description: cliWatchDescription,
|
|
8561
|
-
// Visible in cli+mcp+sdk views
|
|
8562
|
-
//
|
|
8566
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
8567
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
8563
8568
|
inputSchema: experimental.WatchTriggerInboxSchema.extend({
|
|
8564
8569
|
exec: ExecCliProperty2,
|
|
8565
8570
|
execShell: ExecShellCliProperty2,
|
|
@@ -8732,7 +8737,7 @@ function buildBoxLines(message) {
|
|
|
8732
8737
|
// package.json with { type: 'json' }
|
|
8733
8738
|
var package_default2 = {
|
|
8734
8739
|
name: "@zapier/zapier-sdk-cli",
|
|
8735
|
-
version: "0.
|
|
8740
|
+
version: "0.84.0"};
|
|
8736
8741
|
|
|
8737
8742
|
// src/sdk.ts
|
|
8738
8743
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -8806,9 +8811,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
8806
8811
|
try {
|
|
8807
8812
|
zapierSdk.addPlugin(sdk, ext);
|
|
8808
8813
|
} catch (err) {
|
|
8809
|
-
console.warn(
|
|
8810
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
8811
|
-
);
|
|
8814
|
+
console.warn(zapierSdk.formatExtensionPluginFailure(err));
|
|
8812
8815
|
}
|
|
8813
8816
|
}
|
|
8814
8817
|
return sdk;
|
|
@@ -8867,9 +8870,7 @@ function createZapierCliSdk2(options = {}) {
|
|
|
8867
8870
|
try {
|
|
8868
8871
|
experimental.addPlugin(sdk, ext);
|
|
8869
8872
|
} catch (err) {
|
|
8870
|
-
console.warn(
|
|
8871
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
8872
|
-
);
|
|
8873
|
+
console.warn(experimental.formatExtensionPluginFailure(err));
|
|
8873
8874
|
}
|
|
8874
8875
|
}
|
|
8875
8876
|
return sdk;
|
|
@@ -8877,9 +8878,6 @@ function createZapierCliSdk2(options = {}) {
|
|
|
8877
8878
|
|
|
8878
8879
|
// src/utils/extensions.ts
|
|
8879
8880
|
var ENV_VAR = "ZAPIER_SDK_EXTENSIONS";
|
|
8880
|
-
function isModelPlugin(value) {
|
|
8881
|
-
return typeof value === "object" && value !== null && "pluginType" in value && typeof value.pluginType === "string";
|
|
8882
|
-
}
|
|
8883
8881
|
async function resolveExtensions() {
|
|
8884
8882
|
const seen = /* @__PURE__ */ new Set();
|
|
8885
8883
|
const specs = readEnvSpecs().filter((spec) => {
|
|
@@ -8891,15 +8889,15 @@ async function resolveExtensions() {
|
|
|
8891
8889
|
for (const spec of specs) {
|
|
8892
8890
|
try {
|
|
8893
8891
|
const mod = await import(spec);
|
|
8894
|
-
|
|
8895
|
-
const got = normalizeExtension(exported);
|
|
8896
|
-
if (got) {
|
|
8897
|
-
plugins.push(...got);
|
|
8898
|
-
} else {
|
|
8892
|
+
if (!("default" in mod)) {
|
|
8899
8893
|
console.warn(
|
|
8900
|
-
`Extension '${spec}'
|
|
8894
|
+
`Extension '${spec}' has no default export; skipping. Export the plugin, or an array of plugins, as the default export.`
|
|
8901
8895
|
);
|
|
8896
|
+
continue;
|
|
8902
8897
|
}
|
|
8898
|
+
const exported = mod.default;
|
|
8899
|
+
const list = Array.isArray(exported) ? exported : [exported];
|
|
8900
|
+
plugins.push(...list);
|
|
8903
8901
|
} catch (err) {
|
|
8904
8902
|
console.warn(
|
|
8905
8903
|
`Extension '${spec}' failed to load: ${err.message}`
|
|
@@ -8908,21 +8906,6 @@ async function resolveExtensions() {
|
|
|
8908
8906
|
}
|
|
8909
8907
|
return plugins;
|
|
8910
8908
|
}
|
|
8911
|
-
function normalizeExtension(exported) {
|
|
8912
|
-
if (typeof exported === "function") {
|
|
8913
|
-
return [exported];
|
|
8914
|
-
}
|
|
8915
|
-
if (isModelPlugin(exported)) {
|
|
8916
|
-
return [exported];
|
|
8917
|
-
}
|
|
8918
|
-
if (Array.isArray(exported)) {
|
|
8919
|
-
if (exported.every((e) => typeof e === "function" || isModelPlugin(e))) {
|
|
8920
|
-
return exported;
|
|
8921
|
-
}
|
|
8922
|
-
return null;
|
|
8923
|
-
}
|
|
8924
|
-
return null;
|
|
8925
|
-
}
|
|
8926
8909
|
function readEnvSpecs() {
|
|
8927
8910
|
const raw = process.env[ENV_VAR];
|
|
8928
8911
|
if (!raw) return [];
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command, CommanderError, Option, InvalidArgumentError } from 'commander';
|
|
3
|
-
import { getConnectionPlugin, definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, BaseSdkOptionsSchema, disposeSdk, 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, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT, runWithCallerContext, isCoreCancelledSignal, getNegatable, isPositional, isZapierError, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent as getAgent$1, getTtyContext, getCiPlatform, isCi, isZapierConflictError, getReleaseId, getCurrentTimestamp, generateEventId, isZapierApprovalError, ZapierAuthenticationError } from '@zapier/zapier-sdk';
|
|
3
|
+
import { getConnectionPlugin, definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, BaseSdkOptionsSchema, disposeSdk, 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, formatExtensionPluginFailure as formatExtensionPluginFailure$1, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, getRegistry, getCoreErrorCode, CoreErrorCode, buildApplicationLifecycleEvent, AuthMechanism, DEPRECATION_NOTICE_EVENT, runWithCallerContext, isCoreCancelledSignal, getNegatable, isPositional, isZapierError, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent as getAgent$1, getTtyContext, getCiPlatform, isCi, isZapierConflictError, getReleaseId, getCurrentTimestamp, generateEventId, isZapierApprovalError, ZapierAuthenticationError } from '@zapier/zapier-sdk';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import chalk9 from 'chalk';
|
|
@@ -34,7 +34,7 @@ import packageJsonLib, { VersionNotFoundError } from 'package-json';
|
|
|
34
34
|
import semver from 'semver';
|
|
35
35
|
import crossSpawn from 'cross-spawn';
|
|
36
36
|
import Table from 'cli-table3';
|
|
37
|
-
import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin } from '@zapier/zapier-sdk/experimental';
|
|
37
|
+
import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk, CORE_OPTIONS_ID, SDK_OPTIONS_ID, addPlugin, formatExtensionPluginFailure } from '@zapier/zapier-sdk/experimental';
|
|
38
38
|
import * as readline from 'readline';
|
|
39
39
|
|
|
40
40
|
var __defProp = Object.defineProperty;
|
|
@@ -558,7 +558,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
558
558
|
|
|
559
559
|
// package.json
|
|
560
560
|
var package_default = {
|
|
561
|
-
version: "0.
|
|
561
|
+
version: "0.84.0"};
|
|
562
562
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
563
563
|
var LOCKFILES = [
|
|
564
564
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -1411,12 +1411,18 @@ function nestPositionalParams(projection, flatParams) {
|
|
|
1411
1411
|
function methodNameToCliCommand(methodName) {
|
|
1412
1412
|
return toKebabCase(methodName);
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1415
|
-
|
|
1414
|
+
function readCliRegistry(sdk) {
|
|
1415
|
+
try {
|
|
1416
|
+
return getRegistry(sdk, "cli");
|
|
1417
|
+
} catch (err) {
|
|
1418
|
+
if (getCoreErrorCode(err) !== CoreErrorCode.NoSdkContext) throw err;
|
|
1416
1419
|
console.error("SDK registry not available");
|
|
1417
|
-
return;
|
|
1420
|
+
return void 0;
|
|
1418
1421
|
}
|
|
1419
|
-
|
|
1422
|
+
}
|
|
1423
|
+
function generateCliCommands(program2, sdk) {
|
|
1424
|
+
const registry = readCliRegistry(sdk);
|
|
1425
|
+
if (!registry) return;
|
|
1420
1426
|
registry.functions.forEach((fnInfo) => {
|
|
1421
1427
|
if (!fnInfo.inputSchema) {
|
|
1422
1428
|
console.warn(`Schema not found for ${fnInfo.name}`);
|
|
@@ -8379,12 +8385,11 @@ var drainTriggerInboxCliPlugin = defineMethod({
|
|
|
8379
8385
|
itemType: "void",
|
|
8380
8386
|
returnType: "void",
|
|
8381
8387
|
categories: ["trigger"],
|
|
8382
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
8383
|
-
//
|
|
8388
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
8389
|
+
// schema's own description.
|
|
8384
8390
|
description: DrainTriggerInboxSchema.description,
|
|
8385
|
-
// Visible in cli+mcp+sdk views
|
|
8386
|
-
//
|
|
8387
|
-
// that gate so the command shows up on the CLI surface).
|
|
8391
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
8392
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
8388
8393
|
inputSchema: DrainTriggerInboxSchema.extend({
|
|
8389
8394
|
exec: ExecCliProperty,
|
|
8390
8395
|
execShell: ExecShellCliProperty,
|
|
@@ -8514,8 +8519,8 @@ var watchTriggerInboxCliPlugin = defineMethod({
|
|
|
8514
8519
|
returnType: "void",
|
|
8515
8520
|
categories: ["trigger"],
|
|
8516
8521
|
description: cliWatchDescription,
|
|
8517
|
-
// Visible in cli+mcp+sdk views
|
|
8518
|
-
//
|
|
8522
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
8523
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
8519
8524
|
inputSchema: WatchTriggerInboxSchema.extend({
|
|
8520
8525
|
exec: ExecCliProperty2,
|
|
8521
8526
|
execShell: ExecShellCliProperty2,
|
|
@@ -8688,7 +8693,7 @@ function buildBoxLines(message) {
|
|
|
8688
8693
|
// package.json with { type: 'json' }
|
|
8689
8694
|
var package_default2 = {
|
|
8690
8695
|
name: "@zapier/zapier-sdk-cli",
|
|
8691
|
-
version: "0.
|
|
8696
|
+
version: "0.84.0"};
|
|
8692
8697
|
|
|
8693
8698
|
// src/sdk.ts
|
|
8694
8699
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -8762,9 +8767,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
8762
8767
|
try {
|
|
8763
8768
|
addPlugin$1(sdk, ext);
|
|
8764
8769
|
} catch (err) {
|
|
8765
|
-
console.warn(
|
|
8766
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
8767
|
-
);
|
|
8770
|
+
console.warn(formatExtensionPluginFailure$1(err));
|
|
8768
8771
|
}
|
|
8769
8772
|
}
|
|
8770
8773
|
return sdk;
|
|
@@ -8823,9 +8826,7 @@ function createZapierCliSdk2(options = {}) {
|
|
|
8823
8826
|
try {
|
|
8824
8827
|
addPlugin(sdk, ext);
|
|
8825
8828
|
} catch (err) {
|
|
8826
|
-
console.warn(
|
|
8827
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
8828
|
-
);
|
|
8829
|
+
console.warn(formatExtensionPluginFailure(err));
|
|
8829
8830
|
}
|
|
8830
8831
|
}
|
|
8831
8832
|
return sdk;
|
|
@@ -8833,9 +8834,6 @@ function createZapierCliSdk2(options = {}) {
|
|
|
8833
8834
|
|
|
8834
8835
|
// src/utils/extensions.ts
|
|
8835
8836
|
var ENV_VAR = "ZAPIER_SDK_EXTENSIONS";
|
|
8836
|
-
function isModelPlugin(value) {
|
|
8837
|
-
return typeof value === "object" && value !== null && "pluginType" in value && typeof value.pluginType === "string";
|
|
8838
|
-
}
|
|
8839
8837
|
async function resolveExtensions() {
|
|
8840
8838
|
const seen = /* @__PURE__ */ new Set();
|
|
8841
8839
|
const specs = readEnvSpecs().filter((spec) => {
|
|
@@ -8847,15 +8845,15 @@ async function resolveExtensions() {
|
|
|
8847
8845
|
for (const spec of specs) {
|
|
8848
8846
|
try {
|
|
8849
8847
|
const mod = await import(spec);
|
|
8850
|
-
|
|
8851
|
-
const got = normalizeExtension(exported);
|
|
8852
|
-
if (got) {
|
|
8853
|
-
plugins.push(...got);
|
|
8854
|
-
} else {
|
|
8848
|
+
if (!("default" in mod)) {
|
|
8855
8849
|
console.warn(
|
|
8856
|
-
`Extension '${spec}'
|
|
8850
|
+
`Extension '${spec}' has no default export; skipping. Export the plugin, or an array of plugins, as the default export.`
|
|
8857
8851
|
);
|
|
8852
|
+
continue;
|
|
8858
8853
|
}
|
|
8854
|
+
const exported = mod.default;
|
|
8855
|
+
const list = Array.isArray(exported) ? exported : [exported];
|
|
8856
|
+
plugins.push(...list);
|
|
8859
8857
|
} catch (err) {
|
|
8860
8858
|
console.warn(
|
|
8861
8859
|
`Extension '${spec}' failed to load: ${err.message}`
|
|
@@ -8864,21 +8862,6 @@ async function resolveExtensions() {
|
|
|
8864
8862
|
}
|
|
8865
8863
|
return plugins;
|
|
8866
8864
|
}
|
|
8867
|
-
function normalizeExtension(exported) {
|
|
8868
|
-
if (typeof exported === "function") {
|
|
8869
|
-
return [exported];
|
|
8870
|
-
}
|
|
8871
|
-
if (isModelPlugin(exported)) {
|
|
8872
|
-
return [exported];
|
|
8873
|
-
}
|
|
8874
|
-
if (Array.isArray(exported)) {
|
|
8875
|
-
if (exported.every((e) => typeof e === "function" || isModelPlugin(e))) {
|
|
8876
|
-
return exported;
|
|
8877
|
-
}
|
|
8878
|
-
return null;
|
|
8879
|
-
}
|
|
8880
|
-
return null;
|
|
8881
|
-
}
|
|
8882
8865
|
function readEnvSpecs() {
|
|
8883
8866
|
const raw = process.env[ENV_VAR];
|
|
8884
8867
|
if (!raw) return [];
|
package/dist/experimental.cjs
CHANGED
|
@@ -6942,12 +6942,11 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
6942
6942
|
itemType: "void",
|
|
6943
6943
|
returnType: "void",
|
|
6944
6944
|
categories: ["trigger"],
|
|
6945
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6946
|
-
//
|
|
6945
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6946
|
+
// schema's own description.
|
|
6947
6947
|
description: experimental.DrainTriggerInboxSchema.description,
|
|
6948
|
-
// Visible in cli+mcp+sdk views
|
|
6949
|
-
//
|
|
6950
|
-
// that gate so the command shows up on the CLI surface).
|
|
6948
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
6949
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
6951
6950
|
inputSchema: experimental.DrainTriggerInboxSchema.extend({
|
|
6952
6951
|
exec: ExecCliProperty,
|
|
6953
6952
|
execShell: ExecShellCliProperty,
|
|
@@ -7077,8 +7076,8 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
7077
7076
|
returnType: "void",
|
|
7078
7077
|
categories: ["trigger"],
|
|
7079
7078
|
description: cliWatchDescription,
|
|
7080
|
-
// Visible in cli+mcp+sdk views
|
|
7081
|
-
//
|
|
7079
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
7080
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
7082
7081
|
inputSchema: experimental.WatchTriggerInboxSchema.extend({
|
|
7083
7082
|
exec: ExecCliProperty2,
|
|
7084
7083
|
execShell: ExecShellCliProperty2,
|
|
@@ -7225,7 +7224,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7225
7224
|
// package.json with { type: 'json' }
|
|
7226
7225
|
var package_default = {
|
|
7227
7226
|
name: "@zapier/zapier-sdk-cli",
|
|
7228
|
-
version: "0.
|
|
7227
|
+
version: "0.84.0"};
|
|
7229
7228
|
|
|
7230
7229
|
// src/sdk.ts
|
|
7231
7230
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7330,9 +7329,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7330
7329
|
try {
|
|
7331
7330
|
experimental.addPlugin(sdk, ext);
|
|
7332
7331
|
} catch (err) {
|
|
7333
|
-
console.warn(
|
|
7334
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
7335
|
-
);
|
|
7332
|
+
console.warn(experimental.formatExtensionPluginFailure(err));
|
|
7336
7333
|
}
|
|
7337
7334
|
}
|
|
7338
7335
|
return sdk;
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DSq2M_7b.mjs';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import '@zapier/kitcore';
|
|
5
5
|
import 'zod';
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DSq2M_7b.js';
|
|
3
3
|
import '@zapier/zapier-sdk';
|
|
4
4
|
import '@zapier/kitcore';
|
|
5
5
|
import 'zod';
|
package/dist/experimental.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { resolve, join, dirname, basename, relative, extname } from 'path';
|
|
|
9
9
|
import * as lockfile from 'proper-lockfile';
|
|
10
10
|
import { definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, createSdk, SDK_OPTIONS_ID, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, isCoreCancelledSignal, ZapierAuthenticationError, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
|
|
11
11
|
import { z } from 'zod';
|
|
12
|
-
import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk as createSdk$1, CORE_OPTIONS_ID, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin } from '@zapier/zapier-sdk/experimental';
|
|
12
|
+
import { triggerInboxResolver, DrainTriggerInboxSchema, WatchTriggerInboxSchema, declareMethod as declareMethod$1, defineMethod as defineMethod$1, CreateWorkflowResponseSchema, getAgent, injectCliLogin as injectCliLogin$1, INTERNAL_CREATE_WORKFLOW_FIELDS, CreateWorkflowOptionsSchema, definePlugin as definePlugin$1, omitExports as omitExports$1, zapierExperimentalSdkPlugin, createSdk as createSdk$1, CORE_OPTIONS_ID, SDK_OPTIONS_ID as SDK_OPTIONS_ID$1, addPlugin, formatExtensionPluginFailure } from '@zapier/zapier-sdk/experimental';
|
|
13
13
|
import { hostname } from 'os';
|
|
14
14
|
import inquirer4 from 'inquirer';
|
|
15
15
|
import chalk5 from 'chalk';
|
|
@@ -6901,12 +6901,11 @@ var drainTriggerInboxCliPlugin = defineMethod({
|
|
|
6901
6901
|
itemType: "void",
|
|
6902
6902
|
returnType: "void",
|
|
6903
6903
|
categories: ["trigger"],
|
|
6904
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6905
|
-
//
|
|
6904
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6905
|
+
// schema's own description.
|
|
6906
6906
|
description: DrainTriggerInboxSchema.description,
|
|
6907
|
-
// Visible in cli+mcp+sdk views
|
|
6908
|
-
//
|
|
6909
|
-
// that gate so the command shows up on the CLI surface).
|
|
6907
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
6908
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
6910
6909
|
inputSchema: DrainTriggerInboxSchema.extend({
|
|
6911
6910
|
exec: ExecCliProperty,
|
|
6912
6911
|
execShell: ExecShellCliProperty,
|
|
@@ -7036,8 +7035,8 @@ var watchTriggerInboxCliPlugin = defineMethod({
|
|
|
7036
7035
|
returnType: "void",
|
|
7037
7036
|
categories: ["trigger"],
|
|
7038
7037
|
description: cliWatchDescription,
|
|
7039
|
-
// Visible in cli+mcp+sdk views
|
|
7040
|
-
//
|
|
7038
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
7039
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
7041
7040
|
inputSchema: WatchTriggerInboxSchema.extend({
|
|
7042
7041
|
exec: ExecCliProperty2,
|
|
7043
7042
|
execShell: ExecShellCliProperty2,
|
|
@@ -7184,7 +7183,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7184
7183
|
// package.json with { type: 'json' }
|
|
7185
7184
|
var package_default = {
|
|
7186
7185
|
name: "@zapier/zapier-sdk-cli",
|
|
7187
|
-
version: "0.
|
|
7186
|
+
version: "0.84.0"};
|
|
7188
7187
|
|
|
7189
7188
|
// src/sdk.ts
|
|
7190
7189
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7289,9 +7288,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7289
7288
|
try {
|
|
7290
7289
|
addPlugin(sdk, ext);
|
|
7291
7290
|
} catch (err) {
|
|
7292
|
-
console.warn(
|
|
7293
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
7294
|
-
);
|
|
7291
|
+
console.warn(formatExtensionPluginFailure(err));
|
|
7295
7292
|
}
|
|
7296
7293
|
}
|
|
7297
7294
|
return sdk;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zapier_zapier_sdk from '@zapier/zapier-sdk';
|
|
2
|
-
import { AppItem, Manifest, PluginSurface, ZapierSdk, Plugin
|
|
2
|
+
import { AppItem, Manifest, PluginSurface, ZapierSdk, Plugin } from '@zapier/zapier-sdk';
|
|
3
3
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1344,13 +1344,12 @@ type SetupPluginProvides = PluginSurface<typeof setupPlugin>;
|
|
|
1344
1344
|
|
|
1345
1345
|
type ZapierSdkCli = ZapierSdk & BuildManifestPluginProvides & FeedbackPluginProvides & GenerateAppTypesPluginProvides & SignupPluginProvides & SetupPluginProvides;
|
|
1346
1346
|
|
|
1347
|
-
/**
|
|
1348
|
-
*
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
type Extension = Plugin<unknown, PluginProvides> | ModelPlugin;
|
|
1347
|
+
/**
|
|
1348
|
+
* An extension is a plugin descriptor, which is what `addPlugin` accepts: the
|
|
1349
|
+
* output of a `define*` factory, the deprecated `defineMethodOverride` included.
|
|
1350
|
+
* Not a `declare*` stand-in, and not a resolver or formatter attachment, which
|
|
1351
|
+
* ride on a `defineMethod` config. `addPlugin` names both by name.
|
|
1352
|
+
*/
|
|
1353
|
+
type Extension = Plugin;
|
|
1355
1354
|
|
|
1356
1355
|
export type { Extension as E, ZapierSdkCli as Z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _zapier_zapier_sdk from '@zapier/zapier-sdk';
|
|
2
|
-
import { AppItem, Manifest, PluginSurface, ZapierSdk, Plugin
|
|
2
|
+
import { AppItem, Manifest, PluginSurface, ZapierSdk, Plugin } from '@zapier/zapier-sdk';
|
|
3
3
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -1344,13 +1344,12 @@ type SetupPluginProvides = PluginSurface<typeof setupPlugin>;
|
|
|
1344
1344
|
|
|
1345
1345
|
type ZapierSdkCli = ZapierSdk & BuildManifestPluginProvides & FeedbackPluginProvides & GenerateAppTypesPluginProvides & SignupPluginProvides & SetupPluginProvides;
|
|
1346
1346
|
|
|
1347
|
-
/**
|
|
1348
|
-
*
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
type Extension = Plugin<unknown, PluginProvides> | ModelPlugin;
|
|
1347
|
+
/**
|
|
1348
|
+
* An extension is a plugin descriptor, which is what `addPlugin` accepts: the
|
|
1349
|
+
* output of a `define*` factory, the deprecated `defineMethodOverride` included.
|
|
1350
|
+
* Not a `declare*` stand-in, and not a resolver or formatter attachment, which
|
|
1351
|
+
* ride on a `defineMethod` config. `addPlugin` names both by name.
|
|
1352
|
+
*/
|
|
1353
|
+
type Extension = Plugin;
|
|
1355
1354
|
|
|
1356
1355
|
export type { Extension as E, ZapierSdkCli as Z };
|
package/dist/index.cjs
CHANGED
|
@@ -6943,12 +6943,11 @@ var drainTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
6943
6943
|
itemType: "void",
|
|
6944
6944
|
returnType: "void",
|
|
6945
6945
|
categories: ["trigger"],
|
|
6946
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6947
|
-
//
|
|
6946
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6947
|
+
// schema's own description.
|
|
6948
6948
|
description: experimental.DrainTriggerInboxSchema.description,
|
|
6949
|
-
// Visible in cli+mcp+sdk views
|
|
6950
|
-
//
|
|
6951
|
-
// that gate so the command shows up on the CLI surface).
|
|
6949
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
6950
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
6952
6951
|
inputSchema: experimental.DrainTriggerInboxSchema.extend({
|
|
6953
6952
|
exec: ExecCliProperty,
|
|
6954
6953
|
execShell: ExecShellCliProperty,
|
|
@@ -7078,8 +7077,8 @@ var watchTriggerInboxCliPlugin = zapierSdk.defineMethod({
|
|
|
7078
7077
|
returnType: "void",
|
|
7079
7078
|
categories: ["trigger"],
|
|
7080
7079
|
description: cliWatchDescription,
|
|
7081
|
-
// Visible in cli+mcp+sdk views
|
|
7082
|
-
//
|
|
7080
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
7081
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
7083
7082
|
inputSchema: experimental.WatchTriggerInboxSchema.extend({
|
|
7084
7083
|
exec: ExecCliProperty2,
|
|
7085
7084
|
execShell: ExecShellCliProperty2,
|
|
@@ -7226,7 +7225,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7226
7225
|
// package.json with { type: 'json' }
|
|
7227
7226
|
var package_default = {
|
|
7228
7227
|
name: "@zapier/zapier-sdk-cli",
|
|
7229
|
-
version: "0.
|
|
7228
|
+
version: "0.84.0"};
|
|
7230
7229
|
|
|
7231
7230
|
// src/sdk.ts
|
|
7232
7231
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7300,9 +7299,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7300
7299
|
try {
|
|
7301
7300
|
zapierSdk.addPlugin(sdk, ext);
|
|
7302
7301
|
} catch (err) {
|
|
7303
|
-
console.warn(
|
|
7304
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
7305
|
-
);
|
|
7302
|
+
console.warn(zapierSdk.formatExtensionPluginFailure(err));
|
|
7306
7303
|
}
|
|
7307
7304
|
}
|
|
7308
7305
|
return sdk;
|
|
@@ -7310,7 +7307,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7310
7307
|
|
|
7311
7308
|
// package.json
|
|
7312
7309
|
var package_default2 = {
|
|
7313
|
-
version: "0.
|
|
7310
|
+
version: "0.84.0"};
|
|
7314
7311
|
|
|
7315
7312
|
// src/telemetry/builders.ts
|
|
7316
7313
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions, BaseEvent } from '@zapier/zapier-sdk';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DSq2M_7b.mjs';
|
|
3
3
|
import '@zapier/kitcore';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'zod/v4/core';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZapierSdkOptions, BaseEvent } from '@zapier/zapier-sdk';
|
|
2
|
-
import { E as Extension, Z as ZapierSdkCli } from './extensions-
|
|
2
|
+
import { E as Extension, Z as ZapierSdkCli } from './extensions-DSq2M_7b.js';
|
|
3
3
|
import '@zapier/kitcore';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'zod/v4/core';
|
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 { definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, getConnectionPlugin, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, createSdk, SDK_OPTIONS_ID, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, isCoreCancelledSignal, ZapierAuthenticationError, CORE_OPTIONS_ID, addPlugin, getOsInfo, getPlatformVersions, getAgent as getAgent$1, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
|
|
10
|
+
import { definePlugin, apiPlugin, defineMethod, apiPluginRef, resolveCredentialsPluginRef, eventEmissionPluginRef, sdkOptionsPluginRef, declareOptionalProperty, OutputPropertySchema, ZapierBundleError, isZapierBundleError, DEFAULT_CONFIG_PATH, declareMethod, ZapierValidationError, isZapierValidationError, ZapierUnknownError, manifestPluginRef, defineResolver, isPermanentHttpError, isZapierAuthenticationError, ZapierApiError, defineOverride, fetchPlugin, zapierCoreOptions, injectCliLogin, omitExports, zapierSdkPlugin, getConnectionPlugin, invalidateCachedToken, batch, toSnakeCase, ZapierError, isZapierReleaseTriggerMessageSignal, createSdk, SDK_OPTIONS_ID, resolvePlugin, isCredentialsObject, getRegistryPlugin, createController, ZapierAbortDrainSignal, ZapierReleaseTriggerMessageSignal, buildApplicationLifecycleEvent, AuthMechanism, isCoreCancelledSignal, ZapierAuthenticationError, CORE_OPTIONS_ID, addPlugin, formatExtensionPluginFailure, getOsInfo, getPlatformVersions, getAgent as getAgent$1, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import chalk5 from 'chalk';
|
|
13
13
|
import { hostname } from 'os';
|
|
@@ -6902,12 +6902,11 @@ var drainTriggerInboxCliPlugin = defineMethod({
|
|
|
6902
6902
|
itemType: "void",
|
|
6903
6903
|
returnType: "void",
|
|
6904
6904
|
categories: ["trigger"],
|
|
6905
|
-
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6906
|
-
//
|
|
6905
|
+
// Mirror the SDK drain's rendered CLI description, which is the drain
|
|
6906
|
+
// schema's own description.
|
|
6907
6907
|
description: DrainTriggerInboxSchema.description,
|
|
6908
|
-
// Visible in cli+mcp+sdk views
|
|
6909
|
-
//
|
|
6910
|
-
// that gate so the command shows up on the CLI surface).
|
|
6908
|
+
// Visible in cli+mcp+sdk views: the SDK drain is `packages: ["sdk"]`, and the
|
|
6909
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
6911
6910
|
inputSchema: DrainTriggerInboxSchema.extend({
|
|
6912
6911
|
exec: ExecCliProperty,
|
|
6913
6912
|
execShell: ExecShellCliProperty,
|
|
@@ -7037,8 +7036,8 @@ var watchTriggerInboxCliPlugin = defineMethod({
|
|
|
7037
7036
|
returnType: "void",
|
|
7038
7037
|
categories: ["trigger"],
|
|
7039
7038
|
description: cliWatchDescription,
|
|
7040
|
-
// Visible in cli+mcp+sdk views
|
|
7041
|
-
//
|
|
7039
|
+
// Visible in cli+mcp+sdk views: the SDK watch is `packages: ["sdk"]`, and the
|
|
7040
|
+
// CLI replacement drops that gate so the command shows up on the CLI surface.
|
|
7042
7041
|
inputSchema: WatchTriggerInboxSchema.extend({
|
|
7043
7042
|
exec: ExecCliProperty2,
|
|
7044
7043
|
execShell: ExecShellCliProperty2,
|
|
@@ -7185,7 +7184,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7185
7184
|
// package.json with { type: 'json' }
|
|
7186
7185
|
var package_default = {
|
|
7187
7186
|
name: "@zapier/zapier-sdk-cli",
|
|
7188
|
-
version: "0.
|
|
7187
|
+
version: "0.84.0"};
|
|
7189
7188
|
|
|
7190
7189
|
// src/sdk.ts
|
|
7191
7190
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7259,9 +7258,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7259
7258
|
try {
|
|
7260
7259
|
addPlugin(sdk, ext);
|
|
7261
7260
|
} catch (err) {
|
|
7262
|
-
console.warn(
|
|
7263
|
-
`Extension plugin failed to construct: ${err.message}; skipping.`
|
|
7264
|
-
);
|
|
7261
|
+
console.warn(formatExtensionPluginFailure(err));
|
|
7265
7262
|
}
|
|
7266
7263
|
}
|
|
7267
7264
|
return sdk;
|
|
@@ -7269,7 +7266,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7269
7266
|
|
|
7270
7267
|
// package.json
|
|
7271
7268
|
var package_default2 = {
|
|
7272
|
-
version: "0.
|
|
7269
|
+
version: "0.84.0"};
|
|
7273
7270
|
|
|
7274
7271
|
// src/telemetry/builders.ts
|
|
7275
7272
|
function createCliBaseEvent(context = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zapier/zapier-sdk-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.0",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"typescript": "^5.8.3",
|
|
96
96
|
"wrap-ansi": "^10.0.0",
|
|
97
97
|
"zod": "4.3.6",
|
|
98
|
-
"@zapier/zapier-sdk": "0.
|
|
99
|
-
"@zapier/
|
|
100
|
-
"@zapier/
|
|
98
|
+
"@zapier/zapier-sdk": "0.112.0",
|
|
99
|
+
"@zapier/kitcore": "0.21.0",
|
|
100
|
+
"@zapier/zapier-sdk-mcp": "0.25.0"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@types/cross-spawn": "^6.0.6",
|