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

@polydeukes/adapter-claude-code

v0.3.0

Published

Polydeukes adapter for Claude Code — up-translates PreToolUse hook payloads into the agent-neutral covenant input IR. Alpha.

Readme

@polydeukes/adapter-claude-code

English · 한국어

The boundary where Claude Code's vocabulary is translated away. PreToolUse hook payloads become the agent-neutral covenant input IR before anything reaches the core.

Alpha. Agent and tool literals live here by design — this package exists so they never reach the core, which is how the core's agent-neutrality stays a testable claim rather than a slogan.

What lives here

  • Payload up-translation — a raw PreToolUse payload becomes a CovenantInput (tool calls and subagent spawns). A Task call carrying a subagent type maps to a spawn; a payload that cannot be classified is a translation failure, and failures block (fail-closed) instead of degrading into a guess.
  • Virtual post-state — computes what a file would contain after an Edit/Write/MultiEdit applies, without touching disk. Content-aware covenants judge the proposed result, not the file as it currently is — including sequential multi-edit application and file-creation conventions.
  • File-change evidencecollectFileChanges pairs the disk pre-state with the virtual post-state into union evidence (create when no pre-state exists, modify otherwise) attached to the mutating tool call's own fileChange field — the evidence discipline judgments consume. An unresolvable post-state yields nothing (the real tool rejects the same edit), and evidence is never fabricated for non-mutating calls.
  • Transcript providertranscriptFromJsonl / transcriptFromJsonlFile turn a session JSONL file into a CanonicalTranscript, the TTL witness's real data source: only positively-identified human-typed messages are admitted, so an AI can never synthesize its own witness. It answers findToolCalls too, extracting calls from tool_use blocks — when a call's input is not a flat object the block still yields a call with empty args, because the existence of the call is itself the evidence. A read failure answers undefined rather than an empty transcript — an empty session has said nothing yet and is judged, an unreadable one is no evidence channel at all and is skipped. Either way the valve turns off, never open.
  • Precedent evidence evaluatorevaluatePrecedent is this adapter's own evidence vocabulary for the context-family discipline, the same namespace stance as resolveGitAdapterSettings in the git adapter. It judges subagent (exact spawn-kind equality — a kind is a value, not a pattern) and tool (observed tool names matched as a regular expression), and returns undefined for any key outside its vocabulary — the handshake that tells the compiler this evidence is unjudgeable, so the entry skips instead of judging on a guess. A malformed value is absent evidence, never a throw.
  • Telemetry wiringrunAdapterPath drives the full funnel: raw payload → translation (a failure logs one blocked record and exits 2) → dispatch through an injected seam → funnel completion, so exactly one record lands per call, witnessed rows included. The dispatch seam is injected because this package never imports the covenant package — dependencies stay one-way, through the core only.

See the project repository for the architecture blueprint and design rationale.

License

MIT