@fern-api/fern-api-dev 5.50.5 → 5.50.6

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 +28 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -686370,7 +686370,7 @@ var AccessTokenPosthogManager = class {
686370
686370
  properties: {
686371
686371
  ...event,
686372
686372
  ...event.properties,
686373
- version: "5.50.5",
686373
+ version: "5.50.6",
686374
686374
  usingAccessToken: true,
686375
686375
  ...getRunIdProperties()
686376
686376
  }
@@ -686436,7 +686436,7 @@ var UserPosthogManager = class {
686436
686436
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
686437
686437
  event: "CLI",
686438
686438
  properties: {
686439
- version: "5.50.5",
686439
+ version: "5.50.6",
686440
686440
  ...event,
686441
686441
  ...event.properties,
686442
686442
  usingAccessToken: false,
@@ -867498,7 +867498,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
867498
867498
  var LOGS_FOLDER_NAME = "logs";
867499
867499
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
867500
867500
  function getCliSource() {
867501
- const version7 = "5.50.5";
867501
+ const version7 = "5.50.6";
867502
867502
  return `cli@${version7}`;
867503
867503
  }
867504
867504
  var DebugLogger = class {
@@ -897837,7 +897837,7 @@ function mapIntegrations(integrations) {
897837
897837
  intercom: integrations.intercom
897838
897838
  };
897839
897839
  }
897840
- function mapDocsConfigToLedgerConfig({ docsConfig, fileManifest, fileIdToPath }) {
897840
+ function mapDocsConfigToLedgerConfig({ docsConfig, fileManifest, fileIdToPath, editThisPage }) {
897841
897841
  return {
897842
897842
  title: docsConfig.title,
897843
897843
  defaultLanguage: docsConfig.defaultLanguage,
@@ -897863,6 +897863,12 @@ function mapDocsConfigToLedgerConfig({ docsConfig, fileManifest, fileIdToPath })
897863
897863
  aiChatConfig: docsConfig.aiChatConfig,
897864
897864
  pageActions: docsConfig.pageActions,
897865
897865
  editThisPageLaunch: docsConfig.editThisPageLaunch,
897866
+ editThisPageGithub: editThisPage?.github != null ? {
897867
+ owner: editThisPage.github.owner,
897868
+ repo: editThisPage.github.repo,
897869
+ branch: editThisPage.github.branch ?? "main",
897870
+ host: editThisPage.github.host ?? "https://github.com"
897871
+ } : void 0,
897866
897872
  integrations: mapIntegrations(docsConfig.integrations),
897867
897873
  header: docsConfig.header,
897868
897874
  footer: docsConfig.footer
@@ -897935,7 +897941,7 @@ function jsonBlobRef(value2) {
897935
897941
  buf
897936
897942
  };
897937
897943
  }
897938
- function buildLedgerInput({ docsDefinition, git, apiDefinitions, fileManifest, fileIdToPath, locale = "en" }) {
897944
+ function buildLedgerInput({ docsDefinition, git, apiDefinitions, fileManifest, fileIdToPath, editThisPage, locale = "en" }) {
897939
897945
  const blobs = /* @__PURE__ */ new Map();
897940
897946
  const pages = {};
897941
897947
  for (const [pageId, page] of Object.entries(docsDefinition.pages)) {
@@ -897957,7 +897963,8 @@ function buildLedgerInput({ docsDefinition, git, apiDefinitions, fileManifest, f
897957
897963
  const ledgerConfig = mapDocsConfigToLedgerConfig({
897958
897964
  docsConfig: docsDefinition.config,
897959
897965
  fileManifest,
897960
- fileIdToPath
897966
+ fileIdToPath,
897967
+ editThisPage
897961
897968
  });
897962
897969
  let apiManifestRef = null;
897963
897970
  if (apiDefinitions.size > 0) {
@@ -897985,13 +897992,14 @@ function buildLedgerInput({ docsDefinition, git, apiDefinitions, fileManifest, f
897985
897992
  };
897986
897993
  return { localeEntry, blobs };
897987
897994
  }
897988
- async function publishDocsViaLedger({ docsDefinition, organization, domain: domain3, basepath, previewId, customDomains, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, resolver: resolver2 }) {
897995
+ async function publishDocsViaLedger({ docsDefinition, organization, domain: domain3, basepath, previewId, customDomains, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, editThisPage, resolver: resolver2 }) {
897989
897996
  const { localeEntry: baseLocale, blobs } = buildLedgerInput({
897990
897997
  docsDefinition,
897991
897998
  git,
897992
897999
  apiDefinitions,
897993
898000
  fileManifest,
897994
- fileIdToPath
898001
+ fileIdToPath,
898002
+ editThisPage
897995
898003
  });
897996
898004
  const builtTranslations = await buildAllTranslationInputs({
897997
898005
  docsDefinition,
@@ -897999,6 +898007,7 @@ async function publishDocsViaLedger({ docsDefinition, organization, domain: doma
897999
898007
  apiDefinitions,
898000
898008
  fileManifest,
898001
898009
  fileIdToPath,
898010
+ editThisPage,
898002
898011
  resolver: resolver2,
898003
898012
  context: context3
898004
898013
  });
@@ -898138,7 +898147,7 @@ function buildLocaleApiDefinitions({ baseApiDefinitions, translatedSpecs, contex
898138
898147
  }
898139
898148
  return localeApiDefs;
898140
898149
  }
898141
- async function buildAllTranslationInputs({ docsDefinition, git, apiDefinitions, fileManifest, fileIdToPath, resolver: resolver2, context: context3 }) {
898150
+ async function buildAllTranslationInputs({ docsDefinition, git, apiDefinitions, fileManifest, fileIdToPath, editThisPage, resolver: resolver2, context: context3 }) {
898142
898151
  if (resolver2 == null) {
898143
898152
  return [];
898144
898153
  }
@@ -898199,6 +898208,7 @@ async function buildAllTranslationInputs({ docsDefinition, git, apiDefinitions,
898199
898208
  apiDefinitions: localeApiDefinitions,
898200
898209
  fileManifest,
898201
898210
  fileIdToPath,
898211
+ editThisPage,
898202
898212
  locale
898203
898213
  });
898204
898214
  return { locale, localePages, translatedDefinition, localeEntry, blobs };
@@ -898207,13 +898217,14 @@ async function buildAllTranslationInputs({ docsDefinition, git, apiDefinitions,
898207
898217
 
898208
898218
  // ../generation/remote-generation/remote-workspace-runner/lib/publishDocsLedgerPreview.js
898209
898219
  init_orpc_client();
898210
- async function publishDocsViaLedgerPreview({ docsDefinition, organization, basePath, previewId, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, resolver: resolver2 }) {
898220
+ async function publishDocsViaLedgerPreview({ docsDefinition, organization, basePath, previewId, git, token, fdrOrigin, headers: headers2, context: context3, apiDefinitions, fileManifest, filePaths, fileIdToPath, editThisPage, resolver: resolver2 }) {
898211
898221
  const { localeEntry: baseLocale, blobs } = buildLedgerInput({
898212
898222
  docsDefinition,
898213
898223
  git,
898214
898224
  apiDefinitions,
898215
898225
  fileManifest,
898216
- fileIdToPath
898226
+ fileIdToPath,
898227
+ editThisPage
898217
898228
  });
898218
898229
  const builtTranslations = await buildAllTranslationInputs({
898219
898230
  docsDefinition,
@@ -898221,6 +898232,7 @@ async function publishDocsViaLedgerPreview({ docsDefinition, organization, baseP
898221
898232
  apiDefinitions,
898222
898233
  fileManifest,
898223
898234
  fileIdToPath,
898235
+ editThisPage,
898224
898236
  resolver: resolver2,
898225
898237
  context: context3
898226
898238
  });
@@ -898749,6 +898761,7 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
898749
898761
  fileManifest: Object.keys(ledgerFileManifest).length > 0 ? ledgerFileManifest : void 0,
898750
898762
  filePaths: ledgerFilePaths.size > 0 ? ledgerFilePaths : void 0,
898751
898763
  fileIdToPath: ledgerFileIdToPath.size > 0 ? ledgerFileIdToPath : void 0,
898764
+ editThisPage,
898752
898765
  resolver: resolver2
898753
898766
  });
898754
898767
  if (deployMode === "ledger") {
@@ -898772,6 +898785,7 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
898772
898785
  fileManifest: Object.keys(ledgerFileManifest).length > 0 ? ledgerFileManifest : void 0,
898773
898786
  filePaths: ledgerFilePaths.size > 0 ? ledgerFilePaths : void 0,
898774
898787
  fileIdToPath: ledgerFileIdToPath.size > 0 ? ledgerFileIdToPath : void 0,
898788
+ editThisPage,
898775
898789
  resolver: resolver2
898776
898790
  });
898777
898791
  context3.logger.info(`[ledger] Deployment ${ledgerResult.reusedDeployment ? "reused" : "created"}: ${ledgerResult.deploymentId}`);
@@ -899672,7 +899686,7 @@ var LegacyDocsPublisher = class {
899672
899686
  previewId,
899673
899687
  disableTemplates: void 0,
899674
899688
  skipUpload,
899675
- cliVersion: "5.50.5",
899689
+ cliVersion: "5.50.6",
899676
899690
  loginCommand: "fern auth login"
899677
899691
  });
899678
899692
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -965807,7 +965821,7 @@ function getAutomationContextFromEnv() {
965807
965821
  config_branch: process.env.FERN_CONFIG_BRANCH,
965808
965822
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
965809
965823
  trigger: process.env.GITHUB_EVENT_NAME,
965810
- cli_version: "5.50.5"
965824
+ cli_version: "5.50.6"
965811
965825
  };
965812
965826
  }
965813
965827
  function isAutomationMode() {
@@ -966639,7 +966653,7 @@ var CliContext = class _CliContext {
966639
966653
  if (false) {
966640
966654
  this.logger.error("CLI_VERSION is not defined");
966641
966655
  }
966642
- return "5.50.5";
966656
+ return "5.50.6";
966643
966657
  }
966644
966658
  getCliName() {
966645
966659
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.50.5",
2
+ "version": "5.50.6",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",