From 7e13f3f5140168e31027b39a9855ade3fadf24d5 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 26 Apr 2026 12:17:44 +0100 Subject: [PATCH] test(plugin-sdk): tighten channel runtime shim scan --- src/plugins/contracts/plugin-sdk-subpaths.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/contracts/plugin-sdk-subpaths.test.ts b/src/plugins/contracts/plugin-sdk-subpaths.test.ts index 0994d4ffbf7..f383efbd260 100644 --- a/src/plugins/contracts/plugin-sdk-subpaths.test.ts +++ b/src/plugins/contracts/plugin-sdk-subpaths.test.ts @@ -655,7 +655,8 @@ describe("plugin-sdk subpath exports", () => { resolve(REPO_ROOT, "extensions"), resolve(REPO_ROOT, "test"), ], - pattern: /openclaw\/plugin-sdk\/channel-runtime(?=["'])/u, + pattern: + /(?:from\s+|import\s+(?:type\s+)?|import\s*\(\s*)["']openclaw\/plugin-sdk\/channel-runtime(?=["'])/u, exclude: [ "src/plugins/compat/registry.ts", "src/plugins/sdk-alias.test.ts",