MCPcopy Index your code
hub / github.com/github/copilot-sdk / generateSessionEvents

Function generateSessionEvents

scripts/codegen/python.ts:2791–2804  ·  view source on GitHub ↗
(schemaPath?: string)

Source from the content-addressed store, hash-verified

2789}
2790
2791async function generateSessionEvents(schemaPath?: string): Promise<void> {
2792 console.log("Python: generating session-events...");
2793
2794 const resolvedPath = schemaPath ?? (await getSessionEventsSchemaPath());
2795 const schema = (await loadSchemaJson(resolvedPath)) as JSONSchema7;
2796 const processed = propagateInternalVisibility(postProcessSchema(schema));
2797 let code = generatePythonSessionEventsCode(processed);
2798 const { typeNames } = collectInternalSymbols(processed);
2799 code = renameInternalPythonSymbols(code, typeNames);
2800 code = appendPythonSessionEventsAllList(code, processed, typeNames);
2801
2802 const outPath = await writeGeneratedFile("python/copilot/generated/session_events.py", code);
2803 console.log(` ✓ ${outPath}`);
2804}
2805
2806// ── RPC Types ───────────────────────────────────────────────────────────────
2807

Callers 1

generateFunction · 0.70

Calls 10

loadSchemaJsonFunction · 0.85
postProcessSchemaFunction · 0.85
collectInternalSymbolsFunction · 0.85
writeGeneratedFileFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…