openclaw-utils 0.3.2 → 0.3.5

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.
Files changed (72) hide show
  1. package/README.aiclaw.md +10 -7
  2. package/README.aliclaw.md +10 -7
  3. package/README.alpha-claw.md +25 -0
  4. package/README.alphaclaw.md +25 -0
  5. package/README.amazonclaw.md +16 -3
  6. package/README.amzclaw.md +16 -3
  7. package/README.anthropicclaw.md +16 -3
  8. package/README.appleclaw.md +16 -3
  9. package/README.autoopenclaw.md +10 -7
  10. package/README.awsclaw.md +16 -3
  11. package/README.bdclaw.md +16 -3
  12. package/README.blclaw.md +16 -3
  13. package/README.bytclaw.md +16 -3
  14. package/README.claw-open.md +10 -7
  15. package/README.clawjs.md +10 -7
  16. package/README.coclaw.md +16 -3
  17. package/README.copaw.md +16 -3
  18. package/README.ddclaw.md +16 -3
  19. package/README.duclaw.md +16 -3
  20. package/README.dyclaw.md +16 -3
  21. package/README.easyclaw.md +16 -3
  22. package/README.fastclaw.md +10 -7
  23. package/README.fbclaw.md +16 -3
  24. package/README.googleclaw.md +16 -3
  25. package/README.hello-claw.md +25 -0
  26. package/README.hwclaw.md +16 -3
  27. package/README.jdclaw.md +16 -3
  28. package/README.kimiclaw.md +16 -3
  29. package/README.ksclaw.md +16 -3
  30. package/README.maxclaw.md +16 -3
  31. package/README.md +11 -225
  32. package/README.md.bak +27 -194
  33. package/README.megaclaw.md +10 -7
  34. package/README.metaclaw.md +16 -3
  35. package/README.miclaw.md +16 -3
  36. package/README.msclaw.md +16 -3
  37. package/README.mtclaw.md +16 -3
  38. package/README.nflxclaw.md +16 -3
  39. package/README.nvdaclaw.md +16 -3
  40. package/README.open-claw.md +10 -7
  41. package/README.openaiclaw.md +16 -3
  42. package/README.openclaw-cli.md +11 -225
  43. package/README.openclaw-daemon.md +11 -225
  44. package/README.openclaw-gateway.md +11 -225
  45. package/README.openclaw-health.md +11 -225
  46. package/README.openclaw-helper.md +11 -225
  47. package/README.openclaw-install.md +11 -225
  48. package/README.openclaw-manage.md +11 -225
  49. package/README.openclaw-monitor.md +11 -225
  50. package/README.openclaw-run.md +11 -225
  51. package/README.openclaw-service.md +11 -225
  52. package/README.openclaw-setup.md +11 -225
  53. package/README.openclaw-start.md +11 -225
  54. package/README.openclaw-tools.md +11 -225
  55. package/README.openclaw-upgrade.md +17 -5
  56. package/README.openclaw-utils.md +11 -225
  57. package/README.openclaw-watch.md +11 -225
  58. package/README.pddclaw.md +16 -3
  59. package/README.qclaw-cli.md +10 -7
  60. package/README.qclaw.md +10 -7
  61. package/README.smartclaw.md +10 -7
  62. package/README.ttclaw.md +16 -3
  63. package/README.txclaw.md +16 -3
  64. package/README.uberclaw.md +16 -3
  65. package/README.volclaw.md +10 -7
  66. package/README.wxclaw.md +16 -3
  67. package/README.xclaw.md +16 -3
  68. package/README.zhclaw.md +16 -3
  69. package/dist/{chunk-U6JVOA5H.js → chunk-LJXPQKQB.js} +12 -70
  70. package/dist/index.js +3 -3
  71. package/dist/{server-GHEIPQJV.js → server-BR52HPJB.js} +1 -1
  72. package/package.json +9 -7
@@ -17,75 +17,17 @@ import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
17
17
  import { join as join2, resolve } from "path";
