fix: reconcile reviewed integration repairs and generated catalogs

This commit is contained in:
haelyra committed 2026-11-05 23:26:12 -05:00
1 parent 324c4187ba
commit 001df488e5
19 files changed
+35 -341

No files matched your search

Regular → Executable
View File
File mode changed.
+5 -9
View File
@@ -279,15 +279,11 @@ function parseMemoryDocument(source, sourcePath = '<memory>') {
return normalizeMemory({ ...parsed.values, body });
}
function collectStrings(value, strings = []) {
if (typeof value === 'string') {
strings.push(value);
} else if (Array.isArray(value)) {
value.forEach(item => collectStrings(item, strings));
} else if (value && typeof value === 'object') {
Object.values(value).forEach(item => collectStrings(item, strings));
}
return strings;
function collectStrings(value) {
if (typeof value === 'string') return [value];
if (Array.isArray(value)) return value.flatMap(collectStrings);
if (value && typeof value === 'object') return Object.values(value).flatMap(collectStrings);
return [];
}
// Scan decoded field values: JSON.stringify turns a newline or tab into `\n`