Merge remote-tracking branch 'origin/main' into refactor/horizon-client-input
This commit is contained in:
@@ -36,11 +36,12 @@ MCP: `remove`, needs `confirm: true`.
|
||||
|
||||
## `horizon-launcher prepare`
|
||||
|
||||
Prepare a version's resources from your own Minecraft install.
|
||||
Prepare a version's resources from your own Minecraft install, or from Mojang.
|
||||
|
||||
horizon-launcher prepare
|
||||
|
||||
- `--minecraft`: The game folder of the official launcher, Prism Launcher, MultiMC, the Modrinth App, ATLauncher or GDLauncher (default: the launcher's, then every launcher's default)
|
||||
- `--download`: Download Minecraft from Mojang for the signed-in account that owns it, instead of using an install
|
||||
|
||||
MCP: `prepare`.
|
||||
|
||||
|
||||
@@ -77,6 +77,11 @@ possible; the launcher just doesn't offer it on its own.
|
||||
again for each account, the selected one first, until one owns the game: the token renewal
|
||||
(below) if due, then entitlements and profile. Without an owner the game doesn't start and Play
|
||||
says "Sign in with a Microsoft account that owns Minecraft: Java Edition to play", with Sign in.
|
||||
- **The window says it once.** A player without an owner (one who played offline until now) sees
|
||||
the gate's screen once when the launcher opens: why Horizon needs the account ("like other
|
||||
launchers"), that worlds, offline names and settings stay where they are, and Sign in, which shows
|
||||
the device code on the same screen. It comes back whenever Play is refused; Not now closes it,
|
||||
and Home keeps a Sign in row (`launcher/src/owner_page.rs`).
|
||||
- **The answer lives with the tokens.** Each account's keychain item keeps the last answer
|
||||
(`owns`), so no plain file can say yes. With no network (or a sign-in that can't be renewed) the
|
||||
last answer stands: being offline never blocks a player who passed before, and the game starts
|
||||
@@ -88,6 +93,17 @@ possible; the launcher just doesn't offer it on its own.
|
||||
the launcher's tests use accounts in a memory store (`MemoryStore`, and `HORIZON_NO_KEYCHAIN`
|
||||
for the CLI and MCP tests, which then have no owner).
|
||||
|
||||
## Downloading the game for an owner
|
||||
|
||||
Decided 2026-10-27. This is the only exception to "Horizon never downloads the game", and it
|
||||
applies only on the player's machine, for an account the owner gate just asked about. The
|
||||
launcher's "Download and prepare" (`horizon-launcher prepare --download`) fetches the pinned
|
||||
version straight from Mojang (`launcher/src/mojang.rs`): the version file, the client jar,
|
||||
libraries, the asset index and the assets, each checked against the size and sha1 Mojang lists.
|
||||
They go to `minecraft/` in the launcher's data folder, and the preparation runs as usual. The
|
||||
download can be cancelled and goes on where it stopped. CI, agents, harnesses and the repo never
|
||||
download or keep Mojang's files.
|
||||
|
||||
Refresh: the Minecraft token is renewed from the Microsoft refresh token (steps 2-5 with
|
||||
`grant_type=refresh_token`) when it has less than an hour left, before every launch; steps 6-7 run
|
||||
at every launch (the owner gate). A refused
|
||||
@@ -100,7 +116,8 @@ one is selected. "Sign out" deletes the account's secrets from the keychain.
|
||||
ownership answer) go to the OS
|
||||
keychain, one item per account: Keychain on macOS, Credential Manager on Windows, the Secret
|
||||
Service (GNOME Keyring, KWallet) on Linux. Service name `dev.playhorizon.launcher`, account = the
|
||||
Minecraft UUID.
|
||||
Minecraft UUID. Credential Manager takes at most 2560 bytes per item, which the secrets of a sign-in
|
||||
exceed: on macOS and Windows a longer secret is split over the items `<uuid>`, `<uuid>.1`, `<uuid>.2`...
|
||||
- `accounts.json` in the launcher's data folder keeps only public data: UUID, name, skin URL, which
|
||||
account is selected. Never a token.
|
||||
- No keychain available (a Linux box without a Secret Service, a locked keychain): sign-in still
|
||||
|
||||
+30
-4
@@ -420,10 +420,36 @@ than main's head and holds something main lacks, otherwise main (`tools/ci/night
|
||||
new publishes nothing. A Nightly can include pull requests not reviewed yet: that is what it is for, playing them
|
||||
before the gate.
|
||||
|
||||
### Trusted reviewers pick the pull requests
|
||||
### Trusted reviewers
|
||||
|
||||
One list, `.github/trusted-reviewers.txt`, governs two things for the people on it (kacpherek, rdbtCVS and
|
||||
Online5277 since 2026-10-27) and for Ludovic, with no repository role: `/nightly` (below) and triage by comment.
|
||||
|
||||
```text
|
||||
/close closes an issue as completed; a pull request is closed without merging
|
||||
/close not planned closes an issue as not planned
|
||||
/close duplicate of #123 comments "Duplicate of #123", closes as a duplicate
|
||||
/reopen
|
||||
/label bug, good first issue existing labels only; never creates one
|
||||
/unlabel bug
|
||||
```
|
||||
|
||||
- **Where.** On the first line of a comment on the issue or pull request (`.github/workflows/triage-command.yml`,
|
||||
`tools/ci/triage_command.py`). The workflow answers with one comment, `🤖 Triage: <action>, on behalf of @login`,
|
||||
linking the comment that asked; a refusal answers too.
|
||||
- **Refused.** Any label with `release` in its name (`release-now`, `release-blocker`, `skip-release`) and
|
||||
`full-parity`; anything on Ludovic's own issues and pull requests; a merged pull request; a locked thread; more
|
||||
than 60 actions per reviewer in 24 hours (counted from the workflow's own comments).
|
||||
- **Safety.** Same as `/nightly`: main's copy of the workflow runs, no pull request's code is checked out or run,
|
||||
the comment reaches the script as env vars, and the token has `issues` and `pull-requests` write only.
|
||||
- **Ludovic stays in charge.** A one-line pull request removing a login from the list revokes it as soon as it merges
|
||||
(the file is his under CODEOWNERS). A line `paused` stops `/nightly` and the triage commands for every reviewer;
|
||||
his own still work.
|
||||
|
||||
### Trusted reviewers pick the Nightly's pull requests
|
||||
|
||||
The Nightly is where contributors test pull requests before the gate. The trusted reviewers listed in
|
||||
`.github/nightly-reviewers.txt` (kacpherek, rdbtCVS and Online5277 since 2026-10-27) and Ludovic pick them with a
|
||||
`.github/trusted-reviewers.txt` (kacpherek, rdbtCVS and Online5277 since 2026-10-27) and Ludovic pick them with a
|
||||
comment on any issue or pull request (`.github/workflows/nightly-command.yml`, `tools/ci/nightly_set.py`):
|
||||
|
||||
```text
|
||||
@@ -458,9 +484,9 @@ comment on any issue or pull request (`.github/workflows/nightly-command.yml`, `
|
||||
- **Ludovic stays in charge.**
|
||||
- Ludovic's `/nightly clear` or `/nightly remove` always applies. A pull request he removed can only come back
|
||||
when he adds it.
|
||||
- A one-line pull request removing a login from `.github/nightly-reviewers.txt` revokes it as soon as it merges
|
||||
- A one-line pull request removing a login from `.github/trusted-reviewers.txt` revokes it as soon as it merges
|
||||
(the file is his under CODEOWNERS).
|
||||
- A line `paused` in that file stops every reviewer's `/nightly`; his own still work.
|
||||
- A line `paused` in that file stops every reviewer's `/nightly` (and triage commands); his own still work.
|
||||
- Main, the gate and releases don't change: picks reach only players who turned Nightly on.
|
||||
|
||||
- **Jobs.** `pick` chooses or assembles the commit and writes the notes (each pull request in it with its title,
|
||||
|
||||
Reference in New Issue
Block a user