feat(plugin/tether): send HTML updates via update --html#356
Merged
Conversation
Updates were plain-text only, so a rich message (diagram, table) meant dropping to a raw API call. `tether.sh update` now takes `--html <file>` (optionally `--text "<fallback>"`); the reply carries `html_body`, and a plain-text `body` fallback is auto-derived from the HTML when not supplied. `t_api_reply` gained an optional html_body arg. Bumps plugin to 0.4.4. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Follow-up to #354/#355, requested live over the tether thread ("if tether doesn't support sending html, we should implement it").
What
tether.sh updatewas plain-text only, so a rich update (diagram, table, formatting) required a hand-rolledcurlwithhtml_body. Now:html_body(the file's contents).bodyfallback is auto-derived from the HTML (tags stripped, block elements → newlines, entities unescaped) unless--text/a positional string is given.t_api_replygained an optionalhtml_bodyargument;t_html_to_textis the fallback deriver.Testing
curl:update --htmlpayload containshtml_body: trueand a sensible derivedbody("Status\n Slice 1 & 2 done .\n tests green").tether.sh update --html.validate-plugin.mjs: 3 skills, version 0.4.4, manifests in sync.Bumps plugin to 0.4.4.
🤖 Generated with Claude Code