@fern-api/fern-api-dev 5.18.1 → 5.19.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/cli.cjs +114 -41
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -386136,7 +386136,7 @@ var require_replay_init = __commonJS({
|
|
|
386136
386136
|
lockfileContent,
|
|
386137
386137
|
fernignoreEntries: fernignore_1.REPLAY_FERNIGNORE_ENTRIES,
|
|
386138
386138
|
gitattributesEntries: fernignore_1.GITATTRIBUTES_ENTRIES,
|
|
386139
|
-
prBody:
|
|
386139
|
+
prBody: buildPrBody2(bootstrapResult)
|
|
386140
386140
|
};
|
|
386141
386141
|
}
|
|
386142
386142
|
function formatBootstrapSummary3(result) {
|
|
@@ -386197,7 +386197,7 @@ var require_replay_init = __commonJS({
|
|
|
386197
386197
|
}
|
|
386198
386198
|
return entries24;
|
|
386199
386199
|
}
|
|
386200
|
-
function
|
|
386200
|
+
function buildPrBody2(result) {
|
|
386201
386201
|
const lines = [
|
|
386202
386202
|
"## Replay Initialization",
|
|
386203
386203
|
"",
|
|
@@ -435370,9 +435370,9 @@ var require_file2 = __commonJS({
|
|
|
435370
435370
|
}
|
|
435371
435371
|
});
|
|
435372
435372
|
|
|
435373
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435373
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseControlResponse.js
|
|
435374
435374
|
var require_parseControlResponse = __commonJS({
|
|
435375
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435375
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseControlResponse.js"(exports2) {
|
|
435376
435376
|
"use strict";
|
|
435377
435377
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435378
435378
|
exports2.parseControlResponse = parseControlResponse;
|
|
@@ -435422,9 +435422,9 @@ var require_parseControlResponse = __commonJS({
|
|
|
435422
435422
|
}
|
|
435423
435423
|
});
|
|
435424
435424
|
|
|
435425
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435425
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/FtpContext.js
|
|
435426
435426
|
var require_FtpContext = __commonJS({
|
|
435427
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435427
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/FtpContext.js"(exports2) {
|
|
435428
435428
|
"use strict";
|
|
435429
435429
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435430
435430
|
exports2.FTPContext = exports2.FTPError = void 0;
|
|
@@ -435440,6 +435440,7 @@ var require_FtpContext = __commonJS({
|
|
|
435440
435440
|
exports2.FTPError = FTPError;
|
|
435441
435441
|
function doNothing() {
|
|
435442
435442
|
}
|
|
435443
|
+
var maxControlResponseLength = 2 ** 16;
|
|
435443
435444
|
var FTPContext = class {
|
|
435444
435445
|
/**
|
|
435445
435446
|
* Instantiate an FTP context.
|
|
@@ -435657,6 +435658,10 @@ Closing reason: ${this._closingError.stack}`;
|
|
|
435657
435658
|
*/
|
|
435658
435659
|
_onControlSocketData(chunk2) {
|
|
435659
435660
|
this.log(`< ${chunk2}`);
|
|
435661
|
+
if (this._partialResponse.length + chunk2.length > maxControlResponseLength) {
|
|
435662
|
+
this.closeWithError(new Error("FTP control response exceeded maximum allowed size"));
|
|
435663
|
+
return;
|
|
435664
|
+
}
|
|
435660
435665
|
const completeResponse = this._partialResponse + chunk2;
|
|
435661
435666
|
const parsed = (0, parseControlResponse_1.parseControlResponse)(completeResponse);
|
|
435662
435667
|
this._partialResponse = parsed.rest;
|
|
@@ -435742,9 +435747,9 @@ Closing reason: ${this._closingError.stack}`;
|
|
|
435742
435747
|
}
|
|
435743
435748
|
});
|
|
435744
435749
|
|
|
435745
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435750
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/netUtils.js
|
|
435746
435751
|
var require_netUtils = __commonJS({
|
|
435747
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435752
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/netUtils.js"(exports2) {
|
|
435748
435753
|
"use strict";
|
|
435749
435754
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435750
435755
|
exports2.describeTLS = describeTLS;
|
|
@@ -435793,9 +435798,9 @@ var require_netUtils = __commonJS({
|
|
|
435793
435798
|
}
|
|
435794
435799
|
});
|
|
435795
435800
|
|
|
435796
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435801
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/FileInfo.js
|
|
435797
435802
|
var require_FileInfo = __commonJS({
|
|
435798
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435803
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/FileInfo.js"(exports2) {
|
|
435799
435804
|
"use strict";
|
|
435800
435805
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435801
435806
|
exports2.FileInfo = exports2.FileType = void 0;
|
|
@@ -435850,9 +435855,9 @@ var require_FileInfo = __commonJS({
|
|
|
435850
435855
|
}
|
|
435851
435856
|
});
|
|
435852
435857
|
|
|
435853
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435858
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListDOS.js
|
|
435854
435859
|
var require_parseListDOS = __commonJS({
|
|
435855
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435860
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListDOS.js"(exports2) {
|
|
435856
435861
|
"use strict";
|
|
435857
435862
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435858
435863
|
exports2.testLine = testLine;
|
|
@@ -435893,9 +435898,9 @@ var require_parseListDOS = __commonJS({
|
|
|
435893
435898
|
}
|
|
435894
435899
|
});
|
|
435895
435900
|
|
|
435896
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435901
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListUnix.js
|
|
435897
435902
|
var require_parseListUnix = __commonJS({
|
|
435898
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435903
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListUnix.js"(exports2) {
|
|
435899
435904
|
"use strict";
|
|
435900
435905
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435901
435906
|
exports2.testLine = testLine;
|
|
@@ -435979,9 +435984,9 @@ var require_parseListUnix = __commonJS({
|
|
|
435979
435984
|
}
|
|
435980
435985
|
});
|
|
435981
435986
|
|
|
435982
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435987
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListMLSD.js
|
|
435983
435988
|
var require_parseListMLSD = __commonJS({
|
|
435984
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
435989
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseListMLSD.js"(exports2) {
|
|
435985
435990
|
"use strict";
|
|
435986
435991
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
435987
435992
|
exports2.testLine = testLine;
|
|
@@ -436144,9 +436149,9 @@ var require_parseListMLSD = __commonJS({
|
|
|
436144
436149
|
}
|
|
436145
436150
|
});
|
|
436146
436151
|
|
|
436147
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436152
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseList.js
|
|
436148
436153
|
var require_parseList = __commonJS({
|
|
436149
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436154
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/parseList.js"(exports2) {
|
|
436150
436155
|
"use strict";
|
|
436151
436156
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m7, k5, k22) {
|
|
436152
436157
|
if (k22 === void 0) k22 = k5;
|
|
@@ -436222,9 +436227,9 @@ var require_parseList = __commonJS({
|
|
|
436222
436227
|
}
|
|
436223
436228
|
});
|
|
436224
436229
|
|
|
436225
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436230
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/ProgressTracker.js
|
|
436226
436231
|
var require_ProgressTracker = __commonJS({
|
|
436227
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436232
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/ProgressTracker.js"(exports2) {
|
|
436228
436233
|
"use strict";
|
|
436229
436234
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
436230
436235
|
exports2.ProgressTracker = void 0;
|
|
@@ -436293,9 +436298,9 @@ var require_ProgressTracker = __commonJS({
|
|
|
436293
436298
|
}
|
|
436294
436299
|
});
|
|
436295
436300
|
|
|
436296
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436301
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/StringWriter.js
|
|
436297
436302
|
var require_StringWriter = __commonJS({
|
|
436298
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436303
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/StringWriter.js"(exports2) {
|
|
436299
436304
|
"use strict";
|
|
436300
436305
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
436301
436306
|
exports2.StringWriter = void 0;
|
|
@@ -436328,9 +436333,9 @@ var require_StringWriter = __commonJS({
|
|
|
436328
436333
|
}
|
|
436329
436334
|
});
|
|
436330
436335
|
|
|
436331
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436336
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/transfer.js
|
|
436332
436337
|
var require_transfer = __commonJS({
|
|
436333
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436338
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/transfer.js"(exports2) {
|
|
436334
436339
|
"use strict";
|
|
436335
436340
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
436336
436341
|
exports2.enterPassiveModeIPv6 = enterPassiveModeIPv6;
|
|
@@ -436580,9 +436585,9 @@ var require_transfer = __commonJS({
|
|
|
436580
436585
|
}
|
|
436581
436586
|
});
|
|
436582
436587
|
|
|
436583
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436588
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/Client.js
|
|
436584
436589
|
var require_Client9 = __commonJS({
|
|
436585
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
436590
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/Client.js"(exports2) {
|
|
436586
436591
|
"use strict";
|
|
436587
436592
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
436588
436593
|
exports2.Client = void 0;
|
|
@@ -437316,17 +437321,17 @@ var require_Client9 = __commonJS({
|
|
|
437316
437321
|
}
|
|
437317
437322
|
});
|
|
437318
437323
|
|
|
437319
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
437324
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/StringEncoding.js
|
|
437320
437325
|
var require_StringEncoding = __commonJS({
|
|
437321
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
437326
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/StringEncoding.js"(exports2) {
|
|
437322
437327
|
"use strict";
|
|
437323
437328
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
437324
437329
|
}
|
|
437325
437330
|
});
|
|
437326
437331
|
|
|
437327
|
-
// ../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
437332
|
+
// ../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/index.js
|
|
437328
437333
|
var require_dist17 = __commonJS({
|
|
437329
|
-
"../../../node_modules/.pnpm/basic-ftp@5.3.
|
|
437334
|
+
"../../../node_modules/.pnpm/basic-ftp@5.3.1/node_modules/basic-ftp/dist/index.js"(exports2) {
|
|
437330
437335
|
"use strict";
|
|
437331
437336
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o3, m7, k5, k22) {
|
|
437332
437337
|
if (k22 === void 0) k22 = k5;
|
|
@@ -661091,7 +661096,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661091
661096
|
properties: {
|
|
661092
661097
|
...event,
|
|
661093
661098
|
...event.properties,
|
|
661094
|
-
version: "5.
|
|
661099
|
+
version: "5.19.0",
|
|
661095
661100
|
usingAccessToken: true,
|
|
661096
661101
|
...getRunIdProperties()
|
|
661097
661102
|
}
|
|
@@ -661146,7 +661151,7 @@ var UserPosthogManager = class {
|
|
|
661146
661151
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661147
661152
|
event: "CLI",
|
|
661148
661153
|
properties: {
|
|
661149
|
-
version: "5.
|
|
661154
|
+
version: "5.19.0",
|
|
661150
661155
|
...event,
|
|
661151
661156
|
...event.properties,
|
|
661152
661157
|
usingAccessToken: false,
|
|
@@ -852129,7 +852134,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
852129
852134
|
var LOGS_FOLDER_NAME = "logs";
|
|
852130
852135
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
852131
852136
|
function getCliSource() {
|
|
852132
|
-
const version7 = "5.
|
|
852137
|
+
const version7 = "5.19.0";
|
|
852133
852138
|
return `cli@${version7}`;
|
|
852134
852139
|
}
|
|
852135
852140
|
var DebugLogger = class {
|
|
@@ -864938,7 +864943,7 @@ var LegacyDocsPublisher = class {
|
|
|
864938
864943
|
previewId,
|
|
864939
864944
|
disableTemplates: void 0,
|
|
864940
864945
|
skipUpload,
|
|
864941
|
-
cliVersion: "5.
|
|
864946
|
+
cliVersion: "5.19.0",
|
|
864942
864947
|
loginCommand: "fern auth login"
|
|
864943
864948
|
});
|
|
864944
864949
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -939552,7 +939557,7 @@ var CliContext = class _CliContext {
|
|
|
939552
939557
|
if (false) {
|
|
939553
939558
|
this.logger.error("CLI_VERSION is not defined");
|
|
939554
939559
|
}
|
|
939555
|
-
return "5.
|
|
939560
|
+
return "5.19.0";
|
|
939556
939561
|
}
|
|
939557
939562
|
getCliName() {
|
|
939558
939563
|
if (false) {
|
|
@@ -947050,15 +947055,19 @@ async function executeAutomationsUpgrade({
|
|
|
947050
947055
|
project,
|
|
947051
947056
|
includeMajor: options2.includeMajor
|
|
947052
947057
|
});
|
|
947058
|
+
const cliResult = {
|
|
947059
|
+
from: cliVersionBefore,
|
|
947060
|
+
to: cliVersionAfter,
|
|
947061
|
+
upgraded: cliUpgraded
|
|
947062
|
+
};
|
|
947063
|
+
const hasChanges2 = cliUpgraded || generatorResults.generators.length > 0;
|
|
947064
|
+
const pr11 = hasChanges2 ? buildPrSuggestion({ cli: cliResult, generators: generatorResults.generators }) : null;
|
|
947053
947065
|
const result = {
|
|
947054
|
-
cli:
|
|
947055
|
-
from: cliVersionBefore,
|
|
947056
|
-
to: cliVersionAfter,
|
|
947057
|
-
upgraded: cliUpgraded
|
|
947058
|
-
},
|
|
947066
|
+
cli: cliResult,
|
|
947059
947067
|
generators: generatorResults.generators,
|
|
947060
947068
|
skippedMajor: generatorResults.skippedMajor,
|
|
947061
|
-
alreadyUpToDate: generatorResults.alreadyUpToDate
|
|
947069
|
+
alreadyUpToDate: generatorResults.alreadyUpToDate,
|
|
947070
|
+
pr: pr11
|
|
947062
947071
|
};
|
|
947063
947072
|
return result;
|
|
947064
947073
|
}
|
|
@@ -947127,6 +947136,70 @@ async function upgradeGeneratorsForAllWorkspaces({
|
|
|
947127
947136
|
alreadyUpToDate.sort((a3, b8) => a3.name.localeCompare(b8.name));
|
|
947128
947137
|
return { generators, skippedMajor, alreadyUpToDate };
|
|
947129
947138
|
}
|
|
947139
|
+
function getShortGeneratorName(name2) {
|
|
947140
|
+
return name2.replace(/^fernapi\/fern-/, "");
|
|
947141
|
+
}
|
|
947142
|
+
function buildPrTitle({
|
|
947143
|
+
cli,
|
|
947144
|
+
generators
|
|
947145
|
+
}) {
|
|
947146
|
+
const parts = [];
|
|
947147
|
+
if (cli.upgraded) {
|
|
947148
|
+
parts.push(`CLI ${cli.from} \u2192 ${cli.to}`);
|
|
947149
|
+
}
|
|
947150
|
+
if (generators.length > 0) {
|
|
947151
|
+
parts.push(`${generators.length} generator${generators.length === 1 ? "" : "s"}`);
|
|
947152
|
+
}
|
|
947153
|
+
return `chore(fern): upgrade ${parts.join(" and ")}`;
|
|
947154
|
+
}
|
|
947155
|
+
function buildPrBody({
|
|
947156
|
+
cli,
|
|
947157
|
+
generators
|
|
947158
|
+
}) {
|
|
947159
|
+
const sections = ["## Fern Upgrade\n"];
|
|
947160
|
+
if (cli.upgraded) {
|
|
947161
|
+
sections.push(`### CLI
|
|
947162
|
+
- \`${cli.from}\` \u2192 \`${cli.to}\`
|
|
947163
|
+
`);
|
|
947164
|
+
}
|
|
947165
|
+
if (generators.length > 0) {
|
|
947166
|
+
sections.push("### Generators");
|
|
947167
|
+
sections.push("| Generator | From | To | Changelog |");
|
|
947168
|
+
sections.push("|-----------|------|----|-----------|");
|
|
947169
|
+
for (const g8 of generators) {
|
|
947170
|
+
const link3 = g8.changelog != null ? `[View](${g8.changelog})` : "\u2014";
|
|
947171
|
+
sections.push(`| ${g8.name} | ${g8.from} | ${g8.to} | ${link3} |`);
|
|
947172
|
+
}
|
|
947173
|
+
sections.push("");
|
|
947174
|
+
}
|
|
947175
|
+
sections.push(
|
|
947176
|
+
"---\n\u{1F916} This PR was automatically created by [fern-upgrade](https://github.com/fern-api/actions/tree/main/upgrade)"
|
|
947177
|
+
);
|
|
947178
|
+
return sections.join("\n");
|
|
947179
|
+
}
|
|
947180
|
+
function buildCommitMessage({
|
|
947181
|
+
cli,
|
|
947182
|
+
generators
|
|
947183
|
+
}) {
|
|
947184
|
+
const parts = [];
|
|
947185
|
+
if (cli.upgraded) {
|
|
947186
|
+
parts.push(`cli ${cli.from} -> ${cli.to}`);
|
|
947187
|
+
}
|
|
947188
|
+
for (const g8 of generators) {
|
|
947189
|
+
parts.push(`${getShortGeneratorName(g8.name)} ${g8.from} -> ${g8.to}`);
|
|
947190
|
+
}
|
|
947191
|
+
return `chore: upgrade fern ${parts.join(", ")}`;
|
|
947192
|
+
}
|
|
947193
|
+
function buildPrSuggestion({
|
|
947194
|
+
cli,
|
|
947195
|
+
generators
|
|
947196
|
+
}) {
|
|
947197
|
+
return {
|
|
947198
|
+
title: buildPrTitle({ cli, generators }),
|
|
947199
|
+
body: buildPrBody({ cli, generators }),
|
|
947200
|
+
commitMessage: buildCommitMessage({ cli, generators })
|
|
947201
|
+
};
|
|
947202
|
+
}
|
|
947130
947203
|
|
|
947131
947204
|
// src/commands/diff/diff.ts
|
|
947132
947205
|
init_lib4();
|
package/package.json
CHANGED