mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 04:47:03 -06:00
dceb2c343c
* 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
26 lines
738 B
TypeScript
26 lines
738 B
TypeScript
import "./diagnostic.js";
|
|
|
|
type DiagnosticTestApi = {
|
|
resetDiagnosticStateForTest(): void;
|
|
resolveStuckSessionAbortMs(stuckSessionWarnMs: number): number;
|
|
resolveStuckSessionWarnMs(): number;
|
|
};
|
|
|
|
function getTestApi(): DiagnosticTestApi {
|
|
return (globalThis as Record<PropertyKey, unknown>)[
|
|
Symbol.for("openclaw.diagnosticTestApi")
|
|
] as DiagnosticTestApi;
|
|
}
|
|
|
|
export function resetDiagnosticStateForTest(): void {
|
|
getTestApi().resetDiagnosticStateForTest();
|
|
}
|
|
|
|
export function resolveStuckSessionAbortMs(stuckSessionWarnMs: number): number {
|
|
return getTestApi().resolveStuckSessionAbortMs(stuckSessionWarnMs);
|
|
}
|
|
|
|
export function resolveStuckSessionWarnMs(): number {
|
|
return getTestApi().resolveStuckSessionWarnMs();
|
|
}
|