Skip to content

feat: add image slot-info - #112

Merged
JPHutchins merged 3 commits into
intercreate:mainfrom
mniestroj:feat/image-slot-info
Nov 10, 2026
Merged

JPHutchins merged 3 commits into
intercreate:mainfrom
mniestroj:feat/image-slot-info

Conversation

@mniestroj

Copy link
Copy Markdown
Contributor

smpmgr image slot-info asks the server which images and slots the application can see, with their sizes (Zephyr's
CONFIG_MCUMGR_GRP_IMG_SLOT_INFO, image management command 6).

@JPHutchins JPHutchins left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, probably needs the linters run.

I don't think we need these tests since it's all covered in smp/smpclient.

`smpmgr image slot-info` asks the server which images and slots the
application can see, with their sizes (Zephyr's
CONFIG_MCUMGR_GRP_IMG_SLOT_INFO, image management command 6).

Assisted-by: Claude:claude-opus-5-5
`image slot-info` needs ImageSlotInfoRead from
intercreate/smpclient#145, which in turn needs the slot info models from
JPHutchins/smp#75. Neither is released yet, so take both from those pull
requests' commits, so that CI can run.

This is temporary: once both are released, drop it and move the
smpclient pin to the release. smp is named here only because Poetry
would otherwise take it from PyPI, where no release has slot info yet.
cbor2 moves to 6, which smp has required since 4.2.0.

Assisted-by: Claude:claude-opus-5-5
smpclient 7.4.0 (https://github.com/intercreate/smpclient/releases/tag/7.4.0)
ships ImageSlotInfoRead (intercreate/smpclient#145) and requires smp 4.3.0
(https://github.com/JPHutchins/smp/releases/tag/4.3.0), which ships
ImageSlotInfoReadRequest (JPHutchins/smp#75). The git pins to those pull
requests' commits are no longer needed, and smp is again resolved through
smpclient, as it was before this branch.

Co-Authored-By: claude-opus-5-5 <noreply@anthropic.com>
@JPHutchins

Copy link
Copy Markdown
Collaborator

Warning

LLM Disclosure

This post was authored by claude-opus-5-5 on behalf of @JPHutchins. JP asked me to merge and release smp, then carry the release through smpclient and smpmgr.

smp 4.3.0 and smpclient 7.4.0 are released with your slot info work (JPHutchins/smp#75, intercreate/smpclient#145). I pushed c59fd08 to this branch. It requires smpclient==7.4.0 instead of the two git pins and relocks. Your commits are unchanged.

Locally, black, isort, flake8, mypy and pytest (16 passed) all pass. Next: merge this and release smpmgr 0.20.0.

@JPHutchins
JPHutchins marked this pull request as ready for review November 10, 2026 22:25
@JPHutchins
JPHutchins merged commit 17fb45c into intercreate:main Nov 10, 2026
21 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.

2 participants