@fern-api/fern-api-dev 4.67.1-2-g977810b1542 → 4.67.1-34-g9db0a8f4b9a
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/cli.cjs +75 -67
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -405313,9 +405313,9 @@ var require_file2 = __commonJS({
|
|
|
405313
405313
|
}
|
|
405314
405314
|
});
|
|
405315
405315
|
|
|
405316
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405316
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseControlResponse.js
|
|
405317
405317
|
var require_parseControlResponse = __commonJS({
|
|
405318
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405318
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseControlResponse.js"(exports2) {
|
|
405319
405319
|
"use strict";
|
|
405320
405320
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405321
405321
|
exports2.parseControlResponse = parseControlResponse;
|
|
@@ -405365,9 +405365,9 @@ var require_parseControlResponse = __commonJS({
|
|
|
405365
405365
|
}
|
|
405366
405366
|
});
|
|
405367
405367
|
|
|
405368
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405368
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/FtpContext.js
|
|
405369
405369
|
var require_FtpContext = __commonJS({
|
|
405370
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405370
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/FtpContext.js"(exports2) {
|
|
405371
405371
|
"use strict";
|
|
405372
405372
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405373
405373
|
exports2.FTPContext = exports2.FTPError = void 0;
|
|
@@ -405509,6 +405509,9 @@ var require_FtpContext = __commonJS({
|
|
|
405509
405509
|
* Send an FTP command without waiting for or handling the result.
|
|
405510
405510
|
*/
|
|
405511
405511
|
send(command3) {
|
|
405512
|
+
if (/[\r\n\0]/.test(command3)) {
|
|
405513
|
+
throw new Error(`Invalid command: Contains control characters. (${command3})`);
|
|
405514
|
+
}
|
|
405512
405515
|
const containsPassword = command3.startsWith("PASS");
|
|
405513
405516
|
const message = containsPassword ? "> PASS ###" : `> ${command3}`;
|
|
405514
405517
|
this.log(message);
|
|
@@ -405682,9 +405685,9 @@ Closing reason: ${this._closingError.stack}`;
|
|
|
405682
405685
|
}
|
|
405683
405686
|
});
|
|
405684
405687
|
|
|
405685
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405688
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/FileInfo.js
|
|
405686
405689
|
var require_FileInfo = __commonJS({
|
|
405687
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405690
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/FileInfo.js"(exports2) {
|
|
405688
405691
|
"use strict";
|
|
405689
405692
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405690
405693
|
exports2.FileInfo = exports2.FileType = void 0;
|
|
@@ -405739,9 +405742,9 @@ var require_FileInfo = __commonJS({
|
|
|
405739
405742
|
}
|
|
405740
405743
|
});
|
|
405741
405744
|
|
|
405742
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405745
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListDOS.js
|
|
405743
405746
|
var require_parseListDOS = __commonJS({
|
|
405744
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405747
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListDOS.js"(exports2) {
|
|
405745
405748
|
"use strict";
|
|
405746
405749
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405747
405750
|
exports2.testLine = testLine;
|
|
@@ -405782,9 +405785,9 @@ var require_parseListDOS = __commonJS({
|
|
|
405782
405785
|
}
|
|
405783
405786
|
});
|
|
405784
405787
|
|
|
405785
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405788
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListUnix.js
|
|
405786
405789
|
var require_parseListUnix = __commonJS({
|
|
405787
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405790
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListUnix.js"(exports2) {
|
|
405788
405791
|
"use strict";
|
|
405789
405792
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405790
405793
|
exports2.testLine = testLine;
|
|
@@ -405868,9 +405871,9 @@ var require_parseListUnix = __commonJS({
|
|
|
405868
405871
|
}
|
|
405869
405872
|
});
|
|
405870
405873
|
|
|
405871
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405874
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListMLSD.js
|
|
405872
405875
|
var require_parseListMLSD = __commonJS({
|
|
405873
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
405876
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseListMLSD.js"(exports2) {
|
|
405874
405877
|
"use strict";
|
|
405875
405878
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
405876
405879
|
exports2.testLine = testLine;
|
|
@@ -406033,9 +406036,9 @@ var require_parseListMLSD = __commonJS({
|
|
|
406033
406036
|
}
|
|
406034
406037
|
});
|
|
406035
406038
|
|
|
406036
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406039
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseList.js
|
|
406037
406040
|
var require_parseList = __commonJS({
|
|
406038
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406041
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/parseList.js"(exports2) {
|
|
406039
406042
|
"use strict";
|
|
406040
406043
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o14, m11, k19, k23) {
|
|
406041
406044
|
if (k23 === void 0) k23 = k19;
|
|
@@ -406111,9 +406114,9 @@ var require_parseList = __commonJS({
|
|
|
406111
406114
|
}
|
|
406112
406115
|
});
|
|
406113
406116
|
|
|
406114
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406117
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/ProgressTracker.js
|
|
406115
406118
|
var require_ProgressTracker = __commonJS({
|
|
406116
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406119
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/ProgressTracker.js"(exports2) {
|
|
406117
406120
|
"use strict";
|
|
406118
406121
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406119
406122
|
exports2.ProgressTracker = void 0;
|
|
@@ -406182,9 +406185,9 @@ var require_ProgressTracker = __commonJS({
|
|
|
406182
406185
|
}
|
|
406183
406186
|
});
|
|
406184
406187
|
|
|
406185
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406188
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/StringWriter.js
|
|
406186
406189
|
var require_StringWriter = __commonJS({
|
|
406187
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406190
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/StringWriter.js"(exports2) {
|
|
406188
406191
|
"use strict";
|
|
406189
406192
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406190
406193
|
exports2.StringWriter = void 0;
|
|
@@ -406210,9 +406213,9 @@ var require_StringWriter = __commonJS({
|
|
|
406210
406213
|
}
|
|
406211
406214
|
});
|
|
406212
406215
|
|
|
406213
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406216
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/netUtils.js
|
|
406214
406217
|
var require_netUtils = __commonJS({
|
|
406215
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406218
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
406216
406219
|
"use strict";
|
|
406217
406220
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406218
406221
|
exports2.describeTLS = describeTLS;
|
|
@@ -406261,9 +406264,9 @@ var require_netUtils = __commonJS({
|
|
|
406261
406264
|
}
|
|
406262
406265
|
});
|
|
406263
406266
|
|
|
406264
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406267
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/transfer.js
|
|
406265
406268
|
var require_transfer = __commonJS({
|
|
406266
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406269
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/transfer.js"(exports2) {
|
|
406267
406270
|
"use strict";
|
|
406268
406271
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406269
406272
|
exports2.enterPassiveModeIPv6 = enterPassiveModeIPv6;
|
|
@@ -406513,9 +406516,9 @@ var require_transfer = __commonJS({
|
|
|
406513
406516
|
}
|
|
406514
406517
|
});
|
|
406515
406518
|
|
|
406516
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406519
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/Client.js
|
|
406517
406520
|
var require_Client14 = __commonJS({
|
|
406518
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
406521
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/Client.js"(exports2) {
|
|
406519
406522
|
"use strict";
|
|
406520
406523
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
406521
406524
|
exports2.Client = void 0;
|
|
@@ -407147,9 +407150,6 @@ var require_Client14 = __commonJS({
|
|
|
407147
407150
|
* a given path to fix that issue for most cases.
|
|
407148
407151
|
*/
|
|
407149
407152
|
async protectWhitespace(path97) {
|
|
407150
|
-
if (/[\r\n\0]/.test(path97)) {
|
|
407151
|
-
throw new Error("Invalid path: Contains control characters");
|
|
407152
|
-
}
|
|
407153
407153
|
if (!path97.startsWith(" ")) {
|
|
407154
407154
|
return path97;
|
|
407155
407155
|
}
|
|
@@ -407249,17 +407249,17 @@ var require_Client14 = __commonJS({
|
|
|
407249
407249
|
}
|
|
407250
407250
|
});
|
|
407251
407251
|
|
|
407252
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
407252
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/StringEncoding.js
|
|
407253
407253
|
var require_StringEncoding = __commonJS({
|
|
407254
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
407254
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/StringEncoding.js"(exports2) {
|
|
407255
407255
|
"use strict";
|
|
407256
407256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
407257
407257
|
}
|
|
407258
407258
|
});
|
|
407259
407259
|
|
|
407260
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
407260
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/index.js
|
|
407261
407261
|
var require_dist17 = __commonJS({
|
|
407262
|
-
"../../../node_modules/.pnpm/basic-ftp@5.2.
|
|
407262
|
+
"../../../node_modules/.pnpm/basic-ftp@5.2.2/node_modules/basic-ftp/dist/index.js"(exports2) {
|
|
407263
407263
|
"use strict";
|
|
407264
407264
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o14, m11, k19, k23) {
|
|
407265
407265
|
if (k23 === void 0) k23 = k19;
|
|
@@ -627553,7 +627553,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627553
627553
|
properties: {
|
|
627554
627554
|
...event,
|
|
627555
627555
|
...event.properties,
|
|
627556
|
-
version: "4.67.1-
|
|
627556
|
+
version: "4.67.1-34-g9db0a8f4b9a",
|
|
627557
627557
|
usingAccessToken: true
|
|
627558
627558
|
}
|
|
627559
627559
|
});
|
|
@@ -627604,7 +627604,7 @@ var UserPosthogManager = class {
|
|
|
627604
627604
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627605
627605
|
event: "CLI",
|
|
627606
627606
|
properties: {
|
|
627607
|
-
version: "4.67.1-
|
|
627607
|
+
version: "4.67.1-34-g9db0a8f4b9a",
|
|
627608
627608
|
...event,
|
|
627609
627609
|
...event.properties,
|
|
627610
627610
|
usingAccessToken: false,
|
|
@@ -631028,13 +631028,18 @@ var import_path46 = require("path");
|
|
|
631028
631028
|
var Version2 = "*";
|
|
631029
631029
|
|
|
631030
631030
|
// ../cli-v2/lib/telemetry/TelemetryClient.js
|
|
631031
|
-
var TelemetryClient = class {
|
|
631031
|
+
var TelemetryClient = class _TelemetryClient {
|
|
631032
631032
|
posthog;
|
|
631033
631033
|
sentry;
|
|
631034
631034
|
baseTags;
|
|
631035
631035
|
accumulatedTags = {};
|
|
631036
|
-
|
|
631037
|
-
|
|
631036
|
+
distinctId;
|
|
631037
|
+
static async create({ isTTY }) {
|
|
631038
|
+
const distinctId = await _TelemetryClient.getDistinctId();
|
|
631039
|
+
return new _TelemetryClient({ isTTY, distinctId });
|
|
631040
|
+
}
|
|
631041
|
+
constructor({ isTTY, distinctId }) {
|
|
631042
|
+
this.distinctId = distinctId;
|
|
631038
631043
|
const isTelemetryEnabled = this.isTelemetryEnabled();
|
|
631039
631044
|
const apiKey = null;
|
|
631040
631045
|
this.baseTags = {
|
|
@@ -631064,13 +631069,13 @@ var TelemetryClient = class {
|
|
|
631064
631069
|
}
|
|
631065
631070
|
}
|
|
631066
631071
|
/** Send a named event that inherits base + accumulated properties. */
|
|
631067
|
-
|
|
631072
|
+
sendEvent(event, tags) {
|
|
631068
631073
|
if (this.posthog == null) {
|
|
631069
631074
|
return;
|
|
631070
631075
|
}
|
|
631071
631076
|
try {
|
|
631072
631077
|
this.posthog.capture({
|
|
631073
|
-
distinctId:
|
|
631078
|
+
distinctId: this.distinctId,
|
|
631074
631079
|
event,
|
|
631075
631080
|
properties: { ...this.baseTags, ...this.accumulatedTags, ...tags }
|
|
631076
631081
|
});
|
|
@@ -631081,13 +631086,13 @@ var TelemetryClient = class {
|
|
|
631081
631086
|
*
|
|
631082
631087
|
* This is not meant to be called directly by command handlers.
|
|
631083
631088
|
*/
|
|
631084
|
-
|
|
631089
|
+
sendLifecycleEvent(event) {
|
|
631085
631090
|
if (this.posthog == null) {
|
|
631086
631091
|
return;
|
|
631087
631092
|
}
|
|
631088
631093
|
try {
|
|
631089
631094
|
this.posthog.capture({
|
|
631090
|
-
distinctId:
|
|
631095
|
+
distinctId: this.distinctId,
|
|
631091
631096
|
event: "cli",
|
|
631092
631097
|
properties: {
|
|
631093
631098
|
...this.baseTags,
|
|
@@ -631108,14 +631113,14 @@ var TelemetryClient = class {
|
|
|
631108
631113
|
* The caller is responsible for deciding which errors are worth reporting
|
|
631109
631114
|
* (see `shouldReportToSentry` in withContext.ts).
|
|
631110
631115
|
*/
|
|
631111
|
-
|
|
631116
|
+
captureException(error50) {
|
|
631112
631117
|
if (this.sentry === void 0) {
|
|
631113
631118
|
return;
|
|
631114
631119
|
}
|
|
631115
631120
|
try {
|
|
631116
631121
|
this.sentry.captureException(error50, {
|
|
631117
631122
|
captureContext: {
|
|
631118
|
-
user: { id:
|
|
631123
|
+
user: { id: this.distinctId },
|
|
631119
631124
|
tags: { ...this.baseTags, ...this.accumulatedTags }
|
|
631120
631125
|
}
|
|
631121
631126
|
});
|
|
@@ -631132,30 +631137,28 @@ var TelemetryClient = class {
|
|
|
631132
631137
|
}
|
|
631133
631138
|
await Promise.all(promises);
|
|
631134
631139
|
}
|
|
631135
|
-
async getDistinctId() {
|
|
631136
|
-
|
|
631137
|
-
|
|
631138
|
-
}
|
|
631139
|
-
const distinctIdFilepath = this.getDistinctIdFilepath();
|
|
631140
|
+
static async getDistinctId() {
|
|
631141
|
+
const distinctIdFilepath = _TelemetryClient.getDistinctIdFilepath();
|
|
631142
|
+
let distinctId = null;
|
|
631140
631143
|
try {
|
|
631141
631144
|
if (!await doesPathExist(distinctIdFilepath)) {
|
|
631142
631145
|
await (0, import_promises49.mkdir)((0, import_path46.dirname)(distinctIdFilepath), { recursive: true });
|
|
631143
631146
|
await (0, import_promises49.writeFile)(distinctIdFilepath, v4_default(), { flag: "wx" });
|
|
631144
631147
|
}
|
|
631145
631148
|
const content5 = (await (0, import_promises49.readFile)(distinctIdFilepath)).toString().trim();
|
|
631146
|
-
|
|
631149
|
+
distinctId = content5;
|
|
631147
631150
|
if (!validate_default(content5)) {
|
|
631148
631151
|
const newId = v4_default();
|
|
631149
631152
|
await (0, import_promises49.writeFile)(distinctIdFilepath, newId);
|
|
631150
|
-
|
|
631153
|
+
distinctId = newId;
|
|
631151
631154
|
}
|
|
631152
631155
|
} catch {
|
|
631153
|
-
|
|
631156
|
+
distinctId = v4_default();
|
|
631154
631157
|
}
|
|
631155
|
-
if (
|
|
631156
|
-
|
|
631158
|
+
if (distinctId == null || distinctId.length === 0) {
|
|
631159
|
+
distinctId = v4_default();
|
|
631157
631160
|
}
|
|
631158
|
-
return
|
|
631161
|
+
return distinctId;
|
|
631159
631162
|
}
|
|
631160
631163
|
/**
|
|
631161
631164
|
* The file that stores the distinct ID for the user (stored in ~/.fern/id).
|
|
@@ -631163,7 +631166,7 @@ var TelemetryClient = class {
|
|
|
631163
631166
|
* Note that all telemetry is anonymous, but we still use a shared distinct ID
|
|
631164
631167
|
* to correlate metrics from the same user/machine across multiple CLI invocations.
|
|
631165
631168
|
*/
|
|
631166
|
-
getDistinctIdFilepath() {
|
|
631169
|
+
static getDistinctIdFilepath() {
|
|
631167
631170
|
return join8(AbsoluteFilePath2.of((0, import_os8.homedir)()), RelativeFilePath2.of(".fern"), RelativeFilePath2.of("id"));
|
|
631168
631171
|
}
|
|
631169
631172
|
/**
|
|
@@ -632011,7 +632014,7 @@ ${"=".repeat(60)}
|
|
|
632011
632014
|
};
|
|
632012
632015
|
|
|
632013
632016
|
// ../cli-v2/lib/context/Context.js
|
|
632014
|
-
var Context = class {
|
|
632017
|
+
var Context = class _Context {
|
|
632015
632018
|
shutdownCallbacks = [];
|
|
632016
632019
|
isShuttingDown = false;
|
|
632017
632020
|
logFilePathPrinted = false;
|
|
@@ -632025,7 +632028,12 @@ var Context = class {
|
|
|
632025
632028
|
telemetry;
|
|
632026
632029
|
tokenService;
|
|
632027
632030
|
ttyAwareLogger;
|
|
632028
|
-
|
|
632031
|
+
static async create({ stdout, stderr, cwd: cwd2, logLevel }) {
|
|
632032
|
+
const ttyAwareLogger = new TtyAwareLogger(stdout, stderr);
|
|
632033
|
+
const telemetry = await TelemetryClient.create({ isTTY: ttyAwareLogger.isTTY });
|
|
632034
|
+
return new _Context({ stdout, stderr, cwd: cwd2, logLevel, ttyAwareLogger, telemetry });
|
|
632035
|
+
}
|
|
632036
|
+
constructor({ cwd: cwd2, logLevel, ttyAwareLogger, telemetry }) {
|
|
632029
632037
|
this.cwd = cwd2 ?? AbsoluteFilePath2.of(process.cwd());
|
|
632030
632038
|
this.logLevel = logLevel ?? LogLevel2.Info;
|
|
632031
632039
|
this.info = parseCommandInfo(process.argv);
|
|
@@ -632033,8 +632041,8 @@ var Context = class {
|
|
|
632033
632041
|
this.stderr = createLogger4((level, ...args) => this.logStderr(level, ...args));
|
|
632034
632042
|
this.cache = new Cache({ logger: this.stderr });
|
|
632035
632043
|
this.logs = new LogFileWriter(this.cache.logs.absoluteFilePath);
|
|
632036
|
-
this.ttyAwareLogger =
|
|
632037
|
-
this.telemetry =
|
|
632044
|
+
this.ttyAwareLogger = ttyAwareLogger;
|
|
632045
|
+
this.telemetry = telemetry;
|
|
632038
632046
|
this.tokenService = new TokenService({ credential: new CredentialStore() });
|
|
632039
632047
|
}
|
|
632040
632048
|
/**
|
|
@@ -632274,12 +632282,12 @@ var SIGINT_EXIT_CODE = SIGNAL_EXIT_CODE_BASE + 2;
|
|
|
632274
632282
|
var SIGTERM_EXIT_CODE = SIGNAL_EXIT_CODE_BASE + 15;
|
|
632275
632283
|
function withContext(handler3) {
|
|
632276
632284
|
return async (args) => {
|
|
632277
|
-
const context3 = createContext(args);
|
|
632285
|
+
const context3 = await createContext(args);
|
|
632278
632286
|
const startTime = Date.now();
|
|
632279
632287
|
setupSignalHandler(context3);
|
|
632280
632288
|
try {
|
|
632281
632289
|
await handler3(context3, args);
|
|
632282
|
-
|
|
632290
|
+
context3.telemetry.sendLifecycleEvent({
|
|
632283
632291
|
command: context3.info.command,
|
|
632284
632292
|
status: "success",
|
|
632285
632293
|
durationMs: Date.now() - startTime
|
|
@@ -632289,9 +632297,9 @@ function withContext(handler3) {
|
|
|
632289
632297
|
await exitGracefully(0);
|
|
632290
632298
|
} catch (error50) {
|
|
632291
632299
|
if (shouldReportToSentry(error50)) {
|
|
632292
|
-
|
|
632300
|
+
context3.telemetry.captureException(error50);
|
|
632293
632301
|
}
|
|
632294
|
-
|
|
632302
|
+
context3.telemetry.sendLifecycleEvent({
|
|
632295
632303
|
command: context3.info.command,
|
|
632296
632304
|
status: "error",
|
|
632297
632305
|
durationMs: Date.now() - startTime,
|
|
@@ -632304,9 +632312,9 @@ function withContext(handler3) {
|
|
|
632304
632312
|
}
|
|
632305
632313
|
};
|
|
632306
632314
|
}
|
|
632307
|
-
function createContext(options2) {
|
|
632315
|
+
async function createContext(options2) {
|
|
632308
632316
|
const logLevel = parseLogLevel(options2["log-level"] ?? "info");
|
|
632309
|
-
return
|
|
632317
|
+
return Context.create({
|
|
632310
632318
|
stdout: process.stdout,
|
|
632311
632319
|
stderr: process.stderr,
|
|
632312
632320
|
logLevel
|
|
@@ -843865,7 +843873,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843865
843873
|
var LOGS_FOLDER_NAME = "logs";
|
|
843866
843874
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843867
843875
|
function getCliSource() {
|
|
843868
|
-
const version7 = "4.67.1-
|
|
843876
|
+
const version7 = "4.67.1-34-g9db0a8f4b9a";
|
|
843869
843877
|
return `cli@${version7}`;
|
|
843870
843878
|
}
|
|
843871
843879
|
var DebugLogger = class {
|
|
@@ -855113,7 +855121,7 @@ var LegacyDocsPublisher = class {
|
|
|
855113
855121
|
previewId,
|
|
855114
855122
|
disableTemplates: void 0,
|
|
855115
855123
|
skipUpload,
|
|
855116
|
-
cliVersion: "4.67.1-
|
|
855124
|
+
cliVersion: "4.67.1-34-g9db0a8f4b9a"
|
|
855117
855125
|
});
|
|
855118
855126
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855119
855127
|
return { success: false };
|
|
@@ -928855,7 +928863,7 @@ var CliContext = class _CliContext {
|
|
|
928855
928863
|
if (false) {
|
|
928856
928864
|
this.logger.error("CLI_VERSION is not defined");
|
|
928857
928865
|
}
|
|
928858
|
-
return "4.67.1-
|
|
928866
|
+
return "4.67.1-34-g9db0a8f4b9a";
|
|
928859
928867
|
}
|
|
928860
928868
|
getCliName() {
|
|
928861
928869
|
if (false) {
|
package/package.json
CHANGED