@fern-api/fern-api-dev 4.82.0-1-g000d7384e60 → 4.82.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.
Files changed (2) hide show
  1. package/cli.cjs +48 -115
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -581884,9 +581884,7 @@ function getPathToLocalStorageDependency(dependency) {
581884
581884
  }
581885
581885
  async function validateLocalDependencyAndGetDefinition({ dependency, context: context3, cliVersion, settings, loadAPIWorkspace: loadAPIWorkspace2 }) {
581886
581886
  if (loadAPIWorkspace2 == null) {
581887
- context3.failWithoutThrowing("Failed to load api definition", void 0, {
581888
- code: CliError.Code.ResolutionError
581889
- });
581887
+ context3.failWithoutThrowing("Failed to load api definition");
581890
581888
  return void 0;
581891
581889
  }
581892
581890
  context3.logger.info("Parsing...");
@@ -581897,9 +581895,7 @@ async function validateLocalDependencyAndGetDefinition({ dependency, context: co
581897
581895
  workspaceName: void 0
581898
581896
  });
581899
581897
  if (!loadDependencyWorkspaceResult.didSucceed) {
581900
- context3.failWithoutThrowing("Failed to load api definition", loadDependencyWorkspaceResult.failures, {
581901
- code: CliError.Code.ResolutionError
581902
- });
581898
+ context3.failWithoutThrowing("Failed to load api definition", loadDependencyWorkspaceResult.failures);
581903
581899
  return void 0;
581904
581900
  }
581905
581901
  context3.logger.info("Modifying source filepath ...");
@@ -581921,24 +581917,16 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
581921
581917
  if (!response.ok) {
581922
581918
  response.error._visit({
581923
581919
  orgDoesNotExistError: () => {
581924
- context3.failWithoutThrowing("Organization does not exist", void 0, {
581925
- code: CliError.Code.ResolutionError
581926
- });
581920
+ context3.failWithoutThrowing("Organization does not exist");
581927
581921
  },
581928
581922
  apiDoesNotExistError: () => {
581929
- context3.failWithoutThrowing("API does not exist", void 0, {
581930
- code: CliError.Code.ResolutionError
581931
- });
581923
+ context3.failWithoutThrowing("API does not exist");
581932
581924
  },
581933
581925
  versionDoesNotExistError: () => {
581934
- context3.failWithoutThrowing("Version does not exist", void 0, {
581935
- code: CliError.Code.ResolutionError
581936
- });
581926
+ context3.failWithoutThrowing("Version does not exist");
581937
581927
  },
581938
581928
  _other: (error50) => {
581939
- context3.failWithoutThrowing("Failed to download API manifest", error50, {
581940
- code: CliError.Code.NetworkError
581941
- });
581929
+ context3.failWithoutThrowing("Failed to download API manifest", error50);
581942
581930
  }
581943
581931
  });
581944
581932
  return void 0;
@@ -581948,14 +581936,14 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
581948
581936
  const parsedCliVersionOfDependency = parseVersion(response.body.cliVersion);
581949
581937
  if (parsedYamlVersionOfDependency != null) {
581950
581938
  if (parsedYamlVersionOfDependency > YAML_SCHEMA_VERSION) {
581951
- context3.failWithoutThrowing(`${dependency.organization}/${dependency.apiName}@${dependency.version} on a higher version of fern. Upgrade this workspace to ${response.body.cliVersion}`, void 0, { code: CliError.Code.VersionError });
581939
+ context3.failWithoutThrowing(`${dependency.organization}/${dependency.apiName}@${dependency.version} on a higher version of fern. Upgrade this workspace to ${response.body.cliVersion}`);
581952
581940
  return void 0;
581953
581941
  } else if (parsedYamlVersionOfDependency < YAML_SCHEMA_VERSION) {
581954
- context3.failWithoutThrowing(`${dependency.organization}/${dependency.apiName}@${dependency.version} on a lower version of fern. Upgrade it to ${cliVersion}`, void 0, { code: CliError.Code.VersionError });
581942
+ context3.failWithoutThrowing(`${dependency.organization}/${dependency.apiName}@${dependency.version} on a lower version of fern. Upgrade it to ${cliVersion}`);
581955
581943
  return void 0;
581956
581944
  }
581957
581945
  } else if (parsedCliVersion.major !== parsedCliVersionOfDependency.major || parsedCliVersion.minor !== parsedCliVersionOfDependency.minor) {
581958
- context3.failWithoutThrowing(`CLI version is ${response.body.cliVersion}. Expected ${parsedCliVersion.major}.${parsedCliVersion.minor}.x (to match current workspace).`, void 0, { code: CliError.Code.VersionError });
581946
+ context3.failWithoutThrowing(`CLI version is ${response.body.cliVersion}. Expected ${parsedCliVersion.major}.${parsedCliVersion.minor}.x (to match current workspace).`);
581959
581947
  return void 0;
581960
581948
  }
581961
581949
  context3.logger.info("Downloading...");
@@ -581967,9 +581955,7 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
581967
581955
  absolutePathToLocalOutput: pathToDefinition
581968
581956
  });
