@fern-api/fern-api-dev 4.66.1 → 4.67.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.
- package/cli.cjs +89 -14
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -517705,7 +517705,9 @@ var AIChatDatasource = AIChatWebsiteDatasource;
|
|
|
517705
517705
|
var PageDescriptionSource = external_exports.enum(["description", "subtitle"]);
|
|
517706
517706
|
var AgentsConfig = external_exports.object({
|
|
517707
517707
|
"page-directive": external_exports.string().optional(),
|
|
517708
|
-
"page-description-source": PageDescriptionSource.optional()
|
|
517708
|
+
"page-description-source": PageDescriptionSource.optional(),
|
|
517709
|
+
"llms-txt": external_exports.string().optional(),
|
|
517710
|
+
"llms-full-txt": external_exports.string().optional()
|
|
517709
517711
|
});
|
|
517710
517712
|
var AIChatConfig = external_exports.object({
|
|
517711
517713
|
model: AIChatModel.optional(),
|
|
@@ -520508,7 +520510,9 @@ var PageDescriptionSource3 = schemas_exports6.enum_(["description", "subtitle"])
|
|
|
520508
520510
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/AgentsConfig.js
|
|
520509
520511
|
var AgentsConfig2 = schemas_exports6.object({
|
|
520510
520512
|
pageDirective: schemas_exports6.property("page-directive", schemas_exports6.string().optional()),
|
|
520511
|
-
pageDescriptionSource: schemas_exports6.property("page-description-source", PageDescriptionSource3.optional())
|
|
520513
|
+
pageDescriptionSource: schemas_exports6.property("page-description-source", PageDescriptionSource3.optional()),
|
|
520514
|
+
llmsTxt: schemas_exports6.property("llms-txt", schemas_exports6.string().optional()),
|
|
520515
|
+
llmsFullTxt: schemas_exports6.property("llms-full-txt", schemas_exports6.string().optional())
|
|
520512
520516
|
});
|
|
520513
520517
|
|
|
520514
520518
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/AiChatWebsiteDatasource.js
|
|
@@ -555638,14 +555642,24 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
555638
555642
|
absoluteFilepathToDocsConfig,
|
|
555639
555643
|
context: context3
|
|
555640
555644
|
});
|
|
555641
|
-
const
|
|
555645
|
+
const llmsTxtFilePromise = parseTextFile({
|
|
555646
|
+
rawPath: agents?.llmsTxt,
|
|
555647
|
+
absoluteFilepathToDocsConfig
|
|
555648
|
+
});
|
|
555649
|
+
const llmsFullTxtFilePromise = parseTextFile({
|
|
555650
|
+
rawPath: agents?.llmsFullTxt,
|
|
555651
|
+
absoluteFilepathToDocsConfig
|
|
555652
|
+
});
|
|
555653
|
+
const [navigation, pages, typography, css, js5, metadata, context7File, llmsTxtFile, llmsFullTxtFile] = await Promise.all([
|
|
555642
555654
|
convertedNavigationPromise,
|
|
555643
555655
|
pagesPromise,
|
|
555644
555656
|
typographyPromise,
|
|
555645
555657
|
cssPromise,
|
|
555646
555658
|
jsPromise,
|
|
555647
555659
|
metadataPromise,
|
|
555648
|
-
context7FilePromise
|
|
555660
|
+
context7FilePromise,
|
|
555661
|
+
llmsTxtFilePromise,
|
|
555662
|
+
llmsFullTxtFilePromise
|
|
555649
555663
|
]);
|
|
555650
555664
|
const resolvedTheme = convertThemeConfig(rawDocsConfiguration.theme);
|
|
555651
555665
|
const tabsObj = resolvedTheme?.tabs != null && typeof resolvedTheme.tabs === "object" ? resolvedTheme.tabs : void 0;
|
|
@@ -555686,6 +555700,8 @@ async function parseDocsConfiguration({ rawDocsConfiguration, absolutePathToFern
|
|
|
555686
555700
|
layout: convertLayoutConfig(layout, tabsObj?.alignment, tabsObj?.placement),
|
|
555687
555701
|
settings: convertSettingsConfig(rawDocsConfiguration.settings),
|
|
555688
555702
|
context7File,
|
|
555703
|
+
llmsTxtFile,
|
|
555704
|
+
llmsFullTxtFile,
|
|
555689
555705
|
theme: resolvedTheme,
|
|
555690
555706
|
analyticsConfig: {
|
|
555691
555707
|
...rawDocsConfiguration.analytics,
|
|
@@ -555886,6 +555902,14 @@ function convertSettingsConfig(settings) {
|
|
|
555886
555902
|
disableAnalytics: settings.disableAnalytics ?? false
|
|
555887
555903
|
};
|
|
555888
555904
|
}
|
|
555905
|
+
async function parseTextFile({ rawPath, absoluteFilepathToDocsConfig }) {
|
|
555906
|
+
if (rawPath == null) {
|
|
555907
|
+
return void 0;
|
|
555908
|
+
}
|
|
555909
|
+
const absolutePath = resolveFilepath(rawPath, absoluteFilepathToDocsConfig);
|
|
555910
|
+
await (0, import_promises14.readFile)(absolutePath, "utf8");
|
|
555911
|
+
return absolutePath;
|
|
555912
|
+
}
|
|
555889
555913
|
async function parseContext7File({ rawPath, absoluteFilepathToDocsConfig, context: context3 }) {
|
|
555890
555914
|
if (rawPath == null) {
|
|
555891
555915
|
return void 0;
|
|
@@ -627532,7 +627556,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627532
627556
|
properties: {
|
|
627533
627557
|
...event,
|
|
627534
627558
|
...event.properties,
|
|
627535
|
-
version: "4.
|
|
627559
|
+
version: "4.67.0",
|
|
627536
627560
|
usingAccessToken: true
|
|
627537
627561
|
}
|
|
627538
627562
|
});
|
|
@@ -627583,7 +627607,7 @@ var UserPosthogManager = class {
|
|
|
627583
627607
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627584
627608
|
event: "CLI",
|
|
627585
627609
|
properties: {
|
|
627586
|
-
version: "4.
|
|
627610
|
+
version: "4.67.0",
|
|
627587
627611
|
...event,
|
|
627588
627612
|
...event.properties,
|
|
627589
627613
|
usingAccessToken: false,
|
|
@@ -757045,7 +757069,7 @@ var V66_TO_V65_MIGRATION = {
|
|
|
757045
757069
|
[GeneratorName.CSHARP_MODEL]: "0.9.0-rc.0",
|
|
757046
757070
|
[GeneratorName.CSHARP_SDK]: "2.57.0-rc.0",
|
|
757047
757071
|
[GeneratorName.SWIFT_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
757048
|
-
[GeneratorName.SWIFT_SDK]:
|
|
757072
|
+
[GeneratorName.SWIFT_SDK]: "0.32.0-rc.0",
|
|
757049
757073
|
[GeneratorName.PHP_MODEL]: "0.1.0-rc.0",
|
|
757050
757074
|
[GeneratorName.PHP_SDK]: "2.3.2-rc.0",
|
|
757051
757075
|
[GeneratorName.RUST_MODEL]: "0.5.0-rc.0",
|
|
@@ -803859,6 +803883,12 @@ async function collectFilesFromDocsConfig({ parsedDocsConfig }) {
|
|
|
803859
803883
|
if (parsedDocsConfig.context7File != null) {
|
|
803860
803884
|
filepaths.add(parsedDocsConfig.context7File);
|
|
803861
803885
|
}
|
|
803886
|
+
if (parsedDocsConfig.llmsTxtFile != null) {
|
|
803887
|
+
filepaths.add(parsedDocsConfig.llmsTxtFile);
|
|
803888
|
+
}
|
|
803889
|
+
if (parsedDocsConfig.llmsFullTxtFile != null) {
|
|
803890
|
+
filepaths.add(parsedDocsConfig.llmsFullTxtFile);
|
|
803891
|
+
}
|
|
803862
803892
|
if (parsedDocsConfig.pageActions?.options?.custom != null) {
|
|
803863
803893
|
await Promise.all(parsedDocsConfig.pageActions.options.custom.map(async (customAction) => {
|
|
803864
803894
|
if (customAction.icon != null) {
|
|
@@ -804678,7 +804708,11 @@ var DocsDefinitionResolver = class {
|
|
|
804678
804708
|
css: this.parsedDocsConfig.css,
|
|
804679
804709
|
js: this.convertJavascriptConfiguration(),
|
|
804680
804710
|
// @ts-expect-error - Remove this when the fdr-sdk upgraded to the latest version
|
|
804681
|
-
agents: this.parsedDocsConfig.agents
|
|
804711
|
+
agents: this.parsedDocsConfig.agents != null || this.parsedDocsConfig.llmsTxtFile != null || this.parsedDocsConfig.llmsFullTxtFile != null ? {
|
|
804712
|
+
...this.parsedDocsConfig.agents,
|
|
804713
|
+
llmsTxt: this.getFileId(this.parsedDocsConfig.llmsTxtFile),
|
|
804714
|
+
llmsFullTxt: this.getFileId(this.parsedDocsConfig.llmsFullTxtFile)
|
|
804715
|
+
} : void 0,
|
|
804682
804716
|
metadata: this.convertMetadata(),
|
|
804683
804717
|
redirects: this.parsedDocsConfig.redirects,
|
|
804684
804718
|
integrations,
|
|
@@ -816668,7 +816702,26 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
|
|
|
816668
816702
|
},
|
|
816669
816703
|
landingPage: noop2,
|
|
816670
816704
|
layout: noop2,
|
|
816671
|
-
agents:
|
|
816705
|
+
agents: async (agents) => {
|
|
816706
|
+
if (agents?.llmsTxt != null) {
|
|
816707
|
+
await visitFilepath({
|
|
816708
|
+
absoluteFilepathToConfiguration,
|
|
816709
|
+
rawUnresolvedFilepath: agents.llmsTxt,
|
|
816710
|
+
visitor,
|
|
816711
|
+
nodePath: ["agents", "llms-txt"],
|
|
816712
|
+
willBeUploaded: true
|
|
816713
|
+
});
|
|
816714
|
+
}
|
|
816715
|
+
if (agents?.llmsFullTxt != null) {
|
|
816716
|
+
await visitFilepath({
|
|
816717
|
+
absoluteFilepathToConfiguration,
|
|
816718
|
+
rawUnresolvedFilepath: agents.llmsFullTxt,
|
|
816719
|
+
visitor,
|
|
816720
|
+
nodePath: ["agents", "llms-full-txt"],
|
|
816721
|
+
willBeUploaded: true
|
|
816722
|
+
});
|
|
816723
|
+
}
|
|
816724
|
+
},
|
|
816672
816725
|
settings: noop2,
|
|
816673
816726
|
logo: async () => {
|
|
816674
816727
|
if (contents.logo?.dark != null) {
|
|
@@ -843812,7 +843865,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843812
843865
|
var LOGS_FOLDER_NAME = "logs";
|
|
843813
843866
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843814
843867
|
function getCliSource() {
|
|
843815
|
-
const version7 = "4.
|
|
843868
|
+
const version7 = "4.67.0";
|
|
843816
843869
|
return `cli@${version7}`;
|
|
843817
843870
|
}
|
|
843818
843871
|
var DebugLogger = class {
|
|
@@ -851288,6 +851341,26 @@ var definitions6 = {
|
|
|
851288
851341
|
type: "null"
|
|
851289
851342
|
}
|
|
851290
851343
|
]
|
|
851344
|
+
},
|
|
851345
|
+
"llms-txt": {
|
|
851346
|
+
oneOf: [
|
|
851347
|
+
{
|
|
851348
|
+
type: "string"
|
|
851349
|
+
},
|
|
851350
|
+
{
|
|
851351
|
+
type: "null"
|
|
851352
|
+
}
|
|
851353
|
+
]
|
|
851354
|
+
},
|
|
851355
|
+
"llms-full-txt": {
|
|
851356
|
+
oneOf: [
|
|
851357
|
+
{
|
|
851358
|
+
type: "string"
|
|
851359
|
+
},
|
|
851360
|
+
{
|
|
851361
|
+
type: "null"
|
|
851362
|
+
}
|
|
851363
|
+
]
|
|
851291
851364
|
}
|
|
851292
851365
|
},
|
|
851293
851366
|
additionalProperties: false
|
|
@@ -855023,7 +855096,7 @@ var LegacyDocsPublisher = class {
|
|
|
855023
855096
|
previewId,
|
|
855024
855097
|
disableTemplates: void 0,
|
|
855025
855098
|
skipUpload,
|
|
855026
|
-
cliVersion: "4.
|
|
855099
|
+
cliVersion: "4.67.0"
|
|
855027
855100
|
});
|
|
855028
855101
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855029
855102
|
return { success: false };
|
|
@@ -869612,8 +869685,9 @@ var Field = class extends MemberNode {
|
|
|
869612
869685
|
interfaceReference;
|
|
869613
869686
|
accessors;
|
|
869614
869687
|
override;
|
|
869688
|
+
useExpressionBody;
|
|
869615
869689
|
isEvent_;
|
|
869616
|
-
constructor({ name: name2, type: type8, access: access6, const_, new_, get: get5, init: init3, set: set25, annotations, initializer: initializer4, summary, doc, jsonPropertyName, readonly: readonly2, static_, useRequired, skipDefaultInitializer, interfaceReference, accessors, override, isEvent: isEvent3, origin: origin2, enclosingType }, generation) {
|
|
869690
|
+
constructor({ name: name2, type: type8, access: access6, const_, new_, get: get5, init: init3, set: set25, annotations, initializer: initializer4, summary, doc, jsonPropertyName, readonly: readonly2, static_, useRequired, skipDefaultInitializer, interfaceReference, accessors, override, useExpressionBody, isEvent: isEvent3, origin: origin2, enclosingType }, generation) {
|
|
869617
869691
|
super({ enclosingType }, origin2, generation);
|
|
869618
869692
|
if (!enclosingType) {
|
|
869619
869693
|
throw new Error("Enclosing type is required");
|
|
@@ -869638,6 +869712,7 @@ var Field = class extends MemberNode {
|
|
|
869638
869712
|
this.interfaceReference = interfaceReference;
|
|
869639
869713
|
this.accessors = accessors;
|
|
869640
869714
|
this.override = override ?? false;
|
|
869715
|
+
this.useExpressionBody = useExpressionBody;
|
|
869641
869716
|
this.isEvent_ = isEvent3 ?? false;
|
|
869642
869717
|
if (this.jsonPropertyName != null) {
|
|
869643
869718
|
this.annotations = [
|
|
@@ -869731,7 +869806,7 @@ var Field = class extends MemberNode {
|
|
|
869731
869806
|
writer2.writeLine("}");
|
|
869732
869807
|
return;
|
|
869733
869808
|
}
|
|
869734
|
-
const useExpressionBodiedPropertySyntax = this.get && !this.init && !this.set && this.initializer != null;
|
|
869809
|
+
const useExpressionBodiedPropertySyntax = this.useExpressionBody !== void 0 ? this.useExpressionBody : this.get && !this.init && !this.set && this.initializer != null;
|
|
869735
869810
|
if ((this.get || this.init || this.set) && !useExpressionBodiedPropertySyntax) {
|
|
869736
869811
|
writer2.write(" { ");
|
|
869737
869812
|
if (this.get) {
|
|
@@ -928619,7 +928694,7 @@ var CliContext = class {
|
|
|
928619
928694
|
if (false) {
|
|
928620
928695
|
this.logger.error("CLI_VERSION is not defined");
|
|
928621
928696
|
}
|
|
928622
|
-
return "4.
|
|
928697
|
+
return "4.67.0";
|
|
928623
928698
|
}
|
|
928624
928699
|
getCliName() {
|
|
928625
928700
|
if (false) {
|
package/package.json
CHANGED