@agent-inspect/adapter-sdk
v6.7.3
Published
Adapter authoring toolkit with conformance and privacy helpers
Readme
@agent-inspect/adapter-sdk
Author third-party AgentInspect framework adapters with conformance helpers.
Support level: Beta — see SUPPORT-LEVELS.md.
When to use
- Building a community or internal adapter package
- Validating metadata-only capture and privacy contracts
When not to use
- Application tracing (use
agent-inspector an existing adapter)
Install
npm install @agent-inspect/adapter-sdk agent-inspectExample
import { createAdapterRegistration, runAdapterConformance } from "@agent-inspect/adapter-sdk";
export const registration = createAdapterRegistration({
id: "my-framework",
// ...
});Minimal third-party adapter example
See examples/adapter-sdk/minimal-source-adapter
for a dependency-free fake framework source that registers adapter metadata,
captures a local metadata-only trace, and runs runAdapterConformance.
Custom renderer example
See examples/adapter-sdk/custom-renderer
for a standalone TraceRenderer that renders a metadata-only markdown summary
from a persisted run tree and composes with renderWithSafety.
Custom transform example
See examples/adapter-sdk/custom-transform
for a standalone TraceTransform that normalizes a vendor-specific event shape
into standard persisted-event conventions with warnings for unmapped input.
Privacy
- SDK helpers enforce local-first patterns; adapters must not upload by default
- Use the Adapter SDK privacy checklist to document capture, persistence, redaction, and export-review behavior before publishing or proposing registry inclusion.
API
| Export | Purpose |
| ------ | ------- |
| createAdapterRegistration | Register adapter metadata |
| runAdapterConformance | Conformance test runner |
Docs
Checklist for package authors
- Metadata-only default
- Document peer dependencies
- No network in adapter code path
- Add conformance tests
- Run the privacy checklist and review exported artifacts before sharing
- Use the extension submission template before proposing registry inclusion
Version
Part of the fixed AgentInspect release line. See the npm badge / package manifest for the current version.
License
MIT
