@bivy/bivy 0.5.1-staging.61 → 0.5.1-staging.63
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.
- package/bin/bivy.mjs +5 -0
- package/dist/server.js +3 -0
- package/package.json +1 -1
package/bin/bivy.mjs
CHANGED
|
@@ -3468,6 +3468,7 @@ async function cmdStatus(args = []) {
|
|
|
3468
3468
|
}
|
|
3469
3469
|
console.log(c.bold("\n Bivy node\n"));
|
|
3470
3470
|
console.log(` url: ${url(config)} ${reachable ? c.green("● reachable") : c.dim("○ not reachable")}`);
|
|
3471
|
+
if (status?.version) console.log(` version: ${status.version}`);
|
|
3471
3472
|
console.log(` workspace: ${status?.workspace || config.workspace}`);
|
|
3472
3473
|
console.log(` ${serviceStatusLine()}`);
|
|
3473
3474
|
const relay = loadRelayConfig();
|
|
@@ -3506,6 +3507,10 @@ async function cmdStatus(args = []) {
|
|
|
3506
3507
|
console.log(` devices: ${status.devices?.paired ?? 0} paired remote, ${status.devices?.localTokens ?? 0} local token(s)`);
|
|
3507
3508
|
console.log(` approvals: ${status.approvals?.pending ?? 0} pending`);
|
|
3508
3509
|
console.log(` guard: ${status.approvalMode || "autonomous"} (${status.guardrails?.workspaceBoundary ? "workspace boundary on" : "boundary unknown"})`);
|
|
3510
|
+
if (status.updatedAt) {
|
|
3511
|
+
const when = new Date(status.updatedAt);
|
|
3512
|
+
console.log(` updated: ${Number.isNaN(when.getTime()) ? status.updatedAt : when.toLocaleString()}`);
|
|
3513
|
+
}
|
|
3509
3514
|
}
|
|
3510
3515
|
console.log("");
|
|
3511
3516
|
}
|
package/dist/server.js
CHANGED
|
@@ -8219,6 +8219,9 @@ app.get("/api/status", (_req, res) => {
|
|
|
8219
8219
|
ok: true,
|
|
8220
8220
|
nodeId: identity.nodeId,
|
|
8221
8221
|
name: identity.name,
|
|
8222
|
+
// The running daemon's package version, so `bivy status` (and any client)
|
|
8223
|
+
// can report which build the node is on.
|
|
8224
|
+
version: currentVersion() ?? null,
|
|
8222
8225
|
port,
|
|
8223
8226
|
workspace: defaultWorkspace,
|
|
8224
8227
|
appDir,
|
package/package.json
CHANGED