@atheory-ai/kitsune-modules-permissions
v0.1.0
Published
Permissions capability module for Kitsune.
Maintainers
Readme
@atheory-ai/kitsune-modules-permissions
Permission-checking capability module for Kitsune.
@atheory-ai/kitsune-modules-permissions adds a runtime command for evaluating permission rules against action, resource, actor, and context input.
Install
pnpm add @atheory-ai/kitsune-modules-permissionsUse
import { createKitRuntime } from '@atheory-ai/kitsune-core'
import { permissionsModule } from '@atheory-ai/kitsune-modules-permissions'
const runtime = createKitRuntime()
await runtime.install(permissionsModule({
rules: [
(input) => input.permission === 'project.delete'
? { allowed: false, reason: 'Deletion is disabled.' }
: false,
],
}))
await runtime.start()Commands
permission.check
Exports
permissionsModulePermissionsToken- Permission module, rule, input, result, and service types
Documentation
See the Kitsune docs at https://kitsune.atheory.ai.
License
Apache-2.0
