Skip to content

feat: janee overview command + auto-create capability on janee add#142

Merged
rsdouglas merged 2 commits intomainfrom
feat/overview-and-add-defaults
Mar 17, 2026
Merged

feat: janee overview command + auto-create capability on janee add#142
rsdouglas merged 2 commits intomainfrom
feat/overview-and-add-defaults

Conversation

@rsdouglas
Copy link
Copy Markdown
Owner

Continuation of #141 (closed when base branch #140 was merged). Rebased onto main.

Summary

  • janee overview -- One-screen summary showing services, capabilities, per-agent access, and unreachable capabilities. Extracts known agents from allowedAgents and ownership.sharedWith across the config, evaluates access for each. Supports --json.
  • janee add always creates a default capability -- janee add resend --key re_xxx now creates both the service AND a ready-to-use capability in one step. Removes ~80 lines of branching logic. If a capability already exists, output says "Existing capability unchanged."
  • Fix: diagnose access respects cap.access override from feat: per-capability access override (open/restricted) #140.

Example janee overview:

  2 services, 3 capabilities    (defaultAccess: restricted)

  billing-bot: stripe (allowed), serp (open)
  cursor: serp (open)

  Unreachable: slack
  (no known agent can access these)

Test plan

Made with Cursor

- Add `janee overview`: one-screen summary of services, capabilities,
  and per-agent access. Shows unreachable capabilities (restricted
  with no allowedAgents). Supports --json.

- Simplify `janee add`: always creates a default capability (1h TTL,
  auto-approve) alongside the service. No more "Create a capability?"
  prompt — it just happens. Customize with `janee cap edit` afterward.

- Fix `diagnose access` to respect per-capability `access` override.

Made-with: Cursor
… output

Addresses review feedback:
- Unreachable filter now evaluates resolveEffectiveAccess for all known
  agents instead of a simplified check, so ownership-based access is
  correctly considered.
- janee add output is conditional: shows "Added capability" only when
  one was actually created, "Existing capability unchanged" otherwise.
- Add test for ownership-based access not flagged as unreachable.

Made-with: Cursor
@rsdouglas rsdouglas merged commit bbf9a38 into main Mar 17, 2026
1 check passed
@rsdouglas rsdouglas deleted the feat/overview-and-add-defaults branch March 17, 2026 05:33
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