perf(test): lazy-load bundled channel secrets

This commit is contained in:
Vincent Koc
2026-04-06 16:40:30 +01:00
parent 349a1c58f9
commit c3b19d204a
41 changed files with 282 additions and 14 deletions

View File

@@ -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",

View File

@@ -6,4 +6,8 @@ export default defineBundledChannelSetupEntry({
specifier: "./channel-plugin-api.js",
exportName: "telegramSetupPlugin",
},
secrets: {
specifier: "./src/secret-contract.js",
exportName: "channelSecrets",
},
});

View File

@@ -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,
};