feat(auth): add anthropic api key storage and cli auth

This commit is contained in:
William Valentin
2026-02-14 00:43:12 -08:00
parent 0493660e7d
commit 4bb8c88fbe
7 changed files with 211 additions and 2 deletions
+15 -1
View File
@@ -75,6 +75,20 @@
],
"test_status": "pnpm test:run src/gateway/handlers/services.test.ts src/gateway/handlers/handlers.test.ts + pnpm typecheck passing"
},
"anthropic-auth-cli": {
"status": "completed",
"date": "2026-02-14",
"summary": "Added `flynn anthropic-auth` to securely store an Anthropic API key in ~/.config/flynn/auth.json and wired model client creation to use ANTHROPIC_API_KEY or stored credentials when config omits api_key.",
"files_modified": [
"src/auth/anthropic.ts",
"src/auth/anthropic.test.ts",
"src/auth/index.ts",
"src/cli/anthropic-auth.ts",
"src/cli/index.ts",
"src/daemon/models.ts"
],
"test_status": "pnpm test:run src/auth/anthropic.test.ts + pnpm typecheck passing"
},
"p0-p1-implementation-plan": {
"file": "2026-02-06-p0-p1-implementation-plan.md",
"status": "completed",
@@ -1891,7 +1905,7 @@
},
"overall_progress": {
"total_test_count": 1629,
"total_test_count": 1631,
"all_tests_passing": true,
"p0_completion": "3/3 (100%)",
"p1_completion": "4/4 (100%)",