@fern-api/fern-api-dev 4.48.1-9-g718efdd166b → 4.49.0-6-ge40fb1dc646
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 +302 -74
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -363452,9 +363452,9 @@ var require_diff3 = __commonJS({
|
|
|
363452
363452
|
}
|
|
363453
363453
|
});
|
|
363454
363454
|
|
|
363455
|
-
// ../../../node_modules/.pnpm/@fern-api+replay@0.
|
|
363455
|
+
// ../../../node_modules/.pnpm/@fern-api+replay@0.8.0/node_modules/@fern-api/replay/dist/index.cjs
|
|
363456
363456
|
var require_dist11 = __commonJS({
|
|
363457
|
-
"../../../node_modules/.pnpm/@fern-api+replay@0.
|
|
363457
|
+
"../../../node_modules/.pnpm/@fern-api+replay@0.8.0/node_modules/@fern-api/replay/dist/index.cjs"(exports2, module4) {
|
|
363458
363458
|
"use strict";
|
|
363459
363459
|
var __defProp4 = Object.defineProperty;
|
|
363460
363460
|
var __getOwnPropDesc4 = Object.getOwnPropertyDescriptor;
|
|
@@ -363579,6 +363579,9 @@ var require_dist11 = __commonJS({
|
|
|
363579
363579
|
return false;
|
|
363580
363580
|
}
|
|
363581
363581
|
}
|
|
363582
|
+
async getCommitBody(commitSha) {
|
|
363583
|
+
return this.exec(["log", "-1", "--format=%B", commitSha]);
|
|
363584
|
+
}
|
|
363582
363585
|
getRepoPath() {
|
|
363583
363586
|
return this.repoPath;
|
|
363584
363587
|
}
|
|
@@ -363601,6 +363604,9 @@ var require_dist11 = __commonJS({
|
|
|
363601
363604
|
forget: () => forget,
|
|
363602
363605
|
isGenerationCommit: () => isGenerationCommit,
|
|
363603
363606
|
isReplayCommit: () => isReplayCommit,
|
|
363607
|
+
isRevertCommit: () => isRevertCommit,
|
|
363608
|
+
parseRevertedMessage: () => parseRevertedMessage,
|
|
363609
|
+
parseRevertedSha: () => parseRevertedSha,
|
|
363604
363610
|
reset: () => reset2,
|
|
363605
363611
|
resolve: () => resolve13,
|
|
363606
363612
|
status: () => status,
|
|
@@ -363624,6 +363630,17 @@ var require_dist11 = __commonJS({
|
|
|
363624
363630
|
function isReplayCommit(commit) {
|
|
363625
363631
|
return commit.message.startsWith("[fern-replay]");
|
|
363626
363632
|
}
|
|
363633
|
+
function isRevertCommit(message) {
|
|
363634
|
+
return message.startsWith('Revert "');
|
|
363635
|
+
}
|
|
363636
|
+
function parseRevertedSha(fullBody) {
|
|
363637
|
+
const match3 = fullBody.match(/This reverts commit ([0-9a-f]{40})\./);
|
|
363638
|
+
return match3?.[1];
|
|
363639
|
+
}
|
|
363640
|
+
function parseRevertedMessage(subject) {
|
|
363641
|
+
const match3 = subject.match(/^Revert "(.+)"$/);
|
|
363642
|
+
return match3?.[1];
|
|
363643
|
+
}
|
|
363627
363644
|
var import_node_fs32 = require("fs");
|
|
363628
363645
|
var import_node_path41 = require("path");
|
|
363629
363646
|
var import_yaml18 = require_dist8();
|
|
@@ -363782,14 +363799,14 @@ var require_dist11 = __commonJS({
|
|
|
363782
363799
|
const lock = this.lockManager.read();
|
|
363783
363800
|
const lastGen = this.getLastGeneration(lock);
|
|
363784
363801
|
if (!lastGen) {
|
|
363785
|
-
return [];
|
|
363802
|
+
return { patches: [], revertedPatchIds: [] };
|
|
363786
363803
|
}
|
|
363787
363804
|
const exists2 = await this.git.commitExists(lastGen.commit_sha);
|
|
363788
363805
|
if (!exists2) {
|
|
363789
363806
|
this.warnings.push(
|
|
363790
363807
|
`Generation commit ${lastGen.commit_sha.slice(0, 7)} not found in git history. Skipping new patch detection. Existing lockfile patches will still be applied.`
|
|
363791
363808
|
);
|
|
363792
|
-
return [];
|
|
363809
|
+
return { patches: [], revertedPatchIds: [] };
|
|
363793
363810
|
}
|
|
363794
363811
|
const isAncestor = await this.git.isAncestor(lastGen.commit_sha, "HEAD");
|
|
363795
363812
|
if (!isAncestor) {
|
|
@@ -363803,7 +363820,7 @@ var require_dist11 = __commonJS({
|
|
|
363803
363820
|
this.sdkOutputDir
|
|
363804
363821
|
]);
|
|
363805
363822
|
if (!log4.trim()) {
|
|
363806
|
-
return [];
|
|
363823
|
+
return { patches: [], revertedPatchIds: [] };
|
|
363807
363824
|
}
|
|
363808
363825
|
const commits = this.parseGitLog(log4);
|
|
363809
363826
|
const newPatches = [];
|
|
@@ -363839,7 +363856,60 @@ var require_dist11 = __commonJS({
|
|
|
363839
363856
|
patch_content: patchContent
|
|
363840
363857
|
});
|
|
363841
363858
|
}
|
|
363842
|
-
|
|
363859
|
+
newPatches.reverse();
|
|
363860
|
+
const revertedPatchIdSet = /* @__PURE__ */ new Set();
|
|
363861
|
+
const revertIndicesToRemove = /* @__PURE__ */ new Set();
|
|
363862
|
+
for (let i11 = 0; i11 < newPatches.length; i11++) {
|
|
363863
|
+
const patch5 = newPatches[i11];
|
|
363864
|
+
if (!isRevertCommit(patch5.original_message)) continue;
|
|
363865
|
+
let body = "";
|
|
363866
|
+
try {
|
|
363867
|
+
body = await this.git.getCommitBody(patch5.original_commit);
|
|
363868
|
+
} catch {
|
|
363869
|
+
}
|
|
363870
|
+
const revertedSha = parseRevertedSha(body);
|
|
363871
|
+
const revertedMessage = parseRevertedMessage(patch5.original_message);
|
|
363872
|
+
let matchedExisting = false;
|
|
363873
|
+
if (revertedSha) {
|
|
363874
|
+
const existing = lock.patches.find((p10) => p10.original_commit === revertedSha);
|
|
363875
|
+
if (existing) {
|
|
363876
|
+
revertedPatchIdSet.add(existing.id);
|
|
363877
|
+
revertIndicesToRemove.add(i11);
|
|
363878
|
+
matchedExisting = true;
|
|
363879
|
+
}
|
|
363880
|
+
}
|
|
363881
|
+
if (!matchedExisting && revertedMessage) {
|
|
363882
|
+
const existing = lock.patches.find((p10) => p10.original_message === revertedMessage);
|
|
363883
|
+
if (existing) {
|
|
363884
|
+
revertedPatchIdSet.add(existing.id);
|
|
363885
|
+
revertIndicesToRemove.add(i11);
|
|
363886
|
+
matchedExisting = true;
|
|
363887
|
+
}
|
|
363888
|
+
}
|
|
363889
|
+
if (matchedExisting) continue;
|
|
363890
|
+
let matchedNew = false;
|
|
363891
|
+
if (revertedSha) {
|
|
363892
|
+
const idx = newPatches.findIndex(
|
|
363893
|
+
(p10, j16) => j16 !== i11 && !revertIndicesToRemove.has(j16) && p10.original_commit === revertedSha
|
|
363894
|
+
);
|
|
363895
|
+
if (idx !== -1) {
|
|
363896
|
+
revertIndicesToRemove.add(i11);
|
|
363897
|
+
revertIndicesToRemove.add(idx);
|
|
363898
|
+
matchedNew = true;
|
|
363899
|
+
}
|
|
363900
|
+
}
|
|
363901
|
+
if (!matchedNew && revertedMessage) {
|
|
363902
|
+
const idx = newPatches.findIndex(
|
|
363903
|
+
(p10, j16) => j16 !== i11 && !revertIndicesToRemove.has(j16) && p10.original_message === revertedMessage
|
|
363904
|
+
);
|
|
363905
|
+
if (idx !== -1) {
|
|
363906
|
+
revertIndicesToRemove.add(i11);
|
|
363907
|
+
revertIndicesToRemove.add(idx);
|
|
363908
|
+
}
|
|
363909
|
+
}
|
|
363910
|
+
}
|
|
363911
|
+
const filteredPatches = newPatches.filter((_16, i11) => !revertIndicesToRemove.has(i11));
|
|
363912
|
+
return { patches: filteredPatches, revertedPatchIds: [...revertedPatchIdSet] };
|
|
363843
363913
|
}
|
|
363844
363914
|
/**
|
|
363845
363915
|
* Compute content hash for deduplication.
|
|
@@ -363850,31 +363920,34 @@ var require_dist11 = __commonJS({
|
|
|
363850
363920
|
const normalized = patchContent.split("\n").filter((line) => !line.startsWith("From ") && !line.startsWith("index ") && !line.startsWith("Date: ")).join("\n");
|
|
363851
363921
|
return `sha256:${(0, import_node_crypto7.createHash)("sha256").update(normalized).digest("hex")}`;
|
|
363852
363922
|
}
|
|
363853
|
-
/**
|
|
363923
|
+
/**
|
|
363924
|
+
* Detect patches via tree diff for non-linear history. Returns a composite patch.
|
|
363925
|
+
* Revert reconciliation is skipped here because tree-diff produces a single composite
|
|
363926
|
+
* patch from the aggregate diff — individual revert commits are not distinguishable.
|
|
363927
|
+
*/
|
|
363854
363928
|
async detectPatchesViaTreeDiff(lastGen) {
|
|
363855
363929
|
const filesOutput = await this.git.exec(["diff", "--name-only", lastGen.commit_sha, "HEAD"]);
|
|
363856
363930
|
const files = filesOutput.trim().split("\n").filter(Boolean).filter((f10) => !INFRASTRUCTURE_FILES.has(f10)).filter((f10) => !f10.startsWith(".fern/"));
|
|
363857
|
-
if (files.length === 0) return [];
|
|
363931
|
+
if (files.length === 0) return { patches: [], revertedPatchIds: [] };
|
|
363858
363932
|
const diff2 = await this.git.exec(["diff", lastGen.commit_sha, "HEAD", "--", ...files]);
|
|
363859
|
-
if (!diff2.trim()) return [];
|
|
363933
|
+
if (!diff2.trim()) return { patches: [], revertedPatchIds: [] };
|
|
363860
363934
|
const contentHash = this.computeContentHash(diff2);
|
|
363861
363935
|
const lock = this.lockManager.read();
|
|
363862
363936
|
if (lock.patches.some((p10) => p10.content_hash === contentHash)) {
|
|
363863
|
-
return [];
|
|
363937
|
+
return { patches: [], revertedPatchIds: [] };
|
|
363864
363938
|
}
|
|
363865
363939
|
const headSha = (await this.git.exec(["rev-parse", "HEAD"])).trim();
|
|
363866
|
-
|
|
363867
|
-
{
|
|
363868
|
-
|
|
363869
|
-
|
|
363870
|
-
|
|
363871
|
-
|
|
363872
|
-
|
|
363873
|
-
|
|
363874
|
-
|
|
363875
|
-
|
|
363876
|
-
|
|
363877
|
-
];
|
|
363940
|
+
const compositePatch = {
|
|
363941
|
+
id: `patch-composite-${headSha.slice(0, 8)}`,
|
|
363942
|
+
content_hash: contentHash,
|
|
363943
|
+
original_commit: headSha,
|
|
363944
|
+
original_message: "Customer customizations (composite)",
|
|
363945
|
+
original_author: "composite",
|
|
363946
|
+
base_generation: lastGen.commit_sha,
|
|
363947
|
+
files,
|
|
363948
|
+
patch_content: diff2
|
|
363949
|
+
};
|
|
363950
|
+
return { patches: [compositePatch], revertedPatchIds: [] };
|
|
363878
363951
|
}
|
|
363879
363952
|
parseGitLog(log4) {
|
|
363880
363953
|
return log4.trim().split("\n").map((line) => {
|
|
@@ -364468,6 +364541,32 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364468
364541
|
var import_node_path310 = require("path");
|
|
364469
364542
|
var import_minimatch22 = require_commonjs3();
|
|
364470
364543
|
init_GitClient();
|
|
364544
|
+
function stripConflictMarkers(content5) {
|
|
364545
|
+
const lines = content5.split("\n");
|
|
364546
|
+
const result = [];
|
|
364547
|
+
let inConflict = false;
|
|
364548
|
+
let inOurs = false;
|
|
364549
|
+
for (const line of lines) {
|
|
364550
|
+
if (line.startsWith("<<<<<<< ")) {
|
|
364551
|
+
inConflict = true;
|
|
364552
|
+
inOurs = true;
|
|
364553
|
+
continue;
|
|
364554
|
+
}
|
|
364555
|
+
if (inConflict && line === "=======") {
|
|
364556
|
+
inOurs = false;
|
|
364557
|
+
continue;
|
|
364558
|
+
}
|
|
364559
|
+
if (inConflict && line.startsWith(">>>>>>> ")) {
|
|
364560
|
+
inConflict = false;
|
|
364561
|
+
inOurs = false;
|
|
364562
|
+
continue;
|
|
364563
|
+
}
|
|
364564
|
+
if (!inConflict || inOurs) {
|
|
364565
|
+
result.push(line);
|
|
364566
|
+
}
|
|
364567
|
+
}
|
|
364568
|
+
return result.join("\n");
|
|
364569
|
+
}
|
|
364471
364570
|
var ReplayService = class {
|
|
364472
364571
|
git;
|
|
364473
364572
|
detector;
|
|
@@ -364535,7 +364634,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364535
364634
|
}
|
|
364536
364635
|
this.lockManager.save();
|
|
364537
364636
|
try {
|
|
364538
|
-
const redetectedPatches = await this.detector.detectNewPatches();
|
|
364637
|
+
const { patches: redetectedPatches } = await this.detector.detectNewPatches();
|
|
364539
364638
|
if (redetectedPatches.length > 0) {
|
|
364540
364639
|
const redetectedFiles = new Set(redetectedPatches.flatMap((p10) => p10.files));
|
|
364541
364640
|
const currentPatches = this.lockManager.getPatches();
|
|
@@ -364626,7 +364725,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364626
364725
|
};
|
|
364627
364726
|
}
|
|
364628
364727
|
async handleNoPatchesRegeneration(options2) {
|
|
364629
|
-
const newPatches = await this.detector.detectNewPatches();
|
|
364728
|
+
const { patches: newPatches, revertedPatchIds } = await this.detector.detectNewPatches();
|
|
364630
364729
|
const warnings = [...this.detector.warnings];
|
|
364631
364730
|
if (options2?.dryRun) {
|
|
364632
364731
|
return {
|
|
@@ -364635,11 +364734,18 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364635
364734
|
patchesApplied: 0,
|
|
364636
364735
|
patchesWithConflicts: 0,
|
|
364637
364736
|
patchesSkipped: 0,
|
|
364737
|
+
patchesReverted: revertedPatchIds.length,
|
|
364638
364738
|
conflicts: [],
|
|
364639
364739
|
wouldApply: newPatches,
|
|
364640
364740
|
warnings: warnings.length > 0 ? warnings : void 0
|
|
364641
364741
|
};
|
|
364642
364742
|
}
|
|
364743
|
+
for (const id2 of revertedPatchIds) {
|
|
364744
|
+
try {
|
|
364745
|
+
this.lockManager.removePatch(id2);
|
|
364746
|
+
} catch {
|
|
364747
|
+
}
|
|
364748
|
+
}
|
|
364643
364749
|
const commitOpts = options2 ? {
|
|
364644
364750
|
cliVersion: options2.cliVersion ?? "unknown",
|
|
364645
364751
|
generatorVersions: options2.generatorVersions ?? {},
|
|
@@ -364673,12 +364779,12 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364673
364779
|
await this.committer.stageAll();
|
|
364674
364780
|
}
|
|
364675
364781
|
}
|
|
364676
|
-
return this.buildReport("no-patches", newPatches, results, options2, warnings, rebaseCounts);
|
|
364782
|
+
return this.buildReport("no-patches", newPatches, results, options2, warnings, rebaseCounts, void 0, revertedPatchIds.length);
|
|
364677
364783
|
}
|
|
364678
364784
|
async handleNormalRegeneration(options2) {
|
|
364679
364785
|
if (options2?.dryRun) {
|
|
364680
364786
|
const existingPatches2 = this.lockManager.getPatches();
|
|
364681
|
-
const newPatches2 = await this.detector.detectNewPatches();
|
|
364787
|
+
const { patches: newPatches2, revertedPatchIds: dryRunReverted } = await this.detector.detectNewPatches();
|
|
364682
364788
|
const warnings2 = [...this.detector.warnings];
|
|
364683
364789
|
const allPatches2 = [...existingPatches2, ...newPatches2];
|
|
364684
364790
|
return {
|
|
@@ -364687,13 +364793,19 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364687
364793
|
patchesApplied: 0,
|
|
364688
364794
|
patchesWithConflicts: 0,
|
|
364689
364795
|
patchesSkipped: 0,
|
|
364796
|
+
patchesReverted: dryRunReverted.length,
|
|
364690
364797
|
conflicts: [],
|
|
364691
364798
|
wouldApply: allPatches2,
|
|
364692
364799
|
warnings: warnings2.length > 0 ? warnings2 : void 0
|
|
364693
364800
|
};
|
|
364694
364801
|
}
|
|
364695
364802
|
let existingPatches = this.lockManager.getPatches();
|
|
364803
|
+
const preRebasePatchIds = new Set(existingPatches.map((p10) => p10.id));
|
|
364696
364804
|
const preRebaseCounts = await this.preGenerationRebase(existingPatches);
|
|
364805
|
+
const postRebasePatchIds = new Set(this.lockManager.getPatches().map((p10) => p10.id));
|
|
364806
|
+
const removedByPreRebase = existingPatches.filter(
|
|
364807
|
+
(p10) => preRebasePatchIds.has(p10.id) && !postRebasePatchIds.has(p10.id)
|
|
364808
|
+
);
|
|
364697
364809
|
existingPatches = this.lockManager.getPatches();
|
|
364698
364810
|
const seenHashes = /* @__PURE__ */ new Set();
|
|
364699
364811
|
for (const p10 of existingPatches) {
|
|
@@ -364704,8 +364816,28 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364704
364816
|
}
|
|
364705
364817
|
}
|
|
364706
364818
|
existingPatches = this.lockManager.getPatches();
|
|
364707
|
-
|
|
364819
|
+
let { patches: newPatches, revertedPatchIds } = await this.detector.detectNewPatches();
|
|
364708
364820
|
const warnings = [...this.detector.warnings];
|
|
364821
|
+
if (removedByPreRebase.length > 0) {
|
|
364822
|
+
const removedOriginalCommits = new Set(removedByPreRebase.map((p10) => p10.original_commit));
|
|
364823
|
+
const removedOriginalMessages = new Set(removedByPreRebase.map((p10) => p10.original_message));
|
|
364824
|
+
newPatches = newPatches.filter((p10) => {
|
|
364825
|
+
if (removedOriginalCommits.has(p10.original_commit)) return false;
|
|
364826
|
+
if (isRevertCommit(p10.original_message)) {
|
|
364827
|
+
const revertedMsg = parseRevertedMessage(p10.original_message);
|
|
364828
|
+
if (revertedMsg && removedOriginalMessages.has(revertedMsg)) return false;
|
|
364829
|
+
}
|
|
364830
|
+
return true;
|
|
364831
|
+
});
|
|
364832
|
+
}
|
|
364833
|
+
for (const id2 of revertedPatchIds) {
|
|
364834
|
+
try {
|
|
364835
|
+
this.lockManager.removePatch(id2);
|
|
364836
|
+
} catch {
|
|
364837
|
+
}
|
|
364838
|
+
}
|
|
364839
|
+
const revertedSet = new Set(revertedPatchIds);
|
|
364840
|
+
existingPatches = existingPatches.filter((p10) => !revertedSet.has(p10.id));
|
|
364709
364841
|
const allPatches = [...existingPatches, ...newPatches];
|
|
364710
364842
|
const commitOpts = options2 ? {
|
|
364711
364843
|
cliVersion: options2.cliVersion ?? "unknown",
|
|
@@ -364750,7 +364882,8 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364750
364882
|
options2,
|
|
364751
364883
|
warnings,
|
|
364752
364884
|
rebaseCounts,
|
|
364753
|
-
preRebaseCounts
|
|
364885
|
+
preRebaseCounts,
|
|
364886
|
+
revertedPatchIds.length
|
|
364754
364887
|
);
|
|
364755
364888
|
}
|
|
364756
364889
|
/**
|
|
@@ -364943,36 +365076,6 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364943
365076
|
}
|
|
364944
365077
|
return { conflictResolved, conflictAbsorbed, contentRefreshed };
|
|
364945
365078
|
}
|
|
364946
|
-
/**
|
|
364947
|
-
* Strip conflict markers from file content, keeping the OURS (Generated) side.
|
|
364948
|
-
* Preserves clean patches' non-conflicting changes on shared files.
|
|
364949
|
-
*/
|
|
364950
|
-
stripConflictMarkers(content5) {
|
|
364951
|
-
const lines = content5.split("\n");
|
|
364952
|
-
const result = [];
|
|
364953
|
-
let inConflict = false;
|
|
364954
|
-
let inOurs = false;
|
|
364955
|
-
for (const line of lines) {
|
|
364956
|
-
if (line.startsWith("<<<<<<< ")) {
|
|
364957
|
-
inConflict = true;
|
|
364958
|
-
inOurs = true;
|
|
364959
|
-
continue;
|
|
364960
|
-
}
|
|
364961
|
-
if (inConflict && line === "=======") {
|
|
364962
|
-
inOurs = false;
|
|
364963
|
-
continue;
|
|
364964
|
-
}
|
|
364965
|
-
if (inConflict && line.startsWith(">>>>>>> ")) {
|
|
364966
|
-
inConflict = false;
|
|
364967
|
-
inOurs = false;
|
|
364968
|
-
continue;
|
|
364969
|
-
}
|
|
364970
|
-
if (!inConflict || inOurs) {
|
|
364971
|
-
result.push(line);
|
|
364972
|
-
}
|
|
364973
|
-
}
|
|
364974
|
-
return result.join("\n");
|
|
364975
|
-
}
|
|
364976
365079
|
/**
|
|
364977
365080
|
* After applyPatches(), strip conflict markers from conflicting files
|
|
364978
365081
|
* so only clean content is committed. Keeps the Generated (OURS) side.
|
|
@@ -364985,7 +365088,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364985
365088
|
const filePath = (0, import_node_path310.join)(this.outputDir, fileResult.file);
|
|
364986
365089
|
try {
|
|
364987
365090
|
const content5 = (0, import_node_fs210.readFileSync)(filePath, "utf-8");
|
|
364988
|
-
const stripped =
|
|
365091
|
+
const stripped = stripConflictMarkers(content5);
|
|
364989
365092
|
(0, import_node_fs210.writeFileSync)(filePath, stripped);
|
|
364990
365093
|
} catch {
|
|
364991
365094
|
}
|
|
@@ -364997,7 +365100,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
364997
365100
|
if (!(0, import_node_fs210.existsSync)(fernignorePath)) return [];
|
|
364998
365101
|
return (0, import_node_fs210.readFileSync)(fernignorePath, "utf-8").split("\n").map((line) => line.trim()).filter((line) => line && !line.startsWith("#"));
|
|
364999
365102
|
}
|
|
365000
|
-
buildReport(flow4, patches, results, options2, warnings, rebaseCounts, preRebaseCounts) {
|
|
365103
|
+
buildReport(flow4, patches, results, options2, warnings, rebaseCounts, preRebaseCounts, patchesReverted) {
|
|
365001
365104
|
const conflictResults = results.filter((r23) => r23.status === "conflict");
|
|
365002
365105
|
const conflictDetails = conflictResults.map((r23) => {
|
|
365003
365106
|
const conflictFiles = r23.fileResults?.filter((f10) => f10.status === "conflict") ?? [];
|
|
@@ -365022,6 +365125,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
365022
365125
|
patchesRepointed: rebaseCounts && rebaseCounts.repointed > 0 ? rebaseCounts.repointed : void 0,
|
|
365023
365126
|
patchesContentRebased: rebaseCounts && rebaseCounts.contentRebased > 0 ? rebaseCounts.contentRebased : void 0,
|
|
365024
365127
|
patchesKeptAsUserOwned: rebaseCounts && rebaseCounts.keptAsUserOwned > 0 ? rebaseCounts.keptAsUserOwned : void 0,
|
|
365128
|
+
patchesReverted: patchesReverted && patchesReverted > 0 ? patchesReverted : void 0,
|
|
365025
365129
|
patchesConflictResolved: preRebaseCounts && preRebaseCounts.conflictResolved + preRebaseCounts.conflictAbsorbed > 0 ? preRebaseCounts.conflictResolved + preRebaseCounts.conflictAbsorbed : void 0,
|
|
365026
365130
|
patchesRefreshed: preRebaseCounts && preRebaseCounts.contentRefreshed > 0 ? preRebaseCounts.contentRefreshed : void 0,
|
|
365027
365131
|
conflicts: conflictResults.flatMap((r23) => r23.fileResults?.filter((f10) => f10.status === "conflict") ?? []),
|
|
@@ -365066,7 +365170,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
365066
365170
|
async analyzeMigration() {
|
|
365067
365171
|
const patterns = this.readFernignorePatterns();
|
|
365068
365172
|
const detector = new ReplayDetector(this.git, this.lockManager, this.outputDir);
|
|
365069
|
-
const patches = await detector.detectNewPatches();
|
|
365173
|
+
const { patches } = await detector.detectNewPatches();
|
|
365070
365174
|
const trackedByBoth = [];
|
|
365071
365175
|
const fernignoreOnly = [];
|
|
365072
365176
|
const commitsOnly = [];
|
|
@@ -365191,7 +365295,7 @@ CLI Version: ${options2.cliVersion}`;
|
|
|
365191
365295
|
async migrate() {
|
|
365192
365296
|
const analysis = await this.analyzeMigration();
|
|
365193
365297
|
const detector = new ReplayDetector(this.git, this.lockManager, this.outputDir);
|
|
365194
|
-
const patches = await detector.detectNewPatches();
|
|
365298
|
+
const { patches } = await detector.detectNewPatches();
|
|
365195
365299
|
const warnings = [];
|
|
365196
365300
|
let patchesCreated = 0;
|
|
365197
365301
|
for (const patch5 of patches) {
|
|
@@ -463672,6 +463776,7 @@ __export(schemas_exports2, {
|
|
|
463672
463776
|
UnionDiscriminatorContext: () => UnionDiscriminatorContext,
|
|
463673
463777
|
WebSocketOrigin: () => WebSocketOrigin,
|
|
463674
463778
|
WebhookMethodSchema: () => WebhookMethodSchema,
|
|
463779
|
+
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema,
|
|
463675
463780
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema,
|
|
463676
463781
|
WebhookSignatureAlgorithmSchema: () => WebhookSignatureAlgorithmSchema,
|
|
463677
463782
|
WebhookSignatureEncodingSchema: () => WebhookSignatureEncodingSchema,
|
|
@@ -463828,6 +463933,7 @@ var webhooks_exports = {};
|
|
|
463828
463933
|
__export(webhooks_exports, {
|
|
463829
463934
|
AsymmetricAlgorithmSchema: () => AsymmetricAlgorithmSchema,
|
|
463830
463935
|
WebhookMethodSchema: () => WebhookMethodSchema,
|
|
463936
|
+
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema,
|
|
463831
463937
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema,
|
|
463832
463938
|
WebhookSignatureAlgorithmSchema: () => WebhookSignatureAlgorithmSchema,
|
|
463833
463939
|
WebhookSignatureEncodingSchema: () => WebhookSignatureEncodingSchema,
|
|
@@ -463851,6 +463957,11 @@ var WebhookMethodSchema = {
|
|
|
463851
463957
|
Get: "GET"
|
|
463852
463958
|
};
|
|
463853
463959
|
|
|
463960
|
+
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookPayloadBodySortSchema.js
|
|
463961
|
+
var WebhookPayloadBodySortSchema = {
|
|
463962
|
+
Alphabetical: "alphabetical"
|
|
463963
|
+
};
|
|
463964
|
+
|
|
463854
463965
|
// ../fern-definition/schema/lib/schemas/api/resources/webhooks/types/WebhookPayloadComponentSchema.js
|
|
463855
463966
|
var WebhookPayloadComponentSchema = {
|
|
463856
463967
|
Body: "body",
|
|
@@ -464058,6 +464169,7 @@ __export(serialization_exports, {
|
|
|
464058
464169
|
WebSocketOrigin: () => WebSocketOrigin2,
|
|
464059
464170
|
WebhookInlinedPayloadSchema: () => WebhookInlinedPayloadSchema,
|
|
464060
464171
|
WebhookMethodSchema: () => WebhookMethodSchema2,
|
|
464172
|
+
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema2,
|
|
464061
464173
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema2,
|
|
464062
464174
|
WebhookPayloadFormatSchema: () => WebhookPayloadFormatSchema,
|
|
464063
464175
|
WebhookPayloadSchema: () => WebhookPayloadSchema,
|
|
@@ -466478,13 +466590,17 @@ var AsymmetricSignatureSchema = schemas_exports.object({
|
|
|
466478
466590
|
timestamp: WebhookTimestampSchema.optional()
|
|
466479
466591
|
});
|
|
466480
466592
|
|
|
466593
|
+
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadBodySortSchema.js
|
|
466594
|
+
var WebhookPayloadBodySortSchema2 = schemas_exports.enum_(["alphabetical"]);
|
|
466595
|
+
|
|
466481
466596
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadComponentSchema.js
|
|
466482
466597
|
var WebhookPayloadComponentSchema2 = schemas_exports.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
466483
466598
|
|
|
466484
466599
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookPayloadFormatSchema.js
|
|
466485
466600
|
var WebhookPayloadFormatSchema = schemas_exports.object({
|
|
466486
466601
|
components: schemas_exports.list(WebhookPayloadComponentSchema2),
|
|
466487
|
-
delimiter: schemas_exports.string().optional()
|
|
466602
|
+
delimiter: schemas_exports.string().optional(),
|
|
466603
|
+
"body-sort": WebhookPayloadBodySortSchema2.optional()
|
|
466488
466604
|
});
|
|
466489
466605
|
|
|
466490
466606
|
// ../fern-definition/schema/lib/schemas/serialization/resources/webhooks/types/WebhookSignatureAlgorithmSchema.js
|
|
@@ -466826,6 +466942,7 @@ __export(webhooks_exports2, {
|
|
|
466826
466942
|
HmacSignatureSchema: () => HmacSignatureSchema,
|
|
466827
466943
|
WebhookInlinedPayloadSchema: () => WebhookInlinedPayloadSchema,
|
|
466828
466944
|
WebhookMethodSchema: () => WebhookMethodSchema2,
|
|
466945
|
+
WebhookPayloadBodySortSchema: () => WebhookPayloadBodySortSchema2,
|
|
466829
466946
|
WebhookPayloadComponentSchema: () => WebhookPayloadComponentSchema2,
|
|
466830
466947
|
WebhookPayloadFormatSchema: () => WebhookPayloadFormatSchema,
|
|
466831
466948
|
WebhookPayloadSchema: () => WebhookPayloadSchema,
|
|
@@ -467056,6 +467173,7 @@ __export(api_exports, {
|
|
|
467056
467173
|
WebSocketMessageOrigin: () => WebSocketMessageOrigin,
|
|
467057
467174
|
WebhookHttpMethod: () => WebhookHttpMethod,
|
|
467058
467175
|
WebhookPayload: () => WebhookPayload,
|
|
467176
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort,
|
|
467059
467177
|
WebhookPayloadComponent: () => WebhookPayloadComponent,
|
|
467060
467178
|
WebhookSignatureEncoding: () => WebhookSignatureEncoding,
|
|
467061
467179
|
WebhookSignatureVerification: () => WebhookSignatureVerification,
|
|
@@ -471314,6 +471432,7 @@ __export(webhooks_exports3, {
|
|
|
471314
471432
|
HmacAlgorithm: () => HmacAlgorithm,
|
|
471315
471433
|
WebhookHttpMethod: () => WebhookHttpMethod,
|
|
471316
471434
|
WebhookPayload: () => WebhookPayload,
|
|
471435
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort,
|
|
471317
471436
|
WebhookPayloadComponent: () => WebhookPayloadComponent,
|
|
471318
471437
|
WebhookSignatureEncoding: () => WebhookSignatureEncoding,
|
|
471319
471438
|
WebhookSignatureVerification: () => WebhookSignatureVerification,
|
|
@@ -471462,6 +471581,22 @@ var WebhookPayload = {
|
|
|
471462
471581
|
}
|
|
471463
471582
|
};
|
|
471464
471583
|
|
|
471584
|
+
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookPayloadBodySort.js
|
|
471585
|
+
var WebhookPayloadBodySortValues = {
|
|
471586
|
+
Alphabetical: "ALPHABETICAL"
|
|
471587
|
+
};
|
|
471588
|
+
var WebhookPayloadBodySort = {
|
|
471589
|
+
...WebhookPayloadBodySortValues,
|
|
471590
|
+
_visit: (value, visitor) => {
|
|
471591
|
+
switch (value) {
|
|
471592
|
+
case WebhookPayloadBodySort.Alphabetical:
|
|
471593
|
+
return visitor.alphabetical();
|
|
471594
|
+
default:
|
|
471595
|
+
return visitor._other();
|
|
471596
|
+
}
|
|
471597
|
+
}
|
|
471598
|
+
};
|
|
471599
|
+
|
|
471465
471600
|
// ../../ir-sdk/lib/sdk/api/resources/webhooks/types/WebhookPayloadComponent.js
|
|
471466
471601
|
var WebhookPayloadComponentValues = {
|
|
471467
471602
|
/**
|
|
@@ -471972,6 +472107,7 @@ __export(serialization_exports2, {
|
|
|
471972
472107
|
WebhookId: () => WebhookId,
|
|
471973
472108
|
WebhookName: () => WebhookName,
|
|
471974
472109
|
WebhookPayload: () => WebhookPayload2,
|
|
472110
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort2,
|
|
471975
472111
|
WebhookPayloadComponent: () => WebhookPayloadComponent2,
|
|
471976
472112
|
WebhookPayloadFormat: () => WebhookPayloadFormat,
|
|
471977
472113
|
WebhookPayloadReference: () => WebhookPayloadReference,
|
|
@@ -477375,13 +477511,17 @@ var AsymmetricKeySignatureVerification = schemas_exports3.objectWithoutOptionalP
|
|
|
477375
477511
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/HmacAlgorithm.js
|
|
477376
477512
|
var HmacAlgorithm2 = schemas_exports3.enum_(["SHA256", "SHA1", "SHA384", "SHA512"]);
|
|
477377
477513
|
|
|
477514
|
+
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadBodySort.js
|
|
477515
|
+
var WebhookPayloadBodySort2 = schemas_exports3.enum_(["ALPHABETICAL"]);
|
|
477516
|
+
|
|
477378
477517
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadComponent.js
|
|
477379
477518
|
var WebhookPayloadComponent2 = schemas_exports3.enum_(["BODY", "TIMESTAMP", "NOTIFICATION_URL", "MESSAGE_ID"]);
|
|
477380
477519
|
|
|
477381
477520
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/WebhookPayloadFormat.js
|
|
477382
477521
|
var WebhookPayloadFormat = schemas_exports3.objectWithoutOptionalProperties({
|
|
477383
477522
|
components: schemas_exports3.list(WebhookPayloadComponent2),
|
|
477384
|
-
delimiter: schemas_exports3.string()
|
|
477523
|
+
delimiter: schemas_exports3.string(),
|
|
477524
|
+
bodySort: WebhookPayloadBodySort2.optional()
|
|
477385
477525
|
});
|
|
477386
477526
|
|
|
477387
477527
|
// ../../ir-sdk/lib/sdk/serialization/resources/webhooks/types/HmacSignatureVerification.js
|
|
@@ -478227,6 +478367,7 @@ __export(webhooks_exports4, {
|
|
|
478227
478367
|
WebhookHttpMethod: () => WebhookHttpMethod2,
|
|
478228
478368
|
WebhookName: () => WebhookName,
|
|
478229
478369
|
WebhookPayload: () => WebhookPayload2,
|
|
478370
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort2,
|
|
478230
478371
|
WebhookPayloadComponent: () => WebhookPayloadComponent2,
|
|
478231
478372
|
WebhookPayloadFormat: () => WebhookPayloadFormat,
|
|
478232
478373
|
WebhookPayloadReference: () => WebhookPayloadReference,
|
|
@@ -502879,6 +503020,7 @@ __export(finalIr_exports, {
|
|
|
502879
503020
|
Schema: () => Schema,
|
|
502880
503021
|
SupportedSdkLanguage: () => SupportedSdkLanguage3,
|
|
502881
503022
|
WebhookHttpMethod: () => WebhookHttpMethod3,
|
|
503023
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort3,
|
|
502882
503024
|
WebhookPayloadComponent: () => WebhookPayloadComponent3,
|
|
502883
503025
|
WebhookSignatureAlgorithm: () => WebhookSignatureAlgorithm,
|
|
502884
503026
|
WebhookSignatureEncoding: () => WebhookSignatureEncoding3,
|
|
@@ -503780,6 +503922,22 @@ var WebhookHttpMethod3 = {
|
|
|
503780
503922
|
}
|
|
503781
503923
|
};
|
|
503782
503924
|
|
|
503925
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookPayloadBodySort.js
|
|
503926
|
+
var WebhookPayloadBodySortValues2 = {
|
|
503927
|
+
Alphabetical: "alphabetical"
|
|
503928
|
+
};
|
|
503929
|
+
var WebhookPayloadBodySort3 = {
|
|
503930
|
+
...WebhookPayloadBodySortValues2,
|
|
503931
|
+
_visit: (value, visitor) => {
|
|
503932
|
+
switch (value) {
|
|
503933
|
+
case WebhookPayloadBodySort3.Alphabetical:
|
|
503934
|
+
return visitor.alphabetical();
|
|
503935
|
+
default:
|
|
503936
|
+
return visitor._other();
|
|
503937
|
+
}
|
|
503938
|
+
}
|
|
503939
|
+
};
|
|
503940
|
+
|
|
503783
503941
|
// ../api-importers/openapi/openapi-ir/lib/sdk/api/resources/finalIr/types/WebhookPayloadComponent.js
|
|
503784
503942
|
var WebhookPayloadComponentValues2 = {
|
|
503785
503943
|
Body: "body",
|
|
@@ -504527,6 +504685,7 @@ __export(serialization_exports5, {
|
|
|
504527
504685
|
Webhook: () => Webhook2,
|
|
504528
504686
|
WebhookExampleCall: () => WebhookExampleCall,
|
|
504529
504687
|
WebhookHttpMethod: () => WebhookHttpMethod4,
|
|
504688
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort4,
|
|
504530
504689
|
WebhookPayloadComponent: () => WebhookPayloadComponent4,
|
|
504531
504690
|
WebhookPayloadFormat: () => WebhookPayloadFormat2,
|
|
504532
504691
|
WebhookSignatureAlgorithm: () => WebhookSignatureAlgorithm2,
|
|
@@ -506534,6 +506693,7 @@ __export(finalIr_exports2, {
|
|
|
506534
506693
|
Webhook: () => Webhook2,
|
|
506535
506694
|
WebhookExampleCall: () => WebhookExampleCall,
|
|
506536
506695
|
WebhookHttpMethod: () => WebhookHttpMethod4,
|
|
506696
|
+
WebhookPayloadBodySort: () => WebhookPayloadBodySort4,
|
|
506537
506697
|
WebhookPayloadComponent: () => WebhookPayloadComponent4,
|
|
506538
506698
|
WebhookPayloadFormat: () => WebhookPayloadFormat2,
|
|
506539
506699
|
WebhookSignatureAlgorithm: () => WebhookSignatureAlgorithm2,
|
|
@@ -507070,13 +507230,17 @@ var GlobalHeader = schemas_exports9.objectWithoutOptionalProperties({
|
|
|
507070
507230
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/GlobalSecurity.js
|
|
507071
507231
|
var GlobalSecurity = schemas_exports9.list(schemas_exports9.record(SecuritySchemeId, schemas_exports9.list(schemas_exports9.string())));
|
|
507072
507232
|
|
|
507233
|
+
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadBodySort.js
|
|
507234
|
+
var WebhookPayloadBodySort4 = schemas_exports9.enum_(["alphabetical"]);
|
|
507235
|
+
|
|
507073
507236
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadComponent.js
|
|
507074
507237
|
var WebhookPayloadComponent4 = schemas_exports9.enum_(["body", "timestamp", "notification-url", "message-id"]);
|
|
507075
507238
|
|
|
507076
507239
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookPayloadFormat.js
|
|
507077
507240
|
var WebhookPayloadFormat2 = schemas_exports9.objectWithoutOptionalProperties({
|
|
507078
507241
|
components: schemas_exports9.list(WebhookPayloadComponent4),
|
|
507079
|
-
delimiter: schemas_exports9.string().optional()
|
|
507242
|
+
delimiter: schemas_exports9.string().optional(),
|
|
507243
|
+
bodySort: WebhookPayloadBodySort4.optional()
|
|
507080
507244
|
});
|
|
507081
507245
|
|
|
507082
507246
|
// ../api-importers/openapi/openapi-ir/lib/sdk/serialization/resources/finalIr/types/WebhookSignatureAlgorithm.js
|
|
@@ -512779,9 +512943,21 @@ function convertPayloadFormat(payloadFormat) {
|
|
|
512779
512943
|
}
|
|
512780
512944
|
return {
|
|
512781
512945
|
components: payloadFormat.components.map(convertPayloadComponent),
|
|
512782
|
-
delimiter: payloadFormat.delimiter
|
|
512946
|
+
delimiter: payloadFormat.delimiter,
|
|
512947
|
+
"body-sort": convertBodySort(payloadFormat.bodySort)
|
|
512783
512948
|
};
|
|
512784
512949
|
}
|
|
512950
|
+
function convertBodySort(bodySort) {
|
|
512951
|
+
if (bodySort == null) {
|
|
512952
|
+
return void 0;
|
|
512953
|
+
}
|
|
512954
|
+
switch (bodySort) {
|
|
512955
|
+
case "alphabetical":
|
|
512956
|
+
return "alphabetical";
|
|
512957
|
+
default:
|
|
512958
|
+
return void 0;
|
|
512959
|
+
}
|
|
512960
|
+
}
|
|
512785
512961
|
function convertPayloadComponent(component) {
|
|
512786
512962
|
switch (component) {
|
|
512787
512963
|
case "body":
|
|
@@ -530516,9 +530692,19 @@ function convertPayloadFormat2(payloadFormat) {
|
|
|
530516
530692
|
return finalIr_exports.WebhookPayloadComponent.MessageId;
|
|
530517
530693
|
}
|
|
530518
530694
|
}),
|
|
530519
|
-
delimiter: payloadFormat.delimiter
|
|
530695
|
+
delimiter: payloadFormat.delimiter,
|
|
530696
|
+
bodySort: convertBodySort2(payloadFormat["body-sort"])
|
|
530520
530697
|
};
|
|
530521
530698
|
}
|
|
530699
|
+
function convertBodySort2(bodySort) {
|
|
530700
|
+
if (bodySort == null) {
|
|
530701
|
+
return void 0;
|
|
530702
|
+
}
|
|
530703
|
+
switch (bodySort) {
|
|
530704
|
+
case "alphabetical":
|
|
530705
|
+
return finalIr_exports.WebhookPayloadBodySort.Alphabetical;
|
|
530706
|
+
}
|
|
530707
|
+
}
|
|
530522
530708
|
function convertAlgorithm(algorithm) {
|
|
530523
530709
|
if (algorithm == null) {
|
|
530524
530710
|
return void 0;
|
|
@@ -547911,14 +548097,24 @@ function convertPayloadFormat3(payloadFormat) {
|
|
|
547911
548097
|
if (payloadFormat == null) {
|
|
547912
548098
|
return {
|
|
547913
548099
|
components: [WebhookPayloadComponent.Body],
|
|
547914
|
-
delimiter: ""
|
|
548100
|
+
delimiter: "",
|
|
548101
|
+
bodySort: void 0
|
|
547915
548102
|
};
|
|
547916
548103
|
}
|
|
547917
548104
|
return {
|
|
547918
548105
|
components: payloadFormat.components.map(convertPayloadComponent2),
|
|
547919
|
-
delimiter: payloadFormat.delimiter ?? ""
|
|
548106
|
+
delimiter: payloadFormat.delimiter ?? "",
|
|
548107
|
+
bodySort: convertBodySort3(payloadFormat["body-sort"])
|
|
547920
548108
|
};
|
|
547921
548109
|
}
|
|
548110
|
+
function convertBodySort3(bodySort) {
|
|
548111
|
+
switch (bodySort) {
|
|
548112
|
+
case "alphabetical":
|
|
548113
|
+
return WebhookPayloadBodySort.Alphabetical;
|
|
548114
|
+
case void 0:
|
|
548115
|
+
return void 0;
|
|
548116
|
+
}
|
|
548117
|
+
}
|
|
547922
548118
|
function convertPayloadComponent2(component) {
|
|
547923
548119
|
switch (component) {
|
|
547924
548120
|
case "body":
|
|
@@ -574780,6 +574976,12 @@ var definitions2 = {
|
|
|
574780
574976
|
"message-id"
|
|
574781
574977
|
]
|
|
574782
574978
|
},
|
|
574979
|
+
"webhooks.WebhookPayloadBodySortSchema": {
|
|
574980
|
+
type: "string",
|
|
574981
|
+
enum: [
|
|
574982
|
+
"alphabetical"
|
|
574983
|
+
]
|
|
574984
|
+
},
|
|
574783
574985
|
"webhooks.WebhookPayloadFormatSchema": {
|
|
574784
574986
|
type: "object",
|
|
574785
574987
|
properties: {
|
|
@@ -574798,6 +575000,16 @@ var definitions2 = {
|
|
|
574798
575000
|
type: "null"
|
|
574799
575001
|
}
|
|
574800
575002
|
]
|
|
575003
|
+
},
|
|
575004
|
+
"body-sort": {
|
|
575005
|
+
oneOf: [
|
|
575006
|
+
{
|
|
575007
|
+
$ref: "#/definitions/webhooks.WebhookPayloadBodySortSchema"
|
|
575008
|
+
},
|
|
575009
|
+
{
|
|
575010
|
+
type: "null"
|
|
575011
|
+
}
|
|
575012
|
+
]
|
|
574801
575013
|
}
|
|
574802
575014
|
},
|
|
574803
575015
|
required: [
|
|
@@ -578870,6 +579082,12 @@ var definitions3 = {
|
|
|
578870
579082
|
"message-id"
|
|
578871
579083
|
]
|
|
578872
579084
|
},
|
|
579085
|
+
"webhooks.WebhookPayloadBodySortSchema": {
|
|
579086
|
+
type: "string",
|
|
579087
|
+
enum: [
|
|
579088
|
+
"alphabetical"
|
|
579089
|
+
]
|
|
579090
|
+
},
|
|
578873
579091
|
"webhooks.WebhookPayloadFormatSchema": {
|
|
578874
579092
|
type: "object",
|
|
578875
579093
|
properties: {
|
|
@@ -578888,6 +579106,16 @@ var definitions3 = {
|
|
|
578888
579106
|
type: "null"
|
|
578889
579107
|
}
|
|
578890
579108
|
]
|
|
579109
|
+
},
|
|
579110
|
+
"body-sort": {
|
|
579111
|
+
oneOf: [
|
|
579112
|
+
{
|
|
579113
|
+
$ref: "#/definitions/webhooks.WebhookPayloadBodySortSchema"
|
|
579114
|
+
},
|
|
579115
|
+
{
|
|
579116
|
+
type: "null"
|
|
579117
|
+
}
|
|
579118
|
+
]
|
|
578891
579119
|
}
|
|
578892
579120
|
},
|
|
578893
579121
|
required: [
|
|
@@ -601954,7 +602182,7 @@ var AccessTokenPosthogManager = class {
|
|
|
601954
602182
|
properties: {
|
|
601955
602183
|
...event,
|
|
601956
602184
|
...event.properties,
|
|
601957
|
-
version: "4.
|
|
602185
|
+
version: "4.49.0-6-ge40fb1dc646",
|
|
601958
602186
|
usingAccessToken: true
|
|
601959
602187
|
}
|
|
601960
602188
|
});
|
|
@@ -602005,7 +602233,7 @@ var UserPosthogManager = class {
|
|
|
602005
602233
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
602006
602234
|
event: "CLI",
|
|
602007
602235
|
properties: {
|
|
602008
|
-
version: "4.
|
|
602236
|
+
version: "4.49.0-6-ge40fb1dc646",
|
|
602009
602237
|
...event,
|
|
602010
602238
|
...event.properties,
|
|
602011
602239
|
usingAccessToken: false,
|
|
@@ -825860,7 +826088,7 @@ var import_path54 = __toESM(require("path"), 1);
|
|
|
825860
826088
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
825861
826089
|
var LOGS_FOLDER_NAME = "logs";
|
|
825862
826090
|
function getCliSource() {
|
|
825863
|
-
const version7 = "4.
|
|
826091
|
+
const version7 = "4.49.0-6-ge40fb1dc646";
|
|
825864
826092
|
return `cli@${version7}`;
|
|
825865
826093
|
}
|
|
825866
826094
|
var DebugLogger = class {
|
|
@@ -836862,7 +837090,7 @@ var LegacyDocsPublisher = class {
|
|
|
836862
837090
|
previewId: void 0,
|
|
836863
837091
|
disableTemplates: void 0,
|
|
836864
837092
|
skipUpload,
|
|
836865
|
-
cliVersion: "4.
|
|
837093
|
+
cliVersion: "4.49.0-6-ge40fb1dc646"
|
|
836866
837094
|
});
|
|
836867
837095
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
836868
837096
|
return { success: false };
|
|
@@ -909977,7 +910205,7 @@ var CliContext = class {
|
|
|
909977
910205
|
if (false) {
|
|
909978
910206
|
this.logger.error("CLI_VERSION is not defined");
|
|
909979
910207
|
}
|
|
909980
|
-
return "4.
|
|
910208
|
+
return "4.49.0-6-ge40fb1dc646";
|
|
909981
910209
|
}
|
|
909982
910210
|
getCliName() {
|
|
909983
910211
|
if (false) {
|
package/package.json
CHANGED