( trigger: "manual" | "auto", customInstructions: string | null = null, )
| 215 | // --------------------------------------------------------------------------- |
| 216 | |
| 217 | export async function firePreCompact( |
| 218 | trigger: "manual" | "auto", |
| 219 | customInstructions: string | null = null, |
| 220 | ): Promise<HookEventResult> { |
| 221 | if (!isHookServiceReady()) return NOOP_RESULT; |
| 222 | |
| 223 | const input: PreCompactInput = { |
| 224 | ...getCommonFields(), |
| 225 | hook_event_name: "PreCompact", |
| 226 | trigger, |
| 227 | custom_instructions: customInstructions, |
| 228 | }; |
| 229 | |
| 230 | return services.hooks.fireEvent(input); |
| 231 | } |
nothing calls this directly
no test coverage detected