Files
nanoclaw/src/db/index.ts
gavrielc 7201fe5032 v2 phase 4: channel adapter interface, registry, and host wiring
ChannelAdapter interface with setup/deliver/teardown/setTyping lifecycle.
Self-registration pattern via channel-registry. Host wiring in index-v2
bridges inbound messages to routeInbound and outbound delivery to adapters.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 00:10:46 +03:00

39 lines
923 B
TypeScript

export { initDb, initTestDb, getDb, closeDb } from './connection.js';
export { runMigrations } from './migrations/index.js';
export {
createAgentGroup,
getAgentGroup,
getAgentGroupByFolder,
getAllAgentGroups,
getAdminAgentGroup,
updateAgentGroup,
deleteAgentGroup,
} from './agent-groups.js';
export {
createMessagingGroup,
getMessagingGroup,
getMessagingGroupByPlatform,
getAllMessagingGroups,
getMessagingGroupsByChannel,
updateMessagingGroup,
deleteMessagingGroup,
createMessagingGroupAgent,
getMessagingGroupAgents,
getMessagingGroupAgent,
updateMessagingGroupAgent,
deleteMessagingGroupAgent,
} from './messaging-groups.js';
export {
createSession,
getSession,
findSession,
getSessionsByAgentGroup,
getActiveSessions,
getRunningSessions,
updateSession,
deleteSession,
createPendingQuestion,
getPendingQuestion,
deletePendingQuestion,
} from './sessions.js';