@kzheart_/mc-pilot 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,11 @@
56
56
  "params": [],
57
57
  "description": "获取 GUI 信息"
58
58
  },
59
+ {
60
+ "name": "gui.layout",
61
+ "params": [],
62
+ "description": "获取 GUI 精确布局和槽位屏幕坐标"
63
+ },
59
64
  {
60
65
  "name": "gui.snapshot",
61
66
  "params": [],
@@ -4,6 +4,7 @@ import { createRequestAction, parseNumberList, resolveScreenshotOutputPath, send
4
4
  export function createGuiCommand() {
5
5
  const command = new Command("gui").description("GUI / container interaction (use \"gui snapshot\" to inspect slot indices and contents)");
6
6
  command.command("info").description("Get current GUI info (title, type, slot count)").action(createRequestAction("gui.info", () => ({})));
7
+ command.command("layout").description("Get precise GUI bounds and slot screen coordinates").action(createRequestAction("gui.layout", () => ({})));
7
8
  command.command("snapshot").description("Get full GUI snapshot with all slot contents").action(createRequestAction("gui.snapshot", () => ({})));
8
9
  command
9
10
  .command("slot")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kzheart_/mc-pilot",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "description": "Minecraft plugin/mod automated testing CLI – control a real Minecraft client to simulate player actions",
5
5
  "type": "module",
6
6
  "bin": {