agent-afk 5.165.1 → 5.165.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,6 +1,5 @@
1
1
  import { type HookRegistry } from './hooks.js';
2
2
  import { MemoryStore } from './memory/index.js';
3
- import type { GrantManager } from '../cli/slash/commands/allow-dir.js';
4
3
  import type { PermissionMode } from './types/sdk-types.js';
5
4
  import type { TraceSink } from './trace/index.js';
6
5
  import type { LoadedHooksConfig } from './hooks/config-loader.js';
@@ -13,9 +12,6 @@ export interface SubagentCompleteInfo {
13
12
  export interface DefaultHookRegistryResult {
14
13
  registry: HookRegistry;
15
14
  memoryStore: MemoryStore;
16
- pathApprovalGrantRef: {
17
- current: GrantManager | undefined;
18
- };
19
15
  }
20
16
  export declare function _resetWarningForTests(): void;
21
17
  export declare function createDefaultHookRegistry(onSubagentComplete?: (info: SubagentCompleteInfo) => void, surface?: string, memoryStore?: MemoryStore, getPermissionMode?: () => PermissionMode, hookConfig?: LoadedHooksConfig, agentOptions?: {
@@ -1,8 +1,7 @@
1
- import type { GrantManager } from '../../../cli/slash/commands/allow-dir.js';
2
1
  import type { HookContext, HookDecision } from '../../hooks.js';
3
2
  export declare const SENSITIVE_PATH_SIGNAL: RegExp;
4
3
  export interface BashRestrictionHookOptions {
5
- getGrantManager: () => GrantManager | undefined;
4
+ getGrantManager?: () => (import('../../../cli/slash/commands/allow-dir.js').GrantManager | undefined);
6
5
  disableInterpreterGuard?: boolean;
7
6
  forceInterpreterGuard?: boolean;
8
7
  }
@@ -2,9 +2,9 @@ import type { GrantManager } from '../../../cli/slash/commands/allow-dir.js';
2
2
  import type { HookHandler } from '../../hooks.js';
3
3
  export type PathApprovalSurface = 'repl' | 'telegram' | 'web' | 'unknown';
4
4
  export interface PathApprovalHookOptions {
5
- getGrantManager: () => GrantManager | undefined;
6
5
  getCwd: () => string | undefined;
7
6
  surface: PathApprovalSurface;
7
+ getGrantManager?: () => GrantManager | undefined;
8
8
  }
9
9
  export interface PathApprovalHookHandlers {
10
10
  preToolUse: HookHandler;
@@ -11,7 +11,4 @@ export declare function createReplHookRegistry(a: {
11
11
  traceWriter: TraceSink | undefined;
12
12
  }): {
13
13
  hookRegistry: HookRegistry;
14
- pathApprovalGrantRef: {
15
- current: unknown;
16
- };
17
14
  };
@@ -4,9 +4,7 @@ import type { CompletionWriter } from './shared.js';
4
4
  import { TrustedSkillLedger } from '../../trusted-skill-ledger.js';
5
5
  import type { InputSurface } from '../../input/input-surface.js';
6
6
  export declare function wireTrustedSkillEvents(completionWriter: CompletionWriter, ledger: TrustedSkillLedger): () => void;
7
- export declare function wireProviderGrants(startupProvider: ModelProvider, pathApprovalGrantRef: {
8
- current: unknown;
9
- }): void;
7
+ export declare function wireProviderGrants(startupProvider: ModelProvider): void;
10
8
  export declare function createReplInput(): {
11
9
  rl: readline.Interface;
12
10
  inputSurfaceRef: {