18
18
 
19
19
  // src/brand.ts
20
- import { basename } from "path";
20
+ import { basename, join } from "path";
21
21
  import { homedir } from "os";
22
- import { join } from "path";
23
- var bin = basename(process.argv[1] ?? "openclaw-doctor").replace(/\.[cm]?js$/, "");
24
- var KNOWN_BINS = [
25
- "openclaw-cli",
26
- "openclaw-manage",
27
- "openclaw-doctor",
28
- "openclaw-service",
29
- "openclaw-daemon",
30
- "openclaw-monitor",
31
- "openclaw-helper",
32
- "openclaw-tools",
33
- "openclaw-utils",
34
- "openclaw-gateway",
35
- "openclaw-setup",
36
- "openclaw-install",
37
- "openclaw-run",
38
- "openclaw-start",
39
- "openclaw-watch",
40
- "openclaw-health",
41
- // new aliases
42
- "qclaw",
43
- "qclaw-cli",
44
- "autoopenclaw",
45
- "claw-open",
46
- "open-claw",
47
- "clawjs",
48
- "aliclaw",
49
- "fastclaw",
50
- "smartclaw",
51
- "aiclaw",
52
- "megaclaw",
53
- "volclaw"
54
- ];
55
- var BINARY_NAME = KNOWN_BINS.includes(bin) ? bin : "openclaw-cli";
22
+ var detectedBin = basename(process.argv[1] ?? "openclaw-cli").replace(/\.[cm]?js$/, "");
23
+ var BINARY_NAME = detectedBin || "openclaw-cli";
56
24
  var APP_HOME = join(homedir(), ".openclaw-doctor");
57
- var DISPLAY_NAMES = {
58
- "openclaw-cli": "OpenClaw CLI",
59
- "openclaw-manage": "OpenClaw Manage",
60
- "openclaw-doctor": "OpenClaw Doctor",
61
- "openclaw-service": "OpenClaw Service",
62
- "openclaw-daemon": "OpenClaw Daemon",
63
- "openclaw-monitor": "OpenClaw Monitor",
64
- "openclaw-helper": "OpenClaw Helper",
65
- "openclaw-tools": "OpenClaw Tools",
66
- "openclaw-utils": "OpenClaw Utils",
67
- "openclaw-gateway": "OpenClaw Gateway",
68
- "openclaw-setup": "OpenClaw Setup",
69
- "openclaw-install": "OpenClaw Install",
70
- "openclaw-run": "OpenClaw Run",
71
- "openclaw-start": "OpenClaw Start",
72
- "openclaw-watch": "OpenClaw Watch",
73
- "openclaw-health": "OpenClaw Health",
74
- // new aliases
75
- "qclaw": "QClaw",
76
- "qclaw-cli": "QClaw CLI",
77
- "autoopenclaw": "AutoOpenClaw",
78
- "claw-open": "Claw Open",
79
- "open-claw": "Open Claw",
80
- "clawjs": "ClawJS",
81
- "aliclaw": "AliClaw",
82
- "fastclaw": "FastClaw",
83
- "smartclaw": "SmartClaw",
84
- "aiclaw": "AIClaw",
85
- "megaclaw": "MegaClaw",
86
- "volclaw": "VolClaw"
87
- };
88
- var DISPLAY_NAME = DISPLAY_NAMES[BINARY_NAME] ?? "OpenClaw Doctor";
25
+ function toDisplayName(bin) {
26
+ if (bin === "openclaw-cli") return "OpenClaw CLI";
27
+ if (bin === "openclaw-doctor") return "OpenClaw Doctor";
28
+ return bin.split("-").map((s) => s ? s[0].toUpperCase() + s.slice(1) : s).join(" ");
29
+ }
30
+ var DISPLAY_NAME = toDisplayName(BINARY_NAME);
89
31
 
90
32
  // src/config.ts
91
33
  var DOCTOR_HOME = APP_HOME;