581969
581957
  } catch (error50) {
581970
- context3.failWithoutThrowing("Failed to download API", error50, {
581971
- code: CliError.Code.NetworkError
581972
- });
581958
+ context3.failWithoutThrowing("Failed to download API", error50);
581973
581959
  return void 0;
581974
581960
  }
581975
581961
  metadata = response.body;
@@ -581979,9 +581965,7 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
581979
581965
  }
581980
581966
  context3.logger.info("Parsing...");
581981
581967
  if (loadAPIWorkspace2 == null) {
581982
- context3.failWithoutThrowing("Failed to load API", void 0, {
581983
- code: CliError.Code.ResolutionError
581984
- });
581968
+ context3.failWithoutThrowing("Failed to load API");
581985
581969
  return void 0;
581986
581970
  }
581987
581971
  const loadDependencyWorkspaceResult = await loadAPIWorkspace2({
@@ -581991,14 +581975,12 @@ async function validateVersionedDependencyAndGetDefinition({ dependency, context
581991
581975
  workspaceName: void 0
581992
581976
  });
581993
581977
  if (!loadDependencyWorkspaceResult.didSucceed) {
581994
- context3.failWithoutThrowing("Failed to parse dependency after downloading", loadDependencyWorkspaceResult.failures, { code: CliError.Code.ParseError });
581978
+ context3.failWithoutThrowing("Failed to parse dependency after downloading", loadDependencyWorkspaceResult.failures);
581995
581979
  return void 0;
581996
581980
  }
581997
581981
  const workspaceOfDependency = loadDependencyWorkspaceResult.workspace;
581998
581982
  if (workspaceOfDependency.type === "oss") {
581999
- context3.failWithoutThrowing("Dependency must be a fern workspace.", void 0, {
582000
- code: CliError.Code.ConfigError
582001
- });
581983
+ context3.failWithoutThrowing("Dependency must be a fern workspace.");
582002
581984
  return void 0;
582003
581985
  }
582004
581986
  return await loadDependencyWorkspaceResult.workspace.getDefinition({ context: context3 }, settings);
@@ -592538,9 +592520,7 @@ var LazyFernWorkspace = class extends AbstractAPIWorkspace {
592538
592520
  const parseResult = await parseYamlFiles(yamlFiles);
592539
592521
  if (!parseResult.didSucceed) {
592540
592522
  handleFailedWorkspaceParserResultRaw(parseResult.failures, defaultedContext.logger);
592541
- return defaultedContext.failAndThrow(void 0, void 0, {
592542
- code: CliError.Code.ValidationError
592543
- });
592523
+ return defaultedContext.failAndThrow();
592544
592524
  }
592545
592525
  const structuralValidationResult = validateStructureOfYamlFiles({
592546
592526
  files: parseResult.files,
@@ -592549,9 +592529,7 @@ var LazyFernWorkspace = class extends AbstractAPIWorkspace {
592549
592529
  });
592550
592530
  if (!structuralValidationResult.didSucceed) {
592551
592531
  handleFailedWorkspaceParserResultRaw(structuralValidationResult.failures, defaultedContext.logger);
592552
- return defaultedContext.failAndThrow(void 0, void 0, {
592553
- code: CliError.Code.ValidationError
592554
- });
592532
+ return defaultedContext.failAndThrow();
592555
592533
  }
592556
592534
  const processPackageMarkersResult = await processPackageMarkers({
592557
592535
  dependenciesConfiguration,
@@ -592563,9 +592541,7 @@ var LazyFernWorkspace = class extends AbstractAPIWorkspace {
592563
592541
  });
592564
592542
  if (!processPackageMarkersResult.didSucceed) {
592565
592543
  handleFailedWorkspaceParserResultRaw(processPackageMarkersResult.failures, defaultedContext.logger);
592566
- return defaultedContext.failAndThrow(void 0, void 0, {
592567
- code: CliError.Code.ValidationError
592568
- });
592544
+ return defaultedContext.failAndThrow();
592569
592545
  }
592570
592546
  let definition3 = {
592571
592547
  absoluteFilePath: absolutePathToDefinition,
@@ -592632,9 +592608,7 @@ async function mergeWithOverrides2({ absoluteFilePathToOverrides, data: data2, c
592632
592608
  parsedOverrides = jsYaml.load(contents, { json: true });
592633
592609
  }
592634
592610
  } catch (err) {
592635
- return context3.failAndThrow(`Failed to read overrides from file ${absoluteFilePathToOverrides}`, void 0, {
592636
- code: CliError.Code.ParseError
592637
- });
592611
+ return context3.failAndThrow(`Failed to read overrides from file ${absoluteFilePathToOverrides}`);
592638
592612
  }
592639
592613
  return mergeWithOverrides({ data: data2, overrides: parsedOverrides, allowNullKeys });
592640
592614
  }
@@ -592794,10 +592768,7 @@ async function resolveExternalRefs(obj, baseDir, mainFileAbsPath, registry2, app
592794
592768
  }
592795
592769
  const cacheKey = `${absoluteRefPath}#${jsonPointer}`;
592796
592770
  if (visited.has(cacheKey)) {
592797
- throw new CliError({
592798
- message: `Circular $ref detected: "${ref2}" (resolved to "${cacheKey}")`,
592799
- code: CliError.Code.ReferenceError
592800
- });
592771
+ throw new Error(`Circular $ref detected: "${ref2}" (resolved to "${cacheKey}")`);
592801
592772
  }
592802
592773
  const newVisited = new Set(visited);
592803
592774
  newVisited.add(cacheKey);
@@ -592880,9 +592851,7 @@ async function parseOverlayFile(absoluteFilePathToOverlay, context3) {
592880
592851
  try {
592881
592852
  contents = await (0, import_promises26.readFile)(absoluteFilePathToOverlay, "utf8");
592882
592853
  } catch (err) {
592883
- return context3.failAndThrow(`Failed to read overlay file at ${absoluteFilePathToOverlay}: ${err}`, void 0, {
592884
- code: CliError.Code.ConfigError
592885
- });
592854
+ return context3.failAndThrow(`Failed to read overlay file at ${absoluteFilePathToOverlay}: ${err}`);
592886
592855
  }
592887
592856
  try {
592888
592857
  try {
@@ -592891,9 +592860,7 @@ async function parseOverlayFile(absoluteFilePathToOverlay, context3) {
592891
592860
  return jsYaml.load(contents, { json: true });
592892
592861
  }
592893
592862
  } catch (err) {
592894
- return context3.failAndThrow(`Failed to parse overlay file at ${absoluteFilePathToOverlay}: ${err}`, void 0, {
592895
- code: CliError.Code.ParseError
592896
- });
592863
+ return context3.failAndThrow(`Failed to parse overlay file at ${absoluteFilePathToOverlay}: ${err}`);
592897
592864
  }
592898
592865
  }
592899
592866
  function validateOverlay(overlay, context3) {
@@ -605093,7 +605060,7 @@ function getPlatformInfo() {
605093
605060
  osName = "Windows";
605094
605061
  break;
605095
605062
  default:
605096
- throw new CliError({ message: `Unsupported platform: ${platform3}`, code: CliError.Code.EnvironmentError });
605063
+ throw new Error(`Unsupported platform: ${platform3}`);
605097
605064
  }
605098
605065
  let archName;
605099
605066
  switch (arch3) {
@@ -605104,7 +605071,7 @@ function getPlatformInfo() {
605104
605071
  archName = platform3 === "linux" ? "aarch64" : "arm64";
605105
605072
  break;
605106
605073
  default:
605107
- throw new CliError({ message: `Unsupported architecture: ${arch3}`, code: CliError.Code.EnvironmentError });
605074
+ throw new Error(`Unsupported architecture: ${arch3}`);
605108
605075
  }
605109
605076
  return {
605110
605077
  os: osName,
@@ -605178,10 +605145,7 @@ async function acquireLock(logger4) {
605178
605145
  await new Promise((resolve14) => setTimeout(resolve14, LOCK_RETRY_INTERVAL_MS));
605179
605146
  }
605180
605147
  }
605181
- throw new CliError({
605182
- message: `Failed to acquire buf lock after timeout and retry`,
605183
- code: CliError.Code.InternalError
605184
- });
605148
+ throw new Error(`Failed to acquire buf lock after timeout and retry`);
605185
605149
  }
605186
605150
  return createLockReleaser(lockPath, logger4);
605187
605151
  }
@@ -605370,10 +605334,7 @@ async function ensureBufCommand(logger4) {
605370
605334
  logger4.debug(`Using auto-downloaded buf: ${downloadedBufPath}`);
605371
605335
  return downloadedBufPath;
605372
605336
  }
605373
- throw new CliError({
605374
- message: "Missing required dependency; please install 'buf' to continue (e.g. 'brew install buf').",
605375
- code: CliError.Code.EnvironmentError
605376
- });
605337
+ throw new Error("Missing required dependency; please install 'buf' to continue (e.g. 'brew install buf').");
605377
605338
  }
605378
605339
  }
605379
605340
  var PROTOBUF_GENERATOR_CONFIG_FILENAME = "buf.gen.yaml";
@@ -605590,7 +605551,7 @@ var ProtobufIRGenerator = class {
605590
605551
  try {
605591
605552
  await (0, import_promises34.access)(bufLockPath);
605592
605553
  } catch {
605593
- this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.", void 0, { code: CliError.Code.InternalError });
605554
+ this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.");
605594
605555
  }
605595
605556
  } else {
605596
605557
  await buf(["dep", "update"]);
@@ -605598,9 +605559,7 @@ var ProtobufIRGenerator = class {
605598
605559
  }
605599
605560
  const bufGenerateResult = await buf(["generate"]);
605600
605561
  if (bufGenerateResult.exitCode !== 0) {
605601
- this.context.failAndThrow(bufGenerateResult.stderr, void 0, {
605602
- code: CliError.Code.IrConversionError
605603
- });
605562
+ this.context.failAndThrow(bufGenerateResult.stderr);
605604
605563
  }
605605
605564
  await (0, import_promises34.unlink)(bufYamlPath);
605606
605565
  } catch (error50) {
@@ -605616,15 +605575,11 @@ var ProtobufIRGenerator = class {
605616
605575
  try {
605617
605576
  this.resolvedBufCommand = await ensureBufCommand(this.context.logger);
605618
605577
  } catch (error50) {
605619
- this.context.failAndThrow(error50 instanceof Error ? error50.message : String(error50), void 0, {
605620
- code: CliError.Code.EnvironmentError
605621
- });
605578
+ this.context.failAndThrow(error50 instanceof Error ? error50.message : String(error50));
605622
605579
  }
605623
605580
  }
605624
605581
  async generateRemote() {
605625
- this.context.failAndThrow("Remote Protobuf generation is unimplemented.", void 0, {
605626
- code: CliError.Code.InternalError
605627
- });
605582
+ this.context.failAndThrow("Remote Protobuf generation is unimplemented.");
605628
605583
  }
605629
605584
  };
605630
605585
 
@@ -605664,7 +605619,7 @@ function getPlatformInfo2() {
605664
605619
  osName = "windows";
605665
605620
  break;
605666
605621
  default:
605667
- throw new CliError({ message: `Unsupported platform: ${platform3}`, code: CliError.Code.EnvironmentError });
605622
+ throw new Error(`Unsupported platform: ${platform3}`);
605668
605623
  }
605669
605624
  let archName;
605670
605625
  switch (arch3) {
@@ -605675,7 +605630,7 @@ function getPlatformInfo2() {
605675
605630
  archName = "arm64";
605676
605631
  break;
605677
605632
  default:
605678
- throw new CliError({ message: `Unsupported architecture: ${arch3}`, code: CliError.Code.EnvironmentError });
605633
+ throw new Error(`Unsupported architecture: ${arch3}`);
605679
605634
  }
605680
605635
  return {
605681
605636
  os: osName,
@@ -605749,10 +605704,7 @@ async function acquireLock2(logger4) {
605749
605704
  await new Promise((resolve14) => setTimeout(resolve14, LOCK_RETRY_INTERVAL_MS2));
605750
605705
  }
605751
605706
  }
605752
- throw new CliError({
605753
- message: `Failed to acquire lock after timeout and retry`,
605754
- code: CliError.Code.InternalError
605755
- });
605707
+ throw new Error(`Failed to acquire lock after timeout and retry`);
605756
605708
  }
605757
605709
  return createLockReleaser2(lockPath, logger4);
605758
605710
  }
@@ -605870,9 +605822,7 @@ var ProtobufOpenAPIGenerator = class {
605870
605822
  */
605871
605823
  async prepare({ absoluteFilepathToProtobufRoot, relativeFilepathToProtobufRoot, local, deps }) {
605872
605824
  if (!local) {
605873
- this.context.failAndThrow("Remote Protobuf generation is unimplemented.", void 0, {
605874
- code: CliError.Code.InternalError
605875
- });
605825
+ this.context.failAndThrow("Remote Protobuf generation is unimplemented.");
605876
605826
  }
605877
605827
  await this.ensureBufResolved();
605878
605828
  await this.ensureProtocGenOpenAPIResolved();
@@ -605892,7 +605842,7 @@ var ProtobufOpenAPIGenerator = class {
605892
605842
  try {
605893
605843
  await (0, import_promises36.access)(bufLockPath);
605894
605844
  } catch {
605895
- this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.", void 0, { code: CliError.Code.InternalError });
605845
+ this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.");
605896
605846
  }
605897
605847
  } else {
605898
605848
  const bufCommand = this.resolvedBufCommand ?? "buf";
@@ -605929,9 +605879,7 @@ var ProtobufOpenAPIGenerator = class {
605929
605879
  });
605930
605880
  const bufGenerateResult = await buf(["generate", target.toString()]);
605931
605881
  if (bufGenerateResult.exitCode !== 0) {
605932
- this.context.failAndThrow(bufGenerateResult.stderr, void 0, {
605933
- code: CliError.Code.IrConversionError
605934
- });
605882
+ this.context.failAndThrow(bufGenerateResult.stderr);
605935
605883
  }
605936
605884
  const outputPath = join8(preparedDir.cwd, RelativeFilePath2.of(PROTOBUF_GENERATOR_OUTPUT_FILEPATH2));
605937
605885
  const uniqueOutput = AbsoluteFilePath2.of((await import_tmp_promise7.default.file({ postfix: ".yaml" })).path);
@@ -605989,7 +605937,7 @@ var ProtobufOpenAPIGenerator = class {
605989
605937
  try {
605990
605938
  await (0, import_promises36.access)(bufLockPath);
605991
605939
  } catch {
605992
- this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.", void 0, { code: CliError.Code.InternalError });
605940
+ this.context.failAndThrow("Air-gapped mode requires a pre-cached buf.lock file. Please run 'buf dep update' at build time to cache dependencies.");
605993
605941
  }
605994
605942
  } else {
605995
605943
  await buf(["dep", "update"]);
@@ -606002,9 +605950,7 @@ var ProtobufOpenAPIGenerator = class {
606002
605950
  }
606003
605951
  const bufGenerateResult = await buf(["generate", target.toString()]);
606004
605952
  if (bufGenerateResult.exitCode !== 0) {
606005
- this.context.failAndThrow(bufGenerateResult.stderr, void 0, {
606006
- code: CliError.Code.IrConversionError
606007
- });
605953
+ this.context.failAndThrow(bufGenerateResult.stderr);
606008
605954
  }
606009
605955
  if (cleanupBufLock) {
606010
605956
  await (0, import_promises36.unlink)(bufLockPath);
@@ -606042,7 +605988,7 @@ var ProtobufOpenAPIGenerator = class {
606042
605988
  this.protocGenOpenAPIResolved = true;
606043
605989
  return;
606044
605990
  } catch {
606045
- this.context.failAndThrow("FERN_USE_LOCAL_PROTOC_GEN_OPENAPI is set but protoc-gen-openapi was not found on PATH.", void 0, { code: CliError.Code.EnvironmentError });
605991
+ this.context.failAndThrow("FERN_USE_LOCAL_PROTOC_GEN_OPENAPI is set but protoc-gen-openapi was not found on PATH.");
606046
605992
  }
606047
605993
  }
606048
605994
  this.context.logger.debug("Resolving protoc-gen-openapi (preferring auto-downloaded fern fork)");
@@ -606067,7 +606013,7 @@ var ProtobufOpenAPIGenerator = class {
606067
606013
  }
606068
606014
  this.protocGenOpenAPIResolved = true;
606069
606015
  } catch {
606070
- this.context.failAndThrow("Missing required dependency; please install 'protoc-gen-openapi' to continue (e.g. 'brew install go && go install github.com/fern-api/protoc-gen-openapi/cmd/protoc-gen-openapi@latest').", void 0, { code: CliError.Code.EnvironmentError });
606016
+ this.context.failAndThrow("Missing required dependency; please install 'protoc-gen-openapi' to continue (e.g. 'brew install go && go install github.com/fern-api/protoc-gen-openapi/cmd/protoc-gen-openapi@latest').");
606071
606017
  }
606072
606018
  }
606073
606019
  async ensureBufResolved() {
@@ -606077,15 +606023,11 @@ var ProtobufOpenAPIGenerator = class {
606077
606023
  try {
606078
606024
  this.resolvedBufCommand = await ensureBufCommand(this.context.logger);
606079
606025
  } catch (error50) {
606080
- this.context.failAndThrow(error50 instanceof Error ? error50.message : String(error50), void 0, {
606081
- code: CliError.Code.EnvironmentError
606082
- });
606026
+ this.context.failAndThrow(error50 instanceof Error ? error50.message : String(error50));
606083
606027
  }
606084
606028
  }
606085
606029
  async generateRemote() {
606086
- this.context.failAndThrow("Remote Protobuf generation is unimplemented.", void 0, {
606087
- code: CliError.Code.InternalError
606088
- });
606030
+ this.context.failAndThrow("Remote Protobuf generation is unimplemented.");
606089
606031
  }
606090
606032
  };
606091
606033
  function getProtobufGeneratorConfig({ relativeFilepathToProtobufRoot }) {
@@ -606464,10 +606406,7 @@ var OSSWorkspace = class _OSSWorkspace extends BaseOpenAPIWorkspace {
606464
606406
  }
606465
606407
  }
606466
606408
  if (mergedIr === void 0) {
606467
- throw new CliError({
606468
- message: "Failed to generate intermediate representation",
606469
- code: CliError.Code.IrConversionError
606470
- });
606409
+ throw new Error("Failed to generate intermediate representation");
606471
606410
  }
606472
606411
  if (authOverrides != null) {
606473
606412
  mergedIr = resolveOAuthEndpointReferences({ ir: mergedIr, authOverrides });
@@ -606563,10 +606502,7 @@ var OSSWorkspace = class _OSSWorkspace extends BaseOpenAPIWorkspace {
606563
606502
  }
606564
606503
  async convertSpecsOverrideToSpecs(specsOverride) {
606565
606504
  if (!Array.isArray(specsOverride)) {
606566
- throw new CliError({
606567
- message: "Conjure specs override is not yet supported",
606568
- code: CliError.Code.InternalError
606569
- });
606505
+ throw new Error("Conjure specs override is not yet supported");
606570
606506
  }
606571
606507
  const specs = [];
606572
606508
  for (const spec of specsOverride) {
@@ -606600,10 +606536,7 @@ var OSSWorkspace = class _OSSWorkspace extends BaseOpenAPIWorkspace {
606600
606536
  };
606601
606537
  specs.push(openApiSpec);
606602
606538
  } else {
606603
- throw new CliError({
606604
- message: `Spec type override not yet supported. Only OpenAPI specs are currently supported in specs override.`,
606605
- code: CliError.Code.InternalError
606606
- });
606539
+ throw new Error(`Spec type override not yet supported. Only OpenAPI specs are currently supported in specs override.`);
606607
606540
  }
606608
606541
  }
606609
606542
  return specs;
@@ -614735,7 +614668,7 @@ var AccessTokenPosthogManager = class {
614735
614668
  properties: {
614736
614669
  ...event,
614737
614670
  ...event.properties,
614738
- version: "4.82.0-1-g000d7384e60",
614671
+ version: "4.82.0",
614739
614672
  usingAccessToken: true
614740
614673
  }
614741
614674
  });
@@ -614789,7 +614722,7 @@ var UserPosthogManager = class {
614789
614722
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614790
614723
  event: "CLI",
614791
614724
  properties: {
614792
- version: "4.82.0-1-g000d7384e60",
614725
+ version: "4.82.0",
614793
614726
  ...event,
614794
614727
  ...event.properties,
614795
614728
  usingAccessToken: false,
@@ -832205,7 +832138,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832205
832138
  var LOGS_FOLDER_NAME = "logs";
832206
832139
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832207
832140
  function getCliSource() {
832208
- const version7 = "4.82.0-1-g000d7384e60";
832141
+ const version7 = "4.82.0";
832209
832142
  return `cli@${version7}`;
832210
832143
  }
832211
832144
  var DebugLogger = class {
@@ -843807,7 +843740,7 @@ var LegacyDocsPublisher = class {
843807
843740
  previewId,
843808
843741
  disableTemplates: void 0,
843809
843742
  skipUpload,
843810
- cliVersion: "4.82.0-1-g000d7384e60"
843743
+ cliVersion: "4.82.0"
843811
843744
  });
843812
843745
  if (taskContext.getResult() === TaskResult.Failure) {
843813
843746
  return { success: false };
@@ -919051,7 +918984,7 @@ var CliContext = class _CliContext {
919051
918984
  if (false) {
919052
918985
  this.logger.error("CLI_VERSION is not defined");
919053
918986
  }
919054
- return "4.82.0-1-g000d7384e60";
918987
+ return "4.82.0";
919055
918988
  }
919056
918989
  getCliName() {
919057
918990
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.82.0-1-g000d7384e60",
2
+ "version": "4.82.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",