@rayburst/cli 0.4.15 → 0.4.16
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.
|
@@ -2022,6 +2022,35 @@ var unpluginFactory = (options = {}) => {
|
|
|
2022
2022
|
console.log(chalk.yellow(`[Rayburst] Detected ${changes.length} node changes in branch ${branchId}`));
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
|
+
} else {
|
|
2026
|
+
for (const branchId of Object.keys(newAnalysis.planData)) {
|
|
2027
|
+
const nodes = newAnalysis.planData[branchId]?.nodes || [];
|
|
2028
|
+
const timestamp = Date.now();
|
|
2029
|
+
const changes = [];
|
|
2030
|
+
const unstagedFiles = newAnalysis.unstagedFilesMetadata?.[branchId] || [];
|
|
2031
|
+
const stagedFiles = newAnalysis.stagedFilesMetadata?.[branchId] || [];
|
|
2032
|
+
const committedFiles = newAnalysis.committedFilesMetadata?.[branchId] || [];
|
|
2033
|
+
const changedFilePaths = /* @__PURE__ */ new Set();
|
|
2034
|
+
unstagedFiles.forEach((f) => changedFilePaths.add(f.filePath));
|
|
2035
|
+
stagedFiles.forEach((f) => changedFilePaths.add(f.filePath));
|
|
2036
|
+
committedFiles.forEach((f) => changedFilePaths.add(f.filePath));
|
|
2037
|
+
for (const node of nodes) {
|
|
2038
|
+
const filePath = node.id.split("::")[0];
|
|
2039
|
+
if (changedFilePaths.has(filePath)) {
|
|
2040
|
+
changes.push({
|
|
2041
|
+
timestamp,
|
|
2042
|
+
nodeId: node.id,
|
|
2043
|
+
changeType: "modified",
|
|
2044
|
+
currentState: node,
|
|
2045
|
+
filePath
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
if (changes.length > 0) {
|
|
2050
|
+
addToChangeHistory(branchId, changes);
|
|
2051
|
+
console.log(chalk.yellow(`[Rayburst] Initialized timeline with ${changes.length} nodes from uncommitted files`));
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2025
2054
|
}
|
|
2026
2055
|
newAnalysis.changeHistory = { ...changeHistoryMap };
|
|
2027
2056
|
if (previousAnalysis) {
|
package/dist/index.js
CHANGED
package/dist/vite-plugin.js
CHANGED