Skip to content

feat(antd-zig): expose new HealthStatus diagnostic fields#53

Merged
Nic-dorman merged 1 commit into
mainfrom
feat/antd-zig-health-enrichment
May 6, 2026
Merged

feat(antd-zig): expose new HealthStatus diagnostic fields#53
Nic-dorman merged 1 commit into
mainfrom
feat/antd-zig-health-enrichment

Conversation

@Nic-dorman
Copy link
Copy Markdown
Collaborator

Summary

Mirrors the daemon-side enrichment shipped in #38: HealthStatus now carries version, evm_network/evmNetwork, uptime_seconds/uptimeSeconds, build_commit/buildCommit, payment_token_address/paymentTokenAddress, payment_vault_address/paymentVaultAddress. All default to "" / 0 so the type stays constructable when talking to a pre-0.4.0 daemon.

Test plan

See commit message for the per-language test command and pass count.

Part of #37.

🤖 Generated with Claude Code

Mirrors antd-go v0.5.0 / antd-py: HealthStatus now carries version,
evm_network, uptime_seconds, build_commit, payment_token_address, and
payment_vault_address. All have struct-level default values ("" / 0)
so existing two-field constructions keep compiling and pre-0.4.0
daemon responses parse cleanly.

parseHealthStatus duplicates each new string field via dupeString
(yielding allocator-owned 0-length slices when missing) and reads
uptime_seconds via jsonInt. HealthStatus.deinit frees each duped
string; freeing the static "" defaults from manual construction is a
no-op on the standard zig allocators.

antd-zig is REST-only (no gRPC client). No proto regen step needed.

src/tests.zig: existing parseHealthStatus tests assert the empty-
defaults path; new test exercises the 0.4.0 shape with all 6 fields.
zig test src/tests.zig --test-filter HealthStatus: 4 pass.

Part of #37.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit 7b40de7 into main May 6, 2026
@Nic-dorman Nic-dorman deleted the feat/antd-zig-health-enrichment branch May 6, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant