Repository navigation
Integrate god-object refactor, MC 26.3 / Velocity 4 targets, docs reconcile - #46
Merged
Merged
Conversation
- README: list every published module (messaging, commands-brigadier, diagnostics-testkit, bungee/velocity/neoforge bundles); `release` is a local release, not a CI dispatch. - RELEASING: real -Prelease.<step> override names (validate, maven, modrinth, javadoc), drop nonexistent -Prelease.dryRun (point at -PmodrinthDryRun), valid smoke case id, settings.gradle.kts. - scripts/README: correct task path and local-release description. - README-TRANSLATORS: `/magicutils settings` command no longer exists; missing-key log line is debug level. - Remove orphaned macros.py (mkdocs/mike retired in 50d17e3). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
A default the author wrote promises the parameter always has a value, so a default that fails to parse (e.g. @DefaultValue("@sender") from the console) now fails the command instead of passing null into it. @nullable / @OptionalArgument mark the argument nullable and keep the old pass-through behaviour via the new CommandArgument.Builder#nullable(). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Tokenize the whole input instead of slicing at the builder start, which on a nested argument node dropped the preceding sub-command names and resolved suggestions at the wrong level. Quoted tokens anchor the replacement range past the opening quote. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
- Bundled keys with no @ConfigValue field (e.g. magicutils.commands.help.*) are stored as custom messages instead of being dropped. - Defaults are filled into a language file another MagicUtils mod already created (override=false keeps user edits); the file is only rewritten when something was actually added. - A freshly created file records its own language code instead of the English metadata defaults. - BundledTranslations retries the class-relative lookup and warns once per language when no bundled resource is visible. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Adventure 4.24+ emits the snake_case click_event/hover_event shape that older codecs silently drop. Try the legacy shape first and keep whichever decode preserves the events. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
- Fabric bundle: stop relocating com.fasterxml.jackson. It rewrote the ObjectMapper in MagicHttpClient/MessageCodec signatures on Fabric only, so consumers compiled against the plain type hit NoSuchMethodError. - NeoForge bundle: force the catalog Jackson over Minecraft's strict 2.13.4 pin (resolution failed outright on 1.21.x) and pack bundleContents through a ShadowJar that relocates snakeyaml. - JVM bundles: relocate snakeyaml so it cannot clash with the server's copy. - fabric-bundle: add :messaging to plainRuntime; commands-fabric exposes it as api and Loom otherwise looks it up as a missing external coordinate. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Paper 26.3 build 255, NeoForge 26.3.0.113, Fabric loader 0.20.1 with Fabric API 0.166.2+26.3, pb4 placeholder-api 3.2.0+26.3. Java 25 and Adventure 5 like 26.2. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Velocity 4.x (Java 25) imports adventure-bom 5.2.0, so a Velocity 3 build cannot run on it. The Velocity API now follows the target's Adventure major via magicUtilsVelocityApiVersion: velocity-api 3.1.1 on 1.20/1.21/26.1, 4.3.1 on 26.2+. The bundle plugin, platform-velocity and the consumer-velocity plugin all use it; -PvelocityApiVersion still overrides. runVelocity defaults to 3.5.1 (last 3.x) or 4.3.1 to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
- velocity is built on the Adventure-5 targets (only mc2611 is excluded: Java 25 but Adventure 4, which no Velocity line pairs with) - smoke/Modrinth rows: paper-263x, folia-262x, folia-263x, fabric-263x, neoforge-263x, and Velocity split into velocity-3x (3.5.1, +java21) and velocity-4x (4.3.1, +java25) - spell the 26.1 patches out (26.1-26.1.2): the range expander does not bridge '26.1-26.2' into 26.1.1/26.1.2, so those were never advertised Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…ade abstract hasCommand(String, CommandSource), offerSuggestions and offerBrigadierSuggestions are abstract in 4.x and absent/default in 3.1.1, so they are added without @OverRide to compile on both lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
The 26.3 NeoForm recompile fails under 2.0.139 (HolderSet$1.contents() 'weaker access privileges'); 2.0.148 is what the NeoForge 26.3 MDK uses and builds it cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Since 26.2 the Java level no longer pins the Adventure major: 26.1 is Java 25 + Adventure 4, 26.2/26.3 are Java 25 + Adventure 5, but only one +java25 bundle can be released per platform. publishUnits picked the first Java-25 target (mc2611), so the 26.2 rows shipped an Adventure-4 jar and the Velocity 4 bundle (only built on 26.2+) never got built. - publishUnits: default target, else the newest target of each level - bukkit api-version on Adventure-5 builds is the line floor (26.2) so the 26.3-built jar loads on Paper 26.2 and is refused by 26.1 - smoke entries gain released=false (smoke-only); paper/folia 26.1 use it, since the released +java25 jar is not their build - paper/folia 26.2 now smoke the released (mc263) jar on 26.2 servers Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…undle Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Velocity 4 rewrites velocity.toml in a shape Velocity 3 cannot read (ClassCastException: SynchronizedConfig to Enum), so after a 4.x smoke the 3.x smoke died on startup. 3.x keeps run/, 4.x uses run-velocity4/. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Move OptionIndex/OptionToken/ParsedOptions and the option parsing helpers into the package-private CommandOptions utility. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
SubCommandNode/SubCommandTraversal and the tree build/traverse helpers move to the package-private SubCommandTree; the per-command action cache (static + dynamic subcommands, direct execute resolution) moves to CommandActionCatalog. CommandManager.CommandAction stays nested because platform modules reference it. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Command/subcommand/argument permission checks, permission node naming, access-filtered subcommand listings and help permission helpers move to CommandPermissions; PermissionConditionType evaluation moves to ArgumentPermissionConditions and localized description lookup to CommandDescriptionResolver. CommandManager keeps thin package-private delegates used by HelpCommandSupport. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
generateUsage/generateSubCommandUsages/formatArguments keep their public signatures on CommandManager and delegate. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Token-to-argument binding (sender injection, options/flags, type-aware positional matching, defaults, greedy tails) and type conversion move out of CommandManager. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Suggestion generation (subcommand walk, option/positional suggestions, provider-method resolution) moves out of CommandManager; getSuggestions keeps its lookup and permission gate and delegates. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Subcommand routing, subcommand permission gate, argument binding and handler invocation move out of CommandManager; executeInternal keeps the lookup, base permission check and error policy. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…to top level The document model, the comment-preserving YAML/JSONC/TOML writers and the format registry were private nested classes of ConfigManager; they become package-private top-level classes. ensureParentDirectory moves to ConfigDocument. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Registry bookkeeping types become package-private top-level classes so collaborators can share them. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…olver
Placeholder/{ext} substitution, .format/system-property/env preferences and
cross-format migration source detection move out of ConfigManager.
Behavior unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Migration chains, version normalization and config-version stamping move out of ConfigManager; registerMigration(s) delegate. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…pper Default generation, (section-scoped) loading, list/map/adapter conversion, saving and @saveto external-file handling move out of ConfigManager. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
WatchService registration, per-directory reference counting and the watch loop move out of ConfigManager. The manager keeps the external-reload scheduling, the shutdown ordering (stop watcher, drain reloads, clear indexes) and the shutdownLock protocol. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Styling (palette from logger settings, MiniMessage tag helpers) moves to HelpStyling, permission-based visibility to HelpVisibility and request parsing/target lookup to HelpRequests. HelpCommandSupport keeps its public API and the rendering, using static imports so call sites are unchanged. Behavior unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
The constructor now hands method references to its collaborators; mirror ConfigManager's existing @SuppressWarnings("this-escape"). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
wrapExecutor/createMethodExecutor/resolveResult move to the package-private MountedCommandExecutors; CommandDispatcher calls it directly. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
The bodies of getSubCommands/findExecuteMethod/getArguments/getUsage and the @Permission(when=...) parser move to the package-private CommandMethodIntrospector; the public statics delegate to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
snapshot/resolve of mounted command trees, the direct-action lookup and the route-path helpers move out of MagicCommand into a package-private static collaborator. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…iddenCommandInfo Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…ionRegistry Registration merging, applying registered values to a loaded config, seeding bundled defaults and the in-memory lookup move out of LanguageManager into a package-private collaborator. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…geStore Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
LanguageCodes holds the locale-tag candidate expansion and key normalization; LanguageFiles lists and probes <configDir>/lang. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…guageManager Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…lpCommandSupport Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Split CommandManager, MagicCommand, HelpCommandSupport, ConfigManager and LanguageManager into package-private collaborators. Public/protected API unchanged (javap -protected diff over commands, commands-brigadier, config and lang). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
The external-reload task compared the file's mtime with the last one we recorded outside entry.monitor. saveEntry writes the file and records the new mtime under that monitor, so an echo of our own save sampled between the two looked external; the reload then ran after the save and could replace in-memory changes made since (LanguageManagerTest's putCustomMessage + registerTranslations lost the custom message ~1% of runs, on main before the refactor as well). Check and reload under the monitor; 0 failures in 1000 repetitions, ~1% before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Minecraft 26.3 target (Paper/Folia/Fabric/NeoForge), Velocity 4 on the Adventure-5 targets with Velocity 3 kept for 1.20/1.21, and the +java25 bundle built from the newest Java-25 target. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
…nour The reconcile pass called it nonexistent, but releaseMavenAll, releaseModrinth and releaseJavadoc all read release.dryRun. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019EduMJ8cuDL7P7PFbwfeyZ
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.
Direct push to main is blocked by the repository ruleset (changes must go through a PR), so this carries the already-reviewed local main.
CommandArgument.Builder#nullable(), brigadier nested suggestions/quoted ranges, lang resolution fixes,language.translations.resolvediagnostic, NeoForge click/hover on old codecs, bundle relocation fixes, 1.27.5-SNAPSHOTrefactor/god-objects: CommandManager/MagicCommand/HelpCommandSupport/ConfigManager/LanguageManager split into package-private collaborators; public/protected API identical (javap diff)fix(config): watcher-echo mtime check now under the entry monitor (fixes the ~1% LanguageManagerTest flake)feat/latest-platforms: Minecraft 26.3 target, Velocity 4 on 26.2+, +java25 bundle from the newest targetdocs/reconcile+ restore-Prelease.dryRunin RELEASING.mdLocal gate: build-logic tests; buildScenario + checkScenario on all 7 targets; javadoc; smoke Paper 26.3, Fabric 26.3, Velocity 4.3.1.