Skip to content

feat(cli): --json on status, branch, users#260

Merged
cvince merged 1 commit into
feat/cli-mcpfrom
feat/cli-json-status-branch-users
Jun 25, 2026
Merged

feat(cli): --json on status, branch, users#260
cvince merged 1 commit into
feat/cli-mcpfrom
feat/cli-json-status-branch-users

Conversation

@cvince

@cvince cvince commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Completes the read-only --json surface the Capy MCP depends on (→ feat/cli-mcp).

  • capy status --json{ projectName, branch, totalSecrets, inSync, localMatchesPinned, remoteMatchesPinned, remoteFailure, diffs }. diffs carry value hashes (sha256 prefix), never plaintext. Gated before the terse/human paths.
  • capy branch --json{ projectName, activeBranch, branches: [{ id, name, isProtected, createdAt, isCurrent }] } (the -D delete path is unaffected).
  • capy users --json{ members: [{ membershipId, userId, email, role, status, joinedAt, projects:[…] }] }; skips the interactive TUI.
  • Registered in both index.ts and index-dev.ts.

Verified live against a project: branch --json and status --json emit clean JSON with zero values. typecheck + build clean.

With info/list (#259), the full Tier-1 read surface (whoami/status/list_vars/branches/members) is now machine-readable on this branch.

@cvince cvince merged commit 2c6b439 into feat/cli-mcp Jun 25, 2026
@cvince cvince deleted the feat/cli-json-status-branch-users branch June 25, 2026 08:22
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