@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
23 lines • 1.21 kB
TypeScript
import { type IdentityMatcher } from "./evaluate.ts";
import { type IdentityInput } from "./identity-decision.ts";
import type { PermissionPresetName, Rule, Ruleset } from "./types.ts";
export interface DecisionOptions {
readonly approveBlanketAsk?: boolean;
readonly presetBound?: boolean;
readonly ruleAliases?: readonly string[] | undefined;
readonly originalPaths?: readonly string[] | undefined;
readonly identity?: IdentityInput | undefined;
}
export interface Decision {
readonly action: Rule["action"];
readonly rules: readonly Rule[];
}
export interface DecisionContext {
readonly staticRuleset: Ruleset;
readonly approved: Ruleset;
readonly preset: PermissionPresetName | undefined;
readonly protectedStorePath: string | undefined;
identityMatcher(permission: string, identity: IdentityInput | undefined): IdentityMatcher | undefined;
}
export declare function decideTarget(context: DecisionContext, permission: string, target: string | readonly string[], options: DecisionOptions, approvedTarget?: string | readonly string[], preserveAncestry?: boolean, canonicalCase?: (value: string) => string): Decision;
//# sourceMappingURL=decide-target.d.ts.map