[PR #7258] [MERGED] Stamp the pending native hook fragments through API 355 #7446

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

📋 Pull Request Information

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

Base: main ← Head: chore/stamp-native-hooks


📝 Commits (4)

  • 48c63bc Stamp the pending native hook fragments through API 355
  • cbd8e3b Merge main into #7258
  • e33c801 Merge remote-tracking branch 'origin/main' into HEAD
  • b118744 Stamp the living hooks' fragments (API 356-359)

📊 Changes

220 files changed (+3536 additions, -3728 deletions)

View changed files

📝 crates/horizon-client/src/breathing.rs (+1 -1)
📝 crates/horizon-client/src/crafting.rs (+1 -1)
📝 crates/horizon-client/src/game/native_hooks.rs (+622 -203)
📝 crates/horizon-client/src/game/native_server.rs (+2 -2)
📝 crates/horizon-client/src/hunger.rs (+1 -1)
📝 crates/horizon-client/src/landing.rs (+1 -1)
📝 crates/horizon-client/src/mod_api.rs (+1 -1)
📝 crates/horizon-client/src/mod_api/generated.rs (+339 -339)
📝 crates/horizon-client/src/mod_api/generated_host.rs (+4 -4)
📝 crates/horizon-client/src/motion.rs (+1 -1)
📝 crates/horizon-world/src/attachments.rs (+2 -2)
📝 crates/horizon-world/src/loot.rs (+3 -3)
📝 docs/native-mods.md (+438 -14)
📝 native-hooks.json (+2120 -0)
➖ tools/native-hook-fragments/anvil_damaged.json (+0 -15)
➖ tools/native-hook-fragments/arrow_loose.json (+0 -17)
➖ tools/native-hook-fragments/attachment_existing.json (+0 -8)
➖ tools/native-hook-fragments/beacon_state_change.json (+0 -15)
➖ tools/native-hook-fragments/bell_ring.json (+0 -17)
➖ tools/native-hook-fragments/block_break_progress_update.json (+0 -15)

...and 80 more files

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

The stamp pass tools/native-hook-fragments/README.md asks for once hook PRs merge: main carries 202 fragments with no API number, so none of their hooks or helpers is API yet.

  • python3 tools/stamp_native_hooks.py: one number per fragment in first-parent merge order, 154 through 355, with each one's catalog entry, doc paragraph and comment markers. The fragments are consumed, as the tool does.
  • cargo run -p xtask -- mod-api: the host trait and impl regenerated for the new entries.
  • One docs edit by hand: #7149's fragment summary and the paragraph its author had already written into docs/native-mods.md said the same thing twice. The shorter duplicate is gone and the full text sits in the list where it belongs, after API 354.
  • native_mod_image is API 355, so a world-map bundle can declare "hooks": 355 once this lands.

Checks: cargo fmt --all --check, cargo check -p horizon-client --all-targets and xtask mod-api --check are clean. No code changed beyond the generated files, the doc text and the deleted fragments.

If a stamp PR is already in flight, close this one — regenerating from main is a rerun of one command.


🔄 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/7258 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/stamp-native-hooks` --- ### 📝 Commits (4) - [`48c63bc`](https://github.com/horizon-rust/horizon/commit/48c63bc09d9acc82f2074e75ae59720514796a9d) Stamp the pending native hook fragments through API 355 - [`cbd8e3b`](https://github.com/horizon-rust/horizon/commit/cbd8e3b5b539f13b1b3e1ee3110c1218d93b5e36) Merge main into #7258 - [`e33c801`](https://github.com/horizon-rust/horizon/commit/e33c8012917a65832f19bba9b9fb04c50b9baee4) Merge remote-tracking branch 'origin/main' into HEAD - [`b118744`](https://github.com/horizon-rust/horizon/commit/b118744829f221977e219f442c5cfbbea46e7a8b) Stamp the living hooks' fragments (API 356-359) ### 📊 Changes **220 files changed** (+3536 additions, -3728 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/breathing.rs` (+1 -1) 📝 `crates/horizon-client/src/crafting.rs` (+1 -1) 📝 `crates/horizon-client/src/game/native_hooks.rs` (+622 -203) 📝 `crates/horizon-client/src/game/native_server.rs` (+2 -2) 📝 `crates/horizon-client/src/hunger.rs` (+1 -1) 📝 `crates/horizon-client/src/landing.rs` (+1 -1) 📝 `crates/horizon-client/src/mod_api.rs` (+1 -1) 📝 `crates/horizon-client/src/mod_api/generated.rs` (+339 -339) 📝 `crates/horizon-client/src/mod_api/generated_host.rs` (+4 -4) 📝 `crates/horizon-client/src/motion.rs` (+1 -1) 📝 `crates/horizon-world/src/attachments.rs` (+2 -2) 📝 `crates/horizon-world/src/loot.rs` (+3 -3) 📝 `docs/native-mods.md` (+438 -14) 📝 `native-hooks.json` (+2120 -0) ➖ `tools/native-hook-fragments/anvil_damaged.json` (+0 -15) ➖ `tools/native-hook-fragments/arrow_loose.json` (+0 -17) ➖ `tools/native-hook-fragments/attachment_existing.json` (+0 -8) ➖ `tools/native-hook-fragments/beacon_state_change.json` (+0 -15) ➖ `tools/native-hook-fragments/bell_ring.json` (+0 -17) ➖ `tools/native-hook-fragments/block_break_progress_update.json` (+0 -15) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. The stamp pass `tools/native-hook-fragments/README.md` asks for once hook PRs merge: main carries 202 fragments with no API number, so none of their hooks or helpers is API yet. - `python3 tools/stamp_native_hooks.py`: one number per fragment in first-parent merge order, 154 through 355, with each one's catalog entry, doc paragraph and comment markers. The fragments are consumed, as the tool does. - `cargo run -p xtask -- mod-api`: the host trait and impl regenerated for the new entries. - One docs edit by hand: `#7149`'s fragment summary and the paragraph its author had already written into `docs/native-mods.md` said the same thing twice. The shorter duplicate is gone and the full text sits in the list where it belongs, after API 354. - `native_mod_image` is API 355, so a world-map bundle can declare `"hooks": 355` once this lands. Checks: `cargo fmt --all --check`, `cargo check -p horizon-client --all-targets` and `xtask mod-api --check` are clean. No code changed beyond the generated files, the doc text and the deleted fragments. If a stamp PR is already in flight, close this one — regenerating from main is a rerun of one command. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:39 +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#7446
No description provided.