@integrity-labs/agt-cli 0.28.1288 → 0.28.1289

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.
@@ -15,7 +15,7 @@ import {
15
15
  mintRotatedHostKey,
16
16
  probeHostKey,
17
17
  setConfigHash
18
- } from "./chunk-Z7T5B4ES.js";
18
+ } from "./chunk-JNEXXGKW.js";
19
19
  import "./chunk-DITI25ZO.js";
20
20
  import "./chunk-DGUM43GV.js";
21
21
  export {
@@ -36,4 +36,4 @@ export {
36
36
  probeHostKey,
37
37
  setConfigHash
38
38
  };
39
- //# sourceMappingURL=api-client-ONUS5KBY.js.map
39
+ //# sourceMappingURL=api-client-LVYFYF3Z.js.map
package/dist/bin/agt.js CHANGED
@@ -31,7 +31,7 @@ import {
31
31
  success,
32
32
  table,
33
33
  warn
34
- } from "../chunk-KWGJU7EK.js";
34
+ } from "../chunk-OJWLTVBR.js";
35
35
  import {
36
36
  ApiError,
37
37
  PROD_AGT_HOST,
@@ -42,12 +42,12 @@ import {
42
42
  getHost,
43
43
  getHostId,
44
44
  setActiveTeam
45
- } from "../chunk-Z7T5B4ES.js";
45
+ } from "../chunk-JNEXXGKW.js";
46
46
  import {
47
47
  getProjectDir,
48
48
  isSessionResumeDisabled,
49
49
  readDirectChatSessionState
50
- } from "../chunk-HJGZG3P6.js";
50
+ } from "../chunk-WIU4M5EF.js";
51
51
  import {
52
52
  markDailySessionSpawn,
53
53
  sessionFileExists,
@@ -5207,7 +5207,7 @@ import { execFileSync, execSync } from "child_process";
5207
5207
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5208
5208
  import chalk17 from "chalk";
5209
5209
  import ora15 from "ora";
5210
- var cliVersion = true ? "0.28.1288" : "dev";
5210
+ var cliVersion = true ? "0.28.1289" : "dev";
5211
5211
  async function fetchLatestVersion() {
5212
5212
  const host2 = getHost();
5213
5213
  if (!host2) return null;
@@ -6467,7 +6467,7 @@ function handleError(err) {
6467
6467
  }
6468
6468
 
6469
6469
  // src/bin/agt.ts
6470
- var cliVersion2 = true ? "0.28.1288" : "dev";
6470
+ var cliVersion2 = true ? "0.28.1289" : "dev";
6471
6471
  var program = new Command();
6472
6472
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
6473
6473
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -103,7 +103,7 @@ function exchangeFailureKind(err) {
103
103
  }
104
104
 
105
105
  // src/lib/api-client.ts
106
- var agtCliVersion = true ? "0.28.1288" : "dev";
106
+ var agtCliVersion = true ? "0.28.1289" : "dev";
107
107
  var lastConfigHash = null;
108
108
  function setConfigHash(hash) {
109
109
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -468,4 +468,4 @@ export {
468
468
  api,
469
469
  getHostId
470
470
  };
471
- //# sourceMappingURL=chunk-Z7T5B4ES.js.map
471
+ //# sourceMappingURL=chunk-JNEXXGKW.js.map
@@ -2,7 +2,7 @@ import {
2
2
  exchangeApiKey,
3
3
  getApiKey,
4
4
  getHost
5
- } from "./chunk-Z7T5B4ES.js";
5
+ } from "./chunk-JNEXXGKW.js";
6
6
  import {
7
7
  LATE_BOUND_VARS,
8
8
  PLATFORM_DENY_PERMISSIONS,
@@ -26,7 +26,7 @@ import {
26
26
  warnIgnoredIsolationAllowlist,
27
27
  withheldRemoteMcpMessage,
28
28
  withheldRemoteMcpReasonFor
29
- } from "./chunk-HJGZG3P6.js";
29
+ } from "./chunk-WIU4M5EF.js";
30
30
  import {
31
31
  readDailySessionPin,
32
32
  sessionTranscriptDir
@@ -13853,4 +13853,4 @@ export {
13853
13853
  managerInstallSystemUnitCommand,
13854
13854
  managerUninstallSystemUnitCommand
13855
13855
  };
13856
- //# sourceMappingURL=chunk-KWGJU7EK.js.map
13856
+ //# sourceMappingURL=chunk-OJWLTVBR.js.map
@@ -6240,8 +6240,14 @@ function resetRestartCount(codeName) {
6240
6240
  const session = sessions2.get(codeName);
6241
6241
  if (session) session.restartCount = 0;
6242
6242
  }
6243
+ var OBSERVATION_BOOT_EPOCH = Date.now();
6244
+ var observationSeq = 0;
6245
+ function nextObservation() {
6246
+ observationSeq += 1;
6247
+ return { bootEpoch: OBSERVATION_BOOT_EPOCH, seq: observationSeq };
6248
+ }
6243
6249
  function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeFor, pidPressureFor, forwardedToolsFor, runtimeVersionFor, sessionActivityFor) {
6244
- return codeNames.map((codeName) => {
6250
+ const rows = codeNames.map((codeName) => {
6245
6251
  const quarantinedChannels = quarantineEntriesFor?.(codeName) ?? [];
6246
6252
  const spawnOutcome = spawnOutcomeFor?.(codeName);
6247
6253
  const pidPressure = pidPressureFor?.(codeName) ?? null;
@@ -6376,6 +6382,7 @@ function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, sp
6376
6382
  ...runtimeVersion ? { runtimeVersion } : {}
6377
6383
  };
6378
6384
  });
6385
+ return rows.map((row) => ({ ...row, observedAt: nextObservation() }));
6379
6386
  }
6380
6387
  function stopAllSessions(log2) {
6381
6388
  for (const codeName of sessions2.keys()) {
@@ -6561,9 +6568,10 @@ export {
6561
6568
  takeZombieDetection,
6562
6569
  isSessionHealthy,
6563
6570
  resetRestartCount,
6571
+ nextObservation,
6564
6572
  collectDiagnostics,
6565
6573
  stopAllSessions,
6566
6574
  stopAllSessionsAndWait,
6567
6575
  getProjectDir
6568
6576
  };
6569
- //# sourceMappingURL=chunk-HJGZG3P6.js.map
6577
+ //# sourceMappingURL=chunk-WIU4M5EF.js.map