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 owned-function parser module-private (#12308)

[._.]/ Adam Eivy47e57bd762b5
diff --git a/server/lib/db.js b/server/lib/db.js
index 94134e926a..1c4309a217 100644
--- a/server/lib/db.js
+++ b/server/lib/db.js
@@ -508,7 +508,7 @@ export async function ensureSchema(options = {}) {
* lists. Argument names, modes and defaults are stripped so each list can be
* resolved through `to_regprocedure`.
*/
-export function ownedFunctionSignatures(statements) {
+function ownedFunctionSignatures(statements) {
const owned = new Map();
const pattern = /CREATE\s+(?:OR\s+REPLACE\s+)?FUNCTION\s+(?:public\.)?([a-z_][a-z0-9_]*)\s*\(([^)]*)\)/gi;
for (const sql of statements) {