-
refactor(douanier): scrub the internal codename from the client surface · 5e7aefb6
"Douanier" is the internal codename for the audio sub-API; it shouldn't be what a consumer imports. Renamed the client-facing surface to the platform brand (NechAPI), keeping "Douanier" only as the internal service/repo name. - clients/nech.ts (was douanier.ts) — ONE umbrella `NechAPI` client, namespaced per sub-API: `new NechAPI({token}).audio.emotion(clip)`. Future sub-APIs add `nech.geo.…` with no import change. Also exports the standalone `NechAudio` sub-client for the smaller-bundle path. DouanierError→NechError, DouanierOptions→NechOptions. Typechecks clean under tsc --strict. - response header X-Douanier-Cache → X-Nech-Cache (app.py + all tests + client + docs). Verified live end-to-end: miss→hit, old header gone. - clients/README + onboarding.html (the Shipow PDF source) updated to NechAPI / nech.audio. PDF re-rendered. Built + redeployed douanier:latest to erable; 67 tests green. NOTE (next iteration): OpenAPI info.title and /healthz `service` still say "douanier" — a cosmetic /docs leak, scrub on the next redeploy.PLN (Algolia) authored5e7aefb6
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| README.md | Loading commit data... | |
| nech.ts | Loading commit data... | |
| onboarding.html | Loading commit data... | |
| openapi.json | Loading commit data... |