viyv-daemon 0.1.3 → 0.1.4
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/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13066,6 +13066,7 @@ var LocalSocketServer = class _LocalSocketServer extends EventEmitter {
|
|
|
13066
13066
|
};
|
|
13067
13067
|
|
|
13068
13068
|
// src/socket/handlers.ts
|
|
13069
|
+
var PACKAGE_VERSION = "0.1.4";
|
|
13069
13070
|
function createSocketHandler(daemon) {
|
|
13070
13071
|
return async (_clientId, message) => {
|
|
13071
13072
|
switch (message.type) {
|
|
@@ -13101,7 +13102,7 @@ function handleDaemonStatus(daemon, message) {
|
|
|
13101
13102
|
cloudConnected: daemon.isCloudConnected(),
|
|
13102
13103
|
localClientsCount: daemon.getLocalClientCount(),
|
|
13103
13104
|
uptime: daemon.getUptime(),
|
|
13104
|
-
version:
|
|
13105
|
+
version: PACKAGE_VERSION
|
|
13105
13106
|
};
|
|
13106
13107
|
return createSocketMessage("daemon.status.response", status, message.id);
|
|
13107
13108
|
}
|
|
@@ -34240,6 +34241,7 @@ var IpcEventManager = class {
|
|
|
34240
34241
|
};
|
|
34241
34242
|
|
|
34242
34243
|
// src/managers/message-router-manager.ts
|
|
34244
|
+
var PACKAGE_VERSION2 = "0.1.4";
|
|
34243
34245
|
var MessageRouterManager = class {
|
|
34244
34246
|
deps;
|
|
34245
34247
|
constructor(deps) {
|
|
@@ -34423,7 +34425,7 @@ var MessageRouterManager = class {
|
|
|
34423
34425
|
localClientsCount: this.deps.socketServer.getClientCount(),
|
|
34424
34426
|
uptime: this.deps.getUptime(),
|
|
34425
34427
|
socketPath: runtimeState.socketPath,
|
|
34426
|
-
version:
|
|
34428
|
+
version: PACKAGE_VERSION2
|
|
34427
34429
|
});
|
|
34428
34430
|
});
|
|
34429
34431
|
}
|
|
@@ -43303,7 +43305,7 @@ function drawHeader(title, subtitle) {
|
|
|
43303
43305
|
}
|
|
43304
43306
|
|
|
43305
43307
|
// src/cli/onboarding/welcome-screen.ts
|
|
43306
|
-
var VERSION = "0.1.
|
|
43308
|
+
var VERSION = "0.1.4";
|
|
43307
43309
|
function showWelcomeScreen() {
|
|
43308
43310
|
console.clear();
|
|
43309
43311
|
emptyLines(1);
|
|
@@ -43706,7 +43708,7 @@ function truncateUrl(url, maxLen) {
|
|
|
43706
43708
|
}
|
|
43707
43709
|
|
|
43708
43710
|
// src/cli/index.ts
|
|
43709
|
-
var
|
|
43711
|
+
var PACKAGE_VERSION3 = "0.1.4";
|
|
43710
43712
|
function formatUptime(ms) {
|
|
43711
43713
|
const seconds = Math.floor(ms / 1e3);
|
|
43712
43714
|
const minutes = Math.floor(seconds / 60);
|
|
@@ -43736,7 +43738,7 @@ function formatUptimeShort(startedAt) {
|
|
|
43736
43738
|
}
|
|
43737
43739
|
function createCli() {
|
|
43738
43740
|
const program2 = new Command();
|
|
43739
|
-
program2.name("viyv-daemon").description("Viyv Agent Node Daemon").version(
|
|
43741
|
+
program2.name("viyv-daemon").description("Viyv Agent Node Daemon").version(PACKAGE_VERSION3);
|
|
43740
43742
|
program2.command("list").alias("ls").description("List running daemon instances").option("--json", "Output as JSON").action((options) => {
|
|
43741
43743
|
const daemons = discoverDaemons();
|
|
43742
43744
|
if (daemons.length === 0) {
|
|
@@ -44590,6 +44592,7 @@ function printUpdateNotice(info) {
|
|
|
44590
44592
|
|
|
44591
44593
|
// src/index.ts
|
|
44592
44594
|
process.noDeprecation = true;
|
|
44595
|
+
var PACKAGE_VERSION4 = "0.1.4";
|
|
44593
44596
|
var KNOWN_COMMANDS = [
|
|
44594
44597
|
"start",
|
|
44595
44598
|
"stop",
|
|
@@ -44626,7 +44629,7 @@ var hasGlobalOption = userArgs.some((arg) => GLOBAL_OPTIONS.includes(arg));
|
|
|
44626
44629
|
if (!hasCommand && !hasGlobalOption) {
|
|
44627
44630
|
args.splice(2, 0, "start");
|
|
44628
44631
|
}
|
|
44629
|
-
checkForUpdates(
|
|
44632
|
+
checkForUpdates(PACKAGE_VERSION4).then(printUpdateNotice).catch(() => {
|
|
44630
44633
|
});
|
|
44631
44634
|
program.parse(args);
|
|
44632
44635
|
//# sourceMappingURL=index.js.map
|