From 7280d13b934cf2061c068e02ade8c313b5894dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Thu, 13 Aug 2026 02:20:10 +0000 Subject: [PATCH] group the barrel by core and plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same 23 features, same order within each group, split by a blank line and a heading. It mirrors schema.ts, where the plugin tables are commented out. The difference between the two files is written down rather than left to be inferred: these lines are NOT commented, because doing so would break nothing at runtime — hono.ts mounts no plugin router, so none of it is reached — but tsgo checks every file under src/ whether it runs or not, and the plugin sidecars still import these symbols. They stay until each plugin is extracted. No export changed. Verified: same set of re-exported features before and after. Co-Authored-By: Claude Opus 5 (1M context) --- src/databases/officer_db/src/index.ts | 29 +++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/databases/officer_db/src/index.ts b/src/databases/officer_db/src/index.ts index 1de46eef..40d72e4a 100644 --- a/src/databases/officer_db/src/index.ts +++ b/src/databases/officer_db/src/index.ts @@ -10,11 +10,21 @@ // // 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 } from './db'; export * as schema from './schema'; +// ── Core ───────────────────────────────────────────────────────────────────────────────────────── export * from './agent-panels'; export * from './api-keys'; @@ -23,20 +33,27 @@ export * from './auth'; export * from './capabilities'; export * from './chat-events'; export * from './dashboards'; -export * from './dav'; -export * from './email'; export * from './headscale'; 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 './music'; export * from './notify'; export * from './photos'; -export * from './pipeline-jobs'; -export * from './server'; -export * from './service-connections'; export * from './soulseek'; -export * from './user-data'; 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.