xbbg 1.4.8
Added
- Closed value sets now declared in
defs/bloomberg.toml: Overflow policies, validation modes, and SDK log levels are now centralized in the configuration file as the single source of truth.defs/codegen/generate.pygenerates a TypeScript vocabulary (_defs_gen.ts) for both JavaScript packages and Rust contract tests that fail if a hand-written parser stops accepting a declared spelling.
Changed
- Documentation and error messages now name complete legal value sets and defaults: Surface layers across Python (
pyo3-xbbg), JavaScript (N-API), the MCP server, API docstrings, and READMEs now document every accepted value for closed enums (overflow policy, validation mode, SDK log level, subscription output, request format, auth method, ZFP remote) alongside the default and any accepted aliases.
Fixed
@xbbg/coreexported a format wire value the engine rejects:Format.LONG_WITH_METADATAwas'long_with_metadata', but the engine only accepts'long_metadata'(defs/bloomberg.tomland the generated Python enum already used the correct value, so only the hand-written JavaScript constant was wrong).js-xbbg/test/smoke.test.tsasserted the broken value, which is why it went unnoticed.FormatandFormatKindare now generated fromdefs/bloomberg.toml.- LangGraph snapshot tools advertised a rejected overflow policy:
overflowPolicyonxbbg_stream_snapshot,xbbg_mktbar_snapshot, andxbbg_depth_snapshotwas a free-form string whose description named no legal values and whose example was thedrop_oldestpolicy removed in 1.2.0, so models emitted it and the engine failed the call withunknown overflow policy 'drop_oldest'. It is now a closed enum generated fromdefs/bloomberg.toml, and its description carries the accepted values, their semantics, and the default.
Full Changelog: v1.4.7...v1.4.8