Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go
657 B
Raw Blame
/**
 * Public API for the permissions module.
 *
 * Exports only what the views currently consume. The full pure-rule set lives
 * in `./rules` and is available to tests and future surfaces directly. Adding
 * a new rule to the public API should follow the same minimum-surface pattern
 * — only export when there's a caller.
 */
export type {
  Decision,
  DecisionReason,
  PermissionContext,
} from "./types";

export { canAssignAgentToIssue, canEditAgent, canPurgeRunLog } from "./rules";

export {
  useAgentPermissions,
  useSkillPermissions,
} from "./use-resource-permissions";
export { useCurrentMember, useIsGuest } from "./use-current-member";