[PR #7382] [MERGED] Port map: eight rest-015 command methods the file never answered #7567

Closed
opened 2026-11-03 07:19:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7382
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-e-rest-015


📝 Commits (1)

  • 7b0a0ef Port map: eight rest-015 command methods the file never answered

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 tools/port_map/rest-015.tsv (+8 -0)

📄 Description

Rows of tools/port_map/rest-015.tsv (149 rows before this change, 157 after, map-check clean against 26.3). Eight command methods the file never answered have rows; each is a function whose doc comment names the vanilla method.

Rows added

row verdict where
FetchProfileCommand.reportResolvedProfile port crates/horizon-client/src/game/commands/extra.rs::Game::report_resolved_profile
FillCommand.wrapWithMode port crates/horizon-command/src/vanilla.rs::fill_modes
LocateCommand.locatePoi port crates/horizon-client/src/game/commands.rs::Game::cmd_locate_poi
MsgCommand.sendMessage port crates/horizon-client/src/lan/hub/chat.rs::Hub::whisper
PlaceCommand.checkLoaded port crates/horizon-client/src/game/commands/place.rs::Game::place_check_loaded
PlaceCommand.placeFeature port crates/horizon-client/src/game/commands/place.rs::Game::cmd_place_generated
PublishCommand.publish port crates/horizon-client/src/game/commands/extra.rs::Game::cmd_publish
ReloadCommand.reloadPacks port crates/horizon-client/src/game/functions.rs::Game::apply_pack_change
  • report_resolved_profile (extra.rs:886) encodes the profile as ResolvableProfile.CODEC does into the component, adds the four clickable actions and the head object, and sends it with sendSuccess(..., false).
  • fill_modes (vanilla.rs:509) puts the outline, hollow, destroy and strict literals over the fill node — FillCommand.wrapWithMode, which vanilla uses to build both the plain and the mode-wrapped forms.
  • cmd_locate_poi (commands.rs:3387) runs PoiManager.findClosestWithType inside 256 blocks over the loaded chunks.
  • Hub::whisper (chat.rs:470) sends msg_command_outgoing to the sender and msg_command_incoming to each target — MsgCommand.sendMessage, and it logs nothing, as vanilla's sendMessage does not.
  • place_check_loaded (place.rs:71) rejects a range whose chunks are not in the dimension or not loaded, with argument.pos.unloaded.
  • cmd_place_generated (place.rs:83) is the shared path for placeFeature, placeJigsaw and placeStructure.
  • cmd_publish (extra.rs:945) is PublishCommand.publish plus IntegratedServer.publishServer: it picks a port (HttpUtil.getAvailablePort when none is given), refuses when already published, opens the LAN and reports the port with a copy-on-click click.
  • apply_pack_change (functions.rs:934) is ReloadCommand.reloadPacks: no message of its own, the content tables reloaded with the functions.

Checked and left unanswered: ExperienceCommand.queryExperience, LocateCommand.locateBiome/locateStructure, GameModeCommand.setGameMode/logGamemodeChange, ParticleCommand.sendParticles, ScoreboardCommand.listTrackedPlayers and the remaining register rows stay as they are — the ledger's guesses for them are a command handler that covers several arms, and a where there would name a function that is only part of the method. They are cheap for a later pass that reads each handler.

Map-check:

PORT_LEDGER_OUT=/tmp/led-volE2 python3 tools/port_ledger.py map-check tools/port_map/rest-015.tsv
157 rows, no problems.

Proven: every where cell resolves under map-check and each cited function's doc comment names the vanilla method; the bodies were read for report_resolved_profile (the codec-shaped profile, the four actions, sendSuccess(false)), fill_modes (the four mode literals), whisper (the two chat types and the per-target loop), place_check_loaded (the unloaded rejection), cmd_place_generated and cmd_publish (the port, the already-published refusal, the LAN start).

Not proven: that fill_modes covers every mode form vanilla's wrapWithMode builds — vanilla wraps each of replace, keep and filtered in the four modes, and the Horizon tree splits that across more than this one function, so the row names the mode half. I did not run /fill in each mode, nor /publish to a second client.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7382 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-e-rest-015` --- ### 📝 Commits (1) - [`7b0a0ef`](https://github.com/horizon-rust/horizon/commit/7b0a0efc7d4fdf575c0eb75011cb2433eb00cd13) Port map: eight rest-015 command methods the file never answered ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-015.tsv` (+8 -0) </details> ### 📄 Description Rows of `tools/port_map/rest-015.tsv` (149 rows before this change, 157 after, map-check clean against 26.3). Eight command methods the file never answered have rows; each is a function whose doc comment names the vanilla method. **Rows added** | row | verdict | where | | --- | --- | --- | | `FetchProfileCommand.reportResolvedProfile` | port | `crates/horizon-client/src/game/commands/extra.rs::Game::report_resolved_profile` | | `FillCommand.wrapWithMode` | port | `crates/horizon-command/src/vanilla.rs::fill_modes` | | `LocateCommand.locatePoi` | port | `crates/horizon-client/src/game/commands.rs::Game::cmd_locate_poi` | | `MsgCommand.sendMessage` | port | `crates/horizon-client/src/lan/hub/chat.rs::Hub::whisper` | | `PlaceCommand.checkLoaded` | port | `crates/horizon-client/src/game/commands/place.rs::Game::place_check_loaded` | | `PlaceCommand.placeFeature` | port | `crates/horizon-client/src/game/commands/place.rs::Game::cmd_place_generated` | | `PublishCommand.publish` | port | `crates/horizon-client/src/game/commands/extra.rs::Game::cmd_publish` | | `ReloadCommand.reloadPacks` | port | `crates/horizon-client/src/game/functions.rs::Game::apply_pack_change` | - `report_resolved_profile` (extra.rs:886) encodes the profile as `ResolvableProfile.CODEC` does into the component, adds the four clickable actions and the head object, and sends it with `sendSuccess(..., false)`. - `fill_modes` (vanilla.rs:509) puts the `outline`, `hollow`, `destroy` and `strict` literals over the `fill` node — `FillCommand.wrapWithMode`, which vanilla uses to build both the plain and the mode-wrapped forms. - `cmd_locate_poi` (commands.rs:3387) runs `PoiManager.findClosestWithType` inside 256 blocks over the loaded chunks. - `Hub::whisper` (chat.rs:470) sends `msg_command_outgoing` to the sender and `msg_command_incoming` to each target — `MsgCommand.sendMessage`, and it logs nothing, as vanilla's `sendMessage` does not. - `place_check_loaded` (place.rs:71) rejects a range whose chunks are not in the dimension or not loaded, with `argument.pos.unloaded`. - `cmd_place_generated` (place.rs:83) is the shared path for `placeFeature`, `placeJigsaw` and `placeStructure`. - `cmd_publish` (extra.rs:945) is `PublishCommand.publish` plus `IntegratedServer.publishServer`: it picks a port (`HttpUtil.getAvailablePort` when none is given), refuses when already published, opens the LAN and reports the port with a copy-on-click click. - `apply_pack_change` (functions.rs:934) is `ReloadCommand.reloadPacks`: no message of its own, the content tables reloaded with the functions. **Checked and left unanswered**: `ExperienceCommand.queryExperience`, `LocateCommand.locateBiome`/`locateStructure`, `GameModeCommand.setGameMode`/`logGamemodeChange`, `ParticleCommand.sendParticles`, `ScoreboardCommand.listTrackedPlayers` and the remaining `register` rows stay as they are — the ledger's guesses for them are a command handler that covers several arms, and a `where` there would name a function that is only part of the method. They are cheap for a later pass that reads each handler. Map-check: ``` PORT_LEDGER_OUT=/tmp/led-volE2 python3 tools/port_ledger.py map-check tools/port_map/rest-015.tsv 157 rows, no problems. ``` **Proven:** every `where` cell resolves under map-check and each cited function's doc comment names the vanilla method; the bodies were read for `report_resolved_profile` (the codec-shaped profile, the four actions, `sendSuccess(false)`), `fill_modes` (the four mode literals), `whisper` (the two chat types and the per-target loop), `place_check_loaded` (the unloaded rejection), `cmd_place_generated` and `cmd_publish` (the port, the already-published refusal, the LAN start). **Not proven:** that `fill_modes` covers every mode form vanilla's `wrapWithMode` builds — vanilla wraps each of `replace`, `keep` and `filtered` in the four modes, and the Horizon tree splits that across more than this one function, so the row names the mode half. I did not run `/fill` in each mode, nor `/publish` to a second client. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:19:58 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7567
No description provided.