UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

9 lines (8 loc) • 509 B
export const ALLOW_RULE_MEMBERS = Object.freeze(["hook", "deployment", "persisted", "skill", "request"]); export const ALLOW_RULE_SHADOW_REASONS = Object.freeze(["identity_changed", "unbound"]); export const ALLOW_RULE_BINDINGS = Object.freeze(["current", "identity_changed", "unbound"]); export const ALLOW_LIST_GRANTS = Object.freeze(["preapproval", "recipe"]); const ALLOW_LIST_GRANT_SET = new Set(ALLOW_LIST_GRANTS); export function isAllowListGrant(value) { return ALLOW_LIST_GRANT_SET.has(value); }