fix: load telegram command config from contract surfaces

This commit is contained in:
Peter Steinberger
2026-04-04 05:26:40 +01:00
parent c7cb43cac9
commit e95b723b82
2 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,12 @@ export {
collectRuntimeConfigAssignments,
secretTargetRegistryEntries,
} from "./src/secret-contract.js";
export {
TELEGRAM_COMMAND_NAME_PATTERN,
normalizeTelegramCommandDescription,
normalizeTelegramCommandName,
resolveTelegramCustomCommands,
} from "./src/command-config.js";
export { singleAccountKeysToMove } from "./src/setup-contract.js";
export function hasConfiguredState(params: { env?: NodeJS.ProcessEnv }): boolean {

View File

@@ -29,7 +29,7 @@ type TelegramCommandConfigContract = {
function loadTelegramCommandConfigContract(): TelegramCommandConfigContract {
const contract = getBundledChannelContractSurfaceModule<TelegramCommandConfigContract>({
pluginId: "telegram",
preferredBasename: "contract-api.ts",
preferredBasename: "contract-surfaces.ts",
});
if (!contract) {
throw new Error("telegram command config contract surface is unavailable");