@kpanks/core
v0.1.0
Published
Praetor core — charter schema, mission lifecycle, Merkle audit chain (SHA-256, EU AI Act Article 12 ready), event bus.
Downloads
34
Maintainers
Readme
@kpanks/core
The runtime substrate every Praetor package builds on. Charter schema,
mission lifecycle, in-memory ActivityBus, structured logger, and the
Merkle audit chain (SHA-256, EU AI Act Article 12 ready).
Install
npm install @kpanks/corePublic surface
import {
ActivityBus,
InMemoryActivityBus,
Logger,
Article12AuditChain,
} from "@kpanks/core";- Charter schema — declarative mission spec a charter author writes.
ActivityBus/InMemoryActivityBus— pub/sub fortool.start,tool.end,chat.user,chat.assistant,artifact.*,milestoneevents. Subscribers throwing don't poison the bus.- Article 12 audit chain — append-only Merkle log with bundle export (manifest + chain.txt + events.csv + bundle.sha256). Built for the Aug 2 2026 EU AI Act enforcement deadline.
- Logger + sinks — structured logger that fans out to stdio + JSONL
- OpenTelemetry sinks.
License
Apache 2.0.
