refactor(db): group database domain modules

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 19:24:25 -04:00
1 parent e43a89096d
commit 6da0a58769
160 files changed
+2124 -1999

No files matched your search

+3 -3
View File
@@ -26,7 +26,7 @@ describe("agent hierarchy cycle guard", () => {
tempDir = await mkdtemp(join(tmpdir(), "agentcompany-hierarchy-"));
db = new AppDatabase(tempDir);
db.init();
companyId = db.company.saveCompany({
companyId = db.core.company.saveCompany({
name: "Hierarchy Guard Co",
description: "Tests reporting relationships.",
status: "active",
@@ -57,11 +57,11 @@ describe("agent hierarchy cycle guard", () => {
saveAgent("engineer", "ceo");
expect(db.entityCrud.getAgent("engineer").reportsTo).toBe("ceo");
expect(db.core.entity.getAgent("engineer").reportsTo).toBe("ceo");
});
function saveAgent(id: string, reportsTo: string | null): string {
return db.agents.saveAgent({
return db.core.agents.saveAgent({
id,
companyId,
name: id,