refactor: remove dead exports and orphan modules
Delete exported symbols that nothing in src/, setup/, scripts/ or runners/ references (and no test exercises), iterated to a fixed point: service-routing lease/failover helpers, paired-workspace-manager fingerprint/registration helpers, message-runtime-rules trigger helpers, utils.fetchWithTimeout, detectPnpmStorePath, isCodexMainService, isDeltaHandoffEnabledForGroup with the unused DELTA_HANDOFF config, the deprecated db/schema.applySchemaMigrations alias, unused db wrappers (memories, router state, sessions-by-agent-type, room skill override writes, recent chat/turn-output queries) and a few unused type aliases. Orphan files: src/dashboard.ts + src/dashboard-status-content.ts (only referenced each other), src/restart-context-cli.ts (never invoked) and the unused src/config/index.ts barrel. Service-handoff / channel-owner-lease code is left for a later batch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,6 @@ import {
|
||||
import {
|
||||
getLatestTurnNumberFromDatabase,
|
||||
getPairedTurnOutputsFromDatabase,
|
||||
getRecentPairedTurnOutputsForChatFromDatabase,
|
||||
insertPairedTurnOutputInDatabase,
|
||||
} from './paired-turn-outputs.js';
|
||||
import {
|
||||
@@ -387,17 +386,6 @@ export function getPairedTurnOutputs(taskId: string): PairedTurnOutput[] {
|
||||
return getPairedTurnOutputsFromDatabase(requireDatabase(), taskId);
|
||||
}
|
||||
|
||||
export function getRecentPairedTurnOutputsForChat(
|
||||
chatJid: string,
|
||||
limit: number = 8,
|
||||
): PairedTurnOutput[] {
|
||||
return getRecentPairedTurnOutputsForChatFromDatabase(
|
||||
requireDatabase(),
|
||||
chatJid,
|
||||
limit,
|
||||
);
|
||||
}
|
||||
|
||||
export function getLatestTurnNumber(taskId: string): number {
|
||||
return getLatestTurnNumberFromDatabase(requireDatabase(), taskId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user