@zapier/zapier-sdk-cli 0.79.0 → 0.80.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 CHANGED
@@ -1,5 +1,43 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.80.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 17927b2: Added six experimental commands for putting a workflow under agentic management:
8
+ `enable-agentic-management`, `disable-agentic-management`,
9
+ `get-agentic-management-config`, `update-agentic-management-config`,
10
+ `get-agentic-management-intent`, and `update-agentic-management-intent`. Run them
11
+ via the `zapier-sdk-experimental` binary, pass `--experimental` to `zapier-sdk`, or
12
+ set `ZAPIER_EXPERIMENTAL=true`.
13
+
14
+ These take the same workflow the other `*-workflow` commands take, so the
15
+ workflow argument can be selected from a prompt instead of pasted as a UUID, and
16
+ the commands are listed under Code Workflows in `--help`.
17
+
18
+ `disable-agentic-management` prompts for confirmation before turning management
19
+ off. `--auto-approve` applies proposed fixes without prompting and
20
+ `--no-auto-approve` requires approval for each one. Omit both and fixes are
21
+ applied without prompting on a first enable, while an update leaves the
22
+ setting unchanged.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [17927b2]
27
+ - Updated dependencies [17927b2]
28
+ - @zapier/zapier-sdk-mcp@0.22.0
29
+ - @zapier/zapier-sdk@0.107.0
30
+
31
+ ## 0.79.1
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [4b9d735]
36
+ - Updated dependencies [4b9d735]
37
+ - @zapier/kitcore@0.20.0
38
+ - @zapier/zapier-sdk@0.106.0
39
+ - @zapier/zapier-sdk-mcp@0.21.12
40
+
3
41
  ## 0.79.0
4
42
 
5
43
  ### Minor 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.79.0"};
