-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodex-hook.d.ts
More file actions
23 lines (23 loc) · 959 Bytes
/
Copy pathcodex-hook.d.ts
File metadata and controls
23 lines (23 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { type CommentCheckRequest } from "./core.js";
import { type CommentCheckerRunner } from "./runner.js";
export type CodexPostToolUseInput = {
session_id: string;
turn_id: string;
transcript_path: string | null;
cwd: string;
hook_event_name: "PostToolUse";
model: string;
permission_mode: string;
tool_name: string;
tool_input: Record<string, unknown>;
tool_response: unknown;
tool_use_id: string;
};
export type CodexHookOptions = {
run?: CommentCheckerRunner;
};
export declare function extractCodexCommentCheckRequests(input: CodexPostToolUseInput): CommentCheckRequest[];
export declare function runCommentCheckerPostToolUse(input: CodexPostToolUseInput, options?: CodexHookOptions): Promise<string>;
export declare function runCodexHookCli(): Promise<void>;
export declare function parseCodexPostToolUseInput(input: string): CodexPostToolUseInput | undefined;
//# sourceMappingURL=codex-hook.d.ts.map