mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-24 07:01:49 +00:00
fix(test): break zalo group-policy import cycle
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { isNormalizedSenderAllowed } from "openclaw/plugin-sdk/allow-from";
|
||||
import {
|
||||
evaluateSenderGroupAccess,
|
||||
isNormalizedSenderAllowed,
|
||||
resolveOpenProviderRuntimeGroupPolicy,
|
||||
type GroupPolicy,
|
||||
} from "openclaw/plugin-sdk/config-runtime";
|
||||
import {
|
||||
evaluateSenderGroupAccess,
|
||||
type SenderGroupAccessDecision,
|
||||
} from "./runtime-api.js";
|
||||
} from "openclaw/plugin-sdk/group-access";
|
||||
|
||||
const ZALO_ALLOW_FROM_PREFIX_RE = /^(zalo|zl):/i;
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
export { sendMessageZalo } from "./src/send.js";
|
||||
export { evaluateZaloGroupAccess, resolveZaloRuntimeGroupPolicy } from "./src/group-access.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { evaluateZaloGroupAccess } from "../../../../extensions/zalo/api.js";
|
||||
import { evaluateZaloGroupAccess } from "../../../../extensions/zalo/test-api.js";
|
||||
|
||||
function expectAllowedZaloGroupAccess(params: Parameters<typeof evaluateZaloGroupAccess>[0]) {
|
||||
expect(evaluateZaloGroupAccess(params)).toMatchObject({
|
||||
|
||||
Reference in New Issue
Block a user