Using 'mode' enum instead of old 'cua' boolean

Merged
MO
10mo ago
+124-7

why

Discord user reported that the mode property isn't typed in the Python SDK, which was due to the OpenAPI spec being out of date

what changed

Replaced cua boolean field with mode enum in zod objects + regenerated openapi spec.

test plan


Summary by cubic

Updated agent config to use a mode enum (dom, hybrid, cua) instead of the old cua boolean, and regenerated the OpenAPI spec. Kept cua for backward compatibility but deprecated; mode takes precedence if both are set.

  • Migration
    • Use agentConfig.mode; cua is deprecated but still accepted. If both are set, mode overrides cua.
    • Valid values: dom, hybrid, cua.