@scruple/core
v0.3.5
Published
Provider-neutral semantic rule engine and plugin contracts for Scruple.
Maintainers
Readme
@scruple/core
Provider-neutral engine, configuration helpers, and parser, provider, and rule-plugin contracts for Scruple. Rules can collect candidates synchronously from parser facts or asynchronously classify bounded possible targets through an engine-managed provider context.
pnpm add --save-dev @scruple/coreConfiguration and runScruple accept an optional provider-neutral DecisionCache strategy. Cache
hits apply to both collection and final decisions while provider request and token statistics continue
to describe uncached work. Strategies receive the provider ID, so they can use local, remote, tiered,
or provider-routed storage without coupling caching to provider adapters.
Follow the published quickstart, browse the rule registry, compare providers, or write a custom rule.
