HF RL Explorer

Fixes for form fields: TypeScript narrowing, array helpers, reactivity, and prototype pollution

Fixes for form fields: TypeScript narrowing, array helpers, reactivity, and prototype pollution: a task in LegoFlow-SWE (Harbor dataset). When using a schema with a discriminated union (e.g., valibot variant or Zod discriminatedUnion ), the TypeScript types for form.fields are incorrect.

The task

When using a schema with a discriminated union (e.g., valibot `variant` or Zod `discriminatedUnion`), the TypeScript types for `form.fields` are incorrect.

Part of Lego-X/LegoFlow-SWE.