@fern-api/fern-api-dev 4.92.0 → 4.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +145 -114
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -52960,7 +52960,7 @@ var require_tmp = __commonJS({
|
|
|
52960
52960
|
var fs28 = require("fs");
|
|
52961
52961
|
var os24 = require("os");
|
|
52962
52962
|
var path100 = require("path");
|
|
52963
|
-
var
|
|
52963
|
+
var crypto5 = require("crypto");
|
|
52964
52964
|
var _c4 = { fs: fs28.constants, os: os24.constants };
|
|
52965
52965
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
52966
52966
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
@@ -53140,9 +53140,9 @@ var require_tmp = __commonJS({
|
|
|
53140
53140
|
function _randomChars(howMany) {
|
|
53141
53141
|
let value2 = [], rnd = null;
|
|
53142
53142
|
try {
|
|
53143
|
-
rnd =
|
|
53143
|
+
rnd = crypto5.randomBytes(howMany);
|
|
53144
53144
|
} catch (e5) {
|
|
53145
|
-
rnd =
|
|
53145
|
+
rnd = crypto5.pseudoRandomBytes(howMany);
|
|
53146
53146
|
}
|
|
53147
53147
|
for (let i9 = 0; i9 < howMany; i9++) {
|
|
53148
53148
|
value2.push(RANDOM_CHARS[rnd[i9] % RANDOM_CHARS.length]);
|
|
@@ -196858,7 +196858,7 @@ var require_generators_sdk = __commonJS({
|
|
|
196858
196858
|
var require_object_hash = __commonJS({
|
|
196859
196859
|
"../../../node_modules/.pnpm/object-hash@3.0.0/node_modules/object-hash/index.js"(exports2, module4) {
|
|
196860
196860
|
"use strict";
|
|
196861
|
-
var
|
|
196861
|
+
var crypto5 = require("crypto");
|
|
196862
196862
|
exports2 = module4.exports = objectHash;
|
|
196863
196863
|
function objectHash(object22, options2) {
|
|
196864
196864
|
options2 = applyDefaults(object22, options2);
|
|
@@ -196876,7 +196876,7 @@ var require_object_hash = __commonJS({
|
|
|
196876
196876
|
exports2.keysMD5 = function(object22) {
|
|
196877
196877
|
return objectHash(object22, { algorithm: "md5", encoding: "hex", excludeValues: true });
|
|
196878
196878
|
};
|
|
196879
|
-
var hashes =
|
|
196879
|
+
var hashes = crypto5.getHashes ? crypto5.getHashes().slice() : ["sha1", "md5"];
|
|
196880
196880
|
hashes.push("passthrough");
|
|
196881
196881
|
var encodings = ["buffer", "hex", "binary", "base64"];
|
|
196882
196882
|
function applyDefaults(object22, sourceOptions) {
|
|
@@ -196922,7 +196922,7 @@ var require_object_hash = __commonJS({
|
|
|
196922
196922
|
function hash5(object22, options2) {
|
|
196923
196923
|
var hashingStream;
|
|
196924
196924
|
if (options2.algorithm !== "passthrough") {
|
|
196925
|
-
hashingStream =
|
|
196925
|
+
hashingStream = crypto5.createHash(options2.algorithm);
|
|
196926
196926
|
} else {
|
|
196927
196927
|
hashingStream = new PassThrough5();
|
|
196928
196928
|
}
|
|
@@ -211897,7 +211897,7 @@ var require_form_data = __commonJS({
|
|
|
211897
211897
|
var parseUrl5 = require("url").parse;
|
|
211898
211898
|
var fs28 = require("fs");
|
|
211899
211899
|
var Stream5 = require("stream").Stream;
|
|
211900
|
-
var
|
|
211900
|
+
var crypto5 = require("crypto");
|
|
211901
211901
|
var mime2 = require_mime_types();
|
|
211902
211902
|
var asynckit = require_asynckit();
|
|
211903
211903
|
var setToStringTag = require_es_set_tostringtag();
|
|
@@ -212103,7 +212103,7 @@ var require_form_data = __commonJS({
|
|
|
212103
212103
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
212104
212104
|
};
|
|
212105
212105
|
FormData6.prototype._generateBoundary = function() {
|
|
212106
|
-
this._boundary = "--------------------------" +
|
|
212106
|
+
this._boundary = "--------------------------" + crypto5.randomBytes(12).toString("hex");
|
|
212107
212107
|
};
|
|
212108
212108
|
FormData6.prototype.getLengthSync = function() {
|
|
212109
212109
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -237111,14 +237111,14 @@ var require_jwa = __commonJS({
|
|
|
237111
237111
|
"../../../node_modules/.pnpm/jwa@2.0.1/node_modules/jwa/index.js"(exports2, module4) {
|
|
237112
237112
|
"use strict";
|
|
237113
237113
|
var Buffer5 = require_safe_buffer().Buffer;
|
|
237114
|
-
var
|
|
237114
|
+
var crypto5 = require("crypto");
|
|
237115
237115
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
237116
237116
|
var util5 = require("util");
|
|
237117
237117
|
var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';
|
|
237118
237118
|
var MSG_INVALID_SECRET = "secret must be a string or buffer";
|
|
237119
237119
|
var MSG_INVALID_VERIFIER_KEY = "key must be a string or a buffer";
|
|
237120
237120
|
var MSG_INVALID_SIGNER_KEY = "key must be a string, a buffer or an object";
|
|
237121
|
-
var supportsKeyObjects = typeof
|
|
237121
|
+
var supportsKeyObjects = typeof crypto5.createPublicKey === "function";
|
|
237122
237122
|
if (supportsKeyObjects) {
|
|
237123
237123
|
MSG_INVALID_VERIFIER_KEY += " or a KeyObject";
|
|
237124
237124
|
MSG_INVALID_SECRET += "or a KeyObject";
|
|
@@ -237208,17 +237208,17 @@ var require_jwa = __commonJS({
|
|
|
237208
237208
|
return function sign2(thing, secret) {
|
|
237209
237209
|
checkIsSecretKey(secret);
|
|
237210
237210
|
thing = normalizeInput(thing);
|
|
237211
|
-
var hmac =
|
|
237211
|
+
var hmac = crypto5.createHmac("sha" + bits, secret);
|
|
237212
237212
|
var sig = (hmac.update(thing), hmac.digest("base64"));
|
|
237213
237213
|
return fromBase642(sig);
|
|
237214
237214
|
};
|
|
237215
237215
|
}
|
|
237216
237216
|
var bufferEqual;
|
|
237217
|
-
var timingSafeEqual2 = "timingSafeEqual" in
|
|
237217
|
+
var timingSafeEqual2 = "timingSafeEqual" in crypto5 ? function timingSafeEqual3(a4, b7) {
|
|
237218
237218
|
if (a4.byteLength !== b7.byteLength) {
|
|
237219
237219
|
return false;
|
|
237220
237220
|
}
|
|
237221
|
-
return
|
|
237221
|
+
return crypto5.timingSafeEqual(a4, b7);
|
|
237222
237222
|
} : function timingSafeEqual3(a4, b7) {
|
|
237223
237223
|
if (!bufferEqual) {
|
|
237224
237224
|
bufferEqual = require_buffer_equal_constant_time();
|
|
@@ -237235,7 +237235,7 @@ var require_jwa = __commonJS({
|
|
|
237235
237235
|
return function sign2(thing, privateKey) {
|
|
237236
237236
|
checkIsPrivateKey(privateKey);
|
|
237237
237237
|
thing = normalizeInput(thing);
|
|
237238
|
-
var signer =
|
|
237238
|
+
var signer = crypto5.createSign("RSA-SHA" + bits);
|
|
237239
237239
|
var sig = (signer.update(thing), signer.sign(privateKey, "base64"));
|
|
237240
237240
|
return fromBase642(sig);
|
|
237241
237241
|
};
|
|
@@ -237245,7 +237245,7 @@ var require_jwa = __commonJS({
|
|
|
237245
237245
|
checkIsPublicKey(publicKey);
|
|
237246
237246
|
thing = normalizeInput(thing);
|
|
237247
237247
|
signature = toBase64(signature);
|
|
237248
|
-
var verifier =
|
|
237248
|
+
var verifier = crypto5.createVerify("RSA-SHA" + bits);
|
|
237249
237249
|
verifier.update(thing);
|
|
237250
237250
|
return verifier.verify(publicKey, signature, "base64");
|
|
237251
237251
|
};
|
|
@@ -237254,11 +237254,11 @@ var require_jwa = __commonJS({
|
|
|
237254
237254
|
return function sign2(thing, privateKey) {
|
|
237255
237255
|
checkIsPrivateKey(privateKey);
|
|
237256
237256
|
thing = normalizeInput(thing);
|
|
237257
|
-
var signer =
|
|
237257
|
+
var signer = crypto5.createSign("RSA-SHA" + bits);
|
|
237258
237258
|
var sig = (signer.update(thing), signer.sign({
|
|
237259
237259
|
key: privateKey,
|
|
237260
|
-
padding:
|
|
237261
|
-
saltLength:
|
|
237260
|
+
padding: crypto5.constants.RSA_PKCS1_PSS_PADDING,
|
|
237261
|
+
saltLength: crypto5.constants.RSA_PSS_SALTLEN_DIGEST
|
|
237262
237262
|
}, "base64"));
|
|
237263
237263
|
return fromBase642(sig);
|
|
237264
237264
|
};
|
|
@@ -237268,12 +237268,12 @@ var require_jwa = __commonJS({
|
|
|
237268
237268
|
checkIsPublicKey(publicKey);
|
|
237269
237269
|
thing = normalizeInput(thing);
|
|
237270
237270
|
signature = toBase64(signature);
|
|
237271
|
-
var verifier =
|
|
237271
|
+
var verifier = crypto5.createVerify("RSA-SHA" + bits);
|
|
237272
237272
|
verifier.update(thing);
|
|
237273
237273
|
return verifier.verify({
|
|
237274
237274
|
key: publicKey,
|
|
237275
|
-
padding:
|
|
237276
|
-
saltLength:
|
|
237275
|
+
padding: crypto5.constants.RSA_PKCS1_PSS_PADDING,
|
|
237276
|
+
saltLength: crypto5.constants.RSA_PSS_SALTLEN_DIGEST
|
|
237277
237277
|
}, signature, "base64");
|
|
237278
237278
|
};
|
|
237279
237279
|
}
|
|
@@ -239081,9 +239081,9 @@ var require_webcrypto = __commonJS({
|
|
|
239081
239081
|
"use strict";
|
|
239082
239082
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
239083
239083
|
exports2.isCryptoKey = void 0;
|
|
239084
|
-
var
|
|
239084
|
+
var crypto5 = require("crypto");
|
|
239085
239085
|
var util5 = require("util");
|
|
239086
|
-
var webcrypto =
|
|
239086
|
+
var webcrypto = crypto5.webcrypto;
|
|
239087
239087
|
exports2.default = webcrypto;
|
|
239088
239088
|
exports2.isCryptoKey = util5.types.isCryptoKey ? (key2) => util5.types.isCryptoKey(key2) : (key2) => false;
|
|
239089
239089
|
}
|
|
@@ -241734,22 +241734,22 @@ var require_sign3 = __commonJS({
|
|
|
241734
241734
|
"../../../node_modules/.pnpm/jose@4.15.9/node_modules/jose/dist/node/cjs/runtime/sign.js"(exports2) {
|
|
241735
241735
|
"use strict";
|
|
241736
241736
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
241737
|
-
var
|
|
241737
|
+
var crypto5 = require("crypto");
|
|
241738
241738
|
var util_1 = require("util");
|
|
241739
241739
|
var dsa_digest_js_1 = require_dsa_digest();
|
|
241740
241740
|
var hmac_digest_js_1 = require_hmac_digest();
|
|
241741
241741
|
var node_key_js_1 = require_node_key();
|
|
241742
241742
|
var get_sign_verify_key_js_1 = require_get_sign_verify_key();
|
|
241743
241743
|
var oneShotSign;
|
|
241744
|
-
if (
|
|
241745
|
-
oneShotSign = (0, util_1.promisify)(
|
|
241744
|
+
if (crypto5.sign.length > 3) {
|
|
241745
|
+
oneShotSign = (0, util_1.promisify)(crypto5.sign);
|
|
241746
241746
|
} else {
|
|
241747
|
-
oneShotSign =
|
|
241747
|
+
oneShotSign = crypto5.sign;
|
|
241748
241748
|
}
|
|
241749
241749
|
var sign2 = async (alg, key2, data2) => {
|
|
241750
241750
|
const keyObject = (0, get_sign_verify_key_js_1.default)(alg, key2, "sign");
|
|
241751
241751
|
if (alg.startsWith("HS")) {
|
|
241752
|
-
const hmac =
|
|
241752
|
+
const hmac = crypto5.createHmac((0, hmac_digest_js_1.default)(alg), keyObject);
|
|
241753
241753
|
hmac.update(data2);
|
|
241754
241754
|
return hmac.digest();
|
|
241755
241755
|
}
|
|
@@ -241764,7 +241764,7 @@ var require_verify2 = __commonJS({
|
|
|
241764
241764
|
"../../../node_modules/.pnpm/jose@4.15.9/node_modules/jose/dist/node/cjs/runtime/verify.js"(exports2) {
|
|
241765
241765
|
"use strict";
|
|
241766
241766
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
241767
|
-
var
|
|
241767
|
+
var crypto5 = require("crypto");
|
|
241768
241768
|
var util_1 = require("util");
|
|
241769
241769
|
var dsa_digest_js_1 = require_dsa_digest();
|
|
241770
241770
|
var node_key_js_1 = require_node_key();
|
|
@@ -241772,10 +241772,10 @@ var require_verify2 = __commonJS({
|
|
|
241772
241772
|
var get_sign_verify_key_js_1 = require_get_sign_verify_key();
|
|
241773
241773
|
var flags_js_1 = require_flags();
|
|
241774
241774
|
var oneShotVerify;
|
|
241775
|
-
if (
|
|
241776
|
-
oneShotVerify = (0, util_1.promisify)(
|
|
241775
|
+
if (crypto5.verify.length > 4 && flags_js_1.oneShotCallback) {
|
|
241776
|
+
oneShotVerify = (0, util_1.promisify)(crypto5.verify);
|
|
241777
241777
|
} else {
|
|
241778
|
-
oneShotVerify =
|
|
241778
|
+
oneShotVerify = crypto5.verify;
|
|
241779
241779
|
}
|
|
241780
241780
|
var verify2 = async (alg, key2, signature, data2) => {
|
|
241781
241781
|
const keyObject = (0, get_sign_verify_key_js_1.default)(alg, key2, "verify");
|
|
@@ -241783,7 +241783,7 @@ var require_verify2 = __commonJS({
|
|
|
241783
241783
|
const expected = await (0, sign_js_1.default)(alg, keyObject, data2);
|
|
241784
241784
|
const actual = signature;
|
|
241785
241785
|
try {
|
|
241786
|
-
return
|
|
241786
|
+
return crypto5.timingSafeEqual(actual, expected);
|
|
241787
241787
|
} catch {
|
|
241788
241788
|
return false;
|
|
241789
241789
|
}
|
|
@@ -268659,7 +268659,7 @@ var require_main2 = __commonJS({
|
|
|
268659
268659
|
var fs28 = require("fs");
|
|
268660
268660
|
var path100 = require("path");
|
|
268661
268661
|
var os24 = require("os");
|
|
268662
|
-
var
|
|
268662
|
+
var crypto5 = require("crypto");
|
|
268663
268663
|
var packageJson2 = require_package4();
|
|
268664
268664
|
var version7 = packageJson2.version;
|
|
268665
268665
|
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
@@ -268878,7 +268878,7 @@ var require_main2 = __commonJS({
|
|
|
268878
268878
|
const authTag = ciphertext.subarray(-16);
|
|
268879
268879
|
ciphertext = ciphertext.subarray(12, -16);
|
|
268880
268880
|
try {
|
|
268881
|
-
const aesgcm =
|
|
268881
|
+
const aesgcm = crypto5.createDecipheriv("aes-256-gcm", key2, nonce);
|
|
268882
268882
|
aesgcm.setAuthTag(authTag);
|
|
268883
268883
|
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
268884
268884
|
} catch (error50) {
|
|
@@ -284146,14 +284146,14 @@ var require_etag = __commonJS({
|
|
|
284146
284146
|
"../../../node_modules/.pnpm/etag@1.8.1/node_modules/etag/index.js"(exports2, module4) {
|
|
284147
284147
|
"use strict";
|
|
284148
284148
|
module4.exports = etag;
|
|
284149
|
-
var
|
|
284149
|
+
var crypto5 = require("crypto");
|
|
284150
284150
|
var Stats = require("fs").Stats;
|
|
284151
284151
|
var toString10 = Object.prototype.toString;
|
|
284152
284152
|
function entitytag(entity) {
|
|
284153
284153
|
if (entity.length === 0) {
|
|
284154
284154
|
return '"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';
|
|
284155
284155
|
}
|
|
284156
|
-
var hash5 =
|
|
284156
|
+
var hash5 = crypto5.createHash("sha1").update(entity, "utf8").digest("base64").substring(0, 27);
|
|
284157
284157
|
var len = typeof entity === "string" ? Buffer.byteLength(entity, "utf8") : entity.length;
|
|
284158
284158
|
return '"' + len.toString(16) + "-" + hash5 + '"';
|
|
284159
284159
|
}
|
|
@@ -286932,11 +286932,11 @@ var require_request3 = __commonJS({
|
|
|
286932
286932
|
var require_cookie_signature = __commonJS({
|
|
286933
286933
|
"../../../node_modules/.pnpm/cookie-signature@1.0.7/node_modules/cookie-signature/index.js"(exports2) {
|
|
286934
286934
|
"use strict";
|
|
286935
|
-
var
|
|
286935
|
+
var crypto5 = require("crypto");
|
|
286936
286936
|
exports2.sign = function(val, secret) {
|
|
286937
286937
|
if ("string" !== typeof val) throw new TypeError("Cookie value must be provided as a string.");
|
|
286938
286938
|
if (null == secret) throw new TypeError("Secret key must be provided.");
|
|
286939
|
-
return val + "." +
|
|
286939
|
+
return val + "." + crypto5.createHmac("sha256", secret).update(val).digest("base64").replace(/\=+$/, "");
|
|
286940
286940
|
};
|
|
286941
286941
|
exports2.unsign = function(val, secret) {
|
|
286942
286942
|
if ("string" !== typeof val) throw new TypeError("Signed cookie string must be provided.");
|
|
@@ -286945,7 +286945,7 @@ var require_cookie_signature = __commonJS({
|
|
|
286945
286945
|
return sha1(mac3) == sha1(val) ? str3 : false;
|
|
286946
286946
|
};
|
|
286947
286947
|
function sha1(str3) {
|
|
286948
|
-
return
|
|
286948
|
+
return crypto5.createHash("sha1").update(str3).digest("hex");
|
|
286949
286949
|
}
|
|
286950
286950
|
}
|
|
286951
286951
|
});
|
|
@@ -416108,7 +416108,7 @@ var require_dist22 = __commonJS({
|
|
|
416108
416108
|
exports2.PacProxyAgent = void 0;
|
|
416109
416109
|
var net4 = __importStar2(require("net"));
|
|
416110
416110
|
var tls2 = __importStar2(require("tls"));
|
|
416111
|
-
var
|
|
416111
|
+
var crypto5 = __importStar2(require("crypto"));
|
|
416112
416112
|
var events_1 = require("events");
|
|
416113
416113
|
var debug_1 = __importDefault2(require_src());
|
|
416114
416114
|
var url_1 = require("url");
|
|
@@ -416161,7 +416161,7 @@ var require_dist22 = __commonJS({
|
|
|
416161
416161
|
(0, quickjs_emscripten_1.getQuickJS)(),
|
|
416162
416162
|
this.loadPacFile()
|
|
416163
416163
|
]);
|
|
416164
|
-
const hash5 =
|
|
416164
|
+
const hash5 = crypto5.createHash("sha1").update(code5).digest("hex");
|
|
416165
416165
|
if (this.resolver && this.resolverHash === hash5) {
|
|
416166
416166
|
debug9("Same sha1 hash for code - contents have not changed, reusing previous proxy resolver");
|
|
416167
416167
|
return this.resolver;
|
|
@@ -436011,11 +436011,11 @@ var require_util11 = __commonJS({
|
|
|
436011
436011
|
var { isUint8Array: isUint8Array3 } = require("util/types");
|
|
436012
436012
|
var { webidl } = require_webidl();
|
|
436013
436013
|
var supportedHashes = [];
|
|
436014
|
-
var
|
|
436014
|
+
var crypto5;
|
|
436015
436015
|
try {
|
|
436016
|
-
|
|
436016
|
+
crypto5 = require("crypto");
|
|
436017
436017
|
const possibleRelevantHashes = ["sha256", "sha384", "sha512"];
|
|
436018
|
-
supportedHashes =
|
|
436018
|
+
supportedHashes = crypto5.getHashes().filter((hash5) => possibleRelevantHashes.includes(hash5));
|
|
436019
436019
|
} catch {
|
|
436020
436020
|
}
|
|
436021
436021
|
function responseURL(response) {
|
|
@@ -436288,7 +436288,7 @@ var require_util11 = __commonJS({
|
|
|
436288
436288
|
}
|
|
436289
436289
|
}
|
|
436290
436290
|
function bytesMatch(bytes, metadataList) {
|
|
436291
|
-
if (
|
|
436291
|
+
if (crypto5 === void 0) {
|
|
436292
436292
|
return true;
|
|
436293
436293
|
}
|
|
436294
436294
|
const parsedMetadata = parseMetadata(metadataList);
|
|
@@ -436303,7 +436303,7 @@ var require_util11 = __commonJS({
|
|
|
436303
436303
|
for (const item of metadata) {
|
|
436304
436304
|
const algorithm = item.algo;
|
|
436305
436305
|
const expectedValue = item.hash;
|
|
436306
|
-
let actualValue =
|
|
436306
|
+
let actualValue = crypto5.createHash(algorithm).update(bytes).digest("base64");
|
|
436307
436307
|
if (actualValue[actualValue.length - 1] === "=") {
|
|
436308
436308
|
if (actualValue[actualValue.length - 2] === "=") {
|
|
436309
436309
|
actualValue = actualValue.slice(0, -2);
|
|
@@ -437367,8 +437367,8 @@ var require_body = __commonJS({
|
|
|
437367
437367
|
var { multipartFormDataParser } = require_formdata_parser();
|
|
437368
437368
|
var random;
|
|
437369
437369
|
try {
|
|
437370
|
-
const
|
|
437371
|
-
random = (max) =>
|
|
437370
|
+
const crypto5 = require("crypto");
|
|
437371
|
+
random = (max) => crypto5.randomInt(0, max);
|
|
437372
437372
|
} catch {
|
|
437373
437373
|
random = (max) => Math.floor(Math.random(max));
|
|
437374
437374
|
}
|
|
@@ -448779,13 +448779,13 @@ var require_frame = __commonJS({
|
|
|
448779
448779
|
"use strict";
|
|
448780
448780
|
var { maxUnsigned16Bit } = require_constants13();
|
|
448781
448781
|
var BUFFER_SIZE = 16386;
|
|
448782
|
-
var
|
|
448782
|
+
var crypto5;
|
|
448783
448783
|
var buffer = null;
|
|
448784
448784
|
var bufIdx = BUFFER_SIZE;
|
|
448785
448785
|
try {
|
|
448786
|
-
|
|
448786
|
+
crypto5 = require("crypto");
|
|
448787
448787
|
} catch {
|
|
448788
|
-
|
|
448788
|
+
crypto5 = {
|
|
448789
448789
|
// not full compatibility, but minimum.
|
|
448790
448790
|
randomFillSync: function randomFillSync(buffer2, _offset, _size2) {
|
|
448791
448791
|
for (let i9 = 0; i9 < buffer2.length; ++i9) {
|
|
@@ -448798,7 +448798,7 @@ var require_frame = __commonJS({
|
|
|
448798
448798
|
function generateMask() {
|
|
448799
448799
|
if (bufIdx === BUFFER_SIZE) {
|
|
448800
448800
|
bufIdx = 0;
|
|
448801
|
-
|
|
448801
|
+
crypto5.randomFillSync(buffer ??= Buffer.allocUnsafe(BUFFER_SIZE), 0, BUFFER_SIZE);
|
|
448802
448802
|
}
|
|
448803
448803
|
return [buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++], buffer[bufIdx++]];
|
|
448804
448804
|
}
|
|
@@ -448870,9 +448870,9 @@ var require_connection = __commonJS({
|
|
|
448870
448870
|
var { Headers: Headers6, getHeadersList } = require_headers3();
|
|
448871
448871
|
var { getDecodeSplit } = require_util11();
|
|
448872
448872
|
var { WebsocketFrameSend } = require_frame();
|
|
448873
|
-
var
|
|
448873
|
+
var crypto5;
|
|
448874
448874
|
try {
|
|
448875
|
-
|
|
448875
|
+
crypto5 = require("crypto");
|
|
448876
448876
|
} catch {
|
|
448877
448877
|
}
|
|
448878
448878
|
function establishWebSocketConnection(url3, protocols, client3, ws5, onEstablish, options2) {
|
|
@@ -448892,7 +448892,7 @@ var require_connection = __commonJS({
|
|
|
448892
448892
|
const headersList = getHeadersList(new Headers6(options2.headers));
|
|
448893
448893
|
request7.headersList = headersList;
|
|
448894
448894
|
}
|
|
448895
|
-
const keyValue =
|
|
448895
|
+
const keyValue = crypto5.randomBytes(16).toString("base64");
|
|
448896
448896
|
request7.headersList.append("sec-websocket-key", keyValue);
|
|
448897
448897
|
request7.headersList.append("sec-websocket-version", "13");
|
|
448898
448898
|
for (const protocol2 of protocols) {
|
|
@@ -448922,7 +448922,7 @@ var require_connection = __commonJS({
|
|
|
448922
448922
|
return;
|
|
448923
448923
|
}
|
|
448924
448924
|
const secWSAccept = response.headersList.get("Sec-WebSocket-Accept");
|
|
448925
|
-
const digest =
|
|
448925
|
+
const digest = crypto5.createHash("sha1").update(keyValue + uid).digest("base64");
|
|
448926
448926
|
if (secWSAccept !== digest) {
|
|
448927
448927
|
failWebsocketConnection(ws5, "Incorrect hash received in Sec-WebSocket-Accept header.");
|
|
448928
448928
|
return;
|
|
@@ -454565,10 +454565,10 @@ var emptyUuid;
|
|
|
454565
454565
|
function getRandomByte() {
|
|
454566
454566
|
return safeMathRandom() * 16;
|
|
454567
454567
|
}
|
|
454568
|
-
function uuid4(
|
|
454568
|
+
function uuid4(crypto5 = getCrypto()) {
|
|
454569
454569
|
try {
|
|
454570
|
-
if (
|
|
454571
|
-
return withRandomSafeContext(() =>
|
|
454570
|
+
if (crypto5?.randomUUID) {
|
|
454571
|
+
return withRandomSafeContext(() => crypto5.randomUUID()).replace(/-/g, "");
|
|
454572
454572
|
}
|
|
454573
454573
|
} catch {
|
|
454574
454574
|
}
|
|
@@ -508567,6 +508567,12 @@ var LibraryLanguage2 = {
|
|
|
508567
508567
|
Cpp: "cpp"
|
|
508568
508568
|
};
|
|
508569
508569
|
|
|
508570
|
+
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/OgDynamicLogoColor.js
|
|
508571
|
+
var OgDynamicLogoColor = {
|
|
508572
|
+
Dark: "dark",
|
|
508573
|
+
Light: "light"
|
|
508574
|
+
};
|
|
508575
|
+
|
|
508570
508576
|
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/PageActionOption.js
|
|
508571
508577
|
var PageActionOption2 = {
|
|
508572
508578
|
CopyPage: "copy-page",
|
|
@@ -508575,6 +508581,7 @@ var PageActionOption2 = {
|
|
|
508575
508581
|
Chatgpt: "chatgpt",
|
|
508576
508582
|
Claude: "claude",
|
|
508577
508583
|
Cursor: "cursor",
|
|
508584
|
+
ClaudeCode: "claude-code",
|
|
508578
508585
|
Vscode: "vscode"
|
|
508579
508586
|
};
|
|
508580
508587
|
|
|
@@ -508652,7 +508659,7 @@ var TabsPlacement2 = {
|
|
|
508652
508659
|
Sidebar: "sidebar"
|
|
508653
508660
|
};
|
|
508654
508661
|
|
|
508655
|
-
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/
|
|
508662
|
+
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/TabsThemeStyle.js
|
|
508656
508663
|
var TabsThemeStyle = {
|
|
508657
508664
|
Default: "default",
|
|
508658
508665
|
Bubble: "bubble"
|
|
@@ -508680,12 +508687,6 @@ var TwitterCardSetting2 = {
|
|
|
508680
508687
|
Player: "player"
|
|
508681
508688
|
};
|
|
508682
508689
|
|
|
508683
|
-
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/OgDynamicLogoColor.js
|
|
508684
|
-
var OgDynamicLogoColor = {
|
|
508685
|
-
Dark: "dark",
|
|
508686
|
-
Light: "light"
|
|
508687
|
-
};
|
|
508688
|
-
|
|
508689
508690
|
// ../configuration/lib/docs-yml/schemas/sdk/api/resources/docs/types/VersionAvailability.js
|
|
508690
508691
|
var VersionAvailability2 = {
|
|
508691
508692
|
Deprecated: "deprecated",
|
|
@@ -509006,6 +509007,8 @@ __export(serialization_exports3, {
|
|
|
509006
509007
|
TabsAlignment: () => TabsAlignment2,
|
|
509007
509008
|
TabsPlacement: () => TabsPlacement3,
|
|
509008
509009
|
TabsThemeConfig: () => TabsThemeConfig2,
|
|
509010
|
+
TabsThemeObjectConfig: () => TabsThemeObjectConfig,
|
|
509011
|
+
TabsThemeStyle: () => TabsThemeStyle2,
|
|
509009
509012
|
Target: () => Target3,
|
|
509010
509013
|
ThemeConfig: () => ThemeConfig2,
|
|
509011
509014
|
TitleSource: () => TitleSource3,
|
|
@@ -509155,6 +509158,8 @@ __export(docs_exports2, {
|
|
|
509155
509158
|
TabsAlignment: () => TabsAlignment2,
|
|
509156
509159
|
TabsPlacement: () => TabsPlacement3,
|
|
509157
509160
|
TabsThemeConfig: () => TabsThemeConfig2,
|
|
509161
|
+
TabsThemeObjectConfig: () => TabsThemeObjectConfig,
|
|
509162
|
+
TabsThemeStyle: () => TabsThemeStyle2,
|
|
509158
509163
|
Target: () => Target3,
|
|
509159
509164
|
ThemeConfig: () => ThemeConfig2,
|
|
509160
509165
|
TitleSource: () => TitleSource3,
|
|
@@ -511350,7 +511355,16 @@ var UntabbedNavigationConfig2 = schemas_exports6.list(schemas_exports6.lazy(() =
|
|
|
511350
511355
|
var NavigationConfig2 = schemas_exports6.undiscriminatedUnion([UntabbedNavigationConfig2, TabbedNavigationConfig2]);
|
|
511351
511356
|
|
|
511352
511357
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/PageActionOption.js
|
|
511353
|
-
var PageActionOption3 = schemas_exports6.enum_([
|
|
511358
|
+
var PageActionOption3 = schemas_exports6.enum_([
|
|
511359
|
+
"copy-page",
|
|
511360
|
+
"view-as-markdown",
|
|
511361
|
+
"ask-ai",
|
|
511362
|
+
"chatgpt",
|
|
511363
|
+
"claude",
|
|
511364
|
+
"cursor",
|
|
511365
|
+
"claude-code",
|
|
511366
|
+
"vscode"
|
|
511367
|
+
]);
|
|
511354
511368
|
|
|
511355
511369
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/PageActionOptions.js
|
|
511356
511370
|
var PageActionOptions2 = schemas_exports6.object({
|
|
@@ -511359,6 +511373,7 @@ var PageActionOptions2 = schemas_exports6.object({
|
|
|
511359
511373
|
askAi: schemas_exports6.property("ask-ai", schemas_exports6.boolean().optional()),
|
|
511360
511374
|
chatgpt: schemas_exports6.boolean().optional(),
|
|
511361
511375
|
claude: schemas_exports6.boolean().optional(),
|
|
511376
|
+
claudeCode: schemas_exports6.property("claude-code", schemas_exports6.boolean().optional()),
|
|
511362
511377
|
cursor: schemas_exports6.boolean().optional(),
|
|
511363
511378
|
vscode: schemas_exports6.boolean().optional(),
|
|
511364
511379
|
custom: schemas_exports6.list(CustomPageAction2).optional()
|
|
@@ -511468,13 +511483,17 @@ var SidebarThemeConfig3 = schemas_exports6.enum_(["default", "minimal"]);
|
|
|
511468
511483
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TabsAlignment.js
|
|
511469
511484
|
var TabsAlignment2 = schemas_exports6.enum_(["left", "center"]);
|
|
511470
511485
|
|
|
511471
|
-
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/
|
|
511486
|
+
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TabsThemeStyle.js
|
|
511472
511487
|
var TabsThemeStyle2 = schemas_exports6.enum_(["default", "bubble"]);
|
|
511488
|
+
|
|
511489
|
+
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TabsThemeObjectConfig.js
|
|
511473
511490
|
var TabsThemeObjectConfig = schemas_exports6.object({
|
|
511474
511491
|
style: TabsThemeStyle2.optional(),
|
|
511475
511492
|
alignment: TabsAlignment2.optional(),
|
|
511476
511493
|
placement: TabsPlacement3.optional()
|
|
511477
511494
|
});
|
|
511495
|
+
|
|
511496
|
+
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/TabsThemeConfig.js
|
|
511478
511497
|
var TabsThemeConfig2 = schemas_exports6.undiscriminatedUnion([TabsThemeStyle2, TabsThemeObjectConfig]);
|
|
511479
511498
|
|
|
511480
511499
|
// ../configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/ThemeConfig.js
|
|
@@ -539374,6 +539393,7 @@ function convertPageActions(pageActions, absoluteFilepathToDocsConfig) {
|
|
|
539374
539393
|
openAi: pageActions.options?.chatgpt ?? true,
|
|
539375
539394
|
claude: pageActions.options?.claude ?? true,
|
|
539376
539395
|
cursor: pageActions.options?.cursor ?? true,
|
|
539396
|
+
claudeCode: pageActions.options?.claudeCode ?? true,
|
|
539377
539397
|
vscode: pageActions.options?.vscode ?? false,
|
|
539378
539398
|
custom: (pageActions.options?.custom ?? []).map((action) => convertCustomPageAction(action, absoluteFilepathToDocsConfig))
|
|
539379
539399
|
}
|
|
@@ -539393,6 +539413,8 @@ function convertPageActionOption(option) {
|
|
|
539393
539413
|
return "claude";
|
|
539394
539414
|
case "cursor":
|
|
539395
539415
|
return "cursor";
|
|
539416
|
+
case "claude-code":
|
|
539417
|
+
return "claudeCode";
|
|
539396
539418
|
case "vscode":
|
|
539397
539419
|
return "vscode";
|
|
539398
539420
|
default:
|
|
@@ -558551,53 +558573,50 @@ function convertTransportToEncoding(transport, service) {
|
|
|
558551
558573
|
init_lib4();
|
|
558552
558574
|
var import_url_join8 = __toESM(require_url_join(), 1);
|
|
558553
558575
|
|
|
558554
|
-
// ../../../node_modules/.pnpm/uuid@
|
|
558555
|
-
var
|
|
558556
|
-
var rnds8Pool = new Uint8Array(256);
|
|
558557
|
-
var poolPtr = rnds8Pool.length;
|
|
558558
|
-
function rng() {
|
|
558559
|
-
if (poolPtr > rnds8Pool.length - 16) {
|
|
558560
|
-
import_crypto3.default.randomFillSync(rnds8Pool);
|
|
558561
|
-
poolPtr = 0;
|
|
558562
|
-
}
|
|
558563
|
-
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
558564
|
-
}
|
|
558565
|
-
|
|
558566
|
-
// ../../../node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/esm-node/regex.js
|
|
558567
|
-
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
558576
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/regex.js
|
|
558577
|
+
var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
558568
558578
|
|
|
558569
|
-
// ../../../node_modules/.pnpm/uuid@
|
|
558579
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/validate.js
|
|
558570
558580
|
function validate2(uuid3) {
|
|
558571
558581
|
return typeof uuid3 === "string" && regex_default.test(uuid3);
|
|
558572
558582
|
}
|
|
558573
558583
|
var validate_default = validate2;
|
|
558574
558584
|
|
|
558575
|
-
// ../../../node_modules/.pnpm/uuid@
|
|
558585
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/stringify.js
|
|
558576
558586
|
var byteToHex = [];
|
|
558577
558587
|
for (let i9 = 0; i9 < 256; ++i9) {
|
|
558578
558588
|
byteToHex.push((i9 + 256).toString(16).slice(1));
|
|
558579
558589
|
}
|
|
558580
558590
|
function unsafeStringify(arr, offset2 = 0) {
|
|
558581
|
-
return byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]];
|
|
558591
|
+
return (byteToHex[arr[offset2 + 0]] + byteToHex[arr[offset2 + 1]] + byteToHex[arr[offset2 + 2]] + byteToHex[arr[offset2 + 3]] + "-" + byteToHex[arr[offset2 + 4]] + byteToHex[arr[offset2 + 5]] + "-" + byteToHex[arr[offset2 + 6]] + byteToHex[arr[offset2 + 7]] + "-" + byteToHex[arr[offset2 + 8]] + byteToHex[arr[offset2 + 9]] + "-" + byteToHex[arr[offset2 + 10]] + byteToHex[arr[offset2 + 11]] + byteToHex[arr[offset2 + 12]] + byteToHex[arr[offset2 + 13]] + byteToHex[arr[offset2 + 14]] + byteToHex[arr[offset2 + 15]]).toLowerCase();
|
|
558582
558592
|
}
|
|
558583
558593
|
|
|
558584
|
-
// ../../../node_modules/.pnpm/uuid@
|
|
558585
|
-
var
|
|
558586
|
-
|
|
558587
|
-
|
|
558588
|
-
}
|
|
558594
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/rng.js
|
|
558595
|
+
var rnds8 = new Uint8Array(16);
|
|
558596
|
+
function rng() {
|
|
558597
|
+
return crypto.getRandomValues(rnds8);
|
|
558598
|
+
}
|
|
558589
558599
|
|
|
558590
|
-
// ../../../node_modules/.pnpm/uuid@
|
|
558600
|
+
// ../../../node_modules/.pnpm/uuid@14.0.0/node_modules/uuid/dist-node/v4.js
|
|
558591
558601
|
function v42(options2, buf, offset2) {
|
|
558592
|
-
if (
|
|
558593
|
-
return
|
|
558602
|
+
if (!buf && !options2 && crypto.randomUUID) {
|
|
558603
|
+
return crypto.randomUUID();
|
|
558594
558604
|
}
|
|
558605
|
+
return _v4(options2, buf, offset2);
|
|
558606
|
+
}
|
|
558607
|
+
function _v4(options2, buf, offset2) {
|
|
558595
558608
|
options2 = options2 || {};
|
|
558596
|
-
const rnds = options2.random
|
|
558609
|
+
const rnds = options2.random ?? options2.rng?.() ?? rng();
|
|
558610
|
+
if (rnds.length < 16) {
|
|
558611
|
+
throw new Error("Random bytes length must be >= 16");
|
|
558612
|
+
}
|
|
558597
558613
|
rnds[6] = rnds[6] & 15 | 64;
|
|
558598
558614
|
rnds[8] = rnds[8] & 63 | 128;
|
|
558599
558615
|
if (buf) {
|
|
558600
558616
|
offset2 = offset2 || 0;
|
|
558617
|
+
if (offset2 < 0 || offset2 + 16 > buf.length) {
|
|
558618
|
+
throw new RangeError(`UUID byte range ${offset2}:${offset2 + 15} is out of buffer bounds`);
|
|
558619
|
+
}
|
|
558601
558620
|
for (let i9 = 0; i9 < 16; ++i9) {
|
|
558602
558621
|
buf[offset2 + i9] = rnds[i9];
|
|
558603
558622
|
}
|
|
@@ -578633,7 +578652,7 @@ var transitional_default = {
|
|
|
578633
578652
|
};
|
|
578634
578653
|
|
|
578635
578654
|
// ../../../node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/platform/node/index.js
|
|
578636
|
-
var
|
|
578655
|
+
var import_crypto3 = __toESM(require("crypto"), 1);
|
|
578637
578656
|
|
|
578638
578657
|
// ../../../node_modules/.pnpm/axios@1.15.0/node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
578639
578658
|
var import_url6 = __toESM(require("url"), 1);
|
|
@@ -578651,7 +578670,7 @@ var generateString = (size2 = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
|
578651
578670
|
let str3 = "";
|
|
578652
578671
|
const { length } = alphabet;
|
|
578653
578672
|
const randomValues = new Uint32Array(size2);
|
|
578654
|
-
|
|
578673
|
+
import_crypto3.default.randomFillSync(randomValues);
|
|
578655
578674
|
for (let i9 = 0; i9 < size2; i9++) {
|
|
578656
578675
|
str3 += alphabet[randomValues[i9] % length];
|
|
578657
578676
|
}
|
|
@@ -617997,7 +618016,7 @@ var AccessTokenPosthogManager = class {
|
|
|
617997
618016
|
properties: {
|
|
617998
618017
|
...event,
|
|
617999
618018
|
...event.properties,
|
|
618000
|
-
version: "4.
|
|
618019
|
+
version: "4.93.0",
|
|
618001
618020
|
usingAccessToken: true
|
|
618002
618021
|
}
|
|
618003
618022
|
});
|
|
@@ -618051,7 +618070,7 @@ var UserPosthogManager = class {
|
|
|
618051
618070
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
618052
618071
|
event: "CLI",
|
|
618053
618072
|
properties: {
|
|
618054
|
-
version: "4.
|
|
618073
|
+
version: "4.93.0",
|
|
618055
618074
|
...event,
|
|
618056
618075
|
...event.properties,
|
|
618057
618076
|
usingAccessToken: false,
|
|
@@ -620101,7 +620120,7 @@ var import_os7 = __toESM(require("os"), 1);
|
|
|
620101
620120
|
|
|
620102
620121
|
// ../cli-v2/lib/cache/ir/IrCache.js
|
|
620103
620122
|
init_lib6();
|
|
620104
|
-
var
|
|
620123
|
+
var import_crypto5 = __toESM(require("crypto"), 1);
|
|
620105
620124
|
var import_promises47 = __toESM(require("fs/promises"), 1);
|
|
620106
620125
|
var IrCache = class {
|
|
620107
620126
|
/** Absolute file path to the IR cache directory (e.g. ~/.cache/fern/v1/ir) */
|
|
@@ -620164,7 +620183,7 @@ var IrCache = class {
|
|
|
620164
620183
|
async store({ hash: hash5, irVersion, content: content5 }) {
|
|
620165
620184
|
const entryPath = this.getEntryPath({ irVersion, hash: hash5 });
|
|
620166
620185
|
const entryDir = dirname6(entryPath);
|
|
620167
|
-
const tempFile = join8(this.tempPath, RelativeFilePath2.of(`${
|
|
620186
|
+
const tempFile = join8(this.tempPath, RelativeFilePath2.of(`${import_crypto5.default.randomUUID()}.json`));
|
|
620168
620187
|
await import_promises47.default.mkdir(entryDir, { recursive: true });
|
|
620169
620188
|
await import_promises47.default.mkdir(this.tempPath, { recursive: true });
|
|
620170
620189
|
try {
|
|
@@ -790814,9 +790833,9 @@ ${tagInfo.description}`;
|
|
|
790814
790833
|
|
|
790815
790834
|
// ../docs-resolver/lib/NodeIdGenerator.js
|
|
790816
790835
|
init_js();
|
|
790817
|
-
var
|
|
790836
|
+
var import_crypto6 = __toESM(require("crypto"), 1);
|
|
790818
790837
|
function hash3(id) {
|
|
790819
|
-
return
|
|
790838
|
+
return import_crypto6.default.createHash("sha256").update(id).digest("hex");
|
|
790820
790839
|
}
|
|
790821
790840
|
var NodeIdGenerator2 = class _NodeIdGenerator {
|
|
790822
790841
|
static init() {
|
|
@@ -796790,6 +796809,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
796790
796809
|
openAi: this.parsedDocsConfig.pageActions.options.openAi,
|
|
796791
796810
|
claude: this.parsedDocsConfig.pageActions.options.claude,
|
|
796792
796811
|
cursor: this.parsedDocsConfig.pageActions.options.cursor,
|
|
796812
|
+
claudeCode: this.parsedDocsConfig.pageActions.options.claudeCode,
|
|
796793
796813
|
vscode: this.parsedDocsConfig.pageActions.options.vscode,
|
|
796794
796814
|
custom: this.parsedDocsConfig.pageActions.options.custom.map((customAction) => ({
|
|
796795
796815
|
title: customAction.title,
|
|
@@ -823631,7 +823651,7 @@ var ValidMarkdownFileReferences = {
|
|
|
823631
823651
|
init_lib4();
|
|
823632
823652
|
init_js();
|
|
823633
823653
|
init_lib6();
|
|
823634
|
-
var
|
|
823654
|
+
var import_crypto7 = require("crypto");
|
|
823635
823655
|
var import_path54 = __toESM(require("path"), 1);
|
|
823636
823656
|
|
|
823637
823657
|
// ../yaml/docs-validator/lib/rules/valid-markdown-link/check-if-pathname-exists.js
|
|
@@ -824119,7 +824139,7 @@ var ValidMarkdownLinks = {
|
|
|
824119
824139
|
context: NOOP_CONTEXT2,
|
|
824120
824140
|
sourceResolver: new SourceResolverImpl(NOOP_CONTEXT2, fernWorkspace)
|
|
824121
824141
|
});
|
|
824122
|
-
const api2 = toLatest(convertIrToApiDefinition({ ir: ir10, apiDefinitionId: (0,
|
|
824142
|
+
const api2 = toLatest(convertIrToApiDefinition({ ir: ir10, apiDefinitionId: (0, import_crypto7.randomUUID)(), context: NOOP_CONTEXT2 }));
|
|
824123
824143
|
const uniqueDescriptions = collectUniqueDescriptions(api2);
|
|
824124
824144
|
const violations = [];
|
|
824125
824145
|
const uniquePathnames = /* @__PURE__ */ new Map();
|
|
@@ -828883,7 +828903,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
828883
828903
|
var LOGS_FOLDER_NAME = "logs";
|
|
828884
828904
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
828885
828905
|
function getCliSource() {
|
|
828886
|
-
const version7 = "4.
|
|
828906
|
+
const version7 = "4.93.0";
|
|
828887
828907
|
return `cli@${version7}`;
|
|
828888
828908
|
}
|
|
828889
828909
|
var DebugLogger = class {
|
|
@@ -836299,6 +836319,7 @@ var definitions6 = {
|
|
|
836299
836319
|
"chatgpt",
|
|
836300
836320
|
"claude",
|
|
836301
836321
|
"cursor",
|
|
836322
|
+
"claude-code",
|
|
836302
836323
|
"vscode"
|
|
836303
836324
|
]
|
|
836304
836325
|
},
|
|
@@ -836401,6 +836422,16 @@ var definitions6 = {
|
|
|
836401
836422
|
}
|
|
836402
836423
|
]
|
|
836403
836424
|
},
|
|
836425
|
+
"claude-code": {
|
|
836426
|
+
oneOf: [
|
|
836427
|
+
{
|
|
836428
|
+
type: "boolean"
|
|
836429
|
+
},
|
|
836430
|
+
{
|
|
836431
|
+
type: "null"
|
|
836432
|
+
}
|
|
836433
|
+
]
|
|
836434
|
+
},
|
|
836404
836435
|
cursor: {
|
|
836405
836436
|
oneOf: [
|
|
836406
836437
|
{
|
|
@@ -839732,7 +839763,7 @@ init_lib4();
|
|
|
839732
839763
|
init_lib4();
|
|
839733
839764
|
init_js();
|
|
839734
839765
|
init_lib6();
|
|
839735
|
-
var
|
|
839766
|
+
var import_crypto8 = require("crypto");
|
|
839736
839767
|
var import_promises92 = require("fs/promises");
|
|
839737
839768
|
init_lodash();
|
|
839738
839769
|
var mime = __toESM(require_mime_types(), 1);
|
|
@@ -839813,7 +839844,7 @@ async function unlockDeploy({ fdrOrigin, token, domain: domain3, basepath }) {
|
|
|
839813
839844
|
}
|
|
839814
839845
|
async function calculateFileHash(absoluteFilePath) {
|
|
839815
839846
|
const fileBuffer = await (0, import_promises92.readFile)(absoluteFilePath);
|
|
839816
|
-
return (0,
|
|
839847
|
+
return (0, import_crypto8.createHash)("sha256").update(new Uint8Array(fileBuffer)).digest("hex");
|
|
839817
839848
|
}
|
|
839818
839849
|
function sanitizeRelativePathForS3(relativeFilePath) {
|
|
839819
839850
|
return relativeFilePath.replace(/\.\.\//g, "_dot_dot_/");
|
|
@@ -840804,7 +840835,7 @@ var LegacyDocsPublisher = class {
|
|
|
840804
840835
|
previewId,
|
|
840805
840836
|
disableTemplates: void 0,
|
|
840806
840837
|
skipUpload,
|
|
840807
|
-
cliVersion: "4.
|
|
840838
|
+
cliVersion: "4.93.0",
|
|
840808
840839
|
loginCommand: "fern auth login"
|
|
840809
840840
|
});
|
|
840810
840841
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -914810,7 +914841,7 @@ var CliContext = class _CliContext {
|
|
|
914810
914841
|
if (false) {
|
|
914811
914842
|
this.logger.error("CLI_VERSION is not defined");
|
|
914812
914843
|
}
|
|
914813
|
-
return "4.
|
|
914844
|
+
return "4.93.0";
|
|
914814
914845
|
}
|
|
914815
914846
|
getCliName() {
|
|
914816
914847
|
if (false) {
|
|
@@ -927903,7 +927934,7 @@ function computePreviewVersion({ previewId }) {
|
|
|
927903
927934
|
|
|
927904
927935
|
// src/commands/sdk-preview/getPreviewId.ts
|
|
927905
927936
|
var import_child_process13 = require("child_process");
|
|
927906
|
-
var
|
|
927937
|
+
var import_crypto9 = require("crypto");
|
|
927907
927938
|
var import_util71 = require("util");
|
|
927908
927939
|
var execAsync2 = (0, import_util71.promisify)(import_child_process13.exec);
|
|
927909
927940
|
var MAX_PREVIEW_ID_LENGTH = 40;
|
|
@@ -927927,7 +927958,7 @@ function sanitizeBranchName(branch) {
|
|
|
927927
927958
|
return branch.toLowerCase().replace(/[^a-z0-9-]/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "").slice(0, MAX_PREVIEW_ID_LENGTH).replace(/-$/, "");
|
|
927928
927959
|
}
|
|
927929
927960
|
function generateRandomId() {
|
|
927930
|
-
return (0,
|
|
927961
|
+
return (0, import_crypto9.randomBytes)(4).toString("hex");
|
|
927931
927962
|
}
|
|
927932
927963
|
|
|
927933
927964
|
// src/commands/sdk-preview/toPreviewPackageName.ts
|
|
@@ -933778,12 +933809,12 @@ async function collectFiles(baseDirectory, relativeBase) {
|
|
|
933778
933809
|
}
|
|
933779
933810
|
|
|
933780
933811
|
// src/commands/write-translation/hash-utils.ts
|
|
933781
|
-
var
|
|
933812
|
+
var import_crypto10 = require("crypto");
|
|
933782
933813
|
var import_fs41 = require("fs");
|
|
933783
933814
|
var import_promises185 = require("fs/promises");
|
|
933784
933815
|
var import_path100 = __toESM(require("path"), 1);
|
|
933785
933816
|
function calculateContentHash(content5) {
|
|
933786
|
-
return (0,
|
|
933817
|
+
return (0, import_crypto10.createHash)("sha256").update(content5, "utf-8").digest("hex");
|
|
933787
933818
|
}
|
|
933788
933819
|
async function loadHashMappings(translationsDirectory) {
|
|
933789
933820
|
const hashesFilePath = import_path100.default.join(translationsDirectory, "hashes");
|
package/package.json
CHANGED