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

@anureo/conformance

v0.3.16

Published

Shared conformance suite and scripted fixtures for Anureo SDK adapters and AHP implementations

Readme

@anureo/conformance

The Anureo SDK conformance suites drive the revised AHP v1 client through the public runtime API. The shared suite, runConformance, drives any HarnessAdapter to verify the shared behavioral contract that AHP implies. Passing the shared suite establishes conformance only within that shared acceptance scope. Full adapter conformance also requires the native suite, runNativeConformance, which covers overlap, active close and independent observations, with native evidence supplied by adapter fixtures. Passing a subset does not establish full adapter conformance. See the acceptance plan.

Part of the Anureo SDK workspace. Install with npm install @anureo/conformance.

Running a backend through the suite

Implement a ConformanceFactory — one driver per scenario — and hand it to runConformance:

import { runConformance, createScriptedAdapter, type ConformanceFactory } from '@anureo/conformance'

const factory: ConformanceFactory = (scenario) => ({
  adapter: createScriptedAdapter(),       // your adapter here
  openParams: {
    requestId: 'open', mode: 'new', cwd: process.cwd(),
    binding: { sessionId: 'conformance', adapterId: 'scripted', runtimeConfigId: 'test' },
  },
  expectedText: 'conformance',
})

const report = await runConformance(factory, { timeoutMs: 3000 })
if (!report.passed) {
  for (const entry of report.cases) console.log(entry.scenario, entry.status, entry.message)
}

Each case returns passed, failed, or not-applicable:

  • A scenario is not-applicable when its capability was not declared at initialization (e.g. steer for a backend without input.steer.atomicMatch).
  • A declared capability must actually pass its scenario — a missing fixture is a failure, not a skip. Declaring fork without a working fork is exactly the bug this suite exists to catch.

Scenarios

lifecycle, immediate, identity, approval, userInput, elicitation, dynamicTool, interrupt, steer, fork, revert, history, unknown-item, disconnect, backpressure.

The scenario list is the shared acceptance scope, not a claim that every protocol capability has exhaustive coverage. All four adapters in this workspace (Codex, Claude, ACP, AHP) are validated against the same suite; several adapters also use it as their unit-test backbone.

Exports

| Entry | Contents | |---|---| | @anureo/conformance | runConformance, ConformanceFactory, ConformanceDriver, ConformanceReport, CONFORMANCE_SCENARIOS, plus everything from /fake, /fixtures, and the Claude fake below | | @anureo/conformance/fake | createScriptedAdapter (ScriptedHarnessAdapter), FAKE_CAPABILITIES, FakeAdapterOptions — an in-memory, official-API-shaped adapter that records calls and emits scripted results | | @anureo/conformance/fixtures | Native-wire fixture types: ConformanceFixture, NativeFixtureFrame, WireFlavor (codex / claude / acp / ahp), MethodFixture |

Also included: ScriptedClaudeQuery / createFakeClaudeQuery — a minimal injectable query facade implementing the Claude SDK's structural surface (messages, interrupt, setModel, rewindFiles, supportedModels…), used to drive @anureo/adapter-claude without credentials.

Scripted backends under scripts/

scripts/ contains standalone fake backend processes (fake-acp.ts, fake-ahp.ts, fake-codex.ts, fake-wire.ts) that speak their real native wire protocols over stdio. Conformance tests use these processes to exercise real wire conversations over stdio.

Development

cd packages/conformance
bun run typecheck
bun test src

Documentation