feat: janee overview command + auto-create capability on janee add#142
Merged
feat: janee overview command + auto-create capability on janee add#142
janee overview command + auto-create capability on janee add#142Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 fromallowedAgentsandownership.sharedWithacross the config, evaluates access for each. Supports--json.janee addalways creates a default capability --janee add resend --key re_xxxnow 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."diagnose accessrespectscap.accessoverride from feat: per-capability access override (open/restricted) #140.Example
janee overview:Test plan
overview(counts, per-agent access, unreachable, ownership-based access, JSON, edge cases)tsc --noEmitcleanjanee overviewcommand + auto-create capability onjanee add#141 by @lucamorettibuildsMade with Cursor