MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ha_dialect_event_supported

Function ha_dialect_event_supported

src/cli/hook_augment.c:1121–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121static bool ha_dialect_event_supported(ha_lifecycle_dialect_t dialect, const char *event) {
1122 if (!event) {
1123 return false;
1124 }
1125 if (dialect == HA_DIALECT_HERMES) {
1126 return strcmp(event, "pre_llm_call") == 0;
1127 }
1128 if (dialect == HA_DIALECT_QODER || dialect == HA_DIALECT_QWEN) {
1129 return ha_lifecycle_event_supported(event);
1130 }
1131 if (dialect == HA_DIALECT_FACTORY) {
1132 return strcmp(event, "SessionStart") == 0;
1133 }
1134 if (dialect == HA_DIALECT_GEMINI || dialect == HA_DIALECT_AUGMENT) {
1135 return false;
1136 }
1137 if (dialect == HA_DIALECT_KIMI) {
1138 return strcmp(event, "UserPromptSubmit") == 0;
1139 }
1140 if (dialect == HA_DIALECT_DEVIN) {
1141 return strcmp(event, "SessionStart") == 0 || strcmp(event, "UserPromptSubmit") == 0 ||
1142 strcmp(event, "PostCompaction") == 0;
1143 }
1144 if (dialect == HA_DIALECT_CLINE) {
1145 return strcmp(event, "TaskStart") == 0 || strcmp(event, "TaskResume") == 0 ||
1146 strcmp(event, "UserPromptSubmit") == 0 || strcmp(event, "PreCompact") == 0;
1147 }
1148 return ha_lifecycle_event_supported(event);
1149}
1150
1151/* ── Bash search-command pattern extractor ────────────────────────────────
1152 * Tokenises and walks a Bash tool command to extract a search pattern for

Callers 2

ha_invocation_supportedFunction · 0.85

Calls 1

Tested by

no test coverage detected