refactor(forms): extract OpenCode/OMO/OpenClaw state from ProviderForm into dedicated hooks

Split ProviderForm.tsx (2227 → 1526 lines) by extracting:
- opencodeFormUtils.ts: pure functions and default config constants
- useOmoModelSource: OMO model source collection from OpenCode providers
- useOpencodeFormState: OpenCode provider form state and handlers
- useOmoDraftState: OMO profile draft editing state
- useOpenclawFormState: OpenClaw provider form state and handlers
This commit is contained in:
Jason
2026-02-18 23:36:36 +08:00
parent 9514d08ef6
commit 0f4ce74916
7 changed files with 1161 additions and 854 deletions
File diff suppressed because it is too large Load Diff