@cybercommand/entitlements (2.0.1)
Published 2026-08-31 01:53:07 +00:00 by cyberbrein
Installation
@cybercommand:registry=npm install @cybercommand/entitlements@2.0.1"@cybercommand/entitlements": "2.0.1"About this package
@cybercommand/entitlements
Shared entitlement and licensing helpers.
This package contains small, reusable logic for feature keys, entitlement snapshots, merge behavior, and client-side interpretation of product limits. It should stay independent from Prisma and from any specific product runtime.
What Belongs Here
- Feature key constants.
- Entitlement snapshot types.
- Merge logic for account, product, environment, and user entitlements.
- Lightweight client helpers that apps can use to check capabilities.
What Does Not Belong Here
- Control-plane database queries.
- Billing provider integrations.
- Tenant-specific business logic.
- UI components.
- Product registry metadata.
Usage
import { mergeEntitlementSnapshots } from '@cybercommand/entitlements';
const effective = mergeEntitlementSnapshots([accountSnapshot, environmentSnapshot]);
Repo Split Role
App repos can consume this package to understand limits granted by the control-plane without depending on the control-plane database or service code.
Dependencies
Dependencies
| ID | Version |
|---|---|
| zod | ^4.4.3 |
Development dependencies
| ID | Version |
|---|---|
| tsx | ^4.23.0 |
| typescript | ^6.0.3 |
Details
2026-08-31 01:53:07 +00:00
Assets (1)
Versions (1)
View all
npm
0
latest
14 KiB
entitlements-2.0.1.tgz
14 KiB
2.0.1
2026-08-31