@hexmon_tech/acccess-control-compiler
v0.1.0
Published
@hexmon_tech compiler package.
Maintainers
Readme
@hexmon_tech/acccess-control-compiler
Compiles policy DSL into deterministic IR, performs semantic diagnostics, and computes stable hashes.
Install
pnpm add @hexmon_tech/acccess-control-compilerMinimal Usage
import { compilePolicySet } from '@hexmon_tech/acccess-control-compiler';
const { ir, diagnostics } = compilePolicySet(policySet, { mode: 'multi-tenant' });API Overview
- Compile:
compilePolicySet(policy, options) - Diagnostics: conflict/unreachable/multi-tenant scoping/field selector checks
- Conditions:
evaluateCondition+ saferesolveRef - Hashing:
stableStringify,sha256,hashObject
Compatibility
- Node
>=18 - No dynamic code execution
Verify
pnpm --filter @hexmon_tech/acccess-control-compiler typecheck
pnpm --filter @hexmon_tech/acccess-control-compiler test
pnpm --filter @hexmon_tech/acccess-control-compiler build