@zapier/zapier-sdk-cli 0.59.3 → 0.60.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 +12 -0
- package/dist/cli.cjs +51 -4
- package/dist/cli.mjs +52 -5
- package/dist/experimental.cjs +18 -2
- package/dist/experimental.mjs +19 -3
- package/dist/index.cjs +19 -3
- package/dist/index.mjs +20 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.60.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d67227b: Display trusted SDK deprecation notices from Zapier API responses. The SDK sniffs `zapier-sdk-deprecation-*` response headers (never on relay responses), warns once per notice id per process — with no opt-out — and emits an `api:deprecation_notice` event for wrappers. The CLI additionally renders notices as a boxed stderr warning after command output, and the MCP server attaches them to every tool result so agents relay the warning to users.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [d67227b]
|
|
12
|
+
- @zapier/zapier-sdk@0.79.0
|
|
13
|
+
- @zapier/zapier-sdk-mcp@0.16.0
|
|
14
|
+
|
|
3
15
|
## 0.59.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1579,7 +1579,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1579
1579
|
|
|
1580
1580
|
// package.json
|
|
1581
1581
|
var package_default = {
|
|
1582
|
-
version: "0.
|
|
1582
|
+
version: "0.60.0"};
|
|
1583
1583
|
|
|
1584
1584
|
// src/telemetry/builders.ts
|
|
1585
1585
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7262,11 +7262,49 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
7262
7262
|
};
|
|
7263
7263
|
}
|
|
7264
7264
|
);
|
|
7265
|
+
var BOX_WIDTH = 72;
|
|
7266
|
+
var BOX_TITLE = "ZAPIER SDK DEPRECATION NOTICE";
|
|
7267
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
7268
|
+
function collectDeprecationNotice(event) {
|
|
7269
|
+
if (event.type !== zapierSdk.DEPRECATION_NOTICE_EVENT) return;
|
|
7270
|
+
const { id, message } = event.payload ?? {};
|
|
7271
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
7272
|
+
activeNotices.set(id, message);
|
|
7273
|
+
}
|
|
7274
|
+
}
|
|
7275
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
7276
|
+
collectDeprecationNotice(event);
|
|
7277
|
+
return onEvent?.(event);
|
|
7278
|
+
}
|
|
7279
|
+
function renderDeprecationNotices() {
|
|
7280
|
+
const messages = [...activeNotices.values()];
|
|
7281
|
+
activeNotices.clear();
|
|
7282
|
+
if (messages.length === 0) return;
|
|
7283
|
+
console.error();
|
|
7284
|
+
for (const message of messages) {
|
|
7285
|
+
for (const line of buildBoxLines(message)) {
|
|
7286
|
+
console.error(chalk__default.default.red.bold(line));
|
|
7287
|
+
}
|
|
7288
|
+
console.error();
|
|
7289
|
+
}
|
|
7290
|
+
}
|
|
7291
|
+
function buildBoxLines(message) {
|
|
7292
|
+
const innerWidth = BOX_WIDTH - 4;
|
|
7293
|
+
const pad = (line) => `\u2502 ${line.padEnd(innerWidth)} \u2502`;
|
|
7294
|
+
const wrapped = wrapAnsi__default.default(message, innerWidth, { hard: true }).split("\n");
|
|
7295
|
+
return [
|
|
7296
|
+
`\u256D${"\u2500".repeat(BOX_WIDTH - 2)}\u256E`,
|
|
7297
|
+
pad(BOX_TITLE),
|
|
7298
|
+
pad(""),
|
|
7299
|
+
...wrapped.map(pad),
|
|
7300
|
+
`\u2570${"\u2500".repeat(BOX_WIDTH - 2)}\u256F`
|
|
7301
|
+
];
|
|
7302
|
+
}
|
|
7265
7303
|
|
|
7266
7304
|
// package.json with { type: 'json' }
|
|
7267
7305
|
var package_default2 = {
|
|
7268
7306
|
name: "@zapier/zapier-sdk-cli",
|
|
7269
|
-
version: "0.
|
|
7307
|
+
version: "0.60.0"};
|
|
7270
7308
|
|
|
7271
7309
|
// src/sdk.ts
|
|
7272
7310
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -7278,7 +7316,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
7278
7316
|
const stack = zapierSdk.createZapierSdkStack({
|
|
7279
7317
|
...sdkOptions,
|
|
7280
7318
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
7281
|
-
callerPackage: { name: package_default2.name, version: package_default2.version }
|
|
7319
|
+
callerPackage: { name: package_default2.name, version: package_default2.version },
|
|
7320
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
7321
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
7322
|
+
// cannot be hidden by any rendering path.
|
|
7323
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
7282
7324
|
}).use(extensionsContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
7283
7325
|
const sdk = zapierSdk.createSdk(
|
|
7284
7326
|
zapierSdk.defineLegacyMerge({
|
|
@@ -7311,7 +7353,11 @@ function createZapierCliSdk2(options = {}) {
|
|
|
7311
7353
|
const stack = experimental.createZapierSdkStack({
|
|
7312
7354
|
...sdkOptions,
|
|
7313
7355
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
7314
|
-
callerPackage: { name: package_default2.name, version: package_default2.version }
|
|
7356
|
+
callerPackage: { name: package_default2.name, version: package_default2.version },
|
|
7357
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
7358
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
7359
|
+
// cannot be hidden by any rendering path.
|
|
7360
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
7315
7361
|
}).use(extensionsContextPlugin).use(experimentalContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(drainTriggerInboxCliPlugin, { override: true }).use(watchTriggerInboxCliPlugin, { override: true }).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
7316
7362
|
const sdk = experimental.createSdk(
|
|
7317
7363
|
experimental.defineLegacyMerge({
|
|
@@ -7895,6 +7941,7 @@ program.exitOverride();
|
|
|
7895
7941
|
}
|
|
7896
7942
|
await versionCheckPromise;
|
|
7897
7943
|
await sdk.context.eventEmission.close(exitCode);
|
|
7944
|
+
renderDeprecationNotices();
|
|
7898
7945
|
const exitTimeout = setTimeout(
|
|
7899
7946
|
() => process.exit(exitCode),
|
|
7900
7947
|
EXIT_GRACE_PERIOD_MS
|
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, createSdk as createSdk$1, defineLegacyMerge as defineLegacyMerge$1, zapierSdkPlugin as zapierSdkPlugin$1, addPlugin as addPlugin$1, ZapierError, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, runWithCallerContext, 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, createSdk as createSdk$1, defineLegacyMerge as defineLegacyMerge$1, zapierSdkPlugin as zapierSdkPlugin$1, addPlugin as addPlugin$1, ZapierError, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, DEPRECATION_NOTICE_EVENT, 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';
|
|
@@ -1536,7 +1536,7 @@ var SHARED_COMMAND_CLI_OPTIONS = [
|
|
|
1536
1536
|
|
|
1537
1537
|
// package.json
|
|
1538
1538
|
var package_default = {
|
|
1539
|
-
version: "0.
|
|
1539
|
+
version: "0.60.0"};
|
|
1540
1540
|
|
|
1541
1541
|
// src/telemetry/builders.ts
|
|
1542
1542
|
function createCliBaseEvent(context = {}) {
|
|
@@ -7219,11 +7219,49 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
7219
7219
|
};
|
|
7220
7220
|
}
|
|
7221
7221
|
);
|
|
7222
|
+
var BOX_WIDTH = 72;
|
|
7223
|
+
var BOX_TITLE = "ZAPIER SDK DEPRECATION NOTICE";
|
|
7224
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
7225
|
+
function collectDeprecationNotice(event) {
|
|
7226
|
+
if (event.type !== DEPRECATION_NOTICE_EVENT) return;
|
|
7227
|
+
const { id, message } = event.payload ?? {};
|
|
7228
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
7229
|
+
activeNotices.set(id, message);
|
|
7230
|
+
}
|
|
7231
|
+
}
|
|
7232
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
7233
|
+
collectDeprecationNotice(event);
|
|
7234
|
+
return onEvent?.(event);
|
|
7235
|
+
}
|
|
7236
|
+
function renderDeprecationNotices() {
|
|
7237
|
+
const messages = [...activeNotices.values()];
|
|
7238
|
+
activeNotices.clear();
|
|
7239
|
+
if (messages.length === 0) return;
|
|
7240
|
+
console.error();
|
|
7241
|
+
for (const message of messages) {
|
|
7242
|
+
for (const line of buildBoxLines(message)) {
|
|
7243
|
+
console.error(chalk.red.bold(line));
|
|
7244
|
+
}
|
|
7245
|
+
console.error();
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7248
|
+
function buildBoxLines(message) {
|
|
7249
|
+
const innerWidth = BOX_WIDTH - 4;
|
|
7250
|
+
const pad = (line) => `\u2502 ${line.padEnd(innerWidth)} \u2502`;
|
|
7251
|
+
const wrapped = wrapAnsi(message, innerWidth, { hard: true }).split("\n");
|
|
7252
|
+
return [
|
|
7253
|
+
`\u256D${"\u2500".repeat(BOX_WIDTH - 2)}\u256E`,
|
|
7254
|
+
pad(BOX_TITLE),
|
|
7255
|
+
pad(""),
|
|
7256
|
+
...wrapped.map(pad),
|
|
7257
|
+
`\u2570${"\u2500".repeat(BOX_WIDTH - 2)}\u256F`
|
|
7258
|
+
];
|
|
7259
|
+
}
|
|
7222
7260
|
|
|
7223
7261
|
// package.json with { type: 'json' }
|
|
7224
7262
|
var package_default2 = {
|
|
7225
7263
|
name: "@zapier/zapier-sdk-cli",
|
|
7226
|
-
version: "0.
|
|
7264
|
+
version: "0.60.0"};
|
|
7227
7265
|
|
|
7228
7266
|
// src/sdk.ts
|
|
7229
7267
|
injectCliLogin(login_exports);
|
|
@@ -7235,7 +7273,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
7235
7273
|
const stack = createZapierSdkStack$1({
|
|
7236
7274
|
...sdkOptions,
|
|
7237
7275
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
7238
|
-
callerPackage: { name: package_default2.name, version: package_default2.version }
|
|
7276
|
+
callerPackage: { name: package_default2.name, version: package_default2.version },
|
|
7277
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
7278
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
7279
|
+
// cannot be hidden by any rendering path.
|
|
7280
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
7239
7281
|
}).use(extensionsContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
7240
7282
|
const sdk = createSdk$1(
|
|
7241
7283
|
defineLegacyMerge$1({
|
|
@@ -7268,7 +7310,11 @@ function createZapierCliSdk2(options = {}) {
|
|
|
7268
7310
|
const stack = createZapierSdkStack({
|
|
7269
7311
|
...sdkOptions,
|
|
7270
7312
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
7271
|
-
callerPackage: { name: package_default2.name, version: package_default2.version }
|
|
7313
|
+
callerPackage: { name: package_default2.name, version: package_default2.version },
|
|
7314
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
7315
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
7316
|
+
// cannot be hidden by any rendering path.
|
|
7317
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
7272
7318
|
}).use(extensionsContextPlugin).use(experimentalContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(drainTriggerInboxCliPlugin, { override: true }).use(watchTriggerInboxCliPlugin, { override: true }).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
7273
7319
|
const sdk = createSdk(
|
|
7274
7320
|
defineLegacyMerge({
|
|
@@ -7852,6 +7898,7 @@ program.exitOverride();
|
|
|
7852
7898
|
}
|
|
7853
7899
|
await versionCheckPromise;
|
|
7854
7900
|
await sdk.context.eventEmission.close(exitCode);
|
|
7901
|
+
renderDeprecationNotices();
|
|
7855
7902
|
const exitTimeout = setTimeout(
|
|
7856
7903
|
() => process.exit(exitCode),
|
|
7857
7904
|
EXIT_GRACE_PERIOD_MS
|
package/dist/experimental.cjs
CHANGED
|
@@ -4590,11 +4590,23 @@ var watchTriggerInboxCliPlugin = zapierSdk.definePlugin(
|
|
|
4590
4590
|
};
|
|
4591
4591
|
}
|
|
4592
4592
|
);
|
|
4593
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
4594
|
+
function collectDeprecationNotice(event) {
|
|
4595
|
+
if (event.type !== zapierSdk.DEPRECATION_NOTICE_EVENT) return;
|
|
4596
|
+
const { id, message } = event.payload ?? {};
|
|
4597
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
4598
|
+
activeNotices.set(id, message);
|
|
4599
|
+
}
|
|
4600
|
+
}
|
|
4601
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
4602
|
+
collectDeprecationNotice(event);
|
|
4603
|
+
return onEvent?.(event);
|
|
4604
|
+
}
|
|
4593
4605
|
|
|
4594
4606
|
// package.json with { type: 'json' }
|
|
4595
4607
|
var package_default = {
|
|
4596
4608
|
name: "@zapier/zapier-sdk-cli",
|
|
4597
|
-
version: "0.
|
|
4609
|
+
version: "0.60.0"};
|
|
4598
4610
|
|
|
4599
4611
|
// src/experimental.ts
|
|
4600
4612
|
experimental.injectCliLogin(login_exports);
|
|
@@ -4609,7 +4621,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
4609
4621
|
const stack = experimental.createZapierSdkStack({
|
|
4610
4622
|
...sdkOptions,
|
|
4611
4623
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
4612
|
-
callerPackage: { name: package_default.name, version: package_default.version }
|
|
4624
|
+
callerPackage: { name: package_default.name, version: package_default.version },
|
|
4625
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
4626
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
4627
|
+
// cannot be hidden by any rendering path.
|
|
4628
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
4613
4629
|
}).use(extensionsContextPlugin).use(experimentalContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(drainTriggerInboxCliPlugin, { override: true }).use(watchTriggerInboxCliPlugin, { override: true }).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
4614
4630
|
const sdk = experimental.createSdk(
|
|
4615
4631
|
experimental.defineLegacyMerge({
|
package/dist/experimental.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, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, ZapierError } from '@zapier/zapier-sdk';
|
|
10
|
+
import { definePlugin, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, ZapierError, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { injectCliLogin, createZapierSdkStack, createSdk, defineLegacyMerge, zapierSdkPlugin, addPlugin } from '@zapier/zapier-sdk/experimental';
|
|
13
13
|
import { hostname } from 'os';
|
|
@@ -4554,11 +4554,23 @@ var watchTriggerInboxCliPlugin = definePlugin(
|
|
|
4554
4554
|
};
|
|
4555
4555
|
}
|
|
4556
4556
|
);
|
|
4557
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
4558
|
+
function collectDeprecationNotice(event) {
|
|
4559
|
+
if (event.type !== DEPRECATION_NOTICE_EVENT) return;
|
|
4560
|
+
const { id, message } = event.payload ?? {};
|
|
4561
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
4562
|
+
activeNotices.set(id, message);
|
|
4563
|
+
}
|
|
4564
|
+
}
|
|
4565
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
4566
|
+
collectDeprecationNotice(event);
|
|
4567
|
+
return onEvent?.(event);
|
|
4568
|
+
}
|
|
4557
4569
|
|
|
4558
4570
|
// package.json with { type: 'json' }
|
|
4559
4571
|
var package_default = {
|
|
4560
4572
|
name: "@zapier/zapier-sdk-cli",
|
|
4561
|
-
version: "0.
|
|
4573
|
+
version: "0.60.0"};
|
|
4562
4574
|
|
|
4563
4575
|
// src/experimental.ts
|
|
4564
4576
|
injectCliLogin(login_exports);
|
|
@@ -4573,7 +4585,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
4573
4585
|
const stack = createZapierSdkStack({
|
|
4574
4586
|
...sdkOptions,
|
|
4575
4587
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
4576
|
-
callerPackage: { name: package_default.name, version: package_default.version }
|
|
4588
|
+
callerPackage: { name: package_default.name, version: package_default.version },
|
|
4589
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
4590
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
4591
|
+
// cannot be hidden by any rendering path.
|
|
4592
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
4577
4593
|
}).use(extensionsContextPlugin).use(experimentalContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(drainTriggerInboxCliPlugin, { override: true }).use(watchTriggerInboxCliPlugin, { override: true }).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
4578
4594
|
const sdk = createSdk(
|
|
4579
4595
|
defineLegacyMerge({
|
package/dist/index.cjs
CHANGED
|
@@ -4589,11 +4589,23 @@ zapierSdk.definePlugin(
|
|
|
4589
4589
|
};
|
|
4590
4590
|
}
|
|
4591
4591
|
);
|
|
4592
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
4593
|
+
function collectDeprecationNotice(event) {
|
|
4594
|
+
if (event.type !== zapierSdk.DEPRECATION_NOTICE_EVENT) return;
|
|
4595
|
+
const { id, message } = event.payload ?? {};
|
|
4596
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
4597
|
+
activeNotices.set(id, message);
|
|
4598
|
+
}
|
|
4599
|
+
}
|
|
4600
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
4601
|
+
collectDeprecationNotice(event);
|
|
4602
|
+
return onEvent?.(event);
|
|
4603
|
+
}
|
|
4592
4604
|
|
|
4593
4605
|
// package.json with { type: 'json' }
|
|
4594
4606
|
var package_default = {
|
|
4595
4607
|
name: "@zapier/zapier-sdk-cli",
|
|
4596
|
-
version: "0.
|
|
4608
|
+
version: "0.60.0"};
|
|
4597
4609
|
|
|
4598
4610
|
// src/sdk.ts
|
|
4599
4611
|
zapierSdk.injectCliLogin(login_exports);
|
|
@@ -4605,7 +4617,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
4605
4617
|
const stack = zapierSdk.createZapierSdkStack({
|
|
4606
4618
|
...sdkOptions,
|
|
4607
4619
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
4608
|
-
callerPackage: { name: package_default.name, version: package_default.version }
|
|
4620
|
+
callerPackage: { name: package_default.name, version: package_default.version },
|
|
4621
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
4622
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
4623
|
+
// cannot be hidden by any rendering path.
|
|
4624
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
4609
4625
|
}).use(extensionsContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
4610
4626
|
const sdk = zapierSdk.createSdk(
|
|
4611
4627
|
zapierSdk.defineLegacyMerge({
|
|
@@ -4629,7 +4645,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4629
4645
|
|
|
4630
4646
|
// package.json
|
|
4631
4647
|
var package_default2 = {
|
|
4632
|
-
version: "0.
|
|
4648
|
+
version: "0.60.0"};
|
|
4633
4649
|
|
|
4634
4650
|
// src/telemetry/builders.ts
|
|
4635
4651
|
function createCliBaseEvent(context = {}) {
|
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, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, injectCliLogin, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, ZapierError, createZapierSdkStack, createSdk, defineLegacyMerge, zapierSdkPlugin, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId } from '@zapier/zapier-sdk';
|
|
10
|
+
import { definePlugin, createPluginMethod, OutputPropertySchema, ZapierBundleError, DEFAULT_CONFIG_PATH, ZapierValidationError, ZapierUnknownError, ZapierReleaseTriggerMessageSignal, injectCliLogin, getOrCreateApiClient, isPermanentHttpError, invalidateCachedToken, batch, toSnakeCase, ZapierAbortDrainSignal, isCredentialsObject, buildApplicationLifecycleEvent, AuthMechanism, ZapierAuthenticationError, ZapierError, createZapierSdkStack, createSdk, defineLegacyMerge, zapierSdkPlugin, addPlugin, getOsInfo, getPlatformVersions, getAgent, getTtyContext, getCiPlatform, isCi, getReleaseId, getCurrentTimestamp, generateEventId, DEPRECATION_NOTICE_EVENT } from '@zapier/zapier-sdk';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
import { hostname } from 'os';
|
|
13
13
|
import inquirer from 'inquirer';
|
|
@@ -4553,11 +4553,23 @@ definePlugin(
|
|
|
4553
4553
|
};
|
|
4554
4554
|
}
|
|
4555
4555
|
);
|
|
4556
|
+
var activeNotices = /* @__PURE__ */ new Map();
|
|
4557
|
+
function collectDeprecationNotice(event) {
|
|
4558
|
+
if (event.type !== DEPRECATION_NOTICE_EVENT) return;
|
|
4559
|
+
const { id, message } = event.payload ?? {};
|
|
4560
|
+
if (typeof id === "string" && typeof message === "string") {
|
|
4561
|
+
activeNotices.set(id, message);
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4564
|
+
function collectDeprecationNoticeAndForward(event, onEvent) {
|
|
4565
|
+
collectDeprecationNotice(event);
|
|
4566
|
+
return onEvent?.(event);
|
|
4567
|
+
}
|
|
4556
4568
|
|
|
4557
4569
|
// package.json with { type: 'json' }
|
|
4558
4570
|
var package_default = {
|
|
4559
4571
|
name: "@zapier/zapier-sdk-cli",
|
|
4560
|
-
version: "0.
|
|
4572
|
+
version: "0.60.0"};
|
|
4561
4573
|
|
|
4562
4574
|
// src/sdk.ts
|
|
4563
4575
|
injectCliLogin(login_exports);
|
|
@@ -4569,7 +4581,11 @@ function createZapierCliSdk(options = {}) {
|
|
|
4569
4581
|
const stack = createZapierSdkStack({
|
|
4570
4582
|
...sdkOptions,
|
|
4571
4583
|
eventEmission: { ...sdkOptions.eventEmission, callContext: "cli" },
|
|
4572
|
-
callerPackage: { name: package_default.name, version: package_default.version }
|
|
4584
|
+
callerPackage: { name: package_default.name, version: package_default.version },
|
|
4585
|
+
// Collected for the boxed stderr warning rendered in the exit path. The
|
|
4586
|
+
// box is additive: the SDK's own inline warn still fires, so the notice
|
|
4587
|
+
// cannot be hidden by any rendering path.
|
|
4588
|
+
onEvent: (event) => collectDeprecationNoticeAndForward(event, sdkOptions.onEvent)
|
|
4573
4589
|
}).use(extensionsContextPlugin).use(generateAppTypesPlugin).use(buildManifestPlugin).use(bundleCodePlugin).use(getLoginConfigPathPlugin).use(addAppsPlugin).use(feedbackPlugin).use(curlPlugin).use(initPlugin).use(mcpPlugin).use(loginPlugin).use(signupPlugin).use(logoutPlugin).use(cliOverridesPlugin, { override: true });
|
|
4574
4590
|
const sdk = createSdk(
|
|
4575
4591
|
defineLegacyMerge({
|
|
@@ -4593,7 +4609,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
4593
4609
|
|
|
4594
4610
|
// package.json
|
|
4595
4611
|
var package_default2 = {
|
|
4596
|
-
version: "0.
|
|
4612
|
+
version: "0.60.0"};
|
|
4597
4613
|
|
|
4598
4614
|
// src/telemetry/builders.ts
|
|
4599
4615
|
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.60.0",
|
|
4
4
|
"description": "Command line interface for Zapier SDK",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -95,8 +95,8 @@
|
|
|
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/zapier-sdk-mcp": "0.
|
|
98
|
+
"@zapier/zapier-sdk": "0.79.0",
|
|
99
|
+
"@zapier/zapier-sdk-mcp": "0.16.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@types/express": "^5.0.3",
|