@fern-api/fern-api-dev 5.23.3-202-g3070ff92a9e → 5.23.3-212-g407b61686d1
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 +237 -166
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -4178,8 +4178,8 @@ function hrTimeDuration(startTime, endTime) {
|
|
|
4178
4178
|
}
|
|
4179
4179
|
function hrTimeToTimeStamp(time3) {
|
|
4180
4180
|
const precision = NANOSECOND_DIGITS;
|
|
4181
|
-
const
|
|
4182
|
-
const nanoString =
|
|
4181
|
+
const tmp19 = `${"0".repeat(precision)}${time3[1]}Z`;
|
|
4182
|
+
const nanoString = tmp19.substring(tmp19.length - precision - 1);
|
|
4183
4183
|
const date26 = new Date(time3[0] * 1e3).toISOString();
|
|
4184
4184
|
return date26.replace("000Z", nanoString);
|
|
4185
4185
|
}
|
|
@@ -20549,15 +20549,15 @@ var init_cliui = __esm({
|
|
|
20549
20549
|
// ../../../node_modules/.pnpm/escalade@3.2.0/node_modules/escalade/sync/index.mjs
|
|
20550
20550
|
function sync_default(start2, callback) {
|
|
20551
20551
|
let dir = (0, import_path5.resolve)(".", start2);
|
|
20552
|
-
let
|
|
20552
|
+
let tmp19, stats = (0, import_fs4.statSync)(dir);
|
|
20553
20553
|
if (!stats.isDirectory()) {
|
|
20554
20554
|
dir = (0, import_path5.dirname)(dir);
|
|
20555
20555
|
}
|
|
20556
20556
|
while (true) {
|
|
20557
|
-
|
|
20558
|
-
if (
|
|
20559
|
-
dir = (0, import_path5.dirname)(
|
|
20560
|
-
if (
|
|
20557
|
+
tmp19 = callback(dir, (0, import_fs4.readdirSync)(dir));
|
|
20558
|
+
if (tmp19) return (0, import_path5.resolve)(dir, tmp19);
|
|
20559
|
+
dir = (0, import_path5.dirname)(tmp19 = dir);
|
|
20560
|
+
if (tmp19 === dir) break;
|
|
20561
20561
|
}
|
|
20562
20562
|
}
|
|
20563
20563
|
var import_path5, import_fs4;
|
|
@@ -27167,16 +27167,16 @@ var init_index_node_esm = __esm({
|
|
|
27167
27167
|
for (let t3 = 0; t3 < ret.length; t3++) {
|
|
27168
27168
|
const rett = ret[t3];
|
|
27169
27169
|
if (rett && rett.isParentSelector) {
|
|
27170
|
-
const
|
|
27171
|
-
if (Array.isArray(
|
|
27172
|
-
ret[t3] =
|
|
27173
|
-
const tl5 =
|
|
27170
|
+
const tmp19 = this._trace(rett.expr, val, rett.path, parent, parentPropName, callback, hasArrExpr);
|
|
27171
|
+
if (Array.isArray(tmp19)) {
|
|
27172
|
+
ret[t3] = tmp19[0];
|
|
27173
|
+
const tl5 = tmp19.length;
|
|
27174
27174
|
for (let tt9 = 1; tt9 < tl5; tt9++) {
|
|
27175
27175
|
t3++;
|
|
27176
|
-
ret.splice(t3, 0,
|
|
27176
|
+
ret.splice(t3, 0, tmp19[tt9]);
|
|
27177
27177
|
}
|
|
27178
27178
|
} else {
|
|
27179
|
-
ret[t3] =
|
|
27179
|
+
ret[t3] = tmp19;
|
|
27180
27180
|
}
|
|
27181
27181
|
}
|
|
27182
27182
|
}
|
|
@@ -27205,8 +27205,8 @@ var init_index_node_esm = __esm({
|
|
|
27205
27205
|
end = end < 0 ? Math.max(0, end + len) : Math.min(len, end);
|
|
27206
27206
|
const ret = [];
|
|
27207
27207
|
for (let i9 = start2; i9 < end; i9 += step) {
|
|
27208
|
-
const
|
|
27209
|
-
|
|
27208
|
+
const tmp19 = this._trace(unshift(i9, expr), val, path115, parent, parentPropName, callback, true);
|
|
27209
|
+
tmp19.forEach((t3) => {
|
|
27210
27210
|
ret.push(t3);
|
|
27211
27211
|
});
|
|
27212
27212
|
}
|
|
@@ -53021,10 +53021,10 @@ var require_tmp_promise = __commonJS({
|
|
|
53021
53021
|
"../../../node_modules/.pnpm/tmp-promise@3.0.3/node_modules/tmp-promise/index.js"(exports2, module4) {
|
|
53022
53022
|
"use strict";
|
|
53023
53023
|
var { promisify: promisify8 } = require("util");
|
|
53024
|
-
var
|
|
53025
|
-
module4.exports.fileSync =
|
|
53024
|
+
var tmp19 = require_tmp();
|
|
53025
|
+
module4.exports.fileSync = tmp19.fileSync;
|
|
53026
53026
|
var fileWithOptions = promisify8(
|
|
53027
|
-
(options2, cb) =>
|
|
53027
|
+
(options2, cb) => tmp19.file(
|
|
53028
53028
|
options2,
|
|
53029
53029
|
(err, path115, fd2, cleanup) => err ? cb(err) : cb(void 0, { path: path115, fd: fd2, cleanup: promisify8(cleanup) })
|
|
53030
53030
|
)
|
|
@@ -53038,9 +53038,9 @@ var require_tmp_promise = __commonJS({
|
|
|
53038
53038
|
await cleanup();
|
|
53039
53039
|
}
|
|
53040
53040
|
};
|
|
53041
|
-
module4.exports.dirSync =
|
|
53041
|
+
module4.exports.dirSync = tmp19.dirSync;
|
|
53042
53042
|
var dirWithOptions = promisify8(
|
|
53043
|
-
(options2, cb) =>
|
|
53043
|
+
(options2, cb) => tmp19.dir(
|
|
53044
53044
|
options2,
|
|
53045
53045
|
(err, path115, cleanup) => err ? cb(err) : cb(void 0, { path: path115, cleanup: promisify8(cleanup) })
|
|
53046
53046
|
)
|
|
@@ -53054,10 +53054,10 @@ var require_tmp_promise = __commonJS({
|
|
|
53054
53054
|
await cleanup();
|
|
53055
53055
|
}
|
|
53056
53056
|
};
|
|
53057
|
-
module4.exports.tmpNameSync =
|
|
53058
|
-
module4.exports.tmpName = promisify8(
|
|
53059
|
-
module4.exports.tmpdir =
|
|
53060
|
-
module4.exports.setGracefulCleanup =
|
|
53057
|
+
module4.exports.tmpNameSync = tmp19.tmpNameSync;
|
|
53058
|
+
module4.exports.tmpName = promisify8(tmp19.tmpName);
|
|
53059
|
+
module4.exports.tmpdir = tmp19.tmpdir;
|
|
53060
|
+
module4.exports.setGracefulCleanup = tmp19.setGracefulCleanup;
|
|
53061
53061
|
}
|
|
53062
53062
|
});
|
|
53063
53063
|
|
|
@@ -59058,23 +59058,23 @@ function getValues(context3, operator2, key2, modifier) {
|
|
|
59058
59058
|
});
|
|
59059
59059
|
}
|
|
59060
59060
|
} else {
|
|
59061
|
-
const
|
|
59061
|
+
const tmp19 = [];
|
|
59062
59062
|
if (Array.isArray(value2)) {
|
|
59063
59063
|
value2.filter(isDefined).forEach(function(value22) {
|
|
59064
|
-
|
|
59064
|
+
tmp19.push(encodeValue(operator2, value22));
|
|
59065
59065
|
});
|
|
59066
59066
|
} else {
|
|
59067
59067
|
Object.keys(value2).forEach(function(k5) {
|
|
59068
59068
|
if (isDefined(value2[k5])) {
|
|
59069
|
-
|
|
59070
|
-
|
|
59069
|
+
tmp19.push(encodeUnreserved(k5));
|
|
59070
|
+
tmp19.push(encodeValue(operator2, value2[k5].toString()));
|
|
59071
59071
|
}
|
|
59072
59072
|
});
|
|
59073
59073
|
}
|
|
59074
59074
|
if (isKeyOperator(operator2)) {
|
|
59075
|
-
result.push(encodeUnreserved(key2) + "=" +
|
|
59076
|
-
} else if (
|
|
59077
|
-
result.push(
|
|
59075
|
+
result.push(encodeUnreserved(key2) + "=" + tmp19.join(","));
|
|
59076
|
+
} else if (tmp19.length !== 0) {
|
|
59077
|
+
result.push(tmp19.join(","));
|
|
59078
59078
|
}
|
|
59079
59079
|
}
|
|
59080
59080
|
}
|
|
@@ -59109,8 +59109,8 @@ function expand2(template, context3) {
|
|
|
59109
59109
|
expression = expression.substr(1);
|
|
59110
59110
|
}
|
|
59111
59111
|
expression.split(/,/g).forEach(function(variable3) {
|
|
59112
|
-
var
|
|
59113
|
-
values2.push(getValues(context3, operator2,
|
|
59112
|
+
var tmp19 = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable3);
|
|
59113
|
+
values2.push(getValues(context3, operator2, tmp19[1], tmp19[2] || tmp19[3]));
|
|
59114
59114
|
});
|
|
59115
59115
|
if (operator2 && operator2 !== "+") {
|
|
59116
59116
|
var separator = ",";
|
|
@@ -70623,7 +70623,7 @@ function readSingleQuotedScalar(state, nodeIndent) {
|
|
|
70623
70623
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
70624
70624
|
}
|
|
70625
70625
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
70626
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
70626
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp19, ch;
|
|
70627
70627
|
ch = state.input.charCodeAt(state.position);
|
|
70628
70628
|
if (ch !== 34) {
|
|
70629
70629
|
return false;
|
|
@@ -70645,13 +70645,13 @@ function readDoubleQuotedScalar(state, nodeIndent) {
|
|
|
70645
70645
|
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
70646
70646
|
state.result += simpleEscapeMap[ch];
|
|
70647
70647
|
state.position++;
|
|
70648
|
-
} else if ((
|
|
70649
|
-
hexLength =
|
|
70648
|
+
} else if ((tmp19 = escapedHexLen(ch)) > 0) {
|
|
70649
|
+
hexLength = tmp19;
|
|
70650
70650
|
hexResult = 0;
|
|
70651
70651
|
for (; hexLength > 0; hexLength--) {
|
|
70652
70652
|
ch = state.input.charCodeAt(++state.position);
|
|
70653
|
-
if ((
|
|
70654
|
-
hexResult = (hexResult << 4) +
|
|
70653
|
+
if ((tmp19 = fromHexCode(ch)) >= 0) {
|
|
70654
|
+
hexResult = (hexResult << 4) + tmp19;
|
|
70655
70655
|
} else {
|
|
70656
70656
|
throwError(state, "expected hexadecimal character");
|
|
70657
70657
|
}
|
|
@@ -70752,7 +70752,7 @@ function readFlowCollection(state, nodeIndent) {
|
|
|
70752
70752
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
70753
70753
|
}
|
|
70754
70754
|
function readBlockScalar(state, nodeIndent) {
|
|
70755
|
-
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
70755
|
+
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp19, ch;
|
|
70756
70756
|
ch = state.input.charCodeAt(state.position);
|
|
70757
70757
|
if (ch === 124) {
|
|
70758
70758
|
folding = false;
|
|
@@ -70771,11 +70771,11 @@ function readBlockScalar(state, nodeIndent) {
|
|
|
70771
70771
|
} else {
|
|
70772
70772
|
throwError(state, "repeat of a chomping mode identifier");
|
|
70773
70773
|
}
|
|
70774
|
-
} else if ((
|
|
70775
|
-
if (
|
|
70774
|
+
} else if ((tmp19 = fromDecimalCode(ch)) >= 0) {
|
|
70775
|
+
if (tmp19 === 0) {
|
|
70776
70776
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
70777
70777
|
} else if (!detectedIndent) {
|
|
70778
|
-
textIndent = nodeIndent +
|
|
70778
|
+
textIndent = nodeIndent + tmp19 - 1;
|
|
70779
70779
|
detectedIndent = true;
|
|
70780
70780
|
} else {
|
|
70781
70781
|
throwError(state, "repeat of an indentation width identifier");
|
|
@@ -77859,7 +77859,7 @@ var require_loader = __commonJS({
|
|
|
77859
77859
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
77860
77860
|
}
|
|
77861
77861
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
77862
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
77862
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp19, ch;
|
|
77863
77863
|
ch = state.input.charCodeAt(state.position);
|
|
77864
77864
|
if (ch !== 34) {
|
|
77865
77865
|
return false;
|
|
@@ -77881,13 +77881,13 @@ var require_loader = __commonJS({
|
|
|
77881
77881
|
} else if (ch < 256 && simpleEscapeCheck2[ch]) {
|
|
77882
77882
|
state.result += simpleEscapeMap2[ch];
|
|
77883
77883
|
state.position++;
|
|
77884
|
-
} else if ((
|
|
77885
|
-
hexLength =
|
|
77884
|
+
} else if ((tmp19 = escapedHexLen2(ch)) > 0) {
|
|
77885
|
+
hexLength = tmp19;
|
|
77886
77886
|
hexResult = 0;
|
|
77887
77887
|
for (; hexLength > 0; hexLength--) {
|
|
77888
77888
|
ch = state.input.charCodeAt(++state.position);
|
|
77889
|
-
if ((
|
|
77890
|
-
hexResult = (hexResult << 4) +
|
|
77889
|
+
if ((tmp19 = fromHexCode2(ch)) >= 0) {
|
|
77890
|
+
hexResult = (hexResult << 4) + tmp19;
|
|
77891
77891
|
} else {
|
|
77892
77892
|
throwError2(state, "expected hexadecimal character");
|
|
77893
77893
|
}
|
|
@@ -77988,7 +77988,7 @@ var require_loader = __commonJS({
|
|
|
77988
77988
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
77989
77989
|
}
|
|
77990
77990
|
function readBlockScalar2(state, nodeIndent) {
|
|
77991
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
77991
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp19, ch;
|
|
77992
77992
|
ch = state.input.charCodeAt(state.position);
|
|
77993
77993
|
if (ch === 124) {
|
|
77994
77994
|
folding = false;
|
|
@@ -78007,11 +78007,11 @@ var require_loader = __commonJS({
|
|
|
78007
78007
|
} else {
|
|
78008
78008
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
78009
78009
|
}
|
|
78010
|
-
} else if ((
|
|
78011
|
-
if (
|
|
78010
|
+
} else if ((tmp19 = fromDecimalCode2(ch)) >= 0) {
|
|
78011
|
+
if (tmp19 === 0) {
|
|
78012
78012
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
78013
78013
|
} else if (!detectedIndent) {
|
|
78014
|
-
textIndent = nodeIndent +
|
|
78014
|
+
textIndent = nodeIndent + tmp19 - 1;
|
|
78015
78015
|
detectedIndent = true;
|
|
78016
78016
|
} else {
|
|
78017
78017
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -95473,9 +95473,9 @@ var require_js_levenshtein = __commonJS({
|
|
|
95473
95473
|
return 0;
|
|
95474
95474
|
}
|
|
95475
95475
|
if (a3.length > b8.length) {
|
|
95476
|
-
var
|
|
95476
|
+
var tmp19 = a3;
|
|
95477
95477
|
a3 = b8;
|
|
95478
|
-
b8 =
|
|
95478
|
+
b8 = tmp19;
|
|
95479
95479
|
}
|
|
95480
95480
|
var la7 = a3.length;
|
|
95481
95481
|
var lb = b8.length;
|
|
@@ -104092,7 +104092,7 @@ var require_loader2 = __commonJS({
|
|
|
104092
104092
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
104093
104093
|
}
|
|
104094
104094
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
104095
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
104095
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp19, tmpEsc, ch;
|
|
104096
104096
|
ch = state.input.charCodeAt(state.position);
|
|
104097
104097
|
if (34 !== ch) {
|
|
104098
104098
|
return false;
|
|
@@ -104119,13 +104119,13 @@ var require_loader2 = __commonJS({
|
|
|
104119
104119
|
} else if (ch < 256 && (state.allowAnyEscape ? customEscapeCheck[ch] : simpleEscapeCheck2[ch])) {
|
|
104120
104120
|
scalar.value += state.allowAnyEscape ? customEscapeMap[ch] : simpleEscapeMap2[ch];
|
|
104121
104121
|
state.position++;
|
|
104122
|
-
} else if ((
|
|
104123
|
-
hexLength =
|
|
104122
|
+
} else if ((tmp19 = escapedHexLen2(ch)) > 0) {
|
|
104123
|
+
hexLength = tmp19;
|
|
104124
104124
|
hexResult = 0;
|
|
104125
104125
|
for (; hexLength > 0; hexLength--) {
|
|
104126
104126
|
ch = state.input.charCodeAt(++state.position);
|
|
104127
|
-
if ((
|
|
104128
|
-
hexResult = (hexResult << 4) +
|
|
104127
|
+
if ((tmp19 = fromHexCode2(ch)) >= 0) {
|
|
104128
|
+
hexResult = (hexResult << 4) + tmp19;
|
|
104129
104129
|
} else {
|
|
104130
104130
|
throwError2(state, "expected hexadecimal character");
|
|
104131
104131
|
}
|
|
@@ -104234,7 +104234,7 @@ var require_loader2 = __commonJS({
|
|
|
104234
104234
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
104235
104235
|
}
|
|
104236
104236
|
function readBlockScalar2(state, nodeIndent) {
|
|
104237
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
104237
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp19, ch;
|
|
104238
104238
|
ch = state.input.charCodeAt(state.position);
|
|
104239
104239
|
if (ch === 124) {
|
|
104240
104240
|
folding = false;
|
|
@@ -104255,11 +104255,11 @@ var require_loader2 = __commonJS({
|
|
|
104255
104255
|
} else {
|
|
104256
104256
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
104257
104257
|
}
|
|
104258
|
-
} else if ((
|
|
104259
|
-
if (
|
|
104258
|
+
} else if ((tmp19 = fromDecimalCode2(ch)) >= 0) {
|
|
104259
|
+
if (tmp19 === 0) {
|
|
104260
104260
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
104261
104261
|
} else if (!detectedIndent) {
|
|
104262
|
-
textIndent = nodeIndent +
|
|
104262
|
+
textIndent = nodeIndent + tmp19 - 1;
|
|
104263
104263
|
detectedIndent = true;
|
|
104264
104264
|
} else {
|
|
104265
104265
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -181714,7 +181714,7 @@ var require_loader3 = __commonJS({
|
|
|
181714
181714
|
throwError2(state, "unexpected end of the stream within a single quoted scalar");
|
|
181715
181715
|
}
|
|
181716
181716
|
function readDoubleQuotedScalar2(state, nodeIndent) {
|
|
181717
|
-
var captureStart, captureEnd, hexLength, hexResult,
|
|
181717
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp19, ch;
|
|
181718
181718
|
ch = state.input.charCodeAt(state.position);
|
|
181719
181719
|
if (ch !== 34) {
|
|
181720
181720
|
return false;
|
|
@@ -181736,13 +181736,13 @@ var require_loader3 = __commonJS({
|
|
|
181736
181736
|
} else if (ch < 256 && simpleEscapeCheck2[ch]) {
|
|
181737
181737
|
state.result += simpleEscapeMap2[ch];
|
|
181738
181738
|
state.position++;
|
|
181739
|
-
} else if ((
|
|
181740
|
-
hexLength =
|
|
181739
|
+
} else if ((tmp19 = escapedHexLen2(ch)) > 0) {
|
|
181740
|
+
hexLength = tmp19;
|
|
181741
181741
|
hexResult = 0;
|
|
181742
181742
|
for (; hexLength > 0; hexLength--) {
|
|
181743
181743
|
ch = state.input.charCodeAt(++state.position);
|
|
181744
|
-
if ((
|
|
181745
|
-
hexResult = (hexResult << 4) +
|
|
181744
|
+
if ((tmp19 = fromHexCode2(ch)) >= 0) {
|
|
181745
|
+
hexResult = (hexResult << 4) + tmp19;
|
|
181746
181746
|
} else {
|
|
181747
181747
|
throwError2(state, "expected hexadecimal character");
|
|
181748
181748
|
}
|
|
@@ -181839,7 +181839,7 @@ var require_loader3 = __commonJS({
|
|
|
181839
181839
|
throwError2(state, "unexpected end of the stream within a flow collection");
|
|
181840
181840
|
}
|
|
181841
181841
|
function readBlockScalar2(state, nodeIndent) {
|
|
181842
|
-
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false,
|
|
181842
|
+
var captureStart, folding, chomping = CHOMPING_CLIP2, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp19, ch;
|
|
181843
181843
|
ch = state.input.charCodeAt(state.position);
|
|
181844
181844
|
if (ch === 124) {
|
|
181845
181845
|
folding = false;
|
|
@@ -181858,11 +181858,11 @@ var require_loader3 = __commonJS({
|
|
|
181858
181858
|
} else {
|
|
181859
181859
|
throwError2(state, "repeat of a chomping mode identifier");
|
|
181860
181860
|
}
|
|
181861
|
-
} else if ((
|
|
181862
|
-
if (
|
|
181861
|
+
} else if ((tmp19 = fromDecimalCode2(ch)) >= 0) {
|
|
181862
|
+
if (tmp19 === 0) {
|
|
181863
181863
|
throwError2(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
181864
181864
|
} else if (!detectedIndent) {
|
|
181865
|
-
textIndent = nodeIndent +
|
|
181865
|
+
textIndent = nodeIndent + tmp19 - 1;
|
|
181866
181866
|
detectedIndent = true;
|
|
181867
181867
|
} else {
|
|
181868
181868
|
throwError2(state, "repeat of an indentation width identifier");
|
|
@@ -188523,16 +188523,16 @@ var require_URLSearchParams = __commonJS({
|
|
|
188523
188523
|
);
|
|
188524
188524
|
} else {
|
|
188525
188525
|
const V5 = [];
|
|
188526
|
-
const
|
|
188527
|
-
for (let nextItem of
|
|
188526
|
+
const tmp19 = curArg;
|
|
188527
|
+
for (let nextItem of tmp19) {
|
|
188528
188528
|
if (!utils2.isObject(nextItem)) {
|
|
188529
188529
|
throw new globalObject.TypeError(
|
|
188530
188530
|
"Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object."
|
|
188531
188531
|
);
|
|
188532
188532
|
} else {
|
|
188533
188533
|
const V6 = [];
|
|
188534
|
-
const
|
|
188535
|
-
for (let nextItem2 of
|
|
188534
|
+
const tmp20 = nextItem;
|
|
188535
|
+
for (let nextItem2 of tmp20) {
|
|
188536
188536
|
nextItem2 = conversions["USVString"](nextItem2, {
|
|
188537
188537
|
context: "Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",
|
|
188538
188538
|
globals: globalObject
|
|
@@ -222713,13 +222713,13 @@ var require_fast_safe_stringify = __commonJS({
|
|
|
222713
222713
|
if (typeof options2 === "undefined") {
|
|
222714
222714
|
options2 = defaultOptions3();
|
|
222715
222715
|
}
|
|
222716
|
-
var
|
|
222716
|
+
var tmp19 = deterministicDecirc(obj, "", 0, [], void 0, 0, options2) || obj;
|
|
222717
222717
|
var res;
|
|
222718
222718
|
try {
|
|
222719
222719
|
if (replacerStack.length === 0) {
|
|
222720
|
-
res = JSON.stringify(
|
|
222720
|
+
res = JSON.stringify(tmp19, replacer, spacer);
|
|
222721
222721
|
} else {
|
|
222722
|
-
res = JSON.stringify(
|
|
222722
|
+
res = JSON.stringify(tmp19, replaceGetterValues(replacer), spacer);
|
|
222723
222723
|
}
|
|
222724
222724
|
} catch (_7) {
|
|
222725
222725
|
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
@@ -222766,18 +222766,18 @@ var require_fast_safe_stringify = __commonJS({
|
|
|
222766
222766
|
deterministicDecirc(val[i9], i9, i9, stack, val, depth, options2);
|
|
222767
222767
|
}
|
|
222768
222768
|
} else {
|
|
222769
|
-
var
|
|
222769
|
+
var tmp19 = {};
|
|
222770
222770
|
var keys25 = Object.keys(val).sort(compareFunction);
|
|
222771
222771
|
for (i9 = 0; i9 < keys25.length; i9++) {
|
|
222772
222772
|
var key2 = keys25[i9];
|
|
222773
222773
|
deterministicDecirc(val[key2], key2, i9, stack, val, depth, options2);
|
|
222774
|
-
|
|
222774
|
+
tmp19[key2] = val[key2];
|
|
222775
222775
|
}
|
|
222776
222776
|
if (typeof parent !== "undefined") {
|
|
222777
222777
|
arr.push([parent, k5, val]);
|
|
222778
|
-
parent[k5] =
|
|
222778
|
+
parent[k5] = tmp19;
|
|
222779
222779
|
} else {
|
|
222780
|
-
return
|
|
222780
|
+
return tmp19;
|
|
222781
222781
|
}
|
|
222782
222782
|
}
|
|
222783
222783
|
stack.pop();
|
|
@@ -229775,9 +229775,9 @@ var init_suggestionList = __esm({
|
|
|
229775
229775
|
let a3 = stringToArray2(optionLowerCase);
|
|
229776
229776
|
let b8 = this._inputArray;
|
|
229777
229777
|
if (a3.length < b8.length) {
|
|
229778
|
-
const
|
|
229778
|
+
const tmp19 = a3;
|
|
229779
229779
|
a3 = b8;
|
|
229780
|
-
b8 =
|
|
229780
|
+
b8 = tmp19;
|
|
229781
229781
|
}
|
|
229782
229782
|
const aLength = a3.length;
|
|
229783
229783
|
const bLength = b8.length;
|
|
@@ -265205,9 +265205,9 @@ var require_utf16 = __commonJS({
|
|
|
265205
265205
|
Utf16BEEncoder.prototype.write = function(str3) {
|
|
265206
265206
|
var buf = Buffer5.from(str3, "ucs2");
|
|
265207
265207
|
for (var i9 = 0; i9 < buf.length; i9 += 2) {
|
|
265208
|
-
var
|
|
265208
|
+
var tmp19 = buf[i9];
|
|
265209
265209
|
buf[i9] = buf[i9 + 1];
|
|
265210
|
-
buf[i9 + 1] =
|
|
265210
|
+
buf[i9 + 1] = tmp19;
|
|
265211
265211
|
}
|
|
265212
265212
|
return buf;
|
|
265213
265213
|
};
|
|
@@ -319876,9 +319876,9 @@ var init_mod = __esm({
|
|
|
319876
319876
|
};
|
|
319877
319877
|
distance = (a3, b8) => {
|
|
319878
319878
|
if (a3.length < b8.length) {
|
|
319879
|
-
const
|
|
319879
|
+
const tmp19 = b8;
|
|
319880
319880
|
b8 = a3;
|
|
319881
|
-
a3 =
|
|
319881
|
+
a3 = tmp19;
|
|
319882
319882
|
}
|
|
319883
319883
|
if (b8.length === 0) {
|
|
319884
319884
|
return a3.length;
|
|
@@ -319933,7 +319933,7 @@ var require_levenshtein = __commonJS({
|
|
|
319933
319933
|
var str1Len = str1.length, str2Len = str22.length;
|
|
319934
319934
|
if (str1Len === 0) return str2Len;
|
|
319935
319935
|
if (str2Len === 0) return str1Len;
|
|
319936
|
-
var curCol, nextCol, i9, j7,
|
|
319936
|
+
var curCol, nextCol, i9, j7, tmp19;
|
|
319937
319937
|
for (i9 = 0; i9 < str2Len; ++i9) {
|
|
319938
319938
|
prevRow[i9] = i9;
|
|
319939
319939
|
str2Char[i9] = str22.charCodeAt(i9);
|
|
@@ -319946,13 +319946,13 @@ var require_levenshtein = __commonJS({
|
|
|
319946
319946
|
curCol = nextCol;
|
|
319947
319947
|
strCmp = 0 === collator.compare(str1.charAt(i9), String.fromCharCode(str2Char[j7]));
|
|
319948
319948
|
nextCol = prevRow[j7] + (strCmp ? 0 : 1);
|
|
319949
|
-
|
|
319950
|
-
if (nextCol >
|
|
319951
|
-
nextCol =
|
|
319949
|
+
tmp19 = curCol + 1;
|
|
319950
|
+
if (nextCol > tmp19) {
|
|
319951
|
+
nextCol = tmp19;
|
|
319952
319952
|
}
|
|
319953
|
-
|
|
319954
|
-
if (nextCol >
|
|
319955
|
-
nextCol =
|
|
319953
|
+
tmp19 = prevRow[j7 + 1] + 1;
|
|
319954
|
+
if (nextCol > tmp19) {
|
|
319955
|
+
nextCol = tmp19;
|
|
319956
319956
|
}
|
|
319957
319957
|
prevRow[j7] = curCol;
|
|
319958
319958
|
}
|
|
@@ -322785,9 +322785,9 @@ var require_utf162 = __commonJS({
|
|
|
322785
322785
|
Utf16BEEncoder.prototype.write = function(str3) {
|
|
322786
322786
|
var buf = Buffer5.from(str3, "ucs2");
|
|
322787
322787
|
for (var i9 = 0; i9 < buf.length; i9 += 2) {
|
|
322788
|
-
var
|
|
322788
|
+
var tmp19 = buf[i9];
|
|
322789
322789
|
buf[i9] = buf[i9 + 1];
|
|
322790
|
-
buf[i9 + 1] =
|
|
322790
|
+
buf[i9 + 1] = tmp19;
|
|
322791
322791
|
}
|
|
322792
322792
|
return buf;
|
|
322793
322793
|
};
|
|
@@ -345201,9 +345201,9 @@ var require_buffer_crc32 = __commonJS({
|
|
|
345201
345201
|
}
|
|
345202
345202
|
}
|
|
345203
345203
|
function bufferizeInt(num) {
|
|
345204
|
-
var
|
|
345205
|
-
|
|
345206
|
-
return
|
|
345204
|
+
var tmp19 = ensureBuffer(4);
|
|
345205
|
+
tmp19.writeInt32BE(num, 0);
|
|
345206
|
+
return tmp19;
|
|
345207
345207
|
}
|
|
345208
345208
|
function _crc32(buf, previous4) {
|
|
345209
345209
|
buf = ensureBuffer(buf);
|
|
@@ -363113,17 +363113,17 @@ Patches absorbed by generator (${buckets.absorbed.length}):`;
|
|
|
363113
363113
|
}
|
|
363114
363114
|
async function unifiedDiff(beforeContent, afterContent, filePath) {
|
|
363115
363115
|
if (beforeContent === afterContent) return "";
|
|
363116
|
-
const
|
|
363116
|
+
const tmp19 = await (0, import_promises410.mkdtemp)((0, import_node_path62.join)((0, import_node_os22.tmpdir)(), "fern-replay-pp-"));
|
|
363117
363117
|
try {
|
|
363118
|
-
const beforePath = (0, import_node_path62.join)(
|
|
363119
|
-
const afterPath = (0, import_node_path62.join)(
|
|
363118
|
+
const beforePath = (0, import_node_path62.join)(tmp19, "before");
|
|
363119
|
+
const afterPath = (0, import_node_path62.join)(tmp19, "after");
|
|
363120
363120
|
await (0, import_promises410.writeFile)(beforePath, beforeContent, "utf-8");
|
|
363121
363121
|
await (0, import_promises410.writeFile)(afterPath, afterContent, "utf-8");
|
|
363122
363122
|
const raw = await runGitDiffNoIndex(beforePath, afterPath);
|
|
363123
363123
|
if (!raw.trim()) return "";
|
|
363124
363124
|
return rewriteDiffHeaders(raw, filePath);
|
|
363125
363125
|
} finally {
|
|
363126
|
-
await (0, import_promises410.rm)(
|
|
363126
|
+
await (0, import_promises410.rm)(tmp19, { recursive: true, force: true });
|
|
363127
363127
|
}
|
|
363128
363128
|
}
|
|
363129
363129
|
function runGitDiffNoIndex(beforePath, afterPath) {
|
|
@@ -365985,23 +365985,23 @@ function getValues2(context3, operator2, key2, modifier) {
|
|
|
365985
365985
|
});
|
|
365986
365986
|
}
|
|
365987
365987
|
} else {
|
|
365988
|
-
const
|
|
365988
|
+
const tmp19 = [];
|
|
365989
365989
|
if (Array.isArray(value2)) {
|
|
365990
365990
|
value2.filter(isDefined2).forEach(function(value22) {
|
|
365991
|
-
|
|
365991
|
+
tmp19.push(encodeValue4(operator2, value22));
|
|
365992
365992
|
});
|
|
365993
365993
|
} else {
|
|
365994
365994
|
Object.keys(value2).forEach(function(k5) {
|
|
365995
365995
|
if (isDefined2(value2[k5])) {
|
|
365996
|
-
|
|
365997
|
-
|
|
365996
|
+
tmp19.push(encodeUnreserved2(k5));
|
|
365997
|
+
tmp19.push(encodeValue4(operator2, value2[k5].toString()));
|
|
365998
365998
|
}
|
|
365999
365999
|
});
|
|
366000
366000
|
}
|
|
366001
366001
|
if (isKeyOperator2(operator2)) {
|
|
366002
|
-
result.push(encodeUnreserved2(key2) + "=" +
|
|
366003
|
-
} else if (
|
|
366004
|
-
result.push(
|
|
366002
|
+
result.push(encodeUnreserved2(key2) + "=" + tmp19.join(","));
|
|
366003
|
+
} else if (tmp19.length !== 0) {
|
|
366004
|
+
result.push(tmp19.join(","));
|
|
366005
366005
|
}
|
|
366006
366006
|
}
|
|
366007
366007
|
}
|
|
@@ -366036,8 +366036,8 @@ function expand3(template, context3) {
|
|
|
366036
366036
|
expression = expression.substr(1);
|
|
366037
366037
|
}
|
|
366038
366038
|
expression.split(/,/g).forEach(function(variable3) {
|
|
366039
|
-
var
|
|
366040
|
-
values2.push(getValues2(context3, operator2,
|
|
366039
|
+
var tmp19 = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable3);
|
|
366040
|
+
values2.push(getValues2(context3, operator2, tmp19[1], tmp19[2] || tmp19[3]));
|
|
366041
366041
|
});
|
|
366042
366042
|
if (operator2 && operator2 !== "+") {
|
|
366043
366043
|
var separator = ",";
|
|
@@ -440581,9 +440581,9 @@ var require_receivebuffer = __commonJS({
|
|
|
440581
440581
|
throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");
|
|
440582
440582
|
}
|
|
440583
440583
|
if (this.offset + data2.length >= this.buffer.length) {
|
|
440584
|
-
const
|
|
440584
|
+
const tmp19 = this.buffer;
|
|
440585
440585
|
this.buffer = Buffer.allocUnsafe(Math.max(this.buffer.length + this.originalSize, this.buffer.length + data2.length));
|
|
440586
|
-
|
|
440586
|
+
tmp19.copy(this.buffer);
|
|
440587
440587
|
}
|
|
440588
440588
|
data2.copy(this.buffer, this.offset);
|
|
440589
440589
|
return this.offset += data2.length;
|
|
@@ -454482,10 +454482,10 @@ var require_esprima = __commonJS({
|
|
|
454482
454482
|
};
|
|
454483
454483
|
Scanner2.prototype.testRegExp = function(pattern, flags2) {
|
|
454484
454484
|
var astralSubstitute = "\uFFFF";
|
|
454485
|
-
var
|
|
454485
|
+
var tmp19 = pattern;
|
|
454486
454486
|
var self2 = this;
|
|
454487
454487
|
if (flags2.indexOf("u") >= 0) {
|
|
454488
|
-
|
|
454488
|
+
tmp19 = tmp19.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g, function($0, $1, $23) {
|
|
454489
454489
|
var codePoint = parseInt($1 || $23, 16);
|
|
454490
454490
|
if (codePoint > 1114111) {
|
|
454491
454491
|
self2.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);
|
|
@@ -454497,7 +454497,7 @@ var require_esprima = __commonJS({
|
|
|
454497
454497
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, astralSubstitute);
|
|
454498
454498
|
}
|
|
454499
454499
|
try {
|
|
454500
|
-
RegExp(
|
|
454500
|
+
RegExp(tmp19);
|
|
454501
454501
|
} catch (e8) {
|
|
454502
454502
|
this.throwUnexpectedToken(messages_1.Messages.InvalidRegExp);
|
|
454503
454503
|
}
|
|
@@ -471795,15 +471795,15 @@ var require_sync2 = __commonJS({
|
|
|
471795
471795
|
var { readdirSync: readdirSync4, statSync: statSync4 } = require("fs");
|
|
471796
471796
|
module4.exports = function(start2, callback) {
|
|
471797
471797
|
let dir = resolve15(".", start2);
|
|
471798
|
-
let
|
|
471798
|
+
let tmp19, stats = statSync4(dir);
|
|
471799
471799
|
if (!stats.isDirectory()) {
|
|
471800
471800
|
dir = dirname22(dir);
|
|
471801
471801
|
}
|
|
471802
471802
|
while (true) {
|
|
471803
|
-
|
|
471804
|
-
if (
|
|
471805
|
-
dir = dirname22(
|
|
471806
|
-
if (
|
|
471803
|
+
tmp19 = callback(dir, readdirSync4(dir));
|
|
471804
|
+
if (tmp19) return resolve15(dir, tmp19);
|
|
471805
|
+
dir = dirname22(tmp19 = dir);
|
|
471806
|
+
if (tmp19 === dir) break;
|
|
471807
471807
|
}
|
|
471808
471808
|
};
|
|
471809
471809
|
}
|
|
@@ -668495,7 +668495,7 @@ var AccessTokenPosthogManager = class {
|
|
|
668495
668495
|
properties: {
|
|
668496
668496
|
...event,
|
|
668497
668497
|
...event.properties,
|
|
668498
|
-
version: "5.23.3-
|
|
668498
|
+
version: "5.23.3-212-g407b61686d1",
|
|
668499
668499
|
usingAccessToken: true,
|
|
668500
668500
|
...getRunIdProperties()
|
|
668501
668501
|
}
|
|
@@ -668559,7 +668559,7 @@ var UserPosthogManager = class {
|
|
|
668559
668559
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668560
668560
|
event: "CLI",
|
|
668561
668561
|
properties: {
|
|
668562
|
-
version: "5.23.3-
|
|
668562
|
+
version: "5.23.3-212-g407b61686d1",
|
|
668563
668563
|
...event,
|
|
668564
668564
|
...event.properties,
|
|
668565
668565
|
usingAccessToken: false,
|
|
@@ -812991,7 +812991,7 @@ var V67_TO_V66_MIGRATION = {
|
|
|
812991
812991
|
[GeneratorName.PHP_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812992
812992
|
[GeneratorName.RUST_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812993
812993
|
[GeneratorName.RUST_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812994
|
-
[GeneratorName.CLI]:
|
|
812994
|
+
[GeneratorName.CLI]: "0.0.1"
|
|
812995
812995
|
},
|
|
812996
812996
|
jsonifyEarlierVersion: (ir11) => IrSerialization_exports.V66.IntermediateRepresentation.jsonOrThrow(ir11, {
|
|
812997
812997
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -860356,7 +860356,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
860356
860356
|
var LOGS_FOLDER_NAME = "logs";
|
|
860357
860357
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
860358
860358
|
function getCliSource() {
|
|
860359
|
-
const version7 = "5.23.3-
|
|
860359
|
+
const version7 = "5.23.3-212-g407b61686d1";
|
|
860360
860360
|
return `cli@${version7}`;
|
|
860361
860361
|
}
|
|
860362
860362
|
var DebugLogger = class {
|
|
@@ -876520,7 +876520,7 @@ async function retryWithRateLimit({ fn: fn10, retryRateLimited, logger: logger4,
|
|
|
876520
876520
|
|
|
876521
876521
|
// ../generation/remote-generation/remote-workspace-runner/lib/createAndStartJob.js
|
|
876522
876522
|
var gzipAsync = (0, import_util19.promisify)(import_zlib5.gzip);
|
|
876523
|
-
async function createAndStartJob({ projectConfig, workspace, organization, intermediateRepresentation, generatorInvocation, version: version7, context: context3, shouldLogS3Url, token, whitelabel, replay, irVersionOverride, absolutePathToPreview, fiddlePreview, pushPreviewBranch, fernignorePath, skipFernignore, retryRateLimited, automationMode, autoMerge, skipIfNoDiff, verify: verify2, loginCommand = "fern login" }) {
|
|
876523
|
+
async function createAndStartJob({ projectConfig, workspace, organization, intermediateRepresentation, generatorInvocation, version: version7, context: context3, shouldLogS3Url, token, whitelabel, replay, irVersionOverride, absolutePathToPreview, fiddlePreview, pushPreviewBranch, fernignorePath, skipFernignore, retryRateLimited, automationMode, autoMerge, skipIfNoDiff, verify: verify2, loginCommand = "fern login", specsTarGzBuffer }) {
|
|
876524
876524
|
let fernignoreContents;
|
|
876525
876525
|
if (skipFernignore) {
|
|
876526
876526
|
fernignoreContents = "";
|
|
@@ -876559,7 +876559,14 @@ async function createAndStartJob({ projectConfig, workspace, organization, inter
|
|
|
876559
876559
|
logger: context3.logger,
|
|
876560
876560
|
onRateLimitedWithoutRetry: () => context3.failAndThrow("Received 429 Too Many Requests. Re-run with --retry-rate-limited to automatically retry.", void 0, { code: CliError.Code.NetworkError })
|
|
876561
876561
|
});
|
|
876562
|
-
await startJob({
|
|
876562
|
+
await startJob({
|
|
876563
|
+
intermediateRepresentation,
|
|
876564
|
+
job,
|
|
876565
|
+
context: context3,
|
|
876566
|
+
generatorInvocation,
|
|
876567
|
+
irVersionOverride,
|
|
876568
|
+
specsTarGzBuffer
|
|
876569
|
+
});
|
|
876563
876570
|
return job;
|
|
876564
876571
|
}
|
|
876565
876572
|
async function createJob({ projectConfig, workspace, organization, generatorInvocation, version: version7, context: context3, shouldLogS3Url, token, whitelabel, replay, absolutePathToPreview, fiddlePreview, pushPreviewBranch, fernignoreContents, skipIfNoDiff, verify: verify2, loginCommand }) {
|
|
@@ -876663,7 +876670,7 @@ Please ensure you have membership at https://dashboard.buildwithfern.com, and as
|
|
|
876663
876670
|
}
|
|
876664
876671
|
return createResponse.body;
|
|
876665
876672
|
}
|
|
876666
|
-
async function startJob({ intermediateRepresentation, generatorInvocation, job, context: context3, irVersionOverride }) {
|
|
876673
|
+
async function startJob({ intermediateRepresentation, generatorInvocation, job, context: context3, irVersionOverride, specsTarGzBuffer }) {
|
|
876667
876674
|
const irVersionFromFdr = await getIrVersionForGenerator(generatorInvocation).then((version7) => version7 == null ? void 0 : "v" + version7.toString());
|
|
876668
876675
|
const resolvedIrVersionOverride = irVersionOverride ?? irVersionFromFdr;
|
|
876669
876676
|
const migratedIntermediateRepresentation = resolvedIrVersionOverride == null ? await migrateIntermediateRepresentationForGenerator({
|
|
@@ -876691,7 +876698,11 @@ async function startJob({ intermediateRepresentation, generatorInvocation, job,
|
|
|
876691
876698
|
const irBytes = new TextEncoder().encode(irAsString);
|
|
876692
876699
|
const compressed = await gzipAsync(irBytes);
|
|
876693
876700
|
context3.logger.debug(`Compressed IR from ${irBytes.byteLength} bytes to ${compressed.length} bytes (${((1 - compressed.length / irBytes.byteLength) * 100).toFixed(1)}% reduction)`);
|
|
876694
|
-
formData.append("
|
|
876701
|
+
formData.append("ir", compressed, { filename: "ir.json", contentType: "application/octet-stream" });
|
|
876702
|
+
if (specsTarGzBuffer != null) {
|
|
876703
|
+
formData.append("specs", specsTarGzBuffer, { filename: "specs.tar.gz", contentType: "application/gzip" });
|
|
876704
|
+
context3.logger.debug(`Appended specs tar.gz (${specsTarGzBuffer.length} bytes)`);
|
|
876705
|
+
}
|
|
876695
876706
|
const url3 = (0, import_url_join23.default)(getFiddleOrigin(), `/api/remote-gen/jobs/${job.jobId}/start`);
|
|
876696
876707
|
try {
|
|
876697
876708
|
await axios_default.post(url3, formData, {
|
|
@@ -877382,7 +877393,7 @@ var SourceUploader = class {
|
|
|
877382
877393
|
};
|
|
877383
877394
|
|
|
877384
877395
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForGenerator.js
|
|
877385
|
-
async function runRemoteGenerationForGenerator({ projectConfig, organization, workspace, interactiveTaskContext, generatorInvocation, version: version7, audiences, shouldLogS3Url, token, whitelabel, replay, irVersionOverride, absolutePathToPreview, isPreview: isPreviewOverride, fiddlePreview, pushPreviewBranch, readme, fernignorePath, skipFernignore, dynamicIrOnly, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, loginCommand }) {
|
|
877396
|
+
async function runRemoteGenerationForGenerator({ projectConfig, organization, workspace, interactiveTaskContext, generatorInvocation, version: version7, audiences, shouldLogS3Url, token, whitelabel, replay, irVersionOverride, absolutePathToPreview, isPreview: isPreviewOverride, fiddlePreview, pushPreviewBranch, readme, fernignorePath, skipFernignore, dynamicIrOnly, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, loginCommand, specsTarGzBuffer }) {
|
|
877386
877397
|
const fdr = createFdrService({ token: token.value });
|
|
877387
877398
|
const fdrOrigin = "https://registry-dev2.buildwithfern.com";
|
|
877388
877399
|
const isAirGapped = await detectAirGappedMode(`${fdrOrigin}/health`, interactiveTaskContext.logger);
|
|
@@ -877574,7 +877585,8 @@ async function runRemoteGenerationForGenerator({ projectConfig, organization, wo
|
|
|
877574
877585
|
autoMerge,
|
|
877575
877586
|
skipIfNoDiff,
|
|
877576
877587
|
verify: verify2,
|
|
877577
|
-
loginCommand
|
|
877588
|
+
loginCommand,
|
|
877589
|
+
specsTarGzBuffer
|
|
877578
877590
|
});
|
|
877579
877591
|
interactiveTaskContext.logger.debug(`Job ID: ${job.jobId}`);
|
|
877580
877592
|
const taskId = job.taskIds[0];
|
|
@@ -877742,7 +877754,7 @@ function resolveVersionFallback(resolvedVersion) {
|
|
|
877742
877754
|
}
|
|
877743
877755
|
|
|
877744
877756
|
// ../generation/remote-generation/remote-workspace-runner/lib/runRemoteGenerationForAPIWorkspace.js
|
|
877745
|
-
async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, replay, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, automation, occurrenceTracker, loginCommand }) {
|
|
877757
|
+
async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, replay, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, automation, occurrenceTracker, loginCommand, getSpecsTarGzBuffer }) {
|
|
877746
877758
|
if (generatorGroup.generators.length === 0) {
|
|
877747
877759
|
context3.logger.warn("No generators specified.");
|
|
877748
877760
|
return null;
|
|
@@ -877788,6 +877800,7 @@ async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization,
|
|
|
877788
877800
|
generatorsYmlAbsolutePath,
|
|
877789
877801
|
occurrenceTracker: effectiveOccurrenceTracker,
|
|
877790
877802
|
loginCommand,
|
|
877803
|
+
getSpecsTarGzBuffer,
|
|
877791
877804
|
onSnippetsProduced: (invocation) => snippetsProducedBy.push(invocation)
|
|
877792
877805
|
}))));
|
|
877793
877806
|
if (automation == null && results.some((didSucceed) => !didSucceed)) {
|
|
@@ -877797,7 +877810,7 @@ async function runRemoteGenerationForAPIWorkspace({ projectConfig, organization,
|
|
|
877797
877810
|
snippetsProducedBy
|
|
877798
877811
|
};
|
|
877799
877812
|
}
|
|
877800
|
-
async function generateOne({ generatorInvocation, interactiveTaskContext, projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, replay, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, automation, generatorsYmlAbsolutePath, occurrenceTracker, loginCommand, onSnippetsProduced }) {
|
|
877813
|
+
async function generateOne({ generatorInvocation, interactiveTaskContext, projectConfig, organization, workspace, context: context3, generatorGroup, version: version7, shouldLogS3Url, token, whitelabel, replay, absolutePathToPreview, isPreview, fiddlePreview, pushPreviewBranch, mode, fernignorePath, skipFernignore, dynamicIrOnly, validateWorkspace, retryRateLimited, requireEnvVars, automationMode, autoMerge, skipIfNoDiff, verify: verify2, noReplay, disableTelemetry, automation, generatorsYmlAbsolutePath, occurrenceTracker, loginCommand, getSpecsTarGzBuffer, onSnippetsProduced }) {
|
|
877801
877814
|
const startedAt = Date.now();
|
|
877802
877815
|
try {
|
|
877803
877816
|
const settings = getBaseOpenAPIWorkspaceSettingsFromGeneratorInvocation(generatorInvocation);
|
|
@@ -877863,7 +877876,8 @@ async function generateOne({ generatorInvocation, interactiveTaskContext, projec
|
|
|
877863
877876
|
verify: verify2,
|
|
877864
877877
|
noReplay,
|
|
877865
877878
|
disableTelemetry,
|
|
877866
|
-
loginCommand
|
|
877879
|
+
loginCommand,
|
|
877880
|
+
specsTarGzBuffer: await getSpecsTarGzBuffer?.(generatorInvocation.name)
|
|
877867
877881
|
});
|
|
877868
877882
|
if (remoteTaskHandlerResponse?.createdSnippets) {
|
|
877869
877883
|
onSnippetsProduced(generatorInvocation);
|
|
@@ -879202,7 +879216,7 @@ var LegacyDocsPublisher = class {
|
|
|
879202
879216
|
previewId,
|
|
879203
879217
|
disableTemplates: void 0,
|
|
879204
879218
|
skipUpload,
|
|
879205
|
-
cliVersion: "5.23.3-
|
|
879219
|
+
cliVersion: "5.23.3-212-g407b61686d1",
|
|
879206
879220
|
loginCommand: "fern auth login"
|
|
879207
879221
|
});
|
|
879208
879222
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -904619,7 +904633,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
904619
904633
|
this.context.errors.scope(Scope4.PathParameters);
|
|
904620
904634
|
const pathParameters = [...this.context.ir.pathParameters ?? [], ...request7.pathParameters ?? []];
|
|
904621
904635
|
if (pathParameters.length > 0) {
|
|
904622
|
-
otherArgs.push(...this.getPathParameters({ namedParameters: pathParameters, snippet: snippet2 }).map((field5) => field5.value));
|
|
904636
|
+
otherArgs.push(...this.getPathParameters({ namedParameters: pathParameters, snippet: snippet2, asPointer: true }).map((field5) => field5.value));
|
|
904623
904637
|
}
|
|
904624
904638
|
this.context.errors.unscope();
|
|
904625
904639
|
this.context.errors.scope(Scope4.RequestBody);
|
|
@@ -904657,20 +904671,25 @@ var EndpointSnippetGenerator3 = class {
|
|
|
904657
904671
|
inlinePathParameters: this.context.customConfig?.inlinePathParameters ?? true,
|
|
904658
904672
|
inlineFileProperties: this.context.customConfig?.inlineFileProperties ?? true
|
|
904659
904673
|
};
|
|
904674
|
+
const includePathParamsInRequest = this.context.includePathParametersInWrappedRequest({
|
|
904675
|
+
request: request7,
|
|
904676
|
+
inlinePathParameters
|
|
904677
|
+
});
|
|
904660
904678
|
this.context.errors.scope(Scope4.PathParameters);
|
|
904661
904679
|
const pathParameterFields = [];
|
|
904662
904680
|
const pathParameters = [...this.context.ir.pathParameters ?? [], ...request7.pathParameters ?? []];
|
|
904663
904681
|
if (pathParameters.length > 0) {
|
|
904664
904682
|
pathParameterFields.push(...this.getPathParameters({
|
|
904665
904683
|
namedParameters: pathParameters,
|
|
904666
|
-
snippet: snippet2
|
|
904684
|
+
snippet: snippet2,
|
|
904685
|
+
asPointer: !includePathParamsInRequest
|
|
904667
904686
|
}));
|
|
904668
904687
|
}
|
|
904669
904688
|
this.context.errors.unscope();
|
|
904670
904689
|
this.context.errors.scope(Scope4.RequestBody);
|
|
904671
904690
|
const filePropertyInfo = this.getFilePropertyInfo({ request: request7, snippet: snippet2 });
|
|
904672
904691
|
this.context.errors.unscope();
|
|
904673
|
-
if (!
|
|
904692
|
+
if (!includePathParamsInRequest) {
|
|
904674
904693
|
otherArgs.push(...pathParameterFields.map((field5) => field5.value));
|
|
904675
904694
|
}
|
|
904676
904695
|
if (!inlineFileProperties) {
|
|
@@ -904683,10 +904702,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
904683
904702
|
}) ? this.getInlinedRequestArg({
|
|
904684
904703
|
request: request7,
|
|
904685
904704
|
snippet: snippet2,
|
|
904686
|
-
pathParameterFields:
|
|
904687
|
-
request: request7,
|
|
904688
|
-
inlinePathParameters
|
|
904689
|
-
}) ? pathParameterFields : [],
|
|
904705
|
+
pathParameterFields: includePathParamsInRequest ? pathParameterFields : [],
|
|
904690
904706
|
filePropertyInfo
|
|
904691
904707
|
}) : void 0;
|
|
904692
904708
|
return { otherArgs, requestArg };
|
|
@@ -904788,7 +904804,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
904788
904804
|
}
|
|
904789
904805
|
return fields;
|
|
904790
904806
|
}
|
|
904791
|
-
getPathParameters({ namedParameters, snippet: snippet2 }) {
|
|
904807
|
+
getPathParameters({ namedParameters, snippet: snippet2, asPointer }) {
|
|
904792
904808
|
const args = [];
|
|
904793
904809
|
const pathParameters = this.context.associateByWireValueOrDefault({
|
|
904794
904810
|
parameters: namedParameters,
|
|
@@ -904797,7 +904813,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
904797
904813
|
for (const parameter6 of pathParameters) {
|
|
904798
904814
|
args.push({
|
|
904799
904815
|
name: this.context.getTypeName(parameter6.name.name),
|
|
904800
|
-
value: this.context.dynamicTypeInstantiationMapper.convertToPointerIfPossible(parameter6)
|
|
904816
|
+
value: asPointer ? this.context.dynamicTypeInstantiationMapper.convertToPointerIfPossible(parameter6) : this.context.dynamicTypeInstantiationMapper.convert(parameter6)
|
|
904801
904817
|
});
|
|
904802
904818
|
}
|
|
904803
904819
|
return args;
|
|
@@ -930496,7 +930512,7 @@ var import_serialization = __toESM(require_serialization3(), 1);
|
|
|
930496
930512
|
var import_promises118 = require("fs/promises");
|
|
930497
930513
|
var path87 = __toESM(require("path"), 1);
|
|
930498
930514
|
var import_path93 = require("path");
|
|
930499
|
-
var
|
|
930515
|
+
var import_tmp_promise15 = __toESM(require_tmp_promise(), 1);
|
|
930500
930516
|
|
|
930501
930517
|
// ../generation/local-generation/local-workspace-runner/lib/getGeneratorConfig.js
|
|
930502
930518
|
init_lib9();
|
|
@@ -931674,21 +931690,35 @@ var LocalTaskHandler = class {
|
|
|
931674
931690
|
|
|
931675
931691
|
// ../generation/local-generation/local-workspace-runner/lib/rawSpecs.js
|
|
931676
931692
|
init_lib4();
|
|
931693
|
+
init_lib8();
|
|
931677
931694
|
var import_promises117 = require("fs/promises");
|
|
931678
931695
|
init_js_yaml();
|
|
931679
931696
|
var import_path92 = __toESM(require("path"), 1);
|
|
931697
|
+
var import_tmp_promise14 = __toESM(require_tmp_promise(), 1);
|
|
931680
931698
|
async function collectRawSpecs({ specs, hostOutputDir, containerBaseDir, context: context3, audiences }) {
|
|
931681
931699
|
const manifest = { specs: [] };
|
|
931682
931700
|
if (specs.length === 0) {
|
|
931683
931701
|
return manifest;
|
|
931684
931702
|
}
|
|
931685
|
-
|
|
931703
|
+
const typeCounters = {};
|
|
931704
|
+
function nextIndex2(type8) {
|
|
931705
|
+
const idx = typeCounters[type8] ?? 0;
|
|
931706
|
+
typeCounters[type8] = idx + 1;
|
|
931707
|
+
return idx;
|
|
931708
|
+
}
|
|
931709
|
+
for (const spec of specs) {
|
|
931710
|
+
let specType;
|
|
931711
|
+
if (spec.type === "openapi") {
|
|
931712
|
+
specType = await isAsyncAPISpec(spec.absoluteFilepath) ? "asyncapi" : "openapi";
|
|
931713
|
+
} else {
|
|
931714
|
+
specType = spec.type;
|
|
931715
|
+
}
|
|
931686
931716
|
const entry = await resolveAndWriteSpec({
|
|
931687
931717
|
spec,
|
|
931688
931718
|
hostOutputDir,
|
|
931689
931719
|
containerBaseDir,
|
|
931690
931720
|
context: context3,
|
|
931691
|
-
index:
|
|
931721
|
+
index: nextIndex2(specType),
|
|
931692
931722
|
audiences
|
|
931693
931723
|
});
|
|
931694
931724
|
manifest.specs.push(entry);
|
|
@@ -931712,7 +931742,7 @@ async function resolveAndWriteSpec({ spec, hostOutputDir, containerBaseDir, cont
|
|
|
931712
931742
|
}
|
|
931713
931743
|
async function resolveOpenAPIOrAsyncAPI({ spec, hostOutputDir, containerBaseDir, context: context3, index: index3, audiences }) {
|
|
931714
931744
|
const isAsync2 = await isAsyncAPISpec(spec.absoluteFilepath);
|
|
931715
|
-
const filename = `
|
|
931745
|
+
const filename = isAsync2 ? `asyncapi${index3}.json` : `openapi${index3}.json`;
|
|
931716
931746
|
let resolved;
|
|
931717
931747
|
if (isAsync2) {
|
|
931718
931748
|
resolved = await loadAsyncAPI({
|
|
@@ -931737,7 +931767,7 @@ async function resolveOpenAPIOrAsyncAPI({ spec, hostOutputDir, containerBaseDir,
|
|
|
931737
931767
|
};
|
|
931738
931768
|
}
|
|
931739
931769
|
async function resolveOpenRPC({ spec, hostOutputDir, containerBaseDir, context: context3, index: index3 }) {
|
|
931740
|
-
const filename = `
|
|
931770
|
+
const filename = `openrpc${index3}.json`;
|
|
931741
931771
|
const rawContent = await (0, import_promises117.readFile)(spec.absoluteFilepath, "utf-8");
|
|
931742
931772
|
let parsed;
|
|
931743
931773
|
try {
|
|
@@ -931768,7 +931798,7 @@ async function resolveOpenRPC({ spec, hostOutputDir, containerBaseDir, context:
|
|
|
931768
931798
|
};
|
|
931769
931799
|
}
|
|
931770
931800
|
async function copyProtobuf({ spec, hostOutputDir, containerBaseDir, index: index3 }) {
|
|
931771
|
-
const dirName = `
|
|
931801
|
+
const dirName = `protobuf${index3}`;
|
|
931772
931802
|
const destDir = import_path92.default.join(hostOutputDir, dirName);
|
|
931773
931803
|
await (0, import_promises117.cp)(spec.absoluteFilepathToProtobufRoot, destDir, { recursive: true });
|
|
931774
931804
|
const entry = {
|
|
@@ -931779,7 +931809,7 @@ async function copyProtobuf({ spec, hostOutputDir, containerBaseDir, index: inde
|
|
|
931779
931809
|
if (overrides.length > 0) {
|
|
931780
931810
|
entry.overridePaths = [];
|
|
931781
931811
|
for (const [i9, override] of overrides.entries()) {
|
|
931782
|
-
const overrideName = `
|
|
931812
|
+
const overrideName = `protobuf${index3}-override-${i9}${import_path92.default.extname(override)}`;
|
|
931783
931813
|
await (0, import_promises117.copyFile)(override, import_path92.default.join(hostOutputDir, overrideName));
|
|
931784
931814
|
entry.overridePaths.push(toContainerPath(overrideName, containerBaseDir));
|
|
931785
931815
|
}
|
|
@@ -931788,7 +931818,7 @@ async function copyProtobuf({ spec, hostOutputDir, containerBaseDir, index: inde
|
|
|
931788
931818
|
}
|
|
931789
931819
|
async function copyGraphQL({ spec, hostOutputDir, containerBaseDir, index: index3 }) {
|
|
931790
931820
|
const ext2 = import_path92.default.extname(spec.absoluteFilepath) || ".graphql";
|
|
931791
|
-
const filename = `
|
|
931821
|
+
const filename = `graphql${index3}${ext2}`;
|
|
931792
931822
|
await (0, import_promises117.copyFile)(spec.absoluteFilepath, import_path92.default.join(hostOutputDir, filename));
|
|
931793
931823
|
const entry = {
|
|
931794
931824
|
type: "graphql",
|
|
@@ -931798,7 +931828,7 @@ async function copyGraphQL({ spec, hostOutputDir, containerBaseDir, index: index
|
|
|
931798
931828
|
if (overrides.length > 0) {
|
|
931799
931829
|
entry.overridePaths = [];
|
|
931800
931830
|
for (const [i9, override] of overrides.entries()) {
|
|
931801
|
-
const overrideName = `graphql
|
|
931831
|
+
const overrideName = `graphql${index3}-override-${i9}${import_path92.default.extname(override)}`;
|
|
931802
931832
|
await (0, import_promises117.copyFile)(override, import_path92.default.join(hostOutputDir, overrideName));
|
|
931803
931833
|
entry.overridePaths.push(toContainerPath(overrideName, containerBaseDir));
|
|
931804
931834
|
}
|
|
@@ -931907,6 +931937,30 @@ function matchesAudiences(operation, selectedAudiences) {
|
|
|
931907
931937
|
function hasOperations(pathItem) {
|
|
931908
931938
|
return Object.keys(pathItem).some((key2) => HTTP_METHODS2.has(key2.toLowerCase()));
|
|
931909
931939
|
}
|
|
931940
|
+
async function createSpecsTarGzBuffer({ specs, context: context3, audiences }) {
|
|
931941
|
+
const tmpDir = await import_tmp_promise14.default.dir({ unsafeCleanup: true });
|
|
931942
|
+
try {
|
|
931943
|
+
const manifest = await collectRawSpecs({
|
|
931944
|
+
specs,
|
|
931945
|
+
hostOutputDir: AbsoluteFilePath2.of(tmpDir.path),
|
|
931946
|
+
containerBaseDir: "/fern/specs",
|
|
931947
|
+
context: context3,
|
|
931948
|
+
audiences
|
|
931949
|
+
});
|
|
931950
|
+
await (0, import_promises117.writeFile)(join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of(SPECS_MANIFEST_FILENAME)), JSON.stringify(manifest, void 0, 4));
|
|
931951
|
+
const tarGzPath = join8(AbsoluteFilePath2.of(tmpDir.path), RelativeFilePath2.of("specs.tar.gz"));
|
|
931952
|
+
await Zn8({
|
|
931953
|
+
gzip: true,
|
|
931954
|
+
cwd: tmpDir.path,
|
|
931955
|
+
file: tarGzPath,
|
|
931956
|
+
portable: true,
|
|
931957
|
+
filter: (entryPath) => entryPath !== "./specs.tar.gz"
|
|
931958
|
+
}, ["."]);
|
|
931959
|
+
return await (0, import_promises117.readFile)(tarGzPath);
|
|
931960
|
+
} finally {
|
|
931961
|
+
await tmpDir.cleanup();
|
|
931962
|
+
}
|
|
931963
|
+
}
|
|
931910
931964
|
|
|
931911
931965
|
// ../generation/local-generation/local-workspace-runner/lib/runGenerator.js
|
|
931912
931966
|
function extractLicenseFilePath(generatorInvocation, absolutePathToFernConfig) {
|
|
@@ -932065,7 +932119,7 @@ async function writeIrToFile({ ir: ir11, workspaceTempDir, filename, context: co
|
|
|
932065
932119
|
if (filename) {
|
|
932066
932120
|
absolutePathToIr = AbsoluteFilePath2.of((0, import_path93.join)(workspaceTempDir.path, filename));
|
|
932067
932121
|
} else {
|
|
932068
|
-
const irFile = await
|
|
932122
|
+
const irFile = await import_tmp_promise15.default.file({
|
|
932069
932123
|
tmpdir: workspaceTempDir.path
|
|
932070
932124
|
});
|
|
932071
932125
|
absolutePathToIr = AbsoluteFilePath2.of(irFile.path);
|
|
@@ -932102,7 +932156,7 @@ init_lib6();
|
|
|
932102
932156
|
var fs18 = __toESM(require("fs/promises"), 1);
|
|
932103
932157
|
var import_os13 = __toESM(require("os"), 1);
|
|
932104
932158
|
var import_path94 = __toESM(require("path"), 1);
|
|
932105
|
-
var
|
|
932159
|
+
var import_tmp_promise16 = __toESM(require_tmp_promise(), 1);
|
|
932106
932160
|
|
|
932107
932161
|
// ../generation/local-generation/local-workspace-runner/lib/getGeneratorOutputSubfolder.js
|
|
932108
932162
|
function getGeneratorOutputSubfolder(generatorName) {
|
|
@@ -932220,7 +932274,7 @@ async function runLocalGenerationForWorkspace({ token, projectConfig, workspace,
|
|
|
932220
932274
|
intermediateRepresentation.publishConfig = publishConfig;
|
|
932221
932275
|
}
|
|
932222
932276
|
const absolutePathToPreviewForGenerator = resolveAbsolutePathToLocalPreview(absolutePathToPreview, generatorInvocation);
|
|
932223
|
-
const absolutePathToLocalOutput = absolutePathToPreviewForGenerator ?? generatorInvocation.absolutePathToLocalOutput ?? AbsoluteFilePath2.of(await
|
|
932277
|
+
const absolutePathToLocalOutput = absolutePathToPreviewForGenerator ?? generatorInvocation.absolutePathToLocalOutput ?? AbsoluteFilePath2.of(await import_tmp_promise16.default.dir().then((dir) => dir.path));
|
|
932224
932278
|
const selfhostedGithubConfig = getSelfhostedGithubConfig(generatorInvocation, absolutePathToPreviewForGenerator != null);
|
|
932225
932279
|
if (version7 != null && (0, import_autoversion4.isAutoVersion)(version7)) {
|
|
932226
932280
|
if (selfhostedGithubConfig == null) {
|
|
@@ -932432,7 +932486,7 @@ function resolveAbsolutePathToLocalPreview(absolutePathToPreview, generatorInvoc
|
|
|
932432
932486
|
return join8(absolutePathToPreview, RelativeFilePath2.of(subfolderName));
|
|
932433
932487
|
}
|
|
932434
932488
|
async function getWorkspaceTempDir() {
|
|
932435
|
-
return
|
|
932489
|
+
return import_tmp_promise16.default.dir({
|
|
932436
932490
|
// use the /private prefix on osx so that docker can access the tmpdir
|
|
932437
932491
|
// see https://stackoverflow.com/a/45123074
|
|
932438
932492
|
tmpdir: import_os13.default.platform() === "darwin" ? import_path94.default.join("/private", import_os13.default.tmpdir()) : void 0,
|
|
@@ -950011,7 +950065,7 @@ var initializeWithReadme = async ({ readmeUrl, organization, taskContext, versio
|
|
|
950011
950065
|
var import_promises140 = require("fs/promises");
|
|
950012
950066
|
init_js_yaml();
|
|
950013
950067
|
var import_path100 = require("path");
|
|
950014
|
-
var
|
|
950068
|
+
var import_tmp_promise17 = __toESM(require_tmp_promise(), 1);
|
|
950015
950069
|
var LoadOpenAPIStatus;
|
|
950016
950070
|
(function(LoadOpenAPIStatus2) {
|
|
950017
950071
|
LoadOpenAPIStatus2["Success"] = "success";
|
|
@@ -950020,7 +950074,7 @@ var LoadOpenAPIStatus;
|
|
|
950020
950074
|
async function loadOpenAPIFromUrl({ url: url3, logger: logger4 }) {
|
|
950021
950075
|
try {
|
|
950022
950076
|
const data2 = await fetchOpenAPIFromUrl({ url: url3, logger: logger4 });
|
|
950023
|
-
const tmpDir = await
|
|
950077
|
+
const tmpDir = await import_tmp_promise17.default.dir();
|
|
950024
950078
|
const filePath = (0, import_path100.join)(tmpDir.path, url3.endsWith(".json") ? "openapi.json" : "openapi.yaml");
|
|
950025
950079
|
logger4.debug("tmpDir", tmpDir.path);
|
|
950026
950080
|
logger4.debug("filePath", filePath);
|
|
@@ -953902,7 +953956,7 @@ function getAutomationContextFromEnv() {
|
|
|
953902
953956
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
953903
953957
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
953904
953958
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
953905
|
-
cli_version: "5.23.3-
|
|
953959
|
+
cli_version: "5.23.3-212-g407b61686d1"
|
|
953906
953960
|
};
|
|
953907
953961
|
}
|
|
953908
953962
|
function isAutomationMode() {
|
|
@@ -954728,7 +954782,7 @@ var CliContext = class _CliContext {
|
|
|
954728
954782
|
if (false) {
|
|
954729
954783
|
this.logger.error("CLI_VERSION is not defined");
|
|
954730
954784
|
}
|
|
954731
|
-
return "5.23.3-
|
|
954785
|
+
return "5.23.3-212-g407b61686d1";
|
|
954732
954786
|
}
|
|
954733
954787
|
getCliName() {
|
|
954734
954788
|
if (false) {
|
|
@@ -956682,6 +956736,22 @@ async function generateWorkspace({
|
|
|
956682
956736
|
disableTelemetry: isTelemetryDisabled()
|
|
956683
956737
|
});
|
|
956684
956738
|
} else if (token != null) {
|
|
956739
|
+
let cachedSpecsTarGz;
|
|
956740
|
+
let specsComputed = false;
|
|
956741
|
+
const getSpecsTarGz = async (generatorName2) => {
|
|
956742
|
+
if (!(workspace instanceof OSSWorkspace) || !generatorWantsSpecs(generatorName2)) {
|
|
956743
|
+
return void 0;
|
|
956744
|
+
}
|
|
956745
|
+
if (!specsComputed) {
|
|
956746
|
+
specsComputed = true;
|
|
956747
|
+
cachedSpecsTarGz = await createSpecsTarGzBuffer({
|
|
956748
|
+
specs: workspace.allSpecs,
|
|
956749
|
+
context: groupContext,
|
|
956750
|
+
audiences: group.audiences
|
|
956751
|
+
});
|
|
956752
|
+
}
|
|
956753
|
+
return cachedSpecsTarGz;
|
|
956754
|
+
};
|
|
956685
956755
|
await runRemoteGenerationForAPIWorkspace({
|
|
956686
956756
|
projectConfig,
|
|
956687
956757
|
organization,
|
|
@@ -956708,7 +956778,8 @@ async function generateWorkspace({
|
|
|
956708
956778
|
skipIfNoDiff,
|
|
956709
956779
|
noReplay,
|
|
956710
956780
|
verify: verify2,
|
|
956711
|
-
disableTelemetry: isTelemetryDisabled()
|
|
956781
|
+
disableTelemetry: isTelemetryDisabled(),
|
|
956782
|
+
getSpecsTarGzBuffer: getSpecsTarGz
|
|
956712
956783
|
});
|
|
956713
956784
|
}
|
|
956714
956785
|
})
|
|
@@ -967443,7 +967514,7 @@ async function mockServer({
|
|
|
967443
967514
|
init_lib6();
|
|
967444
967515
|
var import_promises191 = require("fs/promises");
|
|
967445
967516
|
var import_path112 = __toESM(require("path"), 1);
|
|
967446
|
-
var
|
|
967517
|
+
var import_tmp_promise18 = __toESM(require_tmp_promise(), 1);
|
|
967447
967518
|
async function registerWorkspacesV1({
|
|
967448
967519
|
project,
|
|
967449
967520
|
cliContext,
|
|
@@ -967489,7 +967560,7 @@ async function registerWorkspacesV1({
|
|
|
967489
967560
|
});
|
|
967490
967561
|
return;
|
|
967491
967562
|
}
|
|
967492
|
-
const tmpDir = await
|
|
967563
|
+
const tmpDir = await import_tmp_promise18.default.dir();
|
|
967493
967564
|
const tarPath = import_path112.default.join(tmpDir.path, "definition.tgz");
|
|
967494
967565
|
context3.logger.debug(`Compressing definition at ${tmpDir.path}`);
|
|
967495
967566
|
await Zn8({ file: tarPath, cwd: resolvedWorkspace.absoluteFilePath }, ["."]);
|
package/package.json
CHANGED