monitor: add HMP info version and MMP query-version (#79)#123
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75c87cd16a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
75c87cd to
9be6e78
Compare
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9be6e781f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review please |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9be6e781f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review this pr please. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9be6e781f2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
9be6e78 to
43c5c16
Compare
cargo fmt --check on CI (linux) wants the three-element tuple split across lines. Local rustfmt did not flag this when the file was first added, so the diff slipped past pre-push. Apply the rustfmt suggestion verbatim to clear the failing fmt-check job on PR gevico#123. Signed-off-by: Leo Cheng <chengkelfan@qq.com>
|
@codex Please review this PR thoroughly again. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b0f984138
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
4b0f984 to
b1ee0f5
Compare
|
@codex Please review this PR thoroughly again. |
|
Codex Review: Didn't find any major issues. Swish! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@Lfan-ke please fix ci failed |
|
got it.
|
Add an `info version` HMP command that returns `machina <semver>` and a
`query-version` MMP command that returns the QMP-compatible VersionInfo
shape {"qemu":{"major","minor","micro"},"package":"machina"}.
Both the MMP greeting and query-version derive their version triple from
CARGO_PKG_VERSION via a shared helper, so a single session never
advertises conflicting versions to a client.
Signed-off-by: Leo Cheng <chengkelfan@qq.com>
b1ee0f5 to
ca5f6ba
Compare
Summary
Closes #79. Neither HMP nor MMP exposed the machina build version,
forcing users to read `Cargo.toml` to report a bug. Add a small
version surface to both.
returns `machina <CARGO_PKG_VERSION>`; `help_text()` grows a
matching line.
returns `{"return": {"package": "machina", "version": "<...>"}}`.
help-text regression, and the MMP JSON shape. The expected version
comes from `env!("CARGO_PKG_VERSION")` so the tests follow the
workspace version automatically.
Test plan