mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor: retire due compat-ledger surfaces (context-engine host params, deactivate alias, logging internals) (#121845)
* refactor(plugins): retire deactivate hook alias
* refactor(plugin-sdk): prune retired facade exports
* test(logging): isolate logger test controls
* refactor(logging): internalize file transport controls
* test(plugin-sdk): preserve retired facade coverage
* test(auto-reply): remove stale diagnostic imports
* refactor(logging): delete dead config-read guard
shouldSkipMutatingLoggingConfigRead had no production caller even on main;
it survived the dead-export scan only via logger's testApi re-export. The
test-isolation commit removed that mask, exposing the fossil. Delete the
guard, its test-only re-export, its mock entry, and its dedicated test file.
* refactor(plugin-sdk): retire due compatibility subpaths
* test(plugin-sdk): type group policy predicates
* refactor(plugin-sdk): split removed subpath records
* refactor(secrets): remove retired collector barrel
* test(plugin-sdk): tighten wildcard surface pin
* refactor(plugin-sdk): retire matrix facade metadata
* style(plugin-sdk): format facade metadata
* fix(ci): load channel setup contracts from source
Repair the main-owned regression from 99d662473c (Peter Steinberger): the new env-contract test could consume stale ignored dist metadata instead of the checked-in plugin declaration.
* test(plugin-sdk): refresh API baseline after rebase
This commit is contained in:
committed by
GitHub
parent
49092ebab3
commit
dceb2c343c
@@ -74,7 +74,6 @@ describe("scripts/check-deprecated-api-usage", () => {
|
||||
"src/plugin-sdk/channel-message",
|
||||
"src/plugin-sdk/channel-reply-pipeline",
|
||||
"src/plugin-sdk/inbound-reply-dispatch",
|
||||
"src/plugin-sdk/text-runtime",
|
||||
]) {
|
||||
expect(modulePaths.has(facade), facade).toBe(true);
|
||||
}
|
||||
@@ -96,7 +95,6 @@ describe("scripts/check-deprecated-api-usage", () => {
|
||||
'import { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";',
|
||||
'export { runChannelInboundEvent } from "../plugin-sdk/inbound-reply-dispatch.js";',
|
||||
'const facade = await import ("../plugin-sdk/channel-message.js", { with: {} });',
|
||||
'const text = require("@openclaw/plugin-sdk/text-runtime");',
|
||||
].join("\n"),
|
||||
});
|
||||
|
||||
@@ -108,7 +106,6 @@ describe("scripts/check-deprecated-api-usage", () => {
|
||||
"src/channels/probe.ts:2: ../plugin-sdk/inbound-reply-dispatch.js",
|
||||
);
|
||||
expect(result.stderr).toContain("src/channels/probe.ts:3: ../plugin-sdk/channel-message.js");
|
||||
expect(result.stderr).toContain("src/channels/probe.ts:4: @openclaw/plugin-sdk/text-runtime");
|
||||
});
|
||||
|
||||
it("allows canonical compat re-exports and test files", () => {
|
||||
|
||||
Reference in New Issue
Block a user