plugins/AGENTS.md

23 lines
3 KiB
Markdown

# DuneRealms plugin development
- Production plugin source is `unimatrix/plugins:main`. Website source is `unimatrix/web`; do not edit it from this repository.
- Use local Git for source edits and commits, and Composio for DuneGit PRs and CI. No SSH without explicit user authorization.
- Reuse the current open PR. Never push directly to main or merge/deploy without owner authorization.
- Keep the working JARVIS backend and permissions. The supplied DuneMenus ZIP defines presentation, not replacement backend logic. Keep DuneNPC.jar.
- Do not add ChestCommands, duplicate menus or confirmation screens.
- Keep this repository limited to plugins, shared source, resources, tests and required build/CI inputs.
- Record exact source commit, JAR filenames/versions and SHA-256 hashes. Test and build the recorded revision; distinguish artifacts, merge and actual verified deployment.
- Never commit credentials or print tokens/private keys. No real financial transactions or world regeneration.
- Preserve unrelated local work and earned player progression. Treat expected migration of explicitly requested NPC types separately from deleting gameplay data.
## Accepted GUI foundation
- Preserve the current fast supplied-menu renderer and working JARVIS callbacks; polish this design rather than replacing the GUI/backend wholesale. Owner speed feedback is qualitative, not a measured performance benchmark.
- Public command aliases and GUI buttons must enter the same working native service. Preserve uncertain purchase references and idempotent retries.
- Keep text inside measured card bounds. Essential price and stock remain visible before purchase; optional details must not execute or confirm a purchase.
- Use verified item artwork from actual item metadata. Same-ID block textures are flat surface previews, not native 3D renders. Unsupported complex/dynamic icons require an explicit fallback; never infer quality or MK from a title.
- Use the canonical illustrated website logo with proportional containment. Package/cache artwork locally and keep remote requests out of menu opening.
- Owner approved compact card density across Java menus: standard cards approximately 25% smaller, Exchange navigation as a toolbar, and mission cards in a grid. Preserve readable prices and click targets.
- Before changing this foundation, run the retained NativeMenus public-ABI and lifecycle tests, native route tests, pending-purchase safety tests, and pinned MCGUI renderer checks for containment, icon centering and original action hitboxes. Source tests alone do not prove connected-client actions work.
- Inspect and reuse existing JARVIS keys, records and authoritative service flows first. Preserve callback identity, lifecycle gates and pending payment references; do not create alternate domain engines to work around a presentation fault.
- An accepted release must be tagged and backed up only after actual functional acceptance. Never freeze a known broken candidate or deploy a documentation-only artifact.