[WIP] Rename MessageType::Req to MessageType::Cmd and add header#14
Closed
Copilot wants to merge 1 commit into
Closed
[WIP] Rename MessageType::Req to MessageType::Cmd and add header#14Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/protocol/directory andsrc/protocol/MessageType.hwithCmd='C'and backward-compatible wire helperssrc/TinyProtocol.hto be an umbrella header that includesprotocol/MessageType.hkeywords.txtto replaceTYPE_REQwithTYPE_CMDMessageType::Cmd) intest/test_protocol.cppMessageType::CmdusageOriginal prompt
Summary
Rename MessageType::Req to MessageType::Cmd (command), use wire byte 'C' for new outgoing frames, and preserve backward compatibility by accepting legacy 'R' wire byte when parsing. Add a dedicated header src/protocol/MessageType.h with helpers for wire conversion and stringification. Update umbrella header (src/TinyProtocol.h) to include the new header and document the migration. Update tests/examples/docs to prefer Cmd/'C'.
Why
Detailed changes to make
Include exact header content (as implemented in PR) to ensure consistency.
Notes for reviewers
Files to be changed/added
Testing
Repository
petesramek/tiny-link
The following is the prior conversation context from the user's chat exploration (may be truncated):
Assistant: I'm waiting for your confirmation to proceed with creating the pull request in petesramek/tiny-link — please confirm and I'll open it.
User: @Copilot Accepted Confirmation: Confirm agent session
Assistant: Direct answer
What I did and why
What’s next (automated steps already queued)
Track the task
If you want any changes to scope (e.g., prefer a different callback API, or prefer I keep the README change out of this PR), tell me now and I’ll adjust while the task is applied.
User: if there is a changethat needs to be done to README, then do it. Also update tests if ...
This pull request was created from Copilot chat.
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.