@integrity-labs/agt-cli 0.9.1 → 0.9.3

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.
@@ -9,7 +9,7 @@ import {
9
9
  provisionStopHook,
10
10
  requireHost,
11
11
  resolveChannels
12
- } from "../chunk-AMB6FJLZ.js";
12
+ } from "../chunk-LPYH2O7U.js";
13
13
  import {
14
14
  findTaskByTemplate,
15
15
  getProjectDir,
@@ -27,7 +27,7 @@ import {
27
27
  startPersistentSession,
28
28
  stopAllSessionsAndWait,
29
29
  stopPersistentSession
30
- } from "../chunk-HTBIKZKS.js";
30
+ } from "../chunk-JOAT4JQN.js";
31
31
 
32
32
  // src/lib/manager-worker.ts
33
33
  import { createHash } from "crypto";
@@ -1075,7 +1075,7 @@ async function pollCycle() {
1075
1075
  }
1076
1076
  try {
1077
1077
  const { detectHostSecurity } = await import("../host-security-6PDFG7F5.js");
1078
- const { collectDiagnostics } = await import("../persistent-session-ZCB562FN.js");
1078
+ const { collectDiagnostics } = await import("../persistent-session-M6GXAEQF.js");
1079
1079
  const diagCodeNames = [...persistentSessionAgents];
1080
1080
  const agentDiagnostics = diagCodeNames.length > 0 ? collectDiagnostics(diagCodeNames) : void 0;
1081
1081
  let tailscaleHostname;
@@ -1094,13 +1094,20 @@ async function pollCycle() {
1094
1094
  } catch {
1095
1095
  }
1096
1096
  }
1097
+ let osUsername;
1098
+ try {
1099
+ const { userInfo } = await import("os");
1100
+ osUsername = userInfo().username;
1101
+ } catch {
1102
+ }
1097
1103
  await api.post("/host/heartbeat", {
1098
1104
  host_id: hostId,
1099
1105
  framework_version: cachedFrameworkVersion ?? void 0,
1100
1106
  host_security: detectHostSecurity() ?? void 0,
1101
1107
  agent_runtime_authenticated: agentRuntimeAuthenticated,
1102
1108
  agent_diagnostics: agentDiagnostics,
1103
- hostname: tailscaleHostname
1109
+ hostname: tailscaleHostname,
1110
+ os_username: osUsername
1104
1111
  });
1105
1112
  } catch (err) {
1106
1113
  log(`Heartbeat failed: ${err.message}`);