@catchmexz/fedin-vibe-mcp-server 0.1.6 → 0.1.7
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.
|
@@ -84,6 +84,8 @@ function getAllFiles(dir, ignorePatterns) {
|
|
|
84
84
|
if (!shouldIgnoreFile(fullPath, ignorePatterns)) {
|
|
85
85
|
try {
|
|
86
86
|
const relativePath = path.relative(dir, fullPath);
|
|
87
|
+
// 将Windows的反斜杠路径分隔符转换为正斜杠,以适配远程仓库
|
|
88
|
+
const normalizedPath = relativePath.replace(/\\/g, '/');
|
|
87
89
|
let content;
|
|
88
90
|
let encoding = "text";
|
|
89
91
|
if (isBinaryFile(fullPath)) {
|
|
@@ -97,7 +99,7 @@ function getAllFiles(dir, ignorePatterns) {
|
|
|
97
99
|
encoding = "text";
|
|
98
100
|
}
|
|
99
101
|
files.push({
|
|
100
|
-
path:
|
|
102
|
+
path: normalizedPath,
|
|
101
103
|
content: content,
|
|
102
104
|
encoding: encoding
|
|
103
105
|
});
|