UNPKG

@lark-project/cli

Version:

飞书项目插件开发工具

22 lines (21 loc) 916 B
interface ValidateOptions { format?: 'text' | 'json'; } /** * Validate `point.config.local.json` against the plugin schema. * * Why native: weak AI keeps fabricating prop_type enums (e.g. `multiSelect` * camelCase, `workItemTypeWithField` not in enum) and skipping required * fields (e.g. `multi_select` missing `options`). Letting AI ask the user * to spot these is the wrong end of the loop — the schema is authoritative, * so we surface schema errors mechanically. * * Output sinks (intentional split, do not "normalize"): * - text: human path → result + count summary on stdout, fatal causes on stderr * - json: structured `{ valid, errors: [{ path, message }] }` on stdout for AI auto-parse * * Exit 0 when valid, 1 on any error (file missing / bad JSON / schema * mismatch). */ export declare function validate(file: string | undefined, opts: ValidateOptions): Promise<void>; export {};