605
+ version: "0.80.0"};
606
606
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
607
607
  var LOCKFILES = [
608
608
  ["pnpm-lock.yaml", "pnpm"],
@@ -8142,20 +8142,19 @@ var listConnectionsRef2 = zapierSdk.declareMethod({ id: "listConnections" });
8142
8142
  var loginRef = zapierSdk.declareMethod({ id: "login" });
8143
8143
  var logoutRef = zapierSdk.declareMethod({ id: "logout" });
8144
8144
  var signupRef = zapierSdk.declareMethod({ id: "signup" });
8145
- var setupImports = [
8146
- getProfileRef,
8147
- listConnectionsRef2,
8148
- loginRef,
8149
- logoutRef,
8150
- signupRef,
8151
- zapierSdk.apiPluginRef,
8152
- zapierSdk.resolveCredentialsPluginRef,
8153
- zapierSdk.eventEmissionPluginRef,
8154
- zapierSdk.sdkOptionsPluginRef
8155
- ];
8156
8145
  var setupPlugin = zapierSdk.defineMethod({
8157
8146
  name: "setup",
8158
- imports: setupImports,
8147
+ imports: [
8148
+ getProfileRef,
8149
+ listConnectionsRef2,
8150
+ loginRef,
8151
+ logoutRef,
8152
+ signupRef,
8153
+ zapierSdk.apiPluginRef,
8154
+ zapierSdk.resolveCredentialsPluginRef,
8155
+ zapierSdk.eventEmissionPluginRef,
8156
+ zapierSdk.sdkOptionsPluginRef
8157
+ ],
8159
8158
  categories: ["utility"],
8160
8159
  supportsJsonOutput: false,
8161
8160
  inputSchema: SetupSchema,
@@ -8686,7 +8685,7 @@ function buildBoxLines(message) {
8686
8685
  // package.json with { type: 'json' }
8687
8686
  var package_default2 = {
8688
8687
  name: "@zapier/zapier-sdk-cli",
8689
- version: "0.79.0"};
8688
+ version: "0.80.0"};
8690
8689
 
8691
8690
  // src/sdk.ts
8692
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.79.0"};
561
+ version: "0.80.0"};
562
562
  var PACKAGE_MANAGERS = ["npm", "pnpm", "yarn", "bun"];
563
563
  var LOCKFILES = [
564
564
  ["pnpm-lock.yaml", "pnpm"],
@@ -8098,20 +8098,19 @@ var listConnectionsRef2 = declareMethod({ id: "listConnections" });
8098
8098
  var loginRef = declareMethod({ id: "login" });
8099
8099
  var logoutRef = declareMethod({ id: "logout" });
8100
8100
  var signupRef = declareMethod({ id: "signup" });
8101
- var setupImports = [
8102
- getProfileRef,
8103
- listConnectionsRef2,
8104
- loginRef,
8105
- logoutRef,
8106
- signupRef,
8107
- apiPluginRef,
8108
- resolveCredentialsPluginRef,
8109
- eventEmissionPluginRef,
8110
- sdkOptionsPluginRef
8111
- ];
8112
8101
  var setupPlugin = defineMethod({
8113
8102
  name: "setup",
8114
- imports: setupImports,
8103
+ imports: [
8104
+ getProfileRef,
8105
+ listConnectionsRef2,
8106
+ loginRef,
8107
+ logoutRef,
8108
+ signupRef,
8109
+ apiPluginRef,
8110
+ resolveCredentialsPluginRef,
8111
+ eventEmissionPluginRef,
8112
+ sdkOptionsPluginRef
8113
+ ],
8115
8114
  categories: ["utility"],
8116
8115
  supportsJsonOutput: false,
8117
8116
  inputSchema: SetupSchema,
@@ -8642,7 +8641,7 @@ function buildBoxLines(message) {
8642
8641
  // package.json with { type: 'json' }
8643
8642
  var package_default2 = {
8644
8643
  name: "@zapier/zapier-sdk-cli",
8645
- version: "0.79.0"};
8644
+ version: "0.80.0"};
8646
8645
 
8647
8646
  // src/sdk.ts
8648
8647
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -6646,20 +6646,19 @@ var listConnectionsRef2 = zapierSdk.declareMethod({ id: "listConnections" });
6646
6646
  var loginRef = zapierSdk.declareMethod({ id: "login" });
6647
6647
  var logoutRef = zapierSdk.declareMethod({ id: "logout" });
6648
6648
  var signupRef = zapierSdk.declareMethod({ id: "signup" });
6649
- var setupImports = [
6650
- getProfileRef,
6651
- listConnectionsRef2,
6652
- loginRef,
6653
- logoutRef,
6654
- signupRef,
6655
- zapierSdk.apiPluginRef,
6656
- zapierSdk.resolveCredentialsPluginRef,
6657
- zapierSdk.eventEmissionPluginRef,
6658
- zapierSdk.sdkOptionsPluginRef
6659
- ];
6660
6649
  var setupPlugin = zapierSdk.defineMethod({
6661
6650
  name: "setup",
6662
- imports: setupImports,
6651
+ imports: [
6652
+ getProfileRef,
6653
+ listConnectionsRef2,
6654
+ loginRef,
6655
+ logoutRef,
6656
+ signupRef,
6657
+ zapierSdk.apiPluginRef,
6658
+ zapierSdk.resolveCredentialsPluginRef,
6659
+ zapierSdk.eventEmissionPluginRef,
6660
+ zapierSdk.sdkOptionsPluginRef
6661
+ ],
6663
6662
  categories: ["utility"],
6664
6663
  supportsJsonOutput: false,
6665
6664
  inputSchema: SetupSchema,
@@ -7179,7 +7178,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7179
7178
  // package.json with { type: 'json' }
7180
7179
  var package_default = {
7181
7180
  name: "@zapier/zapier-sdk-cli",
7182
- version: "0.79.0"};
7181
+ version: "0.80.0"};
7183
7182
 
7184
7183
  // src/sdk.ts
7185
7184
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -1,5 +1,5 @@
1
1
  import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
2
- import { E as Extension, Z as ZapierSdkCli } from './extensions-BlLLLz3o.mjs';
2
+ import { E as Extension, Z as ZapierSdkCli } from './extensions-B6a6ysnh.mjs';
3
3
  import '@zapier/zapier-sdk';
4
4
  import '@zapier/kitcore';
5
5
  import 'zod';
@@ -1,5 +1,5 @@
1
1
  import { ZapierSdkOptions } from '@zapier/zapier-sdk/experimental';
2
- import { E as Extension, Z as ZapierSdkCli } from './extensions-BlLLLz3o.js';
2
+ import { E as Extension, Z as ZapierSdkCli } from './extensions-B6a6ysnh.js';
3
3
  import '@zapier/zapier-sdk';
4
4
  import '@zapier/kitcore';
5
5
  import 'zod';
@@ -6605,20 +6605,19 @@ var listConnectionsRef2 = declareMethod({ id: "listConnections" });
6605
6605
  var loginRef = declareMethod({ id: "login" });
6606
6606
  var logoutRef = declareMethod({ id: "logout" });
6607
6607
  var signupRef = declareMethod({ id: "signup" });
6608
- var setupImports = [
6609
- getProfileRef,
6610
- listConnectionsRef2,
6611
- loginRef,
6612
- logoutRef,
6613
- signupRef,
6614
- apiPluginRef,
6615
- resolveCredentialsPluginRef,
6616
- eventEmissionPluginRef,
6617
- sdkOptionsPluginRef
6618
- ];
6619
6608
  var setupPlugin = defineMethod({
6620
6609
  name: "setup",
6621
- imports: setupImports,
6610
+ imports: [
6611
+ getProfileRef,
6612
+ listConnectionsRef2,
6613
+ loginRef,
6614
+ logoutRef,
6615
+ signupRef,
6616
+ apiPluginRef,
6617
+ resolveCredentialsPluginRef,
6618
+ eventEmissionPluginRef,
6619
+ sdkOptionsPluginRef
6620
+ ],
6622
6621
  categories: ["utility"],
6623
6622
  supportsJsonOutput: false,
6624
6623
  inputSchema: SetupSchema,
@@ -7138,7 +7137,7 @@ function collectDeprecationNoticeAndForward(event, onEvent) {
7138
7137
  // package.json with { type: 'json' }
7139
7138
  var package_default = {
7140
7139
  name: "@zapier/zapier-sdk-cli",
7141
- version: "0.79.0"};
7140
+ version: "0.80.0"};
7142
7141
 
7143
7142
  // src/sdk.ts
7144
7143
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();