@integrity-labs/agt-cli 0.28.218 → 0.28.220

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
@@ -38,7 +38,7 @@ import {
38
38
  success,
39
39
  table,
40
40
  warn
41
- } from "../chunk-XVS6GYQF.js";
41
+ } from "../chunk-QLNXRQAV.js";
42
42
  import {
43
43
  CHANNEL_REGISTRY,
44
44
  DEFAULT_FRAMEWORK,
@@ -67,7 +67,7 @@ import {
67
67
  renderTemplate,
68
68
  resolveChannels,
69
69
  serializeManifestForSlackCli
70
- } from "../chunk-DPKDUDVU.js";
70
+ } from "../chunk-M2PGJQP3.js";
71
71
  import "../chunk-XWVM4KPK.js";
72
72
 
73
73
  // src/bin/agt.ts
@@ -4826,7 +4826,7 @@ import { execFileSync, execSync } from "child_process";
4826
4826
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4827
4827
  import chalk18 from "chalk";
4828
4828
  import ora16 from "ora";
4829
- var cliVersion = true ? "0.28.218" : "dev";
4829
+ var cliVersion = true ? "0.28.220" : "dev";
4830
4830
  async function fetchLatestVersion() {
4831
4831
  const host2 = getHost();
4832
4832
  if (!host2) return null;
@@ -5840,7 +5840,7 @@ function handleError(err) {
5840
5840
  }
5841
5841
 
5842
5842
  // src/bin/agt.ts
5843
- var cliVersion2 = true ? "0.28.218" : "dev";
5843
+ var cliVersion2 = true ? "0.28.220" : "dev";
5844
5844
  var program = new Command();
5845
5845
  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");
5846
5846
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -8688,9 +8688,19 @@ function isSessionHealthy(codeName) {
8688
8688
  return false;
8689
8689
  }
8690
8690
  if (!sessions.has(codeName)) {
8691
+ let startedAt2 = Date.now();
8692
+ try {
8693
+ const created = execFileSync3("tmux", ["display", "-p", "-t", tmuxSession, "#{session_created}"], {
8694
+ encoding: "utf-8",
8695
+ timeout: 3e3
8696
+ }).trim();
8697
+ const secs = Number(created);
8698
+ if (Number.isFinite(secs) && secs > 0) startedAt2 = secs * 1e3;
8699
+ } catch {
8700
+ }
8691
8701
  sessions.set(codeName, {
8692
8702
  codeName,
8693
- startedAt: Date.now(),
8703
+ startedAt: startedAt2,
8694
8704
  restartCount: 0,
8695
8705
  status: "running",
8696
8706
  currentSessionId: null,
@@ -8806,7 +8816,8 @@ function collectDiagnostics(codeNames) {
8806
8816
  screenCapture: screenCapture ? screenCapture.slice(-2e3) : null,
8807
8817
  // limit size
8808
8818
  launchArgs,
8809
- channelStatus
8819
+ channelStatus,
8820
+ isolated: isolationMode(codeName) === "docker"
8810
8821
  };
8811
8822
  });
8812
8823
  }
@@ -8953,4 +8964,4 @@ export {
8953
8964
  stopAllSessionsAndWait,
8954
8965
  getProjectDir
8955
8966
  };
8956
- //# sourceMappingURL=chunk-DPKDUDVU.js.map
8967
+ //# sourceMappingURL=chunk-M2PGJQP3.js.map