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

@seqlane/codex-adapter

v0.1.0

Published

Codex app-server adapter for Seqlane.

Readme

@seqlane/codex-adapter

Internal Codex app-server adapter for Seqlane. This package is public on npm so seqlane can install it. Its exports are not a supported API. It owns the local Codex app-server process, validates its JSONL protocol, and translates completed turns into the internal AgentAdapter contract. The runtime selects it through internal SEQLANE_RUNTIME_ADAPTER_CONFIG and owns its process for each run.

executable is optional. When omitted, the runtime resolves codex from PATH. A configured absolute path is preferred; if it is unavailable, the runtime falls back to PATH and emits a warning. If no candidate is usable, the runtime reports a stable not-found error with remediation guidance. After a candidate is selected, startup, version, and protocol failures are terminal and do not trigger another candidate lookup.

On POSIX, empty PATH entries are ignored. The adapter never treats them as the current directory because it must not discover an executable from an implicit workspace path.

The tested-version list is advisory. An unconfirmed CLI version emits a diagnostic and continues; malformed or incompatible protocol messages fail the adapter.

The transport validates protocol envelopes and the initialize result, drains child stderr, handles split UTF-8 output, bounds outbound and inbound JSONL, and confirms child-process termination with forced shutdown escalation. Turn events are correlated by thread and turn, buffered across the turn/start response, reduced into activity lifecycle events, and bounded by item and payload limits. Turn cancellation and deadlines attempt interruption and require terminal confirmation. Unsupported server requests receive typed JSON- RPC errors. If interruption cannot be confirmed, the run closes its shared connection and rejects further session work, checkpoints, and forks. A timed-out model probe leaves a run-owned connection for the run to close.

Protocol compatibility probe

Run the live probe only when Codex authentication and an external model call are approved:

node --experimental-strip-types scripts/codex-app-server-probe.mjs \
  --workspace "$PWD" \
  --output libs/codex/fixtures/protocol-0.147.0.json

The command checks the local CLI version, initialization, model discovery, typed output, exact checkpoint forks, and interruption of a read-only turn while an approval request is pending. It validates required protocol envelopes and result shapes, bounds pending messages by count and bytes, and warns when the CLI version is not in the tested list. Without --workspace, it uses a disposable temporary workspace. An explicit --workspace selects the caller-provided workspace. It writes only a sanitized observation fixture; generated fixtures are ignored by version control. The normal test suite uses the deterministic fake-server test and does not start Codex.