mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-24 20:31:18 +00:00
refactor: remove dead plugin loader exports (#105937)
* refactor(plugins): trim activation and contract exports * test(plugins): restore fixture cleanup * refactor(plugins): trim install and loader exports * test(plugins): fully reset loader caches * refactor(plugins): trim metadata and catalog exports * test(plugins): preserve catalog trust coverage * refactor(plugins): trim provider and plugin exports * refactor(plugins): trim runtime and tool exports * test(plugins): update dead-export consumers * test(plugins): remove empty dead-export suites * refactor(plugins): align exports with split registry * refactor(plugins): trim drifted loader exports * style(plugins): format test fixtures * refactor(scripts): use supported plugin APIs * refactor(plugins): finish dead export cleanup * chore(deadcode): refresh export baseline * test(cli): mock production memory state * chore(deadcode): sync latest export baseline * fix(tests): keep plugin fixtures inside core * chore(deadcode): refresh rebased export baseline * chore(deadcode): sync current ratchets * fix(plugins): retain reserved slot invariant * fix(plugins): preserve dead-export invariants * test(plugins): use neutral catalog query fixture * test(plugins): satisfy catalog lint * test(plugins): preserve integrity drift coverage * fix(ci): register skill experience live proof
This commit is contained in:
committed by
GitHub
parent
8c740891e1
commit
98e3f729bc
@@ -15,13 +15,13 @@ import {
|
||||
} from "./sdk-alias.js";
|
||||
|
||||
/** Jiti-based module loader used for plugin source/runtime imports. */
|
||||
export type PluginModuleLoader = ReturnType<typeof createJiti>;
|
||||
type PluginModuleLoader = ReturnType<typeof createJiti>;
|
||||
export type PluginModuleLoaderFactory = typeof createJiti;
|
||||
export type PluginModuleLoaderCache = Pick<
|
||||
PluginLruCache<PluginModuleLoader>,
|
||||
"clear" | "get" | "set" | "size"
|
||||
>;
|
||||
export type ResolvePluginModuleLoaderCacheEntryParams = {
|
||||
type ResolvePluginModuleLoaderCacheEntryParams = {
|
||||
modulePath: string;
|
||||
importerUrl: string;
|
||||
argvEntry?: string;
|
||||
@@ -34,14 +34,14 @@ export type ResolvePluginModuleLoaderCacheEntryParams = {
|
||||
cacheScopeKey?: string;
|
||||
sharedCacheScopeKey?: string;
|
||||
};
|
||||
export type PluginModuleLoaderCacheEntry = {
|
||||
type PluginModuleLoaderCacheEntry = {
|
||||
loaderFilename: string;
|
||||
aliasMap: Record<string, string>;
|
||||
tryNative: boolean;
|
||||
cacheKey: string;
|
||||
scopedCacheKey: string;
|
||||
};
|
||||
export type PluginModuleLoaderStatsSnapshot = {
|
||||
type PluginModuleLoaderStatsSnapshot = {
|
||||
calls: number;
|
||||
nativeHits: number;
|
||||
nativeMisses: number;
|
||||
@@ -135,7 +135,7 @@ function resolveDefaultPluginModuleLoaderConfig(
|
||||
});
|
||||
}
|
||||
|
||||
export function resolvePluginModuleLoaderCacheEntry(
|
||||
function resolvePluginModuleLoaderCacheEntry(
|
||||
params: ResolvePluginModuleLoaderCacheEntryParams,
|
||||
): PluginModuleLoaderCacheEntry {
|
||||
const loaderFilename = toSafeImportPath(params.loaderFilename ?? params.modulePath);
|
||||
|
||||
Reference in New Issue
Block a user