feat(cli): add auth and team commands #668

Closed
freemo wants to merge 1 commit from feature/m7-post-auth into master
Owner

Summary

  • Add agents auth login/logout/status CLI commands for authentication management
  • Add agents team list/use CLI commands for team/org switching
  • Add TokenStore with OS keyring (optional) and encrypted file fallback
  • Add auth_token, active_team, default_namespace settings
  • Wire commands through StubAuthClient/StubServerClient with server-disabled messaging

Test Coverage

  • 19 Behave BDD scenarios (all pass)
  • 9 Robot Framework integration tests
  • ASV benchmarks for all commands + token store operations

ISSUES CLOSED: #340

Closes #340

## Summary - Add `agents auth login/logout/status` CLI commands for authentication management - Add `agents team list/use` CLI commands for team/org switching - Add `TokenStore` with OS keyring (optional) and encrypted file fallback - Add `auth_token`, `active_team`, `default_namespace` settings - Wire commands through `StubAuthClient`/`StubServerClient` with server-disabled messaging ## Test Coverage - 19 Behave BDD scenarios (all pass) - 9 Robot Framework integration tests - ASV benchmarks for all commands + token store operations ISSUES CLOSED: #340 Closes #340
freemo added this to the v3.6.0 milestone 2026-03-10 06:42:11 +00:00
feat(cli): add auth and team commands
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 15s
CI / quality (pull_request) Successful in 17s
CI / security (pull_request) Successful in 34s
CI / typecheck (pull_request) Successful in 36s
CI / unit_tests (pull_request) Successful in 2m54s
CI / integration_tests (pull_request) Successful in 3m15s
CI / docker (pull_request) Successful in 41s
CI / coverage (pull_request) Successful in 5m45s
CI / benchmark-regression (pull_request) Successful in 31m1s
92f7feaa32
Implement auth login/logout/status and team list/use CLI commands
with stubbed responses when server is disabled. Includes token
storage via OS keyring with encrypted file fallback.

Key changes:
- Add agents auth login/logout/status commands
- Add agents team list/use commands
- Add TokenStore with keyring + encrypted file fallback
- Add auth_token, active_team, default_namespace settings
- Wire AuthClient and ServerClient stubs
- Add Behave BDD tests, Robot integration tests, ASV benchmarks

ISSUES CLOSED: #340
freemo self-assigned this 2026-03-11 05:46:43 +00:00
Author
Owner

PM Compliance Update (Day 31):

Fixed by PM:

  • Added Type/Feature label
  • Added assignee (@freemo)
  • Added closing keyword to PR body

Remaining issue: Merge conflict. Please rebase against current develop branch (17 PRs merged Days 30-31).

Priority: M6 work — continue at current pace.

**PM Compliance Update (Day 31)**: Fixed by PM: - Added `Type/Feature` label - Added assignee (@freemo) - Added closing keyword to PR body **Remaining issue**: Merge conflict. Please rebase against current `develop` branch (17 PRs merged Days 30-31). **Priority**: M6 work — continue at current pace.
freemo modified the milestone from v3.6.0 to v3.8.0 2026-03-11 18:14:18 +00:00
Author
Owner

PM Status — Day 32

Status: CONFLICTED — needs rebase. Low priority (M9).

PR: Auth and team CLI commands. M9 (v3.8.0, Server), no deadline. Author: @freemo. 1 comment, 0 reviews.

Notes: Uses StubAuthClient/StubServerClient with server-disabled messaging — appropriate for pre-server implementation. This is future work (M9) and should not be prioritized over M3-M6 items.

Action Required: @freemo — Rebase when convenient. No urgency. Labels: Has Type/Feature. Missing Priority (Low), MoSCoW (Could have), Points (8).

## PM Status — Day 32 **Status**: CONFLICTED — needs rebase. Low priority (M9). **PR**: Auth and team CLI commands. M9 (v3.8.0, Server), no deadline. Author: @freemo. 1 comment, 0 reviews. **Notes**: Uses `StubAuthClient`/`StubServerClient` with server-disabled messaging — appropriate for pre-server implementation. This is future work (M9) and should not be prioritized over M3-M6 items. **Action Required**: **@freemo** — Rebase when convenient. No urgency. Labels: Has Type/Feature. Missing Priority (Low), MoSCoW (Could have), Points (8).
Author
Owner

Rebase Required

@freemo — This PR has merge conflicts with master and cannot be merged in its current state. Please rebase onto the latest master and force-push to resolve the conflicts.

This is one of 7 PRs from you that currently have conflicts (#668, #669, #703, #708, #713, #720, #722). Prioritize rebasing the ones closest to merge-ready first.

## Rebase Required @freemo — This PR has merge conflicts with `master` and cannot be merged in its current state. Please rebase onto the latest `master` and force-push to resolve the conflicts. This is one of 7 PRs from you that currently have conflicts (#668, #669, #703, #708, #713, #720, #722). Prioritize rebasing the ones closest to merge-ready first.
freemo left a comment

PM Notice — Day 34 (2026-03-14): Merge conflict detected

@freemo This PR has merge conflicts with master. M9 work (no deadline), so low urgency. Please rebase when bandwidth allows. PR #669 (cloud resources) has the same conflict.

**PM Notice — Day 34 (2026-03-14): Merge conflict detected** @freemo This PR has merge conflicts with master. M9 work (no deadline), so low urgency. Please rebase when bandwidth allows. PR #669 (cloud resources) has the same conflict.
freemo left a comment

PM Day 36: Auth and team CLI commands. M9 scope (deferred). @freemo author.

PM Day 36: Auth and team CLI commands. M9 scope (deferred). @freemo author.
Author
Owner

This feature is for a later version, so closing it and will do it at the appropriate time.

This feature is for a later version, so closing it and will do it at the appropriate time.
freemo closed this pull request 2026-03-16 22:29:30 +00:00
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
Required
Details
CI / build (pull_request) Successful in 15s
Required
Details
CI / quality (pull_request) Successful in 17s
Required
Details
CI / security (pull_request) Successful in 34s
Required
Details
CI / typecheck (pull_request) Successful in 36s
Required
Details
CI / unit_tests (pull_request) Successful in 2m54s
Required
Details
CI / integration_tests (pull_request) Successful in 3m15s
Required
Details
CI / docker (pull_request) Successful in 41s
Required
Details
CI / coverage (pull_request) Successful in 5m45s
Required
Details
CI / benchmark-regression (pull_request) Successful in 31m1s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
#340 feat(cli): add auth and team commands
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!668
No description provided.