Skip to content

v0.5.0 — smart account selection + WorkflowState fix

Latest

Choose a tag to compare

@rinadelph rinadelph released this 24 Jun 22:17
· 235 commits to main since this release
9e8ccdb

[0.5.0] — 2026-06-24

Added

  • Intelligent account auto-selection by team key. Accounts can now declare
    the team keys they own via teams = ["SWA", "ENG"] (config), the new
    clinear auth add --teams "SWA,ENG" flag, or clinear auth teams <name> "SWA,ENG".
    When a command targets a team — through --team SWA or an identifier like
    SWA-20 — clinear picks the owning account (and its token) automatically,
    with no --account flag or env-var juggling. Resolution order is now:
    --account › team-key ownership › workspace mapping › default › first.
  • clinear auth teams <name> "<keys>" command to set/clear an account's team keys.
  • teams shown in clinear auth accounts output (human + JSON).

Fixed

  • WorkflowState enum no longer crashes on undocumented state types. Teams
    with a workflow state whose type is outside the six documented categories
    (e.g. "duplicate") previously broke clinear team states and
    clinear issue state with a Pydantic validation error. The type field is
    now a smart union (WorkflowStateType | str): known types become the enum,
    unknown types pass through as plain strings.

Changed

  • Agent skill (SKILL.md + skill_content/) rewritten to match reality:
    corrected the multi-account/auth section (removed the dangerous "rewrite to
    [auth]" advice), fixed comment add/comment edit to positional body
    (no --body flag), documented --account and the new team auto-selection.

Tests

  • New offline unit suite tests/test_account_resolution.py (20 tests) covering
    team_key_from_hint, resolve_account precedence, resolve_token, and the
    WorkflowState smart-union.