[AI] Restore bank-factory glob to ./banks/*_*.{ts,js}

Re-apply the glob widening originally added in 145868f9d. It was
reverted in 531b1a191 because the desktop e2e was failing — that
failure is now traced to the rebuild-electron breakage (fixed in
6e8ac0784), not to this glob. Mirroring migrations.ts so future TS
bank handlers are picked up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
github-actions[bot]
2026-05-05 22:32:46 +01:00
parent 43fba254b5
commit 6b351eafc7

View File

@@ -1,8 +1,8 @@
import IntegrationBank from './banks/integration-bank';
// Filename convention: <name>_<bic>.js (skips bank.interface, integration-bank,
// and any other helper without an underscore).
const bankLoaders = import.meta.glob('./banks/*_*.js');
// Filename convention: <name>_<bic>.{ts,js} (skips bank.interface,
// integration-bank, and any other helper without an underscore).
const bankLoaders = import.meta.glob('./banks/*_*.{ts,js}');
async function loadBanks() {
const imports = await Promise.all(