@rbxts/scribe 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NOTICE +21 -0
- package/README.md +100 -0
- package/Scribe-source-map.json +1 -0
- package/licenses/ProfileStore-Apache-2.0.txt +201 -0
- package/package.json +32 -0
- package/src/Client/DebugHook.luau +457 -0
- package/src/Client/init.luau +1607 -0
- package/src/Internal/Addons.luau +68 -0
- package/src/Internal/Big.luau +582 -0
- package/src/Internal/Budget.luau +377 -0
- package/src/Internal/Clock.luau +75 -0
- package/src/Internal/Config.luau +17 -0
- package/src/Internal/Conform.luau +400 -0
- package/src/Internal/Datatypes.luau +653 -0
- package/src/Internal/Defaults.luau +12 -0
- package/src/Internal/Derived.luau +428 -0
- package/src/Internal/Exchange.luau +556 -0
- package/src/Internal/ExchangeLeg.luau +1368 -0
- package/src/Internal/ExchangeVerdict.luau +179 -0
- package/src/Internal/Failure.luau +148 -0
- package/src/Internal/Health.luau +320 -0
- package/src/Internal/LeaderboardDiagnostics.luau +36 -0
- package/src/Internal/Log.luau +378 -0
- package/src/Internal/Marker.luau +76 -0
- package/src/Internal/Metrics.luau +152 -0
- package/src/Internal/Node.luau +3954 -0
- package/src/Internal/Profile.luau +69 -0
- package/src/Internal/Rng.luau +83 -0
- package/src/Internal/Sched.luau +56 -0
- package/src/Internal/Signal.luau +199 -0
- package/src/Internal/Store/ProfileStore.luau +3019 -0
- package/src/Internal/Store/init.luau +18 -0
- package/src/Internal/StudioCodec.luau +155 -0
- package/src/Internal/Template.luau +1848 -0
- package/src/Internal/Transport.luau +169 -0
- package/src/Internal/Util.luau +517 -0
- package/src/Internal/Version.luau +4 -0
- package/src/Internal/Wire.luau +1283 -0
- package/src/Server/Analytics.luau +223 -0
- package/src/Server/Commands.luau +728 -0
- package/src/Server/DebugHook.luau +1490 -0
- package/src/Server/Exchanges.luau +737 -0
- package/src/Server/Leaderboards.luau +2143 -0
- package/src/Server/Monetization.luau +3212 -0
- package/src/Server/Persistence.luau +3775 -0
- package/src/Server/Replication.luau +1253 -0
- package/src/Server/ServerStore.luau +81 -0
- package/src/Server/Timed.luau +579 -0
- package/src/Server/init.luau +672 -0
- package/src/Types.luau +480 -0
- package/src/init.luau +2231 -0
- package/types/api.d.ts +252 -0
- package/types/common.d.ts +355 -0
- package/types/index.d.ts +226 -0
- package/types/schema.d.ts +276 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ericplane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Scribe
|
|
2
|
+
Copyright (c) 2026 ericplane
|
|
3
|
+
Licensed under the MIT License (see LICENSE).
|
|
4
|
+
|
|
5
|
+
This product bundles a modified copy of ProfileStore v1.0.3:
|
|
6
|
+
|
|
7
|
+
ProfileStore
|
|
8
|
+
Copyright (c) loleris / MAD STUDIO
|
|
9
|
+
https://github.com/MadStudioRoblox/ProfileStore
|
|
10
|
+
Licensed under the Apache License, Version 2.0.
|
|
11
|
+
|
|
12
|
+
The bundled copy lives at src/Internal/Store/ProfileStore.luau and HAS BEEN
|
|
13
|
+
MODIFIED. Every modification is marked `SCRIBE PATCH` in that file and summarised
|
|
14
|
+
in its header. A copy of the Apache License, Version 2.0 is included at
|
|
15
|
+
licenses/ProfileStore-Apache-2.0.txt.
|
|
16
|
+
|
|
17
|
+
The licence text is kept OUTSIDE src/ on purpose. Everything under src/ is packed
|
|
18
|
+
into the released .rbxm, where a plain text file has no place and whose contents
|
|
19
|
+
Roblox scans for off-platform links -- and the licence is full of them. Attribution
|
|
20
|
+
travels with the code in the file header, which is what Apache-2.0 section 4
|
|
21
|
+
actually asks for; the full text travels with the source package.
|
package/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
# Scribe
|
|
2
|
+
|
|
3
|
+
**Persistent, fully-typed, automatically-replicated player data for Roblox Luau and roblox-ts, built on [ProfileStore](https://madstudioroblox.github.io/ProfileStore/).**
|
|
4
|
+
|
|
5
|
+
📖 **[Full documentation → ericplane.github.io/Scribe](https://ericplane.github.io/Scribe/)**
|
|
6
|
+
🔌 **[Studio plugin → Scribe Studio](https://create.roblox.com/store/asset/113609038046646/Scribe-Studio)**
|
|
7
|
+
|
|
8
|
+
```toml
|
|
9
|
+
# wally.toml
|
|
10
|
+
[dependencies]
|
|
11
|
+
Scribe = "ericplane/scribe@2.5.0"
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
roblox-ts support is prepared as `@rbxts/scribe`, with inferred schema and API types
|
|
15
|
+
over the same Luau runtime. npm publication requires the initial registry setup;
|
|
16
|
+
see the [roblox-ts guide](docgen/guides/roblox-ts.md) for installation and examples.
|
|
17
|
+
|
|
18
|
+
- **Fully typed.** A type-solver-generated accessor tree types your data end to end (`data.Coins.Increment(50)`, nested containers, arrays, and datatype fields), checked at compile time.
|
|
19
|
+
- **Schemas all the way down.** `Scribe.ArrayOf` and `Scribe.DictOf` give array and dictionary *entries* a schema, so `data.Plots[1].Origin` is a typed `CFrame` that packs to 13 bytes, with per-element bounds and size caps.
|
|
20
|
+
- **Replication for free.** Schema-compressed batched diffs stream to clients over a pluggable transport, and you read the same data on the client with the same API, with no RemoteEvents to wire up.
|
|
21
|
+
- **Production-grade.** Migrations, a wipe guard, version history, GDPR export and erase, leaderboards, gifting and perks, and fail-closed monetization all sit on top of ProfileStore's session locking.
|
|
22
|
+
|
|
23
|
+
> [!IMPORTANT]
|
|
24
|
+
> The typed API needs the **new Luau type solver** (Studio: select **Workspace** and set `UseNewLuauTypeSolver` to `Enabled`; or enable it in your Luau LSP settings). Scribe runs correctly without it. `Data.Raw` is the untyped escape hatch.
|
|
25
|
+
|
|
26
|
+
## Quick start
|
|
27
|
+
|
|
28
|
+
One shared ModuleScript declares the template and returns `{ Server, Client }`.
|
|
29
|
+
This example uses Mock mode, so it starts fresh and does not touch saved player
|
|
30
|
+
data. The [step-by-step tutorial](https://ericplane.github.io/Scribe/getting-started/)
|
|
31
|
+
includes installation, the Studio folder structure, and how to test real saving.
|
|
32
|
+
|
|
33
|
+
```lua
|
|
34
|
+
-- ReplicatedStorage/Shared/Data.luau
|
|
35
|
+
local Scribe = require(game:GetService("ReplicatedStorage").Packages.Scribe)
|
|
36
|
+
|
|
37
|
+
return Scribe({
|
|
38
|
+
Template = { Coins = 0, Settings = { Music = true } },
|
|
39
|
+
ProfileStoreIndex = "PlayerData", -- required: your DataStore name
|
|
40
|
+
ProfileKeyPrefix = "PLAYER_", -- required: per-player key prefix
|
|
41
|
+
Mode = "Mock", -- learning mode; resets between server runs
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```lua
|
|
46
|
+
-- Script in ServerScriptService: wait for data, then change a field
|
|
47
|
+
local Data = require(game:GetService("ReplicatedStorage").Shared.Data).Server
|
|
48
|
+
|
|
49
|
+
game:GetService("Players").PlayerAdded:Connect(function(player)
|
|
50
|
+
local data = Data.WaitForData(player) -- yields until Ready (default 60s timeout)
|
|
51
|
+
if data then
|
|
52
|
+
data.Coins.Increment(50)
|
|
53
|
+
end
|
|
54
|
+
end)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```lua
|
|
58
|
+
-- LocalScript in StarterPlayer/StarterPlayerScripts
|
|
59
|
+
local Data = require(game:GetService("ReplicatedStorage").Shared.Data).Client
|
|
60
|
+
|
|
61
|
+
Data.Coins.Observe(function(coins)
|
|
62
|
+
print("Coins:", coins) -- replace with your UI update once this works
|
|
63
|
+
end)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
For declarators, replication + visibility, monetization, leaderboards, migrations, diagnostics, and the full API, see the **[documentation](https://ericplane.github.io/Scribe/)**.
|
|
67
|
+
|
|
68
|
+
Optional add-ons live in [`addons/`](addons/README.md): copy-in UI bridges for Vide, React and Fusion;
|
|
69
|
+
`ScribeTelemetry`, which posts Scribe's health, failures and summaries to Discord webhooks;
|
|
70
|
+
and `ScribeLeaderstats`, which keeps Roblox's player list synced with selected data paths.
|
|
71
|
+
|
|
72
|
+
For roblox-ts, each addon is a separate optional package: `@rbxts/scribe-react`,
|
|
73
|
+
`@rbxts/scribe-vide`, `@rbxts/scribe-fusion`, `@rbxts/scribe-telemetry`, and
|
|
74
|
+
`@rbxts/scribe-leaderstats`. The core package includes no addons or UI dependencies.
|
|
75
|
+
|
|
76
|
+
## Development
|
|
77
|
+
|
|
78
|
+
Package builds and `npm test` also need Python 3.10+. See [release packaging](bundle/README.md)
|
|
79
|
+
for staged sources and the source-line maps included with published packages.
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
rokit install # wally + rojo + selene + luau-lsp + lune + stylua toolchain
|
|
83
|
+
wally install # dependencies
|
|
84
|
+
selene src test lune addons # lint
|
|
85
|
+
stylua --check src test lune addons # formatting (drop --check to apply)
|
|
86
|
+
lune run lune/run-tests # run the test suite (headless, ~2s)
|
|
87
|
+
npm ci # install pinned roblox-ts development tools
|
|
88
|
+
npm test # check declarations, packages, and compiled Luau consumers
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The same lint, format, test, and type-check (luau-lsp) checks run in CI on every
|
|
92
|
+
pull request (`.github/workflows/ci.yml`), and releases are gated on a green run.
|
|
93
|
+
Mark the `test`, `lint`, `format`, `analyze`, `roblox-ts`, and `version-check` checks as
|
|
94
|
+
required in the repository's branch-protection settings to enforce them on merge.
|
|
95
|
+
|
|
96
|
+
Docs are built with [Astro Starlight](https://starlight.astro.build/) from the doc-comments in `src/` and the guides in `docgen/guides/`. The site lives in `docs-site/`; see [docgen/README.md](docgen/README.md) for preview and check commands.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"2.5.0","format":1,"description":"Segments are [packedLine, sourceLine]. Use the last segment at or before the packed line, then add its line offset.","files":{"src/Client/DebugHook.luau":{"sourceSha256":"691ba4c7b8e901da09a1e4a58d91e9a6b8d0582b658e74c27332184930974400","packedSha256":"c382ebae369a4b32ebd93adb914e0414e481d170bf117caf24ba322e272b58d4","segments":[[1,1]],"packagePath":"src/Client/DebugHook.luau"},"src/Client/init.luau":{"sourceSha256":"ee9620d2085c79d3b8078337a30c7e995e0de68940c600698ac00d9e10d2af41","packedSha256":"4b97a1c678d97d45a486a1fe355bd6f4de9c9f8efd11588c456828bd5403302a","segments":[[1,1],[542,555],[544,565],[549,587],[659,717],[664,743],[678,767],[695,792],[701,807],[704,818],[709,832],[712,848],[723,868],[725,882],[750,917],[764,945],[855,1046],[1188,1396],[1199,1416],[1206,1433],[1240,1477],[1247,1495],[1286,1544],[1310,1577],[1318,1598],[1324,1635],[1351,1673],[1380,1711],[1390,1728],[1400,1751],[1467,1831],[1509,1882],[1527,1908],[1529,1921],[1537,1951],[1542,1968]],"packagePath":"src/Client/init.luau"},"src/init.luau":{"sourceSha256":"17f2fb7c195fccf1f654444679b6be6e7b424af66a7f7699f5128b323cf96f73","packedSha256":"9538a693ff462444e1b8984375b22e60f3ce5a07bbd5d458524693536e173630","segments":[[1,1],[1518,1546],[1527,2156],[1733,2387],[1736,2396],[1738,2416],[1743,2434],[1748,2453],[1753,2469],[1758,2498],[1763,2530],[1768,2550],[1773,2565],[1778,2594],[1783,2609],[1788,2638],[1795,2669],[1800,2699],[1805,2729],[1823,2772],[1845,2819],[1868,2866],[1891,2904],[1908,2945],[1968,3028],[1971,3072],[1983,3098],[1988,3124],[2033,3185],[2048,3225],[2051,3240],[2063,3267],[2082,3303],[2091,3318],[2100,3333],[2109,3348],[2124,3369],[2131,3382],[2138,3395],[2145,3408],[2156,3425],[2163,3439],[2166,3451],[2171,3464],[2176,3478],[2181,3492],[2184,3504],[2187,3524],[2192,3543],[2197,3561],[2202,3575],[2207,3606],[2212,3635],[2217,3656]],"packagePath":"src/init.luau"},"src/Internal/Addons.luau":{"sourceSha256":"944c09d790bf0e48f444b6518587bded629e1ce7a287211e2245b5bde9d223f9","packedSha256":"35b63237bb0f1b1a6779b70ff67a3618afa2afe9eca058ddf7a3510044feab20","segments":[[1,1]],"packagePath":"src/Internal/Addons.luau"},"src/Internal/Big.luau":{"sourceSha256":"9cc6af3ef0a2b14870fe893e596b72f74f19f5749c338fbe9f364641a84176d0","packedSha256":"8ee726412bd9513da1eeea4655cec19c62e020a0c09fd263960244d7b74e6eb8","segments":[[1,1],[434,443],[439,456],[444,470],[449,484],[454,496],[461,513],[466,527],[558,666],[567,694],[572,719],[577,745],[582,774]],"packagePath":"src/Internal/Big.luau"},"src/Internal/Budget.luau":{"sourceSha256":"1b6884631249cb0de4f7ba4dd7a7c5a6878903308f50440d1318d315ab77466e","packedSha256":"8a0f85b03ba48e4915536039d33f29739f5e3fc47a8d9af8a7d51fc8f865aab3","segments":[[1,1]],"packagePath":"src/Internal/Budget.luau"},"src/Internal/Clock.luau":{"sourceSha256":"e7e763d6cb5455e178c8a109578a324ab89f1323f022488f93e081650b773015","packedSha256":"c0f81c8042945b97b28aa67146bb75276bf781bbf7ee5f1e98c99f20de912f17","segments":[[1,1]],"packagePath":"src/Internal/Clock.luau"},"src/Internal/Config.luau":{"sourceSha256":"86b4991aab2213893d01a8736a16b064d4f46c8b98609cb331f46be60f71559c","packedSha256":"1e76048f1f1ab3cb477ddb194ec5689f6d0b8ac6acdb48ea992d5e810944d373","segments":[[1,1]],"packagePath":"src/Internal/Config.luau"},"src/Internal/Conform.luau":{"sourceSha256":"3eb186a3b82152fc97299fc1dc6e2949c6de9ce95017177175ec6cb59d497781","packedSha256":"9ca454cda7d264b35090a91b74bbedc042a0abea334fa87f36a41c34476021ee","segments":[[1,1]],"packagePath":"src/Internal/Conform.luau"},"src/Internal/Datatypes.luau":{"sourceSha256":"d56be428a04f14381d1e88975d26cf36f35b1fad767131ead5f957c81aa51ace","packedSha256":"a9ede27034f814db1354421c7703727b6ffa70e8053bae08708325f6384eabf2","segments":[[1,1]],"packagePath":"src/Internal/Datatypes.luau"},"src/Internal/Defaults.luau":{"sourceSha256":"c44cead5f97e28f708d73c37ad56426f5d7ca8390169ba7e713619fe3c9a9cf5","packedSha256":"c44cead5f97e28f708d73c37ad56426f5d7ca8390169ba7e713619fe3c9a9cf5","segments":[[1,1]],"packagePath":"src/Internal/Defaults.luau"},"src/Internal/Derived.luau":{"sourceSha256":"4af00dd41d5a44d57c64608665493938b30f1c1838730884509acd751418ef1d","packedSha256":"4af00dd41d5a44d57c64608665493938b30f1c1838730884509acd751418ef1d","segments":[[1,1]],"packagePath":"src/Internal/Derived.luau"},"src/Internal/Exchange.luau":{"sourceSha256":"cd281b321ca7f969c5286ec2db415f970e2dc0d4d1fbe5cc11e232c4b280e88c","packedSha256":"4f0ce1b1ff11304a5712fad7cab166722b1cec74d8ba2c6853503f159c0992b5","segments":[[1,1]],"packagePath":"src/Internal/Exchange.luau"},"src/Internal/ExchangeLeg.luau":{"sourceSha256":"0aadc9473b5ee9bac024e4fe2e575cabde4c79e5b759bdd3dccca27e33653af8","packedSha256":"03cc6c7e1cd21e7914068d657c7281a03eaa79cdb5719f4feeb07adf8f88f7e2","segments":[[1,1]],"packagePath":"src/Internal/ExchangeLeg.luau"},"src/Internal/ExchangeVerdict.luau":{"sourceSha256":"c3096536eaef4dfcab0b007c607915905f27f502e7dd11c09b629fad953b2dc9","packedSha256":"c52df0781721a211224fc32dfa7a0c4774144a0305b3b488b41a9ceff9e11e49","segments":[[1,1]],"packagePath":"src/Internal/ExchangeVerdict.luau"},"src/Internal/Failure.luau":{"sourceSha256":"e928b112de3653efa8d5b5e8f2fd2e448859440950c212ed29c64b5152019b80","packedSha256":"e928b112de3653efa8d5b5e8f2fd2e448859440950c212ed29c64b5152019b80","segments":[[1,1]],"packagePath":"src/Internal/Failure.luau"},"src/Internal/Health.luau":{"sourceSha256":"c908c7163650d8a408e9a09b9bd4033959a6af130d90f20417fd2757d0613326","packedSha256":"c908c7163650d8a408e9a09b9bd4033959a6af130d90f20417fd2757d0613326","segments":[[1,1]],"packagePath":"src/Internal/Health.luau"},"src/Internal/LeaderboardDiagnostics.luau":{"sourceSha256":"50a286e1240028d2d8cf825b860951659751a2468775875c5fa9653777f21307","packedSha256":"29a41e62d48860532d53b85400f14da6102ff9c7ec976d0c3cd1c42a8b358cff","segments":[[1,1]],"packagePath":"src/Internal/LeaderboardDiagnostics.luau"},"src/Internal/Log.luau":{"sourceSha256":"79252169a5e86a09bfc86219aff0d2d61d13a62a9f565de9057938358c3a69f5","packedSha256":"ee0be938e28ab83a8c2700ef493ce3967bf7a9a87b5051b4b62eee0fc4775663","segments":[[1,1]],"packagePath":"src/Internal/Log.luau"},"src/Internal/Marker.luau":{"sourceSha256":"e9da13b9a040ff017036a0e5a3ea81f0090a2ca6788e24aeb07f539d738ecaa1","packedSha256":"39d2608afc575a8ed91fa5637f097e5a1f48bd4a232e74113a5fda8eb8001f40","segments":[[1,1]],"packagePath":"src/Internal/Marker.luau"},"src/Internal/Metrics.luau":{"sourceSha256":"3ab97fc43ee026898a3724f15f9383e038e94b86c759a732ec381f5c21cd1619","packedSha256":"9a392963d27a789b13ad079a30b1ffc74efadb58b7199b887063d3c36cf17092","segments":[[1,1]],"packagePath":"src/Internal/Metrics.luau"},"src/Internal/Node.luau":{"sourceSha256":"e3040d9c7e43689a74301381ed0cb9536139d2fd3d72cf4fea663955deb7b594","packedSha256":"59a9ed2cbfa651ee71b3a5a54bfba7db1d5566cca3d40be6a924d721f6a16812","segments":[[1,1],[2714,3326]],"packagePath":"src/Internal/Node.luau"},"src/Internal/Profile.luau":{"sourceSha256":"c0b84cd983b8f48d43c05600898629b45de2288b8822f6dcf363dc25bdd40f5c","packedSha256":"c0b84cd983b8f48d43c05600898629b45de2288b8822f6dcf363dc25bdd40f5c","segments":[[1,1]],"packagePath":"src/Internal/Profile.luau"},"src/Internal/Rng.luau":{"sourceSha256":"ae10c25f95fcc75755edc3cc39d3713f57b3bf7645805e0f63da896c2f9bfb3a","packedSha256":"ae10c25f95fcc75755edc3cc39d3713f57b3bf7645805e0f63da896c2f9bfb3a","segments":[[1,1]],"packagePath":"src/Internal/Rng.luau"},"src/Internal/Sched.luau":{"sourceSha256":"e4f4bbb4f86a30143c1e23012bf6fd8a0fb5f71b7ae5a1e081a205ea0f5aff20","packedSha256":"e4f4bbb4f86a30143c1e23012bf6fd8a0fb5f71b7ae5a1e081a205ea0f5aff20","segments":[[1,1]],"packagePath":"src/Internal/Sched.luau"},"src/Internal/Signal.luau":{"sourceSha256":"bb26aeda26638743d5e0522558d153126161a2acecb02bfd8e0c545b74d073ed","packedSha256":"40b64d336f6a2ccccb0d8abac6efa644e4d05a589a17839a711180c85476009d","segments":[[1,1],[44,53],[47,73],[71,116],[78,142],[90,168],[96,187],[167,277],[178,302],[188,324]],"packagePath":"src/Internal/Signal.luau"},"src/Internal/Store/init.luau":{"sourceSha256":"15f48e69c822f1908c4d54e10aba2c5b56d4382ca4b2bccd0197346431b6d092","packedSha256":"5a8ede7cccef6dc4a6f1cd63a5a839e20f75f6142746727dd0c73b747dc10aaa","segments":[[1,1]],"packagePath":"src/Internal/Store/init.luau"},"src/Internal/Store/ProfileStore.luau":{"sourceSha256":"4828bdf1947df93fe92e91111177ee673387e7e3865ca14ca894f68bcccb4cc4","packedSha256":"bc44c12d69c7a4a6642e5e410bf3dca7c58832f1f10371f7350e5e4c6e0560e0","segments":[[1,1]],"packagePath":"src/Internal/Store/ProfileStore.luau"},"src/Internal/StudioCodec.luau":{"sourceSha256":"3cb35d7b2667d381028462730bed3cad3accb006cd015dbacee5424652667a63","packedSha256":"223e1864c59872f51692dc489ff2cd99f598c57f99534a7eff5c9f729c1a6d0d","segments":[[1,1]],"packagePath":"src/Internal/StudioCodec.luau"},"src/Internal/Template.luau":{"sourceSha256":"089bf04ef50bb19e4733e78346871da77f59b8cb32eb0cac0bb0c547b1ff1b51","packedSha256":"ad04f76d304b7c5c0c7241b69740a1603fc549a48898ce2040bf56fdf5c9a56e","segments":[[1,1]],"packagePath":"src/Internal/Template.luau"},"src/Internal/Transport.luau":{"sourceSha256":"a76f06205d8452295deaedfc44ee999861b1fbdaa2f89afb30c89a1a69a9f6cf","packedSha256":"a76f06205d8452295deaedfc44ee999861b1fbdaa2f89afb30c89a1a69a9f6cf","segments":[[1,1]],"packagePath":"src/Internal/Transport.luau"},"src/Internal/Util.luau":{"sourceSha256":"49d84ccb241513b505b7cb0e47de0bd292c8b1ce86cbd3d1a57f01afcd6bc45b","packedSha256":"7ca3a553353e2ab4ffd41b6f0855376571590243614fe2739f1ae302ee96a80c","segments":[[1,1]],"packagePath":"src/Internal/Util.luau"},"src/Internal/Version.luau":{"sourceSha256":"334c0c574d13655a341bd6b110856d1e060ad8c312acaf14d07de2d167a1dd36","packedSha256":"94e766e5fc15fc44095641aa32bc4958814eb6e9c0a387e951939ba4aef5ac40","segments":[[1,1]],"packagePath":"src/Internal/Version.luau"},"src/Internal/Wire.luau":{"sourceSha256":"5c42dae5bbe26fc510c27245dc49069313f533c42f0e43a17aeda6218ae8b279","packedSha256":"79c28842e0a87136dabc895ec0e6582ccd2fb61d58b4c18796f10501b16802b1","segments":[[1,1]],"packagePath":"src/Internal/Wire.luau"},"src/Server/Analytics.luau":{"sourceSha256":"fa159ed20a25b5f2d81ad3eff5c3a680e65c34d155e65b8f6ebf28b4cabaf5fd","packedSha256":"2f7aa3a7074d992df397952ae96e12a146daed0c2babeb12dd41640a699bd252","segments":[[1,1]],"packagePath":"src/Server/Analytics.luau"},"src/Server/Commands.luau":{"sourceSha256":"460cdd04e6dff94bc3aae92aec68d8d45b3e863947c1ecd136596599168b29b9","packedSha256":"5aa0bbe7285120d6b0e3229fe33100a6f35c37de127c2f55c2c9fc11a0c751fd","segments":[[1,1]],"packagePath":"src/Server/Commands.luau"},"src/Server/DebugHook.luau":{"sourceSha256":"6c536bacd8dbe498b7d16815e3661f8dd1c41220a32b0f709b161a04ba9093a5","packedSha256":"f76bf2106b8b111e7f150ffa1ac65b9ee85ccaad9e4c8ff4cef35274f2ab6f52","segments":[[1,1]],"packagePath":"src/Server/DebugHook.luau"},"src/Server/Exchanges.luau":{"sourceSha256":"c8faf575dda5b75e7aa537f12ba13c344d29f9f3b5a758dcf61d81c404897987","packedSha256":"ea97536a56ad89aac9cee792f5a3b792f1f7b6d958577b9de1f120eb50fe7a38","segments":[[1,1]],"packagePath":"src/Server/Exchanges.luau"},"src/Server/init.luau":{"sourceSha256":"0ab2436239f110b78cf6928e9ae96d60d4f462700a1660a40b2c5c3302ef9a05","packedSha256":"c24f7b11addb67335f042677ad16279059ec655953abc62c7496a87856203cd4","segments":[[1,1],[141,158],[177,235],[181,252],[185,265],[190,297],[195,328],[201,371],[206,387],[210,406],[214,476],[219,491],[223,505],[227,534],[232,564],[236,578],[241,623],[246,750],[269,788],[273,801],[277,816],[281,830],[285,845],[290,903],[294,925],[298,943],[302,955],[306,974],[311,1004],[315,1022],[319,1044],[323,1061],[327,1073],[331,1085],[335,1120],[339,1132],[343,1150],[355,1189],[367,1210],[373,1224],[379,1239],[381,1251],[383,1263],[385,1290],[387,1339],[393,1354],[395,1379],[398,1416],[463,1492],[526,1563],[539,1594],[574,1641]],"packagePath":"src/Server/init.luau"},"src/Server/Leaderboards.luau":{"sourceSha256":"3580007f4c00faeef79c73f4fbb159f3cb287000f28f75ab05f0d5bc54dcc397","packedSha256":"99687a7e84ab8451d09e44236a96cb0e6d05888c16a64a696fa25d61ee260c28","segments":[[1,1]],"packagePath":"src/Server/Leaderboards.luau"},"src/Server/Monetization.luau":{"sourceSha256":"a7c7f2e4a83c83e006b0c7461540100d82eb5797a692d040b1df24a0c16b031a","packedSha256":"206c13dc83771896798647bcc2360d36daf30c49b021222b6aa2b663ca6c5974","segments":[[1,1]],"packagePath":"src/Server/Monetization.luau"},"src/Server/Persistence.luau":{"sourceSha256":"c112a82e5ef5958f347602b775e3ab59fad6ae42ea1a043f2b41d717bfc7443b","packedSha256":"eeed6d743dc2487e43ab40106867a0c6ff39a70f9aa7b80360ace5774938c9be","segments":[[1,1]],"packagePath":"src/Server/Persistence.luau"},"src/Server/Replication.luau":{"sourceSha256":"46c1174df72ad562be2862b083f71cc36ea2c8f508d54f7ae1d793ea7be00ed6","packedSha256":"d16d937d492df7205001e59ea42b64a2517fb0c38623ff84c5c03158670f6731","segments":[[1,1]],"packagePath":"src/Server/Replication.luau"},"src/Server/ServerStore.luau":{"sourceSha256":"e7bbcb087d9b1606ab15c0e203d736cac690fe3c40a8a12f92eb2543ec42592b","packedSha256":"e7bbcb087d9b1606ab15c0e203d736cac690fe3c40a8a12f92eb2543ec42592b","segments":[[1,1]],"packagePath":"src/Server/ServerStore.luau"},"src/Server/Timed.luau":{"sourceSha256":"91dfdb652d77eca69358d2e2da2bc1b6c89a19b87d9267321b5f356b0c6408d4","packedSha256":"4ebf9a745ee818da0882f0701d6317ac422b88e0b2b1876e7d7e29d9a7ef2463","segments":[[1,1]],"packagePath":"src/Server/Timed.luau"},"src/Types.luau":{"sourceSha256":"71cb0a5bb6fc644c1635d4d7484d970166aa3512c531e6d644a200dcd2d4808c","packedSha256":"194a37f2668366ddb84fe164eef08df2283639f63a10684f5902d11011362533","segments":[[1,1]],"packagePath":"src/Types.luau"}}}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rbxts/scribe",
|
|
3
|
+
"version": "2.5.0",
|
|
4
|
+
"description": "Persistent, schema-typed, automatically replicated Roblox data.",
|
|
5
|
+
"main": "src/init.luau",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"src",
|
|
9
|
+
"types",
|
|
10
|
+
"licenses",
|
|
11
|
+
"NOTICE",
|
|
12
|
+
"Scribe-source-map.json"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/ericplane/Scribe.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://scribe.ericplane.dev/",
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "ericplane",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"roblox",
|
|
26
|
+
"roblox-ts",
|
|
27
|
+
"rbxts",
|
|
28
|
+
"scribe",
|
|
29
|
+
"luau",
|
|
30
|
+
"datastore"
|
|
31
|
+
]
|
|
32
|
+
}
|