(sessionId: string, metadata: Metadata)
| 119 | } |
| 120 | |
| 121 | async function reportSessionStarted(sessionId: string, metadata: Metadata): Promise<void> { |
| 122 | try { |
| 123 | logger.debug(`[START] Reporting session ${sessionId} to runner`) |
| 124 | const result = await notifyRunnerSessionStarted(sessionId, metadata) |
| 125 | if (result?.error) { |
| 126 | logger.debug(`[START] Failed to report to runner (may not be running):`, result.error) |
| 127 | } else { |
| 128 | logger.debug(`[START] Reported session ${sessionId} to runner`) |
| 129 | } |
| 130 | } catch (error) { |
| 131 | logger.debug('[START] Failed to report to runner (may not be running):', error) |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | export async function bootstrapSession(options: SessionBootstrapOptions): Promise<SessionBootstrapResult> { |
| 136 | const workingDirectory = options.workingDirectory ?? getInvokedCwd() |
no test coverage detected