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

@dmsdc-ai/aigentry-ssot

v1.0.0

Published

aigentry ssot — typed Interface Authority (TS contracts + JSON Schema + A2A reference + envelope-in-PTY).

Downloads

0

Readme

@dmsdc-ai/aigentry-ssot

Typed Interface Authority for the aigentry ecosystem. Build-time contract validation, JSON Schema codegen, and the envelope-in-PTY transport utilities.

This package is build-time only — no runtime daemon, no HTTP server, no admission webhook. Consumer repos import types, validate inject payloads in CI, and generate per-language bindings from the published JSON Schemas.

Install

npm install --save-dev @dmsdc-ai/aigentry-ssot

Contract modules

| Module | Purpose | | ------------------------------------- | ---------------------------------------------------------------------------------------- | | @dmsdc-ai/aigentry-ssot/contracts/session | SessionId, SessionContext, Session | | @dmsdc-ai/aigentry-ssot/contracts/lifecycle | LifecycleEvent, LifecycleEnvelope, Hold, Report, CleanupRequest | | @dmsdc-ai/aigentry-ssot/contracts/capability | Capability enum, Role enum, ROLE_CAPABILITY_SUBSET, isSubsetOfRoleDefault() | | @dmsdc-ai/aigentry-ssot/contracts/workspace-host | WorkspaceHost (4-method surface: lookup / close / alive / list_ids) | | @dmsdc-ai/aigentry-ssot/contracts/telemetry-event | TelemetryEvent (NDJSON envelope schema) | | @dmsdc-ai/aigentry-ssot/contracts/handoff | TestReport, EvidenceRequest, EvidenceResponse | | @dmsdc-ai/aigentry-ssot/envelope/pty-envelope | parsePtyEnvelope, serializePtyEnvelope, extractFencedJsonBlocks |

CI lint hook integration (consumer side)

A consumer repo (aigentry-orchestrator, aigentry-telepty, aigentry-dustcraw, …) integrates ssot validation in CI as follows:

  1. Pin the exact version of @dmsdc-ai/aigentry-ssot in devDependencies.

  2. Commit canonical inject fixtures under fixtures/inject/*.json.

  3. Add a PR-time CI job:

    - name: ssot conformance
      run: |
        for f in fixtures/inject/hold/*.json; do
          npx tsx node_modules/@dmsdc-ai/aigentry-ssot/scripts/lint-consumer.ts \
               --schema hold < "$f"
        done

    The payload is piped via stdin to keep the tool side-effect-free with respect to filesystem paths (Snyk SAST hardening per CLAUDE.md At-Inception policy).

The job fails on schema violations. No runtime gate, no daemon, no network calls — pure build-time validation per ADR §1 (lightweight).

Envelope-in-PTY transport

The recommended way to ship structured payloads over telepty inject:

import {
  serializePtyEnvelope,
  parsePtyEnvelope,
} from '@dmsdc-ai/aigentry-ssot/envelope/pty-envelope';

const wire = serializePtyEnvelope(
  { schema_version: '1', kind: 'hold', payload: { phase: 'X', reason: 'Y', needs: 'Z' } },
  { preamble: 'orchestrator: please ACK', trailer: '— α1' },
);

// On the receiver:
const result = parsePtyEnvelope(wire);
if (result.ok) {
  // result.envelope.kind === 'hold'
  // result.envelope.transport === 'json-fenced'
}

Legacy markdown HOLD/REPORT formats still parse via the markdown-fallback transport tag — backward compat per decision #3 option C (2026-05-23).

A2A reference

See docs/a2a-mapping.md for the structural alignment between this package and the A2A protocol.

SemVer

See SEMVER.md. Pre-1.0 the policy is conservative; once 1.0.0 ships, every breaking change requires a MAJOR bump.

Build & test

npm install
npm run typecheck     # tsc --noEmit
npm run build:schemas # regenerate schemas/v1/*.schema.json
npm test              # vitest run