You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Development only: npm run lint checks the structure of the code with a shared preset (ESLint with Babel's
TypeScript parser — TypeScript 7 has no JavaScript API for typescript-eslint —, jscpd for repeated blocks, a ratchet
that keeps the recorded baselines from growing); CI runs it. Nothing in the published package changes.
Internal: the usage, raw-call, file-answer and training tools each hand one step to a function of its own (the usage
query, the upload fields, the failed file answer, the training request), so the formatter adopted next keeps every
function within 40 lines; three complexity baseline entries are gone. Behaviour unchanged.
Internal: every refusal that quotes a Zod error's issues (path: message) is built by one helper, src/issues.ts
(seven inline copies in six files before). Messages unchanged.
Development only: Prettier formats the code (npm run format; npm run lint checks it, in CI too), printWidth 120 —
the style the code already had; the code reformatted once, in three pull requests that each fit one review
(scripts/, src/, test/); .git-blame-ignore-revs names all three.
Development only: @babel/core and @babel/eslint-parser 8.0.7, jscpd 5.4.1, prettier 3.9.10 (the code's
formatting is unchanged), and actions/setup-node 7.1.0 in the workflows.