Skip to content

v0.2.2: orcid_get_work_detail bulk endpoint — BREAKING: put_code → put_codes

Choose a tag to compare

@cyanheads cyanheads released this 04 Jun 09:40
v0.2.2
7b645a5

orcid_get_work_detail bulk endpoint — BREAKING: put_code → put_codes

BREAKING: orcid_get_work_detail input parameter renamed from put_code (single integer) to put_codes (array of 1–100 integers). Callers must update tool invocations. Migration: put_code: 123put_codes: [123]. Output shape also changed to { works[], errors[] }.

Changed:

  • put_code: numberput_codes: number[] (1–100, Zod min/max validated). Resolves #10.
  • Output: flat work record → { orcidId, orcidUri, works: WorkDetail[], errors: WorkError[] }.
  • Per-record errors (not-found or inaccessible put-codes) arrive in errors[] without failing the whole call.
  • Single ORCID bulk round-trip (GET /v3.0/{orcid}/works/{code1},{code2},...) regardless of count.

228 tests pass; bun run devcheck clean.