mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
The seed roles were owned by exp_roles, but they describe the scenario, so they now live in exp_scenario/seed.ts next to the permissions they grant. Each seed role names the permission group its holders belong to, and the five groups the legacy config defined (Admin, Trusted, Standard, Guest, Restricted) are seeded through exp_groups along with one role mapping per role. Mapping priorities follow how exp_roles ranks a player's highest role, so Jail lands in Restricted regardless of other roles. SeedRolesRequest becomes exp_scenario's SeedRequest behind a new exp_scenario.seed permission, and the button moves to the scenario's web plugin, which gets a web entrypoint for it. exp_roles no longer depends on exp_scenario, and exp_scenario gains controller tests around the seed. With groups seeded from the controller the legacy expcore.permission_groups module and its config are removed, along with the Group rcon static.
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "@expcluster/roles",
|
|
"version": "7.0.1",
|
|
"description": "Clusterio plugin providing syncing of in game roles.",
|
|
"author": "Cooldude2606 <https://github.com/Cooldude2606>",
|
|
"license": "MIT",
|
|
"repository": "explosivegaming/ExpCluster",
|
|
"main": "dist/node/index.js",
|
|
"scripts": {
|
|
"prepare": "tsc --build && webpack-cli --env production",
|
|
"test": "tap --disable-coverage --allow-empty-coverage test/*.test.js",
|
|
"coverage": "tap --coverage-report=text test/*.test.js"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"peerDependencies": {
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^"
|
|
},
|
|
"devDependencies": {
|
|
"@ant-design/icons": "^6.2.3",
|
|
"@clusterio/controller": "workspace:^",
|
|
"@clusterio/host": "workspace:^",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@clusterio/web_ui": "workspace:^",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"antd": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-router-dom": "catalog:",
|
|
"typescript": "catalog:",
|
|
"webpack": "catalog:",
|
|
"fengari": "^0.1.5",
|
|
"tap": "^21.1.0",
|
|
"webpack-cli": "catalog:",
|
|
"webpack-merge": "catalog:"
|
|
},
|
|
"dependencies": {
|
|
"@sinclair/typebox": "catalog:"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"clusterio",
|
|
"clusterio-plugin",
|
|
"factorio"
|
|
]
|
|
}
|