mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:10:42 +00:00
fix(plugins): record crabpot compat deprecations
This commit is contained in:
@@ -367,6 +367,20 @@ export const PLUGIN_COMPAT_RECORDS = [
|
||||
diagnostics: ["plugin SDK compatibility warning"],
|
||||
tests: ["src/plugins/contracts/plugin-sdk-index.test.ts"],
|
||||
},
|
||||
{
|
||||
code: "openclaw-schema-type-alias",
|
||||
status: "deprecated",
|
||||
owner: "sdk",
|
||||
introduced: "2026-04-26",
|
||||
deprecated: "2026-04-26",
|
||||
warningStarts: "2026-04-26",
|
||||
removeAfter: "2026-07-26",
|
||||
replacement: "`OpenClawConfig` from `openclaw/plugin-sdk/config-schema`",
|
||||
docsPath: "/plugins/sdk-migration",
|
||||
surfaces: ["openclaw/plugin-sdk `OpenClawSchemaType` type export"],
|
||||
diagnostics: ["plugin SDK compatibility warning"],
|
||||
tests: ["src/plugins/contracts/plugin-sdk-index.test.ts"],
|
||||
},
|
||||
{
|
||||
code: "legacy-extension-api-import",
|
||||
status: "deprecated",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { describe, expect, expectTypeOf, it } from "vitest";
|
||||
import { buildPluginSdkPackageExports } from "../../plugin-sdk/entrypoints.js";
|
||||
import type { ClawdbotConfig, OpenClawConfig, OpenClawSchemaType } from "../../plugin-sdk/index.js";
|
||||
|
||||
const pluginSdkIndexPath = fileURLToPath(new URL("../../plugin-sdk/index.ts", import.meta.url));
|
||||
|
||||
@@ -104,6 +105,11 @@ describe("plugin-sdk exports", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps deprecated root config type aliases aligned", () => {
|
||||
expectTypeOf<ClawdbotConfig>().toEqualTypeOf<OpenClawConfig>();
|
||||
expectTypeOf<OpenClawSchemaType>().toEqualTypeOf<OpenClawConfig>();
|
||||
});
|
||||
|
||||
it("keeps package.json plugin-sdk exports synced with the manifest", async () => {
|
||||
const packageJsonPath = path.join(process.cwd(), "package.json");
|
||||
const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8")) as {
|
||||
|
||||
Reference in New Issue
Block a user