Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@h3y6e/gunshi-plugin-usage

Latest version: v0.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: h3y6e
0 Stars
0 Forks
5 Versions
698 Downloads
TypeScript Repo language

Scan summary

@h3y6e/gunshi-plugin-usage was last scanned on 27 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 698 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 27 Nov 2026 No rules fired
0.2.0 18 Nov 2026 No rules fired
0.1.2 23 Oct 2026 No rules fired
0.1.1 10 Oct 2026 Not shown
0.0.0 9 Oct 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@h3y6e/gunshi-plugin-usage

npm

Export a usage spec from a gunshi CLI.

Use the spec to generate shell completions, Markdown documentation, man pages, and SDKs with the usage CLI.

Installation

npm install @h3y6e/gunshi-plugin-usage

Requires gunshi 1.0.0-rc.13 or later.

Usage

import usage from "@h3y6e/gunshi-plugin-usage";
import { cli, define } from "gunshi";

const command = define({
  name: "greet",
  args: {
    name: { type: "positional", description: "Who to greet" },
  },
  run: (ctx) => console.log(`Hello, ${ctx.values.name}!`),
});

await cli(process.argv.slice(2), command, {
  name: "greet",
  version: "1.0.0",
  description: "Greet someone",
  plugins: [usage()],
});

With the CLI and the usage CLI on PATH:

greet usage > greet.usage.kdl
usage generate markdown --file greet.usage.kdl --out-file reference.md
usage generate completion zsh greet --usage-cmd "greet usage" --install

Features

Spec export

usage() adds a hidden usage command that prints the spec. The spec includes the global options and commands that other plugins add.

Environment variables

With @h3y6e/gunshi-plugin-env, a flag with env names its variable in the spec.

Metadata

What gunshi does not know goes on the definitions:

import usage, { withUsage } from "@h3y6e/gunshi-plugin-usage";
import { define } from "gunshi";

const write = { dryRun: { type: "boolean", description: "Change nothing" } } as const;

const add = withUsage(
  define({
    name: "add",
    toKebab: true,
    args: {
      file: { type: "positional", complete: "file:json" },
      budget: { type: "number", metavar: "tokens" },
      source: { type: "string", choices: ["cli", "chat"] },
      ...write,
    },
    run: () => {},
  }),
  {
    effect: "write",
    longDescription: "Shown under --help",
    outputs: { json: { mediaType: "application/json", framing: "json", select: "json" } },
    exitCodes: { 2: "misuse" },
  },
);

usage({ name: "App", description: "Print the spec", flagsets: { write }, declaredOnly: true });
  • withUsage(command, meta) gives a command effect, long_help, subcommand_required, output, and exit_code. On the entry command, longDescription, outputs, and exitCodes apply to the whole CLI.
  • complete on an argument sets how shells complete its value.
  • metavar names a flag's value.
  • choices on a type other than enum become choices strict=#false, since gunshi does not check them.
  • flagsets in the options turn the flags of a set into use in every command whose args hold all of the set's schemas, as spread from the same object.
  • declaredOnly states only what the definitions declare: the spec leaves out gunshi's --help and --version, extra positionals, and --flag=true, and states global options once with global=#true. Use it to compare the spec with a hand-written one by usage diff.

Limitations

  • gunshi and usage read a few command lines differently, and the spec cannot express the difference. For example, with -a taking a value and -d a boolean, usage reads -ad p as -a p -d, while gunshi fails because -a has no value. When a flag that takes a value is followed by an undeclared flag, gunshi reports the missing value and usage the unknown flag.
  • Without declaredOnly, the spec assumes gunshi's strict mode. Without strict, gunshi drops an unknown flag together with the word after it, which the spec cannot express.
  • The spec does not express aliases, deprecated, passthrough, or strictPositionals yet: an alias is missing from completions, a passthrough command still gets unknown_flags "error", and extra positionals stay accepted under strictPositionals.
  • Examples given as a function are left out of the spec. The function needs the context of its own command, which the usage command does not have.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @h3y6e/gunshi-plugin-usage

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229