@lifeaitools/clauth 1.5.2 → 1.5.3

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.
@@ -688,7 +688,7 @@ function dashboardHtml(port, whitelist, isStaged = false) {
688
688
  <div class="lock-card">
689
689
  <div class="lock-icon">🔒</div>
690
690
  <div class="lock-title">clauth vault</div>
691
- <div class="lock-sub">Paste your password to unlock</div>
691
+ <div class="lock-sub" id="lock-sub">Paste your password to unlock</div>
692
692
  <input class="lock-input" id="lock-input" type="password" placeholder="••••••••••••" autocomplete="off">
693
693
  <button class="btn-unlock" id="unlock-btn" onclick="unlock()">Unlock</button>
694
694
  <div class="lock-err" id="lock-err"></div>
@@ -1775,16 +1775,8 @@ let tunnelPollTimer = null;
1775
1775
 
1776
1776
  async function pollTunnel() {
1777
1777
  if (tunnelPollTimer) clearInterval(tunnelPollTimer);
1778
- // Give server 4s grace to run fetchTunnelConfig before showing "not_started" UI
1779
1778
  const r = await apiFetch("/tunnel");
1780
- if (r && r.status !== "not_started") {
1781
- renderTunnelPanel(r.status, r.url, r.error);
1782
- } else {
1783
- renderTunnelPanel("starting", null, null); // show spinner while server initialises
1784
- await new Promise(res => setTimeout(res, 4000));
1785
- const r2 = await apiFetch("/tunnel");
1786
- if (r2) renderTunnelPanel(r2.status, r2.url, r2.error);
1787
- }
1779
+ if (r) renderTunnelPanel(r.status, r.url, r.error);
1788
1780
  // Poll every 3s; slow to 10s once live
1789
1781
  tunnelPollTimer = setInterval(async () => {
1790
1782
  const r = await apiFetch("/tunnel");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {