@fern-api/fern-api-dev 5.10.0-1-g676d8dd513d → 5.10.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 +9 -16
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -622758,7 +622758,7 @@ var AccessTokenPosthogManager = class {
|
|
|
622758
622758
|
properties: {
|
|
622759
622759
|
...event,
|
|
622760
622760
|
...event.properties,
|
|
622761
|
-
version: "5.10.0
|
|
622761
|
+
version: "5.10.0",
|
|
622762
622762
|
usingAccessToken: true
|
|
622763
622763
|
}
|
|
622764
622764
|
});
|
|
@@ -622812,7 +622812,7 @@ var UserPosthogManager = class {
|
|
|
622812
622812
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
622813
622813
|
event: "CLI",
|
|
622814
622814
|
properties: {
|
|
622815
|
-
version: "5.10.0
|
|
622815
|
+
version: "5.10.0",
|
|
622816
622816
|
...event,
|
|
622817
622817
|
...event.properties,
|
|
622818
622818
|
usingAccessToken: false,
|
|
@@ -847731,7 +847731,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
847731
847731
|
var LOGS_FOLDER_NAME = "logs";
|
|
847732
847732
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
847733
847733
|
function getCliSource() {
|
|
847734
|
-
const version7 = "5.10.0
|
|
847734
|
+
const version7 = "5.10.0";
|
|
847735
847735
|
return `cli@${version7}`;
|
|
847736
847736
|
}
|
|
847737
847737
|
var DebugLogger = class {
|
|
@@ -857899,7 +857899,7 @@ async function retryWithRateLimit({ fn: fn10, retryRateLimited, logger: logger4,
|
|
|
857899
857899
|
|
|
857900
857900
|
// ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
|
|
857901
857901
|
var gzipAsync = (0, import_util19.promisify)(import_zlib5.gzip);
|
|
857902
|
-
async function createAndStartJob({ projectConfig, workspace, organization, intermediateRepresentation, generatorInvocation, version: version7, context: context3, shouldLogS3Url, token, whitelabel,
|
|
857902
|
+
async function createAndStartJob({ projectConfig, workspace, organization, intermediateRepresentation, generatorInvocation, version: version7, context: context3, shouldLogS3Url, token, whitelabel, irVersionOverride, absolutePathToPreview, fiddlePreview, pushPreviewBranch, fernignorePath, skipFernignore, retryRateLimited, automationMode, autoMerge, skipIfNoDiff, loginCommand = "fern login" }) {
|
|
857903
857903
|
let fernignoreContents;
|
|
857904
857904
|
if (skipFernignore) {
|
|
857905
857905
|
fernignoreContents = "";
|
|
@@ -857923,7 +857923,6 @@ async function createAndStartJob({ projectConfig, workspace, organization, inter
|
|
|
857923
857923
|
shouldLogS3Url,
|
|
857924
857924
|
token,
|
|
857925
857925
|
whitelabel,
|
|
857926
|
-
replay,
|
|
857927
857926
|
absolutePathToPreview,
|
|
857928
857927
|
fiddlePreview,
|
|
857929
857928
|
pushPreviewBranch,
|
|
@@ -858617,7 +858616,7 @@ var SourceUploader = class {
|
|
|
858617
858616
|
};
|
|
858618
858617
|
|
|
858619
858618
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForGenerator.js
|
|
858620
|
-
async function runRemoteGenerationForGenerator({ projectConfig, organization, workspace, interactiveTaskContext, generatorInvocation, version: version7, audiences, shouldLogS3Url, token, whitelabel,
|
|
858619
|
+
async function runRemoteGenerationForGenerator({ projectConfig, organization, workspace, interactiveTaskContext, generatorInvocation, version: version7, audiences, shouldLogS3Url, token, whitelabel, irVersionOverride, absolutePathToPreview, isPreview: isPreviewOverride, fiddlePreview, pushPreviewBranch, readme, fernignorePath, skipFernignore, dynamicIrOnly, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, loginCommand }) {
|
|
858621
858620
|
const fdr = createFdrService({ token: token.value });
|
|
858622
858621
|
const fdrOrigin = "https://registry-dev2.buildwithfern.com";
|
|
858623
858622
|
const isAirGapped = await detectAirGappedMode(`${fdrOrigin}/health`, interactiveTaskContext.logger);
|
|
@@ -858797,7 +858796,6 @@ async function runRemoteGenerationForGenerator({ projectConfig, organization, wo
|
|
|
858797
858796
|
shouldLogS3Url,
|
|
858798
858797
|
token,
|
|
858799
858798
|
whitelabel: whitelabel != null ? substituteEnvVars(whitelabel) : void 0,
|
|
858800
|
-
replay,
|
|
858801
858799
|
irVersionOverride,
|
|
858802
858800
|
absolutePathToPreview,
|
|
858803
858801
|
fiddlePreview,
|
|
@@ -858960,7 +858958,7 @@ function resolveVersionFallback(resolvedVersion) {
|
|
|
858960
858958
|
}
|
|
858961
858959
|
|
|
858962
858960
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForAPIWorkspace.js
|
|
858963
|
-
async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel,
|
|
858961
|
+
async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, automation, occurrenceTracker, loginCommand }) {
|
|
858964
858962
|
if (generatorGroup.generators.length === 0) {
|
|
858965
858963
|
context3.logger.warn("No generators specified.");
|
|
858966
858964
|
return null;
|
|
@@ -858984,7 +858982,6 @@ async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization,
|
|
|
858984
858982
|
shouldLogS3Url,
|
|
858985
858983
|
token,
|
|
858986
858984
|
whitelabel,
|
|
858987
|
-
replay,
|
|
858988
858985
|
absolutePathToPreview,
|
|
858989
858986
|
isPreview,
|
|
858990
858987
|
fiddlePreview,
|
|
@@ -859012,7 +859009,7 @@ async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization,
|
|
|
859012
859009
|
snippetsProducedBy
|
|
859013
859010
|
};
|
|
859014
859011
|
}
|
|
859015
|
-
async function generateOne({ generatorInvocation, interactiveTaskContext, projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel,
|
|
859012
|
+
async function generateOne({ generatorInvocation, interactiveTaskContext, projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, automation, generatorsYmlAbsolutePath, occurrenceTracker, loginCommand, onSnippetsProduced }) {
|
|
859016
859013
|
const startedAt = Date.now();
|
|
859017
859014
|
try {
|
|
859018
859015
|
const settings = getBaseOpenAPIWorkspaceSettingsFromGeneratorInvocation(generatorInvocation);
|
|
@@ -859060,7 +859057,6 @@ async function generateOne({ generatorInvocation, interactiveTaskContext, projec
|
|
|
859060
859057
|
shouldLogS3Url,
|
|
859061
859058
|
token,
|
|
859062
859059
|
whitelabel,
|
|
859063
|
-
replay,
|
|
859064
859060
|
readme: generatorInvocation.readme,
|
|
859065
859061
|
irVersionOverride: generatorInvocation.irVersionOverride,
|
|
859066
859062
|
absolutePathToPreview,
|
|
@@ -860388,7 +860384,7 @@ var LegacyDocsPublisher = class {
|
|
|
860388
860384
|
previewId,
|
|
860389
860385
|
disableTemplates: void 0,
|
|
860390
860386
|
skipUpload,
|
|
860391
|
-
cliVersion: "5.10.0
|
|
860387
|
+
cliVersion: "5.10.0",
|
|
860392
860388
|
loginCommand: "fern auth login"
|
|
860393
860389
|
});
|
|
860394
860390
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -914138,7 +914134,6 @@ var LegacyRemoteGenerationRunner = class {
|
|
|
914138
914134
|
skipFernignore: args.skipFernignore,
|
|
914139
914135
|
absolutePathToPreview,
|
|
914140
914136
|
whitelabel: void 0,
|
|
914141
|
-
replay: fernWorkspace.generatorsConfiguration?.replay,
|
|
914142
914137
|
dynamicIrOnly: false,
|
|
914143
914138
|
retryRateLimited: false,
|
|
914144
914139
|
requireEnvVars: args.requireEnvVars ?? true
|
|
@@ -934948,7 +934943,7 @@ var CliContext = class _CliContext {
|
|
|
934948
934943
|
if (false) {
|
|
934949
934944
|
this.logger.error("CLI_VERSION is not defined");
|
|
934950
934945
|
}
|
|
934951
|
-
return "5.10.0
|
|
934946
|
+
return "5.10.0";
|
|
934952
934947
|
}
|
|
934953
934948
|
getCliName() {
|
|
934954
934949
|
if (false) {
|
|
@@ -936886,7 +936881,6 @@ async function generateWorkspace({
|
|
|
936886
936881
|
shouldLogS3Url,
|
|
936887
936882
|
token,
|
|
936888
936883
|
whitelabel: workspace.generatorsConfiguration?.whitelabel,
|
|
936889
|
-
replay,
|
|
936890
936884
|
absolutePathToPreview,
|
|
936891
936885
|
mode,
|
|
936892
936886
|
fernignorePath,
|
|
@@ -952504,7 +952498,6 @@ async function sdkPreview({
|
|
|
952504
952498
|
shouldLogS3Url: false,
|
|
952505
952499
|
token,
|
|
952506
952500
|
whitelabel: workspace.generatorsConfiguration?.whitelabel,
|
|
952507
|
-
replay: workspace.generatorsConfiguration?.replay,
|
|
952508
952501
|
mode: void 0,
|
|
952509
952502
|
fernignorePath: void 0,
|
|
952510
952503
|
skipFernignore: false,
|
package/package.json
CHANGED