SPB Git

spb/khaelor Public

KHAELOR — a terminal-native autonomous engineering agent powered by Anthropic.

TypeScript 82.9% HTML 14.9% CSS 1.1% JavaScript 0.7%
1.4 KB · 59 lines typescript
Raw Blame History
1/**2 * KHAELOR3 * File: src/permissions/index.ts4 * Description: Public barrel for the permissions module (Layer 2 — imports shared and config only).5 *6 * Author: Simon-Pierre Boucher7 * Contact: contact@spboucher.ai8 */910export { COMMAND_CAPABILITIES, mapToolCapabilities } from "./capabilities.js";11export type { Capability, CapabilityMappingContext, CapabilityRequest } from "./capabilities.js";1213export {14  DEFAULT_RULES,15  HARDLINE_RULE,16  combineDecisions,17  evaluate,18  mergeRuleLayers,19  normalizePermissionsSection,20  tagRules,21  wildcardMatch,22} from "./rules.js";23export type { Decision, PermissionAction, PermissionRule, RuleSource } from "./rules.js";2425export {26  ARITY,27  COMPOUND_RISK_NOTE,28  HARDLINE_FLOOR_NOTE,29  OBFUSCATION_RISK_NOTE,30  analyzeBashCommand,31  deobfuscateCommand,32  hardlineMatch,33  lexCommand,34  suggestAlwaysPatterns,35} from "./bash-analysis.js";36export type {37  BashAnalysis,38  BashClassification,39  BashPartAnalysis,40  DeobfuscatedCommand,41  ShellLexResult,42} from "./bash-analysis.js";4344export { NON_INTERACTIVE_FEEDBACK, PermissionService } from "./service.js";45export type {46  GrantPersister,47  PermissionAnswer,48  PermissionAsker,49  PermissionEventInput,50  PermissionOutcome,51  PermissionPrompt,52  PermissionServiceOptions,53  RequestDecision,54  ToolPermissionCheck,55} from "./service.js";5657export { collapseWhitespace, expandHomeWord, isUnderRoot, resolveSubjectPath } from "./paths.js";58export type { PathContext } from "./paths.js";59