@kitefrost/core
v1.0.0
Published
Shared runtime core (transport, auth, errors, shared-core resource clients) that every per-pack KiteFrost SDK depends on (PPI-3, D-PPI-SDK-BUNDLING Option A).
Readme
@kitefrost/core
Shared runtime core for the KiteFrost per-pack SDKs (PPI-3, D-PPI-SDK-BUNDLING Option A).
It owns the cross-pack infrastructure surface so each per-pack SDK does not duplicate it:
- HTTP transport
- Auth provider with one-shot 401 refresh
- Typed error hierarchy (
KiteFrostApiErrorand subclasses) - The SHARED_TAGS resource clients (auth, keys, billing, projects, events, context, byok, webhooks, health)
- A lockstep version stamp (
CORE_VERSION) the per-pack SDKs pin
import { KiteFrostCore } from '@kitefrost/core';
const core = new KiteFrostCore({ apiKey: 'sk_live_...' });
console.log(await core.health.check());When a customer installs more than one per-pack SDK, the packs share a single
KiteFrostCore instance, so they share one auth provider and one connection
pool (the Option-A DX win).
