@pinta-ai/types
v0.0.4
Published
Shared type definitions for Pinta AI adapters and log processing server
Readme
@pinta-ai/types
Single source of truth for shared type definitions across the Pinta platform.
Defines the data structures exchanged between adapters (mcp-logger, etc.) and the backend (aware-backend).
Install
npm install @pinta-ai/typesUsage
import type { IngestTypeMap, IngestType, MCPSpan } from '@pinta-ai/types';Core Types
| Type | Description |
|------|-------------|
| IngestTypeMap | Maps ingest.type values to span attribute interfaces |
| IngestType | Union of supported ingest types ('mcp' \| ...) |
| MCPSpan | Span attribute interface for the MCP adapter |
Adding a New Adapter
- Define a span attribute interface in
src/ingest.ts(e.g.,PintaclawSpan) - Add mapping to
IngestTypeMap(e.g.,pintaclaw: PintaclawSpan) - Export from
src/index.ts
Conventions
- Flat key-value structure only (serialized as OTel span attributes)
- Value types:
string | number | boolean | undefined - Every span interface must include an
ingest.typefield (discriminator)
