fleet-memory/hindsight-clients
Nicolò Boschi 15f4b8769b
fix(ts-sdk): send null instead of undefined when includeEntities is false (#476)
* fix(ts-sdk): send null instead of undefined when includeEntities is false

When `includeEntities: false` was passed, the client serialized `entities`
as `undefined`, which is stripped from JSON. The API then applied its
default (`EntityIncludeOptions()` — enabled), silently ignoring the flag.

Fix: send `null` explicitly when `includeEntities === false` so the API
correctly interprets it as "disable entities".

chunks and source_facts are unaffected since their API defaults are null
(disabled), so omitting them from JSON produces the correct behaviour.

Also adds integration tests covering all three states of includeEntities.

* fix(ts-sdk): use toBeFalsy for null entity check in test
2026-03-03 14:54:48 +01:00
..
go feat: add tags filtering and q description fix for list documents API (#468) 2026-03-02 17:03:16 +01:00
python feat: add tags filtering and q description fix for list documents API (#468) 2026-03-02 17:03:16 +01:00
rust feat: observation_scopes field to drive observations granularity (#447) 2026-02-28 10:46:21 +01:00
typescript fix(ts-sdk): send null instead of undefined when includeEntities is false (#476) 2026-03-03 14:54:48 +01:00
.gitignore rename to hindsight (#2) 2025-11-25 19:28:26 +01:00