perf: speed up security audit test imports

This commit is contained in:
Peter Steinberger
2026-04-16 21:54:01 +01:00
parent cd45f53b4e
commit 8a37bb4ed6
19 changed files with 321 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
import type { OpenClawConfig } from "./runtime-api.js";
import { inspectTelegramAccount } from "./src/account-inspect.js";
export function inspectTelegramReadOnlyAccount(cfg: OpenClawConfig, accountId?: string | null) {
return inspectTelegramAccount({ cfg, accountId });
}

View File

@@ -17,4 +17,8 @@ export default defineBundledChannelEntry({
specifier: "./runtime-api.js",
exportName: "setTelegramRuntime",
},
accountInspect: {
specifier: "./account-inspect-api.js",
exportName: "inspectTelegramReadOnlyAccount",
},
});