@lifeaitools/clauth 1.3.0 → 1.3.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.
@@ -116,7 +116,7 @@ function dashboardHtml(port, whitelist, isStaged = false) {
116
116
  <head>
117
117
  <meta charset="utf-8">
118
118
  <meta name="viewport" content="width=device-width,initial-scale=1">
119
- <title>clauth vault v${VERSION}</title>
119
+ <title>clauth vault v${VERSION}${isStaged ? " (STAGED)" : ""}</title>
120
120
  <style>
121
121
  *{margin:0;padding:0;box-sizing:border-box}
122
122
  body{background:#0a0f1a;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;min-height:100vh}
@@ -3630,6 +3630,9 @@ async function actionStart(opts) {
3630
3630
 
3631
3631
  // If we're the daemon child, run the server directly
3632
3632
  if (process.env.__CLAUTH_DAEMON === "1") {
3633
+ // Set process title for task manager visibility
3634
+ process.title = isStaged ? `clauth-staged (port ${port})` : `clauth (port ${port})`;
3635
+
3633
3636
  // Verify password only if one was provided at start (optional — browser can unlock later)
3634
3637
  if (password) {
3635
3638
  try {
@@ -4561,8 +4564,11 @@ async function installWindows(pw, tunnelHostname, execSync) {
4561
4564
 
4562
4565
  // Method 1: HKCU\Run registry key (no elevation needed)
4563
4566
  try {
4567
+ const regExe = `${process.env.SystemRoot || "C:\\\\Windows"}\\\\System32\\\\reg.exe`;
4568
+ // Use single-backslash path for reg key (reg.exe expects it)
4569
+ const regKey = "HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run";
4564
4570
  execSync(
4565
- `reg add "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run" /v "${TASK_NAME}" /t REG_SZ /d "${regValue}" /f`,
4571
+ `${regExe} add "${regKey}" /v "${TASK_NAME}" /t REG_SZ /d "${regValue}" /f`,
4566
4572
  { encoding: "utf8", stdio: "pipe" }
4567
4573
  );
4568
4574
  spinner2.succeed(chalk.green(`Registry auto-start registered (HKCU\\Run)`));
@@ -4831,7 +4837,8 @@ async function uninstallWindows(execSync) {
4831
4837
 
4832
4838
  // Remove HKCU\Run registry key
4833
4839
  try {
4834
- execSync(`reg delete "HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run" /v "${TASK_NAME}" /f`, { encoding: "utf8", stdio: "pipe" });
4840
+ const regExe = `${process.env.SystemRoot || "C:\\\\Windows"}\\\\System32\\\\reg.exe`;
4841
+ execSync(`${regExe} delete "HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run" /v "${TASK_NAME}" /f`, { encoding: "utf8", stdio: "pipe" });
4835
4842
  console.log(chalk.green(` Removed Registry auto-start: ${TASK_NAME}`));
4836
4843
  } catch { console.log(chalk.gray(` Registry key not found (already removed): ${TASK_NAME}`)); }
4837
4844
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifeaitools/clauth",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Hardware-bound credential vault for the LIFEAI infrastructure stack",
5
5
  "type": "module",
6
6
  "bin": {