Commit graph

2286 commits

Author SHA1 Message Date
Anon
0a9948a92a Merge branch 'master' of github.com:MCCTeam/Minecraft-Console-Client into fix/use-item 2026-03-27 16:46:29 +01:00
Anon
0c9ff137b2 Fixed shovel not being able to be used on dirt 2026-03-27 16:43:53 +01:00
Anon
57cf5c75c0
[skipci]Merge pull request #3007 from MCCTeam/copilot/remove-empty-warning-rename-tips 2026-03-27 15:53:47 +01:00
Anon
df05eb6dc4
Implemented effects support 2026-03-27 15:51:00 +01:00
Anon
f6446b198d Implemented effects support, as a command, chat notification and added in TUI mode 2026-03-27 15:47:27 +01:00
BruceChen
4b9e0e93aa Fix: cursor locate at the beginning when pressing Up to view history 2026-03-27 22:47:20 +08:00
copilot-swe-agent[bot]
4993498d52 docs: remove empty warning, rename Tips to Notes, add MCC.js recommendation
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/8f04f3c4-cedd-427c-ad3c-c2488363fe6f

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-03-27 13:45:45 +00:00
copilot-swe-agent[bot]
20f536188a Initial plan 2026-03-27 13:36:21 +00:00
breadbyte
a7a3566756
Update build-and-release.yml
Fixes long commit message >256 chars breaking releases
Cleanup build code and consolidate variables
Make skip ci more user-friendly by including all variations of skip-ci and ci-skip
Add PublishSingleFile flag
2026-03-27 13:05:20 +08:00
breadbyte
cac9e5c625 skipci update ConsoleInteractive library 2026-03-27 12:08:05 +08:00
Anon
7a75328f0a Fixed a JSON exception 2026-03-26 19:16:48 +01:00
Anon
747662ea8c More minor optimizations 2026-03-26 18:01:56 +01:00
BruceChen
ac1d5c37a6 Refactor tab cycling logic in TUI command input handling
- Simplified the condition for disabling tab cycling by checking only for the Tab key.
- Improved clarity in the command key down event handling for better user experience.
2026-03-27 00:30:52 +08:00
BruceChen
fe7ab9f373 Implement startup state management and enhance configuration loading
- Introduced a new `StartupState` class to encapsulate the state collected before the console backend initialization.
- Updated the configuration loading process to handle legacy upgrades and provide detailed feedback on configuration status.
- Enhanced the TUI backend to utilize the new startup state for improved initialization flow.
- Refactored the `LoadFromFile` method in `Settings` to return a structured result, improving error handling and clarity.
2026-03-27 00:30:52 +08:00
BruceChen
b33ee7e4a1 Refactor exit handling and command input in TUI
- Improved the exit process by ensuring the backend shutdown is called after handling offline prompts.
- Enhanced command input history management by encapsulating text setting logic in a dedicated method to prevent event handler interference.
- Adjusted the background color in the color parser for better visibility.
- Increased the sleep duration in the TUI exit guard thread to ensure a smoother shutdown process.
2026-03-27 00:30:52 +08:00
Anon
ca5e7520cb Optimized SendPacket 2026-03-26 14:14:14 +01:00
Anon
0ceaaead10
[skipci]Merge pull request #2999 from milutinke/master 2026-03-26 01:01:04 +01:00
Anon
129f5bda9f
Reverted adding -p:PublishSingleFile=true 2026-03-26 01:00:36 +01:00
Anon
59332be062
[skipci]Merge pull request #2998 from milutinke/fix-git-action-parameter 2026-03-26 00:53:15 +01:00
Anon
5df03b0abd
Added PublishSingleFile to fix a build issue with TUI version 2026-03-26 00:52:24 +01:00
Anon
a2f7511ef7 Optimized World.cs 2026-03-25 23:57:02 +01:00
Anon
7da47d36dc
[skipci]Fixed session id changing not working in the Web Socket Chat bot. 2026-03-25 22:02:22 +01:00
Anon
05afeaf5bc Fixed session if changing in the Web Socket Chat bot. 2026-03-25 21:59:01 +01:00
Anon
966b787a4c
feat: Added missing enchantments for new versions 2026-03-25 20:01:43 +01:00
BruceChen
6beb00bae4
Fix open container crash (#2996) 2026-03-26 02:37:11 +08:00
BruceChen
e5b81fe428 feat: add support for unsupported container type in inventory TUI
- Implemented a check in the Inventory command to log a warning and return a failure status if the container type is not PlayerInventory.
- Added a new localized string for the warning message to inform users about unsupported container types.

These changes improve user feedback and error handling in the inventory management system.
2026-03-26 02:35:50 +08:00
BruceChen
dcfff3f1ba feat: enhance Protocol18 and SocketWrapper for improved functionality
- Added support for the new world border hit flag in Protocol18 for protocol version 1.21.2.
- Updated SocketWrapper to throw a SocketException if SendDataRAW is called when not connected, improving error handling.

These changes enhance the protocol handling and error management in the Minecraft Console Client.
2026-03-26 02:35:43 +08:00
BruceChen
8456e363f5
TUI for MCC (#2976)
* feat: implement interactive TUI inventory viewer

- Added InventoryTui command to open an interactive terminal user interface for inventory management.
- Introduced InventoryApp and InventoryMainView classes for TUI layout and functionality.
- Created InventoryViewModel and SlotViewModel to manage inventory data and display.
- Integrated Consolonia for enhanced console UI experience.
- Updated McClient to support console message handling during TUI operation.

These changes enhance user interaction with inventory management in Minecraft Console Client.

* feat: enhance debugging workflow with mcc-debug.sh and TUI support

- Introduced mcc-debug.sh for streamlined one-step build, server start, and MCC launch.
- Added TUI mode for improved user experience during debugging sessions.
- Updated mcc-env.sh to include new debug helpers and TUI mode functionality.
- Enhanced SKILL.md with detailed instructions for using the new debugging tools and console modes.

These changes significantly improve the debugging process for Minecraft Console Client, making it more efficient and user-friendly.

* feat: introduce TUI console backend and related enhancements

- Added ClassicConsoleBackend and TuiConsoleBackend to support different console I/O modes.
- Implemented IConsoleBackend interface for better abstraction of console operations.
- Enhanced ConsoleIO to utilize the new backend structure for input and output handling.
- Introduced MainTuiView and MccTuiApp for a full-screen TUI experience using Avalonia.
- Updated InventoryTuiHost to manage TUI lifecycle and interactions.

These changes significantly improve the console experience in Minecraft Console Client, providing a more flexible and user-friendly interface.

* refactor: remove InventoryTui command implementation

- Deleted the InventoryTui class, which provided an interactive terminal user interface for inventory management.
- This change simplifies the command structure as part of ongoing improvements to the console experience in Minecraft Console Client.

The removal of this command is aligned with recent enhancements to the console backend and user interface.

* refactor: update InventoryMainView and MainTuiView for improved UI handling

- Changed several fields from readonly to mutable in InventoryMainView to allow for dynamic updates.
- Introduced a new McColorParser class for parsing Minecraft color codes and creating colored text blocks.
- Enhanced MainTuiView to support formatted log lines and improved notification handling.
- Updated chat scrolling behavior to ensure better user experience during text input and log display.

These changes streamline the UI components and enhance the overall console experience in Minecraft Console Client.

* feat: enhance command input handling in MainTuiView

- Updated command input to use event routing for better key handling.
- Added support for Ctrl key shortcuts to improve text manipulation (e.g., word deletion, caret movement).
- Implemented text cleaning on input change to prevent newline characters.
- Improved health and food status bar rendering with a new method for building bar text.

These changes significantly enhance the user experience in the TUI by providing more intuitive command input functionality.

* feat: enhance TUI command suggestion functionality

- Introduced a new CommandSuggestion struct for backend-independent suggestion handling.
- Updated ConsoleIO to streamline suggestion updates for both Classic and TUI backends.
- Enhanced MainTuiView to display command suggestions with improved visibility and interaction.
- Increased the maximum number of displayed suggestions from 6 to 10 for better user experience.

These changes significantly improve the command input experience in the TUI, making it more intuitive and user-friendly.

* feat: enhance offline command autocomplete functionality

- Introduced an OfflineAutocompleteHandler to provide command suggestions for offline commands.
- Added support for tab cycling through suggestions in the TUI.
- Improved command input handling to clear suggestions when necessary and manage user input more effectively.
- Updated TuiConsoleBackend to integrate with the new autocomplete feature.

These changes significantly enhance the user experience by making command input more intuitive and responsive in offline scenarios.

* feat: enhance localization and user feedback in TUI

- Updated various TUI components to utilize localized strings for improved user experience.
- Enhanced debug state output with translated labels for better clarity.
- Improved inventory command help messages with localized text.
- Added new translations for console mode descriptions and inventory viewer prompts.

These changes significantly enhance the usability and accessibility of the TUI in Minecraft Console Client, making it more user-friendly and informative.

* feat: enforce localization for user-facing strings in AGENTS.md

- Added guidelines to ensure all user-facing text, including log messages and error messages, is managed through the translation system.
- Specified the use of `Translations.resx` and `Translations.Designer.cs` for localization, emphasizing the importance of avoiding hardcoded strings in source code.

These changes improve the consistency and accessibility of user-facing content across the application.
2026-03-26 02:08:18 +08:00
copilot-swe-agent[bot]
d9f79bf512 fix: correct enchantment mapping typo messages
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/16e21ef0-6f09-4280-b539-8d704ddc3b67
2026-03-25 18:05:56 +00:00
copilot-swe-agent[bot]
a79373c713 refactor: make enchantment version buckets explicit
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/16e21ef0-6f09-4280-b539-8d704ddc3b67
2026-03-25 18:03:36 +00:00
copilot-swe-agent[bot]
71c01c739a refactor: simplify fallback enchantment reverse maps
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/16e21ef0-6f09-4280-b539-8d704ddc3b67
2026-03-25 18:02:12 +00:00
copilot-swe-agent[bot]
d4faea9ecc fix: add lunge enchantment mapping for 1.21.11
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/16e21ef0-6f09-4280-b539-8d704ddc3b67
2026-03-25 18:00:38 +00:00
Anon
a17b7d4bd3
feat: Updated the Item Extensions utilities 2026-03-25 18:46:29 +01:00
copilot-swe-agent[bot]
a4ade66b8e fix: keep item classification ordering consistent
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/eb7f44aa-fc12-4c47-85ca-fe7ab80cfe30
2026-03-25 17:31:56 +00:00
copilot-swe-agent[bot]
69070f0157 fix: update manual item stack classifications
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/eb7f44aa-fc12-4c47-85ca-fe7ab80cfe30
2026-03-25 17:30:38 +00:00
copilot-swe-agent[bot]
d61a44ba34 Initial plan 2026-03-25 17:22:48 +00:00
copilot-swe-agent[bot]
d3c3e5a554 fix: add names for new enchantments
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/99915717-46df-4681-a568-5a9f0b244361
2026-03-25 17:21:17 +00:00
copilot-swe-agent[bot]
2c993247d2 Initial plan 2026-03-25 17:17:35 +00:00
Anon
00c3a8cb51
[skipci]chore: Lint and format the documentation markdown 2026-03-25 18:06:38 +01:00
copilot-swe-agent[bot]
3931d15c7d Fix ordered list numbering in docs/guide markdown with mdformat --number
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/659576c1-9e03-4d03-a9f2-99390ba4f390
2026-03-25 17:02:47 +00:00
copilot-swe-agent[bot]
cb4eb15784 Lint and format docs/guide markdown with mdformat, fix empty warning in chat-bots.md
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/3040312a-cbdf-43fe-918b-133ef19fc30f
2026-03-25 16:58:16 +00:00
copilot-swe-agent[bot]
a242f97c14 Initial plan 2026-03-25 16:55:32 +00:00
Anon
bd55fc3ed3
[skipci]Merge pull request #2992 from milutinke/skills/csharp-dotnet-cli-optimization 2026-03-25 16:04:25 +01:00
Anon
5fecd667a3 Created a skill for optimizations 2026-03-25 16:03:26 +01:00
Anon
a384d29b64
feat+bugfix: Re-introduced Web Socket Chat bot (as external script) and fixed a bug in Script compiler 2026-03-25 15:54:48 +01:00
copilot-swe-agent[bot]
eeb4383099 Fix Roslyn compiler references for WebSocket/HttpListener and fix MCCScript using directive semicolons
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/6fa57d65-60be-4a4b-b15a-ad3541ac6de3
2026-03-25 14:32:39 +00:00
copilot-swe-agent[bot]
ed0a69185f Fix timing attack in password comparison using constant-time XOR
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/c762752f-46be-44f6-a05d-8c5effc8ef43
2026-03-25 13:57:34 +00:00
copilot-swe-agent[bot]
d5a9ae3deb Address code review feedback: fix password placeholder, IPv4 regex, and doc references
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/c762752f-46be-44f6-a05d-8c5effc8ef43
2026-03-25 13:54:04 +00:00
copilot-swe-agent[bot]
6d6d1105eb Restore websocket docs and add sidebar navigation
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/c762752f-46be-44f6-a05d-8c5effc8ef43
2026-03-25 13:51:10 +00:00
copilot-swe-agent[bot]
c8c9f9ada5 Add WebSocketBot as external MCCScript bot with string enum serialization (#2805)
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/c762752f-46be-44f6-a05d-8c5effc8ef43
2026-03-25 13:47:33 +00:00