Validates plugin manifests against schema and custom rules.
// Source: https://github.com/nexu-io/open-design | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { PluginManifestSchema, type PluginManifest } from '@open-design/contracts';
export interface ValidateResult {
ok: boolean;
warnings: string[];
errors: string[];
}
// Doctor-level validation. Combines schema parse + cross-field rules that
// the JSON Schema cannot easily express:
//
// - Pipeline stages with `repeat: true` must declare an `until`
// expression (spec §10.2 hard constraint).
// - Capability list must be an array of canonical capability strings;
// unknown ids land in `warnings[]` instead of `errors[]` so a forward
// spec patch can introdu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key