@cydm/happy-elves 0.1.0-beta.87 → 0.1.0-beta.89
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.
|
@@ -117,6 +117,22 @@ export async function topLevelDoctor(flags) {
|
|
|
117
117
|
});
|
|
118
118
|
if (existingDaemon && snapshot) {
|
|
119
119
|
const daemonMachine = snapshot.machines.find((machine) => machine.id === existingDaemon.machineId);
|
|
120
|
+
checks.push({
|
|
121
|
+
name: "daemon-projection",
|
|
122
|
+
ok: daemonMachine?.online === true,
|
|
123
|
+
severity: daemonMachine?.online === true ? "info" : "error",
|
|
124
|
+
layer: "compatible",
|
|
125
|
+
message: !daemonMachine
|
|
126
|
+
? "daemon machine is not visible to this controller; daemon may be paired to a different account"
|
|
127
|
+
: daemonMachine.online
|
|
128
|
+
? "daemon machine is online in the controller account"
|
|
129
|
+
: "daemon machine exists in the controller account but is offline",
|
|
130
|
+
details: {
|
|
131
|
+
machineId: existingDaemon.machineId,
|
|
132
|
+
controllerMachineCount: snapshot.machines.length,
|
|
133
|
+
...(daemonMachine ? { online: daemonMachine.online, lastSeen: daemonMachine.lastSeen } : {}),
|
|
134
|
+
},
|
|
135
|
+
});
|
|
120
136
|
const daemonVersion = daemonMachine?.capabilities.daemonVersion;
|
|
121
137
|
const aligned = !daemonVersion || daemonVersion === cliPackage.version;
|
|
122
138
|
checks.push({
|
|
@@ -8,7 +8,7 @@ Start or reuse a local Happy Elves controller, daemon, and invite flow.
|
|
|
8
8
|
|
|
9
9
|
Show the current relay, daemon, machine, and latest session state.
|
|
10
10
|
`,
|
|
11
|
-
doctor: `Usage: happy-elves doctor [--relay <url>] [--json]
|
|
11
|
+
doctor: `Usage: happy-elves doctor [--relay <url>] [--strict] [--json]
|
|
12
12
|
|
|
13
13
|
Check local controller config, relay reachability, and daemon state.
|
|
14
14
|
`,
|
package/apps/cli/package.json
CHANGED
package/apps/daemon/package.json
CHANGED