mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-15 11:22:15 +03:00
Merged via /merge-batch (lote 2026-08-26 batch 2, v3.8.51). Boarded no worktree combinado junto com outras ~20 PRs; validação única: typecheck/complexity/cognitive-complexity/changelog-integrity verdes, file-size rebaseado onde necessário (crescimento legítimo), lint com os mesmos 228 achados pré-existentes confirmados via sonda contra o tip puro (não introduzidos por este lote), e 292 testes focados (unit) + 18 (vitest) passando. Obrigado pela contribuição.
18 lines
773 B
TypeScript
18 lines
773 B
TypeScript
/**
|
|
* Nimble shared client constants.
|
|
*
|
|
* Nimble asks every integration to identify itself with a stable client-source
|
|
* header so calls can be attributed to the host product. Both Nimble surfaces
|
|
* in OmniRoute — search (`POST /v1/search`, wired in open-sse/handlers/search.ts)
|
|
* and fetch (`POST /v1/extract`, open-sse/executors/nimble-fetch.ts) — send it,
|
|
* and both read the value from here so the two can never drift apart.
|
|
*
|
|
* Docs: https://docs.nimbleway.com/api-reference/introduction
|
|
*/
|
|
|
|
/** Header Nimble uses to attribute a request to the calling product. */
|
|
export const NIMBLE_CLIENT_SOURCE_HEADER = "X-Client-Source";
|
|
|
|
/** The value OmniRoute sends. Do not vary it per surface or per request. */
|
|
export const NIMBLE_CLIENT_SOURCE = "omniroute";
|