Remove default from twoStep schema requirement

Merged
MI
7mo ago
+2-6

why

z.boolean().default(false) on line 448 is incompatible with OpenAI's strict structured-output mode.

OpenAI's error:

'required' is required to be supplied and to be an array including every key in properties. Missing 'twoStep'.

what changed

test plan


Summary by cubic

Made twoStep a required boolean in the act schema (no default). This removes the silent false default and forces callers to be explicit about two-step actions.

  • Migration
    • Always pass twoStep: true | false when calling act.
    • tsconfig.json change is formatting-only; no runtime impact.