@tokagent/tokagentos 2.0.18 → 2.0.20
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/package.json
CHANGED
|
@@ -858,8 +858,11 @@ async function renderKeysTable() {
|
|
|
858
858
|
const status = k.revokedAt ? `<span class="outcome-pill outcome-failed">revoked</span>` : `<span class="outcome-pill outcome-success">active</span>`;
|
|
859
859
|
const action = k.revokedAt
|
|
860
860
|
? `<button class="btn btn-danger" type="button" data-delete="${escape(k.id)}" title="Permanently remove this revoked key from the database">Delete</button>`
|
|
861
|
-
: `<button class="btn btn-danger" type="button" data-revoke="${escape(k.id)}">Revoke</button
|
|
862
|
-
|
|
861
|
+
: `<button class="btn btn-danger" type="button" data-revoke="${escape(k.id)}">Revoke</button>`;
|
|
862
|
+
// Note: Delete (hard-delete) is intentionally NOT shown next to Revoke
|
|
863
|
+
// for active keys — Revoke first, then Delete the revoked row. Avoids
|
|
864
|
+
// accidentally wiping an active key (which would lose all in-flight
|
|
865
|
+
// billing for any process still using it).
|
|
863
866
|
tr.innerHTML = `
|
|
864
867
|
<td><code>${escape(k.id)}</code></td>
|
|
865
868
|
<td>${escape(k.name ?? "—")}</td>
|