agent-afk 5.27.2 → 5.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ export declare const SESSION_GRANTS_MAX_BYTES: number;
2
+ export declare const SESSION_GRANTS_KEEP_TAIL_LINES = 5000;
3
+ export interface CapJsonlOptions {
4
+ maxBytes: number;
5
+ keepTailLines: number;
6
+ }
7
+ export interface CapJsonlResult {
8
+ trimmed: boolean;
9
+ removedLines: number;
10
+ }
11
+ export declare function capJsonlBySize(path: string, { maxBytes, keepTailLines }: CapJsonlOptions): Promise<CapJsonlResult>;
@@ -0,0 +1,4 @@
1
+ import type { HookContext, HookDecision } from './hooks.js';
2
+ export declare const SAFE_DESTRUCT_DETECT_REASON_PREFIX = "safe-destruct observe-only: destructive-command attempt";
3
+ export declare function detectDestructiveCommands(command: string): string[];
4
+ export declare function createSafeDestructDetect(): (context: HookContext) => HookDecision;