Merge branch 'main' into aperx

This commit is contained in:
2025-08-11 02:17:48 +09:00
38 changed files with 4674 additions and 174 deletions

View File

@@ -25,7 +25,7 @@ local Commands = require("modules/exp_commands")
local add, parse = Commands.add_data_type, Commands.parse_input
local valid, invalid = Commands.status.success, Commands.status.invalid_input
local types = {} --- @class Commands._types
local types = {} --- @class Commands.types
--- A boolean value where true is one of: yes, y, true, 1
types.boolean =

View File

@@ -76,11 +76,11 @@ local Commands = {
},
}
--- @class Commands._status: table<string, Commands.Status>
--- @class Commands.status: table<string, Commands.Status>
--- Contains the different status values a command can return
Commands.status = {}
--- @class Commands._types: table<string, Commands.InputParser | Commands.InputParserFactory>
--- @class Commands.types: table<string, Commands.InputParser | Commands.InputParserFactory>
--- Stores all input parsers and validators for different data types
Commands.types = {}
@@ -595,6 +595,7 @@ end
--- @param parameter string The raw command parameter that was used
--- @param detail any
local function log_command(comment, command, player, parameter, detail)
if player.index == 0 and comment == "Command Ran" then return end
ExpUtil.write_json("log/commands.log", {
comment = comment,
command_name = command.name,

View File

@@ -13,16 +13,16 @@
"node": ">=18"
},
"peerDependencies": {
"@clusterio/lib": "^2.0.0-alpha.19"
"@clusterio/lib": "catalog:"
},
"devDependencies": {
"@clusterio/lib": "2.0.0-alpha.19",
"@types/node": "^20.14.9",
"typescript": "^5.5.3"
"@clusterio/lib": "catalog:",
"@types/node": "catalog:",
"typescript": "catalog:"
},
"dependencies": {
"@expcluster/lib_util": "workspace:*",
"@sinclair/typebox": "^0.30.4"
"@expcluster/lib_util": "workspace:^",
"@sinclair/typebox": "catalog:"
},
"publishConfig": {
"access": "public"