@onenomad/przm-cortex-adapter-sdk
v0.7.0
Published
Base classes and helpers for building Cortex source adapters.
Readme
@onenomad/cortex-adapter-sdk
Shared building blocks for source adapter packages. Use these so every adapter handles retries, rate limits, idempotency, and classification the same way.
Exports:
BaseAdapter— abstract base class with lifecycle scaffoldingwithRetry— exponential backoff helperrateLimiter— token-bucket limiter for outbound API callscomputeSourceId— stable id helper for content-hash-based dedupLLMClassifier— default project classifier using LLM with projects.yamlRuleClassifier— for adapters that have deterministic project mappings
Stubs in this first cut — signatures with TODO bodies. Will be filled out as real adapters need them (Phase 4+ for Loom, Phase 5 for Confluence).
