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

@unieai/uad-host-directory-picker

v0.1.21

Published

Abstract workspace-directory picking seam (ctx.directoryPicker) for the DeepSeek Harness web GUI host

Readme

@unieai/uad-host-directory-picker

English | 中文

web GUI 宿主的工作区目录选择是一项能力 seam。抽象的 DirectoryPicker 服务(ctx.directoryPicker)是其 Service Definition。该服务只提供一个方法:capability(),它返回一个可辨识联合类型,说明操作者如何选择目录。后端之间的用户交互不同,不只是实现不同:{ kind: 'native', pick(signal) } 在宿主屏幕上打开一个原生 OS 选择器(-native);{ kind: 'browse', list(path?), createDirectory(path, name) } 提供应用内浏览器使用的列举与创建操作,也能服务于无法访问 OS 对话框的远程客户端(-browse)。消费方按 capability().kind 分支;联合类型由可合并扩展的 DirectoryPickerCapabilities 映射派生,新后端通过声明合并在其中加入自己的变体。遇到未知 kind 时,消费方会隐藏目录选择入口,而不是失败。能力对象在服务生命周期内必须保持稳定。每个后端包还提供 browser 入口,在 ui-workspace 的 directory-flow slot 中注册匹配的交互,因此一项组合配置会同时选择宿主能力与 client 流程。需要在运行时选择交互的组合挂载 -auto,它在启动时检查一次宿主情况,并挂载匹配的后端行。

浏览原语失败时会抛出带类型的 DirectoryPickerError(directory-unreadable/directory-exists/directory-create-failed,各自携带出错对象的 path),消费网关将其 1:1 映射为协议错误码。DirectoryEntry 行携带宿主判定的 hidden 标志(POSIX 点前缀约定),展示策略留在客户端;DirectoryListing.crumbs 是从文件系统根开始的祖先链,每个 crumb 都是跳转目标。设计依据、与 ctx.fs 的切分、策略裁决见 目录选择能力 seam Agent Note。

模型体验

无。该 seam 服务于 GUI 宿主的目录选择;这里没有任何内容进入模型请求。

KV Cache 影响

无;该包既不组装也不发送提供方请求。

已知限制与暂缓事项

  • 不支持多根目录——浏览约定每次列举只公开一条祖先链;按部署限定可浏览根(以及在盘符根的上一级枚举 Windows 各盘符根目录)等到出现需要它的消费方再做,见 DirectoryPicker Agent Note。