@zapier/zapier-sdk-cli 0.56.2 → 0.57.1
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 +21 -0
- package/dist/cli.cjs +9 -3
- package/dist/cli.mjs +10 -4
- package/dist/experimental.cjs +1 -1
- package/dist/experimental.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/package.json +1 -1
- package/dist/src/utils/cli-generator.js +5 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.57.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f56bfdb: Surface trigger claim failure reason and workflow disable reason on the experimental `getWorkflow` / `listWorkflows` responses (and therefore the `get-workflow` / `list-workflows` CLI commands). Each `triggers[]` entry gains `error` (the latest claim's failure reason, present when `status` is `failed`), and the workflow gains a top-level `disabled_reason` (`trigger_claim_failed` when system-disabled, otherwise null). The two signals stay independent so an enabled workflow with a failed trigger is representable. Both fields are optional until the CSW API ships them server-side (COSUB-630).
|
|
8
|
+
- Updated dependencies [f56bfdb]
|
|
9
|
+
- @zapier/zapier-sdk@0.74.1
|
|
10
|
+
- @zapier/zapier-sdk-mcp@0.14.1
|
|
11
|
+
|
|
12
|
+
## 0.57.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 571f90d: Add zapier-sdk-package-operation header to identify the caller operation
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [571f90d]
|
|
21
|
+
- @zapier/zapier-sdk-mcp@0.14.0
|
|
22
|
+
- @zapier/zapier-sdk@0.74.0
|
|
23
|
+
|
|
3
24
|
## 0.56.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1576,7 +1576,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1576
1576
|
|
|
1577
1577
|
// package.json
|
|
1578
1578
|
var package_default = {
|
|
1579
|
-
version: "0.
|
|
1579
|
+
version: "0.57.1"};
|
|
1580
1580
|
|
|
1581
1581
|
// src/telemetry/builders.ts
|
|
1582
1582
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2588,10 +2588,16 @@ ${confirmMessageAfter}`));
|
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
|
+
const handlerWithCallerContext = async (...args) => {
|
|
2592
|
+
return zapierSdk.runWithCallerContext(
|
|
2593
|
+
{ packageOperation: cliCommandName },
|
|
2594
|
+
() => handler(...args)
|
|
2595
|
+
);
|
|
2596
|
+
};
|
|
2591
2597
|
return {
|
|
2592
2598
|
description,
|
|
2593
2599
|
parameters,
|
|
2594
|
-
handler,
|
|
2600
|
+
handler: handlerWithCallerContext,
|
|
2595
2601
|
hidden: !!functionInfo.deprecation,
|
|
2596
2602
|
aliases: functionInfo.aliases,
|
|
2597
2603
|
supportsJsonOutput: functionInfo.supportsJsonOutput
|
|
@@ -7255,7 +7261,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
7255
7261
|
// package.json with { type: 'json' }
|
|
7256
7262
|
var package_default2 = {
|
|
7257
7263
|
name: "@zapier/zapier-sdk-cli",
|
|
7258
|
-
version: "0.
|
|
7264
|
+
version: "0.57.1"};
|
|
7259
7265
|
|
|
7260
7266
|
// src/sdk.ts
|
|
7261
7267
|
zapierSdk.injectCliLogin(login_exports);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command, CommanderError, Option } from 'commander';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { definePlugin, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, injectCliLogin, BaseSdkOptionsSchema, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, createZapierSdkStack as createZapierSdkStack$1, addPlugin as addPlugin$1, ZapierError, isCredentialsObject, buildApplicationLifecycleEvent, ZapierAuthenticationError, isPositional, runWithTelemetryContext, buildCapabilityMessage, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, ZapierApprovalError } from '@zapier/zapier-sdk';
|
|
4
|
+
import { definePlugin, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, injectCliLogin, BaseSdkOptionsSchema, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, createZapierSdkStack as createZapierSdkStack$1, addPlugin as addPlugin$1, ZapierError, isCredentialsObject, buildApplicationLifecycleEvent, ZapierAuthenticationError, runWithCallerContext, isPositional, runWithTelemetryContext, buildCapabilityMessage, formatErrorMessage, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, ZapierApprovalError } from '@zapier/zapier-sdk';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import search from '@inquirer/search';
|
|
7
7
|
import chalk from 'chalk';
|
|
@@ -1533,7 +1533,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1533
1533
|
|
|
1534
1534
|
// package.json
|
|
1535
1535
|
var package_default = {
|
|
1536
|
-
version: "0.
|
|
1536
|
+
version: "0.57.1"};
|
|
1537
1537
|
|
|
1538
1538
|
// src/telemetry/builders.ts
|
|
1539
1539
|
function createCliBaseEvent(context = {}) {
|
|
@@ -2545,10 +2545,16 @@ ${confirmMessageAfter}`));
|
|
|
2545
2545
|
}
|
|
2546
2546
|
}
|
|
2547
2547
|
};
|
|
2548
|
+
const handlerWithCallerContext = async (...args) => {
|
|
2549
|
+
return runWithCallerContext(
|
|
2550
|
+
{ packageOperation: cliCommandName },
|
|
2551
|
+
() => handler(...args)
|
|
2552
|
+
);
|
|
2553
|
+
};
|
|
2548
2554
|
return {
|
|
2549
2555
|
description,
|
|
2550
2556
|
parameters,
|
|
2551
|
-
handler,
|
|
2557
|
+
handler: handlerWithCallerContext,
|
|
2552
2558
|
hidden: !!functionInfo.deprecation,
|
|
2553
2559
|
aliases: functionInfo.aliases,
|
|
2554
2560
|
supportsJsonOutput: functionInfo.supportsJsonOutput
|
|
@@ -7212,7 +7218,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
7212
7218
|
// package.json with { type: 'json' }
|
|
7213
7219
|
var package_default2 = {
|
|
7214
7220
|
name: "@zapier/zapier-sdk-cli",
|
|
7215
|
-
version: "0.
|
|
7221
|
+
version: "0.57.1"};
|
|
7216
7222
|
|
|
7217
7223
|
// src/sdk.ts
|
|
7218
7224
|
injectCliLogin(login_exports);
|
package/dist/experimental.cjs
CHANGED
|
@@ -4590,7 +4590,7 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4590
4590
|
// package.json with { type: 'json' }
|
|
4591
4591
|
var package_default = {
|
|
4592
4592
|
name: "@zapier/zapier-sdk-cli",
|
|
4593
|
-
version: "0.
|
|
4593
|
+
version: "0.57.1"};
|
|
4594
4594
|
|
|
4595
4595
|
// src/experimental.ts
|
|
4596
4596
|
experimental.injectCliLogin(login_exports);
|
package/dist/experimental.mjs
CHANGED
|
@@ -4554,7 +4554,7 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
4554
4554
|
// package.json with { type: 'json' }
|
|
4555
4555
|
var package_default = {
|
|
4556
4556
|
name: "@zapier/zapier-sdk-cli",
|
|
4557
|
-
version: "0.
|
|
4557
|
+
version: "0.57.1"};
|
|
4558
4558
|
|
|
4559
4559
|
// src/experimental.ts
|
|
4560
4560
|
injectCliLogin(login_exports);
|
package/dist/index.cjs
CHANGED
|
@@ -4589,7 +4589,7 @@ zapierSdk.definePlugin(
|
|
|
4589
4589
|
// package.json with { type: 'json' }
|
|
4590
4590
|
var package_default = {
|
|
4591
4591
|
name: "@zapier/zapier-sdk-cli",
|
|
4592
|
-
version: "0.
|
|
4592
|
+
version: "0.57.1"};
|
|
4593
4593
|
|
|
4594
4594
|
// src/sdk.ts
|
|
4595
4595
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4617,7 +4617,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4617
4617
|
|
|
4618
4618
|
// package.json
|
|
4619
4619
|
var package_default2 = {
|
|
4620
|
-
version: "0.
|
|
4620
|
+
version: "0.57.1"};
|
|
4621
4621
|
|
|
4622
4622
|
// src/telemetry/builders.ts
|
|
4623
4623
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -4553,7 +4553,7 @@ definePlugin(
|
|
|
4553
4553
|
// package.json with { type: 'json' }
|
|
4554
4554
|
var package_default = {
|
|
4555
4555
|
name: "@zapier/zapier-sdk-cli",
|
|
4556
|
-
version: "0.
|
|
4556
|
+
version: "0.57.1"};
|
|
4557
4557
|
|
|
4558
4558
|
// src/sdk.ts
|
|
4559
4559
|
injectCliLogin(login_exports);
|
|
@@ -4581,7 +4581,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4581
4581
|
|
|
4582
4582
|
// package.json
|
|
4583
4583
|
var package_default2 = {
|
|
4584
|
-
version: "0.
|
|
4584
|
+
version: "0.57.1"};
|
|
4585
4585
|
|
|
4586
4586
|
// src/telemetry/builders.ts
|
|
4587
4587
|
function createCliBaseEvent(context = {}) {
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from "commander";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { isPositional } from "@zapier/zapier-sdk";
|
|
3
|
+
import { isPositional, runWithCallerContext, } from "@zapier/zapier-sdk";
|
|
4
4
|
import { SchemaParameterResolver } from "./parameter-resolver";
|
|
5
5
|
import chalk from "chalk";
|
|
6
6
|
import inquirer from "inquirer";
|
|
@@ -641,10 +641,13 @@ function createCommandConfig(cliCommandName, functionInfo, sdk) {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
};
|
|
644
|
+
const handlerWithCallerContext = async (...args) => {
|
|
645
|
+
return runWithCallerContext({ packageOperation: cliCommandName }, () => handler(...args));
|
|
646
|
+
};
|
|
644
647
|
return {
|
|
645
648
|
description,
|
|
646
649
|
parameters,
|
|
647
|
-
handler,
|
|
650
|
+
handler: handlerWithCallerContext,
|
|
648
651
|
hidden: !!functionInfo.deprecation,
|
|
649
652
|
aliases: functionInfo.aliases,
|
|
650
653
|
supportsJsonOutput: functionInfo.supportsJsonOutput,
|