repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/frontend/hints.luau
luau
.luau
--[[ @name hints @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { UserInputService = game:GetService("UserInputService"), TextService = game:GetService("TextService"), Players = game:GetService("Players"), Arguments = require("../../../shared/kommand/ar...
4,850
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/frontend/panel.luau
luau
.luau
--[[ @name panel @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { TextService = game:GetService("TextService"), Workspace = game:GetService("Workspace"), Shape = require("../../motion/math/shape"), Placement = require("../misc/placement"), ...
4,994
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/frontend/providers.luau
luau
.luau
--!strict --[[ @name providers @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Players = game:GetService("Players"), } local Types = require("../../../../types/sharedTypes") --// types export type Argument = Types.Argument type Provider = Types.Provider...
399
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/frontend/session.luau
luau
.luau
--[[ @name session @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { UserInputService = game:GetService("UserInputService"), Dragging = require("../../motion/math/dragging"), Reveal = require("../../motion/suggest/reveal"), Scroll = require("../../motion...
7,581
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/frontend/suggestions.luau
luau
.luau
--[[ @name suggestions @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { Suggest = require("../../motion/suggest"), Providers = require("./providers"), Text = require("../misc/text"), View = require("../misc/view"), } --// locals local function s...
2,985
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/misc/placement.luau
luau
.luau
--!strict --[[ @name placement @author driftingAurora, dullflowerr, alias; kioukaii @time July 22, 2026 ]] local Types = require("../../../../types/uiTypes") export type Preset = Types.PlacementPreset local bottomCenter = Vector2.new(0.5, 1) local presetAnchors: { [string]: Vector2 } = { br = Vector2.new(1, 1)...
817
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/misc/text.luau
luau
.luau
--!strict --[[ @name text @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// public api local Text = {} local function stringValue(value: any): string return tostring(value or "") end function Text.callable(value: any): boolean if type(value) == "function" then retur...
842
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/elements/misc/view.luau
luau
.luau
--[[ @name view @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { Placement = require("./placement"), Text = require("./text"), } local Types = require("../../../../types/uiTypes") type Properties = Types.ViewProperties type Make = Types.ViewMake -...
4,245
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/init.luau
luau
.luau
--!strict --[[ @name ui @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { Render = require("@self/render"), } --// public api local UI = { render = Imports.Render, } return table.freeze(UI)
78
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/ease.luau
luau
.luau
--!strict --[[ @name ease @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] local Types = require("../../../../types/uiTypes") --// types export type EaseGroup = Types.EaseGroup --// public api local Ease: EaseGroup = { direction = Enum.EasingDirection.Out, style = Enum.EasingStyle.Qu...
108
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/init.luau
luau
.luau
--!strict --[[ @name math @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Dragging = require("@self/dragging"), Scroll = require("@self/scroll"), Slide = require("@self/slide"), Tween = require("@self/tween"), Ease = require("@self/ease"), } local M...
140
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/scroll.luau
luau
.luau
--!strict --[[ @name scroll @author driftingAurora, dullflowerr, alias; kioukaii @time July 11, 2026 ]] --// imports local Imports = { TweenService = game:GetService("TweenService"), } local Types = require("../../../../types/uiTypes") --// types type State = Types.ScrollState --// locals local states: { [Scro...
409
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/shape.luau
luau
.luau
--[[ @name shape @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Placement = require("../../elements/misc/placement"), Math = require("../math"), } local Tween = Imports.Math.tween --// locals local function layoutMain(session, time, width, mainHeight, ...
4,104
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/slide.luau
luau
.luau
--!strict --[[ @name slide @author driftingAurora, dullflowerr, alias; kioukaii @time July 3, 2026 ]] --// imports local Imports = { Tween = require("./tween"), } --// public api local Slide = {} function Slide.history(session: any, channel: number): () local contentName = channel == 2 and "secondHistoryCon...
237
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/math/tween.luau
luau
.luau
--!strict --[[ @name tween @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { TweenService = game:GetService("TweenService"), Ease = require("./ease"), } --// public api local Tween = {} function Tween.to( instance: Instance?, props: { [string]: any },...
230
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/suggest/hint.luau
luau
.luau
--[[ @name hint @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Math = require("../math"), } local Tween = Imports.Math.tween --// locals local function rowPosition(offset) return UDim2.new(0, offset, 0.5, 0) end --// public api local Hint = {} functi...
239
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/suggest/init.luau
luau
.luau
--[[ @name suggest @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Placement = require("../elements/misc/placement"), Math = require("./math"), } local Tween = Imports.Math.tween local function suggestionWidth(session) local refs = session.refs local ...
1,079
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/motion/suggest/reveal.luau
luau
.luau
--[[ @name reveal @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// imports local Imports = { Placement = require("../../elements/misc/placement"), Math = require("../math"), } local Tween = Imports.Math.tween --// locals local function savedPosition(session, key, root) local pos...
2,445
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/core/ui/render.luau
luau
.luau
--!strict --[[ @name render @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local ConfigModule = require("../../config") local Imports = { Config = ConfigModule, Controller = require("./elements/backend/controller"), Formatter = require("./elements/backend/formatter"),...
204
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/init.luau
luau
.luau
--!strict --[[ @name Konsole @author driftingAurora, dullflowerr, alias; kioukaii @time June 12, 2026 ]] --// imports local Imports = { RunService = game:GetService("RunService"), Config = require("@self/config"), Cmds = require("@self/cmds"), Core = require("@self/core"), } local Types = require("@self/type...
2,241
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/types/init.luau
luau
.luau
--!strict --[[ @name types @author driftingAurora, dullflowerr, alias; kioukaii @time July 11, 2026 ]] --// imports local Types = { SharedTypes = require("@self/sharedTypes"), UITypes = require("@self/uiTypes"), } return table.freeze(Types)
77
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/types/sharedTypes.luau
luau
.luau
--!strict --[[ @name sharedTypes @author driftingAurora, dullflowerr, alias; kioukaii @time June 13, 2026 ]] --// types export type Converter = (token: string, caller: Caller) -> (boolean, any) export type Converters = { [string]: Converter } export type Caller = Player? export type Argument = { suggestions: (...
586
KYRORBLX/Konsole
KYRORBLX-Konsole-c7db773/src/types/uiTypes.luau
luau
.luau
--!strict --[[ @name uiTypes @author driftingAurora, dullflowerr, alias; kioukaii @time June 30, 2026 ]] local Types = require("./sharedTypes") --// types export type ResultKind = "text" | "table" | "error" | "warn" export type RenderResult = { rows: { { [string]: any } }, code: string?, ok: boolean, column...
1,989
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/build.luau
luau
.luau
local collectPackages = require("@lune-lib/utils/collect-packages") local fs = require("@lune/fs") local path = require("@lune-lib/utils/path") local process = require("@lune/process") local roblox = require("@lune/roblox") local rootConfig = require("@lune-lib/root-config") local selectPackages = require("@lune-lib/ut...
3,108
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/configure.luau
luau
.luau
-- Repository export type RootPublisher = { scope: string, registry: string, } local function publisher(x: RootPublisher) return table.freeze(x) end export type RepoConfig = { repository: string, homepage: string, packageDir: string, defaults: { authors: { string }, license: string, version: string, },...
363
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/root-config.luau
luau
.luau
local rootConfig = require("../../prvd.config") return rootConfig
14
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_plugin = require("./tiniest_plugin") type Context = DescribeContext | RunContext type DescribeContext = { type: "describe", labels: { string }, add_test: (Test) -> (), } type RunContext = { type: "run", } export type ErrorReport = { type: "tin...
1,328
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_expect.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest_quote = require("./tiniest_quote") local tiniest_expect = {} type Context = { target: unknown, test: string, params: { unknown }, } local context: Context = { target = nil, test = "", params = {}, } local function fail(message: string?): neve...
1,033
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_for_lune.luau
luau
.luau
-- From dphfox/tiniest, licensed under BSD3 --!strict local tiniest = require("./tiniest") local tiniest_expect = require("./tiniest_expect") local tiniest_pretty = require("./tiniest_pretty") local tiniest_snapshot = require("./tiniest_snapshot") local tiniest_time = require("./tiniest_time") local fs = require("@lu...
832
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_plugin.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict export type Plugin = { is_tiniest_plugin: true, } local tiniest_plugin = {} function tiniest_plugin.configure(plugins: { any }?) if plugins ~= nil then for index, plugin in plugins do if not plugin.is_tiniest_plugin then error(`sanity check: plugin #{in...
180
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_pretty.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest = require("./tiniest") local tiniest_plugin = require("./tiniest_plugin") type Test = tiniest.Test type TestRunResult = tiniest.TestRunResult type RunResult = tiniest.RunResult export type Options = { plugins: nil | { tiniest_plugin.Plugin }, disabl...
1,762
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_quote.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local function tiniest_quote(x: unknown, given_indent_amount: number?): string if type(x) == "nil" or type(x) == "number" or type(x) == "boolean" or type(x) == "userdata" then return tostring(x) elseif type(x) == "string" then return string.format("%q", x) el...
367
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_snapshot.luau
luau
.luau
-- From dphfox/tiniest, licensed under BSD3 --!strict local tiniest = require("./tiniest") local tiniest_quote = require("./tiniest_quote") type Test = tiniest.Test export type TestRunResult = tiniest.TestRunResult & { num_snapshots_updated: number, num_snapshots_obsolete: number, } export type RunResult = tiniest....
1,218
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/tiniest/tiniest_time.luau
luau
.luau
-- From dphfox/tiniest, licenced under BSD --!strict local tiniest = require("./tiniest") local tiniest_pretty = require("./tiniest_pretty") type Test = tiniest.Test export type TestRunResult = tiniest.TestRunResult & { duration: number, } export type RunResult = tiniest.RunResult & { duration: number, } export ty...
615
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/types.luau
luau
.luau
local configure = require("@lune-lib/configure") export type PackageContext = { rootDir: string, outDir: string, outWorkDir: string, packagesDir: string, packages: { [string]: Package }, } export type Package = { absolutePath: string, relativePath: string, config: configure.PackageConfig, } return nil
76
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/utils/collect-packages.luau
luau
.luau
local configure = require("@lune-lib/configure") local fs = require("@lune/fs") local path = require("@lune-lib/utils/path") local types = require("@lune-lib/types") local function collectPackages(rootPath: string, packageDir: string) local packages: { types.Package } = {} local packageDirPath = path(rootPath, packa...
290
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/utils/path.luau
luau
.luau
local process = require("@lune/process") local delimiter = if process.os == "windows" then "\\" else "/" local function path(...: string) return table.concat({ ... }, delimiter) end return path
44
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/utils/print-divider.luau
luau
.luau
local styles = require("./styles") local LINE_COUNT = 80 local bold = styles.bold local dim = styles.dim local function printDivider(str: string, lineCount: number?) local dashRepeats = ((lineCount or LINE_COUNT) - str:len()) * 0.5 local extraIfUneven = if str:len() % 2 ~= 0 then 1 else 0 return print(bold(`{dim(...
126
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/lib/utils/select-packages.luau
luau
.luau
local process = require("@lune/process") local stdio = require("@lune/stdio") local types = require("@lune-lib/types") local function selectPackages(packages: { types.Package }): { names: { string }, nameToPackage: { [string]: types.Package }, selected: { string }, } local packageNames = {} local nameToPackage = ...
254
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/pesde-scripts/roblox_sync_config_generator.luau
luau
.luau
return (require)("./../../lune_packages/.pesde/pesde+scripts_rojo/0.1.0/scripts_rojo/roblox_sync_config_generator")
35
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/pesde-scripts/sourcemap-generator.luau
luau
.luau
return (require)("./../../lune_packages/.pesde/pesde+scripts_rojo/0.1.0/scripts_rojo/sourcemap_generator")
34
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/.lune/tiniest.luau
luau
.luau
local fs = require("@lune/fs") local tiniest = require("@lune-lib/tiniest/tiniest_for_lune").configure({}) local tests = tiniest.collect_tests(function() local function visitDir(path: string, luauPath: string) for _, entry in fs.readDir(path) do local fullPath = path .. "/" .. entry local fullLuauPath = luauP...
218
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/depend.luau
luau
.luau
local logger = require("./logger") local types = require("./types") local function useBeforeConstructed(unresolved: types.UnresolvedDependency) logger:fatalError({ template = logger.useBeforeConstructed, unresolved.dependency.name or "subdependency" }) end local unresolvedMt = { __metatable = "This metatable is loc...
202
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/init.luau
luau
.luau
local depend = require("@self/depend") local processDependencies = require("@self/process-dependencies") local sortByPriority = require("@self/sort-by-priority") local types = require("@self/types") export type Dependency<Self, Dependencies = nil, NewArgs... = ()> = types.Dependency<Self, Dependencies, NewArgs...> re...
90
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/logger.luau
luau
.luau
local logger = require("../logger") return logger.create("@prvdmwrong/dependencies", logger.standardErrorInfoUrl("dependencies"), { useBeforeConstructed = "Cannot use %s before it is constructed. Are you using the dependency outside a class method?", alreadyDestroyed = "Cannot destroy an already destroyed Root.", a...
74
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/process-dependencies.luau
luau
.luau
local lifecycles = require("../lifecycles") local types = require("./types") export type ProccessDependencyResult = { sortedDependencies: { types.Dependency<any> }, lifecycles: { lifecycles.Lifecycle }, } type Set<T> = { [T]: true } local function processDependencies(dependencies: Set<types.Dependency<any>>): Proc...
386
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "dependencies", description = "Dependency resolution logic for Prvd 'M Wrong", types = table.freeze({ ["Dependency<Self, Dependencies = nil, NewArgs... = ()>"] = "Dependency<Self, Dependencies, NewArgs...>", }), dependencies = ...
91
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/sort-by-priority.luau
luau
.luau
local types = require("./types") local function sortByPriority(dependencies: { types.Dependency<unknown> }) table.sort(dependencies, function(left: any, right: any) if left.priority ~= right.priority then return (left.priority or 1) > (right.priority or 1) end local leftIndex = table.find(dependencies, left)...
104
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/dependencies/types.luau
luau
.luau
export type Dependency<Self, Dependencies = nil, NewArgs... = ()> = Self & { dependencies: Dependencies, priority: number?, new: (dependencies: Dependencies, NewArgs...) -> Dependency<Self, Dependencies, NewArgs...>, } export type UnresolvedDependency = { type: "UnresolvedDependency", dependency: Dependency<any>,...
88
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/create.luau
luau
.luau
local await = require("./methods/await") local clear = require("./methods/unregister-all") local destroy = require("./methods/destroy") local lifecycleConstructed = require("./hooks/lifecycle-constructed") local methodToLifecycles = require("./method-to-lifecycles") local onRegistered = require("./methods/on-registered...
307
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/handlers/fire-concurrent.luau
luau
.luau
local runtime = require("../../runtime") local types = require("../types") local function fireConcurrent<Args...>(lifecycle: types.Lifecycle<Args...>, ...: Args...) for _, callback in lifecycle.callbacks do runtime.threadpool.spawn(callback, ...) end end return fireConcurrent
63
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/handlers/fire-sequential.luau
luau
.luau
local types = require("../types") local function fireSequential<Args...>(lifecycle: types.Lifecycle<Args...>, ...: Args...) for _, callback in lifecycle.callbacks do callback(...) end end return fireSequential
48
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/hooks/lifecycle-constructed.luau
luau
.luau
local types = require("../types") local callbacks: { (lifecycle: types.Lifecycle) -> () } = {} local function onLifecycleConstructed(listener: (lifecycle: types.Lifecycle) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return...
90
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/hooks/lifecycle-destroyed.luau
luau
.luau
local types = require("../types") local callbacks: { (lifecycle: types.Lifecycle) -> () } = {} local function onLifecycleDestroyed(listener: (lifecycle: types.Lifecycle) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return t...
90
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/hooks/lifecycle-registered.luau
luau
.luau
local types = require("../types") local callbacks: { (lifecycle: types.Lifecycle, callback: (...unknown) -> ()) -> () } = {} local function onLifecycleRegistered<Args...>( listener: ( lifecycle: types.Lifecycle<Args...>, callback: (Args...) -> () ) -> () ): () -> () table.insert(callbacks, listener :: any) re...
120
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/hooks/lifecycle-unregistered.luau
luau
.luau
local types = require("../types") local callbacks: { (lifecycle: types.Lifecycle, callback: (...unknown) -> ()) -> () } = {} local function onLifecycleUnregistered<Args...>( listener: ( lifecycle: types.Lifecycle<Args...>, callback: (Args...) -> () ) -> () ): () -> () table.insert(callbacks, listener :: any) ...
123
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/init.luau
luau
.luau
local create = require("@self/create") local fireConcurrent = require("@self/handlers/fire-concurrent") local fireSequential = require("@self/handlers/fire-sequential") local lifecycleConstructed = require("@self/hooks/lifecycle-constructed") local lifecycleDestroyed = require("@self/hooks/lifecycle-destroyed") local l...
247
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/logger.luau
luau
.luau
local logger = require("../logger") return logger.create("@prvdmwrong/lifecycles", logger.standardErrorInfoUrl("lifecycles"), { useAfterDestroy = "Cannot use Lifecycle after it is destroyed.", alreadyDestroyed = "Cannot destroy an already destroyed Lifecycle.", })
58
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/method-to-lifecycles.luau
luau
.luau
local types = require("./types") local methodToLifecycles: { [string]: { types.Lifecycle } } = {} return methodToLifecycles
35
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/await.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function await<Args...>(lifecycle: types.Self<Args...>): Args... if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end local currentThread = coroutine.running() local function callback(...: Args...) ...
104
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/destroy.luau
luau
.luau
local lifecycleDestroyed = require("../hooks/lifecycle-destroyed") local logger = require("../logger") local methodToLifecycles = require("../method-to-lifecycles") local types = require("../types") local function destroy<Args...>(lifecycle: types.Self<Args...>) if lifecycle._isDestroyed then logger:fatalError({ te...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/on-registered.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function onRegistered<Args...>(lifecycle: types.Self<Args...>, listener: (callback: (Args...) -> ()) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end if _G.PRVDMWRONG_DISALLOW_MULTIPLE_LIS...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/on-unregistered.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function onUnregistered<Args...>(lifecycle: types.Self<Args...>, listener: (callback: (Args...) -> ()) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end if _G.PRVDMWRONG_DISALLOW_MULTIPLE_L...
151
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/register.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function register<Args...>(lifecycle: types.Self<Args...>, callback: (Args...) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAf...
134
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/unregister-all.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function clear<Args...>(lifecycle: types.Self<Args...>) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end for _, cal...
103
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/unregister.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function unregister<Args...>(lifecycle: types.Self<Args...>, callback: (Args...) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.use...
120
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "lifecycles", description = "Provider method lifecycles implementation for Prvd 'M Wrong", dependencies = configure.dependencies({ logger = true, runtime = true, }), types = { ["Lifecycle<Args... = ...unknown>"] = "Lifecycl...
84
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/types.luau
luau
.luau
export type Lifecycle<Args... = ...any> = { type: "Lifecycle", callbacks: { (Args...) -> () }, method: string, register: (self: Lifecycle<Args...>, callback: (Args...) -> ()) -> (), fire: (self: Lifecycle<Args...>, Args...) -> (), unregister: (self: Lifecycle<Args...>, callback: (Args...) -> ()) -> (), clear: ...
240
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/allow-web-links.luau
luau
.luau
local runtime = require("../runtime") local allowWebLinks = if runtime.name == "roblox" then game:GetService("RunService"):IsStudio() else true return allowWebLinks
39
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/create.luau
luau
.luau
local allowWebLinks = require("./allow-web-links") local formatLog = require("./format-log") local runtime = require("../runtime") local types = require("./types") local task = runtime.task local warn = runtime.warn local function create<T>(label: string, errorInfoUrl: string?, templates: T): types.Logger<T> local s...
199
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/format-log.luau
luau
.luau
local types = require("./types") local function formatLog<Templates>(self: types.Logger<Templates>, log: types.Log, errorInfoUrl: string?): string local formattedTemplate = string.format(log.template, table.unpack(log)) local error = log.error local trace: string? = log.trace if error then trace = error.trace ...
279
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/init.luau
luau
.luau
local allowWebLinks = require("@self/allow-web-links") local create = require("@self/create") local formatLog = require("@self/format-log") local parseError = require("@self/parse-error") local standardErrorInfoUrl = require("@self/standard-error-info-url") local types = require("@self/types") export type Logger<Templ...
132
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/parse-error.luau
luau
.luau
local types = require("./types") local function parseError(err: string): types.Error return { type = "Error", raw = err, message = err:gsub("^.+:%d+:%s*", ""), trace = debug.traceback(nil, 2), } end return parseError
66
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "logger", description = "Logging for Prvd 'M Wrong", dependencies = configure.dependencies({ runtime = true, }), types = { ["Logger<Templates>"] = true, Log = true, Error = true, }, })
73
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/standard-error-info-url.luau
luau
.luau
local function standardErrorInfoUrl(label: string): string return `https://prvdmwrong.luau.page/api-reference/{label}/errors` end return standardErrorInfoUrl
38
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/types.luau
luau
.luau
export type Error = { type: "Error", raw: string, message: string, trace: string, } export type Log = { template: string, error: Error?, trace: string?, [number]: unknown, } export type Logger<Templates> = Templates & { type: "Logger", print: (self: Logger<Templates>, props: Log) -> (), warn: (self: Logger...
129
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/create.luau
luau
.luau
local nameOf = require("./name-of") local providerClasses = require("./provider-classes") local types = require("./types") local function createProvider<Self>(self: Self): types.Provider<Self> local provider: types.Provider<Self> = self :: any if provider.__index == nil then provider.__index = provider end if ...
169
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/init.luau
luau
.luau
local create = require("@self/create") local nameOf = require("@self/name-of") local providerClasses = require("@self/provider-classes") local types = require("@self/types") export type Provider<Self, Dependencies = nil> = types.Provider<Self, Dependencies> local providers = table.freeze({ create = create, nameOf =...
89
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/name-of.luau
luau
.luau
local types = require("./types") local function nameOf(provider: types.Provider<any, any>) return provider.name or "Provider" end return nameOf
32
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/provider-classes.luau
luau
.luau
local types = require("./types") type Set<T> = { [T]: true } local providerClasses: Set<types.Provider<any>> = setmetatable({}, { __mode = "k" }) :: any return providerClasses
47
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "providers", description = "Provider creation for Prvd 'M Wrong", types = { ["Provider<Self, Dependencies = nil>"] = "Provider<Self, Dependencies>", }, dependencies = configure.dependencies({ dependencies = true, logger = t...
89
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/types.luau
luau
.luau
local dependencies = require("../dependencies") export type Provider<Self, Dependencies = nil> = dependencies.Dependency<Self & { __index: Provider<Self, Dependencies>, __tostring: (self: Provider<Self, Dependencies>) -> string, name: string?, constructor: ((self: Provider<Self, Dependencies>, dependencies: Depend...
101
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/prvdmwrong/init.luau
luau
.luau
local dependencies = require("./dependencies") local lifecycles = require("./lifecycles") local providers = require("./providers") local roots = require("./roots") export type Provider<Self, Dependencies = nil> = providers.Provider<Self, Dependencies> export type Lifecycle<Args... = ...unknown> = lifecycles.Lifecycle<...
372
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/prvdmwrong/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "prvdmwrong", description = "Entry point to Prvd 'M Wrong", types = { ["Lifecycle<Args... = ...unknown>"] = "Lifecycle<Args...>", ["Provider<Self, Dependencies = nil>"] = "Provider<Self, Dependencies>", Root = true, StartedR...
125
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/component-classes.luau
luau
.luau
local types = require("./types") type Set<T> = { [T]: true } local componentClasses: Set<types.Component<any>> = setmetatable({}, { __mode = "k" }) :: any return componentClasses
47
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/component-provider.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") local componentClasses = require("./component-classes") local logger = require("./logger") local providers = require("../providers") local runtime = require("../runtime") local types = require("./types") local threadpool = runtime.threadpool type Set<T> ...
1,255
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/create.luau
luau
.luau
local componentClasses = require("./component-classes") local types = require("./types") -- TODO: prvdmwrong/classes package? local function create<Self>(self: Self): types.Component<Self, any> local component: types.Component<Self> = self :: any if component.__index == nil then component.__index = component end...
155
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/create-component-class-provider.luau
luau
.luau
local ComponentProvider = require("../component-provider") local providers = require("../../providers") local types = require("../types") local ComponentClassProvider = {} ComponentClassProvider.priority = -math.huge ComponentClassProvider.name = "@rbx-components.ComponentClassProvider" ComponentClassProvider.dependen...
178
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/init.luau
luau
.luau
local ComponentProvider = require("./component-provider") local createComponentClassProvider = require("@self/create-component-class-provider") local logger = require("./logger") local roots = require("../roots") local types = require("./types") local useComponent = require("@self/use-component") local useComponents = ...
225
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-component.luau
luau
.luau
local types = require("../types") local function useComponent(root: types.RootPrivate, component: types.AnyComponent) table.insert(root._classes, component) return root end return useComponent
40
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-components.luau
luau
.luau
local types = require("../types") local function useComponents(root: types.RootPrivate, components: { types.AnyComponent }) for index = 1, #components do table.insert(root._classes, components[index]) end return root end return useComponents
55
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-module-as-component.luau
luau
.luau
local componentClasses = require("../component-classes") local types = require("../types") local function useModuleAsComponent(root: types.RootPrivate, module: ModuleScript) local required = (require)(module) if componentClasses[required] then table.insert(root, required) end return root end return useModuleAsC...
70
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-modules-as-components.luau
luau
.luau
local componentClasses = require("../component-classes") local types = require("../types") local function useModulesAsComponents( root: types.RootPrivate, modules: { Instance }, predicate: ((ModuleScript) -> boolean)? ) for index = 1, #modules do local module = modules[index] if not module:IsA("ModuleScript")...
139
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/init.luau
luau
.luau
local componentClasses = require("@self/component-classes") local create = require("@self/create") local extendRoot = require("@self/extend-root") local types = require("@self/types") export type Component<Self, Instance = Instance> = types.Component<Self, Instance> export type Root = types.Root local components = { ...
132
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/logger.luau
luau
.luau
local logger = require("../logger") return logger.create("@prvdmwrong/rbx-components", logger.standardErrorInfoUrl("rbx-components"), { alreadyExtendedRoot = "Root already has component extension.", invalidComponent = "Not a component, create one with `components(MyComponent)` or `components.create(MyComponent)`.", ...
123
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "rbx-components", description = "Component functionality for Prvd 'M Wrong", unreleased = true, dependencies = configure.dependencies({ logger = true, roots = true, providers = true, dependencies = true, }), })
71
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/types.luau
luau
.luau
local dependencies = require("../dependencies") local roots = require("../roots") export type Component<Self, Instance = Instance> = dependencies.Dependency<Self & { __index: Component<Self, Instance>, tag: string?, instanceCheck: (unknown) -> boolean, blacklistInstances: { Instance }?, whitelistInstances: { Inst...
266
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-lifecycles/init.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local prvd = require("./prvdmwrong") local fireConcurrent = prvd.fireConcurrent local RbxLifecycles = {} RbxLifecycles.name = "@prvdmwrong/rbx-lifecycles" RbxLifecycles.priority = -math.huge RbxLifecycles.preSimulation = prv...
653
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-lifecycles/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "rbx-lifecycles", description = "Lifecycles implementations for Roblox", pesdeTargets = { roblox = true, }, dependencies = configure.dependencies({ prvdmwrong = true, }), })
69
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/create.luau
luau
.luau
local destroy = require("./methods/destroy") local lifecycles = require("../lifecycles") local rootConstructing = require("./hooks/root-constructing") local start = require("./methods/start") local types = require("./types") local useModule = require("./methods/use-module") local useModules = require("./methods/use-mod...
322