@fern-api/fern-api-dev 4.80.1-5-gc2092005e25 → 4.80.1-8-g15c4a2e8b11
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 +5 -106
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -614282,7 +614282,7 @@ var AccessTokenPosthogManager = class {
|
|
|
614282
614282
|
properties: {
|
|
614283
614283
|
...event,
|
|
614284
614284
|
...event.properties,
|
|
614285
|
-
version: "4.80.1-
|
|
614285
|
+
version: "4.80.1-8-g15c4a2e8b11",
|
|
614286
614286
|
usingAccessToken: true
|
|
614287
614287
|
}
|
|
614288
614288
|
});
|
|
@@ -614336,7 +614336,7 @@ var UserPosthogManager = class {
|
|
|
614336
614336
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
614337
614337
|
event: "CLI",
|
|
614338
614338
|
properties: {
|
|
614339
|
-
version: "4.80.1-
|
|
614339
|
+
version: "4.80.1-8-g15c4a2e8b11",
|
|
614340
614340
|
...event,
|
|
614341
614341
|
...event.properties,
|
|
614342
614342
|
usingAccessToken: false,
|
|
@@ -831617,7 +831617,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
831617
831617
|
var LOGS_FOLDER_NAME = "logs";
|
|
831618
831618
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
831619
831619
|
function getCliSource() {
|
|
831620
|
-
const version7 = "4.80.1-
|
|
831620
|
+
const version7 = "4.80.1-8-g15c4a2e8b11";
|
|
831621
831621
|
return `cli@${version7}`;
|
|
831622
831622
|
}
|
|
831623
831623
|
var DebugLogger = class {
|
|
@@ -843131,7 +843131,7 @@ var LegacyDocsPublisher = class {
|
|
|
843131
843131
|
previewId,
|
|
843132
843132
|
disableTemplates: void 0,
|
|
843133
843133
|
skipUpload,
|
|
843134
|
-
cliVersion: "4.80.1-
|
|
843134
|
+
cliVersion: "4.80.1-8-g15c4a2e8b11"
|
|
843135
843135
|
});
|
|
843136
843136
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
843137
843137
|
return { success: false };
|
|
@@ -918209,7 +918209,7 @@ var CliContext = class _CliContext {
|
|
|
918209
918209
|
if (false) {
|
|
918210
918210
|
this.logger.error("CLI_VERSION is not defined");
|
|
918211
918211
|
}
|
|
918212
|
-
return "4.80.1-
|
|
918212
|
+
return "4.80.1-8-g15c4a2e8b11";
|
|
918213
918213
|
}
|
|
918214
918214
|
getCliName() {
|
|
918215
918215
|
if (false) {
|
|
@@ -919795,66 +919795,6 @@ async function addGeneratorToWorkspaces({
|
|
|
919795
919795
|
);
|
|
919796
919796
|
}
|
|
919797
919797
|
|
|
919798
|
-
// src/commands/generate/shouldSkipGenerator.ts
|
|
919799
|
-
function shouldSkipGenerator({
|
|
919800
|
-
generator,
|
|
919801
|
-
rootAutorelease
|
|
919802
|
-
}) {
|
|
919803
|
-
if (!generator.automation.generate) {
|
|
919804
|
-
return true;
|
|
919805
|
-
}
|
|
919806
|
-
if (generator.absolutePathToLocalOutput != null) {
|
|
919807
|
-
return true;
|
|
919808
|
-
}
|
|
919809
|
-
if (generator.raw?.autorelease === false) {
|
|
919810
|
-
return true;
|
|
919811
|
-
}
|
|
919812
|
-
if (generator.raw?.autorelease == null && rootAutorelease === false) {
|
|
919813
|
-
return true;
|
|
919814
|
-
}
|
|
919815
|
-
return false;
|
|
919816
|
-
}
|
|
919817
|
-
|
|
919818
|
-
// src/commands/automations/listGenerateCommands.ts
|
|
919819
|
-
function listGenerateCommands({
|
|
919820
|
-
workspaces,
|
|
919821
|
-
groupFilter,
|
|
919822
|
-
version: version7,
|
|
919823
|
-
autoMerge
|
|
919824
|
-
}) {
|
|
919825
|
-
const commands = [];
|
|
919826
|
-
for (const workspace of workspaces) {
|
|
919827
|
-
const generatorsConfiguration = workspace.generatorsConfiguration;
|
|
919828
|
-
const groups2 = generatorsConfiguration?.groups ?? [];
|
|
919829
|
-
const rootAutorelease = generatorsConfiguration?.rawConfiguration.autorelease;
|
|
919830
|
-
for (const group of groups2) {
|
|
919831
|
-
if (groupFilter != null && group.groupName !== groupFilter) {
|
|
919832
|
-
continue;
|
|
919833
|
-
}
|
|
919834
|
-
for (let i9 = 0; i9 < group.generators.length; i9++) {
|
|
919835
|
-
const generator = group.generators[i9];
|
|
919836
|
-
if (generator == null || shouldSkipGenerator({ generator, rootAutorelease })) {
|
|
919837
|
-
continue;
|
|
919838
|
-
}
|
|
919839
|
-
const parts = ["fern", "automations", "generate"];
|
|
919840
|
-
if (workspace.workspaceName != null) {
|
|
919841
|
-
parts.push("--api", workspace.workspaceName);
|
|
919842
|
-
}
|
|
919843
|
-
parts.push("--group", group.groupName);
|
|
919844
|
-
parts.push("--generator", String(i9));
|
|
919845
|
-
if (version7 != null) {
|
|
919846
|
-
parts.push("--version", version7);
|
|
919847
|
-
}
|
|
919848
|
-
if (autoMerge) {
|
|
919849
|
-
parts.push("--auto-merge");
|
|
919850
|
-
}
|
|
919851
|
-
commands.push(parts.join(" "));
|
|
919852
|
-
}
|
|
919853
|
-
}
|
|
919854
|
-
}
|
|
919855
|
-
return commands;
|
|
919856
|
-
}
|
|
919857
|
-
|
|
919858
919798
|
// src/commands/sdk-preview/overrideOutputForPreview.ts
|
|
919859
919799
|
var PREVIEW_REGISTRY_URL = process.env.FERN_PREVIEW_REGISTRY_URL ?? "https://npm.buildwithfern.com";
|
|
919860
919800
|
var SUPPORTED_TYPESCRIPT_GENERATORS = /* @__PURE__ */ new Set([
|
|
@@ -938730,52 +938670,11 @@ function addSdkCommand2(cli, cliContext) {
|
|
|
938730
938670
|
}
|
|
938731
938671
|
function addAutomationsCommand(cli, cliContext) {
|
|
938732
938672
|
cli.command("automations", false, (yargs) => {
|
|
938733
|
-
addAutomationsListCommand(yargs, cliContext);
|
|
938734
938673
|
addAutomationsGenerateCommand(yargs, cliContext);
|
|
938735
938674
|
addAutomationsPreviewCommand(yargs, cliContext);
|
|
938736
938675
|
return yargs.demandCommand();
|
|
938737
938676
|
});
|
|
938738
938677
|
}
|
|
938739
|
-
function addAutomationsListCommand(cli, cliContext) {
|
|
938740
|
-
cli.command("list", false, (yargs) => {
|
|
938741
|
-
addAutomationsListGenerateCommand(yargs, cliContext);
|
|
938742
|
-
return yargs.demandCommand();
|
|
938743
|
-
});
|
|
938744
|
-
}
|
|
938745
|
-
function addAutomationsListGenerateCommand(cli, cliContext) {
|
|
938746
|
-
cli.command(
|
|
938747
|
-
"generate",
|
|
938748
|
-
false,
|
|
938749
|
-
// hidden
|
|
938750
|
-
(yargs) => yargs.option("group", {
|
|
938751
|
-
type: "string",
|
|
938752
|
-
description: "Filter to a specific generator group (e.g. 'sdk'). Omit to list all groups."
|
|
938753
|
-
}).option("api", {
|
|
938754
|
-
type: "string",
|
|
938755
|
-
description: "Filter to a specific API in a multi-API repo (e.g. 'foo' for fern/apis/foo/). Omit to list all APIs."
|
|
938756
|
-
}).option("version", {
|
|
938757
|
-
type: "string",
|
|
938758
|
-
description: "Version string to include in generated commands (e.g. 'AUTO' for AI-based versioning)"
|
|
938759
|
-
}).option("auto-merge", {
|
|
938760
|
-
boolean: true,
|
|
938761
|
-
default: false,
|
|
938762
|
-
description: "Include --auto-merge flag in generated commands"
|
|
938763
|
-
}),
|
|
938764
|
-
async (argv) => {
|
|
938765
|
-
const project = await loadProjectAndRegisterWorkspacesWithContext(cliContext, {
|
|
938766
|
-
commandLineApiWorkspace: argv.api,
|
|
938767
|
-
defaultToAllApiWorkspaces: true
|
|
938768
|
-
});
|
|
938769
|
-
const commands = listGenerateCommands({
|
|
938770
|
-
workspaces: project.apiWorkspaces,
|
|
938771
|
-
groupFilter: argv.group,
|
|
938772
|
-
version: argv.version,
|
|
938773
|
-
autoMerge: argv["auto-merge"]
|
|
938774
|
-
});
|
|
938775
|
-
process.stdout.write(JSON.stringify(commands));
|
|
938776
|
-
}
|
|
938777
|
-
);
|
|
938778
|
-
}
|
|
938779
938678
|
function addAutomationsPreviewCommand(cli, cliContext) {
|
|
938780
938679
|
cli.command(
|
|
938781
938680
|
"preview",
|
package/package.json
CHANGED