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

@argszero/cordis-plugin-read-image-guidance

v0.1.1

Published

Actionable read_image refusal for dsh: when the harness refuses to read an image because the resolved model route does not declare image input, turn that opaque 'switch to an image-capable model' message into concrete config guidance (declare "input: [tex

Readme

@argszero/cordis-plugin-read-image-guidance

Actionable read_image refusal for dsh.

When the harness refuses to read an image because the resolved model route does not declare image input, it currently tells you to switch models — but the model is usually fine. The declaration is what's missing. This plugin turns that opaque refusal into concrete config guidance: declare input: [text, image] on the model's models entry (or extend its catalog entry), instead of sending you on a model-swap hunt.

The gap

read_image's capability gate (assertImageCapableRoute in dsh-tool-fs) reads the declared inputModalities of the resolved route. For custom providers with no catalog entry, the resolution chain (declaredInput ?? base?.input ?? defaultInput) falls back to ['text'], so a vision-capable model is refused with:

cannot read "" as an image: model "" does not declare image input; switch to an image-capable model to read images

The correct fix is input: [text, image] on the model entry — not a model swap. This is the request-① gap of discussion #6049 (the inputModalities family, 6th member: the tool-read-side capability gate).

How it works

It wraps tools/execute (the same around-dispatch seam as the in-tree guard/timeout-policy). When a read_image result carries the exact refusal signature, it rewrites the model-facing message into actionable guidance while preserving the isError flag and the structured error (so retry/replay code paths stay routable). Every other tool result passes through untouched.

Usage

Mount as a dsh bundle plugin (defaults are sane, rewrite on):

dsh plugin --profile web add github:argszero/cordis-plugin-read-image-guidance

Tune via a profile layer:

- set:
    - id: read-image-guidance
      config:
        rewrite: false  # observe-only, no rewrite

Config

| field | type | default | description | |-------|------|---------|-------------| | rewrite | boolean | true | Set false to observe-only (no rewrite). |

Scope

  • Rewrites only the exact read_image refusal marker (does not declare image input; switch to an image-capable model to read images).
  • Never drops the refusal, never touches isError, never touches other tools.
  • No native/OCR dependency in v0.1 (an OCR-fallback form is a separate, heavier candidate; this one is the "declaration detection + actionable error" half).

Compatibility

  • dsh 0.1.5-alpha.1 (verified against packages/fs/tool-fs/src/read-image.ts and packages/core/tools/src/index.ts).
  • peerDependencies: @deepseek-ai/cordis ^4.0.2, @deepseek-ai/dsh-tools >=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0.

A note on the peer range

>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0

Every dsh release published today is a prerelease, and a semver comparator admits prereleases only when they share its own major.minor.patch tuple. That makes two forms wrong, and both have to be avoided:

// Matches nothing at all: 0.1.2-rc.1 sorts below 0.1.2, and every other
// prerelease has a different tuple.  -> ETARGET, the package cannot be installed.
">=0.1.2"

// Only 0.1.2-rc.1: a user on the 0.1.5 line gets ERESOLVE.
">=0.1.2-rc.1 <0.2.0"

// What we ship: one comparator per supported tuple line.
">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0"

The npm latest tag for @deepseek-ai/dsh is on the 0.1.2 line while next/alpha point at 0.1.5, so both comparators are needed. test/peer-range.test.mjs fails if either bad form comes back.

Test

npm test

MIT.