Skip to content
Open
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
7 changes: 6 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ CLI (main.rs, cli/) → Commands (commands/) → DB queries (db/) → SQLite
- **cli/**: Clap derive definitions and `RunContext` (output mode)
- **commands/**: Dispatch to db/ queries or api/ calls, select output formatter
- **api/**: Granola API client and authentication
- `auth.rs`: Reads auth token from Granola's `supabase.json` config
- `auth.rs`: Token resolution order (`--token`/`GRANS_TOKEN`, stored credentials, local store)
- `credentials.rs`: The `GranolaCredentials` type (refresh token, access token, expiry)
- `credential_store.rs`: Where they live: platform keychain, falling back to a `0600` `auth.toml`
- `granola_auth.rs`: Granola PKCE login and token refresh
- `local_store.rs`: Reads the token Granola's desktop app stored (legacy fallback)
- `identity.rs`: Client version/platform reported to Granola (`GRANS_GRANOLA_VERSION`)
- `client.rs`: HTTP client for Granola API endpoints
- `types.rs`: API request/response wrappers (domain types live in `models.rs`)
- **db/**: SQLite queries, FTS5 search, upsert logic
Expand Down
Loading
Loading