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

Function fireSessionStart

extensions/cli/src/hooks/fireHook.ts:146–160  ·  view source on GitHub ↗
(
  source: SessionStartSource,
  model?: string,
)

Source from the content-addressed store, hash-verified

144}
145
146export async function fireSessionStart(
147 source: SessionStartSource,
148 model?: string,
149): Promise<HookEventResult> {
150 if (!isHookServiceReady()) return NOOP_RESULT;
151
152 const input: SessionStartInput = {
153 ...getCommonFields(),
154 hook_event_name: "SessionStart",
155 source,
156 model,
157 };
158
159 return services.hooks.fireEvent(input);
160}
161
162export async function fireSessionEnd(
163 reason: SessionEndReason,

Callers

nothing calls this directly

Calls 3

isHookServiceReadyFunction · 0.85
getCommonFieldsFunction · 0.85
fireEventMethod · 0.80

Tested by

no test coverage detected