Repository navigation
feat: add call task pull, claim and attempt sync - #71
Draft
wavekat-eason wants to merge 1 commit into
Draft
wavekat-eason wants to merge 1 commit into
wavekat-eason wants to merge 1 commit into
Conversation
Desktop wire for call tasks (wavekat-voice docs/71): pull open batches with their tasks, claim/release a task before dialing (a 409 comes back as TaskClaim::Taken / NotOpen rather than an error), and push attempts through the sync contract as VoiceTaskAttempts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X42YmhgZ5dYJRZU9Bvmbjp
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The desktop side of the wire for call tasks (wavekat-voice
docs/71-call-tasks.md). Platform routes: wavekat/wavekat-platform#417 (migration), plus the API PR that follows it.Client::active_task_batches:GET /api/voice/task-batches/active, cursor by id, the same shape as published flows. Each batch carries its outcome fields and all its tasks.Client::claim_task/release_task: lease a task before dialing. A 409 is an answer rather than an error, so it comes back asTaskClaim::TakenorTaskClaim::NotOpen.VoiceTaskAttempts: aSyncEndpointforPOST /api/voice/task-attempts/sync, with aVoiceTaskAttemptRecordthat carries the usual envelope.The types live in a new
voice_tasks.rsmodule and are re-exported from the crate root. A doctest guards the re-exports.Release order: merge after the platform API PR is deployed. Then release-plz cuts the release, and wavekat-voice and
wkbump to it.Test plan
make cipasses: fmt, clippy-D warnings, 130 unit tests and the doctests.🤖 Generated with Claude Code
https://claude.ai/code/session_01X42YmhgZ5dYJRZU9Bvmbjp