Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Undo dispatch can lose mutation acknowledgements and cause retries to recall another message, while restore can trigger delivery without required send confirmation.
2 open issues
What changed in this PR
Updates hey-cli’s Go SDK from v0.35.1 to v0.37.0 and synchronizes its bundled MCP API models and Nix dependency hash.
Changes:
- Upgrades the SDK and module checksums.
- Adds entry restoration and delayed-send undo operations to the MCP models, and updates the documented Undo Send scope.
- Refreshes model provenance and the Nix vendor hash.
[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or rungh pr ready --undo.
Click "Ready for review" or rungh pr readyto reengage.
| File | Description |
|---|---|
nix/package.nix |
Refreshes the dependency vendor hash. |
internal/mcpserver/model/PROVENANCE.json |
Records the v0.37.0 model source. |
internal/mcpserver/model/openapi.json |
Adds restore and undo endpoints; updates scope documentation. |
internal/mcpserver/model/behavior-model.json |
Adds behavior metadata for both operations. |
go.sum |
Updates SDK checksums. |
go.mod |
Pins the SDK to v0.37.0. |
Review effort: Balanced
| "destructive": false, | ||
| "idempotent": true, | ||
| "no_redirect": false, | ||
| "open_world": false, |
| "/topics/{topicId}/undo_send.json": { | ||
| "post": { | ||
| "description": "Call back the last message the caller sent on a topic, while Undo Send still holds it\n(Topics::UndoSendsController#create). The message returns to Drafts, unsent. HEY picks\nthe message: the caller's last delayed entry on the topic, which need not be the one a\ncaller has in mind when two were sent to one thread within the delay. A reply that broke\nout into a thread of its own is called back on that thread, the one SentMessage's\ntopic_id names, and returns to the thread it answered.\n\nHEY answers a success with a redirect and no body, 303 to the draft: /messages/{entryId}/edit\nfor a new message, /topics/{topicId}?expanded_draft={entryId} for a reply. That Location\nis the only place HEY names the entry it called back. A generated client follows the\nredirect and reads the draft or its thread, which says the undo went through and not\nwhich entry it was; the Go, Rust, Kotlin and Swift conveniences send it without\nfollowing and answer the entry. TypeScript's client follows no redirect: there the 303\narrives as an error whose status is 303, and that status is the undo having gone through.\nWith nothing left to call back (the delay ran out and the message went, or none was held)\nHEY answers 400 and changes nothing. A scoped token needs write.\n\nNever sent again after a failure: a second undo calls back the next delayed entry.", | ||
| "operationId": "UndoTopicSend", |
Member
Author
|
🤖 main already requires hey-sdk/go v0.37.0, so this bump is no longer needed. Closing. |
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.

Bumps
github.com/basecamp/hey-sdk/gofrom v0.35.1 to v0.37.0. Opened by coworker's sdk-bump, the backstop for Dependabot: no Dependabot PR 15h after the release. It opens whether or not the bump builds: what broke is the to-do list.Build
go get github.com/basecamp/hey-sdk/go@v0.37.0,go mod tidy,scripts/sync-mcp-model.sh SDK_CHECKOUTTests run in this PR's CI.
SDK changes since v0.35.1
Releases: v0.36.0, v0.37.0. Read MIGRATING.md for the breaks a clean build won't show.
Other SDK bumps
Summary by cubic
Bumps
github.com/basecamp/hey-sdk/gofrom v0.35.1 to v0.37.0 and syncs the bundled API model. This makes two new operations available: restoring a trashed entry and calling back a delayed send. The Nix vendor hash and module checksums were refreshed, and the build, vet, and tests pass.Written for commit 2d92f67. Summary will update on new commits.