// The package's public surface.
//
// One line per feature, and nothing else. What each feature exports is stated in its own index.ts,
// beside the schema and queries it exports — so adding a query function means editing one file in one
// directory, not that file plus a list three levels up that nobody remembers to update.
//
// This was 297 lines of hand-written named exports until 2026-08-13. Every symbol was listed here, twice
// for most features (values, then types, repeating the path), and `db` and `schema` sat at line 270 with
// three feature blocks appended after them.
//
// The surface is unchanged: the same names are exported, they are just declared next to what they
// describe. 107 files import from 'officerdb' and none of them notice.
//
// ── Core above, plugins below ──
//
// The split mirrors schema.ts, where the plugin TABLES are commented out so db:push does not create
// them. These lines are NOT commented, and the difference is worth stating: commenting them would break
// nothing at runtime — hono.ts no longer mounts a single plugin router, so none of this is ever
// reached — but `bunx tsgo` checks every file under src/ whether it runs or not, and the plugin
// sidecars still import these symbols. So they stay exported until each plugin is extracted, and the
// blank line below is the only thing marking the boundary.

// The connection, and drizzle-kit's view of the schema. See ./schema.ts for the core/plugin split.
export { db, waitForDatabase } from './db';
export * as schema from './schema';

// ── Core ─────────────────────────────────────────────────────────────────────────────────────────

export * from './agent-panels';
export * from './api-keys';
export * from './app-store';
export * from './plugins';
export * from './auth';
export * from './capabilities';
export * from './chat-events';
export * from './dashboards';
export * from './integrations';
export * from './pipeline-jobs';
export * from './server';
export * from './service-connections';
export * from './user-data';

// ── Plugins — exported only so tsgo stays clean; nothing mounts them ──────────────────────────────

export * from './dav';
export * from './email';
export * from './invoiceshelf';
export * from './jellyfin';
export * from './notify';
export * from './photos';
export * from './soulseek';
export * from './vault';
export * from './wallet';

// `operations` is absent because it no longer exists: it held task_logs, and the Task Logs feature was
// deleted end to end on 2026-08-13 after `task-logger.ts` turned out to have no callers — a full read
// path over a table nothing could write to.
