vibe-coding-master 0.4.9 → 0.4.10
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.
|
@@ -18,6 +18,7 @@ const DEFAULT_PROFILE = "default";
|
|
|
18
18
|
const DEFAULT_CHUNK_SOURCE_TOKEN_TARGET = 80000;
|
|
19
19
|
const BOOTSTRAP_DEFAULT_LIMIT = 12;
|
|
20
20
|
const MEMORY_TOTAL_LIMIT_BYTES = 80 * 1024;
|
|
21
|
+
const MEMORY_INITIALIZED_MIN_FILES = 2;
|
|
21
22
|
const MEMORY_FILE_NAMES = ["glossary.md", "style-guide.md", "project-context.md", "decisions.md"];
|
|
22
23
|
const TRANSLATOR_ROLE = "translator";
|
|
23
24
|
const FILE_BROWSER_DEFAULT_LIMIT = 200;
|
|
@@ -1552,14 +1553,15 @@ function isFileTranslationChunk(value) {
|
|
|
1552
1553
|
typeof candidate.sourceLineEnd === "number";
|
|
1553
1554
|
}
|
|
1554
1555
|
async function isMemoryInitialized(repoRoot, fs) {
|
|
1556
|
+
let initializedFiles = 0;
|
|
1555
1557
|
for (const file of MEMORY_FILE_NAMES) {
|
|
1556
1558
|
const content = await fs.readText(resolveRepoPath(repoRoot, `${MEMORY_DIR}/${file}`));
|
|
1557
1559
|
const meaningfulLines = content.split("\n").filter((line) => line.trim() && !line.trim().startsWith("#"));
|
|
1558
1560
|
if (meaningfulLines.length > 0) {
|
|
1559
|
-
|
|
1561
|
+
initializedFiles += 1;
|
|
1560
1562
|
}
|
|
1561
1563
|
}
|
|
1562
|
-
return
|
|
1564
|
+
return initializedFiles >= MEMORY_INITIALIZED_MIN_FILES;
|
|
1563
1565
|
}
|
|
1564
1566
|
async function getMemoryUsage(repoRoot, fs) {
|
|
1565
1567
|
let totalBytes = 0;
|