fix(ci): repair type drift after main updates

This commit is contained in:
Peter Steinberger
2026-04-07 05:57:14 +01:00
parent 7cf72f7bc8
commit dc39e84fdd
3 changed files with 3 additions and 6 deletions

View File

@@ -19,10 +19,8 @@ vi.mock("./index.js", () => ({
}));
vi.mock("../../plugins/runtime.js", () => ({
getActivePluginChannelRegistryVersion: (...args: unknown[]) =>
getActivePluginChannelRegistryVersionMock(...args),
requireActivePluginChannelRegistry: (...args: unknown[]) =>
requireActivePluginChannelRegistryMock(...args),
getActivePluginChannelRegistryVersion: getActivePluginChannelRegistryVersionMock,
requireActivePluginChannelRegistry: requireActivePluginChannelRegistryMock,
}));
async function importConfiguredBindings() {

View File

@@ -34,7 +34,6 @@ describe("doctor open-policy allowFrom repair", () => {
expect(result.changes).toEqual([
'- channels.googlechat.dm.allowFrom: set to ["*"] (required by dmPolicy="open")',
]);
expect(result.config.channels?.googlechat?.allowFrom).toBeUndefined();
expect(result.config.channels?.googlechat?.dm?.allowFrom).toEqual(["*"]);
});

View File

@@ -12,7 +12,7 @@ export {
export function deriveSessionChatType(sessionKey: string | undefined | null): SessionKeyChatType {
return deriveSessionChatTypeFromKey(
sessionKey,
iterateBootstrapChannelPlugins()
Array.from(iterateBootstrapChannelPlugins())
.map((plugin) => plugin.messaging?.deriveLegacySessionChatType)
.filter(
(