{"id":"qscythee/operator","name":"operator","scope":"qscythee","platform":"roblox","description":"Server-hosted Roblox command console with per-player client delivery.","version":"0.2.0","latest":"0.2.0","versions":["0.2.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":false,"dependencies":{},"integrity":"59ab70e37c7330014053cc308d1b14fc8c9325a39ecbc4da72f08bca39db42a9","likes":0,"downloads":0,"install":"forest install qscythee/operator","url":"https://forest.dev/p/roblox/qscythee/operator","files":"https://api.forest.dev/ai/package/roblox/qscythee/operator/files","readme":"<div align=\"center\">\r\n\r\n![Operator](assets/operator-banner.svg)\r\n\r\n# Operator\r\n\r\n**A command console and admin framework for Roblox, in pure Luau.**\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\r\n\r\n### [Documentation →](https://cb12438.github.io/Operator/)\r\n\r\n[Introduction](https://cb12438.github.io/Operator/guide/introduction) · [Installation](https://cb12438.github.io/Operator/guide/installation) · [Setup](https://cb12438.github.io/Operator/guide/setup)\r\n\r\n</div>\r\n\r\nOperator is a command console and permission system for Roblox developers who would rather define\r\ncommands than build an admin panel.\r\n\r\n## Features\r\n\r\n🔒 **Nothing reaches an unauthorized client**: no modules, no remote, no interface. A player who is\r\nallowed nothing has no way to tell the package is installed.\r\n\r\n👥 **Roles are built in**. Declare them by group rank or user ID, inherit between them, and permissions\r\nresolve themselves. No hooks to write.\r\n\r\n⚡ **One require, one call**. No client bootstrap, no configuration files, no folder you have to create\r\nfirst. Every field is optional.\r\n\r\n🧩 **Typed argument tables**. Arguments arrive as a checked table, not positional strings, so a typo in\r\na handler is a type error rather than a runtime surprise.\r\n\r\n🎨 **Extensible argument types**. Define your own with validation, transformation and autocomplete, and\r\ncompose them on top of the built-ins.\r\n\r\n## A command\r\n\r\n```lua\r\nlocal Operator = require(game:GetService(\"ServerStorage\").Operator)\r\nlocal Command, Types = Operator.Command, Operator.Types\r\n\r\nexport type KickArgs = { target: Player, reason: string }\r\n\r\nreturn (Command.new(\"kick\") :: Operator.Builder<KickArgs>)\r\n    :description(\"Kick a player\")\r\n    :arg(Types.Player, \"target\", \"Player to kick\")\r\n    :arg(Types.String, \"reason\", \"Reason shown to the player\", { rest = true })\r\n    :permission(\"moderator\")\r\n    :destructive()\r\n    :run(function(context, args)\r\n        args.target:Kick(args.reason)\r\n        context:reply(`kicked {args.target.Name}`)\r\n    end)\r\n```\r\n\r\nInside `run`, `args.target` is a `Player` and `args.reason` is a `string`, fully checked.\r\n\r\n## Starting it\r\n\r\n```lua\r\nlocal Operator = require(game:GetService(\"ServerStorage\").Operator)\r\n\r\nOperator.Start({\r\n    Commands = script.Parent.Commands,\r\n    DefaultCommands = { \"debug\", \"moderation\" },\r\n\r\n    Roles = {\r\n        owner = { UserIds = { 1234567 }, Inherits = { \"moderator\" } },\r\n        moderator = { GroupId = 123456, MinRank = 200 },\r\n    },\r\n})\r\n```\r\n\r\nThat is the whole setup. `Operator.Start({})` also works, and gives you a console for the place owner\r\nand nobody else.\r\n\r\n## Attributions\r\n\r\n- [**Centurion**](https://github.com/paradoxuum/centurion): console interface design and interaction\r\n  model. Operator's terminal is a structural port of Centurion's, reimplemented in Luau.\r\n- [**Cmdr**](https://github.com/evaera/Cmdr): prior art for Roblox command consoles, and the origin of\r\n  the quote-aware argument splitting both use.\r\n- [**Vide**](https://github.com/centau/vide): the reactive UI library the console is built with,\r\n  vendored under `Client/UI/Packages/`.\r\n\r\n## License\r\n\r\nOperator is [MIT licensed](LICENSE).\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\r\n","readmeTruncated":false}