@fern-api/fern-api-dev 5.22.1 → 5.23.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 +933 -558
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -25304,6 +25304,102 @@ var init_helpers = __esm({
|
|
|
25304
25304
|
}
|
|
25305
25305
|
});
|
|
25306
25306
|
|
|
25307
|
+
// ../logger/lib/LogLevel.js
|
|
25308
|
+
var LogLevel, LOG_LEVELS;
|
|
25309
|
+
var init_LogLevel = __esm({
|
|
25310
|
+
"../logger/lib/LogLevel.js"() {
|
|
25311
|
+
"use strict";
|
|
25312
|
+
LogLevel = {
|
|
25313
|
+
Trace: "trace",
|
|
25314
|
+
Debug: "debug",
|
|
25315
|
+
Info: "info",
|
|
25316
|
+
Warn: "warn",
|
|
25317
|
+
Error: "error"
|
|
25318
|
+
};
|
|
25319
|
+
LOG_LEVELS = Object.values(LogLevel);
|
|
25320
|
+
}
|
|
25321
|
+
});
|
|
25322
|
+
|
|
25323
|
+
// ../logger/lib/createLogger.js
|
|
25324
|
+
function createLogger(log4) {
|
|
25325
|
+
return new LoggerImpl(log4);
|
|
25326
|
+
}
|
|
25327
|
+
var LoggerImpl;
|
|
25328
|
+
var init_createLogger = __esm({
|
|
25329
|
+
"../logger/lib/createLogger.js"() {
|
|
25330
|
+
"use strict";
|
|
25331
|
+
init_LogLevel();
|
|
25332
|
+
LoggerImpl = class {
|
|
25333
|
+
log;
|
|
25334
|
+
enabled;
|
|
25335
|
+
constructor(log4, enabled = true) {
|
|
25336
|
+
this.log = log4;
|
|
25337
|
+
this.enabled = enabled;
|
|
25338
|
+
}
|
|
25339
|
+
disable() {
|
|
25340
|
+
this.enabled = false;
|
|
25341
|
+
}
|
|
25342
|
+
enable() {
|
|
25343
|
+
this.enabled = true;
|
|
25344
|
+
}
|
|
25345
|
+
debug(...args) {
|
|
25346
|
+
if (this.enabled) {
|
|
25347
|
+
this.log(LogLevel.Debug, ...args);
|
|
25348
|
+
}
|
|
25349
|
+
}
|
|
25350
|
+
info(...args) {
|
|
25351
|
+
if (this.enabled) {
|
|
25352
|
+
this.log(LogLevel.Info, ...args);
|
|
25353
|
+
}
|
|
25354
|
+
}
|
|
25355
|
+
warn(...args) {
|
|
25356
|
+
if (this.enabled) {
|
|
25357
|
+
this.log(LogLevel.Warn, ...args);
|
|
25358
|
+
}
|
|
25359
|
+
}
|
|
25360
|
+
error(...args) {
|
|
25361
|
+
if (this.enabled) {
|
|
25362
|
+
this.log(LogLevel.Error, ...args);
|
|
25363
|
+
}
|
|
25364
|
+
}
|
|
25365
|
+
trace(...args) {
|
|
25366
|
+
if (this.enabled) {
|
|
25367
|
+
this.log(LogLevel.Trace, ...args);
|
|
25368
|
+
}
|
|
25369
|
+
}
|
|
25370
|
+
};
|
|
25371
|
+
}
|
|
25372
|
+
});
|
|
25373
|
+
|
|
25374
|
+
// ../logger/lib/console.js
|
|
25375
|
+
function log3(level, ...args) {
|
|
25376
|
+
const consoleLogger = getConsoleLoggerForLevel(level);
|
|
25377
|
+
consoleLogger(...args);
|
|
25378
|
+
}
|
|
25379
|
+
function getConsoleLoggerForLevel(level) {
|
|
25380
|
+
switch (level) {
|
|
25381
|
+
case LogLevel.Trace:
|
|
25382
|
+
return console.trace;
|
|
25383
|
+
case LogLevel.Debug:
|
|
25384
|
+
return console.debug;
|
|
25385
|
+
case LogLevel.Info:
|
|
25386
|
+
return console.info;
|
|
25387
|
+
case LogLevel.Warn:
|
|
25388
|
+
return console.warn;
|
|
25389
|
+
case LogLevel.Error:
|
|
25390
|
+
return console.error;
|
|
25391
|
+
}
|
|
25392
|
+
}
|
|
25393
|
+
var CONSOLE_LOGGER;
|
|
25394
|
+
var init_console = __esm({
|
|
25395
|
+
"../logger/lib/console.js"() {
|
|
25396
|
+
"use strict";
|
|
25397
|
+
init_createLogger();
|
|
25398
|
+
init_LogLevel();
|
|
25399
|
+
CONSOLE_LOGGER = Object.freeze(createLogger(log3));
|
|
25400
|
+
}
|
|
25401
|
+
});
|
|
25402
|
+
|
|
25307
25403
|
// ../../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
|
|
25308
25404
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
25309
25405
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
@@ -44242,6 +44338,36 @@ var init_lib4 = __esm({
|
|
|
44242
44338
|
}
|
|
44243
44339
|
});
|
|
44244
44340
|
|
|
44341
|
+
// ../logger/lib/noop.js
|
|
44342
|
+
var NOOP_LOGGER4;
|
|
44343
|
+
var init_noop3 = __esm({
|
|
44344
|
+
"../logger/lib/noop.js"() {
|
|
44345
|
+
"use strict";
|
|
44346
|
+
init_lib4();
|
|
44347
|
+
init_createLogger();
|
|
44348
|
+
NOOP_LOGGER4 = createLogger(noop2);
|
|
44349
|
+
}
|
|
44350
|
+
});
|
|
44351
|
+
|
|
44352
|
+
// ../logger/lib/index.js
|
|
44353
|
+
var lib_exports2 = {};
|
|
44354
|
+
__export(lib_exports2, {
|
|
44355
|
+
CONSOLE_LOGGER: () => CONSOLE_LOGGER,
|
|
44356
|
+
LOG_LEVELS: () => LOG_LEVELS,
|
|
44357
|
+
LogLevel: () => LogLevel,
|
|
44358
|
+
NOOP_LOGGER: () => NOOP_LOGGER4,
|
|
44359
|
+
createLogger: () => createLogger
|
|
44360
|
+
});
|
|
44361
|
+
var init_lib5 = __esm({
|
|
44362
|
+
"../logger/lib/index.js"() {
|
|
44363
|
+
"use strict";
|
|
44364
|
+
init_console();
|
|
44365
|
+
init_createLogger();
|
|
44366
|
+
init_LogLevel();
|
|
44367
|
+
init_noop3();
|
|
44368
|
+
}
|
|
44369
|
+
});
|
|
44370
|
+
|
|
44245
44371
|
// ../../commons/path-utils/lib/convertToOsPath.js
|
|
44246
44372
|
function convertToOsPath(path107) {
|
|
44247
44373
|
return path107.replace(/\\/g, "/");
|
|
@@ -44389,7 +44515,7 @@ var init_relative = __esm({
|
|
|
44389
44515
|
});
|
|
44390
44516
|
|
|
44391
44517
|
// ../../commons/path-utils/lib/index.js
|
|
44392
|
-
var
|
|
44518
|
+
var init_lib6 = __esm({
|
|
44393
44519
|
"../../commons/path-utils/lib/index.js"() {
|
|
44394
44520
|
"use strict";
|
|
44395
44521
|
init_AbsoluteFilePath();
|
|
@@ -44420,7 +44546,7 @@ function convertToFernHostPath(path107) {
|
|
|
44420
44546
|
var init_osPathConverter = __esm({
|
|
44421
44547
|
"../../commons/fs-utils/lib/osPathConverter.js"() {
|
|
44422
44548
|
"use strict";
|
|
44423
|
-
|
|
44549
|
+
init_lib6();
|
|
44424
44550
|
}
|
|
44425
44551
|
});
|
|
44426
44552
|
|
|
@@ -44446,7 +44572,7 @@ var init_AbsoluteFilePath2 = __esm({
|
|
|
44446
44572
|
var init_basename2 = __esm({
|
|
44447
44573
|
"../../commons/fs-utils/lib/basename.js"() {
|
|
44448
44574
|
"use strict";
|
|
44449
|
-
|
|
44575
|
+
init_lib6();
|
|
44450
44576
|
}
|
|
44451
44577
|
});
|
|
44452
44578
|
|
|
@@ -52742,8 +52868,8 @@ var init_waitUntilPathExists = __esm({
|
|
|
52742
52868
|
});
|
|
52743
52869
|
|
|
52744
52870
|
// ../../commons/fs-utils/lib/index.js
|
|
52745
|
-
var
|
|
52746
|
-
__export(
|
|
52871
|
+
var lib_exports3 = {};
|
|
52872
|
+
__export(lib_exports3, {
|
|
52747
52873
|
AbsoluteFilePath: () => AbsoluteFilePath2,
|
|
52748
52874
|
RelativeFilePath: () => RelativeFilePath2,
|
|
52749
52875
|
basename: () => basename3,
|
|
@@ -52775,7 +52901,7 @@ __export(lib_exports2, {
|
|
|
52775
52901
|
stringifyLargeObject: () => stringifyLargeObject,
|
|
52776
52902
|
waitUntilPathExists: () => waitUntilPathExists
|
|
52777
52903
|
});
|
|
52778
|
-
var
|
|
52904
|
+
var init_lib7 = __esm({
|
|
52779
52905
|
"../../commons/fs-utils/lib/index.js"() {
|
|
52780
52906
|
"use strict";
|
|
52781
52907
|
init_AbsoluteFilePath2();
|
|
@@ -66667,8 +66793,8 @@ var init_getOrUpdateBranch = __esm({
|
|
|
66667
66793
|
});
|
|
66668
66794
|
|
|
66669
66795
|
// ../../commons/github/lib/index.js
|
|
66670
|
-
var
|
|
66671
|
-
__export(
|
|
66796
|
+
var lib_exports4 = {};
|
|
66797
|
+
__export(lib_exports4, {
|
|
66672
66798
|
ClonedRepository: () => ClonedRepository,
|
|
66673
66799
|
cloneRepository: () => cloneRepository,
|
|
66674
66800
|
createOrUpdatePullRequest: () => createOrUpdatePullRequest,
|
|
@@ -66679,7 +66805,7 @@ __export(lib_exports3, {
|
|
|
66679
66805
|
getOrUpdateBranch: () => getOrUpdateBranch,
|
|
66680
66806
|
parseRepository: () => parseRepository
|
|
66681
66807
|
});
|
|
66682
|
-
var
|
|
66808
|
+
var init_lib8 = __esm({
|
|
66683
66809
|
"../../commons/github/lib/index.js"() {
|
|
66684
66810
|
"use strict";
|
|
66685
66811
|
init_ClonedRepository();
|
|
@@ -189127,8 +189253,8 @@ var require_whatwg_url = __commonJS({
|
|
|
189127
189253
|
});
|
|
189128
189254
|
|
|
189129
189255
|
// ../../../node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.mjs
|
|
189130
|
-
var
|
|
189131
|
-
__export(
|
|
189256
|
+
var lib_exports5 = {};
|
|
189257
|
+
__export(lib_exports5, {
|
|
189132
189258
|
AbortError: () => AbortError2,
|
|
189133
189259
|
FetchError: () => FetchError,
|
|
189134
189260
|
Headers: () => Headers2,
|
|
@@ -189727,7 +189853,7 @@ function destroyStream(stream5, err) {
|
|
|
189727
189853
|
}
|
|
189728
189854
|
}
|
|
189729
189855
|
var import_stream2, import_http4, import_url5, import_whatwg_url, import_https, import_zlib, Readable3, BUFFER2, TYPE, Blob3, convert2, INTERNALS, PassThrough, invalidTokenRegex, invalidHeaderCharRegex, MAP2, Headers2, INTERNAL2, HeadersIteratorPrototype, INTERNALS$1, STATUS_CODES, Response6, INTERNALS$2, URL2, parse_url, format_url, streamDestructionSupported, Request6, URL$1, PassThrough$1, isDomainOrSubdomain, isSameProtocol, lib_default2;
|
|
189730
|
-
var
|
|
189856
|
+
var init_lib9 = __esm({
|
|
189731
189857
|
"../../../node_modules/.pnpm/node-fetch@2.7.0/node_modules/node-fetch/lib/index.mjs"() {
|
|
189732
189858
|
"use strict";
|
|
189733
189859
|
import_stream2 = __toESM(require("stream"), 1);
|
|
@@ -190430,12 +190556,12 @@ var require_getFetchFn = __commonJS({
|
|
|
190430
190556
|
return fetch;
|
|
190431
190557
|
}
|
|
190432
190558
|
if (runtime_1.RUNTIME.type === "node") {
|
|
190433
|
-
return (yield Promise.resolve().then(() => __importStar2((
|
|
190559
|
+
return (yield Promise.resolve().then(() => __importStar2((init_lib9(), __toCommonJS(lib_exports5))))).default;
|
|
190434
190560
|
}
|
|
190435
190561
|
if (typeof fetch == "function") {
|
|
190436
190562
|
return fetch;
|
|
190437
190563
|
}
|
|
190438
|
-
return (yield Promise.resolve().then(() => __importStar2((
|
|
190564
|
+
return (yield Promise.resolve().then(() => __importStar2((init_lib9(), __toCommonJS(lib_exports5))))).default;
|
|
190439
190565
|
});
|
|
190440
190566
|
}
|
|
190441
190567
|
exports2.getFetchFn = getFetchFn3;
|
|
@@ -215415,8 +215541,8 @@ var require_lib7 = __commonJS({
|
|
|
215415
215541
|
});
|
|
215416
215542
|
|
|
215417
215543
|
// ../../../node_modules/.pnpm/node-fetch-h2@2.3.0/node_modules/node-fetch-h2/lib/index.mjs
|
|
215418
|
-
var
|
|
215419
|
-
__export(
|
|
215544
|
+
var lib_exports7 = {};
|
|
215545
|
+
__export(lib_exports7, {
|
|
215420
215546
|
FetchError: () => FetchError2,
|
|
215421
215547
|
Headers: () => Headers5,
|
|
215422
215548
|
Request: () => Request7,
|
|
@@ -215912,7 +216038,7 @@ function fetch5(url3, opts) {
|
|
|
215912
216038
|
});
|
|
215913
216039
|
}
|
|
215914
216040
|
var import_stream7, import_http7, import_url7, import_http2_client, import_zlib4, BUFFER3, TYPE2, Blob4, convert3, INTERNALS2, PassThrough2, invalidTokenRegex2, invalidHeaderCharRegex2, MAP3, Headers5, INTERNAL3, HeadersIteratorPrototype2, INTERNALS$12, STATUS_CODES2, Response15, INTERNALS$22, parse_url2, format_url2, streamDestructionSupported2, Request7, PassThrough$12, resolve_url, lib_default3;
|
|
215915
|
-
var
|
|
216041
|
+
var init_lib10 = __esm({
|
|
215916
216042
|
"../../../node_modules/.pnpm/node-fetch-h2@2.3.0/node_modules/node-fetch-h2/lib/index.mjs"() {
|
|
215917
216043
|
"use strict";
|
|
215918
216044
|
import_stream7 = __toESM(require("stream"), 1);
|
|
@@ -224407,7 +224533,7 @@ var require_oas_resolver = __commonJS({
|
|
|
224407
224533
|
var fs28 = require("fs");
|
|
224408
224534
|
var path107 = require("path");
|
|
224409
224535
|
var url3 = require("url");
|
|
224410
|
-
var fetch6 = (
|
|
224536
|
+
var fetch6 = (init_lib10(), __toCommonJS(lib_exports7));
|
|
224411
224537
|
var yaml3 = require_dist9();
|
|
224412
224538
|
var jptr = require_jptr().jptr;
|
|
224413
224539
|
var recurse = require_recurse().recurse;
|
|
@@ -225049,7 +225175,7 @@ var require_swagger2openapi = __commonJS({
|
|
|
225049
225175
|
var url3 = require("url");
|
|
225050
225176
|
var pathlib = require("path");
|
|
225051
225177
|
var maybe = require_maybe();
|
|
225052
|
-
var fetch6 = (
|
|
225178
|
+
var fetch6 = (init_lib10(), __toCommonJS(lib_exports7));
|
|
225053
225179
|
var yaml3 = require_dist9();
|
|
225054
225180
|
var jptr = require_jptr();
|
|
225055
225181
|
var resolveInternal = jptr.jptr;
|
|
@@ -228260,13 +228386,13 @@ var init_createLoggingExecutable = __esm({
|
|
|
228260
228386
|
});
|
|
228261
228387
|
|
|
228262
228388
|
// ../../commons/logging-execa/lib/index.js
|
|
228263
|
-
var
|
|
228264
|
-
__export(
|
|
228389
|
+
var lib_exports8 = {};
|
|
228390
|
+
__export(lib_exports8, {
|
|
228265
228391
|
createLoggingExecutable: () => createLoggingExecutable,
|
|
228266
228392
|
loggingExeca: () => loggingExeca,
|
|
228267
228393
|
runExeca: () => runExeca
|
|
228268
228394
|
});
|
|
228269
|
-
var
|
|
228395
|
+
var init_lib11 = __esm({
|
|
228270
228396
|
"../../commons/logging-execa/lib/index.js"() {
|
|
228271
228397
|
"use strict";
|
|
228272
228398
|
init_createLoggingExecutable();
|
|
@@ -238796,11 +238922,11 @@ var init_GraphQLConverter = __esm({
|
|
|
238796
238922
|
});
|
|
238797
238923
|
|
|
238798
238924
|
// ../api-importers/graphql/lib/index.js
|
|
238799
|
-
var
|
|
238800
|
-
__export(
|
|
238925
|
+
var lib_exports9 = {};
|
|
238926
|
+
__export(lib_exports9, {
|
|
238801
238927
|
GraphQLConverter: () => GraphQLConverter
|
|
238802
238928
|
});
|
|
238803
|
-
var
|
|
238929
|
+
var init_lib12 = __esm({
|
|
238804
238930
|
"../api-importers/graphql/lib/index.js"() {
|
|
238805
238931
|
"use strict";
|
|
238806
238932
|
init_GraphQLConverter();
|
|
@@ -271125,7 +271251,7 @@ function getMarkdownFormat(absoluteFilepath) {
|
|
|
271125
271251
|
var init_getMarkdownFormat = __esm({
|
|
271126
271252
|
"../docs-markdown-utils/lib/getMarkdownFormat.js"() {
|
|
271127
271253
|
"use strict";
|
|
271128
|
-
|
|
271254
|
+
init_lib7();
|
|
271129
271255
|
}
|
|
271130
271256
|
});
|
|
271131
271257
|
|
|
@@ -271209,7 +271335,7 @@ function looksLikeANode(value2) {
|
|
|
271209
271335
|
return value2 !== null && typeof value2 === "object" && "type" in value2;
|
|
271210
271336
|
}
|
|
271211
271337
|
var convert4;
|
|
271212
|
-
var
|
|
271338
|
+
var init_lib13 = __esm({
|
|
271213
271339
|
"../../../node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.js"() {
|
|
271214
271340
|
"use strict";
|
|
271215
271341
|
convert4 = // Note: overloads in JSDoc can’t yet use different `@template`s.
|
|
@@ -271255,7 +271381,7 @@ var init_lib12 = __esm({
|
|
|
271255
271381
|
var init_unist_util_is = __esm({
|
|
271256
271382
|
"../../../node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/index.js"() {
|
|
271257
271383
|
"use strict";
|
|
271258
|
-
|
|
271384
|
+
init_lib13();
|
|
271259
271385
|
}
|
|
271260
271386
|
});
|
|
271261
271387
|
|
|
@@ -271342,7 +271468,7 @@ function toResult(value2) {
|
|
|
271342
271468
|
return value2 === null || value2 === void 0 ? empty : [value2];
|
|
271343
271469
|
}
|
|
271344
271470
|
var empty, CONTINUE, EXIT, SKIP2;
|
|
271345
|
-
var
|
|
271471
|
+
var init_lib14 = __esm({
|
|
271346
271472
|
"../../../node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.js"() {
|
|
271347
271473
|
"use strict";
|
|
271348
271474
|
init_unist_util_is();
|
|
@@ -271358,7 +271484,7 @@ var init_lib13 = __esm({
|
|
|
271358
271484
|
var init_unist_util_visit_parents = __esm({
|
|
271359
271485
|
"../../../node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/index.js"() {
|
|
271360
271486
|
"use strict";
|
|
271361
|
-
|
|
271487
|
+
init_lib14();
|
|
271362
271488
|
}
|
|
271363
271489
|
});
|
|
271364
271490
|
|
|
@@ -271383,7 +271509,7 @@ function visit3(tree, testOrVisitor, visitorOrReverse, maybeReverse) {
|
|
|
271383
271509
|
return visitor(node4, index3, parent);
|
|
271384
271510
|
}
|
|
271385
271511
|
}
|
|
271386
|
-
var
|
|
271512
|
+
var init_lib15 = __esm({
|
|
271387
271513
|
"../../../node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.js"() {
|
|
271388
271514
|
"use strict";
|
|
271389
271515
|
init_unist_util_visit_parents();
|
|
@@ -271395,7 +271521,7 @@ var init_lib14 = __esm({
|
|
|
271395
271521
|
var init_unist_util_visit = __esm({
|
|
271396
271522
|
"../../../node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/index.js"() {
|
|
271397
271523
|
"use strict";
|
|
271398
|
-
|
|
271524
|
+
init_lib15();
|
|
271399
271525
|
}
|
|
271400
271526
|
});
|
|
271401
271527
|
|
|
@@ -271435,7 +271561,7 @@ function node3(value2) {
|
|
|
271435
271561
|
return Boolean(value2 && typeof value2 === "object");
|
|
271436
271562
|
}
|
|
271437
271563
|
var emptyOptions;
|
|
271438
|
-
var
|
|
271564
|
+
var init_lib16 = __esm({
|
|
271439
271565
|
"../../../node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.js"() {
|
|
271440
271566
|
"use strict";
|
|
271441
271567
|
emptyOptions = {};
|
|
@@ -271446,7 +271572,7 @@ var init_lib15 = __esm({
|
|
|
271446
271572
|
var init_mdast_util_to_string = __esm({
|
|
271447
271573
|
"../../../node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/index.js"() {
|
|
271448
271574
|
"use strict";
|
|
271449
|
-
|
|
271575
|
+
init_lib16();
|
|
271450
271576
|
}
|
|
271451
271577
|
});
|
|
271452
271578
|
|
|
@@ -278088,7 +278214,7 @@ function position(pos) {
|
|
|
278088
278214
|
function index2(value2) {
|
|
278089
278215
|
return value2 && typeof value2 === "number" ? value2 : 1;
|
|
278090
278216
|
}
|
|
278091
|
-
var
|
|
278217
|
+
var init_lib17 = __esm({
|
|
278092
278218
|
"../../../node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.js"() {
|
|
278093
278219
|
"use strict";
|
|
278094
278220
|
}
|
|
@@ -278098,7 +278224,7 @@ var init_lib16 = __esm({
|
|
|
278098
278224
|
var init_unist_util_stringify_position = __esm({
|
|
278099
278225
|
"../../../node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/index.js"() {
|
|
278100
278226
|
"use strict";
|
|
278101
|
-
|
|
278227
|
+
init_lib17();
|
|
278102
278228
|
}
|
|
278103
278229
|
});
|
|
278104
278230
|
|
|
@@ -278810,7 +278936,7 @@ function defaultOnError(left3, right3) {
|
|
|
278810
278936
|
}
|
|
278811
278937
|
}
|
|
278812
278938
|
var own3;
|
|
278813
|
-
var
|
|
278939
|
+
var init_lib18 = __esm({
|
|
278814
278940
|
"../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.js"() {
|
|
278815
278941
|
"use strict";
|
|
278816
278942
|
init_mdast_util_to_string();
|
|
@@ -278828,7 +278954,7 @@ var init_lib17 = __esm({
|
|
|
278828
278954
|
var init_mdast_util_from_markdown = __esm({
|
|
278829
278955
|
"../../../node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/index.js"() {
|
|
278830
278956
|
"use strict";
|
|
278831
|
-
|
|
278957
|
+
init_lib18();
|
|
278832
278958
|
}
|
|
278833
278959
|
});
|
|
278834
278960
|
|
|
@@ -278980,7 +279106,7 @@ function toFunction(replace2) {
|
|
|
278980
279106
|
return replace2;
|
|
278981
279107
|
};
|
|
278982
279108
|
}
|
|
278983
|
-
var
|
|
279109
|
+
var init_lib19 = __esm({
|
|
278984
279110
|
"../../../node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/lib/index.js"() {
|
|
278985
279111
|
"use strict";
|
|
278986
279112
|
init_escape_string_regexp();
|
|
@@ -278993,7 +279119,7 @@ var init_lib18 = __esm({
|
|
|
278993
279119
|
var init_mdast_util_find_and_replace = __esm({
|
|
278994
279120
|
"../../../node_modules/.pnpm/mdast-util-find-and-replace@3.0.2/node_modules/mdast-util-find-and-replace/index.js"() {
|
|
278995
279121
|
"use strict";
|
|
278996
|
-
|
|
279122
|
+
init_lib19();
|
|
278997
279123
|
}
|
|
278998
279124
|
});
|
|
278999
279125
|
|
|
@@ -279145,7 +279271,7 @@ function previous2(match3, email3) {
|
|
|
279145
279271
|
(!email3 || code5 !== 47);
|
|
279146
279272
|
}
|
|
279147
279273
|
var inConstruct, notInConstruct;
|
|
279148
|
-
var
|
|
279274
|
+
var init_lib20 = __esm({
|
|
279149
279275
|
"../../../node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/lib/index.js"() {
|
|
279150
279276
|
"use strict";
|
|
279151
279277
|
init_ccount();
|
|
@@ -279161,7 +279287,7 @@ var init_lib19 = __esm({
|
|
|
279161
279287
|
var init_mdast_util_gfm_autolink_literal = __esm({
|
|
279162
279288
|
"../../../node_modules/.pnpm/mdast-util-gfm-autolink-literal@2.0.1/node_modules/mdast-util-gfm-autolink-literal/index.js"() {
|
|
279163
279289
|
"use strict";
|
|
279164
|
-
|
|
279290
|
+
init_lib20();
|
|
279165
279291
|
}
|
|
279166
279292
|
});
|
|
279167
279293
|
|
|
@@ -279276,7 +279402,7 @@ function mapExceptFirst(line, index3, blank) {
|
|
|
279276
279402
|
function mapAll(line, index3, blank) {
|
|
279277
279403
|
return (blank ? "" : " ") + line;
|
|
279278
279404
|
}
|
|
279279
|
-
var
|
|
279405
|
+
var init_lib21 = __esm({
|
|
279280
279406
|
"../../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/lib/index.js"() {
|
|
279281
279407
|
"use strict";
|
|
279282
279408
|
init_default();
|
|
@@ -279289,7 +279415,7 @@ var init_lib20 = __esm({
|
|
|
279289
279415
|
var init_mdast_util_gfm_footnote = __esm({
|
|
279290
279416
|
"../../../node_modules/.pnpm/mdast-util-gfm-footnote@2.1.0/node_modules/mdast-util-gfm-footnote/index.js"() {
|
|
279291
279417
|
"use strict";
|
|
279292
|
-
|
|
279418
|
+
init_lib21();
|
|
279293
279419
|
}
|
|
279294
279420
|
});
|
|
279295
279421
|
|
|
@@ -279336,7 +279462,7 @@ function peekDelete() {
|
|
|
279336
279462
|
return "~";
|
|
279337
279463
|
}
|
|
279338
279464
|
var constructsWithoutStrikethrough;
|
|
279339
|
-
var
|
|
279465
|
+
var init_lib22 = __esm({
|
|
279340
279466
|
"../../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/lib/index.js"() {
|
|
279341
279467
|
"use strict";
|
|
279342
279468
|
constructsWithoutStrikethrough = [
|
|
@@ -279355,7 +279481,7 @@ var init_lib21 = __esm({
|
|
|
279355
279481
|
var init_mdast_util_gfm_strikethrough = __esm({
|
|
279356
279482
|
"../../../node_modules/.pnpm/mdast-util-gfm-strikethrough@2.0.0/node_modules/mdast-util-gfm-strikethrough/index.js"() {
|
|
279357
279483
|
"use strict";
|
|
279358
|
-
|
|
279484
|
+
init_lib22();
|
|
279359
279485
|
}
|
|
279360
279486
|
});
|
|
279361
279487
|
|
|
@@ -280541,7 +280667,7 @@ var init_paragraph = __esm({
|
|
|
280541
280667
|
|
|
280542
280668
|
// ../../../node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js
|
|
280543
280669
|
var phrasing;
|
|
280544
|
-
var
|
|
280670
|
+
var init_lib23 = __esm({
|
|
280545
280671
|
"../../../node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.js"() {
|
|
280546
280672
|
"use strict";
|
|
280547
280673
|
init_unist_util_is();
|
|
@@ -280576,7 +280702,7 @@ var init_lib22 = __esm({
|
|
|
280576
280702
|
var init_mdast_util_phrasing = __esm({
|
|
280577
280703
|
"../../../node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/index.js"() {
|
|
280578
280704
|
"use strict";
|
|
280579
|
-
|
|
280705
|
+
init_lib23();
|
|
280580
280706
|
}
|
|
280581
280707
|
});
|
|
280582
280708
|
|
|
@@ -281279,7 +281405,7 @@ function containerFlowBound(parent, info) {
|
|
|
281279
281405
|
function safeBound(value2, config5) {
|
|
281280
281406
|
return safe(this, value2, config5);
|
|
281281
281407
|
}
|
|
281282
|
-
var
|
|
281408
|
+
var init_lib24 = __esm({
|
|
281283
281409
|
"../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.js"() {
|
|
281284
281410
|
"use strict";
|
|
281285
281411
|
init_zwitch();
|
|
@@ -281301,7 +281427,7 @@ var init_lib23 = __esm({
|
|
|
281301
281427
|
var init_mdast_util_to_markdown = __esm({
|
|
281302
281428
|
"../../../node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/index.js"() {
|
|
281303
281429
|
"use strict";
|
|
281304
|
-
|
|
281430
|
+
init_lib24();
|
|
281305
281431
|
init_handle();
|
|
281306
281432
|
}
|
|
281307
281433
|
});
|
|
@@ -281458,7 +281584,7 @@ function gfmTableToMarkdown(options2) {
|
|
|
281458
281584
|
return value2;
|
|
281459
281585
|
}
|
|
281460
281586
|
}
|
|
281461
|
-
var
|
|
281587
|
+
var init_lib25 = __esm({
|
|
281462
281588
|
"../../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/lib/index.js"() {
|
|
281463
281589
|
"use strict";
|
|
281464
281590
|
init_default();
|
|
@@ -281471,7 +281597,7 @@ var init_lib24 = __esm({
|
|
|
281471
281597
|
var init_mdast_util_gfm_table = __esm({
|
|
281472
281598
|
"../../../node_modules/.pnpm/mdast-util-gfm-table@2.0.0/node_modules/mdast-util-gfm-table/index.js"() {
|
|
281473
281599
|
"use strict";
|
|
281474
|
-
|
|
281600
|
+
init_lib25();
|
|
281475
281601
|
}
|
|
281476
281602
|
});
|
|
281477
281603
|
|
|
@@ -281547,7 +281673,7 @@ function listItemWithTaskListItem(node4, parent, state, info) {
|
|
|
281547
281673
|
return $0 + checkbox;
|
|
281548
281674
|
}
|
|
281549
281675
|
}
|
|
281550
|
-
var
|
|
281676
|
+
var init_lib26 = __esm({
|
|
281551
281677
|
"../../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/lib/index.js"() {
|
|
281552
281678
|
"use strict";
|
|
281553
281679
|
init_default();
|
|
@@ -281559,7 +281685,7 @@ var init_lib25 = __esm({
|
|
|
281559
281685
|
var init_mdast_util_gfm_task_list_item = __esm({
|
|
281560
281686
|
"../../../node_modules/.pnpm/mdast-util-gfm-task-list-item@2.0.0/node_modules/mdast-util-gfm-task-list-item/index.js"() {
|
|
281561
281687
|
"use strict";
|
|
281562
|
-
|
|
281688
|
+
init_lib26();
|
|
281563
281689
|
}
|
|
281564
281690
|
});
|
|
281565
281691
|
|
|
@@ -281584,7 +281710,7 @@ function gfmToMarkdown(options2) {
|
|
|
281584
281710
|
]
|
|
281585
281711
|
};
|
|
281586
281712
|
}
|
|
281587
|
-
var
|
|
281713
|
+
var init_lib27 = __esm({
|
|
281588
281714
|
"../../../node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/lib/index.js"() {
|
|
281589
281715
|
"use strict";
|
|
281590
281716
|
init_mdast_util_gfm_autolink_literal();
|
|
@@ -281599,7 +281725,7 @@ var init_lib26 = __esm({
|
|
|
281599
281725
|
var init_mdast_util_gfm = __esm({
|
|
281600
281726
|
"../../../node_modules/.pnpm/mdast-util-gfm@3.1.0/node_modules/mdast-util-gfm/index.js"() {
|
|
281601
281727
|
"use strict";
|
|
281602
|
-
|
|
281728
|
+
init_lib27();
|
|
281603
281729
|
}
|
|
281604
281730
|
});
|
|
281605
281731
|
|
|
@@ -281781,7 +281907,7 @@ function mathToMarkdown(options2) {
|
|
|
281781
281907
|
return "$";
|
|
281782
281908
|
}
|
|
281783
281909
|
}
|
|
281784
|
-
var
|
|
281910
|
+
var init_lib28 = __esm({
|
|
281785
281911
|
"../../../node_modules/.pnpm/mdast-util-math@3.0.0/node_modules/mdast-util-math/lib/index.js"() {
|
|
281786
281912
|
"use strict";
|
|
281787
281913
|
init_default();
|
|
@@ -281793,7 +281919,7 @@ var init_lib27 = __esm({
|
|
|
281793
281919
|
var init_mdast_util_math = __esm({
|
|
281794
281920
|
"../../../node_modules/.pnpm/mdast-util-math@3.0.0/node_modules/mdast-util-math/index.js"() {
|
|
281795
281921
|
"use strict";
|
|
281796
|
-
|
|
281922
|
+
init_lib28();
|
|
281797
281923
|
}
|
|
281798
281924
|
});
|
|
281799
281925
|
|
|
@@ -281854,7 +281980,7 @@ function handleMdxExpression(node4, parent, state) {
|
|
|
281854
281980
|
});
|
|
281855
281981
|
return "{" + result + "}";
|
|
281856
281982
|
}
|
|
281857
|
-
var
|
|
281983
|
+
var init_lib29 = __esm({
|
|
281858
281984
|
"../../../node_modules/.pnpm/mdast-util-mdx-expression@2.0.1/node_modules/mdast-util-mdx-expression/lib/index.js"() {
|
|
281859
281985
|
"use strict";
|
|
281860
281986
|
init_default();
|
|
@@ -281865,7 +281991,7 @@ var init_lib28 = __esm({
|
|
|
281865
281991
|
var init_mdast_util_mdx_expression = __esm({
|
|
281866
281992
|
"../../../node_modules/.pnpm/mdast-util-mdx-expression@2.0.1/node_modules/mdast-util-mdx-expression/index.js"() {
|
|
281867
281993
|
"use strict";
|
|
281868
|
-
|
|
281994
|
+
init_lib29();
|
|
281869
281995
|
}
|
|
281870
281996
|
});
|
|
281871
281997
|
|
|
@@ -282289,7 +282415,7 @@ function disallowed(code5) {
|
|
|
282289
282415
|
return code5 >= 1 && code5 <= 8 || code5 === 11 || code5 >= 13 && code5 <= 31 || code5 >= 127 && code5 <= 159 || code5 >= 64976 && code5 <= 65007 || (code5 & 65535) === 65535 || (code5 & 65535) === 65534;
|
|
282290
282416
|
}
|
|
282291
282417
|
var messages;
|
|
282292
|
-
var
|
|
282418
|
+
var init_lib30 = __esm({
|
|
282293
282419
|
"../../../node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.js"() {
|
|
282294
282420
|
"use strict";
|
|
282295
282421
|
init_character_entities_legacy();
|
|
@@ -282322,7 +282448,7 @@ var init_lib29 = __esm({
|
|
|
282322
282448
|
var init_parse_entities = __esm({
|
|
282323
282449
|
"../../../node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/index.js"() {
|
|
282324
282450
|
"use strict";
|
|
282325
|
-
|
|
282451
|
+
init_lib30();
|
|
282326
282452
|
}
|
|
282327
282453
|
});
|
|
282328
282454
|
|
|
@@ -282394,7 +282520,7 @@ var init_format_basic = __esm({
|
|
|
282394
282520
|
function stringifyEntitiesLight(value2, options2) {
|
|
282395
282521
|
return core2(value2, Object.assign({ format: formatBasic }, options2));
|
|
282396
282522
|
}
|
|
282397
|
-
var
|
|
282523
|
+
var init_lib31 = __esm({
|
|
282398
282524
|
"../../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js"() {
|
|
282399
282525
|
"use strict";
|
|
282400
282526
|
init_core();
|
|
@@ -282406,13 +282532,13 @@ var init_lib30 = __esm({
|
|
|
282406
282532
|
var init_stringify_entities = __esm({
|
|
282407
282533
|
"../../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/index.js"() {
|
|
282408
282534
|
"use strict";
|
|
282409
|
-
|
|
282535
|
+
init_lib31();
|
|
282410
282536
|
}
|
|
282411
282537
|
});
|
|
282412
282538
|
|
|
282413
282539
|
// ../../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js
|
|
282414
282540
|
var VFileMessage;
|
|
282415
|
-
var
|
|
282541
|
+
var init_lib32 = __esm({
|
|
282416
282542
|
"../../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.js"() {
|
|
282417
282543
|
"use strict";
|
|
282418
282544
|
init_unist_util_stringify_position();
|
|
@@ -282557,7 +282683,7 @@ var init_lib31 = __esm({
|
|
|
282557
282683
|
var init_vfile_message = __esm({
|
|
282558
282684
|
"../../../node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/index.js"() {
|
|
282559
282685
|
"use strict";
|
|
282560
|
-
|
|
282686
|
+
init_lib32();
|
|
282561
282687
|
}
|
|
282562
282688
|
});
|
|
282563
282689
|
|
|
@@ -283006,7 +283132,7 @@ function peekElement() {
|
|
|
283006
283132
|
return "<";
|
|
283007
283133
|
}
|
|
283008
283134
|
var indent2;
|
|
283009
|
-
var
|
|
283135
|
+
var init_lib33 = __esm({
|
|
283010
283136
|
"../../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/lib/index.js"() {
|
|
283011
283137
|
"use strict";
|
|
283012
283138
|
init_ccount();
|
|
@@ -283023,7 +283149,7 @@ var init_lib32 = __esm({
|
|
|
283023
283149
|
var init_mdast_util_mdx_jsx = __esm({
|
|
283024
283150
|
"../../../node_modules/.pnpm/mdast-util-mdx-jsx@3.2.0/node_modules/mdast-util-mdx-jsx/index.js"() {
|
|
283025
283151
|
"use strict";
|
|
283026
|
-
|
|
283152
|
+
init_lib33();
|
|
283027
283153
|
}
|
|
283028
283154
|
});
|
|
283029
283155
|
|
|
@@ -283059,7 +283185,7 @@ function exitMdxjsEsmData(token) {
|
|
|
283059
283185
|
function handleMdxjsEsm(node4) {
|
|
283060
283186
|
return node4.value || "";
|
|
283061
283187
|
}
|
|
283062
|
-
var
|
|
283188
|
+
var init_lib34 = __esm({
|
|
283063
283189
|
"../../../node_modules/.pnpm/mdast-util-mdxjs-esm@2.0.1/node_modules/mdast-util-mdxjs-esm/lib/index.js"() {
|
|
283064
283190
|
"use strict";
|
|
283065
283191
|
init_default();
|
|
@@ -283070,7 +283196,7 @@ var init_lib33 = __esm({
|
|
|
283070
283196
|
var init_mdast_util_mdxjs_esm = __esm({
|
|
283071
283197
|
"../../../node_modules/.pnpm/mdast-util-mdxjs-esm@2.0.1/node_modules/mdast-util-mdxjs-esm/index.js"() {
|
|
283072
283198
|
"use strict";
|
|
283073
|
-
|
|
283199
|
+
init_lib34();
|
|
283074
283200
|
}
|
|
283075
283201
|
});
|
|
283076
283202
|
|
|
@@ -283091,7 +283217,7 @@ function mdxToMarkdown(options2) {
|
|
|
283091
283217
|
]
|
|
283092
283218
|
};
|
|
283093
283219
|
}
|
|
283094
|
-
var
|
|
283220
|
+
var init_lib35 = __esm({
|
|
283095
283221
|
"../../../node_modules/.pnpm/mdast-util-mdx@3.0.0/node_modules/mdast-util-mdx/lib/index.js"() {
|
|
283096
283222
|
"use strict";
|
|
283097
283223
|
init_mdast_util_mdx_expression();
|
|
@@ -283104,7 +283230,7 @@ var init_lib34 = __esm({
|
|
|
283104
283230
|
var init_mdast_util_mdx = __esm({
|
|
283105
283231
|
"../../../node_modules/.pnpm/mdast-util-mdx@3.0.0/node_modules/mdast-util-mdx/index.js"() {
|
|
283106
283232
|
"use strict";
|
|
283107
|
-
|
|
283233
|
+
init_lib35();
|
|
283108
283234
|
}
|
|
283109
283235
|
});
|
|
283110
283236
|
|
|
@@ -311402,7 +311528,7 @@ function nodelike(value2) {
|
|
|
311402
311528
|
);
|
|
311403
311529
|
}
|
|
311404
311530
|
var own6, CONTINUE2, EXIT2, SKIP3;
|
|
311405
|
-
var
|
|
311531
|
+
var init_lib36 = __esm({
|
|
311406
311532
|
"../../../node_modules/.pnpm/estree-util-visit@2.0.0/node_modules/estree-util-visit/lib/index.js"() {
|
|
311407
311533
|
"use strict";
|
|
311408
311534
|
init_color_node2();
|
|
@@ -311417,7 +311543,7 @@ var init_lib35 = __esm({
|
|
|
311417
311543
|
var init_estree_util_visit = __esm({
|
|
311418
311544
|
"../../../node_modules/.pnpm/estree-util-visit@2.0.0/node_modules/estree-util-visit/index.js"() {
|
|
311419
311545
|
"use strict";
|
|
311420
|
-
|
|
311546
|
+
init_lib36();
|
|
311421
311547
|
}
|
|
311422
311548
|
});
|
|
311423
311549
|
|
|
@@ -311664,7 +311790,7 @@ function serializeChunks2(chunks) {
|
|
|
311664
311790
|
}
|
|
311665
311791
|
return result.join("");
|
|
311666
311792
|
}
|
|
311667
|
-
var
|
|
311793
|
+
var init_lib37 = __esm({
|
|
311668
311794
|
"../../../node_modules/.pnpm/micromark-util-events-to-acorn@2.0.3/node_modules/micromark-util-events-to-acorn/lib/index.js"() {
|
|
311669
311795
|
"use strict";
|
|
311670
311796
|
init_estree_util_visit();
|
|
@@ -311676,7 +311802,7 @@ var init_lib36 = __esm({
|
|
|
311676
311802
|
var init_micromark_util_events_to_acorn = __esm({
|
|
311677
311803
|
"../../../node_modules/.pnpm/micromark-util-events-to-acorn@2.0.3/node_modules/micromark-util-events-to-acorn/index.js"() {
|
|
311678
311804
|
"use strict";
|
|
311679
|
-
|
|
311805
|
+
init_lib37();
|
|
311680
311806
|
}
|
|
311681
311807
|
});
|
|
311682
311808
|
|
|
@@ -311707,7 +311833,7 @@ function pointOrUndefined(estreePoint, estreeOffset) {
|
|
|
311707
311833
|
function numberOrUndefined(value2) {
|
|
311708
311834
|
return typeof value2 === "number" && value2 > -1 ? value2 : void 0;
|
|
311709
311835
|
}
|
|
311710
|
-
var
|
|
311836
|
+
var init_lib38 = __esm({
|
|
311711
311837
|
"../../../node_modules/.pnpm/unist-util-position-from-estree@2.0.0/node_modules/unist-util-position-from-estree/lib/index.js"() {
|
|
311712
311838
|
"use strict";
|
|
311713
311839
|
}
|
|
@@ -311717,7 +311843,7 @@ var init_lib37 = __esm({
|
|
|
311717
311843
|
var init_unist_util_position_from_estree = __esm({
|
|
311718
311844
|
"../../../node_modules/.pnpm/unist-util-position-from-estree@2.0.0/node_modules/unist-util-position-from-estree/index.js"() {
|
|
311719
311845
|
"use strict";
|
|
311720
|
-
|
|
311846
|
+
init_lib38();
|
|
311721
311847
|
}
|
|
311722
311848
|
});
|
|
311723
311849
|
|
|
@@ -311999,7 +312125,7 @@ function name(name2, options2) {
|
|
|
311999
312125
|
return re10.test(name2);
|
|
312000
312126
|
}
|
|
312001
312127
|
var startRe, contRe, contReJsx, nameRe, nameReJsx, emptyOptions2;
|
|
312002
|
-
var
|
|
312128
|
+
var init_lib39 = __esm({
|
|
312003
312129
|
"../../../node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/lib/index.js"() {
|
|
312004
312130
|
"use strict";
|
|
312005
312131
|
startRe = /[$_\p{ID_Start}]/u;
|
|
@@ -312015,7 +312141,7 @@ var init_lib38 = __esm({
|
|
|
312015
312141
|
var init_estree_util_is_identifier_name = __esm({
|
|
312016
312142
|
"../../../node_modules/.pnpm/estree-util-is-identifier-name@3.0.0/node_modules/estree-util-is-identifier-name/index.js"() {
|
|
312017
312143
|
"use strict";
|
|
312018
|
-
|
|
312144
|
+
init_lib39();
|
|
312019
312145
|
}
|
|
312020
312146
|
});
|
|
312021
312147
|
|
|
@@ -313487,7 +313613,7 @@ var init_parseImagePaths = __esm({
|
|
|
313487
313613
|
"../docs-markdown-utils/lib/parseImagePaths.js"() {
|
|
313488
313614
|
"use strict";
|
|
313489
313615
|
init_js();
|
|
313490
|
-
|
|
313616
|
+
init_lib7();
|
|
313491
313617
|
import_gray_matter3 = __toESM(require_gray_matter(), 1);
|
|
313492
313618
|
import_path52 = require("path");
|
|
313493
313619
|
init_unist_util_visit();
|
|
@@ -313677,7 +313803,7 @@ var import_promises59;
|
|
|
313677
313803
|
var init_replaceReferencedCode = __esm({
|
|
313678
313804
|
"../docs-markdown-utils/lib/replaceReferencedCode.js"() {
|
|
313679
313805
|
"use strict";
|
|
313680
|
-
|
|
313806
|
+
init_lib7();
|
|
313681
313807
|
import_promises59 = require("fs/promises");
|
|
313682
313808
|
}
|
|
313683
313809
|
});
|
|
@@ -313810,7 +313936,7 @@ var import_promises60, import_gray_matter4;
|
|
|
313810
313936
|
var init_replaceReferencedMarkdown = __esm({
|
|
313811
313937
|
"../docs-markdown-utils/lib/replaceReferencedMarkdown.js"() {
|
|
313812
313938
|
"use strict";
|
|
313813
|
-
|
|
313939
|
+
init_lib7();
|
|
313814
313940
|
import_promises60 = require("fs/promises");
|
|
313815
313941
|
import_gray_matter4 = __toESM(require_gray_matter(), 1);
|
|
313816
313942
|
}
|
|
@@ -313889,13 +314015,13 @@ function transformAtPrefixImports({ markdown, absolutePathToFernFolder, absolute
|
|
|
313889
314015
|
var init_transformAtPrefixImports = __esm({
|
|
313890
314016
|
"../docs-markdown-utils/lib/transformAtPrefixImports.js"() {
|
|
313891
314017
|
"use strict";
|
|
313892
|
-
|
|
314018
|
+
init_lib7();
|
|
313893
314019
|
}
|
|
313894
314020
|
});
|
|
313895
314021
|
|
|
313896
314022
|
// ../docs-markdown-utils/lib/index.js
|
|
313897
|
-
var
|
|
313898
|
-
__export(
|
|
314023
|
+
var lib_exports10 = {};
|
|
314024
|
+
__export(lib_exports10, {
|
|
313899
314025
|
extractAttributeValueLiteral: () => extractAttributeValueLiteral,
|
|
313900
314026
|
extractSingleLiteral: () => extractSingleLiteral,
|
|
313901
314027
|
getMarkdownFormat: () => getMarkdownFormat,
|
|
@@ -313915,7 +314041,7 @@ __export(lib_exports9, {
|
|
|
313915
314041
|
trimAnchor: () => trimAnchor,
|
|
313916
314042
|
walkEstreeJsxAttributes: () => walkEstreeJsxAttributes
|
|
313917
314043
|
});
|
|
313918
|
-
var
|
|
314044
|
+
var init_lib40 = __esm({
|
|
313919
314045
|
"../docs-markdown-utils/lib/index.js"() {
|
|
313920
314046
|
"use strict";
|
|
313921
314047
|
init_extract_literals();
|
|
@@ -346767,7 +346893,7 @@ var require_AutoVersioningService = __commonJS({
|
|
|
346767
346893
|
exports2.AutoVersioningService = exports2.AutoVersioningException = void 0;
|
|
346768
346894
|
exports2.countFilesInDiff = countFilesInDiff3;
|
|
346769
346895
|
exports2.formatSizeKB = formatSizeKB3;
|
|
346770
|
-
var logging_execa_1 = (
|
|
346896
|
+
var logging_execa_1 = (init_lib11(), __toCommonJS(lib_exports8));
|
|
346771
346897
|
var fs_1 = require("fs");
|
|
346772
346898
|
var promises_1 = require("fs/promises");
|
|
346773
346899
|
var path_1 = require("path");
|
|
@@ -348530,12 +348656,12 @@ var init_types6 = __esm({
|
|
|
348530
348656
|
});
|
|
348531
348657
|
|
|
348532
348658
|
// ../ai/lib/index.js
|
|
348533
|
-
var
|
|
348534
|
-
__export(
|
|
348659
|
+
var lib_exports13 = {};
|
|
348660
|
+
__export(lib_exports13, {
|
|
348535
348661
|
VersionBump: () => VersionBump2,
|
|
348536
348662
|
loadBamlDependencies: () => loadBamlDependencies
|
|
348537
348663
|
});
|
|
348538
|
-
var
|
|
348664
|
+
var init_lib41 = __esm({
|
|
348539
348665
|
"../ai/lib/index.js"() {
|
|
348540
348666
|
"use strict";
|
|
348541
348667
|
init_loader();
|
|
@@ -348979,7 +349105,7 @@ ${newBlock}${remainder}`;
|
|
|
348979
349105
|
if (this.config.ai == null) {
|
|
348980
349106
|
throw new Error("AutoVersionStep: ai config is missing. Set autoVersion.ai to a BAML provider+model pair.");
|
|
348981
349107
|
}
|
|
348982
|
-
const { loadBamlDependencies: loadBamlDependencies2, VersionBump: VersionBump3 } = await Promise.resolve().then(() => __importStar2((
|
|
349108
|
+
const { loadBamlDependencies: loadBamlDependencies2, VersionBump: VersionBump3 } = await Promise.resolve().then(() => __importStar2((init_lib41(), __toCommonJS(lib_exports13))));
|
|
348983
349109
|
const { BamlClient, configureBamlClient: configureBamlClient2 } = await loadBamlDependencies2();
|
|
348984
349110
|
const registry2 = configureBamlClient2(this.config.ai);
|
|
348985
349111
|
return {
|
|
@@ -364163,7 +364289,7 @@ var require_GithubStep = __commonJS({
|
|
|
364163
364289
|
exports2.shouldPushGenerationBaseTag = shouldPushGenerationBaseTag;
|
|
364164
364290
|
exports2.resolveBranchAction = resolveBranchAction;
|
|
364165
364291
|
var core_utils_1 = (init_lib4(), __toCommonJS(lib_exports));
|
|
364166
|
-
var github_1 = (
|
|
364292
|
+
var github_1 = (init_lib8(), __toCommonJS(lib_exports4));
|
|
364167
364293
|
var rest_1 = (init_dist_src9(), __toCommonJS(dist_src_exports));
|
|
364168
364294
|
var promises_1 = require("fs/promises");
|
|
364169
364295
|
var path_1 = require("path");
|
|
@@ -364638,6 +364764,333 @@ var require_ReplayStep = __commonJS({
|
|
|
364638
364764
|
}
|
|
364639
364765
|
});
|
|
364640
364766
|
|
|
364767
|
+
// ../generation/local-generation/docker-utils/lib/runDocker.js
|
|
364768
|
+
async function runContainer({ logger: logger4, imageName, args = [], binds = [], envVars = {}, ports = {}, writeLogsToFile = true, removeAfterCompletion = false, runner, signal }) {
|
|
364769
|
+
const tryRun = () => tryRunContainer({
|
|
364770
|
+
logger: logger4,
|
|
364771
|
+
imageName,
|
|
364772
|
+
args,
|
|
364773
|
+
binds,
|
|
364774
|
+
envVars,
|
|
364775
|
+
ports,
|
|
364776
|
+
removeAfterCompletion,
|
|
364777
|
+
writeLogsToFile,
|
|
364778
|
+
runner,
|
|
364779
|
+
signal
|
|
364780
|
+
});
|
|
364781
|
+
try {
|
|
364782
|
+
await tryRun();
|
|
364783
|
+
} catch (e8) {
|
|
364784
|
+
if (e8 instanceof Error && e8.message.includes("No such image")) {
|
|
364785
|
+
await pullImage(imageName, runner, signal);
|
|
364786
|
+
await tryRun();
|
|
364787
|
+
} else {
|
|
364788
|
+
throw e8;
|
|
364789
|
+
}
|
|
364790
|
+
}
|
|
364791
|
+
}
|
|
364792
|
+
async function tryRunContainer({ logger: logger4, imageName, args, binds, envVars = {}, ports = {}, removeAfterCompletion, writeLogsToFile, runner, signal }) {
|
|
364793
|
+
if (process.env["FERN_STACK_TRACK"]) {
|
|
364794
|
+
envVars["FERN_STACK_TRACK"] = process.env["FERN_STACK_TRACK"];
|
|
364795
|
+
}
|
|
364796
|
+
const containerArgs = [
|
|
364797
|
+
"run",
|
|
364798
|
+
"--user",
|
|
364799
|
+
"root",
|
|
364800
|
+
...binds.flatMap((bind5) => ["-v", bind5]),
|
|
364801
|
+
...Object.entries(envVars).flatMap(([key2, value2]) => ["-e", `${key2}="${value2}"`]),
|
|
364802
|
+
...Object.entries(ports).flatMap(([hostPort, containerPort]) => ["-p", `${hostPort}:${containerPort}`]),
|
|
364803
|
+
removeAfterCompletion ? "--rm" : "",
|
|
364804
|
+
imageName,
|
|
364805
|
+
...args
|
|
364806
|
+
].filter(Boolean);
|
|
364807
|
+
const containerRunner = runner ?? "docker";
|
|
364808
|
+
const { stdout, stderr, exitCode } = await loggingExeca(logger4, containerRunner, containerArgs, {
|
|
364809
|
+
reject: false,
|
|
364810
|
+
all: true,
|
|
364811
|
+
doNotPipeOutput: true,
|
|
364812
|
+
signal
|
|
364813
|
+
});
|
|
364814
|
+
const logs4 = stdout + stderr;
|
|
364815
|
+
if (writeLogsToFile) {
|
|
364816
|
+
const tmpFile = await import_tmp_promise10.default.file();
|
|
364817
|
+
await (0, import_promises97.writeFile)(tmpFile.path, logs4);
|
|
364818
|
+
logger4.info(`Generator logs here: ${tmpFile.path}`);
|
|
364819
|
+
}
|
|
364820
|
+
if (exitCode == null) {
|
|
364821
|
+
throw new Error(`Container runtime '${containerRunner}' is not installed or not found on PATH.
|
|
364822
|
+
${containerRunner === "podman" ? "Seed tests default to Podman. " : ""}Install ${containerRunner}: ${containerRunner === "podman" ? "https://podman.io/docs/installation" : "https://docs.docker.com/get-docker/"}
|
|
364823
|
+
Error details: ${stderr || stdout || "No output"}`);
|
|
364824
|
+
}
|
|
364825
|
+
if (exitCode !== 0) {
|
|
364826
|
+
throw new Error(`Container exited with code ${exitCode}.
|
|
364827
|
+
${stdout}
|
|
364828
|
+
${stderr}`);
|
|
364829
|
+
}
|
|
364830
|
+
}
|
|
364831
|
+
async function pullImage(imageName, runner, signal) {
|
|
364832
|
+
await loggingExeca(void 0, runner ?? "docker", ["pull", imageName], {
|
|
364833
|
+
all: true,
|
|
364834
|
+
doNotPipeOutput: true,
|
|
364835
|
+
signal
|
|
364836
|
+
});
|
|
364837
|
+
}
|
|
364838
|
+
async function startContainer({ logger: logger4, imageName, runner }) {
|
|
364839
|
+
const containerRunner = runner ?? "docker";
|
|
364840
|
+
const tryStart = async () => {
|
|
364841
|
+
const { stdout, exitCode, stderr } = await loggingExeca(logger4, containerRunner, ["run", "--user", "root", "-dit", "--entrypoint", "/bin/sh", imageName], {
|
|
364842
|
+
reject: false,
|
|
364843
|
+
doNotPipeOutput: true
|
|
364844
|
+
});
|
|
364845
|
+
if (exitCode == null) {
|
|
364846
|
+
throw new Error(`Container runtime '${containerRunner}' is not installed or not found on PATH.
|
|
364847
|
+
Error details: ${stderr || stdout || "No output"}`);
|
|
364848
|
+
}
|
|
364849
|
+
if (exitCode !== 0) {
|
|
364850
|
+
throw new Error(`Failed to start container from image ${imageName}.
|
|
364851
|
+
${stdout}
|
|
364852
|
+
${stderr}`);
|
|
364853
|
+
}
|
|
364854
|
+
return stdout.trim();
|
|
364855
|
+
};
|
|
364856
|
+
try {
|
|
364857
|
+
return await tryStart();
|
|
364858
|
+
} catch (e8) {
|
|
364859
|
+
if (e8 instanceof Error && e8.message.includes("No such image")) {
|
|
364860
|
+
await pullImage(imageName, runner);
|
|
364861
|
+
return await tryStart();
|
|
364862
|
+
}
|
|
364863
|
+
throw e8;
|
|
364864
|
+
}
|
|
364865
|
+
}
|
|
364866
|
+
async function execInContainer({ logger: logger4, containerId, command: command3, runner, writeLogsToFile = true, reject = true }) {
|
|
364867
|
+
const containerRunner = runner ?? "docker";
|
|
364868
|
+
const { stdout, stderr, exitCode } = await loggingExeca(logger4, containerRunner, ["exec", "--user", "root", containerId, ...command3], {
|
|
364869
|
+
reject: false,
|
|
364870
|
+
all: true,
|
|
364871
|
+
doNotPipeOutput: true
|
|
364872
|
+
});
|
|
364873
|
+
const logs4 = stdout + stderr;
|
|
364874
|
+
if (writeLogsToFile) {
|
|
364875
|
+
const tmpFile = await import_tmp_promise10.default.file();
|
|
364876
|
+
await (0, import_promises97.writeFile)(tmpFile.path, logs4);
|
|
364877
|
+
logger4.info(`Generator logs here: ${tmpFile.path}`);
|
|
364878
|
+
}
|
|
364879
|
+
const resolvedExitCode = exitCode ?? 1;
|
|
364880
|
+
if (reject && resolvedExitCode !== 0) {
|
|
364881
|
+
throw new Error(`Container exec exited with code ${resolvedExitCode}.
|
|
364882
|
+
${stdout}
|
|
364883
|
+
${stderr}`);
|
|
364884
|
+
}
|
|
364885
|
+
return { stdout, stderr, exitCode: resolvedExitCode };
|
|
364886
|
+
}
|
|
364887
|
+
async function copyToContainer({ logger: logger4, containerId, hostPath, containerPath, runner }) {
|
|
364888
|
+
const containerRunner = runner ?? "docker";
|
|
364889
|
+
const { exitCode, stdout, stderr } = await loggingExeca(logger4, containerRunner, ["cp", hostPath, `${containerId}:${containerPath}`], {
|
|
364890
|
+
reject: false,
|
|
364891
|
+
doNotPipeOutput: true
|
|
364892
|
+
});
|
|
364893
|
+
if (exitCode !== 0) {
|
|
364894
|
+
throw new Error(`Failed to copy ${hostPath} to container ${containerId}:${containerPath}.
|
|
364895
|
+
${stdout}
|
|
364896
|
+
${stderr}`);
|
|
364897
|
+
}
|
|
364898
|
+
}
|
|
364899
|
+
async function copyFromContainer({ logger: logger4, containerId, containerPath, hostPath, runner }) {
|
|
364900
|
+
const containerRunner = runner ?? "docker";
|
|
364901
|
+
const { exitCode, stdout, stderr } = await loggingExeca(logger4, containerRunner, ["cp", `${containerId}:${containerPath}`, hostPath], {
|
|
364902
|
+
reject: false,
|
|
364903
|
+
doNotPipeOutput: true
|
|
364904
|
+
});
|
|
364905
|
+
if (exitCode !== 0) {
|
|
364906
|
+
throw new Error(`Failed to copy ${containerId}:${containerPath} to ${hostPath}.
|
|
364907
|
+
${stdout}
|
|
364908
|
+
${stderr}`);
|
|
364909
|
+
}
|
|
364910
|
+
}
|
|
364911
|
+
async function stopContainer({ logger: logger4, containerId, runner }) {
|
|
364912
|
+
const containerRunner = runner ?? "docker";
|
|
364913
|
+
await loggingExeca(logger4, containerRunner, ["rm", "-f", containerId], {
|
|
364914
|
+
reject: false,
|
|
364915
|
+
doNotPipeOutput: true
|
|
364916
|
+
});
|
|
364917
|
+
}
|
|
364918
|
+
var import_promises97, import_tmp_promise10, runDocker;
|
|
364919
|
+
var init_runDocker = __esm({
|
|
364920
|
+
"../generation/local-generation/docker-utils/lib/runDocker.js"() {
|
|
364921
|
+
"use strict";
|
|
364922
|
+
init_lib11();
|
|
364923
|
+
import_promises97 = require("fs/promises");
|
|
364924
|
+
import_tmp_promise10 = __toESM(require_tmp_promise(), 1);
|
|
364925
|
+
runDocker = runContainer;
|
|
364926
|
+
}
|
|
364927
|
+
});
|
|
364928
|
+
|
|
364929
|
+
// ../generation/local-generation/docker-utils/lib/index.js
|
|
364930
|
+
var lib_exports14 = {};
|
|
364931
|
+
__export(lib_exports14, {
|
|
364932
|
+
copyFromContainer: () => copyFromContainer,
|
|
364933
|
+
copyToContainer: () => copyToContainer,
|
|
364934
|
+
execInContainer: () => execInContainer,
|
|
364935
|
+
runContainer: () => runContainer,
|
|
364936
|
+
runDocker: () => runDocker,
|
|
364937
|
+
startContainer: () => startContainer,
|
|
364938
|
+
stopContainer: () => stopContainer
|
|
364939
|
+
});
|
|
364940
|
+
var init_lib42 = __esm({
|
|
364941
|
+
"../generation/local-generation/docker-utils/lib/index.js"() {
|
|
364942
|
+
"use strict";
|
|
364943
|
+
init_runDocker();
|
|
364944
|
+
}
|
|
364945
|
+
});
|
|
364946
|
+
|
|
364947
|
+
// ../../generator-cli/lib/pipeline/steps/VerificationStep.js
|
|
364948
|
+
var require_VerificationStep = __commonJS({
|
|
364949
|
+
"../../generator-cli/lib/pipeline/steps/VerificationStep.js"(exports2) {
|
|
364950
|
+
"use strict";
|
|
364951
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
364952
|
+
exports2.VerificationStep = void 0;
|
|
364953
|
+
var core_utils_1 = (init_lib4(), __toCommonJS(lib_exports));
|
|
364954
|
+
var docker_utils_1 = (init_lib42(), __toCommonJS(lib_exports14));
|
|
364955
|
+
var logger_1 = (init_lib5(), __toCommonJS(lib_exports2));
|
|
364956
|
+
var fs_1 = require("fs");
|
|
364957
|
+
var path_1 = require("path");
|
|
364958
|
+
var BaseStep_1 = require_BaseStep();
|
|
364959
|
+
var CONTAINER_WORKSPACE_PATH = "/workspace";
|
|
364960
|
+
var VERIFY_SCRIPT_RELATIVE_PATH = ".fern/verify.sh";
|
|
364961
|
+
var VERIFY_SCRIPT_CONTAINER_PATH = `${CONTAINER_WORKSPACE_PATH}/${VERIFY_SCRIPT_RELATIVE_PATH}`;
|
|
364962
|
+
var VerificationStep = class extends BaseStep_1.BaseStep {
|
|
364963
|
+
config;
|
|
364964
|
+
generatorName;
|
|
364965
|
+
generatorVersions;
|
|
364966
|
+
name = "verify";
|
|
364967
|
+
constructor(outputDir, logger4, config5, generatorName, generatorVersions) {
|
|
364968
|
+
super(outputDir, logger4);
|
|
364969
|
+
this.config = config5;
|
|
364970
|
+
this.generatorName = generatorName;
|
|
364971
|
+
this.generatorVersions = generatorVersions;
|
|
364972
|
+
}
|
|
364973
|
+
async execute(_context) {
|
|
364974
|
+
const verifyScriptHostPath = (0, path_1.join)(this.outputDir, VERIFY_SCRIPT_RELATIVE_PATH);
|
|
364975
|
+
if (!(0, fs_1.existsSync)(verifyScriptHostPath)) {
|
|
364976
|
+
return { executed: true, success: true, skipped: true };
|
|
364977
|
+
}
|
|
364978
|
+
const validatorImage = this.deriveValidatorImage();
|
|
364979
|
+
if (validatorImage == null) {
|
|
364980
|
+
const message = "Cannot derive validator image: generatorName and generatorVersions are required to compute the `{generatorImage}-validator:{version}` tag.";
|
|
364981
|
+
this.logger.error(message);
|
|
364982
|
+
return {
|
|
364983
|
+
executed: true,
|
|
364984
|
+
success: false,
|
|
364985
|
+
skipped: false,
|
|
364986
|
+
errorMessage: message
|
|
364987
|
+
};
|
|
364988
|
+
}
|
|
364989
|
+
const runner = this.config.runner ?? "docker";
|
|
364990
|
+
const dockerLogger = createDockerLoggerAdapter(this.logger);
|
|
364991
|
+
let containerId;
|
|
364992
|
+
try {
|
|
364993
|
+
try {
|
|
364994
|
+
containerId = await (0, docker_utils_1.startContainer)({
|
|
364995
|
+
logger: dockerLogger,
|
|
364996
|
+
imageName: validatorImage,
|
|
364997
|
+
runner
|
|
364998
|
+
});
|
|
364999
|
+
} catch (error50) {
|
|
365000
|
+
const message = `Failed to start verification container from image ${validatorImage}: ${(0, core_utils_1.extractErrorMessage)(error50)}`;
|
|
365001
|
+
this.logger.error(message);
|
|
365002
|
+
return {
|
|
365003
|
+
executed: true,
|
|
365004
|
+
success: false,
|
|
365005
|
+
skipped: false,
|
|
365006
|
+
errorMessage: message
|
|
365007
|
+
};
|
|
365008
|
+
}
|
|
365009
|
+
try {
|
|
365010
|
+
await (0, docker_utils_1.copyToContainer)({
|
|
365011
|
+
logger: dockerLogger,
|
|
365012
|
+
containerId,
|
|
365013
|
+
hostPath: `${this.outputDir}/.`,
|
|
365014
|
+
containerPath: CONTAINER_WORKSPACE_PATH,
|
|
365015
|
+
runner
|
|
365016
|
+
});
|
|
365017
|
+
} catch (error50) {
|
|
365018
|
+
const message = `Failed to copy workspace into verification container: ${(0, core_utils_1.extractErrorMessage)(error50)}`;
|
|
365019
|
+
this.logger.error(message);
|
|
365020
|
+
return {
|
|
365021
|
+
executed: true,
|
|
365022
|
+
success: false,
|
|
365023
|
+
skipped: false,
|
|
365024
|
+
errorMessage: message
|
|
365025
|
+
};
|
|
365026
|
+
}
|
|
365027
|
+
const { stdout, stderr, exitCode } = await (0, docker_utils_1.execInContainer)({
|
|
365028
|
+
logger: dockerLogger,
|
|
365029
|
+
containerId,
|
|
365030
|
+
command: ["bash", VERIFY_SCRIPT_CONTAINER_PATH],
|
|
365031
|
+
runner,
|
|
365032
|
+
writeLogsToFile: false,
|
|
365033
|
+
reject: false
|
|
365034
|
+
});
|
|
365035
|
+
if (exitCode !== 0) {
|
|
365036
|
+
const capturedStderr = stderr.length > 0 ? stderr : stdout;
|
|
365037
|
+
this.logger.error(`Verification failed (exit code ${exitCode}) for image ${validatorImage}.
|
|
365038
|
+
${capturedStderr}`);
|
|
365039
|
+
return {
|
|
365040
|
+
executed: true,
|
|
365041
|
+
success: false,
|
|
365042
|
+
skipped: false,
|
|
365043
|
+
stderr: capturedStderr,
|
|
365044
|
+
errorMessage: `Verification script exited with code ${exitCode}`
|
|
365045
|
+
};
|
|
365046
|
+
}
|
|
365047
|
+
this.logger.info(`Verification succeeded for image ${validatorImage}`);
|
|
365048
|
+
return { executed: true, success: true, skipped: false };
|
|
365049
|
+
} finally {
|
|
365050
|
+
if (containerId != null) {
|
|
365051
|
+
try {
|
|
365052
|
+
await (0, docker_utils_1.stopContainer)({ logger: dockerLogger, containerId, runner });
|
|
365053
|
+
} catch (error50) {
|
|
365054
|
+
this.logger.debug(`Best-effort cleanup: failed to stop verification container ${containerId}: ${(0, core_utils_1.extractErrorMessage)(error50)}`);
|
|
365055
|
+
}
|
|
365056
|
+
}
|
|
365057
|
+
}
|
|
365058
|
+
}
|
|
365059
|
+
deriveValidatorImage() {
|
|
365060
|
+
if (this.generatorName == null) {
|
|
365061
|
+
return void 0;
|
|
365062
|
+
}
|
|
365063
|
+
const version7 = this.generatorVersions?.[this.generatorName];
|
|
365064
|
+
if (version7 == null) {
|
|
365065
|
+
return void 0;
|
|
365066
|
+
}
|
|
365067
|
+
return `${this.generatorName}-validator:${version7}`;
|
|
365068
|
+
}
|
|
365069
|
+
};
|
|
365070
|
+
exports2.VerificationStep = VerificationStep;
|
|
365071
|
+
function createDockerLoggerAdapter(pipelineLogger) {
|
|
365072
|
+
return (0, logger_1.createLogger)((level, ...args) => {
|
|
365073
|
+
const message = args.join(" ");
|
|
365074
|
+
switch (level) {
|
|
365075
|
+
case logger_1.LogLevel.Trace:
|
|
365076
|
+
case logger_1.LogLevel.Debug:
|
|
365077
|
+
pipelineLogger.debug(message);
|
|
365078
|
+
return;
|
|
365079
|
+
case logger_1.LogLevel.Info:
|
|
365080
|
+
pipelineLogger.info(message);
|
|
365081
|
+
return;
|
|
365082
|
+
case logger_1.LogLevel.Warn:
|
|
365083
|
+
pipelineLogger.warn(message);
|
|
365084
|
+
return;
|
|
365085
|
+
case logger_1.LogLevel.Error:
|
|
365086
|
+
pipelineLogger.error(message);
|
|
365087
|
+
return;
|
|
365088
|
+
}
|
|
365089
|
+
});
|
|
365090
|
+
}
|
|
365091
|
+
}
|
|
365092
|
+
});
|
|
365093
|
+
|
|
364641
365094
|
// ../../generator-cli/lib/pipeline/PostGenerationPipeline.js
|
|
364642
365095
|
var require_PostGenerationPipeline = __commonJS({
|
|
364643
365096
|
"../../generator-cli/lib/pipeline/PostGenerationPipeline.js"(exports2) {
|
|
@@ -364652,6 +365105,7 @@ var require_PostGenerationPipeline = __commonJS({
|
|
|
364652
365105
|
var GenerationCommitStep_1 = require_GenerationCommitStep();
|
|
364653
365106
|
var GithubStep_1 = require_GithubStep();
|
|
364654
365107
|
var ReplayStep_1 = require_ReplayStep();
|
|
365108
|
+
var VerificationStep_1 = require_VerificationStep();
|
|
364655
365109
|
var PostGenerationPipeline2 = class {
|
|
364656
365110
|
config;
|
|
364657
365111
|
logger;
|
|
@@ -364678,6 +365132,9 @@ var require_PostGenerationPipeline = __commonJS({
|
|
|
364678
365132
|
if (replayEnabled && config5.replay != null) {
|
|
364679
365133
|
this.steps.push(new ReplayStep_1.ReplayStep(config5.outputDir, this.logger, config5.replay, config5.cliVersion, config5.generatorVersions, config5.generatorName));
|
|
364680
365134
|
}
|
|
365135
|
+
if (config5.verify?.enabled) {
|
|
365136
|
+
this.steps.push(new VerificationStep_1.VerificationStep(config5.outputDir, this.logger, config5.verify, config5.generatorName, config5.generatorVersions));
|
|
365137
|
+
}
|
|
364681
365138
|
if (config5.github?.enabled) {
|
|
364682
365139
|
this.steps.push(new GithubStep_1.GithubStep(config5.outputDir, this.logger, config5.github));
|
|
364683
365140
|
}
|
|
@@ -364713,12 +365170,25 @@ var require_PostGenerationPipeline = __commonJS({
|
|
|
364713
365170
|
pipelineContext.previousStepResults.autoVersion = stepResult;
|
|
364714
365171
|
} else if (step.name === "fernignore") {
|
|
364715
365172
|
result.steps.fernignore = stepResult;
|
|
365173
|
+
} else if (step.name === "verify") {
|
|
365174
|
+
const verifyResult = stepResult;
|
|
365175
|
+
result.steps.verify = verifyResult;
|
|
365176
|
+
pipelineContext.previousStepResults.verify = verifyResult;
|
|
364716
365177
|
} else if (step.name === "github") {
|
|
364717
365178
|
result.steps.github = stepResult;
|
|
364718
365179
|
}
|
|
364719
365180
|
if (!stepResult.success) {
|
|
364720
365181
|
result.success = false;
|
|
364721
365182
|
result.errors = result.errors ?? [];
|
|
365183
|
+
if (step.name === "verify") {
|
|
365184
|
+
const verifyResult = stepResult;
|
|
365185
|
+
if (verifyResult.stderr != null && verifyResult.stderr.length > 0) {
|
|
365186
|
+
result.errors.push(verifyResult.stderr);
|
|
365187
|
+
} else {
|
|
365188
|
+
result.errors.push(verifyResult.errorMessage ?? `${step.name} step failed`);
|
|
365189
|
+
}
|
|
365190
|
+
break;
|
|
365191
|
+
}
|
|
364722
365192
|
result.errors.push(stepResult.errorMessage ?? `${step.name} step failed`);
|
|
364723
365193
|
}
|
|
364724
365194
|
} catch (error50) {
|
|
@@ -364726,6 +365196,9 @@ var require_PostGenerationPipeline = __commonJS({
|
|
|
364726
365196
|
result.errors = result.errors ?? [];
|
|
364727
365197
|
const errorMessage = (0, core_utils_1.extractErrorMessage)(error50);
|
|
364728
365198
|
result.errors.push(`${step.name} step error: ${errorMessage}`);
|
|
365199
|
+
if (step.name === "verify") {
|
|
365200
|
+
break;
|
|
365201
|
+
}
|
|
364729
365202
|
}
|
|
364730
365203
|
}
|
|
364731
365204
|
return result;
|
|
@@ -384996,7 +385469,7 @@ var require_ReadmeGenerator = __commonJS({
|
|
|
384996
385469
|
"use strict";
|
|
384997
385470
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
384998
385471
|
exports2.ReadmeGenerator = void 0;
|
|
384999
|
-
var github_1 = (
|
|
385472
|
+
var github_1 = (init_lib8(), __toCommonJS(lib_exports4));
|
|
385000
385473
|
var compat_1 = require_compat2();
|
|
385001
385474
|
var string_1 = require_string3();
|
|
385002
385475
|
var index_js_1 = require_sdk();
|
|
@@ -385989,8 +386462,8 @@ var require_GitHub = __commonJS({
|
|
|
385989
386462
|
"use strict";
|
|
385990
386463
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
385991
386464
|
exports2.GitHub = void 0;
|
|
385992
|
-
var fs_utils_1 = (
|
|
385993
|
-
var github_1 = (
|
|
386465
|
+
var fs_utils_1 = (init_lib7(), __toCommonJS(lib_exports3));
|
|
386466
|
+
var github_1 = (init_lib8(), __toCommonJS(lib_exports4));
|
|
385994
386467
|
var rest_1 = (init_dist_src9(), __toCommonJS(dist_src_exports));
|
|
385995
386468
|
var GitHub = class {
|
|
385996
386469
|
githubConfig;
|
|
@@ -386188,7 +386661,7 @@ var require_replay_init = __commonJS({
|
|
|
386188
386661
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
386189
386662
|
exports2.replayInit = replayInit3;
|
|
386190
386663
|
exports2.formatBootstrapSummary = formatBootstrapSummary3;
|
|
386191
|
-
var github_1 = (
|
|
386664
|
+
var github_1 = (init_lib8(), __toCommonJS(lib_exports4));
|
|
386192
386665
|
var replay_1 = require_dist13();
|
|
386193
386666
|
var fs_1 = require("fs");
|
|
386194
386667
|
var path_1 = require("path");
|
|
@@ -388498,8 +388971,8 @@ var require_Fetcher3 = __commonJS({
|
|
|
388498
388971
|
const fetchFn = runtime_1.RUNTIME.type === "node" ? (
|
|
388499
388972
|
// `.default` is required due to this issue:
|
|
388500
388973
|
// https://github.com/node-fetch/node-fetch/issues/450#issuecomment-387045223
|
|
388501
|
-
(
|
|
388502
|
-
) : typeof fetch == "function" ? fetch : (
|
|
388974
|
+
(init_lib9(), __toCommonJS(lib_exports5)).default
|
|
388975
|
+
) : typeof fetch == "function" ? fetch : (init_lib9(), __toCommonJS(lib_exports5)).default;
|
|
388503
388976
|
const makeRequest3 = () => __awaiter35(this, void 0, void 0, function* () {
|
|
388504
388977
|
const controller = new AbortController();
|
|
388505
388978
|
let abortId = void 0;
|
|
@@ -516354,80 +516827,8 @@ function resolveErrorCode(error50, explicitCode) {
|
|
|
516354
516827
|
return CliError.Code.InternalError;
|
|
516355
516828
|
}
|
|
516356
516829
|
|
|
516357
|
-
// ../
|
|
516358
|
-
|
|
516359
|
-
Trace: "trace",
|
|
516360
|
-
Debug: "debug",
|
|
516361
|
-
Info: "info",
|
|
516362
|
-
Warn: "warn",
|
|
516363
|
-
Error: "error"
|
|
516364
|
-
};
|
|
516365
|
-
var LOG_LEVELS = Object.values(LogLevel);
|
|
516366
|
-
|
|
516367
|
-
// ../logger/lib/createLogger.js
|
|
516368
|
-
var LoggerImpl = class {
|
|
516369
|
-
log;
|
|
516370
|
-
enabled;
|
|
516371
|
-
constructor(log4, enabled = true) {
|
|
516372
|
-
this.log = log4;
|
|
516373
|
-
this.enabled = enabled;
|
|
516374
|
-
}
|
|
516375
|
-
disable() {
|
|
516376
|
-
this.enabled = false;
|
|
516377
|
-
}
|
|
516378
|
-
enable() {
|
|
516379
|
-
this.enabled = true;
|
|
516380
|
-
}
|
|
516381
|
-
debug(...args) {
|
|
516382
|
-
if (this.enabled) {
|
|
516383
|
-
this.log(LogLevel.Debug, ...args);
|
|
516384
|
-
}
|
|
516385
|
-
}
|
|
516386
|
-
info(...args) {
|
|
516387
|
-
if (this.enabled) {
|
|
516388
|
-
this.log(LogLevel.Info, ...args);
|
|
516389
|
-
}
|
|
516390
|
-
}
|
|
516391
|
-
warn(...args) {
|
|
516392
|
-
if (this.enabled) {
|
|
516393
|
-
this.log(LogLevel.Warn, ...args);
|
|
516394
|
-
}
|
|
516395
|
-
}
|
|
516396
|
-
error(...args) {
|
|
516397
|
-
if (this.enabled) {
|
|
516398
|
-
this.log(LogLevel.Error, ...args);
|
|
516399
|
-
}
|
|
516400
|
-
}
|
|
516401
|
-
trace(...args) {
|
|
516402
|
-
if (this.enabled) {
|
|
516403
|
-
this.log(LogLevel.Trace, ...args);
|
|
516404
|
-
}
|
|
516405
|
-
}
|
|
516406
|
-
};
|
|
516407
|
-
function createLogger(log4) {
|
|
516408
|
-
return new LoggerImpl(log4);
|
|
516409
|
-
}
|
|
516410
|
-
|
|
516411
|
-
// ../logger/lib/console.js
|
|
516412
|
-
var CONSOLE_LOGGER = Object.freeze(createLogger(log3));
|
|
516413
|
-
function log3(level, ...args) {
|
|
516414
|
-
const consoleLogger = getConsoleLoggerForLevel(level);
|
|
516415
|
-
consoleLogger(...args);
|
|
516416
|
-
}
|
|
516417
|
-
function getConsoleLoggerForLevel(level) {
|
|
516418
|
-
switch (level) {
|
|
516419
|
-
case LogLevel.Trace:
|
|
516420
|
-
return console.trace;
|
|
516421
|
-
case LogLevel.Debug:
|
|
516422
|
-
return console.debug;
|
|
516423
|
-
case LogLevel.Info:
|
|
516424
|
-
return console.info;
|
|
516425
|
-
case LogLevel.Warn:
|
|
516426
|
-
return console.warn;
|
|
516427
|
-
case LogLevel.Error:
|
|
516428
|
-
return console.error;
|
|
516429
|
-
}
|
|
516430
|
-
}
|
|
516830
|
+
// ../task-context/lib/MockTaskContext.js
|
|
516831
|
+
init_lib5();
|
|
516431
516832
|
|
|
516432
516833
|
// ../task-context/lib/TaskAbortSignal.js
|
|
516433
516834
|
var TaskAbortSignal = class {
|
|
@@ -516978,7 +517379,7 @@ var source_default = chalk;
|
|
|
516978
517379
|
|
|
516979
517380
|
// ../cli-v2/lib/api/checker/ApiChecker.js
|
|
516980
517381
|
init_lib4();
|
|
516981
|
-
|
|
517382
|
+
init_lib7();
|
|
516982
517383
|
|
|
516983
517384
|
// ../cli-v2/lib/api/config/AsyncApiSpec.js
|
|
516984
517385
|
function isAsyncApiSpec(spec) {
|
|
@@ -533715,7 +534116,7 @@ function getRegistryName(language) {
|
|
|
533715
534116
|
|
|
533716
534117
|
// ../../commons/api-workspace-commons/lib/computeSemanticVersion.js
|
|
533717
534118
|
init_lib4();
|
|
533718
|
-
|
|
534119
|
+
init_lib8();
|
|
533719
534120
|
|
|
533720
534121
|
// ../../../node_modules/.pnpm/ky@1.14.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
533721
534122
|
var HTTPError = class extends Error {
|
|
@@ -556362,10 +556763,10 @@ function getConvertOptions({ options: options2, overrides }) {
|
|
|
556362
556763
|
}
|
|
556363
556764
|
|
|
556364
556765
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildFernDefinition.js
|
|
556365
|
-
|
|
556766
|
+
init_lib6();
|
|
556366
556767
|
|
|
556367
556768
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildAuthSchemes.js
|
|
556368
|
-
|
|
556769
|
+
init_lib6();
|
|
556369
556770
|
|
|
556370
556771
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildTypeDeclaration.js
|
|
556371
556772
|
init_lib4();
|
|
@@ -562193,7 +562594,7 @@ init_lib4();
|
|
|
562193
562594
|
|
|
562194
562595
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/utils/convertSdkGroupName.js
|
|
562195
562596
|
init_lib4();
|
|
562196
|
-
|
|
562597
|
+
init_lib6();
|
|
562197
562598
|
init_lodash();
|
|
562198
562599
|
function camelCasePreservingUnderscores(name2) {
|
|
562199
562600
|
const leadingMatch = name2.match(/^(_+)/);
|
|
@@ -563909,7 +564310,7 @@ function buildPathParameter({ pathParameter, context: context3, fileContainingRe
|
|
|
563909
564310
|
}
|
|
563910
564311
|
|
|
563911
564312
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildQueryParameter.js
|
|
563912
|
-
|
|
564313
|
+
init_lib6();
|
|
563913
564314
|
function buildQueryParameter({ queryParameter, context: context3, fileContainingReference, namespace }) {
|
|
563914
564315
|
const typeReference2 = getQueryParameterTypeReference({
|
|
563915
564316
|
schema: queryParameter.schema,
|
|
@@ -565294,7 +565695,7 @@ function buildEnvironments(context3) {
|
|
|
565294
565695
|
}
|
|
565295
565696
|
|
|
565296
565697
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildGlobalHeaders.js
|
|
565297
|
-
|
|
565698
|
+
init_lib6();
|
|
565298
565699
|
init_lodash();
|
|
565299
565700
|
var HeaderWithCount = class {
|
|
565300
565701
|
schema;
|
|
@@ -565399,7 +565800,7 @@ function buildGlobalHeaders(context3) {
|
|
|
565399
565800
|
}
|
|
565400
565801
|
|
|
565401
565802
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildIdempotencyHeaders.js
|
|
565402
|
-
|
|
565803
|
+
init_lib6();
|
|
565403
565804
|
function buildIdempotencyHeaders(context3) {
|
|
565404
565805
|
for (const header of context3.ir.idempotencyHeaders ?? []) {
|
|
565405
565806
|
const groupName = header.schema ? getGroupNameForSchema(header.schema) : void 0;
|
|
@@ -565443,7 +565844,7 @@ function buildIdempotencyHeaders(context3) {
|
|
|
565443
565844
|
|
|
565444
565845
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildEndpoint.js
|
|
565445
565846
|
init_lib4();
|
|
565446
|
-
|
|
565847
|
+
init_lib6();
|
|
565447
565848
|
|
|
565448
565849
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildEndpointExample.js
|
|
565449
565850
|
init_lib4();
|
|
@@ -566479,7 +566880,7 @@ function endpointRequestSupportsInlinedPathParameters({ context: context3, reque
|
|
|
566479
566880
|
}
|
|
566480
566881
|
|
|
566481
566882
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/utils/getEndpointLocation.js
|
|
566482
|
-
|
|
566883
|
+
init_lib6();
|
|
566483
566884
|
init_lodash();
|
|
566484
566885
|
function resolveEndpointLocationWithNamespaceOverride({ location: location2, namespaceOverride }) {
|
|
566485
566886
|
if (namespaceOverride != null) {
|
|
@@ -566660,7 +567061,7 @@ function buildServices(context3) {
|
|
|
566660
567061
|
}
|
|
566661
567062
|
|
|
566662
567063
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildVariables.js
|
|
566663
|
-
|
|
567064
|
+
init_lib6();
|
|
566664
567065
|
function buildVariables(context3) {
|
|
566665
567066
|
for (const [variable3, variableSchema] of Object.entries(context3.ir.variables)) {
|
|
566666
567067
|
const namespace = variableSchema.groupName != null ? getNamespaceFromGroup(variableSchema.groupName) : void 0;
|
|
@@ -566682,7 +567083,7 @@ function buildVariables(context3) {
|
|
|
566682
567083
|
}
|
|
566683
567084
|
|
|
566684
567085
|
// ../api-importers/openapi/openapi-ir-to-fern/lib/buildWebhooks.js
|
|
566685
|
-
|
|
567086
|
+
init_lib6();
|
|
566686
567087
|
init_lodash();
|
|
566687
567088
|
function buildWebhooks(context3) {
|
|
566688
567089
|
for (const webhook of context3.ir.webhooks) {
|
|
@@ -567356,11 +567757,11 @@ var APIDefinitionImporter = class {
|
|
|
567356
567757
|
};
|
|
567357
567758
|
|
|
567358
567759
|
// ../api-importers/commons/lib/FernDefinitionBuilder.js
|
|
567359
|
-
|
|
567760
|
+
init_lib6();
|
|
567360
567761
|
init_lodash();
|
|
567361
567762
|
|
|
567362
567763
|
// ../api-importers/commons/lib/utils/FernDefinitionDirectory.js
|
|
567363
|
-
|
|
567764
|
+
init_lib6();
|
|
567364
567765
|
var FernDefinitionDirectory = class _FernDefinitionDirectory {
|
|
567365
567766
|
files = {};
|
|
567366
567767
|
directories = {};
|
|
@@ -568086,7 +568487,7 @@ function convert(opts) {
|
|
|
568086
568487
|
}
|
|
568087
568488
|
|
|
568088
568489
|
// ../../commons/api-workspace-commons/lib/openapi/FernDefinitionConverter.js
|
|
568089
|
-
|
|
568490
|
+
init_lib6();
|
|
568090
568491
|
init_js_yaml();
|
|
568091
568492
|
init_lodash();
|
|
568092
568493
|
function getReferencedAuthSchemeNames(auth8, authSchemes) {
|
|
@@ -580472,7 +580873,7 @@ function isOpenAPIV3(openApi) {
|
|
|
580472
580873
|
|
|
580473
580874
|
// ../../commons/api-workspace-commons/lib/utils/getAllNamedDefinitionFiles.js
|
|
580474
580875
|
init_lib4();
|
|
580475
|
-
|
|
580876
|
+
init_lib6();
|
|
580476
580877
|
init_lodash();
|
|
580477
580878
|
function getAllNamedDefinitionFiles(definition3, opts = {}) {
|
|
580478
580879
|
return {
|
|
@@ -580490,7 +580891,7 @@ function getAllNamedDefinitionFiles(definition3, opts = {}) {
|
|
|
580490
580891
|
|
|
580491
580892
|
// ../../commons/api-workspace-commons/lib/utils/getAllPackageMarkers.js
|
|
580492
580893
|
init_lib4();
|
|
580493
|
-
|
|
580894
|
+
init_lib6();
|
|
580494
580895
|
init_lodash();
|
|
580495
580896
|
function getAllPackageMarkers(definition3, opts = {}) {
|
|
580496
580897
|
return {
|
|
@@ -580521,7 +580922,7 @@ function getDefinitionFile(workspace, relativeFilepath) {
|
|
|
580521
580922
|
|
|
580522
580923
|
// ../../commons/api-workspace-commons/lib/utils/visitAllDefinitionFiles.js
|
|
580523
580924
|
init_lib4();
|
|
580524
|
-
|
|
580925
|
+
init_lib6();
|
|
580525
580926
|
function visitAllDefinitionFiles(workspace, visitor) {
|
|
580526
580927
|
for (const [relativeFilepath, file4] of entries(getAllDefinitionFiles(workspace.definition))) {
|
|
580527
580928
|
visitor(relativeFilepath, file4.contents, {
|
|
@@ -580568,7 +580969,7 @@ function joinZodPath(arr) {
|
|
|
580568
580969
|
}
|
|
580569
580970
|
|
|
580570
580971
|
// ../configuration-loader/lib/dependencies-yml/convertDependenciesConfiguration.js
|
|
580571
|
-
|
|
580972
|
+
init_lib7();
|
|
580572
580973
|
var import_path21 = __toESM(require("path"), 1);
|
|
580573
580974
|
var EMPTY_DEPENDENCIES_CONFIGURATION = {
|
|
580574
580975
|
dependencies: {}
|
|
@@ -580624,7 +581025,7 @@ function isPath(value2) {
|
|
|
580624
581025
|
}
|
|
580625
581026
|
|
|
580626
581027
|
// ../configuration-loader/lib/dependencies-yml/loadRawDependenciesConfiguration.js
|
|
580627
|
-
|
|
581028
|
+
init_lib7();
|
|
580628
581029
|
var import_promises11 = require("fs/promises");
|
|
580629
581030
|
init_js_yaml();
|
|
580630
581031
|
|
|
@@ -580776,7 +581177,7 @@ function getColorInstanceFromRawConfigOrThrow(raw, context3, key2, theme) {
|
|
|
580776
581177
|
|
|
580777
581178
|
// ../configuration-loader/lib/docs-yml/getAllPages.js
|
|
580778
581179
|
init_lib4();
|
|
580779
|
-
|
|
581180
|
+
init_lib7();
|
|
580780
581181
|
var import_promises12 = require("fs/promises");
|
|
580781
581182
|
init_lodash();
|
|
580782
581183
|
var BATCH_SIZE = 100;
|
|
@@ -580893,13 +581294,13 @@ function getAllPagesFromApiReferenceLayoutItem({ item }) {
|
|
|
580893
581294
|
// ../configuration-loader/lib/docs-yml/parseDocsConfiguration.js
|
|
580894
581295
|
init_lib4();
|
|
580895
581296
|
init_js();
|
|
580896
|
-
|
|
581297
|
+
init_lib7();
|
|
580897
581298
|
var import_promises14 = require("fs/promises");
|
|
580898
581299
|
init_js_yaml();
|
|
580899
581300
|
var import_path22 = __toESM(require("path"), 1);
|
|
580900
581301
|
|
|
580901
581302
|
// ../configuration-loader/lib/docs-yml/navigationUtils.js
|
|
580902
|
-
|
|
581303
|
+
init_lib7();
|
|
580903
581304
|
var import_promises13 = require("fs/promises");
|
|
580904
581305
|
var import_gray_matter = __toESM(require_gray_matter(), 1);
|
|
580905
581306
|
function nameToSlug({ name: name2 }) {
|
|
@@ -582715,7 +583116,7 @@ function parseVariantOverlays(variants) {
|
|
|
582715
583116
|
|
|
582716
583117
|
// ../configuration-loader/lib/fern-config-json/loadProjectConfig.js
|
|
582717
583118
|
init_lib4();
|
|
582718
|
-
|
|
583119
|
+
init_lib7();
|
|
582719
583120
|
var import_promises15 = require("fs/promises");
|
|
582720
583121
|
|
|
582721
583122
|
// ../configuration-loader/lib/fern-config-json/schema/ProjectConfigSchema.js
|
|
@@ -583170,8 +583571,8 @@ async function addGenerator({ generatorName, generatorsConfiguration, groupName
|
|
|
583170
583571
|
|
|
583171
583572
|
// ../configuration-loader/lib/generators-yml/convertGeneratorsConfiguration.js
|
|
583172
583573
|
init_lib4();
|
|
583173
|
-
init_lib6();
|
|
583174
583574
|
init_lib7();
|
|
583575
|
+
init_lib8();
|
|
583175
583576
|
|
|
583176
583577
|
// ../../../node_modules/.pnpm/@fern-fern+fiddle-sdk@1.0.3/node_modules/@fern-fern/fiddle-sdk/dist/esm/api/index.mjs
|
|
583177
583578
|
var api_exports4 = {};
|
|
@@ -590487,7 +590888,7 @@ function isGithubSelfhosted(github) {
|
|
|
590487
590888
|
}
|
|
590488
590889
|
|
|
590489
590890
|
// ../configuration-loader/lib/generators-yml/loadGeneratorsConfiguration.js
|
|
590490
|
-
|
|
590891
|
+
init_lib7();
|
|
590491
590892
|
var import_promises17 = require("fs/promises");
|
|
590492
590893
|
init_js_yaml();
|
|
590493
590894
|
var import_path24 = __toESM(require("path"), 1);
|
|
@@ -590574,7 +590975,7 @@ async function getPathToGeneratorsConfiguration({ absolutePathToWorkspace }) {
|
|
|
590574
590975
|
}
|
|
590575
590976
|
|
|
590576
590977
|
// ../configuration-loader/lib/getFernDirectory.js
|
|
590577
|
-
|
|
590978
|
+
init_lib7();
|
|
590578
590979
|
|
|
590579
590980
|
// ../../../node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.js
|
|
590580
590981
|
var import_node_path8 = __toESM(require("path"), 1);
|
|
@@ -590826,7 +591227,7 @@ async function getFernDirectory(nameOverride) {
|
|
|
590826
591227
|
}
|
|
590827
591228
|
|
|
590828
591229
|
// ../fern-definition/validator/lib/validateFernWorkspace.js
|
|
590829
|
-
|
|
591230
|
+
init_lib7();
|
|
590830
591231
|
|
|
590831
591232
|
// ../fern-definition/validator/lib/createDefinitionFileAstVisitorForRules.js
|
|
590832
591233
|
function createDefinitionFileAstVisitorForRules({ relativeFilepath, contents, allRuleVisitors, addViolations }) {
|
|
@@ -597026,7 +597427,7 @@ function generateUniqueName(id2, existingIds) {
|
|
|
597026
597427
|
}
|
|
597027
597428
|
|
|
597028
597429
|
// ../generation/ir-generator/lib/utils/convertToFernFilepath.js
|
|
597029
|
-
|
|
597430
|
+
init_lib6();
|
|
597030
597431
|
function convertToFernFilepath({ relativeFilepath, casingsGenerator }) {
|
|
597031
597432
|
const pathToPackage = dirname5(relativeFilepath);
|
|
597032
597433
|
const filename = basename3(relativeFilepath, { stripExtension: true });
|
|
@@ -597045,7 +597446,7 @@ function convertToFernFilepath({ relativeFilepath, casingsGenerator }) {
|
|
|
597045
597446
|
}
|
|
597046
597447
|
|
|
597047
597448
|
// ../generation/ir-generator/lib/utils/getResolvedPathOfImportedFile.js
|
|
597048
|
-
|
|
597449
|
+
init_lib6();
|
|
597049
597450
|
function getResolvedPathOfImportedFile({ referencedIn, importPath }) {
|
|
597050
597451
|
return join7(dirname5(referencedIn), importPath);
|
|
597051
597452
|
}
|
|
@@ -598038,7 +598439,7 @@ init_lib4();
|
|
|
598038
598439
|
init_lodash();
|
|
598039
598440
|
|
|
598040
598441
|
// ../generation/ir-generator/lib/FernFileContext.js
|
|
598041
|
-
|
|
598442
|
+
init_lib6();
|
|
598042
598443
|
init_lodash();
|
|
598043
598444
|
|
|
598044
598445
|
// ../generation/ir-generator/lib/utils/parseInlineType.js
|
|
@@ -601685,7 +602086,7 @@ __export(examples_exports6, {
|
|
|
601685
602086
|
|
|
601686
602087
|
// ../generation/ir-generator/lib/generateIntermediateRepresentation.js
|
|
601687
602088
|
init_lib4();
|
|
601688
|
-
|
|
602089
|
+
init_lib6();
|
|
601689
602090
|
|
|
601690
602091
|
// ../generation/ir-generator/lib/converters/constants.js
|
|
601691
602092
|
function generateFernConstants(casingsGenerator) {
|
|
@@ -605499,7 +605900,7 @@ function isHttpInlineRequestBodySchema(body) {
|
|
|
605499
605900
|
}
|
|
605500
605901
|
|
|
605501
605902
|
// ../fern-definition/validator/lib/rules/import-file-exists/import-file-exists.js
|
|
605502
|
-
|
|
605903
|
+
init_lib7();
|
|
605503
605904
|
var ImportFileExistsRule = {
|
|
605504
605905
|
name: "import-file-exists",
|
|
605505
605906
|
create: ({ workspace }) => {
|
|
@@ -605586,7 +605987,7 @@ var MatchingEnvironmentUrlsRule = {
|
|
|
605586
605987
|
|
|
605587
605988
|
// ../fern-definition/validator/lib/rules/no-circular-imports/no-circular-imports.js
|
|
605588
605989
|
init_lib4();
|
|
605589
|
-
|
|
605990
|
+
init_lib7();
|
|
605590
605991
|
var NoCircularImportsRule = {
|
|
605591
605992
|
name: "no-circular-imports",
|
|
605592
605993
|
DISABLE_RULE: true,
|
|
@@ -606794,7 +607195,7 @@ function isRawObjectDefinition2(namedDeclaration) {
|
|
|
606794
607195
|
}
|
|
606795
607196
|
|
|
606796
607197
|
// ../fern-definition/validator/lib/rules/no-undefined-error-reference/no-undefined-error-reference.js
|
|
606797
|
-
|
|
607198
|
+
init_lib7();
|
|
606798
607199
|
init_lodash();
|
|
606799
607200
|
var NoUndefinedErrorReferenceRule = {
|
|
606800
607201
|
name: "no-undefined-error-reference",
|
|
@@ -606965,7 +607366,7 @@ function getDifference(setA, setB) {
|
|
|
606965
607366
|
}
|
|
606966
607367
|
|
|
606967
607368
|
// ../fern-definition/validator/lib/rules/no-undefined-type-reference/no-undefined-type-reference.js
|
|
606968
|
-
|
|
607369
|
+
init_lib7();
|
|
606969
607370
|
init_lodash();
|
|
606970
607371
|
var NoUndefinedTypeReferenceRule = {
|
|
606971
607372
|
name: "no-undefined-type-reference",
|
|
@@ -608069,7 +608470,7 @@ function getGenericArgumentCounts(workspace) {
|
|
|
608069
608470
|
|
|
608070
608471
|
// ../fern-definition/validator/lib/rules/valid-navigation/valid-navigation.js
|
|
608071
608472
|
init_lib4();
|
|
608072
|
-
|
|
608473
|
+
init_lib7();
|
|
608073
608474
|
var import_path26 = __toESM(require("path"), 1);
|
|
608074
608475
|
var ValidNavigationRule = {
|
|
608075
608476
|
name: "valid-navigation",
|
|
@@ -610088,7 +610489,7 @@ function validatePackageMarker({ relativeFilepath, contents, allRuleVisitors })
|
|
|
610088
610489
|
}
|
|
610089
610490
|
|
|
610090
610491
|
// ../cli-v2/lib/api/validator/ApiDefinitionValidator.js
|
|
610091
|
-
|
|
610492
|
+
init_lib7();
|
|
610092
610493
|
|
|
610093
610494
|
// ../api-importers/conjure/conjure-sdk/lib/sdk/api/resources/services/types/ConjureAuthDefinitionType.js
|
|
610094
610495
|
var ConjureAuthDefinitionType = {
|
|
@@ -611698,10 +612099,10 @@ __export(types_exports9, {
|
|
|
611698
612099
|
|
|
611699
612100
|
// ../api-importers/conjure/conjure-to-fern/lib/ConjureImporter.js
|
|
611700
612101
|
init_lib4();
|
|
611701
|
-
|
|
612102
|
+
init_lib7();
|
|
611702
612103
|
|
|
611703
612104
|
// ../api-importers/conjure/conjure-to-fern/lib/utils/listConjureFiles.js
|
|
611704
|
-
|
|
612105
|
+
init_lib7();
|
|
611705
612106
|
var import_promises18 = require("fs/promises");
|
|
611706
612107
|
init_js_yaml();
|
|
611707
612108
|
async function listConjureFiles(root6, extensionGlob) {
|
|
@@ -612022,7 +612423,7 @@ async function visitAllConjureDefinitionFiles(absolutePathToConjureFolder, visit
|
|
|
612022
612423
|
}
|
|
612023
612424
|
|
|
612024
612425
|
// ../workspace/lazy-fern-workspace/lib/ConjureWorkspace.js
|
|
612025
|
-
|
|
612426
|
+
init_lib7();
|
|
612026
612427
|
init_js_yaml();
|
|
612027
612428
|
|
|
612028
612429
|
// ../workspace/lazy-fern-workspace/lib/utils/mapValues.js
|
|
@@ -612093,7 +612494,7 @@ var ConjureWorkspace = class extends AbstractAPIWorkspace {
|
|
|
612093
612494
|
};
|
|
612094
612495
|
|
|
612095
612496
|
// ../workspace/lazy-fern-workspace/lib/LazyFernWorkspace.js
|
|
612096
|
-
|
|
612497
|
+
init_lib7();
|
|
612097
612498
|
var import_object_hash = __toESM(require_object_hash(), 1);
|
|
612098
612499
|
|
|
612099
612500
|
// ../cli-logger/lib/formatLog.js
|
|
@@ -612111,6 +612512,7 @@ function formatLog({ breadcrumbs = [], title: title2, subtitle }) {
|
|
|
612111
612512
|
|
|
612112
612513
|
// ../cli-logger/lib/githubAnnotations.js
|
|
612113
612514
|
init_lib4();
|
|
612515
|
+
init_lib5();
|
|
612114
612516
|
function shouldEmitGithubAnnotations() {
|
|
612115
612517
|
return process.env.GITHUB_ACTIONS === "true";
|
|
612116
612518
|
}
|
|
@@ -612192,6 +612594,7 @@ function stripAnsi3(content5) {
|
|
|
612192
612594
|
}
|
|
612193
612595
|
|
|
612194
612596
|
// ../cli-logger/lib/logErrorMessage.js
|
|
612597
|
+
init_lib5();
|
|
612195
612598
|
var USE_NODE_18_OR_ABOVE_MESSAGE = "The Fern CLI requires Node 18+ or above.";
|
|
612196
612599
|
function logErrorMessage({ message, error: error50, logger: logger4, logLevel = LogLevel.Error }) {
|
|
612197
612600
|
if (message != null) {
|
|
@@ -612228,6 +612631,7 @@ function convertErrorToString(error50) {
|
|
|
612228
612631
|
|
|
612229
612632
|
// ../cli-logger/lib/TtyAwareLogger.js
|
|
612230
612633
|
init_lib4();
|
|
612634
|
+
init_lib5();
|
|
612231
612635
|
|
|
612232
612636
|
// ../../../node_modules/.pnpm/ansi-escapes@5.0.0/node_modules/ansi-escapes/index.js
|
|
612233
612637
|
var ESC = "\x1B[";
|
|
@@ -613195,7 +613599,7 @@ function parseZodIssue(issue2) {
|
|
|
613195
613599
|
}
|
|
613196
613600
|
|
|
613197
613601
|
// ../workspace/lazy-fern-workspace/lib/utils/listFernFiles.js
|
|
613198
|
-
|
|
613602
|
+
init_lib7();
|
|
613199
613603
|
var import_promises19 = require("fs/promises");
|
|
613200
613604
|
async function listFernFiles(root6, extensionGlob) {
|
|
613201
613605
|
const absoluteFilepaths = await listFiles(root6, extensionGlob);
|
|
@@ -613249,7 +613653,7 @@ async function parseYamlFiles(files) {
|
|
|
613249
613653
|
|
|
613250
613654
|
// ../workspace/lazy-fern-workspace/lib/utils/processPackageMarkers.js
|
|
613251
613655
|
init_lib4();
|
|
613252
|
-
|
|
613656
|
+
init_lib7();
|
|
613253
613657
|
init_lodash();
|
|
613254
613658
|
|
|
613255
613659
|
// ../../core/lib/services/fdr.js
|
|
@@ -620104,7 +620508,7 @@ function createVenusService({ environment: environment2 = "https://venus-dev2.bu
|
|
|
620104
620508
|
|
|
620105
620509
|
// ../workspace/lazy-fern-workspace/lib/utils/loadDependency.js
|
|
620106
620510
|
init_lib4();
|
|
620107
|
-
|
|
620511
|
+
init_lib7();
|
|
620108
620512
|
|
|
620109
620513
|
// ../../../node_modules/.pnpm/semver-diff@4.0.0/node_modules/semver-diff/index.js
|
|
620110
620514
|
var import_semver11 = __toESM(require_semver2(), 1);
|
|
@@ -627910,7 +628314,7 @@ async function processPackageMarkers({ dependenciesConfiguration, structuralVali
|
|
|
627910
628314
|
|
|
627911
628315
|
// ../workspace/lazy-fern-workspace/lib/utils/validateStructureOfYamlFiles.js
|
|
627912
628316
|
init_lib4();
|
|
627913
|
-
|
|
628317
|
+
init_lib7();
|
|
627914
628318
|
var import_path32 = __toESM(require("path"), 1);
|
|
627915
628319
|
|
|
627916
628320
|
// ../workspace/lazy-fern-workspace/lib/api-yml.schema.json
|
|
@@ -638765,7 +639169,7 @@ var LazyFernWorkspace = class extends AbstractAPIWorkspace {
|
|
|
638765
639169
|
};
|
|
638766
639170
|
|
|
638767
639171
|
// ../workspace/lazy-fern-workspace/lib/loaders/OpenAPILoader.js
|
|
638768
|
-
|
|
639172
|
+
init_lib7();
|
|
638769
639173
|
var import_promises30 = require("fs/promises");
|
|
638770
639174
|
|
|
638771
639175
|
// ../workspace/lazy-fern-workspace/lib/utils/convertOpenAPIV2ToV3.js
|
|
@@ -639012,7 +639416,7 @@ async function loadAsyncAPI({ context: context3, absoluteFilePath, absoluteFileP
|
|
|
639012
639416
|
|
|
639013
639417
|
// ../workspace/lazy-fern-workspace/lib/utils/loadOpenAPI.js
|
|
639014
639418
|
var import_node_path18 = __toESM(require("path"), 1);
|
|
639015
|
-
|
|
639419
|
+
init_lib7();
|
|
639016
639420
|
var import_promises29 = require("fs/promises");
|
|
639017
639421
|
init_js_yaml();
|
|
639018
639422
|
|
|
@@ -639102,7 +639506,7 @@ var import_promises27 = require("fs/promises");
|
|
|
639102
639506
|
init_js_yaml();
|
|
639103
639507
|
|
|
639104
639508
|
// ../workspace/lazy-fern-workspace/lib/loaders/OpenAPIRefResolver.js
|
|
639105
|
-
|
|
639509
|
+
init_lib7();
|
|
639106
639510
|
var import_openapi_core2 = __toESM(require_lib2(), 1);
|
|
639107
639511
|
var import_path36 = __toESM(require("path"), 1);
|
|
639108
639512
|
var OpenAPIRefResolver = class extends import_openapi_core2.BaseResolver {
|
|
@@ -639684,7 +640088,8 @@ init_js_yaml();
|
|
|
639684
640088
|
init_lodash();
|
|
639685
640089
|
|
|
639686
640090
|
// ../api-importers/v3-importer-commons/lib/ErrorCollector.js
|
|
639687
|
-
|
|
640091
|
+
init_lib7();
|
|
640092
|
+
init_lib5();
|
|
639688
640093
|
var import_promises31 = require("fs/promises");
|
|
639689
640094
|
init_js_yaml();
|
|
639690
640095
|
|
|
@@ -647108,7 +647513,7 @@ var AsyncAPIConverterContext = class extends AbstractConverterContext {
|
|
|
647108
647513
|
|
|
647109
647514
|
// ../workspace/lazy-fern-workspace/lib/OSSWorkspace.js
|
|
647110
647515
|
init_lib4();
|
|
647111
|
-
|
|
647516
|
+
init_lib7();
|
|
647112
647517
|
|
|
647113
647518
|
// ../api-importers/openapi-to-ir/lib/3.1/OpenAPIConverter.js
|
|
647114
647519
|
var import_openapi_types2 = __toESM(require_dist10(), 1);
|
|
@@ -651533,21 +651938,21 @@ async function loadOpenRpc({ context: context3, absoluteFilePath, absoluteFilePa
|
|
|
651533
651938
|
}
|
|
651534
651939
|
|
|
651535
651940
|
// ../workspace/lazy-fern-workspace/lib/protobuf/ProtobufIRGenerator.js
|
|
651536
|
-
|
|
651537
|
-
|
|
651941
|
+
init_lib7();
|
|
651942
|
+
init_lib11();
|
|
651538
651943
|
var import_promises35 = require("fs/promises");
|
|
651539
651944
|
var import_path41 = __toESM(require("path"), 1);
|
|
651540
651945
|
var import_tmp_promise6 = __toESM(require_tmp_promise(), 1);
|
|
651541
651946
|
|
|
651542
651947
|
// ../workspace/lazy-fern-workspace/lib/protobuf/utils.js
|
|
651543
651948
|
init_lib4();
|
|
651544
|
-
|
|
651545
|
-
|
|
651949
|
+
init_lib7();
|
|
651950
|
+
init_lib11();
|
|
651546
651951
|
var import_promises34 = require("fs/promises");
|
|
651547
651952
|
var import_tmp_promise5 = __toESM(require_tmp_promise(), 1);
|
|
651548
651953
|
|
|
651549
651954
|
// ../workspace/lazy-fern-workspace/lib/protobuf/BufDownloader.js
|
|
651550
|
-
|
|
651955
|
+
init_lib7();
|
|
651551
651956
|
var import_promises33 = require("fs/promises");
|
|
651552
651957
|
var import_os2 = __toESM(require("os"), 1);
|
|
651553
651958
|
var import_path40 = __toESM(require("path"), 1);
|
|
@@ -652110,17 +652515,17 @@ var ProtobufIRGenerator = class {
|
|
|
652110
652515
|
};
|
|
652111
652516
|
|
|
652112
652517
|
// ../workspace/lazy-fern-workspace/lib/utils/getAllOpenAPISpecs.js
|
|
652113
|
-
|
|
652518
|
+
init_lib7();
|
|
652114
652519
|
|
|
652115
652520
|
// ../workspace/lazy-fern-workspace/lib/protobuf/ProtobufOpenAPIGenerator.js
|
|
652116
|
-
|
|
652117
|
-
|
|
652521
|
+
init_lib7();
|
|
652522
|
+
init_lib11();
|
|
652118
652523
|
var import_promises37 = require("fs/promises");
|
|
652119
652524
|
var import_path43 = __toESM(require("path"), 1);
|
|
652120
652525
|
var import_tmp_promise7 = __toESM(require_tmp_promise(), 1);
|
|
652121
652526
|
|
|
652122
652527
|
// ../workspace/lazy-fern-workspace/lib/protobuf/ProtocGenOpenAPIDownloader.js
|
|
652123
|
-
|
|
652528
|
+
init_lib7();
|
|
652124
652529
|
var import_promises36 = require("fs/promises");
|
|
652125
652530
|
var import_os3 = __toESM(require("os"), 1);
|
|
652126
652531
|
var import_path42 = __toESM(require("path"), 1);
|
|
@@ -652767,7 +653172,7 @@ var OSSWorkspace = class _OSSWorkspace extends BaseOpenAPIWorkspace {
|
|
|
652767
653172
|
return Object.keys(this.graphqlTypes).length;
|
|
652768
653173
|
}
|
|
652769
653174
|
async processGraphQLSpecs(context3) {
|
|
652770
|
-
const { GraphQLConverter: GraphQLConverter2 } = await Promise.resolve().then(() => (
|
|
653175
|
+
const { GraphQLConverter: GraphQLConverter2 } = await Promise.resolve().then(() => (init_lib12(), lib_exports9));
|
|
652771
653176
|
const graphqlSpecs = this.allSpecs.filter((spec) => spec.type === "graphql");
|
|
652772
653177
|
for (const spec of graphqlSpecs) {
|
|
652773
653178
|
try {
|
|
@@ -653159,7 +653564,7 @@ async function getAuthFromOverrideFiles(specs) {
|
|
|
653159
653564
|
var import_promises40 = require("fs/promises");
|
|
653160
653565
|
|
|
653161
653566
|
// ../workspace/oss-validator/lib/rules/no-component-schema-collisions/no-component-schema-collisions.js
|
|
653162
|
-
|
|
653567
|
+
init_lib7();
|
|
653163
653568
|
var NoComponentSchemaCollisionsRule = {
|
|
653164
653569
|
name: "no-component-schema-collisions",
|
|
653165
653570
|
run: async ({ workspace, specs, loadedDocuments }) => {
|
|
@@ -653201,7 +653606,7 @@ var NoComponentSchemaCollisionsRule = {
|
|
|
653201
653606
|
};
|
|
653202
653607
|
|
|
653203
653608
|
// ../workspace/oss-validator/lib/rules/no-conflicting-parameter-names/no-conflicting-parameter-names.js
|
|
653204
|
-
|
|
653609
|
+
init_lib7();
|
|
653205
653610
|
var NoConflictingParameterNamesRule = {
|
|
653206
653611
|
name: "no-conflicting-parameter-names",
|
|
653207
653612
|
run: async ({ workspace, specs, loadedDocuments }) => {
|
|
@@ -653325,7 +653730,7 @@ function toCamelCase3(input3) {
|
|
|
653325
653730
|
}
|
|
653326
653731
|
|
|
653327
653732
|
// ../workspace/oss-validator/lib/rules/no-duplicate-auth-header-parameters/no-duplicate-auth-header-parameters.js
|
|
653328
|
-
|
|
653733
|
+
init_lib7();
|
|
653329
653734
|
var NoDuplicateAuthHeaderParametersRule = {
|
|
653330
653735
|
name: "no-duplicate-auth-header-parameters",
|
|
653331
653736
|
run: async ({ workspace, specs, loadedDocuments }) => {
|
|
@@ -653445,7 +653850,7 @@ function isDuplicateAuthHeader(param, authHeaderNames) {
|
|
|
653445
653850
|
}
|
|
653446
653851
|
|
|
653447
653852
|
// ../workspace/oss-validator/lib/rules/no-duplicate-overrides/no-duplicate-overrides.js
|
|
653448
|
-
|
|
653853
|
+
init_lib7();
|
|
653449
653854
|
var NoDuplicateOverridesRule = {
|
|
653450
653855
|
name: "no-duplicate-overrides",
|
|
653451
653856
|
run: async ({ workspace, specs, loadedDocuments }) => {
|
|
@@ -653504,7 +653909,7 @@ function audiencesIntersect(a3, b8) {
|
|
|
653504
653909
|
}
|
|
653505
653910
|
|
|
653506
653911
|
// ../workspace/oss-validator/lib/rules/no-invalid-tag-names-or-frontmatter/no-invalid-tag-names-or-frontmatter.js
|
|
653507
|
-
|
|
653912
|
+
init_lib7();
|
|
653508
653913
|
var NON_ASCII_REGEX2 = new RegExp("[^\\x00-\\x7F]");
|
|
653509
653914
|
var FRONTMATTER_REGEX = /(?:^|\n)\s*---\s*(?:\n|$)/;
|
|
653510
653915
|
var HTTP_METHODS = ["get", "post", "put", "delete", "patch", "options", "head", "trace"];
|
|
@@ -653585,7 +653990,7 @@ var NoInvalidTagNamesOrFrontmatterRule = {
|
|
|
653585
653990
|
};
|
|
653586
653991
|
|
|
653587
653992
|
// ../workspace/oss-validator/lib/rules/no-schema-title-collisions/no-schema-title-collisions.js
|
|
653588
|
-
|
|
653993
|
+
init_lib7();
|
|
653589
653994
|
var NoSchemaTitleCollisionsRule = {
|
|
653590
653995
|
name: "no-schema-title-collisions",
|
|
653591
653996
|
run: async ({ workspace, specs, loadedDocuments }) => {
|
|
@@ -653675,6 +654080,12 @@ async function runRulesOnOSSWorkspace({ workspace, context: context3, rules }) {
|
|
|
653675
654080
|
return ruleResults.flat();
|
|
653676
654081
|
}
|
|
653677
654082
|
|
|
654083
|
+
// ../cli-v2/lib/context/adapter/TaskContextAdapter.js
|
|
654084
|
+
init_lib5();
|
|
654085
|
+
|
|
654086
|
+
// ../cli-v2/lib/context/withContext.js
|
|
654087
|
+
init_lib5();
|
|
654088
|
+
|
|
653678
654089
|
// ../cli-v2/lib/auth/errors/KeyringUnavailableError.js
|
|
653679
654090
|
var KeyringUnavailableError = class _KeyringUnavailableError extends CliError {
|
|
653680
654091
|
platform;
|
|
@@ -653870,7 +654281,7 @@ async function createOrganizationIfDoesNotExist({ organization, token, context:
|
|
|
653870
654281
|
}
|
|
653871
654282
|
|
|
653872
654283
|
// ../auth/lib/persistence/getPathToTokenFile.js
|
|
653873
|
-
|
|
654284
|
+
init_lib7();
|
|
653874
654285
|
var import_os4 = require("os");
|
|
653875
654286
|
var TOKEN_FILENAME = "token";
|
|
653876
654287
|
var LOCAL_STORAGE_FOLDER2 = ".fern-dev";
|
|
@@ -653879,7 +654290,7 @@ function getPathToTokenFile() {
|
|
|
653879
654290
|
}
|
|
653880
654291
|
|
|
653881
654292
|
// ../auth/lib/persistence/getToken.js
|
|
653882
|
-
|
|
654293
|
+
init_lib7();
|
|
653883
654294
|
var import_promises41 = require("fs/promises");
|
|
653884
654295
|
var FERN_TOKEN_ENV_VAR = "FERN_TOKEN";
|
|
653885
654296
|
async function getToken2() {
|
|
@@ -654892,7 +655303,8 @@ function resolveOutputObjectSchema(output2) {
|
|
|
654892
655303
|
}
|
|
654893
655304
|
|
|
654894
655305
|
// ../cli-v2/lib/context/Context.js
|
|
654895
|
-
|
|
655306
|
+
init_lib7();
|
|
655307
|
+
init_lib5();
|
|
654896
655308
|
|
|
654897
655309
|
// ../../../node_modules/.pnpm/inquirer@9.3.8_@types+node@22.19.17/node_modules/inquirer/lib/prompts/list.js
|
|
654898
655310
|
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
|
@@ -661339,7 +661751,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661339
661751
|
properties: {
|
|
661340
661752
|
...event,
|
|
661341
661753
|
...event.properties,
|
|
661342
|
-
version: "5.
|
|
661754
|
+
version: "5.23.0",
|
|
661343
661755
|
usingAccessToken: true,
|
|
661344
661756
|
...getRunIdProperties()
|
|
661345
661757
|
}
|
|
@@ -661365,7 +661777,7 @@ var NoopPosthogManager = class {
|
|
|
661365
661777
|
};
|
|
661366
661778
|
|
|
661367
661779
|
// ../posthog-manager/lib/UserPosthogManager.js
|
|
661368
|
-
|
|
661780
|
+
init_lib7();
|
|
661369
661781
|
var import_promises44 = require("fs/promises");
|
|
661370
661782
|
var import_os5 = require("os");
|
|
661371
661783
|
var import_path46 = require("path");
|
|
@@ -661394,7 +661806,7 @@ var UserPosthogManager = class {
|
|
|
661394
661806
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661395
661807
|
event: "CLI",
|
|
661396
661808
|
properties: {
|
|
661397
|
-
version: "5.
|
|
661809
|
+
version: "5.23.0",
|
|
661398
661810
|
...event,
|
|
661399
661811
|
...event.properties,
|
|
661400
661812
|
usingAccessToken: false,
|
|
@@ -662964,7 +663376,7 @@ function constructAuth0LogoutUrl(returnTo) {
|
|
|
662964
663376
|
var import_promises52 = require("fs/promises");
|
|
662965
663377
|
|
|
662966
663378
|
// ../cli-v2/lib/auth/PlatformKeyring.js
|
|
662967
|
-
|
|
663379
|
+
init_lib11();
|
|
662968
663380
|
var PlatformKeyring = class {
|
|
662969
663381
|
async setPassword(service, account, password) {
|
|
662970
663382
|
switch (process.platform) {
|
|
@@ -663405,7 +663817,7 @@ var FernRcAccountManager = class {
|
|
|
663405
663817
|
};
|
|
663406
663818
|
|
|
663407
663819
|
// ../cli-v2/lib/config/fern-rc/FernRcSchemaLoader.js
|
|
663408
|
-
|
|
663820
|
+
init_lib7();
|
|
663409
663821
|
var import_fs21 = require("fs");
|
|
663410
663822
|
var import_promises45 = require("fs/promises");
|
|
663411
663823
|
init_js_yaml();
|
|
@@ -663554,7 +663966,7 @@ var FernRcTelemetryManager = class {
|
|
|
663554
663966
|
};
|
|
663555
663967
|
|
|
663556
663968
|
// ../cli-v2/lib/config/fern-rc/LegacyTokenMigrator.js
|
|
663557
|
-
|
|
663969
|
+
init_lib7();
|
|
663558
663970
|
var import_promises46 = require("fs/promises");
|
|
663559
663971
|
var DEFAULT_USER = "default";
|
|
663560
663972
|
var LegacyTokenMigrator = class {
|
|
@@ -663812,11 +664224,11 @@ var TokenService = class {
|
|
|
663812
664224
|
};
|
|
663813
664225
|
|
|
663814
664226
|
// ../cli-v2/lib/cache/Cache.js
|
|
663815
|
-
|
|
664227
|
+
init_lib7();
|
|
663816
664228
|
var import_os7 = __toESM(require("os"), 1);
|
|
663817
664229
|
|
|
663818
664230
|
// ../cli-v2/lib/cache/ir/IrCache.js
|
|
663819
|
-
|
|
664231
|
+
init_lib7();
|
|
663820
664232
|
var import_crypto5 = __toESM(require("crypto"), 1);
|
|
663821
664233
|
var import_promises47 = __toESM(require("fs/promises"), 1);
|
|
663822
664234
|
var IrCache = class {
|
|
@@ -664195,10 +664607,10 @@ var Cache = class {
|
|
|
664195
664607
|
};
|
|
664196
664608
|
|
|
664197
664609
|
// ../cli-v2/lib/config/fern-yml/FernYmlSchemaLoader.js
|
|
664198
|
-
|
|
664610
|
+
init_lib7();
|
|
664199
664611
|
|
|
664200
664612
|
// ../yaml/loader/lib/ReferenceResolver.js
|
|
664201
|
-
|
|
664613
|
+
init_lib7();
|
|
664202
664614
|
|
|
664203
664615
|
// ../source/lib/constants.js
|
|
664204
664616
|
var LOCATION_PROPERTY = "$loc";
|
|
@@ -664802,7 +665214,7 @@ var ReferenceResolver = class {
|
|
|
664802
665214
|
|
|
664803
665215
|
// ../yaml/loader/lib/YamlConfigLoader.js
|
|
664804
665216
|
init_lib4();
|
|
664805
|
-
|
|
665217
|
+
init_lib7();
|
|
664806
665218
|
|
|
664807
665219
|
// ../yaml/loader/lib/deepStrict.js
|
|
664808
665220
|
function deepStrict(schema2) {
|
|
@@ -664877,7 +665289,7 @@ function deepStrictImpl(schema2, cache2) {
|
|
|
664877
665289
|
}
|
|
664878
665290
|
|
|
664879
665291
|
// ../yaml/loader/lib/YamlParser.js
|
|
664880
|
-
|
|
665292
|
+
init_lib6();
|
|
664881
665293
|
var import_promises50 = require("fs/promises");
|
|
664882
665294
|
var import_yaml3 = __toESM(require_dist9(), 1);
|
|
664883
665295
|
var YamlParser = class {
|
|
@@ -665130,7 +665542,7 @@ var YamlConfigLoader = class {
|
|
|
665130
665542
|
};
|
|
665131
665543
|
|
|
665132
665544
|
// ../cli-v2/lib/config/FileFinder.js
|
|
665133
|
-
|
|
665545
|
+
init_lib7();
|
|
665134
665546
|
var FileFinder = class {
|
|
665135
665547
|
from;
|
|
665136
665548
|
constructor(options2) {
|
|
@@ -665230,7 +665642,7 @@ var FernYmlSchemaLoader = class {
|
|
|
665230
665642
|
};
|
|
665231
665643
|
|
|
665232
665644
|
// ../cli-v2/lib/telemetry/TelemetryClient.js
|
|
665233
|
-
|
|
665645
|
+
init_lib7();
|
|
665234
665646
|
var import_promises51 = require("fs/promises");
|
|
665235
665647
|
var import_is_ci2 = __toESM(require_is_ci(), 1);
|
|
665236
665648
|
var os10 = __toESM(require("os"), 1);
|
|
@@ -665553,7 +665965,7 @@ var TtyAwareLogger2 = class {
|
|
|
665553
665965
|
};
|
|
665554
665966
|
|
|
665555
665967
|
// ../cli-v2/lib/api/config/converter/ApiDefinitionConverter.js
|
|
665556
|
-
|
|
665968
|
+
init_lib7();
|
|
665557
665969
|
var DEFAULT_API_NAME = "api";
|
|
665558
665970
|
var ApiDefinitionConverter = class {
|
|
665559
665971
|
cwd;
|
|
@@ -666399,7 +666811,7 @@ function parseFlags(argv) {
|
|
|
666399
666811
|
}
|
|
666400
666812
|
|
|
666401
666813
|
// ../cli-v2/lib/context/LogFileWriter.js
|
|
666402
|
-
|
|
666814
|
+
init_lib7();
|
|
666403
666815
|
var import_fs22 = require("fs");
|
|
666404
666816
|
var LogFileWriter = class {
|
|
666405
666817
|
absoluteFilePath;
|
|
@@ -666892,6 +667304,7 @@ function parseLogLevel(level) {
|
|
|
666892
667304
|
}
|
|
666893
667305
|
|
|
666894
667306
|
// ../cli-v2/lib/context/adapter/TaskContextLogger.js
|
|
667307
|
+
init_lib5();
|
|
666895
667308
|
var TaskContextLogger = class {
|
|
666896
667309
|
context;
|
|
666897
667310
|
task;
|
|
@@ -667159,7 +667572,7 @@ var TaskContextAdapter = class {
|
|
|
667159
667572
|
};
|
|
667160
667573
|
|
|
667161
667574
|
// ../cli-v2/lib/api/adapter/LegacyApiSpecAdapter.js
|
|
667162
|
-
|
|
667575
|
+
init_lib7();
|
|
667163
667576
|
|
|
667164
667577
|
// ../cli-v2/lib/api/config/GraphQlSpec.js
|
|
667165
667578
|
function isGraphQlSpec(spec) {
|
|
@@ -667817,7 +668230,7 @@ function addCheckCommand(cli) {
|
|
|
667817
668230
|
}
|
|
667818
668231
|
|
|
667819
668232
|
// ../cli-source-resolver/lib/SourceResolverImpl.js
|
|
667820
|
-
|
|
668233
|
+
init_lib7();
|
|
667821
668234
|
|
|
667822
668235
|
// ../cli-source-resolver/lib/parsers/ProtobufParser.js
|
|
667823
668236
|
var import_fs24 = require("fs");
|
|
@@ -806142,7 +806555,7 @@ function migrateIntermediateRepresentationThroughVersion({ intermediateRepresent
|
|
|
806142
806555
|
}
|
|
806143
806556
|
|
|
806144
806557
|
// ../cli-v2/lib/api/adapter/LegacyFernWorkspaceAdapter.js
|
|
806145
|
-
|
|
806558
|
+
init_lib7();
|
|
806146
806559
|
|
|
806147
806560
|
// ../cli-v2/lib/api/adapter/LegacyOSSWorkspaceAdapter.js
|
|
806148
806561
|
var LegacyOSSWorkspaceAdapter = class {
|
|
@@ -806340,7 +806753,7 @@ var IrCompiler = class {
|
|
|
806340
806753
|
};
|
|
806341
806754
|
|
|
806342
806755
|
// ../cli-v2/lib/io/stdio.js
|
|
806343
|
-
|
|
806756
|
+
init_lib7();
|
|
806344
806757
|
var import_promises53 = require("fs/promises");
|
|
806345
806758
|
init_esm15();
|
|
806346
806759
|
var import_stream8 = require("stream");
|
|
@@ -806524,7 +806937,7 @@ var FERN_YML_FILENAME = "fern.yml";
|
|
|
806524
806937
|
var REF_KEY2 = "$ref";
|
|
806525
806938
|
|
|
806526
806939
|
// ../cli-v2/lib/config/fern-yml/FernYmlEditor.js
|
|
806527
|
-
|
|
806940
|
+
init_lib7();
|
|
806528
806941
|
var import_promises55 = require("fs/promises");
|
|
806529
806942
|
var import_path49 = __toESM(require("path"), 1);
|
|
806530
806943
|
var import_yaml4 = __toESM(require_dist9(), 1);
|
|
@@ -807282,7 +807695,7 @@ var import_path51 = __toESM(require("path"), 1);
|
|
|
807282
807695
|
var import_util17 = require("util");
|
|
807283
807696
|
|
|
807284
807697
|
// ../cli-v2/lib/commands/api/split/deriveOutputPath.js
|
|
807285
|
-
|
|
807698
|
+
init_lib7();
|
|
807286
807699
|
var OVERLAY_NAME = "overlay";
|
|
807287
807700
|
var OVERLAY_NAME_ALTERNATIVES = ["overlays"];
|
|
807288
807701
|
var OVERRIDES_NAME = "overrides";
|
|
@@ -807551,6 +807964,7 @@ function addApiCommand(cli) {
|
|
|
807551
807964
|
}
|
|
807552
807965
|
|
|
807553
807966
|
// ../cli-v2/lib/commands/auth/login/command.js
|
|
807967
|
+
init_lib5();
|
|
807554
807968
|
var LoginCommand = class {
|
|
807555
807969
|
async handle(context3, args) {
|
|
807556
807970
|
const useDeviceCodeFlow = args["device-code"];
|
|
@@ -808162,7 +808576,7 @@ function isClaudeCodeSession() {
|
|
|
808162
808576
|
init_lib4();
|
|
808163
808577
|
|
|
808164
808578
|
// ../docs-resolver/lib/index.js
|
|
808165
|
-
|
|
808579
|
+
init_lib40();
|
|
808166
808580
|
|
|
808167
808581
|
// ../docs-resolver/lib/applyTranslatedFrontmatterToNavTree.js
|
|
808168
808582
|
var import_gray_matter5 = __toESM(require_gray_matter(), 1);
|
|
@@ -808608,10 +809022,10 @@ function applyVariantOverlays(variants, overlays) {
|
|
|
808608
809022
|
|
|
808609
809023
|
// ../docs-resolver/lib/DocsDefinitionResolver.js
|
|
808610
809024
|
init_lib4();
|
|
808611
|
-
|
|
809025
|
+
init_lib40();
|
|
808612
809026
|
init_js();
|
|
808613
|
-
|
|
808614
|
-
|
|
809027
|
+
init_lib7();
|
|
809028
|
+
init_lib12();
|
|
808615
809029
|
var import_dayjs3 = __toESM(require_dayjs_min(), 1);
|
|
808616
809030
|
var import_utc3 = __toESM(require_utc(), 1);
|
|
808617
809031
|
var import_fs25 = require("fs");
|
|
@@ -808623,7 +809037,7 @@ init_lodash();
|
|
|
808623
809037
|
// ../docs-resolver/lib/ApiReferenceNodeConverter.js
|
|
808624
809038
|
init_lib4();
|
|
808625
809039
|
init_js();
|
|
808626
|
-
|
|
809040
|
+
init_lib7();
|
|
808627
809041
|
|
|
808628
809042
|
// ../../../node_modules/.pnpm/@fern-api+ui-core-utils@0.145.12-b50d999d1/node_modules/@fern-api/ui-core-utils/dist/assertNever.js
|
|
808629
809043
|
function assertNever4(x5) {
|
|
@@ -808931,7 +809345,7 @@ function getBasePath(environment2) {
|
|
|
808931
809345
|
|
|
808932
809346
|
// ../docs-resolver/lib/ChangelogNodeConverter.js
|
|
808933
809347
|
init_js();
|
|
808934
|
-
|
|
809348
|
+
init_lib7();
|
|
808935
809349
|
var import_dayjs2 = __toESM(require_dayjs_min(), 1);
|
|
808936
809350
|
var import_utc2 = __toESM(require_utc(), 1);
|
|
808937
809351
|
init_lodash();
|
|
@@ -811096,7 +811510,7 @@ init_js();
|
|
|
811096
811510
|
init_lodash();
|
|
811097
811511
|
|
|
811098
811512
|
// ../docs-resolver/lib/utils/toRelativeFilepath.js
|
|
811099
|
-
|
|
811513
|
+
init_lib7();
|
|
811100
811514
|
function toRelativeFilepath(docsWorkspace, filepath) {
|
|
811101
811515
|
if (filepath == null) {
|
|
811102
811516
|
return void 0;
|
|
@@ -813092,7 +813506,7 @@ var SpinnerStatusCoordinator = class _SpinnerStatusCoordinator {
|
|
|
813092
813506
|
};
|
|
813093
813507
|
|
|
813094
813508
|
// ../register/lib/ai-example-enhancer/validateAiExamples.js
|
|
813095
|
-
|
|
813509
|
+
init_lib7();
|
|
813096
813510
|
var import_promises61 = require("fs/promises");
|
|
813097
813511
|
init_js_yaml();
|
|
813098
813512
|
async function parseAiExamplesOverride(sourceFilePath, context3) {
|
|
@@ -813251,7 +813665,7 @@ async function removeInvalidAiExamples({ sourceFilePath, context: context3 }) {
|
|
|
813251
813665
|
}
|
|
813252
813666
|
|
|
813253
813667
|
// ../register/lib/ai-example-enhancer/writeAiExamplesOverride.js
|
|
813254
|
-
|
|
813668
|
+
init_lib7();
|
|
813255
813669
|
var import_promises62 = require("fs/promises");
|
|
813256
813670
|
init_js_yaml();
|
|
813257
813671
|
async function loadExistingOverrideCoverage(sourceFilePath, context3) {
|
|
@@ -816503,7 +816917,7 @@ async function collectIconsFromNavigationItem({ item, filepaths }) {
|
|
|
816503
816917
|
}
|
|
816504
816918
|
|
|
816505
816919
|
// ../docs-resolver/lib/utils/resolveDescriptionLinks.js
|
|
816506
|
-
|
|
816920
|
+
init_lib40();
|
|
816507
816921
|
function resolveLinksInMarkdownString(markdown, markdownFilesToPathName, metadata) {
|
|
816508
816922
|
return markdown.replace(/\[([^\]]*)\]\(([^)]+\.mdx?(?:#[^)]*)?)\)/g, (match3, text9, fullHref) => {
|
|
816509
816923
|
const hashIndex = fullHref.indexOf("#");
|
|
@@ -818382,7 +818796,7 @@ function convertAvailability5(availability) {
|
|
|
818382
818796
|
}
|
|
818383
818797
|
|
|
818384
818798
|
// ../docs-resolver/lib/stitchGlobalTheme.js
|
|
818385
|
-
|
|
818799
|
+
init_lib7();
|
|
818386
818800
|
var import_promises65 = require("fs/promises");
|
|
818387
818801
|
var import_mime_types = __toESM(require_mime_types(), 1);
|
|
818388
818802
|
var import_path54 = __toESM(require("path"), 1);
|
|
@@ -820755,7 +821169,7 @@ async function validateVersionConfigFileSchema({ value: value2 }) {
|
|
|
820755
821169
|
|
|
820756
821170
|
// ../yaml/docs-validator/lib/docsAst/visitDocsConfigFileYamlAst.js
|
|
820757
821171
|
init_lib4();
|
|
820758
|
-
|
|
821172
|
+
init_lib7();
|
|
820759
821173
|
var import_promises67 = require("fs/promises");
|
|
820760
821174
|
init_js_yaml();
|
|
820761
821175
|
|
|
@@ -822821,7 +823235,7 @@ async function validateProductConfigFileSchema({ value: value2 }) {
|
|
|
822821
823235
|
}
|
|
822822
823236
|
|
|
822823
823237
|
// ../yaml/docs-validator/lib/docsAst/visitFilepath.js
|
|
822824
|
-
|
|
823238
|
+
init_lib7();
|
|
822825
823239
|
async function visitFilepath({ absoluteFilepathToConfiguration, rawUnresolvedFilepath, visitor, nodePath, willBeUploaded = true }) {
|
|
822826
823240
|
const absoluteFilepath = resolve6(dirname6(absoluteFilepathToConfiguration), rawUnresolvedFilepath);
|
|
822827
823241
|
await visitor.filepath?.(
|
|
@@ -822837,8 +823251,8 @@ async function visitFilepath({ absoluteFilepathToConfiguration, rawUnresolvedFil
|
|
|
822837
823251
|
|
|
822838
823252
|
// ../yaml/docs-validator/lib/docsAst/visitNavigationAst.js
|
|
822839
823253
|
init_lib4();
|
|
822840
|
-
|
|
822841
|
-
|
|
823254
|
+
init_lib40();
|
|
823255
|
+
init_lib7();
|
|
822842
823256
|
var import_promises66 = require("fs/promises");
|
|
822843
823257
|
|
|
822844
823258
|
// ../yaml/docs-validator/lib/utils/asyncPool.js
|
|
@@ -823628,7 +824042,7 @@ var AllRolesMustBeDeclaredRule = {
|
|
|
823628
824042
|
};
|
|
823629
824043
|
|
|
823630
824044
|
// ../yaml/docs-validator/lib/rules/filepaths-exist/filepaths-exist.js
|
|
823631
|
-
|
|
824045
|
+
init_lib7();
|
|
823632
824046
|
var FilepathsExistRule = {
|
|
823633
824047
|
name: "filepaths-exist",
|
|
823634
824048
|
create: () => {
|
|
@@ -823651,6 +824065,7 @@ var FilepathsExistRule = {
|
|
|
823651
824065
|
// ../yaml/docs-validator/lib/rules/missing-redirects/missing-redirects.js
|
|
823652
824066
|
init_lib4();
|
|
823653
824067
|
init_js();
|
|
824068
|
+
init_lib5();
|
|
823654
824069
|
|
|
823655
824070
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/url-utils.js
|
|
823656
824071
|
function stripAnchorsAndSearchParams(pathnameWithAnchorsOrSearchParams) {
|
|
@@ -824468,7 +824883,7 @@ function tabbedNavigationItemHasVariants4(item) {
|
|
|
824468
824883
|
}
|
|
824469
824884
|
|
|
824470
824885
|
// ../yaml/docs-validator/lib/rules/translation-directories-exist/translation-directories-exist.js
|
|
824471
|
-
|
|
824886
|
+
init_lib7();
|
|
824472
824887
|
var TranslationDirectoriesExistRule = {
|
|
824473
824888
|
name: "translation-directories-exist",
|
|
824474
824889
|
create: ({ workspace }) => {
|
|
@@ -824750,7 +825165,7 @@ function validEndpoint(endpoint3) {
|
|
|
824750
825165
|
}
|
|
824751
825166
|
|
|
824752
825167
|
// ../yaml/docs-validator/lib/rules/valid-file-types/valid-file-types.js
|
|
824753
|
-
|
|
825168
|
+
init_lib7();
|
|
824754
825169
|
var import_chardet2 = __toESM(require_lib9(), 1);
|
|
824755
825170
|
|
|
824756
825171
|
// ../../../node_modules/.pnpm/file-type@21.3.4/node_modules/file-type/index.js
|
|
@@ -828823,8 +829238,8 @@ var ValidFrontmatter = {
|
|
|
828823
829238
|
|
|
828824
829239
|
// ../yaml/docs-validator/lib/rules/valid-markdown/valid-markdown.js
|
|
828825
829240
|
init_lib4();
|
|
828826
|
-
|
|
828827
|
-
|
|
829241
|
+
init_lib40();
|
|
829242
|
+
init_lib7();
|
|
828828
829243
|
|
|
828829
829244
|
// ../../../node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.js
|
|
828830
829245
|
init_vfile_message();
|
|
@@ -845615,8 +846030,8 @@ async function parseMarkdown({ markdown, absoluteFilepath, absolutePathToFernFol
|
|
|
845615
846030
|
}
|
|
845616
846031
|
|
|
845617
846032
|
// ../yaml/docs-validator/lib/rules/valid-markdown-file-reference/valid-markdown-file-reference.js
|
|
845618
|
-
|
|
845619
|
-
|
|
846033
|
+
init_lib40();
|
|
846034
|
+
init_lib7();
|
|
845620
846035
|
var import_promises73 = require("fs/promises");
|
|
845621
846036
|
var import_gray_matter8 = __toESM(require_gray_matter(), 1);
|
|
845622
846037
|
init_unist_util_visit();
|
|
@@ -845666,14 +846081,15 @@ var ValidMarkdownFileReferences = {
|
|
|
845666
846081
|
|
|
845667
846082
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/valid-markdown-link.js
|
|
845668
846083
|
init_lib4();
|
|
845669
|
-
|
|
846084
|
+
init_lib40();
|
|
845670
846085
|
init_js();
|
|
845671
|
-
|
|
846086
|
+
init_lib7();
|
|
846087
|
+
init_lib5();
|
|
845672
846088
|
var import_crypto7 = require("crypto");
|
|
845673
846089
|
var import_path56 = __toESM(require("path"), 1);
|
|
845674
846090
|
|
|
845675
846091
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
|
|
845676
|
-
|
|
846092
|
+
init_lib7();
|
|
845677
846093
|
|
|
845678
846094
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/redirect-for-path.js
|
|
845679
846095
|
var import_url_join22 = __toESM(require_url_join(), 1);
|
|
@@ -845841,8 +846257,8 @@ function isExternalUrl2(path107) {
|
|
|
845841
846257
|
|
|
845842
846258
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/collect-links.js
|
|
845843
846259
|
var import_node_fs14 = require("fs");
|
|
845844
|
-
|
|
845845
|
-
|
|
846260
|
+
init_lib40();
|
|
846261
|
+
init_lib7();
|
|
845846
846262
|
init_src();
|
|
845847
846263
|
init_unist_util_visit();
|
|
845848
846264
|
var MDX_NODE_TYPES = [
|
|
@@ -846669,10 +847085,10 @@ var ValidateVersionFileRule = {
|
|
|
846669
847085
|
|
|
846670
847086
|
// ../yaml/docs-validator/lib/validateDocsWorkspace.js
|
|
846671
847087
|
init_lib4();
|
|
846672
|
-
|
|
847088
|
+
init_lib7();
|
|
846673
847089
|
|
|
846674
847090
|
// ../yaml/docs-validator/lib/createDocsConfigFileAstVisitorForRules.js
|
|
846675
|
-
|
|
847091
|
+
init_lib7();
|
|
846676
847092
|
function createDocsConfigFileAstVisitorForRules({ relativeFilepath, allRulesWithVisitors, severityOverrides, addViolations }) {
|
|
846677
847093
|
function createAstNodeVisitor(nodeType) {
|
|
846678
847094
|
const visit5 = async (node4, nodePath) => {
|
|
@@ -846705,7 +847121,7 @@ function createDocsConfigFileAstVisitorForRules({ relativeFilepath, allRulesWith
|
|
|
846705
847121
|
}
|
|
846706
847122
|
|
|
846707
847123
|
// ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
|
|
846708
|
-
|
|
847124
|
+
init_lib7();
|
|
846709
847125
|
var import_promises75 = require("fs/promises");
|
|
846710
847126
|
var NoNonComponentRefsRule = {
|
|
846711
847127
|
name: "no-non-component-refs",
|
|
@@ -846761,7 +847177,7 @@ var NoNonComponentRefsRule = {
|
|
|
846761
847177
|
};
|
|
846762
847178
|
|
|
846763
847179
|
// ../yaml/docs-validator/lib/rules/no-openapi-v2-in-docs/no-openapi-v2-in-docs.js
|
|
846764
|
-
|
|
847180
|
+
init_lib7();
|
|
846765
847181
|
var import_promises76 = require("fs/promises");
|
|
846766
847182
|
var NoOpenApiV2InDocsRule = {
|
|
846767
847183
|
name: "no-openapi-v2-in-docs",
|
|
@@ -846900,7 +847316,7 @@ var ValidInstanceUrlRule = {
|
|
|
846900
847316
|
};
|
|
846901
847317
|
|
|
846902
847318
|
// ../yaml/docs-validator/lib/rules/valid-local-references/valid-local-references.js
|
|
846903
|
-
|
|
847319
|
+
init_lib7();
|
|
846904
847320
|
var import_promises77 = require("fs/promises");
|
|
846905
847321
|
init_js_yaml();
|
|
846906
847322
|
function validateReference(ref2, spec) {
|
|
@@ -847023,7 +847439,7 @@ var ValidLocalReferencesRule = {
|
|
|
847023
847439
|
};
|
|
847024
847440
|
|
|
847025
847441
|
// ../yaml/docs-validator/lib/rules/valid-openapi-examples/valid-openapi-examples.js
|
|
847026
|
-
|
|
847442
|
+
init_lib7();
|
|
847027
847443
|
var import_promises78 = require("fs/promises");
|
|
847028
847444
|
init_js_yaml();
|
|
847029
847445
|
var ValidOpenApiExamples = {
|
|
@@ -847405,7 +847821,7 @@ async function runRulesOnDocsWorkspace({ workspace, rules: selectedRules, contex
|
|
|
847405
847821
|
}
|
|
847406
847822
|
|
|
847407
847823
|
// ../cli-v2/lib/docs/adapter/LegacyDocsWorkspaceAdapter.js
|
|
847408
|
-
|
|
847824
|
+
init_lib7();
|
|
847409
847825
|
var LegacyDocsWorkspaceAdapter = class {
|
|
847410
847826
|
adapt({ docsConfig, absoluteFilePath }) {
|
|
847411
847827
|
const docsFilePath = docsConfig.absoluteFilePath ?? absoluteFilePath;
|
|
@@ -847773,7 +848189,7 @@ var MdxParseValidator = class {
|
|
|
847773
848189
|
navigation: parsedConfig.navigation
|
|
847774
848190
|
});
|
|
847775
848191
|
const filesToCheck = Array.from(new Set(allPages));
|
|
847776
|
-
const { parseMarkdownToTree: parseMarkdownToTree2 } = await Promise.resolve().then(() => (
|
|
848192
|
+
const { parseMarkdownToTree: parseMarkdownToTree2 } = await Promise.resolve().then(() => (init_lib40(), lib_exports10));
|
|
847777
848193
|
const errorOrNulls = await Promise.all(filesToCheck.map(async (filepath) => {
|
|
847778
848194
|
const content5 = await (0, import_promises79.readFile)(filepath, "utf-8");
|
|
847779
848195
|
try {
|
|
@@ -849120,12 +849536,12 @@ function addAiCommand(cli) {
|
|
|
849120
849536
|
}
|
|
849121
849537
|
|
|
849122
849538
|
// ../cli-v2/lib/migrator/Migrator.js
|
|
849123
|
-
|
|
849539
|
+
init_lib7();
|
|
849124
849540
|
var import_promises85 = require("fs/promises");
|
|
849125
849541
|
init_js_yaml();
|
|
849126
849542
|
|
|
849127
849543
|
// ../cli-v2/lib/migrator/converters/convertApiSpecs.js
|
|
849128
|
-
|
|
849544
|
+
init_lib7();
|
|
849129
849545
|
var import_promises81 = require("fs/promises");
|
|
849130
849546
|
|
|
849131
849547
|
// ../cli-v2/lib/migrator/converters/convertSettings.js
|
|
@@ -850079,7 +850495,7 @@ function convertRawReadme(readme) {
|
|
|
850079
850495
|
}
|
|
850080
850496
|
|
|
850081
850497
|
// ../cli-v2/lib/migrator/docs-yml/DocsYmlMigrator.js
|
|
850082
|
-
|
|
850498
|
+
init_lib7();
|
|
850083
850499
|
async function migrateDocsYml(fernDir) {
|
|
850084
850500
|
const filePath = join8(fernDir, RelativeFilePath2.of(DOCS_CONFIGURATION_FILENAME));
|
|
850085
850501
|
if (!await doesPathExist(filePath, "file")) {
|
|
@@ -850090,7 +850506,7 @@ async function migrateDocsYml(fernDir) {
|
|
|
850090
850506
|
|
|
850091
850507
|
// ../cli-v2/lib/migrator/fern-config-json/FernConfigJsonMigrator.js
|
|
850092
850508
|
init_lib4();
|
|
850093
|
-
|
|
850509
|
+
init_lib7();
|
|
850094
850510
|
var import_promises82 = require("fs/promises");
|
|
850095
850511
|
var FernConfigJsonMigrator = class {
|
|
850096
850512
|
cwd;
|
|
@@ -850162,7 +850578,7 @@ var FernConfigJsonMigrator = class {
|
|
|
850162
850578
|
|
|
850163
850579
|
// ../cli-v2/lib/migrator/generators-yml/GeneratorsYmlMigrator.js
|
|
850164
850580
|
init_lib4();
|
|
850165
|
-
|
|
850581
|
+
init_lib7();
|
|
850166
850582
|
var import_promises83 = require("fs/promises");
|
|
850167
850583
|
init_js_yaml();
|
|
850168
850584
|
var GeneratorsYmlMigrator = class {
|
|
@@ -850340,7 +850756,7 @@ var GeneratorsYmlMigrator = class {
|
|
|
850340
850756
|
};
|
|
850341
850757
|
|
|
850342
850758
|
// ../cli-v2/lib/migrator/github-workflows/GithubWorkflowMigrator.js
|
|
850343
|
-
|
|
850759
|
+
init_lib7();
|
|
850344
850760
|
var import_promises84 = require("fs/promises");
|
|
850345
850761
|
var WORKFLOWS_DIR = ".github/workflows";
|
|
850346
850762
|
async function migrateGithubWorkflows(cwd2) {
|
|
@@ -850815,6 +851231,9 @@ function addCheckCommand3(cli) {
|
|
|
850815
851231
|
}));
|
|
850816
851232
|
}
|
|
850817
851233
|
|
|
851234
|
+
// ../cli-v2/lib/commands/docs/dev/command.js
|
|
851235
|
+
init_lib5();
|
|
851236
|
+
|
|
850818
851237
|
// ../../../node_modules/.pnpm/get-port@7.2.0/node_modules/get-port/index.js
|
|
850819
851238
|
var import_node_net = __toESM(require("net"), 1);
|
|
850820
851239
|
var import_node_os3 = __toESM(require("os"), 1);
|
|
@@ -850981,8 +851400,8 @@ function buildPreviewDomain({ orgId, previewId }) {
|
|
|
850981
851400
|
// ../docs-preview/lib/runAppPreviewServer.js
|
|
850982
851401
|
init_lib4();
|
|
850983
851402
|
init_js();
|
|
850984
|
-
|
|
850985
|
-
|
|
851403
|
+
init_lib7();
|
|
851404
|
+
init_lib11();
|
|
850986
851405
|
var import_child_process7 = require("child_process");
|
|
850987
851406
|
var import_cors = __toESM(require_lib14(), 1);
|
|
850988
851407
|
var import_express3 = __toESM(require_express3(), 1);
|
|
@@ -852659,7 +853078,7 @@ var watcher_default = Watcher;
|
|
|
852659
853078
|
init_wrapper();
|
|
852660
853079
|
|
|
852661
853080
|
// ../docs-preview/lib/DebugLogger.js
|
|
852662
|
-
|
|
853081
|
+
init_lib7();
|
|
852663
853082
|
var import_promises86 = require("fs/promises");
|
|
852664
853083
|
var import_os9 = require("os");
|
|
852665
853084
|
var import_path62 = __toESM(require("path"), 1);
|
|
@@ -852667,7 +853086,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
852667
853086
|
var LOGS_FOLDER_NAME = "logs";
|
|
852668
853087
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
852669
853088
|
function getCliSource() {
|
|
852670
|
-
const version7 = "5.
|
|
853089
|
+
const version7 = "5.23.0";
|
|
852671
853090
|
return `cli@${version7}`;
|
|
852672
853091
|
}
|
|
852673
853092
|
var DebugLogger = class {
|
|
@@ -853002,8 +853421,8 @@ function getBun() {
|
|
|
853002
853421
|
}
|
|
853003
853422
|
|
|
853004
853423
|
// ../docs-preview/lib/downloadLocalDocsBundle.js
|
|
853005
|
-
|
|
853006
|
-
|
|
853424
|
+
init_lib7();
|
|
853425
|
+
init_lib11();
|
|
853007
853426
|
var import_child_process6 = require("child_process");
|
|
853008
853427
|
var import_cli_progress = __toESM(require_cli_progress(), 1);
|
|
853009
853428
|
var import_decompress = __toESM(require_decompress(), 1);
|
|
@@ -853608,9 +854027,9 @@ function writeNodePolyfillScript(dir) {
|
|
|
853608
854027
|
|
|
853609
854028
|
// ../docs-preview/lib/previewDocs.js
|
|
853610
854029
|
init_lib4();
|
|
853611
|
-
|
|
854030
|
+
init_lib40();
|
|
853612
854031
|
init_js();
|
|
853613
|
-
|
|
854032
|
+
init_lib7();
|
|
853614
854033
|
var import_promises88 = require("fs/promises");
|
|
853615
854034
|
var import_gray_matter9 = __toESM(require_gray_matter(), 1);
|
|
853616
854035
|
var frontmatterPositionCache = /* @__PURE__ */ new Map();
|
|
@@ -854912,7 +855331,7 @@ ${err.stack}`);
|
|
|
854912
855331
|
|
|
854913
855332
|
// ../docs-preview/lib/runPreviewServer.js
|
|
854914
855333
|
init_js();
|
|
854915
|
-
|
|
855334
|
+
init_lib7();
|
|
854916
855335
|
var import_cors2 = __toESM(require_lib14(), 1);
|
|
854917
855336
|
var import_express4 = __toESM(require_express3(), 1);
|
|
854918
855337
|
var import_promises90 = require("fs/promises");
|
|
@@ -855686,6 +856105,7 @@ function extractPublishTarget(packages) {
|
|
|
855686
856105
|
|
|
855687
856106
|
// ../workspace/api-workspace-validator/lib/logViolations.js
|
|
855688
856107
|
init_lib4();
|
|
856108
|
+
init_lib5();
|
|
855689
856109
|
init_lodash();
|
|
855690
856110
|
function logViolations({ context: context3, violations, logWarnings, logSummary = true, logBreadcrumbs = true, elapsedMillis = 0 }) {
|
|
855691
856111
|
const deduplicatedViolations = [];
|
|
@@ -855842,7 +856262,7 @@ function getViolationStats(violations) {
|
|
|
855842
856262
|
}
|
|
855843
856263
|
|
|
855844
856264
|
// ../yaml/generators-validator/lib/validateGeneratorsWorkspace.js
|
|
855845
|
-
|
|
856265
|
+
init_lib7();
|
|
855846
856266
|
|
|
855847
856267
|
// ../yaml/generators-validator/lib/ast/visitGeneratorsYamlAst.js
|
|
855848
856268
|
init_lib4();
|
|
@@ -856229,13 +856649,13 @@ function parseIssue(issue2) {
|
|
|
856229
856649
|
}
|
|
856230
856650
|
|
|
856231
856651
|
// ../workspace/loader/lib/loadAPIWorkspace.js
|
|
856232
|
-
|
|
856652
|
+
init_lib7();
|
|
856233
856653
|
|
|
856234
856654
|
// ../workspace/loader/lib/loadAPIChangelog.js
|
|
856235
|
-
|
|
856655
|
+
init_lib7();
|
|
856236
856656
|
|
|
856237
856657
|
// ../workspace/loader/lib/listFernFiles.js
|
|
856238
|
-
|
|
856658
|
+
init_lib7();
|
|
856239
856659
|
var import_promises92 = require("fs/promises");
|
|
856240
856660
|
async function listFernFiles2(root6, extensionGlob) {
|
|
856241
856661
|
const files = [];
|
|
@@ -856557,7 +856977,7 @@ async function loadAPIWorkspace({ absolutePathToWorkspace, context: context3, cl
|
|
|
856557
856977
|
|
|
856558
856978
|
// ../workspace/loader/lib/loadDocsWorkspace.js
|
|
856559
856979
|
init_lib4();
|
|
856560
|
-
|
|
856980
|
+
init_lib7();
|
|
856561
856981
|
var import_promises93 = require("fs/promises");
|
|
856562
856982
|
init_js_yaml();
|
|
856563
856983
|
|
|
@@ -862747,7 +863167,7 @@ ${result.error?.message ?? "Unknown error"}`,
|
|
|
862747
863167
|
}
|
|
862748
863168
|
|
|
862749
863169
|
// ../generation/remote-generation/remote-workspace-runner/lib/downloadSnippetsForTask.js
|
|
862750
|
-
|
|
863170
|
+
init_lib7();
|
|
862751
863171
|
var import_fs30 = require("fs");
|
|
862752
863172
|
var import_promises94 = require("fs/promises");
|
|
862753
863173
|
var import_promises95 = require("stream/promises");
|
|
@@ -862774,7 +863194,7 @@ async function downloadFileForTask({ s3PreSignedReadUrl, absolutePathToLocalOutp
|
|
|
862774
863194
|
}
|
|
862775
863195
|
|
|
862776
863196
|
// ../generation/remote-generation/remote-workspace-runner/lib/resolveAutoDiscoveredFernignorePath.js
|
|
862777
|
-
|
|
863197
|
+
init_lib7();
|
|
862778
863198
|
async function resolveAutoDiscoveredFernignorePath({ generatorInvocation, context: context3 }) {
|
|
862779
863199
|
if (generatorInvocation.absolutePathToLocalOutput == null) {
|
|
862780
863200
|
return void 0;
|
|
@@ -862793,7 +863213,7 @@ init_js();
|
|
|
862793
863213
|
var import_autoversion = __toESM(require_autoversion(), 1);
|
|
862794
863214
|
|
|
862795
863215
|
// ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
|
|
862796
|
-
|
|
863216
|
+
init_lib7();
|
|
862797
863217
|
var import_form_data4 = __toESM(require_form_data(), 1);
|
|
862798
863218
|
var import_promises96 = require("fs/promises");
|
|
862799
863219
|
init_js_yaml();
|
|
@@ -863140,13 +863560,14 @@ function pollJobAndReportStatus({ job, taskId, taskHandler, context: context3 })
|
|
|
863140
863560
|
|
|
863141
863561
|
// ../generation/remote-generation/remote-workspace-runner/lib/RemoteTaskHandler.js
|
|
863142
863562
|
init_lib4();
|
|
863143
|
-
|
|
863563
|
+
init_lib7();
|
|
863144
863564
|
var import_pipeline = __toESM(require_pipeline2(), 1);
|
|
863145
|
-
|
|
863565
|
+
init_lib5();
|
|
863566
|
+
init_lib11();
|
|
863146
863567
|
var import_fs31 = require("fs");
|
|
863147
|
-
var
|
|
863568
|
+
var import_promises98 = require("fs/promises");
|
|
863148
863569
|
var import_path67 = __toESM(require("path"), 1);
|
|
863149
|
-
var
|
|
863570
|
+
var import_promises99 = require("stream/promises");
|
|
863150
863571
|
|
|
863151
863572
|
// ../../../node_modules/.pnpm/terminal-link@3.0.0/node_modules/terminal-link/index.js
|
|
863152
863573
|
var import_supports_hyperlinks = __toESM(require_supports_hyperlinks(), 1);
|
|
@@ -863164,7 +863585,7 @@ terminalLink.stderr = (text9, url3, options2 = {}) => terminalLink(text9, url3,
|
|
|
863164
863585
|
terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
863165
863586
|
|
|
863166
863587
|
// ../generation/remote-generation/remote-workspace-runner/lib/RemoteTaskHandler.js
|
|
863167
|
-
var
|
|
863588
|
+
var import_tmp_promise11 = __toESM(require_tmp_promise(), 1);
|
|
863168
863589
|
var import_yauzl = __toESM(require_yauzl(), 1);
|
|
863169
863590
|
var FIDDLE_PIPELINE_RESULT_LOG_REGEX = /^Pipeline: raw result \(\d+ bytes\): (\{.*\})$/;
|
|
863170
863591
|
var RemoteTaskHandler = class {
|
|
@@ -863457,11 +863878,11 @@ async function downloadZipForTask({ s3PreSignedReadUrl, absolutePathToLocalOutpu
|
|
|
863457
863878
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
863458
863879
|
responseType: "stream"
|
|
863459
863880
|
});
|
|
863460
|
-
const tmpDir = await
|
|
863881
|
+
const tmpDir = await import_tmp_promise11.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
863461
863882
|
const outputZipPath = import_path67.default.join(tmpDir.path, "output.zip");
|
|
863462
|
-
await (0,
|
|
863883
|
+
await (0, import_promises99.pipeline)(request7.data, (0, import_fs31.createWriteStream)(outputZipPath));
|
|
863463
863884
|
await forceRemoveDirectory(absolutePathToLocalOutput);
|
|
863464
|
-
await (0,
|
|
863885
|
+
await (0, import_promises98.mkdir)(absolutePathToLocalOutput, { recursive: true });
|
|
863465
863886
|
await extractZipToDirectory(outputZipPath, absolutePathToLocalOutput);
|
|
863466
863887
|
}
|
|
863467
863888
|
async function forceRemoveDirectory(dirPath) {
|
|
@@ -863469,22 +863890,22 @@ async function forceRemoveDirectory(dirPath) {
|
|
|
863469
863890
|
return;
|
|
863470
863891
|
}
|
|
863471
863892
|
await makeWritableRecursive(dirPath);
|
|
863472
|
-
await (0,
|
|
863893
|
+
await (0, import_promises98.rm)(dirPath, { recursive: true, force: true });
|
|
863473
863894
|
}
|
|
863474
863895
|
async function makeWritableRecursive(dirPath) {
|
|
863475
863896
|
try {
|
|
863476
|
-
const entries24 = await (0,
|
|
863897
|
+
const entries24 = await (0, import_promises98.readdir)(dirPath, { withFileTypes: true });
|
|
863477
863898
|
for (const entry of entries24) {
|
|
863478
863899
|
const fullPath = AbsoluteFilePath2.of(import_path67.default.join(dirPath, entry.name));
|
|
863479
863900
|
if (entry.isDirectory()) {
|
|
863480
863901
|
await makeWritableRecursive(fullPath);
|
|
863481
863902
|
}
|
|
863482
863903
|
try {
|
|
863483
|
-
await (0,
|
|
863904
|
+
await (0, import_promises98.chmod)(fullPath, 493);
|
|
863484
863905
|
} catch {
|
|
863485
863906
|
}
|
|
863486
863907
|
}
|
|
863487
|
-
await (0,
|
|
863908
|
+
await (0, import_promises98.chmod)(dirPath, 493);
|
|
863488
863909
|
} catch {
|
|
863489
863910
|
}
|
|
863490
863911
|
}
|
|
@@ -863527,10 +863948,10 @@ async function downloadFilesWithFernIgnoreInExistingRepo({ s3PreSignedReadUrl, a
|
|
|
863527
863948
|
await runGitCommand(["restore", "."], absolutePathToLocalOutput, context3);
|
|
863528
863949
|
}
|
|
863529
863950
|
async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absolutePathToLocalOutput, context: context3 }) {
|
|
863530
|
-
const tmpOutputResolutionDir = AbsoluteFilePath2.of((await
|
|
863951
|
+
const tmpOutputResolutionDir = AbsoluteFilePath2.of((await import_tmp_promise11.default.dir({})).path);
|
|
863531
863952
|
const absolutePathToFernignore = join8(absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME));
|
|
863532
863953
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
863533
|
-
await (0,
|
|
863954
|
+
await (0, import_promises98.cp)(absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
863534
863955
|
await runGitCommand(["init"], tmpOutputResolutionDir, context3);
|
|
863535
863956
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context3);
|
|
863536
863957
|
await runGitCommand([
|
|
@@ -863553,15 +863974,15 @@ async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absol
|
|
|
863553
863974
|
await runGitCommand(["restore", "."], tmpOutputResolutionDir, context3);
|
|
863554
863975
|
await forceRemoveDirectory(join8(tmpOutputResolutionDir, RelativeFilePath2.of(".git")));
|
|
863555
863976
|
await forceRemoveDirectory(absolutePathToLocalOutput);
|
|
863556
|
-
await (0,
|
|
863977
|
+
await (0, import_promises98.cp)(tmpOutputResolutionDir, absolutePathToLocalOutput, { recursive: true });
|
|
863557
863978
|
}
|
|
863558
863979
|
async function downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath }) {
|
|
863559
863980
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
863560
863981
|
responseType: "stream"
|
|
863561
863982
|
});
|
|
863562
|
-
const tmpDir = await
|
|
863983
|
+
const tmpDir = await import_tmp_promise11.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
863563
863984
|
const outputZipPath = import_path67.default.join(tmpDir.path, "output.zip");
|
|
863564
|
-
await (0,
|
|
863985
|
+
await (0, import_promises99.pipeline)(request7.data, (0, import_fs31.createWriteStream)(outputZipPath));
|
|
863565
863986
|
await extractZipToDirectory(outputZipPath, outputPath);
|
|
863566
863987
|
}
|
|
863567
863988
|
async function extractZipToDirectory(zipPath, outputDir) {
|
|
@@ -863576,10 +863997,10 @@ async function extractZipToDirectory(zipPath, outputDir) {
|
|
|
863576
863997
|
zipFile.on("entry", (entry) => {
|
|
863577
863998
|
const outputPath = import_path67.default.join(outputDir, entry.fileName);
|
|
863578
863999
|
if (entry.fileName.endsWith("/")) {
|
|
863579
|
-
(0,
|
|
864000
|
+
(0, import_promises98.mkdir)(outputPath, { recursive: true }).then(() => zipFile.readEntry()).catch(reject);
|
|
863580
864001
|
return;
|
|
863581
864002
|
}
|
|
863582
|
-
(0,
|
|
864003
|
+
(0, import_promises98.mkdir)(import_path67.default.dirname(outputPath), { recursive: true }).then(() => {
|
|
863583
864004
|
zipFile.openReadStream(entry, (streamErr, readStream2) => {
|
|
863584
864005
|
if (streamErr || !readStream2) {
|
|
863585
864006
|
reject(streamErr ?? new Error("Failed to open read stream"));
|
|
@@ -863595,10 +864016,10 @@ async function extractZipToDirectory(zipPath, outputDir) {
|
|
|
863595
864016
|
}
|
|
863596
864017
|
|
|
863597
864018
|
// ../generation/remote-generation/remote-workspace-runner/lib/SourceUploader.js
|
|
863598
|
-
|
|
863599
|
-
|
|
863600
|
-
var
|
|
863601
|
-
var
|
|
864019
|
+
init_lib7();
|
|
864020
|
+
init_lib11();
|
|
864021
|
+
var import_promises100 = require("fs/promises");
|
|
864022
|
+
var import_tmp_promise12 = __toESM(require_tmp_promise(), 1);
|
|
863602
864023
|
var PROTOBUF_ZIP_FILENAME = "proto.zip";
|
|
863603
864024
|
var SourceUploader = class {
|
|
863604
864025
|
sourceTypes;
|
|
@@ -863618,7 +864039,7 @@ var SourceUploader = class {
|
|
|
863618
864039
|
}
|
|
863619
864040
|
async uploadSource(source2, uploadURL) {
|
|
863620
864041
|
const uploadCommand = await this.getUploadCommand(source2);
|
|
863621
|
-
const fileData = await (0,
|
|
864042
|
+
const fileData = await (0, import_promises100.readFile)(uploadCommand.absoluteFilePath);
|
|
863622
864043
|
const response = await fetch(uploadURL, {
|
|
863623
864044
|
method: "PUT",
|
|
863624
864045
|
body: fileData,
|
|
@@ -863638,7 +864059,7 @@ var SourceUploader = class {
|
|
|
863638
864059
|
absoluteFilePath,
|
|
863639
864060
|
cleanup: async () => {
|
|
863640
864061
|
this.context.logger.debug(`Removing ${absoluteFilePath}`);
|
|
863641
|
-
await (0,
|
|
864062
|
+
await (0, import_promises100.unlink)(absoluteFilePath);
|
|
863642
864063
|
}
|
|
863643
864064
|
};
|
|
863644
864065
|
}
|
|
@@ -863649,7 +864070,7 @@ var SourceUploader = class {
|
|
|
863649
864070
|
};
|
|
863650
864071
|
}
|
|
863651
864072
|
async zipSource(absolutePathToSource) {
|
|
863652
|
-
const tmpDir = await
|
|
864073
|
+
const tmpDir = await import_tmp_promise12.default.dir();
|
|
863653
864074
|
const destination = join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of(PROTOBUF_ZIP_FILENAME));
|
|
863654
864075
|
this.context.logger.debug(`Zipping source ${absolutePathToSource} into ${destination}`);
|
|
863655
864076
|
await loggingExeca(this.context.logger, "zip", ["-r", destination, "."], {
|
|
@@ -864232,9 +864653,9 @@ init_lib4();
|
|
|
864232
864653
|
// ../generation/remote-generation/remote-workspace-runner/lib/publishDocs.js
|
|
864233
864654
|
init_lib4();
|
|
864234
864655
|
init_js();
|
|
864235
|
-
|
|
864656
|
+
init_lib7();
|
|
864236
864657
|
var import_crypto8 = require("crypto");
|
|
864237
|
-
var
|
|
864658
|
+
var import_promises101 = require("fs/promises");
|
|
864238
864659
|
init_lodash();
|
|
864239
864660
|
var mime2 = __toESM(require_mime_types(), 1);
|
|
864240
864661
|
|
|
@@ -864313,7 +864734,7 @@ async function unlockDeploy({ fdrOrigin, token, domain: domain3, basepath }) {
|
|
|
864313
864734
|
}
|
|
864314
864735
|
}
|
|
864315
864736
|
async function calculateFileHash(absoluteFilePath) {
|
|
864316
|
-
const fileBuffer = await (0,
|
|
864737
|
+
const fileBuffer = await (0, import_promises101.readFile)(absoluteFilePath);
|
|
864317
864738
|
return (0, import_crypto8.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
|
|
864318
864739
|
}
|
|
864319
864740
|
function sanitizeRelativePathForS3(relativeFilePath) {
|
|
@@ -864649,13 +865070,13 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
864649
865070
|
};
|
|
864650
865071
|
const localeAwareMarkdownLoader = async (filepath) => {
|
|
864651
865072
|
const pathToRead = await resolveLocalePath(filepath);
|
|
864652
|
-
const raw = await (0,
|
|
865073
|
+
const raw = await (0, import_promises101.readFile)(pathToRead, "utf-8");
|
|
864653
865074
|
const fmMatch = raw.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);
|
|
864654
865075
|
return fmMatch != null ? raw.slice(fmMatch[0].length) : raw;
|
|
864655
865076
|
};
|
|
864656
865077
|
const localeAwareFileLoader = async (filepath) => {
|
|
864657
865078
|
const pathToRead = await resolveLocalePath(filepath);
|
|
864658
|
-
return (0,
|
|
865079
|
+
return (0, import_promises101.readFile)(pathToRead, "utf-8");
|
|
864659
865080
|
};
|
|
864660
865081
|
const translatedPageEntries = await Promise.all(Object.entries(localePages).map(async ([path107, rawMarkdown]) => {
|
|
864661
865082
|
try {
|
|
@@ -864822,7 +865243,7 @@ async function uploadFiles(filesToUpload, docsWorkspacePath, context3, batchSize
|
|
|
864822
865243
|
try {
|
|
864823
865244
|
const uploadUrl = extractUploadUrl(urlValue);
|
|
864824
865245
|
const mimeType = mime2.lookup(absoluteFilePath);
|
|
864825
|
-
await axios_default.put(uploadUrl, await (0,
|
|
865246
|
+
await axios_default.put(uploadUrl, await (0, import_promises101.readFile)(absoluteFilePath), {
|
|
864826
865247
|
headers: {
|
|
864827
865248
|
"Content-Type": mimeType === false ? "application/octet-stream" : mimeType,
|
|
864828
865249
|
// Set max cache control for S3 uploads
|
|
@@ -865480,7 +865901,7 @@ var LegacyDocsPublisher = class {
|
|
|
865480
865901
|
previewId,
|
|
865481
865902
|
disableTemplates: void 0,
|
|
865482
865903
|
skipUpload,
|
|
865483
|
-
cliVersion: "5.
|
|
865904
|
+
cliVersion: "5.23.0",
|
|
865484
865905
|
loginCommand: "fern auth login"
|
|
865485
865906
|
});
|
|
865486
865907
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -866450,8 +866871,8 @@ function addDocsCommand(cli) {
|
|
|
866450
866871
|
|
|
866451
866872
|
// ../cli-v2/lib/commands/init/command.js
|
|
866452
866873
|
init_lib4();
|
|
866453
|
-
|
|
866454
|
-
var
|
|
866874
|
+
init_lib7();
|
|
866875
|
+
var import_promises102 = require("fs/promises");
|
|
866455
866876
|
var import_path69 = __toESM(require("path"), 1);
|
|
866456
866877
|
|
|
866457
866878
|
// ../cli-v2/lib/config/fern-yml/FernYmlBuilder.js
|
|
@@ -866648,7 +867069,8 @@ components:
|
|
|
866648
867069
|
|
|
866649
867070
|
// ../cli-v2/lib/init/Wizard.js
|
|
866650
867071
|
init_lib4();
|
|
866651
|
-
|
|
867072
|
+
init_lib7();
|
|
867073
|
+
init_lib5();
|
|
866652
867074
|
var import_child_process8 = require("child_process");
|
|
866653
867075
|
var import_path68 = __toESM(require("path"), 1);
|
|
866654
867076
|
|
|
@@ -867330,7 +867752,7 @@ var InitCommand = class {
|
|
|
867330
867752
|
apiPath,
|
|
867331
867753
|
defaultGroup: result.defaultGroup
|
|
867332
867754
|
});
|
|
867333
|
-
await (0,
|
|
867755
|
+
await (0, import_promises102.writeFile)(fernYmlPath, fernYmlContent, "utf-8");
|
|
867334
867756
|
context3.stderr.info(`
|
|
867335
867757
|
${Icons.success} Created ${FERN_YML_FILENAME}`);
|
|
867336
867758
|
}
|
|
@@ -867352,9 +867774,9 @@ var InitCommand = class {
|
|
|
867352
867774
|
}
|
|
867353
867775
|
async writeSpecFile(cwd2, filename, content5) {
|
|
867354
867776
|
const specsDir = join8(cwd2, RelativeFilePath2.of(SPECS_DIR));
|
|
867355
|
-
await (0,
|
|
867777
|
+
await (0, import_promises102.mkdir)(specsDir, { recursive: true });
|
|
867356
867778
|
const filePath = join8(specsDir, RelativeFilePath2.of(filename));
|
|
867357
|
-
await (0,
|
|
867779
|
+
await (0, import_promises102.writeFile)(filePath, content5, "utf-8");
|
|
867358
867780
|
}
|
|
867359
867781
|
resolveApiPath(apiSource) {
|
|
867360
867782
|
switch (apiSource.type) {
|
|
@@ -868799,13 +869221,13 @@ function addCheckCommand4(cli) {
|
|
|
868799
869221
|
|
|
868800
869222
|
// ../cli-v2/lib/commands/sdk/generate/command.js
|
|
868801
869223
|
init_lib4();
|
|
868802
|
-
|
|
869224
|
+
init_lib7();
|
|
868803
869225
|
var import_promises118 = require("fs/promises");
|
|
868804
869226
|
init_js_yaml();
|
|
868805
869227
|
|
|
868806
869228
|
// ../cli-v2/lib/api/resolver/ApiSpecResolver.js
|
|
868807
|
-
|
|
868808
|
-
var
|
|
869229
|
+
init_lib7();
|
|
869230
|
+
var import_promises103 = require("fs/promises");
|
|
868809
869231
|
var import_os11 = require("os");
|
|
868810
869232
|
var import_path73 = __toESM(require("path"), 1);
|
|
868811
869233
|
|
|
@@ -868881,9 +869303,9 @@ var ApiSpecResolver = class {
|
|
|
868881
869303
|
});
|
|
868882
869304
|
}
|
|
868883
869305
|
const extension4 = this.inferExtensionFromContent(content5);
|
|
868884
|
-
const tempDir2 = await (0,
|
|
869306
|
+
const tempDir2 = await (0, import_promises103.mkdtemp)(import_path73.default.join((0, import_os11.tmpdir)(), "fern-"));
|
|
868885
869307
|
const absoluteFilePath = AbsoluteFilePath2.of(import_path73.default.join(tempDir2, `spec${extension4}`));
|
|
868886
|
-
await (0,
|
|
869308
|
+
await (0, import_promises103.writeFile)(absoluteFilePath, content5, "utf-8");
|
|
868887
869309
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: "stdin" });
|
|
868888
869310
|
return {
|
|
868889
869311
|
absoluteFilePath,
|
|
@@ -868899,9 +869321,9 @@ var ApiSpecResolver = class {
|
|
|
868899
869321
|
async resolveUrl({ reference: reference4 }) {
|
|
868900
869322
|
const { content: content5, contentType } = await this.fetchContent({ url: reference4 });
|
|
868901
869323
|
const extension4 = this.inferExtension({ url: reference4, contentType });
|
|
868902
|
-
const tempDir2 = await (0,
|
|
869324
|
+
const tempDir2 = await (0, import_promises103.mkdtemp)(import_path73.default.join((0, import_os11.tmpdir)(), "fern-"));
|
|
868903
869325
|
const absoluteFilePath = AbsoluteFilePath2.of(import_path73.default.join(tempDir2, `spec${extension4}`));
|
|
868904
|
-
await (0,
|
|
869326
|
+
await (0, import_promises103.writeFile)(absoluteFilePath, content5, "utf-8");
|
|
868905
869327
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: reference4 });
|
|
868906
869328
|
return {
|
|
868907
869329
|
absoluteFilePath,
|
|
@@ -868917,7 +869339,7 @@ var ApiSpecResolver = class {
|
|
|
868917
869339
|
code: CliError.Code.ConfigError
|
|
868918
869340
|
});
|
|
868919
869341
|
}
|
|
868920
|
-
const content5 = await (0,
|
|
869342
|
+
const content5 = await (0, import_promises103.readFile)(absoluteFilePath, "utf-8");
|
|
868921
869343
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: reference4 });
|
|
868922
869344
|
return {
|
|
868923
869345
|
absoluteFilePath,
|
|
@@ -868984,82 +869406,10 @@ init_lib4();
|
|
|
868984
869406
|
|
|
868985
869407
|
// ../cli-v2/lib/sdk/generator/LegacyLocalGenerationRunner.js
|
|
868986
869408
|
init_lib4();
|
|
868987
|
-
|
|
869409
|
+
init_lib7();
|
|
868988
869410
|
|
|
868989
|
-
// ../generation/local-generation/
|
|
868990
|
-
|
|
868991
|
-
var import_promises103 = require("fs/promises");
|
|
868992
|
-
var import_tmp_promise12 = __toESM(require_tmp_promise(), 1);
|
|
868993
|
-
async function runContainer({ logger: logger4, imageName, args = [], binds = [], envVars = {}, ports = {}, writeLogsToFile = true, removeAfterCompletion = false, runner, signal }) {
|
|
868994
|
-
const tryRun = () => tryRunContainer({
|
|
868995
|
-
logger: logger4,
|
|
868996
|
-
imageName,
|
|
868997
|
-
args,
|
|
868998
|
-
binds,
|
|
868999
|
-
envVars,
|
|
869000
|
-
ports,
|
|
869001
|
-
removeAfterCompletion,
|
|
869002
|
-
writeLogsToFile,
|
|
869003
|
-
runner,
|
|
869004
|
-
signal
|
|
869005
|
-
});
|
|
869006
|
-
try {
|
|
869007
|
-
await tryRun();
|
|
869008
|
-
} catch (e8) {
|
|
869009
|
-
if (e8 instanceof Error && e8.message.includes("No such image")) {
|
|
869010
|
-
await pullImage(imageName, runner, signal);
|
|
869011
|
-
await tryRun();
|
|
869012
|
-
} else {
|
|
869013
|
-
throw e8;
|
|
869014
|
-
}
|
|
869015
|
-
}
|
|
869016
|
-
}
|
|
869017
|
-
async function tryRunContainer({ logger: logger4, imageName, args, binds, envVars = {}, ports = {}, removeAfterCompletion, writeLogsToFile, runner, signal }) {
|
|
869018
|
-
if (process.env["FERN_STACK_TRACK"]) {
|
|
869019
|
-
envVars["FERN_STACK_TRACK"] = process.env["FERN_STACK_TRACK"];
|
|
869020
|
-
}
|
|
869021
|
-
const containerArgs = [
|
|
869022
|
-
"run",
|
|
869023
|
-
"--user",
|
|
869024
|
-
"root",
|
|
869025
|
-
...binds.flatMap((bind5) => ["-v", bind5]),
|
|
869026
|
-
...Object.entries(envVars).flatMap(([key2, value2]) => ["-e", `${key2}="${value2}"`]),
|
|
869027
|
-
...Object.entries(ports).flatMap(([hostPort, containerPort]) => ["-p", `${hostPort}:${containerPort}`]),
|
|
869028
|
-
removeAfterCompletion ? "--rm" : "",
|
|
869029
|
-
imageName,
|
|
869030
|
-
...args
|
|
869031
|
-
].filter(Boolean);
|
|
869032
|
-
const containerRunner = runner ?? "docker";
|
|
869033
|
-
const { stdout, stderr, exitCode } = await loggingExeca(logger4, containerRunner, containerArgs, {
|
|
869034
|
-
reject: false,
|
|
869035
|
-
all: true,
|
|
869036
|
-
doNotPipeOutput: true,
|
|
869037
|
-
signal
|
|
869038
|
-
});
|
|
869039
|
-
const logs4 = stdout + stderr;
|
|
869040
|
-
if (writeLogsToFile) {
|
|
869041
|
-
const tmpFile = await import_tmp_promise12.default.file();
|
|
869042
|
-
await (0, import_promises103.writeFile)(tmpFile.path, logs4);
|
|
869043
|
-
logger4.info(`Generator logs here: ${tmpFile.path}`);
|
|
869044
|
-
}
|
|
869045
|
-
if (exitCode == null) {
|
|
869046
|
-
throw new Error(`Container runtime '${containerRunner}' is not installed or not found on PATH.
|
|
869047
|
-
${containerRunner === "podman" ? "Seed tests default to Podman. " : ""}Install ${containerRunner}: ${containerRunner === "podman" ? "https://podman.io/docs/installation" : "https://docs.docker.com/get-docker/"}
|
|
869048
|
-
Error details: ${stderr || stdout || "No output"}`);
|
|
869049
|
-
}
|
|
869050
|
-
if (exitCode !== 0) {
|
|
869051
|
-
throw new Error(`Container exited with code ${exitCode}.
|
|
869052
|
-
${stdout}
|
|
869053
|
-
${stderr}`);
|
|
869054
|
-
}
|
|
869055
|
-
}
|
|
869056
|
-
async function pullImage(imageName, runner, signal) {
|
|
869057
|
-
await loggingExeca(void 0, runner ?? "docker", ["pull", imageName], {
|
|
869058
|
-
all: true,
|
|
869059
|
-
doNotPipeOutput: true,
|
|
869060
|
-
signal
|
|
869061
|
-
});
|
|
869062
|
-
}
|
|
869411
|
+
// ../generation/local-generation/local-workspace-runner/lib/ContainerExecutionEnvironment.js
|
|
869412
|
+
init_lib42();
|
|
869063
869413
|
|
|
869064
869414
|
// ../generation/local-generation/local-workspace-runner/lib/constants.js
|
|
869065
869415
|
var import_path74 = __toESM(require("path"), 1);
|
|
@@ -869151,7 +869501,7 @@ var ContainerExecutionEnvironment = class {
|
|
|
869151
869501
|
};
|
|
869152
869502
|
|
|
869153
869503
|
// ../generation/local-generation/local-workspace-runner/lib/GenerationRunner.js
|
|
869154
|
-
|
|
869504
|
+
init_lib7();
|
|
869155
869505
|
|
|
869156
869506
|
// ../../../generators/browser-compatible-base/lib/utils/stacktrace.js
|
|
869157
869507
|
var key = process.env["FERN_STACK_TRACK"]?.toLowerCase() ?? "";
|
|
@@ -887642,7 +887992,7 @@ var DynamicSnippetsGenerator = class extends AbstractDynamicSnippetsGenerator {
|
|
|
887642
887992
|
};
|
|
887643
887993
|
|
|
887644
887994
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/csharp/DynamicSnippetsCsharpTestGenerator.js
|
|
887645
|
-
|
|
887995
|
+
init_lib7();
|
|
887646
887996
|
var import_promises104 = require("fs/promises");
|
|
887647
887997
|
var import_path75 = __toESM(require("path"), 1);
|
|
887648
887998
|
|
|
@@ -887795,13 +888145,13 @@ var DynamicSnippetsCsharpTestGenerator = class {
|
|
|
887795
888145
|
};
|
|
887796
888146
|
|
|
887797
888147
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/go/DynamicSnippetsGoTestGenerator.js
|
|
887798
|
-
|
|
888148
|
+
init_lib7();
|
|
887799
888149
|
|
|
887800
888150
|
// ../../../generators/go-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
887801
888151
|
init_lib4();
|
|
887802
888152
|
|
|
887803
888153
|
// ../../../generators/go-v2/ast/lib/ast/core/Writer.js
|
|
887804
|
-
|
|
888154
|
+
init_lib6();
|
|
887805
888155
|
var INVALID_GO_IDENTIFIER_TOKEN = /[^0-9a-zA-Z_]/g;
|
|
887806
888156
|
var RESERVED_KEYWORDS2 = [
|
|
887807
888157
|
"break",
|
|
@@ -889394,7 +889744,7 @@ function goExportedFieldName(name2) {
|
|
|
889394
889744
|
}
|
|
889395
889745
|
|
|
889396
889746
|
// ../../../generators/go-v2/ast/lib/utils/resolveRootImportPath.js
|
|
889397
|
-
|
|
889747
|
+
init_lib6();
|
|
889398
889748
|
var import_path76 = __toESM(require("path"), 1);
|
|
889399
889749
|
var DEFAULT_MODULE_PATH = "sdk";
|
|
889400
889750
|
function resolveRootImportPath({ config: config5, customConfig }) {
|
|
@@ -891284,7 +891634,7 @@ var DynamicSnippetsGoTestGenerator = class {
|
|
|
891284
891634
|
};
|
|
891285
891635
|
|
|
891286
891636
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/java/DynamicSnippetsJavaTestGenerator.js
|
|
891287
|
-
|
|
891637
|
+
init_lib7();
|
|
891288
891638
|
|
|
891289
891639
|
// ../../../generators/java-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
891290
891640
|
init_lib4();
|
|
@@ -894662,7 +895012,7 @@ var DynamicSnippetsGenerator3 = class extends AbstractDynamicSnippetsGenerator {
|
|
|
894662
895012
|
};
|
|
894663
895013
|
|
|
894664
895014
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/java/DynamicSnippetsJavaTestGenerator.js
|
|
894665
|
-
|
|
895015
|
+
init_lib11();
|
|
894666
895016
|
var import_promises106 = require("fs/promises");
|
|
894667
895017
|
var import_path78 = __toESM(require("path"), 1);
|
|
894668
895018
|
var DynamicSnippetsJavaTestGenerator = class {
|
|
@@ -894749,7 +895099,7 @@ var DynamicSnippetsJavaTestGenerator = class {
|
|
|
894749
895099
|
};
|
|
894750
895100
|
|
|
894751
895101
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/php/DynamicSnippetsPhpTestGenerator.js
|
|
894752
|
-
|
|
895102
|
+
init_lib7();
|
|
894753
895103
|
|
|
894754
895104
|
// ../../../generators/php/codegen/lib/ast/core/Constant.js
|
|
894755
895105
|
var GLOBAL_NAMESPACE = "";
|
|
@@ -898248,7 +898598,7 @@ var DynamicSnippetsPhpTestGenerator = class {
|
|
|
898248
898598
|
};
|
|
898249
898599
|
|
|
898250
898600
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/python/DynamicSnippetsPythonTestGenerator.js
|
|
898251
|
-
|
|
898601
|
+
init_lib7();
|
|
898252
898602
|
|
|
898253
898603
|
// ../../../generators/python-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
898254
898604
|
init_lib4();
|
|
@@ -901539,7 +901889,7 @@ var DynamicSnippetsPythonTestGenerator = class {
|
|
|
901539
901889
|
};
|
|
901540
901890
|
|
|
901541
901891
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/ruby/DynamicSnippetsRubyTestGenerator.js
|
|
901542
|
-
|
|
901892
|
+
init_lib7();
|
|
901543
901893
|
|
|
901544
901894
|
// ../../../generators/ruby-v2/ast/lib/ast/core/Writer.js
|
|
901545
901895
|
var TAB_SIZE2 = 2;
|
|
@@ -904446,7 +904796,7 @@ var DynamicSnippetsRubyTestGenerator = class {
|
|
|
904446
904796
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/rust/DynamicSnippetsRustTestGenerator.js
|
|
904447
904797
|
var import_promises110 = require("fs/promises");
|
|
904448
904798
|
var import_node_path25 = __toESM(require("path"), 1);
|
|
904449
|
-
|
|
904799
|
+
init_lib7();
|
|
904450
904800
|
|
|
904451
904801
|
// ../../../generators/rust/base/lib/constants/index.js
|
|
904452
904802
|
var RUST_KEYWORDS = /* @__PURE__ */ new Set([
|
|
@@ -909699,7 +910049,7 @@ var DynamicSnippetsRustTestGenerator = class {
|
|
|
909699
910049
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/swift/DynamicSnippetsSwiftTestGenerator.js
|
|
909700
910050
|
var import_promises111 = require("fs/promises");
|
|
909701
910051
|
var import_node_path26 = __toESM(require("path"), 1);
|
|
909702
|
-
|
|
910052
|
+
init_lib7();
|
|
909703
910053
|
|
|
909704
910054
|
// ../../../generators/swift/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
909705
910055
|
init_lib4();
|
|
@@ -914283,7 +914633,7 @@ var DynamicSnippetsSwiftTestGenerator = class {
|
|
|
914283
914633
|
};
|
|
914284
914634
|
|
|
914285
914635
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/typescript/DynamicSnippetsTypeScriptTestGenerator.js
|
|
914286
|
-
|
|
914636
|
+
init_lib7();
|
|
914287
914637
|
|
|
914288
914638
|
// ../../../generators/typescript-v2/ast/lib/ast/core/Writer.js
|
|
914289
914639
|
var Writer9 = class extends AbstractWriter {
|
|
@@ -916738,7 +917088,7 @@ async function generateDynamicSnippetTests({ context: context3, ir: ir11, config
|
|
|
916738
917088
|
}
|
|
916739
917089
|
|
|
916740
917090
|
// ../generation/local-generation/local-workspace-runner/lib/runGenerator.js
|
|
916741
|
-
|
|
917091
|
+
init_lib7();
|
|
916742
917092
|
var import_autoversion3 = __toESM(require_autoversion(), 1);
|
|
916743
917093
|
var import_serialization = __toESM(require_serialization3(), 1);
|
|
916744
917094
|
var import_promises114 = require("fs/promises");
|
|
@@ -916747,7 +917097,7 @@ var import_path84 = require("path");
|
|
|
916747
917097
|
var import_tmp_promise14 = __toESM(require_tmp_promise(), 1);
|
|
916748
917098
|
|
|
916749
917099
|
// ../generation/local-generation/local-workspace-runner/lib/getGeneratorConfig.js
|
|
916750
|
-
|
|
917100
|
+
init_lib8();
|
|
916751
917101
|
var import_generator_exec_sdk = __toESM(require_generator_exec_sdk(), 1);
|
|
916752
917102
|
var import_api50 = __toESM(require_api4(), 1);
|
|
916753
917103
|
var path79 = __toESM(require("path"), 1);
|
|
@@ -917221,11 +917571,11 @@ async function getIntermediateRepresentation({ workspace, audiences, generatorIn
|
|
|
917221
917571
|
}
|
|
917222
917572
|
|
|
917223
917573
|
// ../generation/local-generation/local-workspace-runner/lib/LocalTaskHandler.js
|
|
917224
|
-
|
|
917574
|
+
init_lib41();
|
|
917225
917575
|
init_lib4();
|
|
917226
|
-
|
|
917576
|
+
init_lib7();
|
|
917227
917577
|
var import_autoversion2 = __toESM(require_autoversion(), 1);
|
|
917228
|
-
|
|
917578
|
+
init_lib11();
|
|
917229
917579
|
var import_decompress2 = __toESM(require_decompress(), 1);
|
|
917230
917580
|
var import_promises113 = require("fs/promises");
|
|
917231
917581
|
var import_os12 = require("os");
|
|
@@ -918072,10 +918422,10 @@ function getDockerDestinationForSource(source2) {
|
|
|
918072
918422
|
|
|
918073
918423
|
// ../generation/local-generation/local-workspace-runner/lib/runLocalGenerationForWorkspace.js
|
|
918074
918424
|
init_lib4();
|
|
918075
|
-
|
|
918425
|
+
init_lib7();
|
|
918076
918426
|
var import_autoversion4 = __toESM(require_autoversion(), 1);
|
|
918077
918427
|
var import_pipeline2 = __toESM(require_pipeline2(), 1);
|
|
918078
|
-
|
|
918428
|
+
init_lib8();
|
|
918079
918429
|
var fs17 = __toESM(require("fs/promises"), 1);
|
|
918080
918430
|
var import_os13 = __toESM(require("os"), 1);
|
|
918081
918431
|
var import_path85 = __toESM(require("path"), 1);
|
|
@@ -918088,7 +918438,7 @@ function getGeneratorOutputSubfolder(generatorName) {
|
|
|
918088
918438
|
}
|
|
918089
918439
|
|
|
918090
918440
|
// ../generation/local-generation/local-workspace-runner/lib/runLocalGenerationForWorkspace.js
|
|
918091
|
-
async function runLocalGenerationForWorkspace({ token, projectConfig, workspace, generatorGroup, version: version7, keepDocker, inspect: inspect6, context: context3, absolutePathToPreview, runner, ai: ai10, replay, noReplay, validateWorkspace, requireEnvVars, skipFernignore, publishToRegistry, isPreview: isPreviewOverride, automationMode, autoMerge, skipIfNoDiff, disableTelemetry }) {
|
|
918441
|
+
async function runLocalGenerationForWorkspace({ token, projectConfig, workspace, generatorGroup, version: version7, keepDocker, inspect: inspect6, context: context3, absolutePathToPreview, runner, ai: ai10, replay, noReplay, validateWorkspace, requireEnvVars, skipFernignore, publishToRegistry, isPreview: isPreviewOverride, automationMode, autoMerge, skipIfNoDiff, verify: verify2, disableTelemetry }) {
|
|
918092
918442
|
const userProvidedVersion = version7;
|
|
918093
918443
|
if (userProvidedVersion != null) {
|
|
918094
918444
|
if (absolutePathToPreview != null) {
|
|
@@ -918293,7 +918643,9 @@ generators:
|
|
|
918293
918643
|
disableTelemetry
|
|
918294
918644
|
});
|
|
918295
918645
|
interactiveTaskContext.logger.info(source_default.green("Wrote files to " + absolutePathToLocalOutput));
|
|
918296
|
-
|
|
918646
|
+
const githubPipelineEnabled = selfhostedGithubConfig != null && shouldCommit;
|
|
918647
|
+
const verifyOnlyPipelineEnabled = !githubPipelineEnabled && verify2 === true;
|
|
918648
|
+
if (githubPipelineEnabled || verifyOnlyPipelineEnabled) {
|
|
918297
918649
|
const pipelineLogger = {
|
|
918298
918650
|
debug: (msg) => interactiveTaskContext.logger.debug(msg),
|
|
918299
918651
|
info: (msg) => interactiveTaskContext.logger.info(msg),
|
|
@@ -918303,8 +918655,9 @@ generators:
|
|
|
918303
918655
|
const hasBreakingChanges = autoVersioningVersionBump === "MAJOR";
|
|
918304
918656
|
const pipeline6 = new import_pipeline2.PostGenerationPipeline({
|
|
918305
918657
|
outputDir: absolutePathToLocalOutput,
|
|
918306
|
-
replay: { enabled: replay?.enabled === true, skipApplication: noReplay, stageOnly: false },
|
|
918307
|
-
|
|
918658
|
+
replay: githubPipelineEnabled ? { enabled: replay?.enabled === true, skipApplication: noReplay, stageOnly: false } : void 0,
|
|
918659
|
+
verify: { enabled: verify2 === true, runner },
|
|
918660
|
+
github: githubPipelineEnabled && selfhostedGithubConfig != null ? {
|
|
918308
918661
|
enabled: true,
|
|
918309
918662
|
uri: selfhostedGithubConfig.uri,
|
|
918310
918663
|
token: selfhostedGithubConfig.token,
|
|
@@ -918326,7 +918679,7 @@ generators:
|
|
|
918326
918679
|
breakingChangesSummary: hasBreakingChanges ? autoVersioningPrDescription : void 0,
|
|
918327
918680
|
runId: process.env.FERN_RUN_ID,
|
|
918328
918681
|
apiBaseUrl: getGithubApiBaseUrl(selfhostedGithubConfig.uri)
|
|
918329
|
-
},
|
|
918682
|
+
} : void 0,
|
|
918330
918683
|
cliVersion: workspace.cliVersion ?? "unknown",
|
|
918331
918684
|
generatorVersions: {
|
|
918332
918685
|
[generatorInvocation.name]: generatorInvocation.version
|
|
@@ -918336,7 +918689,7 @@ generators:
|
|
|
918336
918689
|
const pipelineStart = Date.now();
|
|
918337
918690
|
const pipelineResult = await pipeline6.run();
|
|
918338
918691
|
const pipelineDurationMs = Date.now() - pipelineStart;
|
|
918339
|
-
if (pipelineResult.steps.replay != null) {
|
|
918692
|
+
if (pipelineResult.steps.replay != null && selfhostedGithubConfig != null) {
|
|
918340
918693
|
(0, import_pipeline2.logReplaySummary)(pipelineResult.steps.replay, {
|
|
918341
918694
|
debug: (msg) => interactiveTaskContext.logger.debug(msg),
|
|
918342
918695
|
info: (msg) => {
|
|
@@ -918702,12 +919055,13 @@ var GenerationRunner = class {
|
|
|
918702
919055
|
};
|
|
918703
919056
|
|
|
918704
919057
|
// ../cli-v2/lib/sdk/generator/LegacyLocalGenerationRunner.js
|
|
919058
|
+
init_lib5();
|
|
918705
919059
|
var import_promises116 = require("fs/promises");
|
|
918706
919060
|
|
|
918707
919061
|
// ../cli-v2/lib/sdk/adapter/LegacyGeneratorInvocationAdapter.js
|
|
918708
919062
|
init_lib4();
|
|
918709
|
-
init_lib6();
|
|
918710
919063
|
init_lib7();
|
|
919064
|
+
init_lib8();
|
|
918711
919065
|
var import_promises115 = require("fs/promises");
|
|
918712
919066
|
var LegacyGeneratorInvocationAdapter = class {
|
|
918713
919067
|
context;
|
|
@@ -919011,7 +919365,7 @@ var LegacyGeneratorInvocationAdapter = class {
|
|
|
919011
919365
|
};
|
|
919012
919366
|
|
|
919013
919367
|
// ../cli-v2/lib/sdk/generator/utils/resolveTargetOutput.js
|
|
919014
|
-
|
|
919368
|
+
init_lib7();
|
|
919015
919369
|
var import_path86 = require("path");
|
|
919016
919370
|
function resolveTargetOutput({ context: context3, task, target, preview, outputPath }) {
|
|
919017
919371
|
if (preview) {
|
|
@@ -919194,7 +919548,8 @@ var LegacyLocalGenerationRunner = class {
|
|
|
919194
919548
|
|
|
919195
919549
|
// ../cli-v2/lib/sdk/generator/LegacyRemoteGenerationRunner.js
|
|
919196
919550
|
init_lib4();
|
|
919197
|
-
|
|
919551
|
+
init_lib7();
|
|
919552
|
+
init_lib5();
|
|
919198
919553
|
var import_promises117 = require("fs/promises");
|
|
919199
919554
|
var import_os14 = require("os");
|
|
919200
919555
|
var LegacyRemoteGenerationRunner = class {
|
|
@@ -919569,7 +919924,7 @@ var SdkTaskGroup = class {
|
|
|
919569
919924
|
};
|
|
919570
919925
|
|
|
919571
919926
|
// ../cli-v2/lib/workspace/WorkspaceBuilder.js
|
|
919572
|
-
|
|
919927
|
+
init_lib7();
|
|
919573
919928
|
var WorkspaceBuilder = class {
|
|
919574
919929
|
context;
|
|
919575
919930
|
constructor({ context: context3 }) {
|
|
@@ -920427,7 +920782,7 @@ init_lib4();
|
|
|
920427
920782
|
|
|
920428
920783
|
// ../cli-v2/lib/sdk/updater/GeneratorMigrator.js
|
|
920429
920784
|
init_lib4();
|
|
920430
|
-
|
|
920785
|
+
init_lib11();
|
|
920431
920786
|
var import_fs32 = require("fs");
|
|
920432
920787
|
var import_promises119 = require("fs/promises");
|
|
920433
920788
|
var import_path87 = require("path");
|
|
@@ -921168,17 +921523,17 @@ function createCliV2(argv) {
|
|
|
921168
921523
|
|
|
921169
921524
|
// src/cli.ts
|
|
921170
921525
|
init_lib4();
|
|
921171
|
-
|
|
921526
|
+
init_lib7();
|
|
921172
921527
|
var import_generator_cli5 = __toESM(require_api3(), 1);
|
|
921173
921528
|
|
|
921174
921529
|
// ../init/lib/initializeAPI.js
|
|
921175
|
-
|
|
921530
|
+
init_lib7();
|
|
921176
921531
|
var import_promises124 = require("fs/promises");
|
|
921177
921532
|
var import_fs_extra = __toESM(require_lib19(), 1);
|
|
921178
921533
|
var import_path90 = __toESM(require("path"), 1);
|
|
921179
921534
|
|
|
921180
921535
|
// ../init/lib/createFernDirectoryAndOrganization.js
|
|
921181
|
-
|
|
921536
|
+
init_lib7();
|
|
921182
921537
|
var import_promises121 = require("fs/promises");
|
|
921183
921538
|
init_lodash();
|
|
921184
921539
|
var GITIGNORE_CONTENT = "**/.preview\n**/.definition\n";
|
|
@@ -921447,7 +921802,7 @@ async function formatFernWorkspace({ workspace, context: context3, shouldFix })
|
|
|
921447
921802
|
}
|
|
921448
921803
|
|
|
921449
921804
|
// ../init/lib/createWorkspace.js
|
|
921450
|
-
|
|
921805
|
+
init_lib7();
|
|
921451
921806
|
var import_promises123 = require("fs/promises");
|
|
921452
921807
|
init_js_yaml();
|
|
921453
921808
|
|
|
@@ -921848,7 +922203,7 @@ async function hasInlinedOpenAPIWorkspace({ absolutePathToFernDirectory }) {
|
|
|
921848
922203
|
|
|
921849
922204
|
// ../init/lib/initializeDocs.js
|
|
921850
922205
|
init_lib4();
|
|
921851
|
-
|
|
922206
|
+
init_lib7();
|
|
921852
922207
|
var import_promises125 = require("fs/promises");
|
|
921853
922208
|
init_js_yaml();
|
|
921854
922209
|
async function initializeDocs({ organization, taskContext, versionOfCli }) {
|
|
@@ -921894,7 +922249,7 @@ function getDocsConfig(organization) {
|
|
|
921894
922249
|
}
|
|
921895
922250
|
|
|
921896
922251
|
// ../init/lib/initializeWithMintlify.js
|
|
921897
|
-
|
|
922252
|
+
init_lib7();
|
|
921898
922253
|
|
|
921899
922254
|
// ../docs-importers/mintlify/lib/MintlifyImporter.js
|
|
921900
922255
|
init_lib4();
|
|
@@ -921919,7 +922274,7 @@ var FernDocsBuilder = class {
|
|
|
921919
922274
|
};
|
|
921920
922275
|
|
|
921921
922276
|
// ../docs-importers/commons/lib/FernDocsBuilderImpl.js
|
|
921922
|
-
|
|
922277
|
+
init_lib7();
|
|
921923
922278
|
var import_promises126 = require("fs/promises");
|
|
921924
922279
|
init_js_yaml();
|
|
921925
922280
|
var FernDocsBuilderImpl = class extends FernDocsBuilder {
|
|
@@ -922057,7 +922412,7 @@ var NonTabbedNavigationBuilderImpl = class {
|
|
|
922057
922412
|
};
|
|
922058
922413
|
|
|
922059
922414
|
// ../docs-importers/mintlify/lib/MintlifyImporter.js
|
|
922060
|
-
|
|
922415
|
+
init_lib7();
|
|
922061
922416
|
var import_promises128 = require("fs/promises");
|
|
922062
922417
|
|
|
922063
922418
|
// ../docs-importers/mintlify/lib/convertColors.js
|
|
@@ -922077,7 +922432,7 @@ function convertColors(colors19) {
|
|
|
922077
922432
|
|
|
922078
922433
|
// ../docs-importers/mintlify/lib/convertLogo.js
|
|
922079
922434
|
init_lib4();
|
|
922080
|
-
|
|
922435
|
+
init_lib7();
|
|
922081
922436
|
var LOGO_DEFAULT_HEIGHT = 28;
|
|
922082
922437
|
function convertLogo({ logo, builder, absolutePathToMintJson }) {
|
|
922083
922438
|
if (logo == null) {
|
|
@@ -922115,10 +922470,10 @@ function convertLogo({ logo, builder, absolutePathToMintJson }) {
|
|
|
922115
922470
|
|
|
922116
922471
|
// ../docs-importers/mintlify/lib/convertNavigationItem.js
|
|
922117
922472
|
init_lib4();
|
|
922118
|
-
|
|
922473
|
+
init_lib7();
|
|
922119
922474
|
|
|
922120
922475
|
// ../docs-importers/mintlify/lib/convertMarkdown.js
|
|
922121
|
-
|
|
922476
|
+
init_lib7();
|
|
922122
922477
|
var import_promises127 = require("fs/promises");
|
|
922123
922478
|
var import_gray_matter10 = __toESM(require_gray_matter(), 1);
|
|
922124
922479
|
async function convertMarkdown({ absolutePathToMintJson, absoluteFilepathToMarkdown, relativeFilepathFromRoot, builder }) {
|
|
@@ -922410,7 +922765,7 @@ var MintlifyImporter = class extends DocsImporter {
|
|
|
922410
922765
|
};
|
|
922411
922766
|
|
|
922412
922767
|
// ../docs-importers/mintlify/lib/runMintlifyMigration.js
|
|
922413
|
-
|
|
922768
|
+
init_lib7();
|
|
922414
922769
|
var import_promises129 = require("fs/promises");
|
|
922415
922770
|
async function runMintlifyMigration({ absolutePathToMintJson, outputPath, taskContext, versionOfCli, organization }) {
|
|
922416
922771
|
const mintlifyImporter = new MintlifyImporter({
|
|
@@ -922461,7 +922816,7 @@ var initializeWithMintlify = async ({ pathToMintJson, taskContext, versionOfCli,
|
|
|
922461
922816
|
};
|
|
922462
922817
|
|
|
922463
922818
|
// ../init/lib/initializeWithReadme.js
|
|
922464
|
-
|
|
922819
|
+
init_lib7();
|
|
922465
922820
|
|
|
922466
922821
|
// ../docs-importers/readme/lib/assert.js
|
|
922467
922822
|
init_zod();
|
|
@@ -922480,7 +922835,7 @@ function assertIsStringArray(val) {
|
|
|
922480
922835
|
|
|
922481
922836
|
// ../docs-importers/readme/lib/ReadmeImporter.js
|
|
922482
922837
|
init_lib4();
|
|
922483
|
-
|
|
922838
|
+
init_lib7();
|
|
922484
922839
|
var import_promises134 = require("fs/promises");
|
|
922485
922840
|
|
|
922486
922841
|
// ../docs-importers/readme/lib/extract/favicon.js
|
|
@@ -925492,7 +925847,7 @@ async function getColors(hast) {
|
|
|
925492
925847
|
|
|
925493
925848
|
// ../docs-importers/readme/lib/utils/files/logo.js
|
|
925494
925849
|
init_lib4();
|
|
925495
|
-
|
|
925850
|
+
init_lib7();
|
|
925496
925851
|
|
|
925497
925852
|
// ../docs-importers/readme/lib/extract/logo.js
|
|
925498
925853
|
init_unist_util_visit();
|
|
@@ -935872,7 +936227,7 @@ var ReadmeImporter = class extends DocsImporter {
|
|
|
935872
936227
|
};
|
|
935873
936228
|
|
|
935874
936229
|
// ../docs-importers/readme/lib/runReadmeMigration.js
|
|
935875
|
-
|
|
936230
|
+
init_lib7();
|
|
935876
936231
|
var import_promises135 = require("fs/promises");
|
|
935877
936232
|
async function runReadmeMigration({ readmeUrl, outputPath, taskContext, versionOfCli, organization }) {
|
|
935878
936233
|
const builder = new FernDocsBuilderImpl();
|
|
@@ -935957,10 +936312,14 @@ async function fetchOpenAPIFromUrl({ url: url3, logger: logger4 }) {
|
|
|
935957
936312
|
return dump(response.data);
|
|
935958
936313
|
}
|
|
935959
936314
|
|
|
936315
|
+
// src/cli.ts
|
|
936316
|
+
init_lib5();
|
|
936317
|
+
|
|
935960
936318
|
// ../generation/protoc-gen-fern/package.json
|
|
935961
936319
|
var version6 = "0.0.0";
|
|
935962
936320
|
|
|
935963
936321
|
// ../generation/protoc-gen-fern/lib/commons/logging.js
|
|
936322
|
+
init_lib5();
|
|
935964
936323
|
var Logger4 = class {
|
|
935965
936324
|
enabled = true;
|
|
935966
936325
|
write(level, ...messages2) {
|
|
@@ -937695,6 +938054,9 @@ Yargs2.hideBin = processArgv.hideBin;
|
|
|
937695
938054
|
Yargs2.Parser = Parser8;
|
|
937696
938055
|
var yargs_default2 = Yargs2;
|
|
937697
938056
|
|
|
938057
|
+
// src/cli-context/CliContext.ts
|
|
938058
|
+
init_lib5();
|
|
938059
|
+
|
|
937698
938060
|
// ../../../node_modules/.pnpm/@inquirer+core@10.3.2_@types+node@22.19.17/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
937699
938061
|
var isUpKey = (key2, keybindings = []) => (
|
|
937700
938062
|
// The up key
|
|
@@ -939737,6 +940099,7 @@ var StdoutRedirector = class {
|
|
|
939737
940099
|
|
|
939738
940100
|
// src/cli-context/TaskContextImpl.ts
|
|
939739
940101
|
init_lib4();
|
|
940102
|
+
init_lib5();
|
|
939740
940103
|
var TaskContextImpl = class {
|
|
939741
940104
|
result = TaskResult.Success;
|
|
939742
940105
|
lastFailureMessage = void 0;
|
|
@@ -940283,7 +940646,7 @@ var CliContext = class _CliContext {
|
|
|
940283
940646
|
if (false) {
|
|
940284
940647
|
this.logger.error("CLI_VERSION is not defined");
|
|
940285
940648
|
}
|
|
940286
|
-
return "5.
|
|
940649
|
+
return "5.23.0";
|
|
940287
940650
|
}
|
|
940288
940651
|
getCliName() {
|
|
940289
940652
|
if (false) {
|
|
@@ -940580,7 +940943,7 @@ function wrapWorkspaceNameForPrefix(workspaceName) {
|
|
|
940580
940943
|
}
|
|
940581
940944
|
|
|
940582
940945
|
// ../project-loader/lib/loadProject.js
|
|
940583
|
-
|
|
940946
|
+
init_lib7();
|
|
940584
940947
|
var import_promises137 = require("fs/promises");
|
|
940585
940948
|
|
|
940586
940949
|
// ../project-loader/lib/normalizeCommandLineApiWorkspace.js
|
|
@@ -940893,7 +941256,7 @@ async function getOrganization({
|
|
|
940893
941256
|
}
|
|
940894
941257
|
|
|
940895
941258
|
// src/commands/upgrade/upgradeGenerator.ts
|
|
940896
|
-
|
|
941259
|
+
init_lib7();
|
|
940897
941260
|
var import_promises141 = require("fs/promises");
|
|
940898
941261
|
var import_path93 = __toESM(require("path"), 1);
|
|
940899
941262
|
var import_semver16 = __toESM(require_semver2(), 1);
|
|
@@ -940901,7 +941264,7 @@ var import_yaml6 = __toESM(require_dist9(), 1);
|
|
|
940901
941264
|
|
|
940902
941265
|
// src/commands/upgrade/migrations/loader.ts
|
|
940903
941266
|
init_lib4();
|
|
940904
|
-
|
|
941267
|
+
init_lib11();
|
|
940905
941268
|
var import_fs36 = require("fs");
|
|
940906
941269
|
var import_promises140 = require("fs/promises");
|
|
940907
941270
|
var import_os15 = require("os");
|
|
@@ -941926,7 +942289,7 @@ function filterGenerators({
|
|
|
941926
942289
|
}
|
|
941927
942290
|
|
|
941928
942291
|
// src/commands/generate/generateAPIWorkspaces.ts
|
|
941929
|
-
|
|
942292
|
+
init_lib7();
|
|
941930
942293
|
|
|
941931
942294
|
// src/constants.ts
|
|
941932
942295
|
var API_CLI_OPTION = "api";
|
|
@@ -941936,15 +942299,15 @@ var APPROVED_DIRECTORIES_FILENAME = "approved-output-directories";
|
|
|
941936
942299
|
var LOCAL_STORAGE_FOLDER6 = ".fern-dev";
|
|
941937
942300
|
|
|
941938
942301
|
// src/commands/generate/checkOutputDirectory.ts
|
|
941939
|
-
|
|
942302
|
+
init_lib7();
|
|
941940
942303
|
var import_promises146 = require("fs/promises");
|
|
941941
942304
|
|
|
941942
942305
|
// src/persistence/output-directories/getOutputDirectories.ts
|
|
941943
|
-
|
|
942306
|
+
init_lib7();
|
|
941944
942307
|
var import_promises144 = require("fs/promises");
|
|
941945
942308
|
|
|
941946
942309
|
// src/persistence/output-directories/getPathToOutputDirectoriesFile.ts
|
|
941947
|
-
|
|
942310
|
+
init_lib7();
|
|
941948
942311
|
var import_os16 = require("os");
|
|
941949
942312
|
function getPathToOutputDirectoriesFile() {
|
|
941950
942313
|
return join8(
|
|
@@ -942032,7 +942395,7 @@ function expandGroupFilter(groupNames, generatorsConfiguration) {
|
|
|
942032
942395
|
}
|
|
942033
942396
|
|
|
942034
942397
|
// src/commands/generate/generateAPIWorkspace.ts
|
|
942035
|
-
|
|
942398
|
+
init_lib7();
|
|
942036
942399
|
|
|
942037
942400
|
// src/commands/generate/describeSkipReason.ts
|
|
942038
942401
|
function classifySkipReason(generator, rootAutorelease) {
|
|
@@ -942141,6 +942504,7 @@ async function generateWorkspace({
|
|
|
942141
942504
|
skipFernignore,
|
|
942142
942505
|
dynamicIrOnly,
|
|
942143
942506
|
noReplay,
|
|
942507
|
+
verify: verify2,
|
|
942144
942508
|
retryRateLimited,
|
|
942145
942509
|
requireEnvVars,
|
|
942146
942510
|
automationMode,
|
|
@@ -942208,6 +942572,7 @@ async function generateWorkspace({
|
|
|
942208
942572
|
automationMode,
|
|
942209
942573
|
autoMerge,
|
|
942210
942574
|
skipIfNoDiff,
|
|
942575
|
+
verify: verify2,
|
|
942211
942576
|
disableTelemetry: isTelemetryDisabled()
|
|
942212
942577
|
});
|
|
942213
942578
|
} else if (token != null) {
|
|
@@ -942602,6 +942967,7 @@ async function generateAPIWorkspaces({
|
|
|
942602
942967
|
dynamicIrOnly,
|
|
942603
942968
|
outputDir,
|
|
942604
942969
|
noReplay,
|
|
942970
|
+
verify: verify2,
|
|
942605
942971
|
retryRateLimited,
|
|
942606
942972
|
requireEnvVars,
|
|
942607
942973
|
automationMode,
|
|
@@ -942677,6 +943043,7 @@ async function generateAPIWorkspaces({
|
|
|
942677
943043
|
skipFernignore,
|
|
942678
943044
|
dynamicIrOnly,
|
|
942679
943045
|
noReplay,
|
|
943046
|
+
verify: verify2,
|
|
942680
943047
|
retryRateLimited,
|
|
942681
943048
|
requireEnvVars,
|
|
942682
943049
|
automationMode,
|
|
@@ -943217,6 +943584,7 @@ async function executeAutomationsGenerate({
|
|
|
943217
943584
|
dynamicIrOnly: false,
|
|
943218
943585
|
outputDir: void 0,
|
|
943219
943586
|
noReplay: false,
|
|
943587
|
+
verify: false,
|
|
943220
943588
|
// Automation runs are unattended; transient 429s should be retried
|
|
943221
943589
|
// automatically rather than failing the run and asking a human to
|
|
943222
943590
|
// re-trigger with a flag. The retry policy is bounded (5 attempts,
|
|
@@ -943474,7 +943842,7 @@ init_lib4();
|
|
|
943474
943842
|
var import_promises148 = require("fs/promises");
|
|
943475
943843
|
|
|
943476
943844
|
// ../cli-migrations/lib/migrations/0.0.191/discriminant/getAllYamlFiles.js
|
|
943477
|
-
|
|
943845
|
+
init_lib7();
|
|
943478
943846
|
init_esm14();
|
|
943479
943847
|
var FERN_DIRECTORY2 = "fern";
|
|
943480
943848
|
async function getAllYamlFiles(context3) {
|
|
@@ -943548,7 +943916,7 @@ var import_promises149 = require("fs/promises");
|
|
|
943548
943916
|
var import_yaml7 = __toESM(require_dist9(), 1);
|
|
943549
943917
|
|
|
943550
943918
|
// ../cli-migrations/lib/migrations/0.0.203/union-single-property-key/getAllYamlFiles.js
|
|
943551
|
-
|
|
943919
|
+
init_lib7();
|
|
943552
943920
|
init_esm14();
|
|
943553
943921
|
var FERN_DIRECTORY3 = "fern";
|
|
943554
943922
|
async function getAllYamlFiles2(context3) {
|
|
@@ -943634,7 +944002,7 @@ var import_promises150 = require("fs/promises");
|
|
|
943634
944002
|
var import_yaml8 = __toESM(require_dist9(), 1);
|
|
943635
944003
|
|
|
943636
944004
|
// ../cli-migrations/lib/migrations/0.0.207/add-mode-to-draft-generators/getAllGeneratorYamlFiles.js
|
|
943637
|
-
|
|
944005
|
+
init_lib7();
|
|
943638
944006
|
init_esm14();
|
|
943639
944007
|
var FERN_DIRECTORY4 = "fern";
|
|
943640
944008
|
async function getAllGeneratorYamlFiles(context3) {
|
|
@@ -943715,7 +944083,7 @@ var import_promises151 = require("fs/promises");
|
|
|
943715
944083
|
var import_yaml9 = __toESM(require_dist9(), 1);
|
|
943716
944084
|
|
|
943717
944085
|
// ../cli-migrations/lib/migrations/0.0.210/remove-inline-error-declarations/getAllYamlFiles.js
|
|
943718
|
-
|
|
944086
|
+
init_lib7();
|
|
943719
944087
|
init_esm14();
|
|
943720
944088
|
var FERN_DIRECTORY5 = "fern";
|
|
943721
944089
|
async function getAllYamlFiles3(context3) {
|
|
@@ -943813,7 +944181,7 @@ var import_promises152 = require("fs/promises");
|
|
|
943813
944181
|
var import_yaml10 = __toESM(require_dist9(), 1);
|
|
943814
944182
|
|
|
943815
944183
|
// ../cli-migrations/lib/migrations/0.0.212/add-publishing-to-release-generators/getAllGeneratorYamlFiles.js
|
|
943816
|
-
|
|
944184
|
+
init_lib7();
|
|
943817
944185
|
init_esm14();
|
|
943818
944186
|
var FERN_DIRECTORY6 = "fern";
|
|
943819
944187
|
async function getAllGeneratorYamlFiles2(context3) {
|
|
@@ -943904,7 +944272,7 @@ var __default5 = versionMigrations5;
|
|
|
943904
944272
|
var import_promises153 = require("fs/promises");
|
|
943905
944273
|
|
|
943906
944274
|
// ../cli-migrations/lib/migrations/0.0.220/rename-alias-key-to-type/getAllYamlFiles.js
|
|
943907
|
-
|
|
944275
|
+
init_lib7();
|
|
943908
944276
|
init_esm14();
|
|
943909
944277
|
var FERN_DIRECTORY7 = "fern";
|
|
943910
944278
|
async function getAllYamlFiles4(context3) {
|
|
@@ -943952,7 +944320,7 @@ var __default6 = versionMigrations6;
|
|
|
943952
944320
|
var import_promises154 = require("fs/promises");
|
|
943953
944321
|
|
|
943954
944322
|
// ../cli-migrations/lib/migrations/0.0.221/add-error-discriminant/getAllRootApiYamlFiles.js
|
|
943955
|
-
|
|
944323
|
+
init_lib7();
|
|
943956
944324
|
init_esm14();
|
|
943957
944325
|
var FERN_DIRECTORY8 = "fern";
|
|
943958
944326
|
async function getAllRootApiYamlFiles(context3) {
|
|
@@ -944002,7 +944370,7 @@ var import_promises155 = require("fs/promises");
|
|
|
944002
944370
|
init_js_yaml();
|
|
944003
944371
|
|
|
944004
944372
|
// ../cli-migrations/lib/migrations/0.0.241/add-generator-groups/getAllGeneratorYamlFiles.js
|
|
944005
|
-
|
|
944373
|
+
init_lib7();
|
|
944006
944374
|
init_esm14();
|
|
944007
944375
|
var FERN_DIRECTORY9 = "fern";
|
|
944008
944376
|
async function getAllGeneratorYamlFiles3(context3) {
|
|
@@ -944228,7 +944596,7 @@ var import_promises156 = require("fs/promises");
|
|
|
944228
944596
|
var import_yaml11 = __toESM(require_dist9(), 1);
|
|
944229
944597
|
|
|
944230
944598
|
// ../cli-migrations/lib/migrations/0.0.248/add-error-discrimination-config/getAllRootApiYamlFiles.js
|
|
944231
|
-
|
|
944599
|
+
init_lib7();
|
|
944232
944600
|
init_esm14();
|
|
944233
944601
|
var FERN_DIRECTORY10 = "fern";
|
|
944234
944602
|
async function getAllRootApiYamlFiles2(context3) {
|
|
@@ -944293,7 +944661,7 @@ var import_promises157 = require("fs/promises");
|
|
|
944293
944661
|
var import_yaml12 = __toESM(require_dist9(), 1);
|
|
944294
944662
|
|
|
944295
944663
|
// ../cli-migrations/lib/migrations/0.1.3-rc3/add-inline-requests/getAllYamlFiles.js
|
|
944296
|
-
|
|
944664
|
+
init_lib7();
|
|
944297
944665
|
init_esm14();
|
|
944298
944666
|
var FERN_DIRECTORY11 = "fern";
|
|
944299
944667
|
async function getAllYamlFiles5(context3) {
|
|
@@ -944455,7 +944823,7 @@ var import_promises158 = require("fs/promises");
|
|
|
944455
944823
|
var import_yaml13 = __toESM(require_dist9(), 1);
|
|
944456
944824
|
|
|
944457
944825
|
// ../cli-migrations/lib/migrations/0.3.0-rc12/add-value-key-to-type-examples/getAllYamlFiles.js
|
|
944458
|
-
|
|
944826
|
+
init_lib7();
|
|
944459
944827
|
init_esm14();
|
|
944460
944828
|
var FERN_DIRECTORY12 = "fern";
|
|
944461
944829
|
async function getAllYamlFiles6(context3) {
|
|
@@ -944535,7 +944903,7 @@ var import_promises159 = require("fs/promises");
|
|
|
944535
944903
|
var import_yaml14 = __toESM(require_dist9(), 1);
|
|
944536
944904
|
|
|
944537
944905
|
// ../cli-migrations/lib/migrations/0.3.23/change-services-key-to-service/getAllYamlFiles.js
|
|
944538
|
-
|
|
944906
|
+
init_lib7();
|
|
944539
944907
|
init_esm14();
|
|
944540
944908
|
var FERN_DIRECTORY13 = "fern";
|
|
944541
944909
|
async function getAllYamlFiles7(context3) {
|
|
@@ -944619,7 +944987,7 @@ var import_promises160 = require("fs/promises");
|
|
|
944619
944987
|
var import_yaml15 = __toESM(require_dist9(), 1);
|
|
944620
944988
|
|
|
944621
944989
|
// ../cli-migrations/lib/migrations/0.5.4/move-service-docs-to-top-level/getAllYamlFiles.js
|
|
944622
|
-
|
|
944990
|
+
init_lib7();
|
|
944623
944991
|
init_esm14();
|
|
944624
944992
|
var FERN_DIRECTORY14 = "fern";
|
|
944625
944993
|
async function getAllYamlFiles8(context3) {
|
|
@@ -944691,7 +945059,7 @@ var __default13 = versionMigrations13;
|
|
|
944691
945059
|
var import_promises161 = require("fs/promises");
|
|
944692
945060
|
|
|
944693
945061
|
// ../cli-migrations/lib/migrations/0.9.10/add-suffix-to-docs-domain/getAllGeneratorYamlFiles.js
|
|
944694
|
-
|
|
945062
|
+
init_lib7();
|
|
944695
945063
|
init_esm14();
|
|
944696
945064
|
var FERN_DIRECTORY15 = "fern";
|
|
944697
945065
|
async function getAllGeneratorYamlFiles4(context3) {
|
|
@@ -944748,7 +945116,7 @@ var versionMigrations14 = {
|
|
|
944748
945116
|
var __default14 = versionMigrations14;
|
|
944749
945117
|
|
|
944750
945118
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migration.js
|
|
944751
|
-
|
|
945119
|
+
init_lib7();
|
|
944752
945120
|
|
|
944753
945121
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/index.js
|
|
944754
945122
|
var import_docs_config = __toESM(require_docs_config(), 1);
|
|
@@ -944756,7 +945124,7 @@ var import_legacy_docs_config = __toESM(require_legacy_docs_config(), 1);
|
|
|
944756
945124
|
var LegacyDocsSerializers = __toESM(require_serialization4(), 1);
|
|
944757
945125
|
|
|
944758
945126
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/loadRawDocsConfiguration.js
|
|
944759
|
-
|
|
945127
|
+
init_lib7();
|
|
944760
945128
|
var import_promises162 = require("fs/promises");
|
|
944761
945129
|
init_js_yaml();
|
|
944762
945130
|
async function loadRawDocsConfiguration2({ absolutePathToWorkspace }) {
|
|
@@ -944779,7 +945147,7 @@ function getAbsolutePathToDocsFolder({ absolutePathToWorkspace }) {
|
|
|
944779
945147
|
}
|
|
944780
945148
|
|
|
944781
945149
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndMultipleAPIs.js
|
|
944782
|
-
|
|
945150
|
+
init_lib7();
|
|
944783
945151
|
var import_promises164 = require("fs/promises");
|
|
944784
945152
|
init_js_yaml();
|
|
944785
945153
|
|
|
@@ -944810,7 +945178,7 @@ function isAPIReferenceSection(item) {
|
|
|
944810
945178
|
|
|
944811
945179
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/convertLegacyGeneratorsConfiguration.js
|
|
944812
945180
|
init_lib4();
|
|
944813
|
-
|
|
945181
|
+
init_lib7();
|
|
944814
945182
|
|
|
944815
945183
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/legacy/GeneratorsConfigurationSchema.js
|
|
944816
945184
|
init_zod();
|
|
@@ -944988,7 +945356,7 @@ __export(legacy_exports, {
|
|
|
944988
945356
|
});
|
|
944989
945357
|
|
|
944990
945358
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/loadRawGeneratorsConfiguration.js
|
|
944991
|
-
|
|
945359
|
+
init_lib7();
|
|
944992
945360
|
var import_promises163 = require("fs/promises");
|
|
944993
945361
|
init_js_yaml();
|
|
944994
945362
|
async function loadRawGeneratorsConfiguration2({ absolutePathToWorkspace }) {
|
|
@@ -945066,7 +945434,7 @@ async function migrateAndWriteDocsYml({ absolutePathToWorkspace, docsURLs, apiNa
|
|
|
945066
945434
|
}
|
|
945067
945435
|
|
|
945068
945436
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.js
|
|
945069
|
-
|
|
945437
|
+
init_lib7();
|
|
945070
945438
|
var import_promises165 = require("fs/promises");
|
|
945071
945439
|
init_js_yaml();
|
|
945072
945440
|
async function migrateDocsAndSingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
@@ -945106,7 +945474,7 @@ async function migrateAndWriteGeneratorsYml2({ absolutePathToWorkspace }) {
|
|
|
945106
945474
|
}
|
|
945107
945475
|
|
|
945108
945476
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlyMultipleAPIs.js
|
|
945109
|
-
|
|
945477
|
+
init_lib7();
|
|
945110
945478
|
var import_promises166 = require("fs/promises");
|
|
945111
945479
|
init_js_yaml();
|
|
945112
945480
|
var APIS_DIRECTORY3 = "apis";
|
|
@@ -945135,7 +945503,7 @@ async function migrateAndWriteGeneratorsYml3({ absolutePathToWorkspace }) {
|
|
|
945135
945503
|
}
|
|
945136
945504
|
|
|
945137
945505
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.js
|
|
945138
|
-
|
|
945506
|
+
init_lib7();
|
|
945139
945507
|
var import_promises167 = require("fs/promises");
|
|
945140
945508
|
init_js_yaml();
|
|
945141
945509
|
async function migrateOnlySingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
@@ -945230,7 +945598,7 @@ var versionMigrations15 = {
|
|
|
945230
945598
|
var __default15 = versionMigrations15;
|
|
945231
945599
|
|
|
945232
945600
|
// ../cli-migrations/lib/migrations/0.41.0-rc0/require-generators-yml/migration.js
|
|
945233
|
-
|
|
945601
|
+
init_lib7();
|
|
945234
945602
|
var import_promises168 = require("fs/promises");
|
|
945235
945603
|
init_js_yaml();
|
|
945236
945604
|
var import_yaml16 = __toESM(require_dist9(), 1);
|
|
@@ -945317,7 +945685,7 @@ var versionMigrations16 = {
|
|
|
945317
945685
|
var __default16 = versionMigrations16;
|
|
945318
945686
|
|
|
945319
945687
|
// ../cli-migrations/lib/migrations/0.54.0-rc0/use-generators-yml-specs/migration.js
|
|
945320
|
-
|
|
945688
|
+
init_lib7();
|
|
945321
945689
|
var import_promises169 = require("fs/promises");
|
|
945322
945690
|
init_js_yaml();
|
|
945323
945691
|
var import_yaml17 = __toESM(require_dist9(), 1);
|
|
@@ -945649,7 +946017,7 @@ var versionMigrations17 = {
|
|
|
945649
946017
|
var __default17 = versionMigrations17;
|
|
945650
946018
|
|
|
945651
946019
|
// ../cli-migrations/lib/migrations/0.82.1/add-path-parameter-order-setting/migration.js
|
|
945652
|
-
|
|
946020
|
+
init_lib7();
|
|
945653
946021
|
var import_promises170 = require("fs/promises");
|
|
945654
946022
|
init_js_yaml();
|
|
945655
946023
|
var migration18 = {
|
|
@@ -945775,7 +946143,7 @@ var versionMigrations18 = {
|
|
|
945775
946143
|
var __default18 = versionMigrations18;
|
|
945776
946144
|
|
|
945777
946145
|
// ../cli-migrations/lib/migrations/1.0.0/update-settings-defaults/migration.js
|
|
945778
|
-
|
|
946146
|
+
init_lib7();
|
|
945779
946147
|
var import_promises171 = require("fs/promises");
|
|
945780
946148
|
init_js_yaml();
|
|
945781
946149
|
var migration19 = {
|
|
@@ -946021,7 +946389,7 @@ var versionMigrations19 = {
|
|
|
946021
946389
|
var __default19 = versionMigrations19;
|
|
946022
946390
|
|
|
946023
946391
|
// ../cli-migrations/lib/migrations/2.0.0-rc0/update-settings-defaults/migration.js
|
|
946024
|
-
|
|
946392
|
+
init_lib7();
|
|
946025
946393
|
var import_promises172 = require("fs/promises");
|
|
946026
946394
|
init_js_yaml();
|
|
946027
946395
|
var migration20 = {
|
|
@@ -946244,7 +946612,7 @@ var versionMigrations20 = {
|
|
|
946244
946612
|
var __default20 = versionMigrations20;
|
|
946245
946613
|
|
|
946246
946614
|
// ../cli-migrations/lib/migrations/2.13.0/migrate-deprecated-generator-api-settings/migration.js
|
|
946247
|
-
|
|
946615
|
+
init_lib7();
|
|
946248
946616
|
var import_promises173 = require("fs/promises");
|
|
946249
946617
|
init_js_yaml();
|
|
946250
946618
|
var migration21 = {
|
|
@@ -946383,7 +946751,7 @@ var versionMigrations21 = {
|
|
|
946383
946751
|
var __default21 = versionMigrations21;
|
|
946384
946752
|
|
|
946385
946753
|
// ../cli-migrations/lib/migrations/3.0.0/enable-smart-casing/migration.js
|
|
946386
|
-
|
|
946754
|
+
init_lib7();
|
|
946387
946755
|
var import_promises174 = require("fs/promises");
|
|
946388
946756
|
init_js_yaml();
|
|
946389
946757
|
var migration22 = {
|
|
@@ -946610,7 +946978,7 @@ ${source_default.dim(migration23.summary)}`
|
|
|
946610
946978
|
}
|
|
946611
946979
|
|
|
946612
946980
|
// src/commands/upgrade/upgrade.ts
|
|
946613
|
-
|
|
946981
|
+
init_lib11();
|
|
946614
946982
|
var import_promises175 = require("fs/promises");
|
|
946615
946983
|
|
|
946616
946984
|
// ../../../node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.mjs
|
|
@@ -947338,7 +947706,7 @@ var immer = new Immer2();
|
|
|
947338
947706
|
var produce = immer.produce;
|
|
947339
947707
|
|
|
947340
947708
|
// src/rerunFernCliAtVersion.ts
|
|
947341
|
-
|
|
947709
|
+
init_lib11();
|
|
947342
947710
|
|
|
947343
947711
|
// src/cwd.ts
|
|
947344
947712
|
var FERN_CWD_ENV_VAR = "FERN_CWD";
|
|
@@ -947929,7 +948297,7 @@ function buildPrSuggestion({
|
|
|
947929
948297
|
|
|
947930
948298
|
// src/commands/diff/diff.ts
|
|
947931
948299
|
init_lib4();
|
|
947932
|
-
|
|
948300
|
+
init_lib7();
|
|
947933
948301
|
var import_semver17 = __toESM(require_semver2(), 1);
|
|
947934
948302
|
async function diff({
|
|
947935
948303
|
context: context3,
|
|
@@ -948290,7 +948658,7 @@ async function previewDocsWorkspace({
|
|
|
948290
948658
|
}
|
|
948291
948659
|
|
|
948292
948660
|
// src/commands/docs-diff/docsDiff.ts
|
|
948293
|
-
|
|
948661
|
+
init_lib7();
|
|
948294
948662
|
var import_promises177 = require("fs/promises");
|
|
948295
948663
|
var import_pngjs = __toESM(require_png2(), 1);
|
|
948296
948664
|
async function getSlugForFiles({
|
|
@@ -948721,7 +949089,7 @@ async function docsDiff({
|
|
|
948721
949089
|
|
|
948722
949090
|
// src/commands/docs-md-generate/generateLibraryDocs.ts
|
|
948723
949091
|
init_lib4();
|
|
948724
|
-
|
|
949092
|
+
init_lib7();
|
|
948725
949093
|
|
|
948726
949094
|
// ../library-docs-generator/lib/cpp/src/context.js
|
|
948727
949095
|
var entityRegistry = /* @__PURE__ */ new Map();
|
|
@@ -953529,7 +953897,7 @@ Found ${previewDeployments.length} preview deployment(s):
|
|
|
953529
953897
|
}
|
|
953530
953898
|
|
|
953531
953899
|
// src/commands/docs-theme/ThemeExporter.ts
|
|
953532
|
-
|
|
953900
|
+
init_lib7();
|
|
953533
953901
|
var import_promises179 = require("fs/promises");
|
|
953534
953902
|
init_js_yaml();
|
|
953535
953903
|
var import_path97 = __toESM(require("path"), 1);
|
|
@@ -953704,7 +954072,7 @@ init_js_yaml();
|
|
|
953704
954072
|
var import_path99 = __toESM(require("path"), 1);
|
|
953705
954073
|
|
|
953706
954074
|
// src/commands/docs-theme/ThemeConfigProcessor.ts
|
|
953707
|
-
|
|
954075
|
+
init_lib7();
|
|
953708
954076
|
var import_child_process12 = require("child_process");
|
|
953709
954077
|
var import_crypto9 = require("crypto");
|
|
953710
954078
|
var import_promises180 = require("fs/promises");
|
|
@@ -954114,7 +954482,7 @@ async function downgrade({
|
|
|
954114
954482
|
}
|
|
954115
954483
|
|
|
954116
954484
|
// src/commands/export/generateOpenAPIForWorkspaces.ts
|
|
954117
|
-
|
|
954485
|
+
init_lib7();
|
|
954118
954486
|
var import_promises183 = require("fs/promises");
|
|
954119
954487
|
init_js_yaml();
|
|
954120
954488
|
|
|
@@ -955534,7 +955902,7 @@ async function formatWorkspaces({
|
|
|
955534
955902
|
// src/commands/generate/generateDocsWorkspace.ts
|
|
955535
955903
|
init_lib4();
|
|
955536
955904
|
init_js();
|
|
955537
|
-
|
|
955905
|
+
init_lib7();
|
|
955538
955906
|
|
|
955539
955907
|
// src/utils/environment.ts
|
|
955540
955908
|
function detectCISource() {
|
|
@@ -955825,7 +956193,7 @@ function summarizeValidationErrors(errors4) {
|
|
|
955825
956193
|
}
|
|
955826
956194
|
|
|
955827
956195
|
// src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts
|
|
955828
|
-
|
|
956196
|
+
init_lib7();
|
|
955829
956197
|
var import_path100 = __toESM(require("path"), 1);
|
|
955830
956198
|
|
|
955831
956199
|
// src/commands/generate-ir/generateIrForFernWorkspace.ts
|
|
@@ -955900,7 +956268,7 @@ async function generateDynamicIrForWorkspaces({
|
|
|
955900
956268
|
}
|
|
955901
956269
|
|
|
955902
956270
|
// src/commands/generate-fdr/generateFdrApiDefinitionForWorkspaces.ts
|
|
955903
|
-
|
|
956271
|
+
init_lib7();
|
|
955904
956272
|
var import_path101 = __toESM(require("path"), 1);
|
|
955905
956273
|
async function generateFdrApiDefinitionForWorkspaces({
|
|
955906
956274
|
project,
|
|
@@ -955947,7 +956315,7 @@ async function generateFdrApiDefinitionForWorkspaces({
|
|
|
955947
956315
|
}
|
|
955948
956316
|
|
|
955949
956317
|
// src/commands/generate-ir/generateIrForWorkspaces.ts
|
|
955950
|
-
|
|
956318
|
+
init_lib7();
|
|
955951
956319
|
var import_path102 = __toESM(require("path"), 1);
|
|
955952
956320
|
async function generateIrForWorkspaces({
|
|
955953
956321
|
project,
|
|
@@ -956033,7 +956401,7 @@ async function getIntermediateRepresentation2({
|
|
|
956033
956401
|
}
|
|
956034
956402
|
|
|
956035
956403
|
// src/commands/generate-openapi-fdr/generateOpenApiToFdrApiDefinitionForWorkspaces.ts
|
|
956036
|
-
|
|
956404
|
+
init_lib7();
|
|
956037
956405
|
var import_path103 = __toESM(require("path"), 1);
|
|
956038
956406
|
async function generateOpenApiToFdrApiDefinitionForWorkspaces({
|
|
956039
956407
|
project,
|
|
@@ -956054,7 +956422,7 @@ async function generateOpenApiToFdrApiDefinitionForWorkspaces({
|
|
|
956054
956422
|
}
|
|
956055
956423
|
|
|
956056
956424
|
// src/commands/generate-openapi-ir/generateOpenAPIIrForWorkspaces.ts
|
|
956057
|
-
|
|
956425
|
+
init_lib7();
|
|
956058
956426
|
var import_path104 = __toESM(require("path"), 1);
|
|
956059
956427
|
async function generateOpenAPIIrForWorkspaces({
|
|
956060
956428
|
project,
|
|
@@ -956089,7 +956457,7 @@ async function generateOpenAPIIrForWorkspaces({
|
|
|
956089
956457
|
}
|
|
956090
956458
|
|
|
956091
956459
|
// src/commands/generate-overrides/compareOpenAPISpecs.ts
|
|
956092
|
-
|
|
956460
|
+
init_lib7();
|
|
956093
956461
|
var import_promises184 = require("fs/promises");
|
|
956094
956462
|
init_js_yaml();
|
|
956095
956463
|
async function compareOpenAPISpecs({
|
|
@@ -956240,7 +956608,7 @@ function deepEqual(a3, b8) {
|
|
|
956240
956608
|
}
|
|
956241
956609
|
|
|
956242
956610
|
// src/commands/generate-overrides/writeOverridesForWorkspaces.ts
|
|
956243
|
-
|
|
956611
|
+
init_lib7();
|
|
956244
956612
|
var import_promises185 = require("fs/promises");
|
|
956245
956613
|
init_js_yaml();
|
|
956246
956614
|
async function writeOverridesForWorkspaces({
|
|
@@ -956400,7 +956768,7 @@ async function installDependencies({ cliContext }) {
|
|
|
956400
956768
|
}
|
|
956401
956769
|
|
|
956402
956770
|
// src/commands/jsonschema/generateJsonschemaForWorkspace.ts
|
|
956403
|
-
|
|
956771
|
+
init_lib7();
|
|
956404
956772
|
|
|
956405
956773
|
// ../fern-definition/ir-to-jsonschema/lib/converters/convertTypeDeclarationToJsonSchema.js
|
|
956406
956774
|
init_lib4();
|
|
@@ -956820,7 +957188,7 @@ async function generateJsonschemaForWorkspaces({
|
|
|
956820
957188
|
}
|
|
956821
957189
|
|
|
956822
957190
|
// src/commands/merge/mergeOpenAPIWithOverrides.ts
|
|
956823
|
-
|
|
957191
|
+
init_lib7();
|
|
956824
957192
|
var import_promises187 = require("fs/promises");
|
|
956825
957193
|
init_js_yaml();
|
|
956826
957194
|
var HTTP_METHODS2 = /* @__PURE__ */ new Set(["get", "put", "post", "delete", "options", "head", "patch", "trace"]);
|
|
@@ -957591,9 +957959,9 @@ function getAIEnhancerConfig2() {
|
|
|
957591
957959
|
}
|
|
957592
957960
|
|
|
957593
957961
|
// src/commands/sdk-diff/sdkDiffCommand.ts
|
|
957594
|
-
|
|
957962
|
+
init_lib41();
|
|
957595
957963
|
init_lib4();
|
|
957596
|
-
|
|
957964
|
+
init_lib7();
|
|
957597
957965
|
var import_autoversion5 = __toESM(require_autoversion(), 1);
|
|
957598
957966
|
var import_child_process13 = require("child_process");
|
|
957599
957967
|
var import_util70 = require("util");
|
|
@@ -957784,7 +958152,7 @@ async function generateDiff({
|
|
|
957784
958152
|
}
|
|
957785
958153
|
|
|
957786
958154
|
// src/commands/sdk-preview/sdkPreview.ts
|
|
957787
|
-
|
|
958155
|
+
init_lib7();
|
|
957788
958156
|
var import_promises189 = __toESM(require("fs/promises"), 1);
|
|
957789
958157
|
|
|
957790
958158
|
// src/commands/sdk-preview/computePreviewVersion.ts
|
|
@@ -958091,7 +958459,7 @@ async function sdkPreview({
|
|
|
958091
958459
|
}
|
|
958092
958460
|
|
|
958093
958461
|
// src/commands/self-update/selfUpdate.ts
|
|
958094
|
-
|
|
958462
|
+
init_lib11();
|
|
958095
958463
|
var import_promises190 = require("fs/promises");
|
|
958096
958464
|
var import_path106 = require("path");
|
|
958097
958465
|
async function getPackageManagerBinDir(logger4, pm2) {
|
|
@@ -958326,7 +958694,7 @@ Resolved to: ${installationMethod.resolvedPath}`;
|
|
|
958326
958694
|
}
|
|
958327
958695
|
|
|
958328
958696
|
// src/commands/test/testOutput.ts
|
|
958329
|
-
|
|
958697
|
+
init_lib11();
|
|
958330
958698
|
async function testOutput({
|
|
958331
958699
|
cliContext,
|
|
958332
958700
|
project,
|
|
@@ -958440,7 +958808,7 @@ async function generateToken({
|
|
|
958440
958808
|
}
|
|
958441
958809
|
|
|
958442
958810
|
// src/commands/upgrade/updateApiSpec.ts
|
|
958443
|
-
|
|
958811
|
+
init_lib7();
|
|
958444
958812
|
var fs27 = __toESM(require("fs"), 1);
|
|
958445
958813
|
var import_promises191 = require("fs/promises");
|
|
958446
958814
|
init_graphql();
|
|
@@ -958762,7 +959130,7 @@ async function validateDocsBrokenLinks({
|
|
|
958762
959130
|
}
|
|
958763
959131
|
|
|
958764
959132
|
// src/commands/validate/validateMdx.ts
|
|
958765
|
-
|
|
959133
|
+
init_lib40();
|
|
958766
959134
|
var import_fs40 = require("fs");
|
|
958767
959135
|
var import_gray_matter11 = __toESM(require_gray_matter(), 1);
|
|
958768
959136
|
var import_path107 = __toESM(require("path"), 1);
|
|
@@ -958898,7 +959266,7 @@ function logMdxValidationResults({
|
|
|
958898
959266
|
}
|
|
958899
959267
|
|
|
958900
959268
|
// src/commands/validate/validateWorkspaces.ts
|
|
958901
|
-
|
|
959269
|
+
init_lib7();
|
|
958902
959270
|
|
|
958903
959271
|
// src/commands/validate/buildCheckJsonResult.ts
|
|
958904
959272
|
function buildCheckJsonResult({
|
|
@@ -959287,7 +959655,7 @@ async function validateWorkspaces({
|
|
|
959287
959655
|
}
|
|
959288
959656
|
|
|
959289
959657
|
// src/commands/write-definition/writeDefinitionForWorkspaces.ts
|
|
959290
|
-
|
|
959658
|
+
init_lib7();
|
|
959291
959659
|
var import_promises193 = require("fs/promises");
|
|
959292
959660
|
init_js_yaml();
|
|
959293
959661
|
var import_path108 = __toESM(require("path"), 1);
|
|
@@ -959390,7 +959758,7 @@ async function writeFernDefinition({
|
|
|
959390
959758
|
}
|
|
959391
959759
|
|
|
959392
959760
|
// src/commands/write-docs-definition/writeDocsDefinitionForProject.ts
|
|
959393
|
-
|
|
959761
|
+
init_lib7();
|
|
959394
959762
|
var import_promises194 = require("fs/promises");
|
|
959395
959763
|
async function writeDocsDefinitionForProject({
|
|
959396
959764
|
project,
|
|
@@ -960098,6 +960466,11 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960098
960466
|
default: true,
|
|
960099
960467
|
hidden: true,
|
|
960100
960468
|
description: "Run replay after generation (use --no-replay to skip)"
|
|
960469
|
+
}).option("verify", {
|
|
960470
|
+
boolean: true,
|
|
960471
|
+
default: false,
|
|
960472
|
+
hidden: true,
|
|
960473
|
+
description: "Run the generator's verify.sh script in a validator container after generation (local generation only)"
|
|
960101
960474
|
}).option("retry-rate-limited", {
|
|
960102
960475
|
boolean: true,
|
|
960103
960476
|
default: false,
|
|
@@ -960223,6 +960596,7 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960223
960596
|
dynamicIrOnly: argv["dynamic-ir-only"],
|
|
960224
960597
|
outputDir: argv.output,
|
|
960225
960598
|
noReplay: !argv.replay,
|
|
960599
|
+
verify: argv.verify,
|
|
960226
960600
|
retryRateLimited: argv["retry-rate-limited"],
|
|
960227
960601
|
requireEnvVars: argv["require-env-vars"],
|
|
960228
960602
|
skipIfNoDiff: argv["skip-if-no-diff"]
|
|
@@ -960283,6 +960657,7 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960283
960657
|
dynamicIrOnly: argv["dynamic-ir-only"],
|
|
960284
960658
|
outputDir: argv.output,
|
|
960285
960659
|
noReplay: !argv.replay,
|
|
960660
|
+
verify: argv.verify,
|
|
960286
960661
|
retryRateLimited: argv["retry-rate-limited"],
|
|
960287
960662
|
requireEnvVars: argv["require-env-vars"],
|
|
960288
960663
|
skipIfNoDiff: argv["skip-if-no-diff"]
|