feat: store API key in SecretStorage, add set/sign-out commands

This commit is contained in:
evanp committed 2026-11-06 13:26:34 -05:00
1 parent 713a1c1d75
commit 4eeace6ce3
2 files changed
+170 -82

No files matched your search

+20 -12
View File
@@ -28,8 +28,26 @@
{
"command": "inference-coop-copilot.helloWorld",
"title": "Hello World"
},
{
"command": "inferenceCoop.setKey",
"title": "Inference Coop: Set API Key"
},
{
"command": "inferenceCoop.clearKey",
"title": "Inference Coop: Sign Out"
}
]
],
"configuration": {
"title": "Inference Coop",
"properties": {
"inferenceCoop.baseUrl": {
"type": "string",
"default": "https://gateway.inference.coop/v1",
"description": "Gateway base URL. Leave default unless testing."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
@@ -60,15 +78,5 @@
"overrides": {
"diff": "^8.0.4",
"serialize-javascript": "^7.0.6"
},
"configuration": {
"title": "Inference Coop",
"properties": {
"inferenceCoop.apiKey": {
"type": "string",
"default": "",
"description": "API key from the Inference Cooperative dashboard."
}
}
}
}
}