@faapi/faapi 3.3.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,6 +48,11 @@ node dist/main # 启动生产服务器
48
48
  - 洋葱模型中间件:`(ctx, next) => {}`
49
49
  - 依赖注入:注入器按参数名匹配 handler 参数
50
50
  - WebSocket 路由:导出 `WS` 函数声明
51
+ - SSE 流式响应:`ctx.sse()` 流式推送(LLM 输出、通知推送)
52
+ - 响应压缩:`compression: true`,gzip/deflate/br 协商,SSE 自动跳过
53
+ - ETag/304 协商:`etag: true`,GET/HEAD 弱 ETag 自动生成与协商
54
+ - 优雅停机:SIGTERM/SIGINT 默认注册,drain 在途请求(`FAAPI_SHUTDOWN_TIMEOUT_MS` 可调)
55
+ - app 级注册表:tool/agent/skill 注册表随 app 实例创建与销毁,多 app 同进程隔离
51
56
  - SSE 流式响应:`ctx.sse()` 推送
52
57
  - 动态路由:`[id]` / `[...slug]` / `(group)`
53
58
  - MCP 集成:LLM 可查询路由 schema