UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

20 lines • 950 B
export type Value = string | number | boolean | string[]; export type Property = Record<string, unknown>; export type ValidatedMcpFormSchema = Form; type Form = { type: "object"; properties: Record<string, Property>; required?: string[]; }; export declare const isRecord: (value: unknown) => value is Record<string, unknown>; export declare function enums(property: Property): Array<{ value: string; label: string; }> | undefined; export declare function validValue(property: Property, value: unknown): value is Value; /** Validate a complete submitted form, including unknown keys and omitted required fields. */ export declare function validMcpFormContent(schema: Form, content: unknown): content is Record<string, Value>; /** Reject unsupported constraints rather than presenting a weaker schema. */ export declare function validateMrtrForm(schema: unknown): schema is Form; export {}; //# sourceMappingURL=form-schema.d.ts.map