mirror of
https://github.com/moeru-ai/airi.git
synced 2026-12-03 03:31:01 +00:00
|
|
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
Server runtime
This package routes AIRI protocol events between authenticated module peers. Use it for a standalone channel server or an embedded desktop server. It does not own chat sessions or model execution.
Usage
Create a server through @proj-airi/server-runtime/server, then call start() and stop() for its host lifecycle.
Use setupApp from the package root when an existing HTTP host owns the server lifecycle.
Validation
Run pnpm -F @proj-airi/server-runtime typecheck and pnpm -F @proj-airi/server-runtime exec vitest run.