refactor(auth-storage): cleanup auth.json mentions

- Migrated authentication storage from JSON-based (auth.json) to database-based (agent.db) format across test files and configuration.
- Simplified auth storage discovery in sdk.ts by removing manual path construction and fallback logic in favor of centralized getAgentDbPath() function.
- Removed dbPath instance property from AuthStorage class as database path is now managed centrally.
- Updated environment variable precedence documentation to reflect agent.db instead of auth.json as the lowest priority source.
- Removed OAuth provider section header comments from multiple test files for cleaner test organization.
- Added support for JSON and JSONC configuration file formats without requiring migration to YAML.
This commit is contained in:
can1357
2026-02-05 14:23:49 +01:00
parent e47657c4d1
commit f8950c22b4
33 changed files with 145 additions and 382 deletions
+1 -1
View File
@@ -370,7 +370,7 @@ When disabled, neither case triggers automatic compaction (use `/compact` manual
- Automatically sets environment variables when the application starts
- Only sets variables that aren't already present in `Bun.env`
- Supports any environment variable, not just API keys
- Order of precedence: existing env vars > settings.json env vars > auth.json env vars
- Order of precedence: existing env vars > settings.json env vars > agent.db
> **Note:** Compaction is lossy. The agent loses full conversation access afterward. Size tasks to avoid context limits when possible. For critical context, ask the agent to write a summary to a file, iterate on it until it covers everything, then start a new session with that file. The full session history is preserved in the JSONL file; use `/tree` to revisit any previous point.