agent-afk 5.288.3 → 5.289.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.
@@ -1,5 +1,6 @@
1
1
  import type { HarnessHookEvent } from '../hooks.js';
2
2
  export { compileMatcher, CLAUDE_CODE_ALIASES } from './matcher.js';
3
+ export { isPluginHookDisabled } from './disabled-plugin-hooks.js';
3
4
  export interface RawCommandHook {
4
5
  type: 'command';
5
6
  command: string;
@@ -31,6 +32,7 @@ export interface LoadedHooksConfig {
31
32
  allowProjectHooks: boolean;
32
33
  pluginHooksEnabled: boolean;
33
34
  pluginHookEnv: Record<string, string[]>;
35
+ disabledPluginHooks: Record<string, string[]>;
34
36
  sources: string[];
35
37
  warnings: string[];
36
38
  }
@@ -40,6 +42,7 @@ interface SingleFileResult {
40
42
  allowProjectHooks: boolean;
41
43
  enablePluginHooks: boolean;
42
44
  pluginHookEnv: Record<string, string[]>;
45
+ disabledPluginHooks: Record<string, string[]>;
43
46
  sources: string[];
44
47
  warnings: string[];
45
48
  }
@@ -0,0 +1,3 @@
1
+ export declare function parseDisabledPluginHooks(file: Record<string, unknown>, path: string, warnings: string[]): Record<string, string[]>;
2
+ export declare function mergeDisabledPluginHooks(target: Record<string, string[]>, incoming: Record<string, string[]>): void;
3
+ export declare function isPluginHookDisabled(disabledPluginHooks: Record<string, string[]>, pluginName: string, event: string, matcher: string | undefined): boolean;
@@ -19,3 +19,4 @@ export declare function checkout(repo: string, ref: string, opts?: CheckoutOptio
19
19
  export declare function getCommitSha(repo: string, opts?: GitOptions): Promise<string>;
20
20
  export declare function tryRevParse(repo: string, rev: string, opts?: GitOptions): Promise<string | null>;
21
21
  export declare function getDefaultBranch(repo: string, opts?: GitOptions): Promise<string>;
22
+ export declare function trackedChanges(repo: string, opts?: GitOptions): Promise<string[]>;