nitori_server 0.1.21
nitori_server: ^0.1.21 copied to clipboard
Dart server implementation for the Satori Protocol, providing the HTTP API and WebSocket gateway handlers.
0.1.21 #
0.1.20 #
- FEAT: add
RemoteSatoriAdapterprotocol bridge — connects to a remote Satori server over HTTP + WebSocket and maps its logins/events into localSatoriAdapter/SatoriBotobjects, includinginternalproxying viaJsonForm.
0.1.19 #
- FEAT: features auto-derivation (
SatoriBot.supportedMethods/features),session()/dispatch()upstream semantics, full internal routing (/_tmp,/_api, bot-level router),createUploadreturnsinternal:/_tmp/<id>URLs.
0.1.18 #
- FEAT: P0 server routes (meta, webhook, proxy, admin, internal).
0.1.17 #
0.1.16 #
0.1.15 #
- REFACTOR: migrate to melos 8 and pub workspaces. (da3748fd)
Changelog #
All notable changes to this project will be documented in this file.
[0.1.15] - 2026-11-13 #
Added #
POST /v1/metaendpoint returning server metadata (logins + proxy_urls)POST /v1/meta/webhook.createandPOST /v1/meta/webhook.deletefor webhook managementGET /v1/proxy/*urlmedia proxy with CORS and proxy URL allowlistALL /v1/admin/*pathredirects to/v1/meta/*pathALL /v1/internal/*pathroute (stub, returns 404)- Configurable
pathprefix (upstream default/satori) - Event delivery to registered webhooks with
Satori-Opcodeheader
Changed #
SatoriServerconstructor addspath,webhooksparameters
0.1.14 - 2026-11-13 #
Fixed #
- Align gateway dispatch with upstream
eventAliases: an adapter emitting any member of an alias group now rewrites the emitted type to the canonical (first) name before it is buffered and broadcast InMemoryBot.getMessageIternow walks newest first (upstream derives the iterator fromgetMessageListand reverses the page)
0.1.13 - 2026-11-12 #
0.1.12 - 2026-11-11 #
Fixed #
- Remove
dependency_overridesfrom published package (local dev only) - Update nitori_core dependency to ^0.1.11
0.1.11 - 2026-11-11 #
Fixed #
- Use
Event.deepCopy()in_publishto prevent adapter mutations from affecting replay buffer
0.1.10 - 2026-11-11 #
Added #
- Configurable rate limiting (token bucket) for HTTP API and WebSocket gateway
- Scopes: IP, identity (platform + user ID), token, global
- HTTP rate limit returns 429 with Retry-After header
- WebSocket connect/event rate limiting
- Default disabled for backward compatibility
Changed #
- Unified version bump across the monorepo
0.1.9 - 2026-11-11 #
0.1.6 - 2026-11-11 #
Added #
- Satori HTTP API (
/v1/*) and WebSocket gateway (/v1/events) implementation - 37 standard methods with full request/response mapping
- In-memory adapter (
InMemoryAdapter) for testing
Fixed #
- Request body size limit (32 MiB) with 413 response
- Multipart parsing errors return 400 instead of 500
- Event encoding done once per broadcast; serialization failures no longer drop clients
- Replay buffer uses server enqueue time (not adapter timestamp) with O(1) eviction
- Adapter stream errors logged via
onErrorwithout crashing - WebSocket dead connections closed with
pingInterval=30s - Unimplemented adapter methods return 404
- Resume (
sn > 0only) and login event filtering per spec - Events shallow-copied on publish; caller object never mutated
- Concurrent socket close in
close(); server socket always closed - Constant-time token comparison for auth
Changed #
- SDK constraint upgraded to
^3.2.0formimedependency compatibility
0.1.1 - 2026-11-10 #
Fixed #
- Package metadata: expanded descriptions to meet pub.dev requirements
- Corrected satori protocol documentation URLs to satori.chat
- Added missing platform declarations
- Fixed missing type annotations for lints_core compatibility
0.1.0 - 2026-11-09 #
Added #
- Initial release of nitori_server
- Core protocol models and wire format (nitori_core)
- Message element builder and parser (nitori_message)
- Satori HTTP API client and WebSocket gateway (nitori_client)
- Satori HTTP API server and WebSocket gateway (nitori_server)
- Umbrella package re-exporting all sub-packages (nitori)
0.1.0 #
- Initial scaffold aligned with the unified monorepo version (previous 1.0.0 was premature).