Add removeRuntimeApiKey to AuthStorage

This commit is contained in:
Mario Zechner 2025-12-25 03:57:20 +01:00
parent b5b2ed65d4
commit 1059d39d54
11 changed files with 50 additions and 40 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@mariozechner/pi-coding-agent",
"version": "0.27.9",
"version": "0.28.0",
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
"type": "module",
"piConfig": {
@ -38,9 +38,9 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@mariozechner/pi-agent-core": "^0.27.9",
"@mariozechner/pi-ai": "^0.27.9",
"@mariozechner/pi-tui": "^0.27.9",
"@mariozechner/pi-agent-core": "^0.28.0",
"@mariozechner/pi-ai": "^0.28.0",
"@mariozechner/pi-tui": "^0.28.0",
"chalk": "^5.5.0",
"cli-highlight": "^2.1.11",
"diff": "^8.0.2",

View file

@ -49,6 +49,13 @@ export class AuthStorage {
this.runtimeOverrides.set(provider, apiKey);
}
/**
* Remove a runtime API key override.
*/
removeRuntimeApiKey(provider: string): void {
this.runtimeOverrides.delete(provider);
}
/**
* Set a fallback resolver for API keys not found in auth.json or env vars.
* Used for custom provider keys from models.json.