@lifeaitools/clauth 0.3.9 → 0.3.10

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.
@@ -8,10 +8,15 @@ import http from "http";
8
8
  import fs from "fs";
9
9
  import os from "os";
10
10
  import path from "path";
11
+ import { fileURLToPath } from "url";
11
12
  import { getMachineHash, deriveToken, deriveSeedHash } from "../fingerprint.js";
12
13
  import * as api from "../api.js";
13
14
  import chalk from "chalk";
14
15
 
16
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
17
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "../../package.json"), "utf8"));
18
+ const VERSION = pkg.version;
19
+
15
20
  const PID_FILE = path.join(os.tmpdir(), "clauth-serve.pid");
16
21
  const LOG_FILE = path.join(os.tmpdir(), "clauth-serve.log");
17
22
 
@@ -43,7 +48,7 @@ function dashboardHtml(port, whitelist) {
43
48
  <head>
44
49
  <meta charset="utf-8">
45
50
  <meta name="viewport" content="width=device-width,initial-scale=1">
46
- <title>clauth vault</title>
51
+ <title>clauth vault v${VERSION}</title>
47
52
  <style>
48
53
  *{margin:0;padding:0;box-sizing:border-box}
49
54
  body{background:#0a0f1a;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100vh}
@@ -149,7 +154,7 @@ function dashboardHtml(port, whitelist) {
149
154
  <div id="main-view">
150
155
  <div class="header">
151
156
  <div class="dot" id="dot"></div>
152
- <h1>🔐 clauth vault</h1>
157
+ <h1>🔐 clauth vault <span style="font-size:0.55em;opacity:0.45;font-weight:400">v${VERSION}</span></h1>
153
158
  </div>
154
159
  <div id="error-bar" class="error-bar"></div>
155
160
  <div class="status-bar">
package/cli/index.js CHANGED
@@ -11,7 +11,7 @@ import * as api from "./api.js";
11
11
  import os from "os";
12
12
 
13
13
  const config = new Conf({ projectName: "clauth" });
14
- const VERSION = "0.3.9";
14
+ const VERSION = "0.3.10";
15
15
 
16
16
  // ============================================================
17
17
  // Password prompt helper
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {