MCPcopy Create free account
hub / github.com/tiann/hapi / getLocalResumeTarget

Method getLocalResumeTarget

cli/src/api/api.ts:226–239  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

224 }
225
226 async getLocalResumeTarget(sessionId: string): Promise<LocalResumeTarget> {
227 const response = await axios.get(
228 `${configuration.apiUrl}/cli/sessions/${encodeURIComponent(sessionId)}/resume-target`,
229 {
230 headers: this.authHeaders(),
231 timeout: 60_000
232 }
233 )
234 const parsed = LocalResumeTargetResponseSchema.safeParse(response.data)
235 if (!parsed.success) {
236 throw apiValidationError('Invalid /cli/sessions/:id/resume-target response', response)
237 }
238 return parsed.data.target
239 }
240
241 async handoffSessionToLocal(sessionId: string): Promise<void> {
242 const response = await axios.post(

Callers 1

resume.tsFile · 0.80

Calls 3

authHeadersMethod · 0.95
apiValidationErrorFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected