@zapier/zapier-sdk-cli 0.79.1 โ 0.80.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 +36 -0
- package/README.md +109 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- 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/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.80.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [274d411]
|
|
8
|
+
- @zapier/zapier-sdk@0.107.1
|
|
9
|
+
- @zapier/zapier-sdk-mcp@0.22.1
|
|
10
|
+
|
|
11
|
+
## 0.80.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 17927b2: Added six experimental commands for putting a workflow under agentic management:
|
|
16
|
+
`enable-agentic-management`, `disable-agentic-management`,
|
|
17
|
+
`get-agentic-management-config`, `update-agentic-management-config`,
|
|
18
|
+
`get-agentic-management-intent`, and `update-agentic-management-intent`. Run them
|
|
19
|
+
via the `zapier-sdk-experimental` binary, pass `--experimental` to `zapier-sdk`, or
|
|
20
|
+
set `ZAPIER_EXPERIMENTAL=true`.
|
|
21
|
+
|
|
22
|
+
These take the same workflow the other `*-workflow` commands take, so the
|
|
23
|
+
workflow argument can be selected from a prompt instead of pasted as a UUID, and
|
|
24
|
+
the commands are listed under Code Workflows in `--help`.
|
|
25
|
+
|
|
26
|
+
`disable-agentic-management` prompts for confirmation before turning management
|
|
27
|
+
off. `--auto-approve` applies proposed fixes without prompting and
|
|
28
|
+
`--no-auto-approve` requires approval for each one. Omit both and fixes are
|
|
29
|
+
applied without prompting on a first enable, while an update leaves the
|
|
30
|
+
setting unchanged.
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [17927b2]
|
|
35
|
+
- Updated dependencies [17927b2]
|
|
36
|
+
- @zapier/zapier-sdk-mcp@0.22.0
|
|
37
|
+
- @zapier/zapier-sdk@0.107.0
|
|
38
|
+
|
|
3
39
|
## 0.79.1
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -33,9 +33,13 @@
|
|
|
33
33
|
- [`create-workflow`](#create-workflow--experimental)
|
|
34
34
|
- [`create-workflow-draft`](#create-workflow-draft--experimental)
|
|
35
35
|
- [`delete-workflow`](#delete-workflow--experimental)
|
|
36
|
+
- [`disable-agentic-management`](#disable-agentic-management--experimental)
|
|
36
37
|
- [`disable-workflow`](#disable-workflow--experimental)
|
|
37
38
|
- [`discard-workflow-draft`](#discard-workflow-draft--experimental)
|
|
39
|
+
- [`enable-agentic-management`](#enable-agentic-management--experimental)
|
|
38
40
|
- [`enable-workflow`](#enable-workflow--experimental)
|
|
41
|
+
- [`get-agentic-management-config`](#get-agentic-management-config--experimental)
|
|
42
|
+
- [`get-agentic-management-intent`](#get-agentic-management-intent--experimental)
|
|
39
43
|
- [`get-durable-run`](#get-durable-run--experimental)
|
|
40
44
|
- [`get-trigger-run`](#get-trigger-run--experimental)
|
|
41
45
|
- [`get-workflow`](#get-workflow--experimental)
|
|
@@ -52,6 +56,8 @@
|
|
|
52
56
|
- [`publish-workflow-version`](#publish-workflow-version--experimental)
|
|
53
57
|
- [`run-durable`](#run-durable--experimental)
|
|
54
58
|
- [`trigger-workflow`](#trigger-workflow--experimental)
|
|
59
|
+
- [`update-agentic-management-config`](#update-agentic-management-config--experimental)
|
|
60
|
+
- [`update-agentic-management-intent`](#update-agentic-management-intent--experimental)
|
|
55
61
|
- [`update-workflow`](#update-workflow--experimental)
|
|
56
62
|
- [`update-workflow-draft`](#update-workflow-draft--experimental)
|
|
57
63
|
- [`validate-workflow`](#validate-workflow--experimental)
|
|
@@ -602,6 +608,22 @@ Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't
|
|
|
602
608
|
npx zapier-sdk delete-workflow <workflow>
|
|
603
609
|
```
|
|
604
610
|
|
|
611
|
+
#### `disable-agentic-management` ๐งช _experimental_
|
|
612
|
+
|
|
613
|
+
Stop Agentic Management from working on one workflow. Its settings are kept, not deleted: the modes and auto-approve choice stay on file, so calling enableAgenticManagement later resumes with those settings instead of the defaults.
|
|
614
|
+
|
|
615
|
+
**Options:**
|
|
616
|
+
|
|
617
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
618
|
+
| ------------ | -------- | -------- | ------- | --------------- | ----------------------------------------------------- |
|
|
619
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to take out of agentic management. |
|
|
620
|
+
|
|
621
|
+
**Usage:**
|
|
622
|
+
|
|
623
|
+
```bash
|
|
624
|
+
npx zapier-sdk disable-agentic-management <workflow>
|
|
625
|
+
```
|
|
626
|
+
|
|
605
627
|
#### `disable-workflow` ๐งช _experimental_
|
|
606
628
|
|
|
607
629
|
Disable a durable workflow so it stops accepting triggers
|
|
@@ -635,6 +657,24 @@ Discard an open workflow draft (soft delete). The draft's unpublished edits stop
|
|
|
635
657
|
npx zapier-sdk discard-workflow-draft <workflow> <draft>
|
|
636
658
|
```
|
|
637
659
|
|
|
660
|
+
#### `enable-agentic-management` ๐งช _experimental_
|
|
661
|
+
|
|
662
|
+
Put one workflow under Agentic Management. A workflow disabled earlier comes back with the modes and auto-approve choice it had, unless you pass new ones here.
|
|
663
|
+
|
|
664
|
+
**Options:**
|
|
665
|
+
|
|
666
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
667
|
+
| -------------------------------------- | --------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
668
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to put under agentic management. |
|
|
669
|
+
| `--modes` | `array` | โ | โ | โ | The modes to run for this workflow. Omit it and the workflow starts on `heal` alone. A mode is what Agentic Management watches for and what it changes in response. `heal` monitors runs for errors and, when something breaks, diagnoses the cause and drafts and tests a fix; it is the mode a workflow gets by default. `expand` grows what the workflow covers: it reviews runs that succeeded without actually doing anything โ a lookup that matched nothing, a filter that passed no items, a trigger payload no branch handles โ and proposes a new branch or step to handle that case, rather than rewriting the ones that already work. `harden` watches the AI steps: when an AI step keeps doing the same work the same way, it converts that step into fixed code, so the workflow runs faster, costs less, and behaves the same way every time. Modes stack โ each one you name runs alongside the others, and a mode you leave out does nothing, so a workflow on `expand` alone does not repair failed runs. Whether a change goes live on its own or waits for someone to approve it is `autoApprove`, not the mode. |
|
|
670
|
+
| `--auto-approve` / `--no-auto-approve` | `boolean` | โ | โ | โ | Apply the fixes Agentic Management proposes without asking first. Set it to false and each fix waits for someone to approve it. Omit it and fixes are applied without asking, which is what a workflow enabled for the first time gets; a workflow being re-enabled keeps the setting it had before. |
|
|
671
|
+
|
|
672
|
+
**Usage:**
|
|
673
|
+
|
|
674
|
+
```bash
|
|
675
|
+
npx zapier-sdk enable-agentic-management <workflow> [--modes] [--auto-approve]
|
|
676
|
+
```
|
|
677
|
+
|
|
638
678
|
#### `enable-workflow` ๐งช _experimental_
|
|
639
679
|
|
|
640
680
|
Enable a durable workflow so it accepts triggers
|
|
@@ -651,6 +691,39 @@ Enable a durable workflow so it accepts triggers
|
|
|
651
691
|
npx zapier-sdk enable-workflow <workflow>
|
|
652
692
|
```
|
|
653
693
|
|
|
694
|
+
#### `get-agentic-management-config` ๐งช _experimental_
|
|
695
|
+
|
|
696
|
+
Read the Agentic Management config for one workflow.
|
|
697
|
+
|
|
698
|
+
**Options:**
|
|
699
|
+
|
|
700
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
701
|
+
| ------------ | -------- | -------- | ------- | --------------- | --------------------------- |
|
|
702
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to read. |
|
|
703
|
+
|
|
704
|
+
**Usage:**
|
|
705
|
+
|
|
706
|
+
```bash
|
|
707
|
+
npx zapier-sdk get-agentic-management-config <workflow>
|
|
708
|
+
```
|
|
709
|
+
|
|
710
|
+
#### `get-agentic-management-intent` ๐งช _experimental_
|
|
711
|
+
|
|
712
|
+
Read the intent recorded for one workflow version: the plain-language description of what that version of the workflow is meant to do.
|
|
713
|
+
|
|
714
|
+
**Options:**
|
|
715
|
+
|
|
716
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
717
|
+
| ------------ | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
718
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to read. |
|
|
719
|
+
| `--version` | `string` | โ | โ | โ | The workflow version the intent belongs to. Each version stores its own intent, and a version never picks up the intent of another, so publishing a new version starts it with none. Omit this to use the workflow's current published version. |
|
|
720
|
+
|
|
721
|
+
**Usage:**
|
|
722
|
+
|
|
723
|
+
```bash
|
|
724
|
+
npx zapier-sdk get-agentic-management-intent <workflow> [--version]
|
|
725
|
+
```
|
|
726
|
+
|
|
654
727
|
#### `get-durable-run` ๐งช _experimental_
|
|
655
728
|
|
|
656
729
|
Get the full state of a run-once durable run, including its operations journal
|
|
@@ -952,6 +1025,42 @@ Look up a workflow's trigger URL and fire it manually, as the authenticated acco
|
|
|
952
1025
|
npx zapier-sdk trigger-workflow <workflow> [--input]
|
|
953
1026
|
```
|
|
954
1027
|
|
|
1028
|
+
#### `update-agentic-management-config` ๐งช _experimental_
|
|
1029
|
+
|
|
1030
|
+
Change the modes a workflow runs, whether fixes are applied without approval, or both. A `modes` list replaces the whole current set rather than adding to it.
|
|
1031
|
+
|
|
1032
|
+
**Options:**
|
|
1033
|
+
|
|
1034
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
1035
|
+
| -------------------------------------- | --------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1036
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to update. |
|
|
1037
|
+
| `--modes` | `array` | โ | โ | โ | The modes to run. The list you pass replaces the whole current set in one step; it is not added to what is already active. Omit it to leave the active modes as they are. A mode is what Agentic Management watches for and what it changes in response. `heal` monitors runs for errors and, when something breaks, diagnoses the cause and drafts and tests a fix; it is the mode a workflow gets by default. `expand` grows what the workflow covers: it reviews runs that succeeded without actually doing anything โ a lookup that matched nothing, a filter that passed no items, a trigger payload no branch handles โ and proposes a new branch or step to handle that case, rather than rewriting the ones that already work. `harden` watches the AI steps: when an AI step keeps doing the same work the same way, it converts that step into fixed code, so the workflow runs faster, costs less, and behaves the same way every time. Modes stack โ each one you name runs alongside the others, and a mode you leave out does nothing, so a workflow on `expand` alone does not repair failed runs. Whether a change goes live on its own or waits for someone to approve it is `autoApprove`, not the mode. |
|
|
1038
|
+
| `--auto-approve` / `--no-auto-approve` | `boolean` | โ | โ | โ | Apply the fixes Agentic Management proposes without asking first. Set it to false and each fix waits for someone to approve it before anything changes. Omit it to leave the current setting alone. |
|
|
1039
|
+
|
|
1040
|
+
**Usage:**
|
|
1041
|
+
|
|
1042
|
+
```bash
|
|
1043
|
+
npx zapier-sdk update-agentic-management-config <workflow> [--modes] [--auto-approve]
|
|
1044
|
+
```
|
|
1045
|
+
|
|
1046
|
+
#### `update-agentic-management-intent` ๐งช _experimental_
|
|
1047
|
+
|
|
1048
|
+
Record what one workflow version is meant to do. Writing again for the same version replaces the text already stored, so there is no separate create and update.
|
|
1049
|
+
|
|
1050
|
+
**Options:**
|
|
1051
|
+
|
|
1052
|
+
| Option | Type | Required | Default | Possible Values | Description |
|
|
1053
|
+
| ------------ | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1054
|
+
| `<workflow>` | `string` | โ
| โ | โ | ID of the workflow to write to. |
|
|
1055
|
+
| `<intent>` | `string` | โ
| โ | โ | What this version of the workflow is for, in your own words: the outcome it produces, what sets it off, and anything that must always hold true. Plain prose, not code. |
|
|
1056
|
+
| `--version` | `string` | โ | โ | โ | The workflow version the intent belongs to. Each version stores its own intent, and a version never picks up the intent of another, so publishing a new version starts it with none. Omit this to use the workflow's current published version. |
|
|
1057
|
+
|
|
1058
|
+
**Usage:**
|
|
1059
|
+
|
|
1060
|
+
```bash
|
|
1061
|
+
npx zapier-sdk update-agentic-management-intent <workflow> <intent> [--version]
|
|
1062
|
+
```
|
|
1063
|
+
|
|
955
1064
|
#### `update-workflow` ๐งช _experimental_
|
|
956
1065
|
|
|
957
1066
|
Update a durable workflow's name and/or description
|
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.80.1"};
|
|
606
606
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
607
607
|
var LOCKFILES = [
|
|
608
608
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8685,7 +8685,7 @@ function buildBoxLines(message) {
|
|
|
8685
8685
|
// package.json with { type: 'json' }
|
|
8686
8686
|
var package_default2 = {
|
|
8687
8687
|
name: "@zapier/zapier-sdk-cli",
|
|
8688
|
-
version: "0.
|
|
8688
|
+
version: "0.80.1"};
|
|
8689
8689
|
|
|
8690
8690
|
// src/sdk.ts
|
|
8691
8691
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/cli.mjs
CHANGED
|
@@ -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.80.1"};
|
|
562
562
|
var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
|
|
563
563
|
var LOCKFILES = [
|
|
564
564
|
["pnpm-lock.yaml", "pnpm"],
|
|
@@ -8641,7 +8641,7 @@ function buildBoxLines(message) {
|
|
|
8641
8641
|
// package.json with { type: 'json' }
|
|
8642
8642
|
var package_default2 = {
|
|
8643
8643
|
name: "@zapier/zapier-sdk-cli",
|
|
8644
|
-
version: "0.
|
|
8644
|
+
version: "0.80.1"};
|
|
8645
8645
|
|
|
8646
8646
|
// src/sdk.ts
|
|
8647
8647
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/experimental.cjs
CHANGED
|
@@ -7178,7 +7178,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7178
7178
|
// package.json with { type: 'json' }
|
|
7179
7179
|
var package_default = {
|
|
7180
7180
|
name: "@zapier/zapier-sdk-cli",
|
|
7181
|
-
version: "0.
|
|
7181
|
+
version: "0.80.1"};
|
|
7182
7182
|
|
|
7183
7183
|
// src/sdk.ts
|
|
7184
7184
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/experimental.mjs
CHANGED
|
@@ -7137,7 +7137,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7137
7137
|
// package.json with { type: 'json' }
|
|
7138
7138
|
var package_default = {
|
|
7139
7139
|
name: "@zapier/zapier-sdk-cli",
|
|
7140
|
-
version: "0.
|
|
7140
|
+
version: "0.80.1"};
|
|
7141
7141
|
|
|
7142
7142
|
// src/sdk.ts
|
|
7143
7143
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
package/dist/index.cjs
CHANGED
|
@@ -7179,7 +7179,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7179
7179
|
// package.json with { type: 'json' }
|
|
7180
7180
|
var package_default = {
|
|
7181
7181
|
name: "@zapier/zapier-sdk-cli",
|
|
7182
|
-
version: "0.
|
|
7182
|
+
version: "0.80.1"};
|
|
7183
7183
|
|
|
7184
7184
|
// src/sdk.ts
|
|
7185
7185
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7263,7 +7263,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7263
7263
|
|
|
7264
7264
|
// package.json
|
|
7265
7265
|
var package_default2 = {
|
|
7266
|
-
version: "0.
|
|
7266
|
+
version: "0.80.1"};
|
|
7267
7267
|
|
|
7268
7268
|
// src/telemetry/builders.ts
|
|
7269
7269
|
function createCliBaseEvent(context = {}) {
|
package/dist/index.mjs
CHANGED
|
@@ -7138,7 +7138,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
|
7138
7138
|
// package.json with { type: 'json' }
|
|
7139
7139
|
var package_default = {
|
|
7140
7140
|
name: "@zapier/zapier-sdk-cli",
|
|
7141
|
-
version: "0.
|
|
7141
|
+
version: "0.80.1"};
|
|
7142
7142
|
|
|
7143
7143
|
// src/sdk.ts
|
|
7144
7144
|
var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
|
|
@@ -7222,7 +7222,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
7222
7222
|
|
|
7223
7223
|
// package.json
|
|
7224
7224
|
var package_default2 = {
|
|
7225
|
-
version: "0.
|
|
7225
|
+
version: "0.80.1"};
|
|
7226
7226
|
|
|
7227
7227
|
// src/telemetry/builders.ts
|
|
7228
7228
|
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.80.1",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
"wrap-ansi": "^10.0.0",
|
|
97
97
|
"zod": "4.3.6",
|
|
98
98
|
"@zapier/kitcore": "0.20.0",
|
|
99
|
-
"@zapier/zapier-sdk-mcp": "0.
|
|
100
|
-
"@zapier/zapier-sdk": "0.
|
|
99
|
+
"@zapier/zapier-sdk-mcp": "0.22.1",
|
|
100
|
+
"@zapier/zapier-sdk": "0.107.1"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
103
|
"@types/cross-spawn": "^6.0.6",
|