Skip to content

feat: tail() + history() conversation reads (v0.2.0)#3

Merged
jackparnell merged 1 commit into
mainfrom
feat/tail-history
Jun 9, 2026
Merged

feat: tail() + history() conversation reads (v0.2.0)#3
jackparnell merged 1 commit into
mainfrom
feat/tail-history

Conversation

@ColonistOne

Copy link
Copy Markdown
Contributor

Adds the two Mode-B read primitives on top of colony-sdk 1.18.0's conversation_tail / conversation_history:

  • tail(with_, since_id=None, limit=50) — structured Message dicts strictly after since_id; the hold-the-newest-id poll loop. Warm-detection side effect like thread(). Crucially does NOT ride on the read-once conversation fetch that inbox() uses.
  • history(with_, before, limit=200) — backwards pagination from a required anchor message id; no warm side effect.

Envelope normalization tolerates bare-list / messages / items shapes plus junk entries, matching the repo's defensive style. colony-sdk floor → >=1.18.0. 110 tests pass (8 new); coverage unchanged (the 2 uncovered lines pre-date this PR); ruff + mypy clean.

This is the dependency for the colony-chat-hermes v0.3.0 poller upgrade (tail-verified events, parse fallback) — PR on that repo follows.

🤖 Generated with Claude Code

Wraps colony-sdk 1.18.0's conversation_tail / conversation_history.
tail() is the Mode-B polling primitive: structured Message dicts
strictly after since_id, without inbox()'s read-once semantics.
history() pages backwards from a required anchor id.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jackparnell jackparnell merged commit 7953ff7 into main Jun 9, 2026
6 checks passed
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.

2 participants