oh-my-opencode 0.1.12 → 0.1.13

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.
@@ -0,0 +1,25 @@
1
+ export declare const COMMENT_CHECKER_CLI_PATH: string | null;
2
+ export interface HookInput {
3
+ session_id: string;
4
+ tool_name: string;
5
+ transcript_path: string;
6
+ cwd: string;
7
+ hook_event_name: string;
8
+ tool_input: {
9
+ file_path?: string;
10
+ content?: string;
11
+ old_string?: string;
12
+ new_string?: string;
13
+ edits?: Array<{
14
+ old_string: string;
15
+ new_string: string;
16
+ }>;
17
+ };
18
+ tool_response?: unknown;
19
+ }
20
+ export interface CheckResult {
21
+ hasComments: boolean;
22
+ message: string;
23
+ }
24
+ export declare function runCommentChecker(input: HookInput): Promise<CheckResult>;
25
+ export declare function isCliAvailable(): boolean;
@@ -15,6 +15,12 @@ export interface LanguageConfig {
15
15
  export interface PendingCall {
16
16
  filePath: string;
17
17
  content?: string;
18
+ oldString?: string;
19
+ newString?: string;
20
+ edits?: Array<{
21
+ old_string: string;
22
+ new_string: string;
23
+ }>;
18
24
  tool: "write" | "edit" | "multiedit";
19
25
  sessionID: string;
20
26
  timestamp: number;