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-plugin-pwsh-utf8

v0.1.1

Published

DeepSeek Harness plugin: a sandboxed pwsh tool with UTF-8 file-I/O defaults forced, fixing garbled Get-Content/Set-Content on CJK Windows (codepage 936).

Readme

dsh-plugin-pwsh-utf8

DeepSeek Harness 插件:一个强制 UTF-8 文件 I/O 默认值的沙箱化 pwsh 工具。

背景

中文 Windows(系统代码页 936)下,harness 自带的 pwsh 工具只设置了 [Console]::OutputEncoding,而 Get-Content / Set-Content 仍按 ANSI 代码页读写——harness 自己写的 UTF-8 文件(session 日志、workspace.json、代码文件)会被读成乱码(实测复现)。pwsh_utf8 在每个命令前注入:

$PSDefaultParameterValues['Get-Content:Encoding']='UTF8'
$PSDefaultParameterValues['Set-Content:Encoding']='UTF8'
$PSDefaultParameterValues['Add-Content:Encoding']='UTF8'
[Console]::InputEncoding=[System.Text.UTF8Encoding]::new($false)
$OutputEncoding=[System.Text.UTF8Encoding]::new($false)

效果

注册 pwsh_utf8 工具,语义与 pwsh 相同(走 ctx.shell,保留沙箱/审批),但文件读写按 UTF-8 处理。模型在中文 Windows 上读 UTF-8 文件时应优先用这个工具。

安装

dsh plugin --profile web add dsh-plugin-pwsh-utf8

挂载(profile cordis.patch.yml 或 agent preset):

- id: pwsh-utf8
  name: dsh-plugin-pwsh-utf8

边界

  • 只修文件 I/O cmdlet 与控制台编码;不改变 PowerShell 语言模式(CLM 仍由沙箱策略决定)。
  • 不替换内置 pwsh 工具(外部插件无法改写其定义);模型需要选择 pwsh_utf8。若要在 preset 中强制使用,可配合 tools.restrict 禁用内置 pwsh

开发

npm test