Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: keep sanitizeCodeProvenance module-private (#9414)

[._.]/ Adam Eivyb5573726a9c4
diff --git a/server/services/tracks/logic.js b/server/services/tracks/logic.js
index 073082a896..77b12eebcc 100644
--- a/server/services/tracks/logic.js
+++ b/server/services/tracks/logic.js
@@ -104,7 +104,7 @@ const posInt = (v, max) => (Number.isInteger(v) && v >= 0 && v <= max ? v : null
* rendered it and the render settings. Returns null unless the language and
* source are usable, so a malformed value never half-persists.
*/
-export function sanitizeCodeProvenance(raw) {
+function sanitizeCodeProvenance(raw) {
if (!raw || typeof raw !== 'object') return null;
if (!isStr(raw.language) || !CODE_LANGUAGE_RE.test(raw.language)) return null;
if (!isStr(raw.source) || !raw.source.trim() || raw.source.length > CODE_SOURCE_MAX) return null;