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

@monotykamary/dsh-client-ui-reference

v0.1.0

Published

Unified Web @file and @session reference source

Readme

@monotykamary/dsh-client-ui-reference

English | 中文

统一的 Web @file@session source。对于未加引号的 token,浏览器会同时启动 fileReferences/listsessionReferenceResolver/candidates Remote 调用,以确定性顺序把文件排在会话之前,并使用注册在 locale 字典中的文件夹、文件与会话标签;各行分别渲染在不可选择的文件与会话分组标题下,不显示重复的原始 reference source 标题。任一候选领域的失败都会独立降级。尚未闭合的 @"… token 只搜索文件。

选择文件会把共享 @path 语法所定义的自然文本保留为隐藏的序列化与剪贴板形式。文件会关闭补全,并显示为文件图标加业务色文件名、无胶囊容器的原子行内引用。目录仍是带文件夹图标的可编辑路径纯文本,并让菜单在尾部斜杠处保持活跃,用户可以继续进入下一层。包含空白的路径使用 @"path with spaces",用户显式打开的引号会继续保留。

选择会话会插入一个原子的行内引用,其隐藏 ref 与剪贴板表示均为宿主返回的规范 @[label](dsh-session:…) mention。可见形式为聊天气泡图标加业务色会话标题,不使用胶囊容器;序列化永远不会根据该标题重建身份。普通发送会通过 session.prompt 携带规范 mention,session-reference 服务会在 agent/pre-step 校验它并捕获模型上下文。

/client 只导出插件主体(applyinject);候选编码保留在注册 effect 内部。

模型体验

间接影响模型体验:路径指引由 @monotykamary/dsh-file-reference-local 提供,准备后的会话快照由 @monotykamary/dsh-session-reference 提供。

KV 缓存影响

浏览候选项不会影响模型。选择文件或会话只会改变新用户消息的后缀,以及紧随该消息、由宿主准备的会话引用上下文;目标会话更早的历史保持不变。

已知限制与暂缓事项

  • 候选失败有意保持静默:Remote 发现调用不可用或失败时,该领域不产生候选行。会话引用准备失败发生在提示词接受后,并会终止该 agent 轮次。
  • 浏览器侧不扫描文件:Web 补全需要挂载宿主 ctx.fileReferences 提供方;浏览器无法回退到自身文件系统。
  • 会话搜索仍仅使用元数据:发现流程通过 ctx.sessionReferenceResolver 筛选 session id、cwd 和以日志为依据的最新标题;不搜索消息主体或完整 transcript(文本记录)。