Module common

Module common 

Source
Expand description

Common helper functions for framework adapters.

This module provides shared logic used by multiple framework adapters, reducing code duplication across Claude, Gemini, and Codex adapters.

Structs§

ParsedHookInputBuilder
Builder for extracting fields from JSON into ParsedHookInput.

Functions§

get_first_array_element
Extract the first array element from a JSON path as a string.
is_framework_installed
Check if a framework is installed on the system.
is_mi6_command
Check if a command string is an mi6 hook command.
merge_json_hooks
Merge generated hooks into existing JSON settings, preserving user hooks.
remove_json_hooks
Remove mi6 hooks from JSON settings.