mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 12:04:35 +00:00
Add removeRuntimeApiKey to AuthStorage
This commit is contained in:
parent
b5b2ed65d4
commit
1059d39d54
11 changed files with 50 additions and 40 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue