refactor(security): harden CommandAuthorized plumbing

This commit is contained in:
Peter Steinberger committed 2026-01-17 10:19:34 +00:00
1 parent 31e8ecca10
commit 69ba2765de
16 files changed
+92 -56

No files matched your search

+8
View File
@@ -103,6 +103,14 @@ export type MsgContext = {
HookMessages?: string[];
};
export type FinalizedMsgContext = Omit<MsgContext, "CommandAuthorized"> & {
/**
* Always set by finalizeInboundContext().
* Default-deny: missing/undefined becomes false.
*/
CommandAuthorized: boolean;
};
export type TemplateContext = MsgContext & {
BodyStripped?: string;
SessionId?: string;