@boxcrew/cli 0.1.14 → 0.1.15
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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -361,7 +361,7 @@ import { spawn } from "child_process";
|
|
|
361
361
|
import { createInterface as createInterface3 } from "readline";
|
|
362
362
|
import { openSync, mkdirSync, existsSync, writeFileSync, readFileSync, unlinkSync, readdirSync } from "fs";
|
|
363
363
|
import { join } from "path";
|
|
364
|
-
import { homedir } from "os";
|
|
364
|
+
import { homedir, platform, release, hostname } from "os";
|
|
365
365
|
import WebSocket from "ws";
|
|
366
366
|
var RECONNECT_BASE_MS = 1e3;
|
|
367
367
|
var RECONNECT_MAX_MS = 3e4;
|
|
@@ -649,6 +649,12 @@ function runDaemon(agentName) {
|
|
|
649
649
|
reconnectAttempt = 0;
|
|
650
650
|
sendToServer = send;
|
|
651
651
|
console.log(`[${(/* @__PURE__ */ new Date()).toISOString()}] Connected`);
|
|
652
|
+
send({
|
|
653
|
+
type: "hello",
|
|
654
|
+
os: `${platform()} ${release()}`,
|
|
655
|
+
cwd: process.cwd(),
|
|
656
|
+
hostname: hostname()
|
|
657
|
+
});
|
|
652
658
|
while (eventBuffer.length > 0) {
|
|
653
659
|
const msg = eventBuffer.shift();
|
|
654
660
|
send(msg);
|