mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 22:00:22 +00:00
fix(ci): repair type drift after main updates
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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(["*"]);
|
||||
});
|
||||
|
||||
|
||||
@@ -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(
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user