UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

18 lines • 582 B
export function trackSpeculativeJob(input) { const job = { generation: input.generation, snapshot: input.snapshot, controller: input.controller, promise: input.settled.then(({ result }) => result), failure: input.settled.then(({ error }) => error), armedAtTokens: input.armedAtTokens, completed: false, }; void input.settled.then(({ result }) => { job.completed = true; job.result = result; job.completedAt = Date.now(); }); return job; } //# sourceMappingURL=speculative-job.js.map