Skip to content

[codex] add state query helpers#8

Open
pdurlej wants to merge 1 commit into
arthursoares:mainfrom
pdurlej:codex/add-state-query-parity
Open

[codex] add state query helpers#8
pdurlej wants to merge 1 commit into
arthursoares:mainfrom
pdurlej:codex/add-state-query-parity

Conversation

@pdurlej

@pdurlej pdurlej commented May 19, 2026

Copy link
Copy Markdown

Summary

  • add state query helpers for Anytime, Someday, Upcoming, headings, heading children, tags, and text search
  • switch Today range calculation to local-day boundaries instead of duration truncation
  • add regression coverage for the new query helpers and QueryOpts filtering
  • update README state-query examples to match the implemented API

Context

The README already advertised TasksInAnytime, but sync.State only exposed Inbox, Today, Project, and Area task queries. These helpers make the persistent sync state more usable for clients that need Things-style views, including OpenClaw-style integrations.

SearchTasks is intentionally a simple SQLite LIKE search over title and note. It is not a full-text index.

Validation

  • go test ./sync -run TestStateQueries -count=1
  • go test ./...

@pdurlej pdurlej marked this pull request as ready for review May 19, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant