| summary | toArray tolerates JSON-stringified array arguments from LLM callers — get_field_values fields no longer silently wraps a stringified array into one bogus element |
|---|---|
| breaking | false |
| security | false |
toArray(query-helpers) parses a[-leading string thatJSON.parses to an all-string array into that array, rather than scalar-wrapping it. Any string that fails to parse, or parses to a non-string-array, falls through to the prior scalar-wrap — every legitimate scalar (status/phase enums, NCT IDs, PascalCase field names) starts with a letter, so a[-leading value is always a stringified array or garbage. Overloads keep required call sites typedstring[]. (#75)get_field_valuesfieldsandget_study_resultsnctIdsroute their one-or-many normalization throughtoArrayinstead of an inlineArray.isArraycheck. (#75)
get_field_valuesfieldsno longer wraps a JSON-stringified array ('["OverallStatus","Phase"]') into a single bogus element that fails downstream with an opaque upstream error. (#75)