Unify CultLib language packages in monorepo

This commit is contained in:
Meta Vens 2026-05-24 11:47:29 +01:00
commit 2cc572ca8f
23 changed files with 2568 additions and 524 deletions

18
.gitignore vendored
View file

@ -208,6 +208,9 @@ PublishScripts/
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# The root TypeScript workspace is source, not a NuGet packages cache.
![Pp]ackages/
![Pp]ackages/**
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
@ -293,6 +296,21 @@ FakesAssemblies/
.ntvs_analysis.dat
node_modules/
# TypeScript monorepo
packages/*/dist-test/
packages/*/release/
packages/*/release-inspector/
# Rust
target/
crates/*/target/
# Python
.venv/
venv/
.pytest_cache/
*.egg-info/
# Visual Studio 6 build log
*.plg

1236
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

8
Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[workspace]
resolver = "3"
members = [
"crates/cultcache-rs",
"crates/cultcache-rs/cultcache-rs-derive",
"crates/cultmesh-rs",
"crates/cultnet-rs"
]

View file

@ -1,6 +1,7 @@
# CultLib
CultLib is a set of reusable C# libraries for game backends, game-adjacent services, and Unity-integrated tooling, including a declarative runtime UI composition framework for Unity.
CultLib is the GameCult compatibility monorepo for persistence, protocol, mesh,
and shared runtime packages across C#, TypeScript, Rust, and Python.
The libraries cover three main areas:
@ -53,6 +54,12 @@ The solution includes:
- `GameCult.Caching.MessagePack.Analyzers`: packaging project that delivers the generator to consuming projects
- `GameCult.Networking`: encrypted login/register/verify flows and message dispatch over LiteNetLib
- `GameCult.Mesh`: CultMesh package home for distributed realtime database, shard replication, client prediction, Verse discovery, and mesh witness consensus
- `cultcache-ts`: TypeScript CultCache package
- `cultnet-ts`: TypeScript CultNet package
- `cultmesh-ts`: local-first TypeScript CultMesh package for VoidBot, Mimir, and similar local runtimes
- `cultcache-rs`: Rust CultCache crate and derive macro
- `cultnet-rs`: Rust CultNet crate
- `cultcache-py`: Python CultCache package
- `GameCult.Caching.Tests`: NUnit tests for cache and backing-store behavior
- `GameCult.Networking.Tests`: NUnit tests for networking behavior
- `GameCult.Unity`: CultUI, a Unity runtime UI composition framework with reflective inspector generation, prefab-backed field resolvers, reusable controls, and a demo project packaged for UPM-style consumption
@ -73,6 +80,15 @@ src/
tests/
GameCult.Caching.Tests/
GameCult.Networking.Tests/
packages/
cultcache-ts/
cultnet-ts/
cultmesh-ts/
crates/
cultcache-rs/
cultnet-rs/
python/
cultcache-py/
```
## Build

View file

@ -4,9 +4,6 @@ version = "0.1.0"
edition = "2024"
publish = false
[workspace]
members = ["cultcache-rs-derive"]
[lib]
name = "cultcache_rs"
path = "src/lib.rs"

View file

@ -0,0 +1,21 @@
[package]
name = "cultmesh-rs"
version = "0.1.0"
edition = "2024"
publish = false
license = "MIT"
description = "CultMesh ergonomic node/database surface over CultCache and CultNet for Rust runtimes."
[lib]
name = "cultmesh_rs"
path = "src/lib.rs"
[dependencies]
anyhow = "1"
cultcache-rs = { path = "../cultcache-rs" }
cultnet-rs = { path = "../cultnet-rs" }
[dev-dependencies]
pretty_assertions = "1.4"
serde = { version = "1", features = ["derive"] }
tempfile = "3"

View file

@ -0,0 +1,246 @@
use anyhow::Context;
use anyhow::Result;
use anyhow::anyhow;
use cultcache_rs::CultCache;
use cultcache_rs::DatabaseEntry;
use cultcache_rs::SingleFileMessagePackBackingStore;
use cultnet_rs::CultNetDocumentRegistry;
use std::path::Path;
pub trait CultMeshDocumentSet {
fn register_cache(&self, cache: &mut CultCache) -> Result<()>;
fn register_documents(&self, registry: &mut CultNetDocumentRegistry) -> Result<()>;
}
#[macro_export]
macro_rules! cultmesh_documents {
($name:ident { $($entry:ty => $schema_version:expr),* $(,)? }) => {
#[derive(Clone, Copy, Debug, Default)]
pub struct $name;
impl $crate::CultMeshDocumentSet for $name {
fn register_cache(
&self,
cache: &mut cultcache_rs::CultCache,
) -> anyhow::Result<()> {
$(
cache.register_entry_type::<$entry>()?;
)*
Ok(())
}
fn register_documents(
&self,
registry: &mut cultnet_rs::CultNetDocumentRegistry,
) -> anyhow::Result<()> {
$(
registry.register(cultnet_rs::CultNetDocumentBinding::for_entry::<$entry>(
Some($schema_version.to_string()),
));
)*
Ok(())
}
}
};
}
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct CultMeshNodeOptions {
pub runtime_id: String,
pub pull_on_start: bool,
}
impl Default for CultMeshNodeOptions {
fn default() -> Self {
Self {
runtime_id: "cultmesh-local".to_string(),
pull_on_start: true,
}
}
}
pub struct CultMeshNode {
runtime_id: String,
cache: CultCache,
documents: CultNetDocumentRegistry,
}
impl CultMeshNode {
pub fn runtime_id(&self) -> &str {
&self.runtime_id
}
pub fn cache(&self) -> &CultCache {
&self.cache
}
pub fn cache_mut(&mut self) -> &mut CultCache {
&mut self.cache
}
pub fn documents(&self) -> &CultNetDocumentRegistry {
&self.documents
}
pub fn get<T: DatabaseEntry>(&self, key: &str) -> Result<Option<T>> {
self.cache.get::<T>(key)
}
pub fn get_required<T: DatabaseEntry>(&self, key: &str) -> Result<T> {
self.cache.get_required::<T>(key)
}
pub fn put<T: DatabaseEntry>(&mut self, key: impl Into<String>, value: &T) -> Result<T> {
self.cache.put(key, value)
}
pub fn delete<T: DatabaseEntry>(&mut self, key: &str) -> Result<bool> {
self.cache.delete::<T>(key)
}
pub fn flush(&mut self) -> Result<()> {
let snapshot = self.cache.snapshot();
for envelope in snapshot {
match envelope.r#type.as_str() {
"" => return Err(anyhow!("CultMesh cannot flush an envelope with empty type")),
_ => {}
}
}
Ok(())
}
}
pub struct CultMesh;
impl CultMesh {
pub fn create_node<D>(
cache_path: impl AsRef<Path>,
documents: D,
options: CultMeshNodeOptions,
) -> Result<CultMeshNode>
where
D: CultMeshDocumentSet,
{
if options.runtime_id.trim().is_empty() {
return Err(anyhow!("CultMesh runtime_id must be non-empty"));
}
let cache_path = cache_path.as_ref();
if cache_path.as_os_str().is_empty() {
return Err(anyhow!("CultMesh cache_path must be non-empty"));
}
let mut cache = CultCache::new();
documents.register_cache(&mut cache)?;
cache.add_generic_backing_store(SingleFileMessagePackBackingStore::new(cache_path));
if options.pull_on_start {
cache.pull_all_backing_stores()
.with_context(|| format!("failed to load CultMesh node {}", cache_path.display()))?;
}
let mut registry = CultNetDocumentRegistry::new();
documents.register_documents(&mut registry)?;
Ok(CultMeshNode {
runtime_id: options.runtime_id,
cache,
documents: registry,
})
}
pub fn start_node<D>(cache_path: impl AsRef<Path>, documents: D) -> Result<CultMeshNode>
where
D: CultMeshDocumentSet,
{
Self::create_node(cache_path, documents, CultMeshNodeOptions::default())
}
}
pub fn create_node<D>(
cache_path: impl AsRef<Path>,
documents: D,
options: CultMeshNodeOptions,
) -> Result<CultMeshNode>
where
D: CultMeshDocumentSet,
{
CultMesh::create_node(cache_path, documents, options)
}
pub fn start_node<D>(cache_path: impl AsRef<Path>, documents: D) -> Result<CultMeshNode>
where
D: CultMeshDocumentSet,
{
CultMesh::start_node(cache_path, documents)
}
#[cfg(test)]
mod tests {
use super::*;
use cultcache_rs::DatabaseEntry;
use pretty_assertions::assert_eq;
#[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)]
#[cultcache(type = "cultmesh.note", schema = "CultMeshNote")]
struct MeshNote {
#[cultcache(key = 0)]
title: String,
#[cultcache(key = 1)]
body: String,
}
cultmesh_documents!(TestDocuments {
MeshNote => "cultmesh.note.v0",
});
#[test]
fn durable_node_round_trips_typed_documents() -> Result<()> {
let temp = tempfile::tempdir()?;
let store = temp.path().join("world.ccmp");
let mut node = CultMesh::create_node(
&store,
TestDocuments,
CultMeshNodeOptions {
runtime_id: "test-node".to_string(),
..CultMeshNodeOptions::default()
},
)?;
assert_eq!(node.runtime_id(), "test-node");
node.put(
"note:intro",
&MeshNote {
title: "hello".to_string(),
body: "from CultMesh".to_string(),
},
)?;
node.flush()?;
let reopened = CultMesh::start_node(&store, TestDocuments)?;
assert_eq!(
reopened.get_required::<MeshNote>("note:intro")?,
MeshNote {
title: "hello".to_string(),
body: "from CultMesh".to_string(),
}
);
Ok(())
}
#[test]
fn node_refuses_empty_runtime_identity() {
let temp = tempfile::tempdir().expect("tempdir");
let error = match CultMesh::create_node(
temp.path().join("world.ccmp"),
TestDocuments,
CultMeshNodeOptions {
runtime_id: " ".to_string(),
..CultMeshNodeOptions::default()
},
) {
Ok(_) => panic!("empty runtime identity should fail"),
Err(error) => error,
};
assert!(error.to_string().contains("runtime_id"));
}
}

45
docs/monorepo.md Normal file
View file

@ -0,0 +1,45 @@
# CultLib Monorepo Map
CultLib is now the compatibility home for the GameCult persistence and protocol
family. The C# projects remain under `src/`; language ports live beside them so
contracts can be changed and tested in one place.
## Layout
- `src/`: C# CultCache, CultNet, CultMesh, logging, and Unity-facing packages.
- `packages/cultcache-ts`: TypeScript CultCache package.
- `packages/cultnet-ts`: TypeScript CultNet package.
- `packages/cultmesh-ts`: TypeScript CultMesh local-first package.
- `crates/cultcache-rs`: Rust CultCache crate and derive macro.
- `crates/cultnet-rs`: Rust CultNet crate.
- `python/cultcache-py`: Python CultCache package.
## Ownership
- CultLib root owns cross-language compatibility, shared documentation, and
coordinated verification commands.
- Each language package owns its local build, packaging, and ergonomic public
API.
- Wire schemas and persistence formats must stay inspectable. Do not fork a
schema silently inside one language package.
## First Verification Commands
```powershell
dotnet test CultLib.sln --no-restore
npm install
npm run test:ts
cargo test --workspace
python -m pytest python/cultcache-py/tests
```
## CultMesh TypeScript Boundary
`packages/cultmesh-ts` is intentionally local-first today. It gives VoidBot,
Mimir, and other TypeScript runtimes a CultMesh-branded durable node over
`cultcache-ts` plus a CultNet document registry bridge. It does not yet claim
the full networked shard authority, replica catch-up, or Verse discovery
transport behavior of the C# package.
That missing work should be added by moving the shared contract forward, not by
letting TypeScript invent a second mesh with similar nouns and different truth.

View file

@ -1,54 +1,33 @@
{
"name": "cultcache-ts",
"version": "0.13.5",
"name": "cultlib-monorepo",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cultcache-ts",
"version": "0.13.5",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"zod": "^3.25.76"
},
"name": "cultlib-monorepo",
"workspaces": [
"packages/*"
],
"devDependencies": {
"@epiphanygraph/epiphany-graph-viewer": "file:../EpiphanyGraph/web/epiphany-graph-viewer",
"@types/node": "^24.0.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^42.1.0",
"electron-builder": "^26.8.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"typescript": "^5.9.0",
"vite": "^8.0.13",
"wait-on": "^9.0.10"
"typescript": "^5.9.0"
}
},
"../EpiphanyGraph/web/epiphany-graph-viewer": {
"name": "@epiphanygraph/epiphany-graph-viewer",
"version": "0.1.0",
"node_modules/@apidevtools/json-schema-ref-parser": {
"version": "11.9.3",
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.9.3.tgz",
"integrity": "sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"elkjs": "^0.11.0"
"@jsdevtools/ono": "^7.1.3",
"@types/json-schema": "^7.0.15",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"@vitejs/plugin-react": "^5.1.1",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"vite": "^7.2.4"
"engines": {
"node": ">= 16"
},
"peerDependencies": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
"funding": {
"url": "https://github.com/sponsors/philsturgeon"
}
},
"node_modules/@develar/schema-utils": {
@ -69,6 +48,40 @@
"url": "https://opencollective.com/webpack"
}
},
"node_modules/@develar/schema-utils/node_modules/ajv": {
"version": "6.15.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
"dev": true,
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/@develar/schema-utils/node_modules/ajv-keywords": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
"dev": true,
"license": "MIT",
"peerDependencies": {
"ajv": "^6.9.1"
}
},
"node_modules/@develar/schema-utils/node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true,
"license": "MIT"
},
"node_modules/@electron/asar": {
"version": "3.4.1",
"resolved": "https://registry.npmjs.org/@electron/asar/-/asar-3.4.1.tgz",
@ -404,10 +417,6 @@
"dev": true,
"license": "MIT"
},
"node_modules/@epiphanygraph/epiphany-graph-viewer": {
"resolved": "../EpiphanyGraph/web/epiphany-graph-viewer",
"link": true
},
"node_modules/@hapi/address": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/@hapi/address/-/address-5.1.1.tgz",
@ -475,6 +484,13 @@
"node": ">=18.0.0"
}
},
"node_modules/@jsdevtools/ono": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
"integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
"dev": true,
"license": "MIT"
},
"node_modules/@malept/cross-spawn-promise": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz",
@ -559,9 +575,9 @@
}
},
"node_modules/@oxc-project/types": {
"version": "0.130.0",
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.130.0.tgz",
"integrity": "sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==",
"version": "0.132.0",
"resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.132.0.tgz",
"integrity": "sha512-FESMOxil5Se014ui/Eq8fT5uHJo6nIRwH0PfJrZJXs6Gek3ZVFOrpUv3YIZT20m+extU98Hg1Ym72U58rlsxUQ==",
"dev": true,
"license": "MIT",
"funding": {
@ -569,9 +585,9 @@
}
},
"node_modules/@rolldown/binding-android-arm64": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.1.tgz",
"integrity": "sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.2.tgz",
"integrity": "sha512-ZS4D1JPGn/MYQN/SYDWftIE/nVsM8j/AFOYEzAoOE2O3NktQOZru+/vYXGbR/qtdLdIfGCP0lcoJiYVzsEz+iQ==",
"cpu": [
"arm64"
],
@ -586,9 +602,9 @@
}
},
"node_modules/@rolldown/binding-darwin-arm64": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.1.tgz",
"integrity": "sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.2.tgz",
"integrity": "sha512-vdFA9+C/rekyGce7WqHs/xoT0ioZEWaOFyZLIV1mEeNFaFDUQrPIo8Vs2GvJ6eetb3rzDUtUBgzto3ExpXJB3w==",
"cpu": [
"arm64"
],
@ -603,9 +619,9 @@
}
},
"node_modules/@rolldown/binding-darwin-x64": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.1.tgz",
"integrity": "sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.2.tgz",
"integrity": "sha512-BewSOwTHazv77DTYiAZXSqqKZ4KP/KonFisDMVU7PImxoWfB2aepnPhd2E4SWz3zDzYgDNbs6jBmTdgNnF02GA==",
"cpu": [
"x64"
],
@ -620,9 +636,9 @@
}
},
"node_modules/@rolldown/binding-freebsd-x64": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.1.tgz",
"integrity": "sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.2.tgz",
"integrity": "sha512-m41o7M0YWtUdqk61Tb+jnKb2rN++iRdIASlExkUoKfIAH30DOHCB8fVLzSUpbWHHU8esmEioY62PxzexE8MBuA==",
"cpu": [
"x64"
],
@ -637,9 +653,9 @@
}
},
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.1.tgz",
"integrity": "sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.2.tgz",
"integrity": "sha512-jcojB9H7W/jS29pMKWAK1N+fU99vXodHDTatS3b3y/XSOCiHo0kkA74pL3jJmkoQtYpOCxDvaKs1fo2Ij/1X5w==",
"cpu": [
"arm"
],
@ -654,9 +670,9 @@
}
},
"node_modules/@rolldown/binding-linux-arm64-gnu": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.1.tgz",
"integrity": "sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.2.tgz",
"integrity": "sha512-1jn6qDU5iiOgFgygDzKUuKP0maTi0/f1+sBLgvij/76C77Nm3ts6ufz9Bjg5q5dduxiUIxtq86JIoBvo1xQ4Ig==",
"cpu": [
"arm64"
],
@ -674,9 +690,9 @@
}
},
"node_modules/@rolldown/binding-linux-arm64-musl": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.1.tgz",
"integrity": "sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.2.tgz",
"integrity": "sha512-QVLO/czFMdoMFSqlX3bcswcJNm/23r+qoa/jgtmFc/qEp6/jXmIkDjF/XIo8dPfGaiwy1xfQn8o77L79GeXFgw==",
"cpu": [
"arm64"
],
@ -694,9 +710,9 @@
}
},
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.1.tgz",
"integrity": "sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.2.tgz",
"integrity": "sha512-hgO5Abm0w5UL6FEa2iFnZqo2KlK7TQ5QhV5x09hujBf7t5KzHQ1VmfPuTpqRy/rNlSxua3eWH374xxiVrP+lcA==",
"cpu": [
"ppc64"
],
@ -714,9 +730,9 @@
}
},
"node_modules/@rolldown/binding-linux-s390x-gnu": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.1.tgz",
"integrity": "sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.2.tgz",
"integrity": "sha512-fy8rXxuYEu602abC8MUNaPjYLIFzReOaEIEMKMUa0rFEUxNpVXhs15KSSQ4qlqSaM7B6rcj9rDZgADh/IGDzLQ==",
"cpu": [
"s390x"
],
@ -734,9 +750,9 @@
}
},
"node_modules/@rolldown/binding-linux-x64-gnu": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.1.tgz",
"integrity": "sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.2.tgz",
"integrity": "sha512-0+bOkiQ779+r1WpoHOWHqncvyySci0vKph+myNDYb+im6meJAzHQXay6oEgnkHuUGouM1LKTZwqKpBow6Kj7CQ==",
"cpu": [
"x64"
],
@ -754,9 +770,9 @@
}
},
"node_modules/@rolldown/binding-linux-x64-musl": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.1.tgz",
"integrity": "sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.2.tgz",
"integrity": "sha512-mjSkrzZK5Qsl0a9d1JgILOiuZOSDTVdKENcSXBoqbzSrspLR/4/IRVDo5wd2GgZjNss/viBFJdeq+j7qH2nypw==",
"cpu": [
"x64"
],
@ -774,9 +790,9 @@
}
},
"node_modules/@rolldown/binding-openharmony-arm64": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.1.tgz",
"integrity": "sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.2.tgz",
"integrity": "sha512-1v5vHasdfQAZoEHakBV72LIFAC9JjnymsiKxp+GEr/ma3+NJCPSaYK+qavInOovJkgwFrs7GccX2d6IgDA3Z5w==",
"cpu": [
"arm64"
],
@ -791,9 +807,9 @@
}
},
"node_modules/@rolldown/binding-wasm32-wasi": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.1.tgz",
"integrity": "sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.2.tgz",
"integrity": "sha512-mb1VobWn6NheziTk5/WEaR6AKVbrwT5sOi6C7zk3gy/pD1qtJfU1j4PgTo2NJnOtbL9Dl3Aeei8w9jJ7qC2jZQ==",
"cpu": [
"wasm32"
],
@ -810,9 +826,9 @@
}
},
"node_modules/@rolldown/binding-win32-arm64-msvc": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.1.tgz",
"integrity": "sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.2.tgz",
"integrity": "sha512-SqKonF56vA/L2yHwHYcEp2P34URpOZ7d1fS635cTkpDnUtEGdUbhI6NzsPdqeSWvAAeGDrxjWjNmibDIdFf9/A==",
"cpu": [
"arm64"
],
@ -827,9 +843,9 @@
}
},
"node_modules/@rolldown/binding-win32-x64-msvc": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.1.tgz",
"integrity": "sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.2.tgz",
"integrity": "sha512-v7qRI7gXLRINcOGXt+7YmAZ6iFuyZVMIoXAxhd8oP+DR9dLfL9GfNIx7PLMxmhZdvq8waUJBQiWN9EKNy+TRBQ==",
"cpu": [
"x64"
],
@ -934,6 +950,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/@types/json-schema": {
"version": "7.0.15",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/keyv": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz",
@ -944,6 +967,13 @@
"@types/node": "*"
}
},
"node_modules/@types/lodash": {
"version": "4.17.24",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
"integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/ms": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
@ -952,9 +982,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.12.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.2.tgz",
"integrity": "sha512-A1sre26ke7HDIuY/M23nd9gfB+nrmhtYyMINbjI1zHJxYteKR6qSMX56FsmjMcDb3SMcjJg5BiRRgOCC/yBD0g==",
"version": "24.12.4",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.4.tgz",
"integrity": "sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -974,9 +1004,9 @@
}
},
"node_modules/@types/react": {
"version": "19.2.14",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
"integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
"version": "19.2.15",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.15.tgz",
"integrity": "sha512-eRwcGNHve+E8qtEQSSRl6urh+rFop4v8gm6O8rGv25CodbvFdLjA1vVQ1KkiFE0w0UPOnb8tDiFKL5lp0rtY5Q==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -1086,32 +1116,21 @@
}
},
"node_modules/ajv": {
"version": "6.15.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
"dev": true,
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/ajv-keywords": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz",
"integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==",
"dev": true,
"license": "MIT",
"peerDependencies": {
"ajv": "^6.9.1"
}
},
"node_modules/ansi-regex": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
@ -1270,6 +1289,16 @@
"node": ">=6"
}
},
"node_modules/app-builder-lib/node_modules/isexe": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",
"integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
},
"node_modules/app-builder-lib/node_modules/jsonfile": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
@ -1303,6 +1332,22 @@
"node": ">= 4.0.0"
}
},
"node_modules/app-builder-lib/node_modules/which": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",
"integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
"dev": true,
"license": "ISC",
"dependencies": {
"isexe": "^3.1.1"
},
"bin": {
"node-which": "bin/which.js"
},
"engines": {
"node": "^18.17.0 || >=20.5.0"
}
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
@ -1839,29 +1884,6 @@
"node": ">= 8"
}
},
"node_modules/cross-spawn/node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true,
"license": "ISC"
},
"node_modules/cross-spawn/node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
},
"bin": {
"node-which": "bin/node-which"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/csstype": {
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
@ -1869,6 +1891,18 @@
"dev": true,
"license": "MIT"
},
"node_modules/cultcache-ts": {
"resolved": "packages/cultcache-ts",
"link": true
},
"node_modules/cultmesh-ts": {
"resolved": "packages/cultmesh-ts",
"link": true
},
"node_modules/cultnet-ts": {
"resolved": "packages/cultnet-ts",
"link": true
},
"node_modules/debug": {
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
@ -2078,6 +2112,32 @@
"node": ">=8"
}
},
"node_modules/dmg-license/node_modules/ajv": {
"version": "6.15.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz",
"integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"json-schema-traverse": "^0.4.1",
"uri-js": "^4.2.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/dmg-license/node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"dev": true,
"license": "MIT",
"optional": true
},
"node_modules/dotenv": {
"version": "16.6.1",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
@ -2139,9 +2199,9 @@
}
},
"node_modules/electron": {
"version": "42.1.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-42.1.0.tgz",
"integrity": "sha512-0szNwC/0dWtkvNce5j3ThiuL0TxBNrZN/BZhdOiGwbLreiD/+u3MGpkct4hA5Ycagb8MXjpEr5/oosi+FwuKRQ==",
"version": "42.2.0",
"resolved": "https://registry.npmjs.org/electron/-/electron-42.2.0.tgz",
"integrity": "sha512-b2Tc7sIKiZEl0tBVwFM5GJ+FT5KYhmy9QJHjx8BGVZPVW2SctXWEvrE959ElB56qw7H05dBkhlikDA1DmpaAMw==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -2331,9 +2391,9 @@
}
},
"node_modules/es-object-atoms": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
"integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -2434,7 +2494,6 @@
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true,
"license": "MIT"
},
"node_modules/fast-json-stable-stringify": {
@ -2444,6 +2503,22 @@
"dev": true,
"license": "MIT"
},
"node_modules/fast-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz",
"integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"license": "BSD-3-Clause"
},
"node_modules/fd-slicer": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
@ -2998,6 +3073,16 @@
"dev": true,
"license": "ISC"
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
@ -3008,6 +3093,19 @@
"node": ">=8"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/isbinaryfile": {
"version": "5.0.7",
"resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-5.0.7.tgz",
@ -3022,14 +3120,11 @@
}
},
"node_modules/isexe": {
"version": "3.1.5",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.5.tgz",
"integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
"license": "ISC"
},
"node_modules/jake": {
"version": "10.9.4",
@ -3098,11 +3193,34 @@
"dev": true,
"license": "MIT"
},
"node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
"node_modules/json-schema-to-typescript": {
"version": "15.0.4",
"resolved": "https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-15.0.4.tgz",
"integrity": "sha512-Su9oK8DR4xCmDsLlyvadkXzX6+GGXJpbhwoLtOGArAG61dvbW4YQmSEno2y66ahpIdmLMg6YUf/QHLgiwvkrHQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.5.5",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.7",
"is-glob": "^4.0.3",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"prettier": "^3.2.5",
"tinyglobby": "^0.2.9"
},
"bin": {
"json2ts": "dist/src/cli.js"
},
"engines": {
"node": ">=16.0.0"
}
},
"node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"license": "MIT"
},
"node_modules/json-stringify-safe": {
@ -3874,9 +3992,9 @@
}
},
"node_modules/postcss": {
"version": "8.5.14",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz",
"integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==",
"version": "8.5.15",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz",
"integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==",
"dev": true,
"funding": [
{
@ -3894,7 +4012,7 @@
],
"license": "MIT",
"dependencies": {
"nanoid": "^3.3.11",
"nanoid": "^3.3.12",
"picocolors": "^1.1.1",
"source-map-js": "^1.2.1"
},
@ -3932,6 +4050,22 @@
"node": "^12.20.0 || >=14"
}
},
"node_modules/prettier": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz",
"integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/proc-log": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz",
@ -4068,6 +4202,15 @@
"node": ">=0.10.0"
}
},
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/resedit": {
"version": "1.7.2",
"resolved": "https://registry.npmjs.org/resedit/-/resedit-1.7.2.tgz",
@ -4151,13 +4294,13 @@
}
},
"node_modules/rolldown": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.1.tgz",
"integrity": "sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.2.tgz",
"integrity": "sha512-oZx5zVDtVB44AW3eaifgDml1gWRDZGvjcfdxonE4swNPG98PrrXjaO/KrnUjzlMnztCCRVlUueA1kCXhARGk6g==",
"dev": true,
"license": "MIT",
"dependencies": {
"@oxc-project/types": "=0.130.0",
"@oxc-project/types": "=0.132.0",
"@rolldown/pluginutils": "^1.0.0"
},
"bin": {
@ -4167,21 +4310,21 @@
"node": "^20.19.0 || >=22.12.0"
},
"optionalDependencies": {
"@rolldown/binding-android-arm64": "1.0.1",
"@rolldown/binding-darwin-arm64": "1.0.1",
"@rolldown/binding-darwin-x64": "1.0.1",
"@rolldown/binding-freebsd-x64": "1.0.1",
"@rolldown/binding-linux-arm-gnueabihf": "1.0.1",
"@rolldown/binding-linux-arm64-gnu": "1.0.1",
"@rolldown/binding-linux-arm64-musl": "1.0.1",
"@rolldown/binding-linux-ppc64-gnu": "1.0.1",
"@rolldown/binding-linux-s390x-gnu": "1.0.1",
"@rolldown/binding-linux-x64-gnu": "1.0.1",
"@rolldown/binding-linux-x64-musl": "1.0.1",
"@rolldown/binding-openharmony-arm64": "1.0.1",
"@rolldown/binding-wasm32-wasi": "1.0.1",
"@rolldown/binding-win32-arm64-msvc": "1.0.1",
"@rolldown/binding-win32-x64-msvc": "1.0.1"
"@rolldown/binding-android-arm64": "1.0.2",
"@rolldown/binding-darwin-arm64": "1.0.2",
"@rolldown/binding-darwin-x64": "1.0.2",
"@rolldown/binding-freebsd-x64": "1.0.2",
"@rolldown/binding-linux-arm-gnueabihf": "1.0.2",
"@rolldown/binding-linux-arm64-gnu": "1.0.2",
"@rolldown/binding-linux-arm64-musl": "1.0.2",
"@rolldown/binding-linux-ppc64-gnu": "1.0.2",
"@rolldown/binding-linux-s390x-gnu": "1.0.2",
"@rolldown/binding-linux-x64-gnu": "1.0.2",
"@rolldown/binding-linux-x64-musl": "1.0.2",
"@rolldown/binding-openharmony-arm64": "1.0.2",
"@rolldown/binding-wasm32-wasi": "1.0.2",
"@rolldown/binding-win32-arm64-msvc": "1.0.2",
"@rolldown/binding-win32-x64-msvc": "1.0.2"
}
},
"node_modules/rxjs": {
@ -4229,9 +4372,9 @@
"license": "MIT"
},
"node_modules/semver": {
"version": "7.8.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",
"integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",
"version": "7.8.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz",
"integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==",
"dev": true,
"license": "ISC",
"bin": {
@ -4683,16 +4826,16 @@
}
},
"node_modules/vite": {
"version": "8.0.13",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.13.tgz",
"integrity": "sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==",
"version": "8.0.14",
"resolved": "https://registry.npmjs.org/vite/-/vite-8.0.14.tgz",
"integrity": "sha512-s4BJJ+5y1pYL6Otw51FHhVJQhPnuRinKig64g/1+EUNaJsd3gCKdD31IPFvswUgW9/60QT9oFHbZHbQK5imcxw==",
"dev": true,
"license": "MIT",
"dependencies": {
"lightningcss": "^1.32.0",
"picomatch": "^4.0.4",
"postcss": "^8.5.14",
"rolldown": "1.0.1",
"postcss": "^8.5.15",
"rolldown": "1.0.2",
"tinyglobby": "^0.2.16"
},
"bin": {
@ -4781,19 +4924,19 @@
}
},
"node_modules/which": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz",
"integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"dev": true,
"license": "ISC",
"dependencies": {
"isexe": "^3.1.1"
"isexe": "^2.0.0"
},
"bin": {
"node-which": "bin/which.js"
"node-which": "bin/node-which"
},
"engines": {
"node": "^18.17.0 || >=20.5.0"
"node": ">= 8"
}
},
"node_modules/wrap-ansi": {
@ -4909,6 +5052,57 @@
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
},
"packages/cultcache-ts": {
"version": "0.13.5",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"zod": "^3.25.76"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^42.1.0",
"electron-builder": "^26.8.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"typescript": "^5.9.0",
"vite": "^8.0.13",
"wait-on": "^9.0.10"
}
},
"packages/cultmesh-ts": {
"version": "0.1.0",
"license": "MIT",
"dependencies": {
"cultcache-ts": "file:../cultcache-ts",
"cultnet-ts": "file:../cultnet-ts"
},
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^5.9.0",
"zod": "^3.25.76"
}
},
"packages/cultnet-ts": {
"version": "0.1.0",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"ajv": "^8.17.1",
"cultcache-ts": "file:../cultcache-ts"
},
"devDependencies": {
"@types/node": "^24.0.0",
"json-schema-to-typescript": "^15.0.4",
"typescript": "^5.9.0",
"zod": "^3.25.76"
}
}
}
}

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "cultlib-monorepo",
"private": true,
"description": "CultLib compatibility monorepo for GameCult persistence, protocol, and mesh packages.",
"workspaces": [
"packages/*"
],
"scripts": {
"build:dotnet": "dotnet build CultLib.sln",
"test:dotnet": "dotnet test CultLib.sln --no-restore",
"build:ts": "npm run build -w cultcache-ts && npm run build -w cultnet-ts && npm run build -w cultmesh-ts",
"typecheck:ts": "npm run typecheck -w cultcache-ts && npm run typecheck -w cultnet-ts && npm run typecheck -w cultmesh-ts",
"test:ts": "npm run test -w cultcache-ts && npm run test -w cultnet-ts && npm run test -w cultmesh-ts",
"test:rust": "cargo test --workspace",
"test:python": "python -m pytest python/cultcache-py/tests"
},
"devDependencies": {
"typescript": "^5.9.0"
}
}

View file

@ -31,7 +31,6 @@
"zod": "^3.25.76"
},
"devDependencies": {
"@epiphanygraph/epiphany-graph-viewer": "file:../EpiphanyGraph/web/epiphany-graph-viewer",
"@types/node": "^24.0.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",

View file

@ -20,10 +20,10 @@ const execAsync = promisify(exec);
const cargoCommand = process.env.CARGO ?? (process.platform === "win32" ? join(homedir(), ".cargo", "bin", "cargo.exe") : "cargo");
const dotnetCommand = process.env.DOTNET ?? (process.platform === "win32" ? join("C:", "Program Files", "dotnet", "dotnet.exe") : "dotnet");
const cultCacheTsRoot = resolve(__dirname, "../..");
const cultcacheRsRoot = resolve(cultCacheTsRoot, "..", "cultcache-rs");
const cultLibRoot = resolve(cultCacheTsRoot, "..", "CultLib");
const cultLibRoot = resolve(cultCacheTsRoot, "..", "..");
const cultcacheRsRoot = resolve(cultLibRoot, "crates", "cultcache-rs");
const rustInteropBinary = resolve(
cultcacheRsRoot,
cultLibRoot,
"target",
"debug",
"examples",

View file

@ -0,0 +1,21 @@
# cultmesh-ts
`cultmesh-ts` is the TypeScript CultMesh surface for local GameCult runtimes.
It opens a durable `cultcache-ts` store, registers typed documents, and exposes a
small CultMesh-branded node API that VoidBot and Mimir can use before the full
networked CultMesh authority model is ported.
```ts
import { CultMesh } from "cultmesh-ts";
const node = await CultMesh.startNode("state/voidbot.ccmp", {
documents: [voidSelfProfileDocument],
});
await node.put(voidSelfProfileDocument, "self", profile);
const loaded = node.get(voidSelfProfileDocument, "self");
await node.flush();
```
This package owns the local TypeScript entrypoint. It does not yet own shard
authority, replica catch-up, or networked Verse discovery.

61
packages/cultmesh-ts/dist/index.d.ts vendored Normal file
View file

@ -0,0 +1,61 @@
import { CultCache, type AnyCultCacheDocumentDefinition, type CacheBackingStore, type CultCacheDocumentValue } from "cultcache-ts";
import { CultNetDocumentRegistry, type CultNetDocumentBinding } from "cultnet-ts";
export interface CultMeshNodeOptions {
documents?: Iterable<AnyCultCacheDocumentDefinition>;
bindings?: Iterable<CultNetDocumentBinding>;
store?: CacheBackingStore;
pullOnStart?: boolean;
}
export declare class CultMeshNode {
readonly cache: CultCache;
readonly store: CacheBackingStore;
readonly documents: CultNetDocumentRegistry;
constructor(cache: CultCache, store: CacheBackingStore, documents: CultNetDocumentRegistry);
get<TDefinition extends AnyCultCacheDocumentDefinition>(definition: TDefinition, key: string): CultCacheDocumentValue<TDefinition> | undefined;
getRequired<TDefinition extends AnyCultCacheDocumentDefinition>(definition: TDefinition, key: string): CultCacheDocumentValue<TDefinition>;
put<TDefinition extends AnyCultCacheDocumentDefinition>(definition: TDefinition, key: string, value: CultCacheDocumentValue<TDefinition>): Promise<CultCacheDocumentValue<TDefinition>>;
delete<TDefinition extends AnyCultCacheDocumentDefinition>(definition: TDefinition, key: string): Promise<boolean>;
flush(soft?: boolean): Promise<void>;
}
export declare class CultMeshVerseCatalog<TVerse = unknown> {
#private;
get verses(): readonly TVerse[];
upsert(verseId: string, verse: TVerse): void;
get(verseId: string): TVerse | undefined;
}
export interface CultMeshPeerCard {
peerId: string;
verseId: string;
endpoints: readonly string[];
roles?: readonly string[];
shardIds?: readonly string[];
authorityLeaseId?: string;
}
export declare class CultMeshPeerCatalog {
#private;
get peers(): readonly CultMeshPeerCard[];
upsert(peer: CultMeshPeerCard): void;
find(verseId: string, role?: string): readonly CultMeshPeerCard[];
}
export interface CultMeshAuthorityLease {
leaseId: string;
verseId: string;
peerId: string;
roles: readonly string[];
shardIds?: readonly string[];
validFrom: Date;
expiresAt: Date;
}
export declare class CultMeshAuthorityLeaseCatalog {
#private;
upsert(lease: CultMeshAuthorityLease): void;
isAuthorized(peer: CultMeshPeerCard, role: string, shardId?: string, at?: Date): boolean;
}
export declare class CultMesh {
static createNode(cachePath: string, options?: CultMeshNodeOptions): Promise<CultMeshNode>;
static startNode(cachePath: string, options?: CultMeshNodeOptions): Promise<CultMeshNode>;
static createVerseCatalog<TVerse = unknown>(): CultMeshVerseCatalog<TVerse>;
static createPeerCatalog(): CultMeshPeerCatalog;
static createAuthorityLeaseCatalog(): CultMeshAuthorityLeaseCatalog;
}
//# sourceMappingURL=index.d.ts.map

View file

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,KAAK,8BAA8B,EACnC,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EAEvB,KAAK,sBAAsB,EAC5B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,QAAQ,CAAC,8BAA8B,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,YAAY;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;gBAG1C,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,iBAAiB,EACxB,SAAS,EAAE,uBAAuB;IAOpC,GAAG,CAAC,WAAW,SAAS,8BAA8B,EACpD,UAAU,EAAE,WAAW,EACvB,GAAG,EAAE,MAAM,GACV,sBAAsB,CAAC,WAAW,CAAC,GAAG,SAAS;IAIlD,WAAW,CAAC,WAAW,SAAS,8BAA8B,EAC5D,UAAU,EAAE,WAAW,EACvB,GAAG,EAAE,MAAM,GACV,sBAAsB,CAAC,WAAW,CAAC;IAItC,GAAG,CAAC,WAAW,SAAS,8BAA8B,EACpD,UAAU,EAAE,WAAW,EACvB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,sBAAsB,CAAC,WAAW,CAAC,GACzC,OAAO,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAI/C,MAAM,CAAC,WAAW,SAAS,8BAA8B,EACvD,UAAU,EAAE,WAAW,EACvB,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,OAAO,CAAC;IAIb,KAAK,CAAC,IAAI,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzC;AAED,qBAAa,oBAAoB,CAAC,MAAM,GAAG,OAAO;;IAGhD,IAAI,MAAM,IAAI,SAAS,MAAM,EAAE,CAE9B;IAED,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAK5C,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAIzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,qBAAa,mBAAmB;;IAG9B,IAAI,KAAK,IAAI,SAAS,gBAAgB,EAAE,CAIvC;IAED,MAAM,CAAC,IAAI,EAAE,gBAAgB,GAAG,IAAI;IAMpC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,gBAAgB,EAAE;CAOlE;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC7B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,qBAAa,6BAA6B;;IAGxC,MAAM,CAAC,KAAK,EAAE,sBAAsB,GAAG,IAAI;IAW3C,YAAY,CACV,IAAI,EAAE,gBAAgB,EACtB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,EAChB,EAAE,OAAa,GACd,OAAO;CAmBX;AAED,qBAAa,QAAQ;WACN,UAAU,CACrB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,YAAY,CAAC;IAqBxB,MAAM,CAAC,SAAS,CACd,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,YAAY,CAAC;IAIxB,MAAM,CAAC,kBAAkB,CAAC,MAAM,GAAG,OAAO,KAAK,oBAAoB,CAAC,MAAM,CAAC;IAI3E,MAAM,CAAC,iBAAiB,IAAI,mBAAmB;IAI/C,MAAM,CAAC,2BAA2B,IAAI,6BAA6B;CAGpE"}

129
packages/cultmesh-ts/dist/index.js vendored Normal file
View file

@ -0,0 +1,129 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CultMesh = exports.CultMeshAuthorityLeaseCatalog = exports.CultMeshPeerCatalog = exports.CultMeshVerseCatalog = exports.CultMeshNode = void 0;
const cultcache_ts_1 = require("cultcache-ts");
const cultnet_ts_1 = require("cultnet-ts");
class CultMeshNode {
cache;
store;
documents;
constructor(cache, store, documents) {
this.cache = cache;
this.store = store;
this.documents = documents;
}
get(definition, key) {
return this.cache.get(definition, key);
}
getRequired(definition, key) {
return this.cache.getRequired(definition, key);
}
put(definition, key, value) {
return this.cache.put(definition, key, value);
}
delete(definition, key) {
return this.cache.delete(definition, key);
}
async flush(soft = false) {
await this.store.pushAll?.(this.cache.snapshot(), { soft });
}
}
exports.CultMeshNode = CultMeshNode;
class CultMeshVerseCatalog {
#verses = new Map();
get verses() {
return [...this.#verses.values()];
}
upsert(verseId, verse) {
requireNonEmpty(verseId, "verseId");
this.#verses.set(verseId, verse);
}
get(verseId) {
requireNonEmpty(verseId, "verseId");
return this.#verses.get(verseId);
}
}
exports.CultMeshVerseCatalog = CultMeshVerseCatalog;
class CultMeshPeerCatalog {
#peers = new Map();
get peers() {
return [...this.#peers.values()].sort((left, right) => left.peerId.localeCompare(right.peerId));
}
upsert(peer) {
requireNonEmpty(peer.peerId, "peer.peerId");
requireNonEmpty(peer.verseId, "peer.verseId");
this.#peers.set(peer.peerId, peer);
}
find(verseId, role) {
requireNonEmpty(verseId, "verseId");
return this.peers.filter((peer) => peer.verseId === verseId &&
(!role || peer.roles?.includes(role) === true));
}
}
exports.CultMeshPeerCatalog = CultMeshPeerCatalog;
class CultMeshAuthorityLeaseCatalog {
#leases = new Map();
upsert(lease) {
requireNonEmpty(lease.leaseId, "lease.leaseId");
requireNonEmpty(lease.verseId, "lease.verseId");
requireNonEmpty(lease.peerId, "lease.peerId");
if (lease.expiresAt <= lease.validFrom) {
throw new Error("CultMesh authority lease expiry must be after validFrom.");
}
this.#leases.set(lease.leaseId, lease);
}
isAuthorized(peer, role, shardId, at = new Date()) {
requireNonEmpty(role, "role");
if (!peer.authorityLeaseId) {
return false;
}
const lease = this.#leases.get(peer.authorityLeaseId);
if (!lease) {
return false;
}
return at >= lease.validFrom &&
at < lease.expiresAt &&
lease.verseId === peer.verseId &&
lease.peerId === peer.peerId &&
lease.roles.includes(role) &&
peer.roles?.includes(role) === true &&
(!shardId || !lease.shardIds || lease.shardIds.length === 0 || lease.shardIds.includes(shardId));
}
}
exports.CultMeshAuthorityLeaseCatalog = CultMeshAuthorityLeaseCatalog;
class CultMesh {
static async createNode(cachePath, options = {}) {
requireNonEmpty(cachePath, "cachePath");
const store = options.store ?? new cultcache_ts_1.SingleFileMessagePackBackingStore(cachePath);
const cache = cultcache_ts_1.CultCache.builder().withGenericStore(store).build();
const documents = new cultnet_ts_1.CultNetDocumentRegistry(options.bindings);
for (const definition of options.documents ?? []) {
cache.registerDocumentType(definition);
if (!documents.get(definition.type)) {
documents.register((0, cultnet_ts_1.defineCultNetDocumentBinding)({ definition }));
}
}
if (options.pullOnStart !== false) {
await cache.pullAllBackingStores();
}
return new CultMeshNode(cache, store, documents);
}
static startNode(cachePath, options = {}) {
return CultMesh.createNode(cachePath, options);
}
static createVerseCatalog() {
return new CultMeshVerseCatalog();
}
static createPeerCatalog() {
return new CultMeshPeerCatalog();
}
static createAuthorityLeaseCatalog() {
return new CultMeshAuthorityLeaseCatalog();
}
}
exports.CultMesh = CultMesh;
function requireNonEmpty(value, name) {
if (!value || value.trim().length === 0) {
throw new Error(`${name} must be non-empty.`);
}
}

View file

@ -0,0 +1,33 @@
{
"name": "cultmesh-ts",
"version": "0.1.0",
"description": "Local-first TypeScript CultMesh facade over CultCache and CultNet document contracts.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"typecheck": "tsc -p tsconfig.json --pretty false",
"test": "npm run build && tsc -p tsconfig.test.json && node --test dist-test/test/*.test.js"
},
"keywords": [
"cultmesh",
"cultcache",
"cultnet",
"gamecult",
"typescript"
],
"author": "metacratic",
"license": "MIT",
"dependencies": {
"cultcache-ts": "file:../cultcache-ts",
"cultnet-ts": "file:../cultnet-ts"
},
"devDependencies": {
"@types/node": "^24.0.0",
"typescript": "^5.9.0",
"zod": "^3.25.76"
}
}

View file

@ -0,0 +1,220 @@
import {
CultCache,
SingleFileMessagePackBackingStore,
type AnyCultCacheDocumentDefinition,
type CacheBackingStore,
type CultCacheDocumentValue,
} from "cultcache-ts";
import {
CultNetDocumentRegistry,
defineCultNetDocumentBinding,
type CultNetDocumentBinding,
} from "cultnet-ts";
export interface CultMeshNodeOptions {
documents?: Iterable<AnyCultCacheDocumentDefinition>;
bindings?: Iterable<CultNetDocumentBinding>;
store?: CacheBackingStore;
pullOnStart?: boolean;
}
export class CultMeshNode {
readonly cache: CultCache;
readonly store: CacheBackingStore;
readonly documents: CultNetDocumentRegistry;
constructor(
cache: CultCache,
store: CacheBackingStore,
documents: CultNetDocumentRegistry,
) {
this.cache = cache;
this.store = store;
this.documents = documents;
}
get<TDefinition extends AnyCultCacheDocumentDefinition>(
definition: TDefinition,
key: string,
): CultCacheDocumentValue<TDefinition> | undefined {
return this.cache.get(definition, key);
}
getRequired<TDefinition extends AnyCultCacheDocumentDefinition>(
definition: TDefinition,
key: string,
): CultCacheDocumentValue<TDefinition> {
return this.cache.getRequired(definition, key);
}
put<TDefinition extends AnyCultCacheDocumentDefinition>(
definition: TDefinition,
key: string,
value: CultCacheDocumentValue<TDefinition>,
): Promise<CultCacheDocumentValue<TDefinition>> {
return this.cache.put(definition, key, value);
}
delete<TDefinition extends AnyCultCacheDocumentDefinition>(
definition: TDefinition,
key: string,
): Promise<boolean> {
return this.cache.delete(definition, key);
}
async flush(soft = false): Promise<void> {
await this.store.pushAll?.(this.cache.snapshot(), { soft });
}
}
export class CultMeshVerseCatalog<TVerse = unknown> {
readonly #verses = new Map<string, TVerse>();
get verses(): readonly TVerse[] {
return [...this.#verses.values()];
}
upsert(verseId: string, verse: TVerse): void {
requireNonEmpty(verseId, "verseId");
this.#verses.set(verseId, verse);
}
get(verseId: string): TVerse | undefined {
requireNonEmpty(verseId, "verseId");
return this.#verses.get(verseId);
}
}
export interface CultMeshPeerCard {
peerId: string;
verseId: string;
endpoints: readonly string[];
roles?: readonly string[];
shardIds?: readonly string[];
authorityLeaseId?: string;
}
export class CultMeshPeerCatalog {
readonly #peers = new Map<string, CultMeshPeerCard>();
get peers(): readonly CultMeshPeerCard[] {
return [...this.#peers.values()].sort((left, right) =>
left.peerId.localeCompare(right.peerId),
);
}
upsert(peer: CultMeshPeerCard): void {
requireNonEmpty(peer.peerId, "peer.peerId");
requireNonEmpty(peer.verseId, "peer.verseId");
this.#peers.set(peer.peerId, peer);
}
find(verseId: string, role?: string): readonly CultMeshPeerCard[] {
requireNonEmpty(verseId, "verseId");
return this.peers.filter((peer) =>
peer.verseId === verseId &&
(!role || peer.roles?.includes(role) === true),
);
}
}
export interface CultMeshAuthorityLease {
leaseId: string;
verseId: string;
peerId: string;
roles: readonly string[];
shardIds?: readonly string[];
validFrom: Date;
expiresAt: Date;
}
export class CultMeshAuthorityLeaseCatalog {
readonly #leases = new Map<string, CultMeshAuthorityLease>();
upsert(lease: CultMeshAuthorityLease): void {
requireNonEmpty(lease.leaseId, "lease.leaseId");
requireNonEmpty(lease.verseId, "lease.verseId");
requireNonEmpty(lease.peerId, "lease.peerId");
if (lease.expiresAt <= lease.validFrom) {
throw new Error("CultMesh authority lease expiry must be after validFrom.");
}
this.#leases.set(lease.leaseId, lease);
}
isAuthorized(
peer: CultMeshPeerCard,
role: string,
shardId?: string,
at = new Date(),
): boolean {
requireNonEmpty(role, "role");
if (!peer.authorityLeaseId) {
return false;
}
const lease = this.#leases.get(peer.authorityLeaseId);
if (!lease) {
return false;
}
return at >= lease.validFrom &&
at < lease.expiresAt &&
lease.verseId === peer.verseId &&
lease.peerId === peer.peerId &&
lease.roles.includes(role) &&
peer.roles?.includes(role) === true &&
(!shardId || !lease.shardIds || lease.shardIds.length === 0 || lease.shardIds.includes(shardId));
}
}
export class CultMesh {
static async createNode(
cachePath: string,
options: CultMeshNodeOptions = {},
): Promise<CultMeshNode> {
requireNonEmpty(cachePath, "cachePath");
const store = options.store ?? new SingleFileMessagePackBackingStore(cachePath);
const cache = CultCache.builder().withGenericStore(store).build();
const documents = new CultNetDocumentRegistry(options.bindings);
for (const definition of options.documents ?? []) {
cache.registerDocumentType(definition);
if (!documents.get(definition.type)) {
documents.register(defineCultNetDocumentBinding({ definition }));
}
}
if (options.pullOnStart !== false) {
await cache.pullAllBackingStores();
}
return new CultMeshNode(cache, store, documents);
}
static startNode(
cachePath: string,
options: CultMeshNodeOptions = {},
): Promise<CultMeshNode> {
return CultMesh.createNode(cachePath, options);
}
static createVerseCatalog<TVerse = unknown>(): CultMeshVerseCatalog<TVerse> {
return new CultMeshVerseCatalog<TVerse>();
}
static createPeerCatalog(): CultMeshPeerCatalog {
return new CultMeshPeerCatalog();
}
static createAuthorityLeaseCatalog(): CultMeshAuthorityLeaseCatalog {
return new CultMeshAuthorityLeaseCatalog();
}
}
function requireNonEmpty(value: string, name: string): void {
if (!value || value.trim().length === 0) {
throw new Error(`${name} must be non-empty.`);
}
}

View file

@ -0,0 +1,70 @@
import { mkdtemp } from "node:fs/promises";
import { join } from "node:path";
import { tmpdir } from "node:os";
import test from "node:test";
import assert from "node:assert/strict";
import { z } from "zod";
import { defineDocumentType } from "cultcache-ts";
import { CultMesh } from "../src/index";
const noteDocument = defineDocumentType({
type: "cultmesh.note",
schemaId: "cultmesh.note.v0",
schema: z.object({
noteId: z.string(),
body: z.string(),
}),
name: "noteId",
});
test("CultMesh TS opens a durable local node and registers document bindings", async () => {
const filePath = join(await mkdtemp(join(tmpdir(), "cultmesh-ts-")), "node.ccmp");
const first = await CultMesh.startNode(filePath, {
documents: [noteDocument],
});
await first.put(noteDocument, "note:intro", {
noteId: "note:intro",
body: "hello from local CultMesh TS",
});
await first.flush();
const reopened = await CultMesh.startNode(filePath, {
documents: [noteDocument],
});
assert.equal(
reopened.getRequired(noteDocument, "note:intro").body,
"hello from local CultMesh TS",
);
assert.ok(reopened.documents.get("cultmesh.note"));
assert.ok(reopened.documents.getBySchemaId("cultmesh.note.v0"));
});
test("CultMesh TS local authority leases do not trust peer cards by contact alone", () => {
const peers = CultMesh.createPeerCatalog();
const leases = CultMesh.createAuthorityLeaseCatalog();
const peer = {
peerId: "voidbot-local",
verseId: "local",
endpoints: ["cultmesh://localhost"],
roles: ["shard-primary"],
authorityLeaseId: "lease:voidbot-local",
};
peers.upsert(peer);
assert.equal(leases.isAuthorized(peer, "shard-primary"), false);
leases.upsert({
leaseId: "lease:voidbot-local",
verseId: "local",
peerId: "voidbot-local",
roles: ["shard-primary"],
validFrom: new Date(Date.now() - 1000),
expiresAt: new Date(Date.now() + 1000),
});
assert.equal(leases.isAuthorized(peer, "shard-primary"), true);
});

View file

@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
"moduleResolution": "Node",
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"strict": true,
"outDir": "dist",
"rootDir": "src",
"types": [
"node"
],
"skipLibCheck": true
},
"include": [
"src/**/*.ts"
]
}

