MCPcopy Index your code
hub / github.com/continuedev/continue / firePreCompact

Function firePreCompact

extensions/cli/src/hooks/fireHook.ts:217–231  ·  view source on GitHub ↗
(
  trigger: "manual" | "auto",
  customInstructions: string | null = null,
)

Source from the content-addressed store, hash-verified

215// ---------------------------------------------------------------------------
216
217export 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}

Callers

nothing calls this directly

Calls 3

isHookServiceReadyFunction · 0.85
getCommonFieldsFunction · 0.85
fireEventMethod · 0.80

Tested by

no test coverage detected