@fern-api/fern-api-dev 5.22.0-8-gbbdfd35c2e0 → 5.22.1-1-g08a6ca02787
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 +937 -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.22.
|
|
661754
|
+
version: "5.22.1-1-g08a6ca02787",
|
|
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.22.
|
|
661809
|
+
version: "5.22.1-1-g08a6ca02787",
|
|
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.22.
|
|
853089
|
+
const version7 = "5.22.1-1-g08a6ca02787";
|
|
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);
|
|
@@ -853366,6 +853785,10 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
853366
853785
|
code: CliError.Code.EnvironmentError
|
|
853367
853786
|
});
|
|
853368
853787
|
}
|
|
853788
|
+
const workspaceConfigPath = import_path63.default.join(absolutePathToBundleFolder, "pnpm-workspace.yaml");
|
|
853789
|
+
if (!(0, import_fs27.existsSync)(workspaceConfigPath)) {
|
|
853790
|
+
await (0, import_promises87.writeFile)(workspaceConfigPath, "onlyBuiltDependencies:\n - esbuild\n");
|
|
853791
|
+
}
|
|
853369
853792
|
try {
|
|
853370
853793
|
logger4.debug("Installing esbuild");
|
|
853371
853794
|
await loggingExeca(logger4, "pnpm", ["i", "esbuild"], {
|
|
@@ -853604,9 +854027,9 @@ function writeNodePolyfillScript(dir) {
|
|
|
853604
854027
|
|
|
853605
854028
|
// ../docs-preview/lib/previewDocs.js
|
|
853606
854029
|
init_lib4();
|
|
853607
|
-
|
|
854030
|
+
init_lib40();
|
|
853608
854031
|
init_js();
|
|
853609
|
-
|
|
854032
|
+
init_lib7();
|
|
853610
854033
|
var import_promises88 = require("fs/promises");
|
|
853611
854034
|
var import_gray_matter9 = __toESM(require_gray_matter(), 1);
|
|
853612
854035
|
var frontmatterPositionCache = /* @__PURE__ */ new Map();
|
|
@@ -854908,7 +855331,7 @@ ${err.stack}`);
|
|
|
854908
855331
|
|
|
854909
855332
|
// ../docs-preview/lib/runPreviewServer.js
|
|
854910
855333
|
init_js();
|
|
854911
|
-
|
|
855334
|
+
init_lib7();
|
|
854912
855335
|
var import_cors2 = __toESM(require_lib14(), 1);
|
|
854913
855336
|
var import_express4 = __toESM(require_express3(), 1);
|
|
854914
855337
|
var import_promises90 = require("fs/promises");
|
|
@@ -855682,6 +856105,7 @@ function extractPublishTarget(packages) {
|
|
|
855682
856105
|
|
|
855683
856106
|
// ../workspace/api-workspace-validator/lib/logViolations.js
|
|
855684
856107
|
init_lib4();
|
|
856108
|
+
init_lib5();
|
|
855685
856109
|
init_lodash();
|
|
855686
856110
|
function logViolations({ context: context3, violations, logWarnings, logSummary = true, logBreadcrumbs = true, elapsedMillis = 0 }) {
|
|
855687
856111
|
const deduplicatedViolations = [];
|
|
@@ -855838,7 +856262,7 @@ function getViolationStats(violations) {
|
|
|
855838
856262
|
}
|
|
855839
856263
|
|
|
855840
856264
|
// ../yaml/generators-validator/lib/validateGeneratorsWorkspace.js
|
|
855841
|
-
|
|
856265
|
+
init_lib7();
|
|
855842
856266
|
|
|
855843
856267
|
// ../yaml/generators-validator/lib/ast/visitGeneratorsYamlAst.js
|
|
855844
856268
|
init_lib4();
|
|
@@ -856225,13 +856649,13 @@ function parseIssue(issue2) {
|
|
|
856225
856649
|
}
|
|
856226
856650
|
|
|
856227
856651
|
// ../workspace/loader/lib/loadAPIWorkspace.js
|
|
856228
|
-
|
|
856652
|
+
init_lib7();
|
|
856229
856653
|
|
|
856230
856654
|
// ../workspace/loader/lib/loadAPIChangelog.js
|
|
856231
|
-
|
|
856655
|
+
init_lib7();
|
|
856232
856656
|
|
|
856233
856657
|
// ../workspace/loader/lib/listFernFiles.js
|
|
856234
|
-
|
|
856658
|
+
init_lib7();
|
|
856235
856659
|
var import_promises92 = require("fs/promises");
|
|
856236
856660
|
async function listFernFiles2(root6, extensionGlob) {
|
|
856237
856661
|
const files = [];
|
|
@@ -856553,7 +856977,7 @@ async function loadAPIWorkspace({ absolutePathToWorkspace, context: context3, cl
|
|
|
856553
856977
|
|
|
856554
856978
|
// ../workspace/loader/lib/loadDocsWorkspace.js
|
|
856555
856979
|
init_lib4();
|
|
856556
|
-
|
|
856980
|
+
init_lib7();
|
|
856557
856981
|
var import_promises93 = require("fs/promises");
|
|
856558
856982
|
init_js_yaml();
|
|
856559
856983
|
|
|
@@ -862743,7 +863167,7 @@ ${result.error?.message ?? "Unknown error"}`,
|
|
|
862743
863167
|
}
|
|
862744
863168
|
|
|
862745
863169
|
// ../generation/remote-generation/remote-workspace-runner/lib/downloadSnippetsForTask.js
|
|
862746
|
-
|
|
863170
|
+
init_lib7();
|
|
862747
863171
|
var import_fs30 = require("fs");
|
|
862748
863172
|
var import_promises94 = require("fs/promises");
|
|
862749
863173
|
var import_promises95 = require("stream/promises");
|
|
@@ -862770,7 +863194,7 @@ async function downloadFileForTask({ s3PreSignedReadUrl, absolutePathToLocalOutp
|
|
|
862770
863194
|
}
|
|
862771
863195
|
|
|
862772
863196
|
// ../generation/remote-generation/remote-workspace-runner/lib/resolveAutoDiscoveredFernignorePath.js
|
|
862773
|
-
|
|
863197
|
+
init_lib7();
|
|
862774
863198
|
async function resolveAutoDiscoveredFernignorePath({ generatorInvocation, context: context3 }) {
|
|
862775
863199
|
if (generatorInvocation.absolutePathToLocalOutput == null) {
|
|
862776
863200
|
return void 0;
|
|
@@ -862789,7 +863213,7 @@ init_js();
|
|
|
862789
863213
|
var import_autoversion = __toESM(require_autoversion(), 1);
|
|
862790
863214
|
|
|
862791
863215
|
// ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
|
|
862792
|
-
|
|
863216
|
+
init_lib7();
|
|
862793
863217
|
var import_form_data4 = __toESM(require_form_data(), 1);
|
|
862794
863218
|
var import_promises96 = require("fs/promises");
|
|
862795
863219
|
init_js_yaml();
|
|
@@ -863136,13 +863560,14 @@ function pollJobAndReportStatus({ job, taskId, taskHandler, context: context3 })
|
|
|
863136
863560
|
|
|
863137
863561
|
// ../generation/remote-generation/remote-workspace-runner/lib/RemoteTaskHandler.js
|
|
863138
863562
|
init_lib4();
|
|
863139
|
-
|
|
863563
|
+
init_lib7();
|
|
863140
863564
|
var import_pipeline = __toESM(require_pipeline2(), 1);
|
|
863141
|
-
|
|
863565
|
+
init_lib5();
|
|
863566
|
+
init_lib11();
|
|
863142
863567
|
var import_fs31 = require("fs");
|
|
863143
|
-
var
|
|
863568
|
+
var import_promises98 = require("fs/promises");
|
|
863144
863569
|
var import_path67 = __toESM(require("path"), 1);
|
|
863145
|
-
var
|
|
863570
|
+
var import_promises99 = require("stream/promises");
|
|
863146
863571
|
|
|
863147
863572
|
// ../../../node_modules/.pnpm/terminal-link@3.0.0/node_modules/terminal-link/index.js
|
|
863148
863573
|
var import_supports_hyperlinks = __toESM(require_supports_hyperlinks(), 1);
|
|
@@ -863160,7 +863585,7 @@ terminalLink.stderr = (text9, url3, options2 = {}) => terminalLink(text9, url3,
|
|
|
863160
863585
|
terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
863161
863586
|
|
|
863162
863587
|
// ../generation/remote-generation/remote-workspace-runner/lib/RemoteTaskHandler.js
|
|
863163
|
-
var
|
|
863588
|
+
var import_tmp_promise11 = __toESM(require_tmp_promise(), 1);
|
|
863164
863589
|
var import_yauzl = __toESM(require_yauzl(), 1);
|
|
863165
863590
|
var FIDDLE_PIPELINE_RESULT_LOG_REGEX = /^Pipeline: raw result \(\d+ bytes\): (\{.*\})$/;
|
|
863166
863591
|
var RemoteTaskHandler = class {
|
|
@@ -863453,11 +863878,11 @@ async function downloadZipForTask({ s3PreSignedReadUrl, absolutePathToLocalOutpu
|
|
|
863453
863878
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
863454
863879
|
responseType: "stream"
|
|
863455
863880
|
});
|
|
863456
|
-
const tmpDir = await
|
|
863881
|
+
const tmpDir = await import_tmp_promise11.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
863457
863882
|
const outputZipPath = import_path67.default.join(tmpDir.path, "output.zip");
|
|
863458
|
-
await (0,
|
|
863883
|
+
await (0, import_promises99.pipeline)(request7.data, (0, import_fs31.createWriteStream)(outputZipPath));
|
|
863459
863884
|
await forceRemoveDirectory(absolutePathToLocalOutput);
|
|
863460
|
-
await (0,
|
|
863885
|
+
await (0, import_promises98.mkdir)(absolutePathToLocalOutput, { recursive: true });
|
|
863461
863886
|
await extractZipToDirectory(outputZipPath, absolutePathToLocalOutput);
|
|
863462
863887
|
}
|
|
863463
863888
|
async function forceRemoveDirectory(dirPath) {
|
|
@@ -863465,22 +863890,22 @@ async function forceRemoveDirectory(dirPath) {
|
|
|
863465
863890
|
return;
|
|
863466
863891
|
}
|
|
863467
863892
|
await makeWritableRecursive(dirPath);
|
|
863468
|
-
await (0,
|
|
863893
|
+
await (0, import_promises98.rm)(dirPath, { recursive: true, force: true });
|
|
863469
863894
|
}
|
|
863470
863895
|
async function makeWritableRecursive(dirPath) {
|
|
863471
863896
|
try {
|
|
863472
|
-
const entries24 = await (0,
|
|
863897
|
+
const entries24 = await (0, import_promises98.readdir)(dirPath, { withFileTypes: true });
|
|
863473
863898
|
for (const entry of entries24) {
|
|
863474
863899
|
const fullPath = AbsoluteFilePath2.of(import_path67.default.join(dirPath, entry.name));
|
|
863475
863900
|
if (entry.isDirectory()) {
|
|
863476
863901
|
await makeWritableRecursive(fullPath);
|
|
863477
863902
|
}
|
|
863478
863903
|
try {
|
|
863479
|
-
await (0,
|
|
863904
|
+
await (0, import_promises98.chmod)(fullPath, 493);
|
|
863480
863905
|
} catch {
|
|
863481
863906
|
}
|
|
863482
863907
|
}
|
|
863483
|
-
await (0,
|
|
863908
|
+
await (0, import_promises98.chmod)(dirPath, 493);
|
|
863484
863909
|
} catch {
|
|
863485
863910
|
}
|
|
863486
863911
|
}
|
|
@@ -863523,10 +863948,10 @@ async function downloadFilesWithFernIgnoreInExistingRepo({ s3PreSignedReadUrl, a
|
|
|
863523
863948
|
await runGitCommand(["restore", "."], absolutePathToLocalOutput, context3);
|
|
863524
863949
|
}
|
|
863525
863950
|
async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absolutePathToLocalOutput, context: context3 }) {
|
|
863526
|
-
const tmpOutputResolutionDir = AbsoluteFilePath2.of((await
|
|
863951
|
+
const tmpOutputResolutionDir = AbsoluteFilePath2.of((await import_tmp_promise11.default.dir({})).path);
|
|
863527
863952
|
const absolutePathToFernignore = join8(absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME));
|
|
863528
863953
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
863529
|
-
await (0,
|
|
863954
|
+
await (0, import_promises98.cp)(absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
863530
863955
|
await runGitCommand(["init"], tmpOutputResolutionDir, context3);
|
|
863531
863956
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context3);
|
|
863532
863957
|
await runGitCommand([
|
|
@@ -863549,15 +863974,15 @@ async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absol
|
|
|
863549
863974
|
await runGitCommand(["restore", "."], tmpOutputResolutionDir, context3);
|
|
863550
863975
|
await forceRemoveDirectory(join8(tmpOutputResolutionDir, RelativeFilePath2.of(".git")));
|
|
863551
863976
|
await forceRemoveDirectory(absolutePathToLocalOutput);
|
|
863552
|
-
await (0,
|
|
863977
|
+
await (0, import_promises98.cp)(tmpOutputResolutionDir, absolutePathToLocalOutput, { recursive: true });
|
|
863553
863978
|
}
|
|
863554
863979
|
async function downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath }) {
|
|
863555
863980
|
const request7 = await axios_default.get(s3PreSignedReadUrl, {
|
|
863556
863981
|
responseType: "stream"
|
|
863557
863982
|
});
|
|
863558
|
-
const tmpDir = await
|
|
863983
|
+
const tmpDir = await import_tmp_promise11.default.dir({ prefix: "fern", unsafeCleanup: true });
|
|
863559
863984
|
const outputZipPath = import_path67.default.join(tmpDir.path, "output.zip");
|
|
863560
|
-
await (0,
|
|
863985
|
+
await (0, import_promises99.pipeline)(request7.data, (0, import_fs31.createWriteStream)(outputZipPath));
|
|
863561
863986
|
await extractZipToDirectory(outputZipPath, outputPath);
|
|
863562
863987
|
}
|
|
863563
863988
|
async function extractZipToDirectory(zipPath, outputDir) {
|
|
@@ -863572,10 +863997,10 @@ async function extractZipToDirectory(zipPath, outputDir) {
|
|
|
863572
863997
|
zipFile.on("entry", (entry) => {
|
|
863573
863998
|
const outputPath = import_path67.default.join(outputDir, entry.fileName);
|
|
863574
863999
|
if (entry.fileName.endsWith("/")) {
|
|
863575
|
-
(0,
|
|
864000
|
+
(0, import_promises98.mkdir)(outputPath, { recursive: true }).then(() => zipFile.readEntry()).catch(reject);
|
|
863576
864001
|
return;
|
|
863577
864002
|
}
|
|
863578
|
-
(0,
|
|
864003
|
+
(0, import_promises98.mkdir)(import_path67.default.dirname(outputPath), { recursive: true }).then(() => {
|
|
863579
864004
|
zipFile.openReadStream(entry, (streamErr, readStream2) => {
|
|
863580
864005
|
if (streamErr || !readStream2) {
|
|
863581
864006
|
reject(streamErr ?? new Error("Failed to open read stream"));
|
|
@@ -863591,10 +864016,10 @@ async function extractZipToDirectory(zipPath, outputDir) {
|
|
|
863591
864016
|
}
|
|
863592
864017
|
|
|
863593
864018
|
// ../generation/remote-generation/remote-workspace-runner/lib/SourceUploader.js
|
|
863594
|
-
|
|
863595
|
-
|
|
863596
|
-
var
|
|
863597
|
-
var
|
|
864019
|
+
init_lib7();
|
|
864020
|
+
init_lib11();
|
|
864021
|
+
var import_promises100 = require("fs/promises");
|
|
864022
|
+
var import_tmp_promise12 = __toESM(require_tmp_promise(), 1);
|
|
863598
864023
|
var PROTOBUF_ZIP_FILENAME = "proto.zip";
|
|
863599
864024
|
var SourceUploader = class {
|
|
863600
864025
|
sourceTypes;
|
|
@@ -863614,7 +864039,7 @@ var SourceUploader = class {
|
|
|
863614
864039
|
}
|
|
863615
864040
|
async uploadSource(source2, uploadURL) {
|
|
863616
864041
|
const uploadCommand = await this.getUploadCommand(source2);
|
|
863617
|
-
const fileData = await (0,
|
|
864042
|
+
const fileData = await (0, import_promises100.readFile)(uploadCommand.absoluteFilePath);
|
|
863618
864043
|
const response = await fetch(uploadURL, {
|
|
863619
864044
|
method: "PUT",
|
|
863620
864045
|
body: fileData,
|
|
@@ -863634,7 +864059,7 @@ var SourceUploader = class {
|
|
|
863634
864059
|
absoluteFilePath,
|
|
863635
864060
|
cleanup: async () => {
|
|
863636
864061
|
this.context.logger.debug(`Removing ${absoluteFilePath}`);
|
|
863637
|
-
await (0,
|
|
864062
|
+
await (0, import_promises100.unlink)(absoluteFilePath);
|
|
863638
864063
|
}
|
|
863639
864064
|
};
|
|
863640
864065
|
}
|
|
@@ -863645,7 +864070,7 @@ var SourceUploader = class {
|
|
|
863645
864070
|
};
|
|
863646
864071
|
}
|
|
863647
864072
|
async zipSource(absolutePathToSource) {
|
|
863648
|
-
const tmpDir = await
|
|
864073
|
+
const tmpDir = await import_tmp_promise12.default.dir();
|
|
863649
864074
|
const destination = join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of(PROTOBUF_ZIP_FILENAME));
|
|
863650
864075
|
this.context.logger.debug(`Zipping source ${absolutePathToSource} into ${destination}`);
|
|
863651
864076
|
await loggingExeca(this.context.logger, "zip", ["-r", destination, "."], {
|
|
@@ -864228,9 +864653,9 @@ init_lib4();
|
|
|
864228
864653
|
// ../generation/remote-generation/remote-workspace-runner/lib/publishDocs.js
|
|
864229
864654
|
init_lib4();
|
|
864230
864655
|
init_js();
|
|
864231
|
-
|
|
864656
|
+
init_lib7();
|
|
864232
864657
|
var import_crypto8 = require("crypto");
|
|
864233
|
-
var
|
|
864658
|
+
var import_promises101 = require("fs/promises");
|
|
864234
864659
|
init_lodash();
|
|
864235
864660
|
var mime2 = __toESM(require_mime_types(), 1);
|
|
864236
864661
|
|
|
@@ -864309,7 +864734,7 @@ async function unlockDeploy({ fdrOrigin, token, domain: domain3, basepath }) {
|
|
|
864309
864734
|
}
|
|
864310
864735
|
}
|
|
864311
864736
|
async function calculateFileHash(absoluteFilePath) {
|
|
864312
|
-
const fileBuffer = await (0,
|
|
864737
|
+
const fileBuffer = await (0, import_promises101.readFile)(absoluteFilePath);
|
|
864313
864738
|
return (0, import_crypto8.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
|
|
864314
864739
|
}
|
|
864315
864740
|
function sanitizeRelativePathForS3(relativeFilePath) {
|
|
@@ -864645,13 +865070,13 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
|
|
|
864645
865070
|
};
|
|
864646
865071
|
const localeAwareMarkdownLoader = async (filepath) => {
|
|
864647
865072
|
const pathToRead = await resolveLocalePath(filepath);
|
|
864648
|
-
const raw = await (0,
|
|
865073
|
+
const raw = await (0, import_promises101.readFile)(pathToRead, "utf-8");
|
|
864649
865074
|
const fmMatch = raw.match(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/);
|
|
864650
865075
|
return fmMatch != null ? raw.slice(fmMatch[0].length) : raw;
|
|
864651
865076
|
};
|
|
864652
865077
|
const localeAwareFileLoader = async (filepath) => {
|
|
864653
865078
|
const pathToRead = await resolveLocalePath(filepath);
|
|
864654
|
-
return (0,
|
|
865079
|
+
return (0, import_promises101.readFile)(pathToRead, "utf-8");
|
|
864655
865080
|
};
|
|
864656
865081
|
const translatedPageEntries = await Promise.all(Object.entries(localePages).map(async ([path107, rawMarkdown]) => {
|
|
864657
865082
|
try {
|
|
@@ -864818,7 +865243,7 @@ async function uploadFiles(filesToUpload, docsWorkspacePath, context3, batchSize
|
|
|
864818
865243
|
try {
|
|
864819
865244
|
const uploadUrl = extractUploadUrl(urlValue);
|
|
864820
865245
|
const mimeType = mime2.lookup(absoluteFilePath);
|
|
864821
|
-
await axios_default.put(uploadUrl, await (0,
|
|
865246
|
+
await axios_default.put(uploadUrl, await (0, import_promises101.readFile)(absoluteFilePath), {
|
|
864822
865247
|
headers: {
|
|
864823
865248
|
"Content-Type": mimeType === false ? "application/octet-stream" : mimeType,
|
|
864824
865249
|
// Set max cache control for S3 uploads
|
|
@@ -865476,7 +865901,7 @@ var LegacyDocsPublisher = class {
|
|
|
865476
865901
|
previewId,
|
|
865477
865902
|
disableTemplates: void 0,
|
|
865478
865903
|
skipUpload,
|
|
865479
|
-
cliVersion: "5.22.
|
|
865904
|
+
cliVersion: "5.22.1-1-g08a6ca02787",
|
|
865480
865905
|
loginCommand: "fern auth login"
|
|
865481
865906
|
});
|
|
865482
865907
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -866446,8 +866871,8 @@ function addDocsCommand(cli) {
|
|
|
866446
866871
|
|
|
866447
866872
|
// ../cli-v2/lib/commands/init/command.js
|
|
866448
866873
|
init_lib4();
|
|
866449
|
-
|
|
866450
|
-
var
|
|
866874
|
+
init_lib7();
|
|
866875
|
+
var import_promises102 = require("fs/promises");
|
|
866451
866876
|
var import_path69 = __toESM(require("path"), 1);
|
|
866452
866877
|
|
|
866453
866878
|
// ../cli-v2/lib/config/fern-yml/FernYmlBuilder.js
|
|
@@ -866644,7 +867069,8 @@ components:
|
|
|
866644
867069
|
|
|
866645
867070
|
// ../cli-v2/lib/init/Wizard.js
|
|
866646
867071
|
init_lib4();
|
|
866647
|
-
|
|
867072
|
+
init_lib7();
|
|
867073
|
+
init_lib5();
|
|
866648
867074
|
var import_child_process8 = require("child_process");
|
|
866649
867075
|
var import_path68 = __toESM(require("path"), 1);
|
|
866650
867076
|
|
|
@@ -867326,7 +867752,7 @@ var InitCommand = class {
|
|
|
867326
867752
|
apiPath,
|
|
867327
867753
|
defaultGroup: result.defaultGroup
|
|
867328
867754
|
});
|
|
867329
|
-
await (0,
|
|
867755
|
+
await (0, import_promises102.writeFile)(fernYmlPath, fernYmlContent, "utf-8");
|
|
867330
867756
|
context3.stderr.info(`
|
|
867331
867757
|
${Icons.success} Created ${FERN_YML_FILENAME}`);
|
|
867332
867758
|
}
|
|
@@ -867348,9 +867774,9 @@ var InitCommand = class {
|
|
|
867348
867774
|
}
|
|
867349
867775
|
async writeSpecFile(cwd2, filename, content5) {
|
|
867350
867776
|
const specsDir = join8(cwd2, RelativeFilePath2.of(SPECS_DIR));
|
|
867351
|
-
await (0,
|
|
867777
|
+
await (0, import_promises102.mkdir)(specsDir, { recursive: true });
|
|
867352
867778
|
const filePath = join8(specsDir, RelativeFilePath2.of(filename));
|
|
867353
|
-
await (0,
|
|
867779
|
+
await (0, import_promises102.writeFile)(filePath, content5, "utf-8");
|
|
867354
867780
|
}
|
|
867355
867781
|
resolveApiPath(apiSource) {
|
|
867356
867782
|
switch (apiSource.type) {
|
|
@@ -868795,13 +869221,13 @@ function addCheckCommand4(cli) {
|
|
|
868795
869221
|
|
|
868796
869222
|
// ../cli-v2/lib/commands/sdk/generate/command.js
|
|
868797
869223
|
init_lib4();
|
|
868798
|
-
|
|
869224
|
+
init_lib7();
|
|
868799
869225
|
var import_promises118 = require("fs/promises");
|
|
868800
869226
|
init_js_yaml();
|
|
868801
869227
|
|
|
868802
869228
|
// ../cli-v2/lib/api/resolver/ApiSpecResolver.js
|
|
868803
|
-
|
|
868804
|
-
var
|
|
869229
|
+
init_lib7();
|
|
869230
|
+
var import_promises103 = require("fs/promises");
|
|
868805
869231
|
var import_os11 = require("os");
|
|
868806
869232
|
var import_path73 = __toESM(require("path"), 1);
|
|
868807
869233
|
|
|
@@ -868877,9 +869303,9 @@ var ApiSpecResolver = class {
|
|
|
868877
869303
|
});
|
|
868878
869304
|
}
|
|
868879
869305
|
const extension4 = this.inferExtensionFromContent(content5);
|
|
868880
|
-
const tempDir2 = await (0,
|
|
869306
|
+
const tempDir2 = await (0, import_promises103.mkdtemp)(import_path73.default.join((0, import_os11.tmpdir)(), "fern-"));
|
|
868881
869307
|
const absoluteFilePath = AbsoluteFilePath2.of(import_path73.default.join(tempDir2, `spec${extension4}`));
|
|
868882
|
-
await (0,
|
|
869308
|
+
await (0, import_promises103.writeFile)(absoluteFilePath, content5, "utf-8");
|
|
868883
869309
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: "stdin" });
|
|
868884
869310
|
return {
|
|
868885
869311
|
absoluteFilePath,
|
|
@@ -868895,9 +869321,9 @@ var ApiSpecResolver = class {
|
|
|
868895
869321
|
async resolveUrl({ reference: reference4 }) {
|
|
868896
869322
|
const { content: content5, contentType } = await this.fetchContent({ url: reference4 });
|
|
868897
869323
|
const extension4 = this.inferExtension({ url: reference4, contentType });
|
|
868898
|
-
const tempDir2 = await (0,
|
|
869324
|
+
const tempDir2 = await (0, import_promises103.mkdtemp)(import_path73.default.join((0, import_os11.tmpdir)(), "fern-"));
|
|
868899
869325
|
const absoluteFilePath = AbsoluteFilePath2.of(import_path73.default.join(tempDir2, `spec${extension4}`));
|
|
868900
|
-
await (0,
|
|
869326
|
+
await (0, import_promises103.writeFile)(absoluteFilePath, content5, "utf-8");
|
|
868901
869327
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: reference4 });
|
|
868902
869328
|
return {
|
|
868903
869329
|
absoluteFilePath,
|
|
@@ -868913,7 +869339,7 @@ var ApiSpecResolver = class {
|
|
|
868913
869339
|
code: CliError.Code.ConfigError
|
|
868914
869340
|
});
|
|
868915
869341
|
}
|
|
868916
|
-
const content5 = await (0,
|
|
869342
|
+
const content5 = await (0, import_promises103.readFile)(absoluteFilePath, "utf-8");
|
|
868917
869343
|
const specType = await this.detector.detect({ absoluteFilePath, content: content5, reference: reference4 });
|
|
868918
869344
|
return {
|
|
868919
869345
|
absoluteFilePath,
|
|
@@ -868980,82 +869406,10 @@ init_lib4();
|
|
|
868980
869406
|
|
|
868981
869407
|
// ../cli-v2/lib/sdk/generator/LegacyLocalGenerationRunner.js
|
|
868982
869408
|
init_lib4();
|
|
868983
|
-
|
|
869409
|
+
init_lib7();
|
|
868984
869410
|
|
|
868985
|
-
// ../generation/local-generation/
|
|
868986
|
-
|
|
868987
|
-
var import_promises103 = require("fs/promises");
|
|
868988
|
-
var import_tmp_promise12 = __toESM(require_tmp_promise(), 1);
|
|
868989
|
-
async function runContainer({ logger: logger4, imageName, args = [], binds = [], envVars = {}, ports = {}, writeLogsToFile = true, removeAfterCompletion = false, runner, signal }) {
|
|
868990
|
-
const tryRun = () => tryRunContainer({
|
|
868991
|
-
logger: logger4,
|
|
868992
|
-
imageName,
|
|
868993
|
-
args,
|
|
868994
|
-
binds,
|
|
868995
|
-
envVars,
|
|
868996
|
-
ports,
|
|
868997
|
-
removeAfterCompletion,
|
|
868998
|
-
writeLogsToFile,
|
|
868999
|
-
runner,
|
|
869000
|
-
signal
|
|
869001
|
-
});
|
|
869002
|
-
try {
|
|
869003
|
-
await tryRun();
|
|
869004
|
-
} catch (e8) {
|
|
869005
|
-
if (e8 instanceof Error && e8.message.includes("No such image")) {
|
|
869006
|
-
await pullImage(imageName, runner, signal);
|
|
869007
|
-
await tryRun();
|
|
869008
|
-
} else {
|
|
869009
|
-
throw e8;
|
|
869010
|
-
}
|
|
869011
|
-
}
|
|
869012
|
-
}
|
|
869013
|
-
async function tryRunContainer({ logger: logger4, imageName, args, binds, envVars = {}, ports = {}, removeAfterCompletion, writeLogsToFile, runner, signal }) {
|
|
869014
|
-
if (process.env["FERN_STACK_TRACK"]) {
|
|
869015
|
-
envVars["FERN_STACK_TRACK"] = process.env["FERN_STACK_TRACK"];
|
|
869016
|
-
}
|
|
869017
|
-
const containerArgs = [
|
|
869018
|
-
"run",
|
|
869019
|
-
"--user",
|
|
869020
|
-
"root",
|
|
869021
|
-
...binds.flatMap((bind5) => ["-v", bind5]),
|
|
869022
|
-
...Object.entries(envVars).flatMap(([key2, value2]) => ["-e", `${key2}="${value2}"`]),
|
|
869023
|
-
...Object.entries(ports).flatMap(([hostPort, containerPort]) => ["-p", `${hostPort}:${containerPort}`]),
|
|
869024
|
-
removeAfterCompletion ? "--rm" : "",
|
|
869025
|
-
imageName,
|
|
869026
|
-
...args
|
|
869027
|
-
].filter(Boolean);
|
|
869028
|
-
const containerRunner = runner ?? "docker";
|
|
869029
|
-
const { stdout, stderr, exitCode } = await loggingExeca(logger4, containerRunner, containerArgs, {
|
|
869030
|
-
reject: false,
|
|
869031
|
-
all: true,
|
|
869032
|
-
doNotPipeOutput: true,
|
|
869033
|
-
signal
|
|
869034
|
-
});
|
|
869035
|
-
const logs4 = stdout + stderr;
|
|
869036
|
-
if (writeLogsToFile) {
|
|
869037
|
-
const tmpFile = await import_tmp_promise12.default.file();
|
|
869038
|
-
await (0, import_promises103.writeFile)(tmpFile.path, logs4);
|
|
869039
|
-
logger4.info(`Generator logs here: ${tmpFile.path}`);
|
|
869040
|
-
}
|
|
869041
|
-
if (exitCode == null) {
|
|
869042
|
-
throw new Error(`Container runtime '${containerRunner}' is not installed or not found on PATH.
|
|
869043
|
-
${containerRunner === "podman" ? "Seed tests default to Podman. " : ""}Install ${containerRunner}: ${containerRunner === "podman" ? "https://podman.io/docs/installation" : "https://docs.docker.com/get-docker/"}
|
|
869044
|
-
Error details: ${stderr || stdout || "No output"}`);
|
|
869045
|
-
}
|
|
869046
|
-
if (exitCode !== 0) {
|
|
869047
|
-
throw new Error(`Container exited with code ${exitCode}.
|
|
869048
|
-
${stdout}
|
|
869049
|
-
${stderr}`);
|
|
869050
|
-
}
|
|
869051
|
-
}
|
|
869052
|
-
async function pullImage(imageName, runner, signal) {
|
|
869053
|
-
await loggingExeca(void 0, runner ?? "docker", ["pull", imageName], {
|
|
869054
|
-
all: true,
|
|
869055
|
-
doNotPipeOutput: true,
|
|
869056
|
-
signal
|
|
869057
|
-
});
|
|
869058
|
-
}
|
|
869411
|
+
// ../generation/local-generation/local-workspace-runner/lib/ContainerExecutionEnvironment.js
|
|
869412
|
+
init_lib42();
|
|
869059
869413
|
|
|
869060
869414
|
// ../generation/local-generation/local-workspace-runner/lib/constants.js
|
|
869061
869415
|
var import_path74 = __toESM(require("path"), 1);
|
|
@@ -869147,7 +869501,7 @@ var ContainerExecutionEnvironment = class {
|
|
|
869147
869501
|
};
|
|
869148
869502
|
|
|
869149
869503
|
// ../generation/local-generation/local-workspace-runner/lib/GenerationRunner.js
|
|
869150
|
-
|
|
869504
|
+
init_lib7();
|
|
869151
869505
|
|
|
869152
869506
|
// ../../../generators/browser-compatible-base/lib/utils/stacktrace.js
|
|
869153
869507
|
var key = process.env["FERN_STACK_TRACK"]?.toLowerCase() ?? "";
|
|
@@ -887638,7 +887992,7 @@ var DynamicSnippetsGenerator = class extends AbstractDynamicSnippetsGenerator {
|
|
|
887638
887992
|
};
|
|
887639
887993
|
|
|
887640
887994
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/csharp/DynamicSnippetsCsharpTestGenerator.js
|
|
887641
|
-
|
|
887995
|
+
init_lib7();
|
|
887642
887996
|
var import_promises104 = require("fs/promises");
|
|
887643
887997
|
var import_path75 = __toESM(require("path"), 1);
|
|
887644
887998
|
|
|
@@ -887791,13 +888145,13 @@ var DynamicSnippetsCsharpTestGenerator = class {
|
|
|
887791
888145
|
};
|
|
887792
888146
|
|
|
887793
888147
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/go/DynamicSnippetsGoTestGenerator.js
|
|
887794
|
-
|
|
888148
|
+
init_lib7();
|
|
887795
888149
|
|
|
887796
888150
|
// ../../../generators/go-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
887797
888151
|
init_lib4();
|
|
887798
888152
|
|
|
887799
888153
|
// ../../../generators/go-v2/ast/lib/ast/core/Writer.js
|
|
887800
|
-
|
|
888154
|
+
init_lib6();
|
|
887801
888155
|
var INVALID_GO_IDENTIFIER_TOKEN = /[^0-9a-zA-Z_]/g;
|
|
887802
888156
|
var RESERVED_KEYWORDS2 = [
|
|
887803
888157
|
"break",
|
|
@@ -889390,7 +889744,7 @@ function goExportedFieldName(name2) {
|
|
|
889390
889744
|
}
|
|
889391
889745
|
|
|
889392
889746
|
// ../../../generators/go-v2/ast/lib/utils/resolveRootImportPath.js
|
|
889393
|
-
|
|
889747
|
+
init_lib6();
|
|
889394
889748
|
var import_path76 = __toESM(require("path"), 1);
|
|
889395
889749
|
var DEFAULT_MODULE_PATH = "sdk";
|
|
889396
889750
|
function resolveRootImportPath({ config: config5, customConfig }) {
|
|
@@ -891280,7 +891634,7 @@ var DynamicSnippetsGoTestGenerator = class {
|
|
|
891280
891634
|
};
|
|
891281
891635
|
|
|
891282
891636
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/java/DynamicSnippetsJavaTestGenerator.js
|
|
891283
|
-
|
|
891637
|
+
init_lib7();
|
|
891284
891638
|
|
|
891285
891639
|
// ../../../generators/java-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
891286
891640
|
init_lib4();
|
|
@@ -894658,7 +895012,7 @@ var DynamicSnippetsGenerator3 = class extends AbstractDynamicSnippetsGenerator {
|
|
|
894658
895012
|
};
|
|
894659
895013
|
|
|
894660
895014
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/java/DynamicSnippetsJavaTestGenerator.js
|
|
894661
|
-
|
|
895015
|
+
init_lib11();
|
|
894662
895016
|
var import_promises106 = require("fs/promises");
|
|
894663
895017
|
var import_path78 = __toESM(require("path"), 1);
|
|
894664
895018
|
var DynamicSnippetsJavaTestGenerator = class {
|
|
@@ -894745,7 +895099,7 @@ var DynamicSnippetsJavaTestGenerator = class {
|
|
|
894745
895099
|
};
|
|
894746
895100
|
|
|
894747
895101
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/php/DynamicSnippetsPhpTestGenerator.js
|
|
894748
|
-
|
|
895102
|
+
init_lib7();
|
|
894749
895103
|
|
|
894750
895104
|
// ../../../generators/php/codegen/lib/ast/core/Constant.js
|
|
894751
895105
|
var GLOBAL_NAMESPACE = "";
|
|
@@ -898244,7 +898598,7 @@ var DynamicSnippetsPhpTestGenerator = class {
|
|
|
898244
898598
|
};
|
|
898245
898599
|
|
|
898246
898600
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/python/DynamicSnippetsPythonTestGenerator.js
|
|
898247
|
-
|
|
898601
|
+
init_lib7();
|
|
898248
898602
|
|
|
898249
898603
|
// ../../../generators/python-v2/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
898250
898604
|
init_lib4();
|
|
@@ -901535,7 +901889,7 @@ var DynamicSnippetsPythonTestGenerator = class {
|
|
|
901535
901889
|
};
|
|
901536
901890
|
|
|
901537
901891
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/ruby/DynamicSnippetsRubyTestGenerator.js
|
|
901538
|
-
|
|
901892
|
+
init_lib7();
|
|
901539
901893
|
|
|
901540
901894
|
// ../../../generators/ruby-v2/ast/lib/ast/core/Writer.js
|
|
901541
901895
|
var TAB_SIZE2 = 2;
|
|
@@ -904442,7 +904796,7 @@ var DynamicSnippetsRubyTestGenerator = class {
|
|
|
904442
904796
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/rust/DynamicSnippetsRustTestGenerator.js
|
|
904443
904797
|
var import_promises110 = require("fs/promises");
|
|
904444
904798
|
var import_node_path25 = __toESM(require("path"), 1);
|
|
904445
|
-
|
|
904799
|
+
init_lib7();
|
|
904446
904800
|
|
|
904447
904801
|
// ../../../generators/rust/base/lib/constants/index.js
|
|
904448
904802
|
var RUST_KEYWORDS = /* @__PURE__ */ new Set([
|
|
@@ -909695,7 +910049,7 @@ var DynamicSnippetsRustTestGenerator = class {
|
|
|
909695
910049
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/swift/DynamicSnippetsSwiftTestGenerator.js
|
|
909696
910050
|
var import_promises111 = require("fs/promises");
|
|
909697
910051
|
var import_node_path26 = __toESM(require("path"), 1);
|
|
909698
|
-
|
|
910052
|
+
init_lib7();
|
|
909699
910053
|
|
|
909700
910054
|
// ../../../generators/swift/dynamic-snippets/lib/context/DynamicSnippetsGeneratorContext.js
|
|
909701
910055
|
init_lib4();
|
|
@@ -914279,7 +914633,7 @@ var DynamicSnippetsSwiftTestGenerator = class {
|
|
|
914279
914633
|
};
|
|
914280
914634
|
|
|
914281
914635
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/typescript/DynamicSnippetsTypeScriptTestGenerator.js
|
|
914282
|
-
|
|
914636
|
+
init_lib7();
|
|
914283
914637
|
|
|
914284
914638
|
// ../../../generators/typescript-v2/ast/lib/ast/core/Writer.js
|
|
914285
914639
|
var Writer9 = class extends AbstractWriter {
|
|
@@ -916734,7 +917088,7 @@ async function generateDynamicSnippetTests({ context: context3, ir: ir11, config
|
|
|
916734
917088
|
}
|
|
916735
917089
|
|
|
916736
917090
|
// ../generation/local-generation/local-workspace-runner/lib/runGenerator.js
|
|
916737
|
-
|
|
917091
|
+
init_lib7();
|
|
916738
917092
|
var import_autoversion3 = __toESM(require_autoversion(), 1);
|
|
916739
917093
|
var import_serialization = __toESM(require_serialization3(), 1);
|
|
916740
917094
|
var import_promises114 = require("fs/promises");
|
|
@@ -916743,7 +917097,7 @@ var import_path84 = require("path");
|
|
|
916743
917097
|
var import_tmp_promise14 = __toESM(require_tmp_promise(), 1);
|
|
916744
917098
|
|
|
916745
917099
|
// ../generation/local-generation/local-workspace-runner/lib/getGeneratorConfig.js
|
|
916746
|
-
|
|
917100
|
+
init_lib8();
|
|
916747
917101
|
var import_generator_exec_sdk = __toESM(require_generator_exec_sdk(), 1);
|
|
916748
917102
|
var import_api50 = __toESM(require_api4(), 1);
|
|
916749
917103
|
var path79 = __toESM(require("path"), 1);
|
|
@@ -917217,11 +917571,11 @@ async function getIntermediateRepresentation({ workspace, audiences, generatorIn
|
|
|
917217
917571
|
}
|
|
917218
917572
|
|
|
917219
917573
|
// ../generation/local-generation/local-workspace-runner/lib/LocalTaskHandler.js
|
|
917220
|
-
|
|
917574
|
+
init_lib41();
|
|
917221
917575
|
init_lib4();
|
|
917222
|
-
|
|
917576
|
+
init_lib7();
|
|
917223
917577
|
var import_autoversion2 = __toESM(require_autoversion(), 1);
|
|
917224
|
-
|
|
917578
|
+
init_lib11();
|
|
917225
917579
|
var import_decompress2 = __toESM(require_decompress(), 1);
|
|
917226
917580
|
var import_promises113 = require("fs/promises");
|
|
917227
917581
|
var import_os12 = require("os");
|
|
@@ -918068,10 +918422,10 @@ function getDockerDestinationForSource(source2) {
|
|
|
918068
918422
|
|
|
918069
918423
|
// ../generation/local-generation/local-workspace-runner/lib/runLocalGenerationForWorkspace.js
|
|
918070
918424
|
init_lib4();
|
|
918071
|
-
|
|
918425
|
+
init_lib7();
|
|
918072
918426
|
var import_autoversion4 = __toESM(require_autoversion(), 1);
|
|
918073
918427
|
var import_pipeline2 = __toESM(require_pipeline2(), 1);
|
|
918074
|
-
|
|
918428
|
+
init_lib8();
|
|
918075
918429
|
var fs17 = __toESM(require("fs/promises"), 1);
|
|
918076
918430
|
var import_os13 = __toESM(require("os"), 1);
|
|
918077
918431
|
var import_path85 = __toESM(require("path"), 1);
|
|
@@ -918084,7 +918438,7 @@ function getGeneratorOutputSubfolder(generatorName) {
|
|
|
918084
918438
|
}
|
|
918085
918439
|
|
|
918086
918440
|
// ../generation/local-generation/local-workspace-runner/lib/runLocalGenerationForWorkspace.js
|
|
918087
|
-
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 }) {
|
|
918088
918442
|
const userProvidedVersion = version7;
|
|
918089
918443
|
if (userProvidedVersion != null) {
|
|
918090
918444
|
if (absolutePathToPreview != null) {
|
|
@@ -918289,7 +918643,9 @@ generators:
|
|
|
918289
918643
|
disableTelemetry
|
|
918290
918644
|
});
|
|
918291
918645
|
interactiveTaskContext.logger.info(source_default.green("Wrote files to " + absolutePathToLocalOutput));
|
|
918292
|
-
|
|
918646
|
+
const githubPipelineEnabled = selfhostedGithubConfig != null && shouldCommit;
|
|
918647
|
+
const verifyOnlyPipelineEnabled = !githubPipelineEnabled && verify2 === true;
|
|
918648
|
+
if (githubPipelineEnabled || verifyOnlyPipelineEnabled) {
|
|
918293
918649
|
const pipelineLogger = {
|
|
918294
918650
|
debug: (msg) => interactiveTaskContext.logger.debug(msg),
|
|
918295
918651
|
info: (msg) => interactiveTaskContext.logger.info(msg),
|
|
@@ -918299,8 +918655,9 @@ generators:
|
|
|
918299
918655
|
const hasBreakingChanges = autoVersioningVersionBump === "MAJOR";
|
|
918300
918656
|
const pipeline6 = new import_pipeline2.PostGenerationPipeline({
|
|
918301
918657
|
outputDir: absolutePathToLocalOutput,
|
|
918302
|
-
replay: { enabled: replay?.enabled === true, skipApplication: noReplay, stageOnly: false },
|
|
918303
|
-
|
|
918658
|
+
replay: githubPipelineEnabled ? { enabled: replay?.enabled === true, skipApplication: noReplay, stageOnly: false } : void 0,
|
|
918659
|
+
verify: { enabled: verify2 === true, runner },
|
|
918660
|
+
github: githubPipelineEnabled && selfhostedGithubConfig != null ? {
|
|
918304
918661
|
enabled: true,
|
|
918305
918662
|
uri: selfhostedGithubConfig.uri,
|
|
918306
918663
|
token: selfhostedGithubConfig.token,
|
|
@@ -918322,7 +918679,7 @@ generators:
|
|
|
918322
918679
|
breakingChangesSummary: hasBreakingChanges ? autoVersioningPrDescription : void 0,
|
|
918323
918680
|
runId: process.env.FERN_RUN_ID,
|
|
918324
918681
|
apiBaseUrl: getGithubApiBaseUrl(selfhostedGithubConfig.uri)
|
|
918325
|
-
},
|
|
918682
|
+
} : void 0,
|
|
918326
918683
|
cliVersion: workspace.cliVersion ?? "unknown",
|
|
918327
918684
|
generatorVersions: {
|
|
918328
918685
|
[generatorInvocation.name]: generatorInvocation.version
|
|
@@ -918332,7 +918689,7 @@ generators:
|
|
|
918332
918689
|
const pipelineStart = Date.now();
|
|
918333
918690
|
const pipelineResult = await pipeline6.run();
|
|
918334
918691
|
const pipelineDurationMs = Date.now() - pipelineStart;
|
|
918335
|
-
if (pipelineResult.steps.replay != null) {
|
|
918692
|
+
if (pipelineResult.steps.replay != null && selfhostedGithubConfig != null) {
|
|
918336
918693
|
(0, import_pipeline2.logReplaySummary)(pipelineResult.steps.replay, {
|
|
918337
918694
|
debug: (msg) => interactiveTaskContext.logger.debug(msg),
|
|
918338
918695
|
info: (msg) => {
|
|
@@ -918698,12 +919055,13 @@ var GenerationRunner = class {
|
|
|
918698
919055
|
};
|
|
918699
919056
|
|
|
918700
919057
|
// ../cli-v2/lib/sdk/generator/LegacyLocalGenerationRunner.js
|
|
919058
|
+
init_lib5();
|
|
918701
919059
|
var import_promises116 = require("fs/promises");
|
|
918702
919060
|
|
|
918703
919061
|
// ../cli-v2/lib/sdk/adapter/LegacyGeneratorInvocationAdapter.js
|
|
918704
919062
|
init_lib4();
|
|
918705
|
-
init_lib6();
|
|
918706
919063
|
init_lib7();
|
|
919064
|
+
init_lib8();
|
|
918707
919065
|
var import_promises115 = require("fs/promises");
|
|
918708
919066
|
var LegacyGeneratorInvocationAdapter = class {
|
|
918709
919067
|
context;
|
|
@@ -919007,7 +919365,7 @@ var LegacyGeneratorInvocationAdapter = class {
|
|
|
919007
919365
|
};
|
|
919008
919366
|
|
|
919009
919367
|
// ../cli-v2/lib/sdk/generator/utils/resolveTargetOutput.js
|
|
919010
|
-
|
|
919368
|
+
init_lib7();
|
|
919011
919369
|
var import_path86 = require("path");
|
|
919012
919370
|
function resolveTargetOutput({ context: context3, task, target, preview, outputPath }) {
|
|
919013
919371
|
if (preview) {
|
|
@@ -919190,7 +919548,8 @@ var LegacyLocalGenerationRunner = class {
|
|
|
919190
919548
|
|
|
919191
919549
|
// ../cli-v2/lib/sdk/generator/LegacyRemoteGenerationRunner.js
|
|
919192
919550
|
init_lib4();
|
|
919193
|
-
|
|
919551
|
+
init_lib7();
|
|
919552
|
+
init_lib5();
|
|
919194
919553
|
var import_promises117 = require("fs/promises");
|
|
919195
919554
|
var import_os14 = require("os");
|
|
919196
919555
|
var LegacyRemoteGenerationRunner = class {
|
|
@@ -919565,7 +919924,7 @@ var SdkTaskGroup = class {
|
|
|
919565
919924
|
};
|
|
919566
919925
|
|
|
919567
919926
|
// ../cli-v2/lib/workspace/WorkspaceBuilder.js
|
|
919568
|
-
|
|
919927
|
+
init_lib7();
|
|
919569
919928
|
var WorkspaceBuilder = class {
|
|
919570
919929
|
context;
|
|
919571
919930
|
constructor({ context: context3 }) {
|
|
@@ -920423,7 +920782,7 @@ init_lib4();
|
|
|
920423
920782
|
|
|
920424
920783
|
// ../cli-v2/lib/sdk/updater/GeneratorMigrator.js
|
|
920425
920784
|
init_lib4();
|
|
920426
|
-
|
|
920785
|
+
init_lib11();
|
|
920427
920786
|
var import_fs32 = require("fs");
|
|
920428
920787
|
var import_promises119 = require("fs/promises");
|
|
920429
920788
|
var import_path87 = require("path");
|
|
@@ -921164,17 +921523,17 @@ function createCliV2(argv) {
|
|
|
921164
921523
|
|
|
921165
921524
|
// src/cli.ts
|
|
921166
921525
|
init_lib4();
|
|
921167
|
-
|
|
921526
|
+
init_lib7();
|
|
921168
921527
|
var import_generator_cli5 = __toESM(require_api3(), 1);
|
|
921169
921528
|
|
|
921170
921529
|
// ../init/lib/initializeAPI.js
|
|
921171
|
-
|
|
921530
|
+
init_lib7();
|
|
921172
921531
|
var import_promises124 = require("fs/promises");
|
|
921173
921532
|
var import_fs_extra = __toESM(require_lib19(), 1);
|
|
921174
921533
|
var import_path90 = __toESM(require("path"), 1);
|
|
921175
921534
|
|
|
921176
921535
|
// ../init/lib/createFernDirectoryAndOrganization.js
|
|
921177
|
-
|
|
921536
|
+
init_lib7();
|
|
921178
921537
|
var import_promises121 = require("fs/promises");
|
|
921179
921538
|
init_lodash();
|
|
921180
921539
|
var GITIGNORE_CONTENT = "**/.preview\n**/.definition\n";
|
|
@@ -921443,7 +921802,7 @@ async function formatFernWorkspace({ workspace, context: context3, shouldFix })
|
|
|
921443
921802
|
}
|
|
921444
921803
|
|
|
921445
921804
|
// ../init/lib/createWorkspace.js
|
|
921446
|
-
|
|
921805
|
+
init_lib7();
|
|
921447
921806
|
var import_promises123 = require("fs/promises");
|
|
921448
921807
|
init_js_yaml();
|
|
921449
921808
|
|
|
@@ -921844,7 +922203,7 @@ async function hasInlinedOpenAPIWorkspace({ absolutePathToFernDirectory }) {
|
|
|
921844
922203
|
|
|
921845
922204
|
// ../init/lib/initializeDocs.js
|
|
921846
922205
|
init_lib4();
|
|
921847
|
-
|
|
922206
|
+
init_lib7();
|
|
921848
922207
|
var import_promises125 = require("fs/promises");
|
|
921849
922208
|
init_js_yaml();
|
|
921850
922209
|
async function initializeDocs({ organization, taskContext, versionOfCli }) {
|
|
@@ -921890,7 +922249,7 @@ function getDocsConfig(organization) {
|
|
|
921890
922249
|
}
|
|
921891
922250
|
|
|
921892
922251
|
// ../init/lib/initializeWithMintlify.js
|
|
921893
|
-
|
|
922252
|
+
init_lib7();
|
|
921894
922253
|
|
|
921895
922254
|
// ../docs-importers/mintlify/lib/MintlifyImporter.js
|
|
921896
922255
|
init_lib4();
|
|
@@ -921915,7 +922274,7 @@ var FernDocsBuilder = class {
|
|
|
921915
922274
|
};
|
|
921916
922275
|
|
|
921917
922276
|
// ../docs-importers/commons/lib/FernDocsBuilderImpl.js
|
|
921918
|
-
|
|
922277
|
+
init_lib7();
|
|
921919
922278
|
var import_promises126 = require("fs/promises");
|
|
921920
922279
|
init_js_yaml();
|
|
921921
922280
|
var FernDocsBuilderImpl = class extends FernDocsBuilder {
|
|
@@ -922053,7 +922412,7 @@ var NonTabbedNavigationBuilderImpl = class {
|
|
|
922053
922412
|
};
|
|
922054
922413
|
|
|
922055
922414
|
// ../docs-importers/mintlify/lib/MintlifyImporter.js
|
|
922056
|
-
|
|
922415
|
+
init_lib7();
|
|
922057
922416
|
var import_promises128 = require("fs/promises");
|
|
922058
922417
|
|
|
922059
922418
|
// ../docs-importers/mintlify/lib/convertColors.js
|
|
@@ -922073,7 +922432,7 @@ function convertColors(colors19) {
|
|
|
922073
922432
|
|
|
922074
922433
|
// ../docs-importers/mintlify/lib/convertLogo.js
|
|
922075
922434
|
init_lib4();
|
|
922076
|
-
|
|
922435
|
+
init_lib7();
|
|
922077
922436
|
var LOGO_DEFAULT_HEIGHT = 28;
|
|
922078
922437
|
function convertLogo({ logo, builder, absolutePathToMintJson }) {
|
|
922079
922438
|
if (logo == null) {
|
|
@@ -922111,10 +922470,10 @@ function convertLogo({ logo, builder, absolutePathToMintJson }) {
|
|
|
922111
922470
|
|
|
922112
922471
|
// ../docs-importers/mintlify/lib/convertNavigationItem.js
|
|
922113
922472
|
init_lib4();
|
|
922114
|
-
|
|
922473
|
+
init_lib7();
|
|
922115
922474
|
|
|
922116
922475
|
// ../docs-importers/mintlify/lib/convertMarkdown.js
|
|
922117
|
-
|
|
922476
|
+
init_lib7();
|
|
922118
922477
|
var import_promises127 = require("fs/promises");
|
|
922119
922478
|
var import_gray_matter10 = __toESM(require_gray_matter(), 1);
|
|
922120
922479
|
async function convertMarkdown({ absolutePathToMintJson, absoluteFilepathToMarkdown, relativeFilepathFromRoot, builder }) {
|
|
@@ -922406,7 +922765,7 @@ var MintlifyImporter = class extends DocsImporter {
|
|
|
922406
922765
|
};
|
|
922407
922766
|
|
|
922408
922767
|
// ../docs-importers/mintlify/lib/runMintlifyMigration.js
|
|
922409
|
-
|
|
922768
|
+
init_lib7();
|
|
922410
922769
|
var import_promises129 = require("fs/promises");
|
|
922411
922770
|
async function runMintlifyMigration({ absolutePathToMintJson, outputPath, taskContext, versionOfCli, organization }) {
|
|
922412
922771
|
const mintlifyImporter = new MintlifyImporter({
|
|
@@ -922457,7 +922816,7 @@ var initializeWithMintlify = async ({ pathToMintJson, taskContext, versionOfCli,
|
|
|
922457
922816
|
};
|
|
922458
922817
|
|
|
922459
922818
|
// ../init/lib/initializeWithReadme.js
|
|
922460
|
-
|
|
922819
|
+
init_lib7();
|
|
922461
922820
|
|
|
922462
922821
|
// ../docs-importers/readme/lib/assert.js
|
|
922463
922822
|
init_zod();
|
|
@@ -922476,7 +922835,7 @@ function assertIsStringArray(val) {
|
|
|
922476
922835
|
|
|
922477
922836
|
// ../docs-importers/readme/lib/ReadmeImporter.js
|
|
922478
922837
|
init_lib4();
|
|
922479
|
-
|
|
922838
|
+
init_lib7();
|
|
922480
922839
|
var import_promises134 = require("fs/promises");
|
|
922481
922840
|
|
|
922482
922841
|
// ../docs-importers/readme/lib/extract/favicon.js
|
|
@@ -925488,7 +925847,7 @@ async function getColors(hast) {
|
|
|
925488
925847
|
|
|
925489
925848
|
// ../docs-importers/readme/lib/utils/files/logo.js
|
|
925490
925849
|
init_lib4();
|
|
925491
|
-
|
|
925850
|
+
init_lib7();
|
|
925492
925851
|
|
|
925493
925852
|
// ../docs-importers/readme/lib/extract/logo.js
|
|
925494
925853
|
init_unist_util_visit();
|
|
@@ -935868,7 +936227,7 @@ var ReadmeImporter = class extends DocsImporter {
|
|
|
935868
936227
|
};
|
|
935869
936228
|
|
|
935870
936229
|
// ../docs-importers/readme/lib/runReadmeMigration.js
|
|
935871
|
-
|
|
936230
|
+
init_lib7();
|
|
935872
936231
|
var import_promises135 = require("fs/promises");
|
|
935873
936232
|
async function runReadmeMigration({ readmeUrl, outputPath, taskContext, versionOfCli, organization }) {
|
|
935874
936233
|
const builder = new FernDocsBuilderImpl();
|
|
@@ -935953,10 +936312,14 @@ async function fetchOpenAPIFromUrl({ url: url3, logger: logger4 }) {
|
|
|
935953
936312
|
return dump(response.data);
|
|
935954
936313
|
}
|
|
935955
936314
|
|
|
936315
|
+
// src/cli.ts
|
|
936316
|
+
init_lib5();
|
|
936317
|
+
|
|
935956
936318
|
// ../generation/protoc-gen-fern/package.json
|
|
935957
936319
|
var version6 = "0.0.0";
|
|
935958
936320
|
|
|
935959
936321
|
// ../generation/protoc-gen-fern/lib/commons/logging.js
|
|
936322
|
+
init_lib5();
|
|
935960
936323
|
var Logger4 = class {
|
|
935961
936324
|
enabled = true;
|
|
935962
936325
|
write(level, ...messages2) {
|
|
@@ -937691,6 +938054,9 @@ Yargs2.hideBin = processArgv.hideBin;
|
|
|
937691
938054
|
Yargs2.Parser = Parser8;
|
|
937692
938055
|
var yargs_default2 = Yargs2;
|
|
937693
938056
|
|
|
938057
|
+
// src/cli-context/CliContext.ts
|
|
938058
|
+
init_lib5();
|
|
938059
|
+
|
|
937694
938060
|
// ../../../node_modules/.pnpm/@inquirer+core@10.3.2_@types+node@22.19.17/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
937695
938061
|
var isUpKey = (key2, keybindings = []) => (
|
|
937696
938062
|
// The up key
|
|
@@ -939733,6 +940099,7 @@ var StdoutRedirector = class {
|
|
|
939733
940099
|
|
|
939734
940100
|
// src/cli-context/TaskContextImpl.ts
|
|
939735
940101
|
init_lib4();
|
|
940102
|
+
init_lib5();
|
|
939736
940103
|
var TaskContextImpl = class {
|
|
939737
940104
|
result = TaskResult.Success;
|
|
939738
940105
|
lastFailureMessage = void 0;
|
|
@@ -940279,7 +940646,7 @@ var CliContext = class _CliContext {
|
|
|
940279
940646
|
if (false) {
|
|
940280
940647
|
this.logger.error("CLI_VERSION is not defined");
|
|
940281
940648
|
}
|
|
940282
|
-
return "5.22.
|
|
940649
|
+
return "5.22.1-1-g08a6ca02787";
|
|
940283
940650
|
}
|
|
940284
940651
|
getCliName() {
|
|
940285
940652
|
if (false) {
|
|
@@ -940576,7 +940943,7 @@ function wrapWorkspaceNameForPrefix(workspaceName) {
|
|
|
940576
940943
|
}
|
|
940577
940944
|
|
|
940578
940945
|
// ../project-loader/lib/loadProject.js
|
|
940579
|
-
|
|
940946
|
+
init_lib7();
|
|
940580
940947
|
var import_promises137 = require("fs/promises");
|
|
940581
940948
|
|
|
940582
940949
|
// ../project-loader/lib/normalizeCommandLineApiWorkspace.js
|
|
@@ -940889,7 +941256,7 @@ async function getOrganization({
|
|
|
940889
941256
|
}
|
|
940890
941257
|
|
|
940891
941258
|
// src/commands/upgrade/upgradeGenerator.ts
|
|
940892
|
-
|
|
941259
|
+
init_lib7();
|
|
940893
941260
|
var import_promises141 = require("fs/promises");
|
|
940894
941261
|
var import_path93 = __toESM(require("path"), 1);
|
|
940895
941262
|
var import_semver16 = __toESM(require_semver2(), 1);
|
|
@@ -940897,7 +941264,7 @@ var import_yaml6 = __toESM(require_dist9(), 1);
|
|
|
940897
941264
|
|
|
940898
941265
|
// src/commands/upgrade/migrations/loader.ts
|
|
940899
941266
|
init_lib4();
|
|
940900
|
-
|
|
941267
|
+
init_lib11();
|
|
940901
941268
|
var import_fs36 = require("fs");
|
|
940902
941269
|
var import_promises140 = require("fs/promises");
|
|
940903
941270
|
var import_os15 = require("os");
|
|
@@ -941922,7 +942289,7 @@ function filterGenerators({
|
|
|
941922
942289
|
}
|
|
941923
942290
|
|
|
941924
942291
|
// src/commands/generate/generateAPIWorkspaces.ts
|
|
941925
|
-
|
|
942292
|
+
init_lib7();
|
|
941926
942293
|
|
|
941927
942294
|
// src/constants.ts
|
|
941928
942295
|
var API_CLI_OPTION = "api";
|
|
@@ -941932,15 +942299,15 @@ var APPROVED_DIRECTORIES_FILENAME = "approved-output-directories";
|
|
|
941932
942299
|
var LOCAL_STORAGE_FOLDER6 = ".fern-dev";
|
|
941933
942300
|
|
|
941934
942301
|
// src/commands/generate/checkOutputDirectory.ts
|
|
941935
|
-
|
|
942302
|
+
init_lib7();
|
|
941936
942303
|
var import_promises146 = require("fs/promises");
|
|
941937
942304
|
|
|
941938
942305
|
// src/persistence/output-directories/getOutputDirectories.ts
|
|
941939
|
-
|
|
942306
|
+
init_lib7();
|
|
941940
942307
|
var import_promises144 = require("fs/promises");
|
|
941941
942308
|
|
|
941942
942309
|
// src/persistence/output-directories/getPathToOutputDirectoriesFile.ts
|
|
941943
|
-
|
|
942310
|
+
init_lib7();
|
|
941944
942311
|
var import_os16 = require("os");
|
|
941945
942312
|
function getPathToOutputDirectoriesFile() {
|
|
941946
942313
|
return join8(
|
|
@@ -942028,7 +942395,7 @@ function expandGroupFilter(groupNames, generatorsConfiguration) {
|
|
|
942028
942395
|
}
|
|
942029
942396
|
|
|
942030
942397
|
// src/commands/generate/generateAPIWorkspace.ts
|
|
942031
|
-
|
|
942398
|
+
init_lib7();
|
|
942032
942399
|
|
|
942033
942400
|
// src/commands/generate/describeSkipReason.ts
|
|
942034
942401
|
function classifySkipReason(generator, rootAutorelease) {
|
|
@@ -942137,6 +942504,7 @@ async function generateWorkspace({
|
|
|
942137
942504
|
skipFernignore,
|
|
942138
942505
|
dynamicIrOnly,
|
|
942139
942506
|
noReplay,
|
|
942507
|
+
verify: verify2,
|
|
942140
942508
|
retryRateLimited,
|
|
942141
942509
|
requireEnvVars,
|
|
942142
942510
|
automationMode,
|
|
@@ -942204,6 +942572,7 @@ async function generateWorkspace({
|
|
|
942204
942572
|
automationMode,
|
|
942205
942573
|
autoMerge,
|
|
942206
942574
|
skipIfNoDiff,
|
|
942575
|
+
verify: verify2,
|
|
942207
942576
|
disableTelemetry: isTelemetryDisabled()
|
|
942208
942577
|
});
|
|
942209
942578
|
} else if (token != null) {
|
|
@@ -942598,6 +942967,7 @@ async function generateAPIWorkspaces({
|
|
|
942598
942967
|
dynamicIrOnly,
|
|
942599
942968
|
outputDir,
|
|
942600
942969
|
noReplay,
|
|
942970
|
+
verify: verify2,
|
|
942601
942971
|
retryRateLimited,
|
|
942602
942972
|
requireEnvVars,
|
|
942603
942973
|
automationMode,
|
|
@@ -942673,6 +943043,7 @@ async function generateAPIWorkspaces({
|
|
|
942673
943043
|
skipFernignore,
|
|
942674
943044
|
dynamicIrOnly,
|
|
942675
943045
|
noReplay,
|
|
943046
|
+
verify: verify2,
|
|
942676
943047
|
retryRateLimited,
|
|
942677
943048
|
requireEnvVars,
|
|
942678
943049
|
automationMode,
|
|
@@ -943213,6 +943584,7 @@ async function executeAutomationsGenerate({
|
|
|
943213
943584
|
dynamicIrOnly: false,
|
|
943214
943585
|
outputDir: void 0,
|
|
943215
943586
|
noReplay: false,
|
|
943587
|
+
verify: false,
|
|
943216
943588
|
// Automation runs are unattended; transient 429s should be retried
|
|
943217
943589
|
// automatically rather than failing the run and asking a human to
|
|
943218
943590
|
// re-trigger with a flag. The retry policy is bounded (5 attempts,
|
|
@@ -943470,7 +943842,7 @@ init_lib4();
|
|
|
943470
943842
|
var import_promises148 = require("fs/promises");
|
|
943471
943843
|
|
|
943472
943844
|
// ../cli-migrations/lib/migrations/0.0.191/discriminant/getAllYamlFiles.js
|
|
943473
|
-
|
|
943845
|
+
init_lib7();
|
|
943474
943846
|
init_esm14();
|
|
943475
943847
|
var FERN_DIRECTORY2 = "fern";
|
|
943476
943848
|
async function getAllYamlFiles(context3) {
|
|
@@ -943544,7 +943916,7 @@ var import_promises149 = require("fs/promises");
|
|
|
943544
943916
|
var import_yaml7 = __toESM(require_dist9(), 1);
|
|
943545
943917
|
|
|
943546
943918
|
// ../cli-migrations/lib/migrations/0.0.203/union-single-property-key/getAllYamlFiles.js
|
|
943547
|
-
|
|
943919
|
+
init_lib7();
|
|
943548
943920
|
init_esm14();
|
|
943549
943921
|
var FERN_DIRECTORY3 = "fern";
|
|
943550
943922
|
async function getAllYamlFiles2(context3) {
|
|
@@ -943630,7 +944002,7 @@ var import_promises150 = require("fs/promises");
|
|
|
943630
944002
|
var import_yaml8 = __toESM(require_dist9(), 1);
|
|
943631
944003
|
|
|
943632
944004
|
// ../cli-migrations/lib/migrations/0.0.207/add-mode-to-draft-generators/getAllGeneratorYamlFiles.js
|
|
943633
|
-
|
|
944005
|
+
init_lib7();
|
|
943634
944006
|
init_esm14();
|
|
943635
944007
|
var FERN_DIRECTORY4 = "fern";
|
|
943636
944008
|
async function getAllGeneratorYamlFiles(context3) {
|
|
@@ -943711,7 +944083,7 @@ var import_promises151 = require("fs/promises");
|
|
|
943711
944083
|
var import_yaml9 = __toESM(require_dist9(), 1);
|
|
943712
944084
|
|
|
943713
944085
|
// ../cli-migrations/lib/migrations/0.0.210/remove-inline-error-declarations/getAllYamlFiles.js
|
|
943714
|
-
|
|
944086
|
+
init_lib7();
|
|
943715
944087
|
init_esm14();
|
|
943716
944088
|
var FERN_DIRECTORY5 = "fern";
|
|
943717
944089
|
async function getAllYamlFiles3(context3) {
|
|
@@ -943809,7 +944181,7 @@ var import_promises152 = require("fs/promises");
|
|
|
943809
944181
|
var import_yaml10 = __toESM(require_dist9(), 1);
|
|
943810
944182
|
|
|
943811
944183
|
// ../cli-migrations/lib/migrations/0.0.212/add-publishing-to-release-generators/getAllGeneratorYamlFiles.js
|
|
943812
|
-
|
|
944184
|
+
init_lib7();
|
|
943813
944185
|
init_esm14();
|
|
943814
944186
|
var FERN_DIRECTORY6 = "fern";
|
|
943815
944187
|
async function getAllGeneratorYamlFiles2(context3) {
|
|
@@ -943900,7 +944272,7 @@ var __default5 = versionMigrations5;
|
|
|
943900
944272
|
var import_promises153 = require("fs/promises");
|
|
943901
944273
|
|
|
943902
944274
|
// ../cli-migrations/lib/migrations/0.0.220/rename-alias-key-to-type/getAllYamlFiles.js
|
|
943903
|
-
|
|
944275
|
+
init_lib7();
|
|
943904
944276
|
init_esm14();
|
|
943905
944277
|
var FERN_DIRECTORY7 = "fern";
|
|
943906
944278
|
async function getAllYamlFiles4(context3) {
|
|
@@ -943948,7 +944320,7 @@ var __default6 = versionMigrations6;
|
|
|
943948
944320
|
var import_promises154 = require("fs/promises");
|
|
943949
944321
|
|
|
943950
944322
|
// ../cli-migrations/lib/migrations/0.0.221/add-error-discriminant/getAllRootApiYamlFiles.js
|
|
943951
|
-
|
|
944323
|
+
init_lib7();
|
|
943952
944324
|
init_esm14();
|
|
943953
944325
|
var FERN_DIRECTORY8 = "fern";
|
|
943954
944326
|
async function getAllRootApiYamlFiles(context3) {
|
|
@@ -943998,7 +944370,7 @@ var import_promises155 = require("fs/promises");
|
|
|
943998
944370
|
init_js_yaml();
|
|
943999
944371
|
|
|
944000
944372
|
// ../cli-migrations/lib/migrations/0.0.241/add-generator-groups/getAllGeneratorYamlFiles.js
|
|
944001
|
-
|
|
944373
|
+
init_lib7();
|
|
944002
944374
|
init_esm14();
|
|
944003
944375
|
var FERN_DIRECTORY9 = "fern";
|
|
944004
944376
|
async function getAllGeneratorYamlFiles3(context3) {
|
|
@@ -944224,7 +944596,7 @@ var import_promises156 = require("fs/promises");
|
|
|
944224
944596
|
var import_yaml11 = __toESM(require_dist9(), 1);
|
|
944225
944597
|
|
|
944226
944598
|
// ../cli-migrations/lib/migrations/0.0.248/add-error-discrimination-config/getAllRootApiYamlFiles.js
|
|
944227
|
-
|
|
944599
|
+
init_lib7();
|
|
944228
944600
|
init_esm14();
|
|
944229
944601
|
var FERN_DIRECTORY10 = "fern";
|
|
944230
944602
|
async function getAllRootApiYamlFiles2(context3) {
|
|
@@ -944289,7 +944661,7 @@ var import_promises157 = require("fs/promises");
|
|
|
944289
944661
|
var import_yaml12 = __toESM(require_dist9(), 1);
|
|
944290
944662
|
|
|
944291
944663
|
// ../cli-migrations/lib/migrations/0.1.3-rc3/add-inline-requests/getAllYamlFiles.js
|
|
944292
|
-
|
|
944664
|
+
init_lib7();
|
|
944293
944665
|
init_esm14();
|
|
944294
944666
|
var FERN_DIRECTORY11 = "fern";
|
|
944295
944667
|
async function getAllYamlFiles5(context3) {
|
|
@@ -944451,7 +944823,7 @@ var import_promises158 = require("fs/promises");
|
|
|
944451
944823
|
var import_yaml13 = __toESM(require_dist9(), 1);
|
|
944452
944824
|
|
|
944453
944825
|
// ../cli-migrations/lib/migrations/0.3.0-rc12/add-value-key-to-type-examples/getAllYamlFiles.js
|
|
944454
|
-
|
|
944826
|
+
init_lib7();
|
|
944455
944827
|
init_esm14();
|
|
944456
944828
|
var FERN_DIRECTORY12 = "fern";
|
|
944457
944829
|
async function getAllYamlFiles6(context3) {
|
|
@@ -944531,7 +944903,7 @@ var import_promises159 = require("fs/promises");
|
|
|
944531
944903
|
var import_yaml14 = __toESM(require_dist9(), 1);
|
|
944532
944904
|
|
|
944533
944905
|
// ../cli-migrations/lib/migrations/0.3.23/change-services-key-to-service/getAllYamlFiles.js
|
|
944534
|
-
|
|
944906
|
+
init_lib7();
|
|
944535
944907
|
init_esm14();
|
|
944536
944908
|
var FERN_DIRECTORY13 = "fern";
|
|
944537
944909
|
async function getAllYamlFiles7(context3) {
|
|
@@ -944615,7 +944987,7 @@ var import_promises160 = require("fs/promises");
|
|
|
944615
944987
|
var import_yaml15 = __toESM(require_dist9(), 1);
|
|
944616
944988
|
|
|
944617
944989
|
// ../cli-migrations/lib/migrations/0.5.4/move-service-docs-to-top-level/getAllYamlFiles.js
|
|
944618
|
-
|
|
944990
|
+
init_lib7();
|
|
944619
944991
|
init_esm14();
|
|
944620
944992
|
var FERN_DIRECTORY14 = "fern";
|
|
944621
944993
|
async function getAllYamlFiles8(context3) {
|
|
@@ -944687,7 +945059,7 @@ var __default13 = versionMigrations13;
|
|
|
944687
945059
|
var import_promises161 = require("fs/promises");
|
|
944688
945060
|
|
|
944689
945061
|
// ../cli-migrations/lib/migrations/0.9.10/add-suffix-to-docs-domain/getAllGeneratorYamlFiles.js
|
|
944690
|
-
|
|
945062
|
+
init_lib7();
|
|
944691
945063
|
init_esm14();
|
|
944692
945064
|
var FERN_DIRECTORY15 = "fern";
|
|
944693
945065
|
async function getAllGeneratorYamlFiles4(context3) {
|
|
@@ -944744,7 +945116,7 @@ var versionMigrations14 = {
|
|
|
944744
945116
|
var __default14 = versionMigrations14;
|
|
944745
945117
|
|
|
944746
945118
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migration.js
|
|
944747
|
-
|
|
945119
|
+
init_lib7();
|
|
944748
945120
|
|
|
944749
945121
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/index.js
|
|
944750
945122
|
var import_docs_config = __toESM(require_docs_config(), 1);
|
|
@@ -944752,7 +945124,7 @@ var import_legacy_docs_config = __toESM(require_legacy_docs_config(), 1);
|
|
|
944752
945124
|
var LegacyDocsSerializers = __toESM(require_serialization4(), 1);
|
|
944753
945125
|
|
|
944754
945126
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/docs-config/loadRawDocsConfiguration.js
|
|
944755
|
-
|
|
945127
|
+
init_lib7();
|
|
944756
945128
|
var import_promises162 = require("fs/promises");
|
|
944757
945129
|
init_js_yaml();
|
|
944758
945130
|
async function loadRawDocsConfiguration2({ absolutePathToWorkspace }) {
|
|
@@ -944775,7 +945147,7 @@ function getAbsolutePathToDocsFolder({ absolutePathToWorkspace }) {
|
|
|
944775
945147
|
}
|
|
944776
945148
|
|
|
944777
945149
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndMultipleAPIs.js
|
|
944778
|
-
|
|
945150
|
+
init_lib7();
|
|
944779
945151
|
var import_promises164 = require("fs/promises");
|
|
944780
945152
|
init_js_yaml();
|
|
944781
945153
|
|
|
@@ -944806,7 +945178,7 @@ function isAPIReferenceSection(item) {
|
|
|
944806
945178
|
|
|
944807
945179
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/convertLegacyGeneratorsConfiguration.js
|
|
944808
945180
|
init_lib4();
|
|
944809
|
-
|
|
945181
|
+
init_lib7();
|
|
944810
945182
|
|
|
944811
945183
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/legacy/GeneratorsConfigurationSchema.js
|
|
944812
945184
|
init_zod();
|
|
@@ -944984,7 +945356,7 @@ __export(legacy_exports, {
|
|
|
944984
945356
|
});
|
|
944985
945357
|
|
|
944986
945358
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/generators-configuration/loadRawGeneratorsConfiguration.js
|
|
944987
|
-
|
|
945359
|
+
init_lib7();
|
|
944988
945360
|
var import_promises163 = require("fs/promises");
|
|
944989
945361
|
init_js_yaml();
|
|
944990
945362
|
async function loadRawGeneratorsConfiguration2({ absolutePathToWorkspace }) {
|
|
@@ -945062,7 +945434,7 @@ async function migrateAndWriteDocsYml({ absolutePathToWorkspace, docsURLs, apiNa
|
|
|
945062
945434
|
}
|
|
945063
945435
|
|
|
945064
945436
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateDocsAndSingleAPI.js
|
|
945065
|
-
|
|
945437
|
+
init_lib7();
|
|
945066
945438
|
var import_promises165 = require("fs/promises");
|
|
945067
945439
|
init_js_yaml();
|
|
945068
945440
|
async function migrateDocsAndSingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
@@ -945102,7 +945474,7 @@ async function migrateAndWriteGeneratorsYml2({ absolutePathToWorkspace }) {
|
|
|
945102
945474
|
}
|
|
945103
945475
|
|
|
945104
945476
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlyMultipleAPIs.js
|
|
945105
|
-
|
|
945477
|
+
init_lib7();
|
|
945106
945478
|
var import_promises166 = require("fs/promises");
|
|
945107
945479
|
init_js_yaml();
|
|
945108
945480
|
var APIS_DIRECTORY3 = "apis";
|
|
@@ -945131,7 +945503,7 @@ async function migrateAndWriteGeneratorsYml3({ absolutePathToWorkspace }) {
|
|
|
945131
945503
|
}
|
|
945132
945504
|
|
|
945133
945505
|
// ../cli-migrations/lib/migrations/0.15.0-rc0/update-directory-structure/migrateOnlySingleAPI.js
|
|
945134
|
-
|
|
945506
|
+
init_lib7();
|
|
945135
945507
|
var import_promises167 = require("fs/promises");
|
|
945136
945508
|
init_js_yaml();
|
|
945137
945509
|
async function migrateOnlySingleAPI({ absolutePathToFernDirectory, absolutePathToWorkspace }) {
|
|
@@ -945226,7 +945598,7 @@ var versionMigrations15 = {
|
|
|
945226
945598
|
var __default15 = versionMigrations15;
|
|
945227
945599
|
|
|
945228
945600
|
// ../cli-migrations/lib/migrations/0.41.0-rc0/require-generators-yml/migration.js
|
|
945229
|
-
|
|
945601
|
+
init_lib7();
|
|
945230
945602
|
var import_promises168 = require("fs/promises");
|
|
945231
945603
|
init_js_yaml();
|
|
945232
945604
|
var import_yaml16 = __toESM(require_dist9(), 1);
|
|
@@ -945313,7 +945685,7 @@ var versionMigrations16 = {
|
|
|
945313
945685
|
var __default16 = versionMigrations16;
|
|
945314
945686
|
|
|
945315
945687
|
// ../cli-migrations/lib/migrations/0.54.0-rc0/use-generators-yml-specs/migration.js
|
|
945316
|
-
|
|
945688
|
+
init_lib7();
|
|
945317
945689
|
var import_promises169 = require("fs/promises");
|
|
945318
945690
|
init_js_yaml();
|
|
945319
945691
|
var import_yaml17 = __toESM(require_dist9(), 1);
|
|
@@ -945645,7 +946017,7 @@ var versionMigrations17 = {
|
|
|
945645
946017
|
var __default17 = versionMigrations17;
|
|
945646
946018
|
|
|
945647
946019
|
// ../cli-migrations/lib/migrations/0.82.1/add-path-parameter-order-setting/migration.js
|
|
945648
|
-
|
|
946020
|
+
init_lib7();
|
|
945649
946021
|
var import_promises170 = require("fs/promises");
|
|
945650
946022
|
init_js_yaml();
|
|
945651
946023
|
var migration18 = {
|
|
@@ -945771,7 +946143,7 @@ var versionMigrations18 = {
|
|
|
945771
946143
|
var __default18 = versionMigrations18;
|
|
945772
946144
|
|
|
945773
946145
|
// ../cli-migrations/lib/migrations/1.0.0/update-settings-defaults/migration.js
|
|
945774
|
-
|
|
946146
|
+
init_lib7();
|
|
945775
946147
|
var import_promises171 = require("fs/promises");
|
|
945776
946148
|
init_js_yaml();
|
|
945777
946149
|
var migration19 = {
|
|
@@ -946017,7 +946389,7 @@ var versionMigrations19 = {
|
|
|
946017
946389
|
var __default19 = versionMigrations19;
|
|
946018
946390
|
|
|
946019
946391
|
// ../cli-migrations/lib/migrations/2.0.0-rc0/update-settings-defaults/migration.js
|
|
946020
|
-
|
|
946392
|
+
init_lib7();
|
|
946021
946393
|
var import_promises172 = require("fs/promises");
|
|
946022
946394
|
init_js_yaml();
|
|
946023
946395
|
var migration20 = {
|
|
@@ -946240,7 +946612,7 @@ var versionMigrations20 = {
|
|
|
946240
946612
|
var __default20 = versionMigrations20;
|
|
946241
946613
|
|
|
946242
946614
|
// ../cli-migrations/lib/migrations/2.13.0/migrate-deprecated-generator-api-settings/migration.js
|
|
946243
|
-
|
|
946615
|
+
init_lib7();
|
|
946244
946616
|
var import_promises173 = require("fs/promises");
|
|
946245
946617
|
init_js_yaml();
|
|
946246
946618
|
var migration21 = {
|
|
@@ -946379,7 +946751,7 @@ var versionMigrations21 = {
|
|
|
946379
946751
|
var __default21 = versionMigrations21;
|
|
946380
946752
|
|
|
946381
946753
|
// ../cli-migrations/lib/migrations/3.0.0/enable-smart-casing/migration.js
|
|
946382
|
-
|
|
946754
|
+
init_lib7();
|
|
946383
946755
|
var import_promises174 = require("fs/promises");
|
|
946384
946756
|
init_js_yaml();
|
|
946385
946757
|
var migration22 = {
|
|
@@ -946606,7 +946978,7 @@ ${source_default.dim(migration23.summary)}`
|
|
|
946606
946978
|
}
|
|
946607
946979
|
|
|
946608
946980
|
// src/commands/upgrade/upgrade.ts
|
|
946609
|
-
|
|
946981
|
+
init_lib11();
|
|
946610
946982
|
var import_promises175 = require("fs/promises");
|
|
946611
946983
|
|
|
946612
946984
|
// ../../../node_modules/.pnpm/immer@10.2.0/node_modules/immer/dist/immer.mjs
|
|
@@ -947334,7 +947706,7 @@ var immer = new Immer2();
|
|
|
947334
947706
|
var produce = immer.produce;
|
|
947335
947707
|
|
|
947336
947708
|
// src/rerunFernCliAtVersion.ts
|
|
947337
|
-
|
|
947709
|
+
init_lib11();
|
|
947338
947710
|
|
|
947339
947711
|
// src/cwd.ts
|
|
947340
947712
|
var FERN_CWD_ENV_VAR = "FERN_CWD";
|
|
@@ -947925,7 +948297,7 @@ function buildPrSuggestion({
|
|
|
947925
948297
|
|
|
947926
948298
|
// src/commands/diff/diff.ts
|
|
947927
948299
|
init_lib4();
|
|
947928
|
-
|
|
948300
|
+
init_lib7();
|
|
947929
948301
|
var import_semver17 = __toESM(require_semver2(), 1);
|
|
947930
948302
|
async function diff({
|
|
947931
948303
|
context: context3,
|
|
@@ -948286,7 +948658,7 @@ async function previewDocsWorkspace({
|
|
|
948286
948658
|
}
|
|
948287
948659
|
|
|
948288
948660
|
// src/commands/docs-diff/docsDiff.ts
|
|
948289
|
-
|
|
948661
|
+
init_lib7();
|
|
948290
948662
|
var import_promises177 = require("fs/promises");
|
|
948291
948663
|
var import_pngjs = __toESM(require_png2(), 1);
|
|
948292
948664
|
async function getSlugForFiles({
|
|
@@ -948717,7 +949089,7 @@ async function docsDiff({
|
|
|
948717
949089
|
|
|
948718
949090
|
// src/commands/docs-md-generate/generateLibraryDocs.ts
|
|
948719
949091
|
init_lib4();
|
|
948720
|
-
|
|
949092
|
+
init_lib7();
|
|
948721
949093
|
|
|
948722
949094
|
// ../library-docs-generator/lib/cpp/src/context.js
|
|
948723
949095
|
var entityRegistry = /* @__PURE__ */ new Map();
|
|
@@ -953525,7 +953897,7 @@ Found ${previewDeployments.length} preview deployment(s):
|
|
|
953525
953897
|
}
|
|
953526
953898
|
|
|
953527
953899
|
// src/commands/docs-theme/ThemeExporter.ts
|
|
953528
|
-
|
|
953900
|
+
init_lib7();
|
|
953529
953901
|
var import_promises179 = require("fs/promises");
|
|
953530
953902
|
init_js_yaml();
|
|
953531
953903
|
var import_path97 = __toESM(require("path"), 1);
|
|
@@ -953700,7 +954072,7 @@ init_js_yaml();
|
|
|
953700
954072
|
var import_path99 = __toESM(require("path"), 1);
|
|
953701
954073
|
|
|
953702
954074
|
// src/commands/docs-theme/ThemeConfigProcessor.ts
|
|
953703
|
-
|
|
954075
|
+
init_lib7();
|
|
953704
954076
|
var import_child_process12 = require("child_process");
|
|
953705
954077
|
var import_crypto9 = require("crypto");
|
|
953706
954078
|
var import_promises180 = require("fs/promises");
|
|
@@ -954110,7 +954482,7 @@ async function downgrade({
|
|
|
954110
954482
|
}
|
|
954111
954483
|
|
|
954112
954484
|
// src/commands/export/generateOpenAPIForWorkspaces.ts
|
|
954113
|
-
|
|
954485
|
+
init_lib7();
|
|
954114
954486
|
var import_promises183 = require("fs/promises");
|
|
954115
954487
|
init_js_yaml();
|
|
954116
954488
|
|
|
@@ -955530,7 +955902,7 @@ async function formatWorkspaces({
|
|
|
955530
955902
|
// src/commands/generate/generateDocsWorkspace.ts
|
|
955531
955903
|
init_lib4();
|
|
955532
955904
|
init_js();
|
|
955533
|
-
|
|
955905
|
+
init_lib7();
|
|
955534
955906
|
|
|
955535
955907
|
// src/utils/environment.ts
|
|
955536
955908
|
function detectCISource() {
|
|
@@ -955821,7 +956193,7 @@ function summarizeValidationErrors(errors4) {
|
|
|
955821
956193
|
}
|
|
955822
956194
|
|
|
955823
956195
|
// src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts
|
|
955824
|
-
|
|
956196
|
+
init_lib7();
|
|
955825
956197
|
var import_path100 = __toESM(require("path"), 1);
|
|
955826
956198
|
|
|
955827
956199
|
// src/commands/generate-ir/generateIrForFernWorkspace.ts
|
|
@@ -955896,7 +956268,7 @@ async function generateDynamicIrForWorkspaces({
|
|
|
955896
956268
|
}
|
|
955897
956269
|
|
|
955898
956270
|
// src/commands/generate-fdr/generateFdrApiDefinitionForWorkspaces.ts
|
|
955899
|
-
|
|
956271
|
+
init_lib7();
|
|
955900
956272
|
var import_path101 = __toESM(require("path"), 1);
|
|
955901
956273
|
async function generateFdrApiDefinitionForWorkspaces({
|
|
955902
956274
|
project,
|
|
@@ -955943,7 +956315,7 @@ async function generateFdrApiDefinitionForWorkspaces({
|
|
|
955943
956315
|
}
|
|
955944
956316
|
|
|
955945
956317
|
// src/commands/generate-ir/generateIrForWorkspaces.ts
|
|
955946
|
-
|
|
956318
|
+
init_lib7();
|
|
955947
956319
|
var import_path102 = __toESM(require("path"), 1);
|
|
955948
956320
|
async function generateIrForWorkspaces({
|
|
955949
956321
|
project,
|
|
@@ -956029,7 +956401,7 @@ async function getIntermediateRepresentation2({
|
|
|
956029
956401
|
}
|
|
956030
956402
|
|
|
956031
956403
|
// src/commands/generate-openapi-fdr/generateOpenApiToFdrApiDefinitionForWorkspaces.ts
|
|
956032
|
-
|
|
956404
|
+
init_lib7();
|
|
956033
956405
|
var import_path103 = __toESM(require("path"), 1);
|
|
956034
956406
|
async function generateOpenApiToFdrApiDefinitionForWorkspaces({
|
|
956035
956407
|
project,
|
|
@@ -956050,7 +956422,7 @@ async function generateOpenApiToFdrApiDefinitionForWorkspaces({
|
|
|
956050
956422
|
}
|
|
956051
956423
|
|
|
956052
956424
|
// src/commands/generate-openapi-ir/generateOpenAPIIrForWorkspaces.ts
|
|
956053
|
-
|
|
956425
|
+
init_lib7();
|
|
956054
956426
|
var import_path104 = __toESM(require("path"), 1);
|
|
956055
956427
|
async function generateOpenAPIIrForWorkspaces({
|
|
956056
956428
|
project,
|
|
@@ -956085,7 +956457,7 @@ async function generateOpenAPIIrForWorkspaces({
|
|
|
956085
956457
|
}
|
|
956086
956458
|
|
|
956087
956459
|
// src/commands/generate-overrides/compareOpenAPISpecs.ts
|
|
956088
|
-
|
|
956460
|
+
init_lib7();
|
|
956089
956461
|
var import_promises184 = require("fs/promises");
|
|
956090
956462
|
init_js_yaml();
|
|
956091
956463
|
async function compareOpenAPISpecs({
|
|
@@ -956236,7 +956608,7 @@ function deepEqual(a3, b8) {
|
|
|
956236
956608
|
}
|
|
956237
956609
|
|
|
956238
956610
|
// src/commands/generate-overrides/writeOverridesForWorkspaces.ts
|
|
956239
|
-
|
|
956611
|
+
init_lib7();
|
|
956240
956612
|
var import_promises185 = require("fs/promises");
|
|
956241
956613
|
init_js_yaml();
|
|
956242
956614
|
async function writeOverridesForWorkspaces({
|
|
@@ -956396,7 +956768,7 @@ async function installDependencies({ cliContext }) {
|
|
|
956396
956768
|
}
|
|
956397
956769
|
|
|
956398
956770
|
// src/commands/jsonschema/generateJsonschemaForWorkspace.ts
|
|
956399
|
-
|
|
956771
|
+
init_lib7();
|
|
956400
956772
|
|
|
956401
956773
|
// ../fern-definition/ir-to-jsonschema/lib/converters/convertTypeDeclarationToJsonSchema.js
|
|
956402
956774
|
init_lib4();
|
|
@@ -956816,7 +957188,7 @@ async function generateJsonschemaForWorkspaces({
|
|
|
956816
957188
|
}
|
|
956817
957189
|
|
|
956818
957190
|
// src/commands/merge/mergeOpenAPIWithOverrides.ts
|
|
956819
|
-
|
|
957191
|
+
init_lib7();
|
|
956820
957192
|
var import_promises187 = require("fs/promises");
|
|
956821
957193
|
init_js_yaml();
|
|
956822
957194
|
var HTTP_METHODS2 = /* @__PURE__ */ new Set(["get", "put", "post", "delete", "options", "head", "patch", "trace"]);
|
|
@@ -957587,9 +957959,9 @@ function getAIEnhancerConfig2() {
|
|
|
957587
957959
|
}
|
|
957588
957960
|
|
|
957589
957961
|
// src/commands/sdk-diff/sdkDiffCommand.ts
|
|
957590
|
-
|
|
957962
|
+
init_lib41();
|
|
957591
957963
|
init_lib4();
|
|
957592
|
-
|
|
957964
|
+
init_lib7();
|
|
957593
957965
|
var import_autoversion5 = __toESM(require_autoversion(), 1);
|
|
957594
957966
|
var import_child_process13 = require("child_process");
|
|
957595
957967
|
var import_util70 = require("util");
|
|
@@ -957780,7 +958152,7 @@ async function generateDiff({
|
|
|
957780
958152
|
}
|
|
957781
958153
|
|
|
957782
958154
|
// src/commands/sdk-preview/sdkPreview.ts
|
|
957783
|
-
|
|
958155
|
+
init_lib7();
|
|
957784
958156
|
var import_promises189 = __toESM(require("fs/promises"), 1);
|
|
957785
958157
|
|
|
957786
958158
|
// src/commands/sdk-preview/computePreviewVersion.ts
|
|
@@ -958087,7 +958459,7 @@ async function sdkPreview({
|
|
|
958087
958459
|
}
|
|
958088
958460
|
|
|
958089
958461
|
// src/commands/self-update/selfUpdate.ts
|
|
958090
|
-
|
|
958462
|
+
init_lib11();
|
|
958091
958463
|
var import_promises190 = require("fs/promises");
|
|
958092
958464
|
var import_path106 = require("path");
|
|
958093
958465
|
async function getPackageManagerBinDir(logger4, pm2) {
|
|
@@ -958322,7 +958694,7 @@ Resolved to: ${installationMethod.resolvedPath}`;
|
|
|
958322
958694
|
}
|
|
958323
958695
|
|
|
958324
958696
|
// src/commands/test/testOutput.ts
|
|
958325
|
-
|
|
958697
|
+
init_lib11();
|
|
958326
958698
|
async function testOutput({
|
|
958327
958699
|
cliContext,
|
|
958328
958700
|
project,
|
|
@@ -958436,7 +958808,7 @@ async function generateToken({
|
|
|
958436
958808
|
}
|
|
958437
958809
|
|
|
958438
958810
|
// src/commands/upgrade/updateApiSpec.ts
|
|
958439
|
-
|
|
958811
|
+
init_lib7();
|
|
958440
958812
|
var fs27 = __toESM(require("fs"), 1);
|
|
958441
958813
|
var import_promises191 = require("fs/promises");
|
|
958442
958814
|
init_graphql();
|
|
@@ -958758,7 +959130,7 @@ async function validateDocsBrokenLinks({
|
|
|
958758
959130
|
}
|
|
958759
959131
|
|
|
958760
959132
|
// src/commands/validate/validateMdx.ts
|
|
958761
|
-
|
|
959133
|
+
init_lib40();
|
|
958762
959134
|
var import_fs40 = require("fs");
|
|
958763
959135
|
var import_gray_matter11 = __toESM(require_gray_matter(), 1);
|
|
958764
959136
|
var import_path107 = __toESM(require("path"), 1);
|
|
@@ -958894,7 +959266,7 @@ function logMdxValidationResults({
|
|
|
958894
959266
|
}
|
|
958895
959267
|
|
|
958896
959268
|
// src/commands/validate/validateWorkspaces.ts
|
|
958897
|
-
|
|
959269
|
+
init_lib7();
|
|
958898
959270
|
|
|
958899
959271
|
// src/commands/validate/buildCheckJsonResult.ts
|
|
958900
959272
|
function buildCheckJsonResult({
|
|
@@ -959283,7 +959655,7 @@ async function validateWorkspaces({
|
|
|
959283
959655
|
}
|
|
959284
959656
|
|
|
959285
959657
|
// src/commands/write-definition/writeDefinitionForWorkspaces.ts
|
|
959286
|
-
|
|
959658
|
+
init_lib7();
|
|
959287
959659
|
var import_promises193 = require("fs/promises");
|
|
959288
959660
|
init_js_yaml();
|
|
959289
959661
|
var import_path108 = __toESM(require("path"), 1);
|
|
@@ -959386,7 +959758,7 @@ async function writeFernDefinition({
|
|
|
959386
959758
|
}
|
|
959387
959759
|
|
|
959388
959760
|
// src/commands/write-docs-definition/writeDocsDefinitionForProject.ts
|
|
959389
|
-
|
|
959761
|
+
init_lib7();
|
|
959390
959762
|
var import_promises194 = require("fs/promises");
|
|
959391
959763
|
async function writeDocsDefinitionForProject({
|
|
959392
959764
|
project,
|
|
@@ -960094,6 +960466,11 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960094
960466
|
default: true,
|
|
960095
960467
|
hidden: true,
|
|
960096
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)"
|
|
960097
960474
|
}).option("retry-rate-limited", {
|
|
960098
960475
|
boolean: true,
|
|
960099
960476
|
default: false,
|
|
@@ -960219,6 +960596,7 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960219
960596
|
dynamicIrOnly: argv["dynamic-ir-only"],
|
|
960220
960597
|
outputDir: argv.output,
|
|
960221
960598
|
noReplay: !argv.replay,
|
|
960599
|
+
verify: argv.verify,
|
|
960222
960600
|
retryRateLimited: argv["retry-rate-limited"],
|
|
960223
960601
|
requireEnvVars: argv["require-env-vars"],
|
|
960224
960602
|
skipIfNoDiff: argv["skip-if-no-diff"]
|
|
@@ -960279,6 +960657,7 @@ function addGenerateCommand2(cli, cliContext) {
|
|
|
960279
960657
|
dynamicIrOnly: argv["dynamic-ir-only"],
|
|
960280
960658
|
outputDir: argv.output,
|
|
960281
960659
|
noReplay: !argv.replay,
|
|
960660
|
+
verify: argv.verify,
|
|
960282
960661
|
retryRateLimited: argv["retry-rate-limited"],
|
|
960283
960662
|
requireEnvVars: argv["require-env-vars"],
|
|
960284
960663
|
skipIfNoDiff: argv["skip-if-no-diff"]
|