Public: anyone can read this; the crew can change it.
The API's "not found" and "authenticate" sentences live in one place, read by respond.ts and proposal tokens #5583
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: The API's not-found and authenticate answers reads the same wherever it is said, because it is said from one place. Today each sentence below is typed out separately in src/http/respond.ts, src/actions/proposal_tokens.ts, so the next edit to one copy makes them drift.
Done:
- "no such resource here, or it is not visible to you" - "authenticate with a bearer token or account credentials"
grep -rnfor each sentence under src/ finds only the module.bun x tsc --noEmitand, if src/web changed,bun scripts/design-lint.ts. A red test elsewhere that main also has is named in the pull, not a reason to stop.Files: src/http/respond.ts (export them; proposal_tokens imports), src/http/respond.ts, src/actions/proposal_tokens.ts, test/respond-words.test.ts. Risk: a pure move; change no wording. Touch only the lines the sentences are on.