Skip to content

Commit d2612bb

Browse files
fix(comms-mcp): add GmailResource + CalendarResource enums to Zig FFI (standards#151) (#124)
Class C ABI gap. `GmailResource` (4 variants) + `CalendarResource` (3 variants) were Idris2-only. `iseriser abi-verify` → exit 0 (4 enums, 6 transitions); `zig build test` → 21/21 green. Closes hyperpolymath/standards#151 Refs hyperpolymath/standards#92, #89 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 36a77c0 commit d2612bb

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

cartridges/comms-mcp/ffi/comms_ffi.zig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,24 @@ pub const CommsProvider = enum(c_int) {
2626
custom = 99,
2727
};
2828

29+
/// Gmail resource types — mirrors `CommsMcp.SafeComms.GmailResource`
30+
/// + `gmResourceToInt` encoding. Declared here so `iseriser abi-verify`
31+
/// can structurally check the encoding against the Idris2 source.
32+
pub const GmailResource = enum(c_int) {
33+
gm_message = 1,
34+
gm_thread = 2,
35+
gm_label = 3,
36+
gm_draft = 4,
37+
};
38+
39+
/// Google Calendar resource types — mirrors
40+
/// `CommsMcp.SafeComms.CalendarResource` + `calResourceToInt` encoding.
41+
pub const CalendarResource = enum(c_int) {
42+
cal_event = 1,
43+
cal_calendar = 2,
44+
cal_free_busy = 3,
45+
};
46+
2947
// ═══════════════════════════════════════════════════════════════════════
3048
// Session State Machine
3149
// ═══════════════════════════════════════════════════════════════════════

0 commit comments

Comments
 (0)