@goodandready/dsh-key-rotation 0.7.17 → 0.7.19
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/lib/index.js +4 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -257,15 +257,16 @@ export function apply(ctx, config = {}) {
|
|
|
257
257
|
registerConfigBridge(ctx, () => buildRuntime().cloneIds);
|
|
258
258
|
|
|
259
259
|
// Dashboard widget (#117): fixed bottom-right panel that polls /health.
|
|
260
|
-
const DASH_HTML = '<div id="krot-dash" style="position:fixed;top:16px;right:16px;z-index:9999;font:12px/1.4 system-ui;background:var(--dsw-alias-bg-layer-3,#1c1c1e);color:var(--dsw-alias-label-primary,#eee);border:1px solid var(--dsw-alias-border-l2,#333);border-radius:10px;padding:8px 12px;box-shadow:0 2px 8px rgba(0,0,0,.3);max-width:280px;display:
|
|
260
|
+
const DASH_HTML = '<div id="krot-dash" style="position:fixed;top:16px;right:16px;z-index:9999;font:12px/1.4 system-ui;background:var(--dsw-alias-bg-layer-3,#1c1c1e);color:var(--dsw-alias-label-primary,#eee);border:1px solid var(--dsw-alias-border-l2,#333);border-radius:10px;padding:8px 12px;box-shadow:0 2px 8px rgba(0,0,0,.3);max-width:280px;display:block;cursor:grab;user-select:none;touch-action:none"></div>' +
|
|
261
261
|
'<script>' +
|
|
262
262
|
'(function(){' +
|
|
263
|
-
'
|
|
263
|
+
'console.log("[krot-dash] init");' +
|
|
264
|
+
'var el=document.getElementById("krot-dash");if(!el){console.log("[krot-dash] no element");return;}console.log("[krot-dash] el found, parent=",el.parentNode?el.parentNode.tagName:"none");' +
|
|
264
265
|
'if(document.body&&el.parentNode!==document.body){document.body.appendChild(el);}' +
|
|
265
266
|
'var shown=false;' +
|
|
266
267
|
'var saved=null;try{saved=JSON.parse(localStorage.getItem("krot-dash-pos")||"null");}catch(e){}' +
|
|
267
268
|
'if(saved){el.style.left=saved.left+"px";el.style.top=saved.top+"px";el.style.right="auto";}' +
|
|
268
|
-
'function poll(){' +
|
|
269
|
+
'function poll(){console.log("[krot-dash] poll");' +
|
|
269
270
|
'fetch("/dsh-key-rotation/health",{headers:{accept:"application/json"}})' +
|
|
270
271
|
'.then(function(r){return r.ok?r.json():null;})' +
|
|
271
272
|
'.then(function(d){if(!d)return;' +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goodandready/dsh-key-rotation",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.19",
|
|
4
4
|
"description": "Per-provider API key rotation for DeepSeek Harness: a key pool per provider, auto-created clone routes, and switching to the next key on quota/rate-limit errors. Includes a Settings section (Key Rotation) to edit the key pools, cooldown and switch codes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|