fix(housekeeping): harden command dispatch boundaries
This commit is contained in:
1 parent
796d009c07
commit
00618fb2a3
8 files changed
+608
-30
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import "server-only";
|
||||
|
||||
import type { HousekeepingCommand } from "./registry";
|
||||
import {
|
||||
registerHousekeepingCommand,
|
||||
sealHousekeepingCommandRegistry,
|
||||
} from "./registry";
|
||||
|
||||
const currentHousekeepingCommands =
|
||||
[] as const satisfies readonly HousekeepingCommand<unknown, unknown>[];
|
||||
|
||||
for (const command of currentHousekeepingCommands) {
|
||||
registerHousekeepingCommand(command);
|
||||
}
|
||||
sealHousekeepingCommandRegistry();
|
||||
|
||||
export const housekeepingCommandRegistryReady = true;
|
||||
Reference in new issue
Block a user