mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 13:26:04 -06:00
perf(cli): skip plugin preflight for audit (#124595)
This commit is contained in:
committed by
GitHub
parent
9a555b6a9d
commit
eafeeec537
@@ -217,6 +217,15 @@ export const cliCommandCatalog: readonly CliCommandCatalogEntry[] = [
|
||||
},
|
||||
route: { id: "health" },
|
||||
},
|
||||
{
|
||||
commandPath: ["audit"],
|
||||
policy: {
|
||||
configGuard: "skip",
|
||||
loadPlugins: "never",
|
||||
ensureCliPath: false,
|
||||
networkProxy: "bypass",
|
||||
},
|
||||
},
|
||||
{
|
||||
commandPath: ["gateway"],
|
||||
policy: {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { Command } from "commander";
|
||||
|
||||
export const COLD_READ_COMMAND_PATHS: string[][] = [
|
||||
["audit"],
|
||||
["skills", "info"],
|
||||
["skills", "search"],
|
||||
["hooks"],
|
||||
@@ -11,6 +12,10 @@ export const COLD_READ_COMMAND_PATHS: string[][] = [
|
||||
];
|
||||
|
||||
export function registerColdReadCommandFixtures(program: Command, skills: Command): void {
|
||||
program
|
||||
.command("audit")
|
||||
.option("--json")
|
||||
.action(() => {});
|
||||
for (const skillCommand of ["info", "search"]) {
|
||||
skills
|
||||
.command(skillCommand)
|
||||
|
||||
Reference in New Issue
Block a user