View file

@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "dist-test",
"noEmit": false
},
"include": [
"test/**/*.ts"
]
}

View file

@ -1,322 +0,0 @@
{
"name": "cultnet-ts",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cultnet-ts",
"version": "0.1.0",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"ajv": "^8.17.1",
"cultcache-ts": "github:GameCult/cultcache-ts"
},
"devDependencies": {
"@types/node": "^24.0.0",
"json-schema-to-typescript": "^15.0.4",
"typescript": "^5.9.0",
"zod": "^3.25.76"
}
},
"node_modules/@apidevtools/json-schema-ref-parser": {
"version": "11.9.3",
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.9.3.tgz",
"integrity": "sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jsdevtools/ono": "^7.1.3",
"@types/json-schema": "^7.0.15",
"js-yaml": "^4.1.0"
},
"engines": {
"node": ">= 16"
},
"funding": {
"url": "https://github.com/sponsors/philsturgeon"
}
},
"node_modules/@jsdevtools/ono": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
"integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
"dev": true,
"license": "MIT"
},
"node_modules/@msgpack/msgpack": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/@msgpack/msgpack/-/msgpack-3.1.3.tgz",
"integrity": "sha512-47XIizs9XZXvuJgoaJUIE2lFoID8ugvc0jzSHP+Ptfk8nTbnR8g788wv48N03Kx0UkAv559HWRQ3yzOgzlRNUA==",
"license": "ISC",
"engines": {
"node": ">= 18"
}
},
"node_modules/@types/json-schema": {
"version": "7.0.15",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/lodash": {
"version": "4.17.24",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.24.tgz",
"integrity": "sha512-gIW7lQLZbue7lRSWEFql49QJJWThrTFFeIMJdp3eH4tKoxm1OvEPg02rm4wCCSHS0cL3/Fizimb35b7k8atwsQ==",
"dev": true,
"license": "MIT"
},
"node_modules/@types/node": {
"version": "24.12.2",
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.2.tgz",
"integrity": "sha512-A1sre26ke7HDIuY/M23nd9gfB+nrmhtYyMINbjI1zHJxYteKR6qSMX56FsmjMcDb3SMcjJg5BiRRgOCC/yBD0g==",
"dev": true,
"license": "MIT",
"dependencies": {
"undici-types": "~7.16.0"
}
},
"node_modules/ajv": {
"version": "8.20.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz",
"integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/argparse": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
"dev": true,
"license": "Python-2.0"
},
"node_modules/cultcache-ts": {
"version": "0.1.0",
"resolved": "git+ssh://git@github.com/GameCult/cultcache-ts.git#6c2e1e3691146f99c44c098371cc8c787b4a8d0c",
"license": "MIT",
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"zod": "^3.25.76"
}
},
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"license": "MIT"
},
"node_modules/fast-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz",
"integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"license": "BSD-3-Clause"
},
"node_modules/fdir": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
"integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12.0.0"
},
"peerDependencies": {
"picomatch": "^3 || ^4"
},
"peerDependenciesMeta": {
"picomatch": {
"optional": true
}
}
},
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
"dev": true,
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/js-yaml": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
},
"bin": {
"js-yaml": "bin/js-yaml.js"
}
},
"node_modules/json-schema-to-typescript": {
"version": "15.0.4",
"resolved": "https://registry.npmjs.org/json-schema-to-typescript/-/json-schema-to-typescript-15.0.4.tgz",
"integrity": "sha512-Su9oK8DR4xCmDsLlyvadkXzX6+GGXJpbhwoLtOGArAG61dvbW4YQmSEno2y66ahpIdmLMg6YUf/QHLgiwvkrHQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^11.5.5",
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.17.7",
"is-glob": "^4.0.3",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"minimist": "^1.2.8",
"prettier": "^3.2.5",
"tinyglobby": "^0.2.9"
},
"bin": {
"json2ts": "dist/src/cli.js"
},
"engines": {
"node": ">=16.0.0"
}
},
"node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"license": "MIT"
},
"node_modules/lodash": {
"version": "4.18.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
"integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
"dev": true,
"license": "MIT"
},
"node_modules/minimist": {
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/jonschlinkert"
}
},
"node_modules/prettier": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz",
"integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/tinyglobby": {
"version": "0.2.16",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",
"integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==",
"dev": true,
"license": "MIT",
"dependencies": {
"fdir": "^6.5.0",
"picomatch": "^4.0.4"
},
"engines": {
"node": ">=12.0.0"
},
"funding": {
"url": "https://github.com/sponsors/SuperchupuDev"
}
},
"node_modules/typescript": {
"version": "5.9.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
},
"node_modules/undici-types": {
"version": "7.16.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
"dev": true,
"license": "MIT"
},
"node_modules/zod": {
"version": "3.25.76",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz",
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
}
}
}

View file

@ -28,7 +28,7 @@
"dependencies": {
"@msgpack/msgpack": "^3.1.3",
"ajv": "^8.17.1",
"cultcache-ts": "github:GameCult/cultcache-ts"
"cultcache-ts": "file:../cultcache-ts"
},
"devDependencies": {
"@types/node": "^24.0.0",