repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/Observe.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: Observe.luau Version: 1.0.0 ]] --[=[ @class Observe Provides utility functions for observing instance properties, attributes, and children, immediately invoking callbacks with the current value and then again on every subsequent change. ]=] local Observe = {} -...
561
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/PlayerData/ProfileTemplate.luau
luau
.luau
local ProfileTemplate = { AwardedBadges = {}, PendingBadges = {}, } -- Prevents accidental modification of the template local function freezeData(data: {}): () table.freeze(data) for _, value: any in pairs(data) do if typeof(value) == "table" then freezeData(value) end end end freezeData(ProfileTemplate) ...
85
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/ProcessQueue.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: ProcessQueue.luau Version: 1.1.0 ]] --[=[ @class ProcessQueue Enables processing of a queue of items with an optional delay between each item. ]=] local ProcessQueue = {} ProcessQueue.__index = ProcessQueue -- Private Functions function ProcessQueue:_processQueu...
490
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/Sounds.luau
luau
.luau
--[[ File Info Author: TactBacon, ChiefWildin Module: Sounds.lua Version: 2.0.1 ]] -- Services local RunService = game:GetService("RunService") local SoundService = game:GetService("SoundService") -- Dependencies -- local WarningTimer = shared("WarningTimer") ---@module WarningTimer -- Module Declara...
1,497
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/SpecialCharacters.luau
luau
.luau
return { Verified = utf8.char(0xE000), Premium = utf8.char(0xE001), Robux = utf8.char(0xE002), Plus = utf8.char(0xE003), }
48
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/StateManager/Configs/GlobalConfig.luau
luau
.luau
--[[ GlabalConfig.lua TactBacon v1.2.0 ]] export type StateConfig = { [string]: { ["BlockedBy"]: { string }?, ["Requires"]: { string }?, ["Deactivates"]: { string }?, ["Activates"]: { string }?, ["Tags"]: { string }?, }, } return { -- Put states here } :: StateConfig
98
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/StateManager/State.luau
luau
.luau
--[[ State.lua TactBacon v1.2.0 ]] -- Services local HttpService = game:GetService("HttpService") -- Dependencies local Maid = shared("Maid") ---@module Maid -- Constants local USE_OS_CLOCK_OVER_TICK = true -- Typings export type State = { Name: string, LastActivatedAt: number, LastDeactivatedAt:...
1,454
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/TimerUtils.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: TimerUtils.luau Version: 1.0.0 ]] -- Services -- Dependencies -- Types -- Module Declaration local TimerUtils = {} -- Constants -- Global Variables -- Objects -- Private Functions -- Public Functions function TimerUtils:TimeToNextSignificantUpdate(timeRemain...
299
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/lerp.luau
luau
.luau
--!native return function(a: number, b: number, t: number) return a + (b - a) * t end
31
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/lib/rcall.luau
luau
.luau
--[[ File Info Authors: ChiefWildin Module: rcall.luau Version: 1.4.0 Retrying call. Provides a way to call functions with a retry limit and delay to protect against calls that fail occasionally, such as web API calls. See end of file for usage information. ]] -- Types type rcallOptions = { async: boolean...
863
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/tasks/CharacterUtils.luau
luau
.luau
--[[ File Info CharacterUtils.luau @TactBacon Version: 1.7.3 Provides utility functions for working with characters. Adds callbacks for character spawning and provides a maid for cleaning up when the character is destroyed. Any function with the keyword `Local` in it will only work on the client and should n...
5,760
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/tasks/PermissionService.luau
luau
.luau
--[[ File Info Author(s): ChiefWildin Module: PermissionService.lua Version: 1.0.0 ]] --[=[ @class PermissionService Handles centralized permissions for different features. :::note Update the `GROUP_PERMISSIONS` table to include appropriate permissions for the group hosting the project. ::: ]=] -- Depend...
681
atomic-horizon/order
atomic-horizon-order-f613cc1/src/shared/core/tasks/PlayerUtils.luau
luau
.luau
--[[ Author(s): ChiefWildin Module: PlayerUtils.lua Version: 2.0.0 ]] --[=[ @class PlayerUtils Provides utility functions for working with players. ]=] -- Services local Players = game:GetService("Players") local UserService = game:GetService("UserService") -- Dependencies local Maid = shared("Maid") ---@m...
895
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.lune/build.luau
luau
.luau
-- Build script for rodeo -- 1. Builds the Roblox Studio plugin (.rbxm) -- 2. Builds the Rust CLI binary via cargo local fs = require("@lune/fs") local process = require("@lune/process") -- Exec a subprocess, abort the build if it exits non-zero. The historical -- bug: `process.exec` returns a result whose `.ok` is f...
824
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/config.luau
luau
.luau
return { N = 1000, FRAMES = 1800, }
17
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/run_all.luau
luau
.luau
--!strict -- Run all transform benchmarks via rodeo-client-lune against a multiplayer-test -- server (one fresh test per scenario, hosted by a single profiled edit -- Studio), then generate diff flamegraphs vs the bulkmoveto baseline. local fs = require("@lune/fs") local process = require("@lune/process") local task =...
1,019
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/attachment_cframe.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/attachment_cframe --mode run --context server -- Benchmark: Attachment.CFrame with N attachments local RunService = game:GetService("RunService") local config = require("../config") local N = config.N local FRAMES = config.FRAMES ...
221
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/attachment_cframe_raw_hack.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/attachment_cframe_hack --mode run --context server -- Benchmark: Attachment.CFrame via raw property setter (xpcall hack) with N attachments local RunService = game:GetService("RunService") -- Extract the raw C __newindex function fo...
321
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/bone_transform.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/bone_transform --mode run --context plugin local RunService = game:GetService("RunService") local bonePrefab = require("@rodeo/roblox").load(".rodeo/benchmarks/transforms/assets/bone_part.rbxm")[1] local config = require("../config"...
246
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/bone_transform_raw_hack.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/bone_transform_hack --mode run --context plugin -- Benchmark: Bone.Transform via raw property setter (xpcall hack) with N bones local RunService = game:GetService("RunService") -- Extract the raw C __newindex function for Instance b...
356
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/bulkmoveto.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/bulkmoveto --mode run --context server -- Benchmark: workspace:BulkMoveTo() with N anchored parts -- Runs for ~10s at 60fps, profiler captures engine-level frame data local RunService = game:GetService("RunService") local config = r...
274
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/bulkmoveto_raw_hack.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/bulkmoveto_hack --mode run --context server -- Benchmark: workspace:BulkMoveTo() via raw method call (xpcall hack) with N anchored parts local RunService = game:GetService("RunService") -- Extract the raw C method function for BulkM...
338
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/motor6d_transform.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/motor6d_transform --mode run --context server -- Benchmark: Motor6D.Transform with N constraints -- Runs for ~10s at 60fps, profiler captures engine-level frame data local RunService = game:GetService("RunService") local config = re...
376
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/benchmarks/transforms/scenarios/motor6d_transform_raw_hack.luau
luau
.luau
--@rodeo run --place --focus --profile .rodeo/benchmarks/transforms/results/profiles/motor6d_transform_hack --mode run --context server -- Benchmark: Motor6D.Transform via raw property setter (xpcall hack) with N constraints -- Uses chax rawcall to bypass normal property setter overhead local RunService = game:GetSer...
484
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/demo.luau
luau
.luau
-- @rodeo run --place print("Hello, world!") local n = 0 game:GetService("LogService").MessageOut:Connect(function(a, b) if string.find(a, "Stack Begin") then n += 1 end end) for i = 1, 100 do local choice = math.random(1, 4) if choice == 1 then print("Regular print #" .. i) elseif choice == 2 then warn("W...
981
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/io.luau
luau
.luau
--!nocheck local fs = require("@rodeo/fs") local io = require("@rodeo/io") local stream = require("@rodeo/stream") local function check(cond, msg) if not cond then error(msg or "check failed", 2) end end -- stdout write stream.write(io.stdout, "hello from io test\n") -- stderr write stream.write(io.stderr, "std...
288
revvy02/rodeo
revvy02-rodeo-1c8b6e8/.rodeo/sync.luau
luau
.luau
--[[ potential rojo improvements (look into argon as precedent) - fix the WorldPivotData problem - figure out how to allow syncback for duplicate files (possibly have a manifest file for mapping file names to instance names) - fix touch interest deletion/creation (possibly generalize this for s...
304
revvy02/rodeo
revvy02-rodeo-1c8b6e8/docs/docgen.luau
luau
.luau
-- Generate per-module markdown pages for the Luau surfaces, via lute's -- built-in `lute doc`. Run from the repo root: -- lute run docs/docgen.luau -- -- Output lands at docs/src/content/docs/{api,runtime}/<...>.md, mirroring -- the source-tree layout: subdirectories in the source become subdirectories -- here, so S...
1,462
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/init.luau
luau
.luau
local lune = require("@self/lune/map") local adapters = {} for alias, modules in lune do adapters[alias] = modules end return adapters
37
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/map.luau
luau
.luau
return { lune = { process = "src/process", stdio = "src/stdio", fs = "src/fs", task = "src/task", serde = "src/serde", }, }
48
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/src/fs.luau
luau
.luau
-- @lune/fs shim — maps to rodeo's fs + stream RPCs. -- Conformance target: lune's own fs tests (tests-new/adapters/lune/fs/). local g = _G.__rodeo_procs[_G.__rodeo_eid] -- Byte streams rather than the string stream: file contents are arbitrary -- binary, and the string path is UTF-8-lossy on the wire. local function ...
792
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/src/process.luau
luau
.luau
-- @lune/process shim — maps to rodeo's _G.__rodeo_procs APIs local g = _G.__rodeo_procs[_G.__rodeo_eid] local platform = g.process.platform() -- lune's os values are "windows" | "macos" | "linux" — same strings the -- host reports. local isWindows = platform == "windows" -- lune guarantees cwd ends with the platform s...
199
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/src/serde.luau
luau
.luau
-- @lune/serde shim — maps to HttpService JSON encode/decode local HttpService = game:GetService("HttpService") return { encode = function(format: string, value: any): string if format == "json" then return HttpService:JSONEncode(value) end error("serde shim only supports json format, got: " .. format) end,...
137
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/src/stdio.luau
luau
.luau
-- @lune/stdio shim — maps to rodeo's stream.write(io.stderr/stdout, ...) local g = _G.__rodeo_procs[_G.__rodeo_eid] return { ewrite = function(s: string) g.stream.write(g.io.stderr, s) end, write = function(s: string) g.stream.write(g.io.stdout, s) end, }
81
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lune/src/task.luau
luau
.luau
-- @lune/task shim — Roblox's task, with wait/delay durations clamped to -- lune's graceful out-of-range handling (lune issue #346): NaN, negative, -- infinite, or absurd durations become 0. Roblox task.wait only defaults -- NaN/inf to 0 — a finite-but-huge duration (1e30) would wait literally. local function clampDura...
194
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lute/src/fs.luau
luau
.luau
-- @lute/fs shim — maps lute's handle-based fs onto rodeo's fs + stream RPCs. -- Timestamps in stat are @lute/time Durations (since the Unix epoch), per -- lute's FileMetadata. -- -- Unsupported here: link/symlink/watch (no host RPC) and the read+write -- handle modes (host handles are a reader OR a writer). Each error...
1,077
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lute/src/process.luau
luau
.luau
-- @lute/process shim — maps to rodeo's process API. Lute's run/system are -- shape-compatible with rodeo's; only the result field names differ -- (stdout/stderr vs out/err). pid/onSignal have no host support and error -- clearly. local g = _G.__rodeo_procs[_G.__rodeo_eid] local function mapResult(result) return { ...
320
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lute/src/task.luau
luau
.luau
-- @lute/task shim — Roblox's task, extended with lute's additions: resume, -- deferSelf, and Duration-typed waits/delays (@lute/time values carry a -- toSeconds method; numbers pass through). local function toSeconds(duration): number? if duration == nil then return nil end if type(duration) == "number" then re...
194
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-adapters/lute/src/time.luau
luau
.luau
-- @lute/time shim — pure-Luau Instant/Duration matching lute's definitions: -- frozen values with locked metatables, arithmetic and comparison operators, -- nanosecond precision (as precise as double-held nanos allow). Instants are -- monotonic via os.clock(). -- -- NOTE: inlined as an IIFE with comments stripped (bun...
992
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-lune/src/dom.luau
luau
.luau
-- Dom handle. Carries per-DOM metadata + exposes runCode against the daemon. -- Mirrors rodeo-client-ts/src/client.ts `class Dom`. local run = require("./run") local exec = require("./exec") type Daemon = { call: (method: string, params: any?) -> any, registerStream: (streamId: string, cb: (string, { [string]: any...
403
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-lune/src/exec.luau
luau
.luau
-- Shared runCode plumbing for all three tiers (client / studio / dom). -- Mirrors rodeo-client-ts/src/client.ts `daemonRunCode`. local process = require("@lune/process") local serde = require("@lune/serde") local task = require("@lune/task") local run = require("./run") local uuid = require("./util/uuid") type Daem...
1,074
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-lune/src/init.luau
luau
.luau
-- rodeo-client-lune — Luau port of rodeo-client-ts. -- Entry point: `rodeo.connect({ port = ... })`. local client = require("@self/client") local run = require("@self/run") local studio = require("@self/studio") local dom = require("@self/dom") export type RodeoClient = client.RodeoClient export type ConnectOpts = c...
241
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-lune/src/run.luau
luau
.luau
-- Types for Dom.runCode — mirrors rodeo-client-ts/src/run.ts. export type LogFilter = { enableWarn: boolean?, enableError: boolean?, enableInfo: boolean?, enableOutput: boolean?, enableLogs: boolean?, } -- Common run options (every tier). `context` is the run context the code -- executes as (cf. Roblox Script.R...
475
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-lune/src/util/uuid.luau
luau
.luau
-- RFC 4122 version 4 UUID. Used for JSON-RPC request ids (as strings) and -- streamIds. Quality of randomness matches math.random (lune seeds from OS). local uuid = {} local HEX = "0123456789abcdef" local function randHex(n: number): string local out = table.create(n) for i = 1, n do local k = math.random(1, 16...
210
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-client-ts/build.luau
luau
.luau
-- Generate TS proto bindings (wraps `bun run generate` which invokes buf). -- Invoked from repo root (cwd = repo root): -- lune run rodeo-client-ts/build local process = require("@lune/process") print("Generating TS proto types...") process.exec("bun", { "run", "generate" }, { stdio = "forward", cwd = "rodeo-cli...
95
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/fs.luau
luau
.luau
-- @rodeo/fs shim local g = _G.__rodeo_procs[_G.__rodeo_eid] return g.fs
28
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/init.luau
luau
.luau
-- @rodeo shim — returns the full rodeo API table from _G local g = _G.__rodeo_procs[_G.__rodeo_eid] return g
37
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/io.luau
luau
.luau
-- @rodeo/io shim local g = _G.__rodeo_procs[_G.__rodeo_eid] return g.io
28
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/process.luau
luau
.luau
-- @rodeo/process shim local g = _G.__rodeo_procs[_G.__rodeo_eid] return g.process
28
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/roblox.luau
luau
.luau
-- @rodeo/roblox shim. import/export come from the factory-built singleton -- (transport tier); capture is implemented here in the shim (composition -- tier) — it only needs the public fs/process API plus engine services, so it -- rides the inlined bundle and works over any backend the singleton fronts. -- -- NOTE: thi...
1,435
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/shims/stream.luau
luau
.luau
-- @rodeo/stream shim local g = _G.__rodeo_procs[_G.__rodeo_eid] return g.stream
28
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/src/_internal/singleton.luau
luau
.luau
-- Internal: the rodeo singleton (metatable + _G.__rodeo_eid dispatch). -- Imported by every public module file (fs.luau, io.luau, etc.) so the -- per-execution dispatch is shared. Has no upward dependencies so the -- module graph stays acyclic. -- -- NOTE: this is the typedef-side singleton. The actual runtime shims i...
267
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/src/roblox.luau
luau
.luau
-- Roblox-flavored helpers. -- Bundled require: `local roblox = require("@rodeo/roblox")`. local singleton = require("./_internal/singleton") local roblox = {} --- Camera options for `capture`. All fields optional. --- `cframe` — scripted camera position for the shot (restored after). --- `fov` — field of view. `foc...
577
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-pkg/rodeo/src/stream.luau
luau
.luau
-- Stream read/write/close primitives for handles returned by `fs.open`, -- `io` stdio handles, and `process.create` stdio. -- Bundled require: `local stream = require("@rodeo/stream")`. -- -- NOTE: typedef-only. The runtime lives in rodeo-pkg/rodeo/shims/stream.luau. local singleton = require("./_internal/singleton")...
362
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/build.luau
luau
.luau
-- Build the rodeo plugin (.rbxm). -- Runs rojo sourcemap → darklua process → assemble bundle → rojo build. -- Invoked from repo root (cwd = repo root) by the top-level build script: -- lune run rodeo-plugin/build -- Also self-runnable for plugin-only rebuilds. local fs = require("@lune/fs") local process = require(...
694
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/context/AppContext.luau
luau
.luau
--[[ AppContext - Central state management for the Rodeo plugin This module provides: - Context creation and types - AppProvider component with all state logic - useAppContext hook for consuming the context All state flows through React context to child components. ]] local React = require("@pkg/react") local ...
2,078
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/Button.luau
luau
.luau
local React = require("@pkg/react") local e = React.createElement export type Props = { text: string, color: Color3, strokeColor: Color3, size: UDim2, cornerRadius: number?, layoutOrder: number?, onClick: () -> (), } local function Button(props: Props) local cornerRadius = props.cornerRadius or 8 local isPr...
484
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/Checkbox.luau
luau
.luau
local React = require("@pkg/react") local constants = require(script.Parent.Parent.Parent.library.constants) local Button = require(script.Parent.Button) local e = React.createElement local COLORS = constants.COLORS export type Props = { checked: boolean, strokeColor: Color3, onToggle: () -> (), } local function ...
165
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/Container.luau
luau
.luau
local React = require("@pkg/react") local e = React.createElement export type Props = { children: { [string]: any }, } local function Container(props: Props) return e("Frame", { BackgroundTransparency = 1, AutomaticSize = Enum.AutomaticSize.Y, Size = UDim2.fromScale(1, 0), BorderSizePixel = 0, }, { Padd...
245
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/Label.luau
luau
.luau
local React = require("@pkg/react") local e = React.createElement export type Props = { text: string, textColor: Color3?, } local function Label(props: Props) return e("TextLabel", { BackgroundTransparency = 1, AutomaticSize = Enum.AutomaticSize.XY, Text = props.text, TextColor3 = props.textColor or Color...
215
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/RodeoLabel.luau
luau
.luau
local React = require("@pkg/react") local TweenService = game:GetService("TweenService") local assets = require(script.Parent.Parent.Parent.library.assets) local constants = require(script.Parent.Parent.Parent.library.constants) local e = React.createElement local TILE_SIZE_X = 140 local TILE_SIZE_Y = 40 local funct...
574
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/Row.luau
luau
.luau
local React = require("@pkg/react") local e = React.createElement export type Props = { height: number?, layoutOrder: number?, children: any, } local function Row(props: Props) local height = props.height or 24 return e("Frame", { BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, height), LayoutOrder...
172
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/StatusIndicator.luau
luau
.luau
local React = require("@pkg/react") local useAppContext = require(script.Parent.Parent.context.AppContext).useAppContext local Row = require(script.Parent.Row) local constants = require(script.Parent.Parent.Parent.library.constants) local e = React.createElement local COLORS = constants.COLORS -- Count number of entr...
968
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/TextInput.luau
luau
.luau
local React = require("@pkg/react") local e = React.createElement export type Props = { value: string, placeholder: string?, textColor: Color3, placeholderColor: Color3?, textXAlignment: Enum.TextXAlignment?, onValueChange: (value: string) -> (), } local function TextInput(props: Props) local function handleF...
355
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/app/widget/init.luau
luau
.luau
local React = require("@pkg/react") local AppContext = require(script.Parent.context.AppContext) local Checkbox = require(script.Checkbox) local Container = require(script.Container) local Label = require(script.Label) local RodeoLabel = require(script.RodeoLabel) local Row = require(script.Row) local StatusIndicator ...
929
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/init.server.luau
luau
.luau
--[[ Rodeo Plugin Entry Point Bootstraps the React UI. All connection and execution logic lives in AppProvider, which auto-connects on load (no manual host/port/autoConnect — the port comes from the launch's rodeoPort attribute, else the default). The app is always mounted (the widget is the mount point) so the ...
500
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/assets.luau
luau
.luau
-- This file is automatically @generated by Asphalt. -- It is not intended for manual editing. local assets = { logo = "rbxassetid://106212962928799", rodeo = "rbxassetid://128142019588385", } return assets
57
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/constants.luau
luau
.luau
return { -- Suffix used to rename modules during uncacheable require traversal IGNORE_SUFFIX = ".rodeo.ignore.", -- Rodeo version, injected at build time by darklua (inject_global_value). VERSION = RODEO_VERSION, -- Default connection settings. The static plugin auto-connects to the -- studio backend's WebSocke...
598
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/log.luau
luau
.luau
-- Logger factory — creates a per-execution logger that writes to CLI stderr via RPC. -- Usage: local log = createLogger(rpc, "debug") local runtime = require(script.Parent.Parent.Parent.shared.proto.runtime) local LEVELS = { debug = 0, info = 1, warn = 2, error = 3 } local RESET = "\27[0m" local COLORS = { [0] = "...
322
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/mode_driver.luau
luau
.luau
--!strict --[[ mode_driver.luau — plugin-side convergence loop. Backend broadcasts target_mode to every DOM in a studio; each plugin retries its role- appropriate action in a loop until its own mode satisfies the target (or a new target arrives and supersedes this one). Role dispatch: - Edit DOM (IsEdit) enters ...
698
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/runner/roblox.luau
luau
.luau
-- @rodeo/roblox API: import / export model files via SerializationService, -- plus bake (Luau-source data files). -- Returns a factory: (rpc, fs, stream, normalize, serializeToLuau) -> roblox module. return function(rpc, fs, stream, normalize, serializeToLuau) local roblox = {} local SerializationService = game:Get...
460
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/studio.luau
luau
.luau
--[[ How this works: Plugins will spawn for every VM We use studio MCP to execute luau to fire bindables + remotes to disperse the studio ID ]] --!strict local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService...
2,777
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/terminal.luau
luau
.luau
--!strict local terminal = {} export type TableConfig = { justify_left: { number }?, justify_right: { number }?, justify_center: { number }?, margin_left: { number }?, margin_right: { number }?, } export type FormatTree = { text: string, children: { FormatTree }?, } ------------------------------------------...
2,545
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-plugin/src/library/utils.luau
luau
.luau
-- Shared utilities for rodeo plugins local ScriptEditorService = game:GetService("ScriptEditorService") local constants = require(script.Parent.constants) -- LuaSourceContainer.Source rejects strings at 200,000 bytes, even though -- Studio's script editor and compiler support substantially larger sources. -- Update...
1,746
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/build.luau
luau
.luau
-- Generate Luau proto bindings from rodeo-proto/proto/ into rodeo-shared/proto/. -- Invoked from repo root (cwd = repo root): -- lune run rodeo-shared/build -- Also self-runnable for Luau-proto-only regen. local fs = require("@lune/fs") local process = require("@lune/process") -- rodeo-shared/proto/ is 100% genera...
216
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/limits.luau
luau
.luau
-- Transport size limits shared by the plugin runner and (eventually) the -- live-vluau runtime host. -- -- The done message carrying `ExecutionDone.return_value` is a single -- unchunkable message on every hop, and the binding transport constraint is -- connectrpc's 4,194,304-byte per-envelope cap (backend→master and ...
158
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/logging.luau
luau
.luau
-- ANSI log capture: connects to LogService, writes colored output to streams -- Returns a factory: (LogService, fs, stream, io, logFilter, outputFile) -> logConnection, outputFileStreamHandle? return function(LogService, fs, stream, io, logFilter, outputFile) local ANSI = { [Enum.MessageType.MessageOutput] = "", ...
369
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/normalize.luau
luau
.luau
-- Type converters: Roblox types → JSON-compatible tagged structs -- Returns the normalize function local TYPE_CONVERTERS = { Vector3 = function(v) return { type = "Vector3", value = { v.X, v.Y, v.Z } } end, Vector2 = function(v) return { type = "Vector2", value = { v.X, v.Y } } end, CFrame = function(v) re...
494
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/output.luau
luau
.luau
-- Done message factory for rodeo execution results. -- Returns a typed PluginMessage (done variant) that callers forward to their -- transport (BindableEvent → MessageHandler in the plugin). local rodeoProto = require("./proto/rodeo") local function createDoneMessage(executionId: string, success: boolean, err: strin...
136
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/proto/proto/init.luau
luau
.luau
local base64 = require("@self/base64") local message = require("@self/message") local typeRegistry = require("@self/typeRegistry") export type Descriptor = message.Descriptor export type Message<T, Fields> = message.Message<T, Fields> export type CustomJson<T, Json> = message.CustomJson<T, Json> export type TypeRegist...
3,361
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/run.luau
luau
.luau
-- Shared execution core for the rodeo plugin runner. -- Handles the full execution lifecycle: APIs, logging, execution, return values, cleanup -- -- Usage: -- local run = require("rodeo-shared/run") -- local success, result = run(rpc, params, function(apis) -- return xpcall(function() return <execute user co...
890
revvy02/rodeo
revvy02-rodeo-1c8b6e8/rodeo-shared/serialize.luau
luau
.luau
-- Luau table serializer: converts normalized values to Luau source code -- Returns the serializeToLuau function local function escapeString(str) local r = str r = r:gsub("\\", "\\\\") r = r:gsub("\n", "\\n") r = r:gsub("\t", "\\t") r = r:gsub("\r", "\\r") r = r:gsub('"', '\\"') return r end local function get...
1,130
revvy02/rodeo
revvy02-rodeo-1c8b6e8/studio-skills/extract.luau
luau
.luau
--!strict -- Extracts the Roblox Studio Assistant's built-in skills out of the shipped -- Assistant plugin (Assistant.rbxm) into raw/ as a tree of plain .md files. -- raw/ is the pristine reference; curated skills are hand-edited copies (see README). -- -- The skills are stored as StringValues under -- Assistant/Pack...
811
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/formatUniversalTime.luau
luau
.luau
local DateTime = require("@lune/datetime") assert( DateTime.fromUnixTimestamp(1693068988):formatUniversalTime("%Y-%m-%dT%H:%M:%SZ", "en") == "2023-08-26T16:56:28Z", "invalid ISO 8601 formatting for DateTime.formatTime() (UTC)" ) local expectedTimeString = os.date("%Y-%m-%dT%H:%M:%SZ", 1694078954) assert( DateTi...
151
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/fromLocalTime.luau
luau
.luau
local DateTime = require("@lune/datetime") local timeValues1 = os.date("*t", 1693049188) assert( DateTime.fromLocalTime({ year = timeValues1.year, month = timeValues1.month, day = timeValues1.day, hour = timeValues1.hour, minute = timeValues1.min, second = timeValues1.sec, millisecond = 0, }).unixTime...
303
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/fromRfc2822.luau
luau
.luau
local DateTime = require("@lune/datetime") assert( DateTime.fromRfc2822("Fri, 21 Nov 1997 09:55:06 -0600") ~= nil, "expected DateTime.fromRfcDate() to return DateTime, got nil" ) assert( DateTime.fromRfc2822("Tue, 1 Jul 2003 10:52:37 +0200") ~= nil, "expected DateTime.fromRfcDate() to return DateTime, got nil" )
106
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/fromRfc3339.luau
luau
.luau
local DateTime = require("@lune/datetime") assert( DateTime.fromRfc3339("2023-08-26T16:56:28Z") ~= nil, "expected DateTime.fromRfc3339() to return DateTime, got nil" ) assert( DateTime.fromRfc3339("1929-12-05T23:18:23Z") ~= nil, "expected DateTime.fromRfc3339() to return DateTime, got nil" )
100
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/fromUniversalTime.luau
luau
.luau
local DateTime = require("@lune/datetime") assert( DateTime.fromUniversalTime({ year = 2023, month = 8, day = 26, hour = 16, minute = 56, second = 28, millisecond = 0, }).unixTimestamp == 1693068988, "expected DateTime.fromUniversalTime() with DateTimeValues arg to return 1693068988s" ) assert( Date...
195
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/fromUnixTimestamp.luau
luau
.luau
local DateTime = require("@lune/datetime") -- Bug in rust side implementation for fromUnixTimestamp, calculation for conversion there is wonky, -- a difference of few millis causes differences as whole seconds for some reason assert( DateTime.fromUnixTimestamp(0000.892).unixTimestampMillis == (0 * 1000) + 892, "exp...
166
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/now.luau
luau
.luau
local DateTime = require("@lune/datetime") local TYPE = "DateTime" local now = DateTime.now() assert(typeof(now) == TYPE, `dateTime.now() should return a {TYPE}, returned {typeof(now)}`)
45
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/toLocalTime.luau
luau
.luau
local DateTime = require("@lune/datetime") local values = DateTime.fromRfc3339("2023-08-27T05:54:19Z"):toLocalTime() local expectedDateTimeValues = os.date("*t", 1693115659) assert( values.year == expectedDateTimeValues.year, `expected {values.year} == {expectedDateTimeValues.year}` ) assert( values.month == expe...
204
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/datetime/toRfc2822.luau
luau
.luau
local DateTime = require("@lune/datetime") local now = DateTime.now() local nowRfc = now:toRfc2822() assert(type(nowRfc) == "string", "toRfcDate should return a string") assert( string.match(nowRfc, "^%a%a%a, %d%d? %a%a%a %d%d%d%d %d%d:%d%d:%d%d [+-]%d%d%d%d$"), "RFC 2822 date string does not match expected format"...
658
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/copy.luau
luau
.luau
local TEMP_DIR_PATH = "bin/" local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_copy_test" local TEMP_ROOT_PATH_2 = TEMP_DIR_PATH .. "fs_copy_test_2" local fs = require("@lune/fs") local utils = require("./utils") -- Make sure our bin dir exists fs.writeDir(TEMP_DIR_PATH) if fs.isDir(TEMP_ROOT_PATH) then fs.removeDir(TEMP...
569
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/dirs.luau
luau
.luau
local TEMP_DIR_PATH = "bin/" local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_dirs_test" local fs = require("@lune/fs") -- Write two inner dirs in the bin dir, a parent and a child fs.writeDir(TEMP_ROOT_PATH .. "/test_inner") -- Make sure dir checks succeed but file -- checks fail for all levels of dirs assert(fs.isDir...
251
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/files.luau
luau
.luau
local TEMP_DIR_PATH = "bin/" local TEMP_ROOT_PATH = TEMP_DIR_PATH .. "fs_files_test" local fs = require("@lune/fs") local utils = require("./utils") -- Make sure our bin dir exists fs.writeDir(TEMP_DIR_PATH) fs.writeDir(TEMP_ROOT_PATH) -- Write both of our files -- binaryBlob is of type buffer to make sure fs.writ...
454
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/metadata.luau
luau
.luau
--!nolint UnknownType local TEMP_DIR_PATH = "bin/" local TEMP_FILE_PATH = TEMP_DIR_PATH .. "metadata_test" local fs = require("@lune/fs") local task = require("@lune/task") local utils = require("./utils") -- Make sure our bin dir exists fs.writeDir(TEMP_DIR_PATH) if fs.isFile(TEMP_FILE_PATH) then fs.removeFile(TE...
511
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/move.luau
luau
.luau
local fs = require("@lune/fs") local utils = require("./utils") -- Make sure our bin dir exists fs.writeDir("bin") -- Write both of our files fs.writeFile("bin/move_test_binary", utils.binaryBlob) fs.writeFile("bin/move_test_json.json", utils.jsonBlob) -- Move / rename them to something else, to test we -- change ...
428
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/fs/utils.luau
luau
.luau
local serde = require("@lune/serde") -- Generate testing data local binaryBlob = "" for _ = 1, 1024 do binaryBlob ..= string.char(math.random(1, 127)) end local jsonBlob = serde.encode("json", { Foo = "Bar", Hello = "World", Inner = { Array = { 1, 2, 3 } }, }, true) -- Return testing data and utils return { b...
116
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/globals/_G.luau
luau
.luau
assert(_G ~= nil, "Missing _G") assert(type(_G) == "table", "Invalid type for _G") assert(_G.require == nil, "Built-in global value was found in _G") assert(_G.print == nil, "Built-in global value was found in _G") assert(_G.warn == nil, "Built-in global value was found in _G") assert(_G.error == nil, "Built-in globa...
224
revvy02/rodeo
revvy02-rodeo-1c8b6e8/tests-new/adapters/lune/globals/_VERSION.luau
luau
.luau
-- _VERSION global should follow the following format: --[[ _VERSION global must have the following format: Lune LUNE_MAJOR.LUNE_MINOR.LUNE_PATCH+LUAU_VERSION Examples: Lune 0.0.0+0 Lune 1.0.0+500 Lune 0.11.22+9999 ]] assert(_VERSION ~= nil, "_VERSION global is missing") assert(type(_VERSION) == "string", "_V...
488