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

koishi-plugin-local-mcs-runner

v1.1.1

Published

[![npm](https://img.shields.io/npm/v/koishi-plugin-local-mcs-runner?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-local-mcs-runner)

Readme

koishi-plugin-local-mcs-runner

npm

构建

在应用目录下运行:

npm run build local-mcs-runner

更新历史

v1.1.1

  • 重构权限模型:用户仅区分 adminIds 与普通成员,群组改为 trustGroups / untrustGroups 两级;命中 admin 用户或 trust 群即可执行全部命令。
  • 调整 say / list 权限为受限群可用,其余高风险指令仅允许 admin 用户或 trust 群执行;私聊场景同样参与权限判断。
  • injectTargetGroup 升级为可配置多个群组的 injectTargetGroups,留空时默认回落到 trustGroups + untrustGroups
  • MC 聊天广播默认覆盖全部受管群,LLM Hook 改为仅允许 trustGroups 内的 llmBotIds 触发。

v1.1.0

  • 修复插件热重载后丢失服务端进程句柄的问题,支持在同一 Koishi 进程内重载后继续接管已启动的服务端。
  • 重构服务端进程运行时状态管理,改为共享 runtime 保存子进程句柄、运行状态与监听器解绑逻辑。
  • 补充启动阶段 error / close / exit 处理,避免启动脚本异常退出时误报。
  • 优化关服流程:主动关服优先等待进程自行退出,超时后再执行强制终止。
  • 新增 broadcastsresponses 配置块,支持分别配置群聊广播内容与命令返回消息。
  • 将配置定义从 src/index.ts 拆分到 src/config.ts,降低主逻辑文件的维护复杂度。
  • 补充并完善 src/config.ts 中的配置分层与模板变量说明注释。

v1.0.9

  • 新增 runtime 配置项,支持 windows / linux 运行环境选择。
  • 进程终止逻辑按运行环境分支执行(Windows 使用 taskkill,Linux 使用 kill)。
  • 新增独立启动函数 startProcessByRuntime,按运行环境执行不同启动命令。
  • batName 调整为必填配置项,由用户显式指定启动脚本名称。
  • 新增“MC玩家聊天注入 Koishi 消息处理链”能力(可通过配置开关启用)。
  • 新增注入目标群配置项(留空时回落使用 allowedGroups)。
  • 修复 onebot 场景下注入消息时的 missing primary key 问题,补齐会话关键字段并调整虚拟用户 ID 生成策略。