- Added package.json for @proj-airi/server-protocol with necessary configurations. - Implemented chat event types including WireMessage, SendMessagesRequest, and PullMessagesRequest. - Defined WebSocket event types and structures for better integration with AIRI components. - Updated server-runtime and server-sdk to utilize the new server-protocol package. - Refactored imports across various packages to replace server-shared types with server-protocol types. - Enhanced type definitions and added TypeScript configurations for better development experience.
21 lines
415 B
Markdown
21 lines
415 B
Markdown
# @proj-airi/server-shared
|
|
|
|
Server-side shared utilities for AIRI runtimes.
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
ni @proj-airi/server-shared -D # from @antfu/ni, can be installed via `npm i -g @antfu/ni`
|
|
pnpm i @proj-airi/server-shared -D
|
|
yarn i @proj-airi/server-shared -D
|
|
npm i @proj-airi/server-shared -D
|
|
```
|
|
|
|
```typescript
|
|
import { parseServerErrorMessage } from '@proj-airi/server-shared'
|
|
```
|
|
|
|
## License
|
|
|
|
[MIT](../../LICENSE)
|