MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / open_outbox

Function open_outbox

graph-ui/agents/hooks/atlas-trace.py:28–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def open_outbox():
29 path = trace_file() + '.outbox.sqlite3'
30 os.makedirs(os.path.dirname(os.path.abspath(path)), mode=0o700, exist_ok=True)
31 db = sqlite3.connect(path, timeout=0.5)
32 os.chmod(path, 0o600)
33 db.executescript("""
34 PRAGMA journal_mode=WAL;
35 CREATE TABLE IF NOT EXISTS counters(run TEXT PRIMARY KEY, seq INTEGER NOT NULL);
36 CREATE TABLE IF NOT EXISTS pending(id INTEGER PRIMARY KEY, project TEXT NOT NULL,
37 payload TEXT NOT NULL);
38 """)
39 return db
40
41
42def enqueue(db, project, row):

Callers 1

mainFunction · 0.85

Calls 1

trace_fileFunction · 0.85

Tested by

no test coverage detected