@zapier/zapier-sdk-cli 0.80.2 → 0.81.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,18 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.81.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cd1cafb: Added nine experimental VFS commands: `read-vfs-file`, `write-vfs-file`, `append-vfs-file`, `copy-vfs-file`, `list-vfs-directory`, `create-vfs-directory`, `stat-vfs-path`, `delete-vfs-path`, and `move-vfs-path`.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [cd1cafb]
12
+ - Updated dependencies [cd1cafb]
13
+ - @zapier/zapier-sdk@0.108.0
14
+ - @zapier/zapier-sdk-mcp@0.23.0
15
+
3
16
  ## 0.80.2
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -114,6 +114,16 @@
114
114
  - [`init`](#init)
115
115
  - [`mcp`](#mcp)
116
116
  - [`setup`](#setup)
117
+ - [Virtual File System (Experimental)](#virtual-file-system-experimental)
118
+ - [`append-vfs-file`](#append-vfs-file--experimental)
119
+ - [`copy-vfs-file`](#copy-vfs-file--experimental)
120
+ - [`create-vfs-directory`](#create-vfs-directory--experimental)
121
+ - [`delete-vfs-path`](#delete-vfs-path--experimental)
122
+ - [`list-vfs-directory`](#list-vfs-directory--experimental)
123
+ - [`move-vfs-path`](#move-vfs-path--experimental)
124
+ - [`read-vfs-file`](#read-vfs-file--experimental)
125
+ - [`stat-vfs-path`](#stat-vfs-path--experimental)
126
+ - [`write-vfs-file`](#write-vfs-file--experimental)
117
127
 
118
128
  ## Quick Start
119
129
 
@@ -2063,3 +2073,162 @@ Set up the Zapier SDK in an existing or new project
2063
2073
  ```bash
2064
2074
  npx zapier-sdk setup
2065
2075
  ```
2076
+
2077
+ ### Virtual File System (Experimental)
2078
+
2079
+ > ℹ️ **Experimental.** Run commands via the `zapier-sdk-experimental` binary, pass `--experimental` to `zapier-sdk`, or set `ZAPIER_EXPERIMENTAL=true` in the environment. Flags and behavior may change between versions.
2080
+
2081
+ #### `append-vfs-file` 🧪 _experimental_
2082
+
2083
+ Append content to a file in the Zapier Virtual File System (VFS). Creates the file if it doesn't exist; missing parent directories are created automatically. Safer than reading the file and rewriting it — appends server-side without a read/write round-trip. Paths are absolute (e.g. `/Mine/log.md`).
2084
+
2085
+ **Options:**
2086
+
2087
+ | Option | Type | Required | Default | Possible Values | Description |
2088
+ | ----------- | -------- | -------- | ------- | --------------- | ---------------------------------------------------------------------------------------------- |
2089
+ | `<path>` | `string` | ✅ | — | — | Absolute path of the file (must start with `/`). |
2090
+ | `<content>` | `string` | ✅ | — | — | Content to append. Capped at 10 MB per call, and the resulting file must also fit under 10 MB. |
2091
+
2092
+ **Usage:**
2093
+
2094
+ ```bash
2095
+ npx zapier-sdk append-vfs-file <path> <content>
2096
+ ```
2097
+
2098
+ #### `copy-vfs-file` 🧪 _experimental_
2099
+
2100
+ Copy a file to a new path in the Zapier Virtual File System (VFS). Both `from` and `to` are absolute file paths (e.g. `/Mine/notes.md`), not directories.
2101
+
2102
+ **Options:**
2103
+
2104
+ | Option | Type | Required | Default | Possible Values | Description |
2105
+ | -------------------- | --------- | -------- | ------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2106
+ | `<from>` | `string` | ✅ | — | — | Absolute path of the source file. |
2107
+ | `<to>` | `string` | ✅ | — | — | Absolute path of the destination file. |
2108
+ | `--overwrite` | `boolean` | ❌ | — | — | When `true`, replace any existing file at `to`. Default `false` fails if `to` already exists. |
2109
+ | `--expected-version` | `number` | ❌ | — | — | Optional version pin for the destination. Requires `overwrite: true` and an existing file at `to`; the replace only succeeds if the destination's current version matches, otherwise the call fails. |
2110
+
2111
+ **Usage:**
2112
+
2113
+ ```bash
2114
+ npx zapier-sdk copy-vfs-file <from> <to> [--overwrite] [--expected-version]
2115
+ ```
2116
+
2117
+ #### `create-vfs-directory` 🧪 _experimental_
2118
+
2119
+ Create a directory in the Zapier Virtual File System (VFS). Paths are absolute (e.g. `/Mine/notes`). Idempotent — safe to call on an existing directory.
2120
+
2121
+ **Options:**
2122
+
2123
+ | Option | Type | Required | Default | Possible Values | Description |
2124
+ | -------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------- |
2125
+ | `<path>` | `string` | ✅ | — | — | Absolute path of the directory (must start with `/`). |
2126
+
2127
+ **Usage:**
2128
+
2129
+ ```bash
2130
+ npx zapier-sdk create-vfs-directory <path>
2131
+ ```
2132
+
2133
+ #### `delete-vfs-path` 🧪 _experimental_
2134
+
2135
+ Delete a file or directory in the Zapier Virtual File System (VFS). Works on either; paths are absolute (e.g. `/Mine/notes.md`). Deletes are recoverable — contact Zapier support to restore an entry.
2136
+
2137
+ **Options:**
2138
+
2139
+ | Option | Type | Required | Default | Possible Values | Description |
2140
+ | -------- | -------- | -------- | ------- | --------------- | ---------------------------------------------- |
2141
+ | `<path>` | `string` | ✅ | — | — | Absolute path to delete (must start with `/`). |
2142
+
2143
+ **Usage:**
2144
+
2145
+ ```bash
2146
+ npx zapier-sdk delete-vfs-path <path>
2147
+ ```
2148
+
2149
+ #### `list-vfs-directory` 🧪 _experimental_
2150
+
2151
+ List one page of a directory's contents in the Zapier Virtual File System (VFS). Paths are absolute (e.g. `/Mine`). Pass the previous page's `nextCursor` back in `cursor` to fetch the next page.
2152
+
2153
+ **Options:**
2154
+
2155
+ | Option | Type | Required | Default | Possible Values | Description |
2156
+ | ------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------- |
2157
+ | `<path>` | `string` | ✅ | — | — | Absolute path of the directory (must start with `/`). |
2158
+ | `--page-size` | `number` | ❌ | — | — | Entries per page (default 50, max 500). |
2159
+ | `--max-items` | `number` | ❌ | — | — | Maximum total entries to return across all pages. |
2160
+ | `--cursor` | `string` | ❌ | — | — | Cursor to resume from, as returned in `nextCursor`. |
2161
+
2162
+ **Usage:**
2163
+
2164
+ ```bash
2165
+ npx zapier-sdk list-vfs-directory <path> [--page-size] [--max-items] [--cursor]
2166
+ ```
2167
+
2168
+ #### `move-vfs-path` 🧪 _experimental_
2169
+
2170
+ Move (rename) a file or directory in the Zapier Virtual File System (VFS). Both `from` and `to` are absolute paths (e.g. `/Mine/notes.md`). Fails if an entry already exists at `to` — delete or rename it first.
2171
+
2172
+ **Options:**
2173
+
2174
+ | Option | Type | Required | Default | Possible Values | Description |
2175
+ | -------- | -------- | -------- | ------- | --------------- | ---------------------------------- |
2176
+ | `<from>` | `string` | ✅ | — | — | Absolute path of the source entry. |
2177
+ | `<to>` | `string` | ✅ | — | — | New absolute path for the entry. |
2178
+
2179
+ **Usage:**
2180
+
2181
+ ```bash
2182
+ npx zapier-sdk move-vfs-path <from> <to>
2183
+ ```
2184
+
2185
+ #### `read-vfs-file` 🧪 _experimental_
2186
+
2187
+ Read a file from the Zapier Virtual File System (VFS), the file store behind your context repository. Paths are absolute, e.g. `/Mine/notes.md`. Returns the content as a UTF-8 string with its size, version, and last-modified time.
2188
+
2189
+ **Options:**
2190
+
2191
+ | Option | Type | Required | Default | Possible Values | Description |
2192
+ | ------------- | -------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------------------------------------------ |
2193
+ | `<path>` | `string` | ✅ | — | — | Absolute path of the file to read (must start with `/`). |
2194
+ | `--max-bytes` | `number` | ❌ | — | — | Optional cap on returned content length, in bytes. Files are capped at 10 MB, so values above that have no effect. |
2195
+
2196
+ **Usage:**
2197
+
2198
+ ```bash
2199
+ npx zapier-sdk read-vfs-file <path> [--max-bytes]
2200
+ ```
2201
+
2202
+ #### `stat-vfs-path` 🧪 _experimental_
2203
+
2204
+ Inspect metadata for any path (file, directory, shortcut, or stream) in the Zapier Virtual File System (VFS). Paths are absolute (e.g. `/Mine/notes.md`). Check the `type` field before reading fields that only exist for certain types.
2205
+
2206
+ **Options:**
2207
+
2208
+ | Option | Type | Required | Default | Possible Values | Description |
2209
+ | -------- | -------- | -------- | ------- | --------------- | -------------------------------------------- |
2210
+ | `<path>` | `string` | ✅ | — | — | Absolute path to stat (must start with `/`). |
2211
+
2212
+ **Usage:**
2213
+
2214
+ ```bash
2215
+ npx zapier-sdk stat-vfs-path <path>
2216
+ ```
2217
+
2218
+ #### `write-vfs-file` 🧪 _experimental_
2219
+
2220
+ Write (create or overwrite) a file in the Zapier Virtual File System (VFS). Paths are absolute (e.g. `/Mine/notes.md`); missing parent directories are created automatically.
2221
+
2222
+ **Options:**
2223
+
2224
+ | Option | Type | Required | Default | Possible Values | Description |
2225
+ | -------------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2226
+ | `<path>` | `string` | ✅ | — | — | Absolute path of the file (must start with `/`). |
2227
+ | `<content>` | `string` | ✅ | — | — | New file contents. Capped at 10 MB per call. |
2228
+ | `--expected-version` | `number` | ❌ | — | — | Optional expected current version for optimistic concurrency. The write fails if the file's actual version differs. Pass `0` to assert the file does not exist yet (versions start at 1). |
2229
+
2230
+ **Usage:**
2231
+
2232
+ ```bash
2233
+ npx zapier-sdk write-vfs-file <path> <content> [--expected-version]
2234
+ ```
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.80.2"};
605
+ version: "0.81.0"};
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.80.2"};
8688
+ version: "0.81.0"};
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.80.2"};
561
+ version: "0.81.0"};
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.80.2"};
8644
+ version: "0.81.0"};
8645
8645
 
8646
8646
  // src/sdk.ts
8647
8647
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -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.80.2"};
7181
+ version: "0.81.0"};
7182
7182
 
7183
7183
  // src/sdk.ts
7184
7184
  var warnedDeprecatedMethods = /* @__PURE__ */ new Set();
@@ -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.80.2"};
7140
+ version: "0.81.0"};
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.80.2"};
7182
+ version: "0.81.0"};
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.80.2"};
7266
+ version: "0.81.0"};
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.80.2"};
7141
+ version: "0.81.0"};
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.80.2"};
7225
+ version: "0.81.0"};
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.80.2",
3
+ "version": "0.81.0",
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": "0.107.2",
100
- "@zapier/zapier-sdk-mcp": "0.22.2"
99
+ "@zapier/zapier-sdk-mcp": "0.23.0",
100
+ "@zapier/zapier-sdk": "0.108.0"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@types/cross-spawn": "^6.0.6",