refactor(channels): move bootstrap channel logic behind extension seams

This commit is contained in:
Peter Steinberger
2026-04-04 04:52:53 +01:00
parent fff7e610df
commit bc457fd1b8
25 changed files with 602 additions and 249 deletions

View File

@@ -3,9 +3,18 @@ export {
collectRuntimeConfigAssignments,
secretTargetRegistryEntries,
} from "./src/secret-contract.js";
export {
TELEGRAM_COMMAND_NAME_PATTERN,
normalizeTelegramCommandDescription,
normalizeTelegramCommandName,
resolveTelegramCustomCommands,
} from "./src/command-config.js";
export { parseTelegramTopicConversation } from "./src/topic-conversation.js";
export { singleAccountKeysToMove } from "./src/setup-contract.js";
export { buildTelegramModelsProviderChannelData } from "./src/command-ui.js";
export {
buildCommandsPaginationKeyboard,
buildTelegramModelsProviderChannelData,
} from "./src/command-ui.js";
export type {
TelegramInteractiveHandlerContext,
TelegramInteractiveHandlerRegistration,

View File

@@ -4,3 +4,10 @@ export {
secretTargetRegistryEntries,
} from "./src/secret-contract.js";
export { singleAccountKeysToMove } from "./src/setup-contract.js";
export function hasConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {
return (
typeof params.env?.TELEGRAM_BOT_TOKEN === "string" &&
params.env.TELEGRAM_BOT_TOKEN.trim().length > 0
);
}