v0.4.6: Zod regex + workflow hints on ID fields
Zod regex + workflow hints on ID fields
Adds structural schema validation and discovery hints to candidate_id
and committee_id parameters across all tool definitions.
Changed:
- candidate_id fields — added
.regex(/^[HSP][0-9A-Z]+$/i)to surface apatternin JSON Schema; updated.describe()to point callers toopenfec_search_candidatesfor IDs (#2) - committee_id fields — added
.regex(/^C\d+$/i)to surface apatternin JSON Schema; updated.describe()to point callers toopenfec_search_committeesfor IDs (#2) - Tests — updated invalid-ID assertions to expect
ZodErrorat parse time
129 tests pass; bun run devcheck clean (outdated-dep advisory pre-existing, unrelated).