mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 10:16:44 +00:00
fix(docs): search live docs with unrelated invalid config (#111803)
This commit is contained in:
@@ -89,6 +89,7 @@ export const cliCommandCatalog: readonly CliCommandCatalogEntry[] = [
|
||||
},
|
||||
},
|
||||
{ commandPath: ["message"], policy: { loadPlugins: "never" } },
|
||||
{ commandPath: ["docs"], policy: { bypassConfigGuard: true } },
|
||||
{
|
||||
commandPath: ["channels"],
|
||||
policy: {
|
||||
|
||||
@@ -24,6 +24,7 @@ describe("command-startup-policy", () => {
|
||||
expect(shouldBypassConfigGuardForCommandPath(["config"])).toBe(true);
|
||||
expect(shouldBypassConfigGuardForCommandPath(["config", "validate"])).toBe(true);
|
||||
expect(shouldBypassConfigGuardForCommandPath(["config", "schema"])).toBe(true);
|
||||
expect(shouldBypassConfigGuardForCommandPath(["docs"])).toBe(true);
|
||||
expect(shouldBypassConfigGuardForCommandPath(["config", "set"])).toBe(false);
|
||||
expect(shouldBypassConfigGuardForCommandPath(["status"])).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user