Subsystem 6a: Item Database + /item /recycle /craft /research calculators + refresh tool#28
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ivate items.json Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ources Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…d/craft-validator tests Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Subsystem 6a — Item Database, core calculators & refresh tool
First slice of subsystem 6. Adds an offline, versioned Rust item dataset behind one lookup seam, four calculators exposed both in-game and as slash commands, and a maintainer generator tool so the bundled data can be refreshed instead of silently rotting.
What's new
RustPlusBot.Features.ItemData(new leaf project)item-data.json(1205 items) deserialized into a typed schema (ItemDataset/ItemRecord/ …), with per-section provenance dates.IItemDatabase+ singletonEmbeddedItemDatabase(FrozenDictionary, dup-id last-wins,SchemaVersionfail-fast).ItemLookup→ItemMatch(Found/Ambiguous/NotFound): numeric-or-name resolution, exact-beats-substring, deterministic ranked "did you mean", exact-name collisions surface asAmbiguous.IItemNameResolver(StorageMonitors re-pointed onto the shared resolver; its privateitems.jsondeleted — one source of truth).Calculators (in
RustPlusBot.Features.Commands)!item/!recycle/!craft/!research(terse, EN/FR, work while disconnected — static data)./item//recycle//craft//research(ephemeral embeds with a "data as of<date>" footer)./helpunder a new Item Database group.Generator tool (
tools/RustPlusBot.ItemData.Generator, not shipped in the bot)Notes
/decay,/upkeep,/durability,/smelting,/cctv; safe-zone/shredder recycle variants; a live-scrape source adapter; slash autocomplete.Verification
0/0under-warnaserror;dotnet jb cleanupcode … --profile=ReformatAndReorderidempotent-clean.🤖 Generated with Claude Code