@integrity-labs/agt-cli 0.28.593 → 0.28.594

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/bin/agt.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-BYCE4V7Q.js";
43
+ } from "../chunk-U7DHWGAZ.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -71,7 +71,7 @@ import {
71
71
  requiredMcpWildcard,
72
72
  resolveChannels,
73
73
  serializeManifestForSlackCli
74
- } from "../chunk-TKWDYMM3.js";
74
+ } from "../chunk-74UJCPIS.js";
75
75
  import "../chunk-XWVM4KPK.js";
76
76
 
77
77
  // src/bin/agt.ts
@@ -4908,7 +4908,7 @@ import { execFileSync, execSync } from "child_process";
4908
4908
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4909
4909
  import chalk18 from "chalk";
4910
4910
  import ora16 from "ora";
4911
- var cliVersion = true ? "0.28.593" : "dev";
4911
+ var cliVersion = true ? "0.28.594" : "dev";
4912
4912
  async function fetchLatestVersion() {
4913
4913
  const host2 = getHost();
4914
4914
  if (!host2) return null;
@@ -6088,7 +6088,7 @@ function handleError(err) {
6088
6088
  }
6089
6089
 
6090
6090
  // src/bin/agt.ts
6091
- var cliVersion2 = true ? "0.28.593" : "dev";
6091
+ var cliVersion2 = true ? "0.28.594" : "dev";
6092
6092
  var program = new Command();
6093
6093
  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");
6094
6094
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -15777,10 +15777,11 @@ function resetRestartCount(codeName) {
15777
15777
  const session = sessions2.get(codeName);
15778
15778
  if (session) session.restartCount = 0;
15779
15779
  }
15780
- function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeFor) {
15780
+ function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, spawnOutcomeFor, pidPressureFor) {
15781
15781
  return codeNames.map((codeName) => {
15782
15782
  const quarantinedChannels = quarantineEntriesFor?.(codeName) ?? [];
15783
15783
  const spawnOutcome = spawnOutcomeFor?.(codeName);
15784
+ const pidPressure = pidPressureFor?.(codeName) ?? null;
15784
15785
  const oc = getOpencodeSessionState(codeName);
15785
15786
  if (oc) {
15786
15787
  const serveAlive = isOpencodeSessionHealthy(codeName);
@@ -15808,6 +15809,14 @@ function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, sp
15808
15809
  // nothing to measure and nothing to alarm on — explicit null (no
15809
15810
  // signal) rather than whatever a stale file might happen to contain.
15810
15811
  claudeMd: null,
15812
+ // ENG-8876: carried on BOTH return paths, not hardcoded null here.
15813
+ // Whether an opencode agent is containerised under the same
15814
+ // `agt-<code>` name is not something this function should assume — if
15815
+ // it is, the signal works for free; if it is not, `docker inspect`
15816
+ // fails and the accessor already returns null. Guessing "null because
15817
+ // opencode" would bake in an answer that goes stale the day the
15818
+ // opencode path gets its own container.
15819
+ pidPressure,
15811
15820
  ...turn ? {
15812
15821
  turnHealth: {
15813
15822
  lastOutcome: turn.lastOutcome,
@@ -15883,7 +15892,8 @@ function collectDiagnostics(codeNames, quarantineEntriesFor, claudeMdSizeFor, sp
15883
15892
  // return paths carry it; a field on only one is the divergence class
15884
15893
  // this card is about.
15885
15894
  spawnOutcome,
15886
- claudeMd
15895
+ claudeMd,
15896
+ pidPressure
15887
15897
  };
15888
15898
  });
15889
15899
  }
@@ -16118,4 +16128,4 @@ export {
16118
16128
  stopAllSessionsAndWait,
16119
16129
  getProjectDir
16120
16130
  };
16121
- //# sourceMappingURL=chunk-TKWDYMM3.js.map
16131
+ //# sourceMappingURL=chunk-74UJCPIS.js.map