UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

14 lines • 952 B
import type { PermissionPresetName } from "./types.ts"; /** * The preset the permission system enforces for one session, read through `pi.getPermissionPreset()`. * Keyed by the session's `SessionManager` like the dispatch authorizers: each extension load * registers its own reader, and retiring an older load never removes a newer one. */ type PresetReader = () => PermissionPresetName | undefined; export declare function registerPermissionPresetReader(session: object, read: PresetReader): () => void; /** `undefined` when no permission system runs for the session, or its setup failed. */ export declare function readPermissionPreset(session: object): PermissionPresetName | undefined; export declare function registerDecisionPresetOverride(session: object, read: PresetReader): void; export declare function readDecisionPresetOverride(session: object): PermissionPresetName | undefined; export {}; //# sourceMappingURL=preset-registry.d.ts.map