@@ -175,8 +117,8 @@ function findOpenClawBin() {
175
117
  }
176
118
  }
177
119
  try {
178
- const bin2 = execSync("which openclaw", { encoding: "utf-8" }).trim();
179
- if (bin2) return { nodePath: process.execPath, cliBinPath: bin2 };
120
+ const bin = execSync("which openclaw", { encoding: "utf-8" }).trim();
121
+ if (bin) return { nodePath: process.execPath, cliBinPath: bin };
180
122
  } catch {
181
123
  }
182
124
  return null;
@@ -572,7 +514,7 @@ function scanCosts(agents) {
572
514
  }
573
515
 
574
516
  // src/dashboard/server.ts
575
- var _PKG_VER = true ? "0.3.2" : "0.2.1";
517
+ var _PKG_VER = true ? "0.3.5" : "0.2.1";
576
518
  var pkgVersion = _PKG_VER;
577
519
  function readDoctorLogs(maxLines = 50) {
578
520
  if (!existsSync6(DOCTOR_LOG_DIR)) return [];
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  startDashboard,
18
18
  startGateway,
19
19
  stopGateway
20
- } from "./chunk-U6JVOA5H.js";
20
+ } from "./chunk-LJXPQKQB.js";
21
21
 
22
22
  // src/index.ts
23
23
  import { spawnSync } from "child_process";
@@ -43,7 +43,7 @@ async function watchDaemon(options) {
43
43
  log("info", `Check interval: ${config.checkInterval}s`);
44
44
  log("info", `PID: ${process.pid}`);
45
45
  if (options.dashboard) {
46
- const { startDashboard: startDashboard2 } = await import("./server-GHEIPQJV.js");
46
+ const { startDashboard: startDashboard2 } = await import("./server-BR52HPJB.js");
47
47
  startDashboard2({ config: options.config });
48
48
  }
49
49
  const throttle = new RestartThrottle(config.maxRestartsPerHour);
@@ -511,7 +511,7 @@ async function memoryCompact(options) {
511
511
  }
512
512
 
513
513
  // src/index.ts
514
- var _PKG_VER = true ? "0.3.2" : "0.2.1";
514
+ var _PKG_VER = true ? "0.3.5" : "0.2.1";
515
515
  var version = _PKG_VER;
516
516
  var program = new Command();
517
517
  program.name(BINARY_NAME).description(`${DISPLAY_NAME} \u2014 health monitor and management for OpenClaw services`).version(version);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  startDashboard
4
- } from "./chunk-U6JVOA5H.js";
4
+ } from "./chunk-LJXPQKQB.js";
5
5
  export {
6
6
  startDashboard
7
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openclaw-utils",
3
- "version": "0.3.2",
4
- "description": "Health check and auto-restart daemon for local OpenClaw services",
3
+ "version": "0.3.5",
4
+ "description": "AI assistant gateway watchdog alias for openclaw-cli. Visit https://openclaw-cli.app",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "openclaw-utils": "./dist/index.js"
@@ -14,10 +14,12 @@
14
14
  },
15
15
  "keywords": [
16
16
  "openclaw",
17
- "health-check",
17
+ "openclaw-cli",
18
+ "ai",
18
19
  "daemon",
19
- "doctor",
20
- "cli"
20
+ "gateway",
21
+ "watchdog",
22
+ "health-check"
21
23
  ],
22
24
  "license": "MIT",
23
25
  "repository": {
@@ -45,7 +47,7 @@
45
47
  },
46
48
  "author": "pdd <ywq1991@gmail.com>",
47
49
  "bugs": {
48
- "url": "https://github.com/Sobranier/openclaw-doctor/issues"
50
+ "url": "https://github.com/Sobranier/openclaw-cli/issues"
49
51
  },
50
- "homepage": "https://github.com/Sobranier/openclaw-doctor#readme"
52
+ "homepage": "https://openclaw-cli.app"
51
53
  }