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

dsh-client-ui-auto-approval

v0.1.0

Published

Client companion for dsh-auto-approval: an auto-approval status chip beside the composer access-mode selector, fed by the host's autoApprovalStatus Typert remote

Downloads

151

Readme

dsh-client-ui-auto-approval

dsh-auto-approval 的 client 伴侣包:在聊天输入栏权限选择器(Read Only / Workspace Write / Full access)旁显示一个状态 chip,实时展示 host 侧 auto-approval 的运行态 —— armed 配置、本 turn 的 deny 计数、累计统计(approved / denied)、暂停状态。

[Access mode: Workspace Write]  ● AA on   [Select model...]

交互

  • hover chip:tooltip 显示完整状态——L0 规则数、L1 路由、累计统计(✓ approved · ✗ denied)、暂停/本 turn deny 计数。
  • 点击 chip:弹出对话框——
    • 开关:Turn on/off(走 host setEnabled remote,优先写 settings 持久化,热生效且重启后保持);
    • 累计统计:两张数字卡(Approved / Denied);
    • 决策表格:本 session 最近 100 条决策(时间、工具、阶段、结论、命中的 pattern / L1 rationale),新→旧,弹窗打开时每 2s 刷新。

工作原理

数据走 Typert remote(autoApprovalStatus/getStatus + getHistory + setEnabled),host 半的 AutoApprovalStatusService 读内存态(resolved 配置 + deny tracker + DecisionHistory 环形缓冲),不落 session 事件。

不用 projection 的原因:projection 值必须从 session 事件 fold,而 08-12 final 起写自定义 session 事件会使 session 重启后打不开(KNOWN_SESSION_EVENT_TYPES 白名单)。

安装

依赖 dsh-auto-approval(host 半):

dsh plugin --profile web add link:/<你的clone路径>/dsh-auto-approval/packages/dsh-client-ui-auto-approval

开发

pnpm run build   # 产出 lib/client.js(浏览器 bundle)+ lib/index.js(node 半空 apply)

License

BSD-3-Clause