(session: GoalQueueSession)
| 131 | } |
| 132 | |
| 133 | function goalQueuePath(session: GoalQueueSession): string { |
| 134 | const sessionDir = session.summary?.sessionDir; |
| 135 | if (sessionDir === undefined || sessionDir.trim().length === 0) { |
| 136 | throw new Error(`Session ${session.id} does not expose a session directory`); |
| 137 | } |
| 138 | return join(sessionDir, GOAL_QUEUE_FILE); |
| 139 | } |
| 140 | |
| 141 | async function readQueueFile(session: GoalQueueSession): Promise<GoalQueueFile> { |
| 142 | const filePath = goalQueuePath(session); |
no outgoing calls
no test coverage detected