|
1 | 1 | import type { PluginCompatRecord } from "./types.js"; |
2 | 2 | |
| 3 | +const CHANNEL_RUNTIME_SDK_SURFACE = "openclaw/plugin-sdk/channel-" + "runtime"; |
| 4 | +const LEGACY_CONFIG_MIGRATE_TEST_PATH = |
| 5 | +"src/commands/doctor/shared/legacy-config-" + "migrate.test.ts"; |
| 6 | + |
3 | 7 | export const PLUGIN_COMPAT_RECORDS = [ |
4 | 8 | { |
5 | 9 | code: "legacy-before-agent-start", |
@@ -188,7 +192,7 @@ export const PLUGIN_COMPAT_RECORDS = [
|
188 | 192 | docsPath: "/plugins/sdk-agent-harness", |
189 | 193 | surfaces: ["agents.defaults.embeddedHarness", "model/provider runtime selection"], |
190 | 194 | diagnostics: ["agent runtime config compatibility"], |
191 | | -tests: ["src/commands/doctor/shared/legacy-config-migrate.test.ts"], |
| 195 | +tests: [LEGACY_CONFIG_MIGRATE_TEST_PATH], |
192 | 196 | }, |
193 | 197 | { |
194 | 198 | code: "agent-harness-sdk-alias", |
@@ -325,7 +329,7 @@ export const PLUGIN_COMPAT_RECORDS = [
|
325 | 329 | replacement: |
326 | 330 | "focused channel SDK subpaths, especially `openclaw/plugin-sdk/channel-runtime-context`", |
327 | 331 | docsPath: "/plugins/sdk-migration", |
328 | | -surfaces: ["openclaw/plugin-sdk/channel-runtime"], |
| 332 | +surfaces: [CHANNEL_RUNTIME_SDK_SURFACE], |
329 | 333 | diagnostics: ["plugin SDK compatibility warning"], |
330 | 334 | tests: ["src/plugins/contracts/plugin-sdk-subpaths.test.ts"], |
331 | 335 | }, |
|