Collapse the three near-identical optional-text helpers (optionalText/optionalBaseUrl/listToText) into one optionalText with a strip-trailing-slash flag, route listToText + toolsets through the existing splitCronList, and replace the repeated typeof x === 'string' ? x : '' ladders with a single asString helper. Behavior-identical; all 16 vitest cases pass. |
||
|---|---|---|
| .. | ||
| api.ts | ||
| chat-title.test.ts | ||
| chat-title.ts | ||
| cron-job.test.ts | ||
| cron-job.ts | ||
| dashboard-flags.ts | ||
| format.ts | ||
| fuzzy.ts | ||
| gatewayClient.ts | ||
| nested.ts | ||
| reasoning-effort.test.ts | ||
| reasoning-effort.ts | ||
| resolve-page-title.ts | ||
| schedule.test.ts | ||
| schedule.ts | ||
| session-refresh.test.ts | ||
| session-refresh.ts | ||
| slashExec.ts | ||
| utils.ts | ||