agent-afk 5.276.5 → 5.276.6

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.
@@ -11,4 +11,4 @@ export interface PatchApplyResult {
11
11
  }>;
12
12
  errors: ValidationError[];
13
13
  }
14
- export declare function applyPatch(changes: PatchFileChange[], fileContents: Map<string, string | null>, resolveBase: string, dryRun: boolean): Promise<PatchApplyResult>;
14
+ export declare function applyPatch(changes: PatchFileChange[], fileContents: Map<string, string | null>, resolveBase: string | undefined, dryRun: boolean): Promise<PatchApplyResult>;
@@ -19,4 +19,4 @@ export interface ValidationResult {
19
19
  fileContents: Map<string, string | null>;
20
20
  }
21
21
  export declare function sha256Hex(content: string): string;
22
- export declare function validatePatchChanges(changes: PatchFileChange[], resolveBase: string, context?: ToolHandlerContext): Promise<ValidationResult>;
22
+ export declare function validatePatchChanges(changes: PatchFileChange[], resolveBase: string | undefined, context?: ToolHandlerContext): Promise<ValidationResult>;
@@ -0,0 +1,4 @@
1
+ export declare function isDrivePath(p: string): boolean;
2
+ export declare function homeAliasSpellings(root: string, rawHome: string): string[];
3
+ export declare function restrictedRootSpellings(root: string, rawHome: string): string[];
4
+ export declare function _resetWin32SpellingsCacheForTests(): void;
@@ -7,4 +7,7 @@ export interface BuildDaemonSessionFactoryOpts {
7
7
  openaiBaseUrl?: string;
8
8
  cwd?: string;
9
9
  }
10
- export declare function buildDaemonSessionFactory(opts: BuildDaemonSessionFactoryOpts): (config: AgentConfig, ownedTraceWriter?: import('../../agent/trace/index.js').TraceWriter) => AgentSession;
10
+ export type DaemonSessionFactory = ((config: AgentConfig, ownedTraceWriter?: import('../../agent/trace/index.js').TraceWriter) => AgentSession) & {
11
+ dispose(): void;
12
+ };
13
+ export declare function buildDaemonSessionFactory(opts: BuildDaemonSessionFactoryOpts): DaemonSessionFactory;