(sessionID: string, targetSessionID?: string)
| 56 | } |
| 57 | |
| 58 | export async function resolveChild(sessionID: string, targetSessionID?: string) { |
| 59 | const session = await Session.get(sessionID) |
| 60 | if (isChild(session)) return session |
| 61 | if (isParent(session) && targetSessionID) { |
| 62 | const child = await Session.get(targetSessionID) |
| 63 | if (isChild(child) && child.benchmark.parentID === session.id) return child |
| 64 | } |
| 65 | return undefined |
| 66 | } |
| 67 | |
| 68 | export async function start(input: { |
| 69 | sessionID: string |