fix(config): register bundledMode in zod schema and help text

Addresses review feedback: adds bundledMode to the strict plugins zod
object so the config option passes validation, and adds schema.help
documentation for the field.
This commit is contained in:
dougbtv
2026-05-02 09:50:13 -04:00
committed by Peter Steinberger
parent eef623671e
commit 81035e651b
2 changed files with 3 additions and 0 deletions

View File

@@ -1212,6 +1212,8 @@ export const FIELD_HELP: Record<string, string> = {
'Select the active memory plugin by id, or "none" to disable memory plugins.',
"plugins.slots.contextEngine":
"Selects the active context engine plugin by id so one plugin provides context orchestration behavior.",
"plugins.bundledMode":
'Controls whether bundled plugins bypass plugins.allow on runtime discovery paths. "compat" (default) preserves legacy behavior where bundled provider plugins are force-loaded on every chat turn. "respect-allow" gates bundled plugins by the allowlist the same way third-party plugins are gated.',
"plugins.entries":
"Per-plugin settings keyed by plugin ID including enablement and plugin-specific runtime configuration payloads. Use this for scoped plugin tuning without changing global loader policy.",
"plugins.entries.*.enabled":

View File

@@ -1073,6 +1073,7 @@ export const OpenClawSchema = z
.strict()
.optional(),
entries: z.record(z.string(), PluginEntrySchema).optional(),
bundledMode: z.enum(["compat", "respect-allow"]).optional(),
})
.strict()
.optional(),