@fern-api/fern-api-dev 5.62.1 → 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 +26 -10
  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
  });
@@ -687157,7 +687170,7 @@ var AccessTokenPosthogManager = class {
687157
687170
  properties: {
687158
687171
  ...event,
687159
687172
  ...event.properties,
687160
- version: "5.62.1",
687173
+ version: "5.62.2",
687161
687174
  usingAccessToken: true,
687162
687175
  ...getRunIdProperties()
687163
687176
  }
@@ -687223,7 +687236,7 @@ var UserPosthogManager = class {
687223
687236
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
687224
687237
  event: "CLI",
687225
687238
  properties: {
687226
- version: "5.62.1",
687239
+ version: "5.62.2",
687227
687240
  ...event,
687228
687241
  ...event.properties,
687229
687242
  usingAccessToken: false,
@@ -868318,7 +868331,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
868318
868331
  var LOGS_FOLDER_NAME = "logs";
868319
868332
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
868320
868333
  function getCliSource() {
868321
- const version7 = "5.62.1";
868334
+ const version7 = "5.62.2";
868322
868335
  return `cli@${version7}`;
868323
868336
  }
868324
868337
  var DebugLogger = class {
@@ -889034,6 +889047,7 @@ var GeneratorOccurrenceTracker = class {
889034
889047
  };
889035
889048
 
889036
889049
  // ../generation/remote-generation/remote-workspace-runner/lib/getDynamicGeneratorConfig.js
889050
+ init_lib17();
889037
889051
  init_lib12();
889038
889052
  init_lib4();
889039
889053
  init_lib9();
@@ -889042,7 +889056,7 @@ function getDynamicGeneratorConfig({ apiName, organization, generatorInvocation
889042
889056
  return {
889043
889057
  apiName,
889044
889058
  organization,
889045
- customConfig: generatorInvocation.config,
889059
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
889046
889060
  outputConfig: outputConfig ?? dynamic_exports.GeneratorOutputConfig.local()
889047
889061
  };
889048
889062
  }
@@ -897087,6 +897101,7 @@ init_lib66();
897087
897101
  init_lib6();
897088
897102
 
897089
897103
  // ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
897104
+ init_lib17();
897090
897105
  init_lib26();
897091
897106
  init_lib8();
897092
897107
  init_lib6();
@@ -897204,7 +897219,7 @@ async function createJob({ projectConfig, workspace, organization, generatorInvo
897204
897219
  id: generatorInvocation.name,
897205
897220
  version: generatorInvocation.version,
897206
897221
  outputMode: generatorInvocation.outputMode,
897207
- customConfig: generatorInvocation.config,
897222
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
897208
897223
  publishMetadata: generatorInvocation.publishMetadata
897209
897224
  };
897210
897225
  const createJobRequest = {
@@ -900813,7 +900828,7 @@ var LegacyDocsPublisher = class {
900813
900828
  previewId,
900814
900829
  disableTemplates: void 0,
900815
900830
  skipUpload,
900816
- cliVersion: "5.62.1",
900831
+ cliVersion: "5.62.2",
900817
900832
  loginCommand: "fern auth login"
900818
900833
  });
900819
900834
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -953100,6 +953115,7 @@ async function generateDynamicSnippetTests({ context: context3, ir: ir3, config:
953100
953115
  }
953101
953116
 
953102
953117
  // ../generation/local-generation/local-workspace-runner/lib/runGenerator.js
953118
+ init_lib17();
953103
953119
  init_lib12();
953104
953120
  init_lib8();
953105
953121
  var import_autoversion3 = __toESM(require_autoversion(), 1);
@@ -954771,7 +954787,7 @@ async function writeFilesToDiskAndRunGenerator({ organization, absolutePathToFer
954771
954787
  const mappedOutputVersionOverride = effectiveOutputVersion != null ? (0, import_autoversion3.mapMagicVersionForLanguage)(effectiveOutputVersion, generatorLanguage) : effectiveOutputVersion;
954772
954788
  const config5 = getGeneratorConfig({
954773
954789
  generatorInvocation,
954774
- customConfig: generatorInvocation.config,
954790
+ customConfig: stripCliConfigKeys(generatorInvocation.config),
954775
954791
  workspaceName: workspace.definition.rootApiFile.contents.name,
954776
954792
  outputVersion: mappedOutputVersionOverride,
954777
954793
  organization,
@@ -967092,7 +967108,7 @@ function getAutomationContextFromEnv() {
967092
967108
  config_branch: process.env.FERN_CONFIG_BRANCH,
967093
967109
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
967094
967110
  trigger: process.env.GITHUB_EVENT_NAME,
967095
- cli_version: "5.62.1"
967111
+ cli_version: "5.62.2"
967096
967112
  };
967097
967113
  }
967098
967114
  function isAutomationMode() {
@@ -967924,7 +967940,7 @@ var CliContext = class _CliContext {
967924
967940
  if (false) {
967925
967941
  this.logger.error("CLI_VERSION is not defined");
967926
967942
  }
967927
- return "5.62.1";
967943
+ return "5.62.2";
967928
967944
  }
967929
967945
  getCliName() {
967930
967946
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.62.1",
2
+ "version": "5.62.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",