/** * KHAELOR * File: src/permissions/index.ts * Description: Public barrel for the permissions module (Layer 2 — imports shared and config only). * * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai */ export { COMMAND_CAPABILITIES, mapToolCapabilities } from "./capabilities.js"; export type { Capability, CapabilityMappingContext, CapabilityRequest } from "./capabilities.js"; export { DEFAULT_RULES, HARDLINE_RULE, combineDecisions, evaluate, mergeRuleLayers, normalizePermissionsSection, tagRules, wildcardMatch, } from "./rules.js"; export type { Decision, PermissionAction, PermissionRule, RuleSource } from "./rules.js"; export { ARITY, COMPOUND_RISK_NOTE, HARDLINE_FLOOR_NOTE, OBFUSCATION_RISK_NOTE, analyzeBashCommand, deobfuscateCommand, hardlineMatch, lexCommand, suggestAlwaysPatterns, } from "./bash-analysis.js"; export type { BashAnalysis, BashClassification, BashPartAnalysis, DeobfuscatedCommand, ShellLexResult, } from "./bash-analysis.js"; export { NON_INTERACTIVE_FEEDBACK, PermissionService } from "./service.js"; export type { GrantPersister, PermissionAnswer, PermissionAsker, PermissionEventInput, PermissionOutcome, PermissionPrompt, PermissionServiceOptions, RequestDecision, ToolPermissionCheck, } from "./service.js"; export { collapseWhitespace, expandHomeWord, isUnderRoot, resolveSubjectPath } from "./paths.js"; export type { PathContext } from "./paths.js";