fix(auth): lazy-load provider oauth helpers

This commit is contained in:
Vincent Koc
2026-03-18 13:40:28 -07:00
parent 6ebcd853be
commit 91d37ccfc3
12 changed files with 53 additions and 15 deletions

View File

@@ -18,11 +18,25 @@ export type TelegramBotDeps = {
};
export const defaultTelegramBotDeps: TelegramBotDeps = {
loadConfig,
resolveStorePath,
readChannelAllowFromStore,
enqueueSystemEvent,
dispatchReplyWithBufferedBlockDispatcher,
listSkillCommandsForAgents,
wasSentByBot,
get loadConfig() {
return loadConfig;
},
get resolveStorePath() {
return resolveStorePath;
},
get readChannelAllowFromStore() {
return readChannelAllowFromStore;
},
get enqueueSystemEvent() {
return enqueueSystemEvent;
},
get dispatchReplyWithBufferedBlockDispatcher() {
return dispatchReplyWithBufferedBlockDispatcher;
},
get listSkillCommandsForAgents() {
return listSkillCommandsForAgents;
},
get wasSentByBot() {
return wasSentByBot;
},
};