agent-afk 5.31.1 → 5.31.2

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.
@@ -1,8 +1,8 @@
1
1
  import type { ToolHandlerContext } from '../types.js';
2
2
  export declare function realpathSafe(p: string): string;
3
3
  export declare function _resetRootRealpathCacheForTests(): void;
4
- export declare function resolveAndContain(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write'): string;
5
- export declare function wouldBeRestricted(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write'): {
4
+ export declare function resolveAndContain(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): string;
5
+ export declare function wouldBeRestricted(inputPath: string, context: ToolHandlerContext | undefined, mode?: 'read' | 'write', fallbackBase?: string): {
6
6
  restricted: boolean;
7
7
  resolved: string;
8
8
  roots: string[];
@@ -1,2 +1,3 @@
1
1
  import type { ToolHandler } from '../types.js';
2
+ export declare function createEditFileHandler(cwd?: string): ToolHandler;
2
3
  export declare const editFileHandler: ToolHandler;
@@ -1,2 +1,3 @@
1
1
  import type { ToolHandler } from '../types.js';
2
+ export declare function createListDirectoryHandler(cwd?: string): ToolHandler;
2
3
  export declare const listDirectoryHandler: ToolHandler;
@@ -1,2 +1,3 @@
1
1
  import type { ToolHandler } from '../types.js';
2
+ export declare function createReadFileHandler(cwd?: string): ToolHandler;
2
3
  export declare const readFileHandler: ToolHandler;
@@ -1,2 +1,3 @@
1
1
  import type { ToolHandler } from '../types.js';
2
+ export declare function createWriteFileHandler(cwd?: string): ToolHandler;
2
3
  export declare const writeFileHandler: ToolHandler;