Skip to content

feat(antd-php): expose new HealthStatus diagnostic fields#48

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

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

Conversation

@Nic-dorman
Copy link
Copy Markdown
Collaborator

@Nic-dorman Nic-dorman commented May 5, 2026

⚠️ Reviewer: please run this SDK's tests locally before merging. The orchestrator's Windows host doesn't have this language's toolchain, so the diff is mechanical-pattern-only — not test-verified. See the commit message for which command was missing. Other SDKs in the same family (antd-py, antd-go) were verified locally and follow the same pattern.

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

  • Run this language's test suite locally and confirm green.
  • See commit message for the per-language test command.

Part of #37.

🤖 Generated with Claude Code

Mirrors antd-go v0.5.0 / antd-py: HealthStatus now carries \$version,
\$evmNetwork, \$uptimeSeconds, \$buildCommit, \$paymentTokenAddress,
and \$paymentVaultAddress as readonly promoted properties. All have
default values ('' / 0) so existing two-arg HealthStatus(ok, network)
calls keep compiling and pre-0.4.0 daemon responses parse cleanly.

Sync health() and async healthAsync() share a private static
healthStatusFromJson() helper to keep the field-mapping in one place.

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

AntdClientTest mock fixture extended to populate all 6 fields.
testHealth asserts each. New testHealthPreV0_4_0Daemon exercises the
empty-defaults path.

Note: composer isn't available on the orchestrator's Windows host;
phpunit was not run locally. php -l confirmed no syntax errors in the
edited files.

Part of #37.

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