@integrity-labs/agt-cli 0.28.410 → 0.28.411

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-QZEA7FWB.js";
43
+ } from "../chunk-JIT5ORMO.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -70,7 +70,7 @@ import {
70
70
  renderTemplate,
71
71
  resolveChannels,
72
72
  serializeManifestForSlackCli
73
- } from "../chunk-YLLK4G3B.js";
73
+ } from "../chunk-D4MDIZ3T.js";
74
74
  import "../chunk-XWVM4KPK.js";
75
75
 
76
76
  // src/bin/agt.ts
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
4829
4829
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4830
4830
  import chalk18 from "chalk";
4831
4831
  import ora16 from "ora";
4832
- var cliVersion = true ? "0.28.410" : "dev";
4832
+ var cliVersion = true ? "0.28.411" : "dev";
4833
4833
  async function fetchLatestVersion() {
4834
4834
  const host2 = getHost();
4835
4835
  if (!host2) return null;
@@ -6001,7 +6001,7 @@ function handleError(err) {
6001
6001
  }
6002
6002
 
6003
6003
  // src/bin/agt.ts
6004
- var cliVersion2 = true ? "0.28.410" : "dev";
6004
+ var cliVersion2 = true ? "0.28.411" : "dev";
6005
6005
  var program = new Command();
6006
6006
  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");
6007
6007
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -10426,6 +10426,17 @@ function findFreePort() {
10426
10426
  async function startOpencodeSession(config) {
10427
10427
  const { codeName, log: log2 } = config;
10428
10428
  const existing = sessions.get(codeName);
10429
+ if (existing && existing.status === "running" && !isOpencodeSessionHealthy(codeName)) {
10430
+ log2(
10431
+ `[opencode-session] '${codeName}' stopped out-of-band (tmux session gone, in-memory state pinned to port ${existing.port ?? "?"}) \u2014 respawning on a fresh port (ENG-7995)`
10432
+ );
10433
+ existing.status = "crashed";
10434
+ existing.restartCount++;
10435
+ existing.port = null;
10436
+ existing.password = null;
10437
+ bridges.delete(codeName);
10438
+ stopTranscriptRefresher(codeName);
10439
+ }
10429
10440
  if (existing && existing.status === "running") return existing;
10430
10441
  const restartCount = existing?.restartCount ?? 0;
10431
10442
  if (existing?.status === "crashed" && existing.startedAt) {
@@ -12454,6 +12465,7 @@ export {
12454
12465
  isOpencodeSessionHealthy,
12455
12466
  injectOpencodeMessage,
12456
12467
  stopOpencodeSession,
12468
+ getOpencodeSessionState,
12457
12469
  sessionTranscriptDir,
12458
12470
  transcriptActivityAgeSeconds,
12459
12471
  subagentActivityAgeSeconds,
@@ -12502,4 +12514,4 @@ export {
12502
12514
  stopAllSessionsAndWait,
12503
12515
  getProjectDir
12504
12516
  };
12505
- //# sourceMappingURL=chunk-YLLK4G3B.js.map
12517
+ //# sourceMappingURL=chunk-D4MDIZ3T.js.map