fix(openclaw): emit empty configSchema in plugin manifests

OpenClaw rejects generated plugin manifests that omit configSchema, even for tool plugins with no user configuration. Always emit an empty object schema so converted installs boot cleanly.\n\nAdd converter and writer regression coverage for the manifest shape.\n\nFixes #224
This commit is contained in:
Kieran Klaassen
2026-03-03 20:30:27 -08:00
parent 020eb8836e
commit 4e9899f346
4 changed files with 59 additions and 6 deletions

View File

@@ -64,6 +64,10 @@ function buildManifest(plugin: ClaudePlugin, skillDirs: string[]): OpenClawPlugi
id: plugin.manifest.name,
name: formatDisplayName(plugin.manifest.name),
kind: "tool",
configSchema: {
type: "object",
properties: {},
},
skills: skillDirs.map((dir) => `skills/${dir}`),
}
}

View File

@@ -2,16 +2,18 @@ export type OpenClawPluginManifest = {
id: string
name: string
kind: "tool"
configSchema?: {
type: "object"
additionalProperties: boolean
properties: Record<string, OpenClawConfigProperty>
required?: string[]
}
configSchema: OpenClawConfigSchema
uiHints?: Record<string, OpenClawUiHint>
skills?: string[]
}
export type OpenClawConfigSchema = {
type: "object"
properties: Record<string, OpenClawConfigProperty>
additionalProperties?: boolean
required?: string[]
}
export type OpenClawConfigProperty = {
type: string
description?: string