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

@adea-ai/sdk

v4.2.0

Published

Typed client for the Control Plane API with transport, response mapping, OpenAPI baseline, and testing helpers.

Readme

@control-plane/sdk

Typed client for the Control Plane API. Re-exports @adea-ai/contracts and adds the HTTP client, typed Control API operations, and testing helpers so consumers can integrate without hand-rolling transport or response mapping.

What's inside

  • Client — transport and response mapping for the Control API.
  • Operations — the typed catalog of Control API operations.
  • Testing helpers (@adea-ai/sdk/testing) — deterministic doubles for exercising integrations against the contracts.

Install

bun add @adea-ai/sdk

Usage

import { ControlPlaneClient } from '@adea-ai/sdk'

// Testing helpers are a separate subpath so production bundles stay lean:
import { createControlPlaneStub } from '@adea-ai/sdk/testing'

Every method takes an optional second argument { signal }, an AbortSignal combined with the client's timeoutMs. A failure is a ControlPlaneClientError with code, status, retryable and, when the server sent Retry-After, retryAfterMs. A 429, 502, 503 or 504 whose body is not a Control Plane error envelope (a gateway or proxy page) is CONTROL_PLANE_UNAVAILABLE with retryable: true; any other unparseable reply is INVALID_CONTROL_PLANE_RESPONSE.

Device sync compaction has three operations: device-sync.checkpoint reads the latest registered checkpoint, device-sync.register-checkpoint registers an appended checkpoint entry with compare-and-set on the previous one, and device-sync.ack records how far a reader has applied the log.

The package also ships an OpenAPI baseline under openapi/ (see the openapi:check / openapi:generate scripts in the repository).

client.respondToInteraction(command) calls POST /v1/interactions/respond with an interaction.respond command and requires the interaction:respond credential scope. Preserve the scoped idempotency key and payload when retrying. The server retains the first response identity; an accepted acknowledgement means the workflow signal was accepted, not that execution completed. Input values are limited to 8 KiB of UTF-8 JSON.

Some operations are served only by the Local control plane (and pi-host): workspace catalog, credentials, execution accept/validate/cancel, interaction responses, profile, ProjectState and ContextPackage resolution, the Pi durable lead dispatches and model connections. Call them against a Local base URL; managed cloud does not mount those routes and answers 404.

client.getModelSelectionFunding(request) reads the accepted selection and explicit recorded payer at POST /v1/model-connections/selection/funding/get with credential:read. Supply the accepted execution/attempt and selection reference and revision in parameters; the server derives actor, plan and current authority. The strict ready/blocked view carries no credentials and cannot authorize inference. Unconfigured or unavailable authority fails closed. This additive method leaves the six existing model operations and their response schemas intact.

For an unreleased candidate, run bun packages/control-sdk/scripts/check-candidate-consumer.ts <sdk.tgz> <contracts.tgz> from the repository root after building and packing public-scope artifacts. It installs only those exact tarballs and cached dependencies offline in an isolated temporary consumer, disables install scripts, and checks exported types with strict TypeScript and skipLibCheck=false. Zod is a direct SDK dependency because generated public operation declarations reference its types. No registry publication or live inference occurs.

License

Apache-2.0