feat(chord): Chord v2 slice 10, HTTP and workers

chord/next/http: a Web fetch handler built from the registry Http (routes, wraps,
sockets, hosts, relays, CSP sources) and Authenticators, responses as descriptions,
a security baseline on by default, Chord's own Node listener as a host-lifetime
object, nodeRequest for apps mounting it, links and plugin sockets.
chord/next/workers: a forked worker per address, started on demand, stopped when
idle, never restarted by itself, plugins built by the server and shipped.
Plugins: kinds with platform and host packages, createPluginRuntime, scripts(kind),
rollout results per host, imports of other plugins by name. Kernel: RouteHandle
(retry, suspend), no route backoff, anonymous host.root, origins only from relays.
ws is an optional peer dependency.
This commit is contained in:
Mario Zechner 2026-10-31 20:40:32 +00:00
parent 81f3cd4127
commit 8959ad6e68
143 changed files with 11066 additions and 561 deletions

View file

@ -10,6 +10,15 @@
"@earendil-works/chord/delta": ["./packages/chord/src/delta/index.ts"],
"@earendil-works/chord/next": ["./packages/chord/src/next/index.ts"],
"@earendil-works/chord/next/plugins": ["./packages/chord/src/next-node/plugins/index.ts"],
"@earendil-works/chord/next/plugins/runtime": ["./packages/chord/src/next-node/plugins/runtime.ts"],
"@test/contracts/*": ["./packages/chord/test/next-node/fixtures/plugins/contracts/*.ts"],
"@example/contracts/*": ["./packages/chord/test/next/examples/35-plugins/plugins/contracts/*.ts"],
"@example/weather/*": ["./packages/chord/test/next/examples/36-plugin-failures/plugins/weather/*.ts"],
"@example/prices/*": ["./packages/chord/test/next/examples/36-plugin-failures/plugins/prices/*.ts"],
"@example/shapes/*": ["./packages/chord/test/next/examples/37-plugin-imports/plugins/shapes/*.ts"],
"@example/shared/*": ["./packages/chord/test/next/examples/38-watch-and-rollout/plugins/contracts/*.ts"],
"@earendil-works/chord/next/http": ["./packages/chord/src/next-node/http/index.ts"],
"@earendil-works/chord/next/workers": ["./packages/chord/src/next-node/workers/index.ts"],
"@earendil-works/chord/node": ["./packages/chord/src/node.ts"],
"@earendil-works/chord/output": ["./packages/chord/src/output.ts"],
"@earendil-works/chord/telemetry-sqlite": ["./packages/chord/src/telemetry-sqlite/index.ts"],