Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [0.3.0] - 2026-02-19

### Added

- Local file-based eligibility cache (`~/.grant/cache/`) with 4-hour default TTL — skips API roundtrip on subsequent runs
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Custom `SCAAccessService` follows SDK conventions:

## Config
- App config: `~/.grant/config.yaml`
- SDK profile: `~/.idsec_profiles/grant.json`
- SDK profile: `~/.idsec_profiles/grant`

## Authentication
- Use the `/grant-login` skill when you need to authenticate to the grant CLI (e.g., before manual testing)
Expand Down
4 changes: 2 additions & 2 deletions cmd/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewConfigureCommand() *cobra.Command {
Long: `Configure grant by providing your CyberArk username and optional Identity URL.

This command creates two configuration files:
- SDK profile at ~/.idsec_profiles/grant.json
- SDK profile at ~/.idsec_profiles/grant
- App config at ~/.grant/config.yaml

The Identity URL is optional — the SDK can auto-discover it from your username.
Expand Down Expand Up @@ -114,7 +114,7 @@ func runConfigure(cmd *cobra.Command, saver profileSaver, tenantURL, username st
home, _ := os.UserHomeDir()
profileDir = filepath.Join(home, ".idsec_profiles")
}
profilePath := filepath.Join(profileDir, "grant.json")
profilePath := filepath.Join(profileDir, "grant")

// Create app config
cfg := &config.Config{
Expand Down
4 changes: 2 additions & 2 deletions cmd/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestConfigureCommand(t *testing.T) {
},
wantContain: []string{
"Profile saved to",
"grant.json",
"grant",
"Config saved to",
"config.yaml",
},
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestConfigureCommand(t *testing.T) {
},
wantContain: []string{
"Profile saved to",
"grant.json",
"grant",
"Config saved to",
"config.yaml",
},
Expand Down