agent-afk 5.276.20 → 5.276.21

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.
@@ -6,6 +6,8 @@ export interface ExecuteCommandOptions {
6
6
  sessionId?: string;
7
7
  timeoutMs: number;
8
8
  pluginRoot?: string;
9
+ pluginName?: string;
10
+ pluginHookEnv?: Record<string, string[]>;
9
11
  transcriptPath?: string | null;
10
12
  }
11
13
  export interface CommandExecutorResult {
@@ -17,6 +17,7 @@ export interface ResolvedCommandHook {
17
17
  command: string;
18
18
  timeoutMs: number;
19
19
  pluginRoot?: string;
20
+ pluginName?: string;
20
21
  }
21
22
  export interface ResolvedMatcherGroup {
22
23
  matcher?: string;
@@ -29,6 +30,7 @@ export interface LoadedHooksConfig {
29
30
  userGlobalEnabled: boolean;
30
31
  allowProjectHooks: boolean;
31
32
  pluginHooksEnabled: boolean;
33
+ pluginHookEnv: Record<string, string[]>;
32
34
  sources: string[];
33
35
  warnings: string[];
34
36
  }
@@ -37,13 +39,15 @@ interface SingleFileResult {
37
39
  enableShellHooks: boolean;
38
40
  allowProjectHooks: boolean;
39
41
  enablePluginHooks: boolean;
42
+ pluginHookEnv: Record<string, string[]>;
40
43
  sources: string[];
41
44
  warnings: string[];
42
45
  }
43
- export declare function loadHooksConfigFile(path: string, tier: 'user-global' | 'project-local' | 'plugin', pluginRoot?: string): SingleFileResult;
46
+ export declare function loadHooksConfigFile(path: string, tier: 'user-global' | 'project-local' | 'plugin', pluginRoot?: string, pluginName?: string | null): SingleFileResult;
44
47
  export declare function discoverPluginHooksConfigs(pluginsRoot?: string): Array<{
45
48
  path: string;
46
49
  pluginRoot: string;
50
+ pluginName: string | null;
47
51
  }>;
48
52
  export interface LoadHooksConfigOptions {
49
53
  cwd?: string;
@@ -13,7 +13,7 @@ export type { UpsertVotesOptions } from './store.js';
13
13
  export { readRecord, writeRecord, listRecords, upsertVotes, appendArtifacts } from './store.js';
14
14
  export { createOutcomeSessionEndHook } from './session-end-hook.js';
15
15
  export { createChildAttributionHook } from './child-attribution.js';
16
- export { lfReask, normalizeTokens, jaccardSimilarity, REASK_THRESHOLD, promptFingerprint, FINGERPRINT_MAX_TOKENS } from './lf-reask.js';
16
+ export { lfReask, normalizeTokens, jaccardSimilarity, REASK_THRESHOLD } from './lf-reask.js';
17
17
  export type { ExecFnCi } from './lf-ci.js';
18
18
  export { lfCi, realExecFnCi } from './lf-ci.js';
19
19
  export type { ExecFnFof } from './lf-fof.js';