@peppermint-mcp/wizard 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1169,13 +1169,14 @@ async function removeCommand(options) {
|
|
|
1169
1169
|
const creds = loadCredentials(base);
|
|
1170
1170
|
if (creds && !options.dryRun) {
|
|
1171
1171
|
try {
|
|
1172
|
+
const keyPrefix = creds.api_key.slice(0, 8);
|
|
1172
1173
|
const res = await fetch(`${base}/auth/api-keys`, {
|
|
1173
1174
|
headers: { Authorization: `Bearer ${creds.api_key}` }
|
|
1174
1175
|
});
|
|
1175
1176
|
if (res.ok) {
|
|
1176
1177
|
const keys = await res.json();
|
|
1177
1178
|
for (const key of keys) {
|
|
1178
|
-
if (key.
|
|
1179
|
+
if (key.key_prefix === keyPrefix) {
|
|
1179
1180
|
await fetch(`${base}/auth/api-keys/${key.id}`, {
|
|
1180
1181
|
method: "DELETE",
|
|
1181
1182
|
headers: { Authorization: `Bearer ${creds.api_key}` }
|