Repository navigation
HUD plugins: install a package from an address - #1201
Merged
Merged
Conversation
…tall-from-address Same headerless, redirect-following request as https_get_public, through the same request_result_evidence entry with Some(max_body), answering the whole RequestFailure so a caller can tell a 404, a refused connection, a certificate the television cannot verify and a body past the bound apart. No curl option added. The "QR fetch is the only caller" doc is fixed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a typed error per refusal gh:owner/repo[@tag] maps to the release asset, https:// passes when well-formed and carries no userinfo, http:// only for a literal RFC 1918 IPv4 host and is flagged a dev source. Owner, repo and tag are restricted to GitHub's character sets and percent-encoded nowhere. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…k, and installs only on confirm A new idle-only Fetch event pushes HudEffect::Fetch (the parsed Address, the package bound) and Fetched answers it. The bytes go through the same Validate step a drop file does; a loadable verdict holds them as the offer (nothing written) until InstallOffer, which writes the bytes the viewer saw, or DeclineOffer, which writes nothing. A second request is Handled::No, a Refresh ends a fetch in flight or an offer with NotWritten, and a late Fetched for a tag nothing awaits is dropped. Notice::NotWritten now carries Option<Sha> (a fetch has none before it answers) and Notice::FetchFailed names why a fetch brought back no package. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…idge carries the offer HudEffect::Fetch runs on a small network thread (task::spawn_small, the lane the stores' fetches use), never the storage worker, so a slow request cannot hold back a Refresh behind it. The runner maps the response onto the store's typed FetchError (404/410, too large, certificate, unreachable) and logs one `hud:` line with the host and the code. The driver and Bridge carry Fetch / InstallOffer / DeclineOffer; HudList publishes the offer and whether a fetch is in flight. Co-Authored-By: Claude Opus 5.5 <[email protected]>
One new row, "Install from address": OK raises the television keyboard (the Search page's mechanism; the surface re-addresses the inner page's keyboard delivery), the row's detail line shows the draft, OK on the keyboard parses it and sends the fetch, a refusal is said under the title. A package the store fetched is offered through the drop file's two-answer prompt (name and version, where it came from, a development source for plain http, Unreviewed), Cancel focused. The row is dimmed while a fetch runs. Every new string is in all eleven locales; the fit tests cover the row and the new lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Settings > Video & playback > Player HUD gains Install from address. A viewer can enter
gh:owner/repo[@tag], an HTTPS URL, or an HTTP URL with a literal private IPv4 host. The fetched package goes through the existing admission and confirmation flow, with Cancel focused; installing writes it withSource::Addressonly after confirmation.The parser and package store remain pure. Fetching leaves as a tagged effect and runs on the existing network runner, keeping the storage worker free. Busy requests are refused, stale answers are dropped, and Refresh displaces an outstanding fetch through the existing notice flow.
The shared public fetch sends no Plex credentials, bounds the response body, caps redirects, and retains HTTPS once a redirect upgrades to it. Failures distinguish not found, too large, connection failure, certificate verification and package admission errors. The editable address uses the shared text buffer's actual caret.
No issue tracks the HUD-plugin work; none was opened for this PR.
Local TLS regressions cover an allowed upgrade and refusal before a later plaintext hop. The television's certificate-store behavior and the new UI on the television remain unverified; the owner authorized landing with these device checks still outstanding while the shared TV is held by another lane.
Validation on committed clean head
1eae9c014:ui:test result: ok. 1499 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 18.32snet:test result: ok. 213 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.38sscreens:test result: ok. 1959 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 28.20smake check-nodef,make lint, dependency and module-layer checks passed on that code commit. Final head79e36638echanges only the cap classifications; cap and shipped-face checks pass on the committed clean tree. Independent combined-diff, documentation and source-level firmware reviews are complete. CI will run the ARM build; no television claim is made.