fix(plugins): record crabpot compat deprecations · openclaw/openclaw@6dfb03a
vincentkoc
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -86,8 +86,8 @@ Current compatibility records include:
|
86 | 86 | `register(api)` |
87 | 87 | - legacy SDK aliases such as `openclaw/extension-api`, |
88 | 88 | `openclaw/plugin-sdk/channel-runtime`, `openclaw/plugin-sdk/command-auth` |
89 | | - status builders, `openclaw/plugin-sdk/test-utils`, and the `ClawdbotConfig` |
90 | | - type alias |
| 89 | + status builders, `openclaw/plugin-sdk/test-utils`, and the `ClawdbotConfig` / |
| 90 | +`OpenClawSchemaType` type aliases |
91 | 91 | - bundled plugin allowlist and enablement behavior |
92 | 92 | - legacy provider/channel env-var manifest metadata |
93 | 93 | - legacy provider plugin hooks and type aliases while providers move to |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,6 +80,8 @@ export type {
|
80 | 80 | export type { OpenClawConfig } from "../config/config.js"; |
81 | 81 | /** @deprecated Use OpenClawConfig instead */ |
82 | 82 | export type { OpenClawConfig as ClawdbotConfig } from "../config/config.js"; |
| 83 | +/** @deprecated Use OpenClawConfig instead */ |
| 84 | +export type { OpenClawConfig as OpenClawSchemaType } from "../config/config.js"; |
83 | 85 | export type { |
84 | 86 | MemoryPluginCapability, |
85 | 87 | MemoryPluginPublicArtifact, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -367,6 +367,20 @@ export const PLUGIN_COMPAT_RECORDS = [
|
367 | 367 | diagnostics: ["plugin SDK compatibility warning"], |
368 | 368 | tests: ["src/plugins/contracts/plugin-sdk-index.test.ts"], |
369 | 369 | }, |
| 370 | +{ |
| 371 | +code: "openclaw-schema-type-alias", |
| 372 | +status: "deprecated", |
| 373 | +owner: "sdk", |
| 374 | +introduced: "2026-04-26", |
| 375 | +deprecated: "2026-04-26", |
| 376 | +warningStarts: "2026-04-26", |
| 377 | +removeAfter: "2026-07-26", |
| 378 | +replacement: "`OpenClawConfig` from `openclaw/plugin-sdk/config-schema`", |
| 379 | +docsPath: "/plugins/sdk-migration", |
| 380 | +surfaces: ["openclaw/plugin-sdk `OpenClawSchemaType` type export"], |
| 381 | +diagnostics: ["plugin SDK compatibility warning"], |
| 382 | +tests: ["src/plugins/contracts/plugin-sdk-index.test.ts"], |
| 383 | +}, |
370 | 384 | { |
371 | 385 | code: "legacy-extension-api-import", |
372 | 386 | status: "deprecated", |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import fs from "node:fs/promises"; |
2 | 2 | import path from "node:path"; |
3 | 3 | import { fileURLToPath } from "node:url"; |
4 | | -import { describe, expect, it } from "vitest"; |
| 4 | +import { describe, expect, expectTypeOf, it } from "vitest"; |
5 | 5 | import { buildPluginSdkPackageExports } from "../../plugin-sdk/entrypoints.js"; |
| 6 | +import type { ClawdbotConfig, OpenClawConfig, OpenClawSchemaType } from "../../plugin-sdk/index.js"; |
6 | 7 | |
7 | 8 | const pluginSdkIndexPath = fileURLToPath(new URL("../../plugin-sdk/index.ts", import.meta.url)); |
8 | 9 | |
@@ -104,6 +105,11 @@ describe("plugin-sdk exports", () => {
|
104 | 105 | ]); |
105 | 106 | }); |
106 | 107 | |
| 108 | +it("keeps deprecated root config type aliases aligned", () => { |
| 109 | +expectTypeOf<ClawdbotConfig>().toEqualTypeOf<OpenClawConfig>(); |
| 110 | +expectTypeOf<OpenClawSchemaType>().toEqualTypeOf<OpenClawConfig>(); |
| 111 | +}); |
| 112 | + |
107 | 113 | it("keeps package.json plugin-sdk exports synced with the manifest", async () => { |
108 | 114 | const packageJsonPath = path.join(process.cwd(), "package.json"); |
109 | 115 | const packageJson = JSON.parse(await fs.readFile(packageJsonPath, "utf8")) as { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。