Skip to content

Add agent version and capabilities to INFO response#40

Merged
widgetii merged 1 commit intomasterfrom
feature/agent-version
Apr 6, 2026
Merged

Add agent version and capabilities to INFO response#40
widgetii merged 1 commit intomasterfrom
feature/agent-version

Conversation

@widgetii
Copy link
Copy Markdown
Member

@widgetii widgetii commented Apr 6, 2026

Summary

  • Extend RSP_INFO payload from 16 to 24 bytes with agent_version (uint32) and capabilities (uint32 bitfield)
  • Host parses extended fields when present
  • defib agent info CLI now displays version and capability list
  • Capability flags: flash_stream, sector_bitmap, page_skip, set_baud, reboot, selfupdate, scan

Test plan

  • make -C agent — builds (12652 bytes)
  • make -C agent test — 5406/5406 pass
  • pytest tests/ — pass
  • ruff check — clean
  • CI green

🤖 Generated with Claude Code

Extend RSP_INFO from 16 to 24 bytes with two new fields:
- agent_version (uint32_t): protocol version, currently 2
- capabilities (uint32_t): bitfield of supported features
  - flash_stream, sector_bitmap, page_skip, set_baud,
    reboot, selfupdate, scan

Host parses extended fields when present (len >= 24).
CLI displays version and capability list in `defib agent info`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@widgetii widgetii merged commit 9526dc2 into master Apr 6, 2026
13 checks passed
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