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

@lmzhen/dsh-evolution-core

v0.3.74

Published

Shared stores, prompts, signals and lifecycle logic for the dsh-evolution plugin family (community build)

Readme

@deepseek-ai/dsh-evolution-core

Shared pure library for the dsh-evolution plugin family.

Model Experience

Indirect model surface

What the model sees

@deepseek-ai/dsh-evolution-core registers no direct prompt or tool schema itself. Model-visible effects are owned by the packages that consume this service.

Token effect

Zero direct token effect from this package; consumers add any model-visible tokens.

KV Cache effect

Independent of request-prefix construction. This package does not alter the assembled prompt or tool list.

SkillLibrary concurrency model

Skill-library mutations are read-modify-write on one file, so SkillLibrary serializes them in-process with a makeSerialQueue chain: update, patch, restructure, writeSupportFile and — since 0.3.46 — consolidate's target read→merge→commit run their whole read→validate→write under one serial task, so two concurrent mutators on one skill never interleave in this process. Single-file writes (update, patch, writeSupportFile) additionally run the read and the write inside transactIo when a caller injects a transact into the constructor — that is the cross-process lock, so two processes sharing DSH_HOME cannot interleave their RMW on one file. create is INSIDE the serial chain and, when a transact backend is bound, its exists check runs inside the same per-file transact (v18); archive/consolidate are rename-based two-phase paths and stay outside the single-file serial chain.

v18 residual (updated): create, removeSupportFile and setPinned now run on the serial chain (removeSupportFile's delete also goes through the per-file transact), so the remaining single-file residual is the protection TOCTOU (a marker check outside the transact) and the multi-file two-phase paths archive/consolidate/restructure. The race needs a concurrent mutator on the SAME skill file/package; the exposure is acknowledged and the protection check is the next candidate (see the v18 optimization plan, E-5).

When the backend provides transact (nodeEvolutionIo and the io adapter do), the constructor binds it BY DEFAULT since 0.3.27 — the single-file entry points (update, patch, writeSupportFile, and each per-file piece of restructure) run their read→write inside the cross-process lock for every instantiation, so same-file concurrent writes from different processes no longer resolve to last-writer-wins there. An explicit transact argument overrides the default binding. The two-phase paths deliberately stay outside that lock: create's exists probe runs inside the transact when a transact backend is bound (v18), so only a transact-less custom backend can still double-pass the probe across processes; archive/consolidate are rename-based with best-effort rollback (an archive loser's rollback surfaces the raw failure when the source vanished), and restructure's multi-file swap can expose an interleaved tree to a concurrent reader. These residual windows are documented rather than locked — cross-process writers to the SAME skill file should serialize through the single-file paths above.

Known Limitations and Deferred Work

  • This package is a library, not a Cordis row; do not mount it as a plugin.
  • 数值配置已在消费方 Config 面钳制(min 1/各字段域);MemoryStore 内部对 limit <= 0 仍按 unbounded 防御处理——那是库内部防御,不构成"0 = 禁用"的配置语义。