Repository navigation
Add core API support for standalone task clients - #212
Merged
Merged
Conversation
# Conflicts: # go.mod # internal/serve/handlers_read.go # internal/serve/handlers_transitions.go # internal/serve/handlers_write.go # internal/serve/response.go
Keep live refreshes and late save responses from replacing drafts, search full task descriptions, recover stale task bookmarks, and update Goldmark with advisory regression coverage.
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.
Standalone task clients need to identify the active td project, detect supported API features, and save changes while agents are editing the same tasks. This adds the core API support used by tdb, whose browser UI is maintained separately.
For example, a client can read an issue's revision and send it in
If-Matchwhen saving. If an agent has changed that issue in the meantime, the API returns409 conflict, preserving the saved change and allowing the client to reconcile its draft. The header is optional for existing clients.Changes
GET /v1/projectfor project identity, session, title limits, and API capabilities. Addbase_dirtotd info --jsonso clients can resolve worktrees and.td-rootthrough td.If-Match.POST /v1/boards/{id}/moveto order tasks by an issue anchor, including boards without explicit positions, while retaining action history.td servehonor context cancellation, close live event streams during shutdown, and remove only its own port file.Validation
0aa2e85: Go CI, documentation CI.make test, focused race tests, Go build,go vet ./..., formatting checks, and Linux lint with golangci-lint v2.13.1.Prepared and reviewed in jubishop/td#1.