-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes.ts
More file actions
33 lines (31 loc) · 792 Bytes
/
Copy pathtypes.ts
File metadata and controls
33 lines (31 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Shared type definitions for cc-track
export interface HookInput {
session_id?: string;
transcript_path?: string;
cwd?: string;
hook_event_name?: string;
tool_name?: string;
tool_input?: unknown;
tool_response?: unknown;
tool_use_error?: string;
user_message?: string;
assistant_message?: string;
[key: string]: unknown;
}
export interface HookOutput {
continue?: boolean;
suppressOutput?: boolean;
systemMessage?: string;
error?: string;
success?: boolean;
message?: string;
decision?: 'block' | 'allow' | undefined;
reason?: string;
hookSpecificOutput?: {
hookEventName: string;
additionalContext?: string;
// PreToolUse specific fields
permissionDecision?: 'allow' | 'deny' | 'ask';
permissionDecisionReason?: string;
};
}