@fern-api/fern-api-dev 5.62.0 → 5.62.2

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.
Files changed (2) hide show
  1. package/cli.cjs +35 -11
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -83633,6 +83633,18 @@ function getUserAgentTemplateFromGeneratorConfig(generatorInvocation) {
83633
83633
  }
83634
83634
  return void 0;
83635
83635
  }
83636
+ function stripCliConfigKeys(config5) {
83637
+ if (typeof config5 !== "object" || config5 === null) {
83638
+ return config5;
83639
+ }
83640
+ const filtered = {};
83641
+ for (const [key2, value2] of Object.entries(config5)) {
83642
+ if (!CLI_ONLY_CONFIG_KEYS.has(key2)) {
83643
+ filtered[key2] = value2;
83644
+ }
83645
+ }
83646
+ return filtered;
83647
+ }
83636
83648
  async function checkVersionDoesNotAlreadyExist({ version: version7, packageName, generatorInvocation, context: context3 }) {
83637
83649
  if (version7 == null) {
83638
83650
  return;
@@ -83786,12 +83798,13 @@ function getRegistryName(language) {
83786
83798
  return language;
83787
83799
  }
83788
83800
  }
83789
- var REGISTRY_TIMEOUT_MS;
83801
+ var CLI_ONLY_CONFIG_KEYS, REGISTRY_TIMEOUT_MS;
83790
83802
  var init_checkVersionExists = __esm({
83791
83803
  "../../commons/api-workspace-commons/lib/checkVersionExists.js"() {
83792
83804
  "use strict";
83793
83805
  init_lib4();
83794
83806
  init_lib6();
83807
+ CLI_ONLY_CONFIG_KEYS = /* @__PURE__ */ new Set(["user-agent"]);
83795
83808
  REGISTRY_TIMEOUT_MS = 5e3;
83796
83809
  }
83797
83810
  });
@@ -456988,7 +457001,7 @@ function convertTypeReference3(irTypeReference, documentationDefault) {
456988
457001
  return convertInteger2(primitive.v2);
456989
457002
  },
456990
457003
  float: () => {
456991
- return convertDouble(primitive.v2);
457004
+ return convertFloat(primitive.v2);
456992
457005
  },
456993
457006
  double: () => {
456994
457007
  return convertDouble(primitive.v2);
@@ -457093,6 +457106,14 @@ function convertInteger2(primitive) {
457093
457106
  default: primitive != null && primitive.type === "integer" ? primitive.default : void 0
457094
457107
  };
457095
457108
  }
457109
+ function convertFloat(primitive) {
457110
+ return {
457111
+ type: "scalar",
457112
+ name: "float",
457113
+ description: void 0,
457114
+ default: primitive != null && primitive.type === "float" ? primitive.default : void 0
457115
+ };
457116
+ }
457096
457117
  function convertDouble(primitive) {
457097
457118
  const rules = primitive != null && primitive.type === "double" ? primitive.validation : void 0;
457098
457119
  return {
@@ -687149,7 +687170,7 @@ var AccessTokenPosthogManager = class {
687149
687170
  properties: {
687150
687171
  ...event,
687151
687172
  ...event.properties,
687152
- version: "5.62.0",
687173
+ version: "5.62.2",
687153
687174
  usingAccessToken: true,
687154
687175
  ...getRunIdProperties()
687155
687176
  }
@@ -687215,7 +687236,7 @@ var UserPosthogManager = class {
687215
687236
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
687216
687237
  event: "CLI",
687217
687238
  properties: {
687218
- version: "5.62.0",
687239
+ version: "5.62.2",
687219
687240
  ...event,
687220
687241
  ...event.properties,
687221
687242
  usingAccessToken: false,
@@ -868310,7 +868331,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
868310
868331
  var LOGS_FOLDER_NAME = "logs";
868311
868332
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
868312
868333
  function getCliSource() {
868313
- const version7 = "5.62.0";
868334
+ const version7 = "5.62.2";
868314
868335
  return `cli@${version7}`;
868315
868336
  }
868316
868337
  var DebugLogger = class {
@@ -889026,6 +889047,7 @@ var GeneratorOccurrenceTracker = class {
889026
889047
  };
889027
889048
 
889028
889049
  // ../generation/remote-generation/remote-workspace-runner/lib/getDynamicGeneratorConfig.js
889050
+ init_lib17();
889029
889051
  init_lib12();
889030
889052
  init_lib4();
889031
889053
  init_lib9();
@@ -889034,7 +889056,7 @@ function getDynamicGeneratorConfig({ apiName, organization, generatorInvocation
889034
889056
  return {
889035
889057
  apiName,
889036
889058
  organization,
889037
- customConfig: generatorInvocation.config,
889059
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
889038
889060
  outputConfig: outputConfig ?? dynamic_exports.GeneratorOutputConfig.local()
889039
889061
  };
889040
889062
  }
@@ -897079,6 +897101,7 @@ init_lib66();
897079
897101
  init_lib6();
897080
897102
 
897081
897103
  // ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
897104
+ init_lib17();
897082
897105
  init_lib26();
897083
897106
  init_lib8();
897084
897107
  init_lib6();
@@ -897196,7 +897219,7 @@ async function createJob({ projectConfig, workspace, organization, generatorInvo
897196
897219
  id: generatorInvocation.name,
897197
897220
  version: generatorInvocation.version,
897198
897221
  outputMode: generatorInvocation.outputMode,
897199
- customConfig: generatorInvocation.config,
897222
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
897200
897223
  publishMetadata: generatorInvocation.publishMetadata
897201
897224
  };
897202
897225
  const createJobRequest = {
@@ -900805,7 +900828,7 @@ var LegacyDocsPublisher = class {
900805
900828
  previewId,
900806
900829
  disableTemplates: void 0,
900807
900830
  skipUpload,
900808
- cliVersion: "5.62.0",
900831
+ cliVersion: "5.62.2",
900809
900832
  loginCommand: "fern auth login"
900810
900833
  });
900811
900834
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -953092,6 +953115,7 @@ async function generateDynamicSnippetTests({ context: context3, ir: ir3, config:
953092
953115
  }
953093
953116
 
953094
953117
  // ../generation/local-generation/local-workspace-runner/lib/runGenerator.js
953118
+ init_lib17();
953095
953119
  init_lib12();
953096
953120
  init_lib8();
953097
953121
  var import_autoversion3 = __toESM(require_autoversion(), 1);
@@ -954763,7 +954787,7 @@ async function writeFilesToDiskAndRunGenerator({ organization, absolutePathToFer
954763
954787
  const mappedOutputVersionOverride = effectiveOutputVersion != null ? (0, import_autoversion3.mapMagicVersionForLanguage)(effectiveOutputVersion, generatorLanguage) : effectiveOutputVersion;
954764
954788
  const config5 = getGeneratorConfig({
954765
954789
  generatorInvocation,
954766
- customConfig: generatorInvocation.config,
954790
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
954767
954791
  workspaceName: workspace.definition.rootApiFile.contents.name,
954768
954792
  outputVersion: mappedOutputVersionOverride,
954769
954793
  organization,
@@ -967084,7 +967108,7 @@ function getAutomationContextFromEnv() {
967084
967108
  config_branch: process.env.FERN_CONFIG_BRANCH,
967085
967109
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
967086
967110
  trigger: process.env.GITHUB_EVENT_NAME,
967087
- cli_version: "5.62.0"
967111
+ cli_version: "5.62.2"
967088
967112
  };
967089
967113
  }
967090
967114
  function isAutomationMode() {
@@ -967916,7 +967940,7 @@ var CliContext = class _CliContext {
967916
967940
  if (false) {
967917
967941
  this.logger.error("CLI_VERSION is not defined");
967918
967942
  }
967919
- return "5.62.0";
967943
+ return "5.62.2";
967920
967944
  }
967921
967945
  getCliName() {
967922
967946
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.62.0",
2
+ "version": "5.62.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",