JSPM

@loop-engine/guards

1.0.0-rc.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 194
  • Score
    100M100P100Q83853F
  • License Apache-2.0

Approval, confidence, and policy guard framework.

Package Exports

  • @loop-engine/guards

Readme

@loop-engine/guards

npm Apache-2.0 Loop Engine

Built-in guard implementations and guard evaluation pipeline for Loop Engine.

Install

npm install @loop-engine/guards

Quick Start

import { GuardRegistry, evaluateGuards } from "@loop-engine/guards";

const guards = new GuardRegistry();
guards.registerBuiltIns();

const summary = await evaluateGuards(
  [{ guardId: "human-only" as never, severity: "hard", evaluatedBy: "runtime", description: "Human only" }],
  { actor: { type: "human", id: "manager@acme.com" as never }, loopId: "expense.approval" as never, aggregateId: "EXP-1" as never, fromState: "pending" as never, toState: "approved" as never, signal: "approve" as never },
  guards
);

https://loopengine.io/docs/packages/guards

License

Apache-2.0 © Better Data, Inc.