npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aalis/plugin-session-server

v0.5.0

Published

会话服务:会话协议的服务端(会话列表与增量、会话的增删改与配置、已读、订阅与条目、历史、回合控制)与审批服务(在场、排队、应答核验、结算、审计)

Readme

@aalis/plugin-session-server

会话服务:会话协议(@aalis/api-session-protocol)的服务端,另提供审批服务(@aalis/api-approval)。把 session-manager 里的会话投影成会话列表(「我的」与房间两区、房间按适配器实例分组、出错、完成未读、运行中),按会话事件推增量,转发会话的建、改名、归档与恢复、删除与会话设置(转给会话设置插件的管理面:会话自己那一层,以及全局(插件配置)、平台档、平台类型档与场所的按层读写),另记「我的」区的已读时间;订阅一个会话时给出快照(存档归并的历史与在途回合的条目),之后把 agent、工具与存档的事件拼成条目推送;回合控制(发消息、继续、停止、压缩、回滚、清空待办)转给 agent、网关、压缩服务(compression)、检查点与待办。审批推给在场的审批面,同一会话排队、限频,先答先得并核应答人与内容哈希,请求与决定成对记进数据目录的审计文件。帧里给人看的文字按全局层的语言渲染(读者是 owner 自己),日期与时间按服务进程的时区,i18n 服务缺席或渲染出错时按原文;时间线里不是她回复的外发消息推成通知(纯文本),插件发出的消息、存档的通知与分隔线带文字对象时(@aalis/schema-message 的 OutgoingMessage.text 与元数据键 Text)显示它,实时与历史一致;工具调用的参数与结果、审批的逐字参数、用户消息正文、设置项的取值与默认值原样发出。

角色

运行时插件,提供 session-protocol 与 approvals 服务。

安装

pnpm add @aalis/plugin-session-server

使用

参考 docs/plugins/plugin-session-server.md、docs/api/api-session-protocol.md 与 docs/api/api-approval.md。

许可

MIT,见本目录 LICENSE。