@spendctl/core
v0.10.0
Published
Policy engine, budget ledger and approval broker for spendctl.
Maintainers
Readme
@spendctl/core
Policy engine, budget ledger and approval broker behind spendctl.
import { parseConfigText, evaluate, Ledger } from "@spendctl/core";parseConfigText/loadConfig: validatespendctl.yaml(zod) into a normalised policy.evaluate: pure decision function — allow / deny / approve with reasons an LLM can read.Ledger: SQLite ledger onnode:sqliteorbun:sqlite(no native addon) withBEGIN IMMEDIATEbudget reservations, CSV/JSON export.ApprovalBroker: persisted approvals with wait/decide/expire.
Proprietary — see LICENSE. Part of the spendctl sidecar; docs at https://spendctl.dev/docs/.
