Publish the non-Rust packages and make the licensing uniform

Rust consumers pin a CultLib revision through cargo git dependencies, which is
how Ghostlight, Epiphany, CodexConnector and Odin already consume the core
stack. npm and pip cannot take a package from a subdirectory of a git repo at
all, which is why the TypeScript and Python consumers vendored forks instead:
there was nothing else to depend on. This gives them a versioned artifact.

Tagging cultcache-ts-v* or cultcache-py-v* builds, tests and publishes. The tag
version must match the manifest version or the workflow refuses rather than
shipping a mislabelled artifact. PyPI uses trusted publishing, so no long-lived
token is stored; npm needs an NPM_TOKEN secret.

cultcache-ts is now @gamecult/cultcache-ts. The scope is not cosmetic: it makes
the package unambiguously org-owned on a public registry, and it is what lets
CultLib hold the name rather than racing for an unscoped one. CultLib's own
cultmesh-ts and cultnet-ts and their imports move with it; all three packages
typecheck and cultcache-ts passes 12 of 13 tests, the exception being the
cross-runtime store test that shells out to Python, which cannot run on this
machine because its Python has no msgpack.

Licensing was inconsistent with the repo. cultcache-py declared itself "Private
GameCult infrastructure" and cultcache-rs and cultmesh-rs declared nothing,
inside a repo whose LICENSE is MIT and whose every other package says MIT. All
three now say MIT. That was load-bearing here: a package that calls itself
private is not one to push to a public registry.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-04 04:41:44 +02:00
commit 8cb3b7282b
14 changed files with 135 additions and 17 deletions

15
package-lock.json generated
View file

@ -478,6 +478,10 @@
"node": ">=18"
}
},
"node_modules/@gamecult/cultcache-ts": {
"resolved": "packages/cultcache-ts",
"link": true
},
"node_modules/@jsdevtools/ono": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
@ -541,10 +545,6 @@
"dev": true,
"license": "Python-2.0"
},
"node_modules/cultcache-ts": {
"resolved": "packages/cultcache-ts",
"link": true
},
"node_modules/cultmesh-browser": {
"resolved": "packages/cultmesh-browser",
"link": true
@ -831,6 +831,7 @@
}
},
"packages/cultcache-ts": {
"name": "@gamecult/cultcache-ts",
"version": "0.13.5",
"license": "MIT",
"dependencies": {
@ -864,8 +865,8 @@
"version": "0.1.1",
"license": "MIT",
"dependencies": {
"@gamecult/cultcache-ts": "^0.13.5",
"@msgpack/msgpack": "^3.1.2",
"cultcache-ts": "^0.13.5",
"cultnet-ts": "^0.2.0"
},
"devDependencies": {
@ -881,9 +882,9 @@
"version": "0.2.0",
"license": "MIT",
"dependencies": {
"@gamecult/cultcache-ts": "^0.13.5",
"@msgpack/msgpack": "^3.1.3",
"ajv": "^8.17.1",
"cultcache-ts": "^0.13.5"
"ajv": "^8.17.1"
},
"devDependencies": {
"@types/node": "^24.0.0",