Commit a60b942
fix(mongodb-mcp): add BsonFieldType enum to Zig FFI (standards#155) (#119)
## Summary
Class C ABI gap from the Phase 2 full-tree survey (standards#92):
`MongodbMcp.SafeDatabase.BsonFieldType` (11 BSON wire-protocol field
types) was declared in the Idris2 ABI but absent from
`mongodb_mcp_ffi.zig`. Adds the matching `pub const BsonFieldType =
enum(c_int)` with the canonical encoding (1–18 with BSON-spec gaps).
ABI parity only — the wire-protocol encoder/decoder that *uses* these
tags is a separate piece of work; declaring the enum here lets
`iseriser abi-verify` structurally check the encoding.
## Verified
- `iseriser abi-verify` → exit 0 (3 enums clean)
- `zig build test` → 17/17 green
## Next
After merge, mongodb-mcp can join the abi-drift allowlist
(boj-server#115's 56 → 57).
Closes hyperpolymath/standards#155
Refs hyperpolymath/standards#92
Refs hyperpolymath/standards#89
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4d5d565 commit a60b942
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
46 | 67 | | |
47 | 68 | | |
48 | 69 | | |
| |||
0 commit comments