Skip to content

feat(antd-js): expose new HealthStatus diagnostic fields#40

Merged
Nic-dorman merged 2 commits into
mainfrom
feat/antd-js-health-enrichment
May 6, 2026
Merged

feat(antd-js): expose new HealthStatus diagnostic fields#40
Nic-dorman merged 2 commits into
mainfrom
feat/antd-js-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

Nic-dorman and others added 2 commits May 5, 2026 09:46
Mirrors antd-go v0.5.0 / antd-py: HealthStatus now carries version,
evmNetwork, uptimeSeconds, buildCommit, paymentTokenAddress, and
paymentVaultAddress. All default to "" / 0 so the type stays
constructable when talking to a pre-0.4.0 daemon that doesn't report
them.

REST client uses a module-level healthStatusFromJson() helper to keep
the field-mapping in one place. The helper is exported so tests can
exercise the pre-0.4.0 fallback path directly without round-tripping
through fetch.

antd-js is REST-only (no gRPC client). No proto regen step needed —
the SDK doesn't generate from proto.

Mock fixture extended to populate all 6 fields; the existing health()
test asserts each, plus a new helper-level regression test for the
{status, network}-only response shape.

Part of #37.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Nic-dorman Nic-dorman merged commit bd11db3 into main May 6, 2026
@Nic-dorman Nic-dorman deleted the feat/antd-js-health-enrichment branch May 6, 2026 12:15
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