pi-mono/packages/chord/package.json
Mario Zechner 0104fef1e9 feat(chord): replace the facet and service runtime with the chord2 host runtime
Moves chord2 (contracts, objects, cells, roots, plugins, hot reload, memory/IPC/WebSocket links)
from p2 into packages/chord, with its tests (now on vitest) and docs. The root export is the new
runtime plus the shared base (Context, JsonValue, JsonRepresentation, Draft, copyJson, isJsonValue,
replicatedState and its types). ./node now holds the host manager, child control, process locks,
and nodeLoader. ./context and ./delta are unchanged; ./bundler is removed.

replicatedState stays a standalone module with the same exports. It no longer exposes the exact-op
subscription the removed service provider used, so listener failures of mutable states are always
reported asynchronously. The package depends on typebox instead of esbuild. The wire format stays JSON.
2026-10-12 10:41:59 +00:00

68 lines
1.4 KiB
JSON

{
"name": "@earendil-works/chord",
"version": "1.1.0",
"description": "Typed host runtime for plugins, contracts, replicated state, and RPC over JSON links",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"source": "./src/index.ts",
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./context": {
"source": "./src/context/index.ts",
"types": "./dist/context/index.d.ts",
"import": "./dist/context/index.js"
},
"./delta": {
"source": "./src/delta/index.ts",
"types": "./dist/delta/index.d.ts",
"import": "./dist/delta/index.js"
},
"./node": {
"source": "./src/node.ts",
"types": "./dist/node.d.ts",
"import": "./dist/node.js"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"files": [
"dist",
"docs",
"README.md",
"src/delta/README.md"
],
"scripts": {
"clean": "shx rm -rf dist",
"build": "tsc -p tsconfig.build.json",
"test": "vitest --run",
"prepublishOnly": "npm run clean && npm run build"
},
"keywords": [
"application",
"plugins",
"rpc",
"contracts",
"state"
],
"author": "Earendil Works",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/earendil-works/pi.git",
"directory": "packages/chord"
},
"engines": {
"node": ">=22.19.0"
},
"dependencies": {
"typebox": "1.3.27"
},
"devDependencies": {
"shx": "0.3.4",
"vitest": "4.1.11"
}
}