mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:52:25 +00:00
chore: refresh plugin sdk api baseline
This commit is contained in:
@@ -27,7 +27,7 @@ export const pluginCommands = new Proxy(new Map<string, RegisteredPluginCommand>
|
||||
const value = Reflect.get(getPluginCommandMap(), property, getPluginCommandMap());
|
||||
return typeof value === "function" ? value.bind(getPluginCommandMap()) : value;
|
||||
},
|
||||
}) as Map<string, RegisteredPluginCommand>;
|
||||
});
|
||||
|
||||
export function isPluginCommandRegistryLocked(): boolean {
|
||||
return getState().registryLocked;
|
||||
|
||||
@@ -60,16 +60,6 @@ function withCwd<T>(cwd: string, run: () => T): T {
|
||||
}
|
||||
}
|
||||
|
||||
function withArgv1<T>(argv1: string, run: () => T): T {
|
||||
const originalArgv = process.argv;
|
||||
process.argv = [originalArgv[0] ?? "node", argv1, ...originalArgv.slice(2)];
|
||||
try {
|
||||
return run();
|
||||
} finally {
|
||||
process.argv = originalArgv;
|
||||
}
|
||||
}
|
||||
|
||||
function createPluginSdkAliasFixture(params?: {
|
||||
srcFile?: string;
|
||||
distFile?: string;
|
||||
|
||||
Reference in New Issue
Block a user