mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-01 18:48:16 +00:00
perf(test): lazy-load bundled channel secrets
This commit is contained in:
@@ -9,6 +9,10 @@ export default defineBundledChannelEntry({
|
||||
specifier: "./channel-plugin-api.js",
|
||||
exportName: "telegramPlugin",
|
||||
},
|
||||
secrets: {
|
||||
specifier: "./src/secret-contract.js",
|
||||
exportName: "channelSecrets",
|
||||
},
|
||||
runtime: {
|
||||
specifier: "./runtime-api.js",
|
||||
exportName: "setTelegramRuntime",
|
||||
|
||||
@@ -6,4 +6,8 @@ export default defineBundledChannelSetupEntry({
|
||||
specifier: "./channel-plugin-api.js",
|
||||
exportName: "telegramSetupPlugin",
|
||||
},
|
||||
secrets: {
|
||||
specifier: "./src/secret-contract.js",
|
||||
exportName: "channelSecrets",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -115,3 +115,8 @@ export function collectRuntimeConfigAssignments(params: {
|
||||
"Telegram account is disabled or webhook mode is not active for this account.",
|
||||
});
|
||||
}
|
||||
|
||||
export const channelSecrets = {
|
||||
secretTargetRegistryEntries,
|
||||
collectRuntimeConfigAssignments,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user