refactor: split plugin sdk test helpers

This commit is contained in:
Peter Steinberger
2026-04-28 01:12:56 +01:00
parent d88610cf2b
commit f34b41f198
191 changed files with 627 additions and 270 deletions

View File

@@ -11,7 +11,7 @@ const FORBIDDEN_PATTERNS: Array<{ pattern: RegExp; hint: string }> = [
},
{
pattern: /["']openclaw\/plugin-sdk\/test-utils["']/,
hint: "Use openclaw/plugin-sdk/testing for the public extension test surface.",
hint: "Use openclaw/plugin-sdk/testing or a focused plugin-sdk test subpath for the public extension test surface.",
},
{
pattern: /["']openclaw\/plugin-sdk\/compat["']/,
@@ -35,7 +35,7 @@ const FORBIDDEN_PATTERNS: Array<{ pattern: RegExp; hint: string }> = [
},
{
pattern: /["'](?:\.\.\/)+(?:src\/channels\/plugins\/contracts\/test-helpers\.js)["']/,
hint: "Use openclaw/plugin-sdk/testing for channel contract test helpers.",
hint: "Use openclaw/plugin-sdk/channel-contract-testing for channel contract test helpers.",
},
];

View File

@@ -47,6 +47,9 @@ export const pluginSdkDocMetadata = {
"plugin-test-contracts": {
category: "utilities",
},
"plugin-test-runtime": {
category: "utilities",
},
"channel-actions": {
category: "channel",
},
@@ -113,6 +116,9 @@ export const pluginSdkDocMetadata = {
"provider-test-contracts": {
category: "utilities",
},
"test-env": {
category: "utilities",
},
} as const satisfies Record<string, PluginSdkDocMetadata>;
export type PluginSdkDocEntrypoint = keyof typeof pluginSdkDocMetadata;

View File

@@ -112,7 +112,9 @@
"channel-test-helpers",
"plugin-test-api",
"plugin-test-contracts",
"plugin-test-runtime",
"provider-test-contracts",
"test-env",
"testing",
"temp-path",
"logging-core",