(schemaPath?: string)
| 2789 | } |
| 2790 | |
| 2791 | async 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 |
no test coverage detected
searching dependent